decocms 2.178.1 → 2.178.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 (239) hide show
  1. package/dist/client/assets/{AlertCircle-CI8iQIN4.js → AlertCircle-12chRuly.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-D1a9nQq5.js → AlignLeft-_LT9deOt.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-bcBjuFxH.js → ArrowDown-7rbX3zqZ.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-BaV7db3X.js → ArrowLeft-erI8s3G2.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BtIkmj4Y.js → ArrowUp-DoIG5eQh.js} +1 -1
  6. package/dist/client/assets/{Building02-R_mkgdQ4.js → Building02-Dr7IyBdv.js} +1 -1
  7. package/dist/client/assets/{Check-GOz4_bBS.js → Check-DW8AVFkq.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-DosFvCW2.js → CheckCircle-hBpanOsI.js} +1 -1
  9. package/dist/client/assets/{CheckSquare-Be1kXxvn.js → CheckSquare-Cr3IzSXp.js} +1 -1
  10. package/dist/client/assets/{CheckVerified02-CZakFFpv.js → CheckVerified02-r17ymUCs.js} +1 -1
  11. package/dist/client/assets/{ChevronDown-DElgod-p.js → ChevronDown-BIRGQoZ5.js} +1 -1
  12. package/dist/client/assets/{ChevronLeft-Bk7mc5_w.js → ChevronLeft-D-e7F7Gj.js} +1 -1
  13. package/dist/client/assets/{ChevronRight-Ys0vr-YD.js → ChevronRight-DsjLlugM.js} +1 -1
  14. package/dist/client/assets/{ChevronUp-CKkWbsZ5.js → ChevronUp-Bi3NMXzv.js} +1 -1
  15. package/dist/client/assets/{Clock-DRICOB0c.js → Clock-D4xJnA3P.js} +1 -1
  16. package/dist/client/assets/{Code01-CDxb4LVl.js → Code01-YGq5QwlZ.js} +1 -1
  17. package/dist/client/assets/{Container-C8ScaknS.js → Container-DHyMOW_p.js} +1 -1
  18. package/dist/client/assets/{Copy01-DhAVspEC.js → Copy01-DkcjIGiS.js} +1 -1
  19. package/dist/client/assets/{Dataflow03-ONoSH2VT.js → Dataflow03-CD3eo8oO.js} +1 -1
  20. package/dist/client/assets/{DotsHorizontal-BaiN7u8r.js → DotsHorizontal-CjYGc80C.js} +1 -1
  21. package/dist/client/assets/{DotsVertical-rvqtR29a.js → DotsVertical-2nyye7GD.js} +1 -1
  22. package/dist/client/assets/{Download01-CVEqgoRT.js → Download01-BvtNZalG.js} +1 -1
  23. package/dist/client/assets/{Edit01-BaPedGGl.js → Edit01-CoeKfJ-u.js} +1 -1
  24. package/dist/client/assets/{Edit05-DSl3Jqkp.js → Edit05-CbbEzOoe.js} +1 -1
  25. package/dist/client/assets/{Eye-BgAytXDm.js → Eye-hBqNQHpc.js} +1 -1
  26. package/dist/client/assets/{EyeOff-CucokIoZ.js → EyeOff-CJoTkAtN.js} +1 -1
  27. package/dist/client/assets/{File02-gbFS8GtC.js → File02-D19u2hUl.js} +1 -1
  28. package/dist/client/assets/{File06-Dpi3gJhU.js → File06-Bp4ioOvR.js} +1 -1
  29. package/dist/client/assets/{FilterLines-BeHTcRH-.js → FilterLines-Dvk7BhWf.js} +1 -1
  30. package/dist/client/assets/{Globe01-Ceb6Pyzg.js → Globe01-B8Ib7knn.js} +1 -1
  31. package/dist/client/assets/{Globe02-4oAOo4_d.js → Globe02-wRhoc1N5.js} +1 -1
  32. package/dist/client/assets/{Grid01-NwJJaoW7.js → Grid01-C5e9ReQ4.js} +1 -1
  33. package/dist/client/assets/{Home02-DQJpzzIE.js → Home02-JZJR9jmQ.js} +1 -1
  34. package/dist/client/assets/{Image01-BwGUDEUi.js → Image01-DjoSkYp_.js} +1 -1
  35. package/dist/client/assets/{Inbox01-CDOpLWwZ.js → Inbox01-ClVaT7W5.js} +1 -1
  36. package/dist/client/assets/{InfoCircle-CfTVXLYm.js → InfoCircle-DzyfpQes.js} +1 -1
  37. package/dist/client/assets/{Key01-BZkaWvm5.js → Key01-qNySmY39.js} +1 -1
  38. package/dist/client/assets/{LayersTwo01-D9dHuPjU.js → LayersTwo01-dfSlQT0y.js} +1 -1
  39. package/dist/client/assets/{LayoutLeft-BHhw95T0.js → LayoutLeft-B2KZfn2n.js} +1 -1
  40. package/dist/client/assets/{Link01-CU6UcWFS.js → Link01-Cz_ZRKoB.js} +1 -1
  41. package/dist/client/assets/{LinkExternal01-DOdBEG1U.js → LinkExternal01-CKvCiQnV.js} +1 -1
  42. package/dist/client/assets/{List-DD3BKPLz.js → List-NLa0AhO4.js} +1 -1
  43. package/dist/client/assets/{Loading01-B85tVuIU.js → Loading01-Bb8FCosd.js} +1 -1
  44. package/dist/client/assets/{Lock01-WwvDQaaT.js → Lock01-CnZITIks.js} +1 -1
  45. package/dist/client/assets/{Play-DTPauCd1.js → Play-Bw5lQw7j.js} +1 -1
  46. package/dist/client/assets/{Plus-C9dY5EOr.js → Plus-CajZ9VfC.js} +1 -1
  47. package/dist/client/assets/{RefreshCcw01-DJsZi8Hz.js → RefreshCcw01-B_NTitRE.js} +1 -1
  48. package/dist/client/assets/{Save01-COu7GfwR.js → Save01-8oEsqMkJ.js} +1 -1
  49. package/dist/client/assets/{SearchMd-CKp0BoPW.js → SearchMd-eZWeU0sP.js} +1 -1
  50. package/dist/client/assets/{Settings01-DunsMQ-m.js → Settings01-ClPVpLPy.js} +1 -1
  51. package/dist/client/assets/{Shield01-CCMtDdxH.js → Shield01-N4ace-oo.js} +1 -1
  52. package/dist/client/assets/{Terminal-COsHV7Wy.js → Terminal-CGwuP-_5.js} +1 -1
  53. package/dist/client/assets/{Tool01-Delk_MGO.js → Tool01-D1m8i7Ez.js} +1 -1
  54. package/dist/client/assets/{Trash01-BtiNjuw3.js → Trash01-B_4PTwjI.js} +1 -1
  55. package/dist/client/assets/{Upload01-DqqcM3M6.js → Upload01-CLIOr3Tj.js} +1 -1
  56. package/dist/client/assets/{Users03-CQa5jfkV.js → Users03-Bv-hUQkl.js} +1 -1
  57. package/dist/client/assets/{X-CaaFSPD_.js → X-LzehymHS.js} +1 -1
  58. package/dist/client/assets/{XClose-Dey3r3af.js → XClose-CcNXqPQc.js} +1 -1
  59. package/dist/client/assets/{Zap-DX02pf-a.js → Zap-BFN1DqIC.js} +1 -1
  60. package/dist/client/assets/{agent-connections-preview-BCTZ6BnP.js → agent-connections-preview-3pYXfstj.js} +1 -1
  61. package/dist/client/assets/{agent-detail-BBSZrHWb.js → agent-detail-DMK-u3yi.js} +1 -1
  62. package/dist/client/assets/{agents-DVOxH2hb.js → agents-Wfe5dNfh.js} +1 -1
  63. package/dist/client/assets/{ai-providers-logos-BWU0RfRJ.js → ai-providers-logos-CCp39UCk.js} +1 -1
  64. package/dist/client/assets/{alert-dialog-BGZzdkI2.js → alert-dialog-B_ae3oRt.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-1PjzZ5eD.js → auth-catchall-DAx9m28t.js} +1 -1
  66. package/dist/client/assets/{automation-detail-dSH73muX.js → automation-detail-DfFkGT_5.js} +1 -1
  67. package/dist/client/assets/{automations-CEr8CMbK.js → automations-A8NOzTSS.js} +1 -1
  68. package/dist/client/assets/{avatar-DWAYNsNK.js → avatar-B2yArl-q.js} +1 -1
  69. package/dist/client/assets/{badge-B_BTuJZe.js → badge-DtRom7JO.js} +1 -1
  70. package/dist/client/assets/{binder-l1kCmNCE.js → binder-D4cqx_Kx.js} +1 -1
  71. package/dist/client/assets/{breadcrumb-ijphtzQp.js → breadcrumb-C2RG4nAQ.js} +1 -1
  72. package/dist/client/assets/{card-CwEWrOs9.js → card-B8qDZGCZ.js} +1 -1
  73. package/dist/client/assets/{checkbox-B_91sMwd.js → checkbox-B1rexahu.js} +1 -1
  74. package/dist/client/assets/{collapsible-DILfwVxb.js → collapsible-BtjeaBAE.js} +1 -1
  75. package/dist/client/assets/{collection-detail-lkCxiUzr.js → collection-detail-BaBGI9i2.js} +1 -1
  76. package/dist/client/assets/{collection-display-button-kCOiEzLn.js → collection-display-button-CpVZ4wHm.js} +1 -1
  77. package/dist/client/assets/{collection-search-Bdxpglbf.js → collection-search-BYV7N3mr.js} +1 -1
  78. package/dist/client/assets/{collection-table-wrapper-D-vPJPam.js → collection-table-wrapper-CHFJQd21.js} +1 -1
  79. package/dist/client/assets/{collection-tabs-IdlFD1jR.js → collection-tabs-CJEa3dRy.js} +1 -1
  80. package/dist/client/assets/{command-BgTh2_vK.js → command-Drksh_DO.js} +1 -1
  81. package/dist/client/assets/{connection-card-BWZAp_hO.js → connection-card-Bak2l1_M.js} +1 -1
  82. package/dist/client/assets/{connection-detail-DPSHmWyz.js → connection-detail-BKy2ZsS6.js} +1 -1
  83. package/dist/client/assets/{connections-BvYzdmU4.js → connections-Dxf4eIOE.js} +1 -1
  84. package/dist/client/assets/{constants-BCt7c81T.js → constants-D7qXOYRn.js} +1 -1
  85. package/dist/client/assets/{context-BTMVzdan.js → context-DxQMlFKC.js} +1 -1
  86. package/dist/client/assets/{create-organization-dialog-Du7uAMNm.js → create-organization-dialog-CNWB-72r.js} +1 -1
  87. package/dist/client/assets/{create-project-dialog-Bb7dubB7.js → create-project-dialog-BeIY4Oy9.js} +1 -1
  88. package/dist/client/assets/{danger-CfnLHwII.js → danger-YWbxrjNq.js} +1 -1
  89. package/dist/client/assets/{danger-zone-DjN4GhuT.js → danger-zone-DGg0ZzSy.js} +1 -1
  90. package/dist/client/assets/{dependencies-CwSG23CA.js → dependencies-DtAVTWu-.js} +1 -1
  91. package/dist/client/assets/{dialog-BDa2Gsq9.js → dialog-ChXYvlDt.js} +1 -1
  92. package/dist/client/assets/{dropdown-menu-DEQ5DCnG.js → dropdown-menu-BxlQMXgW.js} +1 -1
  93. package/dist/client/assets/{dynamic-plugin-layout-DP6UGwOE.js → dynamic-plugin-layout-JpZTv0Ay.js} +1 -1
  94. package/dist/client/assets/{editable-task-title-CaE6DIBf.js → editable-task-title-Cm-uIwFs.js} +1 -1
  95. package/dist/client/assets/{empty-state-DmgqwjeV.js → empty-state-qLM_bVsv.js} +1 -1
  96. package/dist/client/assets/{empty-state-C4c2sKjV.js → empty-state-xIvMMy-_.js} +1 -1
  97. package/dist/client/assets/{env-vars-editor-Ah5xyGmz.js → env-vars-editor-Yss1wn0m.js} +1 -1
  98. package/dist/client/assets/{extract-connection-data-BxJWN5u-.js → extract-connection-data-48N591A_.js} +1 -1
  99. package/dist/client/assets/{file-browser-BRFmGA__.js → file-browser-BbqpPFZK.js} +2 -2
  100. package/dist/client/assets/{form-BWoxqZfk.js → form-CaFPTMVC.js} +1 -1
  101. package/dist/client/assets/{general-BKqD1lIr.js → general-DI9irVIQ.js} +1 -1
  102. package/dist/client/assets/{generate-id-BaIFvm62.js → generate-id-BiV6m8fS.js} +1 -1
  103. package/dist/client/assets/{grid-view-DGZvuOwZ.js → grid-view-DurgUMuo.js} +1 -1
  104. package/dist/client/assets/{home-B7jB9Gxp.js → home-CspK560n.js} +1 -1
  105. package/dist/client/assets/{index-BgoahoDu.js → index-ChUIqRBi.js} +1 -1
  106. package/dist/client/assets/{index--PLXALUm.js → index-CqWJIMlG.js} +1 -1
  107. package/dist/client/assets/{index-WTO-ZRzC.js → index-CqtWW-Tq.js} +1 -1
  108. package/dist/client/assets/{index-10S4l3se.js → index-CqyqI90F.js} +1 -1
  109. package/dist/client/assets/{index-DZ6p-ZXx.js → index-De1iYnQy.js} +1 -1
  110. package/dist/client/assets/{index-DcxE8oe_.js → index-NjMxPJgF.js} +3 -3
  111. package/dist/client/assets/{index-DGLQ2uQ5.js → index-TV8hw8s3.js} +1 -1
  112. package/dist/client/assets/{index-Bc448aeG.js → index-YL7q5tyF.js} +1 -1
  113. package/dist/client/assets/{index-CTjqFNkw.js → index-YRudAQp7.js} +1 -1
  114. package/dist/client/assets/{index-B5vgf28x.js → index-yiVP4brl.js} +1 -1
  115. package/dist/client/assets/{index-CM7_8eMu.js → index-zWpUeKAz.js} +1 -1
  116. package/dist/client/assets/{infiniteQueryObserver-CzIVu_kK.js → infiniteQueryObserver-JZ0YxCW-.js} +1 -1
  117. package/dist/client/assets/{input-DPpAbHbD.js → input-B89sozd8.js} +1 -1
  118. package/dist/client/assets/{integration-icon-6jcHFHZV.js → integration-icon-BPVDVJvP.js} +1 -1
  119. package/dist/client/assets/{label-BtaiiWJ8.js → label-DkiEYJcU.js} +1 -1
  120. package/dist/client/assets/{layout-Cjef80qc.js → layout-Cqn-h1Jz.js} +1 -1
  121. package/dist/client/assets/{layout-DG9LlvE6.js → layout-DcmGLVHZ.js} +1 -1
  122. package/dist/client/assets/{login-D1Xb70mS.js → login-qT_ItpIx.js} +1 -1
  123. package/dist/client/assets/{logo-upload-79T6Ecg3.js → logo-upload-CoGaedUC.js} +1 -1
  124. package/dist/client/assets/{mcp-app-renderer-DgOOTmoQ.js → mcp-app-renderer-By1mQEU9.js} +1 -1
  125. package/dist/client/assets/{mcp-server-card-CqBs71hZ.js → mcp-server-card-B3Nrrgyk.js} +1 -1
  126. package/dist/client/assets/{mcp-server-detail-D_BCRi3w.js → mcp-server-detail-DMfy0V9h.js} +2 -2
  127. package/dist/client/assets/{members-BkdG_-Nh.js → members-Q81LXZu1.js} +1 -1
  128. package/dist/client/assets/{monaco-editor-D5smiy7k.js → monaco-editor-ZB27PMAe.js} +1 -1
  129. package/dist/client/assets/{monitoring-kw0ipyvO.js → monitoring-C31A03PZ.js} +1 -1
  130. package/dist/client/assets/{monitoring-dashboard-edit-S2Ut1cvD.js → monitoring-dashboard-edit-Dfi8Jxeb.js} +1 -1
  131. package/dist/client/assets/{monitoring-dashboard-view-gNG_IQ8M.js → monitoring-dashboard-view-CxjxBHLW.js} +1 -1
  132. package/dist/client/assets/{monitoring-stats-row-D3PlzPcP.js → monitoring-stats-row-CAn-8pVZ.js} +1 -1
  133. package/dist/client/assets/{oauth-callback-9ngEzskH.js → oauth-callback-B8DRnSok.js} +1 -1
  134. package/dist/client/assets/{oauth-callback-ai-provider-CpdQKMVl.js → oauth-callback-ai-provider-CsTCxPAY.js} +1 -1
  135. package/dist/client/assets/{org-ai-providers-CrQ3OeB5.js → org-ai-providers-DaYyItUL.js} +1 -1
  136. package/dist/client/assets/{page-C2HdbsvN.js → page-BjLk0DX_.js} +1 -1
  137. package/dist/client/assets/{page-DmVGFJaY.js → page-C2I5Nlmu.js} +1 -1
  138. package/dist/client/assets/{plugin-empty-state-DXhpvNlI.js → plugin-empty-state-K02oXRNN.js} +1 -1
  139. package/dist/client/assets/{plugin-empty-state-CWxRJkeE.js → plugin-empty-state-l30u7dec.js} +1 -1
  140. package/dist/client/assets/{plugin-header-C3JJ8Nq_.js → plugin-header-B_wkRb4Y.js} +1 -1
  141. package/dist/client/assets/{plugin-header-TcX-3hN2.js → plugin-header-CE-BhILm.js} +1 -1
  142. package/dist/client/assets/plugins-6p4XZdw1.js +1 -0
  143. package/dist/client/assets/{popover-CNIkv0WT.js → popover-Br8QkMK3.js} +1 -1
  144. package/dist/client/assets/{project-app-view-BVSK5NCb.js → project-app-view-CRe7LVZk.js} +1 -1
  145. package/dist/client/assets/{project-layout-Bd1vlG83.js → project-layout-Bg1hlIaM.js} +1 -1
  146. package/dist/client/assets/{project-plugins-az_ZXSwN.js → project-plugins-BHOZZsH7.js} +1 -1
  147. package/dist/client/assets/{projects-list-D8eiYeUr.js → projects-list-i4ZvUqtI.js} +1 -1
  148. package/dist/client/assets/{registry-layout-BXceDqEw.js → registry-layout-DQV7LhSo.js} +1 -1
  149. package/dist/client/assets/{registry-utils-CkCRcmq4.js → registry-utils-cjX9P5J9.js} +1 -1
  150. package/dist/client/assets/{reset-password-xlfm2d95.js → reset-password-Cgcrl5ZG.js} +1 -1
  151. package/dist/client/assets/{resizable-B7fIdnoq.js → resizable-Nu1SqaJD.js} +1 -1
  152. package/dist/client/assets/{save-actions-DIKaTzi7.js → save-actions-CVl6VtT2.js} +1 -1
  153. package/dist/client/assets/{scroll-area-B-pB6oMr.js → scroll-area-BTJQ86Ry.js} +1 -1
  154. package/dist/client/assets/{select-DeNgR918.js → select-Dx3T3-4n.js} +1 -1
  155. package/dist/client/assets/{select-virtual-mcp-CFDIRCp8.js → select-virtual-mcp-BS537pmy.js} +1 -1
  156. package/dist/client/assets/{sheet-BBLyN2xl.js → sheet-C3HM0Uwr.js} +1 -1
  157. package/dist/client/assets/{shell-layout-CiKn6BP6.js → shell-layout-Bco0BFOl.js} +2 -2
  158. package/dist/client/assets/{sidebar-settings-DOwlHFdj.js → sidebar-settings-JhN4X_jg.js} +1 -1
  159. package/dist/client/assets/{skeleton-CNgs5GJt.js → skeleton-Cjm8s7CT.js} +1 -1
  160. package/dist/client/assets/{spinner-BZdAS5i2.js → spinner-Dzx7B3Jl.js} +1 -1
  161. package/dist/client/assets/{store-invite-BXcKXIzr.js → store-invite-BPcFU0aw.js} +1 -1
  162. package/dist/client/assets/{switch-CmREXk8C.js → switch-CA_oYDia.js} +1 -1
  163. package/dist/client/assets/{table-C4WVepD4.js → table-C-1rP_rt.js} +1 -1
  164. package/dist/client/assets/{tabs-BeYHPY-1.js → tabs-BSOe8gLq.js} +1 -1
  165. package/dist/client/assets/{task-status-DauQRqAW.js → task-status-DYx9R7EL.js} +1 -1
  166. package/dist/client/assets/tasks-D1X8oLa3.js +1 -0
  167. package/dist/client/assets/{tasks-panel-DqbQRMGq.js → tasks-panel-BJ3TfA-_.js} +1 -1
  168. package/dist/client/assets/{textarea-C7YqhWTc.js → textarea-DIJzFUWn.js} +1 -1
  169. package/dist/client/assets/{time-range-picker-CM-9xODE.js → time-range-picker-CGBh-D6p.js} +1 -1
  170. package/dist/client/assets/{toggle-group-B7g3fYap.js → toggle-group-DlZGDyPQ.js} +1 -1
  171. package/dist/client/assets/{tools-list-4D_tBiUe.js → tools-list-D-T64862.js} +1 -1
  172. package/dist/client/assets/{tooltip-CXZH0tSC.js → tooltip-BJMSu0c2.js} +1 -1
  173. package/dist/client/assets/{topbar-portal-CjA9qO3_.js → topbar-portal-ChPXVsi1.js} +1 -1
  174. package/dist/client/assets/{types-CPj3Y6i2.js → types-BHeMLyAV.js} +1 -1
  175. package/dist/client/assets/{use-automations-B0CZymwk.js → use-automations-Bmw3x7Dk.js} +1 -1
  176. package/dist/client/assets/{use-collections-CObsJD7p.js → use-collections-C0cYiFfV.js} +1 -1
  177. package/dist/client/assets/{use-connection-Cv_-e2MS.js → use-connection-CHFdKnsr.js} +1 -1
  178. package/dist/client/assets/{use-copy-sxHnzQ3E.js → use-copy-xhdji_Bl.js} +1 -1
  179. package/dist/client/assets/{use-create-virtual-mcp-dSjfTRl8.js → use-create-virtual-mcp-B7odZ_c3.js} +1 -1
  180. package/dist/client/assets/{use-infinite-scroll-CqxPDCSp.js → use-infinite-scroll-CPhZNIw7.js} +1 -1
  181. package/dist/client/assets/{use-install-from-registry-wW1d1HtB.js → use-install-from-registry-BzwuBLOx.js} +1 -1
  182. package/dist/client/assets/{use-list-state-CWVUvMhj.js → use-list-state-CbsN6RbJ.js} +1 -1
  183. package/dist/client/assets/{use-mcp-prompts-C4X4lEEg.js → use-mcp-prompts-Bel4H4rh.js} +1 -1
  184. package/dist/client/assets/{use-mcp-resources-DoUnZI9j.js → use-mcp-resources-qGdymfRz.js} +1 -1
  185. package/dist/client/assets/{use-mcp-tools-Cnh4vEBm.js → use-mcp-tools-BCZI_Wqc.js} +1 -1
  186. package/dist/client/assets/{use-members-BHa-Fb-h.js → use-members-B4ncWtMV.js} +1 -1
  187. package/dist/client/assets/{use-mobile-v2XXLV0O.js → use-mobile-DOUfTohp.js} +1 -1
  188. package/dist/client/assets/{use-project-B-9YXhNP.js → use-project-b5C3lq5-.js} +1 -1
  189. package/dist/client/assets/{use-store-discovery-z8nwAYJJ.js → use-store-discovery-B402mTHd.js} +1 -1
  190. package/dist/client/assets/{use-view-mode-XMRPR1ke.js → use-view-mode-ss3eRodO.js} +1 -1
  191. package/dist/client/assets/{use-virtual-mcp-DfPJ-WDb.js → use-virtual-mcp-BP6aaUzw.js} +1 -1
  192. package/dist/client/assets/useInfiniteQuery-BXDrDvlH.js +1 -0
  193. package/dist/client/assets/{useMutation-CV3IN68C.js → useMutation-68NxhXCf.js} +1 -1
  194. package/dist/client/assets/useQuery-BYBCFxgb.js +1 -0
  195. package/dist/client/assets/useSuspenseInfiniteQuery-X3jXt04i.js +1 -0
  196. package/dist/client/assets/{user-_Hc5WOWn.js → user-iDZRuimU.js} +1 -1
  197. package/dist/client/assets/{workflow-DKAllKJO.js → workflow-CrrTPehP.js} +1 -1
  198. package/dist/client/index.html +1 -1
  199. package/dist/server/cli.js +2 -2
  200. package/dist/server/migrate.js +1 -1
  201. package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
  202. package/dist/server/node_modules/pg-connection-string/README.md +105 -0
  203. package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
  204. package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
  205. package/dist/server/node_modules/pg-connection-string/index.js +231 -0
  206. package/dist/server/node_modules/pg-connection-string/package.json +52 -0
  207. package/dist/server/node_modules/{pg → pg-pool}/LICENSE +1 -1
  208. package/dist/server/node_modules/pg-pool/README.md +357 -0
  209. package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
  210. package/dist/server/node_modules/pg-pool/index.js +517 -0
  211. package/dist/server/node_modules/pg-pool/package.json +51 -0
  212. package/dist/server/server.js +2 -2
  213. package/package.json +1 -1
  214. package/dist/client/assets/plugins-BfcAD8Xs.js +0 -1
  215. package/dist/client/assets/tasks-fQ7kFf17.js +0 -1
  216. package/dist/client/assets/useInfiniteQuery-BIejUr4H.js +0 -1
  217. package/dist/client/assets/useQuery-CEE9SUlS.js +0 -1
  218. package/dist/client/assets/useSuspenseInfiniteQuery-B7NkSjI9.js +0 -1
  219. package/dist/server/node_modules/pg/README.md +0 -95
  220. package/dist/server/node_modules/pg/esm/index.mjs +0 -20
  221. package/dist/server/node_modules/pg/lib/client.js +0 -743
  222. package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
  223. package/dist/server/node_modules/pg/lib/connection.js +0 -221
  224. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
  225. package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
  226. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
  227. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
  228. package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
  229. package/dist/server/node_modules/pg/lib/defaults.js +0 -91
  230. package/dist/server/node_modules/pg/lib/index.js +0 -73
  231. package/dist/server/node_modules/pg/lib/native/client.js +0 -323
  232. package/dist/server/node_modules/pg/lib/native/index.js +0 -2
  233. package/dist/server/node_modules/pg/lib/native/query.js +0 -165
  234. package/dist/server/node_modules/pg/lib/query.js +0 -252
  235. package/dist/server/node_modules/pg/lib/result.js +0 -109
  236. package/dist/server/node_modules/pg/lib/stream.js +0 -83
  237. package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
  238. package/dist/server/node_modules/pg/lib/utils.js +0 -217
  239. package/dist/server/node_modules/pg/package.json +0 -76
