@decocms/mesh 2.133.1 → 2.134.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 (196) hide show
  1. package/dist/client/assets/{AlertCircle-C_-Exi_n.js → AlertCircle-dxGFeayp.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-DU7XXs04.js → AlignLeft-zf4ygcA_.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-Ci69NI9T.js → ArrowDown-BfANN175.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DiQ6H1qe.js → ArrowLeft-DKmEJ5pf.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-YaPl1lq-.js → ArrowUp-BNm6R5tp.js} +1 -1
  6. package/dist/client/assets/{Check-AlxQ-j2G.js → Check-BuBqfL8V.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BQbEhLAd.js → CheckCircle-B-t884rD.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-CnA5MJ5u.js → CheckDone01-C_N43WOE.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-9ppFNPbL.js → CheckVerified02-CF--qrDr.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-Bt1ewsqh.js → ChevronDown-D15Vpp0r.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-ZjYcxOdo.js → ChevronLeft-CJX984rp.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-sqD7LMFa.js → ChevronRight-u7jqeZNG.js} +1 -1
  13. package/dist/client/assets/{Clock-CGeVATg-.js → Clock-B88-VhpY.js} +1 -1
  14. package/dist/client/assets/{Code01-X9LTEq8d.js → Code01-DhSY1b20.js} +1 -1
  15. package/dist/client/assets/{Container-Dt3fts2O.js → Container-CFxptFeR.js} +1 -1
  16. package/dist/client/assets/{Copy01-yMwUMo5Y.js → Copy01-D2l3XUry.js} +1 -1
  17. package/dist/client/assets/{Dataflow03-GEBPM69Y.js → Dataflow03-TMmWfgl9.js} +1 -1
  18. package/dist/client/assets/{DotsHorizontal-rnia2dDb.js → DotsHorizontal-CZq86zFa.js} +1 -1
  19. package/dist/client/assets/{DotsVertical-DxigKHHt.js → DotsVertical-B78gtBdB.js} +1 -1
  20. package/dist/client/assets/{Download01-axlmJqAw.js → Download01-DDJLkXru.js} +1 -1
  21. package/dist/client/assets/{Edit01-Cg13Y9IR.js → Edit01-CbZPkCJz.js} +1 -1
  22. package/dist/client/assets/{Eye-D5VDCdLP.js → Eye-vR70tVFn.js} +1 -1
  23. package/dist/client/assets/{File02-DasnEozT.js → File02-B1NunE2J.js} +1 -1
  24. package/dist/client/assets/{File06-B5xn-On2.js → File06-D8w_IYOr.js} +1 -1
  25. package/dist/client/assets/{FilterLines-7rCsQUMC.js → FilterLines-BY-bo6_s.js} +1 -1
  26. package/dist/client/assets/{Globe01-DghE3nSS.js → Globe01-CL7GrOsx.js} +1 -1
  27. package/dist/client/assets/{Globe02-DsDY7_VG.js → Globe02-6j3SB4QZ.js} +1 -1
  28. package/dist/client/assets/{Grid01-C3osH3dx.js → Grid01-DjcW2Js4.js} +1 -1
  29. package/dist/client/assets/{Hash02-D2cqLEQA.js → Hash02-BMwtcDtI.js} +1 -1
  30. package/dist/client/assets/{Home02-BwxX5zad.js → Home02-CMWrNstp.js} +1 -1
  31. package/dist/client/assets/{Image01-Dk65YqxA.js → Image01-oZtE9Z5q.js} +1 -1
  32. package/dist/client/assets/{Inbox01-kmB3TeMO.js → Inbox01-xF_R8liT.js} +1 -1
  33. package/dist/client/assets/{InfoCircle-C0U8p7zQ.js → InfoCircle-B_WtF_e0.js} +1 -1
  34. package/dist/client/assets/{Key01-CqhHrRJL.js → Key01-Cvjt_ykt.js} +1 -1
  35. package/dist/client/assets/{LayersTwo01-BFhpnCtq.js → LayersTwo01-f778oNbj.js} +1 -1
  36. package/dist/client/assets/{LayoutLeft-CW10Mj8C.js → LayoutLeft-BXJHafgx.js} +1 -1
  37. package/dist/client/assets/{LinkExternal01-DdPfa8wq.js → LinkExternal01-DY3cItdE.js} +1 -1
  38. package/dist/client/assets/{List-iHNJ390y.js → List-Be3XBHwN.js} +1 -1
  39. package/dist/client/assets/{Loading01-SjZGs3Wk.js → Loading01-BLoQsWVt.js} +1 -1
  40. package/dist/client/assets/{Lock01-CryAxM1F.js → Lock01-Cj3RiFKG.js} +1 -1
  41. package/dist/client/assets/{Play-CKKDGI7M.js → Play-CCz3CWMJ.js} +1 -1
  42. package/dist/client/assets/{Plus-DXYydVCi.js → Plus-4zX3n4bH.js} +1 -1
  43. package/dist/client/assets/{RefreshCcw01-DT9wSPl_.js → RefreshCcw01-DzE0Vt_s.js} +1 -1
  44. package/dist/client/assets/{Save01-w3vLU2XF.js → Save01-DiUMsefH.js} +1 -1
  45. package/dist/client/assets/{SearchMd-CSKcblxx.js → SearchMd-BvHN4xgB.js} +1 -1
  46. package/dist/client/assets/{Settings01-Dkx2ZoN9.js → Settings01-B5kunEo2.js} +1 -1
  47. package/dist/client/assets/{Shield01-BqITe6MU.js → Shield01-DrTQ94s0.js} +1 -1
  48. package/dist/client/assets/{Terminal-B4v75vOD.js → Terminal-DQnj9LXz.js} +1 -1
  49. package/dist/client/assets/{Trash01-CDDpTvNv.js → Trash01-BvIumE4M.js} +1 -1
  50. package/dist/client/assets/{Upload01-DAiUnxPv.js → Upload01-DLPOqCLa.js} +1 -1
  51. package/dist/client/assets/{Users03-BXHamAas.js → Users03-CUxh9_Jy.js} +1 -1
  52. package/dist/client/assets/{X-BHBlYu74.js → X-CpsrVd7E.js} +1 -1
  53. package/dist/client/assets/{XCircle-Bm1DtLmf.js → XCircle-BcvU_Xzf.js} +1 -1
  54. package/dist/client/assets/{XClose-B0OIa3qG.js → XClose-CnTCpAeI.js} +1 -1
  55. package/dist/client/assets/{Zap-DYif66ZC.js → Zap-BACXfgKn.js} +1 -1
  56. package/dist/client/assets/{agent-connections-preview-131FyINm.js → agent-connections-preview-BTescy5G.js} +1 -1
  57. package/dist/client/assets/{agent-detail-BQD2V8eu.js → agent-detail-C9_VIiuY.js} +1 -1
  58. package/dist/client/assets/{agents-BChxlMJi.js → agents-DkUxuyJc.js} +1 -1
  59. package/dist/client/assets/{alert-dialog-DRnSCcWl.js → alert-dialog-B0yEBEkb.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-qZjolz1d.js → auth-catchall-CZYx2ePL.js} +1 -1
  61. package/dist/client/assets/{avatar-BsFgSPZd.js → avatar-BeiX4aSz.js} +1 -1
  62. package/dist/client/assets/{badge-BZU2aZ4g.js → badge-UPowR1Nj.js} +1 -1
  63. package/dist/client/assets/{binder-CXy7pGaI.js → binder-DUACCYIe.js} +1 -1
  64. package/dist/client/assets/{breadcrumb-CkhUU1qO.js → breadcrumb-DxXcAXh7.js} +1 -1
  65. package/dist/client/assets/{card-BiGYvdPr.js → card-BRjix5ol.js} +1 -1
  66. package/dist/client/assets/{chart-x30PoZrw.js → chart-FIHtzVp6.js} +1 -1
  67. package/dist/client/assets/{checkbox-DaiL5KlM.js → checkbox-Df-Mj-oX.js} +1 -1
  68. package/dist/client/assets/{circle-alert-D5aKQND0.js → circle-alert-CHATLFG-.js} +1 -1
  69. package/dist/client/assets/collapsible-CG7okAAn.js +23 -0
  70. package/dist/client/assets/{collection-detail-Bder-uOv.js → collection-detail-DnFoqwX5.js} +1 -1
  71. package/dist/client/assets/{collection-search-Bkt-jVWx.js → collection-search-BgstpGbD.js} +1 -1
  72. package/dist/client/assets/{collection-tab-DILgyiiN.js → collection-tab-CkymCS_K.js} +1 -1
  73. package/dist/client/assets/{collection-table-wrapper-c85b97QJ.js → collection-table-wrapper-B7II4YYC.js} +1 -1
  74. package/dist/client/assets/{collection-tabs-ywHh3L-3.js → collection-tabs-nglpt7Dm.js} +1 -1
  75. package/dist/client/assets/{command-BLXAYQCa.js → command-BvChE5AN.js} +1 -1
  76. package/dist/client/assets/{connect-BJqi59zN.js → connect-C_zUgms_.js} +1 -1
  77. package/dist/client/assets/{connection-card-CRg7yGx3.js → connection-card-DE2PfyYV.js} +1 -1
  78. package/dist/client/assets/{connection-detail-D1-5uzSn.js → connection-detail-CIlY792n.js} +1 -1
  79. package/dist/client/assets/{connections-D1tXy5Nn.js → connections-e6eEADmb.js} +1 -1
  80. package/dist/client/assets/{constants-2Gp-yGJ1.js → constants--aQ9HnxF.js} +1 -1
  81. package/dist/client/assets/constants-DoLvwboP.js +1 -0
  82. package/dist/client/assets/{create-organization-dialog-CtQ-v5j4.js → create-organization-dialog-BW4s7GqS.js} +1 -1
  83. package/dist/client/assets/{create-project-dialog-DpFucZww.js → create-project-dialog-BMiLf2Mr.js} +1 -1
  84. package/dist/client/assets/{danger-CHhKecE7.js → danger-BAlOLeDE.js} +1 -1
  85. package/dist/client/assets/{danger-zone-B1ksqQ3N.js → danger-zone-PDtJsuS3.js} +1 -1
  86. package/dist/client/assets/{decopilot-events-DlkvGkzj.js → decopilot-events-DZodCqX1.js} +1 -1
  87. package/dist/client/assets/{dependencies-DO7dUDR7.js → dependencies-DOcreK8_.js} +1 -1
  88. package/dist/client/assets/{dialog-BeE7uUPn.js → dialog-CrYlSCa6.js} +1 -1
  89. package/dist/client/assets/{dropdown-menu-B0Dgts11.js → dropdown-menu-DvfBJ25L.js} +1 -1
  90. package/dist/client/assets/{dynamic-plugin-layout-ChmoTPch.js → dynamic-plugin-layout-1UBvkRf8.js} +1 -1
  91. package/dist/client/assets/{editable-task-title--9hhF-R6.js → editable-task-title-emHsd6RF.js} +1 -1
  92. package/dist/client/assets/{empty-state-DE4SQU5S.js → empty-state-C2LU6BeW.js} +1 -1
  93. package/dist/client/assets/{env-vars-editor-CBMsqTh6.js → env-vars-editor-DM7ragIP.js} +1 -1
  94. package/dist/client/assets/{extract-connection-data-0trSaHAT.js → extract-connection-data-DtOGbK2O.js} +1 -1
  95. package/dist/client/assets/{file-browser-0DYVKNPK.js → file-browser-dzB3GMud.js} +2 -2
  96. package/dist/client/assets/{form-DNs_mLgF.js → form-DKOb9Dxi.js} +1 -1
  97. package/dist/client/assets/{general-CC_F5c1Q.js → general-C8KCERL-.js} +1 -1
  98. package/dist/client/assets/{grid-view-Y6fAVOxf.js → grid-view-Dp6SbR5A.js} +1 -1
  99. package/dist/client/assets/{home-DXg-PZRS.js → home-DpLONLMM.js} +1 -1
  100. package/dist/client/assets/{index-BMtw0aq_.js → index-B4YFEuZr.js} +1 -1
  101. package/dist/client/assets/{index-DTgZok4N.js → index-BkxNgQ-z.js} +3 -3
  102. package/dist/client/assets/{index-C6fMaWPS.js → index-Bq_4mEQF.js} +1 -1
  103. package/dist/client/assets/{index-eYcb2Cm9.js → index-CKt9M-ST.js} +1 -1
  104. package/dist/client/assets/{index--9MdKIVD.js → index-CuJORTyw.js} +1 -1
  105. package/dist/client/assets/{index-DqmnWcee.js → index-UbMd2WCz.js} +1 -1
  106. package/dist/client/assets/{index-C_SwSaaG.js → index-ZJA9ZP0w.js} +1 -1
  107. package/dist/client/assets/{index-BG6VshDR.js → index-dKQNml8k.js} +1 -1
  108. package/dist/client/assets/{index-Gr3qtElA.js → index-u5kBBr5i.js} +1 -1
  109. package/dist/client/assets/{infiniteQueryObserver-Dy7IOO2y.js → infiniteQueryObserver-DFroUYRE.js} +1 -1
  110. package/dist/client/assets/{input-CjsuYubG.js → input-BxWPl4Ur.js} +1 -1
  111. package/dist/client/assets/{integration-icon-BqSOA-1d.js → integration-icon-DqBJsR0X.js} +1 -1
  112. package/dist/client/assets/{label-ND6ncjGS.js → label-DQ6CQRMq.js} +1 -1
  113. package/dist/client/assets/{layout-CKzU3ZCb.js → layout-0mFUwCP9.js} +1 -1
  114. package/dist/client/assets/{layout-K29HidGl.js → layout-rnNZXdmD.js} +1 -1
  115. package/dist/client/assets/{localstorage-keys-Cenhbz-P.js → localstorage-keys-2beZrYfY.js} +1 -1
  116. package/dist/client/assets/{login-oxVPXFpk.js → login-DcPWsiJb.js} +1 -1
  117. package/dist/client/assets/{markdown-DI_NQ3zj.js → markdown-08iefd1w.js} +1 -1
  118. package/dist/client/assets/{mcp-app-renderer-D2qbe9d6.js → mcp-app-renderer-DlqJcoS_.js} +1 -1
  119. package/dist/client/assets/{mcp-oauth-BGy49NaP.js → mcp-oauth-hrdldmcp.js} +1 -1
  120. package/dist/client/assets/{mcp-server-card-Dn8mS4B0.js → mcp-server-card-DopVvusq.js} +1 -1
  121. package/dist/client/assets/{mcp-server-detail-BJrSdPXE.js → mcp-server-detail-6bJ8ASSa.js} +2 -2
  122. package/dist/client/assets/{members-DZd5xLHT.js → members-Do6CpQ6P.js} +1 -1
  123. package/dist/client/assets/{monitoring-DpcldHRD.js → monitoring-CKBrV8zM.js} +1 -1
  124. package/dist/client/assets/{monitoring-dashboard-edit-Dua9qsND.js → monitoring-dashboard-edit-CisDX-AH.js} +1 -1
  125. package/dist/client/assets/{monitoring-dashboard-view-X9A7Dt7e.js → monitoring-dashboard-view-CLglwuRf.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-CsqoN40N.js → oauth-callback-EWqhoS77.js} +1 -1
  127. package/dist/client/assets/{page-CLamcNIQ.js → page-BIGqii57.js} +1 -1
  128. package/dist/client/assets/{page-Cx3Xt8ip.js → page-CrIdFE4e.js} +1 -1
  129. package/dist/client/assets/{plugin-empty-state-BV6g5sMv.js → plugin-empty-state-AsJFZqlq.js} +1 -1
  130. package/dist/client/assets/{plugin-empty-state-Df_tIhim.js → plugin-empty-state-DgfbXovL.js} +1 -1
  131. package/dist/client/assets/{plugin-header-CsoLpSwS.js → plugin-header-CdB0sXQc.js} +1 -1
  132. package/dist/client/assets/{plugin-header-ClbYQgeN.js → plugin-header-DMTu3kKy.js} +1 -1
  133. package/dist/client/assets/plugins-AJrV2JnY.js +1 -0
  134. package/dist/client/assets/{popover-C2X8YaiC.js → popover-CJnKtmVV.js} +1 -1
  135. package/dist/client/assets/{project-app-view-CkhQ-sFM.js → project-app-view-CrOJlRSX.js} +1 -1
  136. package/dist/client/assets/{project-layout-DcmZkb79.js → project-layout-CxbfzuHT.js} +1 -1
  137. package/dist/client/assets/{project-plugins-BxtIWCHr.js → project-plugins-OrxVzBYc.js} +1 -1
  138. package/dist/client/assets/{projects-list-B9ZNjsmc.js → projects-list-CaeO-dsb.js} +1 -1
  139. package/dist/client/assets/purify.es-C0_7NiBM.js +2 -0
  140. package/dist/client/assets/{readme-viewer-DQ57Paqf.js → readme-viewer-CvFtkeFt.js} +1 -1
  141. package/dist/client/assets/{registry-layout-BOuKDda5.js → registry-layout-C_lUsUO4.js} +1 -1
  142. package/dist/client/assets/{registry-utils-BFXjOPvi.js → registry-utils-Bm8aYhvn.js} +1 -1
  143. package/dist/client/assets/{reports-layout-_5crmBff.js → reports-layout-COQgk5-M.js} +1 -1
  144. package/dist/client/assets/{reset-password-Qo3jQxbB.js → reset-password-BHTKtR6U.js} +1 -1
  145. package/dist/client/assets/{resizable-BotMD0Ea.js → resizable-DNctE6m6.js} +1 -1
  146. package/dist/client/assets/{save-actions-BGfSClkF.js → save-actions-DgW9lLRI.js} +1 -1
  147. package/dist/client/assets/{scroll-area-CiqOJ4_4.js → scroll-area-Ce3JzMbc.js} +1 -1
  148. package/dist/client/assets/{select-CwGh16En.js → select-CHQkyynJ.js} +1 -1
  149. package/dist/client/assets/{shell-layout-DOy4fAYb.js → shell-layout-CZrDFZIJ.js} +2 -2
  150. package/dist/client/assets/{sidebar-settings-Ctg4uu33.js → sidebar-settings-C8pM5SP-.js} +1 -1
  151. package/dist/client/assets/{skeleton-DZ7Qc_fE.js → skeleton-Bla1LCSZ.js} +1 -1
  152. package/dist/client/assets/{spinner-CF1sqMoC.js → spinner-B_k6AtHn.js} +1 -1
  153. package/dist/client/assets/{store-invite-BbaXHihy.js → store-invite-CVXBjHsb.js} +1 -1
  154. package/dist/client/assets/{switch-BO1AHmQl.js → switch-BX7m8ylT.js} +1 -1
  155. package/dist/client/assets/{table-CZRzSdcB.js → table-BJ3W5Geb.js} +1 -1
  156. package/dist/client/assets/{tabs-DkvkxCCI.js → tabs-tcquyh90.js} +1 -1
  157. package/dist/client/assets/tasks-CJro_3w3.js +1 -0
  158. package/dist/client/assets/{tasks-panel-Bl5BMQl6.js → tasks-panel-CIityBOn.js} +1 -1
  159. package/dist/client/assets/{textarea-Cp-ThsnH.js → textarea-CceQB-N2.js} +1 -1
  160. package/dist/client/assets/{time-range-picker-CXsB0sBK.js → time-range-picker-B9lHM6xz.js} +1 -1
  161. package/dist/client/assets/{toggle-group-CIpiKQbG.js → toggle-group-KbsXFu3M.js} +1 -1
  162. package/dist/client/assets/{tools-list-BYhjzTws.js → tools-list-Cb9H3DsC.js} +1 -1
  163. package/dist/client/assets/{tooltip-B2vpv_WH.js → tooltip-DvMRS01W.js} +1 -1
  164. package/dist/client/assets/{topbar-portal-Dy36ZPgB.js → topbar-portal-CyxFPAeb.js} +1 -1
  165. package/dist/client/assets/{types-DeMEWRHV.js → types-9lUbCnT7.js} +1 -1
  166. package/dist/client/assets/{use-binding-CXeaDqWF.js → use-binding-CVLYzFG-.js} +1 -1
  167. package/dist/client/assets/{use-connection-Du5eRm0t.js → use-connection-DjiXkPUz.js} +1 -1
  168. package/dist/client/assets/{use-copy-5Xu6yo2D.js → use-copy-DiVO6tbG.js} +1 -1
  169. package/dist/client/assets/{use-create-virtual-mcp-EqzJGE7y.js → use-create-virtual-mcp-DnOGpm5h.js} +1 -1
  170. package/dist/client/assets/{use-install-from-registry-D98zOCZs.js → use-install-from-registry-kgqBLGhb.js} +1 -1
  171. package/dist/client/assets/{use-list-state-Dxk-n9cc.js → use-list-state-CCFlT7yz.js} +1 -1
  172. package/dist/client/assets/{use-llm-B4rO8f2r.js → use-llm-Bkjj502R.js} +1 -1
  173. package/dist/client/assets/{use-mcp-resources-Bf8HKw75.js → use-mcp-resources-DS8p1Owh.js} +1 -1
  174. package/dist/client/assets/{use-mcp-tools-v3YYc4L1.js → use-mcp-tools-CHOGR3no.js} +1 -1
  175. package/dist/client/assets/{use-members-D4kqyRbv.js → use-members-94lmhn12.js} +1 -1
  176. package/dist/client/assets/{use-mobile-II1SQS1g.js → use-mobile-BArkW6j1.js} +1 -1
  177. package/dist/client/assets/{use-project-DEgKISl8.js → use-project-BRlk9_cU.js} +1 -1
  178. package/dist/client/assets/{use-settings-modal-BJVHprSk.js → use-settings-modal-QjZt77PI.js} +1 -1
  179. package/dist/client/assets/{use-view-mode-D38VMwz6.js → use-view-mode-3_G2qIMG.js} +1 -1
  180. package/dist/client/assets/{use-virtual-mcp-CS7dIIbK.js → use-virtual-mcp-Wj5StsuR.js} +1 -1
  181. package/dist/client/assets/useInfiniteQuery-cPtxg-KP.js +1 -0
  182. package/dist/client/assets/{useMutation-B99hCaMl.js → useMutation-DtOoZO7h.js} +1 -1
  183. package/dist/client/assets/useQuery-Cj-miqA2.js +1 -0
  184. package/dist/client/assets/useSuspenseInfiniteQuery-D62VIKAF.js +1 -0
  185. package/dist/client/assets/{user-BncBYJfn.js → user-BcEL6pjj.js} +1 -1
  186. package/dist/client/assets/{workflow-DS5DwWhu.js → workflow-Bdyylvch.js} +1 -1
  187. package/dist/client/index.html +1 -1
  188. package/package.json +1 -1
  189. package/dist/client/assets/collapsible-Bqyw5z5a.js +0 -23
  190. package/dist/client/assets/constants-DTNMmCfY.js +0 -1
  191. package/dist/client/assets/plugins-BA5p5lXm.js +0 -1
  192. package/dist/client/assets/purify.es-Bzr520pe.js +0 -2
  193. package/dist/client/assets/tasks-BSVHqtcQ.js +0 -1
  194. package/dist/client/assets/useInfiniteQuery-DvriYWG_.js +0 -1
  195. package/dist/client/assets/useQuery-C-DbMOQt.js +0 -1
  196. package/dist/client/assets/useSuspenseInfiniteQuery-CX_HgzHm.js +0 -1
