decocms 2.162.1 → 2.162.2

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 (204) hide show
  1. package/dist/client/assets/{AlertCircle-7lB7fro0.js → AlertCircle-CLSQ0NLi.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-CWbftioK.js → AlignLeft-DGT5YesK.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-Ce-Md5NR.js → ArrowDown-BeNMpJ4E.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DNGwlp4M.js → ArrowLeft-ZgtBxTyN.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-B9ucqKIV.js → ArrowUp-WkRPF3Cl.js} +1 -1
  6. package/dist/client/assets/{Check-Cvo-Mj0S.js → Check-D30Nw_2C.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BhnUN_-o.js → CheckCircle-4PmUxEXj.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-Dh2K_VwC.js → CheckDone01-BYS-dKbQ.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-B23tFeT2.js → CheckVerified02-C_5D8neO.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-DYWNve60.js → ChevronDown-C7zTxlHE.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-CIJS6SFa.js → ChevronLeft-Ov3NE9c_.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-B4xXvXUl.js → ChevronRight-BJe7e-X2.js} +1 -1
  13. package/dist/client/assets/{Clock-Di0Vpv60.js → Clock--mEiDXe5.js} +1 -1
  14. package/dist/client/assets/{Code01-CeoOPe4L.js → Code01-BOUu51ck.js} +1 -1
  15. package/dist/client/assets/{Container-BvytClvz.js → Container-BXYdiT-J.js} +1 -1
  16. package/dist/client/assets/{Copy01-DEyL4hmF.js → Copy01-xLxETA4z.js} +1 -1
  17. package/dist/client/assets/{Dataflow03-BwgEkxHj.js → Dataflow03-FtQ0Yhj_.js} +1 -1
  18. package/dist/client/assets/{DotsHorizontal-BdKjLiyh.js → DotsHorizontal-Dprv0d9t.js} +1 -1
  19. package/dist/client/assets/{DotsVertical-BOqBGvRn.js → DotsVertical-C9TpfjSq.js} +1 -1
  20. package/dist/client/assets/{Download01-D8lTpA1-.js → Download01-TaBKKGTy.js} +1 -1
  21. package/dist/client/assets/{Edit01-olXvAtAZ.js → Edit01-BE5Wu5ID.js} +1 -1
  22. package/dist/client/assets/{Edit05-vNRWQV-M.js → Edit05-CHAqfRrN.js} +1 -1
  23. package/dist/client/assets/{Eye-DQ2cNQ7_.js → Eye-CmzbjCht.js} +1 -1
  24. package/dist/client/assets/{File02-o3tqw3TU.js → File02-DDGW2KdF.js} +1 -1
  25. package/dist/client/assets/{File06-CHaNuqmq.js → File06-u0e892jj.js} +1 -1
  26. package/dist/client/assets/{FilterLines-hoXV8gL3.js → FilterLines-peoUm3Kp.js} +1 -1
  27. package/dist/client/assets/{Globe01-DGfi10DG.js → Globe01-CttWHoLh.js} +1 -1
  28. package/dist/client/assets/{Globe02-2YlWazS5.js → Globe02-BaK8gLi7.js} +1 -1
  29. package/dist/client/assets/{Grid01-41ZWwZ8C.js → Grid01-MfVmgqVA.js} +1 -1
  30. package/dist/client/assets/{Hash02-CY2safPs.js → Hash02-BBdDXKgB.js} +1 -1
  31. package/dist/client/assets/{Home02-3xprgDGx.js → Home02-CD_MJrmZ.js} +1 -1
  32. package/dist/client/assets/{Image01-D8nsgOa4.js → Image01-NW_uhHHO.js} +1 -1
  33. package/dist/client/assets/{Inbox01-DreXa4ow.js → Inbox01-DUegC4zX.js} +1 -1
  34. package/dist/client/assets/{InfoCircle-DWkOumoB.js → InfoCircle-BdKgGvOW.js} +1 -1
  35. package/dist/client/assets/{Key01-DsUMZZb4.js → Key01-VhvVpwde.js} +1 -1
  36. package/dist/client/assets/{LayersTwo01-CozGeYpA.js → LayersTwo01-DY3gWhYo.js} +1 -1
  37. package/dist/client/assets/{LayoutLeft-BxnBHF6O.js → LayoutLeft-CTT2u70-.js} +1 -1
  38. package/dist/client/assets/{Link01-BW7OJP9H.js → Link01-Bm8fkbw8.js} +1 -1
  39. package/dist/client/assets/{LinkExternal01-B9scdF6U.js → LinkExternal01-D38J8WFf.js} +1 -1
  40. package/dist/client/assets/{List-BWlMAKKi.js → List-DBox7Fud.js} +1 -1
  41. package/dist/client/assets/{Loading01-DwU5xHXm.js → Loading01-DoI38kJv.js} +1 -1
  42. package/dist/client/assets/{Lock01-Culpb3mN.js → Lock01-BpzLUKPy.js} +1 -1
  43. package/dist/client/assets/{Play-DuD9KGGY.js → Play-Cff6s-Do.js} +1 -1
  44. package/dist/client/assets/{Plus-Dhm20gcZ.js → Plus-vjPXrbll.js} +1 -1
  45. package/dist/client/assets/{RefreshCcw01-CKrNRsn6.js → RefreshCcw01-C1dtrtd7.js} +1 -1
  46. package/dist/client/assets/{Save01-CSAj2bS1.js → Save01-DrnHDSfN.js} +1 -1
  47. package/dist/client/assets/{SearchMd-DwqVVEmk.js → SearchMd-BpeHWO8y.js} +1 -1
  48. package/dist/client/assets/{Settings01-DL_2jKIF.js → Settings01-C_OWZaLW.js} +1 -1
  49. package/dist/client/assets/{Shield01-BNl_AxVr.js → Shield01-Blnh5_zF.js} +1 -1
  50. package/dist/client/assets/{Terminal-BxC2jtAF.js → Terminal-CUOLHPPn.js} +1 -1
  51. package/dist/client/assets/{Trash01-CleP0qGT.js → Trash01-Bfnjcg6w.js} +1 -1
  52. package/dist/client/assets/{Upload01-Bpm7zuzQ.js → Upload01-DA4ZJJnb.js} +1 -1
  53. package/dist/client/assets/{Users03-BKRGqc64.js → Users03-CiI7Y2pI.js} +1 -1
  54. package/dist/client/assets/{X-BkXzJkvJ.js → X-LrH2dki2.js} +1 -1
  55. package/dist/client/assets/{XCircle-CQ0cwRmR.js → XCircle-KlbMEvQq.js} +1 -1
  56. package/dist/client/assets/{XClose-d8Jjie9z.js → XClose-T4dQr9IP.js} +1 -1
  57. package/dist/client/assets/{Zap-BTobxj-V.js → Zap-Cx7CJpzQ.js} +1 -1
  58. package/dist/client/assets/{agent-connections-preview-DAX-YxCn.js → agent-connections-preview-99IZ2JVi.js} +1 -1
  59. package/dist/client/assets/{agent-detail-Dd9g04cA.js → agent-detail-CQafIKIf.js} +1 -1
  60. package/dist/client/assets/{agents-BFg1anO6.js → agents-BBhRTRP7.js} +1 -1
  61. package/dist/client/assets/{alert-dialog-CR2Y_gWg.js → alert-dialog-ZI_d17Kf.js} +1 -1
  62. package/dist/client/assets/{auth-catchall-3qDVsVQ3.js → auth-catchall-B_kUtzsk.js} +1 -1
  63. package/dist/client/assets/{avatar-D_V-3wap.js → avatar-DMHAVN2G.js} +1 -1
  64. package/dist/client/assets/{badge-BsrlHJ_x.js → badge-ChDtoe7k.js} +1 -1
  65. package/dist/client/assets/{binder-B2J3jrRf.js → binder-BSp18fmP.js} +1 -1
  66. package/dist/client/assets/{breadcrumb-oFROyAn_.js → breadcrumb-DBcowLTl.js} +1 -1
  67. package/dist/client/assets/{card-EygHFK51.js → card-ChLHZaFH.js} +1 -1
  68. package/dist/client/assets/{chart-Bmnx76NN.js → chart-DOQ1KDh7.js} +1 -1
  69. package/dist/client/assets/{checkbox-CvzFKjZ3.js → checkbox-D_aK0Mdh.js} +1 -1
  70. package/dist/client/assets/{circle-alert-jB_R9VIQ.js → circle-alert-BHkFRl9i.js} +1 -1
  71. package/dist/client/assets/{collapsible-lu3Iy-S0.js → collapsible-CtdNMvGE.js} +1 -1
  72. package/dist/client/assets/{collection-detail-Bt1GArvb.js → collection-detail-CmmN6I8A.js} +1 -1
  73. package/dist/client/assets/{collection-display-button-YC_aXzYK.js → collection-display-button-Bv7DhR9w.js} +1 -1
  74. package/dist/client/assets/{collection-search-BdCpnSfc.js → collection-search-DnArRJMW.js} +1 -1
  75. package/dist/client/assets/{collection-tab-C2v1k0qS.js → collection-tab-CC0q_OnK.js} +1 -1
  76. package/dist/client/assets/{collection-table-wrapper-DhJA7hQ9.js → collection-table-wrapper-CEwU2e2W.js} +1 -1
  77. package/dist/client/assets/{collection-tabs-CioUgcWn.js → collection-tabs-CZLvOfkH.js} +1 -1
  78. package/dist/client/assets/{command-Dr9ELOIm.js → command-DLB128Pb.js} +1 -1
  79. package/dist/client/assets/{connect-DvWhgY7R.js → connect-CI9IzyBL.js} +1 -1
  80. package/dist/client/assets/{connection-card-uFTSOaWH.js → connection-card-ByscPAIj.js} +1 -1
  81. package/dist/client/assets/{connection-detail-C1eD5ISP.js → connection-detail-uL7h2miw.js} +1 -1
  82. package/dist/client/assets/{connection-status-CUgTWSPZ.js → connection-status-BLpLQzSg.js} +1 -1
  83. package/dist/client/assets/{connections-Da_AzXLe.js → connections-DMFM3gUy.js} +1 -1
  84. package/dist/client/assets/constants-CUyJcaN8.js +1 -0
  85. package/dist/client/assets/{constants-CJKNcVO0.js → constants-OpiJAgZI.js} +1 -1
  86. package/dist/client/assets/{context-iluKjV89.js → context-7Kd5bp6X.js} +1 -1
  87. package/dist/client/assets/{create-organization-dialog-BiPFmP0t.js → create-organization-dialog-BneQWVKs.js} +1 -1
  88. package/dist/client/assets/{create-project-dialog-CZRaXDOF.js → create-project-dialog-DcUDVcZj.js} +1 -1
  89. package/dist/client/assets/{danger-CS7q8T7g.js → danger-DbvicEY-.js} +1 -1
  90. package/dist/client/assets/{danger-zone-Arlo0D2G.js → danger-zone-CsqhCbO1.js} +1 -1
  91. package/dist/client/assets/{decopilot-events-C1rn4nxl.js → decopilot-events-BAhRgxLp.js} +1 -1
  92. package/dist/client/assets/{dependencies-C1u7sWiw.js → dependencies-Ds_GH7yM.js} +1 -1
  93. package/dist/client/assets/{dialog-De2kjp-7.js → dialog-DXMtLbOt.js} +1 -1
  94. package/dist/client/assets/{dropdown-menu-CBXVfpi8.js → dropdown-menu-Bv41z45k.js} +1 -1
  95. package/dist/client/assets/{dynamic-plugin-layout-D7aWriCh.js → dynamic-plugin-layout-CA3PBJG1.js} +1 -1
  96. package/dist/client/assets/{editable-task-title-Dw21XHnW.js → editable-task-title-BUHTazHh.js} +1 -1
  97. package/dist/client/assets/{empty-state-CCFoZ2I0.js → empty-state-D2gP2QeK.js} +1 -1
  98. package/dist/client/assets/{env-vars-editor-QlY_vLwo.js → env-vars-editor-DXU1-vnq.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-Drlb76Zi.js → extract-connection-data-CYsp_UMA.js} +1 -1
  100. package/dist/client/assets/{file-browser-CgJoRnNX.js → file-browser-DkGVcDoL.js} +2 -2
  101. package/dist/client/assets/{form-Do17Zmtj.js → form-Ndm9rRCe.js} +1 -1
  102. package/dist/client/assets/{general-BNTVDu8S.js → general-opBI2uJ9.js} +1 -1
  103. package/dist/client/assets/{grid-view-C25yp3XL.js → grid-view-CSu6RixN.js} +1 -1
  104. package/dist/client/assets/{home-CugPrCQk.js → home-B8vvircu.js} +1 -1
  105. package/dist/client/assets/{icon-picker-BRAO_6f7.js → icon-picker-8kNIyP1o.js} +1 -1
  106. package/dist/client/assets/{index-BWWyL373.js → index-BUZqKnhc.js} +1 -1
  107. package/dist/client/assets/{index-CWkZVTaB.js → index-C_qyq-0C.js} +1 -1
  108. package/dist/client/assets/{index-CkH3mWvs.js → index-CzhqcVNy.js} +3 -3
  109. package/dist/client/assets/{index-Bd2o7ApL.js → index-D0IWyB7F.js} +1 -1
  110. package/dist/client/assets/{index-BcCLyj5B.js → index-Dq7847Un.js} +1 -1
  111. package/dist/client/assets/{index-DYwRYhsj.js → index-DvM0KkHv.js} +1 -1
  112. package/dist/client/assets/{index-DJbhPUvH.js → index-NVV58uyB.js} +1 -1
  113. package/dist/client/assets/{index-DJaJOTT1.js → index-reo4wb4o.js} +1 -1
  114. package/dist/client/assets/{index-B-OdNlE7.js → index-u3QgiiTa.js} +1 -1
  115. package/dist/client/assets/{infiniteQueryObserver-DAaNXBsl.js → infiniteQueryObserver-B0sfe0Pc.js} +1 -1
  116. package/dist/client/assets/{input-Byroc8t4.js → input-CaHgq6JC.js} +1 -1
  117. package/dist/client/assets/{integration-icon-mwS0bnEH.js → integration-icon-C_O5yvdg.js} +1 -1
  118. package/dist/client/assets/{label-D4oI89DS.js → label-ZRpbI7Sm.js} +1 -1
  119. package/dist/client/assets/{layout-DoVjZIrn.js → layout-Di7S7mGF.js} +1 -1
  120. package/dist/client/assets/{layout-DDl2Bvjj.js → layout-_gy6ZrEk.js} +1 -1
  121. package/dist/client/assets/{localstorage-keys-DueMZIFu.js → localstorage-keys-CL6qU9e5.js} +1 -1
  122. package/dist/client/assets/{login-l7LPfl41.js → login-DzHv8Qa0.js} +1 -1
  123. package/dist/client/assets/{markdown-C5HDJBhu.js → markdown-CjmEcbPS.js} +1 -1
  124. package/dist/client/assets/{mcp-app-renderer-CcbaBTO3.js → mcp-app-renderer-DjshzOV0.js} +1 -1
  125. package/dist/client/assets/{mcp-server-card-DMYKZy5B.js → mcp-server-card-CbhtCiCR.js} +1 -1
  126. package/dist/client/assets/{mcp-server-detail-CaijVFsh.js → mcp-server-detail-Dm6C4rJd.js} +2 -2
  127. package/dist/client/assets/{members-DHOUb6ci.js → members-D0WpzrAD.js} +1 -1
  128. package/dist/client/assets/{monaco-editor-BQLItIWK.js → monaco-editor-860lh9IG.js} +1 -1
  129. package/dist/client/assets/{monitoring-Dts7enDX.js → monitoring-B8ASHaBh.js} +1 -1
  130. package/dist/client/assets/{monitoring-dashboard-edit-BpdxPDCL.js → monitoring-dashboard-edit-CKffDTQw.js} +1 -1
  131. package/dist/client/assets/{monitoring-dashboard-view-9-ODb2Fv.js → monitoring-dashboard-view-C1XkuilW.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-Dz0IDrwc.js → oauth-callback-CsPyZ3bv.js} +1 -1
  133. package/dist/client/assets/{page-B20oyWAL.js → page-BGclLydc.js} +1 -1
  134. package/dist/client/assets/{page-COrqn5gB.js → page-BWVa1qSI.js} +1 -1
  135. package/dist/client/assets/{plugin-empty-state-BFvuO_ih.js → plugin-empty-state-BXMB-ve6.js} +1 -1
  136. package/dist/client/assets/{plugin-empty-state-amtzTfj5.js → plugin-empty-state-aV5T7nJZ.js} +1 -1
  137. package/dist/client/assets/{plugin-header-Ck-AR7F4.js → plugin-header-CMg87EDN.js} +1 -1
  138. package/dist/client/assets/{plugin-header-BBKvfeNU.js → plugin-header-DorQWEZ4.js} +1 -1
  139. package/dist/client/assets/plugins-BYjlWQ4G.js +1 -0
  140. package/dist/client/assets/{popover-abKtRKyZ.js → popover-DMD8_Cbp.js} +1 -1
  141. package/dist/client/assets/{project-app-view-4HfAYNAZ.js → project-app-view-BucEC3T-.js} +1 -1
  142. package/dist/client/assets/{project-layout-CabGF5OL.js → project-layout-DdxzQdxw.js} +1 -1
  143. package/dist/client/assets/{project-plugins-Cj7LCQq3.js → project-plugins-FyEUKPb1.js} +1 -1
  144. package/dist/client/assets/{projects-list-BGSS1A6G.js → projects-list-lWISZLY6.js} +1 -1
  145. package/dist/client/assets/{readme-viewer-CZC-Af79.js → readme-viewer-BRyijqWE.js} +1 -1
  146. package/dist/client/assets/{registry-layout-1no55Xfs.js → registry-layout-A5khdaYw.js} +1 -1
  147. package/dist/client/assets/{registry-utils-BKh1htsU.js → registry-utils-sGbNqghw.js} +1 -1
  148. package/dist/client/assets/{reports-layout-ClnQzTBD.js → reports-layout-Ds-X2DgZ.js} +1 -1
  149. package/dist/client/assets/{reset-password-_UXSoKqO.js → reset-password-DUyo7dJf.js} +1 -1
  150. package/dist/client/assets/{resizable-CRr1U4c3.js → resizable-DLaWW8z1.js} +1 -1
  151. package/dist/client/assets/{save-actions-DIgvk5ux.js → save-actions-KKLUna-U.js} +1 -1
  152. package/dist/client/assets/{scroll-area-CW7MZrxV.js → scroll-area-uvPGOSmX.js} +1 -1
  153. package/dist/client/assets/{select-CHbDIpjW.js → select-DhCocnGM.js} +1 -1
  154. package/dist/client/assets/{shell-layout-BcxWQVeI.js → shell-layout-CUgayftW.js} +2 -2
  155. package/dist/client/assets/{sidebar-settings-Bcsu8-RD.js → sidebar-settings-DWw0y5k_.js} +1 -1
  156. package/dist/client/assets/{skeleton-BnHZ2SKu.js → skeleton-LSt15V1C.js} +1 -1
  157. package/dist/client/assets/{spinner-BA1OKCJn.js → spinner-CI9QBd79.js} +1 -1
  158. package/dist/client/assets/{store-invite-igZB1w5t.js → store-invite-CFRAOscU.js} +1 -1
  159. package/dist/client/assets/{switch-CEp85hk1.js → switch-CsOlnIJv.js} +1 -1
  160. package/dist/client/assets/{table-FycIVL0n.js → table-xcvICYfC.js} +1 -1
  161. package/dist/client/assets/{tabs-eovXpXHz.js → tabs-d2vBhIp6.js} +1 -1
  162. package/dist/client/assets/tasks-CoQZ2sIy.js +1 -0
  163. package/dist/client/assets/{tasks-panel-BvevXbhl.js → tasks-panel-bZwhdQBY.js} +1 -1
  164. package/dist/client/assets/{textarea-xLi2sLqg.js → textarea-CqsgYI_z.js} +1 -1
  165. package/dist/client/assets/{time-range-picker-BlOSKVgs.js → time-range-picker-CnM7cuGo.js} +1 -1
  166. package/dist/client/assets/{toggle-group-CaTS_Qlx.js → toggle-group-BrCJ8OSl.js} +1 -1
  167. package/dist/client/assets/{tools-list-DtBpx3vZ.js → tools-list-BJgQvAAh.js} +1 -1
  168. package/dist/client/assets/{tooltip-BgxYg-1x.js → tooltip-B-2Ty_iR.js} +1 -1
  169. package/dist/client/assets/{topbar-portal-CSUXfJuZ.js → topbar-portal-CVzUAi-D.js} +1 -1
  170. package/dist/client/assets/{types-DtFKQumZ.js → types-DiJR_Oxi.js} +1 -1
  171. package/dist/client/assets/{use-binding-BakZcpgb.js → use-binding-CHcWA4CU.js} +1 -1
  172. package/dist/client/assets/{use-collections-Dn1-4HmN.js → use-collections-C8v6HwyA.js} +1 -1
  173. package/dist/client/assets/{use-connection-lSmwmnH7.js → use-connection-CkLGBugg.js} +1 -1
  174. package/dist/client/assets/{use-copy-Bomw0PO-.js → use-copy-BNKFNH2y.js} +1 -1
  175. package/dist/client/assets/{use-create-virtual-mcp-BCc2b51u.js → use-create-virtual-mcp-BvTxfE8g.js} +1 -1
  176. package/dist/client/assets/{use-install-from-registry-DNLztiY9.js → use-install-from-registry-rEwcMxvA.js} +1 -1
  177. package/dist/client/assets/{use-list-state-DsP3P__2.js → use-list-state-Dt9uCsOl.js} +1 -1
  178. package/dist/client/assets/{use-llm-CaWI-EbM.js → use-llm-CfPWCeJ7.js} +1 -1
  179. package/dist/client/assets/{use-mcp-prompts-DgbJlfFv.js → use-mcp-prompts-DJolbe2G.js} +1 -1
  180. package/dist/client/assets/{use-mcp-tools-DnT4wYwM.js → use-mcp-tools-_SrEx2Yc.js} +1 -1
  181. package/dist/client/assets/{use-members-BeqtA6Mf.js → use-members-Bg7suFno.js} +1 -1
  182. package/dist/client/assets/{use-mobile-DvJypPyV.js → use-mobile-Ccj9Yl8E.js} +1 -1
  183. package/dist/client/assets/{use-preferences-BtbUN2Ab.js → use-preferences-CBTWTfUK.js} +1 -1
  184. package/dist/client/assets/{use-project-C6Plluwk.js → use-project-O2tBNyfQ.js} +1 -1
  185. package/dist/client/assets/{use-settings-modal-BYuaItl2.js → use-settings-modal-Cb5fjZOk.js} +1 -1
  186. package/dist/client/assets/{use-view-mode-DlkH6B2z.js → use-view-mode-DltmabmA.js} +1 -1
  187. package/dist/client/assets/{use-virtual-mcp-Cd9Q7Ljj.js → use-virtual-mcp-CelTUOdD.js} +1 -1
  188. package/dist/client/assets/useInfiniteQuery-7fuF9QDV.js +1 -0
  189. package/dist/client/assets/{useMutation-T3cHavFN.js → useMutation-BLMqKfMt.js} +1 -1
  190. package/dist/client/assets/useQuery-BtUsJRrm.js +1 -0
  191. package/dist/client/assets/useSuspenseInfiniteQuery-BB0K0DXv.js +1 -0
  192. package/dist/client/assets/{user-CVY-7wwJ.js → user-BIDniHYV.js} +1 -1
  193. package/dist/client/assets/{workflow-JfVjNsvD.js → workflow-BPBBOx7S.js} +1 -1
  194. package/dist/client/index.html +1 -1
  195. package/dist/server/cli.js +2 -2
  196. package/dist/server/migrate.js +1 -1
  197. package/dist/server/server.js +2 -2
  198. package/package.json +1 -1
  199. package/dist/client/assets/constants-8yG-REbY.js +0 -1
  200. package/dist/client/assets/plugins-BL4zfVGs.js +0 -1
  201. package/dist/client/assets/tasks-zO_D9agi.js +0 -1
  202. package/dist/client/assets/useInfiniteQuery-DlMqKbZ8.js +0 -1
  203. package/dist/client/assets/useQuery-CrhfJFci.js +0 -1
  204. package/dist/client/assets/useSuspenseInfiniteQuery-D7mXok6B.js +0 -1
