@decocms/mesh 2.143.3 → 2.143.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.
Files changed (203) hide show
  1. package/dist/client/assets/{AlertCircle-BR3059Ra.js → AlertCircle-Ccl-05Dq.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-D6YOHMqw.js → AlignLeft-C3D9KrDH.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-DDlqKJ-S.js → ArrowDown-BwyMmnDN.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-t-vB9MT7.js → ArrowLeft-CUhX3M1p.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-pNOU9o93.js → ArrowUp-D8OfF8a6.js} +1 -1
  6. package/dist/client/assets/{Check-ClJhvPmY.js → Check-CL49s9Bl.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-CR2V9UJy.js → CheckCircle-CczOjLOv.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-DXXdDMPm.js → CheckDone01-Bazee0Qi.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-C7WAx7rC.js → CheckVerified02-DN2fPT6J.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-BHOwQQZv.js → ChevronDown-CG1cCCiw.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-DlW4FWVW.js → ChevronLeft-CPg8TV_i.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-KEWw9HPO.js → ChevronRight-CnhF2HVf.js} +1 -1
  13. package/dist/client/assets/{Clock-f4lbfgcK.js → Clock-BWIthDHM.js} +1 -1
  14. package/dist/client/assets/{Code01-BVFeVfAL.js → Code01-8Az-svuR.js} +1 -1
  15. package/dist/client/assets/{Container-BqGyigAu.js → Container-dYTfUn5d.js} +1 -1
  16. package/dist/client/assets/{Copy01-C-Hvu1tl.js → Copy01-DKWM3-Cd.js} +1 -1
  17. package/dist/client/assets/{Dataflow03-BRXJqFYl.js → Dataflow03-CNb2zbZ8.js} +1 -1
  18. package/dist/client/assets/{DotsHorizontal-DbQkghS6.js → DotsHorizontal-hXW5Cv8L.js} +1 -1
  19. package/dist/client/assets/{DotsVertical-DFWu2YsS.js → DotsVertical-xAnpD2pG.js} +1 -1
  20. package/dist/client/assets/{Download01-DT_boBnJ.js → Download01-NNOJ9R2b.js} +1 -1
  21. package/dist/client/assets/{Edit01-DTbVxRtP.js → Edit01-DiGe0rMV.js} +1 -1
  22. package/dist/client/assets/{Edit05-C0nNBwFA.js → Edit05-BuVquSjX.js} +1 -1
  23. package/dist/client/assets/{Eye-COsKnV5C.js → Eye-HqhkOMp3.js} +1 -1
  24. package/dist/client/assets/{File02-BDg6cP6u.js → File02-X9ps0Zs8.js} +1 -1
  25. package/dist/client/assets/{File06-CP7XMfnS.js → File06-C8dYLdqv.js} +1 -1
  26. package/dist/client/assets/{FilterLines-6Ij1DUyD.js → FilterLines-UBiNUU8r.js} +1 -1
  27. package/dist/client/assets/{Globe01-tZ4o-liq.js → Globe01-RO2Gn7PD.js} +1 -1
  28. package/dist/client/assets/{Globe02-BrnlGqYv.js → Globe02-CBOwiEXi.js} +1 -1
  29. package/dist/client/assets/{Grid01-Dm0jbv5c.js → Grid01-BHDXELtU.js} +1 -1
  30. package/dist/client/assets/{Hash02-CS7awzZF.js → Hash02-VdsssHtn.js} +1 -1
  31. package/dist/client/assets/{Home02-BUh3pxhR.js → Home02-96V9Lf9T.js} +1 -1
  32. package/dist/client/assets/{Image01-bRb_7euF.js → Image01-DAO-V3TF.js} +1 -1
  33. package/dist/client/assets/{Inbox01-B9EpUe7f.js → Inbox01-tTi_MD7z.js} +1 -1
  34. package/dist/client/assets/{InfoCircle-fcAUS1xv.js → InfoCircle-BX3XOOJv.js} +1 -1
  35. package/dist/client/assets/{Key01-DBD3ATUK.js → Key01-DLHTEvjZ.js} +1 -1
  36. package/dist/client/assets/{LayersTwo01-CzxdPt0p.js → LayersTwo01-Df6fe09S.js} +1 -1
  37. package/dist/client/assets/{LayoutLeft-CCielsmq.js → LayoutLeft-B7Cs0g9K.js} +1 -1
  38. package/dist/client/assets/{Link01-BAhMDx10.js → Link01-BLyso0VD.js} +1 -1
  39. package/dist/client/assets/{LinkExternal01-CDYmJEN8.js → LinkExternal01-B5GfxP8s.js} +1 -1
  40. package/dist/client/assets/{List-BRl_GCHp.js → List-CrYUBNgo.js} +1 -1
  41. package/dist/client/assets/{Loading01-CtA9-tDH.js → Loading01-BqZPjLUL.js} +1 -1
  42. package/dist/client/assets/{Lock01-BVe8MacU.js → Lock01-BTWWa9r0.js} +1 -1
  43. package/dist/client/assets/{Play-Dmnw6X6w.js → Play-CFnqQDnk.js} +1 -1
  44. package/dist/client/assets/{Plus-Cvxc3jau.js → Plus-7bvNbAWU.js} +1 -1
  45. package/dist/client/assets/{RefreshCcw01-Bml0zlc9.js → RefreshCcw01-CmkuGAui.js} +1 -1
  46. package/dist/client/assets/{Save01-DkXEsLsk.js → Save01-DYohoVjX.js} +1 -1
  47. package/dist/client/assets/{SearchMd-DotYGgz5.js → SearchMd-D3THAFfu.js} +1 -1
  48. package/dist/client/assets/{Settings01-DIbrkL7p.js → Settings01-ByHBd9Gx.js} +1 -1
  49. package/dist/client/assets/{Shield01-Cqs2gYad.js → Shield01-KGO6Hrh7.js} +1 -1
  50. package/dist/client/assets/{Terminal-Dedcbcni.js → Terminal-Du_d-WkV.js} +1 -1
  51. package/dist/client/assets/{Trash01-D0hPiCml.js → Trash01-BLyORFpw.js} +1 -1
  52. package/dist/client/assets/{Upload01-Cw_ttk9p.js → Upload01-DZ5K2bBY.js} +1 -1
  53. package/dist/client/assets/{Users03-deIEsbur.js → Users03--OJjjeuM.js} +1 -1
  54. package/dist/client/assets/{X-Dm3fL9fk.js → X-FdOprCfp.js} +1 -1
  55. package/dist/client/assets/{XCircle-D-hWQJw9.js → XCircle-LOOTsunp.js} +1 -1
  56. package/dist/client/assets/{XClose-BwH1fe7G.js → XClose-u2UUtB9I.js} +1 -1
  57. package/dist/client/assets/{Zap-i5tQXmWv.js → Zap-Lc2Y2CDE.js} +1 -1
  58. package/dist/client/assets/{agent-connections-preview-ViVPFlxj.js → agent-connections-preview-B5e0VJ2m.js} +1 -1
  59. package/dist/client/assets/{agent-detail-CJzFrvTT.js → agent-detail-Cv9JkmI-.js} +1 -1
  60. package/dist/client/assets/{agents-Cl8pS3vq.js → agents-CFQZRthi.js} +1 -1
  61. package/dist/client/assets/{alert-dialog-By6iC7_M.js → alert-dialog-1fpppHI8.js} +2 -2
  62. package/dist/client/assets/{auth-catchall-GgO11f__.js → auth-catchall-DPeYVIno.js} +1 -1
  63. package/dist/client/assets/{avatar-BxVo2yFR.js → avatar-BTrmVIKy.js} +1 -1
  64. package/dist/client/assets/{badge-CMXfb2XW.js → badge-1CDBdXDs.js} +1 -1
  65. package/dist/client/assets/{binder-DFi_8p30.js → binder-DyZqr2VO.js} +1 -1
  66. package/dist/client/assets/{breadcrumb-BXO08sFv.js → breadcrumb-CuW3e8GL.js} +1 -1
  67. package/dist/client/assets/{card-DAkj47ZF.js → card-CQC-kucr.js} +1 -1
  68. package/dist/client/assets/{chart-CUgEHItS.js → chart-CKRhlwQ9.js} +1 -1
  69. package/dist/client/assets/{checkbox-DE1CMc8C.js → checkbox-BNXC0Egg.js} +1 -1
  70. package/dist/client/assets/{circle-alert-krPbBjSc.js → circle-alert-B_aD8DpT.js} +1 -1
  71. package/dist/client/assets/{collapsible-Dby4NbXA.js → collapsible-DkKt_ZpX.js} +1 -1
  72. package/dist/client/assets/{collection-detail-Bgo18dTk.js → collection-detail-C67r1wir.js} +1 -1
  73. package/dist/client/assets/{collection-display-button-EC2hea_z.js → collection-display-button-D82Yvie2.js} +1 -1
  74. package/dist/client/assets/{collection-search-ClPINPjD.js → collection-search-CMCsOI1D.js} +1 -1
  75. package/dist/client/assets/{collection-tab-s7VB1DOH.js → collection-tab-BLToEStc.js} +1 -1
  76. package/dist/client/assets/{collection-table-wrapper-ChczrX21.js → collection-table-wrapper-C_-CT2vX.js} +1 -1
  77. package/dist/client/assets/{collection-tabs-DN0J_Ddx.js → collection-tabs-B9hSx86s.js} +1 -1
  78. package/dist/client/assets/{command-CA_2AkRc.js → command-CQCs3Ms6.js} +1 -1
  79. package/dist/client/assets/{connect-Dq5usKY-.js → connect-DCTnd6xa.js} +1 -1
  80. package/dist/client/assets/{connection-card-DhOpe5G-.js → connection-card-lE__nXnV.js} +1 -1
  81. package/dist/client/assets/{connection-detail-DM-CCdwX.js → connection-detail-BW8mHQ-m.js} +1 -1
  82. package/dist/client/assets/{connection-status-sPhTm2Hr.js → connection-status-B6ZdmaZJ.js} +1 -1
  83. package/dist/client/assets/{connections-B094U3JZ.js → connections-CZ_j1zNj.js} +1 -1
  84. package/dist/client/assets/constants-15nJD0dE.js +1 -0
  85. package/dist/client/assets/{constants-Cq1TdBA4.js → constants-DTB7OETZ.js} +1 -1
  86. package/dist/client/assets/{create-organization-dialog-IWzYZszL.js → create-organization-dialog-D-msdq5b.js} +1 -1
  87. package/dist/client/assets/{create-project-dialog-kgg9Ftu7.js → create-project-dialog-DQY4udF3.js} +1 -1
  88. package/dist/client/assets/{danger-D5Z_M8gK.js → danger-CAMh7qoE.js} +1 -1
  89. package/dist/client/assets/{danger-zone-CElz6TtM.js → danger-zone-BCCYWUxB.js} +1 -1
  90. package/dist/client/assets/{decopilot-events-BfFvrYDy.js → decopilot-events-BdfKGU-p.js} +1 -1
  91. package/dist/client/assets/{dependencies-BUdG3FFE.js → dependencies-BpjNLhD4.js} +1 -1
  92. package/dist/client/assets/{dialog-3pxprUUk.js → dialog-DrNXXANr.js} +1 -1
  93. package/dist/client/assets/{dropdown-menu-CVo-HJ_Q.js → dropdown-menu-CP9xXuMG.js} +1 -1
  94. package/dist/client/assets/{dynamic-plugin-layout-D9_XcBJ0.js → dynamic-plugin-layout-Def-kZSN.js} +1 -1
  95. package/dist/client/assets/{editable-task-title-GaRO0aI_.js → editable-task-title-DQrMji4A.js} +1 -1
  96. package/dist/client/assets/{empty-state-CcZzEHsP.js → empty-state-DSGwk3an.js} +1 -1
  97. package/dist/client/assets/{env-vars-editor-CGs2R7Ei.js → env-vars-editor-B6VSLbQL.js} +1 -1
  98. package/dist/client/assets/{extract-connection-data-E5seNV7G.js → extract-connection-data-DYcMkv2m.js} +1 -1
  99. package/dist/client/assets/{file-browser-BbszhcdA.js → file-browser-CWjdwEWg.js} +2 -2
  100. package/dist/client/assets/{form-CeHCHe8Y.js → form-SmHfTUUT.js} +1 -1
  101. package/dist/client/assets/{general-Cp1Mzi9g.js → general-BlOP3Q3t.js} +1 -1
  102. package/dist/client/assets/{grid-view-Dc3xOOpu.js → grid-view-VfTqhXab.js} +1 -1
  103. package/dist/client/assets/{home-ClA1Tf1i.js → home-aYkpquLU.js} +1 -1
  104. package/dist/client/assets/{icon-picker-DPhjM5ej.js → icon-picker-YEtDBh-5.js} +1 -1
  105. package/dist/client/assets/{index-CIVkaaps.js → index-6ZQexL02.js} +1 -1
  106. package/dist/client/assets/{index-B2buVfji.js → index-Bs1tVvf6.js} +1 -1
  107. package/dist/client/assets/{index-Bu-Joaxw.js → index-Bw54vx9E.js} +1 -1
  108. package/dist/client/assets/index-CZIA6eaQ.js +1 -0
  109. package/dist/client/assets/{index-B9J4D_1U.js → index-DBJYDzwg.js} +1 -1
  110. package/dist/client/assets/{index-D7rX3EH-.js → index-DGEKiqrK.js} +1 -1
  111. package/dist/client/assets/{index-K8ioX2fo.js → index-DXHsu9Wg.js} +7 -7
  112. package/dist/client/assets/{index-C3lH1any.js → index-Ds-_NbMX.js} +1 -1
  113. package/dist/client/assets/{index-Dcn2qiju.js → index-U8yTDca7.js} +3 -3
  114. package/dist/client/assets/{infiniteQueryObserver-BljCNYPi.js → infiniteQueryObserver-BcF4FR_y.js} +1 -1
  115. package/dist/client/assets/{input-DkvkPTdf.js → input-DOiflCWe.js} +1 -1
  116. package/dist/client/assets/{integration-icon-B_L34ulo.js → integration-icon-CQ1n5ppJ.js} +1 -1
  117. package/dist/client/assets/{label-BtvSVf_Y.js → label-Bf0lesTu.js} +1 -1
  118. package/dist/client/assets/{layout-Ojc5t0xU.js → layout-BsmlqtT6.js} +1 -1
  119. package/dist/client/assets/{layout-Dq_XGiDs.js → layout-CCrpUJR-.js} +1 -1
  120. package/dist/client/assets/{localstorage-keys-buUlASyU.js → localstorage-keys-BqiTN_31.js} +1 -1
  121. package/dist/client/assets/{login-BS_NMiUI.js → login-Bw0U_mkA.js} +1 -1
  122. package/dist/client/assets/{markdown-D0qTmQtB.js → markdown-BLHQULU9.js} +1 -1
  123. package/dist/client/assets/{mcp-app-renderer-Cv_Z5lHv.js → mcp-app-renderer-BS-Ag69A.js} +1 -1
  124. package/dist/client/assets/{mcp-oauth-SHQpNItd.js → mcp-oauth-BZbYNfTy.js} +1 -1
  125. package/dist/client/assets/{mcp-server-card-D-XB05gl.js → mcp-server-card-BbneXk_2.js} +1 -1
  126. package/dist/client/assets/{mcp-server-detail-lA-qKnon.js → mcp-server-detail-CHYYq31G.js} +2 -2
  127. package/dist/client/assets/{members-BgkYdI4K.js → members-BFxBs6op.js} +1 -1
  128. package/dist/client/assets/{monaco-editor-DJ3kt9Wv.js → monaco-editor-DZE_HSKJ.js} +4 -4
  129. package/dist/client/assets/{monitoring-BhYmIrXq.js → monitoring-CEuVu8Ai.js} +1 -1
  130. package/dist/client/assets/{monitoring-dashboard-edit-BNv3ms0E.js → monitoring-dashboard-edit-BiyXZmtp.js} +1 -1
  131. package/dist/client/assets/{monitoring-dashboard-view-4axtO2qX.js → monitoring-dashboard-view-DF3d2X_Y.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-CgSoGHSA.js → oauth-callback-Dt6mWFAg.js} +1 -1
  133. package/dist/client/assets/{page-DRdSbFxn.js → page-BqE30jCu.js} +1 -1
  134. package/dist/client/assets/{page-FBOyriB_.js → page-D9dnxkRQ.js} +1 -1
  135. package/dist/client/assets/{plugin-empty-state-CTa4Iow-.js → plugin-empty-state-C67kXuaF.js} +1 -1
  136. package/dist/client/assets/{plugin-empty-state-3fp9Lf-f.js → plugin-empty-state-bhXUgcwa.js} +1 -1
  137. package/dist/client/assets/{plugin-header-DWMD7rj5.js → plugin-header-5eWmIm25.js} +1 -1
  138. package/dist/client/assets/{plugin-header-Db9acS4e.js → plugin-header-C-xypLyf.js} +1 -1
  139. package/dist/client/assets/plugins-BjhY2Qje.js +1 -0
  140. package/dist/client/assets/{popover-n9Qghu45.js → popover-Pw_L4k8Y.js} +1 -1
  141. package/dist/client/assets/{project-app-view-CFM3yFHC.js → project-app-view-BW38FL9o.js} +1 -1
  142. package/dist/client/assets/{project-layout-B_tS7AmE.js → project-layout-BIQkJJUX.js} +1 -1
  143. package/dist/client/assets/{project-plugins-Ma6Rn_yu.js → project-plugins-BfafEUXv.js} +1 -1
  144. package/dist/client/assets/{projects-list-R-M_Sn8M.js → projects-list-B-axQEoP.js} +1 -1
  145. package/dist/client/assets/{readme-viewer-DNW4MUBo.js → readme-viewer-Bm1h5FhJ.js} +1 -1
  146. package/dist/client/assets/{registry-layout-DPsYL2hP.js → registry-layout-DHAsAA93.js} +1 -1
  147. package/dist/client/assets/{registry-utils-C6LaPKYe.js → registry-utils-Ipd3DHuA.js} +1 -1
  148. package/dist/client/assets/{reports-layout-CXBKSahY.js → reports-layout-fCaf7xU6.js} +1 -1
  149. package/dist/client/assets/{reset-password-CsMs90Sf.js → reset-password-B_qN5YjT.js} +1 -1
  150. package/dist/client/assets/{resizable-Dk8LZtlw.js → resizable-Dtc8MoLt.js} +1 -1
  151. package/dist/client/assets/{save-actions-CoTSXYsr.js → save-actions-7MZlkO4P.js} +1 -1
  152. package/dist/client/assets/{scroll-area-BDTh5S1z.js → scroll-area-BSokb6cO.js} +1 -1
  153. package/dist/client/assets/{select-fzurR700.js → select-lvFASMQQ.js} +1 -1
  154. package/dist/client/assets/{shell-layout-PwCl3QrV.js → shell-layout-Ds92dpz0.js} +2 -2
  155. package/dist/client/assets/{sidebar-settings-DYR3w5sS.js → sidebar-settings-dT4FGqqx.js} +1 -1
  156. package/dist/client/assets/{skeleton-D1zJxvsT.js → skeleton-C5Q1NNSv.js} +1 -1
  157. package/dist/client/assets/{spinner-DzTiCGIK.js → spinner-BoeFGggs.js} +1 -1
  158. package/dist/client/assets/{store-invite-6EBFpJkB.js → store-invite-_KBhUa6b.js} +1 -1
  159. package/dist/client/assets/{switch-DnGKFcZI.js → switch-BRh8AXBy.js} +1 -1
  160. package/dist/client/assets/{table-D40QcJca.js → table-CyqFhKGg.js} +1 -1
  161. package/dist/client/assets/{tabs-BidmgeLd.js → tabs-C0RPT9IP.js} +1 -1
  162. package/dist/client/assets/tasks-DzONGK6e.js +1 -0
  163. package/dist/client/assets/{tasks-panel-Dk2ct60W.js → tasks-panel-B4G-0MoM.js} +1 -1
  164. package/dist/client/assets/{textarea-B3Hn6QLM.js → textarea-y7fRUN_h.js} +1 -1
  165. package/dist/client/assets/{time-range-picker-DbV9_5RC.js → time-range-picker-hi_wbgB6.js} +1 -1
  166. package/dist/client/assets/{toggle-group-DD-h7tXS.js → toggle-group-BK6rXcKT.js} +1 -1
  167. package/dist/client/assets/{tools-list-DlXmV7xa.js → tools-list-BZ1s8Sk9.js} +1 -1
  168. package/dist/client/assets/{tooltip-DSJTNt9R.js → tooltip-Az0qqeXN.js} +1 -1
  169. package/dist/client/assets/{topbar-portal-DKeIIUHu.js → topbar-portal-B7zb_xj5.js} +1 -1
  170. package/dist/client/assets/{types-B--slpLM.js → types-BmXorGle.js} +1 -1
  171. package/dist/client/assets/{use-binding-e1t-N8NG.js → use-binding-CCIfD8Jg.js} +1 -1
  172. package/dist/client/assets/{use-collections-BgYlT5Uf.js → use-collections-CN2TJbh7.js} +1 -1
  173. package/dist/client/assets/{use-connection-DxvPS7VD.js → use-connection-iQvUBAn8.js} +1 -1
  174. package/dist/client/assets/{use-copy-4w85Sx6w.js → use-copy-BfyNuRvE.js} +1 -1
  175. package/dist/client/assets/{use-create-virtual-mcp-CdQ_C5PD.js → use-create-virtual-mcp-D-sLder4.js} +1 -1
  176. package/dist/client/assets/{use-install-from-registry-K1RTtLDR.js → use-install-from-registry-CnwkwHx1.js} +1 -1
  177. package/dist/client/assets/{use-list-state-BNrTz1YS.js → use-list-state-BIZVgxIL.js} +1 -1
  178. package/dist/client/assets/{use-llm-C1KXk6GO.js → use-llm-B5bn7xMr.js} +1 -1
  179. package/dist/client/assets/{use-mcp-resources-Crnx2QAL.js → use-mcp-resources-CXWxuBPP.js} +1 -1
  180. package/dist/client/assets/{use-mcp-tools-DSj0blv8.js → use-mcp-tools-BfrLEufs.js} +1 -1
  181. package/dist/client/assets/{use-members-X9f_swSr.js → use-members-BJ2_yKY1.js} +1 -1
  182. package/dist/client/assets/{use-mobile-dRUz0YRa.js → use-mobile-Bfs8r2XW.js} +1 -1
  183. package/dist/client/assets/{use-project-BUCBmJsd.js → use-project-Dj6YFeCq.js} +1 -1
  184. package/dist/client/assets/{use-settings-modal-CxHdGl3s.js → use-settings-modal-effHjhFx.js} +1 -1
  185. package/dist/client/assets/{use-view-mode-CzIxLiKN.js → use-view-mode-DqFqGCRy.js} +1 -1
  186. package/dist/client/assets/{use-virtual-mcp-BLv3elFl.js → use-virtual-mcp-D4i_Ew-J.js} +1 -1
  187. package/dist/client/assets/useInfiniteQuery-DxhwxsTV.js +1 -0
  188. package/dist/client/assets/{useMutation-5mKR3fo9.js → useMutation-DytEPkqh.js} +1 -1
  189. package/dist/client/assets/useQuery-5ZDNJc1s.js +1 -0
  190. package/dist/client/assets/useSuspenseInfiniteQuery-WOl5_lsV.js +1 -0
  191. package/dist/client/assets/{user-BJ_81ODE.js → user-DTHzV6e9.js} +1 -1
  192. package/dist/client/assets/{workflow-DffOrDg8.js → workflow-BYzMmqdk.js} +1 -1
  193. package/dist/client/index.html +1 -1
  194. package/dist/server/cli.js +174 -174
  195. package/dist/server/server.js +157 -157
  196. package/package.json +1 -1
  197. package/dist/client/assets/constants-CND0satp.js +0 -1
  198. package/dist/client/assets/index-DM83m7dB.js +0 -1
  199. package/dist/client/assets/plugins-dCeBw8CT.js +0 -1
  200. package/dist/client/assets/tasks-CZwt2qg-.js +0 -1
  201. package/dist/client/assets/useInfiniteQuery-vnkx3Xdh.js +0 -1
  202. package/dist/client/assets/useQuery-BPReO9_Y.js +0 -1
  203. package/dist/client/assets/useSuspenseInfiniteQuery-C-MiED0F.js +0 -1
