decocms 4.566.0 → 4.568.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/dist/client/assets/{AlertCircle-vm4sk-x9.js → AlertCircle-4XjOBzzr.js} +1 -1
  2. package/dist/client/assets/{AreaChart-D7_hgduK.js → AreaChart-U2booYre.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DDdp1fkC.js → ArrowLeft-FLGKBq3z.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-DD_r1Y_T.js → ArrowUp-Lwcx-ceL.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-DZaqdCN6.js → CartesianChart-BcKhfNJ4.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-Dannm-85.js → CategoricalChart-Du8Ljv-7.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-CO-Sp-gI.js → CheckCircle-DFL7pw-c.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-BsQHRlTg.js → ChevronSelectorVertical-DujPgcUo.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-DzfCpOxS.js → ChevronUp-BvHbQNBW.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-Dg0W_VbM.js → CreditCard01-BwD4GYuP.js} +1 -1
  11. package/dist/client/assets/{Globe04-CbE4fQfn.js → Globe04-Wakfx0G2.js} +1 -1
  12. package/dist/client/assets/{Key01-DnFTUPGs.js → Key01-D8VFHgU4.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-BrWXpfvW.js → LinkBroken01--Z9NHGsb.js} +1 -1
  14. package/dist/client/assets/{Minus-CGC-Ky2T.js → Minus-mLwaHX_9.js} +1 -1
  15. package/dist/client/assets/{Monitor01-DPIeBRgo.js → Monitor01-xd6_AGZa.js} +1 -1
  16. package/dist/client/assets/{Play-B9PgWZlg.js → Play-Bd4GTUnl.js} +1 -1
  17. package/dist/client/assets/{Plus-CZbPbPr7.js → Plus-Cq9NYyX9.js} +1 -1
  18. package/dist/client/assets/{ReferenceLine-ZH8D8bPO.js → ReferenceLine-CEoolREz.js} +1 -1
  19. package/dist/client/assets/{SearchMd-DseifSbW.js → SearchMd-BxQmfb5s.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-TG8T0GTy.js → ShoppingBag01-CYCT2jnZ.js} +1 -1
  21. package/dist/client/assets/{Sun-CBOZY0wW.js → Sun-COkqP7iJ.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-CTmes_jp.js → SwitchHorizontal01-TPw7EzQJ.js} +1 -1
  23. package/dist/client/assets/{Tool01-BhHpHR3H.js → Tool01-BqhX4Lir.js} +1 -1
  24. package/dist/client/assets/{Tooltip-ClzMOV5r.js → Tooltip-Rsr656vO.js} +1 -1
  25. package/dist/client/assets/{Trash01-HGp7pYgQ.js → Trash01-BsqfSoas.js} +1 -1
  26. package/dist/client/assets/{Upload01-B2W5ZMg1.js → Upload01-CjUA7jDn.js} +1 -1
  27. package/dist/client/assets/{UserSquare-6Sdby0FR.js → UserSquare-DLTddIeU.js} +1 -1
  28. package/dist/client/assets/{Users01-DQRKjdTI.js → Users01-C0dAo1hK.js} +1 -1
  29. package/dist/client/assets/{XClose-DeFo1VOD.js → XClose-BmPamPKb.js} +1 -1
  30. package/dist/client/assets/{Zap-DalPfKev.js → Zap-CNah22BF.js} +1 -1
  31. package/dist/client/assets/{access-gate-QW6XL1k3.js → access-gate-KNoXvQR4.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-DSHTc4iD.js → add-connection-dialog-CoeePYAP.js} +1 -1
  33. package/dist/client/assets/agent-app-h9dvewo_.js +1 -0
  34. package/dist/client/assets/{agent-assets-DHBXzTkB.js → agent-assets-BFTAqbZ2.js} +1 -1
  35. package/dist/client/assets/{agent-automation-CkV5B9AK.js → agent-automation-DQSsp-Qq.js} +1 -1
  36. package/dist/client/assets/{agent-automations-M5aYunrZ.js → agent-automations-HvNPVcR1.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-DFReqWL3.js → agent-calendar-D1UuIhb8.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-D6AEfG_r.js → agent-capabilities-D2A31nji.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-BAUjcdOy.js → agent-connect-sources-anUeuGw0.js} +1 -1
  40. package/dist/client/assets/agent-deck-BCxKCrzx.js +1 -0
  41. package/dist/client/assets/{agent-e2e-vXEqRzNY.js → agent-e2e-BFTeY8yw.js} +1 -1
  42. package/dist/client/assets/agent-experiments-DCgjZH4p.js +1 -0
  43. package/dist/client/assets/{agent-file-ByXLEOEk.js → agent-file-CRchtrX1.js} +1 -1
  44. package/dist/client/assets/{agent-hosting-DN3p71Ic.js → agent-hosting-G7B4MOee.js} +1 -1
  45. package/dist/client/assets/{agent-icon-CTjv6Gf3.js → agent-icon-DGjvzBU0.js} +1 -1
  46. package/dist/client/assets/agent-library-Mjv8f5mE.js +1 -0
  47. package/dist/client/assets/agent-library-file-jHy8SGkc.js +1 -0
  48. package/dist/client/assets/agent-overview-vbL61vSj.js +1 -0
  49. package/dist/client/assets/{agent-releases-HbfAzMUb.js → agent-releases-CHTMMSg0.js} +1 -1
  50. package/dist/client/assets/agent-settings-C2R4yKuP.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-ZQQDb3Rx.js → agent-site-editor-Cbl8939c.js} +1 -1
  52. package/dist/client/assets/agent-site-editor-code-CPa8HId6.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-DPYtm9fq.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-DlIkhRRY.js +1 -0
  55. package/dist/client/assets/agent-view-AO-J0D6v.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-CvY79irZ.js → agent-view-guard-DNJq8WJa.js} +1 -1
  57. package/dist/client/assets/{ai-providers-hi0gzVEm.js → ai-providers-Cj1o2PDA.js} +1 -1
  58. package/dist/client/assets/{alert-CBNKTKcv.js → alert-CkisSQR8.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-DLAuNCzk.js → analytics-sections-CPw_3198.js} +1 -1
  60. package/dist/client/assets/api-keys-Ca6cGjfN.js +1 -0
  61. package/dist/client/assets/{api-keys-BFyU3rHn.js → api-keys-DvsVEDYM.js} +1 -1
  62. package/dist/client/assets/{app-editor-D6EIgj3g.js → app-editor-D_UGcnYy.js} +1 -1
  63. package/dist/client/assets/{asset-utils-DC1EoBVm.js → asset-utils-BMQvttAs.js} +1 -1
  64. package/dist/client/assets/{auth-BZ5Ef56k.js → auth-D2Lcha9t.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-DvKB5Itg.js → auth-catchall-DyFlHo48.js} +1 -1
  66. package/dist/client/assets/{auth-entry-BPV6B4VL.js → auth-entry-DDLQ2T30.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-DhnEMT3K.js → auth-split-layout-C64FoWws.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-DwlAs1ZZ.js → authenticate-and-persist-oauth-BXtcfltM.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-CWJ60M-N.js → automation-list-row-Cbotm6BG.js} +1 -1
  70. package/dist/client/assets/{automation-runs-otqJFTtW.js → automation-runs-uTz7ccV0.js} +1 -1
  71. package/dist/client/assets/{automations-ByVN628t.js → automations-CgCrXng3.js} +1 -1
  72. package/dist/client/assets/{autosend-FOyswNSR.js → autosend-BeP-7Z9T.js} +1 -1
  73. package/dist/client/assets/{badge-D4fF-8ns.js → badge-37ZrebMM.js} +1 -1
  74. package/dist/client/assets/{block-document-DZDOtPeq.js → block-document-AH_Uk3nK.js} +1 -1
  75. package/dist/client/assets/{blocks-preview-workspace-context-B7BEJFAh.js → blocks-preview-workspace-context-wN3COmWz.js} +1 -1
  76. package/dist/client/assets/{blocks-tab-states-DAhg2Ye6.js → blocks-tab-states-CERDbw5g.js} +1 -1
  77. package/dist/client/assets/{blog-schema-C6fspqby.js → blog-schema-DUx1yOEj.js} +1 -1
  78. package/dist/client/assets/{buckets-Ck5_X87E.js → buckets-CncRgLSv.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-C7YK4Pu4.js → build-improve-prompt-doc-BWQkcKAa.js} +1 -1
  80. package/dist/client/assets/{calendar-C6M3LMV4.js → calendar-ESmP-ay5.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-C2BQaZ2o.js → capability-load-error-D91RsAwR.js} +1 -1
  82. package/dist/client/assets/{category-editor-QazjTrf0.js → category-editor-C7jYzChE.js} +1 -1
  83. package/dist/client/assets/{chart-g5ZZsRJb.js → chart-yg_E5Zl2.js} +1 -1
  84. package/dist/client/assets/{chat-context-C4aI-9Gh.js → chat-context-DSkOndUS.js} +1 -1
  85. package/dist/client/assets/{chat-draft-v_nDJXuK.js → chat-draft-CCm5Ov2V.js} +1 -1
  86. package/dist/client/assets/{checkbox-BpYZyZtV.js → checkbox-DS3fV3cm.js} +1 -1
  87. package/dist/client/assets/{choose-editor-D5eTMtDH.js → choose-editor-O-d7ISrT.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-CAUQEN95.js → cli-auth-success-1kH4GC4v.js} +1 -1
  89. package/dist/client/assets/{client-icons-D2cDT816.js → client-icons-C8Uj1zsT.js} +1 -1
  90. package/dist/client/assets/{cms-settings-editor-5skFaLht.js → cms-settings-editor-BOlrMR3T.js} +1 -1
  91. package/dist/client/assets/{cms-store-drafts-VPkfiqMe.js → cms-store-drafts-Cmau_Xpk.js} +1 -1
  92. package/dist/client/assets/{collapsible-BgpbICto.js → collapsible-DRuNeeSr.js} +1 -1
  93. package/dist/client/assets/{collection-detail-CEsMpM_C.js → collection-detail-DpUbmPF3.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-PZqoRcbJ.js → collection-display-button-Bwz5aQUh.js} +1 -1
  95. package/dist/client/assets/{collection-search-CH54VXGp.js → collection-search-BQWTlXQF.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-bVMovNDL.js → collection-table-wrapper-CbyF6Nov.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-DF52b4Gj.js → collection-tabs-D3WnD7EM.js} +1 -1
  98. package/dist/client/assets/{combobox-Bfj0PjLE.js → combobox-CT2qCKie.js} +1 -1
  99. package/dist/client/assets/{command-CsBJ3GOI.js → command-D37uN5J-.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-YQlM2-Os.js → companion-mcps-section-BFZVF2RC.js} +1 -1
  101. package/dist/client/assets/{config-BMlT5DPg.js → config-CZ3pUlCW.js} +1 -1
  102. package/dist/client/assets/{connect-qXBtQ-OH.js → connect-71FB3CXN.js} +1 -1
  103. package/dist/client/assets/{connect-layout-DLqiwduY.js → connect-layout-CKRVOgzj.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-Bsqg8dUA.js → connect-source-dialog-CNca8slt.js} +1 -1
  105. package/dist/client/assets/{connection-95gHZiW5.js → connection-DESaeNZx.js} +1 -1
  106. package/dist/client/assets/{connection-card-CMMSZX4x.js → connection-card-t63ssUn-.js} +1 -1
  107. package/dist/client/assets/{connection-detail-BaU7wg0S.js → connection-detail-DuRyDzXg.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-BJkokVuQ.js → connection-form-helpers-DL8JpgdC.js} +1 -1
  109. package/dist/client/assets/{connection-slug-CVtaxOKz.js → connection-slug-Bv1gCwRj.js} +1 -1
  110. package/dist/client/assets/{connections-BtILN1R8.js → connections-CdsCJmtK.js} +1 -1
  111. package/dist/client/assets/{content-tab-DQG8vdsL.js → content-tab-Bh7FUKC3.js} +3 -3
  112. package/dist/client/assets/{context-4QFXsbD6.js → context-DLjNZH7d.js} +1 -1
  113. package/dist/client/assets/{context-menu-1fzYZhm_.js → context-menu-CugaroNR.js} +1 -1
  114. package/dist/client/assets/{context-shell-CCkAMmWr.js → context-shell-DYGyde-Z.js} +3 -3
  115. package/dist/client/assets/{core.esm-DYzatWGk.js → core.esm-CTG2N8v2.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-DCgZG2cL.js → create-organization-dialog-CogPW5s2.js} +1 -1
  117. package/dist/client/assets/{device-hint-CFx01Kw_.js → device-hint-CD49lDbc.js} +1 -1
  118. package/dist/client/assets/{discover-CoCxl4Q9.js → discover-BM-XQVCu.js} +1 -1
  119. package/dist/client/assets/{domain-settings-DuCeTo5C.js → domain-settings-Bt06PPmF.js} +1 -1
  120. package/dist/client/assets/{drawer-B5at6I_u.js → drawer-DsjbbVTG.js} +1 -1
  121. package/dist/client/assets/{editor-DD0jwUtP.js → editor-BpBeMMun.js} +1 -1
  122. package/dist/client/assets/{editor-classes-Dnkv0ExO.js → editor-classes-CS7nwV3G.js} +1 -1
  123. package/dist/client/assets/{empty-state-D3yjfo9M.js → empty-state-CPetbKsr.js} +1 -1
  124. package/dist/client/assets/{empty-state-Df2e2-7k.js → empty-state-CgDxl1cN.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-DbCV3Tta.js → experiments-tab-choice-Ckqo9bHe.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-Bw93eWWI.js → extract-connection-data-BoY4cFA7.js} +1 -1
  127. package/dist/client/assets/{feature-gate-CWwTIDAD.js → feature-gate-D4S13Ohw.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-CAaY2lMU.js → feature-paywall-BPHi9qtV.js} +1 -1
  129. package/dist/client/assets/{feedback-ByVb71jj.js → feedback-UOqcYnsR.js} +1 -1
  130. package/dist/client/assets/{file-explorer-zWsChJTW.js → file-explorer-R1XT7WuQ.js} +1 -1
  131. package/dist/client/assets/{file-preview-B5EKno-W.js → file-preview-Bn_lFKvb.js} +1 -1
  132. package/dist/client/assets/{file-share-button-C7-QuaCd.js → file-share-button-BbBCmHML.js} +1 -1
  133. package/dist/client/assets/{file-type-icon-BsiKabia.js → file-type-icon-DwSbw3u_.js} +1 -1
  134. package/dist/client/assets/{folder-icon-DkUbY_Ow.js → folder-icon-22cZTm1q.js} +1 -1
  135. package/dist/client/assets/{form-C_M4QV9P.js → form-xPNilXk8.js} +1 -1
  136. package/dist/client/assets/{general-BjfnjzGy.js → general-BNCy0qRP.js} +1 -1
  137. package/dist/client/assets/{github-icon-BZYLnrQK.js → github-icon-M98rwFqR.js} +1 -1
  138. package/dist/client/assets/{home-DQQdj4Ea.js → home-CX-I119p.js} +1 -1
  139. package/dist/client/assets/{home-overview-CvCaFo1b.js → home-overview-BImgFzPA.js} +1 -1
  140. package/dist/client/assets/{hosted-reconcile-DVCi8vCY.js → hosted-reconcile-B_zakWIj.js} +1 -1
  141. package/dist/client/assets/{icon-button-FgAeY2VI.js → icon-button-nAmR0pUP.js} +1 -1
  142. package/dist/client/assets/{index-CAMi4lK6.js → index-2pjgY723.js} +1 -1
  143. package/dist/client/assets/{index-DB7GDsnk.js → index-B6xZxtVu.js} +1 -1
  144. package/dist/client/assets/{index-Do6PllqG.js → index-Bx0EGvvq.js} +1 -1
  145. package/dist/client/assets/{index-Deyc3saa.js → index-C24rff9A.js} +1 -1
  146. package/dist/client/assets/{index-DqGr7Hc1.js → index-CM9G2Opl.js} +1 -1
  147. package/dist/client/assets/{index--p_IIMqb.js → index-CcQukHqg.js} +1 -1
  148. package/dist/client/assets/{index-hzDwssoq.js → index-ChbLGWhe.js} +1 -1
  149. package/dist/client/assets/{index-4rp3iqoc.js → index-CiqUNjUm.js} +1 -1
  150. package/dist/client/assets/{index-CZvihk7A.js → index-CkRd4yOd.js} +1 -1
  151. package/dist/client/assets/{index-CA5MpDJ2.js → index-CopIngND.js} +1 -1
  152. package/dist/client/assets/{index-D-aBBLRs.js → index-CpdAUi_L.js} +1 -1
  153. package/dist/client/assets/{index-BqJ-zbRp.js → index-DUYaR34S.js} +1 -1
  154. package/dist/client/assets/{index-BVwTm9yy.js → index-DYRhQ9nm.js} +1 -1
  155. package/dist/client/assets/{index-vlmYuijH.js → index-H80WMTvM.js} +1 -1
  156. package/dist/client/assets/{index-CdLJWnRN.js → index-oG6UN7--.js} +1 -1
  157. package/dist/client/assets/{index-redirect-Bu_aNRdm.js → index-redirect-BLueVivV.js} +1 -1
  158. package/dist/client/assets/{index-C0YexCRj.js → index-ucJDxPyE.js} +3 -3
  159. package/dist/client/assets/{infiniteQueryObserver-BMqABh4H.js → infiniteQueryObserver-Bd4S1JAr.js} +1 -1
  160. package/dist/client/assets/{infra-billing-TR3zcfyD.js → infra-billing-Cg1YMKnB.js} +1 -1
  161. package/dist/client/assets/{input--UVdiTAB.js → input-D-wXYNeQ.js} +3 -3
  162. package/dist/client/assets/{input-Br1caJ_d.js → input-egigpNvJ.js} +1 -1
  163. package/dist/client/assets/{integration-icon-D6ksbVbr.js → integration-icon-a40gN_z1.js} +1 -1
  164. package/dist/client/assets/{jira-icon-Dw9qRy7z.js → jira-icon-DIaDl6Sc.js} +1 -1
  165. package/dist/client/assets/{label-CnHmgvIU.js → label-CxjTL0R_.js} +1 -1
  166. package/dist/client/assets/{layout-DNHVxHcF.js → layout-DeMWwMag.js} +1 -1
  167. package/dist/client/assets/{legacy-agents-deep-phbsWihE.js → legacy-agents-deep-maguvV0Q.js} +1 -1
  168. package/dist/client/assets/{legacy-main-redirect-COYA2M-b.js → legacy-main-redirect-CrJ1J4b6.js} +1 -1
  169. package/dist/client/assets/library-YQBdctuF.js +1 -0
  170. package/dist/client/assets/{library-tab-Dizgrk4k.js → library-tab-CqHQSOSi.js} +1 -1
  171. package/dist/client/assets/{login-C_kb8goZ.js → login-GqA0qMx7.js} +1 -1
  172. package/dist/client/assets/{markdown-CN4Sgkcu.js → markdown-Cs2UsOW2.js} +1 -1
  173. package/dist/client/assets/{mcp-app-renderer-B7qZoNog.js → mcp-app-renderer-Da9_HDDx.js} +1 -1
  174. package/dist/client/assets/{mcp-oauth-BTwGti_Q.js → mcp-oauth-CwgKK51G.js} +1 -1
  175. package/dist/client/assets/{mcp-oauth-tf6SdsCd.js → mcp-oauth-DB6dlajV.js} +1 -1
  176. package/dist/client/assets/{members-kEy-UuPd.js → members-kUrSWAB8.js} +1 -1
  177. package/dist/client/assets/{memory-K-xVpveK.js → memory-68_RSYrN.js} +1 -1
  178. package/dist/client/assets/{mock-board-CYPKmuLz.js → mock-board-CthDdMFD.js} +3 -3
  179. package/dist/client/assets/{monaco-editor-DRELyy_D.js → monaco-editor-0eOa-DPV.js} +1 -1
  180. package/dist/client/assets/{monitoring-QNe1nTpU.js → monitoring-CajYiFMp.js} +1 -1
  181. package/dist/client/assets/{monitoring-stats-row-BJ3mVu8v.js → monitoring-stats-row-Badkrd8m.js} +1 -1
  182. package/dist/client/assets/{multi-select-ZlDR0NXs.js → multi-select-Dc3qkP9e.js} +1 -1
  183. package/dist/client/assets/{mustache-CMDiec2Z.js → mustache-FPu-BUlH.js} +1 -1
  184. package/dist/client/assets/{named-rule-view-vbAzCqnU.js → named-rule-view-Iopjwm11.js} +1 -1
  185. package/dist/client/assets/{new-project-dialog-C0bl_2Ba.js → new-project-dialog-CcXdYQOA.js} +1 -1
  186. package/dist/client/assets/{oauth-callback-seyUpLHE.js → oauth-callback-CtKUneJ3.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-ai-provider-C5tN-P7D.js → oauth-callback-ai-provider-BW86dzZR.js} +1 -1
  188. package/dist/client/assets/{oauth-consent-Csxt2TlH.js → oauth-consent-ImI0sTuT.js} +1 -1
  189. package/dist/client/assets/{onboarding-CLe1nQhR.js → onboarding-BWsm-6Ib.js} +1 -1
  190. package/dist/client/assets/{openai-conversation-BrNIC0gU.js → openai-conversation-x0vBTDcX.js} +1 -1
  191. package/dist/client/assets/{optimistic-project-sidebar-views-CxAVgylL.js → optimistic-project-sidebar-views-DQpn9Pgs.js} +1 -1
  192. package/dist/client/assets/{order-monitor-day-pxrX3JmM.js → order-monitor-day-CDgLweRg.js} +1 -1
  193. package/dist/client/assets/{organization-choice-BpSAzd2p.js → organization-choice-CRVdDLQi.js} +1 -1
  194. package/dist/client/assets/{orgs-p1XKp1ZG.js → orgs-CT9apq2g.js} +1 -1
  195. package/dist/client/assets/{own-accounts-section-CbvkYG1v.js → own-accounts-section-BRHD0772.js} +1 -1
  196. package/dist/client/assets/{pair-D-1ihySL.js → pair-mfml6eLi.js} +1 -1
  197. package/dist/client/assets/{parse-sections-DAzG_Y-i.js → parse-sections-11L0xusW.js} +3 -3
  198. package/dist/client/assets/{plan-Ct48TCKI.js → plan-DRqprlax.js} +1 -1
  199. package/dist/client/assets/{plan-ladder-EgyMICws.js → plan-ladder-BoOM3V_X.js} +1 -1
  200. package/dist/client/assets/{plan-usage-card-55U4oLof.js → plan-usage-card-C52vk1JD.js} +1 -1
  201. package/dist/client/assets/{popover-ChvCIlNB.js → popover-BaWxRQRQ.js} +1 -1
  202. package/dist/client/assets/{post-calendar-B-eIxloA.js → post-calendar-B7v9fy1f.js} +1 -1
  203. package/dist/client/assets/{post-editor-DCSvvVMs.js → post-editor-B5pVpoGq.js} +1 -1
  204. package/dist/client/assets/{preview-content-DV3ORZ_c.js → preview-content-VAE9VX_a.js} +1 -1
  205. package/dist/client/assets/{preview-dialog-BREniLg2.js → preview-dialog-vZA6Vkch.js} +1 -1
  206. package/dist/client/assets/{preview-panel-UEmA70eG.js → preview-panel-CmtR7uJm.js} +1 -1
  207. package/dist/client/assets/preview-tab-COW5YDet.js +551 -0
  208. package/dist/client/assets/{product-picker-dialog-C9QNyiBq.js → product-picker-dialog-Di0GUuGQ.js} +1 -1
  209. package/dist/client/assets/{profile-DCr1-Qvc.js → profile-DbHjYdB0.js} +1 -1
  210. package/dist/client/assets/{project-app-view-rhGgr5Sc.js → project-app-view-oayAW59Y.js} +1 -1
  211. package/dist/client/assets/{project-apps-DgmZ54eE.js → project-apps-DKkSorHl.js} +1 -1
  212. package/dist/client/assets/{project-icon-CmV5zxWN.js → project-icon-BDGMpF2P.js} +1 -1
  213. package/dist/client/assets/{project-index-ComZIF5j.js → project-index-BXdjh86r.js} +1 -1
  214. package/dist/client/assets/project-reports-D6yXFUI4.js +1 -0
  215. package/dist/client/assets/{project-sidebar-views-CDN0Y7nM.js → project-sidebar-views-DxAssfab.js} +1 -1
  216. package/dist/client/assets/project-tasks-CxdDJlKX.js +1 -0
  217. package/dist/client/assets/{projects-BH7yFrNo.js → projects-DWtsTPdq.js} +1 -1
  218. package/dist/client/assets/{projects-empty-state-D7JOaHzT.js → projects-empty-state-CA380eV8.js} +1 -1
  219. package/dist/client/assets/{prompts-BE2oz-mN.js → prompts-BHFq_gsc.js} +1 -1
  220. package/dist/client/assets/record-editor-D0DXAuHN.js +1 -0
  221. package/dist/client/assets/{redirect-editor-BbsrbYSo.js → redirect-editor-BwLrArGh.js} +1 -1
  222. package/dist/client/assets/reports-CH4MzjC3.js +1 -0
  223. package/dist/client/assets/{reports-CqsqZ5NG.js → reports-Dvv0WRgv.js} +1 -1
  224. package/dist/client/assets/{reports-onboarding-DN1rE25Z.js → reports-onboarding-DqGzGU-U.js} +1 -1
  225. package/dist/client/assets/{reports-tab-BkEWE3Wb.js → reports-tab-C-YlOqTD.js} +2 -2
  226. package/dist/client/assets/repositories-Bvcf-KuW.js +1 -0
  227. package/dist/client/assets/{repositories-D5p56rp8.js → repositories-COBSE7nS.js} +1 -1
  228. package/dist/client/assets/{repository-binding-zAuhrRNl.js → repository-binding-BWkpkFiy.js} +1 -1
  229. package/dist/client/assets/{repository-picker-C8xivTfl.js → repository-picker-TrkRysRA.js} +1 -1
  230. package/dist/client/assets/{require-capability-DcSbNfND.js → require-capability-DmJgWdQR.js} +1 -1
  231. package/dist/client/assets/{required-auth-layout-CQCCkUAY.js → required-auth-layout-sIreaYcR.js} +1 -1
  232. package/dist/client/assets/{reset-password-qF03il-Y.js → reset-password-B2HAlTO4.js} +1 -1
  233. package/dist/client/assets/{resizable-BbH6Rq9j.js → resizable-e7KAJlT2.js} +1 -1
  234. package/dist/client/assets/{resolve-tab-icon-DT-C34an.js → resolve-tab-icon-DnOPa8fE.js} +1 -1
  235. package/dist/client/assets/{review-settings-zQhgda-0.js → review-settings-BZ6UQlsU.js} +1 -1
  236. package/dist/client/assets/{role-color-Ce0vE_lJ.js → role-color-DKoRr7_O.js} +1 -1
  237. package/dist/client/assets/{roles-CS8RSWSS.js → roles-BzRIIi-m.js} +1 -1
  238. package/dist/client/assets/route-DgZ0eIWH.js +1 -0
  239. package/dist/client/assets/{route-Ci6YieJ3.js → route-cawoaLGc.js} +1 -1
  240. package/dist/client/assets/{route-CmtRblLz.js → route-uBGz5xtE.js} +1 -1
  241. package/dist/client/assets/{sandbox-lifecycle-context-NUpZmc9C.js → sandbox-lifecycle-context-DzPeV1F2.js} +1 -1
  242. package/dist/client/assets/{schema-CbQkhAdU.js → schema-kWZLxlYI.js} +1 -1
  243. package/dist/client/assets/{schema-DfRf1jxZ.js → schema-tSFLTBrW.js} +1 -1
  244. package/dist/client/assets/{scroll-area-C8lIzaxm.js → scroll-area-BEM410Qx.js} +1 -1
  245. package/dist/client/assets/{search-input-D2E1z19V.js → search-input-BeN2Dgcn.js} +1 -1
  246. package/dist/client/assets/{search-toggle-CZItDB1R.js → search-toggle-c4jDK8W2.js} +1 -1
  247. package/dist/client/assets/{secret-picker-DGsGo-lH.js → secret-picker-Cjv-JfME.js} +1 -1
  248. package/dist/client/assets/{secrets-Dac8hncd.js → secrets-CevHfsbC.js} +1 -1
  249. package/dist/client/assets/{section-array-field-3fy_eFLn.js → section-array-field-DJyNG6r7.js} +1 -1
  250. package/dist/client/assets/{sections-BSqM_8t2.js → sections-9yqUizm4.js} +1 -1
  251. package/dist/client/assets/sections-editor-DeOAChIV.js +1 -0
  252. package/dist/client/assets/{select-C67xaSM-.js → select-MFmOiD7V.js} +1 -1
  253. package/dist/client/assets/{select-model-B7BkbJ8q.js → select-model-CQpO4P5t.js} +1 -1
  254. package/dist/client/assets/{seo-editor-D6BbHFAR.js → seo-editor-C2CaIIDv.js} +1 -1
  255. package/dist/client/assets/{separator-BJXdAG6q.js → separator-BiskJWog.js} +1 -1
  256. package/dist/client/assets/settings-tab-DQ4iDk73.js +1 -0
  257. package/dist/client/assets/{sheet-D1FdDYgh.js → sheet-MLWNRYhQ.js} +1 -1
  258. package/dist/client/assets/{shell-layout-q9TPgR4S.js → shell-layout-CMz_aZCA.js} +1 -1
  259. package/dist/client/assets/{site-draft-actions-DEdhulne.js → site-draft-actions-CmIfl7aD.js} +1 -1
  260. package/dist/client/assets/{site-draft-view-Du5u3dh2.js → site-draft-view-DMPeif4U.js} +1 -1
  261. package/dist/client/assets/site-editor-Br6S_qwB.js +1 -0
  262. package/dist/client/assets/{site-editor-toast-BQb3pwds.js → site-editor-toast-6KgkdfPr.js} +1 -1
  263. package/dist/client/assets/{skills-BO__rEmW.js → skills-BqxMFGPE.js} +1 -1
  264. package/dist/client/assets/{slider-COwHhiq0.js → slider-D87k16tL.js} +1 -1
  265. package/dist/client/assets/{sortable.esm-BoEIu5W0.js → sortable.esm-JloqmUYv.js} +1 -1
  266. package/dist/client/assets/{sso-DzouQIR7.js → sso-DQRc1SkX.js} +1 -1
  267. package/dist/client/assets/{suggestion-0IJfbUde.js → suggestion-DSascTGX.js} +1 -1
  268. package/dist/client/assets/{switch-By9JubUf.js → switch-CnGPtCHB.js} +1 -1
  269. package/dist/client/assets/{synced-repos-D6Z7ziCu.js → synced-repos-D_gHr2cZ.js} +1 -1
  270. package/dist/client/assets/{tab-icon-glyph-BIJxIcux.js → tab-icon-glyph--BvwD-9q.js} +1 -1
  271. package/dist/client/assets/{table-BiZFGesF.js → table--lSGBU5J.js} +1 -1
  272. package/dist/client/assets/{tabs-Bb2xgzcm.js → tabs-Cl2CsEMh.js} +1 -1
  273. package/dist/client/assets/{task-board-4SvjUpMb.js → task-board-BzsqXAQD.js} +1 -1
  274. package/dist/client/assets/{task-route-DVEP01nU.js → task-route-BCP5p_Kg.js} +1 -1
  275. package/dist/client/assets/{task-status-DcO-XRPI.js → task-status-C10P7bk5.js} +1 -1
  276. package/dist/client/assets/{taskboard-analytics-BSun1TbW.js → taskboard-analytics-tig154_J.js} +1 -1
  277. package/dist/client/assets/{tasks--l87WFyL.js → tasks-C-AxxRS8.js} +1 -1
  278. package/dist/client/assets/tasks-CE1MQpDZ.js +1 -0
  279. package/dist/client/assets/{textarea-Duz08Iqx.js → textarea-BA6pOE5t.js} +1 -1
  280. package/dist/client/assets/{thread-analytics-oUI0Ldjh.js → thread-analytics-Chj_yROn.js} +1 -1
  281. package/dist/client/assets/{thread-intent-BGQF0i18.js → thread-intent-CI_dX-N0.js} +1 -1
  282. package/dist/client/assets/{thread-route-Cjav7kKF.js → thread-route-BAKmNNyY.js} +1 -1
  283. package/dist/client/assets/{thread-route-D3Npgdwy.js → thread-route-jBbjjKNR.js} +1 -1
  284. package/dist/client/assets/{thread-sheet-body--mz7LDhh.js → thread-sheet-body-kWzPcNxq.js} +1 -1
  285. package/dist/client/assets/{time-range-picker-Dcl7u7UC.js → time-range-picker-D3aABZRy.js} +1 -1
  286. package/dist/client/assets/{toggle-group-CCnoRxJ5.js → toggle-group-Dh3zyTAy.js} +1 -1
  287. package/dist/client/assets/{tool-namespace-0JnTVTOi.js → tool-namespace-DWzf9fHX.js} +1 -1
  288. package/dist/client/assets/{tool-set-selector-Cs7GdO0i.js → tool-set-selector-Ct1WdfRK.js} +1 -1
  289. package/dist/client/assets/{toolbar-icon-button-CpfF_t2h.js → toolbar-icon-button-DLr3JTpB.js} +1 -1
  290. package/dist/client/assets/{tooltip-B4vnoW3c.js → tooltip-D_WhUD2W.js} +1 -1
  291. package/dist/client/assets/{tooltipContext-Di8C4u-8.js → tooltipContext-DBg9OJee.js} +1 -1
  292. package/dist/client/assets/{track-Byem6YG_.js → track-DnomIQY8.js} +1 -1
  293. package/dist/client/assets/{types-Cvkdtetr.js → types-ASWejG-h.js} +1 -1
  294. package/dist/client/assets/{url-slug-T5nyiyN7.js → url-slug-C7rIIBEj.js} +1 -1
  295. package/dist/client/assets/{usage-stats-D9-LtkOq.js → usage-stats-XRbUuNdg.js} +1 -1
  296. package/dist/client/assets/{use-ai-providers-DKBQ22lC.js → use-ai-providers-CP8hIgY3.js} +1 -1
  297. package/dist/client/assets/{use-apply-named-rule-hAr6r48R.js → use-apply-named-rule-NujXCbVj.js} +1 -1
  298. package/dist/client/assets/use-ask-in-chat-D3qra8L7.js +1 -0
  299. package/dist/client/assets/{use-automations-pTfMxWF2.js → use-automations-QnSiBJK1.js} +1 -1
  300. package/dist/client/assets/{use-autosave-CwoAt-Cr.js → use-autosave-vzKNIh7N.js} +1 -1
  301. package/dist/client/assets/use-blocks-v8-project-CrOozSZ7.js +1 -0
  302. package/dist/client/assets/{use-chat-layout-state-DMTZvG3v.js → use-chat-layout-state-CZu4sqCQ.js} +1 -1
  303. package/dist/client/assets/{use-cms-publish-actions-C7a0pDGH.js → use-cms-publish-actions-BsAhW6oR.js} +1 -1
  304. package/dist/client/assets/{use-connect-companion-Bw9DztfC.js → use-connect-companion-BPvHx0lV.js} +1 -1
  305. package/dist/client/assets/{use-connection-Cd0tT7Hz.js → use-connection-Bh4mFZP8.js} +1 -1
  306. package/dist/client/assets/{use-content-sync-B7G_IDZR.js → use-content-sync-DwMQ9IL5.js} +1 -1
  307. package/dist/client/assets/{use-copy-L2uJJmEn.js → use-copy-Bs4XYM8b.js} +1 -1
  308. package/dist/client/assets/{use-date-fns-locale-BWR3I0yD.js → use-date-fns-locale-BsWCfsQ_.js} +1 -1
  309. package/dist/client/assets/{use-debounced-autosave-D6uv4Ht0.js → use-debounced-autosave-CvEiuLQU.js} +1 -1
  310. package/dist/client/assets/{use-debounced-value-yze9Agx0.js → use-debounced-value-pGYMxzxk.js} +1 -1
  311. package/dist/client/assets/{use-deco-credits-CpL6RZMd.js → use-deco-credits-DYCNC_rr.js} +1 -1
  312. package/dist/client/assets/{use-decopilot-events-Emf31ERY.js → use-decopilot-events-d_M9Hjhx.js} +1 -1
  313. package/dist/client/assets/{use-delete-connection-BOGW-gWO.js → use-delete-connection-C4bEnWu4.js} +1 -1
  314. package/dist/client/assets/{use-deployment-admin-C05Wl5hm.js → use-deployment-admin-DbaoxO_S.js} +1 -1
  315. package/dist/client/assets/{use-entitlements-DyCdoeJS.js → use-entitlements-CpaMfout.js} +1 -1
  316. package/dist/client/assets/{use-fast-preview-draft-url-CUn670We.js → use-fast-preview-draft-url-D7lYg71A.js} +1 -1
  317. package/dist/client/assets/{use-file-configs-C2_msq8y.js → use-file-configs-DXg7w0ah.js} +1 -1
  318. package/dist/client/assets/{use-id-selection-DAVcESqY.js → use-id-selection-BUJSoF-P.js} +1 -1
  319. package/dist/client/assets/{use-inbox-feed-CDj71yb0.js → use-inbox-feed-dFlcVIpe.js} +1 -1
  320. package/dist/client/assets/{use-infinite-scroll-D1VEiyLA.js → use-infinite-scroll-oh57fQW8.js} +1 -1
  321. package/dist/client/assets/{use-join-requests-Cn6BUpqb.js → use-join-requests-rNOmuzaG.js} +1 -1
  322. package/dist/client/assets/{use-main-panel-tabs-C43j023G.js → use-main-panel-tabs-_zYm5HQh.js} +1 -1
  323. package/dist/client/assets/{use-mcp-auth-status-B0TiKwJF.js → use-mcp-auth-status-CHVe_UL9.js} +1 -1
  324. package/dist/client/assets/{use-mcp-client-DBEWWTcM.js → use-mcp-client-TeUnMSC4.js} +1 -1
  325. package/dist/client/assets/{use-mcp-prompts-CQ9PPuTj.js → use-mcp-prompts-DDyg7FMp.js} +1 -1
  326. package/dist/client/assets/{use-mcp-tools-BCKxSU46.js → use-mcp-tools-Dfsa_hrX.js} +1 -1
  327. package/dist/client/assets/{use-mobile-CRjTpdEZ.js → use-mobile-BbP62vju.js} +1 -1
  328. package/dist/client/assets/{use-move-blocks-Dn5Uj2rh.js → use-move-blocks-Bi-2K9Wd.js} +1 -1
  329. package/dist/client/assets/{use-navigate-to-agent-B9-xP8hn.js → use-navigate-to-agent-8ajznGe2.js} +1 -1
  330. package/dist/client/assets/{use-org-fs-CAEafaQy.js → use-org-fs-Bz2ywQpd.js} +1 -1
  331. package/dist/client/assets/{use-org-repo-syncs-D7vGRv_1.js → use-org-repo-syncs-zcGBRnsE.js} +1 -1
  332. package/dist/client/assets/{use-org-sso-DcHAsgmH.js → use-org-sso-YfhiI7Na.js} +1 -1
  333. package/dist/client/assets/{use-organization-settings-Df-csuDo.js → use-organization-settings-BRBR1fOm.js} +1 -1
  334. package/dist/client/assets/{use-project-scope-DwEcCTYT.js → use-project-scope-GFa4JvNG.js} +1 -1
  335. package/dist/client/assets/{use-recent-apps-Bewb5o_E.js → use-recent-apps-CWh8PA7D.js} +1 -1
  336. package/dist/client/assets/{use-reports-diagnostic-B92d9OS0.js → use-reports-diagnostic-BrE3eDqC.js} +1 -1
  337. package/dist/client/assets/{use-sandbox-events-BxZfdvM3.js → use-sandbox-events-68YztdQP.js} +1 -1
  338. package/dist/client/assets/{use-secrets-4gWR8BJM.js → use-secrets-BhPSZQfa.js} +1 -1
  339. package/dist/client/assets/{use-section-preview-base-nthVDFUD.js → use-section-preview-base-3lOa0tAM.js} +1 -1
  340. package/dist/client/assets/{use-sidebar-collapsed-B_25RrQb.js → use-sidebar-collapsed-CfApMrjn.js} +1 -1
  341. package/dist/client/assets/{use-tags-BPdkrSTc.js → use-tags-rAc8X0bx.js} +1 -1
  342. package/dist/client/assets/{use-task-board-analytics-DWzCS1h7.js → use-task-board-analytics-BEP1IVqq.js} +1 -1
  343. package/dist/client/assets/{use-task-board-events-C0AmYx3j.js → use-task-board-events-BQOt8K6j.js} +1 -1
  344. package/dist/client/assets/{use-task-board-item-prs-BwjTfRBq.js → use-task-board-item-prs-Dpg9J2j_.js} +1 -1
  345. package/dist/client/assets/{use-task-board-items-Bueh6O2r.js → use-task-board-items-rcG1gNIH.js} +1 -1
  346. package/dist/client/assets/{use-task-board-prompts-BeKRCQFj.js → use-task-board-prompts-OFKn7DUf.js} +1 -1
  347. package/dist/client/assets/{use-task-metadata-CpevmR5K.js → use-task-metadata-PVdfMsAN.js} +1 -1
  348. package/dist/client/assets/{use-thread-outputs-D4glxnBY.js → use-thread-outputs-B_TAH3sz.js} +1 -1
  349. package/dist/client/assets/{use-voice-input-CXfzcEw1.js → use-voice-input-Dx_WJHtm.js} +1 -1
  350. package/dist/client/assets/useInfiniteQuery-v4D5ym6Y.js +1 -0
  351. package/dist/client/assets/{useQueries-BZNL1IMW.js → useQueries-CR738UlN.js} +1 -1
  352. package/dist/client/assets/useSuspenseInfiniteQuery-DOWp786v.js +1 -0
  353. package/dist/client/assets/{users-Cdd9D-dR.js → users-CMO3k4s-.js} +1 -1
  354. package/dist/client/assets/{utils-CtoE4BzT.js → utils-Bbsz503j.js} +1 -1
  355. package/dist/client/assets/{variant-calendar-DMEwLCMH.js → variant-calendar-BHsjE51A.js} +1 -1
  356. package/dist/client/assets/{variant-matcher-override-BCR-xrVe.js → variant-matcher-override-_Rve3iRZ.js} +1 -1
  357. package/dist/client/assets/{view-header-KJ6rsezd.js → view-header-C--lK37a.js} +1 -1
  358. package/dist/client/assets/{virtual-mcp-wrwCllE9.js → virtual-mcp-CAdekzcm.js} +1 -1
  359. package/dist/client/assets/{watch-sse-pool-BNZW-YJq.js → watch-sse-pool-DhHWqGJ6.js} +1 -1
  360. package/dist/client/index.html +1 -1
  361. package/dist/client/studio-modules/v1/html-swap.js +47 -36
  362. package/dist/client/studio-modules/v1/wireframe.js +53 -45
  363. package/dist/server/server.js +1 -1
  364. package/package.json +1 -1
  365. package/dist/client/assets/agent-app-BOWDvrpS.js +0 -1
  366. package/dist/client/assets/agent-deck-Bx7kJg98.js +0 -1
  367. package/dist/client/assets/agent-experiments-DMJmKtxn.js +0 -1
  368. package/dist/client/assets/agent-library-_YpYk3se.js +0 -1
  369. package/dist/client/assets/agent-library-file-BGthAKoz.js +0 -1
  370. package/dist/client/assets/agent-overview-CunpO2WP.js +0 -1
  371. package/dist/client/assets/agent-settings-Cf2re97I.js +0 -1
  372. package/dist/client/assets/agent-site-editor-code-CBnPLDwR.js +0 -2
  373. package/dist/client/assets/agent-site-editor-content-BMrNzhJ0.js +0 -1
  374. package/dist/client/assets/agent-site-editor-preview-GFFDvuZl.js +0 -1
  375. package/dist/client/assets/agent-view-BoMty4cJ.js +0 -1
  376. package/dist/client/assets/api-keys-3ZWG2OME.js +0 -1
  377. package/dist/client/assets/library-PQWanCvO.js +0 -1
  378. package/dist/client/assets/preview-tab-BrupxuLJ.js +0 -551
  379. package/dist/client/assets/project-reports-CVQtK-Va.js +0 -1
  380. package/dist/client/assets/project-tasks-CtZ4MN1R.js +0 -1
  381. package/dist/client/assets/record-editor-SI7Q-pVr.js +0 -1
  382. package/dist/client/assets/reports-C-TsCVxa.js +0 -1
  383. package/dist/client/assets/repositories-CE7fOdIh.js +0 -1
  384. package/dist/client/assets/route-BCTRYX9A.js +0 -1
  385. package/dist/client/assets/sections-editor-UNPiBRIi.js +0 -1
  386. package/dist/client/assets/settings-tab-BKHHd0_C.js +0 -1
  387. package/dist/client/assets/site-editor-BSjvpXJX.js +0 -1
  388. package/dist/client/assets/tasks-CXuVo5e-.js +0 -1
  389. package/dist/client/assets/use-ask-in-chat-CMwCc1F-.js +0 -1
  390. package/dist/client/assets/use-blocks-v8-project-FZUFv9Vq.js +0 -1
  391. package/dist/client/assets/useInfiniteQuery-Bq3XzHMD.js +0 -1
  392. package/dist/client/assets/useSuspenseInfiniteQuery-B3WDnHYO.js +0 -1
