decocms 4.210.2 → 4.211.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-B-VB_v8_.js → AlertCircle-TYVVkJeU.js} +1 -1
- package/dist/client/assets/{AreaChart-GISiEbjd.js → AreaChart-AqLvPM9g.js} +1 -1
- package/dist/client/assets/{ArrowLeft-KvTc6rGE.js → ArrowLeft-BbdA6t_3.js} +1 -1
- package/dist/client/assets/{ArrowUp-CM4hwO1x.js → ArrowUp-1naNHBRj.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-CT3hd3Gz.js → ArrowUpRight-D4SZdU4m.js} +1 -1
- package/dist/client/assets/{Check-jVlurWFp.js → Check-BDzbzT06.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dag22p3m.js → CheckCircle-CC4Xh21R.js} +1 -1
- package/dist/client/assets/{ChevronDown-p_tbIzFd.js → ChevronDown-DpHXwB32.js} +1 -1
- package/dist/client/assets/{ChevronRight-CPHsfQo3.js → ChevronRight-BSjdSVNm.js} +1 -1
- package/dist/client/assets/{ChevronUp-vuWH7gGr.js → ChevronUp-ChdWc9lc.js} +1 -1
- package/dist/client/assets/{Copy01-C_8GUzyJ.js → Copy01-C0796Rq9.js} +1 -1
- package/dist/client/assets/{CpuChip01-4na0tDxe.js → CpuChip01-Bdbhw0P9.js} +1 -1
- package/dist/client/assets/{CreditCard01-DW_FdoX9.js → CreditCard01-Lv_9rwEK.js} +1 -1
- package/dist/client/assets/{DotsVertical-BGG3Ho_u.js → DotsVertical-DdiasF4L.js} +1 -1
- package/dist/client/assets/{Eye-Dn-joolw.js → Eye-BQf3dLN4.js} +1 -1
- package/dist/client/assets/{FilterLines-CYIS3PyF.js → FilterLines-BqTb37m2.js} +1 -1
- package/dist/client/assets/{Globe01-BMEBgVG2.js → Globe01-DK8Sgoou.js} +1 -1
- package/dist/client/assets/{Globe04-DufTt3Vi.js → Globe04-BQdFq6tK.js} +1 -1
- package/dist/client/assets/{HardDrive-H4sB7rht.js → HardDrive-CvH9aARD.js} +1 -1
- package/dist/client/assets/{Key01-CH_IVG_t.js → Key01-BWdrOc5q.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BLZ5NIVe.js → LayoutLeft-D9xQiMAK.js} +1 -1
- package/dist/client/assets/{LinkExternal01-SB0_tkSE.js → LinkExternal01-BmVaCxbN.js} +1 -1
- package/dist/client/assets/{LogOut01-BccMqXFZ.js → LogOut01-p090sMWF.js} +1 -1
- package/dist/client/assets/{Monitor01-DljnePZF.js → Monitor01-CLFxIYpP.js} +1 -1
- package/dist/client/assets/{Palette-BkqWyxiz.js → Palette-BCn2XIPU.js} +1 -1
- package/dist/client/assets/{Play-BO_bz8z5.js → Play-BQ-LkqC0.js} +1 -1
- package/dist/client/assets/{Plus-DChWoRcZ.js → Plus-7n57TljD.js} +1 -1
- package/dist/client/assets/{SearchLg-DIkeGuEU.js → SearchLg-Cx0osKta.js} +1 -1
- package/dist/client/assets/{SearchMd-CUHSKZ0C.js → SearchMd-DpIls16E.js} +1 -1
- package/dist/client/assets/{Settings02-DwsCOelc.js → Settings02-DNRmixh-.js} +1 -1
- package/dist/client/assets/{Share07-BKiSFd-U.js → Share07-BBENyvyC.js} +1 -1
- package/dist/client/assets/{Shield01-DZaZzDZT.js → Shield01-CLdpriOK.js} +1 -1
- package/dist/client/assets/{Star01-CHCsqoaq.js → Star01-DTAIuohm.js} +1 -1
- package/dist/client/assets/{Stars01-sT_rQek5.js → Stars01-CUCVbuJx.js} +1 -1
- package/dist/client/assets/{Stars02-9Za0OT3w.js → Stars02-CSDWekQs.js} +1 -1
- package/dist/client/assets/{Sun-ftMFixk5.js → Sun-dQOwAtEs.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Cebat5cd.js → SwitchHorizontal01-DLBKMScd.js} +1 -1
- package/dist/client/assets/{Tool01-DncLlBOd.js → Tool01-CTOSBnQx.js} +1 -1
- package/dist/client/assets/{Tool02-Dop27LUm.js → Tool02-Y7HqJxc6.js} +1 -1
- package/dist/client/assets/{Trash01-BjgXKgr6.js → Trash01-Cox6-EZ7.js} +1 -1
- package/dist/client/assets/{TrendUp01-DeH0rZDG.js → TrendUp01-D5eQgKus.js} +1 -1
- package/dist/client/assets/{Upload01-C9lBOcvL.js → Upload01-C7EZwIUG.js} +1 -1
- package/dist/client/assets/{User01-BJ2PmluK.js → User01-CV4pB4M5.js} +1 -1
- package/dist/client/assets/{Users01-CDyoTcZA.js → Users01-CIEwutni.js} +1 -1
- package/dist/client/assets/{Users03-DBRXdvYq.js → Users03-BjYPDVws.js} +1 -1
- package/dist/client/assets/{X-JiAwzhaQ.js → X-BcWTB26X.js} +1 -1
- package/dist/client/assets/{XCircle-BAmgho8b.js → XCircle-CXuc-Uxn.js} +1 -1
- package/dist/client/assets/{XClose-DgBj6S8z.js → XClose-BCPmotKV.js} +1 -1
- package/dist/client/assets/{Zap-ywE7kIil.js → Zap-BDg1HYtQ.js} +1 -1
- package/dist/client/assets/{ZapSquare-4QAPR3zA.js → ZapSquare-D4DjiT_W.js} +1 -1
- package/dist/client/assets/{access-gate-So3U0BEa.js → access-gate-DyocA4nP.js} +1 -1
- package/dist/client/assets/{agent-icon-BypwlSQB.js → agent-icon-BkJC4HZY.js} +1 -1
- package/dist/client/assets/{agents-list-C8CTZGET.js → agents-list-DsMfF9po.js} +1 -1
- package/dist/client/assets/{ai-providers-CZgWwdeh.js → ai-providers-DhUWGBnq.js} +1 -1
- package/dist/client/assets/{alert-DpBr9hws.js → alert-CejJSmSg.js} +1 -1
- package/dist/client/assets/{alert-dialog-CZcxNTn5.js → alert-dialog-V3SBzBF6.js} +2 -2
- package/dist/client/assets/{app-editor-ByEM6PQA.js → app-editor-Dz9ipuIR.js} +1 -1
- package/dist/client/assets/{auth-CgC0zRiu.js → auth-CITqEd5Y.js} +1 -1
- package/dist/client/assets/{auth-catchall-Dz8vFuO9.js → auth-catchall-CdiNifz6.js} +1 -1
- package/dist/client/assets/{auth-entry-BllwLBnz.js → auth-entry-C3nGhKNy.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CKjZUbdm.js → auth-split-layout-DW93TS5_.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-zBYZihEH.js → authenticate-and-persist-oauth-CMEk6iib.js} +1 -1
- package/dist/client/assets/{automation-list-row-DtC9A60K.js → automation-list-row-Db-gegHI.js} +1 -1
- package/dist/client/assets/{automation-runs-BlKRnDL3.js → automation-runs-FKj_eO_X.js} +1 -1
- package/dist/client/assets/{automations-CojYI39x.js → automations-CXmIt2ng.js} +1 -1
- package/dist/client/assets/{avatar-BeSTVwN_.js → avatar-ZohFyJD1.js} +1 -1
- package/dist/client/assets/{badge-7TN3Wktg.js → badge-DqEA_1WO.js} +1 -1
- package/dist/client/assets/{billing-Bja42Pi1.js → billing-CnvJo8nq.js} +1 -1
- package/dist/client/assets/{block-document-BSnBImDv.js → block-document-CPon3YEP.js} +1 -1
- package/dist/client/assets/{brand-context-CaGiPaFo.js → brand-context-CH5ydrsO.js} +1 -1
- package/dist/client/assets/{buckets-BFrcNzoB.js → buckets-DBYfHnab.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-DYieY-aA.js → bulk-category-panel-BHtcP6Av.js} +1 -1
- package/dist/client/assets/{capability-load-error-CKYF121O.js → capability-load-error-DDyZYkk6.js} +1 -1
- package/dist/client/assets/{card-DcOVhRdn.js → card-DwS9YBX_.js} +1 -1
- package/dist/client/assets/{cards-CGo6rBiP.js → cards-C7m4XNgd.js} +1 -1
- package/dist/client/assets/{category-editor-DOcP_AaV.js → category-editor-BsWB5pLu.js} +1 -1
- package/dist/client/assets/{chat-context-CHpxk4f9.js → chat-context-CG-xd16U.js} +1 -1
- package/dist/client/assets/{checkbox-tzeh-qrP.js → checkbox-B_GAdRqO.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DfRqWz-l.js → cli-auth-success-CrncupgE.js} +1 -1
- package/dist/client/assets/{collection-detail-D_2wxesW.js → collection-detail-bBcTt8pZ.js} +1 -1
- package/dist/client/assets/{collection-display-button-DgdY2-SO.js → collection-display-button-BoE4VEX3.js} +1 -1
- package/dist/client/assets/{collection-search-D9_uCTpl.js → collection-search-C7rh3ktP.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-yAMwsEKr.js → collection-table-wrapper-wUjq02Bx.js} +1 -1
- package/dist/client/assets/{collection-tabs-Cgws9vFl.js → collection-tabs-DPFnfk3X.js} +1 -1
- package/dist/client/assets/{command-vCdEhggD.js → command-Blo3i6hw.js} +1 -1
- package/dist/client/assets/commerce-onboarding-BSheeaBX.js +1 -0
- package/dist/client/assets/{connect-w7lllDYQ.js → connect-D6k6HF7B.js} +1 -1
- package/dist/client/assets/{connection-VFkeKEW_.js → connection-Dyei1SNq.js} +1 -1
- package/dist/client/assets/{connection-card-BXKTS1UY.js → connection-card-C8I5Q67K.js} +1 -1
- package/dist/client/assets/{connection-detail-Bq1COctm.js → connection-detail-BGPYuqW4.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-ClipGuvp.js → connection-form-helpers-CSXI4N5_.js} +1 -1
- package/dist/client/assets/{connections-VtLjYpst.js → connections-CCpCpGbi.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DxtdX756.js → decopilot-sse-pool-Cd_vwHza.js} +1 -1
- package/dist/client/assets/{dialog-BndOy54_.js → dialog-Bae-MxD_.js} +1 -1
- package/dist/client/assets/{domain-settings-D6c9-Vro.js → domain-settings-BHEf1RBC.js} +1 -1
- package/dist/client/assets/{drawer-CG0exhDi.js → drawer-DGMnIv29.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BlydGYwg.js → dropdown-menu-D7pVBiz9.js} +1 -1
- package/dist/client/assets/{empty-state-C-U6aO8t.js → empty-state-DSZDhzyD.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BTdYO2Ie.js → extract-connection-data-BzdJJn3l.js} +1 -1
- package/dist/client/assets/{file-explorer-ChVtqjrB.js → file-explorer-6N0fIoLP.js} +1 -1
- package/dist/client/assets/{file-type-icon-umbWZVCL.js → file-type-icon-D4StIude.js} +1 -1
- package/dist/client/assets/{form-B913lxdw.js → form-DUcjvD3B.js} +1 -1
- package/dist/client/assets/{general-qD94BshC.js → general-D1xDDLRg.js} +1 -1
- package/dist/client/assets/{github-repo-picker-IkpFrAa4.js → github-repo-picker-CHSJzmIC.js} +1 -1
- package/dist/client/assets/{hooks-DSQPS7ZB.js → hooks-Ca8QZPOn.js} +1 -1
- package/dist/client/assets/{index-phl_pIXQ.js → index-3YsVfLnT.js} +1 -1
- package/dist/client/assets/{index-D7ruAD9R.js → index-B9npqQk3.js} +6 -6
- package/dist/client/assets/{index-lvxbMBlt.js → index-BF1I_mPj.js} +5 -5
- package/dist/client/assets/{index-DXMTUPM-.css → index-BLA5BTNJ.css} +1 -1
- package/dist/client/assets/{index-CqMFU0yP.js → index-BLZuLLtX.js} +1 -1
- package/dist/client/assets/{index-BdXS1C_d.js → index-ChOzfVk5.js} +1 -1
- package/dist/client/assets/{index-BbcBLfTr.js → index-CtegNSps.js} +1 -1
- package/dist/client/assets/{index-fAEWeRk2.js → index-Dfl_R7ZT.js} +1 -1
- package/dist/client/assets/{index-D93sMh9L.js → index-DfykQcW9.js} +1 -1
- package/dist/client/assets/{index-nd630d8o.js → index-ZSJNXD5n.js} +1 -1
- package/dist/client/assets/{index-BVax3vfK.js → index-aMy7NxkO.js} +1 -1
- package/dist/client/assets/{index-redirect-PIoczkKB.js → index-redirect-CyXygCRy.js} +1 -1
- package/dist/client/assets/{input-BywtKe6R.js → input-BKxcTVd2.js} +1 -1
- package/dist/client/assets/{integration-icon-BDe33Str.js → integration-icon-D-gqZILO.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-Cd1X6Vsw.js → invite-member-dialog-DGMvAwXw.js} +1 -1
- package/dist/client/assets/{label-sPxTCHgi.js → label-Be1FgYVt.js} +1 -1
- package/dist/client/assets/{layout-DC7V__Wf.js → layout-B1Sp1EaS.js} +1 -1
- package/dist/client/assets/{login-4F7Q4eab.js → login-D5FLnC9v.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CNM-bHuQ.js → mcp-oauth-BhQlQCDi.js} +1 -1
- package/dist/client/assets/{members-DvnXbOrX.js → members-DEu44QBG.js} +1 -1
- package/dist/client/assets/{monaco-editor-5TGvXJMP.js → monaco-editor-Cs5d250N.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BvX0Iwku.js → monitoring-stats-row-Vk5s6ZIh.js} +1 -1
- package/dist/client/assets/{multi-select-CfxNtheE.js → multi-select-CZI8UNeu.js} +1 -1
- package/dist/client/assets/{oauth-callback-Bkyx6a7J.js → oauth-callback-DB5pjIw2.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CaAAAR6l.js → oauth-callback-ai-provider-B8yoLX-E.js} +1 -1
- package/dist/client/assets/onboarding-B7wTezE7.js +1 -0
- package/dist/client/assets/{org-layout-BwK5e6T_.js → org-layout-Ct4hhHqf.js} +1 -1
- package/dist/client/assets/organization-choice-AmHs8fIs.js +1 -0
- package/dist/client/assets/{orgs-DFSwvs3E.js → orgs-Chb-Siqo.js} +1 -1
- package/dist/client/assets/{page-seo-form-CftmESyH.js → page-seo-form-vR1HIGDN.js} +1 -1
- package/dist/client/assets/{popover-DMey_8nq.js → popover-DqPd8WJS.js} +1 -1
- package/dist/client/assets/{post-editor-Duz7yAQd.js → post-editor-C7XaR5Fz.js} +1 -1
- package/dist/client/assets/{primitives-CYrbLQxI.js → primitives-DZqIioCE.js} +1 -1
- package/dist/client/assets/{profile-CP1J74Pn.js → profile-B8oLwcCf.js} +1 -1
- package/dist/client/assets/{project-app-view-hgruxcGv.js → project-app-view-DKrLSNrA.js} +1 -1
- package/dist/client/assets/record-editor-CTFYRbp9.js +1 -0
- package/dist/client/assets/redirect-editor-B2AQImGK.js +1 -0
- package/dist/client/assets/registry-Ccrbv5J2.js +2 -0
- package/dist/client/assets/{registry-layout-BXgtH3-2.js → registry-layout-CLHQOwZI.js} +1 -1
- package/dist/client/assets/{reports-j4qlGGA1.js → reports-BttQ3VXZ.js} +1 -1
- package/dist/client/assets/{require-capability-BTVUJu40.js → require-capability-wDDU8uIl.js} +1 -1
- package/dist/client/assets/{required-auth-layout-D8pQ4hlg.js → required-auth-layout-D1zgX91n.js} +1 -1
- package/dist/client/assets/{reset-password-uH2eEwS5.js → reset-password-WSqrBKVp.js} +1 -1
- package/dist/client/assets/{roles-CZj8iSpk.js → roles-DZ7NNBzQ.js} +1 -1
- package/dist/client/assets/{search-input-B0dv5yOL.js → search-input-CGkNhXkv.js} +1 -1
- package/dist/client/assets/{secrets-Bkf1kD0z.js → secrets-C6Klozeg.js} +1 -1
- package/dist/client/assets/{sections-editor-BVnK7z0H.js → sections-editor-BivJl6N2.js} +1 -1
- package/dist/client/assets/{select-model-DvmZyKHW.js → select-model-CrMy6GlK.js} +1 -1
- package/dist/client/assets/{select-BpPnRSd-.js → select-xQgf68lb.js} +1 -1
- package/dist/client/assets/self-tool-result-BbEDg8mP.js +1 -0
- package/dist/client/assets/{seo-editor-D6Qp5PAw.js → seo-editor-CaqEbPF_.js} +1 -1
- package/dist/client/assets/{settings-layout-BSj52fb7.js → settings-layout-Ds3wnMOD.js} +1 -1
- package/dist/client/assets/{settings-section-CewjBJDd.js → settings-section-Qz93uThQ.js} +1 -1
- package/dist/client/assets/{shell-controls-UGsMszrT.js → shell-controls-DTivsFkI.js} +1 -1
- package/dist/client/assets/{shell-layout-U1XEcaQb.js → shell-layout-COqpNXs0.js} +1 -1
- package/dist/client/assets/{sidebar-XtHztjYp.js → sidebar-BuFyLs3D.js} +1 -1
- package/dist/client/assets/{skeleton-TYssXBL8.js → skeleton-BQFCVo8u.js} +1 -1
- package/dist/client/assets/{spinner-BDArA5p5.js → spinner-CpgB19wz.js} +1 -1
- package/dist/client/assets/{sso-CEwCgILO.js → sso-bLxHReVR.js} +1 -1
- package/dist/client/assets/{store-BAtC58cE.js → store-PqeC9hH6.js} +1 -1
- package/dist/client/assets/store-registry-n123Tw6S.js +2 -0
- package/dist/client/assets/{studio-tools-43YF_K-Q.js → studio-tools-CoB4u-70.js} +1 -1
- package/dist/client/assets/{switch-COa2pVfk.js → switch-JRcY3_n1.js} +1 -1
- package/dist/client/assets/{synced-repos-BQu96mXT.js → synced-repos-0Vi_LSno.js} +1 -1
- package/dist/client/assets/{tab-id-D2hxEf3P.js → tab-id-bg9ksjYj.js} +1 -1
- package/dist/client/assets/{table-DPk5SmMs.js → table-DDF0__cN.js} +1 -1
- package/dist/client/assets/{tabs-Y4Dxc2rR.js → tabs-DI3I6rGJ.js} +1 -1
- package/dist/client/assets/{textarea-BJCjQSy4.js → textarea-Cn0XTkv8.js} +1 -1
- package/dist/client/assets/{toggle-group-BaXRwZme.js → toggle-group-BsjEMfic.js} +1 -1
- package/dist/client/assets/{toolbar-WaysqEfz.js → toolbar-BcWKUVdT.js} +1 -1
- package/dist/client/assets/{tooltip-2La-f68Q.js → tooltip-kcGiZu6P.js} +1 -1
- package/dist/client/assets/{use-ai-providers-kgciqmRs.js → use-ai-providers-BcIUouZf.js} +1 -1
- package/dist/client/assets/{use-automations-DmPoIHA3.js → use-automations-C79xORO3.js} +1 -1
- package/dist/client/assets/{use-autosave-CT7wG3Qv.js → use-autosave-KV9xz2CC.js} +1 -1
- package/dist/client/assets/{use-capability-DxrcT9AW.js → use-capability-JYilRL77.js} +1 -1
- package/dist/client/assets/{use-clock-tick-n9GtE0Cq.js → use-clock-tick-DClVqBI6.js} +1 -1
- package/dist/client/assets/{use-connection-DNjvpsXX.js → use-connection-DXYv0Dlt.js} +1 -1
- package/dist/client/assets/{use-copy-DEnQ3bpL.js → use-copy-DTiLIjX4.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BZMkd898.js → use-create-virtual-mcp-DpDzLWae.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Blzii2X5.js → use-debounced-autosave-BdVa5FtM.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C2tRwl1G.js → use-debounced-value-BASrSWg3.js} +1 -1
- package/dist/client/assets/use-deco-credits-4AbLahU1.js +1 -0
- package/dist/client/assets/{use-decopilot-events-DgBVDXYP.js → use-decopilot-events-CqxWC3Qt.js} +1 -1
- package/dist/client/assets/{use-delete-connection-xxYRBi8p.js → use-delete-connection-DBTideE2.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CTV5HKPv.js → use-deployment-admin-Ddcy4-RM.js} +1 -1
- package/dist/client/assets/{use-file-configs-SWRAWh_l.js → use-file-configs-CNpa8frL.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CGISYIMq.js → use-infinite-scroll-BJfoFF98.js} +1 -1
- package/dist/client/assets/{use-join-requests-CoVD6BOS.js → use-join-requests-BFN1qb3o.js} +1 -1
- package/dist/client/assets/{use-mcp-client-B5b37aiu.js → use-mcp-client-D88A_FLe.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DD2MmEqL.js → use-mcp-tools-DasMWNgZ.js} +1 -1
- package/dist/client/assets/{use-members-DzkjUoJV.js → use-members-B2oQ4Mli.js} +1 -1
- package/dist/client/assets/{use-mobile-CT3yU0Mk.js → use-mobile-FSyJw-g8.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DpmJRDSG.js → use-navigate-to-agent-BAUFuqoL.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BsBXjjlS.js → use-open-billing-url-CY3_mFFw.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Bo-CO3rH.js → use-org-auth-client-C3CuRPbb.js} +1 -1
- package/dist/client/assets/{use-org-sso-Dzy04a3G.js → use-org-sso-DKk_Tbqk.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DGOLTZKh.js → use-organization-roles-COLS-CjO.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BSdKLcGF.js → use-organization-settings-DYIICGR9.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BJ91vRwf.js → use-registry-connections-CHDtRuU8.js} +1 -1
- package/dist/client/assets/{use-secrets-DdHTSlNZ.js → use-secrets-DzUh6HrD.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BhwwAIIj.js → use-section-preview-base-BfG_5dSA.js} +1 -1
- package/dist/client/assets/{use-status-sounds-6JeLPtQS.js → use-status-sounds-COLJP0Lu.js} +1 -1
- package/dist/client/assets/{use-tags-C4qTyTIP.js → use-tags-CcBRYgNt.js} +1 -1
- package/dist/client/assets/{use-view-mode-a2V8IUPD.js → use-view-mode-CM2kJ519.js} +1 -1
- package/dist/client/assets/use-virtual-mcp-C4nfOvWc.js +1 -0
- package/dist/client/assets/useInfiniteQuery-CmmOH8T_.js +1 -0
- package/dist/client/assets/{useRouterState-CPf57-wY.js → useRouterState-DqtNE6zu.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BDnje4nq.js +1 -0
- package/dist/client/assets/{users-qSQTwwCC.js → users-wYf-b4P0.js} +1 -1
- package/dist/client/assets/{variant-calendar-CW881-GE.js → variant-calendar-WEqnNDvV.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CAlt97wR.js → view-mode-toggle-BAamz_K6.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/commerce-onboarding-BcbHBN76.js +0 -1
- package/dist/client/assets/onboarding-CQGDI3Bm.js +0 -1
- package/dist/client/assets/organization-choice-BRJ5bOuv.js +0 -1
- package/dist/client/assets/record-editor-DpRInA4u.js +0 -1
- package/dist/client/assets/redirect-editor-WxghSLXV.js +0 -1
- package/dist/client/assets/registry-ClpCJTmQ.js +0 -2
- package/dist/client/assets/self-tool-result-DPsJP5SW.js +0 -1
- package/dist/client/assets/store-registry-CRuDI2z7.js +0 -2
- package/dist/client/assets/use-deco-credits-DQwVauly.js +0 -1
- package/dist/client/assets/use-virtual-mcp-D1c8M1hh.js +0 -1
- package/dist/client/assets/useInfiniteQuery-ueeYN8M9.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CLfnZXXY.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,m as i,j as r}from"./index-
|
|
1
|
+
import{c,m as i,j as r}from"./index-B9npqQk3.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,m as a,b,d as c,p as d,f as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,j as d,bJ as $,aH as p,bM as k,bL as y,bK as P,aN as T,aJ as S,aM as F,aK as V,aO as D,c as x,m as g}from"./index-
|
|
1
|
+
import{r as v,j as d,bJ as $,aH as p,bM as k,bL as y,bK as P,aN as T,aJ as S,aM as F,aK as V,aO as D,c as x,m as g}from"./index-B9npqQk3.js";var m="Tabs",[G]=S(m,[y]),N=y(),[L,h]=G(m),w=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=F(i),[c,b]=V({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:D(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});w.displayName=m;var C="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(C,a),o=N(a);return d.jsx($,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=C;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=N(a),l=E(o.baseId,t),f=M(o.baseId,t),u=t===o.value;return d.jsx(P,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=M(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(k,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function M(n,e){return`${n}-content-${e}`}var K=w,z=j,B=_,H=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(K,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(z,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(H,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,O as a,Q as b,q as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,m as l,j as n}from"./index-
|
|
1
|
+
import{c as o,m as l,j as n}from"./index-B9npqQk3.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,aK as b,j as c,aH as m,aN as k,aw as p,bK as M,bL as T,aM as S,bJ as A,aJ as F,bC as $,c as C,m as P}from"./index-
|
|
1
|
+
import{r as x,aK as b,j as c,aH as m,aN as k,aw as p,bK as M,bL as T,aM as S,bJ as A,aJ as F,bC as $,c as C,m as P}from"./index-B9npqQk3.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),I=T(),h=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});h.displayName=v;var[H,J]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(H,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=J(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),K=h,L=N;const O=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function q(a){const e=C.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=P("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(K,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=C.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=P(O({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Q as T,q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as T,j as i,r as g,b as j,f as k,ae as p,L as N,aQ as y,b6 as L}from"./index-
|
|
1
|
+
import{c as u,m as T,j as i,r as g,b as j,f as k,ae as p,L as N,aQ as y,b6 as L}from"./index-B9npqQk3.js";function B(t){const e=u.c(14);let l,s,o,n,r;e[0]!==t?({active:l,className:s,ref:n,type:r,...o}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=o,e[4]=n,e[5]=r):(l=e[1],s=e[2],o=e[3],n=e[4],r=e[5]);const c=r===void 0?"button":r,a=l?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let f;e[6]!==s||e[7]!==a?(f=T("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",a,s),e[6]=s,e[7]=a,e[8]=f):f=e[8];let b;return e[9]!==o||e[10]!==n||e[11]!==f||e[12]!==c?(b=i.jsx("button",{ref:n,type:c,className:f,...o}),e[9]=o,e[10]=n,e[11]=f,e[12]=c,e[13]=b):b=e[13],b}const S=g.createContext(null);function x(){const t=g.use(S);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function v(t){const e=u.c(8),{children:l}=t,[s,o]=g.useState(null),[n,r]=g.useState(null),[c,a]=g.useState(null),[f,b]=g.useState(null);let d;e[0]!==c||e[1]!==f||e[2]!==n||e[3]!==s?(d={togglesEl:s,setTogglesEl:o,tabsEl:n,setTabsEl:r,centerEl:c,setCenterEl:a,rightEl:f,setRightEl:b},e[0]=c,e[1]=f,e[2]=n,e[3]=s,e[4]=d):d=e[4];let h;return e[5]!==l||e[6]!==d?(h=i.jsx(S,{value:d,children:l}),e[5]=l,e[6]=d,e[7]=h):h=e[7],h}function m(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx(v,{children:i.jsx("div",{className:"flex flex-col h-full min-h-0",children:l})}),e[0]=l,e[1]=s):s=e[1],s}function $(t){const e=u.c(10);let l,s,o;e[0]!==t?({children:l,className:s,...o}=t,e[0]=t,e[1]=l,e[2]=s,e[3]=o):(l=e[1],s=e[2],o=e[3]);let n;e[4]!==s?(n=T("relative z-10 shrink-0 grid grid-cols-3 items-center pl-1 pr-2 h-12 bg-sidebar",s),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==l||e[7]!==o||e[8]!==n?(r=i.jsx("div",{className:n,...o,children:l}),e[6]=l,e[7]=o,e[8]=n,e[9]=r):r=e[9],r}function C(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:l}),e[0]=l,e[1]=s):s=e[1],s}function R(t){const e=u.c(2),{children:l}=t;let s;return e[0]!==l?(s=i.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:l}),e[0]=l,e[1]=s):s=e[1],s}function _(){const t=u.c(13),e=j(),s=y().logo??L,o=typeof s=="string"?s:s.light,n=typeof s=="string"?s:s.dark;let r;t[0]!==e?(r=e("agentShellLayout.toolbar.logo"),t[0]=e,t[1]=r):r=t[1];let c;t[2]!==o||t[3]!==r?(c=i.jsx("img",{src:o,alt:r,className:"size-6 object-contain dark:hidden"}),t[2]=o,t[3]=r,t[4]=c):c=t[4];let a;t[5]!==e?(a=e("agentShellLayout.toolbar.logo"),t[5]=e,t[6]=a):a=t[6];let f;t[7]!==n||t[8]!==a?(f=i.jsx("img",{src:n,alt:a,className:"size-6 object-contain hidden dark:block"}),t[7]=n,t[8]=a,t[9]=f):f=t[9];let b;return t[10]!==c||t[11]!==f?(b=i.jsxs("span",{className:"flex items-center shrink-0 px-2",children:[c,f]}),t[10]=c,t[11]=f,t[12]=b):b=t[12],b}function E(){const t=u.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(g.Suspense,{fallback:i.jsx("span",{className:"shrink-0 size-6 mx-2"}),children:i.jsx(_,{})}),t[0]=e):e=t[0],e}function z(){const t=u.c(12),e=j();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={from:"/shell/$org"},t[0]=l):l=t[0];const{org:s}=k(l);let o;t[1]!==s?(o={org:s},t[1]=s,t[2]=o):o=t[2];let n;t[3]!==e?(n=e("agentShellLayout.toolbar.backToHome"),t[3]=e,t[4]=n):n=t[4];let r;t[5]!==e?(r=e("agentShellLayout.toolbar.backToHome"),t[5]=e,t[6]=r):r=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx(E,{}),t[7]=c):c=t[7];let a;return t[8]!==o||t[9]!==n||t[10]!==r?(a=i.jsx(N,{to:"/$org",params:o,"aria-label":n,title:r,className:"flex items-center shrink-0 cursor-pointer pl-1",children:c}),t[8]=o,t[9]=n,t[10]=r,t[11]=a):a=t[11],a}function P(){const t=u.c(2),{setCenterEl:e}=x();let l;return t[0]!==e?(l=i.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=l):l=t[1],l}function w(t){const e=u.c(3),{children:l}=t,{centerEl:s}=x();if(!s)return null;let o;return e[0]!==s||e[1]!==l?(o=p.createPortal(l,s),e[0]=s,e[1]=l,e[2]=o):o=e[2],o}function H(t){const e=u.c(5),{className:l}=t,{setTabsEl:s}=x();let o;e[0]!==l?(o=T("shrink-0 flex items-center",l),e[0]=l,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==o?(n=i.jsx("div",{ref:s,className:o}),e[2]=s,e[3]=o,e[4]=n):n=e[4],n}function I(t){const e=u.c(3),{children:l}=t,{tabsEl:s}=x();if(!s)return null;let o;return e[0]!==l||e[1]!==s?(o=p.createPortal(l,s),e[0]=l,e[1]=s,e[2]=o):o=e[2],o}function D(t){const e=u.c(5),{className:l}=t,{setTogglesEl:s}=x();let o;e[0]!==l?(o=T("contents",l),e[0]=l,e[1]=o):o=e[1];let n;return e[2]!==s||e[3]!==o?(n=i.jsx("div",{ref:s,className:o}),e[2]=s,e[3]=o,e[4]=n):n=e[4],n}function O(){const t=u.c(2),{setRightEl:e}=x();let l;return t[0]!==e?(l=i.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=l):l=t[1],l}m.Provider=v;m.Header=$;m.LeftColumn=C;m.RightColumn=R;m.Logo=E;m.LogoLink=z;m.CenterSlot=P;m.Center=w;m.TabsSlot=H;m.Tabs=I;m.TogglesSlot=D;m.RightSlot=O;export{B as T,m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,j as c,aH as I,aO as J,aK as Z,cZ as Q,aL as S,c_ as ee,aN as C,bM as $,c$ as te,d0 as G,d1 as oe,d2 as re,aJ as ne,d3 as se,d4 as ae,c as j,m as ie}from"./index-
|
|
1
|
+
import{r as a,j as c,aH as I,aO as J,aK as Z,cZ as Q,aL as S,c_ as ee,aN as C,bM as $,c$ as te,d0 as G,d1 as oe,d2 as re,aJ as ne,d3 as se,d4 as ae,c as j,m as ie}from"./index-B9npqQk3.js";var le=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"}),ce="VisuallyHidden",V=a.forwardRef((o,e)=>c.jsx(I.span,{...o,ref:e,style:{...le,...o.style}}));V.displayName=ce;var ue=V,[O]=ne("Tooltip",[G]),D=G(),z="TooltipProvider",de=700,L="tooltip.open",[pe,k]=O(z),F=o=>{const{__scopeTooltip:e,delayDuration:t=de,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=a.useRef(!0),d=a.useRef(!1),i=a.useRef(0);return a.useEffect(()=>{const p=i.current;return()=>window.clearTimeout(p)},[]),c.jsx(pe,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(i.current),l.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=z;var R="Tooltip",[fe,_]=O(R),Y=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,i=k(R,o.__scopeTooltip),p=D(e),[u,v]=a.useState(null),x=J(),f=a.useRef(0),h=l??i.disableHoverableContent,T=d??i.delayDuration,g=a.useRef(!1),[y,m]=Z({prop:r,defaultProp:n??!1,onChange:H=>{H?(i.onOpen(),document.dispatchEvent(new CustomEvent(L))):i.onClose(),s?.(H)},caller:R}),w=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),M=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(Q,{...p,children:c.jsx(fe,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{i.isOpenDelayedRef.current?M():E()},[i.isOpenDelayedRef,M,E]),onTriggerLeave:a.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};Y.displayName=R;var A="TooltipTrigger",B=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(A,t),s=k(A,t),l=D(t),d=a.useRef(null),i=S(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(ee,{asChild:!0,...l,children:c.jsx(I.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=A;var N="TooltipPortal",[ve,xe]=O(N,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(N,e);return c.jsx(ve,{scope:e,forceMount:t,children:c.jsx($,{present:t||s.open,children:c.jsx(te,{asChild:!0,container:n,children:r})})})};U.displayName=N;var b="TooltipContent",q=a.forwardRef((o,e)=>{const t=xe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx($,{present:r||l.open,children:l.disableHoverableContent?c.jsx(K,{side:n,...s,ref:e}):c.jsx(he,{side:n,...s,ref:e})})}),he=a.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=a.useRef(null),s=S(e,n),[l,d]=a.useState(null),{trigger:i,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ye(y,g.getBoundingClientRect()),w=Ce(y,m),E=be(T.getBoundingClientRect()),P=Ee([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>x(),[x]),a.useEffect(()=>{if(i&&u){const h=g=>f(g,u),T=g=>f(g,i);return i.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{i.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[i,u,f,x]),a.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=i?.contains(g)||u?.contains(g),w=!we(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[i,u,l,p,x]),c.jsx(K,{...o,ref:s})}),[ge,Te]=O(R,{isInside:!1}),me=se("TooltipContent"),K=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,i=_(b,t),p=D(t),{onClose:u}=i;return a.useEffect(()=>(document.addEventListener(L,u),()=>document.removeEventListener(L,u)),[u]),a.useEffect(()=>{if(i.trigger){const v=x=>{x.target?.contains(i.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[i.trigger,u]),c.jsx(oe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(re,{"data-state":i.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(me,{children:r}),c.jsx(ge,{scope:t,isInside:!0,children:c.jsx(ue,{id:i.contentId,role:"tooltip",children:n||r})})]})})});q.displayName=b;var W="TooltipArrow",X=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return Te(W,t).isInside?null:c.jsx(ae,{...n,...r,ref:e})});X.displayName=W;function ye(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ce(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function be(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function we(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],i=e[l],p=d.x,u=d.y,v=i.x,x=i.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ee(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Pe(e)}function Pe(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Re=F,_e=Y,je=B,Oe=U,De=q,Le=X;function Ae(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(Re,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Ne(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Ae,{children:c.jsx(_e,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(je,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function He(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ie("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(Le,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=i):i=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Oe,{children:c.jsxs(De,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,i]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Me as T,le as V,He as a,Ae as b,Ne as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,F as m,K as h,n as y,x as R}from"./index-
|
|
1
|
+
import{c as p,F as m,K as h,n as y,x as R}from"./index-B9npqQk3.js";import{u as S,c as D}from"./studio-tools-CoB4u-70.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],M=new Set(P);function O(o){return M.has(o)}const A={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},v={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},L={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},T={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},x={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},K={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function _(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function w(o){return _(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function I(o){const e=_(o);return e.includes("deepresearch")?!1:q.some(t=>e.includes(t))}function C(o){return o.asyncResearch!==!0&&I(o.modelId)}function F(o){return o.asyncResearch===!0||w(o.modelId)||I(o.modelId)}function u(o,e,t,n){for(const i of t){const s=o.find(a=>a.modelId===i);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const i of t){const s=o.find(a=>a.modelId.includes(i));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const i=o.find(n);if(i)return{keyId:e,modelId:i.modelId,title:i.title}}return null}function b(o,e){const t={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const i=e[n.id]??[],s=n.providerId;t.chat.fast||(t.chat.fast=u(i,n.id,A[s]??[])),t.chat.smart||(t.chat.smart=u(i,n.id,v[s]??[])),t.chat.thinking||(t.chat.thinking=u(i,n.id,L[s]??[])),t.image||(t.image=u(i,n.id,T[s]??[],a=>a.capabilities?.includes("image")===!0)),t.webSearch||(t.webSearch=u(i,n.id,x[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,K[s]??[],F))}return t}function H(o,e){return{queryKey:h.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await D(o,"AI_PROVIDER_KEY_LIST",{})}}function z(){const o=p.c(7),{org:e}=m(),t=S();let n;o[0]!==e.id?(n=h.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let i;o[2]!==t?(i=async()=>await t.call("AI_PROVIDERS_LIST",{}),o[2]=t,o[3]=i):i=o[3];let s;o[4]!==n||o[5]!==i?(s={queryKey:n,staleTime:1/0,queryFn:i},o[4]=n,o[5]=i,o[6]=s):s=o[6];const{data:a}=R(s);return a}function N(){const o=p.c(5),{org:e}=m();let t;o[0]!==e.id||o[1]!==e.slug?(t=H(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=t):t=o[2];const{data:n}=R(t);let i;return o[3]!==n?.keys?(i=n?.keys??[],o[3]=n?.keys,o[4]=i):i=o[4],i}function B(){const o=p.c(2),e=N();let t;return o[0]!==e?(t=e.filter(Q),o[0]=e,o[1]=t):t=o[1],t}function Q(o){return O(o.providerId)}function E(o){const e=p.c(15),{org:t}=m(),n=S();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o??""),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==i||e[7]!==s||e[8]!==a?(r={queryKey:i,enabled:s,staleTime:6e4,queryFn:a},e[6]=i,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function G(o){const e=p.c(8),t=o[0],n=o[1],i=o[2],{models:s}=E(t?.id),{models:a}=E(n?.id),{models:r}=E(i?.id);let l;if(e[0]!==t||e[1]!==n||e[2]!==i||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};t?.id&&(c[t.id]=s),n?.id&&(c[n.id]=a),i?.id&&(c[i.id]=r),l=b(o,c),e[0]=t,e[1]=n,e[2]=i,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function Y(o){const e=p.c(11),{org:t}=m(),n=S();let i;e[0]!==o||e[1]!==t.id?(i=h.aiProviderModels(t.id,o),e[0]=o,e[1]=t.id,e[2]=i):i=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==i||e[7]!==s?(a={queryKey:i,staleTime:6e4,queryFn:s},e[6]=i,e[7]=s,e[8]=a):a=e[8];const{data:r}=R(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{G as a,E as b,F as c,N as d,O as e,z as f,Y as g,C as i,b as p,B as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,F as q,K as T,n as I,o as x,e as y,t as m}from"./index-
|
|
1
|
+
import{c as U,F as q,K as T,n as I,o as x,e as y,t as m}from"./index-B9npqQk3.js";import{S as z,u as J}from"./use-mcp-client-D88A_FLe.js";import{u as Q}from"./studio-tools-CoB4u-70.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function st(t){const e=U.c(12),{org:s}=q(),l=t??z;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==l?(a={connectionId:l,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l,e[3]=a):a=e[3];const i=J(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],I(r)}function it(t){const e=U.c(9),{org:s}=q(),l=Q();let a;e[0]!==s.id||e[1]!==t?(a=T.automations(s.id,t),e[0]=s.id,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==l||e[4]!==t?(i=async()=>(await l.call("AUTOMATION_LIST",t!=null?{virtual_mcp_id:t}:{})).automations,e[3]=l,e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==a||e[7]!==i?(n={queryKey:a,queryFn:i,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n):n=e[8],I(n)}function ot(t){const e=U.c(10),{org:s}=q(),l=Q();let a;e[0]!==t||e[1]!==s.id?(a=T.automation(s.id,t),e[0]=t,e[1]=s.id,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("AUTOMATION_GET",{id:t})).automation,e[3]=t,e[4]=l,e[5]=i):i=e[5];const n=!!t;let o;return e[6]!==a||e[7]!==i||e[8]!==n?(o={queryKey:a,queryFn:i,enabled:n,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n,e[9]=o):o=e[9],I(o)}function at(t,e){const s=U.c(12),{org:l}=q(),a=Q();let i;s[0]!==t||s[1]!==l.id||s[2]!==e?(i=T.automationRunStats(l.id,t,JSON.stringify(e??{})),s[0]=t,s[1]=l.id,s[2]=e,s[3]=i):i=s[3];let n;s[4]!==t||s[5]!==e||s[6]!==a?(n=async()=>await a.call("AUTOMATION_RUN_STATS",{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}),s[4]=t,s[5]=e,s[6]=a,s[7]=n):n=s[7];const o=!!t;let c;return s[8]!==i||s[9]!==n||s[10]!==o?(c={queryKey:i,queryFn:n,enabled:o,staleTime:3e4},s[8]=i,s[9]=n,s[10]=o,s[11]=c):c=s[11],I(c)}function nt(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function lt(){const t=U.c(64),{org:e}=q(),s=Q(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:X},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let A;t[13]!==s?(A=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=A):A=t[14];let p;t[15]!==i||t[16]!==o?(p=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=p):p=t[17];let G;t[18]!==A||t[19]!==p?(G={mutationFn:A,onSuccess:p,onError:W},t[18]=A,t[19]=p,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:H},t[27]=g,t[28]=_,t[29]=$):$=t[29];const k=y($);let S;t[30]!==s?(S=async u=>await s.call("AUTOMATION_TRIGGER_ADD",u),t[30]=s,t[31]=S):S=t[31];let E;t[32]!==i||t[33]!==o?(E=u=>{i(),o(u.automation_id)},t[32]=i,t[33]=o,t[34]=E):E=t[34];let K;t[35]!==S||t[36]!==E?(K={mutationFn:S,onSuccess:E},t[35]=S,t[36]=E,t[37]=K):K=t[37];const P=y(K);let O;t[38]!==s?(O=async u=>await s.call("AUTOMATION_TRIGGER_ROTATE_TOKEN",{trigger_id:u.trigger_id}),t[38]=s,t[39]=O):O=t[39];let R;t[40]!==i||t[41]!==o?(R=(u,f)=>{i(),o(f.automation_id)},t[40]=i,t[41]=o,t[42]=R):R=t[42];let C;t[43]!==O||t[44]!==R?(C={mutationFn:O,onSuccess:R},t[43]=O,t[44]=R,t[45]=C):C=t[45];const h=y(C);let F;t[46]!==s?(F=async u=>await s.call("AUTOMATION_TRIGGER_REMOVE",{trigger_id:u.trigger_id}),t[46]=s,t[47]=F):F=t[47];let N;t[48]!==i||t[49]!==o?(N=(u,f)=>{i(),o(f.automation_id)},t[48]=i,t[49]=o,t[50]=N):N=t[50];let b;t[51]!==F||t[52]!==N?(b={mutationFn:F,onSuccess:N},t[51]=F,t[52]=N,t[53]=b):b=t[53];const v=y(b);let L;t[54]!==s?(L={mutationFn:async u=>await s.call("AUTOMATION_RUN",{id:u}),onSuccess:B,onError:Y},t[54]=s,t[55]=L):L=t[55];const w=y(L);let M;return t[56]!==D||t[57]!==k||t[58]!==w||t[59]!==P||t[60]!==v||t[61]!==h||t[62]!==j?(M={create:D,update:j,remove:k,triggerAdd:P,triggerRemove:v,triggerRotateToken:h,run:w},t[56]=D,t[57]=k,t[58]=w,t[59]=P,t[60]=v,t[61]=h,t[62]=j,t[63]=M):M=t[63],M}function Y(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function B(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function H(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function X(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to create automation: ${e}`)}export{st as a,ot as b,it as c,nt as d,at as e,lt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as T,r as o}from"./index-
|
|
1
|
+
import{c as T,r as o}from"./index-B9npqQk3.js";const y=700;function x(r,l,_){const e=T.c(7),f=y,[a,m]=o.useState(r),[i,S]=o.useState(r),[A,d]=o.useState(!1),t=o.useRef(null);r!==i&&(S(r),A||m(r));let s;e[0]!==f||e[1]!==l?(s=u=>{m(u),d(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,d(!1),l(u)},f)},e[0]=f,e[1]=l,e[2]=s):s=e[2];const p=s;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=u=>{m(u),t.current&&clearTimeout(t.current),t.current=null,d(!1)},e[3]=c):c=e[3];const E=c;let n;return e[4]!==a||e[5]!==p?(n=[a,p,E],e[4]=a,e[5]=p,e[6]=n):n=e[6],n}export{x as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,F as m,n as g,K as p}from"./index-
|
|
1
|
+
import{c as u,F as m,n as g,K as p}from"./index-B9npqQk3.js";const b=new Set(["owner","admin"]);function d(){const e=u.c(11),{org:r,locator:c}=m();let o;e[0]!==c?(o=p.myCapabilities(c),e[0]=c,e[1]=o):o=e[1];let a;e[2]!==r?(a=async()=>{const f=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(r.slug)}`,{credentials:"include"});if(!f.ok)throw new Error(`my-capabilities request failed: ${f.status}`);return await f.json()},e[2]=r,e[3]=a):a=e[3];let i;e[4]!==o||e[5]!==a?(i={queryKey:o,queryFn:a,staleTime:3e4,retry:2},e[4]=o,e[5]=a,e[6]=i):i=e[6];const{data:s,isLoading:l,isError:n}=g(i);let t;return e[7]!==s||e[8]!==n||e[9]!==l?(t={data:s,loading:l,error:n},e[7]=s,e[8]=n,e[9]=l,e[10]=t):t=e[10],t}function _(e){const r=u.c(8),{data:c,loading:o,error:a}=d();if(o){let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!0,error:!1,reason:"loading"},r[0]=t):t=r[0],t}if(a){let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!0,reason:"error"},r[1]=t):t=r[1],t}const i=c?.role??null;if(!i){let t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!1,reason:"denied"},r[2]=t):t=r[2],t}if(i==="owner"){let t;return r[3]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"owner"},r[3]=t):t=r[3],t}if(i==="admin"){let t;return r[4]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"admin"},r[4]=t):t=r[4],t}const s=c?.capabilities?.[e]===!0,l=s?"role":"denied";let n;return r[5]!==s||r[6]!==l?(n={granted:s,loading:!1,error:!1,reason:l},r[5]=s,r[6]=l,r[7]=n):n=r[7],n}function S(){const e=u.c(10),{data:r,loading:c,error:o}=d(),a=r?.role??void 0;let i;e[0]!==a?(i=a?b.has(a):!1,e[0]=a,e[1]=i):i=e[1];const s=i;let l;e[2]!==r?.capabilities?(l=r?.capabilities??{},e[2]=r?.capabilities,e[3]=l):l=e[3];const n=l;let t;return e[4]!==o||e[5]!==s||e[6]!==c||e[7]!==a||e[8]!==n?(t={capabilities:n,loading:c,error:o,isPrivileged:s,roleSlug:a},e[4]=o,e[5]=s,e[6]=c,e[7]=a,e[8]=n,e[9]=t):t=e[9],t}export{S as a,_ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a}from"./AlertCircle-
|
|
1
|
+
import{i as a}from"./AlertCircle-TYVVkJeU.js";import{i as c}from"./CheckCircle-CC4Xh21R.js";import{i as u}from"./DotsVertical-DdiasF4L.js";import{aT as m}from"./agent-icon-BkJC4HZY.js";import{k as b,c as d,r as f}from"./index-B9npqQk3.js";import{a as p}from"./XCircle-CXuc-Uxn.js";const g={requires_action:{label:"Needs review",verb:"Waiting for your review",icon:a,iconClassName:"text-warning",labelColor:"text-warning"},failed:{label:"Failed",verb:"Something went wrong",icon:p,iconClassName:"text-destructive",labelColor:"text-destructive"},expired:{label:"Timed out",verb:"Stopped responding",icon:m,iconClassName:"text-warning",labelColor:"text-warning"},in_progress:{label:"Running",verb:"Agent is working",icon:b,iconClassName:"text-primary",labelColor:"text-primary"},completed:{label:"Done",verb:"Completed",icon:c,iconClassName:"text-muted-foreground/50",labelColor:"text-muted-foreground"}},v={label:"Unknown",verb:"Unknown status",icon:u,iconClassName:"text-muted-foreground",labelColor:"text-muted-foreground"};function $(r){return g[r??"completed"]??v}const i=new Map;function s(r){let t=i.get(r);return t||(t={tick:0,subscribers:new Set,intervalId:null},i.set(r,t)),t}function x(r,t){const e=s(r);return e.subscribers.add(t),e.intervalId===null&&(e.intervalId=setInterval(()=>{e.tick+=1;for(const o of e.subscribers)o()},r)),()=>{e.subscribers.delete(t),e.subscribers.size===0&&e.intervalId!==null&&(clearInterval(e.intervalId),e.intervalId=null)}}function y(r){const t=d.c(3),e=r===void 0?6e4:r;let o,n;return t[0]!==e?(o=l=>x(e,l),n=()=>s(e).tick,t[0]=e,t[1]=o,t[2]=n):(o=t[1],n=t[2]),f.useSyncExternalStore(o,n,C)}function C(){return 0}export{g as S,$ as g,y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,F as C,bd as S,
|
|
1
|
+
import{c as f,F as C,bd as S,e1 as p,bc as T}from"./index-B9npqQk3.js";import{S as I,u as A}from"./use-mcp-client-D88A_FLe.js";function v(t){const o=f.c(20);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i;let l,s,c,d;o[2]!==n?({binding:l,includeVirtual:c,slug:d,...s}=n,o[2]=n,o[3]=l,o[4]=s,o[5]=c,o[6]=d):(l=o[3],s=o[4],c=o[5],d=o[6]);let e;o[7]!==l||o[8]!==s.additionalToolArgs||o[9]!==c||o[10]!==d?(e={...s.additionalToolArgs},l!==void 0&&(e.binding=l),c!==void 0&&(e.include_virtual=c),d!==void 0&&(e.slug=d),o[7]=l,o[8]=s.additionalToolArgs,o[9]=c,o[10]=d,o[11]=e):e=o[11];let g;o[12]!==e?(g=Object.keys(e).length>0?e:void 0,o[12]=e,o[13]=g):g=o[13];let r;o[14]!==s||o[15]!==g?(r={...s,additionalToolArgs:g},o[14]=s,o[15]=g,o[16]=r):r=o[16];const N=r,{org:u}=C();let a;o[17]!==u.id||o[18]!==u.slug?(a={connectionId:I,orgId:u.id,orgSlug:u.slug},o[17]=u.id,o[18]=u.slug,o[19]=a):a=o[19];const O=A(a);return p(u.id,"CONNECTIONS",O,N)}function E(t){const o=f.c(3),{org:i}=C();let n;o[0]!==i.id||o[1]!==i.slug?(n={connectionId:I,orgId:i.id,orgSlug:i.slug},o[0]=i.id,o[1]=i.slug,o[2]=n):n=o[2];const l=A(n);return T(i.id,"CONNECTIONS",t,l)}function _(){const t=f.c(3),{org:o}=C();let i;t[0]!==o.id||t[1]!==o.slug?(i={connectionId:I,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=i):i=t[2];const n=A(i);return S(o.id,"CONNECTIONS",n)}export{E as a,_ as b,v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as i,r as n}from"./index-
|
|
1
|
+
import{c as i,r as n}from"./index-B9npqQk3.js";function p(){const e=i.c(3),[s,a]=n.useState(!1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=async c=>{await navigator.clipboard.writeText(c),a(!0),setTimeout(()=>a(!1),2e3)},e[0]=t):t=e[0];const r=t;let o;return e[1]!==s?(o={handleCopy:r,copied:s},e[1]=s,e[2]=o):o=e[2],o}export{p as u};
|
package/dist/client/assets/{use-create-virtual-mcp-BZMkd898.js → use-create-virtual-mcp-DpDzLWae.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g}from"./index-
|
|
1
|
+
import{c as g}from"./index-B9npqQk3.js";import{b as f}from"./use-virtual-mcp-C4nfOvWc.js";import{c as p}from"./use-navigate-to-agent-BAUFuqoL.js";function A(i){const e=g.c(9);let n;e[0]!==i?(n=i===void 0?{}:i,e[0]=i,e[1]=n):n=e[1];const d=n,{navigateOnCreate:u}=d,c=u===void 0?!1:u,t=f(),r=p();let s;e[2]!==t.create||e[3]!==c||e[4]!==r?(s=async()=>{const l=await t.create.mutateAsync({title:"New Agent",description:"AI-driven assistant designed to handle specific tasks",status:"active",connections:[],pinned:!1});return c&&r(l.id,{search:{main:"instructions"}}),{id:l.id,virtualMcp:l}},e[2]=t.create,e[3]=c,e[4]=r,e[5]=s):s=e[5];const o=s;let a;return e[6]!==t.create.isPending||e[7]!==o?(a={createVirtualMCP:o,isCreating:t.create.isPending},e[6]=t.create.isPending,e[7]=o,e[8]=a):a=e[8],a}export{A as u};
|
package/dist/client/assets/{use-debounced-autosave-Blzii2X5.js → use-debounced-autosave-BdVa5FtM.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as u}from"./index-
|
|
1
|
+
import{r as u}from"./index-B9npqQk3.js";function l({save:t,delayMs:n=1e3}){const e=u.useRef(t);e.current=t;const r=u.useRef(null),c=()=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,e.current()},n)},o=()=>(r.current&&(clearTimeout(r.current),r.current=null),e.current());return u.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null,e.current())},[]),{schedule:c,flush:o}}export{l as u};
|
package/dist/client/assets/{use-debounced-value-C2tRwl1G.js → use-debounced-value-BASrSWg3.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,r as n}from"./index-
|
|
1
|
+
import{c as m,r as n}from"./index-B9npqQk3.js";function p(e,o){const t=m.c(4),[s,u]=n.useState(e);let c,r;return t[0]!==o||t[1]!==e?(c=()=>{const i=setTimeout(()=>u(e),o);return()=>clearTimeout(i)},r=[e,o],t[0]=o,t[1]=e,t[2]=c,t[3]=r):(c=t[2],r=t[3]),n.useEffect(c,r),s}export{p as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as z,b as B,j as t,y as Vt,B as te,r as V,aR as Rt,d as nt,s as Ht,m as K,a as re,t as H,w as Ut,k as De,p as E,F as oe,f as st,u as ot,L as Kt,D as qt,a1 as Gt,a2 as Xt,I as Qt,G as Wt,K as it,o as Yt,n as Jt}from"./index-B9npqQk3.js";import{i as Zt}from"./ChevronRight-BSjdSVNm.js";import{i as en}from"./X-BcWTB26X.js";import{aD as tn,Q as nn,A as gt,g as sn,ae as on}from"./agent-icon-BkJC4HZY.js";import{t as ht}from"./ChevronDown-DpHXwB32.js";import{T as Ce,a as ye,c as Ne}from"./tooltip-kcGiZu6P.js";import{u as pt,d as xt,c as jt}from"./sidebar-BuFyLs3D.js";import{a as at,i as an,f as ln,S as cn,u as rn}from"./use-mcp-client-D88A_FLe.js";import{a as dn,u as un}from"./use-virtual-mcp-C4nfOvWc.js";import{a as Le,b as vt,P as bt}from"./popover-DqPd8WJS.js";import{i as Ee}from"./Check-BDzbzT06.js";import{s as we}from"./Plus-7n57TljD.js";import{i as Ct}from"./SearchMd-DpIls16E.js";import{s as yt}from"./XClose-BCPmotKV.js";import{C as mn}from"./self-tool-result-BbEDg8mP.js";import{T as Nt}from"./toolbar-BcWKUVdT.js";import{S as fn}from"./skeleton-BQFCVo8u.js";import{D as wt,a as _t,b as St,c as gn,g as hn,e as pn,f as xn}from"./drawer-DGMnIv29.js";import{u as kt}from"./use-mobile-FSyJw-g8.js";import{a as jn,G as vn}from"./github-repo-picker-CHSJzmIC.js";import{g as bn,b as Cn,a as Dt}from"./hooks-Ca8QZPOn.js";import{u as yn,g as Nn,a as wn,b as _n}from"./use-navigate-to-agent-BAUFuqoL.js";import{a as Sn,c as It}from"./agent-capabilities-cXfbMfjV.js";import{u as At}from"./shell-layout-COqpNXs0.js";import{f as kn}from"./reusable-new-chat-CouMjkYR.js";import{C as Dn}from"./collection-search-C7rh3ktP.js";import{g as In,a as An,b as Pn,e as Tn}from"./extract-connection-data-BzdJJn3l.js";import{u as Pt,a as Tt,g as zn,C as Ye}from"./connection-card-C8I5Q67K.js";import{e as zt,d as Ot,a as Mt,b as $t,h as On,c as Mn}from"./dialog-Bae-MxD_.js";import{d as W,a as Y,e as J,b as Z,c as ee,F as dt}from"./form-DUcjvD3B.js";import{I as ce}from"./input-BKxcTVd2.js";import{S as $n,a as Fn,b as Bn,c as Ln,d as ke}from"./select-xQgf68lb.js";import{T as En}from"./textarea-Cn0XTkv8.js";import{b as Ft}from"./use-connection-DXYv0Dlt.js";import{n as Be,i as Je}from"./Tool02-Y7HqJxc6.js";import{s as Ze}from"./Star01-DTAIuohm.js";import{c as Vn,i as $e,a as ut,E as Rn,p as Hn,b as Un,d as Kn}from"./connection-form-helpers-CSXI4N5_.js";import{a as et}from"./authenticate-and-persist-oauth-CMEk6iib.js";import{g as qn}from"./connection-slug-eyAPH6o3.js";import{C as Gn}from"./collection-tabs-DPFnfk3X.js";import{u as mt}from"./use-infinite-scroll-BJfoFF98.js";import{B as Fe}from"./badge-DqEA_1WO.js";import{u as Xn}from"./useSuspenseInfiniteQuery-BDnje4nq.js";import{g as Ve}from"./metadata-dUsYcpuu.js";import{u as Qn}from"./studio-tools-CoB4u-70.js";import{u as Wn}from"./use-ai-providers-BcIUouZf.js";const Yn="https://decoims.com/image?src=decocms%2F06b54678-5335-4671-b63a-e13d9e541155%2Fagataesteves.png&quality=original&fit=cover&width=160&height=160";function Jn(){const n=z.c(13),e=B();let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx("img",{src:"/logos/summit/monte-carlo.svg",alt:"Monte Carlo",className:"h-14 w-[112px] shrink-0 self-start object-contain object-left brightness-0 invert"}),n[0]=s):s=n[0];let o;n[1]!==e?(o=e("routes.commerceOnboarding.connectModal.quote"),n[1]=e,n[2]=o):o=n[2];let a;n[3]!==o?(a=t.jsxs("blockquote",{className:"text-lg font-medium leading-[1.45] lg:text-xl",children:["“",o,"”"]}),n[3]=o,n[4]=a):a=n[4];let i;n[5]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("img",{src:Yn,alt:"",className:"size-10 shrink-0 rounded-full object-cover",loading:"lazy"}),n[5]=i):i=n[5];let c;n[6]!==e?(c=e("routes.commerceOnboarding.connectModal.quoteAuthor"),n[6]=e,n[7]=c):c=n[7];let r;n[8]!==c?(r=t.jsxs("figcaption",{className:"flex items-center gap-2.5",children:[i,t.jsx("span",{className:"text-base font-medium",children:c})]}),n[8]=c,n[9]=r):r=n[9];let l;return n[10]!==a||n[11]!==r?(l=t.jsxs("div",{className:"relative flex flex-col gap-8 text-white",children:[s,a,r]}),n[10]=a,n[11]=r,n[12]=l):l=n[12],l}function Zn(){const n=z.c(19),e=B();let s;n[0]!==e?(s=e("routes.commerceOnboarding.connectModal.trustRevoke"),n[0]=e,n[1]=s):s=n[1];let o;n[2]!==s?(o={Icon:tn,label:s},n[2]=s,n[3]=o):o=n[3];let a;n[4]!==e?(a=e("routes.commerceOnboarding.connectModal.trustEncrypted"),n[4]=e,n[5]=a):a=n[5];let i;n[6]!==a?(i={Icon:Vt,label:a},n[6]=a,n[7]=i):i=n[7];let c;n[8]!==e?(c=e("routes.commerceOnboarding.connectModal.trustNeverSold"),n[8]=e,n[9]=c):c=n[9];let r;n[10]!==c?(r={Icon:nn,label:c},n[10]=c,n[11]=r):r=n[11];let l;n[12]!==o||n[13]!==i||n[14]!==r?(l=[o,i,r],n[12]=o,n[13]=i,n[14]=r,n[15]=l):l=n[15];const u=l;let m;n[16]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"h-px w-full bg-white/15"}),n[16]=m):m=n[16];let f;return n[17]!==u?(f=t.jsxs("div",{className:"relative flex flex-col gap-2.5 text-white",children:[m,t.jsx("ul",{className:"mt-1 flex flex-col gap-2.5",children:u.map(es)})]}),n[17]=u,n[18]=f):f=n[18],f}function es(n){const{Icon:e,label:s}=n;return t.jsxs("li",{className:"flex items-center gap-2.5 text-[13px] leading-tight text-white/70",children:[t.jsx(e,{className:"size-4 shrink-0 opacity-85"}),s]},s)}function To(n){const e=z.c(22),{siteHost:s,footer:o,onClose:a,children:i}=n,c=B(),r=s?`https://www.google.com/s2/favicons?domain=${s}&sz=128`:null;let l;e[0]!==a||e[1]!==c?(l=a&&t.jsx("button",{type:"button",onClick:a,"aria-label":c("routes.commerceOnboarding.connectModal.close"),className:"absolute right-3 top-3 z-10 flex size-9 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-black/10 hover:text-foreground lg:text-white/80 lg:hover:bg-white/15 lg:hover:text-white",children:t.jsx(en,{size:18})}),e[0]=a,e[1]=c,e[2]=l):l=e[2];let u,m;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"size-7 shrink-0 dark:hidden"}),m=t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"hidden size-7 shrink-0 dark:block"}),e[3]=u,e[4]=m):(u=e[3],m=e[4]);let f;e[5]!==r||e[6]!==s?(f=s&&t.jsxs(t.Fragment,{children:[t.jsx(Zt,{size:16,className:"shrink-0 text-foreground/25"}),r&&t.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center overflow-hidden rounded bg-white",children:t.jsx("img",{src:r,alt:"",className:"size-full"})}),t.jsx("span",{className:"truncate text-[15px] leading-tight text-muted-foreground",children:s})]}),e[5]=r,e[6]=s,e[7]=f):f=e[7];let d;e[8]!==f?(d=t.jsxs("div",{className:"flex items-center gap-2",children:[u,m,f]}),e[8]=f,e[9]=d):d=e[9];let h;e[10]!==o?(h=t.jsx("div",{className:"flex shrink-0 flex-col gap-3",children:o}),e[10]=o,e[11]=h):h=e[11];let C;e[12]!==i||e[13]!==d||e[14]!==h?(C=t.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 bg-background p-6 lg:p-8",children:[d,i,h]}),e[12]=i,e[13]=d,e[14]=h,e[15]=C):C=e[15];let p,g;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("img",{src:"https://decoims.com/image?src=decocms%2F8191643a-1947-4c30-afb4-36b8073c90fb%2Fbg-quote.png&quality=original&fit=cover&width=880",alt:"",className:"absolute inset-0 size-full object-cover"}),g=t.jsx("div",{className:"absolute inset-0 bg-black/20"}),e[16]=p,e[17]=g):(p=e[16],g=e[17]);let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsxs("aside",{className:"relative hidden shrink-0 overflow-hidden lg:flex lg:w-[440px] lg:flex-col lg:p-14",children:[p,g,t.jsxs("div",{className:"relative z-10 flex h-full flex-col",children:[t.jsx("div",{className:"flex-1"}),t.jsx(Jn,{}),t.jsx("div",{className:"flex-1"}),t.jsx(Zn,{})]})]}),e[18]=j):j=e[18];let v;return e[19]!==l||e[20]!==C?(v=t.jsxs("div",{className:"relative flex min-h-0 flex-1 flex-col lg:flex-row",children:[l,C,j]}),e[19]=l,e[20]=C,e[21]=v):v=e[21],v}function zo(n){const e=z.c(5),{ready:s,pending:o,label:a,onClick:i,children:c}=n,r=o||!s,l=s&&!o?c:null;let u;return e[0]!==a||e[1]!==i||e[2]!==r||e[3]!==l?(u=t.jsxs(te,{type:"button",size:"lg",className:"h-auto min-h-12 w-full whitespace-normal rounded-lg py-3 text-center text-base font-medium leading-tight",onClick:i,disabled:r,children:[a,l]}),e[0]=a,e[1]=i,e[2]=r,e[3]=l,e[4]=u):u=e[4],u}function Bt(){const n=V.useContext(Rt),{data:e,refetch:s}=n.hooks.useListUserInvitations();return{invitations:(e??[]).filter(a=>a.status==="pending"&&new Date(a.expiresAt)>new Date),refetch:()=>s?.()}}function ts(n){let e=0;for(let o=0;o<n.length;o++)e=n.charCodeAt(o)+((e<<5)-e);const s=Math.abs(e)%360;return{backgroundColor:`hsl(${s} 55% 70%)`,color:`hsl(${s} 55% 20%)`}}function lt(n){const e=z.c(13),{org:s,size:o}=n,a=o===void 0?"sm":o,i=a==="xs"?"size-5":"size-6",c=a==="xs"?"text-[9px]":"text-xs";let r;e[0]!==i?(r=K(i,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=i,e[1]=r):r=e[1];let l;e[2]!==s.logo||e[3]!==s.name?(l=s.logo?void 0:ts(s.name),e[2]=s.logo,e[3]=s.name,e[4]=l):l=e[4];let u;e[5]!==s.logo||e[6]!==s.name||e[7]!==c?(u=s.logo?t.jsx("img",{src:s.logo,alt:"",className:"size-full object-cover"}):t.jsx("span",{className:K("font-semibold leading-none",c),children:s.name.slice(0,2).toUpperCase()}),e[5]=s.logo,e[6]=s.name,e[7]=c,e[8]=u):u=e[8];let m;return e[9]!==r||e[10]!==l||e[11]!==u?(m=t.jsx("div",{className:r,style:l,children:u}),e[9]=r,e[10]=l,e[11]=u,e[12]=m):m=e[12],m}function ns({invitation:n,onChanged:e}){const s=B(),[o,a]=V.useState(!1),i=n.organizationName??s("header.orgSwitcher.unknownOrganization"),c=async()=>{a(!0);try{const u=await re.organization.acceptInvitation({invitationId:n.id});if(u.error){H.error(u.error.message),a(!1);return}}catch{H.error(s("header.orgSwitcher.failedToAcceptInvitation")),a(!1);return}H.success(s("header.orgSwitcher.joined",{name:i})),Ut();let l;try{l=(await re.organization.getFullOrganization({query:{organizationId:n.organizationId}}))?.data?.slug}catch{}window.location.href=l?`/${l}`:"/"},r=async()=>{a(!0);try{const l=await re.organization.rejectInvitation({invitationId:n.id});if(l.error){H.error(l.error.message),a(!1);return}H.success(s("header.orgSwitcher.invitationDeclined")),a(!1),e()}catch{H.error(s("header.orgSwitcher.failedToDeclineInvitation")),a(!1)}};return t.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[t.jsx(lt,{org:{name:i},size:"sm"}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"truncate text-sm font-medium",children:i}),t.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[t.jsx(te,{size:"sm",variant:"default",className:"h-7 text-xs",onClick:c,disabled:o,children:s("header.orgSwitcher.accept")}),t.jsx(te,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground",onClick:r,disabled:o,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:i}),children:t.jsx(yt,{size:14})})]})]})}function ss(n){const e=z.c(32),{orgParam:s,onSelectOrg:o,onCreateOrg:a}=n,i=B(),{data:c}=Ht(),{invitations:r,refetch:l}=Bt();let u;e[0]!==s?(u=(I,A)=>I.slug===s?-1:A.slug===s?1:I.name.localeCompare(A.name),e[0]=s,e[1]=u):u=e[1];const m=[...c??[]].sort(u),[f,d]=V.useState(""),h=f.toLowerCase(),C=h?m.filter(I=>I.name.toLowerCase().includes(h)||I.slug.toLowerCase().includes(h)):m;let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(Ct,{size:16,className:"shrink-0 text-muted-foreground/60"}),e[2]=p):p=e[2];let g;e[3]===Symbol.for("react.memo_cache_sentinel")?(g=I=>d(I.target.value),e[3]=g):g=e[3];let j;e[4]!==f?(j=I=>I.key==="Escape"&&f&&d(""),e[4]=f,e[5]=j):j=e[5];let v;e[6]!==i?(v=i("header.orgSwitcher.searchOrganizations"),e[6]=i,e[7]=v):v=e[7];let b;e[8]!==f||e[9]!==j||e[10]!==v?(b=t.jsx("input",{"data-org-switcher-search":!0,autoFocus:!0,type:"text",value:f,onChange:g,onKeyDown:j,placeholder:v,className:"flex-1 min-w-0 bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"}),e[8]=f,e[9]=j,e[10]=v,e[11]=b):b=e[11];let w;e[12]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(we,{size:16}),e[12]=w):w=e[12];let S;e[13]!==a?(S=t.jsx("button",{type:"button",onClick:a,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:w}),e[13]=a,e[14]=S):S=e[14];let D;e[15]!==b||e[16]!==S?(D=t.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 border-b border-border/50",children:[p,b,S]}),e[15]=b,e[16]=S,e[17]=D):D=e[17];const O="flex-1 min-h-0 overflow-y-auto p-1.5 flex flex-col gap-1";let x;e[18]!==r||e[19]!==f||e[20]!==l?(x=!f&&r.map(I=>t.jsx(ns,{invitation:I,onChanged:l},I.id)),e[18]=r,e[19]=f,e[20]=l,e[21]=x):x=e[21];const k=C.length===0&&t.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground/60 text-center",children:f?i("header.orgSwitcher.noOrganizationsMatch",{query:f}):i("header.orgSwitcher.noOrganizationsAvailable")});let T;e[22]!==o||e[23]!==s?(T=I=>t.jsxs("button",{type:"button",onClick:()=>o(I.slug),className:K("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",I.slug===s?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50"),children:[t.jsx(lt,{org:I,size:"sm"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:I.name}),t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:I.slug})]}),I.slug===s&&t.jsx(Ee,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},I.id),e[22]=o,e[23]=s,e[24]=T):T=e[24];const N=C.map(T);let y;e[25]!==x||e[26]!==k||e[27]!==N?(y=t.jsxs("div",{className:O,children:[x,k,N]}),e[25]=x,e[26]=k,e[27]=N,e[28]=y):y=e[28];let P;return e[29]!==y||e[30]!==D?(P=t.jsxs(t.Fragment,{children:[D,y]}),e[29]=y,e[30]=D,e[31]=P):P=e[31],P}function os(n){const e=z.c(22),{trigger:s,orgParam:o,align:a,side:i}=n,c=a===void 0?"start":a,r=i===void 0?"bottom":i,l=nt(),[u,m]=V.useState(!1),[f,d]=V.useState(!1);let h;e[0]!==s?(h=t.jsx(Le,{asChild:!0,children:s}),e[0]=s,e[1]=h):h=e[1];const C=String(u);let p;e[2]!==l?(p=D=>{m(!1),l({to:"/$org",params:{org:D}})},e[2]=l,e[3]=p):p=e[3];let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{m(!1),d(!0)},e[4]=g):g=e[4];let j;e[5]!==o||e[6]!==C||e[7]!==p?(j=t.jsx(ss,{orgParam:o,onSelectOrg:p,onCreateOrg:g},C),e[5]=o,e[6]=C,e[7]=p,e[8]=j):j=e[8];let v;e[9]!==c||e[10]!==r||e[11]!==j?(v=t.jsx(vt,{side:r,align:c,sideOffset:8,collisionPadding:16,className:"w-[300px] p-0 flex flex-col max-h-[440px]",onOpenAutoFocus:as,onCloseAutoFocus:is,children:j}),e[9]=c,e[10]=r,e[11]=j,e[12]=v):v=e[12];let b;e[13]!==u||e[14]!==h||e[15]!==v?(b=t.jsxs(bt,{open:u,onOpenChange:m,children:[h,v]}),e[13]=u,e[14]=h,e[15]=v,e[16]=b):b=e[16];let w;e[17]!==f?(w=t.jsx(mn,{open:f,onOpenChange:d}),e[17]=f,e[18]=w):w=e[18];let S;return e[19]!==w||e[20]!==b?(S=t.jsxs(t.Fragment,{children:[b,w]}),e[19]=w,e[20]=b,e[21]=S):S=e[21],S}function is(n){return n.preventDefault()}function as(n){n.preventDefault(),n.currentTarget?.querySelector("[data-org-switcher-search]")?.focus()}function ls(n){const e=z.c(21),{value:s,onChange:o,placeholder:a,onKeyDown:i,className:c,isSearching:r,disabled:l}=n,u=a===void 0?"Search...":a;let m;e[0]!==c?(m=K("shrink-0 w-full border-b border-border h-12",c),e[0]=c,e[1]=m):m=e[1];const f=l?"cursor-not-allowed opacity-50":"cursor-text";let d;e[2]!==f?(d=K("flex items-center gap-2.5 h-12 px-4",f),e[2]=f,e[3]=d):d=e[3];let h;e[4]!==r?(h=r?t.jsx(De,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):t.jsx(Ct,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=r,e[5]=h):h=e[5];let C;e[6]!==o?(C=v=>o(v.target.value),e[6]=o,e[7]=C):C=e[7];let p;e[8]!==l||e[9]!==i||e[10]!==u||e[11]!==C||e[12]!==s?(p=t.jsx("input",{type:"text",value:s,onChange:C,onKeyDown:i,placeholder:u,disabled:l,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=l,e[9]=i,e[10]=u,e[11]=C,e[12]=s,e[13]=p):p=e[13];let g;e[14]!==d||e[15]!==h||e[16]!==p?(g=t.jsxs("label",{className:d,children:[h,p]}),e[14]=d,e[15]=h,e[16]=p,e[17]=g):g=e[17];let j;return e[18]!==m||e[19]!==g?(j=t.jsx("div",{className:m,children:g}),e[18]=m,e[19]=g,e[20]=j):j=e[20],j}function cs(n,e,s){if(!s)return null;const o=bn(n,e);return o?o.threads.get().find(i=>i.id===s)?.branch??null:null}function rs(n){const e=z.c(6),{value:s,onChange:o}=n,a=B();let i;e[0]!==a?(i=a("sidebar.agentsSection.searchAgents"),e[0]=a,e[1]=i):i=e[1];let c;return e[2]!==o||e[3]!==i||e[4]!==s?(c=t.jsx(ls,{value:s,onChange:o,placeholder:i}),e[2]=o,e[3]=i,e[4]=s,e[5]=c):c=e[5],c}function ds(){const n=z.c(4),e=B();let s;n[0]!==e?(s=e("sidebar.agentsSection.noAgentsFound"),n[0]=e,n[1]=s):s=n[1];let o;return n[2]!==s?(o=t.jsx("div",{className:"flex items-center justify-center py-6 text-xs text-muted-foreground",children:s}),n[2]=s,n[3]=o):o=n[3],o}function us(n){const e=z.c(10),{org:s,onClose:o}=n,a=B();let i;e[0]!==s.slug?(i={org:s.slug},e[0]=s.slug,e[1]=i):i=e[1];let c;e[2]!==o?(c=()=>o(),e[2]=o,e[3]=c):c=e[3];let r;e[4]!==a?(r=a("sidebar.agentsSection.seeAllAgents"),e[4]=a,e[5]=r):r=e[5];let l;return e[6]!==i||e[7]!==c||e[8]!==r?(l=t.jsx("div",{className:"border-t border-border px-3 py-2.5",children:t.jsx(Kt,{to:"/$org/settings/agents",params:i,onClick:c,className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center justify-center",children:r})}),e[6]=i,e[7]=c,e[8]=r,e[9]=l):l=e[9],l}function ms(){const n=z.c(4),e=B();let s;n[0]!==e?(s=e("sidebar.agentsSection.agents"),n[0]=e,n[1]=s):s=n[1];let o;return n[2]!==s?(o=t.jsx(Lt,{children:s}),n[2]=s,n[3]=o):o=n[3],o}function fs(n){const e=z.c(11),{onImportFromGithub:s}=n,o=B();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(vn,{className:"size-3.5"}),e[0]=a):a=e[0];let i;e[1]!==o?(i=o("sidebar.agentsSection.import"),e[1]=o,e[2]=i):i=e[2];let c;e[3]!==s||e[4]!==i?(c=t.jsxs("button",{type:"button",onClick:s,className:"flex items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent/50 hover:text-foreground",children:[a,i]}),e[3]=s,e[4]=i,e[5]=c):c=e[5];let r;e[6]!==o?(r=o("sidebar.agentsSection.codeAgents"),e[6]=o,e[7]=r):r=e[7];let l;return e[8]!==c||e[9]!==r?(l=t.jsx(Lt,{action:c,children:r}),e[8]=c,e[9]=r,e[10]=l):l=e[10],l}function gs(n){const e=z.c(11),{setOpen:s,emptyCtaClass:o}=n,a=B();let i;e[0]!==a?(i=a("sidebar.agentsSection.browseAgents"),e[0]=a,e[1]=i):i=e[1];let c;e[2]!==o?(c=K(o),e[2]=o,e[3]=c):c=e[3];let r;e[4]!==s?(r=()=>{E("agent_browser_opened",{surface:"mobile_drawer"}),s(!0)},e[4]=s,e[5]=r):r=e[5];let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(we,{className:"size-4"}),e[6]=l):l=e[6];let u;return e[7]!==i||e[8]!==c||e[9]!==r?(u=t.jsx(Nt,{"aria-label":i,className:c,onClick:r,children:l}),e[7]=i,e[8]=c,e[9]=r,e[10]=u):u=e[10],u}function hs(n){const e=z.c(17),{setOpen:s,highlightEmpty:o,emptyCtaClass:a}=n,i=B();let c;e[0]!==o||e[1]!==i?(c=o?void 0:i("sidebar.agentsSection.browseAgents"),e[0]=o,e[1]=i,e[2]=c):c=e[2];let r;e[3]!==a?(r=K(a),e[3]=a,e[4]=r):r=e[4];let l;e[5]!==s?(l=()=>{E("agent_browser_opened",{surface:"mobile_drawer"}),s(!0)},e[5]=s,e[6]=l):l=e[6];let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(we,{}),e[7]=u):u=e[7];let m;e[8]!==i?(m=i("sidebar.agentsSection.newAgent"),e[8]=i,e[9]=m):m=e[9];let f;e[10]!==m?(f=t.jsx("span",{children:m}),e[10]=m,e[11]=f):f=e[11];let d;return e[12]!==c||e[13]!==r||e[14]!==l||e[15]!==f?(d=t.jsx(xt,{children:t.jsxs(jt,{tooltip:c,className:r,onClick:l,children:[u,f]})}),e[12]=c,e[13]=r,e[14]=l,e[15]=f,e[16]=d):d=e[16],d}function ps(){const n=z.c(4),e=B();let s;n[0]!==e?(s=e("sidebar.agentsSection.browseAgents"),n[0]=e,n[1]=s):s=n[1];let o;return n[2]!==s?(o=t.jsx(St,{className:"sr-only",children:s}),n[2]=s,n[3]=o):o=n[3],o}function xs(n){const e=z.c(8),{emptyCtaClass:s}=n,o=B();let a;e[0]!==o?(a=o("sidebar.agentsSection.browseAgents"),e[0]=o,e[1]=a):a=e[1];let i;e[2]!==s?(i=K(s),e[2]=s,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(we,{className:"size-4"}),e[4]=c):c=e[4];let r;return e[5]!==a||e[6]!==i?(r=t.jsx(Nt,{"aria-label":a,className:i,children:c}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function js(n){const e=z.c(19),{wrapEmptyHint:s,highlightEmpty:o,emptyCtaClass:a}=n,i=B();let c;e[0]!==o||e[1]!==i?(c=o?void 0:i("sidebar.agentsSection.browseAgents"),e[0]=o,e[1]=i,e[2]=c):c=e[2];let r;e[3]!==a?(r=K(a),e[3]=a,e[4]=r):r=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(we,{}),e[5]=l):l=e[5];let u;e[6]!==i?(u=i("sidebar.agentsSection.newAgent"),e[6]=i,e[7]=u):u=e[7];let m;e[8]!==u?(m=t.jsx("span",{children:u}),e[8]=u,e[9]=m):m=e[9];let f;e[10]!==c||e[11]!==r||e[12]!==m?(f=t.jsx(Le,{asChild:!0,children:t.jsxs(jt,{tooltip:c,className:r,children:[l,m]})}),e[10]=c,e[11]=r,e[12]=m,e[13]=f):f=e[13];let d;e[14]!==f||e[15]!==s?(d=s(f),e[14]=f,e[15]=s,e[16]=d):d=e[16];let h;return e[17]!==d?(h=t.jsx(xt,{children:d}),e[17]=d,e[18]=h):h=e[18],h}function vs(n){const e=z.c(9),{children:s}=n,o=B();let a;e[0]!==s?(a=t.jsx(Ce,{asChild:!0,children:s}),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==o?(i=o("sidebar.agentsSection.selectAnExistingAgent"),e[2]=o,e[3]=i):i=e[3];let c;e[4]!==i?(c=t.jsx(ye,{side:"right",sideOffset:8,children:i}),e[4]=i,e[5]=c):c=e[5];let r;return e[6]!==a||e[7]!==c?(r=t.jsxs(Ne,{defaultOpen:!0,delayDuration:0,children:[a,c]}),e[6]=a,e[7]=c,e[8]=r):r=e[8],r}function bs(n){const e=nt(),{create:s}=Cn(),{locator:o}=oe(),a=st({strict:!1}),i=ot({strict:!1});return async c=>{const r=crypto.randomUUID(),l=c===i.virtualmcpid?cs(n,o,a.taskId??""):null;try{await s({id:r,virtual_mcp_id:c,...l?{branch:l}:{}})}catch{}e({to:"/$org/$taskId",params:{org:n,taskId:r},search:{virtualmcpid:c}})}}function tt(n){const e=z.c(20),{agent:s,selected:o,onClick:a}=n,i=o?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50";let c;e[0]!==i?(c=K("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",i),e[0]=i,e[1]=c):c=e[1];let r;e[2]!==s.icon||e[3]!==s.title?(r=t.jsx(gt,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[2]=s.icon,e[3]=s.title,e[4]=r):r=e[4];let l;e[5]!==s.title?(l=t.jsx("p",{className:"text-sm font-medium truncate",children:s.title}),e[5]=s.title,e[6]=l):l=e[6];let u;e[7]!==s.description?(u=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:s.description}),e[7]=s.description,e[8]=u):u=e[8];let m;e[9]!==l||e[10]!==u?(m=t.jsxs("div",{className:"flex-1 min-w-0",children:[l,u]}),e[9]=l,e[10]=u,e[11]=m):m=e[11];let f;e[12]!==o?(f=o&&t.jsx(Ee,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[12]=o,e[13]=f):f=e[13];let d;return e[14]!==a||e[15]!==c||e[16]!==r||e[17]!==m||e[18]!==f?(d=t.jsxs("button",{type:"button",onClick:a,className:c,children:[r,m,f]}),e[14]=a,e[15]=c,e[16]=r,e[17]=m,e[18]=f,e[19]=d):d=e[19],d}function Lt(n){const e=z.c(5),{children:s,action:o}=n;let a;e[0]!==s?(a=t.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:s}),e[0]=s,e[1]=a):a=e[1];let i;return e[2]!==o||e[3]!==a?(i=t.jsxs("div",{className:"flex items-center justify-between px-3 pb-1 pt-2",children:[a,o]}),e[2]=o,e[3]=a,e[4]=i):i=e[4],i}function Cs(n){const e=z.c(23),{onClose:s,onSelectAgent:o,selectedAgentId:a,onImportFromGithub:i}=n,[c,r]=V.useState(""),l=dn(),u=l??[],{org:m}=oe(),{data:f}=re.useSession(),d=f?.user?.id??"anon",h=Nn(l),C=wn(),p=bs(m.slug),g=Sn(l),j=c.toLowerCase(),v=u.filter(_s).filter(F=>!g.has(F.id)).filter(ws).filter(F=>!c||F.title.toLowerCase().includes(j)),b=v.filter(Ns),w=v.filter(ys),S=at(m.id),D=!c||S.title.toLowerCase().includes(j),O=!!(o&&D);let x;e[0]!==s||e[1]!==o?(x=()=>{o?.(null),s(),r("")},e[0]=s,e[1]=o,e[2]=x):x=e[2];const k=x,T=F=>{if(o){o(F.id),s(),r("");return}_n({orgId:m.id,userId:d},F.id,h),C(),s(),r(""),p(F.id)},N="flex flex-col max-h-[min(640px,80dvh)]";let y;e[3]!==c?(y=t.jsx(rs,{value:c,onChange:r}),e[3]=c,e[4]=y):y=e[4];const P="overflow-y-auto flex-1 min-h-0 p-1.5 flex flex-col gap-0.5",I=o&&D&&S&&t.jsx(tt,{agent:S,selected:!a||a===S.id,onClick:k}),A=(b.length>0||!c)&&t.jsx(fs,{onImportFromGithub:i}),M=b.map(F=>t.jsx(tt,{agent:F,selected:o?a===F.id:void 0,onClick:()=>T(F)},F.id)),R=w.length>0&&t.jsx(ms,{}),X=w.map(F=>t.jsx(tt,{agent:F,selected:o?a===F.id:void 0,onClick:()=>T(F)},F.id));let L;e[5]!==O||e[6]!==c||e[7]!==v.length?(L=v.length===0&&!O&&c&&t.jsx(ds,{}),e[5]=O,e[6]=c,e[7]=v.length,e[8]=L):L=e[8];let ne;e[9]!==L||e[10]!==I||e[11]!==A||e[12]!==M||e[13]!==R||e[14]!==X?(ne=t.jsxs("div",{className:P,children:[I,A,M,R,X,L]}),e[9]=L,e[10]=I,e[11]=A,e[12]=M,e[13]=R,e[14]=X,e[15]=ne):ne=e[15];let q;e[16]!==s||e[17]!==m?(q=t.jsx(us,{org:m,onClose:s}),e[16]=s,e[17]=m,e[18]=q):q=e[18];let de;return e[19]!==ne||e[20]!==q||e[21]!==y?(de=t.jsxs("div",{className:N,children:[y,ne,q]}),e[19]=ne,e[20]=q,e[21]=y,e[22]=de):de=e[22],de}function ys(n){return!It(n.metadata)}function Ns(n){return It(n.metadata)}function ws(n){return!ln(n.id)}function _s(n){return!an(n.id)}function Ss(n){const e=z.c(31);let s;e[0]!==n?(s=n===void 0?{}:n,e[0]=n,e[1]=s):s=e[1];const{compact:o,trigger:a,onSelectAgent:i,selectedAgentId:c,side:r,align:l}=s,u=o===void 0?!1:o,m=r===void 0?"right":r,f=l===void 0?"start":l,[d,h]=V.useState(!1),[C,p]=V.useState(!1),g=kt(),{setOpenMobile:j}=pt(),v=yn(),b=v?"border border-border":void 0;let w;e[2]!==v?(w=A=>v?t.jsx(vs,{children:A}):A,e[2]=v,e[3]=w):w=e[3];const S=w;let D;e[4]!==g||e[5]!==j?(D=()=>{h(!1),g&&j(!1)},e[4]=g,e[5]=j,e[6]=D):D=e[6];const O=D;let x;e[7]!==O?(x=()=>{O(),p(!0)},e[7]=O,e[8]=x):x=e[8];const k=x;let T;e[9]!==O||e[10]!==k||e[11]!==i||e[12]!==d||e[13]!==c?(T=d&&t.jsx(V.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center py-8",children:t.jsx(fn,{className:"h-4 w-24"})}),children:t.jsx(Cs,{onClose:O,onSelectAgent:i,selectedAgentId:c,onImportFromGithub:k})}),e[9]=O,e[10]=k,e[11]=i,e[12]=d,e[13]=c,e[14]=T):T=e[14];const N=T;let y;e[15]!==f||e[16]!==u||e[17]!==b||e[18]!==v||e[19]!==g||e[20]!==d||e[21]!==N||e[22]!==m||e[23]!==a||e[24]!==S?(y=g?t.jsxs(t.Fragment,{children:[a?t.jsx("button",{type:"button",onClick:()=>h(!0),className:"contents",children:a}):u?S(t.jsx(gs,{setOpen:h,emptyCtaClass:b})):t.jsx(hs,{setOpen:h,highlightEmpty:v,emptyCtaClass:b}),t.jsx(wt,{open:d,onOpenChange:h,direction:"bottom",children:t.jsxs(_t,{className:"max-h-[85dvh] p-0",children:[t.jsx(ps,{}),N]})})]}):t.jsxs(bt,{open:d,onOpenChange:A=>{A&&!d&&E("agent_browser_opened",{surface:"desktop_popover"}),h(A)},children:[a?t.jsx(Le,{asChild:!0,children:a}):u?S(t.jsx(Le,{asChild:!0,children:t.jsx(xs,{emptyCtaClass:b})})):t.jsx(js,{wrapEmptyHint:S,highlightEmpty:v,emptyCtaClass:b}),t.jsx(vt,{className:"w-[380px] p-0 overflow-hidden",side:m,align:f,children:N})]}),e[15]=f,e[16]=u,e[17]=b,e[18]=v,e[19]=g,e[20]=d,e[21]=N,e[22]=m,e[23]=a,e[24]=S,e[25]=y):y=e[25];let P;e[26]!==C?(P=t.jsx(jn,{open:C,onOpenChange:p,mode:"agent"}),e[26]=C,e[27]=P):P=e[27];let I;return e[28]!==P||e[29]!==y?(I=t.jsxs(t.Fragment,{children:[y,P]}),e[28]=P,e[29]=y,e[30]=I):I=e[30],I}const ks="inline-flex items-center gap-1.5 min-w-0 rounded-md pl-1 pr-2 py-1.5 text-sm text-foreground hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50";function Ds(n){const e=z.c(29),{agentId:s,fallback:o,onOpenHome:a,onPick:i}=n,c=B(),r=un(s)??o??null;let l,u,m,f,d;e[0]!==r?.title||e[1]!==a||e[2]!==c?(d=r?.title??c("header.shellBreadcrumb.superAgentDefaultName"),f="flex min-w-0 items-center gap-0",l="button",u=a,m=c("header.shellBreadcrumb.openAgentHome",{name:d}),e[0]=r?.title,e[1]=a,e[2]=c,e[3]=l,e[4]=u,e[5]=m,e[6]=f,e[7]=d):(l=e[3],u=e[4],m=e[5],f=e[6],d=e[7]);const h=r?.icon??null;let C;e[8]!==h||e[9]!==d?(C=t.jsx(gt,{icon:h,name:d,size:"xs"}),e[8]=h,e[9]=d,e[10]=C):C=e[10];let p;e[11]!==l||e[12]!==u||e[13]!==m||e[14]!==C?(p=t.jsx("button",{type:l,onClick:u,"aria-label":m,className:"flex items-center shrink-0 rounded-md p-1 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:C}),e[11]=l,e[12]=u,e[13]=m,e[14]=C,e[15]=p):p=e[15];let g;e[16]!==d?(g=t.jsx("span",{className:"truncate font-medium max-w-[8rem]",children:d}),e[16]=d,e[17]=g):g=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(ht,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[18]=j):j=e[18];let v;e[19]!==g?(v=t.jsxs("button",{type:"button",className:ks,children:[g,j]}),e[19]=g,e[20]=v):v=e[20];let b;e[21]!==s||e[22]!==i||e[23]!==v?(b=t.jsx(Ss,{side:"bottom",align:"start",selectedAgentId:s,onSelectAgent:i,trigger:v}),e[21]=s,e[22]=i,e[23]=v,e[24]=b):b=e[24];let w;return e[25]!==b||e[26]!==f||e[27]!==p?(w=t.jsxs("div",{className:f,children:[p,b]}),e[25]=b,e[26]=f,e[27]=p,e[28]=w):w=e[28],w}function Oo(n){const e=z.c(30);let s;e[0]!==n?(s=n===void 0?{}:n,e[0]=n,e[1]=s):s=e[1];const{showName:o}=s,a=B(),{org:i}=oe(),{state:c,isMobile:r}=pt(),l=Bt().invitations.length>0,u=c==="collapsed"||r;let m;e[2]!==l||e[3]!==i.name||e[4]!==a?(m=l?a("header.shellBreadcrumb.switchOrganizationPendingInvitation",{name:i.name}):a("header.shellBreadcrumb.switchOrganization",{name:i.name}),e[2]=l,e[3]=i.name,e[4]=a,e[5]=m):m=e[5];let f;e[6]!==i?(f=t.jsx(lt,{org:i,size:"sm"}),e[6]=i,e[7]=f):f=e[7];let d;e[8]!==l||e[9]!==u?(d=l&&t.jsx("span",{className:K("absolute -right-1 size-2.5 rounded-full bg-destructive ring-2 ring-background",u?"-top-1":"top-1/2 -translate-y-1/2")}),e[8]=l,e[9]=u,e[10]=d):d=e[10];let h;e[11]!==f||e[12]!==d?(h=t.jsxs("span",{className:"relative inline-flex",children:[f,d]}),e[11]=f,e[12]=d,e[13]=h):h=e[13];let C;e[14]!==i.name||e[15]!==o?(C=o&&t.jsx("span",{className:"truncate text-sm font-medium text-foreground max-w-[10rem]",children:i.name}),e[14]=i.name,e[15]=o,e[16]=C):C=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(ht,{size:14,className:"shrink-0 text-muted-foreground opacity-70"}),e[17]=p):p=e[17];let g;e[18]!==m||e[19]!==h||e[20]!==C?(g=t.jsx(Ce,{asChild:!0,children:t.jsxs("button",{type:"button","aria-label":m,className:"flex items-center gap-1.5 shrink-0 rounded-lg pl-[5px] pr-1.5 py-1.5 hover:bg-accent/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:[h,C,p]})}),e[18]=m,e[19]=h,e[20]=C,e[21]=g):g=e[21];let j;e[22]!==i.slug||e[23]!==g?(j=t.jsx(os,{orgParam:i.slug,trigger:g}),e[22]=i.slug,e[23]=g,e[24]=j):j=e[24];let v;e[25]!==i.name?(v=t.jsx(ye,{side:"bottom",children:i.name}),e[25]=i.name,e[26]=v):v=e[26];let b;return e[27]!==v||e[28]!==j?(b=t.jsxs(Ne,{children:[j,v]}),e[27]=v,e[28]=j,e[29]=b):b=e[29],b}function Mo(n){const e=z.c(22);let s;e[0]!==n?(s=n===void 0?{}:n,e[0]=n,e[1]=s):s=e[1];const{onNavigate:o}=s,{org:a}=oe();let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[2]=i):i=e[2];const c=st(i);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[3]=r):r=e[3];const l=ot(r),{threads:u}=Dt(),{data:m}=re.useSession(),{setTaskId:f,createNewTask:d}=At();let h;e[4]!==a.id?(h=at(a.id),e[4]=a.id,e[5]=h):h=e[5];const C=h,p=C.id,g=c.taskId?l.virtualmcpid??p:p;let j;e[6]!==d||e[7]!==p||e[8]!==o||e[9]!==m?.user?.id||e[10]!==f||e[11]!==u?(j=O=>{const x=O??p,k=kn(u,x,m?.user?.id);k?f(k.id,x):d(x),o?.()},e[6]=d,e[7]=p,e[8]=o,e[9]=m?.user?.id,e[10]=f,e[11]=u,e[12]=j):j=e[12];const v=j;let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"h-5 w-24 rounded bg-muted animate-pulse"}),e[13]=b):b=e[13];const w=g===p?C:void 0;let S;e[14]!==g||e[15]!==v?(S=()=>v(g),e[14]=g,e[15]=v,e[16]=S):S=e[16];let D;return e[17]!==g||e[18]!==v||e[19]!==w||e[20]!==S?(D=t.jsx(V.Suspense,{fallback:b,children:t.jsx(Ds,{agentId:g,fallback:w,onOpenHome:S,onPick:v})}),e[17]=g,e[18]=v,e[19]=w,e[20]=S,e[21]=D):D=e[21],D}function $o(){const n=z.c(24),e=B(),{org:s}=oe();let o;n[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},n[0]=o):o=n[0];const a=st(o);let i;n[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},n[1]=i):i=n[1];const c=ot(i),{threads:r}=Dt(),{createNewTask:l}=At();let u;n[2]!==s.id?(u=at(s.id),n[2]=s.id,n[3]=u):u=n[3];const m=u.id,f=a.taskId?c.virtualmcpid??m:m;let d;n[4]!==a.taskId||n[5]!==r?(d=(a.taskId?r.find(D=>D.id===a.taskId)?.branch:null)??null,n[4]=a.taskId,n[5]=r,n[6]=d):d=n[6];const h=d;let C;n[7]!==f||n[8]!==l||n[9]!==h?(C=()=>{l(f,h)},n[7]=f,n[8]=l,n[9]=h,n[10]=C):C=n[10];const p=C;let g;n[11]!==e?(g=e("sidebar.taskGroupsList.newChat"),n[11]=e,n[12]=g):g=n[12];let j;n[13]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(sn,{size:16}),n[13]=j):j=n[13];let v;n[14]!==p||n[15]!==g?(v=t.jsx(Ce,{asChild:!0,children:t.jsx("button",{type:"button",onClick:p,"aria-label":g,className:"flex shrink-0 items-center rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:j})}),n[14]=p,n[15]=g,n[16]=v):v=n[16];let b;n[17]!==e?(b=e("sidebar.taskGroupsList.newChat"),n[17]=e,n[18]=b):b=n[18];let w;n[19]!==b?(w=t.jsx(ye,{side:"bottom",children:b}),n[19]=b,n[20]=w):w=n[20];let S;return n[21]!==v||n[22]!==w?(S=t.jsxs(Ne,{children:[v,w]}),n[21]=v,n[22]=w,n[23]=S):S=n[23],S}function Is({open:n,onOpenChange:e,onCreated:s}){const o=B(),{org:a}=oe(),{data:i}=re.useSession(),{stdioEnabled:c}=qt(),r=kt(),l=Ft(),u=Pt(),f=Tt(u,"").items,d=Gt({resolver:Xt(Vn),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),h=d.watch("ui_type"),C=d.watch("connection_url"),p=d.watch("npx_package"),g=$e({uiType:h,connectionUrl:C??"",npxPackage:p??""})??ut({uiType:h,connectionUrl:C??"",registryItems:f}),j=x=>{const k=x.trim();if(!k)return;const T=!!d.formState.dirtyFields.title,N=!!d.formState.dirtyFields.description,y=!!d.formState.dirtyFields.env_vars,P=A=>{if(A&&(!T&&!d.getValues("title").trim()&&A.title&&d.setValue("title",A.title,{shouldDirty:!1}),!N&&!(d.getValues("description")??"").trim()&&A.description&&d.setValue("description",A.description,{shouldDirty:!1}),!y&&A.envVarKeys?.length)){const M=d.getValues("env_vars")??[],R=new Set(M.map(L=>L.key)),X=A.envVarKeys.filter(L=>!R.has(L));X.length>0&&d.setValue("env_vars",[...M,...X.map(L=>({key:L,value:""}))],{shouldDirty:!0})}},I=Hn(k);if(I&&c){d.setValue("ui_type","NPX",{shouldDirty:!0}),d.setValue("npx_package",I.packageName,{shouldDirty:!0}),d.setValue("connection_url","",{shouldDirty:!0}),d.setValue("connection_token",null,{shouldDirty:!0}),P($e({uiType:"NPX",npxPackage:I.packageName}));return}if(k.startsWith("http://")||k.startsWith("https://")){const A=h==="HTTP"||h==="SSE"||h==="Websocket"?h:"HTTP";d.setValue("ui_type",A,{shouldDirty:!0}),d.setValue("connection_url",k,{shouldDirty:!0}),P($e({uiType:A,connectionUrl:k})??ut({uiType:A,connectionUrl:k,registryItems:f}));return}h==="NPX"&&P($e({uiType:"NPX",npxPackage:k}))},v=x=>{x||d.reset(),e(x)},b=async x=>{let k,T=null,N=null,y=null;x.ui_type==="NPX"?(k="STDIO",T="",y=Un(x.npx_package||"",x.env_vars||[])):x.ui_type==="STDIO"?(k="STDIO",T="",y=Kn(x.stdio_command||"",x.stdio_args||"",x.stdio_cwd,x.env_vars||[])):(k=x.ui_type,T=x.connection_url||"",N=x.connection_token||null);const P=In("conn");try{await l.create.mutateAsync({id:P,title:x.title,description:x.description||null,connection_type:k,connection_url:T,connection_token:N,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:i?.user?.id||"system",organization_id:a.id,icon:x.icon??null,app_name:null,app_id:null,connection_headers:y,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),d.reset(),e(!1),s?.(P)}catch{H.error(o("connections.createConnectionDialog.failedToCreateConnection"))}},w=o("connections.createConnectionDialog.title"),S=o("connections.createConnectionDialog.description"),D=d.formState.isSubmitting?o("connections.createConnectionDialog.saving"):o("connections.createConnectionDialog.createButton"),O=t.jsxs("div",{className:"grid gap-4",children:[t.jsx(W,{control:d.control,name:"ui_type",render:({field:x})=>t.jsxs(Y,{children:[t.jsx(J,{children:o("connections.createConnectionDialog.typeLabel")}),t.jsxs($n,{value:x.value,onValueChange:x.onChange,children:[t.jsx(Z,{children:t.jsx(Fn,{children:t.jsx(Bn,{})})}),t.jsxs(Ln,{children:[t.jsx(ke,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Ze,{className:"w-4 h-4"}),o("connections.createConnectionDialog.httpType")]})}),t.jsx(ke,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Ze,{className:"w-4 h-4"}),o("connections.createConnectionDialog.sseType")]})}),t.jsx(ke,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Ze,{className:"w-4 h-4"}),o("connections.createConnectionDialog.websocketType")]})}),c&&t.jsxs(t.Fragment,{children:[t.jsx(ke,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Be,{className:"w-4 h-4"}),o("connections.createConnectionDialog.npxPackageType")]})}),t.jsx(ke,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(on,{className:"w-4 h-4"}),o("connections.createConnectionDialog.customCommandType")]})})]})]})]}),t.jsx(ee,{})]})}),h==="NPX"&&t.jsx(W,{control:d.control,name:"npx_package",render:({field:x})=>t.jsxs(Y,{children:[t.jsx(J,{children:o("connections.createConnectionDialog.npmPackageLabel")}),t.jsx(Z,{children:t.jsx(ce,{placeholder:o("connections.createConnectionDialog.npmPackagePlaceholder"),...x,value:x.value??"",onPaste:k=>{const T=k.clipboardData.getData("text");T&&(k.preventDefault(),d.setValue("npx_package",T.trim(),{shouldDirty:!0}),j(T))},onBlur:k=>{j(k.target.value),x.onBlur()}})}),t.jsx(ee,{})]})}),h==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[t.jsx(W,{control:d.control,name:"stdio_command",render:({field:x})=>t.jsxs(Y,{children:[t.jsx(J,{children:o("connections.createConnectionDialog.commandLabel")}),t.jsx(Z,{children:t.jsx(ce,{placeholder:o("connections.createConnectionDialog.commandPlaceholder"),...x,value:x.value??""})}),t.jsx(ee,{})]})}),t.jsx(W,{control:d.control,name:"stdio_args",render:({field:x})=>t.jsxs(Y,{children:[t.jsx(J,{children:o("connections.createConnectionDialog.argumentsLabel")}),t.jsx(Z,{children:t.jsx(ce,{placeholder:o("connections.createConnectionDialog.argumentsPlaceholder"),...x,value:x.value??""})}),t.jsx(ee,{})]})})]}),t.jsx(W,{control:d.control,name:"stdio_cwd",render:({field:x})=>t.jsxs(Y,{children:[t.jsx(J,{children:o("connections.createConnectionDialog.workingDirectoryLabel")}),t.jsx(Z,{children:t.jsx(ce,{placeholder:o("connections.createConnectionDialog.workingDirectoryPlaceholder"),...x,value:x.value??""})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("connections.createConnectionDialog.workingDirectoryDescription")}),t.jsx(ee,{})]})})]}),(h==="NPX"||h==="STDIO")&&t.jsx(W,{control:d.control,name:"env_vars",render:({field:x})=>t.jsxs(Y,{children:[t.jsx(J,{children:o("connections.createConnectionDialog.environmentVariablesLabel")}),t.jsx(Z,{children:t.jsx(Rn,{value:x.value??[],onChange:x.onChange})}),t.jsx(ee,{})]})}),h!=="NPX"&&h!=="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsx(W,{control:d.control,name:"connection_url",render:({field:x})=>t.jsxs(Y,{children:[t.jsx(J,{children:o("connections.createConnectionDialog.urlLabel")}),t.jsx(Z,{children:t.jsx(ce,{placeholder:o("connections.createConnectionDialog.urlPlaceholder"),...x,value:x.value??"",onPaste:k=>{const T=k.clipboardData.getData("text");T&&(k.preventDefault(),d.setValue("connection_url",T.trim(),{shouldDirty:!0}),j(T))},onBlur:k=>{j(k.target.value),x.onBlur()}})}),t.jsx(ee,{})]})}),t.jsx(W,{control:d.control,name:"connection_token",render:({field:x})=>t.jsxs(Y,{children:[t.jsx(J,{children:g?.token?.label??o("connections.createConnectionDialog.tokenLabelDefault")}),t.jsx(Z,{children:t.jsx(ce,{type:"password",placeholder:g?.token?.placeholder??o("connections.createConnectionDialog.tokenPlaceholderDefault"),className:"ph-no-capture",...x,value:x.value??""})}),g?.token?.helperText&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[g.token.helperText,g.id==="github"&&t.jsxs(t.Fragment,{children:[" ","·"," ",t.jsx("a",{className:"text-foreground underline underline-offset-4 hover:text-foreground/80",href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noreferrer",children:o("connections.createConnectionDialog.openGitHubPatSettings")})]})]}),t.jsx(ee,{})]})})]}),t.jsx(W,{control:d.control,name:"title",render:({field:x})=>t.jsxs(Y,{children:[t.jsx(J,{children:o("connections.createConnectionDialog.nameLabel")}),t.jsx(Z,{children:t.jsx(ce,{placeholder:o("connections.createConnectionDialog.namePlaceholder"),...x})}),t.jsx(ee,{})]})}),t.jsx(W,{control:d.control,name:"description",render:({field:x})=>t.jsxs(Y,{children:[t.jsx(J,{children:o("connections.createConnectionDialog.descriptionLabel")}),t.jsx(Z,{children:t.jsx(En,{placeholder:o("connections.createConnectionDialog.descriptionPlaceholder"),rows:3,...x,value:x.value??""})}),t.jsx(ee,{})]})})]});return r?t.jsx(wt,{open:n,onOpenChange:v,children:t.jsxs(_t,{className:"max-h-[90vh]",children:[t.jsx(gn,{className:"pb-2",children:t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[t.jsxs("div",{className:"flex-1 text-left",children:[t.jsx(St,{children:w}),t.jsx(hn,{className:"mt-1",children:S})]}),t.jsx(pn,{asChild:!0,children:t.jsx(te,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1",children:t.jsx(yt,{size:16})})})]})}),t.jsx(dt,{...d,children:t.jsxs("form",{onSubmit:d.handleSubmit(b),children:[t.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:O}),t.jsx(xn,{children:t.jsx(te,{type:"submit",disabled:d.formState.isSubmitting,className:"w-full",children:D})})]})})]})}):t.jsx(zt,{open:n,onOpenChange:v,children:t.jsxs(Ot,{className:"sm:max-w-[525px]",children:[t.jsxs(Mt,{children:[t.jsx($t,{children:w}),t.jsx(On,{children:S})]}),t.jsx(dt,{...d,children:t.jsxs("form",{onSubmit:d.handleSubmit(b),children:[t.jsx("div",{className:"py-4",children:O}),t.jsxs(Mn,{children:[t.jsx(te,{type:"button",variant:"outline",onClick:()=>v(!1),children:o("connections.createConnectionDialog.cancelButton")}),t.jsx(te,{type:"submit",disabled:d.formState.isSubmitting,className:"min-w-40",children:D})]})]})})]})})}function As(n){const e=z.c(72),{mode:s,agentId:o,addedConnectionIds:a,onAdd:i,onCloneAndAdd:c,onConnectAndAdd:r,connectingItemId:l,search:u,onCreateConnection:m,onBrowseNavigate:f,defaultTab:d}=n,h=s===void 0?"add":s,C=d===void 0?"connected":d,p=B(),{org:g}=oe(),j=V.useDeferredValue(u),v=u!==j;let b;e[0]!==j?(b=j.trim().toLowerCase(),e[0]=j,e[1]=b):b=e[1];const w=b;let S;e[2]!==C?(S=_=>_??C,e[2]=C,e[3]=S):S=e[3];const[D,O]=Qt(Wt.connectionsTab(g.slug)+(C==="all"?":home-modal":":agent-modal"),S);let x;e[4]!==D||e[5]!==O?(x=_=>{_!==D&&E("connections_dialog_tab_changed",{to_tab:_}),O(_)},e[4]=D,e[5]=O,e[6]=x):x=e[6];const k=x;let T;e[7]!==g.id||e[8]!==g.slug?(T={connectionId:cn,orgId:g.id,orgSlug:g.slug},e[7]=g.id,e[8]=g.slug,e[9]=T):T=e[9];const N=rn(T),y=j?.trim().split(/\s+/).filter(Boolean)??[],P=y.length>0?{operator:"or",conditions:y.flatMap(Bs)}:void 0,I={...P&&{where:P},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:0},A=JSON.stringify(I),{data:M,fetchNextPage:R,hasNextPage:X,isFetchingNextPage:L}=Xn({queryKey:it.collectionListInfinite(N,g.id,"","CONNECTIONS",A),queryFn:async _=>{const{pageParam:$}=_,se=$===void 0?0:$;return(await N.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...P&&{where:P},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:se}})).structuredContent},initialPageParam:0,getNextPageParam:$s,staleTime:3e4}),ne=M?.pages.flatMap(Ms)??[],q=zn(ne),de=new Set(ne.filter(Os).map(zs)),F=Pt(),ie=Tt(F,j),Re=mt(ie.loadMore,ie.hasMore,ie.isLoadingMore),He=mt(R,X??!1,L),G=D==="all"||!!w,ct=G?ie.items.filter(_=>{const $=An(_);if($&&de.has($))return!1;if(!w)return!0;const se=Ve(_._meta),ae=[_.title,_.description,_.name,_.server?.title,_.server?.description,_.server?.name,se?.friendly_name,se?.friendlyName].filter(Boolean).join(" ").toLowerCase();return y.some(Q=>ae.includes(Q.toLowerCase()))}):[],_e=ct.filter(Ts),Se=ct.filter(Ps);let Ie;e[10]!==a?(Ie=_=>_.some($=>a.has($.id)),e[10]=a,e[11]=Ie):Ie=e[11];const Ue=Ie;let Ae;e[12]!==a||e[13]!==o||e[14]!==l||e[15]!==Ue||e[16]!==h||e[17]!==i||e[18]!==f||e[19]!==c||e[20]!==p?(Ae=(_,$,se,ae,Q)=>{const Me=Ue(Q),be=Q.find(le=>!a.has(le.id)),U=Q[0];if(h==="browse"){const le=qn(U);return t.jsx(Ye,{connection:{title:$,icon:se,description:Q.length>1?`${Q.length} instances`:ae??void 0},fallbackIcon:t.jsx(Be,{}),headerActionsAlwaysVisible:!0,headerActions:t.jsxs(Fe,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[t.jsx(Ee,{size:11})," ",p("virtualMcp.connectionDialogContent.connected")]}),onClick:()=>{E("connection_browse_clicked",{app_name:U.app_name??null,connection_id:U.id,instances_count:Q.length}),f?.(le)}},_)}return t.jsx(Ye,{connection:{title:$,icon:se,description:ae},fallbackIcon:t.jsx(Be,{}),headerActionsAlwaysVisible:!0,headerActions:t.jsxs("div",{className:"flex items-center gap-1.5",children:[Me&&t.jsxs(Fe,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[t.jsx(Ee,{size:11})," ",p("virtualMcp.connectionDialogContent.added")]}),t.jsx(te,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:l!==null,onClick:le=>{le.stopPropagation(),be?(E("connection_add_clicked",{action:"use_existing",app_name:U.app_name??null,connection_id:be.id}),o&&E("agent_connection_attached",{agent_id:o,connection_id:be.id,app_name:U.app_name??null,mode:"existing"}),i(be.id)):(E("connection_add_clicked",{action:"clone",app_name:U.app_name??null,base_connection_id:U.id}),c(U))},children:p("virtualMcp.connectionDialogContent.add")})]})},_)},e[12]=a,e[13]=o,e[14]=l,e[15]=Ue,e[16]=h,e[17]=i,e[18]=f,e[19]=c,e[20]=p,e[21]=Ae):Ae=e[21];const Pe=Ae;let Te;e[22]!==l||e[23]!==h||e[24]!==r||e[25]!==p?(Te=_=>{const $=Ve(_._meta),se=$?.friendlyName||$?.friendly_name||_.server?.title||_.title||_.server?.name||_.name||_.id||"",ae=_.server?.description||_.description||null,Q=_.server?.icons?.[0]?.src||Pn(_.server?.repository)||null,Me=$?.official===!0,be=$?.verified===!0,U=$?.owner==="deco";return t.jsx(Ye,{connection:{title:se,description:ae,icon:Q},fallbackIcon:t.jsx(Be,{}),headerActionsAlwaysVisible:!0,headerActions:t.jsxs("div",{className:"flex items-center gap-1.5",children:[U&&t.jsxs(Ne,{children:[t.jsx(Ce,{asChild:!0,children:t.jsx("span",{className:"inline-flex items-center justify-center size-5 rounded-md bg-muted shrink-0",children:t.jsx("img",{src:"/logos/deco logo.svg",alt:p("virtualMcp.connectionDialogContent.madeByDeco"),className:"size-3"})})}),t.jsx(ye,{children:p("virtualMcp.connectionDialogContent.builtByDeco")})]}),!U&&Me&&t.jsxs(Ne,{children:[t.jsx(Ce,{asChild:!0,children:t.jsx(Fe,{variant:"outline",size:"icon",children:t.jsx(Je,{})})}),t.jsx(ye,{children:p("virtualMcp.connectionDialogContent.builtByOfficial")})]}),!U&&!Me&&be&&t.jsxs(Ne,{children:[t.jsx(Ce,{asChild:!0,children:t.jsx(Fe,{variant:"outline",size:"icon",children:t.jsx(Je,{})})}),t.jsx(ye,{children:p("virtualMcp.connectionDialogContent.verifiedByDeco")})]}),t.jsx(te,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:l!==null,onClick:le=>{le.stopPropagation(),E("connection_add_clicked",{action:"connect_new",registry_item_id:_.id,app_name:$?.friendlyName||_.server?.name||_.name||null}),r(_)},children:l===_.id?t.jsx(De,{size:14,className:"animate-spin"}):p(h==="browse"?"virtualMcp.connectionDialogContent.connect":"virtualMcp.connectionDialogContent.add")})]})},`catalog-${_.id}`)},e[22]=l,e[23]=h,e[24]=r,e[25]=p,e[26]=Te):Te=e[26];const rt=Te;let ue;e[27]!==D||e[28]!==k||e[29]!==m||e[30]!==w||e[31]!==p?(ue=!w&&t.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border shrink-0",children:[t.jsx(Gn,{tabs:[{id:"all",label:p("virtualMcp.connectionDialogContent.tabAll")},{id:"connected",label:p("virtualMcp.connectionDialogContent.tabConnected")}],activeTab:D,onTabChange:_=>k(_)}),t.jsxs(te,{variant:"outline",size:"sm",className:"h-7 px-2 text-sm",onClick:()=>{E("connections_dialog_custom_clicked"),m()},children:[t.jsx(we,{size:12}),p("virtualMcp.connectionDialogContent.customConnection")]})]}),e[27]=D,e[28]=k,e[29]=m,e[30]=w,e[31]=p,e[32]=ue):ue=e[32];const Ke=v&&"opacity-50 pointer-events-none";let me;e[33]!==Ke?(me=K("flex-1 overflow-auto p-5 transition-opacity duration-150",Ke),e[33]=Ke,e[34]=me):me=e[34];const Et="grid grid-cols-[repeat(auto-fill,minmax(260px,1fr))] gap-4";let ze;e[35]!==Pe?(ze=_=>{if(_.type==="group")return Pe(_.key,_.title,_.icon,null,_.connections);const $=_.connection;return Pe($.id,$.title,$.icon,$.description??null,[$])},e[35]=Pe,e[36]=ze):ze=e[36];const qe=q.map(ze);let fe;e[37]!==He?(fe=t.jsx("div",{ref:He,className:"col-span-full h-1"}),e[37]=He,e[38]=fe):fe=e[38];let ge;e[39]!==L?(ge=L&&t.jsx("div",{className:"col-span-full flex justify-center py-6",children:t.jsx(De,{size:24,className:"animate-spin text-muted-foreground"})}),e[39]=L,e[40]=ge):ge=e[40];const Ge=G&&_e.length>0&&t.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[t.jsx(Je,{size:13,className:"text-muted-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:p("virtualMcp.connectionDialogContent.sectionVerified")}),t.jsx("div",{className:"flex-1 h-px bg-border"})]}),Xe=G&&_e.map(rt),Qe=G&&Se.length>0&&t.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[t.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:p("virtualMcp.connectionDialogContent.sectionAllConnections")}),t.jsx("div",{className:"flex-1 h-px bg-border"})]}),We=G&&Se.map(rt);let he;e[41]!==Re||e[42]!==F||e[43]!==G?(he=G&&F.length>0&&t.jsx("div",{ref:Re,className:"col-span-full h-1"}),e[41]=Re,e[42]=F,e[43]=G,e[44]=he):he=e[44];let pe;e[45]!==ie.isLoadingMore||e[46]!==G?(pe=G&&ie.isLoadingMore&&t.jsx("div",{className:"col-span-full flex justify-center py-6",children:t.jsx(De,{size:24,className:"animate-spin text-muted-foreground"})}),e[45]=ie.isLoadingMore,e[46]=G,e[47]=pe):pe=e[47];let xe;e[48]!==qe||e[49]!==fe||e[50]!==ge||e[51]!==Ge||e[52]!==Xe||e[53]!==Qe||e[54]!==We||e[55]!==he||e[56]!==pe?(xe=t.jsxs("div",{className:Et,children:[qe,fe,ge,Ge,Xe,Qe,We,he,pe]}),e[48]=qe,e[49]=fe,e[50]=ge,e[51]=Ge,e[52]=Xe,e[53]=Qe,e[54]=We,e[55]=he,e[56]=pe,e[57]=xe):xe=e[57];let je;e[58]!==D||e[59]!==q.length||e[60]!==Se||e[61]!==u||e[62]!==p||e[63]!==_e?(je=q.length===0&&_e.length===0&&Se.length===0&&t.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:u?p("virtualMcp.connectionDialogContent.emptyStateSearchNoMatch",{search:u}):p(D==="connected"?"virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable")}),e[58]=D,e[59]=q.length,e[60]=Se,e[61]=u,e[62]=p,e[63]=_e,e[64]=je):je=e[64];let ve;e[65]!==me||e[66]!==xe||e[67]!==je?(ve=t.jsxs("div",{className:me,children:[xe,je]}),e[65]=me,e[66]=xe,e[67]=je,e[68]=ve):ve=e[68];let Oe;return e[69]!==ue||e[70]!==ve?(Oe=t.jsxs(t.Fragment,{children:[ue,ve]}),e[69]=ue,e[70]=ve,e[71]=Oe):Oe=e[71],Oe}function Ps(n){return!n.verified&&!Ve(n._meta)?.verified&&!n.meta?.verified}function Ts(n){return n.verified||Ve(n._meta)?.verified||n.meta?.verified}function zs(n){return n.app_name}function Os(n){return n.app_name}function Ms(n){return n?.items??[]}function $s(n,e){if(n?.hasMore)return e.reduce(Fs,0)}function Fs(n,e){return n+(e?.items?.length??0)}function Bs(n){return[{field:["title"],operator:"contains",value:n},{field:["description"],operator:"contains",value:n}]}function Fo({open:n,onOpenChange:e,defaultTab:s,initialSearch:o="",...a}){const i=B(),c=a.mode??"add",r="agentId"in a?a.agentId:void 0,l="addedConnectionIds"in a?a.addedConnectionIds??new Set:new Set,u="onAdd"in a&&a.onAdd?a.onAdd:N=>{},m=(N,y,P)=>{r&&E("agent_connection_attached",{agent_id:r,connection_id:N,app_name:y,mode:P})},[f,d]=V.useState(null),[h,C]=V.useState(o),[p,g]=V.useState(!1),{org:j}=oe(),{data:v}=re.useSession(),b=Ft(),w=Yt(),S=nt(),D=N=>{e(!1),S({to:"/$org/settings/connections/$appSlug",params:{org:j.slug,appSlug:N}})},O=()=>{w.invalidateQueries({predicate:N=>{const y=N.queryKey;return y[1]===j.id&&y[3]==="collection"&&y[4]==="CONNECTIONS"}})},x=async(N,y)=>{E("connection_oauth_succeeded",{connection_id:N,flow:y});const P=new URL(`/api/${j.slug}/mcp/${N}`,window.location.origin);await w.invalidateQueries({queryKey:it.isMCPAuthenticated(P.href,null)}),O()},k=async N=>{d(N.app_name??N.id);try{const P=`${N.title.replace(/\s*\(\d+\)\s*$/,"")} (${Date.now().toString(36).slice(-4)})`,A=(await b.create.mutateAsync({title:P,description:N.description??null,connection_type:N.connection_type,connection_url:N.connection_url??null,connection_token:null,icon:N.icon??null,app_name:N.app_name??null,app_id:N.app_id??null,connection_headers:N.connection_headers??null})).id,M=await et({connectionId:A,orgId:j.id,orgSlug:j.slug,persistFallback:R=>b.update.mutateAsync({id:A,data:{connection_token:R}}).then(()=>{})});if(M.ran&&!M.ok){E("connection_oauth_failed",{connection_id:A,flow:"clone",error:M.error??"no_token"}),H.error(i("virtualMcp.addConnectionDialog.authenticationFailedError",{error:M.error??"no token received"})),await b.delete.mutateAsync(A);return}M.ran&&await x(A,"clone"),m(A,N.app_name??null,"clone"),u(A)}catch(y){console.error("Failed to add connection:",y),H.error(i("virtualMcp.addConnectionDialog.failedToAddConnection"))}finally{d(null)}},T=async N=>{if(!(!j||!v?.user?.id)){d(N.id);try{const y=Tn(N,j.id,v.user.id,{remoteIndex:0}),P=y.connection_type==="STDIO",I=!!y.connection_url,A=P&&y.connection_headers&&typeof y.connection_headers=="object"&&"command"in y.connection_headers;if(!I&&!A){H.error(i("virtualMcp.addConnectionDialog.mcpServerConnectionError")),d(null);return}const{id:M}=await b.create.mutateAsync(y),R=await et({connectionId:M,orgId:j.id,orgSlug:j.slug,persistFallback:X=>b.update.mutateAsync({id:M,data:{connection_token:X}}).then(()=>{})});if(R.ran&&!R.ok){E("connection_oauth_failed",{connection_id:M,flow:"connect_new",error:R.error??"no_token"}),H.warning(i("virtualMcp.addConnectionDialog.signInFailedTitle"),{description:i("virtualMcp.addConnectionDialog.signInFailedDescription",{error:R.error??"no token received"})}),m(M,y.app_name??null,"new"),u(M);return}R.ran?(await x(M,"connect_new"),H.success(i("virtualMcp.addConnectionDialog.connectedAuthenticated"))):H.success(i("virtualMcp.addConnectionDialog.connected")),m(M,y.app_name??null,"new"),u(M)}catch(y){console.error("Failed to connect:",y),H.error(i("virtualMcp.addConnectionDialog.failedToConnect"))}finally{d(null)}}};return t.jsxs(zt,{open:n,onOpenChange:e,children:[t.jsxs(Ot,{className:"sm:max-w-5xl h-[85vh] max-h-[85vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[t.jsx(Mt,{className:"px-6 pt-5 pb-0 shrink-0",children:t.jsx($t,{className:"text-base font-semibold",children:i(c==="browse"?"virtualMcp.addConnectionDialog.connectionsTitle":"virtualMcp.addConnectionDialog.addConnectionTitle")})}),t.jsx("div",{className:"pt-3 shrink-0",children:t.jsx(Dn,{value:h,onChange:C,placeholder:i("virtualMcp.addConnectionDialog.searchConnectionsPlaceholder")})}),t.jsx(V.Suspense,{fallback:t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(De,{size:24,className:"animate-spin text-muted-foreground"})}),children:t.jsx(As,{mode:c,agentId:r,addedConnectionIds:l,onAdd:u,onCloneAndAdd:k,onConnectAndAdd:T,connectingItemId:f,search:h,onCreateConnection:()=>g(!0),onBrowseNavigate:D,defaultTab:s})})]}),t.jsx(Is,{open:p,onOpenChange:g,onCreated:async N=>{g(!1);const y=await et({connectionId:N,orgId:j.id,orgSlug:j.slug,persistFallback:P=>b.update.mutateAsync({id:N,data:{connection_token:P}}).then(()=>{})});if(y.ran&&!y.ok){E("connection_oauth_failed",{connection_id:N,flow:"custom_create",error:y.error??"no_token"}),H.warning(i("virtualMcp.addConnectionDialog.signInFailedTitle"),{description:i("virtualMcp.addConnectionDialog.signInFailedDescription",{error:y.error??"no token received"})}),m(N,null,"custom"),u(N),e(!1);return}y.ran&&await x(N,"custom_create"),m(N,null,"custom"),u(N),e(!1)}})]})}const ft=new Map;function Bo(){const{org:n}=oe(),e=Qn(),s=Wn(),o=s.find(g=>g.providerId==="deco"),{data:a,isLoading:i,refetch:c,isFetching:r}=Jt({queryKey:it.aiProviderCredits(n.id,"deco"),enabled:!!o,staleTime:6e4,queryFn:async()=>{try{return await e.call("AI_PROVIDER_CREDITS",{providerId:"deco"})}catch{return null}}}),l=a?.balanceCents??null,u=l!=null?l/100:null,m=V.useRef(new Map);if(l!=null){const g=ft.get(n.id);m.current.get(n.id)&&g!=null&&l>g&&E("credits_topped_up_detected",{organization_id:n.id,delta_cents:l-g,previous_balance_cents:g,new_balance_cents:l}),ft.set(n.id,l),m.current.set(n.id,!0)}const f=!!o,d=l!=null&&l>0,h=l!=null&&l===0,C=l!=null&&l===200,p=s.length>0&&s.every(g=>g.providerId==="deco");return{hasDecoKey:f,decoKeyId:o?.id??null,balanceCents:l,balanceDollars:u,hasCredits:d,isZeroBalance:h,isInitialFreeCredit:C,hasOnlyDecoProvider:p,isLoading:i,isFetching:r,refetch:c}}export{Mo as A,To as C,$o as N,Oo as O,zo as a,Fo as b,os as c,lt as d,Bo as u};
|
package/dist/client/assets/{use-decopilot-events-DgBVDXYP.js → use-decopilot-events-CqxWC3Qt.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s}from"./index-
|
|
1
|
+
import{r as s}from"./index-B9npqQk3.js";import{d as R,c as u}from"./decopilot-sse-pool-Cd_vwHza.js";const f=()=>0;function g(E){const{orgSlug:t,taskId:a,enabled:n=!0,onStep:o,onFinish:S,onTaskStatus:i}=E,l=s.useRef({taskId:a,onStep:o,onFinish:S,onTaskStatus:i});l.current={taskId:a,onStep:o,onFinish:S,onTaskStatus:i};const c=s.useRef(null),p=s.useRef(n),b=s.useRef(t);(!c.current||p.current!==n||b.current!==t)&&(p.current=n,b.current=t,c.current=d=>{if(!n||!t)return()=>{};const k=T=>{let e;try{e=JSON.parse(T.data)}catch{return}const r=l.current;if(!(r.taskId&&e.subject!==r.taskId)){switch(e.type){case u.STEP:r.onStep?.(e);break;case u.FINISH:r.onFinish?.(e);break;case u.THREAD_STATUS:r.onTaskStatus?.(e);break}d()}};return R.subscribe(t,k)}),s.useSyncExternalStore(c.current,f,f)}export{g as u};
|
package/dist/client/assets/{use-delete-connection-xxYRBi8p.js → use-delete-connection-DBTideE2.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as oe,b as le,j as n,F as se,o as ie,r as ce,t as Y,ba as re,bb as ae}from"./index-
|
|
1
|
+
import{c as oe,b as le,j as n,F as se,o as ie,r as ce,t as Y,ba as re,bb as ae}from"./index-B9npqQk3.js";import{A as z,a as G,b as V,c as X,d as Z,e as ee,f as te,g as ne}from"./alert-dialog-V3SBzBF6.js";import{u as de}from"./studio-tools-CoB4u-70.js";function ue(B){const e=oe.c(86),{deleteState:s,cancelDelete:a,confirmDelete:d,confirmForceDelete:c}=B,t=le(),w=s.mode==="deleting";let m;e[0]!==a?(m=W=>{W||a()},e[0]=a,e[1]=m):m=e[1];let u;e[2]!==t?(u=t("common.deleteConnectionDialogs.title"),e[2]=t,e[3]=u):u=e[3];let D;e[4]!==u?(D=n.jsx(z,{children:u}),e[4]=u,e[5]=D):D=e[5];let C;e[6]!==t?(C=t("common.deleteConnectionDialogs.description"),e[6]=t,e[7]=C):C=e[7];const H=s.mode==="deleting"&&s.connection.title;let o;e[8]!==H?(o=n.jsx("span",{className:"font-medium text-foreground",children:H}),e[8]=H,e[9]=o):o=e[9];let l;e[10]!==C||e[11]!==o?(l=n.jsxs(G,{children:[C," ",o,"."]}),e[10]=C,e[11]=o,e[12]=l):l=e[12];let i;e[13]!==D||e[14]!==l?(i=n.jsxs(V,{children:[D,l]}),e[13]=D,e[14]=l,e[15]=i):i=e[15];let f;e[16]!==t?(f=t("common.deleteConnectionDialogs.cancel"),e[16]=t,e[17]=f):f=e[17];let r;e[18]!==f?(r=n.jsx(X,{children:f}),e[18]=f,e[19]=r):r=e[19];let g;e[20]!==t?(g=t("common.deleteConnectionDialogs.delete"),e[20]=t,e[21]=g):g=e[21];let x;e[22]!==d||e[23]!==g?(x=n.jsx(Z,{onClick:d,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:g}),e[22]=d,e[23]=g,e[24]=x):x=e[24];let h;e[25]!==r||e[26]!==x?(h=n.jsxs(ee,{children:[r,x]}),e[25]=r,e[26]=x,e[27]=h):h=e[27];let j;e[28]!==h||e[29]!==i?(j=n.jsxs(te,{children:[i,h]}),e[28]=h,e[29]=i,e[30]=j):j=e[30];let p;e[31]!==w||e[32]!==j||e[33]!==m?(p=n.jsx(ne,{open:w,onOpenChange:m,children:j}),e[31]=w,e[32]=j,e[33]=m,e[34]=p):p=e[34];const J=s.mode==="force-deleting";let N;e[35]!==a?(N=W=>{W||a()},e[35]=a,e[36]=N):N=e[36];let E;e[37]!==t?(E=t("common.deleteConnectionDialogs.forceDeleteTitle"),e[37]=t,e[38]=E):E=e[38];let y;e[39]!==E?(y=n.jsx(z,{children:E}),e[39]=E,e[40]=y):y=e[40];let O;e[41]!==t?(O=t("common.deleteConnectionDialogs.forceDeleteDescription"),e[41]=t,e[42]=O):O=e[42];const M=s.mode==="force-deleting"&&s.connection.title;let v;e[43]!==M?(v=n.jsx("span",{className:"font-medium text-foreground",children:M}),e[43]=M,e[44]=v):v=e[44];let S;e[45]!==t?(S=t("common.deleteConnectionDialogs.isUsedByAgents"),e[45]=t,e[46]=S):S=e[46];const P=s.mode==="force-deleting"&&s.agentNames;let T;e[47]!==P?(T=n.jsx("span",{className:"font-medium text-foreground",children:P}),e[47]=P,e[48]=T):T=e[48];let A;e[49]!==O||e[50]!==v||e[51]!==S||e[52]!==T?(A=n.jsxs("p",{children:[O," ",v," ",S," ",T,"."]}),e[49]=O,e[50]=v,e[51]=S,e[52]=T,e[53]=A):A=e[53];let _;e[54]!==t?(_=t("common.deleteConnectionDialogs.forceDeleteWarning"),e[54]=t,e[55]=_):_=e[55];let b;e[56]!==_?(b=n.jsx("p",{className:"mt-2",children:_}),e[56]=_,e[57]=b):b=e[57];let F;e[58]!==A||e[59]!==b?(F=n.jsx(G,{asChild:!0,children:n.jsxs("div",{children:[A,b]})}),e[58]=A,e[59]=b,e[60]=F):F=e[60];let I;e[61]!==y||e[62]!==F?(I=n.jsxs(V,{children:[y,F]}),e[61]=y,e[62]=F,e[63]=I):I=e[63];let L;e[64]!==t?(L=t("common.deleteConnectionDialogs.cancel"),e[64]=t,e[65]=L):L=e[65];let R;e[66]!==L?(R=n.jsx(X,{children:L}),e[66]=L,e[67]=R):R=e[67];let q;e[68]!==t?(q=t("common.deleteConnectionDialogs.deleteAnyway"),e[68]=t,e[69]=q):q=e[69];let U;e[70]!==c||e[71]!==q?(U=n.jsx(Z,{onClick:c,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:q}),e[70]=c,e[71]=q,e[72]=U):U=e[72];let K;e[73]!==R||e[74]!==U?(K=n.jsxs(ee,{children:[R,U]}),e[73]=R,e[74]=U,e[75]=K):K=e[75];let $;e[76]!==I||e[77]!==K?($=n.jsxs(te,{children:[I,K]}),e[76]=I,e[77]=K,e[78]=$):$=e[78];let k;e[79]!==J||e[80]!==N||e[81]!==$?(k=n.jsx(ne,{open:J,onOpenChange:N,children:$}),e[79]=J,e[80]=N,e[81]=$,e[82]=k):k=e[82];let Q;return e[83]!==p||e[84]!==k?(Q=n.jsxs(n.Fragment,{children:[p,k]}),e[83]=p,e[84]=k,e[85]=Q):Q=e[85],Q}function De({onSuccess:B}={}){const{org:e}=se(),s=ie(),a=de(),[d,c]=ce.useState({mode:"idle"}),t=()=>{s.invalidateQueries({predicate:o=>{const l=o.queryKey;return l[1]===e.id&&l[3]==="collection"&&l[4]==="CONNECTIONS"}})},w=o=>{re(o),s.invalidateQueries({predicate:l=>l.queryKey[1]===ae&&l.queryKey[3]===o})},m=o=>{t(),w(o),Y.success("Connection deleted successfully"),c({mode:"idle"}),B?.()};return{deleteState:d,requestDelete:o=>{c({mode:"deleting",connection:o})},cancelDelete:()=>{c({mode:"idle"})},confirmDelete:async()=>{if(d.mode!=="deleting")return;const o=d.connection;c({mode:"idle"});try{await a.call("COLLECTION_CONNECTIONS_DELETE",{id:o.id}),m(o.id)}catch(l){const i=l instanceof Error?l.message:String(l),f=i.replace(/^Error:\s*/,"");try{const r=JSON.parse(f);if(r.code==="CONNECTION_IN_USE"&&r.agentNames){c({mode:"force-deleting",connection:o,agentNames:r.agentNames.map(g=>`"${g}"`).join(", ")});return}}catch{}Y.error(`Failed to delete connection: ${i}`)}},confirmForceDelete:async()=>{if(d.mode!=="force-deleting")return;const o=d.connection.id;c({mode:"idle"});try{await a.call("COLLECTION_CONNECTIONS_DELETE",{id:o,force:!0}),m(o)}catch(l){const i=l instanceof Error?l.message:String(l);Y.error(`Failed to delete connection: ${i}`)}}}}export{ue as D,De as u};
|
package/dist/client/assets/{use-deployment-admin-CTV5HKPv.js → use-deployment-admin-Ddcy4-RM.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,n as m,K as c}from"./index-
|
|
1
|
+
import{c as s,n as m,K as c}from"./index-B9npqQk3.js";function l(){const e=s.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:c.deploymentAdminMe(),queryFn:d,staleTime:1/0,retry:2},e[0]=t):t=e[0];const{data:a,isLoading:i}=m(t),r=a==="admin",o=a==="unverified";let n;return e[1]!==i||e[2]!==r||e[3]!==o?(n={isAdmin:r,loading:i,needsEmailVerification:o},e[1]=i,e[2]=r,e[3]=o,e[4]=n):n=e[4],n}async function d(){const e=await fetch("/api/_admin/me",{credentials:"include"});if(e.status>=500)throw new Error(`admin/me request failed: ${e.status}`);return e.ok?"admin":(await e.json().catch(u)).error==="email_not_verified"?"unverified":"denied"}function u(){return{}}export{l as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,F as c,K as r,n as d,x as y,o as C,e as F}from"./index-
|
|
1
|
+
import{c as u,F as c,K as r,n as d,x as y,o as C,e as F}from"./index-B9npqQk3.js";import{u as f}from"./studio-tools-CoB4u-70.js";function m(){const e=u.c(7),{org:n}=c(),o=f();let i;e[0]!==n.id?(i=r.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:l}=y(s);return l.configs}function I(){const e=u.c(7),{org:n}=c(),o=f();let i;e[0]!==n.id?(i=r.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;return e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6],d(s)}function q(){const e=u.c(8),{org:n}=c(),o=f(),i=C();let t;e[0]!==o?(t=a=>o.call("FILE_CONFIG_CREATE",{...a}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:r.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],F(l)}function _(){const e=u.c(8),{org:n}=c(),o=f(),i=C();let t;e[0]!==o?(t=a=>o.call("FILE_CONFIG_DELETE",{id:a}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:r.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],F(l)}export{I as a,q as b,_ as c,m as u};
|
package/dist/client/assets/{use-infinite-scroll-CGISYIMq.js → use-infinite-scroll-BJfoFF98.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aU as l,e3 as d,e4 as v,r as i}from"./index-
|
|
1
|
+
import{aU as l,e3 as d,e4 as v,r as i}from"./index-B9npqQk3.js";var p=class extends l{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:n}=e,u=super.createResult(e,t),{isFetching:r,isRefetching:h,isError:a,isRefetchError:g}=u,s=n.fetchMeta?.fetchMore?.direction,o=a&&s==="forward",P=r&&s==="forward",c=a&&s==="backward",f=r&&s==="backward";return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,n.data),hasPreviousPage:d(t,n.data),isFetchNextPageError:o,isFetchingNextPage:P,isFetchPreviousPageError:c,isFetchingPreviousPage:f,isRefetchError:g&&!o&&!c,isRefetching:h&&!P&&!f}}};function b(e,t,n=!1,u){const r=i.useRef(null),h=i.useRef(null),a=i.useRef(e),g=i.useRef(t),s=i.useRef(n),o=i.useRef(u);a.current=e,g.current=t,s.current=n,o.current=u;const[P]=i.useState(()=>c=>{h.current=c,r.current&&(r.current.disconnect(),r.current=null),c&&queueMicrotask(()=>{if(h.current!==c)return;const f=new IntersectionObserver(R=>{R[0]?.isIntersecting&&g.current&&!s.current&&a.current()},{root:o.current?.current??null,rootMargin:"0px 0px 200px 0px"});f.observe(c),r.current=f})});return P}export{p as I,b as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as g,F as N,K as y,n as _,o as A,e as I,t as q}from"./index-
|
|
1
|
+
import{c as g,F as N,K as y,n as _,o as A,e as I,t as q}from"./index-B9npqQk3.js";import{a as S}from"./use-capability-JYilRL77.js";import{u as O}from"./studio-tools-CoB4u-70.js";function b(){const e=g.c(10),{org:r}=N(),u=O(),{capabilities:a,isPrivileged:c}=S(),d=c||!!a["members:manage"];let t;e[0]!==r.id?(t=y.organizationJoinRequests(r.id),e[0]=r.id,e[1]=t):t=e[1];let s;e[2]!==u?(s=()=>u.call("ORGANIZATION_JOIN_REQUEST_LIST",{}),e[2]=u,e[3]=s):s=e[3];const i=!!r.id&&d;let n;e[4]!==t||e[5]!==s||e[6]!==i?(n={queryKey:t,queryFn:s,enabled:i},e[4]=t,e[5]=s,e[6]=i,e[7]=n):n=e[7];const{data:l}=_(n);let o;return e[8]!==l?.requests?(o=l?.requests??[],e[8]=l?.requests,e[9]=o):o=e[9],o}function K(){const e=g.c(21),{org:r,locator:u}=N(),a=O(),c=A();let d;e[0]!==u||e[1]!==r||e[2]!==c?(d=()=>{c.invalidateQueries({queryKey:y.organizationJoinRequests(r.id)}),c.invalidateQueries({queryKey:y.members(u)})},e[0]=u,e[1]=r,e[2]=c,e[3]=d):d=e[3];const t=d;let s;e[4]!==a?(s=R=>a.call("ORGANIZATION_JOIN_REQUEST_APPROVE",{requestId:R}),e[4]=a,e[5]=s):s=e[5];let i;e[6]!==t?(i=()=>{t(),q.success("Request approved")},e[6]=t,e[7]=i):i=e[7];let n;e[8]!==s||e[9]!==i?(n={mutationFn:s,onSuccess:i,onError:v},e[8]=s,e[9]=i,e[10]=n):n=e[10];const l=I(n);let o;e[11]!==a?(o=R=>a.call("ORGANIZATION_JOIN_REQUEST_DENY",{requestId:R}),e[11]=a,e[12]=o):o=e[12];let f;e[13]!==t?(f=()=>{t(),q.success("Request denied")},e[13]=t,e[14]=f):f=e[14];let m;e[15]!==o||e[16]!==f?(m={mutationFn:o,onSuccess:f,onError:T},e[15]=o,e[16]=f,e[17]=m):m=e[17];const E=I(m);let p;return e[18]!==l||e[19]!==E?(p={approve:l,deny:E},e[18]=l,e[19]=E,e[20]=p):p=e[20],p}function T(e){return q.error(e instanceof Error?e.message:"Failed to deny")}function v(e){return q.error(e instanceof Error?e.message:"Failed to approve")}export{K as a,b as u};
|