decocms 4.571.0 → 4.572.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Cbs5Ab1P.js → AlertCircle-kYtqXGU8.js} +1 -1
- package/dist/client/assets/{AreaChart-CToSouiR.js → AreaChart-DDNkWSZu.js} +1 -1
- package/dist/client/assets/{ArrowLeft-2ggpgqb0.js → ArrowLeft-B1m5qQi9.js} +1 -1
- package/dist/client/assets/{ArrowUp-cgUvwam2.js → ArrowUp-DcYpepHk.js} +1 -1
- package/dist/client/assets/{CartesianChart-CQdu8PPi.js → CartesianChart-BfCEFz3y.js} +1 -1
- package/dist/client/assets/{CategoricalChart-B5fszPCD.js → CategoricalChart-Bp-vLaQf.js} +1 -1
- package/dist/client/assets/{CheckCircle-D2qom1Qe.js → CheckCircle-B4NfGYxe.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CSCxxcTv.js → ChevronSelectorVertical-EqyUOMMk.js} +1 -1
- package/dist/client/assets/{ChevronUp-DPwvtZ7T.js → ChevronUp-DRG0w_P4.js} +1 -1
- package/dist/client/assets/{CreditCard01-BeIdgKm8.js → CreditCard01-BLl0RgXC.js} +1 -1
- package/dist/client/assets/{Globe04-BNjS8hE_.js → Globe04--FaZazgw.js} +1 -1
- package/dist/client/assets/{Key01-Bb2fYsyQ.js → Key01-D0Pq98hT.js} +1 -1
- package/dist/client/assets/{LinkBroken01-a5oI2X-K.js → LinkBroken01-C9GtmpYY.js} +1 -1
- package/dist/client/assets/{Minus-HfQUebB7.js → Minus-eGpg4-RN.js} +1 -1
- package/dist/client/assets/{Monitor01-D0NO-K1o.js → Monitor01-Su614Ctg.js} +1 -1
- package/dist/client/assets/{Play-UerN5i51.js → Play-D_ph4pZ0.js} +1 -1
- package/dist/client/assets/{Plus-BqBCvRtk.js → Plus-D8rFucQH.js} +1 -1
- package/dist/client/assets/{ReferenceLine-8Od-_LqW.js → ReferenceLine-BsZk9TgE.js} +1 -1
- package/dist/client/assets/{SearchMd-ip9BTueQ.js → SearchMd-2MPq0KPN.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Z5jujKnF.js → ShoppingBag01-DDCYsqx9.js} +1 -1
- package/dist/client/assets/{Sun-BqxGPQ7c.js → Sun-Dvv08Urq.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-xah_f_KH.js → SwitchHorizontal01-D7HAXgYP.js} +1 -1
- package/dist/client/assets/{Tool01-CAgFzAvv.js → Tool01-BTDYOKsB.js} +1 -1
- package/dist/client/assets/{Tooltip-2CGCyakg.js → Tooltip-CPoCGNVz.js} +1 -1
- package/dist/client/assets/{Trash01-C7v1fWGY.js → Trash01-CHCe7_6o.js} +1 -1
- package/dist/client/assets/{Upload01-7apXt8L7.js → Upload01-Q6ECKQXp.js} +1 -1
- package/dist/client/assets/{UserSquare-Dfda7sxk.js → UserSquare-BJHrMhrM.js} +1 -1
- package/dist/client/assets/{Users01-DGaGzIcz.js → Users01-DHfg9AEk.js} +1 -1
- package/dist/client/assets/{XClose-DaTfQwji.js → XClose-BDiB_Nvo.js} +1 -1
- package/dist/client/assets/{Zap-CmFvKOKc.js → Zap-DpvU6Dp2.js} +1 -1
- package/dist/client/assets/{access-gate-DSrHE9mR.js → access-gate-BjRwuLrP.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-sfNoRM_t.js → add-connection-dialog-Bh0vHlQ5.js} +1 -1
- package/dist/client/assets/agent-app-IWHPMxEK.js +1 -0
- package/dist/client/assets/{agent-assets-BOBiAU4U.js → agent-assets-BZWSLrfd.js} +1 -1
- package/dist/client/assets/{agent-automation-JSDOOiNt.js → agent-automation-C1Vdho1R.js} +1 -1
- package/dist/client/assets/{agent-automations-dSGzVGTE.js → agent-automations-BOxoQlGs.js} +1 -1
- package/dist/client/assets/{agent-calendar-JsZQH9DJ.js → agent-calendar-CdFd9RbD.js} +1 -1
- package/dist/client/assets/{agent-capabilities-CuOmNgv3.js → agent-capabilities-C80Nj8dH.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-f0poJHtj.js → agent-connect-sources-CEmlztKl.js} +1 -1
- package/dist/client/assets/agent-deck-CtBABaGT.js +1 -0
- package/dist/client/assets/{agent-e2e-DsNy3BsN.js → agent-e2e-CFF1rulz.js} +1 -1
- package/dist/client/assets/agent-experiments-ui7FfvYG.js +1 -0
- package/dist/client/assets/{agent-file-Y-EO6Btn.js → agent-file-Cq3onOpE.js} +1 -1
- package/dist/client/assets/{agent-hosting-BS_jB6we.js → agent-hosting-vCUxyXYf.js} +1 -1
- package/dist/client/assets/{agent-icon-BGTckvlP.js → agent-icon-DqjTL3cE.js} +1 -1
- package/dist/client/assets/agent-library-CrZB4N_E.js +1 -0
- package/dist/client/assets/agent-library-file-BOxLy0sn.js +1 -0
- package/dist/client/assets/agent-overview-BcgCBEmB.js +1 -0
- package/dist/client/assets/{agent-releases-B_K3FIWy.js → agent-releases-aYJGzx-T.js} +1 -1
- package/dist/client/assets/agent-settings-CxJPBxUl.js +1 -0
- package/dist/client/assets/agent-site-editor-code-CLO4vASe.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DwQjPdJR.js +1 -0
- package/dist/client/assets/{agent-site-editor-CiaB1f7K.js → agent-site-editor-gGRvmvu9.js} +1 -1
- package/dist/client/assets/agent-site-editor-preview-DVAXUJER.js +1 -0
- package/dist/client/assets/agent-view-BWBpZVUF.js +1 -0
- package/dist/client/assets/{agent-view-guard-H_xpaENl.js → agent-view-guard-Bppi7Mra.js} +1 -1
- package/dist/client/assets/{ai-providers-OlLaxP2V.js → ai-providers-JXuyHqZ0.js} +1 -1
- package/dist/client/assets/{alert-CWtTJO7c.js → alert-Cddl0pAs.js} +1 -1
- package/dist/client/assets/{analytics-sections-DH9U0O99.js → analytics-sections-DFGgGKah.js} +1 -1
- package/dist/client/assets/{api-keys-B4joTgKi.js → api-keys-CyRPnxt1.js} +1 -1
- package/dist/client/assets/api-keys-G9chtY31.js +1 -0
- package/dist/client/assets/{app-editor-BrdqMvUA.js → app-editor-XjHMyWR2.js} +1 -1
- package/dist/client/assets/{asset-utils-BO-AcYFX.js → asset-utils-Cekn7DV3.js} +1 -1
- package/dist/client/assets/{auth-catchall-CU4VU9mW.js → auth-catchall-BEu29rgq.js} +1 -1
- package/dist/client/assets/{auth-entry-CuJQjZjM.js → auth-entry-C-rkFm2s.js} +1 -1
- package/dist/client/assets/{auth-BExDXNDY.js → auth-qAWEiaXq.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BCXGVZBW.js → auth-split-layout-E78PPbPV.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-vexqf63k.js → authenticate-and-persist-oauth-D7iMHNSW.js} +1 -1
- package/dist/client/assets/{automation-list-row-Bp87yYiZ.js → automation-list-row-guzwZg5A.js} +1 -1
- package/dist/client/assets/{automation-runs-DiRDWuN3.js → automation-runs-BHP_sOU-.js} +1 -1
- package/dist/client/assets/{automations-DMWU0I6x.js → automations-BgweD4e5.js} +1 -1
- package/dist/client/assets/{autosend-DL4CutFR.js → autosend-_WPHuuuS.js} +1 -1
- package/dist/client/assets/{badge-CVFmvf1e.js → badge-DtxRsHGH.js} +1 -1
- package/dist/client/assets/{block-document-BENHfkyr.js → block-document-CT7wSVO4.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-EXsoCHPE.js → blocks-preview-workspace-context-BoHWp5NJ.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Of3CFRB8.js → blocks-tab-states-2A_KUVRA.js} +1 -1
- package/dist/client/assets/{blog-schema-BG9a5NjF.js → blog-schema-DyhIMTKN.js} +1 -1
- package/dist/client/assets/{buckets-CC28Un34.js → buckets-B6SQeYKj.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BISiPdsN.js → build-improve-prompt-doc--GJGk9lj.js} +1 -1
- package/dist/client/assets/{calendar-9d4oM3ql.js → calendar-gF784tOB.js} +1 -1
- package/dist/client/assets/{capability-load-error-ByWk_AoZ.js → capability-load-error-gokttFVD.js} +1 -1
- package/dist/client/assets/{category-editor-7CKgp_eM.js → category-editor-DH5eEcV-.js} +1 -1
- package/dist/client/assets/{chart-DXLoDuxi.js → chart-2s7SvZtT.js} +1 -1
- package/dist/client/assets/{chat-context-WEEHZlsn.js → chat-context-aSjAR9mm.js} +1 -1
- package/dist/client/assets/{chat-draft-CeM2nWLu.js → chat-draft-C4Ql1o7U.js} +1 -1
- package/dist/client/assets/{checkbox-KpsWsk0_.js → checkbox-CBfkrmis.js} +1 -1
- package/dist/client/assets/{choose-editor-PfXE6_H8.js → choose-editor-DOrF20ax.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C2W_huzL.js → cli-auth-success-B188GHrd.js} +1 -1
- package/dist/client/assets/{client-icons-CCN4dFtx.js → client-icons-CGEm3mRa.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-CdGJgv0b.js → cms-settings-editor-CLowE0HB.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-dVKFaKA7.js → cms-store-drafts-CSMnfrKb.js} +1 -1
- package/dist/client/assets/{collapsible-B14xMZuR.js → collapsible-C6tkGF0M.js} +1 -1
- package/dist/client/assets/{collection-detail-pdnHCRF6.js → collection-detail-EKABwIVL.js} +1 -1
- package/dist/client/assets/{collection-display-button-CRiNqITy.js → collection-display-button-CiexA8e6.js} +1 -1
- package/dist/client/assets/{collection-search-Ck-1gfFY.js → collection-search-iHJVqUHB.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BlhppHAs.js → collection-table-wrapper-Dw3f1ge7.js} +1 -1
- package/dist/client/assets/{collection-tabs-6FzXiv6G.js → collection-tabs-Trcf-II9.js} +1 -1
- package/dist/client/assets/{combobox-fgtxpSsO.js → combobox-DqTAA7CX.js} +1 -1
- package/dist/client/assets/{command-C37DfioB.js → command-CtR4gjCr.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-pEyer4h1.js → companion-mcps-section-CMxxXZB8.js} +1 -1
- package/dist/client/assets/{config-C_d2w75d.js → config-BpJVAl-p.js} +1 -1
- package/dist/client/assets/{connect-CyzT5SDn.js → connect-DjUzAPce.js} +1 -1
- package/dist/client/assets/{connect-layout-DCavpmFh.js → connect-layout-atO8SWTe.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-MOlb_mGB.js → connect-source-dialog-CpTTYi_l.js} +1 -1
- package/dist/client/assets/{connection-BjCYlDIW.js → connection-CZHWvxVM.js} +1 -1
- package/dist/client/assets/{connection-card-qC58rx0g.js → connection-card-Dt4OQ0Zk.js} +1 -1
- package/dist/client/assets/{connection-detail-CnaYuh7u.js → connection-detail-weWLbsDk.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-9PE7Ghza.js → connection-form-helpers-KX0UMFtC.js} +1 -1
- package/dist/client/assets/{connection-slug-DgmEtT2x.js → connection-slug-BQwcAWfG.js} +1 -1
- package/dist/client/assets/{connections-DG7FZ0U7.js → connections-i22Te-Si.js} +1 -1
- package/dist/client/assets/{content-tab-Ce8Q2_t2.js → content-tab-CxWiT9yK.js} +3 -3
- package/dist/client/assets/{context-BB5j-Jdw.js → context-BHoetvxj.js} +1 -1
- package/dist/client/assets/{context-menu-BrSBg_ox.js → context-menu-CmlGLO8r.js} +1 -1
- package/dist/client/assets/{context-shell-D7i0aANg.js → context-shell-PkAxZmyt.js} +3 -3
- package/dist/client/assets/{core.esm-FUcIa7Fp.js → core.esm-DkzVh4mV.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-D_0hk2gK.js → create-organization-dialog-_VIsUUpV.js} +1 -1
- package/dist/client/assets/{device-hint-CyMFSeT8.js → device-hint-CdtW8Ayx.js} +1 -1
- package/dist/client/assets/{discover-DJRtlG9n.js → discover-DylE9QvC.js} +1 -1
- package/dist/client/assets/{domain-settings-Y_vTNHIA.js → domain-settings-BuPEVvED.js} +1 -1
- package/dist/client/assets/{drawer-C8tQ9pS2.js → drawer-ChCkx76W.js} +1 -1
- package/dist/client/assets/{editor-QJRHEQ16.js → editor-BKO3Ouyu.js} +1 -1
- package/dist/client/assets/{editor-classes-B6F-sROj.js → editor-classes-BNXGx3Ep.js} +1 -1
- package/dist/client/assets/{empty-state-BCvL-1M3.js → empty-state-DiGOrU7G.js} +1 -1
- package/dist/client/assets/{empty-state-DKsEkDWT.js → empty-state-ajQCApN0.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-CbV3SQAK.js → experiments-tab-choice-BUQKBcCh.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Co4igpCy.js → extract-connection-data-CTb_9Cpr.js} +1 -1
- package/dist/client/assets/{feature-gate-CS539brz.js → feature-gate-DReJia4Z.js} +1 -1
- package/dist/client/assets/{feature-paywall-BVeAB8_F.js → feature-paywall-DbaCusI2.js} +1 -1
- package/dist/client/assets/{feedback-DF1F9BRw.js → feedback-CVUSSdB5.js} +1 -1
- package/dist/client/assets/{file-explorer-Sdd0azAq.js → file-explorer-CgN8XtEL.js} +1 -1
- package/dist/client/assets/{file-preview-BQioSlJw.js → file-preview-CO8Jx_5T.js} +1 -1
- package/dist/client/assets/{file-share-button-Dq-dVjtE.js → file-share-button-B1R4GS_L.js} +1 -1
- package/dist/client/assets/{file-type-icon-CNDz0hBy.js → file-type-icon-Bo3Nsgdh.js} +1 -1
- package/dist/client/assets/{folder-icon-U2FEFXsO.js → folder-icon-DHVgg162.js} +1 -1
- package/dist/client/assets/{form-DXyLAoEr.js → form-BhXakrt_.js} +1 -1
- package/dist/client/assets/{general-DxPErvh9.js → general-BvxlAOrY.js} +1 -1
- package/dist/client/assets/{github-icon-DTSso41S.js → github-icon-BBNizm_E.js} +1 -1
- package/dist/client/assets/{home-C-LgRFYa.js → home-CppOBOPg.js} +1 -1
- package/dist/client/assets/{home-overview-BLmq-j06.js → home-overview-6RI8kIqs.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-BRk5mz3x.js → hosted-reconcile-C9_-UERm.js} +1 -1
- package/dist/client/assets/{icon-button-B4XnwraP.js → icon-button-muPqJd-h.js} +1 -1
- package/dist/client/assets/{index-B6AqVyRx.js → index-2LwpmkET.js} +1 -1
- package/dist/client/assets/{index-kwATYZnP.js → index-878qqrH2.js} +1 -1
- package/dist/client/assets/{index-DObYgDqg.js → index-8ANyj4B7.js} +1 -1
- package/dist/client/assets/{index-BgFyWMUk.js → index-A822oipr.js} +1 -1
- package/dist/client/assets/{index-DovyWo-R.js → index-B6_lV1vO.js} +1 -1
- package/dist/client/assets/{index-RQA3UZ8F.js → index-BRwiTdyd.js} +1 -1
- package/dist/client/assets/{index-cE8Cg_AR.js → index-Bcy7_FA1.js} +1 -1
- package/dist/client/assets/{index-CQ63loJV.js → index-BlAiq0AL.js} +1 -1
- package/dist/client/assets/{index-Bgkjt4vy.js → index-CcqLnTyv.js} +5 -5
- package/dist/client/assets/{index-DP8sH5of.js → index-D146teOp.js} +1 -1
- package/dist/client/assets/{index-BFve9Wi8.js → index-DCh3kkGn.js} +1 -1
- package/dist/client/assets/{index-D3t73ds8.js → index-DhM4mrtt.js} +1 -1
- package/dist/client/assets/{index-D08mzr4H.js → index-GYpV5EH9.js} +1 -1
- package/dist/client/assets/{index-DxfUJlA4.js → index-QDvBZCSy.js} +1 -1
- package/dist/client/assets/{index-BMlrWTB1.js → index-TupjNSVk.js} +1 -1
- package/dist/client/assets/{index-C7lWWhIU.js → index-n9xCS6Sf.js} +1 -1
- package/dist/client/assets/{index-redirect-CcWBc9jM.js → index-redirect-BUCPvmVN.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-X5CcDr9j.js → infiniteQueryObserver-uDA4YvYL.js} +1 -1
- package/dist/client/assets/{infra-billing-DFPWiYwa.js → infra-billing-Bql8vBuZ.js} +1 -1
- package/dist/client/assets/{input-B1ylvcHV.js → input-BDAmWj4c.js} +3 -3
- package/dist/client/assets/{input-BYA2vxZm.js → input-COtL628i.js} +1 -1
- package/dist/client/assets/{integration-icon-C7bRwcH_.js → integration-icon-ChQEBlMz.js} +1 -1
- package/dist/client/assets/{jira-icon-DGCOmFp6.js → jira-icon-CJhoZQuc.js} +1 -1
- package/dist/client/assets/{label-D25-0Wh6.js → label-CsfAEF08.js} +1 -1
- package/dist/client/assets/{layout-DnoCv7Y5.js → layout-B-LTaCR7.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-C5jspcJW.js → legacy-agents-deep-B3LnX3dE.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-D7NT1WBZ.js → legacy-main-redirect-KlovZkVM.js} +1 -1
- package/dist/client/assets/library-B2C1_FfB.js +1 -0
- package/dist/client/assets/{library-tab-tbFrXHgR.js → library-tab-DdqY20-1.js} +1 -1
- package/dist/client/assets/{login-Cn8-U1Kv.js → login-DRAz2Byx.js} +1 -1
- package/dist/client/assets/{markdown-12a9C6gs.js → markdown-CPuTm6Mv.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D5couJ6l.js → mcp-app-renderer-Cigj7X9N.js} +1 -1
- package/dist/client/assets/{mcp-oauth-a2WNYr35.js → mcp-oauth-BU_Qloaj.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BaddOlGq.js → mcp-oauth-ChfuZkYU.js} +1 -1
- package/dist/client/assets/{members-CZ44ad9P.js → members-BDBxWp17.js} +1 -1
- package/dist/client/assets/{memory-C6DEVRSO.js → memory-B9jEAxkU.js} +1 -1
- package/dist/client/assets/{mock-board-DfUD0CJt.js → mock-board-Bsls4MQk.js} +3 -3
- package/dist/client/assets/{monaco-editor-Cn1TEUmq.js → monaco-editor-XS1Vx7aB.js} +1 -1
- package/dist/client/assets/{monitoring-z5KlpAiC.js → monitoring-B3WSTrVO.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B_RviRp-.js → monitoring-stats-row-CuWemrnJ.js} +1 -1
- package/dist/client/assets/{multi-select-DAJzscc4.js → multi-select-C2R3RZPE.js} +1 -1
- package/dist/client/assets/{mustache-BYgEr74H.js → mustache-ByRkTjky.js} +1 -1
- package/dist/client/assets/{named-rule-view-a6Af9Y_h.js → named-rule-view-D9J5jfxv.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DZScwreb.js → new-project-dialog-C_1Rs0SG.js} +1 -1
- package/dist/client/assets/{oauth-callback-CssoBuAl.js → oauth-callback-Du4CoqhX.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DeW99Mbt.js → oauth-callback-ai-provider-CGOatJwS.js} +1 -1
- package/dist/client/assets/{oauth-consent-3FbtrQ-O.js → oauth-consent-DP5dM3Bl.js} +1 -1
- package/dist/client/assets/{onboarding-idlA3-zh.js → onboarding-CNJgq5g8.js} +1 -1
- package/dist/client/assets/{openai-conversation-C88BC7Je.js → openai-conversation-RmvHRGWP.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-C-XQYFtN.js → optimistic-project-sidebar-views-BF6tqK9w.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DRh7v9Pq.js → order-monitor-day-Cs26_K8M.js} +1 -1
- package/dist/client/assets/{organization-choice-D8HF6Nft.js → organization-choice-Bntbf3d6.js} +1 -1
- package/dist/client/assets/{orgs-HEuftt--.js → orgs-CGfTnYKc.js} +1 -1
- package/dist/client/assets/own-accounts-section-Dv_Ox_cI.js +1 -0
- package/dist/client/assets/{pair-Ct1xgxut.js → pair-h0916MQd.js} +1 -1
- package/dist/client/assets/{parse-sections-D-35SZIB.js → parse-sections-BhaTg9vA.js} +3 -3
- package/dist/client/assets/{plan-CfTunmR6.js → plan-GL1imSbx.js} +1 -1
- package/dist/client/assets/{plan-ladder-iJPGG0mc.js → plan-ladder-BLc0_1i8.js} +1 -1
- package/dist/client/assets/{plan-usage-card-CPmF1Mdc.js → plan-usage-card-DWVVT2WQ.js} +1 -1
- package/dist/client/assets/{popover-CRX5tFOb.js → popover-BQnTqyWU.js} +1 -1
- package/dist/client/assets/{post-calendar-BJXCzebc.js → post-calendar-HNq1Smaq.js} +1 -1
- package/dist/client/assets/{post-editor-wf3j_7Z5.js → post-editor-B1Q3Pcgn.js} +1 -1
- package/dist/client/assets/{preview-content-BSZZr-mZ.js → preview-content-DHz0okBk.js} +1 -1
- package/dist/client/assets/{preview-dialog-BcxXfQ6o.js → preview-dialog-geLovY3F.js} +1 -1
- package/dist/client/assets/{preview-panel-Ce1qZOdd.js → preview-panel-5qTld6rM.js} +1 -1
- package/dist/client/assets/{preview-tab-ClX_Bl94.js → preview-tab-DTmM7FWc.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-Q92D1y36.js → product-picker-dialog-CkKwZuBF.js} +1 -1
- package/dist/client/assets/{profile-CERW1LgW.js → profile-DDg9c8sx.js} +1 -1
- package/dist/client/assets/{project-app-view-CEubGD1t.js → project-app-view-BTrJDLFt.js} +1 -1
- package/dist/client/assets/{project-apps-C951mymv.js → project-apps-sFKq8oaX.js} +1 -1
- package/dist/client/assets/{project-icon-CzcU3Mqg.js → project-icon-BlOLnUr2.js} +1 -1
- package/dist/client/assets/{project-index-BJwudS3v.js → project-index-C12cl71J.js} +1 -1
- package/dist/client/assets/project-reports-AxUmLNIH.js +1 -0
- package/dist/client/assets/project-tasks-CAr2Cqy5.js +1 -0
- package/dist/client/assets/{projects-DYDXJVDD.js → projects-APtBmhWY.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DQUhcI6R.js → projects-empty-state-B_-RYmNY.js} +1 -1
- package/dist/client/assets/{prompts-Pr-m_FAx.js → prompts-rGT4H9HS.js} +1 -1
- package/dist/client/assets/record-editor-Ci0iG6uP.js +1 -0
- package/dist/client/assets/{redirect-editor-BGvUBqUv.js → redirect-editor-CMuoDESV.js} +1 -1
- package/dist/client/assets/{reports-DzbfP0a1.js → reports-B5SaRV3H.js} +1 -1
- package/dist/client/assets/reports-D-qIr9kO.js +1 -0
- package/dist/client/assets/{reports-onboarding-fdfwoC5Y.js → reports-onboarding-C3O3uPM5.js} +1 -1
- package/dist/client/assets/{reports-tab-DsenaOP3.js → reports-tab-BU0ZPXc5.js} +2 -2
- package/dist/client/assets/repositories-DcYP84R5.js +1 -0
- package/dist/client/assets/{repositories-BKBt9Cjw.js → repositories-EzK0gp8T.js} +1 -1
- package/dist/client/assets/{repository-binding-SOF1batH.js → repository-binding-CuR-5wbj.js} +1 -1
- package/dist/client/assets/{repository-picker-DL7LhDyE.js → repository-picker-DEa_L5X-.js} +1 -1
- package/dist/client/assets/{require-capability-CulwBmL_.js → require-capability-s4T8ky9G.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Bbj3yijQ.js → required-auth-layout-BnfTNype.js} +1 -1
- package/dist/client/assets/{reset-password-CEDutYaS.js → reset-password-DyQQJ8dn.js} +1 -1
- package/dist/client/assets/{resizable-BF1q0sZm.js → resizable-G0IV9sBv.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-BZMbKk3n.js → resolve-tab-icon-73RgcuQe.js} +1 -1
- package/dist/client/assets/{review-settings-ZkiMBoaj.js → review-settings-CuOWj38_.js} +1 -1
- package/dist/client/assets/{role-color-C9uhwzF-.js → role-color-DsX-V5ks.js} +1 -1
- package/dist/client/assets/{roles-CEON3RQs.js → roles-Dx9qwbnQ.js} +1 -1
- package/dist/client/assets/{route-DEPx9jGW.js → route-BhRhH95H.js} +1 -1
- package/dist/client/assets/route-CSMzYXoN.js +1 -0
- package/dist/client/assets/{route-iWPPipTt.js → route-DyaXyBfS.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-Cuu6DFTF.js → sandbox-lifecycle-context-BbXRjeM5.js} +1 -1
- package/dist/client/assets/{schema-DJM5djBQ.js → schema-D4ZSsKIV.js} +1 -1
- package/dist/client/assets/{schema-DCIk1LTk.js → schema-DyZV-W0g.js} +1 -1
- package/dist/client/assets/{scroll-area-jAJHvOhj.js → scroll-area-Dc2A2LkE.js} +1 -1
- package/dist/client/assets/{search-input-DVDThqIB.js → search-input-DFXG_UYw.js} +1 -1
- package/dist/client/assets/{search-toggle-CI-y0p8p.js → search-toggle-B9QbSQeA.js} +1 -1
- package/dist/client/assets/{secret-picker-popVUrUL.js → secret-picker-DmxIms9y.js} +1 -1
- package/dist/client/assets/{secrets-DalYwIr1.js → secrets-AGU75gav.js} +1 -1
- package/dist/client/assets/{section-array-field-DC06wjHY.js → section-array-field-ClWKGp_4.js} +1 -1
- package/dist/client/assets/{sections-D1hA-xOU.js → sections-BVT_1GZf.js} +1 -1
- package/dist/client/assets/{sections-editor-D78O6u_r.js → sections-editor-CYlxI1p5.js} +1 -1
- package/dist/client/assets/{select-lF0wcoip.js → select-DQqbq83t.js} +1 -1
- package/dist/client/assets/{select-model-D7HU-f3b.js → select-model-DrY_3vXN.js} +1 -1
- package/dist/client/assets/{seo-editor-CtzJbmZQ.js → seo-editor-BlBhyBAl.js} +1 -1
- package/dist/client/assets/{separator-C_6waQwt.js → separator-C0H8Yj6d.js} +1 -1
- package/dist/client/assets/settings-tab-DWTMFT0X.js +1 -0
- package/dist/client/assets/{sheet-B-HfTX7L.js → sheet-B2jsXlHJ.js} +1 -1
- package/dist/client/assets/{shell-layout-DJhfQde-.js → shell-layout-CBX9BtMX.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CMHnwxCd.js → site-draft-actions-CD85gRfI.js} +1 -1
- package/dist/client/assets/{site-draft-view-CwjjGmMd.js → site-draft-view-D0hJTk9N.js} +1 -1
- package/dist/client/assets/site-editor-CWVoX5OY.js +1 -0
- package/dist/client/assets/{site-editor-toast-CFZ3g20k.js → site-editor-toast-CIOA7Zq3.js} +1 -1
- package/dist/client/assets/{skills-TRY4s8Yy.js → skills-XkOrIlnS.js} +1 -1
- package/dist/client/assets/{slider-DGqHqKd3.js → slider-84yNNCUP.js} +1 -1
- package/dist/client/assets/{sortable.esm-DwDHqu2Z.js → sortable.esm-BHALCXRV.js} +1 -1
- package/dist/client/assets/{sso-Am4Nf_A1.js → sso-6pnL0iJa.js} +1 -1
- package/dist/client/assets/{suggestion-9_dojs-y.js → suggestion-C3enCUG8.js} +1 -1
- package/dist/client/assets/{switch-Bh4leDQ8.js → switch-2cMTOO8e.js} +1 -1
- package/dist/client/assets/{synced-repos-lK4skxC9.js → synced-repos-bmkfQV3e.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DQowlddo.js → tab-icon-glyph-lzQzl_Ov.js} +1 -1
- package/dist/client/assets/{table-BVlqjzf4.js → table-DvZCTg5z.js} +1 -1
- package/dist/client/assets/{tabs-CE50d848.js → tabs-BzwzpfZ1.js} +1 -1
- package/dist/client/assets/{task-board-D_hXj2Vy.js → task-board-DcTNURQy.js} +1 -1
- package/dist/client/assets/{task-route-Be5seRTj.js → task-route-DfbZq1yE.js} +1 -1
- package/dist/client/assets/{task-status-1axt5dZB.js → task-status-CxLWWnTs.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-r6HixYm_.js → taskboard-analytics-Cmr5hCm9.js} +1 -1
- package/dist/client/assets/tasks-140YlmT4.js +1 -0
- package/dist/client/assets/{tasks-CdxgNM_V.js → tasks-CzV2b6I-.js} +1 -1
- package/dist/client/assets/{textarea-DnFolSR6.js → textarea-CpPhDLVU.js} +1 -1
- package/dist/client/assets/{thread-analytics-BoSR9_dC.js → thread-analytics-9huoP8m_.js} +1 -1
- package/dist/client/assets/{thread-intent-W-PQxNVd.js → thread-intent-pegObLq9.js} +1 -1
- package/dist/client/assets/{thread-route-B-6djUfH.js → thread-route-D5E5K-lU.js} +1 -1
- package/dist/client/assets/{thread-route-mCuisQJI.js → thread-route-DORnlP1l.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-C1IbmVK3.js → thread-sheet-body-BFBUt-Sx.js} +1 -1
- package/dist/client/assets/{time-range-picker-DihnOOBB.js → time-range-picker-CO070soZ.js} +1 -1
- package/dist/client/assets/{toggle-group-DErjWYXo.js → toggle-group-D9bXIbAb.js} +1 -1
- package/dist/client/assets/{tool-namespace-Dwob85yl.js → tool-namespace-BQSaNq7N.js} +1 -1
- package/dist/client/assets/{tool-set-selector-C4XbxKMC.js → tool-set-selector-DM-ejAZy.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CuzSG6Ep.js → toolbar-icon-button-CTRAa2ng.js} +1 -1
- package/dist/client/assets/{tooltip-BP38juWI.js → tooltip-AKf-E49i.js} +1 -1
- package/dist/client/assets/{tooltipContext-BmU0TqD4.js → tooltipContext-C6xZbBgY.js} +1 -1
- package/dist/client/assets/{track-auFJ_XdC.js → track-ClB7tKVt.js} +1 -1
- package/dist/client/assets/{types-8U8D-Y9v.js → types-BQOtvCBo.js} +1 -1
- package/dist/client/assets/{url-slug-CvXmCpJZ.js → url-slug-ihGFL5bo.js} +1 -1
- package/dist/client/assets/{usage-stats-C-iZo0BZ.js → usage-stats-CVX23WNU.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BIh1KBLl.js → use-ai-providers-BrqJh5BT.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-Cp8bLYtd.js → use-apply-named-rule-BVdRelp-.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CtKzpyFU.js +1 -0
- package/dist/client/assets/{use-automations-BomrPGWU.js → use-automations-B64sqUmg.js} +1 -1
- package/dist/client/assets/{use-autosave-CwfHnqn6.js → use-autosave-CXs3BFTf.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-BPQNHFav.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-BJFKgYgw.js → use-chat-layout-state-Be9vIJ9A.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BqHNyOA0.js → use-cms-publish-actions-_yzMD1wJ.js} +1 -1
- package/dist/client/assets/{use-connect-companion-B9Lrc-HW.js → use-connect-companion-CB7F6AWc.js} +1 -1
- package/dist/client/assets/{use-connection-BT_OOtuG.js → use-connection-CECJF8rf.js} +1 -1
- package/dist/client/assets/{use-content-sync-B0MN54yQ.js → use-content-sync-D6gXnizV.js} +1 -1
- package/dist/client/assets/{use-copy-DrB0tWuk.js → use-copy-CtSedmtg.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BBt-5tGJ.js → use-date-fns-locale-DQTvoMF-.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DsHXF_za.js → use-debounced-autosave-BLJ3k7wG.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CekhRquV.js → use-debounced-value-CcMMD4Qy.js} +1 -1
- package/dist/client/assets/{use-deco-credits-qwzMk2Ai.js → use-deco-credits-C6qbWrOQ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Dd92yoAZ.js → use-decopilot-events-Dc1L96mp.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D-UTTC0v.js → use-delete-connection-Cw1Qu4uu.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DE1jKIDx.js → use-deployment-admin-D9sSgOb1.js} +1 -1
- package/dist/client/assets/{use-entitlements-BWZ6Su0L.js → use-entitlements-BKF4jYfc.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Cqws--qI.js → use-fast-preview-draft-url-TUtYOptx.js} +1 -1
- package/dist/client/assets/{use-file-configs-DpxzYxst.js → use-file-configs-D7-mFpqA.js} +1 -1
- package/dist/client/assets/{use-id-selection-BGnSfWFf.js → use-id-selection-JEuFRU8t.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-lQA3V0xG.js → use-inbox-feed-RrCfNvIm.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-wFaFK15q.js → use-infinite-scroll-Z_9MLZyx.js} +1 -1
- package/dist/client/assets/{use-join-requests-BdaV0Rjj.js → use-join-requests-CANHKzNj.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-Dk8fH1fE.js → use-main-panel-tabs-DA6Ypr8r.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Ck3Se_Y3.js → use-mcp-auth-status-CMC6AisX.js} +1 -1
- package/dist/client/assets/{use-mcp-client-IMgoLgFY.js → use-mcp-client-DvDomB9A.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Bk_g-v-0.js → use-mcp-prompts-CgDM8qHG.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CtpSFCmz.js → use-mcp-tools-mI5K7YKF.js} +1 -1
- package/dist/client/assets/{use-mobile-CW7DCn5M.js → use-mobile-BgN1E82d.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DfaBs3sc.js → use-move-blocks-CPMJkp5h.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DUsfLcvr.js → use-navigate-to-agent-DmfSMV3R.js} +1 -1
- package/dist/client/assets/{use-org-fs-DDvKBG9i.js → use-org-fs-BWA2rFQC.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-C4JLwrAt.js → use-org-repo-syncs-CTHMawzN.js} +1 -1
- package/dist/client/assets/{use-org-sso-BH_ZUFcu.js → use-org-sso-CGB_T6WF.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Ca4qUgyM.js → use-organization-settings-sxurgilE.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-4sY_IqcV.js → use-project-native-view-presence-CwgTlxOv.js} +1 -1
- package/dist/client/assets/{use-project-scope-CxaJ6AcP.js → use-project-scope-Cb4T7-Pe.js} +1 -1
- package/dist/client/assets/{use-recent-apps-kdlh-9NG.js → use-recent-apps-DD97o_H1.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DYAFraaD.js → use-reports-diagnostic-BA9L8p6c.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-Bv6EHRzy.js → use-sandbox-events-CdAdPYjL.js} +1 -1
- package/dist/client/assets/{use-secrets-BwcJJCVK.js → use-secrets-rjK8WMv5.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CWdiCrj1.js → use-section-preview-base-DcuAqWGB.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CEHXblGy.js → use-sidebar-collapsed-B34u6RwD.js} +1 -1
- package/dist/client/assets/{use-tags-CoD8SrC4.js → use-tags-0YxcWwJI.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-B7geh4Sd.js → use-task-board-analytics-tpDvOzAs.js} +1 -1
- package/dist/client/assets/{use-task-board-events-CVDrlP1V.js → use-task-board-events-CGZxY00s.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BrtOevur.js → use-task-board-item-prs-B6YW8nsa.js} +1 -1
- package/dist/client/assets/{use-task-board-items-COv-bhs6.js → use-task-board-items-BcL-6L6N.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-Dx8vM0fR.js → use-task-board-prompts-B9dDmO_e.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DPZ7Y524.js → use-task-metadata-hgLXNv36.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Pm3V0nbB.js → use-thread-outputs-X5IsW797.js} +1 -1
- package/dist/client/assets/{use-voice-input-DwO5kNPT.js → use-voice-input-DmZaOhTZ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-WRSkkanY.js +1 -0
- package/dist/client/assets/{useQueries-CvrSJ4L5.js → useQueries-BbhbAWNG.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B1s2URZC.js +1 -0
- package/dist/client/assets/{users-B-jZ9pgk.js → users-BNwLmtY6.js} +1 -1
- package/dist/client/assets/{utils-CnVlph4k.js → utils-KeMhVvdQ.js} +1 -1
- package/dist/client/assets/{variant-calendar-DSMYmXmT.js → variant-calendar-VCJbhkWd.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DCs6FrU7.js → variant-matcher-override-DLQRivi9.js} +1 -1
- package/dist/client/assets/{view-header-CggAPEpA.js → view-header-cnfShdRT.js} +1 -1
- package/dist/client/assets/{virtual-mcp-knTda3gw.js → virtual-mcp-YmAa-VVd.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CjiXfMh2.js → watch-sse-pool-CYcZM1HP.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B_xuQBe4.js +0 -1
- package/dist/client/assets/agent-deck-DrS8cvv6.js +0 -1
- package/dist/client/assets/agent-experiments-BmXzB7sO.js +0 -1
- package/dist/client/assets/agent-library-BeOICuv4.js +0 -1
- package/dist/client/assets/agent-library-file-BLEe6X-g.js +0 -1
- package/dist/client/assets/agent-overview-DK7iRg_t.js +0 -1
- package/dist/client/assets/agent-settings-BjOD_o2l.js +0 -1
- package/dist/client/assets/agent-site-editor-code--mSzyNhn.js +0 -2
- package/dist/client/assets/agent-site-editor-content-CxN1Ldoy.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-RW-nzlvn.js +0 -1
- package/dist/client/assets/agent-view-DaSIF8yy.js +0 -1
- package/dist/client/assets/api-keys-CI8mz52i.js +0 -1
- package/dist/client/assets/library-B8KAYORe.js +0 -1
- package/dist/client/assets/own-accounts-section-BoGn4pOO.js +0 -1
- package/dist/client/assets/project-reports-BfKeLcLP.js +0 -1
- package/dist/client/assets/project-tasks-Dn-Gv_TR.js +0 -1
- package/dist/client/assets/record-editor-DBJCnSL6.js +0 -1
- package/dist/client/assets/reports-DR2YJPbu.js +0 -1
- package/dist/client/assets/repositories-ByhK-3bU.js +0 -1
- package/dist/client/assets/route-D7DW4Q6o.js +0 -1
- package/dist/client/assets/settings-tab-udmQO91m.js +0 -1
- package/dist/client/assets/site-editor-DG5keOVm.js +0 -1
- package/dist/client/assets/tasks-BWjB_1VS.js +0 -1
- package/dist/client/assets/use-ask-in-chat-BvyYDdXE.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-iz2iNvo9.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Sda1zjLQ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CscGJh0l.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ue,r as xe,d as ns,a5 as ht,b as Pe,j as t,B as je,t as dt,bx as Yt,ak as as,K as bt,i as Et,a6 as As,m as ot,gy as _s,o as cs,h as Ks,bB as Us,ac as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,bU as Js,h8 as Gs,T as Qs,W as Ys,I as Xt}from"./index-
|
|
1
|
+
import{c as ue,r as xe,d as ns,a5 as ht,b as Pe,j as t,B as je,t as dt,bx as Yt,ak as as,K as bt,i as Et,a6 as As,m as ot,gy as _s,o as cs,h as Ks,bB as Us,ac as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,bU as Js,h8 as Gs,T as Qs,W as Ys,I as Xt}from"./index-CcqLnTyv.js";import{S as Ws}from"./search-input-DFXG_UYw.js";import{E as Ht}from"./empty-state-DiGOrU7G.js";import{R as Xs}from"./require-capability-s4T8ky9G.js";import{f as js}from"./pair-h0916MQd.js";import{u as ts}from"./use-connection-CECJF8rf.js";import{g as Ps}from"./connection-slug-BQwcAWfG.js";import{B as Lt}from"./badge-DtxRsHGH.js";import{P as ds,a as ms,b as us}from"./popover-BQnTqyWU.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-AKf-E49i.js";import{F as fs,e as Ut,bX as el,aV as Ns,Y as tl}from"./agent-icon-DqjTL3cE.js";import{i as sl}from"./Key01-D0Pq98hT.js";import{i as ll}from"./Play-D_ph4pZ0.js";import{MonacoCodeEditor as bs}from"./monaco-editor-XS1Vx7aB.js";import{u as rl}from"./use-mcp-client-DvDomB9A.js";import{a as il}from"./repository-binding-CuR-5wbj.js";import{n as Ot}from"./LinkBroken01-C9GtmpYY.js";import{c as ol}from"./SwitchHorizontal01-D7HAXgYP.js";import{s as nl}from"./Plus-D8rFucQH.js";import{s as al}from"./Trash01-CHCe7_6o.js";import{M as zt}from"./multi-select-C2R3RZPE.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-DQqbq83t.js";import{e as ys,T as cl}from"./time-range-picker-CO070soZ.js";import{T as dl}from"./textarea-CpPhDLVU.js";import{C as Ds}from"./collection-tabs-Trcf-II9.js";import{S as ml}from"./switch-2cMTOO8e.js";import{L as ul}from"./label-CsfAEF08.js";import{I as It}from"./integration-icon-ChQEBlMz.js";import{A as fl,a as xl,b as pl}from"./alert-Cddl0pAs.js";import{K as gt}from"./monitoring-stats-row-CuWemrnJ.js";import{b as Bt}from"./use-entitlements-BKF4jYfc.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-BFBUt-Sx.js";import{u as wl}from"./useSuspenseInfiniteQuery-B1s2URZC.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-B2jsXlHJ.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-DvZCTg5z.js";import{n as ss,t as ls}from"./ChevronUp-DRG0w_P4.js";import{u as Os}from"./use-id-selection-JEuFRU8t.js";import{u as Fs}from"./use-infinite-scroll-Z_9MLZyx.js";import{u as Il}from"./useInfiniteQuery-WRSkkanY.js";import{g as Tl}from"./task-status-CxLWWnTs.js";import{u as kl,d as Ml}from"./use-automations-B64sqUmg.js";import{A as _l}from"./automation-runs-BHP_sOU-.js";import{i as Pl}from"./ArrowLeft-B1m5qQi9.js";import{E as Cs}from"./empty-state-ajQCApN0.js";import{O as $s}from"./watch-sse-pool-CYcZM1HP.js";import{t as Dl}from"./task-key-BCHdFiOO.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-Cs26_K8M.js";import{F as $l}from"./feature-gate-DReJia4Z.js";import"./SearchMd-2MPq0KPN.js";import"./access-gate-BjRwuLrP.js";import"./capability-load-error-gokttFVD.js";import"./Tool01-BTDYOKsB.js";import"./collapsible-C6tkGF0M.js";import"./use-copy-CtSedmtg.js";import"./usage-stats-CVX23WNU.js";import"./tool-namespace-BQSaNq7N.js";import"./form-BhXakrt_.js";import"./utils-CVEq3hMx.js";import"./markdown-CPuTm6Mv.js";import"./chat-context-aSjAR9mm.js";import"./autosend-_WPHuuuS.js";import"./thread-route-D5E5K-lU.js";import"./use-project-scope-Cb4T7-Pe.js";import"./thread-intent-pegObLq9.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BrqJh5BT.js";import"./use-decopilot-events-Dc1L96mp.js";import"./use-organization-settings-sxurgilE.js";import"./schema-D4ZSsKIV.js";import"./task-board-DcTNURQy.js";import"./use-mobile-BgN1E82d.js";import"./shell-layout-CBX9BtMX.js";import"./Globe04--FaZazgw.js";import"./UserSquare-BJHrMhrM.js";import"./use-deployment-admin-D9sSgOb1.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-BDiB_Nvo.js";import"./CheckCircle-B4NfGYxe.js";import"./Monitor01-Su614Ctg.js";import"./Zap-DpvU6Dp2.js";import"./command-CtR4gjCr.js";import"./index-DCh3kkGn.js";import"./project-icon-BlOLnUr2.js";import"./use-navigate-to-agent-DmfSMV3R.js";import"./use-debounced-value-CcMMD4Qy.js";import"./new-project-dialog-C_1Rs0SG.js";import"./repository-picker-DEa_L5X-.js";import"./github-icon-BBNizm_E.js";import"./collection-search-iHJVqUHB.js";import"./ShoppingBag01-DDCYsqx9.js";import"./required-auth-layout-BnfTNype.js";import"./use-org-sso-CGB_T6WF.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Cigj7X9N.js";import"./types-BQOtvCBo.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./AlertCircle-kYtqXGU8.js";import"./use-mcp-prompts-CgDM8qHG.js";import"./use-thread-outputs-X5IsW797.js";import"./file-type-icon-Bo3Nsgdh.js";import"./index-D146teOp.js";import"./ArrowUp-DcYpepHk.js";import"./ChevronSelectorVertical-EqyUOMMk.js";import"./CreditCard01-BLl0RgXC.js";import"./Minus-eGpg4-RN.js";import"./Sun-Dvv08Urq.js";import"./Upload01-Q6ECKQXp.js";import"./Users01-DHfg9AEk.js";import"./editor-BKO3Ouyu.js";import"./auth-qAWEiaXq.js";import"./checkbox-CBfkrmis.js";import"./index-BdQq_4o_.js";import"./scroll-area-Dc2A2LkE.js";import"./calendar-gF784tOB.js";import"./chart-2s7SvZtT.js";import"./CategoricalChart-Bp-vLaQf.js";import"./index-GYpV5EH9.js";import"./tooltipContext-C6xZbBgY.js";import"./CartesianChart-BfCEFz3y.js";import"./AreaChart-DDNkWSZu.js";import"./infiniteQueryObserver-uDA4YvYL.js";import"./useQueries-BbhbAWNG.js";import"./ReferenceLine-BsZk9TgE.js";import"./feature-paywall-DbaCusI2.js";import"./plan-ladder-BLc0_1i8.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Is(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Kl(s){const e={},l={},i=[],m={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(m[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,a5 as A,aS as le,m as B,j as r,R as ae,r as R,b as $,t as z,h as H,w as U,x as V,v as Q,D as W,d as X,E as G,aT as ne,B as Y}from"./index-Bgkjt4vy.js";import{n as oe}from"./ArrowUp-cgUvwam2.js";import{d as ie,b as Z,f as ce,u as de,T as me,A as ue,o as fe,p as pe,c as xe,q as ge,v as he,x as be,L as je}from"./chat-context-WEEHZlsn.js";import{s as ye,g as J,d as ve}from"./tool-namespace-Dwob85yl.js";import{b as F,T as we,a as Ne,c as Se}from"./tooltip-BP38juWI.js";import{d as Ce,b as Te,a as Pe,D as ke}from"./drawer-C8tQ9pS2.js";import{C as Ee}from"./collection-search-Ck-1gfFY.js";import{u as De}from"./use-mobile-CW7DCn5M.js";import{u as Me}from"./use-mcp-client-IMgoLgFY.js";import{u as _e,g as Ie}from"./use-mcp-prompts-Bk_g-v-0.js";import{c as Le,P as Re}from"./usage-stats-C-iZo0BZ.js";import{T as Be,c as Oe,b as $e,d as Ae,H as Fe}from"./input-B1ylvcHV.js";import{u as ze,a as He,S as Ge,M as q}from"./pair-Ct1xgxut.js";import{a as qe}from"./autosend-DL4CutFR.js";import{u as Ke}from"./thread-intent-W-PQxNVd.js";import{N as Ue}from"./index-D3t73ds8.js";import{i as Ve}from"./LinkBroken01-a5oI2X-K.js";import{f as ee}from"./agent-icon-BGTckvlP.js";import{d as Qe}from"./use-entitlements-BWZ6Su0L.js";import{u as We}from"./use-deco-credits-qwzMk2Ai.js";import{F as Xe}from"./feature-paywall-BVeAB8_F.js";import{i as Ye}from"./AlertCircle-Cbs5Ab1P.js";const K=3,te="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-muted text-muted-foreground text-sm font-medium transition-colors cursor-pointer",Ze="flex flex-col gap-1.5 p-4 rounded-xl bg-accent/40 text-sm leading-snug transition-colors cursor-pointer text-left";function se(t){const e=L.c(46),{item:l,onSelect:a,isLoading:s,isDisabled:n,variant:d}=t,o=d===void 0?"pill":d,{prompt:i}=l;let m;if(e[0]!==i._meta||e[1]!==i.name||e[2]!==i.title){const P=J(i._meta);m=i.title??ve(i.name,P),e[0]=i._meta,e[1]=i.name,e[2]=i.title,e[3]=m}else m=e[3];const c=m,f=i.description||null;if(o==="card"){let P;e[4]!==a||e[5]!==i?(P=()=>a(i),e[4]=a,e[5]=i,e[6]=P):P=e[6];const M=n||s,_=s&&"bg-accent/40",k=(n||s)&&"cursor-not-allowed opacity-50";let E;e[7]!==_||e[8]!==k?(E=B(Ze,"hover:bg-accent text-foreground",_,k),e[7]=_,e[8]=k,e[9]=E):E=e[9];let x;e[10]!==c?(x=r.jsx("span",{className:"font-medium truncate capitalize",children:c}),e[10]=c,e[11]=x):x=e[11];let w;e[12]!==s?(w=s&&r.jsx(H,{size:"xs"}),e[12]=s,e[13]=w):w=e[13];let p;e[14]!==x||e[15]!==w?(p=r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[x,w]}),e[14]=x,e[15]=w,e[16]=p):p=e[16];let D;e[17]!==f?(D=f&&r.jsx("span",{className:"text-xs text-muted-foreground line-clamp-2",children:f}),e[17]=f,e[18]=D):D=e[18];let I;return e[19]!==p||e[20]!==D||e[21]!==P||e[22]!==M||e[23]!==E?(I=r.jsxs("button",{type:"button",onClick:P,disabled:M,className:E,children:[p,D]}),e[19]=p,e[20]=D,e[21]=P,e[22]=M,e[23]=E,e[24]=I):I=e[24],I}let u;e[25]!==a||e[26]!==i?(u=()=>a(i),e[25]=a,e[26]=i,e[27]=u):u=e[27];const v=n||s,b=s&&"bg-muted/50",N=(n||s)&&"cursor-not-allowed opacity-50";let g;e[28]!==b||e[29]!==N?(g=B(te,"hover:bg-accent hover:text-foreground",b,N),e[28]=b,e[29]=N,e[30]=g):g=e[30];let j;e[31]!==c?(j=r.jsx("span",{className:"capitalize",children:c}),e[31]=c,e[32]=j):j=e[32];let S;e[33]!==s?(S=s&&r.jsx(H,{size:"xs"}),e[33]=s,e[34]=S):S=e[34];let y;e[35]!==u||e[36]!==v||e[37]!==g||e[38]!==j||e[39]!==S?(y=r.jsx(we,{asChild:!0,children:r.jsxs("button",{type:"button",onClick:u,disabled:v,className:g,children:[j,S]})}),e[35]=u,e[36]=v,e[37]=g,e[38]=j,e[39]=S,e[40]=y):y=e[40];const C=f??c;let h;e[41]!==C?(h=r.jsx(Ne,{side:"top",className:"max-w-xs",children:r.jsx("p",{className:"text-xs",children:C})}),e[41]=C,e[42]=h):h=e[42];let T;return e[43]!==y||e[44]!==h?(T=r.jsxs(Se,{delayDuration:400,children:[y,h]}),e[43]=y,e[44]=h,e[45]=T):T=e[45],T}function Je(t){const e=L.c(61),{items:l,open:a,onOpenChange:s,onSelect:n,loadingPrompt:d}=t,o=$(),[i,m]=R.useState(""),c=!!d;let f;e[0]!==l||e[1]!==i?(f=i.trim()?l.filter(x=>{const w=i.toLowerCase();return x.prompt.name.toLowerCase().includes(w)||(x.prompt.title??"").toLowerCase().includes(w)||(x.prompt.description??"").toLowerCase().includes(w)}):l,e[0]=l,e[1]=i,e[2]=f):f=e[2];const u=f,v=De();let b;e[3]!==u.length||e[4]!==i||e[5]!==o?(b=u.length===0&&r.jsx("p",{className:"col-span-4 text-sm text-muted-foreground text-center py-8",children:o("chat.iceBreakers.noPromptsMatch",{search:i})}),e[3]=u.length,e[4]=i,e[5]=o,e[6]=b):b=e[6];let N;if(e[7]!==u||e[8]!==c||e[9]!==d?.name||e[10]!==s||e[11]!==n){let x;e[13]!==c||e[14]!==d?.name||e[15]!==s||e[16]!==n?(x=w=>r.jsx(se,{item:w,variant:"card",onSelect:p=>{s(!1),n(p)},isLoading:d?.name===w.prompt.name,isDisabled:c&&d?.name!==w.prompt.name},w.prompt.name),e[13]=c,e[14]=d?.name,e[15]=s,e[16]=n,e[17]=x):x=e[17],N=u.map(x),e[7]=u,e[8]=c,e[9]=d?.name,e[10]=s,e[11]=n,e[12]=N}else N=e[12];let g;e[18]!==b||e[19]!==N?(g=r.jsx("div",{className:"flex-1 overflow-y-auto [scrollbar-gutter:stable]",children:r.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 p-5",children:[b,N]})}),e[18]=b,e[19]=N,e[20]=g):g=e[20];const j=g;let S;e[21]!==o?(S=o("chat.iceBreakers.searchPromptsPlaceholder"),e[21]=o,e[22]=S):S=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=x=>{x.key==="Escape"&&m("")},e[23]=y):y=e[23];let C;e[24]!==i||e[25]!==S?(C=r.jsx(Ee,{value:i,onChange:m,placeholder:S,onKeyDown:y}),e[24]=i,e[25]=S,e[26]=C):C=e[26];const h=C;if(v){let x;e[27]!==o?(x=o("chat.iceBreakers.allPromptsTitle"),e[27]=o,e[28]=x):x=e[28];let w;e[29]!==x?(w=r.jsx(Ce,{className:"sr-only",children:r.jsx(Te,{children:x})}),e[29]=x,e[30]=w):w=e[30];let p;e[31]!==o?(p=o("chat.iceBreakers.promptsLabel"),e[31]=o,e[32]=p):p=e[32];let D;e[33]!==p?(D=r.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:r.jsx("span",{className:"text-sm font-medium text-foreground",children:p})}),e[33]=p,e[34]=D):D=e[34];let I;e[35]!==j||e[36]!==h||e[37]!==D||e[38]!==w?(I=r.jsxs(Pe,{className:"h-[85vh] flex flex-col p-0 gap-0",children:[w,D,h,j]}),e[35]=j,e[36]=h,e[37]=D,e[38]=w,e[39]=I):I=e[39];let O;return e[40]!==s||e[41]!==a||e[42]!==I?(O=r.jsx(F,{delayDuration:400,children:r.jsx(ke,{open:a,onOpenChange:s,children:I})}),e[40]=s,e[41]=a,e[42]=I,e[43]=O):O=e[43],O}let T;e[44]!==o?(T=o("chat.iceBreakers.allPromptsTitle"),e[44]=o,e[45]=T):T=e[45];let P;e[46]!==T?(P=r.jsx(U,{className:"sr-only",children:r.jsx(V,{children:T})}),e[46]=T,e[47]=P):P=e[47];let M;e[48]!==o?(M=o("chat.iceBreakers.promptsLabel"),e[48]=o,e[49]=M):M=e[49];let _;e[50]!==M?(_=r.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:r.jsx("span",{className:"text-sm font-medium text-foreground",children:M})}),e[50]=M,e[51]=_):_=e[51];let k;e[52]!==j||e[53]!==h||e[54]!==_||e[55]!==P?(k=r.jsxs(Q,{className:"sm:max-w-[1100px] h-[680px] p-0 gap-0 overflow-hidden flex flex-col",children:[P,_,h,j]}),e[52]=j,e[53]=h,e[54]=_,e[55]=P,e[56]=k):k=e[56];let E;return e[57]!==s||e[58]!==a||e[59]!==k?(E=r.jsx(F,{delayDuration:400,children:r.jsx(W,{open:a,onOpenChange:s,children:k})}),e[57]=s,e[58]=a,e[59]=k,e[60]=E):E=e[60],E}function et(t){const e=L.c(30),{items:l,onSelect:a,loadingPrompt:s,className:n}=t,d=$(),[o,i]=R.useState(!1);if(l.length===0)return null;let m,c,f,u,v;if(e[0]!==n||e[1]!==l||e[2]!==s||e[3]!==a||e[4]!==d){const j=l.slice(0,K),S=l.slice(K),y=!!s;let C;e[10]!==y||e[11]!==s?.name||e[12]!==a?(C=T=>r.jsx(se,{item:T,onSelect:a,isLoading:s?.name===T.prompt.name,isDisabled:y&&s?.name!==T.prompt.name},T.prompt.name),e[10]=y,e[11]=s?.name,e[12]=a,e[13]=C):C=e[13];const h=j.map(C);m=F,v=400,e[14]!==n?(c=B("w-full flex flex-wrap gap-2 justify-center",n),e[14]=n,e[15]=c):c=e[15],f=h,u=S.length>0&&r.jsx("button",{type:"button",disabled:y,onClick:()=>i(!0),className:B(te,"hover:bg-accent hover:text-foreground",y&&"opacity-50 cursor-not-allowed"),children:d("chat.iceBreakers.moreButton",{count:S.length})}),e[0]=n,e[1]=l,e[2]=s,e[3]=a,e[4]=d,e[5]=m,e[6]=c,e[7]=f,e[8]=u,e[9]=v}else m=e[5],c=e[6],f=e[7],u=e[8],v=e[9];let b;e[16]!==c||e[17]!==f||e[18]!==u?(b=r.jsxs("div",{className:c,children:[f,u]}),e[16]=c,e[17]=f,e[18]=u,e[19]=b):b=e[19];let N;e[20]!==l||e[21]!==s||e[22]!==o||e[23]!==a?(N=r.jsx(Je,{items:l,open:o,onOpenChange:i,onSelect:a,loadingPrompt:s}),e[20]=l,e[21]=s,e[22]=o,e[23]=a,e[24]=N):N=e[24];let g;return e[25]!==m||e[26]!==v||e[27]!==b||e[28]!==N?(g=r.jsxs(m,{delayDuration:v,children:[b,N]}),e[25]=m,e[26]=v,e[27]=b,e[28]=N,e[29]=g):g=e[29],g}function tt(){return null}function st(t,e){switch(e.type){case"SELECT_PROMPT":return!e.prompt.arguments||e.prompt.arguments.length===0?{stage:"loading",prompt:e.prompt}:{stage:"idle"};case"START_LOADING":return{stage:"loading",prompt:e.prompt,arguments:e.arguments};case"RESET":return{stage:"idle"};default:return t}}function rt(t){const e=L.c(31),{connectionId:l}=t,a=$(),{sendMessage:s}=Z(),{org:n}=A();let d;e[0]!==l||e[1]!==n.id||e[2]!==n.slug?(d={connectionId:l,orgId:n.id,orgSlug:n.slug},e[0]=l,e[1]=n.id,e[2]=n.slug,e[3]=d):d=e[3];const o=Me(d);let i;e[4]!==o?(i={client:o,staleTime:6e4},e[4]=o,e[5]=i):i=e[5];const{data:m}=_e(i);let c;e[6]!==m?.prompts?(c=m?.prompts??[],e[6]=m?.prompts,e[7]=c):c=e[7];const f=c;let u;e[8]!==f?(u=f.map(lt),e[8]=f,e[9]=u):u=e[9];const v=u;let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b={stage:"idle"},e[10]=b):b=e[10];const[N,g]=R.useReducer(st,b),[j,S]=R.useState(null);let y;e[11]!==o||e[12]!==s||e[13]!==a?(y=async(p,D)=>{if(!o){z.error(a("chat.iceBreakers.mcpClientNotAvailable")),g({type:"RESET"});return}try{const I=await Ie(o,p.name,D);g({type:"RESET"});const O={type:"doc",content:[{type:"paragraph",content:[Le({id:p.name,name:ye(p.name,J(p._meta)),metadata:I.messages,char:"/",kind:"prompt",args:D}),{type:"text",text:" "}]}]};await s(O)}catch(I){console.error("[ice-breakers] Failed to fetch prompt:",I),z.error(a("chat.iceBreakers.failedToLoadPrompt")),g({type:"RESET"})}},e[11]=o,e[12]=s,e[13]=a,e[14]=y):y=e[14];const C=y;let h;e[15]!==C?(h=async p=>{if(p.arguments&&p.arguments.length>0){g({type:"SELECT_PROMPT",prompt:p}),S(p);return}g({type:"START_LOADING",prompt:p}),await C(p)},e[15]=C,e[16]=h):h=e[16];const T=h;let P;e[17]!==j||e[18]!==C?(P=async p=>{j&&(g({type:"START_LOADING",prompt:j,arguments:p}),S(null),await C(j,p))},e[17]=j,e[18]=C,e[19]=P):P=e[19];const M=P;if(v.length===0)return null;const _=N.stage==="loading"?N.prompt:null;let k;e[20]!==T||e[21]!==v||e[22]!==_?(k=r.jsx(et,{items:v,onSelect:T,loadingPrompt:_}),e[20]=T,e[21]=v,e[22]=_,e[23]=k):k=e[23];let E;e[24]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{S(null),g({type:"RESET"})},e[24]=E):E=e[24];let x;e[25]!==j||e[26]!==M?(x=r.jsx(Re,{prompt:j,setPrompt:E,onSubmit:M}),e[25]=j,e[26]=M,e[27]=x):x=e[27];let w;return e[28]!==k||e[29]!==x?(w=r.jsxs(r.Fragment,{children:[k,x]}),e[28]=k,e[29]=x,e[30]=w):w=e[30],w}function lt(t){return{prompt:t}}function at(t){const e=L.c(13),{className:l}=t,{selectedVirtualMcp:a}=ie(),{org:s}=A();let n;e[0]!==s.id?(n=le(s.id),e[0]=s.id,e[1]=n):n=e[1];const d=n.id,o=a?.id??d;let i;e[2]!==l?(i=B("w-full @container",l),e[2]=l,e[3]=i):i=e[3];const m=o??"default";let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(tt,{}),e[4]=c):c=e[4];let f;e[5]!==o?(f=r.jsx(rt,{connectionId:o}),e[5]=o,e[6]=f):f=e[6];let u;e[7]!==m||e[8]!==f?(u=r.jsx(ae,{fallback:null,children:r.jsx(R.Suspense,{fallback:c,children:f},m)}),e[7]=m,e[8]=f,e[9]=u):u=e[9];let v;return e[10]!==i||e[11]!==u?(v=r.jsx("div",{className:i,children:u}),e[10]=i,e[11]=u,e[12]=v):v=e[12],v}function nt(t){let e=0;for(const l of t)for(const a of l.parts??[]){const s=a;s.type==="tool-load_repo"&&s.state==="output-available"&&s.output?.success===!0&&e++}return e}function ot(){const t=L.c(8),{openPanel:e}=qe(),l=Ke(),a=ce()?.messages??[],s=de()?.taskId??null;let n;t[0]!==a?(n=nt(a),t[0]=a,t[1]=n):n=t[1];const d=n,o=R.useRef(null),i=R.useRef(null);let m,c;t[2]!==d||t[3]!==l||t[4]!==e||t[5]!==s?(m=()=>{if(!d||!s)return;const f=`${s}:${d}`;i.current!==f&&(i.current=f,l?.refreshThreadMetadata(s)),o.current!==s&&(o.current=s,e("site-editor"))},c=[d,s,e,l],t[2]=d,t[3]=l,t[4]=e,t[5]=s,t[6]=m,t[7]=c):(m=t[6],c=t[7]),R.useEffect(m,c)}function re(t){return`deco-credits-empty-dismissed:${t}`}function Ft(t){try{return localStorage.getItem(re(t))==="1"}catch{return!1}}function it(){const t=L.c(56),e=$(),{org:l}=A(),a=Qe("credits"),s=X(),{decoKeyId:n}=We(),[d,o]=R.useState(!0);let i;t[0]!==l.id?(i=()=>{G("credits_empty_state_dismissed",{organization_id:l.id}),o(!1);try{localStorage.setItem(re(l.id),"1")}catch{}},t[0]=l.id,t[1]=i):i=t[1];const m=i;let c,f;if(t[2]!==d||t[3]!==l.id?(c=()=>{d&&G("credits_empty_state_shown",{organization_id:l.id})},f=[d,l.id],t[2]=d,t[3]=l.id,t[4]=c,t[5]=f):(c=t[4],f=t[5]),R.useEffect(c,f),!d)return null;if(!a){let p;t[6]!==e?(p=e("chat.input.allowanceExhaustedTitle"),t[6]=e,t[7]=p):p=t[7];let D;t[8]!==p?(D={title:p},t[8]=p,t[9]=D):D=t[9];let I;return t[10]!==m||t[11]!==D?(I=r.jsx(Xe,{feature:"chat",copy:D,onDismiss:m}),t[10]=m,t[11]=D,t[12]=I):I=t[12],I}let u;t[13]!==m?(u=p=>!p&&m(),t[13]=m,t[14]=u):u=t[14];let v;t[15]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),t[15]=v):v=t[15];let b;t[16]===Symbol.for("react.memo_cache_sentinel")?(b=r.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:r.jsx(ee,{size:20,className:"text-warning"})}),t[16]=b):b=t[16];let N;t[17]!==e?(N=e("chat.creditsEmptyState.title"),t[17]=e,t[18]=N):N=t[18];let g;t[19]!==N?(g=r.jsx(V,{className:"text-lg font-semibold",children:N}),t[19]=N,t[20]=g):g=t[20];let j;t[21]!==e?(j=e("chat.creditsEmptyState.description"),t[21]=e,t[22]=j):j=t[22];let S;t[23]!==j?(S=r.jsx(ne,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:j}),t[23]=j,t[24]=S):S=t[24];let y;t[25]!==g||t[26]!==S?(y=r.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[v,r.jsxs(U,{className:"relative gap-3",children:[b,r.jsxs("div",{className:"text-center",children:[g,S]})]})]}),t[25]=g,t[26]=S,t[27]=y):y=t[27];let C;t[28]!==n||t[29]!==m?(C=n&&r.jsx("div",{className:"px-6 pb-5",children:r.jsx(Be,{source:"empty_state",onDone:m})}),t[28]=n,t[29]=m,t[30]=C):C=t[30];let h;t[31]!==m||t[32]!==s||t[33]!==l.slug?(h=()=>{s({to:"/$org/settings/ai-providers",params:{org:l.slug}}),m()},t[31]=m,t[32]=s,t[33]=l.slug,t[34]=h):h=t[34];let T;t[35]!==e?(T=e("chat.creditsEmptyState.useYourOwnProvider"),t[35]=e,t[36]=T):T=t[36];let P;t[37]===Symbol.for("react.memo_cache_sentinel")?(P=r.jsx(Ve,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),t[37]=P):P=t[37];let M;t[38]!==h||t[39]!==T?(M=r.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:h,children:[T,P]}),t[38]=h,t[39]=T,t[40]=M):M=t[40];let _;t[41]!==e?(_=e("chat.creditsEmptyState.skipForNow"),t[41]=e,t[42]=_):_=t[42];let k;t[43]!==m||t[44]!==_?(k=r.jsx(Y,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:m,children:_}),t[43]=m,t[44]=_,t[45]=k):k=t[45];let E;t[46]!==M||t[47]!==k?(E=r.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[M,k]}),t[46]=M,t[47]=k,t[48]=E):E=t[48];let x;t[49]!==y||t[50]!==C||t[51]!==E?(x=r.jsxs(Q,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:ct,children:[y,C,E]}),t[49]=y,t[50]=C,t[51]=E,t[52]=x):x=t[52];let w;return t[53]!==x||t[54]!==u?(w=r.jsx(W,{open:!0,onOpenChange:u,children:x}),t[53]=x,t[54]=u,t[55]=w):w=t[55],w}function ct(t){return t.preventDefault()}function dt(t){const e=L.c(6),{balanceDollars:l}=t;let a;e[0]!==l?(a=l.toFixed(2),e[0]=l,e[1]=a):a=e[1];const s=a;let n,d;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=B("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),d=r.jsx(ee,{size:13,className:"text-success"}),e[2]=n,e[3]=d):(n=e[2],d=e[3]);let o;return e[4]!==s?(o=r.jsxs("div",{className:n,children:[d,r.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",s," in credits to get started"]})]}),e[4]=s,e[5]=o):o=e[5],o}function mt(){const t=L.c(8),{org:e}=A(),l=X();let a;t[0]!==l||t[1]!==e.slug?(a=()=>l({to:"/$org/settings/ai-providers",params:{org:e.slug}}),t[0]=l,t[1]=e.slug,t[2]=a):a=t[2];let s,n,d;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=B("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),n=r.jsx(Ye,{size:13,className:"text-warning"}),d=r.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),t[3]=s,t[4]=n,t[5]=d):(s=t[3],n=t[4],d=t[5]);let o;return t[6]!==a?(o=r.jsxs("button",{type:"button",onClick:a,className:s,children:[n,d]}),t[6]=a,t[7]=o):o=t[7],o}function ut(t){const e=L.c(7),{scrollRef:l,sentinelRef:a,hasMoreOlder:s,isFetchingOlder:n,fetchOlderMessages:d}=t;let o,i;e[0]!==d||e[1]!==s||e[2]!==n||e[3]!==l||e[4]!==a?(o=()=>{const m=a.current,c=l.current;if(!m||!c||!s)return;const f=new IntersectionObserver(async u=>{if(!u[0]?.isIntersecting||n||!s)return;const b=c.scrollHeight,N=c.scrollTop;await d(),requestAnimationFrame(()=>{const g=c.scrollHeight;c.scrollTop=N+(g-b)})},{root:c,rootMargin:"200px 0px 0px 0px"});return f.observe(m),()=>f.disconnect()},i=[l,a,s,n,d],e[0]=d,e[1]=s,e[2]=n,e[3]=l,e[4]=a,e[5]=o,e[6]=i):(o=e[5],i=e[6]),R.useEffect(o,i)}function ft(t){const e=L.c(5),{className:l,children:a}=t;let s;e[0]!==l?(s=B("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",l),e[0]=l,e[1]=s):s=e[1];let n;return e[2]!==a||e[3]!==s?(n=r.jsx("div",{className:s,children:a}),e[2]=a,e[3]=s,e[4]=n):n=e[4],n}function pt(t){const e=L.c(5),{children:l,className:a}=t;let s;e[0]!==a?(s=B("flex-1 min-h-0 overflow-y-auto isolate",a),e[0]=a,e[1]=s):s=e[1];let n;return e[2]!==l||e[3]!==s?(n=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=n):n=e[4],n}function xt(t){const e=L.c(2),{children:l}=t;let a;return e[0]!==l?(a=r.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:l}),e[0]=l,e[1]=a):a=e[1],a}function gt(){const t=$(),{messages:e,status:l,hasMoreOlder:a,isFetchingOlder:s,fetchOlderMessages:n,isRunInProgress:d}=Z(),{taskId:o}=xe();ot();const i=ge(o??""),m=he(i),c=m.size===0?e:e.filter(h=>!m.has(h.id)),f=be(c,l==="submitted"||l==="streaming"||d),u=f.visible,v=ze(u),b=v.at(-1),g=Ae()*Fe+16,j=R.useRef(null),S=R.useRef(null);ut({scrollRef:j,sentinelRef:S,hasMoreOlder:a,isFetchingOlder:s,fetchOlderMessages:n});const y=He({initial:!1}),C=h=>{j.current=h,y.scrollRef(h)};return r.jsx(je.Provider,{value:f,children:r.jsx(Ge,{messages:e,children:r.jsxs("div",{className:"relative h-full w-full min-w-0",children:[r.jsx("div",{ref:C,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:g},children:r.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[r.jsx("div",{ref:S,"aria-hidden":!0,className:"h-px"}),s&&r.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:t("chat.chat.loadingOlderMessages")}),v.slice(0,-1).map((h,T)=>r.jsx(q,{pair:h,isLastPair:!1,status:T===v.length-1?l:void 0},`pair-${h.user?.id??h.assistant?.id}`))]}),b&&r.jsx("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:r.jsx(q,{pair:b,isLastPair:!0,status:l},`pair-${b.user?.id??b.assistant?.id}`)})]})}),!y.isAtBottom&&r.jsx(Y,{type:"button",variant:"outline",size:"icon-sm","aria-label":t("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:g+8},onClick:()=>{y.scrollToBottom()},children:r.jsx(oe,{size:14})})]})})})}function ht(t){const e=L.c(5),{children:l,className:a}=t;let s;e[0]!==a?(s=B("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",a),e[0]=a,e[1]=s):s=e[1];let n;return e[2]!==l||e[3]!==s?(n=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=n):n=e[4],n}const zt=Object.assign(ft,{Main:pt,Messages:gt,EmptyState:xt,Footer:ht,Input:$e,Provider:pe,StreamHost:fe,ActiveTaskStreamSource:ue,ThreadlessStreamSource:me,IceBreakers:at,NoAiProviderEmptyState:Ue,CreditsEmptyState:it,CreditsEyebrow:dt,NoCreditsEyebrow:mt,CreditsExhaustedBanner:Oe});export{zt as C,Ft as w};
|
|
1
|
+
import{c as L,a5 as A,aS as le,m as B,j as r,R as ae,r as R,b as $,t as z,h as H,w as U,x as V,v as Q,D as W,d as X,E as G,aT as ne,B as Y}from"./index-CcqLnTyv.js";import{n as oe}from"./ArrowUp-DcYpepHk.js";import{d as ie,b as Z,f as ce,u as de,T as me,A as ue,o as fe,p as pe,c as xe,q as ge,v as he,x as be,L as je}from"./chat-context-aSjAR9mm.js";import{s as ye,g as J,d as ve}from"./tool-namespace-BQSaNq7N.js";import{b as F,T as we,a as Ne,c as Se}from"./tooltip-AKf-E49i.js";import{d as Ce,b as Te,a as Pe,D as ke}from"./drawer-ChCkx76W.js";import{C as Ee}from"./collection-search-iHJVqUHB.js";import{u as De}from"./use-mobile-BgN1E82d.js";import{u as Me}from"./use-mcp-client-DvDomB9A.js";import{u as _e,g as Ie}from"./use-mcp-prompts-CgDM8qHG.js";import{c as Le,P as Re}from"./usage-stats-CVX23WNU.js";import{T as Be,c as Oe,b as $e,d as Ae,H as Fe}from"./input-BDAmWj4c.js";import{u as ze,a as He,S as Ge,M as q}from"./pair-h0916MQd.js";import{a as qe}from"./autosend-_WPHuuuS.js";import{u as Ke}from"./thread-intent-pegObLq9.js";import{N as Ue}from"./index-DhM4mrtt.js";import{i as Ve}from"./LinkBroken01-C9GtmpYY.js";import{f as ee}from"./agent-icon-DqjTL3cE.js";import{d as Qe}from"./use-entitlements-BKF4jYfc.js";import{u as We}from"./use-deco-credits-C6qbWrOQ.js";import{F as Xe}from"./feature-paywall-DbaCusI2.js";import{i as Ye}from"./AlertCircle-kYtqXGU8.js";const K=3,te="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-muted text-muted-foreground text-sm font-medium transition-colors cursor-pointer",Ze="flex flex-col gap-1.5 p-4 rounded-xl bg-accent/40 text-sm leading-snug transition-colors cursor-pointer text-left";function se(t){const e=L.c(46),{item:l,onSelect:a,isLoading:s,isDisabled:n,variant:d}=t,o=d===void 0?"pill":d,{prompt:i}=l;let m;if(e[0]!==i._meta||e[1]!==i.name||e[2]!==i.title){const P=J(i._meta);m=i.title??ve(i.name,P),e[0]=i._meta,e[1]=i.name,e[2]=i.title,e[3]=m}else m=e[3];const c=m,f=i.description||null;if(o==="card"){let P;e[4]!==a||e[5]!==i?(P=()=>a(i),e[4]=a,e[5]=i,e[6]=P):P=e[6];const M=n||s,_=s&&"bg-accent/40",k=(n||s)&&"cursor-not-allowed opacity-50";let E;e[7]!==_||e[8]!==k?(E=B(Ze,"hover:bg-accent text-foreground",_,k),e[7]=_,e[8]=k,e[9]=E):E=e[9];let x;e[10]!==c?(x=r.jsx("span",{className:"font-medium truncate capitalize",children:c}),e[10]=c,e[11]=x):x=e[11];let w;e[12]!==s?(w=s&&r.jsx(H,{size:"xs"}),e[12]=s,e[13]=w):w=e[13];let p;e[14]!==x||e[15]!==w?(p=r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[x,w]}),e[14]=x,e[15]=w,e[16]=p):p=e[16];let D;e[17]!==f?(D=f&&r.jsx("span",{className:"text-xs text-muted-foreground line-clamp-2",children:f}),e[17]=f,e[18]=D):D=e[18];let I;return e[19]!==p||e[20]!==D||e[21]!==P||e[22]!==M||e[23]!==E?(I=r.jsxs("button",{type:"button",onClick:P,disabled:M,className:E,children:[p,D]}),e[19]=p,e[20]=D,e[21]=P,e[22]=M,e[23]=E,e[24]=I):I=e[24],I}let u;e[25]!==a||e[26]!==i?(u=()=>a(i),e[25]=a,e[26]=i,e[27]=u):u=e[27];const v=n||s,b=s&&"bg-muted/50",N=(n||s)&&"cursor-not-allowed opacity-50";let g;e[28]!==b||e[29]!==N?(g=B(te,"hover:bg-accent hover:text-foreground",b,N),e[28]=b,e[29]=N,e[30]=g):g=e[30];let j;e[31]!==c?(j=r.jsx("span",{className:"capitalize",children:c}),e[31]=c,e[32]=j):j=e[32];let S;e[33]!==s?(S=s&&r.jsx(H,{size:"xs"}),e[33]=s,e[34]=S):S=e[34];let y;e[35]!==u||e[36]!==v||e[37]!==g||e[38]!==j||e[39]!==S?(y=r.jsx(we,{asChild:!0,children:r.jsxs("button",{type:"button",onClick:u,disabled:v,className:g,children:[j,S]})}),e[35]=u,e[36]=v,e[37]=g,e[38]=j,e[39]=S,e[40]=y):y=e[40];const C=f??c;let h;e[41]!==C?(h=r.jsx(Ne,{side:"top",className:"max-w-xs",children:r.jsx("p",{className:"text-xs",children:C})}),e[41]=C,e[42]=h):h=e[42];let T;return e[43]!==y||e[44]!==h?(T=r.jsxs(Se,{delayDuration:400,children:[y,h]}),e[43]=y,e[44]=h,e[45]=T):T=e[45],T}function Je(t){const e=L.c(61),{items:l,open:a,onOpenChange:s,onSelect:n,loadingPrompt:d}=t,o=$(),[i,m]=R.useState(""),c=!!d;let f;e[0]!==l||e[1]!==i?(f=i.trim()?l.filter(x=>{const w=i.toLowerCase();return x.prompt.name.toLowerCase().includes(w)||(x.prompt.title??"").toLowerCase().includes(w)||(x.prompt.description??"").toLowerCase().includes(w)}):l,e[0]=l,e[1]=i,e[2]=f):f=e[2];const u=f,v=De();let b;e[3]!==u.length||e[4]!==i||e[5]!==o?(b=u.length===0&&r.jsx("p",{className:"col-span-4 text-sm text-muted-foreground text-center py-8",children:o("chat.iceBreakers.noPromptsMatch",{search:i})}),e[3]=u.length,e[4]=i,e[5]=o,e[6]=b):b=e[6];let N;if(e[7]!==u||e[8]!==c||e[9]!==d?.name||e[10]!==s||e[11]!==n){let x;e[13]!==c||e[14]!==d?.name||e[15]!==s||e[16]!==n?(x=w=>r.jsx(se,{item:w,variant:"card",onSelect:p=>{s(!1),n(p)},isLoading:d?.name===w.prompt.name,isDisabled:c&&d?.name!==w.prompt.name},w.prompt.name),e[13]=c,e[14]=d?.name,e[15]=s,e[16]=n,e[17]=x):x=e[17],N=u.map(x),e[7]=u,e[8]=c,e[9]=d?.name,e[10]=s,e[11]=n,e[12]=N}else N=e[12];let g;e[18]!==b||e[19]!==N?(g=r.jsx("div",{className:"flex-1 overflow-y-auto [scrollbar-gutter:stable]",children:r.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 p-5",children:[b,N]})}),e[18]=b,e[19]=N,e[20]=g):g=e[20];const j=g;let S;e[21]!==o?(S=o("chat.iceBreakers.searchPromptsPlaceholder"),e[21]=o,e[22]=S):S=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=x=>{x.key==="Escape"&&m("")},e[23]=y):y=e[23];let C;e[24]!==i||e[25]!==S?(C=r.jsx(Ee,{value:i,onChange:m,placeholder:S,onKeyDown:y}),e[24]=i,e[25]=S,e[26]=C):C=e[26];const h=C;if(v){let x;e[27]!==o?(x=o("chat.iceBreakers.allPromptsTitle"),e[27]=o,e[28]=x):x=e[28];let w;e[29]!==x?(w=r.jsx(Ce,{className:"sr-only",children:r.jsx(Te,{children:x})}),e[29]=x,e[30]=w):w=e[30];let p;e[31]!==o?(p=o("chat.iceBreakers.promptsLabel"),e[31]=o,e[32]=p):p=e[32];let D;e[33]!==p?(D=r.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:r.jsx("span",{className:"text-sm font-medium text-foreground",children:p})}),e[33]=p,e[34]=D):D=e[34];let I;e[35]!==j||e[36]!==h||e[37]!==D||e[38]!==w?(I=r.jsxs(Pe,{className:"h-[85vh] flex flex-col p-0 gap-0",children:[w,D,h,j]}),e[35]=j,e[36]=h,e[37]=D,e[38]=w,e[39]=I):I=e[39];let O;return e[40]!==s||e[41]!==a||e[42]!==I?(O=r.jsx(F,{delayDuration:400,children:r.jsx(ke,{open:a,onOpenChange:s,children:I})}),e[40]=s,e[41]=a,e[42]=I,e[43]=O):O=e[43],O}let T;e[44]!==o?(T=o("chat.iceBreakers.allPromptsTitle"),e[44]=o,e[45]=T):T=e[45];let P;e[46]!==T?(P=r.jsx(U,{className:"sr-only",children:r.jsx(V,{children:T})}),e[46]=T,e[47]=P):P=e[47];let M;e[48]!==o?(M=o("chat.iceBreakers.promptsLabel"),e[48]=o,e[49]=M):M=e[49];let _;e[50]!==M?(_=r.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:r.jsx("span",{className:"text-sm font-medium text-foreground",children:M})}),e[50]=M,e[51]=_):_=e[51];let k;e[52]!==j||e[53]!==h||e[54]!==_||e[55]!==P?(k=r.jsxs(Q,{className:"sm:max-w-[1100px] h-[680px] p-0 gap-0 overflow-hidden flex flex-col",children:[P,_,h,j]}),e[52]=j,e[53]=h,e[54]=_,e[55]=P,e[56]=k):k=e[56];let E;return e[57]!==s||e[58]!==a||e[59]!==k?(E=r.jsx(F,{delayDuration:400,children:r.jsx(W,{open:a,onOpenChange:s,children:k})}),e[57]=s,e[58]=a,e[59]=k,e[60]=E):E=e[60],E}function et(t){const e=L.c(30),{items:l,onSelect:a,loadingPrompt:s,className:n}=t,d=$(),[o,i]=R.useState(!1);if(l.length===0)return null;let m,c,f,u,v;if(e[0]!==n||e[1]!==l||e[2]!==s||e[3]!==a||e[4]!==d){const j=l.slice(0,K),S=l.slice(K),y=!!s;let C;e[10]!==y||e[11]!==s?.name||e[12]!==a?(C=T=>r.jsx(se,{item:T,onSelect:a,isLoading:s?.name===T.prompt.name,isDisabled:y&&s?.name!==T.prompt.name},T.prompt.name),e[10]=y,e[11]=s?.name,e[12]=a,e[13]=C):C=e[13];const h=j.map(C);m=F,v=400,e[14]!==n?(c=B("w-full flex flex-wrap gap-2 justify-center",n),e[14]=n,e[15]=c):c=e[15],f=h,u=S.length>0&&r.jsx("button",{type:"button",disabled:y,onClick:()=>i(!0),className:B(te,"hover:bg-accent hover:text-foreground",y&&"opacity-50 cursor-not-allowed"),children:d("chat.iceBreakers.moreButton",{count:S.length})}),e[0]=n,e[1]=l,e[2]=s,e[3]=a,e[4]=d,e[5]=m,e[6]=c,e[7]=f,e[8]=u,e[9]=v}else m=e[5],c=e[6],f=e[7],u=e[8],v=e[9];let b;e[16]!==c||e[17]!==f||e[18]!==u?(b=r.jsxs("div",{className:c,children:[f,u]}),e[16]=c,e[17]=f,e[18]=u,e[19]=b):b=e[19];let N;e[20]!==l||e[21]!==s||e[22]!==o||e[23]!==a?(N=r.jsx(Je,{items:l,open:o,onOpenChange:i,onSelect:a,loadingPrompt:s}),e[20]=l,e[21]=s,e[22]=o,e[23]=a,e[24]=N):N=e[24];let g;return e[25]!==m||e[26]!==v||e[27]!==b||e[28]!==N?(g=r.jsxs(m,{delayDuration:v,children:[b,N]}),e[25]=m,e[26]=v,e[27]=b,e[28]=N,e[29]=g):g=e[29],g}function tt(){return null}function st(t,e){switch(e.type){case"SELECT_PROMPT":return!e.prompt.arguments||e.prompt.arguments.length===0?{stage:"loading",prompt:e.prompt}:{stage:"idle"};case"START_LOADING":return{stage:"loading",prompt:e.prompt,arguments:e.arguments};case"RESET":return{stage:"idle"};default:return t}}function rt(t){const e=L.c(31),{connectionId:l}=t,a=$(),{sendMessage:s}=Z(),{org:n}=A();let d;e[0]!==l||e[1]!==n.id||e[2]!==n.slug?(d={connectionId:l,orgId:n.id,orgSlug:n.slug},e[0]=l,e[1]=n.id,e[2]=n.slug,e[3]=d):d=e[3];const o=Me(d);let i;e[4]!==o?(i={client:o,staleTime:6e4},e[4]=o,e[5]=i):i=e[5];const{data:m}=_e(i);let c;e[6]!==m?.prompts?(c=m?.prompts??[],e[6]=m?.prompts,e[7]=c):c=e[7];const f=c;let u;e[8]!==f?(u=f.map(lt),e[8]=f,e[9]=u):u=e[9];const v=u;let b;e[10]===Symbol.for("react.memo_cache_sentinel")?(b={stage:"idle"},e[10]=b):b=e[10];const[N,g]=R.useReducer(st,b),[j,S]=R.useState(null);let y;e[11]!==o||e[12]!==s||e[13]!==a?(y=async(p,D)=>{if(!o){z.error(a("chat.iceBreakers.mcpClientNotAvailable")),g({type:"RESET"});return}try{const I=await Ie(o,p.name,D);g({type:"RESET"});const O={type:"doc",content:[{type:"paragraph",content:[Le({id:p.name,name:ye(p.name,J(p._meta)),metadata:I.messages,char:"/",kind:"prompt",args:D}),{type:"text",text:" "}]}]};await s(O)}catch(I){console.error("[ice-breakers] Failed to fetch prompt:",I),z.error(a("chat.iceBreakers.failedToLoadPrompt")),g({type:"RESET"})}},e[11]=o,e[12]=s,e[13]=a,e[14]=y):y=e[14];const C=y;let h;e[15]!==C?(h=async p=>{if(p.arguments&&p.arguments.length>0){g({type:"SELECT_PROMPT",prompt:p}),S(p);return}g({type:"START_LOADING",prompt:p}),await C(p)},e[15]=C,e[16]=h):h=e[16];const T=h;let P;e[17]!==j||e[18]!==C?(P=async p=>{j&&(g({type:"START_LOADING",prompt:j,arguments:p}),S(null),await C(j,p))},e[17]=j,e[18]=C,e[19]=P):P=e[19];const M=P;if(v.length===0)return null;const _=N.stage==="loading"?N.prompt:null;let k;e[20]!==T||e[21]!==v||e[22]!==_?(k=r.jsx(et,{items:v,onSelect:T,loadingPrompt:_}),e[20]=T,e[21]=v,e[22]=_,e[23]=k):k=e[23];let E;e[24]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{S(null),g({type:"RESET"})},e[24]=E):E=e[24];let x;e[25]!==j||e[26]!==M?(x=r.jsx(Re,{prompt:j,setPrompt:E,onSubmit:M}),e[25]=j,e[26]=M,e[27]=x):x=e[27];let w;return e[28]!==k||e[29]!==x?(w=r.jsxs(r.Fragment,{children:[k,x]}),e[28]=k,e[29]=x,e[30]=w):w=e[30],w}function lt(t){return{prompt:t}}function at(t){const e=L.c(13),{className:l}=t,{selectedVirtualMcp:a}=ie(),{org:s}=A();let n;e[0]!==s.id?(n=le(s.id),e[0]=s.id,e[1]=n):n=e[1];const d=n.id,o=a?.id??d;let i;e[2]!==l?(i=B("w-full @container",l),e[2]=l,e[3]=i):i=e[3];const m=o??"default";let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx(tt,{}),e[4]=c):c=e[4];let f;e[5]!==o?(f=r.jsx(rt,{connectionId:o}),e[5]=o,e[6]=f):f=e[6];let u;e[7]!==m||e[8]!==f?(u=r.jsx(ae,{fallback:null,children:r.jsx(R.Suspense,{fallback:c,children:f},m)}),e[7]=m,e[8]=f,e[9]=u):u=e[9];let v;return e[10]!==i||e[11]!==u?(v=r.jsx("div",{className:i,children:u}),e[10]=i,e[11]=u,e[12]=v):v=e[12],v}function nt(t){let e=0;for(const l of t)for(const a of l.parts??[]){const s=a;s.type==="tool-load_repo"&&s.state==="output-available"&&s.output?.success===!0&&e++}return e}function ot(){const t=L.c(8),{openPanel:e}=qe(),l=Ke(),a=ce()?.messages??[],s=de()?.taskId??null;let n;t[0]!==a?(n=nt(a),t[0]=a,t[1]=n):n=t[1];const d=n,o=R.useRef(null),i=R.useRef(null);let m,c;t[2]!==d||t[3]!==l||t[4]!==e||t[5]!==s?(m=()=>{if(!d||!s)return;const f=`${s}:${d}`;i.current!==f&&(i.current=f,l?.refreshThreadMetadata(s)),o.current!==s&&(o.current=s,e("site-editor"))},c=[d,s,e,l],t[2]=d,t[3]=l,t[4]=e,t[5]=s,t[6]=m,t[7]=c):(m=t[6],c=t[7]),R.useEffect(m,c)}function re(t){return`deco-credits-empty-dismissed:${t}`}function Ft(t){try{return localStorage.getItem(re(t))==="1"}catch{return!1}}function it(){const t=L.c(56),e=$(),{org:l}=A(),a=Qe("credits"),s=X(),{decoKeyId:n}=We(),[d,o]=R.useState(!0);let i;t[0]!==l.id?(i=()=>{G("credits_empty_state_dismissed",{organization_id:l.id}),o(!1);try{localStorage.setItem(re(l.id),"1")}catch{}},t[0]=l.id,t[1]=i):i=t[1];const m=i;let c,f;if(t[2]!==d||t[3]!==l.id?(c=()=>{d&&G("credits_empty_state_shown",{organization_id:l.id})},f=[d,l.id],t[2]=d,t[3]=l.id,t[4]=c,t[5]=f):(c=t[4],f=t[5]),R.useEffect(c,f),!d)return null;if(!a){let p;t[6]!==e?(p=e("chat.input.allowanceExhaustedTitle"),t[6]=e,t[7]=p):p=t[7];let D;t[8]!==p?(D={title:p},t[8]=p,t[9]=D):D=t[9];let I;return t[10]!==m||t[11]!==D?(I=r.jsx(Xe,{feature:"chat",copy:D,onDismiss:m}),t[10]=m,t[11]=D,t[12]=I):I=t[12],I}let u;t[13]!==m?(u=p=>!p&&m(),t[13]=m,t[14]=u):u=t[14];let v;t[15]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),t[15]=v):v=t[15];let b;t[16]===Symbol.for("react.memo_cache_sentinel")?(b=r.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:r.jsx(ee,{size:20,className:"text-warning"})}),t[16]=b):b=t[16];let N;t[17]!==e?(N=e("chat.creditsEmptyState.title"),t[17]=e,t[18]=N):N=t[18];let g;t[19]!==N?(g=r.jsx(V,{className:"text-lg font-semibold",children:N}),t[19]=N,t[20]=g):g=t[20];let j;t[21]!==e?(j=e("chat.creditsEmptyState.description"),t[21]=e,t[22]=j):j=t[22];let S;t[23]!==j?(S=r.jsx(ne,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:j}),t[23]=j,t[24]=S):S=t[24];let y;t[25]!==g||t[26]!==S?(y=r.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[v,r.jsxs(U,{className:"relative gap-3",children:[b,r.jsxs("div",{className:"text-center",children:[g,S]})]})]}),t[25]=g,t[26]=S,t[27]=y):y=t[27];let C;t[28]!==n||t[29]!==m?(C=n&&r.jsx("div",{className:"px-6 pb-5",children:r.jsx(Be,{source:"empty_state",onDone:m})}),t[28]=n,t[29]=m,t[30]=C):C=t[30];let h;t[31]!==m||t[32]!==s||t[33]!==l.slug?(h=()=>{s({to:"/$org/settings/ai-providers",params:{org:l.slug}}),m()},t[31]=m,t[32]=s,t[33]=l.slug,t[34]=h):h=t[34];let T;t[35]!==e?(T=e("chat.creditsEmptyState.useYourOwnProvider"),t[35]=e,t[36]=T):T=t[36];let P;t[37]===Symbol.for("react.memo_cache_sentinel")?(P=r.jsx(Ve,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),t[37]=P):P=t[37];let M;t[38]!==h||t[39]!==T?(M=r.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:h,children:[T,P]}),t[38]=h,t[39]=T,t[40]=M):M=t[40];let _;t[41]!==e?(_=e("chat.creditsEmptyState.skipForNow"),t[41]=e,t[42]=_):_=t[42];let k;t[43]!==m||t[44]!==_?(k=r.jsx(Y,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:m,children:_}),t[43]=m,t[44]=_,t[45]=k):k=t[45];let E;t[46]!==M||t[47]!==k?(E=r.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[M,k]}),t[46]=M,t[47]=k,t[48]=E):E=t[48];let x;t[49]!==y||t[50]!==C||t[51]!==E?(x=r.jsxs(Q,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:ct,children:[y,C,E]}),t[49]=y,t[50]=C,t[51]=E,t[52]=x):x=t[52];let w;return t[53]!==x||t[54]!==u?(w=r.jsx(W,{open:!0,onOpenChange:u,children:x}),t[53]=x,t[54]=u,t[55]=w):w=t[55],w}function ct(t){return t.preventDefault()}function dt(t){const e=L.c(6),{balanceDollars:l}=t;let a;e[0]!==l?(a=l.toFixed(2),e[0]=l,e[1]=a):a=e[1];const s=a;let n,d;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=B("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),d=r.jsx(ee,{size:13,className:"text-success"}),e[2]=n,e[3]=d):(n=e[2],d=e[3]);let o;return e[4]!==s?(o=r.jsxs("div",{className:n,children:[d,r.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",s," in credits to get started"]})]}),e[4]=s,e[5]=o):o=e[5],o}function mt(){const t=L.c(8),{org:e}=A(),l=X();let a;t[0]!==l||t[1]!==e.slug?(a=()=>l({to:"/$org/settings/ai-providers",params:{org:e.slug}}),t[0]=l,t[1]=e.slug,t[2]=a):a=t[2];let s,n,d;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=B("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),n=r.jsx(Ye,{size:13,className:"text-warning"}),d=r.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),t[3]=s,t[4]=n,t[5]=d):(s=t[3],n=t[4],d=t[5]);let o;return t[6]!==a?(o=r.jsxs("button",{type:"button",onClick:a,className:s,children:[n,d]}),t[6]=a,t[7]=o):o=t[7],o}function ut(t){const e=L.c(7),{scrollRef:l,sentinelRef:a,hasMoreOlder:s,isFetchingOlder:n,fetchOlderMessages:d}=t;let o,i;e[0]!==d||e[1]!==s||e[2]!==n||e[3]!==l||e[4]!==a?(o=()=>{const m=a.current,c=l.current;if(!m||!c||!s)return;const f=new IntersectionObserver(async u=>{if(!u[0]?.isIntersecting||n||!s)return;const b=c.scrollHeight,N=c.scrollTop;await d(),requestAnimationFrame(()=>{const g=c.scrollHeight;c.scrollTop=N+(g-b)})},{root:c,rootMargin:"200px 0px 0px 0px"});return f.observe(m),()=>f.disconnect()},i=[l,a,s,n,d],e[0]=d,e[1]=s,e[2]=n,e[3]=l,e[4]=a,e[5]=o,e[6]=i):(o=e[5],i=e[6]),R.useEffect(o,i)}function ft(t){const e=L.c(5),{className:l,children:a}=t;let s;e[0]!==l?(s=B("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",l),e[0]=l,e[1]=s):s=e[1];let n;return e[2]!==a||e[3]!==s?(n=r.jsx("div",{className:s,children:a}),e[2]=a,e[3]=s,e[4]=n):n=e[4],n}function pt(t){const e=L.c(5),{children:l,className:a}=t;let s;e[0]!==a?(s=B("flex-1 min-h-0 overflow-y-auto isolate",a),e[0]=a,e[1]=s):s=e[1];let n;return e[2]!==l||e[3]!==s?(n=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=n):n=e[4],n}function xt(t){const e=L.c(2),{children:l}=t;let a;return e[0]!==l?(a=r.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:l}),e[0]=l,e[1]=a):a=e[1],a}function gt(){const t=$(),{messages:e,status:l,hasMoreOlder:a,isFetchingOlder:s,fetchOlderMessages:n,isRunInProgress:d}=Z(),{taskId:o}=xe();ot();const i=ge(o??""),m=he(i),c=m.size===0?e:e.filter(h=>!m.has(h.id)),f=be(c,l==="submitted"||l==="streaming"||d),u=f.visible,v=ze(u),b=v.at(-1),g=Ae()*Fe+16,j=R.useRef(null),S=R.useRef(null);ut({scrollRef:j,sentinelRef:S,hasMoreOlder:a,isFetchingOlder:s,fetchOlderMessages:n});const y=He({initial:!1}),C=h=>{j.current=h,y.scrollRef(h)};return r.jsx(je.Provider,{value:f,children:r.jsx(Ge,{messages:e,children:r.jsxs("div",{className:"relative h-full w-full min-w-0",children:[r.jsx("div",{ref:C,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:g},children:r.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[r.jsx("div",{ref:S,"aria-hidden":!0,className:"h-px"}),s&&r.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:t("chat.chat.loadingOlderMessages")}),v.slice(0,-1).map((h,T)=>r.jsx(q,{pair:h,isLastPair:!1,status:T===v.length-1?l:void 0},`pair-${h.user?.id??h.assistant?.id}`))]}),b&&r.jsx("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:r.jsx(q,{pair:b,isLastPair:!0,status:l},`pair-${b.user?.id??b.assistant?.id}`)})]})}),!y.isAtBottom&&r.jsx(Y,{type:"button",variant:"outline",size:"icon-sm","aria-label":t("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:g+8},onClick:()=>{y.scrollToBottom()},children:r.jsx(oe,{size:14})})]})})})}function ht(t){const e=L.c(5),{children:l,className:a}=t;let s;e[0]!==a?(s=B("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",a),e[0]=a,e[1]=s):s=e[1];let n;return e[2]!==l||e[3]!==s?(n=r.jsx("div",{className:s,children:l}),e[2]=l,e[3]=s,e[4]=n):n=e[4],n}const zt=Object.assign(ft,{Main:pt,Messages:gt,EmptyState:xt,Footer:ht,Input:$e,Provider:pe,StreamHost:fe,ActiveTaskStreamSource:ue,ThreadlessStreamSource:me,IceBreakers:at,NoAiProviderEmptyState:Ue,CreditsEmptyState:it,CreditsEyebrow:dt,NoCreditsEyebrow:mt,CreditsExhaustedBanner:Oe});export{zt as C,Ft as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,f as p,av as u,j as s,aZ as x,N as a}from"./index-
|
|
1
|
+
import{c as f,f as p,av as u,j as s,aZ as x,N as a}from"./index-CcqLnTyv.js";import{C as j}from"./capability-load-error-gokttFVD.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-X5CcDr9j.js → infiniteQueryObserver-uDA4YvYL.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-CcqLnTyv.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{c as k,j as s,hZ as de,b as G,h_ as ue,r as le,h$ as xe,i0 as re,gy as T,gO as W,B as J,bB as V,a8 as pe}from"./index-Bgkjt4vy.js";import{i as he}from"./CreditCard01-BeIdgKm8.js";import{B as L}from"./badge-CVFmvf1e.js";import{M as je}from"./multi-select-DAJzscc4.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-lF0wcoip.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-BVlqjzf4.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-CQdu8PPi.js";import{T as De}from"./Tooltip-2CGCyakg.js";import{a as _e,A as Me}from"./AreaChart-CToSouiR.js";import{c2 as Re}from"./CategoricalChart-B5fszPCD.js";import{R as Le}from"./require-capability-CulwBmL_.js";import"./checkbox-KpsWsk0_.js";import"./Minus-HfQUebB7.js";import"./ChevronUp-DPwvtZ7T.js";import"./command-C37DfioB.js";import"./index-BFve9Wi8.js";import"./SearchMd-ip9BTueQ.js";import"./popover-CRX5tFOb.js";import"./index-BdQq_4o_.js";import"./index-DP8sH5of.js";import"./index-D08mzr4H.js";import"./access-gate-DSrHE9mR.js";import"./capability-load-error-ByWk_AoZ.js";const Q=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),ne=["B","KB","MB","GB","TB","PB"];function oe(t){if(t<=0)return"0 B";const e=Math.min(ne.length-1,Math.floor(Math.log(t)/Math.log(1024))),n=t/1024**e;return`${n.toFixed(n>=100||e===0?0:1)} ${ne[e]}`}const X=50,$e="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",Fe=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function ce(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function ee(t){return ce(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function Ie(){const t=new Date;return Array.from({length:12},(e,n)=>{const l=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-n,1));return{value:l.toISOString().slice(0,10),label:l.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function Pe(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function ae(t){const e=k.c(30),{usage:n,metric:l,colorNum:o,formatValue:f,height:i}=t,a=`var(--chart-${o})`,d=`infra-billing-${l}`;let g;e[0]!==n?(g=n.map(Ae),e[0]=n,e[1]=g):g=e[1];const x=g;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b={left:0,right:4,top:8,bottom:0},e[2]=b):b=e[2];let r,p;e[3]!==a?(r=s.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:.25}),p=s.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:0}),e[3]=a,e[4]=r,e[5]=p):(r=e[4],p=e[5]);let h;e[6]!==d||e[7]!==r||e[8]!==p?(h=s.jsx("defs",{children:s.jsxs("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[r,p]})}),e[6]=d,e[7]=r,e[8]=p,e[9]=h):h=e[9];let u;e[10]!==f||e[11]!==i?(u=i>100&&s.jsxs(s.Fragment,{children:[s.jsx(ke,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Ue,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Ce,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:f,width:68})]}),e[10]=f,e[11]=i,e[12]=u):u=e[12];let B,v;e[13]===Symbol.for("react.memo_cache_sentinel")?(B={stroke:"var(--border)",strokeDasharray:"4 4"},v={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=B,e[14]=v):(B=e[13],v=e[14]);let j;e[15]!==f?(j=s.jsx(De,{cursor:B,contentStyle:v,formatter:C=>f(Number(C)||0)}),e[15]=f,e[16]=j):j=e[16];const y=`url(#${d})`;let N;e[17]!==a||e[18]!==l||e[19]!==y?(N=s.jsx(_e,{type:"linear",dataKey:l,stroke:a,strokeWidth:2,fill:y,dot:!1}),e[17]=a,e[18]=l,e[19]=y,e[20]=N):N=e[20];let m;e[21]!==x||e[22]!==N||e[23]!==h||e[24]!==u||e[25]!==j?(m=s.jsxs(Me,{data:x,margin:b,children:[h,u,j,N]}),e[21]=x,e[22]=N,e[23]=h,e[24]=u,e[25]=j,e[26]=m):m=e[26];let S;return e[27]!==i||e[28]!==m?(S=s.jsx(Re,{width:"100%",height:i,children:m}),e[27]=i,e[28]=m,e[29]=S):S=e[29],S}function Ae(t){return{...t,label:Pe(t.date)}}function Z(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=G(),{sites:n,isLoading:l}=ue(),[o,f]=le.useState(null),i=Ie(),[a,d]=le.useState(i[0].value);let g;t[0]!==o||t[1]!==n?(g=o??n.slice(0,X),t[0]=o,t[1]=n,t[2]=g):g=t[2];const x=g,b=!o&&n.length>X,{data:r,isLoading:p}=xe(x,a),h=re();if(l){let c;return t[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(V,{className:"h-64 w-full"}),t[3]=c):c=t[3],c}if(n.length===0){let c;t[4]!==e?(c=e("settings.infraBilling.noSites"),t[4]=e,t[5]=c):c=t[5];let w;return t[6]!==c?(w=s.jsx(T,{className:"p-6 text-sm text-muted-foreground",children:c}),t[6]=c,t[7]=w):w=t[7],w}const u=r?.usage??[],B=r?.pageviewsAvailable??!1,v=!!r&&!r.usageUnavailable,j=(c,w)=>v?w(Z(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(Z(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ze)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:j("dataTransferBytes",oe)}],N=qe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const Y=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(Y.length>0?1:0)>1,K=Z(u,"pageviews"),se=K>0?Z(u,"requests")/K:0,me=B&&v&&K>0?se.toFixed(se<10?1:0):"—";let I;t[12]!==r?.billingUnavailable||t[13]!==U||t[14]!==e||t[15]!==S.length?(I=r?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):S.length>1?e("settings.infraBilling.multipleTeams",{count:String(S.length)}):U?fe(U,e):e("settings.infraBilling.noTeam"),t[12]=r?.billingUnavailable,t[13]=U,t[14]=e,t[15]=S.length,t[16]=I):I=t[16];const ge=I;let _;t[17]!==n?(_=n.map(Oe),t[17]=n,t[18]=_):_=t[18];let M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let O;t[33]!==e||t[34]!==b?(O=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=O):O=t[35];let q;return t[36]!==r?.usageUnavailable||t[37]!==e?(q=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=q):q=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,O,q,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(W,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(L,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(W,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(W,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(Ge,{team:c,showSites:te},c.siteSlugs.join(","))),Y.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:Y.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(T,{size:"flush",children:s.jsx(V,{className:"m-4 h-24"})})})})]})]})}function ze(t){return s.jsx(Be,{value:t.value,children:t.label},t.value)}function Oe(t){return{label:t,value:t}}function qe(t){return t==="dataTransferBytes"?oe:Ve}function Ve(t){return Q.format(t)}function Ze(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ge(t){const e=k.c(13),{team:n,showSites:l}=t,o=G(),f=re(),i=n.billing;let a;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==o||e[4]!==n.siteSlugs?(a=l&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:n.siteSlugs.join(", ")}),i&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(L,{variant:i.planType==="free"?"secondary":"success",children:o(`settings.infraBilling.plan.${i.planType}`)}),i.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:o("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:ee(i.nextBillingDate)})]}),i.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:f.isPending,onClick:()=>f.mutate(n.siteSlugs),children:o("settings.infraBilling.manageButton")})]})]}),e[0]=i,e[1]=f,e[2]=l,e[3]=o,e[4]=n.siteSlugs,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==o||e[8]!==n?(d=i?i.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:o("settings.infraBilling.noInvoices")}):s.jsx(Ye,{invoices:i.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:fe(n,o)}),e[6]=i,e[7]=o,e[8]=n,e[9]=d):d=e[9];let g;return e[10]!==a||e[11]!==d?(g=s.jsxs(T,{size:"flush",className:"gap-0 overflow-x-auto",children:[a,d]}),e[10]=a,e[11]=d,e[12]=g):g=e[12],g}function Ye(t){const e=k.c(40),{invoices:n}=t,l=G();let o;e[0]!==n?(o=n.some(Ke),e[0]=n,e[1]=o):o=e[1];const f=o;let i;e[2]!==l?(i=l("settings.infraBilling.invoiceReference"),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==i?(a=s.jsx($,{children:i}),e[4]=i,e[5]=a):a=e[5];let d;e[6]!==l?(d=l("settings.infraBilling.invoiceDue"),e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=s.jsx($,{children:d}),e[8]=d,e[9]=g):g=e[9];let x;e[10]!==l?(x=l("settings.infraBilling.invoiceAmount"),e[10]=l,e[11]=x):x=e[11];let b;e[12]!==x?(b=s.jsx($,{children:x}),e[12]=x,e[13]=b):b=e[13];let r;e[14]!==l?(r=l("settings.infraBilling.invoiceStatus"),e[14]=l,e[15]=r):r=e[15];let p;e[16]!==r?(p=s.jsx($,{children:r}),e[16]=r,e[17]=p):p=e[17];let h;e[18]!==l?(h=l("settings.infraBilling.invoiceDocuments"),e[18]=l,e[19]=h):h=e[19];let u;e[20]!==h?(u=s.jsx($,{children:h}),e[20]=h,e[21]=u):u=e[21];let B;e[22]!==u||e[23]!==a||e[24]!==g||e[25]!==b||e[26]!==p?(B=s.jsx(ye,{children:s.jsxs(ie,{children:[a,g,b,p,u]})}),e[22]=u,e[23]=a,e[24]=g,e[25]=b,e[26]=p,e[27]=B):B=e[27];let v;if(e[28]!==n||e[29]!==l||e[30]!==f){let N;e[32]!==l||e[33]!==f?(N=m=>s.jsxs(ie,{children:[s.jsx(F,{children:m.referenceMonth?ce(m.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(F,{children:m.dueDate?ee(m.dueDate):"—"}),s.jsx(F,{className:"tabular-nums",children:Fe.format(m.value)}),s.jsx(F,{children:s.jsx(We,{status:m.status})}),s.jsxs(F,{className:"flex gap-2",children:[m.nfUrl&&s.jsx(H,{href:m.nfUrl,label:l("settings.infraBilling.invoiceNf")}),m.bankSlipUrl&&s.jsx(H,{href:m.bankSlipUrl,label:l("settings.infraBilling.invoiceBankSlip")}),!m.bankSlipUrl&&!f&&m.nfUrl&&s.jsx(H,{href:$e,label:l("settings.infraBilling.invoiceBankTransfer")}),!m.nfUrl&&!m.bankSlipUrl&&"—"]})]},m.id),e[32]=l,e[33]=f,e[34]=N):N=e[34],v=n.map(N),e[28]=n,e[29]=l,e[30]=f,e[31]=v}else v=e[31];let j;e[35]!==v?(j=s.jsx(Te,{children:v}),e[35]=v,e[36]=j):j=e[36];let y;return e[37]!==B||e[38]!==j?(y=s.jsxs(we,{children:[B,j]}),e[37]=B,e[38]=j,e[39]=y):y=e[39],y}function Ke(t){return!!t.bankSlipUrl}function H(t){const e=k.c(4),{href:n,label:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{size:14}),e[0]=o):o=e[0];let f;return e[1]!==n||e[2]!==l?(f=s.jsx(J,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[o,l]})}),e[1]=n,e[2]=l,e[3]=f):f=e[3],f}function We(t){const e=k.c(14),{status:n}=t,l=G(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(L,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(L,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(L,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(L,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function vt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Le,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{vt as default};
|
|
1
|
+
import{c as k,j as s,hZ as de,b as G,h_ as ue,r as le,h$ as xe,i0 as re,gy as T,gO as W,B as J,bB as V,a8 as pe}from"./index-CcqLnTyv.js";import{i as he}from"./CreditCard01-BLl0RgXC.js";import{B as L}from"./badge-DtxRsHGH.js";import{M as je}from"./multi-select-C2R3RZPE.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-DQqbq83t.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-DvZCTg5z.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-BfCEFz3y.js";import{T as De}from"./Tooltip-CPoCGNVz.js";import{a as _e,A as Me}from"./AreaChart-DDNkWSZu.js";import{c2 as Re}from"./CategoricalChart-Bp-vLaQf.js";import{R as Le}from"./require-capability-s4T8ky9G.js";import"./checkbox-CBfkrmis.js";import"./Minus-eGpg4-RN.js";import"./ChevronUp-DRG0w_P4.js";import"./command-CtR4gjCr.js";import"./index-DCh3kkGn.js";import"./SearchMd-2MPq0KPN.js";import"./popover-BQnTqyWU.js";import"./index-BdQq_4o_.js";import"./index-D146teOp.js";import"./index-GYpV5EH9.js";import"./access-gate-BjRwuLrP.js";import"./capability-load-error-gokttFVD.js";const Q=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),ne=["B","KB","MB","GB","TB","PB"];function oe(t){if(t<=0)return"0 B";const e=Math.min(ne.length-1,Math.floor(Math.log(t)/Math.log(1024))),n=t/1024**e;return`${n.toFixed(n>=100||e===0?0:1)} ${ne[e]}`}const X=50,$e="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",Fe=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function ce(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function ee(t){return ce(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function Ie(){const t=new Date;return Array.from({length:12},(e,n)=>{const l=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-n,1));return{value:l.toISOString().slice(0,10),label:l.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function Pe(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function ae(t){const e=k.c(30),{usage:n,metric:l,colorNum:o,formatValue:f,height:i}=t,a=`var(--chart-${o})`,d=`infra-billing-${l}`;let g;e[0]!==n?(g=n.map(Ae),e[0]=n,e[1]=g):g=e[1];const x=g;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b={left:0,right:4,top:8,bottom:0},e[2]=b):b=e[2];let r,p;e[3]!==a?(r=s.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:.25}),p=s.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:0}),e[3]=a,e[4]=r,e[5]=p):(r=e[4],p=e[5]);let h;e[6]!==d||e[7]!==r||e[8]!==p?(h=s.jsx("defs",{children:s.jsxs("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[r,p]})}),e[6]=d,e[7]=r,e[8]=p,e[9]=h):h=e[9];let u;e[10]!==f||e[11]!==i?(u=i>100&&s.jsxs(s.Fragment,{children:[s.jsx(ke,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Ue,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Ce,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:f,width:68})]}),e[10]=f,e[11]=i,e[12]=u):u=e[12];let B,v;e[13]===Symbol.for("react.memo_cache_sentinel")?(B={stroke:"var(--border)",strokeDasharray:"4 4"},v={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=B,e[14]=v):(B=e[13],v=e[14]);let j;e[15]!==f?(j=s.jsx(De,{cursor:B,contentStyle:v,formatter:C=>f(Number(C)||0)}),e[15]=f,e[16]=j):j=e[16];const y=`url(#${d})`;let N;e[17]!==a||e[18]!==l||e[19]!==y?(N=s.jsx(_e,{type:"linear",dataKey:l,stroke:a,strokeWidth:2,fill:y,dot:!1}),e[17]=a,e[18]=l,e[19]=y,e[20]=N):N=e[20];let m;e[21]!==x||e[22]!==N||e[23]!==h||e[24]!==u||e[25]!==j?(m=s.jsxs(Me,{data:x,margin:b,children:[h,u,j,N]}),e[21]=x,e[22]=N,e[23]=h,e[24]=u,e[25]=j,e[26]=m):m=e[26];let S;return e[27]!==i||e[28]!==m?(S=s.jsx(Re,{width:"100%",height:i,children:m}),e[27]=i,e[28]=m,e[29]=S):S=e[29],S}function Ae(t){return{...t,label:Pe(t.date)}}function Z(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=G(),{sites:n,isLoading:l}=ue(),[o,f]=le.useState(null),i=Ie(),[a,d]=le.useState(i[0].value);let g;t[0]!==o||t[1]!==n?(g=o??n.slice(0,X),t[0]=o,t[1]=n,t[2]=g):g=t[2];const x=g,b=!o&&n.length>X,{data:r,isLoading:p}=xe(x,a),h=re();if(l){let c;return t[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(V,{className:"h-64 w-full"}),t[3]=c):c=t[3],c}if(n.length===0){let c;t[4]!==e?(c=e("settings.infraBilling.noSites"),t[4]=e,t[5]=c):c=t[5];let w;return t[6]!==c?(w=s.jsx(T,{className:"p-6 text-sm text-muted-foreground",children:c}),t[6]=c,t[7]=w):w=t[7],w}const u=r?.usage??[],B=r?.pageviewsAvailable??!1,v=!!r&&!r.usageUnavailable,j=(c,w)=>v?w(Z(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(Z(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ze)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:j("dataTransferBytes",oe)}],N=qe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const Y=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(Y.length>0?1:0)>1,K=Z(u,"pageviews"),se=K>0?Z(u,"requests")/K:0,me=B&&v&&K>0?se.toFixed(se<10?1:0):"—";let I;t[12]!==r?.billingUnavailable||t[13]!==U||t[14]!==e||t[15]!==S.length?(I=r?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):S.length>1?e("settings.infraBilling.multipleTeams",{count:String(S.length)}):U?fe(U,e):e("settings.infraBilling.noTeam"),t[12]=r?.billingUnavailable,t[13]=U,t[14]=e,t[15]=S.length,t[16]=I):I=t[16];const ge=I;let _;t[17]!==n?(_=n.map(Oe),t[17]=n,t[18]=_):_=t[18];let M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let O;t[33]!==e||t[34]!==b?(O=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=O):O=t[35];let q;return t[36]!==r?.usageUnavailable||t[37]!==e?(q=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=q):q=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,O,q,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(W,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(L,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(W,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(W,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(Ge,{team:c,showSites:te},c.siteSlugs.join(","))),Y.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:Y.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(T,{size:"flush",children:s.jsx(V,{className:"m-4 h-24"})})})})]})]})}function ze(t){return s.jsx(Be,{value:t.value,children:t.label},t.value)}function Oe(t){return{label:t,value:t}}function qe(t){return t==="dataTransferBytes"?oe:Ve}function Ve(t){return Q.format(t)}function Ze(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ge(t){const e=k.c(13),{team:n,showSites:l}=t,o=G(),f=re(),i=n.billing;let a;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==o||e[4]!==n.siteSlugs?(a=l&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:n.siteSlugs.join(", ")}),i&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(L,{variant:i.planType==="free"?"secondary":"success",children:o(`settings.infraBilling.plan.${i.planType}`)}),i.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:o("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:ee(i.nextBillingDate)})]}),i.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:f.isPending,onClick:()=>f.mutate(n.siteSlugs),children:o("settings.infraBilling.manageButton")})]})]}),e[0]=i,e[1]=f,e[2]=l,e[3]=o,e[4]=n.siteSlugs,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==o||e[8]!==n?(d=i?i.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:o("settings.infraBilling.noInvoices")}):s.jsx(Ye,{invoices:i.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:fe(n,o)}),e[6]=i,e[7]=o,e[8]=n,e[9]=d):d=e[9];let g;return e[10]!==a||e[11]!==d?(g=s.jsxs(T,{size:"flush",className:"gap-0 overflow-x-auto",children:[a,d]}),e[10]=a,e[11]=d,e[12]=g):g=e[12],g}function Ye(t){const e=k.c(40),{invoices:n}=t,l=G();let o;e[0]!==n?(o=n.some(Ke),e[0]=n,e[1]=o):o=e[1];const f=o;let i;e[2]!==l?(i=l("settings.infraBilling.invoiceReference"),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==i?(a=s.jsx($,{children:i}),e[4]=i,e[5]=a):a=e[5];let d;e[6]!==l?(d=l("settings.infraBilling.invoiceDue"),e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=s.jsx($,{children:d}),e[8]=d,e[9]=g):g=e[9];let x;e[10]!==l?(x=l("settings.infraBilling.invoiceAmount"),e[10]=l,e[11]=x):x=e[11];let b;e[12]!==x?(b=s.jsx($,{children:x}),e[12]=x,e[13]=b):b=e[13];let r;e[14]!==l?(r=l("settings.infraBilling.invoiceStatus"),e[14]=l,e[15]=r):r=e[15];let p;e[16]!==r?(p=s.jsx($,{children:r}),e[16]=r,e[17]=p):p=e[17];let h;e[18]!==l?(h=l("settings.infraBilling.invoiceDocuments"),e[18]=l,e[19]=h):h=e[19];let u;e[20]!==h?(u=s.jsx($,{children:h}),e[20]=h,e[21]=u):u=e[21];let B;e[22]!==u||e[23]!==a||e[24]!==g||e[25]!==b||e[26]!==p?(B=s.jsx(ye,{children:s.jsxs(ie,{children:[a,g,b,p,u]})}),e[22]=u,e[23]=a,e[24]=g,e[25]=b,e[26]=p,e[27]=B):B=e[27];let v;if(e[28]!==n||e[29]!==l||e[30]!==f){let N;e[32]!==l||e[33]!==f?(N=m=>s.jsxs(ie,{children:[s.jsx(F,{children:m.referenceMonth?ce(m.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(F,{children:m.dueDate?ee(m.dueDate):"—"}),s.jsx(F,{className:"tabular-nums",children:Fe.format(m.value)}),s.jsx(F,{children:s.jsx(We,{status:m.status})}),s.jsxs(F,{className:"flex gap-2",children:[m.nfUrl&&s.jsx(H,{href:m.nfUrl,label:l("settings.infraBilling.invoiceNf")}),m.bankSlipUrl&&s.jsx(H,{href:m.bankSlipUrl,label:l("settings.infraBilling.invoiceBankSlip")}),!m.bankSlipUrl&&!f&&m.nfUrl&&s.jsx(H,{href:$e,label:l("settings.infraBilling.invoiceBankTransfer")}),!m.nfUrl&&!m.bankSlipUrl&&"—"]})]},m.id),e[32]=l,e[33]=f,e[34]=N):N=e[34],v=n.map(N),e[28]=n,e[29]=l,e[30]=f,e[31]=v}else v=e[31];let j;e[35]!==v?(j=s.jsx(Te,{children:v}),e[35]=v,e[36]=j):j=e[36];let y;return e[37]!==B||e[38]!==j?(y=s.jsxs(we,{children:[B,j]}),e[37]=B,e[38]=j,e[39]=y):y=e[39],y}function Ke(t){return!!t.bankSlipUrl}function H(t){const e=k.c(4),{href:n,label:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{size:14}),e[0]=o):o=e[0];let f;return e[1]!==n||e[2]!==l?(f=s.jsx(J,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[o,l]})}),e[1]=n,e[2]=l,e[3]=f):f=e[3],f}function We(t){const e=k.c(14),{status:n}=t,l=G(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(L,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(L,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(L,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(L,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function vt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Le,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{vt as default};
|