@@ -1 +1 @@
1
- import{c as _,b as ee,j as s,q as ze,K as Ne,r as Z,as as Ae,B as Ie,h as Pe}from"./index-C0YexCRj.js";import{a1 as we}from"./agent-icon-CTjv6Gf3.js";import{S as Ee}from"./scroll-area-C8lIzaxm.js";import{O as Oe,aC as Ue,k as fe,a3 as Be,aD as He,aE as Re,aF as Me,d as Ge,aG as Qe,J as _e,aH as qe,af as Ve,i as We,aI as Ye,ag as Je,h as Ze}from"./parse-sections-DAzG_Y-i.js";import{Z as Xe,A as et}from"./blocks-tab-states-DAhg2Ye6.js";import{L as Fe}from"./label-CnHmgvIU.js";import{S as Ce}from"./switch-By9JubUf.js";import{c as tt,b as st,a as lt,d as ot,S as it}from"./select-C67xaSM-.js";import{c as nt,u as rt}from"./hosted-reconcile-DVCi8vCY.js";import{b as Ke}from"./Tool01-BhHpHR3H.js";import{F as at,u as ct,m as dt}from"./site-editor-toast-BQb3pwds.js";const ft="https://deco.cx/docs/en/performance/edge-async-render";function mt(a){const e=_.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:f,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Oe();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let d;e[2]!==t?(d=Ue(t),e[2]=t,e[3]=d):d=e[3];const x=d,h=!n&&u;let v;e[4]!==c?(v=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=v):v=e[5];let y;e[6]!==v?(y=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:v}),e[6]=v,e[7]=y):y=e[7];const k=h&&l?"seo-enable-hint":void 0;let b;e[8]!==h||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:h,"aria-describedby":k,onCheckedChange:i}),e[8]=h,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==y||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,b]}),e[13]=y,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==h||e[17]!==l?(j=h&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=h,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==x||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==f||e[24]!==c?(g=n&&(m||!f?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:ft,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:x,onCheckedChange:f,className:"shrink-0"})]})]})),e[19]=x,e[20]=o,e[21]=m,e[22]=n,e[23]=f,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 ut(a){const e=_.c(20),{options:t,value:i,onChange:f}=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(st,{className:"w-full",children:s.jsx(lt,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(ht).map(pt),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(ot,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==f||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(it,{value:i,onValueChange:f,children:[c,p]}),e[12]=f,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let d;return e[17]!==o||e[18]!==n?(d=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=d):d=e[19],d}function pt(a){return s.jsx(tt,{value:a.resolveType,children:a.title},a.resolveType)}function ht(a){return a.resolveType.length>0}function xt(a){const e=_.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:f,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:d,onBumpFormKey:x,beforeFields:h,asyncRenderAvailable:v,seoTypesLoading:y}=a,k=v===void 0?!0:v,b=y===void 0?!1:y,S=ee(),g=!Be()||!b&&f!=="";let N;e[0]!==f||e[1]!==x||e[2]!==d||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Me(f);p($),d(),x();return}p(null),d(),x()},e[0]=f,e[1]=x,e[2]=d,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 C=E;let T;e[9]!==x||e[10]!==n?(T=K=>{n({__resolveType:K}),x()},e[9]=x,e[10]=n,e[11]=T):T=e[11];const L=T,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?C: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(ut,{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]!==h||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==Y||e[38]!==P?(U=s.jsxs(mt,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:Y,children:[h,P,F]}),e[31]=h,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 yt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const f=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:Qe(i,f)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function vt(a,e,t){if(e===null&&Xe(t??void 0)){const{seo:i,...f}=a;return f}return{...a,seo:e}}function gt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function bt(a){const e=_.c(25),{orgSlug:t,virtualMcpId:i,branch:f,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze(),m=`${t}/${i}/${f}`;let p;e[0]!==f||e[1]!==t||e[2]!==i?(p={orgSlug:t,virtualMcpId:i,branch:f},e[0]=f,e[1]=t,e[2]=i,e[3]=p):p=e[3];let n;e[4]!==u?(n={onSaved:u,holdsCopy:!0},e[4]=u,e[5]=n):n=e[5];const{save:d,flush:x,isPending:h,hold:v}=Ge(p,n);let y;e[6]!==m||e[7]!==c||e[8]!==l||e[9]!==d||e[10]!==r?(y=g=>{l&&d(l.blockKey,()=>{const w=c.getQueryData(Ne.decofile(m))?.[l.blockKey];return yt(r,l,w,g)})},e[6]=m,e[7]=c,e[8]=l,e[9]=d,e[10]=r,e[11]=y):y=e[11];const k=y;let b;e[12]!==m||e[13]!==o||e[14]!==c||e[15]!==l||e[16]!==d||e[17]!==r?(b=g=>{!l||r.kind!=="page"||d(l.blockKey,()=>{const w=c.getQueryData(Ne.decofile(m))?.[l.blockKey];return Se(w)?vt(w,g,o):null})},e[12]=m,e[13]=o,e[14]=c,e[15]=l,e[16]=d,e[17]=r,e[18]=b):b=e[18];const S=b;let j;return e[19]!==x||e[20]!==v||e[21]!==h||e[22]!==S||e[23]!==k?(j={persistSeo:k,persistRawSeo:S,flush:x,isPending:h,hold:v},e[19]=x,e[20]=v,e[21]=h,e[22]=S,e[23]=k,e[24]=j):j=e[24],j}function X(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 St(a){if(!a)return{};const e=X(a.title),t=X(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:X(a.description),image:X(a.image),favicon:X(a.favicon)}}function jt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const kt=[{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(10),{src:t,className:i,iconSize:f}=a,r=f===void 0?20:f;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 Nt(a){const e=_.c(33),{seo:t,host:i,path:f,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]!==f?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,f]}),e[8]=i,e[9]=f,e[10]=n):n=e[10];let d;e[11]!==m||e[12]!==n?(d=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=d):d=e[13];let x;e[14]!==u||e[15]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[u,d]}),e[14]=u,e[15]=d,e[16]=x):x=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h={color:"#1a0dab"},e[17]=h):h=e[17];let v;e[18]!==t.title||e[19]!==r?(v=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=v):v=e[20];let y;e[21]!==v?(y=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:h,children:v}),e[21]=v,e[22]=y):y=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]!==y||e[30]!==S||e[31]!==x?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[x,y,S]}),e[29]=y,e[30]=S,e[31]=x,e[32]=j):j=e[32],j}function wt(a){const e=_.c(26),{seo:t,host:i,t:f}=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]!==f?(p=t.title??f("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=f,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 d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d={color:"#60666c"},e[13]=d):d=e[13];let x;e[14]!==t.description||e[15]!==f?(x=t.description??f("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=f,e[16]=x):x=e[16];let h;e[17]!==x?(h=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:d,children:x}),e[17]=x,e[18]=h):h=e[18];let v;e[19]!==h||e[20]!==c||e[21]!==n?(v=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,h]}),e[19]=h,e[20]=c,e[21]=n,e[22]=v):v=e[22];let y;return e[23]!==v||e[24]!==l?(y=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,v]}),e[23]=v,e[24]=l,e[25]=y):y=e[25],y}function Et(a){const e=_.c(36),{seo:t,host:i,accent:f,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 ${f}`;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 d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d={color:"#1c2024"},e[10]=d):d=e[10];let x;e[11]!==t.title||e[12]!==r?(x=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:d,children:x}),e[14]=x,e[15]=h):h=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v={color:"#60666c"},e[16]=v):v=e[16];let y;e[17]!==t.description||e[18]!==r?(y=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=y):y=e[19];let k;e[20]!==y?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:v,children:y}),e[20]=y,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]!==h||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[h,k,S]}),e[25]=h,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 _t(a){const e=_.c(39),{seo:t,host:i,accent:f,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 d=`3px solid ${f}`;let x;e[3]!==d?(x={borderLeft:d,borderRadius:2},e[3]=d,e[4]=x):x=e[4];let h;e[5]!==m?(h={color:m},e[5]=m,e[6]=h):h=e[6];let v;e[7]!==i||e[8]!==h?(v=s.jsx("div",{className:"text-[10px]",style:h,children:i}),e[7]=i,e[8]=h,e[9]=v):v=e[9];let y;e[10]!==u?(y={color:u},e[10]=u,e[11]=y):y=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]!==y||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:y,children:k}),e[15]=y,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]!==v||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[v,b,g]}),e[26]=g,e[27]=v,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]!==x?(E=s.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:x,children:[N,w]}),e[32]=N,e[33]=w,e[34]=x,e[35]=E):E=e[35];let C;return e[36]!==E||e[37]!==n?(C=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=C):C=e[38],C}function Ct(a){const e=_.c(21),{platform:t,seo:i,host:f,path:r,t:l}=a;let o;e[0]!==f||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(Nt,{seo:i,host:f,path:r,t:l}):t.layout==="card"?s.jsx(wt,{seo:i,host:f,path:r,t:l}):t.layout==="chat"?s.jsx(Et,{seo:i,host:f,path:r,accent:t.color,t:l}):s.jsx(_t,{seo:i,host:f,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=f,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 d;return e[18]!==u||e[19]!==n?(d=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=d):d=e[20],d}function Tt(a){const e=_.c(18),{seo:t,url:i,path:f}=a,r=f===void 0?"/":f,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const y=St(t);o=y,u=Te(y.image,i),c=Te(y.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=jt(i),e[9]=i,e[10]=n):n=e[10];const d=n,x=r==="/"?"":r;let h;e[11]!==x||e[12]!==d||e[13]!==l||e[14]!==p?(h=kt.map(y=>s.jsx(Ct,{platform:y,seo:p,host:d,path:x,t:l},y.id)),e[11]=x,e[12]=d,e[13]=l,e[14]=p,e[15]=h):h=e[15];let v;return e[16]!==h?(v=s.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:h}),e[16]=h,e[17]=v):v=e[17],v}function De(a,e,t){const i=_.c(3);let f;return i[0]!==e||i[1]!==t?(f=e?qe(e,t):[],i[0]=e,i[1]=t,i[2]=f):f=i[2],at(a,f)}function Pt(a){const e=_.c(7),{orgSlug:t,virtualMcpId:i,branch:f,decofile:r,meta:l}=a;let o;if(e[0]!==f||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:f},e[0]=f,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(Rt,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Rt(a){const e=_.c(77),{orgSlug:t,virtualMcpId:i,branch:f,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),d=Ve(r,o,l),x=ct(i,f);let h;e[0]!==x?(h=dt(x),e[0]=x,e[1]=h):h=e[1];const v=!h,y=d?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=Z.useState(k),[j,g]=Z.useState(null),[N,w]=Z.useState(0),[E,C]=Z.useState(void 0),{persistSeo:T,persistRawSeo:L,flush:z,isPending:R,hold:Y}=bt({orgSlug:t,virtualMcpId:i,branch:f,target:o,resolved:d,meta:l,onSaved:c});let P;e[2]!==f||e[3]!==t||e[4]!==i?(P=nt({orgSlug:t,virtualMcpId:i,branch:f}),e[2]=f,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=rt(P)(d?.blockKey??""),[U,K]=Z.useState(F);(b!==k||U!==F)&&(d&&Y(d.blockKey),S(k),K(F),g(null),C(void 0),w(Kt));const $=o.kind==="page",$e=$?d?.rawSeoData:void 0,J=E!==void 0?E:$e,Le=$?We(J)??void 0:void 0,D=j??Le??y??{},A=d?Ye(gt(D,d),r,l):null,B=A&&(!$||fe(J))?et(A,l):null;let te;e[6]!==l?(te=Je(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"?Ze(r,l)?.seoData??{}:{},se=o.kind==="page"?$t(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]!==T||e[15]!==d||e[16]!==g?(le=O=>{if(!d)return;const ke=O;g(ke),T(ke)},e[14]=T,e[15]=d,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(Ft),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,H=o.kind==="page"?o.path:"/";let re;e[25]!==H||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?Dt(H,u):u??null,e[25]=H,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==d||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(d?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=d,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&d,be=o.kind==="site"&&d&&B;let M;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(M=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]=M):M=e[37];let G;e[38]!==R?(G=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=G):G=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 q;e[44]!==G||e[45]!==Q?(q=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[G,Q]}),e[44]=G,e[45]=Q,e[46]=q):q=e[46];let V;e[47]!==M||e[48]!==q?(V=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[M,q]}),e[47]=M,e[48]=q,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==v||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==J||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==H||e[61]!==L||e[62]!==T||e[63]!==ue||e[64]!==ve||e[65]!==d||e[66]!==B||e[67]!==g||e[68]!==C||e[69]!==ce||e[70]!==be||e[71]!==I||e[72]!==n?(W=!d||!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(xt,{rawSeo:J,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:d.seoTypeOptions,formResetKey:N,siteDefaultSeo:I,onPersistRaw:O=>{C(O),L(O)},onInnerChange:O=>{g(O),T(O)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:v})]}):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(Tt,{seo:ue,url:ve,path:H})})})]}),e[50]=A,e[51]=v,e[52]=xe,e[53]=he,e[54]=me,e[55]=J,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=H,e[61]=L,e[62]=T,e[63]=ue,e[64]=ve,e[65]=d,e[66]=B,e[67]=g,e[68]=C,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 Ft(a){return a+1}function Kt(a){return a+1}function Dt(a,e){try{return new URL(a,e).href}catch{return e}}function $t(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const f={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(f[r]=l));return f}const qt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Pt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{xt as P,gt as a,yt as b,qt as s,De as u,vt as w};
1
+ import{c as _,b as ee,j as s,q as ze,K as Ne,r as Z,as as Ae,B as Ie,h as Pe}from"./index-ucJDxPyE.js";import{a1 as we}from"./agent-icon-DGjvzBU0.js";import{S as Ee}from"./scroll-area-BEM410Qx.js";import{O as Oe,aC as Ue,k as fe,a3 as Be,aD as He,aE as Re,aF as Me,d as Ge,aG as Qe,J as _e,aH as qe,af as Ve,i as We,aI as Ye,ag as Je,h as Ze}from"./parse-sections-11L0xusW.js";import{Z as Xe,A as et}from"./blocks-tab-states-CERDbw5g.js";import{L as Fe}from"./label-CxjTL0R_.js";import{S as Ce}from"./switch-CnGPtCHB.js";import{c as tt,b as st,a as lt,d as ot,S as it}from"./select-MFmOiD7V.js";import{c as nt,u as rt}from"./hosted-reconcile-B_zakWIj.js";import{b as Ke}from"./Tool01-BqhX4Lir.js";import{F as at,u as ct,m as dt}from"./site-editor-toast-6KgkdfPr.js";const ft="https://deco.cx/docs/en/performance/edge-async-render";function mt(a){const e=_.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:f,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Oe();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let d;e[2]!==t?(d=Ue(t),e[2]=t,e[3]=d):d=e[3];const x=d,h=!n&&u;let v;e[4]!==c?(v=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=v):v=e[5];let y;e[6]!==v?(y=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:v}),e[6]=v,e[7]=y):y=e[7];const k=h&&l?"seo-enable-hint":void 0;let b;e[8]!==h||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:h,"aria-describedby":k,onCheckedChange:i}),e[8]=h,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==y||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,b]}),e[13]=y,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==h||e[17]!==l?(j=h&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=h,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==x||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==f||e[24]!==c?(g=n&&(m||!f?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:ft,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:x,onCheckedChange:f,className:"shrink-0"})]})]})),e[19]=x,e[20]=o,e[21]=m,e[22]=n,e[23]=f,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 ut(a){const e=_.c(20),{options:t,value:i,onChange:f}=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(st,{className:"w-full",children:s.jsx(lt,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(ht).map(pt),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(ot,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==f||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(it,{value:i,onValueChange:f,children:[c,p]}),e[12]=f,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let d;return e[17]!==o||e[18]!==n?(d=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=d):d=e[19],d}function pt(a){return s.jsx(tt,{value:a.resolveType,children:a.title},a.resolveType)}function ht(a){return a.resolveType.length>0}function xt(a){const e=_.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:f,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:d,onBumpFormKey:x,beforeFields:h,asyncRenderAvailable:v,seoTypesLoading:y}=a,k=v===void 0?!0:v,b=y===void 0?!1:y,S=ee(),g=!Be()||!b&&f!=="";let N;e[0]!==f||e[1]!==x||e[2]!==d||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Me(f);p($),d(),x();return}p(null),d(),x()},e[0]=f,e[1]=x,e[2]=d,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 C=E;let T;e[9]!==x||e[10]!==n?(T=K=>{n({__resolveType:K}),x()},e[9]=x,e[10]=n,e[11]=T):T=e[11];const L=T,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?C: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(ut,{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]!==h||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==Y||e[38]!==P?(U=s.jsxs(mt,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:Y,children:[h,P,F]}),e[31]=h,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 yt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const f=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:Qe(i,f)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function vt(a,e,t){if(e===null&&Xe(t??void 0)){const{seo:i,...f}=a;return f}return{...a,seo:e}}function gt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function bt(a){const e=_.c(25),{orgSlug:t,virtualMcpId:i,branch:f,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze(),m=`${t}/${i}/${f}`;let p;e[0]!==f||e[1]!==t||e[2]!==i?(p={orgSlug:t,virtualMcpId:i,branch:f},e[0]=f,e[1]=t,e[2]=i,e[3]=p):p=e[3];let n;e[4]!==u?(n={onSaved:u,holdsCopy:!0},e[4]=u,e[5]=n):n=e[5];const{save:d,flush:x,isPending:h,hold:v}=Ge(p,n);let y;e[6]!==m||e[7]!==c||e[8]!==l||e[9]!==d||e[10]!==r?(y=g=>{l&&d(l.blockKey,()=>{const w=c.getQueryData(Ne.decofile(m))?.[l.blockKey];return yt(r,l,w,g)})},e[6]=m,e[7]=c,e[8]=l,e[9]=d,e[10]=r,e[11]=y):y=e[11];const k=y;let b;e[12]!==m||e[13]!==o||e[14]!==c||e[15]!==l||e[16]!==d||e[17]!==r?(b=g=>{!l||r.kind!=="page"||d(l.blockKey,()=>{const w=c.getQueryData(Ne.decofile(m))?.[l.blockKey];return Se(w)?vt(w,g,o):null})},e[12]=m,e[13]=o,e[14]=c,e[15]=l,e[16]=d,e[17]=r,e[18]=b):b=e[18];const S=b;let j;return e[19]!==x||e[20]!==v||e[21]!==h||e[22]!==S||e[23]!==k?(j={persistSeo:k,persistRawSeo:S,flush:x,isPending:h,hold:v},e[19]=x,e[20]=v,e[21]=h,e[22]=S,e[23]=k,e[24]=j):j=e[24],j}function X(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 St(a){if(!a)return{};const e=X(a.title),t=X(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:X(a.description),image:X(a.image),favicon:X(a.favicon)}}function jt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const kt=[{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(10),{src:t,className:i,iconSize:f}=a,r=f===void 0?20:f;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 Nt(a){const e=_.c(33),{seo:t,host:i,path:f,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]!==f?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,f]}),e[8]=i,e[9]=f,e[10]=n):n=e[10];let d;e[11]!==m||e[12]!==n?(d=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=d):d=e[13];let x;e[14]!==u||e[15]!==d?(x=s.jsxs("div",{className:"flex items-center gap-2",children:[u,d]}),e[14]=u,e[15]=d,e[16]=x):x=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h={color:"#1a0dab"},e[17]=h):h=e[17];let v;e[18]!==t.title||e[19]!==r?(v=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=v):v=e[20];let y;e[21]!==v?(y=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:h,children:v}),e[21]=v,e[22]=y):y=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]!==y||e[30]!==S||e[31]!==x?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[x,y,S]}),e[29]=y,e[30]=S,e[31]=x,e[32]=j):j=e[32],j}function wt(a){const e=_.c(26),{seo:t,host:i,t:f}=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]!==f?(p=t.title??f("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=f,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 d;e[13]===Symbol.for("react.memo_cache_sentinel")?(d={color:"#60666c"},e[13]=d):d=e[13];let x;e[14]!==t.description||e[15]!==f?(x=t.description??f("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=f,e[16]=x):x=e[16];let h;e[17]!==x?(h=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:d,children:x}),e[17]=x,e[18]=h):h=e[18];let v;e[19]!==h||e[20]!==c||e[21]!==n?(v=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,h]}),e[19]=h,e[20]=c,e[21]=n,e[22]=v):v=e[22];let y;return e[23]!==v||e[24]!==l?(y=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,v]}),e[23]=v,e[24]=l,e[25]=y):y=e[25],y}function Et(a){const e=_.c(36),{seo:t,host:i,accent:f,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 ${f}`;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 d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d={color:"#1c2024"},e[10]=d):d=e[10];let x;e[11]!==t.title||e[12]!==r?(x=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:d,children:x}),e[14]=x,e[15]=h):h=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v={color:"#60666c"},e[16]=v):v=e[16];let y;e[17]!==t.description||e[18]!==r?(y=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=y):y=e[19];let k;e[20]!==y?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:v,children:y}),e[20]=y,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]!==h||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[h,k,S]}),e[25]=h,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 _t(a){const e=_.c(39),{seo:t,host:i,accent:f,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 d=`3px solid ${f}`;let x;e[3]!==d?(x={borderLeft:d,borderRadius:2},e[3]=d,e[4]=x):x=e[4];let h;e[5]!==m?(h={color:m},e[5]=m,e[6]=h):h=e[6];let v;e[7]!==i||e[8]!==h?(v=s.jsx("div",{className:"text-[10px]",style:h,children:i}),e[7]=i,e[8]=h,e[9]=v):v=e[9];let y;e[10]!==u?(y={color:u},e[10]=u,e[11]=y):y=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]!==y||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:y,children:k}),e[15]=y,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]!==v||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[v,b,g]}),e[26]=g,e[27]=v,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]!==x?(E=s.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:x,children:[N,w]}),e[32]=N,e[33]=w,e[34]=x,e[35]=E):E=e[35];let C;return e[36]!==E||e[37]!==n?(C=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=C):C=e[38],C}function Ct(a){const e=_.c(21),{platform:t,seo:i,host:f,path:r,t:l}=a;let o;e[0]!==f||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(Nt,{seo:i,host:f,path:r,t:l}):t.layout==="card"?s.jsx(wt,{seo:i,host:f,path:r,t:l}):t.layout==="chat"?s.jsx(Et,{seo:i,host:f,path:r,accent:t.color,t:l}):s.jsx(_t,{seo:i,host:f,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=f,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 d;return e[18]!==u||e[19]!==n?(d=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=d):d=e[20],d}function Tt(a){const e=_.c(18),{seo:t,url:i,path:f}=a,r=f===void 0?"/":f,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const y=St(t);o=y,u=Te(y.image,i),c=Te(y.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=jt(i),e[9]=i,e[10]=n):n=e[10];const d=n,x=r==="/"?"":r;let h;e[11]!==x||e[12]!==d||e[13]!==l||e[14]!==p?(h=kt.map(y=>s.jsx(Ct,{platform:y,seo:p,host:d,path:x,t:l},y.id)),e[11]=x,e[12]=d,e[13]=l,e[14]=p,e[15]=h):h=e[15];let v;return e[16]!==h?(v=s.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:h}),e[16]=h,e[17]=v):v=e[17],v}function De(a,e,t){const i=_.c(3);let f;return i[0]!==e||i[1]!==t?(f=e?qe(e,t):[],i[0]=e,i[1]=t,i[2]=f):f=i[2],at(a,f)}function Pt(a){const e=_.c(7),{orgSlug:t,virtualMcpId:i,branch:f,decofile:r,meta:l}=a;let o;if(e[0]!==f||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:f},e[0]=f,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(Rt,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Rt(a){const e=_.c(77),{orgSlug:t,virtualMcpId:i,branch:f,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),d=Ve(r,o,l),x=ct(i,f);let h;e[0]!==x?(h=dt(x),e[0]=x,e[1]=h):h=e[1];const v=!h,y=d?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=Z.useState(k),[j,g]=Z.useState(null),[N,w]=Z.useState(0),[E,C]=Z.useState(void 0),{persistSeo:T,persistRawSeo:L,flush:z,isPending:R,hold:Y}=bt({orgSlug:t,virtualMcpId:i,branch:f,target:o,resolved:d,meta:l,onSaved:c});let P;e[2]!==f||e[3]!==t||e[4]!==i?(P=nt({orgSlug:t,virtualMcpId:i,branch:f}),e[2]=f,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=rt(P)(d?.blockKey??""),[U,K]=Z.useState(F);(b!==k||U!==F)&&(d&&Y(d.blockKey),S(k),K(F),g(null),C(void 0),w(Kt));const $=o.kind==="page",$e=$?d?.rawSeoData:void 0,J=E!==void 0?E:$e,Le=$?We(J)??void 0:void 0,D=j??Le??y??{},A=d?Ye(gt(D,d),r,l):null,B=A&&(!$||fe(J))?et(A,l):null;let te;e[6]!==l?(te=Je(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"?Ze(r,l)?.seoData??{}:{},se=o.kind==="page"?$t(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]!==T||e[15]!==d||e[16]!==g?(le=O=>{if(!d)return;const ke=O;g(ke),T(ke)},e[14]=T,e[15]=d,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(Ft),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,H=o.kind==="page"?o.path:"/";let re;e[25]!==H||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?Dt(H,u):u??null,e[25]=H,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==d||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(d?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=d,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&d,be=o.kind==="site"&&d&&B;let M;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(M=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]=M):M=e[37];let G;e[38]!==R?(G=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=G):G=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 q;e[44]!==G||e[45]!==Q?(q=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[G,Q]}),e[44]=G,e[45]=Q,e[46]=q):q=e[46];let V;e[47]!==M||e[48]!==q?(V=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[M,q]}),e[47]=M,e[48]=q,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==v||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==J||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==H||e[61]!==L||e[62]!==T||e[63]!==ue||e[64]!==ve||e[65]!==d||e[66]!==B||e[67]!==g||e[68]!==C||e[69]!==ce||e[70]!==be||e[71]!==I||e[72]!==n?(W=!d||!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(xt,{rawSeo:J,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:d.seoTypeOptions,formResetKey:N,siteDefaultSeo:I,onPersistRaw:O=>{C(O),L(O)},onInnerChange:O=>{g(O),T(O)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:v})]}):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(Tt,{seo:ue,url:ve,path:H})})})]}),e[50]=A,e[51]=v,e[52]=xe,e[53]=he,e[54]=me,e[55]=J,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=H,e[61]=L,e[62]=T,e[63]=ue,e[64]=ve,e[65]=d,e[66]=B,e[67]=g,e[68]=C,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 Ft(a){return a+1}function Kt(a){return a+1}function Dt(a,e){try{return new URL(a,e).href}catch{return e}}function $t(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const f={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(f[r]=l));return f}const qt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Pt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{xt as P,gt as a,yt as b,qt as s,De as u,vt as w};
@@ -1 +1 @@
1
- import{c as p,m as d,j as f,fN as m}from"./index-C0YexCRj.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,fN as m}from"./index-ucJDxPyE.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-ucJDxPyE.js";import{V as a}from"./index-B6xZxtVu.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,f7 as S,ek as $,aQ as w,f8 as C,el as z,f9 as k,b2 as R,em as B}from"./index-C0YexCRj.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 D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function E(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(B,{"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 r=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(E,{}),e[7]=u):u=e[7];const b=r==="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=r==="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=(r==="left"||r==="right")&&(v==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=r==="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=r==="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 d;e[8]!==s||e[9]!==b||e[10]!==g||e[11]!==j||e[12]!==N||e[13]!==y?(d=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]=d):d=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(k,{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]!==d||e[20]!==c?(h=i.jsxs(D,{children:[u,i.jsxs(w,{"data-slot":"sheet-content",className:d,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=d,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 H(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 Q(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{H as S,T as a,P as b,_ as c,Q as d};
1
+ import{c as n,m,j as i,f7 as S,ek as $,aQ as w,f8 as C,el as z,f9 as k,b2 as R,em as B}from"./index-ucJDxPyE.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 D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function E(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(B,{"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 r=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(E,{}),e[7]=u):u=e[7];const b=r==="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=r==="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=(r==="left"||r==="right")&&(v==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=r==="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=r==="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 d;e[8]!==s||e[9]!==b||e[10]!==g||e[11]!==j||e[12]!==N||e[13]!==y?(d=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]=d):d=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(k,{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]!==d||e[20]!==c?(h=i.jsxs(D,{children:[u,i.jsxs(w,{"data-slot":"sheet-content",className:d,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=d,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 H(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 Q(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{H as S,T as a,P as b,_ as c,Q as d};
@@ -1 +1 @@
1
- import{c as D,b as J,e as Je,j as s,B as z,t as qe,o as ot,cV as ae,ag as kt,a as Me,M as Yt,V as Nt,K as Ve,cW as _t,cX as Pt,at as Ge,m as mt,b9 as Qt,C as ft,r as G,ae as Xt,af as ee,cY as Zt,w as At,x as It,v as Ct,D as Et,d as Ot,a5 as dt,T as $t,i as Be,E as rt,aS as Lt,cZ as en,aY as tn,b3 as ht,J as nn,c_ as sn,aT as on,y as an,c$ as rn,d0 as ln,d1 as cn,d2 as dn,d3 as un,a6 as mn,u as fn,a7 as hn,d4 as gn,d5 as pn,l as Dt,d6 as gt,d7 as yn,O as bn,a_ as pt,d8 as xn,a0 as Sn}from"./index-C0YexCRj.js";import{t as Rt}from"./Globe04-CbE4fQfn.js";import{i as wn,s as Z}from"./UserSquare-6Sdby0FR.js";import{u as vn}from"./use-deployment-admin-C05Wl5hm.js";import{a as jn}from"./admin-fetch-BhTJlAsX.js";import{aw as Tn,S as kn,F as at,a7 as Nn,H as _n,ax as Pn,n as yt,h as An,ay as In,m as Cn,az as En,aA as On}from"./agent-icon-CTjv6Gf3.js";import{s as $n}from"./XClose-DeFo1VOD.js";import{u as Ln,a as Dn}from"./use-project-scope-DwEcCTYT.js";import{u as zt,a as Rn,A as zn}from"./autosend-FOyswNSR.js";import{i as se}from"./CheckCircle-CO-Sp-gI.js";import{i as bt}from"./Monitor01-DPIeBRgo.js";import{i as Fe}from"./Zap-DalPfKev.js";import{s as xt}from"./Plus-CZbPbPr7.js";import{a as Fn}from"./Tool01-BhHpHR3H.js";import{b as ne,e as Ke,d as qn,a as Mn,c as Bn,C as Kn}from"./command-CsBJ3GOI.js";import{I as Hn}from"./integration-icon-D6ksbVbr.js";import{P as Un}from"./project-icon-CmV5zxWN.js";import{a as Jn}from"./use-navigate-to-agent-B9-xP8hn.js";import{a as Gn,m as Vn}from"./use-mcp-client-DBEWWTcM.js";import{u as Wn,a as Yn,n as Qn}from"./new-project-dialog-C0bl_2Ba.js";import{S as Xn,u as Zn}from"./thread-intent-BGQF0i18.js";import{R as es}from"./required-auth-layout-CQCCkUAY.js";import{u as ts,a as ns,b as ss,c as os}from"./thread-route-D3Npgdwy.js";import{u as is}from"./use-org-sso-DcHAsgmH.js";function as(t){const e=D.c(49),{orgName:n,orgSlug:a,orgLogo:o,domain:r}=t,i=J();let c;e[0]!==a||e[1]!==i?(c=async()=>{const _=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),I=await _.json();if(!_.ok||!I.success)throw new Error(I.error??i("common.autoDomainJoinScreen.joinError"));return I},e[0]=a,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==a?(m=_=>{window.location.href=`/${_.slug??a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==i?(f=_=>{qe.error(_ instanceof Error?_.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y),p=rs;let l;e[11]!==o||e[12]!==n?(l=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=n,e[13]=l):l=e[13];let b;e[14]!==n||e[15]!==i?(b=i("common.autoDomainJoinScreen.joinPrompt",{orgName:n}),e[14]=n,e[15]=i,e[16]=b):b=e[16];let u;e[17]!==b?(u=s.jsx("h3",{className:"text-lg font-medium",children:b}),e[17]=b,e[18]=u):u=e[18];let g;e[19]!==r||e[20]!==i?(g=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=g):g=e[21];let h;e[22]!==g?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=h):h=e[23];let x;e[24]!==u||e[25]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[u,h]}),e[24]=u,e[25]=h,e[26]=x):x=e[26];let S;e[27]!==d?(S=()=>d.mutate(),e[27]=d,e[28]=S):S=e[28];let v;e[29]!==d.isPending||e[30]!==n||e[31]!==i?(v=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:n}),e[29]=d.isPending,e[30]=n,e[31]=i,e[32]=v):v=e[32];let w;e[33]!==d.isPending||e[34]!==S||e[35]!==v?(w=s.jsx(z,{onClick:S,disabled:d.isPending,children:v}),e[33]=d.isPending,e[34]=S,e[35]=v,e[36]=w):w=e[36];const k=d.isPending;let j;e[37]!==i?(j=i("common.goHome"),e[37]=i,e[38]=j):j=e[38];let T;e[39]!==d.isPending||e[40]!==j?(T=s.jsx(z,{variant:"ghost",onClick:p,disabled:k,children:j}),e[39]=d.isPending,e[40]=j,e[41]=T):T=e[41];let P;e[42]!==w||e[43]!==T?(P=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,T]}),e[42]=w,e[43]=T,e[44]=P):P=e[44];let N;return e[45]!==x||e[46]!==P||e[47]!==l?(N=s.jsxs(ae,{children:[l,x,P]}),e[45]=x,e[46]=P,e[47]=l,e[48]=N):N=e[48],N}function rs(){window.location.href="/"}function St(t){const e=D.c(26),{orgSlug:n,orgId:a,orgName:o,reason:r}=t,i=J(),{isAdmin:c}=vn(),m=ls,f=r==="not-found",y=f?wn:kt;let d;e[0]!==f||e[1]!==i?(d=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=d):d=e[2];const p=d;let l;e[3]!==f||e[4]!==o||e[5]!==n||e[6]!==i?(l=f?s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",s.jsx("strong",{children:n}),"."]}):s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",s.jsx("strong",{children:o??n}),".",s.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=o,e[5]=n,e[6]=i,e[7]=l):l=e[7];const b=l;let u;e[8]!==y?(u=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(y,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=y,e[9]=u):u=e[9];let g;e[10]!==p?(g=s.jsx("h3",{className:"text-lg font-medium",children:p}),e[10]=p,e[11]=g):g=e[11];let h;e[12]!==b?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=h):h=e[13];let x;e[14]!==g||e[15]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[g,h]}),e[14]=g,e[15]=h,e[16]=x):x=e[16];let S;e[17]!==c||e[18]!==a||e[19]!==n||e[20]!==i?(S=c&&a?s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[s.jsx(cs,{orgId:a,orgSlug:n}),s.jsx(z,{variant:"ghost",onClick:m,children:i("common.goHome")})]}):s.jsx(z,{onClick:m,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=n,e[20]=i,e[21]=S):S=e[21];let v;return e[22]!==u||e[23]!==x||e[24]!==S?(v=s.jsxs(ae,{children:[u,x,S]}),e[22]=u,e[23]=x,e[24]=S,e[25]=v):v=e[25],v}function ls(){window.location.href="/"}function cs(t){const e=D.c(20),{orgId:n,orgSlug:a}=t,o=J(),{data:r}=Me.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==n?(c=()=>jn(`/api/_admin/orgs/${n}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=n,e[2]=c):c=e[2];let m;e[3]!==a?(m=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==o?(f=g=>{qe.error(g instanceof Error?g.message:o("common.noAccessScreen.adminJoinFailed"))},e[5]=o,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y);let p;e[11]!==d?(p=()=>d.mutate(),e[11]=d,e[12]=p):p=e[12];const l=!i||d.isPending;let b;e[13]!==d.isPending||e[14]!==o?(b=d.isPending?o("common.noAccessScreen.adminJoining"):o("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=o,e[15]=b):b=e[15];let u;return e[16]!==p||e[17]!==l||e[18]!==b?(u=s.jsx(z,{onClick:p,disabled:l,children:b}),e[16]=p,e[17]=l,e[18]=b,e[19]=u):u=e[19],u}function ds(t){const e=D.c(59),{invitationId:n,orgName:a,orgSlug:o,orgLogo:r}=t,i=J();let c;e[0]!==n?(c=async()=>{const A=await Me.organization.acceptInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[0]=n,e[1]=c):c=e[1];let m;e[2]!==o?(m=()=>{Yt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let f;e[4]!==i?(f=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let y;e[6]!==c||e[7]!==m||e[8]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[6]=c,e[7]=m,e[8]=f,e[9]=y):y=e[9];const d=Je(y);let p;e[10]!==n?(p=async()=>{const A=await Me.organization.rejectInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[10]=n,e[11]=p):p=e[11];let l,b;e[12]!==i?(l=()=>{qe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},b=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=b):(l=e[13],b=e[14]);let u;e[15]!==p||e[16]!==l||e[17]!==b?(u={mutationFn:p,onSuccess:l,onError:b},e[15]=p,e[16]=l,e[17]=b,e[18]=u):u=e[18];const g=Je(u),h=d.isPending||g.isPending;let x;e[19]!==r||e[20]!==a?(x=r?s.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Tn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=x):x=e[21];let S;e[22]!==a||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=S):S=e[24];let v;e[25]!==S?(v=s.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,e[26]=v):v=e[26];let w;e[27]!==i?(w=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=w):w=e[28];let k;e[29]!==w?(k=s.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=k):k=e[30];let j;e[31]!==v||e[32]!==k?(j=s.jsxs("div",{className:"space-y-2",children:[v,k]}),e[31]=v,e[32]=k,e[33]=j):j=e[33];let T;e[34]!==d?(T=()=>d.mutate(),e[34]=d,e[35]=T):T=e[35];let P;e[36]!==d.isPending||e[37]!==i?(P=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=P):P=e[38];let N;e[39]!==h||e[40]!==T||e[41]!==P?(N=s.jsx(z,{onClick:T,disabled:h,children:P}),e[39]=h,e[40]=T,e[41]=P,e[42]=N):N=e[42];let _;e[43]!==g?(_=()=>g.mutate(),e[43]=g,e[44]=_):_=e[44];let I;e[45]!==g.isPending||e[46]!==i?(I=g.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=i,e[47]=I):I=e[47];let O;e[48]!==h||e[49]!==_||e[50]!==I?(O=s.jsx(z,{variant:"ghost",onClick:_,disabled:h,children:I}),e[48]=h,e[49]=_,e[50]=I,e[51]=O):O=e[51];let E;e[52]!==N||e[53]!==O?(E=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,O]}),e[52]=N,e[53]=O,e[54]=E):E=e[54];let R;return e[55]!==j||e[56]!==E||e[57]!==x?(R=s.jsxs(ae,{children:[x,j,E]}),e[55]=j,e[56]=E,e[57]=x,e[58]=R):R=e[58],R}function us(t){const e=D.c(23),{orgName:n,orgLogo:a}=t,o=J();let r;e[0]!==a||e[1]!==n?(r=a?s.jsx(ot,{url:a,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let c;e[5]!==i?(c=s.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==n||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:n}),e[7]=n,e[8]=o,e[9]=m):m=e[9];let f;e[10]!==m?(f=s.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=f):f=e[11];let y;e[12]!==c||e[13]!==f?(y=s.jsxs("div",{className:"space-y-2",children:[c,f]}),e[12]=c,e[13]=f,e[14]=y):y=e[14];let d;e[15]!==o?(d=o("common.goHome"),e[15]=o,e[16]=d):d=e[16];let p;e[17]!==d?(p=s.jsx(z,{variant:"ghost",onClick:ms,children:d}),e[17]=d,e[18]=p):p=e[18];let l;return e[19]!==r||e[20]!==y||e[21]!==p?(l=s.jsxs(ae,{children:[r,y,p]}),e[19]=r,e[20]=y,e[21]=p,e[22]=l):l=e[22],l}function ms(){window.location.href="/"}function fs(t){const e=D.c(45),{orgName:n,orgSlug:a,orgLogo:o,domain:r}=t,i=J();let c;e[0]!==a?(c=async()=>{const N=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),_=await N.json();if(!N.ok||!_.success)throw new Error(_.error??"Failed to request access");return _},e[0]=a,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=gs,e[2]=m):m=e[2];let f;e[3]!==i?(f=N=>{qe.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let y;e[5]!==c||e[6]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[5]=c,e[6]=f,e[7]=y):y=e[7];const d=Je(y);let p;e[8]!==o||e[9]!==n?(p=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=n,e[10]=p):p=e[10];let l;e[11]!==n||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:n}),e[11]=n,e[12]=i,e[13]=l):l=e[13];let b;e[14]!==l?(b=s.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=b):b=e[15];let u;e[16]!==r||e[17]!==i?(u=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=u):u=e[18];let g;e[19]!==u?(g=s.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,e[20]=g):g=e[20];let h;e[21]!==b||e[22]!==g?(h=s.jsxs("div",{className:"space-y-2",children:[b,g]}),e[21]=b,e[22]=g,e[23]=h):h=e[23];let x;e[24]!==d?(x=()=>d.mutate(),e[24]=d,e[25]=x):x=e[25];let S;e[26]!==d.isPending||e[27]!==i?(S=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=S):S=e[28];let v;e[29]!==d.isPending||e[30]!==x||e[31]!==S?(v=s.jsx(z,{onClick:x,disabled:d.isPending,children:S}),e[29]=d.isPending,e[30]=x,e[31]=S,e[32]=v):v=e[32];const w=d.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let j;e[35]!==d.isPending||e[36]!==k?(j=s.jsx(z,{variant:"ghost",onClick:hs,disabled:w,children:k}),e[35]=d.isPending,e[36]=k,e[37]=j):j=e[37];let T;e[38]!==v||e[39]!==j?(T=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=T):T=e[40];let P;return e[41]!==h||e[42]!==T||e[43]!==p?(P=s.jsxs(ae,{children:[p,h,T]}),e[41]=h,e[42]=T,e[43]=p,e[44]=P):P=e[44],P}function hs(){window.location.href="/"}function gs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ps(t){const e=D.c(7);let n;e[0]!==t?(n=Ve.orgAccessStatus(t),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let o;return e[4]!==n||e[5]!==a?(o={queryKey:n,queryFn:a,refetchOnWindowFocus:!1},e[4]=n,e[5]=a,e[6]=o):o=e[6],Nt(o)}function ys({orgSlug:t}){const{data:e}=ps(t);if(e.status!=="member"){const n=_t()?.org===t;n&&Pt();const a=localStorage.getItem(Ge.lastOrgSlug())===t;if(a&&localStorage.removeItem(Ge.lastOrgSlug()),(n||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?s.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?s.jsx(ds,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?s.jsx(as,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?s.jsx(fs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?s.jsx(us,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):s.jsx(St,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Ft(t){const e=D.c(42),{ariaLabel:n,dismissLabel:a,eyebrow:o,title:r,description:i,icon:c,children:m,footerLeading:f,actions:y,onDismiss:d,tone:p}=t,l=p===void 0?"neutral":p,b=f||y;let u;e[0]!==l?(u=l==="system"&&s.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=u):u=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx($n,{size:14}),e[2]=g):g=e[2];let h;e[3]!==a||e[4]!==d?(h=s.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:g}),e[3]=a,e[4]=d,e[5]=h):h=e[5];const x=c&&"flex items-start gap-3",S=m&&"pb-3";let v;e[6]!==x||e[7]!==S?(v=mt("p-4 pr-11",x,S),e[6]=x,e[7]=S,e[8]=v):v=e[8];let w;e[9]!==c?(w=c&&s.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=w):w=e[10];let k;e[11]!==o?(k=o&&s.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=k):k=e[12];let j;e[13]!==r?(j=s.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=j):j=e[14];let T;e[15]!==i?(T=i&&s.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=T):T=e[16];let P;e[17]!==j||e[18]!==T||e[19]!==k?(P=s.jsxs("div",{children:[k,j,T]}),e[17]=j,e[18]=T,e[19]=k,e[20]=P):P=e[20];let N;e[21]!==m?(N=m&&s.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let _;e[23]!==P||e[24]!==N?(_=s.jsxs("div",{className:"min-w-0 flex-1",children:[P,N]}),e[23]=P,e[24]=N,e[25]=_):_=e[25];let I;e[26]!==_||e[27]!==v||e[28]!==w?(I=s.jsxs("div",{className:v,children:[w,_]}),e[26]=_,e[27]=v,e[28]=w,e[29]=I):I=e[29];let O;e[30]!==y||e[31]!==f||e[32]!==b||e[33]!==l?(O=b&&s.jsxs("div",{className:mt("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[s.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),s.jsx("div",{className:"flex shrink-0 items-center gap-2",children:y})]}),e[30]=y,e[31]=f,e[32]=b,e[33]=l,e[34]=O):O=e[34];let E;return e[35]!==n||e[36]!==I||e[37]!==O||e[38]!==u||e[39]!==h||e[40]!==l?(E=s.jsxs("div",{role:"dialog","aria-label":n,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[u,h,I,O]}),e[35]=n,e[36]=I,e[37]=O,e[38]=u,e[39]=h,e[40]=l,e[41]=E):E=e[41],E}const bs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function qt(t){return`[data-tour="${bs[t]}"]`}const xs=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function Ss(t){return xs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ws(t,e){return Ss(e).map(n=>({element:qt(n.anchor),popover:{title:t(n.titleKey),description:t(n.descKey),side:n.side,align:"center"}}))}const vs=qt("switcher"),js=30;function Mt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ts(t,e){return ws(t,e).filter(n=>typeof n.element=="string"&&Mt(n.element))}function ks(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(n,{driver:a})=>{if(n.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>a.destroy()),n.footerButtons.insertBefore(o,n.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function Ns(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function _s(t,e){if(He)return;He=!0;let n=0;const a=()=>{if(!Mt(vs)&&n++<js){requestAnimationFrame(a);return}const o=Ts(t,e);if(o.length===0){He=!1;return}Ns().then(r=>{r(ks(t,o)).drive()}).catch(()=>{He=!1})};a()}function Ps(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return Ps(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function Bt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ri(t){return t.reportsOnly&&!t.onReportAgent&&Bt(t.tabId)}const Kt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:bt,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:at,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Nn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:ft,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:Z,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:bt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:Z,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:se,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:Fe,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:Z,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:se,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:Fe,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:se,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:Z,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:Fe,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:Z,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:se,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:Fe,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:Z,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:se,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:Fe,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:Z,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:at,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:se,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ft,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Fe,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:se,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:Z,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:at,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:Z,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:_n,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],st="studio.release-feed.v1",lt=new Set;let oe="",ie={},ct=!1;function As(){if(ct)return oe||"{}";try{return localStorage.getItem(st)??"{}"}catch{return oe||"{}"}}function Ht(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=As();return t!==oe&&(oe=t,ie=Ht(t)),ie}function Is(t){lt.add(t);const e=n=>{if(!(n.key!==st&&n.key!==null)){try{const a=localStorage.getItem(st)??"{}",r={...Ht(a),...ie};ie=r,oe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{lt.delete(t),window.removeEventListener("storage",e)}}function Cs(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(st,oe),ct=!1}catch{ct=!0}lt.forEach(e=>e())}function Es(){const t=D.c(7),e=G.useSyncExternalStore(Is,wt,wt);let n;t[0]!==e?(n=m=>!!e[m],t[0]=e,t[1]=n):n=t[1];const a=n,o=Os;let r;t[2]!==e?(r=Kt.reduce((m,f)=>e[f.id]?m:m+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let c;return t[4]!==a||t[5]!==i?(c={isSeen:a,markSeen:o,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function Os(t){ie[t]||Cs({...ie,[t]:{seenAt:new Date().toISOString()}})}const vt=new Map;function Ut(t){let e=vt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},vt.set(t,e)),e}function $s(t,e){const n=Ut(t);return n.subscribers.add(e),n.intervalId===null&&(n.intervalId=setInterval(()=>{n.now=Date.now();for(const a of n.subscribers)a()},t)),()=>{n.subscribers.delete(e),n.subscribers.size===0&&n.intervalId!==null&&(clearInterval(n.intervalId),n.intervalId=null)}}function Ls(t){const e=D.c(4),n=t===void 0?6e4:t;let a;e[0]!==n?(a=()=>Ut(n).now,e[0]=n,e[1]=a):a=e[1];const o=a;let r;return e[2]!==n?(r=i=>$s(n,i),e[2]=n,e[3]=r):r=e[3],G.useSyncExternalStore(r,o,o)}const Ds=720*60*60*1e3,Rs=10080*60*1e3;function zs(t){const[e,n,a]=t.split("-").map(Number);return!e||!n||!a?new Date(t).getTime():new Date(e,n-1,a).getTime()}function Fs(t){const e=Kt[0];if(!e)return null;const n=zs(e.date),a=t-n;return a<0||a>Ds?null:e}function qs(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ms(t,e){const n=qs(t);return n===null?!1:e-n>=Rs}function Bs(){const t=D.c(46),e=J(),n=Ln(),a=Xt(),o=zt(),r=!!n,i=a===ee.home&&!n;let c;t[0]!==o||t[1]!==r?(c=r&&!!o&&Bt(o),t[0]=o,t[1]=r,t[2]=c):c=t[2];const m=c,{data:f}=Me.useSession(),{isSeen:y,markSeen:d}=Es(),p=Ls(6e4);let l,b,u;if(t[3]!==y||t[4]!==p||t[5]!==f?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{if(l=Fs(p),!l){u=null;break e}if(!Ms(f?.user?.createdAt,p)){u=null;break e}b=y(l.id)}t[3]=y,t[4]=p,t[5]=f?.user?.createdAt,t[6]=l,t[7]=b,t[8]=u}else l=t[6],b=t[7],u=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(b)return null;let g;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==m||t[14]!==e?(g=()=>{d(l.id),_s(e,{onOrgHome:i,inProject:r,onSiteEditor:m})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=m,t[14]=e,t[15]=g):g=t[15];const h=g;let x;t[16]!==e?(x=e("announcements.release.ariaLabel"),t[16]=e,t[17]=x):x=t[17];let S;t[18]!==e?(S=e("announcements.release.dismiss"),t[18]=e,t[19]=S):S=t[19];const v=l.eyebrow,w=l.title;let k;t[20]!==l.id||t[21]!==d?(k=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=k):k=t[22];let j;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(j=l.learnMoreHref?s.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>d(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=d,t[26]=e,t[27]=j):j=t[27];let T;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==h?(T=l.cta?"href"in l.cta?s.jsx(z,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:s.jsx("a",{href:l.cta.href,children:l.cta.label})}):s.jsx(z,{size:"sm",onClick:h,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=h,t[32]=T):T=t[32];let P;t[33]!==l.bullets?(P=l.bullets.map(Ks),t[33]=l.bullets,t[34]=P):P=t[34];let N;t[35]!==P?(N=s.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=N):N=t[36];let _;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==T||t[40]!==N||t[41]!==x||t[42]!==S||t[43]!==k||t[44]!==j?(_=s.jsx(Ft,{ariaLabel:x,dismissLabel:S,eyebrow:v,title:w,onDismiss:k,footerLeading:j,actions:T,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=T,t[40]=N,t[41]=x,t[42]=S,t[43]=k,t[44]=j,t[45]=_):_=t[45],_}function Ks(t,e){return s.jsxs("li",{className:"flex items-start gap-3",children:[s.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),s.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Hs(t){const e=D.c(11),{open:n,onOpenChange:a}=t,o=J();let r;e[0]!==o?(r=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=r):r=e[1];let i;e[2]!==r?(i=s.jsx(At,{children:s.jsx(It,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"flex flex-col gap-4",children:Zt.map(Us)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsxs(Ct,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let f;return e[7]!==a||e[8]!==n||e[9]!==m?(f=s.jsx(Et,{open:n,onOpenChange:a,children:m}),e[7]=a,e[8]=n,e[9]=m,e[10]=f):f=e[10],f}function Us(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Js)})]},t.label)}function Js(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Gs)})]},t.description)}function Gs(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const jt=8;function Vs(t){const{org:e}=dt(),n=Gn({connectionId:$t,orgId:e.id,orgSlug:e.slug}),{data:a}=Be({queryKey:Ve.globalSearch(e.id,t,jt),enabled:!!n&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!n)return[];try{return(await n.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Ws(t){const e=D.c(197),{open:n,onOpenChange:a}=t,o=J(),r=Ot(),{org:i}=dt(),{projects:c,hasProjects:m}=Dn(),{remember:f}=Jn(i.slug),[y,d]=G.useState(""),p=G.useDeferredValue(y),l=Vs(p);let b;e[0]!==a?(b=()=>{a(!1),d("")},e[0]=a,e[1]=b):b=e[1];const u=b;let g;e[2]!==u?(g=(q,K)=>{rt("command_palette_used",{kind:K}),q(),u()},e[2]=u,e[3]=g):g=e[3];const h=g;let x;e[4]!==r||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:q.slug}});return}if(q.type==="task"){r({to:ee.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const K=Lt(i.id).id;en(r,tn({org:i.slug,agentId:q.virtual_mcp_id??K,superAgentId:K}),{search:()=>({thread:q.id}),replace:!1})},e[4]=r,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let v;e[8]!==y?(v=[y],e[8]=y,e[9]=v):v=e[9];const w=v;let k,j,T,P,N,_,I,O,E,R,A,F,M;if(e[10]!==u||e[11]!==h||e[12]!==m||e[13]!==l||e[14]!==r||e[15]!==a||e[16]!==n||e[17]!==S||e[18]!==i.slug||e[19]!==c||e[20]!==f||e[21]!==w||e[22]!==o||e[23]!==y){const q=l.filter(Qs),K=l.filter(Ys);let Q;e[37]!==i.slug?(Q={org:i.slug},e[37]=i.slug,e[38]=Q):Q=e[38];const $=Q;let H;e[39]!==o?(H=o("sidebar.navDestinations.home"),e[39]=o,e[40]=H):H=e[40];let W;e[41]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(An,{"aria-hidden":"true"}),e[41]=W):W=e[41];let U;e[42]!==$||e[43]!==H?(U={key:"home",label:H,icon:W,to:ee.home,params:$},e[42]=$,e[43]=H,e[44]=U):U=e[44];let Y;e[45]!==o?(Y=o("sidebar.navDestinations.reports"),e[45]=o,e[46]=Y):Y=e[46];let X;e[47]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(In,{"aria-hidden":"true"}),e[47]=X):X=e[47];let L;e[48]!==$||e[49]!==Y?(L={key:"reports",label:Y,icon:X,to:ee.reports,params:$},e[48]=$,e[49]=Y,e[50]=L):L=e[50];let B;e[51]!==o?(B=o("sidebar.navDestinations.tasks"),e[51]=o,e[52]=B):B=e[52];let We;e[53]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsx(yt,{"aria-hidden":"true"}),e[53]=We):We=e[53];let re;e[54]!==i.slug?(re={org:i.slug,taskKey:void 0},e[54]=i.slug,e[55]=re):re=e[55];let le;e[56]!==B||e[57]!==re?(le={key:"tasks",label:B,icon:We,to:ee.tasks,params:re},e[56]=B,e[57]=re,e[58]=le):le=e[58];let ce;e[59]!==o?(ce=o("sidebar.navDestinations.library"),e[59]=o,e[60]=ce):ce=e[60];let Ye;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ye=s.jsx(Cn,{"aria-hidden":"true"}),e[61]=Ye):Ye=e[61];let de;e[62]!==$||e[63]!==ce?(de={key:"library",label:ce,icon:Ye,to:ee.library,params:$},e[62]=$,e[63]=ce,e[64]=de):de=e[64];let ue;e[65]!==o?(ue=o("sidebar.navDestinations.discover"),e[65]=o,e[66]=ue):ue=e[66];let Qe;e[67]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx(En,{"aria-hidden":"true"}),e[67]=Qe):Qe=e[67];let me;e[68]!==$||e[69]!==ue?(me={key:"discover",label:ue,icon:Qe,to:ee.discover,params:$},e[68]=$,e[69]=ue,e[70]=me):me=e[70];let Xe;e[71]!==U||e[72]!==L||e[73]!==le||e[74]!==de||e[75]!==me?(Xe=[U,L,le,de,me],e[71]=U,e[72]=L,e[73]=le,e[74]=de,e[75]=me,e[76]=Xe):Xe=e[76];const it=Xe;j=qn,P=n,e[77]!==u||e[78]!==a?(N=C=>C?a(!0):u(),e[77]=u,e[78]=a,e[79]=N):N=e[79],e[80]!==o?(_=o("commandPalette.title"),e[80]=o,e[81]=_):_=e[81],e[82]!==o?(I=o("commandPalette.description"),e[82]=o,e[83]=I):I=e[83];let fe;e[84]!==o?(fe=o("commandPalette.placeholder"),e[84]=o,e[85]=fe):fe=e[85];let he;e[86]!==o?(he=o("commandPalette.placeholder"),e[86]=o,e[87]=he):he=e[87],e[88]!==fe||e[89]!==he||e[90]!==y?(O=s.jsx(Mn,{placeholder:fe,"aria-label":he,value:y,onValueChange:d}),e[88]=fe,e[89]=he,e[90]=y,e[91]=O):O=e[91],k=Bn;let ge;e[92]!==o?(ge=o("commandPalette.empty"),e[92]=o,e[93]=ge):ge=e[93],e[94]!==ge?(E=s.jsx(Kn,{children:ge}),e[94]=ge,e[95]=E):E=e[95];let pe;e[96]!==o?(pe=o("commandPalette.goTo"),e[96]=o,e[97]=pe):pe=e[97];let ye;e[98]!==it||e[99]!==h||e[100]!==r?(ye=it.map(C=>s.jsxs(ne,{onSelect:()=>h(()=>r({to:C.to,params:C.params}),"destination"),children:[C.icon,s.jsx("span",{children:C.label})]},C.key)),e[98]=it,e[99]=h,e[100]=r,e[101]=ye):ye=e[101],e[102]!==pe||e[103]!==ye?(R=s.jsx(Ke,{heading:pe,children:ye}),e[102]=pe,e[103]=ye,e[104]=R):R=e[104],e[105]!==h||e[106]!==m||e[107]!==r||e[108]!==i.slug||e[109]!==c||e[110]!==f||e[111]!==o?(A=m&&s.jsx(Ke,{heading:o("commandPalette.projects"),children:c.map(C=>s.jsxs(ne,{value:`project ${C.title}`,onSelect:()=>h(()=>{f(C.id),r({to:ee.projects,params:{org:i.slug,agentId:C.id}})},"project"),children:[s.jsx(Un,{icon:C.icon,name:C.title,"aria-hidden":"true"}),s.jsx("span",{children:C.title})]},C.id))}),e[105]=h,e[106]=m,e[107]=r,e[108]=i.slug,e[109]=c,e[110]=f,e[111]=o,e[112]=A):A=e[112];let be;e[113]!==o?(be=o("commandPalette.actions"),e[113]=o,e[114]=be):be=e[114];let xe;e[115]!==o?(xe=o("commandPalette.newProject"),e[115]=o,e[116]=xe):xe=e[116];let Se;e[117]!==h||e[118]!==r||e[119]!==$?(Se=()=>h(()=>r({to:ee.home,params:$}),"new_project"),e[117]=h,e[118]=r,e[119]=$,e[120]=Se):Se=e[120];let Ze;e[121]===Symbol.for("react.memo_cache_sentinel")?(Ze=s.jsx(xt,{"aria-hidden":"true"}),e[121]=Ze):Ze=e[121];let we;e[122]!==o?(we=o("commandPalette.newProject"),e[122]=o,e[123]=we):we=e[123];let ve;e[124]!==we?(ve=s.jsx("span",{children:we}),e[124]=we,e[125]=ve):ve=e[125];let je;e[126]!==xe||e[127]!==Se||e[128]!==ve?(je=s.jsxs(ne,{value:xe,onSelect:Se,children:[Ze,ve]}),e[126]=xe,e[127]=Se,e[128]=ve,e[129]=je):je=e[129];let Te;e[130]!==o?(Te=o("commandPalette.inviteTeammate"),e[130]=o,e[131]=Te):Te=e[131];let ke;e[132]!==h||e[133]!==r||e[134]!==$?(ke=()=>h(()=>r({to:"/$org/settings/members",params:$}),"invite"),e[132]=h,e[133]=r,e[134]=$,e[135]=ke):ke=e[135];let et;e[136]===Symbol.for("react.memo_cache_sentinel")?(et=s.jsx(On,{"aria-hidden":"true"}),e[136]=et):et=e[136];let Ne;e[137]!==o?(Ne=o("commandPalette.inviteTeammate"),e[137]=o,e[138]=Ne):Ne=e[138];let _e;e[139]!==Ne?(_e=s.jsx("span",{children:Ne}),e[139]=Ne,e[140]=_e):_e=e[140];let Pe;e[141]!==Te||e[142]!==ke||e[143]!==_e?(Pe=s.jsxs(ne,{value:Te,onSelect:ke,children:[et,_e]}),e[141]=Te,e[142]=ke,e[143]=_e,e[144]=Pe):Pe=e[144];let Ae;e[145]!==o?(Ae=o("commandPalette.addConnection"),e[145]=o,e[146]=Ae):Ae=e[146];let Ie;e[147]!==h||e[148]!==r||e[149]!==$?(Ie=()=>h(()=>r({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[147]=h,e[148]=r,e[149]=$,e[150]=Ie):Ie=e[150];let tt;e[151]===Symbol.for("react.memo_cache_sentinel")?(tt=s.jsx(xt,{"aria-hidden":"true"}),e[151]=tt):tt=e[151];let Ce;e[152]!==o?(Ce=o("commandPalette.addConnection"),e[152]=o,e[153]=Ce):Ce=e[153];let Ee;e[154]!==Ce?(Ee=s.jsx("span",{children:Ce}),e[154]=Ce,e[155]=Ee):Ee=e[155];let Oe;e[156]!==Ae||e[157]!==Ie||e[158]!==Ee?(Oe=s.jsxs(ne,{value:Ae,onSelect:Ie,children:[tt,Ee]}),e[156]=Ae,e[157]=Ie,e[158]=Ee,e[159]=Oe):Oe=e[159];let $e;e[160]!==o?($e=o("commandPalette.settings"),e[160]=o,e[161]=$e):$e=e[161];let Le;e[162]!==h||e[163]!==r||e[164]!==$?(Le=()=>h(()=>r({to:"/$org/settings/general",params:$}),"settings"),e[162]=h,e[163]=r,e[164]=$,e[165]=Le):Le=e[165];let nt;e[166]===Symbol.for("react.memo_cache_sentinel")?(nt=s.jsx(Fn,{"aria-hidden":"true"}),e[166]=nt):nt=e[166];let De;e[167]!==o?(De=o("commandPalette.settings"),e[167]=o,e[168]=De):De=e[168];let Re;e[169]!==De?(Re=s.jsx("span",{children:De}),e[169]=De,e[170]=Re):Re=e[170];let ze;e[171]!==$e||e[172]!==Le||e[173]!==Re?(ze=s.jsxs(ne,{value:$e,onSelect:Le,children:[nt,Re]}),e[171]=$e,e[172]=Le,e[173]=Re,e[174]=ze):ze=e[174],e[175]!==be||e[176]!==je||e[177]!==Pe||e[178]!==Oe||e[179]!==ze?(F=s.jsxs(Ke,{heading:be,children:[je,Pe,Oe,ze]}),e[175]=be,e[176]=je,e[177]=Pe,e[178]=Oe,e[179]=ze,e[180]=F):F=e[180],M=q.length>0&&s.jsx(Ke,{heading:o("commandPalette.connections"),children:q.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:w,onSelect:()=>h(()=>S(C),"connection"),children:[s.jsx(Hn,{icon:C.icon,name:C.title,size:"2xs","aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title})]},`connection:${C.id}`))}),T=K.length>0&&s.jsx(Ke,{heading:o("commandPalette.results"),children:K.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:w,onSelect:()=>h(()=>S(C),C.type),children:[C.type==="thread"?s.jsx(Pn,{"aria-hidden":"true"}):s.jsx(yt,{"aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title}),C.type==="task"&&C.key&&s.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:C.key})]},`${C.type}:${C.id}`))}),e[10]=u,e[11]=h,e[12]=m,e[13]=l,e[14]=r,e[15]=a,e[16]=n,e[17]=S,e[18]=i.slug,e[19]=c,e[20]=f,e[21]=w,e[22]=o,e[23]=y,e[24]=k,e[25]=j,e[26]=T,e[27]=P,e[28]=N,e[29]=_,e[30]=I,e[31]=O,e[32]=E,e[33]=R,e[34]=A,e[35]=F,e[36]=M}else k=e[24],j=e[25],T=e[26],P=e[27],N=e[28],_=e[29],I=e[30],O=e[31],E=e[32],R=e[33],A=e[34],F=e[35],M=e[36];let V;e[181]!==k||e[182]!==T||e[183]!==E||e[184]!==R||e[185]!==A||e[186]!==F||e[187]!==M?(V=s.jsxs(k,{children:[E,R,A,F,M,T]}),e[181]=k,e[182]=T,e[183]=E,e[184]=R,e[185]=A,e[186]=F,e[187]=M,e[188]=V):V=e[188];let te;return e[189]!==j||e[190]!==P||e[191]!==N||e[192]!==_||e[193]!==I||e[194]!==O||e[195]!==V?(te=s.jsxs(j,{open:P,onOpenChange:N,title:_,description:I,children:[O,V]}),e[189]=j,e[190]=P,e[191]=N,e[192]=_,e[193]=I,e[194]=O,e[195]=V,e[196]=te):te=e[196],te}function Ys(t){return t.type!=="connection"}function Qs(t){return t.type==="connection"}const Ue=new Xn(!1);function Xs(){Ue.set(!0)}function Zs(){Ue.set(!1)}function eo(){const t=D.c(2),e=G.useSyncExternalStore(Ue.subscribe,Ue.get);let n;return t[0]!==e?(n=[e,Ue.set],t[0]=e,t[1]=n):n=t[1],n}const to=300*1e3,no=2;function so(t,e,n){return!e||e===n?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function oo(t,e){return t.count>=no&&t.version!==null&&t.version!==e}function io(){const t=D.c(31),e=J();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:Ve.appVersionCheck(),queryFn:ro,refetchInterval:to,refetchIntervalInBackground:!0,staleTime:0},t[0]=n):n=t[0];const{data:a,dataUpdatedAt:o}=Be(n),[r,i]=G.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,f]=G.useState(c);o!==r&&(i(o),f(T=>so(T,a,"4.566.0")));const[y,d]=G.useState(null);if(!oo(m,y))return null;let p;t[2]!==e?(p=e("announcements.version.ariaLabel"),t[2]=e,t[3]=p):p=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let b;t[6]!==e?(b=e("announcements.version.eyebrow"),t[6]=e,t[7]=b):b=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=t[9];let g;t[10]!==e?(g=e("announcements.version.description"),t[10]=e,t[11]=g):g=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ht,{size:16}),t[12]=h):h=t[12];let x;t[13]!==m.version?(x=()=>d(m.version),t[13]=m.version,t[14]=x):x=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.566.0"}),t[15]=e,t[16]=S):S=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ht,{size:14}),t[19]=w):w=t[19];let k;t[20]!==v?(k=s.jsxs(z,{size:"sm",onClick:ao,children:[v,w]}),t[20]=v,t[21]=k):k=t[21];let j;return t[22]!==k||t[23]!==p||t[24]!==l||t[25]!==b||t[26]!==u||t[27]!==g||t[28]!==x||t[29]!==S?(j=s.jsx(Ft,{ariaLabel:p,dismissLabel:l,eyebrow:b,title:u,description:g,icon:h,tone:"system",onDismiss:x,footerLeading:S,actions:k}),t[22]=k,t[23]=p,t[24]=l,t[25]=b,t[26]=u,t[27]=g,t[28]=x,t[29]=S,t[30]=j):j=t[30],j}function ao(){return window.location.reload()}async function ro(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function lo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const co=Date.parse("2026-07-21T00:00:00Z"),Tt=t=>lo(Ge.ptBrAnnouncementSeen(t));function uo(){const t=D.c(35),e=J(),[n,a]=nn(),{data:o,isPending:r}=Me.useSession(),i=o?.user,c=i?.id,m=i?.createdAt,f=m!=null&&new Date(m).getTime()<co,y=sn()==="pt-BR",d=!r&&!!c&&f&&y&&n.language==="en"&&!Tt(c).has(),[p,l]=G.useState(!1),[b,u]=G.useState(!1);!p&&!r&&(l(!0),d&&c&&(Tt(c).mark(),a(fo),u(!0),rt("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=V=>{rt("pt_br_auto_switch_closed",{action:V}),u(!1)},t[0]=g):g=t[0];const h=g;let x;t[1]!==a?(x=()=>{a(mo),h("switch-back")},t[1]=a,t[2]=x):x=t[2];const S=x;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=V=>!V&&h("dismiss"),t[3]=v):v=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let j;t[7]!==k?(j=s.jsx(It,{children:k}),t[7]=k,t[8]=j):j=t[8];let T;t[9]!==e?(T=e("announcements.ptBr.description"),t[9]=e,t[10]=T):T=t[10];let P;t[11]!==T?(P=s.jsx(on,{children:T}),t[11]=T,t[12]=P):P=t[12];let N;t[13]!==j||t[14]!==P?(N=s.jsxs(At,{children:[j,P]}),t[13]=j,t[14]=P,t[15]=N):N=t[15];let _;t[16]!==e?(_=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=_):_=t[17];let I;t[18]!==S||t[19]!==_?(I=s.jsx(z,{variant:"outline",onClick:S,children:_}),t[18]=S,t[19]=_,t[20]=I):I=t[20];let O;t[21]===Symbol.for("react.memo_cache_sentinel")?(O=()=>h("ok"),t[21]=O):O=t[21];let E;t[22]!==e?(E=e("announcements.ptBr.ok"),t[22]=e,t[23]=E):E=t[23];let R;t[24]!==E?(R=s.jsx(z,{onClick:O,children:E}),t[24]=E,t[25]=R):R=t[25];let A;t[26]!==I||t[27]!==R?(A=s.jsxs(an,{children:[I,R]}),t[26]=I,t[27]=R,t[28]=A):A=t[28];let F;t[29]!==A||t[30]!==N?(F=s.jsxs(Ct,{className:"sm:max-w-md",children:[w,N,A]}),t[29]=A,t[30]=N,t[31]=F):F=t[31];let M;return t[32]!==b||t[33]!==F?(M=s.jsx(Et,{open:b,onOpenChange:v,children:F}),t[32]=b,t[33]=F,t[34]=M):M=t[34],M}function mo(t){return{...t,language:"en"}}function fo(t){return{...t,language:"pt-BR"}}function ho(t){const e=rn(t);return typeof e=="string"?e:void 0}function go(){return ho("experiment-pipeline-check"),null}function po(t){const e=D.c(1),{activeOrg:n}=t;if(!n)return null;ln(n.id,{name:n.name??void 0,slug:n.slug??void 0}),cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(go,{}),e[0]=a):a=e[0],a}function yo(t){const{prev:e,virtualMcpId:n,decopilotId:a,savedLayout:o,opts:r,autosendValue:i}=t,c={mainpanel:void 0};n?c.virtualmcpid=n:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,y=(n??m)!==m;let d,p;return r?.panel?p=r.panel:r?.newThread&&!y&&dn(e.tabId)?(p=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):o?(p=o.tab,o.sidepanel!==void 0&&(d=o.sidepanel),o.mainpanel!==void 0&&(c.mainpanel=o.mainpanel)):!y&&e.tabId&&!un(e.tabId)&&(p=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:p,search:c}}const Jt="studio:thread-layout:v4",bo=50;function Gt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function xo(t,e,n,a=bo){const o=t.filter(([r])=>r!==e);for(o.push([e,Gt(n)]);o.length>a;)o.shift();return o}function ut(){try{const t=sessionStorage.getItem(Jt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&n.length===2&&typeof n[0]=="string"):[]}catch{return[]}}function Vt(t){try{sessionStorage.setItem(Jt,JSON.stringify(t))}catch{}}function So(t,e){t&&Vt(xo(ut(),t,e))}function wo(t){if(!t)return null;const e=ut().find(([n])=>n===t);return e?Gt(e[1]):null}function li(t){if(!t)return;const e=ut(),n=e.filter(([a])=>a!==t);n.length!==e.length&&Vt(n)}function Wt(t){return{queryKey:Ve.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function ci(t){const e=D.c(10);let n;e[0]!==t?(n=Wt(t),e[0]=t,e[1]=n):n=e[1];const a=Be(n);let o;e[2]!==a.data?.prompts?(o=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=o):o=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==o||e[8]!==r?(i={isLoading:a.isLoading,prompts:o,tiles:r},e[6]=a.isLoading,e[7]=o,e[8]=r,e[9]=i):i=e[9],i}function vo(t){const e=D.c(31),{orgSlug:n,orgName:a,domain:o}=t,r=J();let i;e[0]!==n?(i=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=i):i=e[1];const c=i,m=jo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let y;e[3]!==r?(y=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=y):y=e[4];let d;e[5]!==y?(d=s.jsx("h3",{className:"text-lg font-medium",children:y}),e[5]=y,e[6]=d):d=e[6];let p;e[7]!==o||e[8]!==a||e[9]!==r?(p=a?s.jsxs(s.Fragment,{children:[s.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${r("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=a,e[9]=r,e[10]=p):p=e[10];let l;e[11]!==p?(l=s.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=l):l=e[12];let b;e[13]!==d||e[14]!==l?(b=s.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=b):b=e[15];let u;e[16]!==r?(u=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=u):u=e[17];let g;e[18]!==c||e[19]!==u?(g=s.jsx(z,{onClick:c,children:u}),e[18]=c,e[19]=u,e[20]=g):g=e[20];let h;e[21]!==r?(h=r("common.goBack"),e[21]=r,e[22]=h):h=e[22];let x;e[23]!==h?(x=s.jsx(z,{variant:"ghost",onClick:m,children:h}),e[23]=h,e[24]=x):x=e[24];let S;e[25]!==x||e[26]!==g?(S=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,x]}),e[25]=x,e[26]=g,e[27]=S):S=e[27];let v;return e[28]!==S||e[29]!==b?(v=s.jsxs(ae,{children:[f,b,S]}),e[28]=S,e[29]=b,e[30]=v):v=e[30],v}function jo(){window.location.href="/"}function To(t){const e=D.c(27),{notice:n,orgSlug:a}=t,o=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(mn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==n.title?(i=s.jsx("h3",{className:"text-lg font-medium",children:n.title}),e[1]=n.title,e[2]=i):i=e[2];let c;e[3]!==n.message?(c=s.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:n.message}),e[3]=n.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=s.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let f;e[8]!==n.ctaLabel||e[9]!==n.ctaUrl?(f=n.ctaUrl&&n.ctaLabel?s.jsx(z,{asChild:!0,children:s.jsx("a",{href:n.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:n.ctaLabel})}):null,e[8]=n.ctaLabel,e[9]=n.ctaUrl,e[10]=f):f=e[10];const y=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==o?(d=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=d):d=e[12];let p;e[13]!==y||e[14]!==d?(p=s.jsx(z,{variant:"outline",asChild:!0,children:s.jsx("a",{href:y,children:d})}),e[13]=y,e[14]=d,e[15]=p):p=e[15];let l;e[16]!==o?(l=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=l):l=e[17];let b;e[18]!==l?(b=s.jsx(z,{variant:"ghost",asChild:!0,children:s.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=b):b=e[19];let u;e[20]!==b||e[21]!==f||e[22]!==p?(u=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,p,b]}),e[20]=b,e[21]=f,e[22]=p,e[23]=u):u=e[23];let g;return e[24]!==u||e[25]!==m?(g=s.jsxs(ae,{children:[r,m,u]}),e[24]=u,e[25]=m,e[26]=g):g=e[26],g}function ko(t){const e=D.c(8);let n;e[0]!==t?(n=Ve.orgNotice(t??""),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const o=!!t;let r;return e[4]!==n||e[5]!==a||e[6]!==o?(r={queryKey:n,queryFn:a,enabled:o,staleTime:6e4},e[4]=n,e[5]=a,e[6]=o,e[7]=r):r=e[7],Be(r)}const No="/settings/infra-billing";function _o(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(No)}function Po(t){const e=D.c(7),{org:n,children:a}=t;let o;e[0]!==n.id||e[1]!==n.name?(o={id:n.id,organizationId:n.id,slug:"_org",name:n.name,ui:null},e[0]=n.id,e[1]=n.name,e[2]=o):o=e[2];const r=o;let i;return e[3]!==a||e[4]!==n||e[5]!==r?(i=s.jsx(Sn,{org:n,project:r,children:a}),e[3]=a,e[4]=n,e[5]=r,e[6]=i):i=e[6],i}function Ao(){const t=Ot(),e=Zn(),{org:n}=dt(),a=fn({strict:!1}),o=zt(),{openPanel:r,closePanel:i}=Rn(),c=ts(),m=ns(),f=ss(),y=os(),d=(u,g=!0)=>t({to:".",search:u,replace:g}),p=()=>d(u=>({...u,sidepanel:!0})),l=(u,g,h)=>{const x=!!m&&m===u;m&&!x&&So(m,{tab:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const S=x?null:wo(u),v=Lt(n.id).id,w=yo({prev:{virtualmcpid:c,tabId:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:g,decopilotId:v,savedLayout:S,opts:h,autosendValue:zn});return y(u,()=>w.search,{virtualMcpId:g,view:{tabId:w.tabId}})};return{openSidePanel:p,setTaskId:l,createNewTask:async(u,g,h)=>{const x=crypto.randomUUID(),S=u??f;try{await e?.create({id:x,virtual_mcp_id:S,...g?{branch:g}:{}})}catch{}l(x,S,{...h,newThread:!0})},openTab:r,closeTab:i}}const Io=new Set(["/$org/","/$org/home"]);function Co(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Eo},t[0]=e):e=t[0],Dt(e)}function Eo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&Io.has(e)}function Oo(){const t=D.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=hn(e)?.params.org,[o,r]=G.useState(!1),[i,c]=eo(),[m,f]=Wn(),y=gn(),d=Co(),p=a??"";let l;t[1]!==p?(l=Wt(p),t[1]=p,t[2]=l):l=t[2];const b=!!a&&d;let u;t[3]!==l||t[4]!==b?(u={...l,enabled:b},t[3]=l,t[4]=b,t[5]=u):u=t[5],Be(u);const{data:g}=Me.useSession(),h=g?.user?.id;let x,S;t[6]!==y?(x=()=>{const L=B=>{if(pt(B)&&B.code==="KeyK"){B.preventDefault(),Xs();return}if(B.key==="?"&&!xn(B.target)){B.preventDefault(),r(!0);return}pt(B)&&B.code==="BracketLeft"&&y.history.canGoBack()&&(B.preventDefault(),y.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},S=[y],t[6]=y,t[7]=x,t[8]=S):(x=t[7],S=t[8]),G.useEffect(x,S);let v;t[9]!==a||t[10]!==h?(v=pn(a,h),t[9]=a,t[10]=h,t[11]=v):v=t[11];const{data:w}=Nt(v),k=w?.id,j=w?.slug,{data:T}=is(k,j),P=!!T?.ssoRequired&&!T.authenticated,{data:N}=ko(j);let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_={select:$o},t[12]=_):_=t[12];const I=Dt(_),O=N?.severity==="block"&&!_o(I),E=k??"",R=j??"";let A;t[13]!==R||t[14]!==E?(A=Vn({connectionId:$t,orgId:E,orgSlug:R}),t[13]=R,t[14]=E,t[15]=A):A=t[15];const F=!!k&&!!j;let M;if(t[16]!==A||t[17]!==F?(M={...A,enabled:F},t[16]=A,t[17]=F,t[18]=M):M=t[18],Be(M),(!w||gt(w)||P||O)&&Zs(),!w){let L;return t[19]!==a?(L=s.jsx(ys,{orgSlug:a}),t[19]=a,t[20]=L):L=t[20],L}if(gt(w)){localStorage.getItem(Ge.lastOrgSlug())===a&&localStorage.removeItem(Ge.lastOrgSlug()),_t()?.org===a&&Pt();let L;return t[21]!==w.name?(L=s.jsx(yn,{orgName:w.name}),t[21]=w.name,t[22]=L):L=t[22],L}if(O&&N){let L;return t[23]!==w.slug||t[24]!==N?(L=s.jsx(To,{notice:N,orgSlug:w.slug}),t[23]=w.slug,t[24]=N,t[25]=L):L=t[25],L}if(P){let L;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==T.domain?(L=s.jsx(vo,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:T.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=T.domain,t[30]=L):L=t[30],L}const te=w.logo??null;let q;t[31]!==w||t[32]!==te?(q={...w,logo:te},t[31]=w,t[32]=te,t[33]=q):q=t[33];let K;t[34]!==w?(K=s.jsx(po,{activeOrg:w}),t[34]=w,t[35]=K):K=t[35];let Q;t[36]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(bn,{}),t[36]=Q):Q=t[36];let $;t[37]===Symbol.for("react.memo_cache_sentinel")?($=s.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[s.jsx(Bs,{}),s.jsx(io,{})]}),t[37]=$):$=t[37];let H;t[38]!==i||t[39]!==c?(H=i&&s.jsx(Ws,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=H):H=t[40];let W;t[41]!==m||t[42]!==f?(W=m&&s.jsx(Yn,{open:!0,onOpenChange:f,source:Qn()}),t[41]=m,t[42]=f,t[43]=W):W=t[43];let U;t[44]!==o?(U=s.jsx(Hs,{open:o,onOpenChange:r}),t[44]=o,t[45]=U):U=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(uo,{}),t[46]=Y):Y=t[46];let X;return t[47]!==q||t[48]!==K||t[49]!==H||t[50]!==W||t[51]!==U?(X=s.jsxs(Po,{org:q,children:[K,Q,$,H,W,U,Y]}),t[47]=q,t[48]=K,t[49]=H,t[50]=W,t[51]=U,t[52]=X):X=t[52],X}function $o(t){return t.location.pathname}function Lo(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(es,{children:s.jsx(Oo,{})}),t[0]=e):e=t[0],e}const di=Object.freeze(Object.defineProperty({__proto__:null,default:Lo,usePanelActions:Ao},Symbol.toStringTag,{value:"Module"}));export{bs as L,Ao as a,Ls as b,Ps as c,ci as d,di as e,li as f,Bt as i,ai as r,ri as s,ko as u};
1
+ import{c as D,b as J,e as Je,j as s,B as z,t as qe,o as ot,cV as ae,ag as kt,a as Me,M as Yt,V as Nt,K as Ve,cW as _t,cX as Pt,at as Ge,m as mt,b9 as Qt,C as ft,r as G,ae as Xt,af as ee,cY as Zt,w as At,x as It,v as Ct,D as Et,d as Ot,a5 as dt,T as $t,i as Be,E as rt,aS as Lt,cZ as en,aY as tn,b3 as ht,J as nn,c_ as sn,aT as on,y as an,c$ as rn,d0 as ln,d1 as cn,d2 as dn,d3 as un,a6 as mn,u as fn,a7 as hn,d4 as gn,d5 as pn,l as Dt,d6 as gt,d7 as yn,O as bn,a_ as pt,d8 as xn,a0 as Sn}from"./index-ucJDxPyE.js";import{t as Rt}from"./Globe04-Wakfx0G2.js";import{i as wn,s as Z}from"./UserSquare-DLTddIeU.js";import{u as vn}from"./use-deployment-admin-DbaoxO_S.js";import{a as jn}from"./admin-fetch-BhTJlAsX.js";import{aw as Tn,S as kn,F as at,a7 as Nn,H as _n,ax as Pn,n as yt,h as An,ay as In,m as Cn,az as En,aA as On}from"./agent-icon-DGjvzBU0.js";import{s as $n}from"./XClose-BmPamPKb.js";import{u as Ln,a as Dn}from"./use-project-scope-GFa4JvNG.js";import{u as zt,a as Rn,A as zn}from"./autosend-BeP-7Z9T.js";import{i as se}from"./CheckCircle-DFL7pw-c.js";import{i as bt}from"./Monitor01-xd6_AGZa.js";import{i as Fe}from"./Zap-CNah22BF.js";import{s as xt}from"./Plus-Cq9NYyX9.js";import{a as Fn}from"./Tool01-BqhX4Lir.js";import{b as ne,e as Ke,d as qn,a as Mn,c as Bn,C as Kn}from"./command-D37uN5J-.js";import{I as Hn}from"./integration-icon-a40gN_z1.js";import{P as Un}from"./project-icon-BDGMpF2P.js";import{a as Jn}from"./use-navigate-to-agent-8ajznGe2.js";import{a as Gn,m as Vn}from"./use-mcp-client-TeUnMSC4.js";import{u as Wn,a as Yn,n as Qn}from"./new-project-dialog-CcXdYQOA.js";import{S as Xn,u as Zn}from"./thread-intent-CI_dX-N0.js";import{R as es}from"./required-auth-layout-sIreaYcR.js";import{u as ts,a as ns,b as ss,c as os}from"./thread-route-jBbjjKNR.js";import{u as is}from"./use-org-sso-YfhiI7Na.js";function as(t){const e=D.c(49),{orgName:n,orgSlug:a,orgLogo:o,domain:r}=t,i=J();let c;e[0]!==a||e[1]!==i?(c=async()=>{const _=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),I=await _.json();if(!_.ok||!I.success)throw new Error(I.error??i("common.autoDomainJoinScreen.joinError"));return I},e[0]=a,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==a?(m=_=>{window.location.href=`/${_.slug??a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==i?(f=_=>{qe.error(_ instanceof Error?_.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y),p=rs;let l;e[11]!==o||e[12]!==n?(l=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[11]=o,e[12]=n,e[13]=l):l=e[13];let b;e[14]!==n||e[15]!==i?(b=i("common.autoDomainJoinScreen.joinPrompt",{orgName:n}),e[14]=n,e[15]=i,e[16]=b):b=e[16];let u;e[17]!==b?(u=s.jsx("h3",{className:"text-lg font-medium",children:b}),e[17]=b,e[18]=u):u=e[18];let g;e[19]!==r||e[20]!==i?(g=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=g):g=e[21];let h;e[22]!==g?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=h):h=e[23];let x;e[24]!==u||e[25]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[u,h]}),e[24]=u,e[25]=h,e[26]=x):x=e[26];let S;e[27]!==d?(S=()=>d.mutate(),e[27]=d,e[28]=S):S=e[28];let v;e[29]!==d.isPending||e[30]!==n||e[31]!==i?(v=d.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:n}),e[29]=d.isPending,e[30]=n,e[31]=i,e[32]=v):v=e[32];let w;e[33]!==d.isPending||e[34]!==S||e[35]!==v?(w=s.jsx(z,{onClick:S,disabled:d.isPending,children:v}),e[33]=d.isPending,e[34]=S,e[35]=v,e[36]=w):w=e[36];const k=d.isPending;let j;e[37]!==i?(j=i("common.goHome"),e[37]=i,e[38]=j):j=e[38];let T;e[39]!==d.isPending||e[40]!==j?(T=s.jsx(z,{variant:"ghost",onClick:p,disabled:k,children:j}),e[39]=d.isPending,e[40]=j,e[41]=T):T=e[41];let P;e[42]!==w||e[43]!==T?(P=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,T]}),e[42]=w,e[43]=T,e[44]=P):P=e[44];let N;return e[45]!==x||e[46]!==P||e[47]!==l?(N=s.jsxs(ae,{children:[l,x,P]}),e[45]=x,e[46]=P,e[47]=l,e[48]=N):N=e[48],N}function rs(){window.location.href="/"}function St(t){const e=D.c(26),{orgSlug:n,orgId:a,orgName:o,reason:r}=t,i=J(),{isAdmin:c}=vn(),m=ls,f=r==="not-found",y=f?wn:kt;let d;e[0]!==f||e[1]!==i?(d=i(f?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=f,e[1]=i,e[2]=d):d=e[2];const p=d;let l;e[3]!==f||e[4]!==o||e[5]!==n||e[6]!==i?(l=f?s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",s.jsx("strong",{children:n}),"."]}):s.jsxs(s.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",s.jsx("strong",{children:o??n}),".",s.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=f,e[4]=o,e[5]=n,e[6]=i,e[7]=l):l=e[7];const b=l;let u;e[8]!==y?(u=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(y,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=y,e[9]=u):u=e[9];let g;e[10]!==p?(g=s.jsx("h3",{className:"text-lg font-medium",children:p}),e[10]=p,e[11]=g):g=e[11];let h;e[12]!==b?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[12]=b,e[13]=h):h=e[13];let x;e[14]!==g||e[15]!==h?(x=s.jsxs("div",{className:"space-y-2",children:[g,h]}),e[14]=g,e[15]=h,e[16]=x):x=e[16];let S;e[17]!==c||e[18]!==a||e[19]!==n||e[20]!==i?(S=c&&a?s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[s.jsx(cs,{orgId:a,orgSlug:n}),s.jsx(z,{variant:"ghost",onClick:m,children:i("common.goHome")})]}):s.jsx(z,{onClick:m,children:i("common.goHome")}),e[17]=c,e[18]=a,e[19]=n,e[20]=i,e[21]=S):S=e[21];let v;return e[22]!==u||e[23]!==x||e[24]!==S?(v=s.jsxs(ae,{children:[u,x,S]}),e[22]=u,e[23]=x,e[24]=S,e[25]=v):v=e[25],v}function ls(){window.location.href="/"}function cs(t){const e=D.c(20),{orgId:n,orgSlug:a}=t,o=J(),{data:r}=Me.useSession(),i=r?.user.email;let c;e[0]!==i||e[1]!==n?(c=()=>jn(`/api/_admin/orgs/${n}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=n,e[2]=c):c=e[2];let m;e[3]!==a?(m=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=m):m=e[4];let f;e[5]!==o?(f=g=>{qe.error(g instanceof Error?g.message:o("common.noAccessScreen.adminJoinFailed"))},e[5]=o,e[6]=f):f=e[6];let y;e[7]!==c||e[8]!==m||e[9]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[7]=c,e[8]=m,e[9]=f,e[10]=y):y=e[10];const d=Je(y);let p;e[11]!==d?(p=()=>d.mutate(),e[11]=d,e[12]=p):p=e[12];const l=!i||d.isPending;let b;e[13]!==d.isPending||e[14]!==o?(b=d.isPending?o("common.noAccessScreen.adminJoining"):o("common.noAccessScreen.adminJoin"),e[13]=d.isPending,e[14]=o,e[15]=b):b=e[15];let u;return e[16]!==p||e[17]!==l||e[18]!==b?(u=s.jsx(z,{onClick:p,disabled:l,children:b}),e[16]=p,e[17]=l,e[18]=b,e[19]=u):u=e[19],u}function ds(t){const e=D.c(59),{invitationId:n,orgName:a,orgSlug:o,orgLogo:r}=t,i=J();let c;e[0]!==n?(c=async()=>{const A=await Me.organization.acceptInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[0]=n,e[1]=c):c=e[1];let m;e[2]!==o?(m=()=>{Yt(),window.location.href=`/${o}`},e[2]=o,e[3]=m):m=e[3];let f;e[4]!==i?(f=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=f):f=e[5];let y;e[6]!==c||e[7]!==m||e[8]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[6]=c,e[7]=m,e[8]=f,e[9]=y):y=e[9];const d=Je(y);let p;e[10]!==n?(p=async()=>{const A=await Me.organization.rejectInvitation({invitationId:n});if(A.error)throw new Error(A.error.message);return A.data},e[10]=n,e[11]=p):p=e[11];let l,b;e[12]!==i?(l=()=>{qe.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},b=A=>{qe.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=b):(l=e[13],b=e[14]);let u;e[15]!==p||e[16]!==l||e[17]!==b?(u={mutationFn:p,onSuccess:l,onError:b},e[15]=p,e[16]=l,e[17]=b,e[18]=u):u=e[18];const g=Je(u),h=d.isPending||g.isPending;let x;e[19]!==r||e[20]!==a?(x=r?s.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Tn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=x):x=e[21];let S;e[22]!==a||e[23]!==i?(S=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=S):S=e[24];let v;e[25]!==S?(v=s.jsx("h3",{className:"text-lg font-medium",children:S}),e[25]=S,e[26]=v):v=e[26];let w;e[27]!==i?(w=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=w):w=e[28];let k;e[29]!==w?(k=s.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=k):k=e[30];let j;e[31]!==v||e[32]!==k?(j=s.jsxs("div",{className:"space-y-2",children:[v,k]}),e[31]=v,e[32]=k,e[33]=j):j=e[33];let T;e[34]!==d?(T=()=>d.mutate(),e[34]=d,e[35]=T):T=e[35];let P;e[36]!==d.isPending||e[37]!==i?(P=d.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=d.isPending,e[37]=i,e[38]=P):P=e[38];let N;e[39]!==h||e[40]!==T||e[41]!==P?(N=s.jsx(z,{onClick:T,disabled:h,children:P}),e[39]=h,e[40]=T,e[41]=P,e[42]=N):N=e[42];let _;e[43]!==g?(_=()=>g.mutate(),e[43]=g,e[44]=_):_=e[44];let I;e[45]!==g.isPending||e[46]!==i?(I=g.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=i,e[47]=I):I=e[47];let O;e[48]!==h||e[49]!==_||e[50]!==I?(O=s.jsx(z,{variant:"ghost",onClick:_,disabled:h,children:I}),e[48]=h,e[49]=_,e[50]=I,e[51]=O):O=e[51];let E;e[52]!==N||e[53]!==O?(E=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,O]}),e[52]=N,e[53]=O,e[54]=E):E=e[54];let R;return e[55]!==j||e[56]!==E||e[57]!==x?(R=s.jsxs(ae,{children:[x,j,E]}),e[55]=j,e[56]=E,e[57]=x,e[58]=R):R=e[58],R}function us(t){const e=D.c(23),{orgName:n,orgLogo:a}=t,o=J();let r;e[0]!==a||e[1]!==n?(r=a?s.jsx(ot,{url:a,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=n,e[2]=r):r=e[2];let i;e[3]!==o?(i=o("common.requestPendingScreen.title"),e[3]=o,e[4]=i):i=e[4];let c;e[5]!==i?(c=s.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==n||e[8]!==o?(m=o("common.requestPendingScreen.description",{orgName:n}),e[7]=n,e[8]=o,e[9]=m):m=e[9];let f;e[10]!==m?(f=s.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=f):f=e[11];let y;e[12]!==c||e[13]!==f?(y=s.jsxs("div",{className:"space-y-2",children:[c,f]}),e[12]=c,e[13]=f,e[14]=y):y=e[14];let d;e[15]!==o?(d=o("common.goHome"),e[15]=o,e[16]=d):d=e[16];let p;e[17]!==d?(p=s.jsx(z,{variant:"ghost",onClick:ms,children:d}),e[17]=d,e[18]=p):p=e[18];let l;return e[19]!==r||e[20]!==y||e[21]!==p?(l=s.jsxs(ae,{children:[r,y,p]}),e[19]=r,e[20]=y,e[21]=p,e[22]=l):l=e[22],l}function ms(){window.location.href="/"}function fs(t){const e=D.c(45),{orgName:n,orgSlug:a,orgLogo:o,domain:r}=t,i=J();let c;e[0]!==a?(c=async()=>{const N=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),_=await N.json();if(!N.ok||!_.success)throw new Error(_.error??"Failed to request access");return _},e[0]=a,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=gs,e[2]=m):m=e[2];let f;e[3]!==i?(f=N=>{qe.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=f):f=e[4];let y;e[5]!==c||e[6]!==f?(y={mutationFn:c,onSuccess:m,onError:f},e[5]=c,e[6]=f,e[7]=y):y=e[7];const d=Je(y);let p;e[8]!==o||e[9]!==n?(p=o?s.jsx(ot,{url:o,fallback:n,shape:"square",size:"base",className:"h-12 w-12"}):s.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:s.jsx(Rt,{className:"h-6 w-6 text-primary"})}),e[8]=o,e[9]=n,e[10]=p):p=e[10];let l;e[11]!==n||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:n}),e[11]=n,e[12]=i,e[13]=l):l=e[13];let b;e[14]!==l?(b=s.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=b):b=e[15];let u;e[16]!==r||e[17]!==i?(u=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=u):u=e[18];let g;e[19]!==u?(g=s.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,e[20]=g):g=e[20];let h;e[21]!==b||e[22]!==g?(h=s.jsxs("div",{className:"space-y-2",children:[b,g]}),e[21]=b,e[22]=g,e[23]=h):h=e[23];let x;e[24]!==d?(x=()=>d.mutate(),e[24]=d,e[25]=x):x=e[25];let S;e[26]!==d.isPending||e[27]!==i?(S=d.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=d.isPending,e[27]=i,e[28]=S):S=e[28];let v;e[29]!==d.isPending||e[30]!==x||e[31]!==S?(v=s.jsx(z,{onClick:x,disabled:d.isPending,children:S}),e[29]=d.isPending,e[30]=x,e[31]=S,e[32]=v):v=e[32];const w=d.isPending;let k;e[33]!==i?(k=i("common.goHome"),e[33]=i,e[34]=k):k=e[34];let j;e[35]!==d.isPending||e[36]!==k?(j=s.jsx(z,{variant:"ghost",onClick:hs,disabled:w,children:k}),e[35]=d.isPending,e[36]=k,e[37]=j):j=e[37];let T;e[38]!==v||e[39]!==j?(T=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=T):T=e[40];let P;return e[41]!==h||e[42]!==T||e[43]!==p?(P=s.jsxs(ae,{children:[p,h,T]}),e[41]=h,e[42]=T,e[43]=p,e[44]=P):P=e[44],P}function hs(){window.location.href="/"}function gs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ps(t){const e=D.c(7);let n;e[0]!==t?(n=Ve.orgAccessStatus(t),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let o;return e[4]!==n||e[5]!==a?(o={queryKey:n,queryFn:a,refetchOnWindowFocus:!1},e[4]=n,e[5]=a,e[6]=o):o=e[6],Nt(o)}function ys({orgSlug:t}){const{data:e}=ps(t);if(e.status!=="member"){const n=_t()?.org===t;n&&Pt();const a=localStorage.getItem(Ge.lastOrgSlug())===t;if(a&&localStorage.removeItem(Ge.lastOrgSlug()),(n||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?s.jsx(St,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?s.jsx(ds,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?s.jsx(as,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?s.jsx(fs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?s.jsx(us,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):s.jsx(St,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function Ft(t){const e=D.c(42),{ariaLabel:n,dismissLabel:a,eyebrow:o,title:r,description:i,icon:c,children:m,footerLeading:f,actions:y,onDismiss:d,tone:p}=t,l=p===void 0?"neutral":p,b=f||y;let u;e[0]!==l?(u=l==="system"&&s.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=u):u=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx($n,{size:14}),e[2]=g):g=e[2];let h;e[3]!==a||e[4]!==d?(h=s.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:d,children:g}),e[3]=a,e[4]=d,e[5]=h):h=e[5];const x=c&&"flex items-start gap-3",S=m&&"pb-3";let v;e[6]!==x||e[7]!==S?(v=mt("p-4 pr-11",x,S),e[6]=x,e[7]=S,e[8]=v):v=e[8];let w;e[9]!==c?(w=c&&s.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=w):w=e[10];let k;e[11]!==o?(k=o&&s.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[11]=o,e[12]=k):k=e[12];let j;e[13]!==r?(j=s.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=j):j=e[14];let T;e[15]!==i?(T=i&&s.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=T):T=e[16];let P;e[17]!==j||e[18]!==T||e[19]!==k?(P=s.jsxs("div",{children:[k,j,T]}),e[17]=j,e[18]=T,e[19]=k,e[20]=P):P=e[20];let N;e[21]!==m?(N=m&&s.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let _;e[23]!==P||e[24]!==N?(_=s.jsxs("div",{className:"min-w-0 flex-1",children:[P,N]}),e[23]=P,e[24]=N,e[25]=_):_=e[25];let I;e[26]!==_||e[27]!==v||e[28]!==w?(I=s.jsxs("div",{className:v,children:[w,_]}),e[26]=_,e[27]=v,e[28]=w,e[29]=I):I=e[29];let O;e[30]!==y||e[31]!==f||e[32]!==b||e[33]!==l?(O=b&&s.jsxs("div",{className:mt("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[s.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),s.jsx("div",{className:"flex shrink-0 items-center gap-2",children:y})]}),e[30]=y,e[31]=f,e[32]=b,e[33]=l,e[34]=O):O=e[34];let E;return e[35]!==n||e[36]!==I||e[37]!==O||e[38]!==u||e[39]!==h||e[40]!==l?(E=s.jsxs("div",{role:"dialog","aria-label":n,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[u,h,I,O]}),e[35]=n,e[36]=I,e[37]=O,e[38]=u,e[39]=h,e[40]=l,e[41]=E):E=e[41],E}const bs={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function qt(t){return`[data-tour="${bs[t]}"]`}const xs=[{scope:"shell",anchor:"switcher",titleKey:"layoutTour.switcher.title",descKey:"layoutTour.switcher.description",side:"right"},{scope:"shell",anchor:"nav",titleKey:"layoutTour.nav.title",descKey:"layoutTour.nav.description",side:"right"},{scope:"shell",anchor:"tasks",titleKey:"layoutTour.tasks.title",descKey:"layoutTour.tasks.description",side:"right"},{scope:"project",anchor:"siteEditor",titleKey:"layoutTour.siteEditor.title",descKey:"layoutTour.siteEditor.description",side:"right"},{scope:"project",anchor:"automations",titleKey:"layoutTour.automations.title",descKey:"layoutTour.automations.description",side:"right"},{scope:"shell",anchor:"settings",titleKey:"layoutTour.settings.title",descKey:"layoutTour.settings.description",side:"right"},{scope:"shell",anchor:"projects",titleKey:"layoutTour.projects.title",descKey:"layoutTour.projects.description",side:"right"},{scope:"shell",anchor:"account",titleKey:"layoutTour.account.title",descKey:"layoutTour.account.description",side:"right"},{scope:"siteEditor",anchor:"surfaceTabs",titleKey:"layoutTour.surfaceTabs.title",descKey:"layoutTour.surfaceTabs.description",side:"bottom"},{scope:"siteEditor",anchor:"branchPicker",titleKey:"layoutTour.branchPicker.title",descKey:"layoutTour.branchPicker.description",side:"bottom"},{scope:"orgHome",anchor:"recentActivity",titleKey:"layoutTour.recentActivity.title",descKey:"layoutTour.recentActivity.description",side:"top"}];function Ss(t){return xs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function ws(t,e){return Ss(e).map(n=>({element:qt(n.anchor),popover:{title:t(n.titleKey),description:t(n.descKey),side:n.side,align:"center"}}))}const vs=qt("switcher"),js=30;function Mt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ts(t,e){return ws(t,e).filter(n=>typeof n.element=="string"&&Mt(n.element))}function ks(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(n,{driver:a})=>{if(n.footerButtons.querySelector(".layout-tour-skip"))return;const o=document.createElement("button");o.type="button",o.className="driver-popover-footer-btn layout-tour-skip",o.textContent=t("layoutTour.skip"),o.addEventListener("click",()=>a.destroy()),n.footerButtons.insertBefore(o,n.footerButtons.firstChild)},onDestroyed:()=>{He=!1},steps:e}}let He=!1;async function Ns(){return(await Qt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function _s(t,e){if(He)return;He=!0;let n=0;const a=()=>{if(!Mt(vs)&&n++<js){requestAnimationFrame(a);return}const o=Ts(t,e);if(o.length===0){He=!1;return}Ns().then(r=>{r(ks(t,o)).drive()}).catch(()=>{He=!1})};a()}function Ps(t){return t!=="off"}function ai(t){if(!t.hasSource)return[];const e=["site-editor"];return Ps(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function Bt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function ri(t){return t.reportsOnly&&!t.onReportAgent&&Bt(t.tabId)}const Kt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:bt,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:at,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Nn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:ft,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:Z,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:bt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:Z,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:se,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:Fe,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:Z,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:se,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:Fe,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:se,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:Z,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:Fe,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:Z,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:se,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:Fe,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:Z,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:se,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:Fe,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:Z,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:at,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:se,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:ft,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Fe,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:se,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:Z,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:at,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:Z,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:_n,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],st="studio.release-feed.v1",lt=new Set;let oe="",ie={},ct=!1;function As(){if(ct)return oe||"{}";try{return localStorage.getItem(st)??"{}"}catch{return oe||"{}"}}function Ht(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=As();return t!==oe&&(oe=t,ie=Ht(t)),ie}function Is(t){lt.add(t);const e=n=>{if(!(n.key!==st&&n.key!==null)){try{const a=localStorage.getItem(st)??"{}",r={...Ht(a),...ie};ie=r,oe=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{lt.delete(t),window.removeEventListener("storage",e)}}function Cs(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(st,oe),ct=!1}catch{ct=!0}lt.forEach(e=>e())}function Es(){const t=D.c(7),e=G.useSyncExternalStore(Is,wt,wt);let n;t[0]!==e?(n=m=>!!e[m],t[0]=e,t[1]=n):n=t[1];const a=n,o=Os;let r;t[2]!==e?(r=Kt.reduce((m,f)=>e[f.id]?m:m+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let c;return t[4]!==a||t[5]!==i?(c={isSeen:a,markSeen:o,unseenCount:i},t[4]=a,t[5]=i,t[6]=c):c=t[6],c}function Os(t){ie[t]||Cs({...ie,[t]:{seenAt:new Date().toISOString()}})}const vt=new Map;function Ut(t){let e=vt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},vt.set(t,e)),e}function $s(t,e){const n=Ut(t);return n.subscribers.add(e),n.intervalId===null&&(n.intervalId=setInterval(()=>{n.now=Date.now();for(const a of n.subscribers)a()},t)),()=>{n.subscribers.delete(e),n.subscribers.size===0&&n.intervalId!==null&&(clearInterval(n.intervalId),n.intervalId=null)}}function Ls(t){const e=D.c(4),n=t===void 0?6e4:t;let a;e[0]!==n?(a=()=>Ut(n).now,e[0]=n,e[1]=a):a=e[1];const o=a;let r;return e[2]!==n?(r=i=>$s(n,i),e[2]=n,e[3]=r):r=e[3],G.useSyncExternalStore(r,o,o)}const Ds=720*60*60*1e3,Rs=10080*60*1e3;function zs(t){const[e,n,a]=t.split("-").map(Number);return!e||!n||!a?new Date(t).getTime():new Date(e,n-1,a).getTime()}function Fs(t){const e=Kt[0];if(!e)return null;const n=zs(e.date),a=t-n;return a<0||a>Ds?null:e}function qs(t){if(t instanceof Date)return t.getTime();if(typeof t=="string"||typeof t=="number"){const e=new Date(t).getTime();return Number.isFinite(e)?e:null}return null}function Ms(t,e){const n=qs(t);return n===null?!1:e-n>=Rs}function Bs(){const t=D.c(46),e=J(),n=Ln(),a=Xt(),o=zt(),r=!!n,i=a===ee.home&&!n;let c;t[0]!==o||t[1]!==r?(c=r&&!!o&&Bt(o),t[0]=o,t[1]=r,t[2]=c):c=t[2];const m=c,{data:f}=Me.useSession(),{isSeen:y,markSeen:d}=Es(),p=Ls(6e4);let l,b,u;if(t[3]!==y||t[4]!==p||t[5]!==f?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{if(l=Fs(p),!l){u=null;break e}if(!Ms(f?.user?.createdAt,p)){u=null;break e}b=y(l.id)}t[3]=y,t[4]=p,t[5]=f?.user?.createdAt,t[6]=l,t[7]=b,t[8]=u}else l=t[6],b=t[7],u=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(b)return null;let g;t[9]!==l.id||t[10]!==r||t[11]!==d||t[12]!==i||t[13]!==m||t[14]!==e?(g=()=>{d(l.id),_s(e,{onOrgHome:i,inProject:r,onSiteEditor:m})},t[9]=l.id,t[10]=r,t[11]=d,t[12]=i,t[13]=m,t[14]=e,t[15]=g):g=t[15];const h=g;let x;t[16]!==e?(x=e("announcements.release.ariaLabel"),t[16]=e,t[17]=x):x=t[17];let S;t[18]!==e?(S=e("announcements.release.dismiss"),t[18]=e,t[19]=S):S=t[19];const v=l.eyebrow,w=l.title;let k;t[20]!==l.id||t[21]!==d?(k=()=>d(l.id),t[20]=l.id,t[21]=d,t[22]=k):k=t[22];let j;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==d||t[26]!==e?(j=l.learnMoreHref?s.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>d(l.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=l.id,t[24]=l.learnMoreHref,t[25]=d,t[26]=e,t[27]=j):j=t[27];let T;t[28]!==l.cta||t[29]!==l.id||t[30]!==d||t[31]!==h?(T=l.cta?"href"in l.cta?s.jsx(z,{asChild:!0,size:"sm",onClick:()=>d(l.id),children:s.jsx("a",{href:l.cta.href,children:l.cta.label})}):s.jsx(z,{size:"sm",onClick:h,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=d,t[31]=h,t[32]=T):T=t[32];let P;t[33]!==l.bullets?(P=l.bullets.map(Ks),t[33]=l.bullets,t[34]=P):P=t[34];let N;t[35]!==P?(N=s.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=N):N=t[36];let _;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==T||t[40]!==N||t[41]!==x||t[42]!==S||t[43]!==k||t[44]!==j?(_=s.jsx(Ft,{ariaLabel:x,dismissLabel:S,eyebrow:v,title:w,onDismiss:k,footerLeading:j,actions:T,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=T,t[40]=N,t[41]=x,t[42]=S,t[43]=k,t[44]=j,t[45]=_):_=t[45],_}function Ks(t,e){return s.jsxs("li",{className:"flex items-start gap-3",children:[s.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),s.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Hs(t){const e=D.c(11),{open:n,onOpenChange:a}=t,o=J();let r;e[0]!==o?(r=o("common.keyboardShortcutsDialog.title"),e[0]=o,e[1]=r):r=e[1];let i;e[2]!==r?(i=s.jsx(At,{children:s.jsx(It,{children:r})}),e[2]=r,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"flex flex-col gap-4",children:Zt.map(Us)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsxs(Ct,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let f;return e[7]!==a||e[8]!==n||e[9]!==m?(f=s.jsx(Et,{open:n,onOpenChange:a,children:m}),e[7]=a,e[8]=n,e[9]=m,e[10]=f):f=e[10],f}function Us(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Js)})]},t.label)}function Js(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Gs)})]},t.description)}function Gs(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const jt=8;function Vs(t){const{org:e}=dt(),n=Gn({connectionId:$t,orgId:e.id,orgSlug:e.slug}),{data:a}=Be({queryKey:Ve.globalSearch(e.id,t,jt),enabled:!!n&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!n)return[];try{return(await n.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:jt}})).structuredContent?.items??[]}catch{return[]}}});return a??[]}function Ws(t){const e=D.c(197),{open:n,onOpenChange:a}=t,o=J(),r=Ot(),{org:i}=dt(),{projects:c,hasProjects:m}=Dn(),{remember:f}=Jn(i.slug),[y,d]=G.useState(""),p=G.useDeferredValue(y),l=Vs(p);let b;e[0]!==a?(b=()=>{a(!1),d("")},e[0]=a,e[1]=b):b=e[1];const u=b;let g;e[2]!==u?(g=(q,K)=>{rt("command_palette_used",{kind:K}),q(),u()},e[2]=u,e[3]=g):g=e[3];const h=g;let x;e[4]!==r||e[5]!==i.id||e[6]!==i.slug?(x=q=>{if(q.type==="connection"){if(!q.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:q.slug}});return}if(q.type==="task"){r({to:ee.tasks,params:{org:i.slug,taskKey:q.key??void 0}});return}const K=Lt(i.id).id;en(r,tn({org:i.slug,agentId:q.virtual_mcp_id??K,superAgentId:K}),{search:()=>({thread:q.id}),replace:!1})},e[4]=r,e[5]=i.id,e[6]=i.slug,e[7]=x):x=e[7];const S=x;let v;e[8]!==y?(v=[y],e[8]=y,e[9]=v):v=e[9];const w=v;let k,j,T,P,N,_,I,O,E,R,A,F,M;if(e[10]!==u||e[11]!==h||e[12]!==m||e[13]!==l||e[14]!==r||e[15]!==a||e[16]!==n||e[17]!==S||e[18]!==i.slug||e[19]!==c||e[20]!==f||e[21]!==w||e[22]!==o||e[23]!==y){const q=l.filter(Qs),K=l.filter(Ys);let Q;e[37]!==i.slug?(Q={org:i.slug},e[37]=i.slug,e[38]=Q):Q=e[38];const $=Q;let H;e[39]!==o?(H=o("sidebar.navDestinations.home"),e[39]=o,e[40]=H):H=e[40];let W;e[41]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(An,{"aria-hidden":"true"}),e[41]=W):W=e[41];let U;e[42]!==$||e[43]!==H?(U={key:"home",label:H,icon:W,to:ee.home,params:$},e[42]=$,e[43]=H,e[44]=U):U=e[44];let Y;e[45]!==o?(Y=o("sidebar.navDestinations.reports"),e[45]=o,e[46]=Y):Y=e[46];let X;e[47]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(In,{"aria-hidden":"true"}),e[47]=X):X=e[47];let L;e[48]!==$||e[49]!==Y?(L={key:"reports",label:Y,icon:X,to:ee.reports,params:$},e[48]=$,e[49]=Y,e[50]=L):L=e[50];let B;e[51]!==o?(B=o("sidebar.navDestinations.tasks"),e[51]=o,e[52]=B):B=e[52];let We;e[53]===Symbol.for("react.memo_cache_sentinel")?(We=s.jsx(yt,{"aria-hidden":"true"}),e[53]=We):We=e[53];let re;e[54]!==i.slug?(re={org:i.slug,taskKey:void 0},e[54]=i.slug,e[55]=re):re=e[55];let le;e[56]!==B||e[57]!==re?(le={key:"tasks",label:B,icon:We,to:ee.tasks,params:re},e[56]=B,e[57]=re,e[58]=le):le=e[58];let ce;e[59]!==o?(ce=o("sidebar.navDestinations.library"),e[59]=o,e[60]=ce):ce=e[60];let Ye;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ye=s.jsx(Cn,{"aria-hidden":"true"}),e[61]=Ye):Ye=e[61];let de;e[62]!==$||e[63]!==ce?(de={key:"library",label:ce,icon:Ye,to:ee.library,params:$},e[62]=$,e[63]=ce,e[64]=de):de=e[64];let ue;e[65]!==o?(ue=o("sidebar.navDestinations.discover"),e[65]=o,e[66]=ue):ue=e[66];let Qe;e[67]===Symbol.for("react.memo_cache_sentinel")?(Qe=s.jsx(En,{"aria-hidden":"true"}),e[67]=Qe):Qe=e[67];let me;e[68]!==$||e[69]!==ue?(me={key:"discover",label:ue,icon:Qe,to:ee.discover,params:$},e[68]=$,e[69]=ue,e[70]=me):me=e[70];let Xe;e[71]!==U||e[72]!==L||e[73]!==le||e[74]!==de||e[75]!==me?(Xe=[U,L,le,de,me],e[71]=U,e[72]=L,e[73]=le,e[74]=de,e[75]=me,e[76]=Xe):Xe=e[76];const it=Xe;j=qn,P=n,e[77]!==u||e[78]!==a?(N=C=>C?a(!0):u(),e[77]=u,e[78]=a,e[79]=N):N=e[79],e[80]!==o?(_=o("commandPalette.title"),e[80]=o,e[81]=_):_=e[81],e[82]!==o?(I=o("commandPalette.description"),e[82]=o,e[83]=I):I=e[83];let fe;e[84]!==o?(fe=o("commandPalette.placeholder"),e[84]=o,e[85]=fe):fe=e[85];let he;e[86]!==o?(he=o("commandPalette.placeholder"),e[86]=o,e[87]=he):he=e[87],e[88]!==fe||e[89]!==he||e[90]!==y?(O=s.jsx(Mn,{placeholder:fe,"aria-label":he,value:y,onValueChange:d}),e[88]=fe,e[89]=he,e[90]=y,e[91]=O):O=e[91],k=Bn;let ge;e[92]!==o?(ge=o("commandPalette.empty"),e[92]=o,e[93]=ge):ge=e[93],e[94]!==ge?(E=s.jsx(Kn,{children:ge}),e[94]=ge,e[95]=E):E=e[95];let pe;e[96]!==o?(pe=o("commandPalette.goTo"),e[96]=o,e[97]=pe):pe=e[97];let ye;e[98]!==it||e[99]!==h||e[100]!==r?(ye=it.map(C=>s.jsxs(ne,{onSelect:()=>h(()=>r({to:C.to,params:C.params}),"destination"),children:[C.icon,s.jsx("span",{children:C.label})]},C.key)),e[98]=it,e[99]=h,e[100]=r,e[101]=ye):ye=e[101],e[102]!==pe||e[103]!==ye?(R=s.jsx(Ke,{heading:pe,children:ye}),e[102]=pe,e[103]=ye,e[104]=R):R=e[104],e[105]!==h||e[106]!==m||e[107]!==r||e[108]!==i.slug||e[109]!==c||e[110]!==f||e[111]!==o?(A=m&&s.jsx(Ke,{heading:o("commandPalette.projects"),children:c.map(C=>s.jsxs(ne,{value:`project ${C.title}`,onSelect:()=>h(()=>{f(C.id),r({to:ee.projects,params:{org:i.slug,agentId:C.id}})},"project"),children:[s.jsx(Un,{icon:C.icon,name:C.title,"aria-hidden":"true"}),s.jsx("span",{children:C.title})]},C.id))}),e[105]=h,e[106]=m,e[107]=r,e[108]=i.slug,e[109]=c,e[110]=f,e[111]=o,e[112]=A):A=e[112];let be;e[113]!==o?(be=o("commandPalette.actions"),e[113]=o,e[114]=be):be=e[114];let xe;e[115]!==o?(xe=o("commandPalette.newProject"),e[115]=o,e[116]=xe):xe=e[116];let Se;e[117]!==h||e[118]!==r||e[119]!==$?(Se=()=>h(()=>r({to:ee.home,params:$}),"new_project"),e[117]=h,e[118]=r,e[119]=$,e[120]=Se):Se=e[120];let Ze;e[121]===Symbol.for("react.memo_cache_sentinel")?(Ze=s.jsx(xt,{"aria-hidden":"true"}),e[121]=Ze):Ze=e[121];let we;e[122]!==o?(we=o("commandPalette.newProject"),e[122]=o,e[123]=we):we=e[123];let ve;e[124]!==we?(ve=s.jsx("span",{children:we}),e[124]=we,e[125]=ve):ve=e[125];let je;e[126]!==xe||e[127]!==Se||e[128]!==ve?(je=s.jsxs(ne,{value:xe,onSelect:Se,children:[Ze,ve]}),e[126]=xe,e[127]=Se,e[128]=ve,e[129]=je):je=e[129];let Te;e[130]!==o?(Te=o("commandPalette.inviteTeammate"),e[130]=o,e[131]=Te):Te=e[131];let ke;e[132]!==h||e[133]!==r||e[134]!==$?(ke=()=>h(()=>r({to:"/$org/settings/members",params:$}),"invite"),e[132]=h,e[133]=r,e[134]=$,e[135]=ke):ke=e[135];let et;e[136]===Symbol.for("react.memo_cache_sentinel")?(et=s.jsx(On,{"aria-hidden":"true"}),e[136]=et):et=e[136];let Ne;e[137]!==o?(Ne=o("commandPalette.inviteTeammate"),e[137]=o,e[138]=Ne):Ne=e[138];let _e;e[139]!==Ne?(_e=s.jsx("span",{children:Ne}),e[139]=Ne,e[140]=_e):_e=e[140];let Pe;e[141]!==Te||e[142]!==ke||e[143]!==_e?(Pe=s.jsxs(ne,{value:Te,onSelect:ke,children:[et,_e]}),e[141]=Te,e[142]=ke,e[143]=_e,e[144]=Pe):Pe=e[144];let Ae;e[145]!==o?(Ae=o("commandPalette.addConnection"),e[145]=o,e[146]=Ae):Ae=e[146];let Ie;e[147]!==h||e[148]!==r||e[149]!==$?(Ie=()=>h(()=>r({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[147]=h,e[148]=r,e[149]=$,e[150]=Ie):Ie=e[150];let tt;e[151]===Symbol.for("react.memo_cache_sentinel")?(tt=s.jsx(xt,{"aria-hidden":"true"}),e[151]=tt):tt=e[151];let Ce;e[152]!==o?(Ce=o("commandPalette.addConnection"),e[152]=o,e[153]=Ce):Ce=e[153];let Ee;e[154]!==Ce?(Ee=s.jsx("span",{children:Ce}),e[154]=Ce,e[155]=Ee):Ee=e[155];let Oe;e[156]!==Ae||e[157]!==Ie||e[158]!==Ee?(Oe=s.jsxs(ne,{value:Ae,onSelect:Ie,children:[tt,Ee]}),e[156]=Ae,e[157]=Ie,e[158]=Ee,e[159]=Oe):Oe=e[159];let $e;e[160]!==o?($e=o("commandPalette.settings"),e[160]=o,e[161]=$e):$e=e[161];let Le;e[162]!==h||e[163]!==r||e[164]!==$?(Le=()=>h(()=>r({to:"/$org/settings/general",params:$}),"settings"),e[162]=h,e[163]=r,e[164]=$,e[165]=Le):Le=e[165];let nt;e[166]===Symbol.for("react.memo_cache_sentinel")?(nt=s.jsx(Fn,{"aria-hidden":"true"}),e[166]=nt):nt=e[166];let De;e[167]!==o?(De=o("commandPalette.settings"),e[167]=o,e[168]=De):De=e[168];let Re;e[169]!==De?(Re=s.jsx("span",{children:De}),e[169]=De,e[170]=Re):Re=e[170];let ze;e[171]!==$e||e[172]!==Le||e[173]!==Re?(ze=s.jsxs(ne,{value:$e,onSelect:Le,children:[nt,Re]}),e[171]=$e,e[172]=Le,e[173]=Re,e[174]=ze):ze=e[174],e[175]!==be||e[176]!==je||e[177]!==Pe||e[178]!==Oe||e[179]!==ze?(F=s.jsxs(Ke,{heading:be,children:[je,Pe,Oe,ze]}),e[175]=be,e[176]=je,e[177]=Pe,e[178]=Oe,e[179]=ze,e[180]=F):F=e[180],M=q.length>0&&s.jsx(Ke,{heading:o("commandPalette.connections"),children:q.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:w,onSelect:()=>h(()=>S(C),"connection"),children:[s.jsx(Hn,{icon:C.icon,name:C.title,size:"2xs","aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title})]},`connection:${C.id}`))}),T=K.length>0&&s.jsx(Ke,{heading:o("commandPalette.results"),children:K.map(C=>s.jsxs(ne,{value:`${C.title} ${C.id}`,keywords:w,onSelect:()=>h(()=>S(C),C.type),children:[C.type==="thread"?s.jsx(Pn,{"aria-hidden":"true"}):s.jsx(yt,{"aria-hidden":"true"}),s.jsx("span",{className:"truncate",children:C.title}),C.type==="task"&&C.key&&s.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:C.key})]},`${C.type}:${C.id}`))}),e[10]=u,e[11]=h,e[12]=m,e[13]=l,e[14]=r,e[15]=a,e[16]=n,e[17]=S,e[18]=i.slug,e[19]=c,e[20]=f,e[21]=w,e[22]=o,e[23]=y,e[24]=k,e[25]=j,e[26]=T,e[27]=P,e[28]=N,e[29]=_,e[30]=I,e[31]=O,e[32]=E,e[33]=R,e[34]=A,e[35]=F,e[36]=M}else k=e[24],j=e[25],T=e[26],P=e[27],N=e[28],_=e[29],I=e[30],O=e[31],E=e[32],R=e[33],A=e[34],F=e[35],M=e[36];let V;e[181]!==k||e[182]!==T||e[183]!==E||e[184]!==R||e[185]!==A||e[186]!==F||e[187]!==M?(V=s.jsxs(k,{children:[E,R,A,F,M,T]}),e[181]=k,e[182]=T,e[183]=E,e[184]=R,e[185]=A,e[186]=F,e[187]=M,e[188]=V):V=e[188];let te;return e[189]!==j||e[190]!==P||e[191]!==N||e[192]!==_||e[193]!==I||e[194]!==O||e[195]!==V?(te=s.jsxs(j,{open:P,onOpenChange:N,title:_,description:I,children:[O,V]}),e[189]=j,e[190]=P,e[191]=N,e[192]=_,e[193]=I,e[194]=O,e[195]=V,e[196]=te):te=e[196],te}function Ys(t){return t.type!=="connection"}function Qs(t){return t.type==="connection"}const Ue=new Xn(!1);function Xs(){Ue.set(!0)}function Zs(){Ue.set(!1)}function eo(){const t=D.c(2),e=G.useSyncExternalStore(Ue.subscribe,Ue.get);let n;return t[0]!==e?(n=[e,Ue.set],t[0]=e,t[1]=n):n=t[1],n}const to=300*1e3,no=2;function so(t,e,n){return!e||e===n?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function oo(t,e){return t.count>=no&&t.version!==null&&t.version!==e}function io(){const t=D.c(31),e=J();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={queryKey:Ve.appVersionCheck(),queryFn:ro,refetchInterval:to,refetchIntervalInBackground:!0,staleTime:0},t[0]=n):n=t[0];const{data:a,dataUpdatedAt:o}=Be(n),[r,i]=G.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,f]=G.useState(c);o!==r&&(i(o),f(T=>so(T,a,"4.568.0")));const[y,d]=G.useState(null);if(!oo(m,y))return null;let p;t[2]!==e?(p=e("announcements.version.ariaLabel"),t[2]=e,t[3]=p):p=t[3];let l;t[4]!==e?(l=e("announcements.version.dismiss"),t[4]=e,t[5]=l):l=t[5];let b;t[6]!==e?(b=e("announcements.version.eyebrow"),t[6]=e,t[7]=b):b=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=t[9];let g;t[10]!==e?(g=e("announcements.version.description"),t[10]=e,t[11]=g):g=t[11];let h;t[12]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(ht,{size:16}),t[12]=h):h=t[12];let x;t[13]!==m.version?(x=()=>d(m.version),t[13]=m.version,t[14]=x):x=t[14];let S;t[15]!==e?(S=e("announcements.version.currentSession",{version:"4.568.0"}),t[15]=e,t[16]=S):S=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ht,{size:14}),t[19]=w):w=t[19];let k;t[20]!==v?(k=s.jsxs(z,{size:"sm",onClick:ao,children:[v,w]}),t[20]=v,t[21]=k):k=t[21];let j;return t[22]!==k||t[23]!==p||t[24]!==l||t[25]!==b||t[26]!==u||t[27]!==g||t[28]!==x||t[29]!==S?(j=s.jsx(Ft,{ariaLabel:p,dismissLabel:l,eyebrow:b,title:u,description:g,icon:h,tone:"system",onDismiss:x,footerLeading:S,actions:k}),t[22]=k,t[23]=p,t[24]=l,t[25]=b,t[26]=u,t[27]=g,t[28]=x,t[29]=S,t[30]=j):j=t[30],j}function ao(){return window.location.reload()}async function ro(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function lo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const co=Date.parse("2026-07-21T00:00:00Z"),Tt=t=>lo(Ge.ptBrAnnouncementSeen(t));function uo(){const t=D.c(35),e=J(),[n,a]=nn(),{data:o,isPending:r}=Me.useSession(),i=o?.user,c=i?.id,m=i?.createdAt,f=m!=null&&new Date(m).getTime()<co,y=sn()==="pt-BR",d=!r&&!!c&&f&&y&&n.language==="en"&&!Tt(c).has(),[p,l]=G.useState(!1),[b,u]=G.useState(!1);!p&&!r&&(l(!0),d&&c&&(Tt(c).mark(),a(fo),u(!0),rt("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=V=>{rt("pt_br_auto_switch_closed",{action:V}),u(!1)},t[0]=g):g=t[0];const h=g;let x;t[1]!==a?(x=()=>{a(mo),h("switch-back")},t[1]=a,t[2]=x):x=t[2];const S=x;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=V=>!V&&h("dismiss"),t[3]=v):v=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let k;t[5]!==e?(k=e("announcements.ptBr.title"),t[5]=e,t[6]=k):k=t[6];let j;t[7]!==k?(j=s.jsx(It,{children:k}),t[7]=k,t[8]=j):j=t[8];let T;t[9]!==e?(T=e("announcements.ptBr.description"),t[9]=e,t[10]=T):T=t[10];let P;t[11]!==T?(P=s.jsx(on,{children:T}),t[11]=T,t[12]=P):P=t[12];let N;t[13]!==j||t[14]!==P?(N=s.jsxs(At,{children:[j,P]}),t[13]=j,t[14]=P,t[15]=N):N=t[15];let _;t[16]!==e?(_=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=_):_=t[17];let I;t[18]!==S||t[19]!==_?(I=s.jsx(z,{variant:"outline",onClick:S,children:_}),t[18]=S,t[19]=_,t[20]=I):I=t[20];let O;t[21]===Symbol.for("react.memo_cache_sentinel")?(O=()=>h("ok"),t[21]=O):O=t[21];let E;t[22]!==e?(E=e("announcements.ptBr.ok"),t[22]=e,t[23]=E):E=t[23];let R;t[24]!==E?(R=s.jsx(z,{onClick:O,children:E}),t[24]=E,t[25]=R):R=t[25];let A;t[26]!==I||t[27]!==R?(A=s.jsxs(an,{children:[I,R]}),t[26]=I,t[27]=R,t[28]=A):A=t[28];let F;t[29]!==A||t[30]!==N?(F=s.jsxs(Ct,{className:"sm:max-w-md",children:[w,N,A]}),t[29]=A,t[30]=N,t[31]=F):F=t[31];let M;return t[32]!==b||t[33]!==F?(M=s.jsx(Et,{open:b,onOpenChange:v,children:F}),t[32]=b,t[33]=F,t[34]=M):M=t[34],M}function mo(t){return{...t,language:"en"}}function fo(t){return{...t,language:"pt-BR"}}function ho(t){const e=rn(t);return typeof e=="string"?e:void 0}function go(){return ho("experiment-pipeline-check"),null}function po(t){const e=D.c(1),{activeOrg:n}=t;if(!n)return null;ln(n.id,{name:n.name??void 0,slug:n.slug??void 0}),cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(go,{}),e[0]=a):a=e[0],a}function yo(t){const{prev:e,virtualMcpId:n,decopilotId:a,savedLayout:o,opts:r,autosendValue:i}=t,c={mainpanel:void 0};n?c.virtualmcpid=n:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,y=(n??m)!==m;let d,p;return r?.panel?p=r.panel:r?.newThread&&!y&&dn(e.tabId)?(p=e.tabId,c.mainpanel=e.mainpanel,d=e.sidepanel):o?(p=o.tab,o.sidepanel!==void 0&&(d=o.sidepanel),o.mainpanel!==void 0&&(c.mainpanel=o.mainpanel)):!y&&e.tabId&&!un(e.tabId)&&(p=e.tabId),d!==void 0&&(c.sidepanel=d),r?.autosend&&(c.autosend=i),{tabId:p,search:c}}const Jt="studio:thread-layout:v4",bo=50;function Gt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function xo(t,e,n,a=bo){const o=t.filter(([r])=>r!==e);for(o.push([e,Gt(n)]);o.length>a;)o.shift();return o}function ut(){try{const t=sessionStorage.getItem(Jt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&n.length===2&&typeof n[0]=="string"):[]}catch{return[]}}function Vt(t){try{sessionStorage.setItem(Jt,JSON.stringify(t))}catch{}}function So(t,e){t&&Vt(xo(ut(),t,e))}function wo(t){if(!t)return null;const e=ut().find(([n])=>n===t);return e?Gt(e[1]):null}function li(t){if(!t)return;const e=ut(),n=e.filter(([a])=>a!==t);n.length!==e.length&&Vt(n)}function Wt(t){return{queryKey:Ve.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function ci(t){const e=D.c(10);let n;e[0]!==t?(n=Wt(t),e[0]=t,e[1]=n):n=e[1];const a=Be(n);let o;e[2]!==a.data?.prompts?(o=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=o):o=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==o||e[8]!==r?(i={isLoading:a.isLoading,prompts:o,tiles:r},e[6]=a.isLoading,e[7]=o,e[8]=r,e[9]=i):i=e[9],i}function vo(t){const e=D.c(31),{orgSlug:n,orgName:a,domain:o}=t,r=J();let i;e[0]!==n?(i=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=i):i=e[1];const c=i,m=jo;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:s.jsx(kt,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let y;e[3]!==r?(y=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=y):y=e[4];let d;e[5]!==y?(d=s.jsx("h3",{className:"text-lg font-medium",children:y}),e[5]=y,e[6]=d):d=e[6];let p;e[7]!==o||e[8]!==a||e[9]!==r?(p=a?s.jsxs(s.Fragment,{children:[s.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),o?` ${r("common.ssoRequiredScreen.via",{domain:o})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=o,e[8]=a,e[9]=r,e[10]=p):p=e[10];let l;e[11]!==p?(l=s.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=l):l=e[12];let b;e[13]!==d||e[14]!==l?(b=s.jsxs("div",{className:"space-y-2",children:[d,l]}),e[13]=d,e[14]=l,e[15]=b):b=e[15];let u;e[16]!==r?(u=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=u):u=e[17];let g;e[18]!==c||e[19]!==u?(g=s.jsx(z,{onClick:c,children:u}),e[18]=c,e[19]=u,e[20]=g):g=e[20];let h;e[21]!==r?(h=r("common.goBack"),e[21]=r,e[22]=h):h=e[22];let x;e[23]!==h?(x=s.jsx(z,{variant:"ghost",onClick:m,children:h}),e[23]=h,e[24]=x):x=e[24];let S;e[25]!==x||e[26]!==g?(S=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,x]}),e[25]=x,e[26]=g,e[27]=S):S=e[27];let v;return e[28]!==S||e[29]!==b?(v=s.jsxs(ae,{children:[f,b,S]}),e[28]=S,e[29]=b,e[30]=v):v=e[30],v}function jo(){window.location.href="/"}function To(t){const e=D.c(27),{notice:n,orgSlug:a}=t,o=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(mn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==n.title?(i=s.jsx("h3",{className:"text-lg font-medium",children:n.title}),e[1]=n.title,e[2]=i):i=e[2];let c;e[3]!==n.message?(c=s.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:n.message}),e[3]=n.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=s.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let f;e[8]!==n.ctaLabel||e[9]!==n.ctaUrl?(f=n.ctaUrl&&n.ctaLabel?s.jsx(z,{asChild:!0,children:s.jsx("a",{href:n.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:n.ctaLabel})}):null,e[8]=n.ctaLabel,e[9]=n.ctaUrl,e[10]=f):f=e[10];const y=`/${encodeURIComponent(a)}/settings/infra-billing`;let d;e[11]!==o?(d=o("common.blockedOrgScreen.goToBilling"),e[11]=o,e[12]=d):d=e[12];let p;e[13]!==y||e[14]!==d?(p=s.jsx(z,{variant:"outline",asChild:!0,children:s.jsx("a",{href:y,children:d})}),e[13]=y,e[14]=d,e[15]=p):p=e[15];let l;e[16]!==o?(l=o("common.blockedOrgScreen.switchOrg"),e[16]=o,e[17]=l):l=e[17];let b;e[18]!==l?(b=s.jsx(z,{variant:"ghost",asChild:!0,children:s.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=b):b=e[19];let u;e[20]!==b||e[21]!==f||e[22]!==p?(u=s.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,p,b]}),e[20]=b,e[21]=f,e[22]=p,e[23]=u):u=e[23];let g;return e[24]!==u||e[25]!==m?(g=s.jsxs(ae,{children:[r,m,u]}),e[24]=u,e[25]=m,e[26]=g):g=e[26],g}function ko(t){const e=D.c(8);let n;e[0]!==t?(n=Ve.orgNotice(t??""),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const o=!!t;let r;return e[4]!==n||e[5]!==a||e[6]!==o?(r={queryKey:n,queryFn:a,enabled:o,staleTime:6e4},e[4]=n,e[5]=a,e[6]=o,e[7]=r):r=e[7],Be(r)}const No="/settings/infra-billing";function _o(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(No)}function Po(t){const e=D.c(7),{org:n,children:a}=t;let o;e[0]!==n.id||e[1]!==n.name?(o={id:n.id,organizationId:n.id,slug:"_org",name:n.name,ui:null},e[0]=n.id,e[1]=n.name,e[2]=o):o=e[2];const r=o;let i;return e[3]!==a||e[4]!==n||e[5]!==r?(i=s.jsx(Sn,{org:n,project:r,children:a}),e[3]=a,e[4]=n,e[5]=r,e[6]=i):i=e[6],i}function Ao(){const t=Ot(),e=Zn(),{org:n}=dt(),a=fn({strict:!1}),o=zt(),{openPanel:r,closePanel:i}=Rn(),c=ts(),m=ns(),f=ss(),y=os(),d=(u,g=!0)=>t({to:".",search:u,replace:g}),p=()=>d(u=>({...u,sidepanel:!0})),l=(u,g,h)=>{const x=!!m&&m===u;m&&!x&&So(m,{tab:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const S=x?null:wo(u),v=Lt(n.id).id,w=yo({prev:{virtualmcpid:c,tabId:o,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:g,decopilotId:v,savedLayout:S,opts:h,autosendValue:zn});return y(u,()=>w.search,{virtualMcpId:g,view:{tabId:w.tabId}})};return{openSidePanel:p,setTaskId:l,createNewTask:async(u,g,h)=>{const x=crypto.randomUUID(),S=u??f;try{await e?.create({id:x,virtual_mcp_id:S,...g?{branch:g}:{}})}catch{}l(x,S,{...h,newThread:!0})},openTab:r,closeTab:i}}const Io=new Set(["/$org/","/$org/home"]);function Co(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Eo},t[0]=e):e=t[0],Dt(e)}function Eo(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&Io.has(e)}function Oo(){const t=D.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=hn(e)?.params.org,[o,r]=G.useState(!1),[i,c]=eo(),[m,f]=Wn(),y=gn(),d=Co(),p=a??"";let l;t[1]!==p?(l=Wt(p),t[1]=p,t[2]=l):l=t[2];const b=!!a&&d;let u;t[3]!==l||t[4]!==b?(u={...l,enabled:b},t[3]=l,t[4]=b,t[5]=u):u=t[5],Be(u);const{data:g}=Me.useSession(),h=g?.user?.id;let x,S;t[6]!==y?(x=()=>{const L=B=>{if(pt(B)&&B.code==="KeyK"){B.preventDefault(),Xs();return}if(B.key==="?"&&!xn(B.target)){B.preventDefault(),r(!0);return}pt(B)&&B.code==="BracketLeft"&&y.history.canGoBack()&&(B.preventDefault(),y.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},S=[y],t[6]=y,t[7]=x,t[8]=S):(x=t[7],S=t[8]),G.useEffect(x,S);let v;t[9]!==a||t[10]!==h?(v=pn(a,h),t[9]=a,t[10]=h,t[11]=v):v=t[11];const{data:w}=Nt(v),k=w?.id,j=w?.slug,{data:T}=is(k,j),P=!!T?.ssoRequired&&!T.authenticated,{data:N}=ko(j);let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_={select:$o},t[12]=_):_=t[12];const I=Dt(_),O=N?.severity==="block"&&!_o(I),E=k??"",R=j??"";let A;t[13]!==R||t[14]!==E?(A=Vn({connectionId:$t,orgId:E,orgSlug:R}),t[13]=R,t[14]=E,t[15]=A):A=t[15];const F=!!k&&!!j;let M;if(t[16]!==A||t[17]!==F?(M={...A,enabled:F},t[16]=A,t[17]=F,t[18]=M):M=t[18],Be(M),(!w||gt(w)||P||O)&&Zs(),!w){let L;return t[19]!==a?(L=s.jsx(ys,{orgSlug:a}),t[19]=a,t[20]=L):L=t[20],L}if(gt(w)){localStorage.getItem(Ge.lastOrgSlug())===a&&localStorage.removeItem(Ge.lastOrgSlug()),_t()?.org===a&&Pt();let L;return t[21]!==w.name?(L=s.jsx(yn,{orgName:w.name}),t[21]=w.name,t[22]=L):L=t[22],L}if(O&&N){let L;return t[23]!==w.slug||t[24]!==N?(L=s.jsx(To,{notice:N,orgSlug:w.slug}),t[23]=w.slug,t[24]=N,t[25]=L):L=t[25],L}if(P){let L;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==T.domain?(L=s.jsx(vo,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:T.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=T.domain,t[30]=L):L=t[30],L}const te=w.logo??null;let q;t[31]!==w||t[32]!==te?(q={...w,logo:te},t[31]=w,t[32]=te,t[33]=q):q=t[33];let K;t[34]!==w?(K=s.jsx(po,{activeOrg:w}),t[34]=w,t[35]=K):K=t[35];let Q;t[36]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(bn,{}),t[36]=Q):Q=t[36];let $;t[37]===Symbol.for("react.memo_cache_sentinel")?($=s.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[s.jsx(Bs,{}),s.jsx(io,{})]}),t[37]=$):$=t[37];let H;t[38]!==i||t[39]!==c?(H=i&&s.jsx(Ws,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=H):H=t[40];let W;t[41]!==m||t[42]!==f?(W=m&&s.jsx(Yn,{open:!0,onOpenChange:f,source:Qn()}),t[41]=m,t[42]=f,t[43]=W):W=t[43];let U;t[44]!==o?(U=s.jsx(Hs,{open:o,onOpenChange:r}),t[44]=o,t[45]=U):U=t[45];let Y;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(uo,{}),t[46]=Y):Y=t[46];let X;return t[47]!==q||t[48]!==K||t[49]!==H||t[50]!==W||t[51]!==U?(X=s.jsxs(Po,{org:q,children:[K,Q,$,H,W,U,Y]}),t[47]=q,t[48]=K,t[49]=H,t[50]=W,t[51]=U,t[52]=X):X=t[52],X}function $o(t){return t.location.pathname}function Lo(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(es,{children:s.jsx(Oo,{})}),t[0]=e):e=t[0],e}const di=Object.freeze(Object.defineProperty({__proto__:null,default:Lo,usePanelActions:Ao},Symbol.toStringTag,{value:"Module"}));export{bs as L,Ao as a,Ls as b,Ps as c,ci as d,di as e,li as f,Bt as i,ai as r,ri as s,ko as u};