decocms 4.569.0 → 4.570.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-C8lUSNa8.js → AlertCircle-1CFQF9HU.js} +1 -1
- package/dist/client/assets/{AreaChart-Co4_GDFk.js → AreaChart-CUZD7bCb.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BW0QTKlw.js → ArrowLeft-yZosAbEQ.js} +1 -1
- package/dist/client/assets/{ArrowUp-DjenQeZQ.js → ArrowUp-B_QEh9AM.js} +1 -1
- package/dist/client/assets/{CartesianChart-KHpxFlDw.js → CartesianChart-DOo-DPo8.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DCWzRRkG.js → CategoricalChart-KK8jWPWD.js} +1 -1
- package/dist/client/assets/{CheckCircle-CBLXbFFB.js → CheckCircle-DjUjDOFk.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-ofVA6B_w.js → ChevronSelectorVertical-C2ySHatm.js} +1 -1
- package/dist/client/assets/{ChevronUp-Dg02PCVC.js → ChevronUp-aVrgoYI4.js} +1 -1
- package/dist/client/assets/{CreditCard01-F1q7cqMP.js → CreditCard01-CMrZYrMd.js} +1 -1
- package/dist/client/assets/{Globe04-B7JSn39b.js → Globe04-Czvq6voU.js} +1 -1
- package/dist/client/assets/{Key01-DPrG8yA6.js → Key01-CJVeUDDi.js} +1 -1
- package/dist/client/assets/{LinkBroken01-DfOqWtEB.js → LinkBroken01-Dhn_nIp2.js} +1 -1
- package/dist/client/assets/{Minus-CtT-IgpU.js → Minus-qjFidgiH.js} +1 -1
- package/dist/client/assets/{Monitor01-CY6I-T_v.js → Monitor01-BwW28bRE.js} +1 -1
- package/dist/client/assets/{Play-Cb465MQD.js → Play-DWKJ4lP6.js} +1 -1
- package/dist/client/assets/{Plus-EDJqelyG.js → Plus-u00IxELx.js} +1 -1
- package/dist/client/assets/{ReferenceLine-M7tH9_wm.js → ReferenceLine-DhlQLhxT.js} +1 -1
- package/dist/client/assets/{SearchMd-BM1-RWQF.js → SearchMd-DrxAIngK.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BsFRFwoQ.js → ShoppingBag01-BOpj8wnX.js} +1 -1
- package/dist/client/assets/{Sun-BPyrKfqp.js → Sun-CUTKbSf6.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CMdcXPwO.js → SwitchHorizontal01-DedOEqGg.js} +1 -1
- package/dist/client/assets/{Tool01-CuDHSO34.js → Tool01-BXFm5jK2.js} +1 -1
- package/dist/client/assets/{Tooltip-BY8JGJJH.js → Tooltip-DhVaIgPv.js} +1 -1
- package/dist/client/assets/{Trash01-Bif7g_Tq.js → Trash01-t2BYg0st.js} +1 -1
- package/dist/client/assets/{Upload01-Drv81LKH.js → Upload01-BBUgsLLD.js} +1 -1
- package/dist/client/assets/{UserSquare-DqOeWgs_.js → UserSquare-BloCTB27.js} +1 -1
- package/dist/client/assets/{Users01-DSPCiWrI.js → Users01-D0A6lP8t.js} +1 -1
- package/dist/client/assets/{XClose-CFLo0iwC.js → XClose-CUME_VK2.js} +1 -1
- package/dist/client/assets/{Zap-TzUnnTO5.js → Zap-CmNmFUbX.js} +1 -1
- package/dist/client/assets/{access-gate-BZysXSEP.js → access-gate-CbFfEOdM.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-Bj8rQn7t.js → add-connection-dialog-Bk4KRwLm.js} +1 -1
- package/dist/client/assets/agent-app-D1s_xxXR.js +1 -0
- package/dist/client/assets/{agent-assets-de3dSSE0.js → agent-assets-CvRDUZu-.js} +1 -1
- package/dist/client/assets/{agent-automation-Eoz9llO0.js → agent-automation-CHtwx6sg.js} +1 -1
- package/dist/client/assets/{agent-automations-YrodALnn.js → agent-automations-BgmzkAtz.js} +1 -1
- package/dist/client/assets/{agent-calendar-BaQX5CRD.js → agent-calendar-BQ5xnVXW.js} +1 -1
- package/dist/client/assets/{agent-capabilities-Z6OO2Jnk.js → agent-capabilities-DmNIevq-.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-C9AyKvNN.js → agent-connect-sources-DgRvrlpj.js} +1 -1
- package/dist/client/assets/agent-deck-1mK6Ythm.js +1 -0
- package/dist/client/assets/{agent-e2e-7RobNFIi.js → agent-e2e-CowJJC6D.js} +1 -1
- package/dist/client/assets/agent-experiments-3ZqH1pHZ.js +1 -0
- package/dist/client/assets/{agent-file-Dbl-JFZv.js → agent-file-w7JCVN0l.js} +1 -1
- package/dist/client/assets/{agent-hosting-CqO-A-Yx.js → agent-hosting-p1C0G82t.js} +1 -1
- package/dist/client/assets/{agent-icon-CRaK_2eb.js → agent-icon-AbOSM7KF.js} +1 -1
- package/dist/client/assets/agent-library-Bivz2SRZ.js +1 -0
- package/dist/client/assets/agent-library-file-CpGwdPNs.js +1 -0
- package/dist/client/assets/agent-overview-CwCkuDX2.js +1 -0
- package/dist/client/assets/{agent-releases-DELNaOnx.js → agent-releases-BWDO07Iy.js} +2 -2
- package/dist/client/assets/agent-settings-DEn_87Gp.js +1 -0
- package/dist/client/assets/{agent-site-editor-CZ_aX5w6.js → agent-site-editor-BubERiUy.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DqKm62jM.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DmZnej6I.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DuaKrxk_.js +1 -0
- package/dist/client/assets/agent-view-Cey5y0PV.js +1 -0
- package/dist/client/assets/{agent-view-guard-DQbhiGaj.js → agent-view-guard-w1_Juyu5.js} +1 -1
- package/dist/client/assets/{ai-providers-ByQv34ay.js → ai-providers-DAY0nNTK.js} +1 -1
- package/dist/client/assets/{alert-D9FiKroy.js → alert-hJJytfOJ.js} +1 -1
- package/dist/client/assets/{analytics-sections-BmDNYduw.js → analytics-sections-BNJmu5jh.js} +1 -1
- package/dist/client/assets/{api-keys-BfsLg2vA.js → api-keys-DOETgk_S.js} +1 -1
- package/dist/client/assets/api-keys-IHsKCg1y.js +1 -0
- package/dist/client/assets/{app-editor-B45vF8Mg.js → app-editor-CN-Ok2RW.js} +1 -1
- package/dist/client/assets/{asset-utils-BxC41cma.js → asset-utils-DhDLN_-h.js} +1 -1
- package/dist/client/assets/{auth-Ds2S-lbe.js → auth-D1oBKWc9.js} +1 -1
- package/dist/client/assets/{auth-catchall-C-6FZGi0.js → auth-catchall-CU9OueC2.js} +1 -1
- package/dist/client/assets/{auth-entry-CyO_cwvd.js → auth-entry-BrGmprWz.js} +1 -1
- package/dist/client/assets/{auth-split-layout-m3Tiw0uy.js → auth-split-layout-DdjSjW7w.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-D8AvdBCW.js → authenticate-and-persist-oauth-DfXhL6KV.js} +1 -1
- package/dist/client/assets/{automation-list-row-C9ktMtT0.js → automation-list-row-D2RgfFAV.js} +1 -1
- package/dist/client/assets/{automation-runs-BOw5cx8_.js → automation-runs-_P-ch70z.js} +1 -1
- package/dist/client/assets/{automations-B7fWZ0Vh.js → automations-DVc_UfEJ.js} +1 -1
- package/dist/client/assets/{autosend-DDd9ei6A.js → autosend-xPyRMwmc.js} +1 -1
- package/dist/client/assets/{badge-BpuDiibz.js → badge-BLopTdJo.js} +1 -1
- package/dist/client/assets/{block-document-0xSm2fiy.js → block-document-DRcrQBeX.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BKKCrT_T.js → blocks-preview-workspace-context-D9X9QQD5.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-D0oTw6gu.js → blocks-tab-states-DOYuC7hO.js} +1 -1
- package/dist/client/assets/{blog-schema-BppY95gR.js → blog-schema-njjjFtQI.js} +1 -1
- package/dist/client/assets/{buckets-CqGWJLKP.js → buckets-DHR--iFw.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BGIBlPP6.js → build-improve-prompt-doc-DrCjUiSm.js} +1 -1
- package/dist/client/assets/{calendar-DuGzMi3S.js → calendar-8e1bW3QX.js} +1 -1
- package/dist/client/assets/{capability-load-error-DIv2eZlz.js → capability-load-error-C9mmbd-g.js} +1 -1
- package/dist/client/assets/{category-editor-DHDmibyv.js → category-editor-ngsbNhPd.js} +1 -1
- package/dist/client/assets/{chart-BcizaXxw.js → chart-PfmlhR6m.js} +1 -1
- package/dist/client/assets/{chat-context-O7Uim5zw.js → chat-context-BFpdF0Ea.js} +6 -6
- package/dist/client/assets/{chat-draft-CP7W66gO.js → chat-draft-B0ZUpMX_.js} +1 -1
- package/dist/client/assets/{checkbox-Dj1_p-oY.js → checkbox-DDDKCgb5.js} +1 -1
- package/dist/client/assets/{choose-editor-FgTuu-ql.js → choose-editor-XtwrmhD8.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CNmrqva7.js → cli-auth-success-BnJsDVo5.js} +1 -1
- package/dist/client/assets/{client-icons-BF-arSHb.js → client-icons-Cw3Ivutw.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-BOyoDLZX.js → cms-settings-editor-DY67ejEv.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-DiBAZwre.js → cms-store-drafts-CYIZoD9d.js} +1 -1
- package/dist/client/assets/{collapsible-Bp1-V-Fv.js → collapsible-C4GX1H_R.js} +1 -1
- package/dist/client/assets/{collection-detail-DBSAOtJN.js → collection-detail-8Mxw24IU.js} +1 -1
- package/dist/client/assets/{collection-display-button-C5ml6MSP.js → collection-display-button-WZ9U6Dnn.js} +1 -1
- package/dist/client/assets/{collection-search-AauU22W8.js → collection-search-Dz7QHmOz.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-qRDLH-yA.js → collection-table-wrapper-06TDQKrw.js} +1 -1
- package/dist/client/assets/{collection-tabs-DO7nBfoY.js → collection-tabs-C-fKyh8w.js} +1 -1
- package/dist/client/assets/{combobox-dI6mnh2K.js → combobox-DqPSOi3v.js} +1 -1
- package/dist/client/assets/{command-BO5QH15f.js → command-CYK5M8XI.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CbUF3EiL.js → companion-mcps-section-CAKFIeG-.js} +1 -1
- package/dist/client/assets/{config-w5HL15RE.js → config-DBXuSQO1.js} +1 -1
- package/dist/client/assets/{connect-Dv7_pdgv.js → connect-NGxtU5_0.js} +1 -1
- package/dist/client/assets/{connect-layout-DIUYH7zZ.js → connect-layout-DBzvmer6.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-5pyz_gqC.js → connect-source-dialog-BnXxvvcJ.js} +1 -1
- package/dist/client/assets/{connection-BmfrUVUF.js → connection-_PcrLws7.js} +1 -1
- package/dist/client/assets/{connection-card-Dyl9jamP.js → connection-card-4gZcunZq.js} +1 -1
- package/dist/client/assets/{connection-detail-trf1a8ud.js → connection-detail-C0eX0pfz.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DkXWTd-5.js → connection-form-helpers-C7Gv9-lg.js} +1 -1
- package/dist/client/assets/{connection-slug-D9QF6JTj.js → connection-slug-BsU2LQiu.js} +1 -1
- package/dist/client/assets/{connections-DBn4X-FO.js → connections-BA8V7XrH.js} +1 -1
- package/dist/client/assets/{content-tab-eUiPWbq7.js → content-tab-C_nIeaie.js} +3 -3
- package/dist/client/assets/{context-Dm1vgWac.js → context-8d_KiSNS.js} +1 -1
- package/dist/client/assets/{context-menu-BG18ePnL.js → context-menu-o6rJLNXJ.js} +1 -1
- package/dist/client/assets/{context-shell-CJdcogAj.js → context-shell-C1Ha8IE2.js} +3 -3
- package/dist/client/assets/{core.esm-CiyyLnsG.js → core.esm-BGRTXfSt.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DeokYGJM.js → create-organization-dialog-h3rzGSt9.js} +1 -1
- package/dist/client/assets/{device-hint-Z9_uJm09.js → device-hint-BOo4jdep.js} +1 -1
- package/dist/client/assets/{discover-BJzOKOeT.js → discover-BeGAehHo.js} +1 -1
- package/dist/client/assets/{domain-settings-k6_UVS3e.js → domain-settings-Nhk3Nbp-.js} +1 -1
- package/dist/client/assets/{drawer-DMRnFsxc.js → drawer-C1zPem_-.js} +1 -1
- package/dist/client/assets/{editor-BTYObZ3D.js → editor-BcXADR5b.js} +1 -1
- package/dist/client/assets/{editor-classes-DIdZ5SUW.js → editor-classes-BftbquCD.js} +1 -1
- package/dist/client/assets/{empty-state-BTVsC7xK.js → empty-state-BrKCVCOA.js} +1 -1
- package/dist/client/assets/{empty-state-B44K4GDI.js → empty-state-tlDzCEBe.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-CzcNWwIa.js → experiments-tab-choice-Dnv5W_mO.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BAO6488m.js → extract-connection-data-B4CAQLEm.js} +1 -1
- package/dist/client/assets/{feature-gate-D17dqUhL.js → feature-gate-DWILcK73.js} +1 -1
- package/dist/client/assets/{feature-paywall-BAqosyy1.js → feature-paywall-BOdJ7pc_.js} +1 -1
- package/dist/client/assets/{feedback-BCnQQwEu.js → feedback--BP5XsMC.js} +1 -1
- package/dist/client/assets/{file-explorer-DpZFO-Yb.js → file-explorer-BHgkTafl.js} +1 -1
- package/dist/client/assets/{file-preview-C7xeW7Ns.js → file-preview-B3c1V4-B.js} +1 -1
- package/dist/client/assets/{file-share-button-Cj2TiEru.js → file-share-button-BmfBQCy7.js} +1 -1
- package/dist/client/assets/{file-type-icon-BgvZ7mJ5.js → file-type-icon-C-QM854F.js} +1 -1
- package/dist/client/assets/{folder-icon-CC-uKBN4.js → folder-icon-evgkGdeR.js} +1 -1
- package/dist/client/assets/{form-CQzCiA7m.js → form-D2GmFQW3.js} +1 -1
- package/dist/client/assets/{general-WB7AI2JV.js → general-B3MQGRB4.js} +1 -1
- package/dist/client/assets/{github-icon-Dq39pEMT.js → github-icon-i7iUozqR.js} +1 -1
- package/dist/client/assets/{home-DNtWj6y4.js → home-ZCo0svlJ.js} +1 -1
- package/dist/client/assets/{home-overview-KMaj_IXE.js → home-overview-qYf3hL7N.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-C-OJGDnV.js → hosted-reconcile-CvdR91uj.js} +1 -1
- package/dist/client/assets/{icon-button-BxjZlrnJ.js → icon-button-BUwzNv83.js} +1 -1
- package/dist/client/assets/{index-D8rwwuoa.js → index-BfxdS8h-.js} +1 -1
- package/dist/client/assets/{index-Cm-moWa5.js → index-BpRy7AHp.js} +32 -32
- package/dist/client/assets/{index-pMcMdeCf.js → index-CCTNTj2P.js} +1 -1
- package/dist/client/assets/index-CKEKSTrk.css +1 -0
- package/dist/client/assets/{index-DBE1cmuY.js → index-CKnb1ufF.js} +1 -1
- package/dist/client/assets/{index-CJj8VLTq.js → index-C_UqErbC.js} +1 -1
- package/dist/client/assets/{index-BK7nI4x8.js → index-ChAPkvx3.js} +1 -1
- package/dist/client/assets/{index-DDHS6uH4.js → index-DPD9OENi.js} +1 -1
- package/dist/client/assets/{index-BZnluLX8.js → index-DQBul4yU.js} +1 -1
- package/dist/client/assets/{index-DfAh0E81.js → index-D_UeTS1-.js} +1 -1
- package/dist/client/assets/{index-CMI5yx1h.js → index-Dn1UQvhJ.js} +1 -1
- package/dist/client/assets/{index-B541Z8pm.js → index-OBb8rfAw.js} +1 -1
- package/dist/client/assets/{index-DhSgpwmt.js → index-cKSjr8CK.js} +1 -1
- package/dist/client/assets/index-clkmgwR3.js +1 -0
- package/dist/client/assets/{index-CZmp59DI.js → index-lbygo01z.js} +1 -1
- package/dist/client/assets/{index-redirect-DzUS6M4j.js → index-redirect-D-YiN8Xo.js} +1 -1
- package/dist/client/assets/{index-CGYr3Izo.js → index-ukVGoFpO.js} +1 -1
- package/dist/client/assets/{index-0imbfLx3.js → index-xj3IgJTF.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D6uRpwx5.js → infiniteQueryObserver-D03R0ede.js} +1 -1
- package/dist/client/assets/{infra-billing-DuXLPrYd.js → infra-billing-s8EIFgUr.js} +1 -1
- package/dist/client/assets/{input-Blfx4aW7.js → input-Cnq9i2l1.js} +1 -1
- package/dist/client/assets/{input-DhrW1toc.js → input-DfTSMalp.js} +3 -3
- package/dist/client/assets/{integration-icon-CDajRnkl.js → integration-icon-FxF8FEU6.js} +1 -1
- package/dist/client/assets/{jira-icon-BjvaFHGW.js → jira-icon-BLg3npMf.js} +1 -1
- package/dist/client/assets/{label-BwDzqaMo.js → label-Bh2Pit2O.js} +1 -1
- package/dist/client/assets/{layout-BFtQxqvc.js → layout-C60ZlULv.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-ClovinDV.js → legacy-agents-deep-DwelfdPA.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CXwADpls.js → legacy-main-redirect-C_4oCw1E.js} +1 -1
- package/dist/client/assets/library-B-jS61L0.js +1 -0
- package/dist/client/assets/{library-tab-D9aFdK2S.js → library-tab-BaUP3ZVF.js} +1 -1
- package/dist/client/assets/{login-BKJiNyyp.js → login-bcoCcqBW.js} +1 -1
- package/dist/client/assets/{markdown-BukU_dP8.js → markdown-j0gDnxTp.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-C-v6StvL.js → mcp-app-renderer-C3zml1pp.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CY66kpRN.js → mcp-oauth-D4Pxc73w.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CxEXOBcT.js → mcp-oauth-I0kjN__K.js} +1 -1
- package/dist/client/assets/{members-CF-gnn8J.js → members-Dxz1ewpb.js} +1 -1
- package/dist/client/assets/{memory-CdLLa3Kl.js → memory-C_AcXDod.js} +1 -1
- package/dist/client/assets/{mock-board-DElhppkh.js → mock-board-COgbDYxA.js} +3 -3
- package/dist/client/assets/{monaco-editor-BNkAcsUY.js → monaco-editor-DtIoXdMD.js} +1 -1
- package/dist/client/assets/{monitoring-C-ycc-h_.js → monitoring-DWb86ZoC.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B0tic5F9.js → monitoring-stats-row-BSstVGMX.js} +1 -1
- package/dist/client/assets/{multi-select-FgNDnuDo.js → multi-select-DailkN9Q.js} +1 -1
- package/dist/client/assets/{mustache-CIeVDhQo.js → mustache-BSD6v2ig.js} +1 -1
- package/dist/client/assets/{named-rule-view-9PjPoj8p.js → named-rule-view-B_8gTqcI.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DHaEULY3.js → new-project-dialog-wz5dJWkC.js} +1 -1
- package/dist/client/assets/{oauth-callback-B3eu4Ach.js → oauth-callback-B7Nohzxd.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CqUI9sqZ.js → oauth-callback-ai-provider-BmsntsZe.js} +1 -1
- package/dist/client/assets/{oauth-consent-r8Ehs0lB.js → oauth-consent-cf55Bmz-.js} +1 -1
- package/dist/client/assets/{onboarding-BTBq2ggs.js → onboarding-Cdi9idPQ.js} +1 -1
- package/dist/client/assets/{openai-conversation-p1k1gWxX.js → openai-conversation-BMpQOydo.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DWWGhnPv.js → optimistic-project-sidebar-views-AOXvjkSa.js} +1 -1
- package/dist/client/assets/{order-monitor-day-CChR5TYK.js → order-monitor-day-Bk2YpEn9.js} +1 -1
- package/dist/client/assets/{organization-choice-Cw7nqarH.js → organization-choice-CcyZ2sED.js} +1 -1
- package/dist/client/assets/{orgs-Do-VFG6Q.js → orgs-C6-Q2iMm.js} +1 -1
- package/dist/client/assets/{own-accounts-section-CfrXQu2D.js → own-accounts-section-BEuNQYr7.js} +1 -1
- package/dist/client/assets/{pair-CQCTPbi0.js → pair-D0R2UDgp.js} +1 -1
- package/dist/client/assets/{parse-sections-DfTZ3uiV.js → parse-sections-DTDSECqx.js} +3 -3
- package/dist/client/assets/{plan-DD5HWH6n.js → plan-D5_Bt3KJ.js} +1 -1
- package/dist/client/assets/{plan-ladder-DPpGlKZx.js → plan-ladder-BWKx4tc-.js} +1 -1
- package/dist/client/assets/{plan-usage-card-DWpMRf7u.js → plan-usage-card-Z5a-2qYK.js} +1 -1
- package/dist/client/assets/{popover-DLErjFx_.js → popover-BrVMYzI-.js} +1 -1
- package/dist/client/assets/{post-calendar-CK1SMoTM.js → post-calendar-BpEmJgqQ.js} +1 -1
- package/dist/client/assets/{post-editor-DisluBT5.js → post-editor-yNAWU29F.js} +1 -1
- package/dist/client/assets/{preview-content-DnVFo2zs.js → preview-content-CWagFWI_.js} +1 -1
- package/dist/client/assets/{preview-dialog-DUS21naY.js → preview-dialog-Bc1z8QHZ.js} +1 -1
- package/dist/client/assets/{preview-panel-D7uUNbcL.js → preview-panel-bcbhyFq_.js} +1 -1
- package/dist/client/assets/{preview-tab-Ahs-yhYv.js → preview-tab-nbSkAxxa.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-C2vgULGa.js → product-picker-dialog-CNr_kHqK.js} +1 -1
- package/dist/client/assets/{profile-DDNj47eG.js → profile-DtHrUsir.js} +1 -1
- package/dist/client/assets/{project-app-view-CuA06XiE.js → project-app-view-BfN3k7ju.js} +1 -1
- package/dist/client/assets/{project-apps-DWbss0KI.js → project-apps-C_vCRb8O.js} +1 -1
- package/dist/client/assets/{project-icon-BUFanmLS.js → project-icon-n7LBJrfx.js} +1 -1
- package/dist/client/assets/{project-index-7p2eseSo.js → project-index-2cTAo4fH.js} +1 -1
- package/dist/client/assets/project-reports-C1Hkwfya.js +1 -0
- package/dist/client/assets/{project-sidebar-views-pH1XKMU9.js → project-sidebar-views-DhZy-bnC.js} +1 -1
- package/dist/client/assets/project-tasks-B8hDD-I8.js +1 -0
- package/dist/client/assets/{projects-DLcZ2EUB.js → projects-OSECm-FW.js} +1 -1
- package/dist/client/assets/{projects-empty-state-5N5mL8dT.js → projects-empty-state-B7zdGKEZ.js} +1 -1
- package/dist/client/assets/{prompts-D_luUyMG.js → prompts-J4HaC_ei.js} +1 -1
- package/dist/client/assets/record-editor-B3zURv0C.js +1 -0
- package/dist/client/assets/{redirect-editor-CFnitpju.js → redirect-editor-DeoRyu0l.js} +1 -1
- package/dist/client/assets/reports-CofWqBLU.js +1 -0
- package/dist/client/assets/{reports-BORTq3kl.js → reports-CpGpr_ZH.js} +1 -1
- package/dist/client/assets/{reports-onboarding-BWbcZ2GX.js → reports-onboarding-CJMXOfw7.js} +1 -1
- package/dist/client/assets/{reports-tab-B-Hn1LIV.js → reports-tab-LNIEzMQ4.js} +2 -2
- package/dist/client/assets/{repositories-BVZQH-sB.js → repositories-CCBdk88v.js} +1 -1
- package/dist/client/assets/repositories-yBP4WuG_.js +1 -0
- package/dist/client/assets/{repository-binding-B7kVJGqt.js → repository-binding-DdmRVWpz.js} +1 -1
- package/dist/client/assets/{repository-picker-CjOhm0Ey.js → repository-picker-ClelLyeu.js} +1 -1
- package/dist/client/assets/{require-capability-CJKpnzPC.js → require-capability-BCUql2uo.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Cv1Or1o2.js → required-auth-layout-Lh-Wt6uK.js} +1 -1
- package/dist/client/assets/{reset-password-DW52Np0r.js → reset-password-Cq-nDwrY.js} +1 -1
- package/dist/client/assets/{resizable-DyfDlaKB.js → resizable-D8U4YOro.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-BA6C6Jfy.js → resolve-tab-icon-CukmKoWA.js} +1 -1
- package/dist/client/assets/{review-settings-DV90EMNs.js → review-settings-BzmxgDqt.js} +1 -1
- package/dist/client/assets/{role-color-BCYUEsYA.js → role-color-C-Q62gr6.js} +1 -1
- package/dist/client/assets/{roles-BuwDNuGG.js → roles-b8ba7BB1.js} +1 -1
- package/dist/client/assets/route-BK2wi4kD.js +1 -0
- package/dist/client/assets/{route-CVmwmVAO.js → route-CXbtT4mj.js} +1 -1
- package/dist/client/assets/{route-kdlreTx0.js → route-Dq87eMEg.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-CNzI4oJx.js → sandbox-lifecycle-context-o_ip6_5z.js} +1 -1
- package/dist/client/assets/{schema-BJHp07rJ.js → schema-ByYst2Pb.js} +1 -1
- package/dist/client/assets/{schema-iQl5fqzx.js → schema-CDmusrrq.js} +1 -1
- package/dist/client/assets/{scroll-area-ASqVshf_.js → scroll-area-Ch8iXNIM.js} +1 -1
- package/dist/client/assets/{search-input-CpR7MF4a.js → search-input-CqM9MiZ3.js} +1 -1
- package/dist/client/assets/{search-toggle-Y8EXpMEc.js → search-toggle-VKaSo9uW.js} +1 -1
- package/dist/client/assets/{secret-picker-Br5fCyJR.js → secret-picker-DPC7oeFy.js} +1 -1
- package/dist/client/assets/{secrets-B5CgD_04.js → secrets-2ntDkWXH.js} +1 -1
- package/dist/client/assets/{section-array-field-DVc_SUaS.js → section-array-field-ziyJ9KKG.js} +1 -1
- package/dist/client/assets/{sections-zGZh6wSh.js → sections-B2FraWlK.js} +1 -1
- package/dist/client/assets/{sections-editor-lkKcQFno.js → sections-editor-D6NJi3oc.js} +1 -1
- package/dist/client/assets/{select-Bc6SUkDB.js → select-BqAgCf_e.js} +1 -1
- package/dist/client/assets/{select-model-DoenYnGG.js → select-model-CgHPgPvz.js} +1 -1
- package/dist/client/assets/{seo-editor-_aB2qgvo.js → seo-editor-Bc6Ncl3H.js} +1 -1
- package/dist/client/assets/{separator-sTUHAoAe.js → separator-B2LjZA6j.js} +1 -1
- package/dist/client/assets/settings-tab-DzS7_7oR.js +1 -0
- package/dist/client/assets/{sheet-DplVXaxG.js → sheet-y4usetIj.js} +1 -1
- package/dist/client/assets/shell-layout-BHLD5jhn.js +1 -0
- package/dist/client/assets/{site-draft-actions-D6MDFwbu.js → site-draft-actions-gfTBLW-u.js} +1 -1
- package/dist/client/assets/{site-draft-view-KDIF-X3e.js → site-draft-view-B7polEM8.js} +1 -1
- package/dist/client/assets/site-editor-Cp5Zuvwt.js +1 -0
- package/dist/client/assets/{site-editor-toast-C6zgUX0e.js → site-editor-toast-DaSHvCWu.js} +1 -1
- package/dist/client/assets/{skills-C0c78VRl.js → skills-BemYRmGR.js} +1 -1
- package/dist/client/assets/{slider-GSuedGm_.js → slider-CUVU1H_x.js} +1 -1
- package/dist/client/assets/{sortable.esm-BIp1gAsr.js → sortable.esm-Sw9w3P90.js} +1 -1
- package/dist/client/assets/{sso-CYU8G0dx.js → sso-C3qLFTZi.js} +1 -1
- package/dist/client/assets/{suggestion-CyNVbkov.js → suggestion-BiaV3mvJ.js} +1 -1
- package/dist/client/assets/{switch-Ddk_-Adw.js → switch-DKx4qpl7.js} +1 -1
- package/dist/client/assets/{synced-repos-BoVbsdN8.js → synced-repos-edmrMUSZ.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Bib8sDT3.js → tab-icon-glyph-C8csunxY.js} +1 -1
- package/dist/client/assets/{table-CDpozwVb.js → table-Dq5I6aY7.js} +1 -1
- package/dist/client/assets/{tabs-BBBKV7Oj.js → tabs-0SGJ_qve.js} +1 -1
- package/dist/client/assets/{task-board-CIxtWADL.js → task-board-CWLsdAvC.js} +1 -1
- package/dist/client/assets/{task-route-nL6YBqpT.js → task-route-Cay3KQ6a.js} +1 -1
- package/dist/client/assets/{task-status-BdHIH5wb.js → task-status-D-bn6Q3b.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-WYvo8iIi.js → taskboard-analytics-L-F5O9dg.js} +1 -1
- package/dist/client/assets/{tasks-gq6y7TQx.js → tasks-DIxE8tYD.js} +1 -1
- package/dist/client/assets/tasks-Drp2qtBI.js +1 -0
- package/dist/client/assets/{textarea-kPu_uJPE.js → textarea-C8pP4RDC.js} +1 -1
- package/dist/client/assets/thread-analytics-01LkdxOy.js +1 -0
- package/dist/client/assets/{thread-intent-H43pIrGm.js → thread-intent-D7FGI3D0.js} +1 -1
- package/dist/client/assets/{thread-route-DAi-GZ9V.js → thread-route-CKRKYHUZ.js} +1 -1
- package/dist/client/assets/{thread-route-D5BZJ8B8.js → thread-route-E0bMcc27.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-G_9F28Tw.js → thread-sheet-body-DkwRzpXX.js} +1 -1
- package/dist/client/assets/{time-range-picker-DE66qw6Q.js → time-range-picker-DNs3LiZc.js} +1 -1
- package/dist/client/assets/{toggle-group-C6-doG0i.js → toggle-group-DkZuJxmr.js} +1 -1
- package/dist/client/assets/{tool-namespace-B7QKcZjk.js → tool-namespace-CCkkm2qA.js} +1 -1
- package/dist/client/assets/{tool-set-selector-BQ0Oxag8.js → tool-set-selector-5zt8G69C.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CcKPaKCW.js → toolbar-icon-button-Cx0kc5lZ.js} +1 -1
- package/dist/client/assets/{tooltip-DkKVKER8.js → tooltip-jhiffORJ.js} +1 -1
- package/dist/client/assets/{tooltipContext-B3txDLR-.js → tooltipContext-BYQJi6EG.js} +1 -1
- package/dist/client/assets/{track-BIP36_Uh.js → track-8QL-WYe-.js} +1 -1
- package/dist/client/assets/{types-DADZ5j7m.js → types-CR7kvQl1.js} +1 -1
- package/dist/client/assets/{url-slug-ChYq0W60.js → url-slug-BxiYZtUy.js} +1 -1
- package/dist/client/assets/{usage-stats-32tsZUXd.js → usage-stats-DB51uKij.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CoMFtqYl.js → use-ai-providers-sfkouqgF.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BQlrOJWU.js → use-apply-named-rule-DA98Iihd.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-tQsBmTsy.js +1 -0
- package/dist/client/assets/{use-automations-D6Y5V5w7.js → use-automations-DD-H-0gg.js} +1 -1
- package/dist/client/assets/{use-autosave-Bhnkuzh5.js → use-autosave-Bw7KaLnG.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-DzHuTeMz.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-D7aW6a0C.js → use-chat-layout-state-BbG5C9on.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-DXLjbxwu.js → use-cms-publish-actions-1o6NX1uP.js} +5 -5
- package/dist/client/assets/{use-connect-companion-C7vylwX0.js → use-connect-companion-LWK1AWBF.js} +1 -1
- package/dist/client/assets/use-connection-CgY1E7FR.js +1 -0
- package/dist/client/assets/{use-content-sync-CoMrJcv7.js → use-content-sync-9QsuTp3C.js} +1 -1
- package/dist/client/assets/{use-copy-DNHp83li.js → use-copy-DRW_V1kW.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CjJNXfvB.js → use-date-fns-locale-Cw3Zaqb5.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CocwDpD-.js → use-debounced-autosave-CgAvArNN.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DklROaCE.js → use-debounced-value-B0a3uxKQ.js} +1 -1
- package/dist/client/assets/{use-deco-credits-ev_UnwK6.js → use-deco-credits-BVH6IrV5.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DsbeE0fY.js → use-decopilot-events-BYlxYXUQ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D9EOjdNd.js → use-delete-connection-CvuMwKsA.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BD_xFjSG.js → use-deployment-admin-Bw3ciRk9.js} +1 -1
- package/dist/client/assets/{use-entitlements-CEKmKdX0.js → use-entitlements-CMCBZq5_.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BfmpOxim.js → use-fast-preview-draft-url-BUD5f_Gm.js} +1 -1
- package/dist/client/assets/{use-file-configs-CGC2NdjT.js → use-file-configs-2Z7OwHbg.js} +1 -1
- package/dist/client/assets/{use-id-selection-DL9yj-Hm.js → use-id-selection--cuaALt7.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BIp7PHrk.js → use-inbox-feed-DxzsD1YQ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Cd1N4jMv.js → use-infinite-scroll-BKVwA-Ob.js} +1 -1
- package/dist/client/assets/{use-join-requests-dwGw3ubc.js → use-join-requests-BZlGoiU5.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DBPTQANw.js → use-main-panel-tabs-4JSMbOrH.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D0tSzrht.js → use-mcp-auth-status-CYCjckUQ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BkZUf1G1.js → use-mcp-client-CjLtJgTU.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-ogj31Wyv.js → use-mcp-prompts-JVEMCdnt.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CRGCgSi0.js → use-mcp-tools-C5jhMv1O.js} +1 -1
- package/dist/client/assets/{use-mobile-Brbs-D5v.js → use-mobile-CKr6zvd6.js} +1 -1
- package/dist/client/assets/{use-move-blocks-X2wSIdhe.js → use-move-blocks-B-6qZYKa.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-De0vzDZt.js → use-navigate-to-agent-BJsKVGd6.js} +1 -1
- package/dist/client/assets/{use-org-fs-DSsFMzTw.js → use-org-fs-DDhNsbr6.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DEF2HBAf.js → use-org-repo-syncs-DBx3nqV9.js} +1 -1
- package/dist/client/assets/{use-org-sso-DatsrvZR.js → use-org-sso-DyxTDJHi.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CyexoMCC.js → use-organization-settings-Cs5X07HH.js} +1 -1
- package/dist/client/assets/{use-project-scope-BIVViTXo.js → use-project-scope-DK5Zq3Vj.js} +1 -1
- package/dist/client/assets/{use-recent-apps-CYuwpxqr.js → use-recent-apps-BrqeKXhi.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CAzZagV3.js → use-reports-diagnostic-D0MF0Enh.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-DxPsGHpR.js → use-sandbox-events-DKvN2vib.js} +1 -1
- package/dist/client/assets/{use-secrets-CpdnK-89.js → use-secrets-q3tQjsVS.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-9hC7oJo0.js → use-section-preview-base-DI0VnMUg.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BbD-3i3N.js → use-sidebar-collapsed-NHFQSjyB.js} +1 -1
- package/dist/client/assets/{use-tags-Bt88S1Fh.js → use-tags-7ZRefyR6.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BTkEPZTH.js → use-task-board-analytics-CFKUFKZO.js} +1 -1
- package/dist/client/assets/{use-task-board-events-C_Du1Z0W.js → use-task-board-events-D1ietf1D.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-vSYpxSpr.js → use-task-board-item-prs-hyB7mT0I.js} +1 -1
- package/dist/client/assets/{use-task-board-items-D8dDcoyT.js → use-task-board-items-C5M-iJHh.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-BSaKlopF.js → use-task-board-prompts-Bj8qQJuo.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BF4el6FI.js → use-task-metadata-D_W5nMRB.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CzwE74V7.js → use-thread-outputs-CIMyOC9i.js} +1 -1
- package/dist/client/assets/{use-voice-input-Ct26_ckB.js → use-voice-input-D0UxQK8p.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-4mlqNbEX.js +1 -0
- package/dist/client/assets/{useQueries-D0Ic2OLL.js → useQueries-D-paqk_N.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-6pYaPTkl.js +1 -0
- package/dist/client/assets/{users-CcZNVW1C.js → users-CgyVEAVi.js} +1 -1
- package/dist/client/assets/{utils-CVwSOtNq.js → utils-CML3oMCb.js} +1 -1
- package/dist/client/assets/{variant-calendar-bvYuncUl.js → variant-calendar-CiRidZhE.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-JfQvd5m1.js → variant-matcher-override-DptryLC2.js} +1 -1
- package/dist/client/assets/{view-header-3XIW6_JX.js → view-header-C5UPfmG7.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Ba39VAch.js → virtual-mcp-BVgnJh3F.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CcLpshxd.js → watch-sse-pool-DiT4THMV.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B0ADSPIl.js +0 -1
- package/dist/client/assets/agent-deck-FWdv6Cpu.js +0 -1
- package/dist/client/assets/agent-experiments-zhmtYFsP.js +0 -1
- package/dist/client/assets/agent-library-C9bPwpZT.js +0 -1
- package/dist/client/assets/agent-library-file-CJqPNg_v.js +0 -1
- package/dist/client/assets/agent-overview-DIZADCxs.js +0 -1
- package/dist/client/assets/agent-settings-BXotmRnL.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Bd4DxsVE.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BOAu460T.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DIPhJI1V.js +0 -1
- package/dist/client/assets/agent-view-CQ1k8Ncp.js +0 -1
- package/dist/client/assets/api-keys-4E58id83.js +0 -1
- package/dist/client/assets/index-O8I8IW_m.js +0 -1
- package/dist/client/assets/index-SmuiYnIl.css +0 -1
- package/dist/client/assets/library-BWyOfhBW.js +0 -1
- package/dist/client/assets/project-reports-DvoGEV_S.js +0 -1
- package/dist/client/assets/project-tasks-3w3MRdO3.js +0 -1
- package/dist/client/assets/record-editor-CuEUlJ7c.js +0 -1
- package/dist/client/assets/reports-BllquOlr.js +0 -1
- package/dist/client/assets/repositories-B1CtO4Nn.js +0 -1
- package/dist/client/assets/route-6u2HC7D0.js +0 -1
- package/dist/client/assets/settings-tab-DhF3HWFp.js +0 -1
- package/dist/client/assets/shell-layout-n8ud5acT.js +0 -1
- package/dist/client/assets/site-editor-By4hUbCH.js +0 -1
- package/dist/client/assets/tasks-Cdzrrdaz.js +0 -1
- package/dist/client/assets/thread-analytics-D6Pq3tuN.js +0 -1
- package/dist/client/assets/use-ask-in-chat-hvqpSKkf.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-DhlWbUca.js +0 -1
- package/dist/client/assets/use-connection-lpdRo-uP.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BNB4wMo9.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DUZAeMjh.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as H,b as U,r as Y,m as B,j as t,a5 as Ke,d as Ge,aB as Je,l as Ve,H as Qe,ar as Pe,L as Me,$ as Ze,E as ge,at as We,aC as et,P as tt}from"./index-BpRy7AHp.js";import{u as ke,c as He,i as st,j as it,k as nt,l as rt}from"./use-sidebar-collapsed-NHFQSjyB.js";import{S as lt,a as ot,b as at}from"./sheet-y4usetIj.js";import{u as ct}from"./use-mobile-CKr6zvd6.js";import{u as dt,a as ut,D as ft,c as mt,C as ht,P as gt}from"./core.esm-BGRTXfSt.js";import{S as pt,v as xt,u as bt}from"./sortable.esm-Sw9w3P90.js";import{i as jt}from"./Tool01-BXFm5jK2.js";import{B as vt,A as yt,C as De,l as St}from"./agent-icon-AbOSM7KF.js";import{s as wt}from"./Plus-u00IxELx.js";import{i as Ct}from"./UserSquare-BloCTB27.js";import{s as Ot}from"./XClose-CUME_VK2.js";import{a as pe,T as xe,c as be}from"./tooltip-jhiffORJ.js";import{C as Le,f as _t,g as zt,e as Rt}from"./context-menu-o6rJLNXJ.js";import{a as Nt,O as Be,w as Tt,b as Lt,c as Et,E as Pt,r as we,d as kt,e as At,h as Dt,t as It,f as Fe,m as $t,o as Kt}from"./shell-layout-BHLD5jhn.js";import{C as Mt}from"./create-organization-dialog-h3rzGSt9.js";import{P as Wt}from"./project-apps-C_vCRb8O.js";import{u as Ht,a as Bt}from"./use-recent-apps-BrqeKXhi.js";import{a as Ft}from"./use-navigate-to-agent-BJsKVGd6.js";import{a as Xt,u as Yt}from"./use-project-scope-DK5Zq3Vj.js";import{C as Ie,a as Ut,b as qt,c as Gt,d as Jt}from"./command-CYK5M8XI.js";import{u as Vt}from"./use-debounced-value-B0a3uxKQ.js";function Qt(n){const e=H.c(48),{open:s,onOpenChange:i,orgs:l,currentSlug:c,onSelect:r}=n,o=U(),[a,u]=Y.useState("");let g;e[0]!==a?(g=a.trim(),e[0]=a,e[1]=g):g=e[1];const h=g,m=Vt(h,150),f=h.length>0,d=m===h,{hits:b,isSearching:x,isStale:w,isError:y}=Nt(f?m:""),j=f?b:l;let S;e[2]!==i?(S=k=>{i(k),k||u("")},e[2]=i,e[3]=S):S=e[3];const p=S;let v;e[4]!==o?(v=o("sidebar.rail.searchOrganizations"),e[4]=o,e[5]=v):v=e[5];let C;e[6]!==o?(C=o("sidebar.rail.searchPlaceholder"),e[6]=o,e[7]=C):C=e[7];let N;e[8]!==o?(N=o("sidebar.rail.searchPlaceholder"),e[8]=o,e[9]=N):N=e[9];let O;e[10]!==a||e[11]!==N?(O=t.jsx(Ut,{value:a,onValueChange:u,placeholder:N}),e[10]=a,e[11]=N,e[12]=O):O=e[12];const P=f&&(w||!d)&&"opacity-50";let R;e[13]!==P?(R=B(P),e[13]=P,e[14]=R):R=e[14];let _;e[15]!==y||e[16]!==f||e[17]!==o?(_=f&&y&&t.jsx(Ie,{children:o("sidebar.rail.searchFailed")}),e[15]=y,e[16]=f,e[17]=o,e[18]=_):_=e[18];let T;e[19]!==y||e[20]!==x||e[21]!==j.length||e[22]!==d||e[23]!==o?(T=!y&&d&&!x&&j.length===0&&t.jsx(Ie,{children:o("sidebar.rail.searchEmpty")}),e[19]=y,e[20]=x,e[21]=j.length,e[22]=d,e[23]=o,e[24]=T):T=e[24];let L;if(e[25]!==c||e[26]!==r||e[27]!==p||e[28]!==j||e[29]!==o){let k;e[31]!==c||e[32]!==r||e[33]!==p||e[34]!==o?(k=A=>t.jsxs(qt,{value:A.slug,onSelect:()=>{p(!1),A.slug!==c&&r(A.slug)},className:"gap-2.5",children:[t.jsx(Be,{org:A,size:"sm"}),t.jsx("span",{className:"min-w-0 flex-1 truncate",children:A.name}),A.slug===c&&t.jsx("span",{className:"text-meta shrink-0",children:o("sidebar.rail.currentOrganization")})]},A.id),e[31]=c,e[32]=r,e[33]=p,e[34]=o,e[35]=k):k=e[35],L=j.map(k),e[25]=c,e[26]=r,e[27]=p,e[28]=j,e[29]=o,e[30]=L}else L=e[30];let z;e[36]!==T||e[37]!==L||e[38]!==R||e[39]!==_?(z=t.jsxs(Gt,{className:R,children:[_,T,L]}),e[36]=T,e[37]=L,e[38]=R,e[39]=_,e[40]=z):z=e[40];let D;return e[41]!==s||e[42]!==p||e[43]!==z||e[44]!==v||e[45]!==C||e[46]!==O?(D=t.jsxs(Jt,{open:s,onOpenChange:p,title:v,description:C,shouldFilter:!1,children:[O,z]}),e[41]=s,e[42]=p,e[43]=z,e[44]=v,e[45]=C,e[46]=O,e[47]=D):D=e[47],D}function Ce(n){const e=H.c(11),{active:s,label:i,children:l}=n,c=s?"h-7 opacity-100":"h-2 opacity-0 group-hover/rail:opacity-60";let r;e[0]!==c?(r=B("w-1 rounded-r-full bg-foreground","transition-[height,opacity] duration-200 ease-[var(--ease-out-cubic)]","motion-reduce:transition-none",c),e[0]=c,e[1]=r):r=e[1];let o;e[2]!==r?(o=t.jsx("span",{"aria-hidden":!0,className:"absolute top-0 -left-2.5 flex h-9 items-center",children:t.jsx("span",{className:r})}),e[2]=r,e[3]=o):o=e[3];let a;e[4]!==s||e[5]!==i?(a=i&&t.jsx("span",{"aria-hidden":!0,className:B("line-clamp-2 w-full px-0.5 text-center text-2xs text-ellipsis transition-colors",s?"font-medium text-sidebar-foreground":"text-muted-foreground group-hover/rail:text-sidebar-foreground"),children:i}),e[4]=s,e[5]=i,e[6]=a):a=e[6];let u;return e[7]!==l||e[8]!==o||e[9]!==a?(u=t.jsxs("div",{className:"group/rail relative flex w-full shrink-0 flex-col items-center gap-1",children:[o,l,a]}),e[7]=l,e[8]=o,e[9]=a,e[10]=u):u=e[10],u}function Zt(n){return globalThis.addEventListener("resize",n),()=>globalThis.removeEventListener("resize",n)}const es=()=>Fe(globalThis.innerHeight),ts=()=>Fe(0);function ss(n){const e=H.c(59),{org:s,active:i,onSelect:l,pinned:c,onOpenSettings:r,onTogglePin:o,onHide:a}=n,u=U();let g;e[0]!==s.slug?(g={id:s.slug},e[0]=s.slug,e[1]=g):g=e[1];const{setNodeRef:h,listeners:m,transform:f,transition:d,isDragging:b}=bt(g);let x;e[2]!==f?(x=ht.Transform.toString(f?{...f,x:0}:null),e[2]=f,e[3]=x):x=e[3];const w=b?1:void 0,y=`rail-org-${s.slug}`;let j;e[4]!==x||e[5]!==w||e[6]!==y||e[7]!==d?(j={transform:x,transition:d,zIndex:w,viewTransitionName:y},e[4]=x,e[5]=w,e[6]=y,e[7]=d,e[8]=j):j=e[8];const S=s.name,p=i||void 0,v=i?"opacity-100":"opacity-60 hover:scale-105 hover:opacity-100",C=l&&"cursor-pointer";let N;e[9]!==v||e[10]!==C?(N=B("relative flex shrink-0 items-center justify-center rounded-xl focus-ring","transition-[opacity,transform] duration-150 ease-out",v,C),e[9]=v,e[10]=C,e[11]=N):N=e[11];let O;e[12]!==s?(O=t.jsx(Be,{org:s,size:"lg"}),e[12]=s,e[13]=O):O=e[13];let P;e[14]!==c?(P=c&&t.jsx("span",{"aria-hidden":!0,className:"absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-sidebar-accent text-muted-foreground ring-2 ring-sidebar",children:t.jsx(De,{size:9})}),e[14]=c,e[15]=P):P=e[15];let R;e[16]!==l||e[17]!==s.name||e[18]!==N||e[19]!==O||e[20]!==P||e[21]!==p?(R=t.jsx(xe,{asChild:!0,children:t.jsx(_t,{asChild:!0,children:t.jsxs("button",{type:"button","aria-label":S,"aria-current":p,onClick:l,className:N,children:[O,P]})})}),e[16]=l,e[17]=s.name,e[18]=N,e[19]=O,e[20]=P,e[21]=p,e[22]=R):R=e[22];let _;e[23]!==s.name?(_=t.jsx(pe,{side:"right",children:s.name}),e[23]=s.name,e[24]=_):_=e[24];let T;e[25]!==R||e[26]!==_?(T=t.jsxs(be,{children:[R,_]}),e[25]=R,e[26]=_,e[27]=T):T=e[27];let L;e[28]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(St,{}),e[28]=L):L=e[28];let z;e[29]!==u?(z=u("sidebar.rail.organizationSettings"),e[29]=u,e[30]=z):z=e[30];let D;e[31]!==r||e[32]!==z?(D=t.jsxs(Le,{onSelect:r,children:[L,z]}),e[31]=r,e[32]=z,e[33]=D):D=e[33];let k;e[34]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(De,{}),e[34]=k):k=e[34];let A;e[35]!==c||e[36]!==u?(A=u(c?"sidebar.rail.unpinOrganization":"sidebar.rail.pinOrganization"),e[35]=c,e[36]=u,e[37]=A):A=e[37];let K;e[38]!==o||e[39]!==A?(K=t.jsxs(Le,{onSelect:o,children:[k,A]}),e[38]=o,e[39]=A,e[40]=K):K=e[40];let M;e[41]!==a||e[42]!==u?(M=a&&t.jsxs(Le,{onSelect:a,children:[t.jsx(jt,{}),u("sidebar.rail.hideOrganization")]}),e[41]=a,e[42]=u,e[43]=M):M=e[43];let F;e[44]!==D||e[45]!==K||e[46]!==M?(F=t.jsxs(zt,{children:[D,K,M]}),e[44]=D,e[45]=K,e[46]=M,e[47]=F):F=e[47];let $;e[48]!==T||e[49]!==F?($=t.jsxs(Rt,{children:[T,F]}),e[48]=T,e[49]=F,e[50]=$):$=e[50];let W;e[51]!==i||e[52]!==$?(W=t.jsx(Ce,{active:i,children:$}),e[51]=i,e[52]=$,e[53]=W):W=e[53];let X;return e[54]!==m||e[55]!==h||e[56]!==W||e[57]!==j?(X=t.jsx("div",{ref:h,...m,style:j,className:"w-full shrink-0 touch-none",children:W}),e[54]=m,e[55]=h,e[56]=W,e[57]=j,e[58]=X):X=e[58],X}function is(n){const e=H.c(64),{project:s,orgSlug:i,active:l,onClose:c,onNavigate:r}=n,o=U();let a,u,g,h,m,f,d,b,x,w,y;if(e[0]!==l||e[1]!==r||e[2]!==i||e[3]!==s.icon||e[4]!==s.id||e[5]!==s.title){const k=vt(s.icon,s.title);y="group/rail relative flex w-full flex-col items-center gap-1",g=be,u=xe,w=!0,a=Me,h=Ze.root,e[17]!==i||e[18]!==s.id?(m={org:i,agentId:s.id},e[17]=i,e[18]=s.id,e[19]=m):m=e[19],f=s.title,d=l||void 0,e[20]!==r?(b=()=>{ge("org_rail_recent_project_opened"),r?.()},e[20]=r,e[21]=b):b=e[21],x=B("flex shrink-0 rounded-lg focus-ring",k.text,l&&"ring-[1.5px] ring-current"),e[0]=l,e[1]=r,e[2]=i,e[3]=s.icon,e[4]=s.id,e[5]=s.title,e[6]=a,e[7]=u,e[8]=g,e[9]=h,e[10]=m,e[11]=f,e[12]=d,e[13]=b,e[14]=x,e[15]=w,e[16]=y}else a=e[6],u=e[7],g=e[8],h=e[9],m=e[10],f=e[11],d=e[12],b=e[13],x=e[14],w=e[15],y=e[16];let j;e[22]!==s.icon||e[23]!==s.title?(j=t.jsx(yt,{icon:s.icon,name:s.title,size:"sm",className:"size-8 rounded-lg"}),e[22]=s.icon,e[23]=s.title,e[24]=j):j=e[24];let S;e[25]!==a||e[26]!==h||e[27]!==m||e[28]!==f||e[29]!==d||e[30]!==b||e[31]!==x||e[32]!==j?(S=t.jsx(a,{to:h,params:m,"aria-label":f,"aria-current":d,onClick:b,className:x,children:j}),e[25]=a,e[26]=h,e[27]=m,e[28]=f,e[29]=d,e[30]=b,e[31]=x,e[32]=j,e[33]=S):S=e[33];let p;e[34]!==u||e[35]!==S||e[36]!==w?(p=t.jsx(u,{asChild:w,children:S}),e[34]=u,e[35]=S,e[36]=w,e[37]=p):p=e[37];let v;e[38]!==s.title?(v=t.jsx(pe,{side:"right",children:s.title}),e[38]=s.title,e[39]=v):v=e[39];let C;e[40]!==g||e[41]!==p||e[42]!==v?(C=t.jsxs(g,{children:[p,v]}),e[40]=g,e[41]=p,e[42]=v,e[43]=C):C=e[43];const N=l?"font-medium text-sidebar-foreground":"text-muted-foreground group-hover/rail:text-sidebar-foreground";let O;e[44]!==N?(O=B("line-clamp-2 w-full text-center text-2xs break-words transition-colors",N),e[44]=N,e[45]=O):O=e[45];let P;e[46]!==s.title||e[47]!==O?(P=t.jsx("span",{"aria-hidden":!0,className:O,children:s.title}),e[46]=s.title,e[47]=O,e[48]=P):P=e[48];let R;e[49]!==s.title||e[50]!==o?(R=o("sidebar.rail.closeApp",{name:s.title}),e[49]=s.title,e[50]=o,e[51]=R):R=e[51];let _;e[52]!==c?(_=()=>{ge("org_rail_recent_project_closed"),c()},e[52]=c,e[53]=_):_=e[53];let T,L;e[54]===Symbol.for("react.memo_cache_sentinel")?(T=B("absolute -top-1.5 right-[calc(50%-1.25rem)] flex size-4 cursor-pointer items-center justify-center rounded-full","bg-sidebar-accent text-muted-foreground ring-2 ring-sidebar hover:text-foreground","opacity-0 transition-opacity duration-150 group-hover/rail:opacity-100 focus-visible:opacity-100 focus-visible:outline-none"),L=t.jsx(Ot,{size:10}),e[54]=T,e[55]=L):(T=e[54],L=e[55]);let z;e[56]!==R||e[57]!==_?(z=t.jsx("button",{type:"button","aria-label":R,onClick:_,className:T,children:L}),e[56]=R,e[57]=_,e[58]=z):z=e[58];let D;return e[59]!==C||e[60]!==P||e[61]!==z||e[62]!==y?(D=t.jsxs("div",{className:y,children:[C,P,z]}),e[59]=C,e[60]=P,e[61]=z,e[62]=y,e[63]=D):D=e[63],D}const ns={"site-editor":"/site-editor"};function rs(n){const e=H.c(26),{app:s}=n,i=U(),l=Wt[s],c=ns[s];if(!l||!c)return null;let r;e[0]!==l.labelKey||e[1]!==i?(r=i(l.labelKey),e[0]=l.labelKey,e[1]=i,e[2]=r):r=e[2];let o;e[3]!==l.labelKey||e[4]!==i?(o=i(l.labelKey),e[3]=l.labelKey,e[4]=i,e[5]=o):o=e[5];let a;e[6]!==l.tone?(a=B("flex size-9 shrink-0 items-center justify-center rounded-xl focus-ring opacity-100",l.tone),e[6]=l.tone,e[7]=a):a=e[7];let u;e[8]!==l.Icon?(u=t.jsx(l.Icon,{size:18}),e[8]=l.Icon,e[9]=u):u=e[9];let g;e[10]!==o||e[11]!==a||e[12]!==u||e[13]!==c?(g=t.jsx(xe,{asChild:!0,children:t.jsx(Me,{to:c,"aria-label":o,"aria-current":"page","data-testid":"org-rail-local-app",className:a,children:u})}),e[10]=o,e[11]=a,e[12]=u,e[13]=c,e[14]=g):g=e[14];let h;e[15]!==l.labelKey||e[16]!==i?(h=i(l.labelKey),e[15]=l.labelKey,e[16]=i,e[17]=h):h=e[17];let m;e[18]!==h?(m=t.jsx(pe,{side:"right",children:h}),e[18]=h,e[19]=m):m=e[19];let f;e[20]!==g||e[21]!==m?(f=t.jsxs(be,{children:[g,m]}),e[20]=g,e[21]=m,e[22]=f):f=e[22];let d;return e[23]!==r||e[24]!==f?(d=t.jsx(Ce,{active:!0,label:r,children:f}),e[23]=r,e[24]=f,e[25]=d):d=e[25],d}function ls(){const{org:n}=Ke();return Ht(n.slug),null}function Xe(n){const e=H.c(76),{onNavigate:s}=n===void 0?{}:n,i=U(),l=Ge(),{org:c}=Ke(),r=Je();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:ds},e[0]=o):o=e[0];const a=Ve(o);let u;e[1]!==a||e[2]!==r?(u=a?r({to:"/$org",fuzzy:!0,pending:!0}):!1,e[1]=a,e[2]=r,e[3]=u):u=e[3];const g=u,h=g?g.org:c.slug,{data:m}=Qe(),[f,d]=Y.useState(!1),[b,x]=Y.useState(!1),w=ke(),{recent:y,forget:j}=Ft(c.slug),{projects:S}=Xt(),p=Yt(),v=Bt(),C=v&&v.projectId===null?v.app:null,N=C?[]:y.flatMap(E=>S.filter(I=>I.id===E)),O=Tt(m??[],c),{recent:P}=Lt(),R=Et();let _;e[4]===Symbol.for("react.memo_cache_sentinel")?(_=We.railOrgPrefs(),e[4]=_):_=e[4];const[T,L]=Pe(_,Pt),z=we(T),D=Y.useSyncExternalStore(Zt,es,ts),{shown:k}=kt(At(O,z,c.slug),P,c.slug,D,z.pinned);let A;e[5]===Symbol.for("react.memo_cache_sentinel")?(A={activationConstraint:{distance:8}},e[5]=A):A=e[5];const K=dt(ut(gt,A)),M=E=>{const{active:I,over:Ae}=E;Ae&&(ge("org_rail_reordered"),L(qe=>$t(we(qe),k.map(cs),String(I.id),String(Ae.id))))},F=E=>{s?.(),l({to:"/$org/home",params:{org:E},viewTransition:!0})},$=E=>{ge("org_rail_travel"),s?.(),R(E,k.map(as))},W=()=>{if(ge("org_rail_search_opened"),!c.id){x(!0);return}s?.(),Kt()},X=!w&&"border-r border-sidebar-border";let q;e[6]!==X?(q=B("flex w-[68px] shrink-0 flex-col bg-sidebar",X),e[6]=X,e[7]=q):q=e[7];const Ue="flex min-h-0 flex-1 flex-col items-center gap-2.5 overflow-y-auto px-2.5 pt-3 pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";let G;e[8]!==i?(G=i("sidebar.rail.ariaLabel"),e[8]=i,e[9]=G):G=e[9];const Oe=ft,_e=mt,ze=pt,Re=k.map(os),Ne=xt,Te=k.map(E=>t.jsxs(Y.Fragment,{children:[t.jsx(ss,{org:E,active:E.slug===h,pinned:z.pinned.includes(E.slug),onSelect:E.slug!==c.slug?()=>$(E.slug):p?()=>F(E.slug):void 0,onOpenSettings:()=>{s?.(),l({to:"/$org/settings",params:{org:E.slug}})},onTogglePin:()=>L(I=>It(we(I),E.slug)),onHide:E.slug===c.slug?void 0:()=>L(I=>Dt(we(I),E.slug))}),E.slug===c.slug&&N.length>0&&t.jsx("div",{style:{viewTransitionName:"rail-projects"},className:"-mx-1.5 flex w-[calc(100%+0.75rem)] flex-col items-center gap-3 rounded-[12px] bg-foreground/4 px-1 py-3",children:N.map(I=>t.jsx(is,{project:I,orgSlug:c.slug,active:p===I.id,onClose:()=>j(I.id),onNavigate:s},I.id))})]},E.id));let J;e[10]!==ze||e[11]!==Re||e[12]!==Ne||e[13]!==Te?(J=t.jsx(ze,{items:Re,strategy:Ne,children:Te}),e[10]=ze,e[11]=Re,e[12]=Ne,e[13]=Te,e[14]=J):J=e[14];let V;e[15]!==Oe||e[16]!==M||e[17]!==K||e[18]!==_e||e[19]!==J?(V=t.jsx(Oe,{sensors:K,collisionDetection:_e,onDragEnd:M,children:J}),e[15]=Oe,e[16]=M,e[17]=K,e[18]=_e,e[19]=J,e[20]=V):V=e[20];let Q;e[21]!==C?(Q=C&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"my-2 h-px w-6 shrink-0 bg-sidebar-border","aria-hidden":!0}),t.jsx(rs,{app:C})]}),e[21]=C,e[22]=Q):Q=e[22];let Z;e[23]!==V||e[24]!==Q||e[25]!==G?(Z=t.jsxs("div",{className:Ue,"aria-label":G,children:[V,Q]}),e[23]=V,e[24]=Q,e[25]=G,e[26]=Z):Z=e[26];let ee;e[27]!==i?(ee=i("sidebar.rail.search"),e[27]=i,e[28]=ee):ee=e[28];let je;e[29]===Symbol.for("react.memo_cache_sentinel")?(je=t.jsx(Ct,{size:18}),e[29]=je):je=e[29];let te;e[30]!==W||e[31]!==ee?(te=t.jsx(xe,{asChild:!0,children:t.jsx("button",{type:"button","aria-label":ee,"aria-keyshortcuts":"Meta+K Control+K",onClick:W,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring",children:je})}),e[30]=W,e[31]=ee,e[32]=te):te=e[32];let se;e[33]!==i?(se=i("sidebar.rail.search"),e[33]=i,e[34]=se):se=e[34];let ve;e[35]===Symbol.for("react.memo_cache_sentinel")?(ve=t.jsx("span",{className:"ml-2 text-muted-foreground",children:et.commandPalette.keys.join("")}),e[35]=ve):ve=e[35];let ie;e[36]!==se?(ie=t.jsxs(pe,{side:"right",children:[se,ve]}),e[36]=se,e[37]=ie):ie=e[37];let ne;e[38]!==te||e[39]!==ie?(ne=t.jsx(Ce,{active:!1,children:t.jsxs(be,{children:[te,ie]})}),e[38]=te,e[39]=ie,e[40]=ne):ne=e[40];let re;e[41]!==i?(re=i("sidebar.picker.newOrganization"),e[41]=i,e[42]=re):re=e[42];let le;e[43]!==d?(le=()=>d(!0),e[43]=d,e[44]=le):le=e[44];let ye;e[45]===Symbol.for("react.memo_cache_sentinel")?(ye=t.jsx(wt,{size:18}),e[45]=ye):ye=e[45];let oe;e[46]!==re||e[47]!==le?(oe=t.jsx(xe,{asChild:!0,children:t.jsx("button",{type:"button","aria-label":re,onClick:le,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring",children:ye})}),e[46]=re,e[47]=le,e[48]=oe):oe=e[48];let ae;e[49]!==i?(ae=i("sidebar.picker.newOrganization"),e[49]=i,e[50]=ae):ae=e[50];let ce;e[51]!==ae?(ce=t.jsx(pe,{side:"right",children:ae}),e[51]=ae,e[52]=ce):ce=e[52];let de;e[53]!==oe||e[54]!==ce?(de=t.jsx(Ce,{active:!1,children:t.jsxs(be,{children:[oe,ce]})}),e[53]=oe,e[54]=ce,e[55]=de):de=e[55];let ue;e[56]!==ne||e[57]!==de?(ue=t.jsxs("div",{className:"flex shrink-0 flex-col items-center gap-1 px-2.5 pt-2 pb-3",children:[ne,de]}),e[56]=ne,e[57]=de,e[58]=ue):ue=e[58];let fe;e[59]!==Z||e[60]!==ue||e[61]!==q?(fe=t.jsxs("div",{className:q,children:[Z,ue]}),e[59]=Z,e[60]=ue,e[61]=q,e[62]=fe):fe=e[62];let me;e[63]!==c.slug||e[64]!==O||e[65]!==b||e[66]!==x||e[67]!==$?(me=t.jsx(Qt,{open:b,onOpenChange:x,orgs:O,currentSlug:c.slug,onSelect:$}),e[63]=c.slug,e[64]=O,e[65]=b,e[66]=x,e[67]=$,e[68]=me):me=e[68];let he;e[69]!==f||e[70]!==d?(he=t.jsx(Mt,{open:f,onOpenChange:d}),e[69]=f,e[70]=d,e[71]=he):he=e[71];let Se;return e[72]!==fe||e[73]!==me||e[74]!==he?(Se=t.jsxs(t.Fragment,{children:[fe,me,he]}),e[72]=fe,e[73]=me,e[74]=he,e[75]=Se):Se=e[75],Se}function os(n){return n.slug}function as(n){return n.slug}function cs(n){return n.slug}function ds(n){return n.isLoading}function us(n){const e=H.c(15),{width:s,minWidth:i,maxWidth:l,onPointerDown:c,onKeyDown:r,onDoubleClick:o}=n,a=U(),{isMobile:u}=He(),g=ke();if(u||g)return null;let h;e[0]!==a?(h=a("sidebar.sidebarResizeHandle.ariaLabel"),e[0]=a,e[1]=h):h=e[1];let m;e[2]!==a?(m=a("sidebar.sidebarResizeHandle.title"),e[2]=a,e[3]=m):m=e[3];let f,d;e[4]===Symbol.for("react.memo_cache_sentinel")?(f={left:"var(--sidebar-width)"},d=t.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border group-focus-visible/resize:bg-ring"}),e[4]=f,e[5]=d):(f=e[4],d=e[5]);let b;return e[6]!==l||e[7]!==i||e[8]!==o||e[9]!==r||e[10]!==c||e[11]!==h||e[12]!==m||e[13]!==s?(b=t.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":h,"aria-valuenow":s,"aria-valuemin":i,"aria-valuemax":l,title:m,tabIndex:0,onPointerDown:c,onKeyDown:r,onDoubleClick:o,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize focus-visible:outline-none",style:f,children:d}),e[6]=l,e[7]=i,e[8]=o,e[9]=r,e[10]=c,e[11]=h,e[12]=m,e[13]=s,e[14]=b):b=e[14],b}const Ee=400,$e=16,fs="sidebar.width.v2";function ms(){const n=H.c(14),e=hs;let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=d=>typeof d=="number"?e(d):192,n[0]=s):s=n[0];const[i,l]=Pe(fs,s),c=Y.useRef(null);let r;n[1]!==l||n[2]!==i?(r=d=>{d.preventDefault();const b=d.clientX,x=e(i),w=c.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),y=w?Array.from(w.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const p of y)p.style.transition="none";const j=p=>{const v=e(x+(p.clientX-b));w?.style.setProperty("--sidebar-width",`${v}px`)},S=p=>{const v=e(x+(p.clientX-b));l(v);for(const C of y)C.style.transition="";window.removeEventListener("pointermove",j),window.removeEventListener("pointerup",S),window.removeEventListener("pointercancel",S),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",j),window.addEventListener("pointerup",S),window.addEventListener("pointercancel",S)},n[1]=l,n[2]=i,n[3]=r):r=n[3];const o=r;let a;n[4]!==l?(a=()=>{l(192)},n[4]=l,n[5]=a):a=n[5];const u=a;let g;n[6]!==l||n[7]!==i?(g=d=>{if(d.key==="ArrowLeft")l(e(i-$e));else if(d.key==="ArrowRight")l(e(i+$e));else if(d.key==="Home")l(192);else if(d.key==="End")l(Ee);else return;d.preventDefault()},n[6]=l,n[7]=i,n[8]=g):g=n[8];const h=g,m=e(i);let f;return n[9]!==h||n[10]!==o||n[11]!==u||n[12]!==m?(f={width:m,minWidth:192,maxWidth:Ee,wrapperRef:c,onStartResize:o,onKeyDownResize:h,resetWidth:u},n[9]=h,n[10]=o,n[11]=u,n[12]=m,n[13]=f):f=n[13],f}function hs(n){return Math.max(192,Math.min(Ee,n))}const Ye=Y.createContext(null);function gs(){const n=Y.use(Ye);if(!n)throw new Error("Layout regions require a Layout");return n}function ps({children:n,notice:e,outsideOrg:s}){const i=ct(),[l,c]=Pe(We.sidebarOpen(),!0),r=ms();return t.jsx(Ye,{value:{isMobile:i,resize:r},children:t.jsx(st,{open:l,onOpenChange:c,children:t.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[e,t.jsxs("div",{className:"flex flex-1 flex-row min-h-0",children:[!s&&t.jsx(ls,{}),!i&&(s?.rail??!0)&&t.jsx(Xe,{}),t.jsx(it,{ref:r.wrapperRef,className:"flex-1 bg-sidebar relative min-h-0",style:{"--sidebar-width":`${r.width}px`,"--sidebar-width-icon":"0px"},children:t.jsx(nt,{children:n})})]})]})})})}function xs(n){const e=H.c(36),{children:s,renderMobile:i}=n,l=U(),{isMobile:c,resize:r}=gs(),{openMobile:o,setOpenMobile:a}=He(),u=ke();let g;e[0]!==a?(g=()=>a(!1),e[0]=a,e[1]=g):g=e[1];const h=g;if(!c){let S;e[2]!==s||e[3]!==u?(S=t.jsx("div",{className:"contents",inert:u,children:s}),e[2]=s,e[3]=u,e[4]=S):S=e[4];let p;e[5]!==r.maxWidth||e[6]!==r.minWidth||e[7]!==r.onKeyDownResize||e[8]!==r.onStartResize||e[9]!==r.resetWidth||e[10]!==r.width?(p=t.jsx(us,{width:r.width,minWidth:r.minWidth,maxWidth:r.maxWidth,onPointerDown:r.onStartResize,onKeyDown:r.onKeyDownResize,onDoubleClick:r.resetWidth}),e[5]=r.maxWidth,e[6]=r.minWidth,e[7]=r.onKeyDownResize,e[8]=r.onStartResize,e[9]=r.resetWidth,e[10]=r.width,e[11]=p):p=e[11];let v;return e[12]!==S||e[13]!==p?(v=t.jsxs(t.Fragment,{children:[S,p]}),e[12]=S,e[13]=p,e[14]=v):v=e[14],v}let m;e[15]!==l?(m=l("layouts.shellControls.navigationTitle"),e[15]=l,e[16]=m):m=e[16];let f;e[17]!==m?(f=t.jsx(lt,{className:"sr-only",children:m}),e[17]=m,e[18]=f):f=e[18];let d;e[19]!==h?(d=t.jsx(Xe,{onNavigate:h}),e[19]=h,e[20]=d):d=e[20];let b;e[21]!==h||e[22]!==i?(b=i({onClose:h}),e[21]=h,e[22]=i,e[23]=b):b=e[23];let x;e[24]!==b?(x=t.jsx("div",{className:"min-w-0 flex-1",children:b}),e[24]=b,e[25]=x):x=e[25];let w;e[26]!==d||e[27]!==x?(w=t.jsxs("div",{className:"flex h-full min-h-0",children:[d,x]}),e[26]=d,e[27]=x,e[28]=w):w=e[28];let y;e[29]!==f||e[30]!==w?(y=t.jsxs(ot,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",onOpenAutoFocus:bs,children:[f,w]}),e[29]=f,e[30]=w,e[31]=y):y=e[31];let j;return e[32]!==o||e[33]!==a||e[34]!==y?(j=t.jsx(at,{open:o,onOpenChange:a,children:y}),e[32]=o,e[33]=a,e[34]=y,e[35]=j):j=e[35],j}function bs(n){return n.preventDefault()}function js(n){const e=H.c(3),{children:s}=n;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={background:"transparent",containerType:"inline-size"},e[0]=i):i=e[0];let l;return e[1]!==s?(l=t.jsx(rt,{className:"flex flex-col min-h-0",style:i,children:t.jsx(tt,{variant:"plain",className:"bg-sidebar",children:t.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:s})})}),e[1]=s,e[2]=l):l=e[2],l}const Ws=Object.assign(ps,{Sidebar:xs,Content:js});export{Ws as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as t,cB as o}from"./index-
|
|
1
|
+
import{r as i,j as t,cB as o}from"./index-BpRy7AHp.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,f as p,av as u,j as s,aZ as x,N as a}from"./index-
|
|
1
|
+
import{c as f,f as p,av as u,j as s,aZ as x,N as a}from"./index-BpRy7AHp.js";import{C as j}from"./capability-load-error-C9mmbd-g.js";function d(){const t=f.c(19);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:r}=p(o),{capabilities:l,isPrivileged:m,loading:g,error:c}=u();if(g){let e;return t[1]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(x,{}),t[1]=e):e=t[1],e}if(c){let e;return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(j,{}),t[2]=e):e=t[2],e}const i=e=>m||l[e]===!0;if(i("org:manage")){let e;return t[3]!==r?(e=s.jsx(a,{to:"/$org/settings/general",params:{org:r},replace:!0}),t[3]=r,t[4]=e):e=t[4],e}if(i("ai-providers:manage")){let e;return t[5]!==r?(e=s.jsx(a,{to:"/$org/settings/ai-providers",params:{org:r},replace:!0}),t[5]=r,t[6]=e):e=t[6],e}if(i("secrets:manage")){let e;return t[7]!==r?(e=s.jsx(a,{to:"/$org/settings/secrets",params:{org:r},replace:!0}),t[7]=r,t[8]=e):e=t[8],e}if(i("file-configs:manage")){let e;return t[9]!==r?(e=s.jsx(a,{to:"/$org/settings/buckets",params:{org:r},replace:!0}),t[9]=r,t[10]=e):e=t[10],e}if(i("automations:manage")){let e;return t[11]!==r?(e=s.jsx(a,{to:"/$org/settings/automations",params:{org:r},replace:!0}),t[11]=r,t[12]=e):e=t[12],e}if(i("monitoring:view")){let e;return t[13]!==r?(e=s.jsx(a,{to:"/$org/settings/monitor",params:{org:r},replace:!0}),t[13]=r,t[14]=e):e=t[14],e}if(i("members:manage")){let e;return t[15]!==r?(e=s.jsx(a,{to:"/$org/settings/members",params:{org:r},replace:!0}),t[15]=r,t[16]=e):e=t[16],e}let n;return t[17]!==r?(n=s.jsx(a,{to:"/$org/settings/profile",params:{org:r},replace:!0}),t[17]=r,t[18]=n):n=t[18],n}export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,a5 as h,gX as d,j as g,N as m,af as p,a2 as j}from"./index-
|
|
1
|
+
import{c as f,a5 as h,gX as d,j as g,N as m,af as p,a2 as j}from"./index-BpRy7AHp.js";import{L as v}from"./legacy-main-redirect-C_4oCw1E.js";import"./thread-route-E0bMcc27.js";const x=j("/shell/$org/org-shell/");function L(){const t=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let e;t[0]!==i||t[1]!==a.slug||t[2]!==l||t[3]!==o?(e=d({org:a.slug,agentId:o,main:i,search:l}),t[0]=i,t[1]=a.slug,t[2]=l,t[3]=o,t[4]=e):e=t[4];const s=e;if(s?.kind==="canonical"){let r;return t[5]!==s?(r=g.jsx(v,{target:s}),t[5]=s,t[6]=r):r=t[6],r}}let n;t[7]!==o?(n=o?.trim()||null,t[7]=o,t[8]=n):n=t[8];const u=n;if(u){let e;t[9]!==a.slug||t[10]!==u?(e={org:a.slug,agentId:u},t[9]=a.slug,t[10]=u,t[11]=e):e=t[11];let s;t[12]!==l?(s={...l,virtualmcpid:void 0},t[12]=l,t[13]=s):s=t[13];let r;return t[14]!==e||t[15]!==s?(r=g.jsx(m,{to:p.projects,params:e,search:s,hash:!0,replace:!0}),t[14]=e,t[15]=s,t[16]=r):r=t[16],r}let c;return t[17]!==a.slug?(c=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),t[17]=a.slug,t[18]=c):c=t[18],c}function N(t){return{...t,virtualmcpid:void 0}}export{L as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ue,r as xe,d as ns,a5 as ht,b as Pe,j as t,B as je,t as dt,bx as Yt,ak as as,K as bt,i as Et,a6 as As,m as ot,gy as _s,o as cs,h as Ks,bB as Us,ac as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,bU as Js,h8 as Gs,T as Qs,W as Ys,I as Xt}from"./index-
|
|
1
|
+
import{c as ue,r as xe,d as ns,a5 as ht,b as Pe,j as t,B as je,t as dt,bx as Yt,ak as as,K as bt,i as Et,a6 as As,m as ot,gy as _s,o as cs,h as Ks,bB as Us,ac as Vs,L as qs,u as Hs,n as _t,E as Wt,R as Bs,bU as Js,h8 as Gs,T as Qs,W as Ys,I as Xt}from"./index-BpRy7AHp.js";import{S as Ws}from"./search-input-CqM9MiZ3.js";import{E as Ht}from"./empty-state-tlDzCEBe.js";import{R as Xs}from"./require-capability-BCUql2uo.js";import{f as js}from"./pair-D0R2UDgp.js";import{u as ts}from"./use-connection-CgY1E7FR.js";import{g as Ps}from"./connection-slug-BsU2LQiu.js";import{B as Lt}from"./badge-BLopTdJo.js";import{P as ds,a as ms,b as us}from"./popover-BrVMYzI-.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-jhiffORJ.js";import{F as fs,e as Ut,bX as el,aV as Ns,Y as tl}from"./agent-icon-AbOSM7KF.js";import{i as sl}from"./Key01-CJVeUDDi.js";import{i as ll}from"./Play-DWKJ4lP6.js";import{MonacoCodeEditor as bs}from"./monaco-editor-DtIoXdMD.js";import{u as rl}from"./use-mcp-client-CjLtJgTU.js";import{a as il}from"./repository-binding-DdmRVWpz.js";import{n as Ot}from"./LinkBroken01-Dhn_nIp2.js";import{c as ol}from"./SwitchHorizontal01-DedOEqGg.js";import{s as nl}from"./Plus-u00IxELx.js";import{s as al}from"./Trash01-t2BYg0st.js";import{M as zt}from"./multi-select-DailkN9Q.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-BqAgCf_e.js";import{e as ys,T as cl}from"./time-range-picker-DNs3LiZc.js";import{T as dl}from"./textarea-C8pP4RDC.js";import{C as Ds}from"./collection-tabs-C-fKyh8w.js";import{S as ml}from"./switch-DKx4qpl7.js";import{L as ul}from"./label-Bh2Pit2O.js";import{I as It}from"./integration-icon-FxF8FEU6.js";import{A as fl,a as xl,b as pl}from"./alert-hJJytfOJ.js";import{K as gt}from"./monitoring-stats-row-BSstVGMX.js";import{b as Bt}from"./use-entitlements-CMCBZq5_.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-DkwRzpXX.js";import{u as wl}from"./useSuspenseInfiniteQuery-6pYaPTkl.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-y4usetIj.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-Dq5I6aY7.js";import{n as ss,t as ls}from"./ChevronUp-aVrgoYI4.js";import{u as Os}from"./use-id-selection--cuaALt7.js";import{u as Fs}from"./use-infinite-scroll-BKVwA-Ob.js";import{u as Il}from"./useInfiniteQuery-4mlqNbEX.js";import{g as Tl}from"./task-status-D-bn6Q3b.js";import{u as kl,d as Ml}from"./use-automations-DD-H-0gg.js";import{A as _l}from"./automation-runs-_P-ch70z.js";import{i as Pl}from"./ArrowLeft-yZosAbEQ.js";import{E as Cs}from"./empty-state-BrKCVCOA.js";import{O as $s}from"./watch-sse-pool-DiT4THMV.js";import{t as Dl}from"./task-key-BCHdFiOO.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-Bk2YpEn9.js";import{F as $l}from"./feature-gate-DWILcK73.js";import"./SearchMd-DrxAIngK.js";import"./access-gate-CbFfEOdM.js";import"./capability-load-error-C9mmbd-g.js";import"./Tool01-BXFm5jK2.js";import"./collapsible-C4GX1H_R.js";import"./use-copy-DRW_V1kW.js";import"./usage-stats-DB51uKij.js";import"./tool-namespace-CCkkm2qA.js";import"./form-D2GmFQW3.js";import"./utils-CVEq3hMx.js";import"./markdown-j0gDnxTp.js";import"./chat-context-BFpdF0Ea.js";import"./autosend-xPyRMwmc.js";import"./thread-route-E0bMcc27.js";import"./use-project-scope-DK5Zq3Vj.js";import"./thread-intent-D7FGI3D0.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-sfkouqgF.js";import"./use-decopilot-events-BYlxYXUQ.js";import"./use-organization-settings-Cs5X07HH.js";import"./schema-CDmusrrq.js";import"./task-board-CWLsdAvC.js";import"./use-mobile-CKr6zvd6.js";import"./shell-layout-BHLD5jhn.js";import"./Globe04-Czvq6voU.js";import"./UserSquare-BloCTB27.js";import"./use-deployment-admin-Bw3ciRk9.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-CUME_VK2.js";import"./CheckCircle-DjUjDOFk.js";import"./Monitor01-BwW28bRE.js";import"./Zap-CmNmFUbX.js";import"./command-CYK5M8XI.js";import"./index-DQBul4yU.js";import"./project-icon-n7LBJrfx.js";import"./use-navigate-to-agent-BJsKVGd6.js";import"./use-debounced-value-B0a3uxKQ.js";import"./new-project-dialog-wz5dJWkC.js";import"./repository-picker-ClelLyeu.js";import"./github-icon-i7iUozqR.js";import"./collection-search-Dz7QHmOz.js";import"./ShoppingBag01-BOpj8wnX.js";import"./required-auth-layout-Lh-Wt6uK.js";import"./use-org-sso-DyxTDJHi.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-C3zml1pp.js";import"./types-CR7kvQl1.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./AlertCircle-1CFQF9HU.js";import"./use-mcp-prompts-JVEMCdnt.js";import"./use-thread-outputs-CIMyOC9i.js";import"./file-type-icon-C-QM854F.js";import"./index-lbygo01z.js";import"./ArrowUp-B_QEh9AM.js";import"./ChevronSelectorVertical-C2ySHatm.js";import"./CreditCard01-CMrZYrMd.js";import"./Minus-qjFidgiH.js";import"./Sun-CUTKbSf6.js";import"./Upload01-BBUgsLLD.js";import"./Users01-D0A6lP8t.js";import"./editor-BcXADR5b.js";import"./auth-D1oBKWc9.js";import"./checkbox-DDDKCgb5.js";import"./index-BdQq_4o_.js";import"./scroll-area-Ch8iXNIM.js";import"./calendar-8e1bW3QX.js";import"./chart-PfmlhR6m.js";import"./CategoricalChart-KK8jWPWD.js";import"./index-D_UeTS1-.js";import"./tooltipContext-BYQJi6EG.js";import"./CartesianChart-DOo-DPo8.js";import"./AreaChart-CUZD7bCb.js";import"./infiniteQueryObserver-D03R0ede.js";import"./useQueries-D-paqk_N.js";import"./ReferenceLine-DhlQLhxT.js";import"./feature-paywall-BOdJ7pc_.js";import"./plan-ladder-BWKx4tc-.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Is(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Kl(s){const e={},l={},i=[],m={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(m[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
|
|
4
4
|
|
package/dist/client/assets/{infiniteQueryObserver-D6uRpwx5.js → infiniteQueryObserver-D03R0ede.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{es as g,et as d,eu as v}from"./index-BpRy7AHp.js";var b=class extends g{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:u,isError:a,isRefetchError:P}=i,s=r.fetchMeta?.fetchMore?.direction,h=a&&s==="forward",o=c&&s==="forward",n=a&&s==="backward",f=c&&s==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,r.data),hasPreviousPage:d(t,r.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:f,isRefetchError:P&&!h&&!n,isRefetching:u&&!o&&!f}}};export{b as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as s,hZ as de,b as G,h_ as ue,r as le,h$ as xe,i0 as re,gy as T,gO as W,B as J,bB as V,a8 as pe}from"./index-Cm-moWa5.js";import{i as he}from"./CreditCard01-F1q7cqMP.js";import{B as L}from"./badge-BpuDiibz.js";import{M as je}from"./multi-select-FgNDnuDo.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-Bc6SUkDB.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-CDpozwVb.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-KHpxFlDw.js";import{T as De}from"./Tooltip-BY8JGJJH.js";import{a as _e,A as Me}from"./AreaChart-Co4_GDFk.js";import{c2 as Re}from"./CategoricalChart-DCWzRRkG.js";import{R as Le}from"./require-capability-CJKpnzPC.js";import"./checkbox-Dj1_p-oY.js";import"./Minus-CtT-IgpU.js";import"./ChevronUp-Dg02PCVC.js";import"./command-BO5QH15f.js";import"./index-BZnluLX8.js";import"./SearchMd-BM1-RWQF.js";import"./popover-DLErjFx_.js";import"./index-BdQq_4o_.js";import"./index-CZmp59DI.js";import"./index-DfAh0E81.js";import"./access-gate-BZysXSEP.js";import"./capability-load-error-DIv2eZlz.js";const Q=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),ne=["B","KB","MB","GB","TB","PB"];function oe(t){if(t<=0)return"0 B";const e=Math.min(ne.length-1,Math.floor(Math.log(t)/Math.log(1024))),n=t/1024**e;return`${n.toFixed(n>=100||e===0?0:1)} ${ne[e]}`}const X=50,$e="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",Fe=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function ce(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function ee(t){return ce(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function Ie(){const t=new Date;return Array.from({length:12},(e,n)=>{const l=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-n,1));return{value:l.toISOString().slice(0,10),label:l.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function Pe(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function ae(t){const e=k.c(30),{usage:n,metric:l,colorNum:o,formatValue:f,height:i}=t,a=`var(--chart-${o})`,d=`infra-billing-${l}`;let g;e[0]!==n?(g=n.map(Ae),e[0]=n,e[1]=g):g=e[1];const x=g;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b={left:0,right:4,top:8,bottom:0},e[2]=b):b=e[2];let r,p;e[3]!==a?(r=s.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:.25}),p=s.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:0}),e[3]=a,e[4]=r,e[5]=p):(r=e[4],p=e[5]);let h;e[6]!==d||e[7]!==r||e[8]!==p?(h=s.jsx("defs",{children:s.jsxs("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[r,p]})}),e[6]=d,e[7]=r,e[8]=p,e[9]=h):h=e[9];let u;e[10]!==f||e[11]!==i?(u=i>100&&s.jsxs(s.Fragment,{children:[s.jsx(ke,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Ue,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Ce,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:f,width:68})]}),e[10]=f,e[11]=i,e[12]=u):u=e[12];let B,v;e[13]===Symbol.for("react.memo_cache_sentinel")?(B={stroke:"var(--border)",strokeDasharray:"4 4"},v={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=B,e[14]=v):(B=e[13],v=e[14]);let j;e[15]!==f?(j=s.jsx(De,{cursor:B,contentStyle:v,formatter:C=>f(Number(C)||0)}),e[15]=f,e[16]=j):j=e[16];const y=`url(#${d})`;let N;e[17]!==a||e[18]!==l||e[19]!==y?(N=s.jsx(_e,{type:"linear",dataKey:l,stroke:a,strokeWidth:2,fill:y,dot:!1}),e[17]=a,e[18]=l,e[19]=y,e[20]=N):N=e[20];let m;e[21]!==x||e[22]!==N||e[23]!==h||e[24]!==u||e[25]!==j?(m=s.jsxs(Me,{data:x,margin:b,children:[h,u,j,N]}),e[21]=x,e[22]=N,e[23]=h,e[24]=u,e[25]=j,e[26]=m):m=e[26];let S;return e[27]!==i||e[28]!==m?(S=s.jsx(Re,{width:"100%",height:i,children:m}),e[27]=i,e[28]=m,e[29]=S):S=e[29],S}function Ae(t){return{...t,label:Pe(t.date)}}function Z(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=G(),{sites:n,isLoading:l}=ue(),[o,f]=le.useState(null),i=Ie(),[a,d]=le.useState(i[0].value);let g;t[0]!==o||t[1]!==n?(g=o??n.slice(0,X),t[0]=o,t[1]=n,t[2]=g):g=t[2];const x=g,b=!o&&n.length>X,{data:r,isLoading:p}=xe(x,a),h=re();if(l){let c;return t[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(V,{className:"h-64 w-full"}),t[3]=c):c=t[3],c}if(n.length===0){let c;t[4]!==e?(c=e("settings.infraBilling.noSites"),t[4]=e,t[5]=c):c=t[5];let w;return t[6]!==c?(w=s.jsx(T,{className:"p-6 text-sm text-muted-foreground",children:c}),t[6]=c,t[7]=w):w=t[7],w}const u=r?.usage??[],B=r?.pageviewsAvailable??!1,v=!!r&&!r.usageUnavailable,j=(c,w)=>v?w(Z(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(Z(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ze)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:j("dataTransferBytes",oe)}],N=qe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const Y=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(Y.length>0?1:0)>1,K=Z(u,"pageviews"),se=K>0?Z(u,"requests")/K:0,me=B&&v&&K>0?se.toFixed(se<10?1:0):"—";let I;t[12]!==r?.billingUnavailable||t[13]!==U||t[14]!==e||t[15]!==S.length?(I=r?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):S.length>1?e("settings.infraBilling.multipleTeams",{count:String(S.length)}):U?fe(U,e):e("settings.infraBilling.noTeam"),t[12]=r?.billingUnavailable,t[13]=U,t[14]=e,t[15]=S.length,t[16]=I):I=t[16];const ge=I;let _;t[17]!==n?(_=n.map(Oe),t[17]=n,t[18]=_):_=t[18];let M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let O;t[33]!==e||t[34]!==b?(O=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=O):O=t[35];let q;return t[36]!==r?.usageUnavailable||t[37]!==e?(q=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=q):q=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,O,q,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(W,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(L,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(W,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(W,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(Ge,{team:c,showSites:te},c.siteSlugs.join(","))),Y.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:Y.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(T,{size:"flush",children:s.jsx(V,{className:"m-4 h-24"})})})})]})]})}function ze(t){return s.jsx(Be,{value:t.value,children:t.label},t.value)}function Oe(t){return{label:t,value:t}}function qe(t){return t==="dataTransferBytes"?oe:Ve}function Ve(t){return Q.format(t)}function Ze(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ge(t){const e=k.c(13),{team:n,showSites:l}=t,o=G(),f=re(),i=n.billing;let a;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==o||e[4]!==n.siteSlugs?(a=l&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:n.siteSlugs.join(", ")}),i&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(L,{variant:i.planType==="free"?"secondary":"success",children:o(`settings.infraBilling.plan.${i.planType}`)}),i.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:o("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:ee(i.nextBillingDate)})]}),i.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:f.isPending,onClick:()=>f.mutate(n.siteSlugs),children:o("settings.infraBilling.manageButton")})]})]}),e[0]=i,e[1]=f,e[2]=l,e[3]=o,e[4]=n.siteSlugs,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==o||e[8]!==n?(d=i?i.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:o("settings.infraBilling.noInvoices")}):s.jsx(Ye,{invoices:i.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:fe(n,o)}),e[6]=i,e[7]=o,e[8]=n,e[9]=d):d=e[9];let g;return e[10]!==a||e[11]!==d?(g=s.jsxs(T,{size:"flush",className:"gap-0 overflow-x-auto",children:[a,d]}),e[10]=a,e[11]=d,e[12]=g):g=e[12],g}function Ye(t){const e=k.c(40),{invoices:n}=t,l=G();let o;e[0]!==n?(o=n.some(Ke),e[0]=n,e[1]=o):o=e[1];const f=o;let i;e[2]!==l?(i=l("settings.infraBilling.invoiceReference"),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==i?(a=s.jsx($,{children:i}),e[4]=i,e[5]=a):a=e[5];let d;e[6]!==l?(d=l("settings.infraBilling.invoiceDue"),e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=s.jsx($,{children:d}),e[8]=d,e[9]=g):g=e[9];let x;e[10]!==l?(x=l("settings.infraBilling.invoiceAmount"),e[10]=l,e[11]=x):x=e[11];let b;e[12]!==x?(b=s.jsx($,{children:x}),e[12]=x,e[13]=b):b=e[13];let r;e[14]!==l?(r=l("settings.infraBilling.invoiceStatus"),e[14]=l,e[15]=r):r=e[15];let p;e[16]!==r?(p=s.jsx($,{children:r}),e[16]=r,e[17]=p):p=e[17];let h;e[18]!==l?(h=l("settings.infraBilling.invoiceDocuments"),e[18]=l,e[19]=h):h=e[19];let u;e[20]!==h?(u=s.jsx($,{children:h}),e[20]=h,e[21]=u):u=e[21];let B;e[22]!==u||e[23]!==a||e[24]!==g||e[25]!==b||e[26]!==p?(B=s.jsx(ye,{children:s.jsxs(ie,{children:[a,g,b,p,u]})}),e[22]=u,e[23]=a,e[24]=g,e[25]=b,e[26]=p,e[27]=B):B=e[27];let v;if(e[28]!==n||e[29]!==l||e[30]!==f){let N;e[32]!==l||e[33]!==f?(N=m=>s.jsxs(ie,{children:[s.jsx(F,{children:m.referenceMonth?ce(m.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(F,{children:m.dueDate?ee(m.dueDate):"—"}),s.jsx(F,{className:"tabular-nums",children:Fe.format(m.value)}),s.jsx(F,{children:s.jsx(We,{status:m.status})}),s.jsxs(F,{className:"flex gap-2",children:[m.nfUrl&&s.jsx(H,{href:m.nfUrl,label:l("settings.infraBilling.invoiceNf")}),m.bankSlipUrl&&s.jsx(H,{href:m.bankSlipUrl,label:l("settings.infraBilling.invoiceBankSlip")}),!m.bankSlipUrl&&!f&&m.nfUrl&&s.jsx(H,{href:$e,label:l("settings.infraBilling.invoiceBankTransfer")}),!m.nfUrl&&!m.bankSlipUrl&&"—"]})]},m.id),e[32]=l,e[33]=f,e[34]=N):N=e[34],v=n.map(N),e[28]=n,e[29]=l,e[30]=f,e[31]=v}else v=e[31];let j;e[35]!==v?(j=s.jsx(Te,{children:v}),e[35]=v,e[36]=j):j=e[36];let y;return e[37]!==B||e[38]!==j?(y=s.jsxs(we,{children:[B,j]}),e[37]=B,e[38]=j,e[39]=y):y=e[39],y}function Ke(t){return!!t.bankSlipUrl}function H(t){const e=k.c(4),{href:n,label:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{size:14}),e[0]=o):o=e[0];let f;return e[1]!==n||e[2]!==l?(f=s.jsx(J,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[o,l]})}),e[1]=n,e[2]=l,e[3]=f):f=e[3],f}function We(t){const e=k.c(14),{status:n}=t,l=G(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(L,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(L,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(L,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(L,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function vt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Le,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{vt as default};
|
|
1
|
+
import{c as k,j as s,hZ as de,b as G,h_ as ue,r as le,h$ as xe,i0 as re,gy as T,gO as W,B as J,bB as V,a8 as pe}from"./index-BpRy7AHp.js";import{i as he}from"./CreditCard01-CMrZYrMd.js";import{B as L}from"./badge-BLopTdJo.js";import{M as je}from"./multi-select-DailkN9Q.js";import{S as be,d as ve,c as Be,a as Ne,b as Se}from"./select-BqAgCf_e.js";import{T as $,a as ye,b as ie,c as F,d as Te,e as we}from"./table-Dq5I6aY7.js";import{C as ke,X as Ue,Y as Ce}from"./CartesianChart-DOo-DPo8.js";import{T as De}from"./Tooltip-DhVaIgPv.js";import{a as _e,A as Me}from"./AreaChart-CUZD7bCb.js";import{c2 as Re}from"./CategoricalChart-KK8jWPWD.js";import{R as Le}from"./require-capability-BCUql2uo.js";import"./checkbox-DDDKCgb5.js";import"./Minus-qjFidgiH.js";import"./ChevronUp-aVrgoYI4.js";import"./command-CYK5M8XI.js";import"./index-DQBul4yU.js";import"./SearchMd-DrxAIngK.js";import"./popover-BrVMYzI-.js";import"./index-BdQq_4o_.js";import"./index-lbygo01z.js";import"./index-D_UeTS1-.js";import"./access-gate-CbFfEOdM.js";import"./capability-load-error-C9mmbd-g.js";const Q=new Intl.NumberFormat(void 0,{notation:"compact",maximumFractionDigits:1}),ne=["B","KB","MB","GB","TB","PB"];function oe(t){if(t<=0)return"0 B";const e=Math.min(ne.length-1,Math.floor(Math.log(t)/Math.log(1024))),n=t/1024**e;return`${n.toFixed(n>=100||e===0?0:1)} ${ne[e]}`}const X=50,$e="https://assets.decocache.com/decocms/45f9e905-046b-4aeb-8420-0377a7d0d041/deco_Transferencia.pdf",Fe=new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"});function ce(t){return new Date(`${t.slice(0,10)}T00:00:00Z`)}function ee(t){return ce(t).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric",timeZone:"UTC"})}function Ie(){const t=new Date;return Array.from({length:12},(e,n)=>{const l=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth()-n,1));return{value:l.toISOString().slice(0,10),label:l.toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"})}})}function Pe(t){return new Date(`${t}T00:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})}function ae(t){const e=k.c(30),{usage:n,metric:l,colorNum:o,formatValue:f,height:i}=t,a=`var(--chart-${o})`,d=`infra-billing-${l}`;let g;e[0]!==n?(g=n.map(Ae),e[0]=n,e[1]=g):g=e[1];const x=g;let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b={left:0,right:4,top:8,bottom:0},e[2]=b):b=e[2];let r,p;e[3]!==a?(r=s.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:.25}),p=s.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:0}),e[3]=a,e[4]=r,e[5]=p):(r=e[4],p=e[5]);let h;e[6]!==d||e[7]!==r||e[8]!==p?(h=s.jsx("defs",{children:s.jsxs("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[r,p]})}),e[6]=d,e[7]=r,e[8]=p,e[9]=h):h=e[9];let u;e[10]!==f||e[11]!==i?(u=i>100&&s.jsxs(s.Fragment,{children:[s.jsx(ke,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(Ue,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},interval:"preserveStartEnd",tickMargin:8}),s.jsx(Ce,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)"},tickFormatter:f,width:68})]}),e[10]=f,e[11]=i,e[12]=u):u=e[12];let B,v;e[13]===Symbol.for("react.memo_cache_sentinel")?(B={stroke:"var(--border)",strokeDasharray:"4 4"},v={background:"var(--background)",border:"1px solid var(--border)",borderRadius:8,fontSize:12},e[13]=B,e[14]=v):(B=e[13],v=e[14]);let j;e[15]!==f?(j=s.jsx(De,{cursor:B,contentStyle:v,formatter:C=>f(Number(C)||0)}),e[15]=f,e[16]=j):j=e[16];const y=`url(#${d})`;let N;e[17]!==a||e[18]!==l||e[19]!==y?(N=s.jsx(_e,{type:"linear",dataKey:l,stroke:a,strokeWidth:2,fill:y,dot:!1}),e[17]=a,e[18]=l,e[19]=y,e[20]=N):N=e[20];let m;e[21]!==x||e[22]!==N||e[23]!==h||e[24]!==u||e[25]!==j?(m=s.jsxs(Me,{data:x,margin:b,children:[h,u,j,N]}),e[21]=x,e[22]=N,e[23]=h,e[24]=u,e[25]=j,e[26]=m):m=e[26];let S;return e[27]!==i||e[28]!==m?(S=s.jsx(Re,{width:"100%",height:i,children:m}),e[27]=i,e[28]=m,e[29]=S):S=e[29],S}function Ae(t){return{...t,label:Pe(t.date)}}function Z(t,e){return t.reduce((n,l)=>n+l[e],0)}function Ee(){const t=k.c(39),e=G(),{sites:n,isLoading:l}=ue(),[o,f]=le.useState(null),i=Ie(),[a,d]=le.useState(i[0].value);let g;t[0]!==o||t[1]!==n?(g=o??n.slice(0,X),t[0]=o,t[1]=n,t[2]=g):g=t[2];const x=g,b=!o&&n.length>X,{data:r,isLoading:p}=xe(x,a),h=re();if(l){let c;return t[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(V,{className:"h-64 w-full"}),t[3]=c):c=t[3],c}if(n.length===0){let c;t[4]!==e?(c=e("settings.infraBilling.noSites"),t[4]=e,t[5]=c):c=t[5];let w;return t[6]!==c?(w=s.jsx(T,{className:"p-6 text-sm text-muted-foreground",children:c}),t[6]=c,t[7]=w):w=t[7],w}const u=r?.usage??[],B=r?.pageviewsAvailable??!1,v=!!r&&!r.usageUnavailable,j=(c,w)=>v?w(Z(u,c)):"—",y=[{key:"pageviews",title:e("settings.infraBilling.pageviews"),description:e("settings.infraBilling.pageviewsDescription"),colorNum:1,total:B&&v?Q.format(Z(u,"pageviews")):"—"},{key:"requests",title:e("settings.infraBilling.requests"),description:e("settings.infraBilling.requestsDescription"),colorNum:2,total:j("requests",Ze)},{key:"dataTransferBytes",title:e("settings.infraBilling.dataTransfer"),description:e("settings.infraBilling.dataTransferDescription"),colorNum:3,total:j("dataTransferBytes",oe)}],N=qe;let m;t[8]!==r?.teams?(m=r?.teams??[],t[8]=r?.teams,t[9]=m):m=t[9];const S=m;let C;t[10]!==r?.siteSlugsWithoutTeam?(C=r?.siteSlugsWithoutTeam??[],t[10]=r?.siteSlugsWithoutTeam,t[11]=C):C=t[11];const Y=C,U=S.length===1?S[0]:void 0,D=U?.billing??null,te=S.length+(Y.length>0?1:0)>1,K=Z(u,"pageviews"),se=K>0?Z(u,"requests")/K:0,me=B&&v&&K>0?se.toFixed(se<10?1:0):"—";let I;t[12]!==r?.billingUnavailable||t[13]!==U||t[14]!==e||t[15]!==S.length?(I=r?.billingUnavailable?e("settings.infraBilling.billingUnavailable"):S.length>1?e("settings.infraBilling.multipleTeams",{count:String(S.length)}):U?fe(U,e):e("settings.infraBilling.noTeam"),t[12]=r?.billingUnavailable,t[13]=U,t[14]=e,t[15]=S.length,t[16]=I):I=t[16];const ge=I;let _;t[17]!==n?(_=n.map(Oe),t[17]=n,t[18]=_):_=t[18];let M;t[19]!==e?(M=e("settings.infraBilling.siteLabel"),t[19]=e,t[20]=M):M=t[20];let P;t[21]!==x||t[22]!==_||t[23]!==M?(P=s.jsx(je,{className:"w-auto min-w-56 max-w-full",options:_,defaultValue:x,maxCount:2,placeholder:M,onValueChange:f}),t[21]=x,t[22]=_,t[23]=M,t[24]=P):P=t[24];let R;t[25]!==e?(R=e("settings.infraBilling.monthLabel"),t[25]=e,t[26]=R):R=t[26];let A;t[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ne,{}),t[27]=A):A=t[27];let E;t[28]!==R?(E=s.jsx(Se,{className:"w-48","aria-label":R,children:A}),t[28]=R,t[29]=E):E=t[29];let z;t[30]!==x.length||t[31]!==e?(z=x.length===0&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.pickASite")}),t[30]=x.length,t[31]=e,t[32]=z):z=t[32];let O;t[33]!==e||t[34]!==b?(O=b&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.tooManySites",{count:String(X)})}),t[33]=e,t[34]=b,t[35]=O):O=t[35];let q;return t[36]!==r?.usageUnavailable||t[37]!==e?(q=r?.usageUnavailable&&s.jsx(T,{className:"mx-4 p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.warehouseUnavailable")}),t[36]=r?.usageUnavailable,t[37]=e,t[38]=q):q=t[38],s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-4",children:[P,s.jsxs(be,{value:a,onValueChange:d,children:[E,s.jsx(ve,{children:i.map(ze)})]})]}),z,O,q,x.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(W,{title:e("settings.infraBilling.summaryTitle"),children:s.jsxs("div",{className:"flex flex-col lg:flex-row gap-4 px-4",children:[s.jsxs(T,{className:"flex-1 flex flex-col gap-4 p-4",children:[s.jsxs("div",{className:"flex items-center justify-between gap-2",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(he,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:e("settings.infraBilling.detailsTitle")})]}),U&&D?.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:h.isPending,onClick:()=>h.mutate(U.siteSlugs),children:e("settings.infraBilling.manageButton")})]}),s.jsxs("div",{className:"flex flex-col gap-2 text-sm",children:[D?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.currentPlan")}),p?s.jsx(V,{className:"h-5 w-16"}):s.jsx(L,{variant:D.planType==="free"?"secondary":"success",children:e(`settings.infraBilling.plan.${D.planType}`)})]}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:D.nextBillingDate?ee(D.nextBillingDate):"—"})]})]}):!p&&s.jsx("p",{className:"text-xs text-muted-foreground",children:ge}),s.jsxs("div",{className:"flex justify-between gap-3",children:[s.jsx("span",{className:"text-muted-foreground",children:e("settings.infraBilling.requestsPerPageview")}),s.jsx("span",{className:"font-medium tabular-nums",children:me})]})]})]}),y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-2 p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:i.find(w=>w.value===a)?.label})]}),p?s.jsx(V,{className:"h-8 w-24"}):s.jsx("span",{className:"text-2xl font-semibold tabular-nums",children:c.total}),s.jsx("div",{className:"-mx-2",children:s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:64})})]},c.key))]})}),s.jsx(W,{title:e("settings.infraBilling.metricsTitle"),children:s.jsx("div",{className:"flex flex-col xl:flex-row gap-4 px-4",children:y.map(c=>s.jsxs(T,{className:"flex-1 flex flex-col gap-3 p-4",children:[s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-sm font-medium",children:c.title}),s.jsx("span",{className:"text-xs text-muted-foreground",children:c.description})]}),s.jsx(ae,{usage:u,metric:c.key,colorNum:c.colorNum,formatValue:N(c.key),height:220})]},c.key))})}),s.jsx(W,{title:e("settings.infraBilling.invoicesTitle"),children:s.jsx("div",{className:"flex flex-col gap-4 px-4",children:r?r.billingUnavailable?s.jsx(T,{className:"p-4 text-sm text-muted-foreground",children:e("settings.infraBilling.billingUnavailable")}):s.jsxs(s.Fragment,{children:[S.map(c=>s.jsx(Ge,{team:c,showSites:te},c.siteSlugs.join(","))),Y.length>0&&s.jsxs(T,{className:"flex flex-col gap-1 p-4",children:[te&&s.jsx("span",{className:"text-sm font-medium",children:Y.join(", ")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:e("settings.infraBilling.noTeam")})]})]}):s.jsx(T,{size:"flush",children:s.jsx(V,{className:"m-4 h-24"})})})})]})]})}function ze(t){return s.jsx(Be,{value:t.value,children:t.label},t.value)}function Oe(t){return{label:t,value:t}}function qe(t){return t==="dataTransferBytes"?oe:Ve}function Ve(t){return Q.format(t)}function Ze(t){return Q.format(t)}function fe(t,e){return t.unavailableReason==="partial_team"?e("settings.infraBilling.partialTeam"):e("settings.infraBilling.billingUnavailable")}function Ge(t){const e=k.c(13),{team:n,showSites:l}=t,o=G(),f=re(),i=n.billing;let a;e[0]!==i||e[1]!==f||e[2]!==l||e[3]!==o||e[4]!==n.siteSlugs?(a=l&&s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 border-b border-border p-4",children:[s.jsx("span",{className:"text-sm font-medium",children:n.siteSlugs.join(", ")}),i&&s.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-sm",children:[s.jsx(L,{variant:i.planType==="free"?"secondary":"success",children:o(`settings.infraBilling.plan.${i.planType}`)}),i.nextBillingDate&&s.jsxs("span",{className:"flex gap-1.5",children:[s.jsx("span",{className:"text-muted-foreground",children:o("settings.infraBilling.nextBilling")}),s.jsx("span",{className:"font-medium tabular-nums",children:ee(i.nextBillingDate)})]}),i.canManageSubscription&&s.jsx(J,{variant:"outline",size:"sm",disabled:f.isPending,onClick:()=>f.mutate(n.siteSlugs),children:o("settings.infraBilling.manageButton")})]})]}),e[0]=i,e[1]=f,e[2]=l,e[3]=o,e[4]=n.siteSlugs,e[5]=a):a=e[5];let d;e[6]!==i||e[7]!==o||e[8]!==n?(d=i?i.invoices.length===0?s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:o("settings.infraBilling.noInvoices")}):s.jsx(Ye,{invoices:i.invoices}):s.jsx("p",{className:"p-4 text-sm text-muted-foreground",children:fe(n,o)}),e[6]=i,e[7]=o,e[8]=n,e[9]=d):d=e[9];let g;return e[10]!==a||e[11]!==d?(g=s.jsxs(T,{size:"flush",className:"gap-0 overflow-x-auto",children:[a,d]}),e[10]=a,e[11]=d,e[12]=g):g=e[12],g}function Ye(t){const e=k.c(40),{invoices:n}=t,l=G();let o;e[0]!==n?(o=n.some(Ke),e[0]=n,e[1]=o):o=e[1];const f=o;let i;e[2]!==l?(i=l("settings.infraBilling.invoiceReference"),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==i?(a=s.jsx($,{children:i}),e[4]=i,e[5]=a):a=e[5];let d;e[6]!==l?(d=l("settings.infraBilling.invoiceDue"),e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=s.jsx($,{children:d}),e[8]=d,e[9]=g):g=e[9];let x;e[10]!==l?(x=l("settings.infraBilling.invoiceAmount"),e[10]=l,e[11]=x):x=e[11];let b;e[12]!==x?(b=s.jsx($,{children:x}),e[12]=x,e[13]=b):b=e[13];let r;e[14]!==l?(r=l("settings.infraBilling.invoiceStatus"),e[14]=l,e[15]=r):r=e[15];let p;e[16]!==r?(p=s.jsx($,{children:r}),e[16]=r,e[17]=p):p=e[17];let h;e[18]!==l?(h=l("settings.infraBilling.invoiceDocuments"),e[18]=l,e[19]=h):h=e[19];let u;e[20]!==h?(u=s.jsx($,{children:h}),e[20]=h,e[21]=u):u=e[21];let B;e[22]!==u||e[23]!==a||e[24]!==g||e[25]!==b||e[26]!==p?(B=s.jsx(ye,{children:s.jsxs(ie,{children:[a,g,b,p,u]})}),e[22]=u,e[23]=a,e[24]=g,e[25]=b,e[26]=p,e[27]=B):B=e[27];let v;if(e[28]!==n||e[29]!==l||e[30]!==f){let N;e[32]!==l||e[33]!==f?(N=m=>s.jsxs(ie,{children:[s.jsx(F,{children:m.referenceMonth?ce(m.referenceMonth).toLocaleDateString(void 0,{month:"long",year:"numeric",timeZone:"UTC"}):"—"}),s.jsx(F,{children:m.dueDate?ee(m.dueDate):"—"}),s.jsx(F,{className:"tabular-nums",children:Fe.format(m.value)}),s.jsx(F,{children:s.jsx(We,{status:m.status})}),s.jsxs(F,{className:"flex gap-2",children:[m.nfUrl&&s.jsx(H,{href:m.nfUrl,label:l("settings.infraBilling.invoiceNf")}),m.bankSlipUrl&&s.jsx(H,{href:m.bankSlipUrl,label:l("settings.infraBilling.invoiceBankSlip")}),!m.bankSlipUrl&&!f&&m.nfUrl&&s.jsx(H,{href:$e,label:l("settings.infraBilling.invoiceBankTransfer")}),!m.nfUrl&&!m.bankSlipUrl&&"—"]})]},m.id),e[32]=l,e[33]=f,e[34]=N):N=e[34],v=n.map(N),e[28]=n,e[29]=l,e[30]=f,e[31]=v}else v=e[31];let j;e[35]!==v?(j=s.jsx(Te,{children:v}),e[35]=v,e[36]=j):j=e[36];let y;return e[37]!==B||e[38]!==j?(y=s.jsxs(we,{children:[B,j]}),e[37]=B,e[38]=j,e[39]=y):y=e[39],y}function Ke(t){return!!t.bankSlipUrl}function H(t){const e=k.c(4),{href:n,label:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pe,{size:14}),e[0]=o):o=e[0];let f;return e[1]!==n||e[2]!==l?(f=s.jsx(J,{variant:"outline",size:"sm",asChild:!0,children:s.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",children:[o,l]})}),e[1]=n,e[2]=l,e[3]=f):f=e[3],f}function We(t){const e=k.c(14),{status:n}=t,l=G(),o=n.toLowerCase();if(o==="paid"){let i;e[0]!==l?(i=l("settings.infraBilling.statusPaid"),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==i?(a=s.jsx(L,{variant:"success",children:i}),e[2]=i,e[3]=a):a=e[3],a}if(o==="overdue"){let i;e[4]!==l?(i=l("settings.infraBilling.statusOverdue"),e[4]=l,e[5]=i):i=e[5];let a;return e[6]!==i?(a=s.jsx(L,{variant:"destructive",children:i}),e[6]=i,e[7]=a):a=e[7],a}if(o==="registered"){let i;e[8]!==l?(i=l("settings.infraBilling.statusPending"),e[8]=l,e[9]=i):i=e[9];let a;return e[10]!==i?(a=s.jsx(L,{variant:"warning",children:i}),e[10]=i,e[11]=a):a=e[11],a}let f;return e[12]!==n?(f=s.jsx(L,{variant:"secondary",children:n}),e[12]=n,e[13]=f):f=e[13],f}function Xe(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(de,{group:"billing",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}function vt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Le,{capability:"members:manage",area:"billing",children:s.jsx(Xe,{})}),t[0]=e):e=t[0],e}export{vt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,r as C,b as Z,j as h,t as A,a6 as ye,x as xe,aT as ke,w as we,B as be,v as Pe,D as Ce,q as le,a5 as ce,K as Y,E as Q,gb as ue,gc as re,gd as z,m as _e}from"./index-Cm-moWa5.js";import{S as de,s as Se}from"./suggestion-CyNVbkov.js";import{l as Fe,n as De,o as Ie,k as B,p as je,P as ne,q as ve,c as Me,u as Re,r as Le,j as Ee,f as Ae,F as Ne,s as Te,b as Qe}from"./usage-stats-32tsZUXd.js";import{aZ as Oe}from"./agent-icon-CRaK_2eb.js";import"./chat-context-O7Uim5zw.js";import{m as Ue,i as $e,b as qe}from"./index-DDHS6uH4.js";import{u as me}from"./use-mcp-client-BkZUf1G1.js";import{a as Ke}from"./repository-binding-B7kVJGqt.js";import{g as se,s as fe}from"./tool-namespace-B7QKcZjk.js";import{l as oe,g as pe}from"./use-mcp-prompts-ogj31Wyv.js";import{f as ze,b as Be}from"./use-org-fs-DSsFMzTw.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=qe(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),A.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=Z(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,S)=>Je(d,b,S,(_,j)=>l.current(_,j)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const S=Array.from(F).filter(We);return S.length===0?!1:(b.preventDefault(),(async()=>{let _=d.state.selection.from;for(const j of S){const I=j.getAsFile();I&&(await l.current?.(I,_),_=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=Z(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const S=r?.modelName??"";let _;e[19]!==i||e[20]!==S?(_=i("chat.uploader.accepts",{modelName:S}),e[19]=i,e[20]=S,e[21]=_):_=e[21];let j;e[22]!==_?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:_}),e[22]=_,e[23]=j):j=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Oe,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const R=r?.accepted;let D;e[25]!==R?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:R})]}),e[25]=R,e[26]=D):D=e[26];let a;e[27]!==j||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[j,D]})}),e[27]=j,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let 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 Ze=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=Z(),l=le(),{org:c}=ce(),g=Ke();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),S=C.useRef(null),_=C.useRef(!1),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,e[12]=I):I=e[12];const R=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let P;e[22]!==o?(P=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=P):P=e[23];let M;e[24]!==P||e[25]!==x?(M={name:"resources",title:x,description:P,kind:"category",drillable:!0},e[24]=P,e[25]=x,e[26]=M):M=e[26];let v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const $=v;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:K}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(_.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,K,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,K,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),A.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const q=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,K=F();if(K==="categories"){if(!w.trim())return $;const L=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(L)||N.description?.toLowerCase().includes(L))).map(Ge),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(L)||te.name?.toLowerCase().includes(L)||te.description?.toLowerCase().includes(L)).map(et)})();return[...E,...X]}if(K==="agents"){let L=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();L=L.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return L.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const L=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(L)||E.name?.toLowerCase().includes(L)||E.description?.toLowerCase().includes(L))}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 G=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)S.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=S.current;Q("chat_picker_closed",{picker:"@",outcome:_.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),S.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==G||e[46]!==q||e[47]!==ee||e[48]!==R?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:R,queryFn:G,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=G,e[46]=q,e[47]=ee,e[48]=R,e[49]=V):V=e[49],V};function Ge(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=Z(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=je(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(P=>P.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),A.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),S=C.useRef(!1),_=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),S.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},j=async a=>{if(!p||!l)return;const{range:f,item:x}=p,P=se(x._meta);await ie(t,f,l,x.name,P,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!ve(t,u.pos,u.promptId)){A.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),A.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},R=async a=>{const{query:f}=a;if(!l)return[];const[x,P,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),v=f.trim().toLowerCase(),$=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...q]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:R,onSelect:_,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:S.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:j}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),Se.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),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=Re({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return 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(Le.Provider,{value:{editor:n},children:c})}function _t(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ee();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let S;e[3]!==k||e[4]!==b||e[5]!==F?(S=_e("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=S):S=e[6];let _;e[7]!==n||e[8]!==S?(_=h.jsx(Qe,{editor:n,className:S}),e[7]=n,e[8]=S,e[9]=_):_=e[9];const j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,e[13]=I):I=e[13];const R=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==R?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ze,{editor:n,virtualMcpId:R,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=R,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ve,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==_?(f=h.jsxs(h.Fragment,{children:[_,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=_,e[28]=f):f=e[28],f}export{Ct as T,bt as U,_t as a,He as p,Pt as u};
|
|
1
|
+
import{c as H,r as C,b as Z,j as h,t as A,a6 as ye,x as xe,aT as ke,w as we,B as be,v as Pe,D as Ce,q as le,a5 as ce,K as Y,E as Q,gb as ue,gc as re,gd as z,m as _e}from"./index-BpRy7AHp.js";import{S as de,s as Se}from"./suggestion-BiaV3mvJ.js";import{l as Fe,n as De,o as Ie,k as B,p as je,P as ne,q as ve,c as Me,u as Re,r as Le,j as Ee,f as Ae,F as Ne,s as Te,b as Qe}from"./usage-stats-DB51uKij.js";import{aZ as Oe}from"./agent-icon-AbOSM7KF.js";import"./chat-context-BFpdF0Ea.js";import{m as Ue,i as $e,b as qe}from"./index-DPD9OENi.js";import{u as me}from"./use-mcp-client-CjLtJgTU.js";import{a as Ke}from"./repository-binding-DdmRVWpz.js";import{g as se,s as fe}from"./tool-namespace-CCkkm2qA.js";import{l as oe,g as pe}from"./use-mcp-prompts-JVEMCdnt.js";import{f as ze,b as Be}from"./use-org-fs-DDhNsbr6.js";async function He(t,e,r,s,i,o){if(!Ue(e)){A.error("Selected model does not support file uploads");return}const l=r.type||"application/octet-stream";if(!$e(l,e)){const g=qe(e).parts.map(m=>o(m)).join(", "),k=e?.title??"This model";i?i({fileName:r.name,modelName:k,accepted:g}):A.error(`"${r.name}" can't be attached`,{description:`${k} accepts ${g}.`});return}const c=10*1024*1024;if(r.size>c){A.error(`File "${r.name}" exceeds 10MB limit`);return}try{const g=new FileReader,k=new Promise((n,u)=>{g.onload=()=>{const d=g.result;if(typeof d!="string"){u(new Error("Failed to read file as data URL"));return}const b=d.includes(",")?d.split(",")[1]??d:d;n(b)},g.onerror=u});g.readAsDataURL(r);const m=await k,p={id:crypto.randomUUID(),name:r.name,mimeType:r.type||"application/octet-stream",size:r.size,data:m};Fe(t,{from:s,to:s},p)}catch(g){console.error("Failed to process file:",g),A.error(`Failed to load file "${r.name}"`)}}function Je(t,e,r,s){if(r)return!1;const i=e.dataTransfer?.files;if(!i||i.length===0)return!1;const o=t.posAtCoords({left:e.clientX,top:e.clientY});if(!o)return!1;e.preventDefault();const l=Array.from(i);return(async()=>{let c=o.pos;for(const g of l)await s(g,c),c=t.state.selection.to})(),!0}function Ve(t){const e=H.c(9),{editor:r,selectedModel:s,onUnsupportedFile:i}=t,o=Z(),l=C.useRef(Xe);let c,g;e[0]!==r||e[1]!==i||e[2]!==s||e[3]!==o?(c=()=>{l.current=async(p,n)=>{await He(r,s,p,n,i,o)}},g=[r,s,i,o],e[0]=r,e[1]=i,e[2]=s,e[3]=o,e[4]=c,e[5]=g):(c=e[4],g=e[5]),C.useEffect(c,g);let k,m;return e[6]!==r?(k=()=>{if(r?.isDestroyed)return;const p=new De("fileDropHandler");r.state.plugins.find(d=>d.spec.key===p)&&r.unregisterPlugin(p);const u=new Ie({key:p,props:{handleDrop:(d,b,F,S)=>Je(d,b,S,(_,j)=>l.current(_,j)),handlePaste:(d,b)=>{const F=b.clipboardData?.items;if(!F)return!1;const S=Array.from(F).filter(We);return S.length===0?!1:(b.preventDefault(),(async()=>{let _=d.state.selection.from;for(const j of S){const I=j.getAsFile();I&&(await l.current?.(I,_),_=d.state.selection.to)}})(),!0)}}});return r.registerPlugin(u),()=>{r?.isDestroyed||r.unregisterPlugin(p)}},m=[r],e[6]=r,e[7]=k,e[8]=m):(k=e[7],m=e[8]),C.useEffect(k,m),null}function We(t){return t.kind==="file"}function Xe(){return Promise.resolve()}function bt(t){const e=H.c(43),{info:r,onClose:s}=t,i=Z(),o=r!==null;let l;e[0]!==s?(l=v=>!v&&s(),e[0]=s,e[1]=l):l=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=["radial-gradient(ellipse 40% 200% at -5% 100%, rgba(251,191,36,0.35) 0%, transparent 100%)","radial-gradient(ellipse 40% 200% at 105% -10%, rgba(244,114,182,0.25) 0%, transparent 100%)"],e[2]=c):c=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=h.jsx("div",{className:"absolute inset-x-0 top-0 h-36 pointer-events-none",style:{backgroundImage:c.join(", "),maskImage:"linear-gradient(to bottom, black 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 100%)"}}),e[3]=g):g=e[3];let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=h.jsx("div",{className:"flex items-center justify-center size-9 rounded-lg bg-warning/15 text-warning",children:h.jsx(ye,{size:18})}),e[4]=k):k=e[4];let m;e[5]!==i?(m=i("chat.uploader.fileTypeNotSupported"),e[5]=i,e[6]=m):m=e[6];let p;e[7]!==m?(p=h.jsx(xe,{className:"text-xl font-semibold tracking-tight",children:m}),e[7]=m,e[8]=p):p=e[8];const n=r?.fileName;let u;e[9]!==n?(u=h.jsxs("span",{className:"font-medium text-foreground",children:["“",n,"”"]}),e[9]=n,e[10]=u):u=e[10];let d;e[11]!==i?(d=i("chat.uploader.cantAttachToChat"),e[11]=i,e[12]=d):d=e[12];let b;e[13]!==d||e[14]!==u?(b=h.jsxs(ke,{className:"mt-1.5 text-sm leading-relaxed",children:[u," ",d]}),e[13]=d,e[14]=u,e[15]=b):b=e[15];let F;e[16]!==b||e[17]!==p?(F=h.jsxs("div",{className:"relative px-8 pt-8 pb-2 overflow-hidden",children:[g,h.jsxs(we,{className:"relative gap-4",children:[k,h.jsxs("div",{children:[p,b]})]})]}),e[16]=b,e[17]=p,e[18]=F):F=e[18];const S=r?.modelName??"";let _;e[19]!==i||e[20]!==S?(_=i("chat.uploader.accepts",{modelName:S}),e[19]=i,e[20]=S,e[21]=_):_=e[21];let j;e[22]!==_?(j=h.jsx("div",{className:"text-xs font-medium text-muted-foreground mb-2",children:_}),e[22]=_,e[23]=j):j=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=h.jsx(Oe,{size:14,className:"text-muted-foreground"}),e[24]=I):I=e[24];const R=r?.accepted;let D;e[25]!==R?(D=h.jsxs("div",{className:"flex items-center gap-2 text-sm text-foreground",children:[I,h.jsx("span",{className:"capitalize",children:R})]}),e[25]=R,e[26]=D):D=e[26];let a;e[27]!==j||e[28]!==D?(a=h.jsx("div",{className:"px-8 pt-3 pb-6 space-y-3",children:h.jsxs("div",{className:"surface p-4",children:[j,D]})}),e[27]=j,e[28]=D,e[29]=a):a=e[29];let f;e[30]!==i?(f=i("chat.uploader.gotIt"),e[30]=i,e[31]=f):f=e[31];let x;e[32]!==s||e[33]!==f?(x=h.jsx("div",{className:"px-8 py-4 border-t border-border bg-muted/30 flex items-center justify-end",children:h.jsx(be,{onClick:s,children:f})}),e[32]=s,e[33]=f,e[34]=x):x=e[34];let 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 Ze=t=>{const e=H.c(50),{editor:r,virtualMcpId:s,suggestionOpenRef:i}=t,o=Z(),l=le(),{org:c}=ce(),g=Ke();let k;e[0]!==c.id||e[1]!==c.slug||e[2]!==s?(k={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=c.id,e[1]=c.slug,e[2]=s,e[3]=k):k=e[3];const m=me(k);let p;e[4]!==c.id||e[5]!==s?(p=Y.virtualMcpResources(s,c.id),e[4]=c.id,e[5]=s,e[6]=p):p=e[6];const n=p,[u,d]=C.useState("categories");let b;e[7]!==u?(b=()=>u,e[7]=u,e[8]=b):b=e[8];const F=C.useEffectEvent(b),S=C.useRef(null),_=C.useRef(!1),j=s??"default";let I;e[9]!==u||e[10]!==c.id||e[11]!==j?(I=["at-mention",c.id,j,u],e[9]=u,e[10]=c.id,e[11]=j,e[12]=I):I=e[12];const R=I;let D;e[13]!==o?(D=o("chat.mentionAt.agentsTitle"),e[13]=o,e[14]=D):D=e[14];let a;e[15]!==o?(a=o("chat.mentionAt.agentsDescription"),e[15]=o,e[16]=a):a=e[16];let f;e[17]!==D||e[18]!==a?(f={name:"agents",title:D,description:a,kind:"category",drillable:!0},e[17]=D,e[18]=a,e[19]=f):f=e[19];let x;e[20]!==o?(x=o("chat.mentionAt.resourcesTitle"),e[20]=o,e[21]=x):x=e[21];let P;e[22]!==o?(P=o("chat.mentionAt.resourcesDescription"),e[22]=o,e[23]=P):P=e[23];let M;e[24]!==P||e[25]!==x?(M={name:"resources",title:x,description:P,kind:"category",drillable:!0},e[24]=P,e[25]=x,e[26]=M):M=e[26];let v;e[27]!==M||e[28]!==f?(v=[f,M],e[27]=M,e[28]=f,e[29]=v):v=e[29];const $=v;let O;e[30]!==m||e[31]!==r||e[32]!==o?(O=async U=>{const{item:w,range:K}=U;if(Q("chat_picker_item_selected",{picker:"@",item_kind:w.kind,item_name:w.name}),w.kind!=="category"&&(_.current=!0),w.kind==="category")return d(w.name==="agents"?"agents":"resources"),!1;if(w.kind==="agent"&&w.agentId){B(r,K,{id:w.agentId,name:w.name,metadata:{agentId:w.agentId,title:w.name},char:"@"}),d("categories");return}if(w.kind==="resource"&&w.uri&&m){try{const T=await ue(m,w.uri);B(r,K,{id:w.uri,name:w.uri,metadata:T.contents,char:"@"})}catch(T){console.error("[at-mention] Failed to fetch resource:",T),A.error(o("chat.mentionAt.failedToLoadResource"))}d("categories");return}},e[30]=m,e[31]=r,e[32]=o,e[33]=O):O=e[33];const q=O;let y;e[34]!==g||e[35]!==$||e[36]!==m||e[37]!==F||e[38]!==l||e[39]!==n||e[40]!==s?(y=async U=>{const{query:w}=U,K=F();if(K==="categories"){if(!w.trim())return $;const L=w.toLowerCase(),E=g.filter(N=>N.status==="active"&&(!N.id||!re(N.id))&&N.id!==s&&(N.title.toLowerCase().includes(L)||N.description?.toLowerCase().includes(L))).map(Ge),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(L)||te.name?.toLowerCase().includes(L)||te.description?.toLowerCase().includes(L)).map(et)})();return[...E,...X]}if(K==="agents"){let L=g.filter(E=>E.status==="active"&&(!E.id||!re(E.id))&&E.id!==s);if(w.trim()){const E=w.toLowerCase();L=L.filter(X=>X.title.toLowerCase().includes(E)||X.description?.toLowerCase().includes(E))}return L.map(tt)}if(!m)return[];let T=l.getQueryData(n);T?l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4}).catch(st):T=await l.fetchQuery({queryKey:n,queryFn:()=>z(m),staleTime:6e4});let W=T?.resources??[];if(w.trim()){const L=w.toLowerCase();W=W.filter(E=>E.uri.toLowerCase().includes(L)||E.name?.toLowerCase().includes(L)||E.description?.toLowerCase().includes(L))}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 G=y;let J;e[42]!==i?(J=U=>{if(i&&(i.current=U),U)S.current=Date.now(),_.current=!1,Q("chat_picker_opened",{picker:"@"});else{const w=S.current;Q("chat_picker_closed",{picker:"@",outcome:_.current?"selected":"dismissed",duration_ms:w?Date.now()-w:null}),S.current=null,d("categories")}},e[42]=i,e[43]=J):J=e[43];const ee=J;let V;return e[44]!==r||e[45]!==G||e[46]!==q||e[47]!==ee||e[48]!==R?(V=h.jsx(de,{editor:r,char:"@",pluginKey:"atDropdownMenu",queryKey:R,queryFn:G,onSelect:q,onOpenChange:ee}),e[44]=r,e[45]=G,e[46]=q,e[47]=ee,e[48]=R,e[49]=V):V=e[49],V};function Ge(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=Z(),i=le(),{org:o}=ce(),l=me({connectionId:e,orgId:o.id,orgSlug:o.slug}),c=Y.virtualMcpPrompts(e,o.id),g=Y.virtualMcpResources(e,o.id),k=Y.slashSkills(o.id),m=["slash-mention",o.id,e??"default"],[p,n]=C.useState(null),[u,d]=C.useState(null),b=je(t);b&&(b.onEditChip=async a=>{if(l)try{const x=(await ae(i,c,l)).find(P=>P.name===a.promptId);if(!x?.arguments||x.arguments.length===0)return;d({...a,prompt:x})}catch(f){console.error("[slash] Failed to load prompt for editing:",f),A.error(s("chat.mentionSlash.failedLoadPrompt"))}});const F=C.useRef(null),S=C.useRef(!1),_=async({item:a,range:f})=>{if(Q("chat_picker_item_selected",{picker:"/",item_kind:a.kind,item_name:a.name}),S.current=!0,!!l)if(a.kind==="prompt"){if(a.arguments&&a.arguments.length>0){n({range:f,item:a});return}const x=se(a._meta);await ie(t,f,l,a.name,x,void 0,{t:s})}else a.kind==="skill"?a.skill&&await ot(t,f,o.slug,a.skill,{t:s}):a.uri&&await nt(t,f,l,a.uri,{t:s})},j=async a=>{if(!p||!l)return;const{range:f,item:x}=p,P=se(x._meta);await ie(t,f,l,x.name,P,a,{t:s}),n(null)},I=async a=>{if(!(!u||!l)){if(!ve(t,u.pos,u.promptId)){A.error(s("chat.mentionSlash.failedUpdatePrompt")),d(null);return}try{const f=await pe(l,u.promptId,a),x=se(u.prompt._meta);t.chain().focus().setNodeSelection(u.pos).deleteSelection().insertContentAt(u.pos,Me({id:u.promptId,name:fe(u.promptId,x),metadata:f.messages,char:"/",kind:"prompt",args:a})).run(),Q("chat_picker_item_selected",{picker:"/edit",item_kind:"prompt",item_name:u.promptId})}catch(f){console.error("[slash] Failed to update prompt:",f),A.error(s("chat.mentionSlash.failedUpdatePrompt"))}d(null)}},R=async a=>{const{query:f}=a;if(!l)return[];const[x,P,M]=await Promise.all([ae(i,c,l),lt(i,g,l),at(i,k,o.slug)]),v=f.trim().toLowerCase(),$=(x??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.title?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.title,description:y.description,kind:"prompt",arguments:y.arguments,_meta:y._meta})),O=(P??[]).filter(y=>!v||y.uri.toLowerCase().includes(v)||y.name?.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name??y.uri,title:y.name,description:y.description,kind:"resource",uri:y.uri})),q=(M??[]).filter(y=>!v||y.name.toLowerCase().includes(v)||y.id.toLowerCase().includes(v)||y.description?.toLowerCase().includes(v)).map(y=>({name:y.name,title:y.name,description:y.description??void 0,kind:"skill",skill:y}));return[...$,...O,...q]},D=p?.item.kind==="prompt"?{name:p.item.name,title:p.item.title,arguments:p.item.arguments,description:p.item.description,_meta:p.item._meta}:null;return h.jsxs(h.Fragment,{children:[h.jsx(de,{editor:t,char:"/",pluginKey:"slashDropdownMenu",queryKey:m,queryFn:R,onSelect:_,onOpenChange:a=>{if(r&&(r.current=a),a)F.current=Date.now(),S.current=!1,Q("chat_picker_opened",{picker:"/"});else{const f=F.current;Q("chat_picker_closed",{picker:"/",outcome:S.current?"selected":"dismissed",duration_ms:f?Date.now()-f:null}),F.current=null}}}),h.jsx(ne,{prompt:D,setPrompt:()=>n(null),onSubmit:j}),h.jsx(ne,{prompt:u?.prompt??null,setPrompt:()=>d(null),onSubmit:I,defaultValues:u?.args},u?`edit-${u.promptId}-${u.pos}`:"edit-idle")]})};async function ae(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>oe(r),staleTime:6e4}).catch(()=>{}),s?.prompts??[]}async function at(t,e,r){const s=t.getQueryData(e),i=()=>t.fetchQuery({queryKey:e,queryFn:()=>Be(r),staleTime:6e4});return s?(i().catch(()=>{}),s):i().catch(()=>[])}async function lt(t,e,r){let s=t.getQueryData(e);return s?t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}):s=await t.fetchQuery({queryKey:e,queryFn:()=>z(r),staleTime:6e4}).catch(()=>{}),s?.resources??[]}const ge="Ask anything, / for prompts & skills, @ for agents & resources...";function ct(t){return[Te.configure({heading:!1,blockquote:!1,codeBlock:!1,horizontalRule:!1,dropcursor:!1}),Se.configure({placeholder:()=>t.current??ge,showOnlyWhenEditable:!1}),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=Re({extensions:ct(p),content:t||"",editorProps:{attributes:{"data-chat-input":"true",role:"textbox","aria-multiline":"true","aria-label":i??ge,class:"prose prose-sm max-w-none focus:outline-none w-full h-full text-base p-[18px]"},handleKeyDown:(u,d)=>d.key==="Enter"&&!d.shiftKey&&m.current&&!l?.current?(d.preventDefault(),g.current?.(),!0):!1},onUpdate:({editor:u})=>{k.current(u?.getJSON())}});return 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(Le.Provider,{value:{editor:n},children:c})}function _t(t){const e=H.c(29),{disabled:r,virtualMcpId:s,showFileUploader:i,selectedModel:o,onUnsupportedFile:l,suggestionOpenRef:c,ref:g,className:k}=t,m=r===void 0?!1:r,p=i===void 0?!1:i,{editor:n}=Ee();let u,d;if(e[0]!==n?(u=()=>({focus:()=>{n?.commands.focus()},clear:()=>{n?.commands.clearContent(!0)},appendText:x=>{if(!n)return;const P=n.state.doc.textContent.trim()==="";n.commands.focus("end"),P||n.commands.insertContent(" "),n.commands.insertContent(x)},syncVoiceText:(x,P)=>{if(n&&(n.commands.setContent(x||{type:"doc",content:[]}),P)){n.commands.focus("end");const M=n.state.doc.textContent.trim().length>0;n.commands.insertContent({type:"text",text:M?" "+P:P})}},restoreContent:x=>{n&&n.commands.setContent(x||{type:"doc",content:[]})}}),d=[n],e[0]=n,e[1]=u,e[2]=d):(u=e[1],d=e[2]),C.useImperativeHandle(g??null,u,d),!n)return null;const b=m&&"cursor-not-allowed opacity-70",F=m&&"[&_.ProseMirror]:cursor-not-allowed";let S;e[3]!==k||e[4]!==b||e[5]!==F?(S=_e("overflow-y-auto relative flex-1 max-h-[164px] min-h-[20px] w-full flex flex-col",k,"[&_.ProseMirror]:outline-none [&_.ProseMirror]:min-h-[20px] [&_.ProseMirror]:flex-1","[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:opacity-50","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:w-full","[&_.ProseMirror_p.is-editor-empty:first-child::before]:break-words",b,F),e[3]=k,e[4]=b,e[5]=F,e[6]=S):S=e[6];let _;e[7]!==n||e[8]!==S?(_=h.jsx(Qe,{editor:n,className:S}),e[7]=n,e[8]=S,e[9]=_):_=e[9];const j=s??null;let I;e[10]!==n||e[11]!==c||e[12]!==j?(I=h.jsx(C.Suspense,{fallback:null,children:h.jsx(it,{editor:n,virtualMcpId:j,suggestionOpenRef:c})}),e[10]=n,e[11]=c,e[12]=j,e[13]=I):I=e[13];const R=s??null;let D;e[14]!==n||e[15]!==c||e[16]!==R?(D=h.jsx(C.Suspense,{fallback:null,children:h.jsx(Ze,{editor:n,virtualMcpId:R,suggestionOpenRef:c})}),e[14]=n,e[15]=c,e[16]=R,e[17]=D):D=e[17];let a;e[18]!==m||e[19]!==n||e[20]!==l||e[21]!==o||e[22]!==p?(a=p&&o&&!m?h.jsx(Ve,{editor:n,selectedModel:o,onUnsupportedFile:l}):null,e[18]=m,e[19]=n,e[20]=l,e[21]=o,e[22]=p,e[23]=a):a=e[23];let f;return e[24]!==I||e[25]!==D||e[26]!==a||e[27]!==_?(f=h.jsxs(h.Fragment,{children:[_,I,D,a]}),e[24]=I,e[25]=D,e[26]=a,e[27]=_,e[28]=f):f=e[28],f}export{Ct as T,bt as U,_t as a,He as p,Pt as u};
|