decocms 2.175.2 → 2.175.4

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 (257) hide show
  1. package/dist/client/assets/{AlertCircle-CnfwZdxb.js → AlertCircle-BCDqbXXS.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-zj1VrWVO.js → AlignLeft-BtdVdG2m.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-BnnQhLmg.js → ArrowDown-qfJtx-dv.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-C3_bzjZf.js → ArrowLeft-Del7wDOT.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BuKX1RSZ.js → ArrowUp-ETVB6cdy.js} +1 -1
  6. package/dist/client/assets/{Check-7kB05ju_.js → Check-DsclgHfU.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DrGaevdP.js → CheckCircle-CQGSbCTG.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-CVJEgdwq.js → CheckDone01-v1xPuIIg.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-DmV5dzDn.js → CheckVerified02-DhH8-7Z6.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-DHeagNGb.js → ChevronDown-CIjXFJfV.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-W2gkpjgL.js → ChevronLeft-tQ1_QiuA.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-Blv21S_7.js → ChevronRight-DmvbXNWu.js} +1 -1
  13. package/dist/client/assets/{ChevronUp-J7upZD3-.js → ChevronUp-C8129itH.js} +1 -1
  14. package/dist/client/assets/{Clock-9Mm0U0Dg.js → Clock-CQzMyEYR.js} +1 -1
  15. package/dist/client/assets/{Code01-DDbKsccR.js → Code01-Cq3-F_YX.js} +1 -1
  16. package/dist/client/assets/{Coins01-DTz6uYyF.js → Coins01-D4l1LRdX.js} +1 -1
  17. package/dist/client/assets/{Container-Ci_1Xm4L.js → Container-C_pBhYQm.js} +1 -1
  18. package/dist/client/assets/{Copy01-BexEalI-.js → Copy01-CFr3FQ5x.js} +1 -1
  19. package/dist/client/assets/{Dataflow03-CKfLDuKw.js → Dataflow03-OPkwvxOZ.js} +1 -1
  20. package/dist/client/assets/{DotsHorizontal-3xIvFzgk.js → DotsHorizontal-7V70FVQq.js} +1 -1
  21. package/dist/client/assets/{DotsVertical-7N_NB6wt.js → DotsVertical-ZHHEIIAw.js} +1 -1
  22. package/dist/client/assets/{Download01-D-oC1d8d.js → Download01-CYaxYM2W.js} +1 -1
  23. package/dist/client/assets/{Edit01-gYPHsLoC.js → Edit01-y_ign3HR.js} +1 -1
  24. package/dist/client/assets/{Edit05-BA2Lz_6R.js → Edit05-DW3L1ev9.js} +1 -1
  25. package/dist/client/assets/{Eye-Cn6YseXl.js → Eye-Dq2YmoWs.js} +1 -1
  26. package/dist/client/assets/{EyeOff-L-SLicw9.js → EyeOff-CpKFKNjY.js} +1 -1
  27. package/dist/client/assets/{File02-Dx1Iz50W.js → File02-BsdZFaU2.js} +1 -1
  28. package/dist/client/assets/{File06-Dqc-K1-5.js → File06-BpsmzbhK.js} +1 -1
  29. package/dist/client/assets/{FilterLines-DCrzLWfV.js → FilterLines-BFSA7yHa.js} +1 -1
  30. package/dist/client/assets/{Globe01-DW2rHI0i.js → Globe01-C5-PYqjH.js} +1 -1
  31. package/dist/client/assets/{Globe02-CyGtzZ8k.js → Globe02-BLXYb9br.js} +1 -1
  32. package/dist/client/assets/{Grid01-Dqz--q3o.js → Grid01-BSBJv9eJ.js} +1 -1
  33. package/dist/client/assets/{Hash02-pqCZ_ykD.js → Hash02-zbrPaDCt.js} +1 -1
  34. package/dist/client/assets/{Home02-D2W6xjpZ.js → Home02-DtwXSs3k.js} +1 -1
  35. package/dist/client/assets/{Image01-U7ZIAIPc.js → Image01-NzJP6iMs.js} +1 -1
  36. package/dist/client/assets/{Inbox01-DpRIO4ZY.js → Inbox01-BqBxWaFX.js} +1 -1
  37. package/dist/client/assets/{InfoCircle-CvSmMU6H.js → InfoCircle-8bpl-KKl.js} +1 -1
  38. package/dist/client/assets/{Key01-Dq5b7fdA.js → Key01-yVAqC10q.js} +1 -1
  39. package/dist/client/assets/{LayersTwo01-Li6JqY2K.js → LayersTwo01-T6ICoMvs.js} +1 -1
  40. package/dist/client/assets/{LayoutLeft-BAk65lFq.js → LayoutLeft-B8jrj3eE.js} +1 -1
  41. package/dist/client/assets/{Link01-NJWLnzFs.js → Link01-2qS2xckB.js} +1 -1
  42. package/dist/client/assets/{LinkExternal01-B8e_Oa3I.js → LinkExternal01-CBG098kX.js} +1 -1
  43. package/dist/client/assets/{List-Cc_Ri6eQ.js → List-LffcVOLG.js} +1 -1
  44. package/dist/client/assets/{Loading01-Cbk1oNZ2.js → Loading01-CSUxQOK0.js} +1 -1
  45. package/dist/client/assets/{Lock01-dP10fLup.js → Lock01-CjY0LR2m.js} +1 -1
  46. package/dist/client/assets/{Play-DqxAqUbl.js → Play-D223AznW.js} +1 -1
  47. package/dist/client/assets/{Plus-CqWob4tu.js → Plus-CGe5wBcS.js} +1 -1
  48. package/dist/client/assets/{RefreshCcw01-B6R5Js1R.js → RefreshCcw01-CxVqRnRx.js} +1 -1
  49. package/dist/client/assets/{Save01-BfieBu6m.js → Save01-CYi2R4Ht.js} +1 -1
  50. package/dist/client/assets/{SearchMd-DJI6OMcD.js → SearchMd-CrngVZhh.js} +1 -1
  51. package/dist/client/assets/{Settings01-BWkL3Bf9.js → Settings01-Dujhf9RE.js} +1 -1
  52. package/dist/client/assets/{Shield01-DMT1motk.js → Shield01-BqSRHTNN.js} +1 -1
  53. package/dist/client/assets/{Terminal-zNrinv6B.js → Terminal-ieofo8yI.js} +1 -1
  54. package/dist/client/assets/{Tool01-CUx5BAY-.js → Tool01-DImlld_g.js} +1 -1
  55. package/dist/client/assets/{Trash01-C0891dQq.js → Trash01-DPMbpRnj.js} +1 -1
  56. package/dist/client/assets/{Upload01-ngHWsp64.js → Upload01-DgCnYplh.js} +1 -1
  57. package/dist/client/assets/{Users03-FsZwQwZq.js → Users03-C-Jr0LW_.js} +1 -1
  58. package/dist/client/assets/{X-CeRZ6ROs.js → X-CuPyb-Ex.js} +1 -1
  59. package/dist/client/assets/{XAxis-B4Pxztvn.js → XAxis-BmVXiq6v.js} +1 -1
  60. package/dist/client/assets/{XCircle-X3Ds2fko.js → XCircle-DIW-x13c.js} +1 -1
  61. package/dist/client/assets/{XClose-BieEiV6P.js → XClose-ndXrBTVc.js} +1 -1
  62. package/dist/client/assets/{Zap-B-qa654H.js → Zap-Ctmk6j5l.js} +1 -1
  63. package/dist/client/assets/{agent-connections-preview-BXeLz6mJ.js → agent-connections-preview-Vgh7fOJI.js} +1 -1
  64. package/dist/client/assets/{agent-detail-2cFCKx9t.js → agent-detail-C36fDm_v.js} +1 -1
  65. package/dist/client/assets/{agents-DS-16MLo.js → agents-DYiHQBsI.js} +1 -1
  66. package/dist/client/assets/{ai-providers-logos-Bb5LHAPU.js → ai-providers-logos-D3xG95Si.js} +1 -1
  67. package/dist/client/assets/{alert-dialog-DgTufZ_p.js → alert-dialog-BoQV9ycw.js} +1 -1
  68. package/dist/client/assets/{auth-catchall-zO2o6cw1.js → auth-catchall-D434eF_Q.js} +1 -1
  69. package/dist/client/assets/{automation-detail-CyiDphKi.js → automation-detail-3RIJVSzC.js} +1 -1
  70. package/dist/client/assets/{automations-CBvKrAy1.js → automations-CsNPJGVV.js} +1 -1
  71. package/dist/client/assets/{avatar-w6QMWHVj.js → avatar-CkCU2Fe6.js} +1 -1
  72. package/dist/client/assets/{badge-B-_hRtCy.js → badge-7TJrkuyd.js} +1 -1
  73. package/dist/client/assets/{binder-BEJ4wRzw.js → binder-qGS3hkzV.js} +1 -1
  74. package/dist/client/assets/{breadcrumb-Dk9kRV2t.js → breadcrumb-7YipRD-p.js} +1 -1
  75. package/dist/client/assets/{card-BSGld6G2.js → card-D9sP6AvS.js} +1 -1
  76. package/dist/client/assets/{chart-CEfru1MQ.js → chart-DtzgRcs7.js} +1 -1
  77. package/dist/client/assets/{checkbox-COsQJsO9.js → checkbox-BRXa8FNh.js} +1 -1
  78. package/dist/client/assets/{collapsible-BCGKc4Wz.js → collapsible-Dl714J5i.js} +1 -1
  79. package/dist/client/assets/{collection-detail-BimbOEiL.js → collection-detail-BU5tC6bR.js} +1 -1
  80. package/dist/client/assets/{collection-display-button-CuyLh-NC.js → collection-display-button-CPJ0Uvih.js} +1 -1
  81. package/dist/client/assets/{collection-search-aJlY7LHs.js → collection-search-BeqmTWUU.js} +1 -1
  82. package/dist/client/assets/{collection-table-wrapper-CcbJTCba.js → collection-table-wrapper-DU2xJaVV.js} +1 -1
  83. package/dist/client/assets/{collection-tabs-B2Xeppc1.js → collection-tabs-CBTc1SAx.js} +1 -1
  84. package/dist/client/assets/{command-CyHipwcz.js → command-DVQ8NWzo.js} +1 -1
  85. package/dist/client/assets/{connect-3nC8bK4k.js → connect-BVkZJKoj.js} +1 -1
  86. package/dist/client/assets/{connection-card-iA_b7WBI.js → connection-card-D3SNWej3.js} +1 -1
  87. package/dist/client/assets/connection-detail-C4SImbSn.js +1 -0
  88. package/dist/client/assets/{connection-status-BddpcBJZ.js → connection-status-B9duDm-X.js} +1 -1
  89. package/dist/client/assets/connections-iR6Y0Kp3.js +1 -0
  90. package/dist/client/assets/{constants-CDL9XClm.js → constants-4hZfe-FX.js} +1 -1
  91. package/dist/client/assets/constants-CXKG1Tp4.js +1 -0
  92. package/dist/client/assets/{context-DDV_uL9a.js → context-D-2OkzTq.js} +2 -2
  93. package/dist/client/assets/{create-organization-dialog-CG01zre5.js → create-organization-dialog-C8OjRm9O.js} +1 -1
  94. package/dist/client/assets/{create-project-dialog-5e-piQzY.js → create-project-dialog-C6OTQ8lU.js} +1 -1
  95. package/dist/client/assets/{danger-_ZcnVgTL.js → danger-BESOuFS9.js} +1 -1
  96. package/dist/client/assets/{danger-zone-e3foS_su.js → danger-zone-Dr5J9bxx.js} +1 -1
  97. package/dist/client/assets/{dependencies-DUviAtSp.js → dependencies-CTIlIG34.js} +1 -1
  98. package/dist/client/assets/{dialog-DxTRqiug.js → dialog-1RTimACw.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-CdjuOUR6.js → dropdown-menu-ur1Ui41o.js} +1 -1
  100. package/dist/client/assets/{dynamic-plugin-layout-DszdejBu.js → dynamic-plugin-layout-De3JUiCe.js} +1 -1
  101. package/dist/client/assets/{editable-task-title-44X_8A19.js → editable-task-title-DPKxqM1E.js} +1 -1
  102. package/dist/client/assets/{empty-state-Bj_isc1T.js → empty-state-BLWznTIL.js} +1 -1
  103. package/dist/client/assets/{empty-state-v8jdj56V.js → empty-state-COoAU6KF.js} +1 -1
  104. package/dist/client/assets/{env-vars-editor-Bs6jziXp.js → env-vars-editor-UXVlMJFO.js} +1 -1
  105. package/dist/client/assets/{extract-connection-data-Cyjq-Q5I.js → extract-connection-data-6RfUcjze.js} +1 -1
  106. package/dist/client/assets/{file-browser-4NMlO2k_.js → file-browser-BHUGJprt.js} +2 -2
  107. package/dist/client/assets/{form-BV3tSlED.js → form-RbK75Dit.js} +1 -1
  108. package/dist/client/assets/{general-LSfgt8-y.js → general-DQk46kRh.js} +1 -1
  109. package/dist/client/assets/{grid-view-BD9vYk3H.js → grid-view-RxDrBxoP.js} +1 -1
  110. package/dist/client/assets/{home-Ck605SqF.js → home-CnM3BkZT.js} +1 -1
  111. package/dist/client/assets/{index-DlhaGZnK.js → index-3d9-dYhc.js} +1 -1
  112. package/dist/client/assets/{index-uQDoUdMq.js → index-B4bICiSz.js} +1 -1
  113. package/dist/client/assets/{index-BE93ZIdg.js → index-B5Wny992.js} +1 -1
  114. package/dist/client/assets/{index-Dg_kVhT7.js → index-CElzn9PI.js} +1 -1
  115. package/dist/client/assets/{index-BXUNq6d7.js → index-DJtnEPc7.js} +3 -3
  116. package/dist/client/assets/{index-B70G5L15.js → index-DTrW0n62.js} +1 -1
  117. package/dist/client/assets/{index-zJEaoyYS.js → index-DqU0CNB5.js} +1 -1
  118. package/dist/client/assets/{index-CZ7yh8sQ.js → index-FmcHS0n7.js} +1 -1
  119. package/dist/client/assets/{index-L6huQtcJ.js → index-biN0aic_.js} +1 -1
  120. package/dist/client/assets/{index-rWegviRE.js → index-qxqsMecG.js} +1 -1
  121. package/dist/client/assets/{infiniteQueryObserver-DXFe0xIV.js → infiniteQueryObserver-DPmZK5SE.js} +1 -1
  122. package/dist/client/assets/{input-BFH8rk50.js → input-j_5WJy1c.js} +1 -1
  123. package/dist/client/assets/{integration-icon-D6SJHU0f.js → integration-icon-DrTDJ354.js} +1 -1
  124. package/dist/client/assets/{label-DE7vX487.js → label-Dmque-mN.js} +1 -1
  125. package/dist/client/assets/{layout-B_GGomJW.js → layout-BgLVGdMB.js} +1 -1
  126. package/dist/client/assets/{layout-B2GnF_Vp.js → layout-Cyh0KCTx.js} +1 -1
  127. package/dist/client/assets/{login-CgzRmuxY.js → login-CEJuPXz8.js} +1 -1
  128. package/dist/client/assets/{logo-upload-Bfzj_LQV.js → logo-upload-D_X-eua0.js} +1 -1
  129. package/dist/client/assets/{markdown-Da-6gcG9.js → markdown-BjeAfn6Q.js} +1 -1
  130. package/dist/client/assets/{mcp-app-renderer-CNc9yMN5.js → mcp-app-renderer-BjIiENx_.js} +1 -1
  131. package/dist/client/assets/{mcp-server-card-s9NGsKpt.js → mcp-server-card-hwjTnxKa.js} +1 -1
  132. package/dist/client/assets/{mcp-server-detail-fMXGyX4W.js → mcp-server-detail-fOqjCDsy.js} +2 -2
  133. package/dist/client/assets/{members-BvBWfv9e.js → members-BUIvlCPj.js} +1 -1
  134. package/dist/client/assets/{monaco-editor-VspAvYbk.js → monaco-editor-BI48gu97.js} +1 -1
  135. package/dist/client/assets/{monitoring-B1jfqgQN.js → monitoring-cvfFeG45.js} +1 -1
  136. package/dist/client/assets/{monitoring-dashboard-edit-Bdujw4Ym.js → monitoring-dashboard-edit-BOzMfOYa.js} +1 -1
  137. package/dist/client/assets/{monitoring-dashboard-view-CSfkxnkl.js → monitoring-dashboard-view-Da1aDoKV.js} +1 -1
  138. package/dist/client/assets/{monitoring-stats-row-Ds_uiyYJ.js → monitoring-stats-row-Bk2P-uOc.js} +1 -1
  139. package/dist/client/assets/{oauth-callback-BNPNdlSW.js → oauth-callback-DrDtRQei.js} +1 -1
  140. package/dist/client/assets/{oauth-callback-ai-provider-CODmoIp9.js → oauth-callback-ai-provider-AqyT7OAy.js} +1 -1
  141. package/dist/client/assets/{org-ai-providers-CQKU4ds_.js → org-ai-providers-CYV2m0oE.js} +1 -1
  142. package/dist/client/assets/{page-BfphKBfj.js → page-CBVSkVrr.js} +1 -1
  143. package/dist/client/assets/{page-Bbbh0c0Z.js → page-CjM0cJ2H.js} +1 -1
  144. package/dist/client/assets/{plugin-empty-state-Cx_CuKe3.js → plugin-empty-state-CzxAWw66.js} +1 -1
  145. package/dist/client/assets/{plugin-empty-state-BWhKyfJ8.js → plugin-empty-state-DGepiILI.js} +1 -1
  146. package/dist/client/assets/{plugin-header-ncr8MkbN.js → plugin-header-BHxHz9n0.js} +1 -1
  147. package/dist/client/assets/{plugin-header-ET8DV5kQ.js → plugin-header-mOLE86wJ.js} +1 -1
  148. package/dist/client/assets/plugins-DoHvFK9w.js +1 -0
  149. package/dist/client/assets/{popover-BcyJids_.js → popover-B_9jK9T6.js} +1 -1
  150. package/dist/client/assets/{project-app-view-BdLdOYqG.js → project-app-view-BOeJqLvY.js} +1 -1
  151. package/dist/client/assets/{project-layout-DReK69oR.js → project-layout-BoHZ9uLC.js} +1 -1
  152. package/dist/client/assets/{project-plugins-CXWguN_r.js → project-plugins-BOxyaluG.js} +1 -1
  153. package/dist/client/assets/{projects-list-CZANuMq5.js → projects-list-DP4hhCRm.js} +1 -1
  154. package/dist/client/assets/{registry-layout-CqXQ571U.js → registry-layout-D1uZlucV.js} +1 -1
  155. package/dist/client/assets/{registry-utils-CaVl1vKg.js → registry-utils-9Z7xkXEW.js} +1 -1
  156. package/dist/client/assets/{reports-layout-CQyNOFqA.js → reports-layout-_2OT-yHj.js} +1 -1
  157. package/dist/client/assets/{reset-password-Bt_v8_59.js → reset-password-DbKC8pv7.js} +1 -1
  158. package/dist/client/assets/{resizable-B4X_WbHf.js → resizable-D2UQg53E.js} +1 -1
  159. package/dist/client/assets/{save-actions-Py9YKTe0.js → save-actions-DRE_2Nh6.js} +1 -1
  160. package/dist/client/assets/{scroll-area-R7PT492V.js → scroll-area-DXeQheGE.js} +1 -1
  161. package/dist/client/assets/{select-B-f7jgVG.js → select-roICowiz.js} +1 -1
  162. package/dist/client/assets/{select-virtual-mcp-YanYQUBn.js → select-virtual-mcp-CFEExN2T.js} +1 -1
  163. package/dist/client/assets/{sheet-7nFLkS7G.js → sheet-D0UV-Fr7.js} +1 -1
  164. package/dist/client/assets/{shell-layout-Dp8xiQMR.js → shell-layout-BzGvbbd1.js} +2 -2
  165. package/dist/client/assets/{sidebar-settings-w0p27D0n.js → sidebar-settings-Bqi6Lp6h.js} +1 -1
  166. package/dist/client/assets/{skeleton-CK2-6UkT.js → skeleton-Cy7jej-7.js} +1 -1
  167. package/dist/client/assets/{spinner-B1-EIDBS.js → spinner-qX5-Mz-A.js} +1 -1
  168. package/dist/client/assets/{store-invite-DVPM6U-x.js → store-invite-CMn4A-jT.js} +1 -1
  169. package/dist/client/assets/{switch-4UL4iV3X.js → switch-7_yekA3p.js} +1 -1
  170. package/dist/client/assets/{table-Bu98B5a-.js → table-Cd-wCYBh.js} +1 -1
  171. package/dist/client/assets/{tabs-Cif80TZ4.js → tabs-T6eq77EC.js} +1 -1
  172. package/dist/client/assets/{task-status-BWKjAgiX.js → task-status-DSYWex9b.js} +1 -1
  173. package/dist/client/assets/tasks-CaWtJ_wZ.js +1 -0
  174. package/dist/client/assets/{tasks-panel-D6Bb-wiS.js → tasks-panel-Cpm18hI4.js} +1 -1
  175. package/dist/client/assets/{textarea-DPLd5P1K.js → textarea-BJkI1dfy.js} +1 -1
  176. package/dist/client/assets/{time-range-picker-FJd_w9AH.js → time-range-picker-DKvAeQX-.js} +1 -1
  177. package/dist/client/assets/{toggle-group-B4QQy8X1.js → toggle-group-O3ssRQZp.js} +1 -1
  178. package/dist/client/assets/{tools-list-BgmW-tI4.js → tools-list-DfrxfnU8.js} +1 -1
  179. package/dist/client/assets/{tooltip-BGPUMzDS.js → tooltip-Bms1Xn3i.js} +1 -1
  180. package/dist/client/assets/{topbar-portal-CLOTo-7w.js → topbar-portal-C9r1D7L2.js} +1 -1
  181. package/dist/client/assets/{types-DZ5M-eMJ.js → types-BTzo08LL.js} +1 -1
  182. package/dist/client/assets/{use-automations-D7j59hRT.js → use-automations-DQ0Wvn7B.js} +1 -1
  183. package/dist/client/assets/{use-binding-CZ8osTa1.js → use-binding-CidrckI6.js} +1 -1
  184. package/dist/client/assets/{use-collections-yY78nnLx.js → use-collections-uyyRdHl8.js} +1 -1
  185. package/dist/client/assets/{use-connection-lXrlfojY.js → use-connection-2T7CNTjX.js} +1 -1
  186. package/dist/client/assets/{use-copy-DZJI58oZ.js → use-copy-CnWGIrpr.js} +1 -1
  187. package/dist/client/assets/{use-create-virtual-mcp-DK_WDS9Y.js → use-create-virtual-mcp-BqiAP0hG.js} +1 -1
  188. package/dist/client/assets/{use-infinite-scroll-C-TK62Eo.js → use-infinite-scroll-BZWlWT4v.js} +1 -1
  189. package/dist/client/assets/{use-install-from-registry-C24f0cqa.js → use-install-from-registry-BGTf0OMo.js} +1 -1
  190. package/dist/client/assets/{use-list-state-D6LU1koz.js → use-list-state-Dn3PYXZc.js} +1 -1
  191. package/dist/client/assets/{use-mcp-prompts-DT9l3i02.js → use-mcp-prompts-Bvq8o_wk.js} +1 -1
  192. package/dist/client/assets/{use-mcp-resources-DhBJVSsg.js → use-mcp-resources-INpGwYsS.js} +1 -1
  193. package/dist/client/assets/{use-mcp-tools-CwVNqTmj.js → use-mcp-tools-CoXbW9dQ.js} +1 -1
  194. package/dist/client/assets/{use-members-fpZqw1dy.js → use-members-CKrsZLkR.js} +1 -1
  195. package/dist/client/assets/{use-mobile-B0lEbMk3.js → use-mobile-BgetcADk.js} +1 -1
  196. package/dist/client/assets/{use-project-BnRSDoVD.js → use-project-CCY4E3rU.js} +1 -1
  197. package/dist/client/assets/{use-store-discovery-C9fJhQ4Y.js → use-store-discovery-B92mIOto.js} +1 -1
  198. package/dist/client/assets/{use-view-mode-0w9n1sJ-.js → use-view-mode-U3Y0emnO.js} +1 -1
  199. package/dist/client/assets/{use-virtual-mcp-CyoGC0aH.js → use-virtual-mcp-B8_wDvx9.js} +1 -1
  200. package/dist/client/assets/useInfiniteQuery-Dbe2YK49.js +1 -0
  201. package/dist/client/assets/{useMutation-CkdHuTyE.js → useMutation-D77LVetF.js} +1 -1
  202. package/dist/client/assets/useQuery-DLey6Pvf.js +1 -0
  203. package/dist/client/assets/useSuspenseInfiniteQuery-lgWDbCQ9.js +1 -0
  204. package/dist/client/assets/{user-sbKkVV9F.js → user-D3_ltBdu.js} +1 -1
  205. package/dist/client/assets/{workflow-CpP3zoVI.js → workflow-df54tmZt.js} +1 -1
  206. package/dist/client/index.html +1 -1
  207. package/dist/server/cli.js +252 -252
  208. package/dist/server/migrate.js +1 -1
  209. package/dist/server/node_modules/pg-int8/LICENSE +13 -0
  210. package/dist/server/node_modules/pg-int8/README.md +16 -0
  211. package/dist/server/node_modules/pg-int8/index.js +100 -0
  212. package/dist/server/node_modules/pg-int8/package.json +24 -0
  213. package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
  214. package/dist/server/node_modules/postgres-array/index.js +97 -0
  215. package/dist/server/node_modules/{pg/LICENSE → postgres-array/license} +6 -6
  216. package/dist/server/node_modules/postgres-array/package.json +35 -0
  217. package/dist/server/node_modules/postgres-array/readme.md +43 -0
  218. package/dist/server/node_modules/postgres-bytea/index.js +33 -0
  219. package/dist/server/node_modules/postgres-bytea/license +21 -0
  220. package/dist/server/node_modules/postgres-bytea/package.json +34 -0
  221. package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
  222. package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
  223. package/dist/server/node_modules/postgres-interval/index.js +125 -0
  224. package/dist/server/node_modules/postgres-interval/license +21 -0
  225. package/dist/server/node_modules/postgres-interval/package.json +36 -0
  226. package/dist/server/node_modules/postgres-interval/readme.md +48 -0
  227. package/dist/server/server.js +230 -230
  228. package/package.json +1 -1
  229. package/dist/client/assets/connection-detail-B4CoR-IH.js +0 -1
  230. package/dist/client/assets/connections-B-zXLcDP.js +0 -1
  231. package/dist/client/assets/constants-DxY-8FrK.js +0 -1
  232. package/dist/client/assets/plugins-BdyM0ZUw.js +0 -1
  233. package/dist/client/assets/tasks-tenjlvFT.js +0 -1
  234. package/dist/client/assets/useInfiniteQuery-BlrmUHYA.js +0 -1
  235. package/dist/client/assets/useQuery-Bmc4jnG2.js +0 -1
  236. package/dist/client/assets/useSuspenseInfiniteQuery-DD4jjrsx.js +0 -1
  237. package/dist/server/node_modules/pg/README.md +0 -95
  238. package/dist/server/node_modules/pg/esm/index.mjs +0 -20
  239. package/dist/server/node_modules/pg/lib/client.js +0 -743
  240. package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
  241. package/dist/server/node_modules/pg/lib/connection.js +0 -221
  242. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
  243. package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
  244. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
  245. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
  246. package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
  247. package/dist/server/node_modules/pg/lib/defaults.js +0 -91
  248. package/dist/server/node_modules/pg/lib/index.js +0 -73
  249. package/dist/server/node_modules/pg/lib/native/client.js +0 -323
  250. package/dist/server/node_modules/pg/lib/native/index.js +0 -2
  251. package/dist/server/node_modules/pg/lib/native/query.js +0 -165
  252. package/dist/server/node_modules/pg/lib/query.js +0 -252
  253. package/dist/server/node_modules/pg/lib/result.js +0 -109
  254. package/dist/server/node_modules/pg/lib/stream.js +0 -83
  255. package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
  256. package/dist/server/node_modules/pg/lib/utils.js +0 -217
  257. package/dist/server/node_modules/pg/package.json +0 -76