@@ -1,3 +1,3 @@
1
- import{r as A,c as $,j as s,E as Qe,u as ze,z as I,e as Ze,as as Xe,L as Fe,c8 as _t,be as Ct,O as q,ar as wt,ab as $t,ad as zt,ae as It,ac as Pt,af as At,ah as Et,ag as Tt,H as Ot,M as Mt,g as lt,f as Se,x as ye,c9 as Dt,bK as Rt,w as Lt,B as We,A as Ht,S as it,k as Ut,m as Bt,N as Ft,v as Wt,K as Gt,au as nt,P as Kt}from"./index-CkH3mWvs.js";import{C as oe}from"./index-Bd2o7ApL.js";import{I as Vt}from"./integration-icon-mwS0bnEH.js";import{u as ot,P as je}from"./index-DYwRYhsj.js";import{d as qt,u as Yt}from"./constants-CJKNcVO0.js";import{n as Ge}from"./CheckDone01-Dh2K_VwC.js";import{n as Qt}from"./ChevronLeft-CIJS6SFa.js";import{i as Zt}from"./Loading01-DwU5xHXm.js";import{s as Le}from"./Plus-Dhm20gcZ.js";import{t as Je}from"./Users03-BKRGqc64.js";import{i as Ke}from"./X-BkXzJkvJ.js";import{E as Xt,C as Jt}from"./editable-task-title-Dw21XHnW.js";import{T as es}from"./tasks-panel-BvevXbhl.js";import{a as ts,i as ss}from"./context-iluKjV89.js";import{C as at}from"./create-project-dialog-CZRaXDOF.js";import{t as rt,u as ct,i as ls}from"./use-settings-modal-BYuaItl2.js";import{n as is}from"./Container-BvytClvz.js";import{e as ns}from"./Dataflow03-BwgEkxHj.js";import{a as os}from"./Home02-3xprgDGx.js";import{i as Ve}from"./LayoutLeft-BxnBHF6O.js";import{t as He}from"./Settings01-DL_2jKIF.js";import{u as dt,a as mt}from"./use-project-C6Plluwk.js";import{u as as}from"./use-mobile-DvJypPyV.js";import{c as rs,b as cs,a as ds,T as ms}from"./tooltip-BgxYg-1x.js";import{S as re}from"./skeleton-BnHZ2SKu.js";import{n as $e}from"./LinkExternal01-B9scdF6U.js";import{t as ft}from"./ChevronDown-DYWNve60.js";import{A as Ie}from"./avatar-D_V-3wap.js";import{c as ae,k as fs,h as us,b as ut,D as pt,a as xt,e as Ue,j as ps}from"./dropdown-menu-CBXVfpi8.js";import{i as Pe}from"./Check-Cvo-Mj0S.js";import{C as xs}from"./create-organization-dialog-BiPFmP0t.js";import{a as hs}from"./Copy01-DEyL4hmF.js";import{i as gs}from"./File06-CHaNuqmq.js";import{i as bs}from"./Globe01-DGfi10DG.js";import{i as js}from"./Shield01-BNl_AxVr.js";import{P as vs,b as Ns,a as ys}from"./popover-abKtRKyZ.js";import{n as st}from"./Inbox01-DreXa4ow.js";import{s as Ss}from"./XClose-d8Jjie9z.js";import{b as ks}from"./use-connection-lSmwmnH7.js";import{b as _s}from"./use-mcp-tools-DnT4wYwM.js";import{c as Cs,A as ws}from"./use-binding-BakZcpgb.js";import{C as $s,b as zs,c as Is}from"./collapsible-lu3Iy-S0.js";import{i as Ps}from"./ChevronRight-B4xXvXUl.js";import{u as et,L as tt}from"./localstorage-keys-DueMZIFu.js";import{a as As,R as ht,b as Es}from"./resizable-CRr1U4c3.js";import"./spinner-BA1OKCJn.js";import"./use-mcp-prompts-DgbJlfFv.js";import"./useQuery-CrhfJFci.js";import"./dialog-De2kjp-7.js";import"./form-Do17Zmtj.js";import"./label-D4oI89DS.js";import"./input-Byroc8t4.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-B9ucqKIV.js";import"./Edit01-olXvAtAZ.js";import"./Lock01-Culpb3mN.js";import"./XCircle-CQ0cwRmR.js";import"./AlertCircle-7lB7fro0.js";import"./select-CHbDIpjW.js";import"./index-BcCLyj5B.js";import"./use-preferences-BtbUN2Ab.js";import"./ArrowLeft-DNGwlp4M.js";import"./use-copy-Bomw0PO-.js";import"./tabs-eovXpXHz.js";import"./badge-BsrlHJ_x.js";import"./Code01-CeoOPe4L.js";import"./use-virtual-mcp-Cd9Q7Ljj.js";import"./use-collections-Dn1-4HmN.js";import"./useMutation-T3cHavFN.js";import"./SearchMd-DwqVVEmk.js";import"./use-create-virtual-mcp-BCc2b51u.js";import"./decopilot-events-C1rn4nxl.js";import"./marked.esm-BaswSlok.js";import"./markdown-C5HDJBhu.js";import"./mcp-app-renderer-CcbaBTO3.js";import"./types-DtFKQumZ.js";import"./Eye-DQ2cNQ7_.js";import"./Globe02-2YlWazS5.js";import"./LayersTwo01-CozGeYpA.js";import"./collection-search-BdCpnSfc.js";import"./generate-id-Dyweu44Y.js";import"./Clock-Di0Vpv60.js";import"./Trash01-CleP0qGT.js";import"./CheckCircle-BhnUN_-o.js";import"./user-CVY-7wwJ.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-llm-CaWI-EbM.js";import"./checkbox-CvzFKjZ3.js";import"./AlignLeft-CWbftioK.js";import"./Image01-D8nsgOa4.js";import"./RefreshCcw01-CKrNRsn6.js";import"./useSuspenseInfiniteQuery-D7mXok6B.js";import"./infiniteQueryObserver-DAaNXBsl.js";import"./textarea-xLi2sLqg.js";import"./alert-dialog-CR2Y_gWg.js";import"./binder-B2J3jrRf.js";const gt=({size:t=24,color:e="currentColor",...l})=>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",...l},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"}));gt.displayName="BarChart10";const bt=({size:t=24,color:e="currentColor",...l})=>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",...l},A.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));bt.displayName="FaceSmile";const jt=({size:t=24,color:e="currentColor",...l})=>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",...l},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"}));jt.displayName="LogOut01";function Ts(){const t=$.c(72),{org:e}=ze(),[,l]=ot(),{selectedVirtualMcp:i,modelsConnections:n,isChatEmpty:o,activeTaskId:a,createTask:c,switchToTask:r,tasks:d}=ts();let f;if(t[0]!==a||t[1]!==d){let H;t[3]!==a?(H=ne=>ne.id===a,t[3]=a,t[4]=H):H=t[4],f=d.find(H),t[0]=a,t[1]=d,t[2]=f}else f=t[2];const u=f,[m,p]=A.useState("chat"),[h,g]=A.useTransition();let j;t[5]!==e.id?(j=qt(e.id),t[5]=e.id,t[6]=j):j=t[6];const x=i??j;let b;t[7]!==c?(b=()=>{g(()=>{c()})},t[7]=c,t[8]=b):b=t[8];const S=b;if(n.length===0){let H;t[9]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(je.Header.Left,{className:"gap-2"}),t[9]=H):H=t[9];let ne;t[10]!==l?(ne=()=>l(!1),t[10]=l,t[11]=ne):ne=t[11];let J;t[12]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=J):J=t[12];let ie;t[13]!==ne?(ie=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[H,s.jsx(je.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ne,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:J})})]}),t[13]=ne,t[14]=ie):ie=t[14];let he;t[15]!==e?(he=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.",org:e})})}),t[15]=e,t[16]=he):he=t[16];let xe;return t[17]!==ie||t[18]!==he?(xe=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[ie,he]}),t[17]=ie,t[18]=he,t[19]=xe):xe=t[19],xe}const k=m!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let v;t[20]!==k?(v=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",k),t[20]=k,t[21]=v):v=t[21];let N;t[22]!==u||t[23]!==o?(N=!o&&u?.title&&s.jsx(Xt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[22]=u,t[23]=o,t[24]=N):N=t[24];let z;t[25]!==N?(z=s.jsx(je.Header.Left,{className:"gap-2",children:N}),t[25]=N,t[26]=z):z=t[26];let C;t[27]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=C):C=t[27];let _;t[28]!==S||t[29]!==h?(_=s.jsx("button",{type:"button",onClick:S,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:C}),t[28]=S,t[29]=h,t[30]=_):_=t[30];let P;t[31]===Symbol.for("react.memo_cache_sentinel")?(P=()=>p("tasks"),t[31]=P):P=t[31];let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=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(Ge,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=R):R=t[32];let E;t[33]!==l?(E=()=>l(!1),t[33]=l,t[34]=E):E=t[34];let B;t[35]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=B):B=t[35];let T;t[36]!==E?(T=s.jsx("button",{type:"button",onClick:E,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:B}),t[36]=E,t[37]=T):T=t[37];let O;t[38]!==T||t[39]!==_?(O=s.jsxs(je.Header.Right,{className:"gap-1",children:[_,R,T]}),t[38]=T,t[39]=_,t[40]=O):O=t[40];let M;t[41]!==O||t[42]!==z?(M=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[z,O]}),t[41]=O,t[42]=z,t[43]=M):M=t[43];let F;t[44]!==x||t[45]!==o?(F=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(Vt,{icon:x.icon,name:x.title,size:"lg",fallbackIcon:s.jsx(Je,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:x.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:x.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[44]=x,t[45]=o,t[46]=F):F=t[46];let D;t[47]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[47]=D):D=t[47];let L;t[48]!==M||t[49]!==F||t[50]!==v?(L=s.jsxs("div",{className:v,children:[M,F,D]}),t[48]=M,t[49]=F,t[50]=v,t[51]=L):L=t[51];const ee=m==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let te;t[52]!==ee?(te=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",ee),t[52]=ee,t[53]=te):te=t[53];let Q;t[54]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(je.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[54]=Q):Q=t[54];let ce;t[55]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>p("chat"),t[55]=ce):ce=t[55];let de;t[56]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[Q,s.jsx(je.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(Qt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[56]=de):de=t[56];let Z;t[57]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Zt,{size:16,className:"animate-spin text-muted-foreground"})}),t[57]=Z):Z=t[57];let Y;t[58]!==r?(Y=s.jsx(Qe,{fallback:Os,children:s.jsx(A.Suspense,{fallback:Z,children:s.jsx(es,{onTaskSelect:async H=>{await r(H),p("chat")}})})}),t[58]=r,t[59]=Y):Y=t[59];let W;t[60]!==te||t[61]!==Y?(W=s.jsxs("div",{className:te,children:[de,Y]}),t[60]=te,t[61]=Y,t[62]=W):W=t[62];const se=m==="context"?"opacity-100":"opacity-0 pointer-events-none";let le;t[63]!==se?(le=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",se),t[63]=se,t[64]=le):le=t[64];let X;t[65]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(Jt,{back:!0,onClose:()=>p("chat")}),t[65]=X):X=t[65];let G;t[66]!==le?(G=s.jsx("div",{className:le,children:X}),t[66]=le,t[67]=G):G=t[67];let K;return t[68]!==L||t[69]!==W||t[70]!==G?(K=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[L,W,G]}),t[68]=L,t[69]=W,t[70]=G,t[71]=K):K=t[71],K}function Os(){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 Ms(){const t=$.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Qe,{fallback:e,children:s.jsx(A.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ts,{})})}),t[1]=l):l=t[1],l}function Ds(){const t=$.c(58),{locator:e,org:l}=ze(),i=Ze(),n=Xe(),{org:o,project:a}=Fe.parse(e),c=Fe.isOrgAdminProject(e),{data:r}=dt(l.id,a);let d;t[0]!==r?.enabledPlugins?(d=r?.enabledPlugins??[],t[0]=r?.enabledPlugins,t[1]=d):d=t[1];const f=d,u=r?.ui?.pinnedViews??[];let m;t[2]!==f?(m=w=>f.includes(w.pluginId),t[2]=f,t[3]=m):m=t[3];const p=_t.filter(m),h=n.location.pathname,g=`/${o}/${a}`,j=h===g||h===`${g}/`;let y;t[4]!==g||t[5]!==h?(y=w=>h.startsWith(`${g}/${w}`),t[4]=g,t[5]=h,t[6]=y):y=t[6];const x=y;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(os,{}),t[7]=b):b=t[7];const S={key:"home",label:"Home",icon:b,isActive:j,onClick:()=>{j?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:o,project:a}})}};let k;t[8]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Ge,{}),t[8]=k):k=t[8];const v={key:"tasks",label:"Tasks",icon:k,isActive:x("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:o,project:q}})};let N;t[9]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(is,{}),t[9]=N):N=t[9];const z={key:"mcps",label:"Connections",icon:N,isActive:x("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:o,project:q}})};let C;t[10]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(wt,{}),t[10]=C):C=t[10];const _={key:"projects",label:"Projects",icon:C,isActive:x("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:o,project:q}})};let P;t[11]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(rt,{}),t[11]=P):P=t[11];const R={key:"store",label:"Store",icon:P,isActive:x("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:o,project:q}})};let E;t[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(Je,{}),t[12]=E):E=t[12];const B={key:"agents",label:"Agents",icon:E,isActive:x("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:o,project:q}})};let T;t[13]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(gt,{}),t[13]=T):T=t[13];const O={key:"monitoring",label:"Monitor",icon:T,isActive:x("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:o,project:q}})};let M;t[14]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(bt,{}),t[14]=M):M=t[14];const F={key:"members",label:"Members",icon:M,isActive:x("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:o,project:q}})},D=p.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:o,project:a,pluginId:w.pluginId}})}));let L;t[15]!==f?(L=w=>f.includes(w.pluginId),t[15]=f,t[16]=L):L=t[16];const te=Ct.filter(L).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((U,me)=>({key:`${w.pluginId}-${w.id}-${me}`,label:U.label,icon:U.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:o,project:a,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}})),Q=u.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:x(`apps/${w.connectionId}/${encodeURIComponent(w.toolName)}`),onClick:()=>i({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:o,project:a,connectionId:w.connectionId,toolName:w.toolName}})}));let ce;t[17]!==Q?(ce=Q.length>0?{type:"group",group:{id:"apps",label:"Apps",items:Q,defaultExpanded:!0}}:null,t[17]=Q,t[18]=ce):ce=t[18];const de=ce;if(c){let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(He,{}),t[19]=w):w=t[19];let U;t[20]!==x?(U=x("settings"),t[20]=x,t[21]=U):U=t[21];let me;t[22]!==i||t[23]!==o?(me=()=>i({to:"/$org/$project/settings",params:{org:o,project:q}}),t[22]=i,t[23]=o,t[24]=me):me=t[24];let be;t[25]!==U||t[26]!==me?(be={key:"settings",label:"Settings",icon:w,isActive:U,onClick:me},t[25]=U,t[26]=me,t[27]=be):be=t[27];const fe=[{type:"items",items:[S,v,_]},{type:"group",group:{id:"build",label:"Build",items:[B,z,R],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[O,F,be],defaultExpanded:!0}}];if(D.length>0){let ue;t[28]!==D?(ue={type:"items",items:D},t[28]=D,t[29]=ue):ue=t[29],fe.push(ue)}return te.length>0&&fe.push(...te),de&&fe.push(de),fe}let Z;t[30]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(Ge,{}),t[30]=Z):Z=t[30];let Y;t[31]!==x?(Y=x("tasks"),t[31]=x,t[32]=Y):Y=t[32];let W;t[33]!==i||t[34]!==o||t[35]!==a?(W=()=>i({to:"/$org/$project/tasks",params:{org:o,project:a}}),t[33]=i,t[34]=o,t[35]=a,t[36]=W):W=t[36];let se;t[37]!==Y||t[38]!==W?(se={key:"tasks",label:"Tasks",icon:Z,isActive:Y,onClick:W},t[37]=Y,t[38]=W,t[39]=se):se=t[39];const le=se;let X;t[40]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(ns,{}),t[40]=X):X=t[40];let G;t[41]!==x?(G=x("workflows"),t[41]=x,t[42]=G):G=t[42];let K;t[43]!==i||t[44]!==o||t[45]!==a?(K=()=>i({to:"/$org/$project/workflows",params:{org:o,project:a}}),t[43]=i,t[44]=o,t[45]=a,t[46]=K):K=t[46];let H;t[47]!==G||t[48]!==K?(H={key:"workflows",label:"Workflows",icon:X,isActive:G,onClick:K},t[47]=G,t[48]=K,t[49]=H):H=t[49];const ne=H;let J;t[50]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(He,{}),t[50]=J):J=t[50];let ie;t[51]!==i||t[52]!==o||t[53]!==a?(ie={key:"configure",label:"Configure",icon:J,isActive:!1,isExternal:!0,onClick:()=>i({to:"/$org/$project/projects/$slug/settings/general",params:{org:o,project:q,slug:a}})},t[51]=i,t[52]=o,t[53]=a,t[54]=ie):ie=t[54];const ge=[{type:"items",items:[S,le,ne,ie]}];if(D.length>0){let w;t[55]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[55]=w):w=t[55],ge.push(w);let U;t[56]!==D?(U={type:"items",items:D},t[56]=D,t[57]=U):U=t[57],ge.push(U)}return te.length>0&&ge.push(...te),de&&ge.push(de),ge}function Rs(t){const e=$.c(4);let l;e[0]!==t?({...l}=t,e[0]=t,e[1]=l):l=e[1];let i;return e[2]!==l?(i=s.jsx($t,{"data-slot":"sheet",...l}),e[2]=l,e[3]=i):i=e[3],i}function Ls(t){const e=$.c(4);let l;e[0]!==t?({...l}=t,e[0]=t,e[1]=l):l=e[1];let i;return e[2]!==l?(i=s.jsx(At,{"data-slot":"sheet-portal",...l}),e[2]=l,e[3]=i):i=e[3],i}function Hs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(Tt,{"data-slot":"sheet-overlay",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Us(t){const e=$.c(17);let l,i,n,o;e[0]!==t?({className:i,children:l,side:o,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o):(l=e[1],i=e[2],n=e[3],o=e[4]);const a=o===void 0?"right":o;let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Hs,{}),e[5]=c):c=e[5];const r=a==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",d=a==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=a==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",u=a==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==i||e[7]!==r||e[8]!==d||e[9]!==f||e[10]!==u?(m=I("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r,d,f,u,i),e[6]=i,e[7]=r,e[8]=d,e[9]=f,e[10]=u,e[11]=m):m=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs(Et,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[s.jsx(Ke,{className:"size-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=p):p=e[12];let h;return e[13]!==l||e[14]!==n||e[15]!==m?(h=s.jsxs(Ls,{children:[c,s.jsxs(Pt,{"data-slot":"sheet-content",className:m,...n,children:[l,p]})]}),e[13]=l,e[14]=n,e[15]=m,e[16]=h):h=e[16],h}function Bs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-1.5 p-4",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sheet-header",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Fs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("text-foreground font-semibold",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(zt,{"data-slot":"sheet-title",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ws(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("text-muted-foreground text-sm",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(It,{"data-slot":"sheet-description",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}const Gs="sidebar_state",Ks=3600*24*7,Vs="16rem",qs="18rem",Ys="3rem",Qs="b",vt=A.createContext(null);function Be(){const t=A.useContext(vt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Zs(t){const e=$.c(21),{defaultOpen:l,open:i,onOpenChange:n,children:o}=t,a=l===void 0?!0:l,c=as(),[r,d]=A.useState(!1),[f,u]=A.useState(a),m=i??f;let p;e[0]!==m||e[1]!==n?(p=z=>{const C=typeof z=="function"?z(m):z;n?n(C):u(C),document.cookie=`${Gs}=${C}; path=/; max-age=${Ks}`},e[0]=m,e[1]=n,e[2]=p):p=e[2];const h=p;let g;e[3]!==c||e[4]!==h?(g=()=>c?d(Js):h(Xs),e[3]=c,e[4]=h,e[5]=g):g=e[5];const j=g;let y,x;e[6]!==j?(y=()=>{const z=C=>{if(C.key===Qs&&(C.metaKey||C.ctrlKey)){const _=C.target;if(_.tagName==="INPUT"||_.tagName==="TEXTAREA"||_.isContentEditable)return;C.preventDefault(),j()}};return globalThis.addEventListener("keydown",z),()=>globalThis.removeEventListener("keydown",z)},x=[j],e[6]=j,e[7]=y,e[8]=x):(y=e[7],x=e[8]),A.useEffect(y,x);const b=m?"expanded":"collapsed";let S;e[9]!==c||e[10]!==m||e[11]!==r||e[12]!==h||e[13]!==b||e[14]!==j?(S={state:b,open:m,setOpen:h,isMobile:c,openMobile:r,setOpenMobile:d,toggleSidebar:j},e[9]=c,e[10]=m,e[11]=r,e[12]=h,e[13]=b,e[14]=j,e[15]=S):S=e[15];const k=S;let v;e[16]!==o?(v=s.jsx(rs,{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(vt.Provider,{value:k,children:v}),e[18]=k,e[19]=v,e[20]=N):N=e[20],N}function Xs(t){return!t}function Js(t){return!t}function el(t){const e=$.c(14);let l,i,n,o;e[0]!==t?({className:i,style:o,children:l,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o):(l=e[1],i=e[2],n=e[3],o=e[4]);let a;e[5]!==o?(a={"--sidebar-width":Vs,"--sidebar-width-icon":Ys,...o},e[5]=o,e[6]=a):a=e[6];const c=a;let r;e[7]!==i?(r=I("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",i),e[7]=i,e[8]=r):r=e[8];let d;return e[9]!==l||e[10]!==n||e[11]!==c||e[12]!==r?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:c,className:r,...n,children:l}),e[9]=l,e[10]=n,e[11]=c,e[12]=r,e[13]=d):d=e[13],d}function tl(t){const e=$.c(42);let l,i,n,o,a,c;e[0]!==t?({side:o,variant:a,collapsible:c,className:i,children:l,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o,e[5]=a,e[6]=c):(l=e[1],i=e[2],n=e[3],o=e[4],a=e[5],c=e[6]);const r=o===void 0?"left":o,d=a===void 0?"sidebar":a,f=c===void 0?"offcanvas":c,{isMobile:u,state:m,openMobile:p,setOpenMobile:h}=Be();if(f==="none"){let v;e[7]!==i?(v=I("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),e[7]=i,e[8]=v):v=e[8];let N;return e[9]!==l||e[10]!==n||e[11]!==v?(N=s.jsx("div",{"data-slot":"sidebar",className:v,...n,children:l}),e[9]=l,e[10]=n,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":qs},e[13]=v):v=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(Bs,{className:"sr-only",children:[s.jsx(Fs,{children:"Sidebar"}),s.jsx(Ws,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let z;e[15]!==l?(z=s.jsx("div",{className:"flex h-full w-full flex-col",children:l}),e[15]=l,e[16]=z):z=e[16];let C;e[17]!==r||e[18]!==z?(C=s.jsxs(Us,{"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:r,children:[N,z]}),e[17]=r,e[18]=z,e[19]=C):C=e[19];let _;return e[20]!==p||e[21]!==n||e[22]!==h||e[23]!==C?(_=s.jsx(Rs,{open:p,onOpenChange:h,...n,children:C}),e[20]=p,e[21]=n,e[22]=h,e[23]=C,e[24]=_):_=e[24],_}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 y=m==="collapsed"?f:"";let x;e[27]!==i?(x=I("flex flex-col h-full w-(--sidebar-width)",i),e[27]=i,e[28]=x):x=e[28];let b;e[29]!==l?(b=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:l}),e[29]=l,e[30]=b):b=e[30];let S;e[31]!==n||e[32]!==x||e[33]!==b?(S=s.jsx("div",{"data-slot":"sidebar-container",className:x,...n,children:b}),e[31]=n,e[32]=x,e[33]=b,e[34]=S):S=e[34];let k;return e[35]!==r||e[36]!==m||e[37]!==j||e[38]!==y||e[39]!==S||e[40]!==d?(k=s.jsx("div",{className:j,"data-state":m,"data-collapsible":y,"data-variant":d,"data-side":r,"data-slot":"sidebar",children:S}),e[35]=r,e[36]=m,e[37]=j,e[38]=y,e[39]=S,e[40]=d,e[41]=k):k=e[41],k}function sl(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=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",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Nt(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-2 p-2",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function ll(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-2 p-2",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function il(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("h-4 m-0! w-full",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-sidebar":"separator",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function nl(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ae(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ee(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("w-full text-sm",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function ve(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex w-full min-w-0 flex-col gap-1",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function pe(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("group/menu-item relative",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}const ol=Mt("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 Te(t){const e=$.c(28);let l,i,n,o,a,c,r;e[0]!==t?({asChild:n,isActive:o,variant:a,size:c,tooltip:r,className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o,e[5]=a,e[6]=c,e[7]=r):(l=e[1],i=e[2],n=e[3],o=e[4],a=e[5],c=e[6],r=e[7]);const d=n===void 0?!1:n,f=o===void 0?!1:o,u=a===void 0?"default":a,m=c===void 0?"default":c,p=d?Ot:"button",{isMobile:h,state:g}=Be();let j;e[8]!==l||e[9]!==m||e[10]!==u?(j=I(ol({variant:u,size:m}),l),e[8]=l,e[9]=m,e[10]=u,e[11]=j):j=e[11];let y;e[12]!==p||e[13]!==f||e[14]!==i||e[15]!==m||e[16]!==j?(y=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":f,className:j,...i}),e[12]=p,e[13]=f,e[14]=i,e[15]=m,e[16]=j,e[17]=y):y=e[17];const x=y;if(!r)return x;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let b;e[20]!==x?(b=s.jsx(ds,{asChild:!0,children:x}),e[20]=x,e[21]=b):b=e[21];const S=g!=="collapsed"||h;let k;e[22]!==S||e[23]!==r?(k=s.jsx(cs,{side:"right",align:"center",hidden:S,...r}),e[22]=S,e[23]=r,e[24]=k):k=e[24];let v;return e[25]!==b||e[26]!==k?(v=s.jsxs(ms,{children:[b,k]}),e[25]=b,e[26]=k,e[27]=v):v=e[27],v}function al(t){const e=$.c(11),{label:l,children:i,defaultExpanded:n}=t,o=n===void 0?!0:n,[a,c]=A.useState(o),{state:r}=Be(),d=r==="collapsed";let f;e[0]!==a||e[1]!==d||e[2]!==l?(f=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(ve,{children:s.jsx(pe,{children:s.jsxs(Te,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>c(!a),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:l}),s.jsx(ft,{size:12,className:I("text-muted-foreground transition-transform duration-200",!a&&"-rotate-90")})]})})}),e[0]=a,e[1]=d,e[2]=l,e[3]=f):f=e[3];let u;e[4]!==i||e[5]!==a||e[6]!==d?(u=(d||a)&&s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:i})}),e[4]=i,e[5]=a,e[6]=d,e[7]=u):u=e[7];let m;return e[8]!==f||e[9]!==u?(m=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[f,u]}),e[8]=f,e[9]=u,e[10]=m):m=e[10],m}function yt(t){const e=$.c(22),{item:l}=t,i=l.key,n=l.onClick,o=l.isActive,a=l.label,c=l.isExternal&&"group/external";let r;e[0]!==c?(r=I(c),e[0]=c,e[1]=r):r=e[1];let d;e[2]!==l.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:l.icon}),e[2]=l.icon,e[3]=d):d=e[3];const f=l.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]!==l.label||e[7]!==u?(m=s.jsx("span",{className:u,children:l.label}),e[6]=l.label,e[7]=u,e[8]=m):m=e[8];let p;e[9]!==l.isExternal?(p=l.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]=l.isExternal,e[10]=p):p=e[10];let h;e[11]!==l.isActive||e[12]!==l.label||e[13]!==l.onClick||e[14]!==m||e[15]!==p||e[16]!==r||e[17]!==d?(h=s.jsxs(Te,{onClick:n,isActive:o,tooltip:a,className:r,children:[d,m,p]}),e[11]=l.isActive,e[12]=l.label,e[13]=l.onClick,e[14]=m,e[15]=p,e[16]=r,e[17]=d,e[18]=h):h=e[18];let g;return e[19]!==l.key||e[20]!==h?(g=s.jsx(pe,{children:h},i),e[19]=l.key,e[20]=h,e[21]=g):g=e[21],g}function rl(t){const e=$.c(12),{section:l}=t;switch(l.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(il,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=l.group.label,n=l.group.defaultExpanded;let o;e[2]!==l.group.items?(o=l.group.items.map(dl),e[2]=l.group.items,e[3]=o):o=e[3];let a;return e[4]!==l.group.defaultExpanded||e[5]!==l.group.label||e[6]!==o?(a=s.jsx(al,{label:i,defaultExpanded:n,children:o}),e[4]=l.group.defaultExpanded,e[5]=l.group.label,e[6]=o,e[7]=a):a=e[7],a}case"items":{let i;e[8]!==l.items?(i=l.items.map(cl),e[8]=l.items,e[9]=i):i=e[9];let n;return e[10]!==i?(n=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:i})})}),e[10]=i,e[11]=n):n=e[11],n}}}function cl(t){return s.jsx(yt,{item:t},t.key)}function dl(t){return s.jsx(yt,{item:t},t.key)}function St(t){const e=$.c(14),{sections:l,header:i,footer:n,additionalContent:o,variant:a,collapsible:c,contentClassName:r}=t,d=a===void 0?"sidebar":a,f=c===void 0?"icon":c;let u;e[0]!==r?(u=I("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",r),e[0]=r,e[1]=u):u=e[1];let m;e[2]!==l?(m=l.map(ml),e[2]=l,e[3]=m):m=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==m?(p=s.jsxs(nl,{className:u,children:[m,o]}),e[4]=o,e[5]=u,e[6]=m,e[7]=p):p=e[7];let h;return e[8]!==f||e[9]!==n||e[10]!==i||e[11]!==p||e[12]!==d?(h=s.jsxs(tl,{variant:d,collapsible:f,children:[i,p,n]}),e[8]=f,e[9]=n,e[10]=i,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ml(t,e){return s.jsx(rl,{section:t},e)}St.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,l)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(re,{className:"h-full bg-sidebar-accent rounded-md"})},l))})};function fl(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(re,{className:"h-8 w-full rounded-lg"}),s.jsx(re,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function ul(t){const e=$.c(12),{organizationId:l,currentProjectSlug:i,onSelect:n}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:a}=mt(l,o);let c,r;if(e[1]!==i||e[2]!==n||e[3]!==a){r=Symbol.for("react.early_return_sentinel");e:{const f=a?.filter(pl)??[];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],r=m;break e}let u;e[7]!==i||e[8]!==n?(u=m=>{const p=i===m.slug,h=m.ui?.themeColor??"#3B82F6";return s.jsxs(ae,{className:I("gap-2.5",p&&"bg-accent"),onClick:()=>n(m.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:h},children:m.ui?.icon?s.jsx("img",{src:m.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:m.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:m.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},m.id)},e[7]=i,e[8]=n,e[9]=u):u=e[9],c=f.map(u)}e[1]=i,e[2]=n,e[3]=a,e[4]=c,e[5]=r}else c=e[4],r=e[5];if(r!==Symbol.for("react.early_return_sentinel"))return r;let d;return e[10]!==c?(d=s.jsx(s.Fragment,{children:c}),e[10]=c,e[11]=d):d=e[11],d}function pl(t){return t.slug!==q}function xl(t){let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);const l=Math.abs(e)%360;return{backgroundColor:`hsl(${l} 55% 70%)`,color:`hsl(${l} 55% 20%)`}}function qe(t){const e=$.c(96),{isCollapsed:l,onCreateProject:i}=t,n=l===void 0?!1:l;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:a,project:c}=lt(o),{data:r}=Se.useListOrganizations(),d=Ze(),f=r?.find(V=>V.slug===a),[u,m]=A.useState(!1),p=c===q,{data:h}=dt(f?.id??"",p?"":c??"");let g;e[1]!==a?(g=(V,Re)=>V.slug===a?-1:Re.slug===a?1:V.name.localeCompare(Re.name),e[1]=a,e[2]=g):g=e[2];const j=[...r??[]].sort(g);let y;e[3]!==d||e[4]!==a?(y=()=>{a&&d({to:"/$org/$project",params:{org:a,project:q}})},e[3]=d,e[4]=a,e[5]=y):y=e[5];const x=y;let b;e[6]!==d||e[7]!==a?(b=V=>{a&&d({to:"/$org/$project",params:{org:a,project:V}})},e[6]=d,e[7]=a,e[8]=b):b=e[8];const S=b;let k;e[9]!==d?(k=V=>{d({to:"/$org/$project",params:{org:V,project:q}})},e[9]=d,e[10]=k):k=e[10];const v=k;let N;e[11]!==i?(N=i?()=>i():void 0,e[11]=i,e[12]=N):N=e[12];const z=N;let C;e[13]!==d||e[14]!==a||e[15]!==c?(C=()=>{if(!a||!c)return;const V=c===q;d({to:"/$org/$project",params:{org:a,project:c},search:Re=>({...Re,settings:V?"org.general":`project:${c}:general`})})},e[13]=d,e[14]=a,e[15]=c,e[16]=C):C=e[16];const _=C,P=pt,R=n?"w-auto pr-1.5":"w-full";let E;e[17]!==R?(E=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]",R),e[17]=R,e[18]=E):E=e[18];const B=p?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)]",n?"size-6":"size-8"),style:f?.logo?void 0:xl(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",n?"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)]",n?"size-6":"size-8"),style:{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",n?"text-xs":"text-lg"),children:(h?.name??c??"?").charAt(0).toUpperCase()})});let T;e[19]!==f?.name||e[20]!==h?.name||e[21]!==n||e[22]!==p||e[23]!==c?(T=!n&&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:p?"Studio":h?.name??c??""})]}),s.jsx(ss,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=f?.name,e[20]=h?.name,e[21]=n,e[22]=p,e[23]=c,e[24]=T):T=e[24];let O;e[25]!==E||e[26]!==B||e[27]!==T?(O=s.jsx(xt,{asChild:!0,children:s.jsxs("button",{type:"button",className:E,children:[B,T]})}),e[25]=E,e[26]=B,e[27]=T,e[28]=O):O=e[28];const M=ut,F="start",D="bottom",L="w-64 flex flex-col gap-0.5",ee=hl,te=p&&"bg-accent";let Q;e[29]!==te?(Q=I("gap-2.5",te),e[29]=te,e[30]=Q):Q=e[30];const ce=f?.logo??"",de=f?.name??"";let Z;e[31]!==ce||e[32]!==de?(Z=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]=Z):Z=e[33];const Y=f?.name;let W;e[34]!==Y?(W=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",Y]}),e[34]=Y,e[35]=W):W=e[35];let se;e[36]!==p?(se=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=se):se=e[37];let le;e[38]!==x||e[39]!==Q||e[40]!==Z||e[41]!==W||e[42]!==se?(le=s.jsxs(ae,{className:Q,onClick:x,children:[Z,W,se]}),e[38]=x,e[39]=Q,e[40]=Z,e[41]=W,e[42]=se,e[43]=le):le=e[43];let X;e[44]===Symbol.for("react.memo_cache_sentinel")?(X=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]=X):X=e[44];let G;e[45]!==f||e[46]!==S||e[47]!==a||e[48]!==c?(G=f&&s.jsx(A.Suspense,{fallback:s.jsx(fl,{}),children:s.jsx(ul,{organizationId:f.id,currentProjectSlug:c,orgSlug:a??"",onSelect:S})}),e[45]=f,e[46]=S,e[47]=a,e[48]=c,e[49]=G):G=e[49];let K;e[50]!==z?(K=z&&s.jsxs(ae,{className:"gap-2.5",onClick:z,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=z,e[51]=K):K=e[51];let H;e[52]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(Ue,{}),e[52]=H):H=e[52];const ne=us;let J;e[53]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsxs(ps,{className:"gap-2.5",children:[s.jsx(rt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=J):J=e[53];const ie=fs,he="w-48 flex flex-col gap-0.5";let xe;e[54]!==v||e[55]!==a?(xe=V=>s.jsxs(ae,{className:I("gap-2.5",V.slug===a&&"bg-accent"),onClick:()=>v(V.slug),children:[s.jsx(Ie,{url:V.logo??"",fallback:V.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:V.name}),V.slug===a&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},V.id),e[54]=v,e[55]=a,e[56]=xe):xe=e[56];const ge=j.map(xe);let w;e[57]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ue,{}),e[57]=w):w=e[57];let U;e[58]!==m?(U=()=>m(!0),e[58]=m,e[59]=U):U=e[59];let me,be;e[60]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),be=s.jsx("span",{children:"Create organization"}),e[60]=me,e[61]=be):(me=e[60],be=e[61]);let Ne;e[62]!==U?(Ne=s.jsxs(ae,{className:"gap-2.5",onClick:U,children:[me,be]}),e[62]=U,e[63]=Ne):Ne=e[63];let fe;e[64]!==ie||e[65]!==ge||e[66]!==Ne?(fe=s.jsxs(ie,{className:he,children:[ge,w,Ne]}),e[64]=ie,e[65]=ge,e[66]=Ne,e[67]=fe):fe=e[67];let ue;e[68]!==ne||e[69]!==J||e[70]!==fe?(ue=s.jsxs(ne,{children:[J,fe]}),e[68]=ne,e[69]=J,e[70]=fe,e[71]=ue):ue=e[71];let Oe,Me;e[72]===Symbol.for("react.memo_cache_sentinel")?(Oe=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),Me=s.jsx("span",{children:"Settings"}),e[72]=Oe,e[73]=Me):(Oe=e[72],Me=e[73]);let ke;e[74]!==_?(ke=s.jsxs(ae,{className:"gap-2.5",onClick:_,children:[Oe,Me]}),e[74]=_,e[75]=ke):ke=e[75];let _e;e[76]!==M||e[77]!==ee||e[78]!==le||e[79]!==X||e[80]!==G||e[81]!==K||e[82]!==H||e[83]!==ue||e[84]!==ke?(_e=s.jsxs(M,{align:F,side:D,className:L,onCloseAutoFocus:ee,children:[le,X,G,K,H,ue,ke]}),e[76]=M,e[77]=ee,e[78]=le,e[79]=X,e[80]=G,e[81]=K,e[82]=H,e[83]=ue,e[84]=ke,e[85]=_e):_e=e[85];let Ce;e[86]!==P||e[87]!==O||e[88]!==_e?(Ce=s.jsxs(P,{children:[O,_e]}),e[86]=P,e[87]=O,e[88]=_e,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==m?(we=s.jsx(xs,{open:u,onOpenChange:m}),e[90]=u,e[91]=m,e[92]=we):we=e[92];let De;return e[93]!==Ce||e[94]!==we?(De=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=De):De=e[95],De}function hl(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(re,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ye(t){const e=$.c(4),{onCreateProject:l}=t,{state:i,toggleSidebar:n}=Be(),o=i==="collapsed";let a;return e[0]!==o||e[1]!==l||e[2]!==n?(a=s.jsx(Nt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ve,{children:s.jsx(pe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:l}),s.jsx(Te,{onClick:n,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:l})}),s.jsx(Te,{onClick:n,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=l,e[2]=n,e[3]=a):a=e[3],a}Ye.Skeleton=function(){return s.jsx(Nt,{className:"px-3",children:s.jsx(ve,{children:s.jsx(pe,{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(re,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(re,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function gl(t){const e=$.c(50),{user:l,userImage:i}=t,{open:n}=ct(),[o,a]=A.useState(!1);let c;e[0]!==l.email||e[1]!==l.id||e[2]!==l.name?(c=()=>{const ee=`ID: ${l.id}
1
+ import{r as A,c as $,j as s,E as Qe,u as ze,z as I,e as Ze,as as Xe,L as Fe,c8 as _t,be as Ct,O as q,ar as wt,ab as $t,ad as zt,ae as It,ac as Pt,af as At,ah as Et,ag as Tt,H as Ot,M as Mt,g as lt,f as Se,x as ye,c9 as Dt,bK as Rt,w as Lt,B as We,A as Ht,S as it,k as Ut,m as Bt,N as Ft,v as Wt,K as Gt,au as nt,P as Kt}from"./index-CzhqcVNy.js";import{C as oe}from"./index-D0IWyB7F.js";import{I as Vt}from"./integration-icon-C_O5yvdg.js";import{u as ot,P as je}from"./index-DvM0KkHv.js";import{d as qt,u as Yt}from"./constants-OpiJAgZI.js";import{n as Ge}from"./CheckDone01-BYS-dKbQ.js";import{n as Qt}from"./ChevronLeft-Ov3NE9c_.js";import{i as Zt}from"./Loading01-DoI38kJv.js";import{s as Le}from"./Plus-vjPXrbll.js";import{t as Je}from"./Users03-CiI7Y2pI.js";import{i as Ke}from"./X-LrH2dki2.js";import{E as Xt,C as Jt}from"./editable-task-title-BUHTazHh.js";import{T as es}from"./tasks-panel-bZwhdQBY.js";import{a as ts,i as ss}from"./context-7Kd5bp6X.js";import{C as at}from"./create-project-dialog-DcUDVcZj.js";import{t as rt,u as ct,i as ls}from"./use-settings-modal-Cb5fjZOk.js";import{n as is}from"./Container-BXYdiT-J.js";import{e as ns}from"./Dataflow03-FtQ0Yhj_.js";import{a as os}from"./Home02-CD_MJrmZ.js";import{i as Ve}from"./LayoutLeft-CTT2u70-.js";import{t as He}from"./Settings01-C_OWZaLW.js";import{u as dt,a as mt}from"./use-project-O2tBNyfQ.js";import{u as as}from"./use-mobile-Ccj9Yl8E.js";import{c as rs,b as cs,a as ds,T as ms}from"./tooltip-B-2Ty_iR.js";import{S as re}from"./skeleton-LSt15V1C.js";import{n as $e}from"./LinkExternal01-D38J8WFf.js";import{t as ft}from"./ChevronDown-C7zTxlHE.js";import{A as Ie}from"./avatar-DMHAVN2G.js";import{c as ae,k as fs,h as us,b as ut,D as pt,a as xt,e as Ue,j as ps}from"./dropdown-menu-Bv41z45k.js";import{i as Pe}from"./Check-D30Nw_2C.js";import{C as xs}from"./create-organization-dialog-BneQWVKs.js";import{a as hs}from"./Copy01-xLxETA4z.js";import{i as gs}from"./File06-u0e892jj.js";import{i as bs}from"./Globe01-CttWHoLh.js";import{i as js}from"./Shield01-Blnh5_zF.js";import{P as vs,b as Ns,a as ys}from"./popover-DMD8_Cbp.js";import{n as st}from"./Inbox01-DUegC4zX.js";import{s as Ss}from"./XClose-T4dQr9IP.js";import{b as ks}from"./use-connection-CkLGBugg.js";import{b as _s}from"./use-mcp-tools-_SrEx2Yc.js";import{c as Cs,A as ws}from"./use-binding-CHcWA4CU.js";import{C as $s,b as zs,c as Is}from"./collapsible-CtdNMvGE.js";import{i as Ps}from"./ChevronRight-BJe7e-X2.js";import{u as et,L as tt}from"./localstorage-keys-CL6qU9e5.js";import{a as As,R as ht,b as Es}from"./resizable-DLaWW8z1.js";import"./spinner-CI9QBd79.js";import"./use-mcp-prompts-DJolbe2G.js";import"./useQuery-BtUsJRrm.js";import"./dialog-DXMtLbOt.js";import"./form-Ndm9rRCe.js";import"./label-ZRpbI7Sm.js";import"./input-CaHgq6JC.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-WkRPF3Cl.js";import"./Edit01-BE5Wu5ID.js";import"./Lock01-BpzLUKPy.js";import"./XCircle-KlbMEvQq.js";import"./AlertCircle-CLSQ0NLi.js";import"./select-DhCocnGM.js";import"./index-Dq7847Un.js";import"./use-preferences-CBTWTfUK.js";import"./ArrowLeft-ZgtBxTyN.js";import"./use-copy-BNKFNH2y.js";import"./tabs-d2vBhIp6.js";import"./badge-ChDtoe7k.js";import"./Code01-BOUu51ck.js";import"./use-virtual-mcp-CelTUOdD.js";import"./use-collections-C8v6HwyA.js";import"./useMutation-BLMqKfMt.js";import"./SearchMd-BpeHWO8y.js";import"./use-create-virtual-mcp-BvTxfE8g.js";import"./decopilot-events-BAhRgxLp.js";import"./marked.esm-BaswSlok.js";import"./markdown-CjmEcbPS.js";import"./mcp-app-renderer-DjshzOV0.js";import"./types-DiJR_Oxi.js";import"./Eye-CmzbjCht.js";import"./Globe02-BaK8gLi7.js";import"./LayersTwo01-DY3gWhYo.js";import"./collection-search-DnArRJMW.js";import"./generate-id-Dyweu44Y.js";import"./Clock--mEiDXe5.js";import"./Trash01-Bfnjcg6w.js";import"./CheckCircle-4PmUxEXj.js";import"./user-BIDniHYV.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-llm-CfPWCeJ7.js";import"./checkbox-D_aK0Mdh.js";import"./AlignLeft-DGT5YesK.js";import"./Image01-NW_uhHHO.js";import"./RefreshCcw01-C1dtrtd7.js";import"./useSuspenseInfiniteQuery-BB0K0DXv.js";import"./infiniteQueryObserver-B0sfe0Pc.js";import"./textarea-CqsgYI_z.js";import"./alert-dialog-ZI_d17Kf.js";import"./binder-BSp18fmP.js";const gt=({size:t=24,color:e="currentColor",...l})=>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",...l},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"}));gt.displayName="BarChart10";const bt=({size:t=24,color:e="currentColor",...l})=>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",...l},A.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));bt.displayName="FaceSmile";const jt=({size:t=24,color:e="currentColor",...l})=>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",...l},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"}));jt.displayName="LogOut01";function Ts(){const t=$.c(72),{org:e}=ze(),[,l]=ot(),{selectedVirtualMcp:i,modelsConnections:n,isChatEmpty:o,activeTaskId:a,createTask:c,switchToTask:r,tasks:d}=ts();let f;if(t[0]!==a||t[1]!==d){let H;t[3]!==a?(H=ne=>ne.id===a,t[3]=a,t[4]=H):H=t[4],f=d.find(H),t[0]=a,t[1]=d,t[2]=f}else f=t[2];const u=f,[m,p]=A.useState("chat"),[h,g]=A.useTransition();let j;t[5]!==e.id?(j=qt(e.id),t[5]=e.id,t[6]=j):j=t[6];const x=i??j;let b;t[7]!==c?(b=()=>{g(()=>{c()})},t[7]=c,t[8]=b):b=t[8];const S=b;if(n.length===0){let H;t[9]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(je.Header.Left,{className:"gap-2"}),t[9]=H):H=t[9];let ne;t[10]!==l?(ne=()=>l(!1),t[10]=l,t[11]=ne):ne=t[11];let J;t[12]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=J):J=t[12];let ie;t[13]!==ne?(ie=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[H,s.jsx(je.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ne,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:J})})]}),t[13]=ne,t[14]=ie):ie=t[14];let he;t[15]!==e?(he=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.",org:e})})}),t[15]=e,t[16]=he):he=t[16];let xe;return t[17]!==ie||t[18]!==he?(xe=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[ie,he]}),t[17]=ie,t[18]=he,t[19]=xe):xe=t[19],xe}const k=m!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let v;t[20]!==k?(v=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",k),t[20]=k,t[21]=v):v=t[21];let N;t[22]!==u||t[23]!==o?(N=!o&&u?.title&&s.jsx(Xt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[22]=u,t[23]=o,t[24]=N):N=t[24];let z;t[25]!==N?(z=s.jsx(je.Header.Left,{className:"gap-2",children:N}),t[25]=N,t[26]=z):z=t[26];let C;t[27]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=C):C=t[27];let _;t[28]!==S||t[29]!==h?(_=s.jsx("button",{type:"button",onClick:S,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:C}),t[28]=S,t[29]=h,t[30]=_):_=t[30];let P;t[31]===Symbol.for("react.memo_cache_sentinel")?(P=()=>p("tasks"),t[31]=P):P=t[31];let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=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(Ge,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=R):R=t[32];let E;t[33]!==l?(E=()=>l(!1),t[33]=l,t[34]=E):E=t[34];let B;t[35]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=B):B=t[35];let T;t[36]!==E?(T=s.jsx("button",{type:"button",onClick:E,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:B}),t[36]=E,t[37]=T):T=t[37];let O;t[38]!==T||t[39]!==_?(O=s.jsxs(je.Header.Right,{className:"gap-1",children:[_,R,T]}),t[38]=T,t[39]=_,t[40]=O):O=t[40];let M;t[41]!==O||t[42]!==z?(M=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[z,O]}),t[41]=O,t[42]=z,t[43]=M):M=t[43];let F;t[44]!==x||t[45]!==o?(F=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(Vt,{icon:x.icon,name:x.title,size:"lg",fallbackIcon:s.jsx(Je,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:x.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:x.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[44]=x,t[45]=o,t[46]=F):F=t[46];let D;t[47]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[47]=D):D=t[47];let L;t[48]!==M||t[49]!==F||t[50]!==v?(L=s.jsxs("div",{className:v,children:[M,F,D]}),t[48]=M,t[49]=F,t[50]=v,t[51]=L):L=t[51];const ee=m==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let te;t[52]!==ee?(te=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",ee),t[52]=ee,t[53]=te):te=t[53];let Q;t[54]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(je.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[54]=Q):Q=t[54];let ce;t[55]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>p("chat"),t[55]=ce):ce=t[55];let de;t[56]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[Q,s.jsx(je.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(Qt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[56]=de):de=t[56];let Z;t[57]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Zt,{size:16,className:"animate-spin text-muted-foreground"})}),t[57]=Z):Z=t[57];let Y;t[58]!==r?(Y=s.jsx(Qe,{fallback:Os,children:s.jsx(A.Suspense,{fallback:Z,children:s.jsx(es,{onTaskSelect:async H=>{await r(H),p("chat")}})})}),t[58]=r,t[59]=Y):Y=t[59];let W;t[60]!==te||t[61]!==Y?(W=s.jsxs("div",{className:te,children:[de,Y]}),t[60]=te,t[61]=Y,t[62]=W):W=t[62];const se=m==="context"?"opacity-100":"opacity-0 pointer-events-none";let le;t[63]!==se?(le=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",se),t[63]=se,t[64]=le):le=t[64];let X;t[65]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(Jt,{back:!0,onClose:()=>p("chat")}),t[65]=X):X=t[65];let G;t[66]!==le?(G=s.jsx("div",{className:le,children:X}),t[66]=le,t[67]=G):G=t[67];let K;return t[68]!==L||t[69]!==W||t[70]!==G?(K=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[L,W,G]}),t[68]=L,t[69]=W,t[70]=G,t[71]=K):K=t[71],K}function Os(){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 Ms(){const t=$.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Qe,{fallback:e,children:s.jsx(A.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ts,{})})}),t[1]=l):l=t[1],l}function Ds(){const t=$.c(58),{locator:e,org:l}=ze(),i=Ze(),n=Xe(),{org:o,project:a}=Fe.parse(e),c=Fe.isOrgAdminProject(e),{data:r}=dt(l.id,a);let d;t[0]!==r?.enabledPlugins?(d=r?.enabledPlugins??[],t[0]=r?.enabledPlugins,t[1]=d):d=t[1];const f=d,u=r?.ui?.pinnedViews??[];let m;t[2]!==f?(m=w=>f.includes(w.pluginId),t[2]=f,t[3]=m):m=t[3];const p=_t.filter(m),h=n.location.pathname,g=`/${o}/${a}`,j=h===g||h===`${g}/`;let y;t[4]!==g||t[5]!==h?(y=w=>h.startsWith(`${g}/${w}`),t[4]=g,t[5]=h,t[6]=y):y=t[6];const x=y;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(os,{}),t[7]=b):b=t[7];const S={key:"home",label:"Home",icon:b,isActive:j,onClick:()=>{j?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:o,project:a}})}};let k;t[8]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Ge,{}),t[8]=k):k=t[8];const v={key:"tasks",label:"Tasks",icon:k,isActive:x("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:o,project:q}})};let N;t[9]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(is,{}),t[9]=N):N=t[9];const z={key:"mcps",label:"Connections",icon:N,isActive:x("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:o,project:q}})};let C;t[10]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(wt,{}),t[10]=C):C=t[10];const _={key:"projects",label:"Projects",icon:C,isActive:x("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:o,project:q}})};let P;t[11]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(rt,{}),t[11]=P):P=t[11];const R={key:"store",label:"Store",icon:P,isActive:x("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:o,project:q}})};let E;t[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(Je,{}),t[12]=E):E=t[12];const B={key:"agents",label:"Agents",icon:E,isActive:x("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:o,project:q}})};let T;t[13]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(gt,{}),t[13]=T):T=t[13];const O={key:"monitoring",label:"Monitor",icon:T,isActive:x("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:o,project:q}})};let M;t[14]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(bt,{}),t[14]=M):M=t[14];const F={key:"members",label:"Members",icon:M,isActive:x("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:o,project:q}})},D=p.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:o,project:a,pluginId:w.pluginId}})}));let L;t[15]!==f?(L=w=>f.includes(w.pluginId),t[15]=f,t[16]=L):L=t[16];const te=Ct.filter(L).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((U,me)=>({key:`${w.pluginId}-${w.id}-${me}`,label:U.label,icon:U.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:o,project:a,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}})),Q=u.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:x(`apps/${w.connectionId}/${encodeURIComponent(w.toolName)}`),onClick:()=>i({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:o,project:a,connectionId:w.connectionId,toolName:w.toolName}})}));let ce;t[17]!==Q?(ce=Q.length>0?{type:"group",group:{id:"apps",label:"Apps",items:Q,defaultExpanded:!0}}:null,t[17]=Q,t[18]=ce):ce=t[18];const de=ce;if(c){let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(He,{}),t[19]=w):w=t[19];let U;t[20]!==x?(U=x("settings"),t[20]=x,t[21]=U):U=t[21];let me;t[22]!==i||t[23]!==o?(me=()=>i({to:"/$org/$project/settings",params:{org:o,project:q}}),t[22]=i,t[23]=o,t[24]=me):me=t[24];let be;t[25]!==U||t[26]!==me?(be={key:"settings",label:"Settings",icon:w,isActive:U,onClick:me},t[25]=U,t[26]=me,t[27]=be):be=t[27];const fe=[{type:"items",items:[S,v,_]},{type:"group",group:{id:"build",label:"Build",items:[B,z,R],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[O,F,be],defaultExpanded:!0}}];if(D.length>0){let ue;t[28]!==D?(ue={type:"items",items:D},t[28]=D,t[29]=ue):ue=t[29],fe.push(ue)}return te.length>0&&fe.push(...te),de&&fe.push(de),fe}let Z;t[30]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(Ge,{}),t[30]=Z):Z=t[30];let Y;t[31]!==x?(Y=x("tasks"),t[31]=x,t[32]=Y):Y=t[32];let W;t[33]!==i||t[34]!==o||t[35]!==a?(W=()=>i({to:"/$org/$project/tasks",params:{org:o,project:a}}),t[33]=i,t[34]=o,t[35]=a,t[36]=W):W=t[36];let se;t[37]!==Y||t[38]!==W?(se={key:"tasks",label:"Tasks",icon:Z,isActive:Y,onClick:W},t[37]=Y,t[38]=W,t[39]=se):se=t[39];const le=se;let X;t[40]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(ns,{}),t[40]=X):X=t[40];let G;t[41]!==x?(G=x("workflows"),t[41]=x,t[42]=G):G=t[42];let K;t[43]!==i||t[44]!==o||t[45]!==a?(K=()=>i({to:"/$org/$project/workflows",params:{org:o,project:a}}),t[43]=i,t[44]=o,t[45]=a,t[46]=K):K=t[46];let H;t[47]!==G||t[48]!==K?(H={key:"workflows",label:"Workflows",icon:X,isActive:G,onClick:K},t[47]=G,t[48]=K,t[49]=H):H=t[49];const ne=H;let J;t[50]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(He,{}),t[50]=J):J=t[50];let ie;t[51]!==i||t[52]!==o||t[53]!==a?(ie={key:"configure",label:"Configure",icon:J,isActive:!1,isExternal:!0,onClick:()=>i({to:"/$org/$project/projects/$slug/settings/general",params:{org:o,project:q,slug:a}})},t[51]=i,t[52]=o,t[53]=a,t[54]=ie):ie=t[54];const ge=[{type:"items",items:[S,le,ne,ie]}];if(D.length>0){let w;t[55]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[55]=w):w=t[55],ge.push(w);let U;t[56]!==D?(U={type:"items",items:D},t[56]=D,t[57]=U):U=t[57],ge.push(U)}return te.length>0&&ge.push(...te),de&&ge.push(de),ge}function Rs(t){const e=$.c(4);let l;e[0]!==t?({...l}=t,e[0]=t,e[1]=l):l=e[1];let i;return e[2]!==l?(i=s.jsx($t,{"data-slot":"sheet",...l}),e[2]=l,e[3]=i):i=e[3],i}function Ls(t){const e=$.c(4);let l;e[0]!==t?({...l}=t,e[0]=t,e[1]=l):l=e[1];let i;return e[2]!==l?(i=s.jsx(At,{"data-slot":"sheet-portal",...l}),e[2]=l,e[3]=i):i=e[3],i}function Hs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(Tt,{"data-slot":"sheet-overlay",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Us(t){const e=$.c(17);let l,i,n,o;e[0]!==t?({className:i,children:l,side:o,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o):(l=e[1],i=e[2],n=e[3],o=e[4]);const a=o===void 0?"right":o;let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Hs,{}),e[5]=c):c=e[5];const r=a==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",d=a==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=a==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",u=a==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==i||e[7]!==r||e[8]!==d||e[9]!==f||e[10]!==u?(m=I("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",r,d,f,u,i),e[6]=i,e[7]=r,e[8]=d,e[9]=f,e[10]=u,e[11]=m):m=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs(Et,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[s.jsx(Ke,{className:"size-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=p):p=e[12];let h;return e[13]!==l||e[14]!==n||e[15]!==m?(h=s.jsxs(Ls,{children:[c,s.jsxs(Pt,{"data-slot":"sheet-content",className:m,...n,children:[l,p]})]}),e[13]=l,e[14]=n,e[15]=m,e[16]=h):h=e[16],h}function Bs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-1.5 p-4",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sheet-header",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Fs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("text-foreground font-semibold",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(zt,{"data-slot":"sheet-title",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ws(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("text-muted-foreground text-sm",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(It,{"data-slot":"sheet-description",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}const Gs="sidebar_state",Ks=3600*24*7,Vs="16rem",qs="18rem",Ys="3rem",Qs="b",vt=A.createContext(null);function Be(){const t=A.useContext(vt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Zs(t){const e=$.c(21),{defaultOpen:l,open:i,onOpenChange:n,children:o}=t,a=l===void 0?!0:l,c=as(),[r,d]=A.useState(!1),[f,u]=A.useState(a),m=i??f;let p;e[0]!==m||e[1]!==n?(p=z=>{const C=typeof z=="function"?z(m):z;n?n(C):u(C),document.cookie=`${Gs}=${C}; path=/; max-age=${Ks}`},e[0]=m,e[1]=n,e[2]=p):p=e[2];const h=p;let g;e[3]!==c||e[4]!==h?(g=()=>c?d(Js):h(Xs),e[3]=c,e[4]=h,e[5]=g):g=e[5];const j=g;let y,x;e[6]!==j?(y=()=>{const z=C=>{if(C.key===Qs&&(C.metaKey||C.ctrlKey)){const _=C.target;if(_.tagName==="INPUT"||_.tagName==="TEXTAREA"||_.isContentEditable)return;C.preventDefault(),j()}};return globalThis.addEventListener("keydown",z),()=>globalThis.removeEventListener("keydown",z)},x=[j],e[6]=j,e[7]=y,e[8]=x):(y=e[7],x=e[8]),A.useEffect(y,x);const b=m?"expanded":"collapsed";let S;e[9]!==c||e[10]!==m||e[11]!==r||e[12]!==h||e[13]!==b||e[14]!==j?(S={state:b,open:m,setOpen:h,isMobile:c,openMobile:r,setOpenMobile:d,toggleSidebar:j},e[9]=c,e[10]=m,e[11]=r,e[12]=h,e[13]=b,e[14]=j,e[15]=S):S=e[15];const k=S;let v;e[16]!==o?(v=s.jsx(rs,{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(vt.Provider,{value:k,children:v}),e[18]=k,e[19]=v,e[20]=N):N=e[20],N}function Xs(t){return!t}function Js(t){return!t}function el(t){const e=$.c(14);let l,i,n,o;e[0]!==t?({className:i,style:o,children:l,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o):(l=e[1],i=e[2],n=e[3],o=e[4]);let a;e[5]!==o?(a={"--sidebar-width":Vs,"--sidebar-width-icon":Ys,...o},e[5]=o,e[6]=a):a=e[6];const c=a;let r;e[7]!==i?(r=I("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",i),e[7]=i,e[8]=r):r=e[8];let d;return e[9]!==l||e[10]!==n||e[11]!==c||e[12]!==r?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:c,className:r,...n,children:l}),e[9]=l,e[10]=n,e[11]=c,e[12]=r,e[13]=d):d=e[13],d}function tl(t){const e=$.c(42);let l,i,n,o,a,c;e[0]!==t?({side:o,variant:a,collapsible:c,className:i,children:l,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o,e[5]=a,e[6]=c):(l=e[1],i=e[2],n=e[3],o=e[4],a=e[5],c=e[6]);const r=o===void 0?"left":o,d=a===void 0?"sidebar":a,f=c===void 0?"offcanvas":c,{isMobile:u,state:m,openMobile:p,setOpenMobile:h}=Be();if(f==="none"){let v;e[7]!==i?(v=I("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),e[7]=i,e[8]=v):v=e[8];let N;return e[9]!==l||e[10]!==n||e[11]!==v?(N=s.jsx("div",{"data-slot":"sidebar",className:v,...n,children:l}),e[9]=l,e[10]=n,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":qs},e[13]=v):v=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(Bs,{className:"sr-only",children:[s.jsx(Fs,{children:"Sidebar"}),s.jsx(Ws,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let z;e[15]!==l?(z=s.jsx("div",{className:"flex h-full w-full flex-col",children:l}),e[15]=l,e[16]=z):z=e[16];let C;e[17]!==r||e[18]!==z?(C=s.jsxs(Us,{"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:r,children:[N,z]}),e[17]=r,e[18]=z,e[19]=C):C=e[19];let _;return e[20]!==p||e[21]!==n||e[22]!==h||e[23]!==C?(_=s.jsx(Rs,{open:p,onOpenChange:h,...n,children:C}),e[20]=p,e[21]=n,e[22]=h,e[23]=C,e[24]=_):_=e[24],_}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 y=m==="collapsed"?f:"";let x;e[27]!==i?(x=I("flex flex-col h-full w-(--sidebar-width)",i),e[27]=i,e[28]=x):x=e[28];let b;e[29]!==l?(b=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:l}),e[29]=l,e[30]=b):b=e[30];let S;e[31]!==n||e[32]!==x||e[33]!==b?(S=s.jsx("div",{"data-slot":"sidebar-container",className:x,...n,children:b}),e[31]=n,e[32]=x,e[33]=b,e[34]=S):S=e[34];let k;return e[35]!==r||e[36]!==m||e[37]!==j||e[38]!==y||e[39]!==S||e[40]!==d?(k=s.jsx("div",{className:j,"data-state":m,"data-collapsible":y,"data-variant":d,"data-side":r,"data-slot":"sidebar",children:S}),e[35]=r,e[36]=m,e[37]=j,e[38]=y,e[39]=S,e[40]=d,e[41]=k):k=e[41],k}function sl(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=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",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Nt(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-2 p-2",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function ll(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-2 p-2",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function il(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("h-4 m-0! w-full",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-sidebar":"separator",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function nl(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ae(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ee(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("w-full text-sm",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function ve(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex w-full min-w-0 flex-col gap-1",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function pe(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("group/menu-item relative",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}const ol=Mt("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 Te(t){const e=$.c(28);let l,i,n,o,a,c,r;e[0]!==t?({asChild:n,isActive:o,variant:a,size:c,tooltip:r,className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o,e[5]=a,e[6]=c,e[7]=r):(l=e[1],i=e[2],n=e[3],o=e[4],a=e[5],c=e[6],r=e[7]);const d=n===void 0?!1:n,f=o===void 0?!1:o,u=a===void 0?"default":a,m=c===void 0?"default":c,p=d?Ot:"button",{isMobile:h,state:g}=Be();let j;e[8]!==l||e[9]!==m||e[10]!==u?(j=I(ol({variant:u,size:m}),l),e[8]=l,e[9]=m,e[10]=u,e[11]=j):j=e[11];let y;e[12]!==p||e[13]!==f||e[14]!==i||e[15]!==m||e[16]!==j?(y=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":f,className:j,...i}),e[12]=p,e[13]=f,e[14]=i,e[15]=m,e[16]=j,e[17]=y):y=e[17];const x=y;if(!r)return x;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let b;e[20]!==x?(b=s.jsx(ds,{asChild:!0,children:x}),e[20]=x,e[21]=b):b=e[21];const S=g!=="collapsed"||h;let k;e[22]!==S||e[23]!==r?(k=s.jsx(cs,{side:"right",align:"center",hidden:S,...r}),e[22]=S,e[23]=r,e[24]=k):k=e[24];let v;return e[25]!==b||e[26]!==k?(v=s.jsxs(ms,{children:[b,k]}),e[25]=b,e[26]=k,e[27]=v):v=e[27],v}function al(t){const e=$.c(11),{label:l,children:i,defaultExpanded:n}=t,o=n===void 0?!0:n,[a,c]=A.useState(o),{state:r}=Be(),d=r==="collapsed";let f;e[0]!==a||e[1]!==d||e[2]!==l?(f=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(ve,{children:s.jsx(pe,{children:s.jsxs(Te,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>c(!a),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:l}),s.jsx(ft,{size:12,className:I("text-muted-foreground transition-transform duration-200",!a&&"-rotate-90")})]})})}),e[0]=a,e[1]=d,e[2]=l,e[3]=f):f=e[3];let u;e[4]!==i||e[5]!==a||e[6]!==d?(u=(d||a)&&s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:i})}),e[4]=i,e[5]=a,e[6]=d,e[7]=u):u=e[7];let m;return e[8]!==f||e[9]!==u?(m=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[f,u]}),e[8]=f,e[9]=u,e[10]=m):m=e[10],m}function yt(t){const e=$.c(22),{item:l}=t,i=l.key,n=l.onClick,o=l.isActive,a=l.label,c=l.isExternal&&"group/external";let r;e[0]!==c?(r=I(c),e[0]=c,e[1]=r):r=e[1];let d;e[2]!==l.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:l.icon}),e[2]=l.icon,e[3]=d):d=e[3];const f=l.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]!==l.label||e[7]!==u?(m=s.jsx("span",{className:u,children:l.label}),e[6]=l.label,e[7]=u,e[8]=m):m=e[8];let p;e[9]!==l.isExternal?(p=l.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]=l.isExternal,e[10]=p):p=e[10];let h;e[11]!==l.isActive||e[12]!==l.label||e[13]!==l.onClick||e[14]!==m||e[15]!==p||e[16]!==r||e[17]!==d?(h=s.jsxs(Te,{onClick:n,isActive:o,tooltip:a,className:r,children:[d,m,p]}),e[11]=l.isActive,e[12]=l.label,e[13]=l.onClick,e[14]=m,e[15]=p,e[16]=r,e[17]=d,e[18]=h):h=e[18];let g;return e[19]!==l.key||e[20]!==h?(g=s.jsx(pe,{children:h},i),e[19]=l.key,e[20]=h,e[21]=g):g=e[21],g}function rl(t){const e=$.c(12),{section:l}=t;switch(l.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(il,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=l.group.label,n=l.group.defaultExpanded;let o;e[2]!==l.group.items?(o=l.group.items.map(dl),e[2]=l.group.items,e[3]=o):o=e[3];let a;return e[4]!==l.group.defaultExpanded||e[5]!==l.group.label||e[6]!==o?(a=s.jsx(al,{label:i,defaultExpanded:n,children:o}),e[4]=l.group.defaultExpanded,e[5]=l.group.label,e[6]=o,e[7]=a):a=e[7],a}case"items":{let i;e[8]!==l.items?(i=l.items.map(cl),e[8]=l.items,e[9]=i):i=e[9];let n;return e[10]!==i?(n=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:i})})}),e[10]=i,e[11]=n):n=e[11],n}}}function cl(t){return s.jsx(yt,{item:t},t.key)}function dl(t){return s.jsx(yt,{item:t},t.key)}function St(t){const e=$.c(14),{sections:l,header:i,footer:n,additionalContent:o,variant:a,collapsible:c,contentClassName:r}=t,d=a===void 0?"sidebar":a,f=c===void 0?"icon":c;let u;e[0]!==r?(u=I("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",r),e[0]=r,e[1]=u):u=e[1];let m;e[2]!==l?(m=l.map(ml),e[2]=l,e[3]=m):m=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==m?(p=s.jsxs(nl,{className:u,children:[m,o]}),e[4]=o,e[5]=u,e[6]=m,e[7]=p):p=e[7];let h;return e[8]!==f||e[9]!==n||e[10]!==i||e[11]!==p||e[12]!==d?(h=s.jsxs(tl,{variant:d,collapsible:f,children:[i,p,n]}),e[8]=f,e[9]=n,e[10]=i,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ml(t,e){return s.jsx(rl,{section:t},e)}St.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,l)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(re,{className:"h-full bg-sidebar-accent rounded-md"})},l))})};function fl(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(re,{className:"h-8 w-full rounded-lg"}),s.jsx(re,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function ul(t){const e=$.c(12),{organizationId:l,currentProjectSlug:i,onSelect:n}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:a}=mt(l,o);let c,r;if(e[1]!==i||e[2]!==n||e[3]!==a){r=Symbol.for("react.early_return_sentinel");e:{const f=a?.filter(pl)??[];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],r=m;break e}let u;e[7]!==i||e[8]!==n?(u=m=>{const p=i===m.slug,h=m.ui?.themeColor??"#3B82F6";return s.jsxs(ae,{className:I("gap-2.5",p&&"bg-accent"),onClick:()=>n(m.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:h},children:m.ui?.icon?s.jsx("img",{src:m.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:m.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:m.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},m.id)},e[7]=i,e[8]=n,e[9]=u):u=e[9],c=f.map(u)}e[1]=i,e[2]=n,e[3]=a,e[4]=c,e[5]=r}else c=e[4],r=e[5];if(r!==Symbol.for("react.early_return_sentinel"))return r;let d;return e[10]!==c?(d=s.jsx(s.Fragment,{children:c}),e[10]=c,e[11]=d):d=e[11],d}function pl(t){return t.slug!==q}function xl(t){let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);const l=Math.abs(e)%360;return{backgroundColor:`hsl(${l} 55% 70%)`,color:`hsl(${l} 55% 20%)`}}function qe(t){const e=$.c(96),{isCollapsed:l,onCreateProject:i}=t,n=l===void 0?!1:l;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:a,project:c}=lt(o),{data:r}=Se.useListOrganizations(),d=Ze(),f=r?.find(V=>V.slug===a),[u,m]=A.useState(!1),p=c===q,{data:h}=dt(f?.id??"",p?"":c??"");let g;e[1]!==a?(g=(V,Re)=>V.slug===a?-1:Re.slug===a?1:V.name.localeCompare(Re.name),e[1]=a,e[2]=g):g=e[2];const j=[...r??[]].sort(g);let y;e[3]!==d||e[4]!==a?(y=()=>{a&&d({to:"/$org/$project",params:{org:a,project:q}})},e[3]=d,e[4]=a,e[5]=y):y=e[5];const x=y;let b;e[6]!==d||e[7]!==a?(b=V=>{a&&d({to:"/$org/$project",params:{org:a,project:V}})},e[6]=d,e[7]=a,e[8]=b):b=e[8];const S=b;let k;e[9]!==d?(k=V=>{d({to:"/$org/$project",params:{org:V,project:q}})},e[9]=d,e[10]=k):k=e[10];const v=k;let N;e[11]!==i?(N=i?()=>i():void 0,e[11]=i,e[12]=N):N=e[12];const z=N;let C;e[13]!==d||e[14]!==a||e[15]!==c?(C=()=>{if(!a||!c)return;const V=c===q;d({to:"/$org/$project",params:{org:a,project:c},search:Re=>({...Re,settings:V?"org.general":`project:${c}:general`})})},e[13]=d,e[14]=a,e[15]=c,e[16]=C):C=e[16];const _=C,P=pt,R=n?"w-auto pr-1.5":"w-full";let E;e[17]!==R?(E=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]",R),e[17]=R,e[18]=E):E=e[18];const B=p?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)]",n?"size-6":"size-8"),style:f?.logo?void 0:xl(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",n?"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)]",n?"size-6":"size-8"),style:{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",n?"text-xs":"text-lg"),children:(h?.name??c??"?").charAt(0).toUpperCase()})});let T;e[19]!==f?.name||e[20]!==h?.name||e[21]!==n||e[22]!==p||e[23]!==c?(T=!n&&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:p?"Studio":h?.name??c??""})]}),s.jsx(ss,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=f?.name,e[20]=h?.name,e[21]=n,e[22]=p,e[23]=c,e[24]=T):T=e[24];let O;e[25]!==E||e[26]!==B||e[27]!==T?(O=s.jsx(xt,{asChild:!0,children:s.jsxs("button",{type:"button",className:E,children:[B,T]})}),e[25]=E,e[26]=B,e[27]=T,e[28]=O):O=e[28];const M=ut,F="start",D="bottom",L="w-64 flex flex-col gap-0.5",ee=hl,te=p&&"bg-accent";let Q;e[29]!==te?(Q=I("gap-2.5",te),e[29]=te,e[30]=Q):Q=e[30];const ce=f?.logo??"",de=f?.name??"";let Z;e[31]!==ce||e[32]!==de?(Z=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]=Z):Z=e[33];const Y=f?.name;let W;e[34]!==Y?(W=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",Y]}),e[34]=Y,e[35]=W):W=e[35];let se;e[36]!==p?(se=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=se):se=e[37];let le;e[38]!==x||e[39]!==Q||e[40]!==Z||e[41]!==W||e[42]!==se?(le=s.jsxs(ae,{className:Q,onClick:x,children:[Z,W,se]}),e[38]=x,e[39]=Q,e[40]=Z,e[41]=W,e[42]=se,e[43]=le):le=e[43];let X;e[44]===Symbol.for("react.memo_cache_sentinel")?(X=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]=X):X=e[44];let G;e[45]!==f||e[46]!==S||e[47]!==a||e[48]!==c?(G=f&&s.jsx(A.Suspense,{fallback:s.jsx(fl,{}),children:s.jsx(ul,{organizationId:f.id,currentProjectSlug:c,orgSlug:a??"",onSelect:S})}),e[45]=f,e[46]=S,e[47]=a,e[48]=c,e[49]=G):G=e[49];let K;e[50]!==z?(K=z&&s.jsxs(ae,{className:"gap-2.5",onClick:z,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=z,e[51]=K):K=e[51];let H;e[52]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(Ue,{}),e[52]=H):H=e[52];const ne=us;let J;e[53]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsxs(ps,{className:"gap-2.5",children:[s.jsx(rt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=J):J=e[53];const ie=fs,he="w-48 flex flex-col gap-0.5";let xe;e[54]!==v||e[55]!==a?(xe=V=>s.jsxs(ae,{className:I("gap-2.5",V.slug===a&&"bg-accent"),onClick:()=>v(V.slug),children:[s.jsx(Ie,{url:V.logo??"",fallback:V.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:V.name}),V.slug===a&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},V.id),e[54]=v,e[55]=a,e[56]=xe):xe=e[56];const ge=j.map(xe);let w;e[57]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ue,{}),e[57]=w):w=e[57];let U;e[58]!==m?(U=()=>m(!0),e[58]=m,e[59]=U):U=e[59];let me,be;e[60]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),be=s.jsx("span",{children:"Create organization"}),e[60]=me,e[61]=be):(me=e[60],be=e[61]);let Ne;e[62]!==U?(Ne=s.jsxs(ae,{className:"gap-2.5",onClick:U,children:[me,be]}),e[62]=U,e[63]=Ne):Ne=e[63];let fe;e[64]!==ie||e[65]!==ge||e[66]!==Ne?(fe=s.jsxs(ie,{className:he,children:[ge,w,Ne]}),e[64]=ie,e[65]=ge,e[66]=Ne,e[67]=fe):fe=e[67];let ue;e[68]!==ne||e[69]!==J||e[70]!==fe?(ue=s.jsxs(ne,{children:[J,fe]}),e[68]=ne,e[69]=J,e[70]=fe,e[71]=ue):ue=e[71];let Oe,Me;e[72]===Symbol.for("react.memo_cache_sentinel")?(Oe=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),Me=s.jsx("span",{children:"Settings"}),e[72]=Oe,e[73]=Me):(Oe=e[72],Me=e[73]);let ke;e[74]!==_?(ke=s.jsxs(ae,{className:"gap-2.5",onClick:_,children:[Oe,Me]}),e[74]=_,e[75]=ke):ke=e[75];let _e;e[76]!==M||e[77]!==ee||e[78]!==le||e[79]!==X||e[80]!==G||e[81]!==K||e[82]!==H||e[83]!==ue||e[84]!==ke?(_e=s.jsxs(M,{align:F,side:D,className:L,onCloseAutoFocus:ee,children:[le,X,G,K,H,ue,ke]}),e[76]=M,e[77]=ee,e[78]=le,e[79]=X,e[80]=G,e[81]=K,e[82]=H,e[83]=ue,e[84]=ke,e[85]=_e):_e=e[85];let Ce;e[86]!==P||e[87]!==O||e[88]!==_e?(Ce=s.jsxs(P,{children:[O,_e]}),e[86]=P,e[87]=O,e[88]=_e,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==m?(we=s.jsx(xs,{open:u,onOpenChange:m}),e[90]=u,e[91]=m,e[92]=we):we=e[92];let De;return e[93]!==Ce||e[94]!==we?(De=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=De):De=e[95],De}function hl(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(re,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ye(t){const e=$.c(4),{onCreateProject:l}=t,{state:i,toggleSidebar:n}=Be(),o=i==="collapsed";let a;return e[0]!==o||e[1]!==l||e[2]!==n?(a=s.jsx(Nt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ve,{children:s.jsx(pe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:l}),s.jsx(Te,{onClick:n,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:l})}),s.jsx(Te,{onClick:n,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=l,e[2]=n,e[3]=a):a=e[3],a}Ye.Skeleton=function(){return s.jsx(Nt,{className:"px-3",children:s.jsx(ve,{children:s.jsx(pe,{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(re,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(re,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function gl(t){const e=$.c(50),{user:l,userImage:i}=t,{open:n}=ct(),[o,a]=A.useState(!1);let c;e[0]!==l.email||e[1]!==l.id||e[2]!==l.name?(c=()=>{const ee=`ID: ${l.id}
2
2
  Name: ${l.name||"N/A"}
3
- Email: ${l.email}`;navigator.clipboard.writeText(ee),a(!0),ye.success("User info copied to clipboard"),setTimeout(()=>a(!1),2e3)},e[0]=l.email,e[1]=l.id,e[2]=l.name,e[3]=c):c=e[3];const r=c,d=l.name||l.email||"U";let f;e[4]!==d||e[5]!==i?(f=s.jsx(Ie,{url:i,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=i,e[6]=f):f=e[6];const u=l.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 p;e[9]!==f||e[10]!==m?(p=s.jsx(xt,{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]=p):p=e[11];const h=l.name||l.email||"U";let g;e[12]!==h||e[13]!==i?(g=s.jsx(Ie,{url:i,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=i,e[14]=g):g=e[14];const j=l.name||"User";let y;e[15]!==j?(y=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=y):y=e[16];let x;e[17]!==l.email?(x=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:l.email}),e[17]=l.email,e[18]=x):x=e[18];let b;e[19]!==y||e[20]!==x?(b=s.jsxs("div",{className:"flex-1 min-w-0",children:[y,x]}),e[19]=y,e[20]=x,e[21]=b):b=e[21];let S;e[22]!==o?(S=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(hs,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=S):S=e[23];let k;e[24]!==r||e[25]!==b||e[26]!==S||e[27]!==g?(k=s.jsxs(ae,{onClick:r,className:"gap-2.5 group",children:[g,b,S]}),e[24]=r,e[25]=b,e[26]=S,e[27]=g,e[28]=k):k=e[28];let v;e[29]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ue,{}),e[29]=v):v=e[29];let N;e[30]!==n?(N=()=>n("account.preferences"),e[30]=n,e[31]=N):N=e[31];let z,C;e[32]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),C=s.jsx("span",{children:"Settings"}),e[32]=z,e[33]=C):(z=e[32],C=e[33]);let _;e[34]!==N?(_=s.jsxs(ae,{className:"gap-2.5",onClick:N,children:[z,C]}),e[34]=N,e[35]=_):_=e[35];let P;e[36]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(ae,{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(gs,{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 R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ae,{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(js,{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]=R):R=e[37];let E;e[38]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(ae,{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(Dt,{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]=E):E=e[38];let B;e[39]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Je,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=B):B=e[39];let T,O;e[40]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(ae,{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(bs,{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"})]})}),O=s.jsx(Ue,{}),e[40]=T,e[41]=O):(T=e[40],O=e[41]);let M;e[42]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsxs(ae,{className:"gap-2.5",onClick:bl,children:[s.jsx(jt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=M):M=e[42];let F;e[43]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.162.1"]})}),e[43]=F):F=e[43];let D;e[44]!==k||e[45]!==_?(D=s.jsxs(ut,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:jl,children:[k,v,_,P,R,E,B,T,O,M,F]}),e[44]=k,e[45]=_,e[46]=D):D=e[46];let L;return e[47]!==D||e[48]!==p?(L=s.jsxs(pt,{children:[p,D]}),e[47]=D,e[48]=p,e[49]=L):L=e[49],L}function bl(){return Se.signOut()}function jl(t){return t.preventDefault()}function kt(){const t=$.c(7),{data:e}=Se.useSession();if(!e?.user){let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=r):r=t[0],r}const l=e.user,i=l.name??void 0;let n;t[1]!==i||t[2]!==l?(n={...l,name:i},t[1]=i,t[2]=l,t[3]=n):n=t[3];const o=n,a=l.image;let c;return t[4]!==a||t[5]!==o?(c=s.jsx(gl,{user:o,userImage:a}),t[4]=a,t[5]=o,t[6]=c):c=t[6],c}function vl({invitation:t}){const[e,l]=A.useState(!1),[i,n]=A.useState(!1),o=Lt(),a=async()=>{l(!0);try{const r=await Se.organization.acceptInvitation({invitationId:t.id});if(r.error)ye.error(r.error.message),l(!1);else{const d=await Se.organization.setActive({organizationId:t.organizationId});ye.success("Invitation accepted!");const f=d?.data?.slug;window.location.href=f?`/${f}`:"/"}}catch{ye.error("Failed to accept invitation"),l(!1)}},c=async()=>{n(!0);try{const r=await Se.organization.rejectInvitation({invitationId:t.id});r.error?(ye.error(r.error.message),n(!1)):(ye.success("Invitation declined"),o.invalidateQueries())}catch{ye.error("Failed to decline invitation"),n(!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:a,disabled:e||i,"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:c,disabled:e||i,"aria-label":"Decline invitation",children:s.jsx(Ss,{size:14})})]})]})}function Nl(){const t=A.useContext(Rt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date)}class yl extends A.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,l){}render(){return this.state.hasError?null:this.props.children}}const Sl="gateway-chip-period";function kl(){try{const t=localStorage.getItem(Sl);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function _l(t,e){if(!e||e<=0)return"text-foreground/70";const l=t/e;return l<=.05?"text-destructive":l<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Cl(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function wl(t){const e=$.c(42),{connectionId:l}=t,{open:i}=ct(),{org:n}=ze();let o;e[0]!==l||e[1]!==n.id?(o={connectionId:l,orgId:n.id},e[0]=l,e[1]=n.id,e[2]=o):o=e[2];const a=Yt(o);let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c={},e[3]=c):c=e[3];let r;e[4]!==a?(r={client:a,toolName:"GATEWAY_USAGE",toolArguments:c,staleTime:6e4,select:$l},e[4]=a,e[5]=r):r=e[5];const{data:d}=_s(r),f=d?.billing.mode??"prepaid",u=d?.limit.total??null,m=d?.limit.remaining??0;let p;e[6]!==d?.usage?(p=d?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=d?.usage,e[7]=p):p=e[7];const h=p;let g,j,y,x,b,S,k;if(e[8]!==f||e[9]!==g||e[10]!==m||e[11]!==u||e[12]!==i||e[13]!==h){let z;if(f==="prepaid"){g="Credits";let _;e[21]!==m?(_=m.toFixed(2),e[21]=m,e[22]=_):_=e[22],j=`$${_}`,z=_l(m,u)}else if(u!=null&&u>0){const _=u-m;let P;e[23]!==u||e[24]!==_?(P=Math.round(_/u*100),e[23]=u,e[24]=_,e[25]=P):P=e[25];const R=Math.min(100,P);g="Usage",j=`${R}%`,z=Cl(R)}else{const _=kl(),P=_==="daily"?h.daily:_==="weekly"?h.weekly:h.monthly,R=_==="daily"?"/day":_==="weekly"?"/wk":"/mo";g="Usage";let E;e[26]!==P?(E=P.toFixed(2),e[26]=P,e[27]=E):E=e[27],j=`$${E}${R}`,z="text-foreground/70"}x="button",e[28]!==i?(b=()=>i("org.billing"),e[28]=i,e[29]=b):b=e[29],S="group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors";let C;e[30]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(ls,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=C):C=e[30],e[31]!==g?(k=s.jsxs("div",{className:"flex items-center gap-1.5",children:[C,s.jsx("span",{className:"text-xs text-muted-foreground",children:g})]}),e[31]=g,e[32]=k):k=e[32],y=I("text-xs font-medium tabular-nums",z),e[8]=f,e[9]=g,e[10]=m,e[11]=u,e[12]=i,e[13]=h,e[14]=y,e[15]=x,e[16]=b,e[17]=S,e[18]=k,e[19]=g,e[20]=j}else y=e[14],x=e[15],b=e[16],S=e[17],k=e[18],g=e[19],j=e[20];let v;e[33]!==y||e[34]!==j?(v=s.jsx("span",{className:y,children:j}),e[33]=y,e[34]=j,e[35]=v):v=e[35];let N;return e[36]!==v||e[37]!==x||e[38]!==b||e[39]!==S||e[40]!==k?(N=s.jsxs("button",{type:x,onClick:b,className:S,children:[k,v]}),e[36]=v,e[37]=x,e[38]=b,e[39]=S,e[40]=k,e[41]=N):N=e[41],N}function $l(t){return t.structuredContent}function zl(){const t=$.c(4),e=ks();let l;t[0]!==e?(l=e.find(Il),t[0]=e,t[1]=l):l=t[1];const i=l;if(!i?.id)return null;let n;return t[2]!==i.id?(n=s.jsx(wl,{connectionId:i.id}),t[2]=i.id,t[3]=n):n=t[3],n}function Il(t){return Cs(t,ws)}function Pl(){const t=$.c(13),e=Nl();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(yl,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(zl,{})})}),t[0]=l):l=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(kt,{})}),t[1]=i):i=t[1];let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ns,{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]=n):n=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 a;t[5]!==o?(a=s.jsxs("div",{className:"relative",children:[n,o]}),t[5]=o,t[6]=a):a=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=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]=c):c=t[7];let r;t[8]!==e?(r=s.jsxs(vs,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[c,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(Al)})]}),t[8]=e,t[9]=r):r=t[9];let d;return t[10]!==a||t[11]!==r?(d=s.jsxs(ll,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[l,s.jsx(ve,{children:s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[i,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(ys,{children:[a,r]})})]})})})]}),t[10]=a,t[11]=r,t[12]=d):d=t[12],d}function Al(t){return s.jsx(vl,{invitation:t},t.id)}function El(t){const e=$.c(11),{project:l}=t,i=l.ui?.themeColor??"#60a5fa";if(l.ui?.icon){let r;return e[0]!==l.ui.icon?(r=s.jsx("img",{src:l.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=l.ui.icon,e[1]=r):r=e[1],r}let n;e[2]!==i?(n={backgroundColor:i},e[2]=i,e[3]=n):n=e[3];let o;e[4]!==l.name?(o=l.name.charAt(0).toUpperCase(),e[4]=l.name,e[5]=o):o=e[5];let a;e[6]!==o?(a=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=a):a=e[7];let c;return e[8]!==n||e[9]!==a?(c=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:n,children:a}),e[8]=n,e[9]=a,e[10]=c):c=e[10],c}function Tl(t){const e=$.c(14),{project:l}=t,i=Ze(),{org:n}=ze();let o;e[0]!==i||e[1]!==n.slug||e[2]!==l.slug?(o=()=>{i({to:"/$org/$project",params:{org:n.slug,project:l.slug}})},e[0]=i,e[1]=n.slug,e[2]=l.slug,e[3]=o):o=e[3];let a;e[4]!==l?(a=s.jsx(El,{project:l}),e[4]=l,e[5]=a):a=e[5];let c;e[6]!==l.name?(c=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:l.name}),e[6]=l.name,e[7]=c):c=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ps,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=r):r=e[8];let d;return e[9]!==l.name||e[10]!==o||e[11]!==a||e[12]!==c?(d=s.jsx(pe,{children:s.jsxs(Te,{onClick:o,tooltip:l.name,children:[a,c,r]})}),e[9]=l.name,e[10]=o,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function Ol(){const t=$.c(55),{org:e}=ze(),{data:l,isLoading:i}=mt(e.id),[n,o]=A.useState(!0),[a,c]=A.useState(!1);let r,d,f,u,m,p,h,g,j,y,x,b,S;if(t[0]!==i||t[1]!==n||t[2]!==l){S=Symbol.for("react.early_return_sentinel");e:{const E=l?.filter(Dl)??[];if(i){let L;t[16]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})}),t[16]=L):L=t[16];let ee;t[17]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(ve,{className:"gap-0.5",children:[L,s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})]})})}),t[17]=ee):ee=t[17],S=ee;break e}b="group/projects-section mt-2",m=$s,y=n,x=o,u=Ae,j="py-0 px-0",f=Ee,d=ve,h="gap-0.5";let B;t[18]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=B):B=t[18];const T=!n&&"-rotate-90";let O;t[19]!==T?(O=I("text-muted-foreground shrink-0 transition-transform duration-200",T),t[19]=T,t[20]=O):O=t[20];let M;t[21]!==O?(M=s.jsx(zs,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[B,s.jsx(ft,{size:12,className:O})]})}),t[21]=O,t[22]=M):M=t[22];let F;t[23]===Symbol.for("react.memo_cache_sentinel")?(F=()=>c(!0),t[23]=F):F=t[23];let D;t[24]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("button",{type:"button",onClick:F,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]=D):D=t[24],t[25]!==M?(g=s.jsx(pe,{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:[M,D]})}),t[25]=M,t[26]=g):g=t[26],r=Is,p=E.length===0?s.jsx(pe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):E.map(Ml)}t[0]=i,t[1]=n,t[2]=l,t[3]=r,t[4]=d,t[5]=f,t[6]=u,t[7]=m,t[8]=p,t[9]=h,t[10]=g,t[11]=j,t[12]=y,t[13]=x,t[14]=b,t[15]=S}else r=t[3],d=t[4],f=t[5],u=t[6],m=t[7],p=t[8],h=t[9],g=t[10],j=t[11],y=t[12],x=t[13],b=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let k;t[27]!==r||t[28]!==p?(k=s.jsx(r,{children:p}),t[27]=r,t[28]=p,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 z;t[38]!==u||t[39]!==N||t[40]!==j?(z=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=z):z=t[41];let C;t[42]!==m||t[43]!==z||t[44]!==y||t[45]!==x?(C=s.jsx(m,{open:y,onOpenChange:x,children:z}),t[42]=m,t[43]=z,t[44]=y,t[45]=x,t[46]=C):C=t[46];let _;t[47]!==C||t[48]!==b?(_=s.jsx("div",{className:b,children:C}),t[47]=C,t[48]=b,t[49]=_):_=t[49];let P;t[50]!==a?(P=s.jsx(at,{open:a,onOpenChange:c}),t[50]=a,t[51]=P):P=t[51];let R;return t[52]!==_||t[53]!==P?(R=s.jsxs(s.Fragment,{children:[_,P]}),t[52]=_,t[53]=P,t[54]=R):R=t[54],R}function Ml(t){return s.jsx(Tl,{project:t},t.id)}function Dl(t){return t.slug!==q}function Rl(){const t=$.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(ve,{className:"gap-0.5",children:s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Ol,{})}),t[0]=e):e=t[0],e}function Ll(t){const e=$.c(12),{onCreateProject:l}=t,i=Ds(),{locator:n}=ze();let o;e[0]!==n?(o=Fe.isOrgAdminProject(n),e[0]=n,e[1]=o):o=e[1];const a=o;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ye.Skeleton,{}),e[2]=c):c=e[2];let r;e[3]!==l?(r=s.jsx(A.Suspense,{fallback:c,children:s.jsx(Ye,{onCreateProject:l})}),e[3]=l,e[4]=r):r=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Pl,{}),e[5]=d):d=e[5];let f;e[6]!==a?(f=a?s.jsx(Qe,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(Rl,{})})}):null,e[6]=a,e[7]=f):f=e[7];let u;return e[8]!==i||e[9]!==r||e[10]!==f?(u=s.jsx(St,{sections:i,header:r,footer:d,additionalContent:f}),e[8]=i,e[9]=r,e[10]=f,e[11]=u):u=e[11],u}function Hl(){const t=$.c(2),l=Xe().location.href;let i;return t[0]!==l?(i=s.jsx(Ft,{to:"/login",search:{next:l},replace:!0}),t[0]=l,t[1]=i):i=t[1],i}function Ul(t){const e=$.c(6),{children:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ht,{children:s.jsx(it,{})}),e[0]=i):i=e[0];let n;e[1]!==l?(n=s.jsx(Ut,{children:l}),e[1]=l,e[2]=n):n=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Bt,{children:s.jsx(Hl,{})}),e[3]=o):o=e[3];let a;return e[4]!==n?(a=s.jsxs(s.Fragment,{children:[i,n,o]}),e[4]=n,e[5]=a):a=e[5],a}function Bl(t){const e=$.c(10),{children:l,className:i}=t,[,n]=A.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=tt.decoChatPanelWidth(),e[0]=o):o=e[0];const[a,c]=et(o,30);let r;e[1]!==c?(r=m=>n(()=>c(m)),e[1]=c,e[2]=r):r=e[2];const d=r;let f;e[3]!==i?(f=I("min-w-0",i),e[3]=i,e[4]=f):f=e[4];let u;return e[5]!==a||e[6]!==l||e[7]!==d||e[8]!==f?(u=s.jsx(ht,{defaultSize:a,minSize:20,className:f,onResize:d,children:l}),e[5]=a,e[6]=l,e[7]=d,e[8]=f,e[9]=u):u=e[9],u}function Fl(t){const e=$.c(5),{children:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=tt.sidebarOpen(),e[0]=i):i=e[0];const[n,o]=et(i,!0);let a;return e[1]!==l||e[2]!==o||e[3]!==n?(a=s.jsx(Zs,{open:n,onOpenChange:o,children:l}),e[1]=l,e[2]=o,e[3]=n,e[4]=a):a=e[4],a}function Wl(t){const e=$.c(23),{isHomeRoute:l,onCreateProject:i}=t,[n]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=tt.decoChatPanelWidth(),e[0]=o):o=e[0];const[a]=et(o,30),c=`${a}cqi`;let r;e[1]!==c?(r={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":c},e[1]=c,e[2]=r):r=e[2];const d=r;let f;e[3]!==i?(f=s.jsx(Ll,{onCreateProject:i}),e[3]=i,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 p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=n&&"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(nt,{})}),e[10]=j):j=e[10];let y;e[11]!==g?(y=s.jsx(ht,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:g,children:j})}),e[11]=g,e[12]=y):y=e[12];let x;e[13]!==n||e[14]!==l?(x=!l&&s.jsxs(s.Fragment,{children:[s.jsx(As,{className:"bg-sidebar"}),s.jsx(Bl,{className:I("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",n?"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(Ms,{})})})})]}),e[13]=n,e[14]=l,e[15]=x):x=e[15];let b;e[16]!==y||e[17]!==x?(b=s.jsx(sl,{className:"pt-1.5",style:u,children:s.jsxs(Es,{direction:"horizontal",className:"h-full",style:m,children:[y,x]})}),e[16]=y,e[17]=x,e[18]=b):b=e[18];let S;return e[19]!==b||e[20]!==d||e[21]!==f?(S=s.jsxs(el,{className:"flex-1 bg-sidebar",style:d,children:[f,b]}),e[19]=b,e[20]=d,e[21]=f,e[22]=S):S=e[22],S}function Gl(){const{org:t,project:e}=lt({strict:!1}),l=Xe(),[i,n]=A.useState(!1),o=l.location.pathname===`/${t}/${e}`||l.location.pathname===`/${t}/${e}/`,a=e??q,{data:c}=Wt({queryKey:Gt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:d}=await Se.organization.setActive({organizationSlug:t});return{org:d,project:{slug:a,isOrgAdmin:a===q}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!c)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(kt,{})})}),s.jsx(nt,{})]});if(!c.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const r={...c,project:{...c.project,slug:a,isOrgAdmin:a===q}};return s.jsxs(Kt,{...r,children:[s.jsx(Fl,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Wl,{isHomeRoute:o,onCreateProject:()=>n(!0)})})})}),s.jsx(at,{open:i,onOpenChange:n})]})}function Mn(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Ul,{children:s.jsx(A.Suspense,{fallback:s.jsx(it,{}),children:s.jsx(Gl,{})})}),t[0]=e):e=t[0],e}export{Mn as default};
3
+ Email: ${l.email}`;navigator.clipboard.writeText(ee),a(!0),ye.success("User info copied to clipboard"),setTimeout(()=>a(!1),2e3)},e[0]=l.email,e[1]=l.id,e[2]=l.name,e[3]=c):c=e[3];const r=c,d=l.name||l.email||"U";let f;e[4]!==d||e[5]!==i?(f=s.jsx(Ie,{url:i,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=i,e[6]=f):f=e[6];const u=l.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 p;e[9]!==f||e[10]!==m?(p=s.jsx(xt,{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]=p):p=e[11];const h=l.name||l.email||"U";let g;e[12]!==h||e[13]!==i?(g=s.jsx(Ie,{url:i,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=i,e[14]=g):g=e[14];const j=l.name||"User";let y;e[15]!==j?(y=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=y):y=e[16];let x;e[17]!==l.email?(x=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:l.email}),e[17]=l.email,e[18]=x):x=e[18];let b;e[19]!==y||e[20]!==x?(b=s.jsxs("div",{className:"flex-1 min-w-0",children:[y,x]}),e[19]=y,e[20]=x,e[21]=b):b=e[21];let S;e[22]!==o?(S=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(hs,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=S):S=e[23];let k;e[24]!==r||e[25]!==b||e[26]!==S||e[27]!==g?(k=s.jsxs(ae,{onClick:r,className:"gap-2.5 group",children:[g,b,S]}),e[24]=r,e[25]=b,e[26]=S,e[27]=g,e[28]=k):k=e[28];let v;e[29]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ue,{}),e[29]=v):v=e[29];let N;e[30]!==n?(N=()=>n("account.preferences"),e[30]=n,e[31]=N):N=e[31];let z,C;e[32]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),C=s.jsx("span",{children:"Settings"}),e[32]=z,e[33]=C):(z=e[32],C=e[33]);let _;e[34]!==N?(_=s.jsxs(ae,{className:"gap-2.5",onClick:N,children:[z,C]}),e[34]=N,e[35]=_):_=e[35];let P;e[36]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(ae,{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(gs,{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 R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ae,{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(js,{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]=R):R=e[37];let E;e[38]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(ae,{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(Dt,{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]=E):E=e[38];let B;e[39]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Je,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=B):B=e[39];let T,O;e[40]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(ae,{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(bs,{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"})]})}),O=s.jsx(Ue,{}),e[40]=T,e[41]=O):(T=e[40],O=e[41]);let M;e[42]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsxs(ae,{className:"gap-2.5",onClick:bl,children:[s.jsx(jt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=M):M=e[42];let F;e[43]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.162.2"]})}),e[43]=F):F=e[43];let D;e[44]!==k||e[45]!==_?(D=s.jsxs(ut,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:jl,children:[k,v,_,P,R,E,B,T,O,M,F]}),e[44]=k,e[45]=_,e[46]=D):D=e[46];let L;return e[47]!==D||e[48]!==p?(L=s.jsxs(pt,{children:[p,D]}),e[47]=D,e[48]=p,e[49]=L):L=e[49],L}function bl(){return Se.signOut()}function jl(t){return t.preventDefault()}function kt(){const t=$.c(7),{data:e}=Se.useSession();if(!e?.user){let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=r):r=t[0],r}const l=e.user,i=l.name??void 0;let n;t[1]!==i||t[2]!==l?(n={...l,name:i},t[1]=i,t[2]=l,t[3]=n):n=t[3];const o=n,a=l.image;let c;return t[4]!==a||t[5]!==o?(c=s.jsx(gl,{user:o,userImage:a}),t[4]=a,t[5]=o,t[6]=c):c=t[6],c}function vl({invitation:t}){const[e,l]=A.useState(!1),[i,n]=A.useState(!1),o=Lt(),a=async()=>{l(!0);try{const r=await Se.organization.acceptInvitation({invitationId:t.id});if(r.error)ye.error(r.error.message),l(!1);else{const d=await Se.organization.setActive({organizationId:t.organizationId});ye.success("Invitation accepted!");const f=d?.data?.slug;window.location.href=f?`/${f}`:"/"}}catch{ye.error("Failed to accept invitation"),l(!1)}},c=async()=>{n(!0);try{const r=await Se.organization.rejectInvitation({invitationId:t.id});r.error?(ye.error(r.error.message),n(!1)):(ye.success("Invitation declined"),o.invalidateQueries())}catch{ye.error("Failed to decline invitation"),n(!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:a,disabled:e||i,"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:c,disabled:e||i,"aria-label":"Decline invitation",children:s.jsx(Ss,{size:14})})]})]})}function Nl(){const t=A.useContext(Rt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date)}class yl extends A.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,l){}render(){return this.state.hasError?null:this.props.children}}const Sl="gateway-chip-period";function kl(){try{const t=localStorage.getItem(Sl);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function _l(t,e){if(!e||e<=0)return"text-foreground/70";const l=t/e;return l<=.05?"text-destructive":l<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Cl(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function wl(t){const e=$.c(42),{connectionId:l}=t,{open:i}=ct(),{org:n}=ze();let o;e[0]!==l||e[1]!==n.id?(o={connectionId:l,orgId:n.id},e[0]=l,e[1]=n.id,e[2]=o):o=e[2];const a=Yt(o);let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c={},e[3]=c):c=e[3];let r;e[4]!==a?(r={client:a,toolName:"GATEWAY_USAGE",toolArguments:c,staleTime:6e4,select:$l},e[4]=a,e[5]=r):r=e[5];const{data:d}=_s(r),f=d?.billing.mode??"prepaid",u=d?.limit.total??null,m=d?.limit.remaining??0;let p;e[6]!==d?.usage?(p=d?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=d?.usage,e[7]=p):p=e[7];const h=p;let g,j,y,x,b,S,k;if(e[8]!==f||e[9]!==g||e[10]!==m||e[11]!==u||e[12]!==i||e[13]!==h){let z;if(f==="prepaid"){g="Credits";let _;e[21]!==m?(_=m.toFixed(2),e[21]=m,e[22]=_):_=e[22],j=`$${_}`,z=_l(m,u)}else if(u!=null&&u>0){const _=u-m;let P;e[23]!==u||e[24]!==_?(P=Math.round(_/u*100),e[23]=u,e[24]=_,e[25]=P):P=e[25];const R=Math.min(100,P);g="Usage",j=`${R}%`,z=Cl(R)}else{const _=kl(),P=_==="daily"?h.daily:_==="weekly"?h.weekly:h.monthly,R=_==="daily"?"/day":_==="weekly"?"/wk":"/mo";g="Usage";let E;e[26]!==P?(E=P.toFixed(2),e[26]=P,e[27]=E):E=e[27],j=`$${E}${R}`,z="text-foreground/70"}x="button",e[28]!==i?(b=()=>i("org.billing"),e[28]=i,e[29]=b):b=e[29],S="group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors";let C;e[30]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(ls,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=C):C=e[30],e[31]!==g?(k=s.jsxs("div",{className:"flex items-center gap-1.5",children:[C,s.jsx("span",{className:"text-xs text-muted-foreground",children:g})]}),e[31]=g,e[32]=k):k=e[32],y=I("text-xs font-medium tabular-nums",z),e[8]=f,e[9]=g,e[10]=m,e[11]=u,e[12]=i,e[13]=h,e[14]=y,e[15]=x,e[16]=b,e[17]=S,e[18]=k,e[19]=g,e[20]=j}else y=e[14],x=e[15],b=e[16],S=e[17],k=e[18],g=e[19],j=e[20];let v;e[33]!==y||e[34]!==j?(v=s.jsx("span",{className:y,children:j}),e[33]=y,e[34]=j,e[35]=v):v=e[35];let N;return e[36]!==v||e[37]!==x||e[38]!==b||e[39]!==S||e[40]!==k?(N=s.jsxs("button",{type:x,onClick:b,className:S,children:[k,v]}),e[36]=v,e[37]=x,e[38]=b,e[39]=S,e[40]=k,e[41]=N):N=e[41],N}function $l(t){return t.structuredContent}function zl(){const t=$.c(4),e=ks();let l;t[0]!==e?(l=e.find(Il),t[0]=e,t[1]=l):l=t[1];const i=l;if(!i?.id)return null;let n;return t[2]!==i.id?(n=s.jsx(wl,{connectionId:i.id}),t[2]=i.id,t[3]=n):n=t[3],n}function Il(t){return Cs(t,ws)}function Pl(){const t=$.c(13),e=Nl();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(yl,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(zl,{})})}),t[0]=l):l=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(kt,{})}),t[1]=i):i=t[1];let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ns,{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]=n):n=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 a;t[5]!==o?(a=s.jsxs("div",{className:"relative",children:[n,o]}),t[5]=o,t[6]=a):a=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=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]=c):c=t[7];let r;t[8]!==e?(r=s.jsxs(vs,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[c,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(Al)})]}),t[8]=e,t[9]=r):r=t[9];let d;return t[10]!==a||t[11]!==r?(d=s.jsxs(ll,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[l,s.jsx(ve,{children:s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[i,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(ys,{children:[a,r]})})]})})})]}),t[10]=a,t[11]=r,t[12]=d):d=t[12],d}function Al(t){return s.jsx(vl,{invitation:t},t.id)}function El(t){const e=$.c(11),{project:l}=t,i=l.ui?.themeColor??"#60a5fa";if(l.ui?.icon){let r;return e[0]!==l.ui.icon?(r=s.jsx("img",{src:l.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=l.ui.icon,e[1]=r):r=e[1],r}let n;e[2]!==i?(n={backgroundColor:i},e[2]=i,e[3]=n):n=e[3];let o;e[4]!==l.name?(o=l.name.charAt(0).toUpperCase(),e[4]=l.name,e[5]=o):o=e[5];let a;e[6]!==o?(a=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=a):a=e[7];let c;return e[8]!==n||e[9]!==a?(c=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:n,children:a}),e[8]=n,e[9]=a,e[10]=c):c=e[10],c}function Tl(t){const e=$.c(14),{project:l}=t,i=Ze(),{org:n}=ze();let o;e[0]!==i||e[1]!==n.slug||e[2]!==l.slug?(o=()=>{i({to:"/$org/$project",params:{org:n.slug,project:l.slug}})},e[0]=i,e[1]=n.slug,e[2]=l.slug,e[3]=o):o=e[3];let a;e[4]!==l?(a=s.jsx(El,{project:l}),e[4]=l,e[5]=a):a=e[5];let c;e[6]!==l.name?(c=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:l.name}),e[6]=l.name,e[7]=c):c=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ps,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=r):r=e[8];let d;return e[9]!==l.name||e[10]!==o||e[11]!==a||e[12]!==c?(d=s.jsx(pe,{children:s.jsxs(Te,{onClick:o,tooltip:l.name,children:[a,c,r]})}),e[9]=l.name,e[10]=o,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function Ol(){const t=$.c(55),{org:e}=ze(),{data:l,isLoading:i}=mt(e.id),[n,o]=A.useState(!0),[a,c]=A.useState(!1);let r,d,f,u,m,p,h,g,j,y,x,b,S;if(t[0]!==i||t[1]!==n||t[2]!==l){S=Symbol.for("react.early_return_sentinel");e:{const E=l?.filter(Dl)??[];if(i){let L;t[16]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})}),t[16]=L):L=t[16];let ee;t[17]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(ve,{className:"gap-0.5",children:[L,s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})]})})}),t[17]=ee):ee=t[17],S=ee;break e}b="group/projects-section mt-2",m=$s,y=n,x=o,u=Ae,j="py-0 px-0",f=Ee,d=ve,h="gap-0.5";let B;t[18]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=B):B=t[18];const T=!n&&"-rotate-90";let O;t[19]!==T?(O=I("text-muted-foreground shrink-0 transition-transform duration-200",T),t[19]=T,t[20]=O):O=t[20];let M;t[21]!==O?(M=s.jsx(zs,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[B,s.jsx(ft,{size:12,className:O})]})}),t[21]=O,t[22]=M):M=t[22];let F;t[23]===Symbol.for("react.memo_cache_sentinel")?(F=()=>c(!0),t[23]=F):F=t[23];let D;t[24]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("button",{type:"button",onClick:F,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]=D):D=t[24],t[25]!==M?(g=s.jsx(pe,{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:[M,D]})}),t[25]=M,t[26]=g):g=t[26],r=Is,p=E.length===0?s.jsx(pe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):E.map(Ml)}t[0]=i,t[1]=n,t[2]=l,t[3]=r,t[4]=d,t[5]=f,t[6]=u,t[7]=m,t[8]=p,t[9]=h,t[10]=g,t[11]=j,t[12]=y,t[13]=x,t[14]=b,t[15]=S}else r=t[3],d=t[4],f=t[5],u=t[6],m=t[7],p=t[8],h=t[9],g=t[10],j=t[11],y=t[12],x=t[13],b=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let k;t[27]!==r||t[28]!==p?(k=s.jsx(r,{children:p}),t[27]=r,t[28]=p,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 z;t[38]!==u||t[39]!==N||t[40]!==j?(z=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=z):z=t[41];let C;t[42]!==m||t[43]!==z||t[44]!==y||t[45]!==x?(C=s.jsx(m,{open:y,onOpenChange:x,children:z}),t[42]=m,t[43]=z,t[44]=y,t[45]=x,t[46]=C):C=t[46];let _;t[47]!==C||t[48]!==b?(_=s.jsx("div",{className:b,children:C}),t[47]=C,t[48]=b,t[49]=_):_=t[49];let P;t[50]!==a?(P=s.jsx(at,{open:a,onOpenChange:c}),t[50]=a,t[51]=P):P=t[51];let R;return t[52]!==_||t[53]!==P?(R=s.jsxs(s.Fragment,{children:[_,P]}),t[52]=_,t[53]=P,t[54]=R):R=t[54],R}function Ml(t){return s.jsx(Tl,{project:t},t.id)}function Dl(t){return t.slug!==q}function Rl(){const t=$.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(ve,{className:"gap-0.5",children:s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Ol,{})}),t[0]=e):e=t[0],e}function Ll(t){const e=$.c(12),{onCreateProject:l}=t,i=Ds(),{locator:n}=ze();let o;e[0]!==n?(o=Fe.isOrgAdminProject(n),e[0]=n,e[1]=o):o=e[1];const a=o;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ye.Skeleton,{}),e[2]=c):c=e[2];let r;e[3]!==l?(r=s.jsx(A.Suspense,{fallback:c,children:s.jsx(Ye,{onCreateProject:l})}),e[3]=l,e[4]=r):r=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Pl,{}),e[5]=d):d=e[5];let f;e[6]!==a?(f=a?s.jsx(Qe,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(Rl,{})})}):null,e[6]=a,e[7]=f):f=e[7];let u;return e[8]!==i||e[9]!==r||e[10]!==f?(u=s.jsx(St,{sections:i,header:r,footer:d,additionalContent:f}),e[8]=i,e[9]=r,e[10]=f,e[11]=u):u=e[11],u}function Hl(){const t=$.c(2),l=Xe().location.href;let i;return t[0]!==l?(i=s.jsx(Ft,{to:"/login",search:{next:l},replace:!0}),t[0]=l,t[1]=i):i=t[1],i}function Ul(t){const e=$.c(6),{children:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ht,{children:s.jsx(it,{})}),e[0]=i):i=e[0];let n;e[1]!==l?(n=s.jsx(Ut,{children:l}),e[1]=l,e[2]=n):n=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Bt,{children:s.jsx(Hl,{})}),e[3]=o):o=e[3];let a;return e[4]!==n?(a=s.jsxs(s.Fragment,{children:[i,n,o]}),e[4]=n,e[5]=a):a=e[5],a}function Bl(t){const e=$.c(10),{children:l,className:i}=t,[,n]=A.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=tt.decoChatPanelWidth(),e[0]=o):o=e[0];const[a,c]=et(o,30);let r;e[1]!==c?(r=m=>n(()=>c(m)),e[1]=c,e[2]=r):r=e[2];const d=r;let f;e[3]!==i?(f=I("min-w-0",i),e[3]=i,e[4]=f):f=e[4];let u;return e[5]!==a||e[6]!==l||e[7]!==d||e[8]!==f?(u=s.jsx(ht,{defaultSize:a,minSize:20,className:f,onResize:d,children:l}),e[5]=a,e[6]=l,e[7]=d,e[8]=f,e[9]=u):u=e[9],u}function Fl(t){const e=$.c(5),{children:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=tt.sidebarOpen(),e[0]=i):i=e[0];const[n,o]=et(i,!0);let a;return e[1]!==l||e[2]!==o||e[3]!==n?(a=s.jsx(Zs,{open:n,onOpenChange:o,children:l}),e[1]=l,e[2]=o,e[3]=n,e[4]=a):a=e[4],a}function Wl(t){const e=$.c(23),{isHomeRoute:l,onCreateProject:i}=t,[n]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=tt.decoChatPanelWidth(),e[0]=o):o=e[0];const[a]=et(o,30),c=`${a}cqi`;let r;e[1]!==c?(r={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":c},e[1]=c,e[2]=r):r=e[2];const d=r;let f;e[3]!==i?(f=s.jsx(Ll,{onCreateProject:i}),e[3]=i,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 p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=n&&"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(nt,{})}),e[10]=j):j=e[10];let y;e[11]!==g?(y=s.jsx(ht,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:g,children:j})}),e[11]=g,e[12]=y):y=e[12];let x;e[13]!==n||e[14]!==l?(x=!l&&s.jsxs(s.Fragment,{children:[s.jsx(As,{className:"bg-sidebar"}),s.jsx(Bl,{className:I("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",n?"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(Ms,{})})})})]}),e[13]=n,e[14]=l,e[15]=x):x=e[15];let b;e[16]!==y||e[17]!==x?(b=s.jsx(sl,{className:"pt-1.5",style:u,children:s.jsxs(Es,{direction:"horizontal",className:"h-full",style:m,children:[y,x]})}),e[16]=y,e[17]=x,e[18]=b):b=e[18];let S;return e[19]!==b||e[20]!==d||e[21]!==f?(S=s.jsxs(el,{className:"flex-1 bg-sidebar",style:d,children:[f,b]}),e[19]=b,e[20]=d,e[21]=f,e[22]=S):S=e[22],S}function Gl(){const{org:t,project:e}=lt({strict:!1}),l=Xe(),[i,n]=A.useState(!1),o=l.location.pathname===`/${t}/${e}`||l.location.pathname===`/${t}/${e}/`,a=e??q,{data:c}=Wt({queryKey:Gt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:d}=await Se.organization.setActive({organizationSlug:t});return{org:d,project:{slug:a,isOrgAdmin:a===q}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!c)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(kt,{})})}),s.jsx(nt,{})]});if(!c.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const r={...c,project:{...c.project,slug:a,isOrgAdmin:a===q}};return s.jsxs(Kt,{...r,children:[s.jsx(Fl,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Wl,{isHomeRoute:o,onCreateProject:()=>n(!0)})})})}),s.jsx(at,{open:i,onOpenChange:n})]})}function Mn(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Ul,{children:s.jsx(A.Suspense,{fallback:s.jsx(it,{}),children:s.jsx(Gl,{})})}),t[0]=e):e=t[0],e}export{Mn as default};
@@ -1 +1 @@
1
- import{c as E,u as q,j as n,w as F,K as v,r as k,x as _,B as O}from"./index-CkH3mWvs.js";import{u as L}from"./useQuery-CrhfJFci.js";import{u as R}from"./useMutation-T3cHavFN.js";import{S as V}from"./switch-CEp85hk1.js";import{I as A}from"./input-Byroc8t4.js";import{u as K,a as U}from"./constants-CJKNcVO0.js";import{g as J}from"./types-DtFKQumZ.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,w as F,K as v,r as k,x as _,B as O}from"./index-CzhqcVNy.js";import{u as L}from"./useQuery-BtUsJRrm.js";import{u as R}from"./useMutation-BLMqKfMt.js";import{S as V}from"./switch-CsOlnIJv.js";import{I as A}from"./input-CaHgq6JC.js";import{u as K,a as U}from"./constants-OpiJAgZI.js";import{g as J}from"./types-DiJR_Oxi.js";import{u as w}from"./unwrap-tool-result-BYXdCQMg.js";function M(s){const e=E.c(33),{connection:t,pinnedViews:o,isSaving:u,onTogglePin:h,onLabelChange:f}=s;if(t.uiTools.length===0)return null;let j;e[0]!==t.id||e[1]!==o?(j=x=>o.some(c=>c.connectionId===t.id&&c.toolName===x),e[0]=t.id,e[1]=o,e[2]=j):j=e[2];const N=j;let g;e[3]!==t.icon||e[4]!==t.title?(g=t.icon?n.jsx("img",{src:t.icon,alt:"",className:"size-4 shrink-0 rounded"}):n.jsx("div",{className:"size-4 shrink-0 rounded bg-muted flex items-center justify-center",children:n.jsx("span",{className:"text-[8px] font-medium text-muted-foreground",children:t.title.charAt(0).toUpperCase()})}),e[3]=t.icon,e[4]=t.title,e[5]=g):g=e[5];let p;e[6]!==t.title?(p=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.title}),e[6]=t.title,e[7]=p):p=e[7];let l;e[8]!==g||e[9]!==p?(l=n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g,p]}),e[8]=g,e[9]=p,e[10]=l):l=e[10];let d;if(e[11]!==t.icon||e[12]!==t.id||e[13]!==t.uiTools||e[14]!==N||e[15]!==u||e[16]!==f||e[17]!==h||e[18]!==o){let x;e[20]!==t.icon||e[21]!==t.id||e[22]!==N||e[23]!==u||e[24]!==f||e[25]!==h||e[26]!==o?(x=c=>{const P=N(c.name),I=o.find(S=>S.connectionId===t.id&&S.toolName===c.name);return n.jsxs("div",{className:"flex flex-col border-b border-border last:border-0",children:[n.jsxs("div",{className:"flex items-center justify-between gap-6 py-3 cursor-pointer",onClick:()=>h(t.id,c.name,t.icon),children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:c.name}),c.description&&n.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.description})]}),n.jsx("div",{onClick:$,className:"shrink-0",children:n.jsx(V,{checked:P,onCheckedChange:()=>h(t.id,c.name,t.icon),disabled:u})})]}),P&&I&&n.jsxs("div",{className:"pb-3 pl-0 flex items-center gap-3",onClick:Q,children:[n.jsx("label",{className:"text-xs text-muted-foreground w-12 shrink-0",children:"Label"}),n.jsx(A,{value:I.label,onChange:S=>f(t.id,c.name,S.target.value),className:"h-8 text-sm w-56",disabled:u})]})]},c.name)},e[20]=t.icon,e[21]=t.id,e[22]=N,e[23]=u,e[24]=f,e[25]=h,e[26]=o,e[27]=x):x=e[27],d=t.uiTools.map(x),e[11]=t.icon,e[12]=t.id,e[13]=t.uiTools,e[14]=N,e[15]=u,e[16]=f,e[17]=h,e[18]=o,e[19]=d}else d=e[19];let m;e[28]!==d?(m=n.jsx("div",{className:"flex flex-col",children:d}),e[28]=d,e[29]=m):m=e[29];let C;return e[30]!==l||e[31]!==m?(C=n.jsxs("div",{children:[l,m]}),e[30]=l,e[31]=m,e[32]=C):C=e[32],C}function Q(s){return s.stopPropagation()}function $(s){return s.stopPropagation()}function z(){const{org:s,project:e}=q(),t=K({connectionId:U,orgId:s.id}),o=F(),u=e.id??"",{data:h}=L({queryKey:v.projectConnections(u),enabled:!!e.id,queryFn:async()=>{const i=await t.callTool({name:"PROJECT_CONNECTION_LIST",arguments:{projectId:u}});return w(i)}}),f=h?.connections??[],j=f.map(i=>i.id).sort(),{data:N}=L({queryKey:v.projectConnectionDetails(u,j),enabled:j.length>0,queryFn:async()=>await Promise.all(f.map(async a=>{try{const y=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:a.id}}),{item:T}=w(y),r=(T?.tools??[]).filter(b=>!!J(b._meta)).map(b=>({name:b.name,description:b.description}));return{id:a.id,title:a.title,icon:a.icon,uiTools:r}}catch{return{id:a.id,title:a.title,icon:a.icon,uiTools:[]}}}))}),g=N??[],p=e.ui?.pinnedViews??[],[l,d]=k.useState(p),[m,C]=k.useState(!1),x=JSON.stringify(l)!==JSON.stringify(p),c=(i,a,y)=>{const T=l.some(r=>r.connectionId===i&&r.toolName===a);d(T?r=>r.filter(b=>!(b.connectionId===i&&b.toolName===a)):r=>[...r,{connectionId:i,toolName:a,label:a,icon:y}])},P=(i,a,y)=>{d(T=>T.map(r=>r.connectionId===i&&r.toolName===a?{...r,label:y}:r))},I=R({mutationFn:async()=>{const i=await t.callTool({name:"PROJECT_PINNED_VIEWS_UPDATE",arguments:{projectId:e.id,pinnedViews:l}});w(i)},onSuccess:()=>{o.invalidateQueries({queryKey:v.project(s.id,e.slug)}),_.success("Sidebar updated")},onError:i=>{_.error("Failed to update sidebar: "+(i instanceof Error?i.message:"Unknown error"))},onSettled:()=>C(!1)}),S=()=>{C(!0),I.mutate()},D=()=>{d(p)};return f.length===0?n.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No connections associated with this project. Add connections in the Dependencies section first."}):n.jsxs("div",{className:"space-y-6",children:[g.map(i=>n.jsx(M,{connection:i,pinnedViews:l,isSaving:m,onTogglePin:c,onLabelChange:P},i.id)),n.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[n.jsx(O,{variant:"outline",onClick:D,disabled:!x||m,children:"Cancel"}),n.jsx(O,{onClick:S,disabled:!x||m,children:m?"Saving...":"Save Changes"})]})]})}function B(){const s=E.c(3),{project:e}=q();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsxs("div",{children:[n.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Sidebar"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Pin interactive tools from your dependencies to the project sidebar for quick access."})]}),s[0]=t):t=s[0];let o;return s[1]!==e.id?(o=n.jsxs("div",{className:"flex flex-col gap-6",children:[t,n.jsx(z,{},e.id)]}),s[1]=e.id,s[2]=o):o=s[2],o}function ne(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),s[0]=e):e=s[0],e}export{ne as default};
@@ -1 +1 @@
1
- import{c as n,z as c,j as i}from"./index-CkH3mWvs.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,z as c,j as i}from"./index-CzhqcVNy.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
@@ -1 +1 @@
1
- import{c as C,z as d,M as m,j as a}from"./index-CkH3mWvs.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,z as d,M as m,j as a}from"./index-CzhqcVNy.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-CkH3mWvs.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-CzhqcVNy.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,U as C,W as y,R as T,Y as I,a1 as M,a2 as z,a0 as H,c as U,z as g}from"./index-CkH3mWvs.js";var m="Switch",[A]=H(m),[q,L]=A(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:a,checked:s,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:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:a,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,...a}=r,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:a=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=z(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:a});h.call(l,t),l.dispatchEvent(v)}},[u,t,a]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var W=E,$=R;function F(r){const e=U.c(9);let t,a;e[0]!==r?({className:t,...a}=r,e[0]=r,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==a||e[7]!==s?(o=i.jsx(W,{"data-slot":"switch",className:s,...a,children:n}),e[6]=a,e[7]=s,e[8]=o):o=e[8],o}export{F as S};
1
+ import{r as c,j as i,U as C,W as y,R as T,Y as I,a1 as M,a2 as z,a0 as H,c as U,z as g}from"./index-CzhqcVNy.js";var m="Switch",[A]=H(m),[q,L]=A(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:a,checked:s,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:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:a,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,...a}=r,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:a=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=z(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:a});h.call(l,t),l.dispatchEvent(v)}},[u,t,a]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var W=E,$=R;function F(r){const e=U.c(9);let t,a;e[0]!==r?({className:t,...a}=r,e[0]=r,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==a||e[7]!==s?(o=i.jsx(W,{"data-slot":"switch",className:s,...a,children:n}),e[6]=a,e[7]=s,e[8]=o):o=e[8],o}export{F as S};
@@ -1 +1 @@
1
- import{c as r,z as i,j as c}from"./index-CkH3mWvs.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{m as T,b as a,p as b,u as c,f as d,d as e};
1
+ import{c as r,z as i,j as c}from"./index-CzhqcVNy.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{m as T,b as a,p as b,u as c,f as d,d as e};
@@ -1 +1 @@
1
- import{r as p,Q as k,R as M,j as d,U as f,av as P,$ as S,a0 as F,Z as y,X as V,Y as T,T as D,c as x,z as g}from"./index-CkH3mWvs.js";var m="Tabs",[G]=F(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=k(i),[c,b]=M({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:P(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":o,...v,ref:e})})});C.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(D,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=A(o.baseId,t),v=E(o.baseId,t),u=t===o.value;return d.jsx(V,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(f.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",$=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=A(i.baseId,t),v=E(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(S,{present:r||u,children:({present:b})=>d.jsx(f.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});$.displayName=R;function A(n,e){return`${n}-trigger-${e}`}function E(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=$;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 s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function X(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,Q as a,X as b,O as c};
1
+ import{r as p,Q as k,R as M,j as d,U as f,av as P,$ as S,a0 as F,Z as y,X as V,Y as T,T as D,c as x,z as g}from"./index-CzhqcVNy.js";var m="Tabs",[G]=F(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=k(i),[c,b]=M({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:P(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":o,...v,ref:e})})});C.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(D,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=A(o.baseId,t),v=E(o.baseId,t),u=t===o.value;return d.jsx(V,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(f.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",$=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=A(i.baseId,t),v=E(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(S,{present:r||u,children:({present:b})=>d.jsx(f.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});$.displayName=R;function A(n,e){return`${n}-trigger-${e}`}function E(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=$;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 s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function X(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,Q as a,X as b,O as c};
@@ -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-CzhqcVNy.js";import{T as h}from"./tasks-panel-bZwhdQBY.js";import{P as p}from"./index-DvM0KkHv.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-DBcowLTl.js";import{i as B}from"./Loading01-DoI38kJv.js";import{u as S}from"./context-7Kd5bp6X.js";import"./index-D0IWyB7F.js";import"./popover-DMD8_Cbp.js";import"./skeleton-LSt15V1C.js";import"./spinner-CI9QBd79.js";import"./tooltip-B-2Ty_iR.js";import"./index-Dq7847Un.js";import"./constants-OpiJAgZI.js";import"./use-mcp-prompts-DJolbe2G.js";import"./useQuery-BtUsJRrm.js";import"./dialog-DXMtLbOt.js";import"./X-LrH2dki2.js";import"./form-Ndm9rRCe.js";import"./label-ZRpbI7Sm.js";import"./input-CaHgq6JC.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-WkRPF3Cl.js";import"./ChevronDown-C7zTxlHE.js";import"./Edit01-BE5Wu5ID.js";import"./Lock01-BpzLUKPy.js";import"./Users03-CiI7Y2pI.js";import"./XCircle-KlbMEvQq.js";import"./AlertCircle-CLSQ0NLi.js";import"./select-DhCocnGM.js";import"./Check-D30Nw_2C.js";import"./use-preferences-CBTWTfUK.js";import"./localstorage-keys-CL6qU9e5.js";import"./useMutation-BLMqKfMt.js";import"./ArrowLeft-ZgtBxTyN.js";import"./use-copy-BNKFNH2y.js";import"./tabs-d2vBhIp6.js";import"./badge-ChDtoe7k.js";import"./collapsible-CtdNMvGE.js";import"./Code01-BOUu51ck.js";import"./integration-icon-C_O5yvdg.js";import"./Container-BXYdiT-J.js";import"./use-virtual-mcp-CelTUOdD.js";import"./use-collections-C8v6HwyA.js";import"./SearchMd-BpeHWO8y.js";import"./use-create-virtual-mcp-BvTxfE8g.js";import"./decopilot-events-BAhRgxLp.js";import"./ChevronRight-BJe7e-X2.js";import"./Copy01-xLxETA4z.js";import"./marked.esm-BaswSlok.js";import"./markdown-CjmEcbPS.js";import"./mcp-app-renderer-DjshzOV0.js";import"./types-DiJR_Oxi.js";import"./Eye-CmzbjCht.js";import"./Globe02-BaK8gLi7.js";import"./LayersTwo01-DY3gWhYo.js";import"./XClose-T4dQr9IP.js";import"./collection-search-DnArRJMW.js";import"./use-connection-CkLGBugg.js";import"./generate-id-Dyweu44Y.js";import"./Clock--mEiDXe5.js";import"./Trash01-Bfnjcg6w.js";import"./user-BIDniHYV.js";import"./avatar-DMHAVN2G.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./CheckCircle-4PmUxEXj.js";import"./Plus-vjPXrbll.js";import"./dropdown-menu-Bv41z45k.js";import"./use-llm-CfPWCeJ7.js";import"./use-binding-CHcWA4CU.js";import"./binder-BSp18fmP.js";import"./checkbox-D_aK0Mdh.js";import"./AlignLeft-DGT5YesK.js";import"./Image01-NW_uhHHO.js";import"./RefreshCcw01-C1dtrtd7.js";import"./Settings01-C_OWZaLW.js";import"./useSuspenseInfiniteQuery-BB0K0DXv.js";import"./infiniteQueryObserver-B0sfe0Pc.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 Vt(){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{Vt as default};