@decocms/mesh 2.136.0 → 2.137.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/client/assets/{AlertCircle-BmterM6-.js → AlertCircle-Bz0Gu2J2.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-D-24Asic.js → AlignLeft-cTDyunvB.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-DhmtNBCn.js → ArrowDown-DA10fwsF.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-BwnRcCxk.js → ArrowLeft-bHzBiXiT.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-B2lliNjJ.js → ArrowUp-DNV5Voek.js} +1 -1
  6. package/dist/client/assets/{Check-Dy5Jwsdl.js → Check-e1LxjlnS.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DCJamcsS.js → CheckCircle-aG4ywA2O.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-BMlUtSk0.js → CheckDone01-BbDxR0le.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-BEvXxeXZ.js → CheckVerified02-BSRvrUwy.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-B8UJn4iH.js → ChevronDown-BjWhsewG.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-LqDMtl3T.js → ChevronLeft-bfDO3afT.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-UHmTzu6U.js → ChevronRight-DZwFOSrA.js} +1 -1
  13. package/dist/client/assets/{Clock-CHKtyQRJ.js → Clock-BDkBqrq2.js} +1 -1
  14. package/dist/client/assets/{Code01-Ce_GLriH.js → Code01-Den27Mse.js} +1 -1
  15. package/dist/client/assets/{Container-nefPC-Vi.js → Container-w8ZJjmnR.js} +1 -1
  16. package/dist/client/assets/{Copy01-DTrKcR-Q.js → Copy01-BCJxa3pS.js} +1 -1
  17. package/dist/client/assets/{Dataflow03-DMAzBi98.js → Dataflow03-C3PCJs5S.js} +1 -1
  18. package/dist/client/assets/{DotsHorizontal-BmF1jyTg.js → DotsHorizontal-DdpEu4kv.js} +1 -1
  19. package/dist/client/assets/{DotsVertical-N7qtMw5m.js → DotsVertical-D65a3izp.js} +1 -1
  20. package/dist/client/assets/{Download01-C8dWfeAI.js → Download01-AELYrpVY.js} +1 -1
  21. package/dist/client/assets/{Edit01-CMeQdBcS.js → Edit01-CPphoQZI.js} +1 -1
  22. package/dist/client/assets/{Edit05-DZ_UN_S5.js → Edit05-Bxh4QPsk.js} +1 -1
  23. package/dist/client/assets/{Eye-DxLOh0i-.js → Eye-B65VnOsY.js} +1 -1
  24. package/dist/client/assets/{File02-vPAwJvd9.js → File02-DbPhqcQA.js} +1 -1
  25. package/dist/client/assets/{File06-CJFI46Rj.js → File06-DI2DTxDK.js} +1 -1
  26. package/dist/client/assets/{FilterLines-BfBD1RVS.js → FilterLines-BWEMXQRq.js} +1 -1
  27. package/dist/client/assets/{Globe01-CFu5KWUK.js → Globe01-0k9H0lE8.js} +1 -1
  28. package/dist/client/assets/{Globe02-KBI1AO62.js → Globe02-C7u-Ldxq.js} +1 -1
  29. package/dist/client/assets/{Grid01-CqnSySeu.js → Grid01-CMrNK-TY.js} +1 -1
  30. package/dist/client/assets/{Hash02-DJ4pr-VX.js → Hash02-DhotVIqT.js} +1 -1
  31. package/dist/client/assets/{Home02-Do5D--q6.js → Home02-CSmINeMq.js} +1 -1
  32. package/dist/client/assets/{Image01-C8E_92eh.js → Image01-HHGXqEyS.js} +1 -1
  33. package/dist/client/assets/{Inbox01-DFatNHSu.js → Inbox01-BVd6Ufjh.js} +1 -1
  34. package/dist/client/assets/{InfoCircle-BbDPfNIr.js → InfoCircle-CBee5-NO.js} +1 -1
  35. package/dist/client/assets/{Key01-5M9GOooO.js → Key01-DY7k7KSd.js} +1 -1
  36. package/dist/client/assets/{LayersTwo01-D3z_72X4.js → LayersTwo01-CuCFLmbR.js} +1 -1
  37. package/dist/client/assets/{LayoutLeft-CuouUkb7.js → LayoutLeft-D-Sd6nh5.js} +1 -1
  38. package/dist/client/assets/{Link01-phTHWMEc.js → Link01-C0RF1TkY.js} +1 -1
  39. package/dist/client/assets/{LinkExternal01-3GykVej2.js → LinkExternal01-DUHpfLmD.js} +1 -1
  40. package/dist/client/assets/{List-C81A8jh_.js → List-DFmwlXqV.js} +1 -1
  41. package/dist/client/assets/{Loading01-BWjBCSBL.js → Loading01-By16fsIj.js} +1 -1
  42. package/dist/client/assets/{Lock01-BF4OPECE.js → Lock01-CJOMXMAI.js} +1 -1
  43. package/dist/client/assets/{Play-CGCsuB7w.js → Play-DYSuo3bc.js} +1 -1
  44. package/dist/client/assets/{Plus-CK3qvOs-.js → Plus-jLReB_Bt.js} +1 -1
  45. package/dist/client/assets/{RefreshCcw01-DCU1xktc.js → RefreshCcw01-CJTVrN2f.js} +1 -1
  46. package/dist/client/assets/{Save01-sMmuMs88.js → Save01-B5XsnIBD.js} +1 -1
  47. package/dist/client/assets/{SearchMd-CpD1Xdqo.js → SearchMd-DF5i6zVs.js} +1 -1
  48. package/dist/client/assets/{Settings01-Bhz_Vu7B.js → Settings01-B3dw12xC.js} +1 -1
  49. package/dist/client/assets/{Shield01-B4VkgvZ4.js → Shield01-B801SPcx.js} +1 -1
  50. package/dist/client/assets/{Terminal-EynP_hYL.js → Terminal-DvZ2cYHA.js} +1 -1
  51. package/dist/client/assets/{Trash01-p1zJKNMp.js → Trash01-BZm-kVJv.js} +1 -1
  52. package/dist/client/assets/{Upload01-CuSBdknv.js → Upload01-B_Zc3fui.js} +1 -1
  53. package/dist/client/assets/{Users03-C4-0uA3w.js → Users03-CUtoEpN2.js} +1 -1
  54. package/dist/client/assets/{X-C0j62Xtl.js → X-DZCW78jV.js} +1 -1
  55. package/dist/client/assets/{XCircle-BtpMj0Vx.js → XCircle-BRYqxNwU.js} +1 -1
  56. package/dist/client/assets/{XClose-BoXt6_S8.js → XClose-CuKHHhHx.js} +1 -1
  57. package/dist/client/assets/{Zap-D7Nzarh3.js → Zap-D7ItB-QC.js} +1 -1
  58. package/dist/client/assets/{agent-connections-preview-CHU0g32U.js → agent-connections-preview-NrV6TyCn.js} +1 -1
  59. package/dist/client/assets/agent-detail-CTx9BMRL.js +2 -0
  60. package/dist/client/assets/agents-DtA7iPv8.js +1 -0
  61. package/dist/client/assets/{alert-dialog-D1XudKG9.js → alert-dialog-BY3oMun9.js} +2 -2
  62. package/dist/client/assets/{auth-catchall-BgPC7rSe.js → auth-catchall-DM7vkLcv.js} +1 -1
  63. package/dist/client/assets/{avatar-DNxsCl6r.js → avatar-Bp7Qjpgt.js} +1 -1
  64. package/dist/client/assets/{badge-D8RzvYJ4.js → badge-CU_zbIXX.js} +1 -1
  65. package/dist/client/assets/{binder-Blih3Yob.js → binder-D8RBAvqy.js} +1 -1
  66. package/dist/client/assets/{breadcrumb-N-YM-0qC.js → breadcrumb-J-4TPKpB.js} +1 -1
  67. package/dist/client/assets/{card-DpIJfsV8.js → card-ekU23Imm.js} +1 -1
  68. package/dist/client/assets/{chart-ClRGWH0O.js → chart-B5BozNmG.js} +1 -1
  69. package/dist/client/assets/{checkbox-CUOTkCKW.js → checkbox-Dkby6oH1.js} +1 -1
  70. package/dist/client/assets/{circle-alert-D8ryfTOx.js → circle-alert-Dmir_dX9.js} +1 -1
  71. package/dist/client/assets/{collapsible-CpgZSwBN.js → collapsible-C32NLu9h.js} +1 -1
  72. package/dist/client/assets/{collection-detail-B3RGhDtS.js → collection-detail-CVcRRgDT.js} +3 -3
  73. package/dist/client/assets/{collection-display-button-DrtKZPsB.js → collection-display-button-Cep9T1dy.js} +1 -1
  74. package/dist/client/assets/{collection-search-Cq4rjP0Z.js → collection-search-D8Kd7sE4.js} +1 -1
  75. package/dist/client/assets/collection-tab-BkZUIpwh.js +1 -0
  76. package/dist/client/assets/{collection-table-wrapper-CyGYWMWl.js → collection-table-wrapper-j8x7CZEu.js} +1 -1
  77. package/dist/client/assets/{collection-tabs-r7GKXx3H.js → collection-tabs-_pBQ3xqw.js} +1 -1
  78. package/dist/client/assets/{command-DazlgUs5.js → command-dR8rnu75.js} +1 -1
  79. package/dist/client/assets/{connect-CvX0kEdi.js → connect-DIFUIUeS.js} +1 -1
  80. package/dist/client/assets/{connection-card-BEmi4FHw.js → connection-card-Da4urKr2.js} +1 -1
  81. package/dist/client/assets/connection-detail-_mYJNdTe.js +1 -0
  82. package/dist/client/assets/connection-status-D-gHs_bI.js +1 -0
  83. package/dist/client/assets/connections-z3dfk98Y.js +1 -0
  84. package/dist/client/assets/{constants-BLSLjUCX.js → constants-B_iiTUip.js} +1 -1
  85. package/dist/client/assets/constants-DWucmYRT.js +1 -0
  86. package/dist/client/assets/{create-organization-dialog-_OZHP19d.js → create-organization-dialog-Dp3eW5BV.js} +1 -1
  87. package/dist/client/assets/{create-project-dialog-CBSHMrrx.js → create-project-dialog-wLCAgffa.js} +1 -1
  88. package/dist/client/assets/{danger-CPETFW7T.js → danger-DN20H7Jv.js} +1 -1
  89. package/dist/client/assets/{danger-zone-LxdCiZtW.js → danger-zone-BlpO_iQ-.js} +1 -1
  90. package/dist/client/assets/{decopilot-events-BEPzMc6y.js → decopilot-events-Dczeyumg.js} +1 -1
  91. package/dist/client/assets/dependencies-Uah1lriA.js +1 -0
  92. package/dist/client/assets/{dialog-BEh9NHdw.js → dialog-BuY4tTjY.js} +1 -1
  93. package/dist/client/assets/{dropdown-menu-BBy53YtY.js → dropdown-menu-CF9W86LV.js} +1 -1
  94. package/dist/client/assets/dynamic-plugin-layout-DbZjG_ew.js +1 -0
  95. package/dist/client/assets/{editable-task-title-CQx9B12m.js → editable-task-title-Po1P2Wd0.js} +1 -1
  96. package/dist/client/assets/{empty-state-Cd-Y6dcy.js → empty-state-COL4jrg3.js} +1 -1
  97. package/dist/client/assets/{env-vars-editor-CFN3JqN6.js → env-vars-editor-KGRYrftY.js} +1 -1
  98. package/dist/client/assets/{extract-connection-data-Bjwt_XIu.js → extract-connection-data-BbBDZhaA.js} +1 -1
  99. package/dist/client/assets/{file-browser-B3GXvhIi.js → file-browser-B2axtg2i.js} +2 -2
  100. package/dist/client/assets/{form-DKOen-4i.js → form-Ci0uQFmj.js} +1 -1
  101. package/dist/client/assets/{general-i_n7wxur.js → general-DaCshnBc.js} +1 -1
  102. package/dist/client/assets/{grid-view-1tJniq0A.js → grid-view-Cs9Fsjar.js} +1 -1
  103. package/dist/client/assets/{home-B-4A2LlA.js → home-CiAMHjmh.js} +1 -1
  104. package/dist/client/assets/{icon-picker-BXWmqDNl.js → icon-picker-5o9r59w2.js} +1 -1
  105. package/dist/client/assets/{index-CrfXnuko.js → index-B5u30SQw.js} +1 -1
  106. package/dist/client/assets/index-CBuDQZ5c.js +1 -0
  107. package/dist/client/assets/{index-DYkmX0JZ.js → index-CNLrMiMB.js} +1 -1
  108. package/dist/client/assets/{index-xQ2t379n.js → index-Cb17fVaO.js} +3 -3
  109. package/dist/client/assets/{index-9MR1Aak3.js → index-Ch67qqnf.js} +1 -1
  110. package/dist/client/assets/index-ClZvg-b8.js +1 -0
  111. package/dist/client/assets/{index-D3pPaynQ.js → index-CvxrBAxY.js} +1 -1
  112. package/dist/client/assets/{index-C79VipEf.js → index-DLDRkAi_.js} +1 -1
  113. package/dist/client/assets/{index-Bxe5mObN.js → index-DlboOjMX.js} +1 -1
  114. package/dist/client/assets/{infiniteQueryObserver-bwcxH-lX.js → infiniteQueryObserver-CiekiSCa.js} +1 -1
  115. package/dist/client/assets/{input-CquIDQAg.js → input-Cch0IC2D.js} +1 -1
  116. package/dist/client/assets/{integration-icon-CyNzGslP.js → integration-icon-BtE6qqXO.js} +1 -1
  117. package/dist/client/assets/{label-DgKgIZIr.js → label-BLzrK_Rs.js} +1 -1
  118. package/dist/client/assets/layout-BDCv6fVK.js +1 -0
  119. package/dist/client/assets/{layout-BaoRfV41.js → layout-JuxaRCBK.js} +1 -1
  120. package/dist/client/assets/{localstorage-keys-BVjc41qz.js → localstorage-keys-CxWEzkpK.js} +1 -1
  121. package/dist/client/assets/login-4Ej4TxT2.js +1 -0
  122. package/dist/client/assets/{markdown-Ba8nOSsK.js → markdown-B9U6C-Vk.js} +1 -1
  123. package/dist/client/assets/{mcp-app-renderer-DYp1_awD.js → mcp-app-renderer-vWTHzC-y.js} +1 -1
  124. package/dist/client/assets/{mcp-oauth-BKgRq621.js → mcp-oauth-D_4U_dE3.js} +1 -1
  125. package/dist/client/assets/{mcp-server-card-CpB9f-pn.js → mcp-server-card-xdUT5WQB.js} +1 -1
  126. package/dist/client/assets/mcp-server-detail-CZ73zkO0.js +2 -0
  127. package/dist/client/assets/members-CNen9UaM.js +3 -0
  128. package/dist/client/assets/{monaco-editor-Bqq988E3.js → monaco-editor-CYwLLnlJ.js} +1 -1
  129. package/dist/client/assets/{monitoring-Cw8c9SQ5.js → monitoring-BoQ3xY78.js} +2 -2
  130. package/dist/client/assets/monitoring-dashboard-edit-BdndwDLO.js +1 -0
  131. package/dist/client/assets/{monitoring-dashboard-view-CmbMs5N1.js → monitoring-dashboard-view-C4LyubYv.js} +2 -2
  132. package/dist/client/assets/{oauth-callback-3thxiCVs.js → oauth-callback-B6grmhGw.js} +1 -1
  133. package/dist/client/assets/page-BEtq2_NI.js +1 -0
  134. package/dist/client/assets/page-BnZfgb1H.js +1 -0
  135. package/dist/client/assets/{plugin-empty-state-CgwqeTLL.js → plugin-empty-state-CJi_lWXP.js} +1 -1
  136. package/dist/client/assets/{plugin-empty-state-n7cn669C.js → plugin-empty-state-DyUfvnh_.js} +1 -1
  137. package/dist/client/assets/{plugin-header-BxEyDthP.js → plugin-header-B7DjR-EV.js} +1 -1
  138. package/dist/client/assets/{plugin-header-AGaevBZn.js → plugin-header-UTo9wubo.js} +1 -1
  139. package/dist/client/assets/plugins-HjXVX3kj.js +1 -0
  140. package/dist/client/assets/{popover-BGz1EQnh.js → popover-CH5Uw6Js.js} +1 -1
  141. package/dist/client/assets/project-app-view-DdBfbyq8.js +1 -0
  142. package/dist/client/assets/project-layout-hj30-COK.js +1 -0
  143. package/dist/client/assets/{project-plugins-R_POmKuz.js → project-plugins-DiXNjiNd.js} +1 -1
  144. package/dist/client/assets/{projects-list-DvHzim4C.js → projects-list-BhN8iQTZ.js} +1 -1
  145. package/dist/client/assets/{readme-viewer-CSo2KaPk.js → readme-viewer-D1bVaWvP.js} +1 -1
  146. package/dist/client/assets/{registry-layout-BRpD6JKO.js → registry-layout-vtzlbvnH.js} +2 -2
  147. package/dist/client/assets/{registry-utils-Cjdxmsng.js → registry-utils-M1yY8DgS.js} +1 -1
  148. package/dist/client/assets/{reports-layout-WypzA6IP.js → reports-layout-BiNtHVIg.js} +2 -2
  149. package/dist/client/assets/{reset-password-C2yglusd.js → reset-password-CVwZZFPi.js} +1 -1
  150. package/dist/client/assets/{resizable-BeoLLDMu.js → resizable-taukBI4-.js} +1 -1
  151. package/dist/client/assets/{save-actions-OW6B8GGT.js → save-actions-DkD1FHqW.js} +1 -1
  152. package/dist/client/assets/{scroll-area-BlV5UvCB.js → scroll-area-nyuwfJ38.js} +1 -1
  153. package/dist/client/assets/{select-CDsJtNMV.js → select-iAQ1JGAr.js} +1 -1
  154. package/dist/client/assets/shell-layout-hy8oqx1b.js +3 -0
  155. package/dist/client/assets/{sidebar-settings-CYmJoaNT.js → sidebar-settings-DQE_2wSn.js} +1 -1
  156. package/dist/client/assets/{skeleton-Ct9swv0n.js → skeleton-BavbnGik.js} +1 -1
  157. package/dist/client/assets/{spinner-DfUcLZCl.js → spinner-BsdcXRt-.js} +1 -1
  158. package/dist/client/assets/{store-invite-ZCHtOCWs.js → store-invite-BlSnhDpm.js} +1 -1
  159. package/dist/client/assets/switch-BYETmQBd.js +1 -0
  160. package/dist/client/assets/{table-BCfVNRpI.js → table-5KSUgwco.js} +1 -1
  161. package/dist/client/assets/tabs-BCXNMT0l.js +1 -0
  162. package/dist/client/assets/tasks-BEHJWLwK.js +1 -0
  163. package/dist/client/assets/{tasks-panel-Bcd4i-z8.js → tasks-panel-DXBfZcDd.js} +1 -1
  164. package/dist/client/assets/{textarea-BvEkv28R.js → textarea-D4QsZZY2.js} +1 -1
  165. package/dist/client/assets/{time-range-picker-CTYo_Gy_.js → time-range-picker-LYFa1sSz.js} +1 -1
  166. package/dist/client/assets/{toggle-group-BuwLTYBs.js → toggle-group-CnLXoLRJ.js} +1 -1
  167. package/dist/client/assets/tools-list-CWpIc2sG.js +1 -0
  168. package/dist/client/assets/tooltip-Bb66VFhj.js +1 -0
  169. package/dist/client/assets/{topbar-portal-CUBonFlI.js → topbar-portal-DBCM_jc6.js} +1 -1
  170. package/dist/client/assets/{types-CnPYT6I7.js → types-CGMnrrVy.js} +1 -1
  171. package/dist/client/assets/use-binding-Bi9qdfAY.js +1 -0
  172. package/dist/client/assets/use-collections-BF-71bZg.js +1 -0
  173. package/dist/client/assets/use-connection-Bv6BgTqI.js +1 -0
  174. package/dist/client/assets/{use-copy-oq5GkYwB.js → use-copy-QwK_lQBK.js} +1 -1
  175. package/dist/client/assets/{use-create-virtual-mcp-COKyzJBE.js → use-create-virtual-mcp-wYKTF_rl.js} +1 -1
  176. package/dist/client/assets/use-install-from-registry-CM7KAiir.js +1 -0
  177. package/dist/client/assets/{use-list-state-DhRtf36X.js → use-list-state-CB-KMJqf.js} +1 -1
  178. package/dist/client/assets/use-llm-lZx_FT_g.js +1 -0
  179. package/dist/client/assets/{use-mcp-resources-B792gs6l.js → use-mcp-resources-MU6kxIry.js} +1 -1
  180. package/dist/client/assets/{use-mcp-tools-DScmBuoc.js → use-mcp-tools-q5O9mXfB.js} +1 -1
  181. package/dist/client/assets/{use-members-Chfn3LoP.js → use-members-xNw9MWgV.js} +1 -1
  182. package/dist/client/assets/{use-mobile-CZlm25dt.js → use-mobile-By224gq0.js} +1 -1
  183. package/dist/client/assets/{use-project-BUsmU3t_.js → use-project-Dr0Nftxm.js} +1 -1
  184. package/dist/client/assets/{use-settings-modal-D18j_l44.js → use-settings-modal-5estZr-G.js} +1 -1
  185. package/dist/client/assets/{use-view-mode-5Lt8g0uo.js → use-view-mode-Dd5y7aaP.js} +1 -1
  186. package/dist/client/assets/use-virtual-mcp-T76ZkZ-8.js +1 -0
  187. package/dist/client/assets/useInfiniteQuery-DGesCtT2.js +1 -0
  188. package/dist/client/assets/{useMutation-tQLZk7P3.js → useMutation-DRjp2Nl5.js} +1 -1
  189. package/dist/client/assets/useQuery-BcAK4m0m.js +1 -0
  190. package/dist/client/assets/useSuspenseInfiniteQuery-B9EajsfN.js +1 -0
  191. package/dist/client/assets/{user-CI081yAV.js → user-CkBLhwlg.js} +1 -1
  192. package/dist/client/assets/workflow-C8yX97ao.js +1 -0
  193. package/dist/client/index.html +1 -1
  194. package/package.json +1 -1
  195. package/dist/client/assets/agent-detail-DURsxgC5.js +0 -2
  196. package/dist/client/assets/agents-Cl7pGBMM.js +0 -1
  197. package/dist/client/assets/collection-tab-CDCwjyV8.js +0 -1
  198. package/dist/client/assets/connection-detail-CJDHlEwZ.js +0 -1
  199. package/dist/client/assets/connections-DZjwaIPT.js +0 -1
  200. package/dist/client/assets/constants-D_mJYCD9.js +0 -1
  201. package/dist/client/assets/dependencies-Cz-sRh-1.js +0 -1
  202. package/dist/client/assets/dynamic-plugin-layout-p6ER6wNw.js +0 -1
  203. package/dist/client/assets/index-C6W9eJZm.js +0 -1
  204. package/dist/client/assets/index-DVmCBhSl.js +0 -1
  205. package/dist/client/assets/layout-Dknw5WOk.js +0 -1
  206. package/dist/client/assets/login-CbUqOEDM.js +0 -1
  207. package/dist/client/assets/mcp-server-detail-CCUSuXBZ.js +0 -2
  208. package/dist/client/assets/members-C3L37RaV.js +0 -3
  209. package/dist/client/assets/monitoring-dashboard-edit-BMa2OOFc.js +0 -1
  210. package/dist/client/assets/page-D6s6DLQp.js +0 -1
  211. package/dist/client/assets/page-DojbxRSJ.js +0 -1
  212. package/dist/client/assets/plugins-DPuuPP05.js +0 -1
  213. package/dist/client/assets/project-app-view-B5525387.js +0 -1
  214. package/dist/client/assets/project-layout-DDwGJ0ig.js +0 -1
  215. package/dist/client/assets/shell-layout-DfbBuM37.js +0 -3
  216. package/dist/client/assets/switch-a3WrSRQb.js +0 -1
  217. package/dist/client/assets/tabs-DN8uQx_4.js +0 -1
  218. package/dist/client/assets/tasks-Bgtg3aZ6.js +0 -1
  219. package/dist/client/assets/tools-list-DKmevE2X.js +0 -1
  220. package/dist/client/assets/tooltip-B6yKYOIf.js +0 -1
  221. package/dist/client/assets/use-binding-BSjPQ0Be.js +0 -1
  222. package/dist/client/assets/use-connection-Dtj63U01.js +0 -1
  223. package/dist/client/assets/use-install-from-registry-DD_AL_1f.js +0 -1
  224. package/dist/client/assets/use-llm-5n5wwCT_.js +0 -1
  225. package/dist/client/assets/use-virtual-mcp-COkdNvVv.js +0 -1
  226. package/dist/client/assets/useInfiniteQuery-fRddscS9.js +0 -1
  227. package/dist/client/assets/useQuery-BLe-0FCm.js +0 -1
  228. package/dist/client/assets/useSuspenseInfiniteQuery-D0p_NlPn.js +0 -1
  229. package/dist/client/assets/workflow-Bu6-o0iD.js +0 -1
