decocms 4.562.1 → 4.563.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (432) hide show
  1. package/dist/client/assets/{AlertCircle-Cwj2JDLb.js → AlertCircle-2LbzMVC9.js} +1 -1
  2. package/dist/client/assets/{AreaChart-M71cxP0N.js → AreaChart-qBz2MFzD.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-D6im8CSl.js → ArrowLeft-BeuQwyHa.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-zoWFBt83.js → ArrowUp-DmxAfWhF.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-CkRq1ukN.js → CartesianChart-BSwxZ1ZU.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-CJyVrm-b.js → CategoricalChart-DVdTZlRq.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-Dycaqr3_.js → CheckCircle-BzNTGMCW.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-Cq__IjWt.js → ChevronSelectorVertical-XdbRnSsi.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-B0uKxpVg.js → ChevronUp-aYmfXYet.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-CMHPxKus.js → CreditCard01-yFcUZGe-.js} +1 -1
  11. package/dist/client/assets/{Globe04-BLpPYUUd.js → Globe04-RPMmcIuy.js} +1 -1
  12. package/dist/client/assets/{Key01-KS2Cdqso.js → Key01-jvDltRrN.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-CFo-1erV.js → LinkBroken01-Jybptj_M.js} +1 -1
  14. package/dist/client/assets/{Minus-CR14C6Ew.js → Minus-BqtyYKKc.js} +1 -1
  15. package/dist/client/assets/{Monitor01-PjSuNm4O.js → Monitor01-As0zpJLy.js} +1 -1
  16. package/dist/client/assets/{Play-DAD0wkps.js → Play-CdlorRHF.js} +1 -1
  17. package/dist/client/assets/{Plus-Caq968Zm.js → Plus-CzoopYlU.js} +1 -1
  18. package/dist/client/assets/ReferenceLine-CJng4Q0_.js +1 -0
  19. package/dist/client/assets/{SearchMd-BionSqTl.js → SearchMd-By2dNUiw.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-DUpALglE.js → ShoppingBag01-DhegylE0.js} +1 -1
  21. package/dist/client/assets/{Sun-x19ShBxe.js → Sun-Hd0LHTxB.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-Dghq_Bvd.js → SwitchHorizontal01-Czrqzt6f.js} +1 -1
  23. package/dist/client/assets/{Tool01-GdBdG6P_.js → Tool01-D38zOT0h.js} +1 -1
  24. package/dist/client/assets/{Tooltip-CDDThlKy.js → Tooltip-Dxjn-_yM.js} +1 -1
  25. package/dist/client/assets/{Trash01-DhMVlpac.js → Trash01-BxSWir9J.js} +1 -1
  26. package/dist/client/assets/{Upload01-hsehoAUh.js → Upload01-C8sapTWh.js} +1 -1
  27. package/dist/client/assets/{UserSquare-T5uOviXx.js → UserSquare-CEg-eLCw.js} +1 -1
  28. package/dist/client/assets/{Users01-DDaeVlhF.js → Users01-CMreTMtq.js} +1 -1
  29. package/dist/client/assets/{XClose-NmocES7U.js → XClose-DGifUqyQ.js} +1 -1
  30. package/dist/client/assets/{Zap-aTbgq59l.js → Zap-BLaVFWQx.js} +1 -1
  31. package/dist/client/assets/{access-gate-CpAtBb_h.js → access-gate-BJSZ7nU5.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-BFqv_pWT.js → add-connection-dialog-Dpu5ecJP.js} +1 -1
  33. package/dist/client/assets/agent-app-CHKycGm0.js +1 -0
  34. package/dist/client/assets/agent-assets-7nArEuts.js +1 -0
  35. package/dist/client/assets/{agent-automation-7-KjK-1c.js → agent-automation-Dq1UMpQM.js} +3 -3
  36. package/dist/client/assets/{agent-automations-DnNwxwTt.js → agent-automations-DF3vcb3-.js} +1 -1
  37. package/dist/client/assets/agent-calendar-CsvxRBRw.js +1 -0
  38. package/dist/client/assets/agent-capabilities-CaXbVMop.js +1 -0
  39. package/dist/client/assets/{agent-connect-sources-SuTyB8Qe.js → agent-connect-sources-84FLUgzX.js} +1 -1
  40. package/dist/client/assets/agent-deck-DEx4qeYv.js +1 -0
  41. package/dist/client/assets/agent-e2e-CfTkWgUa.js +1 -0
  42. package/dist/client/assets/agent-experiments-BMy2QOPP.js +1 -0
  43. package/dist/client/assets/agent-file-C7mhhKFK.js +1 -0
  44. package/dist/client/assets/agent-hosting-BmtgVBqV.js +1 -0
  45. package/dist/client/assets/{agent-icon-DD6O0sln.js → agent-icon-U2nlXoBG.js} +1 -1
  46. package/dist/client/assets/agent-library-DIxeSWXa.js +1 -0
  47. package/dist/client/assets/agent-library-file-DQB6i5_0.js +1 -0
  48. package/dist/client/assets/agent-overview-D8ZTdoEM.js +1 -0
  49. package/dist/client/assets/agent-releases-DOPovy0S.js +2 -0
  50. package/dist/client/assets/agent-settings-x3yUV6x9.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-YGSo4JHf.js → agent-site-editor-Pg_WHlnv.js} +2 -2
  52. package/dist/client/assets/agent-site-editor-code-DDscaXHP.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-CBj6Azpl.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-Doqukvwz.js +1 -0
  55. package/dist/client/assets/agent-view-CvpQlU18.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-Ud9RVhUT.js → agent-view-guard-BFnkZyhp.js} +1 -1
  57. package/dist/client/assets/{ai-providers-CdWvTe6E.js → ai-providers-tFJSU00y.js} +1 -1
  58. package/dist/client/assets/{alert-rSlkmSpl.js → alert-B52lXsYB.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-CdJGMHGj.js → analytics-sections-DgZGw207.js} +1 -1
  60. package/dist/client/assets/api-keys-BEFmsf3L.js +1 -0
  61. package/dist/client/assets/{api-keys-CgV7T2W3.js → api-keys-Bc1E8umo.js} +1 -1
  62. package/dist/client/assets/app-editor-a13s_yZZ.js +1 -0
  63. package/dist/client/assets/{asset-utils-DJaTbmOK.js → asset-utils-DxOK6Cj3.js} +1 -1
  64. package/dist/client/assets/{auth-Dfx2bf9S.js → auth-D991fBKg.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-BzI646tE.js → auth-catchall-CO4eQSBG.js} +1 -1
  66. package/dist/client/assets/{auth-entry-BA2dv7O1.js → auth-entry-IOobChfY.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-3t1_TKos.js → auth-split-layout-Dn_4EroD.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-EuyAX3Gy.js → authenticate-and-persist-oauth-CM3iiCDW.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-BK5XD6ZY.js → automation-list-row-sEGCpgiC.js} +1 -1
  70. package/dist/client/assets/{automation-runs-BekfbsHI.js → automation-runs-DnhCJL7r.js} +1 -1
  71. package/dist/client/assets/{automations-ocOVuWpR.js → automations-BopJHgke.js} +1 -1
  72. package/dist/client/assets/{autosend-BLYIlkXq.js → autosend-D6GGYoeu.js} +1 -1
  73. package/dist/client/assets/{badge-9UZ-oy57.js → badge-C9w1KAGQ.js} +1 -1
  74. package/dist/client/assets/{block-document-B5Xpou_B.js → block-document-ExA3sDvi.js} +2 -2
  75. package/dist/client/assets/{blocks-preview-workspace-context-CGoI0EUn.js → blocks-preview-workspace-context-Gbv7_zq8.js} +1 -1
  76. package/dist/client/assets/blocks-tab-states-oXZbJa9b.js +1 -0
  77. package/dist/client/assets/{blog-schema-DMB79fe6.js → blog-schema-4OEvCOpU.js} +1 -1
  78. package/dist/client/assets/{buckets-C5e8GKB5.js → buckets-DsGf5D8D.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-aExDV9Mz.js → build-improve-prompt-doc-BpZBupFA.js} +1 -1
  80. package/dist/client/assets/{calendar-CKcdkgh5.js → calendar-ahGH-Iwe.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-D8AT7eAw.js → capability-load-error-BG7LprlO.js} +1 -1
  82. package/dist/client/assets/category-editor-Ctbp0oQy.js +1 -0
  83. package/dist/client/assets/{chart-Ch4wXn1G.js → chart-DnblhNHq.js} +1 -1
  84. package/dist/client/assets/{chat-context-tsaqCp6v.js → chat-context-CCj5lauv.js} +2 -2
  85. package/dist/client/assets/{chat-draft-DeOYn8wH.js → chat-draft-BtMWyLm7.js} +1 -1
  86. package/dist/client/assets/{checkbox-bO8ZnM7n.js → checkbox-DB14k3TQ.js} +1 -1
  87. package/dist/client/assets/{choose-editor-B-1DX2pl.js → choose-editor-D4zx1UJt.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-WUcj8Laj.js → cli-auth-success-DeaH4VUx.js} +1 -1
  89. package/dist/client/assets/{client-icons-CJKwmsS5.js → client-icons-C4W9Kqhd.js} +1 -1
  90. package/dist/client/assets/cms-settings-editor-CcuLaEnU.js +1 -0
  91. package/dist/client/assets/cms-store-drafts-BumH78UY.js +1 -0
  92. package/dist/client/assets/{collapsible-CehJ-xlR.js → collapsible-BPEhSNLz.js} +1 -1
  93. package/dist/client/assets/{collection-detail-w7NYTWNb.js → collection-detail-ralZDDkv.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-CVOVdzmi.js → collection-display-button-CigTGx80.js} +1 -1
  95. package/dist/client/assets/{collection-search-Lm88VC-w.js → collection-search-D_oD-yY0.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-LUTykEyP.js → collection-table-wrapper-C2dK4p_4.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-BW9NTpao.js → collection-tabs-SAUXvS4g.js} +1 -1
  98. package/dist/client/assets/{combobox-C8IS_aP5.js → combobox-hVgdYGtQ.js} +1 -1
  99. package/dist/client/assets/{command-B42vqDSm.js → command-DiccrIM8.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-gN7svOR8.js → companion-mcps-section-BUEyDlWy.js} +1 -1
  101. package/dist/client/assets/{config--cZAprAj.js → config-DgUlbPLE.js} +1 -1
  102. package/dist/client/assets/{connect-BAZtz6qy.js → connect-DhpQ_i5Y.js} +3 -3
  103. package/dist/client/assets/{connect-layout-FGHNVpHc.js → connect-layout-Dgb_j_Nn.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-BlacChCY.js → connect-source-dialog-Dga8Dh15.js} +1 -1
  105. package/dist/client/assets/{connection-Brtus8mh.js → connection-DF20RpK_.js} +1 -1
  106. package/dist/client/assets/{connection-card-CSkWTxJN.js → connection-card-DeCnJCAi.js} +1 -1
  107. package/dist/client/assets/{connection-detail-Dz92Js40.js → connection-detail-Dn5XmXHk.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-CQaJSXmJ.js → connection-form-helpers-B4MG2Fy2.js} +1 -1
  109. package/dist/client/assets/{connection-slug-DREkgXeA.js → connection-slug-tS8GnOSc.js} +1 -1
  110. package/dist/client/assets/{connections-BZUJ_roU.js → connections-DREB4U2P.js} +1 -1
  111. package/dist/client/assets/{content-tab-Bc_Tg1a4.js → content-tab-kF-GtTU9.js} +8 -8
  112. package/dist/client/assets/context-Gpy7m9cw.js +1 -0
  113. package/dist/client/assets/{context-menu-D-JkcRvL.js → context-menu-vUs3I8Wh.js} +1 -1
  114. package/dist/client/assets/{context-shell-Bwve3xDx.js → context-shell-vU2YMH1K.js} +3 -3
  115. package/dist/client/assets/{core.esm-ByTukYOF.js → core.esm-CWyzckxm.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-BIe1f-Sz.js → create-organization-dialog-qsB5dfrW.js} +1 -1
  117. package/dist/client/assets/device-hint-DMMaEP-p.js +1 -0
  118. package/dist/client/assets/{discover-D050EtE3.js → discover-DN-I6i-O.js} +1 -1
  119. package/dist/client/assets/{domain-settings-DPbJEdjs.js → domain-settings-FZeIPnhT.js} +1 -1
  120. package/dist/client/assets/{drawer-Dijofbhl.js → drawer-CMTReHxa.js} +1 -1
  121. package/dist/client/assets/{editor-BODVgWYK.js → editor-C6CE2FNQ.js} +1 -1
  122. package/dist/client/assets/{editor-classes-BdpfcKyR.js → editor-classes-DbMPYB4Z.js} +1 -1
  123. package/dist/client/assets/{empty-state-Drt9QRbX.js → empty-state-DF9St1T6.js} +1 -1
  124. package/dist/client/assets/{empty-state-CwfRxt_B.js → empty-state-ovRL7NEK.js} +1 -1
  125. package/dist/client/assets/experiments-tab-choice-BXlwzycK.js +1 -0
  126. package/dist/client/assets/{extract-connection-data-Pe-Tip3g.js → extract-connection-data-Q1k0ncm3.js} +1 -1
  127. package/dist/client/assets/{feature-gate-2Z3FyCIy.js → feature-gate-DKF86Lcy.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-CpM-erQe.js → feature-paywall-BoU9TII8.js} +1 -1
  129. package/dist/client/assets/{feedback-DcWPFhR_.js → feedback-f3MT17uD.js} +1 -1
  130. package/dist/client/assets/{file-explorer-xWdf34ip.js → file-explorer-DmvPCizi.js} +2 -2
  131. package/dist/client/assets/{file-preview-Ca_4k6rv.js → file-preview-aD0sVwV5.js} +1 -1
  132. package/dist/client/assets/{file-share-button-DgOCZ5mM.js → file-share-button-agT85qGG.js} +2 -2
  133. package/dist/client/assets/{file-type-icon-DiS0iV28.js → file-type-icon-CflTIvHJ.js} +1 -1
  134. package/dist/client/assets/{folder-icon-swAD3bQU.js → folder-icon-BKhbsJwX.js} +1 -1
  135. package/dist/client/assets/{form-CRja9i9j.js → form-B_3ZthF3.js} +1 -1
  136. package/dist/client/assets/{general-C7SfdAAF.js → general-BdjsCK2j.js} +1 -1
  137. package/dist/client/assets/{github-icon-tpEVyIwD.js → github-icon-M-2WiP3Y.js} +1 -1
  138. package/dist/client/assets/home-dTYjLEfm.js +1 -0
  139. package/dist/client/assets/{home-overview-CMI03yPH.js → home-overview-BAVfF6qS.js} +1 -1
  140. package/dist/client/assets/hosted-reconcile-B3o4dv7j.js +1 -0
  141. package/dist/client/assets/{icon-button-BZ9f2Pt9.js → icon-button-DQuPTgIB.js} +1 -1
  142. package/dist/client/assets/{index-Z8XjhDCo.js → index-0kopV6YP.js} +2 -2
  143. package/dist/client/assets/{index-68Cr2r1N.js → index-2bmOBUEF.js} +1 -1
  144. package/dist/client/assets/{index-LnWr599j.js → index-BM0DSfBG.js} +1 -1
  145. package/dist/client/assets/{index-Cvc22Qvh.js → index-BZX-7ipZ.js} +45 -45
  146. package/dist/client/assets/index-BlTJ0I-U.js +4 -0
  147. package/dist/client/assets/{index-C2wTYLQr.js → index-BvJNHE6H.js} +6 -6
  148. package/dist/client/assets/{index-CbuCRTrW.js → index-C2-s3ia2.js} +1 -1
  149. package/dist/client/assets/{index-CcZq_9Fb.js → index-C81DBcO6.js} +1 -1
  150. package/dist/client/assets/{index-BGom2FnM.js → index-Cjc_aSrk.js} +1 -1
  151. package/dist/client/assets/{index-Dw1u8oXT.js → index-D7Mi9FGh.js} +1 -1
  152. package/dist/client/assets/{index-Dt7ZIwRY.js → index-DHMhIfTt.js} +1 -1
  153. package/dist/client/assets/{index-D0G5dFqT.js → index-DT3lYd1R.js} +1 -1
  154. package/dist/client/assets/{index-CZXPJi4-.js → index-DzmcFP3y.js} +1 -1
  155. package/dist/client/assets/index-SmuiYnIl.css +1 -0
  156. package/dist/client/assets/{index-DQAtcq3Z.js → index-cmF_qGuq.js} +1 -1
  157. package/dist/client/assets/{index-BW7-bbk0.js → index-iezPx7cK.js} +1 -1
  158. package/dist/client/assets/index-mtR249ru.js +1 -0
  159. package/dist/client/assets/{index-redirect-PbFd_QHU.js → index-redirect-ay83YA5a.js} +1 -1
  160. package/dist/client/assets/{infiniteQueryObserver-CmujZk55.js → infiniteQueryObserver-CQGSlzKO.js} +1 -1
  161. package/dist/client/assets/{infra-billing-BlZrBUYP.js → infra-billing-DUjivW_p.js} +1 -1
  162. package/dist/client/assets/{input-D6ZRMHIB.js → input-3OyhKW_c.js} +1 -1
  163. package/dist/client/assets/input-CcFFY__7.js +17 -0
  164. package/dist/client/assets/{integration-icon-DMt85Vdd.js → integration-icon-Btk7lWbK.js} +1 -1
  165. package/dist/client/assets/{jira-icon-C0C7R9Uf.js → jira-icon-TeK8CaRV.js} +1 -1
  166. package/dist/client/assets/{label-RB5C5N6z.js → label-BGCn7A0y.js} +1 -1
  167. package/dist/client/assets/{layout-CBfnb3CZ.js → layout-XVKa9Y6f.js} +1 -1
  168. package/dist/client/assets/{legacy-agents-deep-zWqSTSjP.js → legacy-agents-deep-DksTbOzF.js} +1 -1
  169. package/dist/client/assets/{legacy-main-redirect-BZlpoESe.js → legacy-main-redirect-8kA2UC85.js} +1 -1
  170. package/dist/client/assets/library-O1-Gs4qz.js +1 -0
  171. package/dist/client/assets/{library-tab-C7gKe5iN.js → library-tab-DJKD7rUC.js} +3 -3
  172. package/dist/client/assets/{login-D9zRzHBo.js → login-CH5yud2M.js} +1 -1
  173. package/dist/client/assets/{markdown-HhU9_nSI.js → markdown-B6eeRWQb.js} +1 -1
  174. package/dist/client/assets/{mcp-app-renderer-DeLjk14w.js → mcp-app-renderer-DwuRGgZk.js} +1 -1
  175. package/dist/client/assets/{mcp-oauth-DLwsgkOm.js → mcp-oauth-BvqIKSqR.js} +1 -1
  176. package/dist/client/assets/{mcp-oauth-C-i6IZ7F.js → mcp-oauth-Bz1Lo9Pk.js} +1 -1
  177. package/dist/client/assets/{members-DocomT72.js → members-FYjquUkN.js} +1 -1
  178. package/dist/client/assets/{memory-BP3-K3oo.js → memory-CoUl94G3.js} +1 -1
  179. package/dist/client/assets/{mock-board-CoWf0eSd.js → mock-board-DvOE8ZQh.js} +4 -4
  180. package/dist/client/assets/{monaco-editor-oUmtqDLR.js → monaco-editor-vUgphdkE.js} +1 -1
  181. package/dist/client/assets/monitoring-UUQquQf7.js +2 -0
  182. package/dist/client/assets/{monitoring-stats-row-XSvwSWAi.js → monitoring-stats-row-BY92i-Bt.js} +1 -1
  183. package/dist/client/assets/{multi-select-CISJC82c.js → multi-select-9ieJQPsD.js} +1 -1
  184. package/dist/client/assets/mustache-CgF6ozKS.js +4 -0
  185. package/dist/client/assets/named-rule-view-CdhLqAy7.js +1 -0
  186. package/dist/client/assets/{new-project-dialog-BA0jmhgS.js → new-project-dialog-EK9WMEhp.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-C1NevZMJ.js → oauth-callback-Cuv6PAYs.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-ai-provider-BJwoy8qA.js → oauth-callback-ai-provider-BGc97raN.js} +1 -1
  189. package/dist/client/assets/{oauth-consent-BTT41r6l.js → oauth-consent-fGbsmdGY.js} +1 -1
  190. package/dist/client/assets/{onboarding-C2uIwwWY.js → onboarding-DF5AGUdi.js} +1 -1
  191. package/dist/client/assets/openai-conversation-CMIme_Ur.js +3 -0
  192. package/dist/client/assets/{optimistic-project-sidebar-views-BnUNFsLR.js → optimistic-project-sidebar-views-mQ0HUqGi.js} +1 -1
  193. package/dist/client/assets/{order-monitor-day-BzMajB7Y.js → order-monitor-day-BPx4Aihv.js} +1 -1
  194. package/dist/client/assets/{organization-choice-5ra3ZqkQ.js → organization-choice-KNGQur5O.js} +1 -1
  195. package/dist/client/assets/{orgs-ZeqGcjOU.js → orgs-C5Zlwg3I.js} +1 -1
  196. package/dist/client/assets/{own-accounts-section-Dd8ELrvu.js → own-accounts-section-C_F0-lzr.js} +1 -1
  197. package/dist/client/assets/{pair-Bx1LbJmC.js → pair-C5KKQk8r.js} +7 -7
  198. package/dist/client/assets/{parse-sections-BTDQNPKy.js → parse-sections-DE2O_vev.js} +7 -7
  199. package/dist/client/assets/{plan-bz8_rmrJ.js → plan-DdvgvWt2.js} +1 -1
  200. package/dist/client/assets/{plan-ladder-CZUMQESY.js → plan-ladder-BQ0gcfdF.js} +1 -1
  201. package/dist/client/assets/{plan-usage-card-SygAb3OS.js → plan-usage-card-8-3zMqsW.js} +2 -2
  202. package/dist/client/assets/{popover-D5YX99Kp.js → popover-CkuSZicN.js} +1 -1
  203. package/dist/client/assets/post-calendar-DVrcXuZq.js +1 -0
  204. package/dist/client/assets/{post-editor-BAf1z147.js → post-editor-CG6NXsGN.js} +2 -2
  205. package/dist/client/assets/{preview-content-TDEad-bh.js → preview-content-xRBU7B3O.js} +1 -1
  206. package/dist/client/assets/{preview-dialog-BkHpQdXG.js → preview-dialog-D36kXBk6.js} +1 -1
  207. package/dist/client/assets/{preview-panel-DduOnxXk.js → preview-panel-Cp7F1lqp.js} +1 -1
  208. package/dist/client/assets/preview-tab-Dn0RGnhj.js +551 -0
  209. package/dist/client/assets/{product-picker-dialog-DDkB9ByB.js → product-picker-dialog-C2KLekZA.js} +1 -1
  210. package/dist/client/assets/{profile-DHJVxDvo.js → profile-BfDfzRPA.js} +1 -1
  211. package/dist/client/assets/project-app-view-DVhAuH9N.js +1 -0
  212. package/dist/client/assets/project-apps-D47w7eJj.js +1 -0
  213. package/dist/client/assets/{project-icon-eZOGIGwj.js → project-icon-ofE-LDok.js} +1 -1
  214. package/dist/client/assets/{project-index-BSMjLbxc.js → project-index-PpuyCKHe.js} +1 -1
  215. package/dist/client/assets/project-reports-BuJS86vH.js +1 -0
  216. package/dist/client/assets/project-sidebar-views-Dew_3OKS.js +1 -0
  217. package/dist/client/assets/project-tasks-CZtVWSYo.js +1 -0
  218. package/dist/client/assets/{projects-D7HB1QKY.js → projects-Be7d593_.js} +1 -1
  219. package/dist/client/assets/{projects-empty-state-DBWek16Y.js → projects-empty-state-DpmH0sch.js} +1 -1
  220. package/dist/client/assets/{prompts-MMmII7eb.js → prompts-ClmMS_OK.js} +1 -1
  221. package/dist/client/assets/record-editor-OoLxSu9R.js +1 -0
  222. package/dist/client/assets/redirect-editor-W9B4A_h8.js +1 -0
  223. package/dist/client/assets/{reports-D0VzI1C_.js → reports-DCsJlho1.js} +1 -1
  224. package/dist/client/assets/{reports-onboarding-DonafHiF.js → reports-onboarding-CMTzWUTp.js} +1 -1
  225. package/dist/client/assets/reports-s2E9cwFc.js +1 -0
  226. package/dist/client/assets/{reports-tab-Wl9IyKm6.js → reports-tab-BKnG1JmX.js} +2 -2
  227. package/dist/client/assets/repositories-Dj2kaTIN.js +1 -0
  228. package/dist/client/assets/{repositories-9kTJbSW8.js → repositories-KlUH4dUR.js} +1 -1
  229. package/dist/client/assets/{repository-binding-B7A7NBUB.js → repository-binding-CqOunspI.js} +1 -1
  230. package/dist/client/assets/{repository-picker-CI7xSsin.js → repository-picker-DNdEQtlZ.js} +1 -1
  231. package/dist/client/assets/{require-capability-BTBUQsVM.js → require-capability-RYn3iksk.js} +1 -1
  232. package/dist/client/assets/{required-auth-layout-ClYF4eFR.js → required-auth-layout-Dfyc4Zas.js} +1 -1
  233. package/dist/client/assets/{reset-password-Ah3K7D-l.js → reset-password-CTGJ7V-t.js} +1 -1
  234. package/dist/client/assets/{resizable-DzzgKGKP.js → resizable-BCGqPRic.js} +1 -1
  235. package/dist/client/assets/resolve-tab-icon-BnqDq-fY.js +1 -0
  236. package/dist/client/assets/{review-settings-Fxdols3J.js → review-settings-DvoYyrmi.js} +1 -1
  237. package/dist/client/assets/{role-color-CEkb11P4.js → role-color-cUMHSMVi.js} +1 -1
  238. package/dist/client/assets/{roles-CqJ0hOtT.js → roles-x3B4vLKU.js} +1 -1
  239. package/dist/client/assets/route-PbputQp9.js +1 -0
  240. package/dist/client/assets/route-h-Fc_oVe.js +1 -0
  241. package/dist/client/assets/route-wINBwrny.js +1 -0
  242. package/dist/client/assets/sandbox-lifecycle-context-CXwLCWvJ.js +1 -0
  243. package/dist/client/assets/{schema-BH82js-o.js → schema-C1bLOk3P.js} +1 -1
  244. package/dist/client/assets/{schema-DHahXPsT.js → schema-DHLwjAWR.js} +1 -1
  245. package/dist/client/assets/{scroll-area-BN87AboJ.js → scroll-area-rELMi4e6.js} +1 -1
  246. package/dist/client/assets/{search-input-BBYghT-z.js → search-input-Crult1Qo.js} +1 -1
  247. package/dist/client/assets/{search-toggle-pLnMgrhP.js → search-toggle-DzMf9QP4.js} +1 -1
  248. package/dist/client/assets/{secret-picker-DWWFQJzg.js → secret-picker-CimF9dsx.js} +1 -1
  249. package/dist/client/assets/{secrets-CM4b3_qA.js → secrets-CZCnF6s4.js} +1 -1
  250. package/dist/client/assets/section-array-field-C3Tpx16b.js +1 -0
  251. package/dist/client/assets/{sections-CgO1w_IT.js → sections-346PcP2T.js} +1 -1
  252. package/dist/client/assets/sections-editor-DwV32_3f.js +1 -0
  253. package/dist/client/assets/{select-GzsOSPza.js → select-CwDmbwEv.js} +1 -1
  254. package/dist/client/assets/{select-model-BU2ssn1V.js → select-model-B1ocDBwF.js} +1 -1
  255. package/dist/client/assets/seo-editor-D1gGpMMF.js +1 -0
  256. package/dist/client/assets/{separator-CuwdHpjW.js → separator-C05SxAdn.js} +1 -1
  257. package/dist/client/assets/settings-tab-BImv5HgS.js +1 -0
  258. package/dist/client/assets/{sheet-BIQm-3An.js → sheet-BYgfxL9i.js} +1 -1
  259. package/dist/client/assets/{shell-layout-CH0j9rog.js → shell-layout-BvJfyzsq.js} +1 -1
  260. package/dist/client/assets/site-draft-actions-CgeV78uL.js +3 -0
  261. package/dist/client/assets/site-draft-view-Dkq2XweK.js +1 -0
  262. package/dist/client/assets/site-editor-B9ARkCiN.js +1 -0
  263. package/dist/client/assets/site-editor-toast-D83gMpdg.js +1 -0
  264. package/dist/client/assets/{skills-C71x-yhC.js → skills-OVV2oEwU.js} +1 -1
  265. package/dist/client/assets/{slider-BTgIuWj6.js → slider-Ipy9G5jv.js} +1 -1
  266. package/dist/client/assets/{sortable.esm-Dd1EVaQb.js → sortable.esm-DgwAq-fn.js} +1 -1
  267. package/dist/client/assets/{sso-BfwIPTh8.js → sso-C9cutlah.js} +1 -1
  268. package/dist/client/assets/{suggestion-CsEyXKDY.js → suggestion-Dwy6qysF.js} +1 -1
  269. package/dist/client/assets/{switch-BRZA_xq0.js → switch-BLkpF22m.js} +1 -1
  270. package/dist/client/assets/{synced-repos-Do7bESqI.js → synced-repos-orJHnVxs.js} +1 -1
  271. package/dist/client/assets/{tab-icon-glyph-BsVyyg_A.js → tab-icon-glyph-Co1M723I.js} +1 -1
  272. package/dist/client/assets/{table-DJd8n4EY.js → table-DPFxRA7S.js} +1 -1
  273. package/dist/client/assets/{tabs-D5AMuciq.js → tabs--wmPR0cZ.js} +1 -1
  274. package/dist/client/assets/{task-board-DN88kD7h.js → task-board-DJtwkz3O.js} +1 -1
  275. package/dist/client/assets/{task-route-4C0M-4XY.js → task-route-vCMrJPp9.js} +1 -1
  276. package/dist/client/assets/{task-status-B2JNuBbQ.js → task-status-msgu5x2s.js} +1 -1
  277. package/dist/client/assets/{taskboard-analytics-D_AXxVNg.js → taskboard-analytics-5nxg7YXN.js} +1 -1
  278. package/dist/client/assets/{tasks-dMEgvkta.js → tasks-DpWVcTLT.js} +1 -1
  279. package/dist/client/assets/tasks-hbXv3hSd.js +1 -0
  280. package/dist/client/assets/{textarea-D7HQlMVo.js → textarea-D5OF_Tld.js} +1 -1
  281. package/dist/client/assets/{thread-analytics-BQjHh_yV.js → thread-analytics-CVsji2MZ.js} +1 -1
  282. package/dist/client/assets/{thread-intent-Bs-Q7fma.js → thread-intent-DIce2mks.js} +2 -2
  283. package/dist/client/assets/{thread-route-C-uX4C4C.js → thread-route-CGqDFJ1K.js} +1 -1
  284. package/dist/client/assets/{thread-route-B44higRI.js → thread-route-CP2TR6nw.js} +1 -1
  285. package/dist/client/assets/{thread-sheet-body-BNo76_XD.js → thread-sheet-body-Cba15kJF.js} +1 -1
  286. package/dist/client/assets/{time-range-picker-D4sglVBw.js → time-range-picker-OdWLHy9U.js} +1 -1
  287. package/dist/client/assets/{toggle-group-BBgjmF6C.js → toggle-group-DbLOGwe7.js} +1 -1
  288. package/dist/client/assets/{tool-namespace-l4eN7YZ5.js → tool-namespace-BQhkJpu9.js} +1 -1
  289. package/dist/client/assets/{tool-set-selector-Bi-Sw2KD.js → tool-set-selector-BmAnaEsw.js} +1 -1
  290. package/dist/client/assets/{toolbar-icon-button-nrUHQe-I.js → toolbar-icon-button-BzIcnxXk.js} +1 -1
  291. package/dist/client/assets/{tooltip-C0GWPsi8.js → tooltip--uPFG1gb.js} +1 -1
  292. package/dist/client/assets/{tooltipContext-DdEokZtY.js → tooltipContext-C8ArdkXW.js} +1 -1
  293. package/dist/client/assets/{track-29FVOdFL.js → track-Bb4064-s.js} +1 -1
  294. package/dist/client/assets/{types-DKuFfsqr.js → types-EjHtXl5u.js} +1 -1
  295. package/dist/client/assets/{url-slug-5t39ocbn.js → url-slug-rCJqhuIp.js} +1 -1
  296. package/dist/client/assets/{usage-stats-CHeI7dPd.js → usage-stats-DaOtdhEm.js} +2 -2
  297. package/dist/client/assets/{use-ai-providers-BbVlPdZd.js → use-ai-providers-C5rCFpU_.js} +1 -1
  298. package/dist/client/assets/{use-apply-named-rule-CnOcORn0.js → use-apply-named-rule-zZmpVvRd.js} +1 -1
  299. package/dist/client/assets/use-ask-in-chat-BaG9i0zc.js +1 -0
  300. package/dist/client/assets/{use-automations-BoyfX_H0.js → use-automations-CI7vvUzE.js} +1 -1
  301. package/dist/client/assets/{use-autosave-CZD-Fkyk.js → use-autosave-DUBcsRSH.js} +1 -1
  302. package/dist/client/assets/use-blocks-v8-project-CXrKL60y.js +1 -0
  303. package/dist/client/assets/{use-chat-layout-state-BC5WrKKn.js → use-chat-layout-state-CZaSk8YF.js} +1 -1
  304. package/dist/client/assets/{use-cms-publish-actions-BbDVRUuf.js → use-cms-publish-actions-BV2nwL3g.js} +5 -5
  305. package/dist/client/assets/{use-connect-companion-DEAJWvqA.js → use-connect-companion-DC6UOpxV.js} +1 -1
  306. package/dist/client/assets/{use-connection-Dqyf1wn8.js → use-connection-BEb786wf.js} +1 -1
  307. package/dist/client/assets/{use-content-sync-vr73v2b2.js → use-content-sync-CtHfpBJp.js} +1 -1
  308. package/dist/client/assets/{use-copy-BGfQrJIh.js → use-copy-DccRTYvG.js} +1 -1
  309. package/dist/client/assets/{use-date-fns-locale-C4jbLuwI.js → use-date-fns-locale-DD1YxYKP.js} +1 -1
  310. package/dist/client/assets/{use-debounced-autosave-BrjHHNNB.js → use-debounced-autosave-clO2CzWE.js} +1 -1
  311. package/dist/client/assets/{use-debounced-value-BF84eZeF.js → use-debounced-value-CJpdUTvG.js} +1 -1
  312. package/dist/client/assets/{use-deco-credits-MCc3vHir.js → use-deco-credits-DtE2LNZs.js} +1 -1
  313. package/dist/client/assets/{use-decopilot-events-uSeDcfUe.js → use-decopilot-events-DxBT3zOC.js} +1 -1
  314. package/dist/client/assets/{use-delete-connection-CLe-XFxn.js → use-delete-connection-COvFjvtJ.js} +1 -1
  315. package/dist/client/assets/{use-deployment-admin-ShnoFTNr.js → use-deployment-admin-BSEuekHe.js} +1 -1
  316. package/dist/client/assets/{use-entitlements-wE65MYfi.js → use-entitlements-CWXMyUT0.js} +1 -1
  317. package/dist/client/assets/use-fast-preview-draft-url-BCmBxVQg.js +1 -0
  318. package/dist/client/assets/{use-file-configs-D9BR1kJU.js → use-file-configs-DsyBYIJw.js} +1 -1
  319. package/dist/client/assets/{use-id-selection-BcfcmGZl.js → use-id-selection-6CmUdc1s.js} +1 -1
  320. package/dist/client/assets/{use-inbox-feed-EYADn16y.js → use-inbox-feed-okLCp4Pp.js} +1 -1
  321. package/dist/client/assets/{use-infinite-scroll-Ds1Wd1cw.js → use-infinite-scroll-4e7tB3Vz.js} +1 -1
  322. package/dist/client/assets/{use-join-requests-CkWiAH0i.js → use-join-requests-muPMmn0O.js} +1 -1
  323. package/dist/client/assets/use-main-panel-tabs-BcP_qZl8.js +1 -0
  324. package/dist/client/assets/use-mcp-auth-status-D_TqnxnH.js +1 -0
  325. package/dist/client/assets/{use-mcp-client-BfCmeMHR.js → use-mcp-client-CrdyqnFt.js} +1 -1
  326. package/dist/client/assets/{use-mcp-prompts-DoojBZhS.js → use-mcp-prompts-C3SHzM_d.js} +1 -1
  327. package/dist/client/assets/{use-mcp-tools-DwTtnjNb.js → use-mcp-tools-DQIJMlw-.js} +1 -1
  328. package/dist/client/assets/{use-mobile-C1stVK0E.js → use-mobile-BDWitdax.js} +1 -1
  329. package/dist/client/assets/use-move-blocks-B48xFUbp.js +1 -0
  330. package/dist/client/assets/{use-navigate-to-agent-D2d0cpFU.js → use-navigate-to-agent-C3sX18jI.js} +1 -1
  331. package/dist/client/assets/{use-org-fs-DHnEDbF9.js → use-org-fs-BRERSVus.js} +1 -1
  332. package/dist/client/assets/{use-org-repo-syncs-CcoLGdUP.js → use-org-repo-syncs-BFFdo3jR.js} +1 -1
  333. package/dist/client/assets/{use-org-sso-d82WgyRM.js → use-org-sso-BHDTii7j.js} +1 -1
  334. package/dist/client/assets/{use-organization-settings-a6mUKPHv.js → use-organization-settings-DPCrcu8e.js} +1 -1
  335. package/dist/client/assets/{use-project-scope-C0EKXyqg.js → use-project-scope-k7OaKjIm.js} +1 -1
  336. package/dist/client/assets/{use-recent-apps-DEMyNf2W.js → use-recent-apps-Buo9cWvj.js} +1 -1
  337. package/dist/client/assets/{use-reports-diagnostic-rjeHGSYu.js → use-reports-diagnostic-B1lbI319.js} +1 -1
  338. package/dist/client/assets/use-sandbox-events-BRJYKM54.js +2 -0
  339. package/dist/client/assets/{use-secrets-CifnNbah.js → use-secrets-DlNiP0j4.js} +1 -1
  340. package/dist/client/assets/use-section-preview-base-CL9U3MEc.js +1 -0
  341. package/dist/client/assets/use-sidebar-collapsed-ByMTBVZc.js +1 -0
  342. package/dist/client/assets/{use-tags-CgXVAtG9.js → use-tags-CcJayzHf.js} +1 -1
  343. package/dist/client/assets/{use-task-board-analytics-BTZNDNnK.js → use-task-board-analytics-0-6_3j_2.js} +1 -1
  344. package/dist/client/assets/{use-task-board-events-DCguN7A5.js → use-task-board-events-CzDIUBok.js} +1 -1
  345. package/dist/client/assets/{use-task-board-item-prs-CnqmEndd.js → use-task-board-item-prs-DbHC-4Ry.js} +1 -1
  346. package/dist/client/assets/{use-task-board-items-BmpaMZkF.js → use-task-board-items-COxHF7_K.js} +1 -1
  347. package/dist/client/assets/{use-task-board-prompts-DdSO4gLi.js → use-task-board-prompts-CKi9j8wF.js} +1 -1
  348. package/dist/client/assets/{use-task-metadata-D3xqf4sH.js → use-task-metadata-BxcNhivS.js} +1 -1
  349. package/dist/client/assets/{use-thread-outputs-D6sQTVJo.js → use-thread-outputs-lMVF4bT2.js} +1 -1
  350. package/dist/client/assets/use-voice-input-DsJxHyTh.js +1 -0
  351. package/dist/client/assets/useInfiniteQuery-B313haH3.js +1 -0
  352. package/dist/client/assets/{useQueries-BuMODvFG.js → useQueries-BO8pZ9q-.js} +1 -1
  353. package/dist/client/assets/useSuspenseInfiniteQuery-07GrICuv.js +1 -0
  354. package/dist/client/assets/{users-Ct3PwBMT.js → users-DCPPe9Uo.js} +1 -1
  355. package/dist/client/assets/{utils-DA49HMaO.js → utils-D0xixM8q.js} +3 -3
  356. package/dist/client/assets/{variant-calendar-CPtUMCAS.js → variant-calendar-C5r0ak32.js} +1 -1
  357. package/dist/client/assets/{variant-matcher-override-DnlLYEoa.js → variant-matcher-override-QQd3tA7f.js} +1 -1
  358. package/dist/client/assets/{view-header-CAO18iqy.js → view-header-BPAnt0vh.js} +1 -1
  359. package/dist/client/assets/{virtual-mcp-C4mAz3N8.js → virtual-mcp-Dzr3mFmO.js} +1 -1
  360. package/dist/client/assets/{watch-sse-pool-BI4P-Lkx.js → watch-sse-pool-j0K-nQ0i.js} +1 -1
  361. package/dist/client/index.html +2 -2
  362. package/dist/server/server.js +464 -464
  363. package/package.json +1 -1
  364. package/dist/client/assets/ReferenceLine-DEAQfOjW.js +0 -1
  365. package/dist/client/assets/agent-app-ZW_Vm-c7.js +0 -1
  366. package/dist/client/assets/agent-assets-kQe7VufN.js +0 -1
  367. package/dist/client/assets/agent-calendar-CbAiDaBT.js +0 -1
  368. package/dist/client/assets/agent-capabilities-DKq2l6j_.js +0 -1
  369. package/dist/client/assets/agent-deck-8VVMhl7J.js +0 -1
  370. package/dist/client/assets/agent-e2e-C9FJgu1a.js +0 -1
  371. package/dist/client/assets/agent-file-D5ZobkO7.js +0 -1
  372. package/dist/client/assets/agent-hosting-Df5G-pNf.js +0 -1
  373. package/dist/client/assets/agent-library-C_HTRhOS.js +0 -1
  374. package/dist/client/assets/agent-library-file-8gKy0Im-.js +0 -1
  375. package/dist/client/assets/agent-overview-CSsPaJjm.js +0 -1
  376. package/dist/client/assets/agent-releases-6IDVzk1I.js +0 -2
  377. package/dist/client/assets/agent-settings-uWS3yWiw.js +0 -1
  378. package/dist/client/assets/agent-site-editor-code-wtgSW_Bw.js +0 -2
  379. package/dist/client/assets/agent-site-editor-content-BC5jgNMj.js +0 -1
  380. package/dist/client/assets/agent-site-editor-preview-Dd0H-yKP.js +0 -1
  381. package/dist/client/assets/agent-view-C4jCWfsN.js +0 -1
  382. package/dist/client/assets/api-keys-CmWPTVBS.js +0 -1
  383. package/dist/client/assets/app-editor-DQrUb2qq.js +0 -1
  384. package/dist/client/assets/blocks-tab-states-CNkB95lx.js +0 -1
  385. package/dist/client/assets/category-editor-DDFXYf_d.js +0 -1
  386. package/dist/client/assets/cms-settings-editor-CL1HXF3j.js +0 -1
  387. package/dist/client/assets/cms-store-drafts-C_ZG08jQ.js +0 -1
  388. package/dist/client/assets/context-2NK4t-Lg.js +0 -1
  389. package/dist/client/assets/device-hint-Djy4F7LR.js +0 -1
  390. package/dist/client/assets/home-DsrjQvGT.js +0 -1
  391. package/dist/client/assets/hosted-reconcile-BnVn2LVL.js +0 -1
  392. package/dist/client/assets/index-B8Pa92mK.js +0 -4
  393. package/dist/client/assets/index-D-DRzVEB.js +0 -2
  394. package/dist/client/assets/index-ug7KC70Z.css +0 -1
  395. package/dist/client/assets/input-C7_FCkgY.js +0 -17
  396. package/dist/client/assets/library-pMQg4GCR.js +0 -1
  397. package/dist/client/assets/monitoring-DKfNSCeR.js +0 -2
  398. package/dist/client/assets/mustache-D4zVU9iA.js +0 -4
  399. package/dist/client/assets/named-rule-view-BTwHmZ5L.js +0 -1
  400. package/dist/client/assets/openai-conversation-pUSF1vof.js +0 -3
  401. package/dist/client/assets/post-calendar-BIBU13NF.js +0 -1
  402. package/dist/client/assets/preview-tab-Cgfndmyh.js +0 -551
  403. package/dist/client/assets/project-app-view-BfcPf6du.js +0 -1
  404. package/dist/client/assets/project-apps-Bny6_T2A.js +0 -1
  405. package/dist/client/assets/project-reports-BzA8d8hO.js +0 -1
  406. package/dist/client/assets/project-sidebar-views-CrRbPbLq.js +0 -1
  407. package/dist/client/assets/project-tasks-BCE2SgoF.js +0 -1
  408. package/dist/client/assets/record-editor-DVouiUmR.js +0 -1
  409. package/dist/client/assets/redirect-editor-cm3-huyu.js +0 -1
  410. package/dist/client/assets/reports-BHAVwnBG.js +0 -1
  411. package/dist/client/assets/repositories-bPxFm30V.js +0 -1
  412. package/dist/client/assets/resolve-tab-icon-DMbVCUvi.js +0 -1
  413. package/dist/client/assets/route-BA7jjOjA.js +0 -1
  414. package/dist/client/assets/route-DGCMYgfH.js +0 -1
  415. package/dist/client/assets/route-DJbiUXJl.js +0 -1
  416. package/dist/client/assets/sandbox-lifecycle-context-WaQV2LhH.js +0 -1
  417. package/dist/client/assets/sections-editor-Uk83RbMN.js +0 -1
  418. package/dist/client/assets/seo-editor-dMXY0ofk.js +0 -1
  419. package/dist/client/assets/settings-tab-FvtSSyQC.js +0 -1
  420. package/dist/client/assets/site-draft-view-C74WkBDm.js +0 -3
  421. package/dist/client/assets/site-editor-CazX9Ijc.js +0 -1
  422. package/dist/client/assets/site-editor-toast-DrW9VMK5.js +0 -1
  423. package/dist/client/assets/tasks-BlrmxtrG.js +0 -1
  424. package/dist/client/assets/use-ask-in-chat-Cp_wqFIx.js +0 -1
  425. package/dist/client/assets/use-fast-preview-draft-url-BmUgrEyk.js +0 -1
  426. package/dist/client/assets/use-main-panel-tabs-DTMcBtUc.js +0 -1
  427. package/dist/client/assets/use-mcp-auth-status-DhFx8XVQ.js +0 -1
  428. package/dist/client/assets/use-move-blocks-Bclcq-Qe.js +0 -1
  429. package/dist/client/assets/use-section-preview-base-SkN8HQaB.js +0 -1
  430. package/dist/client/assets/use-sidebar-collapsed-DwcGl0-e.js +0 -1
  431. package/dist/client/assets/useInfiniteQuery-P9--kf7E.js +0 -1
  432. package/dist/client/assets/useSuspenseInfiniteQuery-C2ZhOGvp.js +0 -1
