decocms 2.175.0 → 2.175.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/dist/client/assets/{AlertCircle-5ZbLDi3s.js → AlertCircle-De9oqjty.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-D4ghzTQG.js → AlignLeft-BaG4OcCg.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-B5WC3D5H.js → ArrowDown-PFFBPH3j.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-D0Lalw4x.js → ArrowLeft-CPWCs_Od.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-tKKJvEkq.js → ArrowUp-C6Q-EpUw.js} +1 -1
  6. package/dist/client/assets/{Check-CuWDIJeM.js → Check-BfKCyKXX.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-wz1RfkCA.js → CheckCircle-DiRi76qb.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-UsIketHR.js → CheckDone01-ZekLHdFZ.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-cu3amtx9.js → CheckVerified02-DC3VT092.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-D0TXudCx.js → ChevronDown-BHMaRWRt.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-BZsszCLQ.js → ChevronLeft-0cpA2yNq.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-UJRwW9xN.js → ChevronRight-1g9z-Z5h.js} +1 -1
  13. package/dist/client/assets/{ChevronUp-DXMXl76b.js → ChevronUp-1s_S3eDF.js} +1 -1
  14. package/dist/client/assets/{Clock-DKQ7EGj-.js → Clock-rHd8cQAO.js} +1 -1
  15. package/dist/client/assets/{Code01-DZzuHJh9.js → Code01-CoTQP8pZ.js} +1 -1
  16. package/dist/client/assets/{Coins01-DWo6Ypxq.js → Coins01-D7lfLTbO.js} +1 -1
  17. package/dist/client/assets/{Container-YdffBHg3.js → Container-DwxLlgWA.js} +1 -1
  18. package/dist/client/assets/{Copy01-CPHBT83w.js → Copy01-CIUDy0Hr.js} +1 -1
  19. package/dist/client/assets/{Dataflow03-CUuQJ-m_.js → Dataflow03-T9TmjQN-.js} +1 -1
  20. package/dist/client/assets/{DotsHorizontal-DUoeCjzn.js → DotsHorizontal-CmCKbvuJ.js} +1 -1
  21. package/dist/client/assets/{DotsVertical-BaBvJOuP.js → DotsVertical-Y8XpM2B_.js} +1 -1
  22. package/dist/client/assets/{Download01-D5-Ilwwi.js → Download01-LinNp3zy.js} +1 -1
  23. package/dist/client/assets/{Edit01-Dpq6F4lk.js → Edit01-Dw-lPBk-.js} +1 -1
  24. package/dist/client/assets/{Edit05-h0OeCHXT.js → Edit05-Bx682Mm6.js} +1 -1
  25. package/dist/client/assets/{Eye-DDwMVcxZ.js → Eye-JuDcZhJz.js} +1 -1
  26. package/dist/client/assets/{EyeOff-D8njwIM7.js → EyeOff-9_-SJWcU.js} +1 -1
  27. package/dist/client/assets/{File02-Bc8tH3v5.js → File02-bFwU_wEK.js} +1 -1
  28. package/dist/client/assets/{File06-ZV5CfSHG.js → File06-CU5oU1OI.js} +1 -1
  29. package/dist/client/assets/{FilterLines-aqS8nu95.js → FilterLines-BaTxnUjH.js} +1 -1
  30. package/dist/client/assets/{Globe01-BdWDm7Ni.js → Globe01-DUjsFcPS.js} +1 -1
  31. package/dist/client/assets/{Globe02-Cn3qFriL.js → Globe02-k3_A41kp.js} +1 -1
  32. package/dist/client/assets/{Grid01-Gq7hBl7S.js → Grid01-DBOkAm2V.js} +1 -1
  33. package/dist/client/assets/{Hash02-CmJ0Y9N4.js → Hash02-gqJDwuju.js} +1 -1
  34. package/dist/client/assets/{Home02-Dz88FEOV.js → Home02-DfEb-Myv.js} +1 -1
  35. package/dist/client/assets/{Image01-DBWShOGl.js → Image01-I9pAeT0N.js} +1 -1
  36. package/dist/client/assets/{Inbox01-CJphqD3y.js → Inbox01-BgDmihAV.js} +1 -1
  37. package/dist/client/assets/{InfoCircle-uEl5PLW5.js → InfoCircle-LX1SVC24.js} +1 -1
  38. package/dist/client/assets/{Key01-IptFTL_3.js → Key01-DAjAUWfr.js} +1 -1
  39. package/dist/client/assets/{LayersTwo01-B5fVqAUB.js → LayersTwo01-C-XZtFtv.js} +1 -1
  40. package/dist/client/assets/{LayoutLeft-B8-msEGR.js → LayoutLeft-BvuIBX8d.js} +1 -1
  41. package/dist/client/assets/{Link01-BpjSsBky.js → Link01-q2vhCqdM.js} +1 -1
  42. package/dist/client/assets/{LinkExternal01-B21lACin.js → LinkExternal01-QGWpvftd.js} +1 -1
  43. package/dist/client/assets/{List-ySIwqood.js → List-CuV23QYs.js} +1 -1
  44. package/dist/client/assets/{Loading01-WTkiPysv.js → Loading01-BNn4YU_K.js} +1 -1
  45. package/dist/client/assets/{Lock01-DqO9uSP7.js → Lock01-DJQX15kR.js} +1 -1
  46. package/dist/client/assets/{Play-D72BHSXn.js → Play-C7yKo0dH.js} +1 -1
  47. package/dist/client/assets/{Plus-Dto-8y6a.js → Plus-CT_Gcwl2.js} +1 -1
  48. package/dist/client/assets/{RefreshCcw01-DckyCUMd.js → RefreshCcw01-uL9q48A4.js} +1 -1
  49. package/dist/client/assets/{Save01-C2uk3LpG.js → Save01-CuwI4Bxq.js} +1 -1
  50. package/dist/client/assets/{SearchMd-Kap2MdR9.js → SearchMd-BLeX5weN.js} +1 -1
  51. package/dist/client/assets/{Settings01-CYUXeHtK.js → Settings01-2AkYiqYr.js} +1 -1
  52. package/dist/client/assets/{Shield01-CJ-f24yL.js → Shield01-D6IOCC-Z.js} +1 -1
  53. package/dist/client/assets/{Terminal-BQ1GlFmm.js → Terminal-Dlvh4GS2.js} +1 -1
  54. package/dist/client/assets/Tool01-CjSIsyxE.js +1 -0
  55. package/dist/client/assets/{Trash01-DkXbOnbi.js → Trash01-YPQczxci.js} +1 -1
  56. package/dist/client/assets/{Upload01-BasmYIL8.js → Upload01-BlEN4mwB.js} +1 -1
  57. package/dist/client/assets/{Users03-BXwEsNFj.js → Users03-B7X28dbt.js} +1 -1
  58. package/dist/client/assets/{X-CNbskBah.js → X-B_f76BPZ.js} +1 -1
  59. package/dist/client/assets/XAxis-Du5m1KMx.js +1 -0
  60. package/dist/client/assets/{XCircle-DvUvQRq1.js → XCircle-DDLf4PgL.js} +1 -1
  61. package/dist/client/assets/{XClose-B0FgAxIQ.js → XClose-eeK1fS1n.js} +1 -1
  62. package/dist/client/assets/{Zap-BgjTj76q.js → Zap-DHey7Hu_.js} +1 -1
  63. package/dist/client/assets/{agent-connections-preview-Bh6ijP_X.js → agent-connections-preview-D6uKmygR.js} +1 -1
  64. package/dist/client/assets/agent-detail-BS4g93cA.js +2 -0
  65. package/dist/client/assets/{agents-DNXSTqTl.js → agents-BuWI7PBX.js} +1 -1
  66. package/dist/client/assets/{alert-dialog-DtAWdTyc.js → alert-dialog-BVglQjyM.js} +3 -3
  67. package/dist/client/assets/{auth-catchall-5qyXxzaS.js → auth-catchall-Bfllc4Ni.js} +1 -1
  68. package/dist/client/assets/automation-detail-DNo-sbc_.js +1 -0
  69. package/dist/client/assets/automations-CCXftgU_.js +1 -0
  70. package/dist/client/assets/{avatar-ChRCLY4k.js → avatar-OE2URZfM.js} +1 -1
  71. package/dist/client/assets/{badge-C4uZcq7J.js → badge-CAg946Xk.js} +1 -1
  72. package/dist/client/assets/{binder-hd3C3mvD.js → binder-DTBFGqjl.js} +1 -1
  73. package/dist/client/assets/{breadcrumb-pLMl4xjy.js → breadcrumb-aP02JuZO.js} +1 -1
  74. package/dist/client/assets/card-RQxLVCBk.js +1 -0
  75. package/dist/client/assets/chart-D9IwJUjP.js +15 -0
  76. package/dist/client/assets/{checkbox-D2IG7klY.js → checkbox-DLsMmmhu.js} +1 -1
  77. package/dist/client/assets/circle-alert-DCE_cWKa.js +1 -0
  78. package/dist/client/assets/{collapsible-ttq3VbhQ.js → collapsible-CGr-TiAc.js} +1 -1
  79. package/dist/client/assets/{collection-detail-DoRLjPv6.js → collection-detail-CZQpkHig.js} +5 -5
  80. package/dist/client/assets/collection-display-button-VOymjalV.js +1 -0
  81. package/dist/client/assets/{collection-search-Mtc1qP5K.js → collection-search-62vwaqdq.js} +1 -1
  82. package/dist/client/assets/collection-table-wrapper-DPJfuSg9.js +1 -0
  83. package/dist/client/assets/{collection-tabs-CHem1-m4.js → collection-tabs-FJx5TF4Z.js} +1 -1
  84. package/dist/client/assets/{command-DRBqjkmt.js → command-ChmbB2jp.js} +1 -1
  85. package/dist/client/assets/connect-Cak7aHsQ.js +1 -0
  86. package/dist/client/assets/connection-card-D9I87KkT.js +1 -0
  87. package/dist/client/assets/connection-detail-ZRvu6X4P.js +1 -0
  88. package/dist/client/assets/{connection-status-COvhqytZ.js → connection-status-D_iX92lK.js} +1 -1
  89. package/dist/client/assets/connections-Bi0oPT3Y.js +1 -0
  90. package/dist/client/assets/constants-B4Swgi3d.js +1 -0
  91. package/dist/client/assets/{constants-B9t4Nuz_.js → constants-XtX-WKGm.js} +1 -1
  92. package/dist/client/assets/{context-CiizXS06.js → context-CtrnP3HC.js} +1 -1
  93. package/dist/client/assets/{create-organization-dialog-BCMxp6fo.js → create-organization-dialog-DlsDrfHE.js} +1 -1
  94. package/dist/client/assets/{create-project-dialog-BvxMRX5X.js → create-project-dialog-BV-JjiBR.js} +1 -1
  95. package/dist/client/assets/{danger-BjSxZinj.js → danger-B3KgXwQ9.js} +1 -1
  96. package/dist/client/assets/{danger-zone-B2z3wTq9.js → danger-zone-C_4VhnMp.js} +1 -1
  97. package/dist/client/assets/{dependencies-BkOdHYmE.js → dependencies-BHUeYRA7.js} +1 -1
  98. package/dist/client/assets/dialog-_XYw8lZC.js +1 -0
  99. package/dist/client/assets/{dropdown-menu-Cp0O2jCN.js → dropdown-menu-DzFMEBVS.js} +1 -1
  100. package/dist/client/assets/{dynamic-plugin-layout-CcrlbNZV.js → dynamic-plugin-layout-b0Zt6Dxk.js} +1 -1
  101. package/dist/client/assets/{editable-task-title-COr46zxY.js → editable-task-title-B7Ktbs3r.js} +1 -1
  102. package/dist/client/assets/{empty-state-DbRFhzf6.js → empty-state-AMuFIqs3.js} +1 -1
  103. package/dist/client/assets/{empty-state-SBIKV11G.js → empty-state-D4GX29pL.js} +1 -1
  104. package/dist/client/assets/env-vars-editor-DTKmdK-v.js +1 -0
  105. package/dist/client/assets/extract-connection-data-CS_Bn7Ri.js +1 -0
  106. package/dist/client/assets/{file-browser-B2cQNHIN.js → file-browser-OSAi_CZb.js} +2 -2
  107. package/dist/client/assets/{form-DPPO-3Tw.js → form-BN7_f2uj.js} +1 -1
  108. package/dist/client/assets/{general-DDQcxBFZ.js → general-B9J0F1Xq.js} +1 -1
  109. package/dist/client/assets/{grid-view-BhmPSvr_.js → grid-view-BH674f3N.js} +1 -1
  110. package/dist/client/assets/home-Dam4fMEZ.js +1 -0
  111. package/dist/client/assets/index-C-NLwTON.js +1 -0
  112. package/dist/client/assets/index-CcA_QriT.js +1 -0
  113. package/dist/client/assets/{index-Bmxys2UV.js → index-Cn8BPdHZ.js} +1 -1
  114. package/dist/client/assets/{index-B3fUA0k0.js → index-CuSj4QrF.js} +1 -1
  115. package/dist/client/assets/index-D5cL24p_.css +1 -0
  116. package/dist/client/assets/{index-BVSHvvtZ.js → index-Da9ggy60.js} +1 -1
  117. package/dist/client/assets/{index-DO8fUd54.js → index-DsOJvxnb.js} +4 -4
  118. package/dist/client/assets/{index-D-NeGwUy.js → index-DxP-spTj.js} +1 -1
  119. package/dist/client/assets/index-MKlLgXIW.js +25 -0
  120. package/dist/client/assets/{index-B1uuY7UL.js → index-X4FDee1r.js} +1 -1
  121. package/dist/client/assets/{index-COM-PDLy.js → index-zjV4p_E5.js} +1 -1
  122. package/dist/client/assets/{infiniteQueryObserver-x0ce-nmx.js → infiniteQueryObserver-BE0Fq7u7.js} +1 -1
  123. package/dist/client/assets/{input-BM9bdg-F.js → input-CUT8DBv1.js} +1 -1
  124. package/dist/client/assets/integration-icon-CVxvM4fR.js +1 -0
  125. package/dist/client/assets/{label-CnT8WAQY.js → label-iPw5smAw.js} +1 -1
  126. package/dist/client/assets/{layout-ubFJ5DPd.js → layout-C2ZnDBkW.js} +1 -1
  127. package/dist/client/assets/{layout-C4PDA52F.js → layout-CA_pUlCy.js} +1 -1
  128. package/dist/client/assets/login-DJvdi7W3.js +1 -0
  129. package/dist/client/assets/{logo-upload-Bb5Ay7-T.js → logo-upload-DlKQk0GB.js} +1 -1
  130. package/dist/client/assets/{markdown-ZobUYaB1.js → markdown-CKKBcXcE.js} +8 -8
  131. package/dist/client/assets/{mcp-app-renderer-CLfglV2_.js → mcp-app-renderer-IX_OR3wW.js} +2 -2
  132. package/dist/client/assets/mcp-server-card-Cq5E9kuT.js +1 -0
  133. package/dist/client/assets/mcp-server-detail-CTGb-hF0.js +2 -0
  134. package/dist/client/assets/members-CYtrIFR5.js +3 -0
  135. package/dist/client/assets/{monaco-editor-kjafc2y3.js → monaco-editor-J8rInsT2.js} +1 -1
  136. package/dist/client/assets/{monitoring-dashboard-edit-CtIPN7nQ.js → monitoring-dashboard-edit-6gWIXCOX.js} +1 -1
  137. package/dist/client/assets/{monitoring-dashboard-view-FD-yc8mV.js → monitoring-dashboard-view-Dt4aILCV.js} +2 -2
  138. package/dist/client/assets/monitoring-gb_hJ2kW.js +4 -0
  139. package/dist/client/assets/monitoring-stats-row-Dx_W_1nT.js +28 -0
  140. package/dist/client/assets/{oauth-callback-wHI3TkEb.js → oauth-callback-COUada1q.js} +1 -1
  141. package/dist/client/assets/{oauth-callback-ai-provider-DHfWQd6C.js → oauth-callback-ai-provider-CqS-ybCD.js} +1 -1
  142. package/dist/client/assets/{org-ai-providers-Cu3Y8hG7.js → org-ai-providers-BDwPbfg4.js} +1 -1
  143. package/dist/client/assets/page-BrXIXidh.js +1 -0
  144. package/dist/client/assets/page-s-fs9Bly.js +1 -0
  145. package/dist/client/assets/{plugin-empty-state-C0KzvXIH.js → plugin-empty-state-CRLH-_5S.js} +1 -1
  146. package/dist/client/assets/{plugin-empty-state-Bh1khfVy.js → plugin-empty-state-Dt2dvxD9.js} +1 -1
  147. package/dist/client/assets/{plugin-header-ydYJ1Vj6.js → plugin-header-CkWzqJkZ.js} +1 -1
  148. package/dist/client/assets/{plugin-header-DJbwn5SE.js → plugin-header-DLDBKovk.js} +1 -1
  149. package/dist/client/assets/plugins-DkI_FXfU.js +1 -0
  150. package/dist/client/assets/{popover-D1WG-emQ.js → popover-CF3EN_0o.js} +1 -1
  151. package/dist/client/assets/{project-app-view-D-VHvgqy.js → project-app-view-Boof680i.js} +1 -1
  152. package/dist/client/assets/project-layout-CxwbtNi5.js +1 -0
  153. package/dist/client/assets/{project-plugins-BVdloqBu.js → project-plugins-DRIvSpW5.js} +1 -1
  154. package/dist/client/assets/{projects-list-Z8HiWxIk.js → projects-list-DmvsbHJl.js} +1 -1
  155. package/dist/client/assets/{registry-layout-B5XpbAHd.js → registry-layout-MGTBGYDW.js} +1 -1
  156. package/dist/client/assets/registry-utils-Cd3t_Kmp.js +1 -0
  157. package/dist/client/assets/{reports-layout-Ct8yUpC8.js → reports-layout-Cu0HmCBt.js} +1 -1
  158. package/dist/client/assets/{reset-password-BXrkGw9C.js → reset-password-Dwr8terU.js} +1 -1
  159. package/dist/client/assets/{resizable-CqLBllsV.js → resizable-D4LJctEl.js} +1 -1
  160. package/dist/client/assets/{save-actions-MbSzUbWU.js → save-actions-MzYbolsq.js} +1 -1
  161. package/dist/client/assets/{scroll-area-BcJ1ckdt.js → scroll-area-B5XbONJS.js} +1 -1
  162. package/dist/client/assets/{select-RxUFw6pZ.js → select-DRPG5csU.js} +1 -1
  163. package/dist/client/assets/{select-virtual-mcp-DU8qBWLM.js → select-virtual-mcp-B8NgSgPI.js} +1 -1
  164. package/dist/client/assets/sheet-BQuKOEiL.js +1 -0
  165. package/dist/client/assets/shell-layout-ZGvfzjfQ.js +3 -0
  166. package/dist/client/assets/{sidebar-settings-DICq5I_K.js → sidebar-settings-BqDjI96r.js} +1 -1
  167. package/dist/client/assets/{skeleton-CU7LuZGk.js → skeleton-DJFpR-1P.js} +1 -1
  168. package/dist/client/assets/{spinner-CpOteR2a.js → spinner-CqAVfcvO.js} +1 -1
  169. package/dist/client/assets/{store-invite-D2k0Vn6N.js → store-invite-JCf8JSic.js} +1 -1
  170. package/dist/client/assets/{switch-DyxdcdWl.js → switch-BQjzAGvm.js} +1 -1
  171. package/dist/client/assets/{table-DyNKuHyS.js → table-DJbHB5IL.js} +1 -1
  172. package/dist/client/assets/{tabs-XMAGaWgq.js → tabs-CkPDQzeX.js} +1 -1
  173. package/dist/client/assets/{task-status-DJB3YbbO.js → task-status-wkv2GdSY.js} +1 -1
  174. package/dist/client/assets/{tasks-panel-XTVNkW83.js → tasks-panel-TN0GeEUK.js} +1 -1
  175. package/dist/client/assets/tasks-zu-x8h5W.js +1 -0
  176. package/dist/client/assets/{textarea-BLuscN8X.js → textarea-CTzX43MZ.js} +1 -1
  177. package/dist/client/assets/{time-range-picker-Bd3fku3n.js → time-range-picker-DNJ6dRiN.js} +1 -1
  178. package/dist/client/assets/{toggle-group-BrL6C5fG.js → toggle-group-y2h19HHT.js} +1 -1
  179. package/dist/client/assets/tools-list-Db7zzadA.js +1 -0
  180. package/dist/client/assets/{tooltip-BLTgyg7W.js → tooltip-XyKE4lZa.js} +1 -1
  181. package/dist/client/assets/{topbar-portal-_Qqzdv9B.js → topbar-portal-D3fRQWai.js} +1 -1
  182. package/dist/client/assets/{types-BPYct9bF.js → types-B3niHy47.js} +5 -5
  183. package/dist/client/assets/{use-automations-BeAHZecx.js → use-automations-C4CL-jAO.js} +1 -1
  184. package/dist/client/assets/use-binding-BfjFWpEn.js +1 -0
  185. package/dist/client/assets/{use-collections-C8rLdQUN.js → use-collections-DSWhP4jg.js} +1 -1
  186. package/dist/client/assets/{use-connection-BNGXvSqD.js → use-connection-DmR852Js.js} +1 -1
  187. package/dist/client/assets/{use-copy-DPJ8nWWs.js → use-copy-dSR0w-bG.js} +1 -1
  188. package/dist/client/assets/{use-create-virtual-mcp-BfS4KaKE.js → use-create-virtual-mcp-DXWAjide.js} +1 -1
  189. package/dist/client/assets/use-infinite-scroll-CvaIKLMy.js +1 -0
  190. package/dist/client/assets/{use-install-from-registry-BEC7S-53.js → use-install-from-registry-_FQYQGQx.js} +1 -1
  191. package/dist/client/assets/{use-list-state-DsQajLIu.js → use-list-state-Ck8sSm9J.js} +1 -1
  192. package/dist/client/assets/{use-llm-IG8InXvX.js → use-llm-BkLbMZPM.js} +1 -1
  193. package/dist/client/assets/{use-local-storage-C3Bo802w.js → use-local-storage-CxC8ozOe.js} +1 -1
  194. package/dist/client/assets/{use-mcp-prompts-D_02f3uO.js → use-mcp-prompts-C-XU_-dc.js} +1 -1
  195. package/dist/client/assets/{use-mcp-resources-BNoK6dDS.js → use-mcp-resources-Bxkx1Ub1.js} +1 -1
  196. package/dist/client/assets/{use-mcp-tools-BCCglZve.js → use-mcp-tools-BXmfFmar.js} +1 -1
  197. package/dist/client/assets/{use-members-Cqa4gqXV.js → use-members-B-Cx3SpJ.js} +1 -1
  198. package/dist/client/assets/{use-mobile-kAkblq0-.js → use-mobile-O8KVzGuv.js} +1 -1
  199. package/dist/client/assets/{use-project-DNZXkIib.js → use-project-Bg5pX2Ab.js} +1 -1
  200. package/dist/client/assets/use-store-discovery-DPE_0zuT.js +1 -0
  201. package/dist/client/assets/{use-view-mode-Bl6DaWwW.js → use-view-mode-ve-Q_Sd0.js} +1 -1
  202. package/dist/client/assets/{use-virtual-mcp-DoDJBE5n.js → use-virtual-mcp-C9XdHCA_.js} +1 -1
  203. package/dist/client/assets/useInfiniteQuery-DEfXPFTs.js +1 -0
  204. package/dist/client/assets/{useMutation-CNVq636e.js → useMutation-B_cFG709.js} +1 -1
  205. package/dist/client/assets/useQuery-D2ShO4od.js +1 -0
  206. package/dist/client/assets/useSuspenseInfiniteQuery-CT40dICu.js +1 -0
  207. package/dist/client/assets/{user-6WV0RuBu.js → user-rS26WEu1.js} +1 -1
  208. package/dist/client/assets/workflow-C4-p-dLU.js +1 -0
  209. package/dist/client/index.html +2 -2
  210. package/dist/server/node_modules/{xtend → pg}/LICENSE +7 -6
  211. package/dist/server/node_modules/pg/README.md +95 -0
  212. package/dist/server/node_modules/pg/esm/index.mjs +20 -0
  213. package/dist/server/node_modules/pg/lib/client.js +743 -0
  214. package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
  215. package/dist/server/node_modules/pg/lib/connection.js +221 -0
  216. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
  217. package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
  218. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
  219. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
  220. package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
  221. package/dist/server/node_modules/pg/lib/defaults.js +91 -0
  222. package/dist/server/node_modules/pg/lib/index.js +73 -0
  223. package/dist/server/node_modules/pg/lib/native/client.js +323 -0
  224. package/dist/server/node_modules/pg/lib/native/index.js +2 -0
  225. package/dist/server/node_modules/pg/lib/native/query.js +165 -0
  226. package/dist/server/node_modules/pg/lib/query.js +252 -0
  227. package/dist/server/node_modules/pg/lib/result.js +109 -0
  228. package/dist/server/node_modules/pg/lib/stream.js +83 -0
  229. package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
  230. package/dist/server/node_modules/pg/lib/utils.js +217 -0
  231. package/dist/server/node_modules/pg/package.json +76 -0
  232. package/package.json +1 -1
  233. package/dist/client/assets/agent-detail-Cda1RjKX.js +0 -2
  234. package/dist/client/assets/automation-detail-BV87rs7m.js +0 -1
  235. package/dist/client/assets/automations-Dp0qrLbX.js +0 -1
  236. package/dist/client/assets/card-B4dTtsmd.js +0 -1
  237. package/dist/client/assets/chart-Caf0jSbB.js +0 -15
  238. package/dist/client/assets/collection-display-button-C0A6ba73.js +0 -1
  239. package/dist/client/assets/collection-tab-CTog7m1d.js +0 -1
  240. package/dist/client/assets/collection-table-wrapper-Ccujw2gS.js +0 -1
  241. package/dist/client/assets/connect-CRbH1TYm.js +0 -1
  242. package/dist/client/assets/connection-card-DXMFAvSL.js +0 -1
  243. package/dist/client/assets/connection-detail-D-M6vj9q.js +0 -1
  244. package/dist/client/assets/connections-BZmayWR_.js +0 -1
  245. package/dist/client/assets/constants-Dr5R1EQY.js +0 -1
  246. package/dist/client/assets/dialog-CTFHRhvl.js +0 -1
  247. package/dist/client/assets/env-vars-editor-1feSU4JA.js +0 -1
  248. package/dist/client/assets/extract-connection-data-adtLKfGW.js +0 -1
  249. package/dist/client/assets/github-icon-Dp3wHhYE.js +0 -1
  250. package/dist/client/assets/home-Dxpbp1Bj.js +0 -1
  251. package/dist/client/assets/icon-picker-BKKuKn6y.js +0 -1
  252. package/dist/client/assets/index-B_m3AdpY.js +0 -1
  253. package/dist/client/assets/index-BqlWbrG0.js +0 -1
  254. package/dist/client/assets/index-C6XH6ylF.js +0 -25
  255. package/dist/client/assets/index-DmrxmdhV.css +0 -1
  256. package/dist/client/assets/integration-icon-BrOdBipR.js +0 -1
  257. package/dist/client/assets/login-CTOJXY_r.js +0 -1
  258. package/dist/client/assets/mcp-server-card-AL30DdJr.js +0 -1
  259. package/dist/client/assets/mcp-server-detail-CN2kEGgD.js +0 -2
  260. package/dist/client/assets/members-CpLusvJM.js +0 -3
  261. package/dist/client/assets/monitoring-BNAsqD0Y.js +0 -31
  262. package/dist/client/assets/page-BWMoYp-g.js +0 -1
  263. package/dist/client/assets/page-Ch5Qzmi-.js +0 -1
  264. package/dist/client/assets/plugins-D5THwapv.js +0 -1
  265. package/dist/client/assets/project-layout-Cd8cNifU.js +0 -1
  266. package/dist/client/assets/readme-viewer-MbTGGbgZ.js +0 -1
  267. package/dist/client/assets/registry-utils-oSXyNc33.js +0 -1
  268. package/dist/client/assets/shell-layout-0dnPJSNe.js +0 -3
  269. package/dist/client/assets/tasks-BJvBlQqj.js +0 -1
  270. package/dist/client/assets/tools-list-BeUwtNiH.js +0 -1
  271. package/dist/client/assets/use-binding-DSWv53zN.js +0 -1
  272. package/dist/client/assets/useInfiniteQuery-BBGNgnIc.js +0 -1
  273. package/dist/client/assets/useQuery-BeFLqBun.js +0 -1
  274. package/dist/client/assets/useSuspenseInfiniteQuery-CdVyznmA.js +0 -1
  275. package/dist/client/assets/workflow-DUYpxPLh.js +0 -1
  276. package/dist/server/node_modules/async-exit-hook/CHANGELOG.md +0 -62
  277. package/dist/server/node_modules/async-exit-hook/index.js +0 -171
  278. package/dist/server/node_modules/async-exit-hook/license +0 -21
  279. package/dist/server/node_modules/async-exit-hook/package.json +0 -66
  280. package/dist/server/node_modules/async-exit-hook/readme.md +0 -118
  281. package/dist/server/node_modules/pg-int8/LICENSE +0 -13
  282. package/dist/server/node_modules/pg-int8/README.md +0 -16
  283. package/dist/server/node_modules/pg-int8/index.js +0 -100
  284. package/dist/server/node_modules/pg-int8/package.json +0 -24
  285. package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
  286. package/dist/server/node_modules/postgres-array/index.js +0 -97
  287. package/dist/server/node_modules/postgres-array/license +0 -21
  288. package/dist/server/node_modules/postgres-array/package.json +0 -35
  289. package/dist/server/node_modules/postgres-array/readme.md +0 -43
  290. package/dist/server/node_modules/postgres-bytea/index.js +0 -33
  291. package/dist/server/node_modules/postgres-bytea/license +0 -21
  292. package/dist/server/node_modules/postgres-bytea/package.json +0 -34
  293. package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
  294. package/dist/server/node_modules/postgres-date/index.js +0 -116
  295. package/dist/server/node_modules/postgres-date/license +0 -21
  296. package/dist/server/node_modules/postgres-date/package.json +0 -33
  297. package/dist/server/node_modules/postgres-date/readme.md +0 -49
  298. package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
  299. package/dist/server/node_modules/postgres-interval/index.js +0 -125
  300. package/dist/server/node_modules/postgres-interval/license +0 -21
  301. package/dist/server/node_modules/postgres-interval/package.json +0 -36
  302. package/dist/server/node_modules/postgres-interval/readme.md +0 -48
  303. package/dist/server/node_modules/split2/LICENSE +0 -13
  304. package/dist/server/node_modules/split2/README.md +0 -85
  305. package/dist/server/node_modules/split2/bench.js +0 -27
  306. package/dist/server/node_modules/split2/index.js +0 -141
  307. package/dist/server/node_modules/split2/package.json +0 -39
  308. package/dist/server/node_modules/split2/test.js +0 -409
  309. package/dist/server/node_modules/xtend/.jshintrc +0 -30
  310. package/dist/server/node_modules/xtend/README.md +0 -32
  311. package/dist/server/node_modules/xtend/immutable.js +0 -19
  312. package/dist/server/node_modules/xtend/mutable.js +0 -17
  313. package/dist/server/node_modules/xtend/package.json +0 -55
  314. package/dist/server/node_modules/xtend/test.js +0 -103
  315. /package/dist/client/assets/{readme-viewer-DWnTz46N.css → mcp-server-detail-DWnTz46N.css} +0 -0