@@ -1,2 +1,2 @@
1
- import{r as _,c as k,j as t,E as fe,B as J,v as ae,_ as Je,u as de,V as Ze,s as Qe,t as ce,b as Xe,e as et,O as Fe,l as tt,k as st,aD as lt,q as ot}from"./index-DTgZok4N.js";import{b as Oe,i as nt,c as it,u as rt,C as at,d as ct}from"./collapsible-Bqyw5z5a.js";import{C as dt,E as mt}from"./collection-search-Bkt-jVWx.js";import{I as ge}from"./integration-icon-BqSOA-1d.js";import{u as ut}from"./index-BMtw0aq_.js";import{B as $e}from"./badge-BZU2aZ4g.js";import{I as Me}from"./input-CjsuYubG.js";import{S as ft}from"./switch-BO1AHmQl.js";import{T as xt}from"./textarea-Cp-ThsnH.js";import{a as xe,c as ve,T as pe,b as he}from"./tooltip-B2vpv_WH.js";import{h as pt,f as ht}from"./use-connection-Du5eRm0t.js";import{u as gt,a as jt}from"./use-virtual-mcp-CS7dIIbK.js";import{i as Ge}from"./ChevronRight-sqD7LMFa.js";import{n as bt}from"./select-CwGh16En.js";import{i as De}from"./File02-DasnEozT.js";import{i as Le}from"./Loading01-SjZGs3Wk.js";import{i as Nt}from"./Play-CKKDGI7M.js";import{s as Ve}from"./Plus-DXYydVCi.js";import{t as yt}from"./Users03-BXHamAas.js";import{B as vt,a as Ct,b as Be,d as _t,e as St,c as Tt}from"./breadcrumb-CkhUU1qO.js";import{a as kt,V as wt}from"./layout-K29HidGl.js";import{S as Et}from"./save-actions-BGfSClkF.js";import{a as It}from"./tools-list-BYhjzTws.js";import{C as ze}from"./checkbox-DaiL5KlM.js";import{e as At,a as He,D as Ue,b as Ot,c as $t}from"./dialog-BeE7uUPn.js";import{T as Ce,a as Dt,b as _e,c as Lt}from"./tabs-DkvkxCCI.js";import{u as je,a as zt}from"./constants-2Gp-yGJ1.js";import{c as Rt}from"./use-mcp-tools-v3YYc4L1.js";import{a as Pt}from"./use-mcp-resources-Bf8HKw75.js";import{u as Mt}from"./decopilot-events-DlkvGkzj.js";import{s as Ke}from"./slugify-CEUa2lfQ.js";import{I as Vt,R as Bt,a as Ft}from"./index-C6fMaWPS.js";import{i as be}from"./Check-AlxQ-j2G.js";import{i as Gt}from"./Code01-X9LTEq8d.js";import{a as Re}from"./Copy01-yMwUMo5Y.js";import{i as Se}from"./InfoCircle-C0U8p7zQ.js";import{i as Ht}from"./Key01-CqhHrRJL.js";import{A as Ut}from"./agent-connections-preview-131FyINm.js";import"./use-llm-B4rO8f2r.js";import"./use-binding-CXeaDqWF.js";import"./binder-CXy7pGaI.js";import"./useQuery-C-DbMOQt.js";import"./localstorage-keys-Cenhbz-P.js";import"./useMutation-B99hCaMl.js";import"./skeleton-DZ7Qc_fE.js";import"./AlignLeft-DU7XXs04.js";import"./ArrowLeft-DiQ6H1qe.js";import"./ChevronDown-Bt1ewsqh.js";import"./Image01-Dk65YqxA.js";import"./RefreshCcw01-DT9wSPl_.js";import"./SearchMd-CSKcblxx.js";import"./Settings01-Dkx2ZoN9.js";import"./useSuspenseInfiniteQuery-CX_HgzHm.js";import"./infiniteQueryObserver-Dy7IOO2y.js";import"./Container-Dt3fts2O.js";import"./index-BG6VshDR.js";import"./Save01-w3vLU2XF.js";import"./collection-table-wrapper-c85b97QJ.js";import"./dropdown-menu-B0Dgts11.js";import"./ArrowDown-Ci69NI9T.js";import"./ArrowUp-YaPl1lq-.js";import"./Grid01-C3osH3dx.js";import"./List-iHNJ390y.js";import"./table-CZRzSdcB.js";import"./card-BiGYvdPr.js";import"./types-DeMEWRHV.js";import"./Eye-D5VDCdLP.js";import"./Globe02-DsDY7_VG.js";import"./LayersTwo01-BFhpnCtq.js";import"./X-BHBlYu74.js";const We=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));We.displayName="Circle";const Ne=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.createElement("path",{d:"m9.75 20.75 1.473.818c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l1.473-.818m-9-2.5-1.427-.793c-.3-.166-.45-.25-.558-.368a1 1 0 0 1-.215-.364C3 16.573 3 16.401 3 16.06V14.5m0-5V7.942c0-.343 0-.514.05-.667a1 1 0 0 1 .215-.364c.109-.119.258-.202.558-.368L5.25 5.75m4.5-2.5 1.473-.818c.284-.158.425-.237.576-.267a1 1 0 0 1 .402 0c.15.03.292.11.576.267l1.473.818m4.5 2.5 1.427.793c.3.166.45.25.558.368a1 1 0 0 1 .215.364c.05.153.05.324.05.667V9.5m0 5v1.559c0 .342 0 .514-.05.666a.999.999 0 0 1-.215.364c-.109.119-.258.202-.558.368l-1.427.793m-9-7.5L12 12m0 0 2.25-1.25M12 12v2.5M3 7l2.25 1.25m13.5 0L21 7m-9 12.5V22"}));Ne.displayName="CubeOutline";const Ye=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.createElement("path",{d:"m12 5.5-4.638 6.747c-.28.406-.42.609-.41.778a.5.5 0 0 0 .195.373c.135.102.38.102.874.102H12v5l4.638-6.747c.28-.406.42-.609.41-.778a.5.5 0 0 0-.195-.373c-.135-.102-.38-.102-.874-.102H12v-5Z"}),_.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));Ye.displayName="ZapCircle";function Te(o){return o===null?"all":o?.length??0}function Kt(o,e){const s=o[e];if(!s)return"";const i=[];return s.tools===null?i.push("all tools"):s.tools&&s.tools.length>0&&i.push(`${s.tools.length} tools`),s.resources===null?i.push("all resources"):s.resources&&s.resources.length>0&&i.push(`${s.resources.length} resources`),s.prompts===null?i.push("all prompts"):s.prompts&&s.prompts.length>0&&i.push(`${s.prompts.length} prompts`),i.join(", ")}function Wt(o,e){const s=o[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const Yt={tools:null,resources:null,prompts:null};function ke(){const o=k.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(Le,{className:"animate-spin text-muted-foreground",size:24})}),o[0]=e):e=o[0],e}function we(o){return({error:e})=>e?.message?.includes("Method not found")||e?.code===-32601?t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:o})}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(Je,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message?e.message.length>200?`${e.message.slice(0,200)}...`:e.message:"An unexpected error occurred"})]})]})}function qt(o){const e=k.c(23),{item:s,isSelected:i,onToggle:l,disabled:n}=o,d=n?"cursor-not-allowed opacity-50":"cursor-pointer",a=i?"bg-accent/25":"hover:bg-muted/50";let r;e[0]!==d||e[1]!==a?(r=ae("flex items-start gap-3 p-4 rounded-lg transition-colors",d,a),e[0]=d,e[1]=a,e[2]=r):r=e[2];let c;e[3]!==s.name?(c=t.jsx("p",{className:"text-sm font-medium leading-none truncate",children:s.name}),e[3]=s.name,e[4]=c):c=e[4];let p;e[5]!==s.tags?(p=s.tags&&t.jsx("span",{className:"shrink-0",children:s.tags}),e[5]=s.tags,e[6]=p):p=e[6];let g;e[7]!==c||e[8]!==p?(g=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c,p]}),e[7]=c,e[8]=p,e[9]=g):g=e[9];let x;e[10]!==s.description?(x=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[10]=s.description,e[11]=x):x=e[11];let h;e[12]!==g||e[13]!==x?(h=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[g,x]}),e[12]=g,e[13]=x,e[14]=h):h=e[14];let m;e[15]!==n||e[16]!==i||e[17]!==l?(m=t.jsx(ze,{checked:i,onCheckedChange:l,disabled:n,className:"mt-0.5"}),e[15]=n,e[16]=i,e[17]=l,e[18]=m):m=e[18];let u;return e[19]!==r||e[20]!==h||e[21]!==m?(u=t.jsxs("label",{className:r,children:[h,m]}),e[19]=r,e[20]=h,e[21]=m,e[22]=u):u=e[22],u}function Pe(o){const e=k.c(32),{items:s,selections:i,onToggle:l,onToggleAll:n,emptyMessage:d,disabled:a}=o;let r,c,p,g,x;if(e[0]!==a||e[1]!==d||e[2]!==s||e[3]!==l||e[4]!==n||e[5]!==i){x=Symbol.for("react.early_return_sentinel");e:{const u=s.map(Jt);if(s.length===0){let v;e[11]!==d?(v=t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:d})}),e[11]=d,e[12]=v):v=e[12],x=v;break e}p="flex flex-col h-full";const b=a?"cursor-not-allowed opacity-50":"cursor-pointer";let f;e[13]!==b?(f=ae("flex items-start gap-3 p-4",b),e[13]=b,e[14]=f):f=e[14];let j;e[15]!==s.length?(j=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsxs("span",{className:"text-sm font-medium",children:["Select All (",s.length,")"]})}),e[15]=s.length,e[16]=j):j=e[16];const y=i===null;let C;e[17]!==a||e[18]!==n||e[19]!==y?(C=t.jsx(ze,{checked:y,onCheckedChange:n,disabled:a,className:"mt-0.5"}),e[17]=a,e[18]=n,e[19]=y,e[20]=C):C=e[20],e[21]!==C||e[22]!==f||e[23]!==j?(g=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:f,children:[j,C]})}),e[21]=C,e[22]=f,e[23]=j,e[24]=g):g=e[24],r="flex-1 overflow-auto px-4 py-3 space-y-1",c=s.map(v=>t.jsx(qt,{item:v,isSelected:i===null||i?.includes(v.id),onToggle:()=>l(v.id,u),disabled:a},v.id))}e[0]=a,e[1]=d,e[2]=s,e[3]=l,e[4]=n,e[5]=i,e[6]=r,e[7]=c,e[8]=p,e[9]=g,e[10]=x}else r=e[6],c=e[7],p=e[8],g=e[9],x=e[10];if(x!==Symbol.for("react.early_return_sentinel"))return x;let h;e[25]!==r||e[26]!==c?(h=t.jsx("div",{className:r,children:c}),e[25]=r,e[26]=c,e[27]=h):h=e[27];let m;return e[28]!==p||e[29]!==g||e[30]!==h?(m=t.jsxs("div",{className:p,children:[g,h]}),e[28]=p,e[29]=g,e[30]=h,e[31]=m):m=e[31],m}function Jt(o){return o.id}function Zt(o){const e=k.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:d}=o,{org:a}=de();let r;e[0]!==s||e[1]!==a.id?(r={connectionId:s,orgId:a.id},e[0]=s,e[1]=a.id,e[2]=r):r=e[2];const c=je(r);let p;e[3]!==c?(p={client:c},e[3]=c,e[4]=p):p=e[4];const{data:g}=Rt(p);let x;e[5]!==g.tools?(x=g.tools.map(Qt),e[5]=g.tools,e[6]=x):x=e[6];const h=x;let m;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==n||e[11]!==i?(m=t.jsx(Pe,{items:h,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No tools available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=n,e[11]=i,e[12]=m):m=e[12],m}function Qt(o){return{id:o.name,name:o.name,description:o.description,tags:t.jsx(It,{annotations:o.annotations,_meta:o._meta})}}function Xt(o){const e=k.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:d}=o,{org:a}=de();let r;e[0]!==s||e[1]!==a.id?(r={connectionId:s,orgId:a.id},e[0]=s,e[1]=a.id,e[2]=r):r=e[2];const c=je(r);let p;e[3]!==c?(p={client:c},e[3]=c,e[4]=p):p=e[4];const{data:g}=Pt(p);let x;e[5]!==g.resources?(x=g.resources.map(es),e[5]=g.resources,e[6]=x):x=e[6];const h=x;let m;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==n||e[11]!==i?(m=t.jsx(Pe,{items:h,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No resources available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=n,e[11]=i,e[12]=m):m=e[12],m}function es(o){return{id:o.name||o.uri,name:o.name||o.uri,description:o.description}}function ts(o){const e=k.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:d}=o,{org:a}=de();let r;e[0]!==s||e[1]!==a.id?(r={connectionId:s,orgId:a.id},e[0]=s,e[1]=a.id,e[2]=r):r=e[2];const c=je(r);let p;e[3]!==c?(p={client:c},e[3]=c,e[4]=p):p=e[4];const{data:g}=Mt(p);let x;e[5]!==g.prompts?(x=g.prompts.map(ss),e[5]=g.prompts,e[6]=x):x=e[6];const h=x;let m;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==n||e[11]!==i?(m=t.jsx(Pe,{items:h,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No prompts available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=n,e[11]=i,e[12]=m):m=e[12],m}function ss(o){return{id:o.name,name:o.name,description:o.description}}function ls(o){const e=k.c(24),{connection:s,isSelected:i,hasSelections:l,summary:n,onClick:d,onToggleAll:a,disabled:r}=o,c=r?"cursor-not-allowed opacity-50":"cursor-pointer",p=i?"bg-accent":"hover:bg-muted/50";let g;e[0]!==c||e[1]!==p?(g=ae("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",c,p),e[0]=c,e[1]=p,e[2]=g):g=e[2];const x=r?void 0:d;let h;e[3]!==s.icon||e[4]!==s.title?(h=t.jsx(ge,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=h):h=e[5];let m;e[6]!==s.title?(m=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=m):m=e[7];let u;e[8]!==l||e[9]!==n?(u=l&&n&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:n}),e[8]=l,e[9]=n,e[10]=u):u=e[10];let b;e[11]!==m||e[12]!==u?(b=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[m,u]}),e[11]=m,e[12]=u,e[13]=b):b=e[13];let f;e[14]!==r||e[15]!==l||e[16]!==a?(f=t.jsx(ze,{checked:l,onCheckedChange:a,onClick:os,disabled:r,className:"shrink-0"}),e[14]=r,e[15]=l,e[16]=a,e[17]=f):f=e[17];let j;return e[18]!==g||e[19]!==x||e[20]!==h||e[21]!==b||e[22]!==f?(j=t.jsxs("div",{className:g,onClick:x,children:[h,b,f]}),e[18]=g,e[19]=x,e[20]=h,e[21]=b,e[22]=f,e[23]=j):j=e[23],j}function os(o){return o.stopPropagation()}function ns(o){const e=k.c(22),{allConnections:s,searchTerm:i,selectedId:l,hasSelections:n,getSelectionSummary:d,onConnectionClick:a,onToggleAll:r,disabled:c}=o;let p;e[0]!==s||e[1]!==i?(p=i?s.filter(m=>m.title.toLowerCase().includes(i.toLowerCase())||m.description?.toLowerCase().includes(i.toLowerCase())):s,e[0]=s,e[1]=i,e[2]=p):p=e[2];const g=p;if(g.length===0){const m=i?"No connections found":"No connections available";let u;return e[3]!==m?(u=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:m}),e[3]=m,e[4]=u):u=e[4],u}let x;if(e[5]!==c||e[6]!==g||e[7]!==d||e[8]!==n||e[9]!==a||e[10]!==r||e[11]!==l){let m;e[13]!==c||e[14]!==d||e[15]!==n||e[16]!==a||e[17]!==r||e[18]!==l?(m=u=>t.jsx(ls,{connection:u,isSelected:l===u.id,hasSelections:n(u.id),summary:d(u.id),onClick:()=>a(u.id),onToggleAll:()=>r(u.id),disabled:c},u.id),e[13]=c,e[14]=d,e[15]=n,e[16]=a,e[17]=r,e[18]=l,e[19]=m):m=e[19],x=g.map(m),e[5]=c,e[6]=g,e[7]=d,e[8]=n,e[9]=a,e[10]=r,e[11]=l,e[12]=x}else x=e[12];let h;return e[20]!==x?(h=t.jsx("div",{className:"flex flex-col gap-0.5",children:x}),e[20]=x,e[21]=h):h=e[21],h}function is(o){const e=k.c(75),{currentConnection:s,activeTab:i,selectedId:l,formData:n,toggleTool:d,toggleResource:a,togglePrompt:r,toggleAllTools:c,toggleAllResources:p,toggleAllPrompts:g,onTabChange:x}=o;let h;e[0]!==s.icon||e[1]!==s.title?(h=t.jsx(ge,{icon:s.icon,name:s.title,size:"md",className:"shrink-0"}),e[0]=s.icon,e[1]=s.title,e[2]=h):h=e[2];let m;e[3]!==s.title?(m=t.jsx("h2",{className:"text-lg font-semibold truncate",children:s.title}),e[3]=s.title,e[4]=m):m=e[4];let u;e[5]!==s.description?(u=s.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.description}),e[5]=s.description,e[6]=u):u=e[6];let b;e[7]!==m||e[8]!==u?(b=t.jsxs("div",{className:"flex-1 min-w-0",children:[m,u]}),e[7]=m,e[8]=u,e[9]=b):b=e[9];let f;e[10]!==h||e[11]!==b?(f=t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[h,b]})}),e[10]=h,e[11]=b,e[12]=f):f=e[12];let j;e[13]!==x?(j=M=>x(M),e[13]=x,e[14]=j):j=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs(Ce,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(Oe,{size:16}),"Tools"]}),e[15]=y):y=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs(Ce,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(Ne,{size:16}),"Resources"]}),e[16]=C):C=e[16];let v;e[17]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs(Dt,{variant:"underline",className:"shrink-0 px-6",children:[y,C,t.jsxs(Ce,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(De,{size:16}),"Prompts"]})]}),e[17]=v):v=e[17];let V;e[18]===Symbol.for("react.memo_cache_sentinel")?(V=we("Tools not supported by this server"),e[18]=V):V=e[18];let R;e[19]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(ke,{}),e[19]=R):R=e[19];let T;e[20]!==n||e[21]!==l?(T=n[l]?n[l].tools:[],e[20]=n,e[21]=l,e[22]=T):T=e[22];let O;e[23]!==l||e[24]!==d?(O=(M,q)=>d(l,M,q),e[23]=l,e[24]=d,e[25]=O):O=e[25];let S;e[26]!==l||e[27]!==c?(S=()=>c(l),e[26]=l,e[27]=c,e[28]=S):S=e[28];let w;e[29]!==l||e[30]!==T||e[31]!==O||e[32]!==S?(w=t.jsx(_e,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:V,children:t.jsx(_.Suspense,{fallback:R,children:t.jsx(Zt,{connectionId:l,selections:T,onToggle:O,onToggleAll:S})})})}),e[29]=l,e[30]=T,e[31]=O,e[32]=S,e[33]=w):w=e[33];let z;e[34]===Symbol.for("react.memo_cache_sentinel")?(z=we("Resources not supported by this server"),e[34]=z):z=e[34];let $;e[35]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ke,{}),e[35]=$):$=e[35];let I;e[36]!==n||e[37]!==l?(I=n[l]?n[l].resources:[],e[36]=n,e[37]=l,e[38]=I):I=e[38];let D;e[39]!==l||e[40]!==a?(D=(M,q)=>a(l,M,q),e[39]=l,e[40]=a,e[41]=D):D=e[41];let A;e[42]!==l||e[43]!==p?(A=()=>p(l),e[42]=l,e[43]=p,e[44]=A):A=e[44];let E;e[45]!==l||e[46]!==I||e[47]!==D||e[48]!==A?(E=t.jsx(_e,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:z,children:t.jsx(_.Suspense,{fallback:$,children:t.jsx(Xt,{connectionId:l,selections:I,onToggle:D,onToggleAll:A})})})}),e[45]=l,e[46]=I,e[47]=D,e[48]=A,e[49]=E):E=e[49];let B;e[50]===Symbol.for("react.memo_cache_sentinel")?(B=we("Prompts not supported by this server"),e[50]=B):B=e[50];let P;e[51]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(ke,{}),e[51]=P):P=e[51];let K;e[52]!==n||e[53]!==l?(K=n[l]?n[l].prompts:[],e[52]=n,e[53]=l,e[54]=K):K=e[54];let H;e[55]!==l||e[56]!==r?(H=(M,q)=>r(l,M,q),e[55]=l,e[56]=r,e[57]=H):H=e[57];let W;e[58]!==l||e[59]!==g?(W=()=>g(l),e[58]=l,e[59]=g,e[60]=W):W=e[60];let U;e[61]!==l||e[62]!==K||e[63]!==H||e[64]!==W?(U=t.jsx(_e,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:B,children:t.jsx(_.Suspense,{fallback:P,children:t.jsx(ts,{connectionId:l,selections:K,onToggle:H,onToggleAll:W})})})}),e[61]=l,e[62]=K,e[63]=H,e[64]=W,e[65]=U):U=e[65];let Y;e[66]!==i||e[67]!==w||e[68]!==E||e[69]!==U||e[70]!==j?(Y=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(Lt,{value:i,onValueChange:j,variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[v,w,E,U]})}),e[66]=i,e[67]=w,e[68]=E,e[69]=U,e[70]=j,e[71]=Y):Y=e[71];let Z;return e[72]!==Y||e[73]!==f?(Z=t.jsxs(t.Fragment,{children:[f,Y]}),e[72]=Y,e[73]=f,e[74]=Z):Z=e[74],Z}function rs(o){const e={};for(const s of o)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Ee(o){return Object.entries(o).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function as(o,e){switch(e.type){case"SET_SEARCH_TERM":return{...o,searchTerm:e.payload};case"SET_SELECTED":return{...o,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...o,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...o,selectedId:e.payload,activeTab:"tools"};default:return o}}const cs=(o,e)=>o.find(s=>s.id===e)??o[0];function ds(o){const e=k.c(77),{open:s,onOpenChange:i,selectedId:l,form:n,connections:d}=o;let a;e[0]!==l?(a={activeTab:"tools",searchTerm:"",selectedId:l},e[0]=l,e[1]=a):a=e[1];const[r,c]=_.useReducer(as,a),p=_.useDeferredValue(r.searchTerm);let g;e[2]!==p?(g={searchTerm:p},e[2]=p,e[3]=g):g=e[3];const x=pt(g);let h;e[4]!==d?(h=d??[],e[4]=d,e[5]=h):h=e[5];let m;e[6]!==h?(m=rs(h),e[6]=h,e[7]=m):m=e[7];const u=m;let b;e[8]!==x||e[9]!==r.selectedId?(b=cs(x,r.selectedId),e[8]=x,e[9]=r.selectedId,e[10]=b):b=e[10];const f=b,j=f?.id??null;let y;e[11]!==u?(y=N=>Wt(u,N),e[11]=u,e[12]=y):y=e[12];const C=y;let v;e[13]!==u?(v=N=>Kt(u,N),e[13]=u,e[14]=v):v=e[14];const V=v;let R;e[15]!==n||e[16]!==u?(R=(N,L,F,Q)=>{const ie=u[N]?.[L];let G;ie===null?G=Q.filter(ye=>ye!==F):ie?.includes(F)?G=ie.filter(ye=>ye!==F):(G=[...ie??[],F],G.length===Q.length&&(G=null));const re={...u};re[N]?re[N]={...re[N]}:re[N]={tools:null,resources:null,prompts:null},re[N][L]=G,n.setValue("connections",Ee(re),{shouldDirty:!0,shouldTouch:!0})},e[15]=n,e[16]=u,e[17]=R):R=e[17];const T=R;let O;e[18]!==n||e[19]!==u?(O=(N,L)=>{const ie=u[N]?.[L]===null?[]:null,G={...u};G[N]?G[N]={...G[N]}:G[N]={tools:null,resources:null,prompts:null},G[N][L]=ie,n.setValue("connections",Ee(G),{shouldDirty:!0,shouldTouch:!0})},e[18]=n,e[19]=u,e[20]=O):O=e[20];const S=O;let w;e[21]!==T?(w=(N,L,F)=>T(N,"tools",L,F),e[21]=T,e[22]=w):w=e[22];const z=w;let $;e[23]!==T?($=(N,L,F)=>T(N,"resources",L,F),e[23]=T,e[24]=$):$=e[24];const I=$;let D;e[25]!==T?(D=(N,L,F)=>T(N,"prompts",L,F),e[25]=T,e[26]=D):D=e[26];const A=D;let E;e[27]!==S?(E=N=>S(N,"tools"),e[27]=S,e[28]=E):E=e[28];const B=E;let P;e[29]!==S?(P=N=>S(N,"resources"),e[29]=S,e[30]=P):P=e[30];const K=P;let H;e[31]!==S?(H=N=>S(N,"prompts"),e[31]=S,e[32]=H):H=e[32];const W=H;let U;e[33]!==n||e[34]!==u?(U=N=>{const L=u[N],F=L&&L.tools===null&&L.resources===null&&L.prompts===null,Q={...u};F?delete Q[N]:Q[N]=Yt,n.setValue("connections",Ee(Q),{shouldDirty:!0,shouldTouch:!0})},e[33]=n,e[34]=u,e[35]=U):U=e[35];const Y=U;let Z;e[36]!==x||e[37]!==i||e[38]!==l?(Z=N=>{N&&c({type:"RESET",payload:{selectedId:l,firstConnectionId:x[0]?.id??null}}),i(N)},e[36]=x,e[37]=i,e[38]=l,e[39]=Z):Z=e[39];const M=Z;let q;e[40]===Symbol.for("react.memo_cache_sentinel")?(q=N=>{c({type:"SELECT_CONNECTION",payload:N})},e[40]=q):q=e[40];const qe=q;let me;e[41]===Symbol.for("react.memo_cache_sentinel")?(me=N=>c({type:"SET_SEARCH_TERM",payload:N}),e[41]=me):me=e[41];let X;e[42]!==r.searchTerm?(X=t.jsx(dt,{value:r.searchTerm,onChange:me,placeholder:"Search connections..."}),e[42]=r.searchTerm,e[43]=X):X=e[43];let ee;e[44]!==x||e[45]!==r.searchTerm||e[46]!==j||e[47]!==V||e[48]!==C||e[49]!==Y?(ee=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(ns,{allConnections:x,searchTerm:r.searchTerm,selectedId:j,hasSelections:C,getSelectionSummary:V,onConnectionClick:qe,onToggleAll:Y})}),e[44]=x,e[45]=r.searchTerm,e[46]=j,e[47]=V,e[48]=C,e[49]=Y,e[50]=ee):ee=e[50];let te;e[51]!==X||e[52]!==ee?(te=t.jsxs("div",{className:"w-full sm:w-72 sm:border-r border-b sm:border-b-0 border-border flex flex-col bg-background sm:h-full max-h-[40vh] sm:max-h-full",children:[X,ee]}),e[51]=X,e[52]=ee,e[53]=te):te=e[53];let se;e[54]!==f||e[55]!==r.activeTab||e[56]!==j||e[57]!==u||e[58]!==W||e[59]!==K||e[60]!==B||e[61]!==A||e[62]!==I||e[63]!==z?(se=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:f&&j?t.jsx(is,{currentConnection:f,activeTab:r.activeTab,selectedId:j,formData:u,toggleTool:z,toggleResource:I,togglePrompt:A,toggleAllTools:B,toggleAllResources:K,toggleAllPrompts:W,onTabChange:N=>c({type:"SET_ACTIVE_TAB",payload:N})},j):t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"Select a connection to view its tools, resources, and prompts"})}),e[54]=f,e[55]=r.activeTab,e[56]=j,e[57]=u,e[58]=W,e[59]=K,e[60]=B,e[61]=A,e[62]=I,e[63]=z,e[64]=se):se=e[64];let le;e[65]!==te||e[66]!==se?(le=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[te,se]}),e[65]=te,e[66]=se,e[67]=le):le=e[67];let oe;e[68]!==M?(oe=t.jsx(At,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(J,{variant:"outline",onClick:()=>M(!1),children:"Done"})}),e[68]=M,e[69]=oe):oe=e[69];let ne;e[70]!==le||e[71]!==oe?(ne=t.jsxs(He,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[le,oe]}),e[70]=le,e[71]=oe,e[72]=ne):ne=e[72];let ue;return e[73]!==M||e[74]!==s||e[75]!==ne?(ue=t.jsx(Ue,{open:s,onOpenChange:M,children:ne}),e[73]=M,e[74]=s,e[75]=ne,e[76]=ue):ue=e[76],ue}const ms=Ze.pick({title:!0,description:!0,status:!0,metadata:!0,connections:!0}).extend({title:Qe().min(1,"Name is required").max(255)});function us(o){const e=k.c(8);let s,i;e[0]!==o?({className:s,...i}=o,e[0]=o,e[1]=s,e[2]=i):(s=e[1],i=e[2]);let l;e[3]!==s?(l=ae("grid gap-3",s),e[3]=s,e[4]=l):l=e[4];let n;return e[5]!==i||e[6]!==l?(n=t.jsx(Bt,{"data-slot":"radio-group",className:l,...i}),e[5]=i,e[6]=l,e[7]=n):n=e[7],n}function Ie(o){const e=k.c(9);let s,i;e[0]!==o?({className:s,...i}=o,e[0]=o,e[1]=s,e[2]=i):(s=e[1],i=e[2]);let l;e[3]!==s?(l=ae("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),e[3]=s,e[4]=l):l=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Ft,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(We,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=n):n=e[5];let d;return e[6]!==i||e[7]!==l?(d=t.jsx(Vt,{"data-slot":"radio-group-item",className:l,...i,children:n}),e[6]=i,e[7]=l,e[8]=d):d=e[8],d}function fs(o){const s=new TextEncoder().encode(o),i=Array.from(s,l=>String.fromCharCode(l)).join("");return btoa(i)}function xs(o){const e=k.c(10),{url:s}=o,[i,l]=_.useState(!1);let n;e[0]!==s?(n=async()=>{await navigator.clipboard.writeText(s),l(!0),ce.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=s,e[1]=n):n=e[1];const d=n;let a;e[2]!==i?(a=i?t.jsx(be,{size:20,className:"text-green-600"}):t.jsx(Re,{size:20}),e[2]=i,e[3]=a):a=e[3];const r=i?"Copied!":"Copy URL";let c;e[4]!==r?(c=t.jsx("span",{className:"text-xs font-medium",children:r}),e[4]=r,e[5]=c):c=e[5];let p;return e[6]!==d||e[7]!==a||e[8]!==c?(p=t.jsxs(J,{type:"button",variant:"outline",onClick:d,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,c]}),e[6]=d,e[7]=a,e[8]=c,e[9]=p):p=e[9],p}function ps(o){const e=k.c(7),{url:s,serverName:i}=o;let l;e[0]!==i||e[1]!==s?(l=()=>{const c=Ke(i),g=fs(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),x=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(c)}&config=${encodeURIComponent(g)}`;window.open(x,"_blank"),ce.success("Opening Cursor...")},e[0]=i,e[1]=s,e[2]=l):l=e[2];const n=l;let d,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),a=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=d,e[4]=a):(d=e[3],a=e[4]);let r;return e[5]!==n?(r=t.jsxs(J,{type:"button",variant:"outline",onClick:n,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[d,a]}),e[5]=n,e[6]=r):r=e[6],r}function hs(o){const e=k.c(11),{url:s,serverName:i}=o,[l,n]=_.useState(!1);let d;e[0]!==i||e[1]!==s?(d=async()=>{const x=Ke(i),m=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),u=`claude mcp add-json "${x}" '${m.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(u),n(!0),ce.success("Claude Code command copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=i,e[1]=s,e[2]=d):d=e[2];const a=d;let r;e[3]!==l?(r=l?t.jsx(be,{size:20,className:"text-green-600"}):t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),e[3]=l,e[4]=r):r=e[4];const c=l?"Copied!":"Install on Claude";let p;e[5]!==c?(p=t.jsx("span",{className:"text-xs font-medium",children:c}),e[5]=c,e[6]=p):p=e[6];let g;return e[7]!==a||e[8]!==r||e[9]!==p?(g=t.jsxs(J,{type:"button",variant:"outline",onClick:a,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[r,p]}),e[7]=a,e[8]=r,e[9]=p,e[10]=g):g=e[10],g}function gs({virtualMcp:o}){const{org:e}=de(),s=je({connectionId:zt,orgId:e.id}),[i,l]=_.useState(null),[n,d]=_.useState(!1),[a,r]=_.useState(!1),c=o.id,p=o.title||`agent-${c.slice(0,8)}`,g=i?`bunx @decocms/typegen@latest --mcp ${c} --key ${i} --output client.ts`:`bunx @decocms/typegen@latest --mcp ${c} --key <api-key> --output client.ts`,x=async()=>{d(!0);try{const u=(await s.callTool({name:"API_KEY_CREATE",arguments:{name:`typegen-${p}`,permissions:{[c]:["*"]}}})).structuredContent?.key;if(!u)throw new Error("No key in response");l(u)}catch{ce.error("Failed to generate API key")}finally{d(!1)}},h=async()=>{await navigator.clipboard.writeText(g),r(!0),ce.success("Command copied to clipboard"),setTimeout(()=>r(!1),2e3)};return t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("h4",{className:"text-sm font-medium text-foreground",children:"Generate typed client"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Introspects this agent and writes a typed"," ",t.jsx("code",{className:"font-mono",children:"client.ts"})," you can import directly."]})]}),!i&&t.jsxs(J,{type:"button",variant:"outline",size:"sm",className:"shrink-0 gap-1.5",onClick:x,disabled:n,children:[n?t.jsx(Le,{size:14,className:"animate-spin"}):t.jsx(Ht,{size:14}),t.jsx("span",{children:n?"Generating…":"Generate API key"})]})]}),i&&t.jsx("p",{className:"rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-700",children:"Store this key securely — it won't be shown again."}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Generate client"}),t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("code",{className:"min-w-0 flex-1 break-all font-mono text-xs text-muted-foreground",children:g}),t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:h,children:a?t.jsx(be,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12})})]})}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Runtime variables"}),t.jsx(js,{apiKey:i})]})}function js(o){const e=k.c(19),{apiKey:s}=o,[i,l]=_.useState(!1),n=window.location.origin,d=s?`MESH_API_KEY=${s}`:"MESH_API_KEY=<api-key>",a=`MESH_BASE_URL=${n}`,r=`${d}
1
+ import{r as _,c as k,j as t,E as fe,B as J,v as ae,_ as Je,u as de,V as Ze,s as Qe,t as ce,b as Xe,e as et,O as Fe,l as tt,k as st,aD as lt,q as ot}from"./index-BkxNgQ-z.js";import{b as Oe,i as nt,c as it,u as rt,C as at,d as ct}from"./collapsible-CG7okAAn.js";import{C as dt,E as mt}from"./collection-search-BgstpGbD.js";import{I as ge}from"./integration-icon-DqBJsR0X.js";import{u as ut}from"./index-B4YFEuZr.js";import{B as $e}from"./badge-UPowR1Nj.js";import{I as Me}from"./input-BxWPl4Ur.js";import{S as ft}from"./switch-BX7m8ylT.js";import{T as xt}from"./textarea-CceQB-N2.js";import{a as xe,c as ve,T as pe,b as he}from"./tooltip-DvMRS01W.js";import{h as pt,f as ht}from"./use-connection-DjiXkPUz.js";import{u as gt,a as jt}from"./use-virtual-mcp-Wj5StsuR.js";import{i as Ge}from"./ChevronRight-u7jqeZNG.js";import{n as bt}from"./select-CHQkyynJ.js";import{i as De}from"./File02-B1NunE2J.js";import{i as Le}from"./Loading01-BLoQsWVt.js";import{i as Nt}from"./Play-CCz3CWMJ.js";import{s as Ve}from"./Plus-4zX3n4bH.js";import{t as yt}from"./Users03-CUxh9_Jy.js";import{B as vt,a as Ct,b as Be,d as _t,e as St,c as Tt}from"./breadcrumb-DxXcAXh7.js";import{a as kt,V as wt}from"./layout-rnNZXdmD.js";import{S as Et}from"./save-actions-DgW9lLRI.js";import{a as It}from"./tools-list-Cb9H3DsC.js";import{C as ze}from"./checkbox-Df-Mj-oX.js";import{e as At,a as He,D as Ue,b as Ot,c as $t}from"./dialog-CrYlSCa6.js";import{T as Ce,a as Dt,b as _e,c as Lt}from"./tabs-tcquyh90.js";import{u as je,a as zt}from"./constants--aQ9HnxF.js";import{c as Rt}from"./use-mcp-tools-CHOGR3no.js";import{a as Pt}from"./use-mcp-resources-DS8p1Owh.js";import{u as Mt}from"./decopilot-events-DZodCqX1.js";import{s as Ke}from"./slugify-CEUa2lfQ.js";import{I as Vt,R as Bt,a as Ft}from"./index-Bq_4mEQF.js";import{i as be}from"./Check-BuBqfL8V.js";import{i as Gt}from"./Code01-DhSY1b20.js";import{a as Re}from"./Copy01-D2l3XUry.js";import{i as Se}from"./InfoCircle-B_WtF_e0.js";import{i as Ht}from"./Key01-Cvjt_ykt.js";import{A as Ut}from"./agent-connections-preview-BTescy5G.js";import"./use-llm-Bkjj502R.js";import"./use-binding-CVLYzFG-.js";import"./binder-DUACCYIe.js";import"./useQuery-Cj-miqA2.js";import"./localstorage-keys-2beZrYfY.js";import"./useMutation-DtOoZO7h.js";import"./skeleton-Bla1LCSZ.js";import"./AlignLeft-zf4ygcA_.js";import"./ArrowLeft-DKmEJ5pf.js";import"./ChevronDown-D15Vpp0r.js";import"./Image01-oZtE9Z5q.js";import"./RefreshCcw01-DzE0Vt_s.js";import"./SearchMd-BvHN4xgB.js";import"./Settings01-B5kunEo2.js";import"./useSuspenseInfiniteQuery-D62VIKAF.js";import"./infiniteQueryObserver-DFroUYRE.js";import"./Container-CFxptFeR.js";import"./index-dKQNml8k.js";import"./Save01-DiUMsefH.js";import"./collection-table-wrapper-B7II4YYC.js";import"./dropdown-menu-DvfBJ25L.js";import"./ArrowDown-BfANN175.js";import"./ArrowUp-BNm6R5tp.js";import"./Grid01-DjcW2Js4.js";import"./List-Be3XBHwN.js";import"./table-BJ3W5Geb.js";import"./card-BRjix5ol.js";import"./types-9lUbCnT7.js";import"./Eye-vR70tVFn.js";import"./Globe02-6j3SB4QZ.js";import"./LayersTwo01-f778oNbj.js";import"./X-CpsrVd7E.js";const We=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));We.displayName="Circle";const Ne=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.createElement("path",{d:"m9.75 20.75 1.473.818c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l1.473-.818m-9-2.5-1.427-.793c-.3-.166-.45-.25-.558-.368a1 1 0 0 1-.215-.364C3 16.573 3 16.401 3 16.06V14.5m0-5V7.942c0-.343 0-.514.05-.667a1 1 0 0 1 .215-.364c.109-.119.258-.202.558-.368L5.25 5.75m4.5-2.5 1.473-.818c.284-.158.425-.237.576-.267a1 1 0 0 1 .402 0c.15.03.292.11.576.267l1.473.818m4.5 2.5 1.427.793c.3.166.45.25.558.368a1 1 0 0 1 .215.364c.05.153.05.324.05.667V9.5m0 5v1.559c0 .342 0 .514-.05.666a.999.999 0 0 1-.215.364c-.109.119-.258.202-.558.368l-1.427.793m-9-7.5L12 12m0 0 2.25-1.25M12 12v2.5M3 7l2.25 1.25m13.5 0L21 7m-9 12.5V22"}));Ne.displayName="CubeOutline";const Ye=({size:o=24,color:e="currentColor",...s})=>_.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},_.createElement("path",{d:"m12 5.5-4.638 6.747c-.28.406-.42.609-.41.778a.5.5 0 0 0 .195.373c.135.102.38.102.874.102H12v5l4.638-6.747c.28-.406.42-.609.41-.778a.5.5 0 0 0-.195-.373c-.135-.102-.38-.102-.874-.102H12v-5Z"}),_.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));Ye.displayName="ZapCircle";function Te(o){return o===null?"all":o?.length??0}function Kt(o,e){const s=o[e];if(!s)return"";const i=[];return s.tools===null?i.push("all tools"):s.tools&&s.tools.length>0&&i.push(`${s.tools.length} tools`),s.resources===null?i.push("all resources"):s.resources&&s.resources.length>0&&i.push(`${s.resources.length} resources`),s.prompts===null?i.push("all prompts"):s.prompts&&s.prompts.length>0&&i.push(`${s.prompts.length} prompts`),i.join(", ")}function Wt(o,e){const s=o[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const Yt={tools:null,resources:null,prompts:null};function ke(){const o=k.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(Le,{className:"animate-spin text-muted-foreground",size:24})}),o[0]=e):e=o[0],e}function we(o){return({error:e})=>e?.message?.includes("Method not found")||e?.code===-32601?t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:o})}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(Je,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message?e.message.length>200?`${e.message.slice(0,200)}...`:e.message:"An unexpected error occurred"})]})]})}function qt(o){const e=k.c(23),{item:s,isSelected:i,onToggle:l,disabled:n}=o,d=n?"cursor-not-allowed opacity-50":"cursor-pointer",a=i?"bg-accent/25":"hover:bg-muted/50";let r;e[0]!==d||e[1]!==a?(r=ae("flex items-start gap-3 p-4 rounded-lg transition-colors",d,a),e[0]=d,e[1]=a,e[2]=r):r=e[2];let c;e[3]!==s.name?(c=t.jsx("p",{className:"text-sm font-medium leading-none truncate",children:s.name}),e[3]=s.name,e[4]=c):c=e[4];let p;e[5]!==s.tags?(p=s.tags&&t.jsx("span",{className:"shrink-0",children:s.tags}),e[5]=s.tags,e[6]=p):p=e[6];let g;e[7]!==c||e[8]!==p?(g=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[c,p]}),e[7]=c,e[8]=p,e[9]=g):g=e[9];let x;e[10]!==s.description?(x=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[10]=s.description,e[11]=x):x=e[11];let h;e[12]!==g||e[13]!==x?(h=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[g,x]}),e[12]=g,e[13]=x,e[14]=h):h=e[14];let m;e[15]!==n||e[16]!==i||e[17]!==l?(m=t.jsx(ze,{checked:i,onCheckedChange:l,disabled:n,className:"mt-0.5"}),e[15]=n,e[16]=i,e[17]=l,e[18]=m):m=e[18];let u;return e[19]!==r||e[20]!==h||e[21]!==m?(u=t.jsxs("label",{className:r,children:[h,m]}),e[19]=r,e[20]=h,e[21]=m,e[22]=u):u=e[22],u}function Pe(o){const e=k.c(32),{items:s,selections:i,onToggle:l,onToggleAll:n,emptyMessage:d,disabled:a}=o;let r,c,p,g,x;if(e[0]!==a||e[1]!==d||e[2]!==s||e[3]!==l||e[4]!==n||e[5]!==i){x=Symbol.for("react.early_return_sentinel");e:{const u=s.map(Jt);if(s.length===0){let v;e[11]!==d?(v=t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:d})}),e[11]=d,e[12]=v):v=e[12],x=v;break e}p="flex flex-col h-full";const b=a?"cursor-not-allowed opacity-50":"cursor-pointer";let f;e[13]!==b?(f=ae("flex items-start gap-3 p-4",b),e[13]=b,e[14]=f):f=e[14];let j;e[15]!==s.length?(j=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsxs("span",{className:"text-sm font-medium",children:["Select All (",s.length,")"]})}),e[15]=s.length,e[16]=j):j=e[16];const y=i===null;let C;e[17]!==a||e[18]!==n||e[19]!==y?(C=t.jsx(ze,{checked:y,onCheckedChange:n,disabled:a,className:"mt-0.5"}),e[17]=a,e[18]=n,e[19]=y,e[20]=C):C=e[20],e[21]!==C||e[22]!==f||e[23]!==j?(g=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:f,children:[j,C]})}),e[21]=C,e[22]=f,e[23]=j,e[24]=g):g=e[24],r="flex-1 overflow-auto px-4 py-3 space-y-1",c=s.map(v=>t.jsx(qt,{item:v,isSelected:i===null||i?.includes(v.id),onToggle:()=>l(v.id,u),disabled:a},v.id))}e[0]=a,e[1]=d,e[2]=s,e[3]=l,e[4]=n,e[5]=i,e[6]=r,e[7]=c,e[8]=p,e[9]=g,e[10]=x}else r=e[6],c=e[7],p=e[8],g=e[9],x=e[10];if(x!==Symbol.for("react.early_return_sentinel"))return x;let h;e[25]!==r||e[26]!==c?(h=t.jsx("div",{className:r,children:c}),e[25]=r,e[26]=c,e[27]=h):h=e[27];let m;return e[28]!==p||e[29]!==g||e[30]!==h?(m=t.jsxs("div",{className:p,children:[g,h]}),e[28]=p,e[29]=g,e[30]=h,e[31]=m):m=e[31],m}function Jt(o){return o.id}function Zt(o){const e=k.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:d}=o,{org:a}=de();let r;e[0]!==s||e[1]!==a.id?(r={connectionId:s,orgId:a.id},e[0]=s,e[1]=a.id,e[2]=r):r=e[2];const c=je(r);let p;e[3]!==c?(p={client:c},e[3]=c,e[4]=p):p=e[4];const{data:g}=Rt(p);let x;e[5]!==g.tools?(x=g.tools.map(Qt),e[5]=g.tools,e[6]=x):x=e[6];const h=x;let m;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==n||e[11]!==i?(m=t.jsx(Pe,{items:h,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No tools available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=n,e[11]=i,e[12]=m):m=e[12],m}function Qt(o){return{id:o.name,name:o.name,description:o.description,tags:t.jsx(It,{annotations:o.annotations,_meta:o._meta})}}function Xt(o){const e=k.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:d}=o,{org:a}=de();let r;e[0]!==s||e[1]!==a.id?(r={connectionId:s,orgId:a.id},e[0]=s,e[1]=a.id,e[2]=r):r=e[2];const c=je(r);let p;e[3]!==c?(p={client:c},e[3]=c,e[4]=p):p=e[4];const{data:g}=Pt(p);let x;e[5]!==g.resources?(x=g.resources.map(es),e[5]=g.resources,e[6]=x):x=e[6];const h=x;let m;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==n||e[11]!==i?(m=t.jsx(Pe,{items:h,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No resources available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=n,e[11]=i,e[12]=m):m=e[12],m}function es(o){return{id:o.name||o.uri,name:o.name||o.uri,description:o.description}}function ts(o){const e=k.c(13),{connectionId:s,selections:i,onToggle:l,onToggleAll:n,disabled:d}=o,{org:a}=de();let r;e[0]!==s||e[1]!==a.id?(r={connectionId:s,orgId:a.id},e[0]=s,e[1]=a.id,e[2]=r):r=e[2];const c=je(r);let p;e[3]!==c?(p={client:c},e[3]=c,e[4]=p):p=e[4];const{data:g}=Mt(p);let x;e[5]!==g.prompts?(x=g.prompts.map(ss),e[5]=g.prompts,e[6]=x):x=e[6];const h=x;let m;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==n||e[11]!==i?(m=t.jsx(Pe,{items:h,selections:i,onToggle:l,onToggleAll:n,emptyMessage:"No prompts available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=n,e[11]=i,e[12]=m):m=e[12],m}function ss(o){return{id:o.name,name:o.name,description:o.description}}function ls(o){const e=k.c(24),{connection:s,isSelected:i,hasSelections:l,summary:n,onClick:d,onToggleAll:a,disabled:r}=o,c=r?"cursor-not-allowed opacity-50":"cursor-pointer",p=i?"bg-accent":"hover:bg-muted/50";let g;e[0]!==c||e[1]!==p?(g=ae("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",c,p),e[0]=c,e[1]=p,e[2]=g):g=e[2];const x=r?void 0:d;let h;e[3]!==s.icon||e[4]!==s.title?(h=t.jsx(ge,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=h):h=e[5];let m;e[6]!==s.title?(m=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=m):m=e[7];let u;e[8]!==l||e[9]!==n?(u=l&&n&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:n}),e[8]=l,e[9]=n,e[10]=u):u=e[10];let b;e[11]!==m||e[12]!==u?(b=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[m,u]}),e[11]=m,e[12]=u,e[13]=b):b=e[13];let f;e[14]!==r||e[15]!==l||e[16]!==a?(f=t.jsx(ze,{checked:l,onCheckedChange:a,onClick:os,disabled:r,className:"shrink-0"}),e[14]=r,e[15]=l,e[16]=a,e[17]=f):f=e[17];let j;return e[18]!==g||e[19]!==x||e[20]!==h||e[21]!==b||e[22]!==f?(j=t.jsxs("div",{className:g,onClick:x,children:[h,b,f]}),e[18]=g,e[19]=x,e[20]=h,e[21]=b,e[22]=f,e[23]=j):j=e[23],j}function os(o){return o.stopPropagation()}function ns(o){const e=k.c(22),{allConnections:s,searchTerm:i,selectedId:l,hasSelections:n,getSelectionSummary:d,onConnectionClick:a,onToggleAll:r,disabled:c}=o;let p;e[0]!==s||e[1]!==i?(p=i?s.filter(m=>m.title.toLowerCase().includes(i.toLowerCase())||m.description?.toLowerCase().includes(i.toLowerCase())):s,e[0]=s,e[1]=i,e[2]=p):p=e[2];const g=p;if(g.length===0){const m=i?"No connections found":"No connections available";let u;return e[3]!==m?(u=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:m}),e[3]=m,e[4]=u):u=e[4],u}let x;if(e[5]!==c||e[6]!==g||e[7]!==d||e[8]!==n||e[9]!==a||e[10]!==r||e[11]!==l){let m;e[13]!==c||e[14]!==d||e[15]!==n||e[16]!==a||e[17]!==r||e[18]!==l?(m=u=>t.jsx(ls,{connection:u,isSelected:l===u.id,hasSelections:n(u.id),summary:d(u.id),onClick:()=>a(u.id),onToggleAll:()=>r(u.id),disabled:c},u.id),e[13]=c,e[14]=d,e[15]=n,e[16]=a,e[17]=r,e[18]=l,e[19]=m):m=e[19],x=g.map(m),e[5]=c,e[6]=g,e[7]=d,e[8]=n,e[9]=a,e[10]=r,e[11]=l,e[12]=x}else x=e[12];let h;return e[20]!==x?(h=t.jsx("div",{className:"flex flex-col gap-0.5",children:x}),e[20]=x,e[21]=h):h=e[21],h}function is(o){const e=k.c(75),{currentConnection:s,activeTab:i,selectedId:l,formData:n,toggleTool:d,toggleResource:a,togglePrompt:r,toggleAllTools:c,toggleAllResources:p,toggleAllPrompts:g,onTabChange:x}=o;let h;e[0]!==s.icon||e[1]!==s.title?(h=t.jsx(ge,{icon:s.icon,name:s.title,size:"md",className:"shrink-0"}),e[0]=s.icon,e[1]=s.title,e[2]=h):h=e[2];let m;e[3]!==s.title?(m=t.jsx("h2",{className:"text-lg font-semibold truncate",children:s.title}),e[3]=s.title,e[4]=m):m=e[4];let u;e[5]!==s.description?(u=s.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.description}),e[5]=s.description,e[6]=u):u=e[6];let b;e[7]!==m||e[8]!==u?(b=t.jsxs("div",{className:"flex-1 min-w-0",children:[m,u]}),e[7]=m,e[8]=u,e[9]=b):b=e[9];let f;e[10]!==h||e[11]!==b?(f=t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[h,b]})}),e[10]=h,e[11]=b,e[12]=f):f=e[12];let j;e[13]!==x?(j=M=>x(M),e[13]=x,e[14]=j):j=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs(Ce,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(Oe,{size:16}),"Tools"]}),e[15]=y):y=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs(Ce,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(Ne,{size:16}),"Resources"]}),e[16]=C):C=e[16];let v;e[17]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs(Dt,{variant:"underline",className:"shrink-0 px-6",children:[y,C,t.jsxs(Ce,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(De,{size:16}),"Prompts"]})]}),e[17]=v):v=e[17];let V;e[18]===Symbol.for("react.memo_cache_sentinel")?(V=we("Tools not supported by this server"),e[18]=V):V=e[18];let R;e[19]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(ke,{}),e[19]=R):R=e[19];let T;e[20]!==n||e[21]!==l?(T=n[l]?n[l].tools:[],e[20]=n,e[21]=l,e[22]=T):T=e[22];let O;e[23]!==l||e[24]!==d?(O=(M,q)=>d(l,M,q),e[23]=l,e[24]=d,e[25]=O):O=e[25];let S;e[26]!==l||e[27]!==c?(S=()=>c(l),e[26]=l,e[27]=c,e[28]=S):S=e[28];let w;e[29]!==l||e[30]!==T||e[31]!==O||e[32]!==S?(w=t.jsx(_e,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:V,children:t.jsx(_.Suspense,{fallback:R,children:t.jsx(Zt,{connectionId:l,selections:T,onToggle:O,onToggleAll:S})})})}),e[29]=l,e[30]=T,e[31]=O,e[32]=S,e[33]=w):w=e[33];let z;e[34]===Symbol.for("react.memo_cache_sentinel")?(z=we("Resources not supported by this server"),e[34]=z):z=e[34];let $;e[35]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(ke,{}),e[35]=$):$=e[35];let I;e[36]!==n||e[37]!==l?(I=n[l]?n[l].resources:[],e[36]=n,e[37]=l,e[38]=I):I=e[38];let D;e[39]!==l||e[40]!==a?(D=(M,q)=>a(l,M,q),e[39]=l,e[40]=a,e[41]=D):D=e[41];let A;e[42]!==l||e[43]!==p?(A=()=>p(l),e[42]=l,e[43]=p,e[44]=A):A=e[44];let E;e[45]!==l||e[46]!==I||e[47]!==D||e[48]!==A?(E=t.jsx(_e,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:z,children:t.jsx(_.Suspense,{fallback:$,children:t.jsx(Xt,{connectionId:l,selections:I,onToggle:D,onToggleAll:A})})})}),e[45]=l,e[46]=I,e[47]=D,e[48]=A,e[49]=E):E=e[49];let B;e[50]===Symbol.for("react.memo_cache_sentinel")?(B=we("Prompts not supported by this server"),e[50]=B):B=e[50];let P;e[51]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(ke,{}),e[51]=P):P=e[51];let K;e[52]!==n||e[53]!==l?(K=n[l]?n[l].prompts:[],e[52]=n,e[53]=l,e[54]=K):K=e[54];let H;e[55]!==l||e[56]!==r?(H=(M,q)=>r(l,M,q),e[55]=l,e[56]=r,e[57]=H):H=e[57];let W;e[58]!==l||e[59]!==g?(W=()=>g(l),e[58]=l,e[59]=g,e[60]=W):W=e[60];let U;e[61]!==l||e[62]!==K||e[63]!==H||e[64]!==W?(U=t.jsx(_e,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:B,children:t.jsx(_.Suspense,{fallback:P,children:t.jsx(ts,{connectionId:l,selections:K,onToggle:H,onToggleAll:W})})})}),e[61]=l,e[62]=K,e[63]=H,e[64]=W,e[65]=U):U=e[65];let Y;e[66]!==i||e[67]!==w||e[68]!==E||e[69]!==U||e[70]!==j?(Y=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(Lt,{value:i,onValueChange:j,variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[v,w,E,U]})}),e[66]=i,e[67]=w,e[68]=E,e[69]=U,e[70]=j,e[71]=Y):Y=e[71];let Z;return e[72]!==Y||e[73]!==f?(Z=t.jsxs(t.Fragment,{children:[f,Y]}),e[72]=Y,e[73]=f,e[74]=Z):Z=e[74],Z}function rs(o){const e={};for(const s of o)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Ee(o){return Object.entries(o).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function as(o,e){switch(e.type){case"SET_SEARCH_TERM":return{...o,searchTerm:e.payload};case"SET_SELECTED":return{...o,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...o,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...o,selectedId:e.payload,activeTab:"tools"};default:return o}}const cs=(o,e)=>o.find(s=>s.id===e)??o[0];function ds(o){const e=k.c(77),{open:s,onOpenChange:i,selectedId:l,form:n,connections:d}=o;let a;e[0]!==l?(a={activeTab:"tools",searchTerm:"",selectedId:l},e[0]=l,e[1]=a):a=e[1];const[r,c]=_.useReducer(as,a),p=_.useDeferredValue(r.searchTerm);let g;e[2]!==p?(g={searchTerm:p},e[2]=p,e[3]=g):g=e[3];const x=pt(g);let h;e[4]!==d?(h=d??[],e[4]=d,e[5]=h):h=e[5];let m;e[6]!==h?(m=rs(h),e[6]=h,e[7]=m):m=e[7];const u=m;let b;e[8]!==x||e[9]!==r.selectedId?(b=cs(x,r.selectedId),e[8]=x,e[9]=r.selectedId,e[10]=b):b=e[10];const f=b,j=f?.id??null;let y;e[11]!==u?(y=N=>Wt(u,N),e[11]=u,e[12]=y):y=e[12];const C=y;let v;e[13]!==u?(v=N=>Kt(u,N),e[13]=u,e[14]=v):v=e[14];const V=v;let R;e[15]!==n||e[16]!==u?(R=(N,L,F,Q)=>{const ie=u[N]?.[L];let G;ie===null?G=Q.filter(ye=>ye!==F):ie?.includes(F)?G=ie.filter(ye=>ye!==F):(G=[...ie??[],F],G.length===Q.length&&(G=null));const re={...u};re[N]?re[N]={...re[N]}:re[N]={tools:null,resources:null,prompts:null},re[N][L]=G,n.setValue("connections",Ee(re),{shouldDirty:!0,shouldTouch:!0})},e[15]=n,e[16]=u,e[17]=R):R=e[17];const T=R;let O;e[18]!==n||e[19]!==u?(O=(N,L)=>{const ie=u[N]?.[L]===null?[]:null,G={...u};G[N]?G[N]={...G[N]}:G[N]={tools:null,resources:null,prompts:null},G[N][L]=ie,n.setValue("connections",Ee(G),{shouldDirty:!0,shouldTouch:!0})},e[18]=n,e[19]=u,e[20]=O):O=e[20];const S=O;let w;e[21]!==T?(w=(N,L,F)=>T(N,"tools",L,F),e[21]=T,e[22]=w):w=e[22];const z=w;let $;e[23]!==T?($=(N,L,F)=>T(N,"resources",L,F),e[23]=T,e[24]=$):$=e[24];const I=$;let D;e[25]!==T?(D=(N,L,F)=>T(N,"prompts",L,F),e[25]=T,e[26]=D):D=e[26];const A=D;let E;e[27]!==S?(E=N=>S(N,"tools"),e[27]=S,e[28]=E):E=e[28];const B=E;let P;e[29]!==S?(P=N=>S(N,"resources"),e[29]=S,e[30]=P):P=e[30];const K=P;let H;e[31]!==S?(H=N=>S(N,"prompts"),e[31]=S,e[32]=H):H=e[32];const W=H;let U;e[33]!==n||e[34]!==u?(U=N=>{const L=u[N],F=L&&L.tools===null&&L.resources===null&&L.prompts===null,Q={...u};F?delete Q[N]:Q[N]=Yt,n.setValue("connections",Ee(Q),{shouldDirty:!0,shouldTouch:!0})},e[33]=n,e[34]=u,e[35]=U):U=e[35];const Y=U;let Z;e[36]!==x||e[37]!==i||e[38]!==l?(Z=N=>{N&&c({type:"RESET",payload:{selectedId:l,firstConnectionId:x[0]?.id??null}}),i(N)},e[36]=x,e[37]=i,e[38]=l,e[39]=Z):Z=e[39];const M=Z;let q;e[40]===Symbol.for("react.memo_cache_sentinel")?(q=N=>{c({type:"SELECT_CONNECTION",payload:N})},e[40]=q):q=e[40];const qe=q;let me;e[41]===Symbol.for("react.memo_cache_sentinel")?(me=N=>c({type:"SET_SEARCH_TERM",payload:N}),e[41]=me):me=e[41];let X;e[42]!==r.searchTerm?(X=t.jsx(dt,{value:r.searchTerm,onChange:me,placeholder:"Search connections..."}),e[42]=r.searchTerm,e[43]=X):X=e[43];let ee;e[44]!==x||e[45]!==r.searchTerm||e[46]!==j||e[47]!==V||e[48]!==C||e[49]!==Y?(ee=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(ns,{allConnections:x,searchTerm:r.searchTerm,selectedId:j,hasSelections:C,getSelectionSummary:V,onConnectionClick:qe,onToggleAll:Y})}),e[44]=x,e[45]=r.searchTerm,e[46]=j,e[47]=V,e[48]=C,e[49]=Y,e[50]=ee):ee=e[50];let te;e[51]!==X||e[52]!==ee?(te=t.jsxs("div",{className:"w-full sm:w-72 sm:border-r border-b sm:border-b-0 border-border flex flex-col bg-background sm:h-full max-h-[40vh] sm:max-h-full",children:[X,ee]}),e[51]=X,e[52]=ee,e[53]=te):te=e[53];let se;e[54]!==f||e[55]!==r.activeTab||e[56]!==j||e[57]!==u||e[58]!==W||e[59]!==K||e[60]!==B||e[61]!==A||e[62]!==I||e[63]!==z?(se=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:f&&j?t.jsx(is,{currentConnection:f,activeTab:r.activeTab,selectedId:j,formData:u,toggleTool:z,toggleResource:I,togglePrompt:A,toggleAllTools:B,toggleAllResources:K,toggleAllPrompts:W,onTabChange:N=>c({type:"SET_ACTIVE_TAB",payload:N})},j):t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"Select a connection to view its tools, resources, and prompts"})}),e[54]=f,e[55]=r.activeTab,e[56]=j,e[57]=u,e[58]=W,e[59]=K,e[60]=B,e[61]=A,e[62]=I,e[63]=z,e[64]=se):se=e[64];let le;e[65]!==te||e[66]!==se?(le=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[te,se]}),e[65]=te,e[66]=se,e[67]=le):le=e[67];let oe;e[68]!==M?(oe=t.jsx(At,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(J,{variant:"outline",onClick:()=>M(!1),children:"Done"})}),e[68]=M,e[69]=oe):oe=e[69];let ne;e[70]!==le||e[71]!==oe?(ne=t.jsxs(He,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[le,oe]}),e[70]=le,e[71]=oe,e[72]=ne):ne=e[72];let ue;return e[73]!==M||e[74]!==s||e[75]!==ne?(ue=t.jsx(Ue,{open:s,onOpenChange:M,children:ne}),e[73]=M,e[74]=s,e[75]=ne,e[76]=ue):ue=e[76],ue}const ms=Ze.pick({title:!0,description:!0,status:!0,metadata:!0,connections:!0}).extend({title:Qe().min(1,"Name is required").max(255)});function us(o){const e=k.c(8);let s,i;e[0]!==o?({className:s,...i}=o,e[0]=o,e[1]=s,e[2]=i):(s=e[1],i=e[2]);let l;e[3]!==s?(l=ae("grid gap-3",s),e[3]=s,e[4]=l):l=e[4];let n;return e[5]!==i||e[6]!==l?(n=t.jsx(Bt,{"data-slot":"radio-group",className:l,...i}),e[5]=i,e[6]=l,e[7]=n):n=e[7],n}function Ie(o){const e=k.c(9);let s,i;e[0]!==o?({className:s,...i}=o,e[0]=o,e[1]=s,e[2]=i):(s=e[1],i=e[2]);let l;e[3]!==s?(l=ae("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),e[3]=s,e[4]=l):l=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Ft,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(We,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=n):n=e[5];let d;return e[6]!==i||e[7]!==l?(d=t.jsx(Vt,{"data-slot":"radio-group-item",className:l,...i,children:n}),e[6]=i,e[7]=l,e[8]=d):d=e[8],d}function fs(o){const s=new TextEncoder().encode(o),i=Array.from(s,l=>String.fromCharCode(l)).join("");return btoa(i)}function xs(o){const e=k.c(10),{url:s}=o,[i,l]=_.useState(!1);let n;e[0]!==s?(n=async()=>{await navigator.clipboard.writeText(s),l(!0),ce.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=s,e[1]=n):n=e[1];const d=n;let a;e[2]!==i?(a=i?t.jsx(be,{size:20,className:"text-green-600"}):t.jsx(Re,{size:20}),e[2]=i,e[3]=a):a=e[3];const r=i?"Copied!":"Copy URL";let c;e[4]!==r?(c=t.jsx("span",{className:"text-xs font-medium",children:r}),e[4]=r,e[5]=c):c=e[5];let p;return e[6]!==d||e[7]!==a||e[8]!==c?(p=t.jsxs(J,{type:"button",variant:"outline",onClick:d,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,c]}),e[6]=d,e[7]=a,e[8]=c,e[9]=p):p=e[9],p}function ps(o){const e=k.c(7),{url:s,serverName:i}=o;let l;e[0]!==i||e[1]!==s?(l=()=>{const c=Ke(i),g=fs(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),x=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(c)}&config=${encodeURIComponent(g)}`;window.open(x,"_blank"),ce.success("Opening Cursor...")},e[0]=i,e[1]=s,e[2]=l):l=e[2];const n=l;let d,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),a=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=d,e[4]=a):(d=e[3],a=e[4]);let r;return e[5]!==n?(r=t.jsxs(J,{type:"button",variant:"outline",onClick:n,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[d,a]}),e[5]=n,e[6]=r):r=e[6],r}function hs(o){const e=k.c(11),{url:s,serverName:i}=o,[l,n]=_.useState(!1);let d;e[0]!==i||e[1]!==s?(d=async()=>{const x=Ke(i),m=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),u=`claude mcp add-json "${x}" '${m.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(u),n(!0),ce.success("Claude Code command copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=i,e[1]=s,e[2]=d):d=e[2];const a=d;let r;e[3]!==l?(r=l?t.jsx(be,{size:20,className:"text-green-600"}):t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),e[3]=l,e[4]=r):r=e[4];const c=l?"Copied!":"Install on Claude";let p;e[5]!==c?(p=t.jsx("span",{className:"text-xs font-medium",children:c}),e[5]=c,e[6]=p):p=e[6];let g;return e[7]!==a||e[8]!==r||e[9]!==p?(g=t.jsxs(J,{type:"button",variant:"outline",onClick:a,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[r,p]}),e[7]=a,e[8]=r,e[9]=p,e[10]=g):g=e[10],g}function gs({virtualMcp:o}){const{org:e}=de(),s=je({connectionId:zt,orgId:e.id}),[i,l]=_.useState(null),[n,d]=_.useState(!1),[a,r]=_.useState(!1),c=o.id,p=o.title||`agent-${c.slice(0,8)}`,g=i?`bunx @decocms/typegen@latest --mcp ${c} --key ${i} --output client.ts`:`bunx @decocms/typegen@latest --mcp ${c} --key <api-key> --output client.ts`,x=async()=>{d(!0);try{const u=(await s.callTool({name:"API_KEY_CREATE",arguments:{name:`typegen-${p}`,permissions:{[c]:["*"]}}})).structuredContent?.key;if(!u)throw new Error("No key in response");l(u)}catch{ce.error("Failed to generate API key")}finally{d(!1)}},h=async()=>{await navigator.clipboard.writeText(g),r(!0),ce.success("Command copied to clipboard"),setTimeout(()=>r(!1),2e3)};return t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("h4",{className:"text-sm font-medium text-foreground",children:"Generate typed client"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Introspects this agent and writes a typed"," ",t.jsx("code",{className:"font-mono",children:"client.ts"})," you can import directly."]})]}),!i&&t.jsxs(J,{type:"button",variant:"outline",size:"sm",className:"shrink-0 gap-1.5",onClick:x,disabled:n,children:[n?t.jsx(Le,{size:14,className:"animate-spin"}):t.jsx(Ht,{size:14}),t.jsx("span",{children:n?"Generating…":"Generate API key"})]})]}),i&&t.jsx("p",{className:"rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-700",children:"Store this key securely — it won't be shown again."}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Generate client"}),t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("code",{className:"min-w-0 flex-1 break-all font-mono text-xs text-muted-foreground",children:g}),t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:h,children:a?t.jsx(be,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12})})]})}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Runtime variables"}),t.jsx(js,{apiKey:i})]})}function js(o){const e=k.c(19),{apiKey:s}=o,[i,l]=_.useState(!1),n=window.location.origin,d=s?`MESH_API_KEY=${s}`:"MESH_API_KEY=<api-key>",a=`MESH_BASE_URL=${n}`,r=`${d}
2
2
  ${a}`;let c;e[0]!==r?(c=async()=>{await navigator.clipboard.writeText(r),l(!0),setTimeout(()=>l(!1),2e3)},e[0]=r,e[1]=c):c=e[1];const p=c,g=!s;let x;e[2]!==g?(x=ae({"opacity-50":g}),e[2]=g,e[3]=x):x=e[3];let h;e[4]!==d||e[5]!==x?(h=t.jsx("span",{className:x,children:d}),e[4]=d,e[5]=x,e[6]=h):h=e[6];let m,u;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("br",{}),u=t.jsx("span",{children:a}),e[7]=m,e[8]=u):(m=e[7],u=e[8]);let b;e[9]!==h?(b=t.jsxs("code",{className:"min-w-0 flex-1 font-mono text-xs text-muted-foreground",children:[h,m,u]}),e[9]=h,e[10]=b):b=e[10];let f;e[11]!==i?(f=i?t.jsx(be,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12}),e[11]=i,e[12]=f):f=e[12];let j;e[13]!==p||e[14]!==f?(j=t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:p,children:f}),e[13]=p,e[14]=f,e[15]=j):j=e[15];let y;return e[16]!==b||e[17]!==j?(y=t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[b,j]})}),e[16]=b,e[17]=j,e[18]=y):y=e[18],y}function bs(o){const e=k.c(3),{virtualMcp:s}=o;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"h-20 animate-pulse rounded-md bg-muted"}),e[0]=i):i=e[0];let l;return e[1]!==s?(l=t.jsx(_.Suspense,{fallback:i,children:t.jsx(gs,{virtualMcp:s})}),e[1]=s,e[2]=l):l=e[2],l}function Ns(o){const e=k.c(44),{open:s,onOpenChange:i,virtualMcp:l}=o,[n,d]=_.useState("code_execution");let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=P=>{(P==="passthrough"||P==="smart_tool_selection"||P==="code_execution")&&d(P)},e[0]=a):a=e[0];const r=a;let c;e[1]!==n||e[2]!==l.id?(c=new URL(`/mcp/virtual-mcp/${l.id}`,window.location.origin),c.searchParams.set("mode",n),e[1]=n,e[2]=l.id,e[3]=c):c=e[3];let p;e[4]!==l.id||e[5]!==l.title?(p=l.title||`agent-${l.id?.slice(0,8)??"default"}`,e[4]=l.id,e[5]=l.title,e[6]=p):p=e[6];const g=p;let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(Ot,{children:t.jsx($t,{children:"Connect"})}),e[7]=x):x=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=h):h=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(nt,{className:"size-5 text-muted-foreground"})}),e[9]=m):m=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=u):u=e[10];let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(xe,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[11]=b):b=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsxs("label",{htmlFor:"mode-passthrough",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[m,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[u,t.jsx(ve,{children:t.jsxs(pe,{children:[b,t.jsx(he,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"All tools are exposed directly via tools/list. Best for small tool surfaces with deterministic behavior."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Best for small teams or when you need predictable behavior"})]}),t.jsx(Ie,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=f):f=e[12];let j;e[13]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(it,{className:"size-5 text-muted-foreground"})}),e[13]=j):j=e[13];let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=y):y=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(xe,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[15]=C):C=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs("label",{htmlFor:"mode-smart",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[j,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[y,t.jsx(ve,{children:t.jsxs(pe,{children:[C,t.jsx(he,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Uses meta-tools (GATEWAY_SEARCH_TOOLS, GATEWAY_DESCRIBE_TOOLS, GATEWAY_CALL_TOOL) to keep the tool list small and request details on demand."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Ideal for large teams with many tools - AI finds what it needs"})]}),t.jsx(Ie,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=v):v=e[16];let V;e[17]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Gt,{className:"size-5 text-muted-foreground"})}),e[17]=V):V=e[17];let R;e[18]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=R):R=e[18];let T;e[19]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(xe,{asChild:!0,children:t.jsx(Se,{className:"size-3.5 text-muted-foreground"})}),e[19]=T):T=e[19];let O;e[20]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs("label",{htmlFor:"mode-code",className:"relative flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[V,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[R,t.jsx(ve,{children:t.jsxs(pe,{children:[T,t.jsx(he,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Exposes meta-tools for discovery + sandboxed execution (GATEWAY_RUN_CODE). Reduces overhead on large surfaces by shifting work into a controlled runtime."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Maximum flexibility - AI can write code to orchestrate tools"})]}),t.jsx(Ie,{id:"mode-code",value:"code_execution"}),t.jsx($e,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[20]=O):O=e[20];let S;e[21]!==n?(S=t.jsxs("div",{className:"flex flex-col gap-3",children:[h,t.jsxs(us,{value:n,onValueChange:r,className:"flex flex-col gap-4.5",children:[f,v,O]})]}),e[21]=n,e[22]=S):S=e[22];let w;e[23]!==c.href?(w=t.jsx(xs,{url:c.href}),e[23]=c.href,e[24]=w):w=e[24];let z,$;e[25]!==g||e[26]!==c.href?(z=t.jsx(ps,{url:c.href,serverName:g}),$=t.jsx(hs,{url:c.href,serverName:g}),e[25]=g,e[26]=c.href,e[27]=z,e[28]=$):(z=e[27],$=e[28]);let I;e[29]!==w||e[30]!==z||e[31]!==$?(I=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[w,z,$]})}),e[29]=w,e[30]=z,e[31]=$,e[32]=I):I=e[32];let D;e[33]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("div",{className:"border-t border-border"}),e[33]=D):D=e[33];let A;e[34]!==l?(A=t.jsx(bs,{virtualMcp:l}),e[34]=l,e[35]=A):A=e[35];let E;e[36]!==S||e[37]!==I||e[38]!==A?(E=t.jsxs(He,{className:"max-h-[80vh] overflow-y-auto sm:max-w-2xl",children:[x,t.jsxs("div",{className:"flex flex-col gap-6",children:[S,I,D,A]})]}),e[36]=S,e[37]=I,e[38]=A,e[39]=E):E=e[39];let B;return e[40]!==i||e[41]!==s||e[42]!==E?(B=t.jsx(Ue,{open:s,onOpenChange:i,children:E}),e[40]=i,e[41]=s,e[42]=E,e[43]=B):B=e[43],B}function ys(o,e){switch(e.type){case"SET_SHARE_DIALOG_OPEN":return{...o,shareDialogOpen:e.payload};case"SET_CONNECTION_DIALOG_OPEN":return{...o,connectionDialogOpen:e.payload};case"SET_EDITING_CONNECTION_ID":return{...o,editingConnectionId:e.payload};case"SET_SKILLS_OPEN":return{...o,skillsOpen:e.payload};default:return o}}function Ae(o){const e=k.c(27),{connection_id:s,selected_tools:i,selected_resources:l,selected_prompts:n,onClick:d}=o,a=ht(s);if(!a)return null;let r;e[0]!==i?(r=Te(i),e[0]=i,e[1]=r):r=e[1];const c=r;let p;e[2]!==l?(p=Te(l),e[2]=l,e[3]=p):p=e[3];const g=p;let x;e[4]!==n?(x=Te(n),e[4]=n,e[5]=x):x=e[5];const h=x;let m;e[6]!==a.icon||e[7]!==a.title?(m=t.jsx(ge,{icon:a.icon,name:a.title,size:"xs"}),e[6]=a.icon,e[7]=a.title,e[8]=m):m=e[8];let u;e[9]!==a.title?(u=t.jsx("p",{className:"flex-1 text-sm font-normal text-foreground truncate",children:a.title}),e[9]=a.title,e[10]=u):u=e[10];let b;e[11]!==c?(b=c!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:c==="all"?"all":c}),t.jsx(Oe,{size:12})]}),e[11]=c,e[12]=b):b=e[12];let f;e[13]!==g?(f=g!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:g==="all"?"all":g}),t.jsx(Ne,{size:12})]}),e[13]=g,e[14]=f):f=e[14];let j;e[15]!==h?(j=h!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:h==="all"?"all":h}),t.jsx(De,{size:12})]}),e[15]=h,e[16]=j):j=e[16];let y;e[17]!==b||e[18]!==f||e[19]!==j?(y=t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[b,f,j]}),e[17]=b,e[18]=f,e[19]=j,e[20]=y):y=e[20];let C;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(Ge,{size:16,className:"text-muted-foreground shrink-0"}),e[21]=C):C=e[21];let v;return e[22]!==d||e[23]!==m||e[24]!==u||e[25]!==y?(v=t.jsxs("div",{onClick:d,className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border hover:bg-accent/50 transition-colors cursor-pointer",children:[m,u,y,C]}),e[22]=d,e[23]=m,e[24]=u,e[25]=y,e[26]=v):v=e[26],v}Ae.Fallback=function(){return t.jsxs("div",{className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border",children:[t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse shrink-0"}),t.jsx("div",{className:"flex-1 h-4 rounded bg-muted animate-pulse"}),t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(Oe,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(Ne,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(De,{size:12})]})]}),t.jsx(Ge,{size:16,className:"text-muted-foreground shrink-0"})]})};function vs({virtualMcp:o}){const{org:e}=de(),s=jt(),i=tt({resolver:st(ms),defaultValues:o}),l=i.watch("connections"),[n,d]=_.useReducer(ys,{shareDialogOpen:!1,connectionDialogOpen:!1,editingConnectionId:null,skillsOpen:!1}),[,a]=ut(),{setVirtualMcpId:r}=rt();_.useEffect(()=>{a(!0),r(o.id)},[o.id]);const c=()=>{r(o.id),a(!0)},p=i.formState.isDirty,g=async()=>{const f=i.getValues(),j=await s.update.mutateAsync({id:o.id,data:f});i.reset(j)},x=()=>{i.reset(o)},h=()=>{d({type:"SET_EDITING_CONNECTION_ID",payload:null}),d({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},m=f=>{d({type:"SET_EDITING_CONNECTION_ID",payload:f}),d({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},u=s.update.isPending,b=t.jsx(vt,{children:t.jsxs(Ct,{children:[t.jsx(Be,{children:t.jsx(_t,{asChild:!0,children:t.jsx(lt,{to:"/$org/$project/agents",params:{org:e.slug,project:Fe},children:"Agents"})})}),t.jsx(St,{}),t.jsx(Be,{children:t.jsx(Tt,{children:o.title})})]})});return t.jsxs(kt,{breadcrumb:b,children:[t.jsxs(wt,{children:[t.jsx(Et,{onSave:g,onUndo:x,isDirty:p,isSaving:u}),t.jsxs(pe,{delayDuration:0,children:[t.jsx(xe,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsxs(J,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:c,"aria-label":"Test Agent",children:[t.jsx(Nt,{size:14}),"Test Agent"]})})}),t.jsx(he,{side:"bottom",children:"Test this agent in chat"})]}),t.jsxs(J,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:()=>d({type:"SET_SHARE_DIALOG_OPEN",payload:!0}),children:[t.jsx(Ye,{size:14}),"Connect"]})]}),t.jsx("div",{className:"flex h-full w-full bg-background overflow-auto",children:t.jsxs("div",{className:"flex flex-col w-full",children:[t.jsxs("div",{className:"flex items-start justify-between gap-4 p-6 shrink-0",children:[t.jsxs("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[t.jsx(ge,{icon:o.icon,name:i.watch("title")||"Agent",size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(yt,{})}),t.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[t.jsx(Me,{...i.register("title"),className:"h-auto py-0.5 text-lg! font-medium leading-7 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Agent Name"}),t.jsx(Me,{...i.register("description"),className:"h-auto py-0.5 text-base text-muted-foreground leading-6 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})]})]}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(ft,{checked:i.watch("status")==="active",onCheckedChange:f=>i.setValue("status",f?"active":"inactive",{shouldDirty:!0})})})]}),t.jsxs(at,{open:n.skillsOpen,onOpenChange:f=>d({type:"SET_SKILLS_OPEN",payload:f}),className:"border-t border-border shrink-0 max-h-[400px] overflow-hidden flex flex-col",children:[l.length===0?t.jsxs("button",{type:"button",onClick:h,className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Skills"}),t.jsxs("div",{className:"h-7 px-2 inline-flex items-center justify-center gap-1 rounded-md text-sm text-muted-foreground",children:[t.jsx(Ve,{size:14}),"Add"]})]}):t.jsx(ct,{asChild:!0,children:t.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Skills"}),t.jsxs("div",{className:"flex items-center",children:[t.jsx("div",{className:"ease-(--ease-out-expo)",style:{width:n.skillsOpen?0:"auto",marginRight:n.skillsOpen?0:4,opacity:n.skillsOpen?0:1,pointerEvents:n.skillsOpen?"none":"auto",transitionProperty:"all",transitionDuration:n.skillsOpen?"0ms":"200ms"},children:t.jsx(Ut,{connectionIds:l.map(f=>f.connection_id),maxVisibleIcons:2})}),t.jsxs("div",{role:"button",tabIndex:0,className:"h-7 inline-flex items-center justify-center rounded-md text-sm text-muted-foreground overflow-hidden transition-all duration-200 ease-(--ease-out-expo) hover:bg-accent hover:text-accent-foreground",style:{width:n.skillsOpen?"auto":28,paddingLeft:n.skillsOpen?8:0,paddingRight:n.skillsOpen?8:0,gap:n.skillsOpen?4:0},onPointerDown:f=>{f.stopPropagation()},onClick:f=>{f.stopPropagation(),f.preventDefault(),h()},onKeyDown:f=>{(f.key==="Enter"||f.key===" ")&&(f.stopPropagation(),f.preventDefault(),h())},children:[t.jsx(Ve,{size:14,className:"shrink-0"}),t.jsx("span",{className:"overflow-hidden whitespace-nowrap transition-all duration-200 ease-(--ease-out-expo)",style:{width:n.skillsOpen?"auto":0,opacity:n.skillsOpen?1:0},children:"Add"})]}),t.jsx("div",{className:"h-7 inline-flex items-center justify-center overflow-hidden transition-all duration-200 ease-(--ease-out-expo)",style:{width:n.skillsOpen?28:0,opacity:n.skillsOpen?1:0},children:t.jsx(bt,{size:16,className:"shrink-0"})})]})]})}),t.jsx("div",{className:"grid overflow-hidden transition-[grid-template-rows] duration-200 ease-(--ease-out-expo)",style:{gridTemplateRows:n.skillsOpen?"1fr":"0fr"},children:t.jsx("div",{className:"min-h-0 overflow-hidden",children:t.jsx("div",{className:"overflow-y-auto max-h-[300px] mask-[linear-gradient(to_bottom,black_calc(100%-40px),transparent_100%)]",children:t.jsx("div",{className:"flex flex-col gap-2 px-6 pb-4 pt-2",children:l.map(f=>t.jsx(_.Suspense,{fallback:t.jsx(Ae.Fallback,{}),children:t.jsx(Ae,{connection_id:f.connection_id,selected_tools:f.selected_tools,selected_resources:f.selected_resources,selected_prompts:f.selected_prompts,onClick:()=>m(f.connection_id)})},f.connection_id))})})})})]}),t.jsxs("div",{className:"flex flex-col flex-1 p-6 border-t border-border overflow-auto",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Instructions"}),t.jsx(ot,{name:"metadata.instructions",control:i.control,render:({field:f})=>t.jsx(xt,{...f,value:f.value??"",placeholder:"Write instructions here...",className:"min-h-[200px] resize-none text-sm placeholder:text-muted-foreground/50 leading-relaxed border-0 rounded-none shadow-none px-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus:border-0 bg-transparent"})})]})]})}),t.jsx(ds,{open:n.connectionDialogOpen,onOpenChange:f=>d({type:"SET_CONNECTION_DIALOG_OPEN",payload:f}),selectedId:n.editingConnectionId,form:i,connections:l}),t.jsx(Ns,{open:n.shareDialogOpen,onOpenChange:f=>d({type:"SET_SHARE_DIALOG_OPEN",payload:f}),virtualMcp:o})]})}function Cs(){const o=k.c(6),e=Xe();let s;o[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/$project/agents/$agentId"},o[0]=s):s=o[0];const i=et(s),{org:l,agentId:n}=i,d=gt(n);if(!d){let r;return o[1]!==e||o[2]!==l?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(mt,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(J,{variant:"outline",onClick:()=>e({to:"/$org/$project/agents",params:{org:l,project:Fe}}),children:"Back to agents"})})}),o[1]=e,o[2]=l,o[3]=r):r=o[3],r}let a;return o[4]!==d?(a=t.jsx(vs,{virtualMcp:d}),o[4]=d,o[5]=a):a=o[5],a}function Vl(){const o=k.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(fe,{children:t.jsx(_.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Le,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Cs,{})})}),o[0]=e):e=o[0],e}export{Vl as default};
@@ -1 +1 @@
1
- import{c as ie,j as t,E as ne,r as X,u as ae,b as le,B as q,O as V}from"./index-DTgZok4N.js";import{C as ce,a as de}from"./collection-table-wrapper-c85b97QJ.js";import{C as me,E as Q}from"./collection-search-Bkt-jVWx.js";import{P as j}from"./index-BMtw0aq_.js";import{B as pe,a as ue,b as ge,c as he}from"./breadcrumb-CkhUU1qO.js";import{C as fe}from"./connection-card-CRg7yGx3.js";import{I as xe}from"./integration-icon-BqSOA-1d.js";import{u as je}from"./use-list-state-Dxk-n9cc.js";import{u as Ce}from"./use-create-virtual-mcp-EqzJGE7y.js";import{i as be}from"./constants-2Gp-yGJ1.js";import{b as ye,a as we}from"./use-virtual-mcp-CS7dIIbK.js";import{c as Ne,b as De,d as Se,A as _e,e as ke,h as ve,a as Ae,f as Ie}from"./alert-dialog-DRnSCcWl.js";import{D as Y,a as Z,b as ee,c as R}from"./dropdown-menu-B0Dgts11.js";import{i as te}from"./DotsVertical-DxigKHHt.js";import{s as se}from"./Eye-D5VDCdLP.js";import{i as Pe}from"./Loading01-SjZGs3Wk.js";import{s as oe}from"./Trash01-CDDpTvNv.js";import{t as C}from"./Users03-BXHamAas.js";import{U as $e}from"./user-BncBYJfn.js";import{A as re}from"./agent-connections-preview-131FyINm.js";import{f as ze}from"./format-time-CMKyl-GC.js";import"./ArrowDown-Ci69NI9T.js";import"./ArrowUp-YaPl1lq-.js";import"./Check-AlxQ-j2G.js";import"./Grid01-C3osH3dx.js";import"./List-iHNJ390y.js";import"./tooltip-B2vpv_WH.js";import"./index-BG6VshDR.js";import"./table-CZRzSdcB.js";import"./SearchMd-CSKcblxx.js";import"./input-CjsuYubG.js";import"./localstorage-keys-Cenhbz-P.js";import"./useQuery-C-DbMOQt.js";import"./useMutation-B99hCaMl.js";import"./ChevronRight-sqD7LMFa.js";import"./card-BiGYvdPr.js";import"./Container-Dt3fts2O.js";import"./use-view-mode-D38VMwz6.js";import"./use-mobile-II1SQS1g.js";import"./use-connection-Du5eRm0t.js";import"./avatar-BsFgSPZd.js";import"./differenceInSeconds-NQ4PDo0z.js";function Me(e,r){switch(r.type){case"delete":return{mode:"deleting",virtualMcp:r.virtualMcp};case"close":return{mode:"idle"}}}function Be(){const e=ie.c(65),{org:r}=ae(),n=le();let b;e[0]!==r.slug?(b={namespace:r.slug,resource:"agents"},e[0]=r.slug,e[1]=b):b=e[1];const s=je(b),x=ye(s);let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y={navigateOnCreate:!0},e[2]=y):y=e[2];const{createVirtualMCP:T,isCreating:w}=Ce(y),U=we();let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N={mode:"idle"},e[3]=N):N=e[3];const[i,D]=X.useReducer(Me,N);let S;e[4]!==U||e[5]!==i.mode||e[6]!==i.virtualMcp?(S=async()=>{if(i.mode!=="deleting")return;const o=i.virtualMcp.id;if(D({type:"close"}),!(!o||be(o)))try{await U.delete.mutateAsync(o)}catch{}},e[4]=U,e[5]=i.mode,e[6]=i.virtualMcp,e[7]=S):S=e[7];const L=S;let _,k,v,A,I;e[8]===Symbol.for("react.memo_cache_sentinel")?(_={id:"title",header:"Name",render:Fe,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},k={id:"description",header:"Description",render:He,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},v={id:"connections",header:"Connections",render:Ue,cellClassName:"w-28 shrink-0"},A={id:"updated_by",header:"Updated by",render:Te,cellClassName:"w-32 shrink-0",sortable:!0},I={id:"updated_at",header:"Updated",render:Re,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},e[8]=_,e[9]=k,e[10]=v,e[11]=A,e[12]=I):(_=e[8],k=e[9],v=e[10],A=e[11],I=e[12]);let P;e[13]!==n||e[14]!==r.slug?(P=[_,k,v,A,I,{id:"actions",header:"",render:o=>t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ve,children:t.jsx(te,{size:20})})}),t.jsxs(ee,{align:"end",onClick:Ke,children:[t.jsxs(R,{onClick:a=>{a.stopPropagation(),n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}})},children:[t.jsx(se,{size:16}),"Open"]}),t.jsxs(R,{variant:"destructive",onClick:a=>{a.stopPropagation(),D({type:"delete",virtualMcp:o})},children:[t.jsx(oe,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"}],e[13]=n,e[14]=r.slug,e[15]=P):P=e[15];const H=P,F=w?"Creating...":"Create Agent";let $;e[16]!==T||e[17]!==w||e[18]!==F?($=t.jsx(q,{onClick:T,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:w,children:F}),e[16]=T,e[17]=w,e[18]=F,e[19]=$):$=e[19];const G=$,J=i.mode==="deleting";let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=o=>!o&&D({type:"close"}),e[20]=z):z=e[20];let M;e[21]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(Ne,{children:"Delete Agent?"}),e[21]=M):M=e[21];const W=i.mode==="deleting"&&i.virtualMcp.title;let l;e[22]!==W?(l=t.jsxs(De,{children:[M,t.jsxs(Se,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:W}),"."]})]}),e[22]=W,e[23]=l):l=e[23];let B;e[24]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(_e,{children:"Cancel"}),e[24]=B):B=e[24];let c;e[25]!==L?(c=t.jsxs(ke,{children:[B,t.jsx(ve,{onClick:L,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[25]=L,e[26]=c):c=e[26];let d;e[27]!==l||e[28]!==c?(d=t.jsxs(Ae,{children:[l,c]}),e[27]=l,e[28]=c,e[29]=d):d=e[29];let m;e[30]!==J||e[31]!==d?(m=t.jsx(Ie,{open:J,onOpenChange:z,children:d}),e[30]=J,e[31]=d,e[32]=m):m=e[32];let O;e[33]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(j.Header.Left,{children:t.jsx(pe,{children:t.jsx(ue,{children:t.jsx(ge,{children:t.jsx(he,{children:"Agents"})})})})}),e[33]=O):O=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"updated_by",label:"Updated by"},{id:"updated_at",label:"Updated"}],e[34]=E):E=e[34];let p;e[35]!==s.handleSort||e[36]!==s.setViewMode||e[37]!==s.sortDirection||e[38]!==s.sortKey||e[39]!==s.viewMode?(p=t.jsx(ce,{viewMode:s.viewMode,onViewModeChange:s.setViewMode,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,sortOptions:E}),e[35]=s.handleSort,e[36]=s.setViewMode,e[37]=s.sortDirection,e[38]=s.sortKey,e[39]=s.viewMode,e[40]=p):p=e[40];let u;e[41]!==G||e[42]!==p?(u=t.jsxs(j.Header,{children:[O,t.jsxs(j.Header.Right,{children:[p,G]})]}),e[41]=G,e[42]=p,e[43]=u):u=e[43];let g;e[44]!==s?(g=o=>{o.key==="Escape"&&(s.setSearch(""),o.target.blur())},e[44]=s,e[45]=g):g=e[45];let h;e[46]!==s.search||e[47]!==s.setSearch||e[48]!==g?(h=t.jsx(me,{value:s.search,onChange:s.setSearch,placeholder:"Search for an agent...",onKeyDown:g}),e[46]=s.search,e[47]=s.setSearch,e[48]=g,e[49]=h):h=e[49];let f;e[50]!==H||e[51]!==s.handleSort||e[52]!==s.search||e[53]!==s.sortDirection||e[54]!==s.sortKey||e[55]!==s.viewMode||e[56]!==n||e[57]!==r.slug||e[58]!==x?(f=t.jsx(j.Content,{children:s.viewMode==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:x.length===0?t.jsx(Q,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:s.search?"No agents found":"No agents yet",description:s.search?`No agents match "${s.search}"`:"Create an agent to aggregate tools from multiple Connections."}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:x.map(o=>t.jsx(fe,{connection:{id:o.id??"",title:o.title,description:o.description,icon:o.icon,status:o.status},fallbackIcon:t.jsx(C,{}),onClick:()=>n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}}),footer:t.jsx("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:t.jsxs("span",{children:[o.connections.length," connection",o.connections.length!==1?"s":""]})}),headerActions:t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ee,children:t.jsx(te,{size:20})})}),t.jsxs(ee,{align:"end",onClick:Oe,children:[t.jsxs(R,{onClick:a=>{a.stopPropagation(),n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}})},children:[t.jsx(se,{size:16}),"Open"]}),t.jsxs(R,{variant:"destructive",onClick:a=>{a.stopPropagation(),D({type:"delete",virtualMcp:o})},children:[t.jsx(oe,{size:16}),"Delete"]})]})]})},o.id??"default"))})}):t.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:t.jsx(de,{columns:H,data:x,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}}),emptyState:s.search?t.jsx(Q,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${s.search}"`}):t.jsx(Q,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:"No agents yet",description:"Create an agent to aggregate tools from multiple Connections."})})})}),e[50]=H,e[51]=s.handleSort,e[52]=s.search,e[53]=s.sortDirection,e[54]=s.sortKey,e[55]=s.viewMode,e[56]=n,e[57]=r.slug,e[58]=x,e[59]=f):f=e[59];let K;return e[60]!==m||e[61]!==u||e[62]!==h||e[63]!==f?(K=t.jsxs(j,{children:[m,u,h,f]}),e[60]=m,e[61]=u,e[62]=h,e[63]=f,e[64]=K):K=e[64],K}function Oe(e){return e.stopPropagation()}function Ee(e){return e.stopPropagation()}function Ke(e){return e.stopPropagation()}function Ve(e){return e.stopPropagation()}function Re(e){return t.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?ze(new Date(e.updated_at)):"—"})}function Te(e){return t.jsx($e,{id:e.updated_by??e.created_by,size:"3xs"})}function Ue(e){return t.jsx(X.Suspense,{fallback:t.jsx(re.Fallback,{}),children:t.jsx(re,{connectionIds:e.connections.map(Le),maxVisibleIcons:2})})}function Le(e){return e.connection_id}function He(e){return t.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function Fe(e){return t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx(xe,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(C,{size:16})}),t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})]})}function Mt(){const e=ie.c(1);let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(ne,{children:t.jsx(X.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Pe,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Be,{})})}),e[0]=r):r=e[0],r}export{Mt as default};
1
+ import{c as ie,j as t,E as ne,r as X,u as ae,b as le,B as q,O as V}from"./index-BkxNgQ-z.js";import{C as ce,a as de}from"./collection-table-wrapper-B7II4YYC.js";import{C as me,E as Q}from"./collection-search-BgstpGbD.js";import{P as j}from"./index-B4YFEuZr.js";import{B as pe,a as ue,b as ge,c as he}from"./breadcrumb-DxXcAXh7.js";import{C as fe}from"./connection-card-DE2PfyYV.js";import{I as xe}from"./integration-icon-DqBJsR0X.js";import{u as je}from"./use-list-state-CCFlT7yz.js";import{u as Ce}from"./use-create-virtual-mcp-DnOGpm5h.js";import{i as be}from"./constants--aQ9HnxF.js";import{b as ye,a as we}from"./use-virtual-mcp-Wj5StsuR.js";import{c as Ne,b as De,d as Se,A as _e,e as ke,h as ve,a as Ae,f as Ie}from"./alert-dialog-B0yEBEkb.js";import{D as Y,a as Z,b as ee,c as R}from"./dropdown-menu-DvfBJ25L.js";import{i as te}from"./DotsVertical-B78gtBdB.js";import{s as se}from"./Eye-vR70tVFn.js";import{i as Pe}from"./Loading01-BLoQsWVt.js";import{s as oe}from"./Trash01-BvIumE4M.js";import{t as C}from"./Users03-CUxh9_Jy.js";import{U as $e}from"./user-BcEL6pjj.js";import{A as re}from"./agent-connections-preview-BTescy5G.js";import{f as ze}from"./format-time-CMKyl-GC.js";import"./ArrowDown-BfANN175.js";import"./ArrowUp-BNm6R5tp.js";import"./Check-BuBqfL8V.js";import"./Grid01-DjcW2Js4.js";import"./List-Be3XBHwN.js";import"./tooltip-DvMRS01W.js";import"./index-dKQNml8k.js";import"./table-BJ3W5Geb.js";import"./SearchMd-BvHN4xgB.js";import"./input-BxWPl4Ur.js";import"./localstorage-keys-2beZrYfY.js";import"./useQuery-Cj-miqA2.js";import"./useMutation-DtOoZO7h.js";import"./ChevronRight-u7jqeZNG.js";import"./card-BRjix5ol.js";import"./Container-CFxptFeR.js";import"./use-view-mode-3_G2qIMG.js";import"./use-mobile-BArkW6j1.js";import"./use-connection-DjiXkPUz.js";import"./avatar-BeiX4aSz.js";import"./differenceInSeconds-NQ4PDo0z.js";function Me(e,r){switch(r.type){case"delete":return{mode:"deleting",virtualMcp:r.virtualMcp};case"close":return{mode:"idle"}}}function Be(){const e=ie.c(65),{org:r}=ae(),n=le();let b;e[0]!==r.slug?(b={namespace:r.slug,resource:"agents"},e[0]=r.slug,e[1]=b):b=e[1];const s=je(b),x=ye(s);let y;e[2]===Symbol.for("react.memo_cache_sentinel")?(y={navigateOnCreate:!0},e[2]=y):y=e[2];const{createVirtualMCP:T,isCreating:w}=Ce(y),U=we();let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N={mode:"idle"},e[3]=N):N=e[3];const[i,D]=X.useReducer(Me,N);let S;e[4]!==U||e[5]!==i.mode||e[6]!==i.virtualMcp?(S=async()=>{if(i.mode!=="deleting")return;const o=i.virtualMcp.id;if(D({type:"close"}),!(!o||be(o)))try{await U.delete.mutateAsync(o)}catch{}},e[4]=U,e[5]=i.mode,e[6]=i.virtualMcp,e[7]=S):S=e[7];const L=S;let _,k,v,A,I;e[8]===Symbol.for("react.memo_cache_sentinel")?(_={id:"title",header:"Name",render:Fe,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},k={id:"description",header:"Description",render:He,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},v={id:"connections",header:"Connections",render:Ue,cellClassName:"w-28 shrink-0"},A={id:"updated_by",header:"Updated by",render:Te,cellClassName:"w-32 shrink-0",sortable:!0},I={id:"updated_at",header:"Updated",render:Re,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},e[8]=_,e[9]=k,e[10]=v,e[11]=A,e[12]=I):(_=e[8],k=e[9],v=e[10],A=e[11],I=e[12]);let P;e[13]!==n||e[14]!==r.slug?(P=[_,k,v,A,I,{id:"actions",header:"",render:o=>t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ve,children:t.jsx(te,{size:20})})}),t.jsxs(ee,{align:"end",onClick:Ke,children:[t.jsxs(R,{onClick:a=>{a.stopPropagation(),n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}})},children:[t.jsx(se,{size:16}),"Open"]}),t.jsxs(R,{variant:"destructive",onClick:a=>{a.stopPropagation(),D({type:"delete",virtualMcp:o})},children:[t.jsx(oe,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"}],e[13]=n,e[14]=r.slug,e[15]=P):P=e[15];const H=P,F=w?"Creating...":"Create Agent";let $;e[16]!==T||e[17]!==w||e[18]!==F?($=t.jsx(q,{onClick:T,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:w,children:F}),e[16]=T,e[17]=w,e[18]=F,e[19]=$):$=e[19];const G=$,J=i.mode==="deleting";let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=o=>!o&&D({type:"close"}),e[20]=z):z=e[20];let M;e[21]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(Ne,{children:"Delete Agent?"}),e[21]=M):M=e[21];const W=i.mode==="deleting"&&i.virtualMcp.title;let l;e[22]!==W?(l=t.jsxs(De,{children:[M,t.jsxs(Se,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:W}),"."]})]}),e[22]=W,e[23]=l):l=e[23];let B;e[24]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(_e,{children:"Cancel"}),e[24]=B):B=e[24];let c;e[25]!==L?(c=t.jsxs(ke,{children:[B,t.jsx(ve,{onClick:L,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[25]=L,e[26]=c):c=e[26];let d;e[27]!==l||e[28]!==c?(d=t.jsxs(Ae,{children:[l,c]}),e[27]=l,e[28]=c,e[29]=d):d=e[29];let m;e[30]!==J||e[31]!==d?(m=t.jsx(Ie,{open:J,onOpenChange:z,children:d}),e[30]=J,e[31]=d,e[32]=m):m=e[32];let O;e[33]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(j.Header.Left,{children:t.jsx(pe,{children:t.jsx(ue,{children:t.jsx(ge,{children:t.jsx(he,{children:"Agents"})})})})}),e[33]=O):O=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"updated_by",label:"Updated by"},{id:"updated_at",label:"Updated"}],e[34]=E):E=e[34];let p;e[35]!==s.handleSort||e[36]!==s.setViewMode||e[37]!==s.sortDirection||e[38]!==s.sortKey||e[39]!==s.viewMode?(p=t.jsx(ce,{viewMode:s.viewMode,onViewModeChange:s.setViewMode,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,sortOptions:E}),e[35]=s.handleSort,e[36]=s.setViewMode,e[37]=s.sortDirection,e[38]=s.sortKey,e[39]=s.viewMode,e[40]=p):p=e[40];let u;e[41]!==G||e[42]!==p?(u=t.jsxs(j.Header,{children:[O,t.jsxs(j.Header.Right,{children:[p,G]})]}),e[41]=G,e[42]=p,e[43]=u):u=e[43];let g;e[44]!==s?(g=o=>{o.key==="Escape"&&(s.setSearch(""),o.target.blur())},e[44]=s,e[45]=g):g=e[45];let h;e[46]!==s.search||e[47]!==s.setSearch||e[48]!==g?(h=t.jsx(me,{value:s.search,onChange:s.setSearch,placeholder:"Search for an agent...",onKeyDown:g}),e[46]=s.search,e[47]=s.setSearch,e[48]=g,e[49]=h):h=e[49];let f;e[50]!==H||e[51]!==s.handleSort||e[52]!==s.search||e[53]!==s.sortDirection||e[54]!==s.sortKey||e[55]!==s.viewMode||e[56]!==n||e[57]!==r.slug||e[58]!==x?(f=t.jsx(j.Content,{children:s.viewMode==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:x.length===0?t.jsx(Q,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:s.search?"No agents found":"No agents yet",description:s.search?`No agents match "${s.search}"`:"Create an agent to aggregate tools from multiple Connections."}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:x.map(o=>t.jsx(fe,{connection:{id:o.id??"",title:o.title,description:o.description,icon:o.icon,status:o.status},fallbackIcon:t.jsx(C,{}),onClick:()=>n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}}),footer:t.jsx("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:t.jsxs("span",{children:[o.connections.length," connection",o.connections.length!==1?"s":""]})}),headerActions:t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ee,children:t.jsx(te,{size:20})})}),t.jsxs(ee,{align:"end",onClick:Oe,children:[t.jsxs(R,{onClick:a=>{a.stopPropagation(),n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}})},children:[t.jsx(se,{size:16}),"Open"]}),t.jsxs(R,{variant:"destructive",onClick:a=>{a.stopPropagation(),D({type:"delete",virtualMcp:o})},children:[t.jsx(oe,{size:16}),"Delete"]})]})]})},o.id??"default"))})}):t.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:t.jsx(de,{columns:H,data:x,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>n({to:"/$org/$project/agents/$agentId",params:{org:r.slug,project:V,agentId:o.id}}),emptyState:s.search?t.jsx(Q,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${s.search}"`}):t.jsx(Q,{image:t.jsx(C,{size:36,className:"text-muted-foreground"}),title:"No agents yet",description:"Create an agent to aggregate tools from multiple Connections."})})})}),e[50]=H,e[51]=s.handleSort,e[52]=s.search,e[53]=s.sortDirection,e[54]=s.sortKey,e[55]=s.viewMode,e[56]=n,e[57]=r.slug,e[58]=x,e[59]=f):f=e[59];let K;return e[60]!==m||e[61]!==u||e[62]!==h||e[63]!==f?(K=t.jsxs(j,{children:[m,u,h,f]}),e[60]=m,e[61]=u,e[62]=h,e[63]=f,e[64]=K):K=e[64],K}function Oe(e){return e.stopPropagation()}function Ee(e){return e.stopPropagation()}function Ke(e){return e.stopPropagation()}function Ve(e){return e.stopPropagation()}function Re(e){return t.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?ze(new Date(e.updated_at)):"—"})}function Te(e){return t.jsx($e,{id:e.updated_by??e.created_by,size:"3xs"})}function Ue(e){return t.jsx(X.Suspense,{fallback:t.jsx(re.Fallback,{}),children:t.jsx(re,{connectionIds:e.connections.map(Le),maxVisibleIcons:2})})}function Le(e){return e.connection_id}function He(e){return t.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function Fe(e){return t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[t.jsx(xe,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(C,{size:16})}),t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})]})}function Mt(){const e=ie.c(1);let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(ne,{children:t.jsx(X.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Pe,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Be,{})})}),e[0]=r):r=e[0],r}export{Mt as default};
@@ -1,4 +1,4 @@
1
- import{j as r,a8 as w,r as n,I as m,b5 as O,a9 as M,M as I,aa as z,ab as F,ae as A,b6 as v,ac as L,a_ as G,U as k,af as H,ad as V,c as i,v as p,b7 as D}from"./index-DTgZok4N.js";var x="AlertDialog",[W]=k(x,[v]),d=v(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(w,{...a,...t,modal:!0})};N.displayName=x;var Y="AlertDialogTrigger",y=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(H,{...o,...a,ref:e})});y.displayName=Y;var q="AlertDialogPortal",_=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(L,{...a,...t})};_.displayName=q;var B="AlertDialogOverlay",j=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(V,{...o,...a,ref:e})});j.displayName=B;var g="AlertDialogContent",[U,J]=W(g),K=G("AlertDialogContent"),b=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=n.useRef(null),T=m(e,c),u=n.useRef(null);return r.jsx(O,{contentName:g,titleName:h,docsSlug:"alert-dialog",children:r.jsx(U,{scope:t,cancelRef:u,children:r.jsxs(M,{role:"alertdialog",...s,...o,ref:T,onOpenAutoFocus:I(o.onOpenAutoFocus,f=>{f.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[r.jsx(K,{children:a}),r.jsx(X,{contentRef:c})]})})})});b.displayName=g;var h="AlertDialogTitle",$=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});$.displayName=h;var E="AlertDialogDescription",R=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(F,{...o,...a,ref:e})});R.displayName=E;var Q="AlertDialogAction",C=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});C.displayName=Q;var S="AlertDialogCancel",P=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=J(S,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});P.displayName=S;var X=({contentRef:l})=>{const e=`\`${g}\` requires a description for the component to be accessible for screen reader users.
1
+ import{j as r,a8 as w,r as n,I as m,b5 as O,a9 as M,M as I,aa as z,ab as F,ae as A,b6 as v,ac as L,a_ as G,U as k,af as H,ad as V,c as i,v as p,b7 as D}from"./index-BkxNgQ-z.js";var x="AlertDialog",[W]=k(x,[v]),d=v(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(w,{...a,...t,modal:!0})};N.displayName=x;var Y="AlertDialogTrigger",y=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(H,{...o,...a,ref:e})});y.displayName=Y;var q="AlertDialogPortal",_=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(L,{...a,...t})};_.displayName=q;var B="AlertDialogOverlay",j=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(V,{...o,...a,ref:e})});j.displayName=B;var g="AlertDialogContent",[U,J]=W(g),K=G("AlertDialogContent"),b=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=n.useRef(null),T=m(e,c),u=n.useRef(null);return r.jsx(O,{contentName:g,titleName:h,docsSlug:"alert-dialog",children:r.jsx(U,{scope:t,cancelRef:u,children:r.jsxs(M,{role:"alertdialog",...s,...o,ref:T,onOpenAutoFocus:I(o.onOpenAutoFocus,f=>{f.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[r.jsx(K,{children:a}),r.jsx(X,{contentRef:c})]})})})});b.displayName=g;var h="AlertDialogTitle",$=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});$.displayName=h;var E="AlertDialogDescription",R=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(F,{...o,...a,ref:e})});R.displayName=E;var Q="AlertDialogAction",C=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});C.displayName=Q;var S="AlertDialogCancel",P=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=J(S,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});P.displayName=S;var X=({contentRef:l})=>{const e=`\`${g}\` requires a description for the component to be accessible for screen reader users.
2
2
 
3
3
  You can add a description to the \`${g}\` by passing a \`${E}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
4
 
@@ -1 +1 @@
1
- import{c as l,e as m,j as t,A as f,S as h,f as x,g as r,h as p,N as u}from"./index-DTgZok4N.js";function d(){const e=l.c(1),a=window.location.pathname+window.location.search;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(u,{to:"/login",search:{next:a},replace:!0}),e[0]=n):n=e[0],n}function g(){const e=l.c(6);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/auth/$pathname"},e[0]=a):a=e[0];const{pathname:n}=m(a);if(n==="accept-invitation"){let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(f,{children:t.jsx(h,{})}),e[1]=c):c=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(x,{children:t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:"accept-invitation"})})}),e[2]=i):i=e[2];let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs(t.Fragment,{children:[c,i,t.jsx(p,{children:t.jsx(d,{})})]}),e[3]=o):o=e[3],o}let s;return e[4]!==n?(s=t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:n})}),e[4]=n,e[5]=s):s=e[5],s}export{g as default};
1
+ import{c as l,e as m,j as t,A as f,S as h,f as x,g as r,h as p,N as u}from"./index-BkxNgQ-z.js";function d(){const e=l.c(1),a=window.location.pathname+window.location.search;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(u,{to:"/login",search:{next:a},replace:!0}),e[0]=n):n=e[0],n}function g(){const e=l.c(6);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/auth/$pathname"},e[0]=a):a=e[0];const{pathname:n}=m(a);if(n==="accept-invitation"){let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(f,{children:t.jsx(h,{})}),e[1]=c):c=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(x,{children:t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:"accept-invitation"})})}),e[2]=i):i=e[2];let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs(t.Fragment,{children:[c,i,t.jsx(p,{children:t.jsx(d,{})})]}),e[3]=o):o=e[3],o}let s;return e[4]!==n?(s=t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:n})}),e[4]=n,e[5]=s):s=e[5],s}export{g as default};
@@ -1 +1 @@
1
- import{r as R,c as j,j as i,v as m,z as I,aK as M,aL as U,aM as $}from"./index-DTgZok4N.js";const V=({size:a=24,color:e="currentColor",...s})=>R.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},R.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));V.displayName="User01";function O(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx($,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function T(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(M,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function W(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(U,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}const S=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],_="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function B(a){let e=0;for(let t=0;t<a.length;t++)e=a.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%S.length;return S[s]}const L=I("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),D=I("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),K=a=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[a]||e.base};function Z(a){const e=j.c(35);let s,t,o,r,n,d,g,l;e[0]!==a?({url:l,fallback:t,shape:r,size:n,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,[f,x]=R.useState(!1);let F;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],F=c;break e}F=t}const C=F;let z;e:{if(k){z=_;break e}if(typeof t=="string"){let c;e[11]!==t?(c=B(t),e[11]=t,e[12]=c):c=e[12],z=c;break e}z=S[0]}const y=z;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const E=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=m(L({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==y||e[23]!==C||e[24]!==E||e[25]!==f||e[26]!==p||e[27]!==u||e[28]!==h||e[29]!==l?(v=p&&E?i.jsx("div",{className:m("flex items-center justify-center w-full h-full",y),children:i.jsx(V,{size:K(h)})}):i.jsxs(i.Fragment,{children:[l&&!f&&i.jsx(T,{src:l,loading:"lazy",alt:"Avatar",className:m(D({objectFit:u})),onError:()=>x(!0)}),(!l||f)&&i.jsx(W,{className:m(y,"rounded-none"),children:C})]}),e[22]=y,e[23]=C,e[24]=E,e[25]=f,e[26]=p,e[27]=u,e[28]=h,e[29]=l,e[30]=v):v=e[30];let A;return e[31]!==o||e[32]!==v||e[33]!==w?(A=i.jsx(O,{className:w,...o,children:v}),e[31]=o,e[32]=v,e[33]=w,e[34]=A):A=e[34],A}function G(a){const e=j.c(18);let s,t,o,r,n,d,g,l;e[0]!==a?({shape:r,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,f=h??"base";let x;return e[9]!==s||e[10]!==t||e[11]!==k||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==f||e[16]!==l?(x=i.jsx(Z,{shape:b,url:l,fallback:t,size:f,objectFit:u,className:s,muted:k,...o}),e[9]=s,e[10]=t,e[11]=k,e[12]=u,e[13]=o,e[14]=b,e[15]=f,e[16]=l,e[17]=x):x=e[17],x}G.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:m(L({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{G as A};
1
+ import{r as R,c as j,j as i,v as m,z as I,aK as M,aL as U,aM as $}from"./index-BkxNgQ-z.js";const V=({size:a=24,color:e="currentColor",...s})=>R.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},R.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));V.displayName="User01";function O(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx($,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function T(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(M,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function W(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(U,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}const S=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],_="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function B(a){let e=0;for(let t=0;t<a.length;t++)e=a.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%S.length;return S[s]}const L=I("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),D=I("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),K=a=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[a]||e.base};function Z(a){const e=j.c(35);let s,t,o,r,n,d,g,l;e[0]!==a?({url:l,fallback:t,shape:r,size:n,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,[f,x]=R.useState(!1);let F;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],F=c;break e}F=t}const C=F;let z;e:{if(k){z=_;break e}if(typeof t=="string"){let c;e[11]!==t?(c=B(t),e[11]=t,e[12]=c):c=e[12],z=c;break e}z=S[0]}const y=z;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const E=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=m(L({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==y||e[23]!==C||e[24]!==E||e[25]!==f||e[26]!==p||e[27]!==u||e[28]!==h||e[29]!==l?(v=p&&E?i.jsx("div",{className:m("flex items-center justify-center w-full h-full",y),children:i.jsx(V,{size:K(h)})}):i.jsxs(i.Fragment,{children:[l&&!f&&i.jsx(T,{src:l,loading:"lazy",alt:"Avatar",className:m(D({objectFit:u})),onError:()=>x(!0)}),(!l||f)&&i.jsx(W,{className:m(y,"rounded-none"),children:C})]}),e[22]=y,e[23]=C,e[24]=E,e[25]=f,e[26]=p,e[27]=u,e[28]=h,e[29]=l,e[30]=v):v=e[30];let A;return e[31]!==o||e[32]!==v||e[33]!==w?(A=i.jsx(O,{className:w,...o,children:v}),e[31]=o,e[32]=v,e[33]=w,e[34]=A):A=e[34],A}function G(a){const e=j.c(18);let s,t,o,r,n,d,g,l;e[0]!==a?({shape:r,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,f=h??"base";let x;return e[9]!==s||e[10]!==t||e[11]!==k||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==f||e[16]!==l?(x=i.jsx(Z,{shape:b,url:l,fallback:t,size:f,objectFit:u,className:s,muted:k,...o}),e[9]=s,e[10]=t,e[11]=k,e[12]=u,e[13]=o,e[14]=b,e[15]=f,e[16]=l,e[17]=x):x=e[17],x}G.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:m(L({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{G as A};
@@ -1 +1 @@
1
- import{c as d,v as u,j as l,w as v,z as g}from"./index-DTgZok4N.js";const b=g("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function x(o){const e=d.c(12);let r,s,a,t;e[0]!==o?({className:r,variant:t,asChild:a,...s}=o,e[0]=o,e[1]=r,e[2]=s,e[3]=a,e[4]=t):(r=e[1],s=e[2],a=e[3],t=e[4]);const c=(a===void 0?!1:a)?v:"span";let i;e[5]!==r||e[6]!==t?(i=u(b({variant:t}),r),e[5]=r,e[6]=t,e[7]=i):i=e[7];let n;return e[8]!==c||e[9]!==s||e[10]!==i?(n=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[8]=c,e[9]=s,e[10]=i,e[11]=n):n=e[11],n}export{x as B};
1
+ import{c as d,v as u,j as l,w as v,z as g}from"./index-BkxNgQ-z.js";const b=g("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function x(o){const e=d.c(12);let r,s,a,t;e[0]!==o?({className:r,variant:t,asChild:a,...s}=o,e[0]=o,e[1]=r,e[2]=s,e[3]=a,e[4]=t):(r=e[1],s=e[2],a=e[3],t=e[4]);const c=(a===void 0?!1:a)?v:"span";let i;e[5]!==r||e[6]!==t?(i=u(b({variant:t}),r),e[5]=r,e[6]=t,e[7]=i):i=e[7];let n;return e[8]!==c||e[9]!==s||e[10]!==i?(n=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[8]=c,e[9]=s,e[10]=i,e[11]=n):n=e[11],n}export{x as B};
@@ -1 +1 @@
1
- import"./index-DTgZok4N.js";function a(o){return{isImplementedBy:c=>{for(const e of o){const r=typeof e.name=="string"?new RegExp(`^${e.name}$`):e.name,t=c.find(i=>r.test(i.name));if(!(!t&&e.opt)&&!t)return!1}return!0}}}function s(o,c){const e=o.tools;if(!e||e.length===0)return!1;const r=e.map(n=>({name:n.name,inputSchema:n.inputSchema})),t=c.map(n=>({name:n.name,inputSchema:n.inputSchema,opt:n.opt}));return a(t).isImplementedBy(r)}export{a,s as c};
1
+ import"./index-BkxNgQ-z.js";function a(o){return{isImplementedBy:c=>{for(const e of o){const r=typeof e.name=="string"?new RegExp(`^${e.name}$`):e.name,t=c.find(i=>r.test(i.name));if(!(!t&&e.opt)&&!t)return!1}return!0}}}function s(o,c){const e=o.tools;if(!e||e.length===0)return!1;const r=e.map(n=>({name:n.name,inputSchema:n.inputSchema})),t=c.map(n=>({name:n.name,inputSchema:n.inputSchema,opt:n.opt}));return a(t).isImplementedBy(r)}export{a,s as c};
@@ -1 +1 @@
1
- import{c,v as m,j as o,w as u}from"./index-DTgZok4N.js";import{i as d}from"./ChevronRight-sqD7LMFa.js";function b(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("min-w-0 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function x(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("ol",{"data-slot":"breadcrumb-list",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function N(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("inline-flex items-center gap-1.5 min-w-0",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("li",{"data-slot":"breadcrumb-item",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function g(r){const e=c.c(10);let a,t,s;e[0]!==r?({asChild:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);const l=a?u:"a";let i;e[4]!==t?(i=m("hover:text-foreground transition-colors truncate",t),e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==l||e[7]!==s||e[8]!==i?(n=o.jsx(l,{"data-slot":"breadcrumb-link",className:i,...s}),e[6]=l,e[7]=s,e[8]=i,e[9]=n):n=e[9],n}function j(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("text-foreground font-medium truncate",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function h(r){const e=c.c(12);let a,t,s;e[0]!==r?({children:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);let l;e[4]!==t?(l=m("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",t),e[4]=t,e[5]=l):l=e[5];let i;e[6]!==a?(i=a??o.jsx(d,{}),e[6]=a,e[7]=i):i=e[7];let n;return e[8]!==s||e[9]!==l||e[10]!==i?(n=o.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l,...s,children:i}),e[8]=s,e[9]=l,e[10]=i,e[11]=n):n=e[11],n}export{b as B,x as a,N as b,j as c,g as d,h as e};
1
+ import{c,v as m,j as o,w as u}from"./index-BkxNgQ-z.js";import{i as d}from"./ChevronRight-u7jqeZNG.js";function b(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("min-w-0 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function x(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("ol",{"data-slot":"breadcrumb-list",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function N(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("inline-flex items-center gap-1.5 min-w-0",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("li",{"data-slot":"breadcrumb-item",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function g(r){const e=c.c(10);let a,t,s;e[0]!==r?({asChild:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);const l=a?u:"a";let i;e[4]!==t?(i=m("hover:text-foreground transition-colors truncate",t),e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==l||e[7]!==s||e[8]!==i?(n=o.jsx(l,{"data-slot":"breadcrumb-link",className:i,...s}),e[6]=l,e[7]=s,e[8]=i,e[9]=n):n=e[9],n}function j(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("text-foreground font-medium truncate",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function h(r){const e=c.c(12);let a,t,s;e[0]!==r?({children:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);let l;e[4]!==t?(l=m("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",t),e[4]=t,e[5]=l):l=e[5];let i;e[6]!==a?(i=a??o.jsx(d,{}),e[6]=a,e[7]=i):i=e[7];let n;return e[8]!==s||e[9]!==l||e[10]!==i?(n=o.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l,...s,children:i}),e[8]=s,e[9]=l,e[10]=i,e[11]=n):n=e[11],n}export{b as B,x as a,N as b,j as c,g as d,h as e};
@@ -1 +1 @@
1
- import{c as o,v as d,j as c}from"./index-DTgZok4N.js";function n(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("bg-card text-card-foreground hover:bg-accent/50 flex flex-col gap-6 rounded-xl border border-border/75 shadow-xs",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function f(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function p(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("leading-none font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function u(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function m(r){const e=o.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s=c.jsx("div",{"data-slot":"card-content",...t}),e[2]=t,e[3]=s):s=e[3],s}export{n as C,m as a,p as b,u as c,f as d};
1
+ import{c as o,v as d,j as c}from"./index-BkxNgQ-z.js";function n(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("bg-card text-card-foreground hover:bg-accent/50 flex flex-col gap-6 rounded-xl border border-border/75 shadow-xs",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function f(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function p(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("leading-none font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function u(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function m(r){const e=o.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s=c.jsx("div",{"data-slot":"card-content",...t}),e[2]=t,e[3]=s):s=e[3],s}export{n as C,m as a,p as b,u as c,f as d};