decocms 3.26.0 → 3.26.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 (229) hide show
  1. package/dist/client/assets/{AlertCircle-BMxAKelA.js → AlertCircle-BDfUS-lh.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-DG7ncF7e.js → ArrowUpRight-8daK_Mrm.js} +1 -1
  3. package/dist/client/assets/{Check-DAsUax2A.js → Check-C9-fsV6-.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-DapdRT61.js → CheckCircle-B_rVd_l8.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-CvjjO4Q2.js → ChevronDown--2U1gfXf.js} +1 -1
  6. package/dist/client/assets/{ChevronLeft-Gs1RtiyX.js → ChevronLeft-TttN4toV.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-7dNKgA1Q.js → ChevronRight-BVEygGVH.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-Bfs32oa3.js → ChevronUp-C-xaVM7d.js} +1 -1
  9. package/dist/client/assets/{Container-BsPBqDvc.js → Container-Bso4WS0x.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-CXde2oS7.js → DotsVertical-Q3F6UWC_.js} +1 -1
  11. package/dist/client/assets/{Eye-D6bHaQr4.js → Eye-CKz6zS_m.js} +1 -1
  12. package/dist/client/assets/{FilterLines-BvkIR4mw.js → FilterLines-SKQT-eWL.js} +1 -1
  13. package/dist/client/assets/{Globe01-DmgjAJMv.js → Globe01-iupU5eqh.js} +1 -1
  14. package/dist/client/assets/{HardDrive-DHhWmtHD.js → HardDrive-DpuvbJvr.js} +1 -1
  15. package/dist/client/assets/{Key01-B6vkSFpA.js → Key01-6eW9IRFT.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-DNeQuoPU.js → LayoutLeft-BkxKKkMX.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-nh0BZS6k.js → LinkExternal01-BXhdtlT7.js} +1 -1
  18. package/dist/client/assets/{Monitor01-CL_JQxSE.js → Monitor01-DUICZH5i.js} +1 -1
  19. package/dist/client/assets/{Palette-DuVlRUl1.js → Palette-CS36Icvl.js} +1 -1
  20. package/dist/client/assets/{Play-BKWsBWVV.js → Play-CbbqvWPd.js} +1 -1
  21. package/dist/client/assets/{Plus--M57WnYY.js → Plus-CSNkL1o7.js} +1 -1
  22. package/dist/client/assets/{RefreshCcw01-9s8U4eT2.js → RefreshCcw01-Dncu-kYd.js} +1 -1
  23. package/dist/client/assets/{SearchMd-CydDKgfR.js → SearchMd-B-q2EsGW.js} +1 -1
  24. package/dist/client/assets/{Settings02-C0Vd7Zwk.js → Settings02-CdJ0CKrL.js} +1 -1
  25. package/dist/client/assets/{Shield01-DQezJsaZ.js → Shield01-Crgp73nV.js} +1 -1
  26. package/dist/client/assets/{Star01-BqKHEuRy.js → Star01-CN33xE6w.js} +1 -1
  27. package/dist/client/assets/{Stars01-B4X8b1Jx.js → Stars01-BXO9Nc4-.js} +1 -1
  28. package/dist/client/assets/{Stars02-D1g7u2cM.js → Stars02-B4CoQ82E.js} +1 -1
  29. package/dist/client/assets/{Sun-BVKwIX9x.js → Sun-CEzPQTAJ.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-CcFSgubQ.js → SwitchHorizontal01-BI_yHGXL.js} +1 -1
  31. package/dist/client/assets/{Tool01-BXNZh2qp.js → Tool01-R6WyaXsu.js} +1 -1
  32. package/dist/client/assets/{Trash01-2bR-uPSg.js → Trash01-C3pnsiws.js} +1 -1
  33. package/dist/client/assets/{Upload01-CSHw8GzO.js → Upload01-BHsRhr7X.js} +1 -1
  34. package/dist/client/assets/{User01-DkssIo5L.js → User01-JuGE_kA7.js} +1 -1
  35. package/dist/client/assets/{Users01-C4ys_X1V.js → Users01-BVUwP6xk.js} +1 -1
  36. package/dist/client/assets/{Users03-Ch0fsFZl.js → Users03-Bek4Ag3W.js} +1 -1
  37. package/dist/client/assets/{X-B_CzjCcZ.js → X-BdwzFded.js} +1 -1
  38. package/dist/client/assets/{XCircle-D6KmkB1w.js → XCircle-D_3MYOn4.js} +1 -1
  39. package/dist/client/assets/{XClose-CL_GGKfg.js → XClose-Da5LgJSi.js} +1 -1
  40. package/dist/client/assets/{Zap-C2NXr_2-.js → Zap-DHBAOmqP.js} +1 -1
  41. package/dist/client/assets/{ZapSquare-CXVEflpu.js → ZapSquare-CP91cLS8.js} +1 -1
  42. package/dist/client/assets/{ZoomOut-Ct_43S-M.js → ZoomOut-CaG3Pd1Z.js} +1 -1
  43. package/dist/client/assets/{access-gate-Cg_m2EkF.js → access-gate-AjUY-gkn.js} +1 -1
  44. package/dist/client/assets/{accordion-GNLNh1P7.js → accordion-JZC0q2Q6.js} +1 -1
  45. package/dist/client/assets/{add-section-modal-B25HWVt6.js → add-section-modal-B5en9ngD.js} +1 -1
  46. package/dist/client/assets/{agent-capabilities-CuO1YJHD.js → agent-capabilities-gx2lqG9R.js} +1 -1
  47. package/dist/client/assets/{agent-icon-BwP0Et7D.js → agent-icon-DAPplz1A.js} +1 -1
  48. package/dist/client/assets/{agent-icons-wvh0Gw6w.js → agent-icons-Dk-aO0GI.js} +1 -1
  49. package/dist/client/assets/{agents-list-BBrpBeUe.js → agents-list-Cqp5uusD.js} +1 -1
  50. package/dist/client/assets/{ai-providers-7gbB0ywA.js → ai-providers-DLs4iaPF.js} +1 -1
  51. package/dist/client/assets/{alert-CQ2VjRZO.js → alert-C04qeSRO.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-vI1Lu2-O.js → alert-dialog-Q8M8ngFf.js} +1 -1
  53. package/dist/client/assets/app-editor-CNA09iLR.js +1 -0
  54. package/dist/client/assets/{auth-catchall-BJ1IGDyu.js → auth-catchall-BbuGVKd9.js} +1 -1
  55. package/dist/client/assets/{auth-split-layout-Bw2IKgRr.js → auth-split-layout-sY7FyVQz.js} +1 -1
  56. package/dist/client/assets/{automation-list-row-CYm86TWt.js → automation-list-row-BRsSmcOA.js} +1 -1
  57. package/dist/client/assets/{automation-runs-Ti4wgD4j.js → automation-runs-gdpRnoA6.js} +1 -1
  58. package/dist/client/assets/{automations-CuSjGzDt.js → automations-zDSrpko2.js} +1 -1
  59. package/dist/client/assets/{avatar-B1sIFV2q.js → avatar-BqNGZrFg.js} +1 -1
  60. package/dist/client/assets/{badge-DRll7ujf.js → badge-BBLSXFe0.js} +1 -1
  61. package/dist/client/assets/{brand-context-ygYc4DVi.js → brand-context-Be4M-ZZ_.js} +1 -1
  62. package/dist/client/assets/{buckets-NpZ3I26S.js → buckets-D-k7xX4_.js} +1 -1
  63. package/dist/client/assets/{calendar-BY30pt7Q.js → calendar-CfY7gp-n.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-C-jFkOfs.js → capability-load-error-CjE005FF.js} +1 -1
  65. package/dist/client/assets/{card-CAuo8u4J.js → card-D41ULrnf.js} +1 -1
  66. package/dist/client/assets/{chat-context-B6nnSsoK.js → chat-context-BFmJRDzy.js} +1 -1
  67. package/dist/client/assets/{checkbox-VYmYnWwT.js → checkbox-CBmcFqoh.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-vRIn_eet.js → cli-auth-success-BcBQhgvD.js} +1 -1
  69. package/dist/client/assets/{collection-detail-BRiBfXt1.js → collection-detail-kkp2noDH.js} +1 -1
  70. package/dist/client/assets/{collection-display-button-C1vhuWIV.js → collection-display-button-BNfKMIgL.js} +1 -1
  71. package/dist/client/assets/{collection-search-D_ABFSJm.js → collection-search-CDLcWLfd.js} +1 -1
  72. package/dist/client/assets/{collection-table-wrapper-TsgGm401.js → collection-table-wrapper-DrTvLn6R.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-B3byPZ-7.js → collection-tabs-CbZbTMYY.js} +1 -1
  74. package/dist/client/assets/{collections-DOXzzPSi.js → collections-BxDJ4z3g.js} +1 -1
  75. package/dist/client/assets/{command-Cb4o9tFP.js → command-B8qtKAnE.js} +1 -1
  76. package/dist/client/assets/{connect-desktop-dialog-D32QDb7y.js → connect-desktop-dialog-CDUh5Otr.js} +1 -1
  77. package/dist/client/assets/{connection-card-B5aPn-kF.js → connection-card-CSsbMtfE.js} +1 -1
  78. package/dist/client/assets/{connection-detail-DvVq9GrZ.js → connection-detail-E_AC0EPN.js} +1 -1
  79. package/dist/client/assets/{connection-form-helpers-C9KldO7w.js → connection-form-helpers-BonOFyzw.js} +1 -1
  80. package/dist/client/assets/{connections-BHJKqb2r.js → connections-Ca9YMoFm.js} +1 -1
  81. package/dist/client/assets/{decopilot-sse-pool-PkZWgl1b.js → decopilot-sse-pool-BHhoQKaF.js} +1 -1
  82. package/dist/client/assets/{dialog-DuSQekhR.js → dialog-Cwf6uY_y.js} +1 -1
  83. package/dist/client/assets/{domain-settings-D_UpnRy3.js → domain-settings-oLlPZ4Z3.js} +1 -1
  84. package/dist/client/assets/{drawer-Bg-jxDzw.js → drawer-CF0b7Dg3.js} +1 -1
  85. package/dist/client/assets/{dropdown-menu-CARiw96O.js → dropdown-menu-UGlYpK18.js} +1 -1
  86. package/dist/client/assets/{dynamic-plugin-layout-Cg6MQn9A.js → dynamic-plugin-layout-V_3blVro.js} +1 -1
  87. package/dist/client/assets/{empty-state-BFRGvQJV.js → empty-state-CoXt5rYF.js} +1 -1
  88. package/dist/client/assets/{empty-state-Bf0CnRmM.js → empty-state-h_qXtgbw.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-BQN0XcpU.js → extract-connection-data-BKeaLULt.js} +1 -1
  90. package/dist/client/assets/{features-CbGxHgM5.js → features-u4e9ViPZ.js} +1 -1
  91. package/dist/client/assets/{file-explorer-CfWG7uq-.js → file-explorer-BHKOSo2p.js} +1 -1
  92. package/dist/client/assets/{file-type-icon-BjW0X7UA.js → file-type-icon-7TqtrpuQ.js} +1 -1
  93. package/dist/client/assets/{files-BexoaUh4.js → files-C9p4yssc.js} +1 -1
  94. package/dist/client/assets/{form-BvjKd_au.js → form-Bbpyf2N_.js} +1 -1
  95. package/dist/client/assets/{general-C2Wo2LII.js → general-DqO6G3WI.js} +1 -1
  96. package/dist/client/assets/{generate-id-DinZwiHf.js → generate-id-BHe5yw90.js} +1 -1
  97. package/dist/client/assets/{github-repo-picker-BYZynVZd.js → github-repo-picker-CVG2zsbh.js} +1 -1
  98. package/dist/client/assets/{header-tab-button-vCaN7_p9.js → header-tab-button-t5WNjrVG.js} +1 -1
  99. package/dist/client/assets/{hover-card-BkNpxP5y.js → hover-card-Azyk5Kxa.js} +1 -1
  100. package/dist/client/assets/{image-field-BcDmX0lb.js → image-field-CXkzTwa7.js} +1 -1
  101. package/dist/client/assets/{index-Ltotqxx3.js → index-B_tO_wVS.js} +1 -1
  102. package/dist/client/assets/{index-XT2ypj9o.js → index-Bjie-Vum.js} +1 -1
  103. package/dist/client/assets/{index-BqYAHqUy.js → index-CAs8iq4o.js} +1 -1
  104. package/dist/client/assets/{index-D_9lHNft.js → index-CiRQNPVt.js} +26 -26
  105. package/dist/client/assets/{index-DqgJBP88.js → index-Co-NpkaC.js} +1 -1
  106. package/dist/client/assets/{index-EkC6Wgvu.js → index-CwyiLbkO.js} +1 -1
  107. package/dist/client/assets/{index-C8ak9QK4.js → index-DCeOX6CY.js} +1 -1
  108. package/dist/client/assets/{index-DFGtbhNW.js → index-DJTEqPXf.js} +1 -1
  109. package/dist/client/assets/{index-D0Rl33jh.js → index-DbpajCnQ.js} +1 -1
  110. package/dist/client/assets/{index-TdafCTTv.js → index-DcI1sEv_.js} +1 -1
  111. package/dist/client/assets/{index-BV60pfZO.js → index-Dci2MWs9.js} +1 -1
  112. package/dist/client/assets/{index-CqIGcVM5.js → index-DkWynf6r.js} +4 -4
  113. package/dist/client/assets/{index-mPhRDxKC.js → index-f0X8ef8k.js} +1 -1
  114. package/dist/client/assets/{index-redirect-iDZ7rdjA.js → index-redirect-D6d28r6b.js} +1 -1
  115. package/dist/client/assets/{index-BHO4w1u1.js → index-skFG1_ns.js} +1 -1
  116. package/dist/client/assets/{index--csa0NIE.js → index-sqqDCA0K.js} +1 -1
  117. package/dist/client/assets/{infiniteQueryObserver-LkZo4FLa.js → infiniteQueryObserver-BND7fiNU.js} +1 -1
  118. package/dist/client/assets/{input-qZmHVwVk.js → input-D3E6n6la.js} +1 -1
  119. package/dist/client/assets/{integration-icon-C1U-qRrw.js → integration-icon-vaGvNHHz.js} +1 -1
  120. package/dist/client/assets/{label-CaQIF3sq.js → label-DLUhXNk7.js} +1 -1
  121. package/dist/client/assets/{layout-CXMrfa7S.js → layout-PdamBSR0.js} +1 -1
  122. package/dist/client/assets/{login-CrnaKNOH.js → login-CX7WJC_U.js} +1 -1
  123. package/dist/client/assets/{members-uoozZ2e_.js → members-Bw9vSm5N.js} +1 -1
  124. package/dist/client/assets/{monaco-editor-DHDkzYxT.js → monaco-editor-Bgzj9gt4.js} +1 -1
  125. package/dist/client/assets/{monitoring-stats-row-BSw7UeX-.js → monitoring-stats-row-DOXVZiRZ.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-BUbb-Yxh.js → oauth-callback-Cfp_JeoH.js} +1 -1
  127. package/dist/client/assets/{oauth-callback-ai-provider-CS14SoU4.js → oauth-callback-ai-provider-DOmF-VOd.js} +1 -1
  128. package/dist/client/assets/{onboarding-46pq3q4-.js → onboarding-C4KH1uOA.js} +1 -1
  129. package/dist/client/assets/{org-install-B2vwkCv6.js → org-install-CrBGOT0T.js} +1 -1
  130. package/dist/client/assets/{org-layout-Ciofbts8.js → org-layout-BCdmD1Ye.js} +1 -1
  131. package/dist/client/assets/{org-plugin-layout-DMOWWtN5.js → org-plugin-layout-shv3-lWc.js} +1 -1
  132. package/dist/client/assets/{page-seo-form-E8Xuu6pU.js → page-seo-form-qANN0Bj1.js} +1 -1
  133. package/dist/client/assets/page-seo-sheet-D4wNk0RY.js +1 -0
  134. package/dist/client/assets/{pair-BECiICOf.js → pair-CpEuUIpQ.js} +1 -1
  135. package/dist/client/assets/{plugin-empty-state-proif5Kw.js → plugin-empty-state-CrO1kZyK.js} +1 -1
  136. package/dist/client/assets/{plugin-header-DiKWwicN.js → plugin-header-DTTyXwvF.js} +1 -1
  137. package/dist/client/assets/{plugin-layout-jEsqtIvi.js → plugin-layout-CXygrV9H.js} +1 -1
  138. package/dist/client/assets/{popover-DxfiKqtN.js → popover-C1MgHMHU.js} +1 -1
  139. package/dist/client/assets/{post-editor-Cd_fTA44.js → post-editor-aLUVDKW-.js} +1 -1
  140. package/dist/client/assets/{primitives-BTOBsqmw.js → primitives-BBsQqWkR.js} +1 -1
  141. package/dist/client/assets/{profile-BqAyYu-M.js → profile-CjQ0lj2q.js} +1 -1
  142. package/dist/client/assets/{project-app-view-DmLtoqnJ.js → project-app-view-Br1j175t.js} +1 -1
  143. package/dist/client/assets/record-editor-QHa9iaw5.js +1 -0
  144. package/dist/client/assets/registry-BkLh6mX8.js +2 -0
  145. package/dist/client/assets/{registry-layout-BG3AnslH.js → registry-layout-CHn-aQtX.js} +1 -1
  146. package/dist/client/assets/{require-capability-Dt_vTM1Z.js → require-capability-vzDtNqMc.js} +1 -1
  147. package/dist/client/assets/{required-auth-layout-BDfnx0GP.js → required-auth-layout-BE5eceMw.js} +1 -1
  148. package/dist/client/assets/{reset-password-ChN7Tqyl.js → reset-password-8Qbe0fKB.js} +1 -1
  149. package/dist/client/assets/{resizable-BI-r4qXK.js → resizable-CrMJy22o.js} +1 -1
  150. package/dist/client/assets/{roles-CFYhpHcN.js → roles-BRTHcf_Y.js} +1 -1
  151. package/dist/client/assets/save-referenced-block-CBTtXYiM.js +1 -0
  152. package/dist/client/assets/{save-status-CawBXVDE.js → save-status-BZf4M3tc.js} +1 -1
  153. package/dist/client/assets/{schema-form-BjXF8RK3.js → schema-form-DNuUk0WJ.js} +1 -1
  154. package/dist/client/assets/{scroll-area-DVMjy47-.js → scroll-area-verb-Y8E.js} +1 -1
  155. package/dist/client/assets/{search-input-CkhxfIsR.js → search-input-CZKc9XZR.js} +1 -1
  156. package/dist/client/assets/{secrets-CbQdoHgM.js → secrets-ScbIQJha.js} +1 -1
  157. package/dist/client/assets/{sections-editor-DV3kpz03.js → sections-editor-CysGozit.js} +1 -1
  158. package/dist/client/assets/{select-PSSPlsU1.js → select-BMX9jvQG.js} +1 -1
  159. package/dist/client/assets/{select-model-BpdSBLsc.js → select-model-BB2-8k_v.js} +1 -1
  160. package/dist/client/assets/{seo-editor-Jt9dbhQY.js → seo-editor-gLS5nwCw.js} +1 -1
  161. package/dist/client/assets/{settings-layout-DzzgWBAF.js → settings-layout-EdgjO8iZ.js} +1 -1
  162. package/dist/client/assets/{settings-section-DX6xMsTR.js → settings-section-CQW36fJV.js} +1 -1
  163. package/dist/client/assets/{sheet-Oks1OcjX.js → sheet-Utq51ofH.js} +1 -1
  164. package/dist/client/assets/{shell-controls-DdX5BU8v.js → shell-controls-CXM2LvTp.js} +1 -1
  165. package/dist/client/assets/{shell-layout-H6jARH8O.js → shell-layout-3b4NfWya.js} +1 -1
  166. package/dist/client/assets/{shell-route-loading-CnyyKxEP.js → shell-route-loading-DSfyT3dO.js} +1 -1
  167. package/dist/client/assets/{sidebar-BwviWuqz.js → sidebar-BBqRosV0.js} +1 -1
  168. package/dist/client/assets/{skeleton-CmlQmFqJ.js → skeleton-dQOYuNlQ.js} +1 -1
  169. package/dist/client/assets/{sortable.esm-DVw3F56v.js → sortable.esm-D7AgS_lX.js} +1 -1
  170. package/dist/client/assets/{spinner-BbBMNj3j.js → spinner-_hqWpG0c.js} +1 -1
  171. package/dist/client/assets/{sso-bQ7a4Wkw.js → sso-Cg_UsaPg.js} +1 -1
  172. package/dist/client/assets/{store-Bsg-sLwK.js → store-BIRCadh0.js} +1 -1
  173. package/dist/client/assets/store-registry-Duulq-Qg.js +2 -0
  174. package/dist/client/assets/{switch-BRhAphGZ.js → switch-CTAzWsjZ.js} +1 -1
  175. package/dist/client/assets/{tab-id-GrYtygnH.js → tab-id-C7unjelb.js} +1 -1
  176. package/dist/client/assets/{table-BnrXHE8K.js → table-BuLHtfTA.js} +1 -1
  177. package/dist/client/assets/{tabs-D_s13ChS.js → tabs-DVd_y6YL.js} +1 -1
  178. package/dist/client/assets/{task-status-COlFRUCZ.js → task-status-5oHTrkjV.js} +1 -1
  179. package/dist/client/assets/{textarea-RGerMgoO.js → textarea-D1h5iq3D.js} +1 -1
  180. package/dist/client/assets/{toggle-group-CU0v81Ih.js → toggle-group-vA7ktrP-.js} +1 -1
  181. package/dist/client/assets/{toolbar-DI4zFcGt.js → toolbar-D3G0G9U8.js} +1 -1
  182. package/dist/client/assets/{tools-list-B0AstuUA.js → tools-list-BL4u8QMN.js} +1 -1
  183. package/dist/client/assets/{tooltip-Dxcglul8.js → tooltip-C47QSg8i.js} +1 -1
  184. package/dist/client/assets/{types-DyZd0-8M.js → types-Df_Z2FUK.js} +1 -1
  185. package/dist/client/assets/{use-ai-providers-YGnfRGj2.js → use-ai-providers-Bwbur0GT.js} +1 -1
  186. package/dist/client/assets/{use-automations-WJfWe2eO.js → use-automations-B9mdkXiu.js} +1 -1
  187. package/dist/client/assets/{use-capability-DicDY0V0.js → use-capability-1uxC8-oZ.js} +1 -1
  188. package/dist/client/assets/{use-collections-BhIpSec0.js → use-collections-B1Mg9Y32.js} +1 -1
  189. package/dist/client/assets/{use-connection-DyEd_53i.js → use-connection-DpxWBF4Y.js} +1 -1
  190. package/dist/client/assets/{use-copy-BWRM1GFQ.js → use-copy-B_uLjrw6.js} +1 -1
  191. package/dist/client/assets/{use-create-virtual-mcp-LyDs-RK7.js → use-create-virtual-mcp-BBxov1Li.js} +1 -1
  192. package/dist/client/assets/{use-debounced-autosave-CyJDtE_p.js → use-debounced-autosave-DDZnxori.js} +1 -1
  193. package/dist/client/assets/{use-delete-connection-DPGLjHu6.js → use-delete-connection-eQCNxdaR.js} +1 -1
  194. package/dist/client/assets/{use-file-configs-DW8b63k1.js → use-file-configs-o-LP0Blk.js} +1 -1
  195. package/dist/client/assets/{use-infinite-scroll-Bjr74B_I.js → use-infinite-scroll-D8iZFAEQ.js} +1 -1
  196. package/dist/client/assets/{use-list-state-DA4uW5-F.js → use-list-state-BkETzhj1.js} +1 -1
  197. package/dist/client/assets/{use-mcp-client-D2Esndjo.js → use-mcp-client-D0A6RZFw.js} +1 -1
  198. package/dist/client/assets/{use-mcp-prompts-aNKdmxr5.js → use-mcp-prompts-BuV5LRNr.js} +1 -1
  199. package/dist/client/assets/{use-mcp-tools-w8wkQWHv.js → use-mcp-tools-BTzw-W77.js} +1 -1
  200. package/dist/client/assets/{use-members-Cjg6uzGv.js → use-members-DDVaE5yQ.js} +1 -1
  201. package/dist/client/assets/{use-navigate-to-agent-C4slAg0v.js → use-navigate-to-agent-Drh7z3D_.js} +1 -1
  202. package/dist/client/assets/{use-org-auth-client-CP1VkpDC.js → use-org-auth-client-BlGBETGB.js} +1 -1
  203. package/dist/client/assets/{use-org-sso-BvlZOUK0.js → use-org-sso-nq4qWMpD.js} +1 -1
  204. package/dist/client/assets/{use-organization-roles-O_efgibr.js → use-organization-roles-i1o2TOl8.js} +1 -1
  205. package/dist/client/assets/{use-organization-settings-BKtE3g0_.js → use-organization-settings-PADdytdf.js} +1 -1
  206. package/dist/client/assets/{use-registry-connections-ma81Jd27.js → use-registry-connections-C0VEE_YX.js} +1 -1
  207. package/dist/client/assets/{use-secrets-BReddp3W.js → use-secrets-DZDUsUGC.js} +1 -1
  208. package/dist/client/assets/{use-status-sounds-_5ZyXBn9.js → use-status-sounds-DR8WA3PU.js} +1 -1
  209. package/dist/client/assets/{use-view-mode-D08IYWya.js → use-view-mode-BpduDYTq.js} +1 -1
  210. package/dist/client/assets/{use-virtual-mcp-CUzlEmy7.js → use-virtual-mcp-DciRKx1X.js} +1 -1
  211. package/dist/client/assets/useInfiniteQuery-C1jLiRqA.js +1 -0
  212. package/dist/client/assets/{useRouterState-Dm4Ahsuz.js → useRouterState-BXwm4DCl.js} +1 -1
  213. package/dist/client/assets/useSuspenseInfiniteQuery-CHLM-3cW.js +1 -0
  214. package/dist/client/assets/{user-5CeIpkMN.js → user-DaO6RYsc.js} +1 -1
  215. package/dist/client/assets/{view-mode-toggle-B6EFa13S.js → view-mode-toggle-B-ZBNJWV.js} +1 -1
  216. package/dist/client/assets/{workflow-D7hXr9W_.js → workflow-C3zNP9N8.js} +1 -1
  217. package/dist/client/assets/workflow-detail-CFwJ5L9v.js +1 -0
  218. package/dist/client/index.html +1 -1
  219. package/dist/server/cli.js +1 -1
  220. package/package.json +1 -1
  221. package/dist/client/assets/app-editor-XoC0K6nd.js +0 -1
  222. package/dist/client/assets/page-seo-sheet-CsEDXdX4.js +0 -1
  223. package/dist/client/assets/record-editor-D19UicJW.js +0 -1
  224. package/dist/client/assets/registry-m_YtY1sy.js +0 -2
  225. package/dist/client/assets/save-referenced-block-DPW9loZT.js +0 -1
  226. package/dist/client/assets/store-registry-BRkp9_j0.js +0 -2
  227. package/dist/client/assets/useInfiniteQuery-ZzAx8SRK.js +0 -1
  228. package/dist/client/assets/useSuspenseInfiniteQuery-Bt3Ej1B7.js +0 -1
  229. package/dist/client/assets/workflow-detail-B3ObK6-G.js +0 -1
