decocms 4.579.2 → 4.580.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/dist/client/assets/{AlertCircle-CTbjWy6O.js → AlertCircle-DuMz-jFi.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DwuVDkrD.js → AreaChart-BqIC3e-u.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-XFXQyKrg.js → ArrowLeft-5NT3k46C.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-BGhmN6Zx.js → ArrowUp-D5JWz7Yq.js} +1 -1
  5. package/dist/client/assets/{BookOpen01-BPEekJOY.js → BookOpen01-m1uNXDEc.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-CyLm4xQH.js → CartesianChart-D9oScPZv.js} +1 -1
  7. package/dist/client/assets/{CategoricalChart-BaZiYgxE.js → CategoricalChart-BR_4thmy.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-D_eKfCyb.js → CheckCircle-DAPdRkcW.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-B8yNz6I1.js → ChevronSelectorVertical-5fTMRN5v.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-DJytO9gL.js → ChevronUp-BaKxA_AU.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-D8vcOfs6.js → CreditCard01-BU3Icpfr.js} +1 -1
  12. package/dist/client/assets/{Globe04-B6PnEpLB.js → Globe04-KZ-J2ZUi.js} +1 -1
  13. package/dist/client/assets/{Key01-CqlMd8Tp.js → Key01-RIzbDsEi.js} +1 -1
  14. package/dist/client/assets/{LinkBroken01-BrTHjhI6.js → LinkBroken01-IVC8feVZ.js} +1 -1
  15. package/dist/client/assets/{Minus-O-Diijsb.js → Minus-Dw050KAn.js} +1 -1
  16. package/dist/client/assets/{Monitor01-CNesz7Zi.js → Monitor01-D7QUQToM.js} +1 -1
  17. package/dist/client/assets/{Play-DLBGORyf.js → Play-BDSDyO5E.js} +1 -1
  18. package/dist/client/assets/{Plus-D93afoay.js → Plus-CRqz0c82.js} +1 -1
  19. package/dist/client/assets/{ReferenceLine-DP5lPOEm.js → ReferenceLine-DKoY4fDh.js} +1 -1
  20. package/dist/client/assets/{SearchMd-BMSOzTwj.js → SearchMd-CcAFkP0F.js} +1 -1
  21. package/dist/client/assets/{ShoppingBag01-BjOh6InC.js → ShoppingBag01-CspfAlNO.js} +1 -1
  22. package/dist/client/assets/{Sun-Dwiv3SBK.js → Sun-DRT9bMW5.js} +1 -1
  23. package/dist/client/assets/{SwitchHorizontal01-TvywMML0.js → SwitchHorizontal01-D3zx9VNf.js} +1 -1
  24. package/dist/client/assets/{Tool01-BR0iTy6Z.js → Tool01-D9-ePNaJ.js} +1 -1
  25. package/dist/client/assets/{Tooltip-CMzIdphO.js → Tooltip-DZ7sGrNE.js} +1 -1
  26. package/dist/client/assets/{Trash01-DcgAZcrm.js → Trash01-BTZDkUzq.js} +1 -1
  27. package/dist/client/assets/{Upload01-C4wCuUx0.js → Upload01-BRP1bAMs.js} +1 -1
  28. package/dist/client/assets/{UserSquare-dl1oayK_.js → UserSquare-Dv0YcmkC.js} +1 -1
  29. package/dist/client/assets/{Users01-Bfq6gAwi.js → Users01-DKwguy8Z.js} +1 -1
  30. package/dist/client/assets/{XClose-DN30jgS9.js → XClose-CyHahh4m.js} +1 -1
  31. package/dist/client/assets/{Zap-C1Evk-yy.js → Zap-Dja9fdMf.js} +1 -1
  32. package/dist/client/assets/{access-gate-pZVUht52.js → access-gate-VlWUv9j2.js} +1 -1
  33. package/dist/client/assets/{add-connection-dialog-Z992qi1w.js → add-connection-dialog-DJ5sN8e_.js} +1 -1
  34. package/dist/client/assets/agent-app-C3awWskd.js +1 -0
  35. package/dist/client/assets/{agent-assets-CFZFbPFI.js → agent-assets-n0l0tFBN.js} +1 -1
  36. package/dist/client/assets/{agent-automation-CK-VV9xP.js → agent-automation-DETSj7J9.js} +1 -1
  37. package/dist/client/assets/{agent-automations-csn7BO9I.js → agent-automations-DeXM-DYA.js} +1 -1
  38. package/dist/client/assets/{agent-blog-DPGRYnCY.js → agent-blog-Dw89uwrE.js} +2 -2
  39. package/dist/client/assets/{agent-blog-post-Cx_KL21T.js → agent-blog-post-BBh6a8oA.js} +2 -2
  40. package/dist/client/assets/{agent-calendar-DHfOCkRQ.js → agent-calendar-CMtYd4vL.js} +1 -1
  41. package/dist/client/assets/{agent-capabilities-4_vEEVov.js → agent-capabilities-BtnZBraK.js} +1 -1
  42. package/dist/client/assets/{agent-connect-sources-HdEFSoEU.js → agent-connect-sources-CIDxepQB.js} +1 -1
  43. package/dist/client/assets/agent-deck-CQmtmyYp.js +1 -0
  44. package/dist/client/assets/{agent-e2e-D3d1Qsqd.js → agent-e2e-CjpTFQWV.js} +1 -1
  45. package/dist/client/assets/agent-experiments-BNt-4I9S.js +1 -0
  46. package/dist/client/assets/{agent-file-SpdJvvC2.js → agent-file-Cd74xgom.js} +1 -1
  47. package/dist/client/assets/{agent-hosting-BZxtmZl8.js → agent-hosting-Dv13VH72.js} +1 -1
  48. package/dist/client/assets/{agent-icon-BLhMgLPf.js → agent-icon-DvD5kv_K.js} +1 -1
  49. package/dist/client/assets/agent-library-Ggp4u0Nt.js +1 -0
  50. package/dist/client/assets/agent-library-file--sN5r5DJ.js +1 -0
  51. package/dist/client/assets/agent-overview-4OlQ8oKX.js +1 -0
  52. package/dist/client/assets/{agent-releases-DL4F9_VB.js → agent-releases-BNRiLrFJ.js} +1 -1
  53. package/dist/client/assets/agent-settings-CVXhUEvS.js +1 -0
  54. package/dist/client/assets/{agent-site-editor-CqV30Rul.js → agent-site-editor-87vQ9ufh.js} +1 -1
  55. package/dist/client/assets/agent-site-editor-code-DmCPSKgw.js +2 -0
  56. package/dist/client/assets/agent-site-editor-content-cBVAi7GZ.js +1 -0
  57. package/dist/client/assets/agent-site-editor-preview-kwoTpAUq.js +1 -0
  58. package/dist/client/assets/agent-view-BLlyMWQJ.js +1 -0
  59. package/dist/client/assets/{agent-view-guard-DZvQvKvl.js → agent-view-guard-H1xbnpPJ.js} +1 -1
  60. package/dist/client/assets/{ai-providers-RlxMy215.js → ai-providers-B9LfkD2O.js} +1 -1
  61. package/dist/client/assets/{alert-B5Ykyt3T.js → alert-NGt4-O3B.js} +1 -1
  62. package/dist/client/assets/{analytics-sections-CrpfbEYH.js → analytics-sections-LriChYtf.js} +1 -1
  63. package/dist/client/assets/api-keys-CN81fd1q.js +1 -0
  64. package/dist/client/assets/{api-keys-CSc7sP_x.js → api-keys-Dsk0h5qe.js} +1 -1
  65. package/dist/client/assets/{app-editor-DghRfIjT.js → app-editor-CdNfOH0q.js} +1 -1
  66. package/dist/client/assets/{asset-utils-BmMj5wge.js → asset-utils-CZ4gg2Dc.js} +1 -1
  67. package/dist/client/assets/{auth-catchall-D48r6PhG.js → auth-catchall-o-VGmahb.js} +1 -1
  68. package/dist/client/assets/{auth-entry-C6mHpqQT.js → auth-entry-CvNRh315.js} +1 -1
  69. package/dist/client/assets/{auth-split-layout-DZ8IOzfV.js → auth-split-layout-Dy80rL_w.js} +1 -1
  70. package/dist/client/assets/{auth-U9K5aFal.js → auth-ygmhxR7o.js} +1 -1
  71. package/dist/client/assets/{authenticate-and-persist-oauth-DX8Wh7d9.js → authenticate-and-persist-oauth-Di92Hz1m.js} +1 -1
  72. package/dist/client/assets/{automation-list-row-DFyb04uK.js → automation-list-row-BtDcNrc_.js} +1 -1
  73. package/dist/client/assets/{automation-runs-Bq3l9enC.js → automation-runs-dkRISa5B.js} +1 -1
  74. package/dist/client/assets/{automations-B2SGyI95.js → automations-Be95spA2.js} +1 -1
  75. package/dist/client/assets/{badge-C5mneqKN.js → badge-DzB3sqoD.js} +1 -1
  76. package/dist/client/assets/{block-document-DtjqDxVH.js → block-document-DrJlmgeQ.js} +1 -1
  77. package/dist/client/assets/{blocks-preview-workspace-context-BddxrpRg.js → blocks-preview-workspace-context-ClN63sTc.js} +1 -1
  78. package/dist/client/assets/{blocks-tab-states-BJKt49qf.js → blocks-tab-states-DQr9dBZQ.js} +1 -1
  79. package/dist/client/assets/{blog-preview-url-DPwtQPzJ.js → blog-preview-url-BNeiu40F.js} +1 -1
  80. package/dist/client/assets/{blog-schema-CMQLhziN.js → blog-schema-BSQdtgIY.js} +1 -1
  81. package/dist/client/assets/{blog-source-gate-WyoFGgE-.js → blog-source-gate-WL-fQwzo.js} +1 -1
  82. package/dist/client/assets/{blog-view-gate-CS668Ila.js → blog-view-gate-EO5JR8Eq.js} +1 -1
  83. package/dist/client/assets/{buckets-DeXHPgox.js → buckets-g82zij8V.js} +1 -1
  84. package/dist/client/assets/{build-improve-prompt-doc-DnDGx5OC.js → build-improve-prompt-doc-BdkcM1jX.js} +1 -1
  85. package/dist/client/assets/{calendar-DbxCxf92.js → calendar-RWRp4FJU.js} +1 -1
  86. package/dist/client/assets/{capability-load-error-DCozEloC.js → capability-load-error-KmDfOtoP.js} +1 -1
  87. package/dist/client/assets/{category-editor-BmGhOvZr.js → category-editor-C9uuMYru.js} +1 -1
  88. package/dist/client/assets/{category-tree-5dEhPnK2.js → category-tree-DJrnPSNg.js} +1 -1
  89. package/dist/client/assets/{chart-Cy7LFFBX.js → chart-B9PgP-e_.js} +1 -1
  90. package/dist/client/assets/{chat-context-BOjsomdh.js → chat-context--RKzWa6k.js} +1 -1
  91. package/dist/client/assets/{chat-draft-CYhwlCHc.js → chat-draft-BGQDbeF5.js} +1 -1
  92. package/dist/client/assets/{checkbox-Bv8PV_aY.js → checkbox-H8QR9D0_.js} +1 -1
  93. package/dist/client/assets/{choose-editor-DoyVAhj6.js → choose-editor-WBWd1WOu.js} +1 -1
  94. package/dist/client/assets/{cli-auth-success-DaytSyrs.js → cli-auth-success-C9vCBK1d.js} +1 -1
  95. package/dist/client/assets/{client-icons-CiAKjxAC.js → client-icons-BKCD3ufp.js} +1 -1
  96. package/dist/client/assets/{cms-settings-editor-Cuu4FHx1.js → cms-settings-editor-BbDRN695.js} +1 -1
  97. package/dist/client/assets/{cms-store-drafts-B9MSaBY6.js → cms-store-drafts-BejfL8Fe.js} +1 -1
  98. package/dist/client/assets/{collapsible-DdHbUgH7.js → collapsible-DbCvR955.js} +1 -1
  99. package/dist/client/assets/{collection-detail-DyddcB5w.js → collection-detail-C2j-WZ3j.js} +1 -1
  100. package/dist/client/assets/{collection-display-button-DVJBx_vT.js → collection-display-button-1DK_MMnx.js} +1 -1
  101. package/dist/client/assets/{collection-search-CwqvBBm4.js → collection-search-DvsK7hSv.js} +1 -1
  102. package/dist/client/assets/{collection-table-wrapper-DRrebKp3.js → collection-table-wrapper-bm-LalTq.js} +1 -1
  103. package/dist/client/assets/{collection-tabs-81bsUeqm.js → collection-tabs-6iiAOwW9.js} +1 -1
  104. package/dist/client/assets/{combobox-BrOkSbhh.js → combobox-6gjOOlze.js} +1 -1
  105. package/dist/client/assets/{command-woRMyGZF.js → command-DQleocFC.js} +1 -1
  106. package/dist/client/assets/{companion-mcps-section-B5-NAK1i.js → companion-mcps-section-CeIGkazX.js} +1 -1
  107. package/dist/client/assets/{config-CuCmBQuJ.js → config-C2ncmLTD.js} +1 -1
  108. package/dist/client/assets/{connect-HLDiwDO_.js → connect-DlXzYtCQ.js} +1 -1
  109. package/dist/client/assets/{connect-layout-CWZCwH8X.js → connect-layout-Boxkt-tt.js} +1 -1
  110. package/dist/client/assets/{connect-source-dialog-CBKuqqHC.js → connect-source-dialog-DYJ40IKC.js} +1 -1
  111. package/dist/client/assets/{connection-BIE1Vidl.js → connection-CJZ6RQ2g.js} +1 -1
  112. package/dist/client/assets/{connection-card-gYm1H9XQ.js → connection-card-qoqR63NP.js} +1 -1
  113. package/dist/client/assets/{connection-detail-QqFuUNuZ.js → connection-detail-BTXE_HXc.js} +1 -1
  114. package/dist/client/assets/{connection-form-helpers-DA9irt8S.js → connection-form-helpers-B9JY5oaH.js} +1 -1
  115. package/dist/client/assets/{connection-slug-B8jXAB0J.js → connection-slug-CP70si3t.js} +1 -1
  116. package/dist/client/assets/{connections-JyCHdBZv.js → connections-D8py3O3a.js} +1 -1
  117. package/dist/client/assets/{content-tab-DRXqlCUR.js → content-tab-lkbVE2xf.js} +3 -3
  118. package/dist/client/assets/{context-C-ghWKlt.js → context-DH-yMERA.js} +1 -1
  119. package/dist/client/assets/{context-menu-DZcVKhkc.js → context-menu-Da3prNKL.js} +1 -1
  120. package/dist/client/assets/{context-shell-Bemo51hp.js → context-shell--6NpIOhl.js} +3 -3
  121. package/dist/client/assets/{core.esm-Z0qYqKj9.js → core.esm-DJRh9rDF.js} +1 -1
  122. package/dist/client/assets/{create-organization-dialog-D0g-fdvV.js → create-organization-dialog-BJJn8Tn9.js} +1 -1
  123. package/dist/client/assets/{delete-copy-DJ_GOWB2.js → delete-copy-p7sDnlSk.js} +1 -1
  124. package/dist/client/assets/{device-hint-DfKyeTjV.js → device-hint-Dz-Lgu6D.js} +1 -1
  125. package/dist/client/assets/{discover-D7XfOvTK.js → discover-DnaaaTAL.js} +1 -1
  126. package/dist/client/assets/{domain-settings-DLWYAbIO.js → domain-settings-rt-urBCE.js} +1 -1
  127. package/dist/client/assets/{drawer-BBqyYfPx.js → drawer-CSA_YXe9.js} +1 -1
  128. package/dist/client/assets/{editor-D97Qyzcp.js → editor-BDmwWZXW.js} +1 -1
  129. package/dist/client/assets/{editor-classes-szltcTWs.js → editor-classes-BflxT3Em.js} +1 -1
  130. package/dist/client/assets/{empty-message-DEKaeblB.js → empty-message-CqeY7z6M.js} +1 -1
  131. package/dist/client/assets/{empty-state-DpGHzg8-.js → empty-state-BBFh_11d.js} +1 -1
  132. package/dist/client/assets/{empty-state-wwy36dTA.js → empty-state-Wyw1gzAU.js} +1 -1
  133. package/dist/client/assets/{experiments-tab-choice-CbqEz4gO.js → experiments-tab-choice-D-e89e6v.js} +1 -1
  134. package/dist/client/assets/{extract-connection-data-CXg3fi8w.js → extract-connection-data-Dcbv_gVC.js} +1 -1
  135. package/dist/client/assets/{feature-gate-CveHfcPr.js → feature-gate-Z7tVIxLA.js} +1 -1
  136. package/dist/client/assets/{feature-paywall-DFIdKSLH.js → feature-paywall-DtbDRafp.js} +1 -1
  137. package/dist/client/assets/{file-explorer-OW5FLgme.js → file-explorer-CfNNkZY3.js} +1 -1
  138. package/dist/client/assets/{file-preview-BFUDJsk9.js → file-preview-BIcXPFXf.js} +1 -1
  139. package/dist/client/assets/{file-share-button-E0fcfsBv.js → file-share-button-CRptWZ51.js} +1 -1
  140. package/dist/client/assets/{file-type-icon-hPTLm32j.js → file-type-icon-B8w_B6Ur.js} +1 -1
  141. package/dist/client/assets/{folder-icon-DxENQi9B.js → folder-icon-DLenjLsE.js} +1 -1
  142. package/dist/client/assets/{form-Bz_uprQc.js → form-fep7EsZM.js} +1 -1
  143. package/dist/client/assets/{frame-navigation-EV-98oaL.js → frame-navigation-DuQkTvmc.js} +1 -1
  144. package/dist/client/assets/{general-DmOZe5tS.js → general-CXgCOcj0.js} +1 -1
  145. package/dist/client/assets/{github-icon-CR8sfoo5.js → github-icon-BmJmIA35.js} +1 -1
  146. package/dist/client/assets/{held-block-view-DW-NjX-S.js → held-block-view-L4ScXyc0.js} +1 -1
  147. package/dist/client/assets/{home-C-1mJg3e.js → home-B8uWiLZ8.js} +1 -1
  148. package/dist/client/assets/{home-overview-DZ5M4FB8.js → home-overview-B4YOi7ww.js} +1 -1
  149. package/dist/client/assets/{hosted-reconcile-JJSMDis4.js → hosted-reconcile-TIWxrhyM.js} +1 -1
  150. package/dist/client/assets/{icon-button-DqWSrNSZ.js → icon-button-y7e4XAeL.js} +1 -1
  151. package/dist/client/assets/{index-CfMRfSbP.js → index-6bDgVJQF.js} +1 -1
  152. package/dist/client/assets/{index-BdtGqzV_.js → index-Bvx7roR3.js} +1 -1
  153. package/dist/client/assets/{index-B2FeU0Zw.js → index-C2ij8p-x.js} +1 -1
  154. package/dist/client/assets/{index-CUuWKDNH.js → index-CHutq_y1.js} +1 -1
  155. package/dist/client/assets/{index-aeiz-c5N.js → index-CMmFyekL.js} +1 -1
  156. package/dist/client/assets/{index-CguuJrFu.js → index-CMsvPj3a.js} +1 -1
  157. package/dist/client/assets/{index-lrnn1LFo.js → index-CNwv7lrZ.js} +1 -1
  158. package/dist/client/assets/{index-DE9SDic3.js → index-CVAn8xNL.js} +1 -1
  159. package/dist/client/assets/{index-B0kMZVmC.js → index-CWyPzcrL.js} +3 -3
  160. package/dist/client/assets/{index-CyzY-fLE.js → index-ChH0sLX7.js} +1 -1
  161. package/dist/client/assets/{index-Dpqgfi8_.js → index-CmAlUJfb.js} +1 -1
  162. package/dist/client/assets/{index-D3FgkNbL.js → index-D19_uhum.js} +1 -1
  163. package/dist/client/assets/{index-7-4YhBZz.js → index-DVZtQRVw.js} +1 -1
  164. package/dist/client/assets/{index-CeHQIaZQ.js → index-Dj0a2kN-.js} +1 -1
  165. package/dist/client/assets/{index-BlRhFO8i.js → index-DvJkVFQT.js} +1 -1
  166. package/dist/client/assets/{index-2LsnM_Ir.js → index-ixp03eW8.js} +1 -1
  167. package/dist/client/assets/{index-DJq5XMUI.js → index-pvUDeJng.js} +1 -1
  168. package/dist/client/assets/{index-redirect-Tqe_ugUp.js → index-redirect-D4F9QPKL.js} +1 -1
  169. package/dist/client/assets/{infiniteQueryObserver-Bpp7Nde9.js → infiniteQueryObserver-OShuiwgE.js} +1 -1
  170. package/dist/client/assets/{infra-billing-BVZxcUBX.js → infra-billing-CWpsn-Rt.js} +1 -1
  171. package/dist/client/assets/{input-ClzrEMuy.js → input-BgfY5gpb.js} +3 -3
  172. package/dist/client/assets/{input-D3CQKUJv.js → input-DTQsyDJB.js} +1 -1
  173. package/dist/client/assets/{integration-icon-BNTOj8TI.js → integration-icon-C_WzTScv.js} +1 -1
  174. package/dist/client/assets/{item-actions-DT1aQMAA.js → item-actions-DXH2d6Fe.js} +1 -1
  175. package/dist/client/assets/{jira-icon-CUdm8f26.js → jira-icon-D56pw7mD.js} +1 -1
  176. package/dist/client/assets/{label-C8wqUUzx.js → label-Cf_dlQhi.js} +1 -1
  177. package/dist/client/assets/{layout-BrcEe09L.js → layout-CtDg9WFK.js} +1 -1
  178. package/dist/client/assets/{legacy-admin-welcome-dialog-5GoRU8S5.js → legacy-admin-welcome-dialog-Bh63ptd4.js} +1 -1
  179. package/dist/client/assets/{legacy-agents-deep-Bf1vCfoJ.js → legacy-agents-deep-j_eDHMz_.js} +1 -1
  180. package/dist/client/assets/{legacy-main-redirect-Bh63rUhQ.js → legacy-main-redirect-C9oF56pC.js} +1 -1
  181. package/dist/client/assets/library-Bl-LzTcJ.js +1 -0
  182. package/dist/client/assets/{library-tab-BVzgC-sN.js → library-tab-B0xPdiji.js} +1 -1
  183. package/dist/client/assets/{login-DppNfiAq.js → login-XaVtTkis.js} +1 -1
  184. package/dist/client/assets/{markdown-ChQfidu_.js → markdown-DCvPsl1N.js} +1 -1
  185. package/dist/client/assets/{mcp-app-renderer-Cqipo_fr.js → mcp-app-renderer-DBs207iT.js} +1 -1
  186. package/dist/client/assets/{mcp-oauth-C3I9E6hK.js → mcp-oauth-CciCTLp9.js} +1 -1
  187. package/dist/client/assets/{mcp-oauth-BW9RlFd8.js → mcp-oauth-DOQO_m1D.js} +1 -1
  188. package/dist/client/assets/{members-BPvSGNqH.js → members-CL8zrENK.js} +1 -1
  189. package/dist/client/assets/{memory-CQAa3mHm.js → memory-C0eybouW.js} +1 -1
  190. package/dist/client/assets/{mock-board-BMaXmonr.js → mock-board-iZzwB0Ec.js} +3 -3
  191. package/dist/client/assets/{monaco-editor-GCVIle1A.js → monaco-editor-BjOCHD6R.js} +1 -1
  192. package/dist/client/assets/{monitoring-RTFaXjle.js → monitoring-auJHCqSG.js} +1 -1
  193. package/dist/client/assets/{monitoring-stats-row-h4pC7kD6.js → monitoring-stats-row-D-1eXI4W.js} +1 -1
  194. package/dist/client/assets/{multi-select-sZG2voKq.js → multi-select-C7KaI7rL.js} +1 -1
  195. package/dist/client/assets/{mustache-BXaNyEgZ.js → mustache-Dm8yyGpD.js} +1 -1
  196. package/dist/client/assets/{named-rule-step-EI_qv23D.js → named-rule-step-DLS79yYb.js} +1 -1
  197. package/dist/client/assets/{named-rule-view-DcHqSDt-.js → named-rule-view-Bgyvi0X-.js} +1 -1
  198. package/dist/client/assets/{new-project-dialog-B8ntXRJU.js → new-project-dialog-uK1Ixj7a.js} +1 -1
  199. package/dist/client/assets/{oauth-callback-ai-provider-of2OYrpv.js → oauth-callback-ai-provider-xMCIdlQV.js} +1 -1
  200. package/dist/client/assets/{oauth-callback-p3ywWjTz.js → oauth-callback-xd-D45xF.js} +1 -1
  201. package/dist/client/assets/{oauth-consent-DpXLchYG.js → oauth-consent-BH8-t4eI.js} +1 -1
  202. package/dist/client/assets/{onboarding-DKqNWZqa.js → onboarding-C46p79BL.js} +1 -1
  203. package/dist/client/assets/{openai-conversation-CFoe4Qa0.js → openai-conversation-LX4vhoSF.js} +1 -1
  204. package/dist/client/assets/{optimistic-project-sidebar-views-B5MpSmQi.js → optimistic-project-sidebar-views-CQDM5Smz.js} +1 -1
  205. package/dist/client/assets/{order-monitor-day-DEpjybnZ.js → order-monitor-day-CdZki-hX.js} +1 -1
  206. package/dist/client/assets/{organization-choice-DP7th0jj.js → organization-choice-C2R9F9mc.js} +1 -1
  207. package/dist/client/assets/{orgs-DPHlMXcd.js → orgs-HpCUPqLm.js} +1 -1
  208. package/dist/client/assets/{own-accounts-section-DwQLTK3b.js → own-accounts-section-Bj2ZQcZp.js} +1 -1
  209. package/dist/client/assets/{pair-BXQ1AL58.js → pair-CZjLWCpF.js} +1 -1
  210. package/dist/client/assets/{parse-sections-CW6TmrTp.js → parse-sections-C-6WrwoU.js} +2 -2
  211. package/dist/client/assets/{plan-ladder-B0kBPdzm.js → plan-ladder-K1-uMNFn.js} +1 -1
  212. package/dist/client/assets/{plan-usage-card-hmzG52qo.js → plan-usage-card-ByfsqyV3.js} +1 -1
  213. package/dist/client/assets/{plan-DzDjgwtt.js → plan-z7jyUflE.js} +1 -1
  214. package/dist/client/assets/{popover-CLUI-WCq.js → popover-L7EmpGzG.js} +1 -1
  215. package/dist/client/assets/{post-calendar-DGbwtgLH.js → post-calendar-CrzSJ4wO.js} +1 -1
  216. package/dist/client/assets/{post-editor-Cb57gZLf.js → post-editor-D6PvmOkx.js} +1 -1
  217. package/dist/client/assets/{preview-content-YsDfk6M3.js → preview-content-BdQavgtT.js} +1 -1
  218. package/dist/client/assets/{preview-dialog-Bz6A7RNp.js → preview-dialog-DRt8NRQg.js} +1 -1
  219. package/dist/client/assets/{preview-panel-4Ms4IncO.js → preview-panel-C7R9FzB7.js} +1 -1
  220. package/dist/client/assets/{preview-tab-DEm7tkhA.js → preview-tab-DE998jcM.js} +3 -3
  221. package/dist/client/assets/{product-picker-dialog-CNlHID1U.js → product-picker-dialog-CasJjhcc.js} +1 -1
  222. package/dist/client/assets/{profile-Bt00wkq5.js → profile-DaVD3rXx.js} +1 -1
  223. package/dist/client/assets/{project-app-view-BTWft0P3.js → project-app-view-BgNgayQ9.js} +1 -1
  224. package/dist/client/assets/{project-apps-XmfSXScr.js → project-apps-9RUwCLHJ.js} +1 -1
  225. package/dist/client/assets/{project-icon-BkeJc-xp.js → project-icon-DCOepmMu.js} +1 -1
  226. package/dist/client/assets/{project-index-C3tTBxDV.js → project-index-kHTy1V43.js} +1 -1
  227. package/dist/client/assets/project-reports-SFE87SXv.js +1 -0
  228. package/dist/client/assets/project-tasks-CZgEt2Vy.js +1 -0
  229. package/dist/client/assets/{projects-D_tybxDG.js → projects-Cfrtdtxw.js} +1 -1
  230. package/dist/client/assets/{projects-empty-state-BN5sLjWv.js → projects-empty-state-BOqzKLFM.js} +1 -1
  231. package/dist/client/assets/{prompts-CBKakZB5.js → prompts-CeNm4O78.js} +1 -1
  232. package/dist/client/assets/{record-editor-DF0JyxbJ.js → record-editor-BDc47aTz.js} +1 -1
  233. package/dist/client/assets/{redirect-editor-DCz9NXOZ.js → redirect-editor-B5YbT02W.js} +1 -1
  234. package/dist/client/assets/reports-CGHHsIAg.js +1 -0
  235. package/dist/client/assets/{reports-onboarding-DCAmw-bq.js → reports-onboarding-BF3nb40S.js} +1 -1
  236. package/dist/client/assets/{reports-tab-RfuGKaQ3.js → reports-tab-CGHZrbkt.js} +2 -2
  237. package/dist/client/assets/{reports-Df9PLvuX.js → reports-yqXMJIxG.js} +1 -1
  238. package/dist/client/assets/repositories-CXahUI4R.js +1 -0
  239. package/dist/client/assets/{repositories-B40Xay0b.js → repositories-Dxg6NBM0.js} +1 -1
  240. package/dist/client/assets/{repository-binding-DqsJn1Sb.js → repository-binding-SYfLLQPp.js} +1 -1
  241. package/dist/client/assets/{repository-picker-DjmqKxQp.js → repository-picker-CbFl2YYE.js} +1 -1
  242. package/dist/client/assets/{require-capability-11VEza5N.js → require-capability-BiwpdxIn.js} +1 -1
  243. package/dist/client/assets/{required-auth-layout-CnCT_9Qk.js → required-auth-layout-DFuLVB75.js} +1 -1
  244. package/dist/client/assets/{reset-password-DhGtg5RA.js → reset-password-HUKzr46F.js} +1 -1
  245. package/dist/client/assets/{resizable-DqI16h9r.js → resizable-CmCl4ei7.js} +1 -1
  246. package/dist/client/assets/{resolve-tab-icon-SqRc32_W.js → resolve-tab-icon-BjnMFr70.js} +1 -1
  247. package/dist/client/assets/{review-settings-DsCgah9j.js → review-settings-CA-nqHST.js} +1 -1
  248. package/dist/client/assets/{role-color-Bsnv2ruh.js → role-color-boYo8Hxk.js} +1 -1
  249. package/dist/client/assets/{roles-CfgNfQ5D.js → roles-B5mCkh61.js} +1 -1
  250. package/dist/client/assets/{route-YS6zinDQ.js → route-B6oRH5TC.js} +1 -1
  251. package/dist/client/assets/route-BGFrmL98.js +1 -0
  252. package/dist/client/assets/{route-CF7rRyVo.js → route-_4HjzOd2.js} +1 -1
  253. package/dist/client/assets/{sandbox-lifecycle-context-Cm_5q5SF.js → sandbox-lifecycle-context-Dz7l9f2x.js} +1 -1
  254. package/dist/client/assets/{save-status-DQIuewYI.js → save-status-C-e1JPTQ.js} +1 -1
  255. package/dist/client/assets/{schema-BtSfTK7H.js → schema-821-vfww.js} +1 -1
  256. package/dist/client/assets/{schema-CMu2qDHJ.js → schema-CLtIHsoR.js} +1 -1
  257. package/dist/client/assets/{scroll-area-CNyj4Q1_.js → scroll-area-Jht8lpyk.js} +1 -1
  258. package/dist/client/assets/{search-input-DfFZA2x_.js → search-input-B93QU4Dy.js} +1 -1
  259. package/dist/client/assets/{search-toggle-BMP-t51j.js → search-toggle-tlJ3SbIE.js} +1 -1
  260. package/dist/client/assets/{secret-picker-Cia0fA6k.js → secret-picker-CAALtPpd.js} +1 -1
  261. package/dist/client/assets/{secrets-Db72b1dr.js → secrets-C80xJsHQ.js} +1 -1
  262. package/dist/client/assets/{section-array-field-CItEGXFU.js → section-array-field-CBZsskhA.js} +1 -1
  263. package/dist/client/assets/{sections-BnvGhIDh.js → sections-B_HR2jtY.js} +1 -1
  264. package/dist/client/assets/{sections-editor-8kOnY41Y.js → sections-editor-EHDr6zm_.js} +1 -1
  265. package/dist/client/assets/{select-B-QXEyVH.js → select-e2tvI61e.js} +1 -1
  266. package/dist/client/assets/{select-model-BM57OK8a.js → select-model-M3nxcPkm.js} +1 -1
  267. package/dist/client/assets/{seo-editor-DUVQDKfJ.js → seo-editor-DEOahzw6.js} +1 -1
  268. package/dist/client/assets/{separator-CZVEZSKr.js → separator-BI2slX_5.js} +1 -1
  269. package/dist/client/assets/settings-tab-CU7bs3DW.js +1 -0
  270. package/dist/client/assets/{sheet-DFpCUkzK.js → sheet-DvkksJq0.js} +1 -1
  271. package/dist/client/assets/{shell-layout-3tQDWFJU.js → shell-layout-BCfYpYFh.js} +1 -1
  272. package/dist/client/assets/{site-draft-actions-BT56hEH5.js → site-draft-actions-qfCZ-0Ms.js} +1 -1
  273. package/dist/client/assets/{site-draft-view-DaVZ51CU.js → site-draft-view-DVJ5_AAD.js} +1 -1
  274. package/dist/client/assets/site-editor-Cm6TtNkp.js +1 -0
  275. package/dist/client/assets/{site-editor-toast-DrPEsDU7.js → site-editor-toast-B030LZGc.js} +1 -1
  276. package/dist/client/assets/{skills-Bh8g9zPx.js → skills-DU3JvR9H.js} +1 -1
  277. package/dist/client/assets/{slider-D5-tjvxC.js → slider-BqNz0Q_x.js} +1 -1
  278. package/dist/client/assets/{sortable.esm-CD7Wn3a-.js → sortable.esm-Dgvk_55x.js} +1 -1
  279. package/dist/client/assets/{sso-CgVuMvqq.js → sso-B36MJWf3.js} +1 -1
  280. package/dist/client/assets/{suggestion-BjK1ijWQ.js → suggestion-DjTd4iW-.js} +1 -1
  281. package/dist/client/assets/{super-agent-icon-D1UApnZ8.js → super-agent-icon-BFe-gjNi.js} +1 -1
  282. package/dist/client/assets/{switch-YFmb691t.js → switch-CVqJR3dk.js} +1 -1
  283. package/dist/client/assets/{synced-repos-QaqG0EO3.js → synced-repos-CdEL5OLa.js} +1 -1
  284. package/dist/client/assets/{tab-icon-glyph-CjjddmUR.js → tab-icon-glyph-we-DMaKk.js} +1 -1
  285. package/dist/client/assets/{table-EoWRqCf0.js → table-DyAbyTkr.js} +1 -1
  286. package/dist/client/assets/{tabs-BPfd6mHK.js → tabs-RDxPTimY.js} +1 -1
  287. package/dist/client/assets/{task-board-CjAeUa_m.js → task-board-CNxFcEEU.js} +1 -1
  288. package/dist/client/assets/{task-route-Br2Lpz0h.js → task-route-BY8SQPrf.js} +1 -1
  289. package/dist/client/assets/{task-status-e2bwwrq0.js → task-status-BQ9l-imv.js} +1 -1
  290. package/dist/client/assets/{taskboard-analytics-Dz_bNdVa.js → taskboard-analytics-D-fKcUTx.js} +1 -1
  291. package/dist/client/assets/tasks-CWBTMAuG.js +1 -0
  292. package/dist/client/assets/{tasks-B4uBSKBg.js → tasks-H_163psh.js} +1 -1
  293. package/dist/client/assets/{textarea-BDeCVCG_.js → textarea-D8L9nIm0.js} +1 -1
  294. package/dist/client/assets/{thread-analytics-DhaZl6TQ.js → thread-analytics-B6wRhPTZ.js} +1 -1
  295. package/dist/client/assets/{thread-intent-oRL32U-K.js → thread-intent-BoKpDkXm.js} +1 -1
  296. package/dist/client/assets/{thread-route-Be5LHqPZ.js → thread-route-CjhH3Hve.js} +1 -1
  297. package/dist/client/assets/{thread-route-tkHuy51W.js → thread-route-D-qV5LOQ.js} +1 -1
  298. package/dist/client/assets/{thread-sheet-body-De3nDIYw.js → thread-sheet-body-BmxCKr5-.js} +1 -1
  299. package/dist/client/assets/{time-range-picker-RqJkhR4f.js → time-range-picker-BI1bqfR0.js} +1 -1
  300. package/dist/client/assets/{toggle-group-Dyg7Y_bS.js → toggle-group-C9F5Qvi7.js} +1 -1
  301. package/dist/client/assets/{tool-namespace-pd4DYce0.js → tool-namespace-Cwe3IZ6z.js} +1 -1
  302. package/dist/client/assets/{tool-set-selector-BxflvD5s.js → tool-set-selector-BIHpKu9L.js} +1 -1
  303. package/dist/client/assets/{toolbar-icon-button-T_NjCrYE.js → toolbar-icon-button-C4QFd50C.js} +1 -1
  304. package/dist/client/assets/{tooltip-BTKQq4Sy.js → tooltip-C-0kDxkl.js} +1 -1
  305. package/dist/client/assets/{tooltipContext-B3whzr3K.js → tooltipContext-DjUViqx9.js} +1 -1
  306. package/dist/client/assets/{track-hg2uNpQa.js → track-DWFP8jCm.js} +1 -1
  307. package/dist/client/assets/{types-DD9MvS2H.js → types-DrwTBhGr.js} +1 -1
  308. package/dist/client/assets/{url-slug-CAaHyqrT.js → url-slug-xvxPIesW.js} +1 -1
  309. package/dist/client/assets/{usage-stats-LrxjpMvT.js → usage-stats-BFAUXiEn.js} +1 -1
  310. package/dist/client/assets/use-ai-providers-Drq9rd-R.js +1 -0
  311. package/dist/client/assets/{use-apply-named-rule-CQGJ9Q6I.js → use-apply-named-rule-BqLt_ETT.js} +1 -1
  312. package/dist/client/assets/use-ask-in-chat-DRRgH5qP.js +1 -0
  313. package/dist/client/assets/{use-automations-CRCU5rUU.js → use-automations-DnYKYkJG.js} +1 -1
  314. package/dist/client/assets/{use-autosave-HJouXCY9.js → use-autosave-BxcdTX-O.js} +1 -1
  315. package/dist/client/assets/use-blocks-v8-project-Ce_mrKLc.js +1 -0
  316. package/dist/client/assets/{use-chat-layout-state-DZgmLot0.js → use-chat-layout-state-CIpS2ixg.js} +1 -1
  317. package/dist/client/assets/{use-cms-publish-actions-CQn8AjkF.js → use-cms-publish-actions-CFC3bJmB.js} +1 -1
  318. package/dist/client/assets/{use-connect-companion-DgTOfpzN.js → use-connect-companion-ortXPeJY.js} +1 -1
  319. package/dist/client/assets/{use-connection-jMnM0Hiq.js → use-connection-CoSLklxV.js} +1 -1
  320. package/dist/client/assets/{use-content-sync-DvjyB8U-.js → use-content-sync-BvIburw3.js} +1 -1
  321. package/dist/client/assets/{use-copy-B36-QB7R.js → use-copy-ChDt5LN5.js} +1 -1
  322. package/dist/client/assets/{use-date-fns-locale-CVz_yaSt.js → use-date-fns-locale-6TxnLgf0.js} +1 -1
  323. package/dist/client/assets/{use-debounced-autosave-BCwvmx_C.js → use-debounced-autosave-DuzJ4VFK.js} +1 -1
  324. package/dist/client/assets/{use-debounced-value-Be2K3Tgl.js → use-debounced-value-CPC4qMn_.js} +1 -1
  325. package/dist/client/assets/{use-deco-credits-B5uE_Z9G.js → use-deco-credits-Cct8YuxZ.js} +1 -1
  326. package/dist/client/assets/{use-decopilot-events-144aPqKs.js → use-decopilot-events-DrQkcg1u.js} +1 -1
  327. package/dist/client/assets/{use-delete-block-BSTpS7wO.js → use-delete-block-CZz_ptBE.js} +1 -1
  328. package/dist/client/assets/{use-delete-connection-BIASpF84.js → use-delete-connection-CpvyLSMF.js} +1 -1
  329. package/dist/client/assets/{use-deployment-admin-CK9MBH_P.js → use-deployment-admin-DqLzMbx4.js} +1 -1
  330. package/dist/client/assets/{use-entitlements-D0Sb8QlP.js → use-entitlements-BTXwUzEe.js} +1 -1
  331. package/dist/client/assets/{use-fast-preview-draft-url-D9g7iX8I.js → use-fast-preview-draft-url-BpU8VWnC.js} +1 -1
  332. package/dist/client/assets/{use-file-configs-Tkt_AHql.js → use-file-configs-DlI3360C.js} +1 -1
  333. package/dist/client/assets/{use-id-selection-Cpsai2fK.js → use-id-selection-q64VX8pH.js} +1 -1
  334. package/dist/client/assets/{use-inbox-feed-CUpQJBQD.js → use-inbox-feed-BXQf8xik.js} +1 -1
  335. package/dist/client/assets/{use-infinite-scroll-C-wdmvlm.js → use-infinite-scroll-DToG_mXG.js} +1 -1
  336. package/dist/client/assets/{use-join-requests-D6nkHBhc.js → use-join-requests-BkEJmRDc.js} +1 -1
  337. package/dist/client/assets/{use-main-panel-tabs-DTIYfLGl.js → use-main-panel-tabs-dGK32Zdd.js} +1 -1
  338. package/dist/client/assets/{use-mcp-auth-status-C3bL-6Ja.js → use-mcp-auth-status-CMiOMa1q.js} +1 -1
  339. package/dist/client/assets/{use-mcp-client-Cp7itm-S.js → use-mcp-client-BJYqkCGO.js} +1 -1
  340. package/dist/client/assets/{use-mcp-prompts-CF2bE4L8.js → use-mcp-prompts-L17hBbZI.js} +1 -1
  341. package/dist/client/assets/{use-mcp-tools-DqfH77AW.js → use-mcp-tools-BmsHVJ_e.js} +1 -1
  342. package/dist/client/assets/{use-mobile-CMr55W3O.js → use-mobile-BZxtzMj7.js} +1 -1
  343. package/dist/client/assets/{use-move-blocks-vAC3BNbO.js → use-move-blocks-BhC8Ou_b.js} +1 -1
  344. package/dist/client/assets/{use-navigate-to-agent-Bc47TXuM.js → use-navigate-to-agent-v5tv9KVo.js} +1 -1
  345. package/dist/client/assets/{use-never-published-622FRxP4.js → use-never-published-ftzoQCEb.js} +1 -1
  346. package/dist/client/assets/{use-org-fs-CnKWtsx6.js → use-org-fs-DwXaWmOv.js} +1 -1
  347. package/dist/client/assets/{use-org-repo-syncs-CWan9UEi.js → use-org-repo-syncs-C9CNVJm1.js} +1 -1
  348. package/dist/client/assets/{use-org-sso-Dx6waIv3.js → use-org-sso-BxQ8a0VK.js} +1 -1
  349. package/dist/client/assets/{use-organization-settings-C44OxrrF.js → use-organization-settings-DNlKPHFq.js} +1 -1
  350. package/dist/client/assets/{use-project-native-view-presence-BOiBdd4j.js → use-project-native-view-presence-AFSL4S75.js} +1 -1
  351. package/dist/client/assets/{use-project-scope-BpnU42cL.js → use-project-scope-Fr7Egb1F.js} +1 -1
  352. package/dist/client/assets/{use-recent-apps-DIc0b7h6.js → use-recent-apps-BEYnfhfp.js} +1 -1
  353. package/dist/client/assets/{use-reports-diagnostic-l8XSuOVG.js → use-reports-diagnostic-2pn_94P0.js} +1 -1
  354. package/dist/client/assets/{use-sandbox-events-BTC_EPGc.js → use-sandbox-events-jMtZqiMa.js} +1 -1
  355. package/dist/client/assets/{use-secrets-CFtisZrp.js → use-secrets-CBdbQcuQ.js} +1 -1
  356. package/dist/client/assets/{use-section-preview-base-C9SoEJn0.js → use-section-preview-base-J9b63pbx.js} +1 -1
  357. package/dist/client/assets/{use-sidebar-collapsed-V5_gd1MI.js → use-sidebar-collapsed-BfQVGyVT.js} +1 -1
  358. package/dist/client/assets/{use-tags-Cxhud9Xt.js → use-tags-BEbkxwEv.js} +1 -1
  359. package/dist/client/assets/{use-task-board-analytics-CpAa6pHW.js → use-task-board-analytics-CjF5lq2A.js} +1 -1
  360. package/dist/client/assets/{use-task-board-events-DspRxQsF.js → use-task-board-events-ube60SA0.js} +1 -1
  361. package/dist/client/assets/{use-task-board-item-prs-CZVWQT5i.js → use-task-board-item-prs-nU2PcUzp.js} +1 -1
  362. package/dist/client/assets/{use-task-board-items-CzVlUMOO.js → use-task-board-items-Di-1rSrZ.js} +1 -1
  363. package/dist/client/assets/{use-task-board-prompts-ngKSI_fY.js → use-task-board-prompts-BDQ8kbX2.js} +1 -1
  364. package/dist/client/assets/{use-task-metadata-DiPyoyq1.js → use-task-metadata-DrDAhZTp.js} +1 -1
  365. package/dist/client/assets/{use-thread-outputs-BT9YWT4X.js → use-thread-outputs-Ch3NEbJD.js} +1 -1
  366. package/dist/client/assets/{use-view-draft-kind-BTxfGo3P.js → use-view-draft-kind-C5ojzKhH.js} +1 -1
  367. package/dist/client/assets/{use-voice-input-D66t9nvu.js → use-voice-input-DHuYIV5W.js} +1 -1
  368. package/dist/client/assets/useInfiniteQuery--BgI5-DV.js +1 -0
  369. package/dist/client/assets/{useQueries-M4myONOE.js → useQueries-PCnHBPMW.js} +1 -1
  370. package/dist/client/assets/useSuspenseInfiniteQuery-B_FBCJuI.js +1 -0
  371. package/dist/client/assets/{users-BRGauFES.js → users-y7gdQpb2.js} +1 -1
  372. package/dist/client/assets/{utils-CZf0WW3u.js → utils-DZ4Tq9_F.js} +1 -1
  373. package/dist/client/assets/{variant-calendar-MTIN2TYC.js → variant-calendar-Jezxzb2B.js} +1 -1
  374. package/dist/client/assets/{variant-matcher-override-yvSV8zF4.js → variant-matcher-override-R9Ip3akP.js} +1 -1
  375. package/dist/client/assets/{view-header-D_yXL60l.js → view-header-DQwHRwa3.js} +1 -1
  376. package/dist/client/assets/{virtual-mcp-D2YHeobd.js → virtual-mcp-BMNTjIAW.js} +1 -1
  377. package/dist/client/assets/{watch-sse-pool-DDOa1h_t.js → watch-sse-pool-CR6i9l-S.js} +1 -1
  378. package/dist/client/index.html +1 -1
  379. package/dist/server/server.js +565 -565
  380. package/package.json +1 -1
  381. package/dist/client/assets/agent-app-DzDciOTO.js +0 -1
  382. package/dist/client/assets/agent-deck-BXpuyyHV.js +0 -1
  383. package/dist/client/assets/agent-experiments-BL62SJmo.js +0 -1
  384. package/dist/client/assets/agent-library-BFYPXgq1.js +0 -1
  385. package/dist/client/assets/agent-library-file-DKeb8aqf.js +0 -1
  386. package/dist/client/assets/agent-overview-D5jCjQVj.js +0 -1
  387. package/dist/client/assets/agent-settings-ESG9192X.js +0 -1
  388. package/dist/client/assets/agent-site-editor-code-BQnTQU7w.js +0 -2
  389. package/dist/client/assets/agent-site-editor-content-qd-na2CD.js +0 -1
  390. package/dist/client/assets/agent-site-editor-preview-BXjMAtak.js +0 -1
  391. package/dist/client/assets/agent-view-BLgY0MfR.js +0 -1
  392. package/dist/client/assets/api-keys-vIp11w3k.js +0 -1
  393. package/dist/client/assets/library-CdyTGa2g.js +0 -1
  394. package/dist/client/assets/project-reports-CWeaaEZO.js +0 -1
  395. package/dist/client/assets/project-tasks-jNfpaaGU.js +0 -1
  396. package/dist/client/assets/reports-CffaUFeU.js +0 -1
  397. package/dist/client/assets/repositories-B_3cIxMq.js +0 -1
  398. package/dist/client/assets/route-DJv7Nx6V.js +0 -1
  399. package/dist/client/assets/settings-tab-B9XpN8jX.js +0 -1
  400. package/dist/client/assets/site-editor-DhUm8vlF.js +0 -1
  401. package/dist/client/assets/tasks-CwupKgpp.js +0 -1
  402. package/dist/client/assets/use-ai-providers-BnCLnm6i.js +0 -1
  403. package/dist/client/assets/use-ask-in-chat-Bn7rwpYM.js +0 -1
  404. package/dist/client/assets/use-blocks-v8-project-Dd6JSEDd.js +0 -1
  405. package/dist/client/assets/useInfiniteQuery-BLIxG3uZ.js +0 -1
  406. package/dist/client/assets/useSuspenseInfiniteQuery-BJmR9zYx.js +0 -1