@@ -1 +1 @@
1
- import{r as c,I as k,aJ as $,j as d,H as j,D as rt,G as Ne,aW as st,aF as be,aU as lt,M as P,aV as at,a2 as _e,aX as Ee,bE as it,W as ct,aI as dt,b0 as ut,b3 as pt,b1 as ft,b4 as mt,aY as ht,U as vt,b2 as gt,aZ as xt,a$ as St,c as ee,v as oe}from"./index-xQ2t379n.js";import{V as wt}from"./index-CrfXnuko.js";import{i as Ct}from"./Check-Dy5Jwsdl.js";import{t as Re}from"./ChevronDown-B8UJn4iH.js";function Pe(n,[e,t]){return Math.min(t,Math.max(e,n))}var yt=[" ","Enter","ArrowUp","ArrowDown"],It=[" ","Enter"],J="Select",[de,ue,bt]=it(J),[ne]=vt(J,[bt,Ee]),pe=Ee(),[Tt,G]=ne(J),[Nt,Pt]=ne(J),je=n=>{const{__scopeSelect:e,children:t,open:o,defaultOpen:r,onOpenChange:i,value:s,defaultValue:l,onValueChange:a,dir:u,name:h,autoComplete:g,disabled:b,required:w,form:S}=n,p=pe(e),[v,C]=c.useState(null),[m,x]=c.useState(null),[U,M]=c.useState(!1),re=rt(u),[_,O]=Ne({prop:o,defaultProp:r??!1,onChange:i,caller:J}),[W,q]=Ne({prop:s,defaultProp:l,onChange:a,caller:J}),L=c.useRef(null),B=v?S||!!v.closest("form"):!0,[F,V]=c.useState(new Set),H=Array.from(F).map(E=>E.props.value).join(";");return d.jsx(st,{...p,children:d.jsxs(Tt,{required:w,scope:e,trigger:v,onTriggerChange:C,valueNode:m,onValueNodeChange:x,valueNodeHasChildren:U,onValueNodeHasChildrenChange:M,contentId:be(),value:W,onValueChange:q,open:_,onOpenChange:O,dir:re,triggerPointerDownPosRef:L,disabled:b,children:[d.jsx(de.Provider,{scope:e,children:d.jsx(Nt,{scope:n.__scopeSelect,onNativeOptionAdd:c.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:c.useCallback(E=>{V(D=>{const z=new Set(D);return z.delete(E),z})},[]),children:t})}),B?d.jsxs(Qe,{"aria-hidden":!0,required:w,tabIndex:-1,name:h,autoComplete:g,value:W,onChange:E=>q(E.target.value),disabled:b,form:S,children:[W===void 0?d.jsx("option",{value:""}):null,Array.from(F)]},H):null]})})};je.displayName=J;var Me="SelectTrigger",Ae=c.forwardRef((n,e)=>{const{__scopeSelect:t,disabled:o=!1,...r}=n,i=pe(t),s=G(Me,t),l=s.disabled||o,a=k(e,s.onTriggerChange),u=ue(t),h=c.useRef("touch"),[g,b,w]=tt(p=>{const v=u().filter(x=>!x.disabled),C=v.find(x=>x.value===s.value),m=ot(v,p,C);m!==void 0&&s.onValueChange(m.value)}),S=p=>{l||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return d.jsx(lt,{asChild:!0,...i,children:d.jsx(j.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":et(s.value)?"":void 0,...r,ref:a,onClick:P(r.onClick,p=>{p.currentTarget.focus(),h.current!=="mouse"&&S(p)}),onPointerDown:P(r.onPointerDown,p=>{h.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:P(r.onKeyDown,p=>{const v=g.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&b(p.key),!(v&&p.key===" ")&&yt.includes(p.key)&&(S(),p.preventDefault())})})})});Ae.displayName=Me;var Oe="SelectValue",De=c.forwardRef((n,e)=>{const{__scopeSelect:t,className:o,style:r,children:i,placeholder:s="",...l}=n,a=G(Oe,t),{onValueNodeHasChildrenChange:u}=a,h=i!==void 0,g=k(e,a.onValueNodeChange);return $(()=>{u(h)},[u,h]),d.jsx(j.span,{...l,ref:g,style:{pointerEvents:"none"},children:et(a.value)?d.jsx(d.Fragment,{children:s}):i})});De.displayName=Oe;var _t="SelectIcon",ke=c.forwardRef((n,e)=>{const{__scopeSelect:t,children:o,...r}=n;return d.jsx(j.span,{"aria-hidden":!0,...r,ref:e,children:o||"▼"})});ke.displayName=_t;var Et="SelectPortal",Le=n=>d.jsx(at,{asChild:!0,...n});Le.displayName=Et;var Q="SelectContent",Be=c.forwardRef((n,e)=>{const t=G(Q,n.__scopeSelect),[o,r]=c.useState();if($(()=>{r(new DocumentFragment)},[]),!t.open){const i=o;return i?_e.createPortal(d.jsx(Ve,{scope:n.__scopeSelect,children:d.jsx(de.Slot,{scope:n.__scopeSelect,children:d.jsx("div",{children:n.children})})}),i):null}return d.jsx(He,{...n,ref:e})});Be.displayName=Q;var A=10,[Ve,Y]=ne(Q),Rt="SelectContentImpl",jt=gt("SelectContent.RemoveScroll"),He=c.forwardRef((n,e)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v,...C}=n,m=G(Q,t),[x,U]=c.useState(null),[M,re]=c.useState(null),_=k(e,f=>U(f)),[O,W]=c.useState(null),[q,L]=c.useState(null),B=ue(t),[F,V]=c.useState(!1),H=c.useRef(!1);c.useEffect(()=>{if(x)return ut(x)},[x]),pt();const E=c.useCallback(f=>{const[T,...R]=B().map(N=>N.ref.current),[y]=R.slice(-1),I=document.activeElement;for(const N of f)if(N===I||(N?.scrollIntoView({block:"nearest"}),N===T&&M&&(M.scrollTop=0),N===y&&M&&(M.scrollTop=M.scrollHeight),N?.focus(),document.activeElement!==I))return},[B,M]),D=c.useCallback(()=>E([O,x]),[E,O,x]);c.useEffect(()=>{F&&D()},[F,D]);const{onOpenChange:z,triggerPointerDownPosRef:K}=m;c.useEffect(()=>{if(x){let f={x:0,y:0};const T=y=>{f={x:Math.abs(Math.round(y.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(y.pageY)-(K.current?.y??0))}},R=y=>{f.x<=10&&f.y<=10?y.preventDefault():x.contains(y.target)||z(!1),document.removeEventListener("pointermove",T),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",R,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",R,{capture:!0})}}},[x,z,K]),c.useEffect(()=>{const f=()=>z(!1);return window.addEventListener("blur",f),window.addEventListener("resize",f),()=>{window.removeEventListener("blur",f),window.removeEventListener("resize",f)}},[z]);const[fe,ae]=tt(f=>{const T=B().filter(I=>!I.disabled),R=T.find(I=>I.ref.current===document.activeElement),y=ot(T,f,R);y&&setTimeout(()=>y.ref.current.focus())}),me=c.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&(W(f),y&&(H.current=!0))},[m.value]),he=c.useCallback(()=>x?.focus(),[x]),te=c.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&L(f)},[m.value]),ie=o==="popper"?Se:ze,se=ie===Se?{side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v}:{};return d.jsx(Ve,{scope:t,content:x,viewport:M,onViewportChange:re,itemRefCallback:me,selectedItem:O,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:q,position:o,isPositioned:F,searchRef:fe,children:d.jsx(ft,{as:jt,allowPinchZoom:!0,children:d.jsx(mt,{asChild:!0,trapped:m.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:P(r,f=>{m.trigger?.focus({preventScroll:!0}),f.preventDefault()}),children:d.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:d.jsx(ie,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:f=>f.preventDefault(),...C,...se,onPlaced:()=>V(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:P(C.onKeyDown,f=>{const T=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!T&&f.key.length===1&&ae(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let y=B().filter(I=>!I.disabled).map(I=>I.ref.current);if(["ArrowUp","End"].includes(f.key)&&(y=y.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const I=f.target,N=y.indexOf(I);y=y.slice(N+1)}setTimeout(()=>E(y)),f.preventDefault()}})})})})})})});He.displayName=Rt;var Mt="SelectItemAlignedPosition",ze=c.forwardRef((n,e)=>{const{__scopeSelect:t,onPlaced:o,...r}=n,i=G(Q,t),s=Y(Q,t),[l,a]=c.useState(null),[u,h]=c.useState(null),g=k(e,_=>h(_)),b=ue(t),w=c.useRef(!1),S=c.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:C,focusSelectedItem:m}=s,x=c.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&p&&v&&C){const _=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),W=i.valueNode.getBoundingClientRect(),q=C.getBoundingClientRect();if(i.dir!=="rtl"){const I=q.left-O.left,N=W.left-I,X=_.left-N,Z=_.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Pe(N,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.left=xe+"px"}else{const I=O.right-q.right,N=window.innerWidth-W.right-I,X=window.innerWidth-_.right-N,Z=_.width+X,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Pe(N,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.right=xe+"px"}const L=b(),B=window.innerHeight-A*2,F=p.scrollHeight,V=window.getComputedStyle(u),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),z=parseInt(V.paddingBottom,10),K=H+E+F+z+D,fe=Math.min(v.offsetHeight*5,K),ae=window.getComputedStyle(p),me=parseInt(ae.paddingTop,10),he=parseInt(ae.paddingBottom,10),te=_.top+_.height/2-A,ie=B-te,se=v.offsetHeight/2,f=v.offsetTop+se,T=H+E+f,R=K-T;if(T<=te){const I=L.length>0&&v===L[L.length-1].ref.current;l.style.bottom="0px";const N=u.clientHeight-p.offsetTop-p.offsetHeight,X=Math.max(ie,se+(I?he:0)+N+D),Z=T+X;l.style.height=Z+"px"}else{const I=L.length>0&&v===L[0].ref.current;l.style.top="0px";const X=Math.max(te,H+p.offsetTop+(I?me:0)+se)+R;l.style.height=X+"px",p.scrollTop=T-te+p.offsetTop}l.style.margin=`${A}px 0`,l.style.minHeight=fe+"px",l.style.maxHeight=B+"px",o?.(),requestAnimationFrame(()=>w.current=!0)}},[b,i.trigger,i.valueNode,l,u,p,v,C,i.dir,o]);$(()=>x(),[x]);const[U,M]=c.useState();$(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const re=c.useCallback(_=>{_&&S.current===!0&&(x(),m?.(),S.current=!1)},[x,m]);return d.jsx(Ot,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:re,children:d.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:d.jsx(j.div,{...r,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});ze.displayName=Mt;var At="SelectPopperPosition",Se=c.forwardRef((n,e)=>{const{__scopeSelect:t,align:o="start",collisionPadding:r=A,...i}=n,s=pe(t);return d.jsx(xt,{...s,...i,ref:e,align:o,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Se.displayName=At;var[Ot,Te]=ne(Q,{}),we="SelectViewport",Ue=c.forwardRef((n,e)=>{const{__scopeSelect:t,nonce:o,...r}=n,i=Y(we,t),s=Te(we,t),l=k(e,i.onViewportChange),a=c.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(de.Slot,{scope:t,children:d.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:P(r.onScroll,u=>{const h=u.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:b}=s;if(b?.current&&g){const w=Math.abs(a.current-h.scrollTop);if(w>0){const S=window.innerHeight-A*2,p=parseFloat(g.style.minHeight),v=parseFloat(g.style.height),C=Math.max(p,v);if(C<S){const m=C+w,x=Math.min(S,m),U=m-x;g.style.height=x+"px",g.style.bottom==="0px"&&(h.scrollTop=U>0?U:0,g.style.justifyContent="flex-end")}}}a.current=h.scrollTop})})})]})});Ue.displayName=we;var We="SelectGroup",[Dt,kt]=ne(We),Lt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=be();return d.jsx(Dt,{scope:t,id:r,children:d.jsx(j.div,{role:"group","aria-labelledby":r,...o,ref:e})})});Lt.displayName=We;var Fe="SelectLabel",Bt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=kt(Fe,t);return d.jsx(j.div,{id:r.id,...o,ref:e})});Bt.displayName=Fe;var ce="SelectItem",[Vt,Ke]=ne(ce),$e=c.forwardRef((n,e)=>{const{__scopeSelect:t,value:o,disabled:r=!1,textValue:i,...s}=n,l=G(ce,t),a=Y(ce,t),u=l.value===o,[h,g]=c.useState(i??""),[b,w]=c.useState(!1),S=k(e,m=>a.itemRefCallback?.(m,o,r)),p=be(),v=c.useRef("touch"),C=()=>{r||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Vt,{scope:t,value:o,disabled:r,textId:p,isSelected:u,onItemTextChange:c.useCallback(m=>{g(x=>x||(m?.textContent??"").trim())},[]),children:d.jsx(de.ItemSlot,{scope:t,value:o,disabled:r,textValue:h,children:d.jsx(j.div,{role:"option","aria-labelledby":p,"data-highlighted":b?"":void 0,"aria-selected":u&&b,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...s,ref:S,onFocus:P(s.onFocus,()=>w(!0)),onBlur:P(s.onBlur,()=>w(!1)),onClick:P(s.onClick,()=>{v.current!=="mouse"&&C()}),onPointerUp:P(s.onPointerUp,()=>{v.current==="mouse"&&C()}),onPointerDown:P(s.onPointerDown,m=>{v.current=m.pointerType}),onPointerMove:P(s.onPointerMove,m=>{v.current=m.pointerType,r?a.onItemLeave?.():v.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:P(s.onPointerLeave,m=>{m.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:P(s.onKeyDown,m=>{a.searchRef?.current!==""&&m.key===" "||(It.includes(m.key)&&C(),m.key===" "&&m.preventDefault())})})})})});$e.displayName=ce;var le="SelectItemText",Ge=c.forwardRef((n,e)=>{const{__scopeSelect:t,className:o,style:r,...i}=n,s=G(le,t),l=Y(le,t),a=Ke(le,t),u=Pt(le,t),[h,g]=c.useState(null),b=k(e,C=>g(C),a.onItemTextChange,C=>l.itemTextRefCallback?.(C,a.value,a.disabled)),w=h?.textContent,S=c.useMemo(()=>d.jsx("option",{value:a.value,disabled:a.disabled,children:w},a.value),[a.disabled,a.value,w]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return $(()=>(p(S),()=>v(S)),[p,v,S]),d.jsxs(d.Fragment,{children:[d.jsx(j.span,{id:a.textId,...i,ref:b}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?_e.createPortal(i.children,s.valueNode):null]})});Ge.displayName=le;var Ye="SelectItemIndicator",qe=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n;return Ke(Ye,t).isSelected?d.jsx(j.span,{"aria-hidden":!0,...o,ref:e}):null});qe.displayName=Ye;var Ce="SelectScrollUpButton",Xe=c.forwardRef((n,e)=>{const t=Y(Ce,n.__scopeSelect),o=Te(Ce,n.__scopeSelect),[r,i]=c.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollTop>0;i(u)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),r?d.jsx(Je,{...n,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});Xe.displayName=Ce;var ye="SelectScrollDownButton",Ze=c.forwardRef((n,e)=>{const t=Y(ye,n.__scopeSelect),o=Te(ye,n.__scopeSelect),[r,i]=c.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,h=Math.ceil(a.scrollTop)<u;i(h)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),r?d.jsx(Je,{...n,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});Ze.displayName=ye;var Je=c.forwardRef((n,e)=>{const{__scopeSelect:t,onAutoScroll:o,...r}=n,i=Y("SelectScrollButton",t),s=c.useRef(null),l=ue(t),a=c.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>a(),[a]),$(()=>{l().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),d.jsx(j.div,{"aria-hidden":!0,...r,ref:e,style:{flexShrink:0,...r.style},onPointerDown:P(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:P(r.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:P(r.onPointerLeave,()=>{a()})})}),Ht="SelectSeparator",zt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n;return d.jsx(j.div,{"aria-hidden":!0,...o,ref:e})});zt.displayName=Ht;var Ie="SelectArrow",Ut=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=pe(t),i=G(Ie,t),s=Y(Ie,t);return i.open&&s.position==="popper"?d.jsx(St,{...r,...o,ref:e}):null});Ut.displayName=Ie;var Wt="SelectBubbleInput",Qe=c.forwardRef(({__scopeSelect:n,value:e,...t},o)=>{const r=c.useRef(null),i=k(o,r),s=ct(e);return c.useEffect(()=>{const l=r.current;if(!l)return;const a=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==e&&h){const g=new Event("change",{bubbles:!0});h.call(l,e),l.dispatchEvent(g)}},[s,e]),d.jsx(j.select,{...t,style:{...wt,...t.style},ref:i,defaultValue:e})});Qe.displayName=Wt;function et(n){return n===""||n===void 0}function tt(n){const e=dt(n),t=c.useRef(""),o=c.useRef(0),r=c.useCallback(s=>{const l=t.current+s;e(l),(function a(u){t.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>a(""),1e3))})(l)},[e]),i=c.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,r,i]}function ot(n,e,t){const r=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=t?n.indexOf(t):-1;let s=Ft(n,Math.max(i,0));r.length===1&&(s=s.filter(u=>u!==t));const a=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return a!==t?a:void 0}function Ft(n,e){return n.map((t,o)=>n[(e+o)%n.length])}var Kt=je,$t=Ae,Gt=De,Yt=ke,qt=Le,Xt=Be,Zt=Ue,Jt=$e,Qt=Ge,eo=qe,to=Xe,oo=Ze;const nt=({size:n=24,color:e="currentColor",...t})=>c.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},c.createElement("path",{d:"m18 15-6-6-6 6"}));nt.displayName="ChevronUp";function co(n){const e=ee.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Kt,{"data-slot":"select",...t}),e[2]=t,e[3]=o):o=e[3],o}function uo(n){const e=ee.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Gt,{"data-slot":"select-value",...t}),e[2]=t,e[3]=o):o=e[3],o}function po(n){const e=ee.c(13);let t,o,r,i;e[0]!==n?({className:o,size:i,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i):(t=e[1],o=e[2],r=e[3],i=e[4]);const s=i===void 0?"default":i;let l;e[5]!==o?(l=oe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]: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 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-10 data-[size=sm]:h-7 data-[size=xs]:h-7 data-[size=xs]:px-2.5 data-[size=xs]:py-1.5 data-[size=xs]:rounded-lg *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=d.jsx(Yt,{asChild:!0,children:d.jsx(Re,{className:"size-4 opacity-50"})}),e[7]=a):a=e[7];let u;return e[8]!==t||e[9]!==r||e[10]!==s||e[11]!==l?(u=d.jsxs($t,{"data-slot":"select-trigger","data-size":s,className:l,...r,children:[t,a]}),e[8]=t,e[9]=r,e[10]=s,e[11]=l,e[12]=u):u=e[12],u}function fo(n){const e=ee.c(25);let t,o,r,i,s;e[0]!==n?({className:o,children:t,position:i,hideScrollButtons:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i,e[5]=s):(t=e[1],o=e[2],r=e[3],i=e[4],s=e[5]);const l=i===void 0?"popper":i,a=s===void 0?!1:s,u=l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let h;e[6]!==o||e[7]!==u?(h=oe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border shadow-md",u,o),e[6]=o,e[7]=u,e[8]=h):h=e[8];let g;e[9]!==a?(g=!a&&d.jsx(no,{}),e[9]=a,e[10]=g):g=e[10];const b=l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let w;e[11]!==b?(w=oe("p-1",b),e[11]=b,e[12]=w):w=e[12];let S;e[13]!==t||e[14]!==w?(S=d.jsx(Zt,{className:w,children:t}),e[13]=t,e[14]=w,e[15]=S):S=e[15];let p;e[16]!==a?(p=!a&&d.jsx(ro,{}),e[16]=a,e[17]=p):p=e[17];let v;return e[18]!==l||e[19]!==r||e[20]!==h||e[21]!==g||e[22]!==S||e[23]!==p?(v=d.jsx(qt,{children:d.jsxs(Xt,{"data-slot":"select-content",className:h,position:l,...r,children:[g,S,p]})}),e[18]=l,e[19]=r,e[20]=h,e[21]=g,e[22]=S,e[23]=p,e[24]=v):v=e[24],v}function mo(n){const e=ee.c(16);let t,o,r,i;e[0]!==n?({className:o,children:t,hideCheck:i,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i):(t=e[1],o=e[2],r=e[3],i=e[4]);const s=i===void 0?!1:i;let l;e[5]!==o?(l=oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]!==s?(a=!s&&d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(eo,{children:d.jsx(Ct,{className:"size-4"})})}),e[7]=s,e[8]=a):a=e[8];let u;e[9]!==t?(u=d.jsx(Qt,{children:t}),e[9]=t,e[10]=u):u=e[10];let h;return e[11]!==r||e[12]!==l||e[13]!==a||e[14]!==u?(h=d.jsxs(Jt,{"data-slot":"select-item",className:l,...r,children:[a,u]}),e[11]=r,e[12]=l,e[13]=a,e[14]=u,e[15]=h):h=e[15],h}function no(n){const e=ee.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=r):r=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(nt,{className:"size-4"}),e[5]=i):i=e[5];let s;return e[6]!==o||e[7]!==r?(s=d.jsx(to,{"data-slot":"select-scroll-up-button",className:r,...o,children:i}),e[6]=o,e[7]=r,e[8]=s):s=e[8],s}function ro(n){const e=ee.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=r):r=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(Re,{className:"size-4"}),e[5]=i):i=e[5];let s;return e[6]!==o||e[7]!==r?(s=d.jsx(oo,{"data-slot":"select-scroll-down-button",className:r,...o,children:i}),e[6]=o,e[7]=r,e[8]=s):s=e[8],s}export{co as S,po as a,uo as b,fo as c,mo as d,Pe as e,nt as n};
1
+ import{r as c,M as k,aL as $,j as d,J as j,H as rt,I as Ne,aY as st,aH as Ie,aW as lt,T as P,aX as at,a5 as _e,aZ as Ee,bE as it,Y as ct,aK as dt,b2 as ut,b5 as pt,b3 as ft,b6 as mt,a_ as ht,X as vt,b4 as gt,a$ as xt,b1 as St,c as ee,v as oe}from"./index-Cb17fVaO.js";import{V as wt}from"./index-B5u30SQw.js";import{i as Ct}from"./Check-e1LxjlnS.js";import{t as Re}from"./ChevronDown-BjWhsewG.js";function Pe(n,[e,t]){return Math.min(t,Math.max(e,n))}var yt=[" ","Enter","ArrowUp","ArrowDown"],bt=[" ","Enter"],J="Select",[de,ue,It]=it(J),[ne]=vt(J,[It,Ee]),pe=Ee(),[Tt,G]=ne(J),[Nt,Pt]=ne(J),je=n=>{const{__scopeSelect:e,children:t,open:o,defaultOpen:r,onOpenChange:i,value:s,defaultValue:l,onValueChange:a,dir:u,name:h,autoComplete:g,disabled:I,required:w,form:S}=n,p=pe(e),[v,C]=c.useState(null),[m,x]=c.useState(null),[U,M]=c.useState(!1),re=rt(u),[_,O]=Ne({prop:o,defaultProp:r??!1,onChange:i,caller:J}),[W,X]=Ne({prop:s,defaultProp:l,onChange:a,caller:J}),L=c.useRef(null),B=v?S||!!v.closest("form"):!0,[F,V]=c.useState(new Set),H=Array.from(F).map(E=>E.props.value).join(";");return d.jsx(st,{...p,children:d.jsxs(Tt,{required:w,scope:e,trigger:v,onTriggerChange:C,valueNode:m,onValueNodeChange:x,valueNodeHasChildren:U,onValueNodeHasChildrenChange:M,contentId:Ie(),value:W,onValueChange:X,open:_,onOpenChange:O,dir:re,triggerPointerDownPosRef:L,disabled:I,children:[d.jsx(de.Provider,{scope:e,children:d.jsx(Nt,{scope:n.__scopeSelect,onNativeOptionAdd:c.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:c.useCallback(E=>{V(D=>{const z=new Set(D);return z.delete(E),z})},[]),children:t})}),B?d.jsxs(Qe,{"aria-hidden":!0,required:w,tabIndex:-1,name:h,autoComplete:g,value:W,onChange:E=>X(E.target.value),disabled:I,form:S,children:[W===void 0?d.jsx("option",{value:""}):null,Array.from(F)]},H):null]})})};je.displayName=J;var Me="SelectTrigger",Ae=c.forwardRef((n,e)=>{const{__scopeSelect:t,disabled:o=!1,...r}=n,i=pe(t),s=G(Me,t),l=s.disabled||o,a=k(e,s.onTriggerChange),u=ue(t),h=c.useRef("touch"),[g,I,w]=tt(p=>{const v=u().filter(x=>!x.disabled),C=v.find(x=>x.value===s.value),m=ot(v,p,C);m!==void 0&&s.onValueChange(m.value)}),S=p=>{l||(s.onOpenChange(!0),w()),p&&(s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return d.jsx(lt,{asChild:!0,...i,children:d.jsx(j.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":et(s.value)?"":void 0,...r,ref:a,onClick:P(r.onClick,p=>{p.currentTarget.focus(),h.current!=="mouse"&&S(p)}),onPointerDown:P(r.onPointerDown,p=>{h.current=p.pointerType;const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(S(p),p.preventDefault())}),onKeyDown:P(r.onKeyDown,p=>{const v=g.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&I(p.key),!(v&&p.key===" ")&&yt.includes(p.key)&&(S(),p.preventDefault())})})})});Ae.displayName=Me;var Oe="SelectValue",De=c.forwardRef((n,e)=>{const{__scopeSelect:t,className:o,style:r,children:i,placeholder:s="",...l}=n,a=G(Oe,t),{onValueNodeHasChildrenChange:u}=a,h=i!==void 0,g=k(e,a.onValueNodeChange);return $(()=>{u(h)},[u,h]),d.jsx(j.span,{...l,ref:g,style:{pointerEvents:"none"},children:et(a.value)?d.jsx(d.Fragment,{children:s}):i})});De.displayName=Oe;var _t="SelectIcon",ke=c.forwardRef((n,e)=>{const{__scopeSelect:t,children:o,...r}=n;return d.jsx(j.span,{"aria-hidden":!0,...r,ref:e,children:o||"▼"})});ke.displayName=_t;var Et="SelectPortal",Le=n=>d.jsx(at,{asChild:!0,...n});Le.displayName=Et;var Q="SelectContent",Be=c.forwardRef((n,e)=>{const t=G(Q,n.__scopeSelect),[o,r]=c.useState();if($(()=>{r(new DocumentFragment)},[]),!t.open){const i=o;return i?_e.createPortal(d.jsx(Ve,{scope:n.__scopeSelect,children:d.jsx(de.Slot,{scope:n.__scopeSelect,children:d.jsx("div",{children:n.children})})}),i):null}return d.jsx(He,{...n,ref:e})});Be.displayName=Q;var A=10,[Ve,Y]=ne(Q),Rt="SelectContentImpl",jt=gt("SelectContent.RemoveScroll"),He=c.forwardRef((n,e)=>{const{__scopeSelect:t,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:I,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v,...C}=n,m=G(Q,t),[x,U]=c.useState(null),[M,re]=c.useState(null),_=k(e,f=>U(f)),[O,W]=c.useState(null),[X,L]=c.useState(null),B=ue(t),[F,V]=c.useState(!1),H=c.useRef(!1);c.useEffect(()=>{if(x)return ut(x)},[x]),pt();const E=c.useCallback(f=>{const[T,...R]=B().map(N=>N.ref.current),[y]=R.slice(-1),b=document.activeElement;for(const N of f)if(N===b||(N?.scrollIntoView({block:"nearest"}),N===T&&M&&(M.scrollTop=0),N===y&&M&&(M.scrollTop=M.scrollHeight),N?.focus(),document.activeElement!==b))return},[B,M]),D=c.useCallback(()=>E([O,x]),[E,O,x]);c.useEffect(()=>{F&&D()},[F,D]);const{onOpenChange:z,triggerPointerDownPosRef:K}=m;c.useEffect(()=>{if(x){let f={x:0,y:0};const T=y=>{f={x:Math.abs(Math.round(y.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(y.pageY)-(K.current?.y??0))}},R=y=>{f.x<=10&&f.y<=10?y.preventDefault():x.contains(y.target)||z(!1),document.removeEventListener("pointermove",T),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",R,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",R,{capture:!0})}}},[x,z,K]),c.useEffect(()=>{const f=()=>z(!1);return window.addEventListener("blur",f),window.addEventListener("resize",f),()=>{window.removeEventListener("blur",f),window.removeEventListener("resize",f)}},[z]);const[fe,ae]=tt(f=>{const T=B().filter(b=>!b.disabled),R=T.find(b=>b.ref.current===document.activeElement),y=ot(T,f,R);y&&setTimeout(()=>y.ref.current.focus())}),me=c.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&(W(f),y&&(H.current=!0))},[m.value]),he=c.useCallback(()=>x?.focus(),[x]),te=c.useCallback((f,T,R)=>{const y=!H.current&&!R;(m.value!==void 0&&m.value===T||y)&&L(f)},[m.value]),ie=o==="popper"?Se:ze,se=ie===Se?{side:l,sideOffset:a,align:u,alignOffset:h,arrowPadding:g,collisionBoundary:I,collisionPadding:w,sticky:S,hideWhenDetached:p,avoidCollisions:v}:{};return d.jsx(Ve,{scope:t,content:x,viewport:M,onViewportChange:re,itemRefCallback:me,selectedItem:O,onItemLeave:he,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:X,position:o,isPositioned:F,searchRef:fe,children:d.jsx(ft,{as:jt,allowPinchZoom:!0,children:d.jsx(mt,{asChild:!0,trapped:m.open,onMountAutoFocus:f=>{f.preventDefault()},onUnmountAutoFocus:P(r,f=>{m.trigger?.focus({preventScroll:!0}),f.preventDefault()}),children:d.jsx(ht,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:d.jsx(ie,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:f=>f.preventDefault(),...C,...se,onPlaced:()=>V(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:P(C.onKeyDown,f=>{const T=f.ctrlKey||f.altKey||f.metaKey;if(f.key==="Tab"&&f.preventDefault(),!T&&f.key.length===1&&ae(f.key),["ArrowUp","ArrowDown","Home","End"].includes(f.key)){let y=B().filter(b=>!b.disabled).map(b=>b.ref.current);if(["ArrowUp","End"].includes(f.key)&&(y=y.slice().reverse()),["ArrowUp","ArrowDown"].includes(f.key)){const b=f.target,N=y.indexOf(b);y=y.slice(N+1)}setTimeout(()=>E(y)),f.preventDefault()}})})})})})})});He.displayName=Rt;var Mt="SelectItemAlignedPosition",ze=c.forwardRef((n,e)=>{const{__scopeSelect:t,onPlaced:o,...r}=n,i=G(Q,t),s=Y(Q,t),[l,a]=c.useState(null),[u,h]=c.useState(null),g=k(e,_=>h(_)),I=ue(t),w=c.useRef(!1),S=c.useRef(!0),{viewport:p,selectedItem:v,selectedItemText:C,focusSelectedItem:m}=s,x=c.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&p&&v&&C){const _=i.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),W=i.valueNode.getBoundingClientRect(),X=C.getBoundingClientRect();if(i.dir!=="rtl"){const b=X.left-O.left,N=W.left-b,q=_.left-N,Z=_.width+q,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Pe(N,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.left=xe+"px"}else{const b=O.right-X.right,N=window.innerWidth-W.right-b,q=window.innerWidth-_.right-N,Z=_.width+q,ve=Math.max(Z,O.width),ge=window.innerWidth-A,xe=Pe(N,[A,Math.max(A,ge-ve)]);l.style.minWidth=Z+"px",l.style.right=xe+"px"}const L=I(),B=window.innerHeight-A*2,F=p.scrollHeight,V=window.getComputedStyle(u),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),z=parseInt(V.paddingBottom,10),K=H+E+F+z+D,fe=Math.min(v.offsetHeight*5,K),ae=window.getComputedStyle(p),me=parseInt(ae.paddingTop,10),he=parseInt(ae.paddingBottom,10),te=_.top+_.height/2-A,ie=B-te,se=v.offsetHeight/2,f=v.offsetTop+se,T=H+E+f,R=K-T;if(T<=te){const b=L.length>0&&v===L[L.length-1].ref.current;l.style.bottom="0px";const N=u.clientHeight-p.offsetTop-p.offsetHeight,q=Math.max(ie,se+(b?he:0)+N+D),Z=T+q;l.style.height=Z+"px"}else{const b=L.length>0&&v===L[0].ref.current;l.style.top="0px";const q=Math.max(te,H+p.offsetTop+(b?me:0)+se)+R;l.style.height=q+"px",p.scrollTop=T-te+p.offsetTop}l.style.margin=`${A}px 0`,l.style.minHeight=fe+"px",l.style.maxHeight=B+"px",o?.(),requestAnimationFrame(()=>w.current=!0)}},[I,i.trigger,i.valueNode,l,u,p,v,C,i.dir,o]);$(()=>x(),[x]);const[U,M]=c.useState();$(()=>{u&&M(window.getComputedStyle(u).zIndex)},[u]);const re=c.useCallback(_=>{_&&S.current===!0&&(x(),m?.(),S.current=!1)},[x,m]);return d.jsx(Ot,{scope:t,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:re,children:d.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:U},children:d.jsx(j.div,{...r,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}})})})});ze.displayName=Mt;var At="SelectPopperPosition",Se=c.forwardRef((n,e)=>{const{__scopeSelect:t,align:o="start",collisionPadding:r=A,...i}=n,s=pe(t);return d.jsx(xt,{...s,...i,ref:e,align:o,collisionPadding:r,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Se.displayName=At;var[Ot,Te]=ne(Q,{}),we="SelectViewport",Ue=c.forwardRef((n,e)=>{const{__scopeSelect:t,nonce:o,...r}=n,i=Y(we,t),s=Te(we,t),l=k(e,i.onViewportChange),a=c.useRef(0);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),d.jsx(de.Slot,{scope:t,children:d.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...r,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...r.style},onScroll:P(r.onScroll,u=>{const h=u.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:I}=s;if(I?.current&&g){const w=Math.abs(a.current-h.scrollTop);if(w>0){const S=window.innerHeight-A*2,p=parseFloat(g.style.minHeight),v=parseFloat(g.style.height),C=Math.max(p,v);if(C<S){const m=C+w,x=Math.min(S,m),U=m-x;g.style.height=x+"px",g.style.bottom==="0px"&&(h.scrollTop=U>0?U:0,g.style.justifyContent="flex-end")}}}a.current=h.scrollTop})})})]})});Ue.displayName=we;var We="SelectGroup",[Dt,kt]=ne(We),Lt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=Ie();return d.jsx(Dt,{scope:t,id:r,children:d.jsx(j.div,{role:"group","aria-labelledby":r,...o,ref:e})})});Lt.displayName=We;var Fe="SelectLabel",Bt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=kt(Fe,t);return d.jsx(j.div,{id:r.id,...o,ref:e})});Bt.displayName=Fe;var ce="SelectItem",[Vt,Ke]=ne(ce),$e=c.forwardRef((n,e)=>{const{__scopeSelect:t,value:o,disabled:r=!1,textValue:i,...s}=n,l=G(ce,t),a=Y(ce,t),u=l.value===o,[h,g]=c.useState(i??""),[I,w]=c.useState(!1),S=k(e,m=>a.itemRefCallback?.(m,o,r)),p=Ie(),v=c.useRef("touch"),C=()=>{r||(l.onValueChange(o),l.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Vt,{scope:t,value:o,disabled:r,textId:p,isSelected:u,onItemTextChange:c.useCallback(m=>{g(x=>x||(m?.textContent??"").trim())},[]),children:d.jsx(de.ItemSlot,{scope:t,value:o,disabled:r,textValue:h,children:d.jsx(j.div,{role:"option","aria-labelledby":p,"data-highlighted":I?"":void 0,"aria-selected":u&&I,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1,...s,ref:S,onFocus:P(s.onFocus,()=>w(!0)),onBlur:P(s.onBlur,()=>w(!1)),onClick:P(s.onClick,()=>{v.current!=="mouse"&&C()}),onPointerUp:P(s.onPointerUp,()=>{v.current==="mouse"&&C()}),onPointerDown:P(s.onPointerDown,m=>{v.current=m.pointerType}),onPointerMove:P(s.onPointerMove,m=>{v.current=m.pointerType,r?a.onItemLeave?.():v.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:P(s.onPointerLeave,m=>{m.currentTarget===document.activeElement&&a.onItemLeave?.()}),onKeyDown:P(s.onKeyDown,m=>{a.searchRef?.current!==""&&m.key===" "||(bt.includes(m.key)&&C(),m.key===" "&&m.preventDefault())})})})})});$e.displayName=ce;var le="SelectItemText",Ge=c.forwardRef((n,e)=>{const{__scopeSelect:t,className:o,style:r,...i}=n,s=G(le,t),l=Y(le,t),a=Ke(le,t),u=Pt(le,t),[h,g]=c.useState(null),I=k(e,C=>g(C),a.onItemTextChange,C=>l.itemTextRefCallback?.(C,a.value,a.disabled)),w=h?.textContent,S=c.useMemo(()=>d.jsx("option",{value:a.value,disabled:a.disabled,children:w},a.value),[a.disabled,a.value,w]),{onNativeOptionAdd:p,onNativeOptionRemove:v}=u;return $(()=>(p(S),()=>v(S)),[p,v,S]),d.jsxs(d.Fragment,{children:[d.jsx(j.span,{id:a.textId,...i,ref:I}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?_e.createPortal(i.children,s.valueNode):null]})});Ge.displayName=le;var Ye="SelectItemIndicator",Xe=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n;return Ke(Ye,t).isSelected?d.jsx(j.span,{"aria-hidden":!0,...o,ref:e}):null});Xe.displayName=Ye;var Ce="SelectScrollUpButton",qe=c.forwardRef((n,e)=>{const t=Y(Ce,n.__scopeSelect),o=Te(Ce,n.__scopeSelect),[r,i]=c.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollTop>0;i(u)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),r?d.jsx(Je,{...n,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});qe.displayName=Ce;var ye="SelectScrollDownButton",Ze=c.forwardRef((n,e)=>{const t=Y(ye,n.__scopeSelect),o=Te(ye,n.__scopeSelect),[r,i]=c.useState(!1),s=k(e,o.onScrollButtonChange);return $(()=>{if(t.viewport&&t.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,h=Math.ceil(a.scrollTop)<u;i(h)};const a=t.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[t.viewport,t.isPositioned]),r?d.jsx(Je,{...n,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=t;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});Ze.displayName=ye;var Je=c.forwardRef((n,e)=>{const{__scopeSelect:t,onAutoScroll:o,...r}=n,i=Y("SelectScrollButton",t),s=c.useRef(null),l=ue(t),a=c.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>a(),[a]),$(()=>{l().find(h=>h.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[l]),d.jsx(j.div,{"aria-hidden":!0,...r,ref:e,style:{flexShrink:0,...r.style},onPointerDown:P(r.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(o,50))}),onPointerMove:P(r.onPointerMove,()=>{i.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(o,50))}),onPointerLeave:P(r.onPointerLeave,()=>{a()})})}),Ht="SelectSeparator",zt=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n;return d.jsx(j.div,{"aria-hidden":!0,...o,ref:e})});zt.displayName=Ht;var be="SelectArrow",Ut=c.forwardRef((n,e)=>{const{__scopeSelect:t,...o}=n,r=pe(t),i=G(be,t),s=Y(be,t);return i.open&&s.position==="popper"?d.jsx(St,{...r,...o,ref:e}):null});Ut.displayName=be;var Wt="SelectBubbleInput",Qe=c.forwardRef(({__scopeSelect:n,value:e,...t},o)=>{const r=c.useRef(null),i=k(o,r),s=ct(e);return c.useEffect(()=>{const l=r.current;if(!l)return;const a=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==e&&h){const g=new Event("change",{bubbles:!0});h.call(l,e),l.dispatchEvent(g)}},[s,e]),d.jsx(j.select,{...t,style:{...wt,...t.style},ref:i,defaultValue:e})});Qe.displayName=Wt;function et(n){return n===""||n===void 0}function tt(n){const e=dt(n),t=c.useRef(""),o=c.useRef(0),r=c.useCallback(s=>{const l=t.current+s;e(l),(function a(u){t.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>a(""),1e3))})(l)},[e]),i=c.useCallback(()=>{t.current="",window.clearTimeout(o.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(o.current),[]),[t,r,i]}function ot(n,e,t){const r=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,i=t?n.indexOf(t):-1;let s=Ft(n,Math.max(i,0));r.length===1&&(s=s.filter(u=>u!==t));const a=s.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return a!==t?a:void 0}function Ft(n,e){return n.map((t,o)=>n[(e+o)%n.length])}var Kt=je,$t=Ae,Gt=De,Yt=ke,Xt=Le,qt=Be,Zt=Ue,Jt=$e,Qt=Ge,eo=Xe,to=qe,oo=Ze;const nt=({size:n=24,color:e="currentColor",...t})=>c.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},c.createElement("path",{d:"m18 15-6-6-6 6"}));nt.displayName="ChevronUp";function co(n){const e=ee.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Kt,{"data-slot":"select",...t}),e[2]=t,e[3]=o):o=e[3],o}function uo(n){const e=ee.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let o;return e[2]!==t?(o=d.jsx(Gt,{"data-slot":"select-value",...t}),e[2]=t,e[3]=o):o=e[3],o}function po(n){const e=ee.c(13);let t,o,r,i;e[0]!==n?({className:o,size:i,children:t,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i):(t=e[1],o=e[2],r=e[3],i=e[4]);const s=i===void 0?"default":i;let l;e[5]!==o?(l=oe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]: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 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-10 data-[size=sm]:h-7 data-[size=xs]:h-7 data-[size=xs]:px-2.5 data-[size=xs]:py-1.5 data-[size=xs]:rounded-lg *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=d.jsx(Yt,{asChild:!0,children:d.jsx(Re,{className:"size-4 opacity-50"})}),e[7]=a):a=e[7];let u;return e[8]!==t||e[9]!==r||e[10]!==s||e[11]!==l?(u=d.jsxs($t,{"data-slot":"select-trigger","data-size":s,className:l,...r,children:[t,a]}),e[8]=t,e[9]=r,e[10]=s,e[11]=l,e[12]=u):u=e[12],u}function fo(n){const e=ee.c(25);let t,o,r,i,s;e[0]!==n?({className:o,children:t,position:i,hideScrollButtons:s,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i,e[5]=s):(t=e[1],o=e[2],r=e[3],i=e[4],s=e[5]);const l=i===void 0?"popper":i,a=s===void 0?!1:s,u=l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let h;e[6]!==o||e[7]!==u?(h=oe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border shadow-md",u,o),e[6]=o,e[7]=u,e[8]=h):h=e[8];let g;e[9]!==a?(g=!a&&d.jsx(no,{}),e[9]=a,e[10]=g):g=e[10];const I=l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let w;e[11]!==I?(w=oe("p-1",I),e[11]=I,e[12]=w):w=e[12];let S;e[13]!==t||e[14]!==w?(S=d.jsx(Zt,{className:w,children:t}),e[13]=t,e[14]=w,e[15]=S):S=e[15];let p;e[16]!==a?(p=!a&&d.jsx(ro,{}),e[16]=a,e[17]=p):p=e[17];let v;return e[18]!==l||e[19]!==r||e[20]!==h||e[21]!==g||e[22]!==S||e[23]!==p?(v=d.jsx(Xt,{children:d.jsxs(qt,{"data-slot":"select-content",className:h,position:l,...r,children:[g,S,p]})}),e[18]=l,e[19]=r,e[20]=h,e[21]=g,e[22]=S,e[23]=p,e[24]=v):v=e[24],v}function mo(n){const e=ee.c(16);let t,o,r,i;e[0]!==n?({className:o,children:t,hideCheck:i,...r}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=i):(t=e[1],o=e[2],r=e[3],i=e[4]);const s=i===void 0?!1:i;let l;e[5]!==o?(l=oe("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",o),e[5]=o,e[6]=l):l=e[6];let a;e[7]!==s?(a=!s&&d.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:d.jsx(eo,{children:d.jsx(Ct,{className:"size-4"})})}),e[7]=s,e[8]=a):a=e[8];let u;e[9]!==t?(u=d.jsx(Qt,{children:t}),e[9]=t,e[10]=u):u=e[10];let h;return e[11]!==r||e[12]!==l||e[13]!==a||e[14]!==u?(h=d.jsxs(Jt,{"data-slot":"select-item",className:l,...r,children:[a,u]}),e[11]=r,e[12]=l,e[13]=a,e[14]=u,e[15]=h):h=e[15],h}function no(n){const e=ee.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=r):r=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(nt,{className:"size-4"}),e[5]=i):i=e[5];let s;return e[6]!==o||e[7]!==r?(s=d.jsx(to,{"data-slot":"select-scroll-up-button",className:r,...o,children:i}),e[6]=o,e[7]=r,e[8]=s):s=e[8],s}function ro(n){const e=ee.c(9);let t,o;e[0]!==n?({className:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let r;e[3]!==t?(r=oe("flex cursor-default items-center justify-center py-1",t),e[3]=t,e[4]=r):r=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(Re,{className:"size-4"}),e[5]=i):i=e[5];let s;return e[6]!==o||e[7]!==r?(s=d.jsx(oo,{"data-slot":"select-scroll-down-button",className:r,...o,children:i}),e[6]=o,e[7]=r,e[8]=s):s=e[8],s}export{co as S,po as a,uo as b,fo as c,mo as d,Pe as e,nt as n};
@@ -0,0 +1,3 @@
1
+ import{r as E,c as _,j as s,E as Ue,u as ve,v as I,b as Be,aE as Fe,L as Oe,c5 as gt,bc as bt,O as F,aD as jt,ab as vt,ad as Nt,ae as yt,ac as St,af as kt,ah as Ct,ag as _t,y as wt,G as $t,e as qe,d as pe,t as ue,c6 as zt,bB as It,n as Pt,B as Te,A as At,S as Ye,f as Et,h as Ot,N as Tt,m as Mt,K as Dt,aG as Qe,P as Rt}from"./index-Cb17fVaO.js";import{C as J}from"./index-CvxrBAxY.js";import{I as Lt}from"./integration-icon-BtE6qqXO.js";import{u as Ze,P as de}from"./index-DLDRkAi_.js";import{d as Ht,u as Ut}from"./constants-B_iiTUip.js";import{n as Me}from"./CheckDone01-BbDxR0le.js";import{n as Bt}from"./ChevronLeft-bfDO3afT.js";import{i as Ft}from"./Loading01-By16fsIj.js";import{s as Se}from"./Plus-jLReB_Bt.js";import{t as Ge}from"./Users03-CUtoEpN2.js";import{i as De}from"./X-DZCW78jV.js";import{E as Gt,C as Wt}from"./editable-task-title-Po1P2Wd0.js";import{T as Kt}from"./tasks-panel-DXBfZcDd.js";import{a as Vt,e as qt,C as Yt,d as Qt,f as Zt}from"./collapsible-C32NLu9h.js";import{C as Xe}from"./create-project-dialog-wLCAgffa.js";import{u as Ae}from"./tabs-BCXNMT0l.js";import{t as Je,u as et,i as Xt}from"./use-settings-modal-5estZr-G.js";import{n as Jt}from"./Container-w8ZJjmnR.js";import{e as es}from"./Dataflow03-C3PCJs5S.js";import{a as ts}from"./Home02-CSmINeMq.js";import{i as Re}from"./LayoutLeft-D-Sd6nh5.js";import{t as Ce}from"./Settings01-B3dw12xC.js";import{u as tt,a as st}from"./use-project-Dr0Nftxm.js";import{u as ss}from"./use-mobile-By224gq0.js";import{c as ns,b as is,a as ls,T as as}from"./tooltip-Bb66VFhj.js";import{S as ee}from"./skeleton-BavbnGik.js";import{n as ge}from"./LinkExternal01-DUHpfLmD.js";import{t as nt}from"./ChevronDown-BjWhsewG.js";import{A as be}from"./avatar-Bp7Qjpgt.js";import{c as q,g as ke,d as os,e as rs,f as cs,b as it,D as lt,a as at}from"./dropdown-menu-CF9W86LV.js";import{i as je}from"./Check-e1LxjlnS.js";import{C as ds}from"./create-organization-dialog-Dp3eW5BV.js";import{a as ms}from"./Copy01-BCJxa3pS.js";import{i as fs}from"./File06-DI2DTxDK.js";import{i as us}from"./Globe01-0k9H0lE8.js";import{i as ps}from"./Shield01-B801SPcx.js";import{P as xs,b as hs,a as gs}from"./popover-CH5Uw6Js.js";import{n as Ve}from"./Inbox01-BVd6Ufjh.js";import{s as bs}from"./XClose-CuKHHhHx.js";import{b as js}from"./use-connection-Bv6BgTqI.js";import{b as vs}from"./use-mcp-tools-q5O9mXfB.js";import{c as Ns,A as ys}from"./use-binding-Bi9qdfAY.js";import{i as Ss}from"./ChevronRight-DZwFOSrA.js";import{u as We,L as Ke}from"./localstorage-keys-CxWEzkpK.js";import{a as ks,R as ot,b as Cs}from"./resizable-taukBI4-.js";import"./spinner-BsdcXRt-.js";import"./decopilot-events-Dczeyumg.js";import"./useQuery-BcAK4m0m.js";import"./dialog-BuY4tTjY.js";import"./form-Ci0uQFmj.js";import"./label-BLzrK_Rs.js";import"./input-Cch0IC2D.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-DNV5Voek.js";import"./Edit01-CPphoQZI.js";import"./XCircle-BRYqxNwU.js";import"./AlertCircle-Bz0Gu2J2.js";import"./select-iAQ1JGAr.js";import"./index-B5u30SQw.js";import"./ArrowLeft-bHzBiXiT.js";import"./use-copy-QwK_lQBK.js";import"./badge-CU_zbIXX.js";import"./Code01-Den27Mse.js";import"./use-virtual-mcp-T76ZkZ-8.js";import"./use-collections-BF-71bZg.js";import"./useMutation-DRjp2Nl5.js";import"./SearchMd-DF5i6zVs.js";import"./use-create-virtual-mcp-wYKTF_rl.js";import"./use-mcp-resources-MU6kxIry.js";import"./marked.esm-BaswSlok.js";import"./markdown-B9U6C-Vk.js";import"./mcp-app-renderer-vWTHzC-y.js";import"./types-CGMnrrVy.js";import"./Eye-B65VnOsY.js";import"./Globe02-C7u-Ldxq.js";import"./LayersTwo01-CuCFLmbR.js";import"./collection-search-D8Kd7sE4.js";import"./generate-id-Dyweu44Y.js";import"./Clock-BDkBqrq2.js";import"./Trash01-BZm-kVJv.js";import"./CheckCircle-aG4ywA2O.js";import"./user-CkBLhwlg.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-llm-lZx_FT_g.js";import"./checkbox-Dkby6oH1.js";import"./AlignLeft-cTDyunvB.js";import"./Image01-HHGXqEyS.js";import"./RefreshCcw01-CJTVrN2f.js";import"./useSuspenseInfiniteQuery-B9EajsfN.js";import"./infiniteQueryObserver-CiekiSCa.js";import"./textarea-D4QsZZY2.js";import"./alert-dialog-BY3oMun9.js";import"./binder-D8RBAvqy.js";const rt=({size:t=24,color:e="currentColor",...n})=>E.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},E.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"}));rt.displayName="BarChart10";const ct=({size:t=24,color:e="currentColor",...n})=>E.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},E.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"}));ct.displayName="FaceSmile";const dt=({size:t=24,color:e="currentColor",...n})=>E.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},E.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"}));dt.displayName="LogOut01";function _s(){const t=_.c(72),{org:e}=ve(),[,n]=Ze(),{selectedVirtualMcp:i,modelsConnections:l,isChatEmpty:a,activeTaskId:o,createTask:r,switchToTask:c,tasks:d}=Vt();let f;if(t[0]!==o||t[1]!==d){let K;t[3]!==o?(K=ne=>ne.id===o,t[3]=o,t[4]=K):K=t[4],f=d.find(K),t[0]=o,t[1]=d,t[2]=f}else f=t[2];const u=f,[m,x]=E.useState("chat"),[h,b]=E.useTransition();let g;t[5]!==e.id?(g=Ht(e.id),t[5]=e.id,t[6]=g):g=t[6];const v=i??g;let p;t[7]!==r?(p=()=>{b(()=>{r()})},t[7]=r,t[8]=p):p=t[8];const S=p;if(l.length===0){let K;t[9]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(de.Header.Left,{className:"gap-2"}),t[9]=K):K=t[9];let ne;t[10]!==n?(ne=()=>n(!1),t[10]=n,t[11]=ne):ne=t[11];let he;t[12]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(De,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=he):he=t[12];let ae;t[13]!==ne?(ae=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[K,s.jsx(de.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ne,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:he})})]}),t[13]=ne,t[14]=ae):ae=t[14];let oe;t[15]!==e?(oe=s.jsx(J.Main,{className:"flex flex-col items-center",children:s.jsx(J.EmptyState,{children:s.jsx(J.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=oe):oe=t[16];let Ne;return t[17]!==ae||t[18]!==oe?(Ne=s.jsxs(J,{className:"animate-in fade-in-0 duration-200",children:[ae,oe]}),t[17]=ae,t[18]=oe,t[19]=Ne):Ne=t[19],Ne}const N=m!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let j;t[20]!==N?(j=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",N),t[20]=N,t[21]=j):j=t[21];let y;t[22]!==u||t[23]!==a?(y=!a&&u?.title&&s.jsx(Gt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[22]=u,t[23]=a,t[24]=y):y=t[24];let w;t[25]!==y?(w=s.jsx(de.Header.Left,{className:"gap-2",children:y}),t[25]=y,t[26]=w):w=t[26];let $;t[27]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Se,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=$):$=t[27];let k;t[28]!==S||t[29]!==h?(k=s.jsx("button",{type:"button",onClick:S,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:$}),t[28]=S,t[29]=h,t[30]=k):k=t[30];let A;t[31]===Symbol.for("react.memo_cache_sentinel")?(A=()=>x("tasks"),t[31]=A):A=t[31];let T;t[32]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("button",{type:"button",onClick:A,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Me,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=T):T=t[32];let L;t[33]!==n?(L=()=>n(!1),t[33]=n,t[34]=L):L=t[34];let U;t[35]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(De,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=U):U=t[35];let H;t[36]!==L?(H=s.jsx("button",{type:"button",onClick:L,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:U}),t[36]=L,t[37]=H):H=t[37];let M;t[38]!==H||t[39]!==k?(M=s.jsxs(de.Header.Right,{className:"gap-1",children:[k,T,H]}),t[38]=H,t[39]=k,t[40]=M):M=t[40];let D;t[41]!==M||t[42]!==w?(D=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[w,M]}),t[41]=M,t[42]=w,t[43]=D):D=t[43];let O;t[44]!==v||t[45]!==a?(O=s.jsx(J.Main,{children:a?s.jsx(J.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(Lt,{icon:v.icon,name:v.title,size:"lg",fallbackIcon:s.jsx(Ge,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:v.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:v.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(J.IceBreakers,{})]})}):s.jsx(J.Messages,{})}),t[44]=v,t[45]=a,t[46]=O):O=t[46];let B;t[47]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(J.Footer,{children:s.jsx(J.Input,{onOpenContextPanel:()=>x("context")})}),t[47]=B):B=t[47];let R;t[48]!==D||t[49]!==O||t[50]!==j?(R=s.jsxs("div",{className:j,children:[D,O,B]}),t[48]=D,t[49]=O,t[50]=j,t[51]=R):R=t[51];const V=m==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let ce;t[52]!==V?(ce=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",V),t[52]=V,t[53]=ce):ce=t[53];let te;t[54]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(de.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[54]=te):te=t[54];let se;t[55]===Symbol.for("react.memo_cache_sentinel")?(se=()=>x("chat"),t[55]=se):se=t[55];let Y;t[56]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[te,s.jsx(de.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:se,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Bt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[56]=Y):Y=t[56];let Q;t[57]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Ft,{size:16,className:"animate-spin text-muted-foreground"})}),t[57]=Q):Q=t[57];let G;t[58]!==c?(G=s.jsx(Ue,{fallback:ws,children:s.jsx(E.Suspense,{fallback:Q,children:s.jsx(Kt,{onTaskSelect:async K=>{await c(K),x("chat")}})})}),t[58]=c,t[59]=G):G=t[59];let W;t[60]!==ce||t[61]!==G?(W=s.jsxs("div",{className:ce,children:[Y,G]}),t[60]=ce,t[61]=G,t[62]=W):W=t[62];const P=m==="context"?"opacity-100":"opacity-0 pointer-events-none";let Z;t[63]!==P?(Z=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",P),t[63]=P,t[64]=Z):Z=t[64];let xe;t[65]===Symbol.for("react.memo_cache_sentinel")?(xe=s.jsx(Wt,{back:!0,onClose:()=>x("chat")}),t[65]=xe):xe=t[65];let ie;t[66]!==Z?(ie=s.jsx("div",{className:Z,children:xe}),t[66]=Z,t[67]=ie):ie=t[67];let le;return t[68]!==R||t[69]!==W||t[70]!==ie?(le=s.jsxs(J,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[R,W,ie]}),t[68]=R,t[69]=W,t[70]=ie,t[71]=le):le=t[71],le}function ws(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function $s(){const t=_.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(J.Skeleton,{}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ue,{fallback:e,children:s.jsx(E.Suspense,{fallback:s.jsx(J.Skeleton,{}),children:s.jsx(_s,{})})}),t[1]=n):n=t[1],n}function zs(){const t=_.c(58),[e]=Ae(),{locator:n,org:i}=ve(),l=Be(),a=Fe(),{org:o,project:r}=Oe.parse(n),c=Oe.isOrgAdminProject(n),{data:d}=tt(i.id,r);let f;t[0]!==d?.enabledPlugins?(f=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=f):f=t[1];const u=f,m=d?.ui?.pinnedViews??[];let x;t[2]!==u?(x=z=>u.includes(z.pluginId),t[2]=u,t[3]=x):x=t[3];const h=gt.filter(x),b=a.location.pathname,g=`/${o}/${r}`,C=b===g||b===`${g}/`;let v;t[4]!==g||t[5]!==b?(v=z=>b.startsWith(`${g}/${z}`),t[4]=g,t[5]=b,t[6]=v):v=t[6];const p=v;let S;t[7]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(ts,{}),t[7]=S):S=t[7];const N={key:"home",label:"Home",icon:S,isActive:C,onClick:()=>{C?window.dispatchEvent(new CustomEvent("reset-home-view")):l({to:"/$org/$project",params:{org:o,project:r}})}};let j;t[8]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Me,{}),t[8]=j):j=t[8];const y={key:"tasks",label:"Tasks",icon:j,isActive:p("tasks"),onClick:()=>l({to:"/$org/$project/tasks",params:{org:o,project:F}})};let w;t[9]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Jt,{}),t[9]=w):w=t[9];const $={key:"mcps",label:"Connections",icon:w,isActive:p("mcps"),onClick:()=>l({to:"/$org/$project/mcps",params:{org:o,project:F}})};let k;t[10]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(jt,{}),t[10]=k):k=t[10];const A={key:"projects",label:"Projects",icon:k,isActive:p("projects"),onClick:()=>l({to:"/$org/$project/projects",params:{org:o,project:F}})};let T;t[11]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(Je,{}),t[11]=T):T=t[11];const L={key:"store",label:"Store",icon:T,isActive:p("store"),onClick:()=>l({to:"/$org/$project/store",params:{org:o,project:F}})};let U;t[12]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(Ge,{}),t[12]=U):U=t[12];const H={key:"agents",label:"Agents",icon:U,isActive:p("agents"),onClick:()=>l({to:"/$org/$project/agents",params:{org:o,project:F}})};let M;t[13]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(rt,{}),t[13]=M):M=t[13];const D={key:"monitoring",label:"Monitor",icon:M,isActive:p("monitoring"),onClick:()=>l({to:"/$org/$project/monitoring",params:{org:o,project:F}})};let O;t[14]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(ct,{}),t[14]=O):O=t[14];const B={key:"members",label:"Members",icon:O,isActive:p("members"),onClick:()=>l({to:"/$org/$project/members",params:{org:o,project:F}})},R=h.map(z=>({key:z.pluginId,label:z.label,icon:z.icon,isActive:p(z.pluginId),onClick:()=>l({to:"/$org/$project/$pluginId",params:{org:o,project:r,pluginId:z.pluginId}})}));let V;t[15]!==u?(V=z=>u.includes(z.pluginId),t[15]=u,t[16]=V):V=t[16];const te=bt.filter(V).map(z=>({type:"group",group:{id:`${z.pluginId}-${z.id}`,label:z.label,items:z.items.map((X,fe)=>({key:`${z.pluginId}-${z.id}-${fe}`,label:X.label,icon:X.icon,isActive:p(z.pluginId),onClick:()=>l({to:"/$org/$project/$pluginId",params:{org:o,project:r,pluginId:z.pluginId}})})),defaultExpanded:z.defaultExpanded??!0}})),se=m.map(z=>({key:`app-${z.connectionId}-${z.toolName}`,label:z.label||z.toolName,icon:z.icon?s.jsx("img",{src:z.icon,alt:"",className:"size-4 rounded"}):s.jsx(Re,{}),isActive:p(`apps/${z.connectionId}/${encodeURIComponent(z.toolName)}`),onClick:()=>l({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:o,project:r,connectionId:z.connectionId,toolName:z.toolName}})}));let Y;t[17]!==se?(Y=se.length>0?{type:"group",group:{id:"apps",label:"Apps",items:se,defaultExpanded:!0}}:null,t[17]=se,t[18]=Y):Y=t[18];const Q=Y;if(c){let z;t[19]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ce,{}),t[19]=z):z=t[19];let X;t[20]!==p?(X=p("settings"),t[20]=p,t[21]=X):X=t[21];let fe;t[22]!==l||t[23]!==o?(fe=()=>l({to:"/$org/$project/settings",params:{org:o,project:F}}),t[22]=l,t[23]=o,t[24]=fe):fe=t[24];let ze;t[25]!==X||t[26]!==fe?(ze={key:"settings",label:"Settings",icon:z,isActive:X,onClick:fe},t[25]=X,t[26]=fe,t[27]=ze):ze=t[27];const ht=ze,Ie=[{type:"items",items:[N,y,...e.experimental_projects?[A]:[]]},{type:"group",group:{id:"build",label:"Build",items:[H,$,L],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[D,B,ht],defaultExpanded:!0}}];if(R.length>0){let Pe;t[28]!==R?(Pe={type:"items",items:R},t[28]=R,t[29]=Pe):Pe=t[29],Ie.push(Pe)}return te.length>0&&Ie.push(...te),Q&&Ie.push(Q),Ie}let G;t[30]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Me,{}),t[30]=G):G=t[30];let W;t[31]!==p?(W=p("tasks"),t[31]=p,t[32]=W):W=t[32];let P;t[33]!==l||t[34]!==o||t[35]!==r?(P=()=>l({to:"/$org/$project/tasks",params:{org:o,project:r}}),t[33]=l,t[34]=o,t[35]=r,t[36]=P):P=t[36];let Z;t[37]!==W||t[38]!==P?(Z={key:"tasks",label:"Tasks",icon:G,isActive:W,onClick:P},t[37]=W,t[38]=P,t[39]=Z):Z=t[39];const xe=Z;let ie;t[40]===Symbol.for("react.memo_cache_sentinel")?(ie=s.jsx(es,{}),t[40]=ie):ie=t[40];let le;t[41]!==p?(le=p("workflows"),t[41]=p,t[42]=le):le=t[42];let K;t[43]!==l||t[44]!==o||t[45]!==r?(K=()=>l({to:"/$org/$project/workflows",params:{org:o,project:r}}),t[43]=l,t[44]=o,t[45]=r,t[46]=K):K=t[46];let ne;t[47]!==le||t[48]!==K?(ne={key:"workflows",label:"Workflows",icon:ie,isActive:le,onClick:K},t[47]=le,t[48]=K,t[49]=ne):ne=t[49];const he=ne;let ae;t[50]===Symbol.for("react.memo_cache_sentinel")?(ae=s.jsx(Ce,{}),t[50]=ae):ae=t[50];let oe;t[51]!==l||t[52]!==o||t[53]!==r?(oe={key:"configure",label:"Configure",icon:ae,isActive:!1,isExternal:!0,onClick:()=>l({to:"/$org/$project/projects/$slug/settings/general",params:{org:o,project:F,slug:r}})},t[51]=l,t[52]=o,t[53]=r,t[54]=oe):oe=t[54];const ye=[{type:"items",items:[N,xe,he,oe]}];if(R.length>0){let z;t[55]===Symbol.for("react.memo_cache_sentinel")?(z={type:"divider"},t[55]=z):z=t[55],ye.push(z);let X;t[56]!==R?(X={type:"items",items:R},t[56]=R,t[57]=X):X=t[57],ye.push(X)}return te.length>0&&ye.push(...te),Q&&ye.push(Q),ye}function Is(t){const e=_.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let i;return e[2]!==n?(i=s.jsx(vt,{"data-slot":"sheet",...n}),e[2]=n,e[3]=i):i=e[3],i}function Ps(t){const e=_.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let i;return e[2]!==n?(i=s.jsx(kt,{"data-slot":"sheet-portal",...n}),e[2]=n,e[3]=i):i=e[3],i}function As(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx(_t,{"data-slot":"sheet-overlay",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Es(t){const e=_.c(17);let n,i,l,a;e[0]!==t?({className:i,children:n,side:a,...l}=t,e[0]=t,e[1]=n,e[2]=i,e[3]=l,e[4]=a):(n=e[1],i=e[2],l=e[3],a=e[4]);const o=a===void 0?"right":a;let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(As,{}),e[5]=r):r=e[5];const c=o==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",d=o==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=o==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",u=o==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==i||e[7]!==c||e[8]!==d||e[9]!==f||e[10]!==u?(m=I("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",c,d,f,u,i),e[6]=i,e[7]=c,e[8]=d,e[9]=f,e[10]=u,e[11]=m):m=e[11];let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsxs(Ct,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[s.jsx(De,{className:"size-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=x):x=e[12];let h;return e[13]!==n||e[14]!==l||e[15]!==m?(h=s.jsxs(Ps,{children:[r,s.jsxs(St,{"data-slot":"sheet-content",className:m,...l,children:[n,x]})]}),e[13]=n,e[14]=l,e[15]=m,e[16]=h):h=e[16],h}function Os(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("flex flex-col gap-1.5 p-4",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sheet-header",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Ts(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("text-foreground font-semibold",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx(Nt,{"data-slot":"sheet-title",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Ms(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("text-muted-foreground text-sm",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx(yt,{"data-slot":"sheet-description",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}const Ds="sidebar_state",Rs=3600*24*7,Ls="16rem",Hs="18rem",Us="3rem",Bs="b",mt=E.createContext(null);function Ee(){const t=E.useContext(mt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Fs(t){const e=_.c(21),{defaultOpen:n,open:i,onOpenChange:l,children:a}=t,o=n===void 0?!0:n,r=ss(),[c,d]=E.useState(!1),[f,u]=E.useState(o),m=i??f;let x;e[0]!==m||e[1]!==l?(x=w=>{const $=typeof w=="function"?w(m):w;l?l($):u($),document.cookie=`${Ds}=${$}; path=/; max-age=${Rs}`},e[0]=m,e[1]=l,e[2]=x):x=e[2];const h=x;let b;e[3]!==r||e[4]!==h?(b=()=>r?d(Ws):h(Gs),e[3]=r,e[4]=h,e[5]=b):b=e[5];const g=b;let C,v;e[6]!==g?(C=()=>{const w=$=>{if($.key===Bs&&($.metaKey||$.ctrlKey)){const k=$.target;if(k.tagName==="INPUT"||k.tagName==="TEXTAREA"||k.isContentEditable)return;$.preventDefault(),g()}};return globalThis.addEventListener("keydown",w),()=>globalThis.removeEventListener("keydown",w)},v=[g],e[6]=g,e[7]=C,e[8]=v):(C=e[7],v=e[8]),E.useEffect(C,v);const p=m?"expanded":"collapsed";let S;e[9]!==r||e[10]!==m||e[11]!==c||e[12]!==h||e[13]!==p||e[14]!==g?(S={state:p,open:m,setOpen:h,isMobile:r,openMobile:c,setOpenMobile:d,toggleSidebar:g},e[9]=r,e[10]=m,e[11]=c,e[12]=h,e[13]=p,e[14]=g,e[15]=S):S=e[15];const N=S;let j;e[16]!==a?(j=s.jsx(ns,{delayDuration:0,children:a}),e[16]=a,e[17]=j):j=e[17];let y;return e[18]!==N||e[19]!==j?(y=s.jsx(mt.Provider,{value:N,children:j}),e[18]=N,e[19]=j,e[20]=y):y=e[20],y}function Gs(t){return!t}function Ws(t){return!t}function Ks(t){const e=_.c(14);let n,i,l,a;e[0]!==t?({className:i,style:a,children:n,...l}=t,e[0]=t,e[1]=n,e[2]=i,e[3]=l,e[4]=a):(n=e[1],i=e[2],l=e[3],a=e[4]);let o;e[5]!==a?(o={"--sidebar-width":Ls,"--sidebar-width-icon":Us,...a},e[5]=a,e[6]=o):o=e[6];const r=o;let c;e[7]!==i?(c=I("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",i),e[7]=i,e[8]=c):c=e[8];let d;return e[9]!==n||e[10]!==l||e[11]!==r||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:c,...l,children:n}),e[9]=n,e[10]=l,e[11]=r,e[12]=c,e[13]=d):d=e[13],d}function Vs(t){const e=_.c(42);let n,i,l,a,o,r;e[0]!==t?({side:a,variant:o,collapsible:r,className:i,children:n,...l}=t,e[0]=t,e[1]=n,e[2]=i,e[3]=l,e[4]=a,e[5]=o,e[6]=r):(n=e[1],i=e[2],l=e[3],a=e[4],o=e[5],r=e[6]);const c=a===void 0?"left":a,d=o===void 0?"sidebar":o,f=r===void 0?"offcanvas":r,{isMobile:u,state:m,openMobile:x,setOpenMobile:h}=Ee();if(f==="none"){let j;e[7]!==i?(j=I("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),e[7]=i,e[8]=j):j=e[8];let y;return e[9]!==n||e[10]!==l||e[11]!==j?(y=s.jsx("div",{"data-slot":"sidebar",className:j,...l,children:n}),e[9]=n,e[10]=l,e[11]=j,e[12]=y):y=e[12],y}if(u){let j;e[13]===Symbol.for("react.memo_cache_sentinel")?(j={"--sidebar-width":Hs},e[13]=j):j=e[13];let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsxs(Os,{className:"sr-only",children:[s.jsx(Ts,{children:"Sidebar"}),s.jsx(Ms,{children:"Displays the mobile sidebar."})]}),e[14]=y):y=e[14];let w;e[15]!==n?(w=s.jsx("div",{className:"flex h-full w-full flex-col",children:n}),e[15]=n,e[16]=w):w=e[16];let $;e[17]!==c||e[18]!==w?($=s.jsxs(Es,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:j,side:c,children:[y,w]}),e[17]=c,e[18]=w,e[19]=$):$=e[19];let k;return e[20]!==x||e[21]!==l||e[22]!==h||e[23]!==$?(k=s.jsx(Is,{open:x,onOpenChange:h,...l,children:$}),e[20]=x,e[21]=l,e[22]=h,e[23]=$,e[24]=k):k=e[24],k}const b=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let g;e[25]!==b?(g=I("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",b),e[25]=b,e[26]=g):g=e[26];const C=m==="collapsed"?f:"";let v;e[27]!==i?(v=I("flex flex-col h-full w-(--sidebar-width)",i),e[27]=i,e[28]=v):v=e[28];let p;e[29]!==n?(p=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:n}),e[29]=n,e[30]=p):p=e[30];let S;e[31]!==l||e[32]!==v||e[33]!==p?(S=s.jsx("div",{"data-slot":"sidebar-container",className:v,...l,children:p}),e[31]=l,e[32]=v,e[33]=p,e[34]=S):S=e[34];let N;return e[35]!==c||e[36]!==m||e[37]!==g||e[38]!==C||e[39]!==S||e[40]!==d?(N=s.jsx("div",{className:g,"data-state":m,"data-collapsible":C,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:S}),e[35]=c,e[36]=m,e[37]=g,e[38]=C,e[39]=S,e[40]=d,e[41]=N):N=e[41],N}function qs(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function ft(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("flex flex-col gap-2 p-2",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Ys(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("flex flex-col gap-2 p-2",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Qs(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("h-4 m-0! w-full",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-sidebar":"separator",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Zs(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function _e(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function we(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("w-full text-sm",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function me(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("flex w-full min-w-0 flex-col gap-1",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function re(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("group/menu-item relative",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}const Xs=$t("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function $e(t){const e=_.c(28);let n,i,l,a,o,r,c;e[0]!==t?({asChild:l,isActive:a,variant:o,size:r,tooltip:c,className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i,e[3]=l,e[4]=a,e[5]=o,e[6]=r,e[7]=c):(n=e[1],i=e[2],l=e[3],a=e[4],o=e[5],r=e[6],c=e[7]);const d=l===void 0?!1:l,f=a===void 0?!1:a,u=o===void 0?"default":o,m=r===void 0?"default":r,x=d?wt:"button",{isMobile:h,state:b}=Ee();let g;e[8]!==n||e[9]!==m||e[10]!==u?(g=I(Xs({variant:u,size:m}),n),e[8]=n,e[9]=m,e[10]=u,e[11]=g):g=e[11];let C;e[12]!==x||e[13]!==f||e[14]!==i||e[15]!==m||e[16]!==g?(C=s.jsx(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":f,className:g,...i}),e[12]=x,e[13]=f,e[14]=i,e[15]=m,e[16]=g,e[17]=C):C=e[17];const v=C;if(!c)return v;if(typeof c=="string"){let y;e[18]!==c?(y={children:c},e[18]=c,e[19]=y):y=e[19],c=y}let p;e[20]!==v?(p=s.jsx(ls,{asChild:!0,children:v}),e[20]=v,e[21]=p):p=e[21];const S=b!=="collapsed"||h;let N;e[22]!==S||e[23]!==c?(N=s.jsx(is,{side:"right",align:"center",hidden:S,...c}),e[22]=S,e[23]=c,e[24]=N):N=e[24];let j;return e[25]!==p||e[26]!==N?(j=s.jsxs(as,{children:[p,N]}),e[25]=p,e[26]=N,e[27]=j):j=e[27],j}function Js(t){const e=_.c(11),{label:n,children:i,defaultExpanded:l}=t,a=l===void 0?!0:l,[o,r]=E.useState(a),{state:c}=Ee(),d=c==="collapsed";let f;e[0]!==o||e[1]!==d||e[2]!==n?(f=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(me,{children:s.jsx(re,{children:s.jsxs($e,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>r(!o),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:n}),s.jsx(nt,{size:12,className:I("text-muted-foreground transition-transform duration-200",!o&&"-rotate-90")})]})})}),e[0]=o,e[1]=d,e[2]=n,e[3]=f):f=e[3];let u;e[4]!==i||e[5]!==o||e[6]!==d?(u=(d||o)&&s.jsx(we,{children:s.jsx(me,{className:"gap-0.5",children:i})}),e[4]=i,e[5]=o,e[6]=d,e[7]=u):u=e[7];let m;return e[8]!==f||e[9]!==u?(m=s.jsxs(_e,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[f,u]}),e[8]=f,e[9]=u,e[10]=m):m=e[10],m}function ut(t){const e=_.c(22),{item:n}=t,i=n.key,l=n.onClick,a=n.isActive,o=n.label,r=n.isExternal&&"group/external";let c;e[0]!==r?(c=I(r),e[0]=r,e[1]=c):c=e[1];let d;e[2]!==n.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:n.icon}),e[2]=n.icon,e[3]=d):d=e[3];const f=n.isExternal&&"group-hover/external:underline underline-offset-2";let u;e[4]!==f?(u=I("truncate group-data-[collapsible=icon]:hidden",f),e[4]=f,e[5]=u):u=e[5];let m;e[6]!==n.label||e[7]!==u?(m=s.jsx("span",{className:u,children:n.label}),e[6]=n.label,e[7]=u,e[8]=m):m=e[8];let x;e[9]!==n.isExternal?(x=n.isExternal&&s.jsx(ge,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[9]=n.isExternal,e[10]=x):x=e[10];let h;e[11]!==n.isActive||e[12]!==n.label||e[13]!==n.onClick||e[14]!==m||e[15]!==x||e[16]!==c||e[17]!==d?(h=s.jsxs($e,{onClick:l,isActive:a,tooltip:o,className:c,children:[d,m,x]}),e[11]=n.isActive,e[12]=n.label,e[13]=n.onClick,e[14]=m,e[15]=x,e[16]=c,e[17]=d,e[18]=h):h=e[18];let b;return e[19]!==n.key||e[20]!==h?(b=s.jsx(re,{children:h},i),e[19]=n.key,e[20]=h,e[21]=b):b=e[21],b}function en(t){const e=_.c(12),{section:n}=t;switch(n.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Qs,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=n.group.label,l=n.group.defaultExpanded;let a;e[2]!==n.group.items?(a=n.group.items.map(sn),e[2]=n.group.items,e[3]=a):a=e[3];let o;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==a?(o=s.jsx(Js,{label:i,defaultExpanded:l,children:a}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=a,e[7]=o):o=e[7],o}case"items":{let i;e[8]!==n.items?(i=n.items.map(tn),e[8]=n.items,e[9]=i):i=e[9];let l;return e[10]!==i?(l=s.jsx(_e,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(we,{children:s.jsx(me,{className:"gap-0.5",children:i})})}),e[10]=i,e[11]=l):l=e[11],l}}}function tn(t){return s.jsx(ut,{item:t},t.key)}function sn(t){return s.jsx(ut,{item:t},t.key)}function pt(t){const e=_.c(14),{sections:n,header:i,footer:l,additionalContent:a,variant:o,collapsible:r,contentClassName:c}=t,d=o===void 0?"sidebar":o,f=r===void 0?"icon":r;let u;e[0]!==c?(u=I("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let m;e[2]!==n?(m=n.map(nn),e[2]=n,e[3]=m):m=e[3];let x;e[4]!==a||e[5]!==u||e[6]!==m?(x=s.jsxs(Zs,{className:u,children:[m,a]}),e[4]=a,e[5]=u,e[6]=m,e[7]=x):x=e[7];let h;return e[8]!==f||e[9]!==l||e[10]!==i||e[11]!==x||e[12]!==d?(h=s.jsxs(Vs,{variant:d,collapsible:f,children:[i,x,l]}),e[8]=f,e[9]=l,e[10]=i,e[11]=x,e[12]=d,e[13]=h):h=e[13],h}function nn(t,e){return s.jsx(en,{section:t},e)}pt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,n)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(ee,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function ln(){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(ee,{className:"h-8 w-full rounded-lg"}),s.jsx(ee,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function an(t){const e=_.c(12),{organizationId:n,currentProjectSlug:i,onSelect:l}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={suspense:!0},e[0]=a):a=e[0];const{data:o}=st(n,a);let r,c;if(e[1]!==i||e[2]!==l||e[3]!==o){c=Symbol.for("react.early_return_sentinel");e:{const f=o?.filter(on)??[];if(f.length===0){let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=m):m=e[6],c=m;break e}let u;e[7]!==i||e[8]!==l?(u=m=>{const x=i===m.slug,h=m.ui?.themeColor??"#3B82F6";return s.jsxs(q,{className:I("gap-2.5",x&&"bg-accent"),onClick:()=>l(m.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:h},children:m.ui?.icon?s.jsx("img",{src:m.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:m.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:m.name}),x&&s.jsx(je,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},m.id)},e[7]=i,e[8]=l,e[9]=u):u=e[9],r=f.map(u)}e[1]=i,e[2]=l,e[3]=o,e[4]=r,e[5]=c}else r=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==r?(d=s.jsx(s.Fragment,{children:r}),e[10]=r,e[11]=d):d=e[11],d}function on(t){return t.slug!==F}function rn(t){let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function Le(t){const e=_.c(44),{isCollapsed:n,onCreateProject:i}=t,l=n===void 0?!1:n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:o,project:r}=qe(a),{data:c}=pe.useListOrganizations(),d=Be(),f=c?.find(P=>P.slug===o),[u,m]=E.useState(!1),[x]=Ae(),h=x.experimental_projects,b=r===F,{data:g}=tt(f?.id??"",b?"":r??"");let C;e[1]!==o?(C=(P,Z)=>P.slug===o?-1:Z.slug===o?1:P.name.localeCompare(Z.name),e[1]=o,e[2]=C):C=e[2];const v=[...c??[]].sort(C);let p;e[3]!==d||e[4]!==o?(p=()=>{o&&d({to:"/$org/$project",params:{org:o,project:F}})},e[3]=d,e[4]=o,e[5]=p):p=e[5];const S=p;let N;e[6]!==d||e[7]!==o?(N=P=>{o&&d({to:"/$org/$project",params:{org:o,project:P}})},e[6]=d,e[7]=o,e[8]=N):N=e[8];const j=N;let y;e[9]!==d?(y=P=>{d({to:"/$org/$project",params:{org:P,project:F}})},e[9]=d,e[10]=y):y=e[10];const w=y;let $;e[11]!==i?($=i?()=>i():void 0,e[11]=i,e[12]=$):$=e[12];const k=$;let A;e[13]!==d||e[14]!==o||e[15]!==r?(A=()=>{if(!o||!r)return;const P=r===F;d({to:"/$org/$project",params:{org:o,project:r},search:Z=>({...Z,settings:P?"org.general":`project:${r}:general`})})},e[13]=d,e[14]=o,e[15]=r,e[16]=A):A=e[16];const T=A,L=lt,U=l?"w-auto pr-1.5":"w-full";let H;e[17]!==U?(H=I("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",U),e[17]=U,e[18]=H):H=e[18];const M=b?s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:f?.logo?void 0:rn(f?.name??""),children:f?.logo?s.jsx("img",{src:f.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(f?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:{backgroundColor:g?.ui?.themeColor??"#60a5fa"},children:g?.ui?.icon?s.jsx("img",{src:g.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold text-white",l?"text-xs":"text-lg"),children:(g?.name??r??"?").charAt(0).toUpperCase()})});let D;e[19]!==f?.name||e[20]!==g?.name||e[21]!==h||e[22]!==l||e[23]!==b||e[24]!==r?(D=!l&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:h?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:f?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:b?"Studio":g?.name??r??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:f?.name??"Select org"})}),s.jsx(qt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=f?.name,e[20]=g?.name,e[21]=h,e[22]=l,e[23]=b,e[24]=r,e[25]=D):D=e[25];let O;e[26]!==H||e[27]!==M||e[28]!==D?(O=s.jsx(at,{asChild:!0,children:s.jsxs("button",{type:"button",className:H,children:[M,D]})}),e[26]=H,e[27]=M,e[28]=D,e[29]=O):O=e[29];const B=it,R="start",V="bottom",ce="w-64 flex flex-col gap-0.5",te=cn,se=h?s.jsxs(s.Fragment,{children:[s.jsxs(q,{className:I("gap-2.5",b&&"bg-accent"),onClick:S,children:[s.jsx(be,{url:f?.logo??"",fallback:f?.name??"",size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",f?.name]}),b&&s.jsx(je,{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"}),f&&s.jsx(E.Suspense,{fallback:s.jsx(ln,{}),children:s.jsx(an,{organizationId:f.id,currentProjectSlug:r,orgSlug:o??"",onSelect:j})}),k&&s.jsxs(q,{className:"gap-2.5",onClick:k,children:[s.jsx(Se,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx(ke,{}),s.jsxs(os,{children:[s.jsxs(rs,{className:"gap-2.5",children:[s.jsx(Je,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(cs,{className:"w-48 flex flex-col gap-0.5",children:[v.map(P=>s.jsxs(q,{className:I("gap-2.5",P.slug===o&&"bg-accent"),onClick:()=>w(P.slug),children:[s.jsx(be,{url:P.logo??"",fallback:P.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:P.name}),P.slug===o&&s.jsx(je,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},P.id)),s.jsx(ke,{}),s.jsxs(q,{className:"gap-2.5",onClick:()=>m(!0),children:[s.jsx(Se,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]})]})]}),s.jsxs(q,{className:"gap-2.5",onClick:T,children:[s.jsx(Ce,{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"}),v.map(P=>s.jsxs(q,{className:I("gap-2.5",P.slug===o&&"bg-accent"),onClick:()=>w(P.slug),children:[s.jsx(be,{url:P.logo??"",fallback:P.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:P.name}),P.slug===o&&s.jsx(je,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},P.id)),s.jsxs(q,{className:"gap-2.5",onClick:()=>m(!0),children:[s.jsx(Se,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]}),s.jsx(ke,{}),s.jsxs(q,{className:"gap-2.5",onClick:T,children:[s.jsx(Ce,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let Y;e[30]!==B||e[31]!==te||e[32]!==se?(Y=s.jsx(B,{align:R,side:V,className:ce,onCloseAutoFocus:te,children:se}),e[30]=B,e[31]=te,e[32]=se,e[33]=Y):Y=e[33];let Q;e[34]!==L||e[35]!==O||e[36]!==Y?(Q=s.jsxs(L,{children:[O,Y]}),e[34]=L,e[35]=O,e[36]=Y,e[37]=Q):Q=e[37];let G;e[38]!==u||e[39]!==m?(G=s.jsx(ds,{open:u,onOpenChange:m}),e[38]=u,e[39]=m,e[40]=G):G=e[40];let W;return e[41]!==Q||e[42]!==G?(W=s.jsxs(s.Fragment,{children:[Q,G]}),e[41]=Q,e[42]=G,e[43]=W):W=e[43],W}function cn(t){return t.preventDefault()}Le.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(ee,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(ee,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function He(t){const e=_.c(4),{onCreateProject:n}=t,{state:i,toggleSidebar:l}=Ee(),a=i==="collapsed";let o;return e[0]!==a||e[1]!==n||e[2]!==l?(o=s.jsx(ft,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(me,{children:s.jsx(re,{children:a?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(Le,{isCollapsed:!0,onCreateProject:n}),s.jsx($e,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Re,{})})]}):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(Le,{isCollapsed:!1,onCreateProject:n})}),s.jsx($e,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Re,{})})]})})})}),e[0]=a,e[1]=n,e[2]=l,e[3]=o):o=e[3],o}He.Skeleton=function(){return s.jsx(ft,{className:"px-3",children:s.jsx(me,{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(ee,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(ee,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(ee,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function dn(t){const e=_.c(50),{user:n,userImage:i}=t,{open:l}=et(),[a,o]=E.useState(!1);let r;e[0]!==n.email||e[1]!==n.id||e[2]!==n.name?(r=()=>{const V=`ID: ${n.id}
2
+ Name: ${n.name||"N/A"}
3
+ Email: ${n.email}`;navigator.clipboard.writeText(V),o(!0),ue.success("User info copied to clipboard"),setTimeout(()=>o(!1),2e3)},e[0]=n.email,e[1]=n.id,e[2]=n.name,e[3]=r):r=e[3];const c=r,d=n.name||n.email||"U";let f;e[4]!==d||e[5]!==i?(f=s.jsx(be,{url:i,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=i,e[6]=f):f=e[6];const u=n.name||"User";let m;e[7]!==u?(m=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=m):m=e[8];let x;e[9]!==f||e[10]!==m?(x=s.jsx(at,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[f,m]})}),e[9]=f,e[10]=m,e[11]=x):x=e[11];const h=n.name||n.email||"U";let b;e[12]!==h||e[13]!==i?(b=s.jsx(be,{url:i,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=i,e[14]=b):b=e[14];const g=n.name||"User";let C;e[15]!==g?(C=s.jsx("div",{className:"text-sm font-medium truncate",children:g}),e[15]=g,e[16]=C):C=e[16];let v;e[17]!==n.email?(v=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n.email}),e[17]=n.email,e[18]=v):v=e[18];let p;e[19]!==C||e[20]!==v?(p=s.jsxs("div",{className:"flex-1 min-w-0",children:[C,v]}),e[19]=C,e[20]=v,e[21]=p):p=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(je,{size:14,className:"text-green-600"}):s.jsx(ms,{size:14,className:"text-muted-foreground"})}),e[22]=a,e[23]=S):S=e[23];let N;e[24]!==c||e[25]!==p||e[26]!==S||e[27]!==b?(N=s.jsxs(q,{onClick:c,className:"gap-2.5 group",children:[b,p,S]}),e[24]=c,e[25]=p,e[26]=S,e[27]=b,e[28]=N):N=e[28];let j;e[29]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(ke,{}),e[29]=j):j=e[29];let y;e[30]!==l?(y=()=>l("account.preferences"),e[30]=l,e[31]=y):y=e[31];let w,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ce,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=w,e[33]=$):(w=e[32],$=e[33]);let k;e[34]!==y?(k=s.jsxs(q,{className:"gap-2.5",onClick:y,children:[w,$]}),e[34]=y,e[35]=k):k=e[35];let A;e[36]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(q,{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(fs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx(ge,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=A):A=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(q,{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(ps,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx(ge,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=T):T=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(q,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(zt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx(ge,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=L):L=e[38];let U;e[39]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(q,{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(Ge,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx(ge,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=U):U=e[39];let H,M;e[40]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(q,{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(us,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx(ge,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),M=s.jsx(ke,{}),e[40]=H,e[41]=M):(H=e[40],M=e[41]);let D;e[42]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs(q,{className:"gap-2.5",onClick:mn,children:[s.jsx(dt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=D):D=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.137.0"]})}),e[43]=O):O=e[43];let B;e[44]!==N||e[45]!==k?(B=s.jsxs(it,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:fn,children:[N,j,k,A,T,L,U,H,M,D,O]}),e[44]=N,e[45]=k,e[46]=B):B=e[46];let R;return e[47]!==B||e[48]!==x?(R=s.jsxs(lt,{children:[x,B]}),e[47]=B,e[48]=x,e[49]=R):R=e[49],R}function mn(){return pe.signOut()}function fn(t){return t.preventDefault()}function xt(){const t=_.c(7),{data:e}=pe.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(be,{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 n=e.user,i=n.name??void 0;let l;t[1]!==i||t[2]!==n?(l={...n,name:i},t[1]=i,t[2]=n,t[3]=l):l=t[3];const a=l,o=n.image;let r;return t[4]!==o||t[5]!==a?(r=s.jsx(dn,{user:a,userImage:o}),t[4]=o,t[5]=a,t[6]=r):r=t[6],r}function un({invitation:t}){const[e,n]=E.useState(!1),[i,l]=E.useState(!1),a=Pt(),o=async()=>{n(!0);try{const c=await pe.organization.acceptInvitation({invitationId:t.id});if(c.error)ue.error(c.error.message),n(!1);else{const d=await pe.organization.setActive({organizationId:t.organizationId});ue.success("Invitation accepted!");const f=d?.data?.slug;window.location.href=f?`/${f}`:"/"}}catch{ue.error("Failed to accept invitation"),n(!1)}},r=async()=>{l(!0);try{const c=await pe.organization.rejectInvitation({invitationId:t.id});c.error?(ue.error(c.error.message),l(!1)):(ue.success("Invitation declined"),a.invalidateQueries())}catch{ue.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Te,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:o,disabled:e||i,"aria-label":"Accept invitation",children:s.jsx(je,{size:14})}),s.jsx(Te,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:r,disabled:e||i,"aria-label":"Decline invitation",children:s.jsx(bs,{size:14})})]})]})}function pn(){const t=E.useContext(It),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date)}class xn extends E.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,n){}render(){return this.state.hasError?null:this.props.children}}const hn="gateway-chip-period";function gn(){try{const t=localStorage.getItem(hn);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function bn(t,e){if(!e||e<=0)return"text-foreground/70";const n=t/e;return n<=.05?"text-destructive":n<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function jn(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function vn(t){const e=_.c(42),{connectionId:n}=t,{open:i}=et(),{org:l}=ve();let a;e[0]!==n||e[1]!==l.id?(a={connectionId:n,orgId:l.id},e[0]=n,e[1]=l.id,e[2]=a):a=e[2];const o=Ut(a);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r={},e[3]=r):r=e[3];let c;e[4]!==o?(c={client:o,toolName:"GATEWAY_USAGE",toolArguments:r,staleTime:6e4,select:Nn},e[4]=o,e[5]=c):c=e[5];const{data:d}=vs(c),f=d?.billing.mode??"prepaid",u=d?.limit.total??null,m=d?.limit.remaining??0;let x;e[6]!==d?.usage?(x=d?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=d?.usage,e[7]=x):x=e[7];const h=x;let b,g,C,v,p,S,N;if(e[8]!==f||e[9]!==b||e[10]!==m||e[11]!==u||e[12]!==i||e[13]!==h){let w;if(f==="prepaid"){b="Credits";let k;e[21]!==m?(k=m.toFixed(2),e[21]=m,e[22]=k):k=e[22],g=`$${k}`,w=bn(m,u)}else if(u!=null&&u>0){const k=u-m;let A;e[23]!==u||e[24]!==k?(A=Math.round(k/u*100),e[23]=u,e[24]=k,e[25]=A):A=e[25];const T=Math.min(100,A);b="Usage",g=`${T}%`,w=jn(T)}else{const k=gn(),A=k==="daily"?h.daily:k==="weekly"?h.weekly:h.monthly,T=k==="daily"?"/day":k==="weekly"?"/wk":"/mo";b="Usage";let L;e[26]!==A?(L=A.toFixed(2),e[26]=A,e[27]=L):L=e[27],g=`$${L}${T}`,w="text-foreground/70"}v="button",e[28]!==i?(p=()=>i("org.billing"),e[28]=i,e[29]=p):p=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 $;e[30]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Xt,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=$):$=e[30],e[31]!==b?(N=s.jsxs("div",{className:"flex items-center gap-1.5",children:[$,s.jsx("span",{className:"text-xs text-muted-foreground",children:b})]}),e[31]=b,e[32]=N):N=e[32],C=I("text-xs font-medium tabular-nums",w),e[8]=f,e[9]=b,e[10]=m,e[11]=u,e[12]=i,e[13]=h,e[14]=C,e[15]=v,e[16]=p,e[17]=S,e[18]=N,e[19]=b,e[20]=g}else C=e[14],v=e[15],p=e[16],S=e[17],N=e[18],b=e[19],g=e[20];let j;e[33]!==C||e[34]!==g?(j=s.jsx("span",{className:C,children:g}),e[33]=C,e[34]=g,e[35]=j):j=e[35];let y;return e[36]!==j||e[37]!==v||e[38]!==p||e[39]!==S||e[40]!==N?(y=s.jsxs("button",{type:v,onClick:p,className:S,children:[N,j]}),e[36]=j,e[37]=v,e[38]=p,e[39]=S,e[40]=N,e[41]=y):y=e[41],y}function Nn(t){return t.structuredContent}function yn(){const t=_.c(4),e=js();let n;t[0]!==e?(n=e.find(Sn),t[0]=e,t[1]=n):n=t[1];const i=n;if(!i?.id)return null;let l;return t[2]!==i.id?(l=s.jsx(vn,{connectionId:i.id}),t[2]=i.id,t[3]=l):l=t[3],l}function Sn(t){return Ns(t,ys)}function kn(){const t=_.c(13),e=pn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(xn,{children:s.jsx(E.Suspense,{fallback:null,children:s.jsx(yn,{})})}),t[0]=n):n=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(xt,{})}),t[1]=i):i=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(hs,{asChild:!0,children:s.jsx(Te,{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(Ve,{size:16})})}),t[2]=l):l=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 o;t[5]!==a?(o=s.jsxs("div",{className:"relative",children:[l,a]}),t[5]=a,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=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]=r):r=t[7];let c;t[8]!==e?(c=s.jsxs(xs,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[r,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(Ve,{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(Cn)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==o||t[11]!==c?(d=s.jsxs(Ys,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[n,s.jsx(me,{children:s.jsx(re,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[i,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(gs,{children:[o,c]})})]})})})]}),t[10]=o,t[11]=c,t[12]=d):d=t[12],d}function Cn(t){return s.jsx(un,{invitation:t},t.id)}function _n(t){const e=_.c(11),{project:n}=t,i=n.ui?.themeColor??"#60a5fa";if(n.ui?.icon){let c;return e[0]!==n.ui.icon?(c=s.jsx("img",{src:n.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=n.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==i?(l={backgroundColor:i},e[2]=i,e[3]=l):l=e[3];let a;e[4]!==n.name?(a=n.name.charAt(0).toUpperCase(),e[4]=n.name,e[5]=a):a=e[5];let o;e[6]!==a?(o=s.jsx("span",{className:"text-[10px] font-medium text-white",children:a}),e[6]=a,e[7]=o):o=e[7];let r;return e[8]!==l||e[9]!==o?(r=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:o}),e[8]=l,e[9]=o,e[10]=r):r=e[10],r}function wn(t){const e=_.c(14),{project:n}=t,i=Be(),{org:l}=ve();let a;e[0]!==i||e[1]!==l.slug||e[2]!==n.slug?(a=()=>{i({to:"/$org/$project",params:{org:l.slug,project:n.slug}})},e[0]=i,e[1]=l.slug,e[2]=n.slug,e[3]=a):a=e[3];let o;e[4]!==n?(o=s.jsx(_n,{project:n}),e[4]=n,e[5]=o):o=e[5];let r;e[6]!==n.name?(r=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:n.name}),e[6]=n.name,e[7]=r):r=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ss,{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]!==n.name||e[10]!==a||e[11]!==o||e[12]!==r?(d=s.jsx(re,{children:s.jsxs($e,{onClick:a,tooltip:n.name,children:[o,r,c]})}),e[9]=n.name,e[10]=a,e[11]=o,e[12]=r,e[13]=d):d=e[13],d}function $n(){const t=_.c(55),{org:e}=ve(),{data:n,isLoading:i}=st(e.id),[l,a]=E.useState(!0),[o,r]=E.useState(!1);let c,d,f,u,m,x,h,b,g,C,v,p,S;if(t[0]!==i||t[1]!==l||t[2]!==n){S=Symbol.for("react.early_return_sentinel");e:{const L=n?.filter(In)??[];if(i){let R;t[16]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(re,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ee,{className:"h-4 w-4 rounded"}),s.jsx(ee,{className:"h-4 flex-1"})]})}),t[16]=R):R=t[16];let V;t[17]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx(_e,{className:"py-0 px-0",children:s.jsx(we,{children:s.jsxs(me,{className:"gap-0.5",children:[R,s.jsx(re,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ee,{className:"h-4 w-4 rounded"}),s.jsx(ee,{className:"h-4 flex-1"})]})})]})})}),t[17]=V):V=t[17],S=V;break e}p="group/projects-section mt-2",m=Yt,C=l,v=a,u=_e,g="py-0 px-0",f=we,d=me,h="gap-0.5";let U;t[18]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=U):U=t[18];const H=!l&&"-rotate-90";let M;t[19]!==H?(M=I("text-muted-foreground shrink-0 transition-transform duration-200",H),t[19]=H,t[20]=M):M=t[20];let D;t[21]!==M?(D=s.jsx(Qt,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[U,s.jsx(nt,{size:12,className:M})]})}),t[21]=M,t[22]=D):D=t[22];let O;t[23]===Symbol.for("react.memo_cache_sentinel")?(O=()=>r(!0),t[23]=O):O=t[23];let B;t[24]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("button",{type:"button",onClick:O,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(Se,{size:16})}),t[24]=B):B=t[24],t[25]!==D?(b=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:[D,B]})}),t[25]=D,t[26]=b):b=t[26],c=Zt,x=L.length===0?s.jsx(re,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):L.map(zn)}t[0]=i,t[1]=l,t[2]=n,t[3]=c,t[4]=d,t[5]=f,t[6]=u,t[7]=m,t[8]=x,t[9]=h,t[10]=b,t[11]=g,t[12]=C,t[13]=v,t[14]=p,t[15]=S}else c=t[3],d=t[4],f=t[5],u=t[6],m=t[7],x=t[8],h=t[9],b=t[10],g=t[11],C=t[12],v=t[13],p=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let N;t[27]!==c||t[28]!==x?(N=s.jsx(c,{children:x}),t[27]=c,t[28]=x,t[29]=N):N=t[29];let j;t[30]!==d||t[31]!==h||t[32]!==b||t[33]!==N?(j=s.jsxs(d,{className:h,children:[b,N]}),t[30]=d,t[31]=h,t[32]=b,t[33]=N,t[34]=j):j=t[34];let y;t[35]!==f||t[36]!==j?(y=s.jsx(f,{children:j}),t[35]=f,t[36]=j,t[37]=y):y=t[37];let w;t[38]!==u||t[39]!==y||t[40]!==g?(w=s.jsx(u,{className:g,children:y}),t[38]=u,t[39]=y,t[40]=g,t[41]=w):w=t[41];let $;t[42]!==m||t[43]!==w||t[44]!==C||t[45]!==v?($=s.jsx(m,{open:C,onOpenChange:v,children:w}),t[42]=m,t[43]=w,t[44]=C,t[45]=v,t[46]=$):$=t[46];let k;t[47]!==$||t[48]!==p?(k=s.jsx("div",{className:p,children:$}),t[47]=$,t[48]=p,t[49]=k):k=t[49];let A;t[50]!==o?(A=s.jsx(Xe,{open:o,onOpenChange:r}),t[50]=o,t[51]=A):A=t[51];let T;return t[52]!==k||t[53]!==A?(T=s.jsxs(s.Fragment,{children:[k,A]}),t[52]=k,t[53]=A,t[54]=T):T=t[54],T}function zn(t){return s.jsx(wn,{project:t},t.id)}function In(t){return t.slug!==F}function Pn(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(E.Suspense,{fallback:s.jsx(_e,{className:"py-0 px-0",children:s.jsx(we,{children:s.jsx(me,{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(ee,{className:"h-4 w-4 rounded"}),s.jsx(ee,{className:"h-4 flex-1"})]})})})})}),children:s.jsx($n,{})}),t[0]=e):e=t[0],e}function An(t){const e=_.c(13),{onCreateProject:n}=t,[i]=Ae(),l=zs(),{locator:a}=ve();let o;e[0]!==a?(o=Oe.isOrgAdminProject(a),e[0]=a,e[1]=o):o=e[1];const r=o;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(He.Skeleton,{}),e[2]=c):c=e[2];let d;e[3]!==n?(d=s.jsx(E.Suspense,{fallback:c,children:s.jsx(He,{onCreateProject:n})}),e[3]=n,e[4]=d):d=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(kn,{}),e[5]=f):f=e[5];let u;e[6]!==r||e[7]!==i?(u=r&&i.experimental_projects?s.jsx(Ue,{children:s.jsx(E.Suspense,{fallback:null,children:s.jsx(Pn,{})})}):null,e[6]=r,e[7]=i,e[8]=u):u=e[8];let m;return e[9]!==l||e[10]!==d||e[11]!==u?(m=s.jsx(pt,{sections:l,header:d,footer:f,additionalContent:u}),e[9]=l,e[10]=d,e[11]=u,e[12]=m):m=e[12],m}function En(){const t=_.c(2),n=Fe().location.href;let i;return t[0]!==n?(i=s.jsx(Tt,{to:"/login",search:{next:n},replace:!0}),t[0]=n,t[1]=i):i=t[1],i}function On(t){const e=_.c(6),{children:n}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(At,{children:s.jsx(Ye,{})}),e[0]=i):i=e[0];let l;e[1]!==n?(l=s.jsx(Et,{children:n}),e[1]=n,e[2]=l):l=e[2];let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ot,{children:s.jsx(En,{})}),e[3]=a):a=e[3];let o;return e[4]!==l?(o=s.jsxs(s.Fragment,{children:[i,l,a]}),e[4]=l,e[5]=o):o=e[5],o}function Tn(t){const e=_.c(10),{children:n,className:i}=t,[,l]=E.useTransition();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=Ke.decoChatPanelWidth(),e[0]=a):a=e[0];const[o,r]=We(a,30);let c;e[1]!==r?(c=m=>l(()=>r(m)),e[1]=r,e[2]=c):c=e[2];const d=c;let f;e[3]!==i?(f=I("min-w-0",i),e[3]=i,e[4]=f):f=e[4];let u;return e[5]!==o||e[6]!==n||e[7]!==d||e[8]!==f?(u=s.jsx(ot,{defaultSize:o,minSize:20,className:f,onResize:d,children:n}),e[5]=o,e[6]=n,e[7]=d,e[8]=f,e[9]=u):u=e[9],u}function Mn(t){const e=_.c(5),{children:n}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=Ke.sidebarOpen(),e[0]=i):i=e[0];const[l,a]=We(i,!0);let o;return e[1]!==n||e[2]!==a||e[3]!==l?(o=s.jsx(Fs,{open:l,onOpenChange:a,children:n}),e[1]=n,e[2]=a,e[3]=l,e[4]=o):o=e[4],o}function Dn(t){const e=_.c(24),{isStudio:n,isHomeRoute:i,onCreateProject:l}=t,[a]=Ze();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Ke.decoChatPanelWidth(),e[0]=o):o=e[0];const[r]=We(o,30),[c]=Ae(),d=n&&c.experimental_projects?"":void 0,f=`${r}cqi`;let u;e[1]!==f?(u={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":f},e[1]=f,e[2]=u):u=e[2];const m=u;let x;e[3]!==l?(x=s.jsx(An,{onCreateProject:l}),e[3]=l,e[4]=x):x=e[4];let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h={background:"transparent",containerType:"inline-size"},e[5]=h):h=e[5];let b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b={overflow:"visible"},e[6]=b):b=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={overflow:"visible"},e[7]=g):g=e[7];const C=a&&"rounded-tr-[0.75rem] border-r";let v;e[8]!==C?(v=I("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",C),e[8]=C,e[9]=v):v=e[9];let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(Qe,{})}),e[10]=p):p=e[10];let S;e[11]!==v?(S=s.jsx(ot,{className:"min-w-0 flex flex-col",style:g,children:s.jsx("div",{className:v,children:p})}),e[11]=v,e[12]=S):S=e[12];let N;e[13]!==a||e[14]!==i?(N=!i&&s.jsxs(s.Fragment,{children:[s.jsx(ks,{className:"bg-sidebar"}),s.jsx(Tn,{className:I("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($s,{})})})})]}),e[13]=a,e[14]=i,e[15]=N):N=e[15];let j;e[16]!==S||e[17]!==N?(j=s.jsx(qs,{className:"pt-1.5",style:h,children:s.jsxs(Cs,{direction:"horizontal",className:"h-full",style:b,children:[S,N]})}),e[16]=S,e[17]=N,e[18]=j):j=e[18];let y;return e[19]!==j||e[20]!==d||e[21]!==m||e[22]!==x?(y=s.jsxs(Ks,{className:"flex-1 bg-sidebar","data-studio":d,style:m,children:[x,j]}),e[19]=j,e[20]=d,e[21]=m,e[22]=x,e[23]=y):y=e[23],y}function Rn(){const{org:t,project:e}=qe({strict:!1}),n=Fe(),[i,l]=E.useState(!1),a=n.location.pathname===`/${t}/${e}`||n.location.pathname===`/${t}/${e}/`,o=e??F,{data:r}=Mt({queryKey:Dt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:f}=await pe.organization.setActive({organizationSlug:t});return{org:f,project:{slug:o,isOrgAdmin:o===F}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!r)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(xt,{})})}),s.jsx(Qe,{})]});if(!r.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const c={...r,project:{...r.project,slug:o,isOrgAdmin:o===F}},d=o===F;return s.jsxs(Rt,{...c,children:[s.jsx(Mn,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(J.Provider,{children:s.jsx(Dn,{isStudio:d,isHomeRoute:a,onCreateProject:()=>l(!0)})})})}),s.jsx(Xe,{open:i,onOpenChange:l})]})}function _l(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(On,{children:s.jsx(E.Suspense,{fallback:s.jsx(Ye,{}),children:s.jsx(Rn,{})})}),t[0]=e):e=t[0],e}export{_l as default};
@@ -1 +1 @@
1
- import{c as E,u as q,j as n,n as F,K as v,r as k,t as _,B as O}from"./index-xQ2t379n.js";import{u as L}from"./useQuery-BLe-0FCm.js";import{u as R}from"./useMutation-tQLZk7P3.js";import{S as V}from"./switch-a3WrSRQb.js";import{I as A}from"./input-CquIDQAg.js";import{u as K,a as U}from"./constants-BLSLjUCX.js";import{g as J}from"./types-CnPYT6I7.js";import{u as w}from"./unwrap-tool-result-BYXdCQMg.js";function M(s){const e=E.c(33),{connection:t,pinnedViews:o,isSaving:u,onTogglePin:h,onLabelChange:f}=s;if(t.uiTools.length===0)return null;let j;e[0]!==t.id||e[1]!==o?(j=x=>o.some(c=>c.connectionId===t.id&&c.toolName===x),e[0]=t.id,e[1]=o,e[2]=j):j=e[2];const N=j;let g;e[3]!==t.icon||e[4]!==t.title?(g=t.icon?n.jsx("img",{src:t.icon,alt:"",className:"size-4 shrink-0 rounded"}):n.jsx("div",{className:"size-4 shrink-0 rounded bg-muted flex items-center justify-center",children:n.jsx("span",{className:"text-[8px] font-medium text-muted-foreground",children:t.title.charAt(0).toUpperCase()})}),e[3]=t.icon,e[4]=t.title,e[5]=g):g=e[5];let p;e[6]!==t.title?(p=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.title}),e[6]=t.title,e[7]=p):p=e[7];let l;e[8]!==g||e[9]!==p?(l=n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g,p]}),e[8]=g,e[9]=p,e[10]=l):l=e[10];let d;if(e[11]!==t.icon||e[12]!==t.id||e[13]!==t.uiTools||e[14]!==N||e[15]!==u||e[16]!==f||e[17]!==h||e[18]!==o){let x;e[20]!==t.icon||e[21]!==t.id||e[22]!==N||e[23]!==u||e[24]!==f||e[25]!==h||e[26]!==o?(x=c=>{const P=N(c.name),I=o.find(S=>S.connectionId===t.id&&S.toolName===c.name);return n.jsxs("div",{className:"flex flex-col border-b border-border last:border-0",children:[n.jsxs("div",{className:"flex items-center justify-between gap-6 py-3 cursor-pointer",onClick:()=>h(t.id,c.name,t.icon),children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:c.name}),c.description&&n.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.description})]}),n.jsx("div",{onClick:$,className:"shrink-0",children:n.jsx(V,{checked:P,onCheckedChange:()=>h(t.id,c.name,t.icon),disabled:u})})]}),P&&I&&n.jsxs("div",{className:"pb-3 pl-0 flex items-center gap-3",onClick:Q,children:[n.jsx("label",{className:"text-xs text-muted-foreground w-12 shrink-0",children:"Label"}),n.jsx(A,{value:I.label,onChange:S=>f(t.id,c.name,S.target.value),className:"h-8 text-sm w-56",disabled:u})]})]},c.name)},e[20]=t.icon,e[21]=t.id,e[22]=N,e[23]=u,e[24]=f,e[25]=h,e[26]=o,e[27]=x):x=e[27],d=t.uiTools.map(x),e[11]=t.icon,e[12]=t.id,e[13]=t.uiTools,e[14]=N,e[15]=u,e[16]=f,e[17]=h,e[18]=o,e[19]=d}else d=e[19];let m;e[28]!==d?(m=n.jsx("div",{className:"flex flex-col",children:d}),e[28]=d,e[29]=m):m=e[29];let C;return e[30]!==l||e[31]!==m?(C=n.jsxs("div",{children:[l,m]}),e[30]=l,e[31]=m,e[32]=C):C=e[32],C}function Q(s){return s.stopPropagation()}function $(s){return s.stopPropagation()}function z(){const{org:s,project:e}=q(),t=K({connectionId:U,orgId:s.id}),o=F(),u=e.id??"",{data:h}=L({queryKey:v.projectConnections(u),enabled:!!e.id,queryFn:async()=>{const i=await t.callTool({name:"PROJECT_CONNECTION_LIST",arguments:{projectId:u}});return w(i)}}),f=h?.connections??[],j=f.map(i=>i.id).sort(),{data:N}=L({queryKey:v.projectConnectionDetails(u,j),enabled:j.length>0,queryFn:async()=>await Promise.all(f.map(async a=>{try{const y=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:a.id}}),{item:T}=w(y),r=(T?.tools??[]).filter(b=>!!J(b._meta)).map(b=>({name:b.name,description:b.description}));return{id:a.id,title:a.title,icon:a.icon,uiTools:r}}catch{return{id:a.id,title:a.title,icon:a.icon,uiTools:[]}}}))}),g=N??[],p=e.ui?.pinnedViews??[],[l,d]=k.useState(p),[m,C]=k.useState(!1),x=JSON.stringify(l)!==JSON.stringify(p),c=(i,a,y)=>{const T=l.some(r=>r.connectionId===i&&r.toolName===a);d(T?r=>r.filter(b=>!(b.connectionId===i&&b.toolName===a)):r=>[...r,{connectionId:i,toolName:a,label:a,icon:y}])},P=(i,a,y)=>{d(T=>T.map(r=>r.connectionId===i&&r.toolName===a?{...r,label:y}:r))},I=R({mutationFn:async()=>{const i=await t.callTool({name:"PROJECT_PINNED_VIEWS_UPDATE",arguments:{projectId:e.id,pinnedViews:l}});w(i)},onSuccess:()=>{o.invalidateQueries({queryKey:v.project(s.id,e.slug)}),_.success("Sidebar updated")},onError:i=>{_.error("Failed to update sidebar: "+(i instanceof Error?i.message:"Unknown error"))},onSettled:()=>C(!1)}),S=()=>{C(!0),I.mutate()},D=()=>{d(p)};return f.length===0?n.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No connections associated with this project. Add connections in the Dependencies section first."}):n.jsxs("div",{className:"space-y-6",children:[g.map(i=>n.jsx(M,{connection:i,pinnedViews:l,isSaving:m,onTogglePin:c,onLabelChange:P},i.id)),n.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[n.jsx(O,{variant:"outline",onClick:D,disabled:!x||m,children:"Cancel"}),n.jsx(O,{onClick:S,disabled:!x||m,children:m?"Saving...":"Save Changes"})]})]})}function B(){const s=E.c(3),{project:e}=q();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsxs("div",{children:[n.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Sidebar"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Pin interactive tools from your dependencies to the project sidebar for quick access."})]}),s[0]=t):t=s[0];let o;return s[1]!==e.id?(o=n.jsxs("div",{className:"flex flex-col gap-6",children:[t,n.jsx(z,{},e.id)]}),s[1]=e.id,s[2]=o):o=s[2],o}function ne(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),s[0]=e):e=s[0],e}export{ne as default};
1
+ import{c as E,u as q,j as n,n as F,K as v,r as k,t as _,B as O}from"./index-Cb17fVaO.js";import{u as L}from"./useQuery-BcAK4m0m.js";import{u as R}from"./useMutation-DRjp2Nl5.js";import{S as V}from"./switch-BYETmQBd.js";import{I as A}from"./input-Cch0IC2D.js";import{u as K,a as U}from"./constants-B_iiTUip.js";import{g as J}from"./types-CGMnrrVy.js";import{u as w}from"./unwrap-tool-result-BYXdCQMg.js";function M(s){const e=E.c(33),{connection:t,pinnedViews:o,isSaving:u,onTogglePin:h,onLabelChange:f}=s;if(t.uiTools.length===0)return null;let j;e[0]!==t.id||e[1]!==o?(j=x=>o.some(c=>c.connectionId===t.id&&c.toolName===x),e[0]=t.id,e[1]=o,e[2]=j):j=e[2];const N=j;let g;e[3]!==t.icon||e[4]!==t.title?(g=t.icon?n.jsx("img",{src:t.icon,alt:"",className:"size-4 shrink-0 rounded"}):n.jsx("div",{className:"size-4 shrink-0 rounded bg-muted flex items-center justify-center",children:n.jsx("span",{className:"text-[8px] font-medium text-muted-foreground",children:t.title.charAt(0).toUpperCase()})}),e[3]=t.icon,e[4]=t.title,e[5]=g):g=e[5];let p;e[6]!==t.title?(p=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.title}),e[6]=t.title,e[7]=p):p=e[7];let l;e[8]!==g||e[9]!==p?(l=n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g,p]}),e[8]=g,e[9]=p,e[10]=l):l=e[10];let d;if(e[11]!==t.icon||e[12]!==t.id||e[13]!==t.uiTools||e[14]!==N||e[15]!==u||e[16]!==f||e[17]!==h||e[18]!==o){let x;e[20]!==t.icon||e[21]!==t.id||e[22]!==N||e[23]!==u||e[24]!==f||e[25]!==h||e[26]!==o?(x=c=>{const P=N(c.name),I=o.find(S=>S.connectionId===t.id&&S.toolName===c.name);return n.jsxs("div",{className:"flex flex-col border-b border-border last:border-0",children:[n.jsxs("div",{className:"flex items-center justify-between gap-6 py-3 cursor-pointer",onClick:()=>h(t.id,c.name,t.icon),children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:c.name}),c.description&&n.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.description})]}),n.jsx("div",{onClick:$,className:"shrink-0",children:n.jsx(V,{checked:P,onCheckedChange:()=>h(t.id,c.name,t.icon),disabled:u})})]}),P&&I&&n.jsxs("div",{className:"pb-3 pl-0 flex items-center gap-3",onClick:Q,children:[n.jsx("label",{className:"text-xs text-muted-foreground w-12 shrink-0",children:"Label"}),n.jsx(A,{value:I.label,onChange:S=>f(t.id,c.name,S.target.value),className:"h-8 text-sm w-56",disabled:u})]})]},c.name)},e[20]=t.icon,e[21]=t.id,e[22]=N,e[23]=u,e[24]=f,e[25]=h,e[26]=o,e[27]=x):x=e[27],d=t.uiTools.map(x),e[11]=t.icon,e[12]=t.id,e[13]=t.uiTools,e[14]=N,e[15]=u,e[16]=f,e[17]=h,e[18]=o,e[19]=d}else d=e[19];let m;e[28]!==d?(m=n.jsx("div",{className:"flex flex-col",children:d}),e[28]=d,e[29]=m):m=e[29];let C;return e[30]!==l||e[31]!==m?(C=n.jsxs("div",{children:[l,m]}),e[30]=l,e[31]=m,e[32]=C):C=e[32],C}function Q(s){return s.stopPropagation()}function $(s){return s.stopPropagation()}function z(){const{org:s,project:e}=q(),t=K({connectionId:U,orgId:s.id}),o=F(),u=e.id??"",{data:h}=L({queryKey:v.projectConnections(u),enabled:!!e.id,queryFn:async()=>{const i=await t.callTool({name:"PROJECT_CONNECTION_LIST",arguments:{projectId:u}});return w(i)}}),f=h?.connections??[],j=f.map(i=>i.id).sort(),{data:N}=L({queryKey:v.projectConnectionDetails(u,j),enabled:j.length>0,queryFn:async()=>await Promise.all(f.map(async a=>{try{const y=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:a.id}}),{item:T}=w(y),r=(T?.tools??[]).filter(b=>!!J(b._meta)).map(b=>({name:b.name,description:b.description}));return{id:a.id,title:a.title,icon:a.icon,uiTools:r}}catch{return{id:a.id,title:a.title,icon:a.icon,uiTools:[]}}}))}),g=N??[],p=e.ui?.pinnedViews??[],[l,d]=k.useState(p),[m,C]=k.useState(!1),x=JSON.stringify(l)!==JSON.stringify(p),c=(i,a,y)=>{const T=l.some(r=>r.connectionId===i&&r.toolName===a);d(T?r=>r.filter(b=>!(b.connectionId===i&&b.toolName===a)):r=>[...r,{connectionId:i,toolName:a,label:a,icon:y}])},P=(i,a,y)=>{d(T=>T.map(r=>r.connectionId===i&&r.toolName===a?{...r,label:y}:r))},I=R({mutationFn:async()=>{const i=await t.callTool({name:"PROJECT_PINNED_VIEWS_UPDATE",arguments:{projectId:e.id,pinnedViews:l}});w(i)},onSuccess:()=>{o.invalidateQueries({queryKey:v.project(s.id,e.slug)}),_.success("Sidebar updated")},onError:i=>{_.error("Failed to update sidebar: "+(i instanceof Error?i.message:"Unknown error"))},onSettled:()=>C(!1)}),S=()=>{C(!0),I.mutate()},D=()=>{d(p)};return f.length===0?n.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No connections associated with this project. Add connections in the Dependencies section first."}):n.jsxs("div",{className:"space-y-6",children:[g.map(i=>n.jsx(M,{connection:i,pinnedViews:l,isSaving:m,onTogglePin:c,onLabelChange:P},i.id)),n.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[n.jsx(O,{variant:"outline",onClick:D,disabled:!x||m,children:"Cancel"}),n.jsx(O,{onClick:S,disabled:!x||m,children:m?"Saving...":"Save Changes"})]})]})}function B(){const s=E.c(3),{project:e}=q();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsxs("div",{children:[n.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Sidebar"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Pin interactive tools from your dependencies to the project sidebar for quick access."})]}),s[0]=t):t=s[0];let o;return s[1]!==e.id?(o=n.jsxs("div",{className:"flex flex-col gap-6",children:[t,n.jsx(z,{},e.id)]}),s[1]=e.id,s[2]=o):o=s[2],o}function ne(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),s[0]=e):e=s[0],e}export{ne as default};
@@ -1 +1 @@
1
- import{c as n,v as c,j as i}from"./index-xQ2t379n.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
1
+ import{c as n,v as c,j as i}from"./index-Cb17fVaO.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
@@ -1 +1 @@
1
- import{c as C,v as d,z as m,j as a}from"./index-xQ2t379n.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,G as m,j as a}from"./index-Cb17fVaO.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-xQ2t379n.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-Cb17fVaO.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};
@@ -0,0 +1 @@
1
+ import{r as c,j as i,J as C,M as y,I as B,T as I,Y as M,Z as H,X as z,c as A,v as g}from"./index-Cb17fVaO.js";var m="Switch",[U]=z(m),[q,L]=U(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]=B({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:I(a.onClick,b=>{N(T=>!T),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 X=E,$=R;function F(a){const e=A.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($,{"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(X,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{F as S};
@@ -1 +1 @@
1
- import{c as r,v as i,j as c}from"./index-xQ2t379n.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-Cb17fVaO.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};
@@ -0,0 +1 @@
1
+ import{c as v,r as p,H as $,I as P,j as d,J as m,aH as F,W as L,X as M,U as y,Q as k,T,R as V,v as x}from"./index-Cb17fVaO.js";import{u as D,L as G}from"./localstorage-keys-CxWEzkpK.js";const K={devMode:!1,experimental_projects:!1,toolApprovalLevel:"none",enableNotifications:typeof Notification<"u"};function X(){const a=v.c(1);let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=G.preferences(),a[0]=e):e=a[0],D(e,z)}function z(a){return{...K,...a}}var g="Tabs",[H]=M(g,[y]),_=y(),[O,h]=H(g),N=p.forwardRef((a,e)=>{const{__scopeTabs:r,value:t,onValueChange:n,defaultValue:o,orientation:s="horizontal",dir:i,activationMode:l="automatic",...b}=a,u=$(i),[c,f]=P({prop:t,onChange:n,defaultProp:o??"",caller:g});return d.jsx(O,{scope:r,baseId:F(),value:c,onValueChange:f,orientation:s,dir:u,activationMode:l,children:d.jsx(m.div,{dir:u,"data-orientation":s,...b,ref:e})})});N.displayName=g;var C="TabsList",E=p.forwardRef((a,e)=>{const{__scopeTabs:r,loop:t=!0,...n}=a,o=h(C,r),s=_(r);return d.jsx(V,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:t,children:d.jsx(m.div,{role:"tablist","aria-orientation":o.orientation,...n,ref:e})})});E.displayName=C;var w="TabsTrigger",R=p.forwardRef((a,e)=>{const{__scopeTabs:r,value:t,disabled:n=!1,...o}=a,s=h(w,r),i=_(r),l=A(s.baseId,t),b=S(s.baseId,t),u=t===s.value;return d.jsx(k,{asChild:!0,...i,focusable:!n,active:u,children:d.jsx(m.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":b,"data-state":u?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:l,...o,ref:e,onMouseDown:T(a.onMouseDown,c=>{!n&&c.button===0&&c.ctrlKey===!1?s.onValueChange(t):c.preventDefault()}),onKeyDown:T(a.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(t)}),onFocus:T(a.onFocus,()=>{const c=s.activationMode!=="manual";!u&&!n&&c&&s.onValueChange(t)})})})});R.displayName=w;var j="TabsContent",I=p.forwardRef((a,e)=>{const{__scopeTabs:r,value:t,forceMount:n,children:o,...s}=a,i=h(j,r),l=A(i.baseId,t),b=S(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const f=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(f)},[]),d.jsx(L,{present:n||u,children:({present:f})=>d.jsx(m.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:b,tabIndex:0,...s,ref:e,style:{...a.style,animationDuration:c.current?"0s":void 0},children:f&&o})})});I.displayName=j;function A(a,e){return`${a}-trigger-${e}`}function S(a,e){return`${a}-content-${e}`}var B=N,U=E,q=R,J=I;function Y(a){const e=v.c(10);let r,t,n;e[0]!==a?({className:r,variant:n,...t}=a,e[0]=a,e[1]=r,e[2]=t,e[3]=n):(r=e[1],t=e[2],n=e[3]);const o=n===void 0?"pill":n;let s;e[4]!==r?(s=x("flex flex-col gap-2",r),e[4]=r,e[5]=s):s=e[5];let i;return e[6]!==t||e[7]!==s||e[8]!==o?(i=d.jsx(B,{"data-slot":"tabs","data-variant":o,className:s,...t}),e[6]=t,e[7]=s,e[8]=o,e[9]=i):i=e[9],i}function Z(a){const e=v.c(11);let r,t,n;e[0]!==a?({className:r,variant:n,...t}=a,e[0]=a,e[1]=r,e[2]=t,e[3]=n):(r=e[1],t=e[2],n=e[3]);const o=n||"pill",s=o==="underline"?"flex h-[52px] items-center border-b border-border":o==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==r||e[5]!==s?(i=x(s,r),e[4]=r,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(U,{"data-slot":"tabs-list","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function ee(a){const e=v.c(11);let r,t,n;e[0]!==a?({className:r,variant:n,...t}=a,e[0]=a,e[1]=r,e[2]=t,e[3]=n):(r=e[1],t=e[2],n=e[3]);const o=n||"pill",s=o==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":o==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==r||e[5]!==s?(i=x(s,r),e[4]=r,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(q,{"data-slot":"tabs-trigger","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function te(a){const e=v.c(8);let r,t;e[0]!==a?({className:r,...t}=a,e[0]=a,e[1]=r,e[2]=t):(r=e[1],t=e[2]);let n;e[3]!==r?(n=x("flex-1 outline-none h-full",r),e[3]=r,e[4]=n):n=e[4];let o;return e[5]!==t||e[6]!==n?(o=d.jsx(J,{"data-slot":"tabs-content",className:n,...t}),e[5]=t,e[6]=n,e[7]=o):o=e[7],o}export{ee as T,Z as a,te as b,Y as c,X as u};
@@ -0,0 +1 @@
1
+ import{c as n,j as r,E as d,r as f,u as x,b as j}from"./index-Cb17fVaO.js";import{T as h}from"./tasks-panel-DXBfZcDd.js";import{P as p}from"./index-DLDRkAi_.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-J-4TPKpB.js";import{i as B}from"./Loading01-By16fsIj.js";import{u as S}from"./collapsible-C32NLu9h.js";import"./index-CvxrBAxY.js";import"./popover-CH5Uw6Js.js";import"./skeleton-BavbnGik.js";import"./spinner-BsdcXRt-.js";import"./tooltip-Bb66VFhj.js";import"./index-B5u30SQw.js";import"./constants-B_iiTUip.js";import"./decopilot-events-Dczeyumg.js";import"./useQuery-BcAK4m0m.js";import"./dialog-BuY4tTjY.js";import"./X-DZCW78jV.js";import"./form-Ci0uQFmj.js";import"./label-BLzrK_Rs.js";import"./input-Cch0IC2D.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-DNV5Voek.js";import"./ChevronDown-BjWhsewG.js";import"./Edit01-CPphoQZI.js";import"./Users03-CUtoEpN2.js";import"./XCircle-BRYqxNwU.js";import"./AlertCircle-Bz0Gu2J2.js";import"./select-iAQ1JGAr.js";import"./Check-e1LxjlnS.js";import"./tabs-BCXNMT0l.js";import"./localstorage-keys-CxWEzkpK.js";import"./useMutation-DRjp2Nl5.js";import"./ArrowLeft-bHzBiXiT.js";import"./use-copy-QwK_lQBK.js";import"./badge-CU_zbIXX.js";import"./Code01-Den27Mse.js";import"./integration-icon-BtE6qqXO.js";import"./Container-w8ZJjmnR.js";import"./use-virtual-mcp-T76ZkZ-8.js";import"./use-collections-BF-71bZg.js";import"./SearchMd-DF5i6zVs.js";import"./use-create-virtual-mcp-wYKTF_rl.js";import"./use-mcp-resources-MU6kxIry.js";import"./ChevronRight-DZwFOSrA.js";import"./Copy01-BCJxa3pS.js";import"./marked.esm-BaswSlok.js";import"./markdown-B9U6C-Vk.js";import"./mcp-app-renderer-vWTHzC-y.js";import"./types-CGMnrrVy.js";import"./Eye-B65VnOsY.js";import"./Globe02-C7u-Ldxq.js";import"./LayersTwo01-CuCFLmbR.js";import"./XClose-CuKHHhHx.js";import"./collection-search-D8Kd7sE4.js";import"./use-connection-Bv6BgTqI.js";import"./generate-id-Dyweu44Y.js";import"./Clock-BDkBqrq2.js";import"./Trash01-BZm-kVJv.js";import"./user-CkBLhwlg.js";import"./avatar-Bp7Qjpgt.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./CheckCircle-aG4ywA2O.js";import"./Plus-jLReB_Bt.js";import"./use-llm-lZx_FT_g.js";import"./use-binding-Bi9qdfAY.js";import"./binder-D8RBAvqy.js";import"./checkbox-Dkby6oH1.js";import"./AlignLeft-cTDyunvB.js";import"./Image01-HHGXqEyS.js";import"./RefreshCcw01-CJTVrN2f.js";import"./Settings01-B3dw12xC.js";import"./useSuspenseInfiniteQuery-B9EajsfN.js";import"./infiniteQueryObserver-CiekiSCa.js";function v(){const t=n.c(8),{org:o,project:s}=x(),a=j(),{switchToTask:c}=S();let i;t[0]!==a||t[1]!==o.slug||t[2]!==s.slug||t[3]!==c?(i=async u=>{await c(u),a({to:"/$org/$project",params:{org:o.slug,project:s.slug}})},t[0]=a,t[1]=o.slug,t[2]=s.slug,t[3]=c,t[4]=i):i=t[4];const l=i;let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(p.Header,{children:r.jsx(p.Header.Left,{children:r.jsx(g,{children:r.jsx(b,{children:r.jsx(T,{children:r.jsx(k,{children:"Tasks"})})})})})}),t[5]=m):m=t[5];let e;return t[6]!==l?(e=r.jsxs(p,{children:[m,r.jsx(p.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(h,{onTaskSelect:l})})})]}),t[6]=l,t[7]=e):e=t[7],e}function Mt(){const t=n.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(d,{children:r.jsx(f.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(B,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(v,{})})}),t[0]=o):o=t[0],o}export{Mt as default};
@@ -1 +1 @@
1
- import{r as x,c as S,j as t,v,E as ee}from"./index-xQ2t379n.js";import"./index-D3pPaynQ.js";import{a as W,u as te}from"./collapsible-CpgZSwBN.js";import{C as se}from"./collection-search-Cq4rjP0Z.js";import{U as re}from"./user-CI081yAV.js";import{f as ne}from"./format-time-CMKyl-GC.js";import{i as oe}from"./CheckCircle-DCJamcsS.js";import{i as K}from"./Loading01-BWjBCSBL.js";import{i as ie}from"./XCircle-BtpMj0Vx.js";import{a as le,b as ae,T as ce}from"./tooltip-B6yKYOIf.js";import{i as de}from"./Check-Dy5Jwsdl.js";import{i as me}from"./ChevronRight-UHmTzu6U.js";import{i as fe}from"./Edit01-CMeQdBcS.js";import{s as ue}from"./Plus-CK3qvOs-.js";const q=({size:s=24,color:e="currentColor",...r})=>x.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},x.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));q.displayName="Hourglass03";const H=({size:s=24,color:e="currentColor",...r})=>x.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},x.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));H.displayName="Placeholder";const xe=["in_progress","requires_action","failed","expired","completed"],pe={in_progress:{label:"In Progress",icon:K,iconClassName:"text-muted-foreground animate-spin"},requires_action:{label:"Need Action",icon:H,iconClassName:"text-orange-500"},failed:{label:"Failed",icon:ie,iconClassName:"text-destructive"},expired:{label:"Timed Out",icon:q,iconClassName:"text-warning"},completed:{label:"Complete",icon:oe,iconClassName:"text-success"}};function he(s){const e={};for(const r of s){const o=r.status??"completed";e[o]||(e[o]=[]),e[o].push(r)}for(const r of Object.values(e))r.sort((o,i)=>new Date(i.updated_at).getTime()-new Date(o.updated_at).getTime());return e}function be(s){const e=S.c(12),{text:r,className:o}=s,i=x.useRef(null),[l,d]=x.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=k=>{k&&i.current?d(i.current.scrollWidth>i.current.clientWidth):d(!1)},e[0]=a):a=e[0];let c;e[1]!==o?(c=v("truncate block",o),e[1]=o,e[2]=c):c=e[2];let f;e[3]!==c||e[4]!==r?(f=t.jsx(le,{asChild:!0,children:t.jsx("span",{ref:i,className:c,children:r})}),e[3]=c,e[4]=r,e[5]=f):f=e[5];let p;e[6]!==r?(p=t.jsx(ae,{side:"top",align:"start",children:r}),e[6]=r,e[7]=p):p=e[7];let b;return e[8]!==l||e[9]!==f||e[10]!==p?(b=t.jsxs(ce,{open:l,onOpenChange:a,children:[f,p]}),e[8]=l,e[9]=f,e[10]=p,e[11]=b):b=e[11],b}function ge(s){const e=S.c(32),{onTaskSelect:r}=s,{activeTaskId:o,switchToTask:i}=W(),{renameTask:l,tasks:d}=te(),[a,c]=x.useState("");let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={},e[0]=f):f=e[0];const[p,b]=x.useState(f),[k,P]=x.useState(null),[g,U]=x.useState("");let j,N,h;if(e[1]!==o||e[2]!==p||e[3]!==k||e[4]!==g||e[5]!==r||e[6]!==l||e[7]!==a||e[8]!==i||e[9]!==d){const A=d.filter(ye),B=a.trim()?A.filter(n=>n.title.toLowerCase().includes(a.toLowerCase())):A,I=he(B),Q=xe.filter(n=>I[n]&&I[n].length>0);let _;e[13]===Symbol.for("react.memo_cache_sentinel")?(_=n=>{b(u=>({...u,[n]:!u[n]}))},e[13]=_):_=e[13];const V=_;let z;e[14]!==r||e[15]!==i?(z=async n=>{r?r(n.id):await i(n.id)},e[14]=r,e[15]=i,e[16]=z):z=e[16];const Z=z;let $;e[17]===Symbol.for("react.memo_cache_sentinel")?($=(n,u)=>{u.stopPropagation(),P(n.id),U(n.title||"")},e[17]=$):$=e[17];const J=$;let D;e[18]!==g||e[19]!==l?(D=async n=>{const u=g.trim();u&&await l(n,u),P(null)},e[18]=g,e[19]=l,e[20]=D):D=e[20];const C=D;let L;e[21]!==C?(L=(n,u)=>{n.key==="Enter"?(n.preventDefault(),C(u)):n.key==="Escape"&&P(null)},e[21]=C,e[22]=L):L=e[22];const X=L;let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=n=>{n.key==="Escape"&&(c(""),n.target.blur())},e[23]=O):O=e[23],e[24]!==a?(h=t.jsx(se,{value:a,onChange:c,placeholder:"Search tasks...",onKeyDown:O}),e[24]=a,e[25]=h):h=e[25],j="flex-1 overflow-y-auto",N=B.length===0?t.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-12 px-4 text-center",children:t.jsx("p",{className:"text-xs text-muted-foreground",children:a?"No tasks found":"No tasks yet"})}):Q.map((n,u)=>{const T=pe[n];if(!T)return null;const F=T.icon,G=I[n]??[],M=!p[n];return t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("button",{type:"button",onClick:()=>V(n),className:v("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",u!==0&&"border-t border-border/50"),children:[t.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:t.jsx(me,{size:16,className:v("text-muted-foreground transition-transform duration-200",M&&"rotate-90")})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[t.jsx(F,{size:16,className:T.iconClassName}),t.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:T.label}),t.jsx("span",{className:"text-xs text-muted-foreground/60",children:G.length})]})]}),M&&G.map(m=>{const Y=m.id===o,R=k===m.id;return t.jsxs("div",{className:v("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",Y&&"bg-accent/50"),onClick:()=>!R&&Z(m),children:[t.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[t.jsx(F,{size:16,className:v("shrink-0",T.iconClassName)}),R?t.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:Ne,children:[t.jsx("input",{autoFocus:!0,value:g,onChange:w=>U(w.target.value),onBlur:()=>C(m.id),onKeyDown:w=>X(w,m.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),t.jsx("button",{type:"button",onMouseDown:je,onClick:()=>C(m.id),className:"p-1 hover:bg-accent rounded shrink-0",children:t.jsx(de,{size:12,className:"text-muted-foreground"})})]}):t.jsx(be,{text:m.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!R&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[t.jsx("button",{type:"button",onClick:w=>J(m,w),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:t.jsx(fe,{size:13,className:"text-muted-foreground"})}),m.created_by&&t.jsx(re,{id:m.created_by,size:"3xs",avatarOnly:!0})]}),t.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:t.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:m.updated_at?ne(new Date(m.updated_at)):"—"})})]})]},m.id)})]},n)}),e[1]=o,e[2]=p,e[3]=k,e[4]=g,e[5]=r,e[6]=l,e[7]=a,e[8]=i,e[9]=d,e[10]=j,e[11]=N,e[12]=h}else j=e[10],N=e[11],h=e[12];let y;e[26]!==j||e[27]!==N?(y=t.jsx("div",{className:j,children:N}),e[26]=j,e[27]=N,e[28]=y):y=e[28];let E;return e[29]!==h||e[30]!==y?(E=t.jsxs(t.Fragment,{children:[h,y]}),e[29]=h,e[30]=y,e[31]=E):E=e[31],E}function je(s){return s.preventDefault()}function Ne(s){return s.stopPropagation()}function ye(s){return!s.hidden}function ve(){const s=S.c(10),{createTask:e,isChatEmpty:r}=W();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),s[0]=o):o=s[0];let i;s[1]!==e?(i=()=>e(),s[1]=e,s[2]=i):i=s[2];let l;s[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(ue,{size:16,className:"text-muted-foreground"}),s[3]=l):l=s[3];let d;s[4]!==r||s[5]!==i?(d=t.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[o,t.jsx("button",{type:"button",onClick:i,disabled:r,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:l})]}),s[4]=r,s[5]=i,s[6]=d):d=s[6];let a;s[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(ge,{}),s[7]=a):a=s[7];let c;return s[8]!==d?(c=t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[d,a]}),s[8]=d,s[9]=c):c=s[9],c}function ke(){const s=S.c(2);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s[0]=e):e=s[0];let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(K,{size:20,className:"animate-spin text-muted-foreground"})})]}),s[1]=r):r=s[1],r}function Ae(s){const e=S.c(5),{className:r}=s;let o;e[0]!==r?(o=v("h-full",r),e[0]=r,e[1]=o):o=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ee,{fallback:Ce,children:t.jsx(x.Suspense,{fallback:t.jsx(ke,{}),children:t.jsx(ve,{})})}),e[2]=i):i=e[2];let l;return e[3]!==o?(l=t.jsx("div",{className:o,children:i}),e[3]=o,e[4]=l):l=e[4],l}function Ce(){return t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[t.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:t.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{ge as T,Ae as a};
1
+ import{r as x,c as S,j as t,v,E as ee}from"./index-Cb17fVaO.js";import"./index-CvxrBAxY.js";import{a as W,u as te}from"./collapsible-C32NLu9h.js";import{C as se}from"./collection-search-D8Kd7sE4.js";import{U as re}from"./user-CkBLhwlg.js";import{f as ne}from"./format-time-CMKyl-GC.js";import{i as oe}from"./CheckCircle-aG4ywA2O.js";import{i as K}from"./Loading01-By16fsIj.js";import{i as ie}from"./XCircle-BRYqxNwU.js";import{a as le,b as ae,T as ce}from"./tooltip-Bb66VFhj.js";import{i as de}from"./Check-e1LxjlnS.js";import{i as me}from"./ChevronRight-DZwFOSrA.js";import{i as fe}from"./Edit01-CPphoQZI.js";import{s as ue}from"./Plus-jLReB_Bt.js";const q=({size:s=24,color:e="currentColor",...r})=>x.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},x.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));q.displayName="Hourglass03";const H=({size:s=24,color:e="currentColor",...r})=>x.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},x.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));H.displayName="Placeholder";const xe=["in_progress","requires_action","failed","expired","completed"],pe={in_progress:{label:"In Progress",icon:K,iconClassName:"text-muted-foreground animate-spin"},requires_action:{label:"Need Action",icon:H,iconClassName:"text-orange-500"},failed:{label:"Failed",icon:ie,iconClassName:"text-destructive"},expired:{label:"Timed Out",icon:q,iconClassName:"text-warning"},completed:{label:"Complete",icon:oe,iconClassName:"text-success"}};function he(s){const e={};for(const r of s){const o=r.status??"completed";e[o]||(e[o]=[]),e[o].push(r)}for(const r of Object.values(e))r.sort((o,i)=>new Date(i.updated_at).getTime()-new Date(o.updated_at).getTime());return e}function be(s){const e=S.c(12),{text:r,className:o}=s,i=x.useRef(null),[l,d]=x.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=k=>{k&&i.current?d(i.current.scrollWidth>i.current.clientWidth):d(!1)},e[0]=a):a=e[0];let c;e[1]!==o?(c=v("truncate block",o),e[1]=o,e[2]=c):c=e[2];let f;e[3]!==c||e[4]!==r?(f=t.jsx(le,{asChild:!0,children:t.jsx("span",{ref:i,className:c,children:r})}),e[3]=c,e[4]=r,e[5]=f):f=e[5];let p;e[6]!==r?(p=t.jsx(ae,{side:"top",align:"start",children:r}),e[6]=r,e[7]=p):p=e[7];let b;return e[8]!==l||e[9]!==f||e[10]!==p?(b=t.jsxs(ce,{open:l,onOpenChange:a,children:[f,p]}),e[8]=l,e[9]=f,e[10]=p,e[11]=b):b=e[11],b}function ge(s){const e=S.c(32),{onTaskSelect:r}=s,{activeTaskId:o,switchToTask:i}=W(),{renameTask:l,tasks:d}=te(),[a,c]=x.useState("");let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={},e[0]=f):f=e[0];const[p,b]=x.useState(f),[k,P]=x.useState(null),[g,U]=x.useState("");let j,N,h;if(e[1]!==o||e[2]!==p||e[3]!==k||e[4]!==g||e[5]!==r||e[6]!==l||e[7]!==a||e[8]!==i||e[9]!==d){const A=d.filter(ye),B=a.trim()?A.filter(n=>n.title.toLowerCase().includes(a.toLowerCase())):A,I=he(B),Q=xe.filter(n=>I[n]&&I[n].length>0);let _;e[13]===Symbol.for("react.memo_cache_sentinel")?(_=n=>{b(u=>({...u,[n]:!u[n]}))},e[13]=_):_=e[13];const V=_;let z;e[14]!==r||e[15]!==i?(z=async n=>{r?r(n.id):await i(n.id)},e[14]=r,e[15]=i,e[16]=z):z=e[16];const Z=z;let $;e[17]===Symbol.for("react.memo_cache_sentinel")?($=(n,u)=>{u.stopPropagation(),P(n.id),U(n.title||"")},e[17]=$):$=e[17];const J=$;let D;e[18]!==g||e[19]!==l?(D=async n=>{const u=g.trim();u&&await l(n,u),P(null)},e[18]=g,e[19]=l,e[20]=D):D=e[20];const C=D;let L;e[21]!==C?(L=(n,u)=>{n.key==="Enter"?(n.preventDefault(),C(u)):n.key==="Escape"&&P(null)},e[21]=C,e[22]=L):L=e[22];const X=L;let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=n=>{n.key==="Escape"&&(c(""),n.target.blur())},e[23]=O):O=e[23],e[24]!==a?(h=t.jsx(se,{value:a,onChange:c,placeholder:"Search tasks...",onKeyDown:O}),e[24]=a,e[25]=h):h=e[25],j="flex-1 overflow-y-auto",N=B.length===0?t.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-12 px-4 text-center",children:t.jsx("p",{className:"text-xs text-muted-foreground",children:a?"No tasks found":"No tasks yet"})}):Q.map((n,u)=>{const T=pe[n];if(!T)return null;const F=T.icon,G=I[n]??[],M=!p[n];return t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("button",{type:"button",onClick:()=>V(n),className:v("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",u!==0&&"border-t border-border/50"),children:[t.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:t.jsx(me,{size:16,className:v("text-muted-foreground transition-transform duration-200",M&&"rotate-90")})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[t.jsx(F,{size:16,className:T.iconClassName}),t.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:T.label}),t.jsx("span",{className:"text-xs text-muted-foreground/60",children:G.length})]})]}),M&&G.map(m=>{const Y=m.id===o,R=k===m.id;return t.jsxs("div",{className:v("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",Y&&"bg-accent/50"),onClick:()=>!R&&Z(m),children:[t.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[t.jsx(F,{size:16,className:v("shrink-0",T.iconClassName)}),R?t.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:Ne,children:[t.jsx("input",{autoFocus:!0,value:g,onChange:w=>U(w.target.value),onBlur:()=>C(m.id),onKeyDown:w=>X(w,m.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),t.jsx("button",{type:"button",onMouseDown:je,onClick:()=>C(m.id),className:"p-1 hover:bg-accent rounded shrink-0",children:t.jsx(de,{size:12,className:"text-muted-foreground"})})]}):t.jsx(be,{text:m.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!R&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[t.jsx("button",{type:"button",onClick:w=>J(m,w),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:t.jsx(fe,{size:13,className:"text-muted-foreground"})}),m.created_by&&t.jsx(re,{id:m.created_by,size:"3xs",avatarOnly:!0})]}),t.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:t.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:m.updated_at?ne(new Date(m.updated_at)):"—"})})]})]},m.id)})]},n)}),e[1]=o,e[2]=p,e[3]=k,e[4]=g,e[5]=r,e[6]=l,e[7]=a,e[8]=i,e[9]=d,e[10]=j,e[11]=N,e[12]=h}else j=e[10],N=e[11],h=e[12];let y;e[26]!==j||e[27]!==N?(y=t.jsx("div",{className:j,children:N}),e[26]=j,e[27]=N,e[28]=y):y=e[28];let E;return e[29]!==h||e[30]!==y?(E=t.jsxs(t.Fragment,{children:[h,y]}),e[29]=h,e[30]=y,e[31]=E):E=e[31],E}function je(s){return s.preventDefault()}function Ne(s){return s.stopPropagation()}function ye(s){return!s.hidden}function ve(){const s=S.c(10),{createTask:e,isChatEmpty:r}=W();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),s[0]=o):o=s[0];let i;s[1]!==e?(i=()=>e(),s[1]=e,s[2]=i):i=s[2];let l;s[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(ue,{size:16,className:"text-muted-foreground"}),s[3]=l):l=s[3];let d;s[4]!==r||s[5]!==i?(d=t.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[o,t.jsx("button",{type:"button",onClick:i,disabled:r,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:l})]}),s[4]=r,s[5]=i,s[6]=d):d=s[6];let a;s[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(ge,{}),s[7]=a):a=s[7];let c;return s[8]!==d?(c=t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[d,a]}),s[8]=d,s[9]=c):c=s[9],c}function ke(){const s=S.c(2);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s[0]=e):e=s[0];let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(K,{size:20,className:"animate-spin text-muted-foreground"})})]}),s[1]=r):r=s[1],r}function Ae(s){const e=S.c(5),{className:r}=s;let o;e[0]!==r?(o=v("h-full",r),e[0]=r,e[1]=o):o=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ee,{fallback:Ce,children:t.jsx(x.Suspense,{fallback:t.jsx(ke,{}),children:t.jsx(ve,{})})}),e[2]=i):i=e[2];let l;return e[3]!==o?(l=t.jsx("div",{className:o,children:i}),e[3]=o,e[4]=l):l=e[4],l}function Ce(){return t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[t.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:t.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{ge as T,Ae as a};
@@ -1 +1 @@
1
- import{c as o,v as n,j as l}from"./index-xQ2t379n.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-Cb17fVaO.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=n("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=l.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
@@ -1,4 +1,4 @@
1
- import{r as N,c as At,b as gn,u as yn,j as s,B as I,O as Dt,t as ne,v as U,b7 as kt}from"./index-xQ2t379n.js";import{B as bn}from"./badge-D8RzvYJ4.js";import{a as lt,b as ct,P as ut}from"./popover-BGz1EQnh.js";import{T as Ge,a as Qe,b as Xe}from"./tooltip-B6yKYOIf.js";import{i as Je}from"./Check-Dy5Jwsdl.js";import{a as $e}from"./Copy01-DTrKcR-Q.js";import{n as Mt}from"./Download01-C8dWfeAI.js";import{i as xn}from"./FilterLines-BfBD1RVS.js";import{i as wn}from"./Key01-5M9GOooO.js";import{i as Nn}from"./Play-CGCsuB7w.js";import{M as _t,n as Dn}from"./monaco-editor-Bqq988E3.js";import{S as kn}from"./scroll-area-BlV5UvCB.js";import{t as Mn}from"./ChevronDown-B8UJn4iH.js";import{s as _n}from"./Clock-CHKtyQRJ.js";import{n as jn}from"./ChevronLeft-LqDMtl3T.js";import{i as Cn}from"./ChevronRight-UHmTzu6U.js";import{I as jt}from"./input-CquIDQAg.js";const Ht=({size:t=24,color:e="currentColor",...n})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},N.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));Ht.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Sn(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function Ao(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ho(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
1
+ import{r as N,c as At,b as gn,u as yn,j as s,B as I,O as Dt,t as ne,v as U,b9 as kt}from"./index-Cb17fVaO.js";import{B as bn}from"./badge-CU_zbIXX.js";import{a as lt,b as ct,P as ut}from"./popover-CH5Uw6Js.js";import{T as Ge,a as Qe,b as Xe}from"./tooltip-Bb66VFhj.js";import{i as Je}from"./Check-e1LxjlnS.js";import{a as $e}from"./Copy01-BCJxa3pS.js";import{n as Mt}from"./Download01-AELYrpVY.js";import{i as xn}from"./FilterLines-BWEMXQRq.js";import{i as wn}from"./Key01-DY7k7KSd.js";import{i as Nn}from"./Play-DYSuo3bc.js";import{M as _t,n as Dn}from"./monaco-editor-CYwLLnlJ.js";import{S as kn}from"./scroll-area-nyuwfJ38.js";import{t as Mn}from"./ChevronDown-BjWhsewG.js";import{s as _n}from"./Clock-BDkBqrq2.js";import{n as jn}from"./ChevronLeft-bfDO3afT.js";import{i as Cn}from"./ChevronRight-DZwFOSrA.js";import{I as jt}from"./input-Cch0IC2D.js";const Ht=({size:t=24,color:e="currentColor",...n})=>N.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},N.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));Ht.displayName="Type01";const Ct={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Sn(t){return t.filter(e=>e.key.trim()).map(e=>{const n=encodeURIComponent(e.key.trim()),r=encodeURIComponent(e.value||"");return`${n}:${e.operator}:${r}`}).join(",")}function Ao(t){return t?t.split(",").map(e=>{const[n,r,...a]=e.split(":");return{key:decodeURIComponent(n||""),operator:r||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function Ho(t){return t.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
2
2
  `)}function qo(t){return t.trim()?t.split(`
3
3
  `).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[n,...r]=e.split("=");return{key:n||"",operator:"eq",value:r.join("=")}}if(e.includes("~")){const[n,...r]=e.split("~");return{key:n||"",operator:"contains",value:r.join("~")}}if(e.includes("@")){const[n,...r]=e.split("@");return{key:n||"",operator:"in",value:r.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function zo(t){const e={},n={},r=[],a={};for(const o of t)if(o.key.trim())switch(o.operator){case"eq":o.value&&(e[o.key]=o.value);break;case"contains":o.value&&(n[o.key]=`%${o.value}%`);break;case"exists":r.push(o.key);break;case"in":o.value&&(a[o.key]=o.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(n).length>0?n:void 0,propertyKeys:r.length>0?r:void 0,propertyInValues:Object.keys(a).length>0?a:void 0}}function St(t){if(!t)return{content:"null",isTruncated:!1,originalSize:4};const e=JSON.stringify(t,null,2),n=e.length;return n<=Ct.maxJsonRenderSize?{content:e,isTruncated:!1,originalSize:n}:{content:e.slice(0,Ct.maxJsonRenderSize)+`
4
4
 
@@ -1 +1 @@
1
- import{r as x,G as h,j as c,H as m,M as k,bF as p,J as M,Q as T,U as S,D as A,R as F,z as D,c as P,v as C}from"./index-xQ2t379n.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,R]=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(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]=w(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=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(F,{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=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=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=D("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,I as h,j as c,J as m,T as k,bF as p,Q as M,U as T,X as S,H as A,R as F,G as $,c as P,v as C}from"./index-Cb17fVaO.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",[I]=S(v,[T]),w=T(),G=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});G.displayName=v;var[z,R]=I(v),D=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(z,{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(z,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(y,{...a,ref:e})})});G.displayName=v;var[H,O]=I(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(F,{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=$("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 X(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 q(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{X as T,q as a};
@@ -0,0 +1 @@
1
+ import{c as z,b as X,r as H,j as t,a1 as Y,a2 as Z,O as ee}from"./index-Cb17fVaO.js";import{C as te}from"./collection-display-button-Cep9T1dy.js";import{E as B,C as se}from"./collection-search-D8Kd7sE4.js";import{C as oe}from"./collection-table-wrapper-j8x7CZEu.js";import{I as ne}from"./integration-icon-BtE6qqXO.js";import{B as K}from"./badge-CU_zbIXX.js";import{C as ae}from"./card-ekU23Imm.js";import{T as G,a as P,b as W,c as re}from"./tooltip-Bb66VFhj.js";import{g as ie}from"./types-CGMnrrVy.js";import{s as le}from"./Eye-B65VnOsY.js";import{s as ce}from"./Globe02-C7u-Ldxq.js";import{s as me}from"./LayersTwo01-CuCFLmbR.js";import{V as de}from"./layout-JuxaRCBK.js";const fe=[{key:"readOnlyHint",label:"Read-only",Icon:le,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:Y,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:Z,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:ce,variant:"outline"}];function pe(s){const e=z.c(18),{annotations:r,_meta:d}=s;let u;e[0]!==d?(u=ie(d),e[0]=d,e[1]=u):u=e[1];const l=!!u;let h,x,c,f,m;if(e[2]!==r||e[3]!==l){m=Symbol.for("react.early_return_sentinel");e:{const n=r?fe.filter(I=>r[I.key]===!0):[];if(n.length===0&&!l){m=null;break e}h=re,x="flex gap-1 flex-nowrap",e[9]!==l?(c=l&&t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:t.jsx(me,{})})}),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]=m}else h=e[4],x=e[5],c=e[6],f=e[7],m=e[8];if(m!==Symbol.for("react.early_return_sentinel"))return m;let p;e[11]!==x||e[12]!==c||e[13]!==f?(p=t.jsxs("div",{className:x,children:[c,f]}),e[11]=x,e[12]=c,e[13]=f,e[14]=p):p=e[14];let g;return e[15]!==h||e[16]!==p?(g=t.jsx(h,{children:p}),e[15]=h,e[16]=p,e[17]=g):g=e[17],g}function ue(s){const{label:e,Icon:r,variant:d}=s;return t.jsxs(G,{children:[t.jsx(P,{asChild:!0,children:t.jsx(K,{asChild:!0,variant:d,className:"size-6 p-1",children:t.jsx(r,{})})}),t.jsx(W,{children:e})]},e)}function De(s){const e=z.c(40),{tools:r,connectionId:d,org:u,onToolClick:l,showToolbar:h,emptyMessage:x,isLoading:c}=s,f=h===void 0?!0:h,m=x===void 0?"This connection doesn't have any tools yet.":x,p=c===void 0?!1:c,g=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]!==d||e[4]!==g||e[5]!==l||e[6]!==u?(_=o=>{l?l(o):d&&u&&g({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:u,project:ee,connectionId:d,collectionName:"tools",itemId:encodeURIComponent(o.name)}})},e[3]=d,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(de,{children:t.jsx(te,{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(se,{value:n,onChange:I,placeholder:"Search tools...",onKeyDown:R}),e[22]=n,e[23]=v):v=e[23];let b;e[24]!==m||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":m}):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(oe,{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":m})}),e[24]=m,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{De as T,pe as a};