@@ -1 +1 @@
1
- import{c as D,b as J,e as Je,j as s,B as z,t as qe,o as ot,cV as ae,ag as kt,a as Me,M as Yt,V as Nt,K as Ve,cW as _t,cX as Pt,at as Ge,m as mt,b9 as Qt,C as ft,r as G,ae as Xt,af as ee,cY as Zt,w as At,x as It,v as Ct,D as Et,d as Ot,a5 as dt,T as $t,i as Be,E as rt,aS as Lt,cZ as en,aY as tn,b3 as ht,J as nn,c_ as sn,aT as on,y as an,c$ as rn,d0 as ln,d1 as cn,d2 as dn,d3 as un,a6 as mn,u as fn,a7 as hn,d4 as gn,d5 as pn,l as Dt,d6 as gt,d7 as yn,O as bn,a_ as pt,d8 as xn,a0 as wn}from"./index-Cvc22Qvh.js";import{t as Rt}from"./Globe04-BLpPYUUd.js";import{i as Sn,s as Z}from"./UserSquare-T5uOviXx.js";import{u as vn}from"./use-deployment-admin-ShnoFTNr.js";import{a as jn}from"./admin-fetch-BhTJlAsX.js";import{av as Tn,R as kn,E as at,a6 as Nn,G as _n,aw as Pn,n as yt,h as An,ax as In,m as Cn,ay as En,az as On}from"./agent-icon-DD6O0sln.js";import{s as $n}from"./XClose-NmocES7U.js";import{u as Ln,a as Dn}from"./use-project-scope-C0EKXyqg.js";import{u as zt,a as Rn,A as zn}from"./autosend-BLYIlkXq.js";import{i as se}from"./CheckCircle-Dycaqr3_.js";import{i as bt}from"./Monitor01-PjSuNm4O.js";import{i as Fe}from"./Zap-aTbgq59l.js";import{s as xt}from"./Plus-Caq968Zm.js";import{a as Fn}from"./Tool01-GdBdG6P_.js";import{b as ne,e as Ke,d as qn,a as Mn,c as Bn,C as Kn}from"./command-B42vqDSm.js";import{I as Hn}from"./integration-icon-DMt85Vdd.js";import{P as Un}from"./project-icon-eZOGIGwj.js";import{a as Jn}from"./use-navigate-to-agent-D2d0cpFU.js";import{a as Gn,m as Vn}from"./use-mcp-client-BfCmeMHR.js";import{u as Wn,a as Yn,n as Qn}from"./new-project-dialog-BA0jmhgS.js";import{S as Xn,u as Zn}from"./thread-intent-Bs-Q7fma.js";import{R as es}from"./required-auth-layout-ClYF4eFR.js";import{u as ts,a as ns,b as ss,c as os}from"./thread-route-B44higRI.js";import{u as is}from"./use-org-sso-d82WgyRM.js";function as(t){const e=D.c(49),{orgName:n,orgSlug:a,orgLogo:o,domain:r}=t,i=J();let c;e[0]!==a||e[1]!==i?(c=async()=>{const _=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),I=await _.json();if(!_.ok||!I.success)throw new Error(I.error??i("common.autoDomainJoinScreen.joinError"));return I},e[0]=a,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==a?(m=_=>{window.location.href=`/${_.slug??a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==i?(f=_=>{qe.error(_ instanceof Error?_.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y),p=rs;let l;e[11]!==o||e[12]!==n?(l=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=n,e[13]=l):l=e[13];let b;e[14]!==n||e[15]!==i?(b=i("common.autoDomainJoinScreen.joinPrompt",{orgName:n}),e[14]=n,e[15]=i,e[16]=b):b=e[16];let u;e[17]!==b?(u=s.jsx("h3",{className:"text-lg font-medium",children:b}),e[17]=b,e[18]=u):u=e[18];let g;e[19]!==r||e[20]!==i?(g=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=g):g=e[21];let h;e[22]!==g?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=h):h=e[23];let x;e[24]!==u||e[25]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[u,h]}),e[24]=u,e[25]=h,e[26]=x):x=e[26];let w;e[27]!==d?(w=()=>d.mutate(),e[27]=d,e[28]=w):w=e[28];let v;e[29]!==d.isPending||e[30]!==n||e[31]!==i?(v=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:n}),e[29]=d.isPending,e[30]=n,e[31]=i,e[32]=v):v=e[32];let S;e[33]!==d.isPending||e[34]!==w||e[35]!==v?(S=s.jsx(z,{onClick:w,disabled:d.isPending,children:v}),e[33]=d.isPending,e[34]=w,e[35]=v,e[36]=S):S=e[36];const k=d.isPending;let j;e[37]!==i?(j=i("common.goHome"),e[37]=i,e[38]=j):j=e[38];let T;e[39]!==d.isPending||e[40]!==j?(T=s.jsx(z,{variant:"ghost",onClick:p,disabled:k,children:j}),e[39]=d.isPending,e[40]=j,e[41]=T):T=e[41];let P;e[42]!==S||e[43]!==T?(P=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,T]}),e[42]=S,e[43]=T,e[44]=P):P=e[44];let N;return e[45]!==x||e[46]!==P||e[47]!==l?(N=s.jsxs(ae,{children:[l,x,P]}),e[45]=x,e[46]=P,e[47]=l,e[48]=N):N=e[48],N}function rs(){window.location.href="/"}function wt(t){const e=D.c(26),{orgSlug:n,orgId:a,orgName:o,reason:r}=t,i=J(),{isAdmin:c}=vn(),m=ls,f=r==="not-found",y=f?Sn:kt;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 p=d;let l;e[3]!==f||e[4]!==o||e[5]!==n||e[6]!==i?(l=f?s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",s.jsx("strong",{children:n}),"."]}):s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",s.jsx("strong",{children:o??n}),".",s.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=o,e[5]=n,e[6]=i,e[7]=l):l=e[7];const b=l;let u;e[8]!==y?(u=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(y,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=y,e[9]=u):u=e[9];let g;e[10]!==p?(g=s.jsx("h3",{className:"text-lg font-medium",children:p}),e[10]=p,e[11]=g):g=e[11];let h;e[12]!==b?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=h):h=e[13];let x;e[14]!==g||e[15]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[g,h]}),e[14]=g,e[15]=h,e[16]=x):x=e[16];let w;e[17]!==c||e[18]!==a||e[19]!==n||e[20]!==i?(w=c&&a?s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[s.jsx(cs,{orgId:a,orgSlug:n}),s.jsx(z,{variant:"ghost",onClick:m,children:i("common.goHome")})]}):s.jsx(z,{onClick:m,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=n,e[20]=i,e[21]=w):w=e[21];let v;return e[22]!==u||e[23]!==x||e[24]!==w?(v=s.jsxs(ae,{children:[u,x,w]}),e[22]=u,e[23]=x,e[24]=w,e[25]=v):v=e[25],v}function ls(){window.location.href="/"}function cs(t){const e=D.c(20),{orgId:n,orgSlug:a}=t,o=J(),{data:r}=Me.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==n?(c=()=>jn(`/api/_admin/orgs/${n}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=n,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]!==o?(f=g=>{qe.error(g instanceof Error?g.message:o("common.noAccessScreen.adminJoinFailed"))},e[5]=o,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y);let p;e[11]!==d?(p=()=>d.mutate(),e[11]=d,e[12]=p):p=e[12];const l=!i||d.isPending;let b;e[13]!==d.isPending||e[14]!==o?(b=d.isPending?o("common.noAccessScreen.adminJoining"):o("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=o,e[15]=b):b=e[15];let u;return e[16]!==p||e[17]!==l||e[18]!==b?(u=s.jsx(z,{onClick:p,disabled:l,children:b}),e[16]=p,e[17]=l,e[18]=b,e[19]=u):u=e[19],u}function ds(t){const e=D.c(59),{invitationId:n,orgName:a,orgSlug:o,orgLogo:r}=t,i=J();let c;e[0]!==n?(c=async()=>{const A=await Me.organization.acceptInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[0]=n,e[1]=c):c=e[1];let m;e[2]!==o?(m=()=>{Yt(),window.location.href=`/${o}`},e[2]=o,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 y;e[6]!==c||e[7]!==m||e[8]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[6]=c,e[7]=m,e[8]=f,e[9]=y):y=e[9];const d=Je(y);let p;e[10]!==n?(p=async()=>{const A=await Me.organization.rejectInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[10]=n,e[11]=p):p=e[11];let l,b;e[12]!==i?(l=()=>{qe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},b=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=b):(l=e[13],b=e[14]);let u;e[15]!==p||e[16]!==l||e[17]!==b?(u={mutationFn:p,onSuccess:l,onError:b},e[15]=p,e[16]=l,e[17]=b,e[18]=u):u=e[18];const g=Je(u),h=d.isPending||g.isPending;let x;e[19]!==r||e[20]!==a?(x=r?s.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Tn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=x):x=e[21];let w;e[22]!==a||e[23]!==i?(w=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=w):w=e[24];let v;e[25]!==w?(v=s.jsx("h3",{className:"text-lg font-medium",children:w}),e[25]=w,e[26]=v):v=e[26];let S;e[27]!==i?(S=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=S):S=e[28];let k;e[29]!==S?(k=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),e[29]=S,e[30]=k):k=e[30];let j;e[31]!==v||e[32]!==k?(j=s.jsxs("div",{className:"space-y-2",children:[v,k]}),e[31]=v,e[32]=k,e[33]=j):j=e[33];let T;e[34]!==d?(T=()=>d.mutate(),e[34]=d,e[35]=T):T=e[35];let P;e[36]!==d.isPending||e[37]!==i?(P=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=P):P=e[38];let N;e[39]!==h||e[40]!==T||e[41]!==P?(N=s.jsx(z,{onClick:T,disabled:h,children:P}),e[39]=h,e[40]=T,e[41]=P,e[42]=N):N=e[42];let _;e[43]!==g?(_=()=>g.mutate(),e[43]=g,e[44]=_):_=e[44];let I;e[45]!==g.isPending||e[46]!==i?(I=g.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=i,e[47]=I):I=e[47];let O;e[48]!==h||e[49]!==_||e[50]!==I?(O=s.jsx(z,{variant:"ghost",onClick:_,disabled:h,children:I}),e[48]=h,e[49]=_,e[50]=I,e[51]=O):O=e[51];let E;e[52]!==N||e[53]!==O?(E=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,O]}),e[52]=N,e[53]=O,e[54]=E):E=e[54];let R;return e[55]!==j||e[56]!==E||e[57]!==x?(R=s.jsxs(ae,{children:[x,j,E]}),e[55]=j,e[56]=E,e[57]=x,e[58]=R):R=e[58],R}function us(t){const e=D.c(23),{orgName:n,orgLogo:a}=t,o=J();let r;e[0]!==a||e[1]!==n?(r=a?s.jsx(ot,{url:a,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let c;e[5]!==i?(c=s.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==n||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:n}),e[7]=n,e[8]=o,e[9]=m):m=e[9];let f;e[10]!==m?(f=s.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=f):f=e[11];let y;e[12]!==c||e[13]!==f?(y=s.jsxs("div",{className:"space-y-2",children:[c,f]}),e[12]=c,e[13]=f,e[14]=y):y=e[14];let d;e[15]!==o?(d=o("common.goHome"),e[15]=o,e[16]=d):d=e[16];let p;e[17]!==d?(p=s.jsx(z,{variant:"ghost",onClick:ms,children:d}),e[17]=d,e[18]=p):p=e[18];let l;return e[19]!==r||e[20]!==y||e[21]!==p?(l=s.jsxs(ae,{children:[r,y,p]}),e[19]=r,e[20]=y,e[21]=p,e[22]=l):l=e[22],l}function ms(){window.location.href="/"}function fs(t){const e=D.c(45),{orgName:n,orgSlug:a,orgLogo:o,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})}),_=await N.json();if(!N.ok||!_.success)throw new Error(_.error??"Failed to request access");return _},e[0]=a,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=gs,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 y;e[5]!==c||e[6]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[5]=c,e[6]=f,e[7]=y):y=e[7];const d=Je(y);let p;e[8]!==o||e[9]!==n?(p=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=n,e[10]=p):p=e[10];let l;e[11]!==n||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:n}),e[11]=n,e[12]=i,e[13]=l):l=e[13];let b;e[14]!==l?(b=s.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=b):b=e[15];let u;e[16]!==r||e[17]!==i?(u=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=u):u=e[18];let g;e[19]!==u?(g=s.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,e[20]=g):g=e[20];let h;e[21]!==b||e[22]!==g?(h=s.jsxs("div",{className:"space-y-2",children:[b,g]}),e[21]=b,e[22]=g,e[23]=h):h=e[23];let x;e[24]!==d?(x=()=>d.mutate(),e[24]=d,e[25]=x):x=e[25];let w;e[26]!==d.isPending||e[27]!==i?(w=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=w):w=e[28];let v;e[29]!==d.isPending||e[30]!==x||e[31]!==w?(v=s.jsx(z,{onClick:x,disabled:d.isPending,children:w}),e[29]=d.isPending,e[30]=x,e[31]=w,e[32]=v):v=e[32];const S=d.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let j;e[35]!==d.isPending||e[36]!==k?(j=s.jsx(z,{variant:"ghost",onClick:hs,disabled:S,children:k}),e[35]=d.isPending,e[36]=k,e[37]=j):j=e[37];let T;e[38]!==v||e[39]!==j?(T=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=T):T=e[40];let P;return e[41]!==h||e[42]!==T||e[43]!==p?(P=s.jsxs(ae,{children:[p,h,T]}),e[41]=h,e[42]=T,e[43]=p,e[44]=P):P=e[44],P}function hs(){window.location.href="/"}function gs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ps(t){const e=D.c(7);let n;e[0]!==t?(n=Ve.orgAccessStatus(t),e[0]=t,e[1]=n):n=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 o;return e[4]!==n||e[5]!==a?(o={queryKey:n,queryFn:a,refetchOnWindowFocus:!1},e[4]=n,e[5]=a,e[6]=o):o=e[6],Nt(o)}function ys({orgSlug:t}){const{data:e}=ps(t);if(e.status!=="member"){const n=_t()?.org===t;n&&Pt();const a=localStorage.getItem(Ge.lastOrgSlug())===t;if(a&&localStorage.removeItem(Ge.lastOrgSlug()),(n||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?s.jsx(wt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?s.jsx(ds,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?s.jsx(as,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?s.jsx(fs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?s.jsx(us,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):s.jsx(wt,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Ft(t){const e=D.c(42),{ariaLabel:n,dismissLabel:a,eyebrow:o,title:r,description:i,icon:c,children:m,footerLeading:f,actions:y,onDismiss:d,tone:p}=t,l=p===void 0?"neutral":p,b=f||y;let u;e[0]!==l?(u=l==="system"&&s.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=u):u=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx($n,{size:14}),e[2]=g):g=e[2];let h;e[3]!==a||e[4]!==d?(h=s.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:g}),e[3]=a,e[4]=d,e[5]=h):h=e[5];const x=c&&"flex items-start gap-3",w=m&&"pb-3";let v;e[6]!==x||e[7]!==w?(v=mt("p-4 pr-11",x,w),e[6]=x,e[7]=w,e[8]=v):v=e[8];let S;e[9]!==c?(S=c&&s.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]=S):S=e[10];let k;e[11]!==o?(k=o&&s.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=k):k=e[12];let j;e[13]!==r?(j=s.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=j):j=e[14];let T;e[15]!==i?(T=i&&s.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=T):T=e[16];let P;e[17]!==j||e[18]!==T||e[19]!==k?(P=s.jsxs("div",{children:[k,j,T]}),e[17]=j,e[18]=T,e[19]=k,e[20]=P):P=e[20];let N;e[21]!==m?(N=m&&s.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let _;e[23]!==P||e[24]!==N?(_=s.jsxs("div",{className:"min-w-0 flex-1",children:[P,N]}),e[23]=P,e[24]=N,e[25]=_):_=e[25];let I;e[26]!==_||e[27]!==v||e[28]!==S?(I=s.jsxs("div",{className:v,children:[S,_]}),e[26]=_,e[27]=v,e[28]=S,e[29]=I):I=e[29];let O;e[30]!==y||e[31]!==f||e[32]!==b||e[33]!==l?(O=b&&s.jsxs("div",{className:mt("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[s.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),s.jsx("div",{className:"flex shrink-0 items-center gap-2",children:y})]}),e[30]=y,e[31]=f,e[32]=b,e[33]=l,e[34]=O):O=e[34];let E;return e[35]!==n||e[36]!==I||e[37]!==O||e[38]!==u||e[39]!==h||e[40]!==l?(E=s.jsxs("div",{role:"dialog","aria-label":n,"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:[u,h,I,O]}),e[35]=n,e[36]=I,e[37]=O,e[38]=u,e[39]=h,e[40]=l,e[41]=E):E=e[41],E}const bs={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 qt(t){return`[data-tour="${bs[t]}"]`}const xs=[{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 ws(t){return xs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function Ss(t,e){return ws(e).map(n=>({element:qt(n.anchor),popover:{title:t(n.titleKey),description:t(n.descKey),side:n.side,align:"center"}}))}const vs=qt("switcher"),js=30;function Mt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ts(t,e){return Ss(t,e).filter(n=>typeof n.element=="string"&&Mt(n.element))}function ks(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:(n,{driver:a})=>{if(n.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>a.destroy()),n.footerButtons.insertBefore(o,n.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function Ns(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function _s(t,e){if(He)return;He=!0;let n=0;const a=()=>{if(!Mt(vs)&&n++<js){requestAnimationFrame(a);return}const o=Ts(t,e);if(o.length===0){He=!1;return}Ns().then(r=>{r(ks(t,o)).drive()}).catch(()=>{He=!1})};a()}function Ps(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return Ps(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function Bt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ri(t){return t.reportsOnly&&!t.onReportAgent&&Bt(t.tabId)}const Kt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:bt,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:at,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:Nn,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:ft,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:Z,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:bt,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:Z,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:Z,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:Z,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:Z,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:Z,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:Z,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:at,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:ft,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:Z,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:at,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:Z,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:_n,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],st="studio.release-feed.v1",lt=new Set;let oe="",ie={},ct=!1;function As(){if(ct)return oe||"{}";try{return localStorage.getItem(st)??"{}"}catch{return oe||"{}"}}function Ht(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function St(){const t=As();return t!==oe&&(oe=t,ie=Ht(t)),ie}function Is(t){lt.add(t);const e=n=>{if(!(n.key!==st&&n.key!==null)){try{const a=localStorage.getItem(st)??"{}",r={...Ht(a),...ie};ie=r,oe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{lt.delete(t),window.removeEventListener("storage",e)}}function Cs(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(st,oe),ct=!1}catch{ct=!0}lt.forEach(e=>e())}function Es(){const t=D.c(7),e=G.useSyncExternalStore(Is,St,St);let n;t[0]!==e?(n=m=>!!e[m],t[0]=e,t[1]=n):n=t[1];const a=n,o=Os;let r;t[2]!==e?(r=Kt.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:o,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function Os(t){ie[t]||Cs({...ie,[t]:{seenAt:new Date().toISOString()}})}const vt=new Map;function Ut(t){let e=vt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},vt.set(t,e)),e}function $s(t,e){const n=Ut(t);return n.subscribers.add(e),n.intervalId===null&&(n.intervalId=setInterval(()=>{n.now=Date.now();for(const a of n.subscribers)a()},t)),()=>{n.subscribers.delete(e),n.subscribers.size===0&&n.intervalId!==null&&(clearInterval(n.intervalId),n.intervalId=null)}}function Ls(t){const e=D.c(4),n=t===void 0?6e4:t;let a;e[0]!==n?(a=()=>Ut(n).now,e[0]=n,e[1]=a):a=e[1];const o=a;let r;return e[2]!==n?(r=i=>$s(n,i),e[2]=n,e[3]=r):r=e[3],G.useSyncExternalStore(r,o,o)}const Ds=720*60*60*1e3,Rs=10080*60*1e3;function zs(t){const[e,n,a]=t.split("-").map(Number);return!e||!n||!a?new Date(t).getTime():new Date(e,n-1,a).getTime()}function Fs(t){const e=Kt[0];if(!e)return null;const n=zs(e.date),a=t-n;return a<0||a>Ds?null:e}function qs(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 Ms(t,e){const n=qs(t);return n===null?!1:e-n>=Rs}function Bs(){const t=D.c(46),e=J(),n=Ln(),a=Xt(),o=zt(),r=!!n,i=a===ee.home&&!n;let c;t[0]!==o||t[1]!==r?(c=r&&!!o&&Bt(o),t[0]=o,t[1]=r,t[2]=c):c=t[2];const m=c,{data:f}=Me.useSession(),{isSeen:y,markSeen:d}=Es(),p=Ls(6e4);let l,b,u;if(t[3]!==y||t[4]!==p||t[5]!==f?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{if(l=Fs(p),!l){u=null;break e}if(!Ms(f?.user?.createdAt,p)){u=null;break e}b=y(l.id)}t[3]=y,t[4]=p,t[5]=f?.user?.createdAt,t[6]=l,t[7]=b,t[8]=u}else l=t[6],b=t[7],u=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(b)return null;let g;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==m||t[14]!==e?(g=()=>{d(l.id),_s(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]=g):g=t[15];const h=g;let x;t[16]!==e?(x=e("announcements.release.ariaLabel"),t[16]=e,t[17]=x):x=t[17];let w;t[18]!==e?(w=e("announcements.release.dismiss"),t[18]=e,t[19]=w):w=t[19];const v=l.eyebrow,S=l.title;let k;t[20]!==l.id||t[21]!==d?(k=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=k):k=t[22];let j;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(j=l.learnMoreHref?s.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]=j):j=t[27];let T;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==h?(T=l.cta?"href"in l.cta?s.jsx(z,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:s.jsx("a",{href:l.cta.href,children:l.cta.label})}):s.jsx(z,{size:"sm",onClick:h,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=h,t[32]=T):T=t[32];let P;t[33]!==l.bullets?(P=l.bullets.map(Ks),t[33]=l.bullets,t[34]=P):P=t[34];let N;t[35]!==P?(N=s.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=N):N=t[36];let _;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==T||t[40]!==N||t[41]!==x||t[42]!==w||t[43]!==k||t[44]!==j?(_=s.jsx(Ft,{ariaLabel:x,dismissLabel:w,eyebrow:v,title:S,onDismiss:k,footerLeading:j,actions:T,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=T,t[40]=N,t[41]=x,t[42]=w,t[43]=k,t[44]=j,t[45]=_):_=t[45],_}function Ks(t,e){return s.jsxs("li",{className:"flex items-start gap-3",children:[s.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),s.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Hs(t){const e=D.c(11),{open:n,onOpenChange:a}=t,o=J();let r;e[0]!==o?(r=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=r):r=e[1];let i;e[2]!==r?(i=s.jsx(At,{children:s.jsx(It,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"flex flex-col gap-4",children:Zt.map(Us)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsxs(Ct,{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]!==n||e[9]!==m?(f=s.jsx(Et,{open:n,onOpenChange:a,children:m}),e[7]=a,e[8]=n,e[9]=m,e[10]=f):f=e[10],f}function Us(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Js)})]},t.label)}function Js(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Gs)})]},t.description)}function Gs(t){return s.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 jt=8;function Vs(t){const{org:e}=dt(),n=Gn({connectionId:$t,orgId:e.id,orgSlug:e.slug}),{data:a}=Be({queryKey:Ve.globalSearch(e.id,t,jt),enabled:!!n&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!n)return[];try{return(await n.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Ws(t){const e=D.c(197),{open:n,onOpenChange:a}=t,o=J(),r=Ot(),{org:i}=dt(),{projects:c,hasProjects:m}=Dn(),{remember:f}=Jn(i.slug),[y,d]=G.useState(""),p=G.useDeferredValue(y),l=Vs(p);let b;e[0]!==a?(b=()=>{a(!1),d("")},e[0]=a,e[1]=b):b=e[1];const u=b;let g;e[2]!==u?(g=(q,K)=>{rt("command_palette_used",{kind:K}),q(),u()},e[2]=u,e[3]=g):g=e[3];const h=g;let x;e[4]!==r||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.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:q.slug}});return}if(q.type==="task"){r({to:ee.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const K=Lt(i.id).id;en(r,tn({org:i.slug,agentId:q.virtual_mcp_id??K,superAgentId:K}),{search:()=>({thread:q.id}),replace:!1})},e[4]=r,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const w=x;let v;e[8]!==y?(v=[y],e[8]=y,e[9]=v):v=e[9];const S=v;let k,j,T,P,N,_,I,O,E,R,A,F,M;if(e[10]!==u||e[11]!==h||e[12]!==m||e[13]!==l||e[14]!==r||e[15]!==a||e[16]!==n||e[17]!==w||e[18]!==i.slug||e[19]!==c||e[20]!==f||e[21]!==S||e[22]!==o||e[23]!==y){const q=l.filter(Qs),K=l.filter(Ys);let Q;e[37]!==i.slug?(Q={org:i.slug},e[37]=i.slug,e[38]=Q):Q=e[38];const $=Q;let H;e[39]!==o?(H=o("sidebar.navDestinations.home"),e[39]=o,e[40]=H):H=e[40];let W;e[41]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(An,{"aria-hidden":"true"}),e[41]=W):W=e[41];let U;e[42]!==$||e[43]!==H?(U={key:"home",label:H,icon:W,to:ee.home,params:$},e[42]=$,e[43]=H,e[44]=U):U=e[44];let Y;e[45]!==o?(Y=o("sidebar.navDestinations.reports"),e[45]=o,e[46]=Y):Y=e[46];let X;e[47]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(In,{"aria-hidden":"true"}),e[47]=X):X=e[47];let L;e[48]!==$||e[49]!==Y?(L={key:"reports",label:Y,icon:X,to:ee.reports,params:$},e[48]=$,e[49]=Y,e[50]=L):L=e[50];let B;e[51]!==o?(B=o("sidebar.navDestinations.tasks"),e[51]=o,e[52]=B):B=e[52];let We;e[53]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsx(yt,{"aria-hidden":"true"}),e[53]=We):We=e[53];let re;e[54]!==i.slug?(re={org:i.slug,taskKey:void 0},e[54]=i.slug,e[55]=re):re=e[55];let le;e[56]!==B||e[57]!==re?(le={key:"tasks",label:B,icon:We,to:ee.tasks,params:re},e[56]=B,e[57]=re,e[58]=le):le=e[58];let ce;e[59]!==o?(ce=o("sidebar.navDestinations.library"),e[59]=o,e[60]=ce):ce=e[60];let Ye;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ye=s.jsx(Cn,{"aria-hidden":"true"}),e[61]=Ye):Ye=e[61];let de;e[62]!==$||e[63]!==ce?(de={key:"library",label:ce,icon:Ye,to:ee.library,params:$},e[62]=$,e[63]=ce,e[64]=de):de=e[64];let ue;e[65]!==o?(ue=o("sidebar.navDestinations.discover"),e[65]=o,e[66]=ue):ue=e[66];let Qe;e[67]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx(En,{"aria-hidden":"true"}),e[67]=Qe):Qe=e[67];let me;e[68]!==$||e[69]!==ue?(me={key:"discover",label:ue,icon:Qe,to:ee.discover,params:$},e[68]=$,e[69]=ue,e[70]=me):me=e[70];let Xe;e[71]!==U||e[72]!==L||e[73]!==le||e[74]!==de||e[75]!==me?(Xe=[U,L,le,de,me],e[71]=U,e[72]=L,e[73]=le,e[74]=de,e[75]=me,e[76]=Xe):Xe=e[76];const it=Xe;j=qn,P=n,e[77]!==u||e[78]!==a?(N=C=>C?a(!0):u(),e[77]=u,e[78]=a,e[79]=N):N=e[79],e[80]!==o?(_=o("commandPalette.title"),e[80]=o,e[81]=_):_=e[81],e[82]!==o?(I=o("commandPalette.description"),e[82]=o,e[83]=I):I=e[83];let fe;e[84]!==o?(fe=o("commandPalette.placeholder"),e[84]=o,e[85]=fe):fe=e[85];let he;e[86]!==o?(he=o("commandPalette.placeholder"),e[86]=o,e[87]=he):he=e[87],e[88]!==fe||e[89]!==he||e[90]!==y?(O=s.jsx(Mn,{placeholder:fe,"aria-label":he,value:y,onValueChange:d}),e[88]=fe,e[89]=he,e[90]=y,e[91]=O):O=e[91],k=Bn;let ge;e[92]!==o?(ge=o("commandPalette.empty"),e[92]=o,e[93]=ge):ge=e[93],e[94]!==ge?(E=s.jsx(Kn,{children:ge}),e[94]=ge,e[95]=E):E=e[95];let pe;e[96]!==o?(pe=o("commandPalette.goTo"),e[96]=o,e[97]=pe):pe=e[97];let ye;e[98]!==it||e[99]!==h||e[100]!==r?(ye=it.map(C=>s.jsxs(ne,{onSelect:()=>h(()=>r({to:C.to,params:C.params}),"destination"),children:[C.icon,s.jsx("span",{children:C.label})]},C.key)),e[98]=it,e[99]=h,e[100]=r,e[101]=ye):ye=e[101],e[102]!==pe||e[103]!==ye?(R=s.jsx(Ke,{heading:pe,children:ye}),e[102]=pe,e[103]=ye,e[104]=R):R=e[104],e[105]!==h||e[106]!==m||e[107]!==r||e[108]!==i.slug||e[109]!==c||e[110]!==f||e[111]!==o?(A=m&&s.jsx(Ke,{heading:o("commandPalette.projects"),children:c.map(C=>s.jsxs(ne,{value:`project ${C.title}`,onSelect:()=>h(()=>{f(C.id),r({to:ee.projects,params:{org:i.slug,agentId:C.id}})},"project"),children:[s.jsx(Un,{icon:C.icon,name:C.title,"aria-hidden":"true"}),s.jsx("span",{children:C.title})]},C.id))}),e[105]=h,e[106]=m,e[107]=r,e[108]=i.slug,e[109]=c,e[110]=f,e[111]=o,e[112]=A):A=e[112];let be;e[113]!==o?(be=o("commandPalette.actions"),e[113]=o,e[114]=be):be=e[114];let xe;e[115]!==o?(xe=o("commandPalette.newProject"),e[115]=o,e[116]=xe):xe=e[116];let we;e[117]!==h||e[118]!==r||e[119]!==$?(we=()=>h(()=>r({to:ee.home,params:$}),"new_project"),e[117]=h,e[118]=r,e[119]=$,e[120]=we):we=e[120];let Ze;e[121]===Symbol.for("react.memo_cache_sentinel")?(Ze=s.jsx(xt,{"aria-hidden":"true"}),e[121]=Ze):Ze=e[121];let Se;e[122]!==o?(Se=o("commandPalette.newProject"),e[122]=o,e[123]=Se):Se=e[123];let ve;e[124]!==Se?(ve=s.jsx("span",{children:Se}),e[124]=Se,e[125]=ve):ve=e[125];let je;e[126]!==xe||e[127]!==we||e[128]!==ve?(je=s.jsxs(ne,{value:xe,onSelect:we,children:[Ze,ve]}),e[126]=xe,e[127]=we,e[128]=ve,e[129]=je):je=e[129];let Te;e[130]!==o?(Te=o("commandPalette.inviteTeammate"),e[130]=o,e[131]=Te):Te=e[131];let ke;e[132]!==h||e[133]!==r||e[134]!==$?(ke=()=>h(()=>r({to:"/$org/settings/members",params:$}),"invite"),e[132]=h,e[133]=r,e[134]=$,e[135]=ke):ke=e[135];let et;e[136]===Symbol.for("react.memo_cache_sentinel")?(et=s.jsx(On,{"aria-hidden":"true"}),e[136]=et):et=e[136];let Ne;e[137]!==o?(Ne=o("commandPalette.inviteTeammate"),e[137]=o,e[138]=Ne):Ne=e[138];let _e;e[139]!==Ne?(_e=s.jsx("span",{children:Ne}),e[139]=Ne,e[140]=_e):_e=e[140];let Pe;e[141]!==Te||e[142]!==ke||e[143]!==_e?(Pe=s.jsxs(ne,{value:Te,onSelect:ke,children:[et,_e]}),e[141]=Te,e[142]=ke,e[143]=_e,e[144]=Pe):Pe=e[144];let Ae;e[145]!==o?(Ae=o("commandPalette.addConnection"),e[145]=o,e[146]=Ae):Ae=e[146];let Ie;e[147]!==h||e[148]!==r||e[149]!==$?(Ie=()=>h(()=>r({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[147]=h,e[148]=r,e[149]=$,e[150]=Ie):Ie=e[150];let tt;e[151]===Symbol.for("react.memo_cache_sentinel")?(tt=s.jsx(xt,{"aria-hidden":"true"}),e[151]=tt):tt=e[151];let Ce;e[152]!==o?(Ce=o("commandPalette.addConnection"),e[152]=o,e[153]=Ce):Ce=e[153];let Ee;e[154]!==Ce?(Ee=s.jsx("span",{children:Ce}),e[154]=Ce,e[155]=Ee):Ee=e[155];let Oe;e[156]!==Ae||e[157]!==Ie||e[158]!==Ee?(Oe=s.jsxs(ne,{value:Ae,onSelect:Ie,children:[tt,Ee]}),e[156]=Ae,e[157]=Ie,e[158]=Ee,e[159]=Oe):Oe=e[159];let $e;e[160]!==o?($e=o("commandPalette.settings"),e[160]=o,e[161]=$e):$e=e[161];let Le;e[162]!==h||e[163]!==r||e[164]!==$?(Le=()=>h(()=>r({to:"/$org/settings/general",params:$}),"settings"),e[162]=h,e[163]=r,e[164]=$,e[165]=Le):Le=e[165];let nt;e[166]===Symbol.for("react.memo_cache_sentinel")?(nt=s.jsx(Fn,{"aria-hidden":"true"}),e[166]=nt):nt=e[166];let De;e[167]!==o?(De=o("commandPalette.settings"),e[167]=o,e[168]=De):De=e[168];let Re;e[169]!==De?(Re=s.jsx("span",{children:De}),e[169]=De,e[170]=Re):Re=e[170];let ze;e[171]!==$e||e[172]!==Le||e[173]!==Re?(ze=s.jsxs(ne,{value:$e,onSelect:Le,children:[nt,Re]}),e[171]=$e,e[172]=Le,e[173]=Re,e[174]=ze):ze=e[174],e[175]!==be||e[176]!==je||e[177]!==Pe||e[178]!==Oe||e[179]!==ze?(F=s.jsxs(Ke,{heading:be,children:[je,Pe,Oe,ze]}),e[175]=be,e[176]=je,e[177]=Pe,e[178]=Oe,e[179]=ze,e[180]=F):F=e[180],M=q.length>0&&s.jsx(Ke,{heading:o("commandPalette.connections"),children:q.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:S,onSelect:()=>h(()=>w(C),"connection"),children:[s.jsx(Hn,{icon:C.icon,name:C.title,size:"2xs","aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title})]},`connection:${C.id}`))}),T=K.length>0&&s.jsx(Ke,{heading:o("commandPalette.results"),children:K.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:S,onSelect:()=>h(()=>w(C),C.type),children:[C.type==="thread"?s.jsx(Pn,{"aria-hidden":"true"}):s.jsx(yt,{"aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title}),C.type==="task"&&C.key&&s.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:C.key})]},`${C.type}:${C.id}`))}),e[10]=u,e[11]=h,e[12]=m,e[13]=l,e[14]=r,e[15]=a,e[16]=n,e[17]=w,e[18]=i.slug,e[19]=c,e[20]=f,e[21]=S,e[22]=o,e[23]=y,e[24]=k,e[25]=j,e[26]=T,e[27]=P,e[28]=N,e[29]=_,e[30]=I,e[31]=O,e[32]=E,e[33]=R,e[34]=A,e[35]=F,e[36]=M}else k=e[24],j=e[25],T=e[26],P=e[27],N=e[28],_=e[29],I=e[30],O=e[31],E=e[32],R=e[33],A=e[34],F=e[35],M=e[36];let V;e[181]!==k||e[182]!==T||e[183]!==E||e[184]!==R||e[185]!==A||e[186]!==F||e[187]!==M?(V=s.jsxs(k,{children:[E,R,A,F,M,T]}),e[181]=k,e[182]=T,e[183]=E,e[184]=R,e[185]=A,e[186]=F,e[187]=M,e[188]=V):V=e[188];let te;return e[189]!==j||e[190]!==P||e[191]!==N||e[192]!==_||e[193]!==I||e[194]!==O||e[195]!==V?(te=s.jsxs(j,{open:P,onOpenChange:N,title:_,description:I,children:[O,V]}),e[189]=j,e[190]=P,e[191]=N,e[192]=_,e[193]=I,e[194]=O,e[195]=V,e[196]=te):te=e[196],te}function Ys(t){return t.type!=="connection"}function Qs(t){return t.type==="connection"}const Ue=new Xn(!1);function Xs(){Ue.set(!0)}function Zs(){Ue.set(!1)}function eo(){const t=D.c(2),e=G.useSyncExternalStore(Ue.subscribe,Ue.get);let n;return t[0]!==e?(n=[e,Ue.set],t[0]=e,t[1]=n):n=t[1],n}const to=300*1e3,no=2;function so(t,e,n){return!e||e===n?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function oo(t,e){return t.count>=no&&t.version!==null&&t.version!==e}function io(){const t=D.c(31),e=J();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:Ve.appVersionCheck(),queryFn:ro,refetchInterval:to,refetchIntervalInBackground:!0,staleTime:0},t[0]=n):n=t[0];const{data:a,dataUpdatedAt:o}=Be(n),[r,i]=G.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]=G.useState(c);o!==r&&(i(o),f(T=>so(T,a,"4.562.1")));const[y,d]=G.useState(null);if(!oo(m,y))return null;let p;t[2]!==e?(p=e("announcements.version.ariaLabel"),t[2]=e,t[3]=p):p=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let b;t[6]!==e?(b=e("announcements.version.eyebrow"),t[6]=e,t[7]=b):b=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=t[9];let g;t[10]!==e?(g=e("announcements.version.description"),t[10]=e,t[11]=g):g=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ht,{size:16}),t[12]=h):h=t[12];let x;t[13]!==m.version?(x=()=>d(m.version),t[13]=m.version,t[14]=x):x=t[14];let w;t[15]!==e?(w=e("announcements.version.currentSession",{version:"4.562.1"}),t[15]=e,t[16]=w):w=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let S;t[19]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(ht,{size:14}),t[19]=S):S=t[19];let k;t[20]!==v?(k=s.jsxs(z,{size:"sm",onClick:ao,children:[v,S]}),t[20]=v,t[21]=k):k=t[21];let j;return t[22]!==k||t[23]!==p||t[24]!==l||t[25]!==b||t[26]!==u||t[27]!==g||t[28]!==x||t[29]!==w?(j=s.jsx(Ft,{ariaLabel:p,dismissLabel:l,eyebrow:b,title:u,description:g,icon:h,tone:"system",onDismiss:x,footerLeading:w,actions:k}),t[22]=k,t[23]=p,t[24]=l,t[25]=b,t[26]=u,t[27]=g,t[28]=x,t[29]=w,t[30]=j):j=t[30],j}function ao(){return window.location.reload()}async function ro(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function lo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const co=Date.parse("2026-07-21T00:00:00Z"),Tt=t=>lo(Ge.ptBrAnnouncementSeen(t));function uo(){const t=D.c(35),e=J(),[n,a]=nn(),{data:o,isPending:r}=Me.useSession(),i=o?.user,c=i?.id,m=i?.createdAt,f=m!=null&&new Date(m).getTime()<co,y=sn()==="pt-BR",d=!r&&!!c&&f&&y&&n.language==="en"&&!Tt(c).has(),[p,l]=G.useState(!1),[b,u]=G.useState(!1);!p&&!r&&(l(!0),d&&c&&(Tt(c).mark(),a(fo),u(!0),rt("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=V=>{rt("pt_br_auto_switch_closed",{action:V}),u(!1)},t[0]=g):g=t[0];const h=g;let x;t[1]!==a?(x=()=>{a(mo),h("switch-back")},t[1]=a,t[2]=x):x=t[2];const w=x;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=V=>!V&&h("dismiss"),t[3]=v):v=t[3];let S;t[4]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=S):S=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let j;t[7]!==k?(j=s.jsx(It,{children:k}),t[7]=k,t[8]=j):j=t[8];let T;t[9]!==e?(T=e("announcements.ptBr.description"),t[9]=e,t[10]=T):T=t[10];let P;t[11]!==T?(P=s.jsx(on,{children:T}),t[11]=T,t[12]=P):P=t[12];let N;t[13]!==j||t[14]!==P?(N=s.jsxs(At,{children:[j,P]}),t[13]=j,t[14]=P,t[15]=N):N=t[15];let _;t[16]!==e?(_=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=_):_=t[17];let I;t[18]!==w||t[19]!==_?(I=s.jsx(z,{variant:"outline",onClick:w,children:_}),t[18]=w,t[19]=_,t[20]=I):I=t[20];let O;t[21]===Symbol.for("react.memo_cache_sentinel")?(O=()=>h("ok"),t[21]=O):O=t[21];let E;t[22]!==e?(E=e("announcements.ptBr.ok"),t[22]=e,t[23]=E):E=t[23];let R;t[24]!==E?(R=s.jsx(z,{onClick:O,children:E}),t[24]=E,t[25]=R):R=t[25];let A;t[26]!==I||t[27]!==R?(A=s.jsxs(an,{children:[I,R]}),t[26]=I,t[27]=R,t[28]=A):A=t[28];let F;t[29]!==A||t[30]!==N?(F=s.jsxs(Ct,{className:"sm:max-w-md",children:[S,N,A]}),t[29]=A,t[30]=N,t[31]=F):F=t[31];let M;return t[32]!==b||t[33]!==F?(M=s.jsx(Et,{open:b,onOpenChange:v,children:F}),t[32]=b,t[33]=F,t[34]=M):M=t[34],M}function mo(t){return{...t,language:"en"}}function fo(t){return{...t,language:"pt-BR"}}function ho(t){const e=rn(t);return typeof e=="string"?e:void 0}function go(){return ho("experiment-pipeline-check"),null}function po(t){const e=D.c(1),{activeOrg:n}=t;if(!n)return null;ln(n.id,{name:n.name??void 0,slug:n.slug??void 0}),cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(go,{}),e[0]=a):a=e[0],a}function yo(t){const{prev:e,virtualMcpId:n,decopilotId:a,savedLayout:o,opts:r,autosendValue:i}=t,c={mainpanel:void 0};n?c.virtualmcpid=n:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,y=(n??m)!==m;let d,p;return r?.panel?p=r.panel:r?.newThread&&!y&&dn(e.tabId)?(p=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):o?(p=o.tab,o.sidepanel!==void 0&&(d=o.sidepanel),o.mainpanel!==void 0&&(c.mainpanel=o.mainpanel)):!y&&e.tabId&&!un(e.tabId)&&(p=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:p,search:c}}const Jt="studio:thread-layout:v4",bo=50;function Gt(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 xo(t,e,n,a=bo){const o=t.filter(([r])=>r!==e);for(o.push([e,Gt(n)]);o.length>a;)o.shift();return o}function ut(){try{const t=sessionStorage.getItem(Jt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&n.length===2&&typeof n[0]=="string"):[]}catch{return[]}}function Vt(t){try{sessionStorage.setItem(Jt,JSON.stringify(t))}catch{}}function wo(t,e){t&&Vt(xo(ut(),t,e))}function So(t){if(!t)return null;const e=ut().find(([n])=>n===t);return e?Gt(e[1]):null}function li(t){if(!t)return;const e=ut(),n=e.filter(([a])=>a!==t);n.length!==e.length&&Vt(n)}function Wt(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 ci(t){const e=D.c(10);let n;e[0]!==t?(n=Wt(t),e[0]=t,e[1]=n):n=e[1];const a=Be(n);let o;e[2]!==a.data?.prompts?(o=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=o):o=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]!==o||e[8]!==r?(i={isLoading:a.isLoading,prompts:o,tiles:r},e[6]=a.isLoading,e[7]=o,e[8]=r,e[9]=i):i=e[9],i}function vo(t){const e=D.c(31),{orgSlug:n,orgName:a,domain:o}=t,r=J();let i;e[0]!==n?(i=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=i):i=e[1];const c=i,m=jo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let y;e[3]!==r?(y=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=y):y=e[4];let d;e[5]!==y?(d=s.jsx("h3",{className:"text-lg font-medium",children:y}),e[5]=y,e[6]=d):d=e[6];let p;e[7]!==o||e[8]!==a||e[9]!==r?(p=a?s.jsxs(s.Fragment,{children:[s.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${r("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=a,e[9]=r,e[10]=p):p=e[10];let l;e[11]!==p?(l=s.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=l):l=e[12];let b;e[13]!==d||e[14]!==l?(b=s.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=b):b=e[15];let u;e[16]!==r?(u=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=u):u=e[17];let g;e[18]!==c||e[19]!==u?(g=s.jsx(z,{onClick:c,children:u}),e[18]=c,e[19]=u,e[20]=g):g=e[20];let h;e[21]!==r?(h=r("common.goBack"),e[21]=r,e[22]=h):h=e[22];let x;e[23]!==h?(x=s.jsx(z,{variant:"ghost",onClick:m,children:h}),e[23]=h,e[24]=x):x=e[24];let w;e[25]!==x||e[26]!==g?(w=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,x]}),e[25]=x,e[26]=g,e[27]=w):w=e[27];let v;return e[28]!==w||e[29]!==b?(v=s.jsxs(ae,{children:[f,b,w]}),e[28]=w,e[29]=b,e[30]=v):v=e[30],v}function jo(){window.location.href="/"}function To(t){const e=D.c(27),{notice:n,orgSlug:a}=t,o=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(mn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==n.title?(i=s.jsx("h3",{className:"text-lg font-medium",children:n.title}),e[1]=n.title,e[2]=i):i=e[2];let c;e[3]!==n.message?(c=s.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:n.message}),e[3]=n.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=s.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]!==n.ctaLabel||e[9]!==n.ctaUrl?(f=n.ctaUrl&&n.ctaLabel?s.jsx(z,{asChild:!0,children:s.jsx("a",{href:n.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:n.ctaLabel})}):null,e[8]=n.ctaLabel,e[9]=n.ctaUrl,e[10]=f):f=e[10];const y=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==o?(d=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=d):d=e[12];let p;e[13]!==y||e[14]!==d?(p=s.jsx(z,{variant:"outline",asChild:!0,children:s.jsx("a",{href:y,children:d})}),e[13]=y,e[14]=d,e[15]=p):p=e[15];let l;e[16]!==o?(l=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=l):l=e[17];let b;e[18]!==l?(b=s.jsx(z,{variant:"ghost",asChild:!0,children:s.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=b):b=e[19];let u;e[20]!==b||e[21]!==f||e[22]!==p?(u=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,p,b]}),e[20]=b,e[21]=f,e[22]=p,e[23]=u):u=e[23];let g;return e[24]!==u||e[25]!==m?(g=s.jsxs(ae,{children:[r,m,u]}),e[24]=u,e[25]=m,e[26]=g):g=e[26],g}function ko(t){const e=D.c(8);let n;e[0]!==t?(n=Ve.orgNotice(t??""),e[0]=t,e[1]=n):n=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 o=!!t;let r;return e[4]!==n||e[5]!==a||e[6]!==o?(r={queryKey:n,queryFn:a,enabled:o,staleTime:6e4},e[4]=n,e[5]=a,e[6]=o,e[7]=r):r=e[7],Be(r)}const No="/settings/infra-billing";function _o(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(No)}function Po(t){const e=D.c(7),{org:n,children:a}=t;let o;e[0]!==n.id||e[1]!==n.name?(o={id:n.id,organizationId:n.id,slug:"_org",name:n.name,ui:null},e[0]=n.id,e[1]=n.name,e[2]=o):o=e[2];const r=o;let i;return e[3]!==a||e[4]!==n||e[5]!==r?(i=s.jsx(wn,{org:n,project:r,children:a}),e[3]=a,e[4]=n,e[5]=r,e[6]=i):i=e[6],i}function Ao(){const t=Ot(),e=Zn(),{org:n}=dt(),a=fn({strict:!1}),o=zt(),{openPanel:r,closePanel:i}=Rn(),c=ts(),m=ns(),f=ss(),y=os(),d=(u,g=!0)=>t({to:".",search:u,replace:g}),p=()=>d(u=>({...u,sidepanel:!0})),l=(u,g,h)=>{const x=!!m&&m===u;m&&!x&&wo(m,{tab:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const w=x?null:So(u),v=Lt(n.id).id,S=yo({prev:{virtualmcpid:c,tabId:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:g,decopilotId:v,savedLayout:w,opts:h,autosendValue:zn});return y(u,()=>S.search,{virtualMcpId:g,view:{tabId:S.tabId}})};return{openSidePanel:p,setTaskId:l,createNewTask:async(u,g,h)=>{const x=crypto.randomUUID(),w=u??f;try{await e?.create({id:x,virtual_mcp_id:w,...g?{branch:g}:{}})}catch{}l(x,w,{...h,newThread:!0})},openTab:r,closeTab:i}}const Io=new Set(["/$org/","/$org/home"]);function Co(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Eo},t[0]=e):e=t[0],Dt(e)}function Eo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&Io.has(e)}function Oo(){const t=D.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=hn(e)?.params.org,[o,r]=G.useState(!1),[i,c]=eo(),[m,f]=Wn(),y=gn(),d=Co(),p=a??"";let l;t[1]!==p?(l=Wt(p),t[1]=p,t[2]=l):l=t[2];const b=!!a&&d;let u;t[3]!==l||t[4]!==b?(u={...l,enabled:b},t[3]=l,t[4]=b,t[5]=u):u=t[5],Be(u);const{data:g}=Me.useSession(),h=g?.user?.id;let x,w;t[6]!==y?(x=()=>{const L=B=>{if(pt(B)&&B.code==="KeyK"){B.preventDefault(),Xs();return}if(B.key==="?"&&!xn(B.target)){B.preventDefault(),r(!0);return}pt(B)&&B.code==="BracketLeft"&&y.history.canGoBack()&&(B.preventDefault(),y.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},w=[y],t[6]=y,t[7]=x,t[8]=w):(x=t[7],w=t[8]),G.useEffect(x,w);let v;t[9]!==a||t[10]!==h?(v=pn(a,h),t[9]=a,t[10]=h,t[11]=v):v=t[11];const{data:S}=Nt(v),k=S?.id,j=S?.slug,{data:T}=is(k,j),P=!!T?.ssoRequired&&!T.authenticated,{data:N}=ko(j);let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_={select:$o},t[12]=_):_=t[12];const I=Dt(_),O=N?.severity==="block"&&!_o(I),E=k??"",R=j??"";let A;t[13]!==R||t[14]!==E?(A=Vn({connectionId:$t,orgId:E,orgSlug:R}),t[13]=R,t[14]=E,t[15]=A):A=t[15];const F=!!k&&!!j;let M;if(t[16]!==A||t[17]!==F?(M={...A,enabled:F},t[16]=A,t[17]=F,t[18]=M):M=t[18],Be(M),(!S||gt(S)||P||O)&&Zs(),!S){let L;return t[19]!==a?(L=s.jsx(ys,{orgSlug:a}),t[19]=a,t[20]=L):L=t[20],L}if(gt(S)){localStorage.getItem(Ge.lastOrgSlug())===a&&localStorage.removeItem(Ge.lastOrgSlug()),_t()?.org===a&&Pt();let L;return t[21]!==S.name?(L=s.jsx(yn,{orgName:S.name}),t[21]=S.name,t[22]=L):L=t[22],L}if(O&&N){let L;return t[23]!==S.slug||t[24]!==N?(L=s.jsx(To,{notice:N,orgSlug:S.slug}),t[23]=S.slug,t[24]=N,t[25]=L):L=t[25],L}if(P){let L;return t[26]!==S.id||t[27]!==S.name||t[28]!==S.slug||t[29]!==T.domain?(L=s.jsx(vo,{orgId:S.id,orgSlug:S.slug,orgName:S.name,domain:T.domain}),t[26]=S.id,t[27]=S.name,t[28]=S.slug,t[29]=T.domain,t[30]=L):L=t[30],L}const te=S.logo??null;let q;t[31]!==S||t[32]!==te?(q={...S,logo:te},t[31]=S,t[32]=te,t[33]=q):q=t[33];let K;t[34]!==S?(K=s.jsx(po,{activeOrg:S}),t[34]=S,t[35]=K):K=t[35];let Q;t[36]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(bn,{}),t[36]=Q):Q=t[36];let $;t[37]===Symbol.for("react.memo_cache_sentinel")?($=s.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[s.jsx(Bs,{}),s.jsx(io,{})]}),t[37]=$):$=t[37];let H;t[38]!==i||t[39]!==c?(H=i&&s.jsx(Ws,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=H):H=t[40];let W;t[41]!==m||t[42]!==f?(W=m&&s.jsx(Yn,{open:!0,onOpenChange:f,source:Qn()}),t[41]=m,t[42]=f,t[43]=W):W=t[43];let U;t[44]!==o?(U=s.jsx(Hs,{open:o,onOpenChange:r}),t[44]=o,t[45]=U):U=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(uo,{}),t[46]=Y):Y=t[46];let X;return t[47]!==q||t[48]!==K||t[49]!==H||t[50]!==W||t[51]!==U?(X=s.jsxs(Po,{org:q,children:[K,Q,$,H,W,U,Y]}),t[47]=q,t[48]=K,t[49]=H,t[50]=W,t[51]=U,t[52]=X):X=t[52],X}function $o(t){return t.location.pathname}function Lo(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(es,{children:s.jsx(Oo,{})}),t[0]=e):e=t[0],e}const di=Object.freeze(Object.defineProperty({__proto__:null,default:Lo,usePanelActions:Ao},Symbol.toStringTag,{value:"Module"}));export{bs as L,Ao as a,Ls as b,Ps as c,ci as d,di as e,li as f,Bt as i,ai as r,ri as s,ko as u};
1
+ import{c as D,b as J,e as Je,j as s,B as z,t as qe,o as ot,cV as ae,ag as kt,a as Me,M as Yt,V as Nt,K as Ve,cW as _t,cX as Pt,at as Ge,m as mt,b9 as Qt,C as ft,r as G,ae as Xt,af as ee,cY as Zt,w as At,x as It,v as Ct,D as Et,d as Ot,a5 as dt,T as $t,i as Be,E as rt,aS as Lt,cZ as en,aY as tn,b3 as ht,J as nn,c_ as sn,aT as on,y as an,c$ as rn,d0 as ln,d1 as cn,d2 as dn,d3 as un,a6 as mn,u as fn,a7 as hn,d4 as gn,d5 as pn,l as Dt,d6 as gt,d7 as yn,O as bn,a_ as pt,d8 as xn,a0 as Sn}from"./index-BZX-7ipZ.js";import{t as Rt}from"./Globe04-RPMmcIuy.js";import{i as wn,s as Z}from"./UserSquare-CEg-eLCw.js";import{u as vn}from"./use-deployment-admin-BSEuekHe.js";import{a as jn}from"./admin-fetch-BhTJlAsX.js";import{aw as Tn,S as kn,F as at,a7 as Nn,H as _n,ax as Pn,n as yt,h as An,ay as In,m as Cn,az as En,aA as On}from"./agent-icon-U2nlXoBG.js";import{s as $n}from"./XClose-DGifUqyQ.js";import{u as Ln,a as Dn}from"./use-project-scope-k7OaKjIm.js";import{u as zt,a as Rn,A as zn}from"./autosend-D6GGYoeu.js";import{i as se}from"./CheckCircle-BzNTGMCW.js";import{i as bt}from"./Monitor01-As0zpJLy.js";import{i as Fe}from"./Zap-BLaVFWQx.js";import{s as xt}from"./Plus-CzoopYlU.js";import{a as Fn}from"./Tool01-D38zOT0h.js";import{b as ne,e as Ke,d as qn,a as Mn,c as Bn,C as Kn}from"./command-DiccrIM8.js";import{I as Hn}from"./integration-icon-Btk7lWbK.js";import{P as Un}from"./project-icon-ofE-LDok.js";import{a as Jn}from"./use-navigate-to-agent-C3sX18jI.js";import{a as Gn,m as Vn}from"./use-mcp-client-CrdyqnFt.js";import{u as Wn,a as Yn,n as Qn}from"./new-project-dialog-EK9WMEhp.js";import{S as Xn,u as Zn}from"./thread-intent-DIce2mks.js";import{R as es}from"./required-auth-layout-Dfyc4Zas.js";import{u as ts,a as ns,b as ss,c as os}from"./thread-route-CP2TR6nw.js";import{u as is}from"./use-org-sso-BHDTii7j.js";function as(t){const e=D.c(49),{orgName:n,orgSlug:a,orgLogo:o,domain:r}=t,i=J();let c;e[0]!==a||e[1]!==i?(c=async()=>{const _=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),I=await _.json();if(!_.ok||!I.success)throw new Error(I.error??i("common.autoDomainJoinScreen.joinError"));return I},e[0]=a,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==a?(m=_=>{window.location.href=`/${_.slug??a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==i?(f=_=>{qe.error(_ instanceof Error?_.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y),p=rs;let l;e[11]!==o||e[12]!==n?(l=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=n,e[13]=l):l=e[13];let b;e[14]!==n||e[15]!==i?(b=i("common.autoDomainJoinScreen.joinPrompt",{orgName:n}),e[14]=n,e[15]=i,e[16]=b):b=e[16];let u;e[17]!==b?(u=s.jsx("h3",{className:"text-lg font-medium",children:b}),e[17]=b,e[18]=u):u=e[18];let g;e[19]!==r||e[20]!==i?(g=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=g):g=e[21];let h;e[22]!==g?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=h):h=e[23];let x;e[24]!==u||e[25]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[u,h]}),e[24]=u,e[25]=h,e[26]=x):x=e[26];let S;e[27]!==d?(S=()=>d.mutate(),e[27]=d,e[28]=S):S=e[28];let v;e[29]!==d.isPending||e[30]!==n||e[31]!==i?(v=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:n}),e[29]=d.isPending,e[30]=n,e[31]=i,e[32]=v):v=e[32];let w;e[33]!==d.isPending||e[34]!==S||e[35]!==v?(w=s.jsx(z,{onClick:S,disabled:d.isPending,children:v}),e[33]=d.isPending,e[34]=S,e[35]=v,e[36]=w):w=e[36];const k=d.isPending;let j;e[37]!==i?(j=i("common.goHome"),e[37]=i,e[38]=j):j=e[38];let T;e[39]!==d.isPending||e[40]!==j?(T=s.jsx(z,{variant:"ghost",onClick:p,disabled:k,children:j}),e[39]=d.isPending,e[40]=j,e[41]=T):T=e[41];let P;e[42]!==w||e[43]!==T?(P=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,T]}),e[42]=w,e[43]=T,e[44]=P):P=e[44];let N;return e[45]!==x||e[46]!==P||e[47]!==l?(N=s.jsxs(ae,{children:[l,x,P]}),e[45]=x,e[46]=P,e[47]=l,e[48]=N):N=e[48],N}function rs(){window.location.href="/"}function St(t){const e=D.c(26),{orgSlug:n,orgId:a,orgName:o,reason:r}=t,i=J(),{isAdmin:c}=vn(),m=ls,f=r==="not-found",y=f?wn:kt;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 p=d;let l;e[3]!==f||e[4]!==o||e[5]!==n||e[6]!==i?(l=f?s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",s.jsx("strong",{children:n}),"."]}):s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",s.jsx("strong",{children:o??n}),".",s.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=o,e[5]=n,e[6]=i,e[7]=l):l=e[7];const b=l;let u;e[8]!==y?(u=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(y,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=y,e[9]=u):u=e[9];let g;e[10]!==p?(g=s.jsx("h3",{className:"text-lg font-medium",children:p}),e[10]=p,e[11]=g):g=e[11];let h;e[12]!==b?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=h):h=e[13];let x;e[14]!==g||e[15]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[g,h]}),e[14]=g,e[15]=h,e[16]=x):x=e[16];let S;e[17]!==c||e[18]!==a||e[19]!==n||e[20]!==i?(S=c&&a?s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[s.jsx(cs,{orgId:a,orgSlug:n}),s.jsx(z,{variant:"ghost",onClick:m,children:i("common.goHome")})]}):s.jsx(z,{onClick:m,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=n,e[20]=i,e[21]=S):S=e[21];let v;return e[22]!==u||e[23]!==x||e[24]!==S?(v=s.jsxs(ae,{children:[u,x,S]}),e[22]=u,e[23]=x,e[24]=S,e[25]=v):v=e[25],v}function ls(){window.location.href="/"}function cs(t){const e=D.c(20),{orgId:n,orgSlug:a}=t,o=J(),{data:r}=Me.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==n?(c=()=>jn(`/api/_admin/orgs/${n}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=n,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]!==o?(f=g=>{qe.error(g instanceof Error?g.message:o("common.noAccessScreen.adminJoinFailed"))},e[5]=o,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y);let p;e[11]!==d?(p=()=>d.mutate(),e[11]=d,e[12]=p):p=e[12];const l=!i||d.isPending;let b;e[13]!==d.isPending||e[14]!==o?(b=d.isPending?o("common.noAccessScreen.adminJoining"):o("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=o,e[15]=b):b=e[15];let u;return e[16]!==p||e[17]!==l||e[18]!==b?(u=s.jsx(z,{onClick:p,disabled:l,children:b}),e[16]=p,e[17]=l,e[18]=b,e[19]=u):u=e[19],u}function ds(t){const e=D.c(59),{invitationId:n,orgName:a,orgSlug:o,orgLogo:r}=t,i=J();let c;e[0]!==n?(c=async()=>{const A=await Me.organization.acceptInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[0]=n,e[1]=c):c=e[1];let m;e[2]!==o?(m=()=>{Yt(),window.location.href=`/${o}`},e[2]=o,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 y;e[6]!==c||e[7]!==m||e[8]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[6]=c,e[7]=m,e[8]=f,e[9]=y):y=e[9];const d=Je(y);let p;e[10]!==n?(p=async()=>{const A=await Me.organization.rejectInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[10]=n,e[11]=p):p=e[11];let l,b;e[12]!==i?(l=()=>{qe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},b=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=b):(l=e[13],b=e[14]);let u;e[15]!==p||e[16]!==l||e[17]!==b?(u={mutationFn:p,onSuccess:l,onError:b},e[15]=p,e[16]=l,e[17]=b,e[18]=u):u=e[18];const g=Je(u),h=d.isPending||g.isPending;let x;e[19]!==r||e[20]!==a?(x=r?s.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Tn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=x):x=e[21];let S;e[22]!==a||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=S):S=e[24];let v;e[25]!==S?(v=s.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,e[26]=v):v=e[26];let w;e[27]!==i?(w=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=w):w=e[28];let k;e[29]!==w?(k=s.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=k):k=e[30];let j;e[31]!==v||e[32]!==k?(j=s.jsxs("div",{className:"space-y-2",children:[v,k]}),e[31]=v,e[32]=k,e[33]=j):j=e[33];let T;e[34]!==d?(T=()=>d.mutate(),e[34]=d,e[35]=T):T=e[35];let P;e[36]!==d.isPending||e[37]!==i?(P=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=P):P=e[38];let N;e[39]!==h||e[40]!==T||e[41]!==P?(N=s.jsx(z,{onClick:T,disabled:h,children:P}),e[39]=h,e[40]=T,e[41]=P,e[42]=N):N=e[42];let _;e[43]!==g?(_=()=>g.mutate(),e[43]=g,e[44]=_):_=e[44];let I;e[45]!==g.isPending||e[46]!==i?(I=g.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=i,e[47]=I):I=e[47];let O;e[48]!==h||e[49]!==_||e[50]!==I?(O=s.jsx(z,{variant:"ghost",onClick:_,disabled:h,children:I}),e[48]=h,e[49]=_,e[50]=I,e[51]=O):O=e[51];let E;e[52]!==N||e[53]!==O?(E=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,O]}),e[52]=N,e[53]=O,e[54]=E):E=e[54];let R;return e[55]!==j||e[56]!==E||e[57]!==x?(R=s.jsxs(ae,{children:[x,j,E]}),e[55]=j,e[56]=E,e[57]=x,e[58]=R):R=e[58],R}function us(t){const e=D.c(23),{orgName:n,orgLogo:a}=t,o=J();let r;e[0]!==a||e[1]!==n?(r=a?s.jsx(ot,{url:a,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let c;e[5]!==i?(c=s.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==n||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:n}),e[7]=n,e[8]=o,e[9]=m):m=e[9];let f;e[10]!==m?(f=s.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=f):f=e[11];let y;e[12]!==c||e[13]!==f?(y=s.jsxs("div",{className:"space-y-2",children:[c,f]}),e[12]=c,e[13]=f,e[14]=y):y=e[14];let d;e[15]!==o?(d=o("common.goHome"),e[15]=o,e[16]=d):d=e[16];let p;e[17]!==d?(p=s.jsx(z,{variant:"ghost",onClick:ms,children:d}),e[17]=d,e[18]=p):p=e[18];let l;return e[19]!==r||e[20]!==y||e[21]!==p?(l=s.jsxs(ae,{children:[r,y,p]}),e[19]=r,e[20]=y,e[21]=p,e[22]=l):l=e[22],l}function ms(){window.location.href="/"}function fs(t){const e=D.c(45),{orgName:n,orgSlug:a,orgLogo:o,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})}),_=await N.json();if(!N.ok||!_.success)throw new Error(_.error??"Failed to request access");return _},e[0]=a,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=gs,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 y;e[5]!==c||e[6]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[5]=c,e[6]=f,e[7]=y):y=e[7];const d=Je(y);let p;e[8]!==o||e[9]!==n?(p=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=n,e[10]=p):p=e[10];let l;e[11]!==n||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:n}),e[11]=n,e[12]=i,e[13]=l):l=e[13];let b;e[14]!==l?(b=s.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=b):b=e[15];let u;e[16]!==r||e[17]!==i?(u=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=u):u=e[18];let g;e[19]!==u?(g=s.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,e[20]=g):g=e[20];let h;e[21]!==b||e[22]!==g?(h=s.jsxs("div",{className:"space-y-2",children:[b,g]}),e[21]=b,e[22]=g,e[23]=h):h=e[23];let x;e[24]!==d?(x=()=>d.mutate(),e[24]=d,e[25]=x):x=e[25];let S;e[26]!==d.isPending||e[27]!==i?(S=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=S):S=e[28];let v;e[29]!==d.isPending||e[30]!==x||e[31]!==S?(v=s.jsx(z,{onClick:x,disabled:d.isPending,children:S}),e[29]=d.isPending,e[30]=x,e[31]=S,e[32]=v):v=e[32];const w=d.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let j;e[35]!==d.isPending||e[36]!==k?(j=s.jsx(z,{variant:"ghost",onClick:hs,disabled:w,children:k}),e[35]=d.isPending,e[36]=k,e[37]=j):j=e[37];let T;e[38]!==v||e[39]!==j?(T=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=T):T=e[40];let P;return e[41]!==h||e[42]!==T||e[43]!==p?(P=s.jsxs(ae,{children:[p,h,T]}),e[41]=h,e[42]=T,e[43]=p,e[44]=P):P=e[44],P}function hs(){window.location.href="/"}function gs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ps(t){const e=D.c(7);let n;e[0]!==t?(n=Ve.orgAccessStatus(t),e[0]=t,e[1]=n):n=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 o;return e[4]!==n||e[5]!==a?(o={queryKey:n,queryFn:a,refetchOnWindowFocus:!1},e[4]=n,e[5]=a,e[6]=o):o=e[6],Nt(o)}function ys({orgSlug:t}){const{data:e}=ps(t);if(e.status!=="member"){const n=_t()?.org===t;n&&Pt();const a=localStorage.getItem(Ge.lastOrgSlug())===t;if(a&&localStorage.removeItem(Ge.lastOrgSlug()),(n||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?s.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?s.jsx(ds,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?s.jsx(as,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?s.jsx(fs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?s.jsx(us,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):s.jsx(St,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Ft(t){const e=D.c(42),{ariaLabel:n,dismissLabel:a,eyebrow:o,title:r,description:i,icon:c,children:m,footerLeading:f,actions:y,onDismiss:d,tone:p}=t,l=p===void 0?"neutral":p,b=f||y;let u;e[0]!==l?(u=l==="system"&&s.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=u):u=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx($n,{size:14}),e[2]=g):g=e[2];let h;e[3]!==a||e[4]!==d?(h=s.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:g}),e[3]=a,e[4]=d,e[5]=h):h=e[5];const x=c&&"flex items-start gap-3",S=m&&"pb-3";let v;e[6]!==x||e[7]!==S?(v=mt("p-4 pr-11",x,S),e[6]=x,e[7]=S,e[8]=v):v=e[8];let w;e[9]!==c?(w=c&&s.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]=w):w=e[10];let k;e[11]!==o?(k=o&&s.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=k):k=e[12];let j;e[13]!==r?(j=s.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=j):j=e[14];let T;e[15]!==i?(T=i&&s.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=T):T=e[16];let P;e[17]!==j||e[18]!==T||e[19]!==k?(P=s.jsxs("div",{children:[k,j,T]}),e[17]=j,e[18]=T,e[19]=k,e[20]=P):P=e[20];let N;e[21]!==m?(N=m&&s.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let _;e[23]!==P||e[24]!==N?(_=s.jsxs("div",{className:"min-w-0 flex-1",children:[P,N]}),e[23]=P,e[24]=N,e[25]=_):_=e[25];let I;e[26]!==_||e[27]!==v||e[28]!==w?(I=s.jsxs("div",{className:v,children:[w,_]}),e[26]=_,e[27]=v,e[28]=w,e[29]=I):I=e[29];let O;e[30]!==y||e[31]!==f||e[32]!==b||e[33]!==l?(O=b&&s.jsxs("div",{className:mt("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[s.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),s.jsx("div",{className:"flex shrink-0 items-center gap-2",children:y})]}),e[30]=y,e[31]=f,e[32]=b,e[33]=l,e[34]=O):O=e[34];let E;return e[35]!==n||e[36]!==I||e[37]!==O||e[38]!==u||e[39]!==h||e[40]!==l?(E=s.jsxs("div",{role:"dialog","aria-label":n,"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:[u,h,I,O]}),e[35]=n,e[36]=I,e[37]=O,e[38]=u,e[39]=h,e[40]=l,e[41]=E):E=e[41],E}const bs={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 qt(t){return`[data-tour="${bs[t]}"]`}const xs=[{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 Ss(t){return xs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ws(t,e){return Ss(e).map(n=>({element:qt(n.anchor),popover:{title:t(n.titleKey),description:t(n.descKey),side:n.side,align:"center"}}))}const vs=qt("switcher"),js=30;function Mt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ts(t,e){return ws(t,e).filter(n=>typeof n.element=="string"&&Mt(n.element))}function ks(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:(n,{driver:a})=>{if(n.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>a.destroy()),n.footerButtons.insertBefore(o,n.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function Ns(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function _s(t,e){if(He)return;He=!0;let n=0;const a=()=>{if(!Mt(vs)&&n++<js){requestAnimationFrame(a);return}const o=Ts(t,e);if(o.length===0){He=!1;return}Ns().then(r=>{r(ks(t,o)).drive()}).catch(()=>{He=!1})};a()}function Ps(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return Ps(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function Bt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ri(t){return t.reportsOnly&&!t.onReportAgent&&Bt(t.tabId)}const Kt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:bt,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:at,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:Nn,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:ft,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:Z,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:bt,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:Z,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:Z,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:Z,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:Z,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:Z,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:Z,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:at,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:ft,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:Z,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:at,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:Z,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:_n,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],st="studio.release-feed.v1",lt=new Set;let oe="",ie={},ct=!1;function As(){if(ct)return oe||"{}";try{return localStorage.getItem(st)??"{}"}catch{return oe||"{}"}}function Ht(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=As();return t!==oe&&(oe=t,ie=Ht(t)),ie}function Is(t){lt.add(t);const e=n=>{if(!(n.key!==st&&n.key!==null)){try{const a=localStorage.getItem(st)??"{}",r={...Ht(a),...ie};ie=r,oe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{lt.delete(t),window.removeEventListener("storage",e)}}function Cs(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(st,oe),ct=!1}catch{ct=!0}lt.forEach(e=>e())}function Es(){const t=D.c(7),e=G.useSyncExternalStore(Is,wt,wt);let n;t[0]!==e?(n=m=>!!e[m],t[0]=e,t[1]=n):n=t[1];const a=n,o=Os;let r;t[2]!==e?(r=Kt.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:o,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function Os(t){ie[t]||Cs({...ie,[t]:{seenAt:new Date().toISOString()}})}const vt=new Map;function Ut(t){let e=vt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},vt.set(t,e)),e}function $s(t,e){const n=Ut(t);return n.subscribers.add(e),n.intervalId===null&&(n.intervalId=setInterval(()=>{n.now=Date.now();for(const a of n.subscribers)a()},t)),()=>{n.subscribers.delete(e),n.subscribers.size===0&&n.intervalId!==null&&(clearInterval(n.intervalId),n.intervalId=null)}}function Ls(t){const e=D.c(4),n=t===void 0?6e4:t;let a;e[0]!==n?(a=()=>Ut(n).now,e[0]=n,e[1]=a):a=e[1];const o=a;let r;return e[2]!==n?(r=i=>$s(n,i),e[2]=n,e[3]=r):r=e[3],G.useSyncExternalStore(r,o,o)}const Ds=720*60*60*1e3,Rs=10080*60*1e3;function zs(t){const[e,n,a]=t.split("-").map(Number);return!e||!n||!a?new Date(t).getTime():new Date(e,n-1,a).getTime()}function Fs(t){const e=Kt[0];if(!e)return null;const n=zs(e.date),a=t-n;return a<0||a>Ds?null:e}function qs(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 Ms(t,e){const n=qs(t);return n===null?!1:e-n>=Rs}function Bs(){const t=D.c(46),e=J(),n=Ln(),a=Xt(),o=zt(),r=!!n,i=a===ee.home&&!n;let c;t[0]!==o||t[1]!==r?(c=r&&!!o&&Bt(o),t[0]=o,t[1]=r,t[2]=c):c=t[2];const m=c,{data:f}=Me.useSession(),{isSeen:y,markSeen:d}=Es(),p=Ls(6e4);let l,b,u;if(t[3]!==y||t[4]!==p||t[5]!==f?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{if(l=Fs(p),!l){u=null;break e}if(!Ms(f?.user?.createdAt,p)){u=null;break e}b=y(l.id)}t[3]=y,t[4]=p,t[5]=f?.user?.createdAt,t[6]=l,t[7]=b,t[8]=u}else l=t[6],b=t[7],u=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(b)return null;let g;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==m||t[14]!==e?(g=()=>{d(l.id),_s(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]=g):g=t[15];const h=g;let x;t[16]!==e?(x=e("announcements.release.ariaLabel"),t[16]=e,t[17]=x):x=t[17];let S;t[18]!==e?(S=e("announcements.release.dismiss"),t[18]=e,t[19]=S):S=t[19];const v=l.eyebrow,w=l.title;let k;t[20]!==l.id||t[21]!==d?(k=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=k):k=t[22];let j;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(j=l.learnMoreHref?s.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]=j):j=t[27];let T;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==h?(T=l.cta?"href"in l.cta?s.jsx(z,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:s.jsx("a",{href:l.cta.href,children:l.cta.label})}):s.jsx(z,{size:"sm",onClick:h,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=h,t[32]=T):T=t[32];let P;t[33]!==l.bullets?(P=l.bullets.map(Ks),t[33]=l.bullets,t[34]=P):P=t[34];let N;t[35]!==P?(N=s.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=N):N=t[36];let _;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==T||t[40]!==N||t[41]!==x||t[42]!==S||t[43]!==k||t[44]!==j?(_=s.jsx(Ft,{ariaLabel:x,dismissLabel:S,eyebrow:v,title:w,onDismiss:k,footerLeading:j,actions:T,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=T,t[40]=N,t[41]=x,t[42]=S,t[43]=k,t[44]=j,t[45]=_):_=t[45],_}function Ks(t,e){return s.jsxs("li",{className:"flex items-start gap-3",children:[s.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),s.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Hs(t){const e=D.c(11),{open:n,onOpenChange:a}=t,o=J();let r;e[0]!==o?(r=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=r):r=e[1];let i;e[2]!==r?(i=s.jsx(At,{children:s.jsx(It,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"flex flex-col gap-4",children:Zt.map(Us)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsxs(Ct,{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]!==n||e[9]!==m?(f=s.jsx(Et,{open:n,onOpenChange:a,children:m}),e[7]=a,e[8]=n,e[9]=m,e[10]=f):f=e[10],f}function Us(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Js)})]},t.label)}function Js(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Gs)})]},t.description)}function Gs(t){return s.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 jt=8;function Vs(t){const{org:e}=dt(),n=Gn({connectionId:$t,orgId:e.id,orgSlug:e.slug}),{data:a}=Be({queryKey:Ve.globalSearch(e.id,t,jt),enabled:!!n&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!n)return[];try{return(await n.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Ws(t){const e=D.c(197),{open:n,onOpenChange:a}=t,o=J(),r=Ot(),{org:i}=dt(),{projects:c,hasProjects:m}=Dn(),{remember:f}=Jn(i.slug),[y,d]=G.useState(""),p=G.useDeferredValue(y),l=Vs(p);let b;e[0]!==a?(b=()=>{a(!1),d("")},e[0]=a,e[1]=b):b=e[1];const u=b;let g;e[2]!==u?(g=(q,K)=>{rt("command_palette_used",{kind:K}),q(),u()},e[2]=u,e[3]=g):g=e[3];const h=g;let x;e[4]!==r||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.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:q.slug}});return}if(q.type==="task"){r({to:ee.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const K=Lt(i.id).id;en(r,tn({org:i.slug,agentId:q.virtual_mcp_id??K,superAgentId:K}),{search:()=>({thread:q.id}),replace:!1})},e[4]=r,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let v;e[8]!==y?(v=[y],e[8]=y,e[9]=v):v=e[9];const w=v;let k,j,T,P,N,_,I,O,E,R,A,F,M;if(e[10]!==u||e[11]!==h||e[12]!==m||e[13]!==l||e[14]!==r||e[15]!==a||e[16]!==n||e[17]!==S||e[18]!==i.slug||e[19]!==c||e[20]!==f||e[21]!==w||e[22]!==o||e[23]!==y){const q=l.filter(Qs),K=l.filter(Ys);let Q;e[37]!==i.slug?(Q={org:i.slug},e[37]=i.slug,e[38]=Q):Q=e[38];const $=Q;let H;e[39]!==o?(H=o("sidebar.navDestinations.home"),e[39]=o,e[40]=H):H=e[40];let W;e[41]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(An,{"aria-hidden":"true"}),e[41]=W):W=e[41];let U;e[42]!==$||e[43]!==H?(U={key:"home",label:H,icon:W,to:ee.home,params:$},e[42]=$,e[43]=H,e[44]=U):U=e[44];let Y;e[45]!==o?(Y=o("sidebar.navDestinations.reports"),e[45]=o,e[46]=Y):Y=e[46];let X;e[47]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(In,{"aria-hidden":"true"}),e[47]=X):X=e[47];let L;e[48]!==$||e[49]!==Y?(L={key:"reports",label:Y,icon:X,to:ee.reports,params:$},e[48]=$,e[49]=Y,e[50]=L):L=e[50];let B;e[51]!==o?(B=o("sidebar.navDestinations.tasks"),e[51]=o,e[52]=B):B=e[52];let We;e[53]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsx(yt,{"aria-hidden":"true"}),e[53]=We):We=e[53];let re;e[54]!==i.slug?(re={org:i.slug,taskKey:void 0},e[54]=i.slug,e[55]=re):re=e[55];let le;e[56]!==B||e[57]!==re?(le={key:"tasks",label:B,icon:We,to:ee.tasks,params:re},e[56]=B,e[57]=re,e[58]=le):le=e[58];let ce;e[59]!==o?(ce=o("sidebar.navDestinations.library"),e[59]=o,e[60]=ce):ce=e[60];let Ye;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ye=s.jsx(Cn,{"aria-hidden":"true"}),e[61]=Ye):Ye=e[61];let de;e[62]!==$||e[63]!==ce?(de={key:"library",label:ce,icon:Ye,to:ee.library,params:$},e[62]=$,e[63]=ce,e[64]=de):de=e[64];let ue;e[65]!==o?(ue=o("sidebar.navDestinations.discover"),e[65]=o,e[66]=ue):ue=e[66];let Qe;e[67]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx(En,{"aria-hidden":"true"}),e[67]=Qe):Qe=e[67];let me;e[68]!==$||e[69]!==ue?(me={key:"discover",label:ue,icon:Qe,to:ee.discover,params:$},e[68]=$,e[69]=ue,e[70]=me):me=e[70];let Xe;e[71]!==U||e[72]!==L||e[73]!==le||e[74]!==de||e[75]!==me?(Xe=[U,L,le,de,me],e[71]=U,e[72]=L,e[73]=le,e[74]=de,e[75]=me,e[76]=Xe):Xe=e[76];const it=Xe;j=qn,P=n,e[77]!==u||e[78]!==a?(N=C=>C?a(!0):u(),e[77]=u,e[78]=a,e[79]=N):N=e[79],e[80]!==o?(_=o("commandPalette.title"),e[80]=o,e[81]=_):_=e[81],e[82]!==o?(I=o("commandPalette.description"),e[82]=o,e[83]=I):I=e[83];let fe;e[84]!==o?(fe=o("commandPalette.placeholder"),e[84]=o,e[85]=fe):fe=e[85];let he;e[86]!==o?(he=o("commandPalette.placeholder"),e[86]=o,e[87]=he):he=e[87],e[88]!==fe||e[89]!==he||e[90]!==y?(O=s.jsx(Mn,{placeholder:fe,"aria-label":he,value:y,onValueChange:d}),e[88]=fe,e[89]=he,e[90]=y,e[91]=O):O=e[91],k=Bn;let ge;e[92]!==o?(ge=o("commandPalette.empty"),e[92]=o,e[93]=ge):ge=e[93],e[94]!==ge?(E=s.jsx(Kn,{children:ge}),e[94]=ge,e[95]=E):E=e[95];let pe;e[96]!==o?(pe=o("commandPalette.goTo"),e[96]=o,e[97]=pe):pe=e[97];let ye;e[98]!==it||e[99]!==h||e[100]!==r?(ye=it.map(C=>s.jsxs(ne,{onSelect:()=>h(()=>r({to:C.to,params:C.params}),"destination"),children:[C.icon,s.jsx("span",{children:C.label})]},C.key)),e[98]=it,e[99]=h,e[100]=r,e[101]=ye):ye=e[101],e[102]!==pe||e[103]!==ye?(R=s.jsx(Ke,{heading:pe,children:ye}),e[102]=pe,e[103]=ye,e[104]=R):R=e[104],e[105]!==h||e[106]!==m||e[107]!==r||e[108]!==i.slug||e[109]!==c||e[110]!==f||e[111]!==o?(A=m&&s.jsx(Ke,{heading:o("commandPalette.projects"),children:c.map(C=>s.jsxs(ne,{value:`project ${C.title}`,onSelect:()=>h(()=>{f(C.id),r({to:ee.projects,params:{org:i.slug,agentId:C.id}})},"project"),children:[s.jsx(Un,{icon:C.icon,name:C.title,"aria-hidden":"true"}),s.jsx("span",{children:C.title})]},C.id))}),e[105]=h,e[106]=m,e[107]=r,e[108]=i.slug,e[109]=c,e[110]=f,e[111]=o,e[112]=A):A=e[112];let be;e[113]!==o?(be=o("commandPalette.actions"),e[113]=o,e[114]=be):be=e[114];let xe;e[115]!==o?(xe=o("commandPalette.newProject"),e[115]=o,e[116]=xe):xe=e[116];let Se;e[117]!==h||e[118]!==r||e[119]!==$?(Se=()=>h(()=>r({to:ee.home,params:$}),"new_project"),e[117]=h,e[118]=r,e[119]=$,e[120]=Se):Se=e[120];let Ze;e[121]===Symbol.for("react.memo_cache_sentinel")?(Ze=s.jsx(xt,{"aria-hidden":"true"}),e[121]=Ze):Ze=e[121];let we;e[122]!==o?(we=o("commandPalette.newProject"),e[122]=o,e[123]=we):we=e[123];let ve;e[124]!==we?(ve=s.jsx("span",{children:we}),e[124]=we,e[125]=ve):ve=e[125];let je;e[126]!==xe||e[127]!==Se||e[128]!==ve?(je=s.jsxs(ne,{value:xe,onSelect:Se,children:[Ze,ve]}),e[126]=xe,e[127]=Se,e[128]=ve,e[129]=je):je=e[129];let Te;e[130]!==o?(Te=o("commandPalette.inviteTeammate"),e[130]=o,e[131]=Te):Te=e[131];let ke;e[132]!==h||e[133]!==r||e[134]!==$?(ke=()=>h(()=>r({to:"/$org/settings/members",params:$}),"invite"),e[132]=h,e[133]=r,e[134]=$,e[135]=ke):ke=e[135];let et;e[136]===Symbol.for("react.memo_cache_sentinel")?(et=s.jsx(On,{"aria-hidden":"true"}),e[136]=et):et=e[136];let Ne;e[137]!==o?(Ne=o("commandPalette.inviteTeammate"),e[137]=o,e[138]=Ne):Ne=e[138];let _e;e[139]!==Ne?(_e=s.jsx("span",{children:Ne}),e[139]=Ne,e[140]=_e):_e=e[140];let Pe;e[141]!==Te||e[142]!==ke||e[143]!==_e?(Pe=s.jsxs(ne,{value:Te,onSelect:ke,children:[et,_e]}),e[141]=Te,e[142]=ke,e[143]=_e,e[144]=Pe):Pe=e[144];let Ae;e[145]!==o?(Ae=o("commandPalette.addConnection"),e[145]=o,e[146]=Ae):Ae=e[146];let Ie;e[147]!==h||e[148]!==r||e[149]!==$?(Ie=()=>h(()=>r({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[147]=h,e[148]=r,e[149]=$,e[150]=Ie):Ie=e[150];let tt;e[151]===Symbol.for("react.memo_cache_sentinel")?(tt=s.jsx(xt,{"aria-hidden":"true"}),e[151]=tt):tt=e[151];let Ce;e[152]!==o?(Ce=o("commandPalette.addConnection"),e[152]=o,e[153]=Ce):Ce=e[153];let Ee;e[154]!==Ce?(Ee=s.jsx("span",{children:Ce}),e[154]=Ce,e[155]=Ee):Ee=e[155];let Oe;e[156]!==Ae||e[157]!==Ie||e[158]!==Ee?(Oe=s.jsxs(ne,{value:Ae,onSelect:Ie,children:[tt,Ee]}),e[156]=Ae,e[157]=Ie,e[158]=Ee,e[159]=Oe):Oe=e[159];let $e;e[160]!==o?($e=o("commandPalette.settings"),e[160]=o,e[161]=$e):$e=e[161];let Le;e[162]!==h||e[163]!==r||e[164]!==$?(Le=()=>h(()=>r({to:"/$org/settings/general",params:$}),"settings"),e[162]=h,e[163]=r,e[164]=$,e[165]=Le):Le=e[165];let nt;e[166]===Symbol.for("react.memo_cache_sentinel")?(nt=s.jsx(Fn,{"aria-hidden":"true"}),e[166]=nt):nt=e[166];let De;e[167]!==o?(De=o("commandPalette.settings"),e[167]=o,e[168]=De):De=e[168];let Re;e[169]!==De?(Re=s.jsx("span",{children:De}),e[169]=De,e[170]=Re):Re=e[170];let ze;e[171]!==$e||e[172]!==Le||e[173]!==Re?(ze=s.jsxs(ne,{value:$e,onSelect:Le,children:[nt,Re]}),e[171]=$e,e[172]=Le,e[173]=Re,e[174]=ze):ze=e[174],e[175]!==be||e[176]!==je||e[177]!==Pe||e[178]!==Oe||e[179]!==ze?(F=s.jsxs(Ke,{heading:be,children:[je,Pe,Oe,ze]}),e[175]=be,e[176]=je,e[177]=Pe,e[178]=Oe,e[179]=ze,e[180]=F):F=e[180],M=q.length>0&&s.jsx(Ke,{heading:o("commandPalette.connections"),children:q.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:w,onSelect:()=>h(()=>S(C),"connection"),children:[s.jsx(Hn,{icon:C.icon,name:C.title,size:"2xs","aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title})]},`connection:${C.id}`))}),T=K.length>0&&s.jsx(Ke,{heading:o("commandPalette.results"),children:K.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:w,onSelect:()=>h(()=>S(C),C.type),children:[C.type==="thread"?s.jsx(Pn,{"aria-hidden":"true"}):s.jsx(yt,{"aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title}),C.type==="task"&&C.key&&s.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:C.key})]},`${C.type}:${C.id}`))}),e[10]=u,e[11]=h,e[12]=m,e[13]=l,e[14]=r,e[15]=a,e[16]=n,e[17]=S,e[18]=i.slug,e[19]=c,e[20]=f,e[21]=w,e[22]=o,e[23]=y,e[24]=k,e[25]=j,e[26]=T,e[27]=P,e[28]=N,e[29]=_,e[30]=I,e[31]=O,e[32]=E,e[33]=R,e[34]=A,e[35]=F,e[36]=M}else k=e[24],j=e[25],T=e[26],P=e[27],N=e[28],_=e[29],I=e[30],O=e[31],E=e[32],R=e[33],A=e[34],F=e[35],M=e[36];let V;e[181]!==k||e[182]!==T||e[183]!==E||e[184]!==R||e[185]!==A||e[186]!==F||e[187]!==M?(V=s.jsxs(k,{children:[E,R,A,F,M,T]}),e[181]=k,e[182]=T,e[183]=E,e[184]=R,e[185]=A,e[186]=F,e[187]=M,e[188]=V):V=e[188];let te;return e[189]!==j||e[190]!==P||e[191]!==N||e[192]!==_||e[193]!==I||e[194]!==O||e[195]!==V?(te=s.jsxs(j,{open:P,onOpenChange:N,title:_,description:I,children:[O,V]}),e[189]=j,e[190]=P,e[191]=N,e[192]=_,e[193]=I,e[194]=O,e[195]=V,e[196]=te):te=e[196],te}function Ys(t){return t.type!=="connection"}function Qs(t){return t.type==="connection"}const Ue=new Xn(!1);function Xs(){Ue.set(!0)}function Zs(){Ue.set(!1)}function eo(){const t=D.c(2),e=G.useSyncExternalStore(Ue.subscribe,Ue.get);let n;return t[0]!==e?(n=[e,Ue.set],t[0]=e,t[1]=n):n=t[1],n}const to=300*1e3,no=2;function so(t,e,n){return!e||e===n?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function oo(t,e){return t.count>=no&&t.version!==null&&t.version!==e}function io(){const t=D.c(31),e=J();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:Ve.appVersionCheck(),queryFn:ro,refetchInterval:to,refetchIntervalInBackground:!0,staleTime:0},t[0]=n):n=t[0];const{data:a,dataUpdatedAt:o}=Be(n),[r,i]=G.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]=G.useState(c);o!==r&&(i(o),f(T=>so(T,a,"4.563.0")));const[y,d]=G.useState(null);if(!oo(m,y))return null;let p;t[2]!==e?(p=e("announcements.version.ariaLabel"),t[2]=e,t[3]=p):p=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let b;t[6]!==e?(b=e("announcements.version.eyebrow"),t[6]=e,t[7]=b):b=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=t[9];let g;t[10]!==e?(g=e("announcements.version.description"),t[10]=e,t[11]=g):g=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ht,{size:16}),t[12]=h):h=t[12];let x;t[13]!==m.version?(x=()=>d(m.version),t[13]=m.version,t[14]=x):x=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.563.0"}),t[15]=e,t[16]=S):S=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ht,{size:14}),t[19]=w):w=t[19];let k;t[20]!==v?(k=s.jsxs(z,{size:"sm",onClick:ao,children:[v,w]}),t[20]=v,t[21]=k):k=t[21];let j;return t[22]!==k||t[23]!==p||t[24]!==l||t[25]!==b||t[26]!==u||t[27]!==g||t[28]!==x||t[29]!==S?(j=s.jsx(Ft,{ariaLabel:p,dismissLabel:l,eyebrow:b,title:u,description:g,icon:h,tone:"system",onDismiss:x,footerLeading:S,actions:k}),t[22]=k,t[23]=p,t[24]=l,t[25]=b,t[26]=u,t[27]=g,t[28]=x,t[29]=S,t[30]=j):j=t[30],j}function ao(){return window.location.reload()}async function ro(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function lo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const co=Date.parse("2026-07-21T00:00:00Z"),Tt=t=>lo(Ge.ptBrAnnouncementSeen(t));function uo(){const t=D.c(35),e=J(),[n,a]=nn(),{data:o,isPending:r}=Me.useSession(),i=o?.user,c=i?.id,m=i?.createdAt,f=m!=null&&new Date(m).getTime()<co,y=sn()==="pt-BR",d=!r&&!!c&&f&&y&&n.language==="en"&&!Tt(c).has(),[p,l]=G.useState(!1),[b,u]=G.useState(!1);!p&&!r&&(l(!0),d&&c&&(Tt(c).mark(),a(fo),u(!0),rt("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=V=>{rt("pt_br_auto_switch_closed",{action:V}),u(!1)},t[0]=g):g=t[0];const h=g;let x;t[1]!==a?(x=()=>{a(mo),h("switch-back")},t[1]=a,t[2]=x):x=t[2];const S=x;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=V=>!V&&h("dismiss"),t[3]=v):v=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let j;t[7]!==k?(j=s.jsx(It,{children:k}),t[7]=k,t[8]=j):j=t[8];let T;t[9]!==e?(T=e("announcements.ptBr.description"),t[9]=e,t[10]=T):T=t[10];let P;t[11]!==T?(P=s.jsx(on,{children:T}),t[11]=T,t[12]=P):P=t[12];let N;t[13]!==j||t[14]!==P?(N=s.jsxs(At,{children:[j,P]}),t[13]=j,t[14]=P,t[15]=N):N=t[15];let _;t[16]!==e?(_=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=_):_=t[17];let I;t[18]!==S||t[19]!==_?(I=s.jsx(z,{variant:"outline",onClick:S,children:_}),t[18]=S,t[19]=_,t[20]=I):I=t[20];let O;t[21]===Symbol.for("react.memo_cache_sentinel")?(O=()=>h("ok"),t[21]=O):O=t[21];let E;t[22]!==e?(E=e("announcements.ptBr.ok"),t[22]=e,t[23]=E):E=t[23];let R;t[24]!==E?(R=s.jsx(z,{onClick:O,children:E}),t[24]=E,t[25]=R):R=t[25];let A;t[26]!==I||t[27]!==R?(A=s.jsxs(an,{children:[I,R]}),t[26]=I,t[27]=R,t[28]=A):A=t[28];let F;t[29]!==A||t[30]!==N?(F=s.jsxs(Ct,{className:"sm:max-w-md",children:[w,N,A]}),t[29]=A,t[30]=N,t[31]=F):F=t[31];let M;return t[32]!==b||t[33]!==F?(M=s.jsx(Et,{open:b,onOpenChange:v,children:F}),t[32]=b,t[33]=F,t[34]=M):M=t[34],M}function mo(t){return{...t,language:"en"}}function fo(t){return{...t,language:"pt-BR"}}function ho(t){const e=rn(t);return typeof e=="string"?e:void 0}function go(){return ho("experiment-pipeline-check"),null}function po(t){const e=D.c(1),{activeOrg:n}=t;if(!n)return null;ln(n.id,{name:n.name??void 0,slug:n.slug??void 0}),cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(go,{}),e[0]=a):a=e[0],a}function yo(t){const{prev:e,virtualMcpId:n,decopilotId:a,savedLayout:o,opts:r,autosendValue:i}=t,c={mainpanel:void 0};n?c.virtualmcpid=n:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,y=(n??m)!==m;let d,p;return r?.panel?p=r.panel:r?.newThread&&!y&&dn(e.tabId)?(p=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):o?(p=o.tab,o.sidepanel!==void 0&&(d=o.sidepanel),o.mainpanel!==void 0&&(c.mainpanel=o.mainpanel)):!y&&e.tabId&&!un(e.tabId)&&(p=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:p,search:c}}const Jt="studio:thread-layout:v4",bo=50;function Gt(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 xo(t,e,n,a=bo){const o=t.filter(([r])=>r!==e);for(o.push([e,Gt(n)]);o.length>a;)o.shift();return o}function ut(){try{const t=sessionStorage.getItem(Jt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&n.length===2&&typeof n[0]=="string"):[]}catch{return[]}}function Vt(t){try{sessionStorage.setItem(Jt,JSON.stringify(t))}catch{}}function So(t,e){t&&Vt(xo(ut(),t,e))}function wo(t){if(!t)return null;const e=ut().find(([n])=>n===t);return e?Gt(e[1]):null}function li(t){if(!t)return;const e=ut(),n=e.filter(([a])=>a!==t);n.length!==e.length&&Vt(n)}function Wt(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 ci(t){const e=D.c(10);let n;e[0]!==t?(n=Wt(t),e[0]=t,e[1]=n):n=e[1];const a=Be(n);let o;e[2]!==a.data?.prompts?(o=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=o):o=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]!==o||e[8]!==r?(i={isLoading:a.isLoading,prompts:o,tiles:r},e[6]=a.isLoading,e[7]=o,e[8]=r,e[9]=i):i=e[9],i}function vo(t){const e=D.c(31),{orgSlug:n,orgName:a,domain:o}=t,r=J();let i;e[0]!==n?(i=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=i):i=e[1];const c=i,m=jo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let y;e[3]!==r?(y=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=y):y=e[4];let d;e[5]!==y?(d=s.jsx("h3",{className:"text-lg font-medium",children:y}),e[5]=y,e[6]=d):d=e[6];let p;e[7]!==o||e[8]!==a||e[9]!==r?(p=a?s.jsxs(s.Fragment,{children:[s.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${r("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=a,e[9]=r,e[10]=p):p=e[10];let l;e[11]!==p?(l=s.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=l):l=e[12];let b;e[13]!==d||e[14]!==l?(b=s.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=b):b=e[15];let u;e[16]!==r?(u=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=u):u=e[17];let g;e[18]!==c||e[19]!==u?(g=s.jsx(z,{onClick:c,children:u}),e[18]=c,e[19]=u,e[20]=g):g=e[20];let h;e[21]!==r?(h=r("common.goBack"),e[21]=r,e[22]=h):h=e[22];let x;e[23]!==h?(x=s.jsx(z,{variant:"ghost",onClick:m,children:h}),e[23]=h,e[24]=x):x=e[24];let S;e[25]!==x||e[26]!==g?(S=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,x]}),e[25]=x,e[26]=g,e[27]=S):S=e[27];let v;return e[28]!==S||e[29]!==b?(v=s.jsxs(ae,{children:[f,b,S]}),e[28]=S,e[29]=b,e[30]=v):v=e[30],v}function jo(){window.location.href="/"}function To(t){const e=D.c(27),{notice:n,orgSlug:a}=t,o=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(mn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==n.title?(i=s.jsx("h3",{className:"text-lg font-medium",children:n.title}),e[1]=n.title,e[2]=i):i=e[2];let c;e[3]!==n.message?(c=s.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:n.message}),e[3]=n.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=s.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]!==n.ctaLabel||e[9]!==n.ctaUrl?(f=n.ctaUrl&&n.ctaLabel?s.jsx(z,{asChild:!0,children:s.jsx("a",{href:n.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:n.ctaLabel})}):null,e[8]=n.ctaLabel,e[9]=n.ctaUrl,e[10]=f):f=e[10];const y=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==o?(d=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=d):d=e[12];let p;e[13]!==y||e[14]!==d?(p=s.jsx(z,{variant:"outline",asChild:!0,children:s.jsx("a",{href:y,children:d})}),e[13]=y,e[14]=d,e[15]=p):p=e[15];let l;e[16]!==o?(l=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=l):l=e[17];let b;e[18]!==l?(b=s.jsx(z,{variant:"ghost",asChild:!0,children:s.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=b):b=e[19];let u;e[20]!==b||e[21]!==f||e[22]!==p?(u=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,p,b]}),e[20]=b,e[21]=f,e[22]=p,e[23]=u):u=e[23];let g;return e[24]!==u||e[25]!==m?(g=s.jsxs(ae,{children:[r,m,u]}),e[24]=u,e[25]=m,e[26]=g):g=e[26],g}function ko(t){const e=D.c(8);let n;e[0]!==t?(n=Ve.orgNotice(t??""),e[0]=t,e[1]=n):n=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 o=!!t;let r;return e[4]!==n||e[5]!==a||e[6]!==o?(r={queryKey:n,queryFn:a,enabled:o,staleTime:6e4},e[4]=n,e[5]=a,e[6]=o,e[7]=r):r=e[7],Be(r)}const No="/settings/infra-billing";function _o(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(No)}function Po(t){const e=D.c(7),{org:n,children:a}=t;let o;e[0]!==n.id||e[1]!==n.name?(o={id:n.id,organizationId:n.id,slug:"_org",name:n.name,ui:null},e[0]=n.id,e[1]=n.name,e[2]=o):o=e[2];const r=o;let i;return e[3]!==a||e[4]!==n||e[5]!==r?(i=s.jsx(Sn,{org:n,project:r,children:a}),e[3]=a,e[4]=n,e[5]=r,e[6]=i):i=e[6],i}function Ao(){const t=Ot(),e=Zn(),{org:n}=dt(),a=fn({strict:!1}),o=zt(),{openPanel:r,closePanel:i}=Rn(),c=ts(),m=ns(),f=ss(),y=os(),d=(u,g=!0)=>t({to:".",search:u,replace:g}),p=()=>d(u=>({...u,sidepanel:!0})),l=(u,g,h)=>{const x=!!m&&m===u;m&&!x&&So(m,{tab:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const S=x?null:wo(u),v=Lt(n.id).id,w=yo({prev:{virtualmcpid:c,tabId:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:g,decopilotId:v,savedLayout:S,opts:h,autosendValue:zn});return y(u,()=>w.search,{virtualMcpId:g,view:{tabId:w.tabId}})};return{openSidePanel:p,setTaskId:l,createNewTask:async(u,g,h)=>{const x=crypto.randomUUID(),S=u??f;try{await e?.create({id:x,virtual_mcp_id:S,...g?{branch:g}:{}})}catch{}l(x,S,{...h,newThread:!0})},openTab:r,closeTab:i}}const Io=new Set(["/$org/","/$org/home"]);function Co(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Eo},t[0]=e):e=t[0],Dt(e)}function Eo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&Io.has(e)}function Oo(){const t=D.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=hn(e)?.params.org,[o,r]=G.useState(!1),[i,c]=eo(),[m,f]=Wn(),y=gn(),d=Co(),p=a??"";let l;t[1]!==p?(l=Wt(p),t[1]=p,t[2]=l):l=t[2];const b=!!a&&d;let u;t[3]!==l||t[4]!==b?(u={...l,enabled:b},t[3]=l,t[4]=b,t[5]=u):u=t[5],Be(u);const{data:g}=Me.useSession(),h=g?.user?.id;let x,S;t[6]!==y?(x=()=>{const L=B=>{if(pt(B)&&B.code==="KeyK"){B.preventDefault(),Xs();return}if(B.key==="?"&&!xn(B.target)){B.preventDefault(),r(!0);return}pt(B)&&B.code==="BracketLeft"&&y.history.canGoBack()&&(B.preventDefault(),y.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},S=[y],t[6]=y,t[7]=x,t[8]=S):(x=t[7],S=t[8]),G.useEffect(x,S);let v;t[9]!==a||t[10]!==h?(v=pn(a,h),t[9]=a,t[10]=h,t[11]=v):v=t[11];const{data:w}=Nt(v),k=w?.id,j=w?.slug,{data:T}=is(k,j),P=!!T?.ssoRequired&&!T.authenticated,{data:N}=ko(j);let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_={select:$o},t[12]=_):_=t[12];const I=Dt(_),O=N?.severity==="block"&&!_o(I),E=k??"",R=j??"";let A;t[13]!==R||t[14]!==E?(A=Vn({connectionId:$t,orgId:E,orgSlug:R}),t[13]=R,t[14]=E,t[15]=A):A=t[15];const F=!!k&&!!j;let M;if(t[16]!==A||t[17]!==F?(M={...A,enabled:F},t[16]=A,t[17]=F,t[18]=M):M=t[18],Be(M),(!w||gt(w)||P||O)&&Zs(),!w){let L;return t[19]!==a?(L=s.jsx(ys,{orgSlug:a}),t[19]=a,t[20]=L):L=t[20],L}if(gt(w)){localStorage.getItem(Ge.lastOrgSlug())===a&&localStorage.removeItem(Ge.lastOrgSlug()),_t()?.org===a&&Pt();let L;return t[21]!==w.name?(L=s.jsx(yn,{orgName:w.name}),t[21]=w.name,t[22]=L):L=t[22],L}if(O&&N){let L;return t[23]!==w.slug||t[24]!==N?(L=s.jsx(To,{notice:N,orgSlug:w.slug}),t[23]=w.slug,t[24]=N,t[25]=L):L=t[25],L}if(P){let L;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==T.domain?(L=s.jsx(vo,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:T.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=T.domain,t[30]=L):L=t[30],L}const te=w.logo??null;let q;t[31]!==w||t[32]!==te?(q={...w,logo:te},t[31]=w,t[32]=te,t[33]=q):q=t[33];let K;t[34]!==w?(K=s.jsx(po,{activeOrg:w}),t[34]=w,t[35]=K):K=t[35];let Q;t[36]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(bn,{}),t[36]=Q):Q=t[36];let $;t[37]===Symbol.for("react.memo_cache_sentinel")?($=s.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[s.jsx(Bs,{}),s.jsx(io,{})]}),t[37]=$):$=t[37];let H;t[38]!==i||t[39]!==c?(H=i&&s.jsx(Ws,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=H):H=t[40];let W;t[41]!==m||t[42]!==f?(W=m&&s.jsx(Yn,{open:!0,onOpenChange:f,source:Qn()}),t[41]=m,t[42]=f,t[43]=W):W=t[43];let U;t[44]!==o?(U=s.jsx(Hs,{open:o,onOpenChange:r}),t[44]=o,t[45]=U):U=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(uo,{}),t[46]=Y):Y=t[46];let X;return t[47]!==q||t[48]!==K||t[49]!==H||t[50]!==W||t[51]!==U?(X=s.jsxs(Po,{org:q,children:[K,Q,$,H,W,U,Y]}),t[47]=q,t[48]=K,t[49]=H,t[50]=W,t[51]=U,t[52]=X):X=t[52],X}function $o(t){return t.location.pathname}function Lo(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(es,{children:s.jsx(Oo,{})}),t[0]=e):e=t[0],e}const di=Object.freeze(Object.defineProperty({__proto__:null,default:Lo,usePanelActions:Ao},Symbol.toStringTag,{value:"Module"}));export{bs as L,Ao as a,Ls as b,Ps as c,ci as d,di as e,li as f,Bt as i,ai as r,ri as s,ko as u};