@@ -1 +1 @@
1
- import{c as C,b as ee,j as s,q as ze,K as Ne,r as J,as as Ae,B as Ie,h as Pe}from"./index-B0kMZVmC.js";import{a2 as we}from"./agent-icon-BLhMgLPf.js";import{S as Ee}from"./scroll-area-CNyj4Q1_.js";import{X as Re,d as _e}from"./held-block-view-DW-NjX-S.js";import{a1 as Oe,y as Ue}from"./blocks-tab-states-BJKt49qf.js";import{h as Be,i as fe,b as Me,t as He,j as Qe,w as qe,s as Ge,r as Ve,u as We,k as Ye,a as Xe,f as Je}from"./empty-message-DEKaeblB.js";import{L as Fe}from"./label-C8wqUUzx.js";import{S as Ce}from"./switch-YFmb691t.js";import{a as Ze}from"./save-status-DQIuewYI.js";import{c as et,b as tt,a as st,d as lt,S as ot}from"./select-B-QXEyVH.js";import{v as it,k as nt,u as rt,i as at}from"./site-editor-toast-DrPEsDU7.js";import{b as ct}from"./use-never-published-622FRxP4.js";import{c as dt,u as ft}from"./hosted-reconcile-JJSMDis4.js";import{b as Ke}from"./Tool01-BR0iTy6Z.js";const mt="https://deco.cx/docs/en/performance/edge-async-render";function ut(a){const e=C.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:d,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Ze();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let f;e[2]!==t?(f=Be(t),e[2]=t,e[3]=f):f=e[3];const h=f,x=!n&&u;let y;e[4]!==c?(y=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=y):y=e[5];let v;e[6]!==y?(v=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:y}),e[6]=y,e[7]=v):v=e[7];const k=x&&l?"seo-enable-hint":void 0;let b;e[8]!==x||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:x,"aria-describedby":k,onCheckedChange:i}),e[8]=x,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==v||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v,b]}),e[13]=v,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==x||e[17]!==l?(j=x&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=x,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==h||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==d||e[24]!==c?(g=n&&(m||!d?o:s.jsxs(s.Fragment,{children:[o,s.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"text-sm font-medium",children:c("sectionsEditor.seoFormChrome.asyncRenderLabel")}),s.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",s.jsx("a",{href:mt,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:c("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),s.jsx(Ce,{id:"seo-async-render",checked:h,onCheckedChange:d,className:"shrink-0"})]})]})),e[19]=h,e[20]=o,e[21]=m,e[22]=n,e[23]=d,e[24]=c,e[25]=g):g=e[25];let N;return e[26]!==g||e[27]!==S||e[28]!==j?(N=s.jsxs("div",{className:"space-y-4",children:[S,j,g]}),e[26]=g,e[27]=S,e[28]=j,e[29]=N):N=e[29],N}function pt(a){const e=C.c(20),{options:t,value:i,onChange:d}=a,r=ee();if(t.length<=1)return null;let l;e[0]!==r?(l=r("sectionsEditor.seoTypeSelect.label"),e[0]=r,e[1]=l):l=e[1];let o;e[2]!==l?(o=s.jsx(Fe,{className:"text-xs text-muted-foreground",children:l}),e[2]=l,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("sectionsEditor.seoTypeSelect.placeholder"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==u?(c=s.jsx(tt,{className:"w-full",children:s.jsx(st,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(xt).map(ht),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(lt,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==d||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(ot,{value:i,onValueChange:d,children:[c,p]}),e[12]=d,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let f;return e[17]!==o||e[18]!==n?(f=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=f):f=e[19],f}function ht(a){return s.jsx(et,{value:a.resolveType,children:a.title},a.resolveType)}function xt(a){return a.resolveType.length>0}function yt(a){const e=C.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:d,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:f,onBumpFormKey:h,beforeFields:x,asyncRenderAvailable:y,seoTypesLoading:v}=a,k=y===void 0?!0:y,b=v===void 0?!1:v,S=ee(),g=!Me()||!b&&d!=="";let N;e[0]!==d||e[1]!==h||e[2]!==f||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Qe(d);p($),f(),h();return}p(null),f(),h()},e[0]=d,e[1]=h,e[2]=f,e[3]=p,e[4]=g,e[5]=N):N=e[5];const w=N;let E;e[6]!==p||e[7]!==t?(E=K=>{const $=He(K,t);p($)},e[6]=p,e[7]=t,e[8]=E):E=e[8];const T=E;let _;e[9]!==h||e[10]!==n?(_=K=>{n({__resolveType:K}),h()},e[9]=h,e[10]=n,e[11]=_):_=e[11];const L=_,z=!g;let R;e[12]!==g||e[13]!==b||e[14]!==S?(R=g||b?void 0:S("sectionsEditor.seoFormChrome.noSeoTypeHint"),e[12]=g,e[13]=b,e[14]=S,e[15]=R):R=e[15];const Y=k?T:void 0;let P;e[16]!==l||e[17]!==L||e[18]!==t||e[19]!==r||e[20]!==o?(P=fe(t)&&r&&l&&o&&o.length>0&&s.jsx(pt,{options:o,value:l,onChange:L}),e[16]=l,e[17]=L,e[18]=t,e[19]=r,e[20]=o,e[21]=P):P=e[21];let F;e[22]!==l||e[23]!==u||e[24]!==i||e[25]!==m||e[26]!==n||e[27]!==t||e[28]!==r||e[29]!==c?(F=fe(t)&&r&&l&&s.jsx(Re,{schema:r,resolveType:l,value:i,formResetKey:u,onChange:K=>n(K),onBreadcrumbChange:m,siteDefaultSeo:c}),e[22]=l,e[23]=u,e[24]=i,e[25]=m,e[26]=n,e[27]=t,e[28]=r,e[29]=c,e[30]=F):F=e[30];let U;return e[31]!==x||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==Y||e[38]!==P?(U=s.jsxs(ut,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:Y,children:[x,P,F]}),e[31]=x,e[32]=w,e[33]=t,e[34]=F,e[35]=z,e[36]=R,e[37]=Y,e[38]=P,e[39]=U):U=e[39],U}function Se(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function vt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const d=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:qe(i,d)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function gt(a,e,t){if(e===null&&Oe(t??void 0)){const{seo:i,...d}=a;return d}return{...a,seo:e}}function bt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function St(a){const e=C.c(29),{orgSlug:t,virtualMcpId:i,branch:d,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze();let m;e[0]!==d||e[1]!==t||e[2]!==i?(m={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=m):m=e[3];const p=it(m);let n;e[4]!==d||e[5]!==t||e[6]!==i?(n={orgSlug:t,virtualMcpId:i,branch:d},e[4]=d,e[5]=t,e[6]=i,e[7]=n):n=e[7];let f;e[8]!==u?(f={onSaved:u,holdsCopy:!0},e[8]=u,e[9]=f):f=e[9];const{save:h,flush:x,isPending:y,hold:v,v8:k}=ct(n,f),b=k?p:`${t}/${i}/${d}`;let S;e[10]!==b||e[11]!==c||e[12]!==l||e[13]!==h||e[14]!==r?(S=E=>{l&&h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return vt(r,l,_,E)})},e[10]=b,e[11]=c,e[12]=l,e[13]=h,e[14]=r,e[15]=S):S=e[15];const j=S;let g;e[16]!==b||e[17]!==o||e[18]!==c||e[19]!==l||e[20]!==h||e[21]!==r?(g=E=>{!l||r.kind!=="page"||h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return Se(_)?gt(_,E,o):null})},e[16]=b,e[17]=o,e[18]=c,e[19]=l,e[20]=h,e[21]=r,e[22]=g):g=e[22];const N=g;let w;return e[23]!==x||e[24]!==v||e[25]!==y||e[26]!==N||e[27]!==j?(w={persistSeo:j,persistRawSeo:N,flush:x,isPending:y,hold:v},e[23]=x,e[24]=v,e[25]=y,e[26]=N,e[27]=j,e[28]=w):w=e[28],w}function Z(a){return typeof a=="string"&&a.trim()?a:void 0}function Te(a,e){if(a){if(e)try{const t=new URL(a,e).href;return _e(t)}catch{return}return _e(a)}}function jt(a){if(!a)return{};const e=Z(a.title),t=Z(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:Z(a.description),image:Z(a.image),favicon:Z(a.favicon)}}function kt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const Nt=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function je(a){const e=C.c(10),{src:t,className:i,iconSize:d}=a,r=d===void 0?20:d;if(t){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={objectFit:"cover"},e[0]=c):c=e[0];let m;return e[1]!==i||e[2]!==t?(m=s.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:i,style:c}),e[1]=i,e[2]=t,e[3]=m):m=e[3],m}let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=l):l=e[4];let o;e[5]!==r?(o=s.jsx(Ke,{size:r}),e[5]=r,e[6]=o):o=e[6];let u;return e[7]!==i||e[8]!==o?(u=s.jsx("div",{className:i,style:l,children:o}),e[7]=i,e[8]=o,e[9]=u):u=e[9],u}function wt(a){const e=C.c(33),{seo:t,host:i,path:d,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #dadce0"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={background:"#f1f3f4"},e[1]=o):o=e[1];let u;e[2]!==t.favicon?(u=s.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:o,children:t.favicon?s.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):s.jsx(Ke,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=u):u=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#202124"},e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsx("div",{className:"truncate text-[13px] leading-tight",style:c,children:i}),e[5]=i,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let n;e[8]!==i||e[9]!==d?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,d]}),e[8]=i,e[9]=d,e[10]=n):n=e[10];let f;e[11]!==m||e[12]!==n?(f=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=f):f=e[13];let h;e[14]!==u||e[15]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2",children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let v;e[21]!==y?(v=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=v):v=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k={color:"#4d5156"},e[23]=k):k=e[23];let b;e[24]!==t.description||e[25]!==r?(b=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=b):b=e[26];let S;e[27]!==b?(S=s.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:k,children:b}),e[27]=b,e[28]=S):S=e[28];let j;return e[29]!==v||e[30]!==S||e[31]!==h?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[h,v,S]}),e[29]=v,e[30]=S,e[31]=h,e[32]=j):j=e[32],j}function Et(a){const e=C.c(26),{seo:t,host:i,t:d}=a;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let l;e[1]!==t.image?(l=s.jsx(je,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={borderTop:"1px solid #e2e8f0"},e[3]=o):o=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[4]=u):u=e[4];let c;e[5]!==i?(c=s.jsx("div",{className:"truncate text-[11px]",style:u,children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];let p;e[8]!==t.title||e[9]!==d?(p=t.title??d("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=d,e[10]=p):p=e[10];let n;e[11]!==p?(n=s.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[11]=p,e[12]=n):n=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#60666c"},e[13]=f):f=e[13];let h;e[14]!==t.description||e[15]!==d?(h=t.description??d("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=d,e[16]=h):h=e[16];let x;e[17]!==h?(x=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:f,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==c||e[21]!==n?(y=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,x]}),e[19]=x,e[20]=c,e[21]=n,e[22]=y):y=e[22];let v;return e[23]!==y||e[24]!==l?(v=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,y]}),e[23]=y,e[24]=l,e[25]=v):v=e[25],v}function _t(a){const e=C.c(36),{seo:t,host:i,accent:d,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#f0f2f5"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#3b4045"},e[1]=o):o=e[1];let u;e[2]!==r?(u=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==u?(c=s.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:o,children:u}),e[4]=u,e[5]=c):c=e[5];const m=`3px solid ${d}`;let p;e[6]!==m?(p={background:"#fff",borderLeft:m},e[6]=m,e[7]=p):p=e[7];let n;e[8]!==t.image?(n=s.jsx(je,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=n):n=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1c2024"},e[10]=f):f=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:f,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let v;e[17]!==t.description||e[18]!==r?(v=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=v):v=e[19];let k;e[20]!==v?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:v}),e[20]=v,e[21]=k):k=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b={color:"#8a9099"},e[22]=b):b=e[22];let S;e[23]!==i?(S=s.jsx("div",{className:"mt-0.5 text-[10px]",style:b,children:i}),e[23]=i,e[24]=S):S=e[24];let j;e[25]!==x||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[x,k,S]}),e[25]=x,e[26]=k,e[27]=S,e[28]=j):j=e[28];let g;e[29]!==j||e[30]!==p||e[31]!==n?(g=s.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:p,children:[n,j]}),e[29]=j,e[30]=p,e[31]=n,e[32]=g):g=e[32];let N;return e[33]!==g||e[34]!==c?(N=s.jsxs("div",{className:"rounded-lg p-2 text-left",style:l,children:[c,g]}),e[33]=g,e[34]=c,e[35]=N):N=e[35],N}function Ct(a){const e=C.c(39),{seo:t,host:i,accent:d,dark:r,t:l}=a,o=r?"#2b2d31":"#fff",u=r?"#00a8fc":"#1264a3",c=r?"#dbdee1":"#3b4045",m=r?"#949ba4":"#8a9099",p=r?"none":"1px solid #e2e8f0";let n;e[0]!==o||e[1]!==p?(n={background:o,border:p},e[0]=o,e[1]=p,e[2]=n):n=e[2];const f=`3px solid ${d}`;let h;e[3]!==f?(h={borderLeft:f,borderRadius:2},e[3]=f,e[4]=h):h=e[4];let x;e[5]!==m?(x={color:m},e[5]=m,e[6]=x):x=e[6];let y;e[7]!==i||e[8]!==x?(y=s.jsx("div",{className:"text-[10px]",style:x,children:i}),e[7]=i,e[8]=x,e[9]=y):y=e[9];let v;e[10]!==u?(v={color:u},e[10]=u,e[11]=v):v=e[11];let k;e[12]!==t.title||e[13]!==l?(k=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=l,e[14]=k):k=e[14];let b;e[15]!==v||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:v,children:k}),e[15]=v,e[16]=k,e[17]=b):b=e[17];let S;e[18]!==c?(S={color:c},e[18]=c,e[19]=S):S=e[19];let j;e[20]!==t.description||e[21]!==l?(j=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=l,e[22]=j):j=e[22];let g;e[23]!==S||e[24]!==j?(g=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:S,children:j}),e[23]=S,e[24]=j,e[25]=g):g=e[25];let N;e[26]!==g||e[27]!==y||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[y,b,g]}),e[26]=g,e[27]=y,e[28]=b,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=s.jsx(je,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let E;e[32]!==N||e[33]!==w||e[34]!==h?(E=s.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=E):E=e[35];let T;return e[36]!==E||e[37]!==n?(T=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=T):T=e[38],T}function Tt(a){const e=C.c(21),{platform:t,seo:i,host:d,path:r,t:l}=a;let o;e[0]!==d||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==i||e[6]!==l?(o=t.layout==="search"?s.jsx(wt,{seo:i,host:d,path:r,t:l}):t.layout==="card"?s.jsx(Et,{seo:i,host:d,path:r,t:l}):t.layout==="chat"?s.jsx(_t,{seo:i,host:d,path:r,accent:t.color,t:l}):s.jsx(Ct,{seo:i,host:d,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=d,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=i,e[6]=l,e[7]=o):o=e[7];const u=o;let c;e[8]!==t.color?(c=s.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=c):c=e[9];let m;e[10]!==t.labelKey||e[11]!==l?(m=l(t.labelKey),e[10]=t.labelKey,e[11]=l,e[12]=m):m=e[12];let p;e[13]!==m?(p=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:m}),e[13]=m,e[14]=p):p=e[14];let n;e[15]!==c||e[16]!==p?(n=s.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[c,p]}),e[15]=c,e[16]=p,e[17]=n):n=e[17];let f;return e[18]!==u||e[19]!==n?(f=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=f):f=e[20],f}function Pt(a){const e=C.c(18),{seo:t,url:i,path:d}=a,r=d===void 0?"/":d,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const v=jt(t);o=v,u=Te(v.image,i),c=Te(v.favicon,i),e[0]=t,e[1]=i,e[2]=o,e[3]=u,e[4]=c}else o=e[2],u=e[3],c=e[4];let m;e[5]!==o||e[6]!==u||e[7]!==c?(m={...o,image:u,favicon:c},e[5]=o,e[6]=u,e[7]=c,e[8]=m):m=e[8];const p=m;let n;e[9]!==i?(n=kt(i),e[9]=i,e[10]=n):n=e[10];const f=n,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==f||e[13]!==l||e[14]!==p?(x=Nt.map(v=>s.jsx(Tt,{platform:v,seo:p,host:f,path:h,t:l},v.id)),e[11]=h,e[12]=f,e[13]=l,e[14]=p,e[15]=x):x=e[15];let y;return e[16]!==x?(y=s.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function De(a,e,t){const i=C.c(3);let d;return i[0]!==e||i[1]!==t?(d=e?Ge(e,t):[],i[0]=e,i[1]=t,i[2]=d):d=i[2],nt(a,d)}function Rt(a){const e=C.c(7),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l}=a;let o;if(e[0]!==d||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=o):o=e[3],!De(o,r,l).ready){let m;return e[4]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"h-full w-full flex items-center justify-center",children:s.jsx(Pe,{className:"size-5 text-muted-foreground"})}),e[4]=m):m=e[4],m}let c;return e[5]!==a?(c=s.jsx(Ft,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Ft(a){const e=C.c(77),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),f=Ve(r,o,l),h=rt(i,d);let x;e[0]!==h?(x=at(h),e[0]=h,e[1]=x):x=e[1];const y=!x,v=f?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=J.useState(k),[j,g]=J.useState(null),[N,w]=J.useState(0),[E,T]=J.useState(void 0),{persistSeo:_,persistRawSeo:L,flush:z,isPending:R,hold:Y}=St({orgSlug:t,virtualMcpId:i,branch:d,target:o,resolved:f,meta:l,onSaved:c});let P;e[2]!==d||e[3]!==t||e[4]!==i?(P=dt({orgSlug:t,virtualMcpId:i,branch:d}),e[2]=d,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=ft(P)(f?.blockKey??""),[U,K]=J.useState(F);(b!==k||U!==F)&&(f&&Y(f.blockKey),S(k),K(F),g(null),T(void 0),w(Dt));const $=o.kind==="page",$e=$?f?.rawSeoData:void 0,X=E!==void 0?E:$e,Le=$?We(X)??void 0:void 0,D=j??Le??v??{},A=f?Ye(bt(D,f),r,l):null,B=A&&(!$||fe(X))?Ue(A,l):null;let te;e[6]!==l?(te=Xe(l),e[6]=l,e[7]=te):te=e[7];const me=te;let I,se;e[8]!==r||e[9]!==D||e[10]!==l||e[11]!==o.kind?(I=o.kind==="page"?Je(r,l)?.seoData??{}:{},se=o.kind==="page"?Lt(I,D):D,e[8]=r,e[9]=D,e[10]=l,e[11]=o.kind,e[12]=I,e[13]=se):(I=e[12],se=e[13]);const ue=se;let le;e[14]!==_||e[15]!==f||e[16]!==g?(le=O=>{if(!f)return;const ke=O;g(ke),_(ke)},e[14]=_,e[15]=f,e[16]=g,e[17]=le):le=e[17];const pe=le;let oe;e[18]!==g?(oe=()=>g(null),e[18]=g,e[19]=oe):oe=e[19];const he=oe;let ie;e[20]!==w?(ie=()=>w(Kt),e[20]=w,e[21]=ie):ie=e[21];const xe=ie;let ne;e[22]!==z||e[23]!==p?(ne=()=>{z(),p?.()},e[22]=z,e[23]=p,e[24]=ne):ne=e[24];const ye=ne,M=o.kind==="page"?o.path:"/";let re;e[25]!==M||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?$t(M,u):u??null,e[25]=M,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==f||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(f?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=f,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&f,be=o.kind==="site"&&f&&B;let H;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(H=o.kind==="page"?s.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[s.jsx("button",{type:"button",onClick:ye,title:o.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),s.jsx(Ae,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(we,{size:16,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:n("sectionsEditor.seoEditor.defaultSeoLabel")}),s.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",n("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[33]=ye,e[34]=n,e[35]=o.kind,e[36]=o.pageName,e[37]=H):H=e[37];let Q;e[38]!==R?(Q=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=Q):Q=e[39];let q;e[40]!==m||e[41]!==n||e[42]!==o.kind?(q=o.kind==="page"&&m&&s.jsxs(Ie,{type:"button",variant:"outline",size:"sm",onClick:m,children:[s.jsx(we,{size:14}),n("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[40]=m,e[41]=n,e[42]=o.kind,e[43]=q):q=e[43];let G;e[44]!==Q||e[45]!==q?(G=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[Q,q]}),e[44]=Q,e[45]=q,e[46]=G):G=e[46];let V;e[47]!==H||e[48]!==G?(V=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[H,G]}),e[47]=H,e[48]=G,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==y||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==X||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==M||e[61]!==L||e[62]!==_||e[63]!==ue||e[64]!==ve||e[65]!==f||e[66]!==B||e[67]!==g||e[68]!==T||e[69]!==ce||e[70]!==be||e[71]!==I||e[72]!==n?(W=!f||!ce&&!be?s.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ge}):s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsx(Ee,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-5 py-4",children:ce?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:n("sectionsEditor.seoEditor.emptyFieldsHint")}),s.jsx(yt,{rawSeo:X,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:f.seoTypeOptions,formResetKey:N,siteDefaultSeo:I,onPersistRaw:O=>{T(O),L(O)},onInnerChange:O=>{g(O),_(O)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:y})]}):B&&A&&s.jsx(Re,{schema:B,resolveType:A,value:D,formResetKey:N,onChange:pe})})}),s.jsx(Ee,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"@container px-5 py-4",children:s.jsx(Pt,{seo:ue,url:ve,path:M})})})]}),e[50]=A,e[51]=y,e[52]=xe,e[53]=he,e[54]=me,e[55]=X,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=M,e[61]=L,e[62]=_,e[63]=ue,e[64]=ve,e[65]=f,e[66]=B,e[67]=g,e[68]=T,e[69]=ce,e[70]=be,e[71]=I,e[72]=n,e[73]=W):W=e[73];let de;return e[74]!==V||e[75]!==W?(de=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[V,W]}),e[74]=V,e[75]=W,e[76]=de):de=e[76],de}function Kt(a){return a+1}function Dt(a){return a+1}function $t(a,e){try{return new URL(a,e).href}catch{return e}}function Lt(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const d={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(d[r]=l));return d}const Xt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Rt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{yt as P,bt as a,vt as b,Xt as s,De as u,gt as w};
1
+ import{c as C,b as ee,j as s,q as ze,K as Ne,r as J,as as Ae,B as Ie,h as Pe}from"./index-CWyPzcrL.js";import{a2 as we}from"./agent-icon-DvD5kv_K.js";import{S as Ee}from"./scroll-area-Jht8lpyk.js";import{X as Re,d as _e}from"./held-block-view-L4ScXyc0.js";import{a1 as Oe,y as Ue}from"./blocks-tab-states-DQr9dBZQ.js";import{h as Be,i as fe,b as Me,t as He,j as Qe,w as qe,s as Ge,r as Ve,u as We,k as Ye,a as Xe,f as Je}from"./empty-message-CqeY7z6M.js";import{L as Fe}from"./label-Cf_dlQhi.js";import{S as Ce}from"./switch-CVqJR3dk.js";import{a as Ze}from"./save-status-C-e1JPTQ.js";import{c as et,b as tt,a as st,d as lt,S as ot}from"./select-e2tvI61e.js";import{v as it,k as nt,u as rt,i as at}from"./site-editor-toast-B030LZGc.js";import{b as ct}from"./use-never-published-ftzoQCEb.js";import{c as dt,u as ft}from"./hosted-reconcile-TIWxrhyM.js";import{b as Ke}from"./Tool01-D9-ePNaJ.js";const mt="https://deco.cx/docs/en/performance/edge-async-render";function ut(a){const e=C.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:d,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Ze();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let f;e[2]!==t?(f=Be(t),e[2]=t,e[3]=f):f=e[3];const h=f,x=!n&&u;let y;e[4]!==c?(y=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=y):y=e[5];let v;e[6]!==y?(v=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:y}),e[6]=y,e[7]=v):v=e[7];const k=x&&l?"seo-enable-hint":void 0;let b;e[8]!==x||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:x,"aria-describedby":k,onCheckedChange:i}),e[8]=x,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==v||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v,b]}),e[13]=v,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==x||e[17]!==l?(j=x&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=x,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==h||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==d||e[24]!==c?(g=n&&(m||!d?o:s.jsxs(s.Fragment,{children:[o,s.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"text-sm font-medium",children:c("sectionsEditor.seoFormChrome.asyncRenderLabel")}),s.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",s.jsx("a",{href:mt,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:c("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),s.jsx(Ce,{id:"seo-async-render",checked:h,onCheckedChange:d,className:"shrink-0"})]})]})),e[19]=h,e[20]=o,e[21]=m,e[22]=n,e[23]=d,e[24]=c,e[25]=g):g=e[25];let N;return e[26]!==g||e[27]!==S||e[28]!==j?(N=s.jsxs("div",{className:"space-y-4",children:[S,j,g]}),e[26]=g,e[27]=S,e[28]=j,e[29]=N):N=e[29],N}function pt(a){const e=C.c(20),{options:t,value:i,onChange:d}=a,r=ee();if(t.length<=1)return null;let l;e[0]!==r?(l=r("sectionsEditor.seoTypeSelect.label"),e[0]=r,e[1]=l):l=e[1];let o;e[2]!==l?(o=s.jsx(Fe,{className:"text-xs text-muted-foreground",children:l}),e[2]=l,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("sectionsEditor.seoTypeSelect.placeholder"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==u?(c=s.jsx(tt,{className:"w-full",children:s.jsx(st,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(xt).map(ht),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(lt,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==d||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(ot,{value:i,onValueChange:d,children:[c,p]}),e[12]=d,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let f;return e[17]!==o||e[18]!==n?(f=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=f):f=e[19],f}function ht(a){return s.jsx(et,{value:a.resolveType,children:a.title},a.resolveType)}function xt(a){return a.resolveType.length>0}function yt(a){const e=C.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:d,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:f,onBumpFormKey:h,beforeFields:x,asyncRenderAvailable:y,seoTypesLoading:v}=a,k=y===void 0?!0:y,b=v===void 0?!1:v,S=ee(),g=!Me()||!b&&d!=="";let N;e[0]!==d||e[1]!==h||e[2]!==f||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Qe(d);p($),f(),h();return}p(null),f(),h()},e[0]=d,e[1]=h,e[2]=f,e[3]=p,e[4]=g,e[5]=N):N=e[5];const w=N;let E;e[6]!==p||e[7]!==t?(E=K=>{const $=He(K,t);p($)},e[6]=p,e[7]=t,e[8]=E):E=e[8];const T=E;let _;e[9]!==h||e[10]!==n?(_=K=>{n({__resolveType:K}),h()},e[9]=h,e[10]=n,e[11]=_):_=e[11];const L=_,z=!g;let R;e[12]!==g||e[13]!==b||e[14]!==S?(R=g||b?void 0:S("sectionsEditor.seoFormChrome.noSeoTypeHint"),e[12]=g,e[13]=b,e[14]=S,e[15]=R):R=e[15];const Y=k?T:void 0;let P;e[16]!==l||e[17]!==L||e[18]!==t||e[19]!==r||e[20]!==o?(P=fe(t)&&r&&l&&o&&o.length>0&&s.jsx(pt,{options:o,value:l,onChange:L}),e[16]=l,e[17]=L,e[18]=t,e[19]=r,e[20]=o,e[21]=P):P=e[21];let F;e[22]!==l||e[23]!==u||e[24]!==i||e[25]!==m||e[26]!==n||e[27]!==t||e[28]!==r||e[29]!==c?(F=fe(t)&&r&&l&&s.jsx(Re,{schema:r,resolveType:l,value:i,formResetKey:u,onChange:K=>n(K),onBreadcrumbChange:m,siteDefaultSeo:c}),e[22]=l,e[23]=u,e[24]=i,e[25]=m,e[26]=n,e[27]=t,e[28]=r,e[29]=c,e[30]=F):F=e[30];let U;return e[31]!==x||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==Y||e[38]!==P?(U=s.jsxs(ut,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:Y,children:[x,P,F]}),e[31]=x,e[32]=w,e[33]=t,e[34]=F,e[35]=z,e[36]=R,e[37]=Y,e[38]=P,e[39]=U):U=e[39],U}function Se(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function vt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const d=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:qe(i,d)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function gt(a,e,t){if(e===null&&Oe(t??void 0)){const{seo:i,...d}=a;return d}return{...a,seo:e}}function bt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function St(a){const e=C.c(29),{orgSlug:t,virtualMcpId:i,branch:d,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze();let m;e[0]!==d||e[1]!==t||e[2]!==i?(m={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=m):m=e[3];const p=it(m);let n;e[4]!==d||e[5]!==t||e[6]!==i?(n={orgSlug:t,virtualMcpId:i,branch:d},e[4]=d,e[5]=t,e[6]=i,e[7]=n):n=e[7];let f;e[8]!==u?(f={onSaved:u,holdsCopy:!0},e[8]=u,e[9]=f):f=e[9];const{save:h,flush:x,isPending:y,hold:v,v8:k}=ct(n,f),b=k?p:`${t}/${i}/${d}`;let S;e[10]!==b||e[11]!==c||e[12]!==l||e[13]!==h||e[14]!==r?(S=E=>{l&&h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return vt(r,l,_,E)})},e[10]=b,e[11]=c,e[12]=l,e[13]=h,e[14]=r,e[15]=S):S=e[15];const j=S;let g;e[16]!==b||e[17]!==o||e[18]!==c||e[19]!==l||e[20]!==h||e[21]!==r?(g=E=>{!l||r.kind!=="page"||h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return Se(_)?gt(_,E,o):null})},e[16]=b,e[17]=o,e[18]=c,e[19]=l,e[20]=h,e[21]=r,e[22]=g):g=e[22];const N=g;let w;return e[23]!==x||e[24]!==v||e[25]!==y||e[26]!==N||e[27]!==j?(w={persistSeo:j,persistRawSeo:N,flush:x,isPending:y,hold:v},e[23]=x,e[24]=v,e[25]=y,e[26]=N,e[27]=j,e[28]=w):w=e[28],w}function Z(a){return typeof a=="string"&&a.trim()?a:void 0}function Te(a,e){if(a){if(e)try{const t=new URL(a,e).href;return _e(t)}catch{return}return _e(a)}}function jt(a){if(!a)return{};const e=Z(a.title),t=Z(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:Z(a.description),image:Z(a.image),favicon:Z(a.favicon)}}function kt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const Nt=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function je(a){const e=C.c(10),{src:t,className:i,iconSize:d}=a,r=d===void 0?20:d;if(t){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={objectFit:"cover"},e[0]=c):c=e[0];let m;return e[1]!==i||e[2]!==t?(m=s.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:i,style:c}),e[1]=i,e[2]=t,e[3]=m):m=e[3],m}let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=l):l=e[4];let o;e[5]!==r?(o=s.jsx(Ke,{size:r}),e[5]=r,e[6]=o):o=e[6];let u;return e[7]!==i||e[8]!==o?(u=s.jsx("div",{className:i,style:l,children:o}),e[7]=i,e[8]=o,e[9]=u):u=e[9],u}function wt(a){const e=C.c(33),{seo:t,host:i,path:d,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #dadce0"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={background:"#f1f3f4"},e[1]=o):o=e[1];let u;e[2]!==t.favicon?(u=s.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:o,children:t.favicon?s.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):s.jsx(Ke,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=u):u=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#202124"},e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsx("div",{className:"truncate text-[13px] leading-tight",style:c,children:i}),e[5]=i,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let n;e[8]!==i||e[9]!==d?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,d]}),e[8]=i,e[9]=d,e[10]=n):n=e[10];let f;e[11]!==m||e[12]!==n?(f=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=f):f=e[13];let h;e[14]!==u||e[15]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2",children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let v;e[21]!==y?(v=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=v):v=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k={color:"#4d5156"},e[23]=k):k=e[23];let b;e[24]!==t.description||e[25]!==r?(b=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=b):b=e[26];let S;e[27]!==b?(S=s.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:k,children:b}),e[27]=b,e[28]=S):S=e[28];let j;return e[29]!==v||e[30]!==S||e[31]!==h?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[h,v,S]}),e[29]=v,e[30]=S,e[31]=h,e[32]=j):j=e[32],j}function Et(a){const e=C.c(26),{seo:t,host:i,t:d}=a;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let l;e[1]!==t.image?(l=s.jsx(je,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={borderTop:"1px solid #e2e8f0"},e[3]=o):o=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[4]=u):u=e[4];let c;e[5]!==i?(c=s.jsx("div",{className:"truncate text-[11px]",style:u,children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];let p;e[8]!==t.title||e[9]!==d?(p=t.title??d("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=d,e[10]=p):p=e[10];let n;e[11]!==p?(n=s.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[11]=p,e[12]=n):n=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#60666c"},e[13]=f):f=e[13];let h;e[14]!==t.description||e[15]!==d?(h=t.description??d("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=d,e[16]=h):h=e[16];let x;e[17]!==h?(x=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:f,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==c||e[21]!==n?(y=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,x]}),e[19]=x,e[20]=c,e[21]=n,e[22]=y):y=e[22];let v;return e[23]!==y||e[24]!==l?(v=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,y]}),e[23]=y,e[24]=l,e[25]=v):v=e[25],v}function _t(a){const e=C.c(36),{seo:t,host:i,accent:d,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#f0f2f5"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#3b4045"},e[1]=o):o=e[1];let u;e[2]!==r?(u=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==u?(c=s.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:o,children:u}),e[4]=u,e[5]=c):c=e[5];const m=`3px solid ${d}`;let p;e[6]!==m?(p={background:"#fff",borderLeft:m},e[6]=m,e[7]=p):p=e[7];let n;e[8]!==t.image?(n=s.jsx(je,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=n):n=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1c2024"},e[10]=f):f=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:f,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let v;e[17]!==t.description||e[18]!==r?(v=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=v):v=e[19];let k;e[20]!==v?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:v}),e[20]=v,e[21]=k):k=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b={color:"#8a9099"},e[22]=b):b=e[22];let S;e[23]!==i?(S=s.jsx("div",{className:"mt-0.5 text-[10px]",style:b,children:i}),e[23]=i,e[24]=S):S=e[24];let j;e[25]!==x||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[x,k,S]}),e[25]=x,e[26]=k,e[27]=S,e[28]=j):j=e[28];let g;e[29]!==j||e[30]!==p||e[31]!==n?(g=s.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:p,children:[n,j]}),e[29]=j,e[30]=p,e[31]=n,e[32]=g):g=e[32];let N;return e[33]!==g||e[34]!==c?(N=s.jsxs("div",{className:"rounded-lg p-2 text-left",style:l,children:[c,g]}),e[33]=g,e[34]=c,e[35]=N):N=e[35],N}function Ct(a){const e=C.c(39),{seo:t,host:i,accent:d,dark:r,t:l}=a,o=r?"#2b2d31":"#fff",u=r?"#00a8fc":"#1264a3",c=r?"#dbdee1":"#3b4045",m=r?"#949ba4":"#8a9099",p=r?"none":"1px solid #e2e8f0";let n;e[0]!==o||e[1]!==p?(n={background:o,border:p},e[0]=o,e[1]=p,e[2]=n):n=e[2];const f=`3px solid ${d}`;let h;e[3]!==f?(h={borderLeft:f,borderRadius:2},e[3]=f,e[4]=h):h=e[4];let x;e[5]!==m?(x={color:m},e[5]=m,e[6]=x):x=e[6];let y;e[7]!==i||e[8]!==x?(y=s.jsx("div",{className:"text-[10px]",style:x,children:i}),e[7]=i,e[8]=x,e[9]=y):y=e[9];let v;e[10]!==u?(v={color:u},e[10]=u,e[11]=v):v=e[11];let k;e[12]!==t.title||e[13]!==l?(k=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=l,e[14]=k):k=e[14];let b;e[15]!==v||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:v,children:k}),e[15]=v,e[16]=k,e[17]=b):b=e[17];let S;e[18]!==c?(S={color:c},e[18]=c,e[19]=S):S=e[19];let j;e[20]!==t.description||e[21]!==l?(j=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=l,e[22]=j):j=e[22];let g;e[23]!==S||e[24]!==j?(g=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:S,children:j}),e[23]=S,e[24]=j,e[25]=g):g=e[25];let N;e[26]!==g||e[27]!==y||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[y,b,g]}),e[26]=g,e[27]=y,e[28]=b,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=s.jsx(je,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let E;e[32]!==N||e[33]!==w||e[34]!==h?(E=s.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=E):E=e[35];let T;return e[36]!==E||e[37]!==n?(T=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=T):T=e[38],T}function Tt(a){const e=C.c(21),{platform:t,seo:i,host:d,path:r,t:l}=a;let o;e[0]!==d||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==i||e[6]!==l?(o=t.layout==="search"?s.jsx(wt,{seo:i,host:d,path:r,t:l}):t.layout==="card"?s.jsx(Et,{seo:i,host:d,path:r,t:l}):t.layout==="chat"?s.jsx(_t,{seo:i,host:d,path:r,accent:t.color,t:l}):s.jsx(Ct,{seo:i,host:d,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=d,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=i,e[6]=l,e[7]=o):o=e[7];const u=o;let c;e[8]!==t.color?(c=s.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=c):c=e[9];let m;e[10]!==t.labelKey||e[11]!==l?(m=l(t.labelKey),e[10]=t.labelKey,e[11]=l,e[12]=m):m=e[12];let p;e[13]!==m?(p=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:m}),e[13]=m,e[14]=p):p=e[14];let n;e[15]!==c||e[16]!==p?(n=s.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[c,p]}),e[15]=c,e[16]=p,e[17]=n):n=e[17];let f;return e[18]!==u||e[19]!==n?(f=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=f):f=e[20],f}function Pt(a){const e=C.c(18),{seo:t,url:i,path:d}=a,r=d===void 0?"/":d,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const v=jt(t);o=v,u=Te(v.image,i),c=Te(v.favicon,i),e[0]=t,e[1]=i,e[2]=o,e[3]=u,e[4]=c}else o=e[2],u=e[3],c=e[4];let m;e[5]!==o||e[6]!==u||e[7]!==c?(m={...o,image:u,favicon:c},e[5]=o,e[6]=u,e[7]=c,e[8]=m):m=e[8];const p=m;let n;e[9]!==i?(n=kt(i),e[9]=i,e[10]=n):n=e[10];const f=n,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==f||e[13]!==l||e[14]!==p?(x=Nt.map(v=>s.jsx(Tt,{platform:v,seo:p,host:f,path:h,t:l},v.id)),e[11]=h,e[12]=f,e[13]=l,e[14]=p,e[15]=x):x=e[15];let y;return e[16]!==x?(y=s.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function De(a,e,t){const i=C.c(3);let d;return i[0]!==e||i[1]!==t?(d=e?Ge(e,t):[],i[0]=e,i[1]=t,i[2]=d):d=i[2],nt(a,d)}function Rt(a){const e=C.c(7),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l}=a;let o;if(e[0]!==d||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=o):o=e[3],!De(o,r,l).ready){let m;return e[4]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"h-full w-full flex items-center justify-center",children:s.jsx(Pe,{className:"size-5 text-muted-foreground"})}),e[4]=m):m=e[4],m}let c;return e[5]!==a?(c=s.jsx(Ft,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Ft(a){const e=C.c(77),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),f=Ve(r,o,l),h=rt(i,d);let x;e[0]!==h?(x=at(h),e[0]=h,e[1]=x):x=e[1];const y=!x,v=f?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=J.useState(k),[j,g]=J.useState(null),[N,w]=J.useState(0),[E,T]=J.useState(void 0),{persistSeo:_,persistRawSeo:L,flush:z,isPending:R,hold:Y}=St({orgSlug:t,virtualMcpId:i,branch:d,target:o,resolved:f,meta:l,onSaved:c});let P;e[2]!==d||e[3]!==t||e[4]!==i?(P=dt({orgSlug:t,virtualMcpId:i,branch:d}),e[2]=d,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=ft(P)(f?.blockKey??""),[U,K]=J.useState(F);(b!==k||U!==F)&&(f&&Y(f.blockKey),S(k),K(F),g(null),T(void 0),w(Dt));const $=o.kind==="page",$e=$?f?.rawSeoData:void 0,X=E!==void 0?E:$e,Le=$?We(X)??void 0:void 0,D=j??Le??v??{},A=f?Ye(bt(D,f),r,l):null,B=A&&(!$||fe(X))?Ue(A,l):null;let te;e[6]!==l?(te=Xe(l),e[6]=l,e[7]=te):te=e[7];const me=te;let I,se;e[8]!==r||e[9]!==D||e[10]!==l||e[11]!==o.kind?(I=o.kind==="page"?Je(r,l)?.seoData??{}:{},se=o.kind==="page"?Lt(I,D):D,e[8]=r,e[9]=D,e[10]=l,e[11]=o.kind,e[12]=I,e[13]=se):(I=e[12],se=e[13]);const ue=se;let le;e[14]!==_||e[15]!==f||e[16]!==g?(le=O=>{if(!f)return;const ke=O;g(ke),_(ke)},e[14]=_,e[15]=f,e[16]=g,e[17]=le):le=e[17];const pe=le;let oe;e[18]!==g?(oe=()=>g(null),e[18]=g,e[19]=oe):oe=e[19];const he=oe;let ie;e[20]!==w?(ie=()=>w(Kt),e[20]=w,e[21]=ie):ie=e[21];const xe=ie;let ne;e[22]!==z||e[23]!==p?(ne=()=>{z(),p?.()},e[22]=z,e[23]=p,e[24]=ne):ne=e[24];const ye=ne,M=o.kind==="page"?o.path:"/";let re;e[25]!==M||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?$t(M,u):u??null,e[25]=M,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==f||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(f?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=f,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&f,be=o.kind==="site"&&f&&B;let H;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(H=o.kind==="page"?s.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[s.jsx("button",{type:"button",onClick:ye,title:o.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),s.jsx(Ae,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(we,{size:16,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:n("sectionsEditor.seoEditor.defaultSeoLabel")}),s.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",n("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[33]=ye,e[34]=n,e[35]=o.kind,e[36]=o.pageName,e[37]=H):H=e[37];let Q;e[38]!==R?(Q=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=Q):Q=e[39];let q;e[40]!==m||e[41]!==n||e[42]!==o.kind?(q=o.kind==="page"&&m&&s.jsxs(Ie,{type:"button",variant:"outline",size:"sm",onClick:m,children:[s.jsx(we,{size:14}),n("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[40]=m,e[41]=n,e[42]=o.kind,e[43]=q):q=e[43];let G;e[44]!==Q||e[45]!==q?(G=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[Q,q]}),e[44]=Q,e[45]=q,e[46]=G):G=e[46];let V;e[47]!==H||e[48]!==G?(V=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[H,G]}),e[47]=H,e[48]=G,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==y||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==X||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==M||e[61]!==L||e[62]!==_||e[63]!==ue||e[64]!==ve||e[65]!==f||e[66]!==B||e[67]!==g||e[68]!==T||e[69]!==ce||e[70]!==be||e[71]!==I||e[72]!==n?(W=!f||!ce&&!be?s.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ge}):s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsx(Ee,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-5 py-4",children:ce?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:n("sectionsEditor.seoEditor.emptyFieldsHint")}),s.jsx(yt,{rawSeo:X,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:f.seoTypeOptions,formResetKey:N,siteDefaultSeo:I,onPersistRaw:O=>{T(O),L(O)},onInnerChange:O=>{g(O),_(O)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:y})]}):B&&A&&s.jsx(Re,{schema:B,resolveType:A,value:D,formResetKey:N,onChange:pe})})}),s.jsx(Ee,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"@container px-5 py-4",children:s.jsx(Pt,{seo:ue,url:ve,path:M})})})]}),e[50]=A,e[51]=y,e[52]=xe,e[53]=he,e[54]=me,e[55]=X,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=M,e[61]=L,e[62]=_,e[63]=ue,e[64]=ve,e[65]=f,e[66]=B,e[67]=g,e[68]=T,e[69]=ce,e[70]=be,e[71]=I,e[72]=n,e[73]=W):W=e[73];let de;return e[74]!==V||e[75]!==W?(de=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[V,W]}),e[74]=V,e[75]=W,e[76]=de):de=e[76],de}function Kt(a){return a+1}function Dt(a){return a+1}function $t(a,e){try{return new URL(a,e).href}catch{return e}}function Lt(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const d={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(d[r]=l));return d}const Xt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Rt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{yt as P,bt as a,vt as b,Xt as s,De as u,gt as w};
@@ -1 +1 @@
1
- import{c as p,m as d,j as f,fT as m}from"./index-B0kMZVmC.js";function x(s){const t=p.c(12);let o,a,r,i;t[0]!==s?({className:o,orientation:r,decorative:i,...a}=s,t[0]=s,t[1]=o,t[2]=a,t[3]=r,t[4]=i):(o=t[1],a=t[2],r=t[3],i=t[4]);const l=r===void 0?"horizontal":r,c=i===void 0?!0:i;let e;t[5]!==o?(e=d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=e):e=t[6];let n;return t[7]!==c||t[8]!==l||t[9]!==a||t[10]!==e?(n=f.jsx(m,{"data-slot":"separator-root",decorative:c,orientation:l,className:e,...a}),t[7]=c,t[8]=l,t[9]=a,t[10]=e,t[11]=n):n=t[11],n}export{x as S};
1
+ import{c as p,m as d,j as f,fT as m}from"./index-CWyPzcrL.js";function x(s){const t=p.c(12);let o,a,r,i;t[0]!==s?({className:o,orientation:r,decorative:i,...a}=s,t[0]=s,t[1]=o,t[2]=a,t[3]=r,t[4]=i):(o=t[1],a=t[2],r=t[3],i=t[4]);const l=r===void 0?"horizontal":r,c=i===void 0?!0:i;let e;t[5]!==o?(e=d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=e):e=t[6];let n;return t[7]!==c||t[8]!==l||t[9]!==a||t[10]!==e?(n=f.jsx(m,{"data-slot":"separator-root",decorative:c,orientation:l,className:e,...a}),t[7]=c,t[8]=l,t[9]=a,t[10]=e,t[11]=n):n=t[11],n}export{x as S};
@@ -0,0 +1 @@
1
+ import{c as e,j as o}from"./index-CWyPzcrL.js";import{V as a}from"./index-Dj0a2kN-.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
@@ -1 +1 @@
1
- import{c as n,m,j as i,eE as S,dU as $,aQ as w,eF as C,dV as z,eG as E,b2 as R,dW as k}from"./index-B0kMZVmC.js";function P(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function D(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(k,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(22);let t,s,a,l,f,p;e[0]!==o?({className:s,children:t,side:l,size:f,hideCloseButton:p,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=f,e[6]=p):(t=e[1],s=e[2],a=e[3],l=e[4],f=e[5],p=e[6]);const d=l===void 0?"right":l,v=f===void 0?"sm":f,x=p===void 0?!1:p;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(D,{}),e[7]=u):u=e[7];const b=d==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l",g=d==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r",j=(d==="left"||d==="right")&&(v==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=d==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",y=d==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[8]!==s||e[9]!==b||e[10]!==g||e[11]!==j||e[12]!==N||e[13]!==y?(r=m("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",b,g,j,N,y,s),e[8]=s,e[9]=b,e[10]=g,e[11]=j,e[12]=N,e[13]=y,e[14]=r):r=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(E,{className:"data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus-ring disabled:pointer-events-none rounded-lg",children:[i.jsx(R,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[15]=x,e[16]=c):c=e[16];let h;return e[17]!==t||e[18]!==a||e[19]!==r||e[20]!==c?(h=i.jsxs(B,{children:[u,i.jsxs(w,{"data-slot":"sheet-content",className:r,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=r,e[20]=c,e[21]=h):h=e[21],h}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function F(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(S,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function G(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(C,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{F as S,T as a,P as b,_ as c,G as d};
1
+ import{c as n,m,j as i,eE as S,dU as $,aQ as w,eF as C,dV as z,eG as E,b2 as R,dW as k}from"./index-CWyPzcrL.js";function P(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function D(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(k,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(22);let t,s,a,l,f,p;e[0]!==o?({className:s,children:t,side:l,size:f,hideCloseButton:p,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=f,e[6]=p):(t=e[1],s=e[2],a=e[3],l=e[4],f=e[5],p=e[6]);const d=l===void 0?"right":l,v=f===void 0?"sm":f,x=p===void 0?!1:p;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(D,{}),e[7]=u):u=e[7];const b=d==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l",g=d==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r",j=(d==="left"||d==="right")&&(v==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=d==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",y=d==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[8]!==s||e[9]!==b||e[10]!==g||e[11]!==j||e[12]!==N||e[13]!==y?(r=m("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",b,g,j,N,y,s),e[8]=s,e[9]=b,e[10]=g,e[11]=j,e[12]=N,e[13]=y,e[14]=r):r=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(E,{className:"data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus-ring disabled:pointer-events-none rounded-lg",children:[i.jsx(R,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[15]=x,e[16]=c):c=e[16];let h;return e[17]!==t||e[18]!==a||e[19]!==r||e[20]!==c?(h=i.jsxs(B,{children:[u,i.jsxs(w,{"data-slot":"sheet-content",className:r,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=r,e[20]=c,e[21]=h):h=e[21],h}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function F(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(S,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function G(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(C,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{F as S,T as a,P as b,_ as c,G as d};
@@ -1 +1 @@
1
- import{c as C,b as J,e as nt,j as o,B as z,t as Z,o as ot,co as xe,af as qt,a as se,M as Bt,V as Kt,K as Xe,cp as Ht,cq as Ut,at as he,m as wt,b4 as xn,C as Pt,r as G,ad as wn,ae as re,cr as Sn,w as Gt,x as Jt,v as Vt,D as Wt,i as pe,cs as vn,ar as Yt,d as kt,a4 as Tt,H as jn,T as Qt,E as St,aS as Xt,ct as kn,aY as Tn,b3 as _t,J as Nn,cu as Pn,bA as _n,aT as On,y as In,cv as An,cw as En,cx as Cn,cy as $n,cz as Ln,a5 as Rn,u as Dn,a6 as zn,cA as Mn,cB as Fn,l as Zt,cC as Ot,cD as qn,O as Bn,a_ as It,cE as Kn,a0 as Hn}from"./index-B0kMZVmC.js";import{t as en}from"./Globe04-B6PnEpLB.js";import{i as Un,s as ie}from"./UserSquare-dl1oayK_.js";import{u as Gn}from"./use-deployment-admin-CK9MBH_P.js";import{a as Jn}from"./admin-fetch-BhTJlAsX.js";import{ah as Vn,W as Wn,G as xt,ab as Yn,I as Qn,ai as Xn,aj as Zn,n as At,h as es,ak as ts,m as ns,al as ss}from"./agent-icon-BLhMgLPf.js";import{s as tn}from"./XClose-DN30jgS9.js";import{u as os,a as is}from"./use-project-scope-BpnU42cL.js";import{u as nn,t as as,b as rs,a as ls,e as cs,c as ds,A as us}from"./use-view-draft-kind-BTxfGo3P.js";import{i as ge}from"./CheckCircle-D_eKfCyb.js";import{i as Et}from"./Monitor01-CNesz7Zi.js";import{i as Ye}from"./Zap-C1Evk-yy.js";import{s as Ct}from"./Plus-D93afoay.js";import{a as ms}from"./Tool01-BR0iTy6Z.js";import{e as Qe,b as ae,d as fs,a as gs,c as hs,C as ps}from"./command-woRMyGZF.js";import{I as ys}from"./integration-icon-BNTOj8TI.js";import{P as bs}from"./project-icon-BkeJc-xp.js";import{a as xs}from"./use-navigate-to-agent-Bc47TXuM.js";import{u as ws}from"./use-debounced-value-Be2K3Tgl.js";import{a as Ss,m as vs}from"./use-mcp-client-Cp7itm-S.js";import{u as js,a as ks,n as Ts}from"./new-project-dialog-B8ntXRJU.js";import{S as Ns,u as Ps,h as _s}from"./thread-intent-oRL32U-K.js";import{L as Os}from"./legacy-admin-welcome-dialog-5GoRU8S5.js";import{R as Is}from"./required-auth-layout-CnCT_9Qk.js";import{u as As,a as Es,b as Cs,c as $s}from"./thread-route-tkHuy51W.js";import{u as Ls}from"./use-org-sso-Dx6waIv3.js";function Rs(t){const e=C.c(49),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a||e[1]!==i?(l=async()=>{const O=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await O.json();if(!O.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=l):l=e[2];let d;e[3]!==a?(d=O=>{window.location.href=`/${O.slug??a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==i?(f=O=>{Z.error(O instanceof Error?O.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[7]=l,e[8]=d,e[9]=f,e[10]=h):h=e[10];const m=nt(h),u=Ds;let c;e[11]!==n||e[12]!==s?(c=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[11]=n,e[12]=s,e[13]=c):c=e[13];let y;e[14]!==s||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=y):y=e[16];let g;e[17]!==y?(g=o.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=g):g=e[18];let x;e[19]!==r||e[20]!==i?(x=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=x):x=e[21];let v;e[22]!==x?(v=o.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[22]=x,e[23]=v):v=e[23];let p;e[24]!==g||e[25]!==v?(p=o.jsxs("div",{className:"space-y-2",children:[g,v]}),e[24]=g,e[25]=v,e[26]=p):p=e[26];let b;e[27]!==m?(b=()=>m.mutate(),e[27]=m,e[28]=b):b=e[28];let S;e[29]!==m.isPending||e[30]!==s||e[31]!==i?(S=m.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=m.isPending,e[30]=s,e[31]=i,e[32]=S):S=e[32];let w;e[33]!==m.isPending||e[34]!==b||e[35]!==S?(w=o.jsx(z,{onClick:b,disabled:m.isPending,children:S}),e[33]=m.isPending,e[34]=b,e[35]=S,e[36]=w):w=e[36];const k=m.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==m.isPending||e[40]!==T?(j=o.jsx(z,{variant:"ghost",onClick:u,disabled:k,children:T}),e[39]=m.isPending,e[40]=T,e[41]=j):j=e[41];let P;e[42]!==w||e[43]!==j?(P=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,j]}),e[42]=w,e[43]=j,e[44]=P):P=e[44];let _;return e[45]!==p||e[46]!==P||e[47]!==c?(_=o.jsxs(xe,{children:[c,p,P]}),e[45]=p,e[46]=P,e[47]=c,e[48]=_):_=e[48],_}function Ds(){window.location.href="/"}function $t(t){const e=C.c(26),{orgSlug:s,orgId:a,orgName:n,reason:r}=t,i=J(),{isAdmin:l}=Gn(),d=zs,f=r==="not-found",h=f?Un:qt;let m;e[0]!==f||e[1]!==i?(m=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=m):m=e[2];const u=m;let c;e[3]!==f||e[4]!==n||e[5]!==s||e[6]!==i?(c=f?o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",o.jsx("strong",{children:s}),"."]}):o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",o.jsx("strong",{children:n??s}),".",o.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=n,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let g;e[8]!==h?(g=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=g):g=e[9];let x;e[10]!==u?(x=o.jsx("h3",{className:"text-lg font-medium",children:u}),e[10]=u,e[11]=x):x=e[11];let v;e[12]!==y?(v=o.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=v):v=e[13];let p;e[14]!==x||e[15]!==v?(p=o.jsxs("div",{className:"space-y-2",children:[x,v]}),e[14]=x,e[15]=v,e[16]=p):p=e[16];let b;e[17]!==l||e[18]!==a||e[19]!==s||e[20]!==i?(b=l&&a?o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o.jsx(Ms,{orgId:a,orgSlug:s}),o.jsx(z,{variant:"ghost",onClick:d,children:i("common.goHome")})]}):o.jsx(z,{onClick:d,children:i("common.goHome")}),e[17]=l,e[18]=a,e[19]=s,e[20]=i,e[21]=b):b=e[21];let S;return e[22]!==g||e[23]!==p||e[24]!==b?(S=o.jsxs(xe,{children:[g,p,b]}),e[22]=g,e[23]=p,e[24]=b,e[25]=S):S=e[25],S}function zs(){window.location.href="/"}function Ms(t){const e=C.c(20),{orgId:s,orgSlug:a}=t,n=J(),{data:r}=se.useSession(),i=r?.user.email;let l;e[0]!==i||e[1]!==s?(l=()=>Jn(`/api/_admin/orgs/${s}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=s,e[2]=l):l=e[2];let d;e[3]!==a?(d=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==n?(f=x=>{Z.error(x instanceof Error?x.message:n("common.noAccessScreen.adminJoinFailed"))},e[5]=n,e[6]=f):f=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[7]=l,e[8]=d,e[9]=f,e[10]=h):h=e[10];const m=nt(h);let u;e[11]!==m?(u=()=>m.mutate(),e[11]=m,e[12]=u):u=e[12];const c=!i||m.isPending;let y;e[13]!==m.isPending||e[14]!==n?(y=m.isPending?n("common.noAccessScreen.adminJoining"):n("common.noAccessScreen.adminJoin"),e[13]=m.isPending,e[14]=n,e[15]=y):y=e[15];let g;return e[16]!==u||e[17]!==c||e[18]!==y?(g=o.jsx(z,{onClick:u,disabled:c,children:y}),e[16]=u,e[17]=c,e[18]=y,e[19]=g):g=e[19],g}function Fs(t){const e=C.c(59),{invitationId:s,orgName:a,orgSlug:n,orgLogo:r}=t,i=J();let l;e[0]!==s?(l=async()=>{const I=await se.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==n?(d=()=>{Bt(),window.location.href=`/${n}`},e[2]=n,e[3]=d):d=e[3];let f;e[4]!==i?(f=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let h;e[6]!==l||e[7]!==d||e[8]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[6]=l,e[7]=d,e[8]=f,e[9]=h):h=e[9];const m=nt(h);let u;e[10]!==s?(u=async()=>{const I=await se.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=u):u=e[11];let c,y;e[12]!==i?(c=()=>{Z.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=y):(c=e[13],y=e[14]);let g;e[15]!==u||e[16]!==c||e[17]!==y?(g={mutationFn:u,onSuccess:c,onError:y},e[15]=u,e[16]=c,e[17]=y,e[18]=g):g=e[18];const x=nt(g),v=m.isPending||x.isPending;let p;e[19]!==r||e[20]!==a?(p=r?o.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Vn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=p):p=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let S;e[25]!==b?(S=o.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=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=o.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=k):k=e[30];let T;e[31]!==S||e[32]!==k?(T=o.jsxs("div",{className:"space-y-2",children:[S,k]}),e[31]=S,e[32]=k,e[33]=T):T=e[33];let j;e[34]!==m?(j=()=>m.mutate(),e[34]=m,e[35]=j):j=e[35];let P;e[36]!==m.isPending||e[37]!==i?(P=m.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=m.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==v||e[40]!==j||e[41]!==P?(_=o.jsx(z,{onClick:j,disabled:v,children:P}),e[39]=v,e[40]=j,e[41]=P,e[42]=_):_=e[42];let O;e[43]!==x?(O=()=>x.mutate(),e[43]=x,e[44]=O):O=e[44];let A;e[45]!==x.isPending||e[46]!==i?(A=x.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=x.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==v||e[49]!==O||e[50]!==A?($=o.jsx(z,{variant:"ghost",onClick:O,disabled:v,children:A}),e[48]=v,e[49]=O,e[50]=A,e[51]=$):$=e[51];let L;e[52]!==_||e[53]!==$?(L=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=L):L=e[54];let R;return e[55]!==T||e[56]!==L||e[57]!==p?(R=o.jsxs(xe,{children:[p,T,L]}),e[55]=T,e[56]=L,e[57]=p,e[58]=R):R=e[58],R}function qs(t){const e=C.c(23),{orgName:s,orgLogo:a}=t,n=J();let r;e[0]!==a||e[1]!==s?(r=a?o.jsx(ot,{url:a,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(Wn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==n?(i=n("common.requestPendingScreen.title"),e[3]=n,e[4]=i):i=e[4];let l;e[5]!==i?(l=o.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=l):l=e[6];let d;e[7]!==s||e[8]!==n?(d=n("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=n,e[9]=d):d=e[9];let f;e[10]!==d?(f=o.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let h;e[12]!==l||e[13]!==f?(h=o.jsxs("div",{className:"space-y-2",children:[l,f]}),e[12]=l,e[13]=f,e[14]=h):h=e[14];let m;e[15]!==n?(m=n("common.goHome"),e[15]=n,e[16]=m):m=e[16];let u;e[17]!==m?(u=o.jsx(z,{variant:"ghost",onClick:Bs,children:m}),e[17]=m,e[18]=u):u=e[18];let c;return e[19]!==r||e[20]!==h||e[21]!==u?(c=o.jsxs(xe,{children:[r,h,u]}),e[19]=r,e[20]=h,e[21]=u,e[22]=c):c=e[22],c}function Bs(){window.location.href="/"}function Ks(t){const e=C.c(45),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a?(l=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await _.json();if(!_.ok||!O.success)throw new Error(O.error??"Failed to request access");return O},e[0]=a,e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Us,e[2]=d):d=e[2];let f;e[3]!==i?(f=_=>{Z.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let h;e[5]!==l||e[6]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[5]=l,e[6]=f,e[7]=h):h=e[7];const m=nt(h);let u;e[8]!==n||e[9]!==s?(u=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[8]=n,e[9]=s,e[10]=u):u=e[10];let c;e[11]!==s||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=c):c=e[13];let y;e[14]!==c?(y=o.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=y):y=e[15];let g;e[16]!==r||e[17]!==i?(g=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=g):g=e[18];let x;e[19]!==g?(x=o.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[19]=g,e[20]=x):x=e[20];let v;e[21]!==y||e[22]!==x?(v=o.jsxs("div",{className:"space-y-2",children:[y,x]}),e[21]=y,e[22]=x,e[23]=v):v=e[23];let p;e[24]!==m?(p=()=>m.mutate(),e[24]=m,e[25]=p):p=e[25];let b;e[26]!==m.isPending||e[27]!==i?(b=m.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=m.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==m.isPending||e[30]!==p||e[31]!==b?(S=o.jsx(z,{onClick:p,disabled:m.isPending,children:b}),e[29]=m.isPending,e[30]=p,e[31]=b,e[32]=S):S=e[32];const w=m.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let T;e[35]!==m.isPending||e[36]!==k?(T=o.jsx(z,{variant:"ghost",onClick:Hs,disabled:w,children:k}),e[35]=m.isPending,e[36]=k,e[37]=T):T=e[37];let j;e[38]!==S||e[39]!==T?(j=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,T]}),e[38]=S,e[39]=T,e[40]=j):j=e[40];let P;return e[41]!==v||e[42]!==j||e[43]!==u?(P=o.jsxs(xe,{children:[u,v,j]}),e[41]=v,e[42]=j,e[43]=u,e[44]=P):P=e[44],P}function Hs(){window.location.href="/"}function Us(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Gs(t){const e=C.c(7);let s;e[0]!==t?(s=Xe.orgAccessStatus(t),e[0]=t,e[1]=s):s=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 n;return e[4]!==s||e[5]!==a?(n={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=n):n=e[6],Kt(n)}function Js({orgSlug:t}){const{data:e}=Gs(t);if(e.status!=="member"){const s=Ht()?.org===t;s&&Ut();const a=localStorage.getItem(he.lastOrgSlug())===t;if(a&&localStorage.removeItem(he.lastOrgSlug()),(s||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?o.jsx($t,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(Fs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(Rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?o.jsx(Ks,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?o.jsx(qs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):o.jsx($t,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function sn(t){const e=C.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:n,title:r,description:i,icon:l,children:d,footerLeading:f,actions:h,onDismiss:m,tone:u}=t,c=u===void 0?"neutral":u,y=f||h;let g;e[0]!==c?(g=c==="system"&&o.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=g):g=e[1];let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx(tn,{size:14}),e[2]=x):x=e[2];let v;e[3]!==a||e[4]!==m?(v=o.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:m,children:x}),e[3]=a,e[4]=m,e[5]=v):v=e[5];const p=l&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==p||e[7]!==b?(S=wt("p-4 pr-11",p,b),e[6]=p,e[7]=b,e[8]=S):S=e[8];let w;e[9]!==l?(w=l&&o.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:l}),e[9]=l,e[10]=w):w=e[10];let k;e[11]!==n?(k=n&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[11]=n,e[12]=k):k=e[12];let T;e[13]!==r?(T=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let j;e[15]!==i?(j=i&&o.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let P;e[17]!==T||e[18]!==j||e[19]!==k?(P=o.jsxs("div",{children:[k,T,j]}),e[17]=T,e[18]=j,e[19]=k,e[20]=P):P=e[20];let _;e[21]!==d?(_=d&&o.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let O;e[23]!==P||e[24]!==_?(O=o.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=O):O=e[25];let A;e[26]!==O||e[27]!==S||e[28]!==w?(A=o.jsxs("div",{className:S,children:[w,O]}),e[26]=O,e[27]=S,e[28]=w,e[29]=A):A=e[29];let $;e[30]!==h||e[31]!==f||e[32]!==y||e[33]!==c?($=y&&o.jsxs("div",{className:wt("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[o.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),o.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=f,e[32]=y,e[33]=c,e[34]=$):$=e[34];let L;return e[35]!==s||e[36]!==A||e[37]!==$||e[38]!==g||e[39]!==v||e[40]!==c?(L=o.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":c,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[g,v,A,$]}),e[35]=s,e[36]=A,e[37]=$,e[38]=g,e[39]=v,e[40]=c,e[41]=L):L=e[41],L}const Vs={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 on(t){return`[data-tour="${Vs[t]}"]`}const Ws=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function Ys(t){return Ws.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function Qs(t,e){return Ys(e).map(s=>({element:on(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const Xs=on("switcher"),Zs=30;function an(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function eo(t,e){return Qs(t,e).filter(s=>typeof s.element=="string"&&an(s.element))}function to(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:(s,{driver:a})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const n=document.createElement("button");n.type="button",n.className="driver-popover-footer-btn layout-tour-skip",n.textContent=t("layoutTour.skip"),n.addEventListener("click",()=>a.destroy()),s.footerButtons.insertBefore(n,s.footerButtons.firstChild)},onDestroyed:()=>{et=!1},steps:e}}let et=!1;async function no(){return(await xn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function so(t,e){if(et)return;et=!0;let s=0;const a=()=>{if(!an(Xs)&&s++<Zs){requestAnimationFrame(a);return}const n=eo(t,e);if(n.length===0){et=!1;return}no().then(r=>{r(to(t,n)).drive()}).catch(()=>{et=!1})};a()}function oo(t){return t!=="off"}function ea(t){if(!t.hasSource)return[];const e=["site-editor"];return oo(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function rn(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ta(t){return t.reportsOnly&&!t.onReportAgent&&rn(t.tabId)}const ln=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:Et,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:xt,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:Yn,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:Pt,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:ie,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:Et,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:ie,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ge,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:Ye,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:ie,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:ge,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:Ye,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:ge,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:ie,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:Ye,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:ie,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:ge,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:Ye,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:ie,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:ge,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:Ye,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:ie,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:xt,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:ge,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:Pt,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:Ye,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:ge,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:ie,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:xt,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:ie,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:Qn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],yt="studio.release-feed.v1",vt=new Set;let ye="",be={},jt=!1;function io(){if(jt)return ye||"{}";try{return localStorage.getItem(yt)??"{}"}catch{return ye||"{}"}}function cn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Lt(){const t=io();return t!==ye&&(ye=t,be=cn(t)),be}function ao(t){vt.add(t);const e=s=>{if(!(s.key!==yt&&s.key!==null)){try{const a=localStorage.getItem(yt)??"{}",r={...cn(a),...be};be=r,ye=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{vt.delete(t),window.removeEventListener("storage",e)}}function ro(t){be=t,ye=JSON.stringify(t);try{localStorage.setItem(yt,ye),jt=!1}catch{jt=!0}vt.forEach(e=>e())}function lo(){const t=C.c(7),e=G.useSyncExternalStore(ao,Lt,Lt);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,n=co;let r;t[2]!==e?(r=ln.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==a||t[5]!==i?(l={isSeen:a,markSeen:n,unseenCount:i},t[4]=a,t[5]=i,t[6]=l):l=t[6],l}function co(t){be[t]||ro({...be,[t]:{seenAt:new Date().toISOString()}})}const Rt=new Map;function dn(t){let e=Rt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},Rt.set(t,e)),e}function uo(t,e){const s=dn(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function mo(t){const e=C.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>dn(s).now,e[0]=s,e[1]=a):a=e[1];const n=a;let r;return e[2]!==s?(r=i=>uo(s,i),e[2]=s,e[3]=r):r=e[3],G.useSyncExternalStore(r,n,n)}const fo=720*60*60*1e3,go=10080*60*1e3;function ho(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function po(t){const e=ln[0];if(!e)return null;const s=ho(e.date),a=t-s;return a<0||a>fo?null:e}function yo(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 bo(t,e){const s=yo(t);return s===null?!1:e-s>=go}function xo(){const t=C.c(46),e=J(),s=os(),a=wn(),n=nn(),r=!!s,i=a===re.home&&!s;let l;t[0]!==n||t[1]!==r?(l=r&&!!n&&rn(n),t[0]=n,t[1]=r,t[2]=l):l=t[2];const d=l,{data:f}=se.useSession(),{isSeen:h,markSeen:m}=lo(),u=mo(6e4);let c,y,g;if(t[3]!==h||t[4]!==u||t[5]!==f?.user?.createdAt){g=Symbol.for("react.early_return_sentinel");e:{if(c=po(u),!c){g=null;break e}if(!bo(f?.user?.createdAt,u)){g=null;break e}y=h(c.id)}t[3]=h,t[4]=u,t[5]=f?.user?.createdAt,t[6]=c,t[7]=y,t[8]=g}else c=t[6],y=t[7],g=t[8];if(g!==Symbol.for("react.early_return_sentinel"))return g;if(y)return null;let x;t[9]!==c.id||t[10]!==r||t[11]!==m||t[12]!==i||t[13]!==d||t[14]!==e?(x=()=>{m(c.id),so(e,{onOrgHome:i,inProject:r,onSiteEditor:d})},t[9]=c.id,t[10]=r,t[11]=m,t[12]=i,t[13]=d,t[14]=e,t[15]=x):x=t[15];const v=x;let p;t[16]!==e?(p=e("announcements.release.ariaLabel"),t[16]=e,t[17]=p):p=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const S=c.eyebrow,w=c.title;let k;t[20]!==c.id||t[21]!==m?(k=()=>m(c.id),t[20]=c.id,t[21]=m,t[22]=k):k=t[22];let T;t[23]!==c.id||t[24]!==c.learnMoreHref||t[25]!==m||t[26]!==e?(T=c.learnMoreHref?o.jsx("a",{href:c.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>m(c.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=c.id,t[24]=c.learnMoreHref,t[25]=m,t[26]=e,t[27]=T):T=t[27];let j;t[28]!==c.cta||t[29]!==c.id||t[30]!==m||t[31]!==v?(j=c.cta?"href"in c.cta?o.jsx(z,{asChild:!0,size:"sm",onClick:()=>m(c.id),children:o.jsx("a",{href:c.cta.href,children:c.cta.label})}):o.jsx(z,{size:"sm",onClick:v,children:c.cta.label}):null,t[28]=c.cta,t[29]=c.id,t[30]=m,t[31]=v,t[32]=j):j=t[32];let P;t[33]!==c.bullets?(P=c.bullets.map(wo),t[33]=c.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=o.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let O;return t[37]!==c.eyebrow||t[38]!==c.title||t[39]!==j||t[40]!==_||t[41]!==p||t[42]!==b||t[43]!==k||t[44]!==T?(O=o.jsx(sn,{ariaLabel:p,dismissLabel:b,eyebrow:S,title:w,onDismiss:k,footerLeading:T,actions:j,children:_}),t[37]=c.eyebrow,t[38]=c.title,t[39]=j,t[40]=_,t[41]=p,t[42]=b,t[43]=k,t[44]=T,t[45]=O):O=t[45],O}function wo(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function So(t){const e=C.c(11),{open:s,onOpenChange:a}=t,n=J();let r;e[0]!==n?(r=n("common.keyboardShortcutsDialog.title"),e[0]=n,e[1]=r):r=e[1];let i;e[2]!==r?(i=o.jsx(Gt,{children:o.jsx(Jt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex flex-col gap-4",children:Sn.map(vo)}),e[4]=l):l=e[4];let d;e[5]!==i?(d=o.jsxs(Vt,{className:"sm:max-w-md",children:[i,l]}),e[5]=i,e[6]=d):d=e[6];let f;return e[7]!==a||e[8]!==s||e[9]!==d?(f=o.jsx(Wt,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function vo(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(jo)})]},t.label)}function jo(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(ko)})]},t.description)}function ko(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const To={xs:"xs",sm:"xs",lg:"md"};function un(t){const e=C.c(4),{org:s,size:a}=t,n=a===void 0?"sm":a,r=s.logo??void 0,i=To[n];let l;return e[0]!==s.name||e[1]!==r||e[2]!==i?(l=o.jsx(ot,{url:r,fallback:s.name,size:i,tone:"solid"}),e[0]=s.name,e[1]=r,e[2]=i,e[3]=l):l=e[3],l}function na({invitation:t,onChanged:e}){const s=J(),[a,n]=G.useState(!1),r=t.organizationName??s("header.orgSwitcher.unknownOrganization"),i=async()=>{n(!0);try{const f=await se.organization.acceptInvitation({invitationId:t.id});if(f.error){Z.error(f.error.message),n(!1);return}}catch{Z.error(s("header.orgSwitcher.failedToAcceptInvitation")),n(!1);return}Z.success(s("header.orgSwitcher.joined",{name:r})),Bt();let d;try{d=(await se.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=d?`/${d}`:"/"},l=async()=>{n(!0);try{const d=await se.organization.rejectInvitation({invitationId:t.id});if(d.error){Z.error(d.error.message),n(!1);return}Z.success(s("header.orgSwitcher.invitationDeclined")),n(!1),e()}catch{Z.error(s("header.orgSwitcher.failedToDeclineInvitation")),n(!1)}};return o.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[o.jsx(un,{org:{name:r},size:"sm"}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"truncate text-sm font-medium",children:r}),o.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[o.jsx(z,{size:"sm",variant:"default",onClick:i,disabled:a,children:s("header.orgSwitcher.accept")}),o.jsx(z,{size:"icon-sm",variant:"ghost",className:"text-muted-foreground",onClick:l,disabled:a,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:r}),children:o.jsx(tn,{size:14})})]})]})}function No(t){return typeof t=="object"&&t!==null&&Array.isArray(t.items)}function Po(t){const e=C.c(13),s=t.trim(),{data:a}=se.useSession(),n=a?.user?.id??"",r=s.length>0&&!!n,i=Xe.organizationSearch(n,s);let l;e[0]!==s?(l=async v=>{const{signal:p}=v,b=await fetch(`/api/_me/organizations/search?q=${encodeURIComponent(s)}`,{signal:p});if(!b.ok)throw new Error(`Organization search failed: ${b.status}`);const S=await b.json();if(!No(S))throw new Error("Invalid organization search response");return S},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==r||e[3]!==i||e[4]!==l?(d={queryKey:i,queryFn:l,enabled:r,placeholderData:vn,staleTime:3e4,retry:!1},e[2]=r,e[3]=i,e[4]=l,e[5]=d):d=e[5];const{data:f,isFetching:h,isPlaceholderData:m,isError:u}=pe(d);let c;e[6]!==f?.items?(c=f?.items??[],e[6]=f?.items,e[7]=c):c=e[7];const y=r&&h,g=r&&m;let x;return e[8]!==u||e[9]!==c||e[10]!==y||e[11]!==g?(x={hits:c,isSearching:y,isStale:g,isError:u},e[8]=u,e[9]=c,e[10]=y,e[11]=g,e[12]=x):x=e[12],x}const _o=3,mn=10,Oo=440,Io=55;function sa(t){const e=Math.floor((t-Oo)/Io);return Math.min(mn,Math.max(_o,e))}function Ao(t,e,s=mn*3,a=[]){return[...new Set([e,...a,...t])].slice(0,s)}function Eo(t,e){return!e.id||t.some(s=>s.slug===e.slug)?[...t]:[...t,e]}function oa(t,e,s,a,n=[]){if(t.length<=a)return{shown:[...t],hidden:[]};const r=new Map(t.map(l=>[l.slug,l])),i=new Set;s&&r.has(s)&&i.add(s);for(const l of n)r.has(l)&&i.add(l);for(const l of e){if(i.size>=a)break;r.has(l)&&i.add(l)}for(const l of t){if(i.size>=a)break;i.add(l.slug)}return{shown:t.filter(l=>i.has(l.slug)),hidden:t.filter(l=>!i.has(l.slug))}}const Dt=[];function fn(){const t=C.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=he.recentOrgs(),t[0]=e):e=t[0];const[s,a]=Yt(e,Dt),n=Array.isArray(s)?s:Dt;let r;t[1]!==a?(r=(l,d)=>a(f=>Ao(Array.isArray(f)?f:[],l,void 0,d)),t[1]=a,t[2]=r):r=t[2];let i;return t[3]!==n||t[4]!==r?(i={recent:n,remember:r},t[3]=n,t[4]=r,t[5]=i):i=t[5],i}const gn={hidden:[],pinned:[],order:[]},st=(t,e)=>t.filter(s=>s!==e);function Co(t){if(typeof t!="object"||t===null)return gn;const e=a=>Array.isArray(a)?a.filter(n=>typeof n=="string"):[],s=t;return{hidden:e(s.hidden),pinned:e(s.pinned),order:e(s.order)}}function ia(t,e){return{...t,hidden:[...st(t.hidden,e),e],pinned:st(t.pinned,e)}}function $o(t,e){return{...t,hidden:st(t.hidden,e)}}function aa(t,e){return t.pinned.includes(e)?{...t,pinned:st(t.pinned,e)}:{...t,hidden:st(t.hidden,e),pinned:[...t.pinned,e]}}function ra(t,e,s){const a=n=>{const r=e.order.indexOf(n);return r===-1?Number.MAX_SAFE_INTEGER:r};return t.filter(n=>n.slug===s||!e.hidden.includes(n.slug)).map((n,r)=>({org:n,index:r})).sort((n,r)=>Number(e.pinned.includes(r.org.slug))-Number(e.pinned.includes(n.org.slug))||a(n.org.slug)-a(r.org.slug)||n.index-r.index).map(({org:n})=>n)}function la(t,e,s,a){const n=e.indexOf(s),r=e.indexOf(a);if(n===-1||r===-1||n===r||t.pinned.includes(s)!==t.pinned.includes(a))return t;const i=[...e];return i.splice(n,1),i.splice(r,0,s),{...t,order:[...i,...t.order.filter(l=>!i.includes(l))]}}function Lo(){const t=C.c(5),e=kt(),{remember:s}=fn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=he.railOrgPrefs(),t[0]=a):a=t[0];const[,n]=Yt(a,gn);let r;return t[1]!==e||t[2]!==s||t[3]!==n?(r=(i,l)=>{const d=l?.includes(i)??!1;n(f=>$o(Co(f),i)),s(i,d?l:void 0),e({to:"/$org/home",params:{org:i},viewTransition:!0})},t[1]=e,t[2]=s,t[3]=n,t[4]=r):r=t[4],r}const zt=8,Ze=["all","organizations","projects","chats","connections","actions"],Ro=5;function Mt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function Do(t,e){const s=a=>{const n=e.indexOf(a);return n===-1?Number.POSITIVE_INFINITY:n};return[...t].sort((a,n)=>s(a.slug)-s(n.slug)||a.name.localeCompare(n.name))}function zo(t,e){const{org:s}=Tt(),a=Ss({connectionId:Qt,orgId:s.id,orgSlug:s.slug}),{data:n}=pe({queryKey:Xe.globalSearch(s.id,t,zt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:zt}})).structuredContent?.items??[]}catch{return[]}}});return n??[]}function Mo(t){const e=C.c(213),{open:s,onOpenChange:a}=t,n=J(),r=kt(),{org:i}=Tt(),{projects:l,hasProjects:d}=is(),{remember:f}=xs(i.slug),[h,m]=G.useState(""),[u,c]=G.useState("all");let y;e[0]!==u?(y=M=>u==="all"||u===M,e[0]=u,e[1]=y):y=e[1];const g=y,x=G.useDeferredValue(h),v=zo(x,g("chats")||g("connections")),p=Lo(),{data:b}=jn(),{recent:S}=fn();let w;e[2]!==h?(w=h.trim(),e[2]=h,e[3]=w):w=e[3];const k=w,T=ws(k,150),{hits:j}=Po(g("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==j||e[6]!==b||e[7]!==S){const M=Do(Eo(b??[],i),S);let U;e[10]!==j?(U=new Set(j.map(Ko)),e[10]=j,e[11]=U):U=e[11],P=U,_=[...M,...j.filter(Ee=>!M.some(F=>F.id===Ee.id))],e[4]=i,e[5]=j,e[6]=b,e[7]=S,e[8]=P,e[9]=_}else P=e[8],_=e[9];const O=_;let A;e[12]!==O||e[13]!==i.slug||e[14]!==u||e[15]!==k?(A=u==="all"&&!k?O.filter(M=>M.slug!==i.slug).slice(0,Ro):O,e[12]=O,e[13]=i.slug,e[14]=u,e[15]=k,e[16]=A):A=e[16];const $=A;let L;e[17]!==a?(L=()=>{a(!1),m(""),c("all")},e[17]=a,e[18]=L):L=e[18];const R=L;let I;e[19]!==u?(I=M=>{const U=Ze.indexOf(u);c(Ze[(U+M+Ze.length)%Ze.length]??"all")},e[19]=u,e[20]=I):I=e[20];const q=I;let H;e[21]!==R?(H=(M,U)=>{St("command_palette_used",{kind:U}),M(),R()},e[21]=R,e[22]=H):H=e[22];const D=H;let le;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(le=M=>{if(M.type==="connection"){if(!M.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:M.slug}});return}if(M.type==="task"){r({to:re.tasks,params:{org:i.slug,taskKey:M.key??void 0}});return}const U=Xt(i.id).id;kn(r,Tn({org:i.slug,agentId:M.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:M.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=le):le=e[26];const ee=le;let te;e[27]!==h?(te=[h],e[27]=h,e[28]=te):te=e[28];const oe=te;let ne,V,W,K,Y,Q,X,E,B,we,Se,ce,de,ue,me,fe;if(e[29]!==R||e[30]!==q||e[31]!==D||e[32]!==d||e[33]!==v||e[34]!==r||e[35]!==a||e[36]!==s||e[37]!==ee||e[38]!==i.slug||e[39]!==$||e[40]!==l||e[41]!==f||e[42]!==oe||e[43]!==u||e[44]!==P||e[45]!==g||e[46]!==n||e[47]!==h||e[48]!==p){const M=v.filter(Bo),U=v.filter(qo);let Ee;e[65]!==i.slug?(Ee={org:i.slug},e[65]=i.slug,e[66]=Ee):Ee=e[66];const F=Ee;let Ce;e[67]!==n?(Ce=n("sidebar.navDestinations.home"),e[67]=n,e[68]=Ce):Ce=e[68];let dt;e[69]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx(es,{"aria-hidden":"true"}),e[69]=dt):dt=e[69];let $e;e[70]!==F||e[71]!==Ce?($e={key:"home",label:Ce,icon:dt,to:re.home,params:F},e[70]=F,e[71]=Ce,e[72]=$e):$e=e[72];let Le;e[73]!==n?(Le=n("sidebar.navDestinations.reports"),e[73]=n,e[74]=Le):Le=e[74];let ut;e[75]===Symbol.for("react.memo_cache_sentinel")?(ut=o.jsx(ts,{"aria-hidden":"true"}),e[75]=ut):ut=e[75];let Re;e[76]!==F||e[77]!==Le?(Re={key:"reports",label:Le,icon:ut,to:re.reports,params:F},e[76]=F,e[77]=Le,e[78]=Re):Re=e[78];let De;e[79]!==n?(De=n("sidebar.navDestinations.tasks"),e[79]=n,e[80]=De):De=e[80];let mt;e[81]===Symbol.for("react.memo_cache_sentinel")?(mt=o.jsx(At,{"aria-hidden":"true"}),e[81]=mt):mt=e[81];let ze;e[82]!==i.slug?(ze={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=ze):ze=e[83];let Me;e[84]!==De||e[85]!==ze?(Me={key:"tasks",label:De,icon:mt,to:re.tasks,params:ze},e[84]=De,e[85]=ze,e[86]=Me):Me=e[86];let Fe;e[87]!==n?(Fe=n("sidebar.navDestinations.library"),e[87]=n,e[88]=Fe):Fe=e[88];let ft;e[89]===Symbol.for("react.memo_cache_sentinel")?(ft=o.jsx(ns,{"aria-hidden":"true"}),e[89]=ft):ft=e[89];let qe;e[90]!==F||e[91]!==Fe?(qe={key:"library",label:Fe,icon:ft,to:re.library,params:F},e[90]=F,e[91]=Fe,e[92]=qe):qe=e[92];let Be;e[93]!==n?(Be=n("sidebar.navDestinations.discover"),e[93]=n,e[94]=Be):Be=e[94];let gt;e[95]===Symbol.for("react.memo_cache_sentinel")?(gt=o.jsx(ss,{"aria-hidden":"true"}),e[95]=gt):gt=e[95];let Ke;e[96]!==F||e[97]!==Be?(Ke={key:"discover",label:Be,icon:gt,to:re.discover,params:F},e[96]=F,e[97]=Be,e[98]=Ke):Ke=e[98];let ht;e[99]!==$e||e[100]!==Re||e[101]!==Me||e[102]!==qe||e[103]!==Ke?(ht=[$e,Re,Me,qe,Ke],e[99]=$e,e[100]=Re,e[101]=Me,e[102]=qe,e[103]=Ke,e[104]=ht):ht=e[104];const bt=ht;V=fs,Se=s,e[105]!==R||e[106]!==a?(ce=N=>N?a(!0):R(),e[105]=R,e[106]=a,e[107]=ce):ce=e[107],e[108]!==n?(de=n("commandPalette.title"),e[108]=n,e[109]=de):de=e[109],e[110]!==n?(ue=n("commandPalette.description"),e[110]=n,e[111]=ue):ue=e[111];let He;e[112]!==u||e[113]!==n?(He=u==="all"?n("commandPalette.placeholder"):n("commandPalette.placeholderScoped",{scope:n(Mt(u)).toLowerCase()}),e[112]=u,e[113]=n,e[114]=He):He=e[114];let Ue;e[115]!==n?(Ue=n("commandPalette.placeholder"),e[115]=n,e[116]=Ue):Ue=e[116];let Ge;e[117]!==q||e[118]!==u||e[119]!==h?(Ge=N=>{if(N.key==="Tab"){N.preventDefault(),q(N.shiftKey?-1:1);return}N.key==="Backspace"&&!h&&u!=="all"&&(N.preventDefault(),c("all"))},e[117]=q,e[118]=u,e[119]=h,e[120]=Ge):Ge=e[120],e[121]!==He||e[122]!==Ue||e[123]!==Ge||e[124]!==h?(me=o.jsx(gs,{placeholder:He,"aria-label":Ue,value:h,onValueChange:m,onKeyDown:Ge}),e[121]=He,e[122]=Ue,e[123]=Ge,e[124]=h,e[125]=me):me=e[125];let Je;e[126]!==n?(Je=n("commandPalette.scope.label"),e[126]=n,e[127]=Je):Je=e[127];let Ve;e[128]!==u||e[129]!==n?(Ve=Ze.map(N=>o.jsx("button",{type:"button",role:"radio","aria-checked":u===N,tabIndex:-1,onMouseDown:Fo,onClick:()=>c(N),className:wt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",u===N?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:n(Mt(N))},N)),e[128]=u,e[129]=n,e[130]=Ve):Ve=e[130],e[131]!==Je||e[132]!==Ve?(fe=o.jsx("div",{role:"radiogroup","aria-label":Je,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ve}),e[131]=Je,e[132]=Ve,e[133]=fe):fe=e[133],ne=hs,W="h-[min(420px,60vh)] max-h-none";let We;e[134]!==n?(We=n("commandPalette.empty"),e[134]=n,e[135]=We):We=e[135],e[136]!==We?(K=o.jsx(ps,{children:We}),e[136]=We,e[137]=K):K=e[137],e[138]!==D||e[139]!==i.slug||e[140]!==$||e[141]!==P||e[142]!==g||e[143]!==n||e[144]!==h||e[145]!==p?(Y=g("organizations")&&$.length>0&&o.jsx(Qe,{heading:n("commandPalette.organizations"),children:$.map(N=>o.jsxs(ae,{value:`org ${N.name} ${N.slug}`,keywords:P.has(N.id)?[h]:void 0,onSelect:()=>D(()=>p(N.slug),"organization"),children:[o.jsx(un,{org:N,size:"xs"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:N.name}),N.slug===i.slug&&o.jsx("span",{className:"text-meta shrink-0",children:n("sidebar.rail.currentOrganization")})]},`org:${N.id}`))}),e[138]=D,e[139]=i.slug,e[140]=$,e[141]=P,e[142]=g,e[143]=n,e[144]=h,e[145]=p,e[146]=Y):Y=e[146],e[147]!==bt||e[148]!==D||e[149]!==r||e[150]!==g||e[151]!==n?(Q=g("actions")&&o.jsx(Qe,{heading:n("commandPalette.goTo"),children:bt.map(N=>o.jsxs(ae,{onSelect:()=>D(()=>r({to:N.to,params:N.params}),"destination"),children:[N.icon,o.jsx("span",{children:N.label})]},N.key))}),e[147]=bt,e[148]=D,e[149]=r,e[150]=g,e[151]=n,e[152]=Q):Q=e[152],e[153]!==D||e[154]!==d||e[155]!==r||e[156]!==i.slug||e[157]!==l||e[158]!==f||e[159]!==g||e[160]!==n?(X=g("projects")&&d&&o.jsx(Qe,{heading:n("commandPalette.projects"),children:l.map(N=>o.jsxs(ae,{value:`project ${N.title}`,onSelect:()=>D(()=>{f(N.id),r({to:re.projects,params:{org:i.slug,agentId:N.id}})},"project"),children:[o.jsx(bs,{icon:N.icon,name:N.title,"aria-hidden":"true"}),o.jsx("span",{children:N.title})]},N.id))}),e[153]=D,e[154]=d,e[155]=r,e[156]=i.slug,e[157]=l,e[158]=f,e[159]=g,e[160]=n,e[161]=X):X=e[161],e[162]!==D||e[163]!==r||e[164]!==F||e[165]!==g||e[166]!==n?(E=g("actions")&&o.jsxs(Qe,{heading:n("commandPalette.actions"),children:[o.jsxs(ae,{value:n("commandPalette.newProject"),onSelect:()=>D(()=>r({to:re.home,params:F}),"new_project"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.newProject")})]}),o.jsxs(ae,{value:n("commandPalette.inviteTeammate"),onSelect:()=>D(()=>r({to:"/$org/settings/members",params:F}),"invite"),children:[o.jsx(Xn,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.inviteTeammate")})]}),o.jsxs(ae,{value:n("commandPalette.addConnection"),onSelect:()=>D(()=>r({to:"/$org/settings/connections",params:F,search:{tab:"all"}}),"add_connection"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.addConnection")})]}),o.jsxs(ae,{value:n("commandPalette.settings"),onSelect:()=>D(()=>r({to:"/$org/settings/general",params:F}),"settings"),children:[o.jsx(ms,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.settings")})]})]}),e[162]=D,e[163]=r,e[164]=F,e[165]=g,e[166]=n,e[167]=E):E=e[167],B=g("connections")&&M.length>0&&o.jsx(Qe,{heading:n("commandPalette.connections"),children:M.map(N=>o.jsxs(ae,{value:`${N.title} ${N.id}`,keywords:oe,onSelect:()=>D(()=>ee(N),"connection"),children:[o.jsx(ys,{icon:N.icon,name:N.title,size:"2xs","aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:N.title})]},`connection:${N.id}`))}),we=g("chats")&&U.length>0&&o.jsx(Qe,{heading:n("commandPalette.results"),children:U.map(N=>o.jsxs(ae,{value:`${N.title} ${N.id}`,keywords:oe,onSelect:()=>D(()=>ee(N),N.type),children:[N.type==="thread"?o.jsx(Zn,{"aria-hidden":"true"}):o.jsx(At,{"aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:N.title}),N.type==="task"&&N.key&&o.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:N.key})]},`${N.type}:${N.id}`))}),e[29]=R,e[30]=q,e[31]=D,e[32]=d,e[33]=v,e[34]=r,e[35]=a,e[36]=s,e[37]=ee,e[38]=i.slug,e[39]=$,e[40]=l,e[41]=f,e[42]=oe,e[43]=u,e[44]=P,e[45]=g,e[46]=n,e[47]=h,e[48]=p,e[49]=ne,e[50]=V,e[51]=W,e[52]=K,e[53]=Y,e[54]=Q,e[55]=X,e[56]=E,e[57]=B,e[58]=we,e[59]=Se,e[60]=ce,e[61]=de,e[62]=ue,e[63]=me,e[64]=fe}else ne=e[49],V=e[50],W=e[51],K=e[52],Y=e[53],Q=e[54],X=e[55],E=e[56],B=e[57],we=e[58],Se=e[59],ce=e[60],de=e[61],ue=e[62],me=e[63],fe=e[64];let ve;e[168]!==ne||e[169]!==W||e[170]!==K||e[171]!==Y||e[172]!==Q||e[173]!==X||e[174]!==E||e[175]!==B||e[176]!==we?(ve=o.jsxs(ne,{className:W,children:[K,Y,Q,X,E,B,we]}),e[168]=ne,e[169]=W,e[170]=K,e[171]=Y,e[172]=Q,e[173]=X,e[174]=E,e[175]=B,e[176]=we,e[177]=ve):ve=e[177];let it;e[178]===Symbol.for("react.memo_cache_sentinel")?(it=["↑","↓"],e[178]=it):it=e[178];let je;e[179]!==n?(je=n("commandPalette.hint.navigate"),e[179]=n,e[180]=je):je=e[180];let ke;e[181]!==je?(ke=o.jsx(pt,{keys:it,label:je}),e[181]=je,e[182]=ke):ke=e[182];let at;e[183]===Symbol.for("react.memo_cache_sentinel")?(at=["↵"],e[183]=at):at=e[183];let Te;e[184]!==n?(Te=n("commandPalette.hint.open"),e[184]=n,e[185]=Te):Te=e[185];let Ne;e[186]!==Te?(Ne=o.jsx(pt,{keys:at,label:Te}),e[186]=Te,e[187]=Ne):Ne=e[187];let rt;e[188]===Symbol.for("react.memo_cache_sentinel")?(rt=["Tab"],e[188]=rt):rt=e[188];let Pe;e[189]!==n?(Pe=n("commandPalette.hint.filter"),e[189]=n,e[190]=Pe):Pe=e[190];let _e;e[191]!==Pe?(_e=o.jsx(pt,{keys:rt,label:Pe}),e[191]=Pe,e[192]=_e):_e=e[192];let lt;e[193]===Symbol.for("react.memo_cache_sentinel")?(lt=["Esc"],e[193]=lt):lt=e[193];let Oe;e[194]!==n?(Oe=n("commandPalette.hint.close"),e[194]=n,e[195]=Oe):Oe=e[195];let Ie;e[196]!==Oe?(Ie=o.jsx(pt,{keys:lt,label:Oe}),e[196]=Oe,e[197]=Ie):Ie=e[197];let Ae;e[198]!==ke||e[199]!==Ne||e[200]!==_e||e[201]!==Ie?(Ae=o.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[ke,Ne,_e,Ie]}),e[198]=ke,e[199]=Ne,e[200]=_e,e[201]=Ie,e[202]=Ae):Ae=e[202];let ct;return e[203]!==V||e[204]!==Se||e[205]!==ce||e[206]!==de||e[207]!==ue||e[208]!==me||e[209]!==fe||e[210]!==ve||e[211]!==Ae?(ct=o.jsxs(V,{open:Se,onOpenChange:ce,title:de,description:ue,children:[me,fe,ve,Ae]}),e[203]=V,e[204]=Se,e[205]=ce,e[206]=de,e[207]=ue,e[208]=me,e[209]=fe,e[210]=ve,e[211]=Ae,e[212]=ct):ct=e[212],ct}function Fo(t){return t.preventDefault()}function qo(t){return t.type!=="connection"}function Bo(t){return t.type==="connection"}function Ko(t){return t.id}function pt(t){const e=C.c(7),{keys:s,label:a}=t;let n;e[0]!==s?(n=s.map(Ho),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==n?(r=o.jsx("span",{className:"flex items-center gap-0.5",children:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=o.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Ho(t){return o.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const tt=new Ns(!1);function Uo(){tt.set(!0)}function Go(){tt.set(!1)}function Jo(){const t=C.c(2),e=G.useSyncExternalStore(tt.subscribe,tt.get);let s;return t[0]!==e?(s=[e,tt.set],t[0]=e,t[1]=s):s=t[1],s}const Vo=300*1e3,Wo=2;function Yo(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Qo(t,e){return t.count>=Wo&&t.version!==null&&t.version!==e}function Xo(){const t=C.c(31),e=J();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:Xe.appVersionCheck(),queryFn:ei,refetchInterval:Vo,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:n}=pe(s),[r,i]=G.useState(0);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={version:null,count:0},t[1]=l):l=t[1];const[d,f]=G.useState(l);n!==r&&(i(n),f(j=>Yo(j,a,"4.579.2")));const[h,m]=G.useState(null);if(!Qo(d,h))return null;let u;t[2]!==e?(u=e("announcements.version.ariaLabel"),t[2]=e,t[3]=u):u=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let g;t[8]!==e?(g=e("announcements.version.title"),t[8]=e,t[9]=g):g=t[9];let x;t[10]!==e?(x=e("announcements.version.description"),t[10]=e,t[11]=x):x=t[11];let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(_t,{size:16}),t[12]=v):v=t[12];let p;t[13]!==d.version?(p=()=>m(d.version),t[13]=d.version,t[14]=p):p=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.579.2"}),t[15]=e,t[16]=b):b=t[16];let S;t[17]!==e?(S=e("announcements.version.refresh"),t[17]=e,t[18]=S):S=t[18];let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(_t,{size:14}),t[19]=w):w=t[19];let k;t[20]!==S?(k=o.jsxs(z,{size:"sm",onClick:Zo,children:[S,w]}),t[20]=S,t[21]=k):k=t[21];let T;return t[22]!==k||t[23]!==u||t[24]!==c||t[25]!==y||t[26]!==g||t[27]!==x||t[28]!==p||t[29]!==b?(T=o.jsx(sn,{ariaLabel:u,dismissLabel:c,eyebrow:y,title:g,description:x,icon:v,tone:"system",onDismiss:p,footerLeading:b,actions:k}),t[22]=k,t[23]=u,t[24]=c,t[25]=y,t[26]=g,t[27]=x,t[28]=p,t[29]=b,t[30]=T):T=t[30],T}function Zo(){return window.location.reload()}async function ei(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function ti(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const ni=Date.parse("2026-07-21T00:00:00Z"),Ft=t=>ti(he.ptBrAnnouncementSeen(t));function si(){const t=C.c(35),e=J(),[s,a]=Nn(),{data:n,isPending:r}=se.useSession(),i=n?.user,l=i?.id,d=i?.createdAt,f=d!=null&&new Date(d).getTime()<ni,h=Pn()==="pt-BR",m=!r&&!!l&&f&&h&&s.language==="en"&&!Ft(l).has()&&!_n(),[u,c]=G.useState(!1),[y,g]=G.useState(!1);!u&&!r&&(c(!0),m&&l&&(Ft(l).mark(),a(ii),g(!0),St("pt_br_auto_switch_shown")));let x;t[0]===Symbol.for("react.memo_cache_sentinel")?(x=D=>{St("pt_br_auto_switch_closed",{action:D}),g(!1)},t[0]=x):x=t[0];const v=x;let p;t[1]!==a?(p=()=>{a(oi),v("switch-back")},t[1]=a,t[2]=p):p=t[2];const b=p;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=D=>!D&&v("dismiss"),t[3]=S):S=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=o.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 T;t[7]!==k?(T=o.jsx(Jt,{children:k}),t[7]=k,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let P;t[11]!==j?(P=o.jsx(On,{children:j}),t[11]=j,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=o.jsxs(Gt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let O;t[16]!==e?(O=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=O):O=t[17];let A;t[18]!==b||t[19]!==O?(A=o.jsx(z,{variant:"outline",onClick:b,children:O}),t[18]=b,t[19]=O,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>v("ok"),t[21]=$):$=t[21];let L;t[22]!==e?(L=e("announcements.ptBr.ok"),t[22]=e,t[23]=L):L=t[23];let R;t[24]!==L?(R=o.jsx(z,{onClick:$,children:L}),t[24]=L,t[25]=R):R=t[25];let I;t[26]!==A||t[27]!==R?(I=o.jsxs(In,{children:[A,R]}),t[26]=A,t[27]=R,t[28]=I):I=t[28];let q;t[29]!==I||t[30]!==_?(q=o.jsxs(Vt,{className:"sm:max-w-md",children:[w,_,I]}),t[29]=I,t[30]=_,t[31]=q):q=t[31];let H;return t[32]!==y||t[33]!==q?(H=o.jsx(Wt,{open:y,onOpenChange:S,children:q}),t[32]=y,t[33]=q,t[34]=H):H=t[34],H}function oi(t){return{...t,language:"en"}}function ii(t){return{...t,language:"pt-BR"}}function ai(t){const e=An(t);return typeof e=="string"?e:void 0}function ri(){return ai("experiment-pipeline-check"),null}function li(t){const e=C.c(1),{activeOrg:s}=t;if(!s)return null;En(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(ri,{}),e[0]=a):a=e[0],a}function ci(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:n,opts:r,autosendValue:i}=t,l={mainpanel:void 0};s?l.virtualmcpid=s:e.virtualmcpid&&(l.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(s??d)!==d;let m,u;return r?.panel?u=r.panel:r?.newThread&&!h&&$n(e.tabId)?(u=e.tabId,l.mainpanel=e.mainpanel,m=e.sidepanel):n?(u=n.tab,n.sidepanel!==void 0&&(m=n.sidepanel),n.mainpanel!==void 0&&(l.mainpanel=n.mainpanel)):!h&&e.tabId&&!Ln(e.tabId)&&(u=e.tabId),m!==void 0&&(l.sidepanel=m),r?.autosend&&(l.autosend=i),{tabId:as(u,t.target,t.blogView),search:l}}const hn="studio:thread-layout:v4",di=50;function pn(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 ui(t,e,s,a=di){const n=t.filter(([r])=>r!==e);for(n.push([e,pn(s)]);n.length>a;)n.shift();return n}function Nt(){try{const t=sessionStorage.getItem(hn);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function yn(t){try{sessionStorage.setItem(hn,JSON.stringify(t))}catch{}}function mi(t,e){t&&yn(ui(Nt(),t,e))}function fi(t){if(!t)return null;const e=Nt().find(([s])=>s===t);return e?pn(e[1]):null}function ca(t){if(!t)return;const e=Nt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&yn(s)}function bn(t){return{queryKey:Xe.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 da(t){const e=C.c(10);let s;e[0]!==t?(s=bn(t),e[0]=t,e[1]=s):s=e[1];const a=pe(s);let n;e[2]!==a.data?.prompts?(n=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=n):n=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]!==n||e[8]!==r?(i={isLoading:a.isLoading,prompts:n,tiles:r},e[6]=a.isLoading,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function gi(t){const e=C.c(31),{orgSlug:s,orgName:a,domain:n}=t,r=J();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const l=i,d=hi;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(qt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let m;e[5]!==h?(m=o.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=m):m=e[6];let u;e[7]!==n||e[8]!==a||e[9]!==r?(u=a?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),n?` ${r("common.ssoRequiredScreen.via",{domain:n})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=n,e[8]=a,e[9]=r,e[10]=u):u=e[10];let c;e[11]!==u?(c=o.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[11]=u,e[12]=c):c=e[12];let y;e[13]!==m||e[14]!==c?(y=o.jsxs("div",{className:"space-y-2",children:[m,c]}),e[13]=m,e[14]=c,e[15]=y):y=e[15];let g;e[16]!==r?(g=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=g):g=e[17];let x;e[18]!==l||e[19]!==g?(x=o.jsx(z,{onClick:l,children:g}),e[18]=l,e[19]=g,e[20]=x):x=e[20];let v;e[21]!==r?(v=r("common.goBack"),e[21]=r,e[22]=v):v=e[22];let p;e[23]!==v?(p=o.jsx(z,{variant:"ghost",onClick:d,children:v}),e[23]=v,e[24]=p):p=e[24];let b;e[25]!==p||e[26]!==x?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[x,p]}),e[25]=p,e[26]=x,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==y?(S=o.jsxs(xe,{children:[f,y,b]}),e[28]=b,e[29]=y,e[30]=S):S=e[30],S}function hi(){window.location.href="/"}function pi(t){const e=C.c(27),{notice:s,orgSlug:a}=t,n=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:o.jsx(Rn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==s.title?(i=o.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let l;e[3]!==s.message?(l=o.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=l):l=e[4];let d;e[5]!==i||e[6]!==l?(d=o.jsxs("div",{className:"space-y-2",children:[i,l]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let f;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(f=s.ctaUrl&&s.ctaLabel?o.jsx(z,{asChild:!0,children:o.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=f):f=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let m;e[11]!==n?(m=n("common.blockedOrgScreen.goToBilling"),e[11]=n,e[12]=m):m=e[12];let u;e[13]!==h||e[14]!==m?(u=o.jsx(z,{variant:"outline",asChild:!0,children:o.jsx("a",{href:h,children:m})}),e[13]=h,e[14]=m,e[15]=u):u=e[15];let c;e[16]!==n?(c=n("common.blockedOrgScreen.switchOrg"),e[16]=n,e[17]=c):c=e[17];let y;e[18]!==c?(y=o.jsx(z,{variant:"ghost",asChild:!0,children:o.jsx("a",{href:"/",children:c})}),e[18]=c,e[19]=y):y=e[19];let g;e[20]!==y||e[21]!==f||e[22]!==u?(g=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,u,y]}),e[20]=y,e[21]=f,e[22]=u,e[23]=g):g=e[23];let x;return e[24]!==g||e[25]!==d?(x=o.jsxs(xe,{children:[r,d,g]}),e[24]=g,e[25]=d,e[26]=x):x=e[26],x}function yi(t){const e=C.c(8);let s;e[0]!==t?(s=Xe.orgNotice(t??""),e[0]=t,e[1]=s):s=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 n=!!t;let r;return e[4]!==s||e[5]!==a||e[6]!==n?(r={queryKey:s,queryFn:a,enabled:n,staleTime:6e4},e[4]=s,e[5]=a,e[6]=n,e[7]=r):r=e[7],pe(r)}const bi="/settings/infra-billing";function xi(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(bi)}function wi(t){const e=C.c(7),{org:s,children:a}=t;let n;e[0]!==s.id||e[1]!==s.name?(n={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=n):n=e[2];const r=n;let i;return e[3]!==a||e[4]!==s||e[5]!==r?(i=o.jsx(Hn,{org:s,project:r,children:a}),e[3]=a,e[4]=s,e[5]=r,e[6]=i):i=e[6],i}function Si(){const t=kt(),e=Ps(),{org:s}=Tt(),a=Dn({strict:!1}),n=nn(),{openPanel:r,closePanel:i}=rs(),l=As(),d=Es(),f=Cs(),h=$s(),m=ls(),u=cs(),{data:c}=se.useSession(),y=(p,b=!0)=>t({to:".",search:p,replace:b}),g=()=>y(p=>({...p,sidepanel:!0})),x=(p,b,S)=>{const w=!!d&&d===p;d&&!w&&mi(d,{tab:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const k=w?null:fi(p),T=Xt(s.id).id,j=ci({prev:{virtualmcpid:l,tabId:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:b,decopilotId:T,savedLayout:k,opts:S,autosendValue:us,target:e?.threads.get().find(P=>P.id===p),blogView:u});return h(p,()=>j.search,{virtualMcpId:b,view:{tabId:j.tabId}})};return{openSidePanel:g,setTaskId:x,createNewTask:async(p,b,S)=>{const w=crypto.randomUUID(),k=p??f,T=m==="blog"&&k===f&&!S?.panel?ds(b,_s(c?.user)):null;try{await e?.create({id:w,virtual_mcp_id:k,...T??(b?{branch:b}:{})})}catch{}x(w,k,{...S,newThread:!0})},openTab:r,closeTab:i}}const vi=new Set(["/$org/","/$org/home"]);function ji(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ki},t[0]=e):e=t[0],Zt(e)}function ki(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&vi.has(e)}function Ti(){const t=C.c(54);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=zn(e)?.params.org,[n,r]=G.useState(!1),[i,l]=Jo(),[d,f]=js(),h=Mn(),m=ji(),u=a??"";let c;t[1]!==u?(c=bn(u),t[1]=u,t[2]=c):c=t[2];const y=!!a&&m;let g;t[3]!==c||t[4]!==y?(g={...c,enabled:y},t[3]=c,t[4]=y,t[5]=g):g=t[5],pe(g);const{data:x}=se.useSession(),v=x?.user?.id;let p,b;t[6]!==h?(p=()=>{const E=B=>{if(It(B)&&B.code==="KeyK"){B.preventDefault(),Uo();return}if(B.key==="?"&&!Kn(B.target)){B.preventDefault(),r(!0);return}It(B)&&B.code==="BracketLeft"&&h.history.canGoBack()&&(B.preventDefault(),h.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},b=[h],t[6]=h,t[7]=p,t[8]=b):(p=t[7],b=t[8]),G.useEffect(p,b);let S;t[9]!==a||t[10]!==v?(S=Fn(a,v),t[9]=a,t[10]=v,t[11]=S):S=t[11];const{data:w}=Kt(S),k=w?.id,T=w?.slug,{data:j}=Ls(k,T),P=!!j?.ssoRequired&&!j.authenticated,{data:_}=yi(T);let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O={select:Ni},t[12]=O):O=t[12];const A=Zt(O),$=_?.severity==="block"&&!xi(A),L=k??"",R=T??"";let I;t[13]!==R||t[14]!==L?(I=vs({connectionId:Qt,orgId:L,orgSlug:R}),t[13]=R,t[14]=L,t[15]=I):I=t[15];const q=!!k&&!!T;let H;if(t[16]!==I||t[17]!==q?(H={...I,enabled:q},t[16]=I,t[17]=q,t[18]=H):H=t[18],pe(H),(!w||Ot(w)||P||$)&&Go(),!w){let E;return t[19]!==a?(E=o.jsx(Js,{orgSlug:a}),t[19]=a,t[20]=E):E=t[20],E}if(Ot(w)){localStorage.getItem(he.lastOrgSlug())===a&&localStorage.removeItem(he.lastOrgSlug()),Ht()?.org===a&&Ut();let E;return t[21]!==w.name?(E=o.jsx(qn,{orgName:w.name}),t[21]=w.name,t[22]=E):E=t[22],E}if($&&_){let E;return t[23]!==w.slug||t[24]!==_?(E=o.jsx(pi,{notice:_,orgSlug:w.slug}),t[23]=w.slug,t[24]=_,t[25]=E):E=t[25],E}if(P){let E;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==j.domain?(E=o.jsx(gi,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:j.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=j.domain,t[30]=E):E=t[30],E}const le=w.logo??null;let ee;t[31]!==w||t[32]!==le?(ee={...w,logo:le},t[31]=w,t[32]=le,t[33]=ee):ee=t[33];let te;t[34]!==w?(te=o.jsx(li,{activeOrg:w}),t[34]=w,t[35]=te):te=t[35];let oe;t[36]===Symbol.for("react.memo_cache_sentinel")?(oe=o.jsx(Bn,{}),t[36]=oe):oe=t[36];let ne;t[37]===Symbol.for("react.memo_cache_sentinel")?(ne=o.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[o.jsx(xo,{}),o.jsx(Xo,{})]}),t[37]=ne):ne=t[37];let V;t[38]!==i||t[39]!==l?(V=i&&o.jsx(Mo,{open:i,onOpenChange:l}),t[38]=i,t[39]=l,t[40]=V):V=t[40];let W;t[41]!==d||t[42]!==f?(W=d&&o.jsx(ks,{open:!0,onOpenChange:f,source:Ts()}),t[41]=d,t[42]=f,t[43]=W):W=t[43];let K;t[44]!==n?(K=o.jsx(So,{open:n,onOpenChange:r}),t[44]=n,t[45]=K):K=t[45];let Y,Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx(si,{}),Q=o.jsx(Os,{}),t[46]=Y,t[47]=Q):(Y=t[46],Q=t[47]);let X;return t[48]!==ee||t[49]!==te||t[50]!==V||t[51]!==W||t[52]!==K?(X=o.jsxs(wi,{org:ee,children:[te,oe,ne,V,W,K,Y,Q]}),t[48]=ee,t[49]=te,t[50]=V,t[51]=W,t[52]=K,t[53]=X):X=t[53],X}function Ni(t){return t.location.pathname}function Pi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Is,{children:o.jsx(Ti,{})}),t[0]=e):e=t[0],e}const ua=Object.freeze(Object.defineProperty({__proto__:null,default:Pi,usePanelActions:Si},Symbol.toStringTag,{value:"Module"}));export{gn as E,na as I,Vs as L,un as O,Po as a,fn as b,Lo as c,oa as d,ra as e,sa as f,Si as g,ia as h,rn as i,mo as j,ca as k,oo as l,la as m,da as n,Uo as o,ea as p,ua as q,Co as r,ta as s,aa as t,yi as u,Eo as w};
1
+ import{c as C,b as J,e as nt,j as o,B as z,t as Z,o as ot,co as xe,af as qt,a as se,M as Bt,V as Kt,K as Xe,cp as Ht,cq as Ut,at as he,m as wt,b4 as xn,C as Pt,r as G,ad as wn,ae as re,cr as Sn,w as Gt,x as Jt,v as Vt,D as Wt,i as pe,cs as vn,ar as Yt,d as kt,a4 as Tt,H as jn,T as Qt,E as St,aS as Xt,ct as kn,aY as Tn,b3 as _t,J as Nn,cu as Pn,bA as _n,aT as On,y as In,cv as An,cw as En,cx as Cn,cy as $n,cz as Ln,a5 as Rn,u as Dn,a6 as zn,cA as Mn,cB as Fn,l as Zt,cC as Ot,cD as qn,O as Bn,a_ as It,cE as Kn,a0 as Hn}from"./index-CWyPzcrL.js";import{t as en}from"./Globe04-KZ-J2ZUi.js";import{i as Un,s as ie}from"./UserSquare-Dv0YcmkC.js";import{u as Gn}from"./use-deployment-admin-DqLzMbx4.js";import{a as Jn}from"./admin-fetch-BhTJlAsX.js";import{ah as Vn,W as Wn,G as xt,ab as Yn,I as Qn,ai as Xn,aj as Zn,n as At,h as es,ak as ts,m as ns,al as ss}from"./agent-icon-DvD5kv_K.js";import{s as tn}from"./XClose-CyHahh4m.js";import{u as os,a as is}from"./use-project-scope-Fr7Egb1F.js";import{u as nn,t as as,b as rs,a as ls,e as cs,c as ds,A as us}from"./use-view-draft-kind-C5ojzKhH.js";import{i as ge}from"./CheckCircle-DAPdRkcW.js";import{i as Et}from"./Monitor01-D7QUQToM.js";import{i as Ye}from"./Zap-Dja9fdMf.js";import{s as Ct}from"./Plus-CRqz0c82.js";import{a as ms}from"./Tool01-D9-ePNaJ.js";import{e as Qe,b as ae,d as fs,a as gs,c as hs,C as ps}from"./command-DQleocFC.js";import{I as ys}from"./integration-icon-C_WzTScv.js";import{P as bs}from"./project-icon-DCOepmMu.js";import{a as xs}from"./use-navigate-to-agent-v5tv9KVo.js";import{u as ws}from"./use-debounced-value-CPC4qMn_.js";import{a as Ss,m as vs}from"./use-mcp-client-BJYqkCGO.js";import{u as js,a as ks,n as Ts}from"./new-project-dialog-uK1Ixj7a.js";import{S as Ns,u as Ps,h as _s}from"./thread-intent-BoKpDkXm.js";import{L as Os}from"./legacy-admin-welcome-dialog-Bh63ptd4.js";import{R as Is}from"./required-auth-layout-DFuLVB75.js";import{u as As,a as Es,b as Cs,c as $s}from"./thread-route-D-qV5LOQ.js";import{u as Ls}from"./use-org-sso-BxQ8a0VK.js";function Rs(t){const e=C.c(49),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a||e[1]!==i?(l=async()=>{const O=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await O.json();if(!O.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=l):l=e[2];let d;e[3]!==a?(d=O=>{window.location.href=`/${O.slug??a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==i?(f=O=>{Z.error(O instanceof Error?O.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[7]=l,e[8]=d,e[9]=f,e[10]=h):h=e[10];const m=nt(h),u=Ds;let c;e[11]!==n||e[12]!==s?(c=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[11]=n,e[12]=s,e[13]=c):c=e[13];let y;e[14]!==s||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=y):y=e[16];let g;e[17]!==y?(g=o.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=g):g=e[18];let x;e[19]!==r||e[20]!==i?(x=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=x):x=e[21];let v;e[22]!==x?(v=o.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[22]=x,e[23]=v):v=e[23];let p;e[24]!==g||e[25]!==v?(p=o.jsxs("div",{className:"space-y-2",children:[g,v]}),e[24]=g,e[25]=v,e[26]=p):p=e[26];let b;e[27]!==m?(b=()=>m.mutate(),e[27]=m,e[28]=b):b=e[28];let S;e[29]!==m.isPending||e[30]!==s||e[31]!==i?(S=m.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=m.isPending,e[30]=s,e[31]=i,e[32]=S):S=e[32];let w;e[33]!==m.isPending||e[34]!==b||e[35]!==S?(w=o.jsx(z,{onClick:b,disabled:m.isPending,children:S}),e[33]=m.isPending,e[34]=b,e[35]=S,e[36]=w):w=e[36];const k=m.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==m.isPending||e[40]!==T?(j=o.jsx(z,{variant:"ghost",onClick:u,disabled:k,children:T}),e[39]=m.isPending,e[40]=T,e[41]=j):j=e[41];let P;e[42]!==w||e[43]!==j?(P=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,j]}),e[42]=w,e[43]=j,e[44]=P):P=e[44];let _;return e[45]!==p||e[46]!==P||e[47]!==c?(_=o.jsxs(xe,{children:[c,p,P]}),e[45]=p,e[46]=P,e[47]=c,e[48]=_):_=e[48],_}function Ds(){window.location.href="/"}function $t(t){const e=C.c(26),{orgSlug:s,orgId:a,orgName:n,reason:r}=t,i=J(),{isAdmin:l}=Gn(),d=zs,f=r==="not-found",h=f?Un:qt;let m;e[0]!==f||e[1]!==i?(m=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=m):m=e[2];const u=m;let c;e[3]!==f||e[4]!==n||e[5]!==s||e[6]!==i?(c=f?o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",o.jsx("strong",{children:s}),"."]}):o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",o.jsx("strong",{children:n??s}),".",o.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=n,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let g;e[8]!==h?(g=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=g):g=e[9];let x;e[10]!==u?(x=o.jsx("h3",{className:"text-lg font-medium",children:u}),e[10]=u,e[11]=x):x=e[11];let v;e[12]!==y?(v=o.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=v):v=e[13];let p;e[14]!==x||e[15]!==v?(p=o.jsxs("div",{className:"space-y-2",children:[x,v]}),e[14]=x,e[15]=v,e[16]=p):p=e[16];let b;e[17]!==l||e[18]!==a||e[19]!==s||e[20]!==i?(b=l&&a?o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o.jsx(Ms,{orgId:a,orgSlug:s}),o.jsx(z,{variant:"ghost",onClick:d,children:i("common.goHome")})]}):o.jsx(z,{onClick:d,children:i("common.goHome")}),e[17]=l,e[18]=a,e[19]=s,e[20]=i,e[21]=b):b=e[21];let S;return e[22]!==g||e[23]!==p||e[24]!==b?(S=o.jsxs(xe,{children:[g,p,b]}),e[22]=g,e[23]=p,e[24]=b,e[25]=S):S=e[25],S}function zs(){window.location.href="/"}function Ms(t){const e=C.c(20),{orgId:s,orgSlug:a}=t,n=J(),{data:r}=se.useSession(),i=r?.user.email;let l;e[0]!==i||e[1]!==s?(l=()=>Jn(`/api/_admin/orgs/${s}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=s,e[2]=l):l=e[2];let d;e[3]!==a?(d=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=d):d=e[4];let f;e[5]!==n?(f=x=>{Z.error(x instanceof Error?x.message:n("common.noAccessScreen.adminJoinFailed"))},e[5]=n,e[6]=f):f=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[7]=l,e[8]=d,e[9]=f,e[10]=h):h=e[10];const m=nt(h);let u;e[11]!==m?(u=()=>m.mutate(),e[11]=m,e[12]=u):u=e[12];const c=!i||m.isPending;let y;e[13]!==m.isPending||e[14]!==n?(y=m.isPending?n("common.noAccessScreen.adminJoining"):n("common.noAccessScreen.adminJoin"),e[13]=m.isPending,e[14]=n,e[15]=y):y=e[15];let g;return e[16]!==u||e[17]!==c||e[18]!==y?(g=o.jsx(z,{onClick:u,disabled:c,children:y}),e[16]=u,e[17]=c,e[18]=y,e[19]=g):g=e[19],g}function Fs(t){const e=C.c(59),{invitationId:s,orgName:a,orgSlug:n,orgLogo:r}=t,i=J();let l;e[0]!==s?(l=async()=>{const I=await se.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==n?(d=()=>{Bt(),window.location.href=`/${n}`},e[2]=n,e[3]=d):d=e[3];let f;e[4]!==i?(f=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let h;e[6]!==l||e[7]!==d||e[8]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[6]=l,e[7]=d,e[8]=f,e[9]=h):h=e[9];const m=nt(h);let u;e[10]!==s?(u=async()=>{const I=await se.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=u):u=e[11];let c,y;e[12]!==i?(c=()=>{Z.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=y):(c=e[13],y=e[14]);let g;e[15]!==u||e[16]!==c||e[17]!==y?(g={mutationFn:u,onSuccess:c,onError:y},e[15]=u,e[16]=c,e[17]=y,e[18]=g):g=e[18];const x=nt(g),v=m.isPending||x.isPending;let p;e[19]!==r||e[20]!==a?(p=r?o.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Vn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=p):p=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let S;e[25]!==b?(S=o.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=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=o.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=k):k=e[30];let T;e[31]!==S||e[32]!==k?(T=o.jsxs("div",{className:"space-y-2",children:[S,k]}),e[31]=S,e[32]=k,e[33]=T):T=e[33];let j;e[34]!==m?(j=()=>m.mutate(),e[34]=m,e[35]=j):j=e[35];let P;e[36]!==m.isPending||e[37]!==i?(P=m.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=m.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==v||e[40]!==j||e[41]!==P?(_=o.jsx(z,{onClick:j,disabled:v,children:P}),e[39]=v,e[40]=j,e[41]=P,e[42]=_):_=e[42];let O;e[43]!==x?(O=()=>x.mutate(),e[43]=x,e[44]=O):O=e[44];let A;e[45]!==x.isPending||e[46]!==i?(A=x.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=x.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==v||e[49]!==O||e[50]!==A?($=o.jsx(z,{variant:"ghost",onClick:O,disabled:v,children:A}),e[48]=v,e[49]=O,e[50]=A,e[51]=$):$=e[51];let L;e[52]!==_||e[53]!==$?(L=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=L):L=e[54];let R;return e[55]!==T||e[56]!==L||e[57]!==p?(R=o.jsxs(xe,{children:[p,T,L]}),e[55]=T,e[56]=L,e[57]=p,e[58]=R):R=e[58],R}function qs(t){const e=C.c(23),{orgName:s,orgLogo:a}=t,n=J();let r;e[0]!==a||e[1]!==s?(r=a?o.jsx(ot,{url:a,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(Wn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==n?(i=n("common.requestPendingScreen.title"),e[3]=n,e[4]=i):i=e[4];let l;e[5]!==i?(l=o.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=l):l=e[6];let d;e[7]!==s||e[8]!==n?(d=n("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=n,e[9]=d):d=e[9];let f;e[10]!==d?(f=o.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let h;e[12]!==l||e[13]!==f?(h=o.jsxs("div",{className:"space-y-2",children:[l,f]}),e[12]=l,e[13]=f,e[14]=h):h=e[14];let m;e[15]!==n?(m=n("common.goHome"),e[15]=n,e[16]=m):m=e[16];let u;e[17]!==m?(u=o.jsx(z,{variant:"ghost",onClick:Bs,children:m}),e[17]=m,e[18]=u):u=e[18];let c;return e[19]!==r||e[20]!==h||e[21]!==u?(c=o.jsxs(xe,{children:[r,h,u]}),e[19]=r,e[20]=h,e[21]=u,e[22]=c):c=e[22],c}function Bs(){window.location.href="/"}function Ks(t){const e=C.c(45),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a?(l=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await _.json();if(!_.ok||!O.success)throw new Error(O.error??"Failed to request access");return O},e[0]=a,e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Us,e[2]=d):d=e[2];let f;e[3]!==i?(f=_=>{Z.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let h;e[5]!==l||e[6]!==f?(h={mutationFn:l,onSuccess:d,onError:f},e[5]=l,e[6]=f,e[7]=h):h=e[7];const m=nt(h);let u;e[8]!==n||e[9]!==s?(u=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[8]=n,e[9]=s,e[10]=u):u=e[10];let c;e[11]!==s||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=c):c=e[13];let y;e[14]!==c?(y=o.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=y):y=e[15];let g;e[16]!==r||e[17]!==i?(g=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=g):g=e[18];let x;e[19]!==g?(x=o.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[19]=g,e[20]=x):x=e[20];let v;e[21]!==y||e[22]!==x?(v=o.jsxs("div",{className:"space-y-2",children:[y,x]}),e[21]=y,e[22]=x,e[23]=v):v=e[23];let p;e[24]!==m?(p=()=>m.mutate(),e[24]=m,e[25]=p):p=e[25];let b;e[26]!==m.isPending||e[27]!==i?(b=m.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=m.isPending,e[27]=i,e[28]=b):b=e[28];let S;e[29]!==m.isPending||e[30]!==p||e[31]!==b?(S=o.jsx(z,{onClick:p,disabled:m.isPending,children:b}),e[29]=m.isPending,e[30]=p,e[31]=b,e[32]=S):S=e[32];const w=m.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let T;e[35]!==m.isPending||e[36]!==k?(T=o.jsx(z,{variant:"ghost",onClick:Hs,disabled:w,children:k}),e[35]=m.isPending,e[36]=k,e[37]=T):T=e[37];let j;e[38]!==S||e[39]!==T?(j=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,T]}),e[38]=S,e[39]=T,e[40]=j):j=e[40];let P;return e[41]!==v||e[42]!==j||e[43]!==u?(P=o.jsxs(xe,{children:[u,v,j]}),e[41]=v,e[42]=j,e[43]=u,e[44]=P):P=e[44],P}function Hs(){window.location.href="/"}function Us(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Gs(t){const e=C.c(7);let s;e[0]!==t?(s=Xe.orgAccessStatus(t),e[0]=t,e[1]=s):s=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 n;return e[4]!==s||e[5]!==a?(n={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=n):n=e[6],Kt(n)}function Js({orgSlug:t}){const{data:e}=Gs(t);if(e.status!=="member"){const s=Ht()?.org===t;s&&Ut();const a=localStorage.getItem(he.lastOrgSlug())===t;if(a&&localStorage.removeItem(he.lastOrgSlug()),(s||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?o.jsx($t,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(Fs,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(Rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?o.jsx(Ks,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?o.jsx(qs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):o.jsx($t,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function sn(t){const e=C.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:n,title:r,description:i,icon:l,children:d,footerLeading:f,actions:h,onDismiss:m,tone:u}=t,c=u===void 0?"neutral":u,y=f||h;let g;e[0]!==c?(g=c==="system"&&o.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=g):g=e[1];let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx(tn,{size:14}),e[2]=x):x=e[2];let v;e[3]!==a||e[4]!==m?(v=o.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:m,children:x}),e[3]=a,e[4]=m,e[5]=v):v=e[5];const p=l&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==p||e[7]!==b?(S=wt("p-4 pr-11",p,b),e[6]=p,e[7]=b,e[8]=S):S=e[8];let w;e[9]!==l?(w=l&&o.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:l}),e[9]=l,e[10]=w):w=e[10];let k;e[11]!==n?(k=n&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[11]=n,e[12]=k):k=e[12];let T;e[13]!==r?(T=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let j;e[15]!==i?(j=i&&o.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let P;e[17]!==T||e[18]!==j||e[19]!==k?(P=o.jsxs("div",{children:[k,T,j]}),e[17]=T,e[18]=j,e[19]=k,e[20]=P):P=e[20];let _;e[21]!==d?(_=d&&o.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let O;e[23]!==P||e[24]!==_?(O=o.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=O):O=e[25];let A;e[26]!==O||e[27]!==S||e[28]!==w?(A=o.jsxs("div",{className:S,children:[w,O]}),e[26]=O,e[27]=S,e[28]=w,e[29]=A):A=e[29];let $;e[30]!==h||e[31]!==f||e[32]!==y||e[33]!==c?($=y&&o.jsxs("div",{className:wt("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[o.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),o.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=f,e[32]=y,e[33]=c,e[34]=$):$=e[34];let L;return e[35]!==s||e[36]!==A||e[37]!==$||e[38]!==g||e[39]!==v||e[40]!==c?(L=o.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":c,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[g,v,A,$]}),e[35]=s,e[36]=A,e[37]=$,e[38]=g,e[39]=v,e[40]=c,e[41]=L):L=e[41],L}const Vs={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 on(t){return`[data-tour="${Vs[t]}"]`}const Ws=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function Ys(t){return Ws.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function Qs(t,e){return Ys(e).map(s=>({element:on(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const Xs=on("switcher"),Zs=30;function an(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function eo(t,e){return Qs(t,e).filter(s=>typeof s.element=="string"&&an(s.element))}function to(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:(s,{driver:a})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const n=document.createElement("button");n.type="button",n.className="driver-popover-footer-btn layout-tour-skip",n.textContent=t("layoutTour.skip"),n.addEventListener("click",()=>a.destroy()),s.footerButtons.insertBefore(n,s.footerButtons.firstChild)},onDestroyed:()=>{et=!1},steps:e}}let et=!1;async function no(){return(await xn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function so(t,e){if(et)return;et=!0;let s=0;const a=()=>{if(!an(Xs)&&s++<Zs){requestAnimationFrame(a);return}const n=eo(t,e);if(n.length===0){et=!1;return}no().then(r=>{r(to(t,n)).drive()}).catch(()=>{et=!1})};a()}function oo(t){return t!=="off"}function ea(t){if(!t.hasSource)return[];const e=["site-editor"];return oo(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function rn(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ta(t){return t.reportsOnly&&!t.onReportAgent&&rn(t.tabId)}const ln=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:Et,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:xt,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:Yn,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:Pt,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:ie,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:Et,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:ie,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ge,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:Ye,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:ie,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:ge,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:Ye,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:ge,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:ie,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:Ye,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:ie,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:ge,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:Ye,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:ie,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:ge,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:Ye,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:ie,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:xt,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:ge,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:Pt,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:Ye,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:ge,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:ie,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:xt,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:ie,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:Qn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],yt="studio.release-feed.v1",vt=new Set;let ye="",be={},jt=!1;function io(){if(jt)return ye||"{}";try{return localStorage.getItem(yt)??"{}"}catch{return ye||"{}"}}function cn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Lt(){const t=io();return t!==ye&&(ye=t,be=cn(t)),be}function ao(t){vt.add(t);const e=s=>{if(!(s.key!==yt&&s.key!==null)){try{const a=localStorage.getItem(yt)??"{}",r={...cn(a),...be};be=r,ye=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{vt.delete(t),window.removeEventListener("storage",e)}}function ro(t){be=t,ye=JSON.stringify(t);try{localStorage.setItem(yt,ye),jt=!1}catch{jt=!0}vt.forEach(e=>e())}function lo(){const t=C.c(7),e=G.useSyncExternalStore(ao,Lt,Lt);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,n=co;let r;t[2]!==e?(r=ln.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==a||t[5]!==i?(l={isSeen:a,markSeen:n,unseenCount:i},t[4]=a,t[5]=i,t[6]=l):l=t[6],l}function co(t){be[t]||ro({...be,[t]:{seenAt:new Date().toISOString()}})}const Rt=new Map;function dn(t){let e=Rt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},Rt.set(t,e)),e}function uo(t,e){const s=dn(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function mo(t){const e=C.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>dn(s).now,e[0]=s,e[1]=a):a=e[1];const n=a;let r;return e[2]!==s?(r=i=>uo(s,i),e[2]=s,e[3]=r):r=e[3],G.useSyncExternalStore(r,n,n)}const fo=720*60*60*1e3,go=10080*60*1e3;function ho(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function po(t){const e=ln[0];if(!e)return null;const s=ho(e.date),a=t-s;return a<0||a>fo?null:e}function yo(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 bo(t,e){const s=yo(t);return s===null?!1:e-s>=go}function xo(){const t=C.c(46),e=J(),s=os(),a=wn(),n=nn(),r=!!s,i=a===re.home&&!s;let l;t[0]!==n||t[1]!==r?(l=r&&!!n&&rn(n),t[0]=n,t[1]=r,t[2]=l):l=t[2];const d=l,{data:f}=se.useSession(),{isSeen:h,markSeen:m}=lo(),u=mo(6e4);let c,y,g;if(t[3]!==h||t[4]!==u||t[5]!==f?.user?.createdAt){g=Symbol.for("react.early_return_sentinel");e:{if(c=po(u),!c){g=null;break e}if(!bo(f?.user?.createdAt,u)){g=null;break e}y=h(c.id)}t[3]=h,t[4]=u,t[5]=f?.user?.createdAt,t[6]=c,t[7]=y,t[8]=g}else c=t[6],y=t[7],g=t[8];if(g!==Symbol.for("react.early_return_sentinel"))return g;if(y)return null;let x;t[9]!==c.id||t[10]!==r||t[11]!==m||t[12]!==i||t[13]!==d||t[14]!==e?(x=()=>{m(c.id),so(e,{onOrgHome:i,inProject:r,onSiteEditor:d})},t[9]=c.id,t[10]=r,t[11]=m,t[12]=i,t[13]=d,t[14]=e,t[15]=x):x=t[15];const v=x;let p;t[16]!==e?(p=e("announcements.release.ariaLabel"),t[16]=e,t[17]=p):p=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const S=c.eyebrow,w=c.title;let k;t[20]!==c.id||t[21]!==m?(k=()=>m(c.id),t[20]=c.id,t[21]=m,t[22]=k):k=t[22];let T;t[23]!==c.id||t[24]!==c.learnMoreHref||t[25]!==m||t[26]!==e?(T=c.learnMoreHref?o.jsx("a",{href:c.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>m(c.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=c.id,t[24]=c.learnMoreHref,t[25]=m,t[26]=e,t[27]=T):T=t[27];let j;t[28]!==c.cta||t[29]!==c.id||t[30]!==m||t[31]!==v?(j=c.cta?"href"in c.cta?o.jsx(z,{asChild:!0,size:"sm",onClick:()=>m(c.id),children:o.jsx("a",{href:c.cta.href,children:c.cta.label})}):o.jsx(z,{size:"sm",onClick:v,children:c.cta.label}):null,t[28]=c.cta,t[29]=c.id,t[30]=m,t[31]=v,t[32]=j):j=t[32];let P;t[33]!==c.bullets?(P=c.bullets.map(wo),t[33]=c.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=o.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let O;return t[37]!==c.eyebrow||t[38]!==c.title||t[39]!==j||t[40]!==_||t[41]!==p||t[42]!==b||t[43]!==k||t[44]!==T?(O=o.jsx(sn,{ariaLabel:p,dismissLabel:b,eyebrow:S,title:w,onDismiss:k,footerLeading:T,actions:j,children:_}),t[37]=c.eyebrow,t[38]=c.title,t[39]=j,t[40]=_,t[41]=p,t[42]=b,t[43]=k,t[44]=T,t[45]=O):O=t[45],O}function wo(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function So(t){const e=C.c(11),{open:s,onOpenChange:a}=t,n=J();let r;e[0]!==n?(r=n("common.keyboardShortcutsDialog.title"),e[0]=n,e[1]=r):r=e[1];let i;e[2]!==r?(i=o.jsx(Gt,{children:o.jsx(Jt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex flex-col gap-4",children:Sn.map(vo)}),e[4]=l):l=e[4];let d;e[5]!==i?(d=o.jsxs(Vt,{className:"sm:max-w-md",children:[i,l]}),e[5]=i,e[6]=d):d=e[6];let f;return e[7]!==a||e[8]!==s||e[9]!==d?(f=o.jsx(Wt,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function vo(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(jo)})]},t.label)}function jo(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(ko)})]},t.description)}function ko(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const To={xs:"xs",sm:"xs",lg:"md"};function un(t){const e=C.c(4),{org:s,size:a}=t,n=a===void 0?"sm":a,r=s.logo??void 0,i=To[n];let l;return e[0]!==s.name||e[1]!==r||e[2]!==i?(l=o.jsx(ot,{url:r,fallback:s.name,size:i,tone:"solid"}),e[0]=s.name,e[1]=r,e[2]=i,e[3]=l):l=e[3],l}function na({invitation:t,onChanged:e}){const s=J(),[a,n]=G.useState(!1),r=t.organizationName??s("header.orgSwitcher.unknownOrganization"),i=async()=>{n(!0);try{const f=await se.organization.acceptInvitation({invitationId:t.id});if(f.error){Z.error(f.error.message),n(!1);return}}catch{Z.error(s("header.orgSwitcher.failedToAcceptInvitation")),n(!1);return}Z.success(s("header.orgSwitcher.joined",{name:r})),Bt();let d;try{d=(await se.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=d?`/${d}`:"/"},l=async()=>{n(!0);try{const d=await se.organization.rejectInvitation({invitationId:t.id});if(d.error){Z.error(d.error.message),n(!1);return}Z.success(s("header.orgSwitcher.invitationDeclined")),n(!1),e()}catch{Z.error(s("header.orgSwitcher.failedToDeclineInvitation")),n(!1)}};return o.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[o.jsx(un,{org:{name:r},size:"sm"}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"truncate text-sm font-medium",children:r}),o.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[o.jsx(z,{size:"sm",variant:"default",onClick:i,disabled:a,children:s("header.orgSwitcher.accept")}),o.jsx(z,{size:"icon-sm",variant:"ghost",className:"text-muted-foreground",onClick:l,disabled:a,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:r}),children:o.jsx(tn,{size:14})})]})]})}function No(t){return typeof t=="object"&&t!==null&&Array.isArray(t.items)}function Po(t){const e=C.c(13),s=t.trim(),{data:a}=se.useSession(),n=a?.user?.id??"",r=s.length>0&&!!n,i=Xe.organizationSearch(n,s);let l;e[0]!==s?(l=async v=>{const{signal:p}=v,b=await fetch(`/api/_me/organizations/search?q=${encodeURIComponent(s)}`,{signal:p});if(!b.ok)throw new Error(`Organization search failed: ${b.status}`);const S=await b.json();if(!No(S))throw new Error("Invalid organization search response");return S},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==r||e[3]!==i||e[4]!==l?(d={queryKey:i,queryFn:l,enabled:r,placeholderData:vn,staleTime:3e4,retry:!1},e[2]=r,e[3]=i,e[4]=l,e[5]=d):d=e[5];const{data:f,isFetching:h,isPlaceholderData:m,isError:u}=pe(d);let c;e[6]!==f?.items?(c=f?.items??[],e[6]=f?.items,e[7]=c):c=e[7];const y=r&&h,g=r&&m;let x;return e[8]!==u||e[9]!==c||e[10]!==y||e[11]!==g?(x={hits:c,isSearching:y,isStale:g,isError:u},e[8]=u,e[9]=c,e[10]=y,e[11]=g,e[12]=x):x=e[12],x}const _o=3,mn=10,Oo=440,Io=55;function sa(t){const e=Math.floor((t-Oo)/Io);return Math.min(mn,Math.max(_o,e))}function Ao(t,e,s=mn*3,a=[]){return[...new Set([e,...a,...t])].slice(0,s)}function Eo(t,e){return!e.id||t.some(s=>s.slug===e.slug)?[...t]:[...t,e]}function oa(t,e,s,a,n=[]){if(t.length<=a)return{shown:[...t],hidden:[]};const r=new Map(t.map(l=>[l.slug,l])),i=new Set;s&&r.has(s)&&i.add(s);for(const l of n)r.has(l)&&i.add(l);for(const l of e){if(i.size>=a)break;r.has(l)&&i.add(l)}for(const l of t){if(i.size>=a)break;i.add(l.slug)}return{shown:t.filter(l=>i.has(l.slug)),hidden:t.filter(l=>!i.has(l.slug))}}const Dt=[];function fn(){const t=C.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=he.recentOrgs(),t[0]=e):e=t[0];const[s,a]=Yt(e,Dt),n=Array.isArray(s)?s:Dt;let r;t[1]!==a?(r=(l,d)=>a(f=>Ao(Array.isArray(f)?f:[],l,void 0,d)),t[1]=a,t[2]=r):r=t[2];let i;return t[3]!==n||t[4]!==r?(i={recent:n,remember:r},t[3]=n,t[4]=r,t[5]=i):i=t[5],i}const gn={hidden:[],pinned:[],order:[]},st=(t,e)=>t.filter(s=>s!==e);function Co(t){if(typeof t!="object"||t===null)return gn;const e=a=>Array.isArray(a)?a.filter(n=>typeof n=="string"):[],s=t;return{hidden:e(s.hidden),pinned:e(s.pinned),order:e(s.order)}}function ia(t,e){return{...t,hidden:[...st(t.hidden,e),e],pinned:st(t.pinned,e)}}function $o(t,e){return{...t,hidden:st(t.hidden,e)}}function aa(t,e){return t.pinned.includes(e)?{...t,pinned:st(t.pinned,e)}:{...t,hidden:st(t.hidden,e),pinned:[...t.pinned,e]}}function ra(t,e,s){const a=n=>{const r=e.order.indexOf(n);return r===-1?Number.MAX_SAFE_INTEGER:r};return t.filter(n=>n.slug===s||!e.hidden.includes(n.slug)).map((n,r)=>({org:n,index:r})).sort((n,r)=>Number(e.pinned.includes(r.org.slug))-Number(e.pinned.includes(n.org.slug))||a(n.org.slug)-a(r.org.slug)||n.index-r.index).map(({org:n})=>n)}function la(t,e,s,a){const n=e.indexOf(s),r=e.indexOf(a);if(n===-1||r===-1||n===r||t.pinned.includes(s)!==t.pinned.includes(a))return t;const i=[...e];return i.splice(n,1),i.splice(r,0,s),{...t,order:[...i,...t.order.filter(l=>!i.includes(l))]}}function Lo(){const t=C.c(5),e=kt(),{remember:s}=fn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=he.railOrgPrefs(),t[0]=a):a=t[0];const[,n]=Yt(a,gn);let r;return t[1]!==e||t[2]!==s||t[3]!==n?(r=(i,l)=>{const d=l?.includes(i)??!1;n(f=>$o(Co(f),i)),s(i,d?l:void 0),e({to:"/$org/home",params:{org:i},viewTransition:!0})},t[1]=e,t[2]=s,t[3]=n,t[4]=r):r=t[4],r}const zt=8,Ze=["all","organizations","projects","chats","connections","actions"],Ro=5;function Mt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function Do(t,e){const s=a=>{const n=e.indexOf(a);return n===-1?Number.POSITIVE_INFINITY:n};return[...t].sort((a,n)=>s(a.slug)-s(n.slug)||a.name.localeCompare(n.name))}function zo(t,e){const{org:s}=Tt(),a=Ss({connectionId:Qt,orgId:s.id,orgSlug:s.slug}),{data:n}=pe({queryKey:Xe.globalSearch(s.id,t,zt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:zt}})).structuredContent?.items??[]}catch{return[]}}});return n??[]}function Mo(t){const e=C.c(213),{open:s,onOpenChange:a}=t,n=J(),r=kt(),{org:i}=Tt(),{projects:l,hasProjects:d}=is(),{remember:f}=xs(i.slug),[h,m]=G.useState(""),[u,c]=G.useState("all");let y;e[0]!==u?(y=M=>u==="all"||u===M,e[0]=u,e[1]=y):y=e[1];const g=y,x=G.useDeferredValue(h),v=zo(x,g("chats")||g("connections")),p=Lo(),{data:b}=jn(),{recent:S}=fn();let w;e[2]!==h?(w=h.trim(),e[2]=h,e[3]=w):w=e[3];const k=w,T=ws(k,150),{hits:j}=Po(g("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==j||e[6]!==b||e[7]!==S){const M=Do(Eo(b??[],i),S);let U;e[10]!==j?(U=new Set(j.map(Ko)),e[10]=j,e[11]=U):U=e[11],P=U,_=[...M,...j.filter(Ee=>!M.some(F=>F.id===Ee.id))],e[4]=i,e[5]=j,e[6]=b,e[7]=S,e[8]=P,e[9]=_}else P=e[8],_=e[9];const O=_;let A;e[12]!==O||e[13]!==i.slug||e[14]!==u||e[15]!==k?(A=u==="all"&&!k?O.filter(M=>M.slug!==i.slug).slice(0,Ro):O,e[12]=O,e[13]=i.slug,e[14]=u,e[15]=k,e[16]=A):A=e[16];const $=A;let L;e[17]!==a?(L=()=>{a(!1),m(""),c("all")},e[17]=a,e[18]=L):L=e[18];const R=L;let I;e[19]!==u?(I=M=>{const U=Ze.indexOf(u);c(Ze[(U+M+Ze.length)%Ze.length]??"all")},e[19]=u,e[20]=I):I=e[20];const q=I;let H;e[21]!==R?(H=(M,U)=>{St("command_palette_used",{kind:U}),M(),R()},e[21]=R,e[22]=H):H=e[22];const D=H;let le;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(le=M=>{if(M.type==="connection"){if(!M.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:M.slug}});return}if(M.type==="task"){r({to:re.tasks,params:{org:i.slug,taskKey:M.key??void 0}});return}const U=Xt(i.id).id;kn(r,Tn({org:i.slug,agentId:M.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:M.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=le):le=e[26];const ee=le;let te;e[27]!==h?(te=[h],e[27]=h,e[28]=te):te=e[28];const oe=te;let ne,V,W,K,Y,Q,X,E,B,we,Se,ce,de,ue,me,fe;if(e[29]!==R||e[30]!==q||e[31]!==D||e[32]!==d||e[33]!==v||e[34]!==r||e[35]!==a||e[36]!==s||e[37]!==ee||e[38]!==i.slug||e[39]!==$||e[40]!==l||e[41]!==f||e[42]!==oe||e[43]!==u||e[44]!==P||e[45]!==g||e[46]!==n||e[47]!==h||e[48]!==p){const M=v.filter(Bo),U=v.filter(qo);let Ee;e[65]!==i.slug?(Ee={org:i.slug},e[65]=i.slug,e[66]=Ee):Ee=e[66];const F=Ee;let Ce;e[67]!==n?(Ce=n("sidebar.navDestinations.home"),e[67]=n,e[68]=Ce):Ce=e[68];let dt;e[69]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx(es,{"aria-hidden":"true"}),e[69]=dt):dt=e[69];let $e;e[70]!==F||e[71]!==Ce?($e={key:"home",label:Ce,icon:dt,to:re.home,params:F},e[70]=F,e[71]=Ce,e[72]=$e):$e=e[72];let Le;e[73]!==n?(Le=n("sidebar.navDestinations.reports"),e[73]=n,e[74]=Le):Le=e[74];let ut;e[75]===Symbol.for("react.memo_cache_sentinel")?(ut=o.jsx(ts,{"aria-hidden":"true"}),e[75]=ut):ut=e[75];let Re;e[76]!==F||e[77]!==Le?(Re={key:"reports",label:Le,icon:ut,to:re.reports,params:F},e[76]=F,e[77]=Le,e[78]=Re):Re=e[78];let De;e[79]!==n?(De=n("sidebar.navDestinations.tasks"),e[79]=n,e[80]=De):De=e[80];let mt;e[81]===Symbol.for("react.memo_cache_sentinel")?(mt=o.jsx(At,{"aria-hidden":"true"}),e[81]=mt):mt=e[81];let ze;e[82]!==i.slug?(ze={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=ze):ze=e[83];let Me;e[84]!==De||e[85]!==ze?(Me={key:"tasks",label:De,icon:mt,to:re.tasks,params:ze},e[84]=De,e[85]=ze,e[86]=Me):Me=e[86];let Fe;e[87]!==n?(Fe=n("sidebar.navDestinations.library"),e[87]=n,e[88]=Fe):Fe=e[88];let ft;e[89]===Symbol.for("react.memo_cache_sentinel")?(ft=o.jsx(ns,{"aria-hidden":"true"}),e[89]=ft):ft=e[89];let qe;e[90]!==F||e[91]!==Fe?(qe={key:"library",label:Fe,icon:ft,to:re.library,params:F},e[90]=F,e[91]=Fe,e[92]=qe):qe=e[92];let Be;e[93]!==n?(Be=n("sidebar.navDestinations.discover"),e[93]=n,e[94]=Be):Be=e[94];let gt;e[95]===Symbol.for("react.memo_cache_sentinel")?(gt=o.jsx(ss,{"aria-hidden":"true"}),e[95]=gt):gt=e[95];let Ke;e[96]!==F||e[97]!==Be?(Ke={key:"discover",label:Be,icon:gt,to:re.discover,params:F},e[96]=F,e[97]=Be,e[98]=Ke):Ke=e[98];let ht;e[99]!==$e||e[100]!==Re||e[101]!==Me||e[102]!==qe||e[103]!==Ke?(ht=[$e,Re,Me,qe,Ke],e[99]=$e,e[100]=Re,e[101]=Me,e[102]=qe,e[103]=Ke,e[104]=ht):ht=e[104];const bt=ht;V=fs,Se=s,e[105]!==R||e[106]!==a?(ce=N=>N?a(!0):R(),e[105]=R,e[106]=a,e[107]=ce):ce=e[107],e[108]!==n?(de=n("commandPalette.title"),e[108]=n,e[109]=de):de=e[109],e[110]!==n?(ue=n("commandPalette.description"),e[110]=n,e[111]=ue):ue=e[111];let He;e[112]!==u||e[113]!==n?(He=u==="all"?n("commandPalette.placeholder"):n("commandPalette.placeholderScoped",{scope:n(Mt(u)).toLowerCase()}),e[112]=u,e[113]=n,e[114]=He):He=e[114];let Ue;e[115]!==n?(Ue=n("commandPalette.placeholder"),e[115]=n,e[116]=Ue):Ue=e[116];let Ge;e[117]!==q||e[118]!==u||e[119]!==h?(Ge=N=>{if(N.key==="Tab"){N.preventDefault(),q(N.shiftKey?-1:1);return}N.key==="Backspace"&&!h&&u!=="all"&&(N.preventDefault(),c("all"))},e[117]=q,e[118]=u,e[119]=h,e[120]=Ge):Ge=e[120],e[121]!==He||e[122]!==Ue||e[123]!==Ge||e[124]!==h?(me=o.jsx(gs,{placeholder:He,"aria-label":Ue,value:h,onValueChange:m,onKeyDown:Ge}),e[121]=He,e[122]=Ue,e[123]=Ge,e[124]=h,e[125]=me):me=e[125];let Je;e[126]!==n?(Je=n("commandPalette.scope.label"),e[126]=n,e[127]=Je):Je=e[127];let Ve;e[128]!==u||e[129]!==n?(Ve=Ze.map(N=>o.jsx("button",{type:"button",role:"radio","aria-checked":u===N,tabIndex:-1,onMouseDown:Fo,onClick:()=>c(N),className:wt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",u===N?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:n(Mt(N))},N)),e[128]=u,e[129]=n,e[130]=Ve):Ve=e[130],e[131]!==Je||e[132]!==Ve?(fe=o.jsx("div",{role:"radiogroup","aria-label":Je,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ve}),e[131]=Je,e[132]=Ve,e[133]=fe):fe=e[133],ne=hs,W="h-[min(420px,60vh)] max-h-none";let We;e[134]!==n?(We=n("commandPalette.empty"),e[134]=n,e[135]=We):We=e[135],e[136]!==We?(K=o.jsx(ps,{children:We}),e[136]=We,e[137]=K):K=e[137],e[138]!==D||e[139]!==i.slug||e[140]!==$||e[141]!==P||e[142]!==g||e[143]!==n||e[144]!==h||e[145]!==p?(Y=g("organizations")&&$.length>0&&o.jsx(Qe,{heading:n("commandPalette.organizations"),children:$.map(N=>o.jsxs(ae,{value:`org ${N.name} ${N.slug}`,keywords:P.has(N.id)?[h]:void 0,onSelect:()=>D(()=>p(N.slug),"organization"),children:[o.jsx(un,{org:N,size:"xs"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:N.name}),N.slug===i.slug&&o.jsx("span",{className:"text-meta shrink-0",children:n("sidebar.rail.currentOrganization")})]},`org:${N.id}`))}),e[138]=D,e[139]=i.slug,e[140]=$,e[141]=P,e[142]=g,e[143]=n,e[144]=h,e[145]=p,e[146]=Y):Y=e[146],e[147]!==bt||e[148]!==D||e[149]!==r||e[150]!==g||e[151]!==n?(Q=g("actions")&&o.jsx(Qe,{heading:n("commandPalette.goTo"),children:bt.map(N=>o.jsxs(ae,{onSelect:()=>D(()=>r({to:N.to,params:N.params}),"destination"),children:[N.icon,o.jsx("span",{children:N.label})]},N.key))}),e[147]=bt,e[148]=D,e[149]=r,e[150]=g,e[151]=n,e[152]=Q):Q=e[152],e[153]!==D||e[154]!==d||e[155]!==r||e[156]!==i.slug||e[157]!==l||e[158]!==f||e[159]!==g||e[160]!==n?(X=g("projects")&&d&&o.jsx(Qe,{heading:n("commandPalette.projects"),children:l.map(N=>o.jsxs(ae,{value:`project ${N.title}`,onSelect:()=>D(()=>{f(N.id),r({to:re.projects,params:{org:i.slug,agentId:N.id}})},"project"),children:[o.jsx(bs,{icon:N.icon,name:N.title,"aria-hidden":"true"}),o.jsx("span",{children:N.title})]},N.id))}),e[153]=D,e[154]=d,e[155]=r,e[156]=i.slug,e[157]=l,e[158]=f,e[159]=g,e[160]=n,e[161]=X):X=e[161],e[162]!==D||e[163]!==r||e[164]!==F||e[165]!==g||e[166]!==n?(E=g("actions")&&o.jsxs(Qe,{heading:n("commandPalette.actions"),children:[o.jsxs(ae,{value:n("commandPalette.newProject"),onSelect:()=>D(()=>r({to:re.home,params:F}),"new_project"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.newProject")})]}),o.jsxs(ae,{value:n("commandPalette.inviteTeammate"),onSelect:()=>D(()=>r({to:"/$org/settings/members",params:F}),"invite"),children:[o.jsx(Xn,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.inviteTeammate")})]}),o.jsxs(ae,{value:n("commandPalette.addConnection"),onSelect:()=>D(()=>r({to:"/$org/settings/connections",params:F,search:{tab:"all"}}),"add_connection"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.addConnection")})]}),o.jsxs(ae,{value:n("commandPalette.settings"),onSelect:()=>D(()=>r({to:"/$org/settings/general",params:F}),"settings"),children:[o.jsx(ms,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.settings")})]})]}),e[162]=D,e[163]=r,e[164]=F,e[165]=g,e[166]=n,e[167]=E):E=e[167],B=g("connections")&&M.length>0&&o.jsx(Qe,{heading:n("commandPalette.connections"),children:M.map(N=>o.jsxs(ae,{value:`${N.title} ${N.id}`,keywords:oe,onSelect:()=>D(()=>ee(N),"connection"),children:[o.jsx(ys,{icon:N.icon,name:N.title,size:"2xs","aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:N.title})]},`connection:${N.id}`))}),we=g("chats")&&U.length>0&&o.jsx(Qe,{heading:n("commandPalette.results"),children:U.map(N=>o.jsxs(ae,{value:`${N.title} ${N.id}`,keywords:oe,onSelect:()=>D(()=>ee(N),N.type),children:[N.type==="thread"?o.jsx(Zn,{"aria-hidden":"true"}):o.jsx(At,{"aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:N.title}),N.type==="task"&&N.key&&o.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:N.key})]},`${N.type}:${N.id}`))}),e[29]=R,e[30]=q,e[31]=D,e[32]=d,e[33]=v,e[34]=r,e[35]=a,e[36]=s,e[37]=ee,e[38]=i.slug,e[39]=$,e[40]=l,e[41]=f,e[42]=oe,e[43]=u,e[44]=P,e[45]=g,e[46]=n,e[47]=h,e[48]=p,e[49]=ne,e[50]=V,e[51]=W,e[52]=K,e[53]=Y,e[54]=Q,e[55]=X,e[56]=E,e[57]=B,e[58]=we,e[59]=Se,e[60]=ce,e[61]=de,e[62]=ue,e[63]=me,e[64]=fe}else ne=e[49],V=e[50],W=e[51],K=e[52],Y=e[53],Q=e[54],X=e[55],E=e[56],B=e[57],we=e[58],Se=e[59],ce=e[60],de=e[61],ue=e[62],me=e[63],fe=e[64];let ve;e[168]!==ne||e[169]!==W||e[170]!==K||e[171]!==Y||e[172]!==Q||e[173]!==X||e[174]!==E||e[175]!==B||e[176]!==we?(ve=o.jsxs(ne,{className:W,children:[K,Y,Q,X,E,B,we]}),e[168]=ne,e[169]=W,e[170]=K,e[171]=Y,e[172]=Q,e[173]=X,e[174]=E,e[175]=B,e[176]=we,e[177]=ve):ve=e[177];let it;e[178]===Symbol.for("react.memo_cache_sentinel")?(it=["↑","↓"],e[178]=it):it=e[178];let je;e[179]!==n?(je=n("commandPalette.hint.navigate"),e[179]=n,e[180]=je):je=e[180];let ke;e[181]!==je?(ke=o.jsx(pt,{keys:it,label:je}),e[181]=je,e[182]=ke):ke=e[182];let at;e[183]===Symbol.for("react.memo_cache_sentinel")?(at=["↵"],e[183]=at):at=e[183];let Te;e[184]!==n?(Te=n("commandPalette.hint.open"),e[184]=n,e[185]=Te):Te=e[185];let Ne;e[186]!==Te?(Ne=o.jsx(pt,{keys:at,label:Te}),e[186]=Te,e[187]=Ne):Ne=e[187];let rt;e[188]===Symbol.for("react.memo_cache_sentinel")?(rt=["Tab"],e[188]=rt):rt=e[188];let Pe;e[189]!==n?(Pe=n("commandPalette.hint.filter"),e[189]=n,e[190]=Pe):Pe=e[190];let _e;e[191]!==Pe?(_e=o.jsx(pt,{keys:rt,label:Pe}),e[191]=Pe,e[192]=_e):_e=e[192];let lt;e[193]===Symbol.for("react.memo_cache_sentinel")?(lt=["Esc"],e[193]=lt):lt=e[193];let Oe;e[194]!==n?(Oe=n("commandPalette.hint.close"),e[194]=n,e[195]=Oe):Oe=e[195];let Ie;e[196]!==Oe?(Ie=o.jsx(pt,{keys:lt,label:Oe}),e[196]=Oe,e[197]=Ie):Ie=e[197];let Ae;e[198]!==ke||e[199]!==Ne||e[200]!==_e||e[201]!==Ie?(Ae=o.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[ke,Ne,_e,Ie]}),e[198]=ke,e[199]=Ne,e[200]=_e,e[201]=Ie,e[202]=Ae):Ae=e[202];let ct;return e[203]!==V||e[204]!==Se||e[205]!==ce||e[206]!==de||e[207]!==ue||e[208]!==me||e[209]!==fe||e[210]!==ve||e[211]!==Ae?(ct=o.jsxs(V,{open:Se,onOpenChange:ce,title:de,description:ue,children:[me,fe,ve,Ae]}),e[203]=V,e[204]=Se,e[205]=ce,e[206]=de,e[207]=ue,e[208]=me,e[209]=fe,e[210]=ve,e[211]=Ae,e[212]=ct):ct=e[212],ct}function Fo(t){return t.preventDefault()}function qo(t){return t.type!=="connection"}function Bo(t){return t.type==="connection"}function Ko(t){return t.id}function pt(t){const e=C.c(7),{keys:s,label:a}=t;let n;e[0]!==s?(n=s.map(Ho),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==n?(r=o.jsx("span",{className:"flex items-center gap-0.5",children:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=o.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Ho(t){return o.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const tt=new Ns(!1);function Uo(){tt.set(!0)}function Go(){tt.set(!1)}function Jo(){const t=C.c(2),e=G.useSyncExternalStore(tt.subscribe,tt.get);let s;return t[0]!==e?(s=[e,tt.set],t[0]=e,t[1]=s):s=t[1],s}const Vo=300*1e3,Wo=2;function Yo(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Qo(t,e){return t.count>=Wo&&t.version!==null&&t.version!==e}function Xo(){const t=C.c(31),e=J();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:Xe.appVersionCheck(),queryFn:ei,refetchInterval:Vo,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:n}=pe(s),[r,i]=G.useState(0);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={version:null,count:0},t[1]=l):l=t[1];const[d,f]=G.useState(l);n!==r&&(i(n),f(j=>Yo(j,a,"4.580.1")));const[h,m]=G.useState(null);if(!Qo(d,h))return null;let u;t[2]!==e?(u=e("announcements.version.ariaLabel"),t[2]=e,t[3]=u):u=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let g;t[8]!==e?(g=e("announcements.version.title"),t[8]=e,t[9]=g):g=t[9];let x;t[10]!==e?(x=e("announcements.version.description"),t[10]=e,t[11]=x):x=t[11];let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(_t,{size:16}),t[12]=v):v=t[12];let p;t[13]!==d.version?(p=()=>m(d.version),t[13]=d.version,t[14]=p):p=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.580.1"}),t[15]=e,t[16]=b):b=t[16];let S;t[17]!==e?(S=e("announcements.version.refresh"),t[17]=e,t[18]=S):S=t[18];let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(_t,{size:14}),t[19]=w):w=t[19];let k;t[20]!==S?(k=o.jsxs(z,{size:"sm",onClick:Zo,children:[S,w]}),t[20]=S,t[21]=k):k=t[21];let T;return t[22]!==k||t[23]!==u||t[24]!==c||t[25]!==y||t[26]!==g||t[27]!==x||t[28]!==p||t[29]!==b?(T=o.jsx(sn,{ariaLabel:u,dismissLabel:c,eyebrow:y,title:g,description:x,icon:v,tone:"system",onDismiss:p,footerLeading:b,actions:k}),t[22]=k,t[23]=u,t[24]=c,t[25]=y,t[26]=g,t[27]=x,t[28]=p,t[29]=b,t[30]=T):T=t[30],T}function Zo(){return window.location.reload()}async function ei(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function ti(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const ni=Date.parse("2026-07-21T00:00:00Z"),Ft=t=>ti(he.ptBrAnnouncementSeen(t));function si(){const t=C.c(35),e=J(),[s,a]=Nn(),{data:n,isPending:r}=se.useSession(),i=n?.user,l=i?.id,d=i?.createdAt,f=d!=null&&new Date(d).getTime()<ni,h=Pn()==="pt-BR",m=!r&&!!l&&f&&h&&s.language==="en"&&!Ft(l).has()&&!_n(),[u,c]=G.useState(!1),[y,g]=G.useState(!1);!u&&!r&&(c(!0),m&&l&&(Ft(l).mark(),a(ii),g(!0),St("pt_br_auto_switch_shown")));let x;t[0]===Symbol.for("react.memo_cache_sentinel")?(x=D=>{St("pt_br_auto_switch_closed",{action:D}),g(!1)},t[0]=x):x=t[0];const v=x;let p;t[1]!==a?(p=()=>{a(oi),v("switch-back")},t[1]=a,t[2]=p):p=t[2];const b=p;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=D=>!D&&v("dismiss"),t[3]=S):S=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=o.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 T;t[7]!==k?(T=o.jsx(Jt,{children:k}),t[7]=k,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let P;t[11]!==j?(P=o.jsx(On,{children:j}),t[11]=j,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=o.jsxs(Gt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let O;t[16]!==e?(O=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=O):O=t[17];let A;t[18]!==b||t[19]!==O?(A=o.jsx(z,{variant:"outline",onClick:b,children:O}),t[18]=b,t[19]=O,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>v("ok"),t[21]=$):$=t[21];let L;t[22]!==e?(L=e("announcements.ptBr.ok"),t[22]=e,t[23]=L):L=t[23];let R;t[24]!==L?(R=o.jsx(z,{onClick:$,children:L}),t[24]=L,t[25]=R):R=t[25];let I;t[26]!==A||t[27]!==R?(I=o.jsxs(In,{children:[A,R]}),t[26]=A,t[27]=R,t[28]=I):I=t[28];let q;t[29]!==I||t[30]!==_?(q=o.jsxs(Vt,{className:"sm:max-w-md",children:[w,_,I]}),t[29]=I,t[30]=_,t[31]=q):q=t[31];let H;return t[32]!==y||t[33]!==q?(H=o.jsx(Wt,{open:y,onOpenChange:S,children:q}),t[32]=y,t[33]=q,t[34]=H):H=t[34],H}function oi(t){return{...t,language:"en"}}function ii(t){return{...t,language:"pt-BR"}}function ai(t){const e=An(t);return typeof e=="string"?e:void 0}function ri(){return ai("experiment-pipeline-check"),null}function li(t){const e=C.c(1),{activeOrg:s}=t;if(!s)return null;En(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(ri,{}),e[0]=a):a=e[0],a}function ci(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:n,opts:r,autosendValue:i}=t,l={mainpanel:void 0};s?l.virtualmcpid=s:e.virtualmcpid&&(l.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(s??d)!==d;let m,u;return r?.panel?u=r.panel:r?.newThread&&!h&&$n(e.tabId)?(u=e.tabId,l.mainpanel=e.mainpanel,m=e.sidepanel):n?(u=n.tab,n.sidepanel!==void 0&&(m=n.sidepanel),n.mainpanel!==void 0&&(l.mainpanel=n.mainpanel)):!h&&e.tabId&&!Ln(e.tabId)&&(u=e.tabId),m!==void 0&&(l.sidepanel=m),r?.autosend&&(l.autosend=i),{tabId:as(u,t.target,t.blogView),search:l}}const hn="studio:thread-layout:v4",di=50;function pn(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 ui(t,e,s,a=di){const n=t.filter(([r])=>r!==e);for(n.push([e,pn(s)]);n.length>a;)n.shift();return n}function Nt(){try{const t=sessionStorage.getItem(hn);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function yn(t){try{sessionStorage.setItem(hn,JSON.stringify(t))}catch{}}function mi(t,e){t&&yn(ui(Nt(),t,e))}function fi(t){if(!t)return null;const e=Nt().find(([s])=>s===t);return e?pn(e[1]):null}function ca(t){if(!t)return;const e=Nt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&yn(s)}function bn(t){return{queryKey:Xe.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 da(t){const e=C.c(10);let s;e[0]!==t?(s=bn(t),e[0]=t,e[1]=s):s=e[1];const a=pe(s);let n;e[2]!==a.data?.prompts?(n=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=n):n=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]!==n||e[8]!==r?(i={isLoading:a.isLoading,prompts:n,tiles:r},e[6]=a.isLoading,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function gi(t){const e=C.c(31),{orgSlug:s,orgName:a,domain:n}=t,r=J();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const l=i,d=hi;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(qt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let m;e[5]!==h?(m=o.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=m):m=e[6];let u;e[7]!==n||e[8]!==a||e[9]!==r?(u=a?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),n?` ${r("common.ssoRequiredScreen.via",{domain:n})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=n,e[8]=a,e[9]=r,e[10]=u):u=e[10];let c;e[11]!==u?(c=o.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[11]=u,e[12]=c):c=e[12];let y;e[13]!==m||e[14]!==c?(y=o.jsxs("div",{className:"space-y-2",children:[m,c]}),e[13]=m,e[14]=c,e[15]=y):y=e[15];let g;e[16]!==r?(g=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=g):g=e[17];let x;e[18]!==l||e[19]!==g?(x=o.jsx(z,{onClick:l,children:g}),e[18]=l,e[19]=g,e[20]=x):x=e[20];let v;e[21]!==r?(v=r("common.goBack"),e[21]=r,e[22]=v):v=e[22];let p;e[23]!==v?(p=o.jsx(z,{variant:"ghost",onClick:d,children:v}),e[23]=v,e[24]=p):p=e[24];let b;e[25]!==p||e[26]!==x?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[x,p]}),e[25]=p,e[26]=x,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==y?(S=o.jsxs(xe,{children:[f,y,b]}),e[28]=b,e[29]=y,e[30]=S):S=e[30],S}function hi(){window.location.href="/"}function pi(t){const e=C.c(27),{notice:s,orgSlug:a}=t,n=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:o.jsx(Rn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==s.title?(i=o.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let l;e[3]!==s.message?(l=o.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=l):l=e[4];let d;e[5]!==i||e[6]!==l?(d=o.jsxs("div",{className:"space-y-2",children:[i,l]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let f;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(f=s.ctaUrl&&s.ctaLabel?o.jsx(z,{asChild:!0,children:o.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=f):f=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let m;e[11]!==n?(m=n("common.blockedOrgScreen.goToBilling"),e[11]=n,e[12]=m):m=e[12];let u;e[13]!==h||e[14]!==m?(u=o.jsx(z,{variant:"outline",asChild:!0,children:o.jsx("a",{href:h,children:m})}),e[13]=h,e[14]=m,e[15]=u):u=e[15];let c;e[16]!==n?(c=n("common.blockedOrgScreen.switchOrg"),e[16]=n,e[17]=c):c=e[17];let y;e[18]!==c?(y=o.jsx(z,{variant:"ghost",asChild:!0,children:o.jsx("a",{href:"/",children:c})}),e[18]=c,e[19]=y):y=e[19];let g;e[20]!==y||e[21]!==f||e[22]!==u?(g=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,u,y]}),e[20]=y,e[21]=f,e[22]=u,e[23]=g):g=e[23];let x;return e[24]!==g||e[25]!==d?(x=o.jsxs(xe,{children:[r,d,g]}),e[24]=g,e[25]=d,e[26]=x):x=e[26],x}function yi(t){const e=C.c(8);let s;e[0]!==t?(s=Xe.orgNotice(t??""),e[0]=t,e[1]=s):s=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 n=!!t;let r;return e[4]!==s||e[5]!==a||e[6]!==n?(r={queryKey:s,queryFn:a,enabled:n,staleTime:6e4},e[4]=s,e[5]=a,e[6]=n,e[7]=r):r=e[7],pe(r)}const bi="/settings/infra-billing";function xi(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(bi)}function wi(t){const e=C.c(7),{org:s,children:a}=t;let n;e[0]!==s.id||e[1]!==s.name?(n={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=n):n=e[2];const r=n;let i;return e[3]!==a||e[4]!==s||e[5]!==r?(i=o.jsx(Hn,{org:s,project:r,children:a}),e[3]=a,e[4]=s,e[5]=r,e[6]=i):i=e[6],i}function Si(){const t=kt(),e=Ps(),{org:s}=Tt(),a=Dn({strict:!1}),n=nn(),{openPanel:r,closePanel:i}=rs(),l=As(),d=Es(),f=Cs(),h=$s(),m=ls(),u=cs(),{data:c}=se.useSession(),y=(p,b=!0)=>t({to:".",search:p,replace:b}),g=()=>y(p=>({...p,sidepanel:!0})),x=(p,b,S)=>{const w=!!d&&d===p;d&&!w&&mi(d,{tab:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const k=w?null:fi(p),T=Xt(s.id).id,j=ci({prev:{virtualmcpid:l,tabId:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:b,decopilotId:T,savedLayout:k,opts:S,autosendValue:us,target:e?.threads.get().find(P=>P.id===p),blogView:u});return h(p,()=>j.search,{virtualMcpId:b,view:{tabId:j.tabId}})};return{openSidePanel:g,setTaskId:x,createNewTask:async(p,b,S)=>{const w=crypto.randomUUID(),k=p??f,T=m==="blog"&&k===f&&!S?.panel?ds(b,_s(c?.user)):null;try{await e?.create({id:w,virtual_mcp_id:k,...T??(b?{branch:b}:{})})}catch{}x(w,k,{...S,newThread:!0})},openTab:r,closeTab:i}}const vi=new Set(["/$org/","/$org/home"]);function ji(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ki},t[0]=e):e=t[0],Zt(e)}function ki(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&vi.has(e)}function Ti(){const t=C.c(54);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=zn(e)?.params.org,[n,r]=G.useState(!1),[i,l]=Jo(),[d,f]=js(),h=Mn(),m=ji(),u=a??"";let c;t[1]!==u?(c=bn(u),t[1]=u,t[2]=c):c=t[2];const y=!!a&&m;let g;t[3]!==c||t[4]!==y?(g={...c,enabled:y},t[3]=c,t[4]=y,t[5]=g):g=t[5],pe(g);const{data:x}=se.useSession(),v=x?.user?.id;let p,b;t[6]!==h?(p=()=>{const E=B=>{if(It(B)&&B.code==="KeyK"){B.preventDefault(),Uo();return}if(B.key==="?"&&!Kn(B.target)){B.preventDefault(),r(!0);return}It(B)&&B.code==="BracketLeft"&&h.history.canGoBack()&&(B.preventDefault(),h.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},b=[h],t[6]=h,t[7]=p,t[8]=b):(p=t[7],b=t[8]),G.useEffect(p,b);let S;t[9]!==a||t[10]!==v?(S=Fn(a,v),t[9]=a,t[10]=v,t[11]=S):S=t[11];const{data:w}=Kt(S),k=w?.id,T=w?.slug,{data:j}=Ls(k,T),P=!!j?.ssoRequired&&!j.authenticated,{data:_}=yi(T);let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O={select:Ni},t[12]=O):O=t[12];const A=Zt(O),$=_?.severity==="block"&&!xi(A),L=k??"",R=T??"";let I;t[13]!==R||t[14]!==L?(I=vs({connectionId:Qt,orgId:L,orgSlug:R}),t[13]=R,t[14]=L,t[15]=I):I=t[15];const q=!!k&&!!T;let H;if(t[16]!==I||t[17]!==q?(H={...I,enabled:q},t[16]=I,t[17]=q,t[18]=H):H=t[18],pe(H),(!w||Ot(w)||P||$)&&Go(),!w){let E;return t[19]!==a?(E=o.jsx(Js,{orgSlug:a}),t[19]=a,t[20]=E):E=t[20],E}if(Ot(w)){localStorage.getItem(he.lastOrgSlug())===a&&localStorage.removeItem(he.lastOrgSlug()),Ht()?.org===a&&Ut();let E;return t[21]!==w.name?(E=o.jsx(qn,{orgName:w.name}),t[21]=w.name,t[22]=E):E=t[22],E}if($&&_){let E;return t[23]!==w.slug||t[24]!==_?(E=o.jsx(pi,{notice:_,orgSlug:w.slug}),t[23]=w.slug,t[24]=_,t[25]=E):E=t[25],E}if(P){let E;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==j.domain?(E=o.jsx(gi,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:j.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=j.domain,t[30]=E):E=t[30],E}const le=w.logo??null;let ee;t[31]!==w||t[32]!==le?(ee={...w,logo:le},t[31]=w,t[32]=le,t[33]=ee):ee=t[33];let te;t[34]!==w?(te=o.jsx(li,{activeOrg:w}),t[34]=w,t[35]=te):te=t[35];let oe;t[36]===Symbol.for("react.memo_cache_sentinel")?(oe=o.jsx(Bn,{}),t[36]=oe):oe=t[36];let ne;t[37]===Symbol.for("react.memo_cache_sentinel")?(ne=o.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[o.jsx(xo,{}),o.jsx(Xo,{})]}),t[37]=ne):ne=t[37];let V;t[38]!==i||t[39]!==l?(V=i&&o.jsx(Mo,{open:i,onOpenChange:l}),t[38]=i,t[39]=l,t[40]=V):V=t[40];let W;t[41]!==d||t[42]!==f?(W=d&&o.jsx(ks,{open:!0,onOpenChange:f,source:Ts()}),t[41]=d,t[42]=f,t[43]=W):W=t[43];let K;t[44]!==n?(K=o.jsx(So,{open:n,onOpenChange:r}),t[44]=n,t[45]=K):K=t[45];let Y,Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx(si,{}),Q=o.jsx(Os,{}),t[46]=Y,t[47]=Q):(Y=t[46],Q=t[47]);let X;return t[48]!==ee||t[49]!==te||t[50]!==V||t[51]!==W||t[52]!==K?(X=o.jsxs(wi,{org:ee,children:[te,oe,ne,V,W,K,Y,Q]}),t[48]=ee,t[49]=te,t[50]=V,t[51]=W,t[52]=K,t[53]=X):X=t[53],X}function Ni(t){return t.location.pathname}function Pi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Is,{children:o.jsx(Ti,{})}),t[0]=e):e=t[0],e}const ua=Object.freeze(Object.defineProperty({__proto__:null,default:Pi,usePanelActions:Si},Symbol.toStringTag,{value:"Module"}));export{gn as E,na as I,Vs as L,un as O,Po as a,fn as b,Lo as c,oa as d,ra as e,sa as f,Si as g,ia as h,rn as i,mo as j,ca as k,oo as l,la as m,da as n,Uo as o,ea as p,ua as q,Co as r,ta as s,aa as t,yi as u,Eo as w};