@decocms/mesh 2.131.2 → 2.131.3

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 (201) hide show
  1. package/dist/client/assets/{AlertCircle-Dkqr1r1Q.js → AlertCircle-DlPS0B2V.js} +1 -1
  2. package/dist/client/assets/{AlertOctagon-BwExqGuJ.js → AlertOctagon-BuLp3fZC.js} +1 -1
  3. package/dist/client/assets/{AlignLeft-CKUGLbMc.js → AlignLeft-CK2LK9_P.js} +1 -1
  4. package/dist/client/assets/{ArrowDown-CRMfpA3C.js → ArrowDown-Dz6Gxuoh.js} +1 -1
  5. package/dist/client/assets/{ArrowLeft-98jtQw40.js → ArrowLeft-m0b492UP.js} +1 -1
  6. package/dist/client/assets/{ArrowUp-s_vVz9nI.js → ArrowUp-Djo3xiq5.js} +1 -1
  7. package/dist/client/assets/{Check-DojSaPH3.js → Check-BIAvy6yX.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-CjD5Bvma.js → CheckCircle-ZlxnLwuD.js} +1 -1
  9. package/dist/client/assets/{CheckDone01-PzZ4aJ2B.js → CheckDone01-SmxvYrNZ.js} +1 -1
  10. package/dist/client/assets/{CheckVerified02-BOo5Cll4.js → CheckVerified02-Cq3SMoM5.js} +1 -1
  11. package/dist/client/assets/{ChevronDown-BgBeiqk4.js → ChevronDown-B_XlOG4n.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-ntt7kj2X.js → ChevronRight--WZMG8rl.js} +1 -1
  13. package/dist/client/assets/{Clock-hhjRO-p5.js → Clock-DF385WmK.js} +1 -1
  14. package/dist/client/assets/{Code01-CtiiBuUZ.js → Code01-CF9Fqf4v.js} +1 -1
  15. package/dist/client/assets/{Container-DETG3Vpm.js → Container-CAK8Ef10.js} +1 -1
  16. package/dist/client/assets/{Copy01-DAgw87le.js → Copy01-DhxT-EHF.js} +1 -1
  17. package/dist/client/assets/{Dataflow03-yymJ3qCi.js → Dataflow03-jO7_7pxv.js} +1 -1
  18. package/dist/client/assets/{DotsHorizontal-CRDR3ikP.js → DotsHorizontal-mcB-Jm-p.js} +1 -1
  19. package/dist/client/assets/{DotsVertical-Cb88o4dO.js → DotsVertical-BHwWihUa.js} +1 -1
  20. package/dist/client/assets/{Download01-DYRyy6E8.js → Download01-BAQPnXKJ.js} +1 -1
  21. package/dist/client/assets/{Edit01-Ce9T4GDO.js → Edit01-BAKH21Ta.js} +1 -1
  22. package/dist/client/assets/{Eye-DPG-E6S3.js → Eye-CwfPY6I3.js} +1 -1
  23. package/dist/client/assets/{File02-Bershn1K.js → File02-BGmXPhDl.js} +1 -1
  24. package/dist/client/assets/{File06-CIJNH202.js → File06-Dq4QeYow.js} +1 -1
  25. package/dist/client/assets/{FilterLines-C-QyLRQ-.js → FilterLines-CvVXx1lM.js} +1 -1
  26. package/dist/client/assets/{Globe01-CUXKjyjC.js → Globe01-vtxLyn0R.js} +1 -1
  27. package/dist/client/assets/{Globe02-WbvfAq6T.js → Globe02-D5-pXhdl.js} +1 -1
  28. package/dist/client/assets/{Grid01-Q5lBUjoI.js → Grid01-DF8yAKWy.js} +1 -1
  29. package/dist/client/assets/{Hash02-CCAET11m.js → Hash02-rOtzXEDy.js} +1 -1
  30. package/dist/client/assets/{Home02-DWi1gwG-.js → Home02-B3qxGVx_.js} +1 -1
  31. package/dist/client/assets/{Image01-Dfl09rMQ.js → Image01-CdQc9_Kn.js} +1 -1
  32. package/dist/client/assets/{Inbox01-KkWlgZrW.js → Inbox01-Cgsr8OUk.js} +1 -1
  33. package/dist/client/assets/{InfoCircle-Khu_MP7C.js → InfoCircle-C2XIwn6f.js} +1 -1
  34. package/dist/client/assets/{Key01-_bxQwPT1.js → Key01-DvGVU5tM.js} +1 -1
  35. package/dist/client/assets/{LinkExternal01-DVl53tU_.js → LinkExternal01-DN5IcIrY.js} +1 -1
  36. package/dist/client/assets/{List-B6fT_JC1.js → List-cJBOedUB.js} +1 -1
  37. package/dist/client/assets/{Loading01-7lPd5VY0.js → Loading01-DUKazYJk.js} +1 -1
  38. package/dist/client/assets/{Lock01-CqvrjdCQ.js → Lock01-BDndlndK.js} +1 -1
  39. package/dist/client/assets/{Play-CRp2Fiq8.js → Play-BoOE6qYY.js} +1 -1
  40. package/dist/client/assets/{Plus-B4CifUaz.js → Plus-xPrSIBe6.js} +1 -1
  41. package/dist/client/assets/{RefreshCcw01-Pv9wWC4C.js → RefreshCcw01-34kOjxGl.js} +1 -1
  42. package/dist/client/assets/{Rows03-70mPs707.js → Rows03-BBJg6G3G.js} +1 -1
  43. package/dist/client/assets/{Save01-Bf1LNfFv.js → Save01-CVZL-KwT.js} +1 -1
  44. package/dist/client/assets/{SearchMd-D2_y6K19.js → SearchMd-C6p4WuWU.js} +1 -1
  45. package/dist/client/assets/{Settings01-sVEW_DKV.js → Settings01-C-qUCDkW.js} +1 -1
  46. package/dist/client/assets/{Shield01-CztMZVsY.js → Shield01-CGOTAY5M.js} +1 -1
  47. package/dist/client/assets/{Terminal-Dc4yKk87.js → Terminal-BFqTLoyA.js} +1 -1
  48. package/dist/client/assets/{Trash01-DrId97Wg.js → Trash01-BtuExZ9Q.js} +1 -1
  49. package/dist/client/assets/{Upload01-BciJNrXE.js → Upload01-DvQiLBB9.js} +1 -1
  50. package/dist/client/assets/{Users03-mZsyOxFC.js → Users03-B39x9j9y.js} +1 -1
  51. package/dist/client/assets/{XCircle-DAMM1xqw.js → XCircle-JTpXXWsC.js} +1 -1
  52. package/dist/client/assets/{XClose-Bk127sk1.js → XClose-_flpZkDx.js} +1 -1
  53. package/dist/client/assets/{agent-connections-preview-C-MHAVyG.js → agent-connections-preview-D4sm_ya8.js} +1 -1
  54. package/dist/client/assets/agent-detail-O__Ac8gp.js +2 -0
  55. package/dist/client/assets/agents-Bn6F1Zoa.js +1 -0
  56. package/dist/client/assets/{alert-dialog-CTH20CPb.js → alert-dialog-BDxMDVo1.js} +2 -2
  57. package/dist/client/assets/{auth-catchall-CObdt_tX.js → auth-catchall-kNoDzBnk.js} +1 -1
  58. package/dist/client/assets/{avatar-CLLAtWtt.js → avatar-C9P0gqhN.js} +1 -1
  59. package/dist/client/assets/{badge-bamcfFQO.js → badge-Cd5VRqG2.js} +1 -1
  60. package/dist/client/assets/{binder-BSRzuzet.js → binder-BSqhIBEo.js} +1 -1
  61. package/dist/client/assets/{breadcrumb-CbjyCrUB.js → breadcrumb-DW0yuSjw.js} +1 -1
  62. package/dist/client/assets/{card-CT9eRBO8.js → card-C7mKq0Al.js} +1 -1
  63. package/dist/client/assets/{chart-qBlGBPsr.js → chart-BAZKlJ67.js} +1 -1
  64. package/dist/client/assets/{checkbox-fZN_zkkc.js → checkbox-DBGyogTp.js} +1 -1
  65. package/dist/client/assets/{circle-alert-DiZHZEQ5.js → circle-alert-oNPOZrxG.js} +1 -1
  66. package/dist/client/assets/collapsible-BR69xWDn.js +1 -0
  67. package/dist/client/assets/{collection-detail-Cdyo4Jme.js → collection-detail-DRtO60n0.js} +3 -3
  68. package/dist/client/assets/{collection-search-BkqfEg-m.js → collection-search-DTH23sfv.js} +1 -1
  69. package/dist/client/assets/{collection-tab-CFsl8XVU.js → collection-tab-DcoI4Uge.js} +1 -1
  70. package/dist/client/assets/{collection-table-wrapper-CQELj61q.js → collection-table-wrapper-17gGtoIE.js} +1 -1
  71. package/dist/client/assets/{collection-tabs-DYZ2tP7j.js → collection-tabs-WM8uIQcb.js} +1 -1
  72. package/dist/client/assets/{command-TgV2tll9.js → command-4Vw0Qhhq.js} +1 -1
  73. package/dist/client/assets/{connect-BUtRFK0H.js → connect-dBx1ArAL.js} +1 -1
  74. package/dist/client/assets/{connection-card-D6yVNj26.js → connection-card-Bnb4ztny.js} +1 -1
  75. package/dist/client/assets/connection-detail-CQ6_kDeT.js +1 -0
  76. package/dist/client/assets/connections-8KY_ShvQ.js +1 -0
  77. package/dist/client/assets/{constants-d5m3mPET.js → constants-BhT1RxOf.js} +1 -1
  78. package/dist/client/assets/constants-da5q_EnE.js +1 -0
  79. package/dist/client/assets/{context-2tm88ePK.js → context-BBcoPt-U.js} +1 -1
  80. package/dist/client/assets/{create-organization-dialog-DpKq7vI7.js → create-organization-dialog-DzVdn81Q.js} +1 -1
  81. package/dist/client/assets/{create-project-dialog-D3gJUHFV.js → create-project-dialog-B8Pi5NuK.js} +1 -1
  82. package/dist/client/assets/dialog-Dvc12rqj.js +1 -0
  83. package/dist/client/assets/{dropdown-menu-ChxmccFR.js → dropdown-menu-CkNoSZQN.js} +1 -1
  84. package/dist/client/assets/dynamic-plugin-layout-CLQB7TKz.js +1 -0
  85. package/dist/client/assets/editable-thread-title-CwlSHlt8.js +16 -0
  86. package/dist/client/assets/{empty-state-DVahD977.js → empty-state-BTWthjUh.js} +1 -1
  87. package/dist/client/assets/{env-vars-editor-Cteh4D4v.js → env-vars-editor-COsCn64B.js} +1 -1
  88. package/dist/client/assets/{extract-connection-data-Ck5zVWtS.js → extract-connection-data-rbihX2c5.js} +1 -1
  89. package/dist/client/assets/{file-browser-DHCSXXck.js → file-browser-B1RzPAtd.js} +2 -2
  90. package/dist/client/assets/{form-CcJszJH6.js → form--v_6A-Ne.js} +1 -1
  91. package/dist/client/assets/{grid-view-C8HbhPQo.js → grid-view-CoEr8taJ.js} +1 -1
  92. package/dist/client/assets/{home-B7fxCmTd.js → home-Byv7Q--9.js} +1 -1
  93. package/dist/client/assets/{index-GgsXGTPv.js → index-4MyK8Ufm.js} +1 -1
  94. package/dist/client/assets/{index-DWR1QaYA.js → index-Br8kKohg.js} +1 -1
  95. package/dist/client/assets/{index-Bs0We-94.js → index-C5Tpyka5.js} +1 -1
  96. package/dist/client/assets/{index-7L39VpRz.js → index-C9zVB5WG.js} +3 -3
  97. package/dist/client/assets/{index-Ds36Fm_U.js → index-CIQsWYRd.js} +1 -1
  98. package/dist/client/assets/index-CmrMzoJs.js +1 -0
  99. package/dist/client/assets/{index-r-yz0P9p.js → index-DBNEyPj5.js} +1 -1
  100. package/dist/client/assets/{index-CQtw16nY.js → index-QVlRbrQ5.js} +9 -9
  101. package/dist/client/assets/index-Rya1vVnc.css +1 -0
  102. package/dist/client/assets/index-nJ7zp6px.js +1 -0
  103. package/dist/client/assets/{infiniteQueryObserver-CP14HTXs.js → infiniteQueryObserver-fiTcrowg.js} +1 -1
  104. package/dist/client/assets/{input-Bg0LE4bT.js → input-Dulb50P0.js} +1 -1
  105. package/dist/client/assets/{integration-icon-BXY2mwKh.js → integration-icon-DxUgniRd.js} +1 -1
  106. package/dist/client/assets/{label--nPLxPOS.js → label-N7w17Mk3.js} +1 -1
  107. package/dist/client/assets/{layout-DKJsGI23.js → layout-DamKiHJu.js} +1 -1
  108. package/dist/client/assets/{localstorage-keys-oS_TlQ3E.js → localstorage-keys-CZwloscb.js} +1 -1
  109. package/dist/client/assets/{login-CiffSVUh.js → login-Coqa5XXN.js} +1 -1
  110. package/dist/client/assets/{markdown-eMMio6z7.js → markdown-BZXGJB-W.js} +1 -1
  111. package/dist/client/assets/{mcp-oauth-IsIZEZHY.js → mcp-oauth-CNYT89wd.js} +1 -1
  112. package/dist/client/assets/{mcp-server-card-DM4CcEET.js → mcp-server-card-C8lGlwNL.js} +1 -1
  113. package/dist/client/assets/mcp-server-detail-BE_Pdjh4.js +2 -0
  114. package/dist/client/assets/members-BR48Zy7w.js +3 -0
  115. package/dist/client/assets/{monitoring-BhcuVePL.js → monitoring-BYHNRux1.js} +2 -2
  116. package/dist/client/assets/monitoring-dashboard-edit-C3fB0hxS.js +1 -0
  117. package/dist/client/assets/{monitoring-dashboard-view-BChtKAyU.js → monitoring-dashboard-view-CK5QtkLZ.js} +2 -2
  118. package/dist/client/assets/{oauth-callback-BKrMsxxf.js → oauth-callback-B91mfF7u.js} +1 -1
  119. package/dist/client/assets/{page-CN23mc6T.js → page-Bz6ZAe5V.js} +1 -1
  120. package/dist/client/assets/page-ClBjAvI8.js +1 -0
  121. package/dist/client/assets/{plugin-empty-state-Co1LYNEp.js → plugin-empty-state-09_7LKCk.js} +1 -1
  122. package/dist/client/assets/{plugin-empty-state-D4zO5Njw.js → plugin-empty-state-DhaBpvUb.js} +1 -1
  123. package/dist/client/assets/{plugin-header-BGUmePDs.js → plugin-header-B16ya8ma.js} +1 -1
  124. package/dist/client/assets/{plugin-header-Bas1mlKg.js → plugin-header-DDK1Gzuw.js} +1 -1
  125. package/dist/client/assets/popover-Brg4j9U4.js +1 -0
  126. package/dist/client/assets/project-layout-BO93auVr.js +1 -0
  127. package/dist/client/assets/projects-list-UJWNTYbm.js +1 -0
  128. package/dist/client/assets/ranking-layout-C5-IAJdb.js +1 -0
  129. package/dist/client/assets/{readme-viewer-6FL6XLyI.js → readme-viewer-D9gvMWcQ.js} +1 -1
  130. package/dist/client/assets/{registry-layout-DYG56sJW.js → registry-layout-lalPIUy1.js} +3 -3
  131. package/dist/client/assets/{registry-utils-DC7a4FRQ.js → registry-utils-BHPNdF4d.js} +1 -1
  132. package/dist/client/assets/{reports-layout-DW-iK2df.js → reports-layout-DxDhUGJ8.js} +1 -1
  133. package/dist/client/assets/{reset-password-BqXH6TI0.js → reset-password-DL3lIlmS.js} +1 -1
  134. package/dist/client/assets/{resizable-Bmi8ywnl.js → resizable-FI4WTwGD.js} +1 -1
  135. package/dist/client/assets/{save-actions-6MVOB16y.js → save-actions-BcqCo4y3.js} +1 -1
  136. package/dist/client/assets/{scroll-area-SCgyyuRW.js → scroll-area-D0QNw4tp.js} +1 -1
  137. package/dist/client/assets/{select-CGP3oimv.js → select-D1oSPElz.js} +1 -1
  138. package/dist/client/assets/shell-layout-xyeS0lIg.js +3 -0
  139. package/dist/client/assets/{skeleton-mQwjcvS8.js → skeleton-DlHAPl4v.js} +1 -1
  140. package/dist/client/assets/{spinner-Cf0i7zzZ.js → spinner-BXKsVp1S.js} +1 -1
  141. package/dist/client/assets/{store-invite-C-CBwltf.js → store-invite-CCiSQtm-.js} +1 -1
  142. package/dist/client/assets/{switch-DhSajm1n.js → switch-CrrLS5F0.js} +1 -1
  143. package/dist/client/assets/{table-6jko7EVZ.js → table-DlgTYaKr.js} +1 -1
  144. package/dist/client/assets/{tabs-KIo7byD9.js → tabs-Brz8FGNW.js} +1 -1
  145. package/dist/client/assets/tasks--lG17-41.js +1 -0
  146. package/dist/client/assets/{textarea-CGNubTQN.js → textarea-COlgWmtQ.js} +1 -1
  147. package/dist/client/assets/{time-range-picker-Da1I56kP.js → time-range-picker-Dp-73_eh.js} +1 -1
  148. package/dist/client/assets/{toggle-group-BgYBpox6.js → toggle-group-DRLYbeNR.js} +1 -1
  149. package/dist/client/assets/{tools-list-CZoJzyx-.js → tools-list-BnQCFmS3.js} +1 -1
  150. package/dist/client/assets/{tooltip-BMv47aFy.js → tooltip-wsLIWfBV.js} +1 -1
  151. package/dist/client/assets/{topbar-portal-UpXPvyHv.js → topbar-portal-L3nYDcPb.js} +1 -1
  152. package/dist/client/assets/{types-C_2JvMAa.js → types-DCpHM3H3.js} +1 -1
  153. package/dist/client/assets/{use-binding-C2dcwpZA.js → use-binding-DA-OMuxn.js} +1 -1
  154. package/dist/client/assets/{use-connection-IkOXJVs8.js → use-connection-CpIvuZgj.js} +1 -1
  155. package/dist/client/assets/{use-copy-BowGG0wE.js → use-copy-DTGgn0Wp.js} +1 -1
  156. package/dist/client/assets/{use-create-virtual-mcp-BV-BX4O9.js → use-create-virtual-mcp-V8EAMd66.js} +1 -1
  157. package/dist/client/assets/{use-install-from-registry-AdOkNCam.js → use-install-from-registry-Ckk1r5Fb.js} +1 -1
  158. package/dist/client/assets/{use-list-state-Coa6tFOY.js → use-list-state-DttTc7Mb.js} +1 -1
  159. package/dist/client/assets/{use-llm-U5Tp2HaY.js → use-llm-DORYQD8S.js} +1 -1
  160. package/dist/client/assets/{use-mcp-prompts-Bzsxv_BD.js → use-mcp-prompts-Cu7mPqG1.js} +1 -1
  161. package/dist/client/assets/{use-mcp-tools-BSeWl3ZG.js → use-mcp-tools-DKBxq10d.js} +1 -1
  162. package/dist/client/assets/{use-members-CfArLi61.js → use-members-BUB6yk2M.js} +1 -1
  163. package/dist/client/assets/{use-mobile-DT3I3lYu.js → use-mobile-JSb9Dln5.js} +1 -1
  164. package/dist/client/assets/{use-project-7ErRlLNv.js → use-project-r6R5RHNq.js} +1 -1
  165. package/dist/client/assets/{use-settings-modal-B_qfHumC.js → use-settings-modal-D8rRTAi8.js} +1 -1
  166. package/dist/client/assets/{use-view-mode-C-QHw5_R.js → use-view-mode-BM1VKKNU.js} +1 -1
  167. package/dist/client/assets/{use-virtual-mcp-CKU96AGJ.js → use-virtual-mcp-C4vCklTv.js} +1 -1
  168. package/dist/client/assets/useInfiniteQuery-1kxKg8ab.js +1 -0
  169. package/dist/client/assets/{useMutation-DXZOMQax.js → useMutation-C0x6BtF8.js} +1 -1
  170. package/dist/client/assets/useQuery-ITBNMKD9.js +1 -0
  171. package/dist/client/assets/useSuspenseInfiniteQuery-BFqd2TrW.js +1 -0
  172. package/dist/client/assets/workflow-BoAHMqIZ.js +1 -0
  173. package/dist/client/index.html +2 -2
  174. package/package.json +1 -1
  175. package/dist/client/assets/X-CdhcYEPm.js +0 -1
  176. package/dist/client/assets/agent-detail-BK0xRmME.js +0 -2
  177. package/dist/client/assets/agents-9jKX-hiO.js +0 -1
  178. package/dist/client/assets/connection-detail-DWCec7hj.js +0 -1
  179. package/dist/client/assets/connections-Cy0bbe_1.js +0 -1
  180. package/dist/client/assets/constants-nlkFmlkQ.js +0 -1
  181. package/dist/client/assets/dialog-DsUvY3CK.js +0 -1
  182. package/dist/client/assets/dynamic-plugin-layout-Civxlcd_.js +0 -1
  183. package/dist/client/assets/editable-thread-title-zu9gS6K0.js +0 -16
  184. package/dist/client/assets/index-9OYqqcI6.js +0 -1
  185. package/dist/client/assets/index-DGca9RW1.css +0 -1
  186. package/dist/client/assets/index-DoxdpoOD.js +0 -1
  187. package/dist/client/assets/mcp-server-detail-D0XVRD6T.js +0 -2
  188. package/dist/client/assets/members-CEnPPP7a.js +0 -3
  189. package/dist/client/assets/monitoring-dashboard-edit-QSsBIHZf.js +0 -1
  190. package/dist/client/assets/page-6hSDNqkW.js +0 -1
  191. package/dist/client/assets/popover-BtiU6fhH.js +0 -1
  192. package/dist/client/assets/project-layout-Bx4fNXhV.js +0 -1
  193. package/dist/client/assets/projects-list-DlikR8oG.js +0 -1
  194. package/dist/client/assets/ranking-layout-CFyA0-Iw.js +0 -1
  195. package/dist/client/assets/shell-layout-Digqb3dN.js +0 -3
  196. package/dist/client/assets/tasks-t3s4IpKE.js +0 -1
  197. package/dist/client/assets/use-deco-chat-open-CQvalpAq.js +0 -1
  198. package/dist/client/assets/useInfiniteQuery-uyheNs5A.js +0 -1
  199. package/dist/client/assets/useQuery-BnNC7qj6.js +0 -1
  200. package/dist/client/assets/useSuspenseInfiniteQuery-Bcy2cAxP.js +0 -1
  201. package/dist/client/assets/workflow-D41RuMSS.js +0 -1