@@ -1 +1 @@
1
- import{c as Y,r as U,u as ne,K as oe,c0 as Re,j as s,v as ae,B as X,b as me,a1 as ue,a2 as fe,O as xe,d as Pe,as as $e,c1 as ie,E as ke,au as ze}from"./index-Dcn2qiju.js";import{P as se}from"./index-B9J4D_1U.js";import{B as Le,a as Fe,b as Ee,c as Oe}from"./breadcrumb-BXO08sFv.js";import{i as ge}from"./FilterLines-6Ij1DUyD.js";import{n as pe}from"./Inbox01-B9EpUe7f.js";import{i as le}from"./Loading01-CtA9-tDH.js";import{i as he}from"./SearchMd-DotYGgz5.js";import{u as je}from"./useQuery-BPReO9_Y.js";import{u as Ke}from"./useInfiniteQuery-vnkx3Xdh.js";import{a as _e,f as Ae,b as Me}from"./registry-utils-C6LaPKYe.js";import{u as ye,W as Be,a as De,f as Ge,b as We}from"./constants-Cq1TdBA4.js";import{u as Ve,a as ve,b as qe}from"./use-connection-DxvPS7VD.js";import{s as Ue}from"./slugify-CEUa2lfQ.js";import{C as He,E as Je}from"./collection-search-ClPINPjD.js";import{M as ce}from"./mcp-server-card-D-XB05gl.js";import{I as Qe}from"./input-DkvkPTdf.js";import{a as be,b as Ne,P as Ce}from"./popover-n9Qghu45.js";import{i as Se}from"./Check-ClJhvPmY.js";import{t as we}from"./ChevronDown-BHOwQQZv.js";import{s as re}from"./XClose-BwH1fe7G.js";import{s as Ye}from"./Plus-Cvxc3jau.js";import{u as Ze}from"./use-binding-e1t-N8NG.js";import{L as Xe,u as et}from"./localstorage-keys-buUlASyU.js";import"./tooltip-DSJTNt9R.js";import"./index-C3lH1any.js";import"./ChevronRight-KEWw9HPO.js";import"./infiniteQueryObserver-BljCNYPi.js";import"./use-collections-BgYlT5Uf.js";import"./useMutation-5mKR3fo9.js";import"./CheckVerified02-C7WAx7rC.js";import"./Globe02-BrnlGqYv.js";import"./Lock01-BVe8MacU.js";import"./Terminal-Dedcbcni.js";import"./card-DAkj47ZF.js";import"./integration-icon-B_L34ulo.js";import"./Container-BqGyigAu.js";import"./github-icon-Dp3wHhYE.js";import"./binder-DFi_8p30.js";function tt(t,e){const r=Y.c(4),[l,m]=U.useState(t),n=U.useRef(null),i=U.useRef(!0);let d,a;return r[0]!==e||r[1]!==t?(d=()=>{if(i.current){i.current=!1;return}return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{m(t)},e),()=>{n.current&&clearTimeout(n.current)}},a=[t,e],r[0]=e,r[1]=t,r[2]=d,r[3]=a):(d=r[2],a=r[3]),U.useEffect(d,a),l}function st(t){const e=Y.c(14),r=U.useRef(null),l=`scroll-position:${t}`,m=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 d;e[2]!==l?(d=()=>{if(m.current===l)return;const f=sessionStorage.getItem(l);if(f&&r.current){const k=Number.parseInt(f,10);r.current.scrollTop=k}m.current=l},e[2]=l,e[3]=d):d=e[3];const a=d;let u;e[4]!==a||e[5]!==l?(u=()=>{m.current!==l&&a()},e[4]=a,e[5]=l,e[6]=u):u=e[6];const I=u;let o;e[7]!==a||e[8]!==l?(o=f=>{r.current=f,f&&m.current!==l&&requestAnimationFrame(()=>{a()})},e[7]=a,e[8]=l,e[9]=o):o=e[9];const p=o;let c;return e[10]!==I||e[11]!==i||e[12]!==p?(c={scrollRef:p,saveScrollPosition:i,handleScroll:I},e[10]=I,e[11]=i,e[12]=p,e[13]=c):c=e[13],c}const rt=24;function lt(t){const e=Y.c(54),{registryId:r,listToolName:l,filtersToolName:m,search:n}=t,{org:i}=ne();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[0]=d):d=e[0];const[a,u]=U.useState(d);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=[],e[1]=I):I=e[1];const[o,p]=U.useState(I),c=r||null;let f;e[2]!==i.id||e[3]!==c?(f={connectionId:c,orgId:i.id},e[2]=i.id,e[3]=c,e[4]=f):f=e[4];const k=ye(f),T=!!m;let C;e[5]!==m||e[6]!==r?(C=oe.toolCall(r,m||"no-filters","{}"),e[5]=m,e[6]=r,e[7]=C):C=e[7];let h;e[8]!==k||e[9]!==m?(h=async()=>{if(!m)return{tags:[],categories:[]};const _=await k.callTool({name:m,arguments:{}});return _.structuredContent??_},e[8]=k,e[9]=m,e[10]=h):h=e[10];let F;e[11]!==C||e[12]!==h?(F={queryKey:C,queryFn:h,staleTime:36e5,retry:2},e[11]=C,e[12]=h,e[13]=F):F=e[13];const{data:S}=je(F);let j,b,$;if(e[14]!==l||e[15]!==r||e[16]!==n||e[17]!==o||e[18]!==a){const _=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;j={limit:rt,...a.length>0&&{tags:a},...o.length>0&&{categories:o},..._&&{where:_}},$=Ke,b=oe.toolCall(r,l,JSON.stringify(j)),e[14]=l,e[15]=r,e[16]=n,e[17]=o,e[18]=a,e[19]=j,e[20]=b,e[21]=$}else j=e[19],b=e[20],$=e[21];let R;e[22]!==k||e[23]!==j||e[24]!==l?(R=async _=>{const{pageParam:Z}=_,ee=Z?{...j,cursor:Z}:j,v=await k.callTool({name:l,arguments:ee});return v.structuredContent??v},e[22]=k,e[23]=j,e[24]=l,e[25]=R):R=e[25];let P;e[26]!==R||e[27]!==b?(P={queryKey:b,queryFn:R,initialPageParam:void 0,getNextPageParam:nt,staleTime:36e5,placeholderData:Re,retry:2},e[26]=R,e[27]=b,e[28]=P):P=e[28];const{data:N,fetchNextPage:w,hasNextPage:g,isFetchingNextPage:x,isFetching:y,isLoading:z,error:L}=$(P);let K;e:{if(!N?.pages||N.pages.length===0){K=null;break e}const _=N.pages[0];if(typeof _=="object"&&_!==null&&"totalCount"in _&&typeof _.totalCount=="number"){K=_.totalCount;break e}K=null}const A=K,O=N?.pages;let W;e[29]!==O?(W=_e(O),e[29]=O,e[30]=W):W=e[30];const J=W;let B;e[31]!==n||e[32]!==o.length||e[33]!==a.length?(B=a.length>0||o.length>0||!!n?.trim(),e[31]=n,e[32]=o.length,e[33]=a.length,e[34]=B):B=e[34];const V=B,q=y&&!x&&!z&&V;let D;e[35]!==w||e[36]!==g||e[37]!==x?(D=()=>{g&&!x&&w()},e[35]=w,e[36]=g,e[37]=x,e[38]=D):D=e[38];const H=D,E=g??!1,M=T?S?.tags:void 0,G=T?S?.categories:void 0;let Q;return e[39]!==V||e[40]!==y||e[41]!==x||e[42]!==q||e[43]!==z||e[44]!==J||e[45]!==L||e[46]!==H||e[47]!==o||e[48]!==a||e[49]!==E||e[50]!==M||e[51]!==G||e[52]!==A?(Q={items:J,totalCount:A,hasMore:E,isLoadingMore:x,isFiltering:q,isInitialLoading:z,isFetching:y,error:L,loadMore:H,availableTags:M,availableCategories:G,selectedTags:a,selectedCategories:o,setSelectedTags:u,setSelectedCategories:p,hasActiveFilters:V},e[39]=V,e[40]=y,e[41]=x,e[42]=q,e[43]=z,e[44]=J,e[45]=L,e[46]=H,e[47]=o,e[48]=a,e[49]=E,e[50]=M,e[51]=G,e[52]=A,e[53]=Q):Q=e[53],Q}function nt(t){if(typeof t=="object"&&t!==null){const e=t.nextCursor||t.cursor;if(e)return e}}function it(t,e){return[...t].sort((r,l)=>l.count-r.count).slice(0,e)}function de(t){const e=Y.c(52),{label:r,items:l,selectedItems:m,onToggle:n,onClear:i}=t,[d,a]=U.useState(""),[u,I]=U.useState(!1);let o,p,c,f,k,T,C,h,F,S,j;if(e[0]!==l||e[1]!==r||e[2]!==n||e[3]!==u||e[4]!==d||e[5]!==m){const w=[...d?l.filter(O=>O.value.toLowerCase().includes(d.toLowerCase())):l].sort(ot);c=m.length,p=be,F=u,S=I;let g;e[17]!==r?(g=s.jsx("span",{children:r}),e[17]=r,e[18]=g):g=e[18];let x;e[19]!==c?(x=c>0&&s.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:c}),e[19]=c,e[20]=x):x=e[20];let y;e[21]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(we,{size:14,className:"opacity-50"}),e[21]=y):y=e[21],e[22]!==x||e[23]!==g?(j=s.jsx(Ne,{asChild:!0,children:s.jsxs(X,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[g,x,y]})}),e[22]=x,e[23]=g,e[24]=j):j=e[24],o=Ce,T="w-64 p-0",C="start";let z;e[25]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(he,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=z):z=e[25];let L;e[26]!==r?(L=r.toLowerCase(),e[26]=r,e[27]=L):L=e[27];const K=`Search ${L}...`;let A;e[28]===Symbol.for("react.memo_cache_sentinel")?(A=O=>a(O.target.value),e[28]=A):A=e[28],e[29]!==d||e[30]!==K?(h=s.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:s.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[z,s.jsx(Qe,{type:"text",placeholder:K,value:d,onChange:A,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]=d,e[30]=K,e[31]=h):h=e[31],f="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",k=w.length===0?s.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):w.map(O=>{const W=m.includes(O.value);return s.jsxs("button",{onClick:()=>n(O.value),className:ae("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",W?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[s.jsxs("span",{className:"truncate flex items-center gap-2",children:[W&&s.jsx(Se,{size:16,className:"text-muted-foreground shrink-0"}),O.value]}),s.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:O.count})]},O.value)}),e[0]=l,e[1]=r,e[2]=n,e[3]=u,e[4]=d,e[5]=m,e[6]=o,e[7]=p,e[8]=c,e[9]=f,e[10]=k,e[11]=T,e[12]=C,e[13]=h,e[14]=F,e[15]=S,e[16]=j}else o=e[6],p=e[7],c=e[8],f=e[9],k=e[10],T=e[11],C=e[12],h=e[13],F=e[14],S=e[15],j=e[16];let b;e[32]!==f||e[33]!==k?(b=s.jsx("div",{className:f,children:k}),e[32]=f,e[33]=k,e[34]=b):b=e[34];let $;e[35]!==r||e[36]!==i||e[37]!==c?($=c>0&&s.jsx("div",{className:"p-2 border-t border-border",children:s.jsxs(X,{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]=c,e[38]=$):$=e[38];let R;e[39]!==o||e[40]!==$||e[41]!==T||e[42]!==C||e[43]!==h||e[44]!==b?(R=s.jsxs(o,{className:T,align:C,children:[h,b,$]}),e[39]=o,e[40]=$,e[41]=T,e[42]=C,e[43]=h,e[44]=b,e[45]=R):R=e[45];let P;return e[46]!==p||e[47]!==R||e[48]!==F||e[49]!==S||e[50]!==j?(P=s.jsxs(p,{open:F,onOpenChange:S,children:[j,R]}),e[46]=p,e[47]=R,e[48]=F,e[49]=S,e[50]=j,e[51]=P):P=e[51],P}function ot(t,e){return e.count-t.count}function at(t){const e=Y.c(67),{availableTags:r,availableCategories:l,selectedTags:m,selectedCategories:n,onTagChange:i,onCategoryChange:d}=t,a=r&&r.length>0||l&&l.length>0,u=m.length>0||n.length>0;if(!a)return null;let I;e[0]!==i||e[1]!==m?(I=g=>{m.includes(g)?i(m.filter(x=>x!==g)):i([...m,g])},e[0]=i,e[1]=m,e[2]=I):I=e[2];const o=I;let p;e[3]!==d||e[4]!==n?(p=g=>{n.includes(g)?d(n.filter(x=>x!==g)):d([...n,g])},e[3]=d,e[4]=n,e[5]=p):p=e[5];const c=p;let f;e[6]!==d||e[7]!==i?(f=()=>{i([]),d([])},e[6]=d,e[7]=i,e[8]=f):f=e[8];const k=f;let T,C,h,F,S,j,b;if(e[9]!==l||e[10]!==r||e[11]!==d||e[12]!==i||e[13]!==n||e[14]!==m||e[15]!==c||e[16]!==o){const g=l?it(l,6):[];T=n,C=m,b=new Set(g.map(ct)),S="flex items-center border-b border-border";let x;e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:s.jsx(ge,{size:16})}),e[24]=x):x=e[24];let y;e[25]!==l||e[26]!==d||e[27]!==n||e[28]!==c?(y=l&&l.length>0&&s.jsx(de,{label:"Categories",items:l,selectedItems:n,onToggle:c,onClear:()=>d([])}),e[25]=l,e[26]=d,e[27]=n,e[28]=c,e[29]=y):y=e[29];let z;e[30]!==r||e[31]!==i||e[32]!==m||e[33]!==o?(z=r&&r.length>0&&s.jsx(de,{label:"Tags",items:r,selectedItems:m,onToggle:o,onClear:()=>i([])}),e[30]=r,e[31]=i,e[32]=m,e[33]=o,e[34]=z):z=e[34],e[35]!==z||e[36]!==y?(j=s.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[x,y,z]}),e[35]=z,e[36]=y,e[37]=j):j=e[37],h="flex items-center gap-3 flex-wrap px-5 py-3";let L;e[38]!==n||e[39]!==c?(L=K=>{const A=n.includes(K.value);return s.jsxs("div",{onClick:()=>c(K.value),className:ae("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",A?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[s.jsx("span",{children:K.value}),A&&s.jsx("span",{onClick:O=>{O.stopPropagation(),c(K.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},K.value)},e[38]=n,e[39]=c,e[40]=L):L=e[40],F=g.map(L),e[9]=l,e[10]=r,e[11]=d,e[12]=i,e[13]=n,e[14]=m,e[15]=c,e[16]=o,e[17]=T,e[18]=C,e[19]=h,e[20]=F,e[21]=S,e[22]=j,e[23]=b}else T=e[17],C=e[18],h=e[19],F=e[20],S=e[21],j=e[22],b=e[23];let $;if(e[41]!==T||e[42]!==c||e[43]!==b){let g;e[45]!==b?(g=y=>!b.has(y),e[45]=b,e[46]=g):g=e[46];let x;e[47]!==c?(x=y=>s.jsxs("div",{onClick:()=>c(y),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:[s.jsx("span",{children:y}),s.jsx("span",{onClick:z=>{z.stopPropagation(),c(y)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`cat-${y}`),e[47]=c,e[48]=x):x=e[48],$=T.filter(g).map(x),e[41]=T,e[42]=c,e[43]=b,e[44]=$}else $=e[44];let R;if(e[49]!==C||e[50]!==o){let g;e[52]!==o?(g=x=>s.jsxs("div",{onClick:()=>o(x),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:[s.jsx("span",{children:x}),s.jsx("span",{onClick:y=>{y.stopPropagation(),o(x)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`tag-${x}`),e[52]=o,e[53]=g):g=e[53],R=C.map(g),e[49]=C,e[50]=o,e[51]=R}else R=e[51];let P;e[54]!==k||e[55]!==u?(P=u&&s.jsxs(X,{variant:"ghost",size:"sm",onClick:k,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[s.jsx(re,{size:14}),"Clear all"]}),e[54]=k,e[55]=u,e[56]=P):P=e[56];let N;e[57]!==P||e[58]!==h||e[59]!==F||e[60]!==$||e[61]!==R?(N=s.jsxs("div",{className:h,children:[F,$,R,P]}),e[57]=P,e[58]=h,e[59]=F,e[60]=$,e[61]=R,e[62]=N):N=e[62];let w;return e[63]!==N||e[64]!==S||e[65]!==j?(w=s.jsxs("div",{className:S,children:[j,N]}),e[63]=N,e[64]=S,e[65]=j,e[66]=w):w=e[66],w}function ct(t){return t.value}function dt(t,e){if(!e)return t;const r=e.toLowerCase();return t.filter(l=>(l.name||l.title||"").toLowerCase().includes(r)||(l.description||l.server?.description||"").toLowerCase().includes(r))}function mt(t){return t.verified===!0||t._meta?.["mcp.mesh"]?.verified===!0}function ut(t){const e=Y.c(55),{registryId:r,listToolName:l,filtersToolName:m,storePrivateOnly:n}=t,[i,d]=U.useState(""),a=tt(i,300),u=me(),{org:I}=ne(),{scrollRef:o,saveScrollPosition:p,handleScroll:c}=st(`store-discovery:${r}`);let f;e[0]!==a||e[1]!==m||e[2]!==l||e[3]!==r?(f={registryId:r,listToolName:l,filtersToolName:m,search:a},e[0]=a,e[1]=m,e[2]=l,e[3]=r,e[4]=f):f=e[4];const{items:k,hasMore:T,isLoadingMore:C,isInitialLoading:h,isFetching:F,error:S,loadMore:j,availableTags:b,availableCategories:$,selectedTags:R,selectedCategories:P,setSelectedTags:N,setSelectedCategories:w,hasActiveFilters:g}=lt(f);let x,y,z,L;if(e[5]!==a||e[6]!==F||e[7]!==h||e[8]!==k||e[9]!==i||e[10]!==n){const E=i?dt(k,i):k;L=n?E.filter(xt):E,x=(i!==a||F)&&!h&&!!i,z=L.filter(mt),y=L.filter(M=>!z.find(G=>G.id===M.id)),e[5]=a,e[6]=F,e[7]=h,e[8]=k,e[9]=i,e[10]=n,e[11]=x,e[12]=y,e[13]=z,e[14]=L}else x=e[11],y=e[12],z=e[13],L=e[14];const K=y;let A;e[15]!==u||e[16]!==I.slug||e[17]!==r||e[18]!==p?(A=E=>{p();const M=Ue(E.name||E.title||E.server?.title||""),G=typeof E.id=="string"&&E.id.includes("/"),Q=typeof E.server?.name=="string"&&E.server.name.includes("/"),_=G&&!Q?E.id:E.server?.name||E.id||"";u({to:"/$org/$project/store/$appName",params:{org:I.slug,project:xe,appName:M},search:{registryId:r,serverName:_}})},e[15]=u,e[16]=I.slug,e[17]=r,e[18]=p,e[19]=A):A=e[19];const O=A;let W;e[20]!==c||e[21]!==T||e[22]!==C||e[23]!==j?(W=E=>{if(c(),!T||C)return;const M=E.currentTarget;M.scrollHeight-M.scrollTop-M.clientHeight<200&&j()},e[20]=c,e[21]=T,e[22]=C,e[23]=j,e[24]=W):W=e[24];const J=W;let B;e[25]!==x||e[26]!==i?(B=s.jsx(He,{value:i,onChange:d,placeholder:"Search for an MCP Server...",isSearching:x}),e[25]=x,e[26]=i,e[27]=B):B=e[27];let V;e[28]!==$||e[29]!==b||e[30]!==P||e[31]!==R||e[32]!==w||e[33]!==N?(V=s.jsx(at,{availableTags:b,availableCategories:$,selectedTags:R,selectedCategories:P,onTagChange:N,onCategoryChange:w}),e[28]=$,e[29]=b,e[30]=P,e[31]=R,e[32]=w,e[33]=N,e[34]=V):V=e[34];let q;e[35]!==K||e[36]!==S||e[37]!==O||e[38]!==g||e[39]!==T||e[40]!==h||e[41]!==C||e[42]!==x||e[43]!==i||e[44]!==z||e[45]!==L?(q=s.jsx("div",{className:"p-5",children:s.jsx("div",{children:S&&!h?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-4",children:[s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(ue,{className:"size-8 text-destructive"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Registry unavailable"}),s.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."}),S.message&&s.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:S.message})]}),s.jsxs(X,{variant:"outline",size:"sm",onClick:ft,children:[s.jsx(fe,{className:"size-4"}),"Try again"]})]}):h?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):L.length===0&&!g?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(pe,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),s.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):L.length===0&&g&&!i?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ge,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):i&&L.length===0&&!x?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(he,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):s.jsxs("div",{className:"flex flex-col gap-8",children:[x&&L.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),z.length>0&&s.jsx(ce,{items:z,title:"Verified",onItemClick:O}),K.length>0&&s.jsx(ce,{items:K,title:z.length>0?"All":"",onItemClick:O}),T&&C&&s.jsx("div",{className:"flex justify-center py-8",children:s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(le,{size:20,className:"animate-spin"}),s.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[35]=K,e[36]=S,e[37]=O,e[38]=g,e[39]=T,e[40]=h,e[41]=C,e[42]=x,e[43]=i,e[44]=z,e[45]=L,e[46]=q):q=e[46];let D;e[47]!==J||e[48]!==o||e[49]!==q?(D=s.jsx("div",{ref:o,className:"flex-1 overflow-y-auto",onScroll:J,children:q}),e[47]=J,e[48]=o,e[49]=q,e[50]=D):D=e[50];let H;return e[51]!==B||e[52]!==V||e[53]!==D?(H=s.jsxs("div",{className:"flex flex-col h-full",children:[B,V,D]}),e[51]=B,e[52]=V,e[53]=D,e[54]=H):H=e[54],H}function ft(){return window.location.reload()}function xt(t){return t.is_public!==!0}function gt(t){const e=Y.c(11),{registryId:r,storePrivateOnly:l}=t,m=Ve(r),n=m?.tools;let i;e[0]!==n?(i=Ae(n),e[0]=n,e[1]=i):i=e[1];const d=i;if(!d){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(pe,{className:"size-8 text-muted-foreground"})}),e[2]=c):c=e[2];let f;return e[3]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[c,s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Registry not available"}),s.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]=f):f=e[3],f}const a=m?.tools;let u;e[4]!==a?(u=Me(a),e[4]=a,e[5]=u):u=e[5];const o=u||void 0;let p;return e[6]!==d||e[7]!==r||e[8]!==l||e[9]!==o?(p=s.jsx(ut,{registryId:r,listToolName:d,filtersToolName:o,storePrivateOnly:l}),e[6]=d,e[7]=r,e[8]=l,e[9]=o,e[10]=p):p=e[10],p}function pt(t){const e=Y.c(43),{registries:r,value:l,onValueChange:m,onAddWellKnown:n,wellKnownRegistries:i,placeholder:d}=t,a=d===void 0?"Select a registry...":d,[u,I]=U.useState(!1);let o,p,c,f,k,T,C,h;if(e[0]!==u||e[1]!==a||e[2]!==r||e[3]!==l){let N;e[12]!==l?(N=g=>g.id===l,e[12]=l,e[13]=N):N=e[13];const w=r.find(N);p=be,C=u,h=I,o=Ne,T=!0,c="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(f=ae("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]=f):f=e[14],k=w?s.jsxs("span",{className:"flex items-center gap-2",children:[w.icon?s.jsx("img",{src:w.icon,alt:w.name,className:"w-4 h-4 rounded"}):s.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:w.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:w.name})]}):s.jsx("span",{className:"text-muted-foreground",children:a}),e[0]=u,e[1]=a,e[2]=r,e[3]=l,e[4]=o,e[5]=p,e[6]=c,e[7]=f,e[8]=k,e[9]=T,e[10]=C,e[11]=h}else o=e[4],p=e[5],c=e[6],f=e[7],k=e[8],T=e[9],C=e[10],h=e[11];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(we,{className:"size-4 opacity-50"}),e[15]=F):F=e[15];let S;e[16]!==c||e[17]!==f||e[18]!==k?(S=s.jsxs("button",{type:c,className:f,children:[k,F]}),e[16]=c,e[17]=f,e[18]=k,e[19]=S):S=e[19];let j;e[20]!==o||e[21]!==T||e[22]!==S?(j=s.jsx(o,{asChild:T,children:S}),e[20]=o,e[21]=T,e[22]=S,e[23]=j):j=e[23];let b;if(e[24]!==m||e[25]!==r||e[26]!==l){let N;e[28]!==m||e[29]!==l?(N=w=>s.jsxs("button",{type:"button",onClick:()=>{m(w.id??w.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:[s.jsxs("div",{className:"flex items-center gap-2",children:[w.icon?s.jsx("img",{src:w.icon,alt:w.name,className:"w-4 h-4 rounded"}):s.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:w.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:w.name})]}),l===(w.id??w.name)&&s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:s.jsx(Se,{className:"size-4"})})]},w.id??w.name),e[28]=m,e[29]=l,e[30]=N):N=e[30],b=r.map(N),e[24]=m,e[25]=r,e[26]=l,e[27]=b}else b=e[27];let $;e[31]!==n||e[32]!==i?($=i.length>0&&s.jsxs("div",{className:"border-t border-border pt-1 mt-1",children:[s.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),i.map(N=>s.jsxs("button",{type:"button",onClick:()=>{n(N),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:[s.jsxs("div",{className:"flex items-center gap-2",children:[N.icon?s.jsx("img",{src:N.icon,alt:N.title,className:"w-4 h-4 rounded"}):s.jsx("span",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:N.title.slice(0,1).toUpperCase()}),s.jsx("span",{className:"flex-1",children:N.title})]}),s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:s.jsx(Ye,{size:16})})]},N.id??N.title))]}),e[31]=n,e[32]=i,e[33]=$):$=e[33];let R;e[34]!==b||e[35]!==$?(R=s.jsxs(Ce,{align:"end",className:"w-auto min-w-[200px] p-1",children:[b,$]}),e[34]=b,e[35]=$,e[36]=R):R=e[36];let P;return e[37]!==p||e[38]!==j||e[39]!==R||e[40]!==C||e[41]!==h?(P=s.jsxs(p,{open:C,onOpenChange:h,children:[j,R]}),e[37]=p,e[38]=j,e[39]=R,e[40]=C,e[41]=h,e[42]=P):P=e[42],P}function ht({registries:t,onConnected:e}){const r=ve(),{org:{slug:l}}=ne(),{data:m}=Pe.useSession(),n=me(),[i,d]=U.useState(!1),a=t[0],u=async()=>{if(!(!a||!m?.user?.id)){d(!0);try{const o=await r.create.mutateAsync(a);e?.(o.id)}finally{d(!1)}}},I=()=>{n({to:"/$org/$project/mcps",params:{org:l,project:xe},search:{action:"create"}})};return s.jsx(Je,{image:s.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:s.jsxs(s.Fragment,{children:[s.jsxs(X,{variant:"outline",onClick:u,disabled:i||!a,children:[a?.icon&&s.jsx("img",{src:a.icon,alt:"",className:"size-4"}),i?"Installing...":"Install Registry"]}),s.jsx(X,{variant:"outline",onClick:I,children:"Custom Connection"})]})})}function jt(t){const e=Y.c(15),{error:r,onRetry:l,registryName:m}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(ue,{className:"h-6 w-6 text-destructive"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("h3",{className:"text-lg font-medium",children:"Unable to load store"}),e[1]=i):i=e[1];let d;e[2]!==m?(d=s.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",s.jsx("strong",{children:m})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=m,e[3]=d):d=e[3];let a;e[4]!==r?(a=r?.message&&s.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 u;e[6]!==d||e[7]!==a?(u=s.jsxs("div",{className:"space-y-2",children:[i,d,a]}),e[6]=d,e[7]=a,e[8]=u):u=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(fe,{className:"size-4"}),e[9]=I):I=e[9];let o;e[10]!==l?(o=s.jsxs(X,{variant:"outline",size:"sm",onClick:l,children:[I,"Try again"]}),e[10]=l,e[11]=o):o=e[11];let p;return e[12]!==u||e[13]!==o?(p=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[n,u,o]}),e[12]=u,e[13]=o,e[14]=p):p=e[14],p}function ns(){const t=Y.c(53),{org:e,project:r}=ne(),l=qe(),m=ve(),n=$e(),i=n.location.pathname.includes("/store/")&&n.location.pathname.split("/").length>3,d=Ze(l);let a;t[0]!==e.id?(a=Be.SELF(e.id),t[0]=e.id,t[1]=a):a=t[1];const u=a,I=r.enabledPlugins,o=I==null||I.includes(ie);let p;t[2]!==u?(p=(v,te)=>v.id===u?1:te.id===u?-1:0,t[2]=u,t[3]=p):p=t[3];const c=d.filter(v=>v.id!==u?!0:o).sort(p);let f;t[4]!==u?(f=v=>v.id===u,t[4]=u,t[5]=f):f=t[5];const k=c.some(f);let T;t[6]!==e.id?(T={connectionId:De,orgId:e.id},t[6]=e.id,t[7]=T):T=t[7];const C=ye(T);let h;t[8]!==r.id||t[9]!==C?(h=async()=>{const v=await C.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:ie}});return v.structuredContent??v},t[8]=r.id,t[9]=C,t[10]=h):h=t[10];const{data:F}=je({queryKey:oe.projectPluginConfig(r.id??"",ie),queryFn:h,enabled:k&&!!r.id,staleTime:6e4}),S=F?.config?.settings;let j;t[11]!==S||t[12]!==u?(j=v=>v.id===u&&S?{id:v.id,name:S.registryName||v.title,icon:S.registryIcon||v.icon||void 0}:{id:v.id,name:v.title,icon:v.icon||void 0},t[11]=S,t[12]=u,t[13]=j):j=t[13];const b=c.map(j);let $;t[14]!==e.slug?($=Xe.selectedRegistry(e.slug),t[14]=e.slug,t[15]=$):$=t[15];const[R,P]=et($,vt);let N;t[16]!==R?(N=v=>v.id===R,t[16]=R,t[17]=N):N=t[17];const w=c.find(N);let g;t[18]!==u?(g=v=>v.id!==u,t[18]=u,t[19]=g):g=t[19];const x=c.find(g),y=w?.id||x?.id||c[0]?.id||"",z=y===u&&S?.storePrivateOnly===!0;let L;t[20]!==e.id?(L=Ge(e.id),t[20]=e.id,t[21]=L):L=t[21];let K;t[22]!==L?(K=[L],t[22]=L,t[23]=K):K=t[23];const A=K;let O;t[24]===Symbol.for("react.memo_cache_sentinel")?(O=[We()],t[24]=O):O=t[24];const W=O;let J;t[25]!==m.create||t[26]!==P?(J=async v=>{const te=await m.create.mutateAsync(v);P(te.id)},t[25]=m.create,t[26]=P,t[27]=J):J=t[27];const B=J,V=new Set(c.map(yt)),q=A.filter(v=>v.id&&!V.has(v.id)),D=W.filter(v=>v.id&&!V.has(v.id));if(i){let v;return t[28]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(ze,{}),t[28]=v):v=t[28],v}let H;t[29]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(se.Header.Left,{children:s.jsx(Le,{children:s.jsx(Fe,{children:s.jsx(Ee,{children:s.jsx(Oe,{children:"Store"})})})})}),t[29]=H):H=t[29];let E;t[30]!==B?(E=async v=>B(v),t[30]=B,t[31]=E):E=t[31];let M;t[32]!==q||t[33]!==y||t[34]!==b||t[35]!==P||t[36]!==E?(M=s.jsxs(se.Header,{children:[H,s.jsx(se.Header.Right,{children:s.jsx(pt,{wellKnownRegistries:q,registries:b,value:y,onValueChange:P,onAddWellKnown:E,placeholder:"Select store..."})})]}),t[32]=q,t[33]=y,t[34]=b,t[35]=P,t[36]=E,t[37]=M):M=t[37];let G;t[38]!==y||t[39]!==b?(G=v=>{const{error:te,resetError:Ie}=v;return s.jsx(jt,{error:te,onRetry:Ie,registryName:b.find(Te=>Te.id===y)?.name??"registry"})},t[38]=y,t[39]=b,t[40]=G):G=t[40];let Q;t[41]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),t[41]=Q):Q=t[41];let _;t[42]!==D||t[43]!==y||t[44]!==P||t[45]!==z?(_=s.jsx(U.Suspense,{fallback:Q,children:y?s.jsx(gt,{registryId:y,storePrivateOnly:z}):s.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:s.jsx(ht,{registries:D,onConnected:v=>{P(v)}})})}),t[42]=D,t[43]=y,t[44]=P,t[45]=z,t[46]=_):_=t[46];let Z;t[47]!==G||t[48]!==_?(Z=s.jsx(se.Content,{children:s.jsx(ke,{fallback:G,children:_})}),t[47]=G,t[48]=_,t[49]=Z):Z=t[49];let ee;return t[50]!==M||t[51]!==Z?(ee=s.jsxs(se,{children:[M,Z]}),t[50]=M,t[51]=Z,t[52]=ee):ee=t[52],ee}function yt(t){return t.id}function vt(t){return t??""}export{ns as default};
1
+ import{c as Y,r as U,u as ne,K as oe,b$ as Re,j as s,v as ae,B as X,b as me,a1 as ue,a2 as fe,O as xe,d as Pe,as as $e,c0 as ie,E as ke,au as ze}from"./index-U8yTDca7.js";import{P as se}from"./index-DBJYDzwg.js";import{B as Le,a as Fe,b as Ee,c as Oe}from"./breadcrumb-CuW3e8GL.js";import{i as ge}from"./FilterLines-UBiNUU8r.js";import{n as pe}from"./Inbox01-tTi_MD7z.js";import{i as le}from"./Loading01-BqZPjLUL.js";import{i as he}from"./SearchMd-D3THAFfu.js";import{u as je}from"./useQuery-5ZDNJc1s.js";import{u as Ke}from"./useInfiniteQuery-DxhwxsTV.js";import{a as _e,f as Ae,b as Me}from"./registry-utils-Ipd3DHuA.js";import{u as ye,W as Be,a as De,f as Ge,b as We}from"./constants-DTB7OETZ.js";import{u as Ve,a as ve,b as qe}from"./use-connection-iQvUBAn8.js";import{s as Ue}from"./slugify-CEUa2lfQ.js";import{C as He,E as Je}from"./collection-search-CMCsOI1D.js";import{M as ce}from"./mcp-server-card-BbneXk_2.js";import{I as Qe}from"./input-DOiflCWe.js";import{a as be,b as Ne,P as Ce}from"./popover-Pw_L4k8Y.js";import{i as Se}from"./Check-CL49s9Bl.js";import{t as we}from"./ChevronDown-CG1cCCiw.js";import{s as re}from"./XClose-u2UUtB9I.js";import{s as Ye}from"./Plus-7bvNbAWU.js";import{u as Ze}from"./use-binding-CCIfD8Jg.js";import{L as Xe,u as et}from"./localstorage-keys-BqiTN_31.js";import"./tooltip-Az0qqeXN.js";import"./index-Ds-_NbMX.js";import"./ChevronRight-CnhF2HVf.js";import"./infiniteQueryObserver-BcF4FR_y.js";import"./use-collections-CN2TJbh7.js";import"./useMutation-DytEPkqh.js";import"./CheckVerified02-DN2fPT6J.js";import"./Globe02-CBOwiEXi.js";import"./Lock01-BTWWa9r0.js";import"./Terminal-Du_d-WkV.js";import"./card-CQC-kucr.js";import"./integration-icon-CQ1n5ppJ.js";import"./Container-dYTfUn5d.js";import"./github-icon-Dp3wHhYE.js";import"./binder-DyZqr2VO.js";function tt(t,e){const r=Y.c(4),[l,m]=U.useState(t),n=U.useRef(null),i=U.useRef(!0);let d,a;return r[0]!==e||r[1]!==t?(d=()=>{if(i.current){i.current=!1;return}return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{m(t)},e),()=>{n.current&&clearTimeout(n.current)}},a=[t,e],r[0]=e,r[1]=t,r[2]=d,r[3]=a):(d=r[2],a=r[3]),U.useEffect(d,a),l}function st(t){const e=Y.c(14),r=U.useRef(null),l=`scroll-position:${t}`,m=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 d;e[2]!==l?(d=()=>{if(m.current===l)return;const f=sessionStorage.getItem(l);if(f&&r.current){const k=Number.parseInt(f,10);r.current.scrollTop=k}m.current=l},e[2]=l,e[3]=d):d=e[3];const a=d;let u;e[4]!==a||e[5]!==l?(u=()=>{m.current!==l&&a()},e[4]=a,e[5]=l,e[6]=u):u=e[6];const I=u;let o;e[7]!==a||e[8]!==l?(o=f=>{r.current=f,f&&m.current!==l&&requestAnimationFrame(()=>{a()})},e[7]=a,e[8]=l,e[9]=o):o=e[9];const p=o;let c;return e[10]!==I||e[11]!==i||e[12]!==p?(c={scrollRef:p,saveScrollPosition:i,handleScroll:I},e[10]=I,e[11]=i,e[12]=p,e[13]=c):c=e[13],c}const rt=24;function lt(t){const e=Y.c(54),{registryId:r,listToolName:l,filtersToolName:m,search:n}=t,{org:i}=ne();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[0]=d):d=e[0];const[a,u]=U.useState(d);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=[],e[1]=I):I=e[1];const[o,p]=U.useState(I),c=r||null;let f;e[2]!==i.id||e[3]!==c?(f={connectionId:c,orgId:i.id},e[2]=i.id,e[3]=c,e[4]=f):f=e[4];const k=ye(f),T=!!m;let C;e[5]!==m||e[6]!==r?(C=oe.toolCall(r,m||"no-filters","{}"),e[5]=m,e[6]=r,e[7]=C):C=e[7];let h;e[8]!==k||e[9]!==m?(h=async()=>{if(!m)return{tags:[],categories:[]};const _=await k.callTool({name:m,arguments:{}});return _.structuredContent??_},e[8]=k,e[9]=m,e[10]=h):h=e[10];let F;e[11]!==C||e[12]!==h?(F={queryKey:C,queryFn:h,staleTime:36e5,retry:2},e[11]=C,e[12]=h,e[13]=F):F=e[13];const{data:S}=je(F);let j,b,$;if(e[14]!==l||e[15]!==r||e[16]!==n||e[17]!==o||e[18]!==a){const _=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;j={limit:rt,...a.length>0&&{tags:a},...o.length>0&&{categories:o},..._&&{where:_}},$=Ke,b=oe.toolCall(r,l,JSON.stringify(j)),e[14]=l,e[15]=r,e[16]=n,e[17]=o,e[18]=a,e[19]=j,e[20]=b,e[21]=$}else j=e[19],b=e[20],$=e[21];let R;e[22]!==k||e[23]!==j||e[24]!==l?(R=async _=>{const{pageParam:Z}=_,ee=Z?{...j,cursor:Z}:j,v=await k.callTool({name:l,arguments:ee});return v.structuredContent??v},e[22]=k,e[23]=j,e[24]=l,e[25]=R):R=e[25];let P;e[26]!==R||e[27]!==b?(P={queryKey:b,queryFn:R,initialPageParam:void 0,getNextPageParam:nt,staleTime:36e5,placeholderData:Re,retry:2},e[26]=R,e[27]=b,e[28]=P):P=e[28];const{data:N,fetchNextPage:w,hasNextPage:g,isFetchingNextPage:x,isFetching:y,isLoading:z,error:L}=$(P);let K;e:{if(!N?.pages||N.pages.length===0){K=null;break e}const _=N.pages[0];if(typeof _=="object"&&_!==null&&"totalCount"in _&&typeof _.totalCount=="number"){K=_.totalCount;break e}K=null}const A=K,O=N?.pages;let W;e[29]!==O?(W=_e(O),e[29]=O,e[30]=W):W=e[30];const J=W;let B;e[31]!==n||e[32]!==o.length||e[33]!==a.length?(B=a.length>0||o.length>0||!!n?.trim(),e[31]=n,e[32]=o.length,e[33]=a.length,e[34]=B):B=e[34];const V=B,q=y&&!x&&!z&&V;let D;e[35]!==w||e[36]!==g||e[37]!==x?(D=()=>{g&&!x&&w()},e[35]=w,e[36]=g,e[37]=x,e[38]=D):D=e[38];const H=D,E=g??!1,M=T?S?.tags:void 0,G=T?S?.categories:void 0;let Q;return e[39]!==V||e[40]!==y||e[41]!==x||e[42]!==q||e[43]!==z||e[44]!==J||e[45]!==L||e[46]!==H||e[47]!==o||e[48]!==a||e[49]!==E||e[50]!==M||e[51]!==G||e[52]!==A?(Q={items:J,totalCount:A,hasMore:E,isLoadingMore:x,isFiltering:q,isInitialLoading:z,isFetching:y,error:L,loadMore:H,availableTags:M,availableCategories:G,selectedTags:a,selectedCategories:o,setSelectedTags:u,setSelectedCategories:p,hasActiveFilters:V},e[39]=V,e[40]=y,e[41]=x,e[42]=q,e[43]=z,e[44]=J,e[45]=L,e[46]=H,e[47]=o,e[48]=a,e[49]=E,e[50]=M,e[51]=G,e[52]=A,e[53]=Q):Q=e[53],Q}function nt(t){if(typeof t=="object"&&t!==null){const e=t.nextCursor||t.cursor;if(e)return e}}function it(t,e){return[...t].sort((r,l)=>l.count-r.count).slice(0,e)}function de(t){const e=Y.c(52),{label:r,items:l,selectedItems:m,onToggle:n,onClear:i}=t,[d,a]=U.useState(""),[u,I]=U.useState(!1);let o,p,c,f,k,T,C,h,F,S,j;if(e[0]!==l||e[1]!==r||e[2]!==n||e[3]!==u||e[4]!==d||e[5]!==m){const w=[...d?l.filter(O=>O.value.toLowerCase().includes(d.toLowerCase())):l].sort(ot);c=m.length,p=be,F=u,S=I;let g;e[17]!==r?(g=s.jsx("span",{children:r}),e[17]=r,e[18]=g):g=e[18];let x;e[19]!==c?(x=c>0&&s.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:c}),e[19]=c,e[20]=x):x=e[20];let y;e[21]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(we,{size:14,className:"opacity-50"}),e[21]=y):y=e[21],e[22]!==x||e[23]!==g?(j=s.jsx(Ne,{asChild:!0,children:s.jsxs(X,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[g,x,y]})}),e[22]=x,e[23]=g,e[24]=j):j=e[24],o=Ce,T="w-64 p-0",C="start";let z;e[25]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(he,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=z):z=e[25];let L;e[26]!==r?(L=r.toLowerCase(),e[26]=r,e[27]=L):L=e[27];const K=`Search ${L}...`;let A;e[28]===Symbol.for("react.memo_cache_sentinel")?(A=O=>a(O.target.value),e[28]=A):A=e[28],e[29]!==d||e[30]!==K?(h=s.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:s.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[z,s.jsx(Qe,{type:"text",placeholder:K,value:d,onChange:A,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]=d,e[30]=K,e[31]=h):h=e[31],f="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",k=w.length===0?s.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):w.map(O=>{const W=m.includes(O.value);return s.jsxs("button",{onClick:()=>n(O.value),className:ae("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",W?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[s.jsxs("span",{className:"truncate flex items-center gap-2",children:[W&&s.jsx(Se,{size:16,className:"text-muted-foreground shrink-0"}),O.value]}),s.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:O.count})]},O.value)}),e[0]=l,e[1]=r,e[2]=n,e[3]=u,e[4]=d,e[5]=m,e[6]=o,e[7]=p,e[8]=c,e[9]=f,e[10]=k,e[11]=T,e[12]=C,e[13]=h,e[14]=F,e[15]=S,e[16]=j}else o=e[6],p=e[7],c=e[8],f=e[9],k=e[10],T=e[11],C=e[12],h=e[13],F=e[14],S=e[15],j=e[16];let b;e[32]!==f||e[33]!==k?(b=s.jsx("div",{className:f,children:k}),e[32]=f,e[33]=k,e[34]=b):b=e[34];let $;e[35]!==r||e[36]!==i||e[37]!==c?($=c>0&&s.jsx("div",{className:"p-2 border-t border-border",children:s.jsxs(X,{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]=c,e[38]=$):$=e[38];let R;e[39]!==o||e[40]!==$||e[41]!==T||e[42]!==C||e[43]!==h||e[44]!==b?(R=s.jsxs(o,{className:T,align:C,children:[h,b,$]}),e[39]=o,e[40]=$,e[41]=T,e[42]=C,e[43]=h,e[44]=b,e[45]=R):R=e[45];let P;return e[46]!==p||e[47]!==R||e[48]!==F||e[49]!==S||e[50]!==j?(P=s.jsxs(p,{open:F,onOpenChange:S,children:[j,R]}),e[46]=p,e[47]=R,e[48]=F,e[49]=S,e[50]=j,e[51]=P):P=e[51],P}function ot(t,e){return e.count-t.count}function at(t){const e=Y.c(67),{availableTags:r,availableCategories:l,selectedTags:m,selectedCategories:n,onTagChange:i,onCategoryChange:d}=t,a=r&&r.length>0||l&&l.length>0,u=m.length>0||n.length>0;if(!a)return null;let I;e[0]!==i||e[1]!==m?(I=g=>{m.includes(g)?i(m.filter(x=>x!==g)):i([...m,g])},e[0]=i,e[1]=m,e[2]=I):I=e[2];const o=I;let p;e[3]!==d||e[4]!==n?(p=g=>{n.includes(g)?d(n.filter(x=>x!==g)):d([...n,g])},e[3]=d,e[4]=n,e[5]=p):p=e[5];const c=p;let f;e[6]!==d||e[7]!==i?(f=()=>{i([]),d([])},e[6]=d,e[7]=i,e[8]=f):f=e[8];const k=f;let T,C,h,F,S,j,b;if(e[9]!==l||e[10]!==r||e[11]!==d||e[12]!==i||e[13]!==n||e[14]!==m||e[15]!==c||e[16]!==o){const g=l?it(l,6):[];T=n,C=m,b=new Set(g.map(ct)),S="flex items-center border-b border-border";let x;e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:s.jsx(ge,{size:16})}),e[24]=x):x=e[24];let y;e[25]!==l||e[26]!==d||e[27]!==n||e[28]!==c?(y=l&&l.length>0&&s.jsx(de,{label:"Categories",items:l,selectedItems:n,onToggle:c,onClear:()=>d([])}),e[25]=l,e[26]=d,e[27]=n,e[28]=c,e[29]=y):y=e[29];let z;e[30]!==r||e[31]!==i||e[32]!==m||e[33]!==o?(z=r&&r.length>0&&s.jsx(de,{label:"Tags",items:r,selectedItems:m,onToggle:o,onClear:()=>i([])}),e[30]=r,e[31]=i,e[32]=m,e[33]=o,e[34]=z):z=e[34],e[35]!==z||e[36]!==y?(j=s.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[x,y,z]}),e[35]=z,e[36]=y,e[37]=j):j=e[37],h="flex items-center gap-3 flex-wrap px-5 py-3";let L;e[38]!==n||e[39]!==c?(L=K=>{const A=n.includes(K.value);return s.jsxs("div",{onClick:()=>c(K.value),className:ae("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",A?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[s.jsx("span",{children:K.value}),A&&s.jsx("span",{onClick:O=>{O.stopPropagation(),c(K.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},K.value)},e[38]=n,e[39]=c,e[40]=L):L=e[40],F=g.map(L),e[9]=l,e[10]=r,e[11]=d,e[12]=i,e[13]=n,e[14]=m,e[15]=c,e[16]=o,e[17]=T,e[18]=C,e[19]=h,e[20]=F,e[21]=S,e[22]=j,e[23]=b}else T=e[17],C=e[18],h=e[19],F=e[20],S=e[21],j=e[22],b=e[23];let $;if(e[41]!==T||e[42]!==c||e[43]!==b){let g;e[45]!==b?(g=y=>!b.has(y),e[45]=b,e[46]=g):g=e[46];let x;e[47]!==c?(x=y=>s.jsxs("div",{onClick:()=>c(y),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:[s.jsx("span",{children:y}),s.jsx("span",{onClick:z=>{z.stopPropagation(),c(y)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`cat-${y}`),e[47]=c,e[48]=x):x=e[48],$=T.filter(g).map(x),e[41]=T,e[42]=c,e[43]=b,e[44]=$}else $=e[44];let R;if(e[49]!==C||e[50]!==o){let g;e[52]!==o?(g=x=>s.jsxs("div",{onClick:()=>o(x),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:[s.jsx("span",{children:x}),s.jsx("span",{onClick:y=>{y.stopPropagation(),o(x)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`tag-${x}`),e[52]=o,e[53]=g):g=e[53],R=C.map(g),e[49]=C,e[50]=o,e[51]=R}else R=e[51];let P;e[54]!==k||e[55]!==u?(P=u&&s.jsxs(X,{variant:"ghost",size:"sm",onClick:k,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[s.jsx(re,{size:14}),"Clear all"]}),e[54]=k,e[55]=u,e[56]=P):P=e[56];let N;e[57]!==P||e[58]!==h||e[59]!==F||e[60]!==$||e[61]!==R?(N=s.jsxs("div",{className:h,children:[F,$,R,P]}),e[57]=P,e[58]=h,e[59]=F,e[60]=$,e[61]=R,e[62]=N):N=e[62];let w;return e[63]!==N||e[64]!==S||e[65]!==j?(w=s.jsxs("div",{className:S,children:[j,N]}),e[63]=N,e[64]=S,e[65]=j,e[66]=w):w=e[66],w}function ct(t){return t.value}function dt(t,e){if(!e)return t;const r=e.toLowerCase();return t.filter(l=>(l.name||l.title||"").toLowerCase().includes(r)||(l.description||l.server?.description||"").toLowerCase().includes(r))}function mt(t){return t.verified===!0||t._meta?.["mcp.mesh"]?.verified===!0}function ut(t){const e=Y.c(55),{registryId:r,listToolName:l,filtersToolName:m,storePrivateOnly:n}=t,[i,d]=U.useState(""),a=tt(i,300),u=me(),{org:I}=ne(),{scrollRef:o,saveScrollPosition:p,handleScroll:c}=st(`store-discovery:${r}`);let f;e[0]!==a||e[1]!==m||e[2]!==l||e[3]!==r?(f={registryId:r,listToolName:l,filtersToolName:m,search:a},e[0]=a,e[1]=m,e[2]=l,e[3]=r,e[4]=f):f=e[4];const{items:k,hasMore:T,isLoadingMore:C,isInitialLoading:h,isFetching:F,error:S,loadMore:j,availableTags:b,availableCategories:$,selectedTags:R,selectedCategories:P,setSelectedTags:N,setSelectedCategories:w,hasActiveFilters:g}=lt(f);let x,y,z,L;if(e[5]!==a||e[6]!==F||e[7]!==h||e[8]!==k||e[9]!==i||e[10]!==n){const E=i?dt(k,i):k;L=n?E.filter(xt):E,x=(i!==a||F)&&!h&&!!i,z=L.filter(mt),y=L.filter(M=>!z.find(G=>G.id===M.id)),e[5]=a,e[6]=F,e[7]=h,e[8]=k,e[9]=i,e[10]=n,e[11]=x,e[12]=y,e[13]=z,e[14]=L}else x=e[11],y=e[12],z=e[13],L=e[14];const K=y;let A;e[15]!==u||e[16]!==I.slug||e[17]!==r||e[18]!==p?(A=E=>{p();const M=Ue(E.name||E.title||E.server?.title||""),G=typeof E.id=="string"&&E.id.includes("/"),Q=typeof E.server?.name=="string"&&E.server.name.includes("/"),_=G&&!Q?E.id:E.server?.name||E.id||"";u({to:"/$org/$project/store/$appName",params:{org:I.slug,project:xe,appName:M},search:{registryId:r,serverName:_}})},e[15]=u,e[16]=I.slug,e[17]=r,e[18]=p,e[19]=A):A=e[19];const O=A;let W;e[20]!==c||e[21]!==T||e[22]!==C||e[23]!==j?(W=E=>{if(c(),!T||C)return;const M=E.currentTarget;M.scrollHeight-M.scrollTop-M.clientHeight<200&&j()},e[20]=c,e[21]=T,e[22]=C,e[23]=j,e[24]=W):W=e[24];const J=W;let B;e[25]!==x||e[26]!==i?(B=s.jsx(He,{value:i,onChange:d,placeholder:"Search for an MCP Server...",isSearching:x}),e[25]=x,e[26]=i,e[27]=B):B=e[27];let V;e[28]!==$||e[29]!==b||e[30]!==P||e[31]!==R||e[32]!==w||e[33]!==N?(V=s.jsx(at,{availableTags:b,availableCategories:$,selectedTags:R,selectedCategories:P,onTagChange:N,onCategoryChange:w}),e[28]=$,e[29]=b,e[30]=P,e[31]=R,e[32]=w,e[33]=N,e[34]=V):V=e[34];let q;e[35]!==K||e[36]!==S||e[37]!==O||e[38]!==g||e[39]!==T||e[40]!==h||e[41]!==C||e[42]!==x||e[43]!==i||e[44]!==z||e[45]!==L?(q=s.jsx("div",{className:"p-5",children:s.jsx("div",{children:S&&!h?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-4",children:[s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(ue,{className:"size-8 text-destructive"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Registry unavailable"}),s.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."}),S.message&&s.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:S.message})]}),s.jsxs(X,{variant:"outline",size:"sm",onClick:ft,children:[s.jsx(fe,{className:"size-4"}),"Try again"]})]}):h?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):L.length===0&&!g?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(pe,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),s.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):L.length===0&&g&&!i?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ge,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):i&&L.length===0&&!x?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(he,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):s.jsxs("div",{className:"flex flex-col gap-8",children:[x&&L.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),z.length>0&&s.jsx(ce,{items:z,title:"Verified",onItemClick:O}),K.length>0&&s.jsx(ce,{items:K,title:z.length>0?"All":"",onItemClick:O}),T&&C&&s.jsx("div",{className:"flex justify-center py-8",children:s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(le,{size:20,className:"animate-spin"}),s.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[35]=K,e[36]=S,e[37]=O,e[38]=g,e[39]=T,e[40]=h,e[41]=C,e[42]=x,e[43]=i,e[44]=z,e[45]=L,e[46]=q):q=e[46];let D;e[47]!==J||e[48]!==o||e[49]!==q?(D=s.jsx("div",{ref:o,className:"flex-1 overflow-y-auto",onScroll:J,children:q}),e[47]=J,e[48]=o,e[49]=q,e[50]=D):D=e[50];let H;return e[51]!==B||e[52]!==V||e[53]!==D?(H=s.jsxs("div",{className:"flex flex-col h-full",children:[B,V,D]}),e[51]=B,e[52]=V,e[53]=D,e[54]=H):H=e[54],H}function ft(){return window.location.reload()}function xt(t){return t.is_public!==!0}function gt(t){const e=Y.c(11),{registryId:r,storePrivateOnly:l}=t,m=Ve(r),n=m?.tools;let i;e[0]!==n?(i=Ae(n),e[0]=n,e[1]=i):i=e[1];const d=i;if(!d){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(pe,{className:"size-8 text-muted-foreground"})}),e[2]=c):c=e[2];let f;return e[3]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[c,s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Registry not available"}),s.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]=f):f=e[3],f}const a=m?.tools;let u;e[4]!==a?(u=Me(a),e[4]=a,e[5]=u):u=e[5];const o=u||void 0;let p;return e[6]!==d||e[7]!==r||e[8]!==l||e[9]!==o?(p=s.jsx(ut,{registryId:r,listToolName:d,filtersToolName:o,storePrivateOnly:l}),e[6]=d,e[7]=r,e[8]=l,e[9]=o,e[10]=p):p=e[10],p}function pt(t){const e=Y.c(43),{registries:r,value:l,onValueChange:m,onAddWellKnown:n,wellKnownRegistries:i,placeholder:d}=t,a=d===void 0?"Select a registry...":d,[u,I]=U.useState(!1);let o,p,c,f,k,T,C,h;if(e[0]!==u||e[1]!==a||e[2]!==r||e[3]!==l){let N;e[12]!==l?(N=g=>g.id===l,e[12]=l,e[13]=N):N=e[13];const w=r.find(N);p=be,C=u,h=I,o=Ne,T=!0,c="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(f=ae("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]=f):f=e[14],k=w?s.jsxs("span",{className:"flex items-center gap-2",children:[w.icon?s.jsx("img",{src:w.icon,alt:w.name,className:"w-4 h-4 rounded"}):s.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:w.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:w.name})]}):s.jsx("span",{className:"text-muted-foreground",children:a}),e[0]=u,e[1]=a,e[2]=r,e[3]=l,e[4]=o,e[5]=p,e[6]=c,e[7]=f,e[8]=k,e[9]=T,e[10]=C,e[11]=h}else o=e[4],p=e[5],c=e[6],f=e[7],k=e[8],T=e[9],C=e[10],h=e[11];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(we,{className:"size-4 opacity-50"}),e[15]=F):F=e[15];let S;e[16]!==c||e[17]!==f||e[18]!==k?(S=s.jsxs("button",{type:c,className:f,children:[k,F]}),e[16]=c,e[17]=f,e[18]=k,e[19]=S):S=e[19];let j;e[20]!==o||e[21]!==T||e[22]!==S?(j=s.jsx(o,{asChild:T,children:S}),e[20]=o,e[21]=T,e[22]=S,e[23]=j):j=e[23];let b;if(e[24]!==m||e[25]!==r||e[26]!==l){let N;e[28]!==m||e[29]!==l?(N=w=>s.jsxs("button",{type:"button",onClick:()=>{m(w.id??w.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:[s.jsxs("div",{className:"flex items-center gap-2",children:[w.icon?s.jsx("img",{src:w.icon,alt:w.name,className:"w-4 h-4 rounded"}):s.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:w.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:w.name})]}),l===(w.id??w.name)&&s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:s.jsx(Se,{className:"size-4"})})]},w.id??w.name),e[28]=m,e[29]=l,e[30]=N):N=e[30],b=r.map(N),e[24]=m,e[25]=r,e[26]=l,e[27]=b}else b=e[27];let $;e[31]!==n||e[32]!==i?($=i.length>0&&s.jsxs("div",{className:"border-t border-border pt-1 mt-1",children:[s.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),i.map(N=>s.jsxs("button",{type:"button",onClick:()=>{n(N),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:[s.jsxs("div",{className:"flex items-center gap-2",children:[N.icon?s.jsx("img",{src:N.icon,alt:N.title,className:"w-4 h-4 rounded"}):s.jsx("span",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:N.title.slice(0,1).toUpperCase()}),s.jsx("span",{className:"flex-1",children:N.title})]}),s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:s.jsx(Ye,{size:16})})]},N.id??N.title))]}),e[31]=n,e[32]=i,e[33]=$):$=e[33];let R;e[34]!==b||e[35]!==$?(R=s.jsxs(Ce,{align:"end",className:"w-auto min-w-[200px] p-1",children:[b,$]}),e[34]=b,e[35]=$,e[36]=R):R=e[36];let P;return e[37]!==p||e[38]!==j||e[39]!==R||e[40]!==C||e[41]!==h?(P=s.jsxs(p,{open:C,onOpenChange:h,children:[j,R]}),e[37]=p,e[38]=j,e[39]=R,e[40]=C,e[41]=h,e[42]=P):P=e[42],P}function ht({registries:t,onConnected:e}){const r=ve(),{org:{slug:l}}=ne(),{data:m}=Pe.useSession(),n=me(),[i,d]=U.useState(!1),a=t[0],u=async()=>{if(!(!a||!m?.user?.id)){d(!0);try{const o=await r.create.mutateAsync(a);e?.(o.id)}finally{d(!1)}}},I=()=>{n({to:"/$org/$project/mcps",params:{org:l,project:xe},search:{action:"create"}})};return s.jsx(Je,{image:s.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:s.jsxs(s.Fragment,{children:[s.jsxs(X,{variant:"outline",onClick:u,disabled:i||!a,children:[a?.icon&&s.jsx("img",{src:a.icon,alt:"",className:"size-4"}),i?"Installing...":"Install Registry"]}),s.jsx(X,{variant:"outline",onClick:I,children:"Custom Connection"})]})})}function jt(t){const e=Y.c(15),{error:r,onRetry:l,registryName:m}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(ue,{className:"h-6 w-6 text-destructive"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("h3",{className:"text-lg font-medium",children:"Unable to load store"}),e[1]=i):i=e[1];let d;e[2]!==m?(d=s.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",s.jsx("strong",{children:m})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=m,e[3]=d):d=e[3];let a;e[4]!==r?(a=r?.message&&s.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 u;e[6]!==d||e[7]!==a?(u=s.jsxs("div",{className:"space-y-2",children:[i,d,a]}),e[6]=d,e[7]=a,e[8]=u):u=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(fe,{className:"size-4"}),e[9]=I):I=e[9];let o;e[10]!==l?(o=s.jsxs(X,{variant:"outline",size:"sm",onClick:l,children:[I,"Try again"]}),e[10]=l,e[11]=o):o=e[11];let p;return e[12]!==u||e[13]!==o?(p=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[n,u,o]}),e[12]=u,e[13]=o,e[14]=p):p=e[14],p}function ns(){const t=Y.c(53),{org:e,project:r}=ne(),l=qe(),m=ve(),n=$e(),i=n.location.pathname.includes("/store/")&&n.location.pathname.split("/").length>3,d=Ze(l);let a;t[0]!==e.id?(a=Be.SELF(e.id),t[0]=e.id,t[1]=a):a=t[1];const u=a,I=r.enabledPlugins,o=I==null||I.includes(ie);let p;t[2]!==u?(p=(v,te)=>v.id===u?1:te.id===u?-1:0,t[2]=u,t[3]=p):p=t[3];const c=d.filter(v=>v.id!==u?!0:o).sort(p);let f;t[4]!==u?(f=v=>v.id===u,t[4]=u,t[5]=f):f=t[5];const k=c.some(f);let T;t[6]!==e.id?(T={connectionId:De,orgId:e.id},t[6]=e.id,t[7]=T):T=t[7];const C=ye(T);let h;t[8]!==r.id||t[9]!==C?(h=async()=>{const v=await C.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:ie}});return v.structuredContent??v},t[8]=r.id,t[9]=C,t[10]=h):h=t[10];const{data:F}=je({queryKey:oe.projectPluginConfig(r.id??"",ie),queryFn:h,enabled:k&&!!r.id,staleTime:6e4}),S=F?.config?.settings;let j;t[11]!==S||t[12]!==u?(j=v=>v.id===u&&S?{id:v.id,name:S.registryName||v.title,icon:S.registryIcon||v.icon||void 0}:{id:v.id,name:v.title,icon:v.icon||void 0},t[11]=S,t[12]=u,t[13]=j):j=t[13];const b=c.map(j);let $;t[14]!==e.slug?($=Xe.selectedRegistry(e.slug),t[14]=e.slug,t[15]=$):$=t[15];const[R,P]=et($,vt);let N;t[16]!==R?(N=v=>v.id===R,t[16]=R,t[17]=N):N=t[17];const w=c.find(N);let g;t[18]!==u?(g=v=>v.id!==u,t[18]=u,t[19]=g):g=t[19];const x=c.find(g),y=w?.id||x?.id||c[0]?.id||"",z=y===u&&S?.storePrivateOnly===!0;let L;t[20]!==e.id?(L=Ge(e.id),t[20]=e.id,t[21]=L):L=t[21];let K;t[22]!==L?(K=[L],t[22]=L,t[23]=K):K=t[23];const A=K;let O;t[24]===Symbol.for("react.memo_cache_sentinel")?(O=[We()],t[24]=O):O=t[24];const W=O;let J;t[25]!==m.create||t[26]!==P?(J=async v=>{const te=await m.create.mutateAsync(v);P(te.id)},t[25]=m.create,t[26]=P,t[27]=J):J=t[27];const B=J,V=new Set(c.map(yt)),q=A.filter(v=>v.id&&!V.has(v.id)),D=W.filter(v=>v.id&&!V.has(v.id));if(i){let v;return t[28]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(ze,{}),t[28]=v):v=t[28],v}let H;t[29]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(se.Header.Left,{children:s.jsx(Le,{children:s.jsx(Fe,{children:s.jsx(Ee,{children:s.jsx(Oe,{children:"Store"})})})})}),t[29]=H):H=t[29];let E;t[30]!==B?(E=async v=>B(v),t[30]=B,t[31]=E):E=t[31];let M;t[32]!==q||t[33]!==y||t[34]!==b||t[35]!==P||t[36]!==E?(M=s.jsxs(se.Header,{children:[H,s.jsx(se.Header.Right,{children:s.jsx(pt,{wellKnownRegistries:q,registries:b,value:y,onValueChange:P,onAddWellKnown:E,placeholder:"Select store..."})})]}),t[32]=q,t[33]=y,t[34]=b,t[35]=P,t[36]=E,t[37]=M):M=t[37];let G;t[38]!==y||t[39]!==b?(G=v=>{const{error:te,resetError:Ie}=v;return s.jsx(jt,{error:te,onRetry:Ie,registryName:b.find(Te=>Te.id===y)?.name??"registry"})},t[38]=y,t[39]=b,t[40]=G):G=t[40];let Q;t[41]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),t[41]=Q):Q=t[41];let _;t[42]!==D||t[43]!==y||t[44]!==P||t[45]!==z?(_=s.jsx(U.Suspense,{fallback:Q,children:y?s.jsx(gt,{registryId:y,storePrivateOnly:z}):s.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:s.jsx(ht,{registries:D,onConnected:v=>{P(v)}})})}),t[42]=D,t[43]=y,t[44]=P,t[45]=z,t[46]=_):_=t[46];let Z;t[47]!==G||t[48]!==_?(Z=s.jsx(se.Content,{children:s.jsx(ke,{fallback:G,children:_})}),t[47]=G,t[48]=_,t[49]=Z):Z=t[49];let ee;return t[50]!==M||t[51]!==Z?(ee=s.jsxs(se,{children:[M,Z]}),t[50]=M,t[51]=Z,t[52]=ee):ee=t[52],ee}function yt(t){return t.id}function vt(t){return t??""}export{ns as default};
@@ -1 +1 @@
1
- import{c as a,j as t,ar as n}from"./index-Dcn2qiju.js";function r(){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{r as default};
1
+ import{c as a,j as t,ar as n}from"./index-U8yTDca7.js";function r(){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{r as default};
@@ -1 +1 @@
1
- import{c as s,j as t}from"./index-Dcn2qiju.js";import{e as r}from"./Dataflow03-BRXJqFYl.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
+ import{c as s,j as t}from"./index-U8yTDca7.js";import{e as r}from"./Dataflow03-CNb2zbZ8.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-Dcn2qiju.js";import{i as R}from"./Check-ClJhvPmY.js";import{t as _}from"./ChevronDown-BHOwQQZv.js";import{e as y}from"./Dataflow03-BRXJqFYl.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
+ import{c as S,j as s,r as w}from"./index-U8yTDca7.js";import{i as R}from"./Check-CL49s9Bl.js";import{t as _}from"./ChevronDown-CG1cCCiw.js";import{e as y}from"./Dataflow03-CNb2zbZ8.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,ar as y}from"./index-Dcn2qiju.js";import{i as _}from"./Check-ClJhvPmY.js";import{t as k}from"./ChevronDown-BHOwQQZv.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};
1
+ import{c as w,j as s,r as S,ar as y}from"./index-U8yTDca7.js";import{i as _}from"./Check-CL49s9Bl.js";import{t as k}from"./ChevronDown-CG1cCCiw.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-U8yTDca7.js";import{P as m}from"./project-plugins-BfafEUXv.js";import"./useQuery-5ZDNJc1s.js";import"./useMutation-DytEPkqh.js";import"./constants-DTB7OETZ.js";import"./switch-BRh8AXBy.js";import"./label-Bf0lesTu.js";import"./Container-dYTfUn5d.js";import"./use-connection-iQvUBAn8.js";import"./use-collections-CN2TJbh7.js";import"./use-binding-CCIfD8Jg.js";import"./binder-DyZqr2VO.js";import"./use-install-from-registry-CnwkwHx1.js";import"./extract-connection-data-DYcMkv2m.js";import"./constants-15nJD0dE.js";import"./github-icon-Dp3wHhYE.js";import"./registry-utils-Ipd3DHuA.js";import"./generate-id-Dyweu44Y.js";import"./Loading01-BqZPjLUL.js";import"./Plus-7bvNbAWU.js";import"./select-lvFASMQQ.js";import"./index-Ds-_NbMX.js";import"./Check-CL49s9Bl.js";import"./ChevronDown-CG1cCCiw.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,a_ as L,av as z,M as A,J as b,T as g,aY as _,W as j,aZ as G,a$ as w,b4 as H,b5 as K,X as W,b6 as Z,b7 as J,b8 as U,b0 as V,b1 as X,b3 as Y,c as R,v as q}from"./index-Dcn2qiju.js";var C="Popover",[E]=W(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(L,{...p,children:c.jsx(B,{scope:e,contentId:z(),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(_,{...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(b.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(_,{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(G,{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=Z("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 H(a)},[]),c.jsx(K,{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 J(),c.jsx(U,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(V,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(X,{"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(b.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
+ import{r as i,I as $,j as c,aZ as L,av as z,M as A,J as b,T as g,aX as _,W as j,aY as G,a_ as w,b3 as H,b4 as K,X as W,b5 as X,b6 as Z,b7 as J,a$ as U,b0 as V,b2 as Y,c as R,v as q}from"./index-U8yTDca7.js";var C="Popover",[E]=W(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(L,{...p,children:c.jsx(B,{scope:e,contentId:z(),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(_,{...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(b.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(_,{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(G,{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=X("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 H(a)},[]),c.jsx(K,{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 Z(),c.jsx(J,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(U,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(V,{"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(b.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 h,e as _,j as n,E as P,r as I,u as C}from"./index-Dcn2qiju.js";import{u as b}from"./use-connection-DxvPS7VD.js";import{u as y}from"./constants-Cq1TdBA4.js";import{u as M}from"./use-mcp-tools-DSj0blv8.js";import{M as R}from"./mcp-app-renderer-Cv_Z5lHv.js";import{g as $,M as j}from"./types-B--slpLM.js";import{P as x}from"./index-B9J4D_1U.js";import"./use-collections-BgYlT5Uf.js";import"./useMutation-5mKR3fo9.js";import"./useQuery-BPReO9_Y.js";import"./use-mcp-resources-Crnx2QAL.js";import"./localstorage-keys-buUlASyU.js";import"./tooltip-DSJTNt9R.js";import"./index-C3lH1any.js";const g={};function v(t){const e=h.c(10),{client:s,resourceURI:m,tool:i}=t;let c;e[0]!==s||e[1]!==i.name?(c={client:s,toolName:i.name,toolArguments:g},e[0]=s,e[1]=i.name,e[2]=c):c=e[2];const{data:a}=M(c),l=i;let o;e[3]!==l?(o={tool:l},e[3]=l,e[4]=o):o=e[4];let f;return e[5]!==s||e[6]!==m||e[7]!==o||e[8]!==a?(f=n.jsx(R,{resourceURI:m,toolInfo:o,toolInput:g,toolResult:a,displayMode:"fullscreen",minHeight:j.fullscreen.minHeight,maxHeight:j.fullscreen.maxHeight,client:s,className:"h-full"}),e[5]=s,e[6]=m,e[7]=o,e[8]=a,e[9]=f):f=e[9],f}function A(t){const e=h.c(16),{connectionId:s,toolName:m}=t,{org:i}=C();let c;e[0]!==s||e[1]!==i.id?(c={connectionId:s,orgId:i.id},e[0]=s,e[1]=i.id,e[2]=c):c=e[2];const a=y(c),l=b(s),o=decodeURIComponent(m);let f,d;if(e[3]!==l?.tools||e[4]!==o){let r;e[7]!==o?(r=N=>N.name===o,e[7]=o,e[8]=r):r=e[8],d=(l?.tools??[]).find(r),f=d?._meta?$(d._meta):void 0,e[3]=l?.tools,e[4]=o,e[5]=f,e[6]=d}else f=e[5],d=e[6];const u=f;if(!l){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.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]!==o?(r=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',o,'" not found or has no UI']})}),e[10]=o,e[11]=r):r=e[11],r}let p;return e[12]!==a||e[13]!==u||e[14]!==d?(p=n.jsx(v,{client:a,resourceURI:u,tool:d}),e[12]=a,e[13]=u,e[14]=d,e[15]=p):p=e[15],p}function q(){const t=h.c(9);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:s,toolName:m}=_(e);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(x.Header,{}),t[1]=i):i=t[1];const c=`${s}:${m}`;let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[n.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),n.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),t[2]=a):a=t[2];let l;t[3]!==s||t[4]!==m?(l=n.jsx(I.Suspense,{fallback:a,children:n.jsx(A,{connectionId:s,toolName:m})}),t[3]=s,t[4]=m,t[5]=l):l=t[5];let o;return t[6]!==c||t[7]!==l?(o=n.jsxs(x,{children:[i,n.jsx(x.Content,{className:"overflow-hidden",children:n.jsx(P,{fallback:void 0,children:l},c)})]}),t[6]=c,t[7]=l,t[8]=o):o=t[8],o}export{q as default};
1
+ import{c as h,e as _,j as n,E as P,r as I,u as C}from"./index-U8yTDca7.js";import{u as b}from"./use-connection-iQvUBAn8.js";import{u as y}from"./constants-DTB7OETZ.js";import{u as M}from"./use-mcp-tools-BfrLEufs.js";import{M as R}from"./mcp-app-renderer-BS-Ag69A.js";import{g as $,M as j}from"./types-BmXorGle.js";import{P as x}from"./index-DBJYDzwg.js";import"./use-collections-CN2TJbh7.js";import"./useMutation-DytEPkqh.js";import"./useQuery-5ZDNJc1s.js";import"./use-mcp-resources-CXWxuBPP.js";import"./localstorage-keys-BqiTN_31.js";import"./tooltip-Az0qqeXN.js";import"./index-Ds-_NbMX.js";const g={};function v(t){const e=h.c(10),{client:s,resourceURI:m,tool:i}=t;let c;e[0]!==s||e[1]!==i.name?(c={client:s,toolName:i.name,toolArguments:g},e[0]=s,e[1]=i.name,e[2]=c):c=e[2];const{data:a}=M(c),l=i;let o;e[3]!==l?(o={tool:l},e[3]=l,e[4]=o):o=e[4];let f;return e[5]!==s||e[6]!==m||e[7]!==o||e[8]!==a?(f=n.jsx(R,{resourceURI:m,toolInfo:o,toolInput:g,toolResult:a,displayMode:"fullscreen",minHeight:j.fullscreen.minHeight,maxHeight:j.fullscreen.maxHeight,client:s,className:"h-full"}),e[5]=s,e[6]=m,e[7]=o,e[8]=a,e[9]=f):f=e[9],f}function A(t){const e=h.c(16),{connectionId:s,toolName:m}=t,{org:i}=C();let c;e[0]!==s||e[1]!==i.id?(c={connectionId:s,orgId:i.id},e[0]=s,e[1]=i.id,e[2]=c):c=e[2];const a=y(c),l=b(s),o=decodeURIComponent(m);let f,d;if(e[3]!==l?.tools||e[4]!==o){let r;e[7]!==o?(r=N=>N.name===o,e[7]=o,e[8]=r):r=e[8],d=(l?.tools??[]).find(r),f=d?._meta?$(d._meta):void 0,e[3]=l?.tools,e[4]=o,e[5]=f,e[6]=d}else f=e[5],d=e[6];const u=f;if(!l){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.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]!==o?(r=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',o,'" not found or has no UI']})}),e[10]=o,e[11]=r):r=e[11],r}let p;return e[12]!==a||e[13]!==u||e[14]!==d?(p=n.jsx(v,{client:a,resourceURI:u,tool:d}),e[12]=a,e[13]=u,e[14]=d,e[15]=p):p=e[15],p}function q(){const t=h.c(9);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:s,toolName:m}=_(e);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(x.Header,{}),t[1]=i):i=t[1];const c=`${s}:${m}`;let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[n.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),n.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),t[2]=a):a=t[2];let l;t[3]!==s||t[4]!==m?(l=n.jsx(I.Suspense,{fallback:a,children:n.jsx(A,{connectionId:s,toolName:m})}),t[3]=s,t[4]=m,t[5]=l):l=t[5];let o;return t[6]!==c||t[7]!==l?(o=n.jsxs(x,{children:[i,n.jsx(x.Content,{className:"overflow-hidden",children:n.jsx(P,{fallback:void 0,children:l},c)})]}),t[6]=c,t[7]=l,t[8]=o):o=t[8],o}export{q as default};