decocms 2.159.1 → 2.160.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/dist/client/assets/{AlertCircle-CBhLz_B3.js → AlertCircle-15aXheOa.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-BKDhZIZf.js → AlignLeft-s0P9ghzj.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-DK5120DW.js → ArrowDown-C3SOhKjS.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DzjvK55Q.js → ArrowLeft-M-y6iKpu.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-C9KmIXeT.js → ArrowUp-PPrmqeNO.js} +1 -1
  6. package/dist/client/assets/{Check-DRSTTkKR.js → Check-BBM5VLGH.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DG99jsGW.js → CheckCircle-C0ddIarw.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-CJ9Z1gAM.js → CheckDone01-BQk2J9gn.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-CqzfbAzd.js → CheckVerified02-D0Wy8oW-.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-BPhOar5T.js → ChevronDown-p0dnpCad.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-93yh_HIC.js → ChevronLeft-DYNH_yyu.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-DTivSZqE.js → ChevronRight-CMFxJNnL.js} +1 -1
  13. package/dist/client/assets/{Clock-DQYSuuoD.js → Clock-CCn1Eon7.js} +1 -1
  14. package/dist/client/assets/{Code01-CJIE1S5i.js → Code01-D_0oabBA.js} +1 -1
  15. package/dist/client/assets/{Container-HVG2i2C-.js → Container-BHcLe4to.js} +1 -1
  16. package/dist/client/assets/{Copy01-BhChTAT1.js → Copy01-vArqDUcl.js} +1 -1
  17. package/dist/client/assets/{Dataflow03-BdRMRJMF.js → Dataflow03-BwCknUU_.js} +1 -1
  18. package/dist/client/assets/{DotsHorizontal-ZEt3vt7l.js → DotsHorizontal-CEZsL0M8.js} +1 -1
  19. package/dist/client/assets/{DotsVertical-M19e4CBk.js → DotsVertical-CRoO0wqW.js} +1 -1
  20. package/dist/client/assets/{Download01-Cv8nx-Ty.js → Download01-DM6br2DA.js} +1 -1
  21. package/dist/client/assets/{Edit01-Dbvw8MTi.js → Edit01-rT_FTO2Q.js} +1 -1
  22. package/dist/client/assets/{Edit05-Bfa1rGQB.js → Edit05-eK-SBLpL.js} +1 -1
  23. package/dist/client/assets/{Eye-iSSdGcvW.js → Eye-DawBJpCk.js} +1 -1
  24. package/dist/client/assets/{File02-DxdIm6O-.js → File02-C2t_Vngl.js} +1 -1
  25. package/dist/client/assets/{File06-CLJanNci.js → File06-GZGivzVD.js} +1 -1
  26. package/dist/client/assets/{FilterLines-DxKyYB7c.js → FilterLines-CJ9-vjsQ.js} +1 -1
  27. package/dist/client/assets/{Globe01-ghXJSkAF.js → Globe01-a25l6eyp.js} +1 -1
  28. package/dist/client/assets/{Globe02-p2rrXnC7.js → Globe02-B6GbfA8y.js} +1 -1
  29. package/dist/client/assets/{Grid01-DWgTx4vp.js → Grid01-e8cXDa8Q.js} +1 -1
  30. package/dist/client/assets/{Hash02-CinURsik.js → Hash02-DTAn-9_v.js} +1 -1
  31. package/dist/client/assets/{Home02-5pkAqX_j.js → Home02-BQ7MsdGz.js} +1 -1
  32. package/dist/client/assets/{Image01-7kjMCux9.js → Image01-3Otvjfwm.js} +1 -1
  33. package/dist/client/assets/{Inbox01-CJsPuSnU.js → Inbox01-D3mauHme.js} +1 -1
  34. package/dist/client/assets/{InfoCircle-U9-f1WtT.js → InfoCircle-C0xzi7q3.js} +1 -1
  35. package/dist/client/assets/{Key01-aimPaXb6.js → Key01-D2NQ2NXj.js} +1 -1
  36. package/dist/client/assets/{LayersTwo01-DKfGfkCf.js → LayersTwo01-BLhhf2am.js} +1 -1
  37. package/dist/client/assets/{LayoutLeft-y0DJVG1S.js → LayoutLeft-DAY7MAJh.js} +1 -1
  38. package/dist/client/assets/{Link01-jBvtRG8B.js → Link01-D0rCUcRc.js} +1 -1
  39. package/dist/client/assets/{LinkExternal01-Bqr3dEpj.js → LinkExternal01-C_tUCC73.js} +1 -1
  40. package/dist/client/assets/{List-C3lEIQX9.js → List-DsLKF5Qq.js} +1 -1
  41. package/dist/client/assets/{Loading01-Dzw6zngw.js → Loading01-BIsjWAvK.js} +1 -1
  42. package/dist/client/assets/{Lock01-Bkk7gZu7.js → Lock01-a376IKgn.js} +1 -1
  43. package/dist/client/assets/{Play-B0tlZnrO.js → Play-D7EdHLv7.js} +1 -1
  44. package/dist/client/assets/{Plus-BC0Ft83h.js → Plus-fVSS0uJH.js} +1 -1
  45. package/dist/client/assets/{RefreshCcw01-NDooc0iK.js → RefreshCcw01-CgTorlKu.js} +1 -1
  46. package/dist/client/assets/{Save01-CLa-aLJV.js → Save01-kx9uOkLJ.js} +1 -1
  47. package/dist/client/assets/{SearchMd-76viYIq-.js → SearchMd-BmSd1Zrr.js} +1 -1
  48. package/dist/client/assets/{Settings01-DS7G1QDs.js → Settings01-C1PGP469.js} +1 -1
  49. package/dist/client/assets/{Shield01-JScg3sqP.js → Shield01-DVUchGWL.js} +1 -1
  50. package/dist/client/assets/{Terminal-DDhqRjyh.js → Terminal-TgyMcolz.js} +1 -1
  51. package/dist/client/assets/{Trash01-DreM6yl9.js → Trash01-BER5QzZc.js} +1 -1
  52. package/dist/client/assets/{Upload01-43ycw40-.js → Upload01-CzBh5dGx.js} +1 -1
  53. package/dist/client/assets/{Users03-CIattJqz.js → Users03-BCaULJ2i.js} +1 -1
  54. package/dist/client/assets/{X-CjkEqgI-.js → X-DyQ8WnIz.js} +1 -1
  55. package/dist/client/assets/{XCircle-CDjj7Jmr.js → XCircle-BDJcRwrF.js} +1 -1
  56. package/dist/client/assets/{XClose-D7h5wS43.js → XClose-DST1pf0W.js} +1 -1
  57. package/dist/client/assets/{Zap-BfVhu_zL.js → Zap-DZ-BMnSK.js} +1 -1
  58. package/dist/client/assets/{agent-connections-preview-NZv1THM_.js → agent-connections-preview-DCwzPJ-w.js} +1 -1
  59. package/dist/client/assets/{agent-detail-BVY-yvEC.js → agent-detail-C0tjGF4q.js} +1 -1
  60. package/dist/client/assets/{agents-C8V2nvTz.js → agents-CqAQKWwL.js} +1 -1
  61. package/dist/client/assets/{alert-dialog-C2t2JnDU.js → alert-dialog-CVwPaKyV.js} +2 -2
  62. package/dist/client/assets/{auth-catchall-F0kdgPNp.js → auth-catchall-BPMdO-wz.js} +1 -1
  63. package/dist/client/assets/{avatar-w8FjQVRS.js → avatar-SUcmfQUC.js} +1 -1
  64. package/dist/client/assets/{badge-DMxqkEEB.js → badge-D9w3zcIU.js} +1 -1
  65. package/dist/client/assets/{binder-BE2JGf_w.js → binder-DoPAL9ZH.js} +1 -1
  66. package/dist/client/assets/{breadcrumb-DcmqctbX.js → breadcrumb-ByrAiUdw.js} +1 -1
  67. package/dist/client/assets/{card-DVqrMiKt.js → card-CsGWTYNA.js} +1 -1
  68. package/dist/client/assets/{chart-1lMAUM64.js → chart-CxgdoPqM.js} +1 -1
  69. package/dist/client/assets/{checkbox-nC2v2km0.js → checkbox-tq_Hrh_u.js} +1 -1
  70. package/dist/client/assets/{circle-alert-BwadqC4N.js → circle-alert-MJoyaBeO.js} +1 -1
  71. package/dist/client/assets/{collapsible-CArFQptB.js → collapsible-CHMPI7ZZ.js} +1 -1
  72. package/dist/client/assets/{collection-detail-BK3QqmSA.js → collection-detail-CGgLJKt8.js} +1 -1
  73. package/dist/client/assets/{collection-display-button-uGprGkAW.js → collection-display-button-DQpZM1Eh.js} +1 -1
  74. package/dist/client/assets/{collection-search-B2hh4H1q.js → collection-search-DDTa4Eoe.js} +1 -1
  75. package/dist/client/assets/{collection-tab-Cc-kzI8z.js → collection-tab-DKcdbLRT.js} +1 -1
  76. package/dist/client/assets/{collection-table-wrapper-esNgumfH.js → collection-table-wrapper-BgbUD_BF.js} +1 -1
  77. package/dist/client/assets/{collection-tabs-spWfDFMg.js → collection-tabs-CqGGv39D.js} +1 -1
  78. package/dist/client/assets/{command-CoD4UdMu.js → command-B2wfNK0c.js} +1 -1
  79. package/dist/client/assets/{connect-P5w6Hvtt.js → connect-10-mp6cB.js} +1 -1
  80. package/dist/client/assets/{connection-card-DAjANGbu.js → connection-card-oBj8I1cm.js} +1 -1
  81. package/dist/client/assets/{connection-detail-DkSsLUJw.js → connection-detail-DiEeIC47.js} +1 -1
  82. package/dist/client/assets/{connection-status-C2o0C4N5.js → connection-status-oIo8H4G8.js} +1 -1
  83. package/dist/client/assets/{connections-BYdvf7Dl.js → connections-BH06z5mR.js} +1 -1
  84. package/dist/client/assets/{constants-CAOZXRu0.js → constants-B_oRauum.js} +1 -1
  85. package/dist/client/assets/constants-DyjOCIfT.js +1 -0
  86. package/dist/client/assets/{context-Bf7Sesvv.js → context-Ds59MeBQ.js} +1 -1
  87. package/dist/client/assets/{create-organization-dialog-D92NeeI9.js → create-organization-dialog-CHf40Hg5.js} +1 -1
  88. package/dist/client/assets/{create-project-dialog-BnXXMnSh.js → create-project-dialog-CkuW-mkT.js} +1 -1
  89. package/dist/client/assets/{danger-CEMhuZsx.js → danger-tL8fd93R.js} +1 -1
  90. package/dist/client/assets/{danger-zone-BhROM5nM.js → danger-zone-BVLC2tvW.js} +1 -1
  91. package/dist/client/assets/{decopilot-events-6G8fYiz0.js → decopilot-events-CzzoCGmg.js} +1 -1
  92. package/dist/client/assets/{dependencies-B3zZilqe.js → dependencies-CzOg2qrx.js} +1 -1
  93. package/dist/client/assets/{dialog-zser_2oy.js → dialog-qsSmxxvb.js} +1 -1
  94. package/dist/client/assets/{dropdown-menu-BCnWbyEV.js → dropdown-menu-D958ONvK.js} +1 -1
  95. package/dist/client/assets/{dynamic-plugin-layout-D_-toSy2.js → dynamic-plugin-layout-LLxurWu2.js} +1 -1
  96. package/dist/client/assets/{editable-task-title-nNBa9l3I.js → editable-task-title-CgdEkslm.js} +1 -1
  97. package/dist/client/assets/{empty-state-CG_5wm-A.js → empty-state-ywJT5GwE.js} +1 -1
  98. package/dist/client/assets/{env-vars-editor-BJqmFMb0.js → env-vars-editor-B7aYq493.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-zZ_422Ju.js → extract-connection-data-D1izVDHQ.js} +1 -1
  100. package/dist/client/assets/{file-browser-Nkib7rxN.js → file-browser-CCANGR-E.js} +2 -2
  101. package/dist/client/assets/{form-XLZyYBui.js → form-4AeInM50.js} +1 -1
  102. package/dist/client/assets/{general-Cv_Mgxym.js → general-DOZHmCjC.js} +1 -1
  103. package/dist/client/assets/{grid-view-D9IOhnAc.js → grid-view-fZgW907F.js} +1 -1
  104. package/dist/client/assets/{home-C54za5ja.js → home-CBH6CAMz.js} +1 -1
  105. package/dist/client/assets/{icon-picker-C5GZyMbM.js → icon-picker-DKcBBokc.js} +1 -1
  106. package/dist/client/assets/{index-B-TZEZRZ.js → index-BUsRIhIK.js} +1 -1
  107. package/dist/client/assets/{index-B4gZbCy7.js → index-CJPDgn39.js} +1 -1
  108. package/dist/client/assets/{index-0sXGIDoK.js → index-CiBHmO63.js} +7 -7
  109. package/dist/client/assets/{index-BBwQLhyk.js → index-CmICOF8j.js} +1 -1
  110. package/dist/client/assets/{index-sbjIddx2.js → index-Coc_6rcF.js} +1 -1
  111. package/dist/client/assets/{index-r9hdd0fs.js → index-D-i-gTnP.js} +1 -1
  112. package/dist/client/assets/{index-C22vXC_0.js → index-DhQo4qLq.js} +1 -1
  113. package/dist/client/assets/index-UklDYW2Y.js +1 -0
  114. package/dist/client/assets/{index-Dg8PaM2F.js → index-vT7d19FZ.js} +3 -3
  115. package/dist/client/assets/{infiniteQueryObserver-B4wp77Uw.js → infiniteQueryObserver-gYoJgvdT.js} +1 -1
  116. package/dist/client/assets/{input-CND44J7m.js → input-BMlethki.js} +1 -1
  117. package/dist/client/assets/{integration-icon-CvHqYvDF.js → integration-icon-Cjy2E2LQ.js} +1 -1
  118. package/dist/client/assets/{label-BiFoR3cT.js → label-BeSMa-Jf.js} +1 -1
  119. package/dist/client/assets/{layout-DF82hkh0.js → layout-BgtP-61c.js} +1 -1
  120. package/dist/client/assets/{layout-r8BvQLi2.js → layout-DKJK9ZGe.js} +1 -1
  121. package/dist/client/assets/{localstorage-keys-CNAuB30D.js → localstorage-keys-BHX8QMmu.js} +1 -1
  122. package/dist/client/assets/{login-6AXDHOpH.js → login-ybSWA9NY.js} +1 -1
  123. package/dist/client/assets/{markdown-BP33a9tj.js → markdown-__hTGufZ.js} +1 -1
  124. package/dist/client/assets/{mcp-app-renderer-sVUbRtKB.js → mcp-app-renderer-fejJzCxk.js} +1 -1
  125. package/dist/client/assets/{mcp-server-card-Dy3JRR7A.js → mcp-server-card-CX4PlVNQ.js} +1 -1
  126. package/dist/client/assets/{mcp-server-detail-CrnNpXEW.js → mcp-server-detail-CpY3DkVi.js} +2 -2
  127. package/dist/client/assets/{members-Z0eSKXOG.js → members-BMbzqljt.js} +1 -1
  128. package/dist/client/assets/{monaco-editor-BcPQsvYs.js → monaco-editor-Cw0-f4Ft.js} +4 -4
  129. package/dist/client/assets/{monitoring-N-sQwhuU.js → monitoring-BRByYLRX.js} +1 -1
  130. package/dist/client/assets/{monitoring-dashboard-edit-BOpbaFK6.js → monitoring-dashboard-edit-DJVr_DUB.js} +1 -1
  131. package/dist/client/assets/{monitoring-dashboard-view-xdhYzP2d.js → monitoring-dashboard-view-D5D1Pg4d.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-wfmy1HRZ.js → oauth-callback-BGO9_ICN.js} +1 -1
  133. package/dist/client/assets/{page-CV10gMyz.js → page-BFWJEp4X.js} +1 -1
  134. package/dist/client/assets/{page-Bty_KBeV.js → page-DN09WW9E.js} +1 -1
  135. package/dist/client/assets/{plugin-empty-state-CfjSuHdD.js → plugin-empty-state-CtbdT5cU.js} +1 -1
  136. package/dist/client/assets/{plugin-empty-state-l4EFy-wW.js → plugin-empty-state-d8BXKryJ.js} +1 -1
  137. package/dist/client/assets/{plugin-header-DJMTKyk8.js → plugin-header-BaxlnLFC.js} +1 -1
  138. package/dist/client/assets/{plugin-header-C9ar855e.js → plugin-header-CA10HLIT.js} +1 -1
  139. package/dist/client/assets/plugins-DVIF6eE7.js +1 -0
  140. package/dist/client/assets/{popover-BU5fdRLQ.js → popover-De4smjIR.js} +1 -1
  141. package/dist/client/assets/{project-app-view-CQkTm8BF.js → project-app-view-DH5xW4-A.js} +1 -1
  142. package/dist/client/assets/{project-layout-COlJmYMr.js → project-layout-YeUL5K0A.js} +1 -1
  143. package/dist/client/assets/{project-plugins-D3ec5Ex5.js → project-plugins-DiUkRSNU.js} +1 -1
  144. package/dist/client/assets/{projects-list-7v8UAu37.js → projects-list-Dak3Di7K.js} +1 -1
  145. package/dist/client/assets/{readme-viewer-BZ4V6r7U.js → readme-viewer-D2TSDhx7.js} +1 -1
  146. package/dist/client/assets/{registry-layout-D90wqu60.js → registry-layout-BFSuFmaV.js} +1 -1
  147. package/dist/client/assets/{registry-utils-C2bkNjwE.js → registry-utils-B--947zK.js} +1 -1
  148. package/dist/client/assets/{reports-layout-DdAcMM3W.js → reports-layout-5q2TfAtf.js} +1 -1
  149. package/dist/client/assets/{reset-password-D1FDZ20u.js → reset-password-AHr8BmST.js} +1 -1
  150. package/dist/client/assets/{resizable-CucsBIa8.js → resizable-BUFe313b.js} +1 -1
  151. package/dist/client/assets/{save-actions-C9JYEtGH.js → save-actions-Cf37arjf.js} +1 -1
  152. package/dist/client/assets/{scroll-area-DOboqRKQ.js → scroll-area-C-ozuL4S.js} +1 -1
  153. package/dist/client/assets/{select-uKSkilzT.js → select-BF2Uyhhk.js} +1 -1
  154. package/dist/client/assets/{shell-layout-C6z0wZ1g.js → shell-layout-97QwCeDT.js} +2 -2
  155. package/dist/client/assets/{sidebar-settings-C9sV1AQT.js → sidebar-settings-DsUeIn7P.js} +1 -1
  156. package/dist/client/assets/{skeleton-z-nOD1TF.js → skeleton-CoD4pvnr.js} +1 -1
  157. package/dist/client/assets/{spinner-GQEmTRiT.js → spinner-Sd9UVOOH.js} +1 -1
  158. package/dist/client/assets/{store-invite-BtLFf7ac.js → store-invite-CzaHsizI.js} +1 -1
  159. package/dist/client/assets/{switch-UaSZlkHK.js → switch-BkGEtDYJ.js} +1 -1
  160. package/dist/client/assets/{table-HlZR9v0_.js → table-DG459u0n.js} +1 -1
  161. package/dist/client/assets/{tabs-BeKY54t4.js → tabs-so63VyaS.js} +1 -1
  162. package/dist/client/assets/tasks-CzECE994.js +1 -0
  163. package/dist/client/assets/{tasks-panel-ArLwLgce.js → tasks-panel-bTZmfnff.js} +1 -1
  164. package/dist/client/assets/{textarea-CXFJQOHY.js → textarea-CzHNBzKz.js} +1 -1
  165. package/dist/client/assets/{time-range-picker-Bo3ACS1v.js → time-range-picker-C3ODpZLG.js} +1 -1
  166. package/dist/client/assets/{toggle-group-D1AiZmiE.js → toggle-group-BRGgxJmO.js} +1 -1
  167. package/dist/client/assets/{tools-list-BgtsnW5R.js → tools-list-DQAlZMaG.js} +1 -1
  168. package/dist/client/assets/{tooltip-bT-cZrsF.js → tooltip-DEohEJQ4.js} +1 -1
  169. package/dist/client/assets/{topbar-portal-CId8IEdD.js → topbar-portal-DI37HSOB.js} +1 -1
  170. package/dist/client/assets/{types-DSM009A7.js → types-CMK2WPB6.js} +1 -1
  171. package/dist/client/assets/{use-binding-nxABOdXI.js → use-binding-Co6qMEtg.js} +1 -1
  172. package/dist/client/assets/{use-collections-BnjyA1PI.js → use-collections-B5FU68I3.js} +1 -1
  173. package/dist/client/assets/{use-connection-B5EMzod8.js → use-connection-B_1jjyea.js} +1 -1
  174. package/dist/client/assets/{use-copy-C2VCRHZR.js → use-copy-DRaw01R-.js} +1 -1
  175. package/dist/client/assets/{use-create-virtual-mcp-Byy6d4mR.js → use-create-virtual-mcp-CoZSSjzf.js} +1 -1
  176. package/dist/client/assets/{use-install-from-registry-CzbeS61z.js → use-install-from-registry-BHBuFZW0.js} +1 -1
  177. package/dist/client/assets/{use-list-state-pwLUokKB.js → use-list-state-CELoWjAz.js} +1 -1
  178. package/dist/client/assets/{use-llm-0Bac-pFi.js → use-llm-Dqek2fmG.js} +1 -1
  179. package/dist/client/assets/{use-mcp-prompts-D4PFXCog.js → use-mcp-prompts-DDGyXVqt.js} +1 -1
  180. package/dist/client/assets/{use-mcp-tools-DC8eCy-w.js → use-mcp-tools-Bjw8Al4t.js} +1 -1
  181. package/dist/client/assets/{use-members-C9gbPBao.js → use-members-BgUCCytn.js} +1 -1
  182. package/dist/client/assets/{use-mobile-DIOB-DCN.js → use-mobile-CdQ7GD63.js} +1 -1
  183. package/dist/client/assets/{use-preferences-qk_JhJjz.js → use-preferences-DtqNUewD.js} +1 -1
  184. package/dist/client/assets/{use-project-Dvx6-k_Y.js → use-project-BLa-O87q.js} +1 -1
  185. package/dist/client/assets/{use-settings-modal-CUe0tjP0.js → use-settings-modal-zhxm_hJs.js} +1 -1
  186. package/dist/client/assets/{use-view-mode-Bi_Es492.js → use-view-mode-DR1UXItY.js} +1 -1
  187. package/dist/client/assets/{use-virtual-mcp-ChE8-Wo8.js → use-virtual-mcp-CRuIChms.js} +1 -1
  188. package/dist/client/assets/useInfiniteQuery-BkDSA4lf.js +1 -0
  189. package/dist/client/assets/{useMutation-Gh4yFMNI.js → useMutation-Ii52gJrH.js} +1 -1
  190. package/dist/client/assets/useQuery-D4r0gTgP.js +1 -0
  191. package/dist/client/assets/useSuspenseInfiniteQuery-DUeBy_RU.js +1 -0
  192. package/dist/client/assets/{user-BCyS3ktk.js → user-C36FlDXM.js} +1 -1
  193. package/dist/client/assets/{workflow-Bf7sFtPI.js → workflow-yIiMpRyd.js} +1 -1
  194. package/dist/client/index.html +1 -1
  195. package/package.json +1 -1
  196. package/dist/client/assets/constants-DYGFTON5.js +0 -1
  197. package/dist/client/assets/index-CIafSE2q.js +0 -1
  198. package/dist/client/assets/plugins-BiCutr_A.js +0 -1
  199. package/dist/client/assets/tasks-CzJNXMzJ.js +0 -1
  200. package/dist/client/assets/useInfiniteQuery-CVVAqN7p.js +0 -1
  201. package/dist/client/assets/useQuery-CVxx7hB-.js +0 -1
  202. package/dist/client/assets/useSuspenseInfiniteQuery-CNcwjVQv.js +0 -1