@@ -1 +1 @@
1
- import{e as S,g as T,j as s,q as W,b7 as X,c as w,F as Y,P as F,t as H,a2 as Q,b as D,l as Z,r as ee,O as se}from"./index-D_9lHNft.js";import{u as J}from"./useRouterState-Dm4Ahsuz.js";import{S as te,a as le,b as re,e as I,f as A,g as L,c as B,d as R,i as ie,j as ne}from"./sidebar-BwviWuqz.js";import{a as oe}from"./index-BV60pfZO.js";import{n as ae,b as ce,a as me,c as fe,d as de,i as K}from"./ZapSquare-CXVEflpu.js";import{t as be,a as E}from"./Users03-Ch0fsFZl.js";import{i as xe}from"./HardDrive-DHhWmtHD.js";import{i as ue}from"./Key01-B6vkSFpA.js";import{i as he}from"./Shield01-DQezJsaZ.js";import{s as ge}from"./User01-DkssIo5L.js";import{i as G}from"./Zap-C2NXr_2-.js";import{a as pe}from"./use-capability-DicDY0V0.js";import{u as U}from"./tooltip-Dxcglul8.js";import{u as je}from"./use-status-sounds-_5ZyXBn9.js";import{a as y}from"./toolbar-DI4zFcGt.js";import{S as _e,M as ye}from"./shell-controls-DdX5BU8v.js";import"./LayoutLeft-DNeQuoPU.js";import"./sheet-Oks1OcjX.js";import"./X-B_CzjCcZ.js";import"./question-004-sINsf4GQ.js";import"./decopilot-sse-pool-PkZWgl1b.js";import"./create-sse-subscription-BS5983N4.js";import"./ChevronLeft-Gs1RtiyX.js";import"./ChevronRight-7dNKgA1Q.js";function V(){const e=S.c(26),t=W().project;let n;e[0]!==t.enabledPlugins?(n=t.enabledPlugins??[],e[0]=t.enabledPlugins,e[1]=n):n=e[1];const l=n,{capabilities:i,isPrivileged:r,loading:o,error:a}=pe();let c,d;if(e[2]!==i||e[3]!==l||e[4]!==a||e[5]!==r||e[6]!==o){d=Symbol.for("react.early_return_sentinel");e:{let m;e[9]!==l?(m=q=>l.includes(q.pluginId),e[9]=l,e[10]=m):m=e[10];const h=X.filter(m).map(ve);let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(be,{size:14}),e[11]=b):b=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(ae,{size:14}),e[12]=f):f=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ce,{size:14}),e[13]=x):x=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(ue,{size:14}),e[14]=g):g=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(xe,{size:14}),e[15]=p):p=e[15];let u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(me,{size:14}),e[16]=u):u=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(E,{size:14}),e[17]=_):_=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(G,{size:14}),e[18]=j):j=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(fe,{size:14}),e[19]=v):v=e[19];let N;e[20]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(de,{size:14}),e[20]=N):N=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(E,{size:14}),e[21]=k):k=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(he,{size:14}),e[22]=$):$=e[22];let z;e[23]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Y,{size:14}),e[23]=z):z=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(G,{size:14}),e[24]=C):C=e[24];let P;e[25]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(ge,{size:14}),e[25]=P):P=e[25];const O=[{label:"Organization",items:[{key:"general",label:"General",icon:b,to:"/$org/settings/general",requires:"org:manage"},{key:"brand-context",label:"Brand Context",icon:f,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:"AI Providers",icon:x,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:"Secrets",icon:g,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:"Buckets",icon:p,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{label:"Build",items:[{key:"connections",label:"Connections",icon:u,to:"/$org/settings/connections"},{key:"agents",label:"Agents",icon:_,to:"/$org/settings/agents"},{key:"automations",label:"Automations",icon:j,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:"Store",icon:v,to:"/$org/settings/store",requires:"registry:manage"}]},{label:"Manage",items:[{key:"monitor",label:"Monitor",icon:N,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:"Members",icon:k,to:"/$org/settings/members",requires:"members:manage"},{key:"roles",label:"Roles",icon:$,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:"Security",icon:z,to:"/$org/settings/sso",requires:"org:manage"}]},{label:"Extensions",items:[{key:"features",label:"Plugins",icon:C,to:"/$org/settings/features",requires:"org:manage"},...h]},{label:"Account",items:[{key:"profile",label:"Profile & Preferences",icon:P,to:"/$org/settings/profile"}]}];if(o||a){d=O;break e}c=O.map(q=>({...q,items:q.items.filter(M=>M.privilegedOnly?r:M.requires?r||i[M.requires]:!0)})).filter(Se)}e[2]=i,e[3]=l,e[4]=a,e[5]=r,e[6]=o,e[7]=c,e[8]=d}else c=e[7],d=e[8];return d!==Symbol.for("react.early_return_sentinel")?d:c}function Se(e){return e.items.length>0}function ve(e){const{key:t,label:n,icon:l,to:i}=e;return{key:t,label:n,icon:l,to:i}}function Ne(){const e=S.c(19),t=V();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:l}=T(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:$e},e[1]=i):i=e[1];const r=J(i);let o;e[2]!==l||e[3]!==r?(o=x=>{const g=x.replace("$org",l);return r.startsWith(g)},e[2]=l,e[3]=r,e[4]=o):o=e[4];const a=o;let c;if(e[5]!==t||e[6]!==a||e[7]!==l){let x;e[9]!==a||e[10]!==l?(x=(g,p)=>s.jsxs(I,{className:"pt-0 pr-0 pb-0 pl-0",children:[g.label&&s.jsx("p",{className:w("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:g.label}),s.jsx(A,{children:s.jsx(L,{className:"gap-0.5",children:g.items.map(u=>s.jsx(B,{children:s.jsx(R,{asChild:!0,isActive:a(u.to),children:s.jsxs(F,{to:u.to,params:{org:l},onClick:()=>H("settings_nav_clicked",{section_key:u.key,section_label:u.label,group_label:g.label||"main"}),className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:u.icon}),s.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},`${g.label}-${p}`),e[9]=a,e[10]=l,e[11]=x):x=e[11],c=t.map(x),e[5]=t,e[6]=a,e[7]=l,e[8]=c}else c=e[8];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[12]=d):d=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsxs(I,{className:"pt-0 pr-0 pb-0 pl-0",children:[d,s.jsx(A,{children:s.jsx(L,{className:"gap-0.5",children:s.jsx(B,{children:s.jsxs(R,{onClick:ke,className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(K,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})})})})]}),e[13]=m):m=e[13];let h;e[14]!==c?(h=s.jsxs(ie,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[c,m]}),e[14]=c,e[15]=h):h=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"mt-auto px-4 pb-1",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","3.26.0"]})}),e[16]=b):b=e[16];let f;return e[17]!==h?(f=s.jsxs(ne,{variant:"sidebar",children:[h,b]}),e[17]=h,e[18]=f):f=e[18],f}function ke(){H("signed_out",{source:"settings_sidebar"}),Q(),D.signOut()}function $e(e){return e.location.pathname}function ze(e){const t=S.c(21),{onClose:n}=e,l=V();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org"},t[0]=i):i=t[0];const{org:r}=T(i);let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o={select:Pe},t[1]=o):o=t[1];const a=J(o);let c;t[2]!==r||t[3]!==a?(c=p=>{const u=p.replace("$org",r);return a.startsWith(u)},t[2]=r,t[3]=a,t[4]=c):c=t[4];const d=c;let m;if(t[5]!==l||t[6]!==d||t[7]!==n||t[8]!==r){let p;t[10]!==d||t[11]!==n||t[12]!==r?(p=(u,_)=>s.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.label&&s.jsx("p",{className:w("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",_>0&&"mt-3"),children:u.label}),u.items.map(j=>s.jsxs(F,{to:j.to,params:{org:r},onClick:n,className:w("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",d(j.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[s.jsx("span",{className:"shrink-0",children:j.icon}),s.jsx("span",{className:"truncate",children:j.label})]},j.key))]},`${u.label}-${_}`),t[10]=d,t[11]=n,t[12]=r,t[13]=p):p=t[13],m=l.map(p),t[5]=l,t[6]=d,t[7]=n,t[8]=r,t[9]=m}else m=t[9];let h;t[14]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("div",{className:"h-px bg-border/50 my-2"}),t[14]=h):h=t[14];let b;t[15]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[h,s.jsxs("button",{type:"button",onClick:Ce,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("span",{className:"shrink-0",children:s.jsx(K,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})]}),t[15]=b):b=t[15];let f;t[16]!==m?(f=s.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[m,b]}),t[16]=m,t[17]=f):f=t[17];let x;t[18]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","3.26.0"]})}),t[18]=x):x=t[18];let g;return t[19]!==f?(g=s.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[f,x]}),t[19]=f,t[20]=g):g=t[20],g}function Ce(){Q(),D.signOut()}function Pe(e){return e.location.pathname}function qe(){const e=S.c(4),t=U(),{org:n}=W();je(n.slug);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Z,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=l):l=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ee.Suspense,{fallback:l,children:s.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:s.jsx(oe,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(se,{})})})})}),e[1]=i):i=e[1];const r=i;if(t){let a;return e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:r}),e[2]=a):a=e[2],a}let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-h-0 p-1",children:s.jsx("div",{className:w("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:r})}),e[3]=o):o=e[3],o}function ts(){const e=S.c(22),t=U();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(y.LogoLink,{}),e[0]=n):n=e[0];let l;e[1]!==t?(l=t&&s.jsx(_e,{}),e[1]=t,e[2]=l):l=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("span",{className:"hidden md:contents",children:s.jsx(y.Nav,{})}),e[3]=i):i=e[3];let r;e[4]!==l?(r=s.jsxs(y.LeftColumn,{children:[n,l,i]}),e[4]=l,e[5]=r):r=e[5];let o;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(y.CenterSlot,{}),e[6]=o):o=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(y.RightColumn,{children:s.jsx("span",{})}),e[7]=a):a=e[7];let c;e[8]!==r?(c=s.jsxs(y.Header,{children:[r,o,a]}),e[8]=r,e[9]=c):c=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d={"--sidebar-width-icon":"3.5rem"},e[10]=d):d=e[10];let m;e[11]!==t?(m=!t&&s.jsx(Ne,{}),e[11]=t,e[12]=m):m=e[12];let h;e[13]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(te,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:s.jsx(qe,{})}),e[13]=h):h=e[13];let b;e[14]!==m?(b=s.jsxs(le,{className:"flex-1 bg-sidebar min-h-0",style:d,children:[m,h]}),e[14]=m,e[15]=b):b=e[15];let f;e[16]!==t?(f=t&&s.jsx(ye,{renderSidebar:we}),e[16]=t,e[17]=f):f=e[17];let x;return e[18]!==b||e[19]!==f||e[20]!==c?(x=s.jsx(y.Provider,{children:s.jsx(re,{defaultOpen:!0,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[c,b,f]})})}),e[18]=b,e[19]=f,e[20]=c,e[21]=x):x=e[21],x}function we(e){const{onClose:t}=e;return s.jsx(ze,{onClose:t})}export{Ne as SettingsSidebar,ze as SettingsSidebarMobile,ts as default};
1
+ import{e as S,g as T,j as s,q as W,b7 as X,c as w,F as Y,P as F,t as H,a2 as Q,b as D,l as Z,r as ee,O as se}from"./index-CiRQNPVt.js";import{u as J}from"./useRouterState-BXwm4DCl.js";import{S as te,a as le,b as re,e as I,f as A,g as L,c as B,d as R,i as ie,j as ne}from"./sidebar-BBqRosV0.js";import{a as oe}from"./index-Dci2MWs9.js";import{n as ae,b as ce,a as me,c as fe,d as de,i as K}from"./ZapSquare-CP91cLS8.js";import{t as be,a as E}from"./Users03-Bek4Ag3W.js";import{i as xe}from"./HardDrive-DpuvbJvr.js";import{i as ue}from"./Key01-6eW9IRFT.js";import{i as he}from"./Shield01-Crgp73nV.js";import{s as ge}from"./User01-JuGE_kA7.js";import{i as G}from"./Zap-DHBAOmqP.js";import{a as pe}from"./use-capability-1uxC8-oZ.js";import{u as U}from"./tooltip-C47QSg8i.js";import{u as je}from"./use-status-sounds-DR8WA3PU.js";import{a as y}from"./toolbar-D3G0G9U8.js";import{S as _e,M as ye}from"./shell-controls-CXM2LvTp.js";import"./LayoutLeft-BkxKKkMX.js";import"./sheet-Utq51ofH.js";import"./X-BdwzFded.js";import"./question-004-sINsf4GQ.js";import"./decopilot-sse-pool-BHhoQKaF.js";import"./create-sse-subscription-BS5983N4.js";import"./ChevronLeft-TttN4toV.js";import"./ChevronRight-BVEygGVH.js";function V(){const e=S.c(26),t=W().project;let n;e[0]!==t.enabledPlugins?(n=t.enabledPlugins??[],e[0]=t.enabledPlugins,e[1]=n):n=e[1];const l=n,{capabilities:i,isPrivileged:r,loading:o,error:a}=pe();let c,d;if(e[2]!==i||e[3]!==l||e[4]!==a||e[5]!==r||e[6]!==o){d=Symbol.for("react.early_return_sentinel");e:{let m;e[9]!==l?(m=q=>l.includes(q.pluginId),e[9]=l,e[10]=m):m=e[10];const h=X.filter(m).map(ve);let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(be,{size:14}),e[11]=b):b=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(ae,{size:14}),e[12]=f):f=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ce,{size:14}),e[13]=x):x=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(ue,{size:14}),e[14]=g):g=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(xe,{size:14}),e[15]=p):p=e[15];let u;e[16]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(me,{size:14}),e[16]=u):u=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(E,{size:14}),e[17]=_):_=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(G,{size:14}),e[18]=j):j=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(fe,{size:14}),e[19]=v):v=e[19];let N;e[20]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(de,{size:14}),e[20]=N):N=e[20];let k;e[21]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(E,{size:14}),e[21]=k):k=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(he,{size:14}),e[22]=$):$=e[22];let z;e[23]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Y,{size:14}),e[23]=z):z=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(G,{size:14}),e[24]=C):C=e[24];let P;e[25]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(ge,{size:14}),e[25]=P):P=e[25];const O=[{label:"Organization",items:[{key:"general",label:"General",icon:b,to:"/$org/settings/general",requires:"org:manage"},{key:"brand-context",label:"Brand Context",icon:f,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:"AI Providers",icon:x,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"secrets",label:"Secrets",icon:g,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"buckets",label:"Buckets",icon:p,to:"/$org/settings/buckets",requires:"file-configs:manage"}]},{label:"Build",items:[{key:"connections",label:"Connections",icon:u,to:"/$org/settings/connections"},{key:"agents",label:"Agents",icon:_,to:"/$org/settings/agents"},{key:"automations",label:"Automations",icon:j,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:"Store",icon:v,to:"/$org/settings/store",requires:"registry:manage"}]},{label:"Manage",items:[{key:"monitor",label:"Monitor",icon:N,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:"Members",icon:k,to:"/$org/settings/members",requires:"members:manage"},{key:"roles",label:"Roles",icon:$,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:"Security",icon:z,to:"/$org/settings/sso",requires:"org:manage"}]},{label:"Extensions",items:[{key:"features",label:"Plugins",icon:C,to:"/$org/settings/features",requires:"org:manage"},...h]},{label:"Account",items:[{key:"profile",label:"Profile & Preferences",icon:P,to:"/$org/settings/profile"}]}];if(o||a){d=O;break e}c=O.map(q=>({...q,items:q.items.filter(M=>M.privilegedOnly?r:M.requires?r||i[M.requires]:!0)})).filter(Se)}e[2]=i,e[3]=l,e[4]=a,e[5]=r,e[6]=o,e[7]=c,e[8]=d}else c=e[7],d=e[8];return d!==Symbol.for("react.early_return_sentinel")?d:c}function Se(e){return e.items.length>0}function ve(e){const{key:t,label:n,icon:l,to:i}=e;return{key:t,label:n,icon:l,to:i}}function Ne(){const e=S.c(19),t=V();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:l}=T(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:$e},e[1]=i):i=e[1];const r=J(i);let o;e[2]!==l||e[3]!==r?(o=x=>{const g=x.replace("$org",l);return r.startsWith(g)},e[2]=l,e[3]=r,e[4]=o):o=e[4];const a=o;let c;if(e[5]!==t||e[6]!==a||e[7]!==l){let x;e[9]!==a||e[10]!==l?(x=(g,p)=>s.jsxs(I,{className:"pt-0 pr-0 pb-0 pl-0",children:[g.label&&s.jsx("p",{className:w("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:g.label}),s.jsx(A,{children:s.jsx(L,{className:"gap-0.5",children:g.items.map(u=>s.jsx(B,{children:s.jsx(R,{asChild:!0,isActive:a(u.to),children:s.jsxs(F,{to:u.to,params:{org:l},onClick:()=>H("settings_nav_clicked",{section_key:u.key,section_label:u.label,group_label:g.label||"main"}),className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:u.icon}),s.jsx("span",{className:"truncate",children:u.label})]})})},u.key))})})]},`${g.label}-${p}`),e[9]=a,e[10]=l,e[11]=x):x=e[11],c=t.map(x),e[5]=t,e[6]=a,e[7]=l,e[8]=c}else c=e[8];let d;e[12]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[12]=d):d=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsxs(I,{className:"pt-0 pr-0 pb-0 pl-0",children:[d,s.jsx(A,{children:s.jsx(L,{className:"gap-0.5",children:s.jsx(B,{children:s.jsxs(R,{onClick:ke,className:"flex items-center gap-2.5 text-sm",children:[s.jsx("span",{className:"shrink-0",children:s.jsx(K,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})})})})]}),e[13]=m):m=e[13];let h;e[14]!==c?(h=s.jsxs(ie,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[c,m]}),e[14]=c,e[15]=h):h=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx("div",{className:"mt-auto px-4 pb-1",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","3.26.1"]})}),e[16]=b):b=e[16];let f;return e[17]!==h?(f=s.jsxs(ne,{variant:"sidebar",children:[h,b]}),e[17]=h,e[18]=f):f=e[18],f}function ke(){H("signed_out",{source:"settings_sidebar"}),Q(),D.signOut()}function $e(e){return e.location.pathname}function ze(e){const t=S.c(21),{onClose:n}=e,l=V();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={from:"/shell/$org"},t[0]=i):i=t[0];const{org:r}=T(i);let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o={select:Pe},t[1]=o):o=t[1];const a=J(o);let c;t[2]!==r||t[3]!==a?(c=p=>{const u=p.replace("$org",r);return a.startsWith(u)},t[2]=r,t[3]=a,t[4]=c):c=t[4];const d=c;let m;if(t[5]!==l||t[6]!==d||t[7]!==n||t[8]!==r){let p;t[10]!==d||t[11]!==n||t[12]!==r?(p=(u,_)=>s.jsxs("div",{className:"flex flex-col gap-0.5",children:[u.label&&s.jsx("p",{className:w("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",_>0&&"mt-3"),children:u.label}),u.items.map(j=>s.jsxs(F,{to:j.to,params:{org:r},onClick:n,className:w("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",d(j.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[s.jsx("span",{className:"shrink-0",children:j.icon}),s.jsx("span",{className:"truncate",children:j.label})]},j.key))]},`${u.label}-${_}`),t[10]=d,t[11]=n,t[12]=r,t[13]=p):p=t[13],m=l.map(p),t[5]=l,t[6]=d,t[7]=n,t[8]=r,t[9]=m}else m=t[9];let h;t[14]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx("div",{className:"h-px bg-border/50 my-2"}),t[14]=h):h=t[14];let b;t[15]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[h,s.jsxs("button",{type:"button",onClick:Ce,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("span",{className:"shrink-0",children:s.jsx(K,{size:14})}),s.jsx("span",{className:"truncate",children:"Sign Out"})]})]}),t[15]=b):b=t[15];let f;t[16]!==m?(f=s.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[m,b]}),t[16]=m,t[17]=f):f=t[17];let x;t[18]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","3.26.1"]})}),t[18]=x):x=t[18];let g;return t[19]!==f?(g=s.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[f,x]}),t[19]=f,t[20]=g):g=t[20],g}function Ce(){Q(),D.signOut()}function Pe(e){return e.location.pathname}function qe(){const e=S.c(4),t=U(),{org:n}=W();je(n.slug);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Z,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=l):l=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(ee.Suspense,{fallback:l,children:s.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:s.jsx(oe,{value:"p-0",children:s.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:s.jsx(se,{})})})})}),e[1]=i):i=e[1];const r=i;if(t){let a;return e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:r}),e[2]=a):a=e[2],a}let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-h-0 p-1",children:s.jsx("div",{className:w("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:r})}),e[3]=o):o=e[3],o}function ts(){const e=S.c(22),t=U();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(y.LogoLink,{}),e[0]=n):n=e[0];let l;e[1]!==t?(l=t&&s.jsx(_e,{}),e[1]=t,e[2]=l):l=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("span",{className:"hidden md:contents",children:s.jsx(y.Nav,{})}),e[3]=i):i=e[3];let r;e[4]!==l?(r=s.jsxs(y.LeftColumn,{children:[n,l,i]}),e[4]=l,e[5]=r):r=e[5];let o;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(y.CenterSlot,{}),e[6]=o):o=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(y.RightColumn,{children:s.jsx("span",{})}),e[7]=a):a=e[7];let c;e[8]!==r?(c=s.jsxs(y.Header,{children:[r,o,a]}),e[8]=r,e[9]=c):c=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d={"--sidebar-width-icon":"3.5rem"},e[10]=d):d=e[10];let m;e[11]!==t?(m=!t&&s.jsx(Ne,{}),e[11]=t,e[12]=m):m=e[12];let h;e[13]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(te,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:s.jsx(qe,{})}),e[13]=h):h=e[13];let b;e[14]!==m?(b=s.jsxs(le,{className:"flex-1 bg-sidebar min-h-0",style:d,children:[m,h]}),e[14]=m,e[15]=b):b=e[15];let f;e[16]!==t?(f=t&&s.jsx(ye,{renderSidebar:we}),e[16]=t,e[17]=f):f=e[17];let x;return e[18]!==b||e[19]!==f||e[20]!==c?(x=s.jsx(y.Provider,{children:s.jsx(re,{defaultOpen:!0,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[c,b,f]})})}),e[18]=b,e[19]=f,e[20]=c,e[21]=x):x=e[21],x}function we(e){const{onClose:t}=e;return s.jsx(ze,{onClose:t})}export{Ne as SettingsSidebar,ze as SettingsSidebarMobile,ts as default};
@@ -1 +1 @@
1
- import{e as v,c as N,j as r,r as S}from"./index-D_9lHNft.js";import{C as w}from"./card-CAuo8u4J.js";import{i as E}from"./ArrowUpRight-DG7ncF7e.js";function I(c){const e=v.c(12),{title:i,description:l,docsHref:t,actions:s,className:n,headerClassName:a,children:d}=c;let m;e[0]!==n?(m=N("flex flex-col gap-3",n),e[0]=n,e[1]=m):m=e[1];let f;e[2]!==s||e[3]!==l||e[4]!==t||e[5]!==a||e[6]!==i?(f=(i||l||t||s)&&r.jsxs("div",{className:N("flex items-center justify-between gap-3 px-4",a),children:[r.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[i&&r.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:i}),(l||t)&&r.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[l,t&&r.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",r.jsx(E,{size:12})]})]})]}),s&&r.jsx("div",{className:"shrink-0",children:s})]}),e[2]=s,e[3]=l,e[4]=t,e[5]=a,e[6]=i,e[7]=f):f=e[7];let o;return e[8]!==d||e[9]!==m||e[10]!==f?(o=r.jsxs("section",{className:m,children:[f,d]}),e[8]=d,e[9]=m,e[10]=f,e[11]=o):o=e[11],o}function P(c){const e=v.c(11),{className:i,children:l}=c;let t,s,n;if(e[0]!==l||e[1]!==i){const d=S.Children.toArray(l).filter(S.isValidElement);t=w,e[5]!==i?(s=N("p-0 gap-0 overflow-hidden",i),e[5]=i,e[6]=s):s=e[6],n=d.map($),e[0]=l,e[1]=i,e[2]=t,e[3]=s,e[4]=n}else t=e[2],s=e[3],n=e[4];let a;return e[7]!==t||e[8]!==s||e[9]!==n?(a=r.jsx(t,{className:s,children:n}),e[7]=t,e[8]=s,e[9]=n,e[10]=a):a=e[10],a}function $(c,e){return r.jsxs("div",{children:[e>0&&r.jsx("div",{className:"h-px bg-border mx-5"}),c]},e)}function R(c){const e=v.c(27),{icon:i,title:l,description:t,action:s,onClick:n,className:a,children:d}=c,m=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",f=n&&"hover:bg-muted/50 cursor-pointer";let o;e[0]!==a||e[1]!==m||e[2]!==f?(o=N(m,f,a),e[0]=a,e[1]=m,e[2]=f,e[3]=o):o=e[3];const b=n?"button":void 0,C=n?0:void 0;let x;e[4]!==n?(x=n?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),n())}:void 0,e[4]=n,e[5]=x):x=e[5];let p;e[6]!==i?(p=i&&r.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:i}),e[6]=i,e[7]=p):p=e[7];let u;e[8]!==l?(u=r.jsx("div",{className:"text-sm font-medium",children:l}),e[8]=l,e[9]=u):u=e[9];let h;e[10]!==t?(h=t&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t}),e[10]=t,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==u||e[14]!==h?(g=r.jsxs("div",{className:"flex-1 min-w-0",children:[u,h,d]}),e[12]=d,e[13]=u,e[14]=h,e[15]=g):g=e[15];let j;e[16]!==s?(j=s&&r.jsx("div",{className:"shrink-0",onClick:D,children:s}),e[16]=s,e[17]=j):j=e[17];let y;return e[18]!==n||e[19]!==g||e[20]!==j||e[21]!==o||e[22]!==b||e[23]!==C||e[24]!==x||e[25]!==p?(y=r.jsxs("div",{className:o,onClick:n,role:b,tabIndex:C,onKeyDown:x,children:[p,g,j]}),e[18]=n,e[19]=g,e[20]=j,e[21]=o,e[22]=b,e[23]=C,e[24]=x,e[25]=p,e[26]=y):y=e[26],y}function D(c){return c.stopPropagation()}function H(c){const e=v.c(5),{children:i,className:l}=c;let t;e[0]!==l?(t=N("flex items-center justify-end gap-2 px-4 py-4",l),e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==i||e[3]!==t?(s=r.jsx("div",{className:t,children:i}),e[2]=i,e[3]=t,e[4]=s):s=e[4],s}function K(c){const e=v.c(5),{className:i,children:l}=c;let t;e[0]!==i?(t=N("flex flex-col gap-10",i),e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==l||e[3]!==t?(s=r.jsx("div",{className:t,children:l}),e[2]=l,e[3]=t,e[4]=s):s=e[4],s}export{I as S,P as a,R as b,K as c,H as d};
1
+ import{e as v,c as N,j as r,r as S}from"./index-CiRQNPVt.js";import{C as w}from"./card-D41ULrnf.js";import{i as E}from"./ArrowUpRight-8daK_Mrm.js";function I(c){const e=v.c(12),{title:i,description:l,docsHref:t,actions:s,className:n,headerClassName:a,children:d}=c;let m;e[0]!==n?(m=N("flex flex-col gap-3",n),e[0]=n,e[1]=m):m=e[1];let f;e[2]!==s||e[3]!==l||e[4]!==t||e[5]!==a||e[6]!==i?(f=(i||l||t||s)&&r.jsxs("div",{className:N("flex items-center justify-between gap-3 px-4",a),children:[r.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[i&&r.jsx("h2",{className:"text-[15px] font-medium leading-tight",children:i}),(l||t)&&r.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[l,t&&r.jsxs("a",{href:t,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",r.jsx(E,{size:12})]})]})]}),s&&r.jsx("div",{className:"shrink-0",children:s})]}),e[2]=s,e[3]=l,e[4]=t,e[5]=a,e[6]=i,e[7]=f):f=e[7];let o;return e[8]!==d||e[9]!==m||e[10]!==f?(o=r.jsxs("section",{className:m,children:[f,d]}),e[8]=d,e[9]=m,e[10]=f,e[11]=o):o=e[11],o}function P(c){const e=v.c(11),{className:i,children:l}=c;let t,s,n;if(e[0]!==l||e[1]!==i){const d=S.Children.toArray(l).filter(S.isValidElement);t=w,e[5]!==i?(s=N("p-0 gap-0 overflow-hidden",i),e[5]=i,e[6]=s):s=e[6],n=d.map($),e[0]=l,e[1]=i,e[2]=t,e[3]=s,e[4]=n}else t=e[2],s=e[3],n=e[4];let a;return e[7]!==t||e[8]!==s||e[9]!==n?(a=r.jsx(t,{className:s,children:n}),e[7]=t,e[8]=s,e[9]=n,e[10]=a):a=e[10],a}function $(c,e){return r.jsxs("div",{children:[e>0&&r.jsx("div",{className:"h-px bg-border mx-5"}),c]},e)}function R(c){const e=v.c(27),{icon:i,title:l,description:t,action:s,onClick:n,className:a,children:d}=c,m=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",f=n&&"hover:bg-muted/50 cursor-pointer";let o;e[0]!==a||e[1]!==m||e[2]!==f?(o=N(m,f,a),e[0]=a,e[1]=m,e[2]=f,e[3]=o):o=e[3];const b=n?"button":void 0,C=n?0:void 0;let x;e[4]!==n?(x=n?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),n())}:void 0,e[4]=n,e[5]=x):x=e[5];let p;e[6]!==i?(p=i&&r.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:i}),e[6]=i,e[7]=p):p=e[7];let u;e[8]!==l?(u=r.jsx("div",{className:"text-sm font-medium",children:l}),e[8]=l,e[9]=u):u=e[9];let h;e[10]!==t?(h=t&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:t}),e[10]=t,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==u||e[14]!==h?(g=r.jsxs("div",{className:"flex-1 min-w-0",children:[u,h,d]}),e[12]=d,e[13]=u,e[14]=h,e[15]=g):g=e[15];let j;e[16]!==s?(j=s&&r.jsx("div",{className:"shrink-0",onClick:D,children:s}),e[16]=s,e[17]=j):j=e[17];let y;return e[18]!==n||e[19]!==g||e[20]!==j||e[21]!==o||e[22]!==b||e[23]!==C||e[24]!==x||e[25]!==p?(y=r.jsxs("div",{className:o,onClick:n,role:b,tabIndex:C,onKeyDown:x,children:[p,g,j]}),e[18]=n,e[19]=g,e[20]=j,e[21]=o,e[22]=b,e[23]=C,e[24]=x,e[25]=p,e[26]=y):y=e[26],y}function D(c){return c.stopPropagation()}function H(c){const e=v.c(5),{children:i,className:l}=c;let t;e[0]!==l?(t=N("flex items-center justify-end gap-2 px-4 py-4",l),e[0]=l,e[1]=t):t=e[1];let s;return e[2]!==i||e[3]!==t?(s=r.jsx("div",{className:t,children:i}),e[2]=i,e[3]=t,e[4]=s):s=e[4],s}function K(c){const e=v.c(5),{className:i,children:l}=c;let t;e[0]!==i?(t=N("flex flex-col gap-10",i),e[0]=i,e[1]=t):t=e[1];let s;return e[2]!==l||e[3]!==t?(s=r.jsx("div",{className:t,children:l}),e[2]=l,e[3]=t,e[4]=s):s=e[4],s}export{I as S,P as a,R as b,K as c,H as d};
@@ -1 +1 @@
1
- import{e as n,c as f,j as i,de as N,cz as y,bE as S,df as v,cA as $,dg as C,cB as w}from"./index-D_9lHNft.js";import{i as z}from"./X-B_CzjCcZ.js";function D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function k(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function O(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(B,{}),e[6]=m):m=e[6];const x=p==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",g=p==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",b=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[7]!==s||e[8]!==x||e[9]!==g||e[10]!==b||e[11]!==j?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",x,g,b,j,s),e[7]=s,e[8]=x,e[9]=g,e[10]=b,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[i.jsx(z,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(k,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function P(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{T as S,O as a,D as b,_ as c,P as d};
1
+ import{e as n,c as f,j as i,de as N,cz as y,bE as S,df as v,cA as $,dg as C,cB as w}from"./index-CiRQNPVt.js";import{i as z}from"./X-BdwzFded.js";function D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function k(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function O(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(B,{}),e[6]=m):m=e[6];const x=p==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",g=p==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",b=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[7]!==s||e[8]!==x||e[9]!==g||e[10]!==b||e[11]!==j?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",x,g,b,j,s),e[7]=s,e[8]=x,e[9]=g,e[10]=b,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[i.jsx(z,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(k,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function P(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{T as S,O as a,D as b,_ as c,P as d};
@@ -1 +1 @@
1
- import{e as f,j as a}from"./index-D_9lHNft.js";import{S as d,a as p,b as S}from"./sheet-Oks1OcjX.js";import{u as b}from"./sidebar-BwviWuqz.js";import{i as h}from"./LayoutLeft-DNeQuoPU.js";import{T as u}from"./toolbar-DI4zFcGt.js";function M(){const t=f.c(3),{toggleSidebar:e}=b();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(h,{size:16}),t[0]=o):o=t[0];let s;return t[1]!==e?(s=a.jsx(u,{onClick:e,"aria-label":"Toggle sidebar",children:o}),t[1]=e,t[2]=s):s=t[2],s}function _(t){const e=f.c(12),{renderSidebar:o}=t,{openMobile:s,setOpenMobile:i}=b();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(d,{className:"sr-only",children:"Navigation"}),e[0]=c):c=e[0];let l;e[1]!==i?(l=()=>i(!1),e[1]=i,e[2]=l):l=e[2];let r;e[3]!==o||e[4]!==l?(r=o({onClose:l}),e[3]=o,e[4]=l,e[5]=r):r=e[5];let n;e[6]!==r?(n=a.jsxs(p,{side:"left",hideCloseButton:!0,className:"w-[calc(100vw-3rem)] sm:max-w-md! p-0",children:[c,r]}),e[6]=r,e[7]=n):n=e[7];let m;return e[8]!==s||e[9]!==i||e[10]!==n?(m=a.jsx(S,{open:s,onOpenChange:i,children:n}),e[8]=s,e[9]=i,e[10]=n,e[11]=m):m=e[11],m}export{_ as M,M as S};
1
+ import{e as f,j as a}from"./index-CiRQNPVt.js";import{S as d,a as p,b as S}from"./sheet-Utq51ofH.js";import{u as b}from"./sidebar-BBqRosV0.js";import{i as h}from"./LayoutLeft-BkxKKkMX.js";import{T as u}from"./toolbar-D3G0G9U8.js";function M(){const t=f.c(3),{toggleSidebar:e}=b();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(h,{size:16}),t[0]=o):o=t[0];let s;return t[1]!==e?(s=a.jsx(u,{onClick:e,"aria-label":"Toggle sidebar",children:o}),t[1]=e,t[2]=s):s=t[2],s}function _(t){const e=f.c(12),{renderSidebar:o}=t,{openMobile:s,setOpenMobile:i}=b();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(d,{className:"sr-only",children:"Navigation"}),e[0]=c):c=e[0];let l;e[1]!==i?(l=()=>i(!1),e[1]=i,e[2]=l):l=e[2];let r;e[3]!==o||e[4]!==l?(r=o({onClose:l}),e[3]=o,e[4]=l,e[5]=r):r=e[5];let n;e[6]!==r?(n=a.jsxs(p,{side:"left",hideCloseButton:!0,className:"w-[calc(100vw-3rem)] sm:max-w-md! p-0",children:[c,r]}),e[6]=r,e[7]=n):n=e[7];let m;return e[8]!==s||e[9]!==i||e[10]!==n?(m=a.jsx(S,{open:s,onOpenChange:i,children:n}),e[8]=s,e[9]=i,e[10]=n,e[11]=m):m=e[11],m}export{_ as M,M as S};
@@ -1 +1 @@
1
- import{e as k,a as se,j as o,B as z,bJ as X,o as Z,F as me,b as Y,a4 as we,s as fe,K as re,bK as Se,bL as je,L as U,r as Q,bM as ve,bN as ke,n as oe,f as Ne,q as Oe,g as he,d as _e,$ as Ae,bO as Ce,bP as le,bQ as Ee,bR as Te,S as $e,O as ze,bS as Me}from"./index-D_9lHNft.js";import{A as ge}from"./avatar-B1sIFV2q.js";import{t as Ie,a as Le}from"./Users03-Ch0fsFZl.js";import{i as Fe,a as Pe,s as K,n as De}from"./Stars02-D1g7u2cM.js";import{s as Re}from"./XClose-CL_GGKfg.js";import{i as q}from"./CheckCircle-DapdRT61.js";import{i as ce}from"./FilterLines-BvkIR4mw.js";import{i as J}from"./Zap-C2NXr_2-.js";import{a as Ke,b as qe,c as Ue,D as He}from"./dialog-DuSQekhR.js";import{R as Ge}from"./required-auth-layout-BDfnx0GP.js";import{s as Be,n as We,v as Je,A as Qe}from"./tab-id-GrYtygnH.js";import{g as Ye,m as Ve,S as Xe}from"./use-mcp-client-D2Esndjo.js";import{c as Ze}from"./use-organization-settings-BKtE3g0_.js";import{u as et}from"./use-org-sso-BvlZOUK0.js";function tt(t){const e=k.c(27),{orgName:n,orgSlug:s,orgLogo:r,domain:a}=t;let i;e[0]!==s?(i={mutationFn:async()=>{const x=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:s})}),v=await x.json();if(!x.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:x=>{window.location.href=`/${x.slug??s}`},onError:st},e[0]=s,e[1]=i):i=e[1];const l=se(i),d=nt;let c;e[2]!==r||e[3]!==n?(c=r?o.jsx(ge,{url:r,fallback:n.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Ie,{className:"h-6 w-6 text-primary"})}),e[2]=r,e[3]=n,e[4]=c):c=e[4];let m;e[5]!==n?(m=o.jsxs("h3",{className:"text-lg font-medium",children:["Join ",n,"?"]}),e[5]=n,e[6]=m):m=e[6];let u;e[7]!==a?(u=o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",o.jsxs("strong",{children:["@",a]})," email can join this organization."]}),e[7]=a,e[8]=u):u=e[8];let p;e[9]!==m||e[10]!==u?(p=o.jsxs("div",{className:"space-y-2",children:[m,u]}),e[9]=m,e[10]=u,e[11]=p):p=e[11];let g;e[12]!==l?(g=()=>l.mutate(),e[12]=l,e[13]=g):g=e[13];const y=l.isPending?"Joining…":`Enter ${n}`;let f;e[14]!==l.isPending||e[15]!==g||e[16]!==y?(f=o.jsx(z,{onClick:g,disabled:l.isPending,children:y}),e[14]=l.isPending,e[15]=g,e[16]=y,e[17]=f):f=e[17];let h;e[18]!==l.isPending?(h=o.jsx(z,{variant:"ghost",onClick:d,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=h):h=e[19];let b;e[20]!==f||e[21]!==h?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,h]}),e[20]=f,e[21]=h,e[22]=b):b=e[22];let S;return e[23]!==b||e[24]!==c||e[25]!==p?(S=o.jsxs(X,{children:[c,p,b]}),e[23]=b,e[24]=c,e[25]=p,e[26]=S):S=e[26],S}function nt(){window.location.href="/"}function st(t){Z.error(t instanceof Error?t.message:"Failed to join organization")}function de(t){const e=k.c(17),{orgSlug:n,orgName:s,reason:r}=t,a=ot,i=r==="not-found",l=i?Fe:me,d=i?"Organization not found":"No access";let c;e[0]!==i||e[1]!==s||e[2]!==n?(c=i?o.jsxs(o.Fragment,{children:["We couldn't find an organization called ",o.jsx("strong",{children:n}),"."]}):o.jsxs(o.Fragment,{children:["You don't have access to ",o.jsx("strong",{children:s??n}),".",o.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=i,e[1]=s,e[2]=n,e[3]=c):c=e[3];const m=c;let u;e[4]!==l?(u=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(l,{className:"h-6 w-6 text-muted-foreground"})}),e[4]=l,e[5]=u):u=e[5];let p;e[6]!==d?(p=o.jsx("h3",{className:"text-lg font-medium",children:d}),e[6]=d,e[7]=p):p=e[7];let g;e[8]!==m?(g=o.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[8]=m,e[9]=g):g=e[9];let y;e[10]!==p||e[11]!==g?(y=o.jsxs("div",{className:"space-y-2",children:[p,g]}),e[10]=p,e[11]=g,e[12]=y):y=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(z,{onClick:a,children:"Go to home"}),e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==y?(h=o.jsxs(X,{children:[u,y,f]}),e[14]=u,e[15]=y,e[16]=h):h=e[16],h}function ot(){window.location.href="/"}function at(t){const e=k.c(39),{invitationId:n,orgName:s,orgSlug:r,orgLogo:a}=t;let i;e[0]!==n?(i=async()=>{const O=await Y.organization.acceptInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[0]=n,e[1]=i):i=e[1];let l;e[2]!==r?(l=()=>{we(),window.location.href=`/${r}`},e[2]=r,e[3]=l):l=e[3];let d;e[4]!==i||e[5]!==l?(d={mutationFn:i,onSuccess:l,onError:lt},e[4]=i,e[5]=l,e[6]=d):d=e[6];const c=se(d);let m;e[7]!==n?(m=async()=>{const O=await Y.organization.rejectInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[7]=n,e[8]=m):m=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=rt,e[9]=u):u=e[9];let p;e[10]!==m?(p={mutationFn:m,onSuccess:u,onError:it},e[10]=m,e[11]=p):p=e[11];const g=se(p),y=c.isPending||g.isPending;let f;e[12]!==a||e[13]!==s?(f=a?o.jsx(ge,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Pe,{className:"h-6 w-6 text-primary"})}),e[12]=a,e[13]=s,e[14]=f):f=e[14];let h;e[15]!==s?(h=o.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",o.jsx("strong",{children:s})]}),e[15]=s,e[16]=h):h=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=b):b=e[17];let S;e[18]!==h?(S=o.jsxs("div",{className:"space-y-2",children:[h,b]}),e[18]=h,e[19]=S):S=e[19];let x;e[20]!==c?(x=()=>c.mutate(),e[20]=c,e[21]=x):x=e[21];const v=c.isPending?"Accepting…":"Accept invitation";let _;e[22]!==y||e[23]!==x||e[24]!==v?(_=o.jsx(z,{onClick:x,disabled:y,children:v}),e[22]=y,e[23]=x,e[24]=v,e[25]=_):_=e[25];let N;e[26]!==g?(N=()=>g.mutate(),e[26]=g,e[27]=N):N=e[27];const w=g.isPending?"Declining…":"Decline";let A;e[28]!==y||e[29]!==N||e[30]!==w?(A=o.jsx(z,{variant:"ghost",onClick:N,disabled:y,children:w}),e[28]=y,e[29]=N,e[30]=w,e[31]=A):A=e[31];let C;e[32]!==_||e[33]!==A?(C=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,A]}),e[32]=_,e[33]=A,e[34]=C):C=e[34];let E;return e[35]!==S||e[36]!==C||e[37]!==f?(E=o.jsxs(X,{children:[f,S,C]}),e[35]=S,e[36]=C,e[37]=f,e[38]=E):E=e[38],E}function it(t){Z.error(t instanceof Error?t.message:"Failed to decline invitation")}function rt(){Z.success("Invitation declined"),window.location.href="/"}function lt(t){Z.error(t instanceof Error?t.message:"Failed to accept invitation")}function ct(t){const e=k.c(7);let n;e[0]!==t?(n=re.orgAccessStatus(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==t?(s=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=s):s=e[3];let r;return e[4]!==n||e[5]!==s?(r={queryKey:n,queryFn:s,refetchOnWindowFocus:!1},e[4]=n,e[5]=s,e[6]=r):r=e[6],fe(r)}function dt({orgSlug:t}){const{data:e}=ct(t);return(e.status==="not-found"||e.status==="no-access")&&(Se()?.org===t&&je(),localStorage.getItem(U.lastOrgSlug())===t)?(localStorage.removeItem(U.lastOrgSlug()),window.location.href="/",null):e.status==="not-found"?o.jsx(de,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(at,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(tt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="member"?(window.location.reload(),null):o.jsx(de,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function ut(t){const e=k.c(20),{release:n,onCtaClick:s,onLearnMoreClick:r}=t;let a;e[0]!==n.eyebrow?(a=n.eyebrow&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n.eyebrow}),e[0]=n.eyebrow,e[1]=a):a=e[1];let i;e[2]!==n.title?(i=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:n.title}),e[2]=n.title,e[3]=i):i=e[3];let l;e[4]!==a||e[5]!==i?(l=o.jsxs("div",{children:[a,i]}),e[4]=a,e[5]=i,e[6]=l):l=e[6];let d;e[7]!==n.bullets?(d=n.bullets.map(mt),e[7]=n.bullets,e[8]=d):d=e[8];let c;e[9]!==d?(c=o.jsx("ul",{className:"flex flex-col gap-3",children:d}),e[9]=d,e[10]=c):c=e[10];let m;e[11]!==s||e[12]!==r||e[13]!==n.cta||e[14]!==n.learnMoreHref?(m=(n.cta||n.learnMoreHref)&&o.jsxs("div",{className:"flex items-center justify-between pt-1",children:[n.learnMoreHref?o.jsx("a",{href:n.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:r,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):o.jsx("span",{}),n.cta&&o.jsx(z,{asChild:!0,size:"sm",onClick:s,children:o.jsx("a",{href:n.cta.href,children:n.cta.label})})]}),e[11]=s,e[12]=r,e[13]=n.cta,e[14]=n.learnMoreHref,e[15]=m):m=e[15];let u;return e[16]!==l||e[17]!==c||e[18]!==m?(u=o.jsxs("div",{className:"flex flex-col gap-3",children:[l,c,m]}),e[16]=l,e[17]=c,e[18]=m,e[19]=u):u=e[19],u}function mt(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const pe=[{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:q,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:K,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:J,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:K,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:q,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:J,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:K,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:q,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:J,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:K,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:ce,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:q,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Le,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:J,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:q,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:K,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:ce,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:K,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:De,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],V="studio.release-feed.v1",ae=new Set;let I="",L={},ie=!1;function ft(){if(ie)return I||"{}";try{return localStorage.getItem(V)??"{}"}catch{return I||"{}"}}function ye(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ue(){const t=ft();return t!==I&&(I=t,L=ye(t)),L}function ht(t){ae.add(t);const e=n=>{if(!(n.key!==V&&n.key!==null)){try{const s=localStorage.getItem(V)??"{}",a={...ye(s),...L};L=a,I=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ae.delete(t),window.removeEventListener("storage",e)}}function gt(t){L=t,I=JSON.stringify(t);try{localStorage.setItem(V,I),ie=!1}catch{ie=!0}ae.forEach(e=>e())}function pt(){const t=k.c(7),e=Q.useSyncExternalStore(ht,ue,ue);let n;t[0]!==e?(n=d=>!!e[d],t[0]=e,t[1]=n):n=t[1];const s=n,r=yt;let a;t[2]!==e?(a=pe.reduce((d,c)=>e[c.id]?d:d+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let l;return t[4]!==s||t[5]!==i?(l={isSeen:s,markSeen:r,unseenCount:i},t[4]=s,t[5]=i,t[6]=l):l=t[6],l}function yt(t){L[t]||gt({...L,[t]:{seenAt:new Date().toISOString()}})}const bt=720*60*60*1e3;function xt(t){const[e,n,s]=t.split("-").map(Number);return!e||!n||!s?new Date(t).getTime():new Date(e,n-1,s).getTime()}function wt(t){const e=pe[0];if(!e)return null;const n=xt(e.date),s=t-n;return s<0||s>bt?null:e}function St(){const t=k.c(21),{isSeen:e,markSeen:n}=pt();let s,r,a;if(t[0]!==e){a=Symbol.for("react.early_return_sentinel");e:{if(s=wt(Date.now()),!s){a=null;break e}r=e(s.id)}t[0]=e,t[1]=s,t[2]=r,t[3]=a}else s=t[1],r=t[2],a=t[3];if(a!==Symbol.for("react.early_return_sentinel"))return a;if(r)return null;let i;t[4]!==s.id||t[5]!==n?(i=()=>n(s.id),t[4]=s.id,t[5]=n,t[6]=i):i=t[6];let l;t[7]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(Re,{size:14}),t[7]=l):l=t[7];let d;t[8]!==i?(d=o.jsx(z,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-2 top-2 size-7 text-muted-foreground",onClick:i,children:l}),t[8]=i,t[9]=d):d=t[9];let c,m;t[10]!==s.id||t[11]!==n?(c=()=>n(s.id),m=()=>n(s.id),t[10]=s.id,t[11]=n,t[12]=c,t[13]=m):(c=t[12],m=t[13]);let u;t[14]!==s||t[15]!==c||t[16]!==m?(u=o.jsx(ut,{release:s,onCtaClick:c,onLearnMoreClick:m}),t[14]=s,t[15]=c,t[16]=m,t[17]=u):u=t[17];let p;return t[18]!==d||t[19]!==u?(p=o.jsxs("div",{role:"dialog","aria-label":"Release announcement",className:"fixed bottom-6 right-6 z-50 w-[min(360px,calc(100vw-3rem))] rounded-lg border border-border bg-background p-4 shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[d,u]}),t[18]=d,t[19]=u,t[20]=p):p=t[20],p}const be=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),M=be?"⌘":"Ctrl",$={keyboardShortcuts:{keys:[M,"K"],description:"Keyboard shortcuts"},focusChatInput:{keys:[M,"L"],description:"Focus chat input"},saveAndFormat:{keys:[M,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[M,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[M,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",M,"S"],description:"New task"},toggleDaemon:{keys:[M,"D"],description:"Toggle daemon logs"}},jt=[{label:"General",shortcuts:[$.keyboardShortcuts,$.newTask,$.toggleDaemon]},{label:"Editor",shortcuts:[$.saveAndFormat]},{label:"Chat",shortcuts:[$.focusChatInput,$.togglePlanMode,$.sendMessage,$.newLine]},{label:"Questions",shortcuts:[$.selectOption]},{label:"Monitoring",shortcuts:[$.applyFilter]}];function vt(t){return be?t.metaKey:t.ctrlKey}function kt(t){const e=k.c(5),{open:n,onOpenChange:s}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(qe,{children:o.jsx(Ue,{children:"Keyboard Shortcuts"})}),e[0]=r):r=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsxs(Ke,{className:"sm:max-w-md",children:[r,o.jsx("div",{className:"flex flex-col gap-4",children:jt.map(Nt)})]}),e[1]=a):a=e[1];let i;return e[2]!==s||e[3]!==n?(i=o.jsx(He,{open:n,onOpenChange:s,children:a}),e[2]=s,e[3]=n,e[4]=i):i=e[4],i}function Nt(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ot)})]},t.label)}function Ot(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(_t)})]},t.description)}function _t(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function At({activeOrg:t}){return t&&(ve(t.id,{name:t.name??void 0,slug:t.slug??void 0}),ke()),null}function Ct(t,e,n){if(!n)return null;const s=Be(t,e);return s?s.threads.get().find(a=>a.id===n)?.branch??null:null}function xe(t){return{queryKey:re.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Xt(t){const e=k.c(10);let n;e[0]!==t?(n=xe(t),e[0]=t,e[1]=n):n=e[1];const s=oe(n);let r;e[2]!==s.data?.prompts?(r=s.data?.prompts??[],e[2]=s.data?.prompts,e[3]=r):r=e[3];let a;e[4]!==s.data?.tiles?(a=s.data?.tiles??[],e[4]=s.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==s.isLoading||e[7]!==r||e[8]!==a?(i={isLoading:s.isLoading,prompts:r,tiles:a},e[6]=s.isLoading,e[7]=r,e[8]=a,e[9]=i):i=e[9],i}function Et(t){const e=k.c(17),{orgSlug:n,orgName:s,domain:r}=t;let a;e[0]!==n?(a=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=a):a=e[1];const i=a,l=Tt;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(me,{className:"h-6 w-6 text-primary"})}),e[2]=d):d=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=c):c=e[3];let m;e[4]!==r||e[5]!==s?(m=s?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:s})," requires SSO authentication",r?` via ${r}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=r,e[5]=s,e[6]=m):m=e[6];let u;e[7]!==m?(u=o.jsxs("div",{className:"space-y-2",children:[c,o.jsx("p",{className:"text-sm text-muted-foreground",children:m})]}),e[7]=m,e[8]=u):u=e[8];let p;e[9]!==i?(p=o.jsx(z,{onClick:i,children:"Sign in with SSO"}),e[9]=i,e[10]=p):p=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(z,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=g):g=e[11];let y;e[12]!==p?(y=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,g]}),e[12]=p,e[13]=y):y=e[13];let f;return e[14]!==u||e[15]!==y?(f=o.jsxs(X,{children:[d,u,y]}),e[14]=u,e[15]=y,e[16]=f):f=e[16],f}function Tt(){window.location.href="/"}function $t(t){const e=k.c(8),{org:n,children:s}=t,a=Ze(n.id,n.slug)?.enabled_plugins??null;let i;e[0]!==n.id||e[1]!==n.name||e[2]!==a?(i={id:n.id,organizationId:n.id,slug:"_org",name:n.name,enabledPlugins:a,ui:null},e[0]=n.id,e[1]=n.name,e[2]=a,e[3]=i):i=e[3];const l=i;let d;return e[4]!==s||e[5]!==n||e[6]!==l?(d=o.jsx(Me,{org:n,project:l,children:s}),e[4]=s,e[5]=n,e[6]=l,e[7]=d):d=e[7],d}function zt(){const t=Ne(),e=We(),{org:n,locator:s}=Oe(),r=he({strict:!1}),a=_e({strict:!1}),i=r.org??"",l=r.taskId??"",d=(f,h,b=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:f},search:h,replace:b}),c=(f,h=!0)=>d(l,f,h),m=f=>c(h=>({...h,chat:f?1:0})),u=(f,h,b)=>d(f,S=>{const x={chat:1};h?x.virtualmcpid=h:S.virtualmcpid&&(x.virtualmcpid=S.virtualmcpid);const v=S.main;return v&&typeof v=="string"&&!Je(v)&&(x.main=v),b?.autosend&&(x.autosend=Qe),x},!1);return{setChatOpen:m,setTaskId:u,createNewTask:async f=>{const h=crypto.randomUUID(),b=f??a.virtualmcpid??Ye(n.id).id,x=b===a.virtualmcpid?Ct(n.slug,s,l):null;try{await e?.create({id:h,virtual_mcp_id:b,...x?{branch:x}:{}})}catch{}u(h,b)},openTab:f=>d(l||crypto.randomUUID(),h=>({...h,main:f})),toggleMain:()=>c(f=>{if(f.main!==void 0&&f.main!=="0")return{...f,main:"0"};const b={...f};return delete b.main,b})}}function Mt(){const t=k.c(51);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const s=Ae(e)?.params.org;let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},t[1]=r):r=t[1];const{taskId:a}=he(r),[i,l]=Q.useState(!1),d=s??"";let c;t[2]!==d?(c=xe(d),t[2]=d,t[3]=c):c=t[3];const m=!!s&&!a;let u;t[4]!==c||t[5]!==m?(u={...c,enabled:m},t[4]=c,t[5]=m,t[6]=u):u=t[6],oe(u);const{data:p}=Y.useSession(),g=p?.user?.id;let y;t[7]!==s||t[8]!==g?(y=s&&g?Ce(g,s):null,t[7]=s,t[8]=g,t[9]=y):y=t[9];const f=y;let h,b;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{const j=T=>{vt(T)&&T.code==="KeyK"&&(T.preventDefault(),l(!0))};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},b=[],t[10]=h,t[11]=b):(h=t[10],b=t[11]),Q.useEffect(h,b);let S;t[12]!==s?(S=re.activeOrganization(s),t[12]=s,t[13]=S):S=t[13];let x;t[14]!==s||t[15]!==g?(x=async()=>{if(!s)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await Y.organization.getFullOrganization({query:{organizationSlug:s}}).finally(It),T=le(j);return j&&!T&&localStorage.setItem(U.lastOrgSlug(),s),g&&j&&Te(g,s,j),j},t[14]=s,t[15]=g,t[16]=x):x=t[16];const v=f?f.data:void 0,_=f?.updatedAt;let N;t[17]!==x||t[18]!==v||t[19]!==_||t[20]!==S?(N={queryKey:S,queryFn:x,initialData:v,initialDataUpdatedAt:_,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=x,t[18]=v,t[19]=_,t[20]=S,t[21]=N):N=t[21];const{data:w}=fe(N),A=w?.id,C=w?.slug,{data:E}=et(A,C),O=A??"",ee=C??"";let F;t[22]!==O||t[23]!==ee?(F=Ve({connectionId:Xe,orgId:O,orgSlug:ee}),t[22]=O,t[23]=ee,t[24]=F):F=t[24];const te=!!A&&!!C;let H;if(t[25]!==F||t[26]!==te?(H={...F,enabled:te},t[25]=F,t[26]=te,t[27]=H):H=t[27],oe(H),!w){let j;t[28]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx($e,{}),t[28]=j):j=t[28];let T;return t[29]!==s?(T=o.jsx(Q.Suspense,{fallback:j,children:o.jsx(dt,{orgSlug:s})}),t[29]=s,t[30]=T):T=t[30],T}if(le(w)){localStorage.getItem(U.lastOrgSlug())===s&&localStorage.removeItem(U.lastOrgSlug());let j;return t[31]!==w.name?(j=o.jsx(Ee,{orgName:w.name}),t[31]=w.name,t[32]=j):j=t[32],j}if(E?.ssoRequired&&!E.authenticated){let j;return t[33]!==w.id||t[34]!==w.name||t[35]!==w.slug||t[36]!==E.domain?(j=o.jsx(Et,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:E.domain}),t[33]=w.id,t[34]=w.name,t[35]=w.slug,t[36]=E.domain,t[37]=j):j=t[37],j}const ne=w.logo??null;let P;t[38]!==w||t[39]!==ne?(P={...w,logo:ne},t[38]=w,t[39]=ne,t[40]=P):P=t[40];let D;t[41]!==w?(D=o.jsx(At,{activeOrg:w}),t[41]=w,t[42]=D):D=t[42];let G,B;t[43]===Symbol.for("react.memo_cache_sentinel")?(G=o.jsx(ze,{}),B=o.jsx(St,{}),t[43]=G,t[44]=B):(G=t[43],B=t[44]);let R;t[45]!==i?(R=o.jsx(kt,{open:i,onOpenChange:l}),t[45]=i,t[46]=R):R=t[46];let W;return t[47]!==P||t[48]!==D||t[49]!==R?(W=o.jsxs($t,{org:P,children:[D,G,B,R]}),t[47]=P,t[48]=D,t[49]=R,t[50]=W):W=t[50],W}function It(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Lt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Ge,{children:o.jsx(Mt,{})}),t[0]=e):e=t[0],e}const Zt=Object.freeze(Object.defineProperty({__proto__:null,default:Lt,usePanelActions:zt},Symbol.toStringTag,{value:"Module"}));export{$ as K,pe as R,pt as a,ut as b,Xt as c,xe as h,vt as i,Ct as r,Zt as s,zt as u};
1
+ import{e as k,a as se,j as o,B as z,bJ as X,o as Z,F as me,b as Y,a4 as we,s as fe,K as re,bK as Se,bL as je,L as U,r as Q,bM as ve,bN as ke,n as oe,f as Ne,q as Oe,g as he,d as _e,$ as Ae,bO as Ce,bP as le,bQ as Ee,bR as Te,S as $e,O as ze,bS as Me}from"./index-CiRQNPVt.js";import{A as ge}from"./avatar-BqNGZrFg.js";import{t as Ie,a as Le}from"./Users03-Bek4Ag3W.js";import{i as Fe,a as Pe,s as K,n as De}from"./Stars02-B4CoQ82E.js";import{s as Re}from"./XClose-Da5LgJSi.js";import{i as q}from"./CheckCircle-B_rVd_l8.js";import{i as ce}from"./FilterLines-SKQT-eWL.js";import{i as J}from"./Zap-DHBAOmqP.js";import{a as Ke,b as qe,c as Ue,D as He}from"./dialog-Cwf6uY_y.js";import{R as Ge}from"./required-auth-layout-BE5eceMw.js";import{s as Be,n as We,v as Je,A as Qe}from"./tab-id-C7unjelb.js";import{g as Ye,m as Ve,S as Xe}from"./use-mcp-client-D0A6RZFw.js";import{c as Ze}from"./use-organization-settings-PADdytdf.js";import{u as et}from"./use-org-sso-nq4qWMpD.js";function tt(t){const e=k.c(27),{orgName:n,orgSlug:s,orgLogo:r,domain:a}=t;let i;e[0]!==s?(i={mutationFn:async()=>{const x=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:s})}),v=await x.json();if(!x.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:x=>{window.location.href=`/${x.slug??s}`},onError:st},e[0]=s,e[1]=i):i=e[1];const l=se(i),d=nt;let c;e[2]!==r||e[3]!==n?(c=r?o.jsx(ge,{url:r,fallback:n.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Ie,{className:"h-6 w-6 text-primary"})}),e[2]=r,e[3]=n,e[4]=c):c=e[4];let m;e[5]!==n?(m=o.jsxs("h3",{className:"text-lg font-medium",children:["Join ",n,"?"]}),e[5]=n,e[6]=m):m=e[6];let u;e[7]!==a?(u=o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",o.jsxs("strong",{children:["@",a]})," email can join this organization."]}),e[7]=a,e[8]=u):u=e[8];let p;e[9]!==m||e[10]!==u?(p=o.jsxs("div",{className:"space-y-2",children:[m,u]}),e[9]=m,e[10]=u,e[11]=p):p=e[11];let g;e[12]!==l?(g=()=>l.mutate(),e[12]=l,e[13]=g):g=e[13];const y=l.isPending?"Joining…":`Enter ${n}`;let f;e[14]!==l.isPending||e[15]!==g||e[16]!==y?(f=o.jsx(z,{onClick:g,disabled:l.isPending,children:y}),e[14]=l.isPending,e[15]=g,e[16]=y,e[17]=f):f=e[17];let h;e[18]!==l.isPending?(h=o.jsx(z,{variant:"ghost",onClick:d,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=h):h=e[19];let b;e[20]!==f||e[21]!==h?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,h]}),e[20]=f,e[21]=h,e[22]=b):b=e[22];let S;return e[23]!==b||e[24]!==c||e[25]!==p?(S=o.jsxs(X,{children:[c,p,b]}),e[23]=b,e[24]=c,e[25]=p,e[26]=S):S=e[26],S}function nt(){window.location.href="/"}function st(t){Z.error(t instanceof Error?t.message:"Failed to join organization")}function de(t){const e=k.c(17),{orgSlug:n,orgName:s,reason:r}=t,a=ot,i=r==="not-found",l=i?Fe:me,d=i?"Organization not found":"No access";let c;e[0]!==i||e[1]!==s||e[2]!==n?(c=i?o.jsxs(o.Fragment,{children:["We couldn't find an organization called ",o.jsx("strong",{children:n}),"."]}):o.jsxs(o.Fragment,{children:["You don't have access to ",o.jsx("strong",{children:s??n}),".",o.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=i,e[1]=s,e[2]=n,e[3]=c):c=e[3];const m=c;let u;e[4]!==l?(u=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(l,{className:"h-6 w-6 text-muted-foreground"})}),e[4]=l,e[5]=u):u=e[5];let p;e[6]!==d?(p=o.jsx("h3",{className:"text-lg font-medium",children:d}),e[6]=d,e[7]=p):p=e[7];let g;e[8]!==m?(g=o.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[8]=m,e[9]=g):g=e[9];let y;e[10]!==p||e[11]!==g?(y=o.jsxs("div",{className:"space-y-2",children:[p,g]}),e[10]=p,e[11]=g,e[12]=y):y=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(z,{onClick:a,children:"Go to home"}),e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==y?(h=o.jsxs(X,{children:[u,y,f]}),e[14]=u,e[15]=y,e[16]=h):h=e[16],h}function ot(){window.location.href="/"}function at(t){const e=k.c(39),{invitationId:n,orgName:s,orgSlug:r,orgLogo:a}=t;let i;e[0]!==n?(i=async()=>{const O=await Y.organization.acceptInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[0]=n,e[1]=i):i=e[1];let l;e[2]!==r?(l=()=>{we(),window.location.href=`/${r}`},e[2]=r,e[3]=l):l=e[3];let d;e[4]!==i||e[5]!==l?(d={mutationFn:i,onSuccess:l,onError:lt},e[4]=i,e[5]=l,e[6]=d):d=e[6];const c=se(d);let m;e[7]!==n?(m=async()=>{const O=await Y.organization.rejectInvitation({invitationId:n});if(O.error)throw new Error(O.error.message);return O.data},e[7]=n,e[8]=m):m=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=rt,e[9]=u):u=e[9];let p;e[10]!==m?(p={mutationFn:m,onSuccess:u,onError:it},e[10]=m,e[11]=p):p=e[11];const g=se(p),y=c.isPending||g.isPending;let f;e[12]!==a||e[13]!==s?(f=a?o.jsx(ge,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Pe,{className:"h-6 w-6 text-primary"})}),e[12]=a,e[13]=s,e[14]=f):f=e[14];let h;e[15]!==s?(h=o.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",o.jsx("strong",{children:s})]}),e[15]=s,e[16]=h):h=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=b):b=e[17];let S;e[18]!==h?(S=o.jsxs("div",{className:"space-y-2",children:[h,b]}),e[18]=h,e[19]=S):S=e[19];let x;e[20]!==c?(x=()=>c.mutate(),e[20]=c,e[21]=x):x=e[21];const v=c.isPending?"Accepting…":"Accept invitation";let _;e[22]!==y||e[23]!==x||e[24]!==v?(_=o.jsx(z,{onClick:x,disabled:y,children:v}),e[22]=y,e[23]=x,e[24]=v,e[25]=_):_=e[25];let N;e[26]!==g?(N=()=>g.mutate(),e[26]=g,e[27]=N):N=e[27];const w=g.isPending?"Declining…":"Decline";let A;e[28]!==y||e[29]!==N||e[30]!==w?(A=o.jsx(z,{variant:"ghost",onClick:N,disabled:y,children:w}),e[28]=y,e[29]=N,e[30]=w,e[31]=A):A=e[31];let C;e[32]!==_||e[33]!==A?(C=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,A]}),e[32]=_,e[33]=A,e[34]=C):C=e[34];let E;return e[35]!==S||e[36]!==C||e[37]!==f?(E=o.jsxs(X,{children:[f,S,C]}),e[35]=S,e[36]=C,e[37]=f,e[38]=E):E=e[38],E}function it(t){Z.error(t instanceof Error?t.message:"Failed to decline invitation")}function rt(){Z.success("Invitation declined"),window.location.href="/"}function lt(t){Z.error(t instanceof Error?t.message:"Failed to accept invitation")}function ct(t){const e=k.c(7);let n;e[0]!==t?(n=re.orgAccessStatus(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==t?(s=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=s):s=e[3];let r;return e[4]!==n||e[5]!==s?(r={queryKey:n,queryFn:s,refetchOnWindowFocus:!1},e[4]=n,e[5]=s,e[6]=r):r=e[6],fe(r)}function dt({orgSlug:t}){const{data:e}=ct(t);return(e.status==="not-found"||e.status==="no-access")&&(Se()?.org===t&&je(),localStorage.getItem(U.lastOrgSlug())===t)?(localStorage.removeItem(U.lastOrgSlug()),window.location.href="/",null):e.status==="not-found"?o.jsx(de,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(at,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(tt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="member"?(window.location.reload(),null):o.jsx(de,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function ut(t){const e=k.c(20),{release:n,onCtaClick:s,onLearnMoreClick:r}=t;let a;e[0]!==n.eyebrow?(a=n.eyebrow&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n.eyebrow}),e[0]=n.eyebrow,e[1]=a):a=e[1];let i;e[2]!==n.title?(i=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:n.title}),e[2]=n.title,e[3]=i):i=e[3];let l;e[4]!==a||e[5]!==i?(l=o.jsxs("div",{children:[a,i]}),e[4]=a,e[5]=i,e[6]=l):l=e[6];let d;e[7]!==n.bullets?(d=n.bullets.map(mt),e[7]=n.bullets,e[8]=d):d=e[8];let c;e[9]!==d?(c=o.jsx("ul",{className:"flex flex-col gap-3",children:d}),e[9]=d,e[10]=c):c=e[10];let m;e[11]!==s||e[12]!==r||e[13]!==n.cta||e[14]!==n.learnMoreHref?(m=(n.cta||n.learnMoreHref)&&o.jsxs("div",{className:"flex items-center justify-between pt-1",children:[n.learnMoreHref?o.jsx("a",{href:n.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:r,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):o.jsx("span",{}),n.cta&&o.jsx(z,{asChild:!0,size:"sm",onClick:s,children:o.jsx("a",{href:n.cta.href,children:n.cta.label})})]}),e[11]=s,e[12]=r,e[13]=n.cta,e[14]=n.learnMoreHref,e[15]=m):m=e[15];let u;return e[16]!==l||e[17]!==c||e[18]!==m?(u=o.jsxs("div",{className:"flex flex-col gap-3",children:[l,c,m]}),e[16]=l,e[17]=c,e[18]=m,e[19]=u):u=e[19],u}function mt(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const pe=[{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:q,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:K,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:J,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:K,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:q,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:J,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:K,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:q,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:J,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:K,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:ce,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:q,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Le,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:J,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:q,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:K,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:ce,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:K,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:De,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],V="studio.release-feed.v1",ae=new Set;let I="",L={},ie=!1;function ft(){if(ie)return I||"{}";try{return localStorage.getItem(V)??"{}"}catch{return I||"{}"}}function ye(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ue(){const t=ft();return t!==I&&(I=t,L=ye(t)),L}function ht(t){ae.add(t);const e=n=>{if(!(n.key!==V&&n.key!==null)){try{const s=localStorage.getItem(V)??"{}",a={...ye(s),...L};L=a,I=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ae.delete(t),window.removeEventListener("storage",e)}}function gt(t){L=t,I=JSON.stringify(t);try{localStorage.setItem(V,I),ie=!1}catch{ie=!0}ae.forEach(e=>e())}function pt(){const t=k.c(7),e=Q.useSyncExternalStore(ht,ue,ue);let n;t[0]!==e?(n=d=>!!e[d],t[0]=e,t[1]=n):n=t[1];const s=n,r=yt;let a;t[2]!==e?(a=pe.reduce((d,c)=>e[c.id]?d:d+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let l;return t[4]!==s||t[5]!==i?(l={isSeen:s,markSeen:r,unseenCount:i},t[4]=s,t[5]=i,t[6]=l):l=t[6],l}function yt(t){L[t]||gt({...L,[t]:{seenAt:new Date().toISOString()}})}const bt=720*60*60*1e3;function xt(t){const[e,n,s]=t.split("-").map(Number);return!e||!n||!s?new Date(t).getTime():new Date(e,n-1,s).getTime()}function wt(t){const e=pe[0];if(!e)return null;const n=xt(e.date),s=t-n;return s<0||s>bt?null:e}function St(){const t=k.c(21),{isSeen:e,markSeen:n}=pt();let s,r,a;if(t[0]!==e){a=Symbol.for("react.early_return_sentinel");e:{if(s=wt(Date.now()),!s){a=null;break e}r=e(s.id)}t[0]=e,t[1]=s,t[2]=r,t[3]=a}else s=t[1],r=t[2],a=t[3];if(a!==Symbol.for("react.early_return_sentinel"))return a;if(r)return null;let i;t[4]!==s.id||t[5]!==n?(i=()=>n(s.id),t[4]=s.id,t[5]=n,t[6]=i):i=t[6];let l;t[7]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(Re,{size:14}),t[7]=l):l=t[7];let d;t[8]!==i?(d=o.jsx(z,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-2 top-2 size-7 text-muted-foreground",onClick:i,children:l}),t[8]=i,t[9]=d):d=t[9];let c,m;t[10]!==s.id||t[11]!==n?(c=()=>n(s.id),m=()=>n(s.id),t[10]=s.id,t[11]=n,t[12]=c,t[13]=m):(c=t[12],m=t[13]);let u;t[14]!==s||t[15]!==c||t[16]!==m?(u=o.jsx(ut,{release:s,onCtaClick:c,onLearnMoreClick:m}),t[14]=s,t[15]=c,t[16]=m,t[17]=u):u=t[17];let p;return t[18]!==d||t[19]!==u?(p=o.jsxs("div",{role:"dialog","aria-label":"Release announcement",className:"fixed bottom-6 right-6 z-50 w-[min(360px,calc(100vw-3rem))] rounded-lg border border-border bg-background p-4 shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[d,u]}),t[18]=d,t[19]=u,t[20]=p):p=t[20],p}const be=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),M=be?"⌘":"Ctrl",$={keyboardShortcuts:{keys:[M,"K"],description:"Keyboard shortcuts"},focusChatInput:{keys:[M,"L"],description:"Focus chat input"},saveAndFormat:{keys:[M,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[M,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[M,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",M,"S"],description:"New task"},toggleDaemon:{keys:[M,"D"],description:"Toggle daemon logs"}},jt=[{label:"General",shortcuts:[$.keyboardShortcuts,$.newTask,$.toggleDaemon]},{label:"Editor",shortcuts:[$.saveAndFormat]},{label:"Chat",shortcuts:[$.focusChatInput,$.togglePlanMode,$.sendMessage,$.newLine]},{label:"Questions",shortcuts:[$.selectOption]},{label:"Monitoring",shortcuts:[$.applyFilter]}];function vt(t){return be?t.metaKey:t.ctrlKey}function kt(t){const e=k.c(5),{open:n,onOpenChange:s}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(qe,{children:o.jsx(Ue,{children:"Keyboard Shortcuts"})}),e[0]=r):r=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsxs(Ke,{className:"sm:max-w-md",children:[r,o.jsx("div",{className:"flex flex-col gap-4",children:jt.map(Nt)})]}),e[1]=a):a=e[1];let i;return e[2]!==s||e[3]!==n?(i=o.jsx(He,{open:n,onOpenChange:s,children:a}),e[2]=s,e[3]=n,e[4]=i):i=e[4],i}function Nt(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ot)})]},t.label)}function Ot(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(_t)})]},t.description)}function _t(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function At({activeOrg:t}){return t&&(ve(t.id,{name:t.name??void 0,slug:t.slug??void 0}),ke()),null}function Ct(t,e,n){if(!n)return null;const s=Be(t,e);return s?s.threads.get().find(a=>a.id===n)?.branch??null:null}function xe(t){return{queryKey:re.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Xt(t){const e=k.c(10);let n;e[0]!==t?(n=xe(t),e[0]=t,e[1]=n):n=e[1];const s=oe(n);let r;e[2]!==s.data?.prompts?(r=s.data?.prompts??[],e[2]=s.data?.prompts,e[3]=r):r=e[3];let a;e[4]!==s.data?.tiles?(a=s.data?.tiles??[],e[4]=s.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==s.isLoading||e[7]!==r||e[8]!==a?(i={isLoading:s.isLoading,prompts:r,tiles:a},e[6]=s.isLoading,e[7]=r,e[8]=a,e[9]=i):i=e[9],i}function Et(t){const e=k.c(17),{orgSlug:n,orgName:s,domain:r}=t;let a;e[0]!==n?(a=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=a):a=e[1];const i=a,l=Tt;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(me,{className:"h-6 w-6 text-primary"})}),e[2]=d):d=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=c):c=e[3];let m;e[4]!==r||e[5]!==s?(m=s?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:s})," requires SSO authentication",r?` via ${r}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=r,e[5]=s,e[6]=m):m=e[6];let u;e[7]!==m?(u=o.jsxs("div",{className:"space-y-2",children:[c,o.jsx("p",{className:"text-sm text-muted-foreground",children:m})]}),e[7]=m,e[8]=u):u=e[8];let p;e[9]!==i?(p=o.jsx(z,{onClick:i,children:"Sign in with SSO"}),e[9]=i,e[10]=p):p=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(z,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=g):g=e[11];let y;e[12]!==p?(y=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,g]}),e[12]=p,e[13]=y):y=e[13];let f;return e[14]!==u||e[15]!==y?(f=o.jsxs(X,{children:[d,u,y]}),e[14]=u,e[15]=y,e[16]=f):f=e[16],f}function Tt(){window.location.href="/"}function $t(t){const e=k.c(8),{org:n,children:s}=t,a=Ze(n.id,n.slug)?.enabled_plugins??null;let i;e[0]!==n.id||e[1]!==n.name||e[2]!==a?(i={id:n.id,organizationId:n.id,slug:"_org",name:n.name,enabledPlugins:a,ui:null},e[0]=n.id,e[1]=n.name,e[2]=a,e[3]=i):i=e[3];const l=i;let d;return e[4]!==s||e[5]!==n||e[6]!==l?(d=o.jsx(Me,{org:n,project:l,children:s}),e[4]=s,e[5]=n,e[6]=l,e[7]=d):d=e[7],d}function zt(){const t=Ne(),e=We(),{org:n,locator:s}=Oe(),r=he({strict:!1}),a=_e({strict:!1}),i=r.org??"",l=r.taskId??"",d=(f,h,b=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:f},search:h,replace:b}),c=(f,h=!0)=>d(l,f,h),m=f=>c(h=>({...h,chat:f?1:0})),u=(f,h,b)=>d(f,S=>{const x={chat:1};h?x.virtualmcpid=h:S.virtualmcpid&&(x.virtualmcpid=S.virtualmcpid);const v=S.main;return v&&typeof v=="string"&&!Je(v)&&(x.main=v),b?.autosend&&(x.autosend=Qe),x},!1);return{setChatOpen:m,setTaskId:u,createNewTask:async f=>{const h=crypto.randomUUID(),b=f??a.virtualmcpid??Ye(n.id).id,x=b===a.virtualmcpid?Ct(n.slug,s,l):null;try{await e?.create({id:h,virtual_mcp_id:b,...x?{branch:x}:{}})}catch{}u(h,b)},openTab:f=>d(l||crypto.randomUUID(),h=>({...h,main:f})),toggleMain:()=>c(f=>{if(f.main!==void 0&&f.main!=="0")return{...f,main:"0"};const b={...f};return delete b.main,b})}}function Mt(){const t=k.c(51);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const s=Ae(e)?.params.org;let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},t[1]=r):r=t[1];const{taskId:a}=he(r),[i,l]=Q.useState(!1),d=s??"";let c;t[2]!==d?(c=xe(d),t[2]=d,t[3]=c):c=t[3];const m=!!s&&!a;let u;t[4]!==c||t[5]!==m?(u={...c,enabled:m},t[4]=c,t[5]=m,t[6]=u):u=t[6],oe(u);const{data:p}=Y.useSession(),g=p?.user?.id;let y;t[7]!==s||t[8]!==g?(y=s&&g?Ce(g,s):null,t[7]=s,t[8]=g,t[9]=y):y=t[9];const f=y;let h,b;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{const j=T=>{vt(T)&&T.code==="KeyK"&&(T.preventDefault(),l(!0))};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},b=[],t[10]=h,t[11]=b):(h=t[10],b=t[11]),Q.useEffect(h,b);let S;t[12]!==s?(S=re.activeOrganization(s),t[12]=s,t[13]=S):S=t[13];let x;t[14]!==s||t[15]!==g?(x=async()=>{if(!s)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await Y.organization.getFullOrganization({query:{organizationSlug:s}}).finally(It),T=le(j);return j&&!T&&localStorage.setItem(U.lastOrgSlug(),s),g&&j&&Te(g,s,j),j},t[14]=s,t[15]=g,t[16]=x):x=t[16];const v=f?f.data:void 0,_=f?.updatedAt;let N;t[17]!==x||t[18]!==v||t[19]!==_||t[20]!==S?(N={queryKey:S,queryFn:x,initialData:v,initialDataUpdatedAt:_,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=x,t[18]=v,t[19]=_,t[20]=S,t[21]=N):N=t[21];const{data:w}=fe(N),A=w?.id,C=w?.slug,{data:E}=et(A,C),O=A??"",ee=C??"";let F;t[22]!==O||t[23]!==ee?(F=Ve({connectionId:Xe,orgId:O,orgSlug:ee}),t[22]=O,t[23]=ee,t[24]=F):F=t[24];const te=!!A&&!!C;let H;if(t[25]!==F||t[26]!==te?(H={...F,enabled:te},t[25]=F,t[26]=te,t[27]=H):H=t[27],oe(H),!w){let j;t[28]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx($e,{}),t[28]=j):j=t[28];let T;return t[29]!==s?(T=o.jsx(Q.Suspense,{fallback:j,children:o.jsx(dt,{orgSlug:s})}),t[29]=s,t[30]=T):T=t[30],T}if(le(w)){localStorage.getItem(U.lastOrgSlug())===s&&localStorage.removeItem(U.lastOrgSlug());let j;return t[31]!==w.name?(j=o.jsx(Ee,{orgName:w.name}),t[31]=w.name,t[32]=j):j=t[32],j}if(E?.ssoRequired&&!E.authenticated){let j;return t[33]!==w.id||t[34]!==w.name||t[35]!==w.slug||t[36]!==E.domain?(j=o.jsx(Et,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:E.domain}),t[33]=w.id,t[34]=w.name,t[35]=w.slug,t[36]=E.domain,t[37]=j):j=t[37],j}const ne=w.logo??null;let P;t[38]!==w||t[39]!==ne?(P={...w,logo:ne},t[38]=w,t[39]=ne,t[40]=P):P=t[40];let D;t[41]!==w?(D=o.jsx(At,{activeOrg:w}),t[41]=w,t[42]=D):D=t[42];let G,B;t[43]===Symbol.for("react.memo_cache_sentinel")?(G=o.jsx(ze,{}),B=o.jsx(St,{}),t[43]=G,t[44]=B):(G=t[43],B=t[44]);let R;t[45]!==i?(R=o.jsx(kt,{open:i,onOpenChange:l}),t[45]=i,t[46]=R):R=t[46];let W;return t[47]!==P||t[48]!==D||t[49]!==R?(W=o.jsxs($t,{org:P,children:[D,G,B,R]}),t[47]=P,t[48]=D,t[49]=R,t[50]=W):W=t[50],W}function It(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Lt(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Ge,{children:o.jsx(Mt,{})}),t[0]=e):e=t[0],e}const Zt=Object.freeze(Object.defineProperty({__proto__:null,default:Lt,usePanelActions:zt},Symbol.toStringTag,{value:"Module"}));export{$ as K,pe as R,pt as a,ut as b,Xt as c,xe as h,vt as i,Ct as r,Zt as s,zt as u};