decocms 4.542.1 → 4.542.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-CTNIR1uo.js → ActiveShapeUtils-xwm7xTvz.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-Hdww5hle.js → AlertCircle-BjT7_GFq.js} +1 -1
  3. package/dist/client/assets/{AreaChart-C_-vf7HG.js → AreaChart-jT3sTbub.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-BdhX_ELF.js → ArrowLeft-Par1IdOs.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-B0V8Iire.js → ArrowUp-At9MqVhB.js} +1 -1
  6. package/dist/client/assets/{BarChart-CGQa-jmR.js → BarChart-BI0I1ki0.js} +1 -1
  7. package/dist/client/assets/{Building02-CIOqUK8u.js → Building02-BV_I3UuJ.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-CJ4c9OjY.js → CartesianChart-CHwcVvKV.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-B7pVoKsa.js → CategoricalChart-CF0oZQqp.js} +1 -1
  10. package/dist/client/assets/{CheckCircle-Oy-r5wrn.js → CheckCircle-D6xmTIXf.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-4o-RZGZG.js → ChevronSelectorVertical-CeHSyaSD.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-yEhXqYsc.js → ChevronUp-CNyARDGk.js} +1 -1
  13. package/dist/client/assets/{Copy01-DZu9JdFR.js → Copy01-DisW4JMo.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-e2iuA4b6.js → CreditCard01-QvSfBZzn.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-2jz8M_Ab.js → DotsVertical-wJ46YU2V.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-pdbVvNIr.js → ErrorBarContext-DteLj0IZ.js} +1 -1
  17. package/dist/client/assets/{Globe04-Dv-Q1UFe.js → Globe04-DK5qhUMj.js} +1 -1
  18. package/dist/client/assets/{Image01-Csw8Eb7F.js → Image01-CO8HhoHi.js} +1 -1
  19. package/dist/client/assets/{Key01-nj-094nh.js → Key01-BDwjIsdK.js} +1 -1
  20. package/dist/client/assets/{Link01-DIQIHWyZ.js → Link01-BHgTruNE.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-DiqXlFxy.js → LinkBroken01-CdMsJVgm.js} +1 -1
  22. package/dist/client/assets/{Minus-DGpW2R_Y.js → Minus-CJDvXjFo.js} +1 -1
  23. package/dist/client/assets/{Monitor01-6lmVgqwN.js → Monitor01-B3thg2Rr.js} +1 -1
  24. package/dist/client/assets/{Play-Bw1hrhzw.js → Play-BhU5Ns8x.js} +1 -1
  25. package/dist/client/assets/{Plus-BQ-ZwSoF.js → Plus-BaWg3Fda.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-D96IaFnI.js → ReferenceLine-NAOdXR_M.js} +1 -1
  27. package/dist/client/assets/{SearchMd-CcFldd9q.js → SearchMd-B541ufOQ.js} +1 -1
  28. package/dist/client/assets/{Sector-Lv3mbSoh.js → Sector-DWc-NOYF.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-Dt2W1jQn.js → ShoppingBag01-d7aE6vty.js} +1 -1
  30. package/dist/client/assets/{Sun-BCEy54hJ.js → Sun-wY_Z9VGm.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-ZVZ1PW_K.js → SwitchHorizontal01-7qdaOYVu.js} +1 -1
  32. package/dist/client/assets/{Tool01-DamUcObd.js → Tool01-DwTqd_Nj.js} +1 -1
  33. package/dist/client/assets/{Trash01-CA_m_Fs0.js → Trash01-B5_r6iLm.js} +1 -1
  34. package/dist/client/assets/{Upload01-COlXo8Rs.js → Upload01-BP49pNql.js} +1 -1
  35. package/dist/client/assets/UserSquare-D1neGXtF.js +1 -0
  36. package/dist/client/assets/{Users01-CqKKJKeH.js → Users01-CrLtxwQA.js} +1 -1
  37. package/dist/client/assets/{XClose-BLrzcEcC.js → XClose-DsiXpG7_.js} +1 -1
  38. package/dist/client/assets/{Zap-CbyRjfWs.js → Zap-BB-vOERw.js} +1 -1
  39. package/dist/client/assets/{ZoomOut-C8TxwIPG.js → ZoomOut-ZB7MeGmK.js} +1 -1
  40. package/dist/client/assets/{access-gate-RZ9GSyUJ.js → access-gate-BMPZzaLe.js} +1 -1
  41. package/dist/client/assets/{add-connection-dialog-BVaDiahz.js → add-connection-dialog-DkTbkwZe.js} +1 -1
  42. package/dist/client/assets/{agent-analytics-Cdw0YBIV.js → agent-analytics-DFuVpyFS.js} +1 -1
  43. package/dist/client/assets/agent-app-BI0E5_7n.js +1 -0
  44. package/dist/client/assets/{agent-assets-C6qXUWEv.js → agent-assets-mt6-RxoQ.js} +1 -1
  45. package/dist/client/assets/{agent-automation-N0vyewKq.js → agent-automation-DPJINZ67.js} +1 -1
  46. package/dist/client/assets/{agent-automations-U4KLp_Jm.js → agent-automations-Cl5cbuK-.js} +1 -1
  47. package/dist/client/assets/{agent-calendar-VlbI2j-J.js → agent-calendar-CMljpTSo.js} +1 -1
  48. package/dist/client/assets/{agent-connect-sources-DzR95Lay.js → agent-connect-sources-Ck7orXzL.js} +1 -1
  49. package/dist/client/assets/agent-deck-Nw66gXDM.js +1 -0
  50. package/dist/client/assets/{agent-e2e-7b8bEJgs.js → agent-e2e-BLatnPC9.js} +1 -1
  51. package/dist/client/assets/agent-experiments-BslAK98v.js +1 -0
  52. package/dist/client/assets/{agent-file-qAGeJ5wq.js → agent-file-cyUqJo5U.js} +1 -1
  53. package/dist/client/assets/{agent-hosting-ZktfT8aB.js → agent-hosting-DFO1UQwH.js} +1 -1
  54. package/dist/client/assets/agent-icon-D-0GvNzG.js +1 -0
  55. package/dist/client/assets/agent-library-BXKmMOCL.js +1 -0
  56. package/dist/client/assets/agent-library-file-D8BDKfA2.js +1 -0
  57. package/dist/client/assets/agent-monitor-D6kjNFa-.js +1 -0
  58. package/dist/client/assets/{agent-overview-C1fHYueD.js → agent-overview-CckXDLIM.js} +1 -1
  59. package/dist/client/assets/{agent-releases-BUlnts0m.js → agent-releases-Bfo75_fu.js} +1 -1
  60. package/dist/client/assets/agent-settings-DM6gu80D.js +1 -0
  61. package/dist/client/assets/{agent-site-editor-BxGyQ1GG.js → agent-site-editor-DEMYd53f.js} +1 -1
  62. package/dist/client/assets/agent-site-editor-code-B7Ja4k0e.js +2 -0
  63. package/dist/client/assets/agent-site-editor-content-BgxmK1MQ.js +1 -0
  64. package/dist/client/assets/agent-site-editor-preview-BxfSe8hZ.js +1 -0
  65. package/dist/client/assets/agent-view-Di5xXloU.js +1 -0
  66. package/dist/client/assets/{agent-view-guard-CrSlBYGa.js → agent-view-guard-BVgIccGF.js} +1 -1
  67. package/dist/client/assets/{agents-list-DQMpcCgV.js → agents-list-Bhp-wRRW.js} +1 -1
  68. package/dist/client/assets/{ai-providers-DmJhCIXK.js → ai-providers-BZ346tRe.js} +1 -1
  69. package/dist/client/assets/{alert-Bg73iQHm.js → alert-l5j64Qp_.js} +1 -1
  70. package/dist/client/assets/{analytics-sections-COL0BtKA.js → analytics-sections-C7Wvx5is.js} +1 -1
  71. package/dist/client/assets/{api-keys-yf9_DOP2.js → api-keys-D1eJSOy-.js} +1 -1
  72. package/dist/client/assets/api-keys-Duet-lJP.js +1 -0
  73. package/dist/client/assets/app-editor-BdTBcszA.js +1 -0
  74. package/dist/client/assets/{asset-utils-BrDvPrYv.js → asset-utils-Cwse7TzX.js} +1 -1
  75. package/dist/client/assets/{auth-DPUc_dnx.js → auth-BZPkjT4-.js} +1 -1
  76. package/dist/client/assets/{auth-catchall-3vQklB_P.js → auth-catchall-CorB5tw4.js} +1 -1
  77. package/dist/client/assets/{auth-entry-DzHbwDpa.js → auth-entry-iQvrZCC2.js} +1 -1
  78. package/dist/client/assets/{auth-split-layout-CrNUjCQ4.js → auth-split-layout-BlKheOJZ.js} +1 -1
  79. package/dist/client/assets/{authenticate-and-persist-oauth-RWTag1bK.js → authenticate-and-persist-oauth-DercrMMu.js} +1 -1
  80. package/dist/client/assets/{automation-list-row-DJWeWPbv.js → automation-list-row-g_Vn0fLf.js} +1 -1
  81. package/dist/client/assets/{automation-runs-C9XEPlIV.js → automation-runs-B-xMEZBF.js} +1 -1
  82. package/dist/client/assets/{automations-Dhk5JOxd.js → automations-CXl5dDVa.js} +1 -1
  83. package/dist/client/assets/{autosend-Bw00xJf9.js → autosend-Ci815qQG.js} +1 -1
  84. package/dist/client/assets/{badge-BWAFo8iB.js → badge-iQ-KRbWv.js} +1 -1
  85. package/dist/client/assets/{block-document-D_ARyc6Z.js → block-document-DLTjHmMQ.js} +3 -3
  86. package/dist/client/assets/{blocks-preview-workspace-context-Bhzld3G9.js → blocks-preview-workspace-context-Cr4NHNVG.js} +1 -1
  87. package/dist/client/assets/blocks-tab-states-Cs7bIWnm.js +1 -0
  88. package/dist/client/assets/{blog-schema-B3FO_Ydd.js → blog-schema-UfoKLAgi.js} +1 -1
  89. package/dist/client/assets/{buckets-D-TerXqE.js → buckets-0IbVUkQA.js} +1 -1
  90. package/dist/client/assets/{build-improve-prompt-doc-D_iuDFLq.js → build-improve-prompt-doc-RrLnbLYj.js} +1 -1
  91. package/dist/client/assets/{calendar-BRFOK1aQ.js → calendar-CjBfTyns.js} +1 -1
  92. package/dist/client/assets/{capability-load-error-BNI4R8XO.js → capability-load-error-BciHzJb0.js} +1 -1
  93. package/dist/client/assets/{category-editor-bZgzbes6.js → category-editor-2zcLZItm.js} +1 -1
  94. package/dist/client/assets/{cdn-tab-BqJVJvQQ.js → cdn-tab-OEVXJsgd.js} +1 -1
  95. package/dist/client/assets/{chart-Q09A7KSZ.js → chart-D-nB-Kvb.js} +1 -1
  96. package/dist/client/assets/{chat-context-DR3uLV2w.js → chat-context-0CZgd-Gr.js} +1 -1
  97. package/dist/client/assets/{chat-draft-CKNXk7gm.js → chat-draft-DM7nVCQ-.js} +1 -1
  98. package/dist/client/assets/{checkbox-b8t24adl.js → checkbox-DVUVqeGQ.js} +1 -1
  99. package/dist/client/assets/{choose-editor-TtuwIl9O.js → choose-editor-D4MptH6S.js} +1 -1
  100. package/dist/client/assets/{cli-auth-success-Dt-ivrkY.js → cli-auth-success-CcaewW77.js} +1 -1
  101. package/dist/client/assets/{client-icons-3S2BKupf.js → client-icons-CYPommua.js} +1 -1
  102. package/dist/client/assets/{cms-settings-editor-CoL1CtIi.js → cms-settings-editor-CnyCQ0VY.js} +1 -1
  103. package/dist/client/assets/{collapsible-BHetx99z.js → collapsible-VIsV7VNH.js} +1 -1
  104. package/dist/client/assets/{collection-detail-C551YHre.js → collection-detail-DWJ8AxJZ.js} +1 -1
  105. package/dist/client/assets/{collection-display-button-BjEhoX6t.js → collection-display-button-DM4HtPM4.js} +1 -1
  106. package/dist/client/assets/{collection-search-2lwiZ_Gf.js → collection-search-Dg61rOFc.js} +1 -1
  107. package/dist/client/assets/{collection-table-wrapper-TIbTouTp.js → collection-table-wrapper-Tom29l37.js} +1 -1
  108. package/dist/client/assets/{collection-tabs-DNvFQjqm.js → collection-tabs-Dgf5t1P2.js} +1 -1
  109. package/dist/client/assets/{combobox-CMpxb7Mm.js → combobox-BxlWJcmj.js} +1 -1
  110. package/dist/client/assets/{command-CermhoTd.js → command-DELHBruW.js} +1 -1
  111. package/dist/client/assets/{companion-mcps-section-CM4OIzwX.js → companion-mcps-section-DplrUpp5.js} +1 -1
  112. package/dist/client/assets/{config-VQsUFgqz.js → config-C7l46kfh.js} +1 -1
  113. package/dist/client/assets/{connect-BfWqzz_9.js → connect-DMjCcT3A.js} +1 -1
  114. package/dist/client/assets/{connect-layout-F601-RNu.js → connect-layout-BPsq801z.js} +1 -1
  115. package/dist/client/assets/{connect-source-dialog-CBx-6nzq.js → connect-source-dialog-C2D2IgRk.js} +1 -1
  116. package/dist/client/assets/{connection-DrOf5a8e.js → connection-OneH_KYb.js} +1 -1
  117. package/dist/client/assets/{connection-card-CZBuUPP_.js → connection-card-Cn0XDJp5.js} +1 -1
  118. package/dist/client/assets/{connection-detail-DPF8YmLk.js → connection-detail-DviNqCvu.js} +1 -1
  119. package/dist/client/assets/{connection-form-helpers-D3sfjZA_.js → connection-form-helpers-Bky3pLkI.js} +1 -1
  120. package/dist/client/assets/{connections-lrErrE5H.js → connections-CnCDDLW4.js} +1 -1
  121. package/dist/client/assets/content-tab-ChaQz5Cw.js +25 -0
  122. package/dist/client/assets/context-Z72cw_0L.js +1 -0
  123. package/dist/client/assets/{context-menu-Biz9RPI-.js → context-menu-BVx2zw6F.js} +1 -1
  124. package/dist/client/assets/{context-shell-CnZGomwI.js → context-shell-4OlOuHkx.js} +3 -3
  125. package/dist/client/assets/{core.esm-Dennsttt.js → core.esm-DtwNC1S6.js} +1 -1
  126. package/dist/client/assets/{create-organization-dialog-wSFwPaJG.js → create-organization-dialog-Bud6wRZH.js} +1 -1
  127. package/dist/client/assets/{daily-pulse-A6f95wwZ.js → daily-pulse-CZ6S1sQA.js} +1 -1
  128. package/dist/client/assets/{discover-DU-Rzely.js → discover-DTCouleE.js} +1 -1
  129. package/dist/client/assets/{domain-settings-Bnb_ZtIt.js → domain-settings-CMqaHhTL.js} +1 -1
  130. package/dist/client/assets/{drawer-CuUzaTfw.js → drawer-DV7RfSOm.js} +1 -1
  131. package/dist/client/assets/{editor-CJ37wKUc.js → editor-C97Kf5Du.js} +1 -1
  132. package/dist/client/assets/{editor-classes-yEQ_KPvG.js → editor-classes-Cpizi6Gd.js} +1 -1
  133. package/dist/client/assets/{empty-state-DXBACaDC.js → empty-state-BaG0Q4po.js} +1 -1
  134. package/dist/client/assets/{empty-state-DhRsvQHO.js → empty-state-DN5hGWOA.js} +1 -1
  135. package/dist/client/assets/{experiments-tab-Bx6GaOJU.js → experiments-tab-CaSjZfNk.js} +1 -1
  136. package/dist/client/assets/{experiments-tab-choice-B1sDnY5T.js → experiments-tab-choice-D7HK8muj.js} +1 -1
  137. package/dist/client/assets/{extract-connection-data-DOpfeyzI.js → extract-connection-data-CMDKUW-r.js} +1 -1
  138. package/dist/client/assets/{feature-gate-FbVbvaij.js → feature-gate-BCs7uS6R.js} +1 -1
  139. package/dist/client/assets/{feature-paywall-CdkGt72v.js → feature-paywall-BkfFWoMQ.js} +1 -1
  140. package/dist/client/assets/{file-explorer-BfjvwZGe.js → file-explorer-D9mAz812.js} +1 -1
  141. package/dist/client/assets/{file-preview-CpUVcTEC.js → file-preview-BIWzBCIQ.js} +1 -1
  142. package/dist/client/assets/{file-share-button-BFGgw9L9.js → file-share-button-Yp1hPdth.js} +1 -1
  143. package/dist/client/assets/{file-type-icon-BkRHeWVz.js → file-type-icon-BzoA5jiZ.js} +1 -1
  144. package/dist/client/assets/{folder-icon-CEWb3RvH.js → folder-icon-3OVJ0C3s.js} +1 -1
  145. package/dist/client/assets/{form-RFg7ydwN.js → form-BeydREbm.js} +1 -1
  146. package/dist/client/assets/{general-CCnErHaD.js → general-TShdY8k6.js} +1 -1
  147. package/dist/client/assets/{github-icon-CfOxQ_kk.js → github-icon-BAVg06aG.js} +1 -1
  148. package/dist/client/assets/{held-block-view-B1ZTgtaf.js → held-block-view-C-gX7MJV.js} +3 -3
  149. package/dist/client/assets/{home-d4IkLgAU.js → home-CaunCGhV.js} +1 -1
  150. package/dist/client/assets/{hosted-publish-feedback-CaaC9Yio.js → hosted-publish-feedback-DBuxeNUI.js} +1 -1
  151. package/dist/client/assets/{icon-button-DUX8uev-.js → icon-button-Dvr6r3yU.js} +1 -1
  152. package/dist/client/assets/{index-KnmovUVi.js → index-3W95YvR0.js} +1 -1
  153. package/dist/client/assets/{index-CuP8z21G.js → index-APWCNDjQ.js} +1 -1
  154. package/dist/client/assets/{index-DnZM2vOx.js → index-B84NhyjS.js} +1 -1
  155. package/dist/client/assets/{index-BN1wxwBE.js → index-Bi4PycPz.js} +1 -1
  156. package/dist/client/assets/{index-BU3lM1Xe.js → index-C6hJbAJT.js} +1 -1
  157. package/dist/client/assets/{index-CaPLCDO_.js → index-CG3hHrir.js} +1 -1
  158. package/dist/client/assets/{index-GbZ7cHim.js → index-CP1LLlUE.js} +1 -1
  159. package/dist/client/assets/{index-ZjFFuBzo.js → index-Co_Y2KRI.js} +1 -1
  160. package/dist/client/assets/{index-DF_kVaV9.js → index-CvcioybL.js} +1 -1
  161. package/dist/client/assets/{index-nea5NUvS.js → index-CzKs4Djn.js} +1 -1
  162. package/dist/client/assets/{index-DiqyTQYB.js → index-DJkEjMHv.js} +1 -1
  163. package/dist/client/assets/{index-DiHVaqTW.js → index-DXbJEWCl.js} +1 -1
  164. package/dist/client/assets/{index-AhdOdumU.js → index-DslCcy2A.js} +2 -2
  165. package/dist/client/assets/{index-CYvmYTza.js → index-Gy88raZj.js} +1 -1
  166. package/dist/client/assets/{index-Cw6ilRLN.js → index-WgfN4QVP.js} +7 -7
  167. package/dist/client/assets/{index-redirect-D8gnMr4D.js → index-redirect-BuSCUFK5.js} +1 -1
  168. package/dist/client/assets/{infiniteQueryObserver-r2g3Rufl.js → infiniteQueryObserver-AJwWz1b5.js} +1 -1
  169. package/dist/client/assets/{infra-billing-xKdFu2DK.js → infra-billing-CSDR5i1g.js} +1 -1
  170. package/dist/client/assets/{input-BiNlRIkN.js → input-BqbNJGML.js} +3 -3
  171. package/dist/client/assets/{input-B3t37gB5.js → input-C9nmuHHZ.js} +1 -1
  172. package/dist/client/assets/{integration-icon-BvuUEHwl.js → integration-icon-UvPKDtTh.js} +1 -1
  173. package/dist/client/assets/{jira-icon-C17_Jc2B.js → jira-icon-Bmh7OVT1.js} +1 -1
  174. package/dist/client/assets/{label-DvonkoXD.js → label-Dxzmqh4L.js} +1 -1
  175. package/dist/client/assets/{layout-BiaPlBt-.js → layout-C4nyDmIH.js} +1 -1
  176. package/dist/client/assets/{legacy-agents-deep-DV5Zxfa8.js → legacy-agents-deep-aq4ok2ss.js} +1 -1
  177. package/dist/client/assets/{legacy-main-redirect-3QdAqV_c.js → legacy-main-redirect-IAdI4U7x.js} +1 -1
  178. package/dist/client/assets/library-Da5YKyoM.js +1 -0
  179. package/dist/client/assets/{library-tab-Nfz-0YaQ.js → library-tab-CSUDGppR.js} +1 -1
  180. package/dist/client/assets/{login-bITsid_u.js → login-4UMFaQqs.js} +1 -1
  181. package/dist/client/assets/{markdown-Bnq_rauO.js → markdown-NHGOJDhi.js} +1 -1
  182. package/dist/client/assets/{mcp-app-renderer-D9bP7Uyj.js → mcp-app-renderer-CGhEZS_Z.js} +1 -1
  183. package/dist/client/assets/{mcp-oauth-B1sQYgh4.js → mcp-oauth-D0k2-sPR.js} +1 -1
  184. package/dist/client/assets/{mcp-oauth-zW9MaFGn.js → mcp-oauth-Due6wImr.js} +1 -1
  185. package/dist/client/assets/{members-CXI65xvm.js → members-CNgezQXU.js} +1 -1
  186. package/dist/client/assets/{memory-C-guhabj.js → memory-BmjdKRyH.js} +1 -1
  187. package/dist/client/assets/{mini-report-page-C9o2eyOe.js → mini-report-page-C4ZquL_-.js} +1 -1
  188. package/dist/client/assets/{mock-board-BShoWwXR.js → mock-board-CSzfjmM9.js} +3 -3
  189. package/dist/client/assets/{monaco-editor-DP1-rJ0v.js → monaco-editor-BDiq_2v4.js} +1 -1
  190. package/dist/client/assets/{monitoring-CqLCuFHk.js → monitoring-DDlo0E0z.js} +1 -1
  191. package/dist/client/assets/{monitoring-stats-row-BRnhkE0A.js → monitoring-stats-row-BIUtkx4G.js} +1 -1
  192. package/dist/client/assets/{multi-select-ID8vWjv8.js → multi-select-BzEGbWV5.js} +1 -1
  193. package/dist/client/assets/{mustache-nJjvu1VV.js → mustache-CDuMzcYJ.js} +1 -1
  194. package/dist/client/assets/{named-rule-uses-BHC4DlIQ.js → named-rule-uses-BBO-qGhe.js} +1 -1
  195. package/dist/client/assets/{new-project-dialog-4twV8Y4C.js → new-project-dialog-DePwIx8r.js} +1 -1
  196. package/dist/client/assets/{oauth-callback-h0NUpdOX.js → oauth-callback-MEfOlRUI.js} +1 -1
  197. package/dist/client/assets/{oauth-callback-ai-provider-Da3_ca8D.js → oauth-callback-ai-provider-CmQYTORU.js} +1 -1
  198. package/dist/client/assets/{onboarding-CvFXVvAB.js → onboarding-D-XW6Ll4.js} +1 -1
  199. package/dist/client/assets/{openai-conversation-9-S9iWS8.js → openai-conversation-f0QT3g0s.js} +1 -1
  200. package/dist/client/assets/{optimistic-project-sidebar-views-B65im_4W.js → optimistic-project-sidebar-views-BLuXu9p7.js} +1 -1
  201. package/dist/client/assets/{order-monitor-day-GXa0K2fU.js → order-monitor-day-CUhalAkv.js} +1 -1
  202. package/dist/client/assets/{organization-choice-DKpl7kTn.js → organization-choice-C88DHbpi.js} +1 -1
  203. package/dist/client/assets/{orgs-Dt-LNqWF.js → orgs-BqSj6zly.js} +1 -1
  204. package/dist/client/assets/{page-seo-form-DzjOyYJI.js → page-seo-form-bsmuSaAw.js} +1 -1
  205. package/dist/client/assets/{pair-BwKW0A4I.js → pair-Cz07PNwj.js} +1 -1
  206. package/dist/client/assets/parse-sections-CNEwf5xY.js +1 -0
  207. package/dist/client/assets/{plan-BJIbgrS0.js → plan-BaxzxsmN.js} +1 -1
  208. package/dist/client/assets/{plan-ladder-DIPGMFy3.js → plan-ladder-CPUSwIwK.js} +1 -1
  209. package/dist/client/assets/{plan-usage-card-OrJ6ndWB.js → plan-usage-card-C2rK33eA.js} +1 -1
  210. package/dist/client/assets/{popover-N-Tbv2Q_.js → popover-DqVLkXUD.js} +1 -1
  211. package/dist/client/assets/{post-calendar-BN2880sO.js → post-calendar-D-B-o5Sk.js} +1 -1
  212. package/dist/client/assets/{post-editor-SZ0T52l-.js → post-editor-wYAwFgD6.js} +1 -1
  213. package/dist/client/assets/{preview-content-BrY4N22Q.js → preview-content-SmC2ClvS.js} +1 -1
  214. package/dist/client/assets/{preview-dialog-DNkXNQe2.js → preview-dialog-CKYpQv_g.js} +1 -1
  215. package/dist/client/assets/{preview-panel-BeRdNuZC.js → preview-panel-CUIawUFr.js} +1 -1
  216. package/dist/client/assets/{preview-tab-EJWXb_JS.js → preview-tab-gJ-NI33V.js} +3 -3
  217. package/dist/client/assets/{product-picker-dialog-DJW0OQ7t.js → product-picker-dialog-BfM9NW4L.js} +1 -1
  218. package/dist/client/assets/{profile-p2CkJE0T.js → profile-BAzM4QDZ.js} +1 -1
  219. package/dist/client/assets/{project-app-view-C_EMPbo0.js → project-app-view-D4za2-JY.js} +1 -1
  220. package/dist/client/assets/{project-apps-CbCNo3Qh.js → project-apps-B3VLUQHR.js} +1 -1
  221. package/dist/client/assets/{project-feed-BOoFoesM.js → project-feed-BMuYP0mY.js} +1 -1
  222. package/dist/client/assets/{project-icon-BRvDYuEF.js → project-icon-BIzg7YUA.js} +1 -1
  223. package/dist/client/assets/project-reports-DJoAVemp.js +1 -0
  224. package/dist/client/assets/project-tasks-Db93bOVr.js +1 -0
  225. package/dist/client/assets/{projects-DxaWyr4c.js → projects-BsvG5EZk.js} +1 -1
  226. package/dist/client/assets/{projects-empty-state-q_kUg5xI.js → projects-empty-state-BuGy3TU-.js} +1 -1
  227. package/dist/client/assets/{prompts-ORkU8nSR.js → prompts-C_3bA9AB.js} +1 -1
  228. package/dist/client/assets/record-editor-DavD_m_0.js +1 -0
  229. package/dist/client/assets/redirect-editor-DoeEK1iC.js +1 -0
  230. package/dist/client/assets/{releases-api-MmQe-HE4.js → releases-api-DaYlp5Yo.js} +1 -1
  231. package/dist/client/assets/reports-5EubtE8r.js +1 -0
  232. package/dist/client/assets/{reports-C3nGzDLE.js → reports-D9rwlh0Z.js} +1 -1
  233. package/dist/client/assets/{reports-onboarding-D8qOl7n6.js → reports-onboarding-CI5-svnj.js} +1 -1
  234. package/dist/client/assets/{reports-tab-BRsFQ8_g.js → reports-tab-Dqp0OnYz.js} +2 -2
  235. package/dist/client/assets/repositories-BaY0RDK6.js +1 -0
  236. package/dist/client/assets/{repositories-DWS1FNsz.js → repositories-pCQtYygJ.js} +1 -1
  237. package/dist/client/assets/{repository-binding-PeMGXqSl.js → repository-binding-DF6YCWsj.js} +1 -1
  238. package/dist/client/assets/{repository-import-picker-BMJ3biNs.js → repository-import-picker-bneKFCuv.js} +1 -1
  239. package/dist/client/assets/{repository-picker-XiErYA7B.js → repository-picker-CGoSX3oi.js} +1 -1
  240. package/dist/client/assets/{require-capability-42JNP4Dw.js → require-capability-DbotB2TQ.js} +1 -1
  241. package/dist/client/assets/{required-auth-layout-DsfiOlyN.js → required-auth-layout-BLLWaY3S.js} +1 -1
  242. package/dist/client/assets/{reset-password-CsAEO5bw.js → reset-password-CYfdP8lX.js} +1 -1
  243. package/dist/client/assets/{resizable-XQP8BK4_.js → resizable-DcAx-gSp.js} +1 -1
  244. package/dist/client/assets/{resolve-tab-icon-CguQjH43.js → resolve-tab-icon-CEtcjh_A.js} +1 -1
  245. package/dist/client/assets/review-settings-BtTYlHnB.js +1 -0
  246. package/dist/client/assets/{roles-DZFrq3cC.js → roles-wWNA46at.js} +1 -1
  247. package/dist/client/assets/{route-C-GIqs4Z.js → route-8T5e9Ewx.js} +1 -1
  248. package/dist/client/assets/{route-DKXnO--k.js → route-CGePI1fo.js} +1 -1
  249. package/dist/client/assets/route-D_1NyYgH.js +1 -0
  250. package/dist/client/assets/{sandbox-lifecycle-context-DB7MI-hA.js → sandbox-lifecycle-context-Bwi5LES5.js} +1 -1
  251. package/dist/client/assets/{schema-CB30E7Gi.js → schema-BUPJBVf-.js} +1 -1
  252. package/dist/client/assets/{schema-DGh8triY.js → schema-DiDerRAC.js} +1 -1
  253. package/dist/client/assets/{scroll-area-BhjyScQp.js → scroll-area-CiASyTMh.js} +1 -1
  254. package/dist/client/assets/{search-input-CnMfC6Ib.js → search-input-BB0pLu50.js} +1 -1
  255. package/dist/client/assets/{search-toggle-BsT7rhT7.js → search-toggle-Ct5urmf5.js} +1 -1
  256. package/dist/client/assets/{secret-picker-DRe1iXLV.js → secret-picker-DeqIjavS.js} +1 -1
  257. package/dist/client/assets/{secrets-Cm-nUiVG.js → secrets-CXa42ggH.js} +1 -1
  258. package/dist/client/assets/{section-array-field-CowajgIO.js → section-array-field-DENveGph.js} +1 -1
  259. package/dist/client/assets/{sections-DN1XjEty.js → sections-Czi5N-nx.js} +1 -1
  260. package/dist/client/assets/sections-editor-CJWiHP8t.js +1 -0
  261. package/dist/client/assets/{select-IRnWfSEI.js → select-CFg3KEOq.js} +1 -1
  262. package/dist/client/assets/{select-model-_tURUtw8.js → select-model-DkYaqcwE.js} +1 -1
  263. package/dist/client/assets/{seo-editor-DQuBtXMq.js → seo-editor-C18LAsg1.js} +1 -1
  264. package/dist/client/assets/{separator-AD4s_4vt.js → separator-DlxWQ5-B.js} +1 -1
  265. package/dist/client/assets/settings-tab-CGA_nTpk.js +1 -0
  266. package/dist/client/assets/{sheet-CLT2kz10.js → sheet-CA3M7bQp.js} +1 -1
  267. package/dist/client/assets/{shell-layout-CdKs-SVX.js → shell-layout-pSWumg64.js} +1 -1
  268. package/dist/client/assets/{site-draft-actions-K5CCMVX6.js → site-draft-actions-B9N3leLY.js} +1 -1
  269. package/dist/client/assets/{site-draft-view-Dzca4Bar.js → site-draft-view-Byvdlyo6.js} +2 -2
  270. package/dist/client/assets/site-editor-CqHgEJnK.js +1 -0
  271. package/dist/client/assets/{site-editor-toast-MdEv_oKc.js → site-editor-toast-Bz-6LR6r.js} +1 -1
  272. package/dist/client/assets/{skills-DIJP95gf.js → skills-DcoNLVNg.js} +1 -1
  273. package/dist/client/assets/{slider-BOLJxYF2.js → slider-CdizOZzU.js} +1 -1
  274. package/dist/client/assets/{sortable.esm-CIFqofWL.js → sortable.esm-D_24nW2P.js} +1 -1
  275. package/dist/client/assets/{sso-DqMDaenE.js → sso-BX8AqSlx.js} +1 -1
  276. package/dist/client/assets/{suggestion-tz-f65fQ.js → suggestion-hz2N0L4f.js} +1 -1
  277. package/dist/client/assets/{switch-D45dHrK3.js → switch-nJxNuRWR.js} +1 -1
  278. package/dist/client/assets/{symbol-Femlxd_m.js → symbol-DnjOGl1B.js} +1 -1
  279. package/dist/client/assets/{synced-repos-45QejDcI.js → synced-repos-CwsMzHsk.js} +1 -1
  280. package/dist/client/assets/{tab-icon-glyph-pt4s2Grb.js → tab-icon-glyph-CyteS_dF.js} +1 -1
  281. package/dist/client/assets/{table-Daq1_j7m.js → table-D3Xss2p0.js} +1 -1
  282. package/dist/client/assets/{tabs-DBG72Yee.js → tabs-j1z3THwl.js} +1 -1
  283. package/dist/client/assets/{task-assignee-avatar-DrrfJr__.js → task-assignee-avatar-ClZ-7JIA.js} +1 -1
  284. package/dist/client/assets/{task-board-DSKYQnUa.js → task-board-M_qS1rzf.js} +1 -1
  285. package/dist/client/assets/{task-route-D46EYWzc.js → task-route-CWCfzbE3.js} +1 -1
  286. package/dist/client/assets/{task-status-CJpXljEZ.js → task-status-CC96IwX7.js} +1 -1
  287. package/dist/client/assets/{taskboard-analytics-COtnoUXH.js → taskboard-analytics-XMzxqkpx.js} +1 -1
  288. package/dist/client/assets/tasks-C8psxVdc.js +1 -0
  289. package/dist/client/assets/{tasks-D5O8k4au.js → tasks-fO-z4dp1.js} +1 -1
  290. package/dist/client/assets/{textarea-B3VJ1IVc.js → textarea-D-MP0s12.js} +1 -1
  291. package/dist/client/assets/{thread-analytics-yTtiboMK.js → thread-analytics-DZ3xDtzM.js} +1 -1
  292. package/dist/client/assets/{thread-intent-CAWCzeoG.js → thread-intent-DSKhfvxP.js} +1 -1
  293. package/dist/client/assets/{thread-route-BZQyZ1gL.js → thread-route-D2HAbtZo.js} +1 -1
  294. package/dist/client/assets/{thread-route-C3He_naw.js → thread-route-DJFRjF24.js} +1 -1
  295. package/dist/client/assets/{thread-sheet-body-vk26kAGI.js → thread-sheet-body-uGXl8WDp.js} +1 -1
  296. package/dist/client/assets/{time-range-picker-Dwtk68FK.js → time-range-picker-DE6cxBjq.js} +1 -1
  297. package/dist/client/assets/{toggle-group-BtOmVjMF.js → toggle-group-BUfjArPT.js} +1 -1
  298. package/dist/client/assets/{tool-namespace-COirY7s5.js → tool-namespace-CGxHGKW_.js} +1 -1
  299. package/dist/client/assets/{toolbar-icon-button-as98rium.js → toolbar-icon-button-B1loXRWd.js} +1 -1
  300. package/dist/client/assets/{tooltip-g1j6c67B.js → tooltip-CUsEGqy_.js} +1 -1
  301. package/dist/client/assets/{tooltipContext-CLvPoHx0.js → tooltipContext-Bj1ILd8M.js} +1 -1
  302. package/dist/client/assets/{track-CbG7q0Jx.js → track-CkX_aW1n.js} +1 -1
  303. package/dist/client/assets/{types-C_kLVB_R.js → types-D9PXVqqG.js} +1 -1
  304. package/dist/client/assets/{url-slug-DFbBJdJJ.js → url-slug-B4ugcdZY.js} +1 -1
  305. package/dist/client/assets/{usage-stats-CO_PzmjR.js → usage-stats-qowelp13.js} +1 -1
  306. package/dist/client/assets/{use-ai-providers-UYArMe6s.js → use-ai-providers-BcdAb8qD.js} +1 -1
  307. package/dist/client/assets/{use-apply-named-rule-DjUylbM_.js → use-apply-named-rule-ByoZP5j7.js} +1 -1
  308. package/dist/client/assets/{use-automations-fhgNtkrI.js → use-automations-BVNZ6rjm.js} +1 -1
  309. package/dist/client/assets/{use-autosave-VNB60wel.js → use-autosave-ysdD2930.js} +1 -1
  310. package/dist/client/assets/{use-chat-layout-state-uzyWoT7E.js → use-chat-layout-state-B5aaDvob.js} +1 -1
  311. package/dist/client/assets/{use-clock-tick-Bbl4jizB.js → use-clock-tick-Cfukw61c.js} +1 -1
  312. package/dist/client/assets/{use-cms-publish-actions-Oa0EZQ0t.js → use-cms-publish-actions-DZ9irs8o.js} +1 -1
  313. package/dist/client/assets/{use-connect-companion-BinIX0nI.js → use-connect-companion-BO5TLspT.js} +1 -1
  314. package/dist/client/assets/{use-connection-BeEdNRHa.js → use-connection-FqHna8PS.js} +1 -1
  315. package/dist/client/assets/{use-copy-Dk3cEiBB.js → use-copy-CXZDMarr.js} +1 -1
  316. package/dist/client/assets/{use-create-virtual-mcp-CcnOX0WT.js → use-create-virtual-mcp-Dzh7EwRz.js} +1 -1
  317. package/dist/client/assets/{use-date-fns-locale-CpjJIfQT.js → use-date-fns-locale-DDFXCn-E.js} +1 -1
  318. package/dist/client/assets/{use-debounced-autosave-QN0_xGaq.js → use-debounced-autosave-DnB6ruCU.js} +1 -1
  319. package/dist/client/assets/{use-debounced-value-Cg3pn3hJ.js → use-debounced-value-QixculIP.js} +1 -1
  320. package/dist/client/assets/{use-deco-credits-C5r8tKZH.js → use-deco-credits-CvKHRGmx.js} +1 -1
  321. package/dist/client/assets/{use-decopilot-events-D7GIEyuu.js → use-decopilot-events-fL28TEHC.js} +1 -1
  322. package/dist/client/assets/{use-delete-connection-Cx5vGSZR.js → use-delete-connection-DmHzYgl9.js} +1 -1
  323. package/dist/client/assets/{use-deployment-admin-DVUkJw7-.js → use-deployment-admin-DIOIJKFZ.js} +1 -1
  324. package/dist/client/assets/{use-entitlements-C4tNpLNZ.js → use-entitlements-BkqxE18N.js} +1 -1
  325. package/dist/client/assets/{use-fast-preview-draft-url-C2yv-JdA.js → use-fast-preview-draft-url-BRikkUIY.js} +1 -1
  326. package/dist/client/assets/{use-file-configs-C8WLQuJ_.js → use-file-configs-hWnpGnBU.js} +1 -1
  327. package/dist/client/assets/{use-inbox-feed-CmYEHjcJ.js → use-inbox-feed-DIzfN-6Y.js} +1 -1
  328. package/dist/client/assets/{use-infinite-scroll-dtUi5Sm6.js → use-infinite-scroll-B2Dxfw4r.js} +1 -1
  329. package/dist/client/assets/{use-join-requests-CACMdSxj.js → use-join-requests-D7tVSsO6.js} +1 -1
  330. package/dist/client/assets/{use-main-panel-tabs-6UM-eEDy.js → use-main-panel-tabs-Dtx52M7M.js} +1 -1
  331. package/dist/client/assets/{use-mcp-auth-status-nCZ8OnbU.js → use-mcp-auth-status-DT-19LwX.js} +1 -1
  332. package/dist/client/assets/{use-mcp-client-CvhC1TIJ.js → use-mcp-client-DXdlNn5q.js} +1 -1
  333. package/dist/client/assets/{use-mcp-prompts-BWsIl6wX.js → use-mcp-prompts-ClNBkSao.js} +1 -1
  334. package/dist/client/assets/{use-mcp-tools-I_UsR8Xf.js → use-mcp-tools-DgRM7NRr.js} +1 -1
  335. package/dist/client/assets/{use-mobile-CKqq0hw6.js → use-mobile-BRzk8D-v.js} +1 -1
  336. package/dist/client/assets/{use-move-blocks-D5l0lx5X.js → use-move-blocks-BwtieMWH.js} +1 -1
  337. package/dist/client/assets/{use-navigate-to-agent-X54xBbs-.js → use-navigate-to-agent-Mx6A78it.js} +1 -1
  338. package/dist/client/assets/{use-org-fs-wk2PRaOo.js → use-org-fs-DRPPAr_0.js} +1 -1
  339. package/dist/client/assets/{use-org-repo-syncs-ON_B-I08.js → use-org-repo-syncs-zLVhA-m3.js} +1 -1
  340. package/dist/client/assets/{use-org-sso-1YltyqLi.js → use-org-sso-CK8bP20u.js} +1 -1
  341. package/dist/client/assets/{use-organization-roles-CxgWGtCR.js → use-organization-roles-BFEFwfPv.js} +1 -1
  342. package/dist/client/assets/{use-organization-settings-BFBXS4UG.js → use-organization-settings-CHtyXny0.js} +1 -1
  343. package/dist/client/assets/{use-panel-navigate-DzWclIwL.js → use-panel-navigate-BrmvjTvw.js} +1 -1
  344. package/dist/client/assets/{use-project-native-view-presence-B8VDwbCS.js → use-project-native-view-presence-fZL342dS.js} +1 -1
  345. package/dist/client/assets/{use-project-scope-Bq5GrrDd.js → use-project-scope-5fuCx2a_.js} +1 -1
  346. package/dist/client/assets/{use-recent-apps-DBlZNiUD.js → use-recent-apps-DIC3oGRR.js} +1 -1
  347. package/dist/client/assets/{use-releases-Dth9LHEU.js → use-releases-DMLz_29m.js} +1 -1
  348. package/dist/client/assets/{use-reports-diagnostic-Do0xVL-L.js → use-reports-diagnostic-CDXaLKrf.js} +1 -1
  349. package/dist/client/assets/use-sandbox-events-CcwyGMD7.js +2 -0
  350. package/dist/client/assets/{use-secrets-Byq7_LZ0.js → use-secrets-B0fPW93u.js} +1 -1
  351. package/dist/client/assets/{use-section-preview-base-Bi-N531T.js → use-section-preview-base-BLJOom-F.js} +1 -1
  352. package/dist/client/assets/{use-session-runtime-C29BLCO5.js → use-session-runtime-BIoEtecA.js} +1 -1
  353. package/dist/client/assets/{use-sidebar-collapsed-CC40xbK2.js → use-sidebar-collapsed-BToAgS1l.js} +1 -1
  354. package/dist/client/assets/{use-tags-DsgZua5i.js → use-tags-BBUfpZ3Q.js} +1 -1
  355. package/dist/client/assets/{use-task-board-analytics-BTfxOx5Z.js → use-task-board-analytics-CP7ZTaMB.js} +1 -1
  356. package/dist/client/assets/{use-task-board-events-BQ73Mjf5.js → use-task-board-events-CyzOoXYa.js} +1 -1
  357. package/dist/client/assets/{use-task-board-item-prs-D1aN1p6d.js → use-task-board-item-prs-xIRkPDuE.js} +1 -1
  358. package/dist/client/assets/{use-task-board-prompts-CaMiqHjx.js → use-task-board-prompts-Hjgi7ATn.js} +1 -1
  359. package/dist/client/assets/{use-task-metadata-RAKFvADU.js → use-task-metadata-DVialv3C.js} +1 -1
  360. package/dist/client/assets/{use-thread-analytics-UYwynn2f.js → use-thread-analytics-DKL46-sK.js} +1 -1
  361. package/dist/client/assets/{use-thread-outputs-DsSeydeQ.js → use-thread-outputs-CuLm_Mfb.js} +1 -1
  362. package/dist/client/assets/useInfiniteQuery-CrT95xA_.js +1 -0
  363. package/dist/client/assets/{useQueries-BxilFdP8.js → useQueries-Ddak2P0w.js} +1 -1
  364. package/dist/client/assets/useSuspenseInfiniteQuery-Cy44049I.js +1 -0
  365. package/dist/client/assets/{users-CfzZpC_f.js → users-wgAbpnD0.js} +1 -1
  366. package/dist/client/assets/{utils-CFwQd3Dj.js → utils-DdcTGJDK.js} +1 -1
  367. package/dist/client/assets/{variant-calendar-DAzhjaCK.js → variant-calendar-DkBZGo-3.js} +1 -1
  368. package/dist/client/assets/{variant-matcher-override-KA8G6wne.js → variant-matcher-override-D8SSg_Q7.js} +1 -1
  369. package/dist/client/assets/{view-header-D4T3g6Y4.js → view-header-CAPGAS4q.js} +1 -1
  370. package/dist/client/assets/{virtual-mcp-CJAqxDe2.js → virtual-mcp-a8UorXJw.js} +1 -1
  371. package/dist/client/assets/{watch-sse-pool-BxinXtVa.js → watch-sse-pool-CH4G2Sl-.js} +1 -1
  372. package/dist/client/index.html +1 -1
  373. package/dist/server/server.js +41 -41
  374. package/package.json +1 -1
  375. package/dist/client/assets/UserSquare-TWw3zsr7.js +0 -1
  376. package/dist/client/assets/agent-app-CgNxZEzb.js +0 -1
  377. package/dist/client/assets/agent-deck-SnZhc8k8.js +0 -1
  378. package/dist/client/assets/agent-experiments-DqhQbvgt.js +0 -1
  379. package/dist/client/assets/agent-icon-rBB7-3Iv.js +0 -1
  380. package/dist/client/assets/agent-library-5yOHhp5F.js +0 -1
  381. package/dist/client/assets/agent-library-file-Cj3Cwkh2.js +0 -1
  382. package/dist/client/assets/agent-monitor-Bywg_SMe.js +0 -1
  383. package/dist/client/assets/agent-settings-CQR-A0mU.js +0 -1
  384. package/dist/client/assets/agent-site-editor-code-lC9bSMmG.js +0 -2
  385. package/dist/client/assets/agent-site-editor-content-Bshm0mLR.js +0 -1
  386. package/dist/client/assets/agent-site-editor-preview-DnlcRwFX.js +0 -1
  387. package/dist/client/assets/agent-view-DbVFezEQ.js +0 -1
  388. package/dist/client/assets/api-keys-l4aX0wsP.js +0 -1
  389. package/dist/client/assets/app-editor-BoAUsCRl.js +0 -1
  390. package/dist/client/assets/blocks-tab-states-Bujj2Oag.js +0 -1
  391. package/dist/client/assets/content-tab-DruH5Km_.js +0 -22
  392. package/dist/client/assets/context-DmRBBX5q.js +0 -1
  393. package/dist/client/assets/library-DNyXivcG.js +0 -1
  394. package/dist/client/assets/parse-sections-C3Hmwt0I.js +0 -1
  395. package/dist/client/assets/project-reports-Ckw4gPRj.js +0 -1
  396. package/dist/client/assets/project-tasks-DIs0LJKu.js +0 -1
  397. package/dist/client/assets/record-editor-C9Hk9gzX.js +0 -1
  398. package/dist/client/assets/redirect-editor-DTFg1kOc.js +0 -1
  399. package/dist/client/assets/reports-DpW566Gg.js +0 -1
  400. package/dist/client/assets/repositories-rpqjpzkl.js +0 -1
  401. package/dist/client/assets/review-settings-U2xSoSbC.js +0 -1
  402. package/dist/client/assets/route-BeAt5Jxq.js +0 -1
  403. package/dist/client/assets/sections-editor-KyiXwNg4.js +0 -1
  404. package/dist/client/assets/settings-tab-Cyi9Dt5w.js +0 -1
  405. package/dist/client/assets/site-editor-B1tNbOKR.js +0 -1
  406. package/dist/client/assets/tasks-Dkj9k49d.js +0 -1
  407. package/dist/client/assets/use-sandbox-events-vz4ehPML.js +0 -2
  408. package/dist/client/assets/useInfiniteQuery-qZeYk4so.js +0 -1
  409. package/dist/client/assets/useSuspenseInfiniteQuery-CTPa_bH3.js +0 -1
