decocms 4.524.1 → 4.524.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-Bp4fmUBo.js → ActiveShapeUtils-C-rHC-K0.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-Bq5T03B8.js → AlertCircle-CIClX1OX.js} +1 -1
  3. package/dist/client/assets/{AreaChart-CCyND0Jp.js → AreaChart-CFefRI3l.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-Bwi_Jr7f.js → ArrowLeft-hUis4zpK.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-CzX0fTk7.js → ArrowUp-DvNrLRdk.js} +1 -1
  6. package/dist/client/assets/{BarChart-wLDzzyOQ.js → BarChart-BD4Z4ti7.js} +1 -1
  7. package/dist/client/assets/{Building02-A_MT9tNO.js → Building02-DyaG8VRs.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-B0qX_dpC.js → CartesianChart-Cm6m5mMn.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-BDZ_2Tmn.js → CategoricalChart-B2xwR0Vg.js} +1 -1
  10. package/dist/client/assets/{CheckCircle-BE1i_X4b.js → CheckCircle-IjQMURt4.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-DNrt0MHW.js → ChevronSelectorVertical-DSrF7Kt-.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-RlBkcpdd.js → ChevronUp-DZpXGp6s.js} +1 -1
  13. package/dist/client/assets/{Copy01-B9x501ud.js → Copy01-DelcC4NE.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-Bu_qRR36.js → CreditCard01-cYImG8Bl.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-D9231JAc.js → DotsVertical-Cd1ayiT8.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-PGp8cmoe.js → ErrorBarContext-3Qb2LA4z.js} +1 -1
  17. package/dist/client/assets/{Globe04-DQlP6Nhr.js → Globe04-C3AUDQA6.js} +1 -1
  18. package/dist/client/assets/{Image01-ClayPF_a.js → Image01-BmkGkBEJ.js} +1 -1
  19. package/dist/client/assets/{Key01-CxKYO-oQ.js → Key01-BJu0utQ9.js} +1 -1
  20. package/dist/client/assets/{Link01-B7BHRxIW.js → Link01-CpEeBnOB.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-XqJUgSE7.js → LinkBroken01-BbJzP52K.js} +1 -1
  22. package/dist/client/assets/{Minus-Bh6ogRng.js → Minus-Beni9ibl.js} +1 -1
  23. package/dist/client/assets/{Monitor01-BpzvJnXA.js → Monitor01-DIpgHRZ3.js} +1 -1
  24. package/dist/client/assets/{Play-w4omVTRa.js → Play-CeJs-Z9F.js} +1 -1
  25. package/dist/client/assets/{Plus-CcJNnBya.js → Plus-Dp5dZDoY.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-CI6ZmeJ0.js → ReferenceLine-BlgL76sy.js} +1 -1
  27. package/dist/client/assets/{SearchMd-5lGv5a5H.js → SearchMd-DkOimU4h.js} +1 -1
  28. package/dist/client/assets/{Sector-gkUUnvA4.js → Sector-DYInMAbx.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-C82UeRR9.js → ShoppingBag01-CrAecsFE.js} +1 -1
  30. package/dist/client/assets/{Sun-IvvKZ51n.js → Sun-Dm3m8VPj.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-B1MoYKPo.js → SwitchHorizontal01-BvXNAenZ.js} +1 -1
  32. package/dist/client/assets/{Tool01-BvlRH5Ln.js → Tool01-CyfGI7T6.js} +1 -1
  33. package/dist/client/assets/{Trash01-C9E8l_mI.js → Trash01-BneWuuYf.js} +1 -1
  34. package/dist/client/assets/{Upload01-mlw10ZK-.js → Upload01-CNkWpiz7.js} +1 -1
  35. package/dist/client/assets/{UserSquare-DwNuAluZ.js → UserSquare-BWlOHIw0.js} +1 -1
  36. package/dist/client/assets/{Users01-DcHPIKgH.js → Users01-ugdEQXdG.js} +1 -1
  37. package/dist/client/assets/{XClose-BBReaSBA.js → XClose-BHn8yO7p.js} +1 -1
  38. package/dist/client/assets/{ZoomOut-CnbxUNSo.js → ZoomOut-Csm0orCM.js} +1 -1
  39. package/dist/client/assets/{access-gate-BNOWXoYR.js → access-gate-AGX410gm.js} +1 -1
  40. package/dist/client/assets/{add-connection-dialog-CEj8kbGq.js → add-connection-dialog-7qj2kjMr.js} +1 -1
  41. package/dist/client/assets/agent-analytics-Cbdz4epN.js +1 -0
  42. package/dist/client/assets/agent-app-B-kKN9Kk.js +1 -0
  43. package/dist/client/assets/{agent-assets-CppO2yKd.js → agent-assets-r6VBDeE0.js} +1 -1
  44. package/dist/client/assets/{agent-automation-BtSTyUKu.js → agent-automation-DM7_Ee5Y.js} +1 -1
  45. package/dist/client/assets/{agent-automations-Bf-0_57T.js → agent-automations-BUj7_vKE.js} +1 -1
  46. package/dist/client/assets/agent-calendar-D_we3tsY.js +1 -0
  47. package/dist/client/assets/{agent-connect-sources-C_0x6Udu.js → agent-connect-sources-IL9oYYUF.js} +1 -1
  48. package/dist/client/assets/agent-deck-w0DJ8inL.js +1 -0
  49. package/dist/client/assets/{agent-e2e-DokyQFgS.js → agent-e2e-CAHEpLI3.js} +1 -1
  50. package/dist/client/assets/agent-experiments-zafEuLfN.js +1 -0
  51. package/dist/client/assets/{agent-file-B5Z-mSXW.js → agent-file-CtLzmiB2.js} +1 -1
  52. package/dist/client/assets/{agent-hosting-v3_GHpmO.js → agent-hosting-Bu4SIylb.js} +1 -1
  53. package/dist/client/assets/{agent-icon-KvVT3fA8.js → agent-icon-BXl9rcx1.js} +1 -1
  54. package/dist/client/assets/agent-library-B6GAeK3B.js +1 -0
  55. package/dist/client/assets/agent-library-file-_ugelwAI.js +1 -0
  56. package/dist/client/assets/agent-monitor-BYj2OHl4.js +1 -0
  57. package/dist/client/assets/{agent-overview-9FhsI0nk.js → agent-overview-DT8rD_2N.js} +1 -1
  58. package/dist/client/assets/{agent-releases-CRh6y5DW.js → agent-releases-lt59FkfL.js} +1 -1
  59. package/dist/client/assets/agent-settings-CkcXvyCB.js +1 -0
  60. package/dist/client/assets/{agent-site-editor-BALtgla6.js → agent-site-editor-DWKoTev5.js} +1 -1
  61. package/dist/client/assets/agent-site-editor-code-BNXkN8TJ.js +2 -0
  62. package/dist/client/assets/agent-site-editor-content-BG_Zli2l.js +1 -0
  63. package/dist/client/assets/agent-site-editor-preview-DLqn9oce.js +1 -0
  64. package/dist/client/assets/agent-view-Bvz_UFEk.js +1 -0
  65. package/dist/client/assets/{agent-view-guard-bPXLqLsK.js → agent-view-guard-C0-5YLfj.js} +1 -1
  66. package/dist/client/assets/{agents-list-DrT_0gVh.js → agents-list-BvjBZO8s.js} +1 -1
  67. package/dist/client/assets/{ai-providers-DorJXBZe.js → ai-providers-COtiWMIM.js} +1 -1
  68. package/dist/client/assets/{alert-DEw5BVAh.js → alert-BxwQ9GWi.js} +1 -1
  69. package/dist/client/assets/{analytics-sections-g9foqwY5.js → analytics-sections-CC5Y9IMF.js} +1 -1
  70. package/dist/client/assets/{analytics-tab-D5KshkAH.js → analytics-tab-BHmGa-59.js} +1 -1
  71. package/dist/client/assets/api-keys-C1TdMpH9.js +1 -0
  72. package/dist/client/assets/{api-keys-CIPiPSYY.js → api-keys-MQsmca-c.js} +1 -1
  73. package/dist/client/assets/{app-editor-ChUXEXt-.js → app-editor-C-CTy5jL.js} +1 -1
  74. package/dist/client/assets/{asset-utils-DRJP317P.js → asset-utils-CDMjNYFJ.js} +1 -1
  75. package/dist/client/assets/{auth-Dqt9menC.js → auth-BkqoCGcx.js} +1 -1
  76. package/dist/client/assets/{auth-catchall-B5Em8iaq.js → auth-catchall-D_N41KBC.js} +1 -1
  77. package/dist/client/assets/{auth-entry-CNtzQsix.js → auth-entry-BV7CL8vh.js} +1 -1
  78. package/dist/client/assets/{auth-split-layout-BoWG-no5.js → auth-split-layout-DzZGmD-Q.js} +1 -1
  79. package/dist/client/assets/{authenticate-and-persist-oauth-BziZaG_M.js → authenticate-and-persist-oauth-BD9brsY_.js} +1 -1
  80. package/dist/client/assets/{automation-list-row-BRtPLrxX.js → automation-list-row-BjMjCaBD.js} +1 -1
  81. package/dist/client/assets/{automation-runs-C0-BhIZn.js → automation-runs-DCUB5KLk.js} +1 -1
  82. package/dist/client/assets/{automations-CXOQ5gKM.js → automations-1qHtjGaW.js} +1 -1
  83. package/dist/client/assets/{autosend-BRUzWk70.js → autosend-1U_b-i1h.js} +1 -1
  84. package/dist/client/assets/{badge-Ckz5LqgP.js → badge-DESNookz.js} +1 -1
  85. package/dist/client/assets/{block-document-BPaZQC5L.js → block-document-CcGRU5CL.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-C-uj3YG0.js → blocks-preview-workspace-context-CVuSXtvf.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-BcxrQPOR.js → blocks-tab-states-Bji5rJXk.js} +1 -1
  88. package/dist/client/assets/{blog-schema-Du7ILh7Q.js → blog-schema-BNIKCmEY.js} +1 -1
  89. package/dist/client/assets/{buckets-CKZYh6Ij.js → buckets-DnnlOaFn.js} +1 -1
  90. package/dist/client/assets/{build-improve-prompt-doc-DJhZN8lj.js → build-improve-prompt-doc-CiV-KlOc.js} +1 -1
  91. package/dist/client/assets/{calendar-DkZz5VlH.js → calendar-sUXRafM_.js} +1 -1
  92. package/dist/client/assets/{campaigns-view-Dc88Zs16.js → campaigns-view-3-zGJglb.js} +1 -1
  93. package/dist/client/assets/{capability-load-error-CRB9otZt.js → capability-load-error--G3e97qI.js} +1 -1
  94. package/dist/client/assets/{category-editor-CSPe0t_-.js → category-editor-CS1KKmTs.js} +1 -1
  95. package/dist/client/assets/{cdn-tab-KPAxnC3T.js → cdn-tab-CrOE0j6D.js} +1 -1
  96. package/dist/client/assets/{chart-Bp6om7lj.js → chart-CaDJ4F39.js} +1 -1
  97. package/dist/client/assets/{chat-context-CIOqAIIy.js → chat-context-BvBN6HgF.js} +1 -1
  98. package/dist/client/assets/{chat-draft-OR83_S8w.js → chat-draft-XY_NNpgA.js} +1 -1
  99. package/dist/client/assets/{checkbox-BQ7Ebuar.js → checkbox-D-LzvMyz.js} +1 -1
  100. package/dist/client/assets/{choose-editor-CspgtGFS.js → choose-editor-CRTIidNs.js} +1 -1
  101. package/dist/client/assets/{cli-auth-success-CGyir_iF.js → cli-auth-success-M-vNesnJ.js} +1 -1
  102. package/dist/client/assets/{client-icons-BOMFh2QS.js → client-icons-DJfzDzX4.js} +1 -1
  103. package/dist/client/assets/cms-settings-editor-DQJghv4n.js +1 -0
  104. package/dist/client/assets/{collapsible-BB8_usPT.js → collapsible-B9h9LvCC.js} +1 -1
  105. package/dist/client/assets/{collection-detail-H-UqYky8.js → collection-detail-DB5YnYwu.js} +1 -1
  106. package/dist/client/assets/{collection-display-button-CulG1s8m.js → collection-display-button-BZ7DzDHo.js} +1 -1
  107. package/dist/client/assets/{collection-search-Cf4li4kg.js → collection-search-D_HANk-F.js} +1 -1
  108. package/dist/client/assets/{collection-table-wrapper-DnZHa5Lt.js → collection-table-wrapper-BH6lYVpk.js} +1 -1
  109. package/dist/client/assets/{collection-tabs-x8ccQUAC.js → collection-tabs-H7yEtuRH.js} +1 -1
  110. package/dist/client/assets/{column-rules-C_DWUbCh.js → column-rules-CNwPb3ah.js} +1 -1
  111. package/dist/client/assets/{combobox-BZoZToki.js → combobox-BfNsB6Ea.js} +1 -1
  112. package/dist/client/assets/{command-MmMDew8i.js → command-DoejxN8Q.js} +1 -1
  113. package/dist/client/assets/{companion-mcps-section-By8_AO07.js → companion-mcps-section-DQptjkfL.js} +1 -1
  114. package/dist/client/assets/{config-DBn3iCC3.js → config-CjsHeG1l.js} +1 -1
  115. package/dist/client/assets/{connect-DbK_vN0J.js → connect-KGH4OYue.js} +1 -1
  116. package/dist/client/assets/{connect-layout-9tsE00M7.js → connect-layout-C8XNo1vh.js} +1 -1
  117. package/dist/client/assets/{connect-source-dialog-DqWilbbC.js → connect-source-dialog-CKPrWV3W.js} +1 -1
  118. package/dist/client/assets/{connection-QGwhnKZn.js → connection-DgmraTnv.js} +1 -1
  119. package/dist/client/assets/{connection-card-DEMVrMsW.js → connection-card-nzYl3iaE.js} +1 -1
  120. package/dist/client/assets/{connection-detail-4PyaBO0_.js → connection-detail-thguseWo.js} +1 -1
  121. package/dist/client/assets/{connection-form-helpers-DCRY9s0M.js → connection-form-helpers-DQAPN_By.js} +1 -1
  122. package/dist/client/assets/{connections-CpcdB3jc.js → connections-DGmAEet-.js} +1 -1
  123. package/dist/client/assets/{content-tab-YME7HMCb.js → content-tab-BskMZIA-.js} +3 -3
  124. package/dist/client/assets/{context-oSwYvz9P.js → context-BTZ4zLZ6.js} +1 -1
  125. package/dist/client/assets/{context-menu-Cpvztbef.js → context-menu-DXOWR6Jg.js} +1 -1
  126. package/dist/client/assets/{context-shell-BVBpRdKB.js → context-shell-C9dd2zeB.js} +3 -3
  127. package/dist/client/assets/{core.esm-B2cbbV3O.js → core.esm-kr0nDMAf.js} +1 -1
  128. package/dist/client/assets/{create-organization-dialog-NLldLLor.js → create-organization-dialog-VXkZbmzL.js} +1 -1
  129. package/dist/client/assets/{daily-pulse-ClSeB_Ta.js → daily-pulse-WpcSkDI1.js} +1 -1
  130. package/dist/client/assets/{discover-DmBynuR0.js → discover-BwWAcy7q.js} +1 -1
  131. package/dist/client/assets/{domain-settings-Cu3Pj63v.js → domain-settings-B3KwV4Bi.js} +1 -1
  132. package/dist/client/assets/{drawer-GssD8cb3.js → drawer-BxmRq7z0.js} +1 -1
  133. package/dist/client/assets/{editor-classes-CcPgajKG.js → editor-classes-C1mRh06j.js} +1 -1
  134. package/dist/client/assets/{editor-BTovmEAS.js → editor-vxR6fGAu.js} +1 -1
  135. package/dist/client/assets/{empty-state-D86P1Giw.js → empty-state-BXpVXa8p.js} +1 -1
  136. package/dist/client/assets/{empty-state-DLNzdrwg.js → empty-state-C0q6FDCT.js} +1 -1
  137. package/dist/client/assets/{experiments-tab-choice-pVOiMOWe.js → experiments-tab-choice-CJW0rlLk.js} +1 -1
  138. package/dist/client/assets/{experiments-tab-CjpJzYQ9.js → experiments-tab-vC9IxL9H.js} +1 -1
  139. package/dist/client/assets/{extract-connection-data-DwkOg2rJ.js → extract-connection-data-DyihSSH6.js} +1 -1
  140. package/dist/client/assets/{feature-gate-BIwsQPiQ.js → feature-gate-B2DL7P_r.js} +1 -1
  141. package/dist/client/assets/{feature-paywall-DpVlsq5a.js → feature-paywall-CaUW3vBu.js} +1 -1
  142. package/dist/client/assets/{file-explorer-B9Wz0lPl.js → file-explorer-B6YWvV4f.js} +1 -1
  143. package/dist/client/assets/{file-preview-CX5xfaHR.js → file-preview-p8MVe0Co.js} +1 -1
  144. package/dist/client/assets/{file-share-button-Cx66riM5.js → file-share-button-BwVAEVZB.js} +1 -1
  145. package/dist/client/assets/{file-type-icon-tAeiI9_2.js → file-type-icon-T5-JgFJO.js} +1 -1
  146. package/dist/client/assets/{folder-icon-C25vLo5g.js → folder-icon-U3eZ3MHL.js} +1 -1
  147. package/dist/client/assets/{form-CKF06Eu0.js → form-BKxpLzV1.js} +1 -1
  148. package/dist/client/assets/{general-CA7uhFzP.js → general-twaLFZ_x.js} +1 -1
  149. package/dist/client/assets/{held-block-view-CU5t1B8c.js → held-block-view-DF-dsPP4.js} +3 -3
  150. package/dist/client/assets/{home-BuPVKVzx.js → home-B70oGoSa.js} +1 -1
  151. package/dist/client/assets/{icon-button-5JlhYc9R.js → icon-button-BpGFmmxF.js} +1 -1
  152. package/dist/client/assets/{index-B8bCJ3Gm.js → index-B54Dwq_E.js} +1 -1
  153. package/dist/client/assets/{index-AY0yzUAx.js → index-B5KgRDmR.js} +1 -1
  154. package/dist/client/assets/{index-C4tYnNih.js → index-BGCeOWuH.js} +5 -5
  155. package/dist/client/assets/{index-DG_Aoo8H.js → index-BHWlfC8b.js} +1 -1
  156. package/dist/client/assets/{index-BLRFIWph.js → index-C5dWtjQZ.js} +1 -1
  157. package/dist/client/assets/{index-B0Hb2bUK.js → index-C91ph34T.js} +1 -1
  158. package/dist/client/assets/{index-CDfG-oXn.js → index-CSsLL5lB.js} +1 -1
  159. package/dist/client/assets/{index-CMXP-HlZ.js → index-C_H0V1sq.js} +1 -1
  160. package/dist/client/assets/{index-CJ8-jtJ3.js → index-CbIYCvQg.js} +1 -1
  161. package/dist/client/assets/{index-Bz0XRw1e.js → index-CiU3Lit1.js} +1 -1
  162. package/dist/client/assets/{index-DMcUJv3F.js → index-DEhotlUt.js} +1 -1
  163. package/dist/client/assets/{index-DQ4MCRAi.js → index-FG3t9V84.js} +1 -1
  164. package/dist/client/assets/{index-D8kI0oe2.js → index-Y7xr7TpK.js} +1 -1
  165. package/dist/client/assets/{index-BerfNxBu.js → index-jBUTr_mZ.js} +1 -1
  166. package/dist/client/assets/{index-redirect-DSkhUiz1.js → index-redirect-BrPjqRgi.js} +1 -1
  167. package/dist/client/assets/{index-CieIETkx.js → index-vWFZdxRo.js} +1 -1
  168. package/dist/client/assets/{infiniteQueryObserver-CyNcT3qz.js → infiniteQueryObserver-DdJGfIBw.js} +1 -1
  169. package/dist/client/assets/{infra-billing-OmwhvZsy.js → infra-billing-DA3iH8RT.js} +1 -1
  170. package/dist/client/assets/{input-C0IBlV9i.js → input-BJWjsMTr.js} +3 -3
  171. package/dist/client/assets/{input-Drj3v1Rm.js → input-DdaB0aDZ.js} +1 -1
  172. package/dist/client/assets/{integration-icon-wG7mou98.js → integration-icon-IfDXGweg.js} +1 -1
  173. package/dist/client/assets/{jira-icon-Ct9neMH3.js → jira-icon-Btvsno6j.js} +1 -1
  174. package/dist/client/assets/{label-Kngegn1Y.js → label-_maV4eWQ.js} +1 -1
  175. package/dist/client/assets/{layout-D1PXm8wr.js → layout-BnRLK8Je.js} +1 -1
  176. package/dist/client/assets/{legacy-agents-deep-CqqR00U7.js → legacy-agents-deep-EQC0E9us.js} +1 -1
  177. package/dist/client/assets/{legacy-main-redirect-j5rWQTR7.js → legacy-main-redirect-C8Z33lV9.js} +1 -1
  178. package/dist/client/assets/library-DwSKFwop.js +1 -0
  179. package/dist/client/assets/{login-dCZC1OIS.js → login-CRL4Hxp0.js} +1 -1
  180. package/dist/client/assets/{markdown-C-J5-sTt.js → markdown-Pxz-NCAq.js} +1 -1
  181. package/dist/client/assets/{mcp-app-renderer-vHEVQIZL.js → mcp-app-renderer-C-WjAbV3.js} +1 -1
  182. package/dist/client/assets/{mcp-oauth-5QMuPFQa.js → mcp-oauth-UPAY9qQh.js} +1 -1
  183. package/dist/client/assets/{mcp-oauth-CnB7EPe0.js → mcp-oauth-ZXLBTZQF.js} +1 -1
  184. package/dist/client/assets/{members-D62Ns7xb.js → members-wnvPkZUo.js} +1 -1
  185. package/dist/client/assets/{memory-BRnI6IWM.js → memory-5e8aSOvx.js} +1 -1
  186. package/dist/client/assets/{mini-report-page-RV5HcY13.js → mini-report-page-BJU2AtSk.js} +1 -1
  187. package/dist/client/assets/{mock-board-C5ljPU5m.js → mock-board-KL7JXnQ3.js} +3 -3
  188. package/dist/client/assets/{monaco-editor-CG1RPml4.js → monaco-editor-CEz6AH84.js} +1 -1
  189. package/dist/client/assets/{monitoring-kGWQYp7Z.js → monitoring-CSgf9qta.js} +1 -1
  190. package/dist/client/assets/{monitoring-stats-row-BpfaRq5_.js → monitoring-stats-row-CQA6lBFw.js} +1 -1
  191. package/dist/client/assets/{multi-select-D79TIC6v.js → multi-select-BRkampvt.js} +1 -1
  192. package/dist/client/assets/{mustache-BdHuXtQC.js → mustache-D-9UMI1S.js} +1 -1
  193. package/dist/client/assets/{named-rule-uses-DDsPTKwP.js → named-rule-uses-5Sl1aIdP.js} +1 -1
  194. package/dist/client/assets/{named-rule-view-CelDjugE.js → named-rule-view-ChwtdSTO.js} +1 -1
  195. package/dist/client/assets/{new-project-dialog-DQPlctqf.js → new-project-dialog-BZU_MI3Q.js} +1 -1
  196. package/dist/client/assets/{oauth-callback-ah6cR8xQ.js → oauth-callback-CIbrOy6h.js} +1 -1
  197. package/dist/client/assets/{oauth-callback-ai-provider-C5jhPG9E.js → oauth-callback-ai-provider-DEFfXzWj.js} +1 -1
  198. package/dist/client/assets/{onboarding-BPgxXbEy.js → onboarding-BB5U3n3W.js} +1 -1
  199. package/dist/client/assets/{openai-conversation-COLqoqqY.js → openai-conversation-CeRUtzJI.js} +1 -1
  200. package/dist/client/assets/{optimistic-project-sidebar-views-BXm7Dv06.js → optimistic-project-sidebar-views-BpMb4HEN.js} +1 -1
  201. package/dist/client/assets/{order-monitor-day-DzTTlxAw.js → order-monitor-day-DUguCaIU.js} +1 -1
  202. package/dist/client/assets/{organization-choice-CMYQUq77.js → organization-choice-HyxmQkdd.js} +1 -1
  203. package/dist/client/assets/{orgs-Cb-j6SHO.js → orgs-C96LReuI.js} +1 -1
  204. package/dist/client/assets/{page-seo-form-CCa1Xirx.js → page-seo-form-Dx0hMHSf.js} +1 -1
  205. package/dist/client/assets/{pair-CRFLUGB-.js → pair-DVCmCnBf.js} +1 -1
  206. package/dist/client/assets/{parse-sections-CBOr5TcU.js → parse-sections-BHOqhf01.js} +1 -1
  207. package/dist/client/assets/{plan-CZiCKWsL.js → plan-D4Ztu-Mv.js} +1 -1
  208. package/dist/client/assets/{plan-ladder-Clu_D1dM.js → plan-ladder-BT3Oz8Ev.js} +1 -1
  209. package/dist/client/assets/{popover-7hw0_Cgu.js → popover-SHWbH4i8.js} +1 -1
  210. package/dist/client/assets/{post-calendar-oSfCtk_Z.js → post-calendar-WzBoQET7.js} +1 -1
  211. package/dist/client/assets/{post-editor-DqdLoENq.js → post-editor-CtDaen5o.js} +1 -1
  212. package/dist/client/assets/{preview-content-tpqwn9DV.js → preview-content-BhIMVcYB.js} +1 -1
  213. package/dist/client/assets/{preview-dialog-DDUA3zbn.js → preview-dialog-DoeqGaQU.js} +1 -1
  214. package/dist/client/assets/{preview-panel-B7KDfk34.js → preview-panel-DMNxFjEG.js} +1 -1
  215. package/dist/client/assets/{preview-tab-CwHbL-uL.js → preview-tab-C2Feq6DP.js} +3 -3
  216. package/dist/client/assets/{product-picker-dialog-q_j-OMur.js → product-picker-dialog-BF4qIVtr.js} +1 -1
  217. package/dist/client/assets/{profile--UpTdMEW.js → profile-CA9XT1yH.js} +1 -1
  218. package/dist/client/assets/{project-app-view-BDtUwetx.js → project-app-view-DnVvuNnI.js} +1 -1
  219. package/dist/client/assets/{project-apps-M24hPHW2.js → project-apps-BfDjxodR.js} +1 -1
  220. package/dist/client/assets/{project-feed-Dm5w30sM.js → project-feed-q9sZKOfh.js} +1 -1
  221. package/dist/client/assets/{project-icon-BlULUcrw.js → project-icon-CjQuZIIb.js} +1 -1
  222. package/dist/client/assets/project-reports-5DLZwE2I.js +1 -0
  223. package/dist/client/assets/project-tasks-ByxD-zBq.js +1 -0
  224. package/dist/client/assets/{projects-C9fr3jni.js → projects-DvPJEsmw.js} +1 -1
  225. package/dist/client/assets/{projects-empty-state-DRas-7X9.js → projects-empty-state-CEDwkoTb.js} +1 -1
  226. package/dist/client/assets/{prompts-CiGgpCOz.js → prompts-B3mSxUa6.js} +1 -1
  227. package/dist/client/assets/record-editor-hmgA54LD.js +1 -0
  228. package/dist/client/assets/{redirect-editor-DbPiIIKk.js → redirect-editor-DS-wqNcI.js} +1 -1
  229. package/dist/client/assets/{releases-api-DA_Oz9WG.js → releases-api-BmEWQbgz.js} +1 -1
  230. package/dist/client/assets/{reports-Czva0tSD.js → reports-BrWasOQ1.js} +1 -1
  231. package/dist/client/assets/reports-DklBonJw.js +1 -0
  232. package/dist/client/assets/{reports-onboarding-BsOWdPaY.js → reports-onboarding-DU-PrPll.js} +1 -1
  233. package/dist/client/assets/{reports-tab-C2STfD1k.js → reports-tab-ChwZOe5G.js} +2 -2
  234. package/dist/client/assets/{repositories-Dp2o7kK8.js → repositories-BcpDx93s.js} +1 -1
  235. package/dist/client/assets/repositories-CUKAU9Zy.js +1 -0
  236. package/dist/client/assets/{repository-binding-C7GXruB1.js → repository-binding-Meqp5p71.js} +1 -1
  237. package/dist/client/assets/{repository-import-picker-BIFRKH2H.js → repository-import-picker-FH262XPV.js} +1 -1
  238. package/dist/client/assets/{repository-picker-D6fEwnOk.js → repository-picker-DCYyzOOP.js} +1 -1
  239. package/dist/client/assets/{require-capability-DSeRbn1u.js → require-capability-oXulJiLn.js} +1 -1
  240. package/dist/client/assets/{required-auth-layout-D4yn4VOg.js → required-auth-layout-tipFurup.js} +1 -1
  241. package/dist/client/assets/{reset-password-CLlk4Qyg.js → reset-password-3NrSj3Hp.js} +1 -1
  242. package/dist/client/assets/{resizable-B3zVq59U.js → resizable-DhKaPyjj.js} +1 -1
  243. package/dist/client/assets/{resolve-tab-icon-NGCKQk4u.js → resolve-tab-icon-Dllm1_fu.js} +1 -1
  244. package/dist/client/assets/{review-settings-ChOJMpqj.js → review-settings-8QMhy3Lg.js} +1 -1
  245. package/dist/client/assets/{roles-034YEIy0.js → roles-BEcXWCxJ.js} +1 -1
  246. package/dist/client/assets/{route-D3_kGiYP.js → route-7AN9YEMz.js} +1 -1
  247. package/dist/client/assets/{route-DixoE7S2.js → route-CMo6fdQZ.js} +1 -1
  248. package/dist/client/assets/route-lyp-fDsn.js +1 -0
  249. package/dist/client/assets/{sandbox-lifecycle-context-DS1zxfZb.js → sandbox-lifecycle-context-D9P5uTE7.js} +1 -1
  250. package/dist/client/assets/{schema-DXQBt-Da.js → schema-Db9nAPbV.js} +1 -1
  251. package/dist/client/assets/{schema-DIZqRcY2.js → schema-LbfQM_um.js} +1 -1
  252. package/dist/client/assets/{scroll-area-BYOXOcFm.js → scroll-area-Do3s8MFg.js} +1 -1
  253. package/dist/client/assets/{search-input-CM9T7koR.js → search-input-BiW12RB7.js} +1 -1
  254. package/dist/client/assets/{search-toggle-BA_oiAdj.js → search-toggle-C_s2zUEP.js} +1 -1
  255. package/dist/client/assets/{secret-picker-D2Cr-oRZ.js → secret-picker-4kZnJB0L.js} +1 -1
  256. package/dist/client/assets/{secrets-BRbaixQo.js → secrets-D3OOpubP.js} +1 -1
  257. package/dist/client/assets/{section-array-field-TQFJqwVV.js → section-array-field-DlpdCCcl.js} +1 -1
  258. package/dist/client/assets/{sections-05hBo9NL.js → sections-NxijzCAP.js} +1 -1
  259. package/dist/client/assets/{sections-editor-BR_A8Bqr.js → sections-editor-DZMEPtw_.js} +1 -1
  260. package/dist/client/assets/{select-BZ2tKCpr.js → select-C0Q0f4At.js} +1 -1
  261. package/dist/client/assets/{select-model-DskJe0jJ.js → select-model-DlU2H5oA.js} +1 -1
  262. package/dist/client/assets/{seo-editor-DWsRiK1b.js → seo-editor-DOL-unZx.js} +1 -1
  263. package/dist/client/assets/{separator-DdBbm1xl.js → separator-DcYK5L3O.js} +1 -1
  264. package/dist/client/assets/settings-tab-Dk0U9Ztd.js +1 -0
  265. package/dist/client/assets/{sheet-DYw2VD7L.js → sheet-C3lf7JiX.js} +1 -1
  266. package/dist/client/assets/{shell-layout-DQPoLlFW.js → shell-layout-aaJ-Ow-a.js} +1 -1
  267. package/dist/client/assets/{site-draft-actions-dD4jyBUz.js → site-draft-actions-BdvwngLt.js} +1 -1
  268. package/dist/client/assets/site-draft-view-DJ-2XrRv.js +2 -0
  269. package/dist/client/assets/site-editor-DssQOjHQ.js +1 -0
  270. package/dist/client/assets/{site-editor-toast-gO0geSY6.js → site-editor-toast-DS0_fxT0.js} +1 -1
  271. package/dist/client/assets/{skills-BG0VOLIN.js → skills-Db9hF38T.js} +1 -1
  272. package/dist/client/assets/{slider-ApiojjsY.js → slider-Brs1MiDz.js} +1 -1
  273. package/dist/client/assets/{sortable.esm-DPfgkRcd.js → sortable.esm-DR7ZsZlW.js} +1 -1
  274. package/dist/client/assets/{sso-CfSDpa9Z.js → sso-BKJEgj1Q.js} +1 -1
  275. package/dist/client/assets/{suggestion-DTo0Z5su.js → suggestion-BqSBag09.js} +1 -1
  276. package/dist/client/assets/{switch-B3v6apDN.js → switch-DXvm-pfC.js} +1 -1
  277. package/dist/client/assets/{symbol-pDh9bf5z.js → symbol-DhjzVarJ.js} +1 -1
  278. package/dist/client/assets/{synced-repos-oiGV5Ihu.js → synced-repos-BshDcf0T.js} +1 -1
  279. package/dist/client/assets/{tab-icon-glyph-BzFDI553.js → tab-icon-glyph-x6aTS8aC.js} +1 -1
  280. package/dist/client/assets/{table-CANIhtsr.js → table-CsgmIfM7.js} +1 -1
  281. package/dist/client/assets/{tabs-B5O9VNwn.js → tabs-snNNT2OQ.js} +1 -1
  282. package/dist/client/assets/{task-assignee-avatar-BOAf_3H_.js → task-assignee-avatar-CIFZYxqw.js} +1 -1
  283. package/dist/client/assets/{task-board-CBBaN9ua.js → task-board-DZ8Kzwkd.js} +1 -1
  284. package/dist/client/assets/{task-route-1lojPQeZ.js → task-route-B3yf9UbZ.js} +1 -1
  285. package/dist/client/assets/{task-status-DM1NBqlc.js → task-status-BXAKMLjX.js} +1 -1
  286. package/dist/client/assets/{taskboard-analytics-DK79qp1-.js → taskboard-analytics-CzU6hvG8.js} +1 -1
  287. package/dist/client/assets/{tasks-Czi5B_ZB.js → tasks-BfBA5dNC.js} +1 -1
  288. package/dist/client/assets/tasks-DxdBuhqv.js +1 -0
  289. package/dist/client/assets/{textarea-CAZh8Kr5.js → textarea-PZ5-N42X.js} +1 -1
  290. package/dist/client/assets/{thread-analytics-K9PkKnHr.js → thread-analytics-C0N5WioR.js} +1 -1
  291. package/dist/client/assets/{thread-intent-B9ceQWmI.js → thread-intent-DH83rsLQ.js} +1 -1
  292. package/dist/client/assets/{thread-route-gmMlW4oz.js → thread-route-C8i0NIbO.js} +1 -1
  293. package/dist/client/assets/{thread-route-_-Jo9yAq.js → thread-route-D9dyzfFR.js} +1 -1
  294. package/dist/client/assets/{thread-sheet-body-ClyiLZhS.js → thread-sheet-body-6YAeci0o.js} +1 -1
  295. package/dist/client/assets/{time-range-picker-m7OMfbU0.js → time-range-picker-CVmtrNYi.js} +1 -1
  296. package/dist/client/assets/{toggle-group-8XrNtMoS.js → toggle-group-CUFIN5dE.js} +1 -1
  297. package/dist/client/assets/{tool-namespace-cn6zTT0m.js → tool-namespace-Y0TJrGSX.js} +1 -1
  298. package/dist/client/assets/{toolbar-icon-button-fBm5AosV.js → toolbar-icon-button-C6e2VzUh.js} +1 -1
  299. package/dist/client/assets/{tooltip-B1eS9Khq.js → tooltip-9LLsMgGV.js} +1 -1
  300. package/dist/client/assets/{tooltipContext-DMiC5t9-.js → tooltipContext-D1XV88gx.js} +1 -1
  301. package/dist/client/assets/{track-BcscPlt3.js → track-BDVG3U2y.js} +1 -1
  302. package/dist/client/assets/{types-C_LaIhQe.js → types-BO2WHIDA.js} +1 -1
  303. package/dist/client/assets/{url-slug-BEmF9qH1.js → url-slug-DonaWwCk.js} +1 -1
  304. package/dist/client/assets/{usage-stats-DtO_zGwF.js → usage-stats-DBeLsjRR.js} +1 -1
  305. package/dist/client/assets/{use-ai-providers-C315xBlf.js → use-ai-providers-BHsc3bDD.js} +1 -1
  306. package/dist/client/assets/{use-apply-named-rule-9ihG8ELj.js → use-apply-named-rule---oSjx7n.js} +1 -1
  307. package/dist/client/assets/{use-automations-BpSvam4M.js → use-automations-1YEM9DbK.js} +1 -1
  308. package/dist/client/assets/{use-autosave-CRCl3eTr.js → use-autosave-B-Iuf8KI.js} +1 -1
  309. package/dist/client/assets/{use-chat-layout-state-ByIICjWr.js → use-chat-layout-state-C15u8M2V.js} +1 -1
  310. package/dist/client/assets/{use-clock-tick-QAJndZ00.js → use-clock-tick-DIHPLwxm.js} +1 -1
  311. package/dist/client/assets/{use-connect-companion-rEYy0Kcd.js → use-connect-companion-V3BIIJeW.js} +1 -1
  312. package/dist/client/assets/{use-connection-CBlLT-Gl.js → use-connection-BQFGYTV6.js} +1 -1
  313. package/dist/client/assets/{use-content-sync-TKItZ8SP.js → use-content-sync-DPGe01L6.js} +1 -1
  314. package/dist/client/assets/{use-copy-C9NYM8DB.js → use-copy-CxT0JeDz.js} +1 -1
  315. package/dist/client/assets/{use-create-virtual-mcp-DFsMYI92.js → use-create-virtual-mcp-CAv-1I_T.js} +1 -1
  316. package/dist/client/assets/{use-date-fns-locale-bL-I5mOj.js → use-date-fns-locale-BQCqx0nl.js} +1 -1
  317. package/dist/client/assets/{use-debounced-autosave-DfJudaYl.js → use-debounced-autosave-DXyNDYcX.js} +1 -1
  318. package/dist/client/assets/{use-debounced-value-DOPKXMfX.js → use-debounced-value-N-JjpU1V.js} +1 -1
  319. package/dist/client/assets/{use-deco-credits-DL_DG4I5.js → use-deco-credits-DDwwBuMm.js} +1 -1
  320. package/dist/client/assets/{use-decopilot-events-4yDcDH2I.js → use-decopilot-events-CqPtaVnx.js} +1 -1
  321. package/dist/client/assets/{use-delete-connection-3ef0jZgj.js → use-delete-connection-BSNr2bC3.js} +1 -1
  322. package/dist/client/assets/{use-deployment-admin-C2GaZpz9.js → use-deployment-admin-aELFz-ee.js} +1 -1
  323. package/dist/client/assets/{use-fast-preview-draft-url-CN-8cYCq.js → use-fast-preview-draft-url-4INawxcX.js} +1 -1
  324. package/dist/client/assets/{use-file-configs-Dfr8whNN.js → use-file-configs-DH6Ac5Y5.js} +1 -1
  325. package/dist/client/assets/{use-inbox-feed-UXhkZ9eS.js → use-inbox-feed-CXjwjyxO.js} +1 -1
  326. package/dist/client/assets/{use-infinite-scroll-WEv8wBk9.js → use-infinite-scroll-CNc2NI3i.js} +1 -1
  327. package/dist/client/assets/{use-join-requests-Bf1nx4BW.js → use-join-requests-B0daTOT_.js} +1 -1
  328. package/dist/client/assets/{use-main-panel-tabs-CnvhH3AB.js → use-main-panel-tabs-BhdlgJp6.js} +1 -1
  329. package/dist/client/assets/{use-mcp-auth-status-Dxn8Kcei.js → use-mcp-auth-status-CF5TaDec.js} +1 -1
  330. package/dist/client/assets/{use-mcp-client-BkBWhGyj.js → use-mcp-client-P41n2mxI.js} +1 -1
  331. package/dist/client/assets/{use-mcp-prompts-DWjSk3XQ.js → use-mcp-prompts-B3Nr4ZJG.js} +1 -1
  332. package/dist/client/assets/{use-mcp-tools-Cq-ES3mk.js → use-mcp-tools-BNi1ikeO.js} +1 -1
  333. package/dist/client/assets/{use-mobile-BADuLdb7.js → use-mobile-jFUNwYYf.js} +1 -1
  334. package/dist/client/assets/{use-move-blocks-Ds_0OJ4H.js → use-move-blocks-B-yW6Slv.js} +1 -1
  335. package/dist/client/assets/{use-navigate-to-agent-B3bMlZK-.js → use-navigate-to-agent-Dm6cdVpv.js} +1 -1
  336. package/dist/client/assets/{use-open-billing-url-Dfpg8Tio.js → use-open-billing-url-Byo1M4SG.js} +1 -1
  337. package/dist/client/assets/{use-org-fs-Dt6mQNyr.js → use-org-fs-BrF4BnPF.js} +1 -1
  338. package/dist/client/assets/{use-org-repo-syncs-D2j2_BKY.js → use-org-repo-syncs-6ClvuhZj.js} +1 -1
  339. package/dist/client/assets/{use-org-sso-CWvWEDQk.js → use-org-sso-BhUG19nu.js} +1 -1
  340. package/dist/client/assets/{use-organization-roles-DsjUZx1i.js → use-organization-roles-DGB0g1Kk.js} +1 -1
  341. package/dist/client/assets/{use-organization-settings-DBQ6GIch.js → use-organization-settings-BiInrSf0.js} +1 -1
  342. package/dist/client/assets/{use-panel-navigate-DZO4-0o6.js → use-panel-navigate-BJRHz9-t.js} +1 -1
  343. package/dist/client/assets/{use-project-native-view-presence-Y3Sopx8q.js → use-project-native-view-presence-7WN9qseE.js} +1 -1
  344. package/dist/client/assets/{use-project-scope-CKNjz3VB.js → use-project-scope-B0Sibn6g.js} +1 -1
  345. package/dist/client/assets/{use-recent-apps-TrfPEwKE.js → use-recent-apps-C1A023Yo.js} +1 -1
  346. package/dist/client/assets/{use-releases-DSFeRsP3.js → use-releases-tJmW6WNc.js} +1 -1
  347. package/dist/client/assets/{use-reports-diagnostic-YBAEN0Wc.js → use-reports-diagnostic-DOFdWvCv.js} +1 -1
  348. package/dist/client/assets/{use-sandbox-events-C6ionJ0p.js → use-sandbox-events-BNCiNcVF.js} +1 -1
  349. package/dist/client/assets/{use-secrets-xwuuJgHg.js → use-secrets-D7gMnlZB.js} +1 -1
  350. package/dist/client/assets/{use-section-preview-base-BdMX2uY9.js → use-section-preview-base-wA756W4w.js} +1 -1
  351. package/dist/client/assets/{use-session-runtime-CtTWKH1c.js → use-session-runtime-CQn-52Ez.js} +1 -1
  352. package/dist/client/assets/{use-sidebar-collapsed-DXyrU3VA.js → use-sidebar-collapsed-BPZlAUWE.js} +1 -1
  353. package/dist/client/assets/{use-tags-CwZHa3pE.js → use-tags-BqkalJgS.js} +1 -1
  354. package/dist/client/assets/{use-task-board-analytics-BzPvlYE9.js → use-task-board-analytics-CGnOgEtr.js} +1 -1
  355. package/dist/client/assets/{use-task-board-events-qI_skUMm.js → use-task-board-events-DBa8GRgx.js} +1 -1
  356. package/dist/client/assets/{use-task-board-item-prs-CiXpN6jW.js → use-task-board-item-prs-Cz375X0D.js} +1 -1
  357. package/dist/client/assets/{use-task-metadata-E8aNM85o.js → use-task-metadata-DYMge1Ms.js} +1 -1
  358. package/dist/client/assets/{use-thread-analytics-DKupwFaR.js → use-thread-analytics-BgqERo23.js} +1 -1
  359. package/dist/client/assets/{use-thread-outputs-Di1RSISN.js → use-thread-outputs-CxOHL03a.js} +1 -1
  360. package/dist/client/assets/useInfiniteQuery-B_LZh1B0.js +1 -0
  361. package/dist/client/assets/{useQueries-BOzKsoXi.js → useQueries-CunEDk2w.js} +1 -1
  362. package/dist/client/assets/useSuspenseInfiniteQuery-CgbZRhlW.js +1 -0
  363. package/dist/client/assets/{users-Cup6bGNw.js → users-Ckolvc6J.js} +1 -1
  364. package/dist/client/assets/{utils-wTX1Gyo-.js → utils-OgCNPQQr.js} +1 -1
  365. package/dist/client/assets/{variant-calendar-Doi5lHFb.js → variant-calendar-CVJKB37H.js} +1 -1
  366. package/dist/client/assets/{variant-matcher-override-LGFgaSJn.js → variant-matcher-override-DMBn3So8.js} +1 -1
  367. package/dist/client/assets/{virtual-mcp-DO56RLOP.js → virtual-mcp-CjF7Cu1C.js} +1 -1
  368. package/dist/client/assets/{watch-sse-pool-BBTCM7MS.js → watch-sse-pool-D75R450R.js} +1 -1
  369. package/dist/client/index.html +1 -1
  370. package/dist/server/server.js +1102 -1102
  371. package/package.json +1 -1
  372. package/dist/client/assets/agent-analytics-DcqQcnI_.js +0 -1
  373. package/dist/client/assets/agent-app-BWM9EEcJ.js +0 -1
  374. package/dist/client/assets/agent-calendar-Bp6Y1tPy.js +0 -1
  375. package/dist/client/assets/agent-deck-BOaej8yV.js +0 -1
  376. package/dist/client/assets/agent-experiments-7O17P9sC.js +0 -1
  377. package/dist/client/assets/agent-library-B3W6CGJl.js +0 -1
  378. package/dist/client/assets/agent-library-file-CHgoG2j3.js +0 -1
  379. package/dist/client/assets/agent-monitor-C9pMT5KA.js +0 -1
  380. package/dist/client/assets/agent-settings-CfNarIdW.js +0 -1
  381. package/dist/client/assets/agent-site-editor-code-D6BBbIl8.js +0 -2
  382. package/dist/client/assets/agent-site-editor-content-DAMOp9X5.js +0 -1
  383. package/dist/client/assets/agent-site-editor-preview-B0IbykqU.js +0 -1
  384. package/dist/client/assets/agent-view-B5q0EqmS.js +0 -1
  385. package/dist/client/assets/api-keys-B-qwgNok.js +0 -1
  386. package/dist/client/assets/cms-settings-editor-DbU_3ksB.js +0 -1
  387. package/dist/client/assets/library-BB_eexuL.js +0 -1
  388. package/dist/client/assets/project-reports-BXESPzCU.js +0 -1
  389. package/dist/client/assets/project-tasks-CRajXa6Z.js +0 -1
  390. package/dist/client/assets/record-editor-Dw_A1nYV.js +0 -1
  391. package/dist/client/assets/reports-I3thcjRj.js +0 -1
  392. package/dist/client/assets/repositories-B5BeE82u.js +0 -1
  393. package/dist/client/assets/route-B9sbaFmI.js +0 -1
  394. package/dist/client/assets/settings-tab-5QV5D7iT.js +0 -1
  395. package/dist/client/assets/site-draft-view-Ds5aQAqU.js +0 -2
  396. package/dist/client/assets/site-editor-D8vmphjE.js +0 -1
  397. package/dist/client/assets/tasks--LaoDxg8.js +0 -1
  398. package/dist/client/assets/useInfiniteQuery-CtWUiDbh.js +0 -1
  399. package/dist/client/assets/useSuspenseInfiniteQuery-Diw12fEI.js +0 -1
