decocms 4.584.12 → 4.584.13
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-BuSYYXoB.js → AlertCircle-DA6gE5vw.js} +1 -1
- package/dist/client/assets/{AreaChart-B7QJFNyd.js → AreaChart-Y5-RpSOt.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CjBgi68F.js → ArrowLeft-B8D7i2xh.js} +1 -1
- package/dist/client/assets/{ArrowRight-BSOOXYJl.js → ArrowRight-C1EmTlL-.js} +1 -1
- package/dist/client/assets/{ArrowUp-DsFRA_-F.js → ArrowUp-DyF0Rx2O.js} +1 -1
- package/dist/client/assets/{BookOpen01-Bg7SPIQl.js → BookOpen01-UxGmri2e.js} +1 -1
- package/dist/client/assets/{CartesianChart-CTbh6Hly.js → CartesianChart-Dv3UTRbp.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Bk-NltJE.js → CategoricalChart-oGRIPAq4.js} +1 -1
- package/dist/client/assets/{CheckCircle-CwkAQPvk.js → CheckCircle-Bh1gNJET.js} +1 -1
- package/dist/client/assets/{ChevronDown-Dq3-i4Ph.js → ChevronDown-uPv2ScPr.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Ce-S0bwE.js → ChevronSelectorVertical-CiFyE2Pu.js} +1 -1
- package/dist/client/assets/{ChevronUp-CsGl40rv.js → ChevronUp-BkmRXggG.js} +1 -1
- package/dist/client/assets/{CreditCard01-DyQlc3BQ.js → CreditCard01-C-H9qti1.js} +1 -1
- package/dist/client/assets/{Eye-DgggGLP1.js → Eye-DL5oRAI4.js} +1 -1
- package/dist/client/assets/{File02-B-McavGu.js → File02-DEjt2PPW.js} +1 -1
- package/dist/client/assets/{Globe04-DByxWswA.js → Globe04-DD86hrsf.js} +1 -1
- package/dist/client/assets/{Image01-C-12Ic3A.js → Image01-BCiDUkCm.js} +1 -1
- package/dist/client/assets/{Key01-O_7ZqdlA.js → Key01-CgRwsDr3.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CAJfUJ1M.js → LayoutLeft-DHg_jNr0.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DlxIHBPg.js → LinkBroken01-Ic71rSEU.js} +1 -1
- package/dist/client/assets/{MessageCircle01-DboGgDYl.js → MessageCircle01-CQjeMfQj.js} +1 -1
- package/dist/client/assets/{Minus-C8qbEmNR.js → Minus-BM2zRSMr.js} +1 -1
- package/dist/client/assets/{Monitor01-ByiCXP90.js → Monitor01-C4OHhcX6.js} +1 -1
- package/dist/client/assets/{Play-B1OcqbdZ.js → Play-l838EjWq.js} +1 -1
- package/dist/client/assets/{Plus-DgAT_TKu.js → Plus-BzpqhVU8.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BsFgkAaF.js → ReferenceLine-DmbAcSH6.js} +1 -1
- package/dist/client/assets/{SearchMd-CAmRp0LP.js → SearchMd-BhCfkG_O.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-qRoCf3xL.js → ShoppingBag01-KIefHp9K.js} +1 -1
- package/dist/client/assets/{Sun-DMx5ulRn.js → Sun-CoJn-J4w.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DRQUyYXI.js → SwitchHorizontal01-BU8z7oT_.js} +1 -1
- package/dist/client/assets/{Tool01-CIG9g9AW.js → Tool01-ymE-fOFX.js} +1 -1
- package/dist/client/assets/{Tooltip-Co9f8gJx.js → Tooltip-D86_gjwu.js} +1 -1
- package/dist/client/assets/{Trash01-BXZnDQzc.js → Trash01-aSl--BGd.js} +1 -1
- package/dist/client/assets/{TrendUp01-BXVcz0CP.js → TrendUp01-Cr4FP2fV.js} +1 -1
- package/dist/client/assets/{Upload01-DkM_CW6J.js → Upload01-DozMUWEF.js} +1 -1
- package/dist/client/assets/{UserCheck01-Dd1TarPv.js → UserCheck01-3D5hYz4C.js} +1 -1
- package/dist/client/assets/{UserSquare-Dx7SMn8a.js → UserSquare-aJjYmjOR.js} +1 -1
- package/dist/client/assets/{Users01-CrAD5jfs.js → Users01-Cximoi8v.js} +1 -1
- package/dist/client/assets/{XClose-ChZfCB0S.js → XClose-Dq0BGBMq.js} +1 -1
- package/dist/client/assets/{Zap-DzFzGOQ3.js → Zap-NAfA60T9.js} +1 -1
- package/dist/client/assets/{access-gate-C2FMXB7E.js → access-gate-Cnf06l1a.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CzeB9jwm.js → add-connection-dialog-D1_0-J8t.js} +1 -1
- package/dist/client/assets/agent-app-B4NG-g7u.js +1 -0
- package/dist/client/assets/{agent-assets-9HrQTQv3.js → agent-assets-DHnb5L5s.js} +1 -1
- package/dist/client/assets/{agent-automation-DzRF919j.js → agent-automation-DBCjX475.js} +1 -1
- package/dist/client/assets/{agent-automations-B7gnwLG-.js → agent-automations-BPqk0cma.js} +1 -1
- package/dist/client/assets/{agent-blog-C5kBZHf-.js → agent-blog-C6OhwET5.js} +2 -2
- package/dist/client/assets/{agent-blog-post-Bw3h59FR.js → agent-blog-post-BPTTHi05.js} +2 -2
- package/dist/client/assets/{agent-calendar-Barh2tCG.js → agent-calendar-n7d8kxeC.js} +1 -1
- package/dist/client/assets/{agent-capabilities-pZr4u-WY.js → agent-capabilities-MDN7TVuK.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-B13VfK46.js → agent-connect-sources-BLX7S3Bt.js} +1 -1
- package/dist/client/assets/agent-deck-DbvnjqCy.js +1 -0
- package/dist/client/assets/{agent-e2e-BZsczrS6.js → agent-e2e-C67cHNzK.js} +1 -1
- package/dist/client/assets/agent-experiments-D0KHYwLz.js +1 -0
- package/dist/client/assets/agent-file-DJr9f7Uu.js +1 -0
- package/dist/client/assets/{agent-hosting-C_4Ag01X.js → agent-hosting-DennpVxk.js} +1 -1
- package/dist/client/assets/{agent-icon-CmYgsdkA.js → agent-icon-B9nZhdi2.js} +1 -1
- package/dist/client/assets/agent-library-Q1o2w1EA.js +1 -0
- package/dist/client/assets/agent-library-file-DeAgo7Oz.js +1 -0
- package/dist/client/assets/agent-overview-BzbDDcHv.js +1 -0
- package/dist/client/assets/{agent-releases-DotOCii8.js → agent-releases-DaI8RCLw.js} +1 -1
- package/dist/client/assets/agent-settings-CmbLkbQ3.js +1 -0
- package/dist/client/assets/{agent-site-editor-U2R7cRzL.js → agent-site-editor-BH7NFZLQ.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-mWem5GG6.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Cxhwi79L.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BTUTVJ5a.js +1 -0
- package/dist/client/assets/agent-view-ZyP4-VSz.js +1 -0
- package/dist/client/assets/{agent-view-guard-BFv6g1Ko.js → agent-view-guard-DEo6nzlH.js} +1 -1
- package/dist/client/assets/{ai-providers-BuBmxWDQ.js → ai-providers-x5-E0mng.js} +1 -1
- package/dist/client/assets/{alert-DuHwFyfE.js → alert-N4205I9V.js} +1 -1
- package/dist/client/assets/{analytics-sections-CwBZ5Ted.js → analytics-sections-Bp_cD3eQ.js} +1 -1
- package/dist/client/assets/api-keys-DYGRMzXM.js +1 -0
- package/dist/client/assets/{api-keys-DrP5YQ4I.js → api-keys-F6uIkepe.js} +1 -1
- package/dist/client/assets/{app-editor-BsVJdNx8.js → app-editor-BPz6mU_a.js} +1 -1
- package/dist/client/assets/{asset-utils-QVjWQLHR.js → asset-utils-Lxwn3jp5.js} +1 -1
- package/dist/client/assets/{auth-D_64eYdt.js → auth-D0WiD-6X.js} +1 -1
- package/dist/client/assets/{auth-catchall-ILxf5wbm.js → auth-catchall-BtM_92ON.js} +1 -1
- package/dist/client/assets/{auth-entry-BCQtAQ2U.js → auth-entry-DGg6_6PX.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BJtbEMwI.js → auth-split-layout-BdlGf3S0.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DLO3ZGCC.js → authenticate-and-persist-oauth-CjsXQJBc.js} +1 -1
- package/dist/client/assets/{automation-list-row-D0MQGuMj.js → automation-list-row-Bh6TsYyw.js} +1 -1
- package/dist/client/assets/{automation-runs-CLRJ9cBM.js → automation-runs-F5hXkFSl.js} +1 -1
- package/dist/client/assets/{automations-BZt_2MgL.js → automations-x3uj3Ydy.js} +1 -1
- package/dist/client/assets/{badge-CT_Bowl_.js → badge-BUkSpOXa.js} +1 -1
- package/dist/client/assets/{block-document-BJjPR7oq.js → block-document-Bkfi8LNG.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DjXDZ6rd.js → blocks-preview-workspace-context-CwXYQcg5.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-D3HNXQiV.js → blocks-tab-states-_faw29v2.js} +1 -1
- package/dist/client/assets/{blog-preview-url-Dy7Dv8w3.js → blog-preview-url-Bk8Ya8Ff.js} +1 -1
- package/dist/client/assets/{blog-schema-XG0-2F17.js → blog-schema-D0iLRFhx.js} +1 -1
- package/dist/client/assets/{blog-source-gate-BNfT_-Se.js → blog-source-gate-CHqmG0fU.js} +1 -1
- package/dist/client/assets/{blog-view-gate-6XQCA5te.js → blog-view-gate-CBYiW3a_.js} +1 -1
- package/dist/client/assets/{buckets-CFkCJ9AR.js → buckets-PPqMjJPU.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CdIUjiPi.js → build-improve-prompt-doc-CQr1jYEn.js} +1 -1
- package/dist/client/assets/{calendar-5YPFZKxL.js → calendar-ByOFe-ir.js} +1 -1
- package/dist/client/assets/{capability-load-error-BuCmA5o8.js → capability-load-error-DCMluNzB.js} +1 -1
- package/dist/client/assets/{category-editor-Zr7r4C9b.js → category-editor-FMFHmdJ9.js} +1 -1
- package/dist/client/assets/{category-tree-C5NWwRUY.js → category-tree-DO91V9PE.js} +1 -1
- package/dist/client/assets/{chart-NHpn8rhZ.js → chart-B0F_JJb6.js} +1 -1
- package/dist/client/assets/{chat-context-oV4F8WQc.js → chat-context-BhwgXdxZ.js} +1 -1
- package/dist/client/assets/{chat-draft-a_gkkGrw.js → chat-draft-CG09JkEF.js} +1 -1
- package/dist/client/assets/{checkbox-D_sNmJye.js → checkbox-BwlyfOui.js} +1 -1
- package/dist/client/assets/{choose-editor-MNNOPLUU.js → choose-editor-DMmUjki_.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CXQ8jWXU.js → cli-auth-success-ChZ4KETS.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-BbFLb9ZS.js → cms-settings-editor-CIzKeqbY.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-DxbgkQ0A.js → cms-store-drafts-C3WBV5HM.js} +1 -1
- package/dist/client/assets/{collapsible-BG95WVUo.js → collapsible-BILoWprp.js} +1 -1
- package/dist/client/assets/{collection-detail-kw3HL7Zg.js → collection-detail-D6kEPWTW.js} +1 -1
- package/dist/client/assets/{collection-display-button-C9XgzERd.js → collection-display-button-BlEDYqVQ.js} +1 -1
- package/dist/client/assets/{collection-search-Blzi887q.js → collection-search-Dj3oO1qn.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-0fJW8NBx.js → collection-table-wrapper-C8_o4YW1.js} +1 -1
- package/dist/client/assets/{collection-tabs-BfGk19Xn.js → collection-tabs-Wktk7Bil.js} +1 -1
- package/dist/client/assets/{combobox-BugfSYhh.js → combobox-7VjvZkXU.js} +1 -1
- package/dist/client/assets/{command-2E07YrgQ.js → command-BcxQrgUK.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CSuVoTfi.js → companion-mcps-section-DQ1lC2cH.js} +1 -1
- package/dist/client/assets/{config-R6R9Ongh.js → config-Bn4oMb7y.js} +1 -1
- package/dist/client/assets/{connect-key-Cojwbl7P.js → connect-key-BqwNSl8t.js} +1 -1
- package/dist/client/assets/{connect-layout-Bx9T6hqz.js → connect-layout-DqtlIJwT.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-mX-5t-Zc.js → connect-source-dialog-HVNAw6m0.js} +1 -1
- package/dist/client/assets/{connect-M7tiJDQi.js → connect-uQ-qw1JW.js} +1 -1
- package/dist/client/assets/{connection-DjW2F0Sw.js → connection-CELF9xGk.js} +1 -1
- package/dist/client/assets/{connection-card-D0xB4Qjx.js → connection-card-DqAevMOq.js} +1 -1
- package/dist/client/assets/{connection-detail-CRthnQCY.js → connection-detail-MGfXYK35.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DFjr7AwA.js → connection-form-helpers-egiEwtYz.js} +1 -1
- package/dist/client/assets/{connection-slug-BY-obzjO.js → connection-slug-Dz7hwoVN.js} +1 -1
- package/dist/client/assets/{connections-BnoTkXmg.js → connections-D2NvIFXC.js} +1 -1
- package/dist/client/assets/{content-tab-BzfOLSKV.js → content-tab-BvT7P5lX.js} +3 -3
- package/dist/client/assets/{context-DVDLM_Ic.js → context-CggBlD0z.js} +1 -1
- package/dist/client/assets/{context-menu-CA2Qt-d2.js → context-menu-CXequwNl.js} +1 -1
- package/dist/client/assets/{context-shell-DabLWz4l.js → context-shell-Bqoi0m2O.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-D92lLoa4.js → create-organization-dialog-BOcGysWt.js} +1 -1
- package/dist/client/assets/{daily-pulse-Ds3sxReN.js → daily-pulse-BA0ikU80.js} +1 -1
- package/dist/client/assets/{delete-copy-3IZwE-9t.js → delete-copy-CzwVZl8P.js} +1 -1
- package/dist/client/assets/{device-hint-_LCtjil4.js → device-hint-CUh7MxFw.js} +1 -1
- package/dist/client/assets/{discover-5fE1YFIy.js → discover-Bt0PjesU.js} +1 -1
- package/dist/client/assets/{domain-settings-C3fyHcP5.js → domain-settings-BamU0icI.js} +1 -1
- package/dist/client/assets/{drawer-XYh0Y76X.js → drawer-EGIO8vW1.js} +1 -1
- package/dist/client/assets/{editor-um5vPMjZ.js → editor-B_YvqDEq.js} +1 -1
- package/dist/client/assets/{editor-classes-BatboZCB.js → editor-classes-D2vt4K2z.js} +1 -1
- package/dist/client/assets/{empty-message-B27EvPA5.js → empty-message-BR97lu1R.js} +1 -1
- package/dist/client/assets/{empty-state-DUI1uMab.js → empty-state-D--R_kh-.js} +1 -1
- package/dist/client/assets/{empty-state-CD43HEkx.js → empty-state-DxGz72GL.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-BWnh1BzP.js → experiments-tab-choice-zR5-VX5L.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BhyRah4W.js → extract-connection-data-DeUSUVIy.js} +1 -1
- package/dist/client/assets/{feature-gate-Dg0v4va6.js → feature-gate-DK9IZjbG.js} +1 -1
- package/dist/client/assets/{feature-paywall-TG7L-qMr.js → feature-paywall-BQdFbBKY.js} +1 -1
- package/dist/client/assets/{file-explorer-DSgGqDRY.js → file-explorer-6XHpEO9J.js} +1 -1
- package/dist/client/assets/{file-preview-CIfFSMEa.js → file-preview-CXliAtvL.js} +1 -1
- package/dist/client/assets/{file-share-button-mrsJYdan.js → file-share-button-BUHoICkf.js} +1 -1
- package/dist/client/assets/{file-type-icon-MJit4Xxk.js → file-type-icon-Bhy3vcyl.js} +1 -1
- package/dist/client/assets/{folder-icon-CIbEuHFJ.js → folder-icon-BD8Yju3a.js} +1 -1
- package/dist/client/assets/{form-CTAz1vX9.js → form-Cb5OHNc9.js} +1 -1
- package/dist/client/assets/{frame-navigation-BBEhmW78.js → frame-navigation-D5yMy5Mm.js} +1 -1
- package/dist/client/assets/{gateway-client-BKm00588.js → gateway-client-t5s1Cm0x.js} +1 -1
- package/dist/client/assets/{general-CYA6Zf6p.js → general-DfARJPaG.js} +1 -1
- package/dist/client/assets/{github-icon-llpq0MNv.js → github-icon-BoZrKkV3.js} +1 -1
- package/dist/client/assets/{held-block-view-DVOSfe5P.js → held-block-view-Bm4hn8SE.js} +1 -1
- package/dist/client/assets/{home-HOYD9Ses.js → home-COKBWHzA.js} +1 -1
- package/dist/client/assets/{home-overview-BwE_ga8l.js → home-overview-C0oKtq4c.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-CwdLagF7.js → hosted-reconcile-mSp200Ck.js} +1 -1
- package/dist/client/assets/{icon-button-D7LkPwOF.js → icon-button-CpBLMSxk.js} +1 -1
- package/dist/client/assets/{index-weqOv2y6.js → index-0AidFUUh.js} +1 -1
- package/dist/client/assets/{index-coAeu4pU.js → index-A2_7RKep.js} +1 -1
- package/dist/client/assets/{index-SF6h0OMA.js → index-BED_VE7w.js} +1 -1
- package/dist/client/assets/{index-CYgHpTZe.js → index-BQrnEOJ9.js} +1 -1
- package/dist/client/assets/{index-eNu6nx1W.js → index-BTT5sL01.js} +1 -1
- package/dist/client/assets/{index-DY2XXBge.js → index-Bi2fLJMb.js} +1 -1
- package/dist/client/assets/{index-Biams685.js → index-BsAwgxIf.js} +3 -3
- package/dist/client/assets/{index-DoatmtZ6.js → index-CGQejmXu.js} +1 -1
- package/dist/client/assets/{index-BPGM2v94.js → index-CM0d89Yv.js} +1 -1
- package/dist/client/assets/{index-BAqfesXo.js → index-CT5cpmuw.js} +1 -1
- package/dist/client/assets/{index-BldUavnl.js → index-D1alBOdU.js} +1 -1
- package/dist/client/assets/{index-DudhPIvY.js → index-DEh8AOfP.js} +1 -1
- package/dist/client/assets/{index-BWYImI42.js → index-DKlpvKuq.js} +1 -1
- package/dist/client/assets/index-DQWJotH-.js +1 -0
- package/dist/client/assets/{index-D4_P19LT.js → index-KBC7Pj7l.js} +1 -1
- package/dist/client/assets/{index-B_wXIpW7.js → index-KFEtz5HA.js} +1 -1
- package/dist/client/assets/{index-DcEkCGAP.js → index-Oc-4w-Ob.js} +1 -1
- package/dist/client/assets/{index-redirect-ZSm9yQL-.js → index-redirect-DWwBvPoP.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DviOrlp9.js → infiniteQueryObserver-CnD94meO.js} +1 -1
- package/dist/client/assets/{infra-billing-IBBLIWxF.js → infra-billing-C7MnSX69.js} +1 -1
- package/dist/client/assets/{input-B76M4kKw.js → input--kphUWpn.js} +1 -1
- package/dist/client/assets/{input-CeB8s6SZ.js → input-Cy8KNDYA.js} +3 -3
- package/dist/client/assets/{integration-icon-C76s6rje.js → integration-icon-DbiCbrD7.js} +1 -1
- package/dist/client/assets/{item-actions-CZZ--PmH.js → item-actions-BR3Rk3pU.js} +1 -1
- package/dist/client/assets/{jira-icon-XEH4IQk9.js → jira-icon-BJDzOHlp.js} +1 -1
- package/dist/client/assets/{label-B5koT7GN.js → label-D8u4gNcM.js} +1 -1
- package/dist/client/assets/{layout-CxyUazai.js → layout-Djcel6JN.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-D0q0NbRI.js → legacy-admin-welcome-dialog-C4yFyjEg.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-C2DNyxqu.js → legacy-agents-deep-BhezYC1Y.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-WtSatDH5.js → legacy-main-redirect-B2LMkN9B.js} +1 -1
- package/dist/client/assets/library-i7u4D0nv.js +1 -0
- package/dist/client/assets/{library-tab-2qBenxku.js → library-tab-B6AGBITt.js} +1 -1
- package/dist/client/assets/{login-c4mGU54U.js → login-D-FcOLf-.js} +1 -1
- package/dist/client/assets/{markdown-QFsCz8HO.js → markdown-SwM1Ir6g.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BQn1YwZp.js → mcp-app-renderer-Jzrzu2q5.js} +1 -1
- package/dist/client/assets/{mcp-oauth-o7ej4_IN.js → mcp-oauth-DXUgkWSg.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BjLyRnBa.js → mcp-oauth-nZa_TONF.js} +1 -1
- package/dist/client/assets/{members-D8PhbHd1.js → members-pMC1bfqu.js} +1 -1
- package/dist/client/assets/{memory-BtY-1LoU.js → memory-msRY8EWU.js} +1 -1
- package/dist/client/assets/{mock-board-BtI43PTx.js → mock-board-4Dfd4bxV.js} +3 -3
- package/dist/client/assets/{monaco-editor-D9Tg3MLA.js → monaco-editor-Dj-bs0sb.js} +1 -1
- package/dist/client/assets/{monitoring-CtQcY_Yw.js → monitoring-Db6Y9X_T.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-HbK1wloz.js → monitoring-stats-row-9YaCFmpo.js} +1 -1
- package/dist/client/assets/{multi-select-B-3mGzW5.js → multi-select-Cp5gIPzv.js} +1 -1
- package/dist/client/assets/{mustache-BLA1CrAV.js → mustache-CyusQksc.js} +1 -1
- package/dist/client/assets/{named-rule-step-8144d_yV.js → named-rule-step-DbDjzYJn.js} +1 -1
- package/dist/client/assets/{named-rule-view-DPkhmptL.js → named-rule-view-Dh3pa8Ix.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CZtNDQaD.js → new-project-dialog-CrDlez-N.js} +1 -1
- package/dist/client/assets/{new-project-store-DNJn4Jmh.js → new-project-store-DleT4y6U.js} +1 -1
- package/dist/client/assets/{oauth-callback-6T3u1_5o.js → oauth-callback-D-LN8o-r.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B-x9qcVx.js → oauth-callback-ai-provider-BKOttmuU.js} +1 -1
- package/dist/client/assets/{oauth-consent-DVlsNNXL.js → oauth-consent-C0LB3lfZ.js} +1 -1
- package/dist/client/assets/{onboarding-Cb57pCFu.js → onboarding-DRXH9Y7t.js} +1 -1
- package/dist/client/assets/{openai-conversation-DcmrMDzM.js → openai-conversation-BDQFSE01.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BRMs4i73.js → optimistic-project-sidebar-views-DpB-Kj9e.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DfXP58WW.js → order-monitor-day-7qmkUUGV.js} +1 -1
- package/dist/client/assets/{organization-choice-CUWW63qG.js → organization-choice-Bs6uDF8C.js} +1 -1
- package/dist/client/assets/{orgs-BZlWgF_x.js → orgs-CwaDyfCI.js} +1 -1
- package/dist/client/assets/{own-accounts-section-DxCHg0ny.js → own-accounts-section-wo48sm2j.js} +1 -1
- package/dist/client/assets/{pair-CgVGpWTx.js → pair-4JIJkNK2.js} +1 -1
- package/dist/client/assets/{parse-sections-DUGfLIWJ.js → parse-sections-3dpMP28-.js} +2 -2
- package/dist/client/assets/{plan-DnwLIGzd.js → plan-CgB_LoKO.js} +1 -1
- package/dist/client/assets/{plan-ladder-Bu6W70aQ.js → plan-ladder-DAHXnxDP.js} +1 -1
- package/dist/client/assets/{plan-usage-card-C57l8FIL.js → plan-usage-card-DKC1nkf_.js} +1 -1
- package/dist/client/assets/{popover-DmvVZ360.js → popover-DogMO3pk.js} +1 -1
- package/dist/client/assets/{post-calendar-DznCDSLK.js → post-calendar-CwmTBZkp.js} +1 -1
- package/dist/client/assets/{post-editor-wEb9hjKG.js → post-editor-CDKF4zje.js} +1 -1
- package/dist/client/assets/{preview-content-CviEl4FA.js → preview-content-D6MLtumX.js} +1 -1
- package/dist/client/assets/{preview-dialog-BjWX-MRB.js → preview-dialog-Bc3kRUrq.js} +1 -1
- package/dist/client/assets/{preview-panel-SI4Ib1Aj.js → preview-panel-BkNp3-My.js} +1 -1
- package/dist/client/assets/{preview-tab-Dk62lBXe.js → preview-tab-BLd_YM6q.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-BnZa5p8U.js → product-picker-dialog-BEHWsHij.js} +1 -1
- package/dist/client/assets/{profile-27iQlhcJ.js → profile-CxcB48LV.js} +1 -1
- package/dist/client/assets/{project-app-view-BwR2AERO.js → project-app-view-DThAV1rl.js} +1 -1
- package/dist/client/assets/{project-apps-rpgmmv_y.js → project-apps-B94DpdMu.js} +1 -1
- package/dist/client/assets/{project-icon-VgM1tY99.js → project-icon-BHcF2TIr.js} +1 -1
- package/dist/client/assets/{project-index-CDh44wXq.js → project-index-Be1RuOJ6.js} +1 -1
- package/dist/client/assets/project-reports-K8JRKUu4.js +1 -0
- package/dist/client/assets/project-tasks-CA5yJnAe.js +1 -0
- package/dist/client/assets/{projects-OCdIg2Gi.js → projects-C1GSJkUl.js} +1 -1
- package/dist/client/assets/{projects-empty-state-i0nk7emw.js → projects-empty-state-DlLdfDdd.js} +1 -1
- package/dist/client/assets/{prompts-DNMt0A82.js → prompts-5zeVOrro.js} +1 -1
- package/dist/client/assets/record-editor-DayZB6HD.js +1 -0
- package/dist/client/assets/{redirect-editor-YrpaR7IQ.js → redirect-editor-CEVbDPNz.js} +1 -1
- package/dist/client/assets/{reports-CHlbCaSO.js → reports-S46_cn_C.js} +1 -1
- package/dist/client/assets/{reports-onboarding-BU0_JYSd.js → reports-onboarding-Bgx5Wbga.js} +1 -1
- package/dist/client/assets/{reports-tab-BXwRh5Je.js → reports-tab-CajwSXZt.js} +2 -2
- package/dist/client/assets/reports-vF-XIQTi.js +1 -0
- package/dist/client/assets/{repositories-D5ePo5qD.js → repositories-B1gkEk-T.js} +1 -1
- package/dist/client/assets/repositories-CMSsRRv6.js +1 -0
- package/dist/client/assets/{repository-binding-CWTr70tX.js → repository-binding-BS9v5Fe_.js} +1 -1
- package/dist/client/assets/{repository-picker-CAtWKBbx.js → repository-picker-CXtPhUQx.js} +1 -1
- package/dist/client/assets/{require-capability-BEpAmIG-.js → require-capability-Db5kMZvY.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CgZqM250.js → required-auth-layout-C_8jBLMB.js} +1 -1
- package/dist/client/assets/{reset-password-bO2BtcrT.js → reset-password-DIVuqYKV.js} +1 -1
- package/dist/client/assets/{resizable-CFK0TmIM.js → resizable-97tyuWCT.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-qGMCDrsW.js → resolve-tab-icon-CgO8Qihl.js} +1 -1
- package/dist/client/assets/{review-settings-3GBzR4Yt.js → review-settings-CLgbnmq-.js} +1 -1
- package/dist/client/assets/{role-color-Bdj8ikki.js → role-color-gTG8o13c.js} +1 -1
- package/dist/client/assets/{roles-BOeP1ebp.js → roles-zI-Hk6fY.js} +1 -1
- package/dist/client/assets/{route-j_qO2dDr.js → route-BVVvTINP.js} +1 -1
- package/dist/client/assets/route-DGTGR39c.js +1 -0
- package/dist/client/assets/{route-CYW15Jx-.js → route-JrcnSNgm.js} +1 -1
- package/dist/client/assets/{route-page-header-kK3KuiFw.js → route-page-header-DFLx6qIf.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-BTtQPEAs.js → sandbox-git-api-CbcKlTqF.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-Cq9tokKr.js → sandbox-lifecycle-context-Ckk9fyCX.js} +1 -1
- package/dist/client/assets/{save-status-D6ZCuvIw.js → save-status-DIv_w4LK.js} +1 -1
- package/dist/client/assets/{schema-D-rmQGG7.js → schema-CggWCz-G.js} +1 -1
- package/dist/client/assets/{schema-5sguLDZR.js → schema-CsWev9Lq.js} +1 -1
- package/dist/client/assets/{scroll-area--F5PSuIY.js → scroll-area-KLc2042F.js} +1 -1
- package/dist/client/assets/{search-input-DSB0t8kj.js → search-input-D6gGXIf1.js} +1 -1
- package/dist/client/assets/{search-toggle-qYosTs_8.js → search-toggle-CMDWFPiy.js} +1 -1
- package/dist/client/assets/{secret-picker-0-8hMF-u.js → secret-picker-IFIVFm7w.js} +1 -1
- package/dist/client/assets/{secrets-DXxd7p_6.js → secrets-jBAw0ULO.js} +1 -1
- package/dist/client/assets/{section-array-field-bEeF0FCV.js → section-array-field-fkRL6dJN.js} +1 -1
- package/dist/client/assets/{sections-V-F7INF6.js → sections-DH2lycfv.js} +1 -1
- package/dist/client/assets/{sections-editor-zU--ttbg.js → sections-editor-BWiwMgid.js} +1 -1
- package/dist/client/assets/{select-ewWPkQXd.js → select-DPXDtN3F.js} +1 -1
- package/dist/client/assets/{select-model-lB0XjZQu.js → select-model-DL2dvL4e.js} +1 -1
- package/dist/client/assets/{seo-editor-C4YIyat5.js → seo-editor-Qsv4nJ3u.js} +1 -1
- package/dist/client/assets/{separator-C0S3W_GK.js → separator-CL-QJFBL.js} +1 -1
- package/dist/client/assets/{session-runtime-OZnQWVyx.js → session-runtime-BtkBTCEv.js} +1 -1
- package/dist/client/assets/settings-tab-9VStd703.js +1 -0
- package/dist/client/assets/{sheet-DYP4kWtX.js → sheet-DKmzxIAF.js} +1 -1
- package/dist/client/assets/{shell-layout-Dd3ZOJl-.js → shell-layout-DwJrXedk.js} +1 -1
- package/dist/client/assets/{site-draft-actions-B_UnkEm1.js → site-draft-actions-CKH_63G-.js} +1 -1
- package/dist/client/assets/{site-draft-view-B1FDjL56.js → site-draft-view-Cr2tGRpR.js} +1 -1
- package/dist/client/assets/site-editor-CVnLWuGP.js +1 -0
- package/dist/client/assets/{site-editor-toast-DrqWp80X.js → site-editor-toast-BRXEnjic.js} +1 -1
- package/dist/client/assets/{skills-Bzk9DhOS.js → skills-DJZ4NcoQ.js} +1 -1
- package/dist/client/assets/{slider-BcolzkZg.js → slider-tajZdOy1.js} +1 -1
- package/dist/client/assets/{sortable.esm-BeN2A75n.js → sortable.esm-xHKM0aSe.js} +1 -1
- package/dist/client/assets/{sso-DO6R7GAe.js → sso-CdgaAIgO.js} +1 -1
- package/dist/client/assets/{suggestion-BW469wQ_.js → suggestion-BapLR6AM.js} +1 -1
- package/dist/client/assets/{super-agent-icon-fbJctyE7.js → super-agent-icon-DD9h5HSQ.js} +1 -1
- package/dist/client/assets/{switch-Dmoe_p0M.js → switch-DEje7fmz.js} +1 -1
- package/dist/client/assets/{synced-repos-C2KamLS5.js → synced-repos-p7TfojtZ.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-BpWNgKYN.js → tab-icon-glyph-DlkpXRLw.js} +1 -1
- package/dist/client/assets/{table-DearQIjo.js → table-Cie3FI8M.js} +1 -1
- package/dist/client/assets/{tabs-BqUC_RhT.js → tabs-BMObVAFs.js} +1 -1
- package/dist/client/assets/{task-board-DfE7ACDs.js → task-board-CZuAKwkd.js} +1 -1
- package/dist/client/assets/{task-key-D5Xi8Zpv.js → task-key-Binbqohp.js} +1 -1
- package/dist/client/assets/{task-route-YrsLsrlf.js → task-route-IxeWFQf4.js} +1 -1
- package/dist/client/assets/{task-status-Gh6OxLHy.js → task-status-24VN3LnD.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DwPeXP0G.js → taskboard-analytics-TIghTMhL.js} +1 -1
- package/dist/client/assets/{tasks-JQNDYPkv.js → tasks-DnDVdrmF.js} +1 -1
- package/dist/client/assets/tasks-UA8LFybk.js +1 -0
- package/dist/client/assets/{textarea-DDxBLXs2.js → textarea-3iEFQij9.js} +1 -1
- package/dist/client/assets/{thread-analytics-D-buV8-Z.js → thread-analytics-DvdOTcnX.js} +1 -1
- package/dist/client/assets/{thread-button-Swmr63Yb.js → thread-button-ChRjFza7.js} +1 -1
- package/dist/client/assets/{thread-intent-B4ztyrl0.js → thread-intent-BNoxio0t.js} +1 -1
- package/dist/client/assets/{thread-route-6XiMNHA9.js → thread-route-DEzPmkpC.js} +1 -1
- package/dist/client/assets/{thread-route-DmAvNVfz.js → thread-route-sNjMl6Ie.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-DZFMrcN3.js → thread-sheet-body-JBqWWQDi.js} +1 -1
- package/dist/client/assets/{time-range-picker-iaayu7xs.js → time-range-picker-DDjkoMQs.js} +1 -1
- package/dist/client/assets/{toggle-group-CVXqq62l.js → toggle-group-N0qYYn6W.js} +1 -1
- package/dist/client/assets/{tool-set-selector-DEUJAQky.js → tool-set-selector-BE0R1AUj.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CrkoLL-g.js → toolbar-icon-button-BSXImY57.js} +1 -1
- package/dist/client/assets/{tooltip-CqtvIcRI.js → tooltip-r0LfLYi3.js} +1 -1
- package/dist/client/assets/{tooltipContext-BIVvJQGQ.js → tooltipContext-DRtEpNZN.js} +1 -1
- package/dist/client/assets/{track-jnZwcvQW.js → track-Ciq_Ag4i.js} +1 -1
- package/dist/client/assets/{types-CqLgXd5K.js → types-BhUJ3bOA.js} +1 -1
- package/dist/client/assets/{url-slug-BMcANwuf.js → url-slug-CR2COLQn.js} +1 -1
- package/dist/client/assets/{usage-stats-LbQgUlFb.js → usage-stats-BH8jlFhP.js} +1 -1
- package/dist/client/assets/{use-ai-providers-D-W7KWam.js → use-ai-providers-CFArCH41.js} +1 -1
- package/dist/client/assets/{use-api-keys-BZkdV8_9.js → use-api-keys-lPXg3MPh.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-Du3q600g.js → use-apply-named-rule-C4A8N8Up.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-DxfAfFUt.js +1 -0
- package/dist/client/assets/{use-automations-CDdcaseZ.js → use-automations-DcCuqnYq.js} +1 -1
- package/dist/client/assets/{use-autosave-B7jzEDxJ.js → use-autosave-Cpi6qZoh.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-uH3tLJJX.js +1 -0
- package/dist/client/assets/use-blog-view-B-p1Bott.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-3j9yfEqK.js → use-chat-layout-state-DjHcwQYx.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-DO2ageGn.js → use-cms-publish-actions-BbXykL5B.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BC1E9YXV.js → use-connect-companion-CNj3wQey.js} +1 -1
- package/dist/client/assets/{use-connection-D2uhV2tM.js → use-connection-DpuSfyHb.js} +1 -1
- package/dist/client/assets/{use-content-sync-CoY-_8zJ.js → use-content-sync-C9laqqVB.js} +1 -1
- package/dist/client/assets/{use-copy-D38lTrG-.js → use-copy-BFUDxfVH.js} +1 -1
- package/dist/client/assets/{use-current-view-DJKRVR3b.js → use-current-view-C1-z4fIk.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BoNBckFl.js → use-date-fns-locale-D6T1OHTy.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CTSPCSDa.js → use-debounced-autosave-C5QlmVn0.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Bih1VwpO.js → use-debounced-value-BkJoL4uj.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C7-mSVdn.js → use-deco-credits-zD_A42hI.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DZT948GO.js → use-decopilot-events-CZR337Lj.js} +1 -1
- package/dist/client/assets/{use-delete-block-CcKC_Ygp.js → use-delete-block-BYw_7GRP.js} +1 -1
- package/dist/client/assets/{use-delete-connection-3J4cAqjZ.js → use-delete-connection-B0ASWh3-.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-IWWegkPe.js → use-deployment-admin-DGQGQZ6E.js} +1 -1
- package/dist/client/assets/{use-entitlements-DczHLBrX.js → use-entitlements-BRKIl3Rz.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DQQlKJc9.js → use-fast-preview-draft-url-BTGBRNHr.js} +1 -1
- package/dist/client/assets/{use-file-configs-CRoKvN6g.js → use-file-configs-CMTQcHfJ.js} +1 -1
- package/dist/client/assets/{use-id-selection-Bb7QXS3G.js → use-id-selection-Bn7c-vY3.js} +1 -1
- package/dist/client/assets/{use-in-settings-N8ExD21K.js → use-in-settings-BT3nEhsO.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-Bcqc3dOm.js → use-inbox-feed-DGj1Phk9.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BGpcvUym.js → use-infinite-scroll-Dv1yBngZ.js} +1 -1
- package/dist/client/assets/{use-join-requests-B56l6qYX.js → use-join-requests-DMRpQYlE.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-C6f1cnZR.js → use-main-panel-tabs-C0GJ35ov.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CmK1_0eP.js → use-mcp-auth-status-D9OBaQkq.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DwG9qZWg.js → use-mcp-client-DXpTlXlJ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D7T45oWG.js → use-mcp-prompts-B_BU9Jdl.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DKzBuG5m.js → use-mcp-tools-B0m5-RR6.js} +1 -1
- package/dist/client/assets/{use-mobile-0AteUciZ.js → use-mobile-BwxeIsTr.js} +1 -1
- package/dist/client/assets/{use-move-blocks-CgGynxG8.js → use-move-blocks-D-OheBD-.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C6-ZqKGw.js → use-navigate-to-agent-DjeX7xEq.js} +1 -1
- package/dist/client/assets/{use-never-published-RVkCjO67.js → use-never-published-CP8Hs4DE.js} +1 -1
- package/dist/client/assets/{use-org-fs-ZPuN9WFa.js → use-org-fs-D2bsNlGU.js} +1 -1
- package/dist/client/assets/{use-org-notice-pbZd-uTd.js → use-org-notice-BLcA1Iw0.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BrQetXCm.js → use-org-repo-syncs-Dfmuqlr1.js} +1 -1
- package/dist/client/assets/{use-org-sso-D48jSMd3.js → use-org-sso-DhdCpzK5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BV6bWoGw.js → use-organization-settings-BilLeNy9.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Du4Vt0nC.js → use-panel-navigate-DpEZACCY.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-zLdmW5cR.js → use-project-native-view-presence-D4zm5hDa.js} +1 -1
- package/dist/client/assets/{use-project-scope-V_yAQHXr.js → use-project-scope-C815BKEh.js} +1 -1
- package/dist/client/assets/{use-recent-apps-Bb8uZJJ7.js → use-recent-apps-Cr_xiDfS.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Cd_5Wnxu.js → use-reports-diagnostic-Djz2mp7k.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-D1U-YJTq.js → use-sandbox-events-aK2a02aF.js} +1 -1
- package/dist/client/assets/{use-secrets-CZuFBjjc.js → use-secrets-CJ3hXlfU.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BCev-1VC.js → use-section-preview-base-Ve5g9dlJ.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-Chi-pzOH.js → use-sidebar-collapsed-CSFUmB9m.js} +1 -1
- package/dist/client/assets/{use-tags-KY-h_MnI.js → use-tags-ZV0RDof-.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CUhloUfr.js → use-task-board-analytics-4kD6ppwm.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-DNGaq5jj.js → use-task-board-item-prs-Cwh80HEy.js} +1 -1
- package/dist/client/assets/{use-task-board-items-B59GLlEu.js → use-task-board-items-DX_SyoB4.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-C1giWqqF.js → use-task-board-prompts-Cf3d-x7e.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BRvJ0j3n.js → use-task-metadata-L7Sk1FlH.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-Bkey3xVy.js → use-thread-outputs-HnCGzIoZ.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-B_9utcmK.js → use-view-draft-kind-1niLZJ6g.js} +1 -1
- package/dist/client/assets/{use-voice-input-DlzypJCY.js → use-voice-input-DYwW5R3c.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C5Fx0PfA.js +1 -0
- package/dist/client/assets/{useQueries-Cviw5w4f.js → useQueries-BNC8S8pQ.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-kmW-ybmd.js +1 -0
- package/dist/client/assets/{users-BA4T3itE.js → users-DeIRsAGC.js} +1 -1
- package/dist/client/assets/{utils-Cj5LhXnA.js → utils-DII4rh9V.js} +1 -1
- package/dist/client/assets/{variant-calendar-DGQ-mjKB.js → variant-calendar-ChRlrtIQ.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-ChpI3nIf.js → variant-matcher-override-DQIPA96S.js} +1 -1
- package/dist/client/assets/{view-header-LXBXxSn6.js → view-header-CDV0Xu_P.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DLUwjTux.js → virtual-mcp-DrcP-MsH.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Ds--pRle.js → watch-sse-pool-Bw3-M9_N.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +3 -3
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B1jAr8QK.js +0 -1
- package/dist/client/assets/agent-deck-BVwGHwBR.js +0 -1
- package/dist/client/assets/agent-experiments-COyu5Rcl.js +0 -1
- package/dist/client/assets/agent-file-DPDrxE_7.js +0 -1
- package/dist/client/assets/agent-library-file-CU1eOkzE.js +0 -1
- package/dist/client/assets/agent-library-q8_LANcn.js +0 -1
- package/dist/client/assets/agent-overview-BRnB7iWT.js +0 -1
- package/dist/client/assets/agent-settings-Cgvnel34.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BqSvfO76.js +0 -2
- package/dist/client/assets/agent-site-editor-content-_-tYyjOD.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-jH-WOsrh.js +0 -1
- package/dist/client/assets/agent-view-MbD56jPl.js +0 -1
- package/dist/client/assets/api-keys-3eW-YyQD.js +0 -1
- package/dist/client/assets/index-Ddy7VxaQ.js +0 -1
- package/dist/client/assets/library-BJvDSCmL.js +0 -1
- package/dist/client/assets/project-reports-COvDIlvF.js +0 -1
- package/dist/client/assets/project-tasks-CwFPqddm.js +0 -1
- package/dist/client/assets/record-editor-CDN43J2z.js +0 -1
- package/dist/client/assets/reports-Dz649Ru_.js +0 -1
- package/dist/client/assets/repositories-C5371f0z.js +0 -1
- package/dist/client/assets/route-BWi6FubP.js +0 -1
- package/dist/client/assets/settings-tab-zo16wZrm.js +0 -1
- package/dist/client/assets/site-editor-CDmLmfhI.js +0 -1
- package/dist/client/assets/tasks-D4yf2jWh.js +0 -1
- package/dist/client/assets/use-ask-in-chat-ChyvfgT2.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-DcqGx_ow.js +0 -1
- package/dist/client/assets/use-blog-view-D_eJjHyi.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CSP4ZKWe.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BuFOWpb6.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as j,ar as W,at as q,b as E,r as z,d as G,j as o,aR as $,R as I,P as N,n as U,B as k,b5 as V}from"./index-BsAwgxIf.js";import{u as K}from"./use-mobile-BwxeIsTr.js";import{T as Y,a as Z,c as J}from"./tooltip-r0LfLYi3.js";import{t as Q,a as X}from"./MessageCircle01-CQjeMfQj.js";import{s as ee}from"./XClose-Dq0BGBMq.js";import{b as te}from"./thread-button-ChRjFza7.js";import{T as ne}from"./toolbar-icon-button-BSXImY57.js";import{b as se,R as oe,a as D}from"./resizable-97tyuWCT.js";import{c as re,r as ie,m as le}from"./use-chat-layout-state-DjHcwQYx.js";import{R as ae}from"./route-page-header-DFLx6qIf.js";import"./index-KBC7Pj7l.js";import"./use-sidebar-collapsed-CSFUmB9m.js";import"./sheet-DKmzxIAF.js";import"./use-in-settings-BT3nEhsO.js";import"./use-panel-navigate-DpEZACCY.js";import"./thread-route-sNjMl6Ie.js";import"./use-project-scope-C815BKEh.js";import"./repository-binding-BS9v5Fe_.js";import"./use-mcp-client-DXpTlXlJ.js";import"./auth-D0WiD-6X.js";import"./LayoutLeft-DHg_jNr0.js";import"./use-current-view-C1-z4fIk.js";function A(t,e){const n=typeof t=="number"?t:Number(t);return!Number.isFinite(n)||n<=0||n>=100?e:n}function ce(t,e){const n=j.c(8);let r;n[0]!==e?(r=c=>A(c,e),n[0]=e,n[1]=r):r=n[1];const[i,l]=W(t,r);let s;n[2]!==e||n[3]!==i?(s=A(i,e),n[2]=e,n[3]=i,n[4]=s):s=n[4];let a;return n[5]!==l||n[6]!==s?(a=[s,l],n[5]=l,n[6]=s,n[7]=a):a=n[7],a}const ue=33;function de(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=q.sidePanelWidth(),t[0]=e):e=t[0],ce(e,ue)}const P="chat-layout-thread",M="chat-layout-content",H="320px",O=z.createContext(null);function Fe(){return T()}function fe(){return z.use(O)}function T(){const t=z.use(O);if(!t)throw new Error("ChatLayout regions require a ChatLayout");return t}function he(t){const e=j.c(22),{children:n,...r}=t,i=K(),l=G(),s=z.useRef(null),[a,c]=de(),{threadOpen:u,contentOpen:d}=r,h=re(r),m=u&&d?a:h.side,p=100-m,y=b=>{const v=b.getLayout(),w=v[P],S=v[M];typeof w!="number"||typeof S!="number"||Math.abs(w-m)<.001&&Math.abs(S-p)<.001||b.setLayout({[P]:m,[M]:p})},C=ie(r);let x;e[0]!==i||e[1]!==r||e[2]!==C?(x={...r,isMobile:i,mobileSurface:C},e[0]=i,e[1]=r,e[2]=C,e[3]=x):x=e[3];const f=x;let g;e[4]!==i||e[5]!==r||e[6]!==l||e[7]!==f?(g=i&&!r.threadless&&o.jsx(te,{open:f.mobileSurface==="chat",onToggle:()=>{l({to:".",search:b=>({...b,...le(f.mobileSurface==="chat"?"main":"chat")}),replace:!0})}}),e[4]=i,e[5]=r,e[6]=l,e[7]=f,e[8]=g):g=e[8];let L;e[9]!==n||e[10]!==d||e[11]!==p||e[12]!==i||e[13]!==c||e[14]!==y||e[15]!==u||e[16]!==m?(L=i?o.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:n}):o.jsx(oe,{ref:b=>{if(s.current=b,!b)return;let v=!0;return queueMicrotask(()=>{v&&y(b)}),()=>{v=!1,s.current===b&&(s.current=null)}},defaultLayout:{[P]:m,[M]:p},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0",style:{overflow:"visible"},onLayoutChanged:(b,v)=>{const{isUserInteraction:w}=v;if(!w){const B=s.current;B&&y(B);return}const S=b[P];u&&d&&typeof S=="number"&&S>0&&S<100&&c(S)},children:n}),e[9]=n,e[10]=d,e[11]=p,e[12]=i,e[13]=c,e[14]=y,e[15]=u,e[16]=m,e[17]=L):L=e[17];let _;return e[18]!==g||e[19]!==L||e[20]!==f?(_=o.jsxs(O,{value:f,children:[g,L]}),e[18]=g,e[19]=L,e[20]=f,e[21]=_):_=e[21],_}function me(t){const e=j.c(14),{children:n,topbar:r}=t,i=T();if(i.isMobile){let u;return e[0]!==n||e[1]!==i.mobileSurface||e[2]!==r?(u=i.mobileSurface==="chat"?o.jsxs(N,{variant:"plain","data-slot":"chat-layout-thread",children:[r,o.jsx(N.Content,{"data-testid":"chat-panel",children:n})]}):null,e[0]=n,e[1]=i.mobileSurface,e[2]=r,e[3]=u):u=e[3],u}if(!i.threadOpen)return null;let l;e[4]!==i.contentOpen?(l=i.contentOpen&&o.jsx(se,{className:"bg-sidebar"}),e[4]=i.contentOpen,e[5]=l):l=e[5];let s;e[6]!==n?(s=o.jsx(N.Content,{"data-testid":"chat-panel",children:n}),e[6]=n,e[7]=s):s=e[7];let a;e[8]!==s||e[9]!==r?(a=o.jsx(D,{id:P,defaultSize:"33%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsx("div",{className:"h-full min-h-0 p-0.5",children:o.jsxs(N,{"data-testid":"side-panel",children:[r,s]})})}),e[8]=s,e[9]=r,e[10]=a):a=e[10];let c;return e[11]!==l||e[12]!==a?(c=o.jsxs(o.Fragment,{children:[l,a]}),e[11]=l,e[12]=a,e[13]=c):c=e[13],c}function F(t){const e=j.c(10),{label:n,pressed:r,onClick:i,children:l}=t;let s;e[0]!==l||e[1]!==n||e[2]!==i||e[3]!==r?(s=o.jsx(Y,{asChild:!0,children:o.jsx(ne,{"aria-label":n,"aria-pressed":r,onClick:i,children:l})}),e[0]=l,e[1]=n,e[2]=i,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==n?(a=o.jsx(Z,{side:"bottom",children:n}),e[5]=n,e[6]=a):a=e[6];let c;return e[7]!==s||e[8]!==a?(c=o.jsxs(J,{children:[s,a]}),e[7]=s,e[8]=a,e[9]=c):c=e[9],c}function pe(){const t=j.c(12),e=E(),n=T();if(n.isMobile||n.threadless)return null;const r=!n.threadOpen;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("span",{"aria-hidden":!0,className:"mr-1.5 h-4 w-px shrink-0 bg-border"}),t[0]=i):i=t[0];let l;t[1]!==r||t[2]!==n.toggleFullscreen||t[3]!==e?(l=r?o.jsxs(k,{variant:"ghost",size:"sm","aria-pressed":r,className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:n.toggleFullscreen,children:[o.jsx(Q,{size:16}),e("page.exitFullscreen")]}):o.jsx(F,{label:e("page.enterFullscreen"),pressed:r,onClick:n.toggleFullscreen,children:o.jsx(X,{size:16})}),t[1]=r,t[2]=n.toggleFullscreen,t[3]=e,t[4]=l):l=t[4];let s;t[5]!==r||t[6]!==n.toggleContent||t[7]!==e?(s=!r&&o.jsx(F,{label:e("page.closeMainPanel"),onClick:n.toggleContent,children:o.jsx(ee,{size:16})}),t[5]=r,t[6]=n.toggleContent,t[7]=e,t[8]=s):s=t[8];let a;return t[9]!==l||t[10]!==s?(a=o.jsxs("div",{className:"flex items-center gap-0.5",children:[i,l,s]}),t[9]=l,t[10]=s,t[11]=a):a=t[11],a}function Ke(){const t=j.c(9),e=E(),n=K(),r=fe();if(n||!r||r.threadless||r.contentOpen)return null;const i=r.toggleContent;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(xe,{}),t[0]=l):l=t[0];let s;t[1]!==e?(s=e("page.openMainPanel"),t[1]=e,t[2]=s):s=t[2];let a;t[3]!==r.toggleContent||t[4]!==s?(a=o.jsxs(k,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:i,children:[l,s]}),t[3]=r.toggleContent,t[4]=s,t[5]=a):a=t[5];let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":!0,className:"mx-1 h-4 w-px shrink-0 bg-border"}),t[6]=c):c=t[6];let u;return t[7]!==a?(u=o.jsxs(o.Fragment,{children:[a,c]}),t[7]=a,t[8]=u):u=t[8],u}function xe(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:o.jsx("path",{d:"M4 5v14M8 12h12m0 0-6-6m6 6-6 6"})}),t[0]=e):e=t[0],e}function ge({children:t,routeId:e}){return t}function R(t){const e=j.c(26),{children:n,actions:r,drawer:i,aside:l}=t,s=T();if(s.isMobile&&s.mobileSurface!=="main")return null;const a=s.isMobile?"plain":"card";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(pe,{}),e[0]=c):c=e[0];let u;e[1]!==r||e[2]!==s.contentNavigation?(u=o.jsx(ae,{navigation:s.contentNavigation,actions:r,trailingActions:c}),e[1]=r,e[2]=s.contentNavigation,e[3]=u):u=e[3];let d;e[4]!==n||e[5]!==s.contentKey?(d=o.jsx($,{children:o.jsx(ge,{routeId:s.contentKey,children:n})}),e[4]=n,e[5]=s.contentKey,e[6]=d):d=e[6];let h;e[7]!==s.contentKey||e[8]!==d?(h=o.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:o.jsx(I,{children:d},s.contentKey)}),e[7]=s.contentKey,e[8]=d,e[9]=h):h=e[9];let m;e[10]!==i||e[11]!==h?(m=o.jsxs(N.Content,{children:[h,i]}),e[10]=i,e[11]=h,e[12]=m):m=e[12];let p;e[13]!==u||e[14]!==m?(p=o.jsxs(U.Breadcrumbs.Provider,{children:[u,m]}),e[13]=u,e[14]=m,e[15]=p):p=e[15];let y;e[16]!==a||e[17]!==p?(y=o.jsx(N,{"data-testid":"main-panel",variant:a,children:p}),e[16]=a,e[17]=p,e[18]=y):y=e[18];const C=y;if(s.isMobile)return C;if(!s.contentOpen)return null;let x;e[19]!==C?(x=o.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:C}),e[19]=C,e[20]=x):x=e[20];let f;e[21]!==l?(f=l&&o.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:o.jsx(N,{"data-testid":"aside-panel",children:o.jsx(I,{children:o.jsx($,{children:l})},z.isValidElement(l)?l.key??void 0:void 0)})}),e[21]=l,e[22]=f):f=e[22];let g;return e[23]!==f||e[24]!==x?(g=o.jsx(D,{id:M,defaultSize:"67%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsxs("div",{className:"flex h-full min-h-0",children:[x,f]})}),e[23]=f,e[24]=x,e[25]=g):g=e[25],g}function De(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(R,{children:o.jsx(V,{})}),t[0]=e):e=t[0],e}function He(t){const e=j.c(18),{error:n,reset:r}=t,i=E();let l;e[0]!==i?(l=i("common.errorBoundary.somethingWentWrong"),e[0]=i,e[1]=l):l=e[1];let s;e[2]!==l?(s=o.jsx("h2",{className:"text-lg font-medium",children:l}),e[2]=l,e[3]=s):s=e[3];let a;e[4]!==n.message||e[5]!==i?(a=n.message||i("common.errorBoundary.unexpectedError"),e[4]=n.message,e[5]=i,e[6]=a):a=e[6];let c;e[7]!==a?(c=o.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=c):c=e[8];let u;e[9]!==i?(u=i("common.errorBoundary.tryAgain"),e[9]=i,e[10]=u):u=e[10];let d;e[11]!==r||e[12]!==u?(d=o.jsx(k,{variant:"outline",onClick:r,children:u}),e[11]=r,e[12]=u,e[13]=d):d=e[13];let h;return e[14]!==s||e[15]!==c||e[16]!==d?(h=o.jsx(R,{children:o.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[s,c,d]})}),e[14]=s,e[15]=c,e[16]=d,e[17]=h):h=e[17],h}const We=Object.assign(he,{Thread:me,Content:R});export{We as ChatLayout,He as ChatLayoutError,De as ChatLayoutPending,Ke as OpenMainPanelButton,Fe as useChatLayout,fe as useOptionalChatLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as t,c4 as o}from"./index-
|
|
1
|
+
import{r as i,j as t,c4 as o}from"./index-BsAwgxIf.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,b$ as ce,j as p,c5 as _,c4 as T,c2 as C,ca as le,b_ as de,cm as ue,ci as fe,cb as me}from"./index-
|
|
1
|
+
import{r as l,b$ as ce,j as p,c5 as _,c4 as T,c2 as C,ca as le,b_ as de,cm as ue,ci as fe,cb as me}from"./index-BsAwgxIf.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,V]=W(M),q=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),x=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:b=>{[...m.current][f.current]?.focus(),i(b)}}),j=l.useRef(S);function B(b){const y=ye(S,b);I(b,y)}function se(b){I(b,f.current)}function ae(){const b=j.current[f.current];S[f.current]!==b&&d(S)}function I(b,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((b-n)/c)*c+n,U),A=Y(z,[n,s]);K((E=[])=>{const P=be(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:b,direction:y})=>{if(!a){const z=$.includes(b.key)||b.shiftKey&&X.includes(b.key)?10:1,A=f.current,E=S[A],P=c*z*y;I(E+P,A,{commit:!0})}}})})})})});q.displayName=M;var[J,Q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,x=>d(x)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(x){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(x-S.left)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=D(x.clientX);r?.(S)},onSlideMove:x=>{const S=D(x.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:x=>{const K=G[f?"from-left":"from-right"].includes(x.key);w?.({event:x,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],x=O(f,v?[n,o]:[o,n]);return d.current=m,x(g-m.top)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(N,o),c=Q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var xe="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=xe;function be(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=q,Ae=te,Te=ne,Ve=oe;export{Te as R,Ae as T,Ie as a,Ve as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,b_ as L,b$ as B,j as c,f_ as q,c4 as x,c2 as E,fZ as K,c5 as C,f$ as I,d$ as T,ci as w,cb as U,cm as V}from"./index-
|
|
1
|
+
import{r as s,b_ as L,b$ as B,j as c,f_ as q,c4 as x,c2 as E,fZ as K,c5 as C,f$ as I,d$ as T,ci as w,cb as U,cm as V}from"./index-BsAwgxIf.js";var _="Radio",[$,P]=w(_),[z,H]=$(_),k=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=E(d,b=>m(b)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(z,{scope:o,checked:e,disabled:a,children:[c.jsx(x.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:C(t.onClick,b=>{e||f?.(),h&&(u.current=b.isPropagationStopped(),u.current||b.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=_;var g="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=H(g,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(x.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=g;var W="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=E(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=W;function A(t){return t?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[Y]=w(y,[I,P]),j=I(),N=P(),[Z,J]=Y(y),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,b]=B({prop:r,defaultProp:e??null,onChange:p,caller:y});return c.jsx(Z,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:b,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(x.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=y;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=J(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=E(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{X.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:C(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:C(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var Q="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=Q;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,f as p,av as u,j as s,b5 as x,N as a}from"./index-
|
|
1
|
+
import{c as f,f as p,av as u,j as s,b5 as x,N as a}from"./index-BsAwgxIf.js";import{C as j}from"./capability-load-error-DCMluNzB.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-DviOrlp9.js → infiniteQueryObserver-CnD94meO.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e2 as g,e3 as d,e4 as v}from"./index-
|
|
1
|
+
import{e2 as g,e3 as d,e4 as v}from"./index-BsAwgxIf.js";var b=class extends g{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,r=s.fetchMeta?.fetchMore?.direction,h=a&&r==="forward",o=c&&r==="forward",n=a&&r==="backward",f=c&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,s.data),hasPreviousPage:d(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:f,isRefetchError:P&&!h&&!n,isRefetching:u&&!o&&!f}}};export{b as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as s,i2 as de,b as G,i3 as ue,r as le,i4 as xe,i5 as re,gE as T,gT as W,B as J,d_ as V,a7 as pe}from"./index-Biams685.js";import{i as he}from"./CreditCard01-DyQlc3BQ.js";import{B as L}from"./badge-CT_Bowl_.js";import{M as je}from"./multi-select-B-3mGzW5.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-ewWPkQXd.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-DearQIjo.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-CTbh6Hly.js";import{T as De}from"./Tooltip-Co9f8gJx.js";import{a as _e,A as Me}from"./AreaChart-B7QJFNyd.js";import{c2 as Re}from"./CategoricalChart-Bk-NltJE.js";import{R as Le}from"./require-capability-BEpAmIG-.js";import"./checkbox-D_sNmJye.js";import"./Minus-C8qbEmNR.js";import"./ChevronDown-Dq3-i4Ph.js";import"./command-2E07YrgQ.js";import"./index-DY2XXBge.js";import"./SearchMd-CAmRp0LP.js";import"./popover-DmvVZ360.js";import"./index-BdQq_4o_.js";import"./index-D4_P19LT.js";import"./ChevronUp-CsGl40rv.js";import"./index-BldUavnl.js";import"./access-gate-C2FMXB7E.js";import"./capability-load-error-BuCmA5o8.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=Oe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const 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(qe),t[17]=n,t[18]=_):_=t[18];let M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let q;t[33]!==e||t[34]!==b?(q=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=q):q=t[35];let O;return t[36]!==r?.usageUnavailable||t[37]!==e?(O=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=O):O=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,q,O,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(W,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(L,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(W,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(W,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(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 qe(t){return{label:t,value:t}}function Oe(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 Bt(){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{Bt as default};
|
|
1
|
+
import{c as k,j as s,i2 as de,b as G,i3 as ue,r as le,i4 as xe,i5 as re,gE as T,gT as W,B as J,d_ as V,a7 as pe}from"./index-BsAwgxIf.js";import{i as he}from"./CreditCard01-C-H9qti1.js";import{B as L}from"./badge-BUkSpOXa.js";import{M as je}from"./multi-select-Cp5gIPzv.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-DPXDtN3F.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-Cie3FI8M.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-Dv3UTRbp.js";import{T as De}from"./Tooltip-D86_gjwu.js";import{a as _e,A as Me}from"./AreaChart-Y5-RpSOt.js";import{c2 as Re}from"./CategoricalChart-oGRIPAq4.js";import{R as Le}from"./require-capability-Db5kMZvY.js";import"./checkbox-BwlyfOui.js";import"./Minus-BM2zRSMr.js";import"./ChevronDown-uPv2ScPr.js";import"./command-BcxQrgUK.js";import"./index-Bi2fLJMb.js";import"./SearchMd-BhCfkG_O.js";import"./popover-DogMO3pk.js";import"./index-BdQq_4o_.js";import"./index-KBC7Pj7l.js";import"./ChevronUp-BkmRXggG.js";import"./index-D1alBOdU.js";import"./access-gate-Cnf06l1a.js";import"./capability-load-error-DCMluNzB.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=Oe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const 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(qe),t[17]=n,t[18]=_):_=t[18];let M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let q;t[33]!==e||t[34]!==b?(q=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=q):q=t[35];let O;return t[36]!==r?.usageUnavailable||t[37]!==e?(O=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=O):O=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,q,O,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(W,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(L,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(W,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(W,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(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 qe(t){return{label:t,value:t}}function Oe(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 Bt(){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{Bt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,r as C,b as G,j as h,t as A,a5 as ye,x as xe,aS as ke,w as we,B as be,v as Pe,D as Ce,q as le,a4 as ce,K as Y,E as Q,gj as ue,gk as re,gl as z,m as Se}from"./index-Biams685.js";import{S as de,s as _e}from"./suggestion-BW469wQ_.js";import{K as Fe,t as De,A as Ie,p as B,L as je,P as ne,O as ve,k as Me,a as Le,Q as Re,o as Ee,l as Ae,F as Ne,s as Te,E as Qe}from"./usage-stats-LbQgUlFb.js";import{aK as Oe}from"./agent-icon-CmYgsdkA.js";import"./chat-context-oV4F8WQc.js";import{m as Ue,i as $e,b as Ke}from"./index-BAqfesXo.js";import{u as me}from"./use-mcp-client-DwG9qZWg.js";import{u as qe}from"./repository-binding-CWTr70tX.js";import{g as se,a as fe}from"./gateway-client-BKm00588.js";import{l as oe,g as pe}from"./use-mcp-prompts-D7T45oWG.js";import{f as ze,b as Be}from"./use-org-fs-ZPuN9WFa.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=Ke(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),A.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,_)=>Je(d,b,_,(S,j)=>l.current(S,j)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const _=Array.from(F).filter(We);return _.length===0?!1:(b.preventDefault(),(async()=>{let S=d.state.selection.from;for(const j of _){const I=j.getAsFile();I&&(await l.current?.(I,S),S=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const _=r?.modelName??"";let S;e[19]!==i||e[20]!==_?(S=i("chat.uploader.accepts",{modelName:_}),e[19]=i,e[20]=_,e[21]=S):S=e[21];let j;e[22]!==S?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:S}),e[22]=S,e[23]=j):j=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Oe,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const L=r?.accepted;let D;e[25]!==L?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:L})]}),e[25]=L,e[26]=D):D=e[26];let a;e[27]!==j||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[j,D]})}),e[27]=j,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let P;e[35]!==F||e[36]!==a||e[37]!==x?(P=h.jsxs(Pe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ye,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=P):P=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==P?(M=h.jsx(Ce,{open:o,onOpenChange:l,children:P}),e[39]=o,e[40]=l,e[41]=P,e[42]=M):M=e[42],M}function Ye(t){return t.preventDefault()}function Pt(){const t=H.c(3),[e,r]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=qe();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),_=C.useRef(null),S=C.useRef(!1),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,e[12]=I):I=e[12];const L=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let P;e[22]!==o?(P=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=P):P=e[23];let M;e[24]!==P||e[25]!==x?(M={name:"resources",title:x,description:P,kind:"category",drillable:!0},e[24]=P,e[25]=x,e[26]=M):M=e[26];let v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const $=v;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:q}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(S.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,q,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,q,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),A.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const K=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,q=F();if(q==="categories"){if(!w.trim())return $;const R=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(R)||N.description?.toLowerCase().includes(R))).map(Ze),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(R)||te.name?.toLowerCase().includes(R)||te.description?.toLowerCase().includes(R)).map(et)})();return[...E,...X]}if(q==="agents"){let R=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();R=R.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return R.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const R=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(R)||E.name?.toLowerCase().includes(R)||E.description?.toLowerCase().includes(R))}return W.map(rt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)_.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=_.current;Q("chat_picker_closed",{picker:"@",outcome:S.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),_.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==K||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:K,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=K,e[47]=ee,e[48]=L,e[49]=V):V=e[49],V};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),A.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),A.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),A.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=je(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(P=>P.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),A.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),_=C.useRef(!1),S=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),_.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},j=async a=>{if(!p||!l)return;const{range:f,item:x}=p,P=se(x._meta);await ie(t,f,l,x.name,P,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!ve(t,u.pos,u.promptId)){A.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),A.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},L=async a=>{const{query:f}=a;if(!l)return[];const[x,P,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),v=f.trim().toLowerCase(),$=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),K=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...K]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:L,onSelect:S,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:_.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:j}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),_e.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Ae,Ne]}function Ct({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=C.useRef(o),k=C.useRef(e),m=C.useRef(s),p=C.useRef(i),n=Le({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-[14px] max-md:text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return C.useEffect(()=>{n?.setEditable(!r)},[n,r]),C.useEffect(()=>{g.current=o},[o]),C.useEffect(()=>{k.current=e},[e]),C.useEffect(()=>{m.current=s},[s]),C.useEffect(()=>{p.current=i},[i]),C.useEffect(()=>{if(!n||n.isDestroyed)return;const u=JSON.stringify(n.getJSON()),d=JSON.stringify(t||{type:"doc",content:[]});u!==d&&n.commands.setContent(t||{type:"doc",content:[]})},[n,t]),h.jsx(Re.Provider,{value:{editor:n},children:c})}function St(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ee();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let _;e[3]!==k||e[4]!==b||e[5]!==F?(_=Se("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=_):_=e[6];let S;e[7]!==n||e[8]!==_?(S=h.jsx(Qe,{editor:n,className:_}),e[7]=n,e[8]=_,e[9]=S):S=e[9];const j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,e[13]=I):I=e[13];const L=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==L?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ge,{editor:n,virtualMcpId:L,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=L,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ve,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==S?(f=h.jsxs(h.Fragment,{children:[S,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=S,e[28]=f):f=e[28],f}export{Ct as T,bt as U,St as a,He as p,Pt as u};
|
|
1
|
+
import{c as H,r as C,b as G,j as h,t as A,a5 as ye,x as xe,aS as ke,w as we,B as be,v as Pe,D as Ce,q as le,a4 as ce,K as Y,E as Q,gj as ue,gk as re,gl as z,m as Se}from"./index-BsAwgxIf.js";import{S as de,s as _e}from"./suggestion-BapLR6AM.js";import{K as Fe,t as De,A as Ie,p as B,L as je,P as ne,O as ve,k as Me,a as Le,Q as Re,o as Ee,l as Ae,F as Ne,s as Te,E as Qe}from"./usage-stats-BH8jlFhP.js";import{aK as Oe}from"./agent-icon-B9nZhdi2.js";import"./chat-context-BhwgXdxZ.js";import{m as Ue,i as $e,b as Ke}from"./index-CT5cpmuw.js";import{u as me}from"./use-mcp-client-DXpTlXlJ.js";import{u as qe}from"./repository-binding-BS9v5Fe_.js";import{g as se,a as fe}from"./gateway-client-t5s1Cm0x.js";import{l as oe,g as pe}from"./use-mcp-prompts-B_BU9Jdl.js";import{f as ze,b as Be}from"./use-org-fs-D2bsNlGU.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=Ke(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),A.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=G(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,_)=>Je(d,b,_,(S,j)=>l.current(S,j)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const _=Array.from(F).filter(We);return _.length===0?!1:(b.preventDefault(),(async()=>{let S=d.state.selection.from;for(const j of _){const I=j.getAsFile();I&&(await l.current?.(I,S),S=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=G(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const _=r?.modelName??"";let S;e[19]!==i||e[20]!==_?(S=i("chat.uploader.accepts",{modelName:_}),e[19]=i,e[20]=_,e[21]=S):S=e[21];let j;e[22]!==S?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:S}),e[22]=S,e[23]=j):j=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Oe,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const L=r?.accepted;let D;e[25]!==L?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:L})]}),e[25]=L,e[26]=D):D=e[26];let a;e[27]!==j||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[j,D]})}),e[27]=j,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let P;e[35]!==F||e[36]!==a||e[37]!==x?(P=h.jsxs(Pe,{className:"sm:max-w-[480px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ye,children:[F,a,x]}),e[35]=F,e[36]=a,e[37]=x,e[38]=P):P=e[38];let M;return e[39]!==o||e[40]!==l||e[41]!==P?(M=h.jsx(Ce,{open:o,onOpenChange:l,children:P}),e[39]=o,e[40]=l,e[41]=P,e[42]=M):M=e[42],M}function Ye(t){return t.preventDefault()}function Pt(){const t=H.c(3),[e,r]=C.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(null),t[0]=s):s=t[0];let i;return t[1]!==e?(i={unsupportedFile:e,onUnsupportedFile:r,clearUnsupportedFile:s},t[1]=e,t[2]=i):i=t[2],i}function he(t,e){return e||t}const Ge=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=G(),l=le(),{org:c}=ce(),g=qe();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),_=C.useRef(null),S=C.useRef(!1),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,e[12]=I):I=e[12];const L=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let P;e[22]!==o?(P=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=P):P=e[23];let M;e[24]!==P||e[25]!==x?(M={name:"resources",title:x,description:P,kind:"category",drillable:!0},e[24]=P,e[25]=x,e[26]=M):M=e[26];let v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const $=v;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:q}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(S.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,q,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,q,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),A.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const K=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,q=F();if(q==="categories"){if(!w.trim())return $;const R=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(R)||N.description?.toLowerCase().includes(R))).map(Ze),X=await(async()=>{if(!m)return[];let N=l.getQueryData(n);return N||(N=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4})),(N?.resources??[]).filter(te=>te.uri.toLowerCase().includes(R)||te.name?.toLowerCase().includes(R)||te.description?.toLowerCase().includes(R)).map(et)})();return[...E,...X]}if(q==="agents"){let R=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();R=R.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return R.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const R=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(R)||E.name?.toLowerCase().includes(R)||E.description?.toLowerCase().includes(R))}return W.map(rt)},e[34]=g,e[35]=$,e[36]=m,e[37]=F,e[38]=l,e[39]=n,e[40]=s,e[41]=y):y=e[41];const Z=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)_.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=_.current;Q("chat_picker_closed",{picker:"@",outcome:S.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),_.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==Z||e[46]!==K||e[47]!==ee||e[48]!==L?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:L,queryFn:Z,onSelect:K,onOpenChange:ee}),e[44]=r,e[45]=Z,e[46]=K,e[47]=ee,e[48]=L,e[49]=V):V=e[49],V};function Ze(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function et(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}function tt(t){return{name:t.title,title:t.title,description:t.description??void 0,icon:t.icon??null,kind:"agent",agentId:t.id}}function st(){}function rt(t){return{name:he(t.uri,t.name),title:t.name,description:t.description,kind:"resource",uri:t.uri}}async function ie(t,e,r,s,i,o,l){try{const c=await pe(r,s,o);B(t,e,{id:s,name:fe(s,i),metadata:c.messages,char:"/",kind:"prompt",args:o})}catch(c){console.error("[slash] Failed to fetch prompt:",c),A.error(l.t("chat.mentionSlash.failedLoadPrompt"))}}async function nt(t,e,r,s,i){try{const o=await ue(r,s);B(t,e,{id:s,name:s,metadata:o.contents,char:"/",kind:"resource"})}catch(o){console.error("[slash] Failed to fetch resource:",o),A.error(i.t("chat.mentionSlash.failedLoadResource"))}}async function ot(t,e,r,s,i){try{const{files:o,omittedPaths:l}=await ze(r,s.volume,s.path),c={sandboxPath:s.sandboxPath,volume:s.volume,path:s.path,files:o,omittedPaths:l};B(t,e,{id:s.id,name:s.name,metadata:c,char:"/",kind:"skill"})}catch(o){console.error("[slash] Failed to fetch skill:",o),A.error(i.t("chat.mentionSlash.failedLoadSkill"))}}const it=({editor:t,virtualMcpId:e,suggestionOpenRef:r})=>{const s=G(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=je(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(P=>P.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),A.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),_=C.useRef(!1),S=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),_.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},j=async a=>{if(!p||!l)return;const{range:f,item:x}=p,P=se(x._meta);await ie(t,f,l,x.name,P,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!ve(t,u.pos,u.promptId)){A.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),A.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},L=async a=>{const{query:f}=a;if(!l)return[];const[x,P,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),v=f.trim().toLowerCase(),$=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),K=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...K]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:L,onSelect:S,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:_.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:j}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),_e.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),Ae,Ne]}function Ct({tiptapDoc:t,setTiptapDoc:e,disabled:r=!1,enterToSubmit:s=!1,placeholder:i,onSubmit:o,suggestionOpenRef:l,children:c}){const g=C.useRef(o),k=C.useRef(e),m=C.useRef(s),p=C.useRef(i),n=Le({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-[14px] max-md:text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return C.useEffect(()=>{n?.setEditable(!r)},[n,r]),C.useEffect(()=>{g.current=o},[o]),C.useEffect(()=>{k.current=e},[e]),C.useEffect(()=>{m.current=s},[s]),C.useEffect(()=>{p.current=i},[i]),C.useEffect(()=>{if(!n||n.isDestroyed)return;const u=JSON.stringify(n.getJSON()),d=JSON.stringify(t||{type:"doc",content:[]});u!==d&&n.commands.setContent(t||{type:"doc",content:[]})},[n,t]),h.jsx(Re.Provider,{value:{editor:n},children:c})}function St(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ee();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let _;e[3]!==k||e[4]!==b||e[5]!==F?(_=Se("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=_):_=e[6];let S;e[7]!==n||e[8]!==_?(S=h.jsx(Qe,{editor:n,className:_}),e[7]=n,e[8]=_,e[9]=S):S=e[9];const j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,e[13]=I):I=e[13];const L=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==L?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ge,{editor:n,virtualMcpId:L,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=L,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ve,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==S?(f=h.jsxs(h.Fragment,{children:[S,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=S,e[28]=f):f=e[28],f}export{Ct as T,bt as U,St as a,He as p,Pt as u};
|