decocms 3.28.3 → 3.29.1

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 (241) hide show
  1. package/dist/client/assets/{AlertCircle-C4TQxCvt.js → AlertCircle-CIkJ_tva.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-D_F85AmM.js → ArrowUpRight-DjtsYmlk.js} +1 -1
  3. package/dist/client/assets/{Check-pmcSX7Ds.js → Check-DZ5PZYLO.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-3ECsT-zB.js → CheckCircle-DyJzuYoS.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-C4k7LIxV.js → ChevronDown-CGeYjJAK.js} +1 -1
  6. package/dist/client/assets/{ChevronLeft-BJhNWHOk.js → ChevronLeft-DWiixe45.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-BNY74L1V.js → ChevronRight-Bm_e-tIB.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-BYoitSH0.js → ChevronUp-BCv26pBY.js} +1 -1
  9. package/dist/client/assets/{Container-DkRkONtL.js → Container-DNJNU1b4.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-DJtuELuQ.js → DotsVertical-CqB_Aadi.js} +1 -1
  11. package/dist/client/assets/{Eye-TeLMkAIt.js → Eye-MkeUTfT3.js} +1 -1
  12. package/dist/client/assets/{FilterLines-C7Uh3aPq.js → FilterLines-CfVg89f7.js} +1 -1
  13. package/dist/client/assets/{Globe01-DcV1IvQc.js → Globe01-xZhhj276.js} +1 -1
  14. package/dist/client/assets/{HardDrive-hauprmZ4.js → HardDrive-CtdIy8yR.js} +1 -1
  15. package/dist/client/assets/{Key01-BhvQgQvA.js → Key01-CXIWciFj.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-CCjwztft.js → LayoutLeft-CJ48TbRA.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-C-EuIQk5.js → LinkExternal01-Bi6In-BW.js} +1 -1
  18. package/dist/client/assets/{Monitor01-C0AyFDoy.js → Monitor01-CsSfQSQt.js} +1 -1
  19. package/dist/client/assets/{Palette-B6fuauoi.js → Palette-CmO3ZuPu.js} +1 -1
  20. package/dist/client/assets/{Play-DwlSKe5K.js → Play-CQ97sIka.js} +1 -1
  21. package/dist/client/assets/{Plus-DgMianxx.js → Plus-CTho-g8m.js} +1 -1
  22. package/dist/client/assets/{RefreshCcw01-BZNxVpdM.js → RefreshCcw01-D1X4YmG3.js} +1 -1
  23. package/dist/client/assets/{SearchMd-BX7CdT-X.js → SearchMd-BVJBwCEd.js} +1 -1
  24. package/dist/client/assets/{Settings02-QpROtTDF.js → Settings02-Cqx4N2is.js} +1 -1
  25. package/dist/client/assets/{Shield01-EBH9mxXN.js → Shield01-D5OMek_B.js} +1 -1
  26. package/dist/client/assets/{Star01-B0KVVYi_.js → Star01-4yFjK6bh.js} +1 -1
  27. package/dist/client/assets/{Stars01-C-cJK68D.js → Stars01-DWbsIFJF.js} +1 -1
  28. package/dist/client/assets/{Stars02-CjwPUV9S.js → Stars02-BLn35DBB.js} +1 -1
  29. package/dist/client/assets/{Sun-DmvZNVcY.js → Sun-FelsR2hx.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-DXvf2f9m.js → SwitchHorizontal01-Bsjx9paN.js} +1 -1
  31. package/dist/client/assets/{Tool01-B3oBdSEQ.js → Tool01-BxT6lP7E.js} +1 -1
  32. package/dist/client/assets/{Trash01-BMVrAqxq.js → Trash01-BczIIm5v.js} +1 -1
  33. package/dist/client/assets/{Upload01-CVliSV9e.js → Upload01-nIFiyRcG.js} +1 -1
  34. package/dist/client/assets/{User01-BVUfnIdT.js → User01-CamUMrWb.js} +1 -1
  35. package/dist/client/assets/{Users01-D-4KurdS.js → Users01-CgFieXMp.js} +1 -1
  36. package/dist/client/assets/{Users03-v_ItRW5T.js → Users03-DT_R5tz6.js} +1 -1
  37. package/dist/client/assets/{X-4DUZJqa0.js → X-CRg5TH_Y.js} +1 -1
  38. package/dist/client/assets/{XCircle-BzRD1Jd9.js → XCircle-DkwGk6Y1.js} +1 -1
  39. package/dist/client/assets/{XClose-Cu1koOKq.js → XClose-D72Lt3NI.js} +1 -1
  40. package/dist/client/assets/{Zap-3U1K5cTy.js → Zap-B-Fg7TEp.js} +1 -1
  41. package/dist/client/assets/{ZapSquare-C5IO5ouL.js → ZapSquare-BqiIusHB.js} +1 -1
  42. package/dist/client/assets/{ZoomOut-BYuR8aeQ.js → ZoomOut-zDFXRspK.js} +1 -1
  43. package/dist/client/assets/{access-gate-mN3wzjy_.js → access-gate-SfXPQWUj.js} +1 -1
  44. package/dist/client/assets/{accordion-D9YwMIzO.js → accordion-DKdXwYYc.js} +1 -1
  45. package/dist/client/assets/add-section-modal-rFZJepGX.js +1 -0
  46. package/dist/client/assets/{agent-capabilities-BOO0rztH.js → agent-capabilities-QxThXvgQ.js} +1 -1
  47. package/dist/client/assets/{agent-icon-T0Pj37EB.js → agent-icon-C_8D2J-7.js} +1 -1
  48. package/dist/client/assets/{agent-icons-DEflXPpL.js → agent-icons-DozoyM-L.js} +1 -1
  49. package/dist/client/assets/{agents-list-DcBcC4gm.js → agents-list-C0ILdC1R.js} +1 -1
  50. package/dist/client/assets/{ai-providers-BprJeZ5N.js → ai-providers-BQNg7G2z.js} +1 -1
  51. package/dist/client/assets/{alert-C4vjqJ0t.js → alert-Csb33_9v.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-Dwxfxg1i.js → alert-dialog-CbYM4jmz.js} +1 -1
  53. package/dist/client/assets/app-editor-D3p9xZvL.js +1 -0
  54. package/dist/client/assets/{auth-catchall-CcUR97ei.js → auth-catchall-tRl-mCnV.js} +1 -1
  55. package/dist/client/assets/{auth-split-layout-Qe3dXBW8.js → auth-split-layout-CRIa8lnq.js} +1 -1
  56. package/dist/client/assets/{automation-list-row-Q13E2qM_.js → automation-list-row-DaUVjzEO.js} +1 -1
  57. package/dist/client/assets/{automation-runs-D-mua2nd.js → automation-runs-ByMFrYpg.js} +1 -1
  58. package/dist/client/assets/{automations-BwxgjQEx.js → automations-DOHjwNUR.js} +1 -1
  59. package/dist/client/assets/{avatar-Cv8RAhQG.js → avatar-Bf_YMKWh.js} +1 -1
  60. package/dist/client/assets/{badge-f4YWnZL0.js → badge-Di1xo__6.js} +1 -1
  61. package/dist/client/assets/{brand-context-qJJ2F933.js → brand-context-DVFnuzc3.js} +1 -1
  62. package/dist/client/assets/{buckets-CS3zpcgH.js → buckets-BKqAOUQL.js} +1 -1
  63. package/dist/client/assets/{calendar-CHyA12cZ.js → calendar-BvlrJX6s.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-CJeUoRGW.js → capability-load-error-NgXOd2ZO.js} +1 -1
  65. package/dist/client/assets/{card-BW8XcmNf.js → card-CWqz0DaV.js} +1 -1
  66. package/dist/client/assets/{chat-context-CAanIJU3.js → chat-context-BoAn6xWM.js} +1 -1
  67. package/dist/client/assets/{checkbox-CNj9E_s7.js → checkbox-C5cEV_DH.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-Cbid5ewl.js → cli-auth-success-Da-trtdE.js} +1 -1
  69. package/dist/client/assets/{collection-detail-7Kcq6B0O.js → collection-detail-K9T_V-NT.js} +1 -1
  70. package/dist/client/assets/{collection-display-button-Dtw31ugJ.js → collection-display-button-BAYgV8vn.js} +1 -1
  71. package/dist/client/assets/{collection-search-DMK1eBHh.js → collection-search-Bk4YcOKu.js} +1 -1
  72. package/dist/client/assets/{collection-table-wrapper-DTywOitX.js → collection-table-wrapper-DRe15D6A.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-DP-FMzzd.js → collection-tabs-CSSbV4je.js} +1 -1
  74. package/dist/client/assets/{collections-FCb6t5rG.js → collections-CG_8shjq.js} +1 -1
  75. package/dist/client/assets/{command-CXvlGLCD.js → command-CFpCNmCF.js} +1 -1
  76. package/dist/client/assets/{connect-desktop-dialog-BgQ9OeQZ.js → connect-desktop-dialog-BIhfHnnr.js} +1 -1
  77. package/dist/client/assets/{connection-card-B5wplSNn.js → connection-card-B1-pvTAQ.js} +1 -1
  78. package/dist/client/assets/{connection-detail-DRTbW7EB.js → connection-detail-Bh5oWdyn.js} +1 -1
  79. package/dist/client/assets/{connection-form-helpers-o4WBNnQu.js → connection-form-helpers-oVYdKzFk.js} +1 -1
  80. package/dist/client/assets/{connections-x91ehTOk.js → connections-Dp3XGEkZ.js} +1 -1
  81. package/dist/client/assets/{decopilot-sse-pool-Bmfj-SDf.js → decopilot-sse-pool-CJ_QbSiL.js} +1 -1
  82. package/dist/client/assets/{dialog-B5s00-oF.js → dialog-DzWL-NrT.js} +1 -1
  83. package/dist/client/assets/{domain-settings-PFlBJKW2.js → domain-settings-DJD9U4sU.js} +1 -1
  84. package/dist/client/assets/{drawer-LPSuQTOw.js → drawer-BLGCEP9S.js} +1 -1
  85. package/dist/client/assets/{dropdown-menu-BaJFpb9J.js → dropdown-menu-YzbwHIxx.js} +1 -1
  86. package/dist/client/assets/{dynamic-plugin-layout-BsJxVywv.js → dynamic-plugin-layout-BB8gWDVj.js} +1 -1
  87. package/dist/client/assets/{empty-state-D7YGvge3.js → empty-state-CEcNMd77.js} +1 -1
  88. package/dist/client/assets/{empty-state-ZXtUjdxe.js → empty-state-DfOA7oYG.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-DgoDS4_Y.js → extract-connection-data-DzgWcXVA.js} +1 -1
  90. package/dist/client/assets/{features-D9_I78r2.js → features-CIhQ9FPK.js} +1 -1
  91. package/dist/client/assets/file-explorer-Dp5sNAMl.js +2 -0
  92. package/dist/client/assets/{file-type-icon-CDc_izX0.js → file-type-icon-9WcINLx3.js} +1 -1
  93. package/dist/client/assets/{files-CrKfgrGV.js → files-CfinSi-B.js} +1 -1
  94. package/dist/client/assets/{form-BLgBgnav.js → form-DK41bruw.js} +1 -1
  95. package/dist/client/assets/{general-D_FdDl2h.js → general-BUSEsa-r.js} +1 -1
  96. package/dist/client/assets/{generate-id-DXj8sIGx.js → generate-id-DOxNmKSl.js} +1 -1
  97. package/dist/client/assets/{github-repo-picker-CAK6NZTZ.js → github-repo-picker-BJ45Iuw_.js} +1 -1
  98. package/dist/client/assets/{header-tab-button-DPplseth.js → header-tab-button-BDD5kZQa.js} +1 -1
  99. package/dist/client/assets/{hover-card-QfPMM7-7.js → hover-card-C0gmU-KR.js} +1 -1
  100. package/dist/client/assets/{image-field-J2UR9SMx.js → image-field-CNdkpe4-.js} +1 -1
  101. package/dist/client/assets/{index-XhpNNRDn.js → index-4CkRjwqB.js} +1 -1
  102. package/dist/client/assets/{index-CJt7pypa.js → index-B6yJwY9r.js} +1 -1
  103. package/dist/client/assets/{index-C5jlCV2I.js → index-Bw6dLXGR.js} +1 -1
  104. package/dist/client/assets/{index-BnTkC4uZ.js → index-CH6_c02Q.js} +1 -1
  105. package/dist/client/assets/{index-CIYOHhZQ.js → index-CRk3na1v.js} +1 -1
  106. package/dist/client/assets/index-CZ9iD_kA.js +1 -0
  107. package/dist/client/assets/{index-vLnKQzUP.js → index-CghQMTVW.js} +1 -1
  108. package/dist/client/assets/{index-DOoAabap.js → index-CpG2_v8p.js} +3 -3
  109. package/dist/client/assets/{index-GEjv2UZA.js → index-D-Er7K2V.js} +1 -1
  110. package/dist/client/assets/{index-Dp7xqa9S.js → index-Dd5x1Ugx.js} +1 -1
  111. package/dist/client/assets/{index-CeAw691B.js → index-DdTSg63X.js} +4 -4
  112. package/dist/client/assets/{index-BFL9nnAw.js → index-DzNLTQFE.js} +1 -1
  113. package/dist/client/assets/index-PP1_jM4a.js +1 -0
  114. package/dist/client/assets/{index-DKWQ7z_t.js → index-Vm79zSBa.js} +1 -1
  115. package/dist/client/assets/{index-B6FehCUO.js → index-rP7Vi9h6.js} +1 -1
  116. package/dist/client/assets/{index-redirect-C2dwmlAm.js → index-redirect-B5KfXttx.js} +1 -1
  117. package/dist/client/assets/{infiniteQueryObserver-DApjSDt2.js → infiniteQueryObserver-DKFzmh7N.js} +1 -1
  118. package/dist/client/assets/{input-OGtZJjEE.js → input-BWjbzzQM.js} +1 -1
  119. package/dist/client/assets/{integration-icon-ChFvmc9D.js → integration-icon-Jhe4mXPc.js} +1 -1
  120. package/dist/client/assets/{label-DTe8NzB0.js → label-BD30ND7M.js} +1 -1
  121. package/dist/client/assets/{layout-BWEcMi1N.js → layout-CshuPuNT.js} +1 -1
  122. package/dist/client/assets/{login-Co2pcu6Z.js → login-xvknfGAE.js} +1 -1
  123. package/dist/client/assets/{members-B_NiZgeY.js → members-B-0d8UVK.js} +1 -1
  124. package/dist/client/assets/{monaco-editor-xVGWgwtQ.js → monaco-editor-CO97GxVj.js} +1 -1
  125. package/dist/client/assets/{monitoring-stats-row-ByVvV2ie.js → monitoring-stats-row-Cfw3-iQJ.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-BDILuE_I.js → oauth-callback-OP1K2cBS.js} +1 -1
  127. package/dist/client/assets/{oauth-callback-ai-provider-DShAsuGx.js → oauth-callback-ai-provider-AV6p2GPf.js} +1 -1
  128. package/dist/client/assets/{onboarding-CmxDxoER.js → onboarding-BydTnX4J.js} +1 -1
  129. package/dist/client/assets/{org-install-DR2-zloB.js → org-install-By9f70v3.js} +1 -1
  130. package/dist/client/assets/{org-layout-BuB_tEV_.js → org-layout-Cuv0PXEZ.js} +1 -1
  131. package/dist/client/assets/{org-plugin-layout-CoO0eSJj.js → org-plugin-layout-D6ftiJr2.js} +1 -1
  132. package/dist/client/assets/{page-seo-form-BJ2P33W_.js → page-seo-form-D0J4BsJd.js} +1 -1
  133. package/dist/client/assets/page-seo-sheet-Q7Y1gsuc.js +1 -0
  134. package/dist/client/assets/pair-D1IR0Baq.js +46 -0
  135. package/dist/client/assets/{plugin-empty-state-L3VuPQzd.js → plugin-empty-state-CTifOpyh.js} +1 -1
  136. package/dist/client/assets/{plugin-header-nh1rjw6P.js → plugin-header-D63WcJTf.js} +1 -1
  137. package/dist/client/assets/{plugin-layout-CQVjD7pK.js → plugin-layout-DIqP9Bzh.js} +1 -1
  138. package/dist/client/assets/{popover-C0XpZKfX.js → popover-w66kr7qI.js} +1 -1
  139. package/dist/client/assets/{post-editor-Ujefbll0.js → post-editor-CcNc2iwJ.js} +1 -1
  140. package/dist/client/assets/{primitives-DdUgHbcn.js → primitives-CXAphNCy.js} +1 -1
  141. package/dist/client/assets/{profile-Bc5pUfle.js → profile-DPgEYebY.js} +1 -1
  142. package/dist/client/assets/project-app-view-B73O2qLq.js +1 -0
  143. package/dist/client/assets/record-editor-hFUcPDs2.js +1 -0
  144. package/dist/client/assets/registry-CSai7Qf3.js +2 -0
  145. package/dist/client/assets/{registry-layout-YlO9r3lS.js → registry-layout-CpOLAjVd.js} +1 -1
  146. package/dist/client/assets/{require-capability-BQvim5O5.js → require-capability-BJrX_rPe.js} +1 -1
  147. package/dist/client/assets/{required-auth-layout-Dvpx0uYK.js → required-auth-layout-CzrHHdU9.js} +1 -1
  148. package/dist/client/assets/{reset-password-BxhQ1r_k.js → reset-password-XeANzZ8O.js} +1 -1
  149. package/dist/client/assets/{resizable-JcKp4uhd.js → resizable-B8hoAXbl.js} +1 -1
  150. package/dist/client/assets/{roles-gWoW_w7Z.js → roles-CfBRlxaX.js} +1 -1
  151. package/dist/client/assets/save-referenced-block-MdHBsKGI.js +1 -0
  152. package/dist/client/assets/{save-status-BWSP_gRJ.js → save-status-Ds8Nwo0Y.js} +1 -1
  153. package/dist/client/assets/{schema-form-CHT4Cc-z.js → schema-form-914BofiG.js} +1 -1
  154. package/dist/client/assets/{scroll-area-DOidgWV9.js → scroll-area-CFrtCBLi.js} +1 -1
  155. package/dist/client/assets/{search-input-BRLbSyxE.js → search-input-BXsljctW.js} +1 -1
  156. package/dist/client/assets/{secrets-C4h-YogY.js → secrets-Dh_eQg6Y.js} +1 -1
  157. package/dist/client/assets/{sections-editor-BRulELYR.js → sections-editor-Cy1_wyqm.js} +1 -1
  158. package/dist/client/assets/{select-DtexK_z5.js → select-B0qONt_m.js} +1 -1
  159. package/dist/client/assets/{select-model-AblBAcYY.js → select-model-DV1J8lbW.js} +1 -1
  160. package/dist/client/assets/seo-editor-xn4RyB29.js +1 -0
  161. package/dist/client/assets/{settings-layout-DFrFdd-Y.js → settings-layout-DagPHYsX.js} +1 -1
  162. package/dist/client/assets/{settings-section-CKNefgVO.js → settings-section-ByFuwsko.js} +1 -1
  163. package/dist/client/assets/{sheet-Ds2u6iNE.js → sheet-BlMfZj2L.js} +1 -1
  164. package/dist/client/assets/{shell-controls-TpzVn2KN.js → shell-controls-URBQR3Oa.js} +1 -1
  165. package/dist/client/assets/{shell-layout-BHmrKjJ7.js → shell-layout-NuYzN-Gn.js} +1 -1
  166. package/dist/client/assets/shell-route-loading-DCVHDrWy.js +1 -0
  167. package/dist/client/assets/{sidebar-B8xglaCl.js → sidebar-DceLItg8.js} +1 -1
  168. package/dist/client/assets/{skeleton-DXwBFrmR.js → skeleton-07IZijZM.js} +1 -1
  169. package/dist/client/assets/{sortable.esm-BKxlC02W.js → sortable.esm-CzY2WOGE.js} +1 -1
  170. package/dist/client/assets/{spinner-BiM6tNa6.js → spinner-B8QiOf4h.js} +1 -1
  171. package/dist/client/assets/{sso-CBrsX3zV.js → sso-CwWhDCFg.js} +1 -1
  172. package/dist/client/assets/{store-Csvq01ry.js → store-D9gP4byy.js} +1 -1
  173. package/dist/client/assets/store-registry-Bu6pBKfc.js +2 -0
  174. package/dist/client/assets/{studio-tools-CKvJG16E.js → studio-tools-Cly5ZCG3.js} +1 -1
  175. package/dist/client/assets/{switch-C11gJmy6.js → switch-BJt48css.js} +1 -1
  176. package/dist/client/assets/{tab-id-5WB0EpeZ.js → tab-id-Cgg9_UqF.js} +1 -1
  177. package/dist/client/assets/{table-9jRKIUhw.js → table-3evUHy3g.js} +1 -1
  178. package/dist/client/assets/{tabs-BYvmM5A_.js → tabs-B1x7Fe-S.js} +1 -1
  179. package/dist/client/assets/{task-status-CvxTf2VK.js → task-status-F5X71Or6.js} +1 -1
  180. package/dist/client/assets/{textarea-Ds5imYZm.js → textarea-CgmDS1mc.js} +1 -1
  181. package/dist/client/assets/{toggle-group-BmE5kRMT.js → toggle-group-DVdH8zGh.js} +1 -1
  182. package/dist/client/assets/{toolbar-ZRWeSQFu.js → toolbar-CXAxzeUh.js} +1 -1
  183. package/dist/client/assets/{tools-list-CnTK9CuR.js → tools-list-B226mv7W.js} +1 -1
  184. package/dist/client/assets/{tooltip-DjQW44FW.js → tooltip-D5r7nYKO.js} +1 -1
  185. package/dist/client/assets/{types-Dc5cEQpH.js → types-DIAQ40QE.js} +1 -1
  186. package/dist/client/assets/{use-ai-providers-XhZCg1_E.js → use-ai-providers-BMK8G5pd.js} +1 -1
  187. package/dist/client/assets/{use-automations-i7RRg3se.js → use-automations-CqVVjbv4.js} +1 -1
  188. package/dist/client/assets/{use-capability-DzFqA_ML.js → use-capability-Dp-xHWqY.js} +1 -1
  189. package/dist/client/assets/use-clock-tick-Dkz_tj-X.js +1 -0
  190. package/dist/client/assets/{use-collections-YdlS5GS5.js → use-collections-dzWuZTM5.js} +1 -1
  191. package/dist/client/assets/{use-connection-gDoBL3iK.js → use-connection-CbBvGv-y.js} +1 -1
  192. package/dist/client/assets/{use-copy-BPFzc0Dk.js → use-copy-CP7WU0J2.js} +1 -1
  193. package/dist/client/assets/{use-create-virtual-mcp-DcKYoquB.js → use-create-virtual-mcp-Dz02gDB8.js} +1 -1
  194. package/dist/client/assets/{use-debounced-autosave-Dc2f-IpJ.js → use-debounced-autosave-7E-JkkEV.js} +1 -1
  195. package/dist/client/assets/{use-delete-connection-CEg_2cre.js → use-delete-connection-daNvL5F7.js} +1 -1
  196. package/dist/client/assets/{use-file-configs-JiatUQs-.js → use-file-configs-CzOp0gY1.js} +1 -1
  197. package/dist/client/assets/{use-infinite-scroll-p2B5TchE.js → use-infinite-scroll-Dz0Ju18S.js} +1 -1
  198. package/dist/client/assets/{use-list-state-D6tqpIP2.js → use-list-state-Cf00xLLl.js} +1 -1
  199. package/dist/client/assets/{use-mcp-client-DnwBQgtt.js → use-mcp-client-BDuQ-DKr.js} +1 -1
  200. package/dist/client/assets/{use-mcp-prompts-Clc-WOtL.js → use-mcp-prompts-BfczuqQ1.js} +1 -1
  201. package/dist/client/assets/{use-mcp-tools-BQmNGmmp.js → use-mcp-tools-xqS_ta53.js} +1 -1
  202. package/dist/client/assets/{use-members-U2A7MOWt.js → use-members-DH5dae5S.js} +1 -1
  203. package/dist/client/assets/{use-navigate-to-agent-DGKOJZZo.js → use-navigate-to-agent-CLdhXO-i.js} +1 -1
  204. package/dist/client/assets/{use-org-auth-client-BtA9q92Y.js → use-org-auth-client-BwDW-s0s.js} +1 -1
  205. package/dist/client/assets/{use-org-sso-C7W79uGy.js → use-org-sso-BO0DGPVQ.js} +1 -1
  206. package/dist/client/assets/{use-organization-roles-F5igVlxZ.js → use-organization-roles-ZTYugFdP.js} +1 -1
  207. package/dist/client/assets/{use-organization-settings-79qw4RP3.js → use-organization-settings-ofRxNgFR.js} +1 -1
  208. package/dist/client/assets/{use-registry-connections-B7ROIw00.js → use-registry-connections-Clpq_83P.js} +1 -1
  209. package/dist/client/assets/{use-secrets-BZWXRb4X.js → use-secrets-CjbHuNwC.js} +1 -1
  210. package/dist/client/assets/{use-status-sounds-ZKWD8wXu.js → use-status-sounds-BQhIBN31.js} +1 -1
  211. package/dist/client/assets/{use-view-mode-DozvbNbv.js → use-view-mode-CjoQ3b4F.js} +1 -1
  212. package/dist/client/assets/{use-virtual-mcp-B4ctZV2V.js → use-virtual-mcp-BOy7A3-I.js} +1 -1
  213. package/dist/client/assets/useInfiniteQuery-BA4Q5DOk.js +1 -0
  214. package/dist/client/assets/{useRouterState-VKNXuMDL.js → useRouterState-BIyanAgq.js} +1 -1
  215. package/dist/client/assets/useSuspenseInfiniteQuery-PHI3OnKC.js +1 -0
  216. package/dist/client/assets/{user-oT5nEq50.js → user-DjbLcTMi.js} +1 -1
  217. package/dist/client/assets/{view-mode-toggle-C_ukyuBD.js → view-mode-toggle-DnMmKH1O.js} +1 -1
  218. package/dist/client/assets/{workflow-BpAUD1S2.js → workflow-D0yr6HGh.js} +1 -1
  219. package/dist/client/assets/workflow-detail-BCL21zFy.js +1 -0
  220. package/dist/client/index.html +1 -1
  221. package/dist/server/cli.js +2 -2
  222. package/dist/server/server.js +1 -1
  223. package/package.json +1 -1
  224. package/dist/client/assets/add-section-modal-D1xFmKc0.js +0 -1
  225. package/dist/client/assets/app-editor-BxDGPID0.js +0 -1
  226. package/dist/client/assets/file-explorer-DRoGrOQX.js +0 -2
  227. package/dist/client/assets/format-time-Cy7tTmZp.js +0 -1
  228. package/dist/client/assets/index-4e2CTVL7.js +0 -1
  229. package/dist/client/assets/index-DzDUNutB.js +0 -1
  230. package/dist/client/assets/page-seo-sheet-CqPtJlao.js +0 -1
  231. package/dist/client/assets/pair-CuPAm5Bi.js +0 -39
  232. package/dist/client/assets/project-app-view-YyQnhq2c.js +0 -1
  233. package/dist/client/assets/record-editor-nBvi-yPi.js +0 -1
  234. package/dist/client/assets/registry-BWNT0mI6.js +0 -2
  235. package/dist/client/assets/save-referenced-block-EoD0JuD1.js +0 -1
  236. package/dist/client/assets/seo-editor-1rtm8KlY.js +0 -1
  237. package/dist/client/assets/shell-route-loading-DxGBys3x.js +0 -1
  238. package/dist/client/assets/store-registry-Bt2ovs6q.js +0 -2
  239. package/dist/client/assets/useInfiniteQuery-qWamWTas.js +0 -1
  240. package/dist/client/assets/useSuspenseInfiniteQuery-CDj1xolJ.js +0 -1
  241. package/dist/client/assets/workflow-detail-DNlVdn_V.js +0 -1