@@ -1,3 +1,3 @@
1
- import{r as I,c as w,j as s,E as Ye,u as ze,D as P,e as Xe,at as Ze,L as We,cb as _t,bg as kt,O as te,as as Ct,X as wt,a0 as $t,g as it,f as Ne,v as ve,cc as zt,bK as It,w as Pt,B as Ge,A as At,S as nt,k as Et,m as Ot,N as Tt,x as Dt,z as Fe,K as Mt,au as lt,P as Rt}from"./index-DcxE8oe_.js";import{C as oe,c as Lt,i as Ht,d as Ut}from"./task-status-DauQRqAW.js";import{I as Bt}from"./integration-icon-6jcHFHZV.js";import{a as ot,P as ge,u as Je}from"./index-DZ6p-ZXx.js";import{d as Ft,a as Kt,u as Wt}from"./constants-BCt7c81T.js";import{n as Gt}from"./ChevronLeft-Bk7mc5_w.js";import{i as Vt}from"./Loading01-B85tVuIU.js";import{s as Le}from"./Plus-C9dY5EOr.js";import{t as et}from"./Users03-CQa5jfkV.js";import{i as tt}from"./X-CaaFSPD_.js";import{E as qt,C as Qt}from"./editable-task-title-CaE6DIBf.js";import{T as Yt}from"./tasks-panel-DqbQRMGq.js";import{a as Xt,b as Zt}from"./ai-providers-logos-BWU0RfRJ.js";import{a as Jt}from"./context-BTMVzdan.js";import{C as rt}from"./create-project-dialog-Bb7dubB7.js";import{a as es,b as ts,c as ss,D as is}from"./dialog-BDa2Gsq9.js";import{n as ns}from"./Container-C8ScaknS.js";import{e as ls}from"./Dataflow03-ONoSH2VT.js";import{a as os}from"./Home02-DQJpzzIE.js";import{i as Ve}from"./LayoutLeft-BHhw95T0.js";import{s as rs}from"./RefreshCcw01-DJsZi8Hz.js";import{t as He}from"./Settings01-DunsMQ-m.js";import{u as as,a as at}from"./org-ai-providers-CrQ3OeB5.js";import{u as ct,a as dt}from"./use-project-B-9YXhNP.js";import{u as cs}from"./use-mobile-v2XXLV0O.js";import{S as ds,b as ms,c as fs,d as us,a as ps}from"./sheet-BBLyN2xl.js";import{c as xs,b as hs,a as gs,T as bs}from"./tooltip-CXZH0tSC.js";import{S as ae}from"./skeleton-CNgs5GJt.js";import{n as $e}from"./LinkExternal01-DOdBEG1U.js";import{t as mt}from"./ChevronDown-DElgod-p.js";import{A as Ie}from"./avatar-DWAYNsNK.js";import{c as re,f as js,e as vs,b as ft,D as ut,a as pt,h as Ue,d as Ns}from"./dropdown-menu-DEQ5DCnG.js";import{t as ys}from"./Building02-R_mkgdQ4.js";import{i as Pe}from"./Check-GOz4_bBS.js";import{C as Ss}from"./create-organization-dialog-Du7uAMNm.js";import{a as _s}from"./Copy01-DhAVspEC.js";import{i as ks}from"./File06-Dpi3gJhU.js";import{i as Cs}from"./Globe01-Ceb6Pyzg.js";import{i as ws}from"./Shield01-CCMtDdxH.js";import{a as $s,P as zs,b as Is}from"./popover-CNIkv0WT.js";import{n as st}from"./Inbox01-CDOpLWwZ.js";import{s as Ps}from"./XClose-Dey3r3af.js";import{b as As}from"./use-mcp-tools-Cnh4vEBm.js";import{C as Es,b as Os,c as Ts}from"./collapsible-DILfwVxb.js";import{i as Ds}from"./ChevronRight-Ys0vr-YD.js";import{a as Ms,R as xt,b as Rs}from"./resizable-B7fIdnoq.js";import"./spinner-BZdAS5i2.js";import"./use-mcp-prompts-C4X4lEEg.js";import"./useQuery-CEE9SUlS.js";import"./form-BWoxqZfk.js";import"./label-BtaiiWJ8.js";import"./input-DPpAbHbD.js";import"./index-CTjqFNkw.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-BtIkmj4Y.js";import"./Edit01-BaPedGGl.js";import"./Lock01-WwvDQaaT.js";import"./use-copy-sxHnzQ3E.js";import"./AlertCircle-CI8iQIN4.js";import"./select-DeNgR918.js";import"./ChevronUp-CKkWbsZ5.js";import"./index-10S4l3se.js";import"./ArrowLeft-BaV7db3X.js";import"./tabs-BeYHPY-1.js";import"./badge-B_BTuJZe.js";import"./Code01-CDxb4LVl.js";import"./checkbox-B_91sMwd.js";import"./AlignLeft-D1a9nQq5.js";import"./Image01-BwGUDEUi.js";import"./Key01-BZkaWvm5.js";import"./SearchMd-CKp0BoPW.js";import"./Tool01-Delk_MGO.js";import"./select-virtual-mcp-CFDIRCp8.js";import"./use-virtual-mcp-DfPJ-WDb.js";import"./use-collections-CObsJD7p.js";import"./useMutation-CV3IN68C.js";import"./use-create-virtual-mcp-dSjfTRl8.js";import"./use-mcp-resources-DoUnZI9j.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DgOOTmoQ.js";import"./types-CPj3Y6i2.js";import"./Eye-BgAytXDm.js";import"./Globe02-4oAOo4_d.js";import"./LayersTwo01-D9dHuPjU.js";import"./Clock-DRICOB0c.js";import"./Trash01-BtiNjuw3.js";import"./useSuspenseInfiniteQuery-B7NkSjI9.js";import"./infiniteQueryObserver-CzIVu_kK.js";import"./CheckCircle-DosFvCW2.js";import"./collection-search-Bdxpglbf.js";import"./user-_Hc5WOWn.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./empty-state-C4c2sKjV.js";import"./decopilot-events-Brt4gAR6.js";import"./index-Bc448aeG.js";import"./textarea-C7YqhWTc.js";import"./EyeOff-CucokIoZ.js";import"./card-CwEWrOs9.js";import"./toggle-group-B7g3fYap.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./alert-dialog-BGZzdkI2.js";import"./index-B5vgf28x.js";const ht=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));ht.displayName="BarChart10";const Be=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m6 15 2 2 4.5-4.5M8 8V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C9.52 2 10.08 2 11.2 2h7.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 3.52 22 4.08 22 5.2v7.6c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C20.48 16 19.92 16 18.8 16H16M5.2 22h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C16 20.48 16 19.92 16 18.8v-7.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 8 13.92 8 12.8 8H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 9.52 2 10.08 2 11.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));Be.displayName="CheckDone01";const gt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));gt.displayName="Coins01";const bt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));bt.displayName="LogOut01";function Ls(){const t=w.c(70),{org:e}=ze(),[,i]=ot(),n=Xt(),{selectedVirtualMcp:l,isChatEmpty:o,activeTaskId:r,createTask:a,switchToTask:c,tasks:d}=Jt();let m;if(t[0]!==r||t[1]!==d){let O;t[3]!==r?(O=Z=>Z.id===r,t[3]=r,t[4]=O):O=t[4],m=d.find(O),t[0]=r,t[1]=d,t[2]=m}else m=t[2];const u=m,[f,p]=I.useState("chat"),[h,y]=I.useTransition();let j;t[5]!==e.id?(j=Ft(e.id),t[5]=e.id,t[6]=j):j=t[6];const g=l??j;let x;t[7]!==a?(x=()=>{y(()=>{a()})},t[7]=a,t[8]=x):x=t[8];const v=x;if(n?.providers?.length===0){let O;t[9]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(ge.Header.Left,{className:"gap-2"}),t[9]=O):O=t[9];let Z;t[10]!==i?(Z=()=>i(!1),t[10]=i,t[11]=Z):Z=t[11];let me;t[12]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=me):me=t[12];let ie;t[13]!==Z?(ie=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[O,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:Z,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:me})})]}),t[13]=Z,t[14]=ie):ie=t[14];let je;t[15]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(oe.Main,{className:"flex flex-col items-center",children:s.jsx(oe.EmptyState,{children:s.jsx(oe.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features."})})}),t[15]=je):je=t[15];let ne;return t[16]!==ie?(ne=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[ie,je]}),t[16]=ie,t[17]=ne):ne=t[17],ne}const C=f!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let b;t[18]!==C?(b=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",C),t[18]=C,t[19]=b):b=t[19];let N;t[20]!==u||t[21]!==o?(N=!o&&u?.title&&s.jsx(qt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[20]=u,t[21]=o,t[22]=N):N=t[22];let k;t[23]!==N?(k=s.jsx(ge.Header.Left,{className:"gap-2",children:N}),t[23]=N,t[24]=k):k=t[24];let $;t[25]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[25]=$):$=t[25];let z;t[26]!==v||t[27]!==h?(z=s.jsx("button",{type:"button",onClick:v,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:$}),t[26]=v,t[27]=h,t[28]=z):z=t[28];let M;t[29]===Symbol.for("react.memo_cache_sentinel")?(M=()=>p("tasks"),t[29]=M):M=t[29];let R;t[30]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Be,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[30]=R):R=t[30];let L;t[31]!==i?(L=()=>i(!1),t[31]=i,t[32]=L):L=t[32];let H;t[33]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[33]=H):H=t[33];let T;t[34]!==L?(T=s.jsx("button",{type:"button",onClick:L,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:H}),t[34]=L,t[35]=T):T=t[35];let A;t[36]!==T||t[37]!==z?(A=s.jsxs(ge.Header.Right,{className:"gap-1",children:[z,R,T]}),t[36]=T,t[37]=z,t[38]=A):A=t[38];let D;t[39]!==A||t[40]!==k?(D=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[k,A]}),t[39]=A,t[40]=k,t[41]=D):D=t[41];let E;t[42]!==g||t[43]!==o?(E=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(Bt,{icon:g.icon,name:g.title,size:"lg",fallbackIcon:s.jsx(et,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:g.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:g.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[42]=g,t[43]=o,t[44]=E):E=t[44];let U;t[45]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[45]=U):U=t[45];let B;t[46]!==D||t[47]!==E||t[48]!==b?(B=s.jsxs("div",{className:b,children:[D,E,U]}),t[46]=D,t[47]=E,t[48]=b,t[49]=B):B=t[49];const F=f==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let se;t[50]!==F?(se=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",F),t[50]=F,t[51]=se):se=t[51];let J;t[52]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(ge.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[52]=J):J=t[52];let ce;t[53]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>p("chat"),t[53]=ce):ce=t[53];let de;t[54]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[J,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ce,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Gt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[54]=de):de=t[54];let W;t[55]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Vt,{size:16,className:"animate-spin text-muted-foreground"})}),t[55]=W):W=t[55];let X;t[56]!==c?(X=s.jsx(Ye,{fallback:Hs,children:s.jsx(I.Suspense,{fallback:W,children:s.jsx(Yt,{onTaskSelect:async O=>{await c(O),p("chat")}})})}),t[56]=c,t[57]=X):X=t[57];let G;t[58]!==se||t[59]!==X?(G=s.jsxs("div",{className:se,children:[de,X]}),t[58]=se,t[59]=X,t[60]=G):G=t[60];const fe=f==="context"?"opacity-100":"opacity-0 pointer-events-none";let V;t[61]!==fe?(V=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",fe),t[61]=fe,t[62]=V):V=t[62];let ee;t[63]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Qt,{back:!0,onClose:()=>p("chat")}),t[63]=ee):ee=t[63];let q;t[64]!==V?(q=s.jsx("div",{className:V,children:ee}),t[64]=V,t[65]=q):q=t[65];let Q;return t[66]!==B||t[67]!==G||t[68]!==q?(Q=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[B,G,q]}),t[66]=B,t[67]=G,t[68]=q,t[69]=Q):Q=t[69],Q}function Hs(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function Us(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ye,{fallback:e,children:s.jsx(I.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ls,{})})}),t[1]=i):i=t[1],i}function Bs(t){const e=w.c(5),{open:i,onOpenChange:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ts,{children:s.jsx(ss,{children:"Keyboard Shortcuts"})}),e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(es,{className:"sm:max-w-md",children:[l,s.jsx("div",{className:"flex flex-col gap-4",children:Lt.map(Fs)})]}),e[1]=o):o=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx(is,{open:i,onOpenChange:n,children:o}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Fs(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ws)})]},t.description)}function Ws(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Gs(){const t=w.c(60),{locator:e,org:i}=ze(),n=Xe(),l=Ze(),[o]=as(),{org:r,project:a}=We.parse(e),c=We.isOrgAdminProject(e),{data:d}=ct(i.id,a);let m;t[0]!==d?.enabledPlugins?(m=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=m):m=t[1];const u=m,f=d?.ui?.pinnedViews??[];let p;t[2]!==u?(p=S=>u.includes(S.pluginId),t[2]=u,t[3]=p):p=t[3];const h=_t.filter(p),y=l.location.pathname,j=`/${r}/${a}`,_=y===j||y===`${j}/`;let g;t[4]!==j||t[5]!==y?(g=S=>y.startsWith(`${j}/${S}`),t[4]=j,t[5]=y,t[6]=g):g=t[6];const x=g;let v;t[7]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(os,{}),t[7]=v):v=t[7];const C={key:"home",label:"Home",icon:v,isActive:_,onClick:()=>{_?window.dispatchEvent(new CustomEvent("reset-home-view")):n({to:"/$org/$project",params:{org:r,project:a}})}};let b;t[8]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Be,{}),t[8]=b):b=t[8];const N={key:"tasks",label:"Tasks",icon:b,isActive:x("tasks"),onClick:()=>n({to:"/$org/$project/tasks",params:{org:r,project:te}})};let k;t[9]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(ns,{}),t[9]=k):k=t[9];const $={key:"mcps",label:"Connections",icon:k,isActive:x("mcps"),onClick:()=>n({to:"/$org/$project/mcps",params:{org:r,project:te}})};let z;t[10]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ct,{}),t[10]=z):z=t[10];const M={key:"projects",label:"Projects",icon:z,isActive:x("projects"),onClick:()=>n({to:"/$org/$project/projects",params:{org:r,project:te}})};let R;t[11]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(et,{}),t[11]=R):R=t[11];const L={key:"agents",label:"Agents",icon:R,isActive:x("agents"),onClick:()=>n({to:"/$org/$project/agents",params:{org:r,project:te}})};let H;t[12]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(rs,{}),t[12]=H):H=t[12];const T={key:"automations",label:"Automations",icon:H,isActive:x("automations"),onClick:()=>n({to:"/$org/$project/automations",params:{org:r,project:te}})};let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ht,{}),t[13]=A):A=t[13];const D={key:"monitoring",label:"Monitor",icon:A,isActive:x("monitoring"),onClick:()=>n({to:"/$org/$project/monitoring",params:{org:r,project:te}})},E=h.map(S=>({key:S.pluginId,label:S.label,icon:S.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:S.pluginId}})}));let U;t[14]!==u?(U=S=>u.includes(S.pluginId),t[14]=u,t[15]=U):U=t[15];const F=kt.filter(U).map(S=>({type:"group",group:{id:`${S.pluginId}-${S.id}`,label:S.label,items:S.items.map((K,le)=>({key:`${S.pluginId}-${S.id}-${le}`,label:K.label,icon:K.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:S.pluginId}})})),defaultExpanded:S.defaultExpanded??!0}})),se=f.map(S=>({key:`app-${S.connectionId}-${S.toolName}`,label:S.label||S.toolName,icon:S.icon?s.jsx("img",{src:S.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:x(`apps/${S.connectionId}/${encodeURIComponent(S.toolName)}`),onClick:()=>n({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:r,project:a,connectionId:S.connectionId,toolName:S.toolName}})}));let J;t[16]!==se?(J=se.length>0?{type:"group",group:{id:"apps",label:"Apps",items:se,defaultExpanded:!0}}:null,t[16]=se,t[17]=J):J=t[17];const ce=J;if(c){let S;t[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(He,{}),t[18]=S):S=t[18];let K;t[19]!==x?(K=x("settings"),t[19]=x,t[20]=K):K=t[20];let le;t[21]!==n||t[22]!==r?(le=()=>n({to:"/$org/$project/settings",params:{org:r,project:te}}),t[21]=n,t[22]=r,t[23]=le):le=t[23];let he;t[24]!==K||t[25]!==le?(he={key:"settings",label:"Settings",icon:S,isActive:K,onClick:le},t[24]=K,t[25]=le,t[26]=he):he=t[26];const ye=he,ue=[{type:"items",items:[C,N,M]},{type:"group",group:{id:"build",label:"Build",items:[...o.experimentalAutomations?[T]:[],L,$],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[D,ye],defaultExpanded:!0}}];if(E.length>0){let pe;t[27]!==E?(pe={type:"items",items:E},t[27]=E,t[28]=pe):pe=t[28],ue.push(pe)}return F.length>0&&ue.push(...F),ce&&ue.push(ce),ue}let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsx(Be,{}),t[29]=de):de=t[29];let W;t[30]!==x?(W=x("tasks"),t[30]=x,t[31]=W):W=t[31];let X;t[32]!==n||t[33]!==r||t[34]!==a?(X=()=>n({to:"/$org/$project/tasks",params:{org:r,project:a}}),t[32]=n,t[33]=r,t[34]=a,t[35]=X):X=t[35];let G;t[36]!==W||t[37]!==X?(G={key:"tasks",label:"Tasks",icon:de,isActive:W,onClick:X},t[36]=W,t[37]=X,t[38]=G):G=t[38];const fe=G;let V;t[39]!==u||t[40]!==x||t[41]!==n||t[42]!==r||t[43]!==a?(V=u.includes("workflows")?{key:"workflows",label:"Workflows",icon:s.jsx(ls,{}),isActive:x("workflows"),onClick:()=>n({to:"/$org/$project/workflows",params:{org:r,project:a}})}:null,t[39]=u,t[40]=x,t[41]=n,t[42]=r,t[43]=a,t[44]=V):V=t[44];const ee=V;let q;t[45]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(He,{}),t[45]=q):q=t[45];let Q;t[46]!==x?(Q=x("settings"),t[46]=x,t[47]=Q):Q=t[47];let O;t[48]!==n||t[49]!==r||t[50]!==a?(O=()=>n({to:"/$org/$project/settings/general",params:{org:r,project:a}}),t[48]=n,t[49]=r,t[50]=a,t[51]=O):O=t[51];let Z;t[52]!==Q||t[53]!==O?(Z={key:"configure",label:"Settings",icon:q,isActive:Q,onClick:O},t[52]=Q,t[53]=O,t[54]=Z):Z=t[54];const me=Z;let ie;t[55]!==ee?(ie=ee?[ee]:[],t[55]=ee,t[56]=ie):ie=t[56];const ne=[{type:"items",items:[C,fe,...ie,me]}];if(E.length>0){let S;t[57]===Symbol.for("react.memo_cache_sentinel")?(S={type:"divider"},t[57]=S):S=t[57],ne.push(S);let K;t[58]!==E?(K={type:"items",items:E},t[58]=E,t[59]=K):K=t[59],ne.push(K)}return F.length>0&&ne.push(...F),ce&&ne.push(ce),ne}const Vs="sidebar_state",qs=3600*24*7,Qs="16rem",Ys="18rem",Xs="3rem",Zs="b",jt=I.createContext(null);function Ke(){const t=I.useContext(jt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Js(t){const e=w.c(21),{defaultOpen:i,open:n,onOpenChange:l,children:o}=t,r=i===void 0?!0:i,a=cs(),[c,d]=I.useState(!1),[m,u]=I.useState(r),f=n??m;let p;e[0]!==f||e[1]!==l?(p=k=>{const $=typeof k=="function"?k(f):k;l?l($):u($),document.cookie=`${Vs}=${$}; path=/; max-age=${qs}`},e[0]=f,e[1]=l,e[2]=p):p=e[2];const h=p;let y;e[3]!==a||e[4]!==h?(y=()=>a?d(ti):h(ei),e[3]=a,e[4]=h,e[5]=y):y=e[5];const j=y;let _,g;e[6]!==j?(_=()=>{const k=$=>{if($.key===Zs&&($.metaKey||$.ctrlKey)){const z=$.target;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return;$.preventDefault(),j()}};return globalThis.addEventListener("keydown",k),()=>globalThis.removeEventListener("keydown",k)},g=[j],e[6]=j,e[7]=_,e[8]=g):(_=e[7],g=e[8]),I.useEffect(_,g);const x=f?"expanded":"collapsed";let v;e[9]!==a||e[10]!==f||e[11]!==c||e[12]!==h||e[13]!==x||e[14]!==j?(v={state:x,open:f,setOpen:h,isMobile:a,openMobile:c,setOpenMobile:d,toggleSidebar:j},e[9]=a,e[10]=f,e[11]=c,e[12]=h,e[13]=x,e[14]=j,e[15]=v):v=e[15];const C=v;let b;e[16]!==o?(b=s.jsx(xs,{delayDuration:0,children:o}),e[16]=o,e[17]=b):b=e[17];let N;return e[18]!==C||e[19]!==b?(N=s.jsx(jt.Provider,{value:C,children:b}),e[18]=C,e[19]=b,e[20]=N):N=e[20],N}function ei(t){return!t}function ti(t){return!t}function si(t){const e=w.c(14);let i,n,l,o;e[0]!==t?({className:n,style:o,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o):(i=e[1],n=e[2],l=e[3],o=e[4]);let r;e[5]!==o?(r={"--sidebar-width":Qs,"--sidebar-width-icon":Xs,...o},e[5]=o,e[6]=r):r=e[6];const a=r;let c;e[7]!==n?(c=P("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",n),e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==i||e[10]!==l||e[11]!==a||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:a,className:c,...l,children:i}),e[9]=i,e[10]=l,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function ii(t){const e=w.c(42);let i,n,l,o,r,a;e[0]!==t?({side:o,variant:r,collapsible:a,className:n,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6]);const c=o===void 0?"left":o,d=r===void 0?"sidebar":r,m=a===void 0?"offcanvas":a,{isMobile:u,state:f,openMobile:p,setOpenMobile:h}=Ke();if(m==="none"){let b;e[7]!==n?(b=P("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=b):b=e[8];let N;return e[9]!==i||e[10]!==l||e[11]!==b?(N=s.jsx("div",{"data-slot":"sidebar",className:b,...l,children:i}),e[9]=i,e[10]=l,e[11]=b,e[12]=N):N=e[12],N}if(u){let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b={"--sidebar-width":Ys},e[13]=b):b=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(ms,{className:"sr-only",children:[s.jsx(fs,{children:"Sidebar"}),s.jsx(us,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let k;e[15]!==i?(k=s.jsx("div",{className:"flex h-full w-full flex-col",children:i}),e[15]=i,e[16]=k):k=e[16];let $;e[17]!==c||e[18]!==k?($=s.jsxs(ps,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:b,side:c,children:[N,k]}),e[17]=c,e[18]=k,e[19]=$):$=e[19];let z;return e[20]!==p||e[21]!==l||e[22]!==h||e[23]!==$?(z=s.jsx(ds,{open:p,onOpenChange:h,...l,children:$}),e[20]=p,e[21]=l,e[22]=h,e[23]=$,e[24]=z):z=e[24],z}const y=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]!==y?(j=P("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",y),e[25]=y,e[26]=j):j=e[26];const _=f==="collapsed"?m:"";let g;e[27]!==n?(g=P("flex flex-col h-full w-(--sidebar-width)",n),e[27]=n,e[28]=g):g=e[28];let x;e[29]!==i?(x=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i}),e[29]=i,e[30]=x):x=e[30];let v;e[31]!==l||e[32]!==g||e[33]!==x?(v=s.jsx("div",{"data-slot":"sidebar-container",className:g,...l,children:x}),e[31]=l,e[32]=g,e[33]=x,e[34]=v):v=e[34];let C;return e[35]!==c||e[36]!==f||e[37]!==j||e[38]!==_||e[39]!==v||e[40]!==d?(C=s.jsx("div",{className:j,"data-state":f,"data-collapsible":_,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:v}),e[35]=c,e[36]=f,e[37]=j,e[38]=_,e[39]=v,e[40]=d,e[41]=C):C=e[41],C}function ni(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function vt(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function li(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function oi(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("h-4 m-0! w-full",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-sidebar":"separator",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ri(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ae(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ee(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("w-full text-sm",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function be(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function xe(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("group/menu-item relative",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}const ai=$t("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Oe(t){const e=w.c(28);let i,n,l,o,r,a,c;e[0]!==t?({asChild:l,isActive:o,variant:r,size:a,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a,e[7]=c):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6],c=e[7]);const d=l===void 0?!1:l,m=o===void 0?!1:o,u=r===void 0?"default":r,f=a===void 0?"default":a,p=d?wt:"button",{isMobile:h,state:y}=Ke();let j;e[8]!==i||e[9]!==f||e[10]!==u?(j=P(ai({variant:u,size:f}),i),e[8]=i,e[9]=f,e[10]=u,e[11]=j):j=e[11];let _;e[12]!==p||e[13]!==m||e[14]!==n||e[15]!==f||e[16]!==j?(_=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":m,className:j,...n}),e[12]=p,e[13]=m,e[14]=n,e[15]=f,e[16]=j,e[17]=_):_=e[17];const g=_;if(!c)return g;if(typeof c=="string"){let N;e[18]!==c?(N={children:c},e[18]=c,e[19]=N):N=e[19],c=N}let x;e[20]!==g?(x=s.jsx(gs,{asChild:!0,children:g}),e[20]=g,e[21]=x):x=e[21];const v=y!=="collapsed"||h;let C;e[22]!==v||e[23]!==c?(C=s.jsx(hs,{side:"right",align:"center",hidden:v,...c}),e[22]=v,e[23]=c,e[24]=C):C=e[24];let b;return e[25]!==x||e[26]!==C?(b=s.jsxs(bs,{children:[x,C]}),e[25]=x,e[26]=C,e[27]=b):b=e[27],b}function ci(t){const e=w.c(11),{label:i,children:n,defaultExpanded:l}=t,o=l===void 0?!0:l,[r,a]=I.useState(o),{state:c}=Ke(),d=c==="collapsed";let m;e[0]!==r||e[1]!==d||e[2]!==i?(m=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(be,{children:s.jsx(xe,{children:s.jsxs(Oe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!r),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(mt,{size:12,className:P("text-muted-foreground transition-transform duration-200",!r&&"-rotate-90")})]})})}),e[0]=r,e[1]=d,e[2]=i,e[3]=m):m=e[3];let u;e[4]!==n||e[5]!==r||e[6]!==d?(u=(d||r)&&s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=r,e[6]=d,e[7]=u):u=e[7];let f;return e[8]!==m||e[9]!==u?(f=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,u]}),e[8]=m,e[9]=u,e[10]=f):f=e[10],f}function Nt(t){const e=w.c(20),{item:i}=t,n=i.key,l=i.onClick,o=i.isActive,r=i.label,a=i.isExternal&&"group/external";let c;e[0]!==a?(c=P(a),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==i.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[2]=i.icon,e[3]=d):d=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=P("truncate group-data-[collapsible=icon]:hidden"),e[4]=m):m=e[4];let u;e[5]!==i.label?(u=s.jsx("span",{className:m,children:i.label}),e[5]=i.label,e[6]=u):u=e[6];let f;e[7]!==i.isExternal?(f=i.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[7]=i.isExternal,e[8]=f):f=e[8];let p;e[9]!==i.isActive||e[10]!==i.label||e[11]!==i.onClick||e[12]!==f||e[13]!==c||e[14]!==d||e[15]!==u?(p=s.jsxs(Oe,{onClick:l,isActive:o,tooltip:r,className:c,children:[d,u,f]}),e[9]=i.isActive,e[10]=i.label,e[11]=i.onClick,e[12]=f,e[13]=c,e[14]=d,e[15]=u,e[16]=p):p=e[16];let h;return e[17]!==i.key||e[18]!==p?(h=s.jsx(xe,{children:p},n),e[17]=i.key,e[18]=p,e[19]=h):h=e[19],h}function di(t){const e=w.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(oi,{className:"my-2"}),e[0]=n):n=e[0],n}case"spacer":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1"}),e[1]=n):n=e[1],n}case"group":{const n=i.group.label,l=i.group.defaultExpanded;let o;e[2]!==i.group.items?(o=i.group.items.map(fi),e[2]=i.group.items,e[3]=o):o=e[3];let r;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==o?(r=s.jsx(ci,{label:n,defaultExpanded:l,children:o}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=o,e[7]=r):r=e[7],r}case"items":{let n;e[8]!==i.items?(n=i.items.map(mi),e[8]=i.items,e[9]=n):n=e[9];let l;return e[10]!==n?(l=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=l):l=e[11],l}}}function mi(t){return s.jsx(Nt,{item:t},t.key)}function fi(t){return s.jsx(Nt,{item:t},t.key)}function yt(t){const e=w.c(14),{sections:i,header:n,footer:l,additionalContent:o,variant:r,collapsible:a,contentClassName:c}=t,d=r===void 0?"sidebar":r,m=a===void 0?"icon":a;let u;e[0]!==c?(u=P("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let f;e[2]!==i?(f=i.map(ui),e[2]=i,e[3]=f):f=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==f?(p=s.jsxs(ri,{className:u,children:[f,o]}),e[4]=o,e[5]=u,e[6]=f,e[7]=p):p=e[7];let h;return e[8]!==m||e[9]!==l||e[10]!==n||e[11]!==p||e[12]!==d?(h=s.jsxs(ii,{variant:d,collapsible:m,children:[n,p,l]}),e[8]=m,e[9]=l,e[10]=n,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ui(t,e){return s.jsx(di,{section:t},e)}yt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,i)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(ae,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function pi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(ae,{className:"h-8 w-full rounded-lg"}),s.jsx(ae,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function xi(t){const e=w.c(12),{organizationId:i,currentProjectSlug:n,onSelect:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:r}=dt(i,o);let a,c;if(e[1]!==n||e[2]!==l||e[3]!==r){c=Symbol.for("react.early_return_sentinel");e:{const m=r?.filter(hi)??[];if(m.length===0){let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=f):f=e[6],c=f;break e}let u;e[7]!==n||e[8]!==l?(u=f=>{const p=n===f.slug,h=f.ui?.themeColor??"#3B82F6";return s.jsxs(re,{className:P("gap-2.5",p&&"bg-accent"),onClick:()=>l(f.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:f.ui?.icon?void 0:{backgroundColor:h},children:f.ui?.icon?s.jsx("img",{src:f.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:f.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:f.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},f.id)},e[7]=n,e[8]=l,e[9]=u):u=e[9],a=m.map(u)}e[1]=n,e[2]=l,e[3]=r,e[4]=a,e[5]=c}else a=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==a?(d=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=d):d=e[11],d}function hi(t){return t.slug!==te}function gi(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const i=Math.abs(e)%360;return{backgroundColor:`hsl(${i} 55% 70%)`,color:`hsl(${i} 55% 20%)`}}function qe(t){const e=w.c(96),{isCollapsed:i,onCreateProject:n}=t,l=i===void 0?!1:i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:r,project:a}=it(o),{data:c}=Ne.useListOrganizations(),d=Xe(),m=c?.find(Y=>Y.slug===r),[u,f]=I.useState(!1),p=a===te,{data:h}=ct(m?.id??"",p?"":a??"");let y;e[1]!==r?(y=(Y,Re)=>Y.slug===r?-1:Re.slug===r?1:Y.name.localeCompare(Re.name),e[1]=r,e[2]=y):y=e[2];const j=[...c??[]].sort(y);let _;e[3]!==d||e[4]!==r?(_=()=>{r&&d({to:"/$org/$project",params:{org:r,project:te}})},e[3]=d,e[4]=r,e[5]=_):_=e[5];const g=_;let x;e[6]!==d||e[7]!==r?(x=Y=>{r&&d({to:"/$org/$project",params:{org:r,project:Y}})},e[6]=d,e[7]=r,e[8]=x):x=e[8];const v=x;let C;e[9]!==d?(C=Y=>{d({to:"/$org/$project",params:{org:Y,project:te}})},e[9]=d,e[10]=C):C=e[10];const b=C;let N;e[11]!==n?(N=n?()=>n():void 0,e[11]=n,e[12]=N):N=e[12];const k=N;let $;e[13]!==d||e[14]!==r||e[15]!==a?($=()=>{if(!r||!a)return;const Y=a===te;d({to:"/$org/$project",params:{org:r,project:a},search:Re=>({...Re,settings:Y?"org.general":`project:${a}:general`})})},e[13]=d,e[14]=r,e[15]=a,e[16]=$):$=e[16];const z=$,M=ut,R=l?"w-auto pr-1.5":"w-full";let L;e[17]!==R?(L=P("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]=L):L=e[18];const H=p?s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:m?.logo?void 0:gi(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:h?.ui?.icon?void 0:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold text-white",l?"text-xs":"text-lg"),children:(h?.name??a??"?").charAt(0).toUpperCase()})});let T;e[19]!==m?.name||e[20]!==h?.name||e[21]!==l||e[22]!==p||e[23]!==a?(T=!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:p?"Studio":h?.name??a??""})]}),s.jsx(Ht,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=h?.name,e[21]=l,e[22]=p,e[23]=a,e[24]=T):T=e[24];let A;e[25]!==L||e[26]!==H||e[27]!==T?(A=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{type:"button",className:L,children:[H,T]})}),e[25]=L,e[26]=H,e[27]=T,e[28]=A):A=e[28];const D=ft,E="start",U="bottom",B="w-64 flex flex-col gap-0.5",F=bi,se=p&&"bg-accent";let J;e[29]!==se?(J=P("gap-2.5",se),e[29]=se,e[30]=J):J=e[30];const ce=m?.logo??"",de=m?.name??"";let W;e[31]!==ce||e[32]!==de?(W=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]=W):W=e[33];const X=m?.name;let G;e[34]!==X?(G=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",X]}),e[34]=X,e[35]=G):G=e[35];let fe;e[36]!==p?(fe=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=fe):fe=e[37];let V;e[38]!==g||e[39]!==J||e[40]!==W||e[41]!==G||e[42]!==fe?(V=s.jsxs(re,{className:J,onClick:g,children:[W,G,fe]}),e[38]=g,e[39]=J,e[40]=W,e[41]=G,e[42]=fe,e[43]=V):V=e[43];let ee;e[44]===Symbol.for("react.memo_cache_sentinel")?(ee=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]=ee):ee=e[44];let q;e[45]!==m||e[46]!==v||e[47]!==r||e[48]!==a?(q=m&&s.jsx(I.Suspense,{fallback:s.jsx(pi,{}),children:s.jsx(xi,{organizationId:m.id,currentProjectSlug:a,orgSlug:r??"",onSelect:v})}),e[45]=m,e[46]=v,e[47]=r,e[48]=a,e[49]=q):q=e[49];let Q;e[50]!==k?(Q=k&&s.jsxs(re,{className:"gap-2.5",onClick:k,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=k,e[51]=Q):Q=e[51];let O;e[52]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Ue,{}),e[52]=O):O=e[52];const Z=vs;let me;e[53]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsxs(Ns,{className:"gap-2.5",children:[s.jsx(ys,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=me):me=e[53];const ie=js,je="w-48 flex flex-col gap-0.5";let ne;e[54]!==b||e[55]!==r?(ne=Y=>s.jsxs(re,{className:P("gap-2.5",Y.slug===r&&"bg-accent"),onClick:()=>b(Y.slug),children:[s.jsx(Ie,{url:Y.logo??"",fallback:Y.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:Y.name}),Y.slug===r&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},Y.id),e[54]=b,e[55]=r,e[56]=ne):ne=e[56];const S=j.map(ne);let K;e[57]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(Ue,{}),e[57]=K):K=e[57];let le;e[58]!==f?(le=()=>f(!0),e[58]=f,e[59]=le):le=e[59];let he,ye;e[60]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),ye=s.jsx("span",{children:"Create organization"}),e[60]=he,e[61]=ye):(he=e[60],ye=e[61]);let ue;e[62]!==le?(ue=s.jsxs(re,{className:"gap-2.5",onClick:le,children:[he,ye]}),e[62]=le,e[63]=ue):ue=e[63];let pe;e[64]!==ie||e[65]!==S||e[66]!==ue?(pe=s.jsxs(ie,{className:je,children:[S,K,ue]}),e[64]=ie,e[65]=S,e[66]=ue,e[67]=pe):pe=e[67];let Se;e[68]!==Z||e[69]!==me||e[70]!==pe?(Se=s.jsxs(Z,{children:[me,pe]}),e[68]=Z,e[69]=me,e[70]=pe,e[71]=Se):Se=e[71];let Te,De;e[72]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),De=s.jsx("span",{children:"Settings"}),e[72]=Te,e[73]=De):(Te=e[72],De=e[73]);let _e;e[74]!==z?(_e=s.jsxs(re,{className:"gap-2.5",onClick:z,children:[Te,De]}),e[74]=z,e[75]=_e):_e=e[75];let ke;e[76]!==D||e[77]!==F||e[78]!==V||e[79]!==ee||e[80]!==q||e[81]!==Q||e[82]!==O||e[83]!==Se||e[84]!==_e?(ke=s.jsxs(D,{align:E,side:U,className:B,onCloseAutoFocus:F,children:[V,ee,q,Q,O,Se,_e]}),e[76]=D,e[77]=F,e[78]=V,e[79]=ee,e[80]=q,e[81]=Q,e[82]=O,e[83]=Se,e[84]=_e,e[85]=ke):ke=e[85];let Ce;e[86]!==M||e[87]!==A||e[88]!==ke?(Ce=s.jsxs(M,{children:[A,ke]}),e[86]=M,e[87]=A,e[88]=ke,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==f?(we=s.jsx(Ss,{open:u,onOpenChange:f}),e[90]=u,e[91]=f,e[92]=we):we=e[92];let Me;return e[93]!==Ce||e[94]!==we?(Me=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=Me):Me=e[95],Me}function bi(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(ae,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Qe(t){const e=w.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:l}=Ke(),o=n==="collapsed";let r;return e[0]!==o||e[1]!==i||e[2]!==l?(r=s.jsx(vt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(be,{children:s.jsx(xe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:i}),s.jsx(Oe,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(Oe,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=i,e[2]=l,e[3]=r):r=e[3],r}Qe.Skeleton=function(){return s.jsx(vt,{className:"px-3",children:s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(ae,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(ae,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function ji(t){const e=w.c(50),{user:i,userImage:n}=t,{open:l}=at(),[o,r]=I.useState(!1);let a;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(a=()=>{const F=`ID: ${i.id}
1
+ import{r as I,c as w,j as s,E as Ye,u as ze,D as P,e as Xe,at as Ze,L as We,cb as _t,bg as kt,O as te,as as Ct,X as wt,a0 as $t,g as it,f as Ne,v as ve,cc as zt,bK as It,w as Pt,B as Ge,A as At,S as nt,k as Et,m as Ot,N as Tt,x as Dt,z as Fe,K as Mt,au as lt,P as Rt}from"./index-NjMxPJgF.js";import{C as oe,c as Lt,i as Ht,d as Ut}from"./task-status-DYx9R7EL.js";import{I as Bt}from"./integration-icon-BPVDVJvP.js";import{a as ot,P as ge,u as Je}from"./index-De1iYnQy.js";import{d as Ft,a as Kt,u as Wt}from"./constants-D7qXOYRn.js";import{n as Gt}from"./ChevronLeft-D-e7F7Gj.js";import{i as Vt}from"./Loading01-Bb8FCosd.js";import{s as Le}from"./Plus-CajZ9VfC.js";import{t as et}from"./Users03-Bv-hUQkl.js";import{i as tt}from"./X-LzehymHS.js";import{E as qt,C as Qt}from"./editable-task-title-Cm-uIwFs.js";import{T as Yt}from"./tasks-panel-BJ3TfA-_.js";import{a as Xt,b as Zt}from"./ai-providers-logos-CCp39UCk.js";import{a as Jt}from"./context-DxQMlFKC.js";import{C as rt}from"./create-project-dialog-BeIY4Oy9.js";import{a as es,b as ts,c as ss,D as is}from"./dialog-ChXYvlDt.js";import{n as ns}from"./Container-DHyMOW_p.js";import{e as ls}from"./Dataflow03-CD3eo8oO.js";import{a as os}from"./Home02-JZJR9jmQ.js";import{i as Ve}from"./LayoutLeft-B2KZfn2n.js";import{s as rs}from"./RefreshCcw01-B_NTitRE.js";import{t as He}from"./Settings01-ClPVpLPy.js";import{u as as,a as at}from"./org-ai-providers-DaYyItUL.js";import{u as ct,a as dt}from"./use-project-b5C3lq5-.js";import{u as cs}from"./use-mobile-DOUfTohp.js";import{S as ds,b as ms,c as fs,d as us,a as ps}from"./sheet-C3HM0Uwr.js";import{c as xs,b as hs,a as gs,T as bs}from"./tooltip-BJMSu0c2.js";import{S as ae}from"./skeleton-Cjm8s7CT.js";import{n as $e}from"./LinkExternal01-CKvCiQnV.js";import{t as mt}from"./ChevronDown-BIRGQoZ5.js";import{A as Ie}from"./avatar-B2yArl-q.js";import{c as re,f as js,e as vs,b as ft,D as ut,a as pt,h as Ue,d as Ns}from"./dropdown-menu-BxlQMXgW.js";import{t as ys}from"./Building02-Dr7IyBdv.js";import{i as Pe}from"./Check-DW8AVFkq.js";import{C as Ss}from"./create-organization-dialog-CNWB-72r.js";import{a as _s}from"./Copy01-DkcjIGiS.js";import{i as ks}from"./File06-Bp4ioOvR.js";import{i as Cs}from"./Globe01-B8Ib7knn.js";import{i as ws}from"./Shield01-N4ace-oo.js";import{a as $s,P as zs,b as Is}from"./popover-Br8QkMK3.js";import{n as st}from"./Inbox01-ClVaT7W5.js";import{s as Ps}from"./XClose-CcNXqPQc.js";import{b as As}from"./use-mcp-tools-BCZI_Wqc.js";import{C as Es,b as Os,c as Ts}from"./collapsible-BtjeaBAE.js";import{i as Ds}from"./ChevronRight-DsjLlugM.js";import{a as Ms,R as xt,b as Rs}from"./resizable-Nu1SqaJD.js";import"./spinner-Dzx7B3Jl.js";import"./use-mcp-prompts-Bel4H4rh.js";import"./useQuery-BYBCFxgb.js";import"./form-CaFPTMVC.js";import"./label-DkiEYJcU.js";import"./input-B89sozd8.js";import"./index-YRudAQp7.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-DoIG5eQh.js";import"./Edit01-CoeKfJ-u.js";import"./Lock01-CnZITIks.js";import"./use-copy-xhdji_Bl.js";import"./AlertCircle-12chRuly.js";import"./select-Dx3T3-4n.js";import"./ChevronUp-Bi3NMXzv.js";import"./index-CqyqI90F.js";import"./ArrowLeft-erI8s3G2.js";import"./tabs-BSOe8gLq.js";import"./badge-DtRom7JO.js";import"./Code01-YGq5QwlZ.js";import"./checkbox-B1rexahu.js";import"./AlignLeft-_LT9deOt.js";import"./Image01-DjoSkYp_.js";import"./Key01-qNySmY39.js";import"./SearchMd-eZWeU0sP.js";import"./Tool01-D1m8i7Ez.js";import"./select-virtual-mcp-BS537pmy.js";import"./use-virtual-mcp-BP6aaUzw.js";import"./use-collections-C0cYiFfV.js";import"./useMutation-68NxhXCf.js";import"./use-create-virtual-mcp-B7odZ_c3.js";import"./use-mcp-resources-qGdymfRz.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-By1mQEU9.js";import"./types-BHeMLyAV.js";import"./Eye-hBqNQHpc.js";import"./Globe02-wRhoc1N5.js";import"./LayersTwo01-dfSlQT0y.js";import"./Clock-D4xJnA3P.js";import"./Trash01-B_4PTwjI.js";import"./useSuspenseInfiniteQuery-X3jXt04i.js";import"./infiniteQueryObserver-JZ0YxCW-.js";import"./CheckCircle-hBpanOsI.js";import"./collection-search-BYV7N3mr.js";import"./user-iDZRuimU.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./empty-state-xIvMMy-_.js";import"./decopilot-events-Brt4gAR6.js";import"./index-YL7q5tyF.js";import"./textarea-DIJzFUWn.js";import"./EyeOff-CJoTkAtN.js";import"./card-B8qDZGCZ.js";import"./toggle-group-DlZGDyPQ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./alert-dialog-B_ae3oRt.js";import"./index-yiVP4brl.js";const ht=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));ht.displayName="BarChart10";const Be=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m6 15 2 2 4.5-4.5M8 8V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C9.52 2 10.08 2 11.2 2h7.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 3.52 22 4.08 22 5.2v7.6c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C20.48 16 19.92 16 18.8 16H16M5.2 22h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C16 20.48 16 19.92 16 18.8v-7.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 8 13.92 8 12.8 8H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 9.52 2 10.08 2 11.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));Be.displayName="CheckDone01";const gt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));gt.displayName="Coins01";const bt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));bt.displayName="LogOut01";function Ls(){const t=w.c(70),{org:e}=ze(),[,i]=ot(),n=Xt(),{selectedVirtualMcp:l,isChatEmpty:o,activeTaskId:r,createTask:a,switchToTask:c,tasks:d}=Jt();let m;if(t[0]!==r||t[1]!==d){let O;t[3]!==r?(O=Z=>Z.id===r,t[3]=r,t[4]=O):O=t[4],m=d.find(O),t[0]=r,t[1]=d,t[2]=m}else m=t[2];const u=m,[f,p]=I.useState("chat"),[h,y]=I.useTransition();let j;t[5]!==e.id?(j=Ft(e.id),t[5]=e.id,t[6]=j):j=t[6];const g=l??j;let x;t[7]!==a?(x=()=>{y(()=>{a()})},t[7]=a,t[8]=x):x=t[8];const v=x;if(n?.providers?.length===0){let O;t[9]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(ge.Header.Left,{className:"gap-2"}),t[9]=O):O=t[9];let Z;t[10]!==i?(Z=()=>i(!1),t[10]=i,t[11]=Z):Z=t[11];let me;t[12]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=me):me=t[12];let ie;t[13]!==Z?(ie=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[O,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:Z,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:me})})]}),t[13]=Z,t[14]=ie):ie=t[14];let je;t[15]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(oe.Main,{className:"flex flex-col items-center",children:s.jsx(oe.EmptyState,{children:s.jsx(oe.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features."})})}),t[15]=je):je=t[15];let ne;return t[16]!==ie?(ne=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[ie,je]}),t[16]=ie,t[17]=ne):ne=t[17],ne}const C=f!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let b;t[18]!==C?(b=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",C),t[18]=C,t[19]=b):b=t[19];let N;t[20]!==u||t[21]!==o?(N=!o&&u?.title&&s.jsx(qt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[20]=u,t[21]=o,t[22]=N):N=t[22];let k;t[23]!==N?(k=s.jsx(ge.Header.Left,{className:"gap-2",children:N}),t[23]=N,t[24]=k):k=t[24];let $;t[25]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[25]=$):$=t[25];let z;t[26]!==v||t[27]!==h?(z=s.jsx("button",{type:"button",onClick:v,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:$}),t[26]=v,t[27]=h,t[28]=z):z=t[28];let M;t[29]===Symbol.for("react.memo_cache_sentinel")?(M=()=>p("tasks"),t[29]=M):M=t[29];let R;t[30]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Be,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[30]=R):R=t[30];let L;t[31]!==i?(L=()=>i(!1),t[31]=i,t[32]=L):L=t[32];let H;t[33]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[33]=H):H=t[33];let T;t[34]!==L?(T=s.jsx("button",{type:"button",onClick:L,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:H}),t[34]=L,t[35]=T):T=t[35];let A;t[36]!==T||t[37]!==z?(A=s.jsxs(ge.Header.Right,{className:"gap-1",children:[z,R,T]}),t[36]=T,t[37]=z,t[38]=A):A=t[38];let D;t[39]!==A||t[40]!==k?(D=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[k,A]}),t[39]=A,t[40]=k,t[41]=D):D=t[41];let E;t[42]!==g||t[43]!==o?(E=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(Bt,{icon:g.icon,name:g.title,size:"lg",fallbackIcon:s.jsx(et,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:g.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:g.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[42]=g,t[43]=o,t[44]=E):E=t[44];let U;t[45]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[45]=U):U=t[45];let B;t[46]!==D||t[47]!==E||t[48]!==b?(B=s.jsxs("div",{className:b,children:[D,E,U]}),t[46]=D,t[47]=E,t[48]=b,t[49]=B):B=t[49];const F=f==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let se;t[50]!==F?(se=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",F),t[50]=F,t[51]=se):se=t[51];let J;t[52]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(ge.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[52]=J):J=t[52];let ce;t[53]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>p("chat"),t[53]=ce):ce=t[53];let de;t[54]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[J,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ce,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Gt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[54]=de):de=t[54];let W;t[55]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Vt,{size:16,className:"animate-spin text-muted-foreground"})}),t[55]=W):W=t[55];let X;t[56]!==c?(X=s.jsx(Ye,{fallback:Hs,children:s.jsx(I.Suspense,{fallback:W,children:s.jsx(Yt,{onTaskSelect:async O=>{await c(O),p("chat")}})})}),t[56]=c,t[57]=X):X=t[57];let G;t[58]!==se||t[59]!==X?(G=s.jsxs("div",{className:se,children:[de,X]}),t[58]=se,t[59]=X,t[60]=G):G=t[60];const fe=f==="context"?"opacity-100":"opacity-0 pointer-events-none";let V;t[61]!==fe?(V=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",fe),t[61]=fe,t[62]=V):V=t[62];let ee;t[63]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Qt,{back:!0,onClose:()=>p("chat")}),t[63]=ee):ee=t[63];let q;t[64]!==V?(q=s.jsx("div",{className:V,children:ee}),t[64]=V,t[65]=q):q=t[65];let Q;return t[66]!==B||t[67]!==G||t[68]!==q?(Q=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[B,G,q]}),t[66]=B,t[67]=G,t[68]=q,t[69]=Q):Q=t[69],Q}function Hs(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function Us(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ye,{fallback:e,children:s.jsx(I.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ls,{})})}),t[1]=i):i=t[1],i}function Bs(t){const e=w.c(5),{open:i,onOpenChange:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ts,{children:s.jsx(ss,{children:"Keyboard Shortcuts"})}),e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(es,{className:"sm:max-w-md",children:[l,s.jsx("div",{className:"flex flex-col gap-4",children:Lt.map(Fs)})]}),e[1]=o):o=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx(is,{open:i,onOpenChange:n,children:o}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Fs(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ws)})]},t.description)}function Ws(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Gs(){const t=w.c(60),{locator:e,org:i}=ze(),n=Xe(),l=Ze(),[o]=as(),{org:r,project:a}=We.parse(e),c=We.isOrgAdminProject(e),{data:d}=ct(i.id,a);let m;t[0]!==d?.enabledPlugins?(m=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=m):m=t[1];const u=m,f=d?.ui?.pinnedViews??[];let p;t[2]!==u?(p=S=>u.includes(S.pluginId),t[2]=u,t[3]=p):p=t[3];const h=_t.filter(p),y=l.location.pathname,j=`/${r}/${a}`,_=y===j||y===`${j}/`;let g;t[4]!==j||t[5]!==y?(g=S=>y.startsWith(`${j}/${S}`),t[4]=j,t[5]=y,t[6]=g):g=t[6];const x=g;let v;t[7]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(os,{}),t[7]=v):v=t[7];const C={key:"home",label:"Home",icon:v,isActive:_,onClick:()=>{_?window.dispatchEvent(new CustomEvent("reset-home-view")):n({to:"/$org/$project",params:{org:r,project:a}})}};let b;t[8]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Be,{}),t[8]=b):b=t[8];const N={key:"tasks",label:"Tasks",icon:b,isActive:x("tasks"),onClick:()=>n({to:"/$org/$project/tasks",params:{org:r,project:te}})};let k;t[9]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(ns,{}),t[9]=k):k=t[9];const $={key:"mcps",label:"Connections",icon:k,isActive:x("mcps"),onClick:()=>n({to:"/$org/$project/mcps",params:{org:r,project:te}})};let z;t[10]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ct,{}),t[10]=z):z=t[10];const M={key:"projects",label:"Projects",icon:z,isActive:x("projects"),onClick:()=>n({to:"/$org/$project/projects",params:{org:r,project:te}})};let R;t[11]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(et,{}),t[11]=R):R=t[11];const L={key:"agents",label:"Agents",icon:R,isActive:x("agents"),onClick:()=>n({to:"/$org/$project/agents",params:{org:r,project:te}})};let H;t[12]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(rs,{}),t[12]=H):H=t[12];const T={key:"automations",label:"Automations",icon:H,isActive:x("automations"),onClick:()=>n({to:"/$org/$project/automations",params:{org:r,project:te}})};let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ht,{}),t[13]=A):A=t[13];const D={key:"monitoring",label:"Monitor",icon:A,isActive:x("monitoring"),onClick:()=>n({to:"/$org/$project/monitoring",params:{org:r,project:te}})},E=h.map(S=>({key:S.pluginId,label:S.label,icon:S.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:S.pluginId}})}));let U;t[14]!==u?(U=S=>u.includes(S.pluginId),t[14]=u,t[15]=U):U=t[15];const F=kt.filter(U).map(S=>({type:"group",group:{id:`${S.pluginId}-${S.id}`,label:S.label,items:S.items.map((K,le)=>({key:`${S.pluginId}-${S.id}-${le}`,label:K.label,icon:K.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:S.pluginId}})})),defaultExpanded:S.defaultExpanded??!0}})),se=f.map(S=>({key:`app-${S.connectionId}-${S.toolName}`,label:S.label||S.toolName,icon:S.icon?s.jsx("img",{src:S.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:x(`apps/${S.connectionId}/${encodeURIComponent(S.toolName)}`),onClick:()=>n({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:r,project:a,connectionId:S.connectionId,toolName:S.toolName}})}));let J;t[16]!==se?(J=se.length>0?{type:"group",group:{id:"apps",label:"Apps",items:se,defaultExpanded:!0}}:null,t[16]=se,t[17]=J):J=t[17];const ce=J;if(c){let S;t[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(He,{}),t[18]=S):S=t[18];let K;t[19]!==x?(K=x("settings"),t[19]=x,t[20]=K):K=t[20];let le;t[21]!==n||t[22]!==r?(le=()=>n({to:"/$org/$project/settings",params:{org:r,project:te}}),t[21]=n,t[22]=r,t[23]=le):le=t[23];let he;t[24]!==K||t[25]!==le?(he={key:"settings",label:"Settings",icon:S,isActive:K,onClick:le},t[24]=K,t[25]=le,t[26]=he):he=t[26];const ye=he,ue=[{type:"items",items:[C,N,M]},{type:"group",group:{id:"build",label:"Build",items:[...o.experimentalAutomations?[T]:[],L,$],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[D,ye],defaultExpanded:!0}}];if(E.length>0){let pe;t[27]!==E?(pe={type:"items",items:E},t[27]=E,t[28]=pe):pe=t[28],ue.push(pe)}return F.length>0&&ue.push(...F),ce&&ue.push(ce),ue}let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsx(Be,{}),t[29]=de):de=t[29];let W;t[30]!==x?(W=x("tasks"),t[30]=x,t[31]=W):W=t[31];let X;t[32]!==n||t[33]!==r||t[34]!==a?(X=()=>n({to:"/$org/$project/tasks",params:{org:r,project:a}}),t[32]=n,t[33]=r,t[34]=a,t[35]=X):X=t[35];let G;t[36]!==W||t[37]!==X?(G={key:"tasks",label:"Tasks",icon:de,isActive:W,onClick:X},t[36]=W,t[37]=X,t[38]=G):G=t[38];const fe=G;let V;t[39]!==u||t[40]!==x||t[41]!==n||t[42]!==r||t[43]!==a?(V=u.includes("workflows")?{key:"workflows",label:"Workflows",icon:s.jsx(ls,{}),isActive:x("workflows"),onClick:()=>n({to:"/$org/$project/workflows",params:{org:r,project:a}})}:null,t[39]=u,t[40]=x,t[41]=n,t[42]=r,t[43]=a,t[44]=V):V=t[44];const ee=V;let q;t[45]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(He,{}),t[45]=q):q=t[45];let Q;t[46]!==x?(Q=x("settings"),t[46]=x,t[47]=Q):Q=t[47];let O;t[48]!==n||t[49]!==r||t[50]!==a?(O=()=>n({to:"/$org/$project/settings/general",params:{org:r,project:a}}),t[48]=n,t[49]=r,t[50]=a,t[51]=O):O=t[51];let Z;t[52]!==Q||t[53]!==O?(Z={key:"configure",label:"Settings",icon:q,isActive:Q,onClick:O},t[52]=Q,t[53]=O,t[54]=Z):Z=t[54];const me=Z;let ie;t[55]!==ee?(ie=ee?[ee]:[],t[55]=ee,t[56]=ie):ie=t[56];const ne=[{type:"items",items:[C,fe,...ie,me]}];if(E.length>0){let S;t[57]===Symbol.for("react.memo_cache_sentinel")?(S={type:"divider"},t[57]=S):S=t[57],ne.push(S);let K;t[58]!==E?(K={type:"items",items:E},t[58]=E,t[59]=K):K=t[59],ne.push(K)}return F.length>0&&ne.push(...F),ce&&ne.push(ce),ne}const Vs="sidebar_state",qs=3600*24*7,Qs="16rem",Ys="18rem",Xs="3rem",Zs="b",jt=I.createContext(null);function Ke(){const t=I.useContext(jt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Js(t){const e=w.c(21),{defaultOpen:i,open:n,onOpenChange:l,children:o}=t,r=i===void 0?!0:i,a=cs(),[c,d]=I.useState(!1),[m,u]=I.useState(r),f=n??m;let p;e[0]!==f||e[1]!==l?(p=k=>{const $=typeof k=="function"?k(f):k;l?l($):u($),document.cookie=`${Vs}=${$}; path=/; max-age=${qs}`},e[0]=f,e[1]=l,e[2]=p):p=e[2];const h=p;let y;e[3]!==a||e[4]!==h?(y=()=>a?d(ti):h(ei),e[3]=a,e[4]=h,e[5]=y):y=e[5];const j=y;let _,g;e[6]!==j?(_=()=>{const k=$=>{if($.key===Zs&&($.metaKey||$.ctrlKey)){const z=$.target;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return;$.preventDefault(),j()}};return globalThis.addEventListener("keydown",k),()=>globalThis.removeEventListener("keydown",k)},g=[j],e[6]=j,e[7]=_,e[8]=g):(_=e[7],g=e[8]),I.useEffect(_,g);const x=f?"expanded":"collapsed";let v;e[9]!==a||e[10]!==f||e[11]!==c||e[12]!==h||e[13]!==x||e[14]!==j?(v={state:x,open:f,setOpen:h,isMobile:a,openMobile:c,setOpenMobile:d,toggleSidebar:j},e[9]=a,e[10]=f,e[11]=c,e[12]=h,e[13]=x,e[14]=j,e[15]=v):v=e[15];const C=v;let b;e[16]!==o?(b=s.jsx(xs,{delayDuration:0,children:o}),e[16]=o,e[17]=b):b=e[17];let N;return e[18]!==C||e[19]!==b?(N=s.jsx(jt.Provider,{value:C,children:b}),e[18]=C,e[19]=b,e[20]=N):N=e[20],N}function ei(t){return!t}function ti(t){return!t}function si(t){const e=w.c(14);let i,n,l,o;e[0]!==t?({className:n,style:o,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o):(i=e[1],n=e[2],l=e[3],o=e[4]);let r;e[5]!==o?(r={"--sidebar-width":Qs,"--sidebar-width-icon":Xs,...o},e[5]=o,e[6]=r):r=e[6];const a=r;let c;e[7]!==n?(c=P("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",n),e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==i||e[10]!==l||e[11]!==a||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:a,className:c,...l,children:i}),e[9]=i,e[10]=l,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function ii(t){const e=w.c(42);let i,n,l,o,r,a;e[0]!==t?({side:o,variant:r,collapsible:a,className:n,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6]);const c=o===void 0?"left":o,d=r===void 0?"sidebar":r,m=a===void 0?"offcanvas":a,{isMobile:u,state:f,openMobile:p,setOpenMobile:h}=Ke();if(m==="none"){let b;e[7]!==n?(b=P("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=b):b=e[8];let N;return e[9]!==i||e[10]!==l||e[11]!==b?(N=s.jsx("div",{"data-slot":"sidebar",className:b,...l,children:i}),e[9]=i,e[10]=l,e[11]=b,e[12]=N):N=e[12],N}if(u){let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b={"--sidebar-width":Ys},e[13]=b):b=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(ms,{className:"sr-only",children:[s.jsx(fs,{children:"Sidebar"}),s.jsx(us,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let k;e[15]!==i?(k=s.jsx("div",{className:"flex h-full w-full flex-col",children:i}),e[15]=i,e[16]=k):k=e[16];let $;e[17]!==c||e[18]!==k?($=s.jsxs(ps,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:b,side:c,children:[N,k]}),e[17]=c,e[18]=k,e[19]=$):$=e[19];let z;return e[20]!==p||e[21]!==l||e[22]!==h||e[23]!==$?(z=s.jsx(ds,{open:p,onOpenChange:h,...l,children:$}),e[20]=p,e[21]=l,e[22]=h,e[23]=$,e[24]=z):z=e[24],z}const y=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]!==y?(j=P("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",y),e[25]=y,e[26]=j):j=e[26];const _=f==="collapsed"?m:"";let g;e[27]!==n?(g=P("flex flex-col h-full w-(--sidebar-width)",n),e[27]=n,e[28]=g):g=e[28];let x;e[29]!==i?(x=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i}),e[29]=i,e[30]=x):x=e[30];let v;e[31]!==l||e[32]!==g||e[33]!==x?(v=s.jsx("div",{"data-slot":"sidebar-container",className:g,...l,children:x}),e[31]=l,e[32]=g,e[33]=x,e[34]=v):v=e[34];let C;return e[35]!==c||e[36]!==f||e[37]!==j||e[38]!==_||e[39]!==v||e[40]!==d?(C=s.jsx("div",{className:j,"data-state":f,"data-collapsible":_,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:v}),e[35]=c,e[36]=f,e[37]=j,e[38]=_,e[39]=v,e[40]=d,e[41]=C):C=e[41],C}function ni(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function vt(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function li(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function oi(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("h-4 m-0! w-full",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-sidebar":"separator",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ri(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ae(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ee(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("w-full text-sm",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function be(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function xe(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("group/menu-item relative",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}const ai=$t("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Oe(t){const e=w.c(28);let i,n,l,o,r,a,c;e[0]!==t?({asChild:l,isActive:o,variant:r,size:a,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a,e[7]=c):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6],c=e[7]);const d=l===void 0?!1:l,m=o===void 0?!1:o,u=r===void 0?"default":r,f=a===void 0?"default":a,p=d?wt:"button",{isMobile:h,state:y}=Ke();let j;e[8]!==i||e[9]!==f||e[10]!==u?(j=P(ai({variant:u,size:f}),i),e[8]=i,e[9]=f,e[10]=u,e[11]=j):j=e[11];let _;e[12]!==p||e[13]!==m||e[14]!==n||e[15]!==f||e[16]!==j?(_=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":m,className:j,...n}),e[12]=p,e[13]=m,e[14]=n,e[15]=f,e[16]=j,e[17]=_):_=e[17];const g=_;if(!c)return g;if(typeof c=="string"){let N;e[18]!==c?(N={children:c},e[18]=c,e[19]=N):N=e[19],c=N}let x;e[20]!==g?(x=s.jsx(gs,{asChild:!0,children:g}),e[20]=g,e[21]=x):x=e[21];const v=y!=="collapsed"||h;let C;e[22]!==v||e[23]!==c?(C=s.jsx(hs,{side:"right",align:"center",hidden:v,...c}),e[22]=v,e[23]=c,e[24]=C):C=e[24];let b;return e[25]!==x||e[26]!==C?(b=s.jsxs(bs,{children:[x,C]}),e[25]=x,e[26]=C,e[27]=b):b=e[27],b}function ci(t){const e=w.c(11),{label:i,children:n,defaultExpanded:l}=t,o=l===void 0?!0:l,[r,a]=I.useState(o),{state:c}=Ke(),d=c==="collapsed";let m;e[0]!==r||e[1]!==d||e[2]!==i?(m=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(be,{children:s.jsx(xe,{children:s.jsxs(Oe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!r),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(mt,{size:12,className:P("text-muted-foreground transition-transform duration-200",!r&&"-rotate-90")})]})})}),e[0]=r,e[1]=d,e[2]=i,e[3]=m):m=e[3];let u;e[4]!==n||e[5]!==r||e[6]!==d?(u=(d||r)&&s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=r,e[6]=d,e[7]=u):u=e[7];let f;return e[8]!==m||e[9]!==u?(f=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,u]}),e[8]=m,e[9]=u,e[10]=f):f=e[10],f}function Nt(t){const e=w.c(20),{item:i}=t,n=i.key,l=i.onClick,o=i.isActive,r=i.label,a=i.isExternal&&"group/external";let c;e[0]!==a?(c=P(a),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==i.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[2]=i.icon,e[3]=d):d=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=P("truncate group-data-[collapsible=icon]:hidden"),e[4]=m):m=e[4];let u;e[5]!==i.label?(u=s.jsx("span",{className:m,children:i.label}),e[5]=i.label,e[6]=u):u=e[6];let f;e[7]!==i.isExternal?(f=i.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[7]=i.isExternal,e[8]=f):f=e[8];let p;e[9]!==i.isActive||e[10]!==i.label||e[11]!==i.onClick||e[12]!==f||e[13]!==c||e[14]!==d||e[15]!==u?(p=s.jsxs(Oe,{onClick:l,isActive:o,tooltip:r,className:c,children:[d,u,f]}),e[9]=i.isActive,e[10]=i.label,e[11]=i.onClick,e[12]=f,e[13]=c,e[14]=d,e[15]=u,e[16]=p):p=e[16];let h;return e[17]!==i.key||e[18]!==p?(h=s.jsx(xe,{children:p},n),e[17]=i.key,e[18]=p,e[19]=h):h=e[19],h}function di(t){const e=w.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(oi,{className:"my-2"}),e[0]=n):n=e[0],n}case"spacer":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1"}),e[1]=n):n=e[1],n}case"group":{const n=i.group.label,l=i.group.defaultExpanded;let o;e[2]!==i.group.items?(o=i.group.items.map(fi),e[2]=i.group.items,e[3]=o):o=e[3];let r;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==o?(r=s.jsx(ci,{label:n,defaultExpanded:l,children:o}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=o,e[7]=r):r=e[7],r}case"items":{let n;e[8]!==i.items?(n=i.items.map(mi),e[8]=i.items,e[9]=n):n=e[9];let l;return e[10]!==n?(l=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=l):l=e[11],l}}}function mi(t){return s.jsx(Nt,{item:t},t.key)}function fi(t){return s.jsx(Nt,{item:t},t.key)}function yt(t){const e=w.c(14),{sections:i,header:n,footer:l,additionalContent:o,variant:r,collapsible:a,contentClassName:c}=t,d=r===void 0?"sidebar":r,m=a===void 0?"icon":a;let u;e[0]!==c?(u=P("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let f;e[2]!==i?(f=i.map(ui),e[2]=i,e[3]=f):f=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==f?(p=s.jsxs(ri,{className:u,children:[f,o]}),e[4]=o,e[5]=u,e[6]=f,e[7]=p):p=e[7];let h;return e[8]!==m||e[9]!==l||e[10]!==n||e[11]!==p||e[12]!==d?(h=s.jsxs(ii,{variant:d,collapsible:m,children:[n,p,l]}),e[8]=m,e[9]=l,e[10]=n,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ui(t,e){return s.jsx(di,{section:t},e)}yt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,i)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(ae,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function pi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(ae,{className:"h-8 w-full rounded-lg"}),s.jsx(ae,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function xi(t){const e=w.c(12),{organizationId:i,currentProjectSlug:n,onSelect:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:r}=dt(i,o);let a,c;if(e[1]!==n||e[2]!==l||e[3]!==r){c=Symbol.for("react.early_return_sentinel");e:{const m=r?.filter(hi)??[];if(m.length===0){let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=f):f=e[6],c=f;break e}let u;e[7]!==n||e[8]!==l?(u=f=>{const p=n===f.slug,h=f.ui?.themeColor??"#3B82F6";return s.jsxs(re,{className:P("gap-2.5",p&&"bg-accent"),onClick:()=>l(f.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:f.ui?.icon?void 0:{backgroundColor:h},children:f.ui?.icon?s.jsx("img",{src:f.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:f.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:f.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},f.id)},e[7]=n,e[8]=l,e[9]=u):u=e[9],a=m.map(u)}e[1]=n,e[2]=l,e[3]=r,e[4]=a,e[5]=c}else a=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==a?(d=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=d):d=e[11],d}function hi(t){return t.slug!==te}function gi(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const i=Math.abs(e)%360;return{backgroundColor:`hsl(${i} 55% 70%)`,color:`hsl(${i} 55% 20%)`}}function qe(t){const e=w.c(96),{isCollapsed:i,onCreateProject:n}=t,l=i===void 0?!1:i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:r,project:a}=it(o),{data:c}=Ne.useListOrganizations(),d=Xe(),m=c?.find(Y=>Y.slug===r),[u,f]=I.useState(!1),p=a===te,{data:h}=ct(m?.id??"",p?"":a??"");let y;e[1]!==r?(y=(Y,Re)=>Y.slug===r?-1:Re.slug===r?1:Y.name.localeCompare(Re.name),e[1]=r,e[2]=y):y=e[2];const j=[...c??[]].sort(y);let _;e[3]!==d||e[4]!==r?(_=()=>{r&&d({to:"/$org/$project",params:{org:r,project:te}})},e[3]=d,e[4]=r,e[5]=_):_=e[5];const g=_;let x;e[6]!==d||e[7]!==r?(x=Y=>{r&&d({to:"/$org/$project",params:{org:r,project:Y}})},e[6]=d,e[7]=r,e[8]=x):x=e[8];const v=x;let C;e[9]!==d?(C=Y=>{d({to:"/$org/$project",params:{org:Y,project:te}})},e[9]=d,e[10]=C):C=e[10];const b=C;let N;e[11]!==n?(N=n?()=>n():void 0,e[11]=n,e[12]=N):N=e[12];const k=N;let $;e[13]!==d||e[14]!==r||e[15]!==a?($=()=>{if(!r||!a)return;const Y=a===te;d({to:"/$org/$project",params:{org:r,project:a},search:Re=>({...Re,settings:Y?"org.general":`project:${a}:general`})})},e[13]=d,e[14]=r,e[15]=a,e[16]=$):$=e[16];const z=$,M=ut,R=l?"w-auto pr-1.5":"w-full";let L;e[17]!==R?(L=P("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]=L):L=e[18];const H=p?s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:m?.logo?void 0:gi(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:h?.ui?.icon?void 0:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold text-white",l?"text-xs":"text-lg"),children:(h?.name??a??"?").charAt(0).toUpperCase()})});let T;e[19]!==m?.name||e[20]!==h?.name||e[21]!==l||e[22]!==p||e[23]!==a?(T=!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:p?"Studio":h?.name??a??""})]}),s.jsx(Ht,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=h?.name,e[21]=l,e[22]=p,e[23]=a,e[24]=T):T=e[24];let A;e[25]!==L||e[26]!==H||e[27]!==T?(A=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{type:"button",className:L,children:[H,T]})}),e[25]=L,e[26]=H,e[27]=T,e[28]=A):A=e[28];const D=ft,E="start",U="bottom",B="w-64 flex flex-col gap-0.5",F=bi,se=p&&"bg-accent";let J;e[29]!==se?(J=P("gap-2.5",se),e[29]=se,e[30]=J):J=e[30];const ce=m?.logo??"",de=m?.name??"";let W;e[31]!==ce||e[32]!==de?(W=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]=W):W=e[33];const X=m?.name;let G;e[34]!==X?(G=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",X]}),e[34]=X,e[35]=G):G=e[35];let fe;e[36]!==p?(fe=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=fe):fe=e[37];let V;e[38]!==g||e[39]!==J||e[40]!==W||e[41]!==G||e[42]!==fe?(V=s.jsxs(re,{className:J,onClick:g,children:[W,G,fe]}),e[38]=g,e[39]=J,e[40]=W,e[41]=G,e[42]=fe,e[43]=V):V=e[43];let ee;e[44]===Symbol.for("react.memo_cache_sentinel")?(ee=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]=ee):ee=e[44];let q;e[45]!==m||e[46]!==v||e[47]!==r||e[48]!==a?(q=m&&s.jsx(I.Suspense,{fallback:s.jsx(pi,{}),children:s.jsx(xi,{organizationId:m.id,currentProjectSlug:a,orgSlug:r??"",onSelect:v})}),e[45]=m,e[46]=v,e[47]=r,e[48]=a,e[49]=q):q=e[49];let Q;e[50]!==k?(Q=k&&s.jsxs(re,{className:"gap-2.5",onClick:k,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=k,e[51]=Q):Q=e[51];let O;e[52]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Ue,{}),e[52]=O):O=e[52];const Z=vs;let me;e[53]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsxs(Ns,{className:"gap-2.5",children:[s.jsx(ys,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=me):me=e[53];const ie=js,je="w-48 flex flex-col gap-0.5";let ne;e[54]!==b||e[55]!==r?(ne=Y=>s.jsxs(re,{className:P("gap-2.5",Y.slug===r&&"bg-accent"),onClick:()=>b(Y.slug),children:[s.jsx(Ie,{url:Y.logo??"",fallback:Y.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:Y.name}),Y.slug===r&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},Y.id),e[54]=b,e[55]=r,e[56]=ne):ne=e[56];const S=j.map(ne);let K;e[57]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(Ue,{}),e[57]=K):K=e[57];let le;e[58]!==f?(le=()=>f(!0),e[58]=f,e[59]=le):le=e[59];let he,ye;e[60]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),ye=s.jsx("span",{children:"Create organization"}),e[60]=he,e[61]=ye):(he=e[60],ye=e[61]);let ue;e[62]!==le?(ue=s.jsxs(re,{className:"gap-2.5",onClick:le,children:[he,ye]}),e[62]=le,e[63]=ue):ue=e[63];let pe;e[64]!==ie||e[65]!==S||e[66]!==ue?(pe=s.jsxs(ie,{className:je,children:[S,K,ue]}),e[64]=ie,e[65]=S,e[66]=ue,e[67]=pe):pe=e[67];let Se;e[68]!==Z||e[69]!==me||e[70]!==pe?(Se=s.jsxs(Z,{children:[me,pe]}),e[68]=Z,e[69]=me,e[70]=pe,e[71]=Se):Se=e[71];let Te,De;e[72]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),De=s.jsx("span",{children:"Settings"}),e[72]=Te,e[73]=De):(Te=e[72],De=e[73]);let _e;e[74]!==z?(_e=s.jsxs(re,{className:"gap-2.5",onClick:z,children:[Te,De]}),e[74]=z,e[75]=_e):_e=e[75];let ke;e[76]!==D||e[77]!==F||e[78]!==V||e[79]!==ee||e[80]!==q||e[81]!==Q||e[82]!==O||e[83]!==Se||e[84]!==_e?(ke=s.jsxs(D,{align:E,side:U,className:B,onCloseAutoFocus:F,children:[V,ee,q,Q,O,Se,_e]}),e[76]=D,e[77]=F,e[78]=V,e[79]=ee,e[80]=q,e[81]=Q,e[82]=O,e[83]=Se,e[84]=_e,e[85]=ke):ke=e[85];let Ce;e[86]!==M||e[87]!==A||e[88]!==ke?(Ce=s.jsxs(M,{children:[A,ke]}),e[86]=M,e[87]=A,e[88]=ke,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==f?(we=s.jsx(Ss,{open:u,onOpenChange:f}),e[90]=u,e[91]=f,e[92]=we):we=e[92];let Me;return e[93]!==Ce||e[94]!==we?(Me=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=Me):Me=e[95],Me}function bi(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(ae,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Qe(t){const e=w.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:l}=Ke(),o=n==="collapsed";let r;return e[0]!==o||e[1]!==i||e[2]!==l?(r=s.jsx(vt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(be,{children:s.jsx(xe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:i}),s.jsx(Oe,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(Oe,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=i,e[2]=l,e[3]=r):r=e[3],r}Qe.Skeleton=function(){return s.jsx(vt,{className:"px-3",children:s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(ae,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(ae,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function ji(t){const e=w.c(50),{user:i,userImage:n}=t,{open:l}=at(),[o,r]=I.useState(!1);let a;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(a=()=>{const F=`ID: ${i.id}
2
2
  Name: ${i.name||"N/A"}
3
- Email: ${i.email}`;navigator.clipboard.writeText(F),r(!0),ve.success("User info copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=a):a=e[3];const c=a,d=i.name||i.email||"U";let m;e[4]!==d||e[5]!==n?(m=s.jsx(Ie,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=m):m=e[6];const u=i.name||"User";let f;e[7]!==u?(f=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]=f):f=e[8];let p;e[9]!==m||e[10]!==f?(p=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,f]})}),e[9]=m,e[10]=f,e[11]=p):p=e[11];const h=i.name||i.email||"U";let y;e[12]!==h||e[13]!==n?(y=s.jsx(Ie,{url:n,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=n,e[14]=y):y=e[14];const j=i.name||"User";let _;e[15]!==j?(_=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=_):_=e[16];let g;e[17]!==i.email?(g=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i.email}),e[17]=i.email,e[18]=g):g=e[18];let x;e[19]!==_||e[20]!==g?(x=s.jsxs("div",{className:"flex-1 min-w-0",children:[_,g]}),e[19]=_,e[20]=g,e[21]=x):x=e[21];let v;e[22]!==o?(v=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(_s,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=v):v=e[23];let C;e[24]!==c||e[25]!==x||e[26]!==v||e[27]!==y?(C=s.jsxs(re,{onClick:c,className:"gap-2.5 group",children:[y,x,v]}),e[24]=c,e[25]=x,e[26]=v,e[27]=y,e[28]=C):C=e[28];let b;e[29]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Ue,{}),e[29]=b):b=e[29];let N;e[30]!==l?(N=()=>l("account.preferences"),e[30]=l,e[31]=N):N=e[31];let k,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=k,e[33]=$):(k=e[32],$=e[33]);let z;e[34]!==N?(z=s.jsxs(re,{className:"gap-2.5",onClick:N,children:[k,$]}),e[34]=N,e[35]=z):z=e[35];let M;e[36]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ks,{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]=M):M=e[36];let R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ws,{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 L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(zt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=L):L=e[38];let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(et,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=H):H=e[39];let T,A;e[40]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Cs,{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"})]})}),A=s.jsx(Ue,{}),e[40]=T,e[41]=A):(T=e[40],A=e[41]);let D;e[42]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs(re,{className:"gap-2.5",onClick:vi,children:[s.jsx(bt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=D):D=e[42];let E;e[43]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.178.1"]})}),e[43]=E):E=e[43];let U;e[44]!==C||e[45]!==z?(U=s.jsxs(ft,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ni,children:[C,b,z,M,R,L,H,T,A,D,E]}),e[44]=C,e[45]=z,e[46]=U):U=e[46];let B;return e[47]!==U||e[48]!==p?(B=s.jsxs(ut,{children:[p,U]}),e[47]=U,e[48]=p,e[49]=B):B=e[49],B}function vi(){return Ne.signOut()}function Ni(t){return t.preventDefault()}function St(){const t=w.c(7),{data:e}=Ne.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const i=e.user,n=i.name??void 0;let l;t[1]!==n||t[2]!==i?(l={...i,name:n},t[1]=n,t[2]=i,t[3]=l):l=t[3];const o=l,r=i.image;let a;return t[4]!==r||t[5]!==o?(a=s.jsx(ji,{user:o,userImage:r}),t[4]=r,t[5]=o,t[6]=a):a=t[6],a}function yi({invitation:t}){const[e,i]=I.useState(!1),[n,l]=I.useState(!1),o=Pt(),r=async()=>{i(!0);try{const c=await Ne.organization.acceptInvitation({invitationId:t.id});if(c.error)ve.error(c.error.message),i(!1);else{const d=await Ne.organization.setActive({organizationId:t.organizationId});ve.success("Invitation accepted!");const m=d?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{ve.error("Failed to accept invitation"),i(!1)}},a=async()=>{l(!0);try{const c=await Ne.organization.rejectInvitation({invitationId:t.id});c.error?(ve.error(c.error.message),l(!1)):(ve.success("Invitation declined"),o.invalidateQueries())}catch{ve.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:r,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(Ps,{size:14})})]})]})}function Si(){const t=I.useContext(It),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class _i extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}function ki(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ci(){const t=w.c(15),{open:e}=at(),{org:i}=ze();let n;t[0]!==i.id?(n={connectionId:Kt,orgId:i.id},t[0]=i.id,t[1]=n):n=t[1];const l=Wt(n);let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o={providerId:"deco"},t[2]=o):o=t[2];let r;t[3]!==l?(r={client:l,toolName:"AI_PROVIDER_CREDITS",toolArguments:o,staleTime:6e4,select:wi},t[3]=l,t[4]=r):r=t[4];const{data:a,isPending:c,isError:d}=As(r),m=a?.balanceCents!=null?a.balanceCents/100:null;let u;t[5]!==e?(u=()=>e("org.billing"),t[5]=e,t[6]=u):u=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(gt,{size:13,className:"text-muted-foreground/60 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Credits"})]}),t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==d||t[10]!==c?(p=c||d||m==null?s.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground/40",children:"—"}):s.jsxs("span",{className:P("text-xs font-medium tabular-nums",ki(m)),children:["$",m.toFixed(2)]}),t[8]=m,t[9]=d,t[10]=c,t[11]=p):p=t[11];let h;return t[12]!==u||t[13]!==p?(h=s.jsxs("button",{type:"button",onClick:u,className:"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",children:[f,p]}),t[12]=u,t[13]=p,t[14]=h):h=t[14],h}function wi(t){return t.structuredContent}function $i(){const t=w.c(1);if(!Zt().some(zi))return null;let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ci,{}),t[0]=n):n=t[0],n}function zi(t){return t.providerId==="deco"}function Ii(){const t=w.c(13),e=Si();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_i,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx($i,{})})}),t[0]=i):i=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(St,{})}),t[1]=n):n=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(zs,{asChild:!0,children:s.jsx(Ge,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=l):l=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let r;t[5]!==o?(r=s.jsxs("div",{className:"relative",children:[l,o]}),t[5]=o,t[6]=r):r=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let c;t[8]!==e?(c=s.jsxs($s,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Pi)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==r||t[11]!==c?(d=s.jsxs(li,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(Is,{children:[r,c]})})]})})})]}),t[10]=r,t[11]=c,t[12]=d):d=t[12],d}function Pi(t){return s.jsx(yi,{invitation:t},t.id)}function Ai(t){const e=w.c(11),{project:i}=t,n=i.ui?.themeColor??"#60a5fa";if(i.ui?.icon){let c;return e[0]!==i.ui.icon?(c=s.jsx("img",{src:i.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=i.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==n?(l={backgroundColor:n},e[2]=n,e[3]=l):l=e[3];let o;e[4]!==i.name?(o=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=o):o=e[5];let r;e[6]!==o?(r=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=r):r=e[7];let a;return e[8]!==l||e[9]!==r?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:r}),e[8]=l,e[9]=r,e[10]=a):a=e[10],a}function Ei(t){const e=w.c(14),{project:i}=t,n=Xe(),{org:l}=ze();let o;e[0]!==n||e[1]!==l.slug||e[2]!==i.slug?(o=()=>{n({to:"/$org/$project",params:{org:l.slug,project:i.slug}})},e[0]=n,e[1]=l.slug,e[2]=i.slug,e[3]=o):o=e[3];let r;e[4]!==i?(r=s.jsx(Ai,{project:i}),e[4]=i,e[5]=r):r=e[5];let a;e[6]!==i.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=a):a=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ds,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=c):c=e[8];let d;return e[9]!==i.name||e[10]!==o||e[11]!==r||e[12]!==a?(d=s.jsx(xe,{children:s.jsxs(Oe,{onClick:o,tooltip:i.name,children:[r,a,c]})}),e[9]=i.name,e[10]=o,e[11]=r,e[12]=a,e[13]=d):d=e[13],d}function Oi(){const t=w.c(55),{org:e}=ze(),{data:i,isLoading:n}=dt(e.id),[l,o]=I.useState(!0),[r,a]=I.useState(!1);let c,d,m,u,f,p,h,y,j,_,g,x,v;if(t[0]!==n||t[1]!==l||t[2]!==i){v=Symbol.for("react.early_return_sentinel");e:{const L=i?.filter(Di)??[];if(n){let B;t[16]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})}),t[16]=B):B=t[16];let F;t[17]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(be,{className:"gap-0.5",children:[B,s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})]})})}),t[17]=F):F=t[17],v=F;break e}x="group/projects-section mt-2",f=Es,_=l,g=o,u=Ae,j="py-0 px-0",m=Ee,d=be,h="gap-0.5";let H;t[18]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=H):H=t[18];const T=!l&&"-rotate-90";let A;t[19]!==T?(A=P("text-muted-foreground shrink-0 transition-transform duration-200",T),t[19]=T,t[20]=A):A=t[20];let D;t[21]!==A?(D=s.jsx(Os,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[H,s.jsx(mt,{size:12,className:A})]})}),t[21]=A,t[22]=D):D=t[22];let E;t[23]===Symbol.for("react.memo_cache_sentinel")?(E=()=>a(!0),t[23]=E):E=t[23];let U;t[24]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("button",{type:"button",onClick:E,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=U):U=t[24],t[25]!==D?(y=s.jsx(xe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[D,U]})}),t[25]=D,t[26]=y):y=t[26],c=Ts,p=L.length===0?s.jsx(xe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):L.map(Ti)}t[0]=n,t[1]=l,t[2]=i,t[3]=c,t[4]=d,t[5]=m,t[6]=u,t[7]=f,t[8]=p,t[9]=h,t[10]=y,t[11]=j,t[12]=_,t[13]=g,t[14]=x,t[15]=v}else c=t[3],d=t[4],m=t[5],u=t[6],f=t[7],p=t[8],h=t[9],y=t[10],j=t[11],_=t[12],g=t[13],x=t[14],v=t[15];if(v!==Symbol.for("react.early_return_sentinel"))return v;let C;t[27]!==c||t[28]!==p?(C=s.jsx(c,{children:p}),t[27]=c,t[28]=p,t[29]=C):C=t[29];let b;t[30]!==d||t[31]!==h||t[32]!==y||t[33]!==C?(b=s.jsxs(d,{className:h,children:[y,C]}),t[30]=d,t[31]=h,t[32]=y,t[33]=C,t[34]=b):b=t[34];let N;t[35]!==m||t[36]!==b?(N=s.jsx(m,{children:b}),t[35]=m,t[36]=b,t[37]=N):N=t[37];let k;t[38]!==u||t[39]!==N||t[40]!==j?(k=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=k):k=t[41];let $;t[42]!==f||t[43]!==k||t[44]!==_||t[45]!==g?($=s.jsx(f,{open:_,onOpenChange:g,children:k}),t[42]=f,t[43]=k,t[44]=_,t[45]=g,t[46]=$):$=t[46];let z;t[47]!==$||t[48]!==x?(z=s.jsx("div",{className:x,children:$}),t[47]=$,t[48]=x,t[49]=z):z=t[49];let M;t[50]!==r?(M=s.jsx(rt,{open:r,onOpenChange:a}),t[50]=r,t[51]=M):M=t[51];let R;return t[52]!==z||t[53]!==M?(R=s.jsxs(s.Fragment,{children:[z,M]}),t[52]=z,t[53]=M,t[54]=R):R=t[54],R}function Ti(t){return s.jsx(Ei,{project:t},t.id)}function Di(t){return t.slug!==te}function Mi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(I.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Oi,{})}),t[0]=e):e=t[0],e}function Ri(t){const e=w.c(12),{onCreateProject:i}=t,n=Gs(),{locator:l}=ze();let o;e[0]!==l?(o=We.isOrgAdminProject(l),e[0]=l,e[1]=o):o=e[1];const r=o;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Qe.Skeleton,{}),e[2]=a):a=e[2];let c;e[3]!==i?(c=s.jsx(I.Suspense,{fallback:a,children:s.jsx(Qe,{onCreateProject:i})}),e[3]=i,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ii,{}),e[5]=d):d=e[5];let m;e[6]!==r?(m=r?s.jsx(Ye,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx(Mi,{})})}):null,e[6]=r,e[7]=m):m=e[7];let u;return e[8]!==n||e[9]!==c||e[10]!==m?(u=s.jsx(yt,{sections:n,header:c,footer:d,additionalContent:m}),e[8]=n,e[9]=c,e[10]=m,e[11]=u):u=e[11],u}function Li(){const t=w.c(5),i=Ze().location.href;let n;t[0]!==i?(n=i==="/login"||i.startsWith("/login?"),t[0]=i,t[1]=n):n=t[1];const l=n;let o;if(t[2]!==i||t[3]!==l){const r=l?{}:{next:i};o=s.jsx(Tt,{to:"/login",search:r,replace:!0}),t[2]=i,t[3]=l,t[4]=o}else o=t[4];return o}function Hi(t){const e=w.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(At,{children:s.jsx(nt,{})}),e[0]=n):n=e[0];let l;e[1]!==i?(l=s.jsx(Et,{children:i}),e[1]=i,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ot,{children:s.jsx(Li,{})}),e[3]=o):o=e[3];let r;return e[4]!==l?(r=s.jsxs(s.Fragment,{children:[n,l,o]}),e[4]=l,e[5]=r):r=e[5],r}function Ui(t){const e=w.c(10),{children:i,className:n}=t,[,l]=I.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[r,a]=Je(o,30);let c;e[1]!==a?(c=f=>l(()=>a(f)),e[1]=a,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=P("min-w-0",n),e[3]=n,e[4]=m):m=e[4];let u;return e[5]!==r||e[6]!==i||e[7]!==d||e[8]!==m?(u=s.jsx(xt,{defaultSize:r,minSize:20,className:m,onResize:d,children:i}),e[5]=r,e[6]=i,e[7]=d,e[8]=m,e[9]=u):u=e[9],u}function Bi(t){const e=w.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Fe.sidebarOpen(),e[0]=n):n=e[0];const[l,o]=Je(n,!0);let r;return e[1]!==i||e[2]!==o||e[3]!==l?(r=s.jsx(Js,{open:l,onOpenChange:o,children:i}),e[1]=i,e[2]=o,e[3]=l,e[4]=r):r=e[4],r}function Fi(t){const e=w.c(23),{isHomeRoute:i,onCreateProject:n}=t,[l]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[r]=Je(o,30),a=`${r}cqi`;let c;e[1]!==a?(c={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":a},e[1]=a,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=s.jsx(Ri,{onCreateProject:n}),e[3]=n,e[4]=m):m=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 f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f={overflow:"visible"},e[6]=f):f=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=l&&"rounded-tr-[0.75rem] border-r";let y;e[8]!==h?(y=P("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]=y):y=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(lt,{})}),e[10]=j):j=e[10];let _;e[11]!==y?(_=s.jsx(xt,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:y,children:j})}),e[11]=y,e[12]=_):_=e[12];let g;e[13]!==l||e[14]!==i?(g=!i&&s.jsxs(s.Fragment,{children:[s.jsx(Ms,{className:"bg-sidebar"}),s.jsx(Ui,{className:P("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Us,{})})})})]}),e[13]=l,e[14]=i,e[15]=g):g=e[15];let x;e[16]!==_||e[17]!==g?(x=s.jsx(ni,{className:"pt-1.5",style:u,children:s.jsxs(Rs,{direction:"horizontal",className:"h-full",style:f,children:[_,g]})}),e[16]=_,e[17]=g,e[18]=x):x=e[18];let v;return e[19]!==x||e[20]!==d||e[21]!==m?(v=s.jsxs(si,{className:"flex-1 bg-sidebar",style:d,children:[m,x]}),e[19]=x,e[20]=d,e[21]=m,e[22]=v):v=e[22],v}function Ki(){const{org:t,project:e}=it({strict:!1}),i=Ze(),[n,l]=I.useState(!1),[o,r]=I.useState(!1);I.useEffect(()=>{const u=f=>{Ut(f)&&f.code==="KeyK"&&(f.preventDefault(),r(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const a=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,c=e??te,{data:d}=Dt({queryKey:Mt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:u}=await Ne.organization.setActive({organizationSlug:t});return u&&localStorage.setItem(Fe.lastOrgSlug(),t),{org:u,project:{slug:c,isOrgAdmin:c===te}}},gcTime:1/0,refetchOnWindowFocus:!1});if(!d)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(St,{})})}),s.jsx(lt,{})]});if(!d.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const m={...d,project:{...d.project,slug:c,isOrgAdmin:c===te}};return s.jsxs(Rt,{...m,children:[s.jsx(Bi,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Fi,{isHomeRoute:a,onCreateProject:()=>l(!0)})})})}),s.jsx(rt,{open:n,onOpenChange:l}),s.jsx(Bs,{open:o,onOpenChange:r})]})}function Bl(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Hi,{children:s.jsx(I.Suspense,{fallback:s.jsx(nt,{}),children:s.jsx(Ki,{})})}),t[0]=e):e=t[0],e}export{Bl as default};
3
+ Email: ${i.email}`;navigator.clipboard.writeText(F),r(!0),ve.success("User info copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=a):a=e[3];const c=a,d=i.name||i.email||"U";let m;e[4]!==d||e[5]!==n?(m=s.jsx(Ie,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=m):m=e[6];const u=i.name||"User";let f;e[7]!==u?(f=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]=f):f=e[8];let p;e[9]!==m||e[10]!==f?(p=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,f]})}),e[9]=m,e[10]=f,e[11]=p):p=e[11];const h=i.name||i.email||"U";let y;e[12]!==h||e[13]!==n?(y=s.jsx(Ie,{url:n,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=n,e[14]=y):y=e[14];const j=i.name||"User";let _;e[15]!==j?(_=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=_):_=e[16];let g;e[17]!==i.email?(g=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i.email}),e[17]=i.email,e[18]=g):g=e[18];let x;e[19]!==_||e[20]!==g?(x=s.jsxs("div",{className:"flex-1 min-w-0",children:[_,g]}),e[19]=_,e[20]=g,e[21]=x):x=e[21];let v;e[22]!==o?(v=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(_s,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=v):v=e[23];let C;e[24]!==c||e[25]!==x||e[26]!==v||e[27]!==y?(C=s.jsxs(re,{onClick:c,className:"gap-2.5 group",children:[y,x,v]}),e[24]=c,e[25]=x,e[26]=v,e[27]=y,e[28]=C):C=e[28];let b;e[29]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Ue,{}),e[29]=b):b=e[29];let N;e[30]!==l?(N=()=>l("account.preferences"),e[30]=l,e[31]=N):N=e[31];let k,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=k,e[33]=$):(k=e[32],$=e[33]);let z;e[34]!==N?(z=s.jsxs(re,{className:"gap-2.5",onClick:N,children:[k,$]}),e[34]=N,e[35]=z):z=e[35];let M;e[36]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ks,{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]=M):M=e[36];let R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ws,{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 L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(zt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=L):L=e[38];let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(et,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=H):H=e[39];let T,A;e[40]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Cs,{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"})]})}),A=s.jsx(Ue,{}),e[40]=T,e[41]=A):(T=e[40],A=e[41]);let D;e[42]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs(re,{className:"gap-2.5",onClick:vi,children:[s.jsx(bt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=D):D=e[42];let E;e[43]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.178.2"]})}),e[43]=E):E=e[43];let U;e[44]!==C||e[45]!==z?(U=s.jsxs(ft,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ni,children:[C,b,z,M,R,L,H,T,A,D,E]}),e[44]=C,e[45]=z,e[46]=U):U=e[46];let B;return e[47]!==U||e[48]!==p?(B=s.jsxs(ut,{children:[p,U]}),e[47]=U,e[48]=p,e[49]=B):B=e[49],B}function vi(){return Ne.signOut()}function Ni(t){return t.preventDefault()}function St(){const t=w.c(7),{data:e}=Ne.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const i=e.user,n=i.name??void 0;let l;t[1]!==n||t[2]!==i?(l={...i,name:n},t[1]=n,t[2]=i,t[3]=l):l=t[3];const o=l,r=i.image;let a;return t[4]!==r||t[5]!==o?(a=s.jsx(ji,{user:o,userImage:r}),t[4]=r,t[5]=o,t[6]=a):a=t[6],a}function yi({invitation:t}){const[e,i]=I.useState(!1),[n,l]=I.useState(!1),o=Pt(),r=async()=>{i(!0);try{const c=await Ne.organization.acceptInvitation({invitationId:t.id});if(c.error)ve.error(c.error.message),i(!1);else{const d=await Ne.organization.setActive({organizationId:t.organizationId});ve.success("Invitation accepted!");const m=d?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{ve.error("Failed to accept invitation"),i(!1)}},a=async()=>{l(!0);try{const c=await Ne.organization.rejectInvitation({invitationId:t.id});c.error?(ve.error(c.error.message),l(!1)):(ve.success("Invitation declined"),o.invalidateQueries())}catch{ve.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:r,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(Ps,{size:14})})]})]})}function Si(){const t=I.useContext(It),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class _i extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}function ki(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ci(){const t=w.c(15),{open:e}=at(),{org:i}=ze();let n;t[0]!==i.id?(n={connectionId:Kt,orgId:i.id},t[0]=i.id,t[1]=n):n=t[1];const l=Wt(n);let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o={providerId:"deco"},t[2]=o):o=t[2];let r;t[3]!==l?(r={client:l,toolName:"AI_PROVIDER_CREDITS",toolArguments:o,staleTime:6e4,select:wi},t[3]=l,t[4]=r):r=t[4];const{data:a,isPending:c,isError:d}=As(r),m=a?.balanceCents!=null?a.balanceCents/100:null;let u;t[5]!==e?(u=()=>e("org.billing"),t[5]=e,t[6]=u):u=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(gt,{size:13,className:"text-muted-foreground/60 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Credits"})]}),t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==d||t[10]!==c?(p=c||d||m==null?s.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground/40",children:"—"}):s.jsxs("span",{className:P("text-xs font-medium tabular-nums",ki(m)),children:["$",m.toFixed(2)]}),t[8]=m,t[9]=d,t[10]=c,t[11]=p):p=t[11];let h;return t[12]!==u||t[13]!==p?(h=s.jsxs("button",{type:"button",onClick:u,className:"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",children:[f,p]}),t[12]=u,t[13]=p,t[14]=h):h=t[14],h}function wi(t){return t.structuredContent}function $i(){const t=w.c(1);if(!Zt().some(zi))return null;let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ci,{}),t[0]=n):n=t[0],n}function zi(t){return t.providerId==="deco"}function Ii(){const t=w.c(13),e=Si();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_i,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx($i,{})})}),t[0]=i):i=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(St,{})}),t[1]=n):n=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(zs,{asChild:!0,children:s.jsx(Ge,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=l):l=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let r;t[5]!==o?(r=s.jsxs("div",{className:"relative",children:[l,o]}),t[5]=o,t[6]=r):r=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let c;t[8]!==e?(c=s.jsxs($s,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Pi)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==r||t[11]!==c?(d=s.jsxs(li,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(Is,{children:[r,c]})})]})})})]}),t[10]=r,t[11]=c,t[12]=d):d=t[12],d}function Pi(t){return s.jsx(yi,{invitation:t},t.id)}function Ai(t){const e=w.c(11),{project:i}=t,n=i.ui?.themeColor??"#60a5fa";if(i.ui?.icon){let c;return e[0]!==i.ui.icon?(c=s.jsx("img",{src:i.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=i.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==n?(l={backgroundColor:n},e[2]=n,e[3]=l):l=e[3];let o;e[4]!==i.name?(o=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=o):o=e[5];let r;e[6]!==o?(r=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=r):r=e[7];let a;return e[8]!==l||e[9]!==r?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:r}),e[8]=l,e[9]=r,e[10]=a):a=e[10],a}function Ei(t){const e=w.c(14),{project:i}=t,n=Xe(),{org:l}=ze();let o;e[0]!==n||e[1]!==l.slug||e[2]!==i.slug?(o=()=>{n({to:"/$org/$project",params:{org:l.slug,project:i.slug}})},e[0]=n,e[1]=l.slug,e[2]=i.slug,e[3]=o):o=e[3];let r;e[4]!==i?(r=s.jsx(Ai,{project:i}),e[4]=i,e[5]=r):r=e[5];let a;e[6]!==i.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=a):a=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ds,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=c):c=e[8];let d;return e[9]!==i.name||e[10]!==o||e[11]!==r||e[12]!==a?(d=s.jsx(xe,{children:s.jsxs(Oe,{onClick:o,tooltip:i.name,children:[r,a,c]})}),e[9]=i.name,e[10]=o,e[11]=r,e[12]=a,e[13]=d):d=e[13],d}function Oi(){const t=w.c(55),{org:e}=ze(),{data:i,isLoading:n}=dt(e.id),[l,o]=I.useState(!0),[r,a]=I.useState(!1);let c,d,m,u,f,p,h,y,j,_,g,x,v;if(t[0]!==n||t[1]!==l||t[2]!==i){v=Symbol.for("react.early_return_sentinel");e:{const L=i?.filter(Di)??[];if(n){let B;t[16]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})}),t[16]=B):B=t[16];let F;t[17]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(be,{className:"gap-0.5",children:[B,s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})]})})}),t[17]=F):F=t[17],v=F;break e}x="group/projects-section mt-2",f=Es,_=l,g=o,u=Ae,j="py-0 px-0",m=Ee,d=be,h="gap-0.5";let H;t[18]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=H):H=t[18];const T=!l&&"-rotate-90";let A;t[19]!==T?(A=P("text-muted-foreground shrink-0 transition-transform duration-200",T),t[19]=T,t[20]=A):A=t[20];let D;t[21]!==A?(D=s.jsx(Os,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[H,s.jsx(mt,{size:12,className:A})]})}),t[21]=A,t[22]=D):D=t[22];let E;t[23]===Symbol.for("react.memo_cache_sentinel")?(E=()=>a(!0),t[23]=E):E=t[23];let U;t[24]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("button",{type:"button",onClick:E,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=U):U=t[24],t[25]!==D?(y=s.jsx(xe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[D,U]})}),t[25]=D,t[26]=y):y=t[26],c=Ts,p=L.length===0?s.jsx(xe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):L.map(Ti)}t[0]=n,t[1]=l,t[2]=i,t[3]=c,t[4]=d,t[5]=m,t[6]=u,t[7]=f,t[8]=p,t[9]=h,t[10]=y,t[11]=j,t[12]=_,t[13]=g,t[14]=x,t[15]=v}else c=t[3],d=t[4],m=t[5],u=t[6],f=t[7],p=t[8],h=t[9],y=t[10],j=t[11],_=t[12],g=t[13],x=t[14],v=t[15];if(v!==Symbol.for("react.early_return_sentinel"))return v;let C;t[27]!==c||t[28]!==p?(C=s.jsx(c,{children:p}),t[27]=c,t[28]=p,t[29]=C):C=t[29];let b;t[30]!==d||t[31]!==h||t[32]!==y||t[33]!==C?(b=s.jsxs(d,{className:h,children:[y,C]}),t[30]=d,t[31]=h,t[32]=y,t[33]=C,t[34]=b):b=t[34];let N;t[35]!==m||t[36]!==b?(N=s.jsx(m,{children:b}),t[35]=m,t[36]=b,t[37]=N):N=t[37];let k;t[38]!==u||t[39]!==N||t[40]!==j?(k=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=k):k=t[41];let $;t[42]!==f||t[43]!==k||t[44]!==_||t[45]!==g?($=s.jsx(f,{open:_,onOpenChange:g,children:k}),t[42]=f,t[43]=k,t[44]=_,t[45]=g,t[46]=$):$=t[46];let z;t[47]!==$||t[48]!==x?(z=s.jsx("div",{className:x,children:$}),t[47]=$,t[48]=x,t[49]=z):z=t[49];let M;t[50]!==r?(M=s.jsx(rt,{open:r,onOpenChange:a}),t[50]=r,t[51]=M):M=t[51];let R;return t[52]!==z||t[53]!==M?(R=s.jsxs(s.Fragment,{children:[z,M]}),t[52]=z,t[53]=M,t[54]=R):R=t[54],R}function Ti(t){return s.jsx(Ei,{project:t},t.id)}function Di(t){return t.slug!==te}function Mi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(I.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Oi,{})}),t[0]=e):e=t[0],e}function Ri(t){const e=w.c(12),{onCreateProject:i}=t,n=Gs(),{locator:l}=ze();let o;e[0]!==l?(o=We.isOrgAdminProject(l),e[0]=l,e[1]=o):o=e[1];const r=o;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Qe.Skeleton,{}),e[2]=a):a=e[2];let c;e[3]!==i?(c=s.jsx(I.Suspense,{fallback:a,children:s.jsx(Qe,{onCreateProject:i})}),e[3]=i,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ii,{}),e[5]=d):d=e[5];let m;e[6]!==r?(m=r?s.jsx(Ye,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx(Mi,{})})}):null,e[6]=r,e[7]=m):m=e[7];let u;return e[8]!==n||e[9]!==c||e[10]!==m?(u=s.jsx(yt,{sections:n,header:c,footer:d,additionalContent:m}),e[8]=n,e[9]=c,e[10]=m,e[11]=u):u=e[11],u}function Li(){const t=w.c(5),i=Ze().location.href;let n;t[0]!==i?(n=i==="/login"||i.startsWith("/login?"),t[0]=i,t[1]=n):n=t[1];const l=n;let o;if(t[2]!==i||t[3]!==l){const r=l?{}:{next:i};o=s.jsx(Tt,{to:"/login",search:r,replace:!0}),t[2]=i,t[3]=l,t[4]=o}else o=t[4];return o}function Hi(t){const e=w.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(At,{children:s.jsx(nt,{})}),e[0]=n):n=e[0];let l;e[1]!==i?(l=s.jsx(Et,{children:i}),e[1]=i,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ot,{children:s.jsx(Li,{})}),e[3]=o):o=e[3];let r;return e[4]!==l?(r=s.jsxs(s.Fragment,{children:[n,l,o]}),e[4]=l,e[5]=r):r=e[5],r}function Ui(t){const e=w.c(10),{children:i,className:n}=t,[,l]=I.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[r,a]=Je(o,30);let c;e[1]!==a?(c=f=>l(()=>a(f)),e[1]=a,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=P("min-w-0",n),e[3]=n,e[4]=m):m=e[4];let u;return e[5]!==r||e[6]!==i||e[7]!==d||e[8]!==m?(u=s.jsx(xt,{defaultSize:r,minSize:20,className:m,onResize:d,children:i}),e[5]=r,e[6]=i,e[7]=d,e[8]=m,e[9]=u):u=e[9],u}function Bi(t){const e=w.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Fe.sidebarOpen(),e[0]=n):n=e[0];const[l,o]=Je(n,!0);let r;return e[1]!==i||e[2]!==o||e[3]!==l?(r=s.jsx(Js,{open:l,onOpenChange:o,children:i}),e[1]=i,e[2]=o,e[3]=l,e[4]=r):r=e[4],r}function Fi(t){const e=w.c(23),{isHomeRoute:i,onCreateProject:n}=t,[l]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[r]=Je(o,30),a=`${r}cqi`;let c;e[1]!==a?(c={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":a},e[1]=a,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=s.jsx(Ri,{onCreateProject:n}),e[3]=n,e[4]=m):m=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 f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f={overflow:"visible"},e[6]=f):f=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=l&&"rounded-tr-[0.75rem] border-r";let y;e[8]!==h?(y=P("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]=y):y=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(lt,{})}),e[10]=j):j=e[10];let _;e[11]!==y?(_=s.jsx(xt,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:y,children:j})}),e[11]=y,e[12]=_):_=e[12];let g;e[13]!==l||e[14]!==i?(g=!i&&s.jsxs(s.Fragment,{children:[s.jsx(Ms,{className:"bg-sidebar"}),s.jsx(Ui,{className:P("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Us,{})})})})]}),e[13]=l,e[14]=i,e[15]=g):g=e[15];let x;e[16]!==_||e[17]!==g?(x=s.jsx(ni,{className:"pt-1.5",style:u,children:s.jsxs(Rs,{direction:"horizontal",className:"h-full",style:f,children:[_,g]})}),e[16]=_,e[17]=g,e[18]=x):x=e[18];let v;return e[19]!==x||e[20]!==d||e[21]!==m?(v=s.jsxs(si,{className:"flex-1 bg-sidebar",style:d,children:[m,x]}),e[19]=x,e[20]=d,e[21]=m,e[22]=v):v=e[22],v}function Ki(){const{org:t,project:e}=it({strict:!1}),i=Ze(),[n,l]=I.useState(!1),[o,r]=I.useState(!1);I.useEffect(()=>{const u=f=>{Ut(f)&&f.code==="KeyK"&&(f.preventDefault(),r(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const a=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,c=e??te,{data:d}=Dt({queryKey:Mt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:u}=await Ne.organization.setActive({organizationSlug:t});return u&&localStorage.setItem(Fe.lastOrgSlug(),t),{org:u,project:{slug:c,isOrgAdmin:c===te}}},gcTime:1/0,refetchOnWindowFocus:!1});if(!d)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(St,{})})}),s.jsx(lt,{})]});if(!d.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const m={...d,project:{...d.project,slug:c,isOrgAdmin:c===te}};return s.jsxs(Rt,{...m,children:[s.jsx(Bi,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Fi,{isHomeRoute:a,onCreateProject:()=>l(!0)})})})}),s.jsx(rt,{open:n,onOpenChange:l}),s.jsx(Bs,{open:o,onOpenChange:r})]})}function Bl(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Hi,{children:s.jsx(I.Suspense,{fallback:s.jsx(nt,{}),children:s.jsx(Ki,{})})}),t[0]=e):e=t[0],e}export{Bl as default};
@@ -1 +1 @@
1
- import{c as E,u as q,j as n,w as F,K as v,r as k,v as _,B as O}from"./index-DcxE8oe_.js";import{u as L}from"./useQuery-CEE9SUlS.js";import{u as R}from"./useMutation-CV3IN68C.js";import{S as V}from"./switch-CmREXk8C.js";import{I as A}from"./input-DPpAbHbD.js";import{u as K,a as U}from"./constants-BCt7c81T.js";import{g as J}from"./types-CPj3Y6i2.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,v as _,B as O}from"./index-NjMxPJgF.js";import{u as L}from"./useQuery-BYBCFxgb.js";import{u as R}from"./useMutation-68NxhXCf.js";import{S as V}from"./switch-CA_oYDia.js";import{I as A}from"./input-B89sozd8.js";import{u as K,a as U}from"./constants-D7qXOYRn.js";import{g as J}from"./types-BHeMLyAV.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,D as c,j as i}from"./index-DcxE8oe_.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,D as c,j as i}from"./index-NjMxPJgF.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,D as d,a0 as m,j as a}from"./index-DcxE8oe_.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,D as d,a0 as m,j as a}from"./index-NjMxPJgF.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-DcxE8oe_.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-NjMxPJgF.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,a4 as C,a5 as y,a2 as T,a7 as I,ab as M,ac as H,aa as z,c as A,D as g}from"./index-DcxE8oe_.js";var m="Switch",[U]=z(m),[q,D]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(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:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=D(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(r){return r?"checked":"unchecked"}var O=E,$=R;function W(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx(O,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
1
+ import{r as c,j as i,a4 as C,a5 as y,a2 as T,a7 as I,ab as M,ac as H,aa as z,c as A,D as g}from"./index-NjMxPJgF.js";var m="Switch",[U]=z(m),[q,D]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(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:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=D(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(r){return r?"checked":"unchecked"}var O=E,$=R;function W(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx(O,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
@@ -1 +1 @@
1
- import{c as r,D as i,j as c}from"./index-DcxE8oe_.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{d as T,b as a,p as b,m as c,f as d,u as e};
1
+ import{c as r,D as i,j as c}from"./index-NjMxPJgF.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{d as T,b as a,p as b,m as c,f as d,u as e};
@@ -1 +1 @@
1
- import{r as p,j as d,a6 as k,a4 as v,a7 as T,a8 as y,aa as M,a1 as P,a2 as S,af as F,a3 as V,a9 as D,c as x,D as g}from"./index-DcxE8oe_.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(v.div,{dir:u,"data-orientation":o,...f,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(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(v.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(v.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(v.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const 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 J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,J as a,U as b,O as c};
1
+ import{r as p,j as d,a6 as k,a4 as v,a7 as T,a8 as y,aa as M,a1 as P,a2 as S,af as F,a3 as V,a9 as D,c as x,D as g}from"./index-NjMxPJgF.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(v.div,{dir:u,"data-orientation":o,...f,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(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(v.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(v.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(v.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const 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 J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,J as a,U as b,O as c};
@@ -1,4 +1,4 @@
1
- import{r as P,c as W,g as _0,bR as Mr,w as ln,u as ot,K as ht,v as gt,f as Yc,z as la,j as f,E as Pr,o as un,q as A0,t as x0,B as Ce,n as Ar,D as ie,ay as oy,ad as v0,ar as N0,cI as ly,bh as I0,cJ as uy,cK as ft,cL as ua,cM as cy,cN as ca,cO as dy,cP as py,cQ as fy,cR as my,x as gy,cS as hy,cT as by,cU as Ey,cV as Ty,e as Sy,O as yy,bO as kt,cF as xr,ae as _y}from"./index-DcxE8oe_.js";import{A as Ay,d as Kc,e as xy,f as ve,l as vy,g as Ny,b as R0,h as nn,i as Iy,u as Vn,a as Wn}from"./context-BTMVzdan.js";import{b as Yn,P as Kn,a as Xn}from"./popover-CNIkv0WT.js";import{S as xe}from"./skeleton-CNgs5GJt.js";import{S as Fr}from"./spinner-BZdAS5i2.js";import{T as rt,a as at,b as it,c as Xc}from"./tooltip-CXZH0tSC.js";import{u as qt,a as Zc,i as vr,d as Ry}from"./constants-BCt7c81T.js";import{u as Cy,g as C0,l as zd}from"./use-mcp-prompts-C4X4lEEg.js";import{c as k0,b as ky,e as wy,a as w0,D as O0,f as Oy}from"./dialog-BDa2Gsq9.js";import{a as Tc,F as Br,b as Ur,c as Ly,d as Hr,f as jr}from"./form-BWoxqZfk.js";import{I as L0}from"./input-DPpAbHbD.js";import{N as D0,R as M0,d as P0,f as F0,P as Sc,g as Dy,h as My,S as Py,u as B0,j as Fy,i as U0,E as H0,e as By}from"./index-CTjqFNkw.js";import{s as Uy,c as Hy,a as jy,e as qy}from"./usage-BW6ztpN6.js";import{i as $y}from"./ArrowUp-BtIkmj4Y.js";import{t as yc}from"./ChevronDown-DElgod-p.js";import{i as j0}from"./Edit01-BaPedGGl.js";import{i as zy}from"./Lock01-WwvDQaaT.js";import{t as q0}from"./Users03-CQa5jfkV.js";import{a as Gy,t as $0,i as z0,u as G0}from"./use-copy-sxHnzQ3E.js";import{i as Qc}from"./AlertCircle-CI8iQIN4.js";import{i as Vy}from"./X-CaaFSPD_.js";import{c as V0,S as W0,d as Y0,a as K0,b as X0}from"./select-DeNgR918.js";import{u as Z0,i as Wy,P as Yy,a as Ky}from"./org-ai-providers-CrQ3OeB5.js";import{i as Q0}from"./ArrowLeft-BaV7db3X.js";import{c as Xy,b as Zy}from"./tabs-BeYHPY-1.js";import{B as Qy}from"./badge-B_BTuJZe.js";import{a as Jy,i as J0,b as e_,c as t_,C as n_}from"./collapsible-DILfwVxb.js";import{i as cn}from"./Check-GOz4_bBS.js";import{i as r_}from"./Code01-CDxb4LVl.js";import{C as a_}from"./checkbox-B_91sMwd.js";import{i as i_}from"./AlignLeft-D1a9nQq5.js";import{a as s_}from"./Image01-BwGUDEUi.js";import{i as o_}from"./Key01-BZkaWvm5.js";import{s as l_}from"./RefreshCcw01-DJsZi8Hz.js";import{i as Jc}from"./SearchMd-CKp0BoPW.js";import{t as u_}from"./Settings01-DunsMQ-m.js";import{a as c_}from"./Tool01-Delk_MGO.js";import{b as ed,u as e1,a as t1,g as td}from"./ai-providers-logos-BWU0RfRJ.js";import{a as d_,V as n1}from"./select-virtual-mcp-CFDIRCp8.js";import{l as Gd,r as p_}from"./use-mcp-resources-DoUnZI9j.js";import{i as f_}from"./ChevronRight-Ys0vr-YD.js";import{a as qr}from"./Copy01-DhAVspEC.js";import{m as m_}from"./marked.esm-BaswSlok.js";import{c as g_}from"./content-blocks-o63cs2vh.js";import{M as h_}from"./mcp-app-renderer-DgOOTmoQ.js";import{g as r1}from"./types-CPj3Y6i2.js";import{s as b_}from"./Eye-BgAytXDm.js";import{s as E_}from"./Globe02-4oAOo4_d.js";import{s as a1}from"./LayersTwo01-D9dHuPjU.js";import{s as T_}from"./XClose-Dey3r3af.js";import{u as S_,a as y_}from"./index-DZ6p-ZXx.js";import{I as __}from"./integration-icon-6jcHFHZV.js";import{s as Vd}from"./Clock-DRICOB0c.js";import{s as A_}from"./Trash01-BtiNjuw3.js";import{b as x_}from"./use-virtual-mcp-DfPJ-WDb.js";import{b as nd,c as v_,a as N_,e as I_}from"./use-collections-CObsJD7p.js";import{u as R_}from"./useSuspenseInfiniteQuery-B7NkSjI9.js";import{i as C_}from"./CheckCircle-DosFvCW2.js";import{i as k_}from"./Loading01-B85tVuIU.js";const i1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));i1.displayName="Activity";const s1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));s1.displayName="Atom02";const o1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));o1.displayName="Attachment01";const l1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));l1.displayName="ChevronSelectorVertical";const rd=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));rd.displayName="Edit02";const u1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));u1.displayName="Hourglass03";const c1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));c1.displayName="Lightbulb01";const d1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));d1.displayName="Placeholder";const p1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));p1.displayName="ShieldTick";const $r=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));$r.displayName="Stars01";const f1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));f1.displayName="Target04";function w_(t){const e=W.c(10);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const r=_0(n);let a;if(e[1]!==r.collectionName||e[2]!==r.connectionId||e[3]!==r.itemId||e[4]!==t){a=[],t&&a.push(`### Selected Agent
1
+ import{r as P,c as W,g as _0,bR as Mr,w as ln,u as ot,K as ht,v as gt,f as Yc,z as la,j as f,E as Pr,o as un,q as A0,t as x0,B as Ce,n as Ar,D as ie,ay as oy,ad as v0,ar as N0,cI as ly,bh as I0,cJ as uy,cK as ft,cL as ua,cM as cy,cN as ca,cO as dy,cP as py,cQ as fy,cR as my,x as gy,cS as hy,cT as by,cU as Ey,cV as Ty,e as Sy,O as yy,bO as kt,cF as xr,ae as _y}from"./index-NjMxPJgF.js";import{A as Ay,d as Kc,e as xy,f as ve,l as vy,g as Ny,b as R0,h as nn,i as Iy,u as Vn,a as Wn}from"./context-DxQMlFKC.js";import{b as Yn,P as Kn,a as Xn}from"./popover-Br8QkMK3.js";import{S as xe}from"./skeleton-Cjm8s7CT.js";import{S as Fr}from"./spinner-Dzx7B3Jl.js";import{T as rt,a as at,b as it,c as Xc}from"./tooltip-BJMSu0c2.js";import{u as qt,a as Zc,i as vr,d as Ry}from"./constants-D7qXOYRn.js";import{u as Cy,g as C0,l as zd}from"./use-mcp-prompts-Bel4H4rh.js";import{c as k0,b as ky,e as wy,a as w0,D as O0,f as Oy}from"./dialog-ChXYvlDt.js";import{a as Tc,F as Br,b as Ur,c as Ly,d as Hr,f as jr}from"./form-CaFPTMVC.js";import{I as L0}from"./input-B89sozd8.js";import{N as D0,R as M0,d as P0,f as F0,P as Sc,g as Dy,h as My,S as Py,u as B0,j as Fy,i as U0,E as H0,e as By}from"./index-YRudAQp7.js";import{s as Uy,c as Hy,a as jy,e as qy}from"./usage-BW6ztpN6.js";import{i as $y}from"./ArrowUp-DoIG5eQh.js";import{t as yc}from"./ChevronDown-BIRGQoZ5.js";import{i as j0}from"./Edit01-CoeKfJ-u.js";import{i as zy}from"./Lock01-CnZITIks.js";import{t as q0}from"./Users03-Bv-hUQkl.js";import{a as Gy,t as $0,i as z0,u as G0}from"./use-copy-xhdji_Bl.js";import{i as Qc}from"./AlertCircle-12chRuly.js";import{i as Vy}from"./X-LzehymHS.js";import{c as V0,S as W0,d as Y0,a as K0,b as X0}from"./select-Dx3T3-4n.js";import{u as Z0,i as Wy,P as Yy,a as Ky}from"./org-ai-providers-DaYyItUL.js";import{i as Q0}from"./ArrowLeft-erI8s3G2.js";import{c as Xy,b as Zy}from"./tabs-BSOe8gLq.js";import{B as Qy}from"./badge-DtRom7JO.js";import{a as Jy,i as J0,b as e_,c as t_,C as n_}from"./collapsible-BtjeaBAE.js";import{i as cn}from"./Check-DW8AVFkq.js";import{i as r_}from"./Code01-YGq5QwlZ.js";import{C as a_}from"./checkbox-B1rexahu.js";import{i as i_}from"./AlignLeft-_LT9deOt.js";import{a as s_}from"./Image01-DjoSkYp_.js";import{i as o_}from"./Key01-qNySmY39.js";import{s as l_}from"./RefreshCcw01-B_NTitRE.js";import{i as Jc}from"./SearchMd-eZWeU0sP.js";import{t as u_}from"./Settings01-ClPVpLPy.js";import{a as c_}from"./Tool01-D1m8i7Ez.js";import{b as ed,u as e1,a as t1,g as td}from"./ai-providers-logos-CCp39UCk.js";import{a as d_,V as n1}from"./select-virtual-mcp-BS537pmy.js";import{l as Gd,r as p_}from"./use-mcp-resources-qGdymfRz.js";import{i as f_}from"./ChevronRight-DsjLlugM.js";import{a as qr}from"./Copy01-DkcjIGiS.js";import{m as m_}from"./marked.esm-BaswSlok.js";import{c as g_}from"./content-blocks-o63cs2vh.js";import{M as h_}from"./mcp-app-renderer-By1mQEU9.js";import{g as r1}from"./types-BHeMLyAV.js";import{s as b_}from"./Eye-hBqNQHpc.js";import{s as E_}from"./Globe02-wRhoc1N5.js";import{s as a1}from"./LayersTwo01-dfSlQT0y.js";import{s as T_}from"./XClose-CcNXqPQc.js";import{u as S_,a as y_}from"./index-De1iYnQy.js";import{I as __}from"./integration-icon-BPVDVJvP.js";import{s as Vd}from"./Clock-D4xJnA3P.js";import{s as A_}from"./Trash01-B_4PTwjI.js";import{b as x_}from"./use-virtual-mcp-BP6aaUzw.js";import{b as nd,c as v_,a as N_,e as I_}from"./use-collections-C0cYiFfV.js";import{u as R_}from"./useSuspenseInfiniteQuery-X3jXt04i.js";import{i as C_}from"./CheckCircle-hBpanOsI.js";import{i as k_}from"./Loading01-Bb8FCosd.js";const i1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));i1.displayName="Activity";const s1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));s1.displayName="Atom02";const o1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));o1.displayName="Attachment01";const l1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));l1.displayName="ChevronSelectorVertical";const rd=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));rd.displayName="Edit02";const u1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));u1.displayName="Hourglass03";const c1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));c1.displayName="Lightbulb01";const d1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));d1.displayName="Placeholder";const p1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));p1.displayName="ShieldTick";const $r=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));$r.displayName="Stars01";const f1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));f1.displayName="Target04";function w_(t){const e=W.c(10);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const r=_0(n);let a;if(e[1]!==r.collectionName||e[2]!==r.connectionId||e[3]!==r.itemId||e[4]!==t){a=[],t&&a.push(`### Selected Agent
2
2
  - ID: ${t}`);let i;e[6]!==r.collectionName||e[7]!==r.connectionId||e[8]!==r.itemId?(i=[],r.connectionId&&i.push(`- Connection ID: ${r.connectionId}`),r.collectionName&&i.push(`- Collection: ${r.collectionName}`),r.itemId&&i.push(`- Item ID: ${r.itemId}`),e[6]=r.collectionName,e[7]=r.connectionId,e[8]=r.itemId,e[9]=i):i=e[9],i.length>0&&a.push(`### Current Resource
3
3
  The user is viewing the following resource:
4
4
  ${i.join(`
@@ -0,0 +1 @@
1
+ import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index-NjMxPJgF.js";import{T as h}from"./tasks-panel-BJ3TfA-_.js";import{P as e}from"./index-De1iYnQy.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-C2RG4nAQ.js";import{i as B}from"./Loading01-Bb8FCosd.js";import{u as S}from"./context-DxQMlFKC.js";import"./task-status-DYx9R7EL.js";import"./popover-Br8QkMK3.js";import"./skeleton-Cjm8s7CT.js";import"./spinner-Dzx7B3Jl.js";import"./tooltip-BJMSu0c2.js";import"./index-CqyqI90F.js";import"./constants-D7qXOYRn.js";import"./use-mcp-prompts-Bel4H4rh.js";import"./useQuery-BYBCFxgb.js";import"./dialog-ChXYvlDt.js";import"./X-LzehymHS.js";import"./form-CaFPTMVC.js";import"./label-DkiEYJcU.js";import"./input-B89sozd8.js";import"./index-YRudAQp7.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-DoIG5eQh.js";import"./ChevronDown-BIRGQoZ5.js";import"./Edit01-CoeKfJ-u.js";import"./Lock01-CnZITIks.js";import"./Users03-Bv-hUQkl.js";import"./use-copy-xhdji_Bl.js";import"./AlertCircle-12chRuly.js";import"./select-Dx3T3-4n.js";import"./ChevronUp-Bi3NMXzv.js";import"./Check-DW8AVFkq.js";import"./org-ai-providers-DaYyItUL.js";import"./useMutation-68NxhXCf.js";import"./EyeOff-CJoTkAtN.js";import"./Eye-hBqNQHpc.js";import"./Key01-qNySmY39.js";import"./Trash01-B_4PTwjI.js";import"./card-B8qDZGCZ.js";import"./toggle-group-DlZGDyPQ.js";import"./avatar-B2yArl-q.js";import"./ai-providers-logos-CCp39UCk.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./ArrowLeft-erI8s3G2.js";import"./tabs-BSOe8gLq.js";import"./badge-DtRom7JO.js";import"./collapsible-BtjeaBAE.js";import"./index-yiVP4brl.js";import"./Code01-YGq5QwlZ.js";import"./checkbox-B1rexahu.js";import"./AlignLeft-_LT9deOt.js";import"./Image01-DjoSkYp_.js";import"./RefreshCcw01-B_NTitRE.js";import"./SearchMd-eZWeU0sP.js";import"./Settings01-ClPVpLPy.js";import"./Tool01-D1m8i7Ez.js";import"./select-virtual-mcp-BS537pmy.js";import"./integration-icon-BPVDVJvP.js";import"./Container-DHyMOW_p.js";import"./use-virtual-mcp-BP6aaUzw.js";import"./use-collections-C0cYiFfV.js";import"./use-create-virtual-mcp-B7odZ_c3.js";import"./use-mcp-resources-qGdymfRz.js";import"./ChevronRight-DsjLlugM.js";import"./Copy01-DkcjIGiS.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-By1mQEU9.js";import"./types-BHeMLyAV.js";import"./Globe02-wRhoc1N5.js";import"./LayersTwo01-dfSlQT0y.js";import"./XClose-CcNXqPQc.js";import"./Clock-D4xJnA3P.js";import"./useSuspenseInfiniteQuery-X3jXt04i.js";import"./infiniteQueryObserver-JZ0YxCW-.js";import"./CheckCircle-hBpanOsI.js";import"./collection-search-BYV7N3mr.js";import"./user-iDZRuimU.js";import"./format-time-CMKyl-GC.js";import"./Plus-CajZ9VfC.js";import"./empty-state-xIvMMy-_.js";import"./dropdown-menu-BxlQMXgW.js";import"./decopilot-events-Brt4gAR6.js";import"./index-YL7q5tyF.js";function v(){const t=n.c(8),{org:o,project:s}=x(),a=j(),{switchToTask:c}=S();let i;t[0]!==a||t[1]!==o.slug||t[2]!==s.slug||t[3]!==c?(i=async u=>{await c(u),a({to:"/$org/$project",params:{org:o.slug,project:s.slug}})},t[0]=a,t[1]=o.slug,t[2]=s.slug,t[3]=c,t[4]=i):i=t[4];const l=i;let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(e.Header,{children:r.jsx(e.Header.Left,{children:r.jsx(g,{children:r.jsx(b,{children:r.jsx(T,{children:r.jsx(k,{children:"Tasks"})})})})})}),t[5]=m):m=t[5];let p;return t[6]!==l?(p=r.jsxs(e,{children:[m,r.jsx(e.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(h,{onTaskSelect:l})})})]}),t[6]=l,t[7]=p):p=t[7],p}function or(){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{or as default};