decocms 4.69.1 → 4.71.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 (254) hide show
  1. package/dist/client/assets/{AlertCircle-CeJgODlb.js → AlertCircle-aLj91JKT.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DjQ3-mxR.js → AreaChart-2H7Wo65w.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-Cx_--6Z7.js → ArrowUp-dijo6g2I.js} +1 -1
  4. package/dist/client/assets/{ArrowUpRight-ywfBK9uD.js → ArrowUpRight-BdJAeMru.js} +1 -1
  5. package/dist/client/assets/{Check-qklIr9eC.js → Check-DzSHe7Od.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-B5HHFx3h.js → CheckCircle-BUuqVGoN.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-Dqw9pJbF.js → ChevronDown-BdE6xZyL.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-DX001g0F.js → ChevronRight-D0W0oBsg.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-C-6o6d8u.js → ChevronUp-CwFamE9N.js} +1 -1
  10. package/dist/client/assets/{Circle-DFIMbbWU.js → Circle-CiLEMRF7.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-wzt5Huxh.js → DotsVertical-CvN-6TGm.js} +1 -1
  12. package/dist/client/assets/Eye-Crm0fWc8.js +1 -0
  13. package/dist/client/assets/{FilterLines-0m6crn3m.js → FilterLines-DhEPbNtn.js} +1 -1
  14. package/dist/client/assets/{Flag01-D_fUJHwZ.js → Flag01-DHYN2ITD.js} +1 -1
  15. package/dist/client/assets/{Globe01-Bwt4oV0U.js → Globe01-EXxKjoDP.js} +1 -1
  16. package/dist/client/assets/{Globe04-CD717DpH.js → Globe04-CyHtR7Xq.js} +1 -1
  17. package/dist/client/assets/{HardDrive-Cq-YbPK9.js → HardDrive-BwtXhqoG.js} +1 -1
  18. package/dist/client/assets/{Key01-DTTa_ngJ.js → Key01-DqYgnHzv.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-CY_ilnE-.js → LayoutLeft-BfyPC0vA.js} +1 -1
  20. package/dist/client/assets/{LinkExternal01-Cc-TIWai.js → LinkExternal01-BsTWt8sH.js} +1 -1
  21. package/dist/client/assets/{List-1sCiilk_.js → List-KtE3C1yb.js} +1 -1
  22. package/dist/client/assets/{Monitor01-BA72KgrB.js → Monitor01-FGLg_IL_.js} +1 -1
  23. package/dist/client/assets/{Package-PE508kJN.js → Package-Bz1GVVNZ.js} +1 -1
  24. package/dist/client/assets/{Palette-CKmdnXoY.js → Palette-CbcRRXDB.js} +1 -1
  25. package/dist/client/assets/{Play-CcnDti9J.js → Play-DN8oYzat.js} +1 -1
  26. package/dist/client/assets/{Plus-Dg6Y61Qh.js → Plus-C71qqDM4.js} +1 -1
  27. package/dist/client/assets/{SearchLg-DCvqx7mk.js → SearchLg-BbZoqL9z.js} +1 -1
  28. package/dist/client/assets/{SearchMd-CxXAIK8q.js → SearchMd-DR1ioasc.js} +1 -1
  29. package/dist/client/assets/{Settings02-Rjz2fibP.js → Settings02-BLiiKPo9.js} +1 -1
  30. package/dist/client/assets/{Shield01-DoN422Fp.js → Shield01-BjR98a2u.js} +1 -1
  31. package/dist/client/assets/{Star01-kGVgFut9.js → Star01-NZv64KuS.js} +1 -1
  32. package/dist/client/assets/{Stars01-BMHX9PwN.js → Stars01-BFqzMUYe.js} +1 -1
  33. package/dist/client/assets/{Stars02-pEQdLQRy.js → Stars02-6wfckdbQ.js} +1 -1
  34. package/dist/client/assets/{Sun-gRl2Ql5n.js → Sun-C3lr5acE.js} +1 -1
  35. package/dist/client/assets/{SwitchHorizontal01-UaHGqUVt.js → SwitchHorizontal01-CvnrV1Ss.js} +1 -1
  36. package/dist/client/assets/{Tool01-Dym7sffh.js → Tool01-BRuku8p6.js} +1 -1
  37. package/dist/client/assets/{Tool02-DWpgQDA_.js → Tool02-CsbC1h0H.js} +1 -1
  38. package/dist/client/assets/{Trash01-FLsHPD-j.js → Trash01-CAbitbOy.js} +1 -1
  39. package/dist/client/assets/{TrendUp01-DJyrqfDN.js → TrendUp01-B0vQUe-2.js} +1 -1
  40. package/dist/client/assets/{Upload01-Bf-wW3fT.js → Upload01-j42Gt55i.js} +1 -1
  41. package/dist/client/assets/{User01-Bp8xCtim.js → User01-C0v0Cg8R.js} +1 -1
  42. package/dist/client/assets/{UserPlus01-CxsIZHHu.js → UserPlus01-BWyLd0kf.js} +1 -1
  43. package/dist/client/assets/{Users01-CUB4jTbh.js → Users01-5V94WnNK.js} +1 -1
  44. package/dist/client/assets/{Users03-C601mmDP.js → Users03-ogDkhx9Y.js} +1 -1
  45. package/dist/client/assets/{X-Dg3UHk4M.js → X-BKblVRor.js} +1 -1
  46. package/dist/client/assets/{XCircle-BVO-AfDl.js → XCircle-BAVav0_a.js} +1 -1
  47. package/dist/client/assets/{XClose-CSAbqx7t.js → XClose-CzHtkKE-.js} +1 -1
  48. package/dist/client/assets/{Zap-C5e_tw0_.js → Zap-C6KSj1Po.js} +1 -1
  49. package/dist/client/assets/{ZapSquare-CYxtM-xd.js → ZapSquare-BauCMbGy.js} +1 -1
  50. package/dist/client/assets/{ZoomOut-FOnWv2R3.js → ZoomOut-FGlBDz8d.js} +1 -1
  51. package/dist/client/assets/{access-gate-DQJOwmen.js → access-gate-B58jjHBA.js} +1 -1
  52. package/dist/client/assets/{add-section-modal-DI0ZRr1J.js → add-section-modal-DfME8hl4.js} +1 -1
  53. package/dist/client/assets/agent-icon-BVfq3Ckt.js +1 -0
  54. package/dist/client/assets/agents-list-ByUhkeZ-.js +1 -0
  55. package/dist/client/assets/ai-providers-Cnm55uXz.js +1 -0
  56. package/dist/client/assets/{alert-BDhkte4t.js → alert-Dbzy6yVg.js} +1 -1
  57. package/dist/client/assets/{alert-dialog-NEl6qUgZ.js → alert-dialog-CjJ0MprR.js} +1 -1
  58. package/dist/client/assets/app-editor-kbhrsDq4.js +1 -0
  59. package/dist/client/assets/{auth-JAYu2Sn7.js → auth-DQH5ADuT.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-Cgz9JzrM.js → auth-catchall-DdIEG54H.js} +1 -1
  61. package/dist/client/assets/{auth-entry-DrKXHOq7.js → auth-entry-B2VVF5bU.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-B2IihxK4.js → auth-split-layout-8RSVdRlQ.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-CHpUAxht.js → authenticate-and-persist-oauth-BtB_UiTy.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-BqcM-T9k.js → automation-list-row-CYPIMX1R.js} +1 -1
  65. package/dist/client/assets/{automation-runs-CG9qLUqb.js → automation-runs-BxQad3FA.js} +10 -10
  66. package/dist/client/assets/automations-BVdoJ3cB.js +1 -0
  67. package/dist/client/assets/{autosend-BOPTLlfV.js → autosend-DlZEOkKM.js} +1 -1
  68. package/dist/client/assets/{avatar-B8GP78HG.js → avatar-DCZzNiXK.js} +1 -1
  69. package/dist/client/assets/{badge-DAQJGlmB.js → badge-DTm78NBm.js} +1 -1
  70. package/dist/client/assets/{block-document-jnC_u02j.js → block-document-BJKgkJQ2.js} +1 -1
  71. package/dist/client/assets/{brand-context-2o9hRue5.js → brand-context-VAcd39na.js} +1 -1
  72. package/dist/client/assets/{buckets-BtaV1x-j.js → buckets-BbGYQea6.js} +1 -1
  73. package/dist/client/assets/bulk-category-panel-ByMHuZCz.js +1 -0
  74. package/dist/client/assets/{calendar-C6LcfVwu.js → calendar-iqWWt0hF.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-BX02m8_A.js → capability-load-error-CWJsPlPL.js} +1 -1
  76. package/dist/client/assets/{card-B5uBFViO.js → card-DHz8ooeJ.js} +1 -1
  77. package/dist/client/assets/category-editor-CtCzQwg0.js +1 -0
  78. package/dist/client/assets/{chat-context-Csy5cRMg.js → chat-context-1pa1CKxF.js} +1 -1
  79. package/dist/client/assets/{checkbox-BfaUpDdG.js → checkbox-BK-8v84_.js} +1 -1
  80. package/dist/client/assets/{cli-auth-success-C2yADy5e.js → cli-auth-success-B-n9U2U7.js} +1 -1
  81. package/dist/client/assets/collection-detail-CAI9ZNO3.js +1 -0
  82. package/dist/client/assets/{collection-display-button-75P1XTko.js → collection-display-button-BxC_Cyl3.js} +1 -1
  83. package/dist/client/assets/{collection-search-Qnz6jxTV.js → collection-search-DV2rbuud.js} +1 -1
  84. package/dist/client/assets/{collection-table-wrapper-C14aED27.js → collection-table-wrapper-CCKVG3yX.js} +1 -1
  85. package/dist/client/assets/{collection-tabs-BCpGbCT5.js → collection-tabs-BIpbo2rj.js} +1 -1
  86. package/dist/client/assets/{command-CaofFN3p.js → command-CslzUMNw.js} +1 -1
  87. package/dist/client/assets/commerce-onboarding-BfI5wcZG.js +1 -0
  88. package/dist/client/assets/{companions-core-DcZqHo8p.js → companions-core-BX7g_mac.js} +1 -1
  89. package/dist/client/assets/connect-desktop-dialog-O-wZuV-E.js +1 -0
  90. package/dist/client/assets/{connection-card-CL_n4ga5.js → connection-card-0t1G03wd.js} +1 -1
  91. package/dist/client/assets/connection-detail-CMXEGKVS.js +1 -0
  92. package/dist/client/assets/{connection-form-helpers-Dx2pWKQg.js → connection-form-helpers-IjsHpmaB.js} +1 -1
  93. package/dist/client/assets/connections-CohFh0Kh.js +1 -0
  94. package/dist/client/assets/{decopilot-sse-pool-DhL2hPm4.js → decopilot-sse-pool-Cf5W6rkW.js} +1 -1
  95. package/dist/client/assets/{dialog-94MC6GNA.js → dialog-V8g9rmKX.js} +1 -1
  96. package/dist/client/assets/{domain-settings-6cMISGv0.js → domain-settings-DdrTtaI5.js} +1 -1
  97. package/dist/client/assets/{drawer-Co_r3vYF.js → drawer-CqZAp2Ve.js} +1 -1
  98. package/dist/client/assets/{dropdown-menu-CwZxSb5T.js → dropdown-menu-Bf0Emj3g.js} +1 -1
  99. package/dist/client/assets/{empty-state-BAbUNiFM.js → empty-state-BOKM0s0U.js} +1 -1
  100. package/dist/client/assets/{extract-connection-data-kn2oock2.js → extract-connection-data-BvpK-wkr.js} +1 -1
  101. package/dist/client/assets/file-explorer-BczQtUew.js +2 -0
  102. package/dist/client/assets/{file-type-icon-cxQD2Gow.js → file-type-icon-DOirDhA-.js} +1 -1
  103. package/dist/client/assets/{files-CcGZ4JiL.js → files-BKPqA0o2.js} +1 -1
  104. package/dist/client/assets/{form-DkmV3bZG.js → form-2ZO0r91a.js} +1 -1
  105. package/dist/client/assets/{general-DKb_Qm-7.js → general-D2qpnOax.js} +1 -1
  106. package/dist/client/assets/{github-repo-picker-ZKvJa1LN.js → github-repo-picker-BFPQeimg.js} +1 -1
  107. package/dist/client/assets/{hooks-gTEmV-hn.js → hooks-C2OlDGjF.js} +1 -1
  108. package/dist/client/assets/{index-DYZDo-Fd.js → index-BTayngqq.js} +1 -1
  109. package/dist/client/assets/{index-CC1ISC2f.js → index-Bn4UyfkI.js} +1 -1
  110. package/dist/client/assets/index-BtlGIDNL.js +519 -0
  111. package/dist/client/assets/{index-HcnPt-QL.js → index-C0PPNYeB.js} +1 -1
  112. package/dist/client/assets/{index-BxUWUc0Q.js → index-CAuH-l1b.js} +4 -4
  113. package/dist/client/assets/{index-Cw_MOEue.js → index-CGTHviax.js} +3 -3
  114. package/dist/client/assets/{index-CXseUXwz.js → index-CXKfdpUA.js} +1 -1
  115. package/dist/client/assets/{index-Ce2Igu8Z.js → index-C_tFoG_P.js} +1 -1
  116. package/dist/client/assets/{index-BOigHE8Y.js → index-Cy15t5cr.js} +1 -1
  117. package/dist/client/assets/index-D6-3ASRa.js +2 -0
  118. package/dist/client/assets/{index-CBrazrjF.js → index-DP6dDVUO.js} +3 -3
  119. package/dist/client/assets/{index-DFa2bm2W.js → index-DlIOc0S1.js} +1 -1
  120. package/dist/client/assets/{index-C3jqpDLL.js → index-bKLqoTtu.js} +1 -1
  121. package/dist/client/assets/index-dfVMbSWM.js +1 -0
  122. package/dist/client/assets/{index-redirect-CiVAic-b.js → index-redirect-CIRkzF2h.js} +1 -1
  123. package/dist/client/assets/{input-C57OE_bz.js → input-DipaAOGH.js} +1 -1
  124. package/dist/client/assets/{integration-icon-B9AX6sxk.js → integration-icon-BJYN4Otn.js} +1 -1
  125. package/dist/client/assets/{invite-member-dialog-hx-Vtguq.js → invite-member-dialog-DgTV0AZv.js} +1 -1
  126. package/dist/client/assets/{label-wqLdGJT0.js → label-91i-cgZz.js} +1 -1
  127. package/dist/client/assets/{layout-DL1n-2wE.js → layout-BexE6RdD.js} +1 -1
  128. package/dist/client/assets/{login-CFcAh8bA.js → login-Bi2t3k7J.js} +1 -1
  129. package/dist/client/assets/{mcp-oauth-CaQ5w7vv.js → mcp-oauth-Csr3SfWU.js} +1 -1
  130. package/dist/client/assets/{members-BAjXYSQt.js → members-B8i3cJ_0.js} +1 -1
  131. package/dist/client/assets/{monaco-editor-DOlDq43r.js → monaco-editor-BciiXeZx.js} +1 -1
  132. package/dist/client/assets/{monitoring-stats-row-nS4gMGbj.js → monitoring-stats-row-C9W0P827.js} +1 -1
  133. package/dist/client/assets/{oauth-callback-ZhS1jSul.js → oauth-callback-CCQdnJrn.js} +1 -1
  134. package/dist/client/assets/{oauth-callback-ai-provider-DlYmR-ko.js → oauth-callback-ai-provider-E_iMx_2P.js} +1 -1
  135. package/dist/client/assets/{onboarding-C30KM3Il.js → onboarding-uTxEYSCl.js} +1 -1
  136. package/dist/client/assets/{org-install-Dov3tr6h.js → org-install-93UVwrLW.js} +1 -1
  137. package/dist/client/assets/{org-layout-C-r61Ynx.js → org-layout-CZ8yu5mm.js} +1 -1
  138. package/dist/client/assets/{organization-choice-BfZpkHfP.js → organization-choice-DRH2NSXd.js} +1 -1
  139. package/dist/client/assets/{orgs-DlU5vUAi.js → orgs-DcI5HMn5.js} +1 -1
  140. package/dist/client/assets/{page-seo-form-wNQQn_dv.js → page-seo-form-CWO7GqCc.js} +1 -1
  141. package/dist/client/assets/page-seo-sheet-Wt9aqor5.js +1 -0
  142. package/dist/client/assets/{popover-YRjoqx5c.js → popover-CCakL31I.js} +1 -1
  143. package/dist/client/assets/post-editor-BO9NFBxa.js +1 -0
  144. package/dist/client/assets/primitives-BTwBrP98.js +1 -0
  145. package/dist/client/assets/{profile-CnQ30y2Q.js → profile-BW_IUz9M.js} +1 -1
  146. package/dist/client/assets/project-app-view-C2R8_dVp.js +1 -0
  147. package/dist/client/assets/record-editor-DaSoWRrr.js +1 -0
  148. package/dist/client/assets/redirect-editor-e00x_BJS.js +1 -0
  149. package/dist/client/assets/registry-DGxIfb-o.js +2 -0
  150. package/dist/client/assets/{registry-layout-DVCFd28u.js → registry-layout-DTccjHuk.js} +2 -2
  151. package/dist/client/assets/{reports-xVM-jqFU.js → reports-C33k7juz.js} +1 -1
  152. package/dist/client/assets/{require-capability-wLbHZZOZ.js → require-capability-ByiUgitf.js} +1 -1
  153. package/dist/client/assets/{required-auth-layout-CkCZ1VH2.js → required-auth-layout-DgUtuXK-.js} +1 -1
  154. package/dist/client/assets/{reset-password-D2Bs61Iv.js → reset-password-Cuw6Kog-.js} +1 -1
  155. package/dist/client/assets/roles-DfpOwvAM.js +1 -0
  156. package/dist/client/assets/{search-input-CqxCn4Rx.js → search-input-CpfboEVb.js} +1 -1
  157. package/dist/client/assets/{secrets-qpRPZVro.js → secrets-f2N7fpeN.js} +1 -1
  158. package/dist/client/assets/{sections-editor-3nxhaKth.js → sections-editor-DBxI8xtq.js} +2 -2
  159. package/dist/client/assets/{select-model-Ivlt_Hjk.js → select-model-Do_Zeixu.js} +1 -1
  160. package/dist/client/assets/{select-BbQScYUM.js → select-mp3D5FT9.js} +1 -1
  161. package/dist/client/assets/self-tool-result-CYhjYXKS.js +1 -0
  162. package/dist/client/assets/seo-editor-D6R9A33P.js +1 -0
  163. package/dist/client/assets/{settings-layout-Demq1bVu.js → settings-layout-Cl5JJiD2.js} +1 -1
  164. package/dist/client/assets/{settings-section-kWU5lPTB.js → settings-section-BNVYZ4Oq.js} +1 -1
  165. package/dist/client/assets/{shell-controls-LyDwufi9.js → shell-controls-D0BnrI5h.js} +1 -1
  166. package/dist/client/assets/{shell-layout-C3vwcwKJ.js → shell-layout-CLq69Ei-.js} +1 -1
  167. package/dist/client/assets/{sidebar-B4yomm08.js → sidebar-C5yvA39z.js} +1 -1
  168. package/dist/client/assets/{skeleton-Dn-HzxdH.js → skeleton-dSw1s9Un.js} +1 -1
  169. package/dist/client/assets/{sso-DQ2NY5wZ.js → sso-DIc0yAIQ.js} +1 -1
  170. package/dist/client/assets/{store-DjRJNmMy.js → store-Bv1_2z7O.js} +1 -1
  171. package/dist/client/assets/store-registry-Cf6TFWHZ.js +2 -0
  172. package/dist/client/assets/{studio-tools-bcpgTNof.js → studio-tools-BQ1THIqL.js} +1 -1
  173. package/dist/client/assets/{switch-Dj8a0W96.js → switch-ZuIUz68E.js} +1 -1
  174. package/dist/client/assets/{table-D6kZLJZo.js → table-CmKqgiXY.js} +1 -1
  175. package/dist/client/assets/{tabs-uog8ypZ5.js → tabs-CLouOeXk.js} +1 -1
  176. package/dist/client/assets/{textarea-D96KZ_bk.js → textarea-BI6Yay_V.js} +1 -1
  177. package/dist/client/assets/{toggle-group-xXar88Zl.js → toggle-group-DOOpkxbq.js} +1 -1
  178. package/dist/client/assets/{toolbar-DF6E_99x.js → toolbar-D4-n442m.js} +1 -1
  179. package/dist/client/assets/{toolbar-icon-button-CwX9OsPP.js → toolbar-icon-button-CUDSfsZH.js} +1 -1
  180. package/dist/client/assets/{tools-list-DyJkBr3l.js → tools-list-CpAONP2u.js} +1 -1
  181. package/dist/client/assets/{tooltip-CEMhn06S.js → tooltip-CK5pUwIY.js} +1 -1
  182. package/dist/client/assets/{use-ai-providers-CfC4MjYU.js → use-ai-providers-DeDr668A.js} +1 -1
  183. package/dist/client/assets/{use-automations-BV8BAFK6.js → use-automations-C1idifJX.js} +1 -1
  184. package/dist/client/assets/use-autosave-BXaCfnzt.js +1 -0
  185. package/dist/client/assets/{use-capability-IeWRUHjn.js → use-capability-CD05lfRa.js} +1 -1
  186. package/dist/client/assets/{use-clock-tick-BoYgP8-u.js → use-clock-tick-DvMqIG82.js} +1 -1
  187. package/dist/client/assets/{use-collections-Mmumb7Jv.js → use-collections-BrJ2wTlq.js} +1 -1
  188. package/dist/client/assets/{use-connection-BwHNV7F-.js → use-connection-DGbsalE9.js} +1 -1
  189. package/dist/client/assets/{use-copy-DwaNL7ao.js → use-copy-Cb9wNpTY.js} +1 -1
  190. package/dist/client/assets/{use-create-virtual-mcp-D2T3uhyt.js → use-create-virtual-mcp-CNJ39nPd.js} +1 -1
  191. package/dist/client/assets/{use-debounced-autosave-CAJHdpnz.js → use-debounced-autosave-DHiHE5dI.js} +1 -1
  192. package/dist/client/assets/{use-debounced-value-B3ktPBBI.js → use-debounced-value-C1kbI-cG.js} +1 -1
  193. package/dist/client/assets/{use-deco-credits-JXELkRA8.js → use-deco-credits-DErpDk9O.js} +1 -1
  194. package/dist/client/assets/{use-decopilot-events-Cy3Splz7.js → use-decopilot-events-DPqDrLC-.js} +1 -1
  195. package/dist/client/assets/{use-delete-connection-CxJzNx9n.js → use-delete-connection-BHUDVL9B.js} +1 -1
  196. package/dist/client/assets/{use-deployment-admin-BTxxZCfp.js → use-deployment-admin-C9_AZ4ZY.js} +1 -1
  197. package/dist/client/assets/{use-file-configs-C5MIjZBk.js → use-file-configs-w823DbiW.js} +1 -1
  198. package/dist/client/assets/{use-infinite-scroll-BJxks4Oh.js → use-infinite-scroll-D-1GUBfD.js} +1 -1
  199. package/dist/client/assets/{use-join-requests-DY-BgYQ_.js → use-join-requests-DIXxEqrC.js} +1 -1
  200. package/dist/client/assets/{use-mcp-client-CwxQ2mu8.js → use-mcp-client-Cu6iUBe0.js} +1 -1
  201. package/dist/client/assets/{use-mcp-tools-DS-HH6so.js → use-mcp-tools-COIeiXZi.js} +1 -1
  202. package/dist/client/assets/{use-members-HgTG6V2z.js → use-members-DbdLI8y4.js} +1 -1
  203. package/dist/client/assets/{use-mobile-CDGvObYb.js → use-mobile-C2K7ruQ_.js} +1 -1
  204. package/dist/client/assets/{use-navigate-to-agent-JH1aTgiP.js → use-navigate-to-agent-DiZ81e2-.js} +1 -1
  205. package/dist/client/assets/{use-org-auth-client-CR847Rtk.js → use-org-auth-client-hQNwY76Z.js} +1 -1
  206. package/dist/client/assets/{use-org-sso-_zvIWw2Z.js → use-org-sso-1-12BWJa.js} +1 -1
  207. package/dist/client/assets/{use-organization-roles-BbeankM2.js → use-organization-roles-GQHGcEzS.js} +1 -1
  208. package/dist/client/assets/{use-organization-settings-D2FVOkxT.js → use-organization-settings-COHYcie_.js} +1 -1
  209. package/dist/client/assets/{use-registry-connections-DYAxxhes.js → use-registry-connections-CmY0yEfV.js} +1 -1
  210. package/dist/client/assets/{use-secrets-DVIAQNCJ.js → use-secrets-Dd78lBx6.js} +1 -1
  211. package/dist/client/assets/{use-status-sounds-BkjfcEfu.js → use-status-sounds-CWpGFN4x.js} +1 -1
  212. package/dist/client/assets/{use-view-mode-CsLEkxLJ.js → use-view-mode-SLCW4FDv.js} +1 -1
  213. package/dist/client/assets/{use-virtual-mcp-R-nHNI8F.js → use-virtual-mcp-BNqsGhFk.js} +1 -1
  214. package/dist/client/assets/useInfiniteQuery-CXhObJEg.js +1 -0
  215. package/dist/client/assets/{useRouterState-Cc9PhPdx.js → useRouterState-hOIX0YUN.js} +1 -1
  216. package/dist/client/assets/useSuspenseInfiniteQuery-B-uJjKMD.js +1 -0
  217. package/dist/client/assets/{users-CpC44hMP.js → users-C8shoBPx.js} +1 -1
  218. package/dist/client/assets/variant-calendar-v6BEXJ5O.js +1 -0
  219. package/dist/client/assets/{view-mode-toggle-CAR5myEG.js → view-mode-toggle-EhqPVtmY.js} +1 -1
  220. package/dist/client/index.html +1 -1
  221. package/dist/server/cli.js +1 -1
  222. package/dist/server/server.js +1 -1
  223. package/package.json +1 -1
  224. package/dist/client/assets/Copy01-LCtBKUFe.js +0 -1
  225. package/dist/client/assets/Eye-CTCWS-BQ.js +0 -1
  226. package/dist/client/assets/agent-icon-BF217Hvb.js +0 -1
  227. package/dist/client/assets/agents-list-BOzpPY1B.js +0 -1
  228. package/dist/client/assets/ai-providers-DYUJycRo.js +0 -1
  229. package/dist/client/assets/app-editor-B0LyS2cF.js +0 -1
  230. package/dist/client/assets/automations-CqaC3ITe.js +0 -1
  231. package/dist/client/assets/bulk-category-panel-CsQAiHNK.js +0 -1
  232. package/dist/client/assets/category-editor-CB5l-iJg.js +0 -1
  233. package/dist/client/assets/collection-detail-DUlRTL-K.js +0 -1
  234. package/dist/client/assets/commerce-onboarding-B6RlPqiN.js +0 -1
  235. package/dist/client/assets/connect-desktop-dialog-Dd78-wLs.js +0 -1
  236. package/dist/client/assets/connection-detail-DyOveWRW.js +0 -1
  237. package/dist/client/assets/connections-Bg5digaa.js +0 -1
  238. package/dist/client/assets/file-explorer-CvWK-izX.js +0 -2
  239. package/dist/client/assets/index-DFZw1AWG.js +0 -2
  240. package/dist/client/assets/index-DecIG0NH.js +0 -1
  241. package/dist/client/assets/index-F9o1E2LM.js +0 -519
  242. package/dist/client/assets/page-seo-sheet-Zcv6el6V.js +0 -1
  243. package/dist/client/assets/post-editor-u5ErFP-V.js +0 -1
  244. package/dist/client/assets/primitives-BdN7cTl_.js +0 -1
  245. package/dist/client/assets/project-app-view-BEk1Bg1Q.js +0 -1
  246. package/dist/client/assets/record-editor-V7CpHQBF.js +0 -1
  247. package/dist/client/assets/registry-ePWsWM0c.js +0 -2
  248. package/dist/client/assets/roles-B7SYVuty.js +0 -1
  249. package/dist/client/assets/self-tool-result-DKljt9Fd.js +0 -1
  250. package/dist/client/assets/seo-editor--BAcfPmJ.js +0 -1
  251. package/dist/client/assets/store-registry-DKWSaM3m.js +0 -2
  252. package/dist/client/assets/useInfiniteQuery-DNK1YDMj.js +0 -1
  253. package/dist/client/assets/useSuspenseInfiniteQuery-DIBoNO1Z.js +0 -1
  254. package/dist/client/assets/variant-calendar-0EdePQ2u.js +0 -1