@@ -1 +0,0 @@
1
- import{e as N,c as K,j as s,l as Vt,r as T,t as Z,q as fe,b as Ce,X as Ns,K as Wt,n as qt,f as Oe,g as Cs,d as Fn,P as Gn,Y as Bn,Z as Ln,T as Hn,W as Un,I as Kn,H as Vn,a as Wn,B as At,$ as qn,a0 as Yn,o as $e,a1 as Xn,a2 as Qn,a3 as Zn,G as Jn,a4 as er,a5 as tr,a6 as sr,a7 as nr,a8 as xt,a9 as rr,aa as or,ab as ir,ac as lr,ad as ar,ae as cr,af as ws,ag as dr,ah as ur,ai as mr,aj as fr,ak as xr,al as pr,am as hr,an as gr,ao as br,ap as jr,aq as vr,p as yr,E as ks}from"./index-DOoAabap.js";import{u as _r}from"./useRouterState-VKNXuMDL.js";import{c as Sr,i as Nr,a as Cr}from"./ZoomOut-BYuR8aeQ.js";import{u as Xe,c as xe,d as ke,e as Pt,f as zt,g as Ae,h as Is,i as Ms,j as wr,k as kr,l as Lt}from"./sidebar-B8xglaCl.js";import{T as we}from"./toolbar-ZRWeSQFu.js";import{u as $s,T as Ve,a as We,b as qe,c as ts}from"./tooltip-DjQW44FW.js";import{S as Se}from"./skeleton-DXwBFrmR.js";import{P as Rt,a as ut,b as Dt}from"./popover-C0XpZKfX.js";import{b as As,a as Ts,D as Os}from"./drawer-LPSuQTOw.js";import{i as Ps}from"./SearchMd-BX7CdT-X.js";import{s as Ir}from"./Star01-B0KVVYi_.js";import{s as Ne}from"./Plus-DgMianxx.js";import{i as Mr,a as zs,u as Rs,g as $r}from"./use-mcp-client-DnwBQgtt.js";import{a as Ds,u as pt,b as Ar}from"./use-virtual-mcp-B4ctZV2V.js";import{u as Tr}from"./use-create-virtual-mcp-DcKYoquB.js";import{I as Or,a as Pr,u as zr,W as Rr,H as Dr,S as Er,G as Fr}from"./github-repo-picker-CAK6NZTZ.js";import{A as Te,W as ss,X as ns,Y as Es,Z as Gr,_ as Br,$ as Lr}from"./agent-icon-T0Pj37EB.js";import{u as Fs,d as Hr,k as Gs}from"./tab-id-5WB0EpeZ.js";import{r as Ur,a as Kr,R as Vr,b as Wr,u as Bs}from"./shell-layout-BHmrKjJ7.js";import{u as qr,a as Yr,b as Xr,s as Qr,c as Zr,r as Jr,d as eo,e as to,f as so,p as no,T as Ls,g as ro,h as oo,i as io,j as lo,k as ao,l as co,m as uo,n as mo,S as rs,o as Hs}from"./use-navigate-to-agent-DGKOJZZo.js";import{A as os}from"./avatar-Cv8RAhQG.js";import{i as Us}from"./Check-pmcSX7Ds.js";import{a as is}from"./Eye-TeLMkAIt.js";import{n as fo,i as xo}from"./Globe01-DcV1IvQc.js";import{i as po,a as Ks}from"./ZapSquare-C5IO5ouL.js";import{i as ho}from"./Monitor01-C0AyFDoy.js";import{n as go,a as bo}from"./Sun-DmvZNVcY.js";import{a as ht}from"./Settings02-QpROtTDF.js";import{i as jo}from"./Shield01-EBH9mxXN.js";import{a as vo}from"./Users03-v_ItRW5T.js";import{s as Vs}from"./XClose-Cu1koOKq.js";import{f as yo,a as _o,b as So,c as No,d as Co,e as wo,A as ko}from"./alert-dialog-Dwxfxg1i.js";import{F as Io,a as Mo,b as $o,c as Ao,d as To,e as Oo,f as Po}from"./form-BLgBgnav.js";import{I as zo}from"./input-OGtZJjEE.js";import{S as Ro}from"./spinner-BiM6tNa6.js";import"./index-vLnKQzUP.js";import{i as Do,a as Eo}from"./RefreshCcw01-BZNxVpdM.js";import{n as Yt}from"./Stars02-CjwPUV9S.js";import{A as Ws,g as Fo,u as Go,a as ls,K as Bo,P as Lo,s as Ho,S as Uo,v as Ko,D as Vo,c as Wo,b as qo,C as Yo}from"./sortable.esm-BKxlC02W.js";import{i as Xt}from"./ChevronRight-BNY74L1V.js";import{u as qs}from"./use-mcp-tools-BQmNGmmp.js";import{u as Ys}from"./use-ai-providers-XhZCg1_E.js";import{i as Xo}from"./FilterLines-C7Uh3aPq.js";import{t as Qo}from"./Users01-D-4KurdS.js";import{b as as,c as Xs,S as cs,a as ds,d as us}from"./select-DtexK_z5.js";import{b as Zo,c as Jo,e as ei,a as ti,D as si}from"./dialog-B5s00-oF.js";import{C as ni,e as ri,c as oi,d as ii,b as li}from"./command-CXvlGLCD.js";import{u as Qs}from"./studio-tools-CKvJG16E.js";import{i as Zs}from"./Zap-3U1K5cTy.js";import{u as ai}from"./use-org-auth-client-BtA9q92Y.js";import{H as ci,a as di,b as ui}from"./hover-card-QfPMM7-7.js";import{g as mi,S as fi}from"./task-status-CvxTf2VK.js";import{f as xi}from"./format-time-Cy7tTmZp.js";import{t as Js}from"./ChevronDown-C4k7LIxV.js";function pi(t){const e=N.c(21),{value:n,onChange:r,placeholder:o,onKeyDown:i,className:l,isSearching:a,disabled:c}=t,d=o===void 0?"Search...":o;let u;e[0]!==l?(u=K("shrink-0 w-full border-b border-border h-12",l),e[0]=l,e[1]=u):u=e[1];const m=c?"cursor-not-allowed opacity-50":"cursor-text";let f;e[2]!==m?(f=K("flex items-center gap-2.5 h-12 px-4",m),e[2]=m,e[3]=f):f=e[3];let g;e[4]!==a?(g=a?s.jsx(Vt,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):s.jsx(Ps,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=a,e[5]=g):g=e[5];let h;e[6]!==r?(h=j=>r(j.target.value),e[6]=r,e[7]=h):h=e[7];let x;e[8]!==c||e[9]!==i||e[10]!==d||e[11]!==h||e[12]!==n?(x=s.jsx("input",{type:"text",value:n,onChange:h,onKeyDown:i,placeholder:d,disabled:c,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=c,e[9]=i,e[10]=d,e[11]=h,e[12]=n,e[13]=x):x=e[13];let p;e[14]!==f||e[15]!==g||e[16]!==x?(p=s.jsxs("label",{className:f,children:[g,x]}),e[14]=f,e[15]=g,e[16]=x,e[17]=p):p=e[17];let b;return e[18]!==u||e[19]!==p?(b=s.jsx("div",{className:u,children:p}),e[18]=u,e[19]=p,e[20]=b):b=e[20],b}const hi="Select an existing agent";function gi(t){const e=N.c(5),{children:n}=t;let r;e[0]!==n?(r=s.jsx(Ve,{asChild:!0,children:n}),e[0]=n,e[1]=r):r=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(We,{side:"right",sideOffset:8,children:hi}),e[2]=o):o=e[2];let i;return e[3]!==r?(i=s.jsxs(qe,{defaultOpen:!0,delayDuration:0,children:[r,o]}),e[3]=r,e[4]=i):i=e[4],i}function bi(){const t=N.c(5),{enableDecoImport:e}=Ns(),{data:n}=Ce.useSession();let r;t[0]!==n?.user?.email?(r=Wt.decoProfile(n?.user?.email),t[0]=n?.user?.email,t[1]=r):r=t[1];const o=!!e&&!!n?.user?.email;let i;t[2]!==r||t[3]!==o?(i={queryKey:r,queryFn:ji,enabled:o,staleTime:3e5},t[2]=r,t[3]=o,t[4]=i):i=t[4];const{data:l}=qt(i);return l?.isDecoUser??!1}async function ji(){const t=await fetch("/api/deco-sites/profile");return t.ok?t.json():{isDecoUser:!1}}function vi(t){const e=Oe(),{create:n}=Fs(),{locator:r}=fe(),o=Cs({strict:!1}),i=Fn({strict:!1});return async l=>{const a=crypto.randomUUID(),c=l===i.virtualmcpid?Ur(t,r,o.taskId??""):null;try{await n({id:a,virtual_mcp_id:l,...c?{branch:c}:{}})}catch{}e({to:"/$org/$taskId",params:{org:t,taskId:a},search:{virtualmcpid:l}})}}function yi(t){const e=N.c(9),{agent:n,onClick:r}=t;let o;e[0]!==n.icon||e[1]!==n.title?(o=s.jsx(Te,{icon:n.icon,name:n.title,size:"md",className:"transition-transform group-hover:scale-105"}),e[0]=n.icon,e[1]=n.title,e[2]=o):o=e[2];let i;e[3]!==n.title?(i=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground line-clamp-2 w-full",children:n.title}),e[3]=n.title,e[4]=i):i=e[4];let l;return e[5]!==r||e[6]!==o||e[7]!==i?(l=s.jsxs("button",{type:"button",onClick:r,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group",children:[o,i]}),e[5]=r,e[6]=o,e[7]=i,e[8]=l):l=e[8],l}function _i(t){const e=N.c(65),{onClose:n,onOpenImportDeco:r,onOpenGithubImport:o}=t,[i,l]=T.useState(""),a=Ds(),{org:c}=fe(),{data:d}=Ce.useSession(),u=d?.user?.id??"anon",m=a.filter(Ci).map(Ni),f=Yr();let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g={navigateOnCreate:!0},e[0]=g):g=e[0];const{createVirtualMCP:h,isCreating:x}=Tr(g),{createFromTemplate:p,isCreating:b}=zr(),j=bi(),y=vi(c.slug),v=i.toLowerCase(),_=a.filter(Si).filter(le=>!i||le.title.toLowerCase().includes(v)),k=le=>{Xr({orgId:c.id,userId:u},le.id,m),f(),n(),l(""),y(le.id)},S="flex flex-col max-h-[min(640px,80dvh)]";let C;e[1]!==i?(C=s.jsx(pi,{value:i,onChange:l,placeholder:"Search agents..."}),e[1]=i,e[2]=C):C=e[2];const I="overflow-y-auto flex-1 min-h-0 px-3 pb-3";let $;e[3]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx("div",{className:"px-1 pt-3 pb-2",children:s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Agents"})}),e[3]=$):$=e[3];const z="grid grid-cols-3 gap-1";let A;e[4]!==h||e[5]!==n?(A=async()=>{Z("agent_create_new_clicked",{source:"browse_popover"}),await h(),n()},e[4]=h,e[5]=n,e[6]=A):A=e[6];let w,P;e[7]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-dashed border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx(Ne,{size:16,className:"text-muted-foreground"})}),P=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Create new"}),e[7]=w,e[8]=P):(w=e[7],P=e[8]);let H;e[9]!==x||e[10]!==A?(H=s.jsxs("button",{type:"button",disabled:x,onClick:A,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group disabled:opacity-50 disabled:cursor-not-allowed",children:[w,P]}),e[9]=x,e[10]=A,e[11]=H):H=e[11];let O;e[12]!==p||e[13]!==n?(O=async()=>{Z("agent_create_clicked",{source:"browse_popover",method:"website"}),await p(Rr),n()},e[12]=p,e[13]=n,e[14]=O):O=e[14];let B,R;e[15]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx(Ir,{className:"size-5 text-muted-foreground"})}),R=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Start Website"}),e[15]=B,e[16]=R):(B=e[15],R=e[16]);let L;e[17]!==b||e[18]!==O?(L=s.jsxs("button",{type:"button",disabled:b,onClick:O,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group disabled:opacity-50 disabled:cursor-not-allowed",children:[B,R]}),e[17]=b,e[18]=O,e[19]=L):L=e[19];let D;e[20]!==p||e[21]!==n?(D=async()=>{Z("agent_create_clicked",{source:"browse_popover",method:"hydrogen"}),await p(Dr),n()},e[20]=p,e[21]=n,e[22]=D):D=e[22];let G,F;e[23]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx("img",{src:Er,alt:"",className:"size-5 object-contain"})}),F=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Shopify Headless Store"}),e[23]=G,e[24]=F):(G=e[23],F=e[24]);let E;e[25]!==b||e[26]!==D?(E=s.jsxs("button",{type:"button",disabled:b,onClick:D,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group disabled:opacity-50 disabled:cursor-not-allowed",children:[G,F]}),e[25]=b,e[26]=D,e[27]=E):E=e[27];let V;e[28]!==n||e[29]!==o?(V=()=>{Z("agent_import_clicked",{source:"github"}),o(),n()},e[28]=n,e[29]=o,e[30]=V):V=e[30];let W,X;e[31]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx(Fr,{className:"size-5 text-muted-foreground"})}),X=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Import GitHub"}),e[31]=W,e[32]=X):(W=e[31],X=e[32]);let re;e[33]!==V?(re=s.jsxs("button",{type:"button",onClick:V,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group",children:[W,X]}),e[33]=V,e[34]=re):re=e[34];let Y;e[35]!==j||e[36]!==n||e[37]!==r?(Y=j&&s.jsxs("button",{type:"button",onClick:()=>{Z("agent_import_clicked",{source:"deco"}),r(),n()},className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group",children:[s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx("img",{src:"/logos/deco%20logo.svg",alt:"",className:"size-5 object-contain"})}),s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Import deco.cx"})]}),e[35]=j,e[36]=n,e[37]=r,e[38]=Y):Y=e[38];const oe=_.map(le=>s.jsx(yi,{agent:le,onClick:()=>k(le)},le.id));let q;e[39]!==H||e[40]!==L||e[41]!==E||e[42]!==re||e[43]!==Y||e[44]!==oe?(q=s.jsxs("div",{className:z,children:[H,L,E,re,Y,oe]}),e[39]=H,e[40]=L,e[41]=E,e[42]=re,e[43]=Y,e[44]=oe,e[45]=q):q=e[45];let J;e[46]!==x||e[47]!==i||e[48]!==_.length?(J=_.length===0&&!x&&s.jsx("div",{className:"flex items-center justify-center py-6 text-xs text-muted-foreground",children:i?"No agents found":"No agents yet"}),e[46]=x,e[47]=i,e[48]=_.length,e[49]=J):J=e[49];let Q;e[50]!==q||e[51]!==J||e[52]!==$?(Q=s.jsxs("div",{className:I,children:[$,q,J]}),e[50]=q,e[51]=J,e[52]=$,e[53]=Q):Q=e[53];let ee;e[54]!==c.slug?(ee={org:c.slug},e[54]=c.slug,e[55]=ee):ee=e[55];let te;e[56]!==n?(te=()=>n(),e[56]=n,e[57]=te):te=e[57];let se;e[58]!==ee||e[59]!==te?(se=s.jsx("div",{className:"border-t border-border px-3 py-2.5",children:s.jsx(Gn,{to:"/$org/settings/agents",params:ee,onClick:te,className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center justify-center",children:"See all agents"})}),e[58]=ee,e[59]=te,e[60]=se):se=e[60];let ie;return e[61]!==Q||e[62]!==C||e[63]!==se?(ie=s.jsxs("div",{className:S,children:[C,Q,se]}),e[61]=Q,e[62]=C,e[63]=se,e[64]=ie):ie=e[64],ie}function Si(t){return!Mr(t.id)}function Ni(t){return t.id}function Ci(t){return t.pinned}function en(t){const e=N.c(26);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{compact:r}=n,o=r===void 0?!1:r,[i,l]=T.useState(!1),[a,c]=T.useState(!1),[d,u]=T.useState(!1),m=$s(),{setOpenMobile:f}=Xe(),g=qr(),h=g?"border border-border":void 0;let x;e[2]!==g?(x=I=>g?s.jsx(gi,{children:I}):I,e[2]=g,e[3]=x):x=e[3];const p=x;let b;e[4]!==m||e[5]!==f?(b=()=>{l(!1),m&&f(!1)},e[4]=m,e[5]=f,e[6]=b):b=e[6];const j=b;let y;e[7]!==j||e[8]!==i?(y=i&&s.jsx(T.Suspense,{fallback:s.jsx("div",{className:"flex items-center justify-center py-8",children:s.jsx(Se,{className:"h-4 w-24"})}),children:s.jsx(_i,{onClose:j,onOpenImportDeco:()=>c(!0),onOpenGithubImport:()=>{u(!0),j()}})}),e[7]=j,e[8]=i,e[9]=y):y=e[9];const v=y;let _;e[10]!==o||e[11]!==h||e[12]!==g||e[13]!==m||e[14]!==i||e[15]!==v||e[16]!==p?(_=m?s.jsxs(s.Fragment,{children:[o?p(s.jsx(we,{"aria-label":"Browse agents",className:K(h),onClick:()=>{Z("agent_browser_opened",{surface:"mobile_drawer"}),l(!0)},children:s.jsx(Ne,{className:"size-4"})})):s.jsx(xe,{children:p(s.jsxs(ke,{tooltip:g?void 0:"Browse agents",className:K(h),onClick:()=>{Z("agent_browser_opened",{surface:"mobile_drawer"}),l(!0)},children:[s.jsx(Ne,{}),s.jsx("span",{children:"New agent"})]}))}),s.jsx(As,{open:i,onOpenChange:l,direction:"bottom",children:s.jsxs(Ts,{className:"max-h-[85dvh] p-0",children:[s.jsx(Os,{className:"sr-only",children:"Browse agents"}),v]})})]}):s.jsxs(Rt,{open:i,onOpenChange:I=>{I&&!i&&Z("agent_browser_opened",{surface:"desktop_popover"}),l(I)},children:[o?p(s.jsx(ut,{asChild:!0,children:s.jsx(we,{"aria-label":"Browse agents",className:K(h),children:s.jsx(Ne,{className:"size-4"})})})):s.jsx(xe,{children:p(s.jsx(ut,{asChild:!0,children:s.jsxs(ke,{tooltip:g?void 0:"Browse agents",className:K(h),children:[s.jsx(Ne,{}),s.jsx("span",{children:"New agent"})]})}))}),s.jsx(Dt,{className:"w-[380px] p-0 overflow-hidden",side:"right",align:"start",children:v})]}),e[10]=o,e[11]=h,e[12]=g,e[13]=m,e[14]=i,e[15]=v,e[16]=p,e[17]=_):_=e[17];let k;e[18]!==a?(k=s.jsx(Or,{open:a,onOpenChange:c}),e[18]=a,e[19]=k):k=e[19];let S;e[20]!==d?(S=s.jsx(Pr,{open:d,onOpenChange:u}),e[20]=d,e[21]=S):S=e[21];let C;return e[22]!==_||e[23]!==k||e[24]!==S?(C=s.jsxs(s.Fragment,{children:[_,k,S]}),e[22]=_,e[23]=k,e[24]=S,e[25]=C):C=e[25],C}function tn(){const t=N.c(24),{org:e}=fe(),n=Oe(),o=_r().location.pathname,i=e.slug,{state:l,isMobile:a}=Xe(),c=!a&&l==="collapsed";let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Sr,{className:"size-4!"}),t[0]=d):d=t[0];const u=o===`/${i}`||o===`/${i}/`;let m;t[1]!==n||t[2]!==i?(m=()=>{n({to:"/$org",params:{org:i}})},t[1]=n,t[2]=i,t[3]=m):m=t[3];let f;t[4]!==u||t[5]!==m?(f={key:"home",label:"Home",icon:d,isActive:u,onClick:m},t[4]=u,t[5]=m,t[6]=f):f=t[6];const g=f;let h;t[7]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(Nr,{className:"size-4!"}),t[7]=h):h=t[7];let x;t[8]!==o||t[9]!==i?(x=o.startsWith(`/${i}/files`),t[8]=o,t[9]=i,t[10]=x):x=t[10];let p;t[11]!==n||t[12]!==i?(p=()=>{n({to:"/$org/files",params:{org:i}})},t[11]=n,t[12]=i,t[13]=p):p=t[13];let b;t[14]!==x||t[15]!==p?(b={key:"files",label:"Library",icon:h,isActive:x,onClick:p},t[14]=x,t[15]=p,t[16]=b):b=t[16];const j=b;let y;t[17]!==j||t[18]!==g?(y={type:"items",items:[g,j]},t[17]=j,t[18]=g,t[19]=y):y=t[19];let v;if(t[20]!==c||t[21]!==y){if(v=[y],c){let _;t[23]===Symbol.for("react.memo_cache_sentinel")?(_={type:"custom",key:"new-task",content:s.jsx(Pt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(zt,{children:s.jsx(Ae,{className:"gap-1.5",children:s.jsx(en,{})})})})},t[23]=_):_=t[23],v.push(_)}t[20]=c,t[21]=y,t[22]=v}else v=t[22];return v}function Tt(t){const e=N.c(12);let n,r,o,i;e[0]!==t?({className:n,orientation:o,decorative:i,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i):(n=e[1],r=e[2],o=e[3],i=e[4]);const l=o===void 0?"horizontal":o,a=i===void 0?!0:i;let c;e[5]!==n?(c=K("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",n),e[5]=n,e[6]=c):c=e[6];let d;return e[7]!==a||e[8]!==l||e[9]!==r||e[10]!==c?(d=s.jsx(Bn,{"data-slot":"separator-root",decorative:a,orientation:l,className:c,...r}),e[7]=a,e[8]=l,e[9]=r,e[10]=c,e[11]=d):d=e[11],d}function sn(t){const e=N.c(3),{children:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-16 rounded-full bg-sidebar-foreground/15"})}),e[0]=r):r=e[0];let o;return e[1]!==n?(o=s.jsxs(Pt,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[r,s.jsx(zt,{children:s.jsx(Ae,{className:"gap-0.5",children:n})})]}),e[1]=n,e[2]=o):o=e[2],o}function nn(t){const e=N.c(18),{item:n}=t,{isMobile:r,setOpenMobile:o}=Xe();let i;e[0]!==r||e[1]!==n||e[2]!==o?(i=()=>{Z("nav_item_clicked",{nav_key:n.key,nav_label:n.label,is_active:!!n.isActive,is_mobile:r}),n.onClick?.(),r&&o(!1)},e[0]=r,e[1]=n,e[2]=o,e[3]=i):i=e[3];const l=i,a=n.key,c=n.isActive&&"z-10";let d;e[4]!==c?(d=K(c),e[4]=c,e[5]=d):d=e[5];let u;e[6]!==n.label?(u=s.jsx("span",{children:n.label}),e[6]=n.label,e[7]=u):u=e[7];let m;e[8]!==l||e[9]!==n.icon||e[10]!==n.isActive||e[11]!==n.label||e[12]!==u?(m=s.jsxs(ke,{onClick:l,isActive:n.isActive,tooltip:n.label,children:[n.icon,u]}),e[8]=l,e[9]=n.icon,e[10]=n.isActive,e[11]=n.label,e[12]=u,e[13]=m):m=e[13];let f;return e[14]!==n.key||e[15]!==d||e[16]!==m?(f=s.jsx(xe,{className:d,children:m},a),e[14]=n.key,e[15]=d,e[16]=m,e[17]=f):f=e[17],f}function wi(t){const e=N.c(12),{section:n}=t;switch(n.type){case"divider":{let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Is,{className:"my-2"}),e[0]=r):r=e[0],r}case"spacer":{let r;return e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex-1"}),e[1]=r):r=e[1],r}case"group":{const r=n.group.label,o=n.group.defaultExpanded;let i;e[2]!==n.group.items?(i=n.group.items.map(Ii),e[2]=n.group.items,e[3]=i):i=e[3];let l;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==i?(l=s.jsx(sn,{label:r,defaultExpanded:o,children:i}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=i,e[7]=l):l=e[7],l}case"items":{let r;e[8]!==n.items?(r=n.items.map(ki),e[8]=n.items,e[9]=r):r=e[9];let o;return e[10]!==r?(o=s.jsx(Pt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(zt,{children:s.jsx(Ae,{className:"gap-1.5",children:r})})}),e[10]=r,e[11]=o):o=e[11],o}case"custom":return n.content}}function ki(t){return s.jsx(nn,{item:t},t.key)}function Ii(t){return s.jsx(nn,{item:t},t.key)}function Mi(t){const e=N.c(14),{sections:n,footer:r,additionalContent:o,variant:i,contentClassName:l}=t,a=i===void 0?"sidebar":i;let c;e[0]!==l?(c=K("flex flex-col flex-1 px-2 py-2 gap-0.5",l),e[0]=l,e[1]=c):c=e[1];let d;e[2]!==n?(d=n.map($i),e[2]=n,e[3]=d):d=e[3];let u;e[4]!==o?(u=o&&s.jsx("div",{className:"flex flex-col flex-1 min-h-0 group-data-[state=collapsed]/sidebar:mt-1 group-data-[state=expanded]/sidebar:mt-2",children:o}),e[4]=o,e[5]=u):u=e[5];let m;e[6]!==c||e[7]!==d||e[8]!==u?(m=s.jsxs(Ms,{className:c,children:[d,u]}),e[6]=c,e[7]=d,e[8]=u,e[9]=m):m=e[9];let f;return e[10]!==r||e[11]!==m||e[12]!==a?(f=s.jsxs(wr,{variant:a,children:[m,r]}),e[10]=r,e[11]=m,e[12]=a,e[13]=f):f=e[13],f}function $i(t,e){return s.jsx(wi,{section:t},e)}function rn(t){const e=N.c(2);let n;return e[0]!==t?(n=s.jsx(Mi,{...t}),e[0]=t,e[1]=n):n=e[1],n}rn.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,n)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(Se,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function Ai(){const t=N.c(7),n=Ns().logo??Ln,r=typeof n=="string"?n:n.light,o=typeof n=="string"?n:n.dark;let i;t[0]!==r?(i=s.jsx("img",{src:r,alt:"Logo",className:"size-6 object-contain dark:hidden"}),t[0]=r,t[1]=i):i=t[1];let l;t[2]!==o?(l=s.jsx("img",{src:o,alt:"Logo",className:"size-6 object-contain hidden dark:block"}),t[2]=o,t[3]=l):l=t[3];let a;return t[4]!==i||t[5]!==l?(a=s.jsxs(kr,{className:"flex flex-row items-center shrink-0 h-12 px-3 pb-0",children:[i,l]}),t[4]=i,t[5]=l,t[6]=a):a=t[6],a}function ms(t){const e=N.c(18),{item:n,onClose:r}=t,o=n.isActive&&"z-10";let i;e[0]!==o?(i=K(o),e[0]=o,e[1]=i):i=e[1];let l;e[2]!==n||e[3]!==r?(l=()=>{n.onClick?.(),r()},e[2]=n,e[3]=r,e[4]=l):l=e[4];let a;e[5]!==n.icon?(a=s.jsx("span",{className:"[&>svg]:size-5 shrink-0",children:n.icon}),e[5]=n.icon,e[6]=a):a=e[6];let c;e[7]!==n.label?(c=s.jsx("span",{children:n.label}),e[7]=n.label,e[8]=c):c=e[8];let d;e[9]!==n.isActive||e[10]!==n.label||e[11]!==l||e[12]!==a||e[13]!==c?(d=s.jsxs(ke,{onClick:l,isActive:n.isActive,tooltip:n.label,className:"h-10! text-sm!",children:[a,c]}),e[9]=n.isActive,e[10]=n.label,e[11]=l,e[12]=a,e[13]=c,e[14]=d):d=e[14];let u;return e[15]!==i||e[16]!==d?(u=s.jsx(xe,{className:i,children:d}),e[15]=i,e[16]=d,e[17]=u):u=e[17],u}function Ti(t){const e=N.c(18),{section:n,onClose:r}=t;switch(n.type){case"divider":{let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Is,{className:"my-2"}),e[0]=o):o=e[0],o}case"spacer":{let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1"}),e[1]=o):o=e[1],o}case"group":{const o=n.group.label,i=n.group.defaultExpanded;let l;if(e[2]!==r||e[3]!==n.group.items){let c;e[5]!==r?(c=d=>s.jsx(ms,{item:d,onClose:r},d.key),e[5]=r,e[6]=c):c=e[6],l=n.group.items.map(c),e[2]=r,e[3]=n.group.items,e[4]=l}else l=e[4];let a;return e[7]!==n.group.defaultExpanded||e[8]!==n.group.label||e[9]!==l?(a=s.jsx(sn,{label:o,defaultExpanded:i,children:l}),e[7]=n.group.defaultExpanded,e[8]=n.group.label,e[9]=l,e[10]=a):a=e[10],a}case"items":{let o;if(e[11]!==r||e[12]!==n.items){let l;e[14]!==r?(l=a=>s.jsx(ms,{item:a,onClose:r},a.key),e[14]=r,e[15]=l):l=e[15],o=n.items.map(l),e[11]=r,e[12]=n.items,e[13]=o}else o=e[13];let i;return e[16]!==o?(i=s.jsx(Pt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(zt,{children:s.jsx(Ae,{className:"gap-1.5",children:o})})}),e[16]=o,e[17]=i):i=e[17],i}case"custom":return n.content}}function Oi(t){const e=N.c(14),{sections:n,onClose:r,footer:o,additionalContent:i}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(T.Suspense,{fallback:s.jsx("div",{className:"h-10 shrink-0"}),children:s.jsx(Ai,{})}),e[0]=l):l=e[0];let a;if(e[1]!==r||e[2]!==n){let m;e[4]!==r?(m=(f,g)=>s.jsx(Ti,{section:f,onClose:r},g),e[4]=r,e[5]=m):m=e[5],a=n.map(m),e[1]=r,e[2]=n,e[3]=a}else a=e[3];let c;e[6]!==i?(c=i&&s.jsx("div",{className:"mt-3 flex flex-col flex-1 min-h-0",children:i}),e[6]=i,e[7]=c):c=e[7];let d;e[8]!==a||e[9]!==c?(d=s.jsxs(Ms,{className:"flex flex-col flex-1 px-2 py-2 gap-0",children:[a,c]}),e[8]=a,e[9]=c,e[10]=d):d=e[10];let u;return e[11]!==o||e[12]!==d?(u=s.jsxs("div",{className:"bg-sidebar flex h-full w-full flex-col","data-sidebar":"sidebar",children:[l,d,o]}),e[11]=o,e[12]=d,e[13]=u):u=e[13],u}function on(t){return t.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Pi=Hn({name:Un().min(2,"Organization name is required")});function zi(t){const e=N.c(41),{open:n,onOpenChange:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={resolver:Kn(Pi),defaultValues:{name:""}},e[0]=o):o=e[0];const i=Vn(o);let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l={mutationFn:Di,onSuccess:Ri},e[1]=l):l=e[1];const a=Wn(l),c=a.error instanceof Error?a.error.message:a.error?"Failed to create organization.":null;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsxs(So,{children:[s.jsx(No,{children:"Create a new organization"}),s.jsx(Co,{children:"Set up a new organization to collaborate with others."})]}),e[2]=d):d=e[2];let u;if(e[3]!==a||e[4]!==i){let S;e[6]!==a?(S=C=>a.mutateAsync(C),e[6]=a,e[7]=S):S=e[7],u=i.handleSubmit(S),e[3]=a,e[4]=i,e[5]=u}else u=e[5];let m;e[8]!==i.formState.isSubmitting?(m=S=>{const{field:C}=S;return s.jsxs($o,{children:[s.jsx(Ao,{children:"Organization Name"}),s.jsx(To,{children:s.jsx(zo,{...C,placeholder:"Acme Inc.",disabled:i.formState.isSubmitting})}),s.jsx(Oo,{children:"The name of your company or organization"}),C.value&&s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["Organization URL:"," ",s.jsxs("span",{className:"font-mono",children:[typeof window<"u"?globalThis.location.origin:"","/",on(C.value)]})]}),s.jsx(Po,{})]})},e[8]=i.formState.isSubmitting,e[9]=m):m=e[9];let f;e[10]!==i.control||e[11]!==m?(f=s.jsx(Io,{control:i.control,name:"name",render:m}),e[10]=i.control,e[11]=m,e[12]=f):f=e[12];let g;e[13]!==c?(g=c&&s.jsx("div",{className:"text-destructive text-sm mt-2",children:c}),e[13]=c,e[14]=g):g=e[14];let h;e[15]!==a||e[16]!==i?(h=()=>{a.reset(),i.reset()},e[15]=a,e[16]=i,e[17]=h):h=e[17];let x;e[18]!==i.formState.isSubmitting||e[19]!==h?(x=s.jsx(yo,{disabled:i.formState.isSubmitting,onClick:h,children:"Cancel"}),e[18]=i.formState.isSubmitting,e[19]=h,e[20]=x):x=e[20];const p=!i.formState.isValid||i.formState.isSubmitting;let b;e[21]!==i.formState.isSubmitting?(b=i.formState.isSubmitting?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Ro,{size:"xs"})," Creating..."]}):"Create Organization",e[21]=i.formState.isSubmitting,e[22]=b):b=e[22];let j;e[23]!==p||e[24]!==b?(j=s.jsx(At,{type:"submit",variant:"default",disabled:p,children:b}),e[23]=p,e[24]=b,e[25]=j):j=e[25];let y;e[26]!==j||e[27]!==x?(y=s.jsxs(wo,{children:[x,j]}),e[26]=j,e[27]=x,e[28]=y):y=e[28];let v;e[29]!==y||e[30]!==u||e[31]!==f||e[32]!==g?(v=s.jsxs("form",{className:"space-y-6",onSubmit:u,autoComplete:"off",children:[f,g,y]}),e[29]=y,e[30]=u,e[31]=f,e[32]=g,e[33]=v):v=e[33];let _;e[34]!==i||e[35]!==v?(_=s.jsxs(_o,{children:[d,s.jsx(Mo,{...i,children:v})]}),e[34]=i,e[35]=v,e[36]=_):_=e[36];let k;return e[37]!==r||e[38]!==n||e[39]!==_?(k=s.jsx(ko,{open:n,onOpenChange:r,children:_}),e[37]=r,e[38]=n,e[39]=_,e[40]=k):k=e[40],k}function Ri(t){const{orgSlug:e}=t;window.location.href=`/${e}`}async function Di(t){const e=on(t.name);if(!e)throw new Error("Organization slug is invalid");const n=await Ce.organization.create({name:t.name,slug:e});if(n?.error)throw new Error(n.error.message||"Failed to create organization");const r=n?.data?.slug??e;if(!r)throw new Error("Failed to create organization");return{orgSlug:r}}function Ht(t){let e=0;for(let r=0;r<t.length;r++)e=t.charCodeAt(r)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function Ei(t){const e=N.c(13),{org:n,size:r}=t,o=r===void 0?"sm":r,i=o==="xs"?"size-5":"size-6",l=o==="xs"?"text-[9px]":"text-xs";let a;e[0]!==i?(a=K(i,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=i,e[1]=a):a=e[1];let c;e[2]!==n.logo||e[3]!==n.name?(c=n.logo?void 0:Ht(n.name),e[2]=n.logo,e[3]=n.name,e[4]=c):c=e[4];let d;e[5]!==n.logo||e[6]!==n.name||e[7]!==l?(d=n.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:K("font-semibold leading-none",l),children:n.name.slice(0,2).toUpperCase()}),e[5]=n.logo,e[6]=n.name,e[7]=l,e[8]=d):d=e[8];let u;return e[9]!==a||e[10]!==c||e[11]!==d?(u=s.jsx("div",{className:a,style:c,children:d}),e[9]=a,e[10]=c,e[11]=d,e[12]=u):u=e[12],u}function wt(t){const e=N.c(22),{item:n,onClose:r}=t;if(n.href){const c=n.external?"_blank":void 0,d=n.external?"noopener noreferrer":void 0;let u;e[0]!==n.icon?(u=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[0]=n.icon,e[1]=u):u=e[1];let m;e[2]!==n.label?(m=s.jsx("span",{className:"flex-1",children:n.label}),e[2]=n.label,e[3]=m):m=e[3];let f;return e[4]!==n.href||e[5]!==r||e[6]!==c||e[7]!==d||e[8]!==u||e[9]!==m?(f=s.jsxs("a",{href:n.href,target:c,rel:d,className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",onClick:r,children:[u,m]}),e[4]=n.href,e[5]=r,e[6]=c,e[7]=d,e[8]=u,e[9]=m,e[10]=f):f=e[10],f}let o;e[11]!==n||e[12]!==r?(o=()=>{n.onClick?.(),r()},e[11]=n,e[12]=r,e[13]=o):o=e[13];let i;e[14]!==n.icon?(i=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[14]=n.icon,e[15]=i):i=e[15];let l;e[16]!==n.label?(l=s.jsx("span",{className:"flex-1",children:n.label}),e[16]=n.label,e[17]=l):l=e[17];let a;return e[18]!==o||e[19]!==i||e[20]!==l?(a=s.jsxs("button",{type:"button",onClick:o,className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",children:[i,l]}),e[18]=o,e[19]=i,e[20]=l,e[21]=a):a=e[21],a}function fs(t){const e=N.c(31),{orgParam:n,onSelectOrg:r,onCreateOrg:o}=t,{data:i}=Zn();let l;e[0]!==n?(l=(w,P)=>w.slug===n?-1:P.slug===n?1:w.name.localeCompare(P.name),e[0]=n,e[1]=l):l=e[1];const a=[...i??[]].sort(l),[c,d]=T.useState(!1),[u,m]=T.useState(""),f=u.toLowerCase(),g=f?a.filter(w=>w.name.toLowerCase().includes(f)||w.slug.toLowerCase().includes(f)):a;let h;e[2]!==c?(h=function(){c&&m(""),d(Fi)},e[2]=c,e[3]=h):h=e[3];const x=h;let p;e[4]!==u||e[5]!==c||e[6]!==x?(p=c?s.jsx("input",{autoFocus:!0,type:"text",value:u,onChange:w=>m(w.target.value),onKeyDown:w=>w.key==="Escape"&&x(),placeholder:"Search organizations...",className:"flex-1 min-w-0 bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"}):s.jsx("span",{className:"text-sm font-medium text-muted-foreground/60",children:"Your Organizations"}),e[4]=u,e[5]=c,e[6]=x,e[7]=p):p=e[7];let b;e[8]!==c?(b=c?s.jsx(Vs,{size:16}):s.jsx(Ps,{size:16}),e[8]=c,e[9]=b):b=e[9];let j;e[10]!==b||e[11]!==x?(j=s.jsx("button",{type:"button",onClick:x,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:b}),e[10]=b,e[11]=x,e[12]=j):j=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(Ne,{size:16}),e[13]=y):y=e[13];let v;e[14]!==o?(v=s.jsx("button",{type:"button",onClick:o,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:y}),e[14]=o,e[15]=v):v=e[15];let _;e[16]!==j||e[17]!==v?(_=s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[j,v]}),e[16]=j,e[17]=v,e[18]=_):_=e[18];let k;e[19]!==p||e[20]!==_?(k=s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[p,_]}),e[19]=p,e[20]=_,e[21]=k):k=e[21];const S="flex-1 min-h-0 overflow-y-auto p-1.5 flex flex-col gap-1",C=g.length===0&&s.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground/60 text-center",children:u?`No organizations match "${u}"`:"No organizations available"});let I;e[22]!==r||e[23]!==n?(I=w=>s.jsxs("button",{type:"button",onClick:()=>r(w.slug),className:K("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",w.slug===n?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50"),children:[s.jsx(Ei,{org:w,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:w.name}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:w.slug})]}),w.slug===n&&s.jsx(Us,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},w.id),e[22]=r,e[23]=n,e[24]=I):I=e[24];const $=g.map(I);let z;e[25]!==C||e[26]!==$?(z=s.jsxs("div",{className:S,children:[C,$]}),e[25]=C,e[26]=$,e[27]=z):z=e[27];let A;return e[28]!==z||e[29]!==k?(A=s.jsxs(s.Fragment,{children:[k,z]}),e[28]=z,e[29]=k,e[30]=A):A=e[30],A}function Fi(t){return!t}function xs(t){const e=N.c(142),{user:n,userImage:r,menuItems:o,signOutItem:i,themeOptions:l,preferences:a,setPreferences:c,orgParam:d,onSelectOrg:u,onCreateOrg:m,close:f,isMobile:g,open:h}=t;if(g){const q=n?.name??"U";let J;e[0]!==q||e[1]!==r?(J=s.jsx(os,{url:r,fallback:q,shape:"circle",size:"sm",className:"shrink-0"}),e[0]=q,e[1]=r,e[2]=J):J=e[2];const Q=n?.name??"User";let ee;e[3]!==Q?(ee=s.jsx("p",{className:"text-sm font-medium truncate",children:Q}),e[3]=Q,e[4]=ee):ee=e[4];const te=n?.email;let se;e[5]!==te?(se=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:te}),e[5]=te,e[6]=se):se=e[6];let ie;e[7]!==ee||e[8]!==se?(ie=s.jsxs("div",{className:"flex-1 min-w-0",children:[ee,se]}),e[7]=ee,e[8]=se,e[9]=ie):ie=e[9];let le;e[10]!==n?(le=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(Hi)},e[10]=n,e[11]=le):le=e[11];let Ie;e[12]===Symbol.for("react.memo_cache_sentinel")?(Ie=s.jsx(is,{size:14}),e[12]=Ie):Ie=e[12];let Pe;e[13]!==le?(Pe=s.jsx(Ve,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:le,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:Ie})}),e[13]=le,e[14]=Pe):Pe=e[14];let ze;e[15]===Symbol.for("react.memo_cache_sentinel")?(ze=s.jsx(We,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[15]=ze):ze=e[15];let pe;e[16]!==Pe?(pe=s.jsx(ts,{delayDuration:300,children:s.jsxs(qe,{children:[Pe,ze]})}),e[16]=Pe,e[17]=pe):pe=e[17];let Re;e[18]!==pe||e[19]!==J||e[20]!==ie?(Re=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-4 border-b border-border",children:[J,ie,pe]}),e[18]=pe,e[19]=J,e[20]=ie,e[21]=Re):Re=e[21];const mt=String(h);let De;e[22]!==m||e[23]!==u||e[24]!==d||e[25]!==mt?(De=s.jsx("div",{className:"border-b border-border pb-2",children:s.jsx(fs,{orgParam:d,onSelectOrg:u,onCreateOrg:m},mt)}),e[22]=m,e[23]=u,e[24]=d,e[25]=mt,e[26]=De):De=e[26];let Ee;if(e[27]!==f||e[28]!==o){let de;e[30]!==f?(de=He=>s.jsx(wt,{item:He,onClose:f},He.key),e[30]=f,e[31]=de):de=e[31],Ee=o.map(de),e[27]=f,e[28]=o,e[29]=Ee}else Ee=e[29];let Me;e[32]!==f||e[33]!==i?(Me=s.jsx(wt,{item:i,onClose:f}),e[32]=f,e[33]=i,e[34]=Me):Me=e[34];let ae;e[35]!==Ee||e[36]!==Me?(ae=s.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[Ee,Me]}),e[35]=Ee,e[36]=Me,e[37]=ae):ae=e[37];let Fe;e[38]!==De||e[39]!==ae?(Fe=s.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto",children:[De,ae]}),e[38]=De,e[39]=ae,e[40]=Fe):Fe=e[40];let Ge;if(e[41]!==a.theme||e[42]!==c||e[43]!==l){let de;e[45]!==a.theme||e[46]!==c?(de=He=>{const{value:ye,icon:Ue,label:Ke}=He;return s.jsx("button",{type:"button","aria-label":Ke,onClick:()=>c(Qe=>({...Qe,theme:ye})),className:K("size-8 rounded-md flex items-center justify-center transition-colors",a.theme===ye?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:Ue},ye)},e[45]=a.theme,e[46]=c,e[47]=de):de=e[47],Ge=l.map(de),e[41]=a.theme,e[42]=c,e[43]=l,e[44]=Ge}else Ge=e[44];let Ye;e[48]!==Ge?(Ye=s.jsx("div",{className:"flex items-center gap-0.5",children:Ge}),e[48]=Ge,e[49]=Ye):Ye=e[49];const ft=a.enableSounds?"Disable sounds":"Enable sounds";let be;e[50]!==c?(be=()=>c(Li),e[50]=c,e[51]=be):be=e[51];const je=a.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let ue;e[52]!==je?(ue=K("size-8 rounded-md flex items-center justify-center transition-colors",je),e[52]=je,e[53]=ue):ue=e[53];let he;e[54]!==a.enableSounds?(he=a.enableSounds?s.jsx(ss,{size:14}):s.jsx(ns,{size:14}),e[54]=a.enableSounds,e[55]=he):he=e[55];let me;e[56]!==ft||e[57]!==be||e[58]!==ue||e[59]!==he?(me=s.jsx("button",{type:"button","aria-label":ft,onClick:be,className:ue,children:he}),e[56]=ft,e[57]=be,e[58]=ue,e[59]=he,e[60]=me):me=e[60];let Be;e[61]===Symbol.for("react.memo_cache_sentinel")?(Be=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","3.28.3"]}),e[61]=Be):Be=e[61];let ge;e[62]!==me?(ge=s.jsxs("div",{className:"flex items-center gap-2",children:[me,Be]}),e[62]=me,e[63]=ge):ge=e[63];let ve;e[64]!==Ye||e[65]!==ge?(ve=s.jsxs("div",{className:"flex items-center justify-between px-3 py-3 border-t border-border/50",children:[Ye,ge]}),e[64]=Ye,e[65]=ge,e[66]=ve):ve=e[66];let Le;return e[67]!==Re||e[68]!==Fe||e[69]!==ve?(Le=s.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[Re,Fe,ve]}),e[67]=Re,e[68]=Fe,e[69]=ve,e[70]=Le):Le=e[70],Le}const x=n?.name??"U";let p;e[71]!==x||e[72]!==r?(p=s.jsx(os,{url:r,fallback:x,shape:"circle",size:"sm",className:"shrink-0"}),e[71]=x,e[72]=r,e[73]=p):p=e[73];const b=n?.name??"User";let j;e[74]!==b?(j=s.jsx("p",{className:"text-sm font-medium truncate",children:b}),e[74]=b,e[75]=j):j=e[75];const y=n?.email;let v;e[76]!==y?(v=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y}),e[76]=y,e[77]=v):v=e[77];let _;e[78]!==j||e[79]!==v?(_=s.jsxs("div",{className:"flex-1 min-w-0",children:[j,v]}),e[78]=j,e[79]=v,e[80]=_):_=e[80];let k;e[81]!==n?(k=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(Bi)},e[81]=n,e[82]=k):k=e[82];let S;e[83]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(is,{size:14}),e[83]=S):S=e[83];let C;e[84]!==k?(C=s.jsx(Ve,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:k,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:S})}),e[84]=k,e[85]=C):C=e[85];let I;e[86]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(We,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[86]=I):I=e[86];let $;e[87]!==C?($=s.jsx(ts,{delayDuration:300,children:s.jsxs(qe,{children:[C,I]})}),e[87]=C,e[88]=$):$=e[88];let z;e[89]!==$||e[90]!==p||e[91]!==_?(z=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 mx-1 mt-1",children:[p,_,$]}),e[89]=$,e[90]=p,e[91]=_,e[92]=z):z=e[92];let A;if(e[93]!==f||e[94]!==o){let q;e[96]!==f?(q=J=>s.jsx(wt,{item:J,onClose:f},J.key),e[96]=f,e[97]=q):q=e[97],A=o.map(q),e[93]=f,e[94]=o,e[95]=A}else A=e[95];let w;e[98]!==f||e[99]!==i?(w=s.jsx(wt,{item:i,onClose:f}),e[98]=f,e[99]=i,e[100]=w):w=e[100];let P;e[101]!==A||e[102]!==w?(P=s.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[A,w]}),e[101]=A,e[102]=w,e[103]=P):P=e[103];let H;if(e[104]!==a.theme||e[105]!==c||e[106]!==l){let q;e[108]!==a.theme||e[109]!==c?(q=J=>{const{value:Q,icon:ee,label:te}=J;return s.jsx("button",{type:"button","aria-label":te,onClick:()=>c(se=>({...se,theme:Q})),className:K("size-7 rounded-md flex items-center justify-center transition-colors",a.theme===Q?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:ee},Q)},e[108]=a.theme,e[109]=c,e[110]=q):q=e[110],H=l.map(q),e[104]=a.theme,e[105]=c,e[106]=l,e[107]=H}else H=e[107];let O;e[111]!==H?(O=s.jsx("div",{className:"flex items-center gap-0.5",children:H}),e[111]=H,e[112]=O):O=e[112];const B=a.enableSounds?"Disable sounds":"Enable sounds";let R;e[113]!==c?(R=()=>c(Gi),e[113]=c,e[114]=R):R=e[114];const L=a.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let D;e[115]!==L?(D=K("size-7 rounded-md flex items-center justify-center transition-colors",L),e[115]=L,e[116]=D):D=e[116];let G;e[117]!==a.enableSounds?(G=a.enableSounds?s.jsx(ss,{size:14}):s.jsx(ns,{size:14}),e[117]=a.enableSounds,e[118]=G):G=e[118];let F;e[119]!==B||e[120]!==R||e[121]!==D||e[122]!==G?(F=s.jsx("button",{type:"button","aria-label":B,onClick:R,className:D,children:G}),e[119]=B,e[120]=R,e[121]=D,e[122]=G,e[123]=F):F=e[123];let E;e[124]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","3.28.3"]}),e[124]=E):E=e[124];let V;e[125]!==F?(V=s.jsxs("div",{className:"flex items-center gap-2",children:[F,E]}),e[125]=F,e[126]=V):V=e[126];let W;e[127]!==O||e[128]!==V?(W=s.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5 border-t border-border/50",children:[O,V]}),e[127]=O,e[128]=V,e[129]=W):W=e[129];let X;e[130]!==z||e[131]!==P||e[132]!==W?(X=s.jsxs("div",{className:"w-60 shrink-0 flex flex-col border-r border-border bg-sidebar/75",children:[z,P,W]}),e[130]=z,e[131]=P,e[132]=W,e[133]=X):X=e[133];const re=String(h);let Y;e[134]!==m||e[135]!==u||e[136]!==d||e[137]!==re?(Y=s.jsx("div",{className:"flex-1 flex flex-col min-w-0 min-h-0 overflow-hidden",children:s.jsx(fs,{orgParam:d,onSelectOrg:u,onCreateOrg:m},re)}),e[134]=m,e[135]=u,e[136]=d,e[137]=re,e[138]=Y):Y=e[138];let oe;return e[139]!==X||e[140]!==Y?(oe=s.jsxs("div",{className:"flex min-h-[380px] w-full overflow-hidden",children:[X,Y]}),e[139]=X,e[140]=Y,e[141]=oe):oe=e[141],oe}function Gi(t){return{...t,enableSounds:!t.enableSounds}}function Bi(){$e.success("User ID copied")}function Li(t){return{...t,enableSounds:!t.enableSounds}}function Hi(){$e.success("User ID copied")}function Ut(){const t=N.c(44),{data:e}=Ce.useSession(),{org:n}=fe(),r=Oe();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org",shouldThrow:!1},t[0]=o):o=t[0];const l=qn(o)?.params.org,[a,c]=Yn(),d=$s(),[u,m]=T.useState(!1),[f,g]=T.useState(!1),h=e?.user,x=h?.image;let p;t[1]!==r?(p=X=>{m(!1),r({to:"/$org",params:{org:X}})},t[1]=r,t[2]=p):p=t[2];const b=p;let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=()=>m(!1),t[3]=j):j=t[3];const y=j;let v;t[4]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(ht,{size:16}),t[4]=v):v=t[4];let _;t[5]!==r||t[6]!==l?(_={key:"preferences",label:"Preferences",icon:v,onClick:()=>{r({to:"/$org/settings/profile",params:{org:l??""}})}},t[5]=r,t[6]=l,t[7]=_):_=t[7];let k;t[8]!==n||t[9]!==r?(k=n?[{key:"install-app",label:"Add to Home Screen",icon:s.jsx(fo,{size:16}),onClick:()=>{r({to:"/$org/install",params:{org:n.slug}})}}]:[],t[8]=n,t[9]=r,t[10]=k):k=t[10];let S;t[11]===Symbol.for("react.memo_cache_sentinel")?(S={key:"terms",label:"Terms of Use",icon:s.jsx(Cr,{size:16}),href:"https://www.decocms.com/terms-of-use",external:!0},t[11]=S):S=t[11];let C;t[12]===Symbol.for("react.memo_cache_sentinel")?(C={key:"privacy",label:"Privacy Policy",icon:s.jsx(jo,{size:16}),href:"https://www.decocms.com/privacy-policy",external:!0},t[12]=C):C=t[12];let I;t[13]===Symbol.for("react.memo_cache_sentinel")?(I={key:"github",label:"decocms/studio",icon:s.jsx(Xn,{className:"w-4 h-4"}),href:"https://github.com/decocms/studio",external:!0},t[13]=I):I=t[13];let $;t[14]===Symbol.for("react.memo_cache_sentinel")?($={key:"community",label:"Community",icon:s.jsx(vo,{size:16}),href:"https://decocms.com/discord",external:!0},t[14]=$):$=t[14];let z;t[15]===Symbol.for("react.memo_cache_sentinel")?(z={key:"homepage",label:"Homepage",icon:s.jsx(xo,{size:16}),href:"https://decocms.com",external:!0},t[15]=z):z=t[15];let A;t[16]!==_||t[17]!==k?(A=[_,...k,S,C,I,$,z],t[16]=_,t[17]=k,t[18]=A):A=t[18];const w=A;let P;t[19]===Symbol.for("react.memo_cache_sentinel")?(P={key:"logout",label:"Sign out",icon:s.jsx(po,{size:16}),onClick:Ki},t[19]=P):P=t[19];const H=P;let O;t[20]===Symbol.for("react.memo_cache_sentinel")?(O={value:"light",icon:s.jsx(go,{size:14}),label:"Light theme"},t[20]=O):O=t[20];let B;t[21]===Symbol.for("react.memo_cache_sentinel")?(B={value:"dark",icon:s.jsx(bo,{size:14}),label:"Dark theme"},t[21]=B):B=t[21];let R;t[22]===Symbol.for("react.memo_cache_sentinel")?(R=[O,B,{value:"system",icon:s.jsx(ho,{size:14}),label:"System theme"}],t[22]=R):R=t[22];const L=R;let D;t[23]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{m(!1),g(!0)},t[23]=D):D=t[23];let G;t[24]!==b||t[25]!==d||t[26]!==w||t[27]!==u||t[28]!==l||t[29]!==a||t[30]!==c||t[31]!==h||t[32]!==x?(G={user:h,userImage:x,menuItems:w,signOutItem:H,themeOptions:L,preferences:a,setPreferences:c,orgParam:l,onSelectOrg:b,onCreateOrg:D,close:y,isMobile:d,open:u},t[24]=b,t[25]=d,t[26]=w,t[27]=u,t[28]=l,t[29]=a,t[30]=c,t[31]=h,t[32]=x,t[33]=G):G=t[33];const F=G;let E;t[34]!==n||t[35]!==d||t[36]!==u||t[37]!==F?(E=d?s.jsxs(As,{open:u,onOpenChange:m,direction:"bottom",children:[s.jsxs("button",{type:"button",onClick:()=>m(!0),className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[s.jsx("div",{className:"shrink-0 size-5 rounded-md flex items-center justify-center border border-border/50 overflow-hidden",style:n?.logo?void 0:Ht(n?.name??""),children:n?.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"font-semibold leading-none text-[8px]",children:(n?.name??"?").slice(0,2).toUpperCase()})}),s.jsx("span",{className:"truncate",children:n?.name??"Account"})]}),s.jsxs(Ts,{className:"h-[80dvh] p-0",children:[s.jsx(Os,{className:"sr-only",children:"Account"}),s.jsx(xs,{...F})]})]}):s.jsxs(Rt,{open:u,onOpenChange:m,children:[s.jsx(ut,{asChild:!0,children:s.jsxs(ke,{tooltip:n?.name??"Account",className:"rounded-md",children:[s.jsx("div",{className:"shrink-0 size-6 rounded-md flex items-center justify-center border border-border/50 overflow-hidden",style:n?.logo?void 0:Ht(n?.name??""),children:n?.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"font-semibold leading-none text-[9px]",children:(n?.name??"?").slice(0,2).toUpperCase()})}),s.jsx("span",{className:"truncate",children:n?.name??"Account"})]})}),s.jsx(Dt,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[520px] p-0 flex max-h-[520px]",onCloseAutoFocus:Ui,children:s.jsx(xs,{...F})})]}),t[34]=n,t[35]=d,t[36]=u,t[37]=F,t[38]=E):E=t[38];let V;t[39]!==f?(V=s.jsx(zi,{open:f,onOpenChange:g}),t[39]=f,t[40]=V):V=t[40];let W;return t[41]!==E||t[42]!==V?(W=s.jsxs(s.Fragment,{children:[E,V]}),t[41]=E,t[42]=V,t[43]=W):W=t[43],W}function Ui(t){return t.preventDefault()}function Ki(){Z("signed_out",{source:"account_popover"}),Qn(),Ce.signOut()}function Vi({invitation:t}){const[e,n]=T.useState(!1),[r,o]=T.useState(!1),i=Jn(),l=async()=>{n(!0);try{const d=await Ce.organization.acceptInvitation({invitationId:t.id});if(d.error){$e.error(d.error.message),n(!1);return}}catch{$e.error("Failed to accept invitation"),n(!1);return}$e.success("Invitation accepted!"),er();let c;try{c=(await Ce.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=c?`/${c}`:"/"},a=async()=>{o(!0);try{const c=await Ce.organization.rejectInvitation({invitationId:t.id});c.error?($e.error(c.error.message),o(!1)):($e.success("Invitation declined"),i.invalidateQueries())}catch{$e.error("Failed to decline invitation"),o(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(At,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:l,disabled:e||r,"aria-label":"Accept invitation",children:s.jsx(Us,{size:14})}),s.jsx(At,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||r,"aria-label":"Decline invitation",children:s.jsx(Vs,{size:14})})]})]})}function Wi(t){const e=N.c(14),{release:n,isSeen:r,onSelect:o}=t;let i;e[0]!==r?(i=!r&&s.jsx("span",{"aria-label":"New release",className:"absolute left-2 top-1/2 -translate-y-1/2 size-1.5 rounded-full bg-primary"}),e[0]=r,e[1]=i):i=e[1];let l;e[2]!==n.eyebrow?(l=n.eyebrow&&s.jsx("p",{className:"text-xs text-muted-foreground",children:n.eyebrow}),e[2]=n.eyebrow,e[3]=l):l=e[3];let a;e[4]!==n.title?(a=s.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[4]=n.title,e[5]=a):a=e[5];let c;e[6]!==l||e[7]!==a?(c=s.jsxs("div",{className:"flex-1 min-w-0",children:[l,a]}),e[6]=l,e[7]=a,e[8]=c):c=e[8];let d;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Xt,{size:16,className:"text-muted-foreground shrink-0"}),e[9]=d):d=e[9];let u;return e[10]!==o||e[11]!==i||e[12]!==c?(u=s.jsxs("button",{type:"button",onClick:o,className:"relative w-full flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors text-left",children:[i,c,d]}),e[10]=o,e[11]=i,e[12]=c,e[13]=u):u=e[13],u}function qi(){const t=T.useContext(tr),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(r=>r.status==="pending"&&new Date(r.expiresAt)>new Date)}function ln(){const t=N.c(10),{isSeen:e,markSeen:n,unseenCount:r}=Kr(),o=qi();let i;if(t[0]!==e||t[1]!==o){const c=[...o].sort(Qi).map(Xi);let d;t[3]!==e?(d=m=>({type:"release",release:m,isSeen:e(m.id)}),t[3]=e,t[4]=d):d=t[4];const u=[...Vr].sort(Yi).map(d);i=[...c,...u],t[0]=e,t[1]=o,t[2]=i}else i=t[2];const l=r+o.length;let a;return t[5]!==n||t[6]!==o||t[7]!==i||t[8]!==l?(a={items:i,pendingInvitations:o,redDotCount:l,markReleaseSeen:n},t[5]=n,t[6]=o,t[7]=i,t[8]=l,t[9]=a):a=t[9],a}function Yi(t,e){return new Date(e.date).getTime()-new Date(t.date).getTime()}function Xi(t){return{type:"invitation",invitation:t}}function Qi(t,e){return new Date(t.expiresAt).getTime()-new Date(e.expiresAt).getTime()}class an extends T.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,n){}render(){return this.state.hasError?null:this.props.children}}function cn(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Zi(){const t=N.c(25),e=Oe(),{org:n}=fe();let r;t[0]!==n.id||t[1]!==n.slug?(r={connectionId:zs,orgId:n.id,orgSlug:n.slug},t[0]=n.id,t[1]=n.slug,t[2]=r):r=t[2];const o=Rs(r);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i={providerId:"deco"},t[3]=i):i=t[3];let l;t[4]!==o?(l={client:o,toolName:"AI_PROVIDER_CREDITS",toolArguments:i,staleTime:6e4,select:Ji},t[4]=o,t[5]=l):l=t[5];const{data:a,isPending:c,isError:d}=qs(l),u=a?.balanceCents!=null?a.balanceCents/100:null;let m;t[6]!==u||t[7]!==d||t[8]!==c?(m=c||d||u==null?"Credits":`Credits: $${u.toFixed(2)}`,t[6]=u,t[7]=d,t[8]=c,t[9]=m):m=t[9];const f=m;let g;t[10]!==u?(g=K(u!=null&&cn(u)),t[10]=u,t[11]=g):g=t[11];let h;t[12]!==e||t[13]!==n.slug?(h=()=>e({to:"/$org/settings/ai-providers",params:{org:n.slug}}),t[12]=e,t[13]=n.slug,t[14]=h):h=t[14];let x;t[15]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Es,{}),t[15]=x):x=t[15];let p;t[16]!==u?(p=u!=null?`$${u.toFixed(2)}`:"Credits",t[16]=u,t[17]=p):p=t[17];let b;t[18]!==p?(b=s.jsx("span",{children:p}),t[18]=p,t[19]=b):b=t[19];let j;return t[20]!==g||t[21]!==h||t[22]!==b||t[23]!==f?(j=s.jsx(Ae,{children:s.jsx(xe,{children:s.jsxs(ke,{tooltip:f,className:g,onClick:h,children:[x,b]})})}),t[20]=g,t[21]=h,t[22]=b,t[23]=f,t[24]=j):j=t[24],j}function Ji(t){return t.structuredContent}function el(){const t=N.c(1);if(!Ys().some(tl))return null;let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Zi,{}),t[0]=r):r=t[0],r}function tl(t){return t.providerId==="deco"}function sl(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(an,{children:s.jsx(T.Suspense,{fallback:null,children:s.jsx(el,{})})}),t[0]=e):e=t[0],e}function nl(){const t=N.c(25),e=Oe(),{org:n}=fe();let r;t[0]!==n.id||t[1]!==n.slug?(r={connectionId:zs,orgId:n.id,orgSlug:n.slug},t[0]=n.id,t[1]=n.slug,t[2]=r):r=t[2];const o=Rs(r);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i={providerId:"deco"},t[3]=i):i=t[3];let l;t[4]!==o?(l={client:o,toolName:"AI_PROVIDER_CREDITS",toolArguments:i,staleTime:6e4,select:rl},t[4]=o,t[5]=l):l=t[5];const{data:a,isPending:c,isError:d}=qs(l),u=a?.balanceCents!=null?a.balanceCents/100:null;let m;t[6]!==u||t[7]!==d||t[8]!==c?(m=c||d||u==null?"Credits":`Credits: $${u.toFixed(2)}`,t[6]=u,t[7]=d,t[8]=c,t[9]=m):m=t[9];const f=m;let g;t[10]!==e||t[11]!==n.slug?(g=()=>e({to:"/$org/settings/ai-providers",params:{org:n.slug}}),t[10]=e,t[11]=n.slug,t[12]=g):g=t[12];let h;t[13]!==u?(h=K(u!=null&&cn(u)),t[13]=u,t[14]=h):h=t[14];let x;t[15]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Es,{className:"size-4"}),t[15]=x):x=t[15];let p;t[16]!==g||t[17]!==h||t[18]!==f?(p=s.jsx(Ve,{asChild:!0,children:s.jsx(we,{"aria-label":f,onClick:g,className:h,children:x})}),t[16]=g,t[17]=h,t[18]=f,t[19]=p):p=t[19];let b;t[20]!==f?(b=s.jsx(We,{side:"top",children:f}),t[20]=f,t[21]=b):b=t[21];let j;return t[22]!==p||t[23]!==b?(j=s.jsxs(qe,{delayDuration:300,children:[p,b]}),t[22]=p,t[23]=b,t[24]=j):j=t[24],j}function rl(t){return t.structuredContent}function ol(){const t=N.c(1);if(!Ys().some(il))return null;let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(nl,{}),t[0]=r):r=t[0],r}function il(t){return t.providerId==="deco"}function ll(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(an,{children:s.jsx(T.Suspense,{fallback:null,children:s.jsx(ol,{})})}),t[0]=e):e=t[0],e}function dn(t){const e=N.c(15),{children:n}=t,{items:r,markReleaseSeen:o}=ln(),[i,l]=T.useState(null);let a;if(e[0]!==r||e[1]!==i){let x;e[3]!==i?(x=p=>p.type==="release"&&p.release.id===i,e[3]=i,e[4]=x):x=e[4],a=r.find(x),e[0]=r,e[1]=i,e[2]=a}else a=e[2];const c=a,d=c?.type==="release"?c.release:null;let u;e[5]!==o?(u=x=>{l(x),o(x)},e[5]=o,e[6]=u):u=e[6];const m=u;let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=x=>{x||l(null)},e[7]=f):f=e[7];let g;e[8]!==m||e[9]!==r||e[10]!==d?(g=s.jsx(Dt,{side:"right",align:"start",sideOffset:16,collisionPadding:16,className:"w-[min(400px,calc(100vw-2rem))] p-0 h-[min(650px,calc(100dvh-4rem))] flex flex-col",children:d?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-2 px-3 py-3 border-b border-border shrink-0",children:[s.jsx(At,{size:"icon",variant:"ghost","aria-label":"Back to inbox",className:"size-7 text-muted-foreground",onClick:()=>l(null),children:s.jsx(Do,{size:16})}),s.jsx("h3",{className:"text-sm font-medium truncate",children:d.title})]}),s.jsx("div",{className:"overflow-y-auto flex-1 p-5",children:s.jsx(Wr,{release:d})})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),r.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(Yt,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Nothing here yet"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Invitations and release updates will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:r.map(x=>x.type==="invitation"?s.jsx(Vi,{invitation:x.invitation},`inv-${x.invitation.id}`):s.jsx(Wi,{release:x.release,isSeen:x.isSeen,onSelect:()=>m(x.release.id)},`rel-${x.release.id}`))})]})}),e[8]=m,e[9]=r,e[10]=d,e[11]=g):g=e[11];let h;return e[12]!==n||e[13]!==g?(h=s.jsxs(Rt,{onOpenChange:f,children:[n,g]}),e[12]=n,e[13]=g,e[14]=h):h=e[14],h}function un(){const{redDotCount:t}=ln();return t>0}function al(){const t=N.c(6),e=un();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Yt,{}),t[0]=n):n=t[0];let r;t[1]!==e?(r=e&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 pointer-events-none"}),t[1]=e,t[2]=r):r=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("span",{children:"Inbox"}),t[3]=o):o=t[3];let i;return t[4]!==r?(i=s.jsx(dn,{children:s.jsx(ut,{asChild:!0,children:s.jsxs(ke,{tooltip:"Inbox",className:"relative",children:[n,r,o]})})}),t[4]=r,t[5]=i):i=t[5],i}function cl(){const t=N.c(8),e=un();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Yt,{className:"size-4"}),t[0]=n):n=t[0];let r;t[1]!==e?(r=e&&s.jsx("span",{className:"absolute top-0.5 right-0.5 size-2 rounded-full bg-red-500 pointer-events-none"}),t[1]=e,t[2]=r):r=t[2];let o;t[3]!==r?(o=s.jsx(ut,{asChild:!0,children:s.jsx(Ve,{asChild:!0,children:s.jsxs(we,{"aria-label":"Inbox",children:[n,r]})})}),t[3]=r,t[4]=o):o=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(We,{side:"top",children:"Inbox"}),t[5]=i):i=t[5];let l;return t[6]!==o?(l=s.jsx(dn,{children:s.jsxs(qe,{delayDuration:300,children:[o,i]})}),t[6]=o,t[7]=l):l=t[7],l}function dl(){const t=N.c(3),[e,n]=T.useState(!1);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(ke,{tooltip:"Connections",onClick:()=>{Z("connections_dialog_opened",{source:"sidebar_footer",mode:"browse"}),n(!0)},children:[s.jsx(Ks,{}),s.jsx("span",{children:"Connections"})]}),t[0]=r):r=t[0];let o;return t[1]!==e?(o=s.jsxs(s.Fragment,{children:[r,s.jsx(Ws,{mode:"browse",open:e,onOpenChange:n,defaultTab:"all"})]}),t[1]=e,t[2]=o):o=t[2],o}function ul(){const t=N.c(3),[e,n]=T.useState(!1);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(qe,{delayDuration:300,children:[s.jsx(Ve,{asChild:!0,children:s.jsx(we,{"aria-label":"Connections",onClick:()=>{Z("connections_dialog_opened",{source:"sidebar_footer",mode:"browse"}),n(!0)},children:s.jsx(Ks,{className:"size-4"})})}),s.jsx(We,{side:"top",children:"Connections"})]}),t[0]=r):r=t[0];let o;return t[1]!==e?(o=s.jsxs(s.Fragment,{children:[r,s.jsx(Ws,{mode:"browse",open:e,onOpenChange:n,defaultTab:"all"})]}),t[1]=e,t[2]=o):o=t[2],o}function ml(){const t=N.c(7),e=Oe(),{org:n}=fe();let r;t[0]!==e||t[1]!==n.slug?(r=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=r):r=t[2];let o,i;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ht,{}),i=s.jsx("span",{children:"Settings"}),t[3]=o,t[4]=i):(o=t[3],i=t[4]);let l;return t[5]!==r?(l=s.jsxs(ke,{tooltip:"Settings",onClick:r,children:[o,i]}),t[5]=r,t[6]=l):l=t[6],l}function fl(){const t=N.c(9),e=Oe(),{org:n}=fe();let r;t[0]!==e||t[1]!==n.slug?(r=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=r):r=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(ht,{className:"size-4"}),t[3]=o):o=t[3];let i;t[4]!==r?(i=s.jsx(Ve,{asChild:!0,children:s.jsx(we,{"aria-label":"Settings",onClick:r,children:o})}),t[4]=r,t[5]=i):i=t[5];let l;t[6]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(We,{side:"top",children:"Settings"}),t[6]=l):l=t[6];let a;return t[7]!==i?(a=s.jsxs(qe,{delayDuration:300,children:[i,l]}),t[7]=i,t[8]=a):a=t[8],a}function xl(){const t=N.c(6),{state:e}=Xe();if(e==="collapsed"){let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(sl,{}),t[0]=o):o=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(xe,{children:s.jsx(dl,{})}),t[1]=i):i=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(xe,{children:s.jsx(al,{})}),t[2]=l):l=t[2];let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(xe,{children:s.jsx(ml,{})}),t[3]=a):a=t[3];let c;return t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(Lt,{className:"px-2 pb-3 gap-1",children:[o,s.jsxs(Ae,{children:[i,l,a,s.jsx(xe,{children:s.jsx(Ut,{})})]})]}),t[4]=c):c=t[4],c}let r;return t[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Lt,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Ae,{children:s.jsx(xe,{children:s.jsx(Ut,{})})})}),s.jsx(fl,{}),s.jsx(cl,{}),s.jsx(ul,{}),s.jsx(ll,{})]})}),t[5]=r):r=t[5],r}function pl(){const t=N.c(8),e=Oe(),{org:n}=fe(),{setOpenMobile:r}=Xe();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Ae,{children:s.jsx(xe,{children:s.jsx(Ut,{})})})}),t[0]=o):o=t[0];let i;t[1]!==e||t[2]!==n.slug||t[3]!==r?(i=()=>{e({to:"/$org/settings",params:{org:n.slug}}),r(!1)},t[1]=e,t[2]=n.slug,t[3]=r,t[4]=i):i=t[4];let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ht,{className:"size-4"}),t[5]=l):l=t[5];let a;return t[6]!==i?(a=s.jsx(Lt,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[o,s.jsx(we,{"aria-label":"Settings",onClick:i,children:l})]})}),t[6]=i,t[7]=a):a=t[7],a}function hl(t,e){return t.filter(n=>!(e.ownerUserId!==void 0&&n.created_by!==e.ownerUserId||e.hasTrigger!==void 0&&!!n.trigger_id!==e.hasTrigger||!!n.hidden!==e.hidden))}function gl(t){const e=N.c(8),{virtualMcpId:n,size:r,showAutomationBadge:o}=t,i=r===void 0?"sm":r;let l;e[0]!==i||e[1]!==n?(l=n?s.jsx(bl,{virtualMcpId:n,size:i}):s.jsx(Te,{icon:null,name:"?",size:i}),e[0]=i,e[1]=n,e[2]=l):l=e[2];let a;e[3]!==o?(a=o&&s.jsx("span",{"aria-label":"Automation-triggered",className:"absolute -bottom-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full bg-blue-500 border border-blue-600 text-white",children:s.jsx(Zs,{size:10,className:"text-white"})}),e[3]=o,e[4]=a):a=e[4];let c;return e[5]!==l||e[6]!==a?(c=s.jsxs("div",{className:"relative shrink-0",children:[l,a]}),e[5]=l,e[6]=a,e[7]=c):c=e[7],c}function bl(t){const e=N.c(6),{virtualMcpId:n,size:r}=t,o=pt(n);if(!o){let a;return e[0]!==r?(a=s.jsx(Te,{icon:null,name:"?",size:r}),e[0]=r,e[1]=a):a=e[1],a}const i=o.icon??null;let l;return e[2]!==o.title||e[3]!==r||e[4]!==i?(l=s.jsx(Te,{icon:i,name:o.title,size:r}),e[2]=o.title,e[3]=r,e[4]=i,e[5]=l):l=e[5],l}function jl(t){const e=N.c(36),{open:n,onOpenChange:r}=t,[o,i]=T.useState(""),{org:l}=fe(),{setTaskId:a}=Bs(),c=Qs();let d,u,m;e[0]!==l.id||e[1]!==o?(m=o.trim(),u=qt,d=Wt.globalSearch(l.id,m),e[0]=l.id,e[1]=o,e[2]=d,e[3]=u,e[4]=m):(d=e[2],u=e[3],m=e[4]);const f=n&&m.length>0;let g;e[5]!==c||e[6]!==m?(g=async()=>await c.call("GLOBAL_SEARCH",{query:m,limit:20}),e[5]=c,e[6]=m,e[7]=g):g=e[7];let h;e[8]!==d||e[9]!==f||e[10]!==g?(h={queryKey:d,enabled:f,queryFn:g,staleTime:1e4},e[8]=d,e[9]=f,e[10]=g,e[11]=h):h=e[11];const{data:x,isFetching:p}=u(h);let b;e[12]!==x?.items?(b=x?.items??[],e[12]=x?.items,e[13]=b):b=e[13];const j=b;let y;e[14]!==r?(y=w=>{w||i(""),r(w)},e[14]=r,e[15]=y):y=e[15];const v=y;let _;e[16]!==v||e[17]!==a?(_=w=>{v(!1),a(w.id,w.virtual_mcp_id??void 0)},e[16]=v,e[17]=a,e[18]=_):_=e[18];const k=_;let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsxs(Zo,{className:"sr-only",children:[s.jsx(Jo,{children:"Search"}),s.jsx(ei,{children:"Search across your organization's resources."})]}),e[19]=S):S=e[19];let C;e[20]!==o?(C=s.jsx(oi,{value:o,onValueChange:i,placeholder:"Search..."}),e[20]=o,e[21]=C):C=e[21];let I;e[22]!==k||e[23]!==p||e[24]!==j||e[25]!==m?(I=m?p&&j.length===0?s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Searching…"}):j.length===0?s.jsx(ni,{children:"No results."}):j.map(w=>w.type==="thread"?s.jsxs(ri,{value:`thread:${w.id}:${w.title}`,onSelect:()=>k(w),className:"gap-2.5",children:[s.jsx(gl,{virtualMcpId:w.virtual_mcp_id,size:"xs"}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("div",{className:"text-sm text-foreground truncate",children:w.title||"Untitled thread"})}),s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:new Date(w.updated_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]},`thread:${w.id}`):null):s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Start typing to search."}),e[22]=k,e[23]=p,e[24]=j,e[25]=m,e[26]=I):I=e[26];let $;e[27]!==I?($=s.jsx(ii,{children:I}),e[27]=I,e[28]=$):$=e[28];let z;e[29]!==C||e[30]!==$?(z=s.jsxs(ti,{className:"overflow-hidden p-0",closeButtonClassName:"hidden",children:[S,s.jsxs(li,{shouldFilter:!1,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:[C,$]})]}),e[29]=C,e[30]=$,e[31]=z):z=e[31];let A;return e[32]!==v||e[33]!==n||e[34]!==z?(A=s.jsx(si,{open:n,onOpenChange:v,children:z}),e[32]=v,e[33]=n,e[34]=z,e[35]=A):A=e[35],A}function vl(t){return t==="owner"||t==="admin"}function yl(){const t=N.c(11),{locator:e}=fe(),n=ai(),{data:r}=Ce.useSession(),o=r?.user?.id;let i;t[0]!==e?(i=Wt.members(e),t[0]=e,t[1]=i):i=t[1];let l;t[2]!==n?(l=()=>n.organization.listMembers(),t[2]=n,t[3]=l):l=t[3];const a=!!o;let c;t[4]!==i||t[5]!==l||t[6]!==a?(c={queryKey:i,queryFn:l,enabled:a,staleTime:6e4},t[4]=i,t[5]=l,t[6]=a,t[7]=c):c=t[7];const{data:d}=qt(c);let u;if(t[8]!==d?.data?.members||t[9]!==o){const f=(d?.data?.members??[]).find(g=>g.userId===o)?.role;u=vl(f??void 0),t[8]=d?.data?.members,t[9]=o,t[10]=u}else u=t[10];return u}var Qt="ContextMenu",[_l]=dr(Qt,[ws]),ce=ws(),[Sl,mn]=_l(Qt),fn=t=>{const{__scopeContextMenu:e,children:n,onOpenChange:r,dir:o,modal:i=!0}=t,[l,a]=T.useState(!1),c=ce(e),d=ar(r),u=T.useCallback(m=>{a(m),d(m)},[d]);return s.jsx(Sl,{scope:e,open:l,onOpenChange:u,modal:i,children:s.jsx(cr,{...c,dir:o,open:l,onOpenChange:u,modal:i,children:n})})};fn.displayName=Qt;var xn="ContextMenuTrigger",pn=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=t,i=mn(xn,n),l=ce(n),a=T.useRef({x:0,y:0}),c=T.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...a.current})}),d=T.useRef(0),u=T.useCallback(()=>window.clearTimeout(d.current),[]),m=f=>{a.current={x:f.clientX,y:f.clientY},i.onOpenChange(!0)};return T.useEffect(()=>u,[u]),T.useEffect(()=>{r&&u()},[r,u]),s.jsxs(s.Fragment,{children:[s.jsx(sr,{...l,virtualRef:c}),s.jsx(nr.span,{"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:e,style:{WebkitTouchCallout:"none",...t.style},onContextMenu:r?t.onContextMenu:xt(t.onContextMenu,f=>{u(),m(f),f.preventDefault()}),onPointerDown:r?t.onPointerDown:xt(t.onPointerDown,kt(f=>{u(),d.current=window.setTimeout(()=>m(f),700)})),onPointerMove:r?t.onPointerMove:xt(t.onPointerMove,kt(u)),onPointerCancel:r?t.onPointerCancel:xt(t.onPointerCancel,kt(u)),onPointerUp:r?t.onPointerUp:xt(t.onPointerUp,kt(u))})]})});pn.displayName=xn;var Nl="ContextMenuPortal",hn=t=>{const{__scopeContextMenu:e,...n}=t,r=ce(e);return s.jsx(ir,{...r,...n})};hn.displayName=Nl;var gn="ContextMenuContent",bn=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=mn(gn,n),i=ce(n),l=T.useRef(!1);return s.jsx(lr,{...i,...r,ref:e,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:a=>{t.onCloseAutoFocus?.(a),!a.defaultPrevented&&l.current&&a.preventDefault(),l.current=!1},onInteractOutside:a=>{t.onInteractOutside?.(a),!a.defaultPrevented&&!o.modal&&(l.current=!0)},style:{...t.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)"}})});bn.displayName=gn;var Cl="ContextMenuGroup",wl=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(ur,{...o,...r,ref:e})});wl.displayName=Cl;var kl="ContextMenuLabel",Il=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(mr,{...o,...r,ref:e})});Il.displayName=kl;var Ml="ContextMenuItem",jn=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(rr,{...o,...r,ref:e})});jn.displayName=Ml;var $l="ContextMenuCheckboxItem",Al=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(fr,{...o,...r,ref:e})});Al.displayName=$l;var Tl="ContextMenuRadioGroup",Ol=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(xr,{...o,...r,ref:e})});Ol.displayName=Tl;var Pl="ContextMenuRadioItem",zl=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(pr,{...o,...r,ref:e})});zl.displayName=Pl;var Rl="ContextMenuItemIndicator",Dl=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(hr,{...o,...r,ref:e})});Dl.displayName=Rl;var El="ContextMenuSeparator",vn=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(or,{...o,...r,ref:e})});vn.displayName=El;var Fl="ContextMenuArrow",Gl=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(gr,{...o,...r,ref:e})});Gl.displayName=Fl;var Bl="ContextMenuSubTrigger",Ll=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(br,{...o,...r,ref:e})});Ll.displayName=Bl;var Hl="ContextMenuSubContent",Ul=T.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(jr,{...o,...r,ref:e,style:{...t.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)"}})});Ul.displayName=Hl;function kt(t){return e=>e.pointerType!=="mouse"?t(e):void 0}var Kl=fn,Vl=pn,Wl=hn,ql=bn,Yl=jn,Xl=vn;function yn(t){const e=N.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=s.jsx(Kl,{"data-slot":"context-menu",...n}),e[2]=n,e[3]=r):r=e[3],r}function _n(t){const e=N.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=s.jsx(Vl,{"data-slot":"context-menu-trigger",...n}),e[2]=n,e[3]=r):r=e[3],r}function Sn(t){const e=N.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=K("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",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==r||e[6]!==o?(i=s.jsx(Wl,{children:s.jsx(ql,{"data-slot":"context-menu-content",className:o,...r})}),e[5]=r,e[6]=o,e[7]=i):i=e[7],i}function It(t){const e=N.c(12);let n,r,o,i;e[0]!==t?({className:n,inset:r,variant:i,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i):(n=e[1],r=e[2],o=e[3],i=e[4]);const l=i===void 0?"default":i;let a;e[5]!==n?(a=K("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",n),e[5]=n,e[6]=a):a=e[6];let c;return e[7]!==r||e[8]!==o||e[9]!==a||e[10]!==l?(c=s.jsx(Yl,{"data-slot":"context-menu-item","data-inset":r,"data-variant":l,className:a,...o}),e[7]=r,e[8]=o,e[9]=a,e[10]=l,e[11]=c):c=e[11],c}function ps(t){const e=N.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=K("bg-border -mx-1 my-1 h-px",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==r||e[6]!==o?(i=s.jsx(Xl,{"data-slot":"context-menu-separator",className:o,...r}),e[5]=r,e[6]=o,e[7]=i):i=e[7],i}function Nn(t){const e=N.c(26),{virtualMcpId:n,isOrgPinned:r,canManageOrgPin:o,onNewTaskInGroup:i,onShowSettings:l,onToggleOrgPin:a,onHideGroup:c}=t;let d;e[0]!==i||e[1]!==n?(d=()=>i(n),e[0]=i,e[1]=n,e[2]=d):d=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Ne,{size:14,className:"mr-2"}),e[3]=u):u=e[3];let m;e[4]!==d?(m=s.jsxs(It,{onSelect:d,children:[u,"New task"]}),e[4]=d,e[5]=m):m=e[5];let f;e[6]!==l||e[7]!==n?(f=()=>l(n),e[6]=l,e[7]=n,e[8]=f):f=e[8];let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(ht,{size:14,className:"mr-2"}),e[9]=g):g=e[9];let h;e[10]!==f?(h=s.jsxs(It,{onSelect:f,children:[g,"Settings"]}),e[10]=f,e[11]=h):h=e[11];let x;e[12]!==o||e[13]!==r||e[14]!==a||e[15]!==n?(x=o&&s.jsxs(s.Fragment,{children:[s.jsx(ps,{}),s.jsxs(It,{onSelect:()=>a(n,!r),children:[s.jsx(Gr,{size:14,className:"mr-2"}),r?"Unpin for all members":"Pin for all members"]})]}),e[12]=o,e[13]=r,e[14]=a,e[15]=n,e[16]=x):x=e[16];let p;e[17]!==r||e[18]!==c||e[19]!==n?(p=!r&&s.jsxs(s.Fragment,{children:[s.jsx(ps,{}),s.jsxs(It,{onSelect:()=>c(n),children:[s.jsx(Eo,{size:14,className:"mr-2"}),"Hide"]})]}),e[17]=r,e[18]=c,e[19]=n,e[20]=p):p=e[20];let b;return e[21]!==m||e[22]!==h||e[23]!==x||e[24]!==p?(b=s.jsxs(s.Fragment,{children:[m,h,x,p]}),e[21]=m,e[22]=h,e[23]=x,e[24]=p,e[25]=b):b=e[25],b}function Ql(t){return t==="ephemeral"||t.startsWith("thread:")}const hs=new Map;function Cn(t){let e=hs.get(t);return e||(e={tick:0,subscribers:new Set,intervalId:null},hs.set(t,e)),e}function Zl(t,e){const n=Cn(t);return n.subscribers.add(e),n.intervalId===null&&(n.intervalId=setInterval(()=>{n.tick+=1;for(const r of n.subscribers)r()},t)),()=>{n.subscribers.delete(e),n.subscribers.size===0&&n.intervalId!==null&&(clearInterval(n.intervalId),n.intervalId=null)}}function Jl(t){const e=N.c(3),n=t;let r,o;return e[0]!==n?(r=i=>Zl(n,i),o=()=>Cn(n).tick,e[0]=n,e[1]=r,e[2]=o):(r=e[1],o=e[2]),T.useSyncExternalStore(r,o,ea)}function ea(){return 0}function Et(t){const e=N.c(45),{task:n,isActive:r,onClick:o,onArchive:i,showAutomationBadge:l,showAgentIcon:a,hideStatusIdle:c}=t,d=mi(n.status),u=d.icon,m=n.metadata?.kind==="tool_call_run",f=pt(m?void 0:n.virtual_mcp_id);let g;e[0]!==f?(g=Fo(f),e[0]=f,e[1]=g):g=e[1];const h=g;Jl(6e4);const x=l||!!n.trigger_id,p=n.id,b="button",j=0;let y;e[2]!==o?(y=F=>{F.target===F.currentTarget&&(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),o())},e[2]=o,e[3]=y):y=e[3];const v=r?"bg-accent text-accent-foreground":"hover:bg-accent/60";let _;e[4]!==v?(_=K("group/row flex items-center gap-2 px-2 py-1.5 rounded-md cursor-pointer transition-colors","focus-visible:outline-none focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50",v),e[4]=v,e[5]=_):_=e[5];let k;e[6]!==m||e[7]!==a||e[8]!==f?.icon||e[9]!==f?.title?(k=a&&!m&&s.jsx(Te,{icon:f?.icon??null,name:f?.title??"?",size:"2xs"}),e[6]=m,e[7]=a,e[8]=f?.icon,e[9]=f?.title,e[10]=k):k=e[10];let S;e[11]!==x?(S=x&&s.jsx(Zs,{size:12,"aria-label":"Automation-triggered",className:"shrink-0 text-blue-500"}),e[11]=x,e[12]=S):S=e[12];const C=n.title||"Untitled task";let I;e[13]!==C?(I=s.jsx("div",{className:"text-sm text-foreground truncate",children:C}),e[13]=C,e[14]=I):I=e[14];let $;e[15]!==I||e[16]!==S?($=s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[S,I]}),e[15]=I,e[16]=S,e[17]=$):$=e[17];let z;e[18]!==h||e[19]!==r||e[20]!==n.branch||e[21]!==n.updated_at?(z=n.updated_at&&s.jsxs("div",{className:K("flex items-center gap-1 text-[11px] min-w-0",r?"text-accent-foreground/70":"text-muted-foreground/60"),children:[n.branch&&!Ql(n.branch)?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"truncate font-mono",children:n.branch}),s.jsx("span",{className:"shrink-0",children:"·"})]}):h?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"truncate",children:[h.owner,"/",h.name]}),s.jsx("span",{className:"shrink-0",children:"·"})]}):null,s.jsx("span",{className:"shrink-0",children:xi(new Date(n.updated_at))})]}),e[18]=h,e[19]=r,e[20]=n.branch,e[21]=n.updated_at,e[22]=z):z=e[22];let A;e[23]!==$||e[24]!==z?(A=s.jsxs("div",{className:"flex-1 min-w-0",children:[$,z]}),e[23]=$,e[24]=z,e[25]=A):A=e[25];const w="shrink-0 grid [grid-template-areas:'slot'] items-center justify-items-center",P=!c&&s.jsx("span",{className:"[grid-area:slot] flex size-7 items-center justify-center pointer-events-none transition-opacity group-hover/row:opacity-0","aria-label":d.label,children:s.jsx(u,{size:14,className:K(d.iconClassName,n.status==="in_progress"&&"animate-spin")})});let H;e[26]!==i?(H=F=>{F.stopPropagation(),i()},e[26]=i,e[27]=H):H=e[27];let O;e[28]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(vr,{size:14}),e[28]=O):O=e[28];let B;e[29]!==H?(B=s.jsx(Ve,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":"Archive task",onClick:H,className:"[grid-area:slot] opacity-0 pointer-events-none group-hover/row:opacity-100 group-hover/row:pointer-events-auto focus-visible:opacity-100 focus-visible:pointer-events-auto transition-opacity flex size-7 items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:O})}),e[29]=H,e[30]=B):B=e[30];let R;e[31]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(We,{side:"right",children:"Archive"}),e[31]=R):R=e[31];let L;e[32]!==B?(L=s.jsxs(qe,{children:[B,R]}),e[32]=B,e[33]=L):L=e[33];let D;e[34]!==P||e[35]!==L?(D=s.jsxs("div",{className:w,children:[P,L]}),e[34]=P,e[35]=L,e[36]=D):D=e[36];let G;return e[37]!==o||e[38]!==A||e[39]!==D||e[40]!==y||e[41]!==_||e[42]!==k||e[43]!==n.id?(G=s.jsxs("div",{"data-task-id":p,role:b,tabIndex:j,onClick:o,onKeyDown:y,className:_,children:[k,A,D]}),e[37]=o,e[38]=A,e[39]=D,e[40]=y,e[41]=_,e[42]=k,e[43]=n.id,e[44]=G):G=e[44],G}function Zt(t){const e=N.c(10),{onClick:n,isFetching:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=K("flex items-center gap-2 px-2 py-1.5 rounded-md text-sm text-muted-foreground","hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50","transition-colors disabled:cursor-progress disabled:opacity-60"),e[0]=o):o=e[0];let i;e[1]!==r?(i=r&&s.jsx(Vt,{size:14,className:"animate-spin"}),e[1]=r,e[2]=i):i=e[2];const l=r?"Loading…":"Show more";let a;e[3]!==l?(a=s.jsx("span",{children:l}),e[3]=l,e[4]=a):a=e[4];let c;return e[5]!==r||e[6]!==n||e[7]!==i||e[8]!==a?(c=s.jsxs("button",{type:"button","aria-label":"Show more tasks",onClick:n,disabled:r,className:o,children:[i,a]}),e[5]=r,e[6]=n,e[7]=i,e[8]=a,e[9]=c):c=e[9],c}function ta(t,e,n,r){return[t,e,n,r.type,r.member,r.currentUserId??""].join("|")}function sa(t){return t.member==="mine"&&!t.currentUserId}const wn=4;let $t=0;const Kt=[];function na(){for(;$t<wn&&Kt.length>0;){const t=Kt.shift();t&&t()}}function kn(t){return new Promise((e,n)=>{const r=()=>{$t++,t().then(e,n).finally(()=>{$t--,na()})};$t<wn?r():Kt.push(r)})}const Ft=10;function gs(t,e,n,r,o){const i={hidden:!1};t==="agent"&&(i.virtual_mcp_id=e),r.member==="mine"&&r.currentUserId&&(i.created_by=r.currentUserId),r.type==="automation"&&(i.has_trigger=!0),r.type==="manual"&&(i.has_trigger=!1);const l={where:i,limit:o,offset:n,orderBy:[{field:["updated_at"],direction:"desc"}]};return t==="status"&&(l.status=e),l}function ra(t,e,n,r){let o=0;for(const i of t)Jt(i,e,n,r)&&o++;return o}function Bt(t,e,n,r){return ra(t,e,n,r)}function oa(t,e,n){const r=new Map;for(const o of t){const i=o.virtual_mcp_id;i&&Jt(o,e,i,n)&&r.set(i,(r.get(i)??0)+1)}return r}function ia(t,e){return!!(t>=Ft||t===0&&e)}function bs(t,e){return t<e}function la(t,e){return e===!1?!1:e===!0?!0:t}function Jt(t,e,n,r){return!(t.hidden||e==="agent"&&t.virtual_mcp_id!==n||e==="status"&&(t.status??"completed")!==n||r.member==="mine"&&r.currentUserId&&t.created_by!==r.currentUserId||r.type==="automation"&&!t.trigger_id||r.type==="manual"&&t.trigger_id)}const Ot=new Map,Mt=new Map;function aa(t,e){return e?t>=Ft?!0:null:!1}function js(t){return Ot.get(t)}function ca(t,e){Ot.set(t,e)}function da(t,e,n){const r=Ot.get(t);if(r!==void 0){n(r);return}let o=Mt.get(t);o||(o=kn(e).then(i=>(Ot.set(t,i),Mt.delete(t),i)).catch(()=>(Mt.delete(t),Promise.reject(new Error("group probe failed")))),Mt.set(t,o)),o.then(n,()=>n(!1))}function vs(t){const e=t,n=Array.isArray(e.items)?e.items:[];return{items:n,hasMore:e.hasMore??n.length===Ft,totalCount:typeof e.totalCount=="number"?e.totalCount:void 0}}function ua(t,e,n,r,o){let i=0;for(const l of t)e.has(l.id)||Jt(l,n,r,o)&&i++;return i}function es(t,e,n,r){const o=N.c(8),{org:i}=fe(),l=ta(i.id,t,e,n);let a;o[0]!==n?(a=sa(n),o[0]=n,o[1]=a):a=o[1];const c=a,[d,u]=T.useState({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:null,serverHasMore:null});d.identity!==l&&u({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:null,serverHasMore:null});const m=Hr(),{threads:f,hasMore:g}=Gs(),h=r??Bt(f,t,e,n),x=ia(h,g),p=aa(h,g),b=Qs();if(d.identity===l&&d.serverHasMore===null){const S=p??js(l);S!==void 0&&u({isFetching:!1,isProbing:!1,identity:l,probeSubscribedIdentity:d.probeSubscribedIdentity,serverHasMore:S})}!c&&d.identity===l&&d.serverHasMore===null&&p===null&&js(l)===void 0&&d.probeSubscribedIdentity!==l&&(u(S=>S.identity===l?{...S,isProbing:!0,probeSubscribedIdentity:l}:S),da(l,async()=>{const S=gs(t,e,0,n,1),C=await b.call("COLLECTION_THREADS_LIST",S),{totalCount:I}=vs(C),$=Bt(m.threads.get(),t,e,n);return I===void 0?!1:bs($,I)},S=>{u(C=>C.identity!==l?C:{...C,isProbing:!1,serverHasMore:S})}));const y=async function(){if(d.isFetching||d.isProbing||c)return;const C=l;u(I=>I.identity===C?{...I,isFetching:!0}:I);try{const I=Bt(f,t,e,n),$=gs(t,e,I,n,Ft),z=await kn(()=>b.call("COLLECTION_THREADS_LIST",$)),{items:A,hasMore:w,totalCount:P}=vs(z),H=new Set(f.map(ma)),O=ua(A,H,t,e,n),B=I;m.mergeThreads(A),u(R=>{if(R.identity!==C)return R;let L;return P!==void 0?L=bs(B+O,P):L=A.length===0||O===0?!1:w,ca(C,L),{...R,isFetching:!1,serverHasMore:L}})}catch(I){const $=I,z=$ instanceof Error?$.message:String($);$e.error(`Could not load more tasks: ${z}`),u(A=>A.identity===C?{...A,isFetching:!1}:A)}},v=d.isFetching||d.isProbing,_=!c&&!v&&la(x,d.serverHasMore);let k;return o[2]!==v||o[3]!==y||o[4]!==_||o[5]!==d.isProbing||o[6]!==d.serverHasMore?(k={hasMore:_,isFetching:v,isProbing:d.isProbing,serverHasMore:d.serverHasMore,loadMore:y},o[2]=v,o[3]=y,o[4]=_,o[5]=d.isProbing,o[6]=d.serverHasMore,o[7]=k):k=o[7],k}function ma(t){return t.id}function In(t){const e=N.c(61),{virtualMcpId:n,threads:r,activeTaskId:o,filters:i,onSelectTask:l,onArchiveTask:a,onNewTaskInGroup:c,onShowSettings:d,onHideGroup:u,isOrgPinned:m,canManageOrgPin:f,onToggleOrgPin:g,sortable:h,groupVisibleCount:x}=t,p=m===void 0?!1:m,b=f===void 0?!1:f,j=pt(n),y=r[0];let v;e[0]!==y||e[1]!==c||e[2]!==l||e[3]!==n?(v=()=>{y?l(y):c(n)},e[0]=y,e[1]=c,e[2]=l,e[3]=n,e[4]=v):v=e[4];const _=v,k=h?.isDragging?!1:void 0;let S;e[5]!==h?.isDragging||e[6]!==n?(S=q=>{h?.isDragging||q&&Z("sidebar_group_hover_popover_opened",{virtual_mcp_id:n})},e[5]=h?.isDragging,e[6]=n,e[7]=S):S=e[7];const C=!!(y&&o&&y.id===o),I=h?"Drag to reorder":void 0;let $;e[8]!==h?($=h?{...h.attributes,...h.listeners}:{},e[8]=h,e[9]=$):$=e[9];const z=h&&"cursor-pointer active:cursor-grabbing touch-none",A=h?.isDragging&&"cursor-grabbing";let w;e[10]!==A||e[11]!==z?(w=K("group-data-[state=collapsed]/sidebar:!size-10 group-data-[state=collapsed]/sidebar:!max-w-none group-data-[state=collapsed]/sidebar:!overflow-visible group-data-[state=collapsed]/sidebar:[&_svg]:opacity-100",z,A),e[10]=A,e[11]=z,e[12]=w):w=e[12];const P=j?.icon??null,H=j?.title??"?";let O;e[13]!==P||e[14]!==H?(O=s.jsx(Te,{icon:P,name:H,size:"sm+",className:"rounded-lg"}),e[13]=P,e[14]=H,e[15]=O):O=e[15];let B;e[16]!==_||e[17]!==w||e[18]!==O||e[19]!==C||e[20]!==I||e[21]!==$?(B=s.jsx(xe,{children:s.jsx(_n,{asChild:!0,children:s.jsx(ci,{asChild:!0,children:s.jsx(ke,{onClick:_,isActive:C,title:I,...$,className:w,children:O})})})}),e[16]=_,e[17]=w,e[18]=O,e[19]=C,e[20]=I,e[21]=$,e[22]=B):B=e[22];const R=g??fa;let L;e[23]!==b||e[24]!==p||e[25]!==u||e[26]!==c||e[27]!==d||e[28]!==R||e[29]!==n?(L=s.jsx(Sn,{className:"w-56",children:s.jsx(Nn,{virtualMcpId:n,isOrgPinned:p,canManageOrgPin:b,onNewTaskInGroup:c,onShowSettings:d,onToggleOrgPin:R,onHideGroup:u})}),e[23]=b,e[24]=p,e[25]=u,e[26]=c,e[27]=d,e[28]=R,e[29]=n,e[30]=L):L=e[30];let D;e[31]!==B||e[32]!==L?(D=s.jsxs(yn,{children:[B,L]}),e[31]=B,e[32]=L,e[33]=D):D=e[33];const G=j?.title??"Agent";let F;e[34]!==G?(F=s.jsx("span",{className:"truncate",children:G}),e[34]=G,e[35]=F):F=e[35];let E;e[36]!==c||e[37]!==n?(E=()=>c(n),e[36]=c,e[37]=n,e[38]=E):E=e[38];let V;e[39]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx(Ne,{size:14}),e[39]=V):V=e[39];let W;e[40]!==E?(W=s.jsx("button",{type:"button","aria-label":"New task in this agent",onClick:E,className:"flex size-6 items-center justify-center rounded-md hover:bg-accent text-muted-foreground hover:text-foreground",children:V}),e[40]=E,e[41]=W):W=e[41];let X;e[42]!==F||e[43]!==W?(X=s.jsxs("div",{className:"flex items-center justify-between px-1 pb-1 text-xs font-medium",children:[F,W]}),e[42]=F,e[43]=W,e[44]=X):X=e[44];let re;e[45]!==o||e[46]!==i||e[47]!==x||e[48]!==a||e[49]!==l||e[50]!==r||e[51]!==n?(re=s.jsx(xa,{virtualMcpId:n,threads:r,activeTaskId:o,filters:i,groupVisibleCount:x,onSelectTask:l,onArchiveTask:a}),e[45]=o,e[46]=i,e[47]=x,e[48]=a,e[49]=l,e[50]=r,e[51]=n,e[52]=re):re=e[52];let Y;e[53]!==X||e[54]!==re?(Y=s.jsxs(di,{side:"right",align:"start",sideOffset:8,className:"w-72 p-2",children:[X,re]}),e[53]=X,e[54]=re,e[55]=Y):Y=e[55];let oe;return e[56]!==D||e[57]!==Y||e[58]!==k||e[59]!==S?(oe=s.jsxs(ui,{open:k,openDelay:120,closeDelay:150,onOpenChange:S,children:[D,Y]}),e[56]=D,e[57]=Y,e[58]=k,e[59]=S,e[60]=oe):oe=e[60],oe}function fa(){}function xa(t){const e=N.c(6),{virtualMcpId:n,threads:r,activeTaskId:o,filters:i,groupVisibleCount:l,onSelectTask:a,onArchiveTask:c}=t,d=es("agent",n,i,l);let u;return e[0]!==o||e[1]!==c||e[2]!==a||e[3]!==d||e[4]!==r?(u=s.jsx("div",{className:"flex flex-col gap-0.5 max-h-[60vh] overflow-y-auto",children:r.length===0&&!d.hasMore&&!d.isFetching?s.jsx("div",{className:"px-2 py-1.5 text-xs text-muted-foreground",children:"No tasks yet"}):s.jsxs(s.Fragment,{children:[r.map(m=>s.jsx(Et,{task:m,isActive:o===m.id,onClick:()=>a(m),onArchive:()=>c(m),showAutomationBadge:!!m.trigger_id},m.id)),(d.hasMore||d.isFetching)&&s.jsx(Zt,{onClick:()=>{d.loadMore()},isFetching:d.isFetching})]})}),e[0]=o,e[1]=c,e[2]=a,e[3]=d,e[4]=r,e[5]=u):u=e[5],u}function pa(t,e,n,r,o,i,l){const a=N.c(18),c=l===void 0?"expanded":l;let d;a[0]===Symbol.for("react.memo_cache_sentinel")?(d={activationConstraint:{distance:8}},a[0]=d):d=a[0];let u;a[1]===Symbol.for("react.memo_cache_sentinel")?(u={coordinateGetter:Ho},a[1]=u):u=a[1];const m=Go(ls(Lo,d),ls(Bo,u));let f;a[2]!==r||a[3]!==o||a[4]!==e||a[5]!==t?(f=Qr(t,e,r,o),a[2]=r,a[3]=o,a[4]=e,a[5]=t,a[6]=f):f=a[6];const g=f;let h;a[7]!==i||a[8]!==n||a[9]!==o||a[10]!==e||a[11]!==g||a[12]!==c?(h=b=>{const{active:j,over:y}=b;if(!y||j.id===y.id)return;const v=String(j.id),_=String(y.id);if(!Zr(v,_,o))return;const k=Jr(g,v,_),S=eo(e,n,o,k);e==="org"?to(n.orgId,S):so(n,S),Z("sidebar_group_reordered",{virtual_mcp_id:v,over_virtual_mcp_id:_,surface:c,section:e}),i()},a[7]=i,a[8]=n,a[9]=o,a[10]=e,a[11]=g,a[12]=c,a[13]=h):h=a[13];const x=h;let p;return a[14]!==x||a[15]!==m||a[16]!==g?(p={sensors:m,sortableIds:g,handleDragEnd:x},a[14]=x,a[15]=m,a[16]=g,a[17]=p):p=a[17],p}function ha(t){const e=N.c(2),{collapsed:n}=t;if(n===void 0?!1:n){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{role:"separator","aria-orientation":"horizontal",className:"mx-auto my-1 h-px w-6 shrink-0 bg-border"}),e[0]=i):i=e[0],i}let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{role:"separator","aria-orientation":"horizontal",className:"my-1.5 h-px w-full shrink-0 bg-border"}),e[1]=o):o=e[1],o}function ga(t){const e=N.c(12),{id:n,children:r}=t;let o;e[0]!==n?(o={id:n},e[0]=n,e[1]=o):o=e[1];const{attributes:i,listeners:l,setNodeRef:a,transform:c,transition:d,isDragging:u}=qo(o);let m;if(e[2]!==i||e[3]!==r||e[4]!==u||e[5]!==l||e[6]!==a||e[7]!==c||e[8]!==d){const g={transform:Yo.Transform.toString(c),transition:d,zIndex:u?100:void 0};m=r({setNodeRef:a,style:g,isDragging:u,attributes:i,listeners:l}),e[2]=i,e[3]=r,e[4]=u,e[5]=l,e[6]=a,e[7]=c,e[8]=d,e[9]=m}else m=e[9];let f;return e[10]!==m?(f=s.jsx(s.Fragment,{children:m}),e[10]=m,e[11]=f):f=e[11],f}function ys(t){const e=N.c(18),{section:n,groups:r,orderScope:o,decopilotId:i,orgPinnedIds:l,onReorder:a,surface:c,renderGroup:d,renderSortable:u,renderFixed:m}=t,{sensors:f,sortableIds:g,handleDragEnd:h}=pa(r,n,o,i,l,a,c);if(r.length===0)return null;const x=g;let p;if(e[0]!==r||e[1]!==m||e[2]!==d||e[3]!==u||e[4]!==g){let y;e[6]!==m||e[7]!==d||e[8]!==u||e[9]!==g?(y=v=>{const _=d(v);return g.includes(v.virtualMcpId)?s.jsx(ga,{id:v.virtualMcpId,children:k=>{const{setNodeRef:S,style:C,isDragging:I,attributes:$,listeners:z}=k;return s.jsx("div",{ref:S,style:C,className:K(I&&"opacity-50"),children:u(_,{attributes:$,listeners:z,isDragging:I})})}},v.virtualMcpId):s.jsx("div",{children:m(_)},v.virtualMcpId)},e[6]=m,e[7]=d,e[8]=u,e[9]=g,e[10]=y):y=e[10],p=r.map(y),e[0]=r,e[1]=m,e[2]=d,e[3]=u,e[4]=g,e[5]=p}else p=e[5];let b;e[11]!==x||e[12]!==p?(b=s.jsx(Uo,{items:x,strategy:Ko,children:p}),e[11]=x,e[12]=p,e[13]=b):b=e[13];let j;return e[14]!==h||e[15]!==f||e[16]!==b?(j=s.jsx(Vo,{sensors:f,collisionDetection:Wo,onDragEnd:h,children:b}),e[14]=h,e[15]=f,e[16]=b,e[17]=j):j=e[17],j}function Mn(t){const e=N.c(23),{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,surface:a,collapsedSeparator:c,renderGroup:d,renderSortable:u,renderFixed:m}=t;let f;if(e[0]!==c||e[1]!==o||e[2]!==n||e[3]!==l||e[4]!==r||e[5]!==i||e[6]!==m||e[7]!==d||e[8]!==u||e[9]!==a){const{decopilot:g,orgPinned:h,user:x,toolCallRuns:p}=no(n,o,i),b=h.length>0&&x.length>0;let j;e[11]!==o||e[12]!==l||e[13]!==r||e[14]!==i||e[15]!==m||e[16]!==d||e[17]!==u||e[18]!==a?(j={orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,surface:a,renderGroup:d,renderSortable:u,renderFixed:m},e[11]=o,e[12]=l,e[13]=r,e[14]=i,e[15]=m,e[16]=d,e[17]=u,e[18]=a,e[19]=j):j=e[19];const y=j;let v;e[20]!==c||e[21]!==b?(v=b&&s.jsx(ha,{collapsed:c}),e[20]=c,e[21]=b,e[22]=v):v=e[22],f=s.jsxs(s.Fragment,{children:[g&&m(d(g)),s.jsx(ys,{section:"org",groups:h,...y}),v,s.jsx(ys,{section:"user",groups:x,...y}),p&&m(d(p))]}),e[0]=c,e[1]=o,e[2]=n,e[3]=l,e[4]=r,e[5]=i,e[6]=m,e[7]=d,e[8]=u,e[9]=a,e[10]=f}else f=e[10];return f}function ba(t){const e=N.c(7),{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,renderGroup:a}=t;let c;return e[0]!==o||e[1]!==n||e[2]!==l||e[3]!==r||e[4]!==i||e[5]!==a?(c=s.jsx(Mn,{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,surface:"collapsed_rail",collapsedSeparator:!0,renderGroup:a,renderFixed:va,renderSortable:ja}),e[0]=o,e[1]=n,e[2]=l,e[3]=r,e[4]=i,e[5]=a,e[6]=c):c=e[6],c}function ja(t,e){return s.jsx(In,{...t,sortable:{attributes:e.attributes,listeners:e.listeners,isDragging:e.isDragging}},t.virtualMcpId)}function va(t){return s.jsx(In,{...t},t.virtualMcpId)}const ya="sidebar.group.expanded.";function $n(t,e){const n=N.c(3),[r,o]=yr(`${ya}${t}`,e);let i;return n[0]!==r||n[1]!==o?(i=[r,o],n[0]=r,n[1]=o,n[2]=i):i=n[2],i}function An(t){const e=N.c(59),{virtualMcpId:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,onNewTaskInGroup:a,onShowSettings:c,onHideGroup:d,isOrgPinned:u,canManageOrgPin:m,onToggleOrgPin:f,filters:g,groupVisibleCount:h,sortable:x}=t,p=u===void 0?!1:u,b=m===void 0?!1:m,[j,y]=$n(n,!1),v=n===Ls,_=x?.isDragging??!1;let k;e[0]!==j||e[1]!==y?(k=function(){y(!j)},e[0]=j,e[1]=y,e[2]=k):k=e[2];const S=k;let C;e[3]!==v||e[4]!==x?(C=x&&!v?{...x.attributes,...x.listeners}:{},e[3]=v,e[4]=x,e[5]=C):C=e[5];let I;e[6]!==S?(I=E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),S())},e[6]=S,e[7]=I):I=e[7];const $=x&&!v&&"touch-none active:cursor-grabbing",z=_&&"shadow-md bg-accent/40 cursor-grabbing";let A;e[8]!==$||e[9]!==z?(A=K("group/group flex items-center gap-2 px-2 py-1.5 rounded-md text-sm font-medium text-foreground","cursor-pointer hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",$,z),e[8]=$,e[9]=z,e[10]=A):A=e[10];let w;e[11]!==v||e[12]!==n?(w=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center transition-opacity group-hover/group:opacity-0",children:s.jsx(Sa,{virtualMcpId:n,isToolCallRuns:v})}),e[11]=v,e[12]=n,e[13]=w):w=e[13];let P;e[14]!==j?(P=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-muted-foreground opacity-0 transition-opacity group-hover/group:opacity-100",children:j?s.jsx(Js,{size:14}):s.jsx(Xt,{size:14})}),e[14]=j,e[15]=P):P=e[15];let H;e[16]!==P||e[17]!==w?(H=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[w,P]}),e[16]=P,e[17]=w,e[18]=H):H=e[18];let O;e[19]!==v||e[20]!==n?(O=s.jsx("span",{className:"flex-1 truncate",children:s.jsx(Ca,{virtualMcpId:n,isToolCallRuns:v})}),e[19]=v,e[20]=n,e[21]=O):O=e[21];let B;e[22]!==v||e[23]!==a||e[24]!==n?(B=!v&&s.jsx("button",{type:"button","aria-label":"New task in this agent",onClick:E=>{E.stopPropagation(),a(n)},className:"opacity-0 group-hover/group:opacity-100 focus-visible:opacity-100 transition-opacity flex size-7 items-center justify-center rounded-md hover:bg-accent text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:s.jsx(Ne,{size:14})}),e[22]=v,e[23]=a,e[24]=n,e[25]=B):B=e[25];let R;e[26]!==j||e[27]!==S||e[28]!==H||e[29]!==O||e[30]!==B||e[31]!==C||e[32]!==I||e[33]!==A?(R=s.jsxs("div",{...C,role:"button",tabIndex:0,"aria-expanded":j,onClick:S,onKeyDown:I,className:A,children:[H,O,B]}),e[26]=j,e[27]=S,e[28]=H,e[29]=O,e[30]=B,e[31]=C,e[32]=I,e[33]=A,e[34]=R):R=e[34];const L=R;let D;e[35]!==b||e[36]!==L||e[37]!==p||e[38]!==v||e[39]!==d||e[40]!==a||e[41]!==c||e[42]!==f||e[43]!==n?(D=v?L:s.jsxs(yn,{children:[s.jsx(_n,{asChild:!0,children:L}),s.jsx(Sn,{className:"w-56",children:s.jsx(Nn,{virtualMcpId:n,isOrgPinned:p,canManageOrgPin:b,onNewTaskInGroup:a,onShowSettings:c,onToggleOrgPin:f??_a,onHideGroup:d})})]}),e[35]=b,e[36]=L,e[37]=p,e[38]=v,e[39]=d,e[40]=a,e[41]=c,e[42]=f,e[43]=n,e[44]=D):D=e[44];let G;e[45]!==o||e[46]!==j||e[47]!==g||e[48]!==h||e[49]!==v||e[50]!==l||e[51]!==a||e[52]!==i||e[53]!==r||e[54]!==n?(G=j&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:v?r.map(E=>s.jsx(Et,{task:E,isActive:o===E.id,onClick:()=>i(E),onArchive:()=>l(E),showAutomationBadge:!!E.trigger_id},E.id)):s.jsx(ka,{virtualMcpId:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,onNewTaskInGroup:a,filters:g,groupVisibleCount:h})}),e[45]=o,e[46]=j,e[47]=g,e[48]=h,e[49]=v,e[50]=l,e[51]=a,e[52]=i,e[53]=r,e[54]=n,e[55]=G):G=e[55];let F;return e[56]!==D||e[57]!==G?(F=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[D,G]}),e[56]=D,e[57]=G,e[58]=F):F=e[58],F}function _a(){}function Sa(t){const e=N.c(3),{virtualMcpId:n,isToolCallRuns:r}=t;if(r){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Te,{icon:null,name:"⚙",size:"2xs"}),e[0]=i):i=e[0],i}let o;return e[1]!==n?(o=s.jsx(Na,{virtualMcpId:n}),e[1]=n,e[2]=o):o=e[2],o}function Na(t){const e=N.c(4),{virtualMcpId:n}=t,r=pt(n);if(!r){let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Te,{icon:null,name:"?",size:"2xs"}),e[0]=l):l=e[0],l}const o=r.icon??null;let i;return e[1]!==r.title||e[2]!==o?(i=s.jsx(Te,{icon:o,name:r.title,size:"2xs"}),e[1]=r.title,e[2]=o,e[3]=i):i=e[3],i}function Ca(t){const e=N.c(3),{virtualMcpId:n,isToolCallRuns:r}=t;if(r){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(s.Fragment,{children:"Automation runs"}),e[0]=i):i=e[0],i}let o;return e[1]!==n?(o=s.jsx(wa,{virtualMcpId:n}),e[1]=n,e[2]=o):o=e[2],o}function wa(t){const e=N.c(2),{virtualMcpId:n}=t,o=pt(n)?.title??"Agent";let i;return e[0]!==o?(i=s.jsx(s.Fragment,{children:o}),e[0]=o,e[1]=i):i=e[1],i}function ka(t){const e=N.c(10),{virtualMcpId:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,onNewTaskInGroup:a,filters:c,groupVisibleCount:d}=t,u=es("agent",n,c,d),{isFetching:m,isProbing:f,loadMore:g,serverHasMore:h}=u,[x,p]=T.useState(!1);!x&&r.length===0&&h===!0&&!m&&!f&&(p(!0),queueMicrotask(()=>{g()}));const{hasMore:b}=u;let j;return e[0]!==o||e[1]!==b||e[2]!==m||e[3]!==g||e[4]!==l||e[5]!==a||e[6]!==i||e[7]!==r||e[8]!==n?(j=s.jsx(s.Fragment,{children:r.length===0?s.jsxs("button",{type:"button",onClick:()=>a(n),className:"flex items-center gap-2 px-2 py-1.5 rounded-md cursor-pointer text-sm text-muted-foreground hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",children:[s.jsx(Ne,{size:14}),s.jsx("span",{children:"New thread"})]}):s.jsxs(s.Fragment,{children:[r.map(y=>s.jsx(Et,{task:y,isActive:o===y.id,onClick:()=>i(y),onArchive:()=>l(y),showAutomationBadge:!!y.trigger_id},y.id)),(b||m)&&s.jsx(Zt,{onClick:()=>{g()},isFetching:m})]})}),e[0]=o,e[1]=b,e[2]=m,e[3]=g,e[4]=l,e[5]=a,e[6]=i,e[7]=r,e[8]=n,e[9]=j):j=e[9],j}function Ia(t){const e=N.c(16),{status:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,filters:a}=t,{isFetching:c,isProbing:d,loadMore:u,hasMore:m,serverHasMore:f}=es("status",n,a),[g,h]=T.useState(!1);!g&&r.length===0&&f===!0&&!c&&!d&&(h(!0),queueMicrotask(()=>{u()}));let x;if(e[0]!==o||e[1]!==l||e[2]!==i||e[3]!==r){let j;e[5]!==o||e[6]!==l||e[7]!==i?(j=y=>s.jsx(Et,{task:y,isActive:o===y.id,onClick:()=>i(y),onArchive:()=>l(y),showAutomationBadge:!!y.trigger_id,showAgentIcon:!0,hideStatusIdle:!0},y.id),e[5]=o,e[6]=l,e[7]=i,e[8]=j):j=e[8],x=r.map(j),e[0]=o,e[1]=l,e[2]=i,e[3]=r,e[4]=x}else x=e[4];let p;e[9]!==m||e[10]!==c||e[11]!==u?(p=(m||c)&&s.jsx(Zt,{onClick:()=>{u()},isFetching:c}),e[9]=m,e[10]=c,e[11]=u,e[12]=p):p=e[12];let b;return e[13]!==x||e[14]!==p?(b=s.jsxs(s.Fragment,{children:[x,p]}),e[13]=x,e[14]=p,e[15]=b):b=e[15],b}function Ma(t){const e=N.c(35),{status:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,filters:a}=t,c=fi[n],d=c.icon,[u,m]=$n(`status-${n}`,!1);let f;e[0]!==u||e[1]!==m?(f=function(){m(!u)},e[0]=u,e[1]=m,e[2]=f):f=e[2];const g=f;let h;e[3]!==g?(h=S=>{S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),g())},e[3]=g,e[4]=h):h=e[4];let x;e[5]!==d||e[6]!==c.iconClassName?(x=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center transition-opacity group-hover/group:opacity-0",children:s.jsx(d,{size:12,className:c.iconClassName})}),e[5]=d,e[6]=c.iconClassName,e[7]=x):x=e[7];let p;e[8]!==u?(p=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-muted-foreground opacity-0 transition-opacity group-hover/group:opacity-100",children:u?s.jsx(Js,{size:14}):s.jsx(Xt,{size:14})}),e[8]=u,e[9]=p):p=e[9];let b;e[10]!==x||e[11]!==p?(b=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[x,p]}),e[10]=x,e[11]=p,e[12]=b):b=e[12];let j;e[13]!==c.label?(j=s.jsx("span",{className:"flex-1 truncate",children:c.label}),e[13]=c.label,e[14]=j):j=e[14];let y;e[15]!==r.length?(y=s.jsx("div",{className:"size-5 shrink-0 flex items-center justify-center",children:s.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:r.length})}),e[15]=r.length,e[16]=y):y=e[16];let v;e[17]!==u||e[18]!==g||e[19]!==h||e[20]!==b||e[21]!==j||e[22]!==y?(v=s.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":u,onClick:g,onKeyDown:h,className:"group/group flex items-center gap-2 px-2 py-1.5 rounded-md text-sm font-medium text-foreground cursor-pointer hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",children:[b,j,y]}),e[17]=u,e[18]=g,e[19]=h,e[20]=b,e[21]=j,e[22]=y,e[23]=v):v=e[23];let _;e[24]!==o||e[25]!==u||e[26]!==a||e[27]!==l||e[28]!==i||e[29]!==n||e[30]!==r?(_=u&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:s.jsx(Ia,{status:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:l,filters:a})}),e[24]=o,e[25]=u,e[26]=a,e[27]=l,e[28]=i,e[29]=n,e[30]=r,e[31]=_):_=e[31];let k;return e[32]!==v||e[33]!==_?(k=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[v,_]}),e[32]=v,e[33]=_,e[34]=k):k=e[34],k}function $a(t){const e=N.c(7),{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,renderGroup:a}=t;let c;return e[0]!==o||e[1]!==n||e[2]!==l||e[3]!==r||e[4]!==i||e[5]!==a?(c=s.jsx(Mn,{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:l,surface:"expanded",renderGroup:a,renderFixed:Ta,renderSortable:Aa}),e[0]=o,e[1]=n,e[2]=l,e[3]=r,e[4]=i,e[5]=a,e[6]=c):c=e[6],c}function Aa(t,e){return s.jsx(An,{...t,sortable:e},t.virtualMcpId)}function Ta(t){return s.jsx(An,{...t},t.virtualMcpId)}function Oa(t,e,n,r){return[t.orgId,t.userId,r,n.slice().sort().join(","),e.map(o=>o.virtualMcpId).sort().join(",")].join("|")}function Pa(t,e,n,r,o){const i=N.c(5),l=Oa(t,e,r,o),[a,c]=T.useState("");a!==l&&(ro(t,e,n,r),c(l));let d;return i[0]!==n||i[1]!==r||i[2]!==t||i[3]!==e?(d=oo(t,e,n,r),i[0]=n,i[1]=r,i[2]=t,i[3]=e,i[4]=d):d=i[4],d}const Tn={all:"All tasks",manual:"Chats",automation:"Automation"},On={all:"All members",mine:"Mine only"},_s={agent:"Agent",status:"Status"};function Pn(){const t=N.c(92),{data:e}=Ce.useSession(),n=e?.user?.id,r=n??"anon",{org:o}=fe(),i=$r(o.id).id,a=Ds().filter(Ua).map(Ha),c=yl(),d=Ar();let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u={},t[0]=u):u=t[0];const[m,f]=T.useState(u),g=new Set(a),h={},x=[];let p;t[1]!==m?(p=Object.entries(m),t[1]=m,t[2]=p):p=t[2];for(const[M,U]of p)g.has(M)!==U?h[M]=U:x.push(M);x.length>0&&f(M=>{const U={...M};for(const ne of x)delete U[ne];return U});const b=new Set(a);for(const[M,U]of Object.entries(h))U?b.add(M):b.delete(M);const j=[...b],y=new Set(j),{threads:v}=Gs(),_=hl(v,{hidden:!1}),{hide:k}=Fs(),S=Oe(),{setTaskId:C,createNewTask:I}=Bs();let $;t[3]===Symbol.for("react.memo_cache_sentinel")?($={strict:!1},t[3]=$):$=t[3];const A=Cs($).taskId??null,w=[..._].sort(La),[P,H]=T.useState("all"),[O,B]=T.useState("mine"),[R,L]=T.useState("agent"),[D,G]=T.useState(!1),[F,E]=T.useState(!1),[V,W]=T.useState(0),X=io(),re=V+X;let Y;t[4]!==o.id||t[5]!==r?(Y={orgId:o.id,userId:r},t[4]=o.id,t[5]=r,t[6]=Y):Y=t[6];const oe=Y,q={type:P,member:O,currentUserId:n??null},J=oa(w,"agent",q),Q=Pa(oe,lo(w,i),i,j,re);let ee;t[7]!==n||t[8]!==O?(ee=M=>O==="mine"&&n?M.filter(U=>U.created_by===n):M,t[7]=n,t[8]=O,t[9]=ee):ee=t[9];const te=ee;let se;t[10]!==P?(se=M=>P==="automation"?M.filter(Ba):P==="manual"?M.filter(Ga):M,t[10]=P,t[11]=se):se=t[11];const ie=se,le=M=>{const U=M.id===A;if(k(M.id),!U)return;const ne=w.find(_e=>_e.id!==M.id&&_e.virtual_mcp_id===M.virtual_mcp_id);ne?C(ne.id,ne.virtual_mcp_id):S({to:"/$org",params:{org:o.slug}})};let Ie;t[12]!==I?(Ie=M=>{Z("sidebar_group_new_clicked",{virtual_mcp_id:M}),I(M)},t[12]=I,t[13]=Ie):Ie=t[13];const Pe=Ie,ze=ao();let pe;t[14]!==ze?(pe=M=>{Z("sidebar_group_settings_clicked",{virtual_mcp_id:M}),ze(M,{search:{main:"instructions"}})},t[14]=ze,t[15]=pe):pe=t[15];const Re=pe,mt=M=>{if(y.has(M))return;Z("sidebar_group_hide_clicked",{virtual_mcp_id:M});const U=Q.find(ne=>ne.virtualMcpId===M);if(U)for(const ne of U.threads)k(ne.id);uo(oe,M,j),W(Fa)},De=async(M,U)=>{if(c&&h[M]===void 0){Z("sidebar_group_org_pin_toggled",{virtual_mcp_id:M,pinned:U}),f(ne=>({...ne,[M]:U}));try{await d.update.mutateAsync({id:M,data:{pinned:U}})}catch{mo(oe,M,!U),f(ne=>{const _e={...ne};return delete _e[M],_e})}}},Ee=M=>{const U=M===i||M===Ls;return{isOrgPinned:y.has(M),canManageOrgPin:U?!1:c,onToggleOrgPin:U?void 0:De}},Me=M=>{const U=ie(te(M.threads));return{virtualMcpId:M.virtualMcpId,threads:U,activeTaskId:A,filters:q,groupVisibleCount:J.get(M.virtualMcpId)??0,onSelectTask:ne=>C(ne.id,ne.virtual_mcp_id),onArchiveTask:le,onNewTaskInGroup:Pe,onShowSettings:Re,onHideGroup:mt,...Ee(M.virtualMcpId)}},ae=P!=="all"||O!=="mine",{state:Fe,isMobile:Ge}=Xe();if(Fe==="collapsed"&&!Ge){let M;if(t[16]!==ae||t[17]!==Q||t[18]!==te||t[19]!==ie){let dt;t[21]!==ae||t[22]!==te||t[23]!==ie?(dt=Dn=>{const En=ie(te(Dn.threads));return!(ae&&En.length===0)},t[21]=ae,t[22]=te,t[23]=ie,t[24]=dt):dt=t[24],M=Q.filter(dt),t[16]=ae,t[17]=Q,t[18]=te,t[19]=ie,t[20]=M}else M=t[20];const U=M,ne=R==="agent"&&Q.length===0;let _e;t[25]!==ne?(_e=s.jsx(rs,{value:ne}),t[25]=ne,t[26]=_e):_e=t[26];let Ct;return t[27]===Symbol.for("react.memo_cache_sentinel")?(Ct=()=>W(Ea),t[27]=Ct):Ct=t[27],s.jsxs(s.Fragment,{children:[_e,s.jsx(Ae,{className:"min-h-0 gap-1.5 overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:s.jsx(ba,{groups:U,orderScope:oe,decopilotId:i,orgPinnedIds:j,onReorder:Ct,renderGroup:dt=>Me(dt)})})]})}const ft="flex flex-col h-full min-h-0",be=R==="agent"&&Q.length===0;let je;t[28]!==be?(je=s.jsx(rs,{value:be}),t[28]=be,t[29]=je):je=t[29];let ue;t[30]!==G?(ue=()=>{Z("tasks_panel_search_opened"),E(!0),G(!0)},t[30]=G,t[31]=ue):ue=t[31];let he;t[32]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(Br,{size:16}),t[32]=he):he=t[32];let me;t[33]!==ue?(me=s.jsx(we,{"aria-label":"Search threads",onClick:ue,children:he}),t[33]=ue,t[34]=me):me=t[34];const Be=_s[R==="agent"?"status":"agent"];let ge;t[35]!==Be?(ge=Be.toLowerCase(),t[35]=Be,t[36]=ge):ge=t[36];const ve=`Group by ${ge}`,Le=_s[R];let de;t[37]!==Le?(de=Le.toLowerCase(),t[37]=Le,t[38]=de):de=t[38];const He=`Grouped by ${de}`;let ye,Ue;t[39]!==R?(ye=()=>{const M=R==="agent"?"status":"agent";Z("tasks_panel_group_by_changed",{to_value:M}),L(M)},Ue=R==="agent"?s.jsx(Qo,{size:16}):s.jsx(Lr,{size:16}),t[39]=R,t[40]=ye,t[41]=Ue):(ye=t[40],Ue=t[41]);let Ke;t[42]!==ve||t[43]!==He||t[44]!==ye||t[45]!==Ue?(Ke=s.jsx(we,{"aria-label":ve,title:He,onClick:ye,children:Ue}),t[42]=ve,t[43]=He,t[44]=ye,t[45]=Ue,t[46]=Ke):Ke=t[46];let Qe;t[47]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx(Xo,{size:16}),t[47]=Qe):Qe=t[47];let Ze;t[48]!==ae?(Ze=ae&&s.jsx("span",{className:"absolute top-0.5 right-0.5 size-2 rounded-full bg-red-500 ring-1 ring-sidebar pointer-events-none"}),t[48]=ae,t[49]=Ze):Ze=t[49];let Je;t[50]!==Ze?(Je=s.jsx(ut,{asChild:!0,children:s.jsxs(we,{"aria-label":"Filter tasks",children:[Qe,Ze]})}),t[50]=Ze,t[51]=Je):Je=t[51];let et;t[52]!==O?(et=M=>{const U=M;U!==O&&Z("tasks_panel_member_filter_changed",{to_value:U}),B(U)},t[52]=O,t[53]=et):et=t[53];let gt;t[54]===Symbol.for("react.memo_cache_sentinel")?(gt=s.jsx(cs,{size:"sm",className:"w-full",children:s.jsx(ds,{})}),t[54]=gt):gt=t[54];let bt;t[55]===Symbol.for("react.memo_cache_sentinel")?(bt=Object.keys(On),t[55]=bt):bt=t[55];let jt;t[56]===Symbol.for("react.memo_cache_sentinel")?(jt=s.jsx(as,{children:bt.map(Da)}),t[56]=jt):jt=t[56];let tt;t[57]!==O||t[58]!==et?(tt=s.jsx(Ss,{label:"Members",children:s.jsxs(us,{value:O,onValueChange:et,children:[gt,jt]})}),t[57]=O,t[58]=et,t[59]=tt):tt=t[59];let st;t[60]!==P?(st=M=>{const U=M;U!==P&&Z("tasks_panel_filter_changed",{to_value:U}),H(U)},t[60]=P,t[61]=st):st=t[61];let vt;t[62]===Symbol.for("react.memo_cache_sentinel")?(vt=s.jsx(cs,{size:"sm",className:"w-full",children:s.jsx(ds,{})}),t[62]=vt):vt=t[62];let yt;t[63]===Symbol.for("react.memo_cache_sentinel")?(yt=Object.keys(Tn),t[63]=yt):yt=t[63];let _t;t[64]===Symbol.for("react.memo_cache_sentinel")?(_t=s.jsx(as,{children:yt.map(Ra)}),t[64]=_t):_t=t[64];let nt;t[65]!==st||t[66]!==P?(nt=s.jsx(Ss,{label:"Type",children:s.jsxs(us,{value:P,onValueChange:st,children:[vt,_t]})}),t[65]=st,t[66]=P,t[67]=nt):nt=t[67];let rt;t[68]!==tt||t[69]!==nt?(rt=s.jsx(Dt,{align:"start",sideOffset:8,collisionPadding:16,className:"w-72 p-3",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[tt,nt]})}),t[68]=tt,t[69]=nt,t[70]=rt):rt=t[70];let ot;t[71]!==Je||t[72]!==rt?(ot=s.jsxs(Rt,{children:[Je,rt]}),t[71]=Je,t[72]=rt,t[73]=ot):ot=t[73];let it;t[74]!==me||t[75]!==Ke||t[76]!==ot?(it=s.jsxs("div",{className:"flex items-center gap-0.5",children:[me,Ke,ot]}),t[74]=me,t[75]=Ke,t[76]=ot,t[77]=it):it=t[77];let St;t[78]===Symbol.for("react.memo_cache_sentinel")?(St=s.jsx(en,{compact:!0}),t[78]=St):St=t[78];let lt;t[79]!==it?(lt=s.jsxs("div",{className:"shrink-0 px-1 h-10 md:h-7 mb-2 flex items-center justify-between",children:[it,St]}),t[79]=it,t[80]=lt):lt=t[80];const Rn="flex-1 min-h-0 overflow-y-auto overscroll-contain flex flex-col gap-0.5 -mr-2 pr-2",Gt=R==="status"?s.jsx(s.Fragment,{children:co(ie(te(w))).map(M=>s.jsx(Ma,{status:M.status,threads:M.threads,activeTaskId:A,onSelectTask:U=>C(U.id,U.virtual_mcp_id),onArchiveTask:le,filters:q},M.status))}):s.jsx($a,{groups:Q,orderScope:oe,decopilotId:i,orgPinnedIds:j,onReorder:()=>W(za),renderGroup:M=>({...Me(M)})});let at;t[81]!==Gt?(at=s.jsx("div",{className:Rn,children:Gt}),t[81]=Gt,t[82]=at):at=t[82];let ct;t[83]!==F||t[84]!==D||t[85]!==G?(ct=F&&s.jsx(jl,{open:D,onOpenChange:G}),t[83]=F,t[84]=D,t[85]=G,t[86]=ct):ct=t[86];let Nt;return t[87]!==je||t[88]!==lt||t[89]!==at||t[90]!==ct?(Nt=s.jsxs("div",{className:ft,children:[je,lt,at,ct]}),t[87]=je,t[88]=lt,t[89]=at,t[90]=ct,t[91]=Nt):Nt=t[91],Nt}function za(t){return t+1}function Ra(t){return s.jsx(Xs,{value:t,children:Tn[t]},t)}function Da(t){return s.jsx(Xs,{value:t,children:On[t]},t)}function Ea(t){return t+1}function Fa(t){return t+1}function Ga(t){return!t.trigger_id}function Ba(t){return!!t.trigger_id}function La(t,e){return(e.updated_at??"").localeCompare(t.updated_at??"")}function Ha(t){return t.id}function Ua(t){return t.pinned}function Ss(t){const e=N.c(7),{label:n,children:r}=t;let o;e[0]!==n?(o=s.jsx("span",{className:"text-sm text-muted-foreground",children:n}),e[0]=n,e[1]=o):o=e[1];let i;e[2]!==r?(i=s.jsx("div",{className:"w-36 shrink-0",children:r}),e[2]=r,e[3]=i):i=e[3];let l;return e[4]!==o||e[5]!==i?(l=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[o,i]}),e[4]=o,e[5]=i,e[6]=l):l=e[6],l}const Ka=5,Va=[{nameWidth:"w-24",taskRows:2},{nameWidth:"w-28",taskRows:0},{nameWidth:"w-20",taskRows:1},{nameWidth:"w-32",taskRows:0},{nameWidth:"w-24",taskRows:0}];function zn(){const t=N.c(3),{state:e}=Xe();if(e==="collapsed"){let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex flex-col gap-1.5",children:Array.from({length:Ka}).map(Ya)}),t[0]=o):o=t[0],o}let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"shrink-0 px-1 h-10 md:h-7 mb-2 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(Se,{className:"size-6 rounded-md"}),s.jsx(Se,{className:"size-6 rounded-md"}),s.jsx(Se,{className:"size-6 rounded-md"})]}),s.jsx(Se,{className:"h-6 w-20 rounded-md"})]}),t[1]=n):n=t[1];let r;return t[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[n,s.jsx("div",{className:"flex flex-col gap-0.5",children:Va.map(Wa)})]}),t[2]=r):r=t[2],r}function Wa(t,e){return s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(Se,{className:"size-5 rounded-full shrink-0"}),s.jsx(Se,{className:K("h-3",t.nameWidth,"rounded-sm")})]}),t.taskRows>0&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:Array.from({length:t.taskRows}).map(qa)})]},e)}function qa(t,e){return s.jsx("div",{className:"flex items-center gap-2 px-2 py-1.5",children:s.jsx(Se,{className:"h-3 flex-1 rounded-sm"})},e)}function Ya(t,e){return s.jsx(Se,{className:"size-10 rounded-lg mx-auto"},e)}function Xc(){const t=N.c(4),e=tn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(xl,{}),t[0]=n):n=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(ks,{children:s.jsxs(T.Suspense,{fallback:s.jsxs(s.Fragment,{children:[s.jsx(Tt,{className:"mb-2"}),s.jsx(zn,{})]}),children:[s.jsx(Tt,{className:"mb-2"}),s.jsx(Pn,{})]})}),t[1]=r):r=t[1];let o;return t[2]!==e?(o=s.jsx(Hs,{children:s.jsx(rn,{sections:e,footer:n,additionalContent:r})}),t[2]=e,t[3]=o):o=t[3],o}function Qc(t){const e=N.c(5),{onClose:n}=t,r=tn();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pl,{}),e[0]=o):o=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ks,{children:s.jsxs(T.Suspense,{fallback:s.jsxs(s.Fragment,{children:[s.jsx(Tt,{className:"mb-2"}),s.jsx(zn,{})]}),children:[s.jsx(Tt,{className:"mb-2"}),s.jsx(Pn,{})]})}),e[1]=i):i=e[1];let l;return e[2]!==n||e[3]!==r?(l=s.jsx(Hs,{children:s.jsx(Oi,{sections:r,onClose:n,footer:o,additionalContent:i})}),e[2]=n,e[3]=r,e[4]=l):l=e[4],l}function Zc(){const t=N.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{"data-testid":"shell-route-loading",className:"absolute inset-0 flex items-center justify-center",children:s.jsx(Vt,{size:20,className:"animate-spin text-muted-foreground"})}),t[0]=e):e=t[0],e}export{_n as C,Xc as S,Qc as a,Zc as b,It as c,ps as d,Sn as e,yn as f};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-YlO9r3lS.js","assets/index-DOoAabap.js","assets/index-DfYyH4IW.css","assets/XCircle-BzRD1Jd9.js","assets/CheckCircle-3ECsT-zB.js","assets/Container-DkRkONtL.js","assets/Settings02-QpROtTDF.js","assets/use-mcp-client-DnwBQgtt.js","assets/useInfiniteQuery-qWamWTas.js","assets/infiniteQueryObserver-DApjSDt2.js","assets/studio-tools-CKvJG16E.js","assets/badge-f4YWnZL0.js","assets/input-OGtZJjEE.js","assets/dropdown-menu-BaJFpb9J.js","assets/Check-pmcSX7Ds.js","assets/ChevronRight-BNY74L1V.js","assets/DotsVertical-DJtuELuQ.js","assets/table-9jRKIUhw.js","assets/toggle-group-BmE5kRMT.js","assets/use-view-mode-DozvbNbv.js","assets/tooltip-DjQW44FW.js","assets/FilterLines-C7Uh3aPq.js","assets/Globe01-DcV1IvQc.js","assets/SearchMd-BX7CdT-X.js","assets/dialog-B5s00-oF.js","assets/X-4DUZJqa0.js","assets/AlertCircle-C4TQxCvt.js","assets/Upload01-CVliSV9e.js","assets/alert-dialog-Dwxfxg1i.js","assets/card-BW8XcmNf.js","assets/Trash01-BMVrAqxq.js","assets/label-DTe8NzB0.js","assets/select-DtexK_z5.js","assets/ChevronDown-C4k7LIxV.js","assets/ChevronUp-BYoitSH0.js","assets/switch-C11gJmy6.js","assets/textarea-Ds5imYZm.js","assets/RefreshCcw01-BZNxVpdM.js","assets/checkbox-CNj9E_s7.js","assets/Eye-TeLMkAIt.js","assets/LinkExternal01-C-EuIQk5.js","assets/use-copy-BPFzc0Dk.js","assets/Key01-BhvQgQvA.js","assets/Plus-DgMianxx.js","assets/Play-DwlSKe5K.js"])))=>i.map(i=>d[i]);
2
- import{e as m,f as n,g as c,j as t,l as f,r as l,_ as p}from"./index-DOoAabap.js";import{R as u}from"./require-capability-BQvim5O5.js";import"./use-capability-DzFqA_ML.js";import"./access-gate-mN3wzjy_.js";import"./capability-load-error-CJeUoRGW.js";const g=l.lazy(()=>p(()=>import("./registry-layout-YlO9r3lS.js"),__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])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-DApjSDt2.js";import{cG as i}from"./index-DOoAabap.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-DApjSDt2.js";import{cG as u,aF as n}from"./index-DOoAabap.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +0,0 @@
1
- import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-DOoAabap.js";import{a as f}from"./index-BFL9nnAw.js";import"./index-C5jlCV2I.js";import"./use-mcp-client-DnwBQgtt.js";import"./collections-FCb6t5rG.js";import"./index-BnTkC4uZ.js";import"./use-virtual-mcp-B4ctZV2V.js";import"./use-collections-YdlS5GS5.js";import"./monaco-editor-xVGWgwtQ.js";import"./index-GEjv2UZA.js";import"./spinner-BiM6tNa6.js";import"./resizable-JcKp4uhd.js";import"./ZoomOut-BYuR8aeQ.js";import"./badge-f4YWnZL0.js";import"./select-DtexK_z5.js";import"./tooltip-DjQW44FW.js";import"./Check-pmcSX7Ds.js";import"./ChevronDown-C4k7LIxV.js";import"./ChevronUp-BYoitSH0.js";import"./view-mode-toggle-C_ukyuBD.js";import"./agent-icon-T0Pj37EB.js";import"./AlertCircle-C4TQxCvt.js";import"./Tool01-B3oBdSEQ.js";import"./SwitchHorizontal01-DXvf2f9m.js";import"./RefreshCcw01-BZNxVpdM.js";import"./XCircle-BzRD1Jd9.js";import"./ArrowUpRight-D_F85AmM.js";import"./ZapSquare-C5IO5ouL.js";import"./Users03-v_ItRW5T.js";import"./CheckCircle-3ECsT-zB.js";import"./ChevronLeft-BJhNWHOk.js";import"./ChevronRight-BNY74L1V.js";import"./DotsVertical-DJtuELuQ.js";import"./Container-DkRkONtL.js";import"./Eye-TeLMkAIt.js";import"./Globe01-DcV1IvQc.js";import"./FilterLines-C7Uh3aPq.js";import"./Star01-B0KVVYi_.js";import"./Palette-B6fuauoi.js";import"./HardDrive-hauprmZ4.js";import"./Stars02-CjwPUV9S.js";import"./Key01-BhvQgQvA.js";import"./LayoutLeft-CCjwztft.js";import"./LinkExternal01-C-EuIQk5.js";import"./Monitor01-C0AyFDoy.js";import"./Sun-DmvZNVcY.js";import"./Play-DwlSKe5K.js";import"./Plus-DgMianxx.js";import"./SearchMd-BX7CdT-X.js";import"./Settings02-QpROtTDF.js";import"./Shield01-EBH9mxXN.js";import"./Stars01-C-cJK68D.js";import"./Trash01-BMVrAqxq.js";import"./Upload01-CVliSV9e.js";import"./User01-BVUfnIdT.js";import"./Users01-D-4KurdS.js";import"./XClose-Cu1koOKq.js";import"./X-4DUZJqa0.js";import"./Zap-3U1K5cTy.js";import"./layout-BWEcMi1N.js";import"./index-DKWQ7z_t.js";import"./sidebar-B8xglaCl.js";import"./sheet-Ds2u6iNE.js";import"./use-connection-gDoBL3iK.js";import"./use-mcp-tools-BQmNGmmp.js";import"./dialog-B5s00-oF.js";import"./scroll-area-DOidgWV9.js";import"./index-CJt7pypa.js";import"./hover-card-QfPMM7-7.js";import"./dropdown-menu-BaJFpb9J.js";import"./integration-icon-ChFvmc9D.js";import"./accordion-D9YwMIzO.js";import"./index-vLnKQzUP.js";import"./empty-state-ZXtUjdxe.js";import"./create-sse-subscription-BS5983N4.js";import"./input-OGtZJjEE.js";function Bt(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{Bt as default};