decocms 4.576.0 → 4.576.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 (394) hide show
  1. package/dist/client/assets/{AlertCircle-BoWj3bmI.js → AlertCircle-CQW1P7_R.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CayWrMkG.js → AreaChart-BEgOgZZj.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BnmiAsgO.js → ArrowLeft-sSY9Zm-O.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-B1rRBoAl.js → ArrowUp-VZphHDPw.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-CLdJy-tG.js → CartesianChart-Bku6CBeN.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-DIMW48Er.js → CategoricalChart-CI96Ht0A.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DqwYeIyi.js → CheckCircle-BAqlx5xq.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-CUAybNrz.js → ChevronSelectorVertical-CAw9AQRt.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-CjYakPcO.js → ChevronUp-RQuomTlc.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-B2hFUd9r.js → CreditCard01-uW1Nq0L7.js} +1 -1
  11. package/dist/client/assets/{Globe04-DDVQybOc.js → Globe04-1JEh9zst.js} +1 -1
  12. package/dist/client/assets/{Key01-CP_3sF4j.js → Key01-B-MK6puk.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-Dz0priKS.js → LinkBroken01-ArAKWl5D.js} +1 -1
  14. package/dist/client/assets/{Minus-BUE5BtZS.js → Minus-y3rEkH4O.js} +1 -1
  15. package/dist/client/assets/{Monitor01-Bv9vshAO.js → Monitor01-DkdtFPE6.js} +1 -1
  16. package/dist/client/assets/{Play-BZxxVkLQ.js → Play-BtmesR9D.js} +1 -1
  17. package/dist/client/assets/{Plus-D9BJQ8Ip.js → Plus-BhSB1FAc.js} +1 -1
  18. package/dist/client/assets/{ReferenceLine-BGAigOEu.js → ReferenceLine-CguuPF_F.js} +1 -1
  19. package/dist/client/assets/{SearchMd-eMVBpMYs.js → SearchMd-CTCaP47C.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-CCbfQ2Ar.js → ShoppingBag01-DEtqIAKG.js} +1 -1
  21. package/dist/client/assets/{Sun-DYx61HHA.js → Sun-DhrY2nq7.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-D1J2TI3k.js → SwitchHorizontal01-DTDSJnjG.js} +1 -1
  23. package/dist/client/assets/{Tool01-lye9w7uq.js → Tool01-CE4RsL2T.js} +1 -1
  24. package/dist/client/assets/{Tooltip-BbDbdtmF.js → Tooltip-DzoIZZA-.js} +1 -1
  25. package/dist/client/assets/{Trash01-BoIu5wHA.js → Trash01-DQCE9WJt.js} +1 -1
  26. package/dist/client/assets/{Upload01-CWarigy8.js → Upload01-C8pH3Rp-.js} +1 -1
  27. package/dist/client/assets/{UserSquare-BbdNewBi.js → UserSquare-DfCEdLMW.js} +1 -1
  28. package/dist/client/assets/{Users01-JvVmj0s2.js → Users01-RbJbPNL4.js} +1 -1
  29. package/dist/client/assets/{XClose-D8nV11Fp.js → XClose-B9seet19.js} +1 -1
  30. package/dist/client/assets/{Zap-BNFgHEeM.js → Zap-B2TeJ3jk.js} +1 -1
  31. package/dist/client/assets/{access-gate-DMQroDuW.js → access-gate-B3-8eUAT.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-CumYTqRP.js → add-connection-dialog-BZazlImL.js} +1 -1
  33. package/dist/client/assets/agent-app-S0Wudwb2.js +1 -0
  34. package/dist/client/assets/{agent-assets-CeYgy5uR.js → agent-assets-D6n5n_j9.js} +1 -1
  35. package/dist/client/assets/{agent-automation-jc1a3Q5g.js → agent-automation-BDFDUDqF.js} +1 -1
  36. package/dist/client/assets/{agent-automations-DcM30lJx.js → agent-automations-CTb19iEo.js} +1 -1
  37. package/dist/client/assets/{agent-calendar-C42tR2RR.js → agent-calendar-dOBBocaZ.js} +1 -1
  38. package/dist/client/assets/{agent-capabilities-Dnf4CKY_.js → agent-capabilities-D8RyEQle.js} +1 -1
  39. package/dist/client/assets/{agent-connect-sources-D-SSC-jg.js → agent-connect-sources-Cv_HfEov.js} +1 -1
  40. package/dist/client/assets/agent-deck-Cp4W6NYg.js +1 -0
  41. package/dist/client/assets/{agent-e2e-JPujhNJE.js → agent-e2e-UuVTzQty.js} +1 -1
  42. package/dist/client/assets/agent-experiments-DqEDCkUD.js +1 -0
  43. package/dist/client/assets/{agent-file-BT_7iBMO.js → agent-file-BxTgqKD4.js} +1 -1
  44. package/dist/client/assets/{agent-hosting-DmAopBeY.js → agent-hosting-SFnhs_AJ.js} +1 -1
  45. package/dist/client/assets/{agent-icon-CIk0WHPf.js → agent-icon-DmYd33Zd.js} +1 -1
  46. package/dist/client/assets/agent-library-D-dnSVJn.js +1 -0
  47. package/dist/client/assets/agent-library-file-S8fMrNmL.js +1 -0
  48. package/dist/client/assets/agent-overview-DTBRMEQ0.js +1 -0
  49. package/dist/client/assets/{agent-releases-CVdcqHgm.js → agent-releases-Nv7L0dpy.js} +1 -1
  50. package/dist/client/assets/agent-settings-BiadK6yu.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-C60bHZn5.js → agent-site-editor-DLrFF0Rn.js} +1 -1
  52. package/dist/client/assets/agent-site-editor-code-CYv63Bju.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-hqsSwJg4.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-YV7jDYx1.js +1 -0
  55. package/dist/client/assets/agent-view-X2daaOWI.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-BxQEXEqp.js → agent-view-guard-D0qWi85T.js} +1 -1
  57. package/dist/client/assets/{ai-providers-DPzbU011.js → ai-providers-CjPCR-pK.js} +1 -1
  58. package/dist/client/assets/{alert-ZkM0KiHW.js → alert-C5FPaAXQ.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-BeCItG-r.js → analytics-sections-BGMxhZwl.js} +1 -1
  60. package/dist/client/assets/api-keys-D-r93aBn.js +1 -0
  61. package/dist/client/assets/{api-keys-CbrkjJrZ.js → api-keys-p6Xw6r8B.js} +1 -1
  62. package/dist/client/assets/{app-editor-D4GBuqRr.js → app-editor-DQwdeZHJ.js} +1 -1
  63. package/dist/client/assets/{asset-utils-Bod0b-nj.js → asset-utils-BW1FTT9q.js} +1 -1
  64. package/dist/client/assets/{auth-Xuy-VreX.js → auth-DeNsOsKX.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-DyHxOUjQ.js → auth-catchall-C3auT4P_.js} +1 -1
  66. package/dist/client/assets/{auth-entry-C3k-_dZK.js → auth-entry-BBIyDdU5.js} +1 -1
  67. package/dist/client/assets/{auth-split-layout-BiFyTeQF.js → auth-split-layout-CpPst90z.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-BcT61tas.js → authenticate-and-persist-oauth-Ca1G6bWy.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-psn1jT8Z.js → automation-list-row-GTaw28qY.js} +1 -1
  70. package/dist/client/assets/{automation-runs-DZMls_iH.js → automation-runs-e7UMBmIy.js} +1 -1
  71. package/dist/client/assets/{automations-DPAF2sPr.js → automations-DVHIEzYX.js} +1 -1
  72. package/dist/client/assets/{autosend-lHRfnZnw.js → autosend-0p4cszrD.js} +1 -1
  73. package/dist/client/assets/{badge-DkZUyuLE.js → badge-fJOJmdQG.js} +1 -1
  74. package/dist/client/assets/{block-document-lzBLHqet.js → block-document-D6lQw_Sn.js} +1 -1
  75. package/dist/client/assets/{blocks-preview-workspace-context-nVzlii3E.js → blocks-preview-workspace-context-CevYm8XG.js} +1 -1
  76. package/dist/client/assets/{blocks-tab-states-Bk50Moxc.js → blocks-tab-states-BLBUtwwS.js} +1 -1
  77. package/dist/client/assets/{blog-schema-_cHri49Q.js → blog-schema-CW6OwOTr.js} +1 -1
  78. package/dist/client/assets/{buckets-xCVkFj72.js → buckets-DJjTeJ67.js} +1 -1
  79. package/dist/client/assets/{build-improve-prompt-doc-BEqFpLp8.js → build-improve-prompt-doc-Bz_NuW8p.js} +1 -1
  80. package/dist/client/assets/{calendar-DKdblSlt.js → calendar-BN8LK6az.js} +1 -1
  81. package/dist/client/assets/{capability-load-error-DDwDpZAe.js → capability-load-error-BwSdaWc5.js} +1 -1
  82. package/dist/client/assets/{category-editor-h9JRAnwx.js → category-editor-B2fU3l2-.js} +1 -1
  83. package/dist/client/assets/{chart-CjVr_q9X.js → chart-TbvRqjuj.js} +1 -1
  84. package/dist/client/assets/{chat-context-CgzRmLj9.js → chat-context-BwoQSegQ.js} +1 -1
  85. package/dist/client/assets/{chat-draft-B4UydoTt.js → chat-draft-DH581p83.js} +1 -1
  86. package/dist/client/assets/{checkbox-DWK-s7Qb.js → checkbox-BYltfk17.js} +1 -1
  87. package/dist/client/assets/{choose-editor--2LsyfCd.js → choose-editor-CF8pbtbx.js} +1 -1
  88. package/dist/client/assets/{cli-auth-success-CND8gpL5.js → cli-auth-success-8VRhz3fQ.js} +1 -1
  89. package/dist/client/assets/{client-icons-BaAUNhEJ.js → client-icons-azPimjhr.js} +1 -1
  90. package/dist/client/assets/{cms-settings-editor-lqxcI5Hg.js → cms-settings-editor-Dh2cgMIJ.js} +1 -1
  91. package/dist/client/assets/{cms-store-drafts-C58TTepj.js → cms-store-drafts-DOqjCS5l.js} +1 -1
  92. package/dist/client/assets/{collapsible-BDLE2DdR.js → collapsible-DMIxs55h.js} +1 -1
  93. package/dist/client/assets/{collection-detail-DOAZyoBJ.js → collection-detail-BNTXyqsr.js} +1 -1
  94. package/dist/client/assets/{collection-display-button-DtSbqGBw.js → collection-display-button-DlPhjc6E.js} +1 -1
  95. package/dist/client/assets/{collection-search-7CuPB6Mj.js → collection-search-DFoNgd1T.js} +1 -1
  96. package/dist/client/assets/{collection-table-wrapper-C0bVVs5u.js → collection-table-wrapper-OwJoF9HU.js} +1 -1
  97. package/dist/client/assets/{collection-tabs-BwjOtf-h.js → collection-tabs-DTr38V1c.js} +1 -1
  98. package/dist/client/assets/{combobox-DQc1zHex.js → combobox-B8pIOucr.js} +1 -1
  99. package/dist/client/assets/{command-S6wl_N-A.js → command-8eo7blzl.js} +1 -1
  100. package/dist/client/assets/{companion-mcps-section-qyqwAzKW.js → companion-mcps-section-OBc1XSiN.js} +1 -1
  101. package/dist/client/assets/{config-B4N1KvK3.js → config-CZxXYayZ.js} +1 -1
  102. package/dist/client/assets/{connect-C19zSnhk.js → connect-BDnlsqF3.js} +1 -1
  103. package/dist/client/assets/{connect-layout-8NYqxlGK.js → connect-layout-f8wmYpiF.js} +1 -1
  104. package/dist/client/assets/{connect-source-dialog-DRb46j31.js → connect-source-dialog-BnoBKHvg.js} +1 -1
  105. package/dist/client/assets/{connection-RGsn1zoX.js → connection-B4VgNpkK.js} +1 -1
  106. package/dist/client/assets/{connection-card-DVOlmkv8.js → connection-card-Cp7AJMDR.js} +1 -1
  107. package/dist/client/assets/{connection-detail-C3GIijyZ.js → connection-detail-BYR-qeWG.js} +1 -1
  108. package/dist/client/assets/{connection-form-helpers-EUgEl7Bu.js → connection-form-helpers-DqULERyx.js} +1 -1
  109. package/dist/client/assets/{connection-slug-DgEoYwIW.js → connection-slug-CK9E8VRg.js} +1 -1
  110. package/dist/client/assets/{connections-CL_TB_cb.js → connections-D1yKPCTH.js} +1 -1
  111. package/dist/client/assets/{content-tab-BUefWRPb.js → content-tab-D-PBLIve.js} +3 -3
  112. package/dist/client/assets/{context-PcxN-Yb3.js → context-Ciehk0ao.js} +1 -1
  113. package/dist/client/assets/{context-menu-CCk675ED.js → context-menu-SmukJNMU.js} +1 -1
  114. package/dist/client/assets/{context-shell-Y8UEjYd5.js → context-shell-CO4fTNNJ.js} +3 -3
  115. package/dist/client/assets/{core.esm-GtXGAknm.js → core.esm-B_Pr2KZA.js} +1 -1
  116. package/dist/client/assets/{create-organization-dialog-l03VBmUT.js → create-organization-dialog-8e7uLr8k.js} +1 -1
  117. package/dist/client/assets/{device-hint-DdS-9onj.js → device-hint-_3UpNo1y.js} +1 -1
  118. package/dist/client/assets/{discover-Dc5MvCTM.js → discover-j-WmLzAr.js} +1 -1
  119. package/dist/client/assets/{domain-settings-DhDqArit.js → domain-settings-nzh2Xqh2.js} +1 -1
  120. package/dist/client/assets/{drawer-CeL3iOe9.js → drawer-BiZQd3jF.js} +1 -1
  121. package/dist/client/assets/{editor-DI-SD6st.js → editor-B5BFg8L4.js} +1 -1
  122. package/dist/client/assets/{editor-classes-rz90F5QL.js → editor-classes-DxfrzHp8.js} +1 -1
  123. package/dist/client/assets/{empty-state-BzJZeJ1_.js → empty-state-CPhGFwFG.js} +1 -1
  124. package/dist/client/assets/{empty-state-CPXu2SjZ.js → empty-state-D5FGRI4e.js} +1 -1
  125. package/dist/client/assets/{experiments-tab-choice-BFkdJ9rD.js → experiments-tab-choice-5NNTmJRW.js} +1 -1
  126. package/dist/client/assets/{extract-connection-data-BiC-GhNR.js → extract-connection-data-lBAlP3pz.js} +1 -1
  127. package/dist/client/assets/{feature-gate-CCAJFbdi.js → feature-gate-Djob_jbU.js} +1 -1
  128. package/dist/client/assets/{feature-paywall-msT8ZMne.js → feature-paywall-DWnzqDkt.js} +1 -1
  129. package/dist/client/assets/{file-explorer-E9lr9dLc.js → file-explorer-B7HqI107.js} +1 -1
  130. package/dist/client/assets/{file-preview-D5yUv2iw.js → file-preview-CVLvq53I.js} +1 -1
  131. package/dist/client/assets/{file-share-button-DM_8wEfN.js → file-share-button-Ug-zwu4d.js} +1 -1
  132. package/dist/client/assets/{file-type-icon-BvWm1zTi.js → file-type-icon-BZTtX6EK.js} +1 -1
  133. package/dist/client/assets/{folder-icon-Ba-oFD1p.js → folder-icon-C2EzD8if.js} +1 -1
  134. package/dist/client/assets/{form-L-VC2P7Q.js → form-Bhgzwnyp.js} +1 -1
  135. package/dist/client/assets/{general-BWnZfXcy.js → general-CPLHJuRp.js} +1 -1
  136. package/dist/client/assets/{github-icon-B6p2n-Kl.js → github-icon-Buu0H1v4.js} +1 -1
  137. package/dist/client/assets/{home-CwRSX6s5.js → home-BCYh-a3a.js} +1 -1
  138. package/dist/client/assets/{home-overview-C4tikkR5.js → home-overview-DTtXcEkG.js} +1 -1
  139. package/dist/client/assets/{hosted-reconcile-BDgHjLi6.js → hosted-reconcile-BdwyWhOE.js} +1 -1
  140. package/dist/client/assets/{icon-button-B0NgHaBw.js → icon-button-Dls6AzVP.js} +1 -1
  141. package/dist/client/assets/{index-4il9ZN1V.js → index-0xCVweSM.js} +1 -1
  142. package/dist/client/assets/{index-DpapZCOM.js → index-B3BrFVGB.js} +1 -1
  143. package/dist/client/assets/{index-LAMXRZBI.js → index-B4tnBHnb.js} +1 -1
  144. package/dist/client/assets/{index-G9etLsCu.js → index-B6eHz5VS.js} +1 -1
  145. package/dist/client/assets/index-BJqMJFEL.js +4 -0
  146. package/dist/client/assets/{index-BM4aqxou.js → index-BJrkqMqs.js} +1 -1
  147. package/dist/client/assets/{index-BwRnmN3X.js → index-C8i-vHCI.js} +1 -1
  148. package/dist/client/assets/{index-htBIzPBo.js → index-CJKJ4WN3.js} +1 -1
  149. package/dist/client/assets/{index-LtcFVDl-.js → index-CKuu5BgI.js} +1 -1
  150. package/dist/client/assets/{index-DEjhS3On.js → index-CMl-YIkn.js} +1 -1
  151. package/dist/client/assets/{index-DAw2iB-r.js → index-CQIKg7tc.js} +1 -1
  152. package/dist/client/assets/{index-DzDxrfRc.js → index-CtJa8hR9.js} +1 -1
  153. package/dist/client/assets/{index-CbNS-lqc.js → index-DAFka6tK.js} +1 -1
  154. package/dist/client/assets/{index-Kdb8LYBY.js → index-DJy_S3Mn.js} +1 -1
  155. package/dist/client/assets/index-DO-A5xCQ.css +1 -0
  156. package/dist/client/assets/{index-DdsVIe4X.js → index-D_HCIUjf.js} +1 -1
  157. package/dist/client/assets/{index-CBDkPY2u.js → index-UxIaE43S.js} +1 -1
  158. package/dist/client/assets/{index-C5rKbfQX.js → index-XdUWZF5g.js} +3 -3
  159. package/dist/client/assets/{index-redirect-D65M4lKT.js → index-redirect-ZoX0Nmet.js} +1 -1
  160. package/dist/client/assets/{infiniteQueryObserver-YWHwwvoP.js → infiniteQueryObserver-DgQQHW6Y.js} +1 -1
  161. package/dist/client/assets/{infra-billing-Xxb1Bh-S.js → infra-billing-CbpAOQ7f.js} +1 -1
  162. package/dist/client/assets/{input-BlK3U8US.js → input-BBwM3ir1.js} +1 -1
  163. package/dist/client/assets/{input-D27vv69n.js → input-BneF5n5F.js} +3 -3
  164. package/dist/client/assets/{integration-icon-Bsx-3jGF.js → integration-icon-DpoZYM7e.js} +1 -1
  165. package/dist/client/assets/{jira-icon-D4OqjMM1.js → jira-icon-CfXcnbRW.js} +1 -1
  166. package/dist/client/assets/{label-ClvjBErg.js → label-CUqIqnOS.js} +1 -1
  167. package/dist/client/assets/{layout-dHNilPeS.js → layout-CZKu8-AR.js} +1 -1
  168. package/dist/client/assets/{legacy-admin-welcome-dialog-BWjZM5AD.js → legacy-admin-welcome-dialog-D12aat8e.js} +1 -1
  169. package/dist/client/assets/{legacy-agents-deep-Cp7T1hMb.js → legacy-agents-deep-C46PUrrS.js} +1 -1
  170. package/dist/client/assets/{legacy-main-redirect-D2VmYkks.js → legacy-main-redirect-si54JTxO.js} +1 -1
  171. package/dist/client/assets/library-bWgDO9u6.js +1 -0
  172. package/dist/client/assets/{library-tab-xCweoCmU.js → library-tab-EiyuBjPa.js} +1 -1
  173. package/dist/client/assets/{login-UoVVABWK.js → login-D0eYUue3.js} +1 -1
  174. package/dist/client/assets/{markdown-BdJYipZI.js → markdown-A06Oe1_p.js} +1 -1
  175. package/dist/client/assets/{mcp-app-renderer-D5FAR8Ib.js → mcp-app-renderer-Dkj1yLIG.js} +1 -1
  176. package/dist/client/assets/{mcp-oauth-DRARiFN2.js → mcp-oauth-L4CbK4hz.js} +1 -1
  177. package/dist/client/assets/{mcp-oauth-t279DpyZ.js → mcp-oauth-u5RBmpff.js} +1 -1
  178. package/dist/client/assets/{members-DbmfOPrk.js → members-D2W9FUHb.js} +1 -1
  179. package/dist/client/assets/{memory-Bhu-z5Pk.js → memory-nZuh_3HW.js} +1 -1
  180. package/dist/client/assets/{mock-board-C3_eVd32.js → mock-board-DkI2cfk-.js} +3 -3
  181. package/dist/client/assets/{monaco-editor-BDOHWgUD.js → monaco-editor-DoTBOc-e.js} +1 -1
  182. package/dist/client/assets/{monitoring-ovrO5sTD.js → monitoring-DZ1uqyFT.js} +1 -1
  183. package/dist/client/assets/{monitoring-stats-row-DH7xohBl.js → monitoring-stats-row-Be_-YMn8.js} +1 -1
  184. package/dist/client/assets/{multi-select-R2NOj_5y.js → multi-select-CzoYfyvg.js} +1 -1
  185. package/dist/client/assets/{mustache-D5PfsUhz.js → mustache-BctGjQ5L.js} +1 -1
  186. package/dist/client/assets/{named-rule-view-Djrur4H7.js → named-rule-view-DUsv8g0V.js} +1 -1
  187. package/dist/client/assets/{new-project-dialog-2FiQJTVA.js → new-project-dialog-151PED_m.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-DUowyC76.js → oauth-callback-DrwI5ATg.js} +1 -1
  189. package/dist/client/assets/{oauth-callback-ai-provider-C1tRdwHi.js → oauth-callback-ai-provider-D9pLn0-_.js} +1 -1
  190. package/dist/client/assets/{oauth-consent-BVvs4mEw.js → oauth-consent-o6k0sIQ6.js} +1 -1
  191. package/dist/client/assets/{onboarding-BCTjaPZ_.js → onboarding-BMQJZ4PX.js} +1 -1
  192. package/dist/client/assets/{openai-conversation-D1PUy-BO.js → openai-conversation-CWam_Ql8.js} +1 -1
  193. package/dist/client/assets/{optimistic-project-sidebar-views-Bh3ICpY8.js → optimistic-project-sidebar-views-Dx-3KOhR.js} +1 -1
  194. package/dist/client/assets/{order-monitor-day-DqdyBwnN.js → order-monitor-day-DGR3iDef.js} +1 -1
  195. package/dist/client/assets/{organization-choice-ZuFXzhnR.js → organization-choice-1Lr2hM9B.js} +1 -1
  196. package/dist/client/assets/{orgs-9UW_iExW.js → orgs-CbmN-Uo3.js} +1 -1
  197. package/dist/client/assets/{own-accounts-section-isSB-FSp.js → own-accounts-section-DPfUOm23.js} +1 -1
  198. package/dist/client/assets/{pair-CElz1KSY.js → pair-BCJ5sFP0.js} +1 -1
  199. package/dist/client/assets/{parse-sections--hSYduXv.js → parse-sections-DxG18Udv.js} +4 -4
  200. package/dist/client/assets/{plan-D63C_MPU.js → plan-BaYlHrHs.js} +1 -1
  201. package/dist/client/assets/{plan-ladder-NpTeU9-u.js → plan-ladder-LKl9l3TA.js} +1 -1
  202. package/dist/client/assets/{plan-usage-card-DEXJyMAS.js → plan-usage-card-wDWYSVHD.js} +1 -1
  203. package/dist/client/assets/{popover-CqBUgUd4.js → popover-DmqBIPKi.js} +1 -1
  204. package/dist/client/assets/{post-calendar-B31lbJWM.js → post-calendar-C4TZhDJz.js} +1 -1
  205. package/dist/client/assets/{post-editor-BpfbNo9B.js → post-editor-DGrj-qXP.js} +1 -1
  206. package/dist/client/assets/{preview-content-BhYb-Vka.js → preview-content-8R1QUim7.js} +1 -1
  207. package/dist/client/assets/{preview-dialog-Cn9E_1ja.js → preview-dialog-ZNHmoyI1.js} +1 -1
  208. package/dist/client/assets/{preview-panel-CnPb4vzV.js → preview-panel-DbX8A-HE.js} +1 -1
  209. package/dist/client/assets/{preview-tab-BPXubm1u.js → preview-tab-DglGrCFS.js} +3 -3
  210. package/dist/client/assets/{product-picker-dialog-Ln-fortG.js → product-picker-dialog-B84p2GNz.js} +1 -1
  211. package/dist/client/assets/{profile-DWNOXniN.js → profile-Bhqnq92W.js} +1 -1
  212. package/dist/client/assets/{project-app-view-DWRWpiiK.js → project-app-view-BH2u01TO.js} +1 -1
  213. package/dist/client/assets/{project-apps-CZSvF64d.js → project-apps-CTuZm-1a.js} +1 -1
  214. package/dist/client/assets/{project-icon-C4lVIM96.js → project-icon-BhWIi9DN.js} +1 -1
  215. package/dist/client/assets/{project-index-x-ZOZ8Mf.js → project-index-_-BCnGMR.js} +1 -1
  216. package/dist/client/assets/project-reports-yDx2KIN5.js +1 -0
  217. package/dist/client/assets/project-tasks-CZ24XPn7.js +1 -0
  218. package/dist/client/assets/{projects-BsM1ITvC.js → projects-CbLcC2Cm.js} +1 -1
  219. package/dist/client/assets/{projects-empty-state-sTtuIh4q.js → projects-empty-state-DgeHjyWl.js} +1 -1
  220. package/dist/client/assets/{prompts-dgUfCSOB.js → prompts-CIAk1CWx.js} +1 -1
  221. package/dist/client/assets/{record-editor-mwl6n7Or.js → record-editor-Cqt0X6zj.js} +1 -1
  222. package/dist/client/assets/{redirect-editor-D-2T4F71.js → redirect-editor-DrfUg_M2.js} +1 -1
  223. package/dist/client/assets/reports-BeqJdfY-.js +1 -0
  224. package/dist/client/assets/{reports-Cq6UP-zD.js → reports-BqGiKAfm.js} +1 -1
  225. package/dist/client/assets/{reports-onboarding-Cw1ES_fk.js → reports-onboarding-LZjQ8G8T.js} +1 -1
  226. package/dist/client/assets/{reports-tab-BXxSmfY-.js → reports-tab-B55dyiL7.js} +2 -2
  227. package/dist/client/assets/{repositories-zLGliE0C.js → repositories-0RznNRUX.js} +1 -1
  228. package/dist/client/assets/repositories-BoB8X409.js +1 -0
  229. package/dist/client/assets/{repository-binding-DUEv5f7z.js → repository-binding-Cfy_YQIZ.js} +1 -1
  230. package/dist/client/assets/{repository-picker-LEy-d9M8.js → repository-picker-BKWo-jhF.js} +1 -1
  231. package/dist/client/assets/{require-capability-BFJscvRg.js → require-capability-Bpnmr0un.js} +1 -1
  232. package/dist/client/assets/{required-auth-layout-CS2LsSXS.js → required-auth-layout-CRKzQVpv.js} +1 -1
  233. package/dist/client/assets/{reset-password-CLJvl3-M.js → reset-password-DVKc7osA.js} +1 -1
  234. package/dist/client/assets/{resizable-BTzOABh_.js → resizable-w4diu4pE.js} +1 -1
  235. package/dist/client/assets/{resolve-tab-icon-Cx12hCTF.js → resolve-tab-icon-DY3vlmxg.js} +1 -1
  236. package/dist/client/assets/{review-settings-K73MViBj.js → review-settings-D7Ld59mb.js} +1 -1
  237. package/dist/client/assets/{role-color-wtFF9FyO.js → role-color-DfOmE7Fu.js} +1 -1
  238. package/dist/client/assets/{roles-lA_VDVLq.js → roles-RQS02DUg.js} +1 -1
  239. package/dist/client/assets/route-59M5FlvK.js +1 -0
  240. package/dist/client/assets/route-B-HA2s4_.js +1 -0
  241. package/dist/client/assets/{route-DvsMi8Up.js → route-BRvX0p-n.js} +1 -1
  242. package/dist/client/assets/{sandbox-lifecycle-context-DDRNmIrA.js → sandbox-lifecycle-context-D-PaTa6M.js} +1 -1
  243. package/dist/client/assets/{schema-X_RDdg-y.js → schema-CJ9UcSNs.js} +1 -1
  244. package/dist/client/assets/{schema-BVevzILm.js → schema-Dq7led26.js} +1 -1
  245. package/dist/client/assets/{scroll-area-DKlcsV7g.js → scroll-area-PZSCT0ow.js} +1 -1
  246. package/dist/client/assets/{search-input-Dp__IM9S.js → search-input-DO66exG7.js} +1 -1
  247. package/dist/client/assets/{search-toggle-CBmuZ2WE.js → search-toggle-DaBbNP1T.js} +1 -1
  248. package/dist/client/assets/{secret-picker-DhQoz4cP.js → secret-picker-bljsK2mV.js} +1 -1
  249. package/dist/client/assets/{secrets-ClQzoiri.js → secrets-CBAb9cvk.js} +1 -1
  250. package/dist/client/assets/{section-array-field-BJlTuDJ0.js → section-array-field-CPrkBgr3.js} +1 -1
  251. package/dist/client/assets/{sections-DawDKX-z.js → sections-T2vi-zI4.js} +1 -1
  252. package/dist/client/assets/{sections-editor-DxtomCA1.js → sections-editor-DQwNUlLv.js} +1 -1
  253. package/dist/client/assets/{select-CyUEqwIm.js → select-BABowMoY.js} +1 -1
  254. package/dist/client/assets/{select-model-BzSnEGgg.js → select-model-CbEyJ33x.js} +1 -1
  255. package/dist/client/assets/{seo-editor-3ngDHo5h.js → seo-editor-C9V4Y_YB.js} +1 -1
  256. package/dist/client/assets/{separator-CmzlIaEc.js → separator-CM0d_WPE.js} +1 -1
  257. package/dist/client/assets/settings-tab-DUqPlhAE.js +1 -0
  258. package/dist/client/assets/{sheet-IIyyroSY.js → sheet-BSCF-nmk.js} +1 -1
  259. package/dist/client/assets/{shell-layout-B3OvMhlE.js → shell-layout-d2Ief2ja.js} +1 -1
  260. package/dist/client/assets/{site-draft-actions-DrqlFBor.js → site-draft-actions-CH7jTGTc.js} +1 -1
  261. package/dist/client/assets/{site-draft-view-D-ELfHPh.js → site-draft-view-CbKyFhEM.js} +1 -1
  262. package/dist/client/assets/site-editor-CX53l3C_.js +1 -0
  263. package/dist/client/assets/{site-editor-toast-DENHUiCT.js → site-editor-toast-CluWI-yZ.js} +1 -1
  264. package/dist/client/assets/{skills-B8RU12dT.js → skills-BOpgUaHZ.js} +1 -1
  265. package/dist/client/assets/{slider-BepoHGY5.js → slider-QcqvUsSI.js} +1 -1
  266. package/dist/client/assets/{sortable.esm-BrSOrmKx.js → sortable.esm-0yomt8g2.js} +1 -1
  267. package/dist/client/assets/{sso-BulaOiW_.js → sso-CbSeZ9e5.js} +1 -1
  268. package/dist/client/assets/{suggestion-YqRrGHMj.js → suggestion-C9bDFuOo.js} +1 -1
  269. package/dist/client/assets/{super-agent-icon-x69TX2ms.js → super-agent-icon-DMm0_lmO.js} +1 -1
  270. package/dist/client/assets/{switch-orhYNiag.js → switch-CRe3xUPs.js} +1 -1
  271. package/dist/client/assets/{synced-repos-DGyWZrAj.js → synced-repos-D900mhEv.js} +1 -1
  272. package/dist/client/assets/{tab-icon-glyph-BGRWjUyB.js → tab-icon-glyph-D5lXXFkj.js} +1 -1
  273. package/dist/client/assets/{table-CbTKxzQy.js → table-C-Iqqanf.js} +1 -1
  274. package/dist/client/assets/{tabs-DtSLfZo2.js → tabs-CPwYT_wy.js} +1 -1
  275. package/dist/client/assets/{task-board-BRiMfa1H.js → task-board-B-Jl-DnQ.js} +1 -1
  276. package/dist/client/assets/{task-route-Ct1ewCdc.js → task-route-C-boE7jG.js} +1 -1
  277. package/dist/client/assets/{task-status-CNp27qEf.js → task-status-Dg7JusRR.js} +1 -1
  278. package/dist/client/assets/{taskboard-analytics-BzQaMsBY.js → taskboard-analytics-DwDfRDQC.js} +1 -1
  279. package/dist/client/assets/tasks-DMBPC4PI.js +1 -0
  280. package/dist/client/assets/{tasks-Pj9yL7A8.js → tasks-ElocVpWd.js} +1 -1
  281. package/dist/client/assets/{textarea-209m9vBn.js → textarea-DSiKrnTK.js} +1 -1
  282. package/dist/client/assets/{thread-analytics-D53Jdel6.js → thread-analytics-BtdCUFGw.js} +1 -1
  283. package/dist/client/assets/{thread-intent-WcxoFFz-.js → thread-intent-DnduoWYb.js} +1 -1
  284. package/dist/client/assets/{thread-route--T7U_PM9.js → thread-route-D0P3i7B7.js} +1 -1
  285. package/dist/client/assets/{thread-route-DPSPrt7d.js → thread-route-DSQLBJ4Y.js} +1 -1
  286. package/dist/client/assets/{thread-sheet-body-DND-PwQV.js → thread-sheet-body-BHjT7Rlx.js} +1 -1
  287. package/dist/client/assets/{time-range-picker-DfNJN-OE.js → time-range-picker-B0Xtja-D.js} +1 -1
  288. package/dist/client/assets/{toggle-group-DM_BOhW0.js → toggle-group-CO1s8gR-.js} +1 -1
  289. package/dist/client/assets/{tool-namespace-C59qlTVf.js → tool-namespace-BskMFdfX.js} +1 -1
  290. package/dist/client/assets/{tool-set-selector-DgrOma0D.js → tool-set-selector-DbHsII-W.js} +1 -1
  291. package/dist/client/assets/{toolbar-icon-button-CJQ4RpgO.js → toolbar-icon-button-DQHnJFhG.js} +1 -1
  292. package/dist/client/assets/{tooltip-DfoRFUTt.js → tooltip-C1oPRuFg.js} +1 -1
  293. package/dist/client/assets/{tooltipContext-DkEG8PKQ.js → tooltipContext-Dk4Jh8sf.js} +1 -1
  294. package/dist/client/assets/{track-nzJv4YA6.js → track-DQNlgsAd.js} +1 -1
  295. package/dist/client/assets/{types-Cgo3CFt9.js → types-sVhbGxrT.js} +1 -1
  296. package/dist/client/assets/{url-slug-D5Ql5NBy.js → url-slug-kny4-Gd8.js} +1 -1
  297. package/dist/client/assets/{usage-stats-D1pQya7R.js → usage-stats-CkprzoQA.js} +1 -1
  298. package/dist/client/assets/{use-ai-providers-FchZM1mi.js → use-ai-providers-BmwnG2L7.js} +1 -1
  299. package/dist/client/assets/{use-apply-named-rule-CFJrM0f2.js → use-apply-named-rule-QQXumPyC.js} +1 -1
  300. package/dist/client/assets/use-ask-in-chat-C56CHpt0.js +1 -0
  301. package/dist/client/assets/{use-automations-CarYUcnW.js → use-automations-pGpYlQfd.js} +1 -1
  302. package/dist/client/assets/{use-autosave-Csria5RZ.js → use-autosave-C1VLdEbv.js} +1 -1
  303. package/dist/client/assets/use-blocks-v8-project-DSiCCdEB.js +1 -0
  304. package/dist/client/assets/{use-chat-layout-state-BqEltHtu.js → use-chat-layout-state-Ep7OkPup.js} +1 -1
  305. package/dist/client/assets/{use-cms-publish-actions-DPRkhh6_.js → use-cms-publish-actions-Cls9mAWe.js} +1 -1
  306. package/dist/client/assets/{use-connect-companion-BhmBql_v.js → use-connect-companion-B0uthGiU.js} +1 -1
  307. package/dist/client/assets/{use-connection-VuRKL2Wi.js → use-connection-DFsrW4Mv.js} +1 -1
  308. package/dist/client/assets/{use-content-sync-CGHzShO7.js → use-content-sync-BYcD8LZk.js} +1 -1
  309. package/dist/client/assets/{use-copy-0cdTfCyw.js → use-copy-9wHvlEmg.js} +1 -1
  310. package/dist/client/assets/{use-date-fns-locale-CaSBMCYV.js → use-date-fns-locale-CfiWZhP7.js} +1 -1
  311. package/dist/client/assets/{use-debounced-autosave-B_FG-Ld6.js → use-debounced-autosave-CK8e7jku.js} +1 -1
  312. package/dist/client/assets/{use-debounced-value-Dx--8iDQ.js → use-debounced-value-Cs49dczG.js} +1 -1
  313. package/dist/client/assets/{use-deco-credits-CakmKLVf.js → use-deco-credits-ChuCrYAR.js} +1 -1
  314. package/dist/client/assets/{use-decopilot-events-YhVenol5.js → use-decopilot-events-CR7NJgme.js} +1 -1
  315. package/dist/client/assets/{use-delete-connection-CuVqc_g7.js → use-delete-connection-Dq2UKTpz.js} +1 -1
  316. package/dist/client/assets/{use-deployment-admin-DQEDNV2B.js → use-deployment-admin-CALPlo_8.js} +1 -1
  317. package/dist/client/assets/{use-entitlements-D_MPAaiQ.js → use-entitlements-DzfUP8ON.js} +1 -1
  318. package/dist/client/assets/{use-fast-preview-draft-url-Bh1bJ8Tn.js → use-fast-preview-draft-url-B0ysxeQy.js} +1 -1
  319. package/dist/client/assets/{use-file-configs-CXBJCroM.js → use-file-configs-CfNCrD6y.js} +1 -1
  320. package/dist/client/assets/{use-id-selection-BtSilIwG.js → use-id-selection-BeGsI2-X.js} +1 -1
  321. package/dist/client/assets/{use-inbox-feed-BPWzxstR.js → use-inbox-feed-HViitByF.js} +1 -1
  322. package/dist/client/assets/{use-infinite-scroll-B6u7Pc2_.js → use-infinite-scroll-DdKcODzJ.js} +1 -1
  323. package/dist/client/assets/{use-join-requests-BPXOtsdm.js → use-join-requests-Dg5vHh8i.js} +1 -1
  324. package/dist/client/assets/{use-main-panel-tabs-D5rq6cfQ.js → use-main-panel-tabs-DZH6Z-sf.js} +1 -1
  325. package/dist/client/assets/{use-mcp-auth-status-DgRTk282.js → use-mcp-auth-status-C13HkQ9w.js} +1 -1
  326. package/dist/client/assets/{use-mcp-client-CS5CWOuF.js → use-mcp-client-B9_8tfCL.js} +1 -1
  327. package/dist/client/assets/{use-mcp-prompts-CCE8Fbv3.js → use-mcp-prompts-NcFGfyZU.js} +1 -1
  328. package/dist/client/assets/{use-mcp-tools-BxzPGngG.js → use-mcp-tools-wrSWiD0P.js} +1 -1
  329. package/dist/client/assets/{use-mobile-BRC3jJYG.js → use-mobile-DSmr8Fj3.js} +1 -1
  330. package/dist/client/assets/{use-move-blocks-CVmWlpJu.js → use-move-blocks-gne4gzCh.js} +1 -1
  331. package/dist/client/assets/{use-navigate-to-agent-DeqGja5R.js → use-navigate-to-agent-ycEqYJX7.js} +1 -1
  332. package/dist/client/assets/{use-org-fs-BR5xSOAD.js → use-org-fs-C57fsXyq.js} +1 -1
  333. package/dist/client/assets/{use-org-repo-syncs-992WvYkT.js → use-org-repo-syncs-BcOvlKwo.js} +1 -1
  334. package/dist/client/assets/{use-org-sso-CW-nSjRe.js → use-org-sso-B5c0saDF.js} +1 -1
  335. package/dist/client/assets/{use-organization-settings-CFMK78d5.js → use-organization-settings-B0lt5dXR.js} +1 -1
  336. package/dist/client/assets/use-project-native-view-presence-BBRyl28q.js +1 -0
  337. package/dist/client/assets/{use-project-scope-BytjCxz5.js → use-project-scope-C1eT4xwT.js} +1 -1
  338. package/dist/client/assets/{use-recent-apps-fmj7r_1V.js → use-recent-apps-CU27r377.js} +1 -1
  339. package/dist/client/assets/{use-reports-diagnostic-ZH33t2Ry.js → use-reports-diagnostic-QLTyI1c7.js} +1 -1
  340. package/dist/client/assets/{use-sandbox-events-BtH7E0uv.js → use-sandbox-events-BNcBCK9X.js} +1 -1
  341. package/dist/client/assets/{use-secrets-MV8rBv8h.js → use-secrets-Dh7bZZgD.js} +1 -1
  342. package/dist/client/assets/{use-section-preview-base-NYQYAFvE.js → use-section-preview-base-53RIdpth.js} +1 -1
  343. package/dist/client/assets/{use-sidebar-collapsed-DrrBSrPo.js → use-sidebar-collapsed-XX5WdYs3.js} +1 -1
  344. package/dist/client/assets/{use-tags-B4IWxKLq.js → use-tags-Cbxwh1yu.js} +1 -1
  345. package/dist/client/assets/{use-task-board-analytics-CPWfH5yX.js → use-task-board-analytics-BseFgQx7.js} +1 -1
  346. package/dist/client/assets/{use-task-board-events-D2PTxteH.js → use-task-board-events-CMb3Vjy2.js} +1 -1
  347. package/dist/client/assets/{use-task-board-item-prs-D7OlirOV.js → use-task-board-item-prs-2_-y1IH5.js} +1 -1
  348. package/dist/client/assets/{use-task-board-items-BKptWuO1.js → use-task-board-items-CnG0LR-k.js} +1 -1
  349. package/dist/client/assets/{use-task-board-prompts-DnVDJ6_x.js → use-task-board-prompts-DschKVPr.js} +1 -1
  350. package/dist/client/assets/{use-task-metadata-oUNTu7G7.js → use-task-metadata-KJjG2-5j.js} +1 -1
  351. package/dist/client/assets/{use-thread-outputs-BZy8PRyS.js → use-thread-outputs-B6Mbzgsq.js} +1 -1
  352. package/dist/client/assets/{use-voice-input-DGGVK_ws.js → use-voice-input-BVeAO01v.js} +1 -1
  353. package/dist/client/assets/useInfiniteQuery-BvhkDMwv.js +1 -0
  354. package/dist/client/assets/{useQueries-BL2FM5JE.js → useQueries-COskgQPI.js} +1 -1
  355. package/dist/client/assets/useSuspenseInfiniteQuery-CHeSvNyF.js +1 -0
  356. package/dist/client/assets/{users-DN8b1dro.js → users-D9U38Uiq.js} +1 -1
  357. package/dist/client/assets/{utils-0-v3IEet.js → utils-C07I_8BL.js} +1 -1
  358. package/dist/client/assets/{variant-calendar-AGawLsl4.js → variant-calendar-B1xF-pvj.js} +1 -1
  359. package/dist/client/assets/{variant-matcher-override-bkTeCqdH.js → variant-matcher-override-O46bQvi2.js} +1 -1
  360. package/dist/client/assets/{view-header-BIzMLTHX.js → view-header-CB8g9i8I.js} +1 -1
  361. package/dist/client/assets/{virtual-mcp-BMrSPW2C.js → virtual-mcp-DkEy_7-s.js} +1 -1
  362. package/dist/client/assets/{watch-sse-pool-GnUwxcY-.js → watch-sse-pool-BUtg06cI.js} +1 -1
  363. package/dist/client/index.html +2 -2
  364. package/dist/server/server.js +1 -1
  365. package/package.json +1 -1
  366. package/dist/client/assets/agent-app-yGED1LS1.js +0 -1
  367. package/dist/client/assets/agent-deck-LUFm8nK5.js +0 -1
  368. package/dist/client/assets/agent-experiments-CrI0Xt-_.js +0 -1
  369. package/dist/client/assets/agent-library-file-YDJ0zlYR.js +0 -1
  370. package/dist/client/assets/agent-library-wOcEVpTS.js +0 -1
  371. package/dist/client/assets/agent-overview-C4c1_ZnT.js +0 -1
  372. package/dist/client/assets/agent-settings-1nd2TnHk.js +0 -1
  373. package/dist/client/assets/agent-site-editor-code-C9o2WiSd.js +0 -2
  374. package/dist/client/assets/agent-site-editor-content-B2S2vOuL.js +0 -1
  375. package/dist/client/assets/agent-site-editor-preview-C_1acQkW.js +0 -1
  376. package/dist/client/assets/agent-view-BRDx54tu.js +0 -1
  377. package/dist/client/assets/api-keys-BlapvHSK.js +0 -1
  378. package/dist/client/assets/index-69S-cBsb.css +0 -1
  379. package/dist/client/assets/index-BLztRQYt.js +0 -4
  380. package/dist/client/assets/library-x_PzwwCZ.js +0 -1
  381. package/dist/client/assets/project-reports-Co8V8gK_.js +0 -1
  382. package/dist/client/assets/project-tasks-BZllmGjR.js +0 -1
  383. package/dist/client/assets/reports-BcYIlq-E.js +0 -1
  384. package/dist/client/assets/repositories-DpxY5Srs.js +0 -1
  385. package/dist/client/assets/route-Ar-PaeSg.js +0 -1
  386. package/dist/client/assets/route-Db3DsYPk.js +0 -1
  387. package/dist/client/assets/settings-tab-BqZqehcR.js +0 -1
  388. package/dist/client/assets/site-editor-DLyKSqN3.js +0 -1
  389. package/dist/client/assets/tasks-wdjdAvFr.js +0 -1
  390. package/dist/client/assets/use-ask-in-chat-CdLHTgVd.js +0 -1
  391. package/dist/client/assets/use-blocks-v8-project-B0q_oYPf.js +0 -1
  392. package/dist/client/assets/use-project-native-view-presence-BkX9SQu7.js +0 -1
  393. package/dist/client/assets/useInfiniteQuery-D6ILTDQv.js +0 -1
  394. package/dist/client/assets/useSuspenseInfiniteQuery-BcYDPkVL.js +0 -1
