decocms 4.574.1 → 4.574.3

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 (454) hide show
  1. package/dist/client/assets/{AlertCircle-JDirc_BX.js → AlertCircle-CLpRTe7p.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DpzgqwWZ.js → AreaChart-CEEAkjEY.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BENlvNHb.js → ArrowLeft-DUEnA4Nd.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-hVHjHInb.js → ArrowUp-Cj3qrdt2.js} +1 -1
  5. package/dist/client/assets/{CartesianChart-ClHLbDW5.js → CartesianChart-2EYd5y_X.js} +1 -1
  6. package/dist/client/assets/{CategoricalChart-oDBSn1QJ.js → CategoricalChart-DmXS7ECL.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BMxSQJ5-.js → CheckCircle-C64lUT6c.js} +1 -1
  8. package/dist/client/assets/{ChevronSelectorVertical-DDGUPocS.js → ChevronSelectorVertical-Bp0HmXls.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-DYc8wyky.js → ChevronUp-CJwDrt9i.js} +1 -1
  10. package/dist/client/assets/{CreditCard01-EEU_sSyq.js → CreditCard01-CveRJ-nE.js} +1 -1
  11. package/dist/client/assets/{Globe04-CdHKMOso.js → Globe04-CwPU5cY1.js} +1 -1
  12. package/dist/client/assets/{Key01-EDnnJ_Gd.js → Key01-CO1iFMTK.js} +1 -1
  13. package/dist/client/assets/{LinkBroken01-DhH3TW3t.js → LinkBroken01-Bwgz28FB.js} +1 -1
  14. package/dist/client/assets/{Minus-XOOEmvqX.js → Minus-DkP1LpD2.js} +1 -1
  15. package/dist/client/assets/{Monitor01-D3lVwo0x.js → Monitor01-CtzEY5rS.js} +1 -1
  16. package/dist/client/assets/{Play-DQ3lppN9.js → Play-CZO-ZBxS.js} +1 -1
  17. package/dist/client/assets/{Plus-BHZhJmPA.js → Plus-CWfURIcC.js} +1 -1
  18. package/dist/client/assets/ReferenceLine-BsgQKz7f.js +1 -0
  19. package/dist/client/assets/{SearchMd-MlMwcObI.js → SearchMd-DAllMghc.js} +1 -1
  20. package/dist/client/assets/{ShoppingBag01-sa0ohOEa.js → ShoppingBag01-iTxQHOz9.js} +1 -1
  21. package/dist/client/assets/{Sun-pw3SuSDm.js → Sun-Ohc3TP-7.js} +1 -1
  22. package/dist/client/assets/{SwitchHorizontal01-DovJE4RJ.js → SwitchHorizontal01-C1rBHkqW.js} +1 -1
  23. package/dist/client/assets/{Tool01-D5n93WAy.js → Tool01-To89YdeH.js} +1 -1
  24. package/dist/client/assets/{Tooltip-CO7rmQDW.js → Tooltip-BCfuJg-J.js} +1 -1
  25. package/dist/client/assets/{Trash01-C0pW3Nzn.js → Trash01-BvL8Hzyt.js} +1 -1
  26. package/dist/client/assets/{Upload01-CEfXDErB.js → Upload01-Dq-u1TDy.js} +1 -1
  27. package/dist/client/assets/{UserSquare-CUiDUhHX.js → UserSquare-IqXs6Ob6.js} +1 -1
  28. package/dist/client/assets/{Users01-pCKb7aTW.js → Users01-C_476AIh.js} +1 -1
  29. package/dist/client/assets/{XClose-__KXghgf.js → XClose-CyXbMn6P.js} +1 -1
  30. package/dist/client/assets/{Zap-CyJKtBha.js → Zap-BNp_Z-Q4.js} +1 -1
  31. package/dist/client/assets/{access-gate-5u0FcWOM.js → access-gate-DEAnW4z1.js} +1 -1
  32. package/dist/client/assets/{add-connection-dialog-10mnkwZu.js → add-connection-dialog-Buw8yeej.js} +1 -1
  33. package/dist/client/assets/agent-app-11iGdfc2.js +1 -0
  34. package/dist/client/assets/agent-assets-BCiTjuXL.js +1 -0
  35. package/dist/client/assets/{agent-automation-acvouPfy.js → agent-automation-KKji2g4C.js} +3 -3
  36. package/dist/client/assets/agent-automations-N9v4YwP-.js +1 -0
  37. package/dist/client/assets/agent-calendar-_jJT9j4g.js +1 -0
  38. package/dist/client/assets/{agent-capabilities-DuBCD3m1.js → agent-capabilities-CqWGulHU.js} +1 -1
  39. package/dist/client/assets/agent-connect-sources-DrCEhC6S.js +1 -0
  40. package/dist/client/assets/agent-deck-DrL1X-vP.js +1 -0
  41. package/dist/client/assets/agent-e2e-Cabf1EMN.js +1 -0
  42. package/dist/client/assets/agent-experiments-C-yojF5R.js +1 -0
  43. package/dist/client/assets/agent-file-DAP_T1DX.js +1 -0
  44. package/dist/client/assets/agent-hosting-Ct59-332.js +1 -0
  45. package/dist/client/assets/{agent-icon-Y_Y2D-pt.js → agent-icon-CyEAtnD4.js} +1 -1
  46. package/dist/client/assets/agent-library-CTK9gWN_.js +1 -0
  47. package/dist/client/assets/agent-library-file-D1VIgS6t.js +1 -0
  48. package/dist/client/assets/agent-overview-DqqJee_7.js +1 -0
  49. package/dist/client/assets/agent-releases-CHxNnvt9.js +2 -0
  50. package/dist/client/assets/agent-settings-hOdMigQW.js +1 -0
  51. package/dist/client/assets/{agent-site-editor-CJvHfyNv.js → agent-site-editor-CRPpurBM.js} +2 -2
  52. package/dist/client/assets/agent-site-editor-code-D5NF7NV5.js +2 -0
  53. package/dist/client/assets/agent-site-editor-content-y9ZBP569.js +1 -0
  54. package/dist/client/assets/agent-site-editor-preview-CbdU4DNY.js +1 -0
  55. package/dist/client/assets/agent-view-CBJ_aP-4.js +1 -0
  56. package/dist/client/assets/{agent-view-guard-BbWQWaBo.js → agent-view-guard-CuUI0SKI.js} +1 -1
  57. package/dist/client/assets/ai-providers-BehYtyN6.js +1 -0
  58. package/dist/client/assets/{alert-DmFTgsze.js → alert-piYD1OBY.js} +1 -1
  59. package/dist/client/assets/{analytics-sections-aDtwBOme.js → analytics-sections-BC0LjZf7.js} +1 -1
  60. package/dist/client/assets/{api-keys-CVVAX4Yr.js → api-keys-DEf3qRJV.js} +1 -1
  61. package/dist/client/assets/api-keys-cW3_SLVr.js +1 -0
  62. package/dist/client/assets/app-editor-CcbpDfHu.js +1 -0
  63. package/dist/client/assets/{asset-utils-C4NdP_pE.js → asset-utils-DaojEjUw.js} +1 -1
  64. package/dist/client/assets/{auth-Bh4_Y1Kc.js → auth-BEm4oG_h.js} +1 -1
  65. package/dist/client/assets/{auth-catchall-Be7BZYR0.js → auth-catchall-BN9IBRrC.js} +1 -1
  66. package/dist/client/assets/auth-entry-Bzp8kax2.js +1 -0
  67. package/dist/client/assets/{auth-split-layout-CtNY2lz5.js → auth-split-layout-CWmp3Sig.js} +1 -1
  68. package/dist/client/assets/{authenticate-and-persist-oauth-DppRl8su.js → authenticate-and-persist-oauth-Ca_HoA3c.js} +1 -1
  69. package/dist/client/assets/{automation-list-row-C4OZs3iQ.js → automation-list-row-BSMrdAmO.js} +1 -1
  70. package/dist/client/assets/automation-runs-CxwqBZ_6.js +1 -0
  71. package/dist/client/assets/automations-CS9JamnB.js +1 -0
  72. package/dist/client/assets/{autosend-Dts_wRXC.js → autosend-f_bz2mQN.js} +1 -1
  73. package/dist/client/assets/backoff-CrEUbyZT.js +1 -0
  74. package/dist/client/assets/{badge-CyMXYtjo.js → badge-DaNw4G86.js} +1 -1
  75. package/dist/client/assets/{block-document-CoEX88Lb.js → block-document-BVkQRhLN.js} +1 -1
  76. package/dist/client/assets/{blocks-preview-workspace-context-DHMHrydZ.js → blocks-preview-workspace-context-lMWKNL3u.js} +1 -1
  77. package/dist/client/assets/blocks-tab-states-C62Lqxti.js +1 -0
  78. package/dist/client/assets/{blog-schema-DL7YysBi.js → blog-schema-BMTiGoZ7.js} +1 -1
  79. package/dist/client/assets/{buckets-8Ipt1QPH.js → buckets-DAZx6iAj.js} +1 -1
  80. package/dist/client/assets/{build-improve-prompt-doc-CMFnJqyQ.js → build-improve-prompt-doc-D694fxmp.js} +1 -1
  81. package/dist/client/assets/{calendar-DJXEBE1i.js → calendar-CYiN7Wce.js} +1 -1
  82. package/dist/client/assets/{capability-load-error-CiSG_MLz.js → capability-load-error-C0TtEATp.js} +1 -1
  83. package/dist/client/assets/category-editor-CQYW_1jW.js +1 -0
  84. package/dist/client/assets/{chart-Bbcth4C6.js → chart-3_oYghBJ.js} +1 -1
  85. package/dist/client/assets/{chat-context-DrYmTpG0.js → chat-context-C2NBWo5B.js} +6 -6
  86. package/dist/client/assets/{chat-draft-B1q585AK.js → chat-draft-BKeCWTun.js} +1 -1
  87. package/dist/client/assets/{checkbox-U6ASBfOz.js → checkbox-BB17ZPJr.js} +1 -1
  88. package/dist/client/assets/{choose-editor-CStvYPQI.js → choose-editor-yLnfaP5M.js} +1 -1
  89. package/dist/client/assets/{cli-auth-success-CIlf0DYb.js → cli-auth-success-BcZGmBgf.js} +1 -1
  90. package/dist/client/assets/{client-icons-BlkrzoAd.js → client-icons-BP409HPn.js} +1 -1
  91. package/dist/client/assets/cms-settings-editor-DCmqvya0.js +1 -0
  92. package/dist/client/assets/cms-store-drafts-CQcdIlyb.js +1 -0
  93. package/dist/client/assets/{collapsible-Cm_LlHdT.js → collapsible-C7Jvo4-A.js} +1 -1
  94. package/dist/client/assets/collection-detail-DyzLwX9w.js +1 -0
  95. package/dist/client/assets/{collection-display-button-DSXrghYE.js → collection-display-button-M7pMpCZj.js} +1 -1
  96. package/dist/client/assets/{collection-search-CrfF1go0.js → collection-search-B0ISi2c7.js} +1 -1
  97. package/dist/client/assets/{collection-table-wrapper-BDabkJu0.js → collection-table-wrapper-4OAtJXKe.js} +1 -1
  98. package/dist/client/assets/{collection-tabs-CXJFRxjE.js → collection-tabs-Clyfg9Zk.js} +1 -1
  99. package/dist/client/assets/{combobox-BnA_xOFh.js → combobox-pkg7y3aG.js} +1 -1
  100. package/dist/client/assets/{command-COt4WQ5b.js → command-Bf_0n_6-.js} +1 -1
  101. package/dist/client/assets/{companion-mcps-section-BX6NWvx_.js → companion-mcps-section-BC8oXh9T.js} +1 -1
  102. package/dist/client/assets/{config-CZ7Pg3zP.js → config-B9ioVbrF.js} +1 -1
  103. package/dist/client/assets/{connect-Bubb97Ox.js → connect-BSxu_FC6.js} +3 -3
  104. package/dist/client/assets/{connect-layout-Co9op_vf.js → connect-layout-Cy8OAQ_T.js} +1 -1
  105. package/dist/client/assets/{connect-source-dialog-Cc0Mr5Dc.js → connect-source-dialog-Cn3ZJt4P.js} +1 -1
  106. package/dist/client/assets/{connection-CwG18GXt.js → connection-BZaUS2QS.js} +1 -1
  107. package/dist/client/assets/{connection-card-71syl7a3.js → connection-card-BZZPBJun.js} +1 -1
  108. package/dist/client/assets/connection-detail-DB-bbChJ.js +1 -0
  109. package/dist/client/assets/{connection-form-helpers-Ds89P2qw.js → connection-form-helpers-B7gjFuZ0.js} +1 -1
  110. package/dist/client/assets/{connection-slug-rYoZb8Oi.js → connection-slug-CB6f4Kqj.js} +1 -1
  111. package/dist/client/assets/connections-wUaFxagJ.js +1 -0
  112. package/dist/client/assets/content-tab-D0axoUXy.js +25 -0
  113. package/dist/client/assets/context-C_3anRqe.js +1 -0
  114. package/dist/client/assets/{context-menu-jXHTZA3P.js → context-menu-vkUo95q9.js} +1 -1
  115. package/dist/client/assets/{context-shell-8kNAse1h.js → context-shell-R9EeOMzY.js} +3 -3
  116. package/dist/client/assets/{core.esm-cCmn5UHs.js → core.esm-of0VMP4u.js} +1 -1
  117. package/dist/client/assets/{create-organization-dialog-Du7hzcY_.js → create-organization-dialog-mTxE_0Ii.js} +1 -1
  118. package/dist/client/assets/{device-hint-4OpoSDFU.js → device-hint-3fn2qipf.js} +1 -1
  119. package/dist/client/assets/discover-B2QIIf5L.js +1 -0
  120. package/dist/client/assets/{domain-settings--b7nhlCg.js → domain-settings-BK2c0XIt.js} +1 -1
  121. package/dist/client/assets/{drawer-CtPWRLqi.js → drawer-D-hqn8Eb.js} +1 -1
  122. package/dist/client/assets/{editor-TKi-Jvto.js → editor-YOx25knP.js} +1 -1
  123. package/dist/client/assets/{editor-classes-Bv3PWDJP.js → editor-classes-cbtWPQv1.js} +1 -1
  124. package/dist/client/assets/{empty-state-DQ9zfSjj.js → empty-state-CEmLyRP3.js} +1 -1
  125. package/dist/client/assets/{empty-state-Cgh7_fO1.js → empty-state-CMkmj7f4.js} +1 -1
  126. package/dist/client/assets/{experiments-tab-choice-DuEE4yY0.js → experiments-tab-choice-Bt52Qu8O.js} +1 -1
  127. package/dist/client/assets/{extract-connection-data-Cx40NvMQ.js → extract-connection-data-D-YIeQ0m.js} +1 -1
  128. package/dist/client/assets/{feature-gate-C9ZxgBZe.js → feature-gate-CeCOsvpu.js} +1 -1
  129. package/dist/client/assets/{feature-paywall-DK0yyspA.js → feature-paywall-D6C0LCxg.js} +1 -1
  130. package/dist/client/assets/file-explorer-D-6-zTGL.js +2 -0
  131. package/dist/client/assets/{file-preview-DrfMTr-z.js → file-preview-Djnr4HkT.js} +1 -1
  132. package/dist/client/assets/{file-share-button-Sja5jda2.js → file-share-button-Beo5Pbav.js} +1 -1
  133. package/dist/client/assets/{file-type-icon-CuR7GKVO.js → file-type-icon-D6CmKgAI.js} +1 -1
  134. package/dist/client/assets/{folder-icon-clC9OBor.js → folder-icon-DhJ2r42m.js} +1 -1
  135. package/dist/client/assets/{form-DVHd2PmG.js → form-Cda7oWcm.js} +1 -1
  136. package/dist/client/assets/{general-5mCEumRT.js → general-DO3orCVt.js} +1 -1
  137. package/dist/client/assets/{github-icon-Tj2vKr0A.js → github-icon-zKxybfp5.js} +1 -1
  138. package/dist/client/assets/home-CV6Q3GPI.js +1 -0
  139. package/dist/client/assets/{home-overview-3QBovB5F.js → home-overview-Cme8WJeC.js} +1 -1
  140. package/dist/client/assets/hosted-reconcile-B3vMVlUo.js +1 -0
  141. package/dist/client/assets/{icon-button-DVB6vEll.js → icon-button-5YUskdZP.js} +1 -1
  142. package/dist/client/assets/index--wLrlvLc.js +1 -0
  143. package/dist/client/assets/{index-aAdwJpKX.js → index-70HkizoV.js} +1 -1
  144. package/dist/client/assets/{index-BQvrkQ8K.js → index-B4ylQG2u.js} +1 -1
  145. package/dist/client/assets/{index-BswXowEw.js → index-BBngmHR9.js} +1 -1
  146. package/dist/client/assets/{index-CuXG6U4v.js → index-BPci765q.js} +1 -1
  147. package/dist/client/assets/{index-CT6x-ixs.js → index-C0DWFrzT.js} +1 -1
  148. package/dist/client/assets/{index-CX5-w0f2.js → index-C0km4oE4.js} +2 -2
  149. package/dist/client/assets/{index-DU4OpQEQ.js → index-COq098I6.js} +1 -1
  150. package/dist/client/assets/{index-DeidDxsb.js → index-Cv0l04-Q.js} +1 -1
  151. package/dist/client/assets/{index-Bm1K3DQC.js → index-D5JTVjDS.js} +60 -62
  152. package/dist/client/assets/index-DMN7ilk2.js +1 -0
  153. package/dist/client/assets/{index-mlqqyBRE.js → index-DPDIdEYU.js} +1 -1
  154. package/dist/client/assets/{index-CK23_6lH.js → index-DXAejsxR.js} +2 -2
  155. package/dist/client/assets/{index-C9UzjfpE.js → index-Dat_PK3N.js} +1 -1
  156. package/dist/client/assets/index-DljLWu39.js +4 -0
  157. package/dist/client/assets/{index-redirect-BUbGzHU7.js → index-redirect-CyxJI9Ow.js} +1 -1
  158. package/dist/client/assets/{index-BdxdoIZK.js → index-uEwQCGVp.js} +1 -1
  159. package/dist/client/assets/{infiniteQueryObserver-BNCHN17F.js → infiniteQueryObserver-dxR5IoJM.js} +1 -1
  160. package/dist/client/assets/{infra-billing-BfA1aIoB.js → infra-billing-CtfjZtsb.js} +1 -1
  161. package/dist/client/assets/{input-FxN5JtJx.js → input-BmrGKf1G.js} +4 -4
  162. package/dist/client/assets/{input-CYGCgpQ0.js → input-Cu9TlQEr.js} +1 -1
  163. package/dist/client/assets/{integration-icon-DTmGScIa.js → integration-icon-Bfrd64SC.js} +1 -1
  164. package/dist/client/assets/{jira-icon-LR0u-FDE.js → jira-icon-Cd77mK-m.js} +1 -1
  165. package/dist/client/assets/{label-BQN74rUh.js → label-k7sAVz-L.js} +1 -1
  166. package/dist/client/assets/{layout-CCsQB7LG.js → layout-DIulesAW.js} +1 -1
  167. package/dist/client/assets/{legacy-admin-welcome-dialog-DWIUyVc4.js → legacy-admin-welcome-dialog-CRXt5ATv.js} +1 -1
  168. package/dist/client/assets/{legacy-agents-deep-DD97hkrm.js → legacy-agents-deep-R-hdc_yg.js} +1 -1
  169. package/dist/client/assets/{legacy-main-redirect-CxB3kSgS.js → legacy-main-redirect-kwOY6vZR.js} +1 -1
  170. package/dist/client/assets/library-C7p7Ph3i.js +1 -0
  171. package/dist/client/assets/{library-tab-D_ZcLCG5.js → library-tab-CJStaIEd.js} +3 -3
  172. package/dist/client/assets/login-DWx3MwG-.js +1 -0
  173. package/dist/client/assets/{markdown-BiwQrQ3v.js → markdown-DBjz3jtM.js} +1 -1
  174. package/dist/client/assets/{mcp-app-renderer-BoUlGL1W.js → mcp-app-renderer-yVHian5D.js} +2 -2
  175. package/dist/client/assets/{mcp-oauth-969YqM-_.js → mcp-oauth-DLtuvhpy.js} +1 -1
  176. package/dist/client/assets/{mcp-oauth-CeW0VHOL.js → mcp-oauth-Dm2I_Qu9.js} +1 -1
  177. package/dist/client/assets/{members-DtkDG4lT.js → members-x2N4Vw0J.js} +1 -1
  178. package/dist/client/assets/{memory-WISgV3Bs.js → memory-BD78qFfE.js} +2 -2
  179. package/dist/client/assets/{mock-board-EGy4fTE1.js → mock-board-C8UWRy6h.js} +3 -3
  180. package/dist/client/assets/{monaco-editor-P5VfXFj7.js → monaco-editor-CW3ey5nQ.js} +1 -1
  181. package/dist/client/assets/{monitoring-BX8fYoyN.js → monitoring-BEcFn3qW.js} +2 -2
  182. package/dist/client/assets/{monitoring-stats-row-BKtm_vGS.js → monitoring-stats-row-YtIg03mZ.js} +1 -1
  183. package/dist/client/assets/{multi-select-C-ivHGUC.js → multi-select-CZ3IisPV.js} +1 -1
  184. package/dist/client/assets/mustache-BO_HSHzc.js +4 -0
  185. package/dist/client/assets/{named-rule-view-DL0ULoIx.js → named-rule-view-Ckk8RiOW.js} +1 -1
  186. package/dist/client/assets/{new-project-dialog-Bqd8DZyr.js → new-project-dialog-DPhA0oTs.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-ldJD55b_.js → oauth-callback-Bz3aSL1k.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-ai-provider-BSjdlkmN.js → oauth-callback-ai-provider-Ckv14VPD.js} +1 -1
  189. package/dist/client/assets/oauth-consent-CK0mQo7M.js +1 -0
  190. package/dist/client/assets/{onboarding-UUqABCLm.js → onboarding-CZuH-hz8.js} +1 -1
  191. package/dist/client/assets/openai-conversation-DQYRpzzp.js +3 -0
  192. package/dist/client/assets/{optimistic-project-sidebar-views-DuRn9Y08.js → optimistic-project-sidebar-views-Dap0uy46.js} +1 -1
  193. package/dist/client/assets/{order-monitor-day-CUJyEmQo.js → order-monitor-day-DJxDkDPK.js} +1 -1
  194. package/dist/client/assets/{organization-choice-DX6NhuKr.js → organization-choice-BQBu_t3r.js} +1 -1
  195. package/dist/client/assets/{orgs-DNB5pAN5.js → orgs-DVEZ9Fgv.js} +1 -1
  196. package/dist/client/assets/{own-accounts-section-DA3rnsqj.js → own-accounts-section-CkogzBAE.js} +1 -1
  197. package/dist/client/assets/{pair-CKUN8Ieo.js → pair-Tm6ixHZX.js} +7 -7
  198. package/dist/client/assets/parse-sections-BCNkzDIP.js +20 -0
  199. package/dist/client/assets/plan-B4BgflRT.js +1 -0
  200. package/dist/client/assets/{plan-ladder-I5kD48rz.js → plan-ladder-C_7GTmfy.js} +1 -1
  201. package/dist/client/assets/{plan-usage-card-C_GukaUZ.js → plan-usage-card-yyc2LDQ5.js} +2 -2
  202. package/dist/client/assets/{popover-Dh3TtwDo.js → popover-DDtkUGAM.js} +1 -1
  203. package/dist/client/assets/post-calendar-C8E-G398.js +1 -0
  204. package/dist/client/assets/post-editor-CjrOICtO.js +2 -0
  205. package/dist/client/assets/{preview-content-D5dxxmRk.js → preview-content-OOJjwTra.js} +1 -1
  206. package/dist/client/assets/{preview-dialog-ChQFEC_i.js → preview-dialog-B9_9-4h1.js} +1 -1
  207. package/dist/client/assets/{preview-panel-6f4Q5Yyo.js → preview-panel-CWkEsSGh.js} +1 -1
  208. package/dist/client/assets/preview-tab-BmfU4qy8.js +551 -0
  209. package/dist/client/assets/{product-picker-dialog-Bn32xknc.js → product-picker-dialog-DmROwmuC.js} +1 -1
  210. package/dist/client/assets/{profile-DQfBMC1r.js → profile-B5Ao-W4h.js} +1 -1
  211. package/dist/client/assets/project-app-view-BeFVIhv-.js +1 -0
  212. package/dist/client/assets/{project-apps-CUvGGhyU.js → project-apps-vJcMcuSw.js} +1 -1
  213. package/dist/client/assets/{project-icon-Cx2a7lKG.js → project-icon-CKmSmX0y.js} +1 -1
  214. package/dist/client/assets/{project-index-FRlpuXZ4.js → project-index-DzeeCfp_.js} +1 -1
  215. package/dist/client/assets/project-reports-DJ50j0iy.js +1 -0
  216. package/dist/client/assets/project-tasks-gKIZjaD6.js +1 -0
  217. package/dist/client/assets/projects-DVauEHOe.js +1 -0
  218. package/dist/client/assets/{projects-empty-state-RwaHaNAD.js → projects-empty-state-sOL-BBDA.js} +1 -1
  219. package/dist/client/assets/{prompts-0DQ3tgPf.js → prompts-BFuxa_VN.js} +1 -1
  220. package/dist/client/assets/record-editor-Bap6qZOm.js +1 -0
  221. package/dist/client/assets/redirect-editor-BxeGqtsm.js +1 -0
  222. package/dist/client/assets/{reports-BEOlITGh.js → reports-Bo5eMVSF.js} +2 -2
  223. package/dist/client/assets/reports-CEapm5Es.js +1 -0
  224. package/dist/client/assets/reports-onboarding-BonPi-8F.js +1 -0
  225. package/dist/client/assets/reports-tab-DvCIqmJo.js +2 -0
  226. package/dist/client/assets/repositories-CppkVdJ4.js +1 -0
  227. package/dist/client/assets/{repositories-D7rvENWr.js → repositories-D-KQnJLN.js} +1 -1
  228. package/dist/client/assets/{repository-binding-BUEX4lc5.js → repository-binding-D1uQxkFx.js} +1 -1
  229. package/dist/client/assets/{repository-picker-mdt05v0y.js → repository-picker-C97WzJvh.js} +1 -1
  230. package/dist/client/assets/{require-capability-QLRMJQu8.js → require-capability-b6B2m9hZ.js} +1 -1
  231. package/dist/client/assets/{required-auth-layout-L5uobjCB.js → required-auth-layout-EGagfJot.js} +1 -1
  232. package/dist/client/assets/{reset-password-Dkd3Ncw9.js → reset-password-CmE_fBsD.js} +1 -1
  233. package/dist/client/assets/{resizable-DTll1yV_.js → resizable-DaQlpA-x.js} +1 -1
  234. package/dist/client/assets/{resolve-tab-icon-B2Zyymzr.js → resolve-tab-icon-DT2YXdtb.js} +1 -1
  235. package/dist/client/assets/review-settings-3gg7L5j7.js +1 -0
  236. package/dist/client/assets/{role-color-B6vHBlZ3.js → role-color-DWHiXuLB.js} +1 -1
  237. package/dist/client/assets/{roles-l4Fwhlxm.js → roles-CaJ3qT2D.js} +1 -1
  238. package/dist/client/assets/route-BKxPpYzo.js +1 -0
  239. package/dist/client/assets/route-BQWtKR-1.js +1 -0
  240. package/dist/client/assets/route-CBCclLMc.js +1 -0
  241. package/dist/client/assets/sandbox-lifecycle-context-TLtiCkhr.js +1 -0
  242. package/dist/client/assets/{schema-CyJEITX6.js → schema-GTpfSrwl.js} +1 -1
  243. package/dist/client/assets/{schema-BUMYDfBQ.js → schema-nUFKc4-T.js} +1 -1
  244. package/dist/client/assets/{scroll-area-CXm8-cku.js → scroll-area-BmKaDSZE.js} +1 -1
  245. package/dist/client/assets/{search-input-CZ0rurdO.js → search-input-CQHzCbRz.js} +1 -1
  246. package/dist/client/assets/{search-toggle-BsrckUfs.js → search-toggle-CeMGF7GH.js} +1 -1
  247. package/dist/client/assets/{secret-picker-Befw6gF8.js → secret-picker-BVGElyqt.js} +1 -1
  248. package/dist/client/assets/{secrets-DZjzVDff.js → secrets-IMcoI7gR.js} +1 -1
  249. package/dist/client/assets/{section-array-field-WCaR_SKZ.js → section-array-field-Cai7-WO1.js} +1 -1
  250. package/dist/client/assets/sections-editor-DXLVKXRy.js +1 -0
  251. package/dist/client/assets/{sections-CN3XzQEo.js → sections-kEz59X6S.js} +1 -1
  252. package/dist/client/assets/{select-Ce9OTxeg.js → select-CQVc7vir.js} +1 -1
  253. package/dist/client/assets/{select-model-rpugs4qN.js → select-model-BdpVuMpN.js} +1 -1
  254. package/dist/client/assets/seo-editor-B0MowUYX.js +1 -0
  255. package/dist/client/assets/{separator-25fGJM6A.js → separator-Bi086uVR.js} +1 -1
  256. package/dist/client/assets/settings-tab-MternnNu.js +1 -0
  257. package/dist/client/assets/{sheet-CX7jm_if.js → sheet-CYzWq0C5.js} +1 -1
  258. package/dist/client/assets/{shell-layout-DS0Ie03r.js → shell-layout-CDasZtZl.js} +1 -1
  259. package/dist/client/assets/{site-draft-actions-DZryCQJo.js → site-draft-actions-DGAfzOSv.js} +1 -1
  260. package/dist/client/assets/site-draft-view-Cw1nLPAC.js +1 -0
  261. package/dist/client/assets/site-editor-DXe8gHnQ.js +1 -0
  262. package/dist/client/assets/site-editor-toast-BDK-nvmi.js +1 -0
  263. package/dist/client/assets/skills-BB2cOTNb.js +1 -0
  264. package/dist/client/assets/{slider-DAP3M4g0.js → slider-BpclMrpG.js} +1 -1
  265. package/dist/client/assets/{sortable.esm-BWLtdg41.js → sortable.esm-DnZJ13fT.js} +1 -1
  266. package/dist/client/assets/{sso-CBSK2hBa.js → sso-Duym-4P5.js} +1 -1
  267. package/dist/client/assets/{suggestion-D3mu_Xk3.js → suggestion-3ASGR19n.js} +2 -2
  268. package/dist/client/assets/{super-agent-icon-B-NqGats.js → super-agent-icon-ByjckCKg.js} +1 -1
  269. package/dist/client/assets/{switch-5zR0_RyT.js → switch-CJkGcAAF.js} +1 -1
  270. package/dist/client/assets/{synced-repos-CKVdc7QA.js → synced-repos-B9-UBrf5.js} +1 -1
  271. package/dist/client/assets/{tab-icon-glyph-tV1b5yjJ.js → tab-icon-glyph-DHmh8_ep.js} +1 -1
  272. package/dist/client/assets/{table-CZbeUf_X.js → table-J8AZTR7q.js} +1 -1
  273. package/dist/client/assets/{tabs-D8DBFsJ6.js → tabs-DIjFMHqR.js} +1 -1
  274. package/dist/client/assets/{task-board-CmZ-3pYa.js → task-board-Q2IPP00u.js} +1 -1
  275. package/dist/client/assets/{task-route-ohp4Cwjz.js → task-route-BDpoB5Zy.js} +1 -1
  276. package/dist/client/assets/{task-status-CwNwAqHk.js → task-status-DdmmZ6E8.js} +1 -1
  277. package/dist/client/assets/taskboard-analytics-BR8paGe5.js +1 -0
  278. package/dist/client/assets/{tasks-DxAmGFRX.js → tasks-4eSU5FGs.js} +3 -3
  279. package/dist/client/assets/tasks-utKmX54q.js +1 -0
  280. package/dist/client/assets/{textarea-BNrj1CIV.js → textarea-CpiU69Ue.js} +1 -1
  281. package/dist/client/assets/thread-analytics-BlwpoJpK.js +1 -0
  282. package/dist/client/assets/{thread-intent-C_sXnvWO.js → thread-intent-H-ElZUeF.js} +4 -4
  283. package/dist/client/assets/thread-route-BHzoGA78.js +1 -0
  284. package/dist/client/assets/{thread-route-C4AshLS2.js → thread-route-D5hmfGyG.js} +1 -1
  285. package/dist/client/assets/{thread-sheet-body-tV8G2x4y.js → thread-sheet-body-Dz7BlS1y.js} +1 -1
  286. package/dist/client/assets/{time-range-picker--yg_KuCO.js → time-range-picker-BIdG7mXn.js} +1 -1
  287. package/dist/client/assets/{toggle-group-D4APjUwC.js → toggle-group-CGJg_L2O.js} +1 -1
  288. package/dist/client/assets/{tool-namespace-sf3dpjw4.js → tool-namespace-C-xeHqGi.js} +1 -1
  289. package/dist/client/assets/{tool-set-selector-CBkMfKhT.js → tool-set-selector-Cr6gkCdx.js} +1 -1
  290. package/dist/client/assets/{toolbar-icon-button-kyI973z_.js → toolbar-icon-button-Di32SV8o.js} +1 -1
  291. package/dist/client/assets/{tooltip-D0Aro8zv.js → tooltip-jOxEmSG_.js} +1 -1
  292. package/dist/client/assets/{tooltipContext-CI284Wq3.js → tooltipContext-DIU-cJjQ.js} +1 -1
  293. package/dist/client/assets/{track-DFZVIiLp.js → track-DYiOEE09.js} +1 -1
  294. package/dist/client/assets/{types-1fP0kZ0m.js → types-2LnoGk33.js} +6 -6
  295. package/dist/client/assets/{url-slug-DTpv_sm0.js → url-slug-CFfLRMyn.js} +1 -1
  296. package/dist/client/assets/{usage-stats-CXQ9FoWO.js → usage-stats-CrYn2F_n.js} +1 -1
  297. package/dist/client/assets/{use-ai-providers-BCXggb0b.js → use-ai-providers-B5kWXzlb.js} +1 -1
  298. package/dist/client/assets/use-apply-named-rule-Dizpbfqo.js +1 -0
  299. package/dist/client/assets/use-ask-in-chat-LDSL7Q-h.js +1 -0
  300. package/dist/client/assets/{use-automations-DxfaOtys.js → use-automations-Dlgg8E_B.js} +1 -1
  301. package/dist/client/assets/{use-autosave-DiZxq1F5.js → use-autosave-CFzeEn5L.js} +1 -1
  302. package/dist/client/assets/use-blocks-v8-project-CJJQ7561.js +1 -0
  303. package/dist/client/assets/{use-chat-layout-state-DCbtnqWd.js → use-chat-layout-state-CVfG9ZjQ.js} +1 -1
  304. package/dist/client/assets/{use-cms-publish-actions-DBCI1z7k.js → use-cms-publish-actions-CzkgoHM5.js} +4 -4
  305. package/dist/client/assets/{use-connect-companion--SDSQ7TK.js → use-connect-companion-CrZsN0Ue.js} +1 -1
  306. package/dist/client/assets/use-connection--DRTknMY.js +1 -0
  307. package/dist/client/assets/use-content-sync-X9ZavIF9.js +1 -0
  308. package/dist/client/assets/{use-copy-fJBOhwQv.js → use-copy-Cx-61EpR.js} +1 -1
  309. package/dist/client/assets/{use-date-fns-locale-UVVfd2fe.js → use-date-fns-locale-BitdM9Lm.js} +1 -1
  310. package/dist/client/assets/{use-debounced-autosave-CcJrNQv9.js → use-debounced-autosave-Cj50Nsez.js} +1 -1
  311. package/dist/client/assets/{use-debounced-value-BsCdYGvU.js → use-debounced-value-CHh-krI7.js} +1 -1
  312. package/dist/client/assets/{use-deco-credits-Dw1Zq3DU.js → use-deco-credits-BB9bEynW.js} +1 -1
  313. package/dist/client/assets/{use-decopilot-events-DSC6YnSZ.js → use-decopilot-events-BDb0EmeO.js} +1 -1
  314. package/dist/client/assets/{use-delete-connection-BtzLw5Mh.js → use-delete-connection-BPB8BZwn.js} +1 -1
  315. package/dist/client/assets/{use-deployment-admin-hI6GNxTJ.js → use-deployment-admin-BoY2ewV3.js} +1 -1
  316. package/dist/client/assets/{use-entitlements-q4zqHldY.js → use-entitlements-D4mSc5Cp.js} +1 -1
  317. package/dist/client/assets/use-fast-preview-draft-url-CVcXXs8a.js +1 -0
  318. package/dist/client/assets/{use-file-configs-DGBf9XU8.js → use-file-configs-CpiJCP8r.js} +1 -1
  319. package/dist/client/assets/{use-id-selection-CJeGPaiA.js → use-id-selection-DopiQt0l.js} +1 -1
  320. package/dist/client/assets/{use-inbox-feed-cS-t8Kt0.js → use-inbox-feed-BsM6gh2i.js} +1 -1
  321. package/dist/client/assets/{use-infinite-scroll-DbrSLbYQ.js → use-infinite-scroll-BoXGdLFV.js} +1 -1
  322. package/dist/client/assets/{use-join-requests-l6ugTnm0.js → use-join-requests-BnvIkMDK.js} +1 -1
  323. package/dist/client/assets/use-main-panel-tabs-DP8Se22V.js +1 -0
  324. package/dist/client/assets/{use-mcp-auth-status-DNGtFPYZ.js → use-mcp-auth-status-C6mm2dx-.js} +1 -1
  325. package/dist/client/assets/{use-mcp-client-WgWOA1hL.js → use-mcp-client-MTfMkTH7.js} +1 -1
  326. package/dist/client/assets/{use-mcp-prompts-bAmVEPg_.js → use-mcp-prompts-DF4L56V0.js} +1 -1
  327. package/dist/client/assets/{use-mcp-tools-BIB4FISj.js → use-mcp-tools-DBzIZ6Yt.js} +1 -1
  328. package/dist/client/assets/{use-mobile-BDHJ5g4G.js → use-mobile-BygREY6g.js} +1 -1
  329. package/dist/client/assets/use-move-blocks-Pb7YqOrR.js +1 -0
  330. package/dist/client/assets/{use-navigate-to-agent-BJdqgQKH.js → use-navigate-to-agent-CUGpLynv.js} +1 -1
  331. package/dist/client/assets/{use-org-fs-Du2G3PF4.js → use-org-fs-DGCW_gg3.js} +1 -1
  332. package/dist/client/assets/{use-org-repo-syncs-CUbaI7hL.js → use-org-repo-syncs-8TiY-Dtu.js} +1 -1
  333. package/dist/client/assets/{use-org-sso-BqLBrHG0.js → use-org-sso-kiS_a_Hy.js} +1 -1
  334. package/dist/client/assets/{use-organization-settings-CiRL-ND2.js → use-organization-settings-eR5KVMHI.js} +1 -1
  335. package/dist/client/assets/{use-project-native-view-presence-CpBcMOzg.js → use-project-native-view-presence-Cgn3HbDA.js} +1 -1
  336. package/dist/client/assets/{use-project-scope-BkidtyNv.js → use-project-scope-BncPwEbb.js} +1 -1
  337. package/dist/client/assets/{use-recent-apps-BHprhf_5.js → use-recent-apps-CvhjzSmX.js} +1 -1
  338. package/dist/client/assets/{use-reports-diagnostic-CLVn3MVk.js → use-reports-diagnostic-DReWL1Ws.js} +1 -1
  339. package/dist/client/assets/use-sandbox-events-UMUDF5eC.js +2 -0
  340. package/dist/client/assets/{use-secrets-blVuAHm2.js → use-secrets-BJSXA0oF.js} +1 -1
  341. package/dist/client/assets/{use-section-preview-base-Fd7YfHr6.js → use-section-preview-base-CK2eDEYI.js} +1 -1
  342. package/dist/client/assets/{use-sidebar-collapsed-SkR6IFg9.js → use-sidebar-collapsed-BORDo4yS.js} +1 -1
  343. package/dist/client/assets/{use-tags-y0sDD-Gd.js → use-tags-rAAc1TuX.js} +1 -1
  344. package/dist/client/assets/{use-task-board-analytics--M1ga7ad.js → use-task-board-analytics-Cmd6E4pH.js} +1 -1
  345. package/dist/client/assets/{use-task-board-events-DFXBTSz0.js → use-task-board-events-Bx0vummF.js} +1 -1
  346. package/dist/client/assets/{use-task-board-item-prs-CNVxgnEG.js → use-task-board-item-prs-D_6Kpz2N.js} +1 -1
  347. package/dist/client/assets/{use-task-board-items-CNR2hq29.js → use-task-board-items-BXyuX5BP.js} +1 -1
  348. package/dist/client/assets/{use-task-board-prompts-CY0qH8TO.js → use-task-board-prompts-C4g8M58-.js} +1 -1
  349. package/dist/client/assets/{use-task-metadata-BAgQZZyc.js → use-task-metadata-DmA6QEfS.js} +1 -1
  350. package/dist/client/assets/{use-thread-outputs-C4WTlJbf.js → use-thread-outputs-A-hi8vEK.js} +1 -1
  351. package/dist/client/assets/{use-voice-input-CelDzfp5.js → use-voice-input-Dle98Xuw.js} +1 -1
  352. package/dist/client/assets/useInfiniteQuery-BlDVNspQ.js +1 -0
  353. package/dist/client/assets/{useQueries-BH3au6Bf.js → useQueries-B7YRQkhk.js} +1 -1
  354. package/dist/client/assets/useSuspenseInfiniteQuery-C0l73gR7.js +1 -0
  355. package/dist/client/assets/{users-Bnea6Y3M.js → users--AzEWcOG.js} +1 -1
  356. package/dist/client/assets/{utils-8mUwv_Ld.js → utils-DfUXPzR4.js} +1 -1
  357. package/dist/client/assets/{variant-calendar-BvpRFRX6.js → variant-calendar-DEiF7lUD.js} +1 -1
  358. package/dist/client/assets/{variant-matcher-override-Bna1heSd.js → variant-matcher-override-BxWLkMrh.js} +1 -1
  359. package/dist/client/assets/{view-header-CYkLhMn3.js → view-header-C7xGnakz.js} +1 -1
  360. package/dist/client/assets/{virtual-mcp-CfQIOHDY.js → virtual-mcp-D_RaSGfs.js} +1 -1
  361. package/dist/client/assets/watch-sse-pool-Dzv2fvAX.js +1 -0
  362. package/dist/client/index.html +1 -1
  363. package/dist/server/server.js +681 -681
  364. package/package.json +1 -1
  365. package/dist/client/assets/ReferenceLine-ClCgVjRG.js +0 -1
  366. package/dist/client/assets/agent-app-DdBuGJK2.js +0 -1
  367. package/dist/client/assets/agent-assets-C3IeAW1B.js +0 -1
  368. package/dist/client/assets/agent-automations-D0NXC_6r.js +0 -1
  369. package/dist/client/assets/agent-calendar-BOtDL5wE.js +0 -1
  370. package/dist/client/assets/agent-connect-sources-a50GCyKV.js +0 -1
  371. package/dist/client/assets/agent-deck-OGgkBkIO.js +0 -1
  372. package/dist/client/assets/agent-e2e-BIYV3C1W.js +0 -1
  373. package/dist/client/assets/agent-experiments-DcDMdMaW.js +0 -1
  374. package/dist/client/assets/agent-file-BkEsRI8m.js +0 -1
  375. package/dist/client/assets/agent-hosting-CaYpr3GJ.js +0 -1
  376. package/dist/client/assets/agent-library--BMPxGd9.js +0 -1
  377. package/dist/client/assets/agent-library-file-_vX06T41.js +0 -1
  378. package/dist/client/assets/agent-overview-D74SB75d.js +0 -1
  379. package/dist/client/assets/agent-releases-B3ihZIQn.js +0 -2
  380. package/dist/client/assets/agent-settings-nSX8psll.js +0 -1
  381. package/dist/client/assets/agent-site-editor-code-hU9FQE4u.js +0 -2
  382. package/dist/client/assets/agent-site-editor-content-DTRDfZ6d.js +0 -1
  383. package/dist/client/assets/agent-site-editor-preview-zxTAZW7-.js +0 -1
  384. package/dist/client/assets/agent-view-BHr6uCB4.js +0 -1
  385. package/dist/client/assets/ai-providers-BWLZYJlr.js +0 -1
  386. package/dist/client/assets/api-keys-DQZBigkX.js +0 -1
  387. package/dist/client/assets/app-editor-miZ_XprR.js +0 -1
  388. package/dist/client/assets/auth-entry-BVPXWLe3.js +0 -1
  389. package/dist/client/assets/automation-runs-CnJ5cVfz.js +0 -1
  390. package/dist/client/assets/automations-CTrZyCJH.js +0 -1
  391. package/dist/client/assets/blocks-tab-states-Dedoi43j.js +0 -1
  392. package/dist/client/assets/category-editor-D2AAL1sO.js +0 -1
  393. package/dist/client/assets/cms-settings-editor-CvyPaB8P.js +0 -1
  394. package/dist/client/assets/cms-store-drafts-BxSsz4kW.js +0 -1
  395. package/dist/client/assets/collection-detail-XmdxNV-2.js +0 -1
  396. package/dist/client/assets/connection-detail-CDwQfSDO.js +0 -1
  397. package/dist/client/assets/connections-DRfQlA6E.js +0 -1
  398. package/dist/client/assets/content-tab-CsKhgP-1.js +0 -25
  399. package/dist/client/assets/context-DC5XiDXT.js +0 -1
  400. package/dist/client/assets/discover-C_ji7DIb.js +0 -1
  401. package/dist/client/assets/file-explorer-DdXpHyf2.js +0 -2
  402. package/dist/client/assets/home-qRxdFYCq.js +0 -1
  403. package/dist/client/assets/hosted-reconcile-DVhqOXEf.js +0 -1
  404. package/dist/client/assets/index-BomXABHH.js +0 -4
  405. package/dist/client/assets/index-CWJov9JR.js +0 -1
  406. package/dist/client/assets/index-CvZuGBnK.js +0 -1
  407. package/dist/client/assets/library-1cj6yrAd.js +0 -1
  408. package/dist/client/assets/login-BMHrPCue.js +0 -1
  409. package/dist/client/assets/mustache-Dky3CPha.js +0 -4
  410. package/dist/client/assets/oauth-consent-DIuym-vW.js +0 -1
  411. package/dist/client/assets/openai-conversation-BqSCxp3u.js +0 -3
  412. package/dist/client/assets/parse-sections-B7udX6Q3.js +0 -20
  413. package/dist/client/assets/plan-D2GzfM6v.js +0 -1
  414. package/dist/client/assets/post-calendar-Ci2Ls6m8.js +0 -1
  415. package/dist/client/assets/post-editor-DmPdxQfI.js +0 -2
  416. package/dist/client/assets/preview-tab-DNewpfvP.js +0 -551
  417. package/dist/client/assets/project-app-view-UUbUguKi.js +0 -1
  418. package/dist/client/assets/project-reports-Bx0n9tHU.js +0 -1
  419. package/dist/client/assets/project-tasks-CMCbN_AC.js +0 -1
  420. package/dist/client/assets/projects-DAB5tzLY.js +0 -1
  421. package/dist/client/assets/record-editor-43ke-tWv.js +0 -1
  422. package/dist/client/assets/redirect-editor-D_h26Q_F.js +0 -1
  423. package/dist/client/assets/reports-CP9Hb1Gh.js +0 -1
  424. package/dist/client/assets/reports-onboarding-DHSkaogY.js +0 -1
  425. package/dist/client/assets/reports-tab-CftmyHYx.js +0 -2
  426. package/dist/client/assets/repositories-BzfxqBWi.js +0 -1
  427. package/dist/client/assets/review-settings-7WUisQRH.js +0 -1
  428. package/dist/client/assets/route-CrtRl_aj.js +0 -1
  429. package/dist/client/assets/route-DStyEO0f.js +0 -1
  430. package/dist/client/assets/route-ItnObgTw.js +0 -1
  431. package/dist/client/assets/sandbox-lifecycle-context-6658FNhj.js +0 -1
  432. package/dist/client/assets/sections-editor-BnPN3p47.js +0 -1
  433. package/dist/client/assets/seo-editor-334ImWU2.js +0 -1
  434. package/dist/client/assets/settings-tab-DCh5Ul7G.js +0 -1
  435. package/dist/client/assets/site-draft-view-DQTaKqUY.js +0 -1
  436. package/dist/client/assets/site-editor-4zkxaogV.js +0 -1
  437. package/dist/client/assets/site-editor-toast-CRsx3bHf.js +0 -1
  438. package/dist/client/assets/skills-I-Yj8qR2.js +0 -1
  439. package/dist/client/assets/taskboard-analytics-DGRgeO3t.js +0 -1
  440. package/dist/client/assets/tasks-DqNpLYyB.js +0 -1
  441. package/dist/client/assets/thread-analytics-DsWQnd7G.js +0 -1
  442. package/dist/client/assets/thread-route-oy9R75fs.js +0 -1
  443. package/dist/client/assets/use-apply-named-rule-BLra67_a.js +0 -1
  444. package/dist/client/assets/use-ask-in-chat-BGPRlKfS.js +0 -1
  445. package/dist/client/assets/use-blocks-v8-project-Al0tYlYk.js +0 -1
  446. package/dist/client/assets/use-connection-D3dXxxHo.js +0 -1
  447. package/dist/client/assets/use-content-sync-Bqyh9W67.js +0 -1
  448. package/dist/client/assets/use-fast-preview-draft-url-s7AmJx8I.js +0 -1
  449. package/dist/client/assets/use-main-panel-tabs-CO4jdgC_.js +0 -1
  450. package/dist/client/assets/use-move-blocks-DfWxYCvW.js +0 -1
  451. package/dist/client/assets/use-sandbox-events-C1Ie1sWJ.js +0 -2
  452. package/dist/client/assets/useInfiniteQuery-B7UWNEWx.js +0 -1
  453. package/dist/client/assets/useSuspenseInfiniteQuery-TfssA_Zz.js +0 -1
  454. package/dist/client/assets/watch-sse-pool-ECs_hZYZ.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as C,b as ee,j as s,q as ze,K as Ne,r as Z,ar as Ae,B as Ie,h as Pe}from"./index-D5JTVjDS.js";import{a1 as we}from"./agent-icon-CyEAtnD4.js";import{S as Ee}from"./scroll-area-BmKaDSZE.js";import{Q as Oe,aD as Ue,k as fe,a4 as Be,aE as He,aF as Re,aG as Me,d as Qe,aH as Ge,K as _e,aI as qe,ag as Ve,i as We,aJ as Ye,ah as Je,h as Ze}from"./parse-sections-BCNkzDIP.js";import{Z as Xe,A as et}from"./blocks-tab-states-C62Lqxti.js";import{L as Fe}from"./label-k7sAVz-L.js";import{S as Ce}from"./switch-CJkGcAAF.js";import{c as tt,b as st,a as lt,d as ot,S as it}from"./select-CQVc7vir.js";import{l as nt,t as rt,u as at,m as ct}from"./site-editor-toast-BDK-nvmi.js";import{c as dt,u as ft}from"./hosted-reconcile-B3vMVlUo.js";import{b as Ke}from"./Tool01-To89YdeH.js";const mt="https://deco.cx/docs/en/performance/edge-async-render";function ut(a){const e=C.c(30),{rawSeo:t,onEnableChange:i,onAsyncRenderChange:d,enableUnavailable:r,enableUnavailableHint:l,children:o}=a,u=r===void 0?!1:r,c=ee(),m=Oe();let p;e[0]!==t?(p=fe(t),e[0]=t,e[1]=p):p=e[1];const n=p;let f;e[2]!==t?(f=Ue(t),e[2]=t,e[3]=f):f=e[3];const h=f,x=!n&&u;let y;e[4]!==c?(y=c("sectionsEditor.seoFormChrome.enableLabel"),e[4]=c,e[5]=y):y=e[5];let v;e[6]!==y?(v=s.jsx(Fe,{htmlFor:"seo-enable",className:"text-sm font-medium",children:y}),e[6]=y,e[7]=v):v=e[7];const k=x&&l?"seo-enable-hint":void 0;let b;e[8]!==x||e[9]!==n||e[10]!==i||e[11]!==k?(b=s.jsx(Ce,{id:"seo-enable",checked:n,disabled:x,"aria-describedby":k,onCheckedChange:i}),e[8]=x,e[9]=n,e[10]=i,e[11]=k,e[12]=b):b=e[12];let S;e[13]!==v||e[14]!==b?(S=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[v,b]}),e[13]=v,e[14]=b,e[15]=S):S=e[15];let j;e[16]!==x||e[17]!==l?(j=x&&l&&s.jsx("p",{id:"seo-enable-hint",className:"text-xs leading-normal text-muted-foreground",children:l}),e[16]=x,e[17]=l,e[18]=j):j=e[18];let g;e[19]!==h||e[20]!==o||e[21]!==m||e[22]!==n||e[23]!==d||e[24]!==c?(g=n&&(m||!d?o:s.jsxs(s.Fragment,{children:[o,s.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[s.jsxs("div",{className:"min-w-0 space-y-1",children:[s.jsx("p",{className:"text-sm font-medium",children:c("sectionsEditor.seoFormChrome.asyncRenderLabel")}),s.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",s.jsx("a",{href:mt,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:c("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),s.jsx(Ce,{id:"seo-async-render",checked:h,onCheckedChange:d,className:"shrink-0"})]})]})),e[19]=h,e[20]=o,e[21]=m,e[22]=n,e[23]=d,e[24]=c,e[25]=g):g=e[25];let N;return e[26]!==g||e[27]!==S||e[28]!==j?(N=s.jsxs("div",{className:"space-y-4",children:[S,j,g]}),e[26]=g,e[27]=S,e[28]=j,e[29]=N):N=e[29],N}function pt(a){const e=C.c(20),{options:t,value:i,onChange:d}=a,r=ee();if(t.length<=1)return null;let l;e[0]!==r?(l=r("sectionsEditor.seoTypeSelect.label"),e[0]=r,e[1]=l):l=e[1];let o;e[2]!==l?(o=s.jsx(Fe,{className:"text-xs text-muted-foreground",children:l}),e[2]=l,e[3]=o):o=e[3];let u;e[4]!==r?(u=r("sectionsEditor.seoTypeSelect.placeholder"),e[4]=r,e[5]=u):u=e[5];let c;e[6]!==u?(c=s.jsx(st,{className:"w-full",children:s.jsx(lt,{placeholder:u})}),e[6]=u,e[7]=c):c=e[7];let m;e[8]!==t?(m=t.filter(xt).map(ht),e[8]=t,e[9]=m):m=e[9];let p;e[10]!==m?(p=s.jsx(ot,{children:m}),e[10]=m,e[11]=p):p=e[11];let n;e[12]!==d||e[13]!==c||e[14]!==p||e[15]!==i?(n=s.jsxs(it,{value:i,onValueChange:d,children:[c,p]}),e[12]=d,e[13]=c,e[14]=p,e[15]=i,e[16]=n):n=e[16];let f;return e[17]!==o||e[18]!==n?(f=s.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[o,n]}),e[17]=o,e[18]=n,e[19]=f):f=e[19],f}function ht(a){return s.jsx(tt,{value:a.resolveType,children:a.title},a.resolveType)}function xt(a){return a.resolveType.length>0}function yt(a){const e=C.c(40),{rawSeo:t,innerSeo:i,defaultResolveType:d,seoSchema:r,activeResolveType:l,seoTypeOptions:o,formResetKey:u,siteDefaultSeo:c,onBreadcrumbChange:m,onPersistRaw:p,onInnerChange:n,onClearForm:f,onBumpFormKey:h,beforeFields:x,asyncRenderAvailable:y,seoTypesLoading:v}=a,k=y===void 0?!0:y,b=v===void 0?!1:v,S=ee(),g=!Be()||!b&&d!=="";let N;e[0]!==d||e[1]!==h||e[2]!==f||e[3]!==p||e[4]!==g?(N=K=>{if(K){if(!g)return;const $=Me(d);p($),f(),h();return}p(null),f(),h()},e[0]=d,e[1]=h,e[2]=f,e[3]=p,e[4]=g,e[5]=N):N=e[5];const w=N;let E;e[6]!==p||e[7]!==t?(E=K=>{const $=He(K,t);p($)},e[6]=p,e[7]=t,e[8]=E):E=e[8];const T=E;let _;e[9]!==h||e[10]!==n?(_=K=>{n({__resolveType:K}),h()},e[9]=h,e[10]=n,e[11]=_):_=e[11];const L=_,z=!g;let R;e[12]!==g||e[13]!==b||e[14]!==S?(R=g||b?void 0:S("sectionsEditor.seoFormChrome.noSeoTypeHint"),e[12]=g,e[13]=b,e[14]=S,e[15]=R):R=e[15];const Y=k?T:void 0;let P;e[16]!==l||e[17]!==L||e[18]!==t||e[19]!==r||e[20]!==o?(P=fe(t)&&r&&l&&o&&o.length>0&&s.jsx(pt,{options:o,value:l,onChange:L}),e[16]=l,e[17]=L,e[18]=t,e[19]=r,e[20]=o,e[21]=P):P=e[21];let F;e[22]!==l||e[23]!==u||e[24]!==i||e[25]!==m||e[26]!==n||e[27]!==t||e[28]!==r||e[29]!==c?(F=fe(t)&&r&&l&&s.jsx(Re,{schema:r,resolveType:l,value:i,formResetKey:u,onChange:K=>n(K),onBreadcrumbChange:m,siteDefaultSeo:c}),e[22]=l,e[23]=u,e[24]=i,e[25]=m,e[26]=n,e[27]=t,e[28]=r,e[29]=c,e[30]=F):F=e[30];let U;return e[31]!==x||e[32]!==w||e[33]!==t||e[34]!==F||e[35]!==z||e[36]!==R||e[37]!==Y||e[38]!==P?(U=s.jsxs(ut,{rawSeo:t,onEnableChange:w,enableUnavailable:z,enableUnavailableHint:R,onAsyncRenderChange:Y,children:[x,P,F]}),e[31]=x,e[32]=w,e[33]=t,e[34]=F,e[35]=z,e[36]=R,e[37]=Y,e[38]=P,e[39]=U):U=e[39],U}function Se(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function vt(a,e,t,i){if(a.kind==="page"){if(!Se(t))return null;const d=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:i===null?null:Ge(i,d)}}return Se(t)?e.siteKind==="block"?i:{...t,seo:i}:null}function gt(a,e,t){if(e===null&&Xe(t??void 0)){const{seo:i,...d}=a;return d}return{...a,seo:e}}function bt(a,e){const t=a.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function St(a){const e=C.c(29),{orgSlug:t,virtualMcpId:i,branch:d,target:r,resolved:l,meta:o,onSaved:u}=a,c=ze();let m;e[0]!==d||e[1]!==t||e[2]!==i?(m={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=m):m=e[3];const p=nt(m);let n;e[4]!==d||e[5]!==t||e[6]!==i?(n={orgSlug:t,virtualMcpId:i,branch:d},e[4]=d,e[5]=t,e[6]=i,e[7]=n):n=e[7];let f;e[8]!==u?(f={onSaved:u,holdsCopy:!0},e[8]=u,e[9]=f):f=e[9];const{save:h,flush:x,isPending:y,hold:v,v8:k}=Qe(n,f),b=k?p:`${t}/${i}/${d}`;let S;e[10]!==b||e[11]!==c||e[12]!==l||e[13]!==h||e[14]!==r?(S=E=>{l&&h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return vt(r,l,_,E)})},e[10]=b,e[11]=c,e[12]=l,e[13]=h,e[14]=r,e[15]=S):S=e[15];const j=S;let g;e[16]!==b||e[17]!==o||e[18]!==c||e[19]!==l||e[20]!==h||e[21]!==r?(g=E=>{!l||r.kind!=="page"||h(l.blockKey,()=>{const _=c.getQueryData(Ne.decofile(b))?.[l.blockKey];return Se(_)?gt(_,E,o):null})},e[16]=b,e[17]=o,e[18]=c,e[19]=l,e[20]=h,e[21]=r,e[22]=g):g=e[22];const N=g;let w;return e[23]!==x||e[24]!==v||e[25]!==y||e[26]!==N||e[27]!==j?(w={persistSeo:j,persistRawSeo:N,flush:x,isPending:y,hold:v},e[23]=x,e[24]=v,e[25]=y,e[26]=N,e[27]=j,e[28]=w):w=e[28],w}function X(a){return typeof a=="string"&&a.trim()?a:void 0}function Te(a,e){if(a){if(e)try{const t=new URL(a,e).href;return _e(t)}catch{return}return _e(a)}}function jt(a){if(!a)return{};const e=X(a.title),t=X(a.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:X(a.description),image:X(a.image),favicon:X(a.favicon)}}function kt(a){if(!a)return"example.com";try{return new URL(a).host}catch{return"example.com"}}const Nt=[{id:"google",labelKey:"sectionsEditor.seoPreview.platformGoogle",color:"#4285F4",layout:"search"},{id:"facebook",labelKey:"sectionsEditor.seoPreview.platformFacebook",color:"#1877F2",layout:"card"},{id:"twitter",labelKey:"sectionsEditor.seoPreview.platformTwitter",color:"#0f1419",layout:"card"},{id:"linkedin",labelKey:"sectionsEditor.seoPreview.platformLinkedin",color:"#0A66C2",layout:"card"},{id:"whatsapp",labelKey:"sectionsEditor.seoPreview.platformWhatsapp",color:"#25D366",layout:"chat"},{id:"telegram",labelKey:"sectionsEditor.seoPreview.platformTelegram",color:"#229ED9",layout:"chat"},{id:"slack",labelKey:"sectionsEditor.seoPreview.platformSlack",color:"#611f69",layout:"attachment"},{id:"discord",labelKey:"sectionsEditor.seoPreview.platformDiscord",color:"#5865F2",layout:"attachment"}];function je(a){const e=C.c(10),{src:t,className:i,iconSize:d}=a,r=d===void 0?20:d;if(t){let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={objectFit:"cover"},e[0]=c):c=e[0];let m;return e[1]!==i||e[2]!==t?(m=s.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:i,style:c}),e[1]=i,e[2]=t,e[3]=m):m=e[3],m}let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=l):l=e[4];let o;e[5]!==r?(o=s.jsx(Ke,{size:r}),e[5]=r,e[6]=o):o=e[6];let u;return e[7]!==i||e[8]!==o?(u=s.jsx("div",{className:i,style:l,children:o}),e[7]=i,e[8]=o,e[9]=u):u=e[9],u}function wt(a){const e=C.c(33),{seo:t,host:i,path:d,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#fff",border:"1px solid #dadce0"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={background:"#f1f3f4"},e[1]=o):o=e[1];let u;e[2]!==t.favicon?(u=s.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:o,children:t.favicon?s.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):s.jsx(Ke,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=u):u=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#202124"},e[4]=c):c=e[4];let m;e[5]!==i?(m=s.jsx("div",{className:"truncate text-[13px] leading-tight",style:c,children:i}),e[5]=i,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#4d5156"},e[7]=p):p=e[7];let n;e[8]!==i||e[9]!==d?(n=s.jsxs("div",{className:"truncate text-[12px] leading-tight",style:p,children:[i,d]}),e[8]=i,e[9]=d,e[10]=n):n=e[10];let f;e[11]!==m||e[12]!==n?(f=s.jsxs("div",{className:"min-w-0",children:[m,n]}),e[11]=m,e[12]=n,e[13]=f):f=e[13];let h;e[14]!==u||e[15]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2",children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#1a0dab"},e[17]=x):x=e[17];let y;e[18]!==t.title||e[19]!==r?(y=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[18]=t.title,e[19]=r,e[20]=y):y=e[20];let v;e[21]!==y?(v=s.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=v):v=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k={color:"#4d5156"},e[23]=k):k=e[23];let b;e[24]!==t.description||e[25]!==r?(b=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=b):b=e[26];let S;e[27]!==b?(S=s.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:k,children:b}),e[27]=b,e[28]=S):S=e[28];let j;return e[29]!==v||e[30]!==S||e[31]!==h?(j=s.jsxs("div",{className:"rounded-lg p-3 text-left",style:l,children:[h,v,S]}),e[29]=v,e[30]=S,e[31]=h,e[32]=j):j=e[32],j}function Et(a){const e=C.c(26),{seo:t,host:i,t:d}=a;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let l;e[1]!==t.image?(l=s.jsx(je,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o={borderTop:"1px solid #e2e8f0"},e[3]=o):o=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u={color:"#8a9099"},e[4]=u):u=e[4];let c;e[5]!==i?(c=s.jsx("div",{className:"truncate text-[11px]",style:u,children:i}),e[5]=i,e[6]=c):c=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#1c2024"},e[7]=m):m=e[7];let p;e[8]!==t.title||e[9]!==d?(p=t.title??d("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=d,e[10]=p):p=e[10];let n;e[11]!==p?(n=s.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:m,children:p}),e[11]=p,e[12]=n):n=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#60666c"},e[13]=f):f=e[13];let h;e[14]!==t.description||e[15]!==d?(h=t.description??d("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=d,e[16]=h):h=e[16];let x;e[17]!==h?(x=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:f,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==c||e[21]!==n?(y=s.jsxs("div",{className:"px-3 py-2",style:o,children:[c,n,x]}),e[19]=x,e[20]=c,e[21]=n,e[22]=y):y=e[22];let v;return e[23]!==y||e[24]!==l?(v=s.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[l,y]}),e[23]=y,e[24]=l,e[25]=v):v=e[25],v}function _t(a){const e=C.c(36),{seo:t,host:i,accent:d,t:r}=a;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={background:"#f0f2f5"},e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={color:"#3b4045"},e[1]=o):o=e[1];let u;e[2]!==r?(u=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=u):u=e[3];let c;e[4]!==u?(c=s.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:o,children:u}),e[4]=u,e[5]=c):c=e[5];const m=`3px solid ${d}`;let p;e[6]!==m?(p={background:"#fff",borderLeft:m},e[6]=m,e[7]=p):p=e[7];let n;e[8]!==t.image?(n=s.jsx(je,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=n):n=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#1c2024"},e[10]=f):f=e[10];let h;e[11]!==t.title||e[12]!==r?(h=t.title??r("sectionsEditor.seoPreview.fallbackTitle"),e[11]=t.title,e[12]=r,e[13]=h):h=e[13];let x;e[14]!==h?(x=s.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:f,children:h}),e[14]=h,e[15]=x):x=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y={color:"#60666c"},e[16]=y):y=e[16];let v;e[17]!==t.description||e[18]!==r?(v=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=v):v=e[19];let k;e[20]!==v?(k=s.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:v}),e[20]=v,e[21]=k):k=e[21];let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b={color:"#8a9099"},e[22]=b):b=e[22];let S;e[23]!==i?(S=s.jsx("div",{className:"mt-0.5 text-[10px]",style:b,children:i}),e[23]=i,e[24]=S):S=e[24];let j;e[25]!==x||e[26]!==k||e[27]!==S?(j=s.jsxs("div",{className:"px-2.5 py-1.5",children:[x,k,S]}),e[25]=x,e[26]=k,e[27]=S,e[28]=j):j=e[28];let g;e[29]!==j||e[30]!==p||e[31]!==n?(g=s.jsxs("div",{className:"overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-md))]",style:p,children:[n,j]}),e[29]=j,e[30]=p,e[31]=n,e[32]=g):g=e[32];let N;return e[33]!==g||e[34]!==c?(N=s.jsxs("div",{className:"rounded-lg p-2 text-left",style:l,children:[c,g]}),e[33]=g,e[34]=c,e[35]=N):N=e[35],N}function Ct(a){const e=C.c(39),{seo:t,host:i,accent:d,dark:r,t:l}=a,o=r?"#2b2d31":"#fff",u=r?"#00a8fc":"#1264a3",c=r?"#dbdee1":"#3b4045",m=r?"#949ba4":"#8a9099",p=r?"none":"1px solid #e2e8f0";let n;e[0]!==o||e[1]!==p?(n={background:o,border:p},e[0]=o,e[1]=p,e[2]=n):n=e[2];const f=`3px solid ${d}`;let h;e[3]!==f?(h={borderLeft:f,borderRadius:2},e[3]=f,e[4]=h):h=e[4];let x;e[5]!==m?(x={color:m},e[5]=m,e[6]=x):x=e[6];let y;e[7]!==i||e[8]!==x?(y=s.jsx("div",{className:"text-[10px]",style:x,children:i}),e[7]=i,e[8]=x,e[9]=y):y=e[9];let v;e[10]!==u?(v={color:u},e[10]=u,e[11]=v):v=e[11];let k;e[12]!==t.title||e[13]!==l?(k=t.title??l("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=l,e[14]=k):k=e[14];let b;e[15]!==v||e[16]!==k?(b=s.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:v,children:k}),e[15]=v,e[16]=k,e[17]=b):b=e[17];let S;e[18]!==c?(S={color:c},e[18]=c,e[19]=S):S=e[19];let j;e[20]!==t.description||e[21]!==l?(j=t.description??l("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=l,e[22]=j):j=e[22];let g;e[23]!==S||e[24]!==j?(g=s.jsx("div",{className:"line-clamp-2 text-[12px]",style:S,children:j}),e[23]=S,e[24]=j,e[25]=g):g=e[25];let N;e[26]!==g||e[27]!==y||e[28]!==b?(N=s.jsxs("div",{className:"min-w-0 flex-1",children:[y,b,g]}),e[26]=g,e[27]=y,e[28]=b,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=s.jsx(je,{src:t.image,className:"size-14 shrink-0 rounded-[var(--studio-control-radius,var(--radius))]",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let E;e[32]!==N||e[33]!==w||e[34]!==h?(E=s.jsxs("div",{className:"flex gap-2.5 pl-2.5",style:h,children:[N,w]}),e[32]=N,e[33]=w,e[34]=h,e[35]=E):E=e[35];let T;return e[36]!==E||e[37]!==n?(T=s.jsx("div",{className:"rounded-lg p-2.5 text-left",style:n,children:E}),e[36]=E,e[37]=n,e[38]=T):T=e[38],T}function Tt(a){const e=C.c(21),{platform:t,seo:i,host:d,path:r,t:l}=a;let o;e[0]!==d||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==i||e[6]!==l?(o=t.layout==="search"?s.jsx(wt,{seo:i,host:d,path:r,t:l}):t.layout==="card"?s.jsx(Et,{seo:i,host:d,path:r,t:l}):t.layout==="chat"?s.jsx(_t,{seo:i,host:d,path:r,accent:t.color,t:l}):s.jsx(Ct,{seo:i,host:d,path:r,accent:t.color,dark:t.id==="discord",t:l}),e[0]=d,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=i,e[6]=l,e[7]=o):o=e[7];const u=o;let c;e[8]!==t.color?(c=s.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=c):c=e[9];let m;e[10]!==t.labelKey||e[11]!==l?(m=l(t.labelKey),e[10]=t.labelKey,e[11]=l,e[12]=m):m=e[12];let p;e[13]!==m?(p=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:m}),e[13]=m,e[14]=p):p=e[14];let n;e[15]!==c||e[16]!==p?(n=s.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[c,p]}),e[15]=c,e[16]=p,e[17]=n):n=e[17];let f;return e[18]!==u||e[19]!==n?(f=s.jsxs("div",{children:[n,u]}),e[18]=u,e[19]=n,e[20]=f):f=e[20],f}function Pt(a){const e=C.c(18),{seo:t,url:i,path:d}=a,r=d===void 0?"/":d,l=ee();let o,u,c;if(e[0]!==t||e[1]!==i){const v=jt(t);o=v,u=Te(v.image,i),c=Te(v.favicon,i),e[0]=t,e[1]=i,e[2]=o,e[3]=u,e[4]=c}else o=e[2],u=e[3],c=e[4];let m;e[5]!==o||e[6]!==u||e[7]!==c?(m={...o,image:u,favicon:c},e[5]=o,e[6]=u,e[7]=c,e[8]=m):m=e[8];const p=m;let n;e[9]!==i?(n=kt(i),e[9]=i,e[10]=n):n=e[10];const f=n,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==f||e[13]!==l||e[14]!==p?(x=Nt.map(v=>s.jsx(Tt,{platform:v,seo:p,host:f,path:h,t:l},v.id)),e[11]=h,e[12]=f,e[13]=l,e[14]=p,e[15]=x):x=e[15];let y;return e[16]!==x?(y=s.jsx("div",{className:"grid grid-cols-1 gap-4 @2xl:grid-cols-2",children:x}),e[16]=x,e[17]=y):y=e[17],y}function De(a,e,t){const i=C.c(3);let d;return i[0]!==e||i[1]!==t?(d=e?qe(e,t):[],i[0]=e,i[1]=t,i[2]=d):d=i[2],rt(a,d)}function Rt(a){const e=C.c(7),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l}=a;let o;if(e[0]!==d||e[1]!==t||e[2]!==i?(o={orgSlug:t,virtualMcpId:i,branch:d},e[0]=d,e[1]=t,e[2]=i,e[3]=o):o=e[3],!De(o,r,l).ready){let m;return e[4]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"h-full w-full flex items-center justify-center",children:s.jsx(Pe,{className:"size-5 text-muted-foreground"})}),e[4]=m):m=e[4],m}let c;return e[5]!==a?(c=s.jsx(Ft,{...a}),e[5]=a,e[6]=c):c=e[6],c}function Ft(a){const e=C.c(77),{orgSlug:t,virtualMcpId:i,branch:d,decofile:r,meta:l,target:o,previewBaseUrl:u,onSaved:c,onEditDefaultSeo:m,onBack:p}=a,n=ee(),f=Ve(r,o,l),h=at(i,d);let x;e[0]!==h?(x=ct(h),e[0]=h,e[1]=x):x=e[1];const y=!x,v=f?.seoData,k=o.kind==="site"?"site":o.pageKey,[b,S]=Z.useState(k),[j,g]=Z.useState(null),[N,w]=Z.useState(0),[E,T]=Z.useState(void 0),{persistSeo:_,persistRawSeo:L,flush:z,isPending:R,hold:Y}=St({orgSlug:t,virtualMcpId:i,branch:d,target:o,resolved:f,meta:l,onSaved:c});let P;e[2]!==d||e[3]!==t||e[4]!==i?(P=dt({orgSlug:t,virtualMcpId:i,branch:d}),e[2]=d,e[3]=t,e[4]=i,e[5]=P):P=e[5];const F=ft(P)(f?.blockKey??""),[U,K]=Z.useState(F);(b!==k||U!==F)&&(f&&Y(f.blockKey),S(k),K(F),g(null),T(void 0),w(Dt));const $=o.kind==="page",$e=$?f?.rawSeoData:void 0,J=E!==void 0?E:$e,Le=$?We(J)??void 0:void 0,D=j??Le??v??{},A=f?Ye(bt(D,f),r,l):null,B=A&&(!$||fe(J))?et(A,l):null;let te;e[6]!==l?(te=Je(l),e[6]=l,e[7]=te):te=e[7];const me=te;let I,se;e[8]!==r||e[9]!==D||e[10]!==l||e[11]!==o.kind?(I=o.kind==="page"?Ze(r,l)?.seoData??{}:{},se=o.kind==="page"?Lt(I,D):D,e[8]=r,e[9]=D,e[10]=l,e[11]=o.kind,e[12]=I,e[13]=se):(I=e[12],se=e[13]);const ue=se;let le;e[14]!==_||e[15]!==f||e[16]!==g?(le=O=>{if(!f)return;const ke=O;g(ke),_(ke)},e[14]=_,e[15]=f,e[16]=g,e[17]=le):le=e[17];const pe=le;let oe;e[18]!==g?(oe=()=>g(null),e[18]=g,e[19]=oe):oe=e[19];const he=oe;let ie;e[20]!==w?(ie=()=>w(Kt),e[20]=w,e[21]=ie):ie=e[21];const xe=ie;let ne;e[22]!==z||e[23]!==p?(ne=()=>{z(),p?.()},e[22]=z,e[23]=p,e[24]=ne):ne=e[24];const ye=ne,H=o.kind==="page"?o.path:"/";let re;e[25]!==H||e[26]!==u||e[27]!==o.kind?(re=o.kind==="page"&&u?$t(H,u):u??null,e[25]=H,e[26]=u,e[27]=o.kind,e[28]=re):re=e[28];const ve=re;let ae;e[29]!==f||e[30]!==n||e[31]!==o.kind?(ae=o.kind==="site"?n("sectionsEditor.seoEditor.noSiteSeoBlock"):n(f?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[29]=f,e[30]=n,e[31]=o.kind,e[32]=ae):ae=e[32];const ge=ae,ce=$&&f,be=o.kind==="site"&&f&&B;let M;e[33]!==ye||e[34]!==n||e[35]!==o.kind||e[36]!==o.pageName?(M=o.kind==="page"?s.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[s.jsx("button",{type:"button",onClick:ye,title:o.pageName,className:"min-w-0 truncate rounded-[var(--studio-control-radius,var(--radius-md))] px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:o.pageName}),s.jsx(Ae,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):s.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[s.jsx(we,{size:16,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"text-sm font-medium",children:n("sectionsEditor.seoEditor.defaultSeoLabel")}),s.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",n("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[33]=ye,e[34]=n,e[35]=o.kind,e[36]=o.pageName,e[37]=M):M=e[37];let Q;e[38]!==R?(Q=R&&s.jsx(Pe,{className:"size-3.5 text-muted-foreground"}),e[38]=R,e[39]=Q):Q=e[39];let G;e[40]!==m||e[41]!==n||e[42]!==o.kind?(G=o.kind==="page"&&m&&s.jsxs(Ie,{type:"button",variant:"outline",size:"sm",onClick:m,children:[s.jsx(we,{size:14}),n("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[40]=m,e[41]=n,e[42]=o.kind,e[43]=G):G=e[43];let q;e[44]!==Q||e[45]!==G?(q=s.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[Q,G]}),e[44]=Q,e[45]=G,e[46]=q):q=e[46];let V;e[47]!==M||e[48]!==q?(V=s.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[M,q]}),e[47]=M,e[48]=q,e[49]=V):V=e[49];let W;e[50]!==A||e[51]!==y||e[52]!==xe||e[53]!==he||e[54]!==me||e[55]!==J||e[56]!==D||e[57]!==ge||e[58]!==N||e[59]!==pe||e[60]!==H||e[61]!==L||e[62]!==_||e[63]!==ue||e[64]!==ve||e[65]!==f||e[66]!==B||e[67]!==g||e[68]!==T||e[69]!==ce||e[70]!==be||e[71]!==I||e[72]!==n?(W=!f||!ce&&!be?s.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ge}):s.jsxs("div",{className:"flex min-h-0 flex-1",children:[s.jsx(Ee,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-5 py-4",children:ce?s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:n("sectionsEditor.seoEditor.emptyFieldsHint")}),s.jsx(yt,{rawSeo:J,innerSeo:D,defaultResolveType:me,seoSchema:B,activeResolveType:A,seoTypeOptions:f.seoTypeOptions,formResetKey:N,siteDefaultSeo:I,onPersistRaw:O=>{T(O),L(O)},onInnerChange:O=>{g(O),_(O)},onClearForm:he,onBumpFormKey:xe,asyncRenderAvailable:y})]}):B&&A&&s.jsx(Re,{schema:B,resolveType:A,value:D,formResetKey:N,onChange:pe})})}),s.jsx(Ee,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"@container px-5 py-4",children:s.jsx(Pt,{seo:ue,url:ve,path:H})})})]}),e[50]=A,e[51]=y,e[52]=xe,e[53]=he,e[54]=me,e[55]=J,e[56]=D,e[57]=ge,e[58]=N,e[59]=pe,e[60]=H,e[61]=L,e[62]=_,e[63]=ue,e[64]=ve,e[65]=f,e[66]=B,e[67]=g,e[68]=T,e[69]=ce,e[70]=be,e[71]=I,e[72]=n,e[73]=W):W=e[73];let de;return e[74]!==V||e[75]!==W?(de=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[V,W]}),e[74]=V,e[75]=W,e[76]=de):de=e[76],de}function Kt(a){return a+1}function Dt(a){return a+1}function $t(a,e){try{return new URL(a,e).href}catch{return e}}function Lt(a,e){const t=e.__resolveType,i=a.__resolveType;if(typeof t=="string"&&typeof i=="string"&&t!==i)return{...e};const d={...a};for(const[r,l]of Object.entries(e))r!=="__resolveType"&&l!=null&&(typeof l=="string"&&l.trim()===""||(d[r]=l));return d}const Vt=Object.freeze(Object.defineProperty({__proto__:null,SeoEditor:Rt,useEnsureSiteSeoBlocks:De},Symbol.toStringTag,{value:"Module"}));export{yt as P,bt as a,vt as b,Vt as s,De as u,gt as w};
@@ -1 +1 @@
1
- import{c as p,m as d,j as f,fS as m}from"./index-Bm1K3DQC.js";function x(s){const t=p.c(12);let o,a,r,i;t[0]!==s?({className:o,orientation:r,decorative:i,...a}=s,t[0]=s,t[1]=o,t[2]=a,t[3]=r,t[4]=i):(o=t[1],a=t[2],r=t[3],i=t[4]);const l=r===void 0?"horizontal":r,c=i===void 0?!0:i;let e;t[5]!==o?(e=d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=e):e=t[6];let n;return t[7]!==c||t[8]!==l||t[9]!==a||t[10]!==e?(n=f.jsx(m,{"data-slot":"separator-root",decorative:c,orientation:l,className:e,...a}),t[7]=c,t[8]=l,t[9]=a,t[10]=e,t[11]=n):n=t[11],n}export{x as S};
1
+ import{c as p,m as d,j as f,fM as m}from"./index-D5JTVjDS.js";function x(s){const t=p.c(12);let o,a,r,i;t[0]!==s?({className:o,orientation:r,decorative:i,...a}=s,t[0]=s,t[1]=o,t[2]=a,t[3]=r,t[4]=i):(o=t[1],a=t[2],r=t[3],i=t[4]);const l=r===void 0?"horizontal":r,c=i===void 0?!0:i;let e;t[5]!==o?(e=d("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",o),t[5]=o,t[6]=e):e=t[6];let n;return t[7]!==c||t[8]!==l||t[9]!==a||t[10]!==e?(n=f.jsx(m,{"data-slot":"separator-root",decorative:c,orientation:l,className:e,...a}),t[7]=c,t[8]=l,t[9]=a,t[10]=e,t[11]=n):n=t[11],n}export{x as S};
@@ -0,0 +1 @@
1
+ import{c as e,j as o}from"./index-D5JTVjDS.js";import{V as a}from"./index-DljLWu39.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
@@ -1 +1 @@
1
- import{c as n,m,j as i,fc as S,eo as $,aQ as w,fd as C,ep as z,fe as R,b2 as k,eq as B}from"./index-Bm1K3DQC.js";function P(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function E(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(B,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(22);let t,s,a,l,f,p;e[0]!==o?({className:s,children:t,side:l,size:f,hideCloseButton:p,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=f,e[6]=p):(t=e[1],s=e[2],a=e[3],l=e[4],f=e[5],p=e[6]);const r=l===void 0?"right":l,v=f===void 0?"sm":f,x=p===void 0?!1:p;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(E,{}),e[7]=u):u=e[7];const b=r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l",g=r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r",j=(r==="left"||r==="right")&&(v==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",y=r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let d;e[8]!==s||e[9]!==b||e[10]!==g||e[11]!==j||e[12]!==N||e[13]!==y?(d=m("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",b,g,j,N,y,s),e[8]=s,e[9]=b,e[10]=g,e[11]=j,e[12]=N,e[13]=y,e[14]=d):d=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(R,{className:"data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus-ring disabled:pointer-events-none rounded-lg",children:[i.jsx(k,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[15]=x,e[16]=c):c=e[16];let h;return e[17]!==t||e[18]!==a||e[19]!==d||e[20]!==c?(h=i.jsxs(D,{children:[u,i.jsxs(w,{"data-slot":"sheet-content",className:d,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=d,e[20]=c,e[21]=h):h=e[21],h}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function q(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(S,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function H(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(C,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{q as S,T as a,P as b,_ as c,H as d};
1
+ import{c as n,m,j as i,f6 as S,eq as $,aP as w,f7 as C,er as z,f8 as P,b1 as R,es as k}from"./index-D5JTVjDS.js";function O(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(z,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function D(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(k,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(22);let t,s,a,l,f,p;e[0]!==o?({className:s,children:t,side:l,size:f,hideCloseButton:p,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=f,e[6]=p):(t=e[1],s=e[2],a=e[3],l=e[4],f=e[5],p=e[6]);const r=l===void 0?"right":l,v=f===void 0?"sm":f,x=p===void 0?!1:p;let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx(D,{}),e[7]=u):u=e[7];const b=r==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l",g=r==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r",j=(r==="left"||r==="right")&&(v==="lg"?"w-full sm:max-w-xl":"sm:max-w-sm"),N=r==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",y=r==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let d;e[8]!==s||e[9]!==b||e[10]!==g||e[11]!==j||e[12]!==N||e[13]!==y?(d=m("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",b,g,j,N,y,s),e[8]=s,e[9]=b,e[10]=g,e[11]=j,e[12]=N,e[13]=y,e[14]=d):d=e[14];let c;e[15]!==x?(c=!x&&i.jsxs(P,{className:"data-[state=open]:bg-secondary absolute top-4 right-4 opacity-70 transition-opacity hover:opacity-100 focus-ring disabled:pointer-events-none rounded-lg",children:[i.jsx(R,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[15]=x,e[16]=c):c=e[16];let h;return e[17]!==t||e[18]!==a||e[19]!==d||e[20]!==c?(h=i.jsxs(B,{children:[u,i.jsxs(w,{"data-slot":"sheet-content",className:d,...a,children:[t,c]})]}),e[17]=t,e[18]=a,e[19]=d,e[20]=c,e[21]=h):h=e[21],h}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function q(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(S,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function H(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=m("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(C,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{q as S,T as a,O as b,_ as c,H as d};
@@ -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,cY as be,ag as qt,a as se,M as Bt,V as Kt,K as Xe,cZ as Ht,c_ as Ut,at as he,m as wt,b9 as bn,C as Pt,r as G,ae as wn,af as re,c$ as Sn,w as Gt,x as Jt,v as Vt,D as Yt,i as pe,d0 as vn,ar as Wt,d as kt,a5 as Tt,H as jn,T as Qt,E as St,aS as Xt,d1 as kn,aY as Tn,b3 as _t,J as Nn,d2 as Pn,c9 as _n,aT as On,y as In,d3 as An,d4 as En,d5 as Cn,d6 as $n,d7 as Ln,a6 as Rn,u as zn,a7 as Dn,d8 as Mn,d9 as Fn,l as Zt,da as Ot,db as qn,O as Bn,a_ as It,dc as Kn,a0 as Hn}from"./index-Bm1K3DQC.js";import{t as en}from"./Globe04-CdHKMOso.js";import{i as Un,s as ie}from"./UserSquare-CUiDUhHX.js";import{u as Gn}from"./use-deployment-admin-hI6GNxTJ.js";import{a as Jn}from"./admin-fetch-BhTJlAsX.js";import{aw as Vn,S as Yn,G as bt,a7 as Wn,I as Qn,ax as Xn,ay as Zn,n as At,h as es,az as ts,m as ns,aA as ss}from"./agent-icon-Y_Y2D-pt.js";import{s as tn}from"./XClose-__KXghgf.js";import{u as os,a as is}from"./use-project-scope-BkidtyNv.js";import{u as nn,a as as,A as rs}from"./autosend-Dts_wRXC.js";import{i as ge}from"./CheckCircle-BMxSQJ5-.js";import{i as Et}from"./Monitor01-D3lVwo0x.js";import{i as We}from"./Zap-CyJKtBha.js";import{s as Ct}from"./Plus-BHZhJmPA.js";import{a as ls}from"./Tool01-D5n93WAy.js";import{e as Qe,b as ae,d as cs,a as ds,c as us,C as ms}from"./command-COt4WQ5b.js";import{I as fs}from"./integration-icon-DTmGScIa.js";import{P as gs}from"./project-icon-Cx2a7lKG.js";import{a as hs}from"./use-navigate-to-agent-BJdqgQKH.js";import{u as ps}from"./use-debounced-value-BsCdYGvU.js";import{a as ys,m as xs}from"./use-mcp-client-WgWOA1hL.js";import{u as bs,a as ws,n as Ss}from"./new-project-dialog-Bqd8DZyr.js";import{S as vs,u as js}from"./thread-intent-C_sXnvWO.js";import{L as ks}from"./legacy-admin-welcome-dialog-DWIUyVc4.js";import{R as Ts}from"./required-auth-layout-L5uobjCB.js";import{u as Ns,a as Ps,b as _s,c as Os}from"./thread-route-C4AshLS2.js";import{u as Is}from"./use-org-sso-BqLBrHG0.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(Yn,{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 Ys(t,e){return Gs(t,e).filter(s=>typeof s.element=="string"&&an(s.element))}function Ws(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=Ys(t,e);if(n.length===0){et=!1;return}Qs().then(r=>{r(Ws(t,n)).drive()}).catch(()=>{et=!1})};a()}function Zs(t){return t!=="off"}function Yi(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 Wi(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:Wn,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:We,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:We,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:We,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:We,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:We,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:We,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(Yt,{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]=Wt(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]=Wt(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,Y,K,W,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,Y="h-[min(420px,60vh)] max-h-none";let Ye;e[134]!==n?(Ye=n("commandPalette.empty"),e[134]=n,e[135]=Ye):Ye=e[135],e[136]!==Ye?(K=o.jsx(ms,{children:Ye}),e[136]=Ye,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?(W=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]=W):W=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]=Y,e[52]=K,e[53]=W,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],Y=e[51],K=e[52],W=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]!==Y||e[170]!==K||e[171]!==W||e[172]!==Q||e[173]!==X||e[174]!==E||e[175]!==B||e[176]!==we?(ve=o.jsxs(ne,{className:Y,children:[K,W,Q,X,E,B,we]}),e[168]=ne,e[169]=Y,e[170]=K,e[171]=W,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:Yo,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.574.1")));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.574.1"}),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 Yo(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}function Wo(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=>Wo(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(Yt,{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 Y;t[41]!==d||t[42]!==g?(Y=d&&o.jsx(ws,{open:!0,onOpenChange:g,source:Ss()}),t[41]=d,t[42]=g,t[43]=Y):Y=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 W,Q;t[46]===Symbol.for("react.memo_cache_sentinel")?(W=o.jsx(Xo,{}),Q=o.jsx(ks,{}),t[46]=W,t[47]=Q):(W=t[46],Q=t[47]);let X;return t[48]!==ee||t[49]!==te||t[50]!==V||t[51]!==Y||t[52]!==K?(X=o.jsxs(hi,{org:ee,children:[te,oe,ne,V,Y,K,W,Q]}),t[48]=ee,t[49]=te,t[50]=V,t[51]=Y,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,Yi as p,aa as q,_o as r,Wi 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-D5JTVjDS.js";import{t as en}from"./Globe04-CwPU5cY1.js";import{i as Un,s as ie}from"./UserSquare-IqXs6Ob6.js";import{u as Gn}from"./use-deployment-admin-BoY2ewV3.js";import{a as Jn}from"./admin-fetch-BhTJlAsX.js";import{aw as Vn,S as Wn,G as bt,a7 as Yn,I as Qn,ax as Xn,ay as Zn,n as At,h as es,az as ts,m as ns,aA as ss}from"./agent-icon-CyEAtnD4.js";import{s as tn}from"./XClose-CyXbMn6P.js";import{u as os,a as is}from"./use-project-scope-BncPwEbb.js";import{u as nn,a as as,A as rs}from"./autosend-f_bz2mQN.js";import{i as ge}from"./CheckCircle-C64lUT6c.js";import{i as Et}from"./Monitor01-CtzEY5rS.js";import{i as Ye}from"./Zap-BNp_Z-Q4.js";import{s as Ct}from"./Plus-CWfURIcC.js";import{a as ls}from"./Tool01-To89YdeH.js";import{e as Qe,b as ae,d as cs,a as ds,c as us,C as ms}from"./command-Bf_0n_6-.js";import{I as fs}from"./integration-icon-Bfrd64SC.js";import{P as gs}from"./project-icon-CKmSmX0y.js";import{a as hs}from"./use-navigate-to-agent-CUGpLynv.js";import{u as ps}from"./use-debounced-value-CHh-krI7.js";import{a as ys,m as xs}from"./use-mcp-client-MTfMkTH7.js";import{u as bs,a as ws,n as Ss}from"./new-project-dialog-DPhA0oTs.js";import{S as vs,u as js}from"./thread-intent-H-ElZUeF.js";import{L as ks}from"./legacy-admin-welcome-dialog-CRXt5ATv.js";import{R as Ts}from"./required-auth-layout-EGagfJot.js";import{u as Ns,a as Ps,b as _s,c as Os}from"./thread-route-D5hmfGyG.js";import{u as Is}from"./use-org-sso-kiS_a_Hy.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.574.3")));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.574.3"}),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};