@decocms/mesh 2.124.0 → 2.125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/client/assets/{AlertCircle-FqZvtfh1.js → AlertCircle-BzYW4X7z.js} +1 -1
  2. package/dist/client/assets/{AlertOctagon-raXiOXHj.js → AlertOctagon-CUysWl_m.js} +1 -1
  3. package/dist/client/assets/{AlertTriangle-Cag6cydu.js → AlertTriangle-DniGvpwb.js} +1 -1
  4. package/dist/client/assets/{ArrowDown-BzwwIvol.js → ArrowDown-B35oswmj.js} +1 -1
  5. package/dist/client/assets/{ArrowLeft-CHSuXHTI.js → ArrowLeft-dS1h2Fqu.js} +1 -1
  6. package/dist/client/assets/{ArrowUp-lkpB-gsw.js → ArrowUp-G8RCE5_O.js} +1 -1
  7. package/dist/client/assets/{Check-BEIYk4IG.js → Check-Bv0pZ3gl.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-BwIxyhQy.js → CheckCircle-lzDHXhkH.js} +1 -1
  9. package/dist/client/assets/{CheckDone01-Duh5ZNi_.js → CheckDone01-BrxNvWbF.js} +1 -1
  10. package/dist/client/assets/{CheckVerified02-DFKFrqtt.js → CheckVerified02-6wwLRSRQ.js} +1 -1
  11. package/dist/client/assets/{ChevronDown-DDsgD0_a.js → ChevronDown-CggIFEVQ.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-dj0VUAfs.js → ChevronRight-DgAfR8pA.js} +1 -1
  13. package/dist/client/assets/{Clock-Dv-gTw8O.js → Clock-IA7N95Qq.js} +1 -1
  14. package/dist/client/assets/{Code01-DbWG3kai.js → Code01-DP2jwP0n.js} +1 -1
  15. package/dist/client/assets/{Container-BY7Dg1ME.js → Container-jfv9L6Hc.js} +1 -1
  16. package/dist/client/assets/{Copy01-BpXeBtQY.js → Copy01-Dq7Edhtu.js} +1 -1
  17. package/dist/client/assets/{Dataflow03-Ce5PVi3u.js → Dataflow03-C6KAN8vb.js} +1 -1
  18. package/dist/client/assets/{DotsHorizontal--qP7BuAi.js → DotsHorizontal-CQ-MbYsC.js} +1 -1
  19. package/dist/client/assets/{DotsVertical-_M8uWFPN.js → DotsVertical-PhooMqUv.js} +1 -1
  20. package/dist/client/assets/{Download01-Cvq7FqwC.js → Download01-CA9RmYjX.js} +1 -1
  21. package/dist/client/assets/{Edit01-BOdZHKPa.js → Edit01-DRruZKzG.js} +1 -1
  22. package/dist/client/assets/{Eye-D_CQVe6k.js → Eye-B9ZDOUkE.js} +1 -1
  23. package/dist/client/assets/{File02-BtCmWw9V.js → File02-B2t2I1sM.js} +1 -1
  24. package/dist/client/assets/{File06-D2nPQ2vd.js → File06-2US99J_V.js} +1 -1
  25. package/dist/client/assets/{FilterLines-CeQtwyiF.js → FilterLines-BFeSNY4D.js} +1 -1
  26. package/dist/client/assets/{Globe01-BUNBHHR9.js → Globe01-Dxe6Kj1c.js} +1 -1
  27. package/dist/client/assets/{Globe02-DXh1wFnz.js → Globe02-BPmEw10H.js} +1 -1
  28. package/dist/client/assets/{Grid01-DDvgvRE8.js → Grid01-CJW4ZLO5.js} +1 -1
  29. package/dist/client/assets/{Hash02-CCi87yL-.js → Hash02-CIZbsu7P.js} +1 -1
  30. package/dist/client/assets/{Home02-WM8fzzhX.js → Home02-Doo3wLuN.js} +1 -1
  31. package/dist/client/assets/{Image01-ToJS21L5.js → Image01-C9h8llDV.js} +1 -1
  32. package/dist/client/assets/{Inbox01-Dl3sNTM-.js → Inbox01-BweXezQd.js} +1 -1
  33. package/dist/client/assets/{InfoCircle-CHNw8w2I.js → InfoCircle-DBbArWGV.js} +1 -1
  34. package/dist/client/assets/{Key01-CBasGMu5.js → Key01-CfL5jY3W.js} +1 -1
  35. package/dist/client/assets/{LinkExternal01-BIouwr8D.js → LinkExternal01-DAvzaXYE.js} +1 -1
  36. package/dist/client/assets/{List-iNTJ6fUY.js → List-sG42OZ_v.js} +1 -1
  37. package/dist/client/assets/{Loading01-BFMhWWtD.js → Loading01-BHMOj-H5.js} +1 -1
  38. package/dist/client/assets/{Lock01-C4Sc75k7.js → Lock01-CQ3bhGvR.js} +1 -1
  39. package/dist/client/assets/{Pin01-BE9Oh0sU.js → Pin01-8MTlfWD2.js} +1 -1
  40. package/dist/client/assets/{Play-gsrF7xxW.js → Play-APj1Lxit.js} +1 -1
  41. package/dist/client/assets/{Plus-Ck954sGm.js → Plus-DNqvDLOK.js} +1 -1
  42. package/dist/client/assets/{RefreshCcw01-zTyzcouM.js → RefreshCcw01-4dzpBOob.js} +1 -1
  43. package/dist/client/assets/{RefreshCw01-DbiZ19Ml.js → RefreshCw01-DHXbMDcX.js} +1 -1
  44. package/dist/client/assets/{Rows03-B0JH9Ohl.js → Rows03-Cdgrgsit.js} +1 -1
  45. package/dist/client/assets/{Save01-CGYgsRh8.js → Save01-D-T2SbCx.js} +1 -1
  46. package/dist/client/assets/{SearchMd-Dvn1Eo76.js → SearchMd-BLcaRHQs.js} +1 -1
  47. package/dist/client/assets/{Settings01-CE-2gHzf.js → Settings01-DKXbh8uh.js} +1 -1
  48. package/dist/client/assets/{Shield01-BB8IGqoD.js → Shield01-B89AcbSX.js} +1 -1
  49. package/dist/client/assets/{Terminal-DQESGxaj.js → Terminal-BblMM2fp.js} +1 -1
  50. package/dist/client/assets/{Trash01-BC7PAlKV.js → Trash01-CkTOgej8.js} +1 -1
  51. package/dist/client/assets/{Upload01-CASznv9t.js → Upload01-gcuuVZ2S.js} +1 -1
  52. package/dist/client/assets/{Users03-DJ0q7ZN3.js → Users03-C1B58zTV.js} +1 -1
  53. package/dist/client/assets/{XCircle-JhpX2IQK.js → XCircle-DneNZUk0.js} +1 -1
  54. package/dist/client/assets/{XClose-Cpw_0BW6.js → XClose-Dgr_gyyv.js} +1 -1
  55. package/dist/client/assets/{agent-connections-preview-Dhs8DGJ9.js → agent-connections-preview-Dq0jl9Fh.js} +1 -1
  56. package/dist/client/assets/{agent-detail-C8HmsASY.js → agent-detail-BNn3Uyo0.js} +1 -1
  57. package/dist/client/assets/{agents-BUO9Of5M.js → agents-BAZxaM_m.js} +1 -1
  58. package/dist/client/assets/alert-dialog-BvNipqK_.js +7 -0
  59. package/dist/client/assets/{auth-catchall-Cts5maQI.js → auth-catchall-BoSUXTLZ.js} +1 -1
  60. package/dist/client/assets/{avatar-BLu12sL5.js → avatar-BNKSN34R.js} +1 -1
  61. package/dist/client/assets/{badge-D4ZHiXFA.js → badge-Do8iK9u9.js} +1 -1
  62. package/dist/client/assets/{binder-BeV9Iq0g.js → binder-BBB8LQyx.js} +1 -1
  63. package/dist/client/assets/{breadcrumb-kQQ-d55s.js → breadcrumb-DeYbtjMk.js} +1 -1
  64. package/dist/client/assets/{button-BxOn_P7A.js → button-D6YZfFzy.js} +1 -1
  65. package/dist/client/assets/{card-DMS-g9Fe.js → card-BNyCnFpQ.js} +1 -1
  66. package/dist/client/assets/{chart-Dm5seKC_.js → chart--8-symKO.js} +1 -1
  67. package/dist/client/assets/{checkbox-QVK1EYTJ.js → checkbox-BZwARXIv.js} +1 -1
  68. package/dist/client/assets/{circle-alert-BGE5uKTO.js → circle-alert-YjViK8VE.js} +1 -1
  69. package/dist/client/assets/{collection-detail-BNuWQnMo.js → collection-detail-LkGK1rw-.js} +1 -1
  70. package/dist/client/assets/{collection-search-WzmN-NEH.js → collection-search-CBYSITVU.js} +1 -1
  71. package/dist/client/assets/{collection-tab-CqF7e-el.js → collection-tab-BrrYAQmN.js} +1 -1
  72. package/dist/client/assets/{collection-table-wrapper-DpYYlIci.js → collection-table-wrapper-fNhnYl-G.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-BzQ9gNkb.js → collection-tabs-D0bfkNrY.js} +1 -1
  74. package/dist/client/assets/{command-pJXSXf5S.js → command-Dt3t7o57.js} +1 -1
  75. package/dist/client/assets/{connect-DpHmbRge.js → connect-DPEGql6L.js} +1 -1
  76. package/dist/client/assets/{connection-card-CRsOF1KU.js → connection-card-Cwh5xUmA.js} +1 -1
  77. package/dist/client/assets/{connection-detail-B1dOB0AI.js → connection-detail-DgHwxZSJ.js} +1 -1
  78. package/dist/client/assets/{connections-EWXE105G.js → connections-D2AuzZXu.js} +1 -1
  79. package/dist/client/assets/{constants-9bKBT988.js → constants-8URKDp4Y.js} +1 -1
  80. package/dist/client/assets/constants-oXq_cTdm.js +1 -0
  81. package/dist/client/assets/{context-LmNUO0nU.js → context-DHicyHl4.js} +9 -9
  82. package/dist/client/assets/{create-organization-dialog-CuKocaBI.js → create-organization-dialog-Cb3EQpzl.js} +1 -1
  83. package/dist/client/assets/{create-project-dialog-heqHF5Xt.js → create-project-dialog-BjqZAjhY.js} +1 -1
  84. package/dist/client/assets/{deco-constants-YxoGHwHI.js → deco-constants-CyaJG-D1.js} +1 -1
  85. package/dist/client/assets/{dialog-8Qx5GCEw.js → dialog-DSPMVHyJ.js} +1 -1
  86. package/dist/client/assets/{dropdown-menu-BbhseL--.js → dropdown-menu-CRT7qGQ9.js} +1 -1
  87. package/dist/client/assets/{dynamic-plugin-layout-Ch1QuglW.js → dynamic-plugin-layout-Dj3hkiA6.js} +1 -1
  88. package/dist/client/assets/{empty-state-CSzTWTZI.js → empty-state-BA6UkF4p.js} +1 -1
  89. package/dist/client/assets/{empty-state-C7VZap1W.js → empty-state-sMx3NP6e.js} +1 -1
  90. package/dist/client/assets/{env-vars-editor-C0KF8UB-.js → env-vars-editor-DuW-Il-b.js} +1 -1
  91. package/dist/client/assets/{error-boundary-BpCU-F5d.js → error-boundary-lFjWy2-n.js} +1 -1
  92. package/dist/client/assets/{extract-connection-data-CLG2vt6G.js → extract-connection-data-B39uuFqG.js} +1 -1
  93. package/dist/client/assets/{file-browser-4BKj7MWu.js → file-browser-BIF8ssgw.js} +2 -2
  94. package/dist/client/assets/{form-Dn5Ilwyi.js → form-BMtUcs2k.js} +1 -1
  95. package/dist/client/assets/{grid-view-aIHLkNPN.js → grid-view-e1dnT7b5.js} +1 -1
  96. package/dist/client/assets/{home-md1YObTz.js → home-1A3rDo1n.js} +1 -1
  97. package/dist/client/assets/index-BMDGI420.css +1 -0
  98. package/dist/client/assets/{index-DlglR7Dv.js → index-B_nMIrSY.js} +1 -1
  99. package/dist/client/assets/{index-DdzAhdkZ.js → index-CCjxSJ1y.js} +1 -1
  100. package/dist/client/assets/{index-Du85XF43.js → index-CjGa0AXv.js} +1 -1
  101. package/dist/client/assets/{index-CWIKLTkS.js → index-DJ_LDW-E.js} +1 -1
  102. package/dist/client/assets/{index-BtVQ48XT.js → index-DmoBx0VC.js} +1 -1
  103. package/dist/client/assets/{index-ow5WSrzH.js → index-DnrfuViL.js} +1 -1
  104. package/dist/client/assets/{index-DQipirM0.js → index-DwBgLSti.js} +3 -3
  105. package/dist/client/assets/{index-CIUI9_Ip.js → index-QQ-XmLlG.js} +51 -51
  106. package/dist/client/assets/{infiniteQueryObserver-45WqMl59.js → infiniteQueryObserver-Yvt0ZTml.js} +1 -1
  107. package/dist/client/assets/{input-D3a40-af.js → input-B7id4I1j.js} +1 -1
  108. package/dist/client/assets/{integration-icon-6FQvxTss.js → integration-icon-qV_BsBQR.js} +1 -1
  109. package/dist/client/assets/{label-_-PuJzKE.js → label-29qY4FPs.js} +1 -1
  110. package/dist/client/assets/{layout-C5y_iFls.js → layout-Ck3H2-cu.js} +1 -1
  111. package/dist/client/assets/{localstorage-keys-Xr0m_-Nl.js → localstorage-keys-Ct4C992S.js} +1 -1
  112. package/dist/client/assets/{login-CGG5vJdW.js → login-DO8QasPa.js} +1 -1
  113. package/dist/client/assets/{markdown-DumqyZQo.js → markdown-jp5pFlBz.js} +1 -1
  114. package/dist/client/assets/{mcp-oauth-ZHptqU19.js → mcp-oauth-Bb9gvF4o.js} +1 -1
  115. package/dist/client/assets/{mcp-server-card-uS3QofMZ.js → mcp-server-card-D_Epc4aH.js} +1 -1
  116. package/dist/client/assets/{mcp-server-detail-BKF_R4E0.js → mcp-server-detail-Dut9IDFd.js} +2 -2
  117. package/dist/client/assets/{members-BRSEA55l.js → members-4s3A4PQH.js} +1 -1
  118. package/dist/client/assets/{monitoring-dashboard-edit-1EYxjqsS.js → monitoring-dashboard-edit-DyFCcJjq.js} +1 -1
  119. package/dist/client/assets/{monitoring-dashboard-view-B9ky_iuo.js → monitoring-dashboard-view-Bc4tCiDF.js} +1 -1
  120. package/dist/client/assets/{monitoring-ChGczzDH.js → monitoring-gEkChCwS.js} +1 -1
  121. package/dist/client/assets/{oauth-callback-DiCjOlTo.js → oauth-callback-tz7MTdrq.js} +1 -1
  122. package/dist/client/assets/page-YrzfNFn-.js +1 -0
  123. package/dist/client/assets/{page-Bd4vke_j.js → page-pkTyp5rB.js} +1 -1
  124. package/dist/client/assets/{plugin-empty-state-3Ic2Cddr.js → plugin-empty-state-YsTdKC2B.js} +1 -1
  125. package/dist/client/assets/{plugin-empty-state-B0aoDY0o.js → plugin-empty-state-dEbxXjO6.js} +1 -1
  126. package/dist/client/assets/{plugin-header-lqwqxxa8.js → plugin-header-Di-tZc0h.js} +1 -1
  127. package/dist/client/assets/{plugin-header-1MpH5dMN.js → plugin-header-Djvd0-eL.js} +1 -1
  128. package/dist/client/assets/{popover-O7pPZSal.js → popover-pjzQQlLd.js} +1 -1
  129. package/dist/client/assets/{project-layout-Dk2D-43Q.js → project-layout-Bp5s1iI1.js} +1 -1
  130. package/dist/client/assets/{projects-list-CApnnFAH.js → projects-list-DcozT0tR.js} +1 -1
  131. package/dist/client/assets/{ranking-layout-CB_f3cVs.js → ranking-layout-D3PvNfv7.js} +1 -1
  132. package/dist/client/assets/{readme-viewer-61IpnmPP.js → readme-viewer-BmO5RwRH.js} +1 -1
  133. package/dist/client/assets/{registry-layout-DGM76yIZ.js → registry-layout-DEN2jHtD.js} +1 -1
  134. package/dist/client/assets/{registry-utils-DSUIffwE.js → registry-utils-DMdc5PTp.js} +1 -1
  135. package/dist/client/assets/{reports-layout-BMSW5Pvz.js → reports-layout-DziFQRp_.js} +1 -1
  136. package/dist/client/assets/{reset-password-R313_uMV.js → reset-password-CrHLBBwi.js} +1 -1
  137. package/dist/client/assets/{resizable-Dz9Hl0cL.js → resizable-jXkpfiVS.js} +1 -1
  138. package/dist/client/assets/{save-actions-De5hNsxX.js → save-actions-BPg_8VMI.js} +1 -1
  139. package/dist/client/assets/{scroll-area-dZhjEr7K.js → scroll-area-CcejXaMp.js} +1 -1
  140. package/dist/client/assets/{select-BSYdCUMN.js → select-CkeKfTEx.js} +1 -1
  141. package/dist/client/assets/shell-layout-C4PQ301W.js +3 -0
  142. package/dist/client/assets/{skeleton-D-Lsp11A.js → skeleton-DNLZ4Kho.js} +1 -1
  143. package/dist/client/assets/{spinner-BL4ZMZYA.js → spinner-DZtD-MX0.js} +1 -1
  144. package/dist/client/assets/{store-invite-B0hYE1ZZ.js → store-invite-B_jz8YSY.js} +1 -1
  145. package/dist/client/assets/{switch-DyckCxcC.js → switch-DFKxfcc5.js} +1 -1
  146. package/dist/client/assets/{table-D0pFXKN4.js → table-Csfk_VXo.js} +1 -1
  147. package/dist/client/assets/{tasks-DPZywEmF.js → tasks-Dv2Dq-cV.js} +1 -1
  148. package/dist/client/assets/{textarea-DX9d61Sr.js → textarea-GWXLFYfv.js} +1 -1
  149. package/dist/client/assets/{time-range-picker-fngIp4Wo.js → time-range-picker-DnUGZRLa.js} +1 -1
  150. package/dist/client/assets/{toggle-group-Z0vsy7J4.js → toggle-group-CojJ3wZ4.js} +1 -1
  151. package/dist/client/assets/{tools-list-B0lut0n1.js → tools-list-BPGP3JUO.js} +1 -1
  152. package/dist/client/assets/{tooltip-B7RjBzxU.js → tooltip-D71dCz4E.js} +1 -1
  153. package/dist/client/assets/{topbar-portal-D44GN90b.js → topbar-portal-BKT0Es8i.js} +1 -1
  154. package/dist/client/assets/typewriter-title-DqLjhGgL.js +16 -0
  155. package/dist/client/assets/{use-binding-oEpPFbv0.js → use-binding-DbH4Xe03.js} +1 -1
  156. package/dist/client/assets/{use-connection-DXequUdB.js → use-connection-BEGrPCmR.js} +1 -1
  157. package/dist/client/assets/{use-copy-h8i-bDIZ.js → use-copy-DsHlaDHD.js} +1 -1
  158. package/dist/client/assets/{use-create-virtual-mcp-DG-_igKD.js → use-create-virtual-mcp-BzTARjrD.js} +1 -1
  159. package/dist/client/assets/{use-deco-chat-open-BAG5m-JA.js → use-deco-chat-open-CxG3qwlT.js} +1 -1
  160. package/dist/client/assets/{use-install-from-registry-BCGIZz8M.js → use-install-from-registry-CSDJ0ZgD.js} +1 -1
  161. package/dist/client/assets/{use-list-state-DjtYoYEW.js → use-list-state-DvpdPuz-.js} +1 -1
  162. package/dist/client/assets/{use-llm-DDqwpIPn.js → use-llm-BbYG_RIr.js} +1 -1
  163. package/dist/client/assets/{use-mcp-prompts-CqOiamVC.js → use-mcp-prompts-qD8uHlkj.js} +1 -1
  164. package/dist/client/assets/{use-mcp-tools-Dt6WorDi.js → use-mcp-tools-BAsmCzEJ.js} +1 -1
  165. package/dist/client/assets/{use-mobile-CYG2M3Mj.js → use-mobile-Bs0AkxK7.js} +1 -1
  166. package/dist/client/assets/{use-organization-settings-Db9DvZjz.js → use-organization-settings-BJ9tNAL9.js} +1 -1
  167. package/dist/client/assets/{use-project-x4-rNIeb.js → use-project-CXHCn5kp.js} +1 -1
  168. package/dist/client/assets/{use-settings-modal-D-E-U1i_.js → use-settings-modal-Dx8IF1Gs.js} +1 -1
  169. package/dist/client/assets/{use-view-mode-C5FzaFBT.js → use-view-mode-DMPiUC22.js} +1 -1
  170. package/dist/client/assets/{use-virtual-mcp-Bq4iD2DN.js → use-virtual-mcp-DBzFAk7J.js} +1 -1
  171. package/dist/client/assets/useInfiniteQuery-DXQ7BtjQ.js +1 -0
  172. package/dist/client/assets/{useMutation-8rEyObWg.js → useMutation-DgG1LVg-.js} +1 -1
  173. package/dist/client/assets/useQuery-CPsXfVfR.js +1 -0
  174. package/dist/client/assets/useSuspenseInfiniteQuery-CuH1Eku2.js +1 -0
  175. package/dist/client/assets/{view-mode-toggle-DumSmhPz.js → view-mode-toggle-2-qyK3LU.js} +1 -1
  176. package/dist/client/assets/{workflow-Nf6onDYr.js → workflow-YppA7Sxi.js} +1 -1
  177. package/dist/client/index.html +2 -2
  178. package/package.json +1 -1
  179. package/dist/client/assets/alert-dialog-K0UnFp_v.js +0 -7
  180. package/dist/client/assets/constants-CS_UcM7e.js +0 -1
  181. package/dist/client/assets/index-BpxApmrT.css +0 -1
  182. package/dist/client/assets/page-BqTRzB6R.js +0 -1
  183. package/dist/client/assets/shell-layout-CGTPLB_Q.js +0 -3
  184. package/dist/client/assets/typewriter-title-CkssIeLy.js +0 -16
  185. package/dist/client/assets/useInfiniteQuery-qwQj5SMK.js +0 -1
  186. package/dist/client/assets/useQuery-CqT-L2b-.js +0 -1
  187. package/dist/client/assets/useSuspenseInfiniteQuery-BKpm_7Fb.js +0 -1