@@ -1 +1 @@
1
- import{c as X,r as H,u as ne,K as me,b$ as $e,j as s,z as de,B as te,e as xe,a3 as ge,a4 as pe,O as he,f as ke,as as ze,c0 as ae,E as Le,au as Fe}from"./index-Dg8PaM2F.js";import{P as se}from"./index-B4gZbCy7.js";import{B as Ee,a as Oe,b as _e,c as Ke}from"./breadcrumb-DcmqctbX.js";import{i as je}from"./FilterLines-DxKyYB7c.js";import{n as ye}from"./Inbox01-CJsPuSnU.js";import{i as le}from"./Loading01-Dzw6zngw.js";import{i as ve}from"./SearchMd-76viYIq-.js";import{u as be}from"./useQuery-CVxx7hB-.js";import{u as Ae}from"./useInfiniteQuery-CVVAqN7p.js";import{a as Me,f as Be,b as De}from"./registry-utils-C2bkNjwE.js";import{u as Ne,W as Ge,a as We,f as Ve,b as qe}from"./constants-CAOZXRu0.js";import{u as Ue,a as Ce,b as He}from"./use-connection-B5EMzod8.js";import{s as Je}from"./slugify-CEUa2lfQ.js";import{C as Qe,E as Ye}from"./collection-search-B2hh4H1q.js";import{M as ce}from"./mcp-server-card-Dy3JRR7A.js";import{I as Ze}from"./input-CND44J7m.js";import{a as Se,b as we,P as Ie}from"./popover-BU5fdRLQ.js";import{i as Te}from"./Check-DRSTTkKR.js";import{t as Re}from"./ChevronDown-BPhOar5T.js";import{s as re}from"./XClose-D7h5wS43.js";import{s as Xe}from"./Plus-BC0Ft83h.js";import{u as et}from"./use-binding-nxABOdXI.js";import{L as tt,u as st}from"./localstorage-keys-CNAuB30D.js";import"./tooltip-bT-cZrsF.js";import"./index-C22vXC_0.js";import"./ChevronRight-DTivSZqE.js";import"./infiniteQueryObserver-B4wp77Uw.js";import"./use-collections-BnjyA1PI.js";import"./useMutation-Gh4yFMNI.js";import"./CheckVerified02-CqzfbAzd.js";import"./Globe02-p2rrXnC7.js";import"./Lock01-Bkk7gZu7.js";import"./Terminal-DDhqRjyh.js";import"./card-DVqrMiKt.js";import"./integration-icon-CvHqYvDF.js";import"./Container-HVG2i2C-.js";import"./github-icon-Dp3wHhYE.js";import"./binder-BE2JGf_w.js";function rt(t,e){const r=X.c(4),[l,d]=H.useState(t),n=H.useRef(null),i=H.useRef(!0);let c,m;return r[0]!==e||r[1]!==t?(c=()=>{if(i.current){i.current=!1;return}return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{d(t)},e),()=>{n.current&&clearTimeout(n.current)}},m=[t,e],r[0]=e,r[1]=t,r[2]=c,r[3]=m):(c=r[2],m=r[3]),H.useEffect(c,m),l}function lt(t){const e=X.c(14),r=H.useRef(null),l=`scroll-position:${t}`,d=H.useRef(null);let n;e[0]!==l?(n=()=>{r.current&&sessionStorage.setItem(l,String(r.current.scrollTop))},e[0]=l,e[1]=n):n=e[1];const i=n;let c;e[2]!==l?(c=()=>{if(d.current===l)return;const x=sessionStorage.getItem(l);if(x&&r.current){const z=Number.parseInt(x,10);r.current.scrollTop=z}d.current=l},e[2]=l,e[3]=c):c=e[3];const m=c;let u;e[4]!==m||e[5]!==l?(u=()=>{d.current!==l&&m()},e[4]=m,e[5]=l,e[6]=u):u=e[6];const T=u;let o;e[7]!==m||e[8]!==l?(o=x=>{r.current=x,x&&d.current!==l&&requestAnimationFrame(()=>{m()})},e[7]=m,e[8]=l,e[9]=o):o=e[9];const p=o;let a;return e[10]!==T||e[11]!==i||e[12]!==p?(a={scrollRef:p,saveScrollPosition:i,handleScroll:T},e[10]=T,e[11]=i,e[12]=p,e[13]=a):a=e[13],a}const nt=24;function it(t){const e=X.c(54),{registryId:r,listToolName:l,filtersToolName:d,search:n}=t,{org:i}=ne();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[m,u]=H.useState(c);let T;e[1]===Symbol.for("react.memo_cache_sentinel")?(T=[],e[1]=T):T=e[1];const[o,p]=H.useState(T),a=r||null;let x;e[2]!==i.id||e[3]!==a?(x={connectionId:a,orgId:i.id},e[2]=i.id,e[3]=a,e[4]=x):x=e[4];const z=Ne(x),R=!!d;let C;e[5]!==d||e[6]!==r?(C=me.toolCall(r,d||"no-filters","{}"),e[5]=d,e[6]=r,e[7]=C):C=e[7];let y;e[8]!==z||e[9]!==d?(y=async()=>{if(!d)return{tags:[],categories:[]};const O=await z.callTool({name:d,arguments:{}});return O.structuredContent??O},e[8]=z,e[9]=d,e[10]=y):y=e[10];let L;e[11]!==C||e[12]!==y?(L={queryKey:C,queryFn:y,staleTime:36e5,retry:2},e[11]=C,e[12]=y,e[13]=L):L=e[13];const{data:S}=be(L);let h,v,k;if(e[14]!==l||e[15]!==r||e[16]!==n||e[17]!==o||e[18]!==m){const O=n?.trim()?{operator:"or",conditions:[{field:["name"],operator:"contains",value:n},{field:["title"],operator:"contains",value:n},{field:["description"],operator:"contains",value:n}]}:void 0;h={limit:nt,...m.length>0&&{tags:m},...o.length>0&&{categories:o},...O&&{where:O}},k=Ae,v=me.toolCall(r,l,JSON.stringify(h)),e[14]=l,e[15]=r,e[16]=n,e[17]=o,e[18]=m,e[19]=h,e[20]=v,e[21]=k}else h=e[19],v=e[20],k=e[21];let P;e[22]!==z||e[23]!==h||e[24]!==l?(P=async O=>{const{pageParam:U}=O,K=U?{...h,cursor:U}:h,f=await z.callTool({name:l,arguments:K});return f.structuredContent??f},e[22]=z,e[23]=h,e[24]=l,e[25]=P):P=e[25];let $;e[26]!==P||e[27]!==v?($={queryKey:v,queryFn:P,initialPageParam:void 0,getNextPageParam:ot,staleTime:36e5,placeholderData:$e,retry:2},e[26]=P,e[27]=v,e[28]=$):$=e[28];const{data:b,fetchNextPage:w,hasNextPage:g,isFetchingNextPage:N,isFetching:j,isLoading:F,error:I}=k($);let E;e:{if(!b?.pages||b.pages.length===0){E=null;break e}const O=b.pages[0];if(typeof O=="object"&&O!==null&&"totalCount"in O&&typeof O.totalCount=="number"){E=O.totalCount;break e}E=null}const A=E,_=b?.pages;let G;e[29]!==_?(G=Me(_),e[29]=_,e[30]=G):G=e[30];const W=G;let J;e[31]!==n||e[32]!==o.length||e[33]!==m.length?(J=m.length>0||o.length>0||!!n?.trim(),e[31]=n,e[32]=o.length,e[33]=m.length,e[34]=J):J=e[34];const Y=J,Z=j&&!N&&!F&&Y;let V;e[35]!==w||e[36]!==g||e[37]!==N?(V=()=>{g&&!N&&w()},e[35]=w,e[36]=g,e[37]=N,e[38]=V):V=e[38];const Q=V,q=g??!1,M=R?S?.tags:void 0,B=R?S?.categories:void 0;let D;return e[39]!==Y||e[40]!==j||e[41]!==N||e[42]!==Z||e[43]!==F||e[44]!==W||e[45]!==I||e[46]!==Q||e[47]!==o||e[48]!==m||e[49]!==q||e[50]!==M||e[51]!==B||e[52]!==A?(D={items:W,totalCount:A,hasMore:q,isLoadingMore:N,isFiltering:Z,isInitialLoading:F,isFetching:j,error:I,loadMore:Q,availableTags:M,availableCategories:B,selectedTags:m,selectedCategories:o,setSelectedTags:u,setSelectedCategories:p,hasActiveFilters:Y},e[39]=Y,e[40]=j,e[41]=N,e[42]=Z,e[43]=F,e[44]=W,e[45]=I,e[46]=Q,e[47]=o,e[48]=m,e[49]=q,e[50]=M,e[51]=B,e[52]=A,e[53]=D):D=e[53],D}function ot(t){if(typeof t=="object"&&t!==null){const e=t.nextCursor||t.cursor;if(e)return e}}function at(t,e){return[...t].sort((r,l)=>l.count-r.count).slice(0,e)}function fe(t){const e=X.c(52),{label:r,items:l,selectedItems:d,onToggle:n,onClear:i}=t,[c,m]=H.useState(""),[u,T]=H.useState(!1);let o,p,a,x,z,R,C,y,L,S,h;if(e[0]!==l||e[1]!==r||e[2]!==n||e[3]!==u||e[4]!==c||e[5]!==d){const w=[...c?l.filter(_=>_.value.toLowerCase().includes(c.toLowerCase())):l].sort(ct);a=d.length,p=Se,L=u,S=T;let g;e[17]!==r?(g=s.jsx("span",{children:r}),e[17]=r,e[18]=g):g=e[18];let N;e[19]!==a?(N=a>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:a}),e[19]=a,e[20]=N):N=e[20];let j;e[21]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Re,{size:14,className:"opacity-50"}),e[21]=j):j=e[21],e[22]!==N||e[23]!==g?(h=s.jsx(we,{asChild:!0,children:s.jsxs(te,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[g,N,j]})}),e[22]=N,e[23]=g,e[24]=h):h=e[24],o=Ie,R="w-64 p-0",C="start";let F;e[25]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(ve,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=F):F=e[25];let I;e[26]!==r?(I=r.toLowerCase(),e[26]=r,e[27]=I):I=e[27];const E=`Search ${I}...`;let A;e[28]===Symbol.for("react.memo_cache_sentinel")?(A=_=>m(_.target.value),e[28]=A):A=e[28],e[29]!==c||e[30]!==E?(y=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:[F,s.jsx(Ze,{type:"text",placeholder:E,value:c,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]=c,e[30]=E,e[31]=y):y=e[31],x="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",z=w.length===0?s.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):w.map(_=>{const G=d.includes(_.value);return s.jsxs("button",{onClick:()=>n(_.value),className:de("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",G?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[s.jsxs("span",{className:"truncate flex items-center gap-2",children:[G&&s.jsx(Te,{size:16,className:"text-muted-foreground shrink-0"}),_.value]}),s.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:_.count})]},_.value)}),e[0]=l,e[1]=r,e[2]=n,e[3]=u,e[4]=c,e[5]=d,e[6]=o,e[7]=p,e[8]=a,e[9]=x,e[10]=z,e[11]=R,e[12]=C,e[13]=y,e[14]=L,e[15]=S,e[16]=h}else o=e[6],p=e[7],a=e[8],x=e[9],z=e[10],R=e[11],C=e[12],y=e[13],L=e[14],S=e[15],h=e[16];let v;e[32]!==x||e[33]!==z?(v=s.jsx("div",{className:x,children:z}),e[32]=x,e[33]=z,e[34]=v):v=e[34];let k;e[35]!==r||e[36]!==i||e[37]!==a?(k=a>0&&s.jsx("div",{className:"p-2 border-t border-border",children:s.jsxs(te,{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]=a,e[38]=k):k=e[38];let P;e[39]!==o||e[40]!==k||e[41]!==R||e[42]!==C||e[43]!==y||e[44]!==v?(P=s.jsxs(o,{className:R,align:C,children:[y,v,k]}),e[39]=o,e[40]=k,e[41]=R,e[42]=C,e[43]=y,e[44]=v,e[45]=P):P=e[45];let $;return e[46]!==p||e[47]!==P||e[48]!==L||e[49]!==S||e[50]!==h?($=s.jsxs(p,{open:L,onOpenChange:S,children:[h,P]}),e[46]=p,e[47]=P,e[48]=L,e[49]=S,e[50]=h,e[51]=$):$=e[51],$}function ct(t,e){return e.count-t.count}function mt(t){const e=X.c(67),{availableTags:r,availableCategories:l,selectedTags:d,selectedCategories:n,onTagChange:i,onCategoryChange:c}=t,m=r&&r.length>0||l&&l.length>0,u=d.length>0||n.length>0;if(!m)return null;let T;e[0]!==i||e[1]!==d?(T=g=>{d.includes(g)?i(d.filter(N=>N!==g)):i([...d,g])},e[0]=i,e[1]=d,e[2]=T):T=e[2];const o=T;let p;e[3]!==c||e[4]!==n?(p=g=>{n.includes(g)?c(n.filter(N=>N!==g)):c([...n,g])},e[3]=c,e[4]=n,e[5]=p):p=e[5];const a=p;let x;e[6]!==c||e[7]!==i?(x=()=>{i([]),c([])},e[6]=c,e[7]=i,e[8]=x):x=e[8];const z=x;let R,C,y,L,S,h,v;if(e[9]!==l||e[10]!==r||e[11]!==c||e[12]!==i||e[13]!==n||e[14]!==d||e[15]!==a||e[16]!==o){const g=l?at(l,6):[];R=n,C=d,v=new Set(g.map(dt)),S="flex items-center border-b border-border";let N;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:s.jsx(je,{size:16})}),e[24]=N):N=e[24];let j;e[25]!==l||e[26]!==c||e[27]!==n||e[28]!==a?(j=l&&l.length>0&&s.jsx(fe,{label:"Categories",items:l,selectedItems:n,onToggle:a,onClear:()=>c([])}),e[25]=l,e[26]=c,e[27]=n,e[28]=a,e[29]=j):j=e[29];let F;e[30]!==r||e[31]!==i||e[32]!==d||e[33]!==o?(F=r&&r.length>0&&s.jsx(fe,{label:"Tags",items:r,selectedItems:d,onToggle:o,onClear:()=>i([])}),e[30]=r,e[31]=i,e[32]=d,e[33]=o,e[34]=F):F=e[34],e[35]!==F||e[36]!==j?(h=s.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[N,j,F]}),e[35]=F,e[36]=j,e[37]=h):h=e[37],y="flex items-center gap-3 flex-wrap px-5 py-3";let I;e[38]!==n||e[39]!==a?(I=E=>{const A=n.includes(E.value);return s.jsxs("div",{onClick:()=>a(E.value),className:de("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:E.value}),A&&s.jsx("span",{onClick:_=>{_.stopPropagation(),a(E.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},E.value)},e[38]=n,e[39]=a,e[40]=I):I=e[40],L=g.map(I),e[9]=l,e[10]=r,e[11]=c,e[12]=i,e[13]=n,e[14]=d,e[15]=a,e[16]=o,e[17]=R,e[18]=C,e[19]=y,e[20]=L,e[21]=S,e[22]=h,e[23]=v}else R=e[17],C=e[18],y=e[19],L=e[20],S=e[21],h=e[22],v=e[23];let k;if(e[41]!==R||e[42]!==a||e[43]!==v){let g;e[45]!==v?(g=j=>!v.has(j),e[45]=v,e[46]=g):g=e[46];let N;e[47]!==a?(N=j=>s.jsxs("div",{onClick:()=>a(j),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:j}),s.jsx("span",{onClick:F=>{F.stopPropagation(),a(j)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`cat-${j}`),e[47]=a,e[48]=N):N=e[48],k=R.filter(g).map(N),e[41]=R,e[42]=a,e[43]=v,e[44]=k}else k=e[44];let P;if(e[49]!==C||e[50]!==o){let g;e[52]!==o?(g=N=>s.jsxs("div",{onClick:()=>o(N),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:N}),s.jsx("span",{onClick:j=>{j.stopPropagation(),o(N)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`tag-${N}`),e[52]=o,e[53]=g):g=e[53],P=C.map(g),e[49]=C,e[50]=o,e[51]=P}else P=e[51];let $;e[54]!==z||e[55]!==u?($=u&&s.jsxs(te,{variant:"ghost",size:"sm",onClick:z,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]=z,e[55]=u,e[56]=$):$=e[56];let b;e[57]!==$||e[58]!==y||e[59]!==L||e[60]!==k||e[61]!==P?(b=s.jsxs("div",{className:y,children:[L,k,P,$]}),e[57]=$,e[58]=y,e[59]=L,e[60]=k,e[61]=P,e[62]=b):b=e[62];let w;return e[63]!==b||e[64]!==S||e[65]!==h?(w=s.jsxs("div",{className:S,children:[h,b]}),e[63]=b,e[64]=S,e[65]=h,e[66]=w):w=e[66],w}function dt(t){return t.value}function ut(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 Pe(t){return t.verified===!0||t._meta?.["mcp.mesh"]?.verified===!0}function ue(t){return t._meta?.["mcp.mesh"]?.official===!0}function ft(t){const e=X.c(58),{registryId:r,listToolName:l,filtersToolName:d,storePrivateOnly:n}=t,[i,c]=H.useState(""),m=rt(i,300),u=xe(),{org:T}=ne(),{scrollRef:o,saveScrollPosition:p,handleScroll:a}=lt(`store-discovery:${r}`);let x;e[0]!==m||e[1]!==d||e[2]!==l||e[3]!==r?(x={registryId:r,listToolName:l,filtersToolName:d,search:m},e[0]=m,e[1]=d,e[2]=l,e[3]=r,e[4]=x):x=e[4];const{items:z,hasMore:R,isLoadingMore:C,isInitialLoading:y,isFetching:L,error:S,loadMore:h,availableTags:v,availableCategories:k,selectedTags:P,selectedCategories:$,setSelectedTags:b,setSelectedCategories:w,hasActiveFilters:g}=it(x);let N;e[5]!==z||e[6]!==i?(N=i?ut(z,i):z,e[5]=z,e[6]=i,e[7]=N):N=e[7];const j=N;let F;e[8]!==j||e[9]!==n?(F=n?j.filter(ht):j,e[8]=j,e[9]=n,e[10]=F):F=e[10];const I=F,E=(i!==m||L)&&!y&&!!i;let A;e[11]!==I?(A=I.filter(ue),e[11]=I,e[12]=A):A=e[12];const _=A;let G;e[13]!==I?(G=I.filter(pt),e[13]=I,e[14]=G):G=e[14];const W=G;let J;e[15]!==I?(J=I.filter(gt),e[15]=I,e[16]=J):J=e[16];const Y=J;let Z;e[17]!==u||e[18]!==T.slug||e[19]!==r||e[20]!==p?(Z=K=>{p();const f=Je(K.name||K.title||K.server?.title||""),ee=typeof K.id=="string"&&K.id.includes("/"),ie=typeof K.server?.name=="string"&&K.server.name.includes("/"),oe=ee&&!ie?K.id:K.server?.name||K.id||"";u({to:"/$org/$project/store/$appName",params:{org:T.slug,project:he,appName:f},search:{registryId:r,serverName:oe}})},e[17]=u,e[18]=T.slug,e[19]=r,e[20]=p,e[21]=Z):Z=e[21];const V=Z;let Q;e[22]!==a||e[23]!==R||e[24]!==C||e[25]!==h?(Q=K=>{if(a(),!R||C)return;const f=K.currentTarget;f.scrollHeight-f.scrollTop-f.clientHeight<200&&h()},e[22]=a,e[23]=R,e[24]=C,e[25]=h,e[26]=Q):Q=e[26];const q=Q;let M;e[27]!==E||e[28]!==i?(M=s.jsx(Qe,{value:i,onChange:c,placeholder:"Search for an MCP Server...",isSearching:E}),e[27]=E,e[28]=i,e[29]=M):M=e[29];let B;e[30]!==k||e[31]!==v||e[32]!==$||e[33]!==P||e[34]!==w||e[35]!==b?(B=s.jsx(mt,{availableTags:v,availableCategories:k,selectedTags:P,selectedCategories:$,onTagChange:b,onCategoryChange:w}),e[30]=k,e[31]=v,e[32]=$,e[33]=P,e[34]=w,e[35]=b,e[36]=B):B=e[36];let D;e[37]!==Y||e[38]!==S||e[39]!==V||e[40]!==g||e[41]!==R||e[42]!==y||e[43]!==C||e[44]!==E||e[45]!==_||e[46]!==i||e[47]!==W||e[48]!==I.length?(D=s.jsx("div",{className:"p-5",children:s.jsx("div",{children:S&&!y?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(ge,{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(te,{variant:"outline",size:"sm",onClick:xt,children:[s.jsx(pe,{className:"size-4"}),"Try again"]})]}):y?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..."})]}):I.length===0&&!g?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ye,{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."})]}):I.length===0&&g&&!i?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(je,{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&&I.length===0&&!E?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ve,{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:[E&&I.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..."})]}),_.length>0&&s.jsx(ce,{items:_,title:"Official",onItemClick:V}),W.length>0&&s.jsx(ce,{items:W,title:"Verified",onItemClick:V}),Y.length>0&&s.jsx(ce,{items:Y,title:_.length>0||W.length>0?"All":"",onItemClick:V}),R&&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[37]=Y,e[38]=S,e[39]=V,e[40]=g,e[41]=R,e[42]=y,e[43]=C,e[44]=E,e[45]=_,e[46]=i,e[47]=W,e[48]=I.length,e[49]=D):D=e[49];let O;e[50]!==q||e[51]!==o||e[52]!==D?(O=s.jsx("div",{ref:o,className:"flex-1 overflow-y-auto",onScroll:q,children:D}),e[50]=q,e[51]=o,e[52]=D,e[53]=O):O=e[53];let U;return e[54]!==B||e[55]!==O||e[56]!==M?(U=s.jsxs("div",{className:"flex flex-col h-full",children:[M,B,O]}),e[54]=B,e[55]=O,e[56]=M,e[57]=U):U=e[57],U}function xt(){return window.location.reload()}function gt(t){return!Pe(t)&&!ue(t)}function pt(t){return Pe(t)&&!ue(t)}function ht(t){return t.is_public!==!0}function jt(t){const e=X.c(11),{registryId:r,storePrivateOnly:l}=t,d=Ue(r),n=d?.tools;let i;e[0]!==n?(i=Be(n),e[0]=n,e[1]=i):i=e[1];const c=i;if(!c){let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(ye,{className:"size-8 text-muted-foreground"})}),e[2]=a):a=e[2];let x;return e[3]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[a,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]=x):x=e[3],x}const m=d?.tools;let u;e[4]!==m?(u=De(m),e[4]=m,e[5]=u):u=e[5];const o=u||void 0;let p;return e[6]!==c||e[7]!==r||e[8]!==l||e[9]!==o?(p=s.jsx(ft,{registryId:r,listToolName:c,filtersToolName:o,storePrivateOnly:l}),e[6]=c,e[7]=r,e[8]=l,e[9]=o,e[10]=p):p=e[10],p}function yt(t){const e=X.c(43),{registries:r,value:l,onValueChange:d,onAddWellKnown:n,wellKnownRegistries:i,placeholder:c}=t,m=c===void 0?"Select a registry...":c,[u,T]=H.useState(!1);let o,p,a,x,z,R,C,y;if(e[0]!==u||e[1]!==m||e[2]!==r||e[3]!==l){let b;e[12]!==l?(b=g=>g.id===l,e[12]=l,e[13]=b):b=e[13];const w=r.find(b);p=Se,C=u,y=T,o=we,R=!0,a="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(x=de("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]=x):x=e[14],z=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:m}),e[0]=u,e[1]=m,e[2]=r,e[3]=l,e[4]=o,e[5]=p,e[6]=a,e[7]=x,e[8]=z,e[9]=R,e[10]=C,e[11]=y}else o=e[4],p=e[5],a=e[6],x=e[7],z=e[8],R=e[9],C=e[10],y=e[11];let L;e[15]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(Re,{className:"size-4 opacity-50"}),e[15]=L):L=e[15];let S;e[16]!==a||e[17]!==x||e[18]!==z?(S=s.jsxs("button",{type:a,className:x,children:[z,L]}),e[16]=a,e[17]=x,e[18]=z,e[19]=S):S=e[19];let h;e[20]!==o||e[21]!==R||e[22]!==S?(h=s.jsx(o,{asChild:R,children:S}),e[20]=o,e[21]=R,e[22]=S,e[23]=h):h=e[23];let v;if(e[24]!==d||e[25]!==r||e[26]!==l){let b;e[28]!==d||e[29]!==l?(b=w=>s.jsxs("button",{type:"button",onClick:()=>{d(w.id??w.name),T(!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(Te,{className:"size-4"})})]},w.id??w.name),e[28]=d,e[29]=l,e[30]=b):b=e[30],v=r.map(b),e[24]=d,e[25]=r,e[26]=l,e[27]=v}else v=e[27];let k;e[31]!==n||e[32]!==i?(k=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(b=>s.jsxs("button",{type:"button",onClick:()=>{n(b),T(!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:[b.icon?s.jsx("img",{src:b.icon,alt:b.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:b.title.slice(0,1).toUpperCase()}),s.jsx("span",{className:"flex-1",children:b.title})]}),s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:s.jsx(Xe,{size:16})})]},b.id??b.title))]}),e[31]=n,e[32]=i,e[33]=k):k=e[33];let P;e[34]!==v||e[35]!==k?(P=s.jsxs(Ie,{align:"end",className:"w-auto min-w-[200px] p-1",children:[v,k]}),e[34]=v,e[35]=k,e[36]=P):P=e[36];let $;return e[37]!==p||e[38]!==h||e[39]!==P||e[40]!==C||e[41]!==y?($=s.jsxs(p,{open:C,onOpenChange:y,children:[h,P]}),e[37]=p,e[38]=h,e[39]=P,e[40]=C,e[41]=y,e[42]=$):$=e[42],$}function vt({registries:t,onConnected:e}){const r=Ce(),{org:{slug:l}}=ne(),{data:d}=ke.useSession(),n=xe(),[i,c]=H.useState(!1),m=t[0],u=async()=>{if(!(!m||!d?.user?.id)){c(!0);try{const o=await r.create.mutateAsync(m);e?.(o.id)}finally{c(!1)}}},T=()=>{n({to:"/$org/$project/mcps",params:{org:l,project:he},search:{action:"create"}})};return s.jsx(Ye,{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(te,{variant:"outline",onClick:u,disabled:i||!m,children:[m?.icon&&s.jsx("img",{src:m.icon,alt:"",className:"size-4"}),i?"Installing...":"Install Registry"]}),s.jsx(te,{variant:"outline",onClick:T,children:"Custom Connection"})]})})}function bt(t){const e=X.c(15),{error:r,onRetry:l,registryName:d}=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(ge,{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 c;e[2]!==d?(c=s.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",s.jsx("strong",{children:d})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=d,e[3]=c):c=e[3];let m;e[4]!==r?(m=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]=m):m=e[5];let u;e[6]!==c||e[7]!==m?(u=s.jsxs("div",{className:"space-y-2",children:[i,c,m]}),e[6]=c,e[7]=m,e[8]=u):u=e[8];let T;e[9]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(pe,{className:"size-4"}),e[9]=T):T=e[9];let o;e[10]!==l?(o=s.jsxs(te,{variant:"outline",size:"sm",onClick:l,children:[T,"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 as(){const t=X.c(53),{org:e,project:r}=ne(),l=He(),d=Ce(),n=ze(),i=n.location.pathname.includes("/store/")&&n.location.pathname.split("/").length>3,c=et(l);let m;t[0]!==e.id?(m=Ge.SELF(e.id),t[0]=e.id,t[1]=m):m=t[1];const u=m,T=r.enabledPlugins,o=T==null||T.includes(ae);let p;t[2]!==u?(p=(f,ee)=>f.id===u?1:ee.id===u?-1:0,t[2]=u,t[3]=p):p=t[3];const a=c.filter(f=>f.id!==u?!0:o).sort(p);let x;t[4]!==u?(x=f=>f.id===u,t[4]=u,t[5]=x):x=t[5];const z=a.some(x);let R;t[6]!==e.id?(R={connectionId:We,orgId:e.id},t[6]=e.id,t[7]=R):R=t[7];const C=Ne(R);let y;t[8]!==r.id||t[9]!==C?(y=async()=>{const f=await C.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:ae}});return f.structuredContent??f},t[8]=r.id,t[9]=C,t[10]=y):y=t[10];const{data:L}=be({queryKey:me.projectPluginConfig(r.id??"",ae),queryFn:y,enabled:z&&!!r.id,staleTime:6e4}),S=L?.config?.settings;let h;t[11]!==S||t[12]!==u?(h=f=>f.id===u&&S?{id:f.id,name:S.registryName||f.title,icon:S.registryIcon||f.icon||void 0}:{id:f.id,name:f.title,icon:f.icon||void 0},t[11]=S,t[12]=u,t[13]=h):h=t[13];const v=a.map(h);let k;t[14]!==e.slug?(k=tt.selectedRegistry(e.slug),t[14]=e.slug,t[15]=k):k=t[15];const[P,$]=st(k,Ct);let b;t[16]!==P?(b=f=>f.id===P,t[16]=P,t[17]=b):b=t[17];const w=a.find(b);let g;t[18]!==u?(g=f=>f.id!==u,t[18]=u,t[19]=g):g=t[19];const N=a.find(g),j=w?.id||N?.id||a[0]?.id||"",F=j===u&&S?.storePrivateOnly===!0;let I;t[20]!==e.id?(I=Ve(e.id),t[20]=e.id,t[21]=I):I=t[21];let E;t[22]!==I?(E=[I],t[22]=I,t[23]=E):E=t[23];const A=E;let _;t[24]===Symbol.for("react.memo_cache_sentinel")?(_=[qe()],t[24]=_):_=t[24];const G=_;let W;t[25]!==d.create||t[26]!==$?(W=async f=>{const ee=await d.create.mutateAsync(f);$(ee.id)},t[25]=d.create,t[26]=$,t[27]=W):W=t[27];const J=W,Y=new Set(a.map(Nt)),Z=A.filter(f=>f.id&&!Y.has(f.id)),V=G.filter(f=>f.id&&!Y.has(f.id));if(i){let f;return t[28]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Fe,{}),t[28]=f):f=t[28],f}let Q;t[29]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(se.Header.Left,{children:s.jsx(Ee,{children:s.jsx(Oe,{children:s.jsx(_e,{children:s.jsx(Ke,{children:"Store"})})})})}),t[29]=Q):Q=t[29];let q;t[30]!==J?(q=async f=>J(f),t[30]=J,t[31]=q):q=t[31];let M;t[32]!==Z||t[33]!==j||t[34]!==v||t[35]!==$||t[36]!==q?(M=s.jsxs(se.Header,{children:[Q,s.jsx(se.Header.Right,{children:s.jsx(yt,{wellKnownRegistries:Z,registries:v,value:j,onValueChange:$,onAddWellKnown:q,placeholder:"Select store..."})})]}),t[32]=Z,t[33]=j,t[34]=v,t[35]=$,t[36]=q,t[37]=M):M=t[37];let B;t[38]!==j||t[39]!==v?(B=f=>{const{error:ee,resetError:ie}=f;return s.jsx(bt,{error:ee,onRetry:ie,registryName:v.find(oe=>oe.id===j)?.name??"registry"})},t[38]=j,t[39]=v,t[40]=B):B=t[40];let D;t[41]===Symbol.for("react.memo_cache_sentinel")?(D=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]=D):D=t[41];let O;t[42]!==V||t[43]!==j||t[44]!==$||t[45]!==F?(O=s.jsx(H.Suspense,{fallback:D,children:j?s.jsx(jt,{registryId:j,storePrivateOnly:F}):s.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:s.jsx(vt,{registries:V,onConnected:f=>{$(f)}})})}),t[42]=V,t[43]=j,t[44]=$,t[45]=F,t[46]=O):O=t[46];let U;t[47]!==B||t[48]!==O?(U=s.jsx(se.Content,{children:s.jsx(Le,{fallback:B,children:O})}),t[47]=B,t[48]=O,t[49]=U):U=t[49];let K;return t[50]!==M||t[51]!==U?(K=s.jsxs(se,{children:[M,U]}),t[50]=M,t[51]=U,t[52]=K):K=t[52],K}function Nt(t){return t.id}function Ct(t){return t??""}export{as as default};
1
+ import{c as X,r as H,u as ne,K as me,c0 as ke,j as s,z as de,B as te,e as xe,a3 as ge,a4 as pe,O as he,f as ze,as as $e,c1 as ae,E as Le,au as Fe}from"./index-vT7d19FZ.js";import{P as se}from"./index-CJPDgn39.js";import{B as Ee,a as Oe,b as _e,c as Ke}from"./breadcrumb-ByrAiUdw.js";import{i as je}from"./FilterLines-CJ9-vjsQ.js";import{n as ye}from"./Inbox01-D3mauHme.js";import{i as le}from"./Loading01-BIsjWAvK.js";import{i as ve}from"./SearchMd-BmSd1Zrr.js";import{u as be}from"./useQuery-D4r0gTgP.js";import{u as Ae}from"./useInfiniteQuery-BkDSA4lf.js";import{a as Me,f as Be,b as De}from"./registry-utils-B--947zK.js";import{u as Ne,W as Ge,a as We,f as Ve,b as qe}from"./constants-B_oRauum.js";import{u as Ue,a as Ce,b as He}from"./use-connection-B_1jjyea.js";import{s as Je}from"./slugify-CEUa2lfQ.js";import{C as Qe,E as Ye}from"./collection-search-DDTa4Eoe.js";import{M as ce}from"./mcp-server-card-CX4PlVNQ.js";import{I as Ze}from"./input-BMlethki.js";import{a as Se,b as we,P as Ie}from"./popover-De4smjIR.js";import{i as Te}from"./Check-BBM5VLGH.js";import{t as Re}from"./ChevronDown-p0dnpCad.js";import{s as re}from"./XClose-DST1pf0W.js";import{s as Xe}from"./Plus-fVSS0uJH.js";import{u as et}from"./use-binding-Co6qMEtg.js";import{L as tt,u as st}from"./localstorage-keys-BHX8QMmu.js";import"./tooltip-DEohEJQ4.js";import"./index-DhQo4qLq.js";import"./ChevronRight-CMFxJNnL.js";import"./infiniteQueryObserver-gYoJgvdT.js";import"./use-collections-B5FU68I3.js";import"./useMutation-Ii52gJrH.js";import"./CheckVerified02-D0Wy8oW-.js";import"./Globe02-B6GbfA8y.js";import"./Lock01-a376IKgn.js";import"./Terminal-TgyMcolz.js";import"./card-CsGWTYNA.js";import"./integration-icon-Cjy2E2LQ.js";import"./Container-BHcLe4to.js";import"./github-icon-Dp3wHhYE.js";import"./binder-DoPAL9ZH.js";function rt(t,e){const r=X.c(4),[l,d]=H.useState(t),n=H.useRef(null),i=H.useRef(!0);let c,m;return r[0]!==e||r[1]!==t?(c=()=>{if(i.current){i.current=!1;return}return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{d(t)},e),()=>{n.current&&clearTimeout(n.current)}},m=[t,e],r[0]=e,r[1]=t,r[2]=c,r[3]=m):(c=r[2],m=r[3]),H.useEffect(c,m),l}function lt(t){const e=X.c(14),r=H.useRef(null),l=`scroll-position:${t}`,d=H.useRef(null);let n;e[0]!==l?(n=()=>{r.current&&sessionStorage.setItem(l,String(r.current.scrollTop))},e[0]=l,e[1]=n):n=e[1];const i=n;let c;e[2]!==l?(c=()=>{if(d.current===l)return;const x=sessionStorage.getItem(l);if(x&&r.current){const $=Number.parseInt(x,10);r.current.scrollTop=$}d.current=l},e[2]=l,e[3]=c):c=e[3];const m=c;let u;e[4]!==m||e[5]!==l?(u=()=>{d.current!==l&&m()},e[4]=m,e[5]=l,e[6]=u):u=e[6];const T=u;let o;e[7]!==m||e[8]!==l?(o=x=>{r.current=x,x&&d.current!==l&&requestAnimationFrame(()=>{m()})},e[7]=m,e[8]=l,e[9]=o):o=e[9];const p=o;let a;return e[10]!==T||e[11]!==i||e[12]!==p?(a={scrollRef:p,saveScrollPosition:i,handleScroll:T},e[10]=T,e[11]=i,e[12]=p,e[13]=a):a=e[13],a}const nt=24;function it(t){const e=X.c(54),{registryId:r,listToolName:l,filtersToolName:d,search:n}=t,{org:i}=ne();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[m,u]=H.useState(c);let T;e[1]===Symbol.for("react.memo_cache_sentinel")?(T=[],e[1]=T):T=e[1];const[o,p]=H.useState(T),a=r||null;let x;e[2]!==i.id||e[3]!==a?(x={connectionId:a,orgId:i.id},e[2]=i.id,e[3]=a,e[4]=x):x=e[4];const $=Ne(x),R=!!d;let C;e[5]!==d||e[6]!==r?(C=me.toolCall(r,d||"no-filters","{}"),e[5]=d,e[6]=r,e[7]=C):C=e[7];let y;e[8]!==$||e[9]!==d?(y=async()=>{if(!d)return{tags:[],categories:[]};const O=await $.callTool({name:d,arguments:{}});return O.structuredContent??O},e[8]=$,e[9]=d,e[10]=y):y=e[10];let L;e[11]!==C||e[12]!==y?(L={queryKey:C,queryFn:y,staleTime:36e5,retry:2},e[11]=C,e[12]=y,e[13]=L):L=e[13];const{data:S}=be(L);let h,v,z;if(e[14]!==l||e[15]!==r||e[16]!==n||e[17]!==o||e[18]!==m){const O=n?.trim()?{operator:"or",conditions:[{field:["name"],operator:"contains",value:n},{field:["title"],operator:"contains",value:n},{field:["description"],operator:"contains",value:n}]}:void 0;h={limit:nt,...m.length>0&&{tags:m},...o.length>0&&{categories:o},...O&&{where:O}},z=Ae,v=me.toolCall(r,l,JSON.stringify(h)),e[14]=l,e[15]=r,e[16]=n,e[17]=o,e[18]=m,e[19]=h,e[20]=v,e[21]=z}else h=e[19],v=e[20],z=e[21];let P;e[22]!==$||e[23]!==h||e[24]!==l?(P=async O=>{const{pageParam:U}=O,K=U?{...h,cursor:U}:h,f=await $.callTool({name:l,arguments:K});return f.structuredContent??f},e[22]=$,e[23]=h,e[24]=l,e[25]=P):P=e[25];let k;e[26]!==P||e[27]!==v?(k={queryKey:v,queryFn:P,initialPageParam:void 0,getNextPageParam:ot,staleTime:36e5,placeholderData:ke,retry:2},e[26]=P,e[27]=v,e[28]=k):k=e[28];const{data:b,fetchNextPage:w,hasNextPage:g,isFetchingNextPage:N,isFetching:j,isLoading:F,error:I}=z(k);let E;e:{if(!b?.pages||b.pages.length===0){E=null;break e}const O=b.pages[0];if(typeof O=="object"&&O!==null&&"totalCount"in O&&typeof O.totalCount=="number"){E=O.totalCount;break e}E=null}const A=E,_=b?.pages;let G;e[29]!==_?(G=Me(_),e[29]=_,e[30]=G):G=e[30];const W=G;let J;e[31]!==n||e[32]!==o.length||e[33]!==m.length?(J=m.length>0||o.length>0||!!n?.trim(),e[31]=n,e[32]=o.length,e[33]=m.length,e[34]=J):J=e[34];const Y=J,Z=j&&!N&&!F&&Y;let V;e[35]!==w||e[36]!==g||e[37]!==N?(V=()=>{g&&!N&&w()},e[35]=w,e[36]=g,e[37]=N,e[38]=V):V=e[38];const Q=V,q=g??!1,M=R?S?.tags:void 0,B=R?S?.categories:void 0;let D;return e[39]!==Y||e[40]!==j||e[41]!==N||e[42]!==Z||e[43]!==F||e[44]!==W||e[45]!==I||e[46]!==Q||e[47]!==o||e[48]!==m||e[49]!==q||e[50]!==M||e[51]!==B||e[52]!==A?(D={items:W,totalCount:A,hasMore:q,isLoadingMore:N,isFiltering:Z,isInitialLoading:F,isFetching:j,error:I,loadMore:Q,availableTags:M,availableCategories:B,selectedTags:m,selectedCategories:o,setSelectedTags:u,setSelectedCategories:p,hasActiveFilters:Y},e[39]=Y,e[40]=j,e[41]=N,e[42]=Z,e[43]=F,e[44]=W,e[45]=I,e[46]=Q,e[47]=o,e[48]=m,e[49]=q,e[50]=M,e[51]=B,e[52]=A,e[53]=D):D=e[53],D}function ot(t){if(typeof t=="object"&&t!==null){const e=t.nextCursor||t.cursor;if(e)return e}}function at(t,e){return[...t].sort((r,l)=>l.count-r.count).slice(0,e)}function fe(t){const e=X.c(52),{label:r,items:l,selectedItems:d,onToggle:n,onClear:i}=t,[c,m]=H.useState(""),[u,T]=H.useState(!1);let o,p,a,x,$,R,C,y,L,S,h;if(e[0]!==l||e[1]!==r||e[2]!==n||e[3]!==u||e[4]!==c||e[5]!==d){const w=[...c?l.filter(_=>_.value.toLowerCase().includes(c.toLowerCase())):l].sort(ct);a=d.length,p=Se,L=u,S=T;let g;e[17]!==r?(g=s.jsx("span",{children:r}),e[17]=r,e[18]=g):g=e[18];let N;e[19]!==a?(N=a>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:a}),e[19]=a,e[20]=N):N=e[20];let j;e[21]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Re,{size:14,className:"opacity-50"}),e[21]=j):j=e[21],e[22]!==N||e[23]!==g?(h=s.jsx(we,{asChild:!0,children:s.jsxs(te,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[g,N,j]})}),e[22]=N,e[23]=g,e[24]=h):h=e[24],o=Ie,R="w-64 p-0",C="start";let F;e[25]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(ve,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=F):F=e[25];let I;e[26]!==r?(I=r.toLowerCase(),e[26]=r,e[27]=I):I=e[27];const E=`Search ${I}...`;let A;e[28]===Symbol.for("react.memo_cache_sentinel")?(A=_=>m(_.target.value),e[28]=A):A=e[28],e[29]!==c||e[30]!==E?(y=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:[F,s.jsx(Ze,{type:"text",placeholder:E,value:c,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]=c,e[30]=E,e[31]=y):y=e[31],x="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",$=w.length===0?s.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):w.map(_=>{const G=d.includes(_.value);return s.jsxs("button",{onClick:()=>n(_.value),className:de("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",G?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[s.jsxs("span",{className:"truncate flex items-center gap-2",children:[G&&s.jsx(Te,{size:16,className:"text-muted-foreground shrink-0"}),_.value]}),s.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:_.count})]},_.value)}),e[0]=l,e[1]=r,e[2]=n,e[3]=u,e[4]=c,e[5]=d,e[6]=o,e[7]=p,e[8]=a,e[9]=x,e[10]=$,e[11]=R,e[12]=C,e[13]=y,e[14]=L,e[15]=S,e[16]=h}else o=e[6],p=e[7],a=e[8],x=e[9],$=e[10],R=e[11],C=e[12],y=e[13],L=e[14],S=e[15],h=e[16];let v;e[32]!==x||e[33]!==$?(v=s.jsx("div",{className:x,children:$}),e[32]=x,e[33]=$,e[34]=v):v=e[34];let z;e[35]!==r||e[36]!==i||e[37]!==a?(z=a>0&&s.jsx("div",{className:"p-2 border-t border-border",children:s.jsxs(te,{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]=a,e[38]=z):z=e[38];let P;e[39]!==o||e[40]!==z||e[41]!==R||e[42]!==C||e[43]!==y||e[44]!==v?(P=s.jsxs(o,{className:R,align:C,children:[y,v,z]}),e[39]=o,e[40]=z,e[41]=R,e[42]=C,e[43]=y,e[44]=v,e[45]=P):P=e[45];let k;return e[46]!==p||e[47]!==P||e[48]!==L||e[49]!==S||e[50]!==h?(k=s.jsxs(p,{open:L,onOpenChange:S,children:[h,P]}),e[46]=p,e[47]=P,e[48]=L,e[49]=S,e[50]=h,e[51]=k):k=e[51],k}function ct(t,e){return e.count-t.count}function mt(t){const e=X.c(67),{availableTags:r,availableCategories:l,selectedTags:d,selectedCategories:n,onTagChange:i,onCategoryChange:c}=t,m=r&&r.length>0||l&&l.length>0,u=d.length>0||n.length>0;if(!m)return null;let T;e[0]!==i||e[1]!==d?(T=g=>{d.includes(g)?i(d.filter(N=>N!==g)):i([...d,g])},e[0]=i,e[1]=d,e[2]=T):T=e[2];const o=T;let p;e[3]!==c||e[4]!==n?(p=g=>{n.includes(g)?c(n.filter(N=>N!==g)):c([...n,g])},e[3]=c,e[4]=n,e[5]=p):p=e[5];const a=p;let x;e[6]!==c||e[7]!==i?(x=()=>{i([]),c([])},e[6]=c,e[7]=i,e[8]=x):x=e[8];const $=x;let R,C,y,L,S,h,v;if(e[9]!==l||e[10]!==r||e[11]!==c||e[12]!==i||e[13]!==n||e[14]!==d||e[15]!==a||e[16]!==o){const g=l?at(l,6):[];R=n,C=d,v=new Set(g.map(dt)),S="flex items-center border-b border-border";let N;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:s.jsx(je,{size:16})}),e[24]=N):N=e[24];let j;e[25]!==l||e[26]!==c||e[27]!==n||e[28]!==a?(j=l&&l.length>0&&s.jsx(fe,{label:"Categories",items:l,selectedItems:n,onToggle:a,onClear:()=>c([])}),e[25]=l,e[26]=c,e[27]=n,e[28]=a,e[29]=j):j=e[29];let F;e[30]!==r||e[31]!==i||e[32]!==d||e[33]!==o?(F=r&&r.length>0&&s.jsx(fe,{label:"Tags",items:r,selectedItems:d,onToggle:o,onClear:()=>i([])}),e[30]=r,e[31]=i,e[32]=d,e[33]=o,e[34]=F):F=e[34],e[35]!==F||e[36]!==j?(h=s.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[N,j,F]}),e[35]=F,e[36]=j,e[37]=h):h=e[37],y="flex items-center gap-3 flex-wrap px-5 py-3";let I;e[38]!==n||e[39]!==a?(I=E=>{const A=n.includes(E.value);return s.jsxs("div",{onClick:()=>a(E.value),className:de("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:E.value}),A&&s.jsx("span",{onClick:_=>{_.stopPropagation(),a(E.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},E.value)},e[38]=n,e[39]=a,e[40]=I):I=e[40],L=g.map(I),e[9]=l,e[10]=r,e[11]=c,e[12]=i,e[13]=n,e[14]=d,e[15]=a,e[16]=o,e[17]=R,e[18]=C,e[19]=y,e[20]=L,e[21]=S,e[22]=h,e[23]=v}else R=e[17],C=e[18],y=e[19],L=e[20],S=e[21],h=e[22],v=e[23];let z;if(e[41]!==R||e[42]!==a||e[43]!==v){let g;e[45]!==v?(g=j=>!v.has(j),e[45]=v,e[46]=g):g=e[46];let N;e[47]!==a?(N=j=>s.jsxs("div",{onClick:()=>a(j),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:j}),s.jsx("span",{onClick:F=>{F.stopPropagation(),a(j)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`cat-${j}`),e[47]=a,e[48]=N):N=e[48],z=R.filter(g).map(N),e[41]=R,e[42]=a,e[43]=v,e[44]=z}else z=e[44];let P;if(e[49]!==C||e[50]!==o){let g;e[52]!==o?(g=N=>s.jsxs("div",{onClick:()=>o(N),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:N}),s.jsx("span",{onClick:j=>{j.stopPropagation(),o(N)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`tag-${N}`),e[52]=o,e[53]=g):g=e[53],P=C.map(g),e[49]=C,e[50]=o,e[51]=P}else P=e[51];let k;e[54]!==$||e[55]!==u?(k=u&&s.jsxs(te,{variant:"ghost",size:"sm",onClick:$,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]=$,e[55]=u,e[56]=k):k=e[56];let b;e[57]!==k||e[58]!==y||e[59]!==L||e[60]!==z||e[61]!==P?(b=s.jsxs("div",{className:y,children:[L,z,P,k]}),e[57]=k,e[58]=y,e[59]=L,e[60]=z,e[61]=P,e[62]=b):b=e[62];let w;return e[63]!==b||e[64]!==S||e[65]!==h?(w=s.jsxs("div",{className:S,children:[h,b]}),e[63]=b,e[64]=S,e[65]=h,e[66]=w):w=e[66],w}function dt(t){return t.value}function ut(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 Pe(t){return t.verified===!0||t._meta?.["mcp.mesh"]?.verified===!0}function ue(t){return t._meta?.["mcp.mesh"]?.official===!0}function ft(t){const e=X.c(58),{registryId:r,listToolName:l,filtersToolName:d,storePrivateOnly:n}=t,[i,c]=H.useState(""),m=rt(i,300),u=xe(),{org:T}=ne(),{scrollRef:o,saveScrollPosition:p,handleScroll:a}=lt(`store-discovery:${r}`);let x;e[0]!==m||e[1]!==d||e[2]!==l||e[3]!==r?(x={registryId:r,listToolName:l,filtersToolName:d,search:m},e[0]=m,e[1]=d,e[2]=l,e[3]=r,e[4]=x):x=e[4];const{items:$,hasMore:R,isLoadingMore:C,isInitialLoading:y,isFetching:L,error:S,loadMore:h,availableTags:v,availableCategories:z,selectedTags:P,selectedCategories:k,setSelectedTags:b,setSelectedCategories:w,hasActiveFilters:g}=it(x);let N;e[5]!==$||e[6]!==i?(N=i?ut($,i):$,e[5]=$,e[6]=i,e[7]=N):N=e[7];const j=N;let F;e[8]!==j||e[9]!==n?(F=n?j.filter(ht):j,e[8]=j,e[9]=n,e[10]=F):F=e[10];const I=F,E=(i!==m||L)&&!y&&!!i;let A;e[11]!==I?(A=I.filter(ue),e[11]=I,e[12]=A):A=e[12];const _=A;let G;e[13]!==I?(G=I.filter(pt),e[13]=I,e[14]=G):G=e[14];const W=G;let J;e[15]!==I?(J=I.filter(gt),e[15]=I,e[16]=J):J=e[16];const Y=J;let Z;e[17]!==u||e[18]!==T.slug||e[19]!==r||e[20]!==p?(Z=K=>{p();const f=Je(K.name||K.title||K.server?.title||""),ee=typeof K.id=="string"&&K.id.includes("/"),ie=typeof K.server?.name=="string"&&K.server.name.includes("/"),oe=ee&&!ie?K.id:K.server?.name||K.id||"";u({to:"/$org/$project/store/$appName",params:{org:T.slug,project:he,appName:f},search:{registryId:r,serverName:oe}})},e[17]=u,e[18]=T.slug,e[19]=r,e[20]=p,e[21]=Z):Z=e[21];const V=Z;let Q;e[22]!==a||e[23]!==R||e[24]!==C||e[25]!==h?(Q=K=>{if(a(),!R||C)return;const f=K.currentTarget;f.scrollHeight-f.scrollTop-f.clientHeight<200&&h()},e[22]=a,e[23]=R,e[24]=C,e[25]=h,e[26]=Q):Q=e[26];const q=Q;let M;e[27]!==E||e[28]!==i?(M=s.jsx(Qe,{value:i,onChange:c,placeholder:"Search for an MCP Server...",isSearching:E}),e[27]=E,e[28]=i,e[29]=M):M=e[29];let B;e[30]!==z||e[31]!==v||e[32]!==k||e[33]!==P||e[34]!==w||e[35]!==b?(B=s.jsx(mt,{availableTags:v,availableCategories:z,selectedTags:P,selectedCategories:k,onTagChange:b,onCategoryChange:w}),e[30]=z,e[31]=v,e[32]=k,e[33]=P,e[34]=w,e[35]=b,e[36]=B):B=e[36];let D;e[37]!==Y||e[38]!==S||e[39]!==V||e[40]!==g||e[41]!==R||e[42]!==y||e[43]!==C||e[44]!==E||e[45]!==_||e[46]!==i||e[47]!==W||e[48]!==I.length?(D=s.jsx("div",{className:"p-5",children:s.jsx("div",{children:S&&!y?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(ge,{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(te,{variant:"outline",size:"sm",onClick:xt,children:[s.jsx(pe,{className:"size-4"}),"Try again"]})]}):y?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..."})]}):I.length===0&&!g?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ye,{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."})]}):I.length===0&&g&&!i?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(je,{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&&I.length===0&&!E?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ve,{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:[E&&I.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..."})]}),_.length>0&&s.jsx(ce,{items:_,title:"Official",onItemClick:V}),W.length>0&&s.jsx(ce,{items:W,title:"Verified",onItemClick:V}),Y.length>0&&s.jsx(ce,{items:Y,title:_.length>0||W.length>0?"All":"",onItemClick:V}),R&&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[37]=Y,e[38]=S,e[39]=V,e[40]=g,e[41]=R,e[42]=y,e[43]=C,e[44]=E,e[45]=_,e[46]=i,e[47]=W,e[48]=I.length,e[49]=D):D=e[49];let O;e[50]!==q||e[51]!==o||e[52]!==D?(O=s.jsx("div",{ref:o,className:"flex-1 overflow-y-auto",onScroll:q,children:D}),e[50]=q,e[51]=o,e[52]=D,e[53]=O):O=e[53];let U;return e[54]!==B||e[55]!==O||e[56]!==M?(U=s.jsxs("div",{className:"flex flex-col h-full",children:[M,B,O]}),e[54]=B,e[55]=O,e[56]=M,e[57]=U):U=e[57],U}function xt(){return window.location.reload()}function gt(t){return!Pe(t)&&!ue(t)}function pt(t){return Pe(t)&&!ue(t)}function ht(t){return t.is_public!==!0}function jt(t){const e=X.c(11),{registryId:r,storePrivateOnly:l}=t,d=Ue(r),n=d?.tools;let i;e[0]!==n?(i=Be(n),e[0]=n,e[1]=i):i=e[1];const c=i;if(!c){let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(ye,{className:"size-8 text-muted-foreground"})}),e[2]=a):a=e[2];let x;return e[3]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[a,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]=x):x=e[3],x}const m=d?.tools;let u;e[4]!==m?(u=De(m),e[4]=m,e[5]=u):u=e[5];const o=u||void 0;let p;return e[6]!==c||e[7]!==r||e[8]!==l||e[9]!==o?(p=s.jsx(ft,{registryId:r,listToolName:c,filtersToolName:o,storePrivateOnly:l}),e[6]=c,e[7]=r,e[8]=l,e[9]=o,e[10]=p):p=e[10],p}function yt(t){const e=X.c(43),{registries:r,value:l,onValueChange:d,onAddWellKnown:n,wellKnownRegistries:i,placeholder:c}=t,m=c===void 0?"Select a registry...":c,[u,T]=H.useState(!1);let o,p,a,x,$,R,C,y;if(e[0]!==u||e[1]!==m||e[2]!==r||e[3]!==l){let b;e[12]!==l?(b=g=>g.id===l,e[12]=l,e[13]=b):b=e[13];const w=r.find(b);p=Se,C=u,y=T,o=we,R=!0,a="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(x=de("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]=x):x=e[14],$=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:m}),e[0]=u,e[1]=m,e[2]=r,e[3]=l,e[4]=o,e[5]=p,e[6]=a,e[7]=x,e[8]=$,e[9]=R,e[10]=C,e[11]=y}else o=e[4],p=e[5],a=e[6],x=e[7],$=e[8],R=e[9],C=e[10],y=e[11];let L;e[15]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(Re,{className:"size-4 opacity-50"}),e[15]=L):L=e[15];let S;e[16]!==a||e[17]!==x||e[18]!==$?(S=s.jsxs("button",{type:a,className:x,children:[$,L]}),e[16]=a,e[17]=x,e[18]=$,e[19]=S):S=e[19];let h;e[20]!==o||e[21]!==R||e[22]!==S?(h=s.jsx(o,{asChild:R,children:S}),e[20]=o,e[21]=R,e[22]=S,e[23]=h):h=e[23];let v;if(e[24]!==d||e[25]!==r||e[26]!==l){let b;e[28]!==d||e[29]!==l?(b=w=>s.jsxs("button",{type:"button",onClick:()=>{d(w.id??w.name),T(!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(Te,{className:"size-4"})})]},w.id??w.name),e[28]=d,e[29]=l,e[30]=b):b=e[30],v=r.map(b),e[24]=d,e[25]=r,e[26]=l,e[27]=v}else v=e[27];let z;e[31]!==n||e[32]!==i?(z=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(b=>s.jsxs("button",{type:"button",onClick:()=>{n(b),T(!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:[b.icon?s.jsx("img",{src:b.icon,alt:b.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:b.title.slice(0,1).toUpperCase()}),s.jsx("span",{className:"flex-1",children:b.title})]}),s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:s.jsx(Xe,{size:16})})]},b.id??b.title))]}),e[31]=n,e[32]=i,e[33]=z):z=e[33];let P;e[34]!==v||e[35]!==z?(P=s.jsxs(Ie,{align:"end",className:"w-auto min-w-[200px] p-1",children:[v,z]}),e[34]=v,e[35]=z,e[36]=P):P=e[36];let k;return e[37]!==p||e[38]!==h||e[39]!==P||e[40]!==C||e[41]!==y?(k=s.jsxs(p,{open:C,onOpenChange:y,children:[h,P]}),e[37]=p,e[38]=h,e[39]=P,e[40]=C,e[41]=y,e[42]=k):k=e[42],k}function vt({registries:t,onConnected:e}){const r=Ce(),{org:{slug:l}}=ne(),{data:d}=ze.useSession(),n=xe(),[i,c]=H.useState(!1),m=t[0],u=async()=>{if(!(!m||!d?.user?.id)){c(!0);try{const o=await r.create.mutateAsync(m);e?.(o.id)}finally{c(!1)}}},T=()=>{n({to:"/$org/$project/mcps",params:{org:l,project:he},search:{action:"create"}})};return s.jsx(Ye,{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(te,{variant:"outline",onClick:u,disabled:i||!m,children:[m?.icon&&s.jsx("img",{src:m.icon,alt:"",className:"size-4"}),i?"Installing...":"Install Registry"]}),s.jsx(te,{variant:"outline",onClick:T,children:"Custom Connection"})]})})}function bt(t){const e=X.c(15),{error:r,onRetry:l,registryName:d}=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(ge,{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 c;e[2]!==d?(c=s.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",s.jsx("strong",{children:d})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=d,e[3]=c):c=e[3];let m;e[4]!==r?(m=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]=m):m=e[5];let u;e[6]!==c||e[7]!==m?(u=s.jsxs("div",{className:"space-y-2",children:[i,c,m]}),e[6]=c,e[7]=m,e[8]=u):u=e[8];let T;e[9]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(pe,{className:"size-4"}),e[9]=T):T=e[9];let o;e[10]!==l?(o=s.jsxs(te,{variant:"outline",size:"sm",onClick:l,children:[T,"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 as(){const t=X.c(53),{org:e,project:r}=ne(),l=He(),d=Ce(),n=$e(),i=n.location.pathname.includes("/store/")&&n.location.pathname.split("/").length>3,c=et(l);let m;t[0]!==e.id?(m=Ge.SELF(e.id),t[0]=e.id,t[1]=m):m=t[1];const u=m,T=r.enabledPlugins,o=T==null||T.includes(ae);let p;t[2]!==u?(p=(f,ee)=>f.id===u?1:ee.id===u?-1:0,t[2]=u,t[3]=p):p=t[3];const a=c.filter(f=>f.id!==u?!0:o).sort(p);let x;t[4]!==u?(x=f=>f.id===u,t[4]=u,t[5]=x):x=t[5];const $=a.some(x);let R;t[6]!==e.id?(R={connectionId:We,orgId:e.id},t[6]=e.id,t[7]=R):R=t[7];const C=Ne(R);let y;t[8]!==r.id||t[9]!==C?(y=async()=>{const f=await C.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:ae}});return f.structuredContent??f},t[8]=r.id,t[9]=C,t[10]=y):y=t[10];const{data:L}=be({queryKey:me.projectPluginConfig(r.id??"",ae),queryFn:y,enabled:$&&!!r.id,staleTime:6e4}),S=L?.config?.settings;let h;t[11]!==S||t[12]!==u?(h=f=>f.id===u&&S?{id:f.id,name:S.registryName||f.title,icon:S.registryIcon||f.icon||void 0}:{id:f.id,name:f.title,icon:f.icon||void 0},t[11]=S,t[12]=u,t[13]=h):h=t[13];const v=a.map(h);let z;t[14]!==e.slug?(z=tt.selectedRegistry(e.slug),t[14]=e.slug,t[15]=z):z=t[15];const[P,k]=st(z,Ct);let b;t[16]!==P?(b=f=>f.id===P,t[16]=P,t[17]=b):b=t[17];const w=a.find(b);let g;t[18]!==u?(g=f=>f.id!==u,t[18]=u,t[19]=g):g=t[19];const N=a.find(g),j=w?.id||N?.id||a[0]?.id||"",F=j===u&&S?.storePrivateOnly===!0;let I;t[20]!==e.id?(I=Ve(e.id),t[20]=e.id,t[21]=I):I=t[21];let E;t[22]!==I?(E=[I],t[22]=I,t[23]=E):E=t[23];const A=E;let _;t[24]===Symbol.for("react.memo_cache_sentinel")?(_=[qe()],t[24]=_):_=t[24];const G=_;let W;t[25]!==d.create||t[26]!==k?(W=async f=>{const ee=await d.create.mutateAsync(f);k(ee.id)},t[25]=d.create,t[26]=k,t[27]=W):W=t[27];const J=W,Y=new Set(a.map(Nt)),Z=A.filter(f=>f.id&&!Y.has(f.id)),V=G.filter(f=>f.id&&!Y.has(f.id));if(i){let f;return t[28]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Fe,{}),t[28]=f):f=t[28],f}let Q;t[29]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(se.Header.Left,{children:s.jsx(Ee,{children:s.jsx(Oe,{children:s.jsx(_e,{children:s.jsx(Ke,{children:"Store"})})})})}),t[29]=Q):Q=t[29];let q;t[30]!==J?(q=async f=>J(f),t[30]=J,t[31]=q):q=t[31];let M;t[32]!==Z||t[33]!==j||t[34]!==v||t[35]!==k||t[36]!==q?(M=s.jsxs(se.Header,{children:[Q,s.jsx(se.Header.Right,{children:s.jsx(yt,{wellKnownRegistries:Z,registries:v,value:j,onValueChange:k,onAddWellKnown:q,placeholder:"Select store..."})})]}),t[32]=Z,t[33]=j,t[34]=v,t[35]=k,t[36]=q,t[37]=M):M=t[37];let B;t[38]!==j||t[39]!==v?(B=f=>{const{error:ee,resetError:ie}=f;return s.jsx(bt,{error:ee,onRetry:ie,registryName:v.find(oe=>oe.id===j)?.name??"registry"})},t[38]=j,t[39]=v,t[40]=B):B=t[40];let D;t[41]===Symbol.for("react.memo_cache_sentinel")?(D=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]=D):D=t[41];let O;t[42]!==V||t[43]!==j||t[44]!==k||t[45]!==F?(O=s.jsx(H.Suspense,{fallback:D,children:j?s.jsx(jt,{registryId:j,storePrivateOnly:F}):s.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:s.jsx(vt,{registries:V,onConnected:f=>{k(f)}})})}),t[42]=V,t[43]=j,t[44]=k,t[45]=F,t[46]=O):O=t[46];let U;t[47]!==B||t[48]!==O?(U=s.jsx(se.Content,{children:s.jsx(Le,{fallback:B,children:O})}),t[47]=B,t[48]=O,t[49]=U):U=t[49];let K;return t[50]!==M||t[51]!==U?(K=s.jsxs(se,{children:[M,U]}),t[50]=M,t[51]=U,t[52]=K):K=t[52],K}function Nt(t){return t.id}function Ct(t){return t??""}export{as as default};
@@ -1 +1 @@
1
- import{c as s,j as t}from"./index-Dg8PaM2F.js";import{e as r}from"./Dataflow03-BdRMRJMF.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-vT7d19FZ.js";import{e as r}from"./Dataflow03-BwCknUU_.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 a,j as t,ar as n}from"./index-Dg8PaM2F.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-vT7d19FZ.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 w,j as s,r as S,ar as y}from"./index-Dg8PaM2F.js";import{i as _}from"./Check-DRSTTkKR.js";import{t as k}from"./ChevronDown-BPhOar5T.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-vT7d19FZ.js";import{i as _}from"./Check-BBM5VLGH.js";import{t as k}from"./ChevronDown-p0dnpCad.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 +1 @@
1
- import{c as S,j as s,r as w}from"./index-Dg8PaM2F.js";import{i as R}from"./Check-DRSTTkKR.js";import{t as _}from"./ChevronDown-BPhOar5T.js";import{e as y}from"./Dataflow03-BdRMRJMF.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-vT7d19FZ.js";import{i as R}from"./Check-BBM5VLGH.js";import{t as _}from"./ChevronDown-p0dnpCad.js";import{e as y}from"./Dataflow03-BwCknUU_.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};
@@ -0,0 +1 @@
1
+ import{c as r,j as i}from"./index-vT7d19FZ.js";import{P as m}from"./project-plugins-DiUkRSNU.js";import"./useQuery-D4r0gTgP.js";import"./useMutation-Ii52gJrH.js";import"./constants-B_oRauum.js";import"./switch-BkGEtDYJ.js";import"./label-BeSMa-Jf.js";import"./Container-BHcLe4to.js";import"./use-connection-B_1jjyea.js";import"./use-collections-B5FU68I3.js";import"./use-binding-Co6qMEtg.js";import"./binder-DoPAL9ZH.js";import"./use-install-from-registry-BHBuFZW0.js";import"./extract-connection-data-D1izVDHQ.js";import"./constants-DyjOCIfT.js";import"./github-icon-Dp3wHhYE.js";import"./registry-utils-B--947zK.js";import"./generate-id-Dyweu44Y.js";import"./Loading01-BIsjWAvK.js";import"./Plus-fVSS0uJH.js";import"./select-BF2Uyhhk.js";import"./index-DhQo4qLq.js";import"./Check-BBM5VLGH.js";import"./ChevronDown-p0dnpCad.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,R as $,j as c,aZ as z,av as L,W as A,U as b,Y as g,aX as _,$ as j,aY as G,a_ as w,b3 as H,b4 as K,a0 as U,b5 as W,b6 as Y,b7 as Z,a$ as V,b0 as X,b2 as q,c as R,z as B}from"./index-Dg8PaM2F.js";var C="Popover",[E]=U(C,[w]),P=w(),[J,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(z,{...p,children:c.jsx(J,{scope:e,contentId:L(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Q=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(_,{...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":I(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}),D=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})})})};D.displayName=O;var v="PopoverContent",M=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})})});M.displayName=v;var te=W("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 Y(),c.jsx(Z,{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":I(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)"}})})})}),k="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(k,o);return c.jsx(b.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(q,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=D,ue=M;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=B("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,R as $,j as c,a_ as z,av as L,W as A,U as b,Y as g,aY as _,$ as j,aZ as G,a$ as w,b4 as H,b5 as K,a0 as U,b6 as W,b7 as Y,b8 as Z,b0 as V,b1 as q,b3 as B,c as R,z as J}from"./index-vT7d19FZ.js";var C="Popover",[E]=U(C,[w]),P=w(),[Q,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(z,{...p,children:c.jsx(Q,{scope:e,contentId:L(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",X=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})});X.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":I(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}),D=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})})})};D.displayName=O;var v="PopoverContent",M=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})})});M.displayName=v;var te=W("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 Y(),c.jsx(Z,{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(q,{"data-state":I(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)"}})})})}),k="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(k,o);return c.jsx(b.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=k;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(B,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=D,ue=M;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=J("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 P,g as A,j as l,E as y,r as R,u as T}from"./index-Dg8PaM2F.js";import{u as v}from"./use-connection-B5EMzod8.js";import{u as S}from"./constants-CAOZXRu0.js";import{u as U}from"./use-mcp-tools-DC8eCy-w.js";import{c as E,M as H}from"./mcp-app-renderer-sVUbRtKB.js";import{g as O,M as $}from"./types-DSM009A7.js";import{u as w}from"./context-Bf7Sesvv.js";import{P as _,u as D}from"./index-B4gZbCy7.js";import"./use-collections-BnjyA1PI.js";import"./useMutation-Gh4yFMNI.js";import"./useQuery-CVxx7hB-.js";import"./decopilot-events-6G8fYiz0.js";import"./use-virtual-mcp-ChE8-Wo8.js";import"./use-llm-0Bac-pFi.js";import"./use-binding-nxABOdXI.js";import"./binder-BE2JGf_w.js";import"./localstorage-keys-CNAuB30D.js";import"./use-preferences-qk_JhJjz.js";import"./checkbox-nC2v2km0.js";import"./Check-DRSTTkKR.js";import"./input-CND44J7m.js";import"./dialog-zser_2oy.js";import"./X-CjkEqgI-.js";import"./select-uKSkilzT.js";import"./index-C22vXC_0.js";import"./ChevronDown-BPhOar5T.js";import"./skeleton-z-nOD1TF.js";import"./AlignLeft-BKDhZIZf.js";import"./ArrowLeft-DzjvK55Q.js";import"./Image01-7kjMCux9.js";import"./RefreshCcw01-NDooc0iK.js";import"./SearchMd-76viYIq-.js";import"./Settings01-DS7G1QDs.js";import"./useSuspenseInfiniteQuery-CNcwjVQv.js";import"./infiniteQueryObserver-B4wp77Uw.js";import"./tooltip-bT-cZrsF.js";const b={};function k(t){const e=P.c(22),{client:o,resourceURI:a,tool:c,connectionId:p}=t,{sendMessage:m,setAppContext:i,clearAppContext:n}=w(),[,f]=D(),r=`${p}:${c.name}`;let d;e[0]!==o||e[1]!==c.name?(d={client:o,toolName:c.name,toolArguments:b},e[0]=o,e[1]=c.name,e[2]=d):d=e[2];const{data:u}=U(d);let s;e[3]!==m||e[4]!==f?(s=I=>{const M=E(I.content);M.content.length>0&&(f(!0),m(M))},e[3]=m,e[4]=f,e[5]=s):s=e[5];const g=s,N=c;let x;e[6]!==N?(x={tool:N},e[6]=N,e[7]=x):x=e[7];let h;e[8]!==i||e[9]!==r?(h=I=>i(r,I),e[8]=i,e[9]=r,e[10]=h):h=e[10];let j;e[11]!==n||e[12]!==r?(j=()=>n(r),e[11]=n,e[12]=r,e[13]=j):j=e[13];let C;return e[14]!==o||e[15]!==g||e[16]!==a||e[17]!==x||e[18]!==h||e[19]!==j||e[20]!==u?(C=l.jsx(H,{resourceURI:a,toolInfo:x,toolInput:b,toolResult:u,displayMode:"fullscreen",minHeight:$.fullscreen.minHeight,maxHeight:$.fullscreen.maxHeight,client:o,onMessage:g,onUpdateModelContext:h,onTeardown:j,className:"h-full"}),e[14]=o,e[15]=g,e[16]=a,e[17]=x,e[18]=h,e[19]=j,e[20]=u,e[21]=C):C=e[21],C}function L(t){const e=P.c(17),{connectionId:o,toolName:a}=t,{org:c}=T();let p;e[0]!==o||e[1]!==c.id?(p={connectionId:o,orgId:c.id},e[0]=o,e[1]=c.id,e[2]=p):p=e[2];const m=S(p),i=v(o),n=decodeURIComponent(a);let f,r;if(e[3]!==i?.tools||e[4]!==n){let s;e[7]!==n?(s=g=>g.name===n,e[7]=n,e[8]=s):s=e[8],r=(i?.tools??[]).find(s),f=r?._meta?O(r._meta):void 0,e[3]=i?.tools,e[4]=n,e[5]=f,e[6]=r}else f=e[5],r=e[6];const d=f;if(!i){let s;return e[9]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx("p",{className:"text-sm text-muted-foreground",children:"Connection not found"})}),e[9]=s):s=e[9],s}if(!r||!d){let s;return e[10]!==n?(s=l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',n,'" not found or has no UI']})}),e[10]=n,e[11]=s):s=e[11],s}let u;return e[12]!==m||e[13]!==o||e[14]!==d||e[15]!==r?(u=l.jsx(k,{client:m,resourceURI:d,tool:r,connectionId:o}),e[12]=m,e[13]=o,e[14]=d,e[15]=r,e[16]=u):u=e[16],u}function Pe(){const t=P.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:o,toolName:a}=A(e);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx(_.Header,{}),t[1]=c):c=t[1];const p=`${o}:${a}`;let m;t[2]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[l.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),l.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),t[2]=m):m=t[2];let i;t[3]!==o||t[4]!==a?(i=l.jsx(R.Suspense,{fallback:m,children:l.jsx(L,{connectionId:o,toolName:a})}),t[3]=o,t[4]=a,t[5]=i):i=t[5];let n;return t[6]!==p||t[7]!==i?(n=l.jsxs(_,{children:[c,l.jsx(_.Content,{className:"overflow-hidden",children:l.jsx(y,{fallback:void 0,children:i},p)})]}),t[6]=p,t[7]=i,t[8]=n):n=t[8],n}export{Pe as default};
1
+ import{c as P,g as A,j as l,E as y,r as R,u as T}from"./index-vT7d19FZ.js";import{u as v}from"./use-connection-B_1jjyea.js";import{u as S}from"./constants-B_oRauum.js";import{u as U}from"./use-mcp-tools-Bjw8Al4t.js";import{c as E,M as H}from"./mcp-app-renderer-fejJzCxk.js";import{g as O,M as $}from"./types-CMK2WPB6.js";import{u as w}from"./context-Ds59MeBQ.js";import{P as _,u as D}from"./index-CJPDgn39.js";import"./use-collections-B5FU68I3.js";import"./useMutation-Ii52gJrH.js";import"./useQuery-D4r0gTgP.js";import"./decopilot-events-CzzoCGmg.js";import"./use-virtual-mcp-CRuIChms.js";import"./use-llm-Dqek2fmG.js";import"./use-binding-Co6qMEtg.js";import"./binder-DoPAL9ZH.js";import"./localstorage-keys-BHX8QMmu.js";import"./use-preferences-DtqNUewD.js";import"./checkbox-tq_Hrh_u.js";import"./Check-BBM5VLGH.js";import"./input-BMlethki.js";import"./dialog-qsSmxxvb.js";import"./X-DyQ8WnIz.js";import"./select-BF2Uyhhk.js";import"./index-DhQo4qLq.js";import"./ChevronDown-p0dnpCad.js";import"./skeleton-CoD4pvnr.js";import"./AlignLeft-s0P9ghzj.js";import"./ArrowLeft-M-y6iKpu.js";import"./Image01-3Otvjfwm.js";import"./RefreshCcw01-CgTorlKu.js";import"./SearchMd-BmSd1Zrr.js";import"./Settings01-C1PGP469.js";import"./useSuspenseInfiniteQuery-DUeBy_RU.js";import"./infiniteQueryObserver-gYoJgvdT.js";import"./tooltip-DEohEJQ4.js";const b={};function k(t){const e=P.c(22),{client:o,resourceURI:a,tool:c,connectionId:p}=t,{sendMessage:m,setAppContext:i,clearAppContext:n}=w(),[,f]=D(),r=`${p}:${c.name}`;let d;e[0]!==o||e[1]!==c.name?(d={client:o,toolName:c.name,toolArguments:b},e[0]=o,e[1]=c.name,e[2]=d):d=e[2];const{data:u}=U(d);let s;e[3]!==m||e[4]!==f?(s=I=>{const M=E(I.content);M.content.length>0&&(f(!0),m(M))},e[3]=m,e[4]=f,e[5]=s):s=e[5];const g=s,N=c;let x;e[6]!==N?(x={tool:N},e[6]=N,e[7]=x):x=e[7];let h;e[8]!==i||e[9]!==r?(h=I=>i(r,I),e[8]=i,e[9]=r,e[10]=h):h=e[10];let j;e[11]!==n||e[12]!==r?(j=()=>n(r),e[11]=n,e[12]=r,e[13]=j):j=e[13];let C;return e[14]!==o||e[15]!==g||e[16]!==a||e[17]!==x||e[18]!==h||e[19]!==j||e[20]!==u?(C=l.jsx(H,{resourceURI:a,toolInfo:x,toolInput:b,toolResult:u,displayMode:"fullscreen",minHeight:$.fullscreen.minHeight,maxHeight:$.fullscreen.maxHeight,client:o,onMessage:g,onUpdateModelContext:h,onTeardown:j,className:"h-full"}),e[14]=o,e[15]=g,e[16]=a,e[17]=x,e[18]=h,e[19]=j,e[20]=u,e[21]=C):C=e[21],C}function L(t){const e=P.c(17),{connectionId:o,toolName:a}=t,{org:c}=T();let p;e[0]!==o||e[1]!==c.id?(p={connectionId:o,orgId:c.id},e[0]=o,e[1]=c.id,e[2]=p):p=e[2];const m=S(p),i=v(o),n=decodeURIComponent(a);let f,r;if(e[3]!==i?.tools||e[4]!==n){let s;e[7]!==n?(s=g=>g.name===n,e[7]=n,e[8]=s):s=e[8],r=(i?.tools??[]).find(s),f=r?._meta?O(r._meta):void 0,e[3]=i?.tools,e[4]=n,e[5]=f,e[6]=r}else f=e[5],r=e[6];const d=f;if(!i){let s;return e[9]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx("p",{className:"text-sm text-muted-foreground",children:"Connection not found"})}),e[9]=s):s=e[9],s}if(!r||!d){let s;return e[10]!==n?(s=l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',n,'" not found or has no UI']})}),e[10]=n,e[11]=s):s=e[11],s}let u;return e[12]!==m||e[13]!==o||e[14]!==d||e[15]!==r?(u=l.jsx(k,{client:m,resourceURI:d,tool:r,connectionId:o}),e[12]=m,e[13]=o,e[14]=d,e[15]=r,e[16]=u):u=e[16],u}function Pe(){const t=P.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:o,toolName:a}=A(e);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx(_.Header,{}),t[1]=c):c=t[1];const p=`${o}:${a}`;let m;t[2]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[l.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),l.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),t[2]=m):m=t[2];let i;t[3]!==o||t[4]!==a?(i=l.jsx(R.Suspense,{fallback:m,children:l.jsx(L,{connectionId:o,toolName:a})}),t[3]=o,t[4]=a,t[5]=i):i=t[5];let n;return t[6]!==p||t[7]!==i?(n=l.jsxs(_,{children:[c,l.jsx(_.Content,{className:"overflow-hidden",children:l.jsx(y,{fallback:void 0,children:i},p)})]}),t[6]=p,t[7]=i,t[8]=n):n=t[8],n}export{Pe as default};