@@ -0,0 +1,3 @@
1
+ import{r as P,c as z,j as s,E as Qe,u as ze,y as I,e as Ze,au as Xe,L as We,ch as _t,bj as kt,O as Q,as as Ct,U as wt,_ as $t,g as it,f as Se,w as Ne,ci as zt,bN as It,x as Pt,B as Ge,A as At,S as nt,k as Et,m as Ot,N as Tt,v as Mt,aw as Be,K as Dt,av as lt,P as Rt}from"./index-DsOJvxnb.js";import{C as ie,c as Lt,i as Ut,d as Ht}from"./task-status-wkv2GdSY.js";import{I as Bt}from"./integration-icon-CVxvM4fR.js";import{u as ot,P as je}from"./index-X4FDee1r.js";import{d as Ft,u as Wt}from"./constants-XtX-WKGm.js";import{n as Ke}from"./CheckDone01-ZekLHdFZ.js";import{n as Gt}from"./ChevronLeft-0cpA2yNq.js";import{i as Kt}from"./Loading01-BNn4YU_K.js";import{s as Le}from"./Plus-CT_Gcwl2.js";import{t as Je}from"./Users03-B7X28dbt.js";import{i as tt}from"./X-B_f76BPZ.js";import{E as Vt,C as qt}from"./editable-task-title-B7Ktbs3r.js";import{T as Yt}from"./tasks-panel-TN0GeEUK.js";import{a as Qt}from"./use-llm-BkLbMZPM.js";import{a as Zt}from"./context-CtrnP3HC.js";import{C as rt}from"./create-project-dialog-BV-JjiBR.js";import{c as Xt,b as Jt,D as es,d as ts}from"./dialog-_XYw8lZC.js";import{n as ss}from"./Container-DwxLlgWA.js";import{e as is}from"./Dataflow03-T9TmjQN-.js";import{a as ns}from"./Home02-DfEb-Myv.js";import{i as Ve}from"./LayoutLeft-BvuIBX8d.js";import{s as ls}from"./RefreshCcw01-uL9q48A4.js";import{t as Ue}from"./Settings01-2AkYiqYr.js";import{u as os,a as at}from"./org-ai-providers-BDwPbfg4.js";import{u as ct,a as dt}from"./use-project-Bg5pX2Ab.js";import{u as rs}from"./use-mobile-O8KVzGuv.js";import{d as as,b as cs,S as ds,a as ms,c as fs}from"./sheet-BQuKOEiL.js";import{b as us,T as ps,a as xs,c as hs}from"./tooltip-XyKE4lZa.js";import{S as le}from"./skeleton-DJFpR-1P.js";import{n as $e}from"./LinkExternal01-QGWpvftd.js";import{t as mt}from"./ChevronDown-BHMaRWRt.js";import{A as Ie}from"./avatar-OE2URZfM.js";import{c as ne,f as gs,e as bs,b as ft,D as ut,a as pt,h as He,d as js}from"./dropdown-menu-DzFMEBVS.js";import{t as vs,i as ys}from"./Coins01-D7lfLTbO.js";import{i as Pe}from"./Check-BfKCyKXX.js";import{C as Ns}from"./create-organization-dialog-DlsDrfHE.js";import{a as Ss}from"./Copy01-CIUDy0Hr.js";import{i as _s}from"./File06-CU5oU1OI.js";import{i as ks}from"./Globe01-DUjsFcPS.js";import{i as Cs}from"./Shield01-D6IOCC-Z.js";import{a as ws,P as $s,b as zs}from"./popover-CF3EN_0o.js";import{n as st}from"./Inbox01-BgDmihAV.js";import{s as Is}from"./XClose-eeK1fS1n.js";import{b as Ps}from"./use-connection-DmR852Js.js";import{b as As}from"./use-mcp-tools-BXmfFmar.js";import{c as Es,A as Os}from"./use-binding-BfjFWpEn.js";import{C as Ts,b as Ms,c as Ds}from"./collapsible-CGr-TiAc.js";import{i as Rs}from"./ChevronRight-1g9z-Z5h.js";import{u as et}from"./use-local-storage-CxC8ozOe.js";import{a as Ls,R as xt,b as Us}from"./resizable-D4LJctEl.js";import"./spinner-CqAVfcvO.js";import"./use-mcp-prompts-C-XU_-dc.js";import"./useQuery-D2ShO4od.js";import"./form-BN7_f2uj.js";import"./label-iPw5smAw.js";import"./input-CUT8DBv1.js";import"./index-CuSj4QrF.js";import"./usage-B8rgFVXq.js";import"./ArrowUp-C6Q-EpUw.js";import"./Edit01-Dw-lPBk-.js";import"./Lock01-DJQX15kR.js";import"./XCircle-DDLf4PgL.js";import"./AlertCircle-De9oqjty.js";import"./select-DRPG5csU.js";import"./ChevronUp-1s_S3eDF.js";import"./index-zjV4p_E5.js";import"./ArrowLeft-CPWCs_Od.js";import"./use-copy-dSR0w-bG.js";import"./tabs-CkPDQzeX.js";import"./badge-CAg946Xk.js";import"./Code01-CoTQP8pZ.js";import"./checkbox-DLsMmmhu.js";import"./AlignLeft-BaG4OcCg.js";import"./Image01-I9pAeT0N.js";import"./Key01-DAjAUWfr.js";import"./SearchMd-BLeX5weN.js";import"./Tool01-CjSIsyxE.js";import"./ai-providers-logos-W57Qm-EN.js";import"./select-virtual-mcp-B8NgSgPI.js";import"./use-virtual-mcp-C9XdHCA_.js";import"./use-collections-DSWhP4jg.js";import"./useMutation-B_cFG709.js";import"./use-create-virtual-mcp-DXWAjide.js";import"./use-mcp-resources-Bxkx1Ub1.js";import"./marked.esm-BaswSlok.js";import"./markdown-CKKBcXcE.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-IX_OR3wW.js";import"./types-B3niHy47.js";import"./Eye-JuDcZhJz.js";import"./Globe02-k3_A41kp.js";import"./LayersTwo01-C-XZtFtv.js";import"./Clock-rHd8cQAO.js";import"./Trash01-YPQczxci.js";import"./useSuspenseInfiniteQuery-CT40dICu.js";import"./infiniteQueryObserver-BE0Fq7u7.js";import"./CheckCircle-DiRi76qb.js";import"./collection-search-62vwaqdq.js";import"./user-rS26WEu1.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./decopilot-events-Brt4gAR6.js";import"./textarea-CTzX43MZ.js";import"./EyeOff-9_-SJWcU.js";import"./card-RQxLVCBk.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./alert-dialog-BVglQjyM.js";import"./binder-DTBFGqjl.js";import"./index-C-NLwTON.js";const ht=({size:t=24,color:e="currentColor",...i})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},P.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));ht.displayName="BarChart10";const gt=({size:t=24,color:e="currentColor",...i})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},P.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));gt.displayName="FaceSmile";const bt=({size:t=24,color:e="currentColor",...i})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},P.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));bt.displayName="LogOut01";function Hs(){const t=z.c(70),{org:e}=ze(),[,i]=ot(),n=Qt(),{selectedVirtualMcp:l,isChatEmpty:o,activeTaskId:r,createTask:a,switchToTask:c,tasks:d}=Zt();let f;if(t[0]!==r||t[1]!==d){let D;t[3]!==r?(D=X=>X.id===r,t[3]=r,t[4]=D):D=t[4],f=d.find(D),t[0]=r,t[1]=d,t[2]=f}else f=t[2];const u=f,[m,x]=P.useState("chat"),[h,g]=P.useTransition();let j;t[5]!==e.id?(j=Ft(e.id),t[5]=e.id,t[6]=j):j=t[6];const b=l??j;let p;t[7]!==a?(p=()=>{g(()=>{a()})},t[7]=a,t[8]=p):p=t[8];const y=p;if(n?.providers?.length===0){let D;t[9]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(je.Header.Left,{className:"gap-2"}),t[9]=D):D=t[9];let X;t[10]!==i?(X=()=>i(!1),t[10]=i,t[11]=X):X=t[11];let ce;t[12]===Symbol.for("react.memo_cache_sentinel")?(ce=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=ce):ce=t[12];let se;t[13]!==X?(se=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[D,s.jsx(je.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:X,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:ce})})]}),t[13]=X,t[14]=se):se=t[14];let fe;t[15]===Symbol.for("react.memo_cache_sentinel")?(fe=s.jsx(ie.Main,{className:"flex flex-col items-center",children:s.jsx(ie.EmptyState,{children:s.jsx(ie.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features."})})}),t[15]=fe):fe=t[15];let he;return t[16]!==se?(he=s.jsxs(ie,{className:"animate-in fade-in-0 duration-200",children:[se,fe]}),t[16]=se,t[17]=he):he=t[17],he}const k=m!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let v;t[18]!==k?(v=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",k),t[18]=k,t[19]=v):v=t[19];let N;t[20]!==u||t[21]!==o?(N=!o&&u?.title&&s.jsx(Vt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[20]=u,t[21]=o,t[22]=N):N=t[22];let w;t[23]!==N?(w=s.jsx(je.Header.Left,{className:"gap-2",children:N}),t[23]=N,t[24]=w):w=t[24];let $;t[25]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[25]=$):$=t[25];let S;t[26]!==y||t[27]!==h?(S=s.jsx("button",{type:"button",onClick:y,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:$}),t[26]=y,t[27]=h,t[28]=S):S=t[28];let A;t[29]===Symbol.for("react.memo_cache_sentinel")?(A=()=>x("tasks"),t[29]=A):A=t[29];let O;t[30]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("button",{type:"button",onClick:A,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[30]=O):O=t[30];let T;t[31]!==i?(T=()=>i(!1),t[31]=i,t[32]=T):T=t[32];let U;t[33]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[33]=U):U=t[33];let R;t[34]!==T?(R=s.jsx("button",{type:"button",onClick:T,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:U}),t[34]=T,t[35]=R):R=t[35];let E;t[36]!==R||t[37]!==S?(E=s.jsxs(je.Header.Right,{className:"gap-1",children:[S,O,R]}),t[36]=R,t[37]=S,t[38]=E):E=t[38];let L;t[39]!==E||t[40]!==w?(L=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[w,E]}),t[39]=E,t[40]=w,t[41]=L):L=t[41];let H;t[42]!==b||t[43]!==o?(H=s.jsx(ie.Main,{children:o?s.jsx(ie.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx(Bt,{icon:b.icon,name:b.title,size:"lg",fallbackIcon:s.jsx(Je,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:b.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:b.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(ie.IceBreakers,{})]})}):s.jsx(ie.Messages,{})}),t[42]=b,t[43]=o,t[44]=H):H=t[44];let B;t[45]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(ie.Footer,{children:s.jsx(ie.Input,{onOpenContextPanel:()=>x("context")})}),t[45]=B):B=t[45];let M;t[46]!==L||t[47]!==H||t[48]!==v?(M=s.jsxs("div",{className:v,children:[L,H,B]}),t[46]=L,t[47]=H,t[48]=v,t[49]=M):M=t[49];const W=m==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let me;t[50]!==W?(me=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",W),t[50]=W,t[51]=me):me=t[51];let J;t[52]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(je.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[52]=J):J=t[52];let oe;t[53]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>x("chat"),t[53]=oe):oe=t[53];let re;t[54]===Symbol.for("react.memo_cache_sentinel")?(re=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[J,s.jsx(je.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:oe,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Gt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[54]=re):re=t[54];let ee;t[55]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Kt,{size:16,className:"animate-spin text-muted-foreground"})}),t[55]=ee):ee=t[55];let te;t[56]!==c?(te=s.jsx(Qe,{fallback:Bs,children:s.jsx(P.Suspense,{fallback:ee,children:s.jsx(Yt,{onTaskSelect:async D=>{await c(D),x("chat")}})})}),t[56]=c,t[57]=te):te=t[57];let F;t[58]!==me||t[59]!==te?(F=s.jsxs("div",{className:me,children:[re,te]}),t[58]=me,t[59]=te,t[60]=F):F=t[60];const Z=m==="context"?"opacity-100":"opacity-0 pointer-events-none";let K;t[61]!==Z?(K=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",Z),t[61]=Z,t[62]=K):K=t[62];let ae;t[63]===Symbol.for("react.memo_cache_sentinel")?(ae=s.jsx(qt,{back:!0,onClose:()=>x("chat")}),t[63]=ae):ae=t[63];let V;t[64]!==K?(V=s.jsx("div",{className:K,children:ae}),t[64]=K,t[65]=V):V=t[65];let q;return t[66]!==M||t[67]!==F||t[68]!==V?(q=s.jsxs(ie,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[M,F,V]}),t[66]=M,t[67]=F,t[68]=V,t[69]=q):q=t[69],q}function Bs(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function Fs(){const t=z.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ie.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Qe,{fallback:e,children:s.jsx(P.Suspense,{fallback:s.jsx(ie.Skeleton,{}),children:s.jsx(Hs,{})})}),t[1]=i):i=t[1],i}function Ws(t){const e=z.c(5),{open:i,onOpenChange:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Jt,{children:s.jsx(es,{children:"Keyboard Shortcuts"})}),e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(Xt,{className:"sm:max-w-md",children:[l,s.jsx("div",{className:"flex flex-col gap-4",children:Lt.map(Gs)})]}),e[1]=o):o=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx(ts,{open:i,onOpenChange:n,children:o}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Gs(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Vs)})]},t.description)}function Vs(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function qs(){const t=z.c(58),{locator:e,org:i}=ze(),n=Ze(),l=Xe(),[o]=os(),{org:r,project:a}=We.parse(e),c=We.isOrgAdminProject(e),{data:d}=ct(i.id,a);let f;t[0]!==d?.enabledPlugins?(f=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=f):f=t[1];const u=f,m=d?.ui?.pinnedViews??[];let x;t[2]!==u?(x=C=>u.includes(C.pluginId),t[2]=u,t[3]=x):x=t[3];const h=_t.filter(x),g=l.location.pathname,j=`/${r}/${a}`,_=g===j||g===`${j}/`;let b;t[4]!==j||t[5]!==g?(b=C=>g.startsWith(`${j}/${C}`),t[4]=j,t[5]=g,t[6]=b):b=t[6];const p=b;let y;t[7]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(ns,{}),t[7]=y):y=t[7];const k={key:"home",label:"Home",icon:y,isActive:_,onClick:()=>{_?window.dispatchEvent(new CustomEvent("reset-home-view")):n({to:"/$org/$project",params:{org:r,project:a}})}};let v;t[8]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ke,{}),t[8]=v):v=t[8];const N={key:"tasks",label:"Tasks",icon:v,isActive:p("tasks"),onClick:()=>n({to:"/$org/$project/tasks",params:{org:r,project:Q}})};let w;t[9]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ss,{}),t[9]=w):w=t[9];const $={key:"mcps",label:"Connections",icon:w,isActive:p("mcps"),onClick:()=>n({to:"/$org/$project/mcps",params:{org:r,project:Q}})};let S;t[10]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Ct,{}),t[10]=S):S=t[10];const A={key:"projects",label:"Projects",icon:S,isActive:p("projects"),onClick:()=>n({to:"/$org/$project/projects",params:{org:r,project:Q}})};let O;t[11]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Je,{}),t[11]=O):O=t[11];const T={key:"agents",label:"Agents",icon:O,isActive:p("agents"),onClick:()=>n({to:"/$org/$project/agents",params:{org:r,project:Q}})};let U;t[12]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ls,{}),t[12]=U):U=t[12];const R={key:"automations",label:"Automations",icon:U,isActive:p("automations"),onClick:()=>n({to:"/$org/$project/automations",params:{org:r,project:Q}})};let E;t[13]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(ht,{}),t[13]=E):E=t[13];const L={key:"monitoring",label:"Monitor",icon:E,isActive:p("monitoring"),onClick:()=>n({to:"/$org/$project/monitoring",params:{org:r,project:Q}})};let H;t[14]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(gt,{}),t[14]=H):H=t[14];const B={key:"members",label:"Members",icon:H,isActive:p("members"),onClick:()=>n({to:"/$org/$project/members",params:{org:r,project:Q}})},M=h.map(C=>({key:C.pluginId,label:C.label,icon:C.icon,isActive:p(C.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:C.pluginId}})}));let W;t[15]!==u?(W=C=>u.includes(C.pluginId),t[15]=u,t[16]=W):W=t[16];const J=kt.filter(W).map(C=>({type:"group",group:{id:`${C.pluginId}-${C.id}`,label:C.label,items:C.items.map((G,de)=>({key:`${C.pluginId}-${C.id}-${de}`,label:G.label,icon:G.icon,isActive:p(C.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:C.pluginId}})})),defaultExpanded:C.defaultExpanded??!0}})),oe=m.map(C=>({key:`app-${C.connectionId}-${C.toolName}`,label:C.label||C.toolName,icon:C.icon?s.jsx("img",{src:C.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:p(`apps/${C.connectionId}/${encodeURIComponent(C.toolName)}`),onClick:()=>n({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:r,project:a,connectionId:C.connectionId,toolName:C.toolName}})}));let re;t[17]!==oe?(re=oe.length>0?{type:"group",group:{id:"apps",label:"Apps",items:oe,defaultExpanded:!0}}:null,t[17]=oe,t[18]=re):re=t[18];const ee=re;if(c){let C;t[19]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Ue,{}),t[19]=C):C=t[19];let G;t[20]!==p?(G=p("settings"),t[20]=p,t[21]=G):G=t[21];let de;t[22]!==n||t[23]!==r?(de=()=>n({to:"/$org/$project/settings",params:{org:r,project:Q}}),t[22]=n,t[23]=r,t[24]=de):de=t[24];let ue;t[25]!==G||t[26]!==de?(ue={key:"settings",label:"Settings",icon:C,isActive:G,onClick:de},t[25]=G,t[26]=de,t[27]=ue):ue=t[27];const ye=ue,pe=[{type:"items",items:[k,N,A]},{type:"group",group:{id:"build",label:"Build",items:[...o.experimentalAutomations?[R]:[],T,$],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[L,B,ye],defaultExpanded:!0}}];if(M.length>0){let be;t[28]!==M?(be={type:"items",items:M},t[28]=M,t[29]=be):be=t[29],pe.push(be)}return J.length>0&&pe.push(...J),ee&&pe.push(ee),pe}let te;t[30]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(Ke,{}),t[30]=te):te=t[30];let F;t[31]!==p?(F=p("tasks"),t[31]=p,t[32]=F):F=t[32];let Z;t[33]!==n||t[34]!==r||t[35]!==a?(Z=()=>n({to:"/$org/$project/tasks",params:{org:r,project:a}}),t[33]=n,t[34]=r,t[35]=a,t[36]=Z):Z=t[36];let K;t[37]!==F||t[38]!==Z?(K={key:"tasks",label:"Tasks",icon:te,isActive:F,onClick:Z},t[37]=F,t[38]=Z,t[39]=K):K=t[39];const ae=K;let V;t[40]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx(is,{}),t[40]=V):V=t[40];let q;t[41]!==p?(q=p("workflows"),t[41]=p,t[42]=q):q=t[42];let D;t[43]!==n||t[44]!==r||t[45]!==a?(D=()=>n({to:"/$org/$project/workflows",params:{org:r,project:a}}),t[43]=n,t[44]=r,t[45]=a,t[46]=D):D=t[46];let X;t[47]!==q||t[48]!==D?(X={key:"workflows",label:"Workflows",icon:V,isActive:q,onClick:D},t[47]=q,t[48]=D,t[49]=X):X=t[49];const ce=X;let se;t[50]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(Ue,{}),t[50]=se):se=t[50];let fe;t[51]!==n||t[52]!==r||t[53]!==a?(fe={key:"configure",label:"Configure",icon:se,isActive:!1,isExternal:!0,onClick:()=>n({to:"/$org/$project/projects/$slug/settings/general",params:{org:r,project:Q,slug:a}})},t[51]=n,t[52]=r,t[53]=a,t[54]=fe):fe=t[54];const ge=[{type:"items",items:[k,ae,ce,fe]}];if(M.length>0){let C;t[55]===Symbol.for("react.memo_cache_sentinel")?(C={type:"divider"},t[55]=C):C=t[55],ge.push(C);let G;t[56]!==M?(G={type:"items",items:M},t[56]=M,t[57]=G):G=t[57],ge.push(G)}return J.length>0&&ge.push(...J),ee&&ge.push(ee),ge}const Ys="sidebar_state",Qs=3600*24*7,Zs="16rem",Xs="18rem",Js="3rem",ei="b",jt=P.createContext(null);function Fe(){const t=P.useContext(jt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function ti(t){const e=z.c(21),{defaultOpen:i,open:n,onOpenChange:l,children:o}=t,r=i===void 0?!0:i,a=rs(),[c,d]=P.useState(!1),[f,u]=P.useState(r),m=n??f;let x;e[0]!==m||e[1]!==l?(x=w=>{const $=typeof w=="function"?w(m):w;l?l($):u($),document.cookie=`${Ys}=${$}; path=/; max-age=${Qs}`},e[0]=m,e[1]=l,e[2]=x):x=e[2];const h=x;let g;e[3]!==a||e[4]!==h?(g=()=>a?d(ii):h(si),e[3]=a,e[4]=h,e[5]=g):g=e[5];const j=g;let _,b;e[6]!==j?(_=()=>{const w=$=>{if($.key===ei&&($.metaKey||$.ctrlKey)){const S=$.target;if(S.tagName==="INPUT"||S.tagName==="TEXTAREA"||S.isContentEditable)return;$.preventDefault(),j()}};return globalThis.addEventListener("keydown",w),()=>globalThis.removeEventListener("keydown",w)},b=[j],e[6]=j,e[7]=_,e[8]=b):(_=e[7],b=e[8]),P.useEffect(_,b);const p=m?"expanded":"collapsed";let y;e[9]!==a||e[10]!==m||e[11]!==c||e[12]!==h||e[13]!==p||e[14]!==j?(y={state:p,open:m,setOpen:h,isMobile:a,openMobile:c,setOpenMobile:d,toggleSidebar:j},e[9]=a,e[10]=m,e[11]=c,e[12]=h,e[13]=p,e[14]=j,e[15]=y):y=e[15];const k=y;let v;e[16]!==o?(v=s.jsx(us,{delayDuration:0,children:o}),e[16]=o,e[17]=v):v=e[17];let N;return e[18]!==k||e[19]!==v?(N=s.jsx(jt.Provider,{value:k,children:v}),e[18]=k,e[19]=v,e[20]=N):N=e[20],N}function si(t){return!t}function ii(t){return!t}function ni(t){const e=z.c(14);let i,n,l,o;e[0]!==t?({className:n,style:o,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o):(i=e[1],n=e[2],l=e[3],o=e[4]);let r;e[5]!==o?(r={"--sidebar-width":Zs,"--sidebar-width-icon":Js,...o},e[5]=o,e[6]=r):r=e[6];const a=r;let c;e[7]!==n?(c=I("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",n),e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==i||e[10]!==l||e[11]!==a||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:a,className:c,...l,children:i}),e[9]=i,e[10]=l,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function li(t){const e=z.c(42);let i,n,l,o,r,a;e[0]!==t?({side:o,variant:r,collapsible:a,className:n,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6]);const c=o===void 0?"left":o,d=r===void 0?"sidebar":r,f=a===void 0?"offcanvas":a,{isMobile:u,state:m,openMobile:x,setOpenMobile:h}=Fe();if(f==="none"){let v;e[7]!==n?(v=I("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=v):v=e[8];let N;return e[9]!==i||e[10]!==l||e[11]!==v?(N=s.jsx("div",{"data-slot":"sidebar",className:v,...l,children:i}),e[9]=i,e[10]=l,e[11]=v,e[12]=N):N=e[12],N}if(u){let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v={"--sidebar-width":Xs},e[13]=v):v=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(cs,{className:"sr-only",children:[s.jsx(ds,{children:"Sidebar"}),s.jsx(ms,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let w;e[15]!==i?(w=s.jsx("div",{className:"flex h-full w-full flex-col",children:i}),e[15]=i,e[16]=w):w=e[16];let $;e[17]!==c||e[18]!==w?($=s.jsxs(fs,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:v,side:c,children:[N,w]}),e[17]=c,e[18]=w,e[19]=$):$=e[19];let S;return e[20]!==x||e[21]!==l||e[22]!==h||e[23]!==$?(S=s.jsx(as,{open:x,onOpenChange:h,...l,children:$}),e[20]=x,e[21]=l,e[22]=h,e[23]=$,e[24]=S):S=e[24],S}const g=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let j;e[25]!==g?(j=I("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",g),e[25]=g,e[26]=j):j=e[26];const _=m==="collapsed"?f:"";let b;e[27]!==n?(b=I("flex flex-col h-full w-(--sidebar-width)",n),e[27]=n,e[28]=b):b=e[28];let p;e[29]!==i?(p=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i}),e[29]=i,e[30]=p):p=e[30];let y;e[31]!==l||e[32]!==b||e[33]!==p?(y=s.jsx("div",{"data-slot":"sidebar-container",className:b,...l,children:p}),e[31]=l,e[32]=b,e[33]=p,e[34]=y):y=e[34];let k;return e[35]!==c||e[36]!==m||e[37]!==j||e[38]!==_||e[39]!==y||e[40]!==d?(k=s.jsx("div",{className:j,"data-state":m,"data-collapsible":_,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:y}),e[35]=c,e[36]=m,e[37]=j,e[38]=_,e[39]=y,e[40]=d,e[41]=k):k=e[41],k}function oi(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function vt(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ri(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ai(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("h-4 m-0! w-full",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-sidebar":"separator",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ci(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ae(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ee(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("w-full text-sm",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ve(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function xe(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("group/menu-item relative",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}const di=$t("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Oe(t){const e=z.c(28);let i,n,l,o,r,a,c;e[0]!==t?({asChild:l,isActive:o,variant:r,size:a,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a,e[7]=c):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6],c=e[7]);const d=l===void 0?!1:l,f=o===void 0?!1:o,u=r===void 0?"default":r,m=a===void 0?"default":a,x=d?wt:"button",{isMobile:h,state:g}=Fe();let j;e[8]!==i||e[9]!==m||e[10]!==u?(j=I(di({variant:u,size:m}),i),e[8]=i,e[9]=m,e[10]=u,e[11]=j):j=e[11];let _;e[12]!==x||e[13]!==f||e[14]!==n||e[15]!==m||e[16]!==j?(_=s.jsx(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":f,className:j,...n}),e[12]=x,e[13]=f,e[14]=n,e[15]=m,e[16]=j,e[17]=_):_=e[17];const b=_;if(!c)return b;if(typeof c=="string"){let N;e[18]!==c?(N={children:c},e[18]=c,e[19]=N):N=e[19],c=N}let p;e[20]!==b?(p=s.jsx(xs,{asChild:!0,children:b}),e[20]=b,e[21]=p):p=e[21];const y=g!=="collapsed"||h;let k;e[22]!==y||e[23]!==c?(k=s.jsx(ps,{side:"right",align:"center",hidden:y,...c}),e[22]=y,e[23]=c,e[24]=k):k=e[24];let v;return e[25]!==p||e[26]!==k?(v=s.jsxs(hs,{children:[p,k]}),e[25]=p,e[26]=k,e[27]=v):v=e[27],v}function mi(t){const e=z.c(11),{label:i,children:n,defaultExpanded:l}=t,o=l===void 0?!0:l,[r,a]=P.useState(o),{state:c}=Fe(),d=c==="collapsed";let f;e[0]!==r||e[1]!==d||e[2]!==i?(f=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(ve,{children:s.jsx(xe,{children:s.jsxs(Oe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!r),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(mt,{size:12,className:I("text-muted-foreground transition-transform duration-200",!r&&"-rotate-90")})]})})}),e[0]=r,e[1]=d,e[2]=i,e[3]=f):f=e[3];let u;e[4]!==n||e[5]!==r||e[6]!==d?(u=(d||r)&&s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=r,e[6]=d,e[7]=u):u=e[7];let m;return e[8]!==f||e[9]!==u?(m=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[f,u]}),e[8]=f,e[9]=u,e[10]=m):m=e[10],m}function yt(t){const e=z.c(22),{item:i}=t,n=i.key,l=i.onClick,o=i.isActive,r=i.label,a=i.isExternal&&"group/external";let c;e[0]!==a?(c=I(a),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==i.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[2]=i.icon,e[3]=d):d=e[3];const f=i.isExternal&&"group-hover/external:underline underline-offset-2";let u;e[4]!==f?(u=I("truncate group-data-[collapsible=icon]:hidden",f),e[4]=f,e[5]=u):u=e[5];let m;e[6]!==i.label||e[7]!==u?(m=s.jsx("span",{className:u,children:i.label}),e[6]=i.label,e[7]=u,e[8]=m):m=e[8];let x;e[9]!==i.isExternal?(x=i.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[9]=i.isExternal,e[10]=x):x=e[10];let h;e[11]!==i.isActive||e[12]!==i.label||e[13]!==i.onClick||e[14]!==m||e[15]!==x||e[16]!==c||e[17]!==d?(h=s.jsxs(Oe,{onClick:l,isActive:o,tooltip:r,className:c,children:[d,m,x]}),e[11]=i.isActive,e[12]=i.label,e[13]=i.onClick,e[14]=m,e[15]=x,e[16]=c,e[17]=d,e[18]=h):h=e[18];let g;return e[19]!==i.key||e[20]!==h?(g=s.jsx(xe,{children:h},n),e[19]=i.key,e[20]=h,e[21]=g):g=e[21],g}function fi(t){const e=z.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(ai,{className:"my-2"}),e[0]=n):n=e[0],n}case"spacer":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1"}),e[1]=n):n=e[1],n}case"group":{const n=i.group.label,l=i.group.defaultExpanded;let o;e[2]!==i.group.items?(o=i.group.items.map(pi),e[2]=i.group.items,e[3]=o):o=e[3];let r;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==o?(r=s.jsx(mi,{label:n,defaultExpanded:l,children:o}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=o,e[7]=r):r=e[7],r}case"items":{let n;e[8]!==i.items?(n=i.items.map(ui),e[8]=i.items,e[9]=n):n=e[9];let l;return e[10]!==n?(l=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=l):l=e[11],l}}}function ui(t){return s.jsx(yt,{item:t},t.key)}function pi(t){return s.jsx(yt,{item:t},t.key)}function Nt(t){const e=z.c(14),{sections:i,header:n,footer:l,additionalContent:o,variant:r,collapsible:a,contentClassName:c}=t,d=r===void 0?"sidebar":r,f=a===void 0?"icon":a;let u;e[0]!==c?(u=I("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let m;e[2]!==i?(m=i.map(xi),e[2]=i,e[3]=m):m=e[3];let x;e[4]!==o||e[5]!==u||e[6]!==m?(x=s.jsxs(ci,{className:u,children:[m,o]}),e[4]=o,e[5]=u,e[6]=m,e[7]=x):x=e[7];let h;return e[8]!==f||e[9]!==l||e[10]!==n||e[11]!==x||e[12]!==d?(h=s.jsxs(li,{variant:d,collapsible:f,children:[n,x,l]}),e[8]=f,e[9]=l,e[10]=n,e[11]=x,e[12]=d,e[13]=h):h=e[13],h}function xi(t,e){return s.jsx(fi,{section:t},e)}Nt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,i)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(le,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function hi(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(le,{className:"h-8 w-full rounded-lg"}),s.jsx(le,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function gi(t){const e=z.c(12),{organizationId:i,currentProjectSlug:n,onSelect:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:r}=dt(i,o);let a,c;if(e[1]!==n||e[2]!==l||e[3]!==r){c=Symbol.for("react.early_return_sentinel");e:{const f=r?.filter(bi)??[];if(f.length===0){let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=m):m=e[6],c=m;break e}let u;e[7]!==n||e[8]!==l?(u=m=>{const x=n===m.slug,h=m.ui?.themeColor??"#3B82F6";return s.jsxs(ne,{className:I("gap-2.5",x&&"bg-accent"),onClick:()=>l(m.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:m.ui?.icon?void 0:{backgroundColor:h},children:m.ui?.icon?s.jsx("img",{src:m.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:m.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:m.name}),x&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},m.id)},e[7]=n,e[8]=l,e[9]=u):u=e[9],a=f.map(u)}e[1]=n,e[2]=l,e[3]=r,e[4]=a,e[5]=c}else a=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==a?(d=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=d):d=e[11],d}function bi(t){return t.slug!==Q}function ji(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const i=Math.abs(e)%360;return{backgroundColor:`hsl(${i} 55% 70%)`,color:`hsl(${i} 55% 20%)`}}function qe(t){const e=z.c(96),{isCollapsed:i,onCreateProject:n}=t,l=i===void 0?!1:i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:r,project:a}=it(o),{data:c}=Se.useListOrganizations(),d=Ze(),f=c?.find(Y=>Y.slug===r),[u,m]=P.useState(!1),x=a===Q,{data:h}=ct(f?.id??"",x?"":a??"");let g;e[1]!==r?(g=(Y,Re)=>Y.slug===r?-1:Re.slug===r?1:Y.name.localeCompare(Re.name),e[1]=r,e[2]=g):g=e[2];const j=[...c??[]].sort(g);let _;e[3]!==d||e[4]!==r?(_=()=>{r&&d({to:"/$org/$project",params:{org:r,project:Q}})},e[3]=d,e[4]=r,e[5]=_):_=e[5];const b=_;let p;e[6]!==d||e[7]!==r?(p=Y=>{r&&d({to:"/$org/$project",params:{org:r,project:Y}})},e[6]=d,e[7]=r,e[8]=p):p=e[8];const y=p;let k;e[9]!==d?(k=Y=>{d({to:"/$org/$project",params:{org:Y,project:Q}})},e[9]=d,e[10]=k):k=e[10];const v=k;let N;e[11]!==n?(N=n?()=>n():void 0,e[11]=n,e[12]=N):N=e[12];const w=N;let $;e[13]!==d||e[14]!==r||e[15]!==a?($=()=>{if(!r||!a)return;const Y=a===Q;d({to:"/$org/$project",params:{org:r,project:a},search:Re=>({...Re,settings:Y?"org.general":`project:${a}:general`})})},e[13]=d,e[14]=r,e[15]=a,e[16]=$):$=e[16];const S=$,A=ut,O=l?"w-auto pr-1.5":"w-full";let T;e[17]!==O?(T=I("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",O),e[17]=O,e[18]=T):T=e[18];const U=x?s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:f?.logo?void 0:ji(f?.name??""),children:f?.logo?s.jsx("img",{src:f.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(f?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:h?.ui?.icon?void 0:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold text-white",l?"text-xs":"text-lg"),children:(h?.name??a??"?").charAt(0).toUpperCase()})});let R;e[19]!==f?.name||e[20]!==h?.name||e[21]!==l||e[22]!==x||e[23]!==a?(R=!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:f?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:x?"Studio":h?.name??a??""})]}),s.jsx(Ut,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=f?.name,e[20]=h?.name,e[21]=l,e[22]=x,e[23]=a,e[24]=R):R=e[24];let E;e[25]!==T||e[26]!==U||e[27]!==R?(E=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{type:"button",className:T,children:[U,R]})}),e[25]=T,e[26]=U,e[27]=R,e[28]=E):E=e[28];const L=ft,H="start",B="bottom",M="w-64 flex flex-col gap-0.5",W=vi,me=x&&"bg-accent";let J;e[29]!==me?(J=I("gap-2.5",me),e[29]=me,e[30]=J):J=e[30];const oe=f?.logo??"",re=f?.name??"";let ee;e[31]!==oe||e[32]!==re?(ee=s.jsx(Ie,{url:oe,fallback:re,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),e[31]=oe,e[32]=re,e[33]=ee):ee=e[33];const te=f?.name;let F;e[34]!==te?(F=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",te]}),e[34]=te,e[35]=F):F=e[35];let Z;e[36]!==x?(Z=x&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=x,e[37]=Z):Z=e[37];let K;e[38]!==b||e[39]!==J||e[40]!==ee||e[41]!==F||e[42]!==Z?(K=s.jsxs(ne,{className:J,onClick:b,children:[ee,F,Z]}),e[38]=b,e[39]=J,e[40]=ee,e[41]=F,e[42]=Z,e[43]=K):K=e[43];let ae;e[44]===Symbol.for("react.memo_cache_sentinel")?(ae=s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),e[44]=ae):ae=e[44];let V;e[45]!==f||e[46]!==y||e[47]!==r||e[48]!==a?(V=f&&s.jsx(P.Suspense,{fallback:s.jsx(hi,{}),children:s.jsx(gi,{organizationId:f.id,currentProjectSlug:a,orgSlug:r??"",onSelect:y})}),e[45]=f,e[46]=y,e[47]=r,e[48]=a,e[49]=V):V=e[49];let q;e[50]!==w?(q=w&&s.jsxs(ne,{className:"gap-2.5",onClick:w,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=w,e[51]=q):q=e[51];let D;e[52]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(He,{}),e[52]=D):D=e[52];const X=bs;let ce;e[53]===Symbol.for("react.memo_cache_sentinel")?(ce=s.jsxs(js,{className:"gap-2.5",children:[s.jsx(vs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=ce):ce=e[53];const se=gs,fe="w-48 flex flex-col gap-0.5";let he;e[54]!==v||e[55]!==r?(he=Y=>s.jsxs(ne,{className:I("gap-2.5",Y.slug===r&&"bg-accent"),onClick:()=>v(Y.slug),children:[s.jsx(Ie,{url:Y.logo??"",fallback:Y.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:Y.name}),Y.slug===r&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},Y.id),e[54]=v,e[55]=r,e[56]=he):he=e[56];const Te=j.map(he);let ge;e[57]===Symbol.for("react.memo_cache_sentinel")?(ge=s.jsx(He,{}),e[57]=ge):ge=e[57];let C;e[58]!==m?(C=()=>m(!0),e[58]=m,e[59]=C):C=e[59];let G,de;e[60]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),de=s.jsx("span",{children:"Create organization"}),e[60]=G,e[61]=de):(G=e[60],de=e[61]);let ue;e[62]!==C?(ue=s.jsxs(ne,{className:"gap-2.5",onClick:C,children:[G,de]}),e[62]=C,e[63]=ue):ue=e[63];let ye;e[64]!==se||e[65]!==Te||e[66]!==ue?(ye=s.jsxs(se,{className:fe,children:[Te,ge,ue]}),e[64]=se,e[65]=Te,e[66]=ue,e[67]=ye):ye=e[67];let pe;e[68]!==X||e[69]!==ce||e[70]!==ye?(pe=s.jsxs(X,{children:[ce,ye]}),e[68]=X,e[69]=ce,e[70]=ye,e[71]=pe):pe=e[71];let be,Me;e[72]===Symbol.for("react.memo_cache_sentinel")?(be=s.jsx(Ue,{size:14,className:"shrink-0 text-muted-foreground"}),Me=s.jsx("span",{children:"Settings"}),e[72]=be,e[73]=Me):(be=e[72],Me=e[73]);let _e;e[74]!==S?(_e=s.jsxs(ne,{className:"gap-2.5",onClick:S,children:[be,Me]}),e[74]=S,e[75]=_e):_e=e[75];let ke;e[76]!==L||e[77]!==W||e[78]!==K||e[79]!==ae||e[80]!==V||e[81]!==q||e[82]!==D||e[83]!==pe||e[84]!==_e?(ke=s.jsxs(L,{align:H,side:B,className:M,onCloseAutoFocus:W,children:[K,ae,V,q,D,pe,_e]}),e[76]=L,e[77]=W,e[78]=K,e[79]=ae,e[80]=V,e[81]=q,e[82]=D,e[83]=pe,e[84]=_e,e[85]=ke):ke=e[85];let Ce;e[86]!==A||e[87]!==E||e[88]!==ke?(Ce=s.jsxs(A,{children:[E,ke]}),e[86]=A,e[87]=E,e[88]=ke,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==m?(we=s.jsx(Ns,{open:u,onOpenChange:m}),e[90]=u,e[91]=m,e[92]=we):we=e[92];let De;return e[93]!==Ce||e[94]!==we?(De=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=De):De=e[95],De}function vi(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(le,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(le,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ye(t){const e=z.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:l}=Fe(),o=n==="collapsed";let r;return e[0]!==o||e[1]!==i||e[2]!==l?(r=s.jsx(vt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ve,{children:s.jsx(xe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:i}),s.jsx(Oe,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(Oe,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=i,e[2]=l,e[3]=r):r=e[3],r}Ye.Skeleton=function(){return s.jsx(vt,{className:"px-3",children:s.jsx(ve,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(le,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(le,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(le,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function yi(t){const e=z.c(50),{user:i,userImage:n}=t,{open:l}=at(),[o,r]=P.useState(!1);let a;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(a=()=>{const W=`ID: ${i.id}
2
+ Name: ${i.name||"N/A"}
3
+ Email: ${i.email}`;navigator.clipboard.writeText(W),r(!0),Ne.success("User info copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=a):a=e[3];const c=a,d=i.name||i.email||"U";let f;e[4]!==d||e[5]!==n?(f=s.jsx(Ie,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=f):f=e[6];const u=i.name||"User";let m;e[7]!==u?(m=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=m):m=e[8];let x;e[9]!==f||e[10]!==m?(x=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[f,m]})}),e[9]=f,e[10]=m,e[11]=x):x=e[11];const h=i.name||i.email||"U";let g;e[12]!==h||e[13]!==n?(g=s.jsx(Ie,{url:n,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=n,e[14]=g):g=e[14];const j=i.name||"User";let _;e[15]!==j?(_=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=_):_=e[16];let b;e[17]!==i.email?(b=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i.email}),e[17]=i.email,e[18]=b):b=e[18];let p;e[19]!==_||e[20]!==b?(p=s.jsxs("div",{className:"flex-1 min-w-0",children:[_,b]}),e[19]=_,e[20]=b,e[21]=p):p=e[21];let y;e[22]!==o?(y=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?s.jsx(Pe,{size:14,className:"text-green-600"}):s.jsx(Ss,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=y):y=e[23];let k;e[24]!==c||e[25]!==p||e[26]!==y||e[27]!==g?(k=s.jsxs(ne,{onClick:c,className:"gap-2.5 group",children:[g,p,y]}),e[24]=c,e[25]=p,e[26]=y,e[27]=g,e[28]=k):k=e[28];let v;e[29]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(He,{}),e[29]=v):v=e[29];let N;e[30]!==l?(N=()=>l("account.preferences"),e[30]=l,e[31]=N):N=e[31];let w,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ue,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=w,e[33]=$):(w=e[32],$=e[33]);let S;e[34]!==N?(S=s.jsxs(ne,{className:"gap-2.5",onClick:N,children:[w,$]}),e[34]=N,e[35]=S):S=e[35];let A;e[36]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ne,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(_s,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=A):A=e[36];let O;e[37]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(ne,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Cs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=O):O=e[37];let T;e[38]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(ne,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(zt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=T):T=e[38];let U;e[39]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(ne,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Je,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=U):U=e[39];let R,E;e[40]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ne,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ks,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),E=s.jsx(He,{}),e[40]=R,e[41]=E):(R=e[40],E=e[41]);let L;e[42]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsxs(ne,{className:"gap-2.5",onClick:Ni,children:[s.jsx(bt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=L):L=e[42];let H;e[43]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.175.1"]})}),e[43]=H):H=e[43];let B;e[44]!==k||e[45]!==S?(B=s.jsxs(ft,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Si,children:[k,v,S,A,O,T,U,R,E,L,H]}),e[44]=k,e[45]=S,e[46]=B):B=e[46];let M;return e[47]!==B||e[48]!==x?(M=s.jsxs(ut,{children:[x,B]}),e[47]=B,e[48]=x,e[49]=M):M=e[49],M}function Ni(){return Se.signOut()}function Si(t){return t.preventDefault()}function St(){const t=z.c(7),{data:e}=Se.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const i=e.user,n=i.name??void 0;let l;t[1]!==n||t[2]!==i?(l={...i,name:n},t[1]=n,t[2]=i,t[3]=l):l=t[3];const o=l,r=i.image;let a;return t[4]!==r||t[5]!==o?(a=s.jsx(yi,{user:o,userImage:r}),t[4]=r,t[5]=o,t[6]=a):a=t[6],a}function _i({invitation:t}){const[e,i]=P.useState(!1),[n,l]=P.useState(!1),o=Pt(),r=async()=>{i(!0);try{const c=await Se.organization.acceptInvitation({invitationId:t.id});if(c.error)Ne.error(c.error.message),i(!1);else{const d=await Se.organization.setActive({organizationId:t.organizationId});Ne.success("Invitation accepted!");const f=d?.data?.slug;window.location.href=f?`/${f}`:"/"}}catch{Ne.error("Failed to accept invitation"),i(!1)}},a=async()=>{l(!0);try{const c=await Se.organization.rejectInvitation({invitationId:t.id});c.error?(Ne.error(c.error.message),l(!1)):(Ne.success("Invitation declined"),o.invalidateQueries())}catch{Ne.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:r,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(Is,{size:14})})]})]})}function ki(){const t=P.useContext(It),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class Ci extends P.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}const wi="gateway-chip-period";function $i(){try{const t=localStorage.getItem(wi);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function zi(t,e){if(!e||e<=0)return"text-foreground/70";const i=t/e;return i<=.05?"text-destructive":i<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ii(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Pi(t){const e=z.c(42),{connectionId:i}=t,{open:n}=at(),{org:l}=ze();let o;e[0]!==i||e[1]!==l.id?(o={connectionId:i,orgId:l.id},e[0]=i,e[1]=l.id,e[2]=o):o=e[2];const r=Wt(o);let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a={},e[3]=a):a=e[3];let c;e[4]!==r?(c={client:r,toolName:"GATEWAY_USAGE",toolArguments:a,staleTime:6e4,select:Ai},e[4]=r,e[5]=c):c=e[5];const{data:d}=As(c),f=d?.billing.mode??"prepaid",u=d?.limit.total??null,m=d?.limit.remaining??0;let x;e[6]!==d?.usage?(x=d?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=d?.usage,e[7]=x):x=e[7];const h=x;let g,j,_,b,p,y,k;if(e[8]!==f||e[9]!==g||e[10]!==m||e[11]!==u||e[12]!==n||e[13]!==h){let w;if(f==="prepaid"){g="Credits";let S;e[21]!==m?(S=m.toFixed(2),e[21]=m,e[22]=S):S=e[22],j=`$${S}`,w=zi(m,u)}else if(u!=null&&u>0){const S=u-m;let A;e[23]!==u||e[24]!==S?(A=Math.round(S/u*100),e[23]=u,e[24]=S,e[25]=A):A=e[25];const O=Math.min(100,A);g="Usage",j=`${O}%`,w=Ii(O)}else{const S=$i(),A=S==="daily"?h.daily:S==="weekly"?h.weekly:h.monthly,O=S==="daily"?"/day":S==="weekly"?"/wk":"/mo";g="Usage";let T;e[26]!==A?(T=A.toFixed(2),e[26]=A,e[27]=T):T=e[27],j=`$${T}${O}`,w="text-foreground/70"}b="button",e[28]!==n?(p=()=>n("org.billing"),e[28]=n,e[29]=p):p=e[29],y="group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors";let $;e[30]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ys,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=$):$=e[30],e[31]!==g?(k=s.jsxs("div",{className:"flex items-center gap-1.5",children:[$,s.jsx("span",{className:"text-xs text-muted-foreground",children:g})]}),e[31]=g,e[32]=k):k=e[32],_=I("text-xs font-medium tabular-nums",w),e[8]=f,e[9]=g,e[10]=m,e[11]=u,e[12]=n,e[13]=h,e[14]=_,e[15]=b,e[16]=p,e[17]=y,e[18]=k,e[19]=g,e[20]=j}else _=e[14],b=e[15],p=e[16],y=e[17],k=e[18],g=e[19],j=e[20];let v;e[33]!==_||e[34]!==j?(v=s.jsx("span",{className:_,children:j}),e[33]=_,e[34]=j,e[35]=v):v=e[35];let N;return e[36]!==v||e[37]!==b||e[38]!==p||e[39]!==y||e[40]!==k?(N=s.jsxs("button",{type:b,onClick:p,className:y,children:[k,v]}),e[36]=v,e[37]=b,e[38]=p,e[39]=y,e[40]=k,e[41]=N):N=e[41],N}function Ai(t){return t.structuredContent}function Ei(){const t=z.c(4),e=Ps();let i;t[0]!==e?(i=e.find(Oi),t[0]=e,t[1]=i):i=t[1];const n=i;if(!n?.id)return null;let l;return t[2]!==n.id?(l=s.jsx(Pi,{connectionId:n.id}),t[2]=n.id,t[3]=l):l=t[3],l}function Oi(t){return Es(t,Os)}function Ti(){const t=z.c(13),e=ki();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ci,{children:s.jsx(P.Suspense,{fallback:null,children:s.jsx(Ei,{})})}),t[0]=i):i=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(St,{})}),t[1]=n):n=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx($s,{asChild:!0,children:s.jsx(Ge,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=l):l=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let r;t[5]!==o?(r=s.jsxs("div",{className:"relative",children:[l,o]}),t[5]=o,t[6]=r):r=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let c;t[8]!==e?(c=s.jsxs(ws,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Mi)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==r||t[11]!==c?(d=s.jsxs(ri,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(ve,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(zs,{children:[r,c]})})]})})})]}),t[10]=r,t[11]=c,t[12]=d):d=t[12],d}function Mi(t){return s.jsx(_i,{invitation:t},t.id)}function Di(t){const e=z.c(11),{project:i}=t,n=i.ui?.themeColor??"#60a5fa";if(i.ui?.icon){let c;return e[0]!==i.ui.icon?(c=s.jsx("img",{src:i.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=i.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==n?(l={backgroundColor:n},e[2]=n,e[3]=l):l=e[3];let o;e[4]!==i.name?(o=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=o):o=e[5];let r;e[6]!==o?(r=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=r):r=e[7];let a;return e[8]!==l||e[9]!==r?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:r}),e[8]=l,e[9]=r,e[10]=a):a=e[10],a}function Ri(t){const e=z.c(14),{project:i}=t,n=Ze(),{org:l}=ze();let o;e[0]!==n||e[1]!==l.slug||e[2]!==i.slug?(o=()=>{n({to:"/$org/$project",params:{org:l.slug,project:i.slug}})},e[0]=n,e[1]=l.slug,e[2]=i.slug,e[3]=o):o=e[3];let r;e[4]!==i?(r=s.jsx(Di,{project:i}),e[4]=i,e[5]=r):r=e[5];let a;e[6]!==i.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=a):a=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Rs,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=c):c=e[8];let d;return e[9]!==i.name||e[10]!==o||e[11]!==r||e[12]!==a?(d=s.jsx(xe,{children:s.jsxs(Oe,{onClick:o,tooltip:i.name,children:[r,a,c]})}),e[9]=i.name,e[10]=o,e[11]=r,e[12]=a,e[13]=d):d=e[13],d}function Li(){const t=z.c(55),{org:e}=ze(),{data:i,isLoading:n}=dt(e.id),[l,o]=P.useState(!0),[r,a]=P.useState(!1);let c,d,f,u,m,x,h,g,j,_,b,p,y;if(t[0]!==n||t[1]!==l||t[2]!==i){y=Symbol.for("react.early_return_sentinel");e:{const T=i?.filter(Hi)??[];if(n){let M;t[16]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(le,{className:"h-4 w-4 rounded"}),s.jsx(le,{className:"h-4 flex-1"})]})}),t[16]=M):M=t[16];let W;t[17]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(ve,{className:"gap-0.5",children:[M,s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(le,{className:"h-4 w-4 rounded"}),s.jsx(le,{className:"h-4 flex-1"})]})})]})})}),t[17]=W):W=t[17],y=W;break e}p="group/projects-section mt-2",m=Ts,_=l,b=o,u=Ae,j="py-0 px-0",f=Ee,d=ve,h="gap-0.5";let U;t[18]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=U):U=t[18];const R=!l&&"-rotate-90";let E;t[19]!==R?(E=I("text-muted-foreground shrink-0 transition-transform duration-200",R),t[19]=R,t[20]=E):E=t[20];let L;t[21]!==E?(L=s.jsx(Ms,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[U,s.jsx(mt,{size:12,className:E})]})}),t[21]=E,t[22]=L):L=t[22];let H;t[23]===Symbol.for("react.memo_cache_sentinel")?(H=()=>a(!0),t[23]=H):H=t[23];let B;t[24]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("button",{type:"button",onClick:H,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=B):B=t[24],t[25]!==L?(g=s.jsx(xe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[L,B]})}),t[25]=L,t[26]=g):g=t[26],c=Ds,x=T.length===0?s.jsx(xe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):T.map(Ui)}t[0]=n,t[1]=l,t[2]=i,t[3]=c,t[4]=d,t[5]=f,t[6]=u,t[7]=m,t[8]=x,t[9]=h,t[10]=g,t[11]=j,t[12]=_,t[13]=b,t[14]=p,t[15]=y}else c=t[3],d=t[4],f=t[5],u=t[6],m=t[7],x=t[8],h=t[9],g=t[10],j=t[11],_=t[12],b=t[13],p=t[14],y=t[15];if(y!==Symbol.for("react.early_return_sentinel"))return y;let k;t[27]!==c||t[28]!==x?(k=s.jsx(c,{children:x}),t[27]=c,t[28]=x,t[29]=k):k=t[29];let v;t[30]!==d||t[31]!==h||t[32]!==g||t[33]!==k?(v=s.jsxs(d,{className:h,children:[g,k]}),t[30]=d,t[31]=h,t[32]=g,t[33]=k,t[34]=v):v=t[34];let N;t[35]!==f||t[36]!==v?(N=s.jsx(f,{children:v}),t[35]=f,t[36]=v,t[37]=N):N=t[37];let w;t[38]!==u||t[39]!==N||t[40]!==j?(w=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=w):w=t[41];let $;t[42]!==m||t[43]!==w||t[44]!==_||t[45]!==b?($=s.jsx(m,{open:_,onOpenChange:b,children:w}),t[42]=m,t[43]=w,t[44]=_,t[45]=b,t[46]=$):$=t[46];let S;t[47]!==$||t[48]!==p?(S=s.jsx("div",{className:p,children:$}),t[47]=$,t[48]=p,t[49]=S):S=t[49];let A;t[50]!==r?(A=s.jsx(rt,{open:r,onOpenChange:a}),t[50]=r,t[51]=A):A=t[51];let O;return t[52]!==S||t[53]!==A?(O=s.jsxs(s.Fragment,{children:[S,A]}),t[52]=S,t[53]=A,t[54]=O):O=t[54],O}function Ui(t){return s.jsx(Ri,{project:t},t.id)}function Hi(t){return t.slug!==Q}function Bi(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(P.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(le,{className:"h-4 w-4 rounded"}),s.jsx(le,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Li,{})}),t[0]=e):e=t[0],e}function Fi(t){const e=z.c(12),{onCreateProject:i}=t,n=qs(),{locator:l}=ze();let o;e[0]!==l?(o=We.isOrgAdminProject(l),e[0]=l,e[1]=o):o=e[1];const r=o;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ye.Skeleton,{}),e[2]=a):a=e[2];let c;e[3]!==i?(c=s.jsx(P.Suspense,{fallback:a,children:s.jsx(Ye,{onCreateProject:i})}),e[3]=i,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ti,{}),e[5]=d):d=e[5];let f;e[6]!==r?(f=r?s.jsx(Qe,{children:s.jsx(P.Suspense,{fallback:null,children:s.jsx(Bi,{})})}):null,e[6]=r,e[7]=f):f=e[7];let u;return e[8]!==n||e[9]!==c||e[10]!==f?(u=s.jsx(Nt,{sections:n,header:c,footer:d,additionalContent:f}),e[8]=n,e[9]=c,e[10]=f,e[11]=u):u=e[11],u}function Wi(){const t=z.c(5),i=Xe().location.href;let n;t[0]!==i?(n=i==="/login"||i.startsWith("/login?"),t[0]=i,t[1]=n):n=t[1];const l=n;let o;if(t[2]!==i||t[3]!==l){const r=l?{}:{next:i};o=s.jsx(Tt,{to:"/login",search:r,replace:!0}),t[2]=i,t[3]=l,t[4]=o}else o=t[4];return o}function Gi(t){const e=z.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(At,{children:s.jsx(nt,{})}),e[0]=n):n=e[0];let l;e[1]!==i?(l=s.jsx(Et,{children:i}),e[1]=i,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ot,{children:s.jsx(Wi,{})}),e[3]=o):o=e[3];let r;return e[4]!==l?(r=s.jsxs(s.Fragment,{children:[n,l,o]}),e[4]=l,e[5]=r):r=e[5],r}function Ki(t){const e=z.c(10),{children:i,className:n}=t,[,l]=P.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Be.decoChatPanelWidth(),e[0]=o):o=e[0];const[r,a]=et(o,30);let c;e[1]!==a?(c=m=>l(()=>a(m)),e[1]=a,e[2]=c):c=e[2];const d=c;let f;e[3]!==n?(f=I("min-w-0",n),e[3]=n,e[4]=f):f=e[4];let u;return e[5]!==r||e[6]!==i||e[7]!==d||e[8]!==f?(u=s.jsx(xt,{defaultSize:r,minSize:20,className:f,onResize:d,children:i}),e[5]=r,e[6]=i,e[7]=d,e[8]=f,e[9]=u):u=e[9],u}function Vi(t){const e=z.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Be.sidebarOpen(),e[0]=n):n=e[0];const[l,o]=et(n,!0);let r;return e[1]!==i||e[2]!==o||e[3]!==l?(r=s.jsx(ti,{open:l,onOpenChange:o,children:i}),e[1]=i,e[2]=o,e[3]=l,e[4]=r):r=e[4],r}function qi(t){const e=z.c(23),{isHomeRoute:i,onCreateProject:n}=t,[l]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Be.decoChatPanelWidth(),e[0]=o):o=e[0];const[r]=et(o,30),a=`${r}cqi`;let c;e[1]!==a?(c={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":a},e[1]=a,e[2]=c):c=e[2];const d=c;let f;e[3]!==n?(f=s.jsx(Fi,{onCreateProject:n}),e[3]=n,e[4]=f):f=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",containerType:"inline-size"},e[5]=u):u=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m={overflow:"visible"},e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x={overflow:"visible"},e[7]=x):x=e[7];const h=l&&"rounded-tr-[0.75rem] border-r";let g;e[8]!==h?(g=I("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",h),e[8]=h,e[9]=g):g=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(lt,{})}),e[10]=j):j=e[10];let _;e[11]!==g?(_=s.jsx(xt,{className:"min-w-0 flex flex-col",style:x,children:s.jsx("div",{className:g,children:j})}),e[11]=g,e[12]=_):_=e[12];let b;e[13]!==l||e[14]!==i?(b=!i&&s.jsxs(s.Fragment,{children:[s.jsx(Ls,{className:"bg-sidebar"}),s.jsx(Ki,{className:I("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Fs,{})})})})]}),e[13]=l,e[14]=i,e[15]=b):b=e[15];let p;e[16]!==_||e[17]!==b?(p=s.jsx(oi,{className:"pt-1.5",style:u,children:s.jsxs(Us,{direction:"horizontal",className:"h-full",style:m,children:[_,b]})}),e[16]=_,e[17]=b,e[18]=p):p=e[18];let y;return e[19]!==p||e[20]!==d||e[21]!==f?(y=s.jsxs(ni,{className:"flex-1 bg-sidebar",style:d,children:[f,p]}),e[19]=p,e[20]=d,e[21]=f,e[22]=y):y=e[22],y}function Yi(){const{org:t,project:e}=it({strict:!1}),i=Xe(),[n,l]=P.useState(!1),[o,r]=P.useState(!1);P.useEffect(()=>{const u=m=>{Ht(m)&&m.code==="KeyK"&&(m.preventDefault(),r(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const a=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,c=e??Q,{data:d}=Mt({queryKey:Dt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:u}=await Se.organization.setActive({organizationSlug:t});return u&&localStorage.setItem(Be.lastOrgSlug(),t),{org:u,project:{slug:c,isOrgAdmin:c===Q}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!d)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(St,{})})}),s.jsx(lt,{})]});if(!d.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const f={...d,project:{...d.project,slug:c,isOrgAdmin:c===Q}};return s.jsxs(Rt,{...f,children:[s.jsx(Vi,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(ie.Provider,{children:s.jsx(qi,{isHomeRoute:a,onCreateProject:()=>l(!0)})})})}),s.jsx(rt,{open:n,onOpenChange:l}),s.jsx(Ws,{open:o,onOpenChange:r})]})}function Xl(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Gi,{children:s.jsx(P.Suspense,{fallback:s.jsx(nt,{}),children:s.jsx(Yi,{})})}),t[0]=e):e=t[0],e}export{Xl as default};
@@ -1 +1 @@
1
- import{c as E,u as q,j as n,x as F,K as v,r as k,w as _,B as O}from"./index-DO8fUd54.js";import{u as L}from"./useQuery-BeFLqBun.js";import{u as R}from"./useMutation-CNVq636e.js";import{S as V}from"./switch-DyxdcdWl.js";import{I as A}from"./input-BM9bdg-F.js";import{u as K,a as U}from"./constants-B9t4Nuz_.js";import{g as J}from"./types-BPYct9bF.js";import{u as w}from"./unwrap-tool-result-BYXdCQMg.js";function M(s){const e=E.c(33),{connection:t,pinnedViews:o,isSaving:u,onTogglePin:h,onLabelChange:f}=s;if(t.uiTools.length===0)return null;let j;e[0]!==t.id||e[1]!==o?(j=x=>o.some(c=>c.connectionId===t.id&&c.toolName===x),e[0]=t.id,e[1]=o,e[2]=j):j=e[2];const N=j;let g;e[3]!==t.icon||e[4]!==t.title?(g=t.icon?n.jsx("img",{src:t.icon,alt:"",className:"size-4 shrink-0 rounded"}):n.jsx("div",{className:"size-4 shrink-0 rounded bg-muted flex items-center justify-center",children:n.jsx("span",{className:"text-[8px] font-medium text-muted-foreground",children:t.title.charAt(0).toUpperCase()})}),e[3]=t.icon,e[4]=t.title,e[5]=g):g=e[5];let p;e[6]!==t.title?(p=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.title}),e[6]=t.title,e[7]=p):p=e[7];let l;e[8]!==g||e[9]!==p?(l=n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g,p]}),e[8]=g,e[9]=p,e[10]=l):l=e[10];let d;if(e[11]!==t.icon||e[12]!==t.id||e[13]!==t.uiTools||e[14]!==N||e[15]!==u||e[16]!==f||e[17]!==h||e[18]!==o){let x;e[20]!==t.icon||e[21]!==t.id||e[22]!==N||e[23]!==u||e[24]!==f||e[25]!==h||e[26]!==o?(x=c=>{const P=N(c.name),I=o.find(S=>S.connectionId===t.id&&S.toolName===c.name);return n.jsxs("div",{className:"flex flex-col border-b border-border last:border-0",children:[n.jsxs("div",{className:"flex items-center justify-between gap-6 py-3 cursor-pointer",onClick:()=>h(t.id,c.name,t.icon),children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:c.name}),c.description&&n.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.description})]}),n.jsx("div",{onClick:$,className:"shrink-0",children:n.jsx(V,{checked:P,onCheckedChange:()=>h(t.id,c.name,t.icon),disabled:u})})]}),P&&I&&n.jsxs("div",{className:"pb-3 pl-0 flex items-center gap-3",onClick:Q,children:[n.jsx("label",{className:"text-xs text-muted-foreground w-12 shrink-0",children:"Label"}),n.jsx(A,{value:I.label,onChange:S=>f(t.id,c.name,S.target.value),className:"h-8 text-sm w-56",disabled:u})]})]},c.name)},e[20]=t.icon,e[21]=t.id,e[22]=N,e[23]=u,e[24]=f,e[25]=h,e[26]=o,e[27]=x):x=e[27],d=t.uiTools.map(x),e[11]=t.icon,e[12]=t.id,e[13]=t.uiTools,e[14]=N,e[15]=u,e[16]=f,e[17]=h,e[18]=o,e[19]=d}else d=e[19];let m;e[28]!==d?(m=n.jsx("div",{className:"flex flex-col",children:d}),e[28]=d,e[29]=m):m=e[29];let C;return e[30]!==l||e[31]!==m?(C=n.jsxs("div",{children:[l,m]}),e[30]=l,e[31]=m,e[32]=C):C=e[32],C}function Q(s){return s.stopPropagation()}function $(s){return s.stopPropagation()}function z(){const{org:s,project:e}=q(),t=K({connectionId:U,orgId:s.id}),o=F(),u=e.id??"",{data:h}=L({queryKey:v.projectConnections(u),enabled:!!e.id,queryFn:async()=>{const i=await t.callTool({name:"PROJECT_CONNECTION_LIST",arguments:{projectId:u}});return w(i)}}),f=h?.connections??[],j=f.map(i=>i.id).sort(),{data:N}=L({queryKey:v.projectConnectionDetails(u,j),enabled:j.length>0,queryFn:async()=>await Promise.all(f.map(async a=>{try{const y=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:a.id}}),{item:T}=w(y),r=(T?.tools??[]).filter(b=>!!J(b._meta)).map(b=>({name:b.name,description:b.description}));return{id:a.id,title:a.title,icon:a.icon,uiTools:r}}catch{return{id:a.id,title:a.title,icon:a.icon,uiTools:[]}}}))}),g=N??[],p=e.ui?.pinnedViews??[],[l,d]=k.useState(p),[m,C]=k.useState(!1),x=JSON.stringify(l)!==JSON.stringify(p),c=(i,a,y)=>{const T=l.some(r=>r.connectionId===i&&r.toolName===a);d(T?r=>r.filter(b=>!(b.connectionId===i&&b.toolName===a)):r=>[...r,{connectionId:i,toolName:a,label:a,icon:y}])},P=(i,a,y)=>{d(T=>T.map(r=>r.connectionId===i&&r.toolName===a?{...r,label:y}:r))},I=R({mutationFn:async()=>{const i=await t.callTool({name:"PROJECT_PINNED_VIEWS_UPDATE",arguments:{projectId:e.id,pinnedViews:l}});w(i)},onSuccess:()=>{o.invalidateQueries({queryKey:v.project(s.id,e.slug)}),_.success("Sidebar updated")},onError:i=>{_.error("Failed to update sidebar: "+(i instanceof Error?i.message:"Unknown error"))},onSettled:()=>C(!1)}),S=()=>{C(!0),I.mutate()},D=()=>{d(p)};return f.length===0?n.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No connections associated with this project. Add connections in the Dependencies section first."}):n.jsxs("div",{className:"space-y-6",children:[g.map(i=>n.jsx(M,{connection:i,pinnedViews:l,isSaving:m,onTogglePin:c,onLabelChange:P},i.id)),n.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[n.jsx(O,{variant:"outline",onClick:D,disabled:!x||m,children:"Cancel"}),n.jsx(O,{onClick:S,disabled:!x||m,children:m?"Saving...":"Save Changes"})]})]})}function B(){const s=E.c(3),{project:e}=q();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsxs("div",{children:[n.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Sidebar"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Pin interactive tools from your dependencies to the project sidebar for quick access."})]}),s[0]=t):t=s[0];let o;return s[1]!==e.id?(o=n.jsxs("div",{className:"flex flex-col gap-6",children:[t,n.jsx(z,{},e.id)]}),s[1]=e.id,s[2]=o):o=s[2],o}function ne(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),s[0]=e):e=s[0],e}export{ne as default};
1
+ import{c as E,u as q,j as n,x as F,K as v,r as k,w as _,B as O}from"./index-DsOJvxnb.js";import{u as L}from"./useQuery-D2ShO4od.js";import{u as R}from"./useMutation-B_cFG709.js";import{S as V}from"./switch-BQjzAGvm.js";import{I as A}from"./input-CUT8DBv1.js";import{u as K,a as U}from"./constants-XtX-WKGm.js";import{g as J}from"./types-B3niHy47.js";import{u as w}from"./unwrap-tool-result-BYXdCQMg.js";function M(s){const e=E.c(33),{connection:t,pinnedViews:o,isSaving:u,onTogglePin:h,onLabelChange:f}=s;if(t.uiTools.length===0)return null;let j;e[0]!==t.id||e[1]!==o?(j=x=>o.some(c=>c.connectionId===t.id&&c.toolName===x),e[0]=t.id,e[1]=o,e[2]=j):j=e[2];const N=j;let g;e[3]!==t.icon||e[4]!==t.title?(g=t.icon?n.jsx("img",{src:t.icon,alt:"",className:"size-4 shrink-0 rounded"}):n.jsx("div",{className:"size-4 shrink-0 rounded bg-muted flex items-center justify-center",children:n.jsx("span",{className:"text-[8px] font-medium text-muted-foreground",children:t.title.charAt(0).toUpperCase()})}),e[3]=t.icon,e[4]=t.title,e[5]=g):g=e[5];let p;e[6]!==t.title?(p=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.title}),e[6]=t.title,e[7]=p):p=e[7];let l;e[8]!==g||e[9]!==p?(l=n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g,p]}),e[8]=g,e[9]=p,e[10]=l):l=e[10];let d;if(e[11]!==t.icon||e[12]!==t.id||e[13]!==t.uiTools||e[14]!==N||e[15]!==u||e[16]!==f||e[17]!==h||e[18]!==o){let x;e[20]!==t.icon||e[21]!==t.id||e[22]!==N||e[23]!==u||e[24]!==f||e[25]!==h||e[26]!==o?(x=c=>{const P=N(c.name),I=o.find(S=>S.connectionId===t.id&&S.toolName===c.name);return n.jsxs("div",{className:"flex flex-col border-b border-border last:border-0",children:[n.jsxs("div",{className:"flex items-center justify-between gap-6 py-3 cursor-pointer",onClick:()=>h(t.id,c.name,t.icon),children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:c.name}),c.description&&n.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.description})]}),n.jsx("div",{onClick:$,className:"shrink-0",children:n.jsx(V,{checked:P,onCheckedChange:()=>h(t.id,c.name,t.icon),disabled:u})})]}),P&&I&&n.jsxs("div",{className:"pb-3 pl-0 flex items-center gap-3",onClick:Q,children:[n.jsx("label",{className:"text-xs text-muted-foreground w-12 shrink-0",children:"Label"}),n.jsx(A,{value:I.label,onChange:S=>f(t.id,c.name,S.target.value),className:"h-8 text-sm w-56",disabled:u})]})]},c.name)},e[20]=t.icon,e[21]=t.id,e[22]=N,e[23]=u,e[24]=f,e[25]=h,e[26]=o,e[27]=x):x=e[27],d=t.uiTools.map(x),e[11]=t.icon,e[12]=t.id,e[13]=t.uiTools,e[14]=N,e[15]=u,e[16]=f,e[17]=h,e[18]=o,e[19]=d}else d=e[19];let m;e[28]!==d?(m=n.jsx("div",{className:"flex flex-col",children:d}),e[28]=d,e[29]=m):m=e[29];let C;return e[30]!==l||e[31]!==m?(C=n.jsxs("div",{children:[l,m]}),e[30]=l,e[31]=m,e[32]=C):C=e[32],C}function Q(s){return s.stopPropagation()}function $(s){return s.stopPropagation()}function z(){const{org:s,project:e}=q(),t=K({connectionId:U,orgId:s.id}),o=F(),u=e.id??"",{data:h}=L({queryKey:v.projectConnections(u),enabled:!!e.id,queryFn:async()=>{const i=await t.callTool({name:"PROJECT_CONNECTION_LIST",arguments:{projectId:u}});return w(i)}}),f=h?.connections??[],j=f.map(i=>i.id).sort(),{data:N}=L({queryKey:v.projectConnectionDetails(u,j),enabled:j.length>0,queryFn:async()=>await Promise.all(f.map(async a=>{try{const y=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:a.id}}),{item:T}=w(y),r=(T?.tools??[]).filter(b=>!!J(b._meta)).map(b=>({name:b.name,description:b.description}));return{id:a.id,title:a.title,icon:a.icon,uiTools:r}}catch{return{id:a.id,title:a.title,icon:a.icon,uiTools:[]}}}))}),g=N??[],p=e.ui?.pinnedViews??[],[l,d]=k.useState(p),[m,C]=k.useState(!1),x=JSON.stringify(l)!==JSON.stringify(p),c=(i,a,y)=>{const T=l.some(r=>r.connectionId===i&&r.toolName===a);d(T?r=>r.filter(b=>!(b.connectionId===i&&b.toolName===a)):r=>[...r,{connectionId:i,toolName:a,label:a,icon:y}])},P=(i,a,y)=>{d(T=>T.map(r=>r.connectionId===i&&r.toolName===a?{...r,label:y}:r))},I=R({mutationFn:async()=>{const i=await t.callTool({name:"PROJECT_PINNED_VIEWS_UPDATE",arguments:{projectId:e.id,pinnedViews:l}});w(i)},onSuccess:()=>{o.invalidateQueries({queryKey:v.project(s.id,e.slug)}),_.success("Sidebar updated")},onError:i=>{_.error("Failed to update sidebar: "+(i instanceof Error?i.message:"Unknown error"))},onSettled:()=>C(!1)}),S=()=>{C(!0),I.mutate()},D=()=>{d(p)};return f.length===0?n.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No connections associated with this project. Add connections in the Dependencies section first."}):n.jsxs("div",{className:"space-y-6",children:[g.map(i=>n.jsx(M,{connection:i,pinnedViews:l,isSaving:m,onTogglePin:c,onLabelChange:P},i.id)),n.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[n.jsx(O,{variant:"outline",onClick:D,disabled:!x||m,children:"Cancel"}),n.jsx(O,{onClick:S,disabled:!x||m,children:m?"Saving...":"Save Changes"})]})]})}function B(){const s=E.c(3),{project:e}=q();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsxs("div",{children:[n.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Sidebar"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Pin interactive tools from your dependencies to the project sidebar for quick access."})]}),s[0]=t):t=s[0];let o;return s[1]!==e.id?(o=n.jsxs("div",{className:"flex flex-col gap-6",children:[t,n.jsx(z,{},e.id)]}),s[1]=e.id,s[2]=o):o=s[2],o}function ne(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),s[0]=e):e=s[0],e}export{ne as default};
@@ -1 +1 @@
1
- import{c as n,z as c,j as i}from"./index-DO8fUd54.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
1
+ import{c as n,y as c,j as i}from"./index-DsOJvxnb.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
@@ -1 +1 @@
1
- import{c as C,z as d,T as m,j as a}from"./index-DO8fUd54.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
1
+ import{c as C,y as d,_ as m,j as a}from"./index-DsOJvxnb.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
@@ -1 +1 @@
1
- import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-DO8fUd54.js";function R(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[_,u]of Object.entries(n))u!=null&&r.set(_,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(g,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,project:N,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/$project/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(x,{children:o.jsx(g,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(R,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
1
+ import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-DsOJvxnb.js";function R(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[_,u]of Object.entries(n))u!=null&&r.set(_,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(g,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,project:N,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/$project/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(x,{children:o.jsx(g,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(R,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
@@ -1 +1 @@
1
- import{r as c,j as i,a8 as C,ak as y,ai as T,am as I,aq as M,ar as z,ap as H,c as q,z as g}from"./index-DO8fUd54.js";var m="Switch",[A]=H(m),[U,L]=A(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=z(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var $=E,D=R;function W(r){const e=q.c(9);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=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
1
+ import{r as c,j as i,a7 as C,ac as y,a6 as T,a9 as I,aq as M,ar as H,aa as q,c as z,y as g}from"./index-DsOJvxnb.js";var m="Switch",[A]=q(m),[U,L]=A(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var $=E,D=R;function W(r){const e=z.c(9);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=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
@@ -1 +1 @@
1
- import{c as r,z as i,j as c}from"./index-DO8fUd54.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{m as T,b as a,p as b,u as c,f as d,d as e};
1
+ import{c as r,y as i,j as c}from"./index-DsOJvxnb.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{d as T,b as a,p as b,m as c,f as d,u as e};
@@ -1 +1 @@
1
- import{r as p,ah as k,ai as M,j as d,a8 as f,av as P,ao as S,ap as F,an as y,al as V,am as h,aj as D,c as x,z as g}from"./index-DO8fUd54.js";var m="Tabs",[G]=F(m,[y]),w=y(),[L,T]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:o,orientation:s="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=k(i),[c,b]=M({prop:t,onChange:r,defaultProp:o??"",caller:m});return d.jsx(L,{scope:a,baseId:P(),value:c,onValueChange:b,orientation:s,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":s,...v,ref:e})})});C.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,o=T(N,a),s=w(a);return d.jsx(D,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":o.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...o}=n,s=T(I,a),i=w(a),l=E(s.baseId,t),v=$(s.baseId,t),u=t===s.value;return d.jsx(V,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(f.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...o,ref:e,onMouseDown:h(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?s.onValueChange(t):c.preventDefault()}),onKeyDown:h(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(t)}),onFocus:h(n.onFocus,()=>{const c=s.activationMode!=="manual";!u&&!r&&c&&s.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:o,...s}=n,i=T(R,a),l=E(i.baseId,t),v=$(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(S,{present:r||u,children:({present:b})=>d.jsx(f.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...s,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&o})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r===void 0?"pill":r;let s;e[4]!==a?(s=g("flex flex-col gap-2",a),e[4]=a,e[5]=s):s=e[5];let i;return e[6]!==t||e[7]!==s||e[8]!==o?(i=d.jsx(z,{"data-slot":"tabs","data-variant":o,className:s,...t}),e[6]=t,e[7]=s,e[8]=o,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r||"pill",s=o==="underline"?"flex h-[52px] items-center border-b border-border":o==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==s?(i=g(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r||"pill",s=o==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":o==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==s?(i=g(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let o;return e[5]!==t||e[6]!==r?(o=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=o):o=e[7],o}export{Q as T,J as a,U as b,O as c};
1
+ import{r as p,am as k,a6 as M,j as d,a7 as f,a8 as P,ab as S,aa as F,ap as y,ao as V,a9 as T,an as D,c as x,y as g}from"./index-DsOJvxnb.js";var m="Tabs",[G]=F(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:o,orientation:s="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=k(i),[c,b]=M({prop:t,onChange:r,defaultProp:o??"",caller:m});return d.jsx(L,{scope:a,baseId:P(),value:c,onValueChange:b,orientation:s,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":s,...v,ref:e})})});C.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,o=h(N,a),s=w(a);return d.jsx(D,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":o.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...o}=n,s=h(I,a),i=w(a),l=E(s.baseId,t),v=$(s.baseId,t),u=t===s.value;return d.jsx(V,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(f.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...o,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?s.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=s.activationMode!=="manual";!u&&!r&&c&&s.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:o,...s}=n,i=h(R,a),l=E(i.baseId,t),v=$(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(S,{present:r||u,children:({present:b})=>d.jsx(f.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...s,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&o})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r===void 0?"pill":r;let s;e[4]!==a?(s=g("flex flex-col gap-2",a),e[4]=a,e[5]=s):s=e[5];let i;return e[6]!==t||e[7]!==s||e[8]!==o?(i=d.jsx(z,{"data-slot":"tabs","data-variant":o,className:s,...t}),e[6]=t,e[7]=s,e[8]=o,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r||"pill",s=o==="underline"?"flex h-[52px] items-center border-b border-border":o==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==s?(i=g(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r||"pill",s=o==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":o==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==s?(i=g(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let o;return e[5]!==t||e[6]!==r?(o=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=o):o=e[7],o}export{Q as T,J as a,U as b,O as c};
@@ -1,4 +1,4 @@
1
- import{r as w,c as j,g as Hh,bQ as jh,x as At,u as Oe,K as je,w as He,f as du,bh as Xr,j as l,E as Cr,o as Nt,q as qh,t as $h,B as he,n as Tr,z as ee,_ as y0,af as Gh,ae as zh,cv as A0,bg as Vh,cw as N0,cx as Ue,cy as Zr,cz as v0,cA as Qr,cB as I0,cC as R0,cD as C0,cE as x0,v as k0,cF as w0,cG as O0,cH as L0,cI as D0,e as M0,O as P0,bP as Xe,cJ as Sr,ag as F0}from"./index-DO8fUd54.js";import{A as U0,d as pu,e as B0,f as ue,l as H0,g as j0,b as Wh,h as _t,i as q0,u as Yt,a as Kt}from"./context-CiizXS06.js";import{b as Xt,P as Zt,a as Qt}from"./popover-D1WG-emQ.js";import{S as le}from"./skeleton-CU7LuZGk.js";import{S as xr}from"./spinner-CpOteR2a.js";import{c as xe,a as ke,T as we,b as fu}from"./tooltip-BLTgyg7W.js";import{u as ut,a as mu,d as Yh,i as _r}from"./constants-B9t4Nuz_.js";import{u as $0,g as Kh,l as Ku}from"./use-mcp-prompts-D_02f3uO.js";import{c as Xh,b as G0,e as z0,a as Zh,D as Qh,f as V0}from"./dialog-CTFHRhvl.js";import{a as zl,F as kr,b as wr,c as W0,d as Or,f as Lr}from"./form-DPPO-3Tw.js";import{I as Jh}from"./input-BM9bdg-F.js";import{N as eb,R as tb,d as rb,f as ab,P as Vl,g as Y0,h as K0,S as X0,u as nb,j as Z0,i as ib,E as sb,e as Q0}from"./index-B3fUA0k0.js";import{s as J0,c as eT,a as tT,e as rT}from"./usage-B8rgFVXq.js";import{i as aT}from"./ArrowUp-tKKJvEkq.js";import{t as Wl}from"./ChevronDown-D0TXudCx.js";import{i as ob}from"./Edit01-Dpq6F4lk.js";import{i as nT}from"./Lock01-DqO9uSP7.js";import{t as lb}from"./Users03-BXwEsNFj.js";import{i as ub}from"./XCircle-DvUvQRq1.js";import{i as gu}from"./AlertCircle-5ZbLDi3s.js";import{i as iT}from"./X-CNbskBah.js";import{c as cb,S as db,d as pb,a as fb,b as mb}from"./select-RxUFw6pZ.js";import{u as gb,a as sT,i as oT,P as lT}from"./org-ai-providers-Cu3Y8hG7.js";import{i as hb}from"./ArrowLeft-D0Lalw4x.js";import{i as uT,t as bb,u as Eb}from"./use-copy-DPJ8nWWs.js";import{c as cT,b as dT}from"./tabs-XMAGaWgq.js";import{B as pT}from"./badge-C4uZcq7J.js";import{a as fT,i as Tb,b as mT,c as gT,C as hT}from"./collapsible-ttq3VbhQ.js";import{i as vt}from"./Check-CuWDIJeM.js";import{i as bT}from"./Code01-DZzuHJh9.js";import{C as ET}from"./checkbox-D2IG7klY.js";import{i as TT}from"./AlignLeft-D4ghzTQG.js";import{a as ST}from"./Image01-DBWShOGl.js";import{i as _T}from"./Key01-IptFTL_3.js";import{s as yT}from"./RefreshCcw01-DckyCUMd.js";import{i as hu}from"./SearchMd-Kap2MdR9.js";import{t as AT}from"./Settings01-CYUXeHtK.js";import{b as NT}from"./index-BqlWbrG0.js";import{b as bu,u as Sb,a as _b}from"./use-llm-IG8InXvX.js";import{g as Eu}from"./ai-providers-logos-W57Qm-EN.js";import{a as vT,V as yb}from"./select-virtual-mcp-DU8qBWLM.js";import{l as Xu,r as IT}from"./use-mcp-resources-BNoK6dDS.js";import{i as RT}from"./ChevronRight-UJRwW9xN.js";import{a as Dr}from"./Copy01-CPHBT83w.js";import{m as CT}from"./marked.esm-BaswSlok.js";import{f as Tu,p as Zu,a as Qu,n as Ju,h as Mr,s as Jt,o as Yl,b as xT,c as kT,d as ct,v as wT,e as Ab,g as ec,m as OT,i as LT,r as DT}from"./markdown-ZobUYaB1.js";import{c as MT}from"./content-blocks-o63cs2vh.js";import{M as PT}from"./mcp-app-renderer-CLfglV2_.js";import{g as Nb}from"./types-BPYct9bF.js";import{s as FT}from"./Eye-DDwMVcxZ.js";import{s as UT}from"./Globe02-Cn3qFriL.js";import{s as vb}from"./LayersTwo01-B5fVqAUB.js";import{s as BT}from"./XClose-B0FgAxIQ.js";import{u as HT}from"./index-B1uuY7UL.js";import{I as jT}from"./integration-icon-BrOdBipR.js";import{s as tc}from"./Clock-DKQ7EGj-.js";import{s as qT}from"./Trash01-DkXbOnbi.js";import{b as $T}from"./use-virtual-mcp-DoDJBE5n.js";import{b as Su,c as GT,a as zT,e as VT}from"./use-collections-C8rLdQUN.js";import{u as WT}from"./useSuspenseInfiniteQuery-CdVyznmA.js";import{u as YT}from"./use-local-storage-C3Bo802w.js";import{i as KT}from"./CheckCircle-wz1RfkCA.js";import{i as XT}from"./Loading01-WTkiPysv.js";const Ib=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));Ib.displayName="Activity";const Rb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));Rb.displayName="Atom02";const Cb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));Cb.displayName="Attachment01";const xb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));xb.displayName="ChevronSelectorVertical";const _u=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));_u.displayName="Edit02";const kb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));kb.displayName="Hourglass03";const wb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));wb.displayName="Lightbulb01";const Ob=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.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"}));Ob.displayName="Placeholder";const Lb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));Lb.displayName="ShieldTick";const Pr=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));Pr.displayName="Stars01";const Db=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));Db.displayName="Target04";const rc={}.hasOwnProperty;function Mb(t,e){const r=e||{};function a(n,...i){let s=a.invalid;const o=a.handlers;if(n&&rc.call(n,t)){const u=String(n[t]);s=rc.call(o,u)?o[u]:a.unknown}if(s)return s.call(this,n,...i)}return a.handlers=r.handlers||{},a.invalid=r.invalid,a.unknown=r.unknown,a}function ZT(t){const e=j.c(10);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const a=Hh(r);let n;if(e[1]!==a.collectionName||e[2]!==a.connectionId||e[3]!==a.itemId||e[4]!==t){n=[],t&&n.push(`### Selected Agent
1
+ import{r as w,c as j,g as Hh,bR as jh,x as At,u as Oe,K as je,w as He,f as du,aw as Xr,j as l,E as Cr,o as Nt,q as qh,t as $h,B as he,n as Tr,y as ee,aA as y0,ak as Gh,aj as zh,cv as A0,bk as Vh,cw as N0,cx as Ue,cy as Zr,cz as v0,cA as Qr,cB as I0,cC as R0,cD as C0,cE as x0,v as k0,cF as w0,cG as O0,cH as L0,cI as D0,e as M0,O as P0,bQ as Xe,cJ as Sr,al as F0}from"./index-DsOJvxnb.js";import{A as U0,d as pu,e as B0,f as ue,l as H0,g as j0,b as Wh,h as _t,i as q0,u as Yt,a as Kt}from"./context-CtrnP3HC.js";import{b as Xt,P as Zt,a as Qt}from"./popover-CF3EN_0o.js";import{S as le}from"./skeleton-DJFpR-1P.js";import{S as xr}from"./spinner-CqAVfcvO.js";import{c as xe,a as ke,T as we,b as fu}from"./tooltip-XyKE4lZa.js";import{u as ut,a as mu,d as Yh,i as _r}from"./constants-XtX-WKGm.js";import{u as $0,g as Kh,l as Ku}from"./use-mcp-prompts-C-XU_-dc.js";import{D as Xh,b as G0,e as z0,c as Zh,d as Qh,f as V0}from"./dialog-_XYw8lZC.js";import{a as zl,F as kr,b as wr,c as W0,d as Or,f as Lr}from"./form-BN7_f2uj.js";import{I as Jh}from"./input-CUT8DBv1.js";import{N as eb,R as tb,d as rb,f as ab,P as Vl,g as Y0,h as K0,S as X0,u as nb,j as Z0,i as ib,E as sb,e as Q0}from"./index-CuSj4QrF.js";import{s as J0,c as eT,a as tT,e as rT}from"./usage-B8rgFVXq.js";import{i as aT}from"./ArrowUp-C6Q-EpUw.js";import{t as Wl}from"./ChevronDown-BHMaRWRt.js";import{i as ob}from"./Edit01-Dw-lPBk-.js";import{i as nT}from"./Lock01-DJQX15kR.js";import{t as lb}from"./Users03-B7X28dbt.js";import{i as ub}from"./XCircle-DDLf4PgL.js";import{i as gu}from"./AlertCircle-De9oqjty.js";import{i as iT}from"./X-B_f76BPZ.js";import{c as cb,S as db,d as pb,a as fb,b as mb}from"./select-DRPG5csU.js";import{u as gb,a as sT,i as oT,P as lT}from"./org-ai-providers-BDwPbfg4.js";import{i as hb}from"./ArrowLeft-CPWCs_Od.js";import{i as uT,t as bb,u as Eb}from"./use-copy-dSR0w-bG.js";import{c as cT,b as dT}from"./tabs-CkPDQzeX.js";import{B as pT}from"./badge-CAg946Xk.js";import{a as fT,i as Tb,b as mT,c as gT,C as hT}from"./collapsible-CGr-TiAc.js";import{i as vt}from"./Check-BfKCyKXX.js";import{i as bT}from"./Code01-CoTQP8pZ.js";import{C as ET}from"./checkbox-DLsMmmhu.js";import{i as TT}from"./AlignLeft-BaG4OcCg.js";import{a as ST}from"./Image01-I9pAeT0N.js";import{i as _T}from"./Key01-DAjAUWfr.js";import{s as yT}from"./RefreshCcw01-uL9q48A4.js";import{i as hu}from"./SearchMd-BLeX5weN.js";import{t as AT}from"./Settings01-2AkYiqYr.js";import{a as NT}from"./Tool01-CjSIsyxE.js";import{b as bu,u as Sb,a as _b}from"./use-llm-BkLbMZPM.js";import{g as Eu}from"./ai-providers-logos-W57Qm-EN.js";import{a as vT,V as yb}from"./select-virtual-mcp-B8NgSgPI.js";import{l as Xu,r as IT}from"./use-mcp-resources-Bxkx1Ub1.js";import{i as RT}from"./ChevronRight-1g9z-Z5h.js";import{a as Dr}from"./Copy01-CIUDy0Hr.js";import{m as CT}from"./marked.esm-BaswSlok.js";import{f as Tu,p as Zu,a as Qu,n as Ju,h as Mr,s as Jt,o as Yl,b as xT,c as kT,d as ct,v as wT,e as Ab,g as ec,m as OT,i as LT,r as DT}from"./markdown-CKKBcXcE.js";import{c as MT}from"./content-blocks-o63cs2vh.js";import{M as PT}from"./mcp-app-renderer-IX_OR3wW.js";import{g as Nb}from"./types-B3niHy47.js";import{s as FT}from"./Eye-JuDcZhJz.js";import{s as UT}from"./Globe02-k3_A41kp.js";import{s as vb}from"./LayersTwo01-C-XZtFtv.js";import{s as BT}from"./XClose-eeK1fS1n.js";import{u as HT}from"./index-X4FDee1r.js";import{I as jT}from"./integration-icon-CVxvM4fR.js";import{s as tc}from"./Clock-rHd8cQAO.js";import{s as qT}from"./Trash01-YPQczxci.js";import{b as $T}from"./use-virtual-mcp-C9XdHCA_.js";import{b as Su,c as GT,a as zT,e as VT}from"./use-collections-DSWhP4jg.js";import{u as WT}from"./useSuspenseInfiniteQuery-CT40dICu.js";import{u as YT}from"./use-local-storage-CxC8ozOe.js";import{i as KT}from"./CheckCircle-DiRi76qb.js";import{i as XT}from"./Loading01-BNn4YU_K.js";const Ib=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));Ib.displayName="Activity";const Rb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));Rb.displayName="Atom02";const Cb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));Cb.displayName="Attachment01";const xb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));xb.displayName="ChevronSelectorVertical";const _u=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));_u.displayName="Edit02";const kb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));kb.displayName="Hourglass03";const wb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));wb.displayName="Lightbulb01";const Ob=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.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"}));Ob.displayName="Placeholder";const Lb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));Lb.displayName="ShieldTick";const Pr=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));Pr.displayName="Stars01";const Db=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));Db.displayName="Target04";const rc={}.hasOwnProperty;function Mb(t,e){const r=e||{};function a(n,...i){let s=a.invalid;const o=a.handlers;if(n&&rc.call(n,t)){const u=String(n[t]);s=rc.call(o,u)?o[u]:a.unknown}if(s)return s.call(this,n,...i)}return a.handlers=r.handlers||{},a.invalid=r.invalid,a.unknown=r.unknown,a}function ZT(t){const e=j.c(10);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const a=Hh(r);let n;if(e[1]!==a.collectionName||e[2]!==a.connectionId||e[3]!==a.itemId||e[4]!==t){n=[],t&&n.push(`### Selected Agent
2
2
  - ID: ${t}`);let i;e[6]!==a.collectionName||e[7]!==a.connectionId||e[8]!==a.itemId?(i=[],a.connectionId&&i.push(`- Connection ID: ${a.connectionId}`),a.collectionName&&i.push(`- Collection: ${a.collectionName}`),a.itemId&&i.push(`- Item ID: ${a.itemId}`),e[6]=a.collectionName,e[7]=a.connectionId,e[8]=a.itemId,e[9]=i):i=e[9],i.length>0&&n.push(`### Current Resource