@@ -1,3 +1,3 @@
1
- import{r as A,c as z,j as s,E as Qe,u as ze,y as I,e as Xe,au as Je,L as Ge,ch as St,bj as _t,O as Z,as as kt,U as Ct,_ as wt,g as it,f as ye,w as ve,ci as $t,bN as zt,x as It,B as We,A as Pt,S as nt,k as At,m as Et,N as Ot,v as Tt,aw as Be,K as Dt,av as lt,P as Mt}from"./index-BXUNq6d7.js";import{C as oe,c as Rt,i as Lt,d as Ut}from"./task-status-BWKjAgiX.js";import{I as Ht}from"./integration-icon-D6SJHU0f.js";import{u as ot,P as ge,a as Ze}from"./index-rWegviRE.js";import{d as Bt,u as Ft}from"./constants-CDL9XClm.js";import{n as Ke}from"./CheckDone01-CVJEgdwq.js";import{n as Gt}from"./ChevronLeft-W2gkpjgL.js";import{i as Wt}from"./Loading01-Cbk1oNZ2.js";import{s as Le}from"./Plus-CqWob4tu.js";import{t as et}from"./Users03-FsZwQwZq.js";import{i as tt}from"./X-CeRZ6ROs.js";import{E as Kt,C as Vt}from"./editable-task-title-44X_8A19.js";import{T as qt}from"./tasks-panel-D6Bb-wiS.js";import{a as Yt}from"./ai-providers-logos-Bb5LHAPU.js";import{a as Qt}from"./context-DDV_uL9a.js";import{C as rt}from"./create-project-dialog-5e-piQzY.js";import{c as Xt,b as Jt,D as Zt,d as es}from"./dialog-DxTRqiug.js";import{n as ts}from"./Container-Ci_1Xm4L.js";import{e as ss}from"./Dataflow03-CKfLDuKw.js";import{a as is}from"./Home02-D2W6xjpZ.js";import{i as Ve}from"./LayoutLeft-BAk65lFq.js";import{s as ns}from"./RefreshCcw01-B6R5Js1R.js";import{t as Ue}from"./Settings01-BWkL3Bf9.js";import{u as ls,a as at}from"./org-ai-providers-CQKU4ds_.js";import{u as ct,a as dt}from"./use-project-BnRSDoVD.js";import{u as os}from"./use-mobile-B0lEbMk3.js";import{d as rs,b as as,S as cs,a as ds,c as ms}from"./sheet-7nFLkS7G.js";import{c as fs,b as us,a as ps,T as xs}from"./tooltip-BGPUMzDS.js";import{S as ae}from"./skeleton-CK2-6UkT.js";import{n as $e}from"./LinkExternal01-B8e_Oa3I.js";import{t as mt}from"./ChevronDown-DHeagNGb.js";import{A as Ie}from"./avatar-w6QMWHVj.js";import{c as re,f as hs,e as gs,b as ft,D as ut,a as pt,h as He,d as bs}from"./dropdown-menu-CdjuOUR6.js";import{t as js,i as vs}from"./Coins01-DTz6uYyF.js";import{i as Pe}from"./Check-7kB05ju_.js";import{C as ys}from"./create-organization-dialog-CG01zre5.js";import{a as Ns}from"./Copy01-BexEalI-.js";import{i as Ss}from"./File06-Dqc-K1-5.js";import{i as _s}from"./Globe01-DW2rHI0i.js";import{i as ks}from"./Shield01-DMT1motk.js";import{a as Cs,P as ws,b as $s}from"./popover-BcyJids_.js";import{n as st}from"./Inbox01-DpRIO4ZY.js";import{s as zs}from"./XClose-BieEiV6P.js";import{b as Is}from"./use-connection-lXrlfojY.js";import{b as Ps}from"./use-mcp-tools-CwVNqTmj.js";import{c as As,A as Es}from"./use-binding-CZ8osTa1.js";import{C as Os,b as Ts,c as Ds}from"./collapsible-BCGKc4Wz.js";import{i as Ms}from"./ChevronRight-Blv21S_7.js";import{a as Rs,R as xt,b as Ls}from"./resizable-B4X_WbHf.js";import"./spinner-B1-EIDBS.js";import"./use-mcp-prompts-DT9l3i02.js";import"./useQuery-Bmc4jnG2.js";import"./form-BV3tSlED.js";import"./label-DE7vX487.js";import"./input-BFH8rk50.js";import"./index-B70G5L15.js";import"./usage-B8rgFVXq.js";import"./ArrowUp-BuKX1RSZ.js";import"./Edit01-gYPHsLoC.js";import"./Lock01-dP10fLup.js";import"./XCircle-X3Ds2fko.js";import"./AlertCircle-CnfwZdxb.js";import"./select-B-f7jgVG.js";import"./ChevronUp-J7upZD3-.js";import"./index-L6huQtcJ.js";import"./ArrowLeft-C3_bzjZf.js";import"./use-copy-DZJI58oZ.js";import"./tabs-Cif80TZ4.js";import"./badge-B-_hRtCy.js";import"./Code01-DDbKsccR.js";import"./checkbox-COsQJsO9.js";import"./AlignLeft-zj1VrWVO.js";import"./Image01-U7ZIAIPc.js";import"./Key01-Dq5b7fdA.js";import"./SearchMd-DJI6OMcD.js";import"./Tool01-CUx5BAY-.js";import"./select-virtual-mcp-YanYQUBn.js";import"./use-virtual-mcp-CyoGC0aH.js";import"./use-collections-yY78nnLx.js";import"./useMutation-CkdHuTyE.js";import"./use-create-virtual-mcp-DK_WDS9Y.js";import"./use-mcp-resources-DhBJVSsg.js";import"./marked.esm-BaswSlok.js";import"./markdown-Da-6gcG9.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CNc9yMN5.js";import"./types-DZ5M-eMJ.js";import"./Eye-Cn6YseXl.js";import"./Globe02-CyGtzZ8k.js";import"./LayersTwo01-Li6JqY2K.js";import"./Clock-9Mm0U0Dg.js";import"./Trash01-C0891dQq.js";import"./useSuspenseInfiniteQuery-DD4jjrsx.js";import"./infiniteQueryObserver-DXFe0xIV.js";import"./CheckCircle-DrGaevdP.js";import"./collection-search-aJlY7LHs.js";import"./user-sbKkVV9F.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./decopilot-events-Brt4gAR6.js";import"./textarea-DPLd5P1K.js";import"./EyeOff-L-SLicw9.js";import"./card-BSGld6G2.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./alert-dialog-DgTufZ_p.js";import"./binder-BEJ4wRzw.js";import"./index-Dg_kVhT7.js";const ht=({size:t=24,color:e="currentColor",...i})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},A.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));ht.displayName="BarChart10";const gt=({size:t=24,color:e="currentColor",...i})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},A.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"}));gt.displayName="LogOut01";function Us(){const t=z.c(70),{org:e}=ze(),[,i]=ot(),n=Yt(),{selectedVirtualMcp:l,isChatEmpty:o,activeTaskId:r,createTask:a,switchToTask:c,tasks:d}=Qt();let f;if(t[0]!==r||t[1]!==d){let B;t[3]!==r?(B=J=>J.id===r,t[3]=r,t[4]=B):B=t[4],f=d.find(B),t[0]=r,t[1]=d,t[2]=f}else f=t[2];const u=f,[m,x]=A.useState("chat"),[h,g]=A.useTransition();let j;t[5]!==e.id?(j=Bt(e.id),t[5]=e.id,t[6]=j):j=t[6];const b=l??j;let p;t[7]!==a?(p=()=>{g(()=>{a()})},t[7]=a,t[8]=p):p=t[8];const y=p;if(n?.providers?.length===0){let B;t[9]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(ge.Header.Left,{className:"gap-2"}),t[9]=B):B=t[9];let J;t[10]!==i?(J=()=>i(!1),t[10]=i,t[11]=J):J=t[11];let se;t[12]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=se):se=t[12];let fe;t[13]!==J?(fe=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[B,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:J,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:se})})]}),t[13]=J,t[14]=fe):fe=t[14];let je;t[15]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(oe.Main,{className:"flex flex-col items-center",children:s.jsx(oe.EmptyState,{children:s.jsx(oe.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features."})})}),t[15]=je):je=t[15];let ne;return t[16]!==fe?(ne=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[fe,je]}),t[16]=fe,t[17]=ne):ne=t[17],ne}const k=m!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let v;t[18]!==k?(v=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",k),t[18]=k,t[19]=v):v=t[19];let N;t[20]!==u||t[21]!==o?(N=!o&&u?.title&&s.jsx(Kt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[20]=u,t[21]=o,t[22]=N):N=t[22];let C;t[23]!==N?(C=s.jsx(ge.Header.Left,{className:"gap-2",children:N}),t[23]=N,t[24]=C):C=t[24];let $;t[25]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[25]=$):$=t[25];let S;t[26]!==y||t[27]!==h?(S=s.jsx("button",{type:"button",onClick:y,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:$}),t[26]=y,t[27]=h,t[28]=S):S=t[28];let P;t[29]===Symbol.for("react.memo_cache_sentinel")?(P=()=>x("tasks"),t[29]=P):P=t[29];let O;t[30]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("button",{type:"button",onClick:P,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[30]=O):O=t[30];let T;t[31]!==i?(T=()=>i(!1),t[31]=i,t[32]=T):T=t[32];let L;t[33]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[33]=L):L=t[33];let M;t[34]!==T?(M=s.jsx("button",{type:"button",onClick:T,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:L}),t[34]=T,t[35]=M):M=t[35];let E;t[36]!==M||t[37]!==S?(E=s.jsxs(ge.Header.Right,{className:"gap-1",children:[S,O,M]}),t[36]=M,t[37]=S,t[38]=E):E=t[38];let R;t[39]!==E||t[40]!==C?(R=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[C,E]}),t[39]=E,t[40]=C,t[41]=R):R=t[41];let D;t[42]!==b||t[43]!==o?(D=s.jsx(oe.Main,{children:o?s.jsx(oe.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(Ht,{icon:b.icon,name:b.title,size:"lg",fallbackIcon:s.jsx(et,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:b.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:b.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[42]=b,t[43]=o,t[44]=D):D=t[44];let U;t[45]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>x("context")})}),t[45]=U):U=t[45];let F;t[46]!==R||t[47]!==D||t[48]!==v?(F=s.jsxs("div",{className:v,children:[R,D,U]}),t[46]=R,t[47]=D,t[48]=v,t[49]=F):F=t[49];const G=m==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let ie;t[50]!==G?(ie=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",G),t[50]=G,t[51]=ie):ie=t[51];let ee;t[52]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(ge.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[52]=ee):ee=t[52];let ce;t[53]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>x("chat"),t[53]=ce):ce=t[53];let de;t[54]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[ee,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ce,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Gt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[54]=de):de=t[54];let K;t[55]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Wt,{size:16,className:"animate-spin text-muted-foreground"})}),t[55]=K):K=t[55];let X;t[56]!==c?(X=s.jsx(Qe,{fallback:Hs,children:s.jsx(A.Suspense,{fallback:K,children:s.jsx(qt,{onTaskSelect:async B=>{await c(B),x("chat")}})})}),t[56]=c,t[57]=X):X=t[57];let V;t[58]!==ie||t[59]!==X?(V=s.jsxs("div",{className:ie,children:[de,X]}),t[58]=ie,t[59]=X,t[60]=V):V=t[60];const me=m==="context"?"opacity-100":"opacity-0 pointer-events-none";let q;t[61]!==me?(q=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",me),t[61]=me,t[62]=q):q=t[62];let Y;t[63]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(Vt,{back:!0,onClose:()=>x("chat")}),t[63]=Y):Y=t[63];let H;t[64]!==q?(H=s.jsx("div",{className:q,children:Y}),t[64]=q,t[65]=H):H=t[65];let te;return t[66]!==F||t[67]!==V||t[68]!==H?(te=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[F,V,H]}),t[66]=F,t[67]=V,t[68]=H,t[69]=te):te=t[69],te}function Hs(){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 Bs(){const t=z.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Qe,{fallback:e,children:s.jsx(A.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Us,{})})}),t[1]=i):i=t[1],i}function Fs(t){const e=z.c(5),{open:i,onOpenChange:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Jt,{children:s.jsx(Zt,{children:"Keyboard Shortcuts"})}),e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(Xt,{className:"sm:max-w-md",children:[l,s.jsx("div",{className:"flex flex-col gap-4",children:Rt.map(Gs)})]}),e[1]=o):o=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx(es,{open:i,onOpenChange:n,children:o}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Gs(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ws)})]},t.label)}function Ws(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ks)})]},t.description)}function Ks(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Vs(){const t=z.c(57),{locator:e,org:i}=ze(),n=Xe(),l=Je(),[o]=ls(),{org:r,project:a}=Ge.parse(e),c=Ge.isOrgAdminProject(e),{data:d}=ct(i.id,a);let f;t[0]!==d?.enabledPlugins?(f=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=f):f=t[1];const u=f,m=d?.ui?.pinnedViews??[];let x;t[2]!==u?(x=w=>u.includes(w.pluginId),t[2]=u,t[3]=x):x=t[3];const h=St.filter(x),g=l.location.pathname,j=`/${r}/${a}`,_=g===j||g===`${j}/`;let b;t[4]!==j||t[5]!==g?(b=w=>g.startsWith(`${j}/${w}`),t[4]=j,t[5]=g,t[6]=b):b=t[6];const p=b;let y;t[7]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(is,{}),t[7]=y):y=t[7];const k={key:"home",label:"Home",icon:y,isActive:_,onClick:()=>{_?window.dispatchEvent(new CustomEvent("reset-home-view")):n({to:"/$org/$project",params:{org:r,project:a}})}};let v;t[8]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ke,{}),t[8]=v):v=t[8];const N={key:"tasks",label:"Tasks",icon:v,isActive:p("tasks"),onClick:()=>n({to:"/$org/$project/tasks",params:{org:r,project:Z}})};let C;t[9]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(ts,{}),t[9]=C):C=t[9];const $={key:"mcps",label:"Connections",icon:C,isActive:p("mcps"),onClick:()=>n({to:"/$org/$project/mcps",params:{org:r,project:Z}})};let S;t[10]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(kt,{}),t[10]=S):S=t[10];const P={key:"projects",label:"Projects",icon:S,isActive:p("projects"),onClick:()=>n({to:"/$org/$project/projects",params:{org:r,project:Z}})};let O;t[11]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(et,{}),t[11]=O):O=t[11];const T={key:"agents",label:"Agents",icon:O,isActive:p("agents"),onClick:()=>n({to:"/$org/$project/agents",params:{org:r,project:Z}})};let L;t[12]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ns,{}),t[12]=L):L=t[12];const M={key:"automations",label:"Automations",icon:L,isActive:p("automations"),onClick:()=>n({to:"/$org/$project/automations",params:{org:r,project:Z}})};let E;t[13]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(ht,{}),t[13]=E):E=t[13];const R={key:"monitoring",label:"Monitor",icon:E,isActive:p("monitoring"),onClick:()=>n({to:"/$org/$project/monitoring",params:{org:r,project:Z}})},D=h.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:p(w.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:w.pluginId}})}));let U;t[14]!==u?(U=w=>u.includes(w.pluginId),t[14]=u,t[15]=U):U=t[15];const G=_t.filter(U).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((W,le)=>({key:`${w.pluginId}-${w.id}-${le}`,label:W.label,icon:W.icon,isActive:p(w.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}})),ie=m.map(w=>({key:`app-${w.connectionId}-${w.toolName}`,label:w.label||w.toolName,icon:w.icon?s.jsx("img",{src:w.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:p(`apps/${w.connectionId}/${encodeURIComponent(w.toolName)}`),onClick:()=>n({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:r,project:a,connectionId:w.connectionId,toolName:w.toolName}})}));let ee;t[16]!==ie?(ee=ie.length>0?{type:"group",group:{id:"apps",label:"Apps",items:ie,defaultExpanded:!0}}:null,t[16]=ie,t[17]=ee):ee=t[17];const ce=ee;if(c){let w;t[18]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ue,{}),t[18]=w):w=t[18];let W;t[19]!==p?(W=p("settings"),t[19]=p,t[20]=W):W=t[20];let le;t[21]!==n||t[22]!==r?(le=()=>n({to:"/$org/$project/settings",params:{org:r,project:Z}}),t[21]=n,t[22]=r,t[23]=le):le=t[23];let he;t[24]!==W||t[25]!==le?(he={key:"settings",label:"Settings",icon:w,isActive:W,onClick:le},t[24]=W,t[25]=le,t[26]=he):he=t[26];const Ne=he,ue=[{type:"items",items:[k,N,P]},{type:"group",group:{id:"build",label:"Build",items:[...o.experimentalAutomations?[M]:[],T,$],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[R,Ne],defaultExpanded:!0}}];if(D.length>0){let pe;t[27]!==D?(pe={type:"items",items:D},t[27]=D,t[28]=pe):pe=t[28],ue.push(pe)}return G.length>0&&ue.push(...G),ce&&ue.push(ce),ue}let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsx(Ke,{}),t[29]=de):de=t[29];let K;t[30]!==p?(K=p("tasks"),t[30]=p,t[31]=K):K=t[31];let X;t[32]!==n||t[33]!==r||t[34]!==a?(X=()=>n({to:"/$org/$project/tasks",params:{org:r,project:a}}),t[32]=n,t[33]=r,t[34]=a,t[35]=X):X=t[35];let V;t[36]!==K||t[37]!==X?(V={key:"tasks",label:"Tasks",icon:de,isActive:K,onClick:X},t[36]=K,t[37]=X,t[38]=V):V=t[38];const me=V;let q;t[39]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(ss,{}),t[39]=q):q=t[39];let Y;t[40]!==p?(Y=p("workflows"),t[40]=p,t[41]=Y):Y=t[41];let H;t[42]!==n||t[43]!==r||t[44]!==a?(H=()=>n({to:"/$org/$project/workflows",params:{org:r,project:a}}),t[42]=n,t[43]=r,t[44]=a,t[45]=H):H=t[45];let te;t[46]!==Y||t[47]!==H?(te={key:"workflows",label:"Workflows",icon:q,isActive:Y,onClick:H},t[46]=Y,t[47]=H,t[48]=te):te=t[48];const B=te;let J;t[49]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Ue,{}),t[49]=J):J=t[49];let se;t[50]!==n||t[51]!==r||t[52]!==a?(se={key:"configure",label:"Configure",icon:J,isActive:!1,isExternal:!0,onClick:()=>n({to:"/$org/$project/projects/$slug/settings/general",params:{org:r,project:Z,slug:a}})},t[50]=n,t[51]=r,t[52]=a,t[53]=se):se=t[53];const ne=[{type:"items",items:[k,me,B,se]}];if(D.length>0){let w;t[54]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[54]=w):w=t[54],ne.push(w);let W;t[55]!==D?(W={type:"items",items:D},t[55]=D,t[56]=W):W=t[56],ne.push(W)}return G.length>0&&ne.push(...G),ce&&ne.push(ce),ne}const qs="sidebar_state",Ys=3600*24*7,Qs="16rem",Xs="18rem",Js="3rem",Zs="b",bt=A.createContext(null);function Fe(){const t=A.useContext(bt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function ei(t){const e=z.c(21),{defaultOpen:i,open:n,onOpenChange:l,children:o}=t,r=i===void 0?!0:i,a=os(),[c,d]=A.useState(!1),[f,u]=A.useState(r),m=n??f;let x;e[0]!==m||e[1]!==l?(x=C=>{const $=typeof C=="function"?C(m):C;l?l($):u($),document.cookie=`${qs}=${$}; path=/; max-age=${Ys}`},e[0]=m,e[1]=l,e[2]=x):x=e[2];const h=x;let g;e[3]!==a||e[4]!==h?(g=()=>a?d(si):h(ti),e[3]=a,e[4]=h,e[5]=g):g=e[5];const j=g;let _,b;e[6]!==j?(_=()=>{const C=$=>{if($.key===Zs&&($.metaKey||$.ctrlKey)){const S=$.target;if(S.tagName==="INPUT"||S.tagName==="TEXTAREA"||S.isContentEditable)return;$.preventDefault(),j()}};return globalThis.addEventListener("keydown",C),()=>globalThis.removeEventListener("keydown",C)},b=[j],e[6]=j,e[7]=_,e[8]=b):(_=e[7],b=e[8]),A.useEffect(_,b);const p=m?"expanded":"collapsed";let y;e[9]!==a||e[10]!==m||e[11]!==c||e[12]!==h||e[13]!==p||e[14]!==j?(y={state:p,open:m,setOpen:h,isMobile:a,openMobile:c,setOpenMobile:d,toggleSidebar:j},e[9]=a,e[10]=m,e[11]=c,e[12]=h,e[13]=p,e[14]=j,e[15]=y):y=e[15];const k=y;let v;e[16]!==o?(v=s.jsx(fs,{delayDuration:0,children:o}),e[16]=o,e[17]=v):v=e[17];let N;return e[18]!==k||e[19]!==v?(N=s.jsx(bt.Provider,{value:k,children:v}),e[18]=k,e[19]=v,e[20]=N):N=e[20],N}function ti(t){return!t}function si(t){return!t}function ii(t){const e=z.c(14);let i,n,l,o;e[0]!==t?({className:n,style:o,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o):(i=e[1],n=e[2],l=e[3],o=e[4]);let r;e[5]!==o?(r={"--sidebar-width":Qs,"--sidebar-width-icon":Js,...o},e[5]=o,e[6]=r):r=e[6];const a=r;let c;e[7]!==n?(c=I("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",n),e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==i||e[10]!==l||e[11]!==a||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:a,className:c,...l,children:i}),e[9]=i,e[10]=l,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function ni(t){const e=z.c(42);let i,n,l,o,r,a;e[0]!==t?({side:o,variant:r,collapsible:a,className:n,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6]);const c=o===void 0?"left":o,d=r===void 0?"sidebar":r,f=a===void 0?"offcanvas":a,{isMobile:u,state:m,openMobile:x,setOpenMobile:h}=Fe();if(f==="none"){let v;e[7]!==n?(v=I("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=v):v=e[8];let N;return e[9]!==i||e[10]!==l||e[11]!==v?(N=s.jsx("div",{"data-slot":"sidebar",className:v,...l,children:i}),e[9]=i,e[10]=l,e[11]=v,e[12]=N):N=e[12],N}if(u){let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v={"--sidebar-width":Xs},e[13]=v):v=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(as,{className:"sr-only",children:[s.jsx(cs,{children:"Sidebar"}),s.jsx(ds,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let C;e[15]!==i?(C=s.jsx("div",{className:"flex h-full w-full flex-col",children:i}),e[15]=i,e[16]=C):C=e[16];let $;e[17]!==c||e[18]!==C?($=s.jsxs(ms,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:v,side:c,children:[N,C]}),e[17]=c,e[18]=C,e[19]=$):$=e[19];let S;return e[20]!==x||e[21]!==l||e[22]!==h||e[23]!==$?(S=s.jsx(rs,{open:x,onOpenChange:h,...l,children:$}),e[20]=x,e[21]=l,e[22]=h,e[23]=$,e[24]=S):S=e[24],S}const g=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let j;e[25]!==g?(j=I("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",g),e[25]=g,e[26]=j):j=e[26];const _=m==="collapsed"?f:"";let b;e[27]!==n?(b=I("flex flex-col h-full w-(--sidebar-width)",n),e[27]=n,e[28]=b):b=e[28];let p;e[29]!==i?(p=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i}),e[29]=i,e[30]=p):p=e[30];let y;e[31]!==l||e[32]!==b||e[33]!==p?(y=s.jsx("div",{"data-slot":"sidebar-container",className:b,...l,children:p}),e[31]=l,e[32]=b,e[33]=p,e[34]=y):y=e[34];let k;return e[35]!==c||e[36]!==m||e[37]!==j||e[38]!==_||e[39]!==y||e[40]!==d?(k=s.jsx("div",{className:j,"data-state":m,"data-collapsible":_,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:y}),e[35]=c,e[36]=m,e[37]=j,e[38]=_,e[39]=y,e[40]=d,e[41]=k):k=e[41],k}function li(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function jt(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function oi(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ri(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("h-4 m-0! w-full",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-sidebar":"separator",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ai(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ae(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ee(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("w-full text-sm",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function be(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function xe(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("group/menu-item relative",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}const ci=wt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Oe(t){const e=z.c(28);let i,n,l,o,r,a,c;e[0]!==t?({asChild:l,isActive:o,variant:r,size:a,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a,e[7]=c):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6],c=e[7]);const d=l===void 0?!1:l,f=o===void 0?!1:o,u=r===void 0?"default":r,m=a===void 0?"default":a,x=d?Ct:"button",{isMobile:h,state:g}=Fe();let j;e[8]!==i||e[9]!==m||e[10]!==u?(j=I(ci({variant:u,size:m}),i),e[8]=i,e[9]=m,e[10]=u,e[11]=j):j=e[11];let _;e[12]!==x||e[13]!==f||e[14]!==n||e[15]!==m||e[16]!==j?(_=s.jsx(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":f,className:j,...n}),e[12]=x,e[13]=f,e[14]=n,e[15]=m,e[16]=j,e[17]=_):_=e[17];const b=_;if(!c)return b;if(typeof c=="string"){let N;e[18]!==c?(N={children:c},e[18]=c,e[19]=N):N=e[19],c=N}let p;e[20]!==b?(p=s.jsx(ps,{asChild:!0,children:b}),e[20]=b,e[21]=p):p=e[21];const y=g!=="collapsed"||h;let k;e[22]!==y||e[23]!==c?(k=s.jsx(us,{side:"right",align:"center",hidden:y,...c}),e[22]=y,e[23]=c,e[24]=k):k=e[24];let v;return e[25]!==p||e[26]!==k?(v=s.jsxs(xs,{children:[p,k]}),e[25]=p,e[26]=k,e[27]=v):v=e[27],v}function di(t){const e=z.c(11),{label:i,children:n,defaultExpanded:l}=t,o=l===void 0?!0:l,[r,a]=A.useState(o),{state:c}=Fe(),d=c==="collapsed";let f;e[0]!==r||e[1]!==d||e[2]!==i?(f=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(be,{children:s.jsx(xe,{children:s.jsxs(Oe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!r),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(mt,{size:12,className:I("text-muted-foreground transition-transform duration-200",!r&&"-rotate-90")})]})})}),e[0]=r,e[1]=d,e[2]=i,e[3]=f):f=e[3];let u;e[4]!==n||e[5]!==r||e[6]!==d?(u=(d||r)&&s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=r,e[6]=d,e[7]=u):u=e[7];let m;return e[8]!==f||e[9]!==u?(m=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[f,u]}),e[8]=f,e[9]=u,e[10]=m):m=e[10],m}function vt(t){const e=z.c(22),{item:i}=t,n=i.key,l=i.onClick,o=i.isActive,r=i.label,a=i.isExternal&&"group/external";let c;e[0]!==a?(c=I(a),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==i.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[2]=i.icon,e[3]=d):d=e[3];const f=i.isExternal&&"group-hover/external:underline underline-offset-2";let u;e[4]!==f?(u=I("truncate group-data-[collapsible=icon]:hidden",f),e[4]=f,e[5]=u):u=e[5];let m;e[6]!==i.label||e[7]!==u?(m=s.jsx("span",{className:u,children:i.label}),e[6]=i.label,e[7]=u,e[8]=m):m=e[8];let x;e[9]!==i.isExternal?(x=i.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[9]=i.isExternal,e[10]=x):x=e[10];let h;e[11]!==i.isActive||e[12]!==i.label||e[13]!==i.onClick||e[14]!==m||e[15]!==x||e[16]!==c||e[17]!==d?(h=s.jsxs(Oe,{onClick:l,isActive:o,tooltip:r,className:c,children:[d,m,x]}),e[11]=i.isActive,e[12]=i.label,e[13]=i.onClick,e[14]=m,e[15]=x,e[16]=c,e[17]=d,e[18]=h):h=e[18];let g;return e[19]!==i.key||e[20]!==h?(g=s.jsx(xe,{children:h},n),e[19]=i.key,e[20]=h,e[21]=g):g=e[21],g}function mi(t){const e=z.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(ri,{className:"my-2"}),e[0]=n):n=e[0],n}case"spacer":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1"}),e[1]=n):n=e[1],n}case"group":{const n=i.group.label,l=i.group.defaultExpanded;let o;e[2]!==i.group.items?(o=i.group.items.map(ui),e[2]=i.group.items,e[3]=o):o=e[3];let r;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==o?(r=s.jsx(di,{label:n,defaultExpanded:l,children:o}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=o,e[7]=r):r=e[7],r}case"items":{let n;e[8]!==i.items?(n=i.items.map(fi),e[8]=i.items,e[9]=n):n=e[9];let l;return e[10]!==n?(l=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=l):l=e[11],l}}}function fi(t){return s.jsx(vt,{item:t},t.key)}function ui(t){return s.jsx(vt,{item:t},t.key)}function yt(t){const e=z.c(14),{sections:i,header:n,footer:l,additionalContent:o,variant:r,collapsible:a,contentClassName:c}=t,d=r===void 0?"sidebar":r,f=a===void 0?"icon":a;let u;e[0]!==c?(u=I("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let m;e[2]!==i?(m=i.map(pi),e[2]=i,e[3]=m):m=e[3];let x;e[4]!==o||e[5]!==u||e[6]!==m?(x=s.jsxs(ai,{className:u,children:[m,o]}),e[4]=o,e[5]=u,e[6]=m,e[7]=x):x=e[7];let h;return e[8]!==f||e[9]!==l||e[10]!==n||e[11]!==x||e[12]!==d?(h=s.jsxs(ni,{variant:d,collapsible:f,children:[n,x,l]}),e[8]=f,e[9]=l,e[10]=n,e[11]=x,e[12]=d,e[13]=h):h=e[13],h}function pi(t,e){return s.jsx(mi,{section:t},e)}yt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,i)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(ae,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function xi(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(ae,{className:"h-8 w-full rounded-lg"}),s.jsx(ae,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function hi(t){const e=z.c(12),{organizationId:i,currentProjectSlug:n,onSelect:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:r}=dt(i,o);let a,c;if(e[1]!==n||e[2]!==l||e[3]!==r){c=Symbol.for("react.early_return_sentinel");e:{const f=r?.filter(gi)??[];if(f.length===0){let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=m):m=e[6],c=m;break e}let u;e[7]!==n||e[8]!==l?(u=m=>{const x=n===m.slug,h=m.ui?.themeColor??"#3B82F6";return s.jsxs(re,{className:I("gap-2.5",x&&"bg-accent"),onClick:()=>l(m.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:m.ui?.icon?void 0:{backgroundColor:h},children:m.ui?.icon?s.jsx("img",{src:m.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:m.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:m.name}),x&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},m.id)},e[7]=n,e[8]=l,e[9]=u):u=e[9],a=f.map(u)}e[1]=n,e[2]=l,e[3]=r,e[4]=a,e[5]=c}else a=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==a?(d=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=d):d=e[11],d}function gi(t){return t.slug!==Z}function bi(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const i=Math.abs(e)%360;return{backgroundColor:`hsl(${i} 55% 70%)`,color:`hsl(${i} 55% 20%)`}}function qe(t){const e=z.c(96),{isCollapsed:i,onCreateProject:n}=t,l=i===void 0?!1:i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:r,project:a}=it(o),{data:c}=ye.useListOrganizations(),d=Xe(),f=c?.find(Q=>Q.slug===r),[u,m]=A.useState(!1),x=a===Z,{data:h}=ct(f?.id??"",x?"":a??"");let g;e[1]!==r?(g=(Q,Re)=>Q.slug===r?-1:Re.slug===r?1:Q.name.localeCompare(Re.name),e[1]=r,e[2]=g):g=e[2];const j=[...c??[]].sort(g);let _;e[3]!==d||e[4]!==r?(_=()=>{r&&d({to:"/$org/$project",params:{org:r,project:Z}})},e[3]=d,e[4]=r,e[5]=_):_=e[5];const b=_;let p;e[6]!==d||e[7]!==r?(p=Q=>{r&&d({to:"/$org/$project",params:{org:r,project:Q}})},e[6]=d,e[7]=r,e[8]=p):p=e[8];const y=p;let k;e[9]!==d?(k=Q=>{d({to:"/$org/$project",params:{org:Q,project:Z}})},e[9]=d,e[10]=k):k=e[10];const v=k;let N;e[11]!==n?(N=n?()=>n():void 0,e[11]=n,e[12]=N):N=e[12];const C=N;let $;e[13]!==d||e[14]!==r||e[15]!==a?($=()=>{if(!r||!a)return;const Q=a===Z;d({to:"/$org/$project",params:{org:r,project:a},search:Re=>({...Re,settings:Q?"org.general":`project:${a}:general`})})},e[13]=d,e[14]=r,e[15]=a,e[16]=$):$=e[16];const S=$,P=ut,O=l?"w-auto pr-1.5":"w-full";let T;e[17]!==O?(T=I("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",O),e[17]=O,e[18]=T):T=e[18];const L=x?s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:f?.logo?void 0:bi(f?.name??""),children:f?.logo?s.jsx("img",{src:f.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(f?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:h?.ui?.icon?void 0:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold text-white",l?"text-xs":"text-lg"),children:(h?.name??a??"?").charAt(0).toUpperCase()})});let M;e[19]!==f?.name||e[20]!==h?.name||e[21]!==l||e[22]!==x||e[23]!==a?(M=!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:f?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:x?"Studio":h?.name??a??""})]}),s.jsx(Lt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=f?.name,e[20]=h?.name,e[21]=l,e[22]=x,e[23]=a,e[24]=M):M=e[24];let E;e[25]!==T||e[26]!==L||e[27]!==M?(E=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{type:"button",className:T,children:[L,M]})}),e[25]=T,e[26]=L,e[27]=M,e[28]=E):E=e[28];const R=ft,D="start",U="bottom",F="w-64 flex flex-col gap-0.5",G=ji,ie=x&&"bg-accent";let ee;e[29]!==ie?(ee=I("gap-2.5",ie),e[29]=ie,e[30]=ee):ee=e[30];const ce=f?.logo??"",de=f?.name??"";let K;e[31]!==ce||e[32]!==de?(K=s.jsx(Ie,{url:ce,fallback:de,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),e[31]=ce,e[32]=de,e[33]=K):K=e[33];const X=f?.name;let V;e[34]!==X?(V=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",X]}),e[34]=X,e[35]=V):V=e[35];let me;e[36]!==x?(me=x&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=x,e[37]=me):me=e[37];let q;e[38]!==b||e[39]!==ee||e[40]!==K||e[41]!==V||e[42]!==me?(q=s.jsxs(re,{className:ee,onClick:b,children:[K,V,me]}),e[38]=b,e[39]=ee,e[40]=K,e[41]=V,e[42]=me,e[43]=q):q=e[43];let Y;e[44]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),e[44]=Y):Y=e[44];let H;e[45]!==f||e[46]!==y||e[47]!==r||e[48]!==a?(H=f&&s.jsx(A.Suspense,{fallback:s.jsx(xi,{}),children:s.jsx(hi,{organizationId:f.id,currentProjectSlug:a,orgSlug:r??"",onSelect:y})}),e[45]=f,e[46]=y,e[47]=r,e[48]=a,e[49]=H):H=e[49];let te;e[50]!==C?(te=C&&s.jsxs(re,{className:"gap-2.5",onClick:C,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=C,e[51]=te):te=e[51];let B;e[52]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(He,{}),e[52]=B):B=e[52];const J=gs;let se;e[53]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsxs(bs,{className:"gap-2.5",children:[s.jsx(js,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=se):se=e[53];const fe=hs,je="w-48 flex flex-col gap-0.5";let ne;e[54]!==v||e[55]!==r?(ne=Q=>s.jsxs(re,{className:I("gap-2.5",Q.slug===r&&"bg-accent"),onClick:()=>v(Q.slug),children:[s.jsx(Ie,{url:Q.logo??"",fallback:Q.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:Q.name}),Q.slug===r&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},Q.id),e[54]=v,e[55]=r,e[56]=ne):ne=e[56];const w=j.map(ne);let W;e[57]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(He,{}),e[57]=W):W=e[57];let le;e[58]!==m?(le=()=>m(!0),e[58]=m,e[59]=le):le=e[59];let he,Ne;e[60]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),Ne=s.jsx("span",{children:"Create organization"}),e[60]=he,e[61]=Ne):(he=e[60],Ne=e[61]);let ue;e[62]!==le?(ue=s.jsxs(re,{className:"gap-2.5",onClick:le,children:[he,Ne]}),e[62]=le,e[63]=ue):ue=e[63];let pe;e[64]!==fe||e[65]!==w||e[66]!==ue?(pe=s.jsxs(fe,{className:je,children:[w,W,ue]}),e[64]=fe,e[65]=w,e[66]=ue,e[67]=pe):pe=e[67];let Se;e[68]!==J||e[69]!==se||e[70]!==pe?(Se=s.jsxs(J,{children:[se,pe]}),e[68]=J,e[69]=se,e[70]=pe,e[71]=Se):Se=e[71];let Te,De;e[72]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(Ue,{size:14,className:"shrink-0 text-muted-foreground"}),De=s.jsx("span",{children:"Settings"}),e[72]=Te,e[73]=De):(Te=e[72],De=e[73]);let _e;e[74]!==S?(_e=s.jsxs(re,{className:"gap-2.5",onClick:S,children:[Te,De]}),e[74]=S,e[75]=_e):_e=e[75];let ke;e[76]!==R||e[77]!==G||e[78]!==q||e[79]!==Y||e[80]!==H||e[81]!==te||e[82]!==B||e[83]!==Se||e[84]!==_e?(ke=s.jsxs(R,{align:D,side:U,className:F,onCloseAutoFocus:G,children:[q,Y,H,te,B,Se,_e]}),e[76]=R,e[77]=G,e[78]=q,e[79]=Y,e[80]=H,e[81]=te,e[82]=B,e[83]=Se,e[84]=_e,e[85]=ke):ke=e[85];let Ce;e[86]!==P||e[87]!==E||e[88]!==ke?(Ce=s.jsxs(P,{children:[E,ke]}),e[86]=P,e[87]=E,e[88]=ke,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==m?(we=s.jsx(ys,{open:u,onOpenChange:m}),e[90]=u,e[91]=m,e[92]=we):we=e[92];let Me;return e[93]!==Ce||e[94]!==we?(Me=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=Me):Me=e[95],Me}function ji(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(ae,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ye(t){const e=z.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:l}=Fe(),o=n==="collapsed";let r;return e[0]!==o||e[1]!==i||e[2]!==l?(r=s.jsx(jt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(be,{children:s.jsx(xe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:i}),s.jsx(Oe,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(Oe,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=i,e[2]=l,e[3]=r):r=e[3],r}Ye.Skeleton=function(){return s.jsx(jt,{className:"px-3",children:s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(ae,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(ae,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function vi(t){const e=z.c(50),{user:i,userImage:n}=t,{open:l}=at(),[o,r]=A.useState(!1);let a;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(a=()=>{const G=`ID: ${i.id}
1
+ import{r as A,c as z,j as s,E as Qe,u as ze,y as I,e as Xe,au as Je,L as Ge,ch as St,bj as _t,O as Z,as as kt,U as Ct,_ as wt,g as it,f as ye,w as ve,ci as $t,bN as zt,x as It,B as We,A as Pt,S as nt,k as At,m as Et,N as Ot,v as Tt,aw as Be,K as Dt,av as lt,P as Mt}from"./index-DJtnEPc7.js";import{C as oe,c as Rt,i as Lt,d as Ut}from"./task-status-DSYWex9b.js";import{I as Ht}from"./integration-icon-DrTDJ354.js";import{u as ot,P as ge,a as Ze}from"./index-qxqsMecG.js";import{d as Bt,u as Ft}from"./constants-4hZfe-FX.js";import{n as Ke}from"./CheckDone01-v1xPuIIg.js";import{n as Gt}from"./ChevronLeft-tQ1_QiuA.js";import{i as Wt}from"./Loading01-CSUxQOK0.js";import{s as Le}from"./Plus-CGe5wBcS.js";import{t as et}from"./Users03-C-Jr0LW_.js";import{i as tt}from"./X-CuPyb-Ex.js";import{E as Kt,C as Vt}from"./editable-task-title-DPKxqM1E.js";import{T as qt}from"./tasks-panel-Cpm18hI4.js";import{a as Yt}from"./ai-providers-logos-D3xG95Si.js";import{a as Qt}from"./context-D-2OkzTq.js";import{C as rt}from"./create-project-dialog-C6OTQ8lU.js";import{c as Xt,b as Jt,D as Zt,d as es}from"./dialog-1RTimACw.js";import{n as ts}from"./Container-C_pBhYQm.js";import{e as ss}from"./Dataflow03-OPkwvxOZ.js";import{a as is}from"./Home02-DtwXSs3k.js";import{i as Ve}from"./LayoutLeft-B8jrj3eE.js";import{s as ns}from"./RefreshCcw01-CxVqRnRx.js";import{t as Ue}from"./Settings01-Dujhf9RE.js";import{u as ls,a as at}from"./org-ai-providers-CYV2m0oE.js";import{u as ct,a as dt}from"./use-project-CCY4E3rU.js";import{u as os}from"./use-mobile-BgetcADk.js";import{d as rs,b as as,S as cs,a as ds,c as ms}from"./sheet-D0UV-Fr7.js";import{c as fs,b as us,a as ps,T as xs}from"./tooltip-Bms1Xn3i.js";import{S as ae}from"./skeleton-Cy7jej-7.js";import{n as $e}from"./LinkExternal01-CBG098kX.js";import{t as mt}from"./ChevronDown-CIjXFJfV.js";import{A as Ie}from"./avatar-CkCU2Fe6.js";import{c as re,f as hs,e as gs,b as ft,D as ut,a as pt,h as He,d as bs}from"./dropdown-menu-ur1Ui41o.js";import{t as js,i as vs}from"./Coins01-D4l1LRdX.js";import{i as Pe}from"./Check-DsclgHfU.js";import{C as ys}from"./create-organization-dialog-C8OjRm9O.js";import{a as Ns}from"./Copy01-CFr3FQ5x.js";import{i as Ss}from"./File06-BpsmzbhK.js";import{i as _s}from"./Globe01-C5-PYqjH.js";import{i as ks}from"./Shield01-BqSRHTNN.js";import{a as Cs,P as ws,b as $s}from"./popover-B_9jK9T6.js";import{n as st}from"./Inbox01-BqBxWaFX.js";import{s as zs}from"./XClose-ndXrBTVc.js";import{b as Is}from"./use-connection-2T7CNTjX.js";import{b as Ps}from"./use-mcp-tools-CoXbW9dQ.js";import{c as As,A as Es}from"./use-binding-CidrckI6.js";import{C as Os,b as Ts,c as Ds}from"./collapsible-Dl714J5i.js";import{i as Ms}from"./ChevronRight-DmvbXNWu.js";import{a as Rs,R as xt,b as Ls}from"./resizable-D2UQg53E.js";import"./spinner-qX5-Mz-A.js";import"./use-mcp-prompts-Bvq8o_wk.js";import"./useQuery-DLey6Pvf.js";import"./form-RbK75Dit.js";import"./label-Dmque-mN.js";import"./input-j_5WJy1c.js";import"./index-DTrW0n62.js";import"./usage-B8rgFVXq.js";import"./ArrowUp-ETVB6cdy.js";import"./Edit01-y_ign3HR.js";import"./Lock01-CjY0LR2m.js";import"./XCircle-DIW-x13c.js";import"./AlertCircle-BCDqbXXS.js";import"./select-roICowiz.js";import"./ChevronUp-C8129itH.js";import"./index-biN0aic_.js";import"./ArrowLeft-Del7wDOT.js";import"./use-copy-CnWGIrpr.js";import"./tabs-T6eq77EC.js";import"./badge-7TJrkuyd.js";import"./Code01-Cq3-F_YX.js";import"./checkbox-BRXa8FNh.js";import"./AlignLeft-BtdVdG2m.js";import"./Image01-NzJP6iMs.js";import"./Key01-yVAqC10q.js";import"./SearchMd-CrngVZhh.js";import"./Tool01-DImlld_g.js";import"./select-virtual-mcp-CFEExN2T.js";import"./use-virtual-mcp-B8_wDvx9.js";import"./use-collections-uyyRdHl8.js";import"./useMutation-D77LVetF.js";import"./use-create-virtual-mcp-BqiAP0hG.js";import"./use-mcp-resources-INpGwYsS.js";import"./marked.esm-BaswSlok.js";import"./markdown-BjeAfn6Q.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BjIiENx_.js";import"./types-BTzo08LL.js";import"./Eye-Dq2YmoWs.js";import"./Globe02-BLXYb9br.js";import"./LayersTwo01-T6ICoMvs.js";import"./Clock-CQzMyEYR.js";import"./Trash01-DPMbpRnj.js";import"./useSuspenseInfiniteQuery-lgWDbCQ9.js";import"./infiniteQueryObserver-DPmZK5SE.js";import"./CheckCircle-CQGSbCTG.js";import"./collection-search-BeqmTWUU.js";import"./user-D3_ltBdu.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./decopilot-events-Brt4gAR6.js";import"./textarea-BJkI1dfy.js";import"./EyeOff-CpKFKNjY.js";import"./card-D9sP6AvS.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./alert-dialog-BoQV9ycw.js";import"./binder-qGS3hkzV.js";import"./index-CElzn9PI.js";const ht=({size:t=24,color:e="currentColor",...i})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},A.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));ht.displayName="BarChart10";const gt=({size:t=24,color:e="currentColor",...i})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},A.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"}));gt.displayName="LogOut01";function Us(){const t=z.c(70),{org:e}=ze(),[,i]=ot(),n=Yt(),{selectedVirtualMcp:l,isChatEmpty:o,activeTaskId:r,createTask:a,switchToTask:c,tasks:d}=Qt();let f;if(t[0]!==r||t[1]!==d){let B;t[3]!==r?(B=J=>J.id===r,t[3]=r,t[4]=B):B=t[4],f=d.find(B),t[0]=r,t[1]=d,t[2]=f}else f=t[2];const u=f,[m,x]=A.useState("chat"),[h,g]=A.useTransition();let j;t[5]!==e.id?(j=Bt(e.id),t[5]=e.id,t[6]=j):j=t[6];const b=l??j;let p;t[7]!==a?(p=()=>{g(()=>{a()})},t[7]=a,t[8]=p):p=t[8];const y=p;if(n?.providers?.length===0){let B;t[9]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(ge.Header.Left,{className:"gap-2"}),t[9]=B):B=t[9];let J;t[10]!==i?(J=()=>i(!1),t[10]=i,t[11]=J):J=t[11];let se;t[12]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=se):se=t[12];let fe;t[13]!==J?(fe=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[B,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:J,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:se})})]}),t[13]=J,t[14]=fe):fe=t[14];let je;t[15]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(oe.Main,{className:"flex flex-col items-center",children:s.jsx(oe.EmptyState,{children:s.jsx(oe.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features."})})}),t[15]=je):je=t[15];let ne;return t[16]!==fe?(ne=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[fe,je]}),t[16]=fe,t[17]=ne):ne=t[17],ne}const k=m!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let v;t[18]!==k?(v=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",k),t[18]=k,t[19]=v):v=t[19];let N;t[20]!==u||t[21]!==o?(N=!o&&u?.title&&s.jsx(Kt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[20]=u,t[21]=o,t[22]=N):N=t[22];let C;t[23]!==N?(C=s.jsx(ge.Header.Left,{className:"gap-2",children:N}),t[23]=N,t[24]=C):C=t[24];let $;t[25]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[25]=$):$=t[25];let S;t[26]!==y||t[27]!==h?(S=s.jsx("button",{type:"button",onClick:y,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:$}),t[26]=y,t[27]=h,t[28]=S):S=t[28];let P;t[29]===Symbol.for("react.memo_cache_sentinel")?(P=()=>x("tasks"),t[29]=P):P=t[29];let O;t[30]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("button",{type:"button",onClick:P,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[30]=O):O=t[30];let T;t[31]!==i?(T=()=>i(!1),t[31]=i,t[32]=T):T=t[32];let L;t[33]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[33]=L):L=t[33];let M;t[34]!==T?(M=s.jsx("button",{type:"button",onClick:T,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:L}),t[34]=T,t[35]=M):M=t[35];let E;t[36]!==M||t[37]!==S?(E=s.jsxs(ge.Header.Right,{className:"gap-1",children:[S,O,M]}),t[36]=M,t[37]=S,t[38]=E):E=t[38];let R;t[39]!==E||t[40]!==C?(R=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[C,E]}),t[39]=E,t[40]=C,t[41]=R):R=t[41];let D;t[42]!==b||t[43]!==o?(D=s.jsx(oe.Main,{children:o?s.jsx(oe.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(Ht,{icon:b.icon,name:b.title,size:"lg",fallbackIcon:s.jsx(et,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:b.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:b.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[42]=b,t[43]=o,t[44]=D):D=t[44];let U;t[45]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>x("context")})}),t[45]=U):U=t[45];let F;t[46]!==R||t[47]!==D||t[48]!==v?(F=s.jsxs("div",{className:v,children:[R,D,U]}),t[46]=R,t[47]=D,t[48]=v,t[49]=F):F=t[49];const G=m==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let ie;t[50]!==G?(ie=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",G),t[50]=G,t[51]=ie):ie=t[51];let ee;t[52]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(ge.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[52]=ee):ee=t[52];let ce;t[53]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>x("chat"),t[53]=ce):ce=t[53];let de;t[54]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[ee,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ce,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Gt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[54]=de):de=t[54];let K;t[55]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Wt,{size:16,className:"animate-spin text-muted-foreground"})}),t[55]=K):K=t[55];let X;t[56]!==c?(X=s.jsx(Qe,{fallback:Hs,children:s.jsx(A.Suspense,{fallback:K,children:s.jsx(qt,{onTaskSelect:async B=>{await c(B),x("chat")}})})}),t[56]=c,t[57]=X):X=t[57];let V;t[58]!==ie||t[59]!==X?(V=s.jsxs("div",{className:ie,children:[de,X]}),t[58]=ie,t[59]=X,t[60]=V):V=t[60];const me=m==="context"?"opacity-100":"opacity-0 pointer-events-none";let q;t[61]!==me?(q=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",me),t[61]=me,t[62]=q):q=t[62];let Y;t[63]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(Vt,{back:!0,onClose:()=>x("chat")}),t[63]=Y):Y=t[63];let H;t[64]!==q?(H=s.jsx("div",{className:q,children:Y}),t[64]=q,t[65]=H):H=t[65];let te;return t[66]!==F||t[67]!==V||t[68]!==H?(te=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[F,V,H]}),t[66]=F,t[67]=V,t[68]=H,t[69]=te):te=t[69],te}function Hs(){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 Bs(){const t=z.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Qe,{fallback:e,children:s.jsx(A.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Us,{})})}),t[1]=i):i=t[1],i}function Fs(t){const e=z.c(5),{open:i,onOpenChange:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Jt,{children:s.jsx(Zt,{children:"Keyboard Shortcuts"})}),e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(Xt,{className:"sm:max-w-md",children:[l,s.jsx("div",{className:"flex flex-col gap-4",children:Rt.map(Gs)})]}),e[1]=o):o=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx(es,{open:i,onOpenChange:n,children:o}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Gs(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ws)})]},t.label)}function Ws(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ks)})]},t.description)}function Ks(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Vs(){const t=z.c(57),{locator:e,org:i}=ze(),n=Xe(),l=Je(),[o]=ls(),{org:r,project:a}=Ge.parse(e),c=Ge.isOrgAdminProject(e),{data:d}=ct(i.id,a);let f;t[0]!==d?.enabledPlugins?(f=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=f):f=t[1];const u=f,m=d?.ui?.pinnedViews??[];let x;t[2]!==u?(x=w=>u.includes(w.pluginId),t[2]=u,t[3]=x):x=t[3];const h=St.filter(x),g=l.location.pathname,j=`/${r}/${a}`,_=g===j||g===`${j}/`;let b;t[4]!==j||t[5]!==g?(b=w=>g.startsWith(`${j}/${w}`),t[4]=j,t[5]=g,t[6]=b):b=t[6];const p=b;let y;t[7]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(is,{}),t[7]=y):y=t[7];const k={key:"home",label:"Home",icon:y,isActive:_,onClick:()=>{_?window.dispatchEvent(new CustomEvent("reset-home-view")):n({to:"/$org/$project",params:{org:r,project:a}})}};let v;t[8]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ke,{}),t[8]=v):v=t[8];const N={key:"tasks",label:"Tasks",icon:v,isActive:p("tasks"),onClick:()=>n({to:"/$org/$project/tasks",params:{org:r,project:Z}})};let C;t[9]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(ts,{}),t[9]=C):C=t[9];const $={key:"mcps",label:"Connections",icon:C,isActive:p("mcps"),onClick:()=>n({to:"/$org/$project/mcps",params:{org:r,project:Z}})};let S;t[10]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(kt,{}),t[10]=S):S=t[10];const P={key:"projects",label:"Projects",icon:S,isActive:p("projects"),onClick:()=>n({to:"/$org/$project/projects",params:{org:r,project:Z}})};let O;t[11]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(et,{}),t[11]=O):O=t[11];const T={key:"agents",label:"Agents",icon:O,isActive:p("agents"),onClick:()=>n({to:"/$org/$project/agents",params:{org:r,project:Z}})};let L;t[12]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ns,{}),t[12]=L):L=t[12];const M={key:"automations",label:"Automations",icon:L,isActive:p("automations"),onClick:()=>n({to:"/$org/$project/automations",params:{org:r,project:Z}})};let E;t[13]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(ht,{}),t[13]=E):E=t[13];const R={key:"monitoring",label:"Monitor",icon:E,isActive:p("monitoring"),onClick:()=>n({to:"/$org/$project/monitoring",params:{org:r,project:Z}})},D=h.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:p(w.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:w.pluginId}})}));let U;t[14]!==u?(U=w=>u.includes(w.pluginId),t[14]=u,t[15]=U):U=t[15];const G=_t.filter(U).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((W,le)=>({key:`${w.pluginId}-${w.id}-${le}`,label:W.label,icon:W.icon,isActive:p(w.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}})),ie=m.map(w=>({key:`app-${w.connectionId}-${w.toolName}`,label:w.label||w.toolName,icon:w.icon?s.jsx("img",{src:w.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:p(`apps/${w.connectionId}/${encodeURIComponent(w.toolName)}`),onClick:()=>n({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:r,project:a,connectionId:w.connectionId,toolName:w.toolName}})}));let ee;t[16]!==ie?(ee=ie.length>0?{type:"group",group:{id:"apps",label:"Apps",items:ie,defaultExpanded:!0}}:null,t[16]=ie,t[17]=ee):ee=t[17];const ce=ee;if(c){let w;t[18]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ue,{}),t[18]=w):w=t[18];let W;t[19]!==p?(W=p("settings"),t[19]=p,t[20]=W):W=t[20];let le;t[21]!==n||t[22]!==r?(le=()=>n({to:"/$org/$project/settings",params:{org:r,project:Z}}),t[21]=n,t[22]=r,t[23]=le):le=t[23];let he;t[24]!==W||t[25]!==le?(he={key:"settings",label:"Settings",icon:w,isActive:W,onClick:le},t[24]=W,t[25]=le,t[26]=he):he=t[26];const Ne=he,ue=[{type:"items",items:[k,N,P]},{type:"group",group:{id:"build",label:"Build",items:[...o.experimentalAutomations?[M]:[],T,$],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[R,Ne],defaultExpanded:!0}}];if(D.length>0){let pe;t[27]!==D?(pe={type:"items",items:D},t[27]=D,t[28]=pe):pe=t[28],ue.push(pe)}return G.length>0&&ue.push(...G),ce&&ue.push(ce),ue}let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsx(Ke,{}),t[29]=de):de=t[29];let K;t[30]!==p?(K=p("tasks"),t[30]=p,t[31]=K):K=t[31];let X;t[32]!==n||t[33]!==r||t[34]!==a?(X=()=>n({to:"/$org/$project/tasks",params:{org:r,project:a}}),t[32]=n,t[33]=r,t[34]=a,t[35]=X):X=t[35];let V;t[36]!==K||t[37]!==X?(V={key:"tasks",label:"Tasks",icon:de,isActive:K,onClick:X},t[36]=K,t[37]=X,t[38]=V):V=t[38];const me=V;let q;t[39]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(ss,{}),t[39]=q):q=t[39];let Y;t[40]!==p?(Y=p("workflows"),t[40]=p,t[41]=Y):Y=t[41];let H;t[42]!==n||t[43]!==r||t[44]!==a?(H=()=>n({to:"/$org/$project/workflows",params:{org:r,project:a}}),t[42]=n,t[43]=r,t[44]=a,t[45]=H):H=t[45];let te;t[46]!==Y||t[47]!==H?(te={key:"workflows",label:"Workflows",icon:q,isActive:Y,onClick:H},t[46]=Y,t[47]=H,t[48]=te):te=t[48];const B=te;let J;t[49]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Ue,{}),t[49]=J):J=t[49];let se;t[50]!==n||t[51]!==r||t[52]!==a?(se={key:"configure",label:"Configure",icon:J,isActive:!1,isExternal:!0,onClick:()=>n({to:"/$org/$project/projects/$slug/settings/general",params:{org:r,project:Z,slug:a}})},t[50]=n,t[51]=r,t[52]=a,t[53]=se):se=t[53];const ne=[{type:"items",items:[k,me,B,se]}];if(D.length>0){let w;t[54]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[54]=w):w=t[54],ne.push(w);let W;t[55]!==D?(W={type:"items",items:D},t[55]=D,t[56]=W):W=t[56],ne.push(W)}return G.length>0&&ne.push(...G),ce&&ne.push(ce),ne}const qs="sidebar_state",Ys=3600*24*7,Qs="16rem",Xs="18rem",Js="3rem",Zs="b",bt=A.createContext(null);function Fe(){const t=A.useContext(bt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function ei(t){const e=z.c(21),{defaultOpen:i,open:n,onOpenChange:l,children:o}=t,r=i===void 0?!0:i,a=os(),[c,d]=A.useState(!1),[f,u]=A.useState(r),m=n??f;let x;e[0]!==m||e[1]!==l?(x=C=>{const $=typeof C=="function"?C(m):C;l?l($):u($),document.cookie=`${qs}=${$}; path=/; max-age=${Ys}`},e[0]=m,e[1]=l,e[2]=x):x=e[2];const h=x;let g;e[3]!==a||e[4]!==h?(g=()=>a?d(si):h(ti),e[3]=a,e[4]=h,e[5]=g):g=e[5];const j=g;let _,b;e[6]!==j?(_=()=>{const C=$=>{if($.key===Zs&&($.metaKey||$.ctrlKey)){const S=$.target;if(S.tagName==="INPUT"||S.tagName==="TEXTAREA"||S.isContentEditable)return;$.preventDefault(),j()}};return globalThis.addEventListener("keydown",C),()=>globalThis.removeEventListener("keydown",C)},b=[j],e[6]=j,e[7]=_,e[8]=b):(_=e[7],b=e[8]),A.useEffect(_,b);const p=m?"expanded":"collapsed";let y;e[9]!==a||e[10]!==m||e[11]!==c||e[12]!==h||e[13]!==p||e[14]!==j?(y={state:p,open:m,setOpen:h,isMobile:a,openMobile:c,setOpenMobile:d,toggleSidebar:j},e[9]=a,e[10]=m,e[11]=c,e[12]=h,e[13]=p,e[14]=j,e[15]=y):y=e[15];const k=y;let v;e[16]!==o?(v=s.jsx(fs,{delayDuration:0,children:o}),e[16]=o,e[17]=v):v=e[17];let N;return e[18]!==k||e[19]!==v?(N=s.jsx(bt.Provider,{value:k,children:v}),e[18]=k,e[19]=v,e[20]=N):N=e[20],N}function ti(t){return!t}function si(t){return!t}function ii(t){const e=z.c(14);let i,n,l,o;e[0]!==t?({className:n,style:o,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o):(i=e[1],n=e[2],l=e[3],o=e[4]);let r;e[5]!==o?(r={"--sidebar-width":Qs,"--sidebar-width-icon":Js,...o},e[5]=o,e[6]=r):r=e[6];const a=r;let c;e[7]!==n?(c=I("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",n),e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==i||e[10]!==l||e[11]!==a||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:a,className:c,...l,children:i}),e[9]=i,e[10]=l,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function ni(t){const e=z.c(42);let i,n,l,o,r,a;e[0]!==t?({side:o,variant:r,collapsible:a,className:n,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6]);const c=o===void 0?"left":o,d=r===void 0?"sidebar":r,f=a===void 0?"offcanvas":a,{isMobile:u,state:m,openMobile:x,setOpenMobile:h}=Fe();if(f==="none"){let v;e[7]!==n?(v=I("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=v):v=e[8];let N;return e[9]!==i||e[10]!==l||e[11]!==v?(N=s.jsx("div",{"data-slot":"sidebar",className:v,...l,children:i}),e[9]=i,e[10]=l,e[11]=v,e[12]=N):N=e[12],N}if(u){let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v={"--sidebar-width":Xs},e[13]=v):v=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(as,{className:"sr-only",children:[s.jsx(cs,{children:"Sidebar"}),s.jsx(ds,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let C;e[15]!==i?(C=s.jsx("div",{className:"flex h-full w-full flex-col",children:i}),e[15]=i,e[16]=C):C=e[16];let $;e[17]!==c||e[18]!==C?($=s.jsxs(ms,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:v,side:c,children:[N,C]}),e[17]=c,e[18]=C,e[19]=$):$=e[19];let S;return e[20]!==x||e[21]!==l||e[22]!==h||e[23]!==$?(S=s.jsx(rs,{open:x,onOpenChange:h,...l,children:$}),e[20]=x,e[21]=l,e[22]=h,e[23]=$,e[24]=S):S=e[24],S}const g=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let j;e[25]!==g?(j=I("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",g),e[25]=g,e[26]=j):j=e[26];const _=m==="collapsed"?f:"";let b;e[27]!==n?(b=I("flex flex-col h-full w-(--sidebar-width)",n),e[27]=n,e[28]=b):b=e[28];let p;e[29]!==i?(p=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i}),e[29]=i,e[30]=p):p=e[30];let y;e[31]!==l||e[32]!==b||e[33]!==p?(y=s.jsx("div",{"data-slot":"sidebar-container",className:b,...l,children:p}),e[31]=l,e[32]=b,e[33]=p,e[34]=y):y=e[34];let k;return e[35]!==c||e[36]!==m||e[37]!==j||e[38]!==_||e[39]!==y||e[40]!==d?(k=s.jsx("div",{className:j,"data-state":m,"data-collapsible":_,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:y}),e[35]=c,e[36]=m,e[37]=j,e[38]=_,e[39]=y,e[40]=d,e[41]=k):k=e[41],k}function li(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function jt(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function oi(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ri(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("h-4 m-0! w-full",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-sidebar":"separator",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ai(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ae(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ee(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("w-full text-sm",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function be(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function xe(t){const e=z.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=I("group/menu-item relative",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}const ci=wt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Oe(t){const e=z.c(28);let i,n,l,o,r,a,c;e[0]!==t?({asChild:l,isActive:o,variant:r,size:a,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a,e[7]=c):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6],c=e[7]);const d=l===void 0?!1:l,f=o===void 0?!1:o,u=r===void 0?"default":r,m=a===void 0?"default":a,x=d?Ct:"button",{isMobile:h,state:g}=Fe();let j;e[8]!==i||e[9]!==m||e[10]!==u?(j=I(ci({variant:u,size:m}),i),e[8]=i,e[9]=m,e[10]=u,e[11]=j):j=e[11];let _;e[12]!==x||e[13]!==f||e[14]!==n||e[15]!==m||e[16]!==j?(_=s.jsx(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":f,className:j,...n}),e[12]=x,e[13]=f,e[14]=n,e[15]=m,e[16]=j,e[17]=_):_=e[17];const b=_;if(!c)return b;if(typeof c=="string"){let N;e[18]!==c?(N={children:c},e[18]=c,e[19]=N):N=e[19],c=N}let p;e[20]!==b?(p=s.jsx(ps,{asChild:!0,children:b}),e[20]=b,e[21]=p):p=e[21];const y=g!=="collapsed"||h;let k;e[22]!==y||e[23]!==c?(k=s.jsx(us,{side:"right",align:"center",hidden:y,...c}),e[22]=y,e[23]=c,e[24]=k):k=e[24];let v;return e[25]!==p||e[26]!==k?(v=s.jsxs(xs,{children:[p,k]}),e[25]=p,e[26]=k,e[27]=v):v=e[27],v}function di(t){const e=z.c(11),{label:i,children:n,defaultExpanded:l}=t,o=l===void 0?!0:l,[r,a]=A.useState(o),{state:c}=Fe(),d=c==="collapsed";let f;e[0]!==r||e[1]!==d||e[2]!==i?(f=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(be,{children:s.jsx(xe,{children:s.jsxs(Oe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!r),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(mt,{size:12,className:I("text-muted-foreground transition-transform duration-200",!r&&"-rotate-90")})]})})}),e[0]=r,e[1]=d,e[2]=i,e[3]=f):f=e[3];let u;e[4]!==n||e[5]!==r||e[6]!==d?(u=(d||r)&&s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=r,e[6]=d,e[7]=u):u=e[7];let m;return e[8]!==f||e[9]!==u?(m=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[f,u]}),e[8]=f,e[9]=u,e[10]=m):m=e[10],m}function vt(t){const e=z.c(22),{item:i}=t,n=i.key,l=i.onClick,o=i.isActive,r=i.label,a=i.isExternal&&"group/external";let c;e[0]!==a?(c=I(a),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==i.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[2]=i.icon,e[3]=d):d=e[3];const f=i.isExternal&&"group-hover/external:underline underline-offset-2";let u;e[4]!==f?(u=I("truncate group-data-[collapsible=icon]:hidden",f),e[4]=f,e[5]=u):u=e[5];let m;e[6]!==i.label||e[7]!==u?(m=s.jsx("span",{className:u,children:i.label}),e[6]=i.label,e[7]=u,e[8]=m):m=e[8];let x;e[9]!==i.isExternal?(x=i.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[9]=i.isExternal,e[10]=x):x=e[10];let h;e[11]!==i.isActive||e[12]!==i.label||e[13]!==i.onClick||e[14]!==m||e[15]!==x||e[16]!==c||e[17]!==d?(h=s.jsxs(Oe,{onClick:l,isActive:o,tooltip:r,className:c,children:[d,m,x]}),e[11]=i.isActive,e[12]=i.label,e[13]=i.onClick,e[14]=m,e[15]=x,e[16]=c,e[17]=d,e[18]=h):h=e[18];let g;return e[19]!==i.key||e[20]!==h?(g=s.jsx(xe,{children:h},n),e[19]=i.key,e[20]=h,e[21]=g):g=e[21],g}function mi(t){const e=z.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(ri,{className:"my-2"}),e[0]=n):n=e[0],n}case"spacer":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1"}),e[1]=n):n=e[1],n}case"group":{const n=i.group.label,l=i.group.defaultExpanded;let o;e[2]!==i.group.items?(o=i.group.items.map(ui),e[2]=i.group.items,e[3]=o):o=e[3];let r;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==o?(r=s.jsx(di,{label:n,defaultExpanded:l,children:o}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=o,e[7]=r):r=e[7],r}case"items":{let n;e[8]!==i.items?(n=i.items.map(fi),e[8]=i.items,e[9]=n):n=e[9];let l;return e[10]!==n?(l=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=l):l=e[11],l}}}function fi(t){return s.jsx(vt,{item:t},t.key)}function ui(t){return s.jsx(vt,{item:t},t.key)}function yt(t){const e=z.c(14),{sections:i,header:n,footer:l,additionalContent:o,variant:r,collapsible:a,contentClassName:c}=t,d=r===void 0?"sidebar":r,f=a===void 0?"icon":a;let u;e[0]!==c?(u=I("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let m;e[2]!==i?(m=i.map(pi),e[2]=i,e[3]=m):m=e[3];let x;e[4]!==o||e[5]!==u||e[6]!==m?(x=s.jsxs(ai,{className:u,children:[m,o]}),e[4]=o,e[5]=u,e[6]=m,e[7]=x):x=e[7];let h;return e[8]!==f||e[9]!==l||e[10]!==n||e[11]!==x||e[12]!==d?(h=s.jsxs(ni,{variant:d,collapsible:f,children:[n,x,l]}),e[8]=f,e[9]=l,e[10]=n,e[11]=x,e[12]=d,e[13]=h):h=e[13],h}function pi(t,e){return s.jsx(mi,{section:t},e)}yt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,i)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(ae,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function xi(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(ae,{className:"h-8 w-full rounded-lg"}),s.jsx(ae,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function hi(t){const e=z.c(12),{organizationId:i,currentProjectSlug:n,onSelect:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:r}=dt(i,o);let a,c;if(e[1]!==n||e[2]!==l||e[3]!==r){c=Symbol.for("react.early_return_sentinel");e:{const f=r?.filter(gi)??[];if(f.length===0){let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=m):m=e[6],c=m;break e}let u;e[7]!==n||e[8]!==l?(u=m=>{const x=n===m.slug,h=m.ui?.themeColor??"#3B82F6";return s.jsxs(re,{className:I("gap-2.5",x&&"bg-accent"),onClick:()=>l(m.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:m.ui?.icon?void 0:{backgroundColor:h},children:m.ui?.icon?s.jsx("img",{src:m.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:m.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:m.name}),x&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},m.id)},e[7]=n,e[8]=l,e[9]=u):u=e[9],a=f.map(u)}e[1]=n,e[2]=l,e[3]=r,e[4]=a,e[5]=c}else a=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==a?(d=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=d):d=e[11],d}function gi(t){return t.slug!==Z}function bi(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const i=Math.abs(e)%360;return{backgroundColor:`hsl(${i} 55% 70%)`,color:`hsl(${i} 55% 20%)`}}function qe(t){const e=z.c(96),{isCollapsed:i,onCreateProject:n}=t,l=i===void 0?!1:i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:r,project:a}=it(o),{data:c}=ye.useListOrganizations(),d=Xe(),f=c?.find(Q=>Q.slug===r),[u,m]=A.useState(!1),x=a===Z,{data:h}=ct(f?.id??"",x?"":a??"");let g;e[1]!==r?(g=(Q,Re)=>Q.slug===r?-1:Re.slug===r?1:Q.name.localeCompare(Re.name),e[1]=r,e[2]=g):g=e[2];const j=[...c??[]].sort(g);let _;e[3]!==d||e[4]!==r?(_=()=>{r&&d({to:"/$org/$project",params:{org:r,project:Z}})},e[3]=d,e[4]=r,e[5]=_):_=e[5];const b=_;let p;e[6]!==d||e[7]!==r?(p=Q=>{r&&d({to:"/$org/$project",params:{org:r,project:Q}})},e[6]=d,e[7]=r,e[8]=p):p=e[8];const y=p;let k;e[9]!==d?(k=Q=>{d({to:"/$org/$project",params:{org:Q,project:Z}})},e[9]=d,e[10]=k):k=e[10];const v=k;let N;e[11]!==n?(N=n?()=>n():void 0,e[11]=n,e[12]=N):N=e[12];const C=N;let $;e[13]!==d||e[14]!==r||e[15]!==a?($=()=>{if(!r||!a)return;const Q=a===Z;d({to:"/$org/$project",params:{org:r,project:a},search:Re=>({...Re,settings:Q?"org.general":`project:${a}:general`})})},e[13]=d,e[14]=r,e[15]=a,e[16]=$):$=e[16];const S=$,P=ut,O=l?"w-auto pr-1.5":"w-full";let T;e[17]!==O?(T=I("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",O),e[17]=O,e[18]=T):T=e[18];const L=x?s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:f?.logo?void 0:bi(f?.name??""),children:f?.logo?s.jsx("img",{src:f.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(f?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:h?.ui?.icon?void 0:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold text-white",l?"text-xs":"text-lg"),children:(h?.name??a??"?").charAt(0).toUpperCase()})});let M;e[19]!==f?.name||e[20]!==h?.name||e[21]!==l||e[22]!==x||e[23]!==a?(M=!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:f?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:x?"Studio":h?.name??a??""})]}),s.jsx(Lt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=f?.name,e[20]=h?.name,e[21]=l,e[22]=x,e[23]=a,e[24]=M):M=e[24];let E;e[25]!==T||e[26]!==L||e[27]!==M?(E=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{type:"button",className:T,children:[L,M]})}),e[25]=T,e[26]=L,e[27]=M,e[28]=E):E=e[28];const R=ft,D="start",U="bottom",F="w-64 flex flex-col gap-0.5",G=ji,ie=x&&"bg-accent";let ee;e[29]!==ie?(ee=I("gap-2.5",ie),e[29]=ie,e[30]=ee):ee=e[30];const ce=f?.logo??"",de=f?.name??"";let K;e[31]!==ce||e[32]!==de?(K=s.jsx(Ie,{url:ce,fallback:de,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),e[31]=ce,e[32]=de,e[33]=K):K=e[33];const X=f?.name;let V;e[34]!==X?(V=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",X]}),e[34]=X,e[35]=V):V=e[35];let me;e[36]!==x?(me=x&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=x,e[37]=me):me=e[37];let q;e[38]!==b||e[39]!==ee||e[40]!==K||e[41]!==V||e[42]!==me?(q=s.jsxs(re,{className:ee,onClick:b,children:[K,V,me]}),e[38]=b,e[39]=ee,e[40]=K,e[41]=V,e[42]=me,e[43]=q):q=e[43];let Y;e[44]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),e[44]=Y):Y=e[44];let H;e[45]!==f||e[46]!==y||e[47]!==r||e[48]!==a?(H=f&&s.jsx(A.Suspense,{fallback:s.jsx(xi,{}),children:s.jsx(hi,{organizationId:f.id,currentProjectSlug:a,orgSlug:r??"",onSelect:y})}),e[45]=f,e[46]=y,e[47]=r,e[48]=a,e[49]=H):H=e[49];let te;e[50]!==C?(te=C&&s.jsxs(re,{className:"gap-2.5",onClick:C,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=C,e[51]=te):te=e[51];let B;e[52]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(He,{}),e[52]=B):B=e[52];const J=gs;let se;e[53]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsxs(bs,{className:"gap-2.5",children:[s.jsx(js,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=se):se=e[53];const fe=hs,je="w-48 flex flex-col gap-0.5";let ne;e[54]!==v||e[55]!==r?(ne=Q=>s.jsxs(re,{className:I("gap-2.5",Q.slug===r&&"bg-accent"),onClick:()=>v(Q.slug),children:[s.jsx(Ie,{url:Q.logo??"",fallback:Q.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:Q.name}),Q.slug===r&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},Q.id),e[54]=v,e[55]=r,e[56]=ne):ne=e[56];const w=j.map(ne);let W;e[57]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(He,{}),e[57]=W):W=e[57];let le;e[58]!==m?(le=()=>m(!0),e[58]=m,e[59]=le):le=e[59];let he,Ne;e[60]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),Ne=s.jsx("span",{children:"Create organization"}),e[60]=he,e[61]=Ne):(he=e[60],Ne=e[61]);let ue;e[62]!==le?(ue=s.jsxs(re,{className:"gap-2.5",onClick:le,children:[he,Ne]}),e[62]=le,e[63]=ue):ue=e[63];let pe;e[64]!==fe||e[65]!==w||e[66]!==ue?(pe=s.jsxs(fe,{className:je,children:[w,W,ue]}),e[64]=fe,e[65]=w,e[66]=ue,e[67]=pe):pe=e[67];let Se;e[68]!==J||e[69]!==se||e[70]!==pe?(Se=s.jsxs(J,{children:[se,pe]}),e[68]=J,e[69]=se,e[70]=pe,e[71]=Se):Se=e[71];let Te,De;e[72]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(Ue,{size:14,className:"shrink-0 text-muted-foreground"}),De=s.jsx("span",{children:"Settings"}),e[72]=Te,e[73]=De):(Te=e[72],De=e[73]);let _e;e[74]!==S?(_e=s.jsxs(re,{className:"gap-2.5",onClick:S,children:[Te,De]}),e[74]=S,e[75]=_e):_e=e[75];let ke;e[76]!==R||e[77]!==G||e[78]!==q||e[79]!==Y||e[80]!==H||e[81]!==te||e[82]!==B||e[83]!==Se||e[84]!==_e?(ke=s.jsxs(R,{align:D,side:U,className:F,onCloseAutoFocus:G,children:[q,Y,H,te,B,Se,_e]}),e[76]=R,e[77]=G,e[78]=q,e[79]=Y,e[80]=H,e[81]=te,e[82]=B,e[83]=Se,e[84]=_e,e[85]=ke):ke=e[85];let Ce;e[86]!==P||e[87]!==E||e[88]!==ke?(Ce=s.jsxs(P,{children:[E,ke]}),e[86]=P,e[87]=E,e[88]=ke,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==m?(we=s.jsx(ys,{open:u,onOpenChange:m}),e[90]=u,e[91]=m,e[92]=we):we=e[92];let Me;return e[93]!==Ce||e[94]!==we?(Me=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=Me):Me=e[95],Me}function ji(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(ae,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ye(t){const e=z.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:l}=Fe(),o=n==="collapsed";let r;return e[0]!==o||e[1]!==i||e[2]!==l?(r=s.jsx(jt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(be,{children:s.jsx(xe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:i}),s.jsx(Oe,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(Oe,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=i,e[2]=l,e[3]=r):r=e[3],r}Ye.Skeleton=function(){return s.jsx(jt,{className:"px-3",children:s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(ae,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(ae,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function vi(t){const e=z.c(50),{user:i,userImage:n}=t,{open:l}=at(),[o,r]=A.useState(!1);let a;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(a=()=>{const G=`ID: ${i.id}
2
2
  Name: ${i.name||"N/A"}
3
- Email: ${i.email}`;navigator.clipboard.writeText(G),r(!0),ve.success("User info copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=a):a=e[3];const c=a,d=i.name||i.email||"U";let f;e[4]!==d||e[5]!==n?(f=s.jsx(Ie,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=f):f=e[6];const u=i.name||"User";let m;e[7]!==u?(m=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=m):m=e[8];let x;e[9]!==f||e[10]!==m?(x=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[f,m]})}),e[9]=f,e[10]=m,e[11]=x):x=e[11];const h=i.name||i.email||"U";let g;e[12]!==h||e[13]!==n?(g=s.jsx(Ie,{url:n,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=n,e[14]=g):g=e[14];const j=i.name||"User";let _;e[15]!==j?(_=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=_):_=e[16];let b;e[17]!==i.email?(b=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i.email}),e[17]=i.email,e[18]=b):b=e[18];let p;e[19]!==_||e[20]!==b?(p=s.jsxs("div",{className:"flex-1 min-w-0",children:[_,b]}),e[19]=_,e[20]=b,e[21]=p):p=e[21];let y;e[22]!==o?(y=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?s.jsx(Pe,{size:14,className:"text-green-600"}):s.jsx(Ns,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=y):y=e[23];let k;e[24]!==c||e[25]!==p||e[26]!==y||e[27]!==g?(k=s.jsxs(re,{onClick:c,className:"gap-2.5 group",children:[g,p,y]}),e[24]=c,e[25]=p,e[26]=y,e[27]=g,e[28]=k):k=e[28];let v;e[29]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(He,{}),e[29]=v):v=e[29];let N;e[30]!==l?(N=()=>l("account.preferences"),e[30]=l,e[31]=N):N=e[31];let C,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Ue,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=C,e[33]=$):(C=e[32],$=e[33]);let S;e[34]!==N?(S=s.jsxs(re,{className:"gap-2.5",onClick:N,children:[C,$]}),e[34]=N,e[35]=S):S=e[35];let P;e[36]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(re,{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(Ss,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=P):P=e[36];let O;e[37]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(re,{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(ks,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=O):O=e[37];let T;e[38]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(re,{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($t,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=T):T=e[38];let L;e[39]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(re,{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(et,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=L):L=e[39];let M,E;e[40]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(re,{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(_s,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),E=s.jsx(He,{}),e[40]=M,e[41]=E):(M=e[40],E=e[41]);let R;e[42]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsxs(re,{className:"gap-2.5",onClick:yi,children:[s.jsx(gt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=R):R=e[42];let D;e[43]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.175.2"]})}),e[43]=D):D=e[43];let U;e[44]!==k||e[45]!==S?(U=s.jsxs(ft,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ni,children:[k,v,S,P,O,T,L,M,E,R,D]}),e[44]=k,e[45]=S,e[46]=U):U=e[46];let F;return e[47]!==U||e[48]!==x?(F=s.jsxs(ut,{children:[x,U]}),e[47]=U,e[48]=x,e[49]=F):F=e[49],F}function yi(){return ye.signOut()}function Ni(t){return t.preventDefault()}function Nt(){const t=z.c(7),{data:e}=ye.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const i=e.user,n=i.name??void 0;let l;t[1]!==n||t[2]!==i?(l={...i,name:n},t[1]=n,t[2]=i,t[3]=l):l=t[3];const o=l,r=i.image;let a;return t[4]!==r||t[5]!==o?(a=s.jsx(vi,{user:o,userImage:r}),t[4]=r,t[5]=o,t[6]=a):a=t[6],a}function Si({invitation:t}){const[e,i]=A.useState(!1),[n,l]=A.useState(!1),o=It(),r=async()=>{i(!0);try{const c=await ye.organization.acceptInvitation({invitationId:t.id});if(c.error)ve.error(c.error.message),i(!1);else{const d=await ye.organization.setActive({organizationId:t.organizationId});ve.success("Invitation accepted!");const f=d?.data?.slug;window.location.href=f?`/${f}`:"/"}}catch{ve.error("Failed to accept invitation"),i(!1)}},a=async()=>{l(!0);try{const c=await ye.organization.rejectInvitation({invitationId:t.id});c.error?(ve.error(c.error.message),l(!1)):(ve.success("Invitation declined"),o.invalidateQueries())}catch{ve.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(We,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:r,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(We,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(zs,{size:14})})]})]})}function _i(){const t=A.useContext(zt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class ki extends A.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}const Ci="gateway-chip-period";function wi(){try{const t=localStorage.getItem(Ci);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function $i(t,e){if(!e||e<=0)return"text-foreground/70";const i=t/e;return i<=.05?"text-destructive":i<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function zi(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ii(t){const e=z.c(42),{connectionId:i}=t,{open:n}=at(),{org:l}=ze();let o;e[0]!==i||e[1]!==l.id?(o={connectionId:i,orgId:l.id},e[0]=i,e[1]=l.id,e[2]=o):o=e[2];const r=Ft(o);let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a={},e[3]=a):a=e[3];let c;e[4]!==r?(c={client:r,toolName:"GATEWAY_USAGE",toolArguments:a,staleTime:6e4,select:Pi},e[4]=r,e[5]=c):c=e[5];const{data:d}=Ps(c),f=d?.billing.mode??"prepaid",u=d?.limit.total??null,m=d?.limit.remaining??0;let x;e[6]!==d?.usage?(x=d?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=d?.usage,e[7]=x):x=e[7];const h=x;let g,j,_,b,p,y,k;if(e[8]!==f||e[9]!==g||e[10]!==m||e[11]!==u||e[12]!==n||e[13]!==h){let C;if(f==="prepaid"){g="Credits";let S;e[21]!==m?(S=m.toFixed(2),e[21]=m,e[22]=S):S=e[22],j=`$${S}`,C=$i(m,u)}else if(u!=null&&u>0){const S=u-m;let P;e[23]!==u||e[24]!==S?(P=Math.round(S/u*100),e[23]=u,e[24]=S,e[25]=P):P=e[25];const O=Math.min(100,P);g="Usage",j=`${O}%`,C=zi(O)}else{const S=wi(),P=S==="daily"?h.daily:S==="weekly"?h.weekly:h.monthly,O=S==="daily"?"/day":S==="weekly"?"/wk":"/mo";g="Usage";let T;e[26]!==P?(T=P.toFixed(2),e[26]=P,e[27]=T):T=e[27],j=`$${T}${O}`,C="text-foreground/70"}b="button",e[28]!==n?(p=()=>n("org.billing"),e[28]=n,e[29]=p):p=e[29],y="group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors";let $;e[30]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(vs,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=$):$=e[30],e[31]!==g?(k=s.jsxs("div",{className:"flex items-center gap-1.5",children:[$,s.jsx("span",{className:"text-xs text-muted-foreground",children:g})]}),e[31]=g,e[32]=k):k=e[32],_=I("text-xs font-medium tabular-nums",C),e[8]=f,e[9]=g,e[10]=m,e[11]=u,e[12]=n,e[13]=h,e[14]=_,e[15]=b,e[16]=p,e[17]=y,e[18]=k,e[19]=g,e[20]=j}else _=e[14],b=e[15],p=e[16],y=e[17],k=e[18],g=e[19],j=e[20];let v;e[33]!==_||e[34]!==j?(v=s.jsx("span",{className:_,children:j}),e[33]=_,e[34]=j,e[35]=v):v=e[35];let N;return e[36]!==v||e[37]!==b||e[38]!==p||e[39]!==y||e[40]!==k?(N=s.jsxs("button",{type:b,onClick:p,className:y,children:[k,v]}),e[36]=v,e[37]=b,e[38]=p,e[39]=y,e[40]=k,e[41]=N):N=e[41],N}function Pi(t){return t.structuredContent}function Ai(){const t=z.c(4),e=Is();let i;t[0]!==e?(i=e.find(Ei),t[0]=e,t[1]=i):i=t[1];const n=i;if(!n?.id)return null;let l;return t[2]!==n.id?(l=s.jsx(Ii,{connectionId:n.id}),t[2]=n.id,t[3]=l):l=t[3],l}function Ei(t){return As(t,Es)}function Oi(){const t=z.c(13),e=_i();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ki,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(Ai,{})})}),t[0]=i):i=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Nt,{})}),t[1]=n):n=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ws,{asChild:!0,children:s.jsx(We,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=l):l=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let r;t[5]!==o?(r=s.jsxs("div",{className:"relative",children:[l,o]}),t[5]=o,t[6]=r):r=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let c;t[8]!==e?(c=s.jsxs(Cs,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Ti)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==r||t[11]!==c?(d=s.jsxs(oi,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs($s,{children:[r,c]})})]})})})]}),t[10]=r,t[11]=c,t[12]=d):d=t[12],d}function Ti(t){return s.jsx(Si,{invitation:t},t.id)}function Di(t){const e=z.c(11),{project:i}=t,n=i.ui?.themeColor??"#60a5fa";if(i.ui?.icon){let c;return e[0]!==i.ui.icon?(c=s.jsx("img",{src:i.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=i.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==n?(l={backgroundColor:n},e[2]=n,e[3]=l):l=e[3];let o;e[4]!==i.name?(o=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=o):o=e[5];let r;e[6]!==o?(r=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=r):r=e[7];let a;return e[8]!==l||e[9]!==r?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:r}),e[8]=l,e[9]=r,e[10]=a):a=e[10],a}function Mi(t){const e=z.c(14),{project:i}=t,n=Xe(),{org:l}=ze();let o;e[0]!==n||e[1]!==l.slug||e[2]!==i.slug?(o=()=>{n({to:"/$org/$project",params:{org:l.slug,project:i.slug}})},e[0]=n,e[1]=l.slug,e[2]=i.slug,e[3]=o):o=e[3];let r;e[4]!==i?(r=s.jsx(Di,{project:i}),e[4]=i,e[5]=r):r=e[5];let a;e[6]!==i.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=a):a=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ms,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=c):c=e[8];let d;return e[9]!==i.name||e[10]!==o||e[11]!==r||e[12]!==a?(d=s.jsx(xe,{children:s.jsxs(Oe,{onClick:o,tooltip:i.name,children:[r,a,c]})}),e[9]=i.name,e[10]=o,e[11]=r,e[12]=a,e[13]=d):d=e[13],d}function Ri(){const t=z.c(55),{org:e}=ze(),{data:i,isLoading:n}=dt(e.id),[l,o]=A.useState(!0),[r,a]=A.useState(!1);let c,d,f,u,m,x,h,g,j,_,b,p,y;if(t[0]!==n||t[1]!==l||t[2]!==i){y=Symbol.for("react.early_return_sentinel");e:{const T=i?.filter(Ui)??[];if(n){let F;t[16]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})}),t[16]=F):F=t[16];let G;t[17]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(be,{className:"gap-0.5",children:[F,s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})]})})}),t[17]=G):G=t[17],y=G;break e}p="group/projects-section mt-2",m=Os,_=l,b=o,u=Ae,j="py-0 px-0",f=Ee,d=be,h="gap-0.5";let L;t[18]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=L):L=t[18];const M=!l&&"-rotate-90";let E;t[19]!==M?(E=I("text-muted-foreground shrink-0 transition-transform duration-200",M),t[19]=M,t[20]=E):E=t[20];let R;t[21]!==E?(R=s.jsx(Ts,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[L,s.jsx(mt,{size:12,className:E})]})}),t[21]=E,t[22]=R):R=t[22];let D;t[23]===Symbol.for("react.memo_cache_sentinel")?(D=()=>a(!0),t[23]=D):D=t[23];let U;t[24]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("button",{type:"button",onClick:D,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=U):U=t[24],t[25]!==R?(g=s.jsx(xe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[R,U]})}),t[25]=R,t[26]=g):g=t[26],c=Ds,x=T.length===0?s.jsx(xe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):T.map(Li)}t[0]=n,t[1]=l,t[2]=i,t[3]=c,t[4]=d,t[5]=f,t[6]=u,t[7]=m,t[8]=x,t[9]=h,t[10]=g,t[11]=j,t[12]=_,t[13]=b,t[14]=p,t[15]=y}else c=t[3],d=t[4],f=t[5],u=t[6],m=t[7],x=t[8],h=t[9],g=t[10],j=t[11],_=t[12],b=t[13],p=t[14],y=t[15];if(y!==Symbol.for("react.early_return_sentinel"))return y;let k;t[27]!==c||t[28]!==x?(k=s.jsx(c,{children:x}),t[27]=c,t[28]=x,t[29]=k):k=t[29];let v;t[30]!==d||t[31]!==h||t[32]!==g||t[33]!==k?(v=s.jsxs(d,{className:h,children:[g,k]}),t[30]=d,t[31]=h,t[32]=g,t[33]=k,t[34]=v):v=t[34];let N;t[35]!==f||t[36]!==v?(N=s.jsx(f,{children:v}),t[35]=f,t[36]=v,t[37]=N):N=t[37];let C;t[38]!==u||t[39]!==N||t[40]!==j?(C=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=C):C=t[41];let $;t[42]!==m||t[43]!==C||t[44]!==_||t[45]!==b?($=s.jsx(m,{open:_,onOpenChange:b,children:C}),t[42]=m,t[43]=C,t[44]=_,t[45]=b,t[46]=$):$=t[46];let S;t[47]!==$||t[48]!==p?(S=s.jsx("div",{className:p,children:$}),t[47]=$,t[48]=p,t[49]=S):S=t[49];let P;t[50]!==r?(P=s.jsx(rt,{open:r,onOpenChange:a}),t[50]=r,t[51]=P):P=t[51];let O;return t[52]!==S||t[53]!==P?(O=s.jsxs(s.Fragment,{children:[S,P]}),t[52]=S,t[53]=P,t[54]=O):O=t[54],O}function Li(t){return s.jsx(Mi,{project:t},t.id)}function Ui(t){return t.slug!==Z}function Hi(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(A.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Ri,{})}),t[0]=e):e=t[0],e}function Bi(t){const e=z.c(12),{onCreateProject:i}=t,n=Vs(),{locator:l}=ze();let o;e[0]!==l?(o=Ge.isOrgAdminProject(l),e[0]=l,e[1]=o):o=e[1];const r=o;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ye.Skeleton,{}),e[2]=a):a=e[2];let c;e[3]!==i?(c=s.jsx(A.Suspense,{fallback:a,children:s.jsx(Ye,{onCreateProject:i})}),e[3]=i,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Oi,{}),e[5]=d):d=e[5];let f;e[6]!==r?(f=r?s.jsx(Qe,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(Hi,{})})}):null,e[6]=r,e[7]=f):f=e[7];let u;return e[8]!==n||e[9]!==c||e[10]!==f?(u=s.jsx(yt,{sections:n,header:c,footer:d,additionalContent:f}),e[8]=n,e[9]=c,e[10]=f,e[11]=u):u=e[11],u}function Fi(){const t=z.c(5),i=Je().location.href;let n;t[0]!==i?(n=i==="/login"||i.startsWith("/login?"),t[0]=i,t[1]=n):n=t[1];const l=n;let o;if(t[2]!==i||t[3]!==l){const r=l?{}:{next:i};o=s.jsx(Ot,{to:"/login",search:r,replace:!0}),t[2]=i,t[3]=l,t[4]=o}else o=t[4];return o}function Gi(t){const e=z.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Pt,{children:s.jsx(nt,{})}),e[0]=n):n=e[0];let l;e[1]!==i?(l=s.jsx(At,{children:i}),e[1]=i,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Et,{children:s.jsx(Fi,{})}),e[3]=o):o=e[3];let r;return e[4]!==l?(r=s.jsxs(s.Fragment,{children:[n,l,o]}),e[4]=l,e[5]=r):r=e[5],r}function Wi(t){const e=z.c(10),{children:i,className:n}=t,[,l]=A.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Be.decoChatPanelWidth(),e[0]=o):o=e[0];const[r,a]=Ze(o,30);let c;e[1]!==a?(c=m=>l(()=>a(m)),e[1]=a,e[2]=c):c=e[2];const d=c;let f;e[3]!==n?(f=I("min-w-0",n),e[3]=n,e[4]=f):f=e[4];let u;return e[5]!==r||e[6]!==i||e[7]!==d||e[8]!==f?(u=s.jsx(xt,{defaultSize:r,minSize:20,className:f,onResize:d,children:i}),e[5]=r,e[6]=i,e[7]=d,e[8]=f,e[9]=u):u=e[9],u}function Ki(t){const e=z.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Be.sidebarOpen(),e[0]=n):n=e[0];const[l,o]=Ze(n,!0);let r;return e[1]!==i||e[2]!==o||e[3]!==l?(r=s.jsx(ei,{open:l,onOpenChange:o,children:i}),e[1]=i,e[2]=o,e[3]=l,e[4]=r):r=e[4],r}function Vi(t){const e=z.c(23),{isHomeRoute:i,onCreateProject:n}=t,[l]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Be.decoChatPanelWidth(),e[0]=o):o=e[0];const[r]=Ze(o,30),a=`${r}cqi`;let c;e[1]!==a?(c={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":a},e[1]=a,e[2]=c):c=e[2];const d=c;let f;e[3]!==n?(f=s.jsx(Bi,{onCreateProject:n}),e[3]=n,e[4]=f):f=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",containerType:"inline-size"},e[5]=u):u=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m={overflow:"visible"},e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x={overflow:"visible"},e[7]=x):x=e[7];const h=l&&"rounded-tr-[0.75rem] border-r";let g;e[8]!==h?(g=I("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",h),e[8]=h,e[9]=g):g=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(lt,{})}),e[10]=j):j=e[10];let _;e[11]!==g?(_=s.jsx(xt,{className:"min-w-0 flex flex-col",style:x,children:s.jsx("div",{className:g,children:j})}),e[11]=g,e[12]=_):_=e[12];let b;e[13]!==l||e[14]!==i?(b=!i&&s.jsxs(s.Fragment,{children:[s.jsx(Rs,{className:"bg-sidebar"}),s.jsx(Wi,{className:I("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Bs,{})})})})]}),e[13]=l,e[14]=i,e[15]=b):b=e[15];let p;e[16]!==_||e[17]!==b?(p=s.jsx(li,{className:"pt-1.5",style:u,children:s.jsxs(Ls,{direction:"horizontal",className:"h-full",style:m,children:[_,b]})}),e[16]=_,e[17]=b,e[18]=p):p=e[18];let y;return e[19]!==p||e[20]!==d||e[21]!==f?(y=s.jsxs(ii,{className:"flex-1 bg-sidebar",style:d,children:[f,p]}),e[19]=p,e[20]=d,e[21]=f,e[22]=y):y=e[22],y}function qi(){const{org:t,project:e}=it({strict:!1}),i=Je(),[n,l]=A.useState(!1),[o,r]=A.useState(!1);A.useEffect(()=>{const u=m=>{Ut(m)&&m.code==="KeyK"&&(m.preventDefault(),r(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const a=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,c=e??Z,{data:d}=Tt({queryKey:Dt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:u}=await ye.organization.setActive({organizationSlug:t});return u&&localStorage.setItem(Be.lastOrgSlug(),t),{org:u,project:{slug:c,isOrgAdmin:c===Z}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!d)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(Nt,{})})}),s.jsx(lt,{})]});if(!d.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const f={...d,project:{...d.project,slug:c,isOrgAdmin:c===Z}};return s.jsxs(Mt,{...f,children:[s.jsx(Ki,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Vi,{isHomeRoute:a,onCreateProject:()=>l(!0)})})})}),s.jsx(rt,{open:n,onOpenChange:l}),s.jsx(Fs,{open:o,onOpenChange:r})]})}function Yl(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Gi,{children:s.jsx(A.Suspense,{fallback:s.jsx(nt,{}),children:s.jsx(qi,{})})}),t[0]=e):e=t[0],e}export{Yl as default};
3
+ Email: ${i.email}`;navigator.clipboard.writeText(G),r(!0),ve.success("User info copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=a):a=e[3];const c=a,d=i.name||i.email||"U";let f;e[4]!==d||e[5]!==n?(f=s.jsx(Ie,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=f):f=e[6];const u=i.name||"User";let m;e[7]!==u?(m=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=m):m=e[8];let x;e[9]!==f||e[10]!==m?(x=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[f,m]})}),e[9]=f,e[10]=m,e[11]=x):x=e[11];const h=i.name||i.email||"U";let g;e[12]!==h||e[13]!==n?(g=s.jsx(Ie,{url:n,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=n,e[14]=g):g=e[14];const j=i.name||"User";let _;e[15]!==j?(_=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=_):_=e[16];let b;e[17]!==i.email?(b=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i.email}),e[17]=i.email,e[18]=b):b=e[18];let p;e[19]!==_||e[20]!==b?(p=s.jsxs("div",{className:"flex-1 min-w-0",children:[_,b]}),e[19]=_,e[20]=b,e[21]=p):p=e[21];let y;e[22]!==o?(y=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?s.jsx(Pe,{size:14,className:"text-green-600"}):s.jsx(Ns,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=y):y=e[23];let k;e[24]!==c||e[25]!==p||e[26]!==y||e[27]!==g?(k=s.jsxs(re,{onClick:c,className:"gap-2.5 group",children:[g,p,y]}),e[24]=c,e[25]=p,e[26]=y,e[27]=g,e[28]=k):k=e[28];let v;e[29]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(He,{}),e[29]=v):v=e[29];let N;e[30]!==l?(N=()=>l("account.preferences"),e[30]=l,e[31]=N):N=e[31];let C,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Ue,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=C,e[33]=$):(C=e[32],$=e[33]);let S;e[34]!==N?(S=s.jsxs(re,{className:"gap-2.5",onClick:N,children:[C,$]}),e[34]=N,e[35]=S):S=e[35];let P;e[36]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(re,{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(Ss,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=P):P=e[36];let O;e[37]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(re,{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(ks,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=O):O=e[37];let T;e[38]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(re,{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($t,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=T):T=e[38];let L;e[39]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(re,{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(et,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=L):L=e[39];let M,E;e[40]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(re,{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(_s,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),E=s.jsx(He,{}),e[40]=M,e[41]=E):(M=e[40],E=e[41]);let R;e[42]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsxs(re,{className:"gap-2.5",onClick:yi,children:[s.jsx(gt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=R):R=e[42];let D;e[43]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.175.4"]})}),e[43]=D):D=e[43];let U;e[44]!==k||e[45]!==S?(U=s.jsxs(ft,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ni,children:[k,v,S,P,O,T,L,M,E,R,D]}),e[44]=k,e[45]=S,e[46]=U):U=e[46];let F;return e[47]!==U||e[48]!==x?(F=s.jsxs(ut,{children:[x,U]}),e[47]=U,e[48]=x,e[49]=F):F=e[49],F}function yi(){return ye.signOut()}function Ni(t){return t.preventDefault()}function Nt(){const t=z.c(7),{data:e}=ye.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const i=e.user,n=i.name??void 0;let l;t[1]!==n||t[2]!==i?(l={...i,name:n},t[1]=n,t[2]=i,t[3]=l):l=t[3];const o=l,r=i.image;let a;return t[4]!==r||t[5]!==o?(a=s.jsx(vi,{user:o,userImage:r}),t[4]=r,t[5]=o,t[6]=a):a=t[6],a}function Si({invitation:t}){const[e,i]=A.useState(!1),[n,l]=A.useState(!1),o=It(),r=async()=>{i(!0);try{const c=await ye.organization.acceptInvitation({invitationId:t.id});if(c.error)ve.error(c.error.message),i(!1);else{const d=await ye.organization.setActive({organizationId:t.organizationId});ve.success("Invitation accepted!");const f=d?.data?.slug;window.location.href=f?`/${f}`:"/"}}catch{ve.error("Failed to accept invitation"),i(!1)}},a=async()=>{l(!0);try{const c=await ye.organization.rejectInvitation({invitationId:t.id});c.error?(ve.error(c.error.message),l(!1)):(ve.success("Invitation declined"),o.invalidateQueries())}catch{ve.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(We,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:r,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(We,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(zs,{size:14})})]})]})}function _i(){const t=A.useContext(zt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class ki extends A.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}const Ci="gateway-chip-period";function wi(){try{const t=localStorage.getItem(Ci);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function $i(t,e){if(!e||e<=0)return"text-foreground/70";const i=t/e;return i<=.05?"text-destructive":i<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function zi(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ii(t){const e=z.c(42),{connectionId:i}=t,{open:n}=at(),{org:l}=ze();let o;e[0]!==i||e[1]!==l.id?(o={connectionId:i,orgId:l.id},e[0]=i,e[1]=l.id,e[2]=o):o=e[2];const r=Ft(o);let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a={},e[3]=a):a=e[3];let c;e[4]!==r?(c={client:r,toolName:"GATEWAY_USAGE",toolArguments:a,staleTime:6e4,select:Pi},e[4]=r,e[5]=c):c=e[5];const{data:d}=Ps(c),f=d?.billing.mode??"prepaid",u=d?.limit.total??null,m=d?.limit.remaining??0;let x;e[6]!==d?.usage?(x=d?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=d?.usage,e[7]=x):x=e[7];const h=x;let g,j,_,b,p,y,k;if(e[8]!==f||e[9]!==g||e[10]!==m||e[11]!==u||e[12]!==n||e[13]!==h){let C;if(f==="prepaid"){g="Credits";let S;e[21]!==m?(S=m.toFixed(2),e[21]=m,e[22]=S):S=e[22],j=`$${S}`,C=$i(m,u)}else if(u!=null&&u>0){const S=u-m;let P;e[23]!==u||e[24]!==S?(P=Math.round(S/u*100),e[23]=u,e[24]=S,e[25]=P):P=e[25];const O=Math.min(100,P);g="Usage",j=`${O}%`,C=zi(O)}else{const S=wi(),P=S==="daily"?h.daily:S==="weekly"?h.weekly:h.monthly,O=S==="daily"?"/day":S==="weekly"?"/wk":"/mo";g="Usage";let T;e[26]!==P?(T=P.toFixed(2),e[26]=P,e[27]=T):T=e[27],j=`$${T}${O}`,C="text-foreground/70"}b="button",e[28]!==n?(p=()=>n("org.billing"),e[28]=n,e[29]=p):p=e[29],y="group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors";let $;e[30]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(vs,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=$):$=e[30],e[31]!==g?(k=s.jsxs("div",{className:"flex items-center gap-1.5",children:[$,s.jsx("span",{className:"text-xs text-muted-foreground",children:g})]}),e[31]=g,e[32]=k):k=e[32],_=I("text-xs font-medium tabular-nums",C),e[8]=f,e[9]=g,e[10]=m,e[11]=u,e[12]=n,e[13]=h,e[14]=_,e[15]=b,e[16]=p,e[17]=y,e[18]=k,e[19]=g,e[20]=j}else _=e[14],b=e[15],p=e[16],y=e[17],k=e[18],g=e[19],j=e[20];let v;e[33]!==_||e[34]!==j?(v=s.jsx("span",{className:_,children:j}),e[33]=_,e[34]=j,e[35]=v):v=e[35];let N;return e[36]!==v||e[37]!==b||e[38]!==p||e[39]!==y||e[40]!==k?(N=s.jsxs("button",{type:b,onClick:p,className:y,children:[k,v]}),e[36]=v,e[37]=b,e[38]=p,e[39]=y,e[40]=k,e[41]=N):N=e[41],N}function Pi(t){return t.structuredContent}function Ai(){const t=z.c(4),e=Is();let i;t[0]!==e?(i=e.find(Ei),t[0]=e,t[1]=i):i=t[1];const n=i;if(!n?.id)return null;let l;return t[2]!==n.id?(l=s.jsx(Ii,{connectionId:n.id}),t[2]=n.id,t[3]=l):l=t[3],l}function Ei(t){return As(t,Es)}function Oi(){const t=z.c(13),e=_i();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ki,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(Ai,{})})}),t[0]=i):i=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Nt,{})}),t[1]=n):n=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ws,{asChild:!0,children:s.jsx(We,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=l):l=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let r;t[5]!==o?(r=s.jsxs("div",{className:"relative",children:[l,o]}),t[5]=o,t[6]=r):r=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let c;t[8]!==e?(c=s.jsxs(Cs,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Ti)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==r||t[11]!==c?(d=s.jsxs(oi,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs($s,{children:[r,c]})})]})})})]}),t[10]=r,t[11]=c,t[12]=d):d=t[12],d}function Ti(t){return s.jsx(Si,{invitation:t},t.id)}function Di(t){const e=z.c(11),{project:i}=t,n=i.ui?.themeColor??"#60a5fa";if(i.ui?.icon){let c;return e[0]!==i.ui.icon?(c=s.jsx("img",{src:i.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=i.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==n?(l={backgroundColor:n},e[2]=n,e[3]=l):l=e[3];let o;e[4]!==i.name?(o=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=o):o=e[5];let r;e[6]!==o?(r=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=r):r=e[7];let a;return e[8]!==l||e[9]!==r?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:r}),e[8]=l,e[9]=r,e[10]=a):a=e[10],a}function Mi(t){const e=z.c(14),{project:i}=t,n=Xe(),{org:l}=ze();let o;e[0]!==n||e[1]!==l.slug||e[2]!==i.slug?(o=()=>{n({to:"/$org/$project",params:{org:l.slug,project:i.slug}})},e[0]=n,e[1]=l.slug,e[2]=i.slug,e[3]=o):o=e[3];let r;e[4]!==i?(r=s.jsx(Di,{project:i}),e[4]=i,e[5]=r):r=e[5];let a;e[6]!==i.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=a):a=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ms,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=c):c=e[8];let d;return e[9]!==i.name||e[10]!==o||e[11]!==r||e[12]!==a?(d=s.jsx(xe,{children:s.jsxs(Oe,{onClick:o,tooltip:i.name,children:[r,a,c]})}),e[9]=i.name,e[10]=o,e[11]=r,e[12]=a,e[13]=d):d=e[13],d}function Ri(){const t=z.c(55),{org:e}=ze(),{data:i,isLoading:n}=dt(e.id),[l,o]=A.useState(!0),[r,a]=A.useState(!1);let c,d,f,u,m,x,h,g,j,_,b,p,y;if(t[0]!==n||t[1]!==l||t[2]!==i){y=Symbol.for("react.early_return_sentinel");e:{const T=i?.filter(Ui)??[];if(n){let F;t[16]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})}),t[16]=F):F=t[16];let G;t[17]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(be,{className:"gap-0.5",children:[F,s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})]})})}),t[17]=G):G=t[17],y=G;break e}p="group/projects-section mt-2",m=Os,_=l,b=o,u=Ae,j="py-0 px-0",f=Ee,d=be,h="gap-0.5";let L;t[18]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=L):L=t[18];const M=!l&&"-rotate-90";let E;t[19]!==M?(E=I("text-muted-foreground shrink-0 transition-transform duration-200",M),t[19]=M,t[20]=E):E=t[20];let R;t[21]!==E?(R=s.jsx(Ts,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[L,s.jsx(mt,{size:12,className:E})]})}),t[21]=E,t[22]=R):R=t[22];let D;t[23]===Symbol.for("react.memo_cache_sentinel")?(D=()=>a(!0),t[23]=D):D=t[23];let U;t[24]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("button",{type:"button",onClick:D,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=U):U=t[24],t[25]!==R?(g=s.jsx(xe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[R,U]})}),t[25]=R,t[26]=g):g=t[26],c=Ds,x=T.length===0?s.jsx(xe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):T.map(Li)}t[0]=n,t[1]=l,t[2]=i,t[3]=c,t[4]=d,t[5]=f,t[6]=u,t[7]=m,t[8]=x,t[9]=h,t[10]=g,t[11]=j,t[12]=_,t[13]=b,t[14]=p,t[15]=y}else c=t[3],d=t[4],f=t[5],u=t[6],m=t[7],x=t[8],h=t[9],g=t[10],j=t[11],_=t[12],b=t[13],p=t[14],y=t[15];if(y!==Symbol.for("react.early_return_sentinel"))return y;let k;t[27]!==c||t[28]!==x?(k=s.jsx(c,{children:x}),t[27]=c,t[28]=x,t[29]=k):k=t[29];let v;t[30]!==d||t[31]!==h||t[32]!==g||t[33]!==k?(v=s.jsxs(d,{className:h,children:[g,k]}),t[30]=d,t[31]=h,t[32]=g,t[33]=k,t[34]=v):v=t[34];let N;t[35]!==f||t[36]!==v?(N=s.jsx(f,{children:v}),t[35]=f,t[36]=v,t[37]=N):N=t[37];let C;t[38]!==u||t[39]!==N||t[40]!==j?(C=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=C):C=t[41];let $;t[42]!==m||t[43]!==C||t[44]!==_||t[45]!==b?($=s.jsx(m,{open:_,onOpenChange:b,children:C}),t[42]=m,t[43]=C,t[44]=_,t[45]=b,t[46]=$):$=t[46];let S;t[47]!==$||t[48]!==p?(S=s.jsx("div",{className:p,children:$}),t[47]=$,t[48]=p,t[49]=S):S=t[49];let P;t[50]!==r?(P=s.jsx(rt,{open:r,onOpenChange:a}),t[50]=r,t[51]=P):P=t[51];let O;return t[52]!==S||t[53]!==P?(O=s.jsxs(s.Fragment,{children:[S,P]}),t[52]=S,t[53]=P,t[54]=O):O=t[54],O}function Li(t){return s.jsx(Mi,{project:t},t.id)}function Ui(t){return t.slug!==Z}function Hi(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(A.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Ri,{})}),t[0]=e):e=t[0],e}function Bi(t){const e=z.c(12),{onCreateProject:i}=t,n=Vs(),{locator:l}=ze();let o;e[0]!==l?(o=Ge.isOrgAdminProject(l),e[0]=l,e[1]=o):o=e[1];const r=o;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ye.Skeleton,{}),e[2]=a):a=e[2];let c;e[3]!==i?(c=s.jsx(A.Suspense,{fallback:a,children:s.jsx(Ye,{onCreateProject:i})}),e[3]=i,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Oi,{}),e[5]=d):d=e[5];let f;e[6]!==r?(f=r?s.jsx(Qe,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(Hi,{})})}):null,e[6]=r,e[7]=f):f=e[7];let u;return e[8]!==n||e[9]!==c||e[10]!==f?(u=s.jsx(yt,{sections:n,header:c,footer:d,additionalContent:f}),e[8]=n,e[9]=c,e[10]=f,e[11]=u):u=e[11],u}function Fi(){const t=z.c(5),i=Je().location.href;let n;t[0]!==i?(n=i==="/login"||i.startsWith("/login?"),t[0]=i,t[1]=n):n=t[1];const l=n;let o;if(t[2]!==i||t[3]!==l){const r=l?{}:{next:i};o=s.jsx(Ot,{to:"/login",search:r,replace:!0}),t[2]=i,t[3]=l,t[4]=o}else o=t[4];return o}function Gi(t){const e=z.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Pt,{children:s.jsx(nt,{})}),e[0]=n):n=e[0];let l;e[1]!==i?(l=s.jsx(At,{children:i}),e[1]=i,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Et,{children:s.jsx(Fi,{})}),e[3]=o):o=e[3];let r;return e[4]!==l?(r=s.jsxs(s.Fragment,{children:[n,l,o]}),e[4]=l,e[5]=r):r=e[5],r}function Wi(t){const e=z.c(10),{children:i,className:n}=t,[,l]=A.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Be.decoChatPanelWidth(),e[0]=o):o=e[0];const[r,a]=Ze(o,30);let c;e[1]!==a?(c=m=>l(()=>a(m)),e[1]=a,e[2]=c):c=e[2];const d=c;let f;e[3]!==n?(f=I("min-w-0",n),e[3]=n,e[4]=f):f=e[4];let u;return e[5]!==r||e[6]!==i||e[7]!==d||e[8]!==f?(u=s.jsx(xt,{defaultSize:r,minSize:20,className:f,onResize:d,children:i}),e[5]=r,e[6]=i,e[7]=d,e[8]=f,e[9]=u):u=e[9],u}function Ki(t){const e=z.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Be.sidebarOpen(),e[0]=n):n=e[0];const[l,o]=Ze(n,!0);let r;return e[1]!==i||e[2]!==o||e[3]!==l?(r=s.jsx(ei,{open:l,onOpenChange:o,children:i}),e[1]=i,e[2]=o,e[3]=l,e[4]=r):r=e[4],r}function Vi(t){const e=z.c(23),{isHomeRoute:i,onCreateProject:n}=t,[l]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Be.decoChatPanelWidth(),e[0]=o):o=e[0];const[r]=Ze(o,30),a=`${r}cqi`;let c;e[1]!==a?(c={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":a},e[1]=a,e[2]=c):c=e[2];const d=c;let f;e[3]!==n?(f=s.jsx(Bi,{onCreateProject:n}),e[3]=n,e[4]=f):f=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",containerType:"inline-size"},e[5]=u):u=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m={overflow:"visible"},e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x={overflow:"visible"},e[7]=x):x=e[7];const h=l&&"rounded-tr-[0.75rem] border-r";let g;e[8]!==h?(g=I("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",h),e[8]=h,e[9]=g):g=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(lt,{})}),e[10]=j):j=e[10];let _;e[11]!==g?(_=s.jsx(xt,{className:"min-w-0 flex flex-col",style:x,children:s.jsx("div",{className:g,children:j})}),e[11]=g,e[12]=_):_=e[12];let b;e[13]!==l||e[14]!==i?(b=!i&&s.jsxs(s.Fragment,{children:[s.jsx(Rs,{className:"bg-sidebar"}),s.jsx(Wi,{className:I("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Bs,{})})})})]}),e[13]=l,e[14]=i,e[15]=b):b=e[15];let p;e[16]!==_||e[17]!==b?(p=s.jsx(li,{className:"pt-1.5",style:u,children:s.jsxs(Ls,{direction:"horizontal",className:"h-full",style:m,children:[_,b]})}),e[16]=_,e[17]=b,e[18]=p):p=e[18];let y;return e[19]!==p||e[20]!==d||e[21]!==f?(y=s.jsxs(ii,{className:"flex-1 bg-sidebar",style:d,children:[f,p]}),e[19]=p,e[20]=d,e[21]=f,e[22]=y):y=e[22],y}function qi(){const{org:t,project:e}=it({strict:!1}),i=Je(),[n,l]=A.useState(!1),[o,r]=A.useState(!1);A.useEffect(()=>{const u=m=>{Ut(m)&&m.code==="KeyK"&&(m.preventDefault(),r(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const a=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,c=e??Z,{data:d}=Tt({queryKey:Dt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:u}=await ye.organization.setActive({organizationSlug:t});return u&&localStorage.setItem(Be.lastOrgSlug(),t),{org:u,project:{slug:c,isOrgAdmin:c===Z}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!d)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(Nt,{})})}),s.jsx(lt,{})]});if(!d.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const f={...d,project:{...d.project,slug:c,isOrgAdmin:c===Z}};return s.jsxs(Mt,{...f,children:[s.jsx(Ki,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Vi,{isHomeRoute:a,onCreateProject:()=>l(!0)})})})}),s.jsx(rt,{open:n,onOpenChange:l}),s.jsx(Fs,{open:o,onOpenChange:r})]})}function Yl(){const t=z.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Gi,{children:s.jsx(A.Suspense,{fallback:s.jsx(nt,{}),children:s.jsx(qi,{})})}),t[0]=e):e=t[0],e}export{Yl as default};
@@ -1 +1 @@
1
- import{c as E,u as q,j as n,x as F,K as v,r as k,w as _,B as O}from"./index-BXUNq6d7.js";import{u as L}from"./useQuery-Bmc4jnG2.js";import{u as R}from"./useMutation-CkdHuTyE.js";import{S as V}from"./switch-4UL4iV3X.js";import{I as A}from"./input-BFH8rk50.js";import{u as K,a as U}from"./constants-CDL9XClm.js";import{g as J}from"./types-DZ5M-eMJ.js";import{u as w}from"./unwrap-tool-result-BYXdCQMg.js";function M(s){const e=E.c(33),{connection:t,pinnedViews:o,isSaving:u,onTogglePin:h,onLabelChange:f}=s;if(t.uiTools.length===0)return null;let j;e[0]!==t.id||e[1]!==o?(j=x=>o.some(c=>c.connectionId===t.id&&c.toolName===x),e[0]=t.id,e[1]=o,e[2]=j):j=e[2];const N=j;let g;e[3]!==t.icon||e[4]!==t.title?(g=t.icon?n.jsx("img",{src:t.icon,alt:"",className:"size-4 shrink-0 rounded"}):n.jsx("div",{className:"size-4 shrink-0 rounded bg-muted flex items-center justify-center",children:n.jsx("span",{className:"text-[8px] font-medium text-muted-foreground",children:t.title.charAt(0).toUpperCase()})}),e[3]=t.icon,e[4]=t.title,e[5]=g):g=e[5];let p;e[6]!==t.title?(p=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.title}),e[6]=t.title,e[7]=p):p=e[7];let l;e[8]!==g||e[9]!==p?(l=n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g,p]}),e[8]=g,e[9]=p,e[10]=l):l=e[10];let d;if(e[11]!==t.icon||e[12]!==t.id||e[13]!==t.uiTools||e[14]!==N||e[15]!==u||e[16]!==f||e[17]!==h||e[18]!==o){let x;e[20]!==t.icon||e[21]!==t.id||e[22]!==N||e[23]!==u||e[24]!==f||e[25]!==h||e[26]!==o?(x=c=>{const P=N(c.name),I=o.find(S=>S.connectionId===t.id&&S.toolName===c.name);return n.jsxs("div",{className:"flex flex-col border-b border-border last:border-0",children:[n.jsxs("div",{className:"flex items-center justify-between gap-6 py-3 cursor-pointer",onClick:()=>h(t.id,c.name,t.icon),children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:c.name}),c.description&&n.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.description})]}),n.jsx("div",{onClick:$,className:"shrink-0",children:n.jsx(V,{checked:P,onCheckedChange:()=>h(t.id,c.name,t.icon),disabled:u})})]}),P&&I&&n.jsxs("div",{className:"pb-3 pl-0 flex items-center gap-3",onClick:Q,children:[n.jsx("label",{className:"text-xs text-muted-foreground w-12 shrink-0",children:"Label"}),n.jsx(A,{value:I.label,onChange:S=>f(t.id,c.name,S.target.value),className:"h-8 text-sm w-56",disabled:u})]})]},c.name)},e[20]=t.icon,e[21]=t.id,e[22]=N,e[23]=u,e[24]=f,e[25]=h,e[26]=o,e[27]=x):x=e[27],d=t.uiTools.map(x),e[11]=t.icon,e[12]=t.id,e[13]=t.uiTools,e[14]=N,e[15]=u,e[16]=f,e[17]=h,e[18]=o,e[19]=d}else d=e[19];let m;e[28]!==d?(m=n.jsx("div",{className:"flex flex-col",children:d}),e[28]=d,e[29]=m):m=e[29];let C;return e[30]!==l||e[31]!==m?(C=n.jsxs("div",{children:[l,m]}),e[30]=l,e[31]=m,e[32]=C):C=e[32],C}function Q(s){return s.stopPropagation()}function $(s){return s.stopPropagation()}function z(){const{org:s,project:e}=q(),t=K({connectionId:U,orgId:s.id}),o=F(),u=e.id??"",{data:h}=L({queryKey:v.projectConnections(u),enabled:!!e.id,queryFn:async()=>{const i=await t.callTool({name:"PROJECT_CONNECTION_LIST",arguments:{projectId:u}});return w(i)}}),f=h?.connections??[],j=f.map(i=>i.id).sort(),{data:N}=L({queryKey:v.projectConnectionDetails(u,j),enabled:j.length>0,queryFn:async()=>await Promise.all(f.map(async a=>{try{const y=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:a.id}}),{item:T}=w(y),r=(T?.tools??[]).filter(b=>!!J(b._meta)).map(b=>({name:b.name,description:b.description}));return{id:a.id,title:a.title,icon:a.icon,uiTools:r}}catch{return{id:a.id,title:a.title,icon:a.icon,uiTools:[]}}}))}),g=N??[],p=e.ui?.pinnedViews??[],[l,d]=k.useState(p),[m,C]=k.useState(!1),x=JSON.stringify(l)!==JSON.stringify(p),c=(i,a,y)=>{const T=l.some(r=>r.connectionId===i&&r.toolName===a);d(T?r=>r.filter(b=>!(b.connectionId===i&&b.toolName===a)):r=>[...r,{connectionId:i,toolName:a,label:a,icon:y}])},P=(i,a,y)=>{d(T=>T.map(r=>r.connectionId===i&&r.toolName===a?{...r,label:y}:r))},I=R({mutationFn:async()=>{const i=await t.callTool({name:"PROJECT_PINNED_VIEWS_UPDATE",arguments:{projectId:e.id,pinnedViews:l}});w(i)},onSuccess:()=>{o.invalidateQueries({queryKey:v.project(s.id,e.slug)}),_.success("Sidebar updated")},onError:i=>{_.error("Failed to update sidebar: "+(i instanceof Error?i.message:"Unknown error"))},onSettled:()=>C(!1)}),S=()=>{C(!0),I.mutate()},D=()=>{d(p)};return f.length===0?n.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No connections associated with this project. Add connections in the Dependencies section first."}):n.jsxs("div",{className:"space-y-6",children:[g.map(i=>n.jsx(M,{connection:i,pinnedViews:l,isSaving:m,onTogglePin:c,onLabelChange:P},i.id)),n.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[n.jsx(O,{variant:"outline",onClick:D,disabled:!x||m,children:"Cancel"}),n.jsx(O,{onClick:S,disabled:!x||m,children:m?"Saving...":"Save Changes"})]})]})}function B(){const s=E.c(3),{project:e}=q();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsxs("div",{children:[n.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Sidebar"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Pin interactive tools from your dependencies to the project sidebar for quick access."})]}),s[0]=t):t=s[0];let o;return s[1]!==e.id?(o=n.jsxs("div",{className:"flex flex-col gap-6",children:[t,n.jsx(z,{},e.id)]}),s[1]=e.id,s[2]=o):o=s[2],o}function ne(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),s[0]=e):e=s[0],e}export{ne as default};
1
+ import{c as E,u as q,j as n,x as F,K as v,r as k,w as _,B as O}from"./index-DJtnEPc7.js";import{u as L}from"./useQuery-DLey6Pvf.js";import{u as R}from"./useMutation-D77LVetF.js";import{S as V}from"./switch-7_yekA3p.js";import{I as A}from"./input-j_5WJy1c.js";import{u as K,a as U}from"./constants-4hZfe-FX.js";import{g as J}from"./types-BTzo08LL.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,y as c,j as i}from"./index-BXUNq6d7.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
1
+ import{c as n,y as c,j as i}from"./index-DJtnEPc7.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,y as d,_ as m,j as a}from"./index-BXUNq6d7.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
1
+ import{c as C,y as d,_ as m,j as a}from"./index-DJtnEPc7.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
@@ -1 +1 @@
1
- import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-BXUNq6d7.js";function R(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[_,u]of Object.entries(n))u!=null&&r.set(_,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(g,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,project:N,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/$project/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(x,{children:o.jsx(g,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(R,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
1
+ import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-DJtnEPc7.js";function R(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[_,u]of Object.entries(n))u!=null&&r.set(_,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(g,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,project:N,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/$project/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(x,{children:o.jsx(g,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(R,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
@@ -1 +1 @@
1
- import{r as c,j as i,a7 as C,ac as y,a6 as T,a9 as I,aq as M,ar as H,aa as q,c as z,y as g}from"./index-BXUNq6d7.js";var m="Switch",[A]=q(m),[U,L]=A(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var $=E,D=R;function W(r){const e=z.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
1
+ import{r as c,j as i,a7 as C,ac as y,a6 as T,a9 as I,aq as M,ar as H,aa as q,c as z,y as g}from"./index-DJtnEPc7.js";var m="Switch",[A]=q(m),[U,L]=A(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(U,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var $=E,D=R;function W(r){const e=z.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
@@ -1 +1 @@
1
- import{c as r,y as i,j as c}from"./index-BXUNq6d7.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{d as T,b as a,p as b,m as c,f as d,u as e};
1
+ import{c as r,y as i,j as c}from"./index-DJtnEPc7.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{d as T,b as a,p as b,m as c,f as d,u as e};
@@ -1 +1 @@
1
- import{r as p,am as k,a6 as M,j as d,a7 as f,a8 as P,ab as S,aa as F,ap as y,ao as V,a9 as T,an as D,c as x,y as g}from"./index-BXUNq6d7.js";var m="Tabs",[G]=F(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:o,orientation:s="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=k(i),[c,b]=M({prop:t,onChange:r,defaultProp:o??"",caller:m});return d.jsx(L,{scope:a,baseId:P(),value:c,onValueChange:b,orientation:s,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":s,...v,ref:e})})});C.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,o=h(N,a),s=w(a);return d.jsx(D,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":o.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...o}=n,s=h(I,a),i=w(a),l=E(s.baseId,t),v=$(s.baseId,t),u=t===s.value;return d.jsx(V,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(f.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...o,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?s.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=s.activationMode!=="manual";!u&&!r&&c&&s.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:o,...s}=n,i=h(R,a),l=E(i.baseId,t),v=$(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(S,{present:r||u,children:({present:b})=>d.jsx(f.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...s,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&o})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r===void 0?"pill":r;let s;e[4]!==a?(s=g("flex flex-col gap-2",a),e[4]=a,e[5]=s):s=e[5];let i;return e[6]!==t||e[7]!==s||e[8]!==o?(i=d.jsx(z,{"data-slot":"tabs","data-variant":o,className:s,...t}),e[6]=t,e[7]=s,e[8]=o,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r||"pill",s=o==="underline"?"flex h-[52px] items-center border-b border-border":o==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==s?(i=g(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r||"pill",s=o==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":o==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==s?(i=g(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let o;return e[5]!==t||e[6]!==r?(o=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=o):o=e[7],o}export{Q as T,J as a,U as b,O as c};
1
+ import{r as p,j as d,ao as k,a7 as f,a9 as T,ap as y,aa as M,am as P,a6 as S,a8 as F,an as V,ab as D,c as x,y as g}from"./index-DJtnEPc7.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:o,orientation:s="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:o??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:s,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":s,...v,ref:e})})});C.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,o=h(N,a),s=w(a);return d.jsx(V,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":o.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...o}=n,s=h(I,a),i=w(a),l=E(s.baseId,t),v=$(s.baseId,t),u=t===s.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(f.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...o,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?s.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=s.activationMode!=="manual";!u&&!r&&c&&s.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:o,...s}=n,i=h(R,a),l=E(i.baseId,t),v=$(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(f.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...s,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&o})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r===void 0?"pill":r;let s;e[4]!==a?(s=g("flex flex-col gap-2",a),e[4]=a,e[5]=s):s=e[5];let i;return e[6]!==t||e[7]!==s||e[8]!==o?(i=d.jsx(z,{"data-slot":"tabs","data-variant":o,className:s,...t}),e[6]=t,e[7]=s,e[8]=o,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r||"pill",s=o==="underline"?"flex h-[52px] items-center border-b border-border":o==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==s?(i=g(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const o=r||"pill",s=o==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":o==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==s?(i=g(s,a),e[4]=a,e[5]=s,e[6]=i):i=e[6];let l;return e[7]!==o||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":o,className:i,...t}),e[7]=o,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let o;return e[5]!==t||e[6]!==r?(o=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=o):o=e[7],o}export{Q as T,J as a,U as b,O as c};
@@ -1,4 +1,4 @@
1
- import{r as w,c as j,g as Hh,bR as jh,x as At,u as Oe,K as je,w as He,f as du,aw as Xr,j as l,E as Cr,o as Nt,q as qh,t as $h,B as he,n as Tr,y as te,aA as A0,ak as Gh,aj as zh,cv as N0,bk as Vh,cw as v0,cx as Ue,cy as Zr,cz as I0,cA as Qr,cB as R0,cC as C0,cD as x0,cE as k0,v as w0,cF as O0,cG as L0,cH as D0,cI as M0,e as P0,O as F0,bQ as Xe,cJ as Sr,al as U0}from"./index-BXUNq6d7.js";import{A as B0,d as pu,e as H0,f as ue,l as j0,g as q0,b as Wh,h as _t,i as $0,u as Yt,a as Kt}from"./context-DDV_uL9a.js";import{b as Xt,P as Zt,a as Qt}from"./popover-BcyJids_.js";import{S as le}from"./skeleton-CK2-6UkT.js";import{S as xr}from"./spinner-B1-EIDBS.js";import{T as xe,a as ke,b as we,c as fu}from"./tooltip-BGPUMzDS.js";import{u as ut,a as mu,d as Yh,i as _r}from"./constants-CDL9XClm.js";import{u as G0,g as Kh,l as Ku}from"./use-mcp-prompts-DT9l3i02.js";import{D as Xh,b as z0,e as V0,c as Zh,d as Qh,f as W0}from"./dialog-DxTRqiug.js";import{a as zl,F as kr,b as wr,c as Y0,d as Or,f as Lr}from"./form-BV3tSlED.js";import{I as Jh}from"./input-BFH8rk50.js";import{N as eb,R as tb,d as rb,f as ab,P as Vl,g as K0,h as X0,S as Z0,u as nb,j as Q0,i as ib,E as sb,e as J0}from"./index-B70G5L15.js";import{s as eT,c as tT,a as rT,e as aT}from"./usage-B8rgFVXq.js";import{i as nT}from"./ArrowUp-BuKX1RSZ.js";import{t as Wl}from"./ChevronDown-DHeagNGb.js";import{i as ob}from"./Edit01-gYPHsLoC.js";import{i as iT}from"./Lock01-dP10fLup.js";import{t as lb}from"./Users03-FsZwQwZq.js";import{i as ub}from"./XCircle-X3Ds2fko.js";import{i as gu}from"./AlertCircle-CnfwZdxb.js";import{i as sT}from"./X-CeRZ6ROs.js";import{c as cb,S as db,d as pb,a as fb,b as mb}from"./select-B-f7jgVG.js";import{u as gb,i as oT,P as lT,a as uT}from"./org-ai-providers-CQKU4ds_.js";import{i as hb}from"./ArrowLeft-C3_bzjZf.js";import{i as cT,t as bb,u as Eb}from"./use-copy-DZJI58oZ.js";import{c as dT,b as pT}from"./tabs-Cif80TZ4.js";import{B as fT}from"./badge-B-_hRtCy.js";import{a as mT,i as Tb,b as gT,c as hT,C as bT}from"./collapsible-BCGKc4Wz.js";import{i as vt}from"./Check-7kB05ju_.js";import{i as ET}from"./Code01-DDbKsccR.js";import{C as TT}from"./checkbox-COsQJsO9.js";import{i as ST}from"./AlignLeft-zj1VrWVO.js";import{a as _T}from"./Image01-U7ZIAIPc.js";import{i as yT}from"./Key01-Dq5b7fdA.js";import{s as AT}from"./RefreshCcw01-B6R5Js1R.js";import{i as hu}from"./SearchMd-DJI6OMcD.js";import{t as NT}from"./Settings01-BWkL3Bf9.js";import{a as vT}from"./Tool01-CUx5BAY-.js";import{b as bu,u as Sb,a as _b,g as Eu}from"./ai-providers-logos-Bb5LHAPU.js";import{a as IT,V as yb}from"./select-virtual-mcp-YanYQUBn.js";import{l as Xu,r as RT}from"./use-mcp-resources-DhBJVSsg.js";import{i as CT}from"./ChevronRight-Blv21S_7.js";import{a as Dr}from"./Copy01-BexEalI-.js";import{m as xT}from"./marked.esm-BaswSlok.js";import{f as Tu,p as Zu,a as Qu,n as Ju,h as Mr,s as Jt,o as Yl,b as kT,c as wT,d as ct,v as OT,e as Ab,g as ec,m as LT,i as DT,r as MT}from"./markdown-Da-6gcG9.js";import{c as PT}from"./content-blocks-o63cs2vh.js";import{M as FT}from"./mcp-app-renderer-CNc9yMN5.js";import{g as Nb}from"./types-DZ5M-eMJ.js";import{s as UT}from"./Eye-Cn6YseXl.js";import{s as BT}from"./Globe02-CyGtzZ8k.js";import{s as vb}from"./LayersTwo01-Li6JqY2K.js";import{s as HT}from"./XClose-BieEiV6P.js";import{a as jT,u as qT}from"./index-rWegviRE.js";import{I as $T}from"./integration-icon-D6SJHU0f.js";import{s as tc}from"./Clock-9Mm0U0Dg.js";import{s as GT}from"./Trash01-C0891dQq.js";import{b as zT}from"./use-virtual-mcp-CyoGC0aH.js";import{b as Su,c as VT,a as WT,e as YT}from"./use-collections-yY78nnLx.js";import{u as KT}from"./useSuspenseInfiniteQuery-DD4jjrsx.js";import{i as XT}from"./CheckCircle-DrGaevdP.js";import{i as ZT}from"./Loading01-Cbk1oNZ2.js";const Ib=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));Ib.displayName="Activity";const Rb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));Rb.displayName="Atom02";const Cb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));Cb.displayName="Attachment01";const xb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));xb.displayName="ChevronSelectorVertical";const _u=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));_u.displayName="Edit02";const kb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));kb.displayName="Hourglass03";const wb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));wb.displayName="Lightbulb01";const Ob=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));Ob.displayName="Placeholder";const Lb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));Lb.displayName="ShieldTick";const Pr=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));Pr.displayName="Stars01";const Db=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));Db.displayName="Target04";const rc={}.hasOwnProperty;function Mb(t,e){const r=e||{};function a(n,...i){let s=a.invalid;const o=a.handlers;if(n&&rc.call(n,t)){const u=String(n[t]);s=rc.call(o,u)?o[u]:a.unknown}if(s)return s.call(this,n,...i)}return a.handlers=r.handlers||{},a.invalid=r.invalid,a.unknown=r.unknown,a}function QT(t){const e=j.c(10);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const a=Hh(r);let n;if(e[1]!==a.collectionName||e[2]!==a.connectionId||e[3]!==a.itemId||e[4]!==t){n=[],t&&n.push(`### Selected Agent
1
+ import{r as w,c as j,g as Hh,bR as jh,x as At,u as Oe,K as je,w as He,f as du,aw as Xr,j as l,E as Cr,o as Nt,q as qh,t as $h,B as he,n as Tr,y as te,aA as A0,ak as Gh,aj as zh,cv as N0,bk as Vh,cw as v0,cx as Ue,cy as Zr,cz as I0,cA as Qr,cB as R0,cC as C0,cD as x0,cE as k0,v as w0,cF as O0,cG as L0,cH as D0,cI as M0,e as P0,O as F0,bQ as Xe,cJ as Sr,al as U0}from"./index-DJtnEPc7.js";import{A as B0,d as pu,e as H0,f as ue,l as j0,g as q0,b as Wh,h as _t,i as $0,u as Yt,a as Kt}from"./context-D-2OkzTq.js";import{b as Xt,P as Zt,a as Qt}from"./popover-B_9jK9T6.js";import{S as le}from"./skeleton-Cy7jej-7.js";import{S as xr}from"./spinner-qX5-Mz-A.js";import{T as xe,a as ke,b as we,c as fu}from"./tooltip-Bms1Xn3i.js";import{u as ut,a as mu,d as Yh,i as _r}from"./constants-4hZfe-FX.js";import{u as G0,g as Kh,l as Ku}from"./use-mcp-prompts-Bvq8o_wk.js";import{D as Xh,b as z0,e as V0,c as Zh,d as Qh,f as W0}from"./dialog-1RTimACw.js";import{a as zl,F as kr,b as wr,c as Y0,d as Or,f as Lr}from"./form-RbK75Dit.js";import{I as Jh}from"./input-j_5WJy1c.js";import{N as eb,R as tb,d as rb,f as ab,P as Vl,g as K0,h as X0,S as Z0,u as nb,j as Q0,i as ib,E as sb,e as J0}from"./index-DTrW0n62.js";import{s as eT,c as tT,a as rT,e as aT}from"./usage-B8rgFVXq.js";import{i as nT}from"./ArrowUp-ETVB6cdy.js";import{t as Wl}from"./ChevronDown-CIjXFJfV.js";import{i as ob}from"./Edit01-y_ign3HR.js";import{i as iT}from"./Lock01-CjY0LR2m.js";import{t as lb}from"./Users03-C-Jr0LW_.js";import{i as ub}from"./XCircle-DIW-x13c.js";import{i as gu}from"./AlertCircle-BCDqbXXS.js";import{i as sT}from"./X-CuPyb-Ex.js";import{c as cb,S as db,d as pb,a as fb,b as mb}from"./select-roICowiz.js";import{u as gb,i as oT,P as lT,a as uT}from"./org-ai-providers-CYV2m0oE.js";import{i as hb}from"./ArrowLeft-Del7wDOT.js";import{i as cT,t as bb,u as Eb}from"./use-copy-CnWGIrpr.js";import{c as dT,b as pT}from"./tabs-T6eq77EC.js";import{B as fT}from"./badge-7TJrkuyd.js";import{a as mT,i as Tb,b as gT,c as hT,C as bT}from"./collapsible-Dl714J5i.js";import{i as vt}from"./Check-DsclgHfU.js";import{i as ET}from"./Code01-Cq3-F_YX.js";import{C as TT}from"./checkbox-BRXa8FNh.js";import{i as ST}from"./AlignLeft-BtdVdG2m.js";import{a as _T}from"./Image01-NzJP6iMs.js";import{i as yT}from"./Key01-yVAqC10q.js";import{s as AT}from"./RefreshCcw01-CxVqRnRx.js";import{i as hu}from"./SearchMd-CrngVZhh.js";import{t as NT}from"./Settings01-Dujhf9RE.js";import{a as vT}from"./Tool01-DImlld_g.js";import{b as bu,u as Sb,a as _b,g as Eu}from"./ai-providers-logos-D3xG95Si.js";import{a as IT,V as yb}from"./select-virtual-mcp-CFEExN2T.js";import{l as Xu,r as RT}from"./use-mcp-resources-INpGwYsS.js";import{i as CT}from"./ChevronRight-DmvbXNWu.js";import{a as Dr}from"./Copy01-CFr3FQ5x.js";import{m as xT}from"./marked.esm-BaswSlok.js";import{f as Tu,p as Zu,a as Qu,n as Ju,h as Mr,s as Jt,o as Yl,b as kT,c as wT,d as ct,v as OT,e as Ab,g as ec,m as LT,i as DT,r as MT}from"./markdown-BjeAfn6Q.js";import{c as PT}from"./content-blocks-o63cs2vh.js";import{M as FT}from"./mcp-app-renderer-BjIiENx_.js";import{g as Nb}from"./types-BTzo08LL.js";import{s as UT}from"./Eye-Dq2YmoWs.js";import{s as BT}from"./Globe02-BLXYb9br.js";import{s as vb}from"./LayersTwo01-T6ICoMvs.js";import{s as HT}from"./XClose-ndXrBTVc.js";import{a as jT,u as qT}from"./index-qxqsMecG.js";import{I as $T}from"./integration-icon-DrTDJ354.js";import{s as tc}from"./Clock-CQzMyEYR.js";import{s as GT}from"./Trash01-DPMbpRnj.js";import{b as zT}from"./use-virtual-mcp-B8_wDvx9.js";import{b as Su,c as VT,a as WT,e as YT}from"./use-collections-uyyRdHl8.js";import{u as KT}from"./useSuspenseInfiniteQuery-lgWDbCQ9.js";import{i as XT}from"./CheckCircle-CQGSbCTG.js";import{i as ZT}from"./Loading01-CSUxQOK0.js";const Ib=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));Ib.displayName="Activity";const Rb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));Rb.displayName="Atom02";const Cb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));Cb.displayName="Attachment01";const xb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));xb.displayName="ChevronSelectorVertical";const _u=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));_u.displayName="Edit02";const kb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));kb.displayName="Hourglass03";const wb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));wb.displayName="Lightbulb01";const Ob=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));Ob.displayName="Placeholder";const Lb=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));Lb.displayName="ShieldTick";const Pr=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));Pr.displayName="Stars01";const Db=({size:t=24,color:e="currentColor",...r})=>w.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},w.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));Db.displayName="Target04";const rc={}.hasOwnProperty;function Mb(t,e){const r=e||{};function a(n,...i){let s=a.invalid;const o=a.handlers;if(n&&rc.call(n,t)){const u=String(n[t]);s=rc.call(o,u)?o[u]:a.unknown}if(s)return s.call(this,n,...i)}return a.handlers=r.handlers||{},a.invalid=r.invalid,a.unknown=r.unknown,a}function QT(t){const e=j.c(10);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const a=Hh(r);let n;if(e[1]!==a.collectionName||e[2]!==a.connectionId||e[3]!==a.itemId||e[4]!==t){n=[],t&&n.push(`### Selected Agent
2
2
  - ID: ${t}`);let i;e[6]!==a.collectionName||e[7]!==a.connectionId||e[8]!==a.itemId?(i=[],a.connectionId&&i.push(`- Connection ID: ${a.connectionId}`),a.collectionName&&i.push(`- Collection: ${a.collectionName}`),a.itemId&&i.push(`- Item ID: ${a.itemId}`),e[6]=a.collectionName,e[7]=a.connectionId,e[8]=a.itemId,e[9]=i):i=e[9],i.length>0&&n.push(`### Current Resource
3
3
  The user is viewing the following resource:
4
4
  ${i.join(`
@@ -0,0 +1 @@
1
+ import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index-DJtnEPc7.js";import{T as h}from"./tasks-panel-Cpm18hI4.js";import{P as p}from"./index-qxqsMecG.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-7YipRD-p.js";import{i as B}from"./Loading01-CSUxQOK0.js";import{u as S}from"./context-D-2OkzTq.js";import"./task-status-DSYWex9b.js";import"./popover-B_9jK9T6.js";import"./skeleton-Cy7jej-7.js";import"./spinner-qX5-Mz-A.js";import"./tooltip-Bms1Xn3i.js";import"./index-biN0aic_.js";import"./constants-4hZfe-FX.js";import"./use-mcp-prompts-Bvq8o_wk.js";import"./useQuery-DLey6Pvf.js";import"./dialog-1RTimACw.js";import"./X-CuPyb-Ex.js";import"./form-RbK75Dit.js";import"./label-Dmque-mN.js";import"./input-j_5WJy1c.js";import"./index-DTrW0n62.js";import"./usage-B8rgFVXq.js";import"./ArrowUp-ETVB6cdy.js";import"./ChevronDown-CIjXFJfV.js";import"./Edit01-y_ign3HR.js";import"./Lock01-CjY0LR2m.js";import"./Users03-C-Jr0LW_.js";import"./XCircle-DIW-x13c.js";import"./AlertCircle-BCDqbXXS.js";import"./select-roICowiz.js";import"./ChevronUp-C8129itH.js";import"./Check-DsclgHfU.js";import"./org-ai-providers-CYV2m0oE.js";import"./useMutation-D77LVetF.js";import"./EyeOff-CpKFKNjY.js";import"./Eye-Dq2YmoWs.js";import"./Key01-yVAqC10q.js";import"./Trash01-DPMbpRnj.js";import"./card-D9sP6AvS.js";import"./avatar-CkCU2Fe6.js";import"./ai-providers-logos-D3xG95Si.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./ArrowLeft-Del7wDOT.js";import"./use-copy-CnWGIrpr.js";import"./tabs-T6eq77EC.js";import"./badge-7TJrkuyd.js";import"./collapsible-Dl714J5i.js";import"./index-CElzn9PI.js";import"./Code01-Cq3-F_YX.js";import"./checkbox-BRXa8FNh.js";import"./AlignLeft-BtdVdG2m.js";import"./Image01-NzJP6iMs.js";import"./RefreshCcw01-CxVqRnRx.js";import"./SearchMd-CrngVZhh.js";import"./Settings01-Dujhf9RE.js";import"./Tool01-DImlld_g.js";import"./select-virtual-mcp-CFEExN2T.js";import"./integration-icon-DrTDJ354.js";import"./Container-C_pBhYQm.js";import"./use-virtual-mcp-B8_wDvx9.js";import"./use-collections-uyyRdHl8.js";import"./use-create-virtual-mcp-BqiAP0hG.js";import"./use-mcp-resources-INpGwYsS.js";import"./ChevronRight-DmvbXNWu.js";import"./Copy01-CFr3FQ5x.js";import"./marked.esm-BaswSlok.js";import"./markdown-BjeAfn6Q.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BjIiENx_.js";import"./types-BTzo08LL.js";import"./Globe02-BLXYb9br.js";import"./LayersTwo01-T6ICoMvs.js";import"./XClose-ndXrBTVc.js";import"./Clock-CQzMyEYR.js";import"./useSuspenseInfiniteQuery-lgWDbCQ9.js";import"./infiniteQueryObserver-DPmZK5SE.js";import"./CheckCircle-CQGSbCTG.js";import"./collection-search-BeqmTWUU.js";import"./user-D3_ltBdu.js";import"./format-time-CMKyl-GC.js";import"./Plus-CGe5wBcS.js";import"./dropdown-menu-ur1Ui41o.js";import"./decopilot-events-Brt4gAR6.js";function v(){const t=n.c(8),{org:o,project:s}=x(),a=j(),{switchToTask:c}=S();let i;t[0]!==a||t[1]!==o.slug||t[2]!==s.slug||t[3]!==c?(i=async u=>{await c(u),a({to:"/$org/$project",params:{org:o.slug,project:s.slug}})},t[0]=a,t[1]=o.slug,t[2]=s.slug,t[3]=c,t[4]=i):i=t[4];const l=i;let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(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 rr(){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{rr as default};