@decocms/mesh 2.139.2 → 2.139.4
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-BDyT9vNZ.js → AlertCircle-B-qrtAf7.js} +1 -1
- package/dist/client/assets/{AlignLeft-BixvP29Y.js → AlignLeft-D93Obywx.js} +1 -1
- package/dist/client/assets/{ArrowDown-BYesfwXe.js → ArrowDown-Brxajv-A.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BAkHebXa.js → ArrowLeft-ChnnVeV0.js} +1 -1
- package/dist/client/assets/{ArrowUp-BCyv-ojK.js → ArrowUp-D5ZC-G9T.js} +1 -1
- package/dist/client/assets/{Check-Camn3oQw.js → Check-xOBqZzmv.js} +1 -1
- package/dist/client/assets/{CheckCircle-B7XGhEcJ.js → CheckCircle-t4fWflCL.js} +1 -1
- package/dist/client/assets/{CheckDone01-CldSAlfc.js → CheckDone01-CtIvl6NR.js} +1 -1
- package/dist/client/assets/{CheckVerified02-K0TWAV06.js → CheckVerified02-CEWZcD4z.js} +1 -1
- package/dist/client/assets/{ChevronDown-DkqBWU_h.js → ChevronDown-cFwq8_1y.js} +1 -1
- package/dist/client/assets/{ChevronLeft-BPmkNFNc.js → ChevronLeft-BDb5Vgx_.js} +1 -1
- package/dist/client/assets/{ChevronRight-BI34N28O.js → ChevronRight-zkVqPrw5.js} +1 -1
- package/dist/client/assets/{Clock-BqFZuRNT.js → Clock-C8sBJSRB.js} +1 -1
- package/dist/client/assets/{Code01-DcYAohyI.js → Code01-Be1Un4zy.js} +1 -1
- package/dist/client/assets/{Container-B8pG1v5Y.js → Container-BzuFyXB-.js} +1 -1
- package/dist/client/assets/{Copy01-GXSpNbxP.js → Copy01-D46xqpGe.js} +1 -1
- package/dist/client/assets/{Dataflow03-Cz5aNZkd.js → Dataflow03-C_auGuZw.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-DseOTG6x.js → DotsHorizontal-BzL1ksOS.js} +1 -1
- package/dist/client/assets/{DotsVertical-DgG2OQVv.js → DotsVertical-BWpyls9E.js} +1 -1
- package/dist/client/assets/{Download01-DV6jzPqo.js → Download01-DXQ7eLHV.js} +1 -1
- package/dist/client/assets/{Edit01-nsEjgwmh.js → Edit01-C-LkGhJt.js} +1 -1
- package/dist/client/assets/{Edit05-BLS2FJfm.js → Edit05-B4gumSwA.js} +1 -1
- package/dist/client/assets/{Eye-DQF_Qzuy.js → Eye-S2bOaZIy.js} +1 -1
- package/dist/client/assets/{File02-QDXoffKV.js → File02-v1x_k3KU.js} +1 -1
- package/dist/client/assets/{File06-DNhGyMHz.js → File06-CjPbqhL6.js} +1 -1
- package/dist/client/assets/{FilterLines-lwBT4U5d.js → FilterLines-DkQNMule.js} +1 -1
- package/dist/client/assets/{Globe01-lQfF_p8O.js → Globe01-O7yat0_O.js} +1 -1
- package/dist/client/assets/{Globe02-sIfslzHX.js → Globe02-ChkOndGF.js} +1 -1
- package/dist/client/assets/{Grid01-CTYtPHN4.js → Grid01-H33eVxTX.js} +1 -1
- package/dist/client/assets/{Hash02-DU1c1Jak.js → Hash02-BQbZm01-.js} +1 -1
- package/dist/client/assets/{Home02-D8QOVzlb.js → Home02-PdwInqFp.js} +1 -1
- package/dist/client/assets/{Image01-BNs8seI1.js → Image01-CcXuD64C.js} +1 -1
- package/dist/client/assets/{Inbox01-DTh-ZtU7.js → Inbox01-CPxBPhel.js} +1 -1
- package/dist/client/assets/{InfoCircle-s0dGNMks.js → InfoCircle-DK-HgSib.js} +1 -1
- package/dist/client/assets/{Key01-CHf-4NZR.js → Key01-HU-4mHLo.js} +1 -1
- package/dist/client/assets/{LayersTwo01-zg7ssS5q.js → LayersTwo01-RwSQ1J1I.js} +1 -1
- package/dist/client/assets/{LayoutLeft-vITOgZDF.js → LayoutLeft-CbZOAm5Z.js} +1 -1
- package/dist/client/assets/{Link01-B46W_qyR.js → Link01-DP82_UiC.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CWUdHxEb.js → LinkExternal01-xPEp6WiT.js} +1 -1
- package/dist/client/assets/{List-DXD0Q-rz.js → List-DIViT3Rd.js} +1 -1
- package/dist/client/assets/{Loading01-HszUOya-.js → Loading01-e5vrz4Tg.js} +1 -1
- package/dist/client/assets/{Lock01-sWjWjRt6.js → Lock01-CFsYgwl6.js} +1 -1
- package/dist/client/assets/{Play-DYN0MmVY.js → Play-UpsQgFLL.js} +1 -1
- package/dist/client/assets/{Plus-BaoKmylk.js → Plus-CAkBZRVl.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-yUiODtTq.js → RefreshCcw01-CsIOFnxl.js} +1 -1
- package/dist/client/assets/{Save01-Co3EpgQC.js → Save01-C8SmHjV2.js} +1 -1
- package/dist/client/assets/{SearchMd-3WCi1VDc.js → SearchMd-3uDmzuN-.js} +1 -1
- package/dist/client/assets/{Settings01-84eR-C3B.js → Settings01-de0ujEEu.js} +1 -1
- package/dist/client/assets/{Shield01-WvymnQYW.js → Shield01-Cd56MItL.js} +1 -1
- package/dist/client/assets/{Terminal-CM1LxJaq.js → Terminal-D4rOkPT8.js} +1 -1
- package/dist/client/assets/{Trash01-CAKaaYMp.js → Trash01-GIxw_9KX.js} +1 -1
- package/dist/client/assets/{Upload01-BDarTYGT.js → Upload01-DvU8XgOn.js} +1 -1
- package/dist/client/assets/{Users03-D0y7vtGV.js → Users03-Ci_Q0Bm5.js} +1 -1
- package/dist/client/assets/{X-BS-0d43p.js → X-D43RBdCi.js} +1 -1
- package/dist/client/assets/{XCircle-BJZFrCgV.js → XCircle-BT7T8C4l.js} +1 -1
- package/dist/client/assets/{XClose-6pBqg-B-.js → XClose-CPAcIRmr.js} +1 -1
- package/dist/client/assets/{Zap-MB79YnxU.js → Zap-AMjggLw-.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-D0T58SYV.js → agent-connections-preview-ChIn79lc.js} +1 -1
- package/dist/client/assets/{agent-detail-BRsW7IYa.js → agent-detail-Fjm0OMqB.js} +1 -1
- package/dist/client/assets/{agents-juAVT19y.js → agents-CsJ8bLN2.js} +1 -1
- package/dist/client/assets/{alert-dialog-CtNI8LvE.js → alert-dialog-BF806470.js} +1 -1
- package/dist/client/assets/{auth-catchall-BNohJky1.js → auth-catchall-BDFjm7S-.js} +1 -1
- package/dist/client/assets/{avatar-7hY_H5zt.js → avatar-JlaJAGyz.js} +1 -1
- package/dist/client/assets/{badge-DfhuIA_7.js → badge-DuzneqaM.js} +1 -1
- package/dist/client/assets/{binder-C6fAESck.js → binder-CSUd_3kq.js} +1 -1
- package/dist/client/assets/{breadcrumb-DZJzQEPd.js → breadcrumb-oXffKFw_.js} +1 -1
- package/dist/client/assets/{card-DXg2GX79.js → card-B9F3gzU1.js} +1 -1
- package/dist/client/assets/{chart-BWnEsG4R.js → chart-CI8PXMri.js} +1 -1
- package/dist/client/assets/{checkbox-CA1NpLng.js → checkbox-DzpFguCb.js} +1 -1
- package/dist/client/assets/{circle-alert-DpFL31gA.js → circle-alert-BEV9hKq0.js} +1 -1
- package/dist/client/assets/{collapsible-CZMy3y5l.js → collapsible-65I6Ioz9.js} +5 -5
- package/dist/client/assets/{collection-detail-C59CwIQH.js → collection-detail-DnRXu6MS.js} +1 -1
- package/dist/client/assets/{collection-display-button-CVVCR82C.js → collection-display-button-ByS_K4lH.js} +1 -1
- package/dist/client/assets/{collection-search-BVMX34xh.js → collection-search-mO1HMauC.js} +1 -1
- package/dist/client/assets/{collection-tab-Dq2y4UTN.js → collection-tab-CkV__WhE.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-C0TGGJ6J.js → collection-table-wrapper-CKemfX3q.js} +1 -1
- package/dist/client/assets/{collection-tabs-fHRefLVF.js → collection-tabs-Bx4HaaQG.js} +1 -1
- package/dist/client/assets/{command-DQZMRksB.js → command-IGPGgPev.js} +1 -1
- package/dist/client/assets/{connect-BPIjHna-.js → connect-BRw7VxSz.js} +1 -1
- package/dist/client/assets/{connection-card-CVWbDwe1.js → connection-card-CqqNv-1c.js} +1 -1
- package/dist/client/assets/{connection-detail-BE8aQ9Vr.js → connection-detail-Do2QWhRf.js} +1 -1
- package/dist/client/assets/{connection-status-CIfK1aaf.js → connection-status-DspYTx4l.js} +1 -1
- package/dist/client/assets/{connections-DE-LDmih.js → connections-oTwxAoKQ.js} +1 -1
- package/dist/client/assets/{constants-9aDFHfpv.js → constants-Bi0KgUSI.js} +1 -1
- package/dist/client/assets/constants-C5K20DFA.js +1 -0
- package/dist/client/assets/{create-organization-dialog-rPVbE78O.js → create-organization-dialog-B5UUWfs1.js} +1 -1
- package/dist/client/assets/{create-project-dialog-eGd8v6in.js → create-project-dialog-B2mUe54b.js} +1 -1
- package/dist/client/assets/{danger-CN2jIiYh.js → danger-DCm_AnTP.js} +1 -1
- package/dist/client/assets/{danger-zone-DFB5uHUA.js → danger-zone-DS8Xvo50.js} +1 -1
- package/dist/client/assets/{decopilot-events-BNDSGGPU.js → decopilot-events-tuPofCi7.js} +1 -1
- package/dist/client/assets/{dependencies-B2LWAesw.js → dependencies-Bn8l9gYN.js} +1 -1
- package/dist/client/assets/{dialog-C82flYm2.js → dialog-qBZn-zYi.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CxuRGQYq.js → dropdown-menu-DzUfzpVE.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CQiNNzkD.js → dynamic-plugin-layout-C7QgAOIC.js} +1 -1
- package/dist/client/assets/{editable-task-title-0i5466nX.js → editable-task-title-D48vrJtg.js} +1 -1
- package/dist/client/assets/{empty-state-BRx85n5e.js → empty-state-lIvnej4y.js} +1 -1
- package/dist/client/assets/{env-vars-editor-7rdGUbIW.js → env-vars-editor-CeqquBJY.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C3TnWHFq.js → extract-connection-data-CuU1tc3b.js} +1 -1
- package/dist/client/assets/{file-browser-B6_JSvky.js → file-browser-Ni3oYaWz.js} +2 -2
- package/dist/client/assets/{form-yfGhYWGK.js → form-CvuQGiSW.js} +1 -1
- package/dist/client/assets/{general-BO87mKaj.js → general-9N19ol48.js} +1 -1
- package/dist/client/assets/{grid-view-CafNEeZS.js → grid-view-nGNsPql9.js} +1 -1
- package/dist/client/assets/{home-DODydEdy.js → home-QZEMZFSO.js} +1 -1
- package/dist/client/assets/{icon-picker-BxryrKdj.js → icon-picker-CvTqhz-n.js} +1 -1
- package/dist/client/assets/{index-BE5cW0kh.js → index-580YwBrh.js} +1 -1
- package/dist/client/assets/{index-cyFdlvvQ.js → index-9XMeAvuz.js} +1 -1
- package/dist/client/assets/{index-Dk8Q7M5D.js → index-B2bsc0yn.js} +1 -1
- package/dist/client/assets/index-B3tSRm_S.js +1 -0
- package/dist/client/assets/{index-Cay1thV-.js → index-BrwvwF2e.js} +1 -1
- package/dist/client/assets/{index-CPVHF3xw.js → index-C3HPQ2Xr.js} +1 -1
- package/dist/client/assets/{index-xpVnmlVH.js → index-DNc2lZPL.js} +1 -1
- package/dist/client/assets/{index-BxIsqm8s.js → index-DlVoIZWW.js} +46 -46
- package/dist/client/assets/{index-PEK2-Gur.js → index-zTmRWZBl.js} +3 -3
- package/dist/client/assets/{infiniteQueryObserver-C6bi1NMJ.js → infiniteQueryObserver-CzeIHV7S.js} +1 -1
- package/dist/client/assets/{input-sgdy4h-T.js → input-yDn0CDzQ.js} +1 -1
- package/dist/client/assets/{integration-icon-CF_VTof8.js → integration-icon-BKuXjqdm.js} +1 -1
- package/dist/client/assets/{label-BrZsvi2a.js → label-D93HnDXr.js} +1 -1
- package/dist/client/assets/{layout-CV1aMVHy.js → layout-7Qb5YRAm.js} +1 -1
- package/dist/client/assets/{layout-BIum7cxT.js → layout-CrCZjoK5.js} +1 -1
- package/dist/client/assets/{localstorage-keys-F1lq-lvV.js → localstorage-keys-DyhMCgsK.js} +1 -1
- package/dist/client/assets/{login-DW4fba0v.js → login-BqsIHX7V.js} +1 -1
- package/dist/client/assets/{markdown-CbEbvbZf.js → markdown-Biu_K3T4.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-C_3fiOtj.js → mcp-app-renderer-C2Ylvbme.js} +1 -1
- package/dist/client/assets/{mcp-oauth-6xg1H94l.js → mcp-oauth-Bjgs9JoZ.js} +1 -1
- package/dist/client/assets/{mcp-server-card-CWDv948O.js → mcp-server-card-Cup_00LD.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-tO42oFY4.js → mcp-server-detail--Jr_gAUp.js} +2 -2
- package/dist/client/assets/{members-DKDzvaot.js → members-uqs0bICl.js} +1 -1
- package/dist/client/assets/{monaco-editor-B-R8mcTi.js → monaco-editor-DxLnMtPf.js} +4 -4
- package/dist/client/assets/{monitoring-X0-0osFY.js → monitoring-BVpuqZj3.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-rOc8ctLL.js → monitoring-dashboard-edit-DboSkF1Z.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-BOcU-Ptb.js → monitoring-dashboard-view-Sh6DZnJz.js} +1 -1
- package/dist/client/assets/{oauth-callback-Dt0Z_xAu.js → oauth-callback-C_W-tYN-.js} +1 -1
- package/dist/client/assets/{page-C2NqyE1l.js → page-Bes2KnC1.js} +1 -1
- package/dist/client/assets/{page-Bg_wbn7m.js → page-_IMVPTag.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-yRJgz3Tr.js → plugin-empty-state-9L7esDde.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BA7ocyXk.js → plugin-empty-state-DiQvKRhi.js} +1 -1
- package/dist/client/assets/{plugin-header-BDXHoMCR.js → plugin-header--u34B63W.js} +1 -1
- package/dist/client/assets/{plugin-header-BjlvBkY0.js → plugin-header-BQ0StX2h.js} +1 -1
- package/dist/client/assets/plugins-CVY3rx6b.js +1 -0
- package/dist/client/assets/{popover-W_pvoCtS.js → popover-BD-c_pAA.js} +1 -1
- package/dist/client/assets/{project-app-view-0TT6VGtD.js → project-app-view-DIraT3UL.js} +1 -1
- package/dist/client/assets/{project-layout-EE8sGSdV.js → project-layout-D1HtBF_a.js} +1 -1
- package/dist/client/assets/{project-plugins-CUoGWXtV.js → project-plugins-Bf4ZMkbc.js} +1 -1
- package/dist/client/assets/{projects-list-bUHr7Hxj.js → projects-list-Bfhn5AOu.js} +1 -1
- package/dist/client/assets/{readme-viewer-udR9CDuh.js → readme-viewer-Bz6eCbMV.js} +1 -1
- package/dist/client/assets/{registry-layout-DDBt9uFS.js → registry-layout-DJa_ec1i.js} +1 -1
- package/dist/client/assets/{registry-utils-BUxN-Xyw.js → registry-utils-BAmZqs68.js} +1 -1
- package/dist/client/assets/{reports-layout-CCWEuXOO.js → reports-layout-D5Z2DXwV.js} +1 -1
- package/dist/client/assets/{reset-password-Cm4-0xVl.js → reset-password-Dl47mf_w.js} +1 -1
- package/dist/client/assets/{resizable-B67Be6M0.js → resizable-D-Qy_gIf.js} +1 -1
- package/dist/client/assets/{save-actions-FUGEGF6q.js → save-actions-C1NjZgvb.js} +1 -1
- package/dist/client/assets/{scroll-area-CK7vwAfQ.js → scroll-area-fWogdApD.js} +1 -1
- package/dist/client/assets/{select-C05ByfCe.js → select-45R_TReG.js} +1 -1
- package/dist/client/assets/{shell-layout-DTEZojRn.js → shell-layout-CA8fD8RA.js} +2 -2
- package/dist/client/assets/{sidebar-settings-Dcd14gbU.js → sidebar-settings--2xwv6Nu.js} +1 -1
- package/dist/client/assets/{skeleton-UoFZ21oo.js → skeleton-B23sd6oG.js} +1 -1
- package/dist/client/assets/{spinner-BGQowtes.js → spinner-DrSoNW9Q.js} +1 -1
- package/dist/client/assets/{store-invite-Cq-AwKEe.js → store-invite-DJFtuLEP.js} +1 -1
- package/dist/client/assets/{switch-Q4KewAfm.js → switch-DbnN_OzY.js} +1 -1
- package/dist/client/assets/{table-X8r3lDFL.js → table-JhNW7SQy.js} +1 -1
- package/dist/client/assets/{tabs-B8_PkbMO.js → tabs-fxZVpBgm.js} +1 -1
- package/dist/client/assets/tasks-9SndjM2b.js +1 -0
- package/dist/client/assets/{tasks-panel-CC3yneqS.js → tasks-panel-CL4KTePe.js} +1 -1
- package/dist/client/assets/{textarea-pi2cWSId.js → textarea-DdFrppMC.js} +1 -1
- package/dist/client/assets/{time-range-picker-BrfuDGgP.js → time-range-picker-cwer29Fw.js} +1 -1
- package/dist/client/assets/{toggle-group-BhefXfHG.js → toggle-group-DN2MnVNp.js} +1 -1
- package/dist/client/assets/{tools-list-MmMBTqrs.js → tools-list-DIjrxN4B.js} +1 -1
- package/dist/client/assets/{tooltip-CWYwrzX7.js → tooltip-c2IY6Q1h.js} +1 -1
- package/dist/client/assets/{topbar-portal-RlfRVDuU.js → topbar-portal-B1jaxoch.js} +1 -1
- package/dist/client/assets/{types-DfAuQBsH.js → types-D02NXJjh.js} +1 -1
- package/dist/client/assets/{use-binding-bR1unh0d.js → use-binding-CczCr_I6.js} +1 -1
- package/dist/client/assets/{use-collections-CdWUwl8U.js → use-collections-BM5qbXh2.js} +1 -1
- package/dist/client/assets/{use-connection-Cknhz6to.js → use-connection-D_z7DIgr.js} +1 -1
- package/dist/client/assets/{use-copy-2ZhzXjqK.js → use-copy-CedSm4V4.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DtdhklAc.js → use-create-virtual-mcp-DN0LN6Ks.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-BzL8TqTO.js → use-install-from-registry-DJsrJBCB.js} +1 -1
- package/dist/client/assets/{use-list-state-BFxcsMHC.js → use-list-state-DiVFU-Ch.js} +1 -1
- package/dist/client/assets/{use-llm-D6vMdIHx.js → use-llm-Cgu6F_JM.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-V7_1ln1p.js → use-mcp-resources-F-AJdNv-.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BMktygYP.js → use-mcp-tools-CXYzi3AR.js} +1 -1
- package/dist/client/assets/{use-members-CZzrsjqR.js → use-members-DgdmWVSo.js} +1 -1
- package/dist/client/assets/{use-mobile-DqFS2tGv.js → use-mobile-Y1Ty5Ao9.js} +1 -1
- package/dist/client/assets/{use-project-mIp9moJF.js → use-project-Bp8E6yw9.js} +1 -1
- package/dist/client/assets/{use-settings-modal-CK97wy3L.js → use-settings-modal-BMI_o1Ch.js} +1 -1
- package/dist/client/assets/{use-view-mode-CkSeKCK_.js → use-view-mode-D1a8tpCU.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DncJVsC2.js → use-virtual-mcp-BwZwR42s.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-MM2sZURp.js +1 -0
- package/dist/client/assets/{useMutation-Bwc-v8Ow.js → useMutation-DxToDvqg.js} +1 -1
- package/dist/client/assets/useQuery-C_yP5u2a.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-rRWDLVCQ.js +1 -0
- package/dist/client/assets/{user-CLAm4Myt.js → user-Cjj1cELF.js} +1 -1
- package/dist/client/assets/{workflow-BuPqeBHK.js → workflow-DF5-JJx7.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +3 -3
- package/dist/server/migrate.js +1 -1
- package/dist/server/server.js +3 -3
- package/package.json +1 -1
- package/dist/client/assets/constants-C6iMC3JV.js +0 -1
- package/dist/client/assets/index-B9MYwIUx.js +0 -1
- package/dist/client/assets/plugins-C2IeqTZD.js +0 -1
- package/dist/client/assets/tasks-BvxRdrj9.js +0 -1
- package/dist/client/assets/useInfiniteQuery-l2zBIMez.js +0 -1
- package/dist/client/assets/useQuery-C84LCuAf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B9Fj3djj.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Q,r as U,u as re,K as ie,b_ as we,j as t,v as oe,B as Y,b as de,a1 as me,a2 as ue,O as fe,d as Ie,aE as Te,b$ as ne,E as Re,aG as Pe}from"./index-PEK2-Gur.js";import{P as X}from"./index-CPVHF3xw.js";import{B as $e,a as ke,b as ze,c as Le}from"./breadcrumb-DZJzQEPd.js";import{i as xe}from"./FilterLines-lwBT4U5d.js";import{n as ge}from"./Inbox01-DTh-ZtU7.js";import{i as se}from"./Loading01-HszUOya-.js";import{i as pe}from"./SearchMd-3WCi1VDc.js";import{u as he}from"./useQuery-C84LCuAf.js";import{u as Fe}from"./useInfiniteQuery-l2zBIMez.js";import{a as Ee,f as Oe,b as _e}from"./registry-utils-BUxN-Xyw.js";import{u as je,W as Ke,a as Ae,f as Me,b as Be}from"./constants-9aDFHfpv.js";import{u as De,a as ye,b as Ge}from"./use-connection-Cknhz6to.js";import{s as We}from"./slugify-CEUa2lfQ.js";import{C as Ve,E as qe}from"./collection-search-BVMX34xh.js";import{M as ae}from"./mcp-server-card-CWDv948O.js";import{I as Ue}from"./input-sgdy4h-T.js";import{a as ve,b as be,P as Ne}from"./popover-W_pvoCtS.js";import{i as Ce}from"./Check-Camn3oQw.js";import{t as Se}from"./ChevronDown-DkqBWU_h.js";import{s as te}from"./XClose-6pBqg-B-.js";import{s as He}from"./Plus-BaoKmylk.js";import{u as Je}from"./use-binding-bR1unh0d.js";import{L as Qe,u as Ye}from"./localstorage-keys-F1lq-lvV.js";import"./tooltip-CWYwrzX7.js";import"./index-xpVnmlVH.js";import"./ChevronRight-BI34N28O.js";import"./infiniteQueryObserver-C6bi1NMJ.js";import"./use-collections-CdWUwl8U.js";import"./useMutation-Bwc-v8Ow.js";import"./CheckVerified02-K0TWAV06.js";import"./Globe02-sIfslzHX.js";import"./Lock01-sWjWjRt6.js";import"./Terminal-CM1LxJaq.js";import"./card-DXg2GX79.js";import"./integration-icon-CF_VTof8.js";import"./Container-B8pG1v5Y.js";import"./github-icon-Dp3wHhYE.js";import"./binder-C6fAESck.js";function Ze(s,e){const r=Q.c(4),[l,d]=U.useState(s),n=U.useRef(null),i=U.useRef(!0);let c,a;return r[0]!==e||r[1]!==s?(c=()=>{if(i.current){i.current=!1;return}return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{d(s)},e),()=>{n.current&&clearTimeout(n.current)}},a=[s,e],r[0]=e,r[1]=s,r[2]=c,r[3]=a):(c=r[2],a=r[3]),U.useEffect(c,a),l}function Xe(s){const e=Q.c(14),r=U.useRef(null),l=`scroll-position:${s}`,d=U.useRef(null);let n;e[0]!==l?(n=()=>{r.current&&sessionStorage.setItem(l,String(r.current.scrollTop))},e[0]=l,e[1]=n):n=e[1];const i=n;let c;e[2]!==l?(c=()=>{if(d.current===l)return;const j=sessionStorage.getItem(l);if(j&&r.current){const S=Number.parseInt(j,10);r.current.scrollTop=S}d.current=l},e[2]=l,e[3]=c):c=e[3];const a=c;let g;e[4]!==a||e[5]!==l?(g=()=>{d.current!==l&&a()},e[4]=a,e[5]=l,e[6]=g):g=e[6];const I=g;let o;e[7]!==a||e[8]!==l?(o=j=>{r.current=j,j&&d.current!==l&&requestAnimationFrame(()=>{a()})},e[7]=a,e[8]=l,e[9]=o):o=e[9];const p=o;let m;return e[10]!==I||e[11]!==i||e[12]!==p?(m={scrollRef:p,saveScrollPosition:i,handleScroll:I},e[10]=I,e[11]=i,e[12]=p,e[13]=m):m=e[13],m}const et=24;function tt(s){const e=Q.c(54),{registryId:r,listToolName:l,filtersToolName:d,search:n}=s,{org:i}=re();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[a,g]=U.useState(c);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=[],e[1]=I):I=e[1];const[o,p]=U.useState(I),m=r||null;let j;e[2]!==i.id||e[3]!==m?(j={connectionId:m,orgId:i.id},e[2]=i.id,e[3]=m,e[4]=j):j=e[4];const S=je(j),R=!!d;let b;e[5]!==d||e[6]!==r?(b=ie.toolCall(r,d||"no-filters","{}"),e[5]=d,e[6]=r,e[7]=b):b=e[7];let N;e[8]!==S||e[9]!==d?(N=async()=>{if(!d)return{tags:[],categories:[]};const f=await S.callTool({name:d,arguments:{}});return f.structuredContent??f},e[8]=S,e[9]=d,e[10]=N):N=e[10];let P;e[11]!==b||e[12]!==N?(P={queryKey:b,queryFn:N,staleTime:36e5,retry:2},e[11]=b,e[12]=N,e[13]=P):P=e[13];const{data:$}=he(P);let h,C,k;if(e[14]!==l||e[15]!==r||e[16]!==n||e[17]!==o||e[18]!==a){const f=n?.trim()?{operator:"or",conditions:[{field:["name"],operator:"contains",value:n},{field:["title"],operator:"contains",value:n},{field:["description"],operator:"contains",value:n}]}:void 0;h={limit:et,...a.length>0&&{tags:a},...o.length>0&&{categories:o},...f&&{where:f}},k=Fe,C=ie.toolCall(r,l,JSON.stringify(h)),e[14]=l,e[15]=r,e[16]=n,e[17]=o,e[18]=a,e[19]=h,e[20]=C,e[21]=k}else h=e[19],C=e[20],k=e[21];let v;e[22]!==S||e[23]!==h||e[24]!==l?(v=async f=>{const{pageParam:Z}=f,le=Z?{...h,cursor:Z}:h,ee=await S.callTool({name:l,arguments:le});return ee.structuredContent??ee},e[22]=S,e[23]=h,e[24]=l,e[25]=v):v=e[25];let z;e[26]!==v||e[27]!==C?(z={queryKey:C,queryFn:v,initialPageParam:void 0,getNextPageParam:st,staleTime:36e5,placeholderData:we,retry:2},e[26]=v,e[27]=C,e[28]=z):z=e[28];const{data:w,fetchNextPage:x,hasNextPage:y,isFetchingNextPage:u,isFetching:T,isLoading:L,error:F}=k(z);let _;e:{if(!w?.pages||w.pages.length===0){_=null;break e}const f=w.pages[0];if(typeof f=="object"&&f!==null&&"totalCount"in f&&typeof f.totalCount=="number"){_=f.totalCount;break e}_=null}const K=_,E=w?.pages;let G;e[29]!==E?(G=Ee(E),e[29]=E,e[30]=G):G=e[30];const H=G;let W;e[31]!==n||e[32]!==o.length||e[33]!==a.length?(W=a.length>0||o.length>0||!!n?.trim(),e[31]=n,e[32]=o.length,e[33]=a.length,e[34]=W):W=e[34];const D=W,B=T&&!u&&!L&&D;let A;e[35]!==x||e[36]!==y||e[37]!==u?(A=()=>{y&&!u&&x()},e[35]=x,e[36]=y,e[37]=u,e[38]=A):A=e[38];const V=A,O=y??!1,M=R?$?.tags:void 0,q=R?$?.categories:void 0;let J;return e[39]!==D||e[40]!==T||e[41]!==u||e[42]!==B||e[43]!==L||e[44]!==H||e[45]!==F||e[46]!==V||e[47]!==o||e[48]!==a||e[49]!==O||e[50]!==M||e[51]!==q||e[52]!==K?(J={items:H,totalCount:K,hasMore:O,isLoadingMore:u,isFiltering:B,isInitialLoading:L,isFetching:T,error:F,loadMore:V,availableTags:M,availableCategories:q,selectedTags:a,selectedCategories:o,setSelectedTags:g,setSelectedCategories:p,hasActiveFilters:D},e[39]=D,e[40]=T,e[41]=u,e[42]=B,e[43]=L,e[44]=H,e[45]=F,e[46]=V,e[47]=o,e[48]=a,e[49]=O,e[50]=M,e[51]=q,e[52]=K,e[53]=J):J=e[53],J}function st(s){if(typeof s=="object"&&s!==null){const e=s.nextCursor||s.cursor;if(e)return e}}function rt(s,e){return[...s].sort((r,l)=>l.count-r.count).slice(0,e)}function ce(s){const e=Q.c(52),{label:r,items:l,selectedItems:d,onToggle:n,onClear:i}=s,[c,a]=U.useState(""),[g,I]=U.useState(!1);let o,p,m,j,S,R,b,N,P,$,h;if(e[0]!==l||e[1]!==r||e[2]!==n||e[3]!==g||e[4]!==c||e[5]!==d){const x=[...c?l.filter(E=>E.value.toLowerCase().includes(c.toLowerCase())):l].sort(lt);m=d.length,p=ve,P=g,$=I;let y;e[17]!==r?(y=t.jsx("span",{children:r}),e[17]=r,e[18]=y):y=e[18];let u;e[19]!==m?(u=m>0&&t.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:m}),e[19]=m,e[20]=u):u=e[20];let T;e[21]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(Se,{size:14,className:"opacity-50"}),e[21]=T):T=e[21],e[22]!==u||e[23]!==y?(h=t.jsx(be,{asChild:!0,children:t.jsxs(Y,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[y,u,T]})}),e[22]=u,e[23]=y,e[24]=h):h=e[24],o=Ne,R="w-64 p-0",b="start";let L;e[25]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(pe,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=L):L=e[25];let F;e[26]!==r?(F=r.toLowerCase(),e[26]=r,e[27]=F):F=e[27];const _=`Search ${F}...`;let K;e[28]===Symbol.for("react.memo_cache_sentinel")?(K=E=>a(E.target.value),e[28]=K):K=e[28],e[29]!==c||e[30]!==_?(N=t.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:t.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[L,t.jsx(Ue,{type:"text",placeholder:_,value:c,onChange:K,className:"flex-1 border-0 shadow-none focus-visible:ring-0 px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[29]=c,e[30]=_,e[31]=N):N=e[31],j="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",S=x.length===0?t.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):x.map(E=>{const G=d.includes(E.value);return t.jsxs("button",{onClick:()=>n(E.value),className:oe("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",G?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[t.jsxs("span",{className:"truncate flex items-center gap-2",children:[G&&t.jsx(Ce,{size:16,className:"text-muted-foreground shrink-0"}),E.value]}),t.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:E.count})]},E.value)}),e[0]=l,e[1]=r,e[2]=n,e[3]=g,e[4]=c,e[5]=d,e[6]=o,e[7]=p,e[8]=m,e[9]=j,e[10]=S,e[11]=R,e[12]=b,e[13]=N,e[14]=P,e[15]=$,e[16]=h}else o=e[6],p=e[7],m=e[8],j=e[9],S=e[10],R=e[11],b=e[12],N=e[13],P=e[14],$=e[15],h=e[16];let C;e[32]!==j||e[33]!==S?(C=t.jsx("div",{className:j,children:S}),e[32]=j,e[33]=S,e[34]=C):C=e[34];let k;e[35]!==r||e[36]!==i||e[37]!==m?(k=m>0&&t.jsx("div",{className:"p-2 border-t border-border",children:t.jsxs(Y,{variant:"ghost",size:"sm",onClick:i,className:"w-full text-xs text-muted-foreground hover:text-foreground",children:["Clear ",r.toLowerCase()]})}),e[35]=r,e[36]=i,e[37]=m,e[38]=k):k=e[38];let v;e[39]!==o||e[40]!==k||e[41]!==R||e[42]!==b||e[43]!==N||e[44]!==C?(v=t.jsxs(o,{className:R,align:b,children:[N,C,k]}),e[39]=o,e[40]=k,e[41]=R,e[42]=b,e[43]=N,e[44]=C,e[45]=v):v=e[45];let z;return e[46]!==p||e[47]!==v||e[48]!==P||e[49]!==$||e[50]!==h?(z=t.jsxs(p,{open:P,onOpenChange:$,children:[h,v]}),e[46]=p,e[47]=v,e[48]=P,e[49]=$,e[50]=h,e[51]=z):z=e[51],z}function lt(s,e){return e.count-s.count}function nt(s){const e=Q.c(67),{availableTags:r,availableCategories:l,selectedTags:d,selectedCategories:n,onTagChange:i,onCategoryChange:c}=s,a=r&&r.length>0||l&&l.length>0,g=d.length>0||n.length>0;if(!a)return null;let I;e[0]!==i||e[1]!==d?(I=y=>{d.includes(y)?i(d.filter(u=>u!==y)):i([...d,y])},e[0]=i,e[1]=d,e[2]=I):I=e[2];const o=I;let p;e[3]!==c||e[4]!==n?(p=y=>{n.includes(y)?c(n.filter(u=>u!==y)):c([...n,y])},e[3]=c,e[4]=n,e[5]=p):p=e[5];const m=p;let j;e[6]!==c||e[7]!==i?(j=()=>{i([]),c([])},e[6]=c,e[7]=i,e[8]=j):j=e[8];const S=j;let R,b,N,P,$,h,C;if(e[9]!==l||e[10]!==r||e[11]!==c||e[12]!==i||e[13]!==n||e[14]!==d||e[15]!==m||e[16]!==o){const y=l?rt(l,6):[];R=n,b=d,C=new Set(y.map(it)),$="flex items-center border-b border-border";let u;e[24]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:t.jsx(xe,{size:16})}),e[24]=u):u=e[24];let T;e[25]!==l||e[26]!==c||e[27]!==n||e[28]!==m?(T=l&&l.length>0&&t.jsx(ce,{label:"Categories",items:l,selectedItems:n,onToggle:m,onClear:()=>c([])}),e[25]=l,e[26]=c,e[27]=n,e[28]=m,e[29]=T):T=e[29];let L;e[30]!==r||e[31]!==i||e[32]!==d||e[33]!==o?(L=r&&r.length>0&&t.jsx(ce,{label:"Tags",items:r,selectedItems:d,onToggle:o,onClear:()=>i([])}),e[30]=r,e[31]=i,e[32]=d,e[33]=o,e[34]=L):L=e[34],e[35]!==L||e[36]!==T?(h=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[u,T,L]}),e[35]=L,e[36]=T,e[37]=h):h=e[37],N="flex items-center gap-3 flex-wrap px-5 py-3";let F;e[38]!==n||e[39]!==m?(F=_=>{const K=n.includes(_.value);return t.jsxs("div",{onClick:()=>m(_.value),className:oe("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",K?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[t.jsx("span",{children:_.value}),K&&t.jsx("span",{onClick:E=>{E.stopPropagation(),m(_.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},_.value)},e[38]=n,e[39]=m,e[40]=F):F=e[40],P=y.map(F),e[9]=l,e[10]=r,e[11]=c,e[12]=i,e[13]=n,e[14]=d,e[15]=m,e[16]=o,e[17]=R,e[18]=b,e[19]=N,e[20]=P,e[21]=$,e[22]=h,e[23]=C}else R=e[17],b=e[18],N=e[19],P=e[20],$=e[21],h=e[22],C=e[23];let k;if(e[41]!==R||e[42]!==m||e[43]!==C){let y;e[45]!==C?(y=T=>!C.has(T),e[45]=C,e[46]=y):y=e[46];let u;e[47]!==m?(u=T=>t.jsxs("div",{onClick:()=>m(T),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[t.jsx("span",{children:T}),t.jsx("span",{onClick:L=>{L.stopPropagation(),m(T)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},`cat-${T}`),e[47]=m,e[48]=u):u=e[48],k=R.filter(y).map(u),e[41]=R,e[42]=m,e[43]=C,e[44]=k}else k=e[44];let v;if(e[49]!==b||e[50]!==o){let y;e[52]!==o?(y=u=>t.jsxs("div",{onClick:()=>o(u),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[t.jsx("span",{children:u}),t.jsx("span",{onClick:T=>{T.stopPropagation(),o(u)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},`tag-${u}`),e[52]=o,e[53]=y):y=e[53],v=b.map(y),e[49]=b,e[50]=o,e[51]=v}else v=e[51];let z;e[54]!==S||e[55]!==g?(z=g&&t.jsxs(Y,{variant:"ghost",size:"sm",onClick:S,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[t.jsx(te,{size:14}),"Clear all"]}),e[54]=S,e[55]=g,e[56]=z):z=e[56];let w;e[57]!==z||e[58]!==N||e[59]!==P||e[60]!==k||e[61]!==v?(w=t.jsxs("div",{className:N,children:[P,k,v,z]}),e[57]=z,e[58]=N,e[59]=P,e[60]=k,e[61]=v,e[62]=w):w=e[62];let x;return e[63]!==w||e[64]!==$||e[65]!==h?(x=t.jsxs("div",{className:$,children:[h,w]}),e[63]=w,e[64]=$,e[65]=h,e[66]=x):x=e[66],x}function it(s){return s.value}function ot(s,e){if(!e)return s;const r=e.toLowerCase();return s.filter(l=>(l.name||l.title||"").toLowerCase().includes(r)||(l.description||l.server?.description||"").toLowerCase().includes(r))}function at(s){return s.verified===!0||s._meta?.["mcp.mesh"]?.verified===!0}function ct(s){const e=Q.c(55),{registryId:r,listToolName:l,filtersToolName:d,storePrivateOnly:n}=s,[i,c]=U.useState(""),a=Ze(i,300),g=de(),{org:I}=re(),{scrollRef:o,saveScrollPosition:p,handleScroll:m}=Xe(`store-discovery:${r}`);let j;e[0]!==a||e[1]!==d||e[2]!==l||e[3]!==r?(j={registryId:r,listToolName:l,filtersToolName:d,search:a},e[0]=a,e[1]=d,e[2]=l,e[3]=r,e[4]=j):j=e[4];const{items:S,hasMore:R,isLoadingMore:b,isInitialLoading:N,isFetching:P,error:$,loadMore:h,availableTags:C,availableCategories:k,selectedTags:v,selectedCategories:z,setSelectedTags:w,setSelectedCategories:x,hasActiveFilters:y}=tt(j);let u,T,L,F;if(e[5]!==a||e[6]!==P||e[7]!==N||e[8]!==S||e[9]!==i||e[10]!==n){const O=i?ot(S,i):S;F=n?O.filter(mt):O,u=(i!==a||P)&&!N&&!!i,L=F.filter(at),T=F.filter(M=>!L.find(q=>q.id===M.id)),e[5]=a,e[6]=P,e[7]=N,e[8]=S,e[9]=i,e[10]=n,e[11]=u,e[12]=T,e[13]=L,e[14]=F}else u=e[11],T=e[12],L=e[13],F=e[14];const _=T;let K;e[15]!==g||e[16]!==I.slug||e[17]!==r||e[18]!==p?(K=O=>{p();const M=We(O.name||O.title||O.server?.title||""),q=typeof O.id=="string"&&O.id.includes("/"),J=typeof O.server?.name=="string"&&O.server.name.includes("/"),f=q&&!J?O.id:O.server?.name||O.id||"";g({to:"/$org/$project/store/$appName",params:{org:I.slug,project:fe,appName:M},search:{registryId:r,serverName:f}})},e[15]=g,e[16]=I.slug,e[17]=r,e[18]=p,e[19]=K):K=e[19];const E=K;let G;e[20]!==m||e[21]!==R||e[22]!==b||e[23]!==h?(G=O=>{if(m(),!R||b)return;const M=O.currentTarget;M.scrollHeight-M.scrollTop-M.clientHeight<200&&h()},e[20]=m,e[21]=R,e[22]=b,e[23]=h,e[24]=G):G=e[24];const H=G;let W;e[25]!==u||e[26]!==i?(W=t.jsx(Ve,{value:i,onChange:c,placeholder:"Search for an MCP Server...",isSearching:u}),e[25]=u,e[26]=i,e[27]=W):W=e[27];let D;e[28]!==k||e[29]!==C||e[30]!==z||e[31]!==v||e[32]!==x||e[33]!==w?(D=t.jsx(nt,{availableTags:C,availableCategories:k,selectedTags:v,selectedCategories:z,onTagChange:w,onCategoryChange:x}),e[28]=k,e[29]=C,e[30]=z,e[31]=v,e[32]=x,e[33]=w,e[34]=D):D=e[34];let B;e[35]!==_||e[36]!==$||e[37]!==E||e[38]!==y||e[39]!==R||e[40]!==N||e[41]!==b||e[42]!==u||e[43]!==i||e[44]!==L||e[45]!==F?(B=t.jsx("div",{className:"p-5",children:t.jsx("div",{children:$&&!N?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(me,{className:"size-8 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Registry unavailable"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"Could not load items from this registry. It may be temporarily offline."}),$.message&&t.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:$.message})]}),t.jsxs(Y,{variant:"outline",size:"sm",onClick:dt,children:[t.jsx(ue,{className:"size-4"}),"Try again"]})]}):N?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):F.length===0&&!y?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(ge,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),t.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):F.length===0&&y&&!i?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(xe,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),t.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):i&&F.length===0&&!u?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(pe,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),t.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):t.jsxs("div",{className:"flex flex-col gap-8",children:[u&&F.length===0&&t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),L.length>0&&t.jsx(ae,{items:L,title:"Verified",onItemClick:E}),_.length>0&&t.jsx(ae,{items:_,title:L.length>0?"All":"",onItemClick:E}),R&&b&&t.jsx("div",{className:"flex justify-center py-8",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(se,{size:20,className:"animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[35]=_,e[36]=$,e[37]=E,e[38]=y,e[39]=R,e[40]=N,e[41]=b,e[42]=u,e[43]=i,e[44]=L,e[45]=F,e[46]=B):B=e[46];let A;e[47]!==H||e[48]!==o||e[49]!==B?(A=t.jsx("div",{ref:o,className:"flex-1 overflow-y-auto",onScroll:H,children:B}),e[47]=H,e[48]=o,e[49]=B,e[50]=A):A=e[50];let V;return e[51]!==W||e[52]!==D||e[53]!==A?(V=t.jsxs("div",{className:"flex flex-col h-full",children:[W,D,A]}),e[51]=W,e[52]=D,e[53]=A,e[54]=V):V=e[54],V}function dt(){return window.location.reload()}function mt(s){return s.is_public!==!0}function ut(s){const e=Q.c(11),{registryId:r,storePrivateOnly:l}=s,d=De(r),n=d?.tools;let i;e[0]!==n?(i=Oe(n),e[0]=n,e[1]=i):i=e[1];const c=i;if(!c){let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"bg-muted p-3 rounded-full",children:t.jsx(ge,{className:"size-8 text-muted-foreground"})}),e[2]=m):m=e[2];let j;return e[3]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[m,t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Registry not available"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"This registry does not support listing store items, or the connection is not responding."})]})]}),e[3]=j):j=e[3],j}const a=d?.tools;let g;e[4]!==a?(g=_e(a),e[4]=a,e[5]=g):g=e[5];const o=g||void 0;let p;return e[6]!==c||e[7]!==r||e[8]!==l||e[9]!==o?(p=t.jsx(ct,{registryId:r,listToolName:c,filtersToolName:o,storePrivateOnly:l}),e[6]=c,e[7]=r,e[8]=l,e[9]=o,e[10]=p):p=e[10],p}function ft(s){const e=Q.c(43),{registries:r,value:l,onValueChange:d,onAddWellKnown:n,wellKnownRegistries:i,placeholder:c}=s,a=c===void 0?"Select a registry...":c,[g,I]=U.useState(!1);let o,p,m,j,S,R,b,N;if(e[0]!==g||e[1]!==a||e[2]!==r||e[3]!==l){let w;e[12]!==l?(w=y=>y.id===l,e[12]=l,e[13]=w):w=e[13];const x=r.find(w);p=ve,b=g,N=I,o=be,R=!0,m="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(j=oe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] h-7 min-w-[160px]"),e[14]=j):j=e[14],S=x?t.jsxs("span",{className:"flex items-center gap-2",children:[x.icon?t.jsx("img",{src:x.icon,alt:x.name,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:x.name.slice(0,1).toUpperCase()}),t.jsx("span",{children:x.name})]}):t.jsx("span",{className:"text-muted-foreground",children:a}),e[0]=g,e[1]=a,e[2]=r,e[3]=l,e[4]=o,e[5]=p,e[6]=m,e[7]=j,e[8]=S,e[9]=R,e[10]=b,e[11]=N}else o=e[4],p=e[5],m=e[6],j=e[7],S=e[8],R=e[9],b=e[10],N=e[11];let P;e[15]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Se,{className:"size-4 opacity-50"}),e[15]=P):P=e[15];let $;e[16]!==m||e[17]!==j||e[18]!==S?($=t.jsxs("button",{type:m,className:j,children:[S,P]}),e[16]=m,e[17]=j,e[18]=S,e[19]=$):$=e[19];let h;e[20]!==o||e[21]!==R||e[22]!==$?(h=t.jsx(o,{asChild:R,children:$}),e[20]=o,e[21]=R,e[22]=$,e[23]=h):h=e[23];let C;if(e[24]!==d||e[25]!==r||e[26]!==l){let w;e[28]!==d||e[29]!==l?(w=x=>t.jsxs("button",{type:"button",onClick:()=>{d(x.id??x.name),I(!1)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[x.icon?t.jsx("img",{src:x.icon,alt:x.name,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:x.name.slice(0,1).toUpperCase()}),t.jsx("span",{children:x.name})]}),l===(x.id??x.name)&&t.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t.jsx(Ce,{className:"size-4"})})]},x.id??x.name),e[28]=d,e[29]=l,e[30]=w):w=e[30],C=r.map(w),e[24]=d,e[25]=r,e[26]=l,e[27]=C}else C=e[27];let k;e[31]!==n||e[32]!==i?(k=i.length>0&&t.jsxs("div",{className:"border-t border-border pt-1 mt-1",children:[t.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),i.map(w=>t.jsxs("button",{type:"button",onClick:()=>{n(w),I(!1)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[w.icon?t.jsx("img",{src:w.icon,alt:w.title,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:w.title.slice(0,1).toUpperCase()}),t.jsx("span",{className:"flex-1",children:w.title})]}),t.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:t.jsx(He,{size:16})})]},w.id??w.title))]}),e[31]=n,e[32]=i,e[33]=k):k=e[33];let v;e[34]!==C||e[35]!==k?(v=t.jsxs(Ne,{align:"end",className:"w-auto min-w-[200px] p-1",children:[C,k]}),e[34]=C,e[35]=k,e[36]=v):v=e[36];let z;return e[37]!==p||e[38]!==h||e[39]!==v||e[40]!==b||e[41]!==N?(z=t.jsxs(p,{open:b,onOpenChange:N,children:[h,v]}),e[37]=p,e[38]=h,e[39]=v,e[40]=b,e[41]=N,e[42]=z):z=e[42],z}function xt({registries:s,onConnected:e}){const r=ye(),{org:{slug:l}}=re(),{data:d}=Ie.useSession(),n=de(),[i,c]=U.useState(!1),a=s[0],g=async()=>{if(!(!a||!d?.user?.id)){c(!0);try{const o=await r.create.mutateAsync(a);e?.(o.id)}finally{c(!1)}}},I=()=>{n({to:"/$org/$project/mcps",params:{org:l,project:fe},search:{action:"create"}})};return t.jsx(qe,{image:t.jsx("img",{src:"/store-empty-state.svg",alt:"No store connected",width:336,height:320,className:"max-w-full h-auto"}),title:"Connect to registry",description:"Connect to discover and use Connections from the community.",actions:t.jsxs(t.Fragment,{children:[t.jsxs(Y,{variant:"outline",onClick:g,disabled:i||!a,children:[a?.icon&&t.jsx("img",{src:a.icon,alt:"",className:"size-4"}),i?"Installing...":"Install Registry"]}),t.jsx(Y,{variant:"outline",onClick:I,children:"Custom Connection"})]})})}function gt(s){const e=Q.c(15),{error:r,onRetry:l,registryName:d}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(me,{className:"h-6 w-6 text-destructive"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("h3",{className:"text-lg font-medium",children:"Unable to load store"}),e[1]=i):i=e[1];let c;e[2]!==d?(c=t.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",t.jsx("strong",{children:d})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=d,e[3]=c):c=e[3];let a;e[4]!==r?(a=r?.message&&t.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:r.message}),e[4]=r,e[5]=a):a=e[5];let g;e[6]!==c||e[7]!==a?(g=t.jsxs("div",{className:"space-y-2",children:[i,c,a]}),e[6]=c,e[7]=a,e[8]=g):g=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(ue,{className:"size-4"}),e[9]=I):I=e[9];let o;e[10]!==l?(o=t.jsxs(Y,{variant:"outline",size:"sm",onClick:l,children:[I,"Try again"]}),e[10]=l,e[11]=o):o=e[11];let p;return e[12]!==g||e[13]!==o?(p=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[n,g,o]}),e[12]=g,e[13]=o,e[14]=p):p=e[14],p}function ss(){const s=Q.c(49),{org:e,project:r}=re(),l=Ge(),d=ye(),n=Te(),i=n.location.pathname.includes("/store/")&&n.location.pathname.split("/").length>3,c=Je(l);let a;s[0]!==e.id?(a=Ke.SELF(e.id),s[0]=e.id,s[1]=a):a=s[1];const g=a,I=r.enabledPlugins,o=I==null||I.includes(ne),p=c.filter(f=>f.id!==g?!0:o);let m;s[2]!==g?(m=f=>f.id===g,s[2]=g,s[3]=m):m=s[3];const j=p.some(m);let S;s[4]!==e.id?(S={connectionId:Ae,orgId:e.id},s[4]=e.id,s[5]=S):S=s[5];const R=je(S);let b;s[6]!==r.id||s[7]!==R?(b=async()=>{const f=await R.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:ne}});return f.structuredContent??f},s[6]=r.id,s[7]=R,s[8]=b):b=s[8];const{data:N}=he({queryKey:ie.projectPluginConfig(r.id??"",ne),queryFn:b,enabled:j&&!!r.id,staleTime:6e4}),P=N?.config?.settings;let $;s[9]!==P||s[10]!==g?($=f=>f.id===g&&P?{id:f.id,name:P.registryName||f.title,icon:P.registryIcon||f.icon||void 0}:{id:f.id,name:f.title,icon:f.icon||void 0},s[9]=P,s[10]=g,s[11]=$):$=s[11];const h=p.map($);let C;s[12]!==e.slug?(C=Qe.selectedRegistry(e.slug),s[12]=e.slug,s[13]=C):C=s[13];const[k,v]=Ye(C,ht);let z;s[14]!==k?(z=f=>f.id===k,s[14]=k,s[15]=z):z=s[15];const x=p.find(z)?.id||p[0]?.id||"",y=x===g&&P?.storePrivateOnly===!0;let u;s[16]!==e.id?(u=Me(e.id),s[16]=e.id,s[17]=u):u=s[17];let T;s[18]!==u?(T=[u],s[18]=u,s[19]=T):T=s[19];const L=T;let F;s[20]===Symbol.for("react.memo_cache_sentinel")?(F=[Be()],s[20]=F):F=s[20];const _=F;let K;s[21]!==d.create||s[22]!==v?(K=async f=>{const Z=await d.create.mutateAsync(f);v(Z.id)},s[21]=d.create,s[22]=v,s[23]=K):K=s[23];const E=K,G=new Set(p.map(pt)),H=L.filter(f=>f.id&&!G.has(f.id)),W=_.filter(f=>f.id&&!G.has(f.id));if(i){let f;return s[24]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{}),s[24]=f):f=s[24],f}let D;s[25]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(X.Header.Left,{children:t.jsx($e,{children:t.jsx(ke,{children:t.jsx(ze,{children:t.jsx(Le,{children:"Store"})})})})}),s[25]=D):D=s[25];let B;s[26]!==E?(B=async f=>E(f),s[26]=E,s[27]=B):B=s[27];let A;s[28]!==H||s[29]!==x||s[30]!==h||s[31]!==v||s[32]!==B?(A=t.jsxs(X.Header,{children:[D,t.jsx(X.Header.Right,{children:t.jsx(ft,{wellKnownRegistries:H,registries:h,value:x,onValueChange:v,onAddWellKnown:B,placeholder:"Select store..."})})]}),s[28]=H,s[29]=x,s[30]=h,s[31]=v,s[32]=B,s[33]=A):A=s[33];let V;s[34]!==x||s[35]!==h?(V=f=>{const{error:Z,resetError:le}=f;return t.jsx(gt,{error:Z,onRetry:le,registryName:h.find(ee=>ee.id===x)?.name??"registry"})},s[34]=x,s[35]=h,s[36]=V):V=s[36];let O;s[37]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),s[37]=O):O=s[37];let M;s[38]!==W||s[39]!==x||s[40]!==v||s[41]!==y?(M=t.jsx(U.Suspense,{fallback:O,children:x?t.jsx(ut,{registryId:x,storePrivateOnly:y}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(xt,{registries:W,onConnected:f=>{v(f)}})})}),s[38]=W,s[39]=x,s[40]=v,s[41]=y,s[42]=M):M=s[42];let q;s[43]!==V||s[44]!==M?(q=t.jsx(X.Content,{children:t.jsx(Re,{fallback:V,children:M})}),s[43]=V,s[44]=M,s[45]=q):q=s[45];let J;return s[46]!==A||s[47]!==q?(J=t.jsxs(X,{children:[A,q]}),s[46]=A,s[47]=q,s[48]=J):J=s[48],J}function pt(s){return s.id}function ht(s){return s??""}export{ss as default};
|
|
1
|
+
import{c as Q,r as U,u as re,K as ie,bZ as we,j as t,v as oe,B as Y,b as de,a1 as me,a2 as ue,O as fe,d as Ie,aE as Te,b_ as ne,E as Re,aG as Pe}from"./index-zTmRWZBl.js";import{P as X}from"./index-C3HPQ2Xr.js";import{B as $e,a as ke,b as ze,c as Le}from"./breadcrumb-oXffKFw_.js";import{i as xe}from"./FilterLines-DkQNMule.js";import{n as ge}from"./Inbox01-CPxBPhel.js";import{i as se}from"./Loading01-e5vrz4Tg.js";import{i as pe}from"./SearchMd-3uDmzuN-.js";import{u as he}from"./useQuery-C_yP5u2a.js";import{u as Fe}from"./useInfiniteQuery-MM2sZURp.js";import{a as Ee,f as Oe,b as _e}from"./registry-utils-BAmZqs68.js";import{u as je,W as Ke,a as Ae,f as Me,b as Be}from"./constants-Bi0KgUSI.js";import{u as De,a as ye,b as Ge}from"./use-connection-D_z7DIgr.js";import{s as We}from"./slugify-CEUa2lfQ.js";import{C as Ve,E as qe}from"./collection-search-mO1HMauC.js";import{M as ae}from"./mcp-server-card-Cup_00LD.js";import{I as Ue}from"./input-yDn0CDzQ.js";import{a as ve,b as be,P as Ne}from"./popover-BD-c_pAA.js";import{i as Ce}from"./Check-xOBqZzmv.js";import{t as Se}from"./ChevronDown-cFwq8_1y.js";import{s as te}from"./XClose-CPAcIRmr.js";import{s as He}from"./Plus-CAkBZRVl.js";import{u as Je}from"./use-binding-CczCr_I6.js";import{L as Qe,u as Ye}from"./localstorage-keys-DyhMCgsK.js";import"./tooltip-c2IY6Q1h.js";import"./index-DNc2lZPL.js";import"./ChevronRight-zkVqPrw5.js";import"./infiniteQueryObserver-CzeIHV7S.js";import"./use-collections-BM5qbXh2.js";import"./useMutation-DxToDvqg.js";import"./CheckVerified02-CEWZcD4z.js";import"./Globe02-ChkOndGF.js";import"./Lock01-CFsYgwl6.js";import"./Terminal-D4rOkPT8.js";import"./card-B9F3gzU1.js";import"./integration-icon-BKuXjqdm.js";import"./Container-BzuFyXB-.js";import"./github-icon-Dp3wHhYE.js";import"./binder-CSUd_3kq.js";function Ze(s,e){const r=Q.c(4),[l,d]=U.useState(s),n=U.useRef(null),i=U.useRef(!0);let c,a;return r[0]!==e||r[1]!==s?(c=()=>{if(i.current){i.current=!1;return}return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{d(s)},e),()=>{n.current&&clearTimeout(n.current)}},a=[s,e],r[0]=e,r[1]=s,r[2]=c,r[3]=a):(c=r[2],a=r[3]),U.useEffect(c,a),l}function Xe(s){const e=Q.c(14),r=U.useRef(null),l=`scroll-position:${s}`,d=U.useRef(null);let n;e[0]!==l?(n=()=>{r.current&&sessionStorage.setItem(l,String(r.current.scrollTop))},e[0]=l,e[1]=n):n=e[1];const i=n;let c;e[2]!==l?(c=()=>{if(d.current===l)return;const j=sessionStorage.getItem(l);if(j&&r.current){const S=Number.parseInt(j,10);r.current.scrollTop=S}d.current=l},e[2]=l,e[3]=c):c=e[3];const a=c;let g;e[4]!==a||e[5]!==l?(g=()=>{d.current!==l&&a()},e[4]=a,e[5]=l,e[6]=g):g=e[6];const I=g;let o;e[7]!==a||e[8]!==l?(o=j=>{r.current=j,j&&d.current!==l&&requestAnimationFrame(()=>{a()})},e[7]=a,e[8]=l,e[9]=o):o=e[9];const p=o;let m;return e[10]!==I||e[11]!==i||e[12]!==p?(m={scrollRef:p,saveScrollPosition:i,handleScroll:I},e[10]=I,e[11]=i,e[12]=p,e[13]=m):m=e[13],m}const et=24;function tt(s){const e=Q.c(54),{registryId:r,listToolName:l,filtersToolName:d,search:n}=s,{org:i}=re();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[a,g]=U.useState(c);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=[],e[1]=I):I=e[1];const[o,p]=U.useState(I),m=r||null;let j;e[2]!==i.id||e[3]!==m?(j={connectionId:m,orgId:i.id},e[2]=i.id,e[3]=m,e[4]=j):j=e[4];const S=je(j),R=!!d;let b;e[5]!==d||e[6]!==r?(b=ie.toolCall(r,d||"no-filters","{}"),e[5]=d,e[6]=r,e[7]=b):b=e[7];let N;e[8]!==S||e[9]!==d?(N=async()=>{if(!d)return{tags:[],categories:[]};const f=await S.callTool({name:d,arguments:{}});return f.structuredContent??f},e[8]=S,e[9]=d,e[10]=N):N=e[10];let P;e[11]!==b||e[12]!==N?(P={queryKey:b,queryFn:N,staleTime:36e5,retry:2},e[11]=b,e[12]=N,e[13]=P):P=e[13];const{data:$}=he(P);let h,C,k;if(e[14]!==l||e[15]!==r||e[16]!==n||e[17]!==o||e[18]!==a){const f=n?.trim()?{operator:"or",conditions:[{field:["name"],operator:"contains",value:n},{field:["title"],operator:"contains",value:n},{field:["description"],operator:"contains",value:n}]}:void 0;h={limit:et,...a.length>0&&{tags:a},...o.length>0&&{categories:o},...f&&{where:f}},k=Fe,C=ie.toolCall(r,l,JSON.stringify(h)),e[14]=l,e[15]=r,e[16]=n,e[17]=o,e[18]=a,e[19]=h,e[20]=C,e[21]=k}else h=e[19],C=e[20],k=e[21];let v;e[22]!==S||e[23]!==h||e[24]!==l?(v=async f=>{const{pageParam:Z}=f,le=Z?{...h,cursor:Z}:h,ee=await S.callTool({name:l,arguments:le});return ee.structuredContent??ee},e[22]=S,e[23]=h,e[24]=l,e[25]=v):v=e[25];let z;e[26]!==v||e[27]!==C?(z={queryKey:C,queryFn:v,initialPageParam:void 0,getNextPageParam:st,staleTime:36e5,placeholderData:we,retry:2},e[26]=v,e[27]=C,e[28]=z):z=e[28];const{data:w,fetchNextPage:x,hasNextPage:y,isFetchingNextPage:u,isFetching:T,isLoading:L,error:F}=k(z);let _;e:{if(!w?.pages||w.pages.length===0){_=null;break e}const f=w.pages[0];if(typeof f=="object"&&f!==null&&"totalCount"in f&&typeof f.totalCount=="number"){_=f.totalCount;break e}_=null}const K=_,E=w?.pages;let G;e[29]!==E?(G=Ee(E),e[29]=E,e[30]=G):G=e[30];const H=G;let W;e[31]!==n||e[32]!==o.length||e[33]!==a.length?(W=a.length>0||o.length>0||!!n?.trim(),e[31]=n,e[32]=o.length,e[33]=a.length,e[34]=W):W=e[34];const D=W,B=T&&!u&&!L&&D;let A;e[35]!==x||e[36]!==y||e[37]!==u?(A=()=>{y&&!u&&x()},e[35]=x,e[36]=y,e[37]=u,e[38]=A):A=e[38];const V=A,O=y??!1,M=R?$?.tags:void 0,q=R?$?.categories:void 0;let J;return e[39]!==D||e[40]!==T||e[41]!==u||e[42]!==B||e[43]!==L||e[44]!==H||e[45]!==F||e[46]!==V||e[47]!==o||e[48]!==a||e[49]!==O||e[50]!==M||e[51]!==q||e[52]!==K?(J={items:H,totalCount:K,hasMore:O,isLoadingMore:u,isFiltering:B,isInitialLoading:L,isFetching:T,error:F,loadMore:V,availableTags:M,availableCategories:q,selectedTags:a,selectedCategories:o,setSelectedTags:g,setSelectedCategories:p,hasActiveFilters:D},e[39]=D,e[40]=T,e[41]=u,e[42]=B,e[43]=L,e[44]=H,e[45]=F,e[46]=V,e[47]=o,e[48]=a,e[49]=O,e[50]=M,e[51]=q,e[52]=K,e[53]=J):J=e[53],J}function st(s){if(typeof s=="object"&&s!==null){const e=s.nextCursor||s.cursor;if(e)return e}}function rt(s,e){return[...s].sort((r,l)=>l.count-r.count).slice(0,e)}function ce(s){const e=Q.c(52),{label:r,items:l,selectedItems:d,onToggle:n,onClear:i}=s,[c,a]=U.useState(""),[g,I]=U.useState(!1);let o,p,m,j,S,R,b,N,P,$,h;if(e[0]!==l||e[1]!==r||e[2]!==n||e[3]!==g||e[4]!==c||e[5]!==d){const x=[...c?l.filter(E=>E.value.toLowerCase().includes(c.toLowerCase())):l].sort(lt);m=d.length,p=ve,P=g,$=I;let y;e[17]!==r?(y=t.jsx("span",{children:r}),e[17]=r,e[18]=y):y=e[18];let u;e[19]!==m?(u=m>0&&t.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:m}),e[19]=m,e[20]=u):u=e[20];let T;e[21]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(Se,{size:14,className:"opacity-50"}),e[21]=T):T=e[21],e[22]!==u||e[23]!==y?(h=t.jsx(be,{asChild:!0,children:t.jsxs(Y,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[y,u,T]})}),e[22]=u,e[23]=y,e[24]=h):h=e[24],o=Ne,R="w-64 p-0",b="start";let L;e[25]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(pe,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=L):L=e[25];let F;e[26]!==r?(F=r.toLowerCase(),e[26]=r,e[27]=F):F=e[27];const _=`Search ${F}...`;let K;e[28]===Symbol.for("react.memo_cache_sentinel")?(K=E=>a(E.target.value),e[28]=K):K=e[28],e[29]!==c||e[30]!==_?(N=t.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:t.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[L,t.jsx(Ue,{type:"text",placeholder:_,value:c,onChange:K,className:"flex-1 border-0 shadow-none focus-visible:ring-0 px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[29]=c,e[30]=_,e[31]=N):N=e[31],j="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",S=x.length===0?t.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):x.map(E=>{const G=d.includes(E.value);return t.jsxs("button",{onClick:()=>n(E.value),className:oe("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",G?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[t.jsxs("span",{className:"truncate flex items-center gap-2",children:[G&&t.jsx(Ce,{size:16,className:"text-muted-foreground shrink-0"}),E.value]}),t.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:E.count})]},E.value)}),e[0]=l,e[1]=r,e[2]=n,e[3]=g,e[4]=c,e[5]=d,e[6]=o,e[7]=p,e[8]=m,e[9]=j,e[10]=S,e[11]=R,e[12]=b,e[13]=N,e[14]=P,e[15]=$,e[16]=h}else o=e[6],p=e[7],m=e[8],j=e[9],S=e[10],R=e[11],b=e[12],N=e[13],P=e[14],$=e[15],h=e[16];let C;e[32]!==j||e[33]!==S?(C=t.jsx("div",{className:j,children:S}),e[32]=j,e[33]=S,e[34]=C):C=e[34];let k;e[35]!==r||e[36]!==i||e[37]!==m?(k=m>0&&t.jsx("div",{className:"p-2 border-t border-border",children:t.jsxs(Y,{variant:"ghost",size:"sm",onClick:i,className:"w-full text-xs text-muted-foreground hover:text-foreground",children:["Clear ",r.toLowerCase()]})}),e[35]=r,e[36]=i,e[37]=m,e[38]=k):k=e[38];let v;e[39]!==o||e[40]!==k||e[41]!==R||e[42]!==b||e[43]!==N||e[44]!==C?(v=t.jsxs(o,{className:R,align:b,children:[N,C,k]}),e[39]=o,e[40]=k,e[41]=R,e[42]=b,e[43]=N,e[44]=C,e[45]=v):v=e[45];let z;return e[46]!==p||e[47]!==v||e[48]!==P||e[49]!==$||e[50]!==h?(z=t.jsxs(p,{open:P,onOpenChange:$,children:[h,v]}),e[46]=p,e[47]=v,e[48]=P,e[49]=$,e[50]=h,e[51]=z):z=e[51],z}function lt(s,e){return e.count-s.count}function nt(s){const e=Q.c(67),{availableTags:r,availableCategories:l,selectedTags:d,selectedCategories:n,onTagChange:i,onCategoryChange:c}=s,a=r&&r.length>0||l&&l.length>0,g=d.length>0||n.length>0;if(!a)return null;let I;e[0]!==i||e[1]!==d?(I=y=>{d.includes(y)?i(d.filter(u=>u!==y)):i([...d,y])},e[0]=i,e[1]=d,e[2]=I):I=e[2];const o=I;let p;e[3]!==c||e[4]!==n?(p=y=>{n.includes(y)?c(n.filter(u=>u!==y)):c([...n,y])},e[3]=c,e[4]=n,e[5]=p):p=e[5];const m=p;let j;e[6]!==c||e[7]!==i?(j=()=>{i([]),c([])},e[6]=c,e[7]=i,e[8]=j):j=e[8];const S=j;let R,b,N,P,$,h,C;if(e[9]!==l||e[10]!==r||e[11]!==c||e[12]!==i||e[13]!==n||e[14]!==d||e[15]!==m||e[16]!==o){const y=l?rt(l,6):[];R=n,b=d,C=new Set(y.map(it)),$="flex items-center border-b border-border";let u;e[24]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:t.jsx(xe,{size:16})}),e[24]=u):u=e[24];let T;e[25]!==l||e[26]!==c||e[27]!==n||e[28]!==m?(T=l&&l.length>0&&t.jsx(ce,{label:"Categories",items:l,selectedItems:n,onToggle:m,onClear:()=>c([])}),e[25]=l,e[26]=c,e[27]=n,e[28]=m,e[29]=T):T=e[29];let L;e[30]!==r||e[31]!==i||e[32]!==d||e[33]!==o?(L=r&&r.length>0&&t.jsx(ce,{label:"Tags",items:r,selectedItems:d,onToggle:o,onClear:()=>i([])}),e[30]=r,e[31]=i,e[32]=d,e[33]=o,e[34]=L):L=e[34],e[35]!==L||e[36]!==T?(h=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[u,T,L]}),e[35]=L,e[36]=T,e[37]=h):h=e[37],N="flex items-center gap-3 flex-wrap px-5 py-3";let F;e[38]!==n||e[39]!==m?(F=_=>{const K=n.includes(_.value);return t.jsxs("div",{onClick:()=>m(_.value),className:oe("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",K?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[t.jsx("span",{children:_.value}),K&&t.jsx("span",{onClick:E=>{E.stopPropagation(),m(_.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},_.value)},e[38]=n,e[39]=m,e[40]=F):F=e[40],P=y.map(F),e[9]=l,e[10]=r,e[11]=c,e[12]=i,e[13]=n,e[14]=d,e[15]=m,e[16]=o,e[17]=R,e[18]=b,e[19]=N,e[20]=P,e[21]=$,e[22]=h,e[23]=C}else R=e[17],b=e[18],N=e[19],P=e[20],$=e[21],h=e[22],C=e[23];let k;if(e[41]!==R||e[42]!==m||e[43]!==C){let y;e[45]!==C?(y=T=>!C.has(T),e[45]=C,e[46]=y):y=e[46];let u;e[47]!==m?(u=T=>t.jsxs("div",{onClick:()=>m(T),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[t.jsx("span",{children:T}),t.jsx("span",{onClick:L=>{L.stopPropagation(),m(T)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},`cat-${T}`),e[47]=m,e[48]=u):u=e[48],k=R.filter(y).map(u),e[41]=R,e[42]=m,e[43]=C,e[44]=k}else k=e[44];let v;if(e[49]!==b||e[50]!==o){let y;e[52]!==o?(y=u=>t.jsxs("div",{onClick:()=>o(u),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[t.jsx("span",{children:u}),t.jsx("span",{onClick:T=>{T.stopPropagation(),o(u)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},`tag-${u}`),e[52]=o,e[53]=y):y=e[53],v=b.map(y),e[49]=b,e[50]=o,e[51]=v}else v=e[51];let z;e[54]!==S||e[55]!==g?(z=g&&t.jsxs(Y,{variant:"ghost",size:"sm",onClick:S,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[t.jsx(te,{size:14}),"Clear all"]}),e[54]=S,e[55]=g,e[56]=z):z=e[56];let w;e[57]!==z||e[58]!==N||e[59]!==P||e[60]!==k||e[61]!==v?(w=t.jsxs("div",{className:N,children:[P,k,v,z]}),e[57]=z,e[58]=N,e[59]=P,e[60]=k,e[61]=v,e[62]=w):w=e[62];let x;return e[63]!==w||e[64]!==$||e[65]!==h?(x=t.jsxs("div",{className:$,children:[h,w]}),e[63]=w,e[64]=$,e[65]=h,e[66]=x):x=e[66],x}function it(s){return s.value}function ot(s,e){if(!e)return s;const r=e.toLowerCase();return s.filter(l=>(l.name||l.title||"").toLowerCase().includes(r)||(l.description||l.server?.description||"").toLowerCase().includes(r))}function at(s){return s.verified===!0||s._meta?.["mcp.mesh"]?.verified===!0}function ct(s){const e=Q.c(55),{registryId:r,listToolName:l,filtersToolName:d,storePrivateOnly:n}=s,[i,c]=U.useState(""),a=Ze(i,300),g=de(),{org:I}=re(),{scrollRef:o,saveScrollPosition:p,handleScroll:m}=Xe(`store-discovery:${r}`);let j;e[0]!==a||e[1]!==d||e[2]!==l||e[3]!==r?(j={registryId:r,listToolName:l,filtersToolName:d,search:a},e[0]=a,e[1]=d,e[2]=l,e[3]=r,e[4]=j):j=e[4];const{items:S,hasMore:R,isLoadingMore:b,isInitialLoading:N,isFetching:P,error:$,loadMore:h,availableTags:C,availableCategories:k,selectedTags:v,selectedCategories:z,setSelectedTags:w,setSelectedCategories:x,hasActiveFilters:y}=tt(j);let u,T,L,F;if(e[5]!==a||e[6]!==P||e[7]!==N||e[8]!==S||e[9]!==i||e[10]!==n){const O=i?ot(S,i):S;F=n?O.filter(mt):O,u=(i!==a||P)&&!N&&!!i,L=F.filter(at),T=F.filter(M=>!L.find(q=>q.id===M.id)),e[5]=a,e[6]=P,e[7]=N,e[8]=S,e[9]=i,e[10]=n,e[11]=u,e[12]=T,e[13]=L,e[14]=F}else u=e[11],T=e[12],L=e[13],F=e[14];const _=T;let K;e[15]!==g||e[16]!==I.slug||e[17]!==r||e[18]!==p?(K=O=>{p();const M=We(O.name||O.title||O.server?.title||""),q=typeof O.id=="string"&&O.id.includes("/"),J=typeof O.server?.name=="string"&&O.server.name.includes("/"),f=q&&!J?O.id:O.server?.name||O.id||"";g({to:"/$org/$project/store/$appName",params:{org:I.slug,project:fe,appName:M},search:{registryId:r,serverName:f}})},e[15]=g,e[16]=I.slug,e[17]=r,e[18]=p,e[19]=K):K=e[19];const E=K;let G;e[20]!==m||e[21]!==R||e[22]!==b||e[23]!==h?(G=O=>{if(m(),!R||b)return;const M=O.currentTarget;M.scrollHeight-M.scrollTop-M.clientHeight<200&&h()},e[20]=m,e[21]=R,e[22]=b,e[23]=h,e[24]=G):G=e[24];const H=G;let W;e[25]!==u||e[26]!==i?(W=t.jsx(Ve,{value:i,onChange:c,placeholder:"Search for an MCP Server...",isSearching:u}),e[25]=u,e[26]=i,e[27]=W):W=e[27];let D;e[28]!==k||e[29]!==C||e[30]!==z||e[31]!==v||e[32]!==x||e[33]!==w?(D=t.jsx(nt,{availableTags:C,availableCategories:k,selectedTags:v,selectedCategories:z,onTagChange:w,onCategoryChange:x}),e[28]=k,e[29]=C,e[30]=z,e[31]=v,e[32]=x,e[33]=w,e[34]=D):D=e[34];let B;e[35]!==_||e[36]!==$||e[37]!==E||e[38]!==y||e[39]!==R||e[40]!==N||e[41]!==b||e[42]!==u||e[43]!==i||e[44]!==L||e[45]!==F?(B=t.jsx("div",{className:"p-5",children:t.jsx("div",{children:$&&!N?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(me,{className:"size-8 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Registry unavailable"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"Could not load items from this registry. It may be temporarily offline."}),$.message&&t.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:$.message})]}),t.jsxs(Y,{variant:"outline",size:"sm",onClick:dt,children:[t.jsx(ue,{className:"size-4"}),"Try again"]})]}):N?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):F.length===0&&!y?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(ge,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),t.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):F.length===0&&y&&!i?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(xe,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),t.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):i&&F.length===0&&!u?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(pe,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),t.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):t.jsxs("div",{className:"flex flex-col gap-8",children:[u&&F.length===0&&t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),L.length>0&&t.jsx(ae,{items:L,title:"Verified",onItemClick:E}),_.length>0&&t.jsx(ae,{items:_,title:L.length>0?"All":"",onItemClick:E}),R&&b&&t.jsx("div",{className:"flex justify-center py-8",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(se,{size:20,className:"animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[35]=_,e[36]=$,e[37]=E,e[38]=y,e[39]=R,e[40]=N,e[41]=b,e[42]=u,e[43]=i,e[44]=L,e[45]=F,e[46]=B):B=e[46];let A;e[47]!==H||e[48]!==o||e[49]!==B?(A=t.jsx("div",{ref:o,className:"flex-1 overflow-y-auto",onScroll:H,children:B}),e[47]=H,e[48]=o,e[49]=B,e[50]=A):A=e[50];let V;return e[51]!==W||e[52]!==D||e[53]!==A?(V=t.jsxs("div",{className:"flex flex-col h-full",children:[W,D,A]}),e[51]=W,e[52]=D,e[53]=A,e[54]=V):V=e[54],V}function dt(){return window.location.reload()}function mt(s){return s.is_public!==!0}function ut(s){const e=Q.c(11),{registryId:r,storePrivateOnly:l}=s,d=De(r),n=d?.tools;let i;e[0]!==n?(i=Oe(n),e[0]=n,e[1]=i):i=e[1];const c=i;if(!c){let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"bg-muted p-3 rounded-full",children:t.jsx(ge,{className:"size-8 text-muted-foreground"})}),e[2]=m):m=e[2];let j;return e[3]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[m,t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Registry not available"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"This registry does not support listing store items, or the connection is not responding."})]})]}),e[3]=j):j=e[3],j}const a=d?.tools;let g;e[4]!==a?(g=_e(a),e[4]=a,e[5]=g):g=e[5];const o=g||void 0;let p;return e[6]!==c||e[7]!==r||e[8]!==l||e[9]!==o?(p=t.jsx(ct,{registryId:r,listToolName:c,filtersToolName:o,storePrivateOnly:l}),e[6]=c,e[7]=r,e[8]=l,e[9]=o,e[10]=p):p=e[10],p}function ft(s){const e=Q.c(43),{registries:r,value:l,onValueChange:d,onAddWellKnown:n,wellKnownRegistries:i,placeholder:c}=s,a=c===void 0?"Select a registry...":c,[g,I]=U.useState(!1);let o,p,m,j,S,R,b,N;if(e[0]!==g||e[1]!==a||e[2]!==r||e[3]!==l){let w;e[12]!==l?(w=y=>y.id===l,e[12]=l,e[13]=w):w=e[13];const x=r.find(w);p=ve,b=g,N=I,o=be,R=!0,m="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(j=oe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] h-7 min-w-[160px]"),e[14]=j):j=e[14],S=x?t.jsxs("span",{className:"flex items-center gap-2",children:[x.icon?t.jsx("img",{src:x.icon,alt:x.name,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:x.name.slice(0,1).toUpperCase()}),t.jsx("span",{children:x.name})]}):t.jsx("span",{className:"text-muted-foreground",children:a}),e[0]=g,e[1]=a,e[2]=r,e[3]=l,e[4]=o,e[5]=p,e[6]=m,e[7]=j,e[8]=S,e[9]=R,e[10]=b,e[11]=N}else o=e[4],p=e[5],m=e[6],j=e[7],S=e[8],R=e[9],b=e[10],N=e[11];let P;e[15]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Se,{className:"size-4 opacity-50"}),e[15]=P):P=e[15];let $;e[16]!==m||e[17]!==j||e[18]!==S?($=t.jsxs("button",{type:m,className:j,children:[S,P]}),e[16]=m,e[17]=j,e[18]=S,e[19]=$):$=e[19];let h;e[20]!==o||e[21]!==R||e[22]!==$?(h=t.jsx(o,{asChild:R,children:$}),e[20]=o,e[21]=R,e[22]=$,e[23]=h):h=e[23];let C;if(e[24]!==d||e[25]!==r||e[26]!==l){let w;e[28]!==d||e[29]!==l?(w=x=>t.jsxs("button",{type:"button",onClick:()=>{d(x.id??x.name),I(!1)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[x.icon?t.jsx("img",{src:x.icon,alt:x.name,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:x.name.slice(0,1).toUpperCase()}),t.jsx("span",{children:x.name})]}),l===(x.id??x.name)&&t.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t.jsx(Ce,{className:"size-4"})})]},x.id??x.name),e[28]=d,e[29]=l,e[30]=w):w=e[30],C=r.map(w),e[24]=d,e[25]=r,e[26]=l,e[27]=C}else C=e[27];let k;e[31]!==n||e[32]!==i?(k=i.length>0&&t.jsxs("div",{className:"border-t border-border pt-1 mt-1",children:[t.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),i.map(w=>t.jsxs("button",{type:"button",onClick:()=>{n(w),I(!1)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[w.icon?t.jsx("img",{src:w.icon,alt:w.title,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:w.title.slice(0,1).toUpperCase()}),t.jsx("span",{className:"flex-1",children:w.title})]}),t.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:t.jsx(He,{size:16})})]},w.id??w.title))]}),e[31]=n,e[32]=i,e[33]=k):k=e[33];let v;e[34]!==C||e[35]!==k?(v=t.jsxs(Ne,{align:"end",className:"w-auto min-w-[200px] p-1",children:[C,k]}),e[34]=C,e[35]=k,e[36]=v):v=e[36];let z;return e[37]!==p||e[38]!==h||e[39]!==v||e[40]!==b||e[41]!==N?(z=t.jsxs(p,{open:b,onOpenChange:N,children:[h,v]}),e[37]=p,e[38]=h,e[39]=v,e[40]=b,e[41]=N,e[42]=z):z=e[42],z}function xt({registries:s,onConnected:e}){const r=ye(),{org:{slug:l}}=re(),{data:d}=Ie.useSession(),n=de(),[i,c]=U.useState(!1),a=s[0],g=async()=>{if(!(!a||!d?.user?.id)){c(!0);try{const o=await r.create.mutateAsync(a);e?.(o.id)}finally{c(!1)}}},I=()=>{n({to:"/$org/$project/mcps",params:{org:l,project:fe},search:{action:"create"}})};return t.jsx(qe,{image:t.jsx("img",{src:"/store-empty-state.svg",alt:"No store connected",width:336,height:320,className:"max-w-full h-auto"}),title:"Connect to registry",description:"Connect to discover and use Connections from the community.",actions:t.jsxs(t.Fragment,{children:[t.jsxs(Y,{variant:"outline",onClick:g,disabled:i||!a,children:[a?.icon&&t.jsx("img",{src:a.icon,alt:"",className:"size-4"}),i?"Installing...":"Install Registry"]}),t.jsx(Y,{variant:"outline",onClick:I,children:"Custom Connection"})]})})}function gt(s){const e=Q.c(15),{error:r,onRetry:l,registryName:d}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(me,{className:"h-6 w-6 text-destructive"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("h3",{className:"text-lg font-medium",children:"Unable to load store"}),e[1]=i):i=e[1];let c;e[2]!==d?(c=t.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",t.jsx("strong",{children:d})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=d,e[3]=c):c=e[3];let a;e[4]!==r?(a=r?.message&&t.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:r.message}),e[4]=r,e[5]=a):a=e[5];let g;e[6]!==c||e[7]!==a?(g=t.jsxs("div",{className:"space-y-2",children:[i,c,a]}),e[6]=c,e[7]=a,e[8]=g):g=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(ue,{className:"size-4"}),e[9]=I):I=e[9];let o;e[10]!==l?(o=t.jsxs(Y,{variant:"outline",size:"sm",onClick:l,children:[I,"Try again"]}),e[10]=l,e[11]=o):o=e[11];let p;return e[12]!==g||e[13]!==o?(p=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[n,g,o]}),e[12]=g,e[13]=o,e[14]=p):p=e[14],p}function ss(){const s=Q.c(49),{org:e,project:r}=re(),l=Ge(),d=ye(),n=Te(),i=n.location.pathname.includes("/store/")&&n.location.pathname.split("/").length>3,c=Je(l);let a;s[0]!==e.id?(a=Ke.SELF(e.id),s[0]=e.id,s[1]=a):a=s[1];const g=a,I=r.enabledPlugins,o=I==null||I.includes(ne),p=c.filter(f=>f.id!==g?!0:o);let m;s[2]!==g?(m=f=>f.id===g,s[2]=g,s[3]=m):m=s[3];const j=p.some(m);let S;s[4]!==e.id?(S={connectionId:Ae,orgId:e.id},s[4]=e.id,s[5]=S):S=s[5];const R=je(S);let b;s[6]!==r.id||s[7]!==R?(b=async()=>{const f=await R.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:ne}});return f.structuredContent??f},s[6]=r.id,s[7]=R,s[8]=b):b=s[8];const{data:N}=he({queryKey:ie.projectPluginConfig(r.id??"",ne),queryFn:b,enabled:j&&!!r.id,staleTime:6e4}),P=N?.config?.settings;let $;s[9]!==P||s[10]!==g?($=f=>f.id===g&&P?{id:f.id,name:P.registryName||f.title,icon:P.registryIcon||f.icon||void 0}:{id:f.id,name:f.title,icon:f.icon||void 0},s[9]=P,s[10]=g,s[11]=$):$=s[11];const h=p.map($);let C;s[12]!==e.slug?(C=Qe.selectedRegistry(e.slug),s[12]=e.slug,s[13]=C):C=s[13];const[k,v]=Ye(C,ht);let z;s[14]!==k?(z=f=>f.id===k,s[14]=k,s[15]=z):z=s[15];const x=p.find(z)?.id||p[0]?.id||"",y=x===g&&P?.storePrivateOnly===!0;let u;s[16]!==e.id?(u=Me(e.id),s[16]=e.id,s[17]=u):u=s[17];let T;s[18]!==u?(T=[u],s[18]=u,s[19]=T):T=s[19];const L=T;let F;s[20]===Symbol.for("react.memo_cache_sentinel")?(F=[Be()],s[20]=F):F=s[20];const _=F;let K;s[21]!==d.create||s[22]!==v?(K=async f=>{const Z=await d.create.mutateAsync(f);v(Z.id)},s[21]=d.create,s[22]=v,s[23]=K):K=s[23];const E=K,G=new Set(p.map(pt)),H=L.filter(f=>f.id&&!G.has(f.id)),W=_.filter(f=>f.id&&!G.has(f.id));if(i){let f;return s[24]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{}),s[24]=f):f=s[24],f}let D;s[25]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(X.Header.Left,{children:t.jsx($e,{children:t.jsx(ke,{children:t.jsx(ze,{children:t.jsx(Le,{children:"Store"})})})})}),s[25]=D):D=s[25];let B;s[26]!==E?(B=async f=>E(f),s[26]=E,s[27]=B):B=s[27];let A;s[28]!==H||s[29]!==x||s[30]!==h||s[31]!==v||s[32]!==B?(A=t.jsxs(X.Header,{children:[D,t.jsx(X.Header.Right,{children:t.jsx(ft,{wellKnownRegistries:H,registries:h,value:x,onValueChange:v,onAddWellKnown:B,placeholder:"Select store..."})})]}),s[28]=H,s[29]=x,s[30]=h,s[31]=v,s[32]=B,s[33]=A):A=s[33];let V;s[34]!==x||s[35]!==h?(V=f=>{const{error:Z,resetError:le}=f;return t.jsx(gt,{error:Z,onRetry:le,registryName:h.find(ee=>ee.id===x)?.name??"registry"})},s[34]=x,s[35]=h,s[36]=V):V=s[36];let O;s[37]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),s[37]=O):O=s[37];let M;s[38]!==W||s[39]!==x||s[40]!==v||s[41]!==y?(M=t.jsx(U.Suspense,{fallback:O,children:x?t.jsx(ut,{registryId:x,storePrivateOnly:y}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(xt,{registries:W,onConnected:f=>{v(f)}})})}),s[38]=W,s[39]=x,s[40]=v,s[41]=y,s[42]=M):M=s[42];let q;s[43]!==V||s[44]!==M?(q=t.jsx(X.Content,{children:t.jsx(Re,{fallback:V,children:M})}),s[43]=V,s[44]=M,s[45]=q):q=s[45];let J;return s[46]!==A||s[47]!==q?(J=t.jsxs(X,{children:[A,q]}),s[46]=A,s[47]=q,s[48]=J):J=s[48],J}function pt(s){return s.id}function ht(s){return s??""}export{ss as default};
|
package/dist/client/assets/{plugin-empty-state-yRJgz3Tr.js → plugin-empty-state-9L7esDde.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,j as t,aD as n}from"./index-
|
|
1
|
+
import{c as a,j as t,aD as n}from"./index-zTmRWZBl.js";function c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[t.jsx(n,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No storage connected"}),t.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:"Connect an S3-compatible storage service to browse and manage files."})]}),s[0]=e):e=s[0],e}export{c as default};
|
package/dist/client/assets/{plugin-empty-state-BA7ocyXk.js → plugin-empty-state-DiQvKRhi.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as t}from"./index-
|
|
1
|
+
import{c as s,j as t}from"./index-zTmRWZBl.js";import{e as r}from"./Dataflow03-C_auGuZw.js";function a(){const o=s.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[t.jsx(r,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No workflows connected"}),t.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:"Connect a workflow provider to create and manage automated workflows with multiple steps and integrations."})]}),o[0]=e):e=o[0],e}export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,j as s,r as w}from"./index-
|
|
1
|
+
import{c as S,j as s,r as w}from"./index-zTmRWZBl.js";import{i as R}from"./Check-xOBqZzmv.js";import{t as _}from"./ChevronDown-cFwq8_1y.js";import{e as y}from"./Dataflow03-C_auGuZw.js";function E(x){const e=S.c(32),{connections:l,selectedConnectionId:r,onConnectionChange:N}=x,[n,z]=w.useState(!1),C=w.useRef(null);let p;if(e[0]!==l||e[1]!==r){let t;e[3]!==r?(t=u=>u.id===r,e[3]=r,e[4]=t):t=e[4],p=l.find(t),e[0]=l,e[1]=r,e[2]=p}else p=e[2];const i=p;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t=>{C.current?.contains(t.relatedTarget)||z(!1)},e[5]=j):j=e[5];const k=j;if(l.length===1){let t;e[6]!==i?(t=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[6]=i,e[7]=t):t=e[7];const u=i?.title||"Workflows";let f;e[8]!==u?(f=s.jsx("span",{children:u}),e[8]=u,e[9]=f):f=e[9];let h;return e[10]!==t||e[11]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t,f]}),e[10]=t,e[11]=f,e[12]=h):h=e[12],h}let o;e[13]!==n?(o=()=>z(!n),e[13]=n,e[14]=o):o=e[14];let c;e[15]!==i?(c=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[15]=i,e[16]=c):c=e[16];const v=i?.title||"Select provider";let a;e[17]!==v?(a=s.jsx("span",{children:v}),e[17]=v,e[18]=a):a=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(_,{size:14}),e[19]=b):b=e[19];let d;e[20]!==o||e[21]!==c||e[22]!==a?(d=s.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-accent transition-colors",children:[c,a,b]}),e[20]=o,e[21]=c,e[22]=a,e[23]=d):d=e[23];let m;e[24]!==l||e[25]!==n||e[26]!==N||e[27]!==r?(m=n&&s.jsx("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-48 rounded-md border border-border bg-popover p-1 shadow-md",children:l.map(t=>s.jsxs("button",{type:"button",onClick:()=>{N(t.id),z(!1)},className:"flex items-center gap-2 w-full px-2 py-1.5 text-sm rounded-sm hover:bg-accent transition-colors",children:[t.icon?s.jsx("img",{src:t.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),s.jsx("span",{className:"flex-1 text-left",children:t.title}),t.id===r&&s.jsx(R,{size:14,className:"text-primary"})]},t.id))}),e[24]=l,e[25]=n,e[26]=N,e[27]=r,e[28]=m):m=e[28];let g;return e[29]!==d||e[30]!==m?(g=s.jsxs("div",{className:"relative",ref:C,onBlur:k,children:[d,m]}),e[29]=d,e[30]=m,e[31]=g):g=e[31],g}function H(x){const e=S.c(2);let l;return e[0]!==x?(l=s.jsx(E,{...x}),e[0]=x,e[1]=l):l=e[1],l}export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,j as s,r as S,aD as y}from"./index-
|
|
1
|
+
import{c as w,j as s,r as S,aD as y}from"./index-zTmRWZBl.js";import{i as _}from"./Check-xOBqZzmv.js";import{t as k}from"./ChevronDown-cFwq8_1y.js";function E(x){const e=w.c(32),{connections:l,selectedConnectionId:n,onConnectionChange:N}=x,[r,z]=S.useState(!1),C=S.useRef(null);let p;if(e[0]!==l||e[1]!==n){let t;e[3]!==n?(t=u=>u.id===n,e[3]=n,e[4]=t):t=e[4],p=l.find(t),e[0]=l,e[1]=n,e[2]=p}else p=e[2];const i=p;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t=>{C.current?.contains(t.relatedTarget)||z(!1)},e[5]=j):j=e[5];const R=j;if(l.length===1){let t;e[6]!==i?(t=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[6]=i,e[7]=t):t=e[7];const u=i?.title||"Storage";let f;e[8]!==u?(f=s.jsx("span",{children:u}),e[8]=u,e[9]=f):f=e[9];let h;return e[10]!==t||e[11]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t,f]}),e[10]=t,e[11]=f,e[12]=h):h=e[12],h}let o;e[13]!==r?(o=()=>z(!r),e[13]=r,e[14]=o):o=e[14];let a;e[15]!==i?(a=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[15]=i,e[16]=a):a=e[16];const v=i?.title||"Select storage";let c;e[17]!==v?(c=s.jsx("span",{children:v}),e[17]=v,e[18]=c):c=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(k,{size:14}),e[19]=b):b=e[19];let d;e[20]!==o||e[21]!==a||e[22]!==c?(d=s.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-accent transition-colors",children:[a,c,b]}),e[20]=o,e[21]=a,e[22]=c,e[23]=d):d=e[23];let m;e[24]!==l||e[25]!==r||e[26]!==N||e[27]!==n?(m=r&&s.jsx("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-48 rounded-md border border-border bg-popover p-1 shadow-md",children:l.map(t=>s.jsxs("button",{type:"button",onClick:()=>{N(t.id),z(!1)},className:"flex items-center gap-2 w-full px-2 py-1.5 text-sm rounded-sm hover:bg-accent transition-colors",children:[t.icon?s.jsx("img",{src:t.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),s.jsx("span",{className:"flex-1 text-left",children:t.title}),t.id===n&&s.jsx(_,{size:14,className:"text-primary"})]},t.id))}),e[24]=l,e[25]=r,e[26]=N,e[27]=n,e[28]=m):m=e[28];let g;return e[29]!==d||e[30]!==m?(g=s.jsxs("div",{className:"relative",ref:C,onBlur:R,children:[d,m]}),e[29]=d,e[30]=m,e[31]=g):g=e[31],g}function O(x){const e=w.c(2);let l;return e[0]!==x?(l=s.jsx(E,{...x}),e[0]=x,e[1]=l):l=e[1],l}export{O as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as r,j as i}from"./index-zTmRWZBl.js";import{P as m}from"./project-plugins-Bf4ZMkbc.js";import"./useQuery-C_yP5u2a.js";import"./useMutation-DxToDvqg.js";import"./constants-Bi0KgUSI.js";import"./switch-DbnN_OzY.js";import"./label-D93HnDXr.js";import"./Container-BzuFyXB-.js";import"./use-connection-D_z7DIgr.js";import"./use-collections-BM5qbXh2.js";import"./use-binding-CczCr_I6.js";import"./binder-CSUd_3kq.js";import"./use-install-from-registry-DJsrJBCB.js";import"./extract-connection-data-CuU1tc3b.js";import"./constants-C5K20DFA.js";import"./github-icon-Dp3wHhYE.js";import"./registry-utils-BAmZqs68.js";import"./generate-id-Dyweu44Y.js";import"./Loading01-e5vrz4Tg.js";import"./Plus-CAkBZRVl.js";import"./select-45R_TReG.js";import"./index-DNc2lZPL.js";import"./Check-xOBqZzmv.js";import"./ChevronDown-cFwq8_1y.js";function v(){const o=r.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(m,{}),o[0]=t):t=o[0],t}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,I as $,j as c,
|
|
1
|
+
import{r as i,I as $,j as c,aX as H,aH as L,M as A,J as _,T as g,aV as b,W as j,aW as z,aY as w,b1 as G,b2 as W,X as K,b3 as V,b4 as X,b5 as Z,aZ as J,a_ as U,b0 as Y,c as R,v as q}from"./index-zTmRWZBl.js";var C="Popover",[E]=K(C,[w]),P=w(),[B,d]=E(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[u,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(H,{...p,children:c.jsx(B,{scope:e,contentId:L(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Q=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(b,{...s,...r,ref:e})});Q.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(S,o),s=P(o),a=A(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":k(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(b,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=E(O,{forceMount:void 0}),M=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=d(O,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(j,{present:o||s.open,children:c.jsx(z,{asChild:!0,container:n,children:r})})})};M.displayName=O;var v="PopoverContent",D=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=d(v,t.__scopePopover);return c.jsx(j,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});D.displayName=v;var te=V("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(null),n=A(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return G(a)},[]),c.jsx(W,{as:te,allowPinchZoom:!0,children:c.jsx(T,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,u=p.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:h,...x}=t,f=d(v,o),m=P(o);return X(),c.jsx(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(J,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(U,{"data-state":k(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),I="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(I,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=I;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(Y,{...n,...r,ref:e})});ce.displayName=ae;function k(t){return t?"open":"closed"}var ie=N,pe=y,le=M,ue=D;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let u;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(u=c.jsx(le,{children:c.jsx(ue,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=u):u=e[11],u}export{ge as P,fe as a,ve as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,e as N,j as i,r as I,E as _,u as P}from"./index-
|
|
1
|
+
import{c as x,e as N,j as i,r as I,E as _,u as P}from"./index-zTmRWZBl.js";import{u as C}from"./use-connection-D_z7DIgr.js";import{u as M}from"./constants-Bi0KgUSI.js";import{u as R}from"./use-mcp-tools-CXYzi3AR.js";import{M as $}from"./mcp-app-renderer-C2Ylvbme.js";import{g as b,M as h}from"./types-D02NXJjh.js";import"./use-collections-BM5qbXh2.js";import"./useMutation-DxToDvqg.js";import"./useQuery-C_yP5u2a.js";import"./use-mcp-resources-F-AJdNv-.js";const j={};function y(t){const e=x.c(10),{client:o,resourceURI:m,tool:a}=t;let n;e[0]!==o||e[1]!==a.name?(n={client:o,toolName:a.name,toolArguments:j},e[0]=o,e[1]=a.name,e[2]=n):n=e[2];const{data:l}=R(n),c=a;let s;e[3]!==c?(s={tool:c},e[3]=c,e[4]=s):s=e[4];let f;return e[5]!==o||e[6]!==m||e[7]!==s||e[8]!==l?(f=i.jsx($,{resourceURI:m,toolInfo:s,toolInput:j,toolResult:l,displayMode:"fullscreen",minHeight:h.fullscreen.minHeight,maxHeight:h.fullscreen.maxHeight,client:o,className:"h-full"}),e[5]=o,e[6]=m,e[7]=s,e[8]=l,e[9]=f):f=e[9],f}function v(t){const e=x.c(16),{connectionId:o,toolName:m}=t,{org:a}=P();let n;e[0]!==o||e[1]!==a.id?(n={connectionId:o,orgId:a.id},e[0]=o,e[1]=a.id,e[2]=n):n=e[2];const l=M(n),c=C(o),s=decodeURIComponent(m);let f,d;if(e[3]!==c?.tools||e[4]!==s){let r;e[7]!==s?(r=g=>g.name===s,e[7]=s,e[8]=r):r=e[8],d=(c?.tools??[]).find(r),f=d?._meta?b(d._meta):void 0,e[3]=c?.tools,e[4]=s,e[5]=f,e[6]=d}else f=e[5],d=e[6];const u=f;if(!c){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx("p",{className:"text-sm text-muted-foreground",children:"Connection not found"})}),e[9]=r):r=e[9],r}if(!d||!u){let r;return e[10]!==s?(r=i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',s,'" not found or has no UI']})}),e[10]=s,e[11]=r):r=e[11],r}let p;return e[12]!==l||e[13]!==u||e[14]!==d?(p=i.jsx(y,{client:l,resourceURI:u,tool:d}),e[12]=l,e[13]=u,e[14]=d,e[15]=p):p=e[15],p}function D(){const t=x.c(8);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/$project/apps/$connectionId/$toolName"},t[0]=e):e=t[0];const{connectionId:o,toolName:m}=N(e),a=`${o}:${m}`;let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[i.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),i.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),t[1]=n):n=t[1];let l;t[2]!==o||t[3]!==m?(l=i.jsx(I.Suspense,{fallback:n,children:i.jsx(v,{connectionId:o,toolName:m})}),t[2]=o,t[3]=m,t[4]=l):l=t[4];let c;return t[5]!==a||t[6]!==l?(c=i.jsx(_,{fallback:void 0,children:l},a),t[5]=a,t[6]=l,t[7]=c):c=t[7],c}export{D as default};
|