3
3
  The user is viewing the following resource:
4
4
  ${i.join(`
@@ -1 +1 @@
1
- import{be as W,c as C,r as w,j as s,z as S,B as re,E as ne}from"./index-DO8fUd54.js";import{g as le,b as oe,S as ae}from"./task-status-DJB3YbbO.js";import{a as q,u as V}from"./context-CiizXS06.js";import{C as ie}from"./collection-search-Mtc1qP5K.js";import{U as ce}from"./user-6WV0RuBu.js";import{f as de}from"./format-time-CMKyl-GC.js";import{a as me,T as fe,c as ue}from"./tooltip-BLTgyg7W.js";import{i as xe}from"./Check-CuWDIJeM.js";import{i as he}from"./ChevronRight-UJRwW9xN.js";import{i as pe}from"./Edit01-Dpq6F4lk.js";import{i as J}from"./Loading01-WTkiPysv.js";import{s as be}from"./Plus-Dto-8y6a.js";import{a as ge,g as je,h as ye,i as Q,b as Ne,j as ke,D as ve}from"./dropdown-menu-Cp0O2jCN.js";const we=W("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Se=W("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function Te(t){const e=C.c(12),{text:r,className:o}=t,l=w.useRef(null),[a,d]=w.useState(!1);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=b=>{b&&l.current?d(l.current.scrollWidth>l.current.clientWidth):d(!1)},e[0]=i):i=e[0];let c;e[1]!==o?(c=S("truncate block",o),e[1]=o,e[2]=c):c=e[2];let f;e[3]!==c||e[4]!==r?(f=s.jsx(me,{asChild:!0,children:s.jsx("span",{ref:l,className:c,children:r})}),e[3]=c,e[4]=r,e[5]=f):f=e[5];let m;e[6]!==r?(m=s.jsx(fe,{side:"top",align:"start",children:r}),e[6]=r,e[7]=m):m=e[7];let u;return e[8]!==a||e[9]!==f||e[10]!==m?(u=s.jsxs(ue,{open:a,onOpenChange:i,children:[f,m]}),e[8]=a,e[9]=f,e[10]=m,e[11]=u):u=e[11],u}function Ce(){const t=C.c(21),{ownerFilter:e,setOwnerFilter:r,isFilterChangePending:o}=V();let l;t[0]!==r?(l=k=>{r(k)},t[0]=r,t[1]=l):l=t[1];const a=l,d=e==="me",i=o?J:d?we:Se,c=d?"My tasks":"All tasks",f=o?"animate-spin text-muted-foreground":d?"text-foreground":"text-muted-foreground";let m;t[2]!==f?(m=S(f),t[2]=f,t[3]=m):m=t[3];let u;t[4]!==i||t[5]!==m?(u=s.jsx(i,{size:14,className:m}),t[4]=i,t[5]=m,t[6]=u):u=t[6];let b;t[7]!==o||t[8]!==c||t[9]!==u?(b=s.jsx(ge,{asChild:!0,children:s.jsx(re,{variant:"ghost",className:"size-8",title:c,disabled:o,children:u})}),t[7]=o,t[8]=c,t[9]=u,t[10]=b):b=t[10];let N,g;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(je,{children:"Filter by owner"}),g=s.jsx(ye,{}),t[11]=N,t[12]=g):(N=t[11],g=t[12]);let v,j;t[13]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Q,{value:"me",children:"My tasks"}),j=s.jsx(Q,{value:"everyone",children:"All tasks"}),t[13]=v,t[14]=j):(v=t[13],j=t[14]);let x;t[15]!==a||t[16]!==e?(x=s.jsxs(Ne,{align:"end",children:[N,g,s.jsxs(ke,{value:e,onValueChange:a,children:[v,j]})]}),t[15]=a,t[16]=e,t[17]=x):x=t[17];let h;return t[18]!==x||t[19]!==b?(h=s.jsxs(ve,{children:[b,x]}),t[18]=x,t[19]=b,t[20]=h):h=t[20],h}function _e(t){const e=C.c(35),{onTaskSelect:r}=t,{activeTaskId:o,switchToTask:l}=q(),{renameTask:a,tasks:d}=V(),[i,c]=w.useState("");let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={},e[0]=f):f=e[0];const[m,u]=w.useState(f),[b,N]=w.useState(null),[g,v]=w.useState("");let j,x,h;if(e[1]!==o||e[2]!==m||e[3]!==b||e[4]!==g||e[5]!==r||e[6]!==a||e[7]!==i||e[8]!==l||e[9]!==d){const B=d.filter(Me),G=i.trim()?B.filter(n=>n.title.toLowerCase().includes(i.toLowerCase())):B,A=le(G),X=oe.filter(n=>A[n]&&A[n].length>0);let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=n=>{u(y=>({...y,[n]:!y[n]}))},e[13]=z):z=e[13];const Y=z;let F;e[14]!==r||e[15]!==l?(F=async n=>{r?r(n.id):await l(n.id)},e[14]=r,e[15]=l,e[16]=F):F=e[16];const Z=F;let U;e[17]===Symbol.for("react.memo_cache_sentinel")?(U=(n,y)=>{y.stopPropagation(),N(n.id),v(n.title||"")},e[17]=U):U=e[17];const ee=U;let $;e[18]!==g||e[19]!==a?($=async n=>{const y=g.trim();y&&await a(n,y),N(null)},e[18]=g,e[19]=a,e[20]=$):$=e[20];const _=$;let I;e[21]!==_?(I=(n,y)=>{n.key==="Enter"?(n.preventDefault(),_(y)):n.key==="Escape"&&N(null)},e[21]=_,e[22]=I):I=e[22];const te=I;let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=n=>{n.key==="Escape"&&(c(""),n.target.blur())},e[23]=O):O=e[23];let T;e[24]!==i?(T=s.jsx(ie,{value:i,onChange:c,placeholder:"Search tasks...",onKeyDown:O}),e[24]=i,e[25]=T):T=e[25];let R;e[26]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:s.jsx(Ce,{})}),e[26]=R):R=e[26],e[27]!==T?(h=s.jsxs("div",{className:"relative",children:[T,R]}),e[27]=T,e[28]=h):h=e[28],j="flex-1 overflow-y-auto",x=G.length===0?s.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-12 px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:i?"No tasks found":"No tasks yet"})}):X.map((n,y)=>{const D=ae[n];if(!D)return null;const L=D.icon,K=A[n]??[],H=!m[n];return s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("button",{type:"button",onClick:()=>Y(n),className:S("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",y!==0&&"border-t border-border/50"),children:[s.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:s.jsx(he,{size:16,className:S("text-muted-foreground transition-transform duration-200",H&&"rotate-90")})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[s.jsx(L,{size:16,className:D.iconClassName}),s.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:D.label}),s.jsx("span",{className:"text-xs text-muted-foreground/60",children:K.length})]})]}),H&&K.map(p=>{const se=p.id===o,P=b===p.id;return s.jsxs("div",{className:S("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",se&&"bg-accent/50"),onClick:()=>!P&&Z(p),children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[s.jsx(L,{size:16,className:S("shrink-0",D.iconClassName)}),P?s.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:Ee,children:[s.jsx("input",{autoFocus:!0,value:g,onChange:E=>v(E.target.value),onBlur:()=>_(p.id),onKeyDown:E=>te(E,p.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),s.jsx("button",{type:"button",onMouseDown:De,onClick:()=>_(p.id),className:"p-1 hover:bg-accent rounded shrink-0",children:s.jsx(xe,{size:12,className:"text-muted-foreground"})})]}):s.jsx(Te,{text:p.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!P&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[s.jsx("button",{type:"button",onClick:E=>ee(p,E),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:s.jsx(pe,{size:13,className:"text-muted-foreground"})}),p.created_by&&s.jsx(ce,{id:p.created_by,size:"3xs",avatarOnly:!0})]}),s.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:s.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:p.updated_at?de(new Date(p.updated_at)):"—"})})]})]},p.id)})]},n)}),e[1]=o,e[2]=m,e[3]=b,e[4]=g,e[5]=r,e[6]=a,e[7]=i,e[8]=l,e[9]=d,e[10]=j,e[11]=x,e[12]=h}else j=e[10],x=e[11],h=e[12];let k;e[29]!==j||e[30]!==x?(k=s.jsx("div",{className:j,children:x}),e[29]=j,e[30]=x,e[31]=k):k=e[31];let M;return e[32]!==h||e[33]!==k?(M=s.jsxs(s.Fragment,{children:[h,k]}),e[32]=h,e[33]=k,e[34]=M):M=e[34],M}function De(t){return t.preventDefault()}function Ee(t){return t.stopPropagation()}function Me(t){return!t.hidden}function ze(){const t=C.c(10),{createTask:e,isChatEmpty:r}=q();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),t[0]=o):o=t[0];let l;t[1]!==e?(l=()=>e(),t[1]=e,t[2]=l):l=t[2];let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{size:16,className:"text-muted-foreground"}),t[3]=a):a=t[3];let d;t[4]!==r||t[5]!==l?(d=s.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[o,s.jsx("button",{type:"button",onClick:l,disabled:r,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:a})]}),t[4]=r,t[5]=l,t[6]=d):d=t[6];let i;t[7]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_e,{}),t[7]=i):i=t[7];let c;return t[8]!==d?(c=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[d,i]}),t[8]=d,t[9]=c):c=t[9],c}function Fe(){const t=C.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(J,{size:20,className:"animate-spin text-muted-foreground"})})]}),t[1]=r):r=t[1],r}function qe(t){const e=C.c(5),{className:r}=t;let o;e[0]!==r?(o=S("h-full",r),e[0]=r,e[1]=o):o=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ne,{fallback:Ue,children:s.jsx(w.Suspense,{fallback:s.jsx(Fe,{}),children:s.jsx(ze,{})})}),e[2]=l):l=e[2];let a;return e[3]!==o?(a=s.jsx("div",{className:o,children:l}),e[3]=o,e[4]=a):a=e[4],a}function Ue(){return s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{_e as T,qe as a};
1
+ import{bi as W,c as C,r as w,j as s,y as S,B as re,E as ne}from"./index-DsOJvxnb.js";import{g as le,b as oe,S as ie}from"./task-status-wkv2GdSY.js";import{a as q,u as V}from"./context-CtrnP3HC.js";import{C as ae}from"./collection-search-62vwaqdq.js";import{U as ce}from"./user-rS26WEu1.js";import{f as de}from"./format-time-CMKyl-GC.js";import{a as me,T as fe,c as ue}from"./tooltip-XyKE4lZa.js";import{i as xe}from"./Check-BfKCyKXX.js";import{i as he}from"./ChevronRight-1g9z-Z5h.js";import{i as pe}from"./Edit01-Dw-lPBk-.js";import{i as J}from"./Loading01-BNn4YU_K.js";import{s as be}from"./Plus-CT_Gcwl2.js";import{a as ge,g as je,h as ye,i as Q,b as Ne,j as ke,D as ve}from"./dropdown-menu-DzFMEBVS.js";const we=W("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);const Se=W("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function Te(t){const e=C.c(12),{text:r,className:o}=t,l=w.useRef(null),[i,d]=w.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=b=>{b&&l.current?d(l.current.scrollWidth>l.current.clientWidth):d(!1)},e[0]=a):a=e[0];let c;e[1]!==o?(c=S("truncate block",o),e[1]=o,e[2]=c):c=e[2];let f;e[3]!==c||e[4]!==r?(f=s.jsx(me,{asChild:!0,children:s.jsx("span",{ref:l,className:c,children:r})}),e[3]=c,e[4]=r,e[5]=f):f=e[5];let m;e[6]!==r?(m=s.jsx(fe,{side:"top",align:"start",children:r}),e[6]=r,e[7]=m):m=e[7];let u;return e[8]!==i||e[9]!==f||e[10]!==m?(u=s.jsxs(ue,{open:i,onOpenChange:a,children:[f,m]}),e[8]=i,e[9]=f,e[10]=m,e[11]=u):u=e[11],u}function Ce(){const t=C.c(21),{ownerFilter:e,setOwnerFilter:r,isFilterChangePending:o}=V();let l;t[0]!==r?(l=k=>{r(k)},t[0]=r,t[1]=l):l=t[1];const i=l,d=e==="me",a=o?J:d?we:Se,c=d?"My tasks":"All tasks",f=o?"animate-spin text-muted-foreground":d?"text-foreground":"text-muted-foreground";let m;t[2]!==f?(m=S(f),t[2]=f,t[3]=m):m=t[3];let u;t[4]!==a||t[5]!==m?(u=s.jsx(a,{size:14,className:m}),t[4]=a,t[5]=m,t[6]=u):u=t[6];let b;t[7]!==o||t[8]!==c||t[9]!==u?(b=s.jsx(ge,{asChild:!0,children:s.jsx(re,{variant:"ghost",className:"size-8",title:c,disabled:o,children:u})}),t[7]=o,t[8]=c,t[9]=u,t[10]=b):b=t[10];let N,g;t[11]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(je,{children:"Filter by owner"}),g=s.jsx(ye,{}),t[11]=N,t[12]=g):(N=t[11],g=t[12]);let v,j;t[13]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Q,{value:"me",children:"My tasks"}),j=s.jsx(Q,{value:"everyone",children:"All tasks"}),t[13]=v,t[14]=j):(v=t[13],j=t[14]);let x;t[15]!==i||t[16]!==e?(x=s.jsxs(Ne,{align:"end",children:[N,g,s.jsxs(ke,{value:e,onValueChange:i,children:[v,j]})]}),t[15]=i,t[16]=e,t[17]=x):x=t[17];let h;return t[18]!==x||t[19]!==b?(h=s.jsxs(ve,{children:[b,x]}),t[18]=x,t[19]=b,t[20]=h):h=t[20],h}function _e(t){const e=C.c(35),{onTaskSelect:r}=t,{activeTaskId:o,switchToTask:l}=q(),{renameTask:i,tasks:d}=V(),[a,c]=w.useState("");let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={},e[0]=f):f=e[0];const[m,u]=w.useState(f),[b,N]=w.useState(null),[g,v]=w.useState("");let j,x,h;if(e[1]!==o||e[2]!==m||e[3]!==b||e[4]!==g||e[5]!==r||e[6]!==i||e[7]!==a||e[8]!==l||e[9]!==d){const B=d.filter(Me),G=a.trim()?B.filter(n=>n.title.toLowerCase().includes(a.toLowerCase())):B,A=le(G),X=oe.filter(n=>A[n]&&A[n].length>0);let z;e[13]===Symbol.for("react.memo_cache_sentinel")?(z=n=>{u(y=>({...y,[n]:!y[n]}))},e[13]=z):z=e[13];const Y=z;let F;e[14]!==r||e[15]!==l?(F=async n=>{r?r(n.id):await l(n.id)},e[14]=r,e[15]=l,e[16]=F):F=e[16];const Z=F;let U;e[17]===Symbol.for("react.memo_cache_sentinel")?(U=(n,y)=>{y.stopPropagation(),N(n.id),v(n.title||"")},e[17]=U):U=e[17];const ee=U;let $;e[18]!==g||e[19]!==i?($=async n=>{const y=g.trim();y&&await i(n,y),N(null)},e[18]=g,e[19]=i,e[20]=$):$=e[20];const _=$;let I;e[21]!==_?(I=(n,y)=>{n.key==="Enter"?(n.preventDefault(),_(y)):n.key==="Escape"&&N(null)},e[21]=_,e[22]=I):I=e[22];const te=I;let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=n=>{n.key==="Escape"&&(c(""),n.target.blur())},e[23]=O):O=e[23];let T;e[24]!==a?(T=s.jsx(ae,{value:a,onChange:c,placeholder:"Search tasks...",onKeyDown:O}),e[24]=a,e[25]=T):T=e[25];let R;e[26]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("div",{className:"absolute right-2 top-1/2 -translate-y-1/2",children:s.jsx(Ce,{})}),e[26]=R):R=e[26],e[27]!==T?(h=s.jsxs("div",{className:"relative",children:[T,R]}),e[27]=T,e[28]=h):h=e[28],j="flex-1 overflow-y-auto",x=G.length===0?s.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-12 px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:a?"No tasks found":"No tasks yet"})}):X.map((n,y)=>{const D=ie[n];if(!D)return null;const L=D.icon,K=A[n]??[],H=!m[n];return s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("button",{type:"button",onClick:()=>Y(n),className:S("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",y!==0&&"border-t border-border/50"),children:[s.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:s.jsx(he,{size:16,className:S("text-muted-foreground transition-transform duration-200",H&&"rotate-90")})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[s.jsx(L,{size:16,className:D.iconClassName}),s.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:D.label}),s.jsx("span",{className:"text-xs text-muted-foreground/60",children:K.length})]})]}),H&&K.map(p=>{const se=p.id===o,P=b===p.id;return s.jsxs("div",{className:S("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",se&&"bg-accent/50"),onClick:()=>!P&&Z(p),children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[s.jsx(L,{size:16,className:S("shrink-0",D.iconClassName)}),P?s.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:Ee,children:[s.jsx("input",{autoFocus:!0,value:g,onChange:E=>v(E.target.value),onBlur:()=>_(p.id),onKeyDown:E=>te(E,p.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),s.jsx("button",{type:"button",onMouseDown:De,onClick:()=>_(p.id),className:"p-1 hover:bg-accent rounded shrink-0",children:s.jsx(xe,{size:12,className:"text-muted-foreground"})})]}):s.jsx(Te,{text:p.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!P&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[s.jsx("button",{type:"button",onClick:E=>ee(p,E),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:s.jsx(pe,{size:13,className:"text-muted-foreground"})}),p.created_by&&s.jsx(ce,{id:p.created_by,size:"3xs",avatarOnly:!0})]}),s.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:s.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:p.updated_at?de(new Date(p.updated_at)):"—"})})]})]},p.id)})]},n)}),e[1]=o,e[2]=m,e[3]=b,e[4]=g,e[5]=r,e[6]=i,e[7]=a,e[8]=l,e[9]=d,e[10]=j,e[11]=x,e[12]=h}else j=e[10],x=e[11],h=e[12];let k;e[29]!==j||e[30]!==x?(k=s.jsx("div",{className:j,children:x}),e[29]=j,e[30]=x,e[31]=k):k=e[31];let M;return e[32]!==h||e[33]!==k?(M=s.jsxs(s.Fragment,{children:[h,k]}),e[32]=h,e[33]=k,e[34]=M):M=e[34],M}function De(t){return t.preventDefault()}function Ee(t){return t.stopPropagation()}function Me(t){return!t.hidden}function ze(){const t=C.c(10),{createTask:e,isChatEmpty:r}=q();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),t[0]=o):o=t[0];let l;t[1]!==e?(l=()=>e(),t[1]=e,t[2]=l):l=t[2];let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(be,{size:16,className:"text-muted-foreground"}),t[3]=i):i=t[3];let d;t[4]!==r||t[5]!==l?(d=s.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[o,s.jsx("button",{type:"button",onClick:l,disabled:r,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:i})]}),t[4]=r,t[5]=l,t[6]=d):d=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(_e,{}),t[7]=a):a=t[7];let c;return t[8]!==d?(c=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[d,a]}),t[8]=d,t[9]=c):c=t[9],c}function Fe(){const t=C.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(J,{size:20,className:"animate-spin text-muted-foreground"})})]}),t[1]=r):r=t[1],r}function qe(t){const e=C.c(5),{className:r}=t;let o;e[0]!==r?(o=S("h-full",r),e[0]=r,e[1]=o):o=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ne,{fallback:Ue,children:s.jsx(w.Suspense,{fallback:s.jsx(Fe,{}),children:s.jsx(ze,{})})}),e[2]=l):l=e[2];let i;return e[3]!==o?(i=s.jsx("div",{className:o,children:l}),e[3]=o,e[4]=i):i=e[4],i}function Ue(){return s.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[s.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{_e as T,qe as a};
@@ -0,0 +1 @@
1
+ import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index-DsOJvxnb.js";import{T as h}from"./tasks-panel-TN0GeEUK.js";import{P as e}from"./index-X4FDee1r.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-aP02JuZO.js";import{i as B}from"./Loading01-BNn4YU_K.js";import{u as S}from"./context-CtrnP3HC.js";import"./task-status-wkv2GdSY.js";import"./popover-CF3EN_0o.js";import"./skeleton-DJFpR-1P.js";import"./spinner-CqAVfcvO.js";import"./tooltip-XyKE4lZa.js";import"./index-zjV4p_E5.js";import"./constants-XtX-WKGm.js";import"./use-mcp-prompts-C-XU_-dc.js";import"./useQuery-D2ShO4od.js";import"./dialog-_XYw8lZC.js";import"./X-B_f76BPZ.js";import"./form-BN7_f2uj.js";import"./label-iPw5smAw.js";import"./input-CUT8DBv1.js";import"./index-CuSj4QrF.js";import"./usage-B8rgFVXq.js";import"./ArrowUp-C6Q-EpUw.js";import"./ChevronDown-BHMaRWRt.js";import"./Edit01-Dw-lPBk-.js";import"./Lock01-DJQX15kR.js";import"./Users03-B7X28dbt.js";import"./XCircle-DDLf4PgL.js";import"./AlertCircle-De9oqjty.js";import"./select-DRPG5csU.js";import"./ChevronUp-1s_S3eDF.js";import"./Check-BfKCyKXX.js";import"./org-ai-providers-BDwPbfg4.js";import"./use-local-storage-CxC8ozOe.js";import"./useMutation-B_cFG709.js";import"./EyeOff-9_-SJWcU.js";import"./Eye-JuDcZhJz.js";import"./Key01-DAjAUWfr.js";import"./Trash01-YPQczxci.js";import"./card-RQxLVCBk.js";import"./avatar-OE2URZfM.js";import"./use-llm-BkLbMZPM.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./ArrowLeft-CPWCs_Od.js";import"./use-copy-dSR0w-bG.js";import"./tabs-CkPDQzeX.js";import"./badge-CAg946Xk.js";import"./collapsible-CGr-TiAc.js";import"./index-C-NLwTON.js";import"./Code01-CoTQP8pZ.js";import"./checkbox-DLsMmmhu.js";import"./AlignLeft-BaG4OcCg.js";import"./Image01-I9pAeT0N.js";import"./RefreshCcw01-uL9q48A4.js";import"./SearchMd-BLeX5weN.js";import"./Settings01-2AkYiqYr.js";import"./Tool01-CjSIsyxE.js";import"./ai-providers-logos-W57Qm-EN.js";import"./select-virtual-mcp-B8NgSgPI.js";import"./integration-icon-CVxvM4fR.js";import"./Container-DwxLlgWA.js";import"./use-virtual-mcp-C9XdHCA_.js";import"./use-collections-DSWhP4jg.js";import"./use-create-virtual-mcp-DXWAjide.js";import"./use-mcp-resources-Bxkx1Ub1.js";import"./ChevronRight-1g9z-Z5h.js";import"./Copy01-CIUDy0Hr.js";import"./marked.esm-BaswSlok.js";import"./markdown-CKKBcXcE.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-IX_OR3wW.js";import"./types-B3niHy47.js";import"./Globe02-k3_A41kp.js";import"./LayersTwo01-C-XZtFtv.js";import"./XClose-eeK1fS1n.js";import"./Clock-rHd8cQAO.js";import"./useSuspenseInfiniteQuery-CT40dICu.js";import"./infiniteQueryObserver-BE0Fq7u7.js";import"./CheckCircle-DiRi76qb.js";import"./collection-search-62vwaqdq.js";import"./user-rS26WEu1.js";import"./format-time-CMKyl-GC.js";import"./Plus-CT_Gcwl2.js";import"./dropdown-menu-DzFMEBVS.js";import"./decopilot-events-Brt4gAR6.js";function v(){const t=n.c(8),{org:o,project:s}=x(),a=j(),{switchToTask:c}=S();let i;t[0]!==a||t[1]!==o.slug||t[2]!==s.slug||t[3]!==c?(i=async u=>{await c(u),a({to:"/$org/$project",params:{org:o.slug,project:s.slug}})},t[0]=a,t[1]=o.slug,t[2]=s.slug,t[3]=c,t[4]=i):i=t[4];const l=i;let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(e.Header,{children:r.jsx(e.Header.Left,{children:r.jsx(g,{children:r.jsx(b,{children:r.jsx(T,{children:r.jsx(k,{children:"Tasks"})})})})})}),t[5]=m):m=t[5];let p;return t[6]!==l?(p=r.jsxs(e,{children:[m,r.jsx(e.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(h,{onTaskSelect:l})})})]}),t[6]=l,t[7]=p):p=t[7],p}function ir(){const t=n.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(d,{children:r.jsx(f.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(B,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(v,{})})}),t[0]=o):o=t[0],o}export{ir as default};
@@ -1 +1 @@
1
- import{c as o,z as n,j as l}from"./index-DO8fUd54.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=n("border-input placeholder:text-muted-foreground 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 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=l.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
1
+ import{c as o,y as n,j as l}from"./index-DsOJvxnb.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=n("border-input placeholder:text-muted-foreground 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 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=l.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
@@ -1,4 +1,4 @@
1
- import{r as N,c as At,e as gn,u as yn,j as s,B as I,O as Dt,w as ne,z as U,bc as kt}from"./index-DO8fUd54.js";import{B as bn}from"./badge-C4uZcq7J.js";import{b as lt,P as ct,a as ut}from"./popover-D1WG-emQ.js";import{c as Ge,a as Qe,T as Xe}from"./tooltip-BLTgyg7W.js";import{i as Je}from"./Check-CuWDIJeM.js";import{a as $e}from"./Copy01-CPHBT83w.js";import{n as Mt}from"./Download01-D5-Ilwwi.js";import{i as xn}from"./FilterLines-aqS8nu95.js";import{i as wn}from"./Key01-IptFTL_3.js";import{i as Nn}from"./Play-D72BHSXn.js";import{M as _t,n as Dn}from"./monaco-editor-kjafc2y3.js";import{S as kn}from"./scroll-area-BcJ1ckdt.js";import{t as Mn}from"./ChevronDown-D0TXudCx.js";import{s as _n}from"./Clock-DKQ7EGj-.js";import{n as jn}from"./ChevronLeft-BZsszCLQ.js";import{i as Cn}from"./ChevronRight-UJRwW9xN.js";import{I as jt}from"./input-BM9bdg-F.js";const Ht=({size:t=24,color:e="currentColor",...n})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},N.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));Ht.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Sn(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function Ao(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ho(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{r as N,c as At,e as gn,u as yn,j as s,B as I,O as Dt,w as ne,y as U,bg as kt}from"./index-DsOJvxnb.js";import{B as bn}from"./badge-CAg946Xk.js";import{b as lt,P as ct,a as ut}from"./popover-CF3EN_0o.js";import{c as Ge,a as Qe,T as Xe}from"./tooltip-XyKE4lZa.js";import{i as Je}from"./Check-BfKCyKXX.js";import{a as $e}from"./Copy01-CIUDy0Hr.js";import{n as Mt}from"./Download01-LinNp3zy.js";import{i as xn}from"./FilterLines-BaTxnUjH.js";import{i as wn}from"./Key01-DAjAUWfr.js";import{i as Nn}from"./Play-C7yKo0dH.js";import{M as _t,n as Dn}from"./monaco-editor-J8rInsT2.js";import{S as kn}from"./scroll-area-B5XbONJS.js";import{t as Mn}from"./ChevronDown-BHMaRWRt.js";import{s as _n}from"./Clock-rHd8cQAO.js";import{n as jn}from"./ChevronLeft-0cpA2yNq.js";import{i as Cn}from"./ChevronRight-1g9z-Z5h.js";import{I as jt}from"./input-CUT8DBv1.js";const Ht=({size:t=24,color:e="currentColor",...n})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},N.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));Ht.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Sn(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function Ao(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ho(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function qo(t){return t.trim()?t.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...r]=e.split("=");return{key:n||"",operator:"eq",value:r.join("=")}}if(e.includes("~")){const[n,...r]=e.split("~");return{key:n||"",operator:"contains",value:r.join("~")}}if(e.includes("@")){const[n,...r]=e.split("@");return{key:n||"",operator:"in",value:r.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function zo(t){const e={},n={},r=[],a={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":r.push(o.key);break;case"in":o.value&&(a[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:r.length>0?r:void 0,propertyInValues:Object.keys(a).length>0?a:void 0}}function St(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};const e=JSON.stringify(t,null,2),n=e.length;return n<=Ct.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,Ct.maxJsonRenderSize)+`
4
4
 
@@ -1 +1 @@
1
- import{r as x,ai as h,j as c,a8 as m,am as k,bP as p,al as M,an as T,ah as S,aj as A,ap as F,T as $,c as P,z as C}from"./index-DO8fUd54.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),z=T(),b=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});b.displayName=v;var[I,y]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(I,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(I,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});b.displayName=v;var[O,H]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=z(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=H(f,a.__scopeToggleGroup),n=z(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),L=b,U=N;const q=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(L,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(q({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(U,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{K as T,Q as a};
1
+ import{r as x,a6 as h,j as c,a7 as m,a9 as k,bQ as p,ao as M,ap as T,am as S,an as A,aa as F,_ as $,c as P,y as C}from"./index-DsOJvxnb.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=h({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),I=T(),b=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});b.displayName=v;var[z,y]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=h({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});b.displayName=v;var[O,H]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=H(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),L=b,Q=N;const U=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function J(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(L,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function K(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(Q,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{J as T,K as a};
@@ -0,0 +1 @@
1
+ import{c as z,e as Q,r as E,j as t,O as X,ak as Y,al as Z}from"./index-DsOJvxnb.js";import{C as ee}from"./collection-display-button-VOymjalV.js";import{C as te}from"./collection-search-62vwaqdq.js";import{C as se}from"./collection-table-wrapper-DPJfuSg9.js";import{E as V}from"./empty-state-D4GX29pL.js";import{I as oe}from"./integration-icon-CVxvM4fR.js";import{B as K}from"./badge-CAg946Xk.js";import{C as ne}from"./card-RQxLVCBk.js";import{c as G,a as P,T as W,b as re}from"./tooltip-XyKE4lZa.js";import{g as ae}from"./types-B3niHy47.js";import{s as ie}from"./Eye-JuDcZhJz.js";import{s as le}from"./Globe02-k3_A41kp.js";import{s as ce}from"./LayersTwo01-C-XZtFtv.js";import{V as me}from"./layout-C2ZnDBkW.js";const de=[{key:"readOnlyHint",label:"Read-only",Icon:ie,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:Y,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:Z,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:le,variant:"outline"}];function fe(s){const e=z.c(18),{annotations:a,_meta:d}=s;let u;e[0]!==d?(u=ae(d),e[0]=d,e[1]=u):u=e[1];const l=!!u;let h,x,c,f,m;if(e[2]!==a||e[3]!==l){m=Symbol.for("react.early_return_sentinel");e:{const n=a?de.filter(S=>a[S.key]===!0):[];if(n.length===0&&!l){m=null;break e}h=re,x="flex gap-1 flex-nowrap",e[9]!==l?(c=l&&t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:t.jsx(ce,{})})}),t.jsx(W,{children:"Interactive"})]}),e[9]=l,e[10]=c):c=e[10],f=n.map(pe)}e[2]=a,e[3]=l,e[4]=h,e[5]=x,e[6]=c,e[7]=f,e[8]=m}else h=e[4],x=e[5],c=e[6],f=e[7],m=e[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;let p;e[11]!==x||e[12]!==c||e[13]!==f?(p=t.jsxs("div",{className:x,children:[c,f]}),e[11]=x,e[12]=c,e[13]=f,e[14]=p):p=e[14];let g;return e[15]!==h||e[16]!==p?(g=t.jsx(h,{children:p}),e[15]=h,e[16]=p,e[17]=g):g=e[17],g}function pe(s){const{label:e,Icon:a,variant:d}=s;return t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:d,className:"size-6 p-1",children:t.jsx(a,{})})}),t.jsx(W,{children:e})]},e)}function De(s){const e=z.c(39),{tools:a,connectionId:d,org:u,onToolClick:l,showToolbar:h,emptyMessage:x,isLoading:c}=s,f=h===void 0?!0:h,m=x===void 0?"This connection doesn't have any tools yet.":x,p=c===void 0?!1:c,g=Q(),[n,S]=E.useState(""),[H]=E.useState("table"),[r,A]=E.useState("name"),[i,U]=E.useState("asc");let I;e[0]!==i||e[1]!==r?(I=o=>{r===o?(U(ye),i==="desc"&&A(void 0)):(A(o),U("asc"))},e[0]=i,e[1]=r,e[2]=I):I=e[2];const j=I;let w;e[3]!==d||e[4]!==g||e[5]!==l||e[6]!==u?(w=o=>{l?l(o):d&&u&&g({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:u,project:X,connectionId:d,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=d,e[4]=g,e[5]=l,e[6]=u,e[7]=w):w=e[7];const _=w;let k;if(e[8]!==n||e[9]!==i||e[10]!==r||e[11]!==a){const o=!a||a.length===0?[]:n.trim()?(()=>{const D=n.toLowerCase();return a.filter(T=>T.name.toLowerCase().includes(D)||T.description&&T.description.toLowerCase().includes(D))})():a;k=!r||!i?o:[...o].sort((D,T)=>{const J=D[r]||"",q=T[r]||"",M=String(J).localeCompare(String(q));return i==="asc"?M:-M}),e[8]=n,e[9]=i,e[10]=r,e[11]=a,e[12]=k}else k=e[12];const C=k;let $;e[13]===Symbol.for("react.memo_cache_sentinel")?($=[{id:"name",header:"Name",render:je,sortable:!0},{id:"annotations",header:"Hints",render:ge,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:xe,cellClassName:"flex-1",sortable:!0}],e[13]=$):$=e[13];const B=$;let L;e[14]===Symbol.for("react.memo_cache_sentinel")?(L=B.filter(he).map(ue),e[14]=L):L=e[14];const F=L;let y;e[15]!==j||e[16]!==f||e[17]!==i||e[18]!==r?(y=f&&t.jsx(me,{children:t.jsx(ee,{sortKey:r,sortDirection:i,onSort:j,sortOptions:F})}),e[15]=j,e[16]=f,e[17]=i,e[18]=r,e[19]=y):y=e[19];let O;e[20]===Symbol.for("react.memo_cache_sentinel")?(O=o=>{o.key==="Escape"&&(S(""),o.target.blur())},e[20]=O):O=e[20];let N;e[21]!==n?(N=t.jsx(te,{value:n,onChange:S,placeholder:"Search tools...",onKeyDown:O}),e[21]=n,e[22]=N):N=e[22];let v;e[23]!==m||e[24]!==j||e[25]!==_||e[26]!==p||e[27]!==n||e[28]!==i||e[29]!==r||e[30]!==C||e[31]!==H?(v=H==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:C.length===0?t.jsx(V,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:C.map(o=>t.jsx(ne,{className:"cursor-pointer transition-colors",onClick:()=>_(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(oe,{icon:null,name:o.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:o.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:o.description||"No description"})]})]})},o.name))})}):t.jsx(se,{columns:B,data:C,isLoading:p,sortKey:r,sortDirection:i,onSort:j,onRowClick:o=>_(o),emptyState:t.jsx(V,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":m})}),e[23]=m,e[24]=j,e[25]=_,e[26]=p,e[27]=n,e[28]=i,e[29]=r,e[30]=C,e[31]=H,e[32]=v):v=e[32];let b;e[33]!==N||e[34]!==v?(b=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[N,v]}),e[33]=N,e[34]=v,e[35]=b):b=e[35];let R;return e[36]!==b||e[37]!==y?(R=t.jsxs(t.Fragment,{children:[y,b]}),e[36]=b,e[37]=y,e[38]=R):R=e[38],R}function ue(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function he(s){return s.sortable}function xe(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function ge(s){return t.jsx(fe,{annotations:s.annotations,_meta:s._meta})}function je(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function ye(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{fe as T,De as a};