@@ -0,0 +1,3 @@
1
+ import{r as P,c as $,j as s,E as Ue,u as fe,v as A,b as Ee,b9 as Oe,L as $e,c5 as mt,c6 as ut,O as K,a3 as ft,w as pt,z as xt,e as Be,d as oe,t as le,c7 as ht,ba as gt,m as bt,B as ze,A as jt,S as Fe,f as vt,h as Nt,N as yt,n as St,K as kt,aE as We,P as Ct}from"./index-C9zVB5WG.js";import{C as X}from"./index-QVlRbrQ5.js";import{I as wt}from"./integration-icon-DxUgniRd.js";import{u as Ge,P as de}from"./index-nJ7zp6px.js";import{d as _t,u as $t}from"./constants-BhT1RxOf.js";import{E as zt,i as It,a as Pt,S as At,b as Et,c as Ot,d as Tt,e as Mt}from"./editable-thread-title-CwlSHlt8.js";import{s as xe}from"./Plus-xPrSIBe6.js";import{t as Te}from"./Users03-B39x9j9y.js";import{i as Le}from"./dialog-Dvc12rqj.js";import{b as Dt,i as Lt}from"./context-BBcoPt-U.js";import{C as qe}from"./create-project-dialog-B8Pi5NuK.js";import{u as Ce,S as J}from"./skeleton-DlHAPl4v.js";import{t as Ke,u as Ve,i as Rt}from"./use-settings-modal-D8rRTAi8.js";import{n as Re}from"./CheckDone01-SmxvYrNZ.js";import{n as Ht}from"./Container-CAK8Ef10.js";import{e as Ut}from"./Dataflow03-jO7_7pxv.js";import{a as Bt}from"./Home02-B3qxGVx_.js";import{t as ke}from"./Settings01-C-qUCDkW.js";import{a as Ye,u as Qe}from"./use-project-r6R5RHNq.js";import{u as Ft}from"./use-mobile-JSb9Dln5.js";import{c as Wt,b as Gt,a as qt,T as Kt}from"./tooltip-wsLIWfBV.js";import{t as Ze}from"./ChevronDown-B_XlOG4n.js";import{A as me}from"./avatar-C9P0gqhN.js";import{c as Y,g as he,d as Vt,e as Yt,f as Qt,b as Xe,D as Je,a as et}from"./dropdown-menu-CkNoSZQN.js";import{i as ue}from"./Check-BIAvy6yX.js";import{C as Zt}from"./create-organization-dialog-DzVdn81Q.js";import{a as Xt}from"./Copy01-DhxT-EHF.js";import{i as Jt}from"./File06-Dq4QeYow.js";import{i as es}from"./Globe01-vtxLyn0R.js";import{n as pe}from"./LinkExternal01-DN5IcIrY.js";import{i as ts}from"./Shield01-CGOTAY5M.js";import{b as ss,a as is,P as rs}from"./popover-Brg4j9U4.js";import{n as He}from"./Inbox01-Cgsr8OUk.js";import{s as ns}from"./XClose-_flpZkDx.js";import{h as as}from"./use-connection-CpIvuZgj.js";import{b as ls}from"./use-mcp-tools-DKBxq10d.js";import{c as os,A as cs}from"./use-binding-DA-OMuxn.js";import{C as ds,b as ms,c as us}from"./collapsible-BR69xWDn.js";import{i as fs}from"./ChevronRight--WZMG8rl.js";import{u as Me,L as De}from"./localstorage-keys-CZwloscb.js";import{R as ps,a as tt,b as xs}from"./resizable-FI4WTwGD.js";import"./spinner-BXKsVp1S.js";import"./use-mcp-prompts-Cu7mPqG1.js";import"./useQuery-ITBNMKD9.js";import"./form--v_6A-Ne.js";import"./label-N7w17Mk3.js";import"./input-Dulb50P0.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-Djo3xiq5.js";import"./Edit01-BAKH21Ta.js";import"./XCircle-JTpXXWsC.js";import"./AlertCircle-DlPS0B2V.js";import"./select-D1oSPElz.js";import"./index-CIQsWYRd.js";import"./ArrowLeft-m0b492UP.js";import"./use-copy-DTGgn0Wp.js";import"./tabs-Brz8FGNW.js";import"./badge-Cd5VRqG2.js";import"./Code01-CF9Fqf4v.js";import"./use-virtual-mcp-C4vCklTv.js";import"./SearchMd-C6p4WuWU.js";import"./use-create-virtual-mcp-V8EAMd66.js";import"./marked.esm-BaswSlok.js";import"./markdown-BZXGJB-W.js";import"./types-DCpHM3H3.js";import"./Eye-CwfPY6I3.js";import"./Globe02-D5-pXhdl.js";import"./collection-search-DTH23sfv.js";import"./Loading01-DUKazYJk.js";import"./generate-id-Dyweu44Y.js";import"./Clock-DF385WmK.js";import"./Trash01-BtuExZ9Q.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-DORYQD8S.js";import"./checkbox-DBGyogTp.js";import"./AlignLeft-CK2LK9_P.js";import"./Image01-CdQc9_Kn.js";import"./RefreshCcw01-34kOjxGl.js";import"./useSuspenseInfiniteQuery-BFqd2TrW.js";import"./infiniteQueryObserver-fiTcrowg.js";import"./useMutation-C0x6BtF8.js";import"./textarea-COlgWmtQ.js";import"./alert-dialog-BDxMDVo1.js";import"./binder-BSqhIBEo.js";const st=({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"}));st.displayName="BarChart10";const it=({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"}));it.displayName="FaceSmile";const Ie=({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 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));Ie.displayName="LayoutLeft";const rt=({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"}));rt.displayName="LogOut01";function hs(){const t=$.c(65),{org:e}=fe(),[,i]=Ge(),{selectedVirtualMcp:n,modelsConnections:r,isChatEmpty:a,activeThreadId:l,createThread:o,switchToThread:c,threads:d}=Dt();let u;if(t[0]!==l||t[1]!==d){let W;t[3]!==l?(W=G=>G.id===l,t[3]=l,t[4]=W):W=t[4],u=d.find(W),t[0]=l,t[1]=d,t[2]=u}else u=t[2];const f=u,[m,y]=P.useState(!1),[N,v]=P.useTransition();let x;t[5]!==e.id?(x=_t(e.id),t[5]=e.id,t[6]=x):x=t[6];const p=n??x;let h;t[7]!==o?(h=()=>{v(()=>{o()})},t[7]=o,t[8]=h):h=t[8];const S=h;if(r.length===0){let W;t[9]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(de.Header.Left,{className:"gap-2"}),t[9]=W):W=t[9];let G;t[10]!==i?(G=()=>i(!1),t[10]=i,t[11]=G):G=t[11];let z;t[12]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=z):z=t[12];let q;t[13]!==G?(q=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[W,s.jsx(de.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:G,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:z})})]}),t[13]=G,t[14]=q):q=t[14];let ie;t[15]!==e?(ie=s.jsx(X.Main,{className:"flex flex-col items-center",children:s.jsx(X.EmptyState,{children:s.jsx(X.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=ie):ie=t[16];let ce;return t[17]!==q||t[18]!==ie?(ce=s.jsxs(X,{className:"animate-in fade-in-0 duration-200",children:[q,ie]}),t[17]=q,t[18]=ie,t[19]=ce):ce=t[19],ce}const j=m?"duration-300 opacity-0 -translate-x-4 pointer-events-none":N?"duration-150 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let g;t[20]!==j?(g=A("absolute inset-0 flex flex-col transition-[opacity,transform] ease-[var(--ease-out-quart)]",j),t[20]=j,t[21]=g):g=t[21];let b;t[22]!==f||t[23]!==a?(b=!a&&f?.title&&s.jsx(zt,{threadId:f.id,text:f.title,className:"text-sm font-medium text-foreground"}),t[22]=f,t[23]=a,t[24]=b):b=t[24];let _;t[25]!==b?(_=s.jsx(de.Header.Left,{className:"gap-2",children:b}),t[25]=b,t[26]=_):_=t[26];let C;t[27]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(xe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=C):C=t[27];let w;t[28]!==S||t[29]!==N?(w=s.jsx("button",{type:"button",onClick:S,disabled:N,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:C}),t[28]=S,t[29]=N,t[30]=w):w=t[30];let I;t[31]===Symbol.for("react.memo_cache_sentinel")?(I=()=>y(!0),t[31]=I):I=t[31];let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("button",{type:"button",onClick:I,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Chat history",children:s.jsx(It,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=R):R=t[32];let M;t[33]!==i?(M=()=>i(!1),t[33]=i,t[34]=M):M=t[34];let B;t[35]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=B):B=t[35];let D;t[36]!==M?(D=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:B}),t[36]=M,t[37]=D):D=t[37];let H;t[38]!==D||t[39]!==w?(H=s.jsxs(de.Header.Right,{className:"gap-1",children:[w,R,D]}),t[38]=D,t[39]=w,t[40]=H):H=t[40];let O;t[41]!==H||t[42]!==_?(O=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[_,H]}),t[41]=H,t[42]=_,t[43]=O):O=t[43];let L;t[44]!==p||t[45]!==a?(L=s.jsx(X.Main,{children:a?s.jsx(X.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(wt,{icon:p.icon,name:p.title,size:"lg",fallbackIcon:s.jsx(Te,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:p.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:p.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(X.IceBreakers,{})]})}):s.jsx(X.Messages,{})}),t[44]=p,t[45]=a,t[46]=L):L=t[46];let T;t[47]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(X.Footer,{children:s.jsx(X.Input,{})}),t[47]=T):T=t[47];let U;t[48]!==O||t[49]!==L||t[50]!==g?(U=s.jsxs("div",{className:g,children:[O,L,T]}),t[48]=O,t[49]=L,t[50]=g,t[51]=U):U=t[51];const ee=m?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let te;t[52]!==ee?(te=A("absolute inset-0 flex flex-col transition-[opacity,transform] duration-300 ease-[var(--ease-out-quart)]",ee),t[52]=ee,t[53]=te):te=t[53];let se;t[54]===Symbol.for("react.memo_cache_sentinel")?(se=()=>y(!1),t[54]=se):se=t[54];let V;t[55]!==l||t[56]!==c||t[57]!==d?(V=s.jsx(Pt,{threads:d,activeThreadId:l,onThreadSelect:c,onClose:se}),t[55]=l,t[56]=c,t[57]=d,t[58]=V):V=t[58];let F;t[59]!==te||t[60]!==V?(F=s.jsx("div",{className:te,children:V}),t[59]=te,t[60]=V,t[61]=F):F=t[61];let Q;return t[62]!==U||t[63]!==F?(Q=s.jsxs(X,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[U,F]}),t[62]=U,t[63]=F,t[64]=Q):Q=t[64],Q}function gs(){const t=$.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ue,{fallback:e,children:s.jsx(P.Suspense,{fallback:s.jsx(X.Skeleton,{}),children:s.jsx(hs,{})})}),t[1]=i):i=t[1],i}function bs(){const t=$.c(54),[e]=Ce(),{locator:i,org:n}=fe(),r=Ee(),a=Oe(),{org:l,project:o}=$e.parse(i),c=$e.isOrgAdminProject(i),{data:d}=Ye(n.id,o);let u;t[0]!==d?.enabledPlugins?(u=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=u):u=t[1];const f=u;let m;t[2]!==f?(m=E=>f.includes(E.pluginId),t[2]=f,t[3]=m):m=t[3];const y=mt.filter(m),N=a.location.pathname,v=`/${l}/${o}`,x=N===v||N===`${v}/`;let k;t[4]!==v||t[5]!==N?(k=E=>N.startsWith(`${v}/${E}`),t[4]=v,t[5]=N,t[6]=k):k=t[6];const p=k;let h;t[7]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(Bt,{}),t[7]=h):h=t[7];const S={key:"home",label:"Home",icon:h,isActive:x,onClick:()=>{x?window.dispatchEvent(new CustomEvent("reset-home-view")):r({to:"/$org/$project",params:{org:l,project:o}})}};let j;t[8]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Re,{}),t[8]=j):j=t[8];const g={key:"tasks",label:"Tasks",icon:j,isActive:p("tasks"),onClick:()=>r({to:"/$org/$project/tasks",params:{org:l,project:K}})};let b;t[9]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Ht,{}),t[9]=b):b=t[9];const _={key:"mcps",label:"Connections",icon:b,isActive:p("mcps"),onClick:()=>r({to:"/$org/$project/mcps",params:{org:l,project:K}})};let C;t[10]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(ft,{}),t[10]=C):C=t[10];const w={key:"projects",label:"Projects",icon:C,isActive:p("projects"),onClick:()=>r({to:"/$org/$project/projects",params:{org:l,project:K}})};let I;t[11]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(Ke,{}),t[11]=I):I=t[11];const R={key:"store",label:"Store",icon:I,isActive:p("store"),onClick:()=>r({to:"/$org/$project/store",params:{org:l,project:K}})};let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Te,{}),t[12]=M):M=t[12];const B={key:"agents",label:"Agents",icon:M,isActive:p("agents"),onClick:()=>r({to:"/$org/$project/agents",params:{org:l,project:K}})};let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(st,{}),t[13]=D):D=t[13];const H={key:"monitoring",label:"Monitor",icon:D,isActive:p("monitoring"),onClick:()=>r({to:"/$org/$project/monitoring",params:{org:l,project:K}})};let O;t[14]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(it,{}),t[14]=O):O=t[14];const L={key:"members",label:"Members",icon:O,isActive:p("members"),onClick:()=>r({to:"/$org/$project/members",params:{org:l,project:K}})},T=y.map(E=>({key:E.pluginId,label:E.label,icon:E.icon,isActive:p(E.pluginId),onClick:()=>r({to:"/$org/$project/$pluginId",params:{org:l,project:o,pluginId:E.pluginId}})}));let U;t[15]!==f?(U=E=>f.includes(E.pluginId),t[15]=f,t[16]=U):U=t[16];const te=ut.filter(U).map(E=>({type:"group",group:{id:`${E.pluginId}-${E.id}`,label:E.label,items:E.items.map((Z,ae)=>({key:`${E.pluginId}-${E.id}-${ae}`,label:Z.label,icon:Z.icon,isActive:p(E.pluginId),onClick:()=>r({to:"/$org/$project/$pluginId",params:{org:l,project:o,pluginId:E.pluginId}})})),defaultExpanded:E.defaultExpanded??!0}}));if(c){let E;t[17]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(ke,{}),t[17]=E):E=t[17];let Z;t[18]!==p?(Z=p("settings"),t[18]=p,t[19]=Z):Z=t[19];let ae;t[20]!==r||t[21]!==l?(ae=()=>r({to:"/$org/$project/settings",params:{org:l,project:K}}),t[20]=r,t[21]=l,t[22]=ae):ae=t[22];let ye;t[23]!==Z||t[24]!==ae?(ye={key:"settings",label:"Settings",icon:E,isActive:Z,onClick:ae},t[23]=Z,t[24]=ae,t[25]=ye):ye=t[25];const dt=ye,_e=[{type:"items",items:[S,...e.experimental_tasks?[g]:[],...e.experimental_projects?[w]:[]]},{type:"group",group:{id:"build",label:"Build",items:[B,_,R],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[H,L,dt],defaultExpanded:!0}}];if(T.length>0){let Se;t[26]!==T?(Se={type:"items",items:T},t[26]=T,t[27]=Se):Se=t[27],_e.push(Se)}return te.length>0&&_e.push(...te),_e}let se;t[28]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(Re,{}),t[28]=se):se=t[28];let V;t[29]!==p?(V=p("tasks"),t[29]=p,t[30]=V):V=t[30];let F;t[31]!==r||t[32]!==l||t[33]!==o?(F=()=>r({to:"/$org/$project/tasks",params:{org:l,project:o}}),t[31]=r,t[32]=l,t[33]=o,t[34]=F):F=t[34];let Q;t[35]!==V||t[36]!==F?(Q={key:"tasks",label:"Tasks",icon:se,isActive:V,onClick:F},t[35]=V,t[36]=F,t[37]=Q):Q=t[37];const W=Q;let G;t[38]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Ut,{}),t[38]=G):G=t[38];let z;t[39]!==p?(z=p("workflows"),t[39]=p,t[40]=z):z=t[40];let q;t[41]!==r||t[42]!==l||t[43]!==o?(q=()=>r({to:"/$org/$project/workflows",params:{org:l,project:o}}),t[41]=r,t[42]=l,t[43]=o,t[44]=q):q=t[44];let ie;t[45]!==z||t[46]!==q?(ie={key:"workflows",label:"Workflows",icon:G,isActive:z,onClick:q},t[45]=z,t[46]=q,t[47]=ie):ie=t[47];const ce=ie;let ve;t[48]!==e.experimental_tasks||t[49]!==W?(ve=e.experimental_tasks?[W]:[],t[48]=e.experimental_tasks,t[49]=W,t[50]=ve):ve=t[50];const Ne=[{type:"items",items:[S,...ve,ce]}];if(T.length>0){let E;t[51]===Symbol.for("react.memo_cache_sentinel")?(E={type:"divider"},t[51]=E):E=t[51],Ne.push(E);let Z;t[52]!==T?(Z={type:"items",items:T},t[52]=T,t[53]=Z):Z=t[53],Ne.push(Z)}return te.length>0&&Ne.push(...te),Ne}const js="sidebar_state",vs=3600*24*7,Ns="16rem",ys="18rem",Ss="3rem",ks="b",nt=P.createContext(null);function we(){const t=P.useContext(nt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Cs(t){const e=$.c(21),{defaultOpen:i,open:n,onOpenChange:r,children:a}=t,l=i===void 0?!0:i,o=Ft(),[c,d]=P.useState(!1),[u,f]=P.useState(l),m=n??u;let y;e[0]!==m||e[1]!==r?(y=_=>{const C=typeof _=="function"?_(m):_;r?r(C):f(C),document.cookie=`${js}=${C}; path=/; max-age=${vs}`},e[0]=m,e[1]=r,e[2]=y):y=e[2];const N=y;let v;e[3]!==o||e[4]!==N?(v=()=>o?d(_s):N(ws),e[3]=o,e[4]=N,e[5]=v):v=e[5];const x=v;let k,p;e[6]!==x?(k=()=>{const _=C=>{if(C.key===ks&&(C.metaKey||C.ctrlKey)){const w=C.target;if(w.tagName==="INPUT"||w.tagName==="TEXTAREA"||w.isContentEditable)return;C.preventDefault(),x()}};return globalThis.addEventListener("keydown",_),()=>globalThis.removeEventListener("keydown",_)},p=[x],e[6]=x,e[7]=k,e[8]=p):(k=e[7],p=e[8]),P.useEffect(k,p);const h=m?"expanded":"collapsed";let S;e[9]!==o||e[10]!==m||e[11]!==c||e[12]!==N||e[13]!==h||e[14]!==x?(S={state:h,open:m,setOpen:N,isMobile:o,openMobile:c,setOpenMobile:d,toggleSidebar:x},e[9]=o,e[10]=m,e[11]=c,e[12]=N,e[13]=h,e[14]=x,e[15]=S):S=e[15];const j=S;let g;e[16]!==a?(g=s.jsx(Wt,{delayDuration:0,children:a}),e[16]=a,e[17]=g):g=e[17];let b;return e[18]!==j||e[19]!==g?(b=s.jsx(nt.Provider,{value:j,children:g}),e[18]=j,e[19]=g,e[20]=b):b=e[20],b}function ws(t){return!t}function _s(t){return!t}function $s(t){const e=$.c(14);let i,n,r,a;e[0]!==t?({className:n,style:a,children:i,...r}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=r,e[4]=a):(i=e[1],n=e[2],r=e[3],a=e[4]);let l;e[5]!==a?(l={"--sidebar-width":Ns,"--sidebar-width-icon":Ss,...a},e[5]=a,e[6]=l):l=e[6];const o=l;let c;e[7]!==n?(c=A("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]!==r||e[11]!==o||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:o,className:c,...r,children:i}),e[9]=i,e[10]=r,e[11]=o,e[12]=c,e[13]=d):d=e[13],d}function zs(t){const e=$.c(42);let i,n,r,a,l,o;e[0]!==t?({side:a,variant:l,collapsible:o,className:n,children:i,...r}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=r,e[4]=a,e[5]=l,e[6]=o):(i=e[1],n=e[2],r=e[3],a=e[4],l=e[5],o=e[6]);const c=a===void 0?"left":a,d=l===void 0?"sidebar":l,u=o===void 0?"offcanvas":o,{isMobile:f,state:m,openMobile:y,setOpenMobile:N}=we();if(u==="none"){let g;e[7]!==n?(g=A("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=g):g=e[8];let b;return e[9]!==i||e[10]!==r||e[11]!==g?(b=s.jsx("div",{"data-slot":"sidebar",className:g,...r,children:i}),e[9]=i,e[10]=r,e[11]=g,e[12]=b):b=e[12],b}if(f){let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g={"--sidebar-width":ys},e[13]=g):g=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsxs(Et,{className:"sr-only",children:[s.jsx(Ot,{children:"Sidebar"}),s.jsx(Tt,{children:"Displays the mobile sidebar."})]}),e[14]=b):b=e[14];let _;e[15]!==i?(_=s.jsx("div",{className:"flex h-full w-full flex-col",children:i}),e[15]=i,e[16]=_):_=e[16];let C;e[17]!==c||e[18]!==_?(C=s.jsxs(Mt,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:g,side:c,children:[b,_]}),e[17]=c,e[18]=_,e[19]=C):C=e[19];let w;return e[20]!==y||e[21]!==r||e[22]!==N||e[23]!==C?(w=s.jsx(At,{open:y,onOpenChange:N,...r,children:C}),e[20]=y,e[21]=r,e[22]=N,e[23]=C,e[24]=w):w=e[24],w}const v=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let x;e[25]!==v?(x=A("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",v),e[25]=v,e[26]=x):x=e[26];const k=m==="collapsed"?u:"";let p;e[27]!==n?(p=A("flex flex-col h-full w-(--sidebar-width)",n),e[27]=n,e[28]=p):p=e[28];let h;e[29]!==i?(h=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]=h):h=e[30];let S;e[31]!==r||e[32]!==p||e[33]!==h?(S=s.jsx("div",{"data-slot":"sidebar-container",className:p,...r,children:h}),e[31]=r,e[32]=p,e[33]=h,e[34]=S):S=e[34];let j;return e[35]!==c||e[36]!==m||e[37]!==x||e[38]!==k||e[39]!==S||e[40]!==d?(j=s.jsx("div",{className:x,"data-state":m,"data-collapsible":k,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:S}),e[35]=c,e[36]=m,e[37]=x,e[38]=k,e[39]=S,e[40]=d,e[41]=j):j=e[41],j}function Is(t){const e=$.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 r;e[3]!==i?(r=A("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]=r):r=e[4];let a;return e[5]!==n||e[6]!==r?(a=s.jsx("main",{"data-slot":"sidebar-inset",className:r,...n}),e[5]=n,e[6]=r,e[7]=a):a=e[7],a}function at(t){const e=$.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 r;e[3]!==i?(r=A("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==r?(a=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:r,...n}),e[5]=n,e[6]=r,e[7]=a):a=e[7],a}function Ps(t){const e=$.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 r;e[3]!==i?(r=A("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==r?(a=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:r,...n}),e[5]=n,e[6]=r,e[7]=a):a=e[7],a}function As(t){const e=$.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 r;e[3]!==i?(r=A("h-4 m-0! w-full",i),e[3]=i,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==r?(a=s.jsx("div",{"data-sidebar":"separator",className:r,...n}),e[5]=n,e[6]=r,e[7]=a):a=e[7],a}function Es(t){const e=$.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 r;e[3]!==i?(r=A("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==r?(a=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:r,...n}),e[5]=n,e[6]=r,e[7]=a):a=e[7],a}function ge(t){const e=$.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 r;e[3]!==i?(r=A("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==r?(a=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:r,...n}),e[5]=n,e[6]=r,e[7]=a):a=e[7],a}function be(t){const e=$.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 r;e[3]!==i?(r=A("w-full text-sm",i),e[3]=i,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==r?(a=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:r,...n}),e[5]=n,e[6]=r,e[7]=a):a=e[7],a}function ne(t){const e=$.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 r;e[3]!==i?(r=A("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==r?(a=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:r,...n}),e[5]=n,e[6]=r,e[7]=a):a=e[7],a}function re(t){const e=$.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 r;e[3]!==i?(r=A("group/menu-item relative",i),e[3]=i,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==r?(a=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:r,...n}),e[5]=n,e[6]=r,e[7]=a):a=e[7],a}const Os=xt("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 je(t){const e=$.c(28);let i,n,r,a,l,o,c;e[0]!==t?({asChild:r,isActive:a,variant:l,size:o,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=r,e[4]=a,e[5]=l,e[6]=o,e[7]=c):(i=e[1],n=e[2],r=e[3],a=e[4],l=e[5],o=e[6],c=e[7]);const d=r===void 0?!1:r,u=a===void 0?!1:a,f=l===void 0?"default":l,m=o===void 0?"default":o,y=d?pt:"button",{isMobile:N,state:v}=we();let x;e[8]!==i||e[9]!==m||e[10]!==f?(x=A(Os({variant:f,size:m}),i),e[8]=i,e[9]=m,e[10]=f,e[11]=x):x=e[11];let k;e[12]!==y||e[13]!==u||e[14]!==n||e[15]!==m||e[16]!==x?(k=s.jsx(y,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":u,className:x,...n}),e[12]=y,e[13]=u,e[14]=n,e[15]=m,e[16]=x,e[17]=k):k=e[17];const p=k;if(!c)return p;if(typeof c=="string"){let b;e[18]!==c?(b={children:c},e[18]=c,e[19]=b):b=e[19],c=b}let h;e[20]!==p?(h=s.jsx(qt,{asChild:!0,children:p}),e[20]=p,e[21]=h):h=e[21];const S=v!=="collapsed"||N;let j;e[22]!==S||e[23]!==c?(j=s.jsx(Gt,{side:"right",align:"center",hidden:S,...c}),e[22]=S,e[23]=c,e[24]=j):j=e[24];let g;return e[25]!==h||e[26]!==j?(g=s.jsxs(Kt,{children:[h,j]}),e[25]=h,e[26]=j,e[27]=g):g=e[27],g}function Ts(t){const e=$.c(11),{label:i,children:n,defaultExpanded:r}=t,a=r===void 0?!0:r,[l,o]=P.useState(a),{state:c}=we(),d=c==="collapsed";let u;e[0]!==l||e[1]!==d||e[2]!==i?(u=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(ne,{children:s.jsx(re,{children:s.jsxs(je,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>o(!l),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(Ze,{size:12,className:A("text-muted-foreground transition-transform duration-200",!l&&"-rotate-90")})]})})}),e[0]=l,e[1]=d,e[2]=i,e[3]=u):u=e[3];let f;e[4]!==n||e[5]!==l||e[6]!==d?(f=(d||l)&&s.jsx(be,{children:s.jsx(ne,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=l,e[6]=d,e[7]=f):f=e[7];let m;return e[8]!==u||e[9]!==f?(m=s.jsxs(ge,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[u,f]}),e[8]=u,e[9]=f,e[10]=m):m=e[10],m}function lt(t){const e=$.c(13),{item:i}=t;let n;e[0]!==i.icon?(n=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[0]=i.icon,e[1]=n):n=e[1];let r;e[2]!==i.label?(r=s.jsx("span",{className:"truncate group-data-[collapsible=icon]:hidden",children:i.label}),e[2]=i.label,e[3]=r):r=e[3];let a;e[4]!==i.isActive||e[5]!==i.label||e[6]!==i.onClick||e[7]!==n||e[8]!==r?(a=s.jsxs(je,{onClick:i.onClick,isActive:i.isActive,tooltip:i.label,children:[n,r]}),e[4]=i.isActive,e[5]=i.label,e[6]=i.onClick,e[7]=n,e[8]=r,e[9]=a):a=e[9];let l;return e[10]!==i.key||e[11]!==a?(l=s.jsx(re,{children:a},i.key),e[10]=i.key,e[11]=a,e[12]=l):l=e[12],l}function Ms(t){const e=$.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(As,{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,r=i.group.defaultExpanded;let a;e[2]!==i.group.items?(a=i.group.items.map(Ls),e[2]=i.group.items,e[3]=a):a=e[3];let l;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==a?(l=s.jsx(Ts,{label:n,defaultExpanded:r,children:a}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=a,e[7]=l):l=e[7],l}case"items":{let n;e[8]!==i.items?(n=i.items.map(Ds),e[8]=i.items,e[9]=n):n=e[9];let r;return e[10]!==n?(r=s.jsx(ge,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(be,{children:s.jsx(ne,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=r):r=e[11],r}}}function Ds(t){return s.jsx(lt,{item:t},t.key)}function Ls(t){return s.jsx(lt,{item:t},t.key)}function ot(t){const e=$.c(14),{sections:i,header:n,footer:r,additionalContent:a,variant:l,collapsible:o,contentClassName:c}=t,d=l===void 0?"sidebar":l,u=o===void 0?"icon":o;let f;e[0]!==c?(f=A("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]=f):f=e[1];let m;e[2]!==i?(m=i.map(Rs),e[2]=i,e[3]=m):m=e[3];let y;e[4]!==a||e[5]!==f||e[6]!==m?(y=s.jsxs(Es,{className:f,children:[m,a]}),e[4]=a,e[5]=f,e[6]=m,e[7]=y):y=e[7];let N;return e[8]!==u||e[9]!==r||e[10]!==n||e[11]!==y||e[12]!==d?(N=s.jsxs(zs,{variant:d,collapsible:u,children:[n,y,r]}),e[8]=u,e[9]=r,e[10]=n,e[11]=y,e[12]=d,e[13]=N):N=e[13],N}function Rs(t,e){return s.jsx(Ms,{section:t},e)}ot.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(J,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function Hs(){const t=$.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(J,{className:"h-8 w-full rounded-lg"}),s.jsx(J,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function Us(t){const e=$.c(12),{organizationId:i,currentProjectSlug:n,onSelect:r}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={suspense:!0},e[0]=a):a=e[0];const{data:l}=Qe(i,a);let o,c;if(e[1]!==n||e[2]!==r||e[3]!==l){c=Symbol.for("react.early_return_sentinel");e:{const u=l?.filter(Bs)??[];if(u.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 f;e[7]!==n||e[8]!==r?(f=m=>{const y=n===m.slug,N=m.ui?.themeColor??"#3B82F6";return s.jsxs(Y,{className:A("gap-2.5",y&&"bg-accent"),onClick:()=>r(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:{backgroundColor:N},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}),y&&s.jsx(ue,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},m.id)},e[7]=n,e[8]=r,e[9]=f):f=e[9],o=u.map(f)}e[1]=n,e[2]=r,e[3]=l,e[4]=o,e[5]=c}else o=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==o?(d=s.jsx(s.Fragment,{children:o}),e[10]=o,e[11]=d):d=e[11],d}function Bs(t){return t.slug!==K}function Fs(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 Pe(t){const e=$.c(44),{isCollapsed:i,onCreateProject:n}=t,r=i===void 0?!1:i;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:l,project:o}=Be(a),{data:c}=oe.useListOrganizations(),d=Ee(),u=c?.find(z=>z.slug===l),[f,m]=P.useState(!1),[y]=Ce(),N=y.experimental_projects,v=o===K,{data:x}=Ye(u?.id??"",v?"":o??"");let k;e[1]!==l?(k=(z,q)=>z.slug===l?-1:q.slug===l?1:z.name.localeCompare(q.name),e[1]=l,e[2]=k):k=e[2];const p=[...c??[]].sort(k);let h;e[3]!==d||e[4]!==l?(h=()=>{l&&d({to:"/$org/$project",params:{org:l,project:K}})},e[3]=d,e[4]=l,e[5]=h):h=e[5];const S=h;let j;e[6]!==d||e[7]!==l?(j=z=>{l&&d({to:"/$org/$project",params:{org:l,project:z}})},e[6]=d,e[7]=l,e[8]=j):j=e[8];const g=j;let b;e[9]!==d?(b=z=>{d({to:"/$org/$project",params:{org:z,project:K}})},e[9]=d,e[10]=b):b=e[10];const _=b;let C;e[11]!==n?(C=n?()=>n():void 0,e[11]=n,e[12]=C):C=e[12];const w=C;let I;e[13]!==d||e[14]!==l||e[15]!==o?(I=()=>{if(!l||!o)return;const z=o===K;d({to:"/$org/$project",params:{org:l,project:o},search:q=>({...q,settings:z?"org.general":`project:${o}:general`})})},e[13]=d,e[14]=l,e[15]=o,e[16]=I):I=e[16];const R=I,M=Je,B=r?"w-auto pr-1.5":"w-full";let D;e[17]!==B?(D=A("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]",B),e[17]=B,e[18]=D):D=e[18];const H=v?s.jsx("div",{className:A("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)]",r?"size-6":"size-8"),style:u?.logo?void 0:Fs(u?.name??""),children:u?.logo?s.jsx("img",{src:u.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:A("font-semibold leading-none",r?"text-[9px]":"text-xs"),children:(u?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:A("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)]",r?"size-6":"size-8"),style:{backgroundColor:x?.ui?.themeColor??"#60a5fa"},children:x?.ui?.icon?s.jsx("img",{src:x.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:A("font-semibold text-white",r?"text-xs":"text-lg"),children:(x?.name??o??"?").charAt(0).toUpperCase()})});let O;e[19]!==u?.name||e[20]!==x?.name||e[21]!==N||e[22]!==r||e[23]!==v||e[24]!==o?(O=!r&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:N?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:u?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:v?"Studio":x?.name??o??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:u?.name??"Select org"})}),s.jsx(Lt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=u?.name,e[20]=x?.name,e[21]=N,e[22]=r,e[23]=v,e[24]=o,e[25]=O):O=e[25];let L;e[26]!==D||e[27]!==H||e[28]!==O?(L=s.jsx(et,{asChild:!0,children:s.jsxs("button",{type:"button",className:D,children:[H,O]})}),e[26]=D,e[27]=H,e[28]=O,e[29]=L):L=e[29];const T=Xe,U="start",ee="bottom",te="w-64 flex flex-col gap-0.5",se=Ws,V=N?s.jsxs(s.Fragment,{children:[s.jsxs(Y,{className:A("gap-2.5",v&&"bg-accent"),onClick:S,children:[s.jsx(me,{url:u?.logo??"",fallback:u?.name??"",size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",u?.name]}),v&&s.jsx(ue,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]}),s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),u&&s.jsx(P.Suspense,{fallback:s.jsx(Hs,{}),children:s.jsx(Us,{organizationId:u.id,currentProjectSlug:o,orgSlug:l??"",onSelect:g})}),w&&s.jsxs(Y,{className:"gap-2.5",onClick:w,children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx(he,{}),s.jsxs(Vt,{children:[s.jsxs(Yt,{className:"gap-2.5",children:[s.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(Qt,{className:"w-48 flex flex-col gap-0.5",children:[p.map(z=>s.jsxs(Y,{className:A("gap-2.5",z.slug===l&&"bg-accent"),onClick:()=>_(z.slug),children:[s.jsx(me,{url:z.logo??"",fallback:z.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:z.name}),z.slug===l&&s.jsx(ue,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},z.id)),s.jsx(he,{}),s.jsxs(Y,{className:"gap-2.5",onClick:()=>m(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]})]})]}),s.jsxs(Y,{className:"gap-2.5",onClick:R,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Organizations"}),p.map(z=>s.jsxs(Y,{className:A("gap-2.5",z.slug===l&&"bg-accent"),onClick:()=>_(z.slug),children:[s.jsx(me,{url:z.logo??"",fallback:z.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:z.name}),z.slug===l&&s.jsx(ue,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},z.id)),s.jsxs(Y,{className:"gap-2.5",onClick:()=>m(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]}),s.jsx(he,{}),s.jsxs(Y,{className:"gap-2.5",onClick:R,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let F;e[30]!==T||e[31]!==se||e[32]!==V?(F=s.jsx(T,{align:U,side:ee,className:te,onCloseAutoFocus:se,children:V}),e[30]=T,e[31]=se,e[32]=V,e[33]=F):F=e[33];let Q;e[34]!==M||e[35]!==L||e[36]!==F?(Q=s.jsxs(M,{children:[L,F]}),e[34]=M,e[35]=L,e[36]=F,e[37]=Q):Q=e[37];let W;e[38]!==f||e[39]!==m?(W=s.jsx(Zt,{open:f,onOpenChange:m}),e[38]=f,e[39]=m,e[40]=W):W=e[40];let G;return e[41]!==Q||e[42]!==W?(G=s.jsxs(s.Fragment,{children:[Q,W]}),e[41]=Q,e[42]=W,e[43]=G):G=e[43],G}function Ws(t){return t.preventDefault()}Pe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(J,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(J,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ae(t){const e=$.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:r}=we(),a=n==="collapsed";let l;return e[0]!==a||e[1]!==i||e[2]!==r?(l=s.jsx(at,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ne,{children:s.jsx(re,{children:a?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(Pe,{isCollapsed:!0,onCreateProject:i}),s.jsx(je,{onClick:r,tooltip:"Expand sidebar",children:s.jsx(Ie,{})})]}):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(Pe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(je,{onClick:r,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ie,{})})]})})})}),e[0]=a,e[1]=i,e[2]=r,e[3]=l):l=e[3],l}Ae.Skeleton=function(){return s.jsx(at,{className:"px-3",children:s.jsx(ne,{children:s.jsx(re,{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(J,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(J,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(J,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function Gs(t){const e=$.c(50),{user:i,userImage:n}=t,{open:r}=Ve(),[a,l]=P.useState(!1);let o;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(o=()=>{const ee=`ID: ${i.id}
2
+ Name: ${i.name||"N/A"}
3
+ Email: ${i.email}`;navigator.clipboard.writeText(ee),l(!0),le.success("User info copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=o):o=e[3];const c=o,d=i.name||i.email||"U";let u;e[4]!==d||e[5]!==n?(u=s.jsx(me,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=u):u=e[6];const f=i.name||"User";let m;e[7]!==f?(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:f})}),e[7]=f,e[8]=m):m=e[8];let y;e[9]!==u||e[10]!==m?(y=s.jsx(et,{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:[u,m]})}),e[9]=u,e[10]=m,e[11]=y):y=e[11];const N=i.name||i.email||"U";let v;e[12]!==N||e[13]!==n?(v=s.jsx(me,{url:n,fallback:N,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=N,e[13]=n,e[14]=v):v=e[14];const x=i.name||"User";let k;e[15]!==x?(k=s.jsx("div",{className:"text-sm font-medium truncate",children:x}),e[15]=x,e[16]=k):k=e[16];let p;e[17]!==i.email?(p=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i.email}),e[17]=i.email,e[18]=p):p=e[18];let h;e[19]!==k||e[20]!==p?(h=s.jsxs("div",{className:"flex-1 min-w-0",children:[k,p]}),e[19]=k,e[20]=p,e[21]=h):h=e[21];let S;e[22]!==a?(S=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:a?s.jsx(ue,{size:14,className:"text-green-600"}):s.jsx(Xt,{size:14,className:"text-muted-foreground"})}),e[22]=a,e[23]=S):S=e[23];let j;e[24]!==c||e[25]!==h||e[26]!==S||e[27]!==v?(j=s.jsxs(Y,{onClick:c,className:"gap-2.5 group",children:[v,h,S]}),e[24]=c,e[25]=h,e[26]=S,e[27]=v,e[28]=j):j=e[28];let g;e[29]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(he,{}),e[29]=g):g=e[29];let b;e[30]!==r?(b=()=>r("account.preferences"),e[30]=r,e[31]=b):b=e[31];let _,C;e[32]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),C=s.jsx("span",{children:"Settings"}),e[32]=_,e[33]=C):(_=e[32],C=e[33]);let w;e[34]!==b?(w=s.jsxs(Y,{className:"gap-2.5",onClick:b,children:[_,C]}),e[34]=b,e[35]=w):w=e[35];let I;e[36]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(Y,{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(Jt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=I):I=e[36];let R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(Y,{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(ts,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=R):R=e[37];let M;e[38]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Y,{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(ht,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=M):M=e[38];let B;e[39]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Y,{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(Te,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=B):B=e[39];let D,H;e[40]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Y,{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(es,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),H=s.jsx(he,{}),e[40]=D,e[41]=H):(D=e[40],H=e[41]);let O;e[42]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsxs(Y,{className:"gap-2.5",onClick:qs,children:[s.jsx(rt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=O):O=e[42];let L;e[43]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.131.3"]})}),e[43]=L):L=e[43];let T;e[44]!==j||e[45]!==w?(T=s.jsxs(Xe,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ks,children:[j,g,w,I,R,M,B,D,H,O,L]}),e[44]=j,e[45]=w,e[46]=T):T=e[46];let U;return e[47]!==T||e[48]!==y?(U=s.jsxs(Je,{children:[y,T]}),e[47]=T,e[48]=y,e[49]=U):U=e[49],U}function qs(){return oe.signOut()}function Ks(t){return t.preventDefault()}function ct(){const t=$.c(7),{data:e}=oe.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(me,{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 r;t[1]!==n||t[2]!==i?(r={...i,name:n},t[1]=n,t[2]=i,t[3]=r):r=t[3];const a=r,l=i.image;let o;return t[4]!==l||t[5]!==a?(o=s.jsx(Gs,{user:a,userImage:l}),t[4]=l,t[5]=a,t[6]=o):o=t[6],o}function Vs({invitation:t}){const[e,i]=P.useState(!1),[n,r]=P.useState(!1),a=bt(),l=async()=>{i(!0);try{const c=await oe.organization.acceptInvitation({invitationId:t.id});if(c.error)le.error(c.error.message),i(!1);else{const d=await oe.organization.setActive({organizationId:t.organizationId});le.success("Invitation accepted!");const u=d?.data?.slug;window.location.href=u?`/${u}`:"/"}}catch{le.error("Failed to accept invitation"),i(!1)}},o=async()=>{r(!0);try{const c=await oe.organization.rejectInvitation({invitationId:t.id});c.error?(le.error(c.error.message),r(!1)):(le.success("Invitation declined"),a.invalidateQueries())}catch{le.error("Failed to decline invitation"),r(!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(ze,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:l,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(ue,{size:14})}),s.jsx(ze,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:o,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(ns,{size:14})})]})]})}function Ys(){const t=P.useContext(gt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class Qs 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 Zs="gateway-chip-period";function Xs(){try{const t=localStorage.getItem(Zs);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function Js(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 ei(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function ti(t){const e=$.c(42),{connectionId:i}=t,{open:n}=Ve(),{org:r}=fe();let a;e[0]!==i||e[1]!==r.id?(a={connectionId:i,orgId:r.id},e[0]=i,e[1]=r.id,e[2]=a):a=e[2];const l=$t(a);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={},e[3]=o):o=e[3];let c;e[4]!==l?(c={client:l,toolName:"GATEWAY_USAGE",toolArguments:o,staleTime:6e4,select:si},e[4]=l,e[5]=c):c=e[5];const{data:d}=ls(c),u=d?.billing.mode??"prepaid",f=d?.limit.total??null,m=d?.limit.remaining??0;let y;e[6]!==d?.usage?(y=d?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=d?.usage,e[7]=y):y=e[7];const N=y;let v,x,k,p,h,S,j;if(e[8]!==u||e[9]!==v||e[10]!==m||e[11]!==f||e[12]!==n||e[13]!==N){let _;if(u==="prepaid"){v="Credits";let w;e[21]!==m?(w=m.toFixed(2),e[21]=m,e[22]=w):w=e[22],x=`$${w}`,_=Js(m,f)}else if(f!=null&&f>0){const w=f-m;let I;e[23]!==f||e[24]!==w?(I=Math.round(w/f*100),e[23]=f,e[24]=w,e[25]=I):I=e[25];const R=Math.min(100,I);v="Usage",x=`${R}%`,_=ei(R)}else{const w=Xs(),I=w==="daily"?N.daily:w==="weekly"?N.weekly:N.monthly,R=w==="daily"?"/day":w==="weekly"?"/wk":"/mo";v="Usage";let M;e[26]!==I?(M=I.toFixed(2),e[26]=I,e[27]=M):M=e[27],x=`$${M}${R}`,_="text-foreground/70"}p="button",e[28]!==n?(h=()=>n("org.billing"),e[28]=n,e[29]=h):h=e[29],S="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 C;e[30]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Rt,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=C):C=e[30],e[31]!==v?(j=s.jsxs("div",{className:"flex items-center gap-1.5",children:[C,s.jsx("span",{className:"text-xs text-muted-foreground",children:v})]}),e[31]=v,e[32]=j):j=e[32],k=A("text-xs font-medium tabular-nums",_),e[8]=u,e[9]=v,e[10]=m,e[11]=f,e[12]=n,e[13]=N,e[14]=k,e[15]=p,e[16]=h,e[17]=S,e[18]=j,e[19]=v,e[20]=x}else k=e[14],p=e[15],h=e[16],S=e[17],j=e[18],v=e[19],x=e[20];let g;e[33]!==k||e[34]!==x?(g=s.jsx("span",{className:k,children:x}),e[33]=k,e[34]=x,e[35]=g):g=e[35];let b;return e[36]!==g||e[37]!==p||e[38]!==h||e[39]!==S||e[40]!==j?(b=s.jsxs("button",{type:p,onClick:h,className:S,children:[j,g]}),e[36]=g,e[37]=p,e[38]=h,e[39]=S,e[40]=j,e[41]=b):b=e[41],b}function si(t){return t.structuredContent}function ii(){const t=$.c(4),e=as();let i;t[0]!==e?(i=e.find(ri),t[0]=e,t[1]=i):i=t[1];const n=i;if(!n?.id)return null;let r;return t[2]!==n.id?(r=s.jsx(ti,{connectionId:n.id}),t[2]=n.id,t[3]=r):r=t[3],r}function ri(t){return os(t,cs)}function ni(){const t=$.c(13),e=Ys();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Qs,{children:s.jsx(P.Suspense,{fallback:null,children:s.jsx(ii,{})})}),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(ct,{})}),t[1]=n):n=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(is,{asChild:!0,children:s.jsx(ze,{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(He,{size:16})})}),t[2]=r):r=t[2];let a;t[3]!==e.length?(a=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]=a):a=t[4];let l;t[5]!==a?(l=s.jsxs("div",{className:"relative",children:[r,a]}),t[5]=a,t[6]=l):l=t[6];let o;t[7]===Symbol.for("react.memo_cache_sentinel")?(o=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]=o):o=t[7];let c;t[8]!==e?(c=s.jsxs(ss,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[o,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(He,{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(ai)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==l||t[11]!==c?(d=s.jsxs(Ps,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(ne,{children:s.jsx(re,{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(rs,{children:[l,c]})})]})})})]}),t[10]=l,t[11]=c,t[12]=d):d=t[12],d}function ai(t){return s.jsx(Vs,{invitation:t},t.id)}function li(t){const e=$.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 r;e[2]!==n?(r={backgroundColor:n},e[2]=n,e[3]=r):r=e[3];let a;e[4]!==i.name?(a=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=a):a=e[5];let l;e[6]!==a?(l=s.jsx("span",{className:"text-[10px] font-medium text-white",children:a}),e[6]=a,e[7]=l):l=e[7];let o;return e[8]!==r||e[9]!==l?(o=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:r,children:l}),e[8]=r,e[9]=l,e[10]=o):o=e[10],o}function oi(t){const e=$.c(14),{project:i}=t,n=Ee(),{org:r}=fe();let a;e[0]!==n||e[1]!==r.slug||e[2]!==i.slug?(a=()=>{n({to:"/$org/$project",params:{org:r.slug,project:i.slug}})},e[0]=n,e[1]=r.slug,e[2]=i.slug,e[3]=a):a=e[3];let l;e[4]!==i?(l=s.jsx(li,{project:i}),e[4]=i,e[5]=l):l=e[5];let o;e[6]!==i.name?(o=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=o):o=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(fs,{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]!==a||e[11]!==l||e[12]!==o?(d=s.jsx(re,{children:s.jsxs(je,{onClick:a,tooltip:i.name,children:[l,o,c]})}),e[9]=i.name,e[10]=a,e[11]=l,e[12]=o,e[13]=d):d=e[13],d}function ci(){const t=$.c(55),{org:e}=fe(),{data:i,isLoading:n}=Qe(e.id),[r,a]=P.useState(!0),[l,o]=P.useState(!1);let c,d,u,f,m,y,N,v,x,k,p,h,S;if(t[0]!==n||t[1]!==r||t[2]!==i){S=Symbol.for("react.early_return_sentinel");e:{const M=i?.filter(mi)??[];if(n){let U;t[16]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(re,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(J,{className:"h-4 w-4 rounded"}),s.jsx(J,{className:"h-4 flex-1"})]})}),t[16]=U):U=t[16];let ee;t[17]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(ge,{className:"py-0 px-0",children:s.jsx(be,{children:s.jsxs(ne,{className:"gap-0.5",children:[U,s.jsx(re,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(J,{className:"h-4 w-4 rounded"}),s.jsx(J,{className:"h-4 flex-1"})]})})]})})}),t[17]=ee):ee=t[17],S=ee;break e}h="group/projects-section mt-2",m=ds,k=r,p=a,f=ge,x="py-0 px-0",u=be,d=ne,N="gap-0.5";let B;t[18]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=B):B=t[18];const D=!r&&"-rotate-90";let H;t[19]!==D?(H=A("text-muted-foreground shrink-0 transition-transform duration-200",D),t[19]=D,t[20]=H):H=t[20];let O;t[21]!==H?(O=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:[B,s.jsx(Ze,{size:12,className:H})]})}),t[21]=H,t[22]=O):O=t[22];let L;t[23]===Symbol.for("react.memo_cache_sentinel")?(L=()=>o(!0),t[23]=L):L=t[23];let T;t[24]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("button",{type:"button",onClick:L,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(xe,{size:16})}),t[24]=T):T=t[24],t[25]!==O?(v=s.jsx(re,{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:[O,T]})}),t[25]=O,t[26]=v):v=t[26],c=us,y=M.length===0?s.jsx(re,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):M.map(di)}t[0]=n,t[1]=r,t[2]=i,t[3]=c,t[4]=d,t[5]=u,t[6]=f,t[7]=m,t[8]=y,t[9]=N,t[10]=v,t[11]=x,t[12]=k,t[13]=p,t[14]=h,t[15]=S}else c=t[3],d=t[4],u=t[5],f=t[6],m=t[7],y=t[8],N=t[9],v=t[10],x=t[11],k=t[12],p=t[13],h=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let j;t[27]!==c||t[28]!==y?(j=s.jsx(c,{children:y}),t[27]=c,t[28]=y,t[29]=j):j=t[29];let g;t[30]!==d||t[31]!==N||t[32]!==v||t[33]!==j?(g=s.jsxs(d,{className:N,children:[v,j]}),t[30]=d,t[31]=N,t[32]=v,t[33]=j,t[34]=g):g=t[34];let b;t[35]!==u||t[36]!==g?(b=s.jsx(u,{children:g}),t[35]=u,t[36]=g,t[37]=b):b=t[37];let _;t[38]!==f||t[39]!==b||t[40]!==x?(_=s.jsx(f,{className:x,children:b}),t[38]=f,t[39]=b,t[40]=x,t[41]=_):_=t[41];let C;t[42]!==m||t[43]!==_||t[44]!==k||t[45]!==p?(C=s.jsx(m,{open:k,onOpenChange:p,children:_}),t[42]=m,t[43]=_,t[44]=k,t[45]=p,t[46]=C):C=t[46];let w;t[47]!==C||t[48]!==h?(w=s.jsx("div",{className:h,children:C}),t[47]=C,t[48]=h,t[49]=w):w=t[49];let I;t[50]!==l?(I=s.jsx(qe,{open:l,onOpenChange:o}),t[50]=l,t[51]=I):I=t[51];let R;return t[52]!==w||t[53]!==I?(R=s.jsxs(s.Fragment,{children:[w,I]}),t[52]=w,t[53]=I,t[54]=R):R=t[54],R}function di(t){return s.jsx(oi,{project:t},t.id)}function mi(t){return t.slug!==K}function ui(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(P.Suspense,{fallback:s.jsx(ge,{className:"py-0 px-0",children:s.jsx(be,{children:s.jsx(ne,{className:"gap-0.5",children:s.jsx(re,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(J,{className:"h-4 w-4 rounded"}),s.jsx(J,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(ci,{})}),t[0]=e):e=t[0],e}function fi(t){const e=$.c(13),{onCreateProject:i}=t,[n]=Ce(),r=bs(),{locator:a}=fe();let l;e[0]!==a?(l=$e.isOrgAdminProject(a),e[0]=a,e[1]=l):l=e[1];const o=l;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ae.Skeleton,{}),e[2]=c):c=e[2];let d;e[3]!==i?(d=s.jsx(P.Suspense,{fallback:c,children:s.jsx(Ae,{onCreateProject:i})}),e[3]=i,e[4]=d):d=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(ni,{}),e[5]=u):u=e[5];let f;e[6]!==o||e[7]!==n?(f=o&&n.experimental_projects?s.jsx(Ue,{children:s.jsx(P.Suspense,{fallback:null,children:s.jsx(ui,{})})}):null,e[6]=o,e[7]=n,e[8]=f):f=e[8];let m;return e[9]!==r||e[10]!==d||e[11]!==f?(m=s.jsx(ot,{sections:r,header:d,footer:u,additionalContent:f}),e[9]=r,e[10]=d,e[11]=f,e[12]=m):m=e[12],m}function pi(){const t=$.c(2),i=Oe().location.href;let n;return t[0]!==i?(n=s.jsx(yt,{to:"/login",search:{next:i},replace:!0}),t[0]=i,t[1]=n):n=t[1],n}function xi(t){const e=$.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(jt,{children:s.jsx(Fe,{})}),e[0]=n):n=e[0];let r;e[1]!==i?(r=s.jsx(vt,{children:i}),e[1]=i,e[2]=r):r=e[2];let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Nt,{children:s.jsx(pi,{})}),e[3]=a):a=e[3];let l;return e[4]!==r?(l=s.jsxs(s.Fragment,{children:[n,r,a]}),e[4]=r,e[5]=l):l=e[5],l}function hi(t){const e=$.c(10),{children:i,className:n}=t,[,r]=P.useTransition();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=De.decoChatPanelWidth(),e[0]=a):a=e[0];const[l,o]=Me(a,30);let c;e[1]!==o?(c=m=>r(()=>o(m)),e[1]=o,e[2]=c):c=e[2];const d=c;let u;e[3]!==n?(u=A("min-w-0",n),e[3]=n,e[4]=u):u=e[4];let f;return e[5]!==l||e[6]!==i||e[7]!==d||e[8]!==u?(f=s.jsx(tt,{defaultSize:l,minSize:20,className:u,onResize:d,children:i}),e[5]=l,e[6]=i,e[7]=d,e[8]=u,e[9]=f):f=e[9],f}function gi(t){const e=$.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=De.sidebarOpen(),e[0]=n):n=e[0];const[r,a]=Me(n,!0);let l;return e[1]!==i||e[2]!==a||e[3]!==r?(l=s.jsx(Cs,{open:r,onOpenChange:a,children:i}),e[1]=i,e[2]=a,e[3]=r,e[4]=l):l=e[4],l}function bi(t){const e=$.c(24),{isStudio:i,isHomeRoute:n,onCreateProject:r}=t,[a]=Ge();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=De.decoChatPanelWidth(),e[0]=l):l=e[0];const[o]=Me(l,30),[c]=Ce(),d=i&&c.experimental_projects?"":void 0,u=`${o}cqi`;let f;e[1]!==u?(f={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":u},e[1]=u,e[2]=f):f=e[2];const m=f;let y;e[3]!==r?(y=s.jsx(fi,{onCreateProject:r}),e[3]=r,e[4]=y):y=e[4];let N;e[5]===Symbol.for("react.memo_cache_sentinel")?(N={background:"transparent",containerType:"inline-size"},e[5]=N):N=e[5];let v;e[6]===Symbol.for("react.memo_cache_sentinel")?(v={overflow:"visible"},e[6]=v):v=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x={overflow:"visible"},e[7]=x):x=e[7];const k=a&&"rounded-tr-[0.75rem] border-r";let p;e[8]!==k?(p=A("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)]",k),e[8]=k,e[9]=p):p=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(We,{})}),e[10]=h):h=e[10];let S;e[11]!==p?(S=s.jsx(tt,{className:"min-w-0 flex flex-col",style:x,children:s.jsx("div",{className:p,children:h})}),e[11]=p,e[12]=S):S=e[12];let j;e[13]!==a||e[14]!==n?(j=!n&&s.jsxs(s.Fragment,{children:[s.jsx(ps,{className:"bg-sidebar"}),s.jsx(hi,{className:A("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",a?"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(gs,{})})})})]}),e[13]=a,e[14]=n,e[15]=j):j=e[15];let g;e[16]!==S||e[17]!==j?(g=s.jsx(Is,{className:"pt-1.5",style:N,children:s.jsxs(xs,{direction:"horizontal",className:"h-full",style:v,children:[S,j]})}),e[16]=S,e[17]=j,e[18]=g):g=e[18];let b;return e[19]!==g||e[20]!==d||e[21]!==m||e[22]!==y?(b=s.jsxs($s,{className:"flex-1 bg-sidebar","data-studio":d,style:m,children:[y,g]}),e[19]=g,e[20]=d,e[21]=m,e[22]=y,e[23]=b):b=e[23],b}function ji(){const{org:t,project:e}=Be({strict:!1}),i=Oe(),[n,r]=P.useState(!1),a=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,l=e??K,{data:o}=St({queryKey:kt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:u}=await oe.organization.setActive({organizationSlug:t});return{org:u,project:{slug:l,isOrgAdmin:l===K}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!o)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(ct,{})})}),s.jsx(We,{})]});if(!o.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const c={...o,project:{...o.project,slug:l,isOrgAdmin:l===K}},d=l===K;return s.jsxs(Ct,{...c,children:[s.jsx(gi,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(X.Provider,{children:s.jsx(bi,{isStudio:d,isHomeRoute:a,onCreateProject:()=>r(!0)})})})}),s.jsx(qe,{open:n,onOpenChange:r})]})}function Zr(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(xi,{children:s.jsx(P.Suspense,{fallback:s.jsx(Fe,{}),children:s.jsx(ji,{})})}),t[0]=e):e=t[0],e}export{Zr as default};
@@ -1 +1 @@
1
- import{c as l,v as r,j as c}from"./index-7L39VpRz.js";import{u as i,L as f}from"./localstorage-keys-oS_TlQ3E.js";const m={devMode:!1,experimental_projects:!1,experimental_tasks:!1,toolApprovalLevel:"none",enableNotifications:typeof Notification<"u"};function E(){const t=l.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=f.preferences(),t[0]=e):e=t[0],i(e,p)}function p(t){return{...m,...t}}function x(t){const e=l.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=r("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=n):n=e[4];let a;return e[5]!==o||e[6]!==n?(a=c.jsx("div",{"data-slot":"skeleton",className:n,...o}),e[5]=o,e[6]=n,e[7]=a):a=e[7],a}export{x as S,E as u};
1
+ import{c as l,v as r,j as c}from"./index-C9zVB5WG.js";import{u as i,L as f}from"./localstorage-keys-CZwloscb.js";const m={devMode:!1,experimental_projects:!1,experimental_tasks:!1,toolApprovalLevel:"none",enableNotifications:typeof Notification<"u"};function E(){const t=l.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=f.preferences(),t[0]=e):e=t[0],i(e,p)}function p(t){return{...m,...t}}function x(t){const e=l.c(8);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=r("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=n):n=e[4];let a;return e[5]!==o||e[6]!==n?(a=c.jsx("div",{"data-slot":"skeleton",className:n,...o}),e[5]=o,e[6]=n,e[7]=a):a=e[7],a}export{x as S,E as u};
@@ -1 +1 @@
1
- import{c as C,v as d,z as m,j as a}from"./index-7L39VpRz.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,v as d,z as m,j as a}from"./index-C9zVB5WG.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,e as S,j as o,A as x,S as d,f as j,h as b,a as g,d as y,O as N,N as p}from"./index-7L39VpRz.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=g(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=g(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(d,{}),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(d,{})}),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,e as S,j as o,A as x,S as d,f as j,h as b,a as g,d as y,O as N,N as p}from"./index-C9zVB5WG.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=g(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=g(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(d,{}),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(d,{})}),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,H as C,I as y,G as I,M as T,W as M,X as H,U,c as z,v as g}from"./index-7L39VpRz.js";var m="Switch",[A]=U(m),[q,L]=A(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=a,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=I({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{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:T(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},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:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(a){return a?"checked":"unchecked"}var W=E,X=R;function D(a){const e=z.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=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]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(X,{"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]!==r||e[7]!==s?(o=i.jsx(W,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{D as S};
1
+ import{r as c,j as i,H as C,I as y,G as I,M as T,W as M,X as H,U,c as z,v as g}from"./index-C9zVB5WG.js";var m="Switch",[A]=U(m),[q,L]=A(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=a,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=I({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{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:T(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},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:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(a){return a?"checked":"unchecked"}var W=E,X=R;function D(a){const e=z.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=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]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(X,{"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]!==r||e[7]!==s?(o=i.jsx(W,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{D as S};
@@ -1 +1 @@
1
- import{c as r,v as i,j as c}from"./index-7L39VpRz.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,v as i,j as c}from"./index-C9zVB5WG.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 +1 @@
1
- import{r as p,D as M,G as k,j as d,H as f,aC as P,T as S,U as F,Q as y,J as V,M as T,R as D,c as x,v as g}from"./index-7L39VpRz.js";var m="Tabs",[G]=F(m,[y]),C=y(),[L,h]=G(m),w=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=M(i),[c,b]=k({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:P(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":o,...v,ref:e})})});w.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=C(a);return d.jsx(D,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=C(a),l=E(o.baseId,t),v=$(o.baseId,t),u=t===o.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,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=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,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=w,K=j,B=_,H=A;function J(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 s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function O(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 s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="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]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,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 s=r||"pill",o=s==="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":s==="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]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,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 s;return e[5]!==t||e[6]!==r?(s=d.jsx(H,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,O as a,U as b,J as c};
1
+ import{r as p,D as M,G as k,j as d,H as f,au as P,T as S,U as F,Q as y,J as V,M as T,R as D,c as x,v as g}from"./index-C9zVB5WG.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:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=M(i),[c,b]=k({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:P(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":o,...v,ref:e})})});C.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(D,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),v=$(o.baseId,t),u=t===o.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,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=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,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,H=A;function J(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 s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function O(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 s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="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]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,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 s=r||"pill",o=s==="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":s==="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]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,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 s;return e[5]!==t||e[6]!==r?(s=d.jsx(H,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,O as a,U as b,J as c};
@@ -0,0 +1 @@
1
+ import{c as O,j as r,E as ae,r as Z,u as oe,b as ie,m as le,n as ne,K as G}from"./index-C9zVB5WG.js";import{C as ce,a as me}from"./collection-table-wrapper-17gGtoIE.js";import{C as de,E as J}from"./collection-search-DTH23sfv.js";import{P as _}from"./index-nJ7zp6px.js";import{u as ue,U as pe}from"./use-list-state-DttTc7Mb.js";import{f as fe}from"./format-time-CMKyl-GC.js";import{a as he,u as xe}from"./constants-BhT1RxOf.js";import{B as ge,a as je,b as ye,c as Se}from"./breadcrumb-DW0yuSjw.js";import{B as b}from"./badge-Cd5VRqG2.js";import{i as be}from"./AlertCircle-DlPS0B2V.js";import{c as _e}from"./AlertOctagon-BuLp3fZC.js";import{n as X}from"./CheckDone01-SmxvYrNZ.js";import{i as we}from"./Check-BIAvy6yX.js";import{s as Ce}from"./Clock-DF385WmK.js";import{i as ee}from"./Loading01-DUKazYJk.js";import{u as Ne,a as Te}from"./context-BBcoPt-U.js";import"./dropdown-menu-CkNoSZQN.js";import"./ChevronRight--WZMG8rl.js";import"./ArrowDown-Dz6Gxuoh.js";import"./ArrowUp-Djo3xiq5.js";import"./Grid01-DF8yAKWy.js";import"./List-cJBOedUB.js";import"./tooltip-wsLIWfBV.js";import"./index-CIQsWYRd.js";import"./table-DlgTYaKr.js";import"./SearchMd-C6p4WuWU.js";import"./input-Dulb50P0.js";import"./localstorage-keys-CZwloscb.js";import"./useQuery-ITBNMKD9.js";import"./useMutation-C0x6BtF8.js";import"./avatar-C9P0gqhN.js";import"./use-view-mode-BM1VKKNU.js";import"./use-mobile-JSb9Dln5.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-virtual-mcp-C4vCklTv.js";import"./use-connection-CpIvuZgj.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-DORYQD8S.js";import"./use-binding-DA-OMuxn.js";import"./binder-BSqhIBEo.js";import"./skeleton-DlHAPl4v.js";import"./checkbox-DBGyogTp.js";import"./dialog-Dvc12rqj.js";import"./select-D1oSPElz.js";import"./ChevronDown-B_XlOG4n.js";import"./AlignLeft-CK2LK9_P.js";import"./ArrowLeft-m0b492UP.js";import"./Image01-CdQc9_Kn.js";import"./RefreshCcw01-34kOjxGl.js";import"./Settings01-C-qUCDkW.js";import"./useSuspenseInfiniteQuery-BFqd2TrW.js";import"./infiniteQueryObserver-fiTcrowg.js";function ke(e){const s=O.c(9),{status:n,stepCount:l}=e;switch(n){case"in_progress":{let a;s[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(ee,{size:11,className:"animate-spin"}),s[0]=a):a=s[0];const c=l?`Running · step ${l}`:"Running";let m;return s[1]!==c?(m=r.jsxs(b,{variant:"secondary",className:"gap-1",children:[a,c]}),s[1]=c,s[2]=m):m=s[2],m}case"completed":{let a;return s[3]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"success",className:"gap-1",children:[r.jsx(we,{size:11}),"Completed"]}),s[3]=a):a=s[3],a}case"requires_action":{let a;return s[4]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"outline",className:"gap-1 text-blue-600 border-blue-600/40",children:[r.jsx(be,{size:11}),"Waiting for input"]}),s[4]=a):a=s[4],a}case"failed":{let a;return s[5]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"destructive",className:"gap-1",children:[r.jsx(_e,{size:11}),"Failed"]}),s[5]=a):a=s[5],a}case"expired":{let a;return s[6]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsxs(b,{variant:"outline",className:"gap-1 text-warning border-warning/40",children:[r.jsx(Ce,{size:11}),"Timed out"]}),s[6]=a):a=s[6],a}default:{let a;return s[7]!==n?(a=r.jsx(b,{variant:"secondary",className:"gap-1",children:n}),s[7]=n,s[8]=a):a=s[8],a}}}function ve(){const e=O.c(64),{org:s,project:n,locator:l}=oe();let a;e[0]!==s.id?(a={connectionId:he,orgId:s.id},e[0]=s.id,e[1]=a):a=e[1];const c=xe(a),m=ie(),{switchToThread:I}=Ne(),P=le();let w;e[2]===Symbol.for("react.memo_cache_sentinel")?(w=new Map,e[2]=w):w=e[2];const[R,Q]=Z.useState(w);let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=o=>{Q(S=>{const i=new Map(S);return i.set(o.subject,o.data.stepCount),i})},e[3]=C):C=e[3];let d;e[4]!==l||e[5]!==P?(d=o=>{P.invalidateQueries({queryKey:G.taskThreads(l)}),o.data.status!=="in_progress"&&Q(S=>{const i=new Map(S);return i.delete(o.subject),i})},e[4]=l,e[5]=P,e[6]=d):d=e[6];let N;e[7]!==s.id||e[8]!==d?(N={orgId:s.id,onStep:C,onThreadStatus:d},e[7]=s.id,e[8]=d,e[9]=N):N=e[9],Te(N);let T;e[10]!==s.slug?(T={namespace:s.slug,resource:"tasks",defaultSortKey:"updated_at",defaultViewMode:"table"},e[10]=s.slug,e[11]=T):T=e[11];const t=ue(T);let u;e[12]!==l?(u=G.taskThreads(l),e[12]=l,e[13]=u):u=e[13];let p;e[14]!==c?(p=async()=>{if(!c)throw new Error("MCP client is not available");const o=await c.callTool({name:"COLLECTION_THREADS_LIST",arguments:{limit:100,offset:0}});return(o.structuredContent??o).items??[]},e[14]=c,e[15]=p):p=e[15];let k;e[16]!==u||e[17]!==p?(k={queryKey:u,queryFn:p,staleTime:3e4},e[16]=u,e[17]=p,e[18]=k):k=e[18];const{data:V}=ne(k);let v;if(e[19]!==V||e[20]!==t){const o=V.filter(Ee),S=t.searchTerm?o.filter(U=>U.title.toLowerCase().includes(t.searchTerm.toLowerCase())):o;let i;e[22]!==t?(i=(U,te)=>{const{sortKey:F,sortDirection:W}=t;if(!F||!W)return 0;const se=String(U[F]??""),re=String(te[F]??""),Y=se.localeCompare(re);return W==="asc"?Y:-Y},e[22]=t,e[23]=i):i=e[23],v=[...S].sort(i),e[19]=V,e[20]=t,e[21]=v}else v=e[21];const q=v;let D;e[24]!==m||e[25]!==s.slug||e[26]!==n.slug||e[27]!==I?(D=async o=>{await I(o.id),m({to:"/$org/$project",params:{org:s.slug,project:n.slug}})},e[24]=m,e[25]=s.slug,e[26]=n.slug,e[27]=I,e[28]=D):D=e[28];const A=D;let K;e[29]===Symbol.for("react.memo_cache_sentinel")?(K={id:"title",header:"Title",render:Me,cellClassName:"flex-1 min-w-0",sortable:!0},e[29]=K):K=e[29];let f;e[30]!==R?(f={id:"status",header:"Status",render:o=>r.jsx(ke,{status:o.status??"completed",stepCount:R.get(o.id)}),cellClassName:"w-40 shrink-0",sortable:!0},e[30]=R,e[31]=f):f=e[31];let M,E;e[32]===Symbol.for("react.memo_cache_sentinel")?(M={id:"created_by",header:"Created by",render:Ke,cellClassName:"w-32 shrink-0"},E={id:"updated_at",header:"Updated",render:De,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},e[32]=M,e[33]=E):(M=e[32],E=e[33]);let L;e[34]!==f?(L=[K,f,M,E],e[34]=f,e[35]=L):L=e[35];const H=L;let B;e[36]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(_.Header.Left,{children:r.jsx(ge,{children:r.jsx(je,{children:r.jsx(ye,{children:r.jsx(Se,{children:"Tasks"})})})})}),e[36]=B):B=e[36];let z;e[37]===Symbol.for("react.memo_cache_sentinel")?(z=[{id:"title",label:"Title"},{id:"status",label:"Status"},{id:"updated_at",label:"Updated"}],e[37]=z):z=e[37];let h;e[38]!==t.handleSort||e[39]!==t.setViewMode||e[40]!==t.sortDirection||e[41]!==t.sortKey||e[42]!==t.viewMode?(h=r.jsxs(_.Header,{children:[B,r.jsx(_.Header.Right,{children:r.jsx(ce,{viewMode:t.viewMode,onViewModeChange:t.setViewMode,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,sortOptions:z})})]}),e[38]=t.handleSort,e[39]=t.setViewMode,e[40]=t.sortDirection,e[41]=t.sortKey,e[42]=t.viewMode,e[43]=h):h=e[43];let x;e[44]!==t?(x=o=>{o.key==="Escape"&&(t.setSearch(""),o.target.blur())},e[44]=t,e[45]=x):x=e[45];let g;e[46]!==t.search||e[47]!==t.setSearch||e[48]!==x?(g=r.jsx(de,{value:t.search,onChange:t.setSearch,placeholder:"Search tasks...",onKeyDown:x}),e[46]=t.search,e[47]=t.setSearch,e[48]=x,e[49]=g):g=e[49];let j;e[50]!==t.search?(j=t.search?r.jsx(J,{image:r.jsx(X,{size:36,className:"text-muted-foreground"}),title:"No tasks found",description:`No tasks match "${t.search}"`}):r.jsx(J,{image:r.jsx("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-muted",children:r.jsx(X,{size:32,className:"text-muted-foreground"})}),title:"No tasks yet",description:"Tasks will appear here when agents start processing work."}),e[50]=t.search,e[51]=j):j=e[51];let y;e[52]!==H||e[53]!==t.handleSort||e[54]!==t.sortDirection||e[55]!==t.sortKey||e[56]!==A||e[57]!==j||e[58]!==q?(y=r.jsx(_.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(me,{columns:H,data:q,isLoading:!1,sortKey:t.sortKey,sortDirection:t.sortDirection,onSort:t.handleSort,onRowClick:A,emptyState:j})})}),e[52]=H,e[53]=t.handleSort,e[54]=t.sortDirection,e[55]=t.sortKey,e[56]=A,e[57]=j,e[58]=q,e[59]=y):y=e[59];let $;return e[60]!==h||e[61]!==g||e[62]!==y?($=r.jsxs(_,{children:[h,g,y]}),e[60]=h,e[61]=g,e[62]=y,e[63]=$):$=e[63],$}function De(e){return r.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:e.updated_at?fe(new Date(e.updated_at)):"—"})}function Ke(e){return r.jsx(pe,{id:e.created_by,size:"3xs"})}function Me(e){return r.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Ee(e){return!e.hidden}function Mt(){const e=O.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx(ae,{children:r.jsx(Z.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(ee,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(ve,{})})}),e[0]=s):s=e[0],s}export{Mt as default};
@@ -1 +1 @@
1
- import{c as o,v as n,j as l}from"./index-7L39VpRz.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,v as n,j as l}from"./index-C9zVB5WG.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 x,c as At,b as yn,u as bn,j as s,B as I,O as kt,t as ne,v as U,a_ as Dt}from"./index-7L39VpRz.js";import{B as xn}from"./badge-bamcfFQO.js";import{P as lt,a as ct,b as ut}from"./popover-BtiU6fhH.js";import{T as Ge,a as Qe,b as Xe}from"./tooltip-BMv47aFy.js";import{i as Je}from"./Check-DojSaPH3.js";import{a as $e}from"./Copy01-DAgw87le.js";import{n as Mt}from"./Download01-DYRyy6E8.js";import{i as wn}from"./FilterLines-C-QyLRQ-.js";import{i as Nn}from"./Key01-_bxQwPT1.js";import{i as kn}from"./Play-CRp2Fiq8.js";import{M as _t,n as Dn,a as Mn}from"./scroll-area-SCgyyuRW.js";import{t as _n}from"./ChevronDown-BgBeiqk4.js";import{s as jn}from"./Clock-hhjRO-p5.js";import{i as Cn}from"./ChevronRight-ntt7kj2X.js";import{I as jt}from"./input-Bg0LE4bT.js";const Ht=({size:t=24,color:e="currentColor",...n})=>x.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},x.createElement("path",{d:"m15 18-6-6 6-6"}));Ht.displayName="ChevronLeft";const Sn=({size:t=24,color:e="currentColor",...n})=>x.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},x.createElement("path",{d:"M11 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 22 5.12 22 6.8 22h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V13M8 16h1.675c.489 0 .733 0 .963-.055.204-.05.4-.13.579-.24.201-.123.374-.296.72-.642L21.5 5.5a2.121 2.121 0 0 0-3-3l-9.563 9.563c-.346.346-.519.519-.642.72a2 2 0 0 0-.24.579c-.055.23-.055.474-.055.963V16Z"}));Sn.displayName="Edit05";const qt=({size:t=24,color:e="currentColor",...n})=>x.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},x.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"}));qt.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function On(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 $o(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 Ao(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 x,c as At,b as yn,u as bn,j as s,B as I,O as kt,t as ne,v as U,aZ as Dt}from"./index-C9zVB5WG.js";import{B as xn}from"./badge-Cd5VRqG2.js";import{P as lt,a as ct,b as ut}from"./popover-Brg4j9U4.js";import{T as Ge,a as Qe,b as Xe}from"./tooltip-wsLIWfBV.js";import{i as Je}from"./Check-BIAvy6yX.js";import{a as $e}from"./Copy01-DhxT-EHF.js";import{n as Mt}from"./Download01-BAQPnXKJ.js";import{i as wn}from"./FilterLines-CvVXx1lM.js";import{i as Nn}from"./Key01-DvGVU5tM.js";import{i as kn}from"./Play-BoOE6qYY.js";import{M as _t,n as Dn,a as Mn}from"./scroll-area-D0QNw4tp.js";import{t as _n}from"./ChevronDown-B_XlOG4n.js";import{s as jn}from"./Clock-DF385WmK.js";import{i as Cn}from"./ChevronRight--WZMG8rl.js";import{I as jt}from"./input-Dulb50P0.js";const Ht=({size:t=24,color:e="currentColor",...n})=>x.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},x.createElement("path",{d:"m15 18-6-6 6-6"}));Ht.displayName="ChevronLeft";const Sn=({size:t=24,color:e="currentColor",...n})=>x.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},x.createElement("path",{d:"M11 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 22 5.12 22 6.8 22h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V13M8 16h1.675c.489 0 .733 0 .963-.055.204-.05.4-.13.579-.24.201-.123.374-.296.72-.642L21.5 5.5a2.121 2.121 0 0 0-3-3l-9.563 9.563c-.346.346-.519.519-.642.72a2 2 0 0 0-.24.579c-.055.23-.055.474-.055.963V16Z"}));Sn.displayName="Edit05";const qt=({size:t=24,color:e="currentColor",...n})=>x.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},x.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"}));qt.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function On(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 $o(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 Ao(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 Ho(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 qo(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,G as h,j as c,H as m,M as k,by as p,J as M,Q as T,U as S,D as A,R as D,z as F,c as P,v as C}from"./index-7L39VpRz.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[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":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=S(v,[T]),z=T(),G=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx($,{...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}\``)});G.displayName=v;var[I,y]=w(v),$=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(I,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[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:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});G.displayName=v;var[H,O]=w(v),R=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=z(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(H,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(D,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=y(f,r.__scopeToggleGroup),s=O(f,r.__scopeToggleGroup),n=z(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(b,{...o,ref:e})}):c.jsx(b,{...o,ref:e})});N.displayName=f;var b=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=y(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),U=G,J=N;const L=F("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 q(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=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]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,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]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(U,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function K(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(L({variant:o.variant||t,size:o.size||a}),"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]=a,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(J,{"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{q as T,K as a};
1
+ import{r as x,G as h,j as c,H as m,M as k,bz as p,J as M,Q as T,U as S,D as A,R as D,z as F,c as P,v as C}from"./index-C9zVB5WG.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[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":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[z]=S(v,[T]),w=T(),G=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx($,{...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}\``)});G.displayName=v;var[I,R]=z(v),$=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=h({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(I,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(y,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[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:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...a,ref:e})})});G.displayName=v;var[H,O]=z(v),y=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=w(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(H,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(D,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=R(f,r.__scopeToggleGroup),s=O(f,r.__scopeToggleGroup),n=w(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(b,{...o,ref:e})}):c.jsx(b,{...o,ref:e})});N.displayName=f;var b=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=R(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),U=G,J=N;const L=F("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 q(r){const e=P.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=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]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,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]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(U,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function K(r){const e=P.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=C(L({variant:o.variant||t,size:o.size||a}),"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]=a,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(J,{"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{q as T,K as a};
@@ -1 +1 @@
1
- import{c as z,b as X,r as H,j as t,_ as Y,$ as Z,O as ee}from"./index-7L39VpRz.js";import{a as te,C as se}from"./collection-table-wrapper-CQELj61q.js";import{E as B,C as oe}from"./collection-search-BkqfEg-m.js";import{I as ne}from"./integration-icon-BXY2mwKh.js";import{B as K}from"./badge-bamcfFQO.js";import{C as ae}from"./card-CT9eRBO8.js";import{T as G,a as P,b as W,c as re}from"./tooltip-BMv47aFy.js";import{g as ie,s as le}from"./types-C_2JvMAa.js";import{s as ce}from"./Eye-DPG-E6S3.js";import{s as de}from"./Globe02-WbvfAq6T.js";import{V as me}from"./layout-DKJsGI23.js";const fe=[{key:"readOnlyHint",label:"Read-only",Icon:ce,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:Y,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:Z,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:de,variant:"outline"}];function pe(s){const e=z.c(18),{annotations:r,_meta:m}=s;let u;e[0]!==m?(u=ie(m),e[0]=m,e[1]=u):u=e[1];const l=!!u;let h,x,c,f,d;if(e[2]!==r||e[3]!==l){d=Symbol.for("react.early_return_sentinel");e:{const n=r?fe.filter(I=>r[I.key]===!0):[];if(n.length===0&&!l){d=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(le,{})})}),t.jsx(W,{children:"Interactive"})]}),e[9]=l,e[10]=c):c=e[10],f=n.map(ue)}e[2]=r,e[3]=l,e[4]=h,e[5]=x,e[6]=c,e[7]=f,e[8]=d}else h=e[4],x=e[5],c=e[6],f=e[7],d=e[8];if(d!==Symbol.for("react.early_return_sentinel"))return d;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 ue(s){const{label:e,Icon:r,variant:m}=s;return t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:m,className:"size-6 p-1",children:t.jsx(r,{})})}),t.jsx(W,{children:e})]},e)}function Oe(s){const e=z.c(40),{tools:r,connectionId:m,org:u,onToolClick:l,showToolbar:h,emptyMessage:x,isLoading:c}=s,f=h===void 0?!0:h,d=x===void 0?"This connection doesn't have any tools yet.":x,p=c===void 0?!1:c,g=X(),[n,I]=H.useState(""),[j,F]=H.useState("table"),[a,M]=H.useState("name"),[i,V]=H.useState("asc");let w;e[0]!==i||e[1]!==a?(w=o=>{a===o?(V(Ne),i==="desc"&&M(void 0)):(M(o),V("asc"))},e[0]=i,e[1]=a,e[2]=w):w=e[2];const y=w;let _;e[3]!==m||e[4]!==g||e[5]!==l||e[6]!==u?(_=o=>{l?l(o):m&&u&&g({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:u,project:ee,connectionId:m,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=m,e[4]=g,e[5]=l,e[6]=u,e[7]=_):_=e[7];const k=_;let $;if(e[8]!==n||e[9]!==i||e[10]!==a||e[11]!==r){const o=!r||r.length===0?[]:n.trim()?(()=>{const E=n.toLowerCase();return r.filter(S=>S.name.toLowerCase().includes(E)||S.description&&S.description.toLowerCase().includes(E))})():r;$=!a||!i?o:[...o].sort((E,S)=>{const q=E[a]||"",Q=S[a]||"",U=String(q).localeCompare(String(Q));return i==="asc"?U:-U}),e[8]=n,e[9]=i,e[10]=a,e[11]=r,e[12]=$}else $=e[12];const T=$;let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=[{id:"name",header:"Name",render:ye,sortable:!0},{id:"annotations",header:"Hints",render:je,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:ge,cellClassName:"flex-1",sortable:!0}],e[13]=L):L=e[13];const A=L;let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=A.filter(xe).map(he),e[14]=O):O=e[14];const J=O;let N;e[15]!==y||e[16]!==f||e[17]!==i||e[18]!==a||e[19]!==j?(N=f&&t.jsx(me,{children:t.jsx(se,{viewMode:j,onViewModeChange:F,sortKey:a,sortDirection:i,onSort:y,sortOptions:J})}),e[15]=y,e[16]=f,e[17]=i,e[18]=a,e[19]=j,e[20]=N):N=e[20];let R;e[21]===Symbol.for("react.memo_cache_sentinel")?(R=o=>{o.key==="Escape"&&(I(""),o.target.blur())},e[21]=R):R=e[21];let v;e[22]!==n?(v=t.jsx(oe,{value:n,onChange:I,placeholder:"Search tools...",onKeyDown:R}),e[22]=n,e[23]=v):v=e[23];let b;e[24]!==d||e[25]!==y||e[26]!==k||e[27]!==p||e[28]!==n||e[29]!==i||e[30]!==a||e[31]!==T||e[32]!==j?(b=j==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:T.length===0?t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":d}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:T.map(o=>t.jsx(ae,{className:"cursor-pointer transition-colors",onClick:()=>k(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(ne,{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(te,{columns:A,data:T,isLoading:p,sortKey:a,sortDirection:i,onSort:y,onRowClick:o=>k(o),emptyState:t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":d})}),e[24]=d,e[25]=y,e[26]=k,e[27]=p,e[28]=n,e[29]=i,e[30]=a,e[31]=T,e[32]=j,e[33]=b):b=e[33];let C;e[34]!==v||e[35]!==b?(C=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,b]}),e[34]=v,e[35]=b,e[36]=C):C=e[36];let D;return e[37]!==C||e[38]!==N?(D=t.jsxs(t.Fragment,{children:[N,C]}),e[37]=C,e[38]=N,e[39]=D):D=e[39],D}function he(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function xe(s){return s.sortable}function ge(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function je(s){return t.jsx(pe,{annotations:s.annotations,_meta:s._meta})}function ye(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function Ne(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{Oe as T,pe as a};
1
+ import{c as z,b as X,r as H,j as t,_ as Y,$ as Z,O as ee}from"./index-C9zVB5WG.js";import{a as te,C as se}from"./collection-table-wrapper-17gGtoIE.js";import{E as B,C as oe}from"./collection-search-DTH23sfv.js";import{I as ne}from"./integration-icon-DxUgniRd.js";import{B as K}from"./badge-Cd5VRqG2.js";import{C as ae}from"./card-C7mKq0Al.js";import{T as G,a as P,b as W,c as re}from"./tooltip-wsLIWfBV.js";import{g as ie,s as le}from"./types-DCpHM3H3.js";import{s as ce}from"./Eye-CwfPY6I3.js";import{s as de}from"./Globe02-D5-pXhdl.js";import{V as me}from"./layout-DamKiHJu.js";const fe=[{key:"readOnlyHint",label:"Read-only",Icon:ce,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:Y,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:Z,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:de,variant:"outline"}];function pe(s){const e=z.c(18),{annotations:r,_meta:m}=s;let u;e[0]!==m?(u=ie(m),e[0]=m,e[1]=u):u=e[1];const l=!!u;let h,x,c,f,d;if(e[2]!==r||e[3]!==l){d=Symbol.for("react.early_return_sentinel");e:{const n=r?fe.filter(I=>r[I.key]===!0):[];if(n.length===0&&!l){d=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(le,{})})}),t.jsx(W,{children:"Interactive"})]}),e[9]=l,e[10]=c):c=e[10],f=n.map(ue)}e[2]=r,e[3]=l,e[4]=h,e[5]=x,e[6]=c,e[7]=f,e[8]=d}else h=e[4],x=e[5],c=e[6],f=e[7],d=e[8];if(d!==Symbol.for("react.early_return_sentinel"))return d;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 ue(s){const{label:e,Icon:r,variant:m}=s;return t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:m,className:"size-6 p-1",children:t.jsx(r,{})})}),t.jsx(W,{children:e})]},e)}function Oe(s){const e=z.c(40),{tools:r,connectionId:m,org:u,onToolClick:l,showToolbar:h,emptyMessage:x,isLoading:c}=s,f=h===void 0?!0:h,d=x===void 0?"This connection doesn't have any tools yet.":x,p=c===void 0?!1:c,g=X(),[n,I]=H.useState(""),[j,F]=H.useState("table"),[a,M]=H.useState("name"),[i,V]=H.useState("asc");let w;e[0]!==i||e[1]!==a?(w=o=>{a===o?(V(Ne),i==="desc"&&M(void 0)):(M(o),V("asc"))},e[0]=i,e[1]=a,e[2]=w):w=e[2];const y=w;let _;e[3]!==m||e[4]!==g||e[5]!==l||e[6]!==u?(_=o=>{l?l(o):m&&u&&g({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:u,project:ee,connectionId:m,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=m,e[4]=g,e[5]=l,e[6]=u,e[7]=_):_=e[7];const k=_;let $;if(e[8]!==n||e[9]!==i||e[10]!==a||e[11]!==r){const o=!r||r.length===0?[]:n.trim()?(()=>{const E=n.toLowerCase();return r.filter(S=>S.name.toLowerCase().includes(E)||S.description&&S.description.toLowerCase().includes(E))})():r;$=!a||!i?o:[...o].sort((E,S)=>{const q=E[a]||"",Q=S[a]||"",U=String(q).localeCompare(String(Q));return i==="asc"?U:-U}),e[8]=n,e[9]=i,e[10]=a,e[11]=r,e[12]=$}else $=e[12];const T=$;let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=[{id:"name",header:"Name",render:ye,sortable:!0},{id:"annotations",header:"Hints",render:je,cellClassName:"w-32 shrink-0"},{id:"description",header:"Description",render:ge,cellClassName:"flex-1",sortable:!0}],e[13]=L):L=e[13];const A=L;let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=A.filter(xe).map(he),e[14]=O):O=e[14];const J=O;let N;e[15]!==y||e[16]!==f||e[17]!==i||e[18]!==a||e[19]!==j?(N=f&&t.jsx(me,{children:t.jsx(se,{viewMode:j,onViewModeChange:F,sortKey:a,sortDirection:i,onSort:y,sortOptions:J})}),e[15]=y,e[16]=f,e[17]=i,e[18]=a,e[19]=j,e[20]=N):N=e[20];let R;e[21]===Symbol.for("react.memo_cache_sentinel")?(R=o=>{o.key==="Escape"&&(I(""),o.target.blur())},e[21]=R):R=e[21];let v;e[22]!==n?(v=t.jsx(oe,{value:n,onChange:I,placeholder:"Search tools...",onKeyDown:R}),e[22]=n,e[23]=v):v=e[23];let b;e[24]!==d||e[25]!==y||e[26]!==k||e[27]!==p||e[28]!==n||e[29]!==i||e[30]!==a||e[31]!==T||e[32]!==j?(b=j==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:T.length===0?t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":d}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:T.map(o=>t.jsx(ae,{className:"cursor-pointer transition-colors",onClick:()=>k(o),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(ne,{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(te,{columns:A,data:T,isLoading:p,sortKey:a,sortDirection:i,onSort:y,onRowClick:o=>k(o),emptyState:t.jsx(B,{image:null,title:n?"No tools found":"No tools available",description:n?"Try adjusting your search terms":d})}),e[24]=d,e[25]=y,e[26]=k,e[27]=p,e[28]=n,e[29]=i,e[30]=a,e[31]=T,e[32]=j,e[33]=b):b=e[33];let C;e[34]!==v||e[35]!==b?(C=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[v,b]}),e[34]=v,e[35]=b,e[36]=C):C=e[36];let D;return e[37]!==C||e[38]!==N?(D=t.jsxs(t.Fragment,{children:[N,C]}),e[37]=C,e[38]=N,e[39]=D):D=e[39],D}function he(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function xe(s){return s.sortable}function ge(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function je(s){return t.jsx(pe,{annotations:s.annotations,_meta:s._meta})}function ye(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function Ne(s){return s==="asc"?"desc":s==="desc"?null:"asc"}export{Oe as T,pe as a};
@@ -1 +1 @@
1
- import{r as i,I as H,j as c,aM as X,H as K,M as C,T as S,aN as Z,aC as J,G as Q,aL as ee,aO as G,aU as te,aV as oe,U as re,aZ as ne,aW as se,c as j,v as ae}from"./index-7L39VpRz.js";import{R as ie}from"./index-Ds36Fm_U.js";var[O]=re("Tooltip",[G]),D=G(),$="TooltipProvider",le=700,L="tooltip.open",[ce,k]=O($),F=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=$;var R="Tooltip",[ue,_]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=J(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Q({prop:r,defaultProp:n??!1,onChange:I=>{I?(a.onOpen(),document.dispatchEvent(new CustomEvent(L))):a.onClose(),s?.(I)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(ee,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():E()},[a.isOpenDelayedRef,N,E]),onTriggerLeave:i.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};z.displayName=R;var A="TooltipTrigger",U=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(A,t),s=k(A,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(X,{asChild:!0,...l,children:c.jsx(K.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});U.displayName=A;var M="TooltipPortal",[de,pe]=O(M,{forceMount:void 0}),B=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(M,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(Z,{asChild:!0,container:n,children:r})})})};B.displayName=M;var b="TooltipContent",V=i.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(Y,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),E=me(T.getBoundingClientRect()),P=Ce([...w,...E]);d(P),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(Y,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(b,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(L,u),()=>document.removeEventListener(L,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=b;var q="TooltipArrow",W=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});W.displayName=q;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ce(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),be(e)}function be(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=F,Ee=z,Pe=U,Re=B,_e=V,je=W;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Ae(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Pe,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Me(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Ae as T,ke as a,Me as b,Oe as c};
1
+ import{r as i,I as H,j as c,aH as J,H as K,M as C,T as S,aI as Q,au as W,G as Z,aG as ee,aJ as G,aP as te,aQ as oe,U as re,aX as ne,aR as se,c as j,v as ae}from"./index-C9zVB5WG.js";import{R as ie}from"./index-CIQsWYRd.js";var[O]=re("Tooltip",[G]),D=G(),$="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O($),F=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=$;var R="Tooltip",[ue,_]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=W(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Z({prop:r,defaultProp:n??!1,onChange:N=>{N?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(N)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),M=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(ee,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?M():P()},[a.isOpenDelayedRef,M,P]),onTriggerLeave:i.useCallback(()=>{h?E():(window.clearTimeout(f.current),f.current=0)},[E,h]),onOpen:P,onClose:E,disableHoverableContent:h,children:t})})};z.displayName=R;var L="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(J,{asChild:!0,...l,children:c.jsx(K.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:C(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});B.displayName=L;var I="TooltipPortal",[de,pe]=O(I,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(I,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(Q,{asChild:!0,container:n,children:r})})})};U.displayName=I;var b="TooltipContent",V=i.forwardRef((o,e)=>{const t=pe(b,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(b,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(X,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(b,o.__scopeTooltip),r=k(b,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),P=me(T.getBoundingClientRect()),E=Ce([...w,...P]);d(E),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(X,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(b,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=b;var Y="TooltipArrow",q=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(Y,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});q.displayName=Y;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function Ce(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),be(e)}function be(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=F,Pe=z,Ee=B,Re=U,_e=V,je=q;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Pe,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Ee,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Ie(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{Le as T,ke as a,Ie as b,Oe as c};
@@ -1 +1 @@
1
- import{c,j as l,r}from"./index-7L39VpRz.js";const s=r.createContext(null);function x(i){const t=c.c(3),{value:u,children:n}=i,o=u;let e;return t[0]!==n||t[1]!==o?(e=l.jsx(s.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=e):e=t[2],e}function p(i){const t=r.useContext(s);if(!t)throw new Error("usePluginContext must be used within a PluginContextProvider");if(!t.connectionId||!t.connection||!t.toolCaller)throw new Error("usePluginContext requires a valid connection. Use { partial: true } in empty state components.");return t}r.createContext(null);export{x as P,p as u};
1
+ import{c,j as l,r}from"./index-C9zVB5WG.js";const s=r.createContext(null);function x(i){const t=c.c(3),{value:u,children:n}=i,o=u;let e;return t[0]!==n||t[1]!==o?(e=l.jsx(s.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=e):e=t[2],e}function p(i){const t=r.useContext(s);if(!t)throw new Error("usePluginContext must be used within a PluginContextProvider");if(!t.connectionId||!t.connection||!t.toolCaller)throw new Error("usePluginContext requires a valid connection. Use { partial: true } in empty state components.");return t}r.createContext(null);export{x as P,p as u};