@@ -1,3 +0,0 @@
1
- import{r as z,c as _,j as s,u as le,b as Ce,bx as _e,L as Ie,bE as xt,bF as ht,O as V,H as gt,e as Oe,d as ce,t as ae,bG as jt,b5 as bt,m as Nt,A as yt,S as Ue,f as vt,h as St,N as kt,n as Ct,K as _t,aC as He,P as wt}from"./index-DQipirM0.js";import{C as X}from"./index-CIUI9_Ip.js";import{I as $t}from"./integration-icon-6FQvxTss.js";import{P as me,u as Ge,d as ie,e as ee,f as we,g as ge,h as je,i as We,j as zt,k as It,l as Be,m as Pt,n as At,o as Ot,p as Tt}from"./index-DlglR7Dv.js";import{u as Te,C as Mt,f as Et,g as Lt}from"./use-deco-chat-open-BAG5m-JA.js";import{c as G,B as Se}from"./button-BxOn_P7A.js";import{d as Dt,u as Ft}from"./constants-9bKBT988.js";import{T as Rt,i as Ut,b as Ht}from"./typewriter-title-CkssIeLy.js";import{s as xe}from"./Plus-Ck954sGm.js";import{t as Me}from"./Users03-DJ0q7ZN3.js";import{i as Pe,a as Gt,b as Wt,T as Bt}from"./tooltip-B7RjBzxU.js";import{E as qe}from"./error-boundary-BpCU-F5d.js";import{b as qt,i as Vt}from"./context-LmNUO0nU.js";import{C as Ve}from"./create-project-dialog-heqHF5Xt.js";import{u as $e,S as Z}from"./skeleton-D-Lsp11A.js";import{t as Ke,u as Qe}from"./use-settings-modal-D-E-U1i_.js";import{n as De}from"./CheckDone01-Duh5ZNi_.js";import{n as Kt}from"./Container-BY7Dg1ME.js";import{e as Qt}from"./Dataflow03-Ce5PVi3u.js";import{a as Yt}from"./Home02-WM8fzzhX.js";import{t as ke}from"./Settings01-CE-2gHzf.js";import{a as Ye,u as Ze}from"./use-project-x4-rNIeb.js";import{t as Je}from"./ChevronDown-DDsgD0_a.js";import{A as ue}from"./avatar-BLu12sL5.js";import{c as Q,g as he,d as Zt,e as Jt,f as Xt,b as Xe,D as et,a as tt}from"./dropdown-menu-BbhseL--.js";import{i as fe}from"./Check-BEIYk4IG.js";import{C as es}from"./create-organization-dialog-CuKocaBI.js";import{a as ts}from"./Copy01-BpXeBtQY.js";import{i as st}from"./File06-D2nPQ2vd.js";import{i as ss}from"./Globe01-BUNBHHR9.js";import{n as pe}from"./LinkExternal01-BIouwr8D.js";import{i as rs}from"./Shield01-BB8IGqoD.js";import{a as ns,P as is,b as os}from"./popover-O7pPZSal.js";import{i as ls,a as as}from"./deco-constants-YxoGHwHI.js";import{n as Fe}from"./Inbox01-Dl3sNTM-.js";import{s as cs}from"./XClose-Cpw_0BW6.js";import{h as ds}from"./use-connection-DXequUdB.js";import{b as ms}from"./use-mcp-tools-Dt6WorDi.js";import{u as rt,a as us}from"./use-organization-settings-Db9DvZjz.js";import{i as fs}from"./ChevronRight-dj0VUAfs.js";import{u as Ee,L as Le}from"./localstorage-keys-Xr0m_-Nl.js";import{R as ps,a as nt,b as xs}from"./resizable-Dz9Hl0cL.js";import"./spinner-BL4ZMZYA.js";import"./use-mcp-prompts-CqOiamVC.js";import"./useQuery-CqT-L2b-.js";import"./dialog-8Qx5GCEw.js";import"./form-Dn5Ilwyi.js";import"./label-_-PuJzKE.js";import"./input-D3a40-af.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-lkpB-gsw.js";import"./Edit01-BOdZHKPa.js";import"./XCircle-JhpX2IQK.js";import"./AlertCircle-FqZvtfh1.js";import"./AlertTriangle-Cag6cydu.js";import"./ArrowLeft-CHSuXHTI.js";import"./use-copy-h8i-bDIZ.js";import"./badge-D4ZHiXFA.js";import"./Code01-DbWG3kai.js";import"./use-virtual-mcp-Bq4iD2DN.js";import"./SearchMd-Dvn1Eo76.js";import"./use-create-virtual-mcp-DG-_igKD.js";import"./marked.esm-BaswSlok.js";import"./markdown-DumqyZQo.js";import"./Eye-D_CQVe6k.js";import"./Globe02-DXh1wFnz.js";import"./select-BSYdCUMN.js";import"./empty-state-C7VZap1W.js";import"./generate-id-Dyweu44Y.js";import"./Clock-Dv-gTw8O.js";import"./Trash01-BC7PAlKV.js";import"./use-mobile-CYG2M3Mj.js";import"./decopilot-events-Brt4gAR6.js";import"./use-llm-DDqwpIPn.js";import"./use-binding-oEpPFbv0.js";import"./binder-BeV9Iq0g.js";import"./Grid01-DDvgvRE8.js";import"./Image01-ToJS21L5.js";import"./RefreshCcw01-zTyzcouM.js";import"./useSuspenseInfiniteQuery-BKpm_7Fb.js";import"./infiniteQueryObserver-45WqMl59.js";import"./useMutation-8rEyObWg.js";import"./textarea-DX9d61Sr.js";import"./alert-dialog-K0UnFp_v.js";const it=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.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"}));it.displayName="BarChart10";const ot=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));ot.displayName="FaceSmile";const lt=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.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"}));lt.displayName="LogOut01";const at=({size:t=24,color:e="currentColor",...r})=>z.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},z.createElement("path",{d:"M8 9.5h4M8 13h7m-3 8a9 9 0 1 0-8.342-5.616c.081.2.122.3.14.381a.907.907 0 0 1 .024.219c0 .083-.015.173-.045.353l-.593 3.558c-.062.373-.093.56-.035.694a.5.5 0 0 0 .262.262c.135.058.321.027.694-.035l3.558-.593c.18-.03.27-.045.353-.045.081 0 .14.006.219.024.08.018.18.059.38.14A8.973 8.973 0 0 0 12 21Z"}));at.displayName="MessageTextCircle02";function hs(){const t=_.c(65),{org:e}=le(),[,r]=Te(),{selectedVirtualMcp:o,modelsConnections:i,isChatEmpty:l,activeThreadId:n,createThread:a,switchToThread:m,threads:c}=qt();let d;if(t[0]!==n||t[1]!==c){let H;t[3]!==n?(H=B=>B.id===n,t[3]=n,t[4]=H):H=t[4],d=c.find(H),t[0]=n,t[1]=c,t[2]=d}else d=t[2];const f=d,[u,g]=z.useState(!1),[x,h]=z.useTransition();let j;t[5]!==e.id?(j=Dt(e.id),t[5]=e.id,t[6]=j):j=t[6];const p=o??j;let N;t[7]!==a?(N=()=>{h(()=>{a()})},t[7]=a,t[8]=N):N=t[8];const S=N;if(i.length===0){let H;t[9]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(me.Header.Left,{className:"gap-2"}),t[9]=H):H=t[9];let B;t[10]!==r?(B=()=>r(!1),t[10]=r,t[11]=B):B=t[11];let k;t[12]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Pe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=k):k=t[12];let q;t[13]!==B?(q=s.jsxs(me.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[H,s.jsx(me.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:B,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:k})})]}),t[13]=B,t[14]=q):q=t[14];let ne;t[15]!==e?(ne=s.jsx(X.Main,{className:"flex flex-col items-center",children:s.jsx(X.EmptyState,{children:s.jsx(X.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=ne):ne=t[16];let de;return t[17]!==q||t[18]!==ne?(de=s.jsxs(X,{className:"animate-in fade-in-0 duration-200",children:[q,ne]}),t[17]=q,t[18]=ne,t[19]=de):de=t[19],de}const v=u?"duration-300 opacity-0 -translate-x-4 pointer-events-none":x?"duration-150 opacity-0 pointer-events-none":"duration-300 opacity-100 translate-x-0";let C;t[20]!==v?(C=G("absolute inset-0 flex flex-col transition-[opacity,transform] ease-[var(--ease-out-quart)]",v),t[20]=v,t[21]=C):C=t[21];let y;t[22]!==f||t[23]!==l?(y=!l&&f?.title&&s.jsx(Rt,{text:f.title,className:"text-sm font-medium text-foreground"}),t[22]=f,t[23]=l,t[24]=y):y=t[24];let I;t[25]!==y?(I=s.jsx(me.Header.Left,{className:"gap-2",children:y}),t[25]=y,t[26]=I):I=t[26];let T;t[27]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(xe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=T):T=t[27];let E;t[28]!==S||t[29]!==x?(E=s.jsx("button",{type:"button",onClick:S,disabled:x,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}),t[28]=S,t[29]=x,t[30]=E):E=t[30];let M;t[31]===Symbol.for("react.memo_cache_sentinel")?(M=()=>g(!0),t[31]=M):M=t[31];let W;t[32]===Symbol.for("react.memo_cache_sentinel")?(W=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:"Chat history",children:s.jsx(Ut,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=W):W=t[32];let D;t[33]!==r?(D=()=>r(!1),t[33]=r,t[34]=D):D=t[34];let F;t[35]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Pe,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=F):F=t[35];let P;t[36]!==D?(P=s.jsx("button",{type:"button",onClick:D,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:F}),t[36]=D,t[37]=P):P=t[37];let L;t[38]!==P||t[39]!==E?(L=s.jsxs(me.Header.Right,{className:"gap-1",children:[E,W,P]}),t[38]=P,t[39]=E,t[40]=L):L=t[40];let $;t[41]!==L||t[42]!==I?($=s.jsxs(me.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[I,L]}),t[41]=L,t[42]=I,t[43]=$):$=t[43];let A;t[44]!==p||t[45]!==l?(A=s.jsx(X.Main,{children:l?s.jsx(X.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx($t,{icon:p.icon,name:p.title,size:"lg",fallbackIcon:s.jsx(Me,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:p.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:p.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(X.IceBreakers,{})]})}):s.jsx(X.Messages,{})}),t[44]=p,t[45]=l,t[46]=A):A=t[46];let O;t[47]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(X.Footer,{children:s.jsx(X.Input,{})}),t[47]=O):O=t[47];let R;t[48]!==$||t[49]!==A||t[50]!==C?(R=s.jsxs("div",{className:C,children:[$,A,O]}),t[48]=$,t[49]=A,t[50]=C,t[51]=R):R=t[51];const re=u?"opacity-100 translate-x-0":"opacity-0 translate-x-4 pointer-events-none";let te;t[52]!==re?(te=G("absolute inset-0 flex flex-col transition-[opacity,transform] duration-300 ease-[var(--ease-out-quart)]",re),t[52]=re,t[53]=te):te=t[53];let se;t[54]===Symbol.for("react.memo_cache_sentinel")?(se=()=>g(!1),t[54]=se):se=t[54];let K;t[55]!==n||t[56]!==m||t[57]!==c?(K=s.jsx(Ht,{threads:c,activeThreadId:n,onThreadSelect:m,onClose:se}),t[55]=n,t[56]=m,t[57]=c,t[58]=K):K=t[58];let U;t[59]!==te||t[60]!==K?(U=s.jsx("div",{className:te,children:K}),t[59]=te,t[60]=K,t[61]=U):U=t[61];let Y;return t[62]!==R||t[63]!==U?(Y=s.jsxs(X,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[R,U]}),t[62]=R,t[63]=U,t[64]=Y):Y=t[64],Y}function gs(){const t=_.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X.Skeleton,{}),t[0]=e):e=t[0];let r;return t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(qe,{fallback:e,children:s.jsx(z.Suspense,{fallback:s.jsx(X.Skeleton,{}),children:s.jsx(hs,{})})}),t[1]=r):r=t[1],r}function js(){const t=_.c(54),[e]=$e(),{locator:r,org:o}=le(),i=Ce(),l=_e(),{org:n,project:a}=Ie.parse(r),m=Ie.isOrgAdminProject(r),{data:c}=Ye(o.id,a);let d;t[0]!==c?.enabledPlugins?(d=c?.enabledPlugins??[],t[0]=c?.enabledPlugins,t[1]=d):d=t[1];const f=d;let u;t[2]!==f?(u=w=>f.includes(w.pluginId),t[2]=f,t[3]=u):u=t[3];const g=xt.filter(u),x=l.location.pathname,h=`/${n}/${a}`,j=x===h||x===`${h}/`;let b;t[4]!==h||t[5]!==x?(b=w=>x.startsWith(`${h}/${w}`),t[4]=h,t[5]=x,t[6]=b):b=t[6];const p=b;let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(Yt,{}),t[7]=N):N=t[7];const S={key:"home",label:"Home",icon:N,isActive:j,onClick:()=>{j?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:n,project:a}})}};let v;t[8]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(De,{}),t[8]=v):v=t[8];const C={key:"tasks",label:"Tasks",icon:v,isActive:p("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:n,project:V}})};let y;t[9]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Kt,{}),t[9]=y):y=t[9];const I={key:"mcps",label:"Connections",icon:y,isActive:p("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:n,project:V}})};let T;t[10]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(gt,{}),t[10]=T):T=t[10];const E={key:"projects",label:"Projects",icon:T,isActive:p("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:n,project:V}})};let M;t[11]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Ke,{}),t[11]=M):M=t[11];const W={key:"store",label:"Store",icon:M,isActive:p("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:n,project:V}})};let D;t[12]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Me,{}),t[12]=D):D=t[12];const F={key:"agents",label:"Agents",icon:D,isActive:p("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:n,project:V}})};let P;t[13]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(it,{}),t[13]=P):P=t[13];const L={key:"monitoring",label:"Monitor",icon:P,isActive:p("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:n,project:V}})};let $;t[14]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(ot,{}),t[14]=$):$=t[14];const A={key:"members",label:"Members",icon:$,isActive:p("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:n,project:V}})},O=g.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:p(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:w.pluginId}})}));let R;t[15]!==f?(R=w=>f.includes(w.pluginId),t[15]=f,t[16]=R):R=t[16];const te=ht.filter(R).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((J,oe)=>({key:`${w.pluginId}-${w.id}-${oe}`,label:J.label,icon:J.icon,isActive:p(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:n,project:a,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}}));if(m){let w;t[17]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ke,{}),t[17]=w):w=t[17];let J;t[18]!==p?(J=p("settings"),t[18]=p,t[19]=J):J=t[19];let oe;t[20]!==i||t[21]!==n?(oe=()=>i({to:"/$org/$project/settings",params:{org:n,project:V}}),t[20]=i,t[21]=n,t[22]=oe):oe=t[22];let ye;t[23]!==J||t[24]!==oe?(ye={key:"settings",label:"Settings",icon:w,isActive:J,onClick:oe},t[23]=J,t[24]=oe,t[25]=ye):ye=t[25];const pt=ye,ze=[{type:"items",items:[S,...e.experimental_tasks?[C]:[],...e.experimental_projects?[E]:[]]},{type:"group",group:{id:"build",label:"Build",items:[F,I,W],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[L,A,pt],defaultExpanded:!0}}];if(O.length>0){let ve;t[26]!==O?(ve={type:"items",items:O},t[26]=O,t[27]=ve):ve=t[27],ze.push(ve)}return te.length>0&&ze.push(...te),ze}let se;t[28]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(De,{}),t[28]=se):se=t[28];let K;t[29]!==p?(K=p("tasks"),t[29]=p,t[30]=K):K=t[30];let U;t[31]!==i||t[32]!==n||t[33]!==a?(U=()=>i({to:"/$org/$project/tasks",params:{org:n,project:a}}),t[31]=i,t[32]=n,t[33]=a,t[34]=U):U=t[34];let Y;t[35]!==K||t[36]!==U?(Y={key:"tasks",label:"Tasks",icon:se,isActive:K,onClick:U},t[35]=K,t[36]=U,t[37]=Y):Y=t[37];const H=Y;let B;t[38]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Qt,{}),t[38]=B):B=t[38];let k;t[39]!==p?(k=p("workflows"),t[39]=p,t[40]=k):k=t[40];let q;t[41]!==i||t[42]!==n||t[43]!==a?(q=()=>i({to:"/$org/$project/workflows",params:{org:n,project:a}}),t[41]=i,t[42]=n,t[43]=a,t[44]=q):q=t[44];let ne;t[45]!==k||t[46]!==q?(ne={key:"workflows",label:"Workflows",icon:B,isActive:k,onClick:q},t[45]=k,t[46]=q,t[47]=ne):ne=t[47];const de=ne;let be;t[48]!==e.experimental_tasks||t[49]!==H?(be=e.experimental_tasks?[H]:[],t[48]=e.experimental_tasks,t[49]=H,t[50]=be):be=t[50];const Ne=[{type:"items",items:[S,...be,de]}];if(O.length>0){let w;t[51]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[51]=w):w=t[51],Ne.push(w);let J;t[52]!==O?(J={type:"items",items:O},t[52]=O,t[53]=J):J=t[53],Ne.push(J)}return te.length>0&&Ne.push(...te),Ne}function bs(t){const e=_.c(11),{label:r,children:o,defaultExpanded:i}=t,l=i===void 0?!0:i,[n,a]=z.useState(l),{state:m}=Ge(),c=m==="collapsed";let d;e[0]!==n||e[1]!==c||e[2]!==r?(d=c?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(ie,{children:s.jsx(ee,{children:s.jsxs(we,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!n),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:r}),s.jsx(Je,{size:12,className:G("text-muted-foreground transition-transform duration-200",!n&&"-rotate-90")})]})})}),e[0]=n,e[1]=c,e[2]=r,e[3]=d):d=e[3];let f;e[4]!==o||e[5]!==n||e[6]!==c?(f=(c||n)&&s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:o})}),e[4]=o,e[5]=n,e[6]=c,e[7]=f):f=e[7];let u;return e[8]!==d||e[9]!==f?(u=s.jsxs(je,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[d,f]}),e[8]=d,e[9]=f,e[10]=u):u=e[10],u}function ct(t){const e=_.c(13),{item:r}=t;let o;e[0]!==r.icon?(o=s.jsx("span",{className:"[&>svg]:size-4",children:r.icon}),e[0]=r.icon,e[1]=o):o=e[1];let i;e[2]!==r.label?(i=s.jsx("span",{className:"truncate group-data-[collapsible=icon]:hidden",children:r.label}),e[2]=r.label,e[3]=i):i=e[3];let l;e[4]!==r.isActive||e[5]!==r.label||e[6]!==r.onClick||e[7]!==o||e[8]!==i?(l=s.jsxs(we,{onClick:r.onClick,isActive:r.isActive,tooltip:r.label,children:[o,i]}),e[4]=r.isActive,e[5]=r.label,e[6]=r.onClick,e[7]=o,e[8]=i,e[9]=l):l=e[9];let n;return e[10]!==r.key||e[11]!==l?(n=s.jsx(ee,{children:l},r.key),e[10]=r.key,e[11]=l,e[12]=n):n=e[12],n}function Ns(t){const e=_.c(12),{section:r}=t;switch(r.type){case"divider":{let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(We,{className:"my-2"}),e[0]=o):o=e[0],o}case"spacer":{let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1"}),e[1]=o):o=e[1],o}case"group":{const o=r.group.label,i=r.group.defaultExpanded;let l;e[2]!==r.group.items?(l=r.group.items.map(vs),e[2]=r.group.items,e[3]=l):l=e[3];let n;return e[4]!==r.group.defaultExpanded||e[5]!==r.group.label||e[6]!==l?(n=s.jsx(bs,{label:o,defaultExpanded:i,children:l}),e[4]=r.group.defaultExpanded,e[5]=r.group.label,e[6]=l,e[7]=n):n=e[7],n}case"items":{let o;e[8]!==r.items?(o=r.items.map(ys),e[8]=r.items,e[9]=o):o=e[9];let i;return e[10]!==o?(i=s.jsx(je,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:o})})}),e[10]=o,e[11]=i):i=e[11],i}}}function ys(t){return s.jsx(ct,{item:t},t.key)}function vs(t){return s.jsx(ct,{item:t},t.key)}function dt(t){const e=_.c(14),{sections:r,header:o,footer:i,additionalContent:l,variant:n,collapsible:a,contentClassName:m}=t,c=n===void 0?"sidebar":n,d=a===void 0?"icon":a;let f;e[0]!==m?(f=G("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",m),e[0]=m,e[1]=f):f=e[1];let u;e[2]!==r?(u=r.map(Ss),e[2]=r,e[3]=u):u=e[3];let g;e[4]!==l||e[5]!==f||e[6]!==u?(g=s.jsxs(zt,{className:f,children:[u,l]}),e[4]=l,e[5]=f,e[6]=u,e[7]=g):g=e[7];let x;return e[8]!==d||e[9]!==i||e[10]!==o||e[11]!==g||e[12]!==c?(x=s.jsxs(It,{variant:c,collapsible:d,children:[o,g,i]}),e[8]=d,e[9]=i,e[10]=o,e[11]=g,e[12]=c,e[13]=x):x=e[13],x}function Ss(t,e){return s.jsx(Ns,{section:t},e)}dt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,r)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(Z,{className:"h-full bg-sidebar-accent rounded-md"})},r))})};function ks(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(Z,{className:"h-8 w-full rounded-lg"}),s.jsx(Z,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function Cs(t){const e=_.c(12),{organizationId:r,currentProjectSlug:o,onSelect:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={suspense:!0},e[0]=l):l=e[0];const{data:n}=Ze(r,l);let a,m;if(e[1]!==o||e[2]!==i||e[3]!==n){m=Symbol.for("react.early_return_sentinel");e:{const d=n?.filter(_s)??[];if(d.length===0){let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=u):u=e[6],m=u;break e}let f;e[7]!==o||e[8]!==i?(f=u=>{const g=o===u.slug,x=u.ui?.themeColor??"#3B82F6";return s.jsxs(Q,{className:G("gap-2.5",g&&"bg-accent"),onClick:()=>i(u.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:x},children:u.ui?.icon?s.jsx("img",{src:u.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:u.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:u.name}),g&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},u.id)},e[7]=o,e[8]=i,e[9]=f):f=e[9],a=d.map(f)}e[1]=o,e[2]=i,e[3]=n,e[4]=a,e[5]=m}else a=e[4],m=e[5];if(m!==Symbol.for("react.early_return_sentinel"))return m;let c;return e[10]!==a?(c=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=c):c=e[11],c}function _s(t){return t.slug!==V}function ws(t){let e=0;for(let o=0;o<t.length;o++)e=t.charCodeAt(o)+((e<<5)-e);const r=Math.abs(e)%360;return{backgroundColor:`hsl(${r} 55% 70%)`,color:`hsl(${r} 55% 20%)`}}function mt(t){const e=_.c(44),{isCollapsed:r,onCreateProject:o}=t,i=r===void 0?!1:r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},e[0]=l):l=e[0];const{org:n,project:a}=Oe(l),{data:m}=ce.useListOrganizations(),c=Ce(),d=m?.find(k=>k.slug===n),[f,u]=z.useState(!1),[g]=$e(),x=g.experimental_projects,h=a===V,{data:j}=Ye(d?.id??"",h?"":a??"");let b;e[1]!==n?(b=(k,q)=>k.slug===n?-1:q.slug===n?1:k.name.localeCompare(q.name),e[1]=n,e[2]=b):b=e[2];const p=[...m??[]].sort(b);let N;e[3]!==c||e[4]!==n?(N=()=>{n&&c({to:"/$org/$project",params:{org:n,project:V}})},e[3]=c,e[4]=n,e[5]=N):N=e[5];const S=N;let v;e[6]!==c||e[7]!==n?(v=k=>{n&&c({to:"/$org/$project",params:{org:n,project:k}})},e[6]=c,e[7]=n,e[8]=v):v=e[8];const C=v;let y;e[9]!==c?(y=k=>{c({to:"/$org/$project",params:{org:k,project:V}})},e[9]=c,e[10]=y):y=e[10];const I=y;let T;e[11]!==o?(T=o?()=>o():void 0,e[11]=o,e[12]=T):T=e[12];const E=T;let M;e[13]!==c||e[14]!==n||e[15]!==a?(M=()=>{if(!n||!a)return;const k=a===V;c({to:"/$org/$project",params:{org:n,project:a},search:q=>({...q,settings:k?"org.general":`project:${a}:general`})})},e[13]=c,e[14]=n,e[15]=a,e[16]=M):M=e[16];const W=M,D=et,F=i?"w-auto pr-1.5":"w-full";let P;e[17]!==F?(P=G("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]",F),e[17]=F,e[18]=P):P=e[18];const L=h?s.jsx("div",{className:G("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)]",i?"size-6":"size-8"),style:d?.logo?void 0:ws(d?.name??""),children:d?.logo?s.jsx("img",{src:d.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:G("font-semibold leading-none",i?"text-[9px]":"text-xs"),children:(d?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:G("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)]",i?"size-6":"size-8"),style:{backgroundColor:j?.ui?.themeColor??"#60a5fa"},children:j?.ui?.icon?s.jsx("img",{src:j.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:G("font-semibold text-white",i?"text-xs":"text-lg"),children:(j?.name??a??"?").charAt(0).toUpperCase()})});let $;e[19]!==d?.name||e[20]!==j?.name||e[21]!==x||e[22]!==i||e[23]!==h||e[24]!==a?($=!i&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:x?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:d?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:h?"Studio":j?.name??a??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:d?.name??"Select org"})}),s.jsx(Vt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=d?.name,e[20]=j?.name,e[21]=x,e[22]=i,e[23]=h,e[24]=a,e[25]=$):$=e[25];let A;e[26]!==P||e[27]!==L||e[28]!==$?(A=s.jsx(tt,{asChild:!0,children:s.jsxs("button",{type:"button",className:P,children:[L,$]})}),e[26]=P,e[27]=L,e[28]=$,e[29]=A):A=e[29];const O=Xe,R="start",re="bottom",te="w-64 flex flex-col gap-0.5",se=$s,K=x?s.jsxs(s.Fragment,{children:[s.jsxs(Q,{className:G("gap-2.5",h&&"bg-accent"),onClick:S,children:[s.jsx(ue,{url:d?.logo??"",fallback:d?.name??"",size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",d?.name]}),h&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]}),s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),d&&s.jsx(z.Suspense,{fallback:s.jsx(ks,{}),children:s.jsx(Cs,{organizationId:d.id,currentProjectSlug:a,orgSlug:n??"",onSelect:C})}),E&&s.jsxs(Q,{className:"gap-2.5",onClick:E,children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx(he,{}),s.jsxs(Zt,{children:[s.jsxs(Jt,{className:"gap-2.5",children:[s.jsx(Ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(Xt,{className:"w-48 flex flex-col gap-0.5",children:[p.map(k=>s.jsxs(Q,{className:G("gap-2.5",k.slug===n&&"bg-accent"),onClick:()=>I(k.slug),children:[s.jsx(ue,{url:k.logo??"",fallback:k.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:k.name}),k.slug===n&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},k.id)),s.jsx(he,{}),s.jsxs(Q,{className:"gap-2.5",onClick:()=>u(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]})]})]}),s.jsxs(Q,{className:"gap-2.5",onClick:W,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Organizations"}),p.map(k=>s.jsxs(Q,{className:G("gap-2.5",k.slug===n&&"bg-accent"),onClick:()=>I(k.slug),children:[s.jsx(ue,{url:k.logo??"",fallback:k.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:k.name}),k.slug===n&&s.jsx(fe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},k.id)),s.jsxs(Q,{className:"gap-2.5",onClick:()=>u(!0),children:[s.jsx(xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]}),s.jsx(he,{}),s.jsxs(Q,{className:"gap-2.5",onClick:W,children:[s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let U;e[30]!==O||e[31]!==se||e[32]!==K?(U=s.jsx(O,{align:R,side:re,className:te,onCloseAutoFocus:se,children:K}),e[30]=O,e[31]=se,e[32]=K,e[33]=U):U=e[33];let Y;e[34]!==D||e[35]!==A||e[36]!==U?(Y=s.jsxs(D,{children:[A,U]}),e[34]=D,e[35]=A,e[36]=U,e[37]=Y):Y=e[37];let H;e[38]!==f||e[39]!==u?(H=s.jsx(es,{open:f,onOpenChange:u}),e[38]=f,e[39]=u,e[40]=H):H=e[40];let B;return e[41]!==Y||e[42]!==H?(B=s.jsxs(s.Fragment,{children:[Y,H]}),e[41]=Y,e[42]=H,e[43]=B):B=e[43],B}function $s(t){return t.preventDefault()}mt.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(Z,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(Z,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ae(t){const e=_.c(23),{onCreateProject:r}=t,{state:o}=Ge(),i=o==="collapsed",[l,n]=Te();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:m,project:c}=Oe(a),{location:d}=_e(),f=d.pathname===`/${m}/${c}`||d.pathname===`/${m}/${c}/`;let u;e[1]!==n?(u=()=>{n(zs)},e[1]=n,e[2]=u):u=e[2];const g=u;let x;e[3]!==i||e[4]!==r?(x=s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(mt,{isCollapsed:i,onCreateProject:r})}),e[3]=i,e[4]=r,e[5]=x):x=e[5];const h=i||f?"max-w-0 opacity-0 pointer-events-none":"max-w-[2rem] opacity-100";let j;e[6]!==h?(j=G("flex items-center gap-0.5 shrink-0 overflow-hidden transition-[max-width,opacity] duration-300 ease-[var(--ease-out-quart)]",h),e[6]=h,e[7]=j):j=e[7];const b=l&&"bg-sidebar-accent text-sidebar-foreground";let p;e[8]!==b?(p=G("size-7 hover:bg-sidebar-accent text-sidebar-foreground/50 hover:text-sidebar-foreground",b),e[8]=b,e[9]=p):p=e[9];let N;e[10]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(at,{size:14,className:"text-inherit"}),e[10]=N):N=e[10];let S;e[11]!==p||e[12]!==g?(S=s.jsx(Gt,{asChild:!0,children:s.jsx(Se,{variant:"ghost",size:"icon",className:p,onClick:g,"aria-label":"Toggle Decopilot",children:N})}),e[11]=p,e[12]=g,e[13]=S):S=e[13];let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Wt,{side:"bottom",children:"Toggle Decopilot"}),e[14]=v):v=e[14];let C;e[15]!==S?(C=s.jsxs(Bt,{children:[S,v]}),e[15]=S,e[16]=C):C=e[16];let y;e[17]!==C||e[18]!==j?(y=s.jsx("div",{className:j,children:C}),e[17]=C,e[18]=j,e[19]=y):y=e[19];let I;return e[20]!==y||e[21]!==x?(I=s.jsx(Be,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[x,y]})})})}),e[20]=y,e[21]=x,e[22]=I):I=e[22],I}function zs(t){return!t}Ae.Skeleton=function(){return s.jsx(Be,{className:"px-3",children:s.jsx(ie,{children:s.jsx(ee,{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(Z,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(Z,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsxs("div",{className:"flex items-center gap-0.5",children:[s.jsx(Z,{className:"size-7 rounded-lg bg-sidebar-accent"}),s.jsx(Z,{className:"size-7 rounded-lg bg-sidebar-accent"})]})]})})})})};function Is(t){const e=_.c(49),{user:r,userImage:o}=t,{open:i}=Qe(),[l,n]=z.useState(!1);let a;e[0]!==r.email||e[1]!==r.id||e[2]!==r.name?(a=()=>{const R=`ID: ${r.id}
2
- Name: ${r.name||"N/A"}
3
- Email: ${r.email}`;navigator.clipboard.writeText(R),n(!0),ae.success("User info copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=r.email,e[1]=r.id,e[2]=r.name,e[3]=a):a=e[3];const m=a,c=r.name||r.email||"U";let d;e[4]!==c||e[5]!==o?(d=s.jsx(ue,{url:o,fallback:c,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=c,e[5]=o,e[6]=d):d=e[6];const f=r.name||"User";let u;e[7]!==f?(u=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:f})}),e[7]=f,e[8]=u):u=e[8];let g;e[9]!==d||e[10]!==u?(g=s.jsx(tt,{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:[d,u]})}),e[9]=d,e[10]=u,e[11]=g):g=e[11];const x=r.name||r.email||"U";let h;e[12]!==x||e[13]!==o?(h=s.jsx(ue,{url:o,fallback:x,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=x,e[13]=o,e[14]=h):h=e[14];const j=r.name||"User";let b;e[15]!==j?(b=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=b):b=e[16];let p;e[17]!==r.email?(p=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:r.email}),e[17]=r.email,e[18]=p):p=e[18];let N;e[19]!==b||e[20]!==p?(N=s.jsxs("div",{className:"flex-1 min-w-0",children:[b,p]}),e[19]=b,e[20]=p,e[21]=N):N=e[21];let S;e[22]!==l?(S=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:l?s.jsx(fe,{size:14,className:"text-green-600"}):s.jsx(ts,{size:14,className:"text-muted-foreground"})}),e[22]=l,e[23]=S):S=e[23];let v;e[24]!==m||e[25]!==N||e[26]!==S||e[27]!==h?(v=s.jsxs(Q,{onClick:m,className:"gap-2.5 group",children:[h,N,S]}),e[24]=m,e[25]=N,e[26]=S,e[27]=h,e[28]=v):v=e[28];let C;e[29]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(he,{}),e[29]=C):C=e[29];let y;e[30]!==i?(y=()=>i("account.preferences"),e[30]=i,e[31]=y):y=e[31];let I,T;e[32]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(ke,{size:14,className:"shrink-0 text-muted-foreground"}),T=s.jsx("span",{children:"Settings"}),e[32]=I,e[33]=T):(I=e[32],T=e[33]);let E;e[34]!==y?(E=s.jsxs(Q,{className:"gap-2.5",onClick:y,children:[I,T]}),e[34]=y,e[35]=E):E=e[35];let M;e[36]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(Q,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(st,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=M):M=e[36];let W;e[37]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(Q,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(rs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=W):W=e[37];let D;e[38]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Q,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(jt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=D):D=e[38];let F;e[39]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Q,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Me,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=F):F=e[39];let P,L;e[40]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Q,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ss,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx(pe,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),L=s.jsx(he,{}),e[40]=P,e[41]=L):(P=e[40],L=e[41]);let $;e[42]===Symbol.for("react.memo_cache_sentinel")?($=s.jsxs(Q,{className:"gap-2.5",onClick:Ps,children:[s.jsx(lt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=$):$=e[42];let A;e[43]!==v||e[44]!==E?(A=s.jsxs(Xe,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:As,children:[v,C,E,M,W,D,F,P,L,$]}),e[43]=v,e[44]=E,e[45]=A):A=e[45];let O;return e[46]!==A||e[47]!==g?(O=s.jsxs(et,{children:[g,A]}),e[46]=A,e[47]=g,e[48]=O):O=e[48],O}function Ps(){return ce.signOut()}function As(t){return t.preventDefault()}function ut(){const t=_.c(7),{data:e}=ce.useSession();if(!e?.user){let m;return t[0]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(ue,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=m):m=t[0],m}const r=e.user,o=r.name??void 0;let i;t[1]!==o||t[2]!==r?(i={...r,name:o},t[1]=o,t[2]=r,t[3]=i):i=t[3];const l=i,n=r.image;let a;return t[4]!==n||t[5]!==l?(a=s.jsx(Is,{user:l,userImage:n}),t[4]=n,t[5]=l,t[6]=a):a=t[6],a}function Os({invitation:t}){const[e,r]=z.useState(!1),[o,i]=z.useState(!1),l=Nt(),n=async()=>{r(!0);try{const m=await ce.organization.acceptInvitation({invitationId:t.id});if(m.error)ae.error(m.error.message),r(!1);else{const c=await ce.organization.setActive({organizationId:t.organizationId});ae.success("Invitation accepted!");const d=c?.data?.slug;window.location.href=d?`/${d}`:"/"}}catch{ae.error("Failed to accept invitation"),r(!1)}},a=async()=>{i(!0);try{const m=await ce.organization.rejectInvitation({invitationId:t.id});m.error?(ae.error(m.error.message),i(!1)):(ae.success("Invitation declined"),l.invalidateQueries())}catch{ae.error("Failed to decline invitation"),i(!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(Se,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:n,disabled:e||o,"aria-label":"Accept invitation",children:s.jsx(fe,{size:14})}),s.jsx(Se,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||o,"aria-label":"Decline invitation",children:s.jsx(cs,{size:14})})]})]})}function Ts(){const t=z.useContext(bt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(o=>o.status==="pending"&&new Date(o.expiresAt)>new Date)}class Ms extends z.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,r){}render(){return this.state.hasError?null:this.props.children}}function Es(t,e){if(!e||e<=0)return"text-foreground/70";const r=t/e;return r<=.05?"text-destructive":r<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ls(t){const e=_.c(20),{connectionId:r}=t,{open:o}=Qe(),{org:i}=le();let l;e[0]!==r||e[1]!==i.id?(l={connectionId:r,orgId:i.id},e[0]=r,e[1]=i.id,e[2]=l):l=e[2];const n=Ft(l);let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a={},e[3]=a):a=e[3];let m;e[4]!==n?(m={client:n,toolName:"GATEWAY_USAGE",toolArguments:a,staleTime:6e4,select:Ds},e[4]=n,e[5]=m):m=e[5];const{data:c}=ms(m),d=c?.limit.remaining??0,f=c?.limit.total??null;let u;e[6]!==o?(u=()=>o("org.billing"),e[6]=o,e[7]=u):u=e[7];let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(as,{size:13,className:"text-muted-foreground/60 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Credits"})]}),e[8]=g):g=e[8];let x;e[9]!==d||e[10]!==f?(x=G("text-xs font-medium tabular-nums",Es(d,f)),e[9]=d,e[10]=f,e[11]=x):x=e[11];let h;e[12]!==d?(h=d.toFixed(2),e[12]=d,e[13]=h):h=e[13];let j;e[14]!==x||e[15]!==h?(j=s.jsxs("span",{className:x,children:["$",h]}),e[14]=x,e[15]=h,e[16]=j):j=e[16];let b;return e[17]!==u||e[18]!==j?(b=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:[g,j]}),e[17]=u,e[18]=j,e[19]=b):b=e[19],b}function Ds(t){return t.structuredContent}function Fs(){const t=_.c(4),e=ds();let r;t[0]!==e?(r=e.find(Rs),t[0]=e,t[1]=r):r=t[1];const o=r;if(!o?.id)return null;let i;return t[2]!==o.id?(i=s.jsx(Ls,{connectionId:o.id}),t[2]=o.id,t[3]=i):i=t[3],i}function Rs(t){return ls(t.connection_url)}function Us(){const t=_.c(13),e=Ts();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ms,{children:s.jsx(z.Suspense,{fallback:null,children:s.jsx(Fs,{})})}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(ut,{})}),t[1]=o):o=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(is,{asChild:!0,children:s.jsx(Se,{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(Fe,{size:16})})}),t[2]=i):i=t[2];let l;t[3]!==e.length?(l=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]=l):l=t[4];let n;t[5]!==l?(n=s.jsxs("div",{className:"relative",children:[i,l]}),t[5]=l,t[6]=n):n=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 m;t[8]!==e?(m=s.jsxs(ns,{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(Fe,{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(Hs)})]}),t[8]=e,t[9]=m):m=t[9];let c;return t[10]!==n||t[11]!==m?(c=s.jsxs(Pt,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[r,s.jsx(ie,{children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[o,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(os,{children:[n,m]})})]})})})]}),t[10]=n,t[11]=m,t[12]=c):c=t[12],c}function Hs(t){return s.jsx(Os,{invitation:t},t.id)}function ft(t){const e=_.c(4),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(We,{className:"my-2"}),e[0]=o):o=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ee,{children:s.jsx("div",{className:"group-data-[collapsible=icon]:hidden px-2 py-0 text-xs font-medium h-6 text-muted-foreground flex items-center justify-between",children:s.jsx("span",{className:"whitespace-nowrap",children:"Pinned Views"})})}),e[1]=i):i=e[1];let l;return e[2]!==r?(l=s.jsxs(s.Fragment,{children:[o,i,r]}),e[2]=r,e[3]=l):l=e[3],l}function Gs(t){const e=_.c(26),{item:r}=t,o=Ce(),{org:i}=le(),l=rt(i.id),n=us(i.id);let a;e[0]!==n.update||e[1]!==r.url||e[2]!==l?.sidebar_items?(a=async()=>{const S=(l?.sidebar_items||[]).filter(v=>v.url!==r.url);await n.update.mutateAsync({sidebar_items:S})},e[0]=n.update,e[1]=r.url,e[2]=l?.sidebar_items,e[3]=a):a=e[3];const m=a;let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=/^https?:\/\/.+/,e[4]=c):c=e[4];let d;e[5]!==r.icon?(d=c.test(r.icon),e[5]=r.icon,e[6]=d):d=e[6];const f=d;let u;e[7]!==r.url||e[8]!==o?(u=()=>{o({to:r.url})},e[7]=r.url,e[8]=o,e[9]=u):u=e[9];const g=r.title;let x;e[10]!==f||e[11]!==r.icon||e[12]!==r.title?(x=s.jsx("div",{className:"flex items-center justify-center shrink-0",children:f?s.jsx("img",{src:r.icon,alt:r.title,className:"h-4 w-4 rounded object-cover"}):s.jsx(st,{size:16,className:"text-muted-foreground group-hover/item:text-foreground transition-colors"})}),e[10]=f,e[11]=r.icon,e[12]=r.title,e[13]=x):x=e[13];let h;e[14]!==r.title?(h=r.title.toLocaleLowerCase(),e[14]=r.title,e[15]=h):h=e[15];let j;e[16]!==h?(j=s.jsx("div",{className:"flex-1 min-w-0 flex flex-col items-start",children:s.jsx("span",{className:"truncate text-sm w-full capitalize",children:h})}),e[16]=h,e[17]=j):j=e[17];let b;e[18]!==m?(b=s.jsx(Pe,{size:16,className:"text-muted-foreground opacity-0 group-hover/item:opacity-50 hover:opacity-100 cursor-pointer",onClick:N=>{N.preventDefault(),N.stopPropagation(),m()}}),e[18]=m,e[19]=b):b=e[19];let p;return e[20]!==r.title||e[21]!==u||e[22]!==x||e[23]!==j||e[24]!==b?(p=s.jsx(ee,{children:s.jsxs(we,{className:"w-full pr-2 group/item relative cursor-pointer text-foreground/90 hover:text-foreground",onClick:u,tooltip:g,children:[x,j,b]})}),e[20]=r.title,e[21]=u,e[22]=x,e[23]=j,e[24]=b,e[25]=p):p=e[25],p}function Re(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ee,{children:s.jsx("div",{className:"flex items-center gap-2 px-4 py-2",children:s.jsx(Z,{className:"h-4 flex-1"})})}),t[0]=e):e=t[0],e}function Ws(){const t=_.c(4),{org:e}=le(),o=rt(e.id)?.sidebar_items;if(!o?.length)return null;let i;t[0]!==o?(i=o.map(Bs),t[0]=o,t[1]=i):i=t[1];let l;return t[2]!==i?(l=s.jsx(ft,{children:i}),t[2]=i,t[3]=l):l=t[3],l}function Bs(t){return s.jsx(Gs,{item:t},t.url)}function qs(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(z.Suspense,{fallback:s.jsxs(ft,{children:[s.jsx(Re,{}),s.jsx(Re,{})]}),children:s.jsx(Ws,{})}),t[0]=e):e=t[0],e}function Vs(t){const e=_.c(11),{project:r}=t,o=r.ui?.themeColor??"#60a5fa";if(r.ui?.icon){let m;return e[0]!==r.ui.icon?(m=s.jsx("img",{src:r.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=r.ui.icon,e[1]=m):m=e[1],m}let i;e[2]!==o?(i={backgroundColor:o},e[2]=o,e[3]=i):i=e[3];let l;e[4]!==r.name?(l=r.name.charAt(0).toUpperCase(),e[4]=r.name,e[5]=l):l=e[5];let n;e[6]!==l?(n=s.jsx("span",{className:"text-[10px] font-medium text-white",children:l}),e[6]=l,e[7]=n):n=e[7];let a;return e[8]!==i||e[9]!==n?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:i,children:n}),e[8]=i,e[9]=n,e[10]=a):a=e[10],a}function Ks(t){const e=_.c(14),{project:r}=t,o=Ce(),{org:i}=le();let l;e[0]!==o||e[1]!==i.slug||e[2]!==r.slug?(l=()=>{o({to:"/$org/$project",params:{org:i.slug,project:r.slug}})},e[0]=o,e[1]=i.slug,e[2]=r.slug,e[3]=l):l=e[3];let n;e[4]!==r?(n=s.jsx(Vs,{project:r}),e[4]=r,e[5]=n):n=e[5];let a;e[6]!==r.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:r.name}),e[6]=r.name,e[7]=a):a=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(fs,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=m):m=e[8];let c;return e[9]!==r.name||e[10]!==l||e[11]!==n||e[12]!==a?(c=s.jsx(ee,{children:s.jsxs(we,{onClick:l,tooltip:r.name,children:[n,a,m]})}),e[9]=r.name,e[10]=l,e[11]=n,e[12]=a,e[13]=c):c=e[13],c}function Qs(){const t=_.c(55),{org:e}=le(),{data:r,isLoading:o}=Ze(e.id),[i,l]=z.useState(!0),[n,a]=z.useState(!1);let m,c,d,f,u,g,x,h,j,b,p,N,S;if(t[0]!==o||t[1]!==i||t[2]!==r){S=Symbol.for("react.early_return_sentinel");e:{const D=r?.filter(Zs)??[];if(o){let R;t[16]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})}),t[16]=R):R=t[16];let re;t[17]===Symbol.for("react.memo_cache_sentinel")?(re=s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsxs(ie,{className:"gap-0.5",children:[R,s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})})]})})}),t[17]=re):re=t[17],S=re;break e}N="group/projects-section mt-2",u=Mt,b=i,p=l,f=je,j="py-0 px-0",d=ge,c=ie,x="gap-0.5";let F;t[18]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=F):F=t[18];const P=!i&&"-rotate-90";let L;t[19]!==P?(L=G("text-muted-foreground shrink-0 transition-transform duration-200",P),t[19]=P,t[20]=L):L=t[20];let $;t[21]!==L?($=s.jsx(Et,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[F,s.jsx(Je,{size:12,className:L})]})}),t[21]=L,t[22]=$):$=t[22];let A;t[23]===Symbol.for("react.memo_cache_sentinel")?(A=()=>a(!0),t[23]=A):A=t[23];let O;t[24]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("button",{type:"button",onClick:A,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(xe,{size:16})}),t[24]=O):O=t[24],t[25]!==$?(h=s.jsx(ee,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[$,O]})}),t[25]=$,t[26]=h):h=t[26],m=Lt,g=D.length===0?s.jsx(ee,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):D.map(Ys)}t[0]=o,t[1]=i,t[2]=r,t[3]=m,t[4]=c,t[5]=d,t[6]=f,t[7]=u,t[8]=g,t[9]=x,t[10]=h,t[11]=j,t[12]=b,t[13]=p,t[14]=N,t[15]=S}else m=t[3],c=t[4],d=t[5],f=t[6],u=t[7],g=t[8],x=t[9],h=t[10],j=t[11],b=t[12],p=t[13],N=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let v;t[27]!==m||t[28]!==g?(v=s.jsx(m,{children:g}),t[27]=m,t[28]=g,t[29]=v):v=t[29];let C;t[30]!==c||t[31]!==x||t[32]!==h||t[33]!==v?(C=s.jsxs(c,{className:x,children:[h,v]}),t[30]=c,t[31]=x,t[32]=h,t[33]=v,t[34]=C):C=t[34];let y;t[35]!==d||t[36]!==C?(y=s.jsx(d,{children:C}),t[35]=d,t[36]=C,t[37]=y):y=t[37];let I;t[38]!==f||t[39]!==y||t[40]!==j?(I=s.jsx(f,{className:j,children:y}),t[38]=f,t[39]=y,t[40]=j,t[41]=I):I=t[41];let T;t[42]!==u||t[43]!==I||t[44]!==b||t[45]!==p?(T=s.jsx(u,{open:b,onOpenChange:p,children:I}),t[42]=u,t[43]=I,t[44]=b,t[45]=p,t[46]=T):T=t[46];let E;t[47]!==T||t[48]!==N?(E=s.jsx("div",{className:N,children:T}),t[47]=T,t[48]=N,t[49]=E):E=t[49];let M;t[50]!==n?(M=s.jsx(Ve,{open:n,onOpenChange:a}),t[50]=n,t[51]=M):M=t[51];let W;return t[52]!==E||t[53]!==M?(W=s.jsxs(s.Fragment,{children:[E,M]}),t[52]=E,t[53]=M,t[54]=W):W=t[54],W}function Ys(t){return s.jsx(Ks,{project:t},t.id)}function Zs(t){return t.slug!==V}function Js(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(z.Suspense,{fallback:s.jsx(je,{className:"py-0 px-0",children:s.jsx(ge,{children:s.jsx(ie,{className:"gap-0.5",children:s.jsx(ee,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(Z,{className:"h-4 w-4 rounded"}),s.jsx(Z,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Qs,{})}),t[0]=e):e=t[0],e}function Xs(t){const e=_.c(15),{onCreateProject:r}=t,[o]=$e(),i=js(),{locator:l}=le();let n;e[0]!==l?(n=Ie.isOrgAdminProject(l),e[0]=l,e[1]=n):n=e[1];const a=n;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Ae.Skeleton,{}),e[2]=m):m=e[2];let c;e[3]!==r?(c=s.jsx(z.Suspense,{fallback:m,children:s.jsx(Ae,{onCreateProject:r})}),e[3]=r,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Us,{}),e[5]=d):d=e[5];let f;e[6]!==a||e[7]!==o?(f=a?o.experimental_projects?s.jsx(Js,{}):null:s.jsx(qs,{}),e[6]=a,e[7]=o,e[8]=f):f=e[8];let u;e[9]!==f?(u=s.jsx(qe,{children:s.jsx(z.Suspense,{fallback:null,children:f})}),e[9]=f,e[10]=u):u=e[10];let g;return e[11]!==i||e[12]!==c||e[13]!==u?(g=s.jsx(dt,{sections:i,header:c,footer:d,additionalContent:u}),e[11]=i,e[12]=c,e[13]=u,e[14]=g):g=e[14],g}function er(){const t=_.c(2),r=_e().location.href;let o;return t[0]!==r?(o=s.jsx(kt,{to:"/login",search:{next:r},replace:!0}),t[0]=r,t[1]=o):o=t[1],o}function tr(t){const e=_.c(6),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(yt,{children:s.jsx(Ue,{})}),e[0]=o):o=e[0];let i;e[1]!==r?(i=s.jsx(vt,{children:r}),e[1]=r,e[2]=i):i=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(St,{children:s.jsx(er,{})}),e[3]=l):l=e[3];let n;return e[4]!==i?(n=s.jsxs(s.Fragment,{children:[o,i,l]}),e[4]=i,e[5]=n):n=e[5],n}function sr(t){const e=_.c(10),{children:r,className:o}=t,[,i]=z.useTransition();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Le.decoChatPanelWidth(),e[0]=l):l=e[0];const[n,a]=Ee(l,30);let m;e[1]!==a?(m=u=>i(()=>a(u)),e[1]=a,e[2]=m):m=e[2];const c=m;let d;e[3]!==o?(d=G("min-w-0",o),e[3]=o,e[4]=d):d=e[4];let f;return e[5]!==n||e[6]!==r||e[7]!==c||e[8]!==d?(f=s.jsx(nt,{defaultSize:n,minSize:20,className:d,onResize:c,children:r}),e[5]=n,e[6]=r,e[7]=c,e[8]=d,e[9]=f):f=e[9],f}function rr(t){const e=_.c(5),{children:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Le.sidebarOpen(),e[0]=o):o=e[0];const[i,l]=Ee(o,!0);let n;return e[1]!==r||e[2]!==l||e[3]!==i?(n=s.jsx(At,{open:i,onOpenChange:l,children:r}),e[1]=r,e[2]=l,e[3]=i,e[4]=n):n=e[4],n}function nr(t){const e=_.c(24),{isStudio:r,isHomeRoute:o,onCreateProject:i}=t,[l]=Te();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Le.decoChatPanelWidth(),e[0]=n):n=e[0];const[a]=Ee(n,30),[m]=$e(),c=r&&m.experimental_projects?"":void 0,d=`${a}cqi`;let f;e[1]!==d?(f={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":d},e[1]=d,e[2]=f):f=e[2];const u=f;let g;e[3]!==i?(g=s.jsx(Xs,{onCreateProject:i}),e[3]=i,e[4]=g):g=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x={background:"transparent",containerType:"inline-size"},e[5]=x):x=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h={overflow:"visible"},e[6]=h):h=e[6];let j;e[7]===Symbol.for("react.memo_cache_sentinel")?(j={overflow:"visible"},e[7]=j):j=e[7];const b=l&&"rounded-tr-[0.75rem] border-r";let p;e[8]!==b?(p=G("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)]",b),e[8]=b,e[9]=p):p=e[9];let N;e[10]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(He,{})}),e[10]=N):N=e[10];let S;e[11]!==p?(S=s.jsx(nt,{className:"min-w-0 flex flex-col",style:j,children:s.jsx("div",{className:p,children:N})}),e[11]=p,e[12]=S):S=e[12];let v;e[13]!==l||e[14]!==o?(v=!o&&s.jsxs(s.Fragment,{children:[s.jsx(ps,{className:"bg-sidebar"}),s.jsx(sr,{className:G("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(gs,{})})})})]}),e[13]=l,e[14]=o,e[15]=v):v=e[15];let C;e[16]!==S||e[17]!==v?(C=s.jsx(Ot,{className:"pt-1.5",style:x,children:s.jsxs(xs,{direction:"horizontal",className:"h-full",style:h,children:[S,v]})}),e[16]=S,e[17]=v,e[18]=C):C=e[18];let y;return e[19]!==C||e[20]!==c||e[21]!==u||e[22]!==g?(y=s.jsxs(Tt,{className:"flex-1 bg-sidebar","data-studio":c,style:u,children:[g,C]}),e[19]=C,e[20]=c,e[21]=u,e[22]=g,e[23]=y):y=e[23],y}function ir(){const{org:t,project:e}=Oe({strict:!1}),r=_e(),[o,i]=z.useState(!1),l=r.location.pathname===`/${t}/${e}`||r.location.pathname===`/${t}/${e}/`,n=e??V,{data:a}=Ct({queryKey:_t.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:d}=await ce.organization.setActive({organizationSlug:t});return{org:d,project:{slug:n,isOrgAdmin:n===V}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!a)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(ut,{})})}),s.jsx(He,{})]});if(!a.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const m={...a,project:{...a.project,slug:n,isOrgAdmin:n===V}},c=n===V;return s.jsxs(wt,{...m,children:[s.jsx(rr,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(X.Provider,{children:s.jsx(nr,{isStudio:c,isHomeRoute:l,onCreateProject:()=>i(!0)})})})}),s.jsx(Ve,{open:o,onOpenChange:i})]})}function Dn(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(tr,{children:s.jsx(z.Suspense,{fallback:s.jsx(Ue,{}),children:s.jsx(ir,{})})}),t[0]=e):e=t[0],e}export{Dn as default};
@@ -1,16 +0,0 @@
1
- import{r as C,c as T,j as t}from"./index-DQipirM0.js";import{I as L}from"./input-D3a40-af.js";import{S as _,a as $,b as V,c as z}from"./index-DlglR7Dv.js";import{c as S}from"./button-BxOn_P7A.js";import{i as I}from"./SearchMd-Dvn1Eo76.js";const D=({size:l=24,color:e="currentColor",...s})=>C.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},C.createElement("path",{d:"m22.7 13.5-2-2-2 2M21 12a9 9 0 1 1-1.245-4.57M12 7v5l3 2"}));D.displayName="ClockRewind";const E=({size:l=24,color:e="currentColor",...s})=>C.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},C.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z"}));E.displayName="MessageChatSquare";function H(l){const e=T.c(24),{threads:s,activeThreadId:i,onThreadSelect:o,onClose:r,showHeader:c,showBackButton:w}=l,d=c===void 0?!0:c,n=w===void 0?!1:w,[a,k]=C.useState("");let y;e[0]!==a||e[1]!==s?(y=a.trim()?s.filter(h=>(h.title||"New chat").toLowerCase().includes(a.toLowerCase())):s,e[0]=a,e[1]=s,e[2]=y):y=e[2];const v=y;let f;e[3]!==r||e[4]!==o?(f=h=>{o(h),r&&r()},e[3]=r,e[4]=o,e[5]=f):f=e[5];const b=f;let x;e[6]!==r||e[7]!==n||e[8]!==d?(x=d&&t.jsxs("div",{className:"h-12 px-4 flex items-center justify-between border-b shrink-0",children:[t.jsx("span",{className:"text-sm font-medium",children:"Chat History"}),n&&t.jsx("button",{type:"button",onClick:r,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Back to chat"})]}),e[6]=r,e[7]=n,e[8]=d,e[9]=x):x=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=S("px-3 py-3 border-b","shrink-0"),e[10]=g):g=e[10];let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(I,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[11]=N):N=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=h=>k(h.target.value),e[12]=u):u=e[12];let m;e[13]!==a?(m=t.jsx("div",{className:g,children:t.jsxs("div",{className:"relative",children:[N,t.jsx(L,{type:"text",placeholder:"Search conversations...",value:a,onChange:u,className:"pl-9 h-9 text-sm"})]})}),e[13]=a,e[14]=m):m=e[14];let p;e[15]!==i||e[16]!==v||e[17]!==b||e[18]!==a?(p=t.jsx("div",{className:"flex-1 overflow-y-auto",children:v.length===0?t.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-12 px-4 text-center",children:[t.jsx("div",{className:"size-12 rounded-full bg-muted/50 flex items-center justify-center",children:t.jsx(E,{size:24,className:"text-muted-foreground"})}),t.jsxs("div",{className:"space-y-1",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:a?"No results found":"No conversations yet"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:a?"Try a different search term":"Start a new chat to see your history here"})]})]}):t.jsx("div",{className:"flex flex-col py-2",children:v.map(h=>{const B=h.id===i;return t.jsx("button",{type:"button",onClick:()=>b(h.id),className:S("flex items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-accent/50",B&&"bg-accent/50"),children:t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:S("text-sm truncate",B?"font-medium text-foreground":"text-muted-foreground"),children:h.title||"New chat"}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:new Date(h.updated_at).toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})]})},h.id)})})}),e[15]=i,e[16]=v,e[17]=b,e[18]=a,e[19]=p):p=e[19];let j;return e[20]!==p||e[21]!==x||e[22]!==m?(j=t.jsxs(t.Fragment,{children:[x,m,p]}),e[20]=p,e[21]=x,e[22]=m,e[23]=j):j=e[23],j}function q(l){const e=T.c(9),{open:s,onOpenChange:i,threads:o,activeThreadId:r,onThreadSelect:c}=l;let w;e[0]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(_,{className:"h-12 px-4 flex flex-row items-center justify-between border-b shrink-0",children:t.jsx($,{className:"text-sm font-medium",children:"Chat History"})}),e[0]=w):w=e[0];let d;e[1]!==r||e[2]!==c||e[3]!==o?(d=t.jsxs(V,{side:"right",className:"w-[320px] sm:w-[380px] p-0 flex flex-col",children:[w,t.jsx(H,{threads:o,activeThreadId:r,onThreadSelect:c,showHeader:!1})]}),e[1]=r,e[2]=c,e[3]=o,e[4]=d):d=e[4];let n;return e[5]!==i||e[6]!==s||e[7]!==d?(n=t.jsx(z,{open:s,onOpenChange:i,children:d}),e[5]=i,e[6]=s,e[7]=d,e[8]=n):n=e[8],n}function F(l){const e=T.c(5),{threads:s,activeThreadId:i,onThreadSelect:o,onClose:r}=l;let c;return e[0]!==i||e[1]!==r||e[2]!==o||e[3]!==s?(c=t.jsx("div",{className:"flex flex-col h-full w-full bg-background",children:t.jsx(H,{threads:s,activeThreadId:i,onThreadSelect:o,onClose:r,showBackButton:!0})}),e[0]=i,e[1]=r,e[2]=o,e[3]=s,e[4]=c):c=e[4],c}function O(l){const e=T.c(22),{text:s,className:i,speed:o}=l,r=i===void 0?"":i,c=o===void 0?30:o,[w,d]=C.useState(!1),n=s.length/c*1e3,a=s.length,k=`${s.length}ch`;let y;e[0]!==n?(y=()=>{d(!1);const h=setTimeout(()=>{d(!0)},n);return()=>clearTimeout(h)},e[0]=n,e[1]=y):y=e[1];let v;e[2]!==n||e[3]!==s?(v=[s,n],e[2]=n,e[3]=s,e[4]=v):v=e[4],C.useEffect(y,v);let f;e[5]!==r?(f=S(r,"block overflow-hidden inline-flex"),e[5]=r,e[6]=f):f=e[6];const b=`${n}ms`;let x;e[7]!==k||e[8]!==a||e[9]!==b?(x={"--typewriter-duration":b,"--typewriter-steps":a,"--typewriter-max-width":k},e[7]=k,e[8]=a,e[9]=b,e[10]=x):x=e[10];const g=x,N=w&&"truncate";let u;e[11]!==N?(u=S("typewriter-text",N),e[11]=N,e[12]=u):u=e[12];let m;e[13]!==u||e[14]!==s?(m=t.jsx("span",{className:u,children:s}),e[13]=u,e[14]=s,e[15]=m):m=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("style",{children:`
2
- .typewriter-text {
3
- display: inline-block;
4
- width: 0;
5
- max-width: 100%;
6
- overflow: hidden;
7
- white-space: nowrap;
8
- animation: typewriter var(--typewriter-duration) steps(var(--typewriter-steps)) forwards;
9
- }
10
-
11
- @keyframes typewriter {
12
- to {
13
- width: min(var(--typewriter-max-width), 100%);
14
- }
15
- }
16
- `}),e[16]=p):p=e[16];let j;return e[17]!==m||e[18]!==f||e[19]!==g||e[20]!==s?(j=t.jsxs("span",{className:f,style:g,children:[m,p]},s),e[17]=m,e[18]=f,e[19]=g,e[20]=s,e[21]=j):j=e[21],j}export{O as T,q as a,F as b,D as i,E as t};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-45WqMl59.js";import{z as i}from"./index-DQipirM0.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{z as u,a8 as s}from"./index-DQipirM0.js";function o(e,r){return u(e,s,r)}export{o as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-45WqMl59.js";import{z as u,B as n}from"./index-DQipirM0.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};