decocms 4.23.2 → 4.24.1
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-DP0nsq1e.js → AlertCircle-pLuWab2O.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-3SkCtZ7K.js → ArrowUpRight-5qca7K3c.js} +1 -1
- package/dist/client/assets/{Check-CUC1zRnb.js → Check-BmisW-gO.js} +1 -1
- package/dist/client/assets/{CheckCircle-BsrExj4H.js → CheckCircle-CtwfeJGG.js} +1 -1
- package/dist/client/assets/{ChevronDown-B1mct1yp.js → ChevronDown-DScAH69v.js} +1 -1
- package/dist/client/assets/{ChevronRight-C_4FW4NO.js → ChevronRight-R_IgGJ90.js} +1 -1
- package/dist/client/assets/{ChevronUp-Bu7-a85r.js → ChevronUp-DbQrNNT7.js} +1 -1
- package/dist/client/assets/{Circle-D65-cV8s.js → Circle-Dou1PsAM.js} +1 -1
- package/dist/client/assets/{Copy01-C-7fHSay.js → Copy01-Cdi4qY0f.js} +1 -1
- package/dist/client/assets/{DotsVertical-BaKPV3I-.js → DotsVertical-D7yw7BOZ.js} +1 -1
- package/dist/client/assets/{Eye-BD5GpDZ-.js → Eye-DSPSvd-z.js} +1 -1
- package/dist/client/assets/{FilterLines-DFbyXaVS.js → FilterLines-CIre0FvL.js} +1 -1
- package/dist/client/assets/{Globe01-Dz7J456-.js → Globe01-BwEqc3Zi.js} +1 -1
- package/dist/client/assets/{Globe04-ninCQ4l6.js → Globe04-Ckr1BrL4.js} +1 -1
- package/dist/client/assets/{HardDrive-DghaQYox.js → HardDrive-BHqIvPTj.js} +1 -1
- package/dist/client/assets/{Key01-DBAS-H0R.js → Key01-lDuHTtYR.js} +1 -1
- package/dist/client/assets/{LayoutLeft-PT-KYBVh.js → LayoutLeft-BCd4DxZL.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DYdIsix1.js → LinkExternal01-Bws57Ghu.js} +1 -1
- package/dist/client/assets/{List-CR20iQn1.js → List-CRp9-m0D.js} +1 -1
- package/dist/client/assets/{Loading02-1-7GqxDm.js → Loading02-BQZyOed_.js} +1 -1
- package/dist/client/assets/{Monitor01-CsiKf4Vb.js → Monitor01-CQZr2DXo.js} +1 -1
- package/dist/client/assets/{Palette-Bh8DSKBB.js → Palette-CjYrZKAr.js} +1 -1
- package/dist/client/assets/{Play-BZWHu6vA.js → Play-CcyHvjQE.js} +1 -1
- package/dist/client/assets/{Plus-CToP0bbt.js → Plus-B8hmYxTd.js} +1 -1
- package/dist/client/assets/{SearchLg-YHk3bRUf.js → SearchLg-QTo8IwQN.js} +1 -1
- package/dist/client/assets/{SearchMd-Dx8opdKE.js → SearchMd-DR4ENkEZ.js} +1 -1
- package/dist/client/assets/{Settings02-DszLgCXG.js → Settings02-DUJ4pdEY.js} +1 -1
- package/dist/client/assets/{Shield01-DTqhedHO.js → Shield01-DN8y9VWe.js} +1 -1
- package/dist/client/assets/{Star01-CVsItQ1u.js → Star01-DP4fzeT_.js} +1 -1
- package/dist/client/assets/{Stars01-CsOhgCzT.js → Stars01-AnTTTVLS.js} +1 -1
- package/dist/client/assets/{Stars02-CJRC9WOX.js → Stars02-B67gg490.js} +1 -1
- package/dist/client/assets/{Sun-CfFmz0ui.js → Sun-FzgPMit2.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BSA9bywH.js → SwitchHorizontal01-CuYgULrj.js} +1 -1
- package/dist/client/assets/{Tool01-MTiJaetc.js → Tool01-DItmnBS_.js} +1 -1
- package/dist/client/assets/{Trash01-BDWbYvcu.js → Trash01-D6ySBQyD.js} +1 -1
- package/dist/client/assets/{Upload01-DNJ4y_co.js → Upload01-z0eaJfaS.js} +1 -1
- package/dist/client/assets/{User01-BnV8b2oc.js → User01-Bbvktcee.js} +1 -1
- package/dist/client/assets/{Users01-CeDec9Hr.js → Users01-kzeWrMKW.js} +1 -1
- package/dist/client/assets/{Users03-tyWJCIG0.js → Users03-DW4HTBw0.js} +1 -1
- package/dist/client/assets/{X-CFM-EaJf.js → X-CmY2dI4A.js} +1 -1
- package/dist/client/assets/{XCircle-DMTLazaF.js → XCircle-0va8xABq.js} +1 -1
- package/dist/client/assets/{XClose-CQ7XxXz6.js → XClose-CytiRqor.js} +1 -1
- package/dist/client/assets/{Zap-B6Y5QNOW.js → Zap-DlYvu5VF.js} +1 -1
- package/dist/client/assets/{ZapSquare-DfDf_Qdm.js → ZapSquare-3vdDCs3a.js} +1 -1
- package/dist/client/assets/{ZoomOut-Dt1g7vVy.js → ZoomOut-GeKL8STS.js} +1 -1
- package/dist/client/assets/{access-gate-twsl8uHV.js → access-gate-BmcYHR0A.js} +1 -1
- package/dist/client/assets/{add-section-modal-t4oPoTDi.js → add-section-modal-BMg96VFk.js} +1 -1
- package/dist/client/assets/{agent-capabilities-B7x2s3UT.js → agent-capabilities-C2v-ntJ9.js} +1 -1
- package/dist/client/assets/{agent-icon-BBTxD8Vr.js → agent-icon-u8Dhjems.js} +1 -1
- package/dist/client/assets/{agents-list-CK40xLox.js → agents-list-Re_BDsv8.js} +1 -1
- package/dist/client/assets/{ai-providers-rL0xevFD.js → ai-providers-NWXNM-mp.js} +1 -1
- package/dist/client/assets/{alert-BZSGiHUj.js → alert-BzP_P6Yw.js} +1 -1
- package/dist/client/assets/{alert-dialog-zbSvd7Ki.js → alert-dialog-Da7c7cgA.js} +1 -1
- package/dist/client/assets/{app-editor-BorTeTSs.js → app-editor-Y4YyIjtr.js} +1 -1
- package/dist/client/assets/{auth-BALlir75.js → auth-C_dVdYxA.js} +1 -1
- package/dist/client/assets/{auth-catchall-3cvSdKqi.js → auth-catchall-CGc8uaiH.js} +1 -1
- package/dist/client/assets/{auth-entry-Bdr5OSFj.js → auth-entry-Dd8YUufe.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Coen5GKi.js → auth-split-layout-CmYuDNzb.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Ag6OuiCi.js → authenticate-and-persist-oauth-g441PY51.js} +1 -1
- package/dist/client/assets/{automation-list-row-DGvZjGai.js → automation-list-row-BQqkblTJ.js} +1 -1
- package/dist/client/assets/{automation-runs-98bvfxso.js → automation-runs-BOOU5NV5.js} +1 -1
- package/dist/client/assets/{automations-Bhn16K_m.js → automations-CC1UjFFq.js} +1 -1
- package/dist/client/assets/{avatar-qkTmk1tF.js → avatar-D4oK7QP_.js} +1 -1
- package/dist/client/assets/{badge-Dxl2nD6L.js → badge-CTk0aBEM.js} +1 -1
- package/dist/client/assets/{block-document-CUqxuHG8.js → block-document-D4DyUGYi.js} +1 -1
- package/dist/client/assets/{brand-context-CJQ5LxFU.js → brand-context-PIWbC8M_.js} +1 -1
- package/dist/client/assets/{breadcrumb-MwtTl_lp.js → breadcrumb-Ci3MX-hV.js} +1 -1
- package/dist/client/assets/{buckets-C2nu8S-i.js → buckets-BEeAFA9v.js} +1 -1
- package/dist/client/assets/bulk-category-panel-dAffh-rA.js +1 -0
- package/dist/client/assets/{capability-load-error-BRk5Albu.js → capability-load-error-BiC9g50e.js} +1 -1
- package/dist/client/assets/{card-BmfGcj0O.js → card-CWIf1ZTH.js} +1 -1
- package/dist/client/assets/category-editor-ypOUXzaR.js +1 -0
- package/dist/client/assets/{chat-context-DvCifsaP.js → chat-context-CmaqOUYY.js} +1 -1
- package/dist/client/assets/{checkbox-CfEEJY30.js → checkbox-55B4aWK1.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BdUdOc4f.js → cli-auth-success-DV1qELnW.js} +1 -1
- package/dist/client/assets/{collection-detail-CZ3ry4YY.js → collection-detail-CqGGRfb6.js} +1 -1
- package/dist/client/assets/{collection-display-button-DqTRIqF7.js → collection-display-button-DG8ZmqAt.js} +1 -1
- package/dist/client/assets/{collection-search-B2eeAfCm.js → collection-search-BGKxt_N-.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BnMijIQA.js → collection-table-wrapper-BeC4WKAG.js} +1 -1
- package/dist/client/assets/{collection-tabs-ChhCmRrP.js → collection-tabs-BbQxcrcS.js} +1 -1
- package/dist/client/assets/{command-D2GI_S2n.js → command-BqCpKNr4.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-BfGk9igR.js → commerce-onboarding-CpL8T6nA.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-DQ_-hvKq.js → connect-desktop-dialog-cZGy4-Ua.js} +1 -1
- package/dist/client/assets/{connection-card-Dea6GcsD.js → connection-card-D9Bsn_oc.js} +1 -1
- package/dist/client/assets/{connection-detail-Cb6Qyuc4.js → connection-detail-CX1SpjmH.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CfJCI7YZ.js → connection-form-helpers-Cy7HaFyD.js} +1 -1
- package/dist/client/assets/{connections-BRxZlKLF.js → connections-DNwgAdLm.js} +1 -1
- package/dist/client/assets/{decopilot-CGLmwUQj.js → decopilot-BW_Qp9RR.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DKy1YCA-.js → decopilot-sse-pool-CyMXjbIG.js} +1 -1
- package/dist/client/assets/{dialog-xw_WZv6d.js → dialog-C17LEi_J.js} +1 -1
- package/dist/client/assets/{domain-settings-BfzAzzbX.js → domain-settings-DcSY9nzQ.js} +1 -1
- package/dist/client/assets/{drawer-B_-kTqsl.js → drawer-CDkyDWDz.js} +1 -1
- package/dist/client/assets/{dropdown-menu-WR1NGNoR.js → dropdown-menu-CDYo85Ch.js} +1 -1
- package/dist/client/assets/{empty-state-xwWZSkhQ.js → empty-state-rZEB9QIX.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BuuPL_TW.js → extract-connection-data-AIs6sFAy.js} +1 -1
- package/dist/client/assets/file-explorer-0Irk0gP9.js +2 -0
- package/dist/client/assets/{file-type-icon-B6nuKI0W.js → file-type-icon-Cto1R_1_.js} +1 -1
- package/dist/client/assets/{files-Y6_iOEZN.js → files-UEw_ge9M.js} +1 -1
- package/dist/client/assets/{form-BDEEsjow.js → form-CyQmMYiz.js} +1 -1
- package/dist/client/assets/{general-BlUoHTsV.js → general-D5sGbZlY.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CyJ9CV9M.js → github-repo-picker-CbF-Vwgv.js} +1 -1
- package/dist/client/assets/{hooks-C1eaKJ5l.js → hooks-BY04f5oV.js} +1 -1
- package/dist/client/assets/{index-KOgLnEuj.js → index-8jHxLh_t.js} +1 -1
- package/dist/client/assets/{index-yPrRyIJq.js → index-9LHoYH8C.js} +1 -1
- package/dist/client/assets/{index-D_GlPX1k.js → index-AN1WZtpr.js} +1 -1
- package/dist/client/assets/{index-C465jsM1.js → index-BKnTCS6u.js} +1 -1
- package/dist/client/assets/{index-CDriDNRl.js → index-BM0Ym8un.js} +1 -1
- package/dist/client/assets/{index-CW0ySYG0.js → index-BoA06la5.js} +1 -1
- package/dist/client/assets/{index-CALTfboW.js → index-CHq6jp_n.js} +1 -1
- package/dist/client/assets/{index-BfM-TSSf.js → index-CMSBFE9x.js} +1 -1
- package/dist/client/assets/{index-DqJ75_8G.js → index-CP6SzgI6.js} +1 -1
- package/dist/client/assets/{index-pPjXkMWO.js → index-CVreeNNf.js} +3 -3
- package/dist/client/assets/{index-VN20CUPz.js → index-CsOpOO0V.js} +1 -1
- package/dist/client/assets/{index-D67BUGMx.js → index-Dc3rKDFj.js} +1 -1
- package/dist/client/assets/{index-XZSYHZ-t.js → index-hgRWhkZO.js} +29 -29
- package/dist/client/assets/{index-_iuA_jeM.js → index-jIjNWMXZ.js} +1 -1
- package/dist/client/assets/{index-redirect-Cxaa1dXz.js → index-redirect-ByfQhzZ5.js} +1 -1
- package/dist/client/assets/{input-D3oAzmpd.js → input-hcZc7h3D.js} +1 -1
- package/dist/client/assets/{integration-icon-ChiNtR71.js → integration-icon-BC9MaYhQ.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-DnRVC4fh.js → invite-member-dialog-C4_4LgbV.js} +1 -1
- package/dist/client/assets/{label-CN7heivZ.js → label-CpclvonI.js} +1 -1
- package/dist/client/assets/{library-tab-BET5pVoI.js → library-tab-BkEv5Y9A.js} +1 -1
- package/dist/client/assets/{login-BiLI_tpo.js → login-DcJnKBaR.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DaQytGE0.js → mcp-oauth-CfQhic2C.js} +1 -1
- package/dist/client/assets/{members-D0A9fM5h.js → members-N0mEAV1H.js} +1 -1
- package/dist/client/assets/{monaco-editor-mtUMAQ2f.js → monaco-editor-BgOaSxTf.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-cGUx_q_d.js → monitoring-stats-row-vLLfJuxf.js} +1 -1
- package/dist/client/assets/{oauth-callback-B4i97ziL.js → oauth-callback-B5UmIJXD.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Cu0nrtvv.js → oauth-callback-ai-provider-8SkwfrjI.js} +1 -1
- package/dist/client/assets/{onboarding-DJWXhtuH.js → onboarding-CTX74sEQ.js} +1 -1
- package/dist/client/assets/{org-install-BuMuLlYj.js → org-install-BYjR4YVZ.js} +1 -1
- package/dist/client/assets/{org-layout-DKktVS01.js → org-layout-CzIIh2X8.js} +1 -1
- package/dist/client/assets/{organization-choice-DhWinyOA.js → organization-choice-BjZknF-1.js} +1 -1
- package/dist/client/assets/{page-seo-form-CR8dQi-b.js → page-seo-form-DyrhUftF.js} +1 -1
- package/dist/client/assets/page-seo-sheet-C8PanPoI.js +1 -0
- package/dist/client/assets/{popover-B9_4d9Hb.js → popover-CrQP6J1V.js} +1 -1
- package/dist/client/assets/{post-editor-C3XxuEgn.js → post-editor-Cnv36RrY.js} +1 -1
- package/dist/client/assets/{primitives-C09eM3XN.js → primitives-CehCCNQ0.js} +1 -1
- package/dist/client/assets/{profile-C8YgAq9j.js → profile-DTRERHK7.js} +1 -1
- package/dist/client/assets/project-app-view-BKMK7m5v.js +1 -0
- package/dist/client/assets/record-editor-Tm9FgKJg.js +1 -0
- package/dist/client/assets/registry-D3IW22xx.js +2 -0
- package/dist/client/assets/{registry-layout-8seznd3d.js → registry-layout-BtsOJvRw.js} +1 -1
- package/dist/client/assets/{require-capability-BpL4yVhr.js → require-capability-DyWKAaq0.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Cc06WCjO.js → required-auth-layout-B7xpW-ZL.js} +1 -1
- package/dist/client/assets/{reset-password-Bbsumr-T.js → reset-password-B5lBZvCf.js} +1 -1
- package/dist/client/assets/{roles-CoM0WPdI.js → roles-BJoHqkv_.js} +1 -1
- package/dist/client/assets/{scroll-area-BwQt66gB.js → scroll-area-BZwvo6ZV.js} +2 -2
- package/dist/client/assets/{search-input-Br6kvm4V.js → search-input-CvfDFiWW.js} +1 -1
- package/dist/client/assets/{secrets-CjhBbgUZ.js → secrets-BSMR5hlC.js} +1 -1
- package/dist/client/assets/{sections-editor-BjBW6cix.js → sections-editor-BtFXoD2E.js} +1 -1
- package/dist/client/assets/{select-model-8hRE4pUt.js → select-model-DXutO6mM.js} +1 -1
- package/dist/client/assets/{select-CNB5fe3p.js → select-w9uizPnB.js} +1 -1
- package/dist/client/assets/{seo-editor-Bgt_LAws.js → seo-editor-BplTYJOG.js} +1 -1
- package/dist/client/assets/{settings-layout-2WW5-L0X.js → settings-layout-CsXE80-1.js} +1 -1
- package/dist/client/assets/{settings-section-B6HW8SMd.js → settings-section-Drdvt74p.js} +1 -1
- package/dist/client/assets/{sheet-1qlQOBan.js → sheet-CzE0lqCT.js} +1 -1
- package/dist/client/assets/{shell-controls-BRktGnmo.js → shell-controls-DjoWsXZc.js} +1 -1
- package/dist/client/assets/{shell-layout-D5fv0Gnj.js → shell-layout-CYEP4NSP.js} +1 -1
- package/dist/client/assets/{sidebar-qR7l9LGc.js → sidebar-T4hY424R.js} +1 -1
- package/dist/client/assets/{skeleton-CMqpP0rC.js → skeleton-DLI5J-FI.js} +1 -1
- package/dist/client/assets/{sso-BL-5oYVD.js → sso-DJ-dx2oz.js} +1 -1
- package/dist/client/assets/{store-C8vWeX45.js → store-DI69gyZ1.js} +1 -1
- package/dist/client/assets/store-registry-BqJNzejR.js +2 -0
- package/dist/client/assets/{studio-tools-D16Iabf3.js → studio-tools-BOvy4_zw.js} +1 -1
- package/dist/client/assets/{switch-Czifg4wP.js → switch-d9FVpI-I.js} +1 -1
- package/dist/client/assets/{table-DPQQ4yes.js → table-39SJnwJD.js} +1 -1
- package/dist/client/assets/{tabs-C01VKZPn.js → tabs-P4C7XOb6.js} +1 -1
- package/dist/client/assets/{task-row-Dq5f6UoU.js → task-row-agrsNosz.js} +1 -1
- package/dist/client/assets/{task-status-BfQFLXYY.js → task-status-BOhK440B.js} +1 -1
- package/dist/client/assets/{textarea-_7jiD7tD.js → textarea-D_hHTNRc.js} +1 -1
- package/dist/client/assets/{toggle-group-Cr9Sd28-.js → toggle-group-D9qgeAei.js} +1 -1
- package/dist/client/assets/{toolbar-DEctTAZS.js → toolbar-D8RAkN2H.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DMS2W-_l.js → toolbar-icon-button-Bz1Z7ms8.js} +1 -1
- package/dist/client/assets/{tools-list-DzdxUwY0.js → tools-list-BuxcpiJJ.js} +1 -1
- package/dist/client/assets/{tooltip-BSvDzA5F.js → tooltip-D2fONB1l.js} +1 -1
- package/dist/client/assets/{types-DSpLZCss.js → types-5NV2ded-.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BlK26Pak.js → use-ai-providers-Dqngh9k8.js} +1 -1
- package/dist/client/assets/{use-automations-DS7x_Yka.js → use-automations-bh6ent83.js} +1 -1
- package/dist/client/assets/{use-capability-DXxanrFU.js → use-capability-CHflJImd.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CqbmcogF.js → use-clock-tick-B2PF4L99.js} +1 -1
- package/dist/client/assets/{use-collections-E89pjH-z.js → use-collections-BcZ0NzQS.js} +1 -1
- package/dist/client/assets/{use-connection-HPYIB1L_.js → use-connection-DrKbMdFe.js} +1 -1
- package/dist/client/assets/{use-copy-BucqFRkh.js → use-copy-DtLITrmc.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bi4kWXxr.js → use-create-virtual-mcp-BSdujGVw.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-eXbj54WV.js → use-debounced-autosave-FRkauARB.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DwsMvXCK.js → use-debounced-value-D5uOdNo-.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DnA17lg1.js → use-decopilot-events-yco5iy5n.js} +1 -1
- package/dist/client/assets/{use-delete-connection-D9oA_Iuw.js → use-delete-connection-C8Oy9PPj.js} +1 -1
- package/dist/client/assets/{use-file-configs-77JsXLRJ.js → use-file-configs-BIVuClLU.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BGEZaC_d.js → use-infinite-scroll-BTBf2Vbg.js} +1 -1
- package/dist/client/assets/{use-join-requests-BDqL8m1v.js → use-join-requests-B5qpdQjQ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CrFimBIE.js → use-mcp-client-BRhV6FVw.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BLaH_phU.js → use-mcp-prompts-CQq8DZyF.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-2qGpGfQT.js → use-mcp-tools-BqeqG-XW.js} +1 -1
- package/dist/client/assets/{use-members-BRBh_r2f.js → use-members-DtyR5Xlb.js} +1 -1
- package/dist/client/assets/{use-mobile-CcaXr_ZY.js → use-mobile-7TG0ePDd.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-hUrzXW4j.js → use-navigate-to-agent-DmmChLl6.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CuoSRLLT.js → use-org-auth-client-CZ7VOykS.js} +1 -1
- package/dist/client/assets/{use-org-sso-DOBO5bz0.js → use-org-sso-BUVU8viD.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BcLIOVcj.js → use-organization-roles-XIhSarAG.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DKhFQzFb.js → use-organization-settings-CNaXayFz.js} +1 -1
- package/dist/client/assets/{use-registry-connections-5ggPsOFj.js → use-registry-connections-C9RKRQJj.js} +1 -1
- package/dist/client/assets/{use-secrets-DrpewLw2.js → use-secrets-Ce2hdeUj.js} +1 -1
- package/dist/client/assets/{use-status-sounds-rsB3nf6f.js → use-status-sounds-B8x3y24j.js} +1 -1
- package/dist/client/assets/{use-view-mode-Dkyy6VOo.js → use-view-mode-Bi7gdixW.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Bc1u53Yq.js → use-virtual-mcp-W2F2Mxfp.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-RUN_DRM3.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CWzBiY9D.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-BFTEv8fq.js → useSuspenseQueries-BJolvyTh.js} +1 -1
- package/dist/client/assets/{variant-calendar-CWcsCSui.js → variant-calendar-CUei3oso.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CBb3Uw1q.js → view-mode-toggle-D7PklEII.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +373 -373
- package/dist/server/server.js +285 -285
- package/package.json +2 -1
- package/dist/client/assets/bulk-category-panel-CVHecRlh.js +0 -1
- package/dist/client/assets/category-editor-oS-NNjmT.js +0 -1
- package/dist/client/assets/file-explorer-CPtK8hz_.js +0 -2
- package/dist/client/assets/page-seo-sheet-CyOPB7pW.js +0 -1
- package/dist/client/assets/project-app-view-BtBAh_Rd.js +0 -1
- package/dist/client/assets/record-editor-DSO_SqwI.js +0 -1
- package/dist/client/assets/registry-DMCevnrE.js +0 -2
- package/dist/client/assets/store-registry-Y117ABln.js +0 -2
- package/dist/client/assets/useInfiniteQuery-B0z5w_RI.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-HmJ78SJB.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,a as c,r as m,j as o}from"./index-
|
|
1
|
+
import{c as a,a as c,r as m,j as o}from"./index-CVreeNNf.js";import{A as u}from"./auth-split-layout-CmYuDNzb.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,j as t,B as F,i as Y,o as Ge,s as te,E as Pe,r as $,D as re,p as Qe,u as Ye,T as K,t as Xe,l as je,e as le,aW as ke}from"./index-pPjXkMWO.js";import{E as Ee}from"./empty-state-xwWZSkhQ.js";import{u as Ze,a as Ae}from"./use-collections-E89pjH-z.js";import{u as ae}from"./use-mcp-client-CrFimBIE.js";import{F as se,a as et,b as ce,d as de}from"./form-BDEEsjow.js";import{I as me}from"./input-D3oAzmpd.js";import{T as ie}from"./textarea-_7jiD7tD.js";import{a as tt,b as st,V as ue,O as nt,M as ot}from"./index-KOgLnEuj.js";import{ao as it,C as rt,ad as lt,R as at,a1 as ct,ap as dt,L as be}from"./agent-icon-BBTxD8Vr.js";import{g as mt,M as ut,a as Ne}from"./types-DSpLZCss.js";import{A as xt,a as pt,b as ft}from"./alert-BZSGiHUj.js";import{d as ve,S as Se,a as ye,b as we,c as ne}from"./select-CNB5fe3p.js";import{c as ht,T as Ce,a as Ie,b as $e}from"./tooltip-BSvDzA5F.js";import{i as gt}from"./AlertCircle-DP0nsq1e.js";import{s as jt}from"./Stars02-CJRC9WOX.js";import{a as bt}from"./Copy01-C-7fHSay.js";import{i as Nt}from"./Play-BZWHu6vA.js";import{a as Oe,b as Re,B as J,c as G,d as Q,e as _e}from"./breadcrumb-MwtTl_lp.js";import{g as vt}from"./connection-slug-eyAPH6o3.js";import{u as St,T as yt}from"./tools-list-DzdxUwY0.js";import{a as De,u as Me}from"./use-connection-HPYIB1L_.js";import{a as wt}from"./use-mcp-tools-2qGpGfQT.js";import{c as Ct}from"./content-blocks-o63cs2vh.js";import{I as Te}from"./integration-icon-ChiNtR71.js";import{j as It,m as $t}from"./chat-context-DvCifsaP.js";import{b as Tt}from"./shell-layout-D5fv0Gnj.js";import{M as Pt}from"./monaco-editor-mtUMAQ2f.js";import{n as kt}from"./XCircle-DMTLazaF.js";import"./constants-C8_Swa4x.js";import"./auth-BALlir75.js";import"./label-CN7heivZ.js";import"./index-CDriDNRl.js";import"./sidebar-qR7l9LGc.js";import"./LayoutLeft-PT-KYBVh.js";import"./use-mobile-CcaXr_ZY.js";import"./sheet-1qlQOBan.js";import"./X-CFM-EaJf.js";import"./ZoomOut-Dt1g7vVy.js";import"./Key01-DBAS-H0R.js";import"./extract-connection-data-BuuPL_TW.js";import"./use-registry-connections-5ggPsOFj.js";import"./use-organization-settings-DKhFQzFb.js";import"./studio-tools-D16Iabf3.js";import"./Plus-CToP0bbt.js";import"./index-VN20CUPz.js";import"./index-D_GlPX1k.js";import"./index-yPrRyIJq.js";import"./popover-B9_4d9Hb.js";import"./use-virtual-mcp-Bc1u53Yq.js";import"./Check-CUC1zRnb.js";import"./SearchMd-Dx8opdKE.js";import"./Users03-tyWJCIG0.js";import"./use-create-virtual-mcp-Bi4kWXxr.js";import"./use-navigate-to-agent-hUrzXW4j.js";import"./Tool01-MTiJaetc.js";import"./SwitchHorizontal01-BSA9bywH.js";import"./Settings02-DszLgCXG.js";import"./ArrowUpRight-3SkCtZ7K.js";import"./ZapSquare-DfDf_Qdm.js";import"./CheckCircle-BsrExj4H.js";import"./ChevronDown-B1mct1yp.js";import"./ChevronRight-C_4FW4NO.js";import"./ChevronUp-Bu7-a85r.js";import"./Circle-D65-cV8s.js";import"./Loading02-1-7GqxDm.js";import"./DotsVertical-BaKPV3I-.js";import"./Globe01-Dz7J456-.js";import"./Eye-BD5GpDZ-.js";import"./FilterLines-DFbyXaVS.js";import"./Star01-CVsItQ1u.js";import"./Globe04-ninCQ4l6.js";import"./HardDrive-DghaQYox.js";import"./LinkExternal01-DYdIsix1.js";import"./List-CR20iQn1.js";import"./Monitor01-CsiKf4Vb.js";import"./Sun-CfFmz0ui.js";import"./Palette-Bh8DSKBB.js";import"./SearchLg-YHk3bRUf.js";import"./Shield01-DTqhedHO.js";import"./Stars01-CsOhgCzT.js";import"./Trash01-BDWbYvcu.js";import"./Upload01-DNJ4y_co.js";import"./User01-BnV8b2oc.js";import"./Users01-CeDec9Hr.js";import"./XClose-CQ7XxXz6.js";import"./Zap-B6Y5QNOW.js";import"./mcp-oauth-DaQytGE0.js";import"./badge-Dxl2nD6L.js";import"./hooks-C1eaKJ5l.js";import"./decopilot-sse-pool-DKy1YCA-.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BlK26Pak.js";import"./use-decopilot-events-DnA17lg1.js";import"./tab-id-CLpu897Q.js";import"./avatar-qkTmk1tF.js";import"./dialog-xw_WZv6d.js";import"./alert-dialog-zbSvd7Ki.js";import"./required-auth-layout-Cc06WCjO.js";import"./use-org-sso-DOBO5bz0.js";import"./index-BfM-TSSf.js";function Et(s){const e=O.c(15),{onSave:r,onUndo:o,isDirty:l,isSaving:i,saveLabel:c,undoLabel:d}=s,n=c===void 0?"Save":c,u=d===void 0?"Undo":d;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(it,{size:14}),e[0]=x):x=e[0];let m;e[1]!==i||e[2]!==o||e[3]!==u?(m=t.jsxs(F,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":u,children:[x,u]}),e[1]=i,e[2]=o,e[3]=u,e[4]=m):m=e[4];let p;e[5]!==i?(p=i?t.jsx(Y,{size:14,className:"animate-spin"}):t.jsx(rt,{size:14}),e[5]=i,e[6]=p):p=e[6];let f;e[7]!==i||e[8]!==r||e[9]!==n||e[10]!==p?(f=t.jsxs(F,{variant:"default",size:"sm",onClick:r,disabled:i,"aria-label":n,children:[p,n]}),e[7]=i,e[8]=r,e[9]=n,e[10]=p,e[11]=f):f=e[11];let g;return e[12]!==m||e[13]!==f?(g=t.jsxs(t.Fragment,{children:[m,f]}),e[12]=m,e[13]=f,e[14]=g):g=e[14],g}Ge({title:te().min(1),description:te().nullable(),body:te()});function oe(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function At(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),r=e>=0?s[e+1]:void 0;return r?decodeURIComponent(r):void 0}function Ot(s){const e=O.c(13),{form:r}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=o):o=e[0];let l;e[1]!==r.control?(l=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:r.control,name:"title",render:Dt}),t.jsx(se,{control:r.control,name:"description",render:_t})]})]}),e[1]=r.control,e[2]=l):l=e[2];let i,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),c=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=i,e[4]=c):(i=e[3],c=e[4]);let d;e[5]!==r.control?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[i,c,t.jsx(se,{control:r.control,name:"body",render:Rt})]}),e[5]=r.control,e[6]=d):d=e[6];let n;e[7]!==l||e[8]!==d?(n=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[l,d]}),e[7]=l,e[8]=d,e[9]=n):n=e[9];let u;return e[10]!==r||e[11]!==n?(u=t.jsx(et,{...r,children:n}),e[10]=r,e[11]=n,e[12]=u):u=e[12],u}function Rt(s){const{field:e}=s;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(ie,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function _t(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(de,{children:t.jsx(me,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Dt(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(de,{children:t.jsx(me,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Mt(s){const e=O.c(36),{providerId:r,promptId:o}=s,{org:l}=re(),i=r||null;let c;e[0]!==l.id||e[1]!==l.slug||e[2]!==i?(c={connectionId:i,orgId:l.id,orgSlug:l.slug},e[0]=l.id,e[1]=l.slug,e[2]=i,e[3]=c):c=e[3];const d=ae(c),n=Ze(r,"PROMPT",o,d),u=Ae(r,"PROMPT",d),x=u.update.isPending;let m;e[4]!==n?(m=n?{title:n.title,description:n.description??null,body:oe(n)}:void 0,e[4]=n,e[5]=m):m=e[5];let p;e[6]!==m?(p={values:m},e[6]=m,e[7]=p):p=e[7];const f=Qe(p);let g;e[8]!==f||e[9]!==n?(g=()=>{n&&f.reset({title:n.title,description:n.description??null,body:oe(n)})},e[8]=f,e[9]=n,e[10]=g):g=e[10];const S=g;let C;e[11]!==u.update||e[12]!==f||e[13]!==o?(C=f.handleSubmit(async N=>{const E=await u.update.mutateAsync({id:o,data:{title:N.title,description:N.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:N.body}}]}});f.reset({title:E.title,description:E.description??null,body:oe(E)})}),e[11]=u.update,e[12]=f,e[13]=o,e[14]=C):C=e[14];const R=C;if(!n){let N;return e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=N):N=e[15],N}let I;e[16]!==n.title?(I=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[16]=n.title,e[17]=I):I=e[17];let k;e[18]!==n.description?(k=n.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:n.description})]}):null,e[18]=n.description,e[19]=k):k=e[19];let T;e[20]!==I||e[21]!==k?(T=t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[I,k]})}),e[20]=I,e[21]=k,e[22]=T):T=e[22];let b;e[23]!==R?(b=()=>{R()},e[23]=R,e[24]=b):b=e[24];let y;e[25]!==f.formState.isDirty||e[26]!==x||e[27]!==S||e[28]!==b?(y=t.jsx(tt,{children:t.jsx(Et,{onSave:b,onUndo:S,isDirty:f.formState.isDirty,isSaving:x})}),e[25]=f.formState.isDirty,e[26]=x,e[27]=S,e[28]=b,e[29]=y):y=e[29];let w;e[30]!==f?(w=t.jsx("div",{className:"h-full",children:t.jsx(Ot,{form:f})}),e[30]=f,e[31]=w):w=e[31];let P;return e[32]!==y||e[33]!==w||e[34]!==T?(P=t.jsxs(ue,{children:[T,y,w]}),e[32]=y,e[33]=w,e[34]=T,e[35]=P):P=e[35],P}function zt(s){const e=O.c(4),{itemId:r}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=At(),e[0]=o):o=e[0];const l=o;if(!l){let c;return e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=c):c=e[1],c}let i;return e[2]!==r?(i=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:null,children:t.jsx(Mt,{providerId:l,promptId:r})})}),e[2]=r,e[3]=i):i=e[3],i}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=O.c(11),{toolName:r,connectionId:o,siblings:l,onSelectInstance:i,onBack:c}=s;let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const n=St(d);if(!n.isAuthenticated){let m;return e[2]!==n.supportsOAuth||e[3]!==c?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:n.supportsOAuth?t.jsx(nt,{onAuthenticate:()=>c(),buttonText:"Go back to authenticate"}):t.jsx(ot,{hasReadme:!1})}),e[2]=n.supportsOAuth,e[3]=c,e[4]=m):m=e[4],m}const u=`${o}:${r}`;let x;return e[5]!==o||e[6]!==i||e[7]!==l||e[8]!==u||e[9]!==r?(x=t.jsx(Bt,{toolName:r,connectionId:o,siblings:l,onSelectInstance:i},u),e[5]=o,e[6]=i,e[7]=l,e[8]=u,e[9]=r,e[10]=x):x=e[10],x}function Bt({toolName:s,connectionId:e,siblings:r,onSelectInstance:o}){const{replayId:l}=Ye({strict:!1}),i=(()=>{if(!l)return null;const a=`replay-${l}`,h=sessionStorage.getItem(a);if(!h)return null;sessionStorage.removeItem(a);try{return JSON.parse(h)}catch{return null}})(),c=(()=>{if(!i)return null;const a={};for(const[h,v]of Object.entries(i))v!==null&&typeof v=="object"?a[h]=JSON.stringify(v,null,2):a[h]=v;return a})(),[d,n]=$.useState(c??{}),[u,x]=$.useState(i?JSON.stringify(i,null,2):"{}"),[m,p]=$.useState(null),[f,g]=$.useState(null),[S,C]=$.useState(null),[R,I]=$.useState(null),[k,T]=$.useState(!1),[b,y]=$.useState(null),{org:w}=re(),P=De(e),N=It(),E=$t(),{setChatOpen:U}=Tt(),z=`${e}:${s}`,_=ae({connectionId:e,orgId:w.id,orgSlug:w.slug}),L=wt({client:_}),j=L.data?.tools?.find(a=>a.name===s),A=mt(j?._meta),V=a=>{if(!N)return;const h=Ct(a.content);h.content.length>0&&(U(!0),N.sendMessage({tiptapDoc:h}))},[D,X]=$.useState("json"),[ze,Le]=$.useState(!1);A&&!ze&&(X("ui"),Le(!0));const xe=j?.inputSchema?.properties,pe=xe?Object.keys(xe):[],q=pe.length>0,H={};if(q&&j?.inputSchema?.properties)for(const a of pe)H[a]=j.inputSchema.required?.includes(a)?"":void 0;const Z=a=>Object.prototype.hasOwnProperty.call(d,a),Ue=async()=>{T(!0),I(null),p(null),g(null),C(null),y(null);const a=performance.now();try{if(!_)throw new Error("MCP client is not available");const h=q?{...H,...d}:(()=>{const M=u.trim();if(!M)return{};const B=JSON.parse(M);if(B&&typeof B=="object")return B;throw new Error("Raw JSON input must be an object.")})();q&&j?.inputSchema?.properties&&Object.entries(j.inputSchema.properties).forEach(([M,B])=>{if((B.type==="object"||B.type==="array")&&typeof h[M]=="string")try{h[M]=JSON.parse(h[M])}catch{}else if((B.type==="number"||B.type==="integer")&&typeof h[M]=="string"&&h[M]!==""){const ge=Number(h[M]);Number.isNaN(ge)||(h[M]=ge)}});const v=await _.callTool({name:s,arguments:h}),W=v.structuredContent??v,He=performance.now(),We=Math.round(He-a);p(W),g(v),C(h);const Ke=JSON.stringify(W),he=new TextEncoder().encode(Ke).length;y({duration:`${We}ms`,bytes:`${he} bytes`,tokens:`~${Math.ceil(he/4)} tokens`,cost:"$0.0000"})}catch(h){const v=h instanceof Error?h.message:String(h);I(v||"Unknown error occurred");const W=performance.now();y({duration:`${Math.round(W-a)}ms`})}finally{T(!1)}},ee=(a,h)=>{n(v=>({...v,[a]:h}))},Be=()=>{p(null),g(null),C(null),I(null),y(null)},Fe=j?.name??Lt(s),Ve=t.jsx(Oe,{children:t.jsxs(Re,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:w.slug},children:"Connections"})})}),t.jsx(Q,{}),P&&t.jsxs(t.Fragment,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:w.slug,appSlug:vt(P)},search:{tab:"tools"},children:P.title})})}),t.jsx(Q,{})]}),t.jsx(J,{children:t.jsx(_e,{children:Fe})})]})}),fe=r.length>1&&t.jsxs(ve,{value:e,onValueChange:o,children:[t.jsx(Se,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ye,{})}),t.jsx(we,{children:r.map(a=>t.jsx(ne,{value:a.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Te,{icon:a.icon,name:a.title,size:"xs",className:"shrink-0"}),a.title]})},a.id))})]}),Je=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),j?.inputSchema?.required&&j.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&j?.inputSchema?.properties?Object.entries(j.inputSchema.properties).map(([a,h])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[a,j.inputSchema?.required?.includes(a)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(ie,{className:"font-mono text-xs",value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a} as JSON...`,rows:3}):h.type==="boolean"?t.jsxs(ve,{value:Z(a)?String(d[a]??""):"",onValueChange:v=>ee(a,v==="true"),children:[t.jsx(Se,{children:t.jsx(ye,{placeholder:"Select true or false..."})}),t.jsxs(we,{children:[t.jsx(ne,{value:"true",children:"true"}),t.jsx(ne,{value:"false",children:"false"})]})]}):t.jsx(me,{value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a}...`})]},a)):j?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(ie,{className:"font-mono text-xs min-h-[120px]",value:u,onChange:a=>x(a.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(F,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(lt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(F,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ue,children:[t.jsx(Nt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(jt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(at,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ct,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),A&&t.jsx(ht,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(dt,{size:14})})}),t.jsx($e,{children:"Interactive view"})]}),t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx(be,{size:14})})}),t.jsx($e,{children:"JSON view"})]})]})})]})]}),R&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(xt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(gt,{className:"h-4 w-4"}),t.jsx(pt,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(ft,{className:"text-xs text-destructive",children:R})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:A&&D==="ui"&&_?t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(ut,{resourceURI:A,toolInfo:j?{tool:j}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ne.view.minHeight,maxHeight:Ne.view.maxHeight,client:_,onMessage:V,onUpdateModelContext:a=>E?.setAppContext(z,a),onTeardown:()=>E?.clearAppContext(z),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(F,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(m,null,2)),Xe.success("Copied to clipboard")},children:t.jsx(bt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(be,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(ue,{breadcrumb:Ve,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Te,{icon:P?.icon||null,name:P?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[L.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):L.isLoading?t.jsx(Y,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:L.isSuccess?"ready":L.isLoading?"connecting":"error"})]}),t.jsx(yt,{annotations:j?.annotations,_meta:j?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:fe})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:j?.description||"No description available"})]}),r.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),fe]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Je}),qe]})})]})})}function Ft(s){const e=O.c(10),{itemId:r,siblings:o,onBack:l}=s,[i,c]=$.useState(o[0]?.id??"");let d;e[0]!==i||e[1]!==o?(d=o.find(p=>p.id===i)?.id??o[0]?.id??"",e[0]=i,e[1]=o,e[2]=d):d=e[2];const n=d;if(!De(n||void 0)||!n){let p;return e[3]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=p):p=e[3],p}let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=x):x=e[4];let m;return e[5]!==n||e[6]!==l||e[7]!==o||e[8]!==r?(m=t.jsx($.Suspense,{fallback:x,children:t.jsx(Ut,{toolName:r,connectionId:n,siblings:o,onSelectInstance:c,onBack:l})}),e[5]=n,e[6]=l,e[7]=o,e[8]=r,e[9]=m):m=e[9],m}function Vt(s){const e=O.c(21),{icon:r,illustration:o,title:l,description:i,buttonProps:c,buttonComponent:d,className:n,children:u}=s;let x;e[0]!==n?(x=je("flex flex-col items-center justify-center py-16 text-center",n),e[0]=n,e[1]=x):x=e[1];let m;e[2]!==r||e[3]!==o?(m=o?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:o}):r?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:r}):null,e[2]=r,e[3]=o,e[4]=m):m=e[4];let p;e[5]!==l?(p=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:l}),e[5]=l,e[6]=p):p=e[6];let f;e[7]!==i?(f=i&&t.jsx("div",{className:"text-sm text-muted-foreground",children:i}),e[7]=i,e[8]=f):f=e[8];let g;e[9]!==p||e[10]!==f?(g=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[p,f]}),e[9]=p,e[10]=f,e[11]=g):g=e[11];let S;e[12]!==d||e[13]!==c?(S=(d??c)&&t.jsx("div",{className:"mt-4",children:d??(c&&t.jsx(F,{size:"sm",className:je(c?.className),...c}))}),e[12]=d,e[13]=c,e[14]=S):S=e[14];let C;return e[15]!==u||e[16]!==x||e[17]!==m||e[18]!==g||e[19]!==S?(C=t.jsxs("div",{className:x,children:[m,g,S,u]}),e[15]=u,e[16]=x,e[17]=m,e[18]=g,e[19]=S,e[20]=C):C=e[20],C}const Jt={prompt:zt};function qt(){const s=O.c(9),e=ke();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=le(r),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const c=Me(i);let d;s[3]!==e.history?(d=()=>{e.history.back()},s[3]=e.history,s[4]=d):d=s[4];const n=d,u=Ht;let x;return s[5]!==n||s[6]!==l||s[7]!==c?(x=t.jsx(Ft,{itemId:l,siblings:c,onBack:n,onUpdate:u}),s[5]=n,s[6]=l,s[7]=c,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Wt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Kt(){const s=O.c(41),e=ke();let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=r):r=s[0];const o=le(r),l=decodeURIComponent(o.collectionName),i=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:n}=re();let u;s[3]!==o.appSlug?(u={slug:o.appSlug},s[3]=o.appSlug,s[4]=u):u=s[4];const m=Me(u)[0]??null,p=m?.id??"",f=p||"no-connection",g=p??null;let S;s[5]!==n.id||s[6]!==n.slug||s[7]!==g?(S={connectionId:g,orgId:n.id,orgSlug:n.slug},s[5]=n.id,s[6]=n.slug,s[7]=g,s[8]=S):S=s[8];const C=ae(S),R=Ae(f,l,C);let I;s[9]!==R||s[10]!==i?(I=async D=>{i&&await R.update.mutateAsync({id:i,data:D})},s[9]=R,s[10]=i,s[11]=I):I=s[11];const k=I;let T;s[12]!==l?(T=l?.toLowerCase(),s[12]=l,s[13]=T):T=s[13];const b=T,y=b&&Jt[b];let w;s[14]!==l?(w=Wt(l),s[14]=l,s[15]=w):w=s[15];const P=w;let N;s[16]!==n.slug?(N=t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:n.slug},children:"Connections"})})}),s[16]=n.slug,s[17]=N):N=s[17];let E;s[18]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Q,{}),s[18]=E):E=s[18];let U;s[19]!==l||s[20]!==m||s[21]!==n.slug||s[22]!==o.appSlug?(U=m&&t.jsxs(t.Fragment,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:n.slug,appSlug:o.appSlug},search:{tab:l},children:m.title})})}),t.jsx(Q,{})]}),s[19]=l,s[20]=m,s[21]=n.slug,s[22]=o.appSlug,s[23]=U):U=s[23];let z;s[24]!==P?(z=t.jsx(J,{children:t.jsx(_e,{children:P})}),s[24]=P,s[25]=z):z=s[25];let _;s[26]!==U||s[27]!==z||s[28]!==N?(_=t.jsx(Oe,{children:t.jsxs(Re,{children:[N,E,U,z]})}),s[26]=U,s[27]=z,s[28]=N,s[29]=_):_=s[29];const L=_;if(y){let D;return s[30]!==y||s[31]!==d||s[32]!==k||s[33]!==i?(D=t.jsx(y,{itemId:i,onBack:d,onUpdate:k}),s[30]=y,s[31]=d,s[32]=k,s[33]=i,s[34]=D):D=s[34],D}let j;s[35]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(kt,{size:36,className:"text-muted-foreground"}),s[35]=j):j=s[35];let A;s[36]!==d?(A=t.jsx(Vt,{icon:j,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:d,children:"Go back"}}),s[36]=d,s[37]=A):A=s[37];let V;return s[38]!==L||s[39]!==A?(V=t.jsx(ue,{breadcrumb:L,children:A}),s[38]=L,s[39]=A,s[40]=V):V=s[40],V}function Gt(){const s=O.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const r=le(e);if(decodeURIComponent(r.collectionName)==="tools"){let c;return s[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(qt,{}),s[1]=c):c=s[1],c}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Kt,{}),s[2]=i):i=s[2],i}function Jn(){const s=O.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gt,{})})}),s[0]=e):e=s[0],e}export{Jn as default};
|
|
1
|
+
import{c as O,j as t,B as F,i as Y,o as Ge,s as te,E as Pe,r as $,D as ie,p as Qe,u as Ye,T as K,t as Xe,l as je,e as le,aW as ke}from"./index-CVreeNNf.js";import{E as Ee}from"./empty-state-rZEB9QIX.js";import{u as Ze,a as Ae}from"./use-collections-BcZ0NzQS.js";import{u as ae}from"./use-mcp-client-BRhV6FVw.js";import{F as se,a as et,b as ce,d as de}from"./form-CyQmMYiz.js";import{I as me}from"./input-hcZc7h3D.js";import{T as re}from"./textarea-D_hHTNRc.js";import{a as tt,b as st,V as ue,O as nt,M as ot}from"./index-8jHxLh_t.js";import{ar as rt,C as it,ag as lt,R as at,a4 as ct,as as dt,L as be}from"./agent-icon-u8Dhjems.js";import{g as mt,M as ut,a as Ne}from"./types-5NV2ded-.js";import{A as xt,a as pt,b as ft}from"./alert-BzP_P6Yw.js";import{d as ve,S as Se,a as ye,b as we,c as ne}from"./select-w9uizPnB.js";import{c as ht,T as Ce,a as Ie,b as $e}from"./tooltip-D2fONB1l.js";import{i as gt}from"./AlertCircle-pLuWab2O.js";import{s as jt}from"./Stars02-B67gg490.js";import{a as bt}from"./Copy01-Cdi4qY0f.js";import{i as Nt}from"./Play-CcyHvjQE.js";import{a as Oe,b as Re,B as J,c as G,d as Q,e as _e}from"./breadcrumb-Ci3MX-hV.js";import{g as vt}from"./connection-slug-eyAPH6o3.js";import{u as St,T as yt}from"./tools-list-BuxcpiJJ.js";import{a as De,u as Me}from"./use-connection-DrKbMdFe.js";import{a as wt}from"./use-mcp-tools-BqeqG-XW.js";import{c as Ct}from"./content-blocks-o63cs2vh.js";import{I as Te}from"./integration-icon-BC9MaYhQ.js";import{j as It,m as $t}from"./chat-context-CmaqOUYY.js";import{b as Tt}from"./shell-layout-CYEP4NSP.js";import{M as Pt}from"./monaco-editor-BgOaSxTf.js";import{n as kt}from"./XCircle-0va8xABq.js";import"./constants-C8_Swa4x.js";import"./auth-C_dVdYxA.js";import"./label-CpclvonI.js";import"./index-BM0Ym8un.js";import"./sidebar-T4hY424R.js";import"./LayoutLeft-BCd4DxZL.js";import"./use-mobile-7TG0ePDd.js";import"./sheet-CzE0lqCT.js";import"./X-CmY2dI4A.js";import"./ZoomOut-GeKL8STS.js";import"./Key01-lDuHTtYR.js";import"./extract-connection-data-AIs6sFAy.js";import"./use-registry-connections-C9RKRQJj.js";import"./use-organization-settings-CNaXayFz.js";import"./studio-tools-BOvy4_zw.js";import"./Plus-B8hmYxTd.js";import"./index-CsOpOO0V.js";import"./index-AN1WZtpr.js";import"./index-9LHoYH8C.js";import"./popover-CrQP6J1V.js";import"./use-virtual-mcp-W2F2Mxfp.js";import"./Check-BmisW-gO.js";import"./SearchMd-DR4ENkEZ.js";import"./Users03-DW4HTBw0.js";import"./use-create-virtual-mcp-BSdujGVw.js";import"./use-navigate-to-agent-DmmChLl6.js";import"./Tool01-DItmnBS_.js";import"./SwitchHorizontal01-CuYgULrj.js";import"./Settings02-DUJ4pdEY.js";import"./ArrowUpRight-5qca7K3c.js";import"./ZapSquare-3vdDCs3a.js";import"./CheckCircle-CtwfeJGG.js";import"./ChevronDown-DScAH69v.js";import"./ChevronRight-R_IgGJ90.js";import"./ChevronUp-DbQrNNT7.js";import"./Circle-Dou1PsAM.js";import"./Loading02-BQZyOed_.js";import"./DotsVertical-D7yw7BOZ.js";import"./Globe01-BwEqc3Zi.js";import"./Eye-DSPSvd-z.js";import"./FilterLines-CIre0FvL.js";import"./Star01-DP4fzeT_.js";import"./Globe04-Ckr1BrL4.js";import"./HardDrive-BHqIvPTj.js";import"./LinkExternal01-Bws57Ghu.js";import"./List-CRp9-m0D.js";import"./Monitor01-CQZr2DXo.js";import"./Sun-FzgPMit2.js";import"./Palette-CjYrZKAr.js";import"./SearchLg-QTo8IwQN.js";import"./Shield01-DN8y9VWe.js";import"./Stars01-AnTTTVLS.js";import"./Trash01-D6ySBQyD.js";import"./Upload01-z0eaJfaS.js";import"./User01-Bbvktcee.js";import"./Users01-kzeWrMKW.js";import"./XClose-CytiRqor.js";import"./Zap-DlYvu5VF.js";import"./mcp-oauth-CfQhic2C.js";import"./badge-CTk0aBEM.js";import"./hooks-BY04f5oV.js";import"./decopilot-sse-pool-CyMXjbIG.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-Dqngh9k8.js";import"./use-decopilot-events-yco5iy5n.js";import"./tab-id-CLpu897Q.js";import"./avatar-D4oK7QP_.js";import"./dialog-C17LEi_J.js";import"./alert-dialog-Da7c7cgA.js";import"./required-auth-layout-B7xpW-ZL.js";import"./use-org-sso-BUVU8viD.js";import"./index-CMSBFE9x.js";function Et(s){const e=O.c(15),{onSave:i,onUndo:o,isDirty:l,isSaving:r,saveLabel:c,undoLabel:d}=s,n=c===void 0?"Save":c,u=d===void 0?"Undo":d;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(rt,{size:14}),e[0]=x):x=e[0];let m;e[1]!==r||e[2]!==o||e[3]!==u?(m=t.jsxs(F,{variant:"outline",size:"sm",onClick:o,disabled:r,"aria-label":u,children:[x,u]}),e[1]=r,e[2]=o,e[3]=u,e[4]=m):m=e[4];let p;e[5]!==r?(p=r?t.jsx(Y,{size:14,className:"animate-spin"}):t.jsx(it,{size:14}),e[5]=r,e[6]=p):p=e[6];let f;e[7]!==r||e[8]!==i||e[9]!==n||e[10]!==p?(f=t.jsxs(F,{variant:"default",size:"sm",onClick:i,disabled:r,"aria-label":n,children:[p,n]}),e[7]=r,e[8]=i,e[9]=n,e[10]=p,e[11]=f):f=e[11];let g;return e[12]!==m||e[13]!==f?(g=t.jsxs(t.Fragment,{children:[m,f]}),e[12]=m,e[13]=f,e[14]=g):g=e[14],g}Ge({title:te().min(1),description:te().nullable(),body:te()});function oe(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function At(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),i=e>=0?s[e+1]:void 0;return i?decodeURIComponent(i):void 0}function Ot(s){const e=O.c(13),{form:i}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=o):o=e[0];let l;e[1]!==i.control?(l=t.jsxs("div",{className:"flex flex-col gap-4",children:[o,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:i.control,name:"title",render:Dt}),t.jsx(se,{control:i.control,name:"description",render:_t})]})]}),e[1]=i.control,e[2]=l):l=e[2];let r,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),c=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=r,e[4]=c):(r=e[3],c=e[4]);let d;e[5]!==i.control?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[r,c,t.jsx(se,{control:i.control,name:"body",render:Rt})]}),e[5]=i.control,e[6]=d):d=e[6];let n;e[7]!==l||e[8]!==d?(n=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[l,d]}),e[7]=l,e[8]=d,e[9]=n):n=e[9];let u;return e[10]!==i||e[11]!==n?(u=t.jsx(et,{...i,children:n}),e[10]=i,e[11]=n,e[12]=u):u=e[12],u}function Rt(s){const{field:e}=s;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(re,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function _t(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(de,{children:t.jsx(me,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Dt(s){const{field:e}=s;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(de,{children:t.jsx(me,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Mt(s){const e=O.c(36),{providerId:i,promptId:o}=s,{org:l}=ie(),r=i||null;let c;e[0]!==l.id||e[1]!==l.slug||e[2]!==r?(c={connectionId:r,orgId:l.id,orgSlug:l.slug},e[0]=l.id,e[1]=l.slug,e[2]=r,e[3]=c):c=e[3];const d=ae(c),n=Ze(i,"PROMPT",o,d),u=Ae(i,"PROMPT",d),x=u.update.isPending;let m;e[4]!==n?(m=n?{title:n.title,description:n.description??null,body:oe(n)}:void 0,e[4]=n,e[5]=m):m=e[5];let p;e[6]!==m?(p={values:m},e[6]=m,e[7]=p):p=e[7];const f=Qe(p);let g;e[8]!==f||e[9]!==n?(g=()=>{n&&f.reset({title:n.title,description:n.description??null,body:oe(n)})},e[8]=f,e[9]=n,e[10]=g):g=e[10];const S=g;let C;e[11]!==u.update||e[12]!==f||e[13]!==o?(C=f.handleSubmit(async N=>{const E=await u.update.mutateAsync({id:o,data:{title:N.title,description:N.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:N.body}}]}});f.reset({title:E.title,description:E.description??null,body:oe(E)})}),e[11]=u.update,e[12]=f,e[13]=o,e[14]=C):C=e[14];const R=C;if(!n){let N;return e[15]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=N):N=e[15],N}let I;e[16]!==n.title?(I=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[16]=n.title,e[17]=I):I=e[17];let k;e[18]!==n.description?(k=n.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:n.description})]}):null,e[18]=n.description,e[19]=k):k=e[19];let T;e[20]!==I||e[21]!==k?(T=t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[I,k]})}),e[20]=I,e[21]=k,e[22]=T):T=e[22];let b;e[23]!==R?(b=()=>{R()},e[23]=R,e[24]=b):b=e[24];let y;e[25]!==f.formState.isDirty||e[26]!==x||e[27]!==S||e[28]!==b?(y=t.jsx(tt,{children:t.jsx(Et,{onSave:b,onUndo:S,isDirty:f.formState.isDirty,isSaving:x})}),e[25]=f.formState.isDirty,e[26]=x,e[27]=S,e[28]=b,e[29]=y):y=e[29];let w;e[30]!==f?(w=t.jsx("div",{className:"h-full",children:t.jsx(Ot,{form:f})}),e[30]=f,e[31]=w):w=e[31];let P;return e[32]!==y||e[33]!==w||e[34]!==T?(P=t.jsxs(ue,{children:[T,y,w]}),e[32]=y,e[33]=w,e[34]=T,e[35]=P):P=e[35],P}function zt(s){const e=O.c(4),{itemId:i}=s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=At(),e[0]=o):o=e[0];const l=o;if(!l){let c;return e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Ee,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=c):c=e[1],c}let r;return e[2]!==i?(r=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:null,children:t.jsx(Mt,{providerId:l,promptId:i})})}),e[2]=i,e[3]=r):r=e[3],r}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=O.c(11),{toolName:i,connectionId:o,siblings:l,onSelectInstance:r,onBack:c}=s;let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const n=St(d);if(!n.isAuthenticated){let m;return e[2]!==n.supportsOAuth||e[3]!==c?(m=t.jsx("div",{className:"flex h-full items-center justify-center",children:n.supportsOAuth?t.jsx(nt,{onAuthenticate:()=>c(),buttonText:"Go back to authenticate"}):t.jsx(ot,{hasReadme:!1})}),e[2]=n.supportsOAuth,e[3]=c,e[4]=m):m=e[4],m}const u=`${o}:${i}`;let x;return e[5]!==o||e[6]!==r||e[7]!==l||e[8]!==u||e[9]!==i?(x=t.jsx(Bt,{toolName:i,connectionId:o,siblings:l,onSelectInstance:r},u),e[5]=o,e[6]=r,e[7]=l,e[8]=u,e[9]=i,e[10]=x):x=e[10],x}function Bt({toolName:s,connectionId:e,siblings:i,onSelectInstance:o}){const{replayId:l}=Ye({strict:!1}),r=(()=>{if(!l)return null;const a=`replay-${l}`,h=sessionStorage.getItem(a);if(!h)return null;sessionStorage.removeItem(a);try{return JSON.parse(h)}catch{return null}})(),c=(()=>{if(!r)return null;const a={};for(const[h,v]of Object.entries(r))v!==null&&typeof v=="object"?a[h]=JSON.stringify(v,null,2):a[h]=v;return a})(),[d,n]=$.useState(c??{}),[u,x]=$.useState(r?JSON.stringify(r,null,2):"{}"),[m,p]=$.useState(null),[f,g]=$.useState(null),[S,C]=$.useState(null),[R,I]=$.useState(null),[k,T]=$.useState(!1),[b,y]=$.useState(null),{org:w}=ie(),P=De(e),N=It(),E=$t(),{setChatOpen:U}=Tt(),z=`${e}:${s}`,_=ae({connectionId:e,orgId:w.id,orgSlug:w.slug}),L=wt({client:_}),j=L.data?.tools?.find(a=>a.name===s),A=mt(j?._meta),V=a=>{if(!N)return;const h=Ct(a.content);h.content.length>0&&(U(!0),N.sendMessage({tiptapDoc:h}))},[D,X]=$.useState("json"),[ze,Le]=$.useState(!1);A&&!ze&&(X("ui"),Le(!0));const xe=j?.inputSchema?.properties,pe=xe?Object.keys(xe):[],q=pe.length>0,H={};if(q&&j?.inputSchema?.properties)for(const a of pe)H[a]=j.inputSchema.required?.includes(a)?"":void 0;const Z=a=>Object.prototype.hasOwnProperty.call(d,a),Ue=async()=>{T(!0),I(null),p(null),g(null),C(null),y(null);const a=performance.now();try{if(!_)throw new Error("MCP client is not available");const h=q?{...H,...d}:(()=>{const M=u.trim();if(!M)return{};const B=JSON.parse(M);if(B&&typeof B=="object")return B;throw new Error("Raw JSON input must be an object.")})();q&&j?.inputSchema?.properties&&Object.entries(j.inputSchema.properties).forEach(([M,B])=>{if((B.type==="object"||B.type==="array")&&typeof h[M]=="string")try{h[M]=JSON.parse(h[M])}catch{}else if((B.type==="number"||B.type==="integer")&&typeof h[M]=="string"&&h[M]!==""){const ge=Number(h[M]);Number.isNaN(ge)||(h[M]=ge)}});const v=await _.callTool({name:s,arguments:h}),W=v.structuredContent??v,He=performance.now(),We=Math.round(He-a);p(W),g(v),C(h);const Ke=JSON.stringify(W),he=new TextEncoder().encode(Ke).length;y({duration:`${We}ms`,bytes:`${he} bytes`,tokens:`~${Math.ceil(he/4)} tokens`,cost:"$0.0000"})}catch(h){const v=h instanceof Error?h.message:String(h);I(v||"Unknown error occurred");const W=performance.now();y({duration:`${Math.round(W-a)}ms`})}finally{T(!1)}},ee=(a,h)=>{n(v=>({...v,[a]:h}))},Be=()=>{p(null),g(null),C(null),I(null),y(null)},Fe=j?.name??Lt(s),Ve=t.jsx(Oe,{children:t.jsxs(Re,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:w.slug},children:"Connections"})})}),t.jsx(Q,{}),P&&t.jsxs(t.Fragment,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:w.slug,appSlug:vt(P)},search:{tab:"tools"},children:P.title})})}),t.jsx(Q,{})]}),t.jsx(J,{children:t.jsx(_e,{children:Fe})})]})}),fe=i.length>1&&t.jsxs(ve,{value:e,onValueChange:o,children:[t.jsx(Se,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ye,{})}),t.jsx(we,{children:i.map(a=>t.jsx(ne,{value:a.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Te,{icon:a.icon,name:a.title,size:"xs",className:"shrink-0"}),a.title]})},a.id))})]}),Je=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),j?.inputSchema?.required&&j.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&j?.inputSchema?.properties?Object.entries(j.inputSchema.properties).map(([a,h])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[a,j.inputSchema?.required?.includes(a)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:h.type})]}),h.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:h.description}),h.type==="object"||h.type==="array"?t.jsx(re,{className:"font-mono text-xs",value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a} as JSON...`,rows:3}):h.type==="boolean"?t.jsxs(ve,{value:Z(a)?String(d[a]??""):"",onValueChange:v=>ee(a,v==="true"),children:[t.jsx(Se,{children:t.jsx(ye,{placeholder:"Select true or false..."})}),t.jsxs(we,{children:[t.jsx(ne,{value:"true",children:"true"}),t.jsx(ne,{value:"false",children:"false"})]})]}):t.jsx(me,{value:Z(a)?d[a]??"":H[a]??"",onChange:v=>ee(a,v.target.value),placeholder:`Enter ${a}...`})]},a)):j?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(re,{className:"font-mono text-xs min-h-[120px]",value:u,onChange:a=>x(a.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(F,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(lt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(F,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Ue,children:[t.jsx(Nt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),qe=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(jt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(at,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ct,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),A&&t.jsx(ht,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(dt,{size:14})})}),t.jsx($e,{children:"Interactive view"})]}),t.jsxs(Ce,{children:[t.jsx(Ie,{asChild:!0,children:t.jsx(F,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx(be,{size:14})})}),t.jsx($e,{children:"JSON view"})]})]})})]})]}),R&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(xt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(gt,{className:"h-4 w-4"}),t.jsx(pt,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(ft,{className:"text-xs text-destructive",children:R})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:A&&D==="ui"&&_?t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(ut,{resourceURI:A,toolInfo:j?{tool:j}:void 0,toolInput:S??void 0,toolResult:f??void 0,displayMode:"fullscreen",minHeight:Ne.view.minHeight,maxHeight:Ne.view.maxHeight,client:_,onMessage:V,onUpdateModelContext:a=>E?.setAppContext(z,a),onTeardown:()=>E?.clearAppContext(z),className:"h-full"})}):m?t.jsxs(t.Fragment,{children:[t.jsx(Pt,{code:JSON.stringify(m,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(F,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(m,null,2)),Xe.success("Copied to clipboard")},children:t.jsx(bt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(be,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(ue,{breadcrumb:Ve,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Te,{icon:P?.icon||null,name:P?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[L.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):L.isLoading?t.jsx(Y,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:L.isSuccess?"ready":L.isLoading?"connecting":"error"})]}),t.jsx(yt,{annotations:j?.annotations,_meta:j?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:fe})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:j?.description||"No description available"})]}),i.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),fe]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Je}),qe]})})]})})}function Ft(s){const e=O.c(10),{itemId:i,siblings:o,onBack:l}=s,[r,c]=$.useState(o[0]?.id??"");let d;e[0]!==r||e[1]!==o?(d=o.find(p=>p.id===r)?.id??o[0]?.id??"",e[0]=r,e[1]=o,e[2]=d):d=e[2];const n=d;if(!De(n||void 0)||!n){let p;return e[3]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=p):p=e[3],p}let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=x):x=e[4];let m;return e[5]!==n||e[6]!==l||e[7]!==o||e[8]!==i?(m=t.jsx($.Suspense,{fallback:x,children:t.jsx(Ut,{toolName:i,connectionId:n,siblings:o,onSelectInstance:c,onBack:l})}),e[5]=n,e[6]=l,e[7]=o,e[8]=i,e[9]=m):m=e[9],m}function Vt(s){const e=O.c(21),{icon:i,illustration:o,title:l,description:r,buttonProps:c,buttonComponent:d,className:n,children:u}=s;let x;e[0]!==n?(x=je("flex flex-col items-center justify-center py-16 text-center",n),e[0]=n,e[1]=x):x=e[1];let m;e[2]!==i||e[3]!==o?(m=o?t.jsx("div",{className:"mb-4 text-muted-foreground/50",children:o}):i?t.jsx("div",{className:"mb-4 flex h-12 w-12 items-center justify-center rounded-xl bg-muted/50 text-muted-foreground",children:i}):null,e[2]=i,e[3]=o,e[4]=m):m=e[4];let p;e[5]!==l?(p=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:l}),e[5]=l,e[6]=p):p=e[6];let f;e[7]!==r?(f=r&&t.jsx("div",{className:"text-sm text-muted-foreground",children:r}),e[7]=r,e[8]=f):f=e[8];let g;e[9]!==p||e[10]!==f?(g=t.jsxs("div",{className:"flex flex-col items-center gap-1 max-w-sm",children:[p,f]}),e[9]=p,e[10]=f,e[11]=g):g=e[11];let S;e[12]!==d||e[13]!==c?(S=(d??c)&&t.jsx("div",{className:"mt-4",children:d??(c&&t.jsx(F,{size:"sm",className:je(c?.className),...c}))}),e[12]=d,e[13]=c,e[14]=S):S=e[14];let C;return e[15]!==u||e[16]!==x||e[17]!==m||e[18]!==g||e[19]!==S?(C=t.jsxs("div",{className:x,children:[m,g,S,u]}),e[15]=u,e[16]=x,e[17]=m,e[18]=g,e[19]=S,e[20]=C):C=e[20],C}const Jt={prompt:zt};function qt(){const s=O.c(9),e=ke();let i;s[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=i):i=s[0];const o=le(i),l=decodeURIComponent(o.itemId);let r;s[1]!==o.appSlug?(r={slug:o.appSlug},s[1]=o.appSlug,s[2]=r):r=s[2];const c=Me(r);let d;s[3]!==e.history?(d=()=>{e.history.back()},s[3]=e.history,s[4]=d):d=s[4];const n=d,u=Ht;let x;return s[5]!==n||s[6]!==l||s[7]!==c?(x=t.jsx(Ft,{itemId:l,siblings:c,onBack:n,onUpdate:u}),s[5]=n,s[6]=l,s[7]=c,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Wt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Kt(){const s=O.c(41),e=ke();let i;s[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=i):i=s[0];const o=le(i),l=decodeURIComponent(o.collectionName),r=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:n}=ie();let u;s[3]!==o.appSlug?(u={slug:o.appSlug},s[3]=o.appSlug,s[4]=u):u=s[4];const m=Me(u)[0]??null,p=m?.id??"",f=p||"no-connection",g=p??null;let S;s[5]!==n.id||s[6]!==n.slug||s[7]!==g?(S={connectionId:g,orgId:n.id,orgSlug:n.slug},s[5]=n.id,s[6]=n.slug,s[7]=g,s[8]=S):S=s[8];const C=ae(S),R=Ae(f,l,C);let I;s[9]!==R||s[10]!==r?(I=async D=>{r&&await R.update.mutateAsync({id:r,data:D})},s[9]=R,s[10]=r,s[11]=I):I=s[11];const k=I;let T;s[12]!==l?(T=l?.toLowerCase(),s[12]=l,s[13]=T):T=s[13];const b=T,y=b&&Jt[b];let w;s[14]!==l?(w=Wt(l),s[14]=l,s[15]=w):w=s[15];const P=w;let N;s[16]!==n.slug?(N=t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections",params:{org:n.slug},children:"Connections"})})}),s[16]=n.slug,s[17]=N):N=s[17];let E;s[18]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(Q,{}),s[18]=E):E=s[18];let U;s[19]!==l||s[20]!==m||s[21]!==n.slug||s[22]!==o.appSlug?(U=m&&t.jsxs(t.Fragment,{children:[t.jsx(J,{children:t.jsx(G,{asChild:!0,children:t.jsx(K,{to:"/$org/settings/connections/$appSlug",params:{org:n.slug,appSlug:o.appSlug},search:{tab:l},children:m.title})})}),t.jsx(Q,{})]}),s[19]=l,s[20]=m,s[21]=n.slug,s[22]=o.appSlug,s[23]=U):U=s[23];let z;s[24]!==P?(z=t.jsx(J,{children:t.jsx(_e,{children:P})}),s[24]=P,s[25]=z):z=s[25];let _;s[26]!==U||s[27]!==z||s[28]!==N?(_=t.jsx(Oe,{children:t.jsxs(Re,{children:[N,E,U,z]})}),s[26]=U,s[27]=z,s[28]=N,s[29]=_):_=s[29];const L=_;if(y){let D;return s[30]!==y||s[31]!==d||s[32]!==k||s[33]!==r?(D=t.jsx(y,{itemId:r,onBack:d,onUpdate:k}),s[30]=y,s[31]=d,s[32]=k,s[33]=r,s[34]=D):D=s[34],D}let j;s[35]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(kt,{size:36,className:"text-muted-foreground"}),s[35]=j):j=s[35];let A;s[36]!==d?(A=t.jsx(Vt,{icon:j,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:d,children:"Go back"}}),s[36]=d,s[37]=A):A=s[37];let V;return s[38]!==L||s[39]!==A?(V=t.jsx(ue,{breadcrumb:L,children:A}),s[38]=L,s[39]=A,s[40]=V):V=s[40],V}function Gt(){const s=O.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const i=le(e);if(decodeURIComponent(i.collectionName)==="tools"){let c;return s[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(qt,{}),s[1]=c):c=s[1],c}let r;return s[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Kt,{}),s[2]=r):r=s[2],r}function Jn(){const s=O.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Pe,{children:t.jsx($.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gt,{})})}),s[0]=e):e=s[0],e}export{Jn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as B,j as s,l as M,B as V}from"./index-
|
|
1
|
+
import{c as B,j as s,l as M,B as V}from"./index-CVreeNNf.js";import{c as z,b as _,D as $,a as E}from"./dropdown-menu-CDYo85Ch.js";import{i as L,n as O,b as R,c as A}from"./SwitchHorizontal01-CuYgULrj.js";import{i as S}from"./Check-BmisW-gO.js";import{i as F}from"./List-CRp9-m0D.js";import{a as I,b as K,c as P,T as W}from"./tooltip-D2fONB1l.js";import{V as q}from"./view-mode-toggle-D7PklEII.js";import{B as G}from"./badge-CTk0aBEM.js";function re(t){const e=B.c(31),{viewMode:r,onViewModeChange:m,sortKey:T,sortDirection:p,onSort:f,sortOptions:u,filters:h}=t;let g;e[0]!==u?(g=u===void 0?[]:u,e[0]=u,e[1]=g):g=e[1];const j=g;let b;e[2]!==h?(b=h===void 0?[]:h,e[2]=h,e[3]=b):b=e[3];const l=b;let v;e[4]!==l?(v=l.filter(J),e[4]=l,e[5]=v):v=e[5];const N=v.length;let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(R,{size:16}),e[6]=w):w=e[6];let i;e[7]!==N?(i=N>0&&s.jsx(G,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[7]=N,e[8]=i):i=e[8];let o;e[9]!==i?(o=s.jsx(I,{asChild:!0,children:s.jsx(_,{asChild:!0,children:s.jsxs(V,{variant:"outline",size:"icon",className:"relative",children:[w,i]})})}),e[9]=i,e[10]=o):o=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(K,{children:"Display & filters"}),e[11]=C):C=e[11];let n;e[12]!==o?(n=s.jsx(P,{children:s.jsxs(W,{children:[o,C]})}),e[12]=o,e[13]=n):n=e[13];let a;e[14]!==m||e[15]!==r?(a=m&&r&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:r,onValueChange:m,fullWidth:!0,options:[{value:"table",icon:s.jsx(F,{})},{value:"cards",icon:s.jsx(A,{})}]})}),e[14]=m,e[15]=r,e[16]=a):a=e[16];let c;e[17]!==f||e[18]!==p||e[19]!==T||e[20]!==j?(c=j.length>0&&f&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:"Sort by"}),j.map(y=>{const D=T===y.id;return s.jsx(z,{onClick:()=>f(y.id),className:M("h-8 px-2 py-0 cursor-pointer",D&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[D&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!D&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:y.label}),D&&p&&(p==="asc"?s.jsx(L,{size:16,className:"text-foreground shrink-0"}):s.jsx(O,{size:16,className:"text-foreground shrink-0"}))]})},y.id)})]}),e[17]=f,e[18]=p,e[19]=T,e[20]=j,e[21]=c):c=e[21];let d;e[22]!==l?(d=l.map(H),e[22]=l,e[23]=d):d=e[23];let x;e[24]!==a||e[25]!==c||e[26]!==d?(x=s.jsxs($,{align:"end",className:"w-[200px] p-0 gap-0",children:[a,c,d]}),e[24]=a,e[25]=c,e[26]=d,e[27]=x):x=e[27];let k;return e[28]!==n||e[29]!==x?(k=s.jsxs(E,{children:[n,x]}),e[28]=n,e[29]=x,e[30]=k):k=e[30],k}function H(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const r=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:M("h-8 px-2 py-0 cursor-pointer",r&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[r&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!r&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function J(t){return t.value!=="ALL"}export{re as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,l as b,j as a,i as w}from"./index-
|
|
1
|
+
import{c as v,l as b,j as a,i as w}from"./index-CVreeNNf.js";import{i as C}from"./SearchMd-DR4ENkEZ.js";function S(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,p=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const h=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==h?(s=b("flex items-center gap-2.5 h-12 px-4",h),e[2]=h,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==p||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:p,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=p,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{S as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as k,j as s,l as C}from"./index-
|
|
1
|
+
import{c as k,j as s,l as C}from"./index-CVreeNNf.js";import{e as S,d as R,a as T,T as H,b as L,c as z}from"./table-39SJnwJD.js";import{i as D,n as E}from"./SwitchHorizontal01-CuYgULrj.js";function I(y){const e=k.c(29),{columns:r,data:f,sortKey:x,sortDirection:u,onSort:i,onRowClick:n,rowClassName:c}=y;let p;e[0]!==u?(p=function(t,h){return s.jsx("div",{className:"w-4 flex items-center justify-center",children:h&&u&&(u==="asc"?s.jsx(D,{size:16,className:"text-muted-foreground transition-colors"}):s.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=u,e[1]=p):p=e[1];const b=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,h){let N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===h-1&&(N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),N},e[2]=d):d=e[2];const a=d;let l;if(e[3]!==r||e[4]!==i||e[5]!==b||e[6]!==x){let o;e[8]!==r.length||e[9]!==i||e[10]!==b||e[11]!==x?(o=(t,h)=>{const N=x===t.id;return s.jsx(S,{className:C(a(h,r.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),onClick:t.sortable&&i?()=>i(t.id):void 0,children:s.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&b(t.id,N)]})},t.id)},e[8]=r.length,e[9]=i,e[10]=b,e[11]=x,e[12]=o):o=e[12],l=r.map(o),e[3]=r,e[4]=i,e[5]=b,e[6]=x,e[7]=l}else l=e[7];let g;e[13]!==l?(g=s.jsx(R,{className:"border-b-0",children:s.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:l})}),e[13]=l,e[14]=g):g=e[14];let j;if(e[15]!==r||e[16]!==f||e[17]!==n||e[18]!==c){let o;e[20]!==r||e[21]!==n||e[22]!==c?(o=(t,h)=>{const N=c?.(t);return s.jsx(T,{"data-row-index":h,className:C("group/data-row transition-colors border-b-0 hover:bg-accent/50",n?"cursor-pointer":"",N),onClick:n?()=>n(t):void 0,children:r.map(m=>s.jsx(H,{className:C("px-5 py-4 h-16 align-middle text-sm text-foreground",m.cellClassName,m.wrap?"whitespace-normal wrap-break-word":""),children:s.jsx("div",{className:C(m.wrap?"w-full":"min-w-0 w-full",!m.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:m.render?m.render(t):m.accessor?m.accessor(t):null})},m.id))},h)},e[20]=r,e[21]=n,e[22]=c,e[23]=o):o=e[23],j=f.map(o),e[15]=r,e[16]=f,e[17]=n,e[18]=c,e[19]=j}else j=e[19];let w;e[24]!==j?(w=s.jsx(L,{children:j}),e[24]=j,e[25]=w):w=e[25];let v;return e[26]!==g||e[27]!==w?(v=s.jsxs(z,{className:"w-full border-collapse",children:[g,w]}),e[26]=g,e[27]=w,e[28]=v):v=e[28],v}function B(y){const e=k.c(12),{columns:r,data:f,isLoading:x,sortKey:u,sortDirection:i,onSort:n,onRowClick:c,emptyState:p}=y;if(x===void 0?!1:x){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-muted-foreground",children:"Loading..."})}),e[0]=a):a=e[0],a}if(f.length===0){let a;e[1]!==p?(a=p||s.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No items found"}),e[1]=p,e[2]=a):a=e[2];let l;return e[3]!==a?(l=s.jsx("div",{className:"flex items-center justify-center h-full",children:a}),e[3]=a,e[4]=l):l=e[4],l}let d;return e[5]!==r||e[6]!==f||e[7]!==c||e[8]!==n||e[9]!==i||e[10]!==u?(d=s.jsx("div",{className:"flex-1",children:s.jsx(I,{columns:r,data:f,sortKey:u,sortDirection:i,onSort:n,onRowClick:c})}),e[5]=r,e[6]=f,e[7]=c,e[8]=n,e[9]=i,e[10]=u,e[11]=d):d=e[11],d}export{B as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,l as u,j as m}from"./index-
|
|
1
|
+
import{c as f,l as u,j as m}from"./index-CVreeNNf.js";import{B as g}from"./badge-CTk0aBEM.js";function h(x){const e=f.c(12),{tabs:c,activeTab:n,onTabChange:s,className:a}=x;let t;e[0]!==a?(t=u("flex items-center gap-2 overflow-x-auto no-scrollbar",a),e[0]=a,e[1]=t):t=e[1];let r;if(e[2]!==n||e[3]!==s||e[4]!==c){let l;e[6]!==n||e[7]!==s?(l=o=>{const d=n===o.id;return m.jsxs("button",{type:"button",onClick:()=>s(o.id),className:u("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",d&&"bg-accent border-border text-foreground",!d&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[o.label,o.count!==void 0&&m.jsx(g,{variant:"secondary",className:u("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",d?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:o.count})]},o.id)},e[6]=n,e[7]=s,e[8]=l):l=e[8],r=c.map(l),e[2]=n,e[3]=s,e[4]=c,e[5]=r}else r=e[5];let i;return e[9]!==t||e[10]!==r?(i=m.jsx("div",{className:t,children:r}),e[9]=t,e[10]=r,e[11]=i):i=e[11],i}export{h as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,l as i,j as n}from"./index-
|
|
1
|
+
import{c as d,l as i,j as n}from"./index-CVreeNNf.js";import{_ as m}from"./index-9LHoYH8C.js";import{e as k,a as N,b as j,c as b,d as w}from"./dialog-C17LEi_J.js";import{i as y}from"./SearchMd-DR4ENkEZ.js";function C(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function S(a){const e=d.c(24);let t,s,o,l,r;e[0]!==a?({title:l,description:r,children:t,className:s,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5]);const _=l===void 0?"Command Palette":l,v=r===void 0?"Search for a command to run...":r;let c;e[6]!==_?(c=n.jsx(N,{children:_}),e[6]=_,e[7]=c):c=e[7];let p;e[8]!==v?(p=n.jsx(j,{children:v}),e[8]=v,e[9]=p):p=e[9];let u;e[10]!==c||e[11]!==p?(u=n.jsxs(b,{className:"sr-only",children:[c,p]}),e[10]=c,e[11]=p,e[12]=u):u=e[12];let f;e[13]!==s?(f=i("overflow-hidden p-0",s),e[13]=s,e[14]=f):f=e[14];let x;e[15]!==t?(x=n.jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[15]=t,e[16]=x):x=e[16];let g;e[17]!==f||e[18]!==x?(g=n.jsx(w,{className:f,closeButtonClassName:"hidden",children:x}),e[17]=f,e[18]=x,e[19]=g):g=e[19];let h;return e[20]!==o||e[21]!==u||e[22]!==g?(h=n.jsxs(k,{...o,children:[u,g]}),e[20]=o,e[21]=u,e[22]=g,e[23]=h):h=e[23],h}function z(a){const e=d.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(y,{className:"size-5 shrink-0 text-foreground"}),e[3]=o):o=e[3];let l;e[4]!==t?(l=i("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=l):l=e[5];let r;return e[6]!==s||e[7]!==l?(r=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(m.Input,{"data-slot":"command-input",className:l,...s})]}),e[6]=s,e[7]=l,e[8]=r):r=e[8],r}function G(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=d.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(m.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}export{L as C,H as a,z as b,G as c,C as d,R as e,S as f,B as g};
|