@@ -1 +1 @@
1
- import{c as C,b as J,e as nt,j as o,B as D,t as Z,o as ot,c_ as be,af as qt,a as se,M as Bt,V as Kt,K as Xe,c$ as Ht,d0 as Ut,as as he,m as wt,b8 as bn,C as Pt,r as G,ad as wn,ae as re,d1 as Sn,w as Gt,x as Jt,v as Vt,D as Wt,i as pe,d2 as vn,aq as Yt,d as kt,a4 as Tt,H as jn,T as Qt,E as St,aR as Xt,d3 as kn,aX as Tn,b2 as _t,J as Nn,d4 as Pn,cb as _n,aS as On,y as In,d5 as An,d6 as En,d7 as Cn,d8 as $n,d9 as Ln,a5 as Rn,u as zn,a6 as Dn,da as Mn,db as Fn,l as Zt,dc as Ot,dd as qn,O as Bn,aZ as It,de as Kn,a0 as Hn}from"./index-C5rKbfQX.js";import{t as en}from"./Globe04-DDVQybOc.js";import{i as Un,s as ie}from"./UserSquare-BbdNewBi.js";import{u as Gn}from"./use-deployment-admin-DQEDNV2B.js";import{a as Jn}from"./admin-fetch-BhTJlAsX.js";import{ax as Vn,S as Wn,G as bt,a7 as Yn,I as Qn,ay as Xn,az as Zn,n as At,h as es,aA as ts,m as ns,aB as ss}from"./agent-icon-CIk0WHPf.js";import{s as tn}from"./XClose-D8nV11Fp.js";import{u as os,a as is}from"./use-project-scope-BytjCxz5.js";import{u as nn,a as as,A as rs}from"./autosend-lHRfnZnw.js";import{i as ge}from"./CheckCircle-DqwYeIyi.js";import{i as Et}from"./Monitor01-Bv9vshAO.js";import{i as Ye}from"./Zap-BNFgHEeM.js";import{s as Ct}from"./Plus-D9BJQ8Ip.js";import{a as ls}from"./Tool01-lye9w7uq.js";import{e as Qe,b as ae,d as cs,a as ds,c as us,C as ms}from"./command-S6wl_N-A.js";import{I as fs}from"./integration-icon-Bsx-3jGF.js";import{P as gs}from"./project-icon-C4lVIM96.js";import{a as hs}from"./use-navigate-to-agent-DeqGja5R.js";import{u as ps}from"./use-debounced-value-Dx--8iDQ.js";import{a as ys,m as xs}from"./use-mcp-client-CS5CWOuF.js";import{u as bs,a as ws,n as Ss}from"./new-project-dialog-2FiQJTVA.js";import{S as vs,u as js}from"./thread-intent-WcxoFFz-.js";import{L as ks}from"./legacy-admin-welcome-dialog-BWjZM5AD.js";import{R as Ts}from"./required-auth-layout-CS2LsSXS.js";import{u as Ns,a as Ps,b as _s,c as Os}from"./thread-route-DPSPrt7d.js";import{u as Is}from"./use-org-sso-CW-nSjRe.js";function As(t){const e=C.c(49),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a||e[1]!==i?(l=async()=>{const O=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await O.json();if(!O.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=l):l=e[2];let d;e[3]!==a?(d=O=>{window.location.href=`/${O.slug??a}`},e[3]=a,e[4]=d):d=e[4];let g;e[5]!==i?(g=O=>{Z.error(O instanceof Error?O.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[7]=l,e[8]=d,e[9]=g,e[10]=h):h=e[10];const f=nt(h),m=Es;let c;e[11]!==n||e[12]!==s?(c=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[11]=n,e[12]=s,e[13]=c):c=e[13];let y;e[14]!==s||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=y):y=e[16];let u;e[17]!==y?(u=o.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=u):u=e[18];let p;e[19]!==r||e[20]!==i?(p=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=p):p=e[21];let S;e[22]!==p?(S=o.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[22]=p,e[23]=S):S=e[23];let x;e[24]!==u||e[25]!==S?(x=o.jsxs("div",{className:"space-y-2",children:[u,S]}),e[24]=u,e[25]=S,e[26]=x):x=e[26];let b;e[27]!==f?(b=()=>f.mutate(),e[27]=f,e[28]=b):b=e[28];let v;e[29]!==f.isPending||e[30]!==s||e[31]!==i?(v=f.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=f.isPending,e[30]=s,e[31]=i,e[32]=v):v=e[32];let w;e[33]!==f.isPending||e[34]!==b||e[35]!==v?(w=o.jsx(D,{onClick:b,disabled:f.isPending,children:v}),e[33]=f.isPending,e[34]=b,e[35]=v,e[36]=w):w=e[36];const N=f.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==f.isPending||e[40]!==T?(j=o.jsx(D,{variant:"ghost",onClick:m,disabled:N,children:T}),e[39]=f.isPending,e[40]=T,e[41]=j):j=e[41];let P;e[42]!==w||e[43]!==j?(P=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,j]}),e[42]=w,e[43]=j,e[44]=P):P=e[44];let _;return e[45]!==x||e[46]!==P||e[47]!==c?(_=o.jsxs(be,{children:[c,x,P]}),e[45]=x,e[46]=P,e[47]=c,e[48]=_):_=e[48],_}function Es(){window.location.href="/"}function $t(t){const e=C.c(26),{orgSlug:s,orgId:a,orgName:n,reason:r}=t,i=J(),{isAdmin:l}=Gn(),d=Cs,g=r==="not-found",h=g?Un:qt;let f;e[0]!==g||e[1]!==i?(f=i(g?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=g,e[1]=i,e[2]=f):f=e[2];const m=f;let c;e[3]!==g||e[4]!==n||e[5]!==s||e[6]!==i?(c=g?o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",o.jsx("strong",{children:s}),"."]}):o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",o.jsx("strong",{children:n??s}),".",o.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=g,e[4]=n,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let u;e[8]!==h?(u=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=u):u=e[9];let p;e[10]!==m?(p=o.jsx("h3",{className:"text-lg font-medium",children:m}),e[10]=m,e[11]=p):p=e[11];let S;e[12]!==y?(S=o.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=S):S=e[13];let x;e[14]!==p||e[15]!==S?(x=o.jsxs("div",{className:"space-y-2",children:[p,S]}),e[14]=p,e[15]=S,e[16]=x):x=e[16];let b;e[17]!==l||e[18]!==a||e[19]!==s||e[20]!==i?(b=l&&a?o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o.jsx($s,{orgId:a,orgSlug:s}),o.jsx(D,{variant:"ghost",onClick:d,children:i("common.goHome")})]}):o.jsx(D,{onClick:d,children:i("common.goHome")}),e[17]=l,e[18]=a,e[19]=s,e[20]=i,e[21]=b):b=e[21];let v;return e[22]!==u||e[23]!==x||e[24]!==b?(v=o.jsxs(be,{children:[u,x,b]}),e[22]=u,e[23]=x,e[24]=b,e[25]=v):v=e[25],v}function Cs(){window.location.href="/"}function $s(t){const e=C.c(20),{orgId:s,orgSlug:a}=t,n=J(),{data:r}=se.useSession(),i=r?.user.email;let l;e[0]!==i||e[1]!==s?(l=()=>Jn(`/api/_admin/orgs/${s}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=s,e[2]=l):l=e[2];let d;e[3]!==a?(d=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=d):d=e[4];let g;e[5]!==n?(g=p=>{Z.error(p instanceof Error?p.message:n("common.noAccessScreen.adminJoinFailed"))},e[5]=n,e[6]=g):g=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[7]=l,e[8]=d,e[9]=g,e[10]=h):h=e[10];const f=nt(h);let m;e[11]!==f?(m=()=>f.mutate(),e[11]=f,e[12]=m):m=e[12];const c=!i||f.isPending;let y;e[13]!==f.isPending||e[14]!==n?(y=f.isPending?n("common.noAccessScreen.adminJoining"):n("common.noAccessScreen.adminJoin"),e[13]=f.isPending,e[14]=n,e[15]=y):y=e[15];let u;return e[16]!==m||e[17]!==c||e[18]!==y?(u=o.jsx(D,{onClick:m,disabled:c,children:y}),e[16]=m,e[17]=c,e[18]=y,e[19]=u):u=e[19],u}function Ls(t){const e=C.c(59),{invitationId:s,orgName:a,orgSlug:n,orgLogo:r}=t,i=J();let l;e[0]!==s?(l=async()=>{const I=await se.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==n?(d=()=>{Bt(),window.location.href=`/${n}`},e[2]=n,e[3]=d):d=e[3];let g;e[4]!==i?(g=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let h;e[6]!==l||e[7]!==d||e[8]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[6]=l,e[7]=d,e[8]=g,e[9]=h):h=e[9];const f=nt(h);let m;e[10]!==s?(m=async()=>{const I=await se.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=m):m=e[11];let c,y;e[12]!==i?(c=()=>{Z.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=y):(c=e[13],y=e[14]);let u;e[15]!==m||e[16]!==c||e[17]!==y?(u={mutationFn:m,onSuccess:c,onError:y},e[15]=m,e[16]=c,e[17]=y,e[18]=u):u=e[18];const p=nt(u),S=f.isPending||p.isPending;let x;e[19]!==r||e[20]!==a?(x=r?o.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Vn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=x):x=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let v;e[25]!==b?(v=o.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=v):v=e[26];let w;e[27]!==i?(w=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=w):w=e[28];let N;e[29]!==w?(N=o.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=N):N=e[30];let T;e[31]!==v||e[32]!==N?(T=o.jsxs("div",{className:"space-y-2",children:[v,N]}),e[31]=v,e[32]=N,e[33]=T):T=e[33];let j;e[34]!==f?(j=()=>f.mutate(),e[34]=f,e[35]=j):j=e[35];let P;e[36]!==f.isPending||e[37]!==i?(P=f.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=f.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==S||e[40]!==j||e[41]!==P?(_=o.jsx(D,{onClick:j,disabled:S,children:P}),e[39]=S,e[40]=j,e[41]=P,e[42]=_):_=e[42];let O;e[43]!==p?(O=()=>p.mutate(),e[43]=p,e[44]=O):O=e[44];let A;e[45]!==p.isPending||e[46]!==i?(A=p.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=p.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==S||e[49]!==O||e[50]!==A?($=o.jsx(D,{variant:"ghost",onClick:O,disabled:S,children:A}),e[48]=S,e[49]=O,e[50]=A,e[51]=$):$=e[51];let L;e[52]!==_||e[53]!==$?(L=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=L):L=e[54];let R;return e[55]!==T||e[56]!==L||e[57]!==x?(R=o.jsxs(be,{children:[x,T,L]}),e[55]=T,e[56]=L,e[57]=x,e[58]=R):R=e[58],R}function Rs(t){const e=C.c(23),{orgName:s,orgLogo:a}=t,n=J();let r;e[0]!==a||e[1]!==s?(r=a?o.jsx(ot,{url:a,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(Wn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==n?(i=n("common.requestPendingScreen.title"),e[3]=n,e[4]=i):i=e[4];let l;e[5]!==i?(l=o.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=l):l=e[6];let d;e[7]!==s||e[8]!==n?(d=n("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=n,e[9]=d):d=e[9];let g;e[10]!==d?(g=o.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=g):g=e[11];let h;e[12]!==l||e[13]!==g?(h=o.jsxs("div",{className:"space-y-2",children:[l,g]}),e[12]=l,e[13]=g,e[14]=h):h=e[14];let f;e[15]!==n?(f=n("common.goHome"),e[15]=n,e[16]=f):f=e[16];let m;e[17]!==f?(m=o.jsx(D,{variant:"ghost",onClick:zs,children:f}),e[17]=f,e[18]=m):m=e[18];let c;return e[19]!==r||e[20]!==h||e[21]!==m?(c=o.jsxs(be,{children:[r,h,m]}),e[19]=r,e[20]=h,e[21]=m,e[22]=c):c=e[22],c}function zs(){window.location.href="/"}function Ds(t){const e=C.c(45),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a?(l=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await _.json();if(!_.ok||!O.success)throw new Error(O.error??"Failed to request access");return O},e[0]=a,e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Fs,e[2]=d):d=e[2];let g;e[3]!==i?(g=_=>{Z.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let h;e[5]!==l||e[6]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[5]=l,e[6]=g,e[7]=h):h=e[7];const f=nt(h);let m;e[8]!==n||e[9]!==s?(m=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[8]=n,e[9]=s,e[10]=m):m=e[10];let c;e[11]!==s||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=c):c=e[13];let y;e[14]!==c?(y=o.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=y):y=e[15];let u;e[16]!==r||e[17]!==i?(u=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=u):u=e[18];let p;e[19]!==u?(p=o.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,e[20]=p):p=e[20];let S;e[21]!==y||e[22]!==p?(S=o.jsxs("div",{className:"space-y-2",children:[y,p]}),e[21]=y,e[22]=p,e[23]=S):S=e[23];let x;e[24]!==f?(x=()=>f.mutate(),e[24]=f,e[25]=x):x=e[25];let b;e[26]!==f.isPending||e[27]!==i?(b=f.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=f.isPending,e[27]=i,e[28]=b):b=e[28];let v;e[29]!==f.isPending||e[30]!==x||e[31]!==b?(v=o.jsx(D,{onClick:x,disabled:f.isPending,children:b}),e[29]=f.isPending,e[30]=x,e[31]=b,e[32]=v):v=e[32];const w=f.isPending;let N;e[33]!==i?(N=i("common.goHome"),e[33]=i,e[34]=N):N=e[34];let T;e[35]!==f.isPending||e[36]!==N?(T=o.jsx(D,{variant:"ghost",onClick:Ms,disabled:w,children:N}),e[35]=f.isPending,e[36]=N,e[37]=T):T=e[37];let j;e[38]!==v||e[39]!==T?(j=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,T]}),e[38]=v,e[39]=T,e[40]=j):j=e[40];let P;return e[41]!==S||e[42]!==j||e[43]!==m?(P=o.jsxs(be,{children:[m,S,j]}),e[41]=S,e[42]=j,e[43]=m,e[44]=P):P=e[44],P}function Ms(){window.location.href="/"}function Fs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function qs(t){const e=C.c(7);let s;e[0]!==t?(s=Xe.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let n;return e[4]!==s||e[5]!==a?(n={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=n):n=e[6],Kt(n)}function Bs({orgSlug:t}){const{data:e}=qs(t);if(e.status!=="member"){const s=Ht()?.org===t;s&&Ut();const a=localStorage.getItem(he.lastOrgSlug())===t;if(a&&localStorage.removeItem(he.lastOrgSlug()),(s||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?o.jsx($t,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(Ls,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(As,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?o.jsx(Ds,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?o.jsx(Rs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):o.jsx($t,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function sn(t){const e=C.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:n,title:r,description:i,icon:l,children:d,footerLeading:g,actions:h,onDismiss:f,tone:m}=t,c=m===void 0?"neutral":m,y=g||h;let u;e[0]!==c?(u=c==="system"&&o.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=u):u=e[1];let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(tn,{size:14}),e[2]=p):p=e[2];let S;e[3]!==a||e[4]!==f?(S=o.jsx(D,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:f,children:p}),e[3]=a,e[4]=f,e[5]=S):S=e[5];const x=l&&"flex items-start gap-3",b=d&&"pb-3";let v;e[6]!==x||e[7]!==b?(v=wt("p-4 pr-11",x,b),e[6]=x,e[7]=b,e[8]=v):v=e[8];let w;e[9]!==l?(w=l&&o.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:l}),e[9]=l,e[10]=w):w=e[10];let N;e[11]!==n?(N=n&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[11]=n,e[12]=N):N=e[12];let T;e[13]!==r?(T=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let j;e[15]!==i?(j=i&&o.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let P;e[17]!==T||e[18]!==j||e[19]!==N?(P=o.jsxs("div",{children:[N,T,j]}),e[17]=T,e[18]=j,e[19]=N,e[20]=P):P=e[20];let _;e[21]!==d?(_=d&&o.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let O;e[23]!==P||e[24]!==_?(O=o.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=O):O=e[25];let A;e[26]!==O||e[27]!==v||e[28]!==w?(A=o.jsxs("div",{className:v,children:[w,O]}),e[26]=O,e[27]=v,e[28]=w,e[29]=A):A=e[29];let $;e[30]!==h||e[31]!==g||e[32]!==y||e[33]!==c?($=y&&o.jsxs("div",{className:wt("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[o.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),o.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=g,e[32]=y,e[33]=c,e[34]=$):$=e[34];let L;return e[35]!==s||e[36]!==A||e[37]!==$||e[38]!==u||e[39]!==S||e[40]!==c?(L=o.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":c,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[u,S,A,$]}),e[35]=s,e[36]=A,e[37]=$,e[38]=u,e[39]=S,e[40]=c,e[41]=L):L=e[41],L}const Ks={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function on(t){return`[data-tour="${Ks[t]}"]`}const Hs=[{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 Us(t){return Hs.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 Us(e).map(s=>({element:on(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const Js=on("switcher"),Vs=30;function an(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ws(t,e){return Gs(t,e).filter(s=>typeof s.element=="string"&&an(s.element))}function Ys(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:a})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const n=document.createElement("button");n.type="button",n.className="driver-popover-footer-btn layout-tour-skip",n.textContent=t("layoutTour.skip"),n.addEventListener("click",()=>a.destroy()),s.footerButtons.insertBefore(n,s.footerButtons.firstChild)},onDestroyed:()=>{et=!1},steps:e}}let et=!1;async function Qs(){return(await bn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Xs(t,e){if(et)return;et=!0;let s=0;const a=()=>{if(!an(Js)&&s++<Vs){requestAnimationFrame(a);return}const n=Ws(t,e);if(n.length===0){et=!1;return}Qs().then(r=>{r(Ys(t,n)).drive()}).catch(()=>{et=!1})};a()}function Zs(t){return t!=="off"}function Wi(t){if(!t.hasSource)return[];const e=["site-editor"];return Zs(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function rn(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function Yi(t){return t.reportsOnly&&!t.onReportAgent&&rn(t.tabId)}const ln=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:Et,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:bt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Yn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:Pt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ie,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:Et,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ie,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ge,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:Ye,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ie,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ge,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:Ye,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ge,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ie,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:Ye,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ie,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ge,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:Ye,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ie,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ge,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:Ye,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ie,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:bt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ge,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Pt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Ye,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ge,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ie,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:bt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ie,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:Qn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],yt="studio.release-feed.v1",vt=new Set;let ye="",xe={},jt=!1;function eo(){if(jt)return ye||"{}";try{return localStorage.getItem(yt)??"{}"}catch{return ye||"{}"}}function cn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Lt(){const t=eo();return t!==ye&&(ye=t,xe=cn(t)),xe}function to(t){vt.add(t);const e=s=>{if(!(s.key!==yt&&s.key!==null)){try{const a=localStorage.getItem(yt)??"{}",r={...cn(a),...xe};xe=r,ye=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{vt.delete(t),window.removeEventListener("storage",e)}}function no(t){xe=t,ye=JSON.stringify(t);try{localStorage.setItem(yt,ye),jt=!1}catch{jt=!0}vt.forEach(e=>e())}function so(){const t=C.c(7),e=G.useSyncExternalStore(to,Lt,Lt);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,n=oo;let r;t[2]!==e?(r=ln.reduce((d,g)=>e[g.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==a||t[5]!==i?(l={isSeen:a,markSeen:n,unseenCount:i},t[4]=a,t[5]=i,t[6]=l):l=t[6],l}function oo(t){xe[t]||no({...xe,[t]:{seenAt:new Date().toISOString()}})}const Rt=new Map;function dn(t){let e=Rt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},Rt.set(t,e)),e}function io(t,e){const s=dn(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function ao(t){const e=C.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>dn(s).now,e[0]=s,e[1]=a):a=e[1];const n=a;let r;return e[2]!==s?(r=i=>io(s,i),e[2]=s,e[3]=r):r=e[3],G.useSyncExternalStore(r,n,n)}const ro=720*60*60*1e3,lo=10080*60*1e3;function co(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function uo(t){const e=ln[0];if(!e)return null;const s=co(e.date),a=t-s;return a<0||a>ro?null:e}function mo(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 fo(t,e){const s=mo(t);return s===null?!1:e-s>=lo}function go(){const t=C.c(46),e=J(),s=os(),a=wn(),n=nn(),r=!!s,i=a===re.home&&!s;let l;t[0]!==n||t[1]!==r?(l=r&&!!n&&rn(n),t[0]=n,t[1]=r,t[2]=l):l=t[2];const d=l,{data:g}=se.useSession(),{isSeen:h,markSeen:f}=so(),m=ao(6e4);let c,y,u;if(t[3]!==h||t[4]!==m||t[5]!==g?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{if(c=uo(m),!c){u=null;break e}if(!fo(g?.user?.createdAt,m)){u=null;break e}y=h(c.id)}t[3]=h,t[4]=m,t[5]=g?.user?.createdAt,t[6]=c,t[7]=y,t[8]=u}else c=t[6],y=t[7],u=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(y)return null;let p;t[9]!==c.id||t[10]!==r||t[11]!==f||t[12]!==i||t[13]!==d||t[14]!==e?(p=()=>{f(c.id),Xs(e,{onOrgHome:i,inProject:r,onSiteEditor:d})},t[9]=c.id,t[10]=r,t[11]=f,t[12]=i,t[13]=d,t[14]=e,t[15]=p):p=t[15];const S=p;let x;t[16]!==e?(x=e("announcements.release.ariaLabel"),t[16]=e,t[17]=x):x=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const v=c.eyebrow,w=c.title;let N;t[20]!==c.id||t[21]!==f?(N=()=>f(c.id),t[20]=c.id,t[21]=f,t[22]=N):N=t[22];let T;t[23]!==c.id||t[24]!==c.learnMoreHref||t[25]!==f||t[26]!==e?(T=c.learnMoreHref?o.jsx("a",{href:c.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>f(c.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=c.id,t[24]=c.learnMoreHref,t[25]=f,t[26]=e,t[27]=T):T=t[27];let j;t[28]!==c.cta||t[29]!==c.id||t[30]!==f||t[31]!==S?(j=c.cta?"href"in c.cta?o.jsx(D,{asChild:!0,size:"sm",onClick:()=>f(c.id),children:o.jsx("a",{href:c.cta.href,children:c.cta.label})}):o.jsx(D,{size:"sm",onClick:S,children:c.cta.label}):null,t[28]=c.cta,t[29]=c.id,t[30]=f,t[31]=S,t[32]=j):j=t[32];let P;t[33]!==c.bullets?(P=c.bullets.map(ho),t[33]=c.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=o.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let O;return t[37]!==c.eyebrow||t[38]!==c.title||t[39]!==j||t[40]!==_||t[41]!==x||t[42]!==b||t[43]!==N||t[44]!==T?(O=o.jsx(sn,{ariaLabel:x,dismissLabel:b,eyebrow:v,title:w,onDismiss:N,footerLeading:T,actions:j,children:_}),t[37]=c.eyebrow,t[38]=c.title,t[39]=j,t[40]=_,t[41]=x,t[42]=b,t[43]=N,t[44]=T,t[45]=O):O=t[45],O}function ho(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function po(t){const e=C.c(11),{open:s,onOpenChange:a}=t,n=J();let r;e[0]!==n?(r=n("common.keyboardShortcutsDialog.title"),e[0]=n,e[1]=r):r=e[1];let i;e[2]!==r?(i=o.jsx(Gt,{children:o.jsx(Jt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex flex-col gap-4",children:Sn.map(yo)}),e[4]=l):l=e[4];let d;e[5]!==i?(d=o.jsxs(Vt,{className:"sm:max-w-md",children:[i,l]}),e[5]=i,e[6]=d):d=e[6];let g;return e[7]!==a||e[8]!==s||e[9]!==d?(g=o.jsx(Wt,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=g):g=e[10],g}function yo(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(xo)})]},t.label)}function xo(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(bo)})]},t.description)}function bo(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const wo={xs:"xs",sm:"xs",lg:"md"};function un(t){const e=C.c(4),{org:s,size:a}=t,n=a===void 0?"sm":a,r=s.logo??void 0,i=wo[n];let l;return e[0]!==s.name||e[1]!==r||e[2]!==i?(l=o.jsx(ot,{url:r,fallback:s.name,size:i,tone:"solid"}),e[0]=s.name,e[1]=r,e[2]=i,e[3]=l):l=e[3],l}function Qi({invitation:t,onChanged:e}){const s=J(),[a,n]=G.useState(!1),r=t.organizationName??s("header.orgSwitcher.unknownOrganization"),i=async()=>{n(!0);try{const g=await se.organization.acceptInvitation({invitationId:t.id});if(g.error){Z.error(g.error.message),n(!1);return}}catch{Z.error(s("header.orgSwitcher.failedToAcceptInvitation")),n(!1);return}Z.success(s("header.orgSwitcher.joined",{name:r})),Bt();let d;try{d=(await se.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=d?`/${d}`:"/"},l=async()=>{n(!0);try{const d=await se.organization.rejectInvitation({invitationId:t.id});if(d.error){Z.error(d.error.message),n(!1);return}Z.success(s("header.orgSwitcher.invitationDeclined")),n(!1),e()}catch{Z.error(s("header.orgSwitcher.failedToDeclineInvitation")),n(!1)}};return o.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[o.jsx(un,{org:{name:r},size:"sm"}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"truncate text-sm font-medium",children:r}),o.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[o.jsx(D,{size:"sm",variant:"default",onClick:i,disabled:a,children:s("header.orgSwitcher.accept")}),o.jsx(D,{size:"icon-sm",variant:"ghost",className:"text-muted-foreground",onClick:l,disabled:a,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:r}),children:o.jsx(tn,{size:14})})]})]})}function So(t){return typeof t=="object"&&t!==null&&Array.isArray(t.items)}function vo(t){const e=C.c(13),s=t.trim(),{data:a}=se.useSession(),n=a?.user?.id??"",r=s.length>0&&!!n,i=Xe.organizationSearch(n,s);let l;e[0]!==s?(l=async S=>{const{signal:x}=S,b=await fetch(`/api/_me/organizations/search?q=${encodeURIComponent(s)}`,{signal:x});if(!b.ok)throw new Error(`Organization search failed: ${b.status}`);const v=await b.json();if(!So(v))throw new Error("Invalid organization search response");return v},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==r||e[3]!==i||e[4]!==l?(d={queryKey:i,queryFn:l,enabled:r,placeholderData:vn,staleTime:3e4,retry:!1},e[2]=r,e[3]=i,e[4]=l,e[5]=d):d=e[5];const{data:g,isFetching:h,isPlaceholderData:f,isError:m}=pe(d);let c;e[6]!==g?.items?(c=g?.items??[],e[6]=g?.items,e[7]=c):c=e[7];const y=r&&h,u=r&&f;let p;return e[8]!==m||e[9]!==c||e[10]!==y||e[11]!==u?(p={hits:c,isSearching:y,isStale:u,isError:m},e[8]=m,e[9]=c,e[10]=y,e[11]=u,e[12]=p):p=e[12],p}const jo=3,mn=10,ko=440,To=55;function Xi(t){const e=Math.floor((t-ko)/To);return Math.min(mn,Math.max(jo,e))}function No(t,e,s=mn*3,a=[]){return[...new Set([e,...a,...t])].slice(0,s)}function Po(t,e){return!e.id||t.some(s=>s.slug===e.slug)?[...t]:[...t,e]}function Zi(t,e,s,a,n=[]){if(t.length<=a)return{shown:[...t],hidden:[]};const r=new Map(t.map(l=>[l.slug,l])),i=new Set;s&&r.has(s)&&i.add(s);for(const l of n)r.has(l)&&i.add(l);for(const l of e){if(i.size>=a)break;r.has(l)&&i.add(l)}for(const l of t){if(i.size>=a)break;i.add(l.slug)}return{shown:t.filter(l=>i.has(l.slug)),hidden:t.filter(l=>!i.has(l.slug))}}const zt=[];function fn(){const t=C.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=he.recentOrgs(),t[0]=e):e=t[0];const[s,a]=Yt(e,zt),n=Array.isArray(s)?s:zt;let r;t[1]!==a?(r=(l,d)=>a(g=>No(Array.isArray(g)?g:[],l,void 0,d)),t[1]=a,t[2]=r):r=t[2];let i;return t[3]!==n||t[4]!==r?(i={recent:n,remember:r},t[3]=n,t[4]=r,t[5]=i):i=t[5],i}const gn={hidden:[],pinned:[],order:[]},st=(t,e)=>t.filter(s=>s!==e);function _o(t){if(typeof t!="object"||t===null)return gn;const e=a=>Array.isArray(a)?a.filter(n=>typeof n=="string"):[],s=t;return{hidden:e(s.hidden),pinned:e(s.pinned),order:e(s.order)}}function ea(t,e){return{...t,hidden:[...st(t.hidden,e),e],pinned:st(t.pinned,e)}}function Oo(t,e){return{...t,hidden:st(t.hidden,e)}}function ta(t,e){return t.pinned.includes(e)?{...t,pinned:st(t.pinned,e)}:{...t,hidden:st(t.hidden,e),pinned:[...t.pinned,e]}}function na(t,e,s){const a=n=>{const r=e.order.indexOf(n);return r===-1?Number.MAX_SAFE_INTEGER:r};return t.filter(n=>n.slug===s||!e.hidden.includes(n.slug)).map((n,r)=>({org:n,index:r})).sort((n,r)=>Number(e.pinned.includes(r.org.slug))-Number(e.pinned.includes(n.org.slug))||a(n.org.slug)-a(r.org.slug)||n.index-r.index).map(({org:n})=>n)}function sa(t,e,s,a){const n=e.indexOf(s),r=e.indexOf(a);if(n===-1||r===-1||n===r||t.pinned.includes(s)!==t.pinned.includes(a))return t;const i=[...e];return i.splice(n,1),i.splice(r,0,s),{...t,order:[...i,...t.order.filter(l=>!i.includes(l))]}}function Io(){const t=C.c(5),e=kt(),{remember:s}=fn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=he.railOrgPrefs(),t[0]=a):a=t[0];const[,n]=Yt(a,gn);let r;return t[1]!==e||t[2]!==s||t[3]!==n?(r=(i,l)=>{const d=l?.includes(i)??!1;n(g=>Oo(_o(g),i)),s(i,d?l:void 0),e({to:"/$org/home",params:{org:i},viewTransition:!0})},t[1]=e,t[2]=s,t[3]=n,t[4]=r):r=t[4],r}const Dt=8,Ze=["all","organizations","projects","chats","connections","actions"],Ao=5;function Mt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function Eo(t,e){const s=a=>{const n=e.indexOf(a);return n===-1?Number.POSITIVE_INFINITY:n};return[...t].sort((a,n)=>s(a.slug)-s(n.slug)||a.name.localeCompare(n.name))}function Co(t,e){const{org:s}=Tt(),a=ys({connectionId:Qt,orgId:s.id,orgSlug:s.slug}),{data:n}=pe({queryKey:Xe.globalSearch(s.id,t,Dt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:Dt}})).structuredContent?.items??[]}catch{return[]}}});return n??[]}function $o(t){const e=C.c(213),{open:s,onOpenChange:a}=t,n=J(),r=kt(),{org:i}=Tt(),{projects:l,hasProjects:d}=is(),{remember:g}=hs(i.slug),[h,f]=G.useState(""),[m,c]=G.useState("all");let y;e[0]!==m?(y=M=>m==="all"||m===M,e[0]=m,e[1]=y):y=e[1];const u=y,p=G.useDeferredValue(h),S=Co(p,u("chats")||u("connections")),x=Io(),{data:b}=jn(),{recent:v}=fn();let w;e[2]!==h?(w=h.trim(),e[2]=h,e[3]=w):w=e[3];const N=w,T=ps(N,150),{hits:j}=vo(u("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==j||e[6]!==b||e[7]!==v){const M=Eo(Po(b??[],i),v);let U;e[10]!==j?(U=new Set(j.map(Do)),e[10]=j,e[11]=U):U=e[11],P=U,_=[...M,...j.filter(Ee=>!M.some(F=>F.id===Ee.id))],e[4]=i,e[5]=j,e[6]=b,e[7]=v,e[8]=P,e[9]=_}else P=e[8],_=e[9];const O=_;let A;e[12]!==O||e[13]!==i.slug||e[14]!==m||e[15]!==N?(A=m==="all"&&!N?O.filter(M=>M.slug!==i.slug).slice(0,Ao):O,e[12]=O,e[13]=i.slug,e[14]=m,e[15]=N,e[16]=A):A=e[16];const $=A;let L;e[17]!==a?(L=()=>{a(!1),f(""),c("all")},e[17]=a,e[18]=L):L=e[18];const R=L;let I;e[19]!==m?(I=M=>{const U=Ze.indexOf(m);c(Ze[(U+M+Ze.length)%Ze.length]??"all")},e[19]=m,e[20]=I):I=e[20];const q=I;let H;e[21]!==R?(H=(M,U)=>{St("command_palette_used",{kind:U}),M(),R()},e[21]=R,e[22]=H):H=e[22];const z=H;let le;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(le=M=>{if(M.type==="connection"){if(!M.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:M.slug}});return}if(M.type==="task"){r({to:re.tasks,params:{org:i.slug,taskKey:M.key??void 0}});return}const U=Xt(i.id).id;kn(r,Tn({org:i.slug,agentId:M.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:M.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=le):le=e[26];const ee=le;let te;e[27]!==h?(te=[h],e[27]=h,e[28]=te):te=e[28];const oe=te;let ne,V,W,K,Y,Q,X,E,B,we,Se,ce,de,ue,me,fe;if(e[29]!==R||e[30]!==q||e[31]!==z||e[32]!==d||e[33]!==S||e[34]!==r||e[35]!==a||e[36]!==s||e[37]!==ee||e[38]!==i.slug||e[39]!==$||e[40]!==l||e[41]!==g||e[42]!==oe||e[43]!==m||e[44]!==P||e[45]!==u||e[46]!==n||e[47]!==h||e[48]!==x){const M=S.filter(zo),U=S.filter(Ro);let Ee;e[65]!==i.slug?(Ee={org:i.slug},e[65]=i.slug,e[66]=Ee):Ee=e[66];const F=Ee;let Ce;e[67]!==n?(Ce=n("sidebar.navDestinations.home"),e[67]=n,e[68]=Ce):Ce=e[68];let dt;e[69]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx(es,{"aria-hidden":"true"}),e[69]=dt):dt=e[69];let $e;e[70]!==F||e[71]!==Ce?($e={key:"home",label:Ce,icon:dt,to:re.home,params:F},e[70]=F,e[71]=Ce,e[72]=$e):$e=e[72];let Le;e[73]!==n?(Le=n("sidebar.navDestinations.reports"),e[73]=n,e[74]=Le):Le=e[74];let ut;e[75]===Symbol.for("react.memo_cache_sentinel")?(ut=o.jsx(ts,{"aria-hidden":"true"}),e[75]=ut):ut=e[75];let Re;e[76]!==F||e[77]!==Le?(Re={key:"reports",label:Le,icon:ut,to:re.reports,params:F},e[76]=F,e[77]=Le,e[78]=Re):Re=e[78];let ze;e[79]!==n?(ze=n("sidebar.navDestinations.tasks"),e[79]=n,e[80]=ze):ze=e[80];let mt;e[81]===Symbol.for("react.memo_cache_sentinel")?(mt=o.jsx(At,{"aria-hidden":"true"}),e[81]=mt):mt=e[81];let De;e[82]!==i.slug?(De={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=De):De=e[83];let Me;e[84]!==ze||e[85]!==De?(Me={key:"tasks",label:ze,icon:mt,to:re.tasks,params:De},e[84]=ze,e[85]=De,e[86]=Me):Me=e[86];let Fe;e[87]!==n?(Fe=n("sidebar.navDestinations.library"),e[87]=n,e[88]=Fe):Fe=e[88];let ft;e[89]===Symbol.for("react.memo_cache_sentinel")?(ft=o.jsx(ns,{"aria-hidden":"true"}),e[89]=ft):ft=e[89];let qe;e[90]!==F||e[91]!==Fe?(qe={key:"library",label:Fe,icon:ft,to:re.library,params:F},e[90]=F,e[91]=Fe,e[92]=qe):qe=e[92];let Be;e[93]!==n?(Be=n("sidebar.navDestinations.discover"),e[93]=n,e[94]=Be):Be=e[94];let gt;e[95]===Symbol.for("react.memo_cache_sentinel")?(gt=o.jsx(ss,{"aria-hidden":"true"}),e[95]=gt):gt=e[95];let Ke;e[96]!==F||e[97]!==Be?(Ke={key:"discover",label:Be,icon:gt,to:re.discover,params:F},e[96]=F,e[97]=Be,e[98]=Ke):Ke=e[98];let ht;e[99]!==$e||e[100]!==Re||e[101]!==Me||e[102]!==qe||e[103]!==Ke?(ht=[$e,Re,Me,qe,Ke],e[99]=$e,e[100]=Re,e[101]=Me,e[102]=qe,e[103]=Ke,e[104]=ht):ht=e[104];const xt=ht;V=cs,Se=s,e[105]!==R||e[106]!==a?(ce=k=>k?a(!0):R(),e[105]=R,e[106]=a,e[107]=ce):ce=e[107],e[108]!==n?(de=n("commandPalette.title"),e[108]=n,e[109]=de):de=e[109],e[110]!==n?(ue=n("commandPalette.description"),e[110]=n,e[111]=ue):ue=e[111];let He;e[112]!==m||e[113]!==n?(He=m==="all"?n("commandPalette.placeholder"):n("commandPalette.placeholderScoped",{scope:n(Mt(m)).toLowerCase()}),e[112]=m,e[113]=n,e[114]=He):He=e[114];let Ue;e[115]!==n?(Ue=n("commandPalette.placeholder"),e[115]=n,e[116]=Ue):Ue=e[116];let Ge;e[117]!==q||e[118]!==m||e[119]!==h?(Ge=k=>{if(k.key==="Tab"){k.preventDefault(),q(k.shiftKey?-1:1);return}k.key==="Backspace"&&!h&&m!=="all"&&(k.preventDefault(),c("all"))},e[117]=q,e[118]=m,e[119]=h,e[120]=Ge):Ge=e[120],e[121]!==He||e[122]!==Ue||e[123]!==Ge||e[124]!==h?(me=o.jsx(ds,{placeholder:He,"aria-label":Ue,value:h,onValueChange:f,onKeyDown:Ge}),e[121]=He,e[122]=Ue,e[123]=Ge,e[124]=h,e[125]=me):me=e[125];let Je;e[126]!==n?(Je=n("commandPalette.scope.label"),e[126]=n,e[127]=Je):Je=e[127];let Ve;e[128]!==m||e[129]!==n?(Ve=Ze.map(k=>o.jsx("button",{type:"button",role:"radio","aria-checked":m===k,tabIndex:-1,onMouseDown:Lo,onClick:()=>c(k),className:wt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",m===k?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:n(Mt(k))},k)),e[128]=m,e[129]=n,e[130]=Ve):Ve=e[130],e[131]!==Je||e[132]!==Ve?(fe=o.jsx("div",{role:"radiogroup","aria-label":Je,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ve}),e[131]=Je,e[132]=Ve,e[133]=fe):fe=e[133],ne=us,W="h-[min(420px,60vh)] max-h-none";let We;e[134]!==n?(We=n("commandPalette.empty"),e[134]=n,e[135]=We):We=e[135],e[136]!==We?(K=o.jsx(ms,{children:We}),e[136]=We,e[137]=K):K=e[137],e[138]!==z||e[139]!==i.slug||e[140]!==$||e[141]!==P||e[142]!==u||e[143]!==n||e[144]!==h||e[145]!==x?(Y=u("organizations")&&$.length>0&&o.jsx(Qe,{heading:n("commandPalette.organizations"),children:$.map(k=>o.jsxs(ae,{value:`org ${k.name} ${k.slug}`,keywords:P.has(k.id)?[h]:void 0,onSelect:()=>z(()=>x(k.slug),"organization"),children:[o.jsx(un,{org:k,size:"xs"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:k.name}),k.slug===i.slug&&o.jsx("span",{className:"text-meta shrink-0",children:n("sidebar.rail.currentOrganization")})]},`org:${k.id}`))}),e[138]=z,e[139]=i.slug,e[140]=$,e[141]=P,e[142]=u,e[143]=n,e[144]=h,e[145]=x,e[146]=Y):Y=e[146],e[147]!==xt||e[148]!==z||e[149]!==r||e[150]!==u||e[151]!==n?(Q=u("actions")&&o.jsx(Qe,{heading:n("commandPalette.goTo"),children:xt.map(k=>o.jsxs(ae,{onSelect:()=>z(()=>r({to:k.to,params:k.params}),"destination"),children:[k.icon,o.jsx("span",{children:k.label})]},k.key))}),e[147]=xt,e[148]=z,e[149]=r,e[150]=u,e[151]=n,e[152]=Q):Q=e[152],e[153]!==z||e[154]!==d||e[155]!==r||e[156]!==i.slug||e[157]!==l||e[158]!==g||e[159]!==u||e[160]!==n?(X=u("projects")&&d&&o.jsx(Qe,{heading:n("commandPalette.projects"),children:l.map(k=>o.jsxs(ae,{value:`project ${k.title}`,onSelect:()=>z(()=>{g(k.id),r({to:re.projects,params:{org:i.slug,agentId:k.id}})},"project"),children:[o.jsx(gs,{icon:k.icon,name:k.title,"aria-hidden":"true"}),o.jsx("span",{children:k.title})]},k.id))}),e[153]=z,e[154]=d,e[155]=r,e[156]=i.slug,e[157]=l,e[158]=g,e[159]=u,e[160]=n,e[161]=X):X=e[161],e[162]!==z||e[163]!==r||e[164]!==F||e[165]!==u||e[166]!==n?(E=u("actions")&&o.jsxs(Qe,{heading:n("commandPalette.actions"),children:[o.jsxs(ae,{value:n("commandPalette.newProject"),onSelect:()=>z(()=>r({to:re.home,params:F}),"new_project"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.newProject")})]}),o.jsxs(ae,{value:n("commandPalette.inviteTeammate"),onSelect:()=>z(()=>r({to:"/$org/settings/members",params:F}),"invite"),children:[o.jsx(Xn,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.inviteTeammate")})]}),o.jsxs(ae,{value:n("commandPalette.addConnection"),onSelect:()=>z(()=>r({to:"/$org/settings/connections",params:F,search:{tab:"all"}}),"add_connection"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.addConnection")})]}),o.jsxs(ae,{value:n("commandPalette.settings"),onSelect:()=>z(()=>r({to:"/$org/settings/general",params:F}),"settings"),children:[o.jsx(ls,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.settings")})]})]}),e[162]=z,e[163]=r,e[164]=F,e[165]=u,e[166]=n,e[167]=E):E=e[167],B=u("connections")&&M.length>0&&o.jsx(Qe,{heading:n("commandPalette.connections"),children:M.map(k=>o.jsxs(ae,{value:`${k.title} ${k.id}`,keywords:oe,onSelect:()=>z(()=>ee(k),"connection"),children:[o.jsx(fs,{icon:k.icon,name:k.title,size:"2xs","aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:k.title})]},`connection:${k.id}`))}),we=u("chats")&&U.length>0&&o.jsx(Qe,{heading:n("commandPalette.results"),children:U.map(k=>o.jsxs(ae,{value:`${k.title} ${k.id}`,keywords:oe,onSelect:()=>z(()=>ee(k),k.type),children:[k.type==="thread"?o.jsx(Zn,{"aria-hidden":"true"}):o.jsx(At,{"aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:k.title}),k.type==="task"&&k.key&&o.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:k.key})]},`${k.type}:${k.id}`))}),e[29]=R,e[30]=q,e[31]=z,e[32]=d,e[33]=S,e[34]=r,e[35]=a,e[36]=s,e[37]=ee,e[38]=i.slug,e[39]=$,e[40]=l,e[41]=g,e[42]=oe,e[43]=m,e[44]=P,e[45]=u,e[46]=n,e[47]=h,e[48]=x,e[49]=ne,e[50]=V,e[51]=W,e[52]=K,e[53]=Y,e[54]=Q,e[55]=X,e[56]=E,e[57]=B,e[58]=we,e[59]=Se,e[60]=ce,e[61]=de,e[62]=ue,e[63]=me,e[64]=fe}else ne=e[49],V=e[50],W=e[51],K=e[52],Y=e[53],Q=e[54],X=e[55],E=e[56],B=e[57],we=e[58],Se=e[59],ce=e[60],de=e[61],ue=e[62],me=e[63],fe=e[64];let ve;e[168]!==ne||e[169]!==W||e[170]!==K||e[171]!==Y||e[172]!==Q||e[173]!==X||e[174]!==E||e[175]!==B||e[176]!==we?(ve=o.jsxs(ne,{className:W,children:[K,Y,Q,X,E,B,we]}),e[168]=ne,e[169]=W,e[170]=K,e[171]=Y,e[172]=Q,e[173]=X,e[174]=E,e[175]=B,e[176]=we,e[177]=ve):ve=e[177];let it;e[178]===Symbol.for("react.memo_cache_sentinel")?(it=["↑","↓"],e[178]=it):it=e[178];let je;e[179]!==n?(je=n("commandPalette.hint.navigate"),e[179]=n,e[180]=je):je=e[180];let ke;e[181]!==je?(ke=o.jsx(pt,{keys:it,label:je}),e[181]=je,e[182]=ke):ke=e[182];let at;e[183]===Symbol.for("react.memo_cache_sentinel")?(at=["↵"],e[183]=at):at=e[183];let Te;e[184]!==n?(Te=n("commandPalette.hint.open"),e[184]=n,e[185]=Te):Te=e[185];let Ne;e[186]!==Te?(Ne=o.jsx(pt,{keys:at,label:Te}),e[186]=Te,e[187]=Ne):Ne=e[187];let rt;e[188]===Symbol.for("react.memo_cache_sentinel")?(rt=["Tab"],e[188]=rt):rt=e[188];let Pe;e[189]!==n?(Pe=n("commandPalette.hint.filter"),e[189]=n,e[190]=Pe):Pe=e[190];let _e;e[191]!==Pe?(_e=o.jsx(pt,{keys:rt,label:Pe}),e[191]=Pe,e[192]=_e):_e=e[192];let lt;e[193]===Symbol.for("react.memo_cache_sentinel")?(lt=["Esc"],e[193]=lt):lt=e[193];let Oe;e[194]!==n?(Oe=n("commandPalette.hint.close"),e[194]=n,e[195]=Oe):Oe=e[195];let Ie;e[196]!==Oe?(Ie=o.jsx(pt,{keys:lt,label:Oe}),e[196]=Oe,e[197]=Ie):Ie=e[197];let Ae;e[198]!==ke||e[199]!==Ne||e[200]!==_e||e[201]!==Ie?(Ae=o.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[ke,Ne,_e,Ie]}),e[198]=ke,e[199]=Ne,e[200]=_e,e[201]=Ie,e[202]=Ae):Ae=e[202];let ct;return e[203]!==V||e[204]!==Se||e[205]!==ce||e[206]!==de||e[207]!==ue||e[208]!==me||e[209]!==fe||e[210]!==ve||e[211]!==Ae?(ct=o.jsxs(V,{open:Se,onOpenChange:ce,title:de,description:ue,children:[me,fe,ve,Ae]}),e[203]=V,e[204]=Se,e[205]=ce,e[206]=de,e[207]=ue,e[208]=me,e[209]=fe,e[210]=ve,e[211]=Ae,e[212]=ct):ct=e[212],ct}function Lo(t){return t.preventDefault()}function Ro(t){return t.type!=="connection"}function zo(t){return t.type==="connection"}function Do(t){return t.id}function pt(t){const e=C.c(7),{keys:s,label:a}=t;let n;e[0]!==s?(n=s.map(Mo),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==n?(r=o.jsx("span",{className:"flex items-center gap-0.5",children:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=o.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Mo(t){return o.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const tt=new vs(!1);function Fo(){tt.set(!0)}function qo(){tt.set(!1)}function Bo(){const t=C.c(2),e=G.useSyncExternalStore(tt.subscribe,tt.get);let s;return t[0]!==e?(s=[e,tt.set],t[0]=e,t[1]=s):s=t[1],s}const Ko=300*1e3,Ho=2;function Uo(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Go(t,e){return t.count>=Ho&&t.version!==null&&t.version!==e}function Jo(){const t=C.c(31),e=J();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:Xe.appVersionCheck(),queryFn:Wo,refetchInterval:Ko,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:n}=pe(s),[r,i]=G.useState(0);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={version:null,count:0},t[1]=l):l=t[1];const[d,g]=G.useState(l);n!==r&&(i(n),g(j=>Uo(j,a,"4.576.0")));const[h,f]=G.useState(null);if(!Go(d,h))return null;let m;t[2]!==e?(m=e("announcements.version.ariaLabel"),t[2]=e,t[3]=m):m=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=t[9];let p;t[10]!==e?(p=e("announcements.version.description"),t[10]=e,t[11]=p):p=t[11];let S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(_t,{size:16}),t[12]=S):S=t[12];let x;t[13]!==d.version?(x=()=>f(d.version),t[13]=d.version,t[14]=x):x=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.576.0"}),t[15]=e,t[16]=b):b=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(_t,{size:14}),t[19]=w):w=t[19];let N;t[20]!==v?(N=o.jsxs(D,{size:"sm",onClick:Vo,children:[v,w]}),t[20]=v,t[21]=N):N=t[21];let T;return t[22]!==N||t[23]!==m||t[24]!==c||t[25]!==y||t[26]!==u||t[27]!==p||t[28]!==x||t[29]!==b?(T=o.jsx(sn,{ariaLabel:m,dismissLabel:c,eyebrow:y,title:u,description:p,icon:S,tone:"system",onDismiss:x,footerLeading:b,actions:N}),t[22]=N,t[23]=m,t[24]=c,t[25]=y,t[26]=u,t[27]=p,t[28]=x,t[29]=b,t[30]=T):T=t[30],T}function Vo(){return window.location.reload()}async function Wo(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function Yo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Qo=Date.parse("2026-07-21T00:00:00Z"),Ft=t=>Yo(he.ptBrAnnouncementSeen(t));function Xo(){const t=C.c(35),e=J(),[s,a]=Nn(),{data:n,isPending:r}=se.useSession(),i=n?.user,l=i?.id,d=i?.createdAt,g=d!=null&&new Date(d).getTime()<Qo,h=Pn()==="pt-BR",f=!r&&!!l&&g&&h&&s.language==="en"&&!Ft(l).has()&&!_n(),[m,c]=G.useState(!1),[y,u]=G.useState(!1);!m&&!r&&(c(!0),f&&l&&(Ft(l).mark(),a(ei),u(!0),St("pt_br_auto_switch_shown")));let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=z=>{St("pt_br_auto_switch_closed",{action:z}),u(!1)},t[0]=p):p=t[0];const S=p;let x;t[1]!==a?(x=()=>{a(Zo),S("switch-back")},t[1]=a,t[2]=x):x=t[2];const b=x;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=z=>!z&&S("dismiss"),t[3]=v):v=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let N;t[5]!==e?(N=e("announcements.ptBr.title"),t[5]=e,t[6]=N):N=t[6];let T;t[7]!==N?(T=o.jsx(Jt,{children:N}),t[7]=N,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let P;t[11]!==j?(P=o.jsx(On,{children:j}),t[11]=j,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=o.jsxs(Gt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let O;t[16]!==e?(O=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=O):O=t[17];let A;t[18]!==b||t[19]!==O?(A=o.jsx(D,{variant:"outline",onClick:b,children:O}),t[18]=b,t[19]=O,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>S("ok"),t[21]=$):$=t[21];let L;t[22]!==e?(L=e("announcements.ptBr.ok"),t[22]=e,t[23]=L):L=t[23];let R;t[24]!==L?(R=o.jsx(D,{onClick:$,children:L}),t[24]=L,t[25]=R):R=t[25];let I;t[26]!==A||t[27]!==R?(I=o.jsxs(In,{children:[A,R]}),t[26]=A,t[27]=R,t[28]=I):I=t[28];let q;t[29]!==I||t[30]!==_?(q=o.jsxs(Vt,{className:"sm:max-w-md",children:[w,_,I]}),t[29]=I,t[30]=_,t[31]=q):q=t[31];let H;return t[32]!==y||t[33]!==q?(H=o.jsx(Wt,{open:y,onOpenChange:v,children:q}),t[32]=y,t[33]=q,t[34]=H):H=t[34],H}function Zo(t){return{...t,language:"en"}}function ei(t){return{...t,language:"pt-BR"}}function ti(t){const e=An(t);return typeof e=="string"?e:void 0}function ni(){return ti("experiment-pipeline-check"),null}function si(t){const e=C.c(1),{activeOrg:s}=t;if(!s)return null;En(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(ni,{}),e[0]=a):a=e[0],a}function oi(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:n,opts:r,autosendValue:i}=t,l={mainpanel:void 0};s?l.virtualmcpid=s:e.virtualmcpid&&(l.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(s??d)!==d;let f,m;return r?.panel?m=r.panel:r?.newThread&&!h&&$n(e.tabId)?(m=e.tabId,l.mainpanel=e.mainpanel,f=e.sidepanel):n?(m=n.tab,n.sidepanel!==void 0&&(f=n.sidepanel),n.mainpanel!==void 0&&(l.mainpanel=n.mainpanel)):!h&&e.tabId&&!Ln(e.tabId)&&(m=e.tabId),f!==void 0&&(l.sidepanel=f),r?.autosend&&(l.autosend=i),{tabId:m,search:l}}const hn="studio:thread-layout:v4",ii=50;function pn(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function ai(t,e,s,a=ii){const n=t.filter(([r])=>r!==e);for(n.push([e,pn(s)]);n.length>a;)n.shift();return n}function Nt(){try{const t=sessionStorage.getItem(hn);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function yn(t){try{sessionStorage.setItem(hn,JSON.stringify(t))}catch{}}function ri(t,e){t&&yn(ai(Nt(),t,e))}function li(t){if(!t)return null;const e=Nt().find(([s])=>s===t);return e?pn(e[1]):null}function oa(t){if(!t)return;const e=Nt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&yn(s)}function xn(t){return{queryKey:Xe.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function ia(t){const e=C.c(10);let s;e[0]!==t?(s=xn(t),e[0]=t,e[1]=s):s=e[1];const a=pe(s);let n;e[2]!==a.data?.prompts?(n=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=n):n=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==n||e[8]!==r?(i={isLoading:a.isLoading,prompts:n,tiles:r},e[6]=a.isLoading,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function ci(t){const e=C.c(31),{orgSlug:s,orgName:a,domain:n}=t,r=J();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const l=i,d=di;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(qt,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let f;e[5]!==h?(f=o.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=f):f=e[6];let m;e[7]!==n||e[8]!==a||e[9]!==r?(m=a?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),n?` ${r("common.ssoRequiredScreen.via",{domain:n})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=n,e[8]=a,e[9]=r,e[10]=m):m=e[10];let c;e[11]!==m?(c=o.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[11]=m,e[12]=c):c=e[12];let y;e[13]!==f||e[14]!==c?(y=o.jsxs("div",{className:"space-y-2",children:[f,c]}),e[13]=f,e[14]=c,e[15]=y):y=e[15];let u;e[16]!==r?(u=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=u):u=e[17];let p;e[18]!==l||e[19]!==u?(p=o.jsx(D,{onClick:l,children:u}),e[18]=l,e[19]=u,e[20]=p):p=e[20];let S;e[21]!==r?(S=r("common.goBack"),e[21]=r,e[22]=S):S=e[22];let x;e[23]!==S?(x=o.jsx(D,{variant:"ghost",onClick:d,children:S}),e[23]=S,e[24]=x):x=e[24];let b;e[25]!==x||e[26]!==p?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,x]}),e[25]=x,e[26]=p,e[27]=b):b=e[27];let v;return e[28]!==b||e[29]!==y?(v=o.jsxs(be,{children:[g,y,b]}),e[28]=b,e[29]=y,e[30]=v):v=e[30],v}function di(){window.location.href="/"}function ui(t){const e=C.c(27),{notice:s,orgSlug:a}=t,n=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:o.jsx(Rn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==s.title?(i=o.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let l;e[3]!==s.message?(l=o.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=l):l=e[4];let d;e[5]!==i||e[6]!==l?(d=o.jsxs("div",{className:"space-y-2",children:[i,l]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let g;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(g=s.ctaUrl&&s.ctaLabel?o.jsx(D,{asChild:!0,children:o.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=g):g=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let f;e[11]!==n?(f=n("common.blockedOrgScreen.goToBilling"),e[11]=n,e[12]=f):f=e[12];let m;e[13]!==h||e[14]!==f?(m=o.jsx(D,{variant:"outline",asChild:!0,children:o.jsx("a",{href:h,children:f})}),e[13]=h,e[14]=f,e[15]=m):m=e[15];let c;e[16]!==n?(c=n("common.blockedOrgScreen.switchOrg"),e[16]=n,e[17]=c):c=e[17];let y;e[18]!==c?(y=o.jsx(D,{variant:"ghost",asChild:!0,children:o.jsx("a",{href:"/",children:c})}),e[18]=c,e[19]=y):y=e[19];let u;e[20]!==y||e[21]!==g||e[22]!==m?(u=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,m,y]}),e[20]=y,e[21]=g,e[22]=m,e[23]=u):u=e[23];let p;return e[24]!==u||e[25]!==d?(p=o.jsxs(be,{children:[r,d,u]}),e[24]=u,e[25]=d,e[26]=p):p=e[26],p}function mi(t){const e=C.c(8);let s;e[0]!==t?(s=Xe.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const n=!!t;let r;return e[4]!==s||e[5]!==a||e[6]!==n?(r={queryKey:s,queryFn:a,enabled:n,staleTime:6e4},e[4]=s,e[5]=a,e[6]=n,e[7]=r):r=e[7],pe(r)}const fi="/settings/infra-billing";function gi(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(fi)}function hi(t){const e=C.c(7),{org:s,children:a}=t;let n;e[0]!==s.id||e[1]!==s.name?(n={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=n):n=e[2];const r=n;let i;return e[3]!==a||e[4]!==s||e[5]!==r?(i=o.jsx(Hn,{org:s,project:r,children:a}),e[3]=a,e[4]=s,e[5]=r,e[6]=i):i=e[6],i}function pi(){const t=kt(),e=js(),{org:s}=Tt(),a=zn({strict:!1}),n=nn(),{openPanel:r,closePanel:i}=as(),l=Ns(),d=Ps(),g=_s(),h=Os(),f=(u,p=!0)=>t({to:".",search:u,replace:p}),m=()=>f(u=>({...u,sidepanel:!0})),c=(u,p,S)=>{const x=!!d&&d===u;d&&!x&&ri(d,{tab:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const b=x?null:li(u),v=Xt(s.id).id,w=oi({prev:{virtualmcpid:l,tabId:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:p,decopilotId:v,savedLayout:b,opts:S,autosendValue:rs});return h(u,()=>w.search,{virtualMcpId:p,view:{tabId:w.tabId}})};return{openSidePanel:m,setTaskId:c,createNewTask:async(u,p,S)=>{const x=crypto.randomUUID(),b=u??g;try{await e?.create({id:x,virtual_mcp_id:b,...p?{branch:p}:{}})}catch{}c(x,b,{...S,newThread:!0})},openTab:r,closeTab:i}}const yi=new Set(["/$org/","/$org/home"]);function xi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:bi},t[0]=e):e=t[0],Zt(e)}function bi(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&yi.has(e)}function wi(){const t=C.c(54);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=Dn(e)?.params.org,[n,r]=G.useState(!1),[i,l]=Bo(),[d,g]=bs(),h=Mn(),f=xi(),m=a??"";let c;t[1]!==m?(c=xn(m),t[1]=m,t[2]=c):c=t[2];const y=!!a&&f;let u;t[3]!==c||t[4]!==y?(u={...c,enabled:y},t[3]=c,t[4]=y,t[5]=u):u=t[5],pe(u);const{data:p}=se.useSession(),S=p?.user?.id;let x,b;t[6]!==h?(x=()=>{const E=B=>{if(It(B)&&B.code==="KeyK"){B.preventDefault(),Fo();return}if(B.key==="?"&&!Kn(B.target)){B.preventDefault(),r(!0);return}It(B)&&B.code==="BracketLeft"&&h.history.canGoBack()&&(B.preventDefault(),h.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},b=[h],t[6]=h,t[7]=x,t[8]=b):(x=t[7],b=t[8]),G.useEffect(x,b);let v;t[9]!==a||t[10]!==S?(v=Fn(a,S),t[9]=a,t[10]=S,t[11]=v):v=t[11];const{data:w}=Kt(v),N=w?.id,T=w?.slug,{data:j}=Is(N,T),P=!!j?.ssoRequired&&!j.authenticated,{data:_}=mi(T);let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O={select:Si},t[12]=O):O=t[12];const A=Zt(O),$=_?.severity==="block"&&!gi(A),L=N??"",R=T??"";let I;t[13]!==R||t[14]!==L?(I=xs({connectionId:Qt,orgId:L,orgSlug:R}),t[13]=R,t[14]=L,t[15]=I):I=t[15];const q=!!N&&!!T;let H;if(t[16]!==I||t[17]!==q?(H={...I,enabled:q},t[16]=I,t[17]=q,t[18]=H):H=t[18],pe(H),(!w||Ot(w)||P||$)&&qo(),!w){let E;return t[19]!==a?(E=o.jsx(Bs,{orgSlug:a}),t[19]=a,t[20]=E):E=t[20],E}if(Ot(w)){localStorage.getItem(he.lastOrgSlug())===a&&localStorage.removeItem(he.lastOrgSlug()),Ht()?.org===a&&Ut();let E;return t[21]!==w.name?(E=o.jsx(qn,{orgName:w.name}),t[21]=w.name,t[22]=E):E=t[22],E}if($&&_){let E;return t[23]!==w.slug||t[24]!==_?(E=o.jsx(ui,{notice:_,orgSlug:w.slug}),t[23]=w.slug,t[24]=_,t[25]=E):E=t[25],E}if(P){let E;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==j.domain?(E=o.jsx(ci,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:j.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=j.domain,t[30]=E):E=t[30],E}const le=w.logo??null;let ee;t[31]!==w||t[32]!==le?(ee={...w,logo:le},t[31]=w,t[32]=le,t[33]=ee):ee=t[33];let te;t[34]!==w?(te=o.jsx(si,{activeOrg:w}),t[34]=w,t[35]=te):te=t[35];let oe;t[36]===Symbol.for("react.memo_cache_sentinel")?(oe=o.jsx(Bn,{}),t[36]=oe):oe=t[36];let ne;t[37]===Symbol.for("react.memo_cache_sentinel")?(ne=o.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[o.jsx(go,{}),o.jsx(Jo,{})]}),t[37]=ne):ne=t[37];let V;t[38]!==i||t[39]!==l?(V=i&&o.jsx($o,{open:i,onOpenChange:l}),t[38]=i,t[39]=l,t[40]=V):V=t[40];let W;t[41]!==d||t[42]!==g?(W=d&&o.jsx(ws,{open:!0,onOpenChange:g,source:Ss()}),t[41]=d,t[42]=g,t[43]=W):W=t[43];let K;t[44]!==n?(K=o.jsx(po,{open:n,onOpenChange:r}),t[44]=n,t[45]=K):K=t[45];let Y,Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx(Xo,{}),Q=o.jsx(ks,{}),t[46]=Y,t[47]=Q):(Y=t[46],Q=t[47]);let X;return t[48]!==ee||t[49]!==te||t[50]!==V||t[51]!==W||t[52]!==K?(X=o.jsxs(hi,{org:ee,children:[te,oe,ne,V,W,K,Y,Q]}),t[48]=ee,t[49]=te,t[50]=V,t[51]=W,t[52]=K,t[53]=X):X=t[53],X}function Si(t){return t.location.pathname}function vi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Ts,{children:o.jsx(wi,{})}),t[0]=e):e=t[0],e}const aa=Object.freeze(Object.defineProperty({__proto__:null,default:vi,usePanelActions:pi},Symbol.toStringTag,{value:"Module"}));export{gn as E,Qi as I,Ks as L,un as O,vo as a,fn as b,Io as c,Zi as d,na as e,Xi as f,pi as g,ea as h,rn as i,ao as j,oa as k,Zs as l,sa as m,ia as n,Fo as o,Wi as p,aa as q,_o as r,Yi as s,ta as t,mi as u,Po as w};
1
+ import{c as C,b as J,e as nt,j as o,B as D,t as Z,o as ot,c_ as be,af as qt,a as se,M as Bt,V as Kt,K as Xe,c$ as Ht,d0 as Ut,as as he,m as wt,b8 as bn,C as Pt,r as G,ad as wn,ae as re,d1 as Sn,w as Gt,x as Jt,v as Vt,D as Wt,i as pe,d2 as vn,aq as Yt,d as kt,a4 as Tt,H as jn,T as Qt,E as St,aR as Xt,d3 as kn,aX as Tn,b2 as _t,J as Nn,d4 as Pn,cb as _n,aS as On,y as In,d5 as An,d6 as En,d7 as Cn,d8 as $n,d9 as Ln,a5 as Rn,u as zn,a6 as Dn,da as Mn,db as Fn,l as Zt,dc as Ot,dd as qn,O as Bn,aZ as It,de as Kn,a0 as Hn}from"./index-XdUWZF5g.js";import{t as en}from"./Globe04-1JEh9zst.js";import{i as Un,s as ie}from"./UserSquare-DfCEdLMW.js";import{u as Gn}from"./use-deployment-admin-CALPlo_8.js";import{a as Jn}from"./admin-fetch-BhTJlAsX.js";import{ax as Vn,S as Wn,G as bt,a7 as Yn,I as Qn,ay as Xn,az as Zn,n as At,h as es,aA as ts,m as ns,aB as ss}from"./agent-icon-DmYd33Zd.js";import{s as tn}from"./XClose-B9seet19.js";import{u as os,a as is}from"./use-project-scope-C1eT4xwT.js";import{u as nn,a as as,A as rs}from"./autosend-0p4cszrD.js";import{i as ge}from"./CheckCircle-BAqlx5xq.js";import{i as Et}from"./Monitor01-DkdtFPE6.js";import{i as Ye}from"./Zap-B2TeJ3jk.js";import{s as Ct}from"./Plus-BhSB1FAc.js";import{a as ls}from"./Tool01-CE4RsL2T.js";import{e as Qe,b as ae,d as cs,a as ds,c as us,C as ms}from"./command-8eo7blzl.js";import{I as fs}from"./integration-icon-DpoZYM7e.js";import{P as gs}from"./project-icon-BhWIi9DN.js";import{a as hs}from"./use-navigate-to-agent-ycEqYJX7.js";import{u as ps}from"./use-debounced-value-Cs49dczG.js";import{a as ys,m as xs}from"./use-mcp-client-B9_8tfCL.js";import{u as bs,a as ws,n as Ss}from"./new-project-dialog-151PED_m.js";import{S as vs,u as js}from"./thread-intent-DnduoWYb.js";import{L as ks}from"./legacy-admin-welcome-dialog-D12aat8e.js";import{R as Ts}from"./required-auth-layout-CRKzQVpv.js";import{u as Ns,a as Ps,b as _s,c as Os}from"./thread-route-DSQLBJ4Y.js";import{u as Is}from"./use-org-sso-B5c0saDF.js";function As(t){const e=C.c(49),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a||e[1]!==i?(l=async()=>{const O=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),A=await O.json();if(!O.ok||!A.success)throw new Error(A.error??i("common.autoDomainJoinScreen.joinError"));return A},e[0]=a,e[1]=i,e[2]=l):l=e[2];let d;e[3]!==a?(d=O=>{window.location.href=`/${O.slug??a}`},e[3]=a,e[4]=d):d=e[4];let g;e[5]!==i?(g=O=>{Z.error(O instanceof Error?O.message:i("common.autoDomainJoinScreen.joinError"))},e[5]=i,e[6]=g):g=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[7]=l,e[8]=d,e[9]=g,e[10]=h):h=e[10];const f=nt(h),m=Es;let c;e[11]!==n||e[12]!==s?(c=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[11]=n,e[12]=s,e[13]=c):c=e[13];let y;e[14]!==s||e[15]!==i?(y=i("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=i,e[16]=y):y=e[16];let u;e[17]!==y?(u=o.jsx("h3",{className:"text-lg font-medium",children:y}),e[17]=y,e[18]=u):u=e[18];let p;e[19]!==r||e[20]!==i?(p=i("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=i,e[21]=p):p=e[21];let S;e[22]!==p?(S=o.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[22]=p,e[23]=S):S=e[23];let x;e[24]!==u||e[25]!==S?(x=o.jsxs("div",{className:"space-y-2",children:[u,S]}),e[24]=u,e[25]=S,e[26]=x):x=e[26];let b;e[27]!==f?(b=()=>f.mutate(),e[27]=f,e[28]=b):b=e[28];let v;e[29]!==f.isPending||e[30]!==s||e[31]!==i?(v=f.isPending?i("common.autoDomainJoinScreen.joining"):i("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=f.isPending,e[30]=s,e[31]=i,e[32]=v):v=e[32];let w;e[33]!==f.isPending||e[34]!==b||e[35]!==v?(w=o.jsx(D,{onClick:b,disabled:f.isPending,children:v}),e[33]=f.isPending,e[34]=b,e[35]=v,e[36]=w):w=e[36];const N=f.isPending;let T;e[37]!==i?(T=i("common.goHome"),e[37]=i,e[38]=T):T=e[38];let j;e[39]!==f.isPending||e[40]!==T?(j=o.jsx(D,{variant:"ghost",onClick:m,disabled:N,children:T}),e[39]=f.isPending,e[40]=T,e[41]=j):j=e[41];let P;e[42]!==w||e[43]!==j?(P=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[w,j]}),e[42]=w,e[43]=j,e[44]=P):P=e[44];let _;return e[45]!==x||e[46]!==P||e[47]!==c?(_=o.jsxs(be,{children:[c,x,P]}),e[45]=x,e[46]=P,e[47]=c,e[48]=_):_=e[48],_}function Es(){window.location.href="/"}function $t(t){const e=C.c(26),{orgSlug:s,orgId:a,orgName:n,reason:r}=t,i=J(),{isAdmin:l}=Gn(),d=Cs,g=r==="not-found",h=g?Un:qt;let f;e[0]!==g||e[1]!==i?(f=i(g?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=g,e[1]=i,e[2]=f):f=e[2];const m=f;let c;e[3]!==g||e[4]!==n||e[5]!==s||e[6]!==i?(c=g?o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.couldNotFind")," ",o.jsx("strong",{children:s}),"."]}):o.jsxs(o.Fragment,{children:[i("common.noAccessScreen.noAccessTo")," ",o.jsx("strong",{children:n??s}),".",o.jsx("br",{}),i("common.noAccessScreen.askAdminToInvite")]}),e[3]=g,e[4]=n,e[5]=s,e[6]=i,e[7]=c):c=e[7];const y=c;let u;e[8]!==h?(u=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(h,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=h,e[9]=u):u=e[9];let p;e[10]!==m?(p=o.jsx("h3",{className:"text-lg font-medium",children:m}),e[10]=m,e[11]=p):p=e[11];let S;e[12]!==y?(S=o.jsx("p",{className:"text-sm text-muted-foreground",children:y}),e[12]=y,e[13]=S):S=e[13];let x;e[14]!==p||e[15]!==S?(x=o.jsxs("div",{className:"space-y-2",children:[p,S]}),e[14]=p,e[15]=S,e[16]=x):x=e[16];let b;e[17]!==l||e[18]!==a||e[19]!==s||e[20]!==i?(b=l&&a?o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[o.jsx($s,{orgId:a,orgSlug:s}),o.jsx(D,{variant:"ghost",onClick:d,children:i("common.goHome")})]}):o.jsx(D,{onClick:d,children:i("common.goHome")}),e[17]=l,e[18]=a,e[19]=s,e[20]=i,e[21]=b):b=e[21];let v;return e[22]!==u||e[23]!==x||e[24]!==b?(v=o.jsxs(be,{children:[u,x,b]}),e[22]=u,e[23]=x,e[24]=b,e[25]=v):v=e[25],v}function Cs(){window.location.href="/"}function $s(t){const e=C.c(20),{orgId:s,orgSlug:a}=t,n=J(),{data:r}=se.useSession(),i=r?.user.email;let l;e[0]!==i||e[1]!==s?(l=()=>Jn(`/api/_admin/orgs/${s}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:i,role:"admin"})}),e[0]=i,e[1]=s,e[2]=l):l=e[2];let d;e[3]!==a?(d=()=>{window.location.href=`/${a}`},e[3]=a,e[4]=d):d=e[4];let g;e[5]!==n?(g=p=>{Z.error(p instanceof Error?p.message:n("common.noAccessScreen.adminJoinFailed"))},e[5]=n,e[6]=g):g=e[6];let h;e[7]!==l||e[8]!==d||e[9]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[7]=l,e[8]=d,e[9]=g,e[10]=h):h=e[10];const f=nt(h);let m;e[11]!==f?(m=()=>f.mutate(),e[11]=f,e[12]=m):m=e[12];const c=!i||f.isPending;let y;e[13]!==f.isPending||e[14]!==n?(y=f.isPending?n("common.noAccessScreen.adminJoining"):n("common.noAccessScreen.adminJoin"),e[13]=f.isPending,e[14]=n,e[15]=y):y=e[15];let u;return e[16]!==m||e[17]!==c||e[18]!==y?(u=o.jsx(D,{onClick:m,disabled:c,children:y}),e[16]=m,e[17]=c,e[18]=y,e[19]=u):u=e[19],u}function Ls(t){const e=C.c(59),{invitationId:s,orgName:a,orgSlug:n,orgLogo:r}=t,i=J();let l;e[0]!==s?(l=async()=>{const I=await se.organization.acceptInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==n?(d=()=>{Bt(),window.location.href=`/${n}`},e[2]=n,e[3]=d):d=e[3];let g;e[4]!==i?(g=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToAccept"))},e[4]=i,e[5]=g):g=e[5];let h;e[6]!==l||e[7]!==d||e[8]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[6]=l,e[7]=d,e[8]=g,e[9]=h):h=e[9];const f=nt(h);let m;e[10]!==s?(m=async()=>{const I=await se.organization.rejectInvitation({invitationId:s});if(I.error)throw new Error(I.error.message);return I.data},e[10]=s,e[11]=m):m=e[11];let c,y;e[12]!==i?(c=()=>{Z.success(i("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},y=I=>{Z.error(I instanceof Error?I.message:i("common.pendingInviteScreen.failedToDecline"))},e[12]=i,e[13]=c,e[14]=y):(c=e[13],y=e[14]);let u;e[15]!==m||e[16]!==c||e[17]!==y?(u={mutationFn:m,onSuccess:c,onError:y},e[15]=m,e[16]=c,e[17]=y,e[18]=u):u=e[18];const p=nt(u),S=f.isPending||p.isPending;let x;e[19]!==r||e[20]!==a?(x=r?o.jsx(ot,{url:r,fallback:a,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Vn,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=a,e[21]=x):x=e[21];let b;e[22]!==a||e[23]!==i?(b=i("common.pendingInviteScreen.invitedTo",{orgName:a}),e[22]=a,e[23]=i,e[24]=b):b=e[24];let v;e[25]!==b?(v=o.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=v):v=e[26];let w;e[27]!==i?(w=i("common.pendingInviteScreen.acceptDescription"),e[27]=i,e[28]=w):w=e[28];let N;e[29]!==w?(N=o.jsx("p",{className:"text-sm text-muted-foreground",children:w}),e[29]=w,e[30]=N):N=e[30];let T;e[31]!==v||e[32]!==N?(T=o.jsxs("div",{className:"space-y-2",children:[v,N]}),e[31]=v,e[32]=N,e[33]=T):T=e[33];let j;e[34]!==f?(j=()=>f.mutate(),e[34]=f,e[35]=j):j=e[35];let P;e[36]!==f.isPending||e[37]!==i?(P=f.isPending?i("common.pendingInviteScreen.acceptingButton"):i("common.pendingInviteScreen.acceptButton"),e[36]=f.isPending,e[37]=i,e[38]=P):P=e[38];let _;e[39]!==S||e[40]!==j||e[41]!==P?(_=o.jsx(D,{onClick:j,disabled:S,children:P}),e[39]=S,e[40]=j,e[41]=P,e[42]=_):_=e[42];let O;e[43]!==p?(O=()=>p.mutate(),e[43]=p,e[44]=O):O=e[44];let A;e[45]!==p.isPending||e[46]!==i?(A=p.isPending?i("common.pendingInviteScreen.decliningButton"):i("common.pendingInviteScreen.declineButton"),e[45]=p.isPending,e[46]=i,e[47]=A):A=e[47];let $;e[48]!==S||e[49]!==O||e[50]!==A?($=o.jsx(D,{variant:"ghost",onClick:O,disabled:S,children:A}),e[48]=S,e[49]=O,e[50]=A,e[51]=$):$=e[51];let L;e[52]!==_||e[53]!==$?(L=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,$]}),e[52]=_,e[53]=$,e[54]=L):L=e[54];let R;return e[55]!==T||e[56]!==L||e[57]!==x?(R=o.jsxs(be,{children:[x,T,L]}),e[55]=T,e[56]=L,e[57]=x,e[58]=R):R=e[58],R}function Rs(t){const e=C.c(23),{orgName:s,orgLogo:a}=t,n=J();let r;e[0]!==a||e[1]!==s?(r=a?o.jsx(ot,{url:a,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(Wn,{className:"h-6 w-6 text-primary"})}),e[0]=a,e[1]=s,e[2]=r):r=e[2];let i;e[3]!==n?(i=n("common.requestPendingScreen.title"),e[3]=n,e[4]=i):i=e[4];let l;e[5]!==i?(l=o.jsx("h3",{className:"text-lg font-medium",children:i}),e[5]=i,e[6]=l):l=e[6];let d;e[7]!==s||e[8]!==n?(d=n("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=n,e[9]=d):d=e[9];let g;e[10]!==d?(g=o.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=g):g=e[11];let h;e[12]!==l||e[13]!==g?(h=o.jsxs("div",{className:"space-y-2",children:[l,g]}),e[12]=l,e[13]=g,e[14]=h):h=e[14];let f;e[15]!==n?(f=n("common.goHome"),e[15]=n,e[16]=f):f=e[16];let m;e[17]!==f?(m=o.jsx(D,{variant:"ghost",onClick:zs,children:f}),e[17]=f,e[18]=m):m=e[18];let c;return e[19]!==r||e[20]!==h||e[21]!==m?(c=o.jsxs(be,{children:[r,h,m]}),e[19]=r,e[20]=h,e[21]=m,e[22]=c):c=e[22],c}function zs(){window.location.href="/"}function Ds(t){const e=C.c(45),{orgName:s,orgSlug:a,orgLogo:n,domain:r}=t,i=J();let l;e[0]!==a?(l=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:a})}),O=await _.json();if(!_.ok||!O.success)throw new Error(O.error??"Failed to request access");return O},e[0]=a,e[1]=l):l=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Fs,e[2]=d):d=e[2];let g;e[3]!==i?(g=_=>{Z.error(_ instanceof Error?_.message:i("common.requestToJoinScreen.failedToRequest"))},e[3]=i,e[4]=g):g=e[4];let h;e[5]!==l||e[6]!==g?(h={mutationFn:l,onSuccess:d,onError:g},e[5]=l,e[6]=g,e[7]=h):h=e[7];const f=nt(h);let m;e[8]!==n||e[9]!==s?(m=n?o.jsx(ot,{url:n,fallback:s,shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(en,{className:"h-6 w-6 text-primary"})}),e[8]=n,e[9]=s,e[10]=m):m=e[10];let c;e[11]!==s||e[12]!==i?(c=i("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=i,e[13]=c):c=e[13];let y;e[14]!==c?(y=o.jsx("h3",{className:"text-lg font-medium",children:c}),e[14]=c,e[15]=y):y=e[15];let u;e[16]!==r||e[17]!==i?(u=i("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=i,e[18]=u):u=e[18];let p;e[19]!==u?(p=o.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[19]=u,e[20]=p):p=e[20];let S;e[21]!==y||e[22]!==p?(S=o.jsxs("div",{className:"space-y-2",children:[y,p]}),e[21]=y,e[22]=p,e[23]=S):S=e[23];let x;e[24]!==f?(x=()=>f.mutate(),e[24]=f,e[25]=x):x=e[25];let b;e[26]!==f.isPending||e[27]!==i?(b=f.isPending?i("common.requestToJoinScreen.requesting"):i("common.requestToJoinScreen.requestButton"),e[26]=f.isPending,e[27]=i,e[28]=b):b=e[28];let v;e[29]!==f.isPending||e[30]!==x||e[31]!==b?(v=o.jsx(D,{onClick:x,disabled:f.isPending,children:b}),e[29]=f.isPending,e[30]=x,e[31]=b,e[32]=v):v=e[32];const w=f.isPending;let N;e[33]!==i?(N=i("common.goHome"),e[33]=i,e[34]=N):N=e[34];let T;e[35]!==f.isPending||e[36]!==N?(T=o.jsx(D,{variant:"ghost",onClick:Ms,disabled:w,children:N}),e[35]=f.isPending,e[36]=N,e[37]=T):T=e[37];let j;e[38]!==v||e[39]!==T?(j=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[v,T]}),e[38]=v,e[39]=T,e[40]=j):j=e[40];let P;return e[41]!==S||e[42]!==j||e[43]!==m?(P=o.jsxs(be,{children:[m,S,j]}),e[41]=S,e[42]=j,e[43]=m,e[44]=P):P=e[44],P}function Ms(){window.location.href="/"}function Fs(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function qs(t){const e=C.c(7);let s;e[0]!==t?(s=Xe.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const r=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!r.ok)throw new Error(`org-access-status failed (${r.status})`);return await r.json()},e[2]=t,e[3]=a):a=e[3];let n;return e[4]!==s||e[5]!==a?(n={queryKey:s,queryFn:a,refetchOnWindowFocus:!1},e[4]=s,e[5]=a,e[6]=n):n=e[6],Kt(n)}function Bs({orgSlug:t}){const{data:e}=qs(t);if(e.status!=="member"){const s=Ht()?.org===t;s&&Ut();const a=localStorage.getItem(he.lastOrgSlug())===t;if(a&&localStorage.removeItem(he.lastOrgSlug()),(s||a)&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?o.jsx($t,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(Ls,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(As,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?o.jsx(Ds,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?o.jsx(Rs,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):o.jsx($t,{orgSlug:t,orgId:e.organization.id,orgName:e.organization.name,reason:"no-access"})}function sn(t){const e=C.c(42),{ariaLabel:s,dismissLabel:a,eyebrow:n,title:r,description:i,icon:l,children:d,footerLeading:g,actions:h,onDismiss:f,tone:m}=t,c=m===void 0?"neutral":m,y=g||h;let u;e[0]!==c?(u=c==="system"&&o.jsx("div",{className:"h-0.5 bg-special"}),e[0]=c,e[1]=u):u=e[1];let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(tn,{size:14}),e[2]=p):p=e[2];let S;e[3]!==a||e[4]!==f?(S=o.jsx(D,{size:"icon-sm",variant:"ghost","aria-label":a,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:f,children:p}),e[3]=a,e[4]=f,e[5]=S):S=e[5];const x=l&&"flex items-start gap-3",b=d&&"pb-3";let v;e[6]!==x||e[7]!==b?(v=wt("p-4 pr-11",x,b),e[6]=x,e[7]=b,e[8]=v):v=e[8];let w;e[9]!==l?(w=l&&o.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:l}),e[9]=l,e[10]=w):w=e[10];let N;e[11]!==n?(N=n&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[11]=n,e[12]=N):N=e[12];let T;e[13]!==r?(T=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=T):T=e[14];let j;e[15]!==i?(j=i&&o.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:i}),e[15]=i,e[16]=j):j=e[16];let P;e[17]!==T||e[18]!==j||e[19]!==N?(P=o.jsxs("div",{children:[N,T,j]}),e[17]=T,e[18]=j,e[19]=N,e[20]=P):P=e[20];let _;e[21]!==d?(_=d&&o.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let O;e[23]!==P||e[24]!==_?(O=o.jsxs("div",{className:"min-w-0 flex-1",children:[P,_]}),e[23]=P,e[24]=_,e[25]=O):O=e[25];let A;e[26]!==O||e[27]!==v||e[28]!==w?(A=o.jsxs("div",{className:v,children:[w,O]}),e[26]=O,e[27]=v,e[28]=w,e[29]=A):A=e[29];let $;e[30]!==h||e[31]!==g||e[32]!==y||e[33]!==c?($=y&&o.jsxs("div",{className:wt("flex items-center justify-between gap-3 px-4 py-2.5",c==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[o.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:g}),o.jsx("div",{className:"flex shrink-0 items-center gap-2",children:h})]}),e[30]=h,e[31]=g,e[32]=y,e[33]=c,e[34]=$):$=e[34];let L;return e[35]!==s||e[36]!==A||e[37]!==$||e[38]!==u||e[39]!==S||e[40]!==c?(L=o.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":c,className:"relative w-full overflow-hidden rounded-lg bg-popover shadow-soft animate-in fade-in slide-in-from-bottom-2 duration-300",children:[u,S,A,$]}),e[35]=s,e[36]=A,e[37]=$,e[38]=u,e[39]=S,e[40]=c,e[41]=L):L=e[41],L}const Ks={switcher:"tour-layout-switcher",nav:"tour-layout-nav",tasks:"tour-layout-tasks",projects:"tour-layout-projects",account:"tour-layout-account",recentActivity:"tour-layout-recent-activity",siteEditor:"tour-layout-site-editor",surfaceTabs:"tour-layout-surface-tabs",branchPicker:"tour-layout-branch-picker",automations:"tour-layout-automations",settings:"tour-layout-settings"};function on(t){return`[data-tour="${Ks[t]}"]`}const Hs=[{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 Us(t){return Hs.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 Us(e).map(s=>({element:on(s.anchor),popover:{title:t(s.titleKey),description:t(s.descKey),side:s.side,align:"center"}}))}const Js=on("switcher"),Vs=30;function an(t){const e=document.querySelector(t);return e instanceof HTMLElement&&e.offsetParent!==null}function Ws(t,e){return Gs(t,e).filter(s=>typeof s.element=="string"&&an(s.element))}function Ys(t,e){return{showProgress:!0,progressText:t("layoutTour.progress"),nextBtnText:t("layoutTour.next"),prevBtnText:t("layoutTour.prev"),doneBtnText:t("layoutTour.done"),showButtons:["next","previous"],smoothScroll:!0,allowClose:!0,disableActiveInteraction:!0,stagePadding:6,stageRadius:8,waitForElement:0,skipMissingElement:!0,popoverClass:"layout-tour-popover",onPopoverRender:(s,{driver:a})=>{if(s.footerButtons.querySelector(".layout-tour-skip"))return;const n=document.createElement("button");n.type="button",n.className="driver-popover-footer-btn layout-tour-skip",n.textContent=t("layoutTour.skip"),n.addEventListener("click",()=>a.destroy()),s.footerButtons.insertBefore(n,s.footerButtons.firstChild)},onDestroyed:()=>{et=!1},steps:e}}let et=!1;async function Qs(){return(await bn(()=>import("./driver.js-Dj4CfABu.js"),[])).driver}function Xs(t,e){if(et)return;et=!0;let s=0;const a=()=>{if(!an(Js)&&s++<Vs){requestAnimationFrame(a);return}const n=Ws(t,e);if(n.length===0){et=!1;return}Qs().then(r=>{r(Ys(t,n)).drive()}).catch(()=>{et=!1})};a()}function Zs(t){return t!=="off"}function Wi(t){if(!t.hasSource)return[];const e=["site-editor"];return Zs(t.cmsMode)&&e.push("content"),t.runtime==="sandbox"&&e.push("code"),e}function rn(t){return t==="site-editor"||t==="content"||t==="code"||t.startsWith("code:")}function Yi(t){return t.reportsOnly&&!t.onReportAgent&&rn(t.tabId)}const ln=[{id:"new-layout",date:"2026-09-22",eyebrow:"Now Available",title:"New Layout",bullets:[{icon:Et,title:"Unified page headers",body:"Every page now has a clear header with navigation breadcrumbs and actions, making it easy to orient yourself and move around."},{icon:bt,title:"Consistent navigation and controls",body:"Settings and project pages use a predictable sidebar instead of scattered tabs. Buttons, inputs and toolbars share one shape and one height, and the layout adapts to smaller screens."},{icon:Yn,title:"Site editor redesigned",body:"Try the redesigned blocks editor from Profile & Preferences. Blocks share consistent actions, variants appear beside their block in the header, and section selection is searchable."}],cta:{label:"Take a tour",action:"start-tour"}},{id:"unified-workspace-layout",date:"2026-09-01",eyebrow:"Now Available",title:"A new way around Studio",bullets:[{icon:Pt,title:"Unified org switcher",body:"Organizations and agents now share one control at the top of the sidebar. Search it to jump straight to any agent, including ones in your other organizations."},{icon:ie,title:"Your org at a glance",body:"The organization home now opens on the agents your team built and the tasks they are running — no empty board to fill in first."},{icon:Et,title:"Simplified CMS",body:"The CMS opens over the page you are previewing rather than somewhere else, so changing a section never costs you your place."}],cta:{label:"Take the tour",action:"start-tour"}},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:ie,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:ge,title:"Terra balances Smart",body:"The Smart tier now uses `gpt-5.6-terra`, replacing GPT-5.4 as the default balanced Codex model."},{icon:Ye,title:"Luna speeds up Fast",body:"The Fast tier and lightweight Codex title generation now use `gpt-5.6-luna`. Existing threads that reference older GPT-5.4 or GPT-5.5 model IDs remain supported."}]},{id:"claude-sonnet-5",date:"2026-06-30",eyebrow:"Now Available",title:"Claude Sonnet 5 powers the Smart tier",bullets:[{icon:ie,title:"More agentic coding",body:"Sonnet 5 is Anthropic's strongest Sonnet model yet, with improved reasoning, tool use, coding, and knowledge work compared with Sonnet 4.6."},{icon:ge,title:"Available in Claude Code",body:"The Claude Code harness now pins the Smart tier to the new `claude-sonnet-5` model id so new sessions use Sonnet 5 by default."},{icon:Ye,title:"Nothing to change",body:"Existing Smart-tier chats and agents pick up Sonnet 5 automatically. Thinking remains on Opus 4.8 1M."}],learnMoreHref:"https://www.anthropic.com/news/claude-sonnet-5"},{id:"fable-5-suspension",date:"2026-06-13",eyebrow:"Important Update",title:"Fable 5 & Mythos 5 suspended — Opus 4.8 takes over",bullets:[{icon:ge,title:"US government directive",body:"Anthropic received an export control directive requiring the suspension of Fable 5 and Mythos 5 access for all users, citing national security concerns. Anthropic is complying while it works to resolve the matter."},{icon:ie,title:"Opus 4.8 steps in as the Thinking tier",body:"The Thinking tier now runs on Claude Opus 4.8, which remains fully operational. Performance on most tasks is comparable, and Anthropic reports more than 95% of sessions were unaffected by the Fable 5 classifiers anyway."},{icon:Ye,title:"Nothing to change",body:"The switch is automatic — any chat or agent already using the Thinking tier is now served by Opus 4.8. Anthropic will share further details within 24 hours."}],learnMoreHref:"https://www.anthropic.com/news/fable-mythos-access"},{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:ie,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:ge,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:Ye,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:ie,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:ge,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:Ye,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:ie,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:bt,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:ge,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Pt,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:Ye,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:ge,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:ie,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:bt,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:ie,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:Qn,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],yt="studio.release-feed.v1",vt=new Set;let ye="",xe={},jt=!1;function eo(){if(jt)return ye||"{}";try{return localStorage.getItem(yt)??"{}"}catch{return ye||"{}"}}function cn(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Lt(){const t=eo();return t!==ye&&(ye=t,xe=cn(t)),xe}function to(t){vt.add(t);const e=s=>{if(!(s.key!==yt&&s.key!==null)){try{const a=localStorage.getItem(yt)??"{}",r={...cn(a),...xe};xe=r,ye=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{vt.delete(t),window.removeEventListener("storage",e)}}function no(t){xe=t,ye=JSON.stringify(t);try{localStorage.setItem(yt,ye),jt=!1}catch{jt=!0}vt.forEach(e=>e())}function so(){const t=C.c(7),e=G.useSyncExternalStore(to,Lt,Lt);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const a=s,n=oo;let r;t[2]!==e?(r=ln.reduce((d,g)=>e[g.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const i=r;let l;return t[4]!==a||t[5]!==i?(l={isSeen:a,markSeen:n,unseenCount:i},t[4]=a,t[5]=i,t[6]=l):l=t[6],l}function oo(t){xe[t]||no({...xe,[t]:{seenAt:new Date().toISOString()}})}const Rt=new Map;function dn(t){let e=Rt.get(t);return e||(e={now:Date.now(),subscribers:new Set,intervalId:null},Rt.set(t,e)),e}function io(t,e){const s=dn(t);return s.subscribers.add(e),s.intervalId===null&&(s.intervalId=setInterval(()=>{s.now=Date.now();for(const a of s.subscribers)a()},t)),()=>{s.subscribers.delete(e),s.subscribers.size===0&&s.intervalId!==null&&(clearInterval(s.intervalId),s.intervalId=null)}}function ao(t){const e=C.c(4),s=t===void 0?6e4:t;let a;e[0]!==s?(a=()=>dn(s).now,e[0]=s,e[1]=a):a=e[1];const n=a;let r;return e[2]!==s?(r=i=>io(s,i),e[2]=s,e[3]=r):r=e[3],G.useSyncExternalStore(r,n,n)}const ro=720*60*60*1e3,lo=10080*60*1e3;function co(t){const[e,s,a]=t.split("-").map(Number);return!e||!s||!a?new Date(t).getTime():new Date(e,s-1,a).getTime()}function uo(t){const e=ln[0];if(!e)return null;const s=co(e.date),a=t-s;return a<0||a>ro?null:e}function mo(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 fo(t,e){const s=mo(t);return s===null?!1:e-s>=lo}function go(){const t=C.c(46),e=J(),s=os(),a=wn(),n=nn(),r=!!s,i=a===re.home&&!s;let l;t[0]!==n||t[1]!==r?(l=r&&!!n&&rn(n),t[0]=n,t[1]=r,t[2]=l):l=t[2];const d=l,{data:g}=se.useSession(),{isSeen:h,markSeen:f}=so(),m=ao(6e4);let c,y,u;if(t[3]!==h||t[4]!==m||t[5]!==g?.user?.createdAt){u=Symbol.for("react.early_return_sentinel");e:{if(c=uo(m),!c){u=null;break e}if(!fo(g?.user?.createdAt,m)){u=null;break e}y=h(c.id)}t[3]=h,t[4]=m,t[5]=g?.user?.createdAt,t[6]=c,t[7]=y,t[8]=u}else c=t[6],y=t[7],u=t[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;if(y)return null;let p;t[9]!==c.id||t[10]!==r||t[11]!==f||t[12]!==i||t[13]!==d||t[14]!==e?(p=()=>{f(c.id),Xs(e,{onOrgHome:i,inProject:r,onSiteEditor:d})},t[9]=c.id,t[10]=r,t[11]=f,t[12]=i,t[13]=d,t[14]=e,t[15]=p):p=t[15];const S=p;let x;t[16]!==e?(x=e("announcements.release.ariaLabel"),t[16]=e,t[17]=x):x=t[17];let b;t[18]!==e?(b=e("announcements.release.dismiss"),t[18]=e,t[19]=b):b=t[19];const v=c.eyebrow,w=c.title;let N;t[20]!==c.id||t[21]!==f?(N=()=>f(c.id),t[20]=c.id,t[21]=f,t[22]=N):N=t[22];let T;t[23]!==c.id||t[24]!==c.learnMoreHref||t[25]!==f||t[26]!==e?(T=c.learnMoreHref?o.jsx("a",{href:c.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>f(c.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[23]=c.id,t[24]=c.learnMoreHref,t[25]=f,t[26]=e,t[27]=T):T=t[27];let j;t[28]!==c.cta||t[29]!==c.id||t[30]!==f||t[31]!==S?(j=c.cta?"href"in c.cta?o.jsx(D,{asChild:!0,size:"sm",onClick:()=>f(c.id),children:o.jsx("a",{href:c.cta.href,children:c.cta.label})}):o.jsx(D,{size:"sm",onClick:S,children:c.cta.label}):null,t[28]=c.cta,t[29]=c.id,t[30]=f,t[31]=S,t[32]=j):j=t[32];let P;t[33]!==c.bullets?(P=c.bullets.map(ho),t[33]=c.bullets,t[34]=P):P=t[34];let _;t[35]!==P?(_=o.jsx("ul",{className:"flex flex-col gap-3",children:P}),t[35]=P,t[36]=_):_=t[36];let O;return t[37]!==c.eyebrow||t[38]!==c.title||t[39]!==j||t[40]!==_||t[41]!==x||t[42]!==b||t[43]!==N||t[44]!==T?(O=o.jsx(sn,{ariaLabel:x,dismissLabel:b,eyebrow:v,title:w,onDismiss:N,footerLeading:T,actions:j,children:_}),t[37]=c.eyebrow,t[38]=c.title,t[39]=j,t[40]=_,t[41]=x,t[42]=b,t[43]=N,t[44]=T,t[45]=O):O=t[45],O}function ho(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}function po(t){const e=C.c(11),{open:s,onOpenChange:a}=t,n=J();let r;e[0]!==n?(r=n("common.keyboardShortcutsDialog.title"),e[0]=n,e[1]=r):r=e[1];let i;e[2]!==r?(i=o.jsx(Gt,{children:o.jsx(Jt,{children:r})}),e[2]=r,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx("div",{className:"flex flex-col gap-4",children:Sn.map(yo)}),e[4]=l):l=e[4];let d;e[5]!==i?(d=o.jsxs(Vt,{className:"sm:max-w-md",children:[i,l]}),e[5]=i,e[6]=d):d=e[6];let g;return e[7]!==a||e[8]!==s||e[9]!==d?(g=o.jsx(Wt,{open:s,onOpenChange:a,children:d}),e[7]=a,e[8]=s,e[9]=d,e[10]=g):g=e[10],g}function yo(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(xo)})]},t.label)}function xo(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(bo)})]},t.description)}function bo(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const wo={xs:"xs",sm:"xs",lg:"md"};function un(t){const e=C.c(4),{org:s,size:a}=t,n=a===void 0?"sm":a,r=s.logo??void 0,i=wo[n];let l;return e[0]!==s.name||e[1]!==r||e[2]!==i?(l=o.jsx(ot,{url:r,fallback:s.name,size:i,tone:"solid"}),e[0]=s.name,e[1]=r,e[2]=i,e[3]=l):l=e[3],l}function Qi({invitation:t,onChanged:e}){const s=J(),[a,n]=G.useState(!1),r=t.organizationName??s("header.orgSwitcher.unknownOrganization"),i=async()=>{n(!0);try{const g=await se.organization.acceptInvitation({invitationId:t.id});if(g.error){Z.error(g.error.message),n(!1);return}}catch{Z.error(s("header.orgSwitcher.failedToAcceptInvitation")),n(!1);return}Z.success(s("header.orgSwitcher.joined",{name:r})),Bt();let d;try{d=(await se.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=d?`/${d}`:"/"},l=async()=>{n(!0);try{const d=await se.organization.rejectInvitation({invitationId:t.id});if(d.error){Z.error(d.error.message),n(!1);return}Z.success(s("header.orgSwitcher.invitationDeclined")),n(!1),e()}catch{Z.error(s("header.orgSwitcher.failedToDeclineInvitation")),n(!1)}};return o.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[o.jsx(un,{org:{name:r},size:"sm"}),o.jsxs("div",{className:"min-w-0 flex-1",children:[o.jsx("p",{className:"truncate text-sm font-medium",children:r}),o.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),o.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[o.jsx(D,{size:"sm",variant:"default",onClick:i,disabled:a,children:s("header.orgSwitcher.accept")}),o.jsx(D,{size:"icon-sm",variant:"ghost",className:"text-muted-foreground",onClick:l,disabled:a,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:r}),children:o.jsx(tn,{size:14})})]})]})}function So(t){return typeof t=="object"&&t!==null&&Array.isArray(t.items)}function vo(t){const e=C.c(13),s=t.trim(),{data:a}=se.useSession(),n=a?.user?.id??"",r=s.length>0&&!!n,i=Xe.organizationSearch(n,s);let l;e[0]!==s?(l=async S=>{const{signal:x}=S,b=await fetch(`/api/_me/organizations/search?q=${encodeURIComponent(s)}`,{signal:x});if(!b.ok)throw new Error(`Organization search failed: ${b.status}`);const v=await b.json();if(!So(v))throw new Error("Invalid organization search response");return v},e[0]=s,e[1]=l):l=e[1];let d;e[2]!==r||e[3]!==i||e[4]!==l?(d={queryKey:i,queryFn:l,enabled:r,placeholderData:vn,staleTime:3e4,retry:!1},e[2]=r,e[3]=i,e[4]=l,e[5]=d):d=e[5];const{data:g,isFetching:h,isPlaceholderData:f,isError:m}=pe(d);let c;e[6]!==g?.items?(c=g?.items??[],e[6]=g?.items,e[7]=c):c=e[7];const y=r&&h,u=r&&f;let p;return e[8]!==m||e[9]!==c||e[10]!==y||e[11]!==u?(p={hits:c,isSearching:y,isStale:u,isError:m},e[8]=m,e[9]=c,e[10]=y,e[11]=u,e[12]=p):p=e[12],p}const jo=3,mn=10,ko=440,To=55;function Xi(t){const e=Math.floor((t-ko)/To);return Math.min(mn,Math.max(jo,e))}function No(t,e,s=mn*3,a=[]){return[...new Set([e,...a,...t])].slice(0,s)}function Po(t,e){return!e.id||t.some(s=>s.slug===e.slug)?[...t]:[...t,e]}function Zi(t,e,s,a,n=[]){if(t.length<=a)return{shown:[...t],hidden:[]};const r=new Map(t.map(l=>[l.slug,l])),i=new Set;s&&r.has(s)&&i.add(s);for(const l of n)r.has(l)&&i.add(l);for(const l of e){if(i.size>=a)break;r.has(l)&&i.add(l)}for(const l of t){if(i.size>=a)break;i.add(l.slug)}return{shown:t.filter(l=>i.has(l.slug)),hidden:t.filter(l=>!i.has(l.slug))}}const zt=[];function fn(){const t=C.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=he.recentOrgs(),t[0]=e):e=t[0];const[s,a]=Yt(e,zt),n=Array.isArray(s)?s:zt;let r;t[1]!==a?(r=(l,d)=>a(g=>No(Array.isArray(g)?g:[],l,void 0,d)),t[1]=a,t[2]=r):r=t[2];let i;return t[3]!==n||t[4]!==r?(i={recent:n,remember:r},t[3]=n,t[4]=r,t[5]=i):i=t[5],i}const gn={hidden:[],pinned:[],order:[]},st=(t,e)=>t.filter(s=>s!==e);function _o(t){if(typeof t!="object"||t===null)return gn;const e=a=>Array.isArray(a)?a.filter(n=>typeof n=="string"):[],s=t;return{hidden:e(s.hidden),pinned:e(s.pinned),order:e(s.order)}}function ea(t,e){return{...t,hidden:[...st(t.hidden,e),e],pinned:st(t.pinned,e)}}function Oo(t,e){return{...t,hidden:st(t.hidden,e)}}function ta(t,e){return t.pinned.includes(e)?{...t,pinned:st(t.pinned,e)}:{...t,hidden:st(t.hidden,e),pinned:[...t.pinned,e]}}function na(t,e,s){const a=n=>{const r=e.order.indexOf(n);return r===-1?Number.MAX_SAFE_INTEGER:r};return t.filter(n=>n.slug===s||!e.hidden.includes(n.slug)).map((n,r)=>({org:n,index:r})).sort((n,r)=>Number(e.pinned.includes(r.org.slug))-Number(e.pinned.includes(n.org.slug))||a(n.org.slug)-a(r.org.slug)||n.index-r.index).map(({org:n})=>n)}function sa(t,e,s,a){const n=e.indexOf(s),r=e.indexOf(a);if(n===-1||r===-1||n===r||t.pinned.includes(s)!==t.pinned.includes(a))return t;const i=[...e];return i.splice(n,1),i.splice(r,0,s),{...t,order:[...i,...t.order.filter(l=>!i.includes(l))]}}function Io(){const t=C.c(5),e=kt(),{remember:s}=fn();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=he.railOrgPrefs(),t[0]=a):a=t[0];const[,n]=Yt(a,gn);let r;return t[1]!==e||t[2]!==s||t[3]!==n?(r=(i,l)=>{const d=l?.includes(i)??!1;n(g=>Oo(_o(g),i)),s(i,d?l:void 0),e({to:"/$org/home",params:{org:i},viewTransition:!0})},t[1]=e,t[2]=s,t[3]=n,t[4]=r):r=t[4],r}const Dt=8,Ze=["all","organizations","projects","chats","connections","actions"],Ao=5;function Mt(t){switch(t){case"all":return"commandPalette.scope.all";case"organizations":return"commandPalette.organizations";case"projects":return"commandPalette.projects";case"chats":return"commandPalette.scope.chats";case"connections":return"commandPalette.connections";case"actions":return"commandPalette.actions";default:return t}}function Eo(t,e){const s=a=>{const n=e.indexOf(a);return n===-1?Number.POSITIVE_INFINITY:n};return[...t].sort((a,n)=>s(a.slug)-s(n.slug)||a.name.localeCompare(n.name))}function Co(t,e){const{org:s}=Tt(),a=ys({connectionId:Qt,orgId:s.id,orgSlug:s.slug}),{data:n}=pe({queryKey:Xe.globalSearch(s.id,t,Dt),enabled:e&&!!a&&t.trim().length>=2,staleTime:15e3,retry:!1,queryFn:async()=>{if(!a)return[];try{return(await a.callTool({name:"GLOBAL_SEARCH",arguments:{query:t,limit:Dt}})).structuredContent?.items??[]}catch{return[]}}});return n??[]}function $o(t){const e=C.c(213),{open:s,onOpenChange:a}=t,n=J(),r=kt(),{org:i}=Tt(),{projects:l,hasProjects:d}=is(),{remember:g}=hs(i.slug),[h,f]=G.useState(""),[m,c]=G.useState("all");let y;e[0]!==m?(y=M=>m==="all"||m===M,e[0]=m,e[1]=y):y=e[1];const u=y,p=G.useDeferredValue(h),S=Co(p,u("chats")||u("connections")),x=Io(),{data:b}=jn(),{recent:v}=fn();let w;e[2]!==h?(w=h.trim(),e[2]=h,e[3]=w):w=e[3];const N=w,T=ps(N,150),{hits:j}=vo(u("organizations")?T:"");let P,_;if(e[4]!==i||e[5]!==j||e[6]!==b||e[7]!==v){const M=Eo(Po(b??[],i),v);let U;e[10]!==j?(U=new Set(j.map(Do)),e[10]=j,e[11]=U):U=e[11],P=U,_=[...M,...j.filter(Ee=>!M.some(F=>F.id===Ee.id))],e[4]=i,e[5]=j,e[6]=b,e[7]=v,e[8]=P,e[9]=_}else P=e[8],_=e[9];const O=_;let A;e[12]!==O||e[13]!==i.slug||e[14]!==m||e[15]!==N?(A=m==="all"&&!N?O.filter(M=>M.slug!==i.slug).slice(0,Ao):O,e[12]=O,e[13]=i.slug,e[14]=m,e[15]=N,e[16]=A):A=e[16];const $=A;let L;e[17]!==a?(L=()=>{a(!1),f(""),c("all")},e[17]=a,e[18]=L):L=e[18];const R=L;let I;e[19]!==m?(I=M=>{const U=Ze.indexOf(m);c(Ze[(U+M+Ze.length)%Ze.length]??"all")},e[19]=m,e[20]=I):I=e[20];const q=I;let H;e[21]!==R?(H=(M,U)=>{St("command_palette_used",{kind:U}),M(),R()},e[21]=R,e[22]=H):H=e[22];const z=H;let le;e[23]!==r||e[24]!==i.id||e[25]!==i.slug?(le=M=>{if(M.type==="connection"){if(!M.slug){r({to:"/$org/settings/connections",params:{org:i.slug},search:{tab:"all"}});return}r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:M.slug}});return}if(M.type==="task"){r({to:re.tasks,params:{org:i.slug,taskKey:M.key??void 0}});return}const U=Xt(i.id).id;kn(r,Tn({org:i.slug,agentId:M.virtual_mcp_id??U,superAgentId:U}),{search:()=>({thread:M.id}),replace:!1})},e[23]=r,e[24]=i.id,e[25]=i.slug,e[26]=le):le=e[26];const ee=le;let te;e[27]!==h?(te=[h],e[27]=h,e[28]=te):te=e[28];const oe=te;let ne,V,W,K,Y,Q,X,E,B,we,Se,ce,de,ue,me,fe;if(e[29]!==R||e[30]!==q||e[31]!==z||e[32]!==d||e[33]!==S||e[34]!==r||e[35]!==a||e[36]!==s||e[37]!==ee||e[38]!==i.slug||e[39]!==$||e[40]!==l||e[41]!==g||e[42]!==oe||e[43]!==m||e[44]!==P||e[45]!==u||e[46]!==n||e[47]!==h||e[48]!==x){const M=S.filter(zo),U=S.filter(Ro);let Ee;e[65]!==i.slug?(Ee={org:i.slug},e[65]=i.slug,e[66]=Ee):Ee=e[66];const F=Ee;let Ce;e[67]!==n?(Ce=n("sidebar.navDestinations.home"),e[67]=n,e[68]=Ce):Ce=e[68];let dt;e[69]===Symbol.for("react.memo_cache_sentinel")?(dt=o.jsx(es,{"aria-hidden":"true"}),e[69]=dt):dt=e[69];let $e;e[70]!==F||e[71]!==Ce?($e={key:"home",label:Ce,icon:dt,to:re.home,params:F},e[70]=F,e[71]=Ce,e[72]=$e):$e=e[72];let Le;e[73]!==n?(Le=n("sidebar.navDestinations.reports"),e[73]=n,e[74]=Le):Le=e[74];let ut;e[75]===Symbol.for("react.memo_cache_sentinel")?(ut=o.jsx(ts,{"aria-hidden":"true"}),e[75]=ut):ut=e[75];let Re;e[76]!==F||e[77]!==Le?(Re={key:"reports",label:Le,icon:ut,to:re.reports,params:F},e[76]=F,e[77]=Le,e[78]=Re):Re=e[78];let ze;e[79]!==n?(ze=n("sidebar.navDestinations.tasks"),e[79]=n,e[80]=ze):ze=e[80];let mt;e[81]===Symbol.for("react.memo_cache_sentinel")?(mt=o.jsx(At,{"aria-hidden":"true"}),e[81]=mt):mt=e[81];let De;e[82]!==i.slug?(De={org:i.slug,taskKey:void 0},e[82]=i.slug,e[83]=De):De=e[83];let Me;e[84]!==ze||e[85]!==De?(Me={key:"tasks",label:ze,icon:mt,to:re.tasks,params:De},e[84]=ze,e[85]=De,e[86]=Me):Me=e[86];let Fe;e[87]!==n?(Fe=n("sidebar.navDestinations.library"),e[87]=n,e[88]=Fe):Fe=e[88];let ft;e[89]===Symbol.for("react.memo_cache_sentinel")?(ft=o.jsx(ns,{"aria-hidden":"true"}),e[89]=ft):ft=e[89];let qe;e[90]!==F||e[91]!==Fe?(qe={key:"library",label:Fe,icon:ft,to:re.library,params:F},e[90]=F,e[91]=Fe,e[92]=qe):qe=e[92];let Be;e[93]!==n?(Be=n("sidebar.navDestinations.discover"),e[93]=n,e[94]=Be):Be=e[94];let gt;e[95]===Symbol.for("react.memo_cache_sentinel")?(gt=o.jsx(ss,{"aria-hidden":"true"}),e[95]=gt):gt=e[95];let Ke;e[96]!==F||e[97]!==Be?(Ke={key:"discover",label:Be,icon:gt,to:re.discover,params:F},e[96]=F,e[97]=Be,e[98]=Ke):Ke=e[98];let ht;e[99]!==$e||e[100]!==Re||e[101]!==Me||e[102]!==qe||e[103]!==Ke?(ht=[$e,Re,Me,qe,Ke],e[99]=$e,e[100]=Re,e[101]=Me,e[102]=qe,e[103]=Ke,e[104]=ht):ht=e[104];const xt=ht;V=cs,Se=s,e[105]!==R||e[106]!==a?(ce=k=>k?a(!0):R(),e[105]=R,e[106]=a,e[107]=ce):ce=e[107],e[108]!==n?(de=n("commandPalette.title"),e[108]=n,e[109]=de):de=e[109],e[110]!==n?(ue=n("commandPalette.description"),e[110]=n,e[111]=ue):ue=e[111];let He;e[112]!==m||e[113]!==n?(He=m==="all"?n("commandPalette.placeholder"):n("commandPalette.placeholderScoped",{scope:n(Mt(m)).toLowerCase()}),e[112]=m,e[113]=n,e[114]=He):He=e[114];let Ue;e[115]!==n?(Ue=n("commandPalette.placeholder"),e[115]=n,e[116]=Ue):Ue=e[116];let Ge;e[117]!==q||e[118]!==m||e[119]!==h?(Ge=k=>{if(k.key==="Tab"){k.preventDefault(),q(k.shiftKey?-1:1);return}k.key==="Backspace"&&!h&&m!=="all"&&(k.preventDefault(),c("all"))},e[117]=q,e[118]=m,e[119]=h,e[120]=Ge):Ge=e[120],e[121]!==He||e[122]!==Ue||e[123]!==Ge||e[124]!==h?(me=o.jsx(ds,{placeholder:He,"aria-label":Ue,value:h,onValueChange:f,onKeyDown:Ge}),e[121]=He,e[122]=Ue,e[123]=Ge,e[124]=h,e[125]=me):me=e[125];let Je;e[126]!==n?(Je=n("commandPalette.scope.label"),e[126]=n,e[127]=Je):Je=e[127];let Ve;e[128]!==m||e[129]!==n?(Ve=Ze.map(k=>o.jsx("button",{type:"button",role:"radio","aria-checked":m===k,tabIndex:-1,onMouseDown:Lo,onClick:()=>c(k),className:wt("h-7 shrink-0 cursor-pointer rounded-full px-3 text-xs font-medium transition-colors focus-ring",m===k?"bg-foreground text-background":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:n(Mt(k))},k)),e[128]=m,e[129]=n,e[130]=Ve):Ve=e[130],e[131]!==Je||e[132]!==Ve?(fe=o.jsx("div",{role:"radiogroup","aria-label":Je,className:"flex gap-1 overflow-x-auto border-b px-3 py-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Ve}),e[131]=Je,e[132]=Ve,e[133]=fe):fe=e[133],ne=us,W="h-[min(420px,60vh)] max-h-none";let We;e[134]!==n?(We=n("commandPalette.empty"),e[134]=n,e[135]=We):We=e[135],e[136]!==We?(K=o.jsx(ms,{children:We}),e[136]=We,e[137]=K):K=e[137],e[138]!==z||e[139]!==i.slug||e[140]!==$||e[141]!==P||e[142]!==u||e[143]!==n||e[144]!==h||e[145]!==x?(Y=u("organizations")&&$.length>0&&o.jsx(Qe,{heading:n("commandPalette.organizations"),children:$.map(k=>o.jsxs(ae,{value:`org ${k.name} ${k.slug}`,keywords:P.has(k.id)?[h]:void 0,onSelect:()=>z(()=>x(k.slug),"organization"),children:[o.jsx(un,{org:k,size:"xs"}),o.jsx("span",{className:"min-w-0 flex-1 truncate",children:k.name}),k.slug===i.slug&&o.jsx("span",{className:"text-meta shrink-0",children:n("sidebar.rail.currentOrganization")})]},`org:${k.id}`))}),e[138]=z,e[139]=i.slug,e[140]=$,e[141]=P,e[142]=u,e[143]=n,e[144]=h,e[145]=x,e[146]=Y):Y=e[146],e[147]!==xt||e[148]!==z||e[149]!==r||e[150]!==u||e[151]!==n?(Q=u("actions")&&o.jsx(Qe,{heading:n("commandPalette.goTo"),children:xt.map(k=>o.jsxs(ae,{onSelect:()=>z(()=>r({to:k.to,params:k.params}),"destination"),children:[k.icon,o.jsx("span",{children:k.label})]},k.key))}),e[147]=xt,e[148]=z,e[149]=r,e[150]=u,e[151]=n,e[152]=Q):Q=e[152],e[153]!==z||e[154]!==d||e[155]!==r||e[156]!==i.slug||e[157]!==l||e[158]!==g||e[159]!==u||e[160]!==n?(X=u("projects")&&d&&o.jsx(Qe,{heading:n("commandPalette.projects"),children:l.map(k=>o.jsxs(ae,{value:`project ${k.title}`,onSelect:()=>z(()=>{g(k.id),r({to:re.projects,params:{org:i.slug,agentId:k.id}})},"project"),children:[o.jsx(gs,{icon:k.icon,name:k.title,"aria-hidden":"true"}),o.jsx("span",{children:k.title})]},k.id))}),e[153]=z,e[154]=d,e[155]=r,e[156]=i.slug,e[157]=l,e[158]=g,e[159]=u,e[160]=n,e[161]=X):X=e[161],e[162]!==z||e[163]!==r||e[164]!==F||e[165]!==u||e[166]!==n?(E=u("actions")&&o.jsxs(Qe,{heading:n("commandPalette.actions"),children:[o.jsxs(ae,{value:n("commandPalette.newProject"),onSelect:()=>z(()=>r({to:re.home,params:F}),"new_project"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.newProject")})]}),o.jsxs(ae,{value:n("commandPalette.inviteTeammate"),onSelect:()=>z(()=>r({to:"/$org/settings/members",params:F}),"invite"),children:[o.jsx(Xn,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.inviteTeammate")})]}),o.jsxs(ae,{value:n("commandPalette.addConnection"),onSelect:()=>z(()=>r({to:"/$org/settings/connections",params:F,search:{tab:"all"}}),"add_connection"),children:[o.jsx(Ct,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.addConnection")})]}),o.jsxs(ae,{value:n("commandPalette.settings"),onSelect:()=>z(()=>r({to:"/$org/settings/general",params:F}),"settings"),children:[o.jsx(ls,{"aria-hidden":"true"}),o.jsx("span",{children:n("commandPalette.settings")})]})]}),e[162]=z,e[163]=r,e[164]=F,e[165]=u,e[166]=n,e[167]=E):E=e[167],B=u("connections")&&M.length>0&&o.jsx(Qe,{heading:n("commandPalette.connections"),children:M.map(k=>o.jsxs(ae,{value:`${k.title} ${k.id}`,keywords:oe,onSelect:()=>z(()=>ee(k),"connection"),children:[o.jsx(fs,{icon:k.icon,name:k.title,size:"2xs","aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:k.title})]},`connection:${k.id}`))}),we=u("chats")&&U.length>0&&o.jsx(Qe,{heading:n("commandPalette.results"),children:U.map(k=>o.jsxs(ae,{value:`${k.title} ${k.id}`,keywords:oe,onSelect:()=>z(()=>ee(k),k.type),children:[k.type==="thread"?o.jsx(Zn,{"aria-hidden":"true"}):o.jsx(At,{"aria-hidden":"true"}),o.jsx("span",{className:"truncate",children:k.title}),k.type==="task"&&k.key&&o.jsx("span",{className:"ml-auto shrink-0 font-mono text-xs text-muted-foreground",children:k.key})]},`${k.type}:${k.id}`))}),e[29]=R,e[30]=q,e[31]=z,e[32]=d,e[33]=S,e[34]=r,e[35]=a,e[36]=s,e[37]=ee,e[38]=i.slug,e[39]=$,e[40]=l,e[41]=g,e[42]=oe,e[43]=m,e[44]=P,e[45]=u,e[46]=n,e[47]=h,e[48]=x,e[49]=ne,e[50]=V,e[51]=W,e[52]=K,e[53]=Y,e[54]=Q,e[55]=X,e[56]=E,e[57]=B,e[58]=we,e[59]=Se,e[60]=ce,e[61]=de,e[62]=ue,e[63]=me,e[64]=fe}else ne=e[49],V=e[50],W=e[51],K=e[52],Y=e[53],Q=e[54],X=e[55],E=e[56],B=e[57],we=e[58],Se=e[59],ce=e[60],de=e[61],ue=e[62],me=e[63],fe=e[64];let ve;e[168]!==ne||e[169]!==W||e[170]!==K||e[171]!==Y||e[172]!==Q||e[173]!==X||e[174]!==E||e[175]!==B||e[176]!==we?(ve=o.jsxs(ne,{className:W,children:[K,Y,Q,X,E,B,we]}),e[168]=ne,e[169]=W,e[170]=K,e[171]=Y,e[172]=Q,e[173]=X,e[174]=E,e[175]=B,e[176]=we,e[177]=ve):ve=e[177];let it;e[178]===Symbol.for("react.memo_cache_sentinel")?(it=["↑","↓"],e[178]=it):it=e[178];let je;e[179]!==n?(je=n("commandPalette.hint.navigate"),e[179]=n,e[180]=je):je=e[180];let ke;e[181]!==je?(ke=o.jsx(pt,{keys:it,label:je}),e[181]=je,e[182]=ke):ke=e[182];let at;e[183]===Symbol.for("react.memo_cache_sentinel")?(at=["↵"],e[183]=at):at=e[183];let Te;e[184]!==n?(Te=n("commandPalette.hint.open"),e[184]=n,e[185]=Te):Te=e[185];let Ne;e[186]!==Te?(Ne=o.jsx(pt,{keys:at,label:Te}),e[186]=Te,e[187]=Ne):Ne=e[187];let rt;e[188]===Symbol.for("react.memo_cache_sentinel")?(rt=["Tab"],e[188]=rt):rt=e[188];let Pe;e[189]!==n?(Pe=n("commandPalette.hint.filter"),e[189]=n,e[190]=Pe):Pe=e[190];let _e;e[191]!==Pe?(_e=o.jsx(pt,{keys:rt,label:Pe}),e[191]=Pe,e[192]=_e):_e=e[192];let lt;e[193]===Symbol.for("react.memo_cache_sentinel")?(lt=["Esc"],e[193]=lt):lt=e[193];let Oe;e[194]!==n?(Oe=n("commandPalette.hint.close"),e[194]=n,e[195]=Oe):Oe=e[195];let Ie;e[196]!==Oe?(Ie=o.jsx(pt,{keys:lt,label:Oe}),e[196]=Oe,e[197]=Ie):Ie=e[197];let Ae;e[198]!==ke||e[199]!==Ne||e[200]!==_e||e[201]!==Ie?(Ae=o.jsxs("div",{className:"flex items-center gap-4 border-t px-3 py-2 text-xs text-muted-foreground",children:[ke,Ne,_e,Ie]}),e[198]=ke,e[199]=Ne,e[200]=_e,e[201]=Ie,e[202]=Ae):Ae=e[202];let ct;return e[203]!==V||e[204]!==Se||e[205]!==ce||e[206]!==de||e[207]!==ue||e[208]!==me||e[209]!==fe||e[210]!==ve||e[211]!==Ae?(ct=o.jsxs(V,{open:Se,onOpenChange:ce,title:de,description:ue,children:[me,fe,ve,Ae]}),e[203]=V,e[204]=Se,e[205]=ce,e[206]=de,e[207]=ue,e[208]=me,e[209]=fe,e[210]=ve,e[211]=Ae,e[212]=ct):ct=e[212],ct}function Lo(t){return t.preventDefault()}function Ro(t){return t.type!=="connection"}function zo(t){return t.type==="connection"}function Do(t){return t.id}function pt(t){const e=C.c(7),{keys:s,label:a}=t;let n;e[0]!==s?(n=s.map(Mo),e[0]=s,e[1]=n):n=e[1];let r;e[2]!==n?(r=o.jsx("span",{className:"flex items-center gap-0.5",children:n}),e[2]=n,e[3]=r):r=e[3];let i;return e[4]!==a||e[5]!==r?(i=o.jsxs("span",{className:"flex items-center gap-1.5",children:[r,a]}),e[4]=a,e[5]=r,e[6]=i):i=e[6],i}function Mo(t){return o.jsx("kbd",{className:"inline-flex h-5 min-w-5 items-center justify-center rounded-sm border border-border bg-muted px-1 font-mono text-2xs",children:t},t)}const tt=new vs(!1);function Fo(){tt.set(!0)}function qo(){tt.set(!1)}function Bo(){const t=C.c(2),e=G.useSyncExternalStore(tt.subscribe,tt.get);let s;return t[0]!==e?(s=[e,tt.set],t[0]=e,t[1]=s):s=t[1],s}const Ko=300*1e3,Ho=2;function Uo(t,e,s){return!e||e===s?{version:null,count:0}:t.version===e?{version:e,count:t.count+1}:{version:e,count:1}}function Go(t,e){return t.count>=Ho&&t.version!==null&&t.version!==e}function Jo(){const t=C.c(31),e=J();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={queryKey:Xe.appVersionCheck(),queryFn:Wo,refetchInterval:Ko,refetchIntervalInBackground:!0,staleTime:0},t[0]=s):s=t[0];const{data:a,dataUpdatedAt:n}=pe(s),[r,i]=G.useState(0);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={version:null,count:0},t[1]=l):l=t[1];const[d,g]=G.useState(l);n!==r&&(i(n),g(j=>Uo(j,a,"4.576.2")));const[h,f]=G.useState(null);if(!Go(d,h))return null;let m;t[2]!==e?(m=e("announcements.version.ariaLabel"),t[2]=e,t[3]=m):m=t[3];let c;t[4]!==e?(c=e("announcements.version.dismiss"),t[4]=e,t[5]=c):c=t[5];let y;t[6]!==e?(y=e("announcements.version.eyebrow"),t[6]=e,t[7]=y):y=t[7];let u;t[8]!==e?(u=e("announcements.version.title"),t[8]=e,t[9]=u):u=t[9];let p;t[10]!==e?(p=e("announcements.version.description"),t[10]=e,t[11]=p):p=t[11];let S;t[12]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(_t,{size:16}),t[12]=S):S=t[12];let x;t[13]!==d.version?(x=()=>f(d.version),t[13]=d.version,t[14]=x):x=t[14];let b;t[15]!==e?(b=e("announcements.version.currentSession",{version:"4.576.2"}),t[15]=e,t[16]=b):b=t[16];let v;t[17]!==e?(v=e("announcements.version.refresh"),t[17]=e,t[18]=v):v=t[18];let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(_t,{size:14}),t[19]=w):w=t[19];let N;t[20]!==v?(N=o.jsxs(D,{size:"sm",onClick:Vo,children:[v,w]}),t[20]=v,t[21]=N):N=t[21];let T;return t[22]!==N||t[23]!==m||t[24]!==c||t[25]!==y||t[26]!==u||t[27]!==p||t[28]!==x||t[29]!==b?(T=o.jsx(sn,{ariaLabel:m,dismissLabel:c,eyebrow:y,title:u,description:p,icon:S,tone:"system",onDismiss:x,footerLeading:b,actions:N}),t[22]=N,t[23]=m,t[24]=c,t[25]=y,t[26]=u,t[27]=p,t[28]=x,t[29]=b,t[30]=T):T=t[30],T}function Vo(){return window.location.reload()}async function Wo(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function Yo(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const Qo=Date.parse("2026-07-21T00:00:00Z"),Ft=t=>Yo(he.ptBrAnnouncementSeen(t));function Xo(){const t=C.c(35),e=J(),[s,a]=Nn(),{data:n,isPending:r}=se.useSession(),i=n?.user,l=i?.id,d=i?.createdAt,g=d!=null&&new Date(d).getTime()<Qo,h=Pn()==="pt-BR",f=!r&&!!l&&g&&h&&s.language==="en"&&!Ft(l).has()&&!_n(),[m,c]=G.useState(!1),[y,u]=G.useState(!1);!m&&!r&&(c(!0),f&&l&&(Ft(l).mark(),a(ei),u(!0),St("pt_br_auto_switch_shown")));let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=z=>{St("pt_br_auto_switch_closed",{action:z}),u(!1)},t[0]=p):p=t[0];const S=p;let x;t[1]!==a?(x=()=>{a(Zo),S("switch-back")},t[1]=a,t[2]=x):x=t[2];const b=x;let v;t[3]===Symbol.for("react.memo_cache_sentinel")?(v=z=>!z&&S("dismiss"),t[3]=v):v=t[3];let w;t[4]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=w):w=t[4];let N;t[5]!==e?(N=e("announcements.ptBr.title"),t[5]=e,t[6]=N):N=t[6];let T;t[7]!==N?(T=o.jsx(Jt,{children:N}),t[7]=N,t[8]=T):T=t[8];let j;t[9]!==e?(j=e("announcements.ptBr.description"),t[9]=e,t[10]=j):j=t[10];let P;t[11]!==j?(P=o.jsx(On,{children:j}),t[11]=j,t[12]=P):P=t[12];let _;t[13]!==T||t[14]!==P?(_=o.jsxs(Gt,{children:[T,P]}),t[13]=T,t[14]=P,t[15]=_):_=t[15];let O;t[16]!==e?(O=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=O):O=t[17];let A;t[18]!==b||t[19]!==O?(A=o.jsx(D,{variant:"outline",onClick:b,children:O}),t[18]=b,t[19]=O,t[20]=A):A=t[20];let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($=()=>S("ok"),t[21]=$):$=t[21];let L;t[22]!==e?(L=e("announcements.ptBr.ok"),t[22]=e,t[23]=L):L=t[23];let R;t[24]!==L?(R=o.jsx(D,{onClick:$,children:L}),t[24]=L,t[25]=R):R=t[25];let I;t[26]!==A||t[27]!==R?(I=o.jsxs(In,{children:[A,R]}),t[26]=A,t[27]=R,t[28]=I):I=t[28];let q;t[29]!==I||t[30]!==_?(q=o.jsxs(Vt,{className:"sm:max-w-md",children:[w,_,I]}),t[29]=I,t[30]=_,t[31]=q):q=t[31];let H;return t[32]!==y||t[33]!==q?(H=o.jsx(Wt,{open:y,onOpenChange:v,children:q}),t[32]=y,t[33]=q,t[34]=H):H=t[34],H}function Zo(t){return{...t,language:"en"}}function ei(t){return{...t,language:"pt-BR"}}function ti(t){const e=An(t);return typeof e=="string"?e:void 0}function ni(){return ti("experiment-pipeline-check"),null}function si(t){const e=C.c(1),{activeOrg:s}=t;if(!s)return null;En(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Cn();let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx(ni,{}),e[0]=a):a=e[0],a}function oi(t){const{prev:e,virtualMcpId:s,decopilotId:a,savedLayout:n,opts:r,autosendValue:i}=t,l={mainpanel:void 0};s?l.virtualmcpid=s:e.virtualmcpid&&(l.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:a,h=(s??d)!==d;let f,m;return r?.panel?m=r.panel:r?.newThread&&!h&&$n(e.tabId)?(m=e.tabId,l.mainpanel=e.mainpanel,f=e.sidepanel):n?(m=n.tab,n.sidepanel!==void 0&&(f=n.sidepanel),n.mainpanel!==void 0&&(l.mainpanel=n.mainpanel)):!h&&e.tabId&&!Ln(e.tabId)&&(m=e.tabId),f!==void 0&&(l.sidepanel=f),r?.autosend&&(l.autosend=i),{tabId:m,search:l}}const hn="studio:thread-layout:v4",ii=50;function pn(t){const e={};return t===null||typeof t!="object"||(typeof t.tab=="string"&&(e.tab=t.tab),typeof t.mainpanel=="boolean"&&(e.mainpanel=t.mainpanel),typeof t.sidepanel=="boolean"&&(e.sidepanel=t.sidepanel)),e}function ai(t,e,s,a=ii){const n=t.filter(([r])=>r!==e);for(n.push([e,pn(s)]);n.length>a;)n.shift();return n}function Nt(){try{const t=sessionStorage.getItem(hn);if(!t)return[];const e=JSON.parse(t);return Array.isArray(e)?e.filter(s=>Array.isArray(s)&&s.length===2&&typeof s[0]=="string"):[]}catch{return[]}}function yn(t){try{sessionStorage.setItem(hn,JSON.stringify(t))}catch{}}function ri(t,e){t&&yn(ai(Nt(),t,e))}function li(t){if(!t)return null;const e=Nt().find(([s])=>s===t);return e?pn(e[1]):null}function oa(t){if(!t)return;const e=Nt(),s=e.filter(([a])=>a!==t);s.length!==e.length&&yn(s)}function xn(t){return{queryKey:Xe.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function ia(t){const e=C.c(10);let s;e[0]!==t?(s=xn(t),e[0]=t,e[1]=s):s=e[1];const a=pe(s);let n;e[2]!==a.data?.prompts?(n=a.data?.prompts??[],e[2]=a.data?.prompts,e[3]=n):n=e[3];let r;e[4]!==a.data?.tiles?(r=a.data?.tiles??[],e[4]=a.data?.tiles,e[5]=r):r=e[5];let i;return e[6]!==a.isLoading||e[7]!==n||e[8]!==r?(i={isLoading:a.isLoading,prompts:n,tiles:r},e[6]=a.isLoading,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function ci(t){const e=C.c(31),{orgSlug:s,orgName:a,domain:n}=t,r=J();let i;e[0]!==s?(i=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=i):i=e[1];const l=i,d=di;let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full","aria-hidden":"true",children:o.jsx(qt,{className:"h-6 w-6 text-primary"})}),e[2]=g):g=e[2];let h;e[3]!==r?(h=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=h):h=e[4];let f;e[5]!==h?(f=o.jsx("h3",{className:"text-lg font-medium",children:h}),e[5]=h,e[6]=f):f=e[6];let m;e[7]!==n||e[8]!==a||e[9]!==r?(m=a?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),n?` ${r("common.ssoRequiredScreen.via",{domain:n})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=n,e[8]=a,e[9]=r,e[10]=m):m=e[10];let c;e[11]!==m?(c=o.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[11]=m,e[12]=c):c=e[12];let y;e[13]!==f||e[14]!==c?(y=o.jsxs("div",{className:"space-y-2",children:[f,c]}),e[13]=f,e[14]=c,e[15]=y):y=e[15];let u;e[16]!==r?(u=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=u):u=e[17];let p;e[18]!==l||e[19]!==u?(p=o.jsx(D,{onClick:l,children:u}),e[18]=l,e[19]=u,e[20]=p):p=e[20];let S;e[21]!==r?(S=r("common.goBack"),e[21]=r,e[22]=S):S=e[22];let x;e[23]!==S?(x=o.jsx(D,{variant:"ghost",onClick:d,children:S}),e[23]=S,e[24]=x):x=e[24];let b;e[25]!==x||e[26]!==p?(b=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,x]}),e[25]=x,e[26]=p,e[27]=b):b=e[27];let v;return e[28]!==b||e[29]!==y?(v=o.jsxs(be,{children:[g,y,b]}),e[28]=b,e[29]=y,e[30]=v):v=e[30],v}function di(){window.location.href="/"}function ui(t){const e=C.c(27),{notice:s,orgSlug:a}=t,n=J();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:o.jsx(Rn,{className:"h-6 w-6 text-destructive"})}),e[0]=r):r=e[0];let i;e[1]!==s.title?(i=o.jsx("h3",{className:"text-lg font-medium",children:s.title}),e[1]=s.title,e[2]=i):i=e[2];let l;e[3]!==s.message?(l=o.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-line",children:s.message}),e[3]=s.message,e[4]=l):l=e[4];let d;e[5]!==i||e[6]!==l?(d=o.jsxs("div",{className:"space-y-2",children:[i,l]}),e[5]=i,e[6]=l,e[7]=d):d=e[7];let g;e[8]!==s.ctaLabel||e[9]!==s.ctaUrl?(g=s.ctaUrl&&s.ctaLabel?o.jsx(D,{asChild:!0,children:o.jsx("a",{href:s.ctaUrl,target:"_blank",rel:"noreferrer noopener",children:s.ctaLabel})}):null,e[8]=s.ctaLabel,e[9]=s.ctaUrl,e[10]=g):g=e[10];const h=`/${encodeURIComponent(a)}/settings/infra-billing`;let f;e[11]!==n?(f=n("common.blockedOrgScreen.goToBilling"),e[11]=n,e[12]=f):f=e[12];let m;e[13]!==h||e[14]!==f?(m=o.jsx(D,{variant:"outline",asChild:!0,children:o.jsx("a",{href:h,children:f})}),e[13]=h,e[14]=f,e[15]=m):m=e[15];let c;e[16]!==n?(c=n("common.blockedOrgScreen.switchOrg"),e[16]=n,e[17]=c):c=e[17];let y;e[18]!==c?(y=o.jsx(D,{variant:"ghost",asChild:!0,children:o.jsx("a",{href:"/",children:c})}),e[18]=c,e[19]=y):y=e[19];let u;e[20]!==y||e[21]!==g||e[22]!==m?(u=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,m,y]}),e[20]=y,e[21]=g,e[22]=m,e[23]=u):u=e[23];let p;return e[24]!==u||e[25]!==d?(p=o.jsxs(be,{children:[r,d,u]}),e[24]=u,e[25]=d,e[26]=p):p=e[26],p}function mi(t){const e=C.c(8);let s;e[0]!==t?(s=Xe.orgNotice(t??""),e[0]=t,e[1]=s):s=e[1];let a;e[2]!==t?(a=async()=>{const i=await fetch(`/api/${t}/notice`,{credentials:"include"});return i.ok?(await i.json()).notice??null:null},e[2]=t,e[3]=a):a=e[3];const n=!!t;let r;return e[4]!==s||e[5]!==a||e[6]!==n?(r={queryKey:s,queryFn:a,enabled:n,staleTime:6e4},e[4]=s,e[5]=a,e[6]=n,e[7]=r):r=e[7],pe(r)}const fi="/settings/infra-billing";function gi(t){return(t.endsWith("/")?t.slice(0,-1):t).endsWith(fi)}function hi(t){const e=C.c(7),{org:s,children:a}=t;let n;e[0]!==s.id||e[1]!==s.name?(n={id:s.id,organizationId:s.id,slug:"_org",name:s.name,ui:null},e[0]=s.id,e[1]=s.name,e[2]=n):n=e[2];const r=n;let i;return e[3]!==a||e[4]!==s||e[5]!==r?(i=o.jsx(Hn,{org:s,project:r,children:a}),e[3]=a,e[4]=s,e[5]=r,e[6]=i):i=e[6],i}function pi(){const t=kt(),e=js(),{org:s}=Tt(),a=zn({strict:!1}),n=nn(),{openPanel:r,closePanel:i}=as(),l=Ns(),d=Ps(),g=_s(),h=Os(),f=(u,p=!0)=>t({to:".",search:u,replace:p}),m=()=>f(u=>({...u,sidepanel:!0})),c=(u,p,S)=>{const x=!!d&&d===u;d&&!x&&ri(d,{tab:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel});const b=x?null:li(u),v=Xt(s.id).id,w=oi({prev:{virtualmcpid:l,tabId:n,mainpanel:a.mainpanel,sidepanel:a.sidepanel},virtualMcpId:p,decopilotId:v,savedLayout:b,opts:S,autosendValue:rs});return h(u,()=>w.search,{virtualMcpId:p,view:{tabId:w.tabId}})};return{openSidePanel:m,setTaskId:c,createNewTask:async(u,p,S)=>{const x=crypto.randomUUID(),b=u??g;try{await e?.create({id:x,virtual_mcp_id:b,...p?{branch:p}:{}})}catch{}c(x,b,{...S,newThread:!0})},openTab:r,closeTab:i}}const yi=new Set(["/$org/","/$org/home"]);function xi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:bi},t[0]=e):e=t[0],Zt(e)}function bi(t){const e=t.matches.at(-1)?.fullPath;return e!==void 0&&yi.has(e)}function wi(){const t=C.c(54);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const a=Dn(e)?.params.org,[n,r]=G.useState(!1),[i,l]=Bo(),[d,g]=bs(),h=Mn(),f=xi(),m=a??"";let c;t[1]!==m?(c=xn(m),t[1]=m,t[2]=c):c=t[2];const y=!!a&&f;let u;t[3]!==c||t[4]!==y?(u={...c,enabled:y},t[3]=c,t[4]=y,t[5]=u):u=t[5],pe(u);const{data:p}=se.useSession(),S=p?.user?.id;let x,b;t[6]!==h?(x=()=>{const E=B=>{if(It(B)&&B.code==="KeyK"){B.preventDefault(),Fo();return}if(B.key==="?"&&!Kn(B.target)){B.preventDefault(),r(!0);return}It(B)&&B.code==="BracketLeft"&&h.history.canGoBack()&&(B.preventDefault(),h.history.back())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},b=[h],t[6]=h,t[7]=x,t[8]=b):(x=t[7],b=t[8]),G.useEffect(x,b);let v;t[9]!==a||t[10]!==S?(v=Fn(a,S),t[9]=a,t[10]=S,t[11]=v):v=t[11];const{data:w}=Kt(v),N=w?.id,T=w?.slug,{data:j}=Is(N,T),P=!!j?.ssoRequired&&!j.authenticated,{data:_}=mi(T);let O;t[12]===Symbol.for("react.memo_cache_sentinel")?(O={select:Si},t[12]=O):O=t[12];const A=Zt(O),$=_?.severity==="block"&&!gi(A),L=N??"",R=T??"";let I;t[13]!==R||t[14]!==L?(I=xs({connectionId:Qt,orgId:L,orgSlug:R}),t[13]=R,t[14]=L,t[15]=I):I=t[15];const q=!!N&&!!T;let H;if(t[16]!==I||t[17]!==q?(H={...I,enabled:q},t[16]=I,t[17]=q,t[18]=H):H=t[18],pe(H),(!w||Ot(w)||P||$)&&qo(),!w){let E;return t[19]!==a?(E=o.jsx(Bs,{orgSlug:a}),t[19]=a,t[20]=E):E=t[20],E}if(Ot(w)){localStorage.getItem(he.lastOrgSlug())===a&&localStorage.removeItem(he.lastOrgSlug()),Ht()?.org===a&&Ut();let E;return t[21]!==w.name?(E=o.jsx(qn,{orgName:w.name}),t[21]=w.name,t[22]=E):E=t[22],E}if($&&_){let E;return t[23]!==w.slug||t[24]!==_?(E=o.jsx(ui,{notice:_,orgSlug:w.slug}),t[23]=w.slug,t[24]=_,t[25]=E):E=t[25],E}if(P){let E;return t[26]!==w.id||t[27]!==w.name||t[28]!==w.slug||t[29]!==j.domain?(E=o.jsx(ci,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:j.domain}),t[26]=w.id,t[27]=w.name,t[28]=w.slug,t[29]=j.domain,t[30]=E):E=t[30],E}const le=w.logo??null;let ee;t[31]!==w||t[32]!==le?(ee={...w,logo:le},t[31]=w,t[32]=le,t[33]=ee):ee=t[33];let te;t[34]!==w?(te=o.jsx(si,{activeOrg:w}),t[34]=w,t[35]=te):te=t[35];let oe;t[36]===Symbol.for("react.memo_cache_sentinel")?(oe=o.jsx(Bn,{}),t[36]=oe):oe=t[36];let ne;t[37]===Symbol.for("react.memo_cache_sentinel")?(ne=o.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[o.jsx(go,{}),o.jsx(Jo,{})]}),t[37]=ne):ne=t[37];let V;t[38]!==i||t[39]!==l?(V=i&&o.jsx($o,{open:i,onOpenChange:l}),t[38]=i,t[39]=l,t[40]=V):V=t[40];let W;t[41]!==d||t[42]!==g?(W=d&&o.jsx(ws,{open:!0,onOpenChange:g,source:Ss()}),t[41]=d,t[42]=g,t[43]=W):W=t[43];let K;t[44]!==n?(K=o.jsx(po,{open:n,onOpenChange:r}),t[44]=n,t[45]=K):K=t[45];let Y,Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx(Xo,{}),Q=o.jsx(ks,{}),t[46]=Y,t[47]=Q):(Y=t[46],Q=t[47]);let X;return t[48]!==ee||t[49]!==te||t[50]!==V||t[51]!==W||t[52]!==K?(X=o.jsxs(hi,{org:ee,children:[te,oe,ne,V,W,K,Y,Q]}),t[48]=ee,t[49]=te,t[50]=V,t[51]=W,t[52]=K,t[53]=X):X=t[53],X}function Si(t){return t.location.pathname}function vi(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Ts,{children:o.jsx(wi,{})}),t[0]=e):e=t[0],e}const aa=Object.freeze(Object.defineProperty({__proto__:null,default:vi,usePanelActions:pi},Symbol.toStringTag,{value:"Module"}));export{gn as E,Qi as I,Ks as L,un as O,vo as a,fn as b,Io as c,Zi as d,na as e,Xi as f,pi as g,ea as h,rn as i,ao as j,oa as k,Zs as l,sa as m,ia as n,Fo as o,Wi as p,aa as q,_o as r,Yi as s,ta as t,mi as u,Po as w};