@@ -1 +1 @@
1
- import{c as R,b as J,e as Je,j as n,B as z,t as qe,o as st,cV as ae,ag as vt,a as Be,J as Ut,U as kt,K as Ve,cW as Jt,cX as Gt,ay as Ge,l as ut,be as Vt,z as mt,r as Q,ae as Wt,af as te,cY as Yt,w as Tt,x as Nt,v as _t,D as Pt,d as At,a4 as ct,R as Ct,m as Me,C as at,aX as Et,cZ as Qt,b1 as Xt,b8 as ft,H as Zt,c_ as en,aY as tn,y as nn,c$ as sn,d0 as on,d1 as an,d2 as rn,d3 as ln,a5 as cn,u as dn,a6 as un,d4 as mn,d5 as fn,k as Ot,d6 as ht,d7 as hn,O as gn,b3 as gt,d8 as pn,a0 as yn}from"./index-Cw6ilRLN.js";import{t as It}from"./Building02-CIOqUK8u.js";import{i as bn,s as ee}from"./UserSquare-TWw3zsr7.js";import{u as xn}from"./use-deployment-admin-DVUkJw7-.js";import{a as Sn}from"./admin-fetch-BhTJlAsX.js";import{ay as wn,V as jn,I as it,a9 as vn,K as kn,az as Tn,n as pt,g as Nn,q as _n,l as Pn,aA as An,m as Cn}from"./agent-icon-rBB7-3Iv.js";import{s as En}from"./XClose-BLrzcEcC.js";import{a as On,u as In}from"./use-project-scope-Bq5GrrDd.js";import{u as $t,a as $n}from"./use-panel-navigate-DzWclIwL.js";import{i as se}from"./CheckCircle-Oy-r5wrn.js";import{i as yt}from"./Monitor01-6lmVgqwN.js";import{i as Fe}from"./Zap-CbyRjfWs.js";import{u as Ln}from"./use-clock-tick-Bbl4jizB.js";import{s as bt}from"./Plus-BQ-ZwSoF.js";import{a as Dn}from"./Tool01-DamUcObd.js";import{b as ne,a as Ke,f as Rn,e as zn,c as Fn,C as qn}from"./command-CermhoTd.js";import{I as Bn}from"./integration-icon-BvuUEHwl.js";import{P as Mn}from"./project-icon-BRvDYuEF.js";import{a as Kn,m as Hn}from"./use-mcp-client-CvhC1TIJ.js";import{u as Un,a as Jn,n as Gn}from"./new-project-dialog-4twV8Y4C.js";import{S as Vn,u as Wn}from"./thread-intent-CAWCzeoG.js";import{R as Yn}from"./required-auth-layout-DsfiOlyN.js";import{A as Qn}from"./autosend-Bw00xJf9.js";import{u as Xn,a as Zn,b as es,c as ts}from"./thread-route-BZQyZ1gL.js";import{u as ns}from"./use-org-sso-1YltyqLi.js";function ss(t){const e=R.c(49),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=J();let c;e[0]!==a||e[1]!==i?(c=async()=>{const P=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),C=await P.json();if(!P.ok||!C.success)throw new Error(C.error??i("common.autoDomainJoinScreen.joinError"));return C},e[0]=a,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==a?(m=P=>{window.location.href=`/${P.slug??a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==i?(f=P=>{qe.error(P instanceof Error?P.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let S;e[7]!==c||e[8]!==m||e[9]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=S):S=e[10];const d=Je(S),g=os;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(st,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(It,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let p;e[14]!==o||e[15]!==i?(p=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=p):p=e[16];let h;e[17]!==p?(h=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[17]=p,e[18]=h):h=e[18];let u;e[19]!==r||e[20]!==i?(u=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=u):u=e[21];let w;e[22]!==u?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[22]=u,e[23]=w):w=e[23];let y;e[24]!==h||e[25]!==w?(y=n.jsxs("div",{className:"space-y-2",children:[h,w]}),e[24]=h,e[25]=w,e[26]=y):y=e[26];let x;e[27]!==d?(x=()=>d.mutate(),e[27]=d,e[28]=x):x=e[28];let j;e[29]!==d.isPending||e[30]!==o||e[31]!==i?(j=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=d.isPending,e[30]=o,e[31]=i,e[32]=j):j=e[32];let b;e[33]!==d.isPending||e[34]!==x||e[35]!==j?(b=n.jsx(z,{onClick:x,disabled:d.isPending,children:j}),e[33]=d.isPending,e[34]=x,e[35]=j,e[36]=b):b=e[36];const T=d.isPending;let v;e[37]!==i?(v=i("common.goHome"),e[37]=i,e[38]=v):v=e[38];let k;e[39]!==d.isPending||e[40]!==v?(k=n.jsx(z,{variant:"ghost",onClick:g,disabled:T,children:v}),e[39]=d.isPending,e[40]=v,e[41]=k):k=e[41];let _;e[42]!==b||e[43]!==k?(_=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[b,k]}),e[42]=b,e[43]=k,e[44]=_):_=e[44];let N;return e[45]!==y||e[46]!==_||e[47]!==l?(N=n.jsxs(ae,{children:[l,y,_]}),e[45]=y,e[46]=_,e[47]=l,e[48]=N):N=e[48],N}function os(){window.location.href="/"}function xt(t){const e=R.c(26),{orgSlug:o,orgId:a,orgName:s,reason:r}=t,i=J(),{isAdmin:c}=xn(),m=is,f=r==="not-found",S=f?bn:vt;let d;e[0]!==f||e[1]!==i?(d=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=d):d=e[2];const g=d;let l;e[3]!==f||e[4]!==s||e[5]!==o||e[6]!==i?(l=f?n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:s??o}),".",n.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=s,e[5]=o,e[6]=i,e[7]=l):l=e[7];const p=l;let h;e[8]!==S?(h=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(S,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=S,e[9]=h):h=e[9];let u;e[10]!==g?(u=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[10]=g,e[11]=u):u=e[11];let w;e[12]!==p?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[12]=p,e[13]=w):w=e[13];let y;e[14]!==u||e[15]!==w?(y=n.jsxs("div",{className:"space-y-2",children:[u,w]}),e[14]=u,e[15]=w,e[16]=y):y=e[16];let x;e[17]!==c||e[18]!==a||e[19]!==o||e[20]!==i?(x=c&&a?n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[n.jsx(as,{orgId:a,orgSlug:o}),n.jsx(z,{variant:"ghost",onClick:m,children:i("common.goHome")})]}):n.jsx(z,{onClick:m,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=o,e[20]=i,e[21]=x):x=e[21];let j;return e[22]!==h||e[23]!==y||e[24]!==x?(j=n.jsxs(ae,{children:[h,y,x]}),e[22]=h,e[23]=y,e[24]=x,e[25]=j):j=e[25],j}function is(){window.location.href="/"}function as(t){const e=R.c(20),{orgId:o,orgSlug:a}=t,s=J(),{data:r}=Be.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==o?(c=()=>Sn(`/api/_admin/orgs/${o}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=o,e[2]=c):c=e[2];let m;e[3]!==a?(m=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==s?(f=u=>{qe.error(u instanceof Error?u.message:s("common.noAccessScreen.adminJoinFailed"))},e[5]=s,e[6]=f):f=e[6];let S;e[7]!==c||e[8]!==m||e[9]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=S):S=e[10];const d=Je(S);let g;e[11]!==d?(g=()=>d.mutate(),e[11]=d,e[12]=g):g=e[12];const l=!i||d.isPending;let p;e[13]!==d.isPending||e[14]!==s?(p=d.isPending?s("common.noAccessScreen.adminJoining"):s("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=s,e[15]=p):p=e[15];let h;return e[16]!==g||e[17]!==l||e[18]!==p?(h=n.jsx(z,{onClick:g,disabled:l,children:p}),e[16]=g,e[17]=l,e[18]=p,e[19]=h):h=e[19],h}function rs(t){const e=R.c(59),{invitationId:o,orgName:a,orgSlug:s,orgLogo:r}=t,i=J();let c;e[0]!==o?(c=async()=>{const A=await Be.organization.acceptInvitation({invitationId:o});if(A.error)throw new Error(A.error.message);return A.data},e[0]=o,e[1]=c):c=e[1];let m;e[2]!==s?(m=()=>{Ut(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let f;e[4]!==i?(f=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let S;e[6]!==c||e[7]!==m||e[8]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[6]=c,e[7]=m,e[8]=f,e[9]=S):S=e[9];const d=Je(S);let g;e[10]!==o?(g=async()=>{const A=await Be.organization.rejectInvitation({invitationId:o});if(A.error)throw new Error(A.error.message);return A.data},e[10]=o,e[11]=g):g=e[11];let l,p;e[12]!==i?(l=()=>{qe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},p=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=p):(l=e[13],p=e[14]);let h;e[15]!==g||e[16]!==l||e[17]!==p?(h={mutationFn:g,onSuccess:l,onError:p},e[15]=g,e[16]=l,e[17]=p,e[18]=h):h=e[18];const u=Je(h),w=d.isPending||u.isPending;let y;e[19]!==r||e[20]!==a?(y=r?n.jsx(st,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(wn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=y):y=e[21];let x;e[22]!==a||e[23]!==i?(x=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=x):x=e[24];let j;e[25]!==x?(j=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[25]=x,e[26]=j):j=e[26];let b;e[27]!==i?(b=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=b):b=e[28];let T;e[29]!==b?(T=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[29]=b,e[30]=T):T=e[30];let v;e[31]!==j||e[32]!==T?(v=n.jsxs("div",{className:"space-y-2",children:[j,T]}),e[31]=j,e[32]=T,e[33]=v):v=e[33];let k;e[34]!==d?(k=()=>d.mutate(),e[34]=d,e[35]=k):k=e[35];let _;e[36]!==d.isPending||e[37]!==i?(_=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=_):_=e[38];let N;e[39]!==w||e[40]!==k||e[41]!==_?(N=n.jsx(z,{onClick:k,disabled:w,children:_}),e[39]=w,e[40]=k,e[41]=_,e[42]=N):N=e[42];let P;e[43]!==u?(P=()=>u.mutate(),e[43]=u,e[44]=P):P=e[44];let C;e[45]!==u.isPending||e[46]!==i?(C=u.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=u.isPending,e[46]=i,e[47]=C):C=e[47];let I;e[48]!==w||e[49]!==P||e[50]!==C?(I=n.jsx(z,{variant:"ghost",onClick:P,disabled:w,children:C}),e[48]=w,e[49]=P,e[50]=C,e[51]=I):I=e[51];let O;e[52]!==N||e[53]!==I?(O=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,I]}),e[52]=N,e[53]=I,e[54]=O):O=e[54];let D;return e[55]!==v||e[56]!==O||e[57]!==y?(D=n.jsxs(ae,{children:[y,v,O]}),e[55]=v,e[56]=O,e[57]=y,e[58]=D):D=e[58],D}function ls(t){const e=R.c(23),{orgName:o,orgLogo:a}=t,s=J();let r;e[0]!==a||e[1]!==o?(r=a?n.jsx(st,{url:a,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(jn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=o,e[2]=r):r=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=m):m=e[9];let f;e[10]!==m?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=f):f=e[11];let S;e[12]!==c||e[13]!==f?(S=n.jsxs("div",{className:"space-y-2",children:[c,f]}),e[12]=c,e[13]=f,e[14]=S):S=e[14];let d;e[15]!==s?(d=s("common.goHome"),e[15]=s,e[16]=d):d=e[16];let g;e[17]!==d?(g=n.jsx(z,{variant:"ghost",onClick:cs,children:d}),e[17]=d,e[18]=g):g=e[18];let l;return e[19]!==r||e[20]!==S||e[21]!==g?(l=n.jsxs(ae,{children:[r,S,g]}),e[19]=r,e[20]=S,e[21]=g,e[22]=l):l=e[22],l}function cs(){window.location.href="/"}function ds(t){const e=R.c(45),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=J();let c;e[0]!==a?(c=async()=>{const N=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),P=await N.json();if(!N.ok||!P.success)throw new Error(P.error??"Failed to request access");return P},e[0]=a,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=ms,e[2]=m):m=e[2];let f;e[3]!==i?(f=N=>{qe.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let S;e[5]!==c||e[6]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[5]=c,e[6]=f,e[7]=S):S=e[7];const d=Je(S);let g;e[8]!==s||e[9]!==o?(g=s?n.jsx(st,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(It,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=g):g=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let p;e[14]!==l?(p=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=p):p=e[15];let h;e[16]!==r||e[17]!==i?(h=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=h):h=e[18];let u;e[19]!==h?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[19]=h,e[20]=u):u=e[20];let w;e[21]!==p||e[22]!==u?(w=n.jsxs("div",{className:"space-y-2",children:[p,u]}),e[21]=p,e[22]=u,e[23]=w):w=e[23];let y;e[24]!==d?(y=()=>d.mutate(),e[24]=d,e[25]=y):y=e[25];let x;e[26]!==d.isPending||e[27]!==i?(x=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=x):x=e[28];let j;e[29]!==d.isPending||e[30]!==y||e[31]!==x?(j=n.jsx(z,{onClick:y,disabled:d.isPending,children:x}),e[29]=d.isPending,e[30]=y,e[31]=x,e[32]=j):j=e[32];const b=d.isPending;let T;e[33]!==i?(T=i("common.goHome"),e[33]=i,e[34]=T):T=e[34];let v;e[35]!==d.isPending||e[36]!==T?(v=n.jsx(z,{variant:"ghost",onClick:us,disabled:b,children:T}),e[35]=d.isPending,e[36]=T,e[37]=v):v=e[37];let k;e[38]!==j||e[39]!==v?(k=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[j,v]}),e[38]=j,e[39]=v,e[40]=k):k=e[40];let _;return e[41]!==w||e[42]!==k||e[43]!==g?(_=n.jsxs(ae,{children:[g,w,k]}),e[41]=w,e[42]=k,e[43]=g,e[44]=_):_=e[44],_}function us(){window.location.href="/"}function ms(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function fs(t){const e=R.c(7);let o;e[0]!==t?(o=Ve.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let s;return e[4]!==o||e[5]!==a?(s={queryKey:o,queryFn:a,refetchOnWindowFocus:!1},e[4]=o,e[5]=a,e[6]=s):s=e[6],kt(s)}function hs({orgSlug:t}){const{data:e}=fs(t);if(e.status!=="member"){Jt()?.org===t&&Gt();const o=localStorage.getItem(Ge.lastOrgSlug())===t;if(o&&localStorage.removeItem(Ge.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(xt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(rs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ss,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(ds,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(ls,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(xt,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Lt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:s,title:r,description:i,icon:c,children:m,footerLeading:f,actions:S,onDismiss:d,tone:g}=t,l=g===void 0?"neutral":g,p=f||S;let h;e[0]!==l?(h=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=h):h=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(En,{size:14}),e[2]=u):u=e[2];let w;e[3]!==a||e[4]!==d?(w=n.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:u}),e[3]=a,e[4]=d,e[5]=w):w=e[5];const y=c&&"flex items-start gap-3",x=m&&"pb-3";let j;e[6]!==y||e[7]!==x?(j=ut("p-4 pr-11",y,x),e[6]=y,e[7]=x,e[8]=j):j=e[8];let b;e[9]!==c?(b=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=b):b=e[10];let T;e[11]!==s?(T=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=T):T=e[12];let v;e[13]!==r?(v=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=v):v=e[14];let k;e[15]!==i?(k=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=k):k=e[16];let _;e[17]!==v||e[18]!==k||e[19]!==T?(_=n.jsxs("div",{children:[T,v,k]}),e[17]=v,e[18]=k,e[19]=T,e[20]=_):_=e[20];let N;e[21]!==m?(N=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let P;e[23]!==_||e[24]!==N?(P=n.jsxs("div",{className:"min-w-0 flex-1",children:[_,N]}),e[23]=_,e[24]=N,e[25]=P):P=e[25];let C;e[26]!==P||e[27]!==j||e[28]!==b?(C=n.jsxs("div",{className:j,children:[b,P]}),e[26]=P,e[27]=j,e[28]=b,e[29]=C):C=e[29];let I;e[30]!==S||e[31]!==f||e[32]!==p||e[33]!==l?(I=p&&n.jsxs("div",{className:ut("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:S})]}),e[30]=S,e[31]=f,e[32]=p,e[33]=l,e[34]=I):I=e[34];let O;return e[35]!==o||e[36]!==C||e[37]!==I||e[38]!==h||e[39]!==w||e[40]!==l?(O=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[h,w,C,I]}),e[35]=o,e[36]=C,e[37]=I,e[38]=h,e[39]=w,e[40]=l,e[41]=O):O=e[41],O}const gs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Dt(t){return`[data-tour="${gs[t]}"]`}const ps=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function ys(t){return ps.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function bs(t,e){return ys(e).map(o=>({element:Dt(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const xs=Dt("switcher"),Ss=30;function Rt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function ws(t,e){return bs(t,e).filter(o=>typeof o.element=="string"&&Rt(o.element))}function js(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:a})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>a.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function vs(){return(await Vt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function ks(t,e){if(He)return;He=!0;let o=0;const a=()=>{if(!Rt(xs)&&o++<Ss){requestAnimationFrame(a);return}const s=ws(t,e);if(s.length===0){He=!1;return}vs().then(r=>{r(js(t,s)).drive()}).catch(()=>{He=!1})};a()}function Ts(t){return t!=="off"}function ni(t){if(!t.hasSource)return[];const e=["site-editor"];return Ts(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function si(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const Ft=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:yt,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:it,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:vn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:mt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ee,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:yt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:se,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:Fe,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:se,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:Fe,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:se,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:ee,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:Fe,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:ee,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:se,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:Fe,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:ee,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:se,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:Fe,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:ee,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:it,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:se,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:mt,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:Fe,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:se,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:ee,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:it,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:ee,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:kn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],nt="studio.release-feed.v1",rt=new Set;let oe="",ie={},lt=!1;function Ns(){if(lt)return oe||"{}";try{return localStorage.getItem(nt)??"{}"}catch{return oe||"{}"}}function qt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function St(){const t=Ns();return t!==oe&&(oe=t,ie=qt(t)),ie}function _s(t){rt.add(t);const e=o=>{if(!(o.key!==nt&&o.key!==null)){try{const a=localStorage.getItem(nt)??"{}",r={...qt(a),...ie};ie=r,oe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{rt.delete(t),window.removeEventListener("storage",e)}}function Ps(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(nt,oe),lt=!1}catch{lt=!0}rt.forEach(e=>e())}function As(){const t=R.c(7),e=Q.useSyncExternalStore(_s,St,St);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const a=o,s=Cs;let r;t[2]!==e?(r=Ft.reduce((m,f)=>e[f.id]?m:m+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let c;return t[4]!==a||t[5]!==i?(c={isSeen:a,markSeen:s,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function Cs(t){ie[t]||Ps({...ie,[t]:{seenAt:new Date().toISOString()}})}const Es=720*60*60*1e3,Os=10080*60*1e3;function Is(t){const[e,o,a]=t.split("-").map(Number);return!e||!o||!a?new Date(t).getTime():new Date(e,o-1,a).getTime()}function $s(t){const e=Ft[0];if(!e)return null;const o=Is(e.date),a=t-o;return a<0||a>Es?null:e}function Ls(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ds(t,e){const o=Ls(t);return o===null?!1:e-o>=Os}function Rs(){const t=R.c(46),e=J(),o=On(),a=Wt(),s=$t(),r=!!o,i=a===te.home&&!o;let c;t[0]!==s||t[1]!==r?(c=r&&!!s&&zt(s),t[0]=s,t[1]=r,t[2]=c):c=t[2];const m=c,{data:f}=Be.useSession(),{isSeen:S,markSeen:d}=As(),g=Ln(6e4);let l,p,h;if(t[3]!==S||t[4]!==g||t[5]!==f?.user?.createdAt){h=Symbol.for("react.early_return_sentinel");e:{if(l=$s(g),!l){h=null;break e}if(!Ds(f?.user?.createdAt,g)){h=null;break e}p=S(l.id)}t[3]=S,t[4]=g,t[5]=f?.user?.createdAt,t[6]=l,t[7]=p,t[8]=h}else l=t[6],p=t[7],h=t[8];if(h!==Symbol.for("react.early_return_sentinel"))return h;if(p)return null;let u;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==m||t[14]!==e?(u=()=>{d(l.id),ks(e,{onOrgHome:i,inProject:r,onSiteEditor:m})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=m,t[14]=e,t[15]=u):u=t[15];const w=u;let y;t[16]!==e?(y=e("announcements.release.ariaLabel"),t[16]=e,t[17]=y):y=t[17];let x;t[18]!==e?(x=e("announcements.release.dismiss"),t[18]=e,t[19]=x):x=t[19];const j=l.eyebrow,b=l.title;let T;t[20]!==l.id||t[21]!==d?(T=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=T):T=t[22];let v;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(v=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>d(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=d,t[26]=e,t[27]=v):v=t[27];let k;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==w?(k=l.cta?"href"in l.cta?n.jsx(z,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(z,{size:"sm",onClick:w,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=w,t[32]=k):k=t[32];let _;t[33]!==l.bullets?(_=l.bullets.map(zs),t[33]=l.bullets,t[34]=_):_=t[34];let N;t[35]!==_?(N=n.jsx("ul",{className:"flex flex-col gap-3",children:_}),t[35]=_,t[36]=N):N=t[36];let P;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==k||t[40]!==N||t[41]!==y||t[42]!==x||t[43]!==T||t[44]!==v?(P=n.jsx(Lt,{ariaLabel:y,dismissLabel:x,eyebrow:j,title:b,onDismiss:T,footerLeading:v,actions:k,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=k,t[40]=N,t[41]=y,t[42]=x,t[43]=T,t[44]=v,t[45]=P):P=t[45],P}function zs(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Fs(t){const e=R.c(11),{open:o,onOpenChange:a}=t,s=J();let r;e[0]!==s?(r=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Tt,{children:n.jsx(Nt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:Yt.map(qs)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=n.jsxs(_t,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let f;return e[7]!==a||e[8]!==o||e[9]!==m?(f=n.jsx(Pt,{open:o,onOpenChange:a,children:m}),e[7]=a,e[8]=o,e[9]=m,e[10]=f):f=e[10],f}function qs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Bs)})]},t.label)}function Bs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ms)})]},t.description)}function Ms(t){return n.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)}const wt=8;function Ks(t){const{org:e}=ct(),o=Kn({connectionId:Ct,orgId:e.id,orgSlug:e.slug}),{data:a}=Me({queryKey:Ve.globalSearch(e.id,t,wt),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:wt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Hs(t){const e=R.c(195),{open:o,onOpenChange:a}=t,s=J(),r=At(),{org:i}=ct(),{projects:c,hasProjects:m}=In(),[f,S]=Q.useState(""),d=Q.useDeferredValue(f),g=Ks(d);let l;e[0]!==a?(l=()=>{a(!1),S("")},e[0]=a,e[1]=l):l=e[1];const p=l;let h;e[2]!==p?(h=(B,M)=>{at("command_palette_used",{kind:M}),B(),p()},e[2]=p,e[3]=h):h=e[3];const u=h;let w;e[4]!==r||e[5]!==i.id||e[6]!==i.slug?(w=B=>{if(B.type==="connection"){if(!B.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:B.slug}});return}if(B.type==="task"){r({to:te.tasks,params:{org:i.slug,taskKey:B.key??void 0}});return}const M=Et(i.id).id;Qt(r,Xt({org:i.slug,agentId:B.virtual_mcp_id??M,superAgentId:M}),{search:()=>({thread:B.id}),replace:!1})},e[4]=r,e[5]=i.id,e[6]=i.slug,e[7]=w):w=e[7];const y=w;let x;e[8]!==f?(x=[f],e[8]=f,e[9]=x):x=e[9];const j=x;let b,T,v,k,_,N,P,C,I,O,D,A,F;if(e[10]!==p||e[11]!==u||e[12]!==m||e[13]!==g||e[14]!==r||e[15]!==a||e[16]!==o||e[17]!==y||e[18]!==i.slug||e[19]!==c||e[20]!==j||e[21]!==s||e[22]!==f){const B=g.filter(Js),M=g.filter(Us);let G;e[36]!==i.slug?(G={org:i.slug},e[36]=i.slug,e[37]=G):G=e[37];const $=G;let V;e[38]!==s?(V=s("sidebar.navDestinations.home"),e[38]=s,e[39]=V):V=e[39];let W;e[40]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx(Nn,{"aria-hidden":"true"}),e[40]=W):W=e[40];let H;e[41]!==$||e[42]!==V?(H={key:"home",label:V,icon:W,to:te.home,params:$},e[41]=$,e[42]=V,e[43]=H):H=e[43];let U;e[44]!==s?(U=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=U):U=e[45];let Z;e[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(_n,{"aria-hidden":"true"}),e[46]=Z):Z=e[46];let Y;e[47]!==$||e[48]!==U?(Y={key:"reports",label:U,icon:Z,to:te.reports,params:$},e[47]=$,e[48]=U,e[49]=Y):Y=e[49];let L;e[50]!==s?(L=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=L):L=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx(pt,{"aria-hidden":"true"}),e[52]=K):K=e[52];let re;e[53]!==i.slug?(re={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=re):re=e[54];let le;e[55]!==L||e[56]!==re?(le={key:"tasks",label:L,icon:K,to:te.tasks,params:re},e[55]=L,e[56]=re,e[57]=le):le=e[57];let ce;e[58]!==s?(ce=s("sidebar.navDestinations.library"),e[58]=s,e[59]=ce):ce=e[59];let We;e[60]===Symbol.for("react.memo_cache_sentinel")?(We=n.jsx(Pn,{"aria-hidden":"true"}),e[60]=We):We=e[60];let de;e[61]!==$||e[62]!==ce?(de={key:"library",label:ce,icon:We,to:te.library,params:$},e[61]=$,e[62]=ce,e[63]=de):de=e[63];let ue;e[64]!==s?(ue=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=ue):ue=e[65];let Ye;e[66]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx(An,{"aria-hidden":"true"}),e[66]=Ye):Ye=e[66];let me;e[67]!==$||e[68]!==ue?(me={key:"discover",label:ue,icon:Ye,to:te.discover,params:$},e[67]=$,e[68]=ue,e[69]=me):me=e[69];let Qe;e[70]!==H||e[71]!==Y||e[72]!==le||e[73]!==de||e[74]!==me?(Qe=[H,Y,le,de,me],e[70]=H,e[71]=Y,e[72]=le,e[73]=de,e[74]=me,e[75]=Qe):Qe=e[75];const ot=Qe;T=Rn,k=o,e[76]!==p||e[77]!==a?(_=E=>E?a(!0):p(),e[76]=p,e[77]=a,e[78]=_):_=e[78],e[79]!==s?(N=s("commandPalette.title"),e[79]=s,e[80]=N):N=e[80],e[81]!==s?(P=s("commandPalette.description"),e[81]=s,e[82]=P):P=e[82];let fe;e[83]!==s?(fe=s("commandPalette.placeholder"),e[83]=s,e[84]=fe):fe=e[84];let he;e[85]!==s?(he=s("commandPalette.placeholder"),e[85]=s,e[86]=he):he=e[86],e[87]!==fe||e[88]!==he||e[89]!==f?(C=n.jsx(zn,{placeholder:fe,"aria-label":he,value:f,onValueChange:S}),e[87]=fe,e[88]=he,e[89]=f,e[90]=C):C=e[90],b=Fn;let ge;e[91]!==s?(ge=s("commandPalette.empty"),e[91]=s,e[92]=ge):ge=e[92],e[93]!==ge?(I=n.jsx(qn,{children:ge}),e[93]=ge,e[94]=I):I=e[94];let pe;e[95]!==s?(pe=s("commandPalette.goTo"),e[95]=s,e[96]=pe):pe=e[96];let ye;e[97]!==ot||e[98]!==u||e[99]!==r?(ye=ot.map(E=>n.jsxs(ne,{onSelect:()=>u(()=>r({to:E.to,params:E.params}),"destination"),children:[E.icon,n.jsx("span",{children:E.label})]},E.key)),e[97]=ot,e[98]=u,e[99]=r,e[100]=ye):ye=e[100],e[101]!==pe||e[102]!==ye?(O=n.jsx(Ke,{heading:pe,children:ye}),e[101]=pe,e[102]=ye,e[103]=O):O=e[103],e[104]!==u||e[105]!==m||e[106]!==r||e[107]!==i.slug||e[108]!==c||e[109]!==s?(D=m&&n.jsx(Ke,{heading:s("commandPalette.projects"),children:c.map(E=>n.jsxs(ne,{value:`project ${E.title}`,onSelect:()=>u(()=>r({to:te.projects,params:{org:i.slug,agentId:E.id}}),"project"),children:[n.jsx(Mn,{icon:E.icon,name:E.title,"aria-hidden":"true"}),n.jsx("span",{children:E.title})]},E.id))}),e[104]=u,e[105]=m,e[106]=r,e[107]=i.slug,e[108]=c,e[109]=s,e[110]=D):D=e[110];let be;e[111]!==s?(be=s("commandPalette.actions"),e[111]=s,e[112]=be):be=e[112];let xe;e[113]!==s?(xe=s("commandPalette.newProject"),e[113]=s,e[114]=xe):xe=e[114];let Se;e[115]!==u||e[116]!==r||e[117]!==$?(Se=()=>u(()=>r({to:te.home,params:$}),"new_project"),e[115]=u,e[116]=r,e[117]=$,e[118]=Se):Se=e[118];let Xe;e[119]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(bt,{"aria-hidden":"true"}),e[119]=Xe):Xe=e[119];let we;e[120]!==s?(we=s("commandPalette.newProject"),e[120]=s,e[121]=we):we=e[121];let je;e[122]!==we?(je=n.jsx("span",{children:we}),e[122]=we,e[123]=je):je=e[123];let ve;e[124]!==xe||e[125]!==Se||e[126]!==je?(ve=n.jsxs(ne,{value:xe,onSelect:Se,children:[Xe,je]}),e[124]=xe,e[125]=Se,e[126]=je,e[127]=ve):ve=e[127];let ke;e[128]!==s?(ke=s("commandPalette.inviteTeammate"),e[128]=s,e[129]=ke):ke=e[129];let Te;e[130]!==u||e[131]!==r||e[132]!==$?(Te=()=>u(()=>r({to:"/$org/settings/members",params:$}),"invite"),e[130]=u,e[131]=r,e[132]=$,e[133]=Te):Te=e[133];let Ze;e[134]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(Cn,{"aria-hidden":"true"}),e[134]=Ze):Ze=e[134];let Ne;e[135]!==s?(Ne=s("commandPalette.inviteTeammate"),e[135]=s,e[136]=Ne):Ne=e[136];let _e;e[137]!==Ne?(_e=n.jsx("span",{children:Ne}),e[137]=Ne,e[138]=_e):_e=e[138];let Pe;e[139]!==ke||e[140]!==Te||e[141]!==_e?(Pe=n.jsxs(ne,{value:ke,onSelect:Te,children:[Ze,_e]}),e[139]=ke,e[140]=Te,e[141]=_e,e[142]=Pe):Pe=e[142];let Ae;e[143]!==s?(Ae=s("commandPalette.addConnection"),e[143]=s,e[144]=Ae):Ae=e[144];let Ce;e[145]!==u||e[146]!==r||e[147]!==$?(Ce=()=>u(()=>r({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[145]=u,e[146]=r,e[147]=$,e[148]=Ce):Ce=e[148];let et;e[149]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(bt,{"aria-hidden":"true"}),e[149]=et):et=e[149];let Ee;e[150]!==s?(Ee=s("commandPalette.addConnection"),e[150]=s,e[151]=Ee):Ee=e[151];let Oe;e[152]!==Ee?(Oe=n.jsx("span",{children:Ee}),e[152]=Ee,e[153]=Oe):Oe=e[153];let Ie;e[154]!==Ae||e[155]!==Ce||e[156]!==Oe?(Ie=n.jsxs(ne,{value:Ae,onSelect:Ce,children:[et,Oe]}),e[154]=Ae,e[155]=Ce,e[156]=Oe,e[157]=Ie):Ie=e[157];let $e;e[158]!==s?($e=s("commandPalette.settings"),e[158]=s,e[159]=$e):$e=e[159];let Le;e[160]!==u||e[161]!==r||e[162]!==$?(Le=()=>u(()=>r({to:"/$org/settings/general",params:$}),"settings"),e[160]=u,e[161]=r,e[162]=$,e[163]=Le):Le=e[163];let tt;e[164]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(Dn,{"aria-hidden":"true"}),e[164]=tt):tt=e[164];let De;e[165]!==s?(De=s("commandPalette.settings"),e[165]=s,e[166]=De):De=e[166];let Re;e[167]!==De?(Re=n.jsx("span",{children:De}),e[167]=De,e[168]=Re):Re=e[168];let ze;e[169]!==$e||e[170]!==Le||e[171]!==Re?(ze=n.jsxs(ne,{value:$e,onSelect:Le,children:[tt,Re]}),e[169]=$e,e[170]=Le,e[171]=Re,e[172]=ze):ze=e[172],e[173]!==be||e[174]!==ve||e[175]!==Pe||e[176]!==Ie||e[177]!==ze?(A=n.jsxs(Ke,{heading:be,children:[ve,Pe,Ie,ze]}),e[173]=be,e[174]=ve,e[175]=Pe,e[176]=Ie,e[177]=ze,e[178]=A):A=e[178],F=B.length>0&&n.jsx(Ke,{heading:s("commandPalette.connections"),children:B.map(E=>n.jsxs(ne,{value:`${E.title} ${E.id}`,keywords:j,onSelect:()=>u(()=>y(E),"connection"),children:[n.jsx(Bn,{icon:E.icon,name:E.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:E.title})]},`connection:${E.id}`))}),v=M.length>0&&n.jsx(Ke,{heading:s("commandPalette.results"),children:M.map(E=>n.jsxs(ne,{value:`${E.title} ${E.id}`,keywords:j,onSelect:()=>u(()=>y(E),E.type),children:[E.type==="thread"?n.jsx(Tn,{"aria-hidden":"true"}):n.jsx(pt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:E.title}),E.type==="task"&&E.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:E.key})]},`${E.type}:${E.id}`))}),e[10]=p,e[11]=u,e[12]=m,e[13]=g,e[14]=r,e[15]=a,e[16]=o,e[17]=y,e[18]=i.slug,e[19]=c,e[20]=j,e[21]=s,e[22]=f,e[23]=b,e[24]=T,e[25]=v,e[26]=k,e[27]=_,e[28]=N,e[29]=P,e[30]=C,e[31]=I,e[32]=O,e[33]=D,e[34]=A,e[35]=F}else b=e[23],T=e[24],v=e[25],k=e[26],_=e[27],N=e[28],P=e[29],C=e[30],I=e[31],O=e[32],D=e[33],A=e[34],F=e[35];let q;e[179]!==b||e[180]!==v||e[181]!==I||e[182]!==O||e[183]!==D||e[184]!==A||e[185]!==F?(q=n.jsxs(b,{children:[I,O,D,A,F,v]}),e[179]=b,e[180]=v,e[181]=I,e[182]=O,e[183]=D,e[184]=A,e[185]=F,e[186]=q):q=e[186];let X;return e[187]!==T||e[188]!==k||e[189]!==_||e[190]!==N||e[191]!==P||e[192]!==C||e[193]!==q?(X=n.jsxs(T,{open:k,onOpenChange:_,title:N,description:P,children:[C,q]}),e[187]=T,e[188]=k,e[189]=_,e[190]=N,e[191]=P,e[192]=C,e[193]=q,e[194]=X):X=e[194],X}function Us(t){return t.type!=="connection"}function Js(t){return t.type==="connection"}const Ue=new Vn(!1);function Gs(){Ue.set(!0)}function Vs(){Ue.set(!1)}function Ws(){const t=R.c(2),e=Q.useSyncExternalStore(Ue.subscribe,Ue.get);let o;return t[0]!==e?(o=[e,Ue.set],t[0]=e,t[1]=o):o=t[1],o}const Ys=300*1e3,Qs=2;function Xs(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Zs(t,e){return t.count>=Qs&&t.version!==null&&t.version!==e}function eo(){const t=R.c(31),e=J();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Ve.appVersionCheck(),queryFn:no,refetchInterval:Ys,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:a,dataUpdatedAt:s}=Me(o),[r,i]=Q.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,f]=Q.useState(c);s!==r&&(i(s),f(k=>Xs(k,a,"4.542.1")));const[S,d]=Q.useState(null);if(!Zs(m,S))return null;let g;t[2]!==e?(g=e("announcements.version.ariaLabel"),t[2]=e,t[3]=g):g=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let p;t[6]!==e?(p=e("announcements.version.eyebrow"),t[6]=e,t[7]=p):p=t[7];let h;t[8]!==e?(h=e("announcements.version.title"),t[8]=e,t[9]=h):h=t[9];let u;t[10]!==e?(u=e("announcements.version.description"),t[10]=e,t[11]=u):u=t[11];let w;t[12]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx(ft,{size:16}),t[12]=w):w=t[12];let y;t[13]!==m.version?(y=()=>d(m.version),t[13]=m.version,t[14]=y):y=t[14];let x;t[15]!==e?(x=e("announcements.version.currentSession",{version:"4.542.1"}),t[15]=e,t[16]=x):x=t[16];let j;t[17]!==e?(j=e("announcements.version.refresh"),t[17]=e,t[18]=j):j=t[18];let b;t[19]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(ft,{size:14}),t[19]=b):b=t[19];let T;t[20]!==j?(T=n.jsxs(z,{size:"sm",onClick:to,children:[j,b]}),t[20]=j,t[21]=T):T=t[21];let v;return t[22]!==T||t[23]!==g||t[24]!==l||t[25]!==p||t[26]!==h||t[27]!==u||t[28]!==y||t[29]!==x?(v=n.jsx(Lt,{ariaLabel:g,dismissLabel:l,eyebrow:p,title:h,description:u,icon:w,tone:"system",onDismiss:y,footerLeading:x,actions:T}),t[22]=T,t[23]=g,t[24]=l,t[25]=p,t[26]=h,t[27]=u,t[28]=y,t[29]=x,t[30]=v):v=t[30],v}function to(){return window.location.reload()}async function no(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function so(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const oo=Date.parse("2026-07-21T00:00:00Z"),jt=t=>so(Ge.ptBrAnnouncementSeen(t));function io(){const t=R.c(35),e=J(),[o,a]=Zt(),{data:s,isPending:r}=Be.useSession(),i=s?.user,c=i?.id,m=i?.createdAt,f=m!=null&&new Date(m).getTime()<oo,S=en()==="pt-BR",d=!r&&!!c&&f&&S&&o.language==="en"&&!jt(c).has(),[g,l]=Q.useState(!1),[p,h]=Q.useState(!1);!g&&!r&&(l(!0),d&&c&&(jt(c).mark(),a(ro),h(!0),at("pt_br_auto_switch_shown")));let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=X=>{at("pt_br_auto_switch_closed",{action:X}),h(!1)},t[0]=u):u=t[0];const w=u;let y;t[1]!==a?(y=()=>{a(ao),w("switch-back")},t[1]=a,t[2]=y):y=t[2];const x=y;let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=X=>!X&&w("dismiss"),t[3]=j):j=t[3];let b;t[4]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=b):b=t[4];let T;t[5]!==e?(T=e("announcements.ptBr.title"),t[5]=e,t[6]=T):T=t[6];let v;t[7]!==T?(v=n.jsx(Nt,{children:T}),t[7]=T,t[8]=v):v=t[8];let k;t[9]!==e?(k=e("announcements.ptBr.description"),t[9]=e,t[10]=k):k=t[10];let _;t[11]!==k?(_=n.jsx(tn,{children:k}),t[11]=k,t[12]=_):_=t[12];let N;t[13]!==v||t[14]!==_?(N=n.jsxs(Tt,{children:[v,_]}),t[13]=v,t[14]=_,t[15]=N):N=t[15];let P;t[16]!==e?(P=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=P):P=t[17];let C;t[18]!==x||t[19]!==P?(C=n.jsx(z,{variant:"outline",onClick:x,children:P}),t[18]=x,t[19]=P,t[20]=C):C=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>w("ok"),t[21]=I):I=t[21];let O;t[22]!==e?(O=e("announcements.ptBr.ok"),t[22]=e,t[23]=O):O=t[23];let D;t[24]!==O?(D=n.jsx(z,{onClick:I,children:O}),t[24]=O,t[25]=D):D=t[25];let A;t[26]!==C||t[27]!==D?(A=n.jsxs(nn,{children:[C,D]}),t[26]=C,t[27]=D,t[28]=A):A=t[28];let F;t[29]!==A||t[30]!==N?(F=n.jsxs(_t,{className:"sm:max-w-md",children:[b,N,A]}),t[29]=A,t[30]=N,t[31]=F):F=t[31];let q;return t[32]!==p||t[33]!==F?(q=n.jsx(Pt,{open:p,onOpenChange:j,children:F}),t[32]=p,t[33]=F,t[34]=q):q=t[34],q}function ao(t){return{...t,language:"en"}}function ro(t){return{...t,language:"pt-BR"}}function lo(t){const e=sn(t);return typeof e=="string"?e:void 0}function co(){return lo("experiment-pipeline-check"),null}function uo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;on(o.id,{name:o.name??void 0,slug:o.slug??void 0}),an();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(co,{}),e[0]=a):a=e[0],a}function mo(t){const{prev:e,virtualMcpId:o,decopilotId:a,savedLayout:s,opts:r,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,S=(o??m)!==m;let d,g;return r?.panel?g=r.panel:r?.newThread&&!S&&rn(e.tabId)?(g=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):s?(g=s.tab,s.sidepanel!==void 0&&(d=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!S&&e.tabId&&!ln(e.tabId)&&(g=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:g,search:c}}const Bt="studio:thread-layout:v4",fo=50;function Mt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function ho(t,e,o,a=fo){const s=t.filter(([r])=>r!==e);for(s.push([e,Mt(o)]);s.length>a;)s.shift();return s}function dt(){try{const t=sessionStorage.getItem(Bt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function Kt(t){try{sessionStorage.setItem(Bt,JSON.stringify(t))}catch{}}function go(t,e){t&&Kt(ho(dt(),t,e))}function po(t){if(!t)return null;const e=dt().find(([o])=>o===t);return e?Mt(e[1]):null}function oi(t){if(!t)return;const e=dt(),o=e.filter(([a])=>a!==t);o.length!==e.length&&Kt(o)}function Ht(t){return{queryKey:Ve.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 ii(t){const e=R.c(10);let o;e[0]!==t?(o=Ht(t),e[0]=t,e[1]=o):o=e[1];const a=Me(o);let s;e[2]!==a.data?.prompts?(s=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=s):s=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==s||e[8]!==r?(i={isLoading:a.isLoading,prompts:s,tiles:r},e[6]=a.isLoading,e[7]=s,e[8]=r,e[9]=i):i=e[9],i}function yo(t){const e=R.c(31),{orgSlug:o,orgName:a,domain:s}=t,r=J();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,m=bo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(vt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let S;e[3]!==r?(S=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=S):S=e[4];let d;e[5]!==S?(d=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[5]=S,e[6]=d):d=e[6];let g;e[7]!==s||e[8]!==a||e[9]!==r?(g=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${r("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=a,e[9]=r,e[10]=g):g=e[10];let l;e[11]!==g?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[11]=g,e[12]=l):l=e[12];let p;e[13]!==d||e[14]!==l?(p=n.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=p):p=e[15];let h;e[16]!==r?(h=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=h):h=e[17];let u;e[18]!==c||e[19]!==h?(u=n.jsx(z,{onClick:c,children:h}),e[18]=c,e[19]=h,e[20]=u):u=e[20];let w;e[21]!==r?(w=r("common.goBack"),e[21]=r,e[22]=w):w=e[22];let y;e[23]!==w?(y=n.jsx(z,{variant:"ghost",onClick:m,children:w}),e[23]=w,e[24]=y):y=e[24];let x;e[25]!==y||e[26]!==u?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[u,y]}),e[25]=y,e[26]=u,e[27]=x):x=e[27];let j;return e[28]!==x||e[29]!==p?(j=n.jsxs(ae,{children:[f,p,x]}),e[28]=x,e[29]=p,e[30]=j):j=e[30],j}function bo(){window.location.href="/"}function xo(t){const e=R.c(27),{notice:o,orgSlug:a}=t,s=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(cn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let f;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(f=o.ctaUrl&&o.ctaLabel?n.jsx(z,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=f):f=e[10];const S=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==s?(d=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=d):d=e[12];let g;e[13]!==S||e[14]!==d?(g=n.jsx(z,{variant:"outline",asChild:!0,children:n.jsx("a",{href:S,children:d})}),e[13]=S,e[14]=d,e[15]=g):g=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let p;e[18]!==l?(p=n.jsx(z,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=p):p=e[19];let h;e[20]!==p||e[21]!==f||e[22]!==g?(h=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,g,p]}),e[20]=p,e[21]=f,e[22]=g,e[23]=h):h=e[23];let u;return e[24]!==h||e[25]!==m?(u=n.jsxs(ae,{children:[r,m,h]}),e[24]=h,e[25]=m,e[26]=u):u=e[26],u}function So(t){const e=R.c(8);let o;e[0]!==t?(o=Ve.orgNotice(t??""),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const s=!!t;let r;return e[4]!==o||e[5]!==a||e[6]!==s?(r={queryKey:o,queryFn:a,enabled:s,staleTime:6e4},e[4]=o,e[5]=a,e[6]=s,e[7]=r):r=e[7],Me(r)}const wo="/settings/infra-billing";function jo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(wo)}function vo(t){const e=R.c(7),{org:o,children:a}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const r=s;let i;return e[3]!==a||e[4]!==o||e[5]!==r?(i=n.jsx(yn,{org:o,project:r,children:a}),e[3]=a,e[4]=o,e[5]=r,e[6]=i):i=e[6],i}function ko(){const t=At(),e=Wn(),{org:o}=ct(),a=dn({strict:!1}),s=$t(),{openPanel:r,closePanel:i}=$n(),c=Xn(),m=Zn(),f=es(),S=ts(),d=(h,u=!0)=>t({to:".",search:h,replace:u}),g=()=>d(h=>({...h,sidepanel:!0})),l=(h,u,w)=>{const y=!!m&&m===h;m&&!y&&go(m,{tab:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const x=y?null:po(h),j=Et(o.id).id,b=mo({prev:{virtualmcpid:c,tabId:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:u,decopilotId:j,savedLayout:x,opts:w,autosendValue:Qn});return S(h,()=>b.search,{virtualMcpId:u,view:{tabId:b.tabId}})};return{openSidePanel:g,setTaskId:l,createNewTask:async(h,u,w)=>{const y=crypto.randomUUID(),x=h??f;try{await e?.create({id:y,virtual_mcp_id:x,...u?{branch:u}:{}})}catch{}l(y,x,{...w,newThread:!0})},openTab:r,closeTab:i}}const To=new Set(["/$org/","/$org/home"]);function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:_o},t[0]=e):e=t[0],Ot(e)}function _o(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&To.has(e)}function Po(){const t=R.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=un(e)?.params.org,[s,r]=Q.useState(!1),[i,c]=Ws(),[m,f]=Un(),S=mn(),d=No(),g=a??"";let l;t[1]!==g?(l=Ht(g),t[1]=g,t[2]=l):l=t[2];const p=!!a&&d;let h;t[3]!==l||t[4]!==p?(h={...l,enabled:p},t[3]=l,t[4]=p,t[5]=h):h=t[5],Me(h);const{data:u}=Be.useSession(),w=u?.user?.id;let y,x;t[6]!==S?(y=()=>{const L=K=>{if(gt(K)&&K.code==="KeyK"){K.preventDefault(),Gs();return}if(K.key==="?"&&!pn(K.target)){K.preventDefault(),r(!0);return}gt(K)&&K.code==="BracketLeft"&&S.history.canGoBack()&&(K.preventDefault(),S.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},x=[S],t[6]=S,t[7]=y,t[8]=x):(y=t[7],x=t[8]),Q.useEffect(y,x);let j;t[9]!==a||t[10]!==w?(j=fn(a,w),t[9]=a,t[10]=w,t[11]=j):j=t[11];const{data:b}=kt(j),T=b?.id,v=b?.slug,{data:k}=ns(T,v),_=!!k?.ssoRequired&&!k.authenticated,{data:N}=So(v);let P;t[12]===Symbol.for("react.memo_cache_sentinel")?(P={select:Ao},t[12]=P):P=t[12];const C=Ot(P),I=N?.severity==="block"&&!jo(C),O=T??"",D=v??"";let A;t[13]!==D||t[14]!==O?(A=Hn({connectionId:Ct,orgId:O,orgSlug:D}),t[13]=D,t[14]=O,t[15]=A):A=t[15];const F=!!T&&!!v;let q;if(t[16]!==A||t[17]!==F?(q={...A,enabled:F},t[16]=A,t[17]=F,t[18]=q):q=t[18],Me(q),(!b||ht(b)||_||I)&&Vs(),!b){let L;return t[19]!==a?(L=n.jsx(hs,{orgSlug:a}),t[19]=a,t[20]=L):L=t[20],L}if(ht(b)){localStorage.getItem(Ge.lastOrgSlug())===a&&localStorage.removeItem(Ge.lastOrgSlug());let L;return t[21]!==b.name?(L=n.jsx(hn,{orgName:b.name}),t[21]=b.name,t[22]=L):L=t[22],L}if(I&&N){let L;return t[23]!==b.slug||t[24]!==N?(L=n.jsx(xo,{notice:N,orgSlug:b.slug}),t[23]=b.slug,t[24]=N,t[25]=L):L=t[25],L}if(_){let L;return t[26]!==b.id||t[27]!==b.name||t[28]!==b.slug||t[29]!==k.domain?(L=n.jsx(yo,{orgId:b.id,orgSlug:b.slug,orgName:b.name,domain:k.domain}),t[26]=b.id,t[27]=b.name,t[28]=b.slug,t[29]=k.domain,t[30]=L):L=t[30],L}const B=b.logo??null;let M;t[31]!==b||t[32]!==B?(M={...b,logo:B},t[31]=b,t[32]=B,t[33]=M):M=t[33];let G;t[34]!==b?(G=n.jsx(uo,{activeOrg:b}),t[34]=b,t[35]=G):G=t[35];let $;t[36]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx(gn,{}),t[36]=$):$=t[36];let V;t[37]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Rs,{}),n.jsx(eo,{})]}),t[37]=V):V=t[37];let W;t[38]!==i||t[39]!==c?(W=i&&n.jsx(Hs,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=W):W=t[40];let H;t[41]!==m||t[42]!==f?(H=m&&n.jsx(Jn,{open:!0,onOpenChange:f,source:Gn()}),t[41]=m,t[42]=f,t[43]=H):H=t[43];let U;t[44]!==s?(U=n.jsx(Fs,{open:s,onOpenChange:r}),t[44]=s,t[45]=U):U=t[45];let Z;t[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(io,{}),t[46]=Z):Z=t[46];let Y;return t[47]!==M||t[48]!==G||t[49]!==W||t[50]!==H||t[51]!==U?(Y=n.jsxs(vo,{org:M,children:[G,$,V,W,H,U,Z]}),t[47]=M,t[48]=G,t[49]=W,t[50]=H,t[51]=U,t[52]=Y):Y=t[52],Y}function Ao(t){return t.location.pathname}function Co(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Yn,{children:n.jsx(Po,{})}),t[0]=e):e=t[0],e}const ai=Object.freeze(Object.defineProperty({__proto__:null,default:Co,usePanelActions:ko},Symbol.toStringTag,{value:"Module"}));export{gs as L,ko as a,Ts as b,ii as c,ai as d,oi as f,zt as i,Gs as o,ni as r,si as s,So as u};
1
+ import{c as R,b as J,e as Je,j as n,B as z,t as qe,o as st,cV as ae,ag as vt,a as Be,J as Ut,U as kt,K as Ve,cW as Jt,cX as Gt,ay as Ge,l as ut,be as Vt,z as mt,r as Q,ae as Wt,af as te,cY as Yt,w as Tt,x as Nt,v as _t,D as Pt,d as At,a4 as ct,R as Ct,m as Me,C as at,aX as Et,cZ as Qt,b1 as Xt,b8 as ft,H as Zt,c_ as en,aY as tn,y as nn,c$ as sn,d0 as on,d1 as an,d2 as rn,d3 as ln,a5 as cn,u as dn,a6 as un,d4 as mn,d5 as fn,k as Ot,d6 as ht,d7 as hn,O as gn,b3 as gt,d8 as pn,a0 as yn}from"./index-WgfN4QVP.js";import{t as It}from"./Building02-BV_I3UuJ.js";import{i as bn,s as ee}from"./UserSquare-D1neGXtF.js";import{u as xn}from"./use-deployment-admin-DIOIJKFZ.js";import{a as Sn}from"./admin-fetch-BhTJlAsX.js";import{ay as wn,V as jn,I as it,a9 as vn,K as kn,az as Tn,n as pt,g as Nn,q as _n,l as Pn,aA as An,m as Cn}from"./agent-icon-D-0GvNzG.js";import{s as En}from"./XClose-DsiXpG7_.js";import{a as On,u as In}from"./use-project-scope-5fuCx2a_.js";import{u as $t,a as $n}from"./use-panel-navigate-BrmvjTvw.js";import{i as se}from"./CheckCircle-D6xmTIXf.js";import{i as yt}from"./Monitor01-B3thg2Rr.js";import{i as Fe}from"./Zap-BB-vOERw.js";import{u as Ln}from"./use-clock-tick-Cfukw61c.js";import{s as bt}from"./Plus-BaWg3Fda.js";import{a as Dn}from"./Tool01-DwTqd_Nj.js";import{b as ne,a as Ke,f as Rn,e as zn,c as Fn,C as qn}from"./command-DELHBruW.js";import{I as Bn}from"./integration-icon-UvPKDtTh.js";import{P as Mn}from"./project-icon-BIzg7YUA.js";import{a as Kn,m as Hn}from"./use-mcp-client-DXdlNn5q.js";import{u as Un,a as Jn,n as Gn}from"./new-project-dialog-DePwIx8r.js";import{S as Vn,u as Wn}from"./thread-intent-DSKhfvxP.js";import{R as Yn}from"./required-auth-layout-BLLWaY3S.js";import{A as Qn}from"./autosend-Ci815qQG.js";import{u as Xn,a as Zn,b as es,c as ts}from"./thread-route-D2HAbtZo.js";import{u as ns}from"./use-org-sso-CK8bP20u.js";function ss(t){const e=R.c(49),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=J();let c;e[0]!==a||e[1]!==i?(c=async()=>{const P=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),C=await P.json();if(!P.ok||!C.success)throw new Error(C.error??i("common.autoDomainJoinScreen.joinError"));return C},e[0]=a,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==a?(m=P=>{window.location.href=`/${P.slug??a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==i?(f=P=>{qe.error(P instanceof Error?P.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let S;e[7]!==c||e[8]!==m||e[9]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=S):S=e[10];const d=Je(S),g=os;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(st,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(It,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let p;e[14]!==o||e[15]!==i?(p=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=p):p=e[16];let h;e[17]!==p?(h=n.jsx("h3",{className:"text-lg font-medium",children:p}),e[17]=p,e[18]=h):h=e[18];let u;e[19]!==r||e[20]!==i?(u=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=u):u=e[21];let w;e[22]!==u?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[22]=u,e[23]=w):w=e[23];let y;e[24]!==h||e[25]!==w?(y=n.jsxs("div",{className:"space-y-2",children:[h,w]}),e[24]=h,e[25]=w,e[26]=y):y=e[26];let x;e[27]!==d?(x=()=>d.mutate(),e[27]=d,e[28]=x):x=e[28];let j;e[29]!==d.isPending||e[30]!==o||e[31]!==i?(j=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=d.isPending,e[30]=o,e[31]=i,e[32]=j):j=e[32];let b;e[33]!==d.isPending||e[34]!==x||e[35]!==j?(b=n.jsx(z,{onClick:x,disabled:d.isPending,children:j}),e[33]=d.isPending,e[34]=x,e[35]=j,e[36]=b):b=e[36];const T=d.isPending;let v;e[37]!==i?(v=i("common.goHome"),e[37]=i,e[38]=v):v=e[38];let k;e[39]!==d.isPending||e[40]!==v?(k=n.jsx(z,{variant:"ghost",onClick:g,disabled:T,children:v}),e[39]=d.isPending,e[40]=v,e[41]=k):k=e[41];let _;e[42]!==b||e[43]!==k?(_=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[b,k]}),e[42]=b,e[43]=k,e[44]=_):_=e[44];let N;return e[45]!==y||e[46]!==_||e[47]!==l?(N=n.jsxs(ae,{children:[l,y,_]}),e[45]=y,e[46]=_,e[47]=l,e[48]=N):N=e[48],N}function os(){window.location.href="/"}function xt(t){const e=R.c(26),{orgSlug:o,orgId:a,orgName:s,reason:r}=t,i=J(),{isAdmin:c}=xn(),m=is,f=r==="not-found",S=f?bn:vt;let d;e[0]!==f||e[1]!==i?(d=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=d):d=e[2];const g=d;let l;e[3]!==f||e[4]!==s||e[5]!==o||e[6]!==i?(l=f?n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:s??o}),".",n.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=s,e[5]=o,e[6]=i,e[7]=l):l=e[7];const p=l;let h;e[8]!==S?(h=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(S,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=S,e[9]=h):h=e[9];let u;e[10]!==g?(u=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[10]=g,e[11]=u):u=e[11];let w;e[12]!==p?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[12]=p,e[13]=w):w=e[13];let y;e[14]!==u||e[15]!==w?(y=n.jsxs("div",{className:"space-y-2",children:[u,w]}),e[14]=u,e[15]=w,e[16]=y):y=e[16];let x;e[17]!==c||e[18]!==a||e[19]!==o||e[20]!==i?(x=c&&a?n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[n.jsx(as,{orgId:a,orgSlug:o}),n.jsx(z,{variant:"ghost",onClick:m,children:i("common.goHome")})]}):n.jsx(z,{onClick:m,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=o,e[20]=i,e[21]=x):x=e[21];let j;return e[22]!==h||e[23]!==y||e[24]!==x?(j=n.jsxs(ae,{children:[h,y,x]}),e[22]=h,e[23]=y,e[24]=x,e[25]=j):j=e[25],j}function is(){window.location.href="/"}function as(t){const e=R.c(20),{orgId:o,orgSlug:a}=t,s=J(),{data:r}=Be.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==o?(c=()=>Sn(`/api/_admin/orgs/${o}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=o,e[2]=c):c=e[2];let m;e[3]!==a?(m=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==s?(f=u=>{qe.error(u instanceof Error?u.message:s("common.noAccessScreen.adminJoinFailed"))},e[5]=s,e[6]=f):f=e[6];let S;e[7]!==c||e[8]!==m||e[9]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=S):S=e[10];const d=Je(S);let g;e[11]!==d?(g=()=>d.mutate(),e[11]=d,e[12]=g):g=e[12];const l=!i||d.isPending;let p;e[13]!==d.isPending||e[14]!==s?(p=d.isPending?s("common.noAccessScreen.adminJoining"):s("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=s,e[15]=p):p=e[15];let h;return e[16]!==g||e[17]!==l||e[18]!==p?(h=n.jsx(z,{onClick:g,disabled:l,children:p}),e[16]=g,e[17]=l,e[18]=p,e[19]=h):h=e[19],h}function rs(t){const e=R.c(59),{invitationId:o,orgName:a,orgSlug:s,orgLogo:r}=t,i=J();let c;e[0]!==o?(c=async()=>{const A=await Be.organization.acceptInvitation({invitationId:o});if(A.error)throw new Error(A.error.message);return A.data},e[0]=o,e[1]=c):c=e[1];let m;e[2]!==s?(m=()=>{Ut(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let f;e[4]!==i?(f=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let S;e[6]!==c||e[7]!==m||e[8]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[6]=c,e[7]=m,e[8]=f,e[9]=S):S=e[9];const d=Je(S);let g;e[10]!==o?(g=async()=>{const A=await Be.organization.rejectInvitation({invitationId:o});if(A.error)throw new Error(A.error.message);return A.data},e[10]=o,e[11]=g):g=e[11];let l,p;e[12]!==i?(l=()=>{qe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},p=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=p):(l=e[13],p=e[14]);let h;e[15]!==g||e[16]!==l||e[17]!==p?(h={mutationFn:g,onSuccess:l,onError:p},e[15]=g,e[16]=l,e[17]=p,e[18]=h):h=e[18];const u=Je(h),w=d.isPending||u.isPending;let y;e[19]!==r||e[20]!==a?(y=r?n.jsx(st,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(wn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=y):y=e[21];let x;e[22]!==a||e[23]!==i?(x=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=x):x=e[24];let j;e[25]!==x?(j=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[25]=x,e[26]=j):j=e[26];let b;e[27]!==i?(b=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=b):b=e[28];let T;e[29]!==b?(T=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[29]=b,e[30]=T):T=e[30];let v;e[31]!==j||e[32]!==T?(v=n.jsxs("div",{className:"space-y-2",children:[j,T]}),e[31]=j,e[32]=T,e[33]=v):v=e[33];let k;e[34]!==d?(k=()=>d.mutate(),e[34]=d,e[35]=k):k=e[35];let _;e[36]!==d.isPending||e[37]!==i?(_=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=_):_=e[38];let N;e[39]!==w||e[40]!==k||e[41]!==_?(N=n.jsx(z,{onClick:k,disabled:w,children:_}),e[39]=w,e[40]=k,e[41]=_,e[42]=N):N=e[42];let P;e[43]!==u?(P=()=>u.mutate(),e[43]=u,e[44]=P):P=e[44];let C;e[45]!==u.isPending||e[46]!==i?(C=u.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=u.isPending,e[46]=i,e[47]=C):C=e[47];let I;e[48]!==w||e[49]!==P||e[50]!==C?(I=n.jsx(z,{variant:"ghost",onClick:P,disabled:w,children:C}),e[48]=w,e[49]=P,e[50]=C,e[51]=I):I=e[51];let O;e[52]!==N||e[53]!==I?(O=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,I]}),e[52]=N,e[53]=I,e[54]=O):O=e[54];let D;return e[55]!==v||e[56]!==O||e[57]!==y?(D=n.jsxs(ae,{children:[y,v,O]}),e[55]=v,e[56]=O,e[57]=y,e[58]=D):D=e[58],D}function ls(t){const e=R.c(23),{orgName:o,orgLogo:a}=t,s=J();let r;e[0]!==a||e[1]!==o?(r=a?n.jsx(st,{url:a,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(jn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=o,e[2]=r):r=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=m):m=e[9];let f;e[10]!==m?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=f):f=e[11];let S;e[12]!==c||e[13]!==f?(S=n.jsxs("div",{className:"space-y-2",children:[c,f]}),e[12]=c,e[13]=f,e[14]=S):S=e[14];let d;e[15]!==s?(d=s("common.goHome"),e[15]=s,e[16]=d):d=e[16];let g;e[17]!==d?(g=n.jsx(z,{variant:"ghost",onClick:cs,children:d}),e[17]=d,e[18]=g):g=e[18];let l;return e[19]!==r||e[20]!==S||e[21]!==g?(l=n.jsxs(ae,{children:[r,S,g]}),e[19]=r,e[20]=S,e[21]=g,e[22]=l):l=e[22],l}function cs(){window.location.href="/"}function ds(t){const e=R.c(45),{orgName:o,orgSlug:a,orgLogo:s,domain:r}=t,i=J();let c;e[0]!==a?(c=async()=>{const N=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),P=await N.json();if(!N.ok||!P.success)throw new Error(P.error??"Failed to request access");return P},e[0]=a,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=ms,e[2]=m):m=e[2];let f;e[3]!==i?(f=N=>{qe.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let S;e[5]!==c||e[6]!==f?(S={mutationFn:c,onSuccess:m,onError:f},e[5]=c,e[6]=f,e[7]=S):S=e[7];const d=Je(S);let g;e[8]!==s||e[9]!==o?(g=s?n.jsx(st,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(It,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=g):g=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let p;e[14]!==l?(p=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=p):p=e[15];let h;e[16]!==r||e[17]!==i?(h=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=h):h=e[18];let u;e[19]!==h?(u=n.jsx("p",{className:"text-sm text-muted-foreground",children:h}),e[19]=h,e[20]=u):u=e[20];let w;e[21]!==p||e[22]!==u?(w=n.jsxs("div",{className:"space-y-2",children:[p,u]}),e[21]=p,e[22]=u,e[23]=w):w=e[23];let y;e[24]!==d?(y=()=>d.mutate(),e[24]=d,e[25]=y):y=e[25];let x;e[26]!==d.isPending||e[27]!==i?(x=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=x):x=e[28];let j;e[29]!==d.isPending||e[30]!==y||e[31]!==x?(j=n.jsx(z,{onClick:y,disabled:d.isPending,children:x}),e[29]=d.isPending,e[30]=y,e[31]=x,e[32]=j):j=e[32];const b=d.isPending;let T;e[33]!==i?(T=i("common.goHome"),e[33]=i,e[34]=T):T=e[34];let v;e[35]!==d.isPending||e[36]!==T?(v=n.jsx(z,{variant:"ghost",onClick:us,disabled:b,children:T}),e[35]=d.isPending,e[36]=T,e[37]=v):v=e[37];let k;e[38]!==j||e[39]!==v?(k=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[j,v]}),e[38]=j,e[39]=v,e[40]=k):k=e[40];let _;return e[41]!==w||e[42]!==k||e[43]!==g?(_=n.jsxs(ae,{children:[g,w,k]}),e[41]=w,e[42]=k,e[43]=g,e[44]=_):_=e[44],_}function us(){window.location.href="/"}function ms(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function fs(t){const e=R.c(7);let o;e[0]!==t?(o=Ve.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let s;return e[4]!==o||e[5]!==a?(s={queryKey:o,queryFn:a,refetchOnWindowFocus:!1},e[4]=o,e[5]=a,e[6]=s):s=e[6],kt(s)}function hs({orgSlug:t}){const{data:e}=fs(t);if(e.status!=="member"){Jt()?.org===t&&Gt();const o=localStorage.getItem(Ge.lastOrgSlug())===t;if(o&&localStorage.removeItem(Ge.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(xt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(rs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ss,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(ds,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(ls,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(xt,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Lt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:a,eyebrow:s,title:r,description:i,icon:c,children:m,footerLeading:f,actions:S,onDismiss:d,tone:g}=t,l=g===void 0?"neutral":g,p=f||S;let h;e[0]!==l?(h=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=h):h=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=n.jsx(En,{size:14}),e[2]=u):u=e[2];let w;e[3]!==a||e[4]!==d?(w=n.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:u}),e[3]=a,e[4]=d,e[5]=w):w=e[5];const y=c&&"flex items-start gap-3",x=m&&"pb-3";let j;e[6]!==y||e[7]!==x?(j=ut("p-4 pr-11",y,x),e[6]=y,e[7]=x,e[8]=j):j=e[8];let b;e[9]!==c?(b=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=b):b=e[10];let T;e[11]!==s?(T=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=T):T=e[12];let v;e[13]!==r?(v=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=v):v=e[14];let k;e[15]!==i?(k=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=k):k=e[16];let _;e[17]!==v||e[18]!==k||e[19]!==T?(_=n.jsxs("div",{children:[T,v,k]}),e[17]=v,e[18]=k,e[19]=T,e[20]=_):_=e[20];let N;e[21]!==m?(N=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let P;e[23]!==_||e[24]!==N?(P=n.jsxs("div",{className:"min-w-0 flex-1",children:[_,N]}),e[23]=_,e[24]=N,e[25]=P):P=e[25];let C;e[26]!==P||e[27]!==j||e[28]!==b?(C=n.jsxs("div",{className:j,children:[b,P]}),e[26]=P,e[27]=j,e[28]=b,e[29]=C):C=e[29];let I;e[30]!==S||e[31]!==f||e[32]!==p||e[33]!==l?(I=p&&n.jsxs("div",{className:ut("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:S})]}),e[30]=S,e[31]=f,e[32]=p,e[33]=l,e[34]=I):I=e[34];let O;return e[35]!==o||e[36]!==C||e[37]!==I||e[38]!==h||e[39]!==w||e[40]!==l?(O=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[h,w,C,I]}),e[35]=o,e[36]=C,e[37]=I,e[38]=h,e[39]=w,e[40]=l,e[41]=O):O=e[41],O}const gs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Dt(t){return`[data-tour="${gs[t]}"]`}const ps=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function ys(t){return ps.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function bs(t,e){return ys(e).map(o=>({element:Dt(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const xs=Dt("switcher"),Ss=30;function Rt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function ws(t,e){return bs(t,e).filter(o=>typeof o.element=="string"&&Rt(o.element))}function js(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:a})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>a.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function vs(){return(await Vt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function ks(t,e){if(He)return;He=!0;let o=0;const a=()=>{if(!Rt(xs)&&o++<Ss){requestAnimationFrame(a);return}const s=ws(t,e);if(s.length===0){He=!1;return}vs().then(r=>{r(js(t,s)).drive()}).catch(()=>{He=!1})};a()}function Ts(t){return t!=="off"}function ni(t){if(!t.hasSource)return[];const e=["site-editor"];return Ts(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function si(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const Ft=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:yt,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:it,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:vn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:mt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ee,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:yt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:se,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:Fe,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:se,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:Fe,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:se,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:ee,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:Fe,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:ee,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:se,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:Fe,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:ee,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:se,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:Fe,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:ee,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:it,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:se,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:mt,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:Fe,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:se,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:ee,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:it,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:ee,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:kn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],nt="studio.release-feed.v1",rt=new Set;let oe="",ie={},lt=!1;function Ns(){if(lt)return oe||"{}";try{return localStorage.getItem(nt)??"{}"}catch{return oe||"{}"}}function qt(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function St(){const t=Ns();return t!==oe&&(oe=t,ie=qt(t)),ie}function _s(t){rt.add(t);const e=o=>{if(!(o.key!==nt&&o.key!==null)){try{const a=localStorage.getItem(nt)??"{}",r={...qt(a),...ie};ie=r,oe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{rt.delete(t),window.removeEventListener("storage",e)}}function Ps(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(nt,oe),lt=!1}catch{lt=!0}rt.forEach(e=>e())}function As(){const t=R.c(7),e=Q.useSyncExternalStore(_s,St,St);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const a=o,s=Cs;let r;t[2]!==e?(r=Ft.reduce((m,f)=>e[f.id]?m:m+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let c;return t[4]!==a||t[5]!==i?(c={isSeen:a,markSeen:s,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function Cs(t){ie[t]||Ps({...ie,[t]:{seenAt:new Date().toISOString()}})}const Es=720*60*60*1e3,Os=10080*60*1e3;function Is(t){const[e,o,a]=t.split("-").map(Number);return!e||!o||!a?new Date(t).getTime():new Date(e,o-1,a).getTime()}function $s(t){const e=Ft[0];if(!e)return null;const o=Is(e.date),a=t-o;return a<0||a>Es?null:e}function Ls(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ds(t,e){const o=Ls(t);return o===null?!1:e-o>=Os}function Rs(){const t=R.c(46),e=J(),o=On(),a=Wt(),s=$t(),r=!!o,i=a===te.home&&!o;let c;t[0]!==s||t[1]!==r?(c=r&&!!s&&zt(s),t[0]=s,t[1]=r,t[2]=c):c=t[2];const m=c,{data:f}=Be.useSession(),{isSeen:S,markSeen:d}=As(),g=Ln(6e4);let l,p,h;if(t[3]!==S||t[4]!==g||t[5]!==f?.user?.createdAt){h=Symbol.for("react.early_return_sentinel");e:{if(l=$s(g),!l){h=null;break e}if(!Ds(f?.user?.createdAt,g)){h=null;break e}p=S(l.id)}t[3]=S,t[4]=g,t[5]=f?.user?.createdAt,t[6]=l,t[7]=p,t[8]=h}else l=t[6],p=t[7],h=t[8];if(h!==Symbol.for("react.early_return_sentinel"))return h;if(p)return null;let u;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==m||t[14]!==e?(u=()=>{d(l.id),ks(e,{onOrgHome:i,inProject:r,onSiteEditor:m})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=m,t[14]=e,t[15]=u):u=t[15];const w=u;let y;t[16]!==e?(y=e("announcements.release.ariaLabel"),t[16]=e,t[17]=y):y=t[17];let x;t[18]!==e?(x=e("announcements.release.dismiss"),t[18]=e,t[19]=x):x=t[19];const j=l.eyebrow,b=l.title;let T;t[20]!==l.id||t[21]!==d?(T=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=T):T=t[22];let v;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(v=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>d(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=d,t[26]=e,t[27]=v):v=t[27];let k;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==w?(k=l.cta?"href"in l.cta?n.jsx(z,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(z,{size:"sm",onClick:w,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=w,t[32]=k):k=t[32];let _;t[33]!==l.bullets?(_=l.bullets.map(zs),t[33]=l.bullets,t[34]=_):_=t[34];let N;t[35]!==_?(N=n.jsx("ul",{className:"flex flex-col gap-3",children:_}),t[35]=_,t[36]=N):N=t[36];let P;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==k||t[40]!==N||t[41]!==y||t[42]!==x||t[43]!==T||t[44]!==v?(P=n.jsx(Lt,{ariaLabel:y,dismissLabel:x,eyebrow:j,title:b,onDismiss:T,footerLeading:v,actions:k,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=k,t[40]=N,t[41]=y,t[42]=x,t[43]=T,t[44]=v,t[45]=P):P=t[45],P}function zs(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Fs(t){const e=R.c(11),{open:o,onOpenChange:a}=t,s=J();let r;e[0]!==s?(r=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=r):r=e[1];let i;e[2]!==r?(i=n.jsx(Tt,{children:n.jsx(Nt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:Yt.map(qs)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=n.jsxs(_t,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let f;return e[7]!==a||e[8]!==o||e[9]!==m?(f=n.jsx(Pt,{open:o,onOpenChange:a,children:m}),e[7]=a,e[8]=o,e[9]=m,e[10]=f):f=e[10],f}function qs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Bs)})]},t.label)}function Bs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ms)})]},t.description)}function Ms(t){return n.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)}const wt=8;function Ks(t){const{org:e}=ct(),o=Kn({connectionId:Ct,orgId:e.id,orgSlug:e.slug}),{data:a}=Me({queryKey:Ve.globalSearch(e.id,t,wt),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:wt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Hs(t){const e=R.c(195),{open:o,onOpenChange:a}=t,s=J(),r=At(),{org:i}=ct(),{projects:c,hasProjects:m}=In(),[f,S]=Q.useState(""),d=Q.useDeferredValue(f),g=Ks(d);let l;e[0]!==a?(l=()=>{a(!1),S("")},e[0]=a,e[1]=l):l=e[1];const p=l;let h;e[2]!==p?(h=(B,M)=>{at("command_palette_used",{kind:M}),B(),p()},e[2]=p,e[3]=h):h=e[3];const u=h;let w;e[4]!==r||e[5]!==i.id||e[6]!==i.slug?(w=B=>{if(B.type==="connection"){if(!B.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:B.slug}});return}if(B.type==="task"){r({to:te.tasks,params:{org:i.slug,taskKey:B.key??void 0}});return}const M=Et(i.id).id;Qt(r,Xt({org:i.slug,agentId:B.virtual_mcp_id??M,superAgentId:M}),{search:()=>({thread:B.id}),replace:!1})},e[4]=r,e[5]=i.id,e[6]=i.slug,e[7]=w):w=e[7];const y=w;let x;e[8]!==f?(x=[f],e[8]=f,e[9]=x):x=e[9];const j=x;let b,T,v,k,_,N,P,C,I,O,D,A,F;if(e[10]!==p||e[11]!==u||e[12]!==m||e[13]!==g||e[14]!==r||e[15]!==a||e[16]!==o||e[17]!==y||e[18]!==i.slug||e[19]!==c||e[20]!==j||e[21]!==s||e[22]!==f){const B=g.filter(Js),M=g.filter(Us);let G;e[36]!==i.slug?(G={org:i.slug},e[36]=i.slug,e[37]=G):G=e[37];const $=G;let V;e[38]!==s?(V=s("sidebar.navDestinations.home"),e[38]=s,e[39]=V):V=e[39];let W;e[40]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx(Nn,{"aria-hidden":"true"}),e[40]=W):W=e[40];let H;e[41]!==$||e[42]!==V?(H={key:"home",label:V,icon:W,to:te.home,params:$},e[41]=$,e[42]=V,e[43]=H):H=e[43];let U;e[44]!==s?(U=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=U):U=e[45];let Z;e[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(_n,{"aria-hidden":"true"}),e[46]=Z):Z=e[46];let Y;e[47]!==$||e[48]!==U?(Y={key:"reports",label:U,icon:Z,to:te.reports,params:$},e[47]=$,e[48]=U,e[49]=Y):Y=e[49];let L;e[50]!==s?(L=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=L):L=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx(pt,{"aria-hidden":"true"}),e[52]=K):K=e[52];let re;e[53]!==i.slug?(re={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=re):re=e[54];let le;e[55]!==L||e[56]!==re?(le={key:"tasks",label:L,icon:K,to:te.tasks,params:re},e[55]=L,e[56]=re,e[57]=le):le=e[57];let ce;e[58]!==s?(ce=s("sidebar.navDestinations.library"),e[58]=s,e[59]=ce):ce=e[59];let We;e[60]===Symbol.for("react.memo_cache_sentinel")?(We=n.jsx(Pn,{"aria-hidden":"true"}),e[60]=We):We=e[60];let de;e[61]!==$||e[62]!==ce?(de={key:"library",label:ce,icon:We,to:te.library,params:$},e[61]=$,e[62]=ce,e[63]=de):de=e[63];let ue;e[64]!==s?(ue=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=ue):ue=e[65];let Ye;e[66]===Symbol.for("react.memo_cache_sentinel")?(Ye=n.jsx(An,{"aria-hidden":"true"}),e[66]=Ye):Ye=e[66];let me;e[67]!==$||e[68]!==ue?(me={key:"discover",label:ue,icon:Ye,to:te.discover,params:$},e[67]=$,e[68]=ue,e[69]=me):me=e[69];let Qe;e[70]!==H||e[71]!==Y||e[72]!==le||e[73]!==de||e[74]!==me?(Qe=[H,Y,le,de,me],e[70]=H,e[71]=Y,e[72]=le,e[73]=de,e[74]=me,e[75]=Qe):Qe=e[75];const ot=Qe;T=Rn,k=o,e[76]!==p||e[77]!==a?(_=E=>E?a(!0):p(),e[76]=p,e[77]=a,e[78]=_):_=e[78],e[79]!==s?(N=s("commandPalette.title"),e[79]=s,e[80]=N):N=e[80],e[81]!==s?(P=s("commandPalette.description"),e[81]=s,e[82]=P):P=e[82];let fe;e[83]!==s?(fe=s("commandPalette.placeholder"),e[83]=s,e[84]=fe):fe=e[84];let he;e[85]!==s?(he=s("commandPalette.placeholder"),e[85]=s,e[86]=he):he=e[86],e[87]!==fe||e[88]!==he||e[89]!==f?(C=n.jsx(zn,{placeholder:fe,"aria-label":he,value:f,onValueChange:S}),e[87]=fe,e[88]=he,e[89]=f,e[90]=C):C=e[90],b=Fn;let ge;e[91]!==s?(ge=s("commandPalette.empty"),e[91]=s,e[92]=ge):ge=e[92],e[93]!==ge?(I=n.jsx(qn,{children:ge}),e[93]=ge,e[94]=I):I=e[94];let pe;e[95]!==s?(pe=s("commandPalette.goTo"),e[95]=s,e[96]=pe):pe=e[96];let ye;e[97]!==ot||e[98]!==u||e[99]!==r?(ye=ot.map(E=>n.jsxs(ne,{onSelect:()=>u(()=>r({to:E.to,params:E.params}),"destination"),children:[E.icon,n.jsx("span",{children:E.label})]},E.key)),e[97]=ot,e[98]=u,e[99]=r,e[100]=ye):ye=e[100],e[101]!==pe||e[102]!==ye?(O=n.jsx(Ke,{heading:pe,children:ye}),e[101]=pe,e[102]=ye,e[103]=O):O=e[103],e[104]!==u||e[105]!==m||e[106]!==r||e[107]!==i.slug||e[108]!==c||e[109]!==s?(D=m&&n.jsx(Ke,{heading:s("commandPalette.projects"),children:c.map(E=>n.jsxs(ne,{value:`project ${E.title}`,onSelect:()=>u(()=>r({to:te.projects,params:{org:i.slug,agentId:E.id}}),"project"),children:[n.jsx(Mn,{icon:E.icon,name:E.title,"aria-hidden":"true"}),n.jsx("span",{children:E.title})]},E.id))}),e[104]=u,e[105]=m,e[106]=r,e[107]=i.slug,e[108]=c,e[109]=s,e[110]=D):D=e[110];let be;e[111]!==s?(be=s("commandPalette.actions"),e[111]=s,e[112]=be):be=e[112];let xe;e[113]!==s?(xe=s("commandPalette.newProject"),e[113]=s,e[114]=xe):xe=e[114];let Se;e[115]!==u||e[116]!==r||e[117]!==$?(Se=()=>u(()=>r({to:te.home,params:$}),"new_project"),e[115]=u,e[116]=r,e[117]=$,e[118]=Se):Se=e[118];let Xe;e[119]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(bt,{"aria-hidden":"true"}),e[119]=Xe):Xe=e[119];let we;e[120]!==s?(we=s("commandPalette.newProject"),e[120]=s,e[121]=we):we=e[121];let je;e[122]!==we?(je=n.jsx("span",{children:we}),e[122]=we,e[123]=je):je=e[123];let ve;e[124]!==xe||e[125]!==Se||e[126]!==je?(ve=n.jsxs(ne,{value:xe,onSelect:Se,children:[Xe,je]}),e[124]=xe,e[125]=Se,e[126]=je,e[127]=ve):ve=e[127];let ke;e[128]!==s?(ke=s("commandPalette.inviteTeammate"),e[128]=s,e[129]=ke):ke=e[129];let Te;e[130]!==u||e[131]!==r||e[132]!==$?(Te=()=>u(()=>r({to:"/$org/settings/members",params:$}),"invite"),e[130]=u,e[131]=r,e[132]=$,e[133]=Te):Te=e[133];let Ze;e[134]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(Cn,{"aria-hidden":"true"}),e[134]=Ze):Ze=e[134];let Ne;e[135]!==s?(Ne=s("commandPalette.inviteTeammate"),e[135]=s,e[136]=Ne):Ne=e[136];let _e;e[137]!==Ne?(_e=n.jsx("span",{children:Ne}),e[137]=Ne,e[138]=_e):_e=e[138];let Pe;e[139]!==ke||e[140]!==Te||e[141]!==_e?(Pe=n.jsxs(ne,{value:ke,onSelect:Te,children:[Ze,_e]}),e[139]=ke,e[140]=Te,e[141]=_e,e[142]=Pe):Pe=e[142];let Ae;e[143]!==s?(Ae=s("commandPalette.addConnection"),e[143]=s,e[144]=Ae):Ae=e[144];let Ce;e[145]!==u||e[146]!==r||e[147]!==$?(Ce=()=>u(()=>r({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[145]=u,e[146]=r,e[147]=$,e[148]=Ce):Ce=e[148];let et;e[149]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx(bt,{"aria-hidden":"true"}),e[149]=et):et=e[149];let Ee;e[150]!==s?(Ee=s("commandPalette.addConnection"),e[150]=s,e[151]=Ee):Ee=e[151];let Oe;e[152]!==Ee?(Oe=n.jsx("span",{children:Ee}),e[152]=Ee,e[153]=Oe):Oe=e[153];let Ie;e[154]!==Ae||e[155]!==Ce||e[156]!==Oe?(Ie=n.jsxs(ne,{value:Ae,onSelect:Ce,children:[et,Oe]}),e[154]=Ae,e[155]=Ce,e[156]=Oe,e[157]=Ie):Ie=e[157];let $e;e[158]!==s?($e=s("commandPalette.settings"),e[158]=s,e[159]=$e):$e=e[159];let Le;e[160]!==u||e[161]!==r||e[162]!==$?(Le=()=>u(()=>r({to:"/$org/settings/general",params:$}),"settings"),e[160]=u,e[161]=r,e[162]=$,e[163]=Le):Le=e[163];let tt;e[164]===Symbol.for("react.memo_cache_sentinel")?(tt=n.jsx(Dn,{"aria-hidden":"true"}),e[164]=tt):tt=e[164];let De;e[165]!==s?(De=s("commandPalette.settings"),e[165]=s,e[166]=De):De=e[166];let Re;e[167]!==De?(Re=n.jsx("span",{children:De}),e[167]=De,e[168]=Re):Re=e[168];let ze;e[169]!==$e||e[170]!==Le||e[171]!==Re?(ze=n.jsxs(ne,{value:$e,onSelect:Le,children:[tt,Re]}),e[169]=$e,e[170]=Le,e[171]=Re,e[172]=ze):ze=e[172],e[173]!==be||e[174]!==ve||e[175]!==Pe||e[176]!==Ie||e[177]!==ze?(A=n.jsxs(Ke,{heading:be,children:[ve,Pe,Ie,ze]}),e[173]=be,e[174]=ve,e[175]=Pe,e[176]=Ie,e[177]=ze,e[178]=A):A=e[178],F=B.length>0&&n.jsx(Ke,{heading:s("commandPalette.connections"),children:B.map(E=>n.jsxs(ne,{value:`${E.title} ${E.id}`,keywords:j,onSelect:()=>u(()=>y(E),"connection"),children:[n.jsx(Bn,{icon:E.icon,name:E.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:E.title})]},`connection:${E.id}`))}),v=M.length>0&&n.jsx(Ke,{heading:s("commandPalette.results"),children:M.map(E=>n.jsxs(ne,{value:`${E.title} ${E.id}`,keywords:j,onSelect:()=>u(()=>y(E),E.type),children:[E.type==="thread"?n.jsx(Tn,{"aria-hidden":"true"}):n.jsx(pt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:E.title}),E.type==="task"&&E.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:E.key})]},`${E.type}:${E.id}`))}),e[10]=p,e[11]=u,e[12]=m,e[13]=g,e[14]=r,e[15]=a,e[16]=o,e[17]=y,e[18]=i.slug,e[19]=c,e[20]=j,e[21]=s,e[22]=f,e[23]=b,e[24]=T,e[25]=v,e[26]=k,e[27]=_,e[28]=N,e[29]=P,e[30]=C,e[31]=I,e[32]=O,e[33]=D,e[34]=A,e[35]=F}else b=e[23],T=e[24],v=e[25],k=e[26],_=e[27],N=e[28],P=e[29],C=e[30],I=e[31],O=e[32],D=e[33],A=e[34],F=e[35];let q;e[179]!==b||e[180]!==v||e[181]!==I||e[182]!==O||e[183]!==D||e[184]!==A||e[185]!==F?(q=n.jsxs(b,{children:[I,O,D,A,F,v]}),e[179]=b,e[180]=v,e[181]=I,e[182]=O,e[183]=D,e[184]=A,e[185]=F,e[186]=q):q=e[186];let X;return e[187]!==T||e[188]!==k||e[189]!==_||e[190]!==N||e[191]!==P||e[192]!==C||e[193]!==q?(X=n.jsxs(T,{open:k,onOpenChange:_,title:N,description:P,children:[C,q]}),e[187]=T,e[188]=k,e[189]=_,e[190]=N,e[191]=P,e[192]=C,e[193]=q,e[194]=X):X=e[194],X}function Us(t){return t.type!=="connection"}function Js(t){return t.type==="connection"}const Ue=new Vn(!1);function Gs(){Ue.set(!0)}function Vs(){Ue.set(!1)}function Ws(){const t=R.c(2),e=Q.useSyncExternalStore(Ue.subscribe,Ue.get);let o;return t[0]!==e?(o=[e,Ue.set],t[0]=e,t[1]=o):o=t[1],o}const Ys=300*1e3,Qs=2;function Xs(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Zs(t,e){return t.count>=Qs&&t.version!==null&&t.version!==e}function eo(){const t=R.c(31),e=J();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Ve.appVersionCheck(),queryFn:no,refetchInterval:Ys,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:a,dataUpdatedAt:s}=Me(o),[r,i]=Q.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,f]=Q.useState(c);s!==r&&(i(s),f(k=>Xs(k,a,"4.542.2")));const[S,d]=Q.useState(null);if(!Zs(m,S))return null;let g;t[2]!==e?(g=e("announcements.version.ariaLabel"),t[2]=e,t[3]=g):g=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let p;t[6]!==e?(p=e("announcements.version.eyebrow"),t[6]=e,t[7]=p):p=t[7];let h;t[8]!==e?(h=e("announcements.version.title"),t[8]=e,t[9]=h):h=t[9];let u;t[10]!==e?(u=e("announcements.version.description"),t[10]=e,t[11]=u):u=t[11];let w;t[12]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx(ft,{size:16}),t[12]=w):w=t[12];let y;t[13]!==m.version?(y=()=>d(m.version),t[13]=m.version,t[14]=y):y=t[14];let x;t[15]!==e?(x=e("announcements.version.currentSession",{version:"4.542.2"}),t[15]=e,t[16]=x):x=t[16];let j;t[17]!==e?(j=e("announcements.version.refresh"),t[17]=e,t[18]=j):j=t[18];let b;t[19]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(ft,{size:14}),t[19]=b):b=t[19];let T;t[20]!==j?(T=n.jsxs(z,{size:"sm",onClick:to,children:[j,b]}),t[20]=j,t[21]=T):T=t[21];let v;return t[22]!==T||t[23]!==g||t[24]!==l||t[25]!==p||t[26]!==h||t[27]!==u||t[28]!==y||t[29]!==x?(v=n.jsx(Lt,{ariaLabel:g,dismissLabel:l,eyebrow:p,title:h,description:u,icon:w,tone:"system",onDismiss:y,footerLeading:x,actions:T}),t[22]=T,t[23]=g,t[24]=l,t[25]=p,t[26]=h,t[27]=u,t[28]=y,t[29]=x,t[30]=v):v=t[30],v}function to(){return window.location.reload()}async function no(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function so(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const oo=Date.parse("2026-07-21T00:00:00Z"),jt=t=>so(Ge.ptBrAnnouncementSeen(t));function io(){const t=R.c(35),e=J(),[o,a]=Zt(),{data:s,isPending:r}=Be.useSession(),i=s?.user,c=i?.id,m=i?.createdAt,f=m!=null&&new Date(m).getTime()<oo,S=en()==="pt-BR",d=!r&&!!c&&f&&S&&o.language==="en"&&!jt(c).has(),[g,l]=Q.useState(!1),[p,h]=Q.useState(!1);!g&&!r&&(l(!0),d&&c&&(jt(c).mark(),a(ro),h(!0),at("pt_br_auto_switch_shown")));let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=X=>{at("pt_br_auto_switch_closed",{action:X}),h(!1)},t[0]=u):u=t[0];const w=u;let y;t[1]!==a?(y=()=>{a(ao),w("switch-back")},t[1]=a,t[2]=y):y=t[2];const x=y;let j;t[3]===Symbol.for("react.memo_cache_sentinel")?(j=X=>!X&&w("dismiss"),t[3]=j):j=t[3];let b;t[4]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=b):b=t[4];let T;t[5]!==e?(T=e("announcements.ptBr.title"),t[5]=e,t[6]=T):T=t[6];let v;t[7]!==T?(v=n.jsx(Nt,{children:T}),t[7]=T,t[8]=v):v=t[8];let k;t[9]!==e?(k=e("announcements.ptBr.description"),t[9]=e,t[10]=k):k=t[10];let _;t[11]!==k?(_=n.jsx(tn,{children:k}),t[11]=k,t[12]=_):_=t[12];let N;t[13]!==v||t[14]!==_?(N=n.jsxs(Tt,{children:[v,_]}),t[13]=v,t[14]=_,t[15]=N):N=t[15];let P;t[16]!==e?(P=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=P):P=t[17];let C;t[18]!==x||t[19]!==P?(C=n.jsx(z,{variant:"outline",onClick:x,children:P}),t[18]=x,t[19]=P,t[20]=C):C=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>w("ok"),t[21]=I):I=t[21];let O;t[22]!==e?(O=e("announcements.ptBr.ok"),t[22]=e,t[23]=O):O=t[23];let D;t[24]!==O?(D=n.jsx(z,{onClick:I,children:O}),t[24]=O,t[25]=D):D=t[25];let A;t[26]!==C||t[27]!==D?(A=n.jsxs(nn,{children:[C,D]}),t[26]=C,t[27]=D,t[28]=A):A=t[28];let F;t[29]!==A||t[30]!==N?(F=n.jsxs(_t,{className:"sm:max-w-md",children:[b,N,A]}),t[29]=A,t[30]=N,t[31]=F):F=t[31];let q;return t[32]!==p||t[33]!==F?(q=n.jsx(Pt,{open:p,onOpenChange:j,children:F}),t[32]=p,t[33]=F,t[34]=q):q=t[34],q}function ao(t){return{...t,language:"en"}}function ro(t){return{...t,language:"pt-BR"}}function lo(t){const e=sn(t);return typeof e=="string"?e:void 0}function co(){return lo("experiment-pipeline-check"),null}function uo(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;on(o.id,{name:o.name??void 0,slug:o.slug??void 0}),an();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx(co,{}),e[0]=a):a=e[0],a}function mo(t){const{prev:e,virtualMcpId:o,decopilotId:a,savedLayout:s,opts:r,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,S=(o??m)!==m;let d,g;return r?.panel?g=r.panel:r?.newThread&&!S&&rn(e.tabId)?(g=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):s?(g=s.tab,s.sidepanel!==void 0&&(d=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!S&&e.tabId&&!ln(e.tabId)&&(g=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:g,search:c}}const Bt="studio:thread-layout:v4",fo=50;function Mt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function ho(t,e,o,a=fo){const s=t.filter(([r])=>r!==e);for(s.push([e,Mt(o)]);s.length>a;)s.shift();return s}function dt(){try{const t=sessionStorage.getItem(Bt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function Kt(t){try{sessionStorage.setItem(Bt,JSON.stringify(t))}catch{}}function go(t,e){t&&Kt(ho(dt(),t,e))}function po(t){if(!t)return null;const e=dt().find(([o])=>o===t);return e?Mt(e[1]):null}function oi(t){if(!t)return;const e=dt(),o=e.filter(([a])=>a!==t);o.length!==e.length&&Kt(o)}function Ht(t){return{queryKey:Ve.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 ii(t){const e=R.c(10);let o;e[0]!==t?(o=Ht(t),e[0]=t,e[1]=o):o=e[1];const a=Me(o);let s;e[2]!==a.data?.prompts?(s=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=s):s=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==s||e[8]!==r?(i={isLoading:a.isLoading,prompts:s,tiles:r},e[6]=a.isLoading,e[7]=s,e[8]=r,e[9]=i):i=e[9],i}function yo(t){const e=R.c(31),{orgSlug:o,orgName:a,domain:s}=t,r=J();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,m=bo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(vt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let S;e[3]!==r?(S=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=S):S=e[4];let d;e[5]!==S?(d=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[5]=S,e[6]=d):d=e[6];let g;e[7]!==s||e[8]!==a||e[9]!==r?(g=a?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${r("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=a,e[9]=r,e[10]=g):g=e[10];let l;e[11]!==g?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[11]=g,e[12]=l):l=e[12];let p;e[13]!==d||e[14]!==l?(p=n.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=p):p=e[15];let h;e[16]!==r?(h=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=h):h=e[17];let u;e[18]!==c||e[19]!==h?(u=n.jsx(z,{onClick:c,children:h}),e[18]=c,e[19]=h,e[20]=u):u=e[20];let w;e[21]!==r?(w=r("common.goBack"),e[21]=r,e[22]=w):w=e[22];let y;e[23]!==w?(y=n.jsx(z,{variant:"ghost",onClick:m,children:w}),e[23]=w,e[24]=y):y=e[24];let x;e[25]!==y||e[26]!==u?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[u,y]}),e[25]=y,e[26]=u,e[27]=x):x=e[27];let j;return e[28]!==x||e[29]!==p?(j=n.jsxs(ae,{children:[f,p,x]}),e[28]=x,e[29]=p,e[30]=j):j=e[30],j}function bo(){window.location.href="/"}function xo(t){const e=R.c(27),{notice:o,orgSlug:a}=t,s=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(cn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let f;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(f=o.ctaUrl&&o.ctaLabel?n.jsx(z,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=f):f=e[10];const S=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==s?(d=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=d):d=e[12];let g;e[13]!==S||e[14]!==d?(g=n.jsx(z,{variant:"outline",asChild:!0,children:n.jsx("a",{href:S,children:d})}),e[13]=S,e[14]=d,e[15]=g):g=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let p;e[18]!==l?(p=n.jsx(z,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=p):p=e[19];let h;e[20]!==p||e[21]!==f||e[22]!==g?(h=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,g,p]}),e[20]=p,e[21]=f,e[22]=g,e[23]=h):h=e[23];let u;return e[24]!==h||e[25]!==m?(u=n.jsxs(ae,{children:[r,m,h]}),e[24]=h,e[25]=m,e[26]=u):u=e[26],u}function So(t){const e=R.c(8);let o;e[0]!==t?(o=Ve.orgNotice(t??""),e[0]=t,e[1]=o):o=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const s=!!t;let r;return e[4]!==o||e[5]!==a||e[6]!==s?(r={queryKey:o,queryFn:a,enabled:s,staleTime:6e4},e[4]=o,e[5]=a,e[6]=s,e[7]=r):r=e[7],Me(r)}const wo="/settings/infra-billing";function jo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(wo)}function vo(t){const e=R.c(7),{org:o,children:a}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const r=s;let i;return e[3]!==a||e[4]!==o||e[5]!==r?(i=n.jsx(yn,{org:o,project:r,children:a}),e[3]=a,e[4]=o,e[5]=r,e[6]=i):i=e[6],i}function ko(){const t=At(),e=Wn(),{org:o}=ct(),a=dn({strict:!1}),s=$t(),{openPanel:r,closePanel:i}=$n(),c=Xn(),m=Zn(),f=es(),S=ts(),d=(h,u=!0)=>t({to:".",search:h,replace:u}),g=()=>d(h=>({...h,sidepanel:!0})),l=(h,u,w)=>{const y=!!m&&m===h;m&&!y&&go(m,{tab:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const x=y?null:po(h),j=Et(o.id).id,b=mo({prev:{virtualmcpid:c,tabId:s,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:u,decopilotId:j,savedLayout:x,opts:w,autosendValue:Qn});return S(h,()=>b.search,{virtualMcpId:u,view:{tabId:b.tabId}})};return{openSidePanel:g,setTaskId:l,createNewTask:async(h,u,w)=>{const y=crypto.randomUUID(),x=h??f;try{await e?.create({id:y,virtual_mcp_id:x,...u?{branch:u}:{}})}catch{}l(y,x,{...w,newThread:!0})},openTab:r,closeTab:i}}const To=new Set(["/$org/","/$org/home"]);function No(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:_o},t[0]=e):e=t[0],Ot(e)}function _o(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&To.has(e)}function Po(){const t=R.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=un(e)?.params.org,[s,r]=Q.useState(!1),[i,c]=Ws(),[m,f]=Un(),S=mn(),d=No(),g=a??"";let l;t[1]!==g?(l=Ht(g),t[1]=g,t[2]=l):l=t[2];const p=!!a&&d;let h;t[3]!==l||t[4]!==p?(h={...l,enabled:p},t[3]=l,t[4]=p,t[5]=h):h=t[5],Me(h);const{data:u}=Be.useSession(),w=u?.user?.id;let y,x;t[6]!==S?(y=()=>{const L=K=>{if(gt(K)&&K.code==="KeyK"){K.preventDefault(),Gs();return}if(K.key==="?"&&!pn(K.target)){K.preventDefault(),r(!0);return}gt(K)&&K.code==="BracketLeft"&&S.history.canGoBack()&&(K.preventDefault(),S.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},x=[S],t[6]=S,t[7]=y,t[8]=x):(y=t[7],x=t[8]),Q.useEffect(y,x);let j;t[9]!==a||t[10]!==w?(j=fn(a,w),t[9]=a,t[10]=w,t[11]=j):j=t[11];const{data:b}=kt(j),T=b?.id,v=b?.slug,{data:k}=ns(T,v),_=!!k?.ssoRequired&&!k.authenticated,{data:N}=So(v);let P;t[12]===Symbol.for("react.memo_cache_sentinel")?(P={select:Ao},t[12]=P):P=t[12];const C=Ot(P),I=N?.severity==="block"&&!jo(C),O=T??"",D=v??"";let A;t[13]!==D||t[14]!==O?(A=Hn({connectionId:Ct,orgId:O,orgSlug:D}),t[13]=D,t[14]=O,t[15]=A):A=t[15];const F=!!T&&!!v;let q;if(t[16]!==A||t[17]!==F?(q={...A,enabled:F},t[16]=A,t[17]=F,t[18]=q):q=t[18],Me(q),(!b||ht(b)||_||I)&&Vs(),!b){let L;return t[19]!==a?(L=n.jsx(hs,{orgSlug:a}),t[19]=a,t[20]=L):L=t[20],L}if(ht(b)){localStorage.getItem(Ge.lastOrgSlug())===a&&localStorage.removeItem(Ge.lastOrgSlug());let L;return t[21]!==b.name?(L=n.jsx(hn,{orgName:b.name}),t[21]=b.name,t[22]=L):L=t[22],L}if(I&&N){let L;return t[23]!==b.slug||t[24]!==N?(L=n.jsx(xo,{notice:N,orgSlug:b.slug}),t[23]=b.slug,t[24]=N,t[25]=L):L=t[25],L}if(_){let L;return t[26]!==b.id||t[27]!==b.name||t[28]!==b.slug||t[29]!==k.domain?(L=n.jsx(yo,{orgId:b.id,orgSlug:b.slug,orgName:b.name,domain:k.domain}),t[26]=b.id,t[27]=b.name,t[28]=b.slug,t[29]=k.domain,t[30]=L):L=t[30],L}const B=b.logo??null;let M;t[31]!==b||t[32]!==B?(M={...b,logo:B},t[31]=b,t[32]=B,t[33]=M):M=t[33];let G;t[34]!==b?(G=n.jsx(uo,{activeOrg:b}),t[34]=b,t[35]=G):G=t[35];let $;t[36]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx(gn,{}),t[36]=$):$=t[36];let V;t[37]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Rs,{}),n.jsx(eo,{})]}),t[37]=V):V=t[37];let W;t[38]!==i||t[39]!==c?(W=i&&n.jsx(Hs,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=W):W=t[40];let H;t[41]!==m||t[42]!==f?(H=m&&n.jsx(Jn,{open:!0,onOpenChange:f,source:Gn()}),t[41]=m,t[42]=f,t[43]=H):H=t[43];let U;t[44]!==s?(U=n.jsx(Fs,{open:s,onOpenChange:r}),t[44]=s,t[45]=U):U=t[45];let Z;t[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(io,{}),t[46]=Z):Z=t[46];let Y;return t[47]!==M||t[48]!==G||t[49]!==W||t[50]!==H||t[51]!==U?(Y=n.jsxs(vo,{org:M,children:[G,$,V,W,H,U,Z]}),t[47]=M,t[48]=G,t[49]=W,t[50]=H,t[51]=U,t[52]=Y):Y=t[52],Y}function Ao(t){return t.location.pathname}function Co(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Yn,{children:n.jsx(Po,{})}),t[0]=e):e=t[0],e}const ai=Object.freeze(Object.defineProperty({__proto__:null,default:Co,usePanelActions:ko},Symbol.toStringTag,{value:"Module"}));export{gs as L,ko as a,Ts as b,ii as c,ai as d,oi as f,zt as i,Gs as o,ni as r,si as s,So as u};