@@ -1 +1 @@
1
- import{c as R,b as G,e as tt,j as n,B as z,t as Ke,o as st,cU as ae,ag as jt,a as Ue,J as Ut,U as kt,K as Je,cV as Gt,cW as Jt,az as Ge,l as ut,be as Vt,z as mt,r as Q,ae as Wt,af as te,cX as Yt,w as Tt,x as Nt,v as _t,D as Pt,d as At,a4 as ct,R as Ct,m as Fe,C as at,aX as Et,cY as Qt,b1 as Xt,b8 as ft,H as Zt,cZ as en,aY as tn,y as nn,c_ as sn,c$ as on,d0 as an,d1 as rn,d2 as ln,a5 as cn,u as dn,a6 as un,d3 as mn,d4 as fn,k as Ot,d5 as ht,d6 as hn,O as gn,b3 as gt,d7 as pn,a0 as yn}from"./index-C4tYnNih.js";import{t as It}from"./Building02-A_MT9tNO.js";import{i as bn,s as ee}from"./UserSquare-DwNuAluZ.js";import{aA as xn,W as wn,I as it,aa as Sn,K as vn,aB as jn,n as pt,g as kn,p as Tn,k as Nn,aC as _n,l as Pn}from"./agent-icon-KvVT3fA8.js";import{s as An}from"./XClose-BBReaSBA.js";import{a as Cn,u as En}from"./use-project-scope-CKNjz3VB.js";import{u as $t,a as On}from"./use-panel-navigate-DZO4-0o6.js";import{i as se}from"./CheckCircle-BE1i_X4b.js";import{i as yt}from"./Monitor01-BpzvJnXA.js";import{i as qe}from"./ZoomOut-CnbxUNSo.js";import{u as In}from"./use-clock-tick-QAJndZ00.js";import{s as bt}from"./Plus-CcJNnBya.js";import{a as $n}from"./Tool01-BvlRH5Ln.js";import{b as ne,a as Be,f as Ln,e as Dn,c as Rn,C as zn}from"./command-MmMDew8i.js";import{I as qn}from"./integration-icon-wG7mou98.js";import{P as Fn}from"./project-icon-BlULUcrw.js";import{a as Bn,m as Mn}from"./use-mcp-client-BkBWhGyj.js";import{u as Kn,a as Hn,n as Un}from"./new-project-dialog-DQPlctqf.js";import{S as Gn,u as Jn}from"./thread-intent-B9ceQWmI.js";import{R as Vn}from"./required-auth-layout-D4yn4VOg.js";import{A as Wn}from"./autosend-BRUzWk70.js";import{u as Yn,a as Qn,b as Xn,c as Zn}from"./thread-route-_-Jo9yAq.js";import{u as es}from"./use-org-sso-CWvWEDQk.js";function ts(t){const e=R.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=G();let c;e[0]!==r||e[1]!==i?(c=async()=>{const P=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),C=await P.json();if(!P.ok||!C.success)throw new Error(C.error??i("common.autoDomainJoinScreen.joinError"));return C},e[0]=r,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==r?(m=P=>{window.location.href=`/${P.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=P=>{Ke.error(P instanceof Error?P.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let S;e[7]!==c||e[8]!==m||e[9]!==h?(S={mutationFn:c,onSuccess:m,onError:h},e[7]=c,e[8]=m,e[9]=h,e[10]=S):S=e[10];const u=tt(S),p=ns;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(st,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(It,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let g;e[14]!==o||e[15]!==i?(g=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=g):g=e[16];let f;e[17]!==g?(f=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[17]=g,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let w;e[22]!==d?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=w):w=e[23];let y;e[24]!==f||e[25]!==w?(y=n.jsxs("div",{className:"space-y-2",children:[f,w]}),e[24]=f,e[25]=w,e[26]=y):y=e[26];let x;e[27]!==u?(x=()=>u.mutate(),e[27]=u,e[28]=x):x=e[28];let v;e[29]!==u.isPending||e[30]!==o||e[31]!==i?(v=u.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=u.isPending,e[30]=o,e[31]=i,e[32]=v):v=e[32];let b;e[33]!==u.isPending||e[34]!==x||e[35]!==v?(b=n.jsx(z,{onClick:x,disabled:u.isPending,children:v}),e[33]=u.isPending,e[34]=x,e[35]=v,e[36]=b):b=e[36];const T=u.isPending;let j;e[37]!==i?(j=i("common.goHome"),e[37]=i,e[38]=j):j=e[38];let k;e[39]!==u.isPending||e[40]!==j?(k=n.jsx(z,{variant:"ghost",onClick:p,disabled:T,children:j}),e[39]=u.isPending,e[40]=j,e[41]=k):k=e[41];let _;e[42]!==b||e[43]!==k?(_=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[b,k]}),e[42]=b,e[43]=k,e[44]=_):_=e[44];let N;return e[45]!==y||e[46]!==_||e[47]!==l?(N=n.jsxs(ae,{children:[l,y,_]}),e[45]=y,e[46]=_,e[47]=l,e[48]=N):N=e[48],N}function ns(){window.location.href="/"}function xt(t){const e=R.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=G(),i=ss,c=s==="not-found",m=c?bn:jt;let h;e[0]!==c||e[1]!==a?(h=a(c?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=c,e[1]=a,e[2]=h):h=e[2];const S=h;let u;e[3]!==c||e[4]!==r||e[5]!==o||e[6]!==a?(u=c?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??o}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=c,e[4]=r,e[5]=o,e[6]=a,e[7]=u):u=e[7];const p=u;let l;e[8]!==m?(l=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=l):l=e[9];let g;e[10]!==S?(g=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[10]=S,e[11]=g):g=e[11];let f;e[12]!==p?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[12]=p,e[13]=f):f=e[13];let d;e[14]!==g||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[g,f]}),e[14]=g,e[15]=f,e[16]=d):d=e[16];let w;e[17]!==a?(w=a("common.goHome"),e[17]=a,e[18]=w):w=e[18];let y;e[19]!==w?(y=n.jsx(z,{onClick:i,children:w}),e[19]=w,e[20]=y):y=e[20];let x;return e[21]!==l||e[22]!==d||e[23]!==y?(x=n.jsxs(ae,{children:[l,d,y]}),e[21]=l,e[22]=d,e[23]=y,e[24]=x):x=e[24],x}function ss(){window.location.href="/"}function os(t){const e=R.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=G();let c;e[0]!==o?(c=async()=>{const A=await Ue.organization.acceptInvitation({invitationId:o});if(A.error)throw new Error(A.error.message);return A.data},e[0]=o,e[1]=c):c=e[1];let m;e[2]!==s?(m=()=>{Ut(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=A=>{Ke.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let S;e[6]!==c||e[7]!==m||e[8]!==h?(S={mutationFn:c,onSuccess:m,onError:h},e[6]=c,e[7]=m,e[8]=h,e[9]=S):S=e[9];const u=tt(S);let p;e[10]!==o?(p=async()=>{const A=await Ue.organization.rejectInvitation({invitationId:o});if(A.error)throw new Error(A.error.message);return A.data},e[10]=o,e[11]=p):p=e[11];let l,g;e[12]!==i?(l=()=>{Ke.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},g=A=>{Ke.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=g):(l=e[13],g=e[14]);let f;e[15]!==p||e[16]!==l||e[17]!==g?(f={mutationFn:p,onSuccess:l,onError:g},e[15]=p,e[16]=l,e[17]=g,e[18]=f):f=e[18];const d=tt(f),w=u.isPending||d.isPending;let y;e[19]!==a||e[20]!==r?(y=a?n.jsx(st,{url:a,fallback:r,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(xn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=y):y=e[21];let x;e[22]!==r||e[23]!==i?(x=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=x):x=e[24];let v;e[25]!==x?(v=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[25]=x,e[26]=v):v=e[26];let b;e[27]!==i?(b=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=b):b=e[28];let T;e[29]!==b?(T=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[29]=b,e[30]=T):T=e[30];let j;e[31]!==v||e[32]!==T?(j=n.jsxs("div",{className:"space-y-2",children:[v,T]}),e[31]=v,e[32]=T,e[33]=j):j=e[33];let k;e[34]!==u?(k=()=>u.mutate(),e[34]=u,e[35]=k):k=e[35];let _;e[36]!==u.isPending||e[37]!==i?(_=u.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=u.isPending,e[37]=i,e[38]=_):_=e[38];let N;e[39]!==w||e[40]!==k||e[41]!==_?(N=n.jsx(z,{onClick:k,disabled:w,children:_}),e[39]=w,e[40]=k,e[41]=_,e[42]=N):N=e[42];let P;e[43]!==d?(P=()=>d.mutate(),e[43]=d,e[44]=P):P=e[44];let C;e[45]!==d.isPending||e[46]!==i?(C=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=C):C=e[47];let I;e[48]!==w||e[49]!==P||e[50]!==C?(I=n.jsx(z,{variant:"ghost",onClick:P,disabled:w,children:C}),e[48]=w,e[49]=P,e[50]=C,e[51]=I):I=e[51];let O;e[52]!==N||e[53]!==I?(O=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,I]}),e[52]=N,e[53]=I,e[54]=O):O=e[54];let D;return e[55]!==j||e[56]!==O||e[57]!==y?(D=n.jsxs(ae,{children:[y,j,O]}),e[55]=j,e[56]=O,e[57]=y,e[58]=D):D=e[58],D}function is(t){const e=R.c(23),{orgName:o,orgLogo:r}=t,s=G();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(st,{url:r,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(wn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=o,e[2]=a):a=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let S;e[12]!==c||e[13]!==h?(S=n.jsxs("div",{className:"space-y-2",children:[c,h]}),e[12]=c,e[13]=h,e[14]=S):S=e[14];let u;e[15]!==s?(u=s("common.goHome"),e[15]=s,e[16]=u):u=e[16];let p;e[17]!==u?(p=n.jsx(z,{variant:"ghost",onClick:as,children:u}),e[17]=u,e[18]=p):p=e[18];let l;return e[19]!==a||e[20]!==S||e[21]!==p?(l=n.jsxs(ae,{children:[a,S,p]}),e[19]=a,e[20]=S,e[21]=p,e[22]=l):l=e[22],l}function as(){window.location.href="/"}function rs(t){const e=R.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=G();let c;e[0]!==r?(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:r})}),P=await N.json();if(!N.ok||!P.success)throw new Error(P.error??"Failed to request access");return P},e[0]=r,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=N=>{Ke.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let S;e[5]!==c||e[6]!==h?(S={mutationFn:c,onSuccess:m,onError:h},e[5]=c,e[6]=h,e[7]=S):S=e[7];const u=tt(S);let p;e[8]!==s||e[9]!==o?(p=s?n.jsx(st,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(It,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=p):p=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let g;e[14]!==l?(g=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=g):g=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let w;e[21]!==g||e[22]!==d?(w=n.jsxs("div",{className:"space-y-2",children:[g,d]}),e[21]=g,e[22]=d,e[23]=w):w=e[23];let y;e[24]!==u?(y=()=>u.mutate(),e[24]=u,e[25]=y):y=e[25];let x;e[26]!==u.isPending||e[27]!==i?(x=u.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=u.isPending,e[27]=i,e[28]=x):x=e[28];let v;e[29]!==u.isPending||e[30]!==y||e[31]!==x?(v=n.jsx(z,{onClick:y,disabled:u.isPending,children:x}),e[29]=u.isPending,e[30]=y,e[31]=x,e[32]=v):v=e[32];const b=u.isPending;let T;e[33]!==i?(T=i("common.goHome"),e[33]=i,e[34]=T):T=e[34];let j;e[35]!==u.isPending||e[36]!==T?(j=n.jsx(z,{variant:"ghost",onClick:ls,disabled:b,children:T}),e[35]=u.isPending,e[36]=T,e[37]=j):j=e[37];let k;e[38]!==v||e[39]!==j?(k=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=k):k=e[40];let _;return e[41]!==w||e[42]!==k||e[43]!==p?(_=n.jsxs(ae,{children:[p,w,k]}),e[41]=w,e[42]=k,e[43]=p,e[44]=_):_=e[44],_}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=R.c(7);let o;e[0]!==t?(o=Je.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let s;return e[4]!==o||e[5]!==r?(s={queryKey:o,queryFn:r,refetchOnWindowFocus:!1},e[4]=o,e[5]=r,e[6]=s):s=e[6],kt(s)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Gt()?.org===t&&Jt();const o=localStorage.getItem(Ge.lastOrgSlug())===t;if(o&&localStorage.removeItem(Ge.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(xt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(xt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Lt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,title:a,description:i,icon:c,children:m,footerLeading:h,actions:S,onDismiss:u,tone:p}=t,l=p===void 0?"neutral":p,g=h||S;let f;e[0]!==l?(f=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(An,{size:14}),e[2]=d):d=e[2];let w;e[3]!==r||e[4]!==u?(w=n.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:u,children:d}),e[3]=r,e[4]=u,e[5]=w):w=e[5];const y=c&&"flex items-start gap-3",x=m&&"pb-3";let v;e[6]!==y||e[7]!==x?(v=ut("p-4 pr-11",y,x),e[6]=y,e[7]=x,e[8]=v):v=e[8];let b;e[9]!==c?(b=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=b):b=e[10];let T;e[11]!==s?(T=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=T):T=e[12];let j;e[13]!==a?(j=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=j):j=e[14];let k;e[15]!==i?(k=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=k):k=e[16];let _;e[17]!==j||e[18]!==k||e[19]!==T?(_=n.jsxs("div",{children:[T,j,k]}),e[17]=j,e[18]=k,e[19]=T,e[20]=_):_=e[20];let N;e[21]!==m?(N=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let P;e[23]!==_||e[24]!==N?(P=n.jsxs("div",{className:"min-w-0 flex-1",children:[_,N]}),e[23]=_,e[24]=N,e[25]=P):P=e[25];let C;e[26]!==P||e[27]!==v||e[28]!==b?(C=n.jsxs("div",{className:v,children:[b,P]}),e[26]=P,e[27]=v,e[28]=b,e[29]=C):C=e[29];let I;e[30]!==S||e[31]!==h||e[32]!==g||e[33]!==l?(I=g&&n.jsxs("div",{className:ut("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:S})]}),e[30]=S,e[31]=h,e[32]=g,e[33]=l,e[34]=I):I=e[34];let O;return e[35]!==o||e[36]!==C||e[37]!==I||e[38]!==f||e[39]!==w||e[40]!==l?(O=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,w,C,I]}),e[35]=o,e[36]=C,e[37]=I,e[38]=f,e[39]=w,e[40]=l,e[41]=O):O=e[41],O}const ms={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Dt(t){return`[data-tour="${ms[t]}"]`}const fs=[{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 hs(t){return fs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function gs(t,e){return hs(e).map(o=>({element:Dt(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const ps=Dt("switcher"),ys=30;function Rt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function bs(t,e){return gs(t,e).filter(o=>typeof o.element=="string"&&Rt(o.element))}function xs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:r})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>r.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Me=!1},steps:e}}let Me=!1;async function ws(){return(await Vt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Ss(t,e){if(Me)return;Me=!0;let o=0;const r=()=>{if(!Rt(ps)&&o++<ys){requestAnimationFrame(r);return}const s=bs(t,e);if(s.length===0){Me=!1;return}ws().then(a=>{a(xs(t,s)).drive()}).catch(()=>{Me=!1})};r()}function vs(t){return t!=="off"}function Qo(t){if(!t.hasSource)return[];const e=["site-editor"];return vs(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function Xo(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const qt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:yt,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:it,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Sn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:mt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ee,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:yt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:se,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:qe,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:se,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:qe,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:se,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ee,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:qe,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ee,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:se,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:qe,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ee,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:se,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:qe,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ee,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:it,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:se,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:mt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:qe,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:se,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ee,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:it,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ee,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:vn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],nt="studio.release-feed.v1",rt=new Set;let oe="",ie={},lt=!1;function js(){if(lt)return oe||"{}";try{return localStorage.getItem(nt)??"{}"}catch{return oe||"{}"}}function Ft(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=js();return t!==oe&&(oe=t,ie=Ft(t)),ie}function ks(t){rt.add(t);const e=o=>{if(!(o.key!==nt&&o.key!==null)){try{const r=localStorage.getItem(nt)??"{}",a={...Ft(r),...ie};ie=a,oe=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{rt.delete(t),window.removeEventListener("storage",e)}}function Ts(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(nt,oe),lt=!1}catch{lt=!0}rt.forEach(e=>e())}function Ns(){const t=R.c(7),e=Q.useSyncExternalStore(ks,wt,wt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=_s;let a;t[2]!==e?(a=qt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let c;return t[4]!==r||t[5]!==i?(c={isSeen:r,markSeen:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=c):c=t[6],c}function _s(t){ie[t]||Ts({...ie,[t]:{seenAt:new Date().toISOString()}})}const Ps=720*60*60*1e3,As=10080*60*1e3;function Cs(t){const[e,o,r]=t.split("-").map(Number);return!e||!o||!r?new Date(t).getTime():new Date(e,o-1,r).getTime()}function Es(t){const e=qt[0];if(!e)return null;const o=Cs(e.date),r=t-o;return r<0||r>Ps?null:e}function Os(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 Is(t,e){const o=Os(t);return o===null?!1:e-o>=As}function $s(){const t=R.c(46),e=G(),o=Cn(),r=Wt(),s=$t(),a=!!o,i=r===te.home&&!o;let c;t[0]!==s||t[1]!==a?(c=a&&!!s&&zt(s),t[0]=s,t[1]=a,t[2]=c):c=t[2];const m=c,{data:h}=Ue.useSession(),{isSeen:S,markSeen:u}=Ns(),p=In(6e4);let l,g,f;if(t[3]!==S||t[4]!==p||t[5]!==h?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{if(l=Es(p),!l){f=null;break e}if(!Is(h?.user?.createdAt,p)){f=null;break e}g=S(l.id)}t[3]=S,t[4]=p,t[5]=h?.user?.createdAt,t[6]=l,t[7]=g,t[8]=f}else l=t[6],g=t[7],f=t[8];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(g)return null;let d;t[9]!==l.id||t[10]!==a||t[11]!==u||t[12]!==i||t[13]!==m||t[14]!==e?(d=()=>{u(l.id),Ss(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[9]=l.id,t[10]=a,t[11]=u,t[12]=i,t[13]=m,t[14]=e,t[15]=d):d=t[15];const w=d;let y;t[16]!==e?(y=e("announcements.release.ariaLabel"),t[16]=e,t[17]=y):y=t[17];let x;t[18]!==e?(x=e("announcements.release.dismiss"),t[18]=e,t[19]=x):x=t[19];const v=l.eyebrow,b=l.title;let T;t[20]!==l.id||t[21]!==u?(T=()=>u(l.id),t[20]=l.id,t[21]=u,t[22]=T):T=t[22];let j;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==u||t[26]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>u(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]=u,t[26]=e,t[27]=j):j=t[27];let k;t[28]!==l.cta||t[29]!==l.id||t[30]!==u||t[31]!==w?(k=l.cta?"href"in l.cta?n.jsx(z,{asChild:!0,size:"sm",onClick:()=>u(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(z,{size:"sm",onClick:w,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=u,t[31]=w,t[32]=k):k=t[32];let _;t[33]!==l.bullets?(_=l.bullets.map(Ls),t[33]=l.bullets,t[34]=_):_=t[34];let N;t[35]!==_?(N=n.jsx("ul",{className:"flex flex-col gap-3",children:_}),t[35]=_,t[36]=N):N=t[36];let P;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==k||t[40]!==N||t[41]!==y||t[42]!==x||t[43]!==T||t[44]!==j?(P=n.jsx(Lt,{ariaLabel:y,dismissLabel:x,eyebrow:v,title:b,onDismiss:T,footerLeading:j,actions:k,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=k,t[40]=N,t[41]=y,t[42]=x,t[43]=T,t[44]=j,t[45]=P):P=t[45],P}function Ls(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Ds(t){const e=R.c(11),{open:o,onOpenChange:r}=t,s=G();let a;e[0]!==s?(a=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(Tt,{children:n.jsx(Nt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:Yt.map(Rs)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=n.jsxs(_t,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==o||e[9]!==m?(h=n.jsx(Pt,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,e[9]=m,e[10]=h):h=e[10],h}function Rs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(zs)})]},t.label)}function zs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(qs)})]},t.description)}function qs(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const St=8;function Fs(t){const{org:e}=ct(),o=Bn({connectionId:Ct,orgId:e.id,orgSlug:e.slug}),{data:r}=Fe({queryKey:Je.globalSearch(e.id,t,St),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:St}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Bs(t){const e=R.c(195),{open:o,onOpenChange:r}=t,s=G(),a=At(),{org:i}=ct(),{projects:c,hasProjects:m}=En(),[h,S]=Q.useState(""),u=Q.useDeferredValue(h),p=Fs(u);let l;e[0]!==r?(l=()=>{r(!1),S("")},e[0]=r,e[1]=l):l=e[1];const g=l;let f;e[2]!==g?(f=(B,M)=>{at("command_palette_used",{kind:M}),B(),g()},e[2]=g,e[3]=f):f=e[3];const d=f;let w;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(w=B=>{if(B.type==="connection"){if(!B.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:B.slug}});return}if(B.type==="task"){a({to:te.tasks,params:{org:i.slug,taskKey:B.key??void 0}});return}const M=Et(i.id).id;Qt(a,Xt({org:i.slug,agentId:B.virtual_mcp_id??M,superAgentId:M}),{search:()=>({thread:B.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=w):w=e[7];const y=w;let x;e[8]!==h?(x=[h],e[8]=h,e[9]=x):x=e[9];const v=x;let b,T,j,k,_,N,P,C,I,O,D,A,q;if(e[10]!==g||e[11]!==d||e[12]!==m||e[13]!==p||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==y||e[18]!==i.slug||e[19]!==c||e[20]!==v||e[21]!==s||e[22]!==h){const B=p.filter(Ks),M=p.filter(Ms);let J;e[36]!==i.slug?(J={org:i.slug},e[36]=i.slug,e[37]=J):J=e[37];const $=J;let V;e[38]!==s?(V=s("sidebar.navDestinations.home"),e[38]=s,e[39]=V):V=e[39];let W;e[40]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx(kn,{"aria-hidden":"true"}),e[40]=W):W=e[40];let H;e[41]!==$||e[42]!==V?(H={key:"home",label:V,icon:W,to:te.home,params:$},e[41]=$,e[42]=V,e[43]=H):H=e[43];let U;e[44]!==s?(U=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=U):U=e[45];let Z;e[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(Tn,{"aria-hidden":"true"}),e[46]=Z):Z=e[46];let Y;e[47]!==$||e[48]!==U?(Y={key:"reports",label:U,icon:Z,to:te.reports,params:$},e[47]=$,e[48]=U,e[49]=Y):Y=e[49];let L;e[50]!==s?(L=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=L):L=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx(pt,{"aria-hidden":"true"}),e[52]=K):K=e[52];let re;e[53]!==i.slug?(re={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=re):re=e[54];let le;e[55]!==L||e[56]!==re?(le={key:"tasks",label:L,icon:K,to:te.tasks,params:re},e[55]=L,e[56]=re,e[57]=le):le=e[57];let ce;e[58]!==s?(ce=s("sidebar.navDestinations.library"),e[58]=s,e[59]=ce):ce=e[59];let Ve;e[60]===Symbol.for("react.memo_cache_sentinel")?(Ve=n.jsx(Nn,{"aria-hidden":"true"}),e[60]=Ve):Ve=e[60];let de;e[61]!==$||e[62]!==ce?(de={key:"library",label:ce,icon:Ve,to:te.library,params:$},e[61]=$,e[62]=ce,e[63]=de):de=e[63];let ue;e[64]!==s?(ue=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=ue):ue=e[65];let We;e[66]===Symbol.for("react.memo_cache_sentinel")?(We=n.jsx(_n,{"aria-hidden":"true"}),e[66]=We):We=e[66];let me;e[67]!==$||e[68]!==ue?(me={key:"discover",label:ue,icon:We,to:te.discover,params:$},e[67]=$,e[68]=ue,e[69]=me):me=e[69];let Ye;e[70]!==H||e[71]!==Y||e[72]!==le||e[73]!==de||e[74]!==me?(Ye=[H,Y,le,de,me],e[70]=H,e[71]=Y,e[72]=le,e[73]=de,e[74]=me,e[75]=Ye):Ye=e[75];const ot=Ye;T=Ln,k=o,e[76]!==g||e[77]!==r?(_=E=>E?r(!0):g(),e[76]=g,e[77]=r,e[78]=_):_=e[78],e[79]!==s?(N=s("commandPalette.title"),e[79]=s,e[80]=N):N=e[80],e[81]!==s?(P=s("commandPalette.description"),e[81]=s,e[82]=P):P=e[82];let fe;e[83]!==s?(fe=s("commandPalette.placeholder"),e[83]=s,e[84]=fe):fe=e[84];let he;e[85]!==s?(he=s("commandPalette.placeholder"),e[85]=s,e[86]=he):he=e[86],e[87]!==fe||e[88]!==he||e[89]!==h?(C=n.jsx(Dn,{placeholder:fe,"aria-label":he,value:h,onValueChange:S}),e[87]=fe,e[88]=he,e[89]=h,e[90]=C):C=e[90],b=Rn;let ge;e[91]!==s?(ge=s("commandPalette.empty"),e[91]=s,e[92]=ge):ge=e[92],e[93]!==ge?(I=n.jsx(zn,{children:ge}),e[93]=ge,e[94]=I):I=e[94];let pe;e[95]!==s?(pe=s("commandPalette.goTo"),e[95]=s,e[96]=pe):pe=e[96];let ye;e[97]!==ot||e[98]!==d||e[99]!==a?(ye=ot.map(E=>n.jsxs(ne,{onSelect:()=>d(()=>a({to:E.to,params:E.params}),"destination"),children:[E.icon,n.jsx("span",{children:E.label})]},E.key)),e[97]=ot,e[98]=d,e[99]=a,e[100]=ye):ye=e[100],e[101]!==pe||e[102]!==ye?(O=n.jsx(Be,{heading:pe,children:ye}),e[101]=pe,e[102]=ye,e[103]=O):O=e[103],e[104]!==d||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==c||e[109]!==s?(D=m&&n.jsx(Be,{heading:s("commandPalette.projects"),children:c.map(E=>n.jsxs(ne,{value:`project ${E.title}`,onSelect:()=>d(()=>a({to:te.projects,params:{org:i.slug,agentId:E.id}}),"project"),children:[n.jsx(Fn,{icon:E.icon,name:E.title,"aria-hidden":"true"}),n.jsx("span",{children:E.title})]},E.id))}),e[104]=d,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=c,e[109]=s,e[110]=D):D=e[110];let be;e[111]!==s?(be=s("commandPalette.actions"),e[111]=s,e[112]=be):be=e[112];let xe;e[113]!==s?(xe=s("commandPalette.newProject"),e[113]=s,e[114]=xe):xe=e[114];let we;e[115]!==d||e[116]!==a||e[117]!==$?(we=()=>d(()=>a({to:te.home,params:$}),"new_project"),e[115]=d,e[116]=a,e[117]=$,e[118]=we):we=e[118];let Qe;e[119]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(bt,{"aria-hidden":"true"}),e[119]=Qe):Qe=e[119];let Se;e[120]!==s?(Se=s("commandPalette.newProject"),e[120]=s,e[121]=Se):Se=e[121];let ve;e[122]!==Se?(ve=n.jsx("span",{children:Se}),e[122]=Se,e[123]=ve):ve=e[123];let je;e[124]!==xe||e[125]!==we||e[126]!==ve?(je=n.jsxs(ne,{value:xe,onSelect:we,children:[Qe,ve]}),e[124]=xe,e[125]=we,e[126]=ve,e[127]=je):je=e[127];let ke;e[128]!==s?(ke=s("commandPalette.inviteTeammate"),e[128]=s,e[129]=ke):ke=e[129];let Te;e[130]!==d||e[131]!==a||e[132]!==$?(Te=()=>d(()=>a({to:"/$org/settings/members",params:$}),"invite"),e[130]=d,e[131]=a,e[132]=$,e[133]=Te):Te=e[133];let Xe;e[134]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(Pn,{"aria-hidden":"true"}),e[134]=Xe):Xe=e[134];let Ne;e[135]!==s?(Ne=s("commandPalette.inviteTeammate"),e[135]=s,e[136]=Ne):Ne=e[136];let _e;e[137]!==Ne?(_e=n.jsx("span",{children:Ne}),e[137]=Ne,e[138]=_e):_e=e[138];let Pe;e[139]!==ke||e[140]!==Te||e[141]!==_e?(Pe=n.jsxs(ne,{value:ke,onSelect:Te,children:[Xe,_e]}),e[139]=ke,e[140]=Te,e[141]=_e,e[142]=Pe):Pe=e[142];let Ae;e[143]!==s?(Ae=s("commandPalette.addConnection"),e[143]=s,e[144]=Ae):Ae=e[144];let Ce;e[145]!==d||e[146]!==a||e[147]!==$?(Ce=()=>d(()=>a({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[145]=d,e[146]=a,e[147]=$,e[148]=Ce):Ce=e[148];let Ze;e[149]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(bt,{"aria-hidden":"true"}),e[149]=Ze):Ze=e[149];let Ee;e[150]!==s?(Ee=s("commandPalette.addConnection"),e[150]=s,e[151]=Ee):Ee=e[151];let Oe;e[152]!==Ee?(Oe=n.jsx("span",{children:Ee}),e[152]=Ee,e[153]=Oe):Oe=e[153];let Ie;e[154]!==Ae||e[155]!==Ce||e[156]!==Oe?(Ie=n.jsxs(ne,{value:Ae,onSelect:Ce,children:[Ze,Oe]}),e[154]=Ae,e[155]=Ce,e[156]=Oe,e[157]=Ie):Ie=e[157];let $e;e[158]!==s?($e=s("commandPalette.settings"),e[158]=s,e[159]=$e):$e=e[159];let Le;e[160]!==d||e[161]!==a||e[162]!==$?(Le=()=>d(()=>a({to:"/$org/settings/general",params:$}),"settings"),e[160]=d,e[161]=a,e[162]=$,e[163]=Le):Le=e[163];let et;e[164]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx($n,{"aria-hidden":"true"}),e[164]=et):et=e[164];let De;e[165]!==s?(De=s("commandPalette.settings"),e[165]=s,e[166]=De):De=e[166];let Re;e[167]!==De?(Re=n.jsx("span",{children:De}),e[167]=De,e[168]=Re):Re=e[168];let ze;e[169]!==$e||e[170]!==Le||e[171]!==Re?(ze=n.jsxs(ne,{value:$e,onSelect:Le,children:[et,Re]}),e[169]=$e,e[170]=Le,e[171]=Re,e[172]=ze):ze=e[172],e[173]!==be||e[174]!==je||e[175]!==Pe||e[176]!==Ie||e[177]!==ze?(A=n.jsxs(Be,{heading:be,children:[je,Pe,Ie,ze]}),e[173]=be,e[174]=je,e[175]=Pe,e[176]=Ie,e[177]=ze,e[178]=A):A=e[178],q=B.length>0&&n.jsx(Be,{heading:s("commandPalette.connections"),children:B.map(E=>n.jsxs(ne,{value:`${E.title} ${E.id}`,keywords:v,onSelect:()=>d(()=>y(E),"connection"),children:[n.jsx(qn,{icon:E.icon,name:E.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:E.title})]},`connection:${E.id}`))}),j=M.length>0&&n.jsx(Be,{heading:s("commandPalette.results"),children:M.map(E=>n.jsxs(ne,{value:`${E.title} ${E.id}`,keywords:v,onSelect:()=>d(()=>y(E),E.type),children:[E.type==="thread"?n.jsx(jn,{"aria-hidden":"true"}):n.jsx(pt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:E.title}),E.type==="task"&&E.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:E.key})]},`${E.type}:${E.id}`))}),e[10]=g,e[11]=d,e[12]=m,e[13]=p,e[14]=a,e[15]=r,e[16]=o,e[17]=y,e[18]=i.slug,e[19]=c,e[20]=v,e[21]=s,e[22]=h,e[23]=b,e[24]=T,e[25]=j,e[26]=k,e[27]=_,e[28]=N,e[29]=P,e[30]=C,e[31]=I,e[32]=O,e[33]=D,e[34]=A,e[35]=q}else b=e[23],T=e[24],j=e[25],k=e[26],_=e[27],N=e[28],P=e[29],C=e[30],I=e[31],O=e[32],D=e[33],A=e[34],q=e[35];let F;e[179]!==b||e[180]!==j||e[181]!==I||e[182]!==O||e[183]!==D||e[184]!==A||e[185]!==q?(F=n.jsxs(b,{children:[I,O,D,A,q,j]}),e[179]=b,e[180]=j,e[181]=I,e[182]=O,e[183]=D,e[184]=A,e[185]=q,e[186]=F):F=e[186];let X;return e[187]!==T||e[188]!==k||e[189]!==_||e[190]!==N||e[191]!==P||e[192]!==C||e[193]!==F?(X=n.jsxs(T,{open:k,onOpenChange:_,title:N,description:P,children:[C,F]}),e[187]=T,e[188]=k,e[189]=_,e[190]=N,e[191]=P,e[192]=C,e[193]=F,e[194]=X):X=e[194],X}function Ms(t){return t.type!=="connection"}function Ks(t){return t.type==="connection"}const He=new Gn(!1);function Hs(){He.set(!0)}function Us(){He.set(!1)}function Gs(){const t=R.c(2),e=Q.useSyncExternalStore(He.subscribe,He.get);let o;return t[0]!==e?(o=[e,He.set],t[0]=e,t[1]=o):o=t[1],o}const Js=300*1e3,Vs=2;function Ws(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Ys(t,e){return t.count>=Vs&&t.version!==null&&t.version!==e}function Qs(){const t=R.c(31),e=G();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Je.appVersionCheck(),queryFn:Zs,refetchInterval:Js,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:r,dataUpdatedAt:s}=Fe(o),[a,i]=Q.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,h]=Q.useState(c);s!==a&&(i(s),h(k=>Ws(k,r,"4.524.1")));const[S,u]=Q.useState(null);if(!Ys(m,S))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 g;t[6]!==e?(g=e("announcements.version.eyebrow"),t[6]=e,t[7]=g):g=t[7];let f;t[8]!==e?(f=e("announcements.version.title"),t[8]=e,t[9]=f):f=t[9];let d;t[10]!==e?(d=e("announcements.version.description"),t[10]=e,t[11]=d):d=t[11];let w;t[12]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx(ft,{size:16}),t[12]=w):w=t[12];let y;t[13]!==m.version?(y=()=>u(m.version),t[13]=m.version,t[14]=y):y=t[14];let x;t[15]!==e?(x=e("announcements.version.currentSession",{version:"4.524.1"}),t[15]=e,t[16]=x):x=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let b;t[19]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(ft,{size:14}),t[19]=b):b=t[19];let T;t[20]!==v?(T=n.jsxs(z,{size:"sm",onClick:Xs,children:[v,b]}),t[20]=v,t[21]=T):T=t[21];let j;return t[22]!==T||t[23]!==p||t[24]!==l||t[25]!==g||t[26]!==f||t[27]!==d||t[28]!==y||t[29]!==x?(j=n.jsx(Lt,{ariaLabel:p,dismissLabel:l,eyebrow:g,title:f,description:d,icon:w,tone:"system",onDismiss:y,footerLeading:x,actions:T}),t[22]=T,t[23]=p,t[24]=l,t[25]=g,t[26]=f,t[27]=d,t[28]=y,t[29]=x,t[30]=j):j=t[30],j}function Xs(){return window.location.reload()}async function Zs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function eo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const to=Date.parse("2026-07-21T00:00:00Z"),vt=t=>eo(Ge.ptBrAnnouncementSeen(t));function no(){const t=R.c(35),e=G(),[o,r]=Zt(),{data:s,isPending:a}=Ue.useSession(),i=s?.user,c=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<to,S=en()==="pt-BR",u=!a&&!!c&&h&&S&&o.language==="en"&&!vt(c).has(),[p,l]=Q.useState(!1),[g,f]=Q.useState(!1);!p&&!a&&(l(!0),u&&c&&(vt(c).mark(),r(oo),f(!0),at("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=X=>{at("pt_br_auto_switch_closed",{action:X}),f(!1)},t[0]=d):d=t[0];const w=d;let y;t[1]!==r?(y=()=>{r(so),w("switch-back")},t[1]=r,t[2]=y):y=t[2];const x=y;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=X=>!X&&w("dismiss"),t[3]=v):v=t[3];let b;t[4]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=b):b=t[4];let T;t[5]!==e?(T=e("announcements.ptBr.title"),t[5]=e,t[6]=T):T=t[6];let j;t[7]!==T?(j=n.jsx(Nt,{children:T}),t[7]=T,t[8]=j):j=t[8];let k;t[9]!==e?(k=e("announcements.ptBr.description"),t[9]=e,t[10]=k):k=t[10];let _;t[11]!==k?(_=n.jsx(tn,{children:k}),t[11]=k,t[12]=_):_=t[12];let N;t[13]!==j||t[14]!==_?(N=n.jsxs(Tt,{children:[j,_]}),t[13]=j,t[14]=_,t[15]=N):N=t[15];let P;t[16]!==e?(P=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=P):P=t[17];let C;t[18]!==x||t[19]!==P?(C=n.jsx(z,{variant:"outline",onClick:x,children:P}),t[18]=x,t[19]=P,t[20]=C):C=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>w("ok"),t[21]=I):I=t[21];let O;t[22]!==e?(O=e("announcements.ptBr.ok"),t[22]=e,t[23]=O):O=t[23];let D;t[24]!==O?(D=n.jsx(z,{onClick:I,children:O}),t[24]=O,t[25]=D):D=t[25];let A;t[26]!==C||t[27]!==D?(A=n.jsxs(nn,{children:[C,D]}),t[26]=C,t[27]=D,t[28]=A):A=t[28];let q;t[29]!==A||t[30]!==N?(q=n.jsxs(_t,{className:"sm:max-w-md",children:[b,N,A]}),t[29]=A,t[30]=N,t[31]=q):q=t[31];let F;return t[32]!==g||t[33]!==q?(F=n.jsx(Pt,{open:g,onOpenChange:v,children:q}),t[32]=g,t[33]=q,t[34]=F):F=t[34],F}function so(t){return{...t,language:"en"}}function oo(t){return{...t,language:"pt-BR"}}function io(t){const e=sn(t);return typeof e=="string"?e:void 0}function ao(){return io("experiment-pipeline-check"),null}function ro(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;on(o.id,{name:o.name??void 0,slug:o.slug??void 0}),an();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(ao,{}),e[0]=r):r=e[0],r}function lo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,S=(o??m)!==m;let u,p;return a?.panel?p=a.panel:a?.newThread&&!S&&rn(e.tabId)?(p=e.tabId,c.mainpanel=e.mainpanel,u=e.sidepanel):s?(p=s.tab,s.sidepanel!==void 0&&(u=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!S&&e.tabId&&!ln(e.tabId)&&(p=e.tabId),u!==void 0&&(c.sidepanel=u),a?.autosend&&(c.autosend=i),{tabId:p,search:c}}const Bt="studio:thread-layout:v4",co=50;function Mt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function uo(t,e,o,r=co){const s=t.filter(([a])=>a!==e);for(s.push([e,Mt(o)]);s.length>r;)s.shift();return s}function dt(){try{const t=sessionStorage.getItem(Bt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function Kt(t){try{sessionStorage.setItem(Bt,JSON.stringify(t))}catch{}}function mo(t,e){t&&Kt(uo(dt(),t,e))}function fo(t){if(!t)return null;const e=dt().find(([o])=>o===t);return e?Mt(e[1]):null}function Zo(t){if(!t)return;const e=dt(),o=e.filter(([r])=>r!==t);o.length!==e.length&&Kt(o)}function Ht(t){return{queryKey:Je.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 ei(t){const e=R.c(10);let o;e[0]!==t?(o=Ht(t),e[0]=t,e[1]=o):o=e[1];const r=Fe(o);let s;e[2]!==r.data?.prompts?(s=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=s):s=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==s||e[8]!==a?(i={isLoading:r.isLoading,prompts:s,tiles:a},e[6]=r.isLoading,e[7]=s,e[8]=a,e[9]=i):i=e[9],i}function ho(t){const e=R.c(31),{orgSlug:o,orgName:r,domain:s}=t,a=G();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,m=go;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(jt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let S;e[3]!==a?(S=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=S):S=e[4];let u;e[5]!==S?(u=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[5]=S,e[6]=u):u=e[6];let p;e[7]!==s||e[8]!==r||e[9]!==a?(p=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${a("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=r,e[9]=a,e[10]=p):p=e[10];let l;e[11]!==p?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=l):l=e[12];let g;e[13]!==u||e[14]!==l?(g=n.jsxs("div",{className:"space-y-2",children:[u,l]}),e[13]=u,e[14]=l,e[15]=g):g=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==c||e[19]!==f?(d=n.jsx(z,{onClick:c,children:f}),e[18]=c,e[19]=f,e[20]=d):d=e[20];let w;e[21]!==a?(w=a("common.goBack"),e[21]=a,e[22]=w):w=e[22];let y;e[23]!==w?(y=n.jsx(z,{variant:"ghost",onClick:m,children:w}),e[23]=w,e[24]=y):y=e[24];let x;e[25]!==y||e[26]!==d?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,y]}),e[25]=y,e[26]=d,e[27]=x):x=e[27];let v;return e[28]!==x||e[29]!==g?(v=n.jsxs(ae,{children:[h,g,x]}),e[28]=x,e[29]=g,e[30]=v):v=e[30],v}function go(){window.location.href="/"}function po(t){const e=R.c(27),{notice:o,orgSlug:r}=t,s=G();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(cn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let h;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(z,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=h):h=e[10];const S=`/${encodeURIComponent(r)}/settings/infra-billing`;let u;e[11]!==s?(u=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=u):u=e[12];let p;e[13]!==S||e[14]!==u?(p=n.jsx(z,{variant:"outline",asChild:!0,children:n.jsx("a",{href:S,children:u})}),e[13]=S,e[14]=u,e[15]=p):p=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let g;e[18]!==l?(g=n.jsx(z,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=g):g=e[19];let f;e[20]!==g||e[21]!==h||e[22]!==p?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,p,g]}),e[20]=g,e[21]=h,e[22]=p,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(ae,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}function yo(t){const e=R.c(8);let o;e[0]!==t?(o=Je.orgNotice(t??""),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=r):r=e[3];const s=!!t;let a;return e[4]!==o||e[5]!==r||e[6]!==s?(a={queryKey:o,queryFn:r,enabled:s,staleTime:6e4},e[4]=o,e[5]=r,e[6]=s,e[7]=a):a=e[7],Fe(a)}const bo="/settings/infra-billing";function xo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(bo)}function wo(t){const e=R.c(7),{org:o,children:r}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const a=s;let i;return e[3]!==r||e[4]!==o||e[5]!==a?(i=n.jsx(yn,{org:o,project:a,children:r}),e[3]=r,e[4]=o,e[5]=a,e[6]=i):i=e[6],i}function So(){const t=At(),e=Jn(),{org:o}=ct(),r=dn({strict:!1}),s=$t(),{openPanel:a,closePanel:i}=On(),c=Yn(),m=Qn(),h=Xn(),S=Zn(),u=(f,d=!0)=>t({to:".",search:f,replace:d}),p=()=>u(f=>({...f,sidepanel:!0})),l=(f,d,w)=>{const y=!!m&&m===f;m&&!y&&mo(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const x=y?null:fo(f),v=Et(o.id).id,b=lo({prev:{virtualmcpid:c,tabId:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel},virtualMcpId:d,decopilotId:v,savedLayout:x,opts:w,autosendValue:Wn});return S(f,()=>b.search,{virtualMcpId:d,view:{tabId:b.tabId}})};return{openSidePanel:p,setTaskId:l,createNewTask:async(f,d,w)=>{const y=crypto.randomUUID(),x=f??h;try{await e?.create({id:y,virtual_mcp_id:x,...d?{branch:d}:{}})}catch{}l(y,x,{...w,newThread:!0})},openTab:a,closeTab:i}}const vo=new Set(["/$org/","/$org/home"]);function jo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ko},t[0]=e):e=t[0],Ot(e)}function ko(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&vo.has(e)}function To(){const t=R.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=un(e)?.params.org,[s,a]=Q.useState(!1),[i,c]=Gs(),[m,h]=Kn(),S=mn(),u=jo(),p=r??"";let l;t[1]!==p?(l=Ht(p),t[1]=p,t[2]=l):l=t[2];const g=!!r&&u;let f;t[3]!==l||t[4]!==g?(f={...l,enabled:g},t[3]=l,t[4]=g,t[5]=f):f=t[5],Fe(f);const{data:d}=Ue.useSession(),w=d?.user?.id;let y,x;t[6]!==S?(y=()=>{const L=K=>{if(gt(K)&&K.code==="KeyK"){K.preventDefault(),Hs();return}if(K.key==="?"&&!pn(K.target)){K.preventDefault(),a(!0);return}gt(K)&&K.code==="BracketLeft"&&S.history.canGoBack()&&(K.preventDefault(),S.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},x=[S],t[6]=S,t[7]=y,t[8]=x):(y=t[7],x=t[8]),Q.useEffect(y,x);let v;t[9]!==r||t[10]!==w?(v=fn(r,w),t[9]=r,t[10]=w,t[11]=v):v=t[11];const{data:b}=kt(v),T=b?.id,j=b?.slug,{data:k}=es(T,j),_=!!k?.ssoRequired&&!k.authenticated,{data:N}=yo(j);let P;t[12]===Symbol.for("react.memo_cache_sentinel")?(P={select:No},t[12]=P):P=t[12];const C=Ot(P),I=N?.severity==="block"&&!xo(C),O=T??"",D=j??"";let A;t[13]!==D||t[14]!==O?(A=Mn({connectionId:Ct,orgId:O,orgSlug:D}),t[13]=D,t[14]=O,t[15]=A):A=t[15];const q=!!T&&!!j;let F;if(t[16]!==A||t[17]!==q?(F={...A,enabled:q},t[16]=A,t[17]=q,t[18]=F):F=t[18],Fe(F),(!b||ht(b)||_||I)&&Us(),!b){let L;return t[19]!==r?(L=n.jsx(us,{orgSlug:r}),t[19]=r,t[20]=L):L=t[20],L}if(ht(b)){localStorage.getItem(Ge.lastOrgSlug())===r&&localStorage.removeItem(Ge.lastOrgSlug());let L;return t[21]!==b.name?(L=n.jsx(hn,{orgName:b.name}),t[21]=b.name,t[22]=L):L=t[22],L}if(I&&N){let L;return t[23]!==b.slug||t[24]!==N?(L=n.jsx(po,{notice:N,orgSlug:b.slug}),t[23]=b.slug,t[24]=N,t[25]=L):L=t[25],L}if(_){let L;return t[26]!==b.id||t[27]!==b.name||t[28]!==b.slug||t[29]!==k.domain?(L=n.jsx(ho,{orgId:b.id,orgSlug:b.slug,orgName:b.name,domain:k.domain}),t[26]=b.id,t[27]=b.name,t[28]=b.slug,t[29]=k.domain,t[30]=L):L=t[30],L}const B=b.logo??null;let M;t[31]!==b||t[32]!==B?(M={...b,logo:B},t[31]=b,t[32]=B,t[33]=M):M=t[33];let J;t[34]!==b?(J=n.jsx(ro,{activeOrg:b}),t[34]=b,t[35]=J):J=t[35];let $;t[36]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx(gn,{}),t[36]=$):$=t[36];let V;t[37]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx($s,{}),n.jsx(Qs,{})]}),t[37]=V):V=t[37];let W;t[38]!==i||t[39]!==c?(W=i&&n.jsx(Bs,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=W):W=t[40];let H;t[41]!==m||t[42]!==h?(H=m&&n.jsx(Hn,{open:!0,onOpenChange:h,source:Un()}),t[41]=m,t[42]=h,t[43]=H):H=t[43];let U;t[44]!==s?(U=n.jsx(Ds,{open:s,onOpenChange:a}),t[44]=s,t[45]=U):U=t[45];let Z;t[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(no,{}),t[46]=Z):Z=t[46];let Y;return t[47]!==M||t[48]!==J||t[49]!==W||t[50]!==H||t[51]!==U?(Y=n.jsxs(wo,{org:M,children:[J,$,V,W,H,U,Z]}),t[47]=M,t[48]=J,t[49]=W,t[50]=H,t[51]=U,t[52]=Y):Y=t[52],Y}function No(t){return t.location.pathname}function _o(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Vn,{children:n.jsx(To,{})}),t[0]=e):e=t[0],e}const ti=Object.freeze(Object.defineProperty({__proto__:null,default:_o,usePanelActions:So},Symbol.toStringTag,{value:"Module"}));export{ms as L,So as a,vs as b,ei as c,ti as d,Zo as f,zt as i,Hs as o,Qo as r,Xo as s,yo as u};
1
+ import{c as R,b as G,e as tt,j as n,B as z,t as Ke,o as st,cU as ae,ag as jt,a as Ue,J as Ut,U as kt,K as Je,cV as Gt,cW as Jt,az as Ge,l as ut,be as Vt,z as mt,r as Q,ae as Wt,af as te,cX as Yt,w as Tt,x as Nt,v as _t,D as Pt,d as At,a4 as ct,R as Ct,m as Fe,C as at,aX as Et,cY as Qt,b1 as Xt,b8 as ft,H as Zt,cZ as en,aY as tn,y as nn,c_ as sn,c$ as on,d0 as an,d1 as rn,d2 as ln,a5 as cn,u as dn,a6 as un,d3 as mn,d4 as fn,k as Ot,d5 as ht,d6 as hn,O as gn,b3 as gt,d7 as pn,a0 as yn}from"./index-BGCeOWuH.js";import{t as It}from"./Building02-DyaG8VRs.js";import{i as bn,s as ee}from"./UserSquare-BWlOHIw0.js";import{aA as xn,W as wn,I as it,aa as Sn,K as vn,aB as jn,n as pt,g as kn,p as Tn,k as Nn,aC as _n,l as Pn}from"./agent-icon-BXl9rcx1.js";import{s as An}from"./XClose-BHn8yO7p.js";import{a as Cn,u as En}from"./use-project-scope-B0Sibn6g.js";import{u as $t,a as On}from"./use-panel-navigate-BJRHz9-t.js";import{i as se}from"./CheckCircle-IjQMURt4.js";import{i as yt}from"./Monitor01-DIpgHRZ3.js";import{i as qe}from"./ZoomOut-Csm0orCM.js";import{u as In}from"./use-clock-tick-DIHPLwxm.js";import{s as bt}from"./Plus-Dp5dZDoY.js";import{a as $n}from"./Tool01-CyfGI7T6.js";import{b as ne,a as Be,f as Ln,e as Dn,c as Rn,C as zn}from"./command-DoejxN8Q.js";import{I as qn}from"./integration-icon-IfDXGweg.js";import{P as Fn}from"./project-icon-CjQuZIIb.js";import{a as Bn,m as Mn}from"./use-mcp-client-P41n2mxI.js";import{u as Kn,a as Hn,n as Un}from"./new-project-dialog-BZU_MI3Q.js";import{S as Gn,u as Jn}from"./thread-intent-DH83rsLQ.js";import{R as Vn}from"./required-auth-layout-tipFurup.js";import{A as Wn}from"./autosend-1U_b-i1h.js";import{u as Yn,a as Qn,b as Xn,c as Zn}from"./thread-route-D9dyzfFR.js";import{u as es}from"./use-org-sso-BhUG19nu.js";function ts(t){const e=R.c(49),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=G();let c;e[0]!==r||e[1]!==i?(c=async()=>{const P=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:r})}),C=await P.json();if(!P.ok||!C.success)throw new Error(C.error??i("common.autoDomainJoinScreen.joinError"));return C},e[0]=r,e[1]=i,e[2]=c):c=e[2];let m;e[3]!==r?(m=P=>{window.location.href=`/${P.slug??r}`},e[3]=r,e[4]=m):m=e[4];let h;e[5]!==i?(h=P=>{Ke.error(P instanceof Error?P.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=h):h=e[6];let S;e[7]!==c||e[8]!==m||e[9]!==h?(S={mutationFn:c,onSuccess:m,onError:h},e[7]=c,e[8]=m,e[9]=h,e[10]=S):S=e[10];const u=tt(S),p=ns;let l;e[11]!==s||e[12]!==o?(l=s?n.jsx(st,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(It,{className:"h-6 w-6 text-primary"})}),e[11]=s,e[12]=o,e[13]=l):l=e[13];let g;e[14]!==o||e[15]!==i?(g=i("common.autoDomainJoinScreen.joinPrompt",{orgName:o}),e[14]=o,e[15]=i,e[16]=g):g=e[16];let f;e[17]!==g?(f=n.jsx("h3",{className:"text-lg font-medium",children:g}),e[17]=g,e[18]=f):f=e[18];let d;e[19]!==a||e[20]!==i?(d=i("common.autoDomainJoinScreen.joinDescription",{domain:a}),e[19]=a,e[20]=i,e[21]=d):d=e[21];let w;e[22]!==d?(w=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[22]=d,e[23]=w):w=e[23];let y;e[24]!==f||e[25]!==w?(y=n.jsxs("div",{className:"space-y-2",children:[f,w]}),e[24]=f,e[25]=w,e[26]=y):y=e[26];let x;e[27]!==u?(x=()=>u.mutate(),e[27]=u,e[28]=x):x=e[28];let v;e[29]!==u.isPending||e[30]!==o||e[31]!==i?(v=u.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:o}),e[29]=u.isPending,e[30]=o,e[31]=i,e[32]=v):v=e[32];let b;e[33]!==u.isPending||e[34]!==x||e[35]!==v?(b=n.jsx(z,{onClick:x,disabled:u.isPending,children:v}),e[33]=u.isPending,e[34]=x,e[35]=v,e[36]=b):b=e[36];const T=u.isPending;let j;e[37]!==i?(j=i("common.goHome"),e[37]=i,e[38]=j):j=e[38];let k;e[39]!==u.isPending||e[40]!==j?(k=n.jsx(z,{variant:"ghost",onClick:p,disabled:T,children:j}),e[39]=u.isPending,e[40]=j,e[41]=k):k=e[41];let _;e[42]!==b||e[43]!==k?(_=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[b,k]}),e[42]=b,e[43]=k,e[44]=_):_=e[44];let N;return e[45]!==y||e[46]!==_||e[47]!==l?(N=n.jsxs(ae,{children:[l,y,_]}),e[45]=y,e[46]=_,e[47]=l,e[48]=N):N=e[48],N}function ns(){window.location.href="/"}function xt(t){const e=R.c(25),{orgSlug:o,orgName:r,reason:s}=t,a=G(),i=ss,c=s==="not-found",m=c?bn:jt;let h;e[0]!==c||e[1]!==a?(h=a(c?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=c,e[1]=a,e[2]=h):h=e[2];const S=h;let u;e[3]!==c||e[4]!==r||e[5]!==o||e[6]!==a?(u=c?n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:o}),"."]}):n.jsxs(n.Fragment,{children:[a("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:r??o}),".",n.jsx("br",{}),a("common.noAccessScreen.askAdminToInvite")]}),e[3]=c,e[4]=r,e[5]=o,e[6]=a,e[7]=u):u=e[7];const p=u;let l;e[8]!==m?(l=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(m,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=m,e[9]=l):l=e[9];let g;e[10]!==S?(g=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[10]=S,e[11]=g):g=e[11];let f;e[12]!==p?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[12]=p,e[13]=f):f=e[13];let d;e[14]!==g||e[15]!==f?(d=n.jsxs("div",{className:"space-y-2",children:[g,f]}),e[14]=g,e[15]=f,e[16]=d):d=e[16];let w;e[17]!==a?(w=a("common.goHome"),e[17]=a,e[18]=w):w=e[18];let y;e[19]!==w?(y=n.jsx(z,{onClick:i,children:w}),e[19]=w,e[20]=y):y=e[20];let x;return e[21]!==l||e[22]!==d||e[23]!==y?(x=n.jsxs(ae,{children:[l,d,y]}),e[21]=l,e[22]=d,e[23]=y,e[24]=x):x=e[24],x}function ss(){window.location.href="/"}function os(t){const e=R.c(59),{invitationId:o,orgName:r,orgSlug:s,orgLogo:a}=t,i=G();let c;e[0]!==o?(c=async()=>{const A=await Ue.organization.acceptInvitation({invitationId:o});if(A.error)throw new Error(A.error.message);return A.data},e[0]=o,e[1]=c):c=e[1];let m;e[2]!==s?(m=()=>{Ut(),window.location.href=`/${s}`},e[2]=s,e[3]=m):m=e[3];let h;e[4]!==i?(h=A=>{Ke.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=h):h=e[5];let S;e[6]!==c||e[7]!==m||e[8]!==h?(S={mutationFn:c,onSuccess:m,onError:h},e[6]=c,e[7]=m,e[8]=h,e[9]=S):S=e[9];const u=tt(S);let p;e[10]!==o?(p=async()=>{const A=await Ue.organization.rejectInvitation({invitationId:o});if(A.error)throw new Error(A.error.message);return A.data},e[10]=o,e[11]=p):p=e[11];let l,g;e[12]!==i?(l=()=>{Ke.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},g=A=>{Ke.error(A instanceof Error?A.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=l,e[14]=g):(l=e[13],g=e[14]);let f;e[15]!==p||e[16]!==l||e[17]!==g?(f={mutationFn:p,onSuccess:l,onError:g},e[15]=p,e[16]=l,e[17]=g,e[18]=f):f=e[18];const d=tt(f),w=u.isPending||d.isPending;let y;e[19]!==a||e[20]!==r?(y=a?n.jsx(st,{url:a,fallback:r,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(xn,{className:"h-6 w-6 text-primary"})}),e[19]=a,e[20]=r,e[21]=y):y=e[21];let x;e[22]!==r||e[23]!==i?(x=i("common.pendingInviteScreen.invitedTo",{orgName:r}),e[22]=r,e[23]=i,e[24]=x):x=e[24];let v;e[25]!==x?(v=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[25]=x,e[26]=v):v=e[26];let b;e[27]!==i?(b=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=b):b=e[28];let T;e[29]!==b?(T=n.jsx("p",{className:"text-sm text-muted-foreground",children:b}),e[29]=b,e[30]=T):T=e[30];let j;e[31]!==v||e[32]!==T?(j=n.jsxs("div",{className:"space-y-2",children:[v,T]}),e[31]=v,e[32]=T,e[33]=j):j=e[33];let k;e[34]!==u?(k=()=>u.mutate(),e[34]=u,e[35]=k):k=e[35];let _;e[36]!==u.isPending||e[37]!==i?(_=u.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=u.isPending,e[37]=i,e[38]=_):_=e[38];let N;e[39]!==w||e[40]!==k||e[41]!==_?(N=n.jsx(z,{onClick:k,disabled:w,children:_}),e[39]=w,e[40]=k,e[41]=_,e[42]=N):N=e[42];let P;e[43]!==d?(P=()=>d.mutate(),e[43]=d,e[44]=P):P=e[44];let C;e[45]!==d.isPending||e[46]!==i?(C=d.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=d.isPending,e[46]=i,e[47]=C):C=e[47];let I;e[48]!==w||e[49]!==P||e[50]!==C?(I=n.jsx(z,{variant:"ghost",onClick:P,disabled:w,children:C}),e[48]=w,e[49]=P,e[50]=C,e[51]=I):I=e[51];let O;e[52]!==N||e[53]!==I?(O=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,I]}),e[52]=N,e[53]=I,e[54]=O):O=e[54];let D;return e[55]!==j||e[56]!==O||e[57]!==y?(D=n.jsxs(ae,{children:[y,j,O]}),e[55]=j,e[56]=O,e[57]=y,e[58]=D):D=e[58],D}function is(t){const e=R.c(23),{orgName:o,orgLogo:r}=t,s=G();let a;e[0]!==r||e[1]!==o?(a=r?n.jsx(st,{url:r,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(wn,{className:"h-6 w-6 text-primary"})}),e[0]=r,e[1]=o,e[2]=a):a=e[2];let i;e[3]!==s?(i=s("common.requestPendingScreen.title"),e[3]=s,e[4]=i):i=e[4];let c;e[5]!==i?(c=n.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]!==o||e[8]!==s?(m=s("common.requestPendingScreen.description",{orgName:o}),e[7]=o,e[8]=s,e[9]=m):m=e[9];let h;e[10]!==m?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[10]=m,e[11]=h):h=e[11];let S;e[12]!==c||e[13]!==h?(S=n.jsxs("div",{className:"space-y-2",children:[c,h]}),e[12]=c,e[13]=h,e[14]=S):S=e[14];let u;e[15]!==s?(u=s("common.goHome"),e[15]=s,e[16]=u):u=e[16];let p;e[17]!==u?(p=n.jsx(z,{variant:"ghost",onClick:as,children:u}),e[17]=u,e[18]=p):p=e[18];let l;return e[19]!==a||e[20]!==S||e[21]!==p?(l=n.jsxs(ae,{children:[a,S,p]}),e[19]=a,e[20]=S,e[21]=p,e[22]=l):l=e[22],l}function as(){window.location.href="/"}function rs(t){const e=R.c(45),{orgName:o,orgSlug:r,orgLogo:s,domain:a}=t,i=G();let c;e[0]!==r?(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:r})}),P=await N.json();if(!N.ok||!P.success)throw new Error(P.error??"Failed to request access");return P},e[0]=r,e[1]=c):c=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=cs,e[2]=m):m=e[2];let h;e[3]!==i?(h=N=>{Ke.error(N instanceof Error?N.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=h):h=e[4];let S;e[5]!==c||e[6]!==h?(S={mutationFn:c,onSuccess:m,onError:h},e[5]=c,e[6]=h,e[7]=S):S=e[7];const u=tt(S);let p;e[8]!==s||e[9]!==o?(p=s?n.jsx(st,{url:s,fallback:o,shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(It,{className:"h-6 w-6 text-primary"})}),e[8]=s,e[9]=o,e[10]=p):p=e[10];let l;e[11]!==o||e[12]!==i?(l=i("common.requestToJoinScreen.title",{orgName:o}),e[11]=o,e[12]=i,e[13]=l):l=e[13];let g;e[14]!==l?(g=n.jsx("h3",{className:"text-lg font-medium",children:l}),e[14]=l,e[15]=g):g=e[15];let f;e[16]!==a||e[17]!==i?(f=i("common.requestToJoinScreen.description",{domain:a}),e[16]=a,e[17]=i,e[18]=f):f=e[18];let d;e[19]!==f?(d=n.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[19]=f,e[20]=d):d=e[20];let w;e[21]!==g||e[22]!==d?(w=n.jsxs("div",{className:"space-y-2",children:[g,d]}),e[21]=g,e[22]=d,e[23]=w):w=e[23];let y;e[24]!==u?(y=()=>u.mutate(),e[24]=u,e[25]=y):y=e[25];let x;e[26]!==u.isPending||e[27]!==i?(x=u.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=u.isPending,e[27]=i,e[28]=x):x=e[28];let v;e[29]!==u.isPending||e[30]!==y||e[31]!==x?(v=n.jsx(z,{onClick:y,disabled:u.isPending,children:x}),e[29]=u.isPending,e[30]=y,e[31]=x,e[32]=v):v=e[32];const b=u.isPending;let T;e[33]!==i?(T=i("common.goHome"),e[33]=i,e[34]=T):T=e[34];let j;e[35]!==u.isPending||e[36]!==T?(j=n.jsx(z,{variant:"ghost",onClick:ls,disabled:b,children:T}),e[35]=u.isPending,e[36]=T,e[37]=j):j=e[37];let k;e[38]!==v||e[39]!==j?(k=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,j]}),e[38]=v,e[39]=j,e[40]=k):k=e[40];let _;return e[41]!==w||e[42]!==k||e[43]!==p?(_=n.jsxs(ae,{children:[p,w,k]}),e[41]=w,e[42]=k,e[43]=p,e[44]=_):_=e[44],_}function ls(){window.location.href="/"}function cs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function ds(t){const e=R.c(7);let o;e[0]!==t?(o=Je.orgAccessStatus(t),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=r):r=e[3];let s;return e[4]!==o||e[5]!==r?(s={queryKey:o,queryFn:r,refetchOnWindowFocus:!1},e[4]=o,e[5]=r,e[6]=s):s=e[6],kt(s)}function us({orgSlug:t}){const{data:e}=ds(t);if(e.status!=="member"){Gt()?.org===t&&Jt();const o=localStorage.getItem(Ge.lastOrgSlug())===t;if(o&&localStorage.removeItem(Ge.lastOrgSlug()),o&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(xt,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(os,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(ts,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(rs,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(is,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(xt,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Lt(t){const e=R.c(42),{ariaLabel:o,dismissLabel:r,eyebrow:s,title:a,description:i,icon:c,children:m,footerLeading:h,actions:S,onDismiss:u,tone:p}=t,l=p===void 0?"neutral":p,g=h||S;let f;e[0]!==l?(f=l==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=l,e[1]=f):f=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(An,{size:14}),e[2]=d):d=e[2];let w;e[3]!==r||e[4]!==u?(w=n.jsx(z,{size:"icon-sm",variant:"ghost","aria-label":r,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:u,children:d}),e[3]=r,e[4]=u,e[5]=w):w=e[5];const y=c&&"flex items-start gap-3",x=m&&"pb-3";let v;e[6]!==y||e[7]!==x?(v=ut("p-4 pr-11",y,x),e[6]=y,e[7]=x,e[8]=v):v=e[8];let b;e[9]!==c?(b=c&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:c}),e[9]=c,e[10]=b):b=e[10];let T;e[11]!==s?(T=s&&n.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[11]=s,e[12]=T):T=e[12];let j;e[13]!==a?(j=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:a}),e[13]=a,e[14]=j):j=e[14];let k;e[15]!==i?(k=i&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=k):k=e[16];let _;e[17]!==j||e[18]!==k||e[19]!==T?(_=n.jsxs("div",{children:[T,j,k]}),e[17]=j,e[18]=k,e[19]=T,e[20]=_):_=e[20];let N;e[21]!==m?(N=m&&n.jsx("div",{className:"mt-3",children:m}),e[21]=m,e[22]=N):N=e[22];let P;e[23]!==_||e[24]!==N?(P=n.jsxs("div",{className:"min-w-0 flex-1",children:[_,N]}),e[23]=_,e[24]=N,e[25]=P):P=e[25];let C;e[26]!==P||e[27]!==v||e[28]!==b?(C=n.jsxs("div",{className:v,children:[b,P]}),e[26]=P,e[27]=v,e[28]=b,e[29]=C):C=e[29];let I;e[30]!==S||e[31]!==h||e[32]!==g||e[33]!==l?(I=g&&n.jsxs("div",{className:ut("flex items-center justify-between gap-3 px-4 py-2.5",l==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:h}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:S})]}),e[30]=S,e[31]=h,e[32]=g,e[33]=l,e[34]=I):I=e[34];let O;return e[35]!==o||e[36]!==C||e[37]!==I||e[38]!==f||e[39]!==w||e[40]!==l?(O=n.jsxs("div",{role:"dialog","aria-label":o,"data-slot":"announcement-card","data-tone":l,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[f,w,C,I]}),e[35]=o,e[36]=C,e[37]=I,e[38]=f,e[39]=w,e[40]=l,e[41]=O):O=e[41],O}const ms={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function Dt(t){return`[data-tour="${ms[t]}"]`}const fs=[{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 hs(t){return fs.filter(e=>e.scope==="shell"||e.scope==="orgHome"&&t.onOrgHome||e.scope==="project"&&t.inProject||e.scope==="siteEditor"&&t.onSiteEditor)}function gs(t,e){return hs(e).map(o=>({element:Dt(o.anchor),popover:{title:t(o.titleKey),description:t(o.descKey),side:o.side,align:"center"}}))}const ps=Dt("switcher"),ys=30;function Rt(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function bs(t,e){return gs(t,e).filter(o=>typeof o.element=="string"&&Rt(o.element))}function xs(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(o,{driver:r})=>{if(o.footerButtons.querySelector(".layout-tour-skip"))return;const s=document.createElement("button");s.type="button",s.className="driver-popover-footer-btn layout-tour-skip",s.textContent=t("layoutTour.skip"),s.addEventListener("click",()=>r.destroy()),o.footerButtons.insertBefore(s,o.footerButtons.firstChild)},onDestroyed:()=>{Me=!1},steps:e}}let Me=!1;async function ws(){return(await Vt(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Ss(t,e){if(Me)return;Me=!0;let o=0;const r=()=>{if(!Rt(ps)&&o++<ys){requestAnimationFrame(r);return}const s=bs(t,e);if(s.length===0){Me=!1;return}ws().then(a=>{a(xs(t,s)).drive()}).catch(()=>{Me=!1})};r()}function vs(t){return t!=="off"}function Qo(t){if(!t.hasSource)return[];const e=["site-editor"];return vs(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function zt(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function Xo(t){return t.reportsOnly&&!t.onReportAgent&&zt(t.tabId)}const qt=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:yt,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:it,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Sn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:mt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ee,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:yt,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ee,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:se,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:qe,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ee,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:se,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:qe,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:se,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ee,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:qe,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ee,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:se,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:qe,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ee,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:se,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:qe,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ee,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:it,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:se,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:mt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:qe,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:se,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ee,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:it,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ee,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:vn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],nt="studio.release-feed.v1",rt=new Set;let oe="",ie={},lt=!1;function js(){if(lt)return oe||"{}";try{return localStorage.getItem(nt)??"{}"}catch{return oe||"{}"}}function Ft(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function wt(){const t=js();return t!==oe&&(oe=t,ie=Ft(t)),ie}function ks(t){rt.add(t);const e=o=>{if(!(o.key!==nt&&o.key!==null)){try{const r=localStorage.getItem(nt)??"{}",a={...Ft(r),...ie};ie=a,oe=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{rt.delete(t),window.removeEventListener("storage",e)}}function Ts(t){ie=t,oe=JSON.stringify(t);try{localStorage.setItem(nt,oe),lt=!1}catch{lt=!0}rt.forEach(e=>e())}function Ns(){const t=R.c(7),e=Q.useSyncExternalStore(ks,wt,wt);let o;t[0]!==e?(o=m=>!!e[m],t[0]=e,t[1]=o):o=t[1];const r=o,s=_s;let a;t[2]!==e?(a=qt.reduce((m,h)=>e[h.id]?m:m+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let c;return t[4]!==r||t[5]!==i?(c={isSeen:r,markSeen:s,unseenCount:i},t[4]=r,t[5]=i,t[6]=c):c=t[6],c}function _s(t){ie[t]||Ts({...ie,[t]:{seenAt:new Date().toISOString()}})}const Ps=720*60*60*1e3,As=10080*60*1e3;function Cs(t){const[e,o,r]=t.split("-").map(Number);return!e||!o||!r?new Date(t).getTime():new Date(e,o-1,r).getTime()}function Es(t){const e=qt[0];if(!e)return null;const o=Cs(e.date),r=t-o;return r<0||r>Ps?null:e}function Os(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 Is(t,e){const o=Os(t);return o===null?!1:e-o>=As}function $s(){const t=R.c(46),e=G(),o=Cn(),r=Wt(),s=$t(),a=!!o,i=r===te.home&&!o;let c;t[0]!==s||t[1]!==a?(c=a&&!!s&&zt(s),t[0]=s,t[1]=a,t[2]=c):c=t[2];const m=c,{data:h}=Ue.useSession(),{isSeen:S,markSeen:u}=Ns(),p=In(6e4);let l,g,f;if(t[3]!==S||t[4]!==p||t[5]!==h?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{if(l=Es(p),!l){f=null;break e}if(!Is(h?.user?.createdAt,p)){f=null;break e}g=S(l.id)}t[3]=S,t[4]=p,t[5]=h?.user?.createdAt,t[6]=l,t[7]=g,t[8]=f}else l=t[6],g=t[7],f=t[8];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(g)return null;let d;t[9]!==l.id||t[10]!==a||t[11]!==u||t[12]!==i||t[13]!==m||t[14]!==e?(d=()=>{u(l.id),Ss(e,{onOrgHome:i,inProject:a,onSiteEditor:m})},t[9]=l.id,t[10]=a,t[11]=u,t[12]=i,t[13]=m,t[14]=e,t[15]=d):d=t[15];const w=d;let y;t[16]!==e?(y=e("announcements.release.ariaLabel"),t[16]=e,t[17]=y):y=t[17];let x;t[18]!==e?(x=e("announcements.release.dismiss"),t[18]=e,t[19]=x):x=t[19];const v=l.eyebrow,b=l.title;let T;t[20]!==l.id||t[21]!==u?(T=()=>u(l.id),t[20]=l.id,t[21]=u,t[22]=T):T=t[22];let j;t[23]!==l.id||t[24]!==l.learnMoreHref||t[25]!==u||t[26]!==e?(j=l.learnMoreHref?n.jsx("a",{href:l.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>u(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]=u,t[26]=e,t[27]=j):j=t[27];let k;t[28]!==l.cta||t[29]!==l.id||t[30]!==u||t[31]!==w?(k=l.cta?"href"in l.cta?n.jsx(z,{asChild:!0,size:"sm",onClick:()=>u(l.id),children:n.jsx("a",{href:l.cta.href,children:l.cta.label})}):n.jsx(z,{size:"sm",onClick:w,children:l.cta.label}):null,t[28]=l.cta,t[29]=l.id,t[30]=u,t[31]=w,t[32]=k):k=t[32];let _;t[33]!==l.bullets?(_=l.bullets.map(Ls),t[33]=l.bullets,t[34]=_):_=t[34];let N;t[35]!==_?(N=n.jsx("ul",{className:"flex flex-col gap-3",children:_}),t[35]=_,t[36]=N):N=t[36];let P;return t[37]!==l.eyebrow||t[38]!==l.title||t[39]!==k||t[40]!==N||t[41]!==y||t[42]!==x||t[43]!==T||t[44]!==j?(P=n.jsx(Lt,{ariaLabel:y,dismissLabel:x,eyebrow:v,title:b,onDismiss:T,footerLeading:j,actions:k,children:N}),t[37]=l.eyebrow,t[38]=l.title,t[39]=k,t[40]=N,t[41]=y,t[42]=x,t[43]=T,t[44]=j,t[45]=P):P=t[45],P}function Ls(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function Ds(t){const e=R.c(11),{open:o,onOpenChange:r}=t,s=G();let a;e[0]!==s?(a=s("common.keyboardShortcutsDialog.title"),e[0]=s,e[1]=a):a=e[1];let i;e[2]!==a?(i=n.jsx(Tt,{children:n.jsx(Nt,{children:a})}),e[2]=a,e[3]=i):i=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx("div",{className:"flex flex-col gap-4",children:Yt.map(Rs)}),e[4]=c):c=e[4];let m;e[5]!==i?(m=n.jsxs(_t,{className:"sm:max-w-md",children:[i,c]}),e[5]=i,e[6]=m):m=e[6];let h;return e[7]!==r||e[8]!==o||e[9]!==m?(h=n.jsx(Pt,{open:o,onOpenChange:r,children:m}),e[7]=r,e[8]=o,e[9]=m,e[10]=h):h=e[10],h}function Rs(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(zs)})]},t.label)}function zs(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(qs)})]},t.description)}function qs(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const St=8;function Fs(t){const{org:e}=ct(),o=Bn({connectionId:Ct,orgId:e.id,orgSlug:e.slug}),{data:r}=Fe({queryKey:Je.globalSearch(e.id,t,St),enabled:!!o&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!o)return[];try{return(await o.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:St}})).structuredContent?.items??[]}catch{return[]}}});return r??[]}function Bs(t){const e=R.c(195),{open:o,onOpenChange:r}=t,s=G(),a=At(),{org:i}=ct(),{projects:c,hasProjects:m}=En(),[h,S]=Q.useState(""),u=Q.useDeferredValue(h),p=Fs(u);let l;e[0]!==r?(l=()=>{r(!1),S("")},e[0]=r,e[1]=l):l=e[1];const g=l;let f;e[2]!==g?(f=(B,M)=>{at("command_palette_used",{kind:M}),B(),g()},e[2]=g,e[3]=f):f=e[3];const d=f;let w;e[4]!==a||e[5]!==i.id||e[6]!==i.slug?(w=B=>{if(B.type==="connection"){if(!B.slug){a({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}a({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:B.slug}});return}if(B.type==="task"){a({to:te.tasks,params:{org:i.slug,taskKey:B.key??void 0}});return}const M=Et(i.id).id;Qt(a,Xt({org:i.slug,agentId:B.virtual_mcp_id??M,superAgentId:M}),{search:()=>({thread:B.id}),replace:!1})},e[4]=a,e[5]=i.id,e[6]=i.slug,e[7]=w):w=e[7];const y=w;let x;e[8]!==h?(x=[h],e[8]=h,e[9]=x):x=e[9];const v=x;let b,T,j,k,_,N,P,C,I,O,D,A,q;if(e[10]!==g||e[11]!==d||e[12]!==m||e[13]!==p||e[14]!==a||e[15]!==r||e[16]!==o||e[17]!==y||e[18]!==i.slug||e[19]!==c||e[20]!==v||e[21]!==s||e[22]!==h){const B=p.filter(Ks),M=p.filter(Ms);let J;e[36]!==i.slug?(J={org:i.slug},e[36]=i.slug,e[37]=J):J=e[37];const $=J;let V;e[38]!==s?(V=s("sidebar.navDestinations.home"),e[38]=s,e[39]=V):V=e[39];let W;e[40]===Symbol.for("react.memo_cache_sentinel")?(W=n.jsx(kn,{"aria-hidden":"true"}),e[40]=W):W=e[40];let H;e[41]!==$||e[42]!==V?(H={key:"home",label:V,icon:W,to:te.home,params:$},e[41]=$,e[42]=V,e[43]=H):H=e[43];let U;e[44]!==s?(U=s("sidebar.navDestinations.reports"),e[44]=s,e[45]=U):U=e[45];let Z;e[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(Tn,{"aria-hidden":"true"}),e[46]=Z):Z=e[46];let Y;e[47]!==$||e[48]!==U?(Y={key:"reports",label:U,icon:Z,to:te.reports,params:$},e[47]=$,e[48]=U,e[49]=Y):Y=e[49];let L;e[50]!==s?(L=s("sidebar.navDestinations.tasks"),e[50]=s,e[51]=L):L=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=n.jsx(pt,{"aria-hidden":"true"}),e[52]=K):K=e[52];let re;e[53]!==i.slug?(re={org:i.slug,taskKey:void 0},e[53]=i.slug,e[54]=re):re=e[54];let le;e[55]!==L||e[56]!==re?(le={key:"tasks",label:L,icon:K,to:te.tasks,params:re},e[55]=L,e[56]=re,e[57]=le):le=e[57];let ce;e[58]!==s?(ce=s("sidebar.navDestinations.library"),e[58]=s,e[59]=ce):ce=e[59];let Ve;e[60]===Symbol.for("react.memo_cache_sentinel")?(Ve=n.jsx(Nn,{"aria-hidden":"true"}),e[60]=Ve):Ve=e[60];let de;e[61]!==$||e[62]!==ce?(de={key:"library",label:ce,icon:Ve,to:te.library,params:$},e[61]=$,e[62]=ce,e[63]=de):de=e[63];let ue;e[64]!==s?(ue=s("sidebar.navDestinations.discover"),e[64]=s,e[65]=ue):ue=e[65];let We;e[66]===Symbol.for("react.memo_cache_sentinel")?(We=n.jsx(_n,{"aria-hidden":"true"}),e[66]=We):We=e[66];let me;e[67]!==$||e[68]!==ue?(me={key:"discover",label:ue,icon:We,to:te.discover,params:$},e[67]=$,e[68]=ue,e[69]=me):me=e[69];let Ye;e[70]!==H||e[71]!==Y||e[72]!==le||e[73]!==de||e[74]!==me?(Ye=[H,Y,le,de,me],e[70]=H,e[71]=Y,e[72]=le,e[73]=de,e[74]=me,e[75]=Ye):Ye=e[75];const ot=Ye;T=Ln,k=o,e[76]!==g||e[77]!==r?(_=E=>E?r(!0):g(),e[76]=g,e[77]=r,e[78]=_):_=e[78],e[79]!==s?(N=s("commandPalette.title"),e[79]=s,e[80]=N):N=e[80],e[81]!==s?(P=s("commandPalette.description"),e[81]=s,e[82]=P):P=e[82];let fe;e[83]!==s?(fe=s("commandPalette.placeholder"),e[83]=s,e[84]=fe):fe=e[84];let he;e[85]!==s?(he=s("commandPalette.placeholder"),e[85]=s,e[86]=he):he=e[86],e[87]!==fe||e[88]!==he||e[89]!==h?(C=n.jsx(Dn,{placeholder:fe,"aria-label":he,value:h,onValueChange:S}),e[87]=fe,e[88]=he,e[89]=h,e[90]=C):C=e[90],b=Rn;let ge;e[91]!==s?(ge=s("commandPalette.empty"),e[91]=s,e[92]=ge):ge=e[92],e[93]!==ge?(I=n.jsx(zn,{children:ge}),e[93]=ge,e[94]=I):I=e[94];let pe;e[95]!==s?(pe=s("commandPalette.goTo"),e[95]=s,e[96]=pe):pe=e[96];let ye;e[97]!==ot||e[98]!==d||e[99]!==a?(ye=ot.map(E=>n.jsxs(ne,{onSelect:()=>d(()=>a({to:E.to,params:E.params}),"destination"),children:[E.icon,n.jsx("span",{children:E.label})]},E.key)),e[97]=ot,e[98]=d,e[99]=a,e[100]=ye):ye=e[100],e[101]!==pe||e[102]!==ye?(O=n.jsx(Be,{heading:pe,children:ye}),e[101]=pe,e[102]=ye,e[103]=O):O=e[103],e[104]!==d||e[105]!==m||e[106]!==a||e[107]!==i.slug||e[108]!==c||e[109]!==s?(D=m&&n.jsx(Be,{heading:s("commandPalette.projects"),children:c.map(E=>n.jsxs(ne,{value:`project ${E.title}`,onSelect:()=>d(()=>a({to:te.projects,params:{org:i.slug,agentId:E.id}}),"project"),children:[n.jsx(Fn,{icon:E.icon,name:E.title,"aria-hidden":"true"}),n.jsx("span",{children:E.title})]},E.id))}),e[104]=d,e[105]=m,e[106]=a,e[107]=i.slug,e[108]=c,e[109]=s,e[110]=D):D=e[110];let be;e[111]!==s?(be=s("commandPalette.actions"),e[111]=s,e[112]=be):be=e[112];let xe;e[113]!==s?(xe=s("commandPalette.newProject"),e[113]=s,e[114]=xe):xe=e[114];let we;e[115]!==d||e[116]!==a||e[117]!==$?(we=()=>d(()=>a({to:te.home,params:$}),"new_project"),e[115]=d,e[116]=a,e[117]=$,e[118]=we):we=e[118];let Qe;e[119]===Symbol.for("react.memo_cache_sentinel")?(Qe=n.jsx(bt,{"aria-hidden":"true"}),e[119]=Qe):Qe=e[119];let Se;e[120]!==s?(Se=s("commandPalette.newProject"),e[120]=s,e[121]=Se):Se=e[121];let ve;e[122]!==Se?(ve=n.jsx("span",{children:Se}),e[122]=Se,e[123]=ve):ve=e[123];let je;e[124]!==xe||e[125]!==we||e[126]!==ve?(je=n.jsxs(ne,{value:xe,onSelect:we,children:[Qe,ve]}),e[124]=xe,e[125]=we,e[126]=ve,e[127]=je):je=e[127];let ke;e[128]!==s?(ke=s("commandPalette.inviteTeammate"),e[128]=s,e[129]=ke):ke=e[129];let Te;e[130]!==d||e[131]!==a||e[132]!==$?(Te=()=>d(()=>a({to:"/$org/settings/members",params:$}),"invite"),e[130]=d,e[131]=a,e[132]=$,e[133]=Te):Te=e[133];let Xe;e[134]===Symbol.for("react.memo_cache_sentinel")?(Xe=n.jsx(Pn,{"aria-hidden":"true"}),e[134]=Xe):Xe=e[134];let Ne;e[135]!==s?(Ne=s("commandPalette.inviteTeammate"),e[135]=s,e[136]=Ne):Ne=e[136];let _e;e[137]!==Ne?(_e=n.jsx("span",{children:Ne}),e[137]=Ne,e[138]=_e):_e=e[138];let Pe;e[139]!==ke||e[140]!==Te||e[141]!==_e?(Pe=n.jsxs(ne,{value:ke,onSelect:Te,children:[Xe,_e]}),e[139]=ke,e[140]=Te,e[141]=_e,e[142]=Pe):Pe=e[142];let Ae;e[143]!==s?(Ae=s("commandPalette.addConnection"),e[143]=s,e[144]=Ae):Ae=e[144];let Ce;e[145]!==d||e[146]!==a||e[147]!==$?(Ce=()=>d(()=>a({to:"/$org/settings/connections",params:$,search:{tab:"all"}}),"add_connection"),e[145]=d,e[146]=a,e[147]=$,e[148]=Ce):Ce=e[148];let Ze;e[149]===Symbol.for("react.memo_cache_sentinel")?(Ze=n.jsx(bt,{"aria-hidden":"true"}),e[149]=Ze):Ze=e[149];let Ee;e[150]!==s?(Ee=s("commandPalette.addConnection"),e[150]=s,e[151]=Ee):Ee=e[151];let Oe;e[152]!==Ee?(Oe=n.jsx("span",{children:Ee}),e[152]=Ee,e[153]=Oe):Oe=e[153];let Ie;e[154]!==Ae||e[155]!==Ce||e[156]!==Oe?(Ie=n.jsxs(ne,{value:Ae,onSelect:Ce,children:[Ze,Oe]}),e[154]=Ae,e[155]=Ce,e[156]=Oe,e[157]=Ie):Ie=e[157];let $e;e[158]!==s?($e=s("commandPalette.settings"),e[158]=s,e[159]=$e):$e=e[159];let Le;e[160]!==d||e[161]!==a||e[162]!==$?(Le=()=>d(()=>a({to:"/$org/settings/general",params:$}),"settings"),e[160]=d,e[161]=a,e[162]=$,e[163]=Le):Le=e[163];let et;e[164]===Symbol.for("react.memo_cache_sentinel")?(et=n.jsx($n,{"aria-hidden":"true"}),e[164]=et):et=e[164];let De;e[165]!==s?(De=s("commandPalette.settings"),e[165]=s,e[166]=De):De=e[166];let Re;e[167]!==De?(Re=n.jsx("span",{children:De}),e[167]=De,e[168]=Re):Re=e[168];let ze;e[169]!==$e||e[170]!==Le||e[171]!==Re?(ze=n.jsxs(ne,{value:$e,onSelect:Le,children:[et,Re]}),e[169]=$e,e[170]=Le,e[171]=Re,e[172]=ze):ze=e[172],e[173]!==be||e[174]!==je||e[175]!==Pe||e[176]!==Ie||e[177]!==ze?(A=n.jsxs(Be,{heading:be,children:[je,Pe,Ie,ze]}),e[173]=be,e[174]=je,e[175]=Pe,e[176]=Ie,e[177]=ze,e[178]=A):A=e[178],q=B.length>0&&n.jsx(Be,{heading:s("commandPalette.connections"),children:B.map(E=>n.jsxs(ne,{value:`${E.title} ${E.id}`,keywords:v,onSelect:()=>d(()=>y(E),"connection"),children:[n.jsx(qn,{icon:E.icon,name:E.title,size:"2xs","aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:E.title})]},`connection:${E.id}`))}),j=M.length>0&&n.jsx(Be,{heading:s("commandPalette.results"),children:M.map(E=>n.jsxs(ne,{value:`${E.title} ${E.id}`,keywords:v,onSelect:()=>d(()=>y(E),E.type),children:[E.type==="thread"?n.jsx(jn,{"aria-hidden":"true"}):n.jsx(pt,{"aria-hidden":"true"}),n.jsx("span",{className:"truncate",children:E.title}),E.type==="task"&&E.key&&n.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:E.key})]},`${E.type}:${E.id}`))}),e[10]=g,e[11]=d,e[12]=m,e[13]=p,e[14]=a,e[15]=r,e[16]=o,e[17]=y,e[18]=i.slug,e[19]=c,e[20]=v,e[21]=s,e[22]=h,e[23]=b,e[24]=T,e[25]=j,e[26]=k,e[27]=_,e[28]=N,e[29]=P,e[30]=C,e[31]=I,e[32]=O,e[33]=D,e[34]=A,e[35]=q}else b=e[23],T=e[24],j=e[25],k=e[26],_=e[27],N=e[28],P=e[29],C=e[30],I=e[31],O=e[32],D=e[33],A=e[34],q=e[35];let F;e[179]!==b||e[180]!==j||e[181]!==I||e[182]!==O||e[183]!==D||e[184]!==A||e[185]!==q?(F=n.jsxs(b,{children:[I,O,D,A,q,j]}),e[179]=b,e[180]=j,e[181]=I,e[182]=O,e[183]=D,e[184]=A,e[185]=q,e[186]=F):F=e[186];let X;return e[187]!==T||e[188]!==k||e[189]!==_||e[190]!==N||e[191]!==P||e[192]!==C||e[193]!==F?(X=n.jsxs(T,{open:k,onOpenChange:_,title:N,description:P,children:[C,F]}),e[187]=T,e[188]=k,e[189]=_,e[190]=N,e[191]=P,e[192]=C,e[193]=F,e[194]=X):X=e[194],X}function Ms(t){return t.type!=="connection"}function Ks(t){return t.type==="connection"}const He=new Gn(!1);function Hs(){He.set(!0)}function Us(){He.set(!1)}function Gs(){const t=R.c(2),e=Q.useSyncExternalStore(He.subscribe,He.get);let o;return t[0]!==e?(o=[e,He.set],t[0]=e,t[1]=o):o=t[1],o}const Js=300*1e3,Vs=2;function Ws(t,e,o){return!e||e===o?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Ys(t,e){return t.count>=Vs&&t.version!==null&&t.version!==e}function Qs(){const t=R.c(31),e=G();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={queryKey:Je.appVersionCheck(),queryFn:Zs,refetchInterval:Js,refetchIntervalInBackground:!0,staleTime:0},t[0]=o):o=t[0];const{data:r,dataUpdatedAt:s}=Fe(o),[a,i]=Q.useState(0);let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c={version:null,count:0},t[1]=c):c=t[1];const[m,h]=Q.useState(c);s!==a&&(i(s),h(k=>Ws(k,r,"4.524.2")));const[S,u]=Q.useState(null);if(!Ys(m,S))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 g;t[6]!==e?(g=e("announcements.version.eyebrow"),t[6]=e,t[7]=g):g=t[7];let f;t[8]!==e?(f=e("announcements.version.title"),t[8]=e,t[9]=f):f=t[9];let d;t[10]!==e?(d=e("announcements.version.description"),t[10]=e,t[11]=d):d=t[11];let w;t[12]===Symbol.for("react.memo_cache_sentinel")?(w=n.jsx(ft,{size:16}),t[12]=w):w=t[12];let y;t[13]!==m.version?(y=()=>u(m.version),t[13]=m.version,t[14]=y):y=t[14];let x;t[15]!==e?(x=e("announcements.version.currentSession",{version:"4.524.2"}),t[15]=e,t[16]=x):x=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let b;t[19]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx(ft,{size:14}),t[19]=b):b=t[19];let T;t[20]!==v?(T=n.jsxs(z,{size:"sm",onClick:Xs,children:[v,b]}),t[20]=v,t[21]=T):T=t[21];let j;return t[22]!==T||t[23]!==p||t[24]!==l||t[25]!==g||t[26]!==f||t[27]!==d||t[28]!==y||t[29]!==x?(j=n.jsx(Lt,{ariaLabel:p,dismissLabel:l,eyebrow:g,title:f,description:d,icon:w,tone:"system",onDismiss:y,footerLeading:x,actions:T}),t[22]=T,t[23]=p,t[24]=l,t[25]=g,t[26]=f,t[27]=d,t[28]=y,t[29]=x,t[30]=j):j=t[30],j}function Xs(){return window.location.reload()}async function Zs(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function eo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const to=Date.parse("2026-07-21T00:00:00Z"),vt=t=>eo(Ge.ptBrAnnouncementSeen(t));function no(){const t=R.c(35),e=G(),[o,r]=Zt(),{data:s,isPending:a}=Ue.useSession(),i=s?.user,c=i?.id,m=i?.createdAt,h=m!=null&&new Date(m).getTime()<to,S=en()==="pt-BR",u=!a&&!!c&&h&&S&&o.language==="en"&&!vt(c).has(),[p,l]=Q.useState(!1),[g,f]=Q.useState(!1);!p&&!a&&(l(!0),u&&c&&(vt(c).mark(),r(oo),f(!0),at("pt_br_auto_switch_shown")));let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d=X=>{at("pt_br_auto_switch_closed",{action:X}),f(!1)},t[0]=d):d=t[0];const w=d;let y;t[1]!==r?(y=()=>{r(so),w("switch-back")},t[1]=r,t[2]=y):y=t[2];const x=y;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=X=>!X&&w("dismiss"),t[3]=v):v=t[3];let b;t[4]===Symbol.for("react.memo_cache_sentinel")?(b=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=b):b=t[4];let T;t[5]!==e?(T=e("announcements.ptBr.title"),t[5]=e,t[6]=T):T=t[6];let j;t[7]!==T?(j=n.jsx(Nt,{children:T}),t[7]=T,t[8]=j):j=t[8];let k;t[9]!==e?(k=e("announcements.ptBr.description"),t[9]=e,t[10]=k):k=t[10];let _;t[11]!==k?(_=n.jsx(tn,{children:k}),t[11]=k,t[12]=_):_=t[12];let N;t[13]!==j||t[14]!==_?(N=n.jsxs(Tt,{children:[j,_]}),t[13]=j,t[14]=_,t[15]=N):N=t[15];let P;t[16]!==e?(P=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=P):P=t[17];let C;t[18]!==x||t[19]!==P?(C=n.jsx(z,{variant:"outline",onClick:x,children:P}),t[18]=x,t[19]=P,t[20]=C):C=t[20];let I;t[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>w("ok"),t[21]=I):I=t[21];let O;t[22]!==e?(O=e("announcements.ptBr.ok"),t[22]=e,t[23]=O):O=t[23];let D;t[24]!==O?(D=n.jsx(z,{onClick:I,children:O}),t[24]=O,t[25]=D):D=t[25];let A;t[26]!==C||t[27]!==D?(A=n.jsxs(nn,{children:[C,D]}),t[26]=C,t[27]=D,t[28]=A):A=t[28];let q;t[29]!==A||t[30]!==N?(q=n.jsxs(_t,{className:"sm:max-w-md",children:[b,N,A]}),t[29]=A,t[30]=N,t[31]=q):q=t[31];let F;return t[32]!==g||t[33]!==q?(F=n.jsx(Pt,{open:g,onOpenChange:v,children:q}),t[32]=g,t[33]=q,t[34]=F):F=t[34],F}function so(t){return{...t,language:"en"}}function oo(t){return{...t,language:"pt-BR"}}function io(t){const e=sn(t);return typeof e=="string"?e:void 0}function ao(){return io("experiment-pipeline-check"),null}function ro(t){const e=R.c(1),{activeOrg:o}=t;if(!o)return null;on(o.id,{name:o.name??void 0,slug:o.slug??void 0}),an();let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(ao,{}),e[0]=r):r=e[0],r}function lo(t){const{prev:e,virtualMcpId:o,decopilotId:r,savedLayout:s,opts:a,autosendValue:i}=t,c={mainpanel:void 0};o?c.virtualmcpid=o:e.virtualmcpid&&(c.virtualmcpid=e.virtualmcpid);const m=typeof e.virtualmcpid=="string"?e.virtualmcpid:r,S=(o??m)!==m;let u,p;return a?.panel?p=a.panel:a?.newThread&&!S&&rn(e.tabId)?(p=e.tabId,c.mainpanel=e.mainpanel,u=e.sidepanel):s?(p=s.tab,s.sidepanel!==void 0&&(u=s.sidepanel),s.mainpanel!==void 0&&(c.mainpanel=s.mainpanel)):!S&&e.tabId&&!ln(e.tabId)&&(p=e.tabId),u!==void 0&&(c.sidepanel=u),a?.autosend&&(c.autosend=i),{tabId:p,search:c}}const Bt="studio:thread-layout:v4",co=50;function Mt(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function uo(t,e,o,r=co){const s=t.filter(([a])=>a!==e);for(s.push([e,Mt(o)]);s.length>r;)s.shift();return s}function dt(){try{const t=sessionStorage.getItem(Bt);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(o=>Array.isArray(o)&&o.length===2&&typeof o[0]=="string"):[]}catch{return[]}}function Kt(t){try{sessionStorage.setItem(Bt,JSON.stringify(t))}catch{}}function mo(t,e){t&&Kt(uo(dt(),t,e))}function fo(t){if(!t)return null;const e=dt().find(([o])=>o===t);return e?Mt(e[1]):null}function Zo(t){if(!t)return;const e=dt(),o=e.filter(([r])=>r!==t);o.length!==e.length&&Kt(o)}function Ht(t){return{queryKey:Je.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 ei(t){const e=R.c(10);let o;e[0]!==t?(o=Ht(t),e[0]=t,e[1]=o):o=e[1];const r=Fe(o);let s;e[2]!==r.data?.prompts?(s=r.data?.prompts??[],e[2]=r.data?.prompts,e[3]=s):s=e[3];let a;e[4]!==r.data?.tiles?(a=r.data?.tiles??[],e[4]=r.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==r.isLoading||e[7]!==s||e[8]!==a?(i={isLoading:r.isLoading,prompts:s,tiles:a},e[6]=r.isLoading,e[7]=s,e[8]=a,e[9]=i):i=e[9],i}function ho(t){const e=R.c(31),{orgSlug:o,orgName:r,domain:s}=t,a=G();let i;e[0]!==o?(i=()=>{window.location.href=`/api/${encodeURIComponent(o)}/sso/authorize`},e[0]=o,e[1]=i):i=e[1];const c=i,m=go;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:n.jsx(jt,{className:"h-6 w-6 text-primary"})}),e[2]=h):h=e[2];let S;e[3]!==a?(S=a("common.ssoRequiredScreen.title"),e[3]=a,e[4]=S):S=e[4];let u;e[5]!==S?(u=n.jsx("h3",{className:"text-lg font-medium",children:S}),e[5]=S,e[6]=u):u=e[6];let p;e[7]!==s||e[8]!==r||e[9]!==a?(p=r?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:r})," ",a("common.ssoRequiredScreen.requiresSsoAuth"),s?` ${a("common.ssoRequiredScreen.via",{domain:s})}`:"","."]}):a("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=s,e[8]=r,e[9]=a,e[10]=p):p=e[10];let l;e[11]!==p?(l=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[11]=p,e[12]=l):l=e[12];let g;e[13]!==u||e[14]!==l?(g=n.jsxs("div",{className:"space-y-2",children:[u,l]}),e[13]=u,e[14]=l,e[15]=g):g=e[15];let f;e[16]!==a?(f=a("common.ssoRequiredScreen.signInWithSso"),e[16]=a,e[17]=f):f=e[17];let d;e[18]!==c||e[19]!==f?(d=n.jsx(z,{onClick:c,children:f}),e[18]=c,e[19]=f,e[20]=d):d=e[20];let w;e[21]!==a?(w=a("common.goBack"),e[21]=a,e[22]=w):w=e[22];let y;e[23]!==w?(y=n.jsx(z,{variant:"ghost",onClick:m,children:w}),e[23]=w,e[24]=y):y=e[24];let x;e[25]!==y||e[26]!==d?(x=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[d,y]}),e[25]=y,e[26]=d,e[27]=x):x=e[27];let v;return e[28]!==x||e[29]!==g?(v=n.jsxs(ae,{children:[h,g,x]}),e[28]=x,e[29]=g,e[30]=v):v=e[30],v}function go(){window.location.href="/"}function po(t){const e=R.c(27),{notice:o,orgSlug:r}=t,s=G();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=n.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:n.jsx(cn,{className:"h-6 w-6 text-destructive"})}),e[0]=a):a=e[0];let i;e[1]!==o.title?(i=n.jsx("h3",{className:"text-lg font-medium",children:o.title}),e[1]=o.title,e[2]=i):i=e[2];let c;e[3]!==o.message?(c=n.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:o.message}),e[3]=o.message,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==c?(m=n.jsxs("div",{className:"space-y-2",children:[i,c]}),e[5]=i,e[6]=c,e[7]=m):m=e[7];let h;e[8]!==o.ctaLabel||e[9]!==o.ctaUrl?(h=o.ctaUrl&&o.ctaLabel?n.jsx(z,{asChild:!0,children:n.jsx("a",{href:o.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:o.ctaLabel})}):null,e[8]=o.ctaLabel,e[9]=o.ctaUrl,e[10]=h):h=e[10];const S=`/${encodeURIComponent(r)}/settings/infra-billing`;let u;e[11]!==s?(u=s("common.blockedOrgScreen.goToBilling"),e[11]=s,e[12]=u):u=e[12];let p;e[13]!==S||e[14]!==u?(p=n.jsx(z,{variant:"outline",asChild:!0,children:n.jsx("a",{href:S,children:u})}),e[13]=S,e[14]=u,e[15]=p):p=e[15];let l;e[16]!==s?(l=s("common.blockedOrgScreen.switchOrg"),e[16]=s,e[17]=l):l=e[17];let g;e[18]!==l?(g=n.jsx(z,{variant:"ghost",asChild:!0,children:n.jsx("a",{href:"/",children:l})}),e[18]=l,e[19]=g):g=e[19];let f;e[20]!==g||e[21]!==h||e[22]!==p?(f=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[h,p,g]}),e[20]=g,e[21]=h,e[22]=p,e[23]=f):f=e[23];let d;return e[24]!==f||e[25]!==m?(d=n.jsxs(ae,{children:[a,m,f]}),e[24]=f,e[25]=m,e[26]=d):d=e[26],d}function yo(t){const e=R.c(8);let o;e[0]!==t?(o=Je.orgNotice(t??""),e[0]=t,e[1]=o):o=e[1];let r;e[2]!==t?(r=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=r):r=e[3];const s=!!t;let a;return e[4]!==o||e[5]!==r||e[6]!==s?(a={queryKey:o,queryFn:r,enabled:s,staleTime:6e4},e[4]=o,e[5]=r,e[6]=s,e[7]=a):a=e[7],Fe(a)}const bo="/settings/infra-billing";function xo(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(bo)}function wo(t){const e=R.c(7),{org:o,children:r}=t;let s;e[0]!==o.id||e[1]!==o.name?(s={id:o.id,organizationId:o.id,slug:"_org",name:o.name,ui:null},e[0]=o.id,e[1]=o.name,e[2]=s):s=e[2];const a=s;let i;return e[3]!==r||e[4]!==o||e[5]!==a?(i=n.jsx(yn,{org:o,project:a,children:r}),e[3]=r,e[4]=o,e[5]=a,e[6]=i):i=e[6],i}function So(){const t=At(),e=Jn(),{org:o}=ct(),r=dn({strict:!1}),s=$t(),{openPanel:a,closePanel:i}=On(),c=Yn(),m=Qn(),h=Xn(),S=Zn(),u=(f,d=!0)=>t({to:".",search:f,replace:d}),p=()=>u(f=>({...f,sidepanel:!0})),l=(f,d,w)=>{const y=!!m&&m===f;m&&!y&&mo(m,{tab:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel});const x=y?null:fo(f),v=Et(o.id).id,b=lo({prev:{virtualmcpid:c,tabId:s,mainpanel:r.mainpanel,sidepanel:r.sidepanel},virtualMcpId:d,decopilotId:v,savedLayout:x,opts:w,autosendValue:Wn});return S(f,()=>b.search,{virtualMcpId:d,view:{tabId:b.tabId}})};return{openSidePanel:p,setTaskId:l,createNewTask:async(f,d,w)=>{const y=crypto.randomUUID(),x=f??h;try{await e?.create({id:y,virtual_mcp_id:x,...d?{branch:d}:{}})}catch{}l(y,x,{...w,newThread:!0})},openTab:a,closeTab:i}}const vo=new Set(["/$org/","/$org/home"]);function jo(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ko},t[0]=e):e=t[0],Ot(e)}function ko(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&vo.has(e)}function To(){const t=R.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const r=un(e)?.params.org,[s,a]=Q.useState(!1),[i,c]=Gs(),[m,h]=Kn(),S=mn(),u=jo(),p=r??"";let l;t[1]!==p?(l=Ht(p),t[1]=p,t[2]=l):l=t[2];const g=!!r&&u;let f;t[3]!==l||t[4]!==g?(f={...l,enabled:g},t[3]=l,t[4]=g,t[5]=f):f=t[5],Fe(f);const{data:d}=Ue.useSession(),w=d?.user?.id;let y,x;t[6]!==S?(y=()=>{const L=K=>{if(gt(K)&&K.code==="KeyK"){K.preventDefault(),Hs();return}if(K.key==="?"&&!pn(K.target)){K.preventDefault(),a(!0);return}gt(K)&&K.code==="BracketLeft"&&S.history.canGoBack()&&(K.preventDefault(),S.history.back())};return document.addEventListener("keydown",L),()=>document.removeEventListener("keydown",L)},x=[S],t[6]=S,t[7]=y,t[8]=x):(y=t[7],x=t[8]),Q.useEffect(y,x);let v;t[9]!==r||t[10]!==w?(v=fn(r,w),t[9]=r,t[10]=w,t[11]=v):v=t[11];const{data:b}=kt(v),T=b?.id,j=b?.slug,{data:k}=es(T,j),_=!!k?.ssoRequired&&!k.authenticated,{data:N}=yo(j);let P;t[12]===Symbol.for("react.memo_cache_sentinel")?(P={select:No},t[12]=P):P=t[12];const C=Ot(P),I=N?.severity==="block"&&!xo(C),O=T??"",D=j??"";let A;t[13]!==D||t[14]!==O?(A=Mn({connectionId:Ct,orgId:O,orgSlug:D}),t[13]=D,t[14]=O,t[15]=A):A=t[15];const q=!!T&&!!j;let F;if(t[16]!==A||t[17]!==q?(F={...A,enabled:q},t[16]=A,t[17]=q,t[18]=F):F=t[18],Fe(F),(!b||ht(b)||_||I)&&Us(),!b){let L;return t[19]!==r?(L=n.jsx(us,{orgSlug:r}),t[19]=r,t[20]=L):L=t[20],L}if(ht(b)){localStorage.getItem(Ge.lastOrgSlug())===r&&localStorage.removeItem(Ge.lastOrgSlug());let L;return t[21]!==b.name?(L=n.jsx(hn,{orgName:b.name}),t[21]=b.name,t[22]=L):L=t[22],L}if(I&&N){let L;return t[23]!==b.slug||t[24]!==N?(L=n.jsx(po,{notice:N,orgSlug:b.slug}),t[23]=b.slug,t[24]=N,t[25]=L):L=t[25],L}if(_){let L;return t[26]!==b.id||t[27]!==b.name||t[28]!==b.slug||t[29]!==k.domain?(L=n.jsx(ho,{orgId:b.id,orgSlug:b.slug,orgName:b.name,domain:k.domain}),t[26]=b.id,t[27]=b.name,t[28]=b.slug,t[29]=k.domain,t[30]=L):L=t[30],L}const B=b.logo??null;let M;t[31]!==b||t[32]!==B?(M={...b,logo:B},t[31]=b,t[32]=B,t[33]=M):M=t[33];let J;t[34]!==b?(J=n.jsx(ro,{activeOrg:b}),t[34]=b,t[35]=J):J=t[35];let $;t[36]===Symbol.for("react.memo_cache_sentinel")?($=n.jsx(gn,{}),t[36]=$):$=t[36];let V;t[37]===Symbol.for("react.memo_cache_sentinel")?(V=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx($s,{}),n.jsx(Qs,{})]}),t[37]=V):V=t[37];let W;t[38]!==i||t[39]!==c?(W=i&&n.jsx(Bs,{open:i,onOpenChange:c}),t[38]=i,t[39]=c,t[40]=W):W=t[40];let H;t[41]!==m||t[42]!==h?(H=m&&n.jsx(Hn,{open:!0,onOpenChange:h,source:Un()}),t[41]=m,t[42]=h,t[43]=H):H=t[43];let U;t[44]!==s?(U=n.jsx(Ds,{open:s,onOpenChange:a}),t[44]=s,t[45]=U):U=t[45];let Z;t[46]===Symbol.for("react.memo_cache_sentinel")?(Z=n.jsx(no,{}),t[46]=Z):Z=t[46];let Y;return t[47]!==M||t[48]!==J||t[49]!==W||t[50]!==H||t[51]!==U?(Y=n.jsxs(wo,{org:M,children:[J,$,V,W,H,U,Z]}),t[47]=M,t[48]=J,t[49]=W,t[50]=H,t[51]=U,t[52]=Y):Y=t[52],Y}function No(t){return t.location.pathname}function _o(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(Vn,{children:n.jsx(To,{})}),t[0]=e):e=t[0],e}const ti=Object.freeze(Object.defineProperty({__proto__:null,default:_o,usePanelActions:So},Symbol.toStringTag,{value:"Module"}));export{ms as L,So as a,vs as b,ei as c,ti as d,Zo as f,zt as i,Hs as o,Qo as r,Xo as s,yo as u};
@@ -1,4 +1,4 @@
1
- import{c as M,b as xe,r as q,j as r,B as ye,l as X,K as Et,as as Xs,b4 as Lr,ay as ua,aD as Ur,X as Gt,t as Oe,aM as Ys,aN as Zs,aO as en,aP as tn,bl as sn,aQ as nn,aR as an,aS as rn,V as Ps,Y as js,Z as Ss,a as ks,a4 as Cs,cr as qr,h as Qt,f7 as ha,f8 as ln,bI as zr,bd as Hr,eV as $n,f9 as Kr,b$ as Vr,at as Gr,I as Qr,a7 as Wr,fa as Jr,q as Ns,fb as Xr,eR as Yr,U as fa,m as Tt,eP as on,H as ma,D as pa,x as ba,v as ga,Q as xa,M as va,fc as Zr,bm as ya,a5 as wa,b8 as cn,e as Fn,C as el,R as tl}from"./index-C4tYnNih.js";import{S as sl}from"./separator-DdBbm1xl.js";import{f as nl,u as Zt,r as Pa,l as ja,c as Sa,b as al}from"./chat-context-CIOqAIIy.js";import{u as qt,a9 as rl,c as ka,b as Ca,aa as dn,ab as bs,H as Es,ac as En,ad as ll,ae as il,af as ol,ag as cl,ah as dl,X as ul,ai as hl,D as un,B as Na,aj as fl,ak as Aa,z as ml,w as Ra}from"./site-editor-toast-gO0geSY6.js";import{L as pl,a as bl}from"./shell-layout-DQPoLlFW.js";import{I as Ta}from"./toolbar-icon-button-fBm5AosV.js";import{P as gl,a as xl,b as vl}from"./popover-7hw0_Cgu.js";import{c as kt,T as Ct,a as Nt,b as As}from"./tooltip-B1eS9Khq.js";import{d as yl,e as wl,c as Pl,C as _n,a as On,b as Ln}from"./command-MmMDew8i.js";import{T as Lt,a as Ia,c as Da}from"./tabs-B5O9VNwn.js";import{t as Ba}from"./ChevronUp-RlBkcpdd.js";import{aH as Rs,H as jl,a as Ma,aI as Sl,b as $a,aJ as Fa,O as kl}from"./agent-icon-KvVT3fA8.js";import{i as Ea}from"./DotsVertical-D9231JAc.js";import{b as _a}from"./Tool01-BvlRH5Ln.js";import{s as Oa}from"./Plus-CcJNnBya.js";import{s as Ts}from"./Trash01-C9E8l_mI.js";import{u as hn,r as _s,a as Un,n as Os,g as fn,b as mn}from"./use-releases-DSFeRsP3.js";import{k as Cl,d as Nl,j as qn}from"./thread-intent-B9ceQWmI.js";import{h as La,r as Ua,g as Al,f as tt,a as pn,j as qa}from"./repository-binding-C7GXruB1.js";import{u as Rl}from"./use-debounced-value-DOPKXMfX.js";import{u as Tl}from"./use-clock-tick-QAJndZ00.js";import{u as Il}from"./useInfiniteQuery-CtWUiDbh.js";import{e as Dl,c as Bl,p as Ml,g as za,h as Ha,i as Ka}from"./use-navigate-to-agent-B3bMlZK-.js";import{a as zn}from"./virtual-mcp-DO56RLOP.js";import{u as Va,c as $l,e as Fl}from"./experiments-tab-choice-pVOiMOWe.js";import{G as Ga}from"./repository-picker-D6fEwnOk.js";import{u as bn}from"./use-session-runtime-CtTWKH1c.js";import{u as El,c as _l,d as Ol,e as Ll}from"./use-fast-preview-draft-url-CN-8cYCq.js";import{a8 as Kt,a9 as Qa,w as gs,l as gn,aa as Wa,ab as Ul,ac as ql,ad as zl,ae as Hl,j as Kl,u as Ft,f as xn,af as Vl}from"./parse-sections-CBOr5TcU.js";import"./index-Bz0XRw1e.js";import{T as Gl}from"./textarea-CAZh8Kr5.js";import{i as vn}from"./CheckCircle-BE1i_X4b.js";import{s as xs}from"./Image01-ClayPF_a.js";import{p as Ql,H as Wl,h as Jl,k as Xl,n as Yl,r as Zl,a as ei,b as ti,u as si}from"./releases-api-DA_Oz9WG.js";import{a as ni,g as ai}from"./UserSquare-DwNuAluZ.js";import{n as ri,b as li,m as ii}from"./named-rule-uses-DDsPTKwP.js";import{f as yn,b as Ja,r as Is,p as oi,c as Xa,i as wn,d as ci,e as Ya,m as di,h as ui,g as Za,j as hi,n as fi,k as mi,l as pi,o as bi,q as Pn,t as gi,u as er,s as tr,v as Ls}from"./sandbox-git-api-CH_-QFpD.js";import{b as xi,g as vi}from"./utils-wTX1Gyo-.js";import{i as yi}from"./Monitor01-BpzvJnXA.js";import{w as jn,g as wi,D as Pi}from"./section-preview-url-7zfngvgW.js";import{w as Sn}from"./device-hint-SeLRi17j.js";import{w as Hn}from"./editor-BTovmEAS.js";import{d as ji,a as Si,R as sr}from"./section-array-field-TQFJqwVV.js";import{u as nr}from"./use-content-sync-TKItZ8SP.js";import{s as ar}from"./save-changes-debug-nBi-n9eV.js";import{u as ki}from"./use-mcp-client-BkBWhGyj.js";import{u as Ci}from"./use-sandbox-events-C6ionJ0p.js";import{b as Ni,a as Ai}from"./sandbox-lifecycle-context-DS1zxfZb.js";import{b as Ri}from"./thread-route-_-Jo9yAq.js";const Kn=/[\r\n<>]/,Ti=/^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/;function Ds(t){const e=t?.userName?.trim();if(!e||Kn.test(e))return null;const s=t?.userEmail?.trim();return!s||Kn.test(s)?{userName:e}:Ti.test(s)?{userName:e,userEmail:s}:{userName:e}}function Ii(t){return t.split(`
1
+ import{c as M,b as xe,r as q,j as r,B as ye,l as X,K as Et,as as Xs,b4 as Lr,ay as ua,aD as Ur,X as Gt,t as Oe,aM as Ys,aN as Zs,aO as en,aP as tn,bl as sn,aQ as nn,aR as an,aS as rn,V as Ps,Y as js,Z as Ss,a as ks,a4 as Cs,cr as qr,h as Qt,f7 as ha,f8 as ln,bI as zr,bd as Hr,eV as $n,f9 as Kr,b$ as Vr,at as Gr,I as Qr,a7 as Wr,fa as Jr,q as Ns,fb as Xr,eR as Yr,U as fa,m as Tt,eP as on,H as ma,D as pa,x as ba,v as ga,Q as xa,M as va,fc as Zr,bm as ya,a5 as wa,b8 as cn,e as Fn,C as el,R as tl}from"./index-BGCeOWuH.js";import{S as sl}from"./separator-DcYK5L3O.js";import{f as nl,u as Zt,r as Pa,l as ja,c as Sa,b as al}from"./chat-context-BvBN6HgF.js";import{u as qt,a9 as rl,c as ka,b as Ca,aa as dn,ab as bs,H as Es,ac as En,ad as ll,ae as il,af as ol,ag as cl,ah as dl,X as ul,ai as hl,D as un,B as Na,aj as fl,ak as Aa,z as ml,w as Ra}from"./site-editor-toast-DS0_fxT0.js";import{L as pl,a as bl}from"./shell-layout-aaJ-Ow-a.js";import{I as Ta}from"./toolbar-icon-button-C6e2VzUh.js";import{P as gl,a as xl,b as vl}from"./popover-SHWbH4i8.js";import{c as kt,T as Ct,a as Nt,b as As}from"./tooltip-9LLsMgGV.js";import{d as yl,e as wl,c as Pl,C as _n,a as On,b as Ln}from"./command-DoejxN8Q.js";import{T as Lt,a as Ia,c as Da}from"./tabs-snNNT2OQ.js";import{t as Ba}from"./ChevronUp-DZpXGp6s.js";import{aH as Rs,H as jl,a as Ma,aI as Sl,b as $a,aJ as Fa,O as kl}from"./agent-icon-BXl9rcx1.js";import{i as Ea}from"./DotsVertical-Cd1ayiT8.js";import{b as _a}from"./Tool01-CyfGI7T6.js";import{s as Oa}from"./Plus-Dp5dZDoY.js";import{s as Ts}from"./Trash01-BneWuuYf.js";import{u as hn,r as _s,a as Un,n as Os,g as fn,b as mn}from"./use-releases-tJmW6WNc.js";import{k as Cl,d as Nl,j as qn}from"./thread-intent-DH83rsLQ.js";import{h as La,r as Ua,g as Al,f as tt,a as pn,j as qa}from"./repository-binding-Meqp5p71.js";import{u as Rl}from"./use-debounced-value-N-JjpU1V.js";import{u as Tl}from"./use-clock-tick-DIHPLwxm.js";import{u as Il}from"./useInfiniteQuery-B_LZh1B0.js";import{e as Dl,c as Bl,p as Ml,g as za,h as Ha,i as Ka}from"./use-navigate-to-agent-Dm6cdVpv.js";import{a as zn}from"./virtual-mcp-CjF7Cu1C.js";import{u as Va,c as $l,e as Fl}from"./experiments-tab-choice-CJW0rlLk.js";import{G as Ga}from"./repository-picker-DCYyzOOP.js";import{u as bn}from"./use-session-runtime-CQn-52Ez.js";import{u as El,c as _l,d as Ol,e as Ll}from"./use-fast-preview-draft-url-4INawxcX.js";import{a8 as Kt,a9 as Qa,w as gs,l as gn,aa as Wa,ab as Ul,ac as ql,ad as zl,ae as Hl,j as Kl,u as Ft,f as xn,af as Vl}from"./parse-sections-BHOqhf01.js";import"./index-CiU3Lit1.js";import{T as Gl}from"./textarea-PZ5-N42X.js";import{i as vn}from"./CheckCircle-IjQMURt4.js";import{s as xs}from"./Image01-BmkGkBEJ.js";import{p as Ql,H as Wl,h as Jl,k as Xl,n as Yl,r as Zl,a as ei,b as ti,u as si}from"./releases-api-BmEWQbgz.js";import{a as ni,g as ai}from"./UserSquare-BWlOHIw0.js";import{n as ri,b as li,m as ii}from"./named-rule-uses-5Sl1aIdP.js";import{f as yn,b as Ja,r as Is,p as oi,c as Xa,i as wn,d as ci,e as Ya,m as di,h as ui,g as Za,j as hi,n as fi,k as mi,l as pi,o as bi,q as Pn,t as gi,u as er,s as tr,v as Ls}from"./sandbox-git-api-CH_-QFpD.js";import{b as xi,g as vi}from"./utils-OgCNPQQr.js";import{i as yi}from"./Monitor01-DIpgHRZ3.js";import{w as jn,g as wi,D as Pi}from"./section-preview-url-7zfngvgW.js";import{w as Sn}from"./device-hint-SeLRi17j.js";import{w as Hn}from"./editor-vxR6fGAu.js";import{d as ji,a as Si,R as sr}from"./section-array-field-DlpdCCcl.js";import{u as nr}from"./use-content-sync-DPGe01L6.js";import{s as ar}from"./save-changes-debug-nBi-n9eV.js";import{u as ki}from"./use-mcp-client-P41n2mxI.js";import{u as Ci}from"./use-sandbox-events-BNCiNcVF.js";import{b as Ni,a as Ai}from"./sandbox-lifecycle-context-D9P5uTE7.js";import{b as Ri}from"./thread-route-D9dyzfFR.js";const Kn=/[\r\n<>]/,Ti=/^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/;function Ds(t){const e=t?.userName?.trim();if(!e||Kn.test(e))return null;const s=t?.userEmail?.trim();return!s||Kn.test(s)?{userName:e}:Ti.test(s)?{userName:e,userEmail:s}:{userName:e}}function Ii(t){return t.split(`
2
2
  `).filter(e=>!/^Co-authored-by:\s/i.test(e)).join(`
3
3
  `).trimEnd()}function Di(t){const e=t.userName.trim(),s=t.userEmail?.trim();return s?`Co-authored-by: ${e} <${s}>`:`Co-authored-by: ${e}`}function rr(t,e){const s=Ds(e);if(!s)return t;const a=Ii(t),n=Di(s);if(a.includes(n))return a;const o=a.trimEnd();return o.length>0?`${o}
4
4
 
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/agent-site-editor-DWKoTev5.js","assets/index-BGCeOWuH.js","assets/index-BQfNeaI1.css","assets/chat-context-BvBN6HgF.js","assets/use-panel-navigate-BJRHz9-t.js","assets/thread-route-D9dyzfFR.js","assets/use-project-scope-B0Sibn6g.js","assets/repository-binding-Meqp5p71.js","assets/use-mcp-client-P41n2mxI.js","assets/auth-BkqoCGcx.js","assets/autosend-1U_b-i1h.js","assets/thread-intent-DH83rsLQ.js","assets/delay-CnY5UFtP.js","assets/backoff-CrEUbyZT.js","assets/watch-sse-pool-D75R450R.js","assets/task-board-DZ8Kzwkd.js","assets/schema-Db9nAPbV.js","assets/slugify-CEUa2lfQ.js","assets/use-decopilot-events-CqPtaVnx.js","assets/use-ai-providers-BHsc3bDD.js","assets/location-V0VwTJTt.js","assets/use-organization-settings-BiInrSf0.js","assets/site-draft-actions-BdvwngLt.js","assets/separator-DcYK5L3O.js","assets/site-editor-toast-DS0_fxT0.js","assets/use-session-runtime-CQn-52Ez.js","assets/experiments-tab-choice-CJW0rlLk.js","assets/sandbox-url-D3mC8qhT.js","assets/utils-OgCNPQQr.js","assets/ZoomOut-Csm0orCM.js","assets/Image01-BmkGkBEJ.js","assets/use-sandbox-events-BNCiNcVF.js","assets/sandbox-git-api-CH_-QFpD.js","assets/shell-layout-aaJ-Ow-a.js","assets/Building02-DyaG8VRs.js","assets/UserSquare-BWlOHIw0.js","assets/agent-icon-BXl9rcx1.js","assets/AlertCircle-CIClX1OX.js","assets/Tool01-CyfGI7T6.js","assets/ArrowUp-DvNrLRdk.js","assets/ArrowLeft-hUis4zpK.js","assets/LinkBroken01-BbJzP52K.js","assets/ShoppingBag01-CrAecsFE.js","assets/CheckCircle-IjQMURt4.js","assets/ChevronUp-DZpXGp6s.js","assets/ChevronSelectorVertical-DSrF7Kt-.js","assets/Copy01-DelcC4NE.js","assets/CreditCard01-cYImG8Bl.js","assets/DotsVertical-Cd1ayiT8.js","assets/Globe04-C3AUDQA6.js","assets/SwitchHorizontal01-BvXNAenZ.js","assets/Key01-BJu0utQ9.js","assets/Link01-CpEeBnOB.js","assets/Minus-Beni9ibl.js","assets/Monitor01-DIpgHRZ3.js","assets/Sun-Dm3m8VPj.js","assets/Play-CeJs-Z9F.js","assets/Plus-Dp5dZDoY.js","assets/SearchMd-DkOimU4h.js","assets/Trash01-BneWuuYf.js","assets/Upload01-CNkWpiz7.js","assets/Users01-ugdEQXdG.js","assets/XClose-BHn8yO7p.js","assets/use-clock-tick-DIHPLwxm.js","assets/command-DoejxN8Q.js","assets/index-BHWlfC8b.js","assets/integration-icon-IfDXGweg.js","assets/project-icon-CjQuZIIb.js","assets/new-project-dialog-BZU_MI3Q.js","assets/label-_maV4eWQ.js","assets/repository-import-picker-FH262XPV.js","assets/use-navigate-to-agent-Dm6cdVpv.js","assets/repository-picker-DCYyzOOP.js","assets/tooltip-9LLsMgGV.js","assets/index-C91ph34T.js","assets/useInfiniteQuery-B_LZh1B0.js","assets/infiniteQueryObserver-DdJGfIBw.js","assets/collection-search-D_HANk-F.js","assets/use-debounced-value-N-JjpU1V.js","assets/required-auth-layout-tipFurup.js","assets/use-org-sso-BhUG19nu.js","assets/shell-layout-CE2Eihra.css","assets/toolbar-icon-button-C6e2VzUh.js","assets/popover-SHWbH4i8.js","assets/tabs-snNNT2OQ.js","assets/active-indicator-CCMhAsc_.js","assets/use-releases-tJmW6WNc.js","assets/serial-task-queue-CGOeQgpr.js","assets/virtual-mcp-CjF7Cu1C.js","assets/url-slug-DonaWwCk.js","assets/use-fast-preview-draft-url-4INawxcX.js","assets/section-preview-url-7zfngvgW.js","assets/preview-link-C762yHOt.js","assets/variant-draft-pointer-BeAKcq_c.js","assets/parse-sections-BHOqhf01.js","assets/index-CiU3Lit1.js","assets/tool-namespace-Y0TJrGSX.js","assets/drawer-BxmRq7z0.js","assets/use-mobile-jFUNwYYf.js","assets/use-mcp-prompts-B3Nr4ZJG.js","assets/usage-stats-DBeLsjRR.js","assets/form-BKxpLzV1.js","assets/utils-CVEq3hMx.js","assets/markdown-Pxz-NCAq.js","assets/use-copy-CxT0JeDz.js","assets/input-BJWjsMTr.js","assets/icon-button-BpGFmmxF.js","assets/file-type-icon-T5-JgFJO.js","assets/chat-draft-XY_NNpgA.js","assets/select-C0Q0f4At.js","assets/index-BdQq_4o_.js","assets/use-deco-credits-DDwwBuMm.js","assets/toggle-group-CUFIN5dE.js","assets/use-open-billing-url-Byo1M4SG.js","assets/index-CbIYCvQg.js","assets/checkbox-D-LzvMyz.js","assets/ai-providers-logos-DD3qZ33J.js","assets/input-DdaB0aDZ.js","assets/suggestion-BqSBag09.js","assets/use-org-fs-BrF4BnPF.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-CaUW3vBu.js","assets/plan-ladder-BT3Oz8Ev.js","assets/add-connection-dialog-7qj2kjMr.js","assets/extract-connection-data-DyihSSH6.js","assets/metadata-D72DunRR.js","assets/connection-DgmraTnv.js","assets/connection-card-nzYl3iaE.js","assets/connection-slug-CITJ0kGN.js","assets/textarea-PZ5-N42X.js","assets/use-connection-BQFGYTV6.js","assets/schema-LbfQM_um.js","assets/connection-form-helpers-DQAPN_By.js","assets/authenticate-and-persist-oauth-BD9brsY_.js","assets/mcp-oauth-ZXLBTZQF.js","assets/mcp-oauth-UPAY9qQh.js","assets/collection-tabs-H7yEtuRH.js","assets/badge-DESNookz.js","assets/use-infinite-scroll-CNc2NI3i.js","assets/useSuspenseInfiniteQuery-CgbZRhlW.js","assets/use-task-board-events-DBa8GRgx.js","assets/use-chat-layout-state-C15u8M2V.js","assets/input-Bwd_JSM8.css","assets/pair-DVCmCnBf.js","assets/collapsible-B9h9LvCC.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-C-WjAbV3.js","assets/types-BO2WHIDA.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/sheet-C3lf7JiX.js","assets/use-thread-outputs-CxOHL03a.js","assets/releases-api-BmEWQbgz.js","assets/use-content-sync-DPGe01L6.js","assets/named-rule-uses-5Sl1aIdP.js","assets/device-hint-SeLRi17j.js","assets/editor-vxR6fGAu.js","assets/section-array-field-DlpdCCcl.js","assets/alert-BxwQ9GWi.js","assets/save-changes-debug-nBi-n9eV.js","assets/sandbox-lifecycle-context-D9P5uTE7.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/index-CSsLL5lB.js","assets/use-sidebar-collapsed-BPZlAUWE.js","assets/resizable-DhKaPyjj.js","assets/agent-site-editor-DDGTF8rc.css","assets/agent-site-editor-content-BG_Zli2l.js","assets/agent-view-guard-C0-5YLfj.js","assets/use-main-panel-tabs-BhdlgJp6.js","assets/use-mcp-tools-BNi1ikeO.js","assets/resolve-tab-icon-Dllm1_fu.js","assets/use-task-metadata-DYMge1Ms.js","assets/preview-source-BsRLGWUP.js","assets/use-project-native-view-presence-7WN9qseE.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/use-file-configs-DH6Ac5Y5.js","assets/site-slug-DebpOoQq.js","assets/feature-gate-B2DL7P_r.js","assets/content-tab-BskMZIA-.js","assets/blocks-tab-states-Bji5rJXk.js","assets/slider-Brs1MiDz.js","assets/index-B54Dwq_E.js","assets/tooltipContext-D1XV88gx.js","assets/CategoricalChart-B2xwR0Vg.js","assets/index-DEhotlUt.js","assets/ActiveShapeUtils-C-rHC-K0.js","assets/Sector-DYInMAbx.js","assets/symbol-DhjzVarJ.js","assets/empty-state-BXpVXa8p.js","assets/held-block-view-DF-dsPP4.js","assets/switch-DXvm-pfC.js","assets/scroll-area-Do3s8MFg.js","assets/monaco-editor-CEz6AH84.js","assets/calendar-sUXRafM_.js","assets/editor-classes-C1mRh06j.js","assets/core.esm-kr0nDMAf.js","assets/sortable.esm-DR7ZsZlW.js","assets/combobox-BfNsB6Ea.js","assets/search-input-BiW12RB7.js","assets/asset-utils-CDMjNYFJ.js","assets/mustache-D-9UMI1S.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-B-yW6Slv.js","assets/empty-state-C0q6FDCT.js"])))=>i.map(i=>d[i]);
2
+ import{k as O,l as V,m as H}from"./named-rule-view-ChwtdSTO.js";import{h as N}from"./named-rule-uses-5Sl1aIdP.js";import{ag as A,au as L}from"./parse-sections-BHOqhf01.js";import{be as y,c as _,b as T,a4 as M,bj as U,j as c,n as F}from"./index-BGCeOWuH.js";import{E as B}from"./empty-state-C0q6FDCT.js";import{u as K}from"./chat-context-BvBN6HgF.js";import{u as $,l as q}from"./site-editor-toast-DS0_fxT0.js";import{i as Q,u as G,S as z}from"./blocks-tab-states-Bji5rJXk.js";import{a as J}from"./use-panel-navigate-BJRHz9-t.js";const P={running:0,everyone:1,off:2};function ce(s,e){const i=A(s,"experiments");if(i.kind==="conflict")return[];const o=e?.published??null;return Object.entries(i.values).map(([n,l],a)=>{const m=O(o,"experiments",n,l),b=m==="changed"?V(o,"experiments",n):void 0;return{order:a,row:{name:n,share:l,status:L(l),uses:e?N(e,"experiments",n):0,entryState:m,...b!==void 0?{publishedShare:b}:{}}}}).sort((n,l)=>P[n.row.status]-P[l.row.status]||n.order-l.order).map(n=>n.row)}function de(s,e){return H(s,e?.published??null,"experiments")}function ue(s){const e={contentPageVariant:s.focus?.pageVariant,contentSection:s.focus?.section,contentVariant:s.focus?.variant};return s.blockKind==="page"?{contentPageId:s.blockKey,contentCollection:void 0,contentItem:void 0,...e}:{contentPageId:void 0,contentCollection:"sections",contentItem:s.blockKey,...e}}let I=null;function W(){return I??=Promise.all([y(()=>import("./agent-site-editor-DWKoTev5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164])),y(()=>import("./agent-site-editor-content-BG_Zli2l.js"),__vite__mapDeps([165,1,2,166,167,141,5,4,6,7,8,9,11,12,13,14,15,16,17,36,37,38,39,40,41,42,29,34,43,44,45,35,46,47,48,30,49,50,51,52,53,54,55,56,57,58,59,60,61,62,130,168,147,102,26,95,3,10,18,19,20,21,96,73,74,97,77,98,99,100,101,69,103,104,105,106,107,108,25,109,110,84,85,111,112,113,114,115,116,83,117,118,119,75,76,120,121,122,123,124,125,126,89,127,128,66,129,131,132,133,134,135,136,137,138,139,140,142,143,144,63,145,146,148,33,64,65,67,68,70,71,72,78,79,80,81,149,150,31,27,169,170,171,172,173,174,175,88,176,177,178,179,180,181,182,183,184,185,186,94,24,28,32,187,188,160,156,157,189,190,191,155,192,193,194,195,196,197,198,199,152,159,200,201,202]))]).catch(s=>{throw I=null,s}),I}function X(s){return e=>{if(!e)return;const i=()=>{s().catch(()=>{})};if(typeof requestIdleCallback=="function"){const t=requestIdleCallback(i,{timeout:2e3});return()=>cancelIdleCallback(t)}const o=setTimeout(i,200);return()=>clearTimeout(o)}}const Y=X(W);function R(s){const e=_.c(7),{icon:i,title:o,description:t,action:n}=s;let l;e[0]!==n?(l=n?{children:n.label,onClick:n.onClick}:void 0,e[0]=n,e[1]=l):l=e[1];let a;return e[2]!==t||e[3]!==i||e[4]!==l||e[5]!==o?(a=c.jsx(F,{children:c.jsx(F.Content,{children:c.jsx(F.Container,{children:c.jsx(B,{icon:i,title:o,description:t,buttonProps:l})})})}),e[2]=t,e[3]=i,e[4]=l,e[5]=o,e[6]=a):a=e[6],a}function fe(s){const e=_.c(28),{virtualMcpId:i,icon:o,copy:t,skeleton:n,children:l}=s,a=T(),{org:m}=M(),b=K(),p=b?.currentBranch??null,h=$(i,p);U(h.kind==="protocol"&&h.source==="github");const{openPanel:S}=J();if(!p){const r=t.noDraftTitle,k=t.noDraftDesc;let d;e[0]!==a?(d=a("sectionsEditor.namedRules.openEditor"),e[0]=a,e[1]=d):d=e[1];let u;e[2]!==S?(u=()=>S("content"),e[2]=S,e[3]=u):u=e[3];let f;e[4]!==d||e[5]!==u?(f={label:d,onClick:u},e[4]=d,e[5]=u,e[6]=f):f=e[6];let v;return e[7]!==t.noDraftDesc||e[8]!==t.noDraftTitle||e[9]!==o||e[10]!==f?(v=c.jsx(R,{icon:o,title:r,description:k,action:f}),e[7]=t.noDraftDesc,e[8]=t.noDraftTitle,e[9]=o,e[10]=f,e[11]=v):v=e[11],v}if(Q(h)){let r;return e[12]===Symbol.for("react.memo_cache_sentinel")?(r=c.jsx(z,{}),e[12]=r):r=e[12],r}if(h.kind==="pending"){let r;return e[13]!==n?(r=c.jsx(c.Fragment,{children:n}),e[13]=n,e[14]=r):r=e[14],r}if(h.kind!=="protocol"){let r;return e[15]!==t.loadFailed||e[16]!==t.loadFailedHint||e[17]!==o?(r=c.jsx(R,{icon:o,title:t.loadFailed,description:t.loadFailedHint}),e[15]=t.loadFailed,e[16]=t.loadFailedHint,e[17]=o,e[18]=r):r=e[18],r}const g=b?.taskId??null;let x;return e[19]!==p||e[20]!==l||e[21]!==t||e[22]!==o||e[23]!==m.slug||e[24]!==n||e[25]!==g||e[26]!==i?(x=c.jsx(Z,{orgSlug:m.slug,virtualMcpId:i,branch:p,threadId:g,icon:o,copy:t,skeleton:n,children:l},p),e[19]=p,e[20]=l,e[21]=t,e[22]=o,e[23]=m.slug,e[24]=n,e[25]=g,e[26]=i,e[27]=x):x=e[27],x}function Z(s){const e=_.c(30),{orgSlug:i,virtualMcpId:o,branch:t,threadId:n,icon:l,copy:a,skeleton:m,children:b}=s,p=T();let h;e[0]!==t||e[1]!==i||e[2]!==n||e[3]!==o?(h={orgSlug:i,virtualMcpId:o,branch:t,threadId:n,previewUrl:null},e[0]=t,e[1]=i,e[2]=n,e[3]=o,e[4]=h):h=e[4];const S=h,g=q(S),x=G(S),r=g.data,k=x.data;if(!r||!k){if(g.isError||x.isError){const v=a.loadFailed,w=a.loadFailedHint;let C;e[5]!==p?(C=p("sectionsEditor.namedRules.tryAgain"),e[5]=p,e[6]=C):C=e[6];let E;e[7]!==g||e[8]!==x?(E=()=>{g.refetch(),x.refetch()},e[7]=g,e[8]=x,e[9]=E):E=e[9];let j;e[10]!==C||e[11]!==E?(j={label:C,onClick:E},e[10]=C,e[11]=E,e[12]=j):j=e[12];let D;return e[13]!==a.loadFailed||e[14]!==a.loadFailedHint||e[15]!==l||e[16]!==j?(D=c.jsx(R,{icon:l,title:v,description:w,action:j}),e[13]=a.loadFailed,e[14]=a.loadFailedHint,e[15]=l,e[16]=j,e[17]=D):D=e[17],D}let f;return e[18]!==m?(f=c.jsx(c.Fragment,{children:m}),e[18]=m,e[19]=f):f=e[19],f}let d;e[20]!==t||e[21]!==b||e[22]!==r||e[23]!==k||e[24]!==i||e[25]!==n||e[26]!==o?(d=b({orgSlug:i,virtualMcpId:o,branch:t,threadId:n,decofile:r,meta:k}),e[20]=t,e[21]=b,e[22]=r,e[23]=k,e[24]=i,e[25]=n,e[26]=o,e[27]=d):d=e[27];let u;return e[28]!==d?(u=c.jsx("div",{className:"contents",ref:Y,children:d}),e[28]=d,e[29]=u):u=e[29],u}export{fe as S,R as a,ue as c,ce as e,de as r};
@@ -0,0 +1 @@
1
+ import{c as u,r as g,j as n,H as F,$ as G,a0 as H,a as E,k as P,b as O,n as y,L as M}from"./index-BGCeOWuH.js";import{C as V}from"./chat-context-BvBN6HgF.js";import{C as x}from"./index-CSsLL5lB.js";import{L}from"./index-jBUTr_mZ.js";import{B as K}from"./blocks-preview-workspace-context-CVuSXtvf.js";import{e as T,p as W,s as J,a as U,r as z,T as $,u as R,b as q}from"./site-editor-toast-DS0_fxT0.js";import{u as Q,L as B,P as X,S as Y}from"./preview-tab-C2Feq6DP.js";import{C as Z}from"./content-tab-BskMZIA-.js";import{T as tt}from"./tab-icon-glyph-x6aTS8aC.js";import{r as et}from"./resolve-tab-icon-Dllm1_fu.js";import ot from"./agent-site-editor-DWKoTev5.js";import"./use-panel-navigate-BJRHz9-t.js";import"./thread-route-D9dyzfFR.js";import"./use-project-scope-B0Sibn6g.js";import"./repository-binding-Meqp5p71.js";import"./use-mcp-client-P41n2mxI.js";import"./auth-BkqoCGcx.js";import"./autosend-1U_b-i1h.js";import"./thread-intent-DH83rsLQ.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D75R450R.js";import"./task-board-DZ8Kzwkd.js";import"./schema-Db9nAPbV.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-CqPtaVnx.js";import"./use-ai-providers-BHsc3bDD.js";import"./location-V0VwTJTt.js";import"./use-organization-settings-BiInrSf0.js";import"./use-mobile-jFUNwYYf.js";import"./use-sidebar-collapsed-BPZlAUWE.js";import"./use-chat-layout-state-C15u8M2V.js";import"./agent-icon-BXl9rcx1.js";import"./AlertCircle-CIClX1OX.js";import"./Tool01-CyfGI7T6.js";import"./ArrowUp-DvNrLRdk.js";import"./ArrowLeft-hUis4zpK.js";import"./LinkBroken01-BbJzP52K.js";import"./ShoppingBag01-CrAecsFE.js";import"./ZoomOut-Csm0orCM.js";import"./Building02-DyaG8VRs.js";import"./CheckCircle-IjQMURt4.js";import"./ChevronUp-DZpXGp6s.js";import"./ChevronSelectorVertical-DSrF7Kt-.js";import"./UserSquare-BWlOHIw0.js";import"./Copy01-DelcC4NE.js";import"./CreditCard01-cYImG8Bl.js";import"./DotsVertical-Cd1ayiT8.js";import"./Image01-BmkGkBEJ.js";import"./Globe04-C3AUDQA6.js";import"./SwitchHorizontal01-BvXNAenZ.js";import"./Key01-BJu0utQ9.js";import"./Link01-CpEeBnOB.js";import"./Minus-Beni9ibl.js";import"./Monitor01-DIpgHRZ3.js";import"./Sun-Dm3m8VPj.js";import"./Play-CeJs-Z9F.js";import"./Plus-Dp5dZDoY.js";import"./SearchMd-DkOimU4h.js";import"./Trash01-BneWuuYf.js";import"./Upload01-CNkWpiz7.js";import"./Users01-ugdEQXdG.js";import"./XClose-BHn8yO7p.js";import"./tooltip-9LLsMgGV.js";import"./index-C91ph34T.js";import"./toolbar-icon-button-C6e2VzUh.js";import"./shell-layout-aaJ-Ow-a.js";import"./use-clock-tick-DIHPLwxm.js";import"./command-DoejxN8Q.js";import"./index-BHWlfC8b.js";import"./integration-icon-IfDXGweg.js";import"./project-icon-CjQuZIIb.js";import"./new-project-dialog-BZU_MI3Q.js";import"./label-_maV4eWQ.js";import"./repository-import-picker-FH262XPV.js";import"./use-navigate-to-agent-Dm6cdVpv.js";import"./repository-picker-DCYyzOOP.js";import"./useInfiniteQuery-B_LZh1B0.js";import"./infiniteQueryObserver-DdJGfIBw.js";import"./collection-search-D_HANk-F.js";import"./use-debounced-value-N-JjpU1V.js";import"./required-auth-layout-tipFurup.js";import"./use-org-sso-BhUG19nu.js";import"./sheet-C3lf7JiX.js";import"./resizable-DhKaPyjj.js";import"./core.esm-kr0nDMAf.js";import"./sortable.esm-DR7ZsZlW.js";import"./context-menu-DXOWR6Jg.js";import"./create-organization-dialog-VXkZbmzL.js";import"./form-BKxpLzV1.js";import"./project-apps-BfDjxodR.js";import"./use-recent-apps-C1A023Yo.js";import"./use-session-runtime-CQn-52Ez.js";import"./experiments-tab-choice-CJW0rlLk.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-OgCNPQQr.js";import"./use-sandbox-events-BNCiNcVF.js";import"./sandbox-git-api-CH_-QFpD.js";import"./held-block-view-DF-dsPP4.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DVCmCnBf.js";import"./collapsible-B9h9LvCC.js";import"./use-copy-CxT0JeDz.js";import"./usage-stats-DBeLsjRR.js";import"./tool-namespace-Y0TJrGSX.js";import"./utils-CVEq3hMx.js";import"./markdown-Pxz-NCAq.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-C-WjAbV3.js";import"./types-BO2WHIDA.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-connection-BQFGYTV6.js";import"./use-mcp-prompts-B3Nr4ZJG.js";import"./use-thread-outputs-CxOHL03a.js";import"./file-type-icon-T5-JgFJO.js";import"./section-array-field-DlpdCCcl.js";import"./alert-BxwQ9GWi.js";import"./parse-sections-BHOqhf01.js";import"./blocks-tab-states-Bji5rJXk.js";import"./slider-Brs1MiDz.js";import"./index-B54Dwq_E.js";import"./index-BdQq_4o_.js";import"./tooltipContext-D1XV88gx.js";import"./CategoricalChart-B2xwR0Vg.js";import"./index-DEhotlUt.js";import"./ActiveShapeUtils-C-rHC-K0.js";import"./Sector-DYInMAbx.js";import"./symbol-DhjzVarJ.js";import"./empty-state-BXpVXa8p.js";import"./switch-DXvm-pfC.js";import"./textarea-PZ5-N42X.js";import"./popover-SHWbH4i8.js";import"./scroll-area-Do3s8MFg.js";import"./monaco-editor-CEz6AH84.js";import"./editor-vxR6fGAu.js";import"./calendar-sUXRafM_.js";import"./select-C0Q0f4At.js";import"./editor-classes-C1mRh06j.js";import"./toggle-group-CUFIN5dE.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-BfNsB6Ea.js";import"./search-input-BiW12RB7.js";import"./tabs-snNNT2OQ.js";import"./use-file-configs-DH6Ac5Y5.js";import"./asset-utils-CDMjNYFJ.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-lifecycle-context-D9P5uTE7.js";import"./variant-matcher-override-DMBn3So8.js";import"./variant-draft-pointer-BeAKcq_c.js";import"./section-preview-url-7zfngvgW.js";import"./use-fast-preview-draft-url-4INawxcX.js";import"./preview-link-C762yHOt.js";import"./useQueries-CunEDk2w.js";import"./device-hint-SeLRi17j.js";import"./virtual-mcp-CjF7Cu1C.js";import"./url-slug-DonaWwCk.js";import"./app-preview-url-9Od4s8Sz.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-DYMge1Ms.js";import"./mustache-D-9UMI1S.js";import"./use-content-sync-DPGe01L6.js";import"./checkbox-D-LzvMyz.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-B-yW6Slv.js";import"./badge-DESNookz.js";import"./empty-state-C0q6FDCT.js";import"./site-draft-actions-BdvwngLt.js";import"./separator-DcYK5L3O.js";import"./use-releases-tJmW6WNc.js";import"./serial-task-queue-CGOeQgpr.js";import"./index-CiU3Lit1.js";import"./drawer-BxmRq7z0.js";import"./input-BJWjsMTr.js";import"./icon-button-BpGFmmxF.js";import"./chat-draft-XY_NNpgA.js";import"./use-deco-credits-DDwwBuMm.js";import"./use-open-billing-url-Byo1M4SG.js";import"./index-CbIYCvQg.js";import"./ai-providers-logos-DD3qZ33J.js";import"./input-DdaB0aDZ.js";import"./suggestion-BqSBag09.js";import"./use-org-fs-BrF4BnPF.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-CaUW3vBu.js";import"./plan-ladder-BT3Oz8Ev.js";import"./add-connection-dialog-7qj2kjMr.js";import"./extract-connection-data-DyihSSH6.js";import"./metadata-D72DunRR.js";import"./connection-DgmraTnv.js";import"./connection-card-nzYl3iaE.js";import"./connection-slug-CITJ0kGN.js";import"./schema-LbfQM_um.js";import"./connection-form-helpers-DQAPN_By.js";import"./authenticate-and-persist-oauth-BD9brsY_.js";import"./mcp-oauth-ZXLBTZQF.js";import"./mcp-oauth-UPAY9qQh.js";import"./collection-tabs-H7yEtuRH.js";import"./use-infinite-scroll-CNc2NI3i.js";import"./useSuspenseInfiniteQuery-CgbZRhlW.js";import"./use-task-board-events-DBa8GRgx.js";import"./releases-api-BmEWQbgz.js";import"./named-rule-uses-5Sl1aIdP.js";import"./save-changes-debug-nBi-n9eV.js";function I(e){return e.kind==="unavailable"&&e.source==="local"&&(e.problem?.reason??"not-answering")==="not-answering"}const it=e=>e;function rt(e){const t=u.c(10),{candidates:o,invalidLink:c,shell:m,editor:i}=e,r=c===void 0?!1:c,s=m===void 0?it:m,[p,l]=g.useState(null);if(p){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),t[0]=f):f=t[0];let h;return t[1]!==p||t[2]!==i?(h=i(p,f),t[1]=p,t[2]=i,t[3]=h):h=t[3],h}let a;t[4]!==o||t[5]!==r?(a=n.jsx(nt,{candidates:o,invalidLink:r,onConnect:l}),t[4]=o,t[5]=r,t[6]=a):a=t[6];let d;return t[7]!==s||t[8]!==a?(d=s(a),t[7]=s,t[8]=a,t[9]=d):d=t[9],d}function nt(e){const t=u.c(17),{candidates:o,invalidLink:c,onConnect:m}=e,i=c===void 0?!1:c,[r]=F(),{language:s}=r;let p;t[0]!==m?(p=D=>m({endpoint:D}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==o||t[3]!==p?(l={candidates:o,onFound:p},t[2]=o,t[3]=p,t[4]=l):l=t[4];const a=Q(l),{state:d,access:f,needsGesture:h}=a;let k;t[5]!==o||t[6]!==s?(k=new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(o.map(T)),t[5]=o,t[6]=s,t[7]=k):k=t[7];const C=k;let j;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(j=f==="denied"?{kind:"denied"}:h?{kind:"needs-gesture",onStart:a.start}:d.problem?{kind:"problem",problem:d.problem,host:T(d.problem.endpoint)}:{kind:"looking",paused:d.status==="paused"},t[8]=f,t[9]=a.start,t[10]=h,t[11]=d,t[12]=j):j=t[12];const _=j;let S;return t[13]!==C||t[14]!==i||t[15]!==_?(S=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=S):S=t[16],S}const v="deco-serve",w="working-tree",st={id:"",slug:"",name:"",logo:null},mt={id:v,slug:v},pt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function at(){const e=window.location.hash,t=new URLSearchParams(e.replace(/^#/,"")).has("endpoint"),o=t?W(e):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o&&J(o),{candidates:U(o,z()),invalidLink:t&&!o}}const ct=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function lt(){const e=u.c(6),t=O();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:dt},e[0]=o):o=e[0];const c=P(o);let m;e[1]!==t||e[2]!==c?(m=ct.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(M,{to:r.to,activeOptions:{exact:!0},children:[n.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(tt,{icon:et({tabId:r.id,kind:"system",connections:[]})})}),t(`common.mainPanelTabs.${r.label}`)]})},r.id)),e[1]=t,e[2]=c,e[3]=m):m=e[3];let i;return e[4]!==m?(i=n.jsx(y.Tabs,{children:m}),e[4]=m,e[5]=i):i=e[5],i}function dt(e){return e.matches.at(-1)?.staticData.siteEditorView}function N(e){const t=u.c(14),{children:o}=e,c=O(),{connection:m}=q(v),i=R(v,w);let r,s;if(t[0]!==i||t[1]!==o||t[2]!==m||t[3]!==c){s=Symbol.for("react.early_return_sentinel");t:{if(r=m?T(m.endpoint):"",i.kind==="protocol"){s=o;break t}if(i.kind!=="unavailable"||I(i)){s=n.jsx(Y,{headingLevel:2,waiting:!0,title:c("decoServe.connect.reaching",{host:r})});break t}}t[0]=i,t[1]=o,t[2]=m,t[3]=c,t[4]=r,t[5]=s}else r=t[4],s=t[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let p;t[6]!==i.problem?(p=i.problem??{reason:"not-answering"},t[6]=i.problem,t[7]=p):p=t[7];let l;t[8]!==r||t[9]!==p?(l={kind:"problem",problem:p,host:r},t[8]=r,t[9]=p,t[10]=l):l=t[10];let a;return t[11]!==r||t[12]!==l?(a=n.jsx(B,{wait:l,hosts:r}),t[11]=r,t[12]=l,t[13]=a):a=t[13],a}function ut(e){const t=u.c(6),{onLost:o}=e,c=R(v,w);let m;t[0]!==c?(m=I(c),t[0]=c,t[1]=m):m=t[1];const i=m;let r,s;return t[2]!==i||t[3]!==o?(r=()=>{i&&o()},s=[i,o],t[2]=i,t[3]=o,t[4]=r,t[5]=s):(r=t[4],s=t[5]),g.useEffect(r,s),null}const A={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ft(){const e=u.c(11),{data:t}=E.useSession();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:ht},e[0]=o):o=e[0];const c=P(o),m=!!t?.user;let i;e[1]!==m?(i={rail:m},e[1]=m,e[2]=i):i=e[2];const r=c??"preview";let s,p,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(lt,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(ot,{}),e[3]=s,e[4]=p,e[5]=l):(s=e[3],p=e[4],l=e[5]);let a;e[6]!==r?(a=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:r,contentNavigation:s,children:[p,l]})}),e[6]=r,e[7]=a):a=e[7];let d;return e[8]!==i||e[9]!==a?(d=n.jsx(L,{outsideOrg:i,children:a}),e[8]=i,e[9]=a,e[10]=d):d=e[10],d}function ht(e){return e.matches.at(-1)?.staticData.siteEditorView}function vt(e){const t=u.c(8),{children:o}=e,{data:c}=E.useSession(),m=!!c?.user;let i;t[0]!==m?(i={rail:m},t[0]=m,t[1]=i):i=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(x.Thread,{children:null}),t[2]=r):r=t[2];let s;t[3]!==o?(s=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:"guide",children:[r,n.jsx(x.Content,{children:o})]})}),t[3]=o,t[4]=s):s=t[4];let p;return t[5]!==i||t[6]!==s?(p=n.jsx(L,{outsideOrg:i,children:s}),t[5]=i,t[6]=s,t[7]=p):p=t[7],p}const b=()=>{},xt={connection:null,set:b,clear:b};function pr(){const e=u.c(3),[t]=g.useState(at);let o;return e[0]!==t.candidates||e[1]!==t.invalidLink?(o=n.jsx(G,{value:!0,children:n.jsx(H,{org:st,project:mt,children:n.jsx(rt,{candidates:t.candidates,invalidLink:t.invalidLink,shell:jt,editor:kt})})}),e[0]=t.candidates,e[1]=t.invalidLink,e[2]=o):o=e[2],o}function kt(e,t){return n.jsxs($.Provider,{value:{connection:e,set:b,clear:b},children:[n.jsx(ut,{onLost:t}),n.jsx(V,{value:pt,children:n.jsx(K,{children:n.jsx(ft,{})})})]})}function jt(e){return n.jsx($.Provider,{value:xt,children:n.jsx(vt,{children:e})})}function ar(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(X,{virtualMcpId:v})}),e[0]=t):t=e[0],t}function cr(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Z,{virtualMcpId:v})}),e[0]=t):t=e[0],t}export{cr as SiteEditorContent,ar as SiteEditorPreview,pr as default};