@@ -1 +0,0 @@
1
- import{r as E,c as oe,j as t,E as Ye,i as ce,C as be,b as _e,u as Ze,a as Ne,z as et,G as tt,D as nt,M as st,J as ot,B as U,p as te,n as it,l as de,t as W,K as rt}from"./index-Cw_MOEue.js";import{g as lt,a as De,b as at,e as ct}from"./extract-connection-data-kn2oock2.js";import{C as dt}from"./collection-display-button-75P1XTko.js";import{S as mt}from"./search-input-CqxCn4Rx.js";import{C as ut}from"./collection-tabs-BCpGbCT5.js";import{u as pt,a as ke,g as ht,C as Ce}from"./connection-card-CL_n4ga5.js";import{E as gt}from"./empty-state-BAbUNiFM.js";import{I as xt}from"./integration-icon-B9AX6sxk.js";import{P as ue}from"./index-BOigHE8Y.js";import{u as ft,D as jt}from"./use-delete-connection-CxJzNx9n.js";import{u as ye}from"./use-capability-IeWRUHjn.js";import{u as yt}from"./use-infinite-scroll-BJxks4Oh.js";import{u as Ct}from"./use-view-mode-CsLEkxLJ.js";import{g as he}from"./connection-slug-eyAPH6o3.js";import{c as Ae,d as we,b as Te,A as Ie,e as Pe,g as $e,a as Le,f as Oe}from"./alert-dialog-NEl6qUgZ.js";import{C as Fe}from"./checkbox-BfaUpDdG.js";import{e as Me,d as ze,D as Ve,a as Ee,h as Be,c as Ke}from"./dialog-94MC6GNA.js";import{D as vt,a as St,c as bt,b as _t,d as Nt,e as Dt,f as kt}from"./drawer-Co_r3vYF.js";import{u as At}from"./use-mobile-CDGvObYb.js";import{D as Ue,a as Re,c as He,d as re}from"./dropdown-menu-CwZxSb5T.js";import{F as Q,b as J,c as Y,d as Z,f as ee,a as ve}from"./form-DkmV3bZG.js";import{I as ie}from"./input-C57OE_bz.js";import{S as wt,a as Tt,b as It,c as Pt,d as ae}from"./select-BbQScYUM.js";import{T as $t}from"./textarea-D96KZ_bk.js";import{b as We,u as Lt}from"./use-connection-BwHNV7F-.js";import{u as Ot}from"./use-virtual-mcp-R-nHNI8F.js";import{u as Ft}from"./studio-tools-bcpgTNof.js";import{aj as Mt,am as zt,N as Vt,M as Et}from"./agent-icon-BF217Hvb.js";import{n as ge}from"./Tool02-DWpgQDA_.js";import{i as Xe}from"./DotsVertical-wzt5Huxh.js";import{s as qe}from"./Eye-CTCWS-BQ.js";import{s as je}from"./Star01-kGVgFut9.js";import{s as Ge}from"./Plus-Dg6Y61Qh.js";import{s as Qe}from"./Trash01-FLsHPD-j.js";import{s as Je}from"./XClose-CSAbqx7t.js";import{i as pe,a as Se,E as Bt,c as Kt,p as Ut,b as Rt,d as Ht}from"./connection-form-helpers-Dx2pWKQg.js";import{a as Wt}from"./authenticate-and-persist-oauth-CHpUAxht.js";import"./use-mcp-client-CwxQ2mu8.js";import"./constants-D_FQAPnt.js";import"./auth-JAYu2Sn7.js";import"./ArrowUp-Cx_--6Z7.js";import"./Check-qklIr9eC.js";import"./SwitchHorizontal01-UaHGqUVt.js";import"./List-1sCiilk_.js";import"./tooltip-CEMhn06S.js";import"./view-mode-toggle-CAR5myEG.js";import"./badge-DAQJGlmB.js";import"./SearchMd-CxXAIK8q.js";import"./use-registry-connections-DYAxxhes.js";import"./use-organization-settings-D2FVOkxT.js";import"./useInfiniteQuery-DNK1YDMj.js";import"./card-B5uBFViO.js";import"./sidebar-B4yomm08.js";import"./LayoutLeft-CY_ilnE-.js";import"./X-Dg3UHk4M.js";import"./ChevronRight-DX001g0F.js";import"./Circle-DFIMbbWU.js";import"./label-wqLdGJT0.js";import"./ChevronDown-Dqw9pJbF.js";import"./ChevronUp-C-6o6d8u.js";import"./use-collections-Mmumb7Jv.js";import"./AlertCircle-CeJgODlb.js";import"./UserPlus01-CxsIZHHu.js";import"./Tool01-Dym7sffh.js";import"./Settings02-Rjz2fibP.js";import"./XCircle-BVO-AfDl.js";import"./ArrowUpRight-ywfBK9uD.js";import"./TrendUp01-DJyrqfDN.js";import"./ZapSquare-CYxtM-xd.js";import"./Users03-C601mmDP.js";import"./CheckCircle-B5HHFx3h.js";import"./Stars02-pEQdLQRy.js";import"./Copy01-LCtBKUFe.js";import"./ZoomOut-FOnWv2R3.js";import"./Globe01-Bwt4oV0U.js";import"./FilterLines-0m6crn3m.js";import"./Flag01-D_fUJHwZ.js";import"./Globe04-CD717DpH.js";import"./HardDrive-Cq-YbPK9.js";import"./Key01-DTTa_ngJ.js";import"./LinkExternal01-Cc-TIWai.js";import"./Monitor01-BA72KgrB.js";import"./Sun-gRl2Ql5n.js";import"./Package-PE508kJN.js";import"./Palette-CKmdnXoY.js";import"./Play-CcnDti9J.js";import"./SearchLg-DCvqx7mk.js";import"./Shield01-DoN422Fp.js";import"./Stars01-BMHX9PwN.js";import"./Upload01-Bf-wW3fT.js";import"./User01-Bp8xCtim.js";import"./Users01-CUB4jTbh.js";import"./Zap-C5e_tw0_.js";import"./mcp-oauth-CaQ5w7vv.js";function Xt(f){const e=`deco-filters-${f}`,[n,p]=E.useState(()=>{try{const o=globalThis.localStorage?.getItem(e);if(o)return JSON.parse(o)}catch(o){console.error("Failed to parse stored filters:",o)}return[]});return[n,o=>{p(o);try{globalThis.localStorage?.setItem(e,JSON.stringify(o))}catch(i){console.error("Failed to save filters:",i)}}]}function qt(f){const e=oe.c(7),[n,p]=E.useState(f),[l,o]=E.useState(f?"desc":null);let i;e[0]!==l||e[1]!==n?(i=j=>{n!==j?(p(j),o("asc")):l==="asc"?o("desc"):l==="desc"&&(p(void 0),o(null))},e[0]=l,e[1]=n,e[2]=i):i=e[2];const g=i;let h;return e[3]!==g||e[4]!==l||e[5]!==n?(h={sortKey:n,sortDirection:l,handleSort:g},e[3]=g,e[4]=l,e[5]=n,e[6]=h):h=e[6],h}function Gt(f){const e=oe.c(20),{namespace:n,resource:p,defaultSortKey:l,defaultViewMode:o}=f,i=l===void 0?"title":l,g=o===void 0?"table":o,[h,j]=E.useState(""),y=E.useDeferredValue(h),N=`${n}-${p}`,[b,a]=Xt(N),x=`mesh-${p}-filter-visible-${n}`;let m;e[0]!==x?(m=()=>globalThis.localStorage?.getItem(x)==="true",e[0]=x,e[1]=m):m=e[1];const[v,_]=E.useState(m);let D;e[2]!==x?(D=T=>{_(T),globalThis.localStorage?.setItem(x,String(T))},e[2]=x,e[3]=D):D=e[3];const L=D;let O;e[4]!==v||e[5]!==L?(O=()=>{L(!v)},e[4]=v,e[5]=L,e[6]=O):O=e[6];const s=O,[A,F]=Ct(`mesh-${p}-${n}`,g),{sortKey:M,sortDirection:w,handleSort:P}=qt(i),z=M;let C;return e[7]!==v||e[8]!==b||e[9]!==P||e[10]!==h||e[11]!==y||e[12]!==L||e[13]!==a||e[14]!==F||e[15]!==w||e[16]!==z||e[17]!==s||e[18]!==A?(C={search:h,searchTerm:y,setSearch:j,filters:b,setFilters:a,filterBarVisible:v,setFilterBarVisible:L,toggleFilterBar:s,viewMode:A,setViewMode:F,sortKey:z,sortDirection:w,handleSort:P},e[7]=v,e[8]=b,e[9]=P,e[10]=h,e[11]=y,e[12]=L,e[13]=a,e[14]=F,e[15]=w,e[16]=z,e[17]=s,e[18]=A,e[19]=C):C=e[19],C}function Qt(f){const e=oe.c(51),{group:n,onOpen:p,selectionMode:l,selectedIds:o,onToggleSelect:i}=f;let g;if(e[0]!==n.connections||e[1]!==o){let C;e[3]!==o?(C=T=>o.has(T.id),e[3]=o,e[4]=C):C=e[4],g=n.connections.every(C),e[0]=n.connections,e[1]=o,e[2]=g}else g=e[2];const h=g;let j;if(e[5]!==n.connections||e[6]!==o){let C;e[8]!==o?(C=T=>o.has(T.id),e[8]=o,e[9]=C):C=e[9],j=n.connections.some(C),e[5]=n.connections,e[6]=o,e[7]=j}else j=e[7];const y=j,N=`${n.connections.length} instances`;let b;e[10]!==n.icon||e[11]!==n.title||e[12]!==N?(b={title:n.title,icon:n.icon,description:N},e[10]=n.icon,e[11]=n.title,e[12]=N,e[13]=b):b=e[13];let a;e[14]!==h||e[15]!==n.connections||e[16]!==p||e[17]!==i||e[18]!==o||e[19]!==l?(a=()=>l?(()=>{for(const C of n.connections)h?o.has(C.id)&&i(C.id):o.has(C.id)||i(C.id)})():p(),e[14]=h,e[15]=n.connections,e[16]=p,e[17]=i,e[18]=o,e[19]=l,e[20]=a):a=e[20];const x=l&&h&&"ring-2 ring-primary",m=l&&y&&!h&&"ring-1 ring-primary/50";let v;e[21]!==x||e[22]!==m?(v=de(x,m),e[21]=x,e[22]=m,e[23]=v):v=e[23];let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(ge,{}),e[24]=_):_=e[24];let D;e[25]!==h||e[26]!==n.connections||e[27]!==i||e[28]!==o||e[29]!==l||e[30]!==y?(D=l?t.jsx(Fe,{checked:h?!0:y?"indeterminate":!1,onCheckedChange:()=>{for(const C of n.connections)h?o.has(C.id)&&i(C.id):o.has(C.id)||i(C.id)}}):t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"Connected"}),t.jsxs("span",{className:"text-xs text-muted-foreground font-normal tabular-nums",children:["x",n.connections.length]})]}),e[25]=h,e[26]=n.connections,e[27]=i,e[28]=o,e[29]=l,e[30]=y,e[31]=D):D=e[31];const L=l?"w-8 opacity-100":"w-0 opacity-0 group-hover:w-8 group-hover:opacity-100";let O;e[32]!==L?(O=de("overflow-hidden transition-all duration-150 ease-out",L),e[32]=L,e[33]=O):O=e[33];let s;e[34]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(Re,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Yt,children:t.jsx(Xe,{size:20})})}),e[34]=s):s=e[34];let A;e[35]!==p?(A=C=>{C.stopPropagation(),p()},e[35]=p,e[36]=A):A=e[36];let F;e[37]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(qe,{size:16}),e[37]=F):F=e[37];let M;e[38]!==A?(M=t.jsxs(Ue,{children:[s,t.jsx(He,{align:"end",onClick:Jt,children:t.jsxs(re,{onClick:A,children:[F,"Open"]})})]}),e[38]=A,e[39]=M):M=e[39];let w;e[40]!==O||e[41]!==M?(w=t.jsx("div",{className:O,children:M}),e[40]=O,e[41]=M,e[42]=w):w=e[42];let P;e[43]!==D||e[44]!==w?(P=t.jsxs("div",{className:"flex items-center gap-1",children:[D,w]}),e[43]=D,e[44]=w,e[45]=P):P=e[45];let z;return e[46]!==P||e[47]!==b||e[48]!==a||e[49]!==v?(z=t.jsx(t.Fragment,{children:t.jsx(Ce,{connection:b,onClick:a,className:v,fallbackIcon:_,headerActionsAlwaysVisible:!0,headerActions:P})}),e[46]=P,e[47]=b,e[48]=a,e[49]=v,e[50]=z):z=e[50],z}function Jt(f){return f.stopPropagation()}function Yt(f){return f.stopPropagation()}function Zt(f){const e=oe.c(23),{count:n,total:p,canManage:l,canManageAgents:o,onSelectAll:i,onDeselectAll:g,onDelete:h,onAddToAgent:j,onToggleStatus:y,onCancel:N}=f;if(n===0)return null;let b;e[0]!==n?(b=t.jsxs("div",{className:"text-xs text-muted-foreground pr-1 tabular-nums",children:[n," selected"]}),e[0]=n,e[1]=b):b=e[1];let a;e[2]!==n||e[3]!==g||e[4]!==i||e[5]!==p?(a=n<p?t.jsxs(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:i,children:["Select all (",p,")"]}):t.jsx(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:g,children:"Clear selection"}),e[2]=n,e[3]=g,e[4]=i,e[5]=p,e[6]=a):a=e[6];let x;e[7]!==o||e[8]!==j?(x=o&&t.jsxs(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:j,children:[t.jsx(Ge,{size:13}),"Add to Agent"]}),e[7]=o,e[8]=j,e[9]=x):x=e[9];let m;e[10]!==l||e[11]!==h||e[12]!==y?(m=l&&t.jsxs(t.Fragment,{children:[t.jsx(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:()=>y("active"),children:"Enable"}),t.jsx(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:()=>y("inactive"),children:"Disable"}),t.jsxs(U,{variant:"destructive",size:"sm",className:"h-7 text-xs px-2",onClick:h,children:[t.jsx(Qe,{size:13}),"Delete"]})]}),e[10]=l,e[11]=h,e[12]=y,e[13]=m):m=e[13];let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Je,{size:13}),e[14]=v):v=e[14];let _;e[15]!==N?(_=t.jsx(U,{variant:"ghost",size:"sm",className:"h-7 text-xs px-2",onClick:N,children:v}),e[15]=N,e[16]=_):_=e[16];let D;return e[17]!==b||e[18]!==a||e[19]!==x||e[20]!==m||e[21]!==_?(D=t.jsx("div",{className:"fixed bottom-4 left-1/2 z-50 -translate-x-1/2",children:t.jsxs("div",{className:"rounded-xl border border-border bg-background/95 shadow-lg backdrop-blur px-3 py-2 flex items-center gap-2",children:[b,a,x,m,_]})}),e[17]=b,e[18]=a,e[19]=x,e[20]=m,e[21]=_,e[22]=D):D=e[22],D}function en(f){const e=oe.c(25),{open:n,onOpenChange:p,agents:l,onConfirm:o}=f,[i,g]=E.useState(null);let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsxs(Ve,{children:[t.jsx(Ee,{children:"Add to Agent"}),t.jsx(Be,{children:"Select an agent to add the selected connections to."})]}),e[0]=h):h=e[0];let j;e[1]!==l||e[2]!==i?(j=l.length===0?t.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No agents found"}):l.map(D=>t.jsxs("button",{type:"button",onClick:()=>g(D.id),className:de("flex items-center gap-3 w-full rounded-md px-3 py-2 text-left transition-colors",i===D.id?"bg-primary/10 ring-1 ring-primary":"hover:bg-muted/50"),children:[t.jsx(xt,{icon:D.icon,name:D.title,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:D.title}),D.description&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:D.description})]})]},D.id)),e[1]=l,e[2]=i,e[3]=j):j=e[3];let y;e[4]!==j?(y=t.jsx("div",{className:"max-h-60 overflow-auto py-2 space-y-1",children:j}),e[4]=j,e[5]=y):y=e[5];let N;e[6]!==p?(N=t.jsx(U,{variant:"outline",onClick:()=>p(!1),children:"Cancel"}),e[6]=p,e[7]=N):N=e[7];const b=!i;let a;e[8]!==o||e[9]!==p||e[10]!==i?(a=()=>{i&&(o(i),p(!1),g(null))},e[8]=o,e[9]=p,e[10]=i,e[11]=a):a=e[11];let x;e[12]!==b||e[13]!==a?(x=t.jsx(U,{disabled:b,onClick:a,children:"Add"}),e[12]=b,e[13]=a,e[14]=x):x=e[14];let m;e[15]!==N||e[16]!==x?(m=t.jsxs(Ke,{children:[N,x]}),e[15]=N,e[16]=x,e[17]=m):m=e[17];let v;e[18]!==y||e[19]!==m?(v=t.jsxs(ze,{className:"sm:max-w-[400px]",children:[h,y,m]}),e[18]=y,e[19]=m,e[20]=v):v=e[20];let _;return e[21]!==p||e[22]!==n||e[23]!==v?(_=t.jsx(Me,{open:n,onOpenChange:p,children:v}),e[21]=p,e[22]=n,e[23]=v,e[24]=_):_=e[24],_}function tn(f){const e=oe.c(20),{open:n,onOpenChange:p,count:l,onConfirm:o}=f,i=l!==1?"s":"";let g;e[0]!==l||e[1]!==i?(g=t.jsxs(Ae,{children:["Delete ",l," connection",i,"?"]}),e[0]=l,e[1]=i,e[2]=g):g=e[2];const h=l!==1?"s":"";let j;e[3]!==h?(j=t.jsxs(we,{children:["This will permanently delete the selected connection",h,". This action cannot be undone."]}),e[3]=h,e[4]=j):j=e[4];let y;e[5]!==g||e[6]!==j?(y=t.jsxs(Te,{children:[g,j]}),e[5]=g,e[6]=j,e[7]=y):y=e[7];let N;e[8]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Ie,{children:"Cancel"}),e[8]=N):N=e[8];const b=l!==1?"s":"";let a;e[9]!==l||e[10]!==o||e[11]!==b?(a=t.jsxs(Pe,{children:[N,t.jsxs($e,{onClick:o,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:["Delete ",l," connection",b]})]}),e[9]=l,e[10]=o,e[11]=b,e[12]=a):a=e[12];let x;e[13]!==y||e[14]!==a?(x=t.jsxs(Le,{children:[y,a]}),e[13]=y,e[14]=a,e[15]=x):x=e[15];let m;return e[16]!==p||e[17]!==n||e[18]!==x?(m=t.jsx(Oe,{open:n,onOpenChange:p,children:x}),e[16]=p,e[17]=n,e[18]=x,e[19]=m):m=e[19],m}function nn(f){return f._registryId?.includes("community-registry")===!0}function sn(f){const e=oe.c(58),{item:n,canManage:p,allConnections:l,connectedAppNames:o,connectingItemId:i,onNavigateConnected:g,onConnect:h}=f,[j,y]=E.useState(!1),[N,b]=E.useState(null);let a,x;e[0]!==o||e[1]!==n?(a=De(n)??"",x=o.has(a),e[0]=o,e[1]=n,e[2]=a,e[3]=x):(a=e[2],x=e[3]);const m=x,v=n._meta?.["mcp.mesh"],_=v?.friendlyName||v?.friendly_name||n.server?.title||n.title||n.server?.name||n.name||n.id||"",D=n.server?.description||n.description||null;let L;e[4]!==n.server?.icons?.[0]?.src||e[5]!==n.server?.repository?(L=n.server?.icons?.[0]?.src||at(n.server?.repository)||null,e[4]=n.server?.icons?.[0]?.src,e[5]=n.server?.repository,e[6]=L):L=e[6];const O=L;let s;if(e[7]!==l||e[8]!==a){let k;e[10]!==a?(k=se=>se.connection_type!=="VIRTUAL"&&se.app_name===a,e[10]=a,e[11]=k):k=e[11],s=l.filter(k),e[7]=l,e[8]=a,e[9]=s}else s=e[9];const A=s;let F;e[12]!==n?(F=nn(n),e[12]=n,e[13]=F):F=e[13];const M=F;let w,P;e[14]!==A||e[15]!==p||e[16]!==M||e[17]!==m||e[18]!==n||e[19]!==h||e[20]!==g?(w=()=>{if(m){const k=A[0];k&&g(k);return}p&&P()},P=()=>{M?(b("connect"),y(!0)):h(n)},e[14]=A,e[15]=p,e[16]=M,e[17]=m,e[18]=n,e[19]=h,e[20]=g,e[21]=w,e[22]=P):(w=e[21],P=e[22]);let z;e[23]!==n||e[24]!==h||e[25]!==N?(z=()=>{te("connections_community_warning_confirmed",{registry_item_id:n.id}),y(!1),N==="connect"&&h(n),b(null)},e[23]=n,e[24]=h,e[25]=N,e[26]=z):z=e[26];const C=z;let T;e[27]!==D||e[28]!==O||e[29]!==_?(T={title:_,description:D,icon:O},e[27]=D,e[28]=O,e[29]=_,e[30]=T):T=e[30];let G;e[31]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx(ge,{}),e[31]=G):G=e[31];let H;e[32]!==M||e[33]!==n._sourceIcon?(H=M&&n._sourceIcon&&t.jsx("img",{src:n._sourceIcon,alt:"Community",className:"size-4 rounded-sm object-contain"}),e[32]=M,e[33]=n._sourceIcon,e[34]=H):H=e[34];let X;e[35]!==p||e[36]!==i||e[37]!==P||e[38]!==m||e[39]!==n.id?(X=m?t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"Connected"}):p&&t.jsx(U,{variant:"outline",size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:i!==null,onClick:k=>{k.stopPropagation(),P()},children:i===n.id?t.jsx(ce,{size:14,className:"animate-spin"}):"Connect"}),e[35]=p,e[36]=i,e[37]=P,e[38]=m,e[39]=n.id,e[40]=X):X=e[40];let c;e[41]!==H||e[42]!==X?(c=t.jsxs("div",{className:"flex items-center gap-2",children:[H,X]}),e[41]=H,e[42]=X,e[43]=c):c=e[43];let S;e[44]!==w||e[45]!==c||e[46]!==T?(S=t.jsx(Ce,{connection:T,fallbackIcon:G,onClick:w,headerActionsAlwaysVisible:!0,headerActions:c}),e[44]=w,e[45]=c,e[46]=T,e[47]=S):S=e[47];let V;e[48]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsxs(Te,{children:[t.jsx(Ae,{children:"Community MCP Server"}),t.jsx(we,{children:"This MCP server is from the Community MCP Registry and is not maintained or verified by Deco. Community servers may have varying levels of quality, security, and reliability. Proceed with caution and review the server details before connecting."})]}),e[48]=V):V=e[48];let R;e[49]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(Ie,{children:"Cancel"}),e[49]=R):R=e[49];let B;e[50]!==C?(B=t.jsxs(Le,{children:[V,t.jsxs(Pe,{children:[R,t.jsx($e,{onClick:C,children:"Continue"})]})]}),e[50]=C,e[51]=B):B=e[51];let u;e[52]!==j||e[53]!==B?(u=t.jsx(Oe,{open:j,onOpenChange:y,children:B}),e[52]=j,e[53]=B,e[54]=u):u=e[54];let $;return e[55]!==S||e[56]!==u?($=t.jsxs(t.Fragment,{children:[S,u]}),e[55]=S,e[56]=u,e[57]=$):$=e[57],$}function on({listState:f,activeTab:e,typeFilter:n,statusFilter:p,registryFilter:l,enabledRegistries:o}){const{org:i}=be(),g=it(),h=_e(),{data:j}=Ne.useSession(),y=We(),N=Lt(f),b=ft(),{granted:a}=ye("connections:manage"),{granted:x}=ye("agents:manage"),[m,v]=E.useState(new Set),_=m.size>0,[D,L]=E.useState(!1),[O,s]=E.useState(!1),[A,F]=E.useState(null),M=Ot(),w=N.filter(r=>!(n!=="ALL"&&r.connection_type!==n||p!=="ALL"&&r.status!==p)),P=ht(w),z=r=>{v(d=>{const K=new Set(d);return K.has(r)?K.delete(r):K.add(r),K})},C=()=>{v(new Set)},T=ke(o,f.searchTerm),G=T.items,H=yt(T.loadMore,T.hasMore,T.isLoadingMore),X=new Set(N.filter(r=>r.app_name).map(r=>r.app_name)),c=l==="ALL"||o.some(r=>r.id===l)?l:"ALL",S=f.search.length>0,V=e==="all"||S?G.filter(r=>{if(c!=="ALL"&&r._registryId!==c)return!1;if(S){const d=De(r);if(d&&X.has(d))return!1}return!0}):[],R=e==="connected"||S?P:[],B=async r=>{if(!(!i||!j?.user?.id)){te("connection_add_clicked",{action:"connect_new",registry_item_id:r.id,source:"connections_page"}),F(r.id);try{const d=ct(r,i.id,j.user.id,{remoteIndex:0}),K=d.connection_type==="STDIO",I=!!d.connection_url,q=K&&d.connection_headers&&typeof d.connection_headers=="object"&&"command"in d.connection_headers;if(!I&&!q){W.error("This MCP Server cannot be connected: no connection method available"),F(null);return}const{id:ne}=await y.create.mutateAsync(d),le=await Wt({connectionId:ne,orgId:i.id,orgSlug:i.slug,persistFallback:fe=>y.update.mutateAsync({id:ne,data:{connection_token:fe}}).then(()=>{})});if(le.ran&&!le.ok){te("connection_oauth_failed",{connection_id:ne,flow:"connections_page_connect",error:le.error??"no_token"}),W.error(`Authentication failed: ${le.error??"no token received"}`);return}if(le.ran){te("connection_oauth_succeeded",{connection_id:ne,flow:"connections_page_connect"});const fe=new URL(`/api/${i.slug}/mcp/${ne}`,window.location.origin);await g.invalidateQueries({queryKey:rt.isMCPAuthenticated(fe.href,null)}),$(),W.success("Authentication successful")}W.success("Connected successfully")}catch(d){W.error(`Failed to connect: ${d instanceof Error?d.message:String(d)}`)}finally{F(null)}}},u=Ft(),$=()=>{g.invalidateQueries({predicate:r=>{const d=r.queryKey;return d[1]===i.id&&d[3]==="collection"&&d[4]==="CONNECTIONS"}})},k=async()=>{L(!1);const r=[...m];te("connections_bulk_delete",{count:r.length});let d=0;for(const K of r)try{await u.call("COLLECTION_CONNECTIONS_DELETE",{id:K,force:!0}),d++}catch{}$(),W.success(`Deleted ${d} connection${d!==1?"s":""}`),C()},se=async(r,d)=>{try{await y.update.mutateAsync({id:r,data:{status:d}}),$(),W.success(d==="active"?"Connection enabled":"Connection disabled")}catch{W.error("Failed to update connection")}},xe=async r=>{const d=[...m];te("connections_bulk_status_toggled",{count:d.length,to_status:r});let K=0;for(const I of d)try{await y.update.mutateAsync({id:I,data:{status:r}}),K++}catch{}$(),W.success(`${r==="active"?"Enabled":"Disabled"} ${K} connection${K!==1?"s":""}`),C()},me=async r=>{const d=M.find(q=>q.id===r);if(!d)return;te("connections_bulk_add_to_agent",{agent_id:r,count:m.size});const K=new Set(d.connections.map(q=>q.connection_id)),I=[...m].filter(q=>!K.has(q)).map(q=>({connection_id:q,selected_tools:null,selected_resources:null,selected_prompts:null}));if(I.length===0){W.info("All selected connections are already in that agent");return}try{await u.call("COLLECTION_VIRTUAL_MCP_UPDATE",{id:r,data:{connections:[...d.connections,...I]}}),g.invalidateQueries({predicate:q=>{const ne=q.queryKey;return ne[1]===i.id&&ne[3]==="collection"&&ne[4]==="VIRTUAL_MCP"}}),W.success(`Added ${I.length} connection${I.length!==1?"s":""} to "${d.title}"`),C()}catch{W.error("Failed to add connections to agent")}};return t.jsxs(t.Fragment,{children:[t.jsx(jt,{...b}),t.jsx(tn,{open:D,onOpenChange:L,count:m.size,onConfirm:k}),t.jsx(en,{open:O,onOpenChange:s,agents:M,onConfirm:me}),T.isInitialLoading&&e==="all"?t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ce,{size:32,className:"animate-spin text-muted-foreground"})}):t.jsx("div",{children:(S?V.length===0&&w.length===0:e==="all"?V.length===0:w.length===0)?t.jsx(gt,{image:t.jsx("img",{src:"/emptystate-mcp.svg",alt:"",width:336,height:320,"aria-hidden":"true"}),title:"No Connections found",description:f.search?`No Connections match "${f.search}"`:a?"Create a connection to get started.":"Ask an organization admin to add one."}):t.jsxs("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:[R.map(r=>{if(r.type==="group")return t.jsx(Qt,{group:r,onOpen:()=>{h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:r.key}})},selectionMode:_,selectedIds:m,onToggleSelect:z},r.key);const d=r.connection,K=m.has(d.id);return t.jsx(Ce,{connection:d,fallbackIcon:t.jsx(ge,{}),onClick:()=>_?z(d.id):h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:he(d)}}),className:de(K&&"ring-2 ring-primary bg-primary/5"),headerActionsAlwaysVisible:!0,headerActions:t.jsxs("div",{className:"flex items-center gap-1",children:[_?t.jsx(Fe,{checked:K,onCheckedChange:()=>z(d.id),onClick:I=>I.stopPropagation()}):t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"Connected"}),t.jsx("div",{className:de("overflow-hidden transition-all duration-150 ease-out",_?"w-8 opacity-100":"w-0 opacity-0 group-hover:w-8 group-hover:opacity-100"),children:t.jsxs(Ue,{children:[t.jsx(Re,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:I=>I.stopPropagation(),children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:I=>I.stopPropagation(),children:[t.jsxs(re,{onClick:I=>{I.stopPropagation(),h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:he(d)}})},children:[t.jsx(qe,{size:16}),"Open"]}),(a||x)&&t.jsxs(re,{onClick:I=>{I.stopPropagation(),z(d.id)},children:[t.jsx(zt,{size:16}),"Select"]}),a&&(d.status==="active"?t.jsxs(re,{onClick:I=>{I.stopPropagation(),se(d.id,"inactive")},children:[t.jsx(Vt,{size:16}),"Disable"]}):t.jsxs(re,{onClick:I=>{I.stopPropagation(),se(d.id,"active")},children:[t.jsx(Et,{size:16}),"Enable"]})),a&&t.jsxs(re,{variant:"destructive",onClick:I=>{I.stopPropagation(),b.requestDelete(d)},children:[t.jsx(Qe,{size:16}),"Delete"]})]})]})})]})},d.id)}),V.map(r=>t.jsx(sn,{item:r,canManage:a,allConnections:N,connectedAppNames:X,connectingItemId:A,onNavigateConnected:d=>h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:he(d)}}),onConnect:B},`catalog-${r._registryId}:${r.id}`)),(e==="all"||S)&&o.length>0&&t.jsx("div",{ref:H,className:"col-span-full h-4"}),(e==="all"||S)&&T.isLoadingMore&&t.jsx("div",{className:"col-span-full flex justify-center py-6",children:t.jsx(ce,{size:24,className:"animate-spin text-muted-foreground"})})]})}),_&&t.jsx(Zt,{count:m.size,total:w.length,canManage:a,canManageAgents:x,onSelectAll:()=>{v(new Set(w.map(r=>r.id)))},onDeselectAll:()=>v(new Set),onDelete:()=>L(!0),onAddToAgent:()=>s(!0),onToggleStatus:xe,onCancel:C})]})}function rn(){const{org:f}=be(),e=_e(),n=Ze({strict:!1}),{data:p}=Ne.useSession(),{stdioEnabled:l}=et(),o=At(),{granted:i}=ye("connections:manage"),g=Gt({namespace:f.slug,resource:"connections"}),h=We(),[j,y]=tt(nt.connectionsTab(f.slug),c=>n.tab==="all"||n.tab==="connected"?n.tab:c??"all"),[N,b]=E.useState("ALL"),[a,x]=E.useState("ALL"),[m,v]=E.useState("ALL"),_=pt(),L=ke(_,g.searchTerm).items,O=g.search!==g.searchTerm,s=st({resolver:ot(Kt),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),A=s.watch("ui_type"),F=s.watch("connection_url"),M=s.watch("npx_package"),w=pe({uiType:A,connectionUrl:F??"",npxPackage:M??""})??Se({uiType:A,connectionUrl:F??"",registryItems:L}),P=i&&n.action==="create",z=()=>{te("connections_custom_dialog_opened",{source:"connections_page"}),e({to:"/$org/settings/connections",params:{org:f.slug},search:{action:"create"}})},C=()=>{e({to:"/$org/settings/connections",params:{org:f.slug},search:{}})},T=async c=>{let S,V=null,R=null,B=null;c.ui_type==="NPX"?(S="STDIO",V="",B=Rt(c.npx_package||"",c.env_vars||[])):c.ui_type==="STDIO"?(S="STDIO",V="",B=Ht(c.stdio_command||"",c.stdio_args||"",c.stdio_cwd,c.env_vars||[])):(S=c.ui_type,V=c.connection_url||"",R=c.connection_token||null);const u=lt("conn");te("connection_custom_created",{connection_type:S,ui_type:c.ui_type}),await h.create.mutateAsync({id:u,title:c.title,description:c.description||null,connection_type:S,connection_url:V,connection_token:R,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:p?.user?.id||"system",organization_id:f.id,icon:c.icon??null,app_name:null,app_id:null,connection_headers:B,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),C(),s.reset(),e({to:"/$org/settings/connections/$appSlug",params:{org:f.slug,appSlug:he({app_name:null,connection_url:V,title:c.title,id:u})}})},G=c=>{c||(P&&C(),s.reset())},H=c=>{const S=c.trim();if(!S)return;const V=!!s.formState.dirtyFields.title,R=!!s.formState.dirtyFields.description,B=!!s.formState.dirtyFields.env_vars,u=k=>{if(k&&(!V&&!s.getValues("title").trim()&&k.title&&s.setValue("title",k.title,{shouldDirty:!1}),!R&&!(s.getValues("description")??"").trim()&&k.description&&s.setValue("description",k.description,{shouldDirty:!1}),!B&&k.envVarKeys?.length)){const se=s.getValues("env_vars")??[],xe=new Set(se.map(r=>r.key)),me=k.envVarKeys.filter(r=>!xe.has(r));me.length>0&&s.setValue("env_vars",[...se,...me.map(r=>({key:r,value:""}))],{shouldDirty:!0})}},$=Ut(S);if($&&l){s.setValue("ui_type","NPX",{shouldDirty:!0}),s.setValue("npx_package",$.packageName,{shouldDirty:!0}),s.setValue("connection_url","",{shouldDirty:!0}),s.setValue("connection_token",null,{shouldDirty:!0}),u(pe({uiType:"NPX",npxPackage:$.packageName}));return}if(S.startsWith("http://")||S.startsWith("https://")){const k=A==="HTTP"||A==="SSE"||A==="Websocket"?A:"HTTP";s.setValue("ui_type",k,{shouldDirty:!0}),s.setValue("connection_url",S,{shouldDirty:!0}),u(pe({uiType:k,connectionUrl:S})??Se({uiType:k,connectionUrl:S,registryItems:L}));return}A==="NPX"&&u(pe({uiType:"NPX",npxPackage:S}))},X=i?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(U,{variant:"outline",onClick:z,children:[t.jsx(Ge,{size:14,className:"sm:hidden"}),t.jsx("span",{className:"hidden sm:inline",children:"Custom Connection"})]})}):null;return t.jsx(t.Fragment,{children:t.jsxs(ue,{children:[(()=>{const c="Create Connection",S="Create a custom connection in your organization. Fill in the details below.",V=s.formState.isSubmitting?"Saving...":"Create Connection",R=t.jsxs("div",{className:"grid gap-4",children:[t.jsx(Q,{control:s.control,name:"ui_type",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Type *"}),t.jsxs(wt,{value:u.value,onValueChange:u.onChange,children:[t.jsx(Z,{children:t.jsx(Tt,{children:t.jsx(It,{})})}),t.jsxs(Pt,{children:[t.jsx(ae,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(je,{className:"w-4 h-4"}),"HTTP"]})}),t.jsx(ae,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(je,{className:"w-4 h-4"}),"SSE"]})}),t.jsx(ae,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(je,{className:"w-4 h-4"}),"Websocket"]})}),l&&t.jsxs(t.Fragment,{children:[t.jsx(ae,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ge,{className:"w-4 h-4"}),"NPX Package"]})}),t.jsx(ae,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Mt,{className:"w-4 h-4"}),"Custom Command"]})})]})]})]}),t.jsx(ee,{})]})}),A==="NPX"&&t.jsx(Q,{control:s.control,name:"npx_package",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"NPM Package *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"@perplexity-ai/mcp-server",...u,value:u.value??"",onPaste:$=>{const k=$.clipboardData.getData("text");k&&($.preventDefault(),s.setValue("npx_package",k.trim(),{shouldDirty:!0}),H(k))},onBlur:$=>{H($.target.value),u.onBlur()}})}),t.jsx(ee,{})]})}),A==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[t.jsx(Q,{control:s.control,name:"stdio_command",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Command *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"node, bun, python...",...u,value:u.value??""})}),t.jsx(ee,{})]})}),t.jsx(Q,{control:s.control,name:"stdio_args",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Arguments"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"arg1 arg2 --flag value",...u,value:u.value??""})}),t.jsx(ee,{})]})})]}),t.jsx(Q,{control:s.control,name:"stdio_cwd",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Working Directory"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"/path/to/project (optional)",...u,value:u.value??""})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Directory where the command will be executed"}),t.jsx(ee,{})]})})]}),(A==="NPX"||A==="STDIO")&&t.jsx(Q,{control:s.control,name:"env_vars",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Environment Variables"}),t.jsx(Z,{children:t.jsx(Bt,{value:u.value??[],onChange:u.onChange})}),t.jsx(ee,{})]})}),A!=="NPX"&&A!=="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsx(Q,{control:s.control,name:"connection_url",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"URL *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"https://example.com/mcp",...u,value:u.value??"",onPaste:$=>{const k=$.clipboardData.getData("text");k&&($.preventDefault(),s.setValue("connection_url",k.trim(),{shouldDirty:!0}),H(k))},onBlur:$=>{H($.target.value),u.onBlur()}})}),t.jsx(ee,{})]})}),t.jsx(Q,{control:s.control,name:"connection_token",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:w?.token?.label??"Token (optional)"}),t.jsx(Z,{children:t.jsx(ie,{type:"password",placeholder:w?.token?.placeholder??"Bearer token or API key",...u,value:u.value??""})}),w?.token?.helperText&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[w.token.helperText,w.id==="github"&&t.jsxs(t.Fragment,{children:[" ","·"," ",t.jsx("a",{className:"text-foreground underline underline-offset-4 hover:text-foreground/80",href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noreferrer",children:"Open GitHub PAT settings"})]})]}),t.jsx(ee,{})]})})]}),t.jsx(Q,{control:s.control,name:"title",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Name *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"My Connection",...u})}),t.jsx(ee,{})]})}),t.jsx(Q,{control:s.control,name:"description",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Description"}),t.jsx(Z,{children:t.jsx($t,{placeholder:"A brief description of this connection",rows:3,...u,value:u.value??""})}),t.jsx(ee,{})]})})]}),B=P;return o?t.jsx(vt,{open:B,onOpenChange:G,children:t.jsxs(St,{className:"max-h-[90vh]",children:[t.jsx(bt,{className:"pb-2",children:t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[t.jsxs("div",{className:"flex-1 text-left",children:[t.jsx(_t,{children:c}),t.jsx(Nt,{className:"mt-1",children:S})]}),t.jsx(Dt,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1",children:t.jsx(Je,{size:16})})})]})}),t.jsx(ve,{...s,children:t.jsxs("form",{onSubmit:s.handleSubmit(T),children:[t.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:R}),t.jsx(kt,{children:t.jsx(U,{type:"submit",disabled:s.formState.isSubmitting,className:"w-full",children:V})})]})})]})}):t.jsx(Me,{open:B,onOpenChange:G,children:t.jsxs(ze,{className:"sm:max-w-[525px]",children:[t.jsxs(Ve,{children:[t.jsx(Ee,{children:c}),t.jsx(Be,{children:S})]}),t.jsx(ve,{...s,children:t.jsxs("form",{onSubmit:s.handleSubmit(T),children:[t.jsx("div",{className:"py-4",children:R}),t.jsxs(Ke,{children:[t.jsx(U,{type:"button",variant:"outline",onClick:()=>G(!1),children:"Cancel"}),t.jsx(U,{type:"submit",disabled:s.formState.isSubmitting,className:"min-w-40",children:V})]})]})})]})})})(),t.jsx(ue.Content,{children:t.jsx(ue.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(ue.Title,{children:"Connections"}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(mt,{value:g.search,onChange:g.setSearch,placeholder:"Search for a connection",className:"w-full md:w-[375px]",onKeyDown:c=>{c.key==="Escape"&&(g.setSearch(""),c.target.blur())}}),t.jsx(dt,{sortKey:g.sortKey,sortDirection:g.sortDirection,onSort:g.handleSort,sortOptions:[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"connection_type",label:"Type"},{id:"updated_by",label:"Updated by"},{id:"updated_at",label:"Updated"}],filters:[{label:"Type",value:N,onChange:c=>b(c||"ALL"),options:[{id:"ALL",label:"All"},{id:"HTTP",label:"HTTP"},{id:"SSE",label:"SSE"},{id:"Websocket",label:"WebSocket"},{id:"STDIO",label:"STDIO"}]},{label:"Status",value:a,onChange:c=>x(c||"ALL"),options:[{id:"ALL",label:"All"},{id:"active",label:"Active"},{id:"inactive",label:"Inactive"},{id:"error",label:"Error"}]},..._.length>1?[{label:"Registry",value:m,onChange:c=>v(c||"ALL"),options:[{id:"ALL",label:"All registries"},..._.map(c=>({id:c.id,label:c.id.includes("community-registry")?"Community MCP Registry":c.title}))]}]:[]]})]}),X]}),t.jsx(ut,{tabs:[{id:"all",label:"All"},{id:"connected",label:"Connected"}],activeTab:j,onTabChange:c=>{const S=c;S!==j&&te("connections_page_tab_changed",{to_tab:S}),y(S)}}),t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ce,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx("div",{style:{opacity:O?.5:1,transition:O?"opacity 0.2s 0.2s linear":"opacity 0s 0s linear",pointerEvents:O?"none":"auto"},children:t.jsx(on,{listState:g,activeTab:j,typeFilter:N,statusFilter:a,registryFilter:m,enabledRegistries:_})})})]})})})]})})}function Xs(){const f=oe.c(1);let e;return f[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ye,{children:t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ce,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(rn,{})})}),f[0]=e):e=f[0],e}export{Xs as default};
@@ -1,2 +0,0 @@
1
- import{c as Z,r as u,j as r,i as se,B as he,d$ as Mt,aO as Dt,aU as ie,e0 as Rt,e1 as Pt,e2 as Et,e3 as kt,bO as Ot,e4 as Tt,e5 as qe,aQ as At,e6 as Lt,e7 as Ft,e8 as It,e9 as $t,ea as _t,eb as zt,ec as Wt,ed as Gt,ee as Kt,l as ae,n as Bt,t as W,K as $e}from"./index-Cw_MOEue.js";import{F as Ut,l as Vt}from"./index-DFa2bm2W.js";import{d as qt,aA as Qt,aB as Ht,aC as ue,aD as Xt,a9 as _e}from"./agent-icon-BF217Hvb.js";import{a as Jt}from"./Tool01-Dym7sffh.js";import{s as Yt}from"./XClose-CSAbqx7t.js";import{A as Zt}from"./automation-runs-CG9qLUqb.js";import{b as ze,T as We,a as Ge}from"./tooltip-CEMhn06S.js";import{f as en,a as tn,b as nn,c as rn,d as on,e as sn,A as an,g as ln}from"./alert-dialog-NEl6qUgZ.js";import{b as cn}from"./chat-context-Csy5cRMg.js";import{u as dn}from"./shell-layout-C3vwcwKJ.js";import{s as fe,a as Ke,f as un}from"./index-F9o1E2LM.js";import{a as fn,h as mn,D as pn,c as xn,d as hn,e as gn}from"./dialog-94MC6GNA.js";import{I as Be}from"./input-C57OE_bz.js";import{t as vn}from"./ChevronDown-Dqw9pJbF.js";import{i as yn}from"./ChevronRight-DX001g0F.js";import{a as Cn}from"./ZoomOut-FOnWv2R3.js";import{E as wn,v as Ue,w as Ce,x as bn,y as jn,z as Nn,A as U,C as me,g as we,D as be,G as Sn,I as Mn,J as je,K as pe,M as Ne,N as Dn,O as Rn}from"./index-BxUWUc0Q.js";import"./AlertCircle-CeJgODlb.js";import"./UserPlus01-CxsIZHHu.js";import"./ArrowUp-Cx_--6Z7.js";import"./Settings02-Rjz2fibP.js";import"./Tool02-DWpgQDA_.js";import"./XCircle-BVO-AfDl.js";import"./ArrowUpRight-ywfBK9uD.js";import"./TrendUp01-DJyrqfDN.js";import"./ZapSquare-CYxtM-xd.js";import"./Users03-C601mmDP.js";import"./CheckCircle-B5HHFx3h.js";import"./Check-qklIr9eC.js";import"./ChevronUp-C-6o6d8u.js";import"./Circle-DFIMbbWU.js";import"./Stars02-pEQdLQRy.js";import"./Copy01-LCtBKUFe.js";import"./DotsVertical-wzt5Huxh.js";import"./Globe01-Bwt4oV0U.js";import"./Eye-CTCWS-BQ.js";import"./FilterLines-0m6crn3m.js";import"./Flag01-D_fUJHwZ.js";import"./Star01-kGVgFut9.js";import"./Globe04-CD717DpH.js";import"./SwitchHorizontal01-UaHGqUVt.js";import"./HardDrive-Cq-YbPK9.js";import"./Key01-DTTa_ngJ.js";import"./LayoutLeft-CY_ilnE-.js";import"./LinkExternal01-Cc-TIWai.js";import"./List-1sCiilk_.js";import"./Monitor01-BA72KgrB.js";import"./Sun-gRl2Ql5n.js";import"./Package-PE508kJN.js";import"./Palette-CKmdnXoY.js";import"./Play-CcnDti9J.js";import"./Plus-Dg6Y61Qh.js";import"./SearchLg-DCvqx7mk.js";import"./SearchMd-CxXAIK8q.js";import"./Shield01-DoN422Fp.js";import"./Stars01-BMHX9PwN.js";import"./Trash01-FLsHPD-j.js";import"./Upload01-Bf-wW3fT.js";import"./User01-Bp8xCtim.js";import"./Users01-CUB4jTbh.js";import"./X-Dg3UHk4M.js";import"./Zap-C5e_tw0_.js";import"./select-BbQScYUM.js";import"./useInfiniteQuery-DNK1YDMj.js";import"./use-infinite-scroll-BJxks4Oh.js";import"./use-connection-BwHNV7F-.js";import"./use-collections-Mmumb7Jv.js";import"./use-mcp-client-CwxQ2mu8.js";import"./constants-D_FQAPnt.js";import"./auth-JAYu2Sn7.js";import"./use-virtual-mcp-R-nHNI8F.js";import"./card-B5uBFViO.js";import"./sidebar-B4yomm08.js";import"./use-mobile-CDGvObYb.js";import"./table-D6kZLJZo.js";import"./empty-state-BAbUNiFM.js";import"./use-members-HgTG6V2z.js";import"./use-org-auth-client-CR847Rtk.js";import"./use-clock-tick-BoYgP8-u.js";import"./use-automations-BV8BAFK6.js";import"./studio-tools-bcpgTNof.js";import"./useSuspenseInfiniteQuery-DIBoNO1Z.js";import"./badge-DAQJGlmB.js";import"./checkbox-BfaUpDdG.js";import"./command-CaofFN3p.js";import"./index-CXseUXwz.js";import"./popover-YRjoqx5c.js";import"./avatar-B8GP78HG.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-DwaNL7ao.js";import"./file-type-icon-cxQD2Gow.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-DOlDq43r.js";import"./delay-CnY5UFtP.js";import"./index-Ce2Igu8Z.js";import"./hooks-gTEmV-hn.js";import"./decopilot-sse-pool-DhL2hPm4.js";import"./backoff-CrEUbyZT.js";import"./integration-icon-B9AX6sxk.js";import"./use-navigate-to-agent-JH1aTgiP.js";import"./reusable-new-chat-CouMjkYR.js";import"./AreaChart-DjQ3-mxR.js";import"./form-DkmV3bZG.js";import"./label-wqLdGJT0.js";import"./autosend-BOPTLlfV.js";import"./use-ai-providers-CfC4MjYU.js";import"./use-decopilot-events-Cy3Splz7.js";import"./use-organization-settings-D2FVOkxT.js";import"./required-auth-layout-CkCZ1VH2.js";import"./use-org-sso-_zvIWw2Z.js";import"./drawer-Co_r3vYF.js";import"./collection-search-Qnz6jxTV.js";import"./tabs-uog8ypZ5.js";import"./toggle-group-xXar88Zl.js";import"./use-deco-credits-JXELkRA8.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-CL_n4ga5.js";import"./use-registry-connections-DYAxxhes.js";import"./extract-connection-data-kn2oock2.js";import"./collection-tabs-BCpGbCT5.js";import"./textarea-D96KZ_bk.js";import"./connection-form-helpers-Dx2pWKQg.js";import"./authenticate-and-persist-oauth-CHpUAxht.js";import"./mcp-oauth-CaQ5w7vv.js";import"./connect-desktop-dialog-Dd78-wLs.js";import"./select-model-Ivlt_Hjk.js";import"./skeleton-Dn-HzxdH.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-kWU5lPTB.js";import"./dropdown-menu-CwZxSb5T.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BkjfcEfu.js";import"./toolbar-DF6E_99x.js";import"./use-mcp-tools-DS-HH6so.js";import"./use-capability-IeWRUHjn.js";import"./tools-list-DyJkBr3l.js";import"./switch-Dj8a0W96.js";import"./use-debounced-autosave-CAJHdpnz.js";import"./index-BOigHE8Y.js";import"./search-input-CqxCn4Rx.js";import"./github-repo-picker-ZKvJa1LN.js";import"./use-debounced-value-B3ktPBBI.js";import"./github-installations-ChFezl8I.js";import"./use-secrets-DVIAQNCJ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./companions-core-DcZqHo8p.js";import"./index-DFZw1AWG.js";import"./get-initials-D-f_fDFw.js";import"./calendar-C6LcfVwu.js";import"./toolbar-icon-button-CwX9OsPP.js";import"./use-file-configs-C5MIjZBk.js";import"./automation-list-row-BqcM-T9k.js";const Pn={"new-file":{title:"New File",description:"Enter a name for the new file.",submit:"Create",placeholder:"filename.ts"},"new-folder":{title:"New Folder",description:"Enter a name for the new folder.",submit:"Create",placeholder:"folder-name"},rename:{title:"Rename",description:"Enter a new name for this item.",submit:"Rename",placeholder:"new-name"}};function En(s){const e=Z.c(51),{open:i,mode:a,initialName:c,parentLabel:m,isPending:x,onSubmit:p,onOpenChange:g}=s,M=c===void 0?"":c,d=x===void 0?!1:x,[h,y]=u.useState(M),[B,V]=u.useState(i),C=Pn[a];i!==B&&(V(i),i&&y(M));let I;e[0]!==d||e[1]!==g?(I=_=>{!_&&!d&&g(!1)},e[0]=d,e[1]=g,e[2]=I):I=e[2];const H=I;let q;e[3]!==d||e[4]!==h||e[5]!==p?(q=async _=>{_.preventDefault();const K=h.trim();!K||d||await p(K)},e[3]=d,e[4]=h,e[5]=p,e[6]=q):q=e[6];const Q=q;let $;e[7]!==C.title?($=r.jsx(fn,{children:C.title}),e[7]=C.title,e[8]=$):$=e[8];let O;e[9]!==C.description?(O=r.jsx(mn,{children:C.description}),e[9]=C.description,e[10]=O):O=e[10];let G;e[11]!==$||e[12]!==O?(G=r.jsxs(pn,{children:[$,O]}),e[11]=$,e[12]=O,e[13]=G):G=e[13];let T;e[14]!==m?(T=m&&r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Location"}),r.jsx(Be,{value:m,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[14]=m,e[15]=T):T=e[15];let A;e[16]===Symbol.for("react.memo_cache_sentinel")?(A=r.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[16]=A):A=e[16];let R;e[17]===Symbol.for("react.memo_cache_sentinel")?(R=_=>y(_.target.value),e[17]=R):R=e[17];let P;e[18]!==C.placeholder||e[19]!==d||e[20]!==h?(P=r.jsxs("div",{className:"space-y-1.5",children:[A,r.jsx(Be,{id:"file-explorer-name",value:h,onChange:R,placeholder:C.placeholder,autoFocus:!0,disabled:d})]}),e[18]=C.placeholder,e[19]=d,e[20]=h,e[21]=P):P=e[21];let j;e[22]!==P||e[23]!==T?(j=r.jsxs("div",{className:"space-y-4 py-4",children:[T,P]}),e[22]=P,e[23]=T,e[24]=j):j=e[24];let N;e[25]!==g?(N=()=>g(!1),e[25]=g,e[26]=N):N=e[26];let E;e[27]!==d||e[28]!==N?(E=r.jsx(he,{type:"button",variant:"outline",onClick:N,disabled:d,children:"Cancel"}),e[27]=d,e[28]=N,e[29]=E):E=e[29];let k;e[30]!==d||e[31]!==h?(k=!h.trim()||d,e[30]=d,e[31]=h,e[32]=k):k=e[32];let w;e[33]!==C.submit||e[34]!==d?(w=d?r.jsxs(r.Fragment,{children:[r.jsx(se,{size:14,className:"animate-spin"}),"Saving…"]}):C.submit,e[33]=C.submit,e[34]=d,e[35]=w):w=e[35];let L;e[36]!==k||e[37]!==w?(L=r.jsx(he,{type:"submit",disabled:k,children:w}),e[36]=k,e[37]=w,e[38]=L):L=e[38];let b;e[39]!==E||e[40]!==L?(b=r.jsxs(xn,{children:[E,L]}),e[39]=E,e[40]=L,e[41]=b):b=e[41];let S;e[42]!==Q||e[43]!==j||e[44]!==b||e[45]!==G?(S=r.jsx(hn,{className:"sm:max-w-md",children:r.jsxs("form",{onSubmit:Q,children:[G,j,b]})}),e[42]=Q,e[43]=j,e[44]=b,e[45]=G,e[46]=S):S=e[46];let z;return e[47]!==H||e[48]!==i||e[49]!==S?(z=r.jsx(gn,{open:i,onOpenChange:H,children:S}),e[47]=H,e[48]=i,e[49]=S,e[50]=z):z=e[50],z}var Me="ContextMenu",[kn]=At(Me,[qe]),F=qe(),[On,Qe]=kn(Me),He=s=>{const{__scopeContextMenu:e,children:i,onOpenChange:a,dir:c,modal:m=!0}=s,[x,p]=u.useState(!1),g=F(e),M=Ot(a),d=u.useCallback(h=>{p(h),M(h)},[M]);return r.jsx(On,{scope:e,open:x,onOpenChange:d,modal:m,children:r.jsx(Tt,{...g,dir:c,open:x,onOpenChange:d,modal:m,children:i})})};He.displayName=Me;var Xe="ContextMenuTrigger",Je=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,disabled:a=!1,...c}=s,m=Qe(Xe,i),x=F(i),p=u.useRef({x:0,y:0}),g=u.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...p.current})}),M=u.useRef(0),d=u.useCallback(()=>window.clearTimeout(M.current),[]),h=y=>{p.current={x:y.clientX,y:y.clientY},m.onOpenChange(!0)};return u.useEffect(()=>d,[d]),u.useEffect(()=>{a&&d()},[a,d]),r.jsxs(r.Fragment,{children:[r.jsx(Mt,{...x,virtualRef:g}),r.jsx(Dt.span,{"data-state":m.open?"open":"closed","data-disabled":a?"":void 0,...c,ref:e,style:{WebkitTouchCallout:"none",...s.style},onContextMenu:a?s.onContextMenu:ie(s.onContextMenu,y=>{d(),h(y),y.preventDefault()}),onPointerDown:a?s.onPointerDown:ie(s.onPointerDown,xe(y=>{d(),M.current=window.setTimeout(()=>h(y),700)})),onPointerMove:a?s.onPointerMove:ie(s.onPointerMove,xe(d)),onPointerCancel:a?s.onPointerCancel:ie(s.onPointerCancel,xe(d)),onPointerUp:a?s.onPointerUp:ie(s.onPointerUp,xe(d))})]})});Je.displayName=Xe;var Tn="ContextMenuPortal",Ye=s=>{const{__scopeContextMenu:e,...i}=s,a=F(e);return r.jsx(Et,{...a,...i})};Ye.displayName=Tn;var Ze="ContextMenuContent",et=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=Qe(Ze,i),m=F(i),x=u.useRef(!1);return r.jsx(kt,{...m,...a,ref:e,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:p=>{s.onCloseAutoFocus?.(p),!p.defaultPrevented&&x.current&&p.preventDefault(),x.current=!1},onInteractOutside:p=>{s.onInteractOutside?.(p),!p.defaultPrevented&&!c.modal&&(x.current=!0)},style:{...s.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});et.displayName=Ze;var An="ContextMenuGroup",Ln=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Lt,{...c,...a,ref:e})});Ln.displayName=An;var Fn="ContextMenuLabel",In=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Ft,{...c,...a,ref:e})});In.displayName=Fn;var $n="ContextMenuItem",tt=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Rt,{...c,...a,ref:e})});tt.displayName=$n;var _n="ContextMenuCheckboxItem",zn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(It,{...c,...a,ref:e})});zn.displayName=_n;var Wn="ContextMenuRadioGroup",Gn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx($t,{...c,...a,ref:e})});Gn.displayName=Wn;var Kn="ContextMenuRadioItem",Bn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(_t,{...c,...a,ref:e})});Bn.displayName=Kn;var Un="ContextMenuItemIndicator",Vn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(zt,{...c,...a,ref:e})});Vn.displayName=Un;var qn="ContextMenuSeparator",nt=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Pt,{...c,...a,ref:e})});nt.displayName=qn;var Qn="ContextMenuArrow",Hn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Wt,{...c,...a,ref:e})});Hn.displayName=Qn;var Xn="ContextMenuSubTrigger",Jn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Gt,{...c,...a,ref:e})});Jn.displayName=Xn;var Yn="ContextMenuSubContent",Zn=u.forwardRef((s,e)=>{const{__scopeContextMenu:i,...a}=s,c=F(i);return r.jsx(Kt,{...c,...a,ref:e,style:{...s.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Zn.displayName=Yn;function xe(s){return e=>e.pointerType!=="mouse"?s(e):void 0}var er=He,tr=Je,nr=Ye,rr=et,or=tt,ir=nt;function sr(s){const e=Z.c(4);let i;e[0]!==s?({...i}=s,e[0]=s,e[1]=i):i=e[1];let a;return e[2]!==i?(a=r.jsx(er,{"data-slot":"context-menu",...i}),e[2]=i,e[3]=a):a=e[3],a}function ar(s){const e=Z.c(4);let i;e[0]!==s?({...i}=s,e[0]=s,e[1]=i):i=e[1];let a;return e[2]!==i?(a=r.jsx(tr,{"data-slot":"context-menu-trigger",...i}),e[2]=i,e[3]=a):a=e[3],a}function lr(s){const e=Z.c(8);let i,a;e[0]!==s?({className:i,...a}=s,e[0]=s,e[1]=i,e[2]=a):(i=e[1],a=e[2]);let c;e[3]!==i?(c=ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",i),e[3]=i,e[4]=c):c=e[4];let m;return e[5]!==a||e[6]!==c?(m=r.jsx(nr,{children:r.jsx(rr,{"data-slot":"context-menu-content",className:c,...a})}),e[5]=a,e[6]=c,e[7]=m):m=e[7],m}function te(s){const e=Z.c(12);let i,a,c,m;e[0]!==s?({className:i,inset:a,variant:m,...c}=s,e[0]=s,e[1]=i,e[2]=a,e[3]=c,e[4]=m):(i=e[1],a=e[2],c=e[3],m=e[4]);const x=m===void 0?"default":m;let p;e[5]!==i?(p=ae("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),e[5]=i,e[6]=p):p=e[6];let g;return e[7]!==a||e[8]!==c||e[9]!==p||e[10]!==x?(g=r.jsx(or,{"data-slot":"context-menu-item","data-inset":a,"data-variant":x,className:p,...c}),e[7]=a,e[8]=c,e[9]=p,e[10]=x,e[11]=g):g=e[11],g}function Ve(s){const e=Z.c(8);let i,a;e[0]!==s?({className:i,...a}=s,e[0]=s,e[1]=i,e[2]=a):(i=e[1],a=e[2]);let c;e[3]!==i?(c=ae("bg-border -mx-1 my-1 h-px",i),e[3]=i,e[4]=c):c=e[4];let m;return e[5]!==a||e[6]!==c?(m=r.jsx(ir,{"data-slot":"context-menu-separator",className:c,...a}),e[5]=a,e[6]=c,e[7]=m):m=e[7],m}const cr="#d9a441";function dr(s){const e=Z.c(45),{node:i,depth:a,isExpanded:c,isSelected:m,isLoading:x,fileVisual:p,onOpen:g,onSelect:M,onNewFile:d,onNewFolder:h,onCopyPath:y,onCopyRelativePath:B,onRename:V,onDelete:C}=s,I=x===void 0?!1:x,H=i.kind==="directory",{Icon:q,color:Q}=p,$=m&&"bg-accent";let O;e[0]!==$?(O=ae("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",$),e[0]=$,e[1]=O):O=e[1];const G=`${a*14+8}px`;let T;e[2]!==G?(T={paddingLeft:G},e[2]=G,e[3]=T):T=e[3];let A;e[4]!==g||e[5]!==M?(A=()=>{M(),g()},e[4]=g,e[5]=M,e[6]=A):A=e[6];let R;e[7]!==q||e[8]!==Q||e[9]!==H||e[10]!==c||e[11]!==I?(R=H?r.jsxs(r.Fragment,{children:[I?r.jsx(se,{size:14,className:"shrink-0 animate-spin text-muted-foreground"}):c?r.jsx(vn,{size:14,className:"shrink-0 text-muted-foreground"}):r.jsx(yn,{size:14,className:"shrink-0 text-muted-foreground"}),r.jsx(Cn,{size:16,className:"shrink-0",style:{color:cr}})]}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"w-3.5 shrink-0"}),r.jsx(q,{size:16,className:"shrink-0",style:{color:Q}})]}),e[7]=q,e[8]=Q,e[9]=H,e[10]=c,e[11]=I,e[12]=R):R=e[12];let P;e[13]!==i.name?(P=r.jsx("span",{className:"truncate",children:i.name}),e[13]=i.name,e[14]=P):P=e[14];let j;e[15]!==O||e[16]!==T||e[17]!==A||e[18]!==R||e[19]!==P?(j=r.jsx(ar,{asChild:!0,children:r.jsxs("button",{type:"button",className:O,style:T,onClick:A,children:[R,P]})}),e[15]=O,e[16]=T,e[17]=A,e[18]=R,e[19]=P,e[20]=j):j=e[20];let N;e[21]!==d?(N=r.jsx(te,{onSelect:d,children:"New File"}),e[21]=d,e[22]=N):N=e[22];let E;e[23]!==h?(E=r.jsx(te,{onSelect:h,children:"New Folder"}),e[23]=h,e[24]=E):E=e[24];let k;e[25]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(Ve,{}),e[25]=k):k=e[25];let w;e[26]!==y?(w=r.jsx(te,{onSelect:y,children:"Copy Path"}),e[26]=y,e[27]=w):w=e[27];let L;e[28]!==B?(L=r.jsx(te,{onSelect:B,children:"Copy Relative Path"}),e[28]=B,e[29]=L):L=e[29];let b;e[30]===Symbol.for("react.memo_cache_sentinel")?(b=r.jsx(Ve,{}),e[30]=b):b=e[30];let S;e[31]!==V?(S=r.jsx(te,{onSelect:V,children:"Rename"}),e[31]=V,e[32]=S):S=e[32];let z;e[33]!==C?(z=r.jsx(te,{variant:"destructive",onSelect:C,children:"Delete"}),e[33]=C,e[34]=z):z=e[34];let _;e[35]!==N||e[36]!==E||e[37]!==w||e[38]!==L||e[39]!==S||e[40]!==z?(_=r.jsxs(lr,{className:"w-52",children:[N,E,k,w,L,b,S,z]}),e[35]=N,e[36]=E,e[37]=w,e[38]=L,e[39]=S,e[40]=z,e[41]=_):_=e[41];let K;return e[42]!==_||e[43]!==j?(K=r.jsxs(sr,{children:[j,_]}),e[42]=_,e[43]=j,e[44]=K):K=e[44],K}Vt.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function Se(s,e,i,a){return`/api/${s}/sandbox/${encodeURIComponent(e)}/${encodeURIComponent(i)}/${a}`}function ur(s){const e=U(s);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}const fr="#94a3b8";function mr(s){const e=s.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:ue,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:ue,color:"#d9a441"}:e.endsWith(".json")?{Icon:Xt,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:ue,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:ue,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:Jt,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:_e,color:"#64748b"}:{Icon:_e,color:fr}}function ss({orgSlug:s,virtualMcpId:e,branch:i,openPath:a}){const[c,m]=u.useState({files:[],directories:[],truncated:!1}),{files:x,directories:p}=c,[g,M]=u.useState(new Set),[d,h]=u.useState(null),[y,B]=u.useState(null),[V,C]=u.useState([]),[I,H]=u.useState(""),[q,Q]=u.useState(!1),[$,O]=u.useState(!1),[,G]=u.useState(new Set),[T,A]=u.useState(new Set),R=u.useRef(0),P=u.useRef(null),j=u.useRef(new Set),N=u.useRef(new Map);function E(t){G(n=>{const o=typeof t=="function"?t(n):t;return j.current=o,o})}const[k,w]=u.useState(new Map),L=u.useRef(null),[b,S]=u.useState(null),{sendMessage:z}=cn(),{openSidePanel:_}=dn(),K=Bt(),[D,X]=u.useState(null),[J,ge]=u.useState(null),[ne,le]=u.useState(!1);async function re(t,n){const o=await fetch(Se(s,e,i,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!o.ok){const l=await o.json().catch(()=>({}));throw new Error(l.error??`Request failed (${o.status})`)}return o.json()}async function ce(){K.invalidateQueries({queryKey:Ke(s,e,i)})}function De(t,n){navigator.clipboard.writeText(n).then(()=>W.success(`${t} copied`),()=>W.error(`Failed to copy ${t.toLowerCase()}`))}function rt(t){const n=Dn(t);if(!n)return;const o=`${s}/${e}/${i}`;K.setQueryData($e.decofile(o),l=>{if(!l)return l;const{[n]:f,...v}=l;return v}),K.invalidateQueries({queryKey:$e.liveMeta(o)})}function ot(t){const n=t.kind==="file"?[t.path]:x.filter(o=>o.startsWith(".deco/blocks/")).map(o=>me(o)).filter(o=>o===t.path||o.startsWith(`${t.path}/`));for(const o of n)rt(o)}function it(t){const n=me(t);return V.filter(o=>{if(o!==n&&!o.startsWith(`${n}/`))return!1;const l=k.get(o);return!!(l?.loaded&&l.editorValue!==l.savedContent)})}function Re(t){C(n=>n.map(o=>t(o)).filter(o=>o!==null)),h(n=>n&&t(n)),w(n=>{const o=new Map;for(const[l,f]of n){const v=t(l);v&&o.set(v,f)}return o}),B(n=>{if(!n)return n;const o=t(n.path);return o?o===n.path?n:{...n,path:o,name:o.split("/").pop()??o}:null})}function st(t){const n=me(t);B(o=>o&&(o.path===n||o.path.startsWith(`${n}/`)?null:o)),Re(o=>o===n||o.startsWith(`${n}/`)?null:o)}async function at(t){if(!D)return;const n=pe(D.parentDir,t);if(Ne(n,x,p))throw new Error(`"${t}" already exists`);await re("write",{path:U(n),content:""}),await oe(),await ce(),X(null),ve(n)}async function lt(t){if(!D)return;const n=pe(D.parentDir,t);if(Ne(n,x,p))throw new Error(`"${t}" already exists`);const o=U(n);await re("mkdir",{path:o}),m(l=>({...l,directories:l.directories.includes(o)?l.directories:[...l.directories,o]})),await oe(),await ce(),X(null),M(l=>{const f=new Set(l);for(const v of Ce(n))f.add(v);return f.add(n),f}),B({name:t,path:n,kind:"directory",children:[]})}async function ct(t){if(!D)return;const n=D.node.path,o=je(n),l=pe(o,t);if(l===n){X(null);return}if(Ne(l,x,p))throw new Error(`"${t}" already exists`);await re("rename",{from:U(n),to:U(l)}),Re(f=>f===n?l:f.startsWith(`${n}/`)?pe(l,f.slice(n.length+1)):f),await oe(),await ce(),X(null)}async function dt(t){le(!0);try{await re("unlink",{path:U(t.path),recursive:t.kind==="directory"}),ot(t),st(t.path),await oe(),await ce(),ge(null),W.success(`Deleted "${t.name}"`)}catch(n){W.error(n instanceof Error?n.message:"Delete failed")}finally{le(!1)}}async function ut(t){const n=Mn(t);if(n){W.error(n);return}le(!0);try{D?.mode==="new-file"?(await at(t),W.success(`Created "${t}"`)):D?.mode==="new-folder"?(await lt(t),W.success(`Created folder "${t}"`)):D?.mode==="rename"&&(await ct(t),W.success(`Renamed to "${t}"`))}catch(o){W.error(o instanceof Error?o.message:"Operation failed")}finally{le(!1)}}const Pe=u.useRef(!1);Pe.current||(Pe.current=!0,P.current=oe());const[ft,mt]=u.useState(null);if(a&&a!==ft){mt(a);const t=a;queueMicrotask(()=>{ur(t)&&ve(t).catch(n=>{W.error(n instanceof Error?n.message:"Failed to open file")})})}async function Ee(t){const n=await re("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function ke(t,n,o){if(o!==R.current)return!1;let l=!1;return m(f=>{const v=n?Rn(f.files,f.directories,t,f.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return l=!!v.truncated,{files:v.files,directories:v.directories,truncated:l}}),l&&W.warning("File list truncated — some files may be hidden"),l}async function pt(t){const n=N.current.get(t);if(n)return n;const o=R.current,l=(async()=>{const f=await Ee({pattern:"**/*",path:U(t),limit:Ue}),v=ke(f,!0,o);return!v&&o===R.current&&E(Y=>{const de=new Set(Y);return de.add(t),de}),v})();N.current.set(t,l);try{return await l}finally{N.current.delete(t)}}async function Oe(t){if(!be(t,j.current))return!1;A(n=>new Set(n).add(t));try{return await pt(t)}finally{A(n=>{const o=new Set(n);return o.delete(t),o})}}async function xt(t){const n=new Set(j.current);for(const o of Ce(t)){if(!be(o,n))continue;if(await Oe(o))throw new Error("Folder listing truncated — expand again to load more");n.add(o)}}async function oe(){const t=++R.current;N.current.clear(),Q(!0),E(new Set),M(new Set),A(new Set);try{const n=await Ee({pattern:"**/*",limit:Ue,maxDepth:wn});ke(n,!1,t),O(!0)}catch{$&&W.error("Failed to refresh file tree")}finally{Q(!1)}}async function Te(t){if(!k.get(t)?.loaded){w(o=>{const l=new Map(o);return l.set(t,{savedContent:"",editorValue:"",loaded:!1}),l});try{const o=await fetch(Se(s,e,i,"read"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:U(t),full:!0})});if(!o.ok)return;const l=await o.json(),f=Sn(l.content??"");w(v=>{const Y=new Map(v);return Y.set(t,{savedContent:f,editorValue:f,loaded:!0}),Y})}catch{}}}async function ht(t,n){try{const o=await fetch(Se(s,e,i,"write"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:U(t),content:n})});if(!o.ok){fe("file save failed",{path:t,status:o.status});return}fe("file saved via sandbox /write",{path:t}),K.invalidateQueries({queryKey:Ke(s,e,i)});try{const l=await un(s,e,i);fe("git status after save",l)}catch(l){fe("git status after save failed",{path:t,error:l instanceof Error?l.message:String(l)})}w(l=>{const f=new Map(l),v=f.get(t);return v&&f.set(t,{...v,savedContent:n}),f})}catch{}}function gt(t){h(t),B({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),S(null),V.includes(t)||C(n=>[...n,t]),Te(t)}function vt(t){C(n=>{const o=n.filter(l=>l!==t);return d===t&&h(o[o.length-1]??null),o}),w(n=>{const o=new Map(n);return o.delete(t),o})}function Ae(t){M(n=>{const o=new Set(n);return o.has(t)?o.delete(t):o.add(t),o})}async function yt(t){if(be(t,j.current))try{if(await Oe(t))return}catch(n){W.error(n instanceof Error?n.message:"Failed to load folder");return}Ae(t)}async function Ct(t,n){if(n){Ae(t);return}await yt(t)}async function ve(t){await P.current,await xt(t);const n=Ce(t);M(o=>{const l=new Set(o);for(const f of n)l.add(f);return l}),gt(t)}function wt(){return y?.kind==="directory"?y.path:y?.kind==="file"?je(y.path):d?je(d):"/"}function Le(t){const n=wt();X({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const bt=bn(x,p),Fe=jn(bt,g),Ie=I?Fe.filter(t=>t.node.name.toLowerCase().includes(I.toLowerCase())):Fe,ee=d?k.get(d):null,jt=ee?.loaded&&ee.editorValue!==ee.savedContent,ye=J?it(J.path):[],Nt=(t,n)=>{L.current=t,t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!d)return;const o=t.getValue();await ht(d,o)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const o=t.getSelection(),l=t.getModel();if(!o||!l||!d)return;const f=l.getValueInRange(o);S({filePath:d,lineStart:o.startLineNumber,lineEnd:o.endLineNumber,selectedCode:f})})};function St(t){if(!b)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${b.filePath}\``,`**Lines:** ${b.lineStart}–${b.lineEnd}`];if(b.selectedCode){const o=we(b.filePath),l=b.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+o,l,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),_("chat"),z({parts:[{type:"text",text:n.join(`
2
- `)}]}),S(null)}return q&&!$?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(se,{size:20,className:"animate-spin text-muted-foreground"})}):r.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[r.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[r.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[r.jsxs("div",{className:"relative min-w-0 flex-1",children:[r.jsx(qt,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),r.jsx("input",{type:"text",value:I,onChange:t=>H(t.target.value),placeholder:"Search files...","aria-label":"Search files",className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs outline-none placeholder:text-muted-foreground focus:ring-1 focus:ring-ring"})]}),r.jsxs(ze,{children:[r.jsx(We,{asChild:!0,children:r.jsx(he,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New file",onClick:()=>Le("new-file"),children:r.jsx(Qt,{size:14})})}),r.jsx(Ge,{side:"bottom",children:"New file"})]}),r.jsxs(ze,{children:[r.jsx(We,{asChild:!0,children:r.jsx(he,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New folder",onClick:()=>Le("new-folder"),children:r.jsx(Ht,{size:14})})}),r.jsx(Ge,{side:"bottom",children:"New folder"})]})]}),r.jsx(Zt,{className:"flex-1",children:r.jsxs("div",{className:"py-1",children:[Ie.map(t=>{const{node:n,depth:o}=t,l=n.kind==="directory",f=g.has(n.path),v=y?.path===n.path,Y=Nn(n.path,n.kind),de=l&&T.has(n.path);return r.jsx(dr,{node:n,depth:o,isExpanded:f,isSelected:v,isLoading:de,fileVisual:mr(n.name),onSelect:()=>B(n),onOpen:()=>{l?Ct(n.path,f):ve(n.path)},onNewFile:()=>X({mode:"new-file",node:n,parentDir:Y}),onNewFolder:()=>X({mode:"new-folder",node:n,parentDir:Y}),onCopyPath:()=>De("Path",me(n.path)),onCopyRelativePath:()=>De("Relative path",U(n.path)),onRename:()=>X({mode:"rename",node:n,parentDir:Y}),onDelete:()=>ge(n)},n.path)}),$&&Ie.length===0&&r.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:I?`No files match "${I}"`:"No files found"})]})})]}),r.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[V.length>0&&r.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:V.map(t=>{const n=k.get(t),o=n?.loaded&&n.editorValue!==n.savedContent,l=d===t,f=t.split("/").pop()??t;return r.jsxs("div",{className:ae("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",l?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{h(t),Te(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":l,children:[r.jsx("span",{className:"truncate max-w-32",children:f}),o&&r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),r.jsx("button",{type:"button",className:"ml-1 rounded p-0.5 hover:bg-accent-foreground/10",onClick:v=>{v.stopPropagation(),vt(t)},children:r.jsx(Yt,{size:12})})]},t)})}),b&&r.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:r.jsxs("form",{className:"flex w-full items-center gap-1.5 rounded-xl border border-border bg-background/95 px-3 py-1.5 shadow-lg backdrop-blur",onSubmit:t=>{t.preventDefault();const o=t.currentTarget.elements.namedItem("askAiInput");o.value.trim()&&St(o.value)},children:[r.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:"Ask the AI...",className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&S(null)}}),r.jsx("button",{type:"submit",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-foreground text-background transition-opacity",title:"Send",children:r.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[r.jsx("title",{children:"Send"}),r.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),r.jsx("div",{className:"flex-1 overflow-hidden",children:d&&ee?.loaded?r.jsx(Ut,{language:we(d),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:ee.editorValue,path:d,onChange:t=>{const n=d;n&&w(o=>{const l=new Map(o),f=l.get(n);return f&&l.set(n,{...f,editorValue:t??""}),l})},onMount:Nt,loading:r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(se,{size:20,className:"animate-spin text-muted-foreground"})}),options:{fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,wordWrap:"on",minimap:{enabled:!1},padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}},d):d&&!ee?.loaded?r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsx(se,{size:20,className:"animate-spin text-muted-foreground"})}):r.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:"Select a file to edit"})}),d&&r.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-[11px] text-muted-foreground shrink-0",children:[r.jsx("span",{className:"truncate",children:d}),r.jsxs("span",{children:[jt?"Modified":"Saved"," ·"," ",we(d)]})]})]}),r.jsx(En,{open:D!==null,mode:D?.mode??"new-file",initialName:D?.mode==="rename"?D.node.name:"",parentLabel:D&&D.mode!=="rename"?D.parentDir==="/"?"/":U(D.parentDir):void 0,isPending:ne,onSubmit:ut,onOpenChange:t=>{!t&&!ne&&X(null)}}),r.jsx(en,{open:J!==null,onOpenChange:t=>{!t&&!ne&&ge(null)},children:r.jsxs(tn,{children:[r.jsxs(nn,{children:[r.jsxs(rn,{children:["Delete ",J?.kind==="directory"?"folder":"file","?"]}),r.jsxs(on,{children:["This will permanently delete"," ",r.jsx("span",{className:"font-mono",children:J?.name}),J?.kind==="directory"?" and everything inside it.":".",ye.length>0&&r.jsxs(r.Fragment,{children:[" ",ye.length===1?"One open file has unsaved changes that will be lost.":`${ye.length} open files have unsaved changes that will be lost.`]})]})]}),r.jsxs(sn,{children:[r.jsx(an,{disabled:ne,children:"Cancel"}),r.jsx(ln,{disabled:ne||!J,onClick:t=>{t.preventDefault(),J&&dt(J)},children:"Delete"})]})]})})]})}export{ss as FileExplorer};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-F9o1E2LM.js","assets/index-Cw_MOEue.js","assets/index-BO2t38sV.css","assets/ArrowUp-Cx_--6Z7.js","assets/chat-context-Csy5cRMg.js","assets/autosend-BOPTLlfV.js","assets/hooks-gTEmV-hn.js","assets/use-mcp-client-CwxQ2mu8.js","assets/constants-D_FQAPnt.js","assets/auth-JAYu2Sn7.js","assets/decopilot-sse-pool-DhL2hPm4.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/studio-tools-bcpgTNof.js","assets/use-virtual-mcp-R-nHNI8F.js","assets/use-collections-Mmumb7Jv.js","assets/use-ai-providers-CfC4MjYU.js","assets/use-decopilot-events-Cy3Splz7.js","assets/tab-id-bb-jjgGv.js","assets/use-organization-settings-D2FVOkxT.js","assets/automation-runs-CG9qLUqb.js","assets/select-BbQScYUM.js","assets/tooltip-CEMhn06S.js","assets/Check-qklIr9eC.js","assets/ChevronDown-Dqw9pJbF.js","assets/ChevronUp-C-6o6d8u.js","assets/useInfiniteQuery-DNK1YDMj.js","assets/use-infinite-scroll-BJxks4Oh.js","assets/use-connection-BwHNV7F-.js","assets/card-B5uBFViO.js","assets/sidebar-B4yomm08.js","assets/LayoutLeft-CY_ilnE-.js","assets/use-mobile-CDGvObYb.js","assets/X-Dg3UHk4M.js","assets/table-D6kZLJZo.js","assets/empty-state-BAbUNiFM.js","assets/use-members-HgTG6V2z.js","assets/use-org-auth-client-CR847Rtk.js","assets/use-clock-tick-BoYgP8-u.js","assets/AlertCircle-CeJgODlb.js","assets/CheckCircle-B5HHFx3h.js","assets/Circle-DFIMbbWU.js","assets/agent-icon-BF217Hvb.js","assets/UserPlus01-CxsIZHHu.js","assets/Tool01-Dym7sffh.js","assets/Settings02-Rjz2fibP.js","assets/Tool02-DWpgQDA_.js","assets/XCircle-BVO-AfDl.js","assets/ArrowUpRight-ywfBK9uD.js","assets/TrendUp01-DJyrqfDN.js","assets/ZapSquare-CYxtM-xd.js","assets/Users03-C601mmDP.js","assets/ChevronRight-DX001g0F.js","assets/Stars02-pEQdLQRy.js","assets/Copy01-LCtBKUFe.js","assets/ZoomOut-FOnWv2R3.js","assets/DotsVertical-wzt5Huxh.js","assets/Globe01-Bwt4oV0U.js","assets/Eye-CTCWS-BQ.js","assets/FilterLines-0m6crn3m.js","assets/Flag01-D_fUJHwZ.js","assets/Star01-kGVgFut9.js","assets/Globe04-CD717DpH.js","assets/SwitchHorizontal01-UaHGqUVt.js","assets/HardDrive-Cq-YbPK9.js","assets/Key01-DTTa_ngJ.js","assets/LinkExternal01-Cc-TIWai.js","assets/List-1sCiilk_.js","assets/Monitor01-BA72KgrB.js","assets/Sun-gRl2Ql5n.js","assets/Package-PE508kJN.js","assets/Palette-CKmdnXoY.js","assets/Play-CcnDti9J.js","assets/Plus-Dg6Y61Qh.js","assets/SearchLg-DCvqx7mk.js","assets/SearchMd-CxXAIK8q.js","assets/Shield01-DoN422Fp.js","assets/Stars01-BMHX9PwN.js","assets/Trash01-FLsHPD-j.js","assets/Upload01-Bf-wW3fT.js","assets/User01-Bp8xCtim.js","assets/Users01-CUB4jTbh.js","assets/XClose-CSAbqx7t.js","assets/Zap-C5e_tw0_.js","assets/use-automations-BV8BAFK6.js","assets/useSuspenseInfiniteQuery-DIBoNO1Z.js","assets/badge-DAQJGlmB.js","assets/checkbox-BfaUpDdG.js","assets/command-CaofFN3p.js","assets/index-CXseUXwz.js","assets/dialog-94MC6GNA.js","assets/popover-YRjoqx5c.js","assets/avatar-B8GP78HG.js","assets/format-time-BnbuEtat.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/use-copy-DwaNL7ao.js","assets/file-type-icon-cxQD2Gow.js","assets/monaco-editor-DOlDq43r.js","assets/index-DFa2bm2W.js","assets/index-Ce2Igu8Z.js","assets/shell-layout-C3vwcwKJ.js","assets/alert-dialog-NEl6qUgZ.js","assets/required-auth-layout-CkCZ1VH2.js","assets/use-org-sso-_zvIWw2Z.js","assets/integration-icon-B9AX6sxk.js","assets/use-navigate-to-agent-JH1aTgiP.js","assets/reusable-new-chat-CouMjkYR.js","assets/AreaChart-DjQ3-mxR.js","assets/form-DkmV3bZG.js","assets/label-wqLdGJT0.js","assets/input-C57OE_bz.js","assets/drawer-Co_r3vYF.js","assets/collection-search-Qnz6jxTV.js","assets/tabs-uog8ypZ5.js","assets/toggle-group-xXar88Zl.js","assets/use-deco-credits-JXELkRA8.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-CL_n4ga5.js","assets/use-registry-connections-DYAxxhes.js","assets/extract-connection-data-kn2oock2.js","assets/collection-tabs-BCpGbCT5.js","assets/textarea-D96KZ_bk.js","assets/connection-form-helpers-Dx2pWKQg.js","assets/authenticate-and-persist-oauth-CHpUAxht.js","assets/mcp-oauth-CaQ5w7vv.js","assets/connect-desktop-dialog-Dd78-wLs.js","assets/select-model-Ivlt_Hjk.js","assets/skeleton-Dn-HzxdH.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-kWU5lPTB.js","assets/dropdown-menu-CwZxSb5T.js","assets/index-BxUWUc0Q.js","assets/toolbar-DF6E_99x.js","assets/use-debounced-value-B3ktPBBI.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-BkjfcEfu.js","assets/use-mcp-tools-DS-HH6so.js","assets/use-capability-IeWRUHjn.js","assets/tools-list-DyJkBr3l.js","assets/switch-Dj8a0W96.js","assets/use-debounced-autosave-CAJHdpnz.js","assets/index-BOigHE8Y.js","assets/search-input-CqxCn4Rx.js","assets/github-repo-picker-ZKvJa1LN.js","assets/github-installations-ChFezl8I.js","assets/use-secrets-DVIAQNCJ.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/companions-core-DcZqHo8p.js","assets/toolbar-icon-button-CwX9OsPP.js","assets/calendar-C6LcfVwu.js","assets/use-file-configs-C5MIjZBk.js","assets/automation-list-row-BqcM-T9k.js","assets/index-DDGTF8rc.css"])))=>i.map(i=>d[i]);
2
- import{c as A,l as D,j as s,r as z,C as kt,n as Ut,m as qt,d as yt,K as It,B as qe,aX as os,i as cs}from"./index-Cw_MOEue.js";import{g as re}from"./get-initials-D-f_fDFw.js";import{A as ie}from"./avatar-B8GP78HG.js";import{d as Tt,i as ds,t as ms,e as us,f as it,a as Qe,s as fs,b as Gt,g as xs,c as ps}from"./UserPlus01-CxsIZHHu.js";import{i as gs}from"./List-1sCiilk_.js";import{s as zt}from"./Plus-Dg6Y61Qh.js";import{e as hs}from"./constants-D_FQAPnt.js";import{u as Kt}from"./use-members-HgTG6V2z.js";import{u as At}from"./studio-tools-bcpgTNof.js";import{t as bs,S as Ye}from"./decopilot-sse-pool-DhL2hPm4.js";import{u as js}from"./use-decopilot-events-Cy3Splz7.js";import{a as Ns}from"./format-time-BnbuEtat.js";import{i as Qt}from"./AlertCircle-CeJgODlb.js";import{i as Yt}from"./CheckCircle-B5HHFx3h.js";import{i as ys}from"./Circle-DFIMbbWU.js";import{s as vs}from"./Eye-CTCWS-BQ.js";import{a as Ss,d as Cs,e as _s}from"./dialog-94MC6GNA.js";import{a as ot,c as ct,d as Ge,D as dt}from"./dropdown-menu-CwZxSb5T.js";import{P as vt,a as St,b as Ct}from"./popover-YRjoqx5c.js";import{b as Ht,C as Vt,a as ue,e as mt,d as Xt,c as Jt}from"./command-CaofFN3p.js";import{C as ws}from"./calendar-C6LcfVwu.js";import{i as Ds}from"./ChevronRight-DX001g0F.js";import{n as ks}from"./LinkExternal01-Cc-TIWai.js";import{s as _t}from"./User01-Bp8xCtim.js";import{i as Ot}from"./X-Dg3UHk4M.js";import{g as Is,b as Ts,e as zs,f as As,a as $s,D as Es}from"./drawer-Co_r3vYF.js";import{t as $t}from"./ChevronDown-Dqw9pJbF.js";import{i as Wt}from"./FilterLines-0m6crn3m.js";import{s as Os}from"./Flag01-D_fUJHwZ.js";import{u as Bs}from"./shell-layout-C3vwcwKJ.js";function me(t){const e=A.c(8),{size:l,className:a}=t,n=l===void 0?16:l;let r;e[0]!==n?(r={width:n,height:n},e[0]=n,e[1]=r):r=e[1];let i;e[2]!==a?(i=D("shrink-0 rounded-full object-cover",a),e[2]=a,e[3]=i):i=e[3];let o;return e[4]!==n||e[5]!==r||e[6]!==i?(o=s.jsx("img",{src:hs,alt:"Super Agent",width:n,height:n,style:r,className:i}),e[4]=n,e[5]=r,e[6]=i,e[7]=o):o=e[7],o}const Bt=()=>0;function Fs(t){const{orgSlug:e,enabled:l=!0,onUpdate:a}=t,n=z.useRef(a);n.current=a;const r=z.useRef(null),i=z.useRef(l),o=z.useRef(e);(!r.current||i.current!==l||o.current!==e)&&(i.current=l,o.current=e,r.current=f=>{if(!l||!e)return()=>{};const m=x=>{let c;try{c=JSON.parse(x.data)}catch{return}c.data&&n.current(c.data),f()};return bs.subscribe(e,m)}),z.useSyncExternalStore(r.current,Bt,Bt)}function Rs(){const t=A.c(25),{org:e,locator:l}=kt(),a=At(),n=Ut();let r;t[0]!==l?(r=It.taskBoardItems(l),t[0]=l,t[1]=r):r=t[1];const i=r;let o;t[2]!==a?(o=async()=>(await a.call("TASK_BOARD_ITEM_LIST",{})).items,t[2]=a,t[3]=o):o=t[3];let d;t[4]!==i||t[5]!==o?(d={queryKey:i,queryFn:o},t[4]=i,t[5]=o,t[6]=d):d=t[6];const f=qt(d);let m;t[7]!==n||t[8]!==i?(m=g=>{n.setQueryData(i,N=>{const b=N??[],j=g;return b.some(y=>y.id===j.id)?b.map(y=>y.id===j.id?j:y):[j,...b]})},t[7]=n,t[8]=i,t[9]=m):m=t[9];let x;t[10]!==e.slug||t[11]!==m?(x={orgSlug:e.slug,onUpdate:m},t[10]=e.slug,t[11]=m,t[12]=x):x=t[12],Fs(x);let c;t[13]!==n||t[14]!==i?(c=g=>{const N=g.subject,b=g.data.status;n.setQueryData(i,j=>j?.map(y=>y.threads.some(v=>v.threadId===N)?{...y,threads:y.threads.map(v=>v.threadId===N?{...v,status:b}:v)}:y))},t[13]=n,t[14]=i,t[15]=c):c=t[15];let u;t[16]!==e.slug||t[17]!==c?(u={orgSlug:e.slug,onTaskStatus:c},t[16]=e.slug,t[17]=c,t[18]=u):u=t[18],js(u);let p;t[19]!==f.data?(p=f.data??[],t[19]=f.data,t[20]=p):p=t[20];let h;return t[21]!==f.error||t[22]!==f.isLoading||t[23]!==p?(h={items:p,isLoading:f.isLoading,error:f.error},t[21]=f.error,t[22]=f.isLoading,t[23]=p,t[24]=h):h=t[24],h}function Ps(){const t=A.c(30),{locator:e}=kt(),l=At(),a=Ut();let n;t[0]!==e?(n=It.taskBoardItems(e),t[0]=e,t[1]=n):n=t[1];const r=n;let i;t[2]!==a||t[3]!==r?(i=()=>a.invalidateQueries({queryKey:r}),t[2]=a,t[3]=r,t[4]=i):i=t[4];const o=i;let d;t[5]!==l?(d=y=>l.call("TASK_BOARD_ITEM_CREATE",y),t[5]=l,t[6]=d):d=t[6];let f;t[7]!==o||t[8]!==d?(f={mutationFn:d,onSuccess:o},t[7]=o,t[8]=d,t[9]=f):f=t[9];const m=yt(f);let x;t[10]!==l?(x=y=>l.call("TASK_BOARD_ITEM_UPDATE",y),t[10]=l,t[11]=x):x=t[11];let c,u;t[12]!==a||t[13]!==r?(c=async y=>{await a.cancelQueries({queryKey:r});const v=a.getQueryData(r);return a.setQueryData(r,w=>w?.map($=>$.id===y.id?{...$,...y}:$)),{previous:v}},u=(y,v,w)=>{w?.previous&&a.setQueryData(r,w.previous)},t[12]=a,t[13]=r,t[14]=c,t[15]=u):(c=t[14],u=t[15]);let p;t[16]!==o||t[17]!==x||t[18]!==c||t[19]!==u?(p={mutationFn:x,onMutate:c,onError:u,onSettled:o},t[16]=o,t[17]=x,t[18]=c,t[19]=u,t[20]=p):p=t[20];const h=yt(p);let g;t[21]!==l?(g=y=>l.call("TASK_BOARD_ITEM_DELETE",{id:y}),t[21]=l,t[22]=g):g=t[22];let N;t[23]!==o||t[24]!==g?(N={mutationFn:g,onSuccess:o},t[23]=o,t[24]=g,t[25]=N):N=t[25];const b=yt(N);let j;return t[26]!==m||t[27]!==b||t[28]!==h?(j={create:m,update:h,remove:b},t[26]=m,t[27]=b,t[28]=h,t[29]=j):j=t[29],j}function wt(t){return t.threads.some(e=>e.status==="requires_action")}function Zt(t){return t.threads[0]}const es=["triage","todo","in_progress","in_review","done"],ae={triage:{label:"Backlog",icon:Qt,iconClassName:"text-muted-foreground"},todo:{label:"To Do",icon:ys,iconClassName:"text-muted-foreground"},in_progress:{label:"In Progress",icon:Tt,iconClassName:"text-blue-500"},in_review:{label:"In Review",icon:vs,iconClassName:"text-amber-500"},done:{label:"Done",icon:Yt,iconClassName:"text-green-600"}},ts=["none","low","medium","high","urgent"],oe={none:{label:"No priority",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50"},low:{label:"Low",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40"},medium:{label:"Medium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500"},high:{label:"High",flagClassName:"text-orange-500",dotClassName:"bg-orange-500"},urgent:{label:"Urgent",flagClassName:"text-red-500",dotClassName:"bg-red-500"}};function Ms(t){const e=A.c(10),{locator:l}=kt(),a=At();let n;e[0]!==t||e[1]!==l?(n=It.taskBoardItemPrs(l,t??""),e[0]=t,e[1]=l,e[2]=n):n=e[2];const r=!!t;let i;e[3]!==t||e[4]!==a?(i=async()=>(await a.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:t})).prs,e[3]=t,e[4]=a,e[5]=i):i=e[5];let o;return e[6]!==n||e[7]!==r||e[8]!==i?(o={queryKey:n,enabled:r,queryFn:i},e[6]=n,e[7]=r,e[8]=i,e[9]=o):o=e[9],qt(o)}function Ls(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23,59,59).toISOString()}function Ft(t){if(!t)return null;const e=new Date(t);return Number.isNaN(e.getTime())?null:e}const Us=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"}),Ke="inline-flex h-9 items-center gap-2 rounded-lg border border-border px-3 text-sm font-medium text-foreground transition-colors hover:bg-muted sm:border-transparent",qs={failed:{label:"Error",className:"text-red-600",icon:xs},requires_action:{label:"Needs input",className:"text-amber-600",icon:Gt},in_progress:{label:"Running",className:"text-blue-600",icon:Tt,spin:!0},completed:{label:"Completed",className:"text-green-600",icon:Yt},expired:{label:"Expired",className:"text-muted-foreground",icon:Qt}};function Gs(t){const e=A.c(157),{open:l,onClose:a,item:n,defaultStatus:r,onSubmit:i,onDelete:o,onOpenThread:d,isSaving:f}=t,{data:m}=Kt();let x;e[0]!==m?.data?.members?(x=m?.data?.members??[],e[0]=m?.data?.members,e[1]=x):x=e[1];const c=x,[u,p]=z.useState(n?.title??""),[h,g]=z.useState(n?.description??""),[N,b]=z.useState(n?.status??r??"triage"),[j,y]=z.useState(n?.priority??"medium"),[v,w]=z.useState(n?.assigneeId??null),$=n?.dueDate;let B;e[2]!==$?(B=Ft($),e[2]=$,e[3]=B):B=e[3];const[k,K]=z.useState(B),[q,M]=z.useState(!1),[L,F]=z.useState(!1);let R;e[4]!==r||e[5]!==n?.assigneeId||e[6]!==n?.description||e[7]!==n?.dueDate||e[8]!==n?.priority||e[9]!==n?.status||e[10]!==n?.title?(R=()=>{p(n?.title??""),g(n?.description??""),b(n?.status??r??"triage"),y(n?.priority??"medium"),w(n?.assigneeId??null),K(Ft(n?.dueDate))},e[4]=r,e[5]=n?.assigneeId,e[6]=n?.description,e[7]=n?.dueDate,e[8]=n?.priority,e[9]=n?.status,e[10]=n?.title,e[11]=R):R=e[11];const U=R;let I;e[12]!==a||e[13]!==U?(I=()=>{a(),U()},e[12]=a,e[13]=U,e[14]=I):I=e[14];const P=I;let G;e[15]!==v||e[16]!==h||e[17]!==k||e[18]!==i||e[19]!==j||e[20]!==N||e[21]!==u?(G=()=>{const S=u.trim();S&&i({title:S,description:h.trim()||null,status:N,priority:j,assigneeId:v,dueDate:k?Ls(k):null})},e[15]=v,e[16]=h,e[17]=k,e[18]=i,e[19]=j,e[20]=N,e[21]=u,e[22]=G):G=e[22];const T=G,C=v===Ye;let Q;if(e[23]!==v||e[24]!==c){let S;e[26]!==v?(S=H=>H.userId===v,e[26]=v,e[27]=S):S=e[27],Q=c.find(S),e[23]=v,e[24]=c,e[25]=Q}else Q=e[25];const O=Q;let ee;e[28]!==n||e[29]!==c?(ee=n?.assignedBy?c.find(S=>S.userId===n.assignedBy):void 0,e[28]=n,e[29]=c,e[30]=ee):ee=e[30];const E=ee,te=ae[N].icon;let V;e[31]!==n?(V=n?Zt(n):void 0,e[31]=n,e[32]=V):V=e[32];const ce=V;let X;e[33]!==P?(X=S=>!S&&P(),e[33]=P,e[34]=X):X=e[34];const se=n?"Edit task":"New task";let le;e[35]!==se?(le=s.jsx(Ss,{className:"sr-only",children:se}),e[35]=se,e[36]=le):le=e[36];let ne;e[37]===Symbol.for("react.memo_cache_sentinel")?(ne=s.jsx(Ot,{size:16}),e[37]=ne):ne=e[37];let Y;e[38]!==P?(Y=s.jsx("button",{type:"button","aria-label":"Close",onClick:P,className:"absolute right-2.5 top-2.5 z-10 flex size-10 items-center justify-center rounded-lg text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:ne}),e[38]=P,e[39]=Y):Y=e[39];let J;e[40]===Symbol.for("react.memo_cache_sentinel")?(J=S=>p(S.target.value),e[40]=J):J=e[40];let W;e[41]!==u?(W=s.jsx("input",{value:u,onChange:J,placeholder:"Task title...",autoFocus:!0,className:"w-full border-0 bg-transparent text-xl font-medium text-foreground outline-none placeholder:text-foreground/30"}),e[41]=u,e[42]=W):W=e[42];let Z;e[43]===Symbol.for("react.memo_cache_sentinel")?(Z=S=>g(S.target.value),e[43]=Z):Z=e[43];let _;e[44]!==h?(_=s.jsx("textarea",{value:h,onChange:Z,placeholder:"Describe a task for an agent...",className:"min-h-[96px] w-full flex-1 resize-none border-0 bg-transparent text-[15px] leading-relaxed text-foreground outline-none placeholder:text-muted-foreground/50 sm:min-h-[120px]"}),e[44]=h,e[45]=_):_=e[45];let de;e[46]!==E||e[47]!==O||e[48]!==d||e[49]!==ce?(de=ce&&s.jsx(Ks,{thread:ce,startedBy:E??O,onOpen:d}),e[46]=E,e[47]=O,e[48]=d,e[49]=ce,e[50]=de):de=e[50];let fe;e[51]!==n?(fe=n?.id&&s.jsx(Hs,{itemId:n.id}),e[51]=n,e[52]=fe):fe=e[52];let xe;e[53]!==W||e[54]!==_||e[55]!==de||e[56]!==fe?(xe=s.jsxs("div",{className:"flex min-w-0 flex-col gap-6 p-6 sm:flex-1 sm:overflow-y-auto sm:p-8",children:[W,_,de,fe]}),e[53]=W,e[54]=_,e[55]=de,e[56]=fe,e[57]=xe):xe=e[57];let He;e[58]===Symbol.for("react.memo_cache_sentinel")?(He=s.jsx("span",{className:"hidden px-3 text-sm text-muted-foreground sm:block",children:"Properties"}),e[58]=He):He=e[58];const xt=ae[N];let pe;e[59]!==te||e[60]!==xt.iconClassName?(pe=s.jsx(te,{size:16,className:xt.iconClassName}),e[59]=te,e[60]=xt.iconClassName,e[61]=pe):pe=e[61];const pt=ae[N];let ge;e[62]!==pe||e[63]!==pt.label?(ge=s.jsx(ot,{asChild:!0,children:s.jsxs("button",{type:"button",className:Ke,children:[pe,pt.label]})}),e[62]=pe,e[63]=pt.label,e[64]=ge):ge=e[64];let Ve;e[65]===Symbol.for("react.memo_cache_sentinel")?(Ve=s.jsx(ct,{align:"start",className:"w-44",children:es.map(S=>{const H=ae[S].icon;return s.jsxs(Ge,{onSelect:()=>b(S),className:"gap-2",children:[s.jsx(H,{size:16,className:ae[S].iconClassName}),ae[S].label]},S)})}),e[65]=Ve):Ve=e[65];let he;e[66]!==ge?(he=s.jsxs(dt,{children:[ge,Ve]}),e[66]=ge,e[67]=he):he=e[67];const gt=j==="none"&&"text-muted-foreground";let be;e[68]!==gt?(be=D(Ke,gt),e[68]=gt,e[69]=be):be=e[69];let je;e[70]!==j?(je=j==="none"?s.jsxs(s.Fragment,{children:[s.jsx(ds,{size:16}),"Set priority"]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:D("size-2 rounded-full",oe[j].dotClassName)}),oe[j].label]}),e[70]=j,e[71]=je):je=e[71];let Ne;e[72]!==be||e[73]!==je?(Ne=s.jsx(ot,{asChild:!0,children:s.jsx("button",{type:"button",className:be,children:je})}),e[72]=be,e[73]=je,e[74]=Ne):Ne=e[74];let Xe;e[75]===Symbol.for("react.memo_cache_sentinel")?(Xe=s.jsx(ct,{align:"start",className:"w-40",children:ts.map(S=>s.jsxs(Ge,{onSelect:()=>y(S),children:[s.jsx("span",{className:D("size-2 rounded-full",oe[S].dotClassName)}),oe[S].label]},S))}),e[75]=Xe):Xe=e[75];let ye;e[76]!==Ne?(ye=s.jsxs(dt,{children:[Ne,Xe]}),e[76]=Ne,e[77]=ye):ye=e[77];const ht=!v&&"text-muted-foreground";let ve;e[78]!==ht?(ve=D(Ke,ht),e[78]=ht,e[79]=ve):ve=e[79];let Se;e[80]!==E||e[81]!==O||e[82]!==C?(Se=C&&E?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"hidden items-center gap-2 sm:flex",children:[s.jsx(ie,{url:E.user?.image??void 0,fallback:re(E.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:E.user?.name??"Super Agent"})]}),s.jsxs("span",{className:"flex items-center gap-2 sm:hidden",children:[s.jsxs("span",{className:"inline-flex items-center",children:[s.jsx(ie,{url:E.user?.image??void 0,fallback:re(E.user?.name),shape:"circle",size:"2xs",className:"-mr-1.5 ring-2 ring-background"}),s.jsx(me,{size:16,className:"ring-2 ring-background"})]}),"Super Agent"]})]}):C?s.jsxs(s.Fragment,{children:[s.jsx(me,{size:16}),"Super Agent"]}):O?s.jsxs(s.Fragment,{children:[s.jsx(ie,{url:O.user?.image??void 0,fallback:re(O.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:O.user?.name??"Unassigned"})]}):s.jsxs(s.Fragment,{children:[s.jsx(ms,{size:16,className:"text-muted-foreground"}),"Assign"]}),e[80]=E,e[81]=O,e[82]=C,e[83]=Se):Se=e[83];let Ce;e[84]!==ve||e[85]!==Se?(Ce=s.jsx(vt,{asChild:!0,children:s.jsx("button",{type:"button",className:ve,children:Se})}),e[84]=ve,e[85]=Se,e[86]=Ce):Ce=e[86];let Je;e[87]===Symbol.for("react.memo_cache_sentinel")?(Je=s.jsx(Ht,{placeholder:"Assign to…",className:"h-9"}),e[87]=Je):Je=e[87];let We;e[88]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsx(Vt,{children:"No members found."}),e[88]=We):We=e[88];let Ze;e[89]===Symbol.for("react.memo_cache_sentinel")?(Ze=()=>{w(Ye),F(!1)},e[89]=Ze):Ze=e[89];let et;e[90]===Symbol.for("react.memo_cache_sentinel")?(et=s.jsxs(ue,{value:"Super Agent",onSelect:Ze,className:"gap-2",children:[s.jsx(me,{size:16}),s.jsx("span",{className:"truncate",children:"Super Agent"})]}),e[90]=et):et=e[90];let tt;e[91]===Symbol.for("react.memo_cache_sentinel")?(tt=()=>{w(null),F(!1)},e[91]=tt):tt=e[91];let st;e[92]===Symbol.for("react.memo_cache_sentinel")?(st=s.jsxs(mt,{children:[et,s.jsxs(ue,{value:"Unassigned",onSelect:tt,className:"gap-2",children:[s.jsx(_t,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"truncate",children:"Unassigned"})]})]}),e[92]=st):st=e[92];let _e;if(e[93]!==c){let S;e[95]===Symbol.for("react.memo_cache_sentinel")?(S=H=>s.jsxs(ue,{value:H.user?.name??H.userId,onSelect:()=>{w(H.userId),F(!1)},className:"gap-2",children:[s.jsx(ie,{url:H.user?.image??void 0,fallback:re(H.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:H.user?.name??H.userId})]},H.userId),e[95]=S):S=e[95],_e=c.map(S),e[93]=c,e[94]=_e}else _e=e[94];let we;e[96]!==_e?(we=s.jsx(St,{align:"start",className:"w-56 p-0",children:s.jsxs(Xt,{children:[Je,s.jsxs(Jt,{children:[We,st,s.jsx(mt,{heading:"Members",children:_e})]})]})}),e[96]=_e,e[97]=we):we=e[97];let De;e[98]!==L||e[99]!==Ce||e[100]!==we?(De=s.jsxs(Ct,{open:L,onOpenChange:F,children:[Ce,we]}),e[98]=L,e[99]=Ce,e[100]=we,e[101]=De):De=e[101];let ke;e[102]!==E||e[103]!==C?(ke=C&&E&&s.jsxs("div",{className:"relative mt-1.5 hidden items-center pl-5 sm:flex",children:[s.jsx("span",{className:"absolute -top-1.5 left-5 h-[calc(50%+0.375rem)] w-2.5 rounded-bl-md border-b border-l border-border"}),s.jsxs("span",{className:D(Ke,"pointer-events-none"),children:[s.jsx(me,{size:16}),"Super Agent"]})]}),e[102]=E,e[103]=C,e[104]=ke):ke=e[104];let Ie;e[105]!==De||e[106]!==ke?(Ie=s.jsxs("div",{className:"flex flex-col",children:[De,ke]}),e[105]=De,e[106]=ke,e[107]=Ie):Ie=e[107];const bt=!k&&"text-muted-foreground";let Te;e[108]!==bt?(Te=D(Ke,bt),e[108]=bt,e[109]=Te):Te=e[109];let lt;e[110]===Symbol.for("react.memo_cache_sentinel")?(lt=s.jsx(Qe,{size:16,className:"text-muted-foreground"}),e[110]=lt):lt=e[110];let ze;e[111]!==k?(ze=k?Us.format(k):"Due date",e[111]=k,e[112]=ze):ze=e[112];let Ae;e[113]!==k?(Ae=k&&s.jsx("span",{role:"button",tabIndex:0,"aria-label":"Clear due date",className:"-mr-1 ml-0.5 flex size-4 items-center justify-center rounded-sm text-muted-foreground hover:bg-muted hover:text-foreground",onClick:S=>{S.stopPropagation(),K(null)},onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),S.stopPropagation(),K(null))},children:s.jsx(Ot,{size:12})}),e[113]=k,e[114]=Ae):Ae=e[114];let $e;e[115]!==Te||e[116]!==ze||e[117]!==Ae?($e=s.jsx(vt,{asChild:!0,children:s.jsxs("button",{type:"button",className:Te,children:[lt,ze,Ae]})}),e[115]=Te,e[116]=ze,e[117]=Ae,e[118]=$e):$e=e[118];const jt=k??void 0;let nt;e[119]===Symbol.for("react.memo_cache_sentinel")?(nt=S=>{K(S??null),S&&M(!1)},e[119]=nt):nt=e[119];let Ee;e[120]!==jt?(Ee=s.jsx(St,{className:"w-auto p-0",align:"start",children:s.jsx(ws,{mode:"single",selected:jt,onSelect:nt,initialFocus:!0})}),e[120]=jt,e[121]=Ee):Ee=e[121];let Oe;e[122]!==q||e[123]!==$e||e[124]!==Ee?(Oe=s.jsxs(Ct,{open:q,onOpenChange:M,children:[$e,Ee]}),e[122]=q,e[123]=$e,e[124]=Ee,e[125]=Oe):Oe=e[125];let Be;e[126]!==he||e[127]!==ye||e[128]!==Ie||e[129]!==Oe?(Be=s.jsxs("div",{className:"flex w-full shrink-0 flex-col gap-4 border-t border-border p-6 sm:w-[220px] sm:border-t-0 sm:border-l sm:px-6 sm:py-10",children:[He,s.jsxs("div",{className:"flex flex-wrap gap-2 sm:flex-col",children:[he,ye,Ie,Oe]})]}),e[126]=he,e[127]=ye,e[128]=Ie,e[129]=Oe,e[130]=Be):Be=e[130];let Fe;e[131]!==xe||e[132]!==Be?(Fe=s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto sm:flex-row sm:overflow-hidden",children:[xe,Be]}),e[131]=xe,e[132]=Be,e[133]=Fe):Fe=e[133];let Re;e[134]!==n||e[135]!==o?(Re=n&&o?s.jsx(qe,{variant:"ghost",size:"icon","aria-label":"Delete task",className:"size-10 text-muted-foreground hover:text-destructive",onClick:o,children:s.jsx(fs,{size:16})}):s.jsx("span",{}),e[134]=n,e[135]=o,e[136]=Re):Re=e[136];let Pe;e[137]!==f||e[138]!==u?(Pe=!u.trim()||f,e[137]=f,e[138]=u,e[139]=Pe):Pe=e[139];let at;e[140]===Symbol.for("react.memo_cache_sentinel")?(at=s.jsx(zt,{size:16}),e[140]=at):at=e[140];const Nt=n?"Save":"Create task";let Me;e[141]!==T||e[142]!==Pe||e[143]!==Nt?(Me=s.jsxs(qe,{size:"sm",disabled:Pe,onClick:T,children:[at,Nt]}),e[141]=T,e[142]=Pe,e[143]=Nt,e[144]=Me):Me=e[144];let Le;e[145]!==Re||e[146]!==Me?(Le=s.jsxs("div",{className:"flex h-16 items-center justify-between border-t border-border px-4",children:[Re,Me]}),e[145]=Re,e[146]=Me,e[147]=Le):Le=e[147];let Ue;e[148]!==le||e[149]!==Y||e[150]!==Fe||e[151]!==Le?(Ue=s.jsxs(Cs,{className:"flex max-h-[90vh] flex-col gap-0 overflow-hidden rounded-2xl p-0 sm:h-[85vh] sm:max-h-[640px] sm:max-w-[850px]",closeButtonClassName:"hidden",children:[le,Y,Fe,Le]}),e[148]=le,e[149]=Y,e[150]=Fe,e[151]=Le,e[152]=Ue):Ue=e[152];let rt;return e[153]!==l||e[154]!==X||e[155]!==Ue?(rt=s.jsx(_s,{open:l,onOpenChange:X,children:Ue}),e[153]=l,e[154]=X,e[155]=Ue,e[156]=rt):rt=e[156],rt}function Ks(t){const e=A.c(14),{thread:l,startedBy:a,onOpen:n}=t,r=l.status?qs[l.status]:null,i=l.lastMessage??l.title;let o,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(me,{size:16}),d=s.jsx("span",{className:"text-sm text-foreground",children:"Super Agent"}),e[0]=o,e[1]=d):(o=e[0],d=e[1]);let f;e[2]!==a?(f=a&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-sm text-muted-foreground/50",children:"started by"}),s.jsx(ie,{url:a.user?.image??void 0,fallback:re(a.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate text-sm text-foreground",children:a.user?.name??"someone"})]}),e[2]=a,e[3]=f):f=e[3];let m;e[4]!==f?(m=s.jsxs("div",{className:"flex items-center gap-2 px-4 py-3.5",children:[o,d,f]}),e[4]=f,e[5]=m):m=e[5];let x;e[6]!==i||e[7]!==n||e[8]!==r||e[9]!==l?(x=r&&s.jsxs("button",{type:"button",disabled:!n,onClick:()=>n?.(l),className:"flex items-center gap-2 border-t border-border px-4 py-2 text-left transition-colors enabled:hover:bg-muted disabled:cursor-default",children:[s.jsxs("span",{className:D("flex items-center gap-1.5",r.className),children:[s.jsx(r.icon,{size:16,className:D(r.spin&&"animate-spin")}),s.jsx("span",{className:"text-sm",children:r.label})]}),i&&s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:i}),n&&s.jsx(Ds,{size:16,className:"ml-auto shrink-0 text-muted-foreground"})]}),e[6]=i,e[7]=n,e[8]=r,e[9]=l,e[10]=x):x=e[10];let c;return e[11]!==m||e[12]!==x?(c=s.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-border",children:[m,x]}),e[11]=m,e[12]=x,e[13]=c):c=e[13],c}function Qs(t){return t.merged?{label:"Merged",className:"text-purple-600",icon:us}:t.state==="closed"?{label:"Closed",className:"text-red-600",icon:it}:t.draft?{label:"Draft",className:"text-muted-foreground",icon:it}:{label:"Open",className:"text-green-600",icon:it}}function Ys(t){const e=A.c(38),{pr:l}=t;let a,n,r,i,o,d,f,m;if(e[0]!==l){n=Qs(l);let v;e[9]!==l.body?(v=l.body?.trim(),e[9]=l.body,e[10]=v):v=e[10],a=v,o=l.url,d="_blank",f="noreferrer",m="flex flex-col gap-1 border-t border-border px-4 py-2 transition-colors hover:bg-muted",i="flex items-center gap-2",r=D("flex items-center gap-1.5",n.className),e[0]=l,e[1]=a,e[2]=n,e[3]=r,e[4]=i,e[5]=o,e[6]=d,e[7]=f,e[8]=m}else a=e[1],n=e[2],r=e[3],i=e[4],o=e[5],d=e[6],f=e[7],m=e[8];let x;e[11]!==n.icon?(x=s.jsx(n.icon,{size:16}),e[11]=n.icon,e[12]=x):x=e[12];let c;e[13]!==n.label?(c=s.jsx("span",{className:"text-sm",children:n.label}),e[13]=n.label,e[14]=c):c=e[14];let u;e[15]!==r||e[16]!==x||e[17]!==c?(u=s.jsxs("span",{className:r,children:[x,c]}),e[15]=r,e[16]=x,e[17]=c,e[18]=u):u=e[18];const p=l.title??`${l.repoOwner}/${l.repoName}`;let h;e[19]!==p?(h=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-foreground",children:p}),e[19]=p,e[20]=h):h=e[20];let g;e[21]!==l.number?(g=s.jsxs("span",{className:"shrink-0 text-sm text-muted-foreground",children:["#",l.number]}),e[21]=l.number,e[22]=g):g=e[22];let N;e[23]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(ks,{size:16,className:"shrink-0 text-muted-foreground"}),e[23]=N):N=e[23];let b;e[24]!==h||e[25]!==g||e[26]!==i||e[27]!==u?(b=s.jsxs("span",{className:i,children:[u,h,g,N]}),e[24]=h,e[25]=g,e[26]=i,e[27]=u,e[28]=b):b=e[28];let j;e[29]!==a?(j=a?s.jsx("span",{className:"line-clamp-3 whitespace-pre-line text-xs text-muted-foreground",children:a}):null,e[29]=a,e[30]=j):j=e[30];let y;return e[31]!==b||e[32]!==j||e[33]!==o||e[34]!==d||e[35]!==f||e[36]!==m?(y=s.jsxs("a",{href:o,target:d,rel:f,className:m,children:[b,j]}),e[31]=b,e[32]=j,e[33]=o,e[34]=d,e[35]=f,e[36]=m,e[37]=y):y=e[37],y}function Hs(t){const e=A.c(5),{itemId:l}=t,{data:a,isLoading:n}=Ms(l);if(!n&&(!a||a.length===0))return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex items-center gap-2 px-4 py-3.5",children:[s.jsx(it,{size:16,className:"text-muted-foreground"}),s.jsx("span",{className:"text-sm text-foreground",children:"Pull requests"})]}),e[0]=r):r=e[0];let i;e[1]!==a?(i=a?a.map(Vs):s.jsxs("div",{className:"flex items-center gap-2 border-t border-border px-4 py-2 text-sm text-muted-foreground",children:[s.jsx(Tt,{size:16,className:"animate-spin"}),s.jsx("span",{children:"Loading…"})]}),e[1]=a,e[2]=i):i=e[2];let o;return e[3]!==i?(o=s.jsxs("div",{className:"flex flex-col overflow-hidden rounded-lg border border-border",children:[r,i]}),e[3]=i,e[4]=o):o=e[4],o}function Vs(t){return s.jsx(Ys,{pr:t},t.url)}const Dt="__unassigned__",ut={assignee:null,priority:null,due:null};function Xs(t){return t.assignee!==null||t.priority!==null||t.due!==null}function Js(t){return(t.assignee!==null?1:0)+(t.priority!==null?1:0)+(t.due!==null?1:0)}const Ws=864e5;function Zs(t,e){const l=new Date(t),a=new Date(e);return l.getFullYear()===a.getFullYear()&&l.getMonth()===a.getMonth()&&l.getDate()===a.getDate()}function el(t,e){if(e.assignee!==null){if(e.assignee===Dt){if(t.assigneeId!==null)return!1}else if(t.assigneeId!==e.assignee)return!1}if(e.priority!==null&&t.priority!==e.priority)return!1;if(e.due!==null)if(e.due==="none"){if(t.dueDate)return!1}else{if(!t.dueDate)return!1;const l=new Date(t.dueDate).getTime(),a=Date.now();if(e.due==="overdue"&&l>=a||e.due==="today"&&!Zs(l,a)||e.due==="week"&&(l<a||l>a+7*Ws))return!1}return!0}const Rt=[{value:"overdue",label:"Overdue"},{value:"today",label:"Due today"},{value:"week",label:"Due this week"},{value:"none",label:"No due date"}];function ft(t,e=!1){return D("inline-flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs font-medium outline-none transition-colors",e&&"h-10 w-full justify-start px-3 text-sm",t?"border-transparent bg-accent text-foreground":"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground")}function tl(t){const e=A.c(62),{value:l,members:a,onChange:n,block:r}=t,[i,o]=z.useState(!1);let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(_t,{size:14,className:"shrink-0"}),e[0]=d):d=e[0];let f=d,m="Assignee";if(l===Dt)m="Unassigned";else if(l===Ye){let T;e[1]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(me,{size:14}),e[1]=T):T=e[1],f=T,m="Super Agent"}else if(l){let T,C,Q,O;if(e[2]!==a||e[3]!==l){let E;e[8]!==l?(E=te=>te.userId===l,e[8]=l,e[9]=E):E=e[9],C=a.find(E),T=ie,Q=C?.user?.image??void 0,O=re(C?.user?.name),e[2]=a,e[3]=l,e[4]=T,e[5]=C,e[6]=Q,e[7]=O}else T=e[4],C=e[5],Q=e[6],O=e[7];let ee;e[10]!==T||e[11]!==Q||e[12]!==O?(ee=s.jsx(T,{url:Q,fallback:O,shape:"circle",size:"2xs"}),e[10]=T,e[11]=Q,e[12]=O,e[13]=ee):ee=e[13],f=ee,m=C?.user?.name??"Member"}let x;e[14]!==n?(x=T=>{n(T),o(!1)},e[14]=n,e[15]=x):x=e[15];const c=x,u=l!==null;let p;e[16]!==r||e[17]!==u?(p=ft(u,r),e[16]=r,e[17]=u,e[18]=p):p=e[18];const h=p,g=r&&"ml-auto";let N;e[19]!==g?(N=D("shrink-0 opacity-60",g),e[19]=g,e[20]=N):N=e[20];const b=N;let j;e[21]!==m?(j=s.jsx("span",{className:"max-w-[10rem] truncate",children:m}),e[21]=m,e[22]=j):j=e[22];let y;e[23]!==b?(y=s.jsx($t,{size:12,className:b}),e[23]=b,e[24]=y):y=e[24];let v;e[25]!==f||e[26]!==j||e[27]!==y||e[28]!==h?(v=s.jsx(vt,{asChild:!0,children:s.jsxs("button",{type:"button",className:h,children:[f,j,y]})}),e[25]=f,e[26]=j,e[27]=y,e[28]=h,e[29]=v):v=e[29];let w;e[30]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ht,{placeholder:"Filter by assignee…",className:"h-9"}),e[30]=w):w=e[30];let $;e[31]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Vt,{children:"No members found."}),e[31]=$):$=e[31];let B;e[32]!==c?(B=s.jsx(ue,{value:"Anyone",onSelect:()=>c(null),children:"Anyone"}),e[32]=c,e[33]=B):B=e[33];let k;e[34]!==c?(k=()=>c(Dt),e[34]=c,e[35]=k):k=e[35];let K;e[36]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(_t,{size:16,className:"text-muted-foreground"}),e[36]=K):K=e[36];let q;e[37]!==k?(q=s.jsxs(ue,{value:"Unassigned",onSelect:k,className:"gap-2",children:[K,"Unassigned"]}),e[37]=k,e[38]=q):q=e[38];let M;e[39]!==c?(M=()=>c(Ye),e[39]=c,e[40]=M):M=e[40];let L;e[41]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(me,{size:16}),e[41]=L):L=e[41];let F;e[42]!==M?(F=s.jsxs(ue,{value:"Super Agent",onSelect:M,className:"gap-2",children:[L,"Super Agent"]}),e[42]=M,e[43]=F):F=e[43];let R;e[44]!==B||e[45]!==q||e[46]!==F?(R=s.jsxs(mt,{children:[B,q,F]}),e[44]=B,e[45]=q,e[46]=F,e[47]=R):R=e[47];let U;if(e[48]!==a||e[49]!==c){let T;e[51]!==c?(T=C=>s.jsxs(ue,{value:C.user?.name??C.userId,onSelect:()=>c(C.userId),className:"gap-2",children:[s.jsx(ie,{url:C.user?.image??void 0,fallback:re(C.user?.name),shape:"circle",size:"2xs"}),s.jsx("span",{className:"truncate",children:C.user?.name??C.userId})]},C.userId),e[51]=c,e[52]=T):T=e[52],U=a.map(T),e[48]=a,e[49]=c,e[50]=U}else U=e[50];let I;e[53]!==U?(I=s.jsx(mt,{heading:"Members",children:U}),e[53]=U,e[54]=I):I=e[54];let P;e[55]!==R||e[56]!==I?(P=s.jsx(St,{align:"start",className:"w-56 p-0",children:s.jsxs(Xt,{children:[w,s.jsxs(Jt,{children:[$,R,I]})]})}),e[55]=R,e[56]=I,e[57]=P):P=e[57];let G;return e[58]!==i||e[59]!==P||e[60]!==v?(G=s.jsxs(Ct,{open:i,onOpenChange:o,children:[v,P]}),e[58]=i,e[59]=P,e[60]=v,e[61]=G):G=e[61],G}function sl(t){const e=A.c(23),{value:l,onChange:a,block:n}=t,r=l!==null;let i;e[0]!==n||e[1]!==r?(i=ft(r,n),e[0]=n,e[1]=r,e[2]=i):i=e[2];const o=i,d=n&&"ml-auto";let f;e[3]!==d?(f=D("shrink-0 opacity-60",d),e[3]=d,e[4]=f):f=e[4];const m=f;let x;e[5]!==l?(x=l?s.jsx("span",{className:D("size-2 shrink-0 rounded-full",oe[l].dotClassName)}):s.jsx(Os,{size:14,className:"shrink-0"}),e[5]=l,e[6]=x):x=e[6];const c=l?oe[l].label:"Priority";let u;e[7]!==m?(u=s.jsx($t,{size:12,className:m}),e[7]=m,e[8]=u):u=e[8];let p;e[9]!==x||e[10]!==c||e[11]!==u||e[12]!==o?(p=s.jsx(ot,{asChild:!0,children:s.jsxs("button",{type:"button",className:o,children:[x,c,u]})}),e[9]=x,e[10]=c,e[11]=u,e[12]=o,e[13]=p):p=e[13];let h,g;e[14]!==a?(g=s.jsx(Ge,{onSelect:()=>a(null),children:"Any priority"}),h=ts.map(j=>s.jsxs(Ge,{onSelect:()=>a(j),className:"gap-2",children:[s.jsx("span",{className:D("size-2 rounded-full",oe[j].dotClassName)}),oe[j].label]},j)),e[14]=a,e[15]=h,e[16]=g):(h=e[15],g=e[16]);let N;e[17]!==h||e[18]!==g?(N=s.jsxs(ct,{align:"start",className:"w-40",children:[g,h]}),e[17]=h,e[18]=g,e[19]=N):N=e[19];let b;return e[20]!==N||e[21]!==p?(b=s.jsxs(dt,{children:[p,N]}),e[20]=N,e[21]=p,e[22]=b):b=e[22],b}function ll(t){const e=A.c(27),{value:l,onChange:a,block:n}=t;let r;e[0]!==l?(r=Rt.find($=>$.value===l)?.label,e[0]=l,e[1]=r):r=e[1];const i=r,o=l!==null;let d;e[2]!==n||e[3]!==o?(d=ft(o,n),e[2]=n,e[3]=o,e[4]=d):d=e[4];const f=d,m=n&&"ml-auto";let x;e[5]!==m?(x=D("shrink-0 opacity-60",m),e[5]=m,e[6]=x):x=e[6];const c=x;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Qe,{size:14,className:"shrink-0"}),e[7]=u):u=e[7];const p=i??"Due date";let h;e[8]!==c?(h=s.jsx($t,{size:12,className:c}),e[8]=c,e[9]=h):h=e[9];let g;e[10]!==p||e[11]!==h||e[12]!==f?(g=s.jsx(ot,{asChild:!0,children:s.jsxs("button",{type:"button",className:f,children:[u,p,h]})}),e[10]=p,e[11]=h,e[12]=f,e[13]=g):g=e[13];let N;e[14]!==a?(N=()=>a(null),e[14]=a,e[15]=N):N=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Qe,{size:16,className:"text-muted-foreground"}),e[16]=b):b=e[16];let j;e[17]!==N?(j=s.jsxs(Ge,{onSelect:N,className:"gap-2",children:[b,"Any time"]}),e[17]=N,e[18]=j):j=e[18];let y;e[19]!==a?(y=Rt.map($=>{const B=$.value==="overdue";return s.jsxs(Ge,{onSelect:()=>a($.value),className:D("gap-2",B&&"text-destructive"),children:[s.jsx(Qe,{size:16,className:D("shrink-0",B?"text-destructive":"text-muted-foreground")}),$.label]},$.value)}),e[19]=a,e[20]=y):y=e[20];let v;e[21]!==j||e[22]!==y?(v=s.jsxs(ct,{align:"start",className:"w-44",children:[j,y]}),e[21]=j,e[22]=y,e[23]=v):v=e[23];let w;return e[24]!==v||e[25]!==g?(w=s.jsxs(dt,{children:[g,v]}),e[24]=v,e[25]=g,e[26]=w):w=e[26],w}function ss(t){const e=A.c(26),{filters:l,members:a,onChange:n,block:r}=t;let i;e[0]!==l||e[1]!==n?(i=u=>n({...l,assignee:u}),e[0]=l,e[1]=n,e[2]=i):i=e[2];let o;e[3]!==r||e[4]!==l.assignee||e[5]!==a||e[6]!==i?(o=s.jsx(tl,{block:r,value:l.assignee,members:a,onChange:i}),e[3]=r,e[4]=l.assignee,e[5]=a,e[6]=i,e[7]=o):o=e[7];let d;e[8]!==l||e[9]!==n?(d=u=>n({...l,priority:u}),e[8]=l,e[9]=n,e[10]=d):d=e[10];let f;e[11]!==r||e[12]!==l.priority||e[13]!==d?(f=s.jsx(sl,{block:r,value:l.priority,onChange:d}),e[11]=r,e[12]=l.priority,e[13]=d,e[14]=f):f=e[14];let m;e[15]!==l||e[16]!==n?(m=u=>n({...l,due:u}),e[15]=l,e[16]=n,e[17]=m):m=e[17];let x;e[18]!==r||e[19]!==l.due||e[20]!==m?(x=s.jsx(ll,{block:r,value:l.due,onChange:m}),e[18]=r,e[19]=l.due,e[20]=m,e[21]=x):x=e[21];let c;return e[22]!==o||e[23]!==f||e[24]!==x?(c=s.jsxs(s.Fragment,{children:[o,f,x]}),e[22]=o,e[23]=f,e[24]=x,e[25]=c):c=e[25],c}function nl(t){const e=A.c(11),{filters:l,members:a,onChange:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Wt,{size:16,className:"mr-0.5 shrink-0 text-muted-foreground"}),e[0]=r):r=e[0];let i;e[1]!==l||e[2]!==a||e[3]!==n?(i=s.jsx(ss,{filters:l,members:a,onChange:n}),e[1]=l,e[2]=a,e[3]=n,e[4]=i):i=e[4];let o;e[5]!==l||e[6]!==n?(o=Xs(l)&&s.jsx("button",{type:"button",onClick:()=>n(ut),className:"ml-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:"Clear"}),e[5]=l,e[6]=n,e[7]=o):o=e[7];let d;return e[8]!==i||e[9]!==o?(d=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[r,i,o]}),e[8]=i,e[9]=o,e[10]=d):d=e[10],d}function al(t){const e=A.c(26),{filters:l,members:a,onChange:n}=t,[r,i]=z.useState(!1),o=Js(l),d=o>0;let f;e[0]!==d?(f=ft(d),e[0]=d,e[1]=f):f=e[1];const m=f;let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Wt,{size:14,className:"shrink-0"}),e[2]=x):x=e[2];let c;e[3]!==o?(c=o>0&&s.jsx("span",{className:"ml-0.5 flex size-4 items-center justify-center rounded-full bg-foreground text-[10px] font-semibold text-background",children:o}),e[3]=o,e[4]=c):c=e[4];let u;e[5]!==c||e[6]!==m?(u=s.jsx(Is,{asChild:!0,children:s.jsxs("button",{type:"button",className:m,children:[x,"Filters",c]})}),e[5]=c,e[6]=m,e[7]=u):u=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Ts,{className:"px-4 pt-4 text-base font-medium text-foreground",children:"Filters"}),e[8]=p):p=e[8];let h;e[9]!==l||e[10]!==a||e[11]!==n?(h=s.jsx("div",{className:"flex flex-col gap-2 p-4",children:s.jsx(ss,{block:!0,filters:l,members:a,onChange:n})}),e[9]=l,e[10]=a,e[11]=n,e[12]=h):h=e[12];let g;e[13]!==o||e[14]!==n?(g=o>0&&s.jsx(qe,{variant:"outline",className:"flex-1",onClick:()=>n(ut),children:"Clear all"}),e[13]=o,e[14]=n,e[15]=g):g=e[15];let N;e[16]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(zs,{asChild:!0,children:s.jsx(qe,{className:"flex-1",children:"Done"})}),e[16]=N):N=e[16];let b;e[17]!==g?(b=s.jsxs(As,{className:"flex-row gap-2",children:[g,N]}),e[17]=g,e[18]=b):b=e[18];let j;e[19]!==b||e[20]!==h?(j=s.jsxs($s,{className:"p-0",children:[p,h,b]}),e[19]=b,e[20]=h,e[21]=j):j=e[21];let y;return e[22]!==r||e[23]!==j||e[24]!==u?(y=s.jsxs(Es,{open:r,onOpenChange:i,direction:"bottom",children:[u,j]}),e[22]=r,e[23]=j,e[24]=u,e[25]=y):y=e[25],y}const Pt=380,rl=90,Mt=5,il="cubic-bezier(0.22, 0.61, 0.36, 1)",ol=8;function cl(t,e){const l=z.useRef(new Map);z.useLayoutEffect(()=>{const a=t.current;if(!a)return;const n=a.querySelectorAll("[data-flip-id]"),r=l.current,i=new Map,o=typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches,d=[];for(const c of n){const u=c.dataset.flipId;if(!u)continue;const p=c.getBoundingClientRect();i.set(u,p);const h=r.get(u);if(!h)continue;const g=h.left-p.left,N=h.top-p.top;(g||N)&&d.push({el:c,dx:g,dy:N,lane:Math.abs(g)>ol})}if(l.current=i,o||d.length===0)return;for(const c of d){const u=c.lane?` rotate(${c.dx>0?Mt:-Mt}deg)`:"";c.el.style.transition="none",c.el.style.transform=`translate(${c.dx}px, ${c.dy}px)${u}`,c.lane&&(c.el.style.zIndex="10")}let f=0;const m=[],x=requestAnimationFrame(()=>{for(const c of d){const u=c.lane?f++*rl:0;c.el.style.transition=`transform ${Pt}ms ${il} ${u}ms`,c.el.style.transform="",m.push(window.setTimeout(()=>{c.el.style.transition="",c.el.style.transform="",c.el.style.zIndex=""},Pt+u+30))}});return()=>{cancelAnimationFrame(x);for(const c of m)clearTimeout(c)}},[e,t])}os(()=>import("./index-F9o1E2LM.js").then(t=>t.aV),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152])).catch(()=>{});function dl(){const t=A.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"min-h-0 flex-1 pt-0 pr-1 pb-1 pl-0",children:s.jsx("div",{className:"h-full p-0.5 pt-0.25",children:s.jsx("div",{className:"card-shadow flex h-full flex-col overflow-hidden rounded-[0.75rem] bg-background",children:s.jsx(is,{})})})}),t[0]=e):e=t[0],e}const ml=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function ul(t){const e=new Date(t),l=e.getTime()<Date.now();return{label:ml.format(e),overdue:l}}const Et="inline-flex items-center gap-1.5 rounded-lg border border-border bg-background px-2 py-1 text-xs font-medium text-muted-foreground";function ls(){const t=A.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=D(Et,"border-amber-500/30 text-amber-600"),t[0]=e):e=t[0];let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs("span",{className:e,title:"The agent is waiting for your input",children:[s.jsx(Gt,{size:14}),"Needs input"]}),t[1]=l):l=t[1],l}function ns(t){const e=A.c(7),{priority:l}=t,a=oe[l];let n;e[0]!==a.dotClassName?(n=D("size-2 rounded-full",a.dotClassName),e[0]=a.dotClassName,e[1]=n):n=e[1];let r;e[2]!==n?(r=s.jsx("span",{className:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a.label||e[5]!==r?(i=s.jsxs("span",{className:Et,children:[r,a.label]}),e[4]=a.label,e[5]=r,e[6]=i):i=e[6],i}function as(t){const e=A.c(7),{iso:l}=t;let a,n;if(e[0]!==l){const{label:o,overdue:d}=ul(l);a=o,n=D(Et,d&&"border-destructive/30 text-destructive"),e[0]=l,e[1]=a,e[2]=n}else a=e[1],n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Qe,{size:14}),e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==n?(i=s.jsxs("span",{className:n,children:[r,a]}),e[4]=a,e[5]=n,e[6]=i):i=e[6],i}function rs(t){const e=A.c(11),{item:l,assignee:a,assignedBy:n}=t;if(l.assigneeId===Ye){const r=n?.user?.name?`Assigned to Super Agent by ${n.user.name}`:"Assigned to Super Agent";let i;e[0]!==n?(i=n&&s.jsx(ie,{url:n.user?.image??void 0,fallback:re(n.user?.name),shape:"circle",size:"2xs",className:"-mr-1.5 ring-2 ring-background"}),e[0]=n,e[1]=i):i=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(me,{size:16,className:"ring-2 ring-background"}),e[2]=o):o=e[2];let d;return e[3]!==r||e[4]!==i?(d=s.jsxs("span",{className:"inline-flex items-center",title:r,children:[i,o]}),e[3]=r,e[4]=i,e[5]=d):d=e[5],d}if(a){const r=a.user?.image??void 0,i=a.user?.name;let o;e[6]!==i?(o=re(i),e[6]=i,e[7]=o):o=e[7];let d;return e[8]!==r||e[9]!==o?(d=s.jsx(ie,{url:r,fallback:o,shape:"circle",size:"2xs"}),e[8]=r,e[9]=o,e[10]=d):d=e[10],d}return null}function is(){const t=A.c(64),{items:e,isLoading:l}=Rs(),a=Ps(),{data:n}=Kt();let r,i;t[0]!==n?.data?.members?(r=n?.data?.members??[],i=new Map(r.map(fl)),t[0]=n?.data?.members,t[1]=r,t[2]=i):(r=t[1],i=t[2]);const o=i,[d,f]=z.useState("board"),[m,x]=z.useState(ut),[c,u]=z.useState(!1),[p,h]=z.useState(null),[g,N]=z.useState(null),{setTaskId:b}=Bs();let j,y,v,w;if(t[3]!==a||t[4]!==m||t[5]!==l||t[6]!==e||t[7]!==d||t[8]!==o||t[9]!==r){w=Symbol.for("react.early_return_sentinel");e:{let I;t[14]!==m?(I=_=>el(_,m),t[14]=m,t[15]=I):I=t[15];const P=e.filter(I);let G;t[16]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{h(null),N(null),u(!0)},t[16]=G):G=t[16];const T=G;let C;t[17]===Symbol.for("react.memo_cache_sentinel")?(C=_=>{h(null),N(_),u(!0)},t[17]=C):C=t[17];const Q=C;let O;t[18]===Symbol.for("react.memo_cache_sentinel")?(O=_=>{h(_),u(!0)},t[18]=O):O=t[18];const E=O;if(l&&e.length===0){let _;t[19]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("div",{className:"flex flex-1 items-center justify-center",children:s.jsx(cs,{size:20,className:"animate-spin text-muted-foreground"})}),t[19]=_):_=t[19],w=_;break e}j="mx-auto flex min-h-0 w-full max-w-[1680px] flex-1 flex-col";let te;t[20]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx("h1",{className:"text-xl font-medium text-foreground",children:"Tasks"}),t[20]=te):te=t[20];let V;t[21]!==m||t[22]!==e.length||t[23]!==r?(V=e.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"sm:hidden",children:s.jsx(al,{filters:m,members:r,onChange:x})}),s.jsx("div",{className:"hidden sm:block",children:s.jsx(nl,{filters:m,members:r,onChange:x})})]}),t[21]=m,t[22]=e.length,t[23]=r,t[24]=V):V=t[24];const ce=d==="list";let X;t[25]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f("list"),t[25]=X):X=t[25];let se;t[26]!==ce?(se=s.jsx(Lt,{active:ce,onClick:X,icon:gs,label:"List"}),t[26]=ce,t[27]=se):se=t[27];const le=d==="board";let ne;t[28]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f("board"),t[28]=ne):ne=t[28];let Y;t[29]!==le?(Y=s.jsx(Lt,{active:le,onClick:ne,icon:ps,label:"Board"}),t[29]=le,t[30]=Y):Y=t[30];let J;t[31]!==se||t[32]!==Y?(J=s.jsxs("div",{className:"inline-flex rounded-lg bg-muted p-0.5",children:[se,Y]}),t[31]=se,t[32]=Y,t[33]=J):J=t[33];let W;t[34]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsxs(qe,{size:"sm",onClick:T,children:[s.jsx(zt,{size:16}),"New task"]}),t[34]=W):W=t[34];let Z;t[35]!==J?(Z=s.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[J,W]}),t[35]=J,t[36]=Z):Z=t[36],t[37]!==V||t[38]!==Z?(y=s.jsxs("div",{className:"flex flex-col gap-4 px-4 pt-6 sm:px-8 sm:pt-8",children:[te,s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[V,Z]})]}),t[37]=V,t[38]=Z,t[39]=y):y=t[39],v=e.length===0?s.jsx("div",{className:"px-4 pt-6 sm:px-8",children:s.jsx("div",{className:"rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:"No tasks yet. Start one with New task."})}):P.length===0?s.jsx("div",{className:"px-4 pt-6 sm:px-8",children:s.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl bg-card px-4 py-12 text-center text-sm text-muted-foreground card-shadow",children:["No tasks match these filters.",s.jsx(qe,{variant:"outline",size:"sm",onClick:()=>x(ut),children:"Clear filters"})]})}):d==="board"?s.jsx(xl,{items:P,memberByUserId:o,onOpen:E,onCreate:Q,onMove:(_,de)=>a.update.mutate({id:_,status:de})}):s.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:s.jsx("div",{className:"mx-auto flex max-w-[820px] flex-col gap-2",children:P.map(_=>s.jsx(hl,{item:_,assignee:_.assigneeId?o.get(_.assigneeId):void 0,assignedBy:_.assignedBy?o.get(_.assignedBy):void 0,onOpen:()=>E(_)},_.id))})})}t[3]=a,t[4]=m,t[5]=l,t[6]=e,t[7]=d,t[8]=o,t[9]=r,t[10]=j,t[11]=y,t[12]=v,t[13]=w}else j=t[10],y=t[11],v=t[12],w=t[13];if(w!==Symbol.for("react.early_return_sentinel"))return w;const $=c?p?.id??`new-${g??"default"}`:"closed";let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=()=>u(!1),t[40]=B):B=t[40];const k=p??void 0,K=g??void 0,q=a.create.isPending||a.update.isPending;let M;t[41]!==a.create||t[42]!==a.update||t[43]!==p?(M=I=>{p?a.update.mutate({id:p.id,...I}):a.create.mutate(I),u(!1)},t[41]=a.create,t[42]=a.update,t[43]=p,t[44]=M):M=t[44];let L;t[45]!==a.remove||t[46]!==p?(L=p?()=>{a.remove.mutate(p.id),u(!1)}:void 0,t[45]=a.remove,t[46]=p,t[47]=L):L=t[47];let F;t[48]!==b?(F=I=>{I.virtualMcpId&&(u(!1),b(I.threadId,I.virtualMcpId,{main:I.hasPreview?"preview":"board"}))},t[48]=b,t[49]=F):F=t[49];let R;t[50]!==c||t[51]!==M||t[52]!==L||t[53]!==F||t[54]!==$||t[55]!==k||t[56]!==K||t[57]!==q?(R=s.jsx(Gs,{open:c,onClose:B,item:k,defaultStatus:K,isSaving:q,onSubmit:M,onDelete:L,onOpenThread:F},$),t[50]=c,t[51]=M,t[52]=L,t[53]=F,t[54]=$,t[55]=k,t[56]=K,t[57]=q,t[58]=R):R=t[58];let U;return t[59]!==j||t[60]!==R||t[61]!==y||t[62]!==v?(U=s.jsxs("div",{className:j,children:[y,v,R]}),t[59]=j,t[60]=R,t[61]=y,t[62]=v,t[63]=U):U=t[63],U}function fl(t){return[t.userId,t]}function Lt(t){const e=A.c(11),{active:l,onClick:a,icon:n,label:r}=t,i=`${r} view`,o=l?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground";let d;e[0]!==o?(d=D("flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-colors",o),e[0]=o,e[1]=d):d=e[1];let f;e[2]!==n?(f=s.jsx(n,{size:14}),e[2]=n,e[3]=f):f=e[3];let m;return e[4]!==l||e[5]!==r||e[6]!==a||e[7]!==i||e[8]!==d||e[9]!==f?(m=s.jsxs("button",{type:"button",onClick:a,"aria-label":i,"aria-pressed":l,className:d,children:[f,r]}),e[4]=l,e[5]=r,e[6]=a,e[7]=i,e[8]=d,e[9]=f,e[10]=m):m=e[10],m}function xl(t){const e=A.c(11),{items:l,memberByUserId:a,onOpen:n,onCreate:r,onMove:i}=t,[o,d]=z.useState(null),f=z.useRef(null);let m;e[0]!==l?(m=l.map(pl).join(","),e[0]=l,e[1]=m):m=e[1],cl(f,m);let c;e[2]!==l||e[3]!==a||e[4]!==r||e[5]!==i||e[6]!==n||e[7]!==o?(c=es.map(p=>{const h=l.filter(b=>b.status===p),g=ae[p],N=g.icon;return s.jsxs("div",{onDragOver:b=>{b.preventDefault(),d(p)},onDragLeave:b=>{b.currentTarget.contains(b.relatedTarget)||d(null)},onDrop:b=>{b.preventDefault();const j=b.dataTransfer.getData("text/plain");j&&i(j,p),d(null)},className:D("flex w-[300px] shrink-0 flex-col rounded-xl p-1 transition-colors",o===p&&"bg-muted/50"),children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(N,{size:15,className:D("shrink-0",g.iconClassName)}),s.jsx("span",{className:"text-sm font-medium text-foreground",children:g.label}),s.jsx("span",{className:"rounded-md bg-muted px-1.5 text-[11px] font-medium text-muted-foreground",children:h.length}),s.jsx("button",{type:"button","aria-label":`New task in ${g.label}`,title:`New task in ${g.label}`,onClick:()=>r(p),className:"ml-auto flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",children:s.jsx(zt,{size:15})})]}),s.jsx("div",{className:"flex min-h-12 flex-col gap-2 pt-1",children:h.map(b=>s.jsx(gl,{item:b,assignee:b.assigneeId?a.get(b.assigneeId):void 0,assignedBy:b.assignedBy?a.get(b.assignedBy):void 0,onOpen:()=>n(b)},b.id))})]},p)}),e[2]=l,e[3]=a,e[4]=r,e[5]=i,e[6]=n,e[7]=o,e[8]=c):c=e[8];let u;return e[9]!==c?(u=s.jsx("div",{ref:f,className:"flex min-h-0 flex-1 gap-3 overflow-x-auto overflow-y-auto px-4 pt-6 pb-16 sm:px-8",children:c}),e[9]=c,e[10]=u):u=e[10],u}function pl(t){return`${t.id}:${t.status}`}function gl(t){const e=A.c(29),{item:l,assignee:a,assignedBy:n,onOpen:r}=t,i=ae[l.status],o=i.icon,d=Zt(l)?.lastMessage,f=l.id;let m;e[0]!==l.id?(m=y=>{y.dataTransfer.setData("text/plain",l.id),y.dataTransfer.effectAllowed="move"},e[0]=l.id,e[1]=m):m=e[1];const x=l.title;let c;e[2]!==i.iconClassName?(c=D("mt-px shrink-0",i.iconClassName),e[2]=i.iconClassName,e[3]=c):c=e[3];let u;e[4]!==o||e[5]!==c?(u=s.jsx(o,{size:16,className:c}),e[4]=o,e[5]=c,e[6]=u):u=e[6];let p;e[7]!==l.title?(p=s.jsx("span",{className:"min-w-0 flex-1 text-sm font-medium leading-snug text-foreground line-clamp-2",children:l.title}),e[7]=l.title,e[8]=p):p=e[8];let h;e[9]!==n||e[10]!==a||e[11]!==l?(h=s.jsx(rs,{item:l,assignee:a,assignedBy:n}),e[9]=n,e[10]=a,e[11]=l,e[12]=h):h=e[12];let g;e[13]!==u||e[14]!==p||e[15]!==h?(g=s.jsxs("div",{className:"flex items-start gap-2",children:[u,p,h]}),e[13]=u,e[14]=p,e[15]=h,e[16]=g):g=e[16];let N;e[17]!==d?(N=d&&s.jsx("p",{className:"line-clamp-2 pl-6 text-xs leading-snug text-muted-foreground",children:d}),e[17]=d,e[18]=N):N=e[18];let b;e[19]!==l?(b=(wt(l)||l.priority!=="none"||!!l.dueDate)&&s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 pl-6",children:[wt(l)&&s.jsx(ls,{}),l.priority!=="none"&&s.jsx(ns,{priority:l.priority}),l.dueDate&&s.jsx(as,{iso:l.dueDate})]}),e[19]=l,e[20]=b):b=e[20];let j;return e[21]!==l.id||e[22]!==l.title||e[23]!==r||e[24]!==b||e[25]!==m||e[26]!==g||e[27]!==N?(j=s.jsxs("button",{type:"button",draggable:!0,"data-flip-id":f,onDragStart:m,onClick:r,className:"group flex cursor-grab flex-col gap-2 rounded-xl bg-card px-3 py-2.5 text-left card-shadow transition-colors will-change-transform hover:bg-accent/60 active:cursor-grabbing",title:x,children:[g,N,b]}),e[21]=l.id,e[22]=l.title,e[23]=r,e[24]=b,e[25]=m,e[26]=g,e[27]=N,e[28]=j):j=e[28],j}function hl(t){const e=A.c(30),{item:l,assignee:a,assignedBy:n,onOpen:r}=t,i=ae[l.status],o=i.icon;let d;e[0]!==i.iconClassName?(d=D("shrink-0",i.iconClassName),e[0]=i.iconClassName,e[1]=d):d=e[1];let f;e[2]!==o||e[3]!==d?(f=s.jsx(o,{size:16,className:d}),e[2]=o,e[3]=d,e[4]=f):f=e[4];let m;e[5]!==l.title?(m=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:l.title}),e[5]=l.title,e[6]=m):m=e[6];let x;e[7]!==l?(x=wt(l)&&s.jsx(ls,{}),e[7]=l,e[8]=x):x=e[8];let c;e[9]!==l.priority?(c=l.priority!=="none"&&s.jsx("span",{className:"hidden sm:inline-flex",children:s.jsx(ns,{priority:l.priority})}),e[9]=l.priority,e[10]=c):c=e[10];let u;e[11]!==l.dueDate?(u=l.dueDate&&s.jsx("span",{className:"hidden sm:inline-flex",children:s.jsx(as,{iso:l.dueDate})}),e[11]=l.dueDate,e[12]=u):u=e[12];let p;e[13]!==n||e[14]!==a||e[15]!==l?(p=s.jsx(rs,{item:l,assignee:a,assignedBy:n}),e[13]=n,e[14]=a,e[15]=l,e[16]=p):p=e[16];let h;e[17]!==l.createdAt?(h=Ns(new Date(l.createdAt)),e[17]=l.createdAt,e[18]=h):h=e[18];let g;e[19]!==h?(g=s.jsx("span",{className:"hidden shrink-0 text-[11px] text-muted-foreground/70 sm:inline",children:h}),e[19]=h,e[20]=g):g=e[20];let N;return e[21]!==r||e[22]!==f||e[23]!==m||e[24]!==x||e[25]!==c||e[26]!==u||e[27]!==p||e[28]!==g?(N=s.jsxs("button",{type:"button",onClick:r,className:"flex items-center gap-3 rounded-xl bg-card px-4 py-3 text-left card-shadow transition-colors hover:bg-accent/60",children:[f,m,x,c,u,p,g]}),e[21]=r,e[22]=f,e[23]=m,e[24]=x,e[25]=c,e[26]=u,e[27]=p,e[28]=g,e[29]=N):N=e[29],N}const Hl=Object.freeze(Object.defineProperty({__proto__:null,TaskBoardPage:is,default:dl},Symbol.toStringTag,{value:"Module"}));export{oe as P,ae as S,Gs as T,Ps as a,me as b,is as c,Hl as i,Rs as u};