decocms 4.237.0 → 4.238.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/dist/client/assets/{AlertCircle-CjFbPbXR.js → AlertCircle-NIgamkG1.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CF11UEYw.js → AreaChart-CRpc3cm7.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-Dkou2oyv.js → ArrowLeft-vl2nEIkm.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-BLV5slUU.js → ArrowUp-DPZSwvHJ.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-BP30hDff.js → ArrowUpRight-EJcVnEQQ.js} +1 -1
  6. package/dist/client/assets/{Check-BSC6j_AW.js → Check-BjlTRmvp.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BJO_ypFA.js → CheckCircle-DJReLGxy.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-CVKkscg7.js → ChevronDown-BansJwMw.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-BnJ4c2IL.js → ChevronRight-8cwrWc6Q.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-CVzJYnye.js → ChevronUp-CBwQlhRH.js} +1 -1
  11. package/dist/client/assets/{Copy01-BGs_9rA1.js → Copy01-DbAHd-uW.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-BgStC_qv.js → CreditCard01-CYifPwC3.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-D-83qNJa.js → DotsVertical-DB5B45Uo.js} +1 -1
  14. package/dist/client/assets/{Eye-NTHABHlz.js → Eye-Bh6RageV.js} +1 -1
  15. package/dist/client/assets/{FilterLines-Bu45YNI1.js → FilterLines-C7Wg9yVb.js} +1 -1
  16. package/dist/client/assets/{Globe01-DarbWSch.js → Globe01-D0Oxc1LP.js} +1 -1
  17. package/dist/client/assets/{Globe04-BBpMsdiG.js → Globe04-BkQE9r8Q.js} +1 -1
  18. package/dist/client/assets/{HardDrive-DCp-WUl5.js → HardDrive-BHaqV6HV.js} +1 -1
  19. package/dist/client/assets/{Key01-CNX_ptat.js → Key01-BwSFgo4R.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-D5nGLk_M.js → LayoutLeft-BSvhSrEB.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-BZfOUq-Q.js → LinkExternal01-CyubGI-F.js} +1 -1
  22. package/dist/client/assets/{LogOut01-j4YaKBaR.js → LogOut01-BxGW4Z42.js} +1 -1
  23. package/dist/client/assets/{Monitor01-C38MaP2T.js → Monitor01-DQW548Gm.js} +1 -1
  24. package/dist/client/assets/{Palette-Borxdy0n.js → Palette-CwprQ-n3.js} +1 -1
  25. package/dist/client/assets/{Play-DtbV3l2x.js → Play-B9I77UtI.js} +1 -1
  26. package/dist/client/assets/{Plus-B75q72-Y.js → Plus-BeKip_ti.js} +1 -1
  27. package/dist/client/assets/{SearchLg-C01PHEsZ.js → SearchLg-CF3SVn_9.js} +1 -1
  28. package/dist/client/assets/{SearchMd-sYSLCAfX.js → SearchMd-B0Qlr1Gl.js} +1 -1
  29. package/dist/client/assets/{Settings02-DcwyvSXX.js → Settings02-ghlI4JM4.js} +1 -1
  30. package/dist/client/assets/{Share07-B2hvI558.js → Share07-Ccl5KX8-.js} +1 -1
  31. package/dist/client/assets/{Shield01-DQ1xPJLH.js → Shield01-BRqhsyWc.js} +1 -1
  32. package/dist/client/assets/{Stars01-DqNq041Y.js → Stars01-D2FUcwqw.js} +1 -1
  33. package/dist/client/assets/Stars02-IIISJrG5.js +1 -0
  34. package/dist/client/assets/{Sun-yZz6cey6.js → Sun-qDVj9t4s.js} +1 -1
  35. package/dist/client/assets/{SwitchHorizontal01-6N0f6IEs.js → SwitchHorizontal01-BxCgeiYE.js} +1 -1
  36. package/dist/client/assets/{Tool01-CRPVUEI-.js → Tool01-DsnpIm7u.js} +1 -1
  37. package/dist/client/assets/{Tool02-BLLppoSv.js → Tool02-DK48uSLw.js} +1 -1
  38. package/dist/client/assets/{Trash01-DUcC_MrI.js → Trash01-BAawLpcp.js} +1 -1
  39. package/dist/client/assets/{TrendUp01-Bxf23nqY.js → TrendUp01-C6Z_wcrx.js} +1 -1
  40. package/dist/client/assets/{Upload01-lDNoA7DY.js → Upload01-CpAD4hxw.js} +1 -1
  41. package/dist/client/assets/{User01-D_PtC3-l.js → User01-Ce4Fl6PE.js} +1 -1
  42. package/dist/client/assets/{Users01-RLx4pV7z.js → Users01-C5hyD2dw.js} +1 -1
  43. package/dist/client/assets/{Users03-CttOOkYC.js → Users03-CPZVCPK9.js} +1 -1
  44. package/dist/client/assets/{X-0jWoG5jx.js → X-lCHRulQP.js} +1 -1
  45. package/dist/client/assets/{XCircle-CMWuzD62.js → XCircle-BCbY6TY1.js} +1 -1
  46. package/dist/client/assets/{XClose-DiX97P-p.js → XClose-DjKz-D2Z.js} +1 -1
  47. package/dist/client/assets/{YAxis-Ddx55nav.js → YAxis-BgtuEn7S.js} +5 -5
  48. package/dist/client/assets/{Zap-CkkvDzJg.js → Zap-wuOCIL0m.js} +1 -1
  49. package/dist/client/assets/ZapSquare-CS3jzdYe.js +1 -0
  50. package/dist/client/assets/{access-gate-Yhz0WTWU.js → access-gate-CTxljPxC.js} +1 -1
  51. package/dist/client/assets/agent-icon-B14THc_Q.js +1 -0
  52. package/dist/client/assets/agents-list-69g8rJEQ.js +1 -0
  53. package/dist/client/assets/ai-providers-CH91MQGS.js +1 -0
  54. package/dist/client/assets/{alert-CWGupSwA.js → alert-DFcpZ-oA.js} +1 -1
  55. package/dist/client/assets/{alert-dialog-C3fO6FiW.js → alert-dialog-D7IFH3T6.js} +1 -1
  56. package/dist/client/assets/api-keys-CrFPjis3.js +1 -0
  57. package/dist/client/assets/app-editor-CrEu8w54.js +1 -0
  58. package/dist/client/assets/{auth-BUKUv3gh.js → auth-aQ-S9sH7.js} +1 -1
  59. package/dist/client/assets/{auth-catchall-J4YZ4zxa.js → auth-catchall-D-f5_sUZ.js} +1 -1
  60. package/dist/client/assets/{auth-entry-CT1QE6om.js → auth-entry-BV0I_ZJc.js} +1 -1
  61. package/dist/client/assets/{auth-split-layout-CnaGL49E.js → auth-split-layout-BMNFHPoj.js} +1 -1
  62. package/dist/client/assets/{authenticate-and-persist-oauth-BL5kxXPR.js → authenticate-and-persist-oauth-Bf96RUCL.js} +1 -1
  63. package/dist/client/assets/{automation-list-row-BZ2cPPd8.js → automation-list-row-GgPsGmLt.js} +1 -1
  64. package/dist/client/assets/{automation-runs-0zCTJHHe.js → automation-runs-BpvoOdRs.js} +15 -15
  65. package/dist/client/assets/automations-DrdpSq1s.js +1 -0
  66. package/dist/client/assets/{avatar-CoBdq5SX.js → avatar-CZVTnS3q.js} +1 -1
  67. package/dist/client/assets/{badge-BKlfRcKL.js → badge-Largeyp5.js} +1 -1
  68. package/dist/client/assets/billing-QSWxDvoo.js +6 -0
  69. package/dist/client/assets/{block-document-DxFvrhcf.js → block-document-BH_hCXmL.js} +1 -1
  70. package/dist/client/assets/{buckets-B1PmZgk3.js → buckets-DoVdPe7_.js} +1 -1
  71. package/dist/client/assets/bulk-category-panel-D4Kjb2t5.js +1 -0
  72. package/dist/client/assets/{capability-load-error-b09S7e_1.js → capability-load-error-By5RHmfh.js} +1 -1
  73. package/dist/client/assets/{card-Zz2koMwO.js → card-Y4Td6_qp.js} +1 -1
  74. package/dist/client/assets/{cards-DZhyxsHe.js → cards-v-ZQq690.js} +1 -1
  75. package/dist/client/assets/category-editor-CpamqiDH.js +1 -0
  76. package/dist/client/assets/{chart-Bnk_UfBL.js → chart-BQq8t5ba.js} +1 -1
  77. package/dist/client/assets/{chat-context-BWORVgD7.js → chat-context-D3_WI76a.js} +1 -1
  78. package/dist/client/assets/{checkbox-DpwUgoY2.js → checkbox-T7P3CSDd.js} +1 -1
  79. package/dist/client/assets/{cli-auth-success-BtBqcEC0.js → cli-auth-success-CUbHl1Z7.js} +1 -1
  80. package/dist/client/assets/collection-detail-eXDRP9Q8.js +1 -0
  81. package/dist/client/assets/{collection-display-button-CLPFB3_A.js → collection-display-button-BIyaULpN.js} +1 -1
  82. package/dist/client/assets/{collection-search-_zFY8-Cf.js → collection-search-mKgfv-P5.js} +1 -1
  83. package/dist/client/assets/{collection-table-wrapper-DPorXhXn.js → collection-table-wrapper-BiIkdzxw.js} +1 -1
  84. package/dist/client/assets/{collection-tabs-Tu083PIR.js → collection-tabs-Ibp0SPgD.js} +1 -1
  85. package/dist/client/assets/{command-DI3FhUnx.js → command-CPY4g0vY.js} +1 -1
  86. package/dist/client/assets/commerce-onboarding-DSweCkSf.js +1 -0
  87. package/dist/client/assets/connect-Cr5eEYHn.js +8 -0
  88. package/dist/client/assets/{connection-CXwlAZgv.js → connection-B265IAJQ.js} +1 -1
  89. package/dist/client/assets/{connection-card-BHS6Mbjr.js → connection-card-C8ol51ZW.js} +1 -1
  90. package/dist/client/assets/connection-detail-ZyykQc7g.js +1 -0
  91. package/dist/client/assets/{connection-form-helpers-DsdyG005.js → connection-form-helpers-C7wyCDlb.js} +1 -1
  92. package/dist/client/assets/connections-BBbAjJre.js +1 -0
  93. package/dist/client/assets/{decopilot-sse-pool-DLZWceLm.js → decopilot-sse-pool-MiFwCFec.js} +1 -1
  94. package/dist/client/assets/{dialog-C0_VZPHC.js → dialog-XZdfEVkH.js} +1 -1
  95. package/dist/client/assets/{domain-settings-NyZzR6hV.js → domain-settings-B9j2Tomm.js} +1 -1
  96. package/dist/client/assets/{drawer-2KdGcrE6.js → drawer-CZRmN4Rl.js} +1 -1
  97. package/dist/client/assets/{dropdown-menu-CMTPZ7Ir.js → dropdown-menu-DVYqDP-D.js} +1 -1
  98. package/dist/client/assets/{empty-state-CQKPJKx2.js → empty-state-1FVnySPh.js} +1 -1
  99. package/dist/client/assets/{extract-connection-data-DVi4pwNP.js → extract-connection-data-BpVTWK-J.js} +1 -1
  100. package/dist/client/assets/file-explorer-B8m_Ud7I.js +2 -0
  101. package/dist/client/assets/{file-type-icon-BaDll1C-.js → file-type-icon-C0Iwwc71.js} +1 -1
  102. package/dist/client/assets/{form-DApAFFn0.js → form-Dxx4h0K2.js} +1 -1
  103. package/dist/client/assets/general-4Cwh9qXG.js +1 -0
  104. package/dist/client/assets/{github-repo-picker-qhvXBKMo.js → github-repo-picker-BntApwLN.js} +1 -1
  105. package/dist/client/assets/{hooks-B7N1YIMG.js → hooks-D1ngLxRd.js} +1 -1
  106. package/dist/client/assets/{index-OxFtCYT-.js → index-ANK2LJtV.js} +1 -1
  107. package/dist/client/assets/index-B6at7pHi.js +1 -0
  108. package/dist/client/assets/{index-CuujNnv4.js → index-BW8Kh131.js} +1 -1
  109. package/dist/client/assets/index-BayJ_hOk.js +1 -0
  110. package/dist/client/assets/{index-DeD3quSS.js → index-CUMFdB46.js} +1 -1
  111. package/dist/client/assets/{index-BmKat3q_.js → index-CjHBTwzP.js} +1 -1
  112. package/dist/client/assets/{index-lbvtcVET.js → index-CtD8kCVB.js} +2 -2
  113. package/dist/client/assets/{index-DMDxsX36.js → index-DyK-1LHf.js} +1 -1
  114. package/dist/client/assets/{index-h0GcRHM1.js → index-P-GX8FW_.js} +21 -21
  115. package/dist/client/assets/{index-Gptoc_-0.js → index-dh0u4IqP.js} +47 -47
  116. package/dist/client/assets/index-iwXkDaR-.css +1 -0
  117. package/dist/client/assets/{index-redirect-kqqz9Pdm.js → index-redirect-Bs49GSOc.js} +1 -1
  118. package/dist/client/assets/infra-billing-DaFLqOb1.js +1 -0
  119. package/dist/client/assets/{input-BzvzuDaQ.js → input-CjE2QrUF.js} +1 -1
  120. package/dist/client/assets/{integration-icon-BtDBTwbu.js → integration-icon-DD2uGTto.js} +1 -1
  121. package/dist/client/assets/{invite-member-dialog-D6at4Byp.js → invite-member-dialog-3RD7lTgh.js} +1 -1
  122. package/dist/client/assets/{label-DtVKw0n-.js → label-BYk5h4ou.js} +1 -1
  123. package/dist/client/assets/{layout-iYq7K1In.js → layout-CzV2Jg4F.js} +1 -1
  124. package/dist/client/assets/{login-DPnQy0ky.js → login-kOxWh4FL.js} +1 -1
  125. package/dist/client/assets/{mcp-oauth-DmlNibJW.js → mcp-oauth-YnIysQTC.js} +1 -1
  126. package/dist/client/assets/members-BWZup3yY.js +1 -0
  127. package/dist/client/assets/{monaco-editor-Bx-WJoCd.js → monaco-editor-CEqNg3BQ.js} +1 -1
  128. package/dist/client/assets/{monitoring-stats-row-DB1vTT_4.js → monitoring-stats-row-DO9FS6PN.js} +1 -1
  129. package/dist/client/assets/{multi-select-DRJAdNWW.js → multi-select-BheAE_Ti.js} +1 -1
  130. package/dist/client/assets/{oauth-callback-BQzVHUp7.js → oauth-callback-Bxh-hXdQ.js} +1 -1
  131. package/dist/client/assets/{oauth-callback-ai-provider-CvGIMomW.js → oauth-callback-ai-provider-3iVGzc8O.js} +1 -1
  132. package/dist/client/assets/{onboarding-CzCEX6lz.js → onboarding-EKkdot5C.js} +1 -1
  133. package/dist/client/assets/{org-layout-DFn4LDXk.js → org-layout-BxTmoEir.js} +1 -1
  134. package/dist/client/assets/{organization-choice-DHMqg0E7.js → organization-choice-Ci26Yd7s.js} +1 -1
  135. package/dist/client/assets/{orgs-DtNQhw-_.js → orgs-CQAUGc_3.js} +1 -1
  136. package/dist/client/assets/{page-seo-form-DeB6ysXI.js → page-seo-form-rWml4KZv.js} +1 -1
  137. package/dist/client/assets/{popover-vEPjwNUl.js → popover-DH4sJ-hx.js} +1 -1
  138. package/dist/client/assets/post-editor-BX_oDQpj.js +1 -0
  139. package/dist/client/assets/{primitives-CWdeZIPO.js → primitives-DgKwbqlI.js} +1 -1
  140. package/dist/client/assets/{profile-DKOvg4Ys.js → profile-Drr6RyML.js} +1 -1
  141. package/dist/client/assets/project-app-view-C4uK-Ykh.js +1 -0
  142. package/dist/client/assets/record-editor-CNBghvNW.js +1 -0
  143. package/dist/client/assets/redirect-editor-DWVkIY5G.js +1 -0
  144. package/dist/client/assets/{registry-layout-DVU67Hav.js → registry-layout-Bu1cLH4_.js} +1 -1
  145. package/dist/client/assets/registry-yIvFz9E8.js +2 -0
  146. package/dist/client/assets/{reports-B5K5drg3.js → reports-5TYDahoh.js} +1 -1
  147. package/dist/client/assets/{require-capability-CbJhxJIS.js → require-capability-k_aaNrmG.js} +1 -1
  148. package/dist/client/assets/{required-auth-layout-DF3apjeH.js → required-auth-layout-Dn81p7H8.js} +1 -1
  149. package/dist/client/assets/{reset-password-FnBbdloF.js → reset-password-DwRMgnq7.js} +1 -1
  150. package/dist/client/assets/roles-BvfzqM4Y.js +1 -0
  151. package/dist/client/assets/{search-input-DyFy1iK0.js → search-input-CAfA70t6.js} +1 -1
  152. package/dist/client/assets/{secrets-BVhh5Z-m.js → secrets-DQyg5IaG.js} +1 -1
  153. package/dist/client/assets/{sections-editor-afUyMuSx.js → sections-editor-1wvlg_V9.js} +2 -2
  154. package/dist/client/assets/{select-Tei14Zu4.js → select-KBOQqb5b.js} +1 -1
  155. package/dist/client/assets/{select-model-DotYsAqj.js → select-model-D2hJNEZf.js} +1 -1
  156. package/dist/client/assets/{self-tool-result-C9rWuUA9.js → self-tool-result-red_JJVZ.js} +1 -1
  157. package/dist/client/assets/seo-editor-DNfycddR.js +1 -0
  158. package/dist/client/assets/settings-layout-DH-EViOe.js +1 -0
  159. package/dist/client/assets/{settings-section-DhCcFHe0.js → settings-section-uyvyi36n.js} +1 -1
  160. package/dist/client/assets/settings-subnav-DfcYXylW.js +1 -0
  161. package/dist/client/assets/{shell-controls-Cnb_Nzjz.js → shell-controls-i0HidCqY.js} +1 -1
  162. package/dist/client/assets/shell-layout-Czubm3xQ.js +1 -0
  163. package/dist/client/assets/{sidebar-fE9arcNR.js → sidebar-DYOHjP73.js} +1 -1
  164. package/dist/client/assets/{skeleton-WByIIjEz.js → skeleton-BwaQyECl.js} +1 -1
  165. package/dist/client/assets/{spinner-C3SNk2G5.js → spinner-D7MklTbP.js} +1 -1
  166. package/dist/client/assets/{sso-CxdzdiLc.js → sso-Dg3_woQC.js} +1 -1
  167. package/dist/client/assets/{store-DtJopL5o.js → store-CTLRFju2.js} +1 -1
  168. package/dist/client/assets/store-registry-DFdXvC9d.js +2 -0
  169. package/dist/client/assets/{studio-tools-DaHRmNBg.js → studio-tools-rxH0R7lt.js} +1 -1
  170. package/dist/client/assets/{switch-HDj1d-W_.js → switch-B5ZbhCe0.js} +1 -1
  171. package/dist/client/assets/synced-repos-x16ha39u.js +1 -0
  172. package/dist/client/assets/{tab-id-DqxFWWKz.js → tab-id-CTjObiZn.js} +1 -1
  173. package/dist/client/assets/{table-BqUdzLQw.js → table-D-J833Vt.js} +1 -1
  174. package/dist/client/assets/{tabs-C2pF4tHl.js → tabs-BMNmvzpQ.js} +1 -1
  175. package/dist/client/assets/{textarea-kmGQrCWT.js → textarea-kMyew1mY.js} +1 -1
  176. package/dist/client/assets/{toggle-group-GAcLozzv.js → toggle-group-DRlvHVKj.js} +1 -1
  177. package/dist/client/assets/{toolbar-CPIussBe.js → toolbar-R-lbOcDk.js} +1 -1
  178. package/dist/client/assets/{tooltip-CAY4Un9y.js → tooltip-CCAgnlkx.js} +1 -1
  179. package/dist/client/assets/{track-poPKLD9c.js → track-BEQo3sFg.js} +1 -1
  180. package/dist/client/assets/{types-Ctr4Pq-Y.js → types-BAfCrx4S.js} +1 -1
  181. package/dist/client/assets/{use-ai-providers-Dw-i46pJ.js → use-ai-providers-BD3OpOyt.js} +1 -1
  182. package/dist/client/assets/{use-api-keys-Mb8ED3cS.js → use-api-keys-DNGO5UEj.js} +1 -1
  183. package/dist/client/assets/{use-automations-l3Ox7fHF.js → use-automations-5visjbRc.js} +1 -1
  184. package/dist/client/assets/{use-autosave-DajgHu_u.js → use-autosave-Chfu4jlL.js} +1 -1
  185. package/dist/client/assets/{use-capability-Bq8QIaAm.js → use-capability-BG5qAt9K.js} +1 -1
  186. package/dist/client/assets/{use-clock-tick-DQJlJSeJ.js → use-clock-tick-qO3IUhYy.js} +1 -1
  187. package/dist/client/assets/use-commerce-diagnostic-p8AlgPkx.js +1 -0
  188. package/dist/client/assets/{use-connection-CHvN0FBa.js → use-connection-DoE4VVnG.js} +1 -1
  189. package/dist/client/assets/{use-copy-BKbIPHzw.js → use-copy-DwKcHskz.js} +1 -1
  190. package/dist/client/assets/{use-create-virtual-mcp-BiKtnPDO.js → use-create-virtual-mcp-CDZV5SRZ.js} +1 -1
  191. package/dist/client/assets/{use-debounced-autosave-C2C9GPgR.js → use-debounced-autosave-Bn---yMo.js} +1 -1
  192. package/dist/client/assets/{use-debounced-value-CGQ1MygG.js → use-debounced-value-CDap9oX0.js} +1 -1
  193. package/dist/client/assets/{use-decopilot-events-6yGSgNoz.js → use-decopilot-events-BqPh4BCN.js} +1 -1
  194. package/dist/client/assets/{use-delete-connection-CkqqL8Gd.js → use-delete-connection-CoZnx8cA.js} +1 -1
  195. package/dist/client/assets/{use-deployment-admin-HTXfV5V9.js → use-deployment-admin-3ODrcPns.js} +1 -1
  196. package/dist/client/assets/{use-file-configs-BeAzNpwF.js → use-file-configs-BTGiD983.js} +1 -1
  197. package/dist/client/assets/{use-infinite-scroll-N2WGSfb_.js → use-infinite-scroll-DV4nhJU-.js} +1 -1
  198. package/dist/client/assets/{use-join-requests-D2gK9tyz.js → use-join-requests-B8mo2OR6.js} +1 -1
  199. package/dist/client/assets/{use-mcp-client-CCJCYDxN.js → use-mcp-client-DMHWuHBR.js} +2 -2
  200. package/dist/client/assets/{use-mcp-tools-CGdKn1Fw.js → use-mcp-tools-Zd5Wb_Ox.js} +1 -1
  201. package/dist/client/assets/{use-members-BEOwJloH.js → use-members-fvuAoyah.js} +1 -1
  202. package/dist/client/assets/{use-mobile-uWMSI329.js → use-mobile-iNxeOMfx.js} +1 -1
  203. package/dist/client/assets/{use-navigate-to-agent-zvAVYd41.js → use-navigate-to-agent-BgN8_rbc.js} +1 -1
  204. package/dist/client/assets/{use-open-billing-url-ptr76Hlr.js → use-open-billing-url-DhGvCL22.js} +1 -1
  205. package/dist/client/assets/{use-org-auth-client-BmiUk9g-.js → use-org-auth-client-Cag_S-a4.js} +1 -1
  206. package/dist/client/assets/{use-org-sso-DoxFiQxq.js → use-org-sso-U6MQkVfh.js} +1 -1
  207. package/dist/client/assets/{use-organization-roles-BpQOPqCr.js → use-organization-roles-C3ByCKmB.js} +1 -1
  208. package/dist/client/assets/{use-organization-settings-BPPkEz7K.js → use-organization-settings-CXQEv0_d.js} +1 -1
  209. package/dist/client/assets/{use-registry-connections-CDunPWB9.js → use-registry-connections-DjSot7EF.js} +1 -1
  210. package/dist/client/assets/{use-secrets-Bb1WW8u5.js → use-secrets-Ct36JmLs.js} +1 -1
  211. package/dist/client/assets/{use-section-preview-base-DKdei54Z.js → use-section-preview-base-BijudAg1.js} +1 -1
  212. package/dist/client/assets/use-settings-tabs-DTQ00oCY.js +1 -0
  213. package/dist/client/assets/{use-status-sounds-BmimvYmS.js → use-status-sounds-9UZfO_tZ.js} +1 -1
  214. package/dist/client/assets/{use-tags-C0yWU0xy.js → use-tags-D4Bd-NDo.js} +1 -1
  215. package/dist/client/assets/{use-view-mode-CxVmDEL4.js → use-view-mode-DxkV0rAO.js} +1 -1
  216. package/dist/client/assets/use-virtual-mcp-DdZEMtY_.js +1 -0
  217. package/dist/client/assets/useInfiniteQuery-DTN5TRDI.js +1 -0
  218. package/dist/client/assets/useRouterState-WnRAdRHN.js +1 -0
  219. package/dist/client/assets/useSuspenseInfiniteQuery-QQYAakG4.js +1 -0
  220. package/dist/client/assets/{users-ClXzWwqs.js → users-CoIsMtRi.js} +1 -1
  221. package/dist/client/assets/variant-calendar-Cz-Z7Tjl.js +1 -0
  222. package/dist/client/assets/{view-mode-toggle-BKtHCADs.js → view-mode-toggle-D6PsJXd2.js} +1 -1
  223. package/dist/client/index.html +2 -2
  224. package/dist/server/cli.js +1 -1
  225. package/dist/server/server.js +1 -1
  226. package/package.json +1 -1
  227. package/dist/client/assets/CpuChip01-CWKZNd3u.js +0 -1
  228. package/dist/client/assets/Star01-CBnujI48.js +0 -1
  229. package/dist/client/assets/Stars02-OU17b3lp.js +0 -1
  230. package/dist/client/assets/ZapSquare-CGho5JH5.js +0 -1
  231. package/dist/client/assets/agent-icon-DpJzA7B2.js +0 -1
  232. package/dist/client/assets/agents-list-CoTSpffk.js +0 -1
  233. package/dist/client/assets/ai-providers-Bo0u0UsB.js +0 -1
  234. package/dist/client/assets/api-keys-Bk8viiTm.js +0 -1
  235. package/dist/client/assets/app-editor-DyWBYoo6.js +0 -1
  236. package/dist/client/assets/automations-BfZGOXE9.js +0 -1
  237. package/dist/client/assets/billing-Bpfymb_n.js +0 -6
  238. package/dist/client/assets/brand-context-Bibex5y6.js +0 -1
  239. package/dist/client/assets/bulk-category-panel-DvkBfAH7.js +0 -1
  240. package/dist/client/assets/category-editor-CU4nNr3w.js +0 -1
  241. package/dist/client/assets/collection-detail-BpdKLLyB.js +0 -1
  242. package/dist/client/assets/commerce-onboarding-DFnpw-BJ.js +0 -1
  243. package/dist/client/assets/connect-Bt8SyJ_D.js +0 -8
  244. package/dist/client/assets/connection-detail-D39SrwAZ.js +0 -1
  245. package/dist/client/assets/connections-Co_IqyZ-.js +0 -1
  246. package/dist/client/assets/file-explorer-Cb9zzD4a.js +0 -2
  247. package/dist/client/assets/general-BvDD0-Ck.js +0 -1
  248. package/dist/client/assets/index-BCveq62k.js +0 -1
  249. package/dist/client/assets/index-BX7x5P5r.css +0 -1
  250. package/dist/client/assets/index-Dd6uaRi9.js +0 -1
  251. package/dist/client/assets/infra-billing-CKP5HEPI.js +0 -1
  252. package/dist/client/assets/members-Dxp3M4JV.js +0 -1
  253. package/dist/client/assets/post-editor-CKk8bZhp.js +0 -1
  254. package/dist/client/assets/project-app-view-q7h-4L-m.js +0 -1
  255. package/dist/client/assets/record-editor-r-UV1jn9.js +0 -1
  256. package/dist/client/assets/redirect-editor-BQ9vpGwi.js +0 -1
  257. package/dist/client/assets/registry-BtYiGQ6_.js +0 -2
  258. package/dist/client/assets/roles-BjDS_mAv.js +0 -1
  259. package/dist/client/assets/seo-editor-BFI6VVV1.js +0 -1
  260. package/dist/client/assets/settings-layout-CLExdr_b.js +0 -1
  261. package/dist/client/assets/shell-layout-DKP_M-mD.js +0 -1
  262. package/dist/client/assets/store-registry-DAqmEdVe.js +0 -2
  263. package/dist/client/assets/synced-repos-Cbba0xP7.js +0 -1
  264. package/dist/client/assets/use-commerce-diagnostic-BVElM2RV.js +0 -1
  265. package/dist/client/assets/use-infra-billing-CRWMAvoz.js +0 -1
  266. package/dist/client/assets/use-virtual-mcp-bKqEnT_v.js +0 -1
  267. package/dist/client/assets/useInfiniteQuery-BcVwIHfG.js +0 -1
  268. package/dist/client/assets/useRouterState-faIY6mBF.js +0 -1
  269. package/dist/client/assets/useSuspenseInfiniteQuery-B_UTR4fd.js +0 -1
  270. package/dist/client/assets/variant-calendar-C0DMqVdE.js +0 -1
@@ -1 +0,0 @@
1
- import{b as re,r as $,F as Be,K as me,n as Ke,j as s,m as W,k as je,B as ce,c as J,X as Xe,Y as Ue,Z as ae,a1 as Je,a2 as et,o as rt,$ as Ot,a0 as jt,e as at,t as Me,p as Fe,y as ct,z as Mt,E as Dt,d as vt,u as yt}from"./index-Gptoc_-0.js";import{u as Lt}from"./use-organization-roles-BpQOPqCr.js";import{u as $e}from"./use-org-auth-client-BmiUk9g-.js";import{g as dt,a as Pt}from"./role-color-Dn2tXDDF.js";import{B as De}from"./badge-BKlfRcKL.js";import{A as mt,a as ut,c as ft,d as gt,b as ht,f as xt,g as pt,e as Tt}from"./alert-dialog-C3fO6FiW.js";import{c as wt,D as Gt,b as kt,a as Ut}from"./dropdown-menu-CMTPZ7Ir.js";import{a as Bt}from"./DotsVertical-D-83qNJa.js";import{s as ze}from"./Plus-B75q72-Y.js";import{s as Vt}from"./Trash01-DUcC_MrI.js";import{C as Yt}from"./collection-table-wrapper-DPorXhXn.js";import{P as ie}from"./index-DeD3quSS.js";import{E as tt}from"./empty-state-CQKPJKx2.js";import{S as Qe}from"./search-input-DyFy1iK0.js";import{P as _t,D as Et}from"./ai-providers-logos-DD3qZ33J.js";import{I as He}from"./integration-icon-BtDBTwbu.js";import{u as zt}from"./use-infinite-scroll-N2WGSfb_.js";import{C as Ze}from"./checkbox-DpwUgoY2.js";import{i as Kt}from"./ArrowLeft-Dkou2oyv.js";import{u as Ft}from"./useSuspenseInfiniteQuery-B_UTR4fd.js";import{u as $t,S as Qt}from"./use-mcp-client-CCJCYDxN.js";import{C as Ht}from"./collection-search-_zFY8-Cf.js";import{p as Zt}from"./connection-CXwlAZgv.js";import{a as It}from"./use-members-BEOwJloH.js";import{g as Rt}from"./get-initials-D-f_fDFw.js";import{u as qt}from"./use-connection-CHvN0FBa.js";import{u as Wt,g as Xt}from"./use-ai-providers-Dw-i46pJ.js";import{A as St}from"./avatar-CoBdq5SX.js";import{S as ve}from"./switch-HDj1d-W_.js";import{b as ye,c as Le,T as Pe,a as we}from"./tooltip-CAY4Un9y.js";import{S as st,a as lt,b as ot}from"./settings-section-DhCcFHe0.js";import{t as Jt}from"./ChevronDown-CVKkscg7.js";import{i as es}from"./ChevronRight-BnJ4c2IL.js";import{i as nt}from"./X-0jWoG5jx.js";import{a as ts}from"./use-capability-Bq8QIaAm.js";import{A as ss}from"./access-gate-Yhz0WTWU.js";import"./Check-BSC6j_AW.js";import"./table-BqUdzLQw.js";import"./ArrowUp-BLV5slUU.js";import"./sidebar-fE9arcNR.js";import"./LayoutLeft-D5nGLk_M.js";import"./use-mobile-uWMSI329.js";import"./SearchMd-sYSLCAfX.js";import"./Tool02-BLLppoSv.js";import"./agent-icon-DpJzA7B2.js";import"./AlertCircle-CjFbPbXR.js";import"./Tool01-CRPVUEI-.js";import"./XCircle-CMWuzD62.js";import"./ArrowUpRight-BP30hDff.js";import"./TrendUp01-Bxf23nqY.js";import"./ZapSquare-CGho5JH5.js";import"./Users03-CttOOkYC.js";import"./CheckCircle-BJO_ypFA.js";import"./ChevronUp-CVzJYnye.js";import"./Stars02-OU17b3lp.js";import"./Copy01-BGs_9rA1.js";import"./CpuChip01-CWKZNd3u.js";import"./CreditCard01-BgStC_qv.js";import"./Globe01-DarbWSch.js";import"./Settings02-DcwyvSXX.js";import"./Eye-NTHABHlz.js";import"./FilterLines-Bu45YNI1.js";import"./Share07-B2hvI558.js";import"./Star01-CBnujI48.js";import"./Globe04-BBpMsdiG.js";import"./SwitchHorizontal01-6N0f6IEs.js";import"./HardDrive-DCp-WUl5.js";import"./Key01-CNX_ptat.js";import"./LinkExternal01-BZfOUq-Q.js";import"./LogOut01-j4YaKBaR.js";import"./Monitor01-C38MaP2T.js";import"./Sun-yZz6cey6.js";import"./Palette-Borxdy0n.js";import"./Play-DtbV3l2x.js";import"./SearchLg-C01PHEsZ.js";import"./Shield01-DQ1xPJLH.js";import"./Stars01-DqNq041Y.js";import"./Upload01-lDNoA7DY.js";import"./User01-D_PtC3-l.js";import"./Users01-RLx4pV7z.js";import"./XClose-DiX97P-p.js";import"./Zap-CkkvDzJg.js";import"./auth-BUKUv3gh.js";import"./studio-tools-DaHRmNBg.js";import"./card-Zz2koMwO.js";import"./capability-load-error-b09S7e_1.js";const qe="basic-usage",We=[{id:qe,label:"Basic Usage",description:"Tools all org members can access by default",section:"Basic Usage",tools:["COLLECTION_CONNECTIONS_LIST","COLLECTION_CONNECTIONS_GET","CONNECTION_TEST","COLLECTION_VIRTUAL_MCP_LIST","COLLECTION_VIRTUAL_MCP_GET","VIRTUAL_MCP_PLUGIN_CONFIG_GET","VIRTUAL_MCP_LAST_USED_LIST","AUTOMATION_GET","AUTOMATION_LIST","AUTOMATION_RUN_STATS","AI_PROVIDERS_LIST","AI_PROVIDERS_LIST_MODELS","AI_PROVIDERS_ACTIVE","AI_PROVIDER_KEY_LIST","AI_PROVIDER_CREDITS","AI_PROVIDER_TOPUP_URL","LIST_OBJECTS","GET_OBJECT_METADATA","GET_PRESIGNED_URL","PUT_PRESIGNED_URL","FILE_OBJECTS_LIST","ORG_REPO_SYNC_LIST","SANDBOX_START","SANDBOX_DELETE","GLOBAL_SEARCH","ORGANIZATION_SETTINGS_GET","USER_GET","BRAND_CONTEXT_LIST","COLLECTION_THREADS_CREATE","COLLECTION_THREADS_LIST","COLLECTION_THREADS_GET","COLLECTION_THREADS_UPDATE","COLLECTION_THREADS_DELETE","COLLECTION_THREAD_MESSAGES_LIST","TASK_BOARD_ITEM_CREATE","TASK_BOARD_ITEM_LIST","TASK_BOARD_ITEM_UPDATE","TASK_BOARD_ITEM_DELETE","TASK_BOARD_ITEM_PRS_GET","TASK_BOARD_ITEM_PR_LINK","TASK_BOARD_ITEM_RERUN","TASK_BOARD_REVIEW_DECISION","TASK_BOARD_PROMOTE_TO_PRODUCTION","TASK_BOARD_ACTIVITY_LIST","TASK_BOARD_COMMENT_LIST","TASK_BOARD_COMMENT_CREATE","TASK_BOARD_COMMENT_UPDATE","TASK_BOARD_COMMENT_DELETE","TASK_BOARD_DISMISSED_LIST","TASK_BOARD_DISMISSED_RESTORE"]},{id:"org:manage",label:"Manage organization",description:"Edit organization settings, brand context, and domain configuration",section:"Organization",tools:["ORGANIZATION_GET","ORGANIZATION_LIST","ORGANIZATION_UPDATE","ORGANIZATION_SETTINGS_GET","ORGANIZATION_SETTINGS_UPDATE","BRAND_CONTEXT_LIST","BRAND_CONTEXT_GET","BRAND_CONTEXT_CREATE","BRAND_CONTEXT_UPDATE","BRAND_CONTEXT_DELETE","BRAND_CONTEXT_EXTRACT","BRAND_GET","BRAND_LIST","ORGANIZATION_DOMAIN_LIST","ORGANIZATION_DOMAIN_ADD","ORGANIZATION_DOMAIN_UPDATE","ORGANIZATION_DOMAIN_VERIFY","ORGANIZATION_DOMAIN_REMOVE"]},{id:"members:manage",label:"Manage members",description:"Invite members, remove them, and change their roles",section:"Organization",tools:["ORGANIZATION_MEMBER_LIST","ORGANIZATION_MEMBER_ADD","ORGANIZATION_MEMBER_REMOVE","ORGANIZATION_MEMBER_UPDATE_ROLE","ORGANIZATION_BILLING_CHECKOUT_START","ORGANIZATION_BILLING_PORTAL","ORGANIZATION_TASK_QUOTA_GET","INFRA_BILLING_SITES_LIST","INFRA_BILLING_GET","INFRA_BILLING_PORTAL","ORGANIZATION_JOIN_REQUEST_LIST","ORGANIZATION_JOIN_REQUEST_APPROVE","ORGANIZATION_JOIN_REQUEST_DENY"],dangerous:!0},{id:"connections:manage",label:"Manage connections",description:"Create, update, and delete connections",section:"Connections & Agents",tools:["COLLECTION_CONNECTIONS_CREATE","COLLECTION_CONNECTIONS_UPDATE","COLLECTION_CONNECTIONS_DELETE","COMMERCE_DISCOVERY_SETUP","COMMERCE_DISCOVERY_RUN","COMMERCE_DISCOVERY_BIND","COMMERCE_DISCOVERY_CONNECTION_STATUS"],dangerous:!0},{id:"agents:manage",label:"Manage agents",description:"Create, configure, and delete agents",section:"Connections & Agents",tools:["COLLECTION_VIRTUAL_MCP_CREATE","COLLECTION_VIRTUAL_MCP_UPDATE","COLLECTION_VIRTUAL_MCP_DELETE","VIRTUAL_MCP_PLUGIN_CONFIG_UPDATE","VIRTUAL_MCP_PINNED_VIEWS_UPDATE"],dangerous:!0},{id:"automations:manage",label:"Manage automations",description:"Create, update, run, and delete automations",section:"Automations",tools:["AUTOMATION_CREATE","AUTOMATION_UPDATE","AUTOMATION_DELETE","AUTOMATION_TRIGGER_ADD","AUTOMATION_TRIGGER_REMOVE","AUTOMATION_TRIGGER_ROTATE_TOKEN","AUTOMATION_RUN"],dangerous:!0},{id:"monitoring:view",label:"View monitoring",description:"Access logs and usage statistics",section:"Monitoring",tools:["MONITORING_HEATMAP","MONITORING_LOG_GET","MONITORING_LOGS_LIST","MONITORING_STATS","MONITORING_THREAD_USAGE"]},{id:"secrets:manage",label:"Manage secrets",description:"Create and list secrets stored in the credential vault",section:"Organization",tools:["SECRET_CREATE","SECRET_LIST"]},{id:"file-configs:manage",label:"Manage file configs",description:"Create, list, update and delete S3 bucket configurations and synced GitHub repositories",section:"Organization",tools:["FILE_CONFIG_CREATE","FILE_CONFIG_LIST","FILE_CONFIG_UPDATE","FILE_CONFIG_DELETE","FILE_OBJECTS_LIST","FILE_OBJECT_DELETE","ORG_REPO_SYNC_CREATE","ORG_REPO_SYNC_LIST","ORG_REPO_SYNC_UPDATE","ORG_REPO_SYNC_DELETE","ORG_REPO_SYNC_RUN"]},{id:"ai-providers:manage",label:"Manage AI providers",description:"Add or remove API keys and provision provider credentials",section:"AI Providers",tools:["AI_PROVIDER_KEY_CREATE","AI_PROVIDER_KEY_LIST","AI_PROVIDER_KEY_DELETE","AI_PROVIDER_KEY_UPDATE","AI_PROVIDER_KEY_PREVIEW","AI_PROVIDER_OAUTH_URL","AI_PROVIDER_OAUTH_EXCHANGE","AI_PROVIDER_PROVISION_KEY","AI_PROVIDER_TOPUP_URL","AI_PROVIDER_CREDITS","CLAUDE_SUBSCRIPTION_CONNECT","CLAUDE_SUBSCRIPTION_STATUS","CLAUDE_SUBSCRIPTION_DISCONNECT"]},{id:"tags:manage",label:"Manage tags",description:"Create, assign, and delete organization tags",section:"Organization",tools:["TAGS_LIST","TAGS_CREATE","TAGS_DELETE","MEMBER_TAGS_GET","MEMBER_TAGS_SET"]},{id:"registry:manage",label:"Manage registry",description:"Browse, publish, and manage items in the registry",section:"Store & Registry",tools:["COLLECTION_REGISTRY_APP_LIST","COLLECTION_REGISTRY_APP_GET","COLLECTION_REGISTRY_APP_VERSIONS","COLLECTION_REGISTRY_APP_FILTERS","REGISTRY_ITEM_LIST","REGISTRY_ITEM_SEARCH","REGISTRY_ITEM_GET","REGISTRY_ITEM_VERSIONS","REGISTRY_ITEM_FILTERS","REGISTRY_DISCOVER_TOOLS","REGISTRY_ITEM_CREATE","REGISTRY_ITEM_BULK_CREATE","REGISTRY_ITEM_UPDATE","REGISTRY_ITEM_DELETE","REGISTRY_AI_GENERATE","REGISTRY_PUBLISH_REQUEST_LIST","REGISTRY_PUBLISH_REQUEST_REVIEW","REGISTRY_PUBLISH_REQUEST_COUNT","REGISTRY_PUBLISH_REQUEST_DELETE","REGISTRY_PUBLISH_API_KEY_GENERATE","REGISTRY_PUBLISH_API_KEY_LIST","REGISTRY_PUBLISH_API_KEY_REVOKE"],dangerous:!0},{id:"registry:monitor",label:"Monitor registry health",description:"Run health checks on registry connections and view results",section:"Store & Registry",tools:["REGISTRY_MONITOR_RUN_START","REGISTRY_MONITOR_RUN_LIST","REGISTRY_MONITOR_RUN_GET","REGISTRY_MONITOR_RUN_CANCEL","REGISTRY_MONITOR_RESULT_LIST","REGISTRY_MONITOR_CONNECTION_LIST","REGISTRY_MONITOR_CONNECTION_SYNC","REGISTRY_MONITOR_CONNECTION_UPDATE_AUTH"]},{id:"api-keys:manage",label:"Manage API keys",description:"Create, update, and revoke API keys",section:"Developer",tools:["API_KEY_CREATE","API_KEY_LIST","API_KEY_UPDATE","API_KEY_DELETE"]},{id:"storage:delete",label:"Delete from storage",description:"Permanently delete files from object storage",section:"Developer",tools:["DELETE_OBJECT","DELETE_OBJECTS"],dangerous:!0},{id:"connections:sql",label:"Run SQL queries",description:"Execute raw SQL against connected databases",section:"Developer",tools:["DATABASES_RUN_SQL"],dangerous:!0}];[...We.find(t=>t.id===qe)?.tools??[]];const ls=["agents:manage","connections:manage"];new Set(We.filter(t=>ls.includes(t.id)).flatMap(t=>t.tools));function os(){const t=new Map;for(const e of We){if(e.id===qe)continue;const l=t.get(e.section)??[];l.push(e),t.set(e.section,l)}return Array.from(t.entries()).map(([e,l])=>({section:e,capabilities:l}))}function ns(t,e,l){return l?!0:t.tools.every(n=>e.includes(n))}function is(t,e,l){if(l){const i=new Set(e);for(const o of t.tools)i.add(o);return Array.from(i)}const n=new Set(e);for(const i of t.tools)n.delete(i);return Array.from(n)}function rs(t){const e=J.c(21),{connection:l,isSelected:n,hasToolsEnabled:i,activeToolsCount:o,totalToolsCount:c,onSelect:g,onToggle:h}=t,m=n?"bg-accent/50":"hover:bg-muted/50";let f;e[0]!==m?(f=W("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",m),e[0]=m,e[1]=f):f=e[1];let a;e[2]!==l.icon||e[3]!==l.title?(a=s.jsx(He,{icon:l.icon,name:l.title,size:"xs"}),e[2]=l.icon,e[3]=l.title,e[4]=a):a=e[4];let u;e[5]!==l.title?(u=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:l.title})}),e[5]=l.title,e[6]=u):u=e[6];let x;e[7]!==g||e[8]!==a||e[9]!==u?(x=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:g,children:[a,u]}),e[7]=g,e[8]=a,e[9]=u,e[10]=x):x=e[10];let d;e[11]!==o||e[12]!==l.tools||e[13]!==i||e[14]!==h||e[15]!==c?(d=l.tools&&l.tools.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[o,"/",c]}),s.jsx(Ze,{checked:i,onCheckedChange:h,onClick:as})]}),e[11]=o,e[12]=l.tools,e[13]=i,e[14]=h,e[15]=c,e[16]=d):d=e[16];let p;return e[17]!==f||e[18]!==x||e[19]!==d?(p=s.jsxs("div",{className:f,children:[x,d]}),e[17]=f,e[18]=x,e[19]=d,e[20]=p):p=e[20],p}function as(t){return t.stopPropagation()}function cs(t){const e=J.c(18),{connectionId:l,tool:n,isSelected:i,onToggle:o}=t,c=`tool-${l}-${n.name}`,g=i?"text-foreground":"text-muted-foreground";let h;e[0]!==g?(h=W("text-sm font-medium",g),e[0]=g,e[1]=h):h=e[1];let m;e[2]!==h||e[3]!==n.name?(m=s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:h,children:n.name})}),e[2]=h,e[3]=n.name,e[4]=m):m=e[4];let f;e[5]!==n.description?(f=n.description&&s.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:n.description}),e[5]=n.description,e[6]=f):f=e[6];let a;e[7]!==m||e[8]!==f?(a=s.jsxs("div",{className:"flex-1 min-w-0",children:[m,f]}),e[7]=m,e[8]=f,e[9]=a):a=e[9];const u=`tool-${l}-${n.name}`;let x;e[10]!==i||e[11]!==o||e[12]!==u?(x=s.jsx("div",{className:"flex items-center shrink-0",children:s.jsx(Ze,{id:u,checked:i,onCheckedChange:o,onClick:ds})}),e[10]=i,e[11]=o,e[12]=u,e[13]=x):x=e[13];let d;return e[14]!==c||e[15]!==a||e[16]!==x?(d=s.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:c,children:[a,x]}),e[14]=c,e[15]=a,e[16]=x,e[17]=d):d=e[17],d}function ds(t){return t.stopPropagation()}function ms({toolSet:t,onToolSetChange:e,excludeVirtualMcpId:l,searchQuery:n}){const i=re(),[o,c]=$.useState(""),g=n!==void 0?n:o,h=$.useDeferredValue(g),[m,f]=$.useState("all"),[a,u]=$.useState(!1),x=$.useRef(new Set(Object.keys(t))),{org:d}=Be(),p=$t({connectionId:Qt,orgId:d.id,orgSlug:d.slug}),A=100,R=h.trim(),I=R?{operator:"or",conditions:[{field:["title"],operator:"contains",value:R},{field:["description"],operator:"contains",value:R}]}:void 0,b=!!l,N={...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:A,offset:0,...b&&{include_virtual:!0}},M=JSON.stringify(N),{data:S,fetchNextPage:O,hasNextPage:D,isFetchingNextPage:_}=Ft({queryKey:me.collectionListInfinite(p,d.id,"","CONNECTIONS",M),queryFn:async({pageParam:T=0})=>(await p.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:A,offset:T,...b&&{include_virtual:!0}}})).structuredContent,initialPageParam:0,getNextPageParam:(T,G)=>{if(T?.hasMore)return G.reduce((Q,q)=>Q+(q?.items?.length??0),0)},staleTime:3e4}),C=S?.pages.flatMap(T=>T?.items??[])??[],v=zt(O,D??!1,_),r=l?C.filter(T=>T.connection_type!=="VIRTUAL"?!0:Zt(T.connection_url)!==l):C,E=x.current,k=[...E.values()].map(T=>r.find(G=>G.id===T)).filter(T=>T!==void 0),w=r.filter(T=>!E.has(T.id)),Y=[...k,...w],y=T=>{const G=t[T];return G!==void 0&&G.length>0},z=Y.filter(T=>{if(m==="all")return!0;const G=y(T.id);return m==="selected"?G:m==="unselected"?!G:!0}),[L,K]=$.useState(Y[0]?.id??null),V=L?Y.find(T=>T.id===L)??null:null,{data:U,isFetching:B}=Ke({queryKey:me.collectionItem(p,d.id,"","CONNECTIONS",L??""),queryFn:async()=>L?(await p.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:L}})).structuredContent?.item??null:null,enabled:!!L,staleTime:3e4}),H=U?.tools??[],X=(T,G)=>t[T]?.includes(G)??!1,te=(T,G)=>{const Q=t[T]??[],q=Q.includes(G),ne={...t};if(q){const se=Q.filter(oe=>oe!==G);se.length===0?delete ne[T]:ne[T]=se}else ne[T]=[...Q,G];e(ne)},le=T=>{const G=T===L?H:[];if(!G.length)return;const Q=t[T]??[],q=G.map(oe=>oe.name),ne=Q.length>0&&q.every(oe=>Q.includes(oe)),se={...t};ne?delete se[T]:(se[T]=q,K(T)),e(se)},F=T=>{K(T),u(!0)},Z=()=>{u(!1)};return s.jsxs("div",{className:"flex h-full",children:[s.jsxs("div",{className:W("w-full md:w-80 border-r border-border flex flex-col",a&&"hidden md:flex"),children:[n===void 0&&s.jsx(Ht,{value:o,onChange:c,placeholder:i("common.toolSetSelector.searchPlaceholder")}),s.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[s.jsx("button",{onClick:()=>f("all"),className:W("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",m==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:i("common.toolSetSelector.filterAll")}),s.jsx("button",{onClick:()=>f("selected"),className:W("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",m==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:i("common.toolSetSelector.filterSelected")}),s.jsx("button",{onClick:()=>f("unselected"),className:W("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",m==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:i("common.toolSetSelector.filterUnselected")})]}),s.jsx("div",{className:"flex-1 overflow-auto",children:z.length===0?s.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:i(g?"common.toolSetSelector.noConnectionsFound":m==="selected"?"common.toolSetSelector.noServersSelected":m==="unselected"?"common.toolSetSelector.noUnselectedServers":"common.toolSetSelector.noConnectionsAvailable")}):s.jsxs("div",{className:"p-2 space-y-1",children:[z.map(T=>{const G=L===T.id,Q=G?H.length:0,q=t[T.id]?.length??0;return s.jsx(rs,{connection:{...T,tools:G?H:T.tools},isSelected:G,hasToolsEnabled:y(T.id),activeToolsCount:q,totalToolsCount:Q,onSelect:()=>F(T.id),onToggle:()=>le(T.id)},T.id)}),s.jsx("div",{ref:v,className:"h-4"}),_&&s.jsx("div",{className:"flex justify-center py-3",children:s.jsx(je,{size:18,className:"animate-spin text-muted-foreground"})})]})})]}),s.jsx("div",{className:W("flex-1 flex-col",a?"flex":"hidden md:flex"),children:V?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[s.jsx(ce,{variant:"ghost",size:"sm",onClick:Z,className:"h-8 w-8 p-0 shrink-0",children:s.jsx(Kt,{size:20})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[s.jsx(He,{icon:V.icon,name:V.title,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:V.title}),V.description&&s.jsx("p",{className:"text-sm text-muted-foreground truncate",children:V.description})]})]})]}),s.jsx("div",{className:"flex-1 overflow-auto p-4",children:B?s.jsx("div",{className:"flex justify-center py-8",children:s.jsx(je,{size:18,className:"animate-spin text-muted-foreground"})}):H.length===0?s.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:i("common.toolSetSelector.noToolsAvailable")}):s.jsx("div",{className:"space-y-2",children:H.map(T=>s.jsx(cs,{connectionId:V.id,tool:T,isSelected:X(V.id,T.name),onToggle:()=>te(V.id,T.name)},T.name))})})]}):s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("div",{className:"text-sm text-muted-foreground text-center",children:i("common.toolSetSelector.selectConnection")})})})]})}const us=Xe({role:Xe({id:ae().optional(),slug:ae().optional(),label:ae()}),allowAllStaticPermissions:et(),staticPermissions:Ue(ae()),toolSet:Je(ae(),Ue(ae())),allowAllModels:et(),modelSet:Je(ae(),Ue(ae())),memberIds:Ue(ae())});function it(t,e,l,n){const i=s.jsx(ve,{checked:e,disabled:l,onCheckedChange:n});return l?s.jsx(ye,{children:s.jsxs(Le,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:i})}),s.jsx(we,{children:s.jsx("p",{children:t("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):i}function fs(t){const e=J.c(41),{allowAllStaticPermissions:l,staticPermissions:n,onAllowAllChange:i,onPermissionsChange:o,readOnly:c,searchQuery:g}=t,h=c===void 0?!1:c,m=re();let f;e[0]!==g?(f=g.trim().toLowerCase(),e[0]=g,e[1]=f):f=e[1];const a=$.useDeferredValue(f);let u;if(e[2]!==l||e[3]!==a||e[4]!==i||e[5]!==o||e[6]!==h||e[7]!==g||e[8]!==n||e[9]!==m){const x=os(),d=(_,C)=>{if(!h){if(l&&C){const v=x.flatMap(xs).flatMap(hs);i(!1),o(v.filter(r=>!_.tools.includes(r)));return}l||o(is(_,n,!C))}};let p;e[11]!==a?(p=_=>{const{section:C,capabilities:v}=_;return{section:C,capabilities:v.filter(r=>!a||r.label.toLowerCase().includes(a)||r.description.toLowerCase().includes(a))}},e[11]=a,e[12]=p):p=e[12];const A=x.map(p).filter(gs);let R;e[13]!==m?(R=m("settings.orgRoleDetail.general"),e[13]=m,e[14]=R):R=e[14];let I;e[15]!==m?(I=m("settings.orgRoleDetail.allOrgPermissions"),e[15]=m,e[16]=I):I=e[16];let b;e[17]!==m?(b=m("settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow"),e[17]=m,e[18]=b):b=e[18];let N;e[19]!==l||e[20]!==i||e[21]!==o?(N=()=>{i(!l),o([])},e[19]=l,e[20]=i,e[21]=o,e[22]=N):N=e[22];let M;e[23]!==l||e[24]!==h||e[25]!==m||e[26]!==N?(M=it(m,l,h,N),e[23]=l,e[24]=h,e[25]=m,e[26]=N,e[27]=M):M=e[27];let S;e[28]!==l||e[29]!==i||e[30]!==o||e[31]!==h?(S=h?void 0:()=>{i(!l),o([])},e[28]=l,e[29]=i,e[30]=o,e[31]=h,e[32]=S):S=e[32];let O;e[33]!==S||e[34]!==I||e[35]!==b||e[36]!==M?(O=s.jsx(lt,{children:s.jsx(ot,{title:I,description:b,action:M,onClick:S})}),e[33]=S,e[34]=I,e[35]=b,e[36]=M,e[37]=O):O=e[37];let D;e[38]!==O||e[39]!==R?(D=s.jsx(st,{title:R,children:O}),e[38]=O,e[39]=R,e[40]=D):D=e[40],u=s.jsx("div",{children:s.jsxs("div",{className:"flex flex-col gap-10 py-4",children:[D,A.length===0&&a?s.jsx("p",{className:"text-sm text-muted-foreground py-4",children:m("settings.orgRoleDetail.noPermissionsMatch",{searchQuery:g})}):A.map(_=>{const{section:C,capabilities:v}=_;return s.jsx(st,{title:C,children:s.jsx(lt,{children:v.map(r=>{const E=ns(r,n,l);return s.jsx(ot,{title:s.jsxs("span",{className:"flex items-center gap-1.5",children:[r.label,r.dangerous&&s.jsx(Mt,{size:12,className:"text-warning shrink-0"})]}),description:r.description,action:it(m,E,h,()=>d(r,E)),onClick:h?void 0:()=>d(r,E)},r.id)})})},C)})]})}),e[2]=l,e[3]=a,e[4]=i,e[5]=o,e[6]=h,e[7]=g,e[8]=n,e[9]=m,e[10]=u}else u=e[10];return u}function gs(t){return t.capabilities.length>0}function hs(t){return t.tools}function xs(t){return t.capabilities}const Nt={anthropic:"Anthropic",openrouter:"OpenRouter"},ps={openai:"OpenAI",anthropic:"Anthropic",google:"Google","meta-llama":"Meta",mistralai:"Mistral","x-ai":"xAI",deepseek:"DeepSeek",qwen:"Qwen",moonshotai:"MoonshotAI",nvidia:"NVIDIA",perplexity:"Perplexity",cohere:"Cohere",amazon:"Amazon",microsoft:"Microsoft","z-ai":"Z.ai","ibm-granite":"IBM Granite",alibaba:"Alibaba",baidu:"Baidu",bytedance:"ByteDance",tencent:"Tencent",minimax:"MiniMax",nousresearch:"Nous Research",allenai:"Allen AI",inception:"Inception"};function Ts(t,e){const l=t.indexOf("/"),n=l>0?t.slice(0,l):e;return n.startsWith("~")?n.slice(1):n}function _s(t){return ps[t]??Nt[t]??t}function Es(t){const e=t.indexOf(": ");return e>0&&e<32?t.slice(e+2):t}const Ct=30;function Is(t){const e=J.c(40),{connectionId:l,subProviderId:n,subProviderName:i,groupLogo:o,models:c,allConnectionModelIds:g,selectedModels:h,allowAllModels:m,allConnectionModelsSelected:f,onToggleModel:a,onExitAllowAll:u,readOnly:x,defaultExpanded:d}=t,p=re(),[A,R]=$.useState(d),I=d||A,b=R,[N,M]=$.useState(Ct);let S;e[0]!==f||e[1]!==m||e[2]!==h?(S=_=>m||f||h.includes("*")||h.includes(_),e[0]=f,e[1]=m,e[2]=h,e[3]=S):S=e[3];const O=S;let D;if(e[4]!==g||e[5]!==m||e[6]!==l||e[7]!==I||e[8]!==o||e[9]!==O||e[10]!==c||e[11]!==u||e[12]!==a||e[13]!==x||e[14]!==n||e[15]!==i||e[16]!==p||e[17]!==N){let _;e[19]!==O?(_=B=>O(B.id),e[19]=O,e[20]=_):_=e[20];const C=c.filter(_).length,v=c.slice(0,N),r=c.length>N;let E;e[21]===Symbol.for("react.memo_cache_sentinel")?(E=()=>b(Cs),e[21]=E):E=e[21];const k=o??_t[n]??Et;let w;e[22]!==i||e[23]!==k?(w=s.jsx(He,{icon:k,name:i,size:"sm"}),e[22]=i,e[23]=k,e[24]=w):w=e[24];let Y;e[25]!==i?(Y=s.jsx("span",{className:"text-sm font-medium truncate",children:i}),e[25]=i,e[26]=Y):Y=e[26];let y;e[27]!==w||e[28]!==Y?(y=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[w,Y]}),e[27]=w,e[28]=Y,e[29]=y):y=e[29];const z=p("settings.orgRoleDetail.enabledCount",{enabledCount:C,total:c.length});let L;e[30]!==z?(L=s.jsx(De,{variant:"secondary",className:"text-xs text-muted-foreground",children:z}),e[30]=z,e[31]=L):L=e[31];let K;e[32]!==I?(K=I?s.jsx(Jt,{size:16,className:"text-muted-foreground shrink-0"}):s.jsx(es,{size:16,className:"text-muted-foreground shrink-0"}),e[32]=I,e[33]=K):K=e[33];let V;e[34]!==L||e[35]!==K?(V=s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[L,K]}),e[34]=L,e[35]=K,e[36]=V):V=e[36];let U;e[37]!==V||e[38]!==y?(U=s.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3 hover:bg-muted/50 cursor-pointer",onClick:E,children:[y,V]}),e[37]=V,e[38]=y,e[39]=U):U=e[39],D=s.jsxs("div",{className:"border border-border rounded-lg overflow-hidden bg-card",children:[U,I&&s.jsxs("div",{className:"border-t border-border bg-muted/20",children:[v.map(B=>{const H=O(B.id),X=()=>{if(!x){if(m){u(l,g,B.id);return}a(l,B.id)}};return s.jsxs("div",{className:W("flex items-center justify-between gap-3 px-4 py-3 border-b border-border last:border-b-0",!x&&"hover:bg-muted/50 cursor-pointer"),onClick:X,children:[s.jsx("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:s.jsx("span",{className:"text-sm truncate",children:B.title})}),s.jsx("div",{onClick:Ns,children:x?s.jsx(ye,{children:s.jsxs(Le,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:s.jsx(ve,{checked:H,disabled:!0,onCheckedChange:Ss})})}),s.jsx(we,{children:s.jsx("p",{children:p("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):s.jsx(ve,{checked:H,onCheckedChange:X})})]},B.id)}),r&&s.jsx("button",{type:"button",className:"w-full px-4 py-2 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors",onClick:()=>M(Rs),children:p("settings.orgRoleDetail.showMore",{remaining:c.length-N})})]})]}),e[4]=g,e[5]=m,e[6]=l,e[7]=I,e[8]=o,e[9]=O,e[10]=c,e[11]=u,e[12]=a,e[13]=x,e[14]=n,e[15]=i,e[16]=p,e[17]=N,e[18]=D}else D=e[18];return D}function Rs(t){return t+Ct}function Ss(){}function Ns(t){return t.stopPropagation()}function Cs(t){return!t}function As(t){const e=J.c(33),{connection:l,selectedModels:n,allowAllModels:i,onToggleModel:o,onExitAllowAll:c,allConnectionModelsSelected:g,searchQuery:h,readOnly:m}=t,f=Xt(l.id);let a,u,x,d,p;if(e[0]!==g||e[1]!==i||e[2]!==l.id||e[3]!==l.label||e[4]!==l.providerId||e[5]!==c||e[6]!==o||e[7]!==f||e[8]!==m||e[9]!==h||e[10]!==n){p=Symbol.for("react.early_return_sentinel");e:{let I;e[16]!==l.label?(I=E=>({...E,id:E.modelId,provider:l.label}),e[16]=l.label,e[17]=I):I=e[17];const b=f.filter(Ms).map(I),N=h.trim().toLowerCase(),M=N?b.filter(E=>E.title.toLowerCase().includes(N)||E.id.toLowerCase().includes(N)||E.provider?.toLowerCase().includes(N)):b;if(M.length===0){p=null;break e}const S=new Map;for(const E of M){const k=Ts(E.id,l.providerId),w=S.get(k)??{models:[],logo:null};w.models.push({id:E.id,title:Es(E.title),logo:E.logo}),!w.logo&&E.logo&&(w.logo=E.logo),S.set(k,w)}const O=Array.from(S.entries()).map(js).sort(Os),D=O.length===1||N.length>0;x="flex flex-col gap-3";const _=_t[l.providerId]??Et;let C;e[18]!==l.providerId||e[19]!==_?(C=s.jsx("img",{src:_,alt:l.providerId,className:"w-4 h-4 rounded-sm dark:bg-white dark:rounded-sm dark:p-px"}),e[18]=l.providerId,e[19]=_,e[20]=C):C=e[20];const v=Nt[l.providerId]??l.providerId;let r;e[21]!==v?(r=s.jsx("h4",{className:"text-sm font-medium",children:v}),e[21]=v,e[22]=r):r=e[22],e[23]!==r||e[24]!==C?(d=s.jsxs("div",{className:"flex items-center gap-2",children:[C,r]}),e[23]=r,e[24]=C,e[25]=d):d=e[25],a="flex flex-col gap-3",u=O.map(E=>s.jsx(Is,{connectionId:l.id,subProviderId:E.id,subProviderName:E.name,groupLogo:E.logo,models:E.models,allConnectionModelIds:b.map(bs),selectedModels:n,allowAllModels:i,allConnectionModelsSelected:g,onToggleModel:o,onExitAllowAll:c,readOnly:m,defaultExpanded:D},E.id))}e[0]=g,e[1]=i,e[2]=l.id,e[3]=l.label,e[4]=l.providerId,e[5]=c,e[6]=o,e[7]=f,e[8]=m,e[9]=h,e[10]=n,e[11]=a,e[12]=u,e[13]=x,e[14]=d,e[15]=p}else a=e[11],u=e[12],x=e[13],d=e[14],p=e[15];if(p!==Symbol.for("react.early_return_sentinel"))return p;let A;e[26]!==a||e[27]!==u?(A=s.jsx("div",{className:a,children:u}),e[26]=a,e[27]=u,e[28]=A):A=e[28];let R;return e[29]!==x||e[30]!==d||e[31]!==A?(R=s.jsxs("div",{className:x,children:[d,A]}),e[29]=x,e[30]=d,e[31]=A,e[32]=R):R=e[32],R}function bs(t){return t.id}function Os(t,e){return t.name.localeCompare(e.name)}function js(t){const[e,l]=t;return{id:e,name:_s(e),logo:l.logo,models:l.models}}function Ms(t,e,l){return l.findIndex(n=>n.modelId===t.modelId)===e}function Ds(t){const e=J.c(41),{allowAllModels:l,modelSet:n,onAllowAllChange:i,onModelSetChange:o,readOnly:c,searchQuery:g}=t,h=c===void 0?!1:c,m=re(),f=$.useDeferredValue(g),a=Wt();let u;e[0]!==n||e[1]!==o?(u=(_,C)=>{const v=n[_]??[],r={...n};if(v.includes(C)){const E=v.filter(k=>k!==C);E.length===0?delete r[_]:r[_]=E}else r[_]=[...v,C];o(r)},e[0]=n,e[1]=o,e[2]=u):u=e[2];const x=u;let d;e[3]!==n||e[4]!==i||e[5]!==o?(d=(_,C,v)=>{i(!1),o({...n,[_]:C.filter(r=>r!==v)})},e[3]=n,e[4]=i,e[5]=o,e[6]=d):d=e[6];const p=d,A=!h&&"hover:bg-muted/50 cursor-pointer";let R;e[7]!==A?(R=W("flex items-center justify-between px-4 py-3 rounded-lg border border-border bg-card",A),e[7]=A,e[8]=R):R=e[8];let I;e[9]!==l||e[10]!==i||e[11]!==o||e[12]!==h?(I=()=>{if(h)return;const _=!l;i(_),_&&o({})},e[9]=l,e[10]=i,e[11]=o,e[12]=h,e[13]=I):I=e[13];let b;e[14]!==m?(b=m("settings.orgRoleDetail.allModels"),e[14]=m,e[15]=b):b=e[15];let N;e[16]!==b?(N=s.jsx("span",{className:"text-sm font-medium",children:b}),e[16]=b,e[17]=N):N=e[17];let M;e[18]!==l||e[19]!==i||e[20]!==o||e[21]!==h||e[22]!==m?(M=s.jsx("div",{onClick:ys,children:h?s.jsx(ye,{children:s.jsxs(Le,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:s.jsx(ve,{checked:l,disabled:!0,onCheckedChange:vs})})}),s.jsx(we,{children:s.jsx("p",{children:m("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):s.jsx(ve,{checked:l,onCheckedChange:_=>{i(_),_&&o({})}})}),e[18]=l,e[19]=i,e[20]=o,e[21]=h,e[22]=m,e[23]=M):M=e[23];let S;e[24]!==R||e[25]!==I||e[26]!==N||e[27]!==M?(S=s.jsxs("div",{className:R,onClick:I,children:[N,M]}),e[24]=R,e[25]=I,e[26]=N,e[27]=M,e[28]=S):S=e[28];let O;e[29]!==a||e[30]!==l||e[31]!==f||e[32]!==p||e[33]!==n||e[34]!==h||e[35]!==m||e[36]!==x?(O=a.length===0?s.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:m("settings.orgRoleDetail.noLlmConnectionsConfigured")}):a.map(_=>s.jsx($.Suspense,{fallback:s.jsxs("div",{className:"px-4 py-3 flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx(je,{className:"size-4 animate-spin"}),m("settings.orgRoleDetail.loadingModels")]}),children:s.jsx(As,{connection:_,selectedModels:n[_.id]??[],allowAllModels:l,onToggleModel:x,onExitAllowAll:p,allConnectionModelsSelected:(n[_.id]??[]).includes("*"),searchQuery:f,readOnly:h})},_.id)),e[29]=a,e[30]=l,e[31]=f,e[32]=p,e[33]=n,e[34]=h,e[35]=m,e[36]=x,e[37]=O):O=e[37];let D;return e[38]!==S||e[39]!==O?(D=s.jsxs("div",{className:"flex flex-col h-full overflow-auto gap-6 pb-6",children:[S,O]}),e[38]=S,e[39]=O,e[40]=D):D=e[40],D}function vs(){}function ys(t){return t.stopPropagation()}function Ls(t){const e=J.c(75),{open:l,onOpenChange:n,selectedMemberIds:i,onAddMembers:o}=t,c=re(),[g,h]=$.useState(""),m=$.useDeferredValue(g);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[0]=f):f=e[0];const[a,u]=$.useState(f),{data:x}=It();let d,p,A,R,I,b,N,M,S,O,D;if(e[1]!==x?.data?.members||e[2]!==m||e[3]!==o||e[4]!==n||e[5]!==l||e[6]!==a||e[7]!==g||e[8]!==i||e[9]!==c){const L=x?.data?.members??[];let K;e[21]!==m?(K=F=>{const Z=m.toLowerCase();return F.user?.name?.toLowerCase().includes(Z)||F.user?.email?.toLowerCase().includes(Z)},e[21]=m,e[22]=K):K=e[22];const V=L.filter(K);let U;e[23]!==o||e[24]!==n||e[25]!==a?(U=()=>{o(a),u([]),n(!1)},e[23]=o,e[24]=n,e[25]=a,e[26]=U):U=e[26],A=U,p=mt,O=l,D=n,d=ut,M="sm:max-w-md p-0";let B;e[27]!==c?(B=c("settings.orgRoleDetail.addMembersToRole"),e[27]=c,e[28]=B):B=e[28];let H;e[29]!==B?(H=s.jsx(ft,{children:B}),e[29]=B,e[30]=H):H=e[30];let X;e[31]!==c?(X=c("settings.orgRoleDetail.selectMembersToAddToThisRole"),e[31]=c,e[32]=X):X=e[32];let te;e[33]!==X?(te=s.jsx(gt,{children:X}),e[33]=X,e[34]=te):te=e[34],e[35]!==H||e[36]!==te?(S=s.jsxs(ht,{className:"px-6 pt-6",children:[H,te]}),e[35]=H,e[36]=te,e[37]=S):S=e[37],b="flex flex-col h-80";let le;e[38]!==c?(le=c("settings.orgRoleDetail.searchMembers"),e[38]=c,e[39]=le):le=e[39],e[40]!==g||e[41]!==le?(N=s.jsx("div",{className:"border-b border-border px-4 py-3",children:s.jsx(Qe,{value:g,onChange:h,placeholder:le,className:"w-full"})}),e[40]=g,e[41]=le,e[42]=N):N=e[42],R="flex-1 overflow-auto",I=V.length===0?s.jsx("div",{className:"flex items-center justify-center h-full px-6",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:c(g?"settings.orgRoleDetail.noMembersFound":"settings.orgRoleDetail.noMembersAvailable")})}):s.jsx("div",{className:"px-6 py-2 space-y-1",children:V.map(F=>{const Z=F.role!=="owner",T=i.includes(F.id),G=a.includes(F.id);return s.jsxs("label",{className:W("flex items-center gap-3 p-2 rounded-lg",!Z||T?"opacity-50 cursor-not-allowed":"cursor-pointer hover:bg-muted/50"),children:[s.jsx(Ze,{checked:G||T,onCheckedChange:()=>{!Z||T||u(Q=>Q.includes(F.id)?Q.filter(q=>q!==F.id):[...Q,F.id])},disabled:!Z||T}),s.jsx(St,{url:F.user?.image??void 0,fallback:Rt(F.user?.name),shape:"circle",size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:F.user?.name||c("settings.orgRoleDetail.unknown")}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:F.user?.email})]}),!Z&&s.jsx(De,{variant:"secondary",className:"shrink-0",children:c("settings.orgRoleDetail.owner")}),T&&Z&&s.jsx(De,{variant:"outline",className:"shrink-0",children:c("settings.orgRoleDetail.added")})]},F.id)})}),e[1]=x?.data?.members,e[2]=m,e[3]=o,e[4]=n,e[5]=l,e[6]=a,e[7]=g,e[8]=i,e[9]=c,e[10]=d,e[11]=p,e[12]=A,e[13]=R,e[14]=I,e[15]=b,e[16]=N,e[17]=M,e[18]=S,e[19]=O,e[20]=D}else d=e[10],p=e[11],A=e[12],R=e[13],I=e[14],b=e[15],N=e[16],M=e[17],S=e[18],O=e[19],D=e[20];let _;e[43]!==R||e[44]!==I?(_=s.jsx("div",{className:R,children:I}),e[43]=R,e[44]=I,e[45]=_):_=e[45];let C;e[46]!==_||e[47]!==b||e[48]!==N?(C=s.jsxs("div",{className:b,children:[N,_]}),e[46]=_,e[47]=b,e[48]=N,e[49]=C):C=e[49];let v;e[50]!==c?(v=c("settings.orgRoleDetail.cancel"),e[50]=c,e[51]=v):v=e[51];let r;e[52]!==v?(r=s.jsx(xt,{children:v}),e[52]=v,e[53]=r):r=e[53];const E=a.length===0;let k;e[54]!==a.length||e[55]!==c?(k=c("settings.orgRoleDetail.addWithCount",{count:a.length}),e[54]=a.length,e[55]=c,e[56]=k):k=e[56];let w;e[57]!==A||e[58]!==E||e[59]!==k?(w=s.jsx(pt,{onClick:A,disabled:E,children:k}),e[57]=A,e[58]=E,e[59]=k,e[60]=w):w=e[60];let Y;e[61]!==r||e[62]!==w?(Y=s.jsxs(Tt,{className:"px-6 pb-6",children:[r,w]}),e[61]=r,e[62]=w,e[63]=Y):Y=e[63];let y;e[64]!==d||e[65]!==C||e[66]!==Y||e[67]!==M||e[68]!==S?(y=s.jsxs(d,{className:M,children:[S,C,Y]}),e[64]=d,e[65]=C,e[66]=Y,e[67]=M,e[68]=S,e[69]=y):y=e[69];let z;return e[70]!==p||e[71]!==y||e[72]!==O||e[73]!==D?(z=s.jsx(p,{open:O,onOpenChange:D,children:y}),e[70]=p,e[71]=y,e[72]=O,e[73]=D,e[74]=z):z=e[74],z}function Ps(t){const e=J.c(33),{memberIds:l,onMemberIdsChange:n,readOnly:i,readOnlyMessage:o,searchQuery:c,addMemberDialogOpen:g,onAddMemberDialogOpenChange:h}=t,m=i===void 0?!1:i,f=o===void 0?void 0:o,a=re(),u=$.useDeferredValue(c),{data:x}=It();let d,p,A;if(e[0]!==x?.data?.members||e[1]!==u||e[2]!==l||e[3]!==n||e[4]!==m||e[5]!==f||e[6]!==c||e[7]!==a){const M=x?.data?.members??[];let S;e[11]!==l?(S=r=>l.includes(r.id),e[11]=l,e[12]=S):S=e[12];const O=M.filter(S);let D;e[13]!==u?(D=r=>{const E=u.toLowerCase();return r.user?.name?.toLowerCase().includes(E)||r.user?.email?.toLowerCase().includes(E)},e[13]=u,e[14]=D):D=e[14];const _=O.filter(D);let C;e[15]!==f||e[16]!==a?(C=f??a("settings.orgRoleDetail.ownerMembershipCannotBeChanged"),e[15]=f,e[16]=a,e[17]=C):C=e[17];const v=C;A="flex flex-col h-full",d="flex-1 overflow-auto",p=O.length===0?s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsxs("div",{className:"text-center",children:[s.jsx("h3",{className:"text-base font-medium mb-1",children:a("settings.orgRoleDetail.noMembers")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:a("settings.orgRoleDetail.addMembersToGrantPermissions")})]})}):_.length===0?s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("p",{className:"text-sm text-muted-foreground",children:a("settings.orgRoleDetail.noMembersMatch",{searchQuery:c})})}):s.jsx("div",{className:"p-4 space-y-2",children:_.map(r=>s.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-muted/30",children:[s.jsx(St,{url:r.user?.image??void 0,fallback:Rt(r.user?.name),shape:"circle",size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:r.user?.name||a("settings.orgRoleDetail.unknown")}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:r.user?.email})]}),m?s.jsx(ye,{children:s.jsxs(Le,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:s.jsx(ce,{variant:"ghost",size:"sm",disabled:!0,"aria-label":a("settings.orgRoleDetail.removeMember",{name:r.user?.name||a("settings.orgRoleDetail.unknown")}),children:s.jsx(nt,{size:16})})})}),s.jsx(we,{children:s.jsx("p",{children:v})})]})}):s.jsx(ce,{variant:"ghost",size:"sm","aria-label":a("settings.orgRoleDetail.removeMember",{name:r.user?.name||a("settings.orgRoleDetail.unknown")}),onClick:()=>n(l.filter(E=>E!==r.id)),children:s.jsx(nt,{size:16})})]},r.id))}),e[0]=x?.data?.members,e[1]=u,e[2]=l,e[3]=n,e[4]=m,e[5]=f,e[6]=c,e[7]=a,e[8]=d,e[9]=p,e[10]=A}else d=e[8],p=e[9],A=e[10];let R;e[18]!==d||e[19]!==p?(R=s.jsx("div",{className:d,children:p}),e[18]=d,e[19]=p,e[20]=R):R=e[20];let I;e[21]!==l||e[22]!==n?(I=M=>n([...l,...M]),e[21]=l,e[22]=n,e[23]=I):I=e[23];let b;e[24]!==g||e[25]!==l||e[26]!==h||e[27]!==I?(b=s.jsx(Ls,{open:g,onOpenChange:h,selectedMemberIds:l,onAddMembers:I}),e[24]=g,e[25]=l,e[26]=h,e[27]=I,e[28]=b):b=e[28];let N;return e[29]!==A||e[30]!==R||e[31]!==b?(N=s.jsxs("div",{className:A,children:[R,b]}),e[29]=A,e[30]=R,e[31]=b,e[32]=N):N=e[32],N}function ws(t){const e=J.c(3);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(je,{size:24,className:"animate-spin text-muted-foreground"})}),e[0]=l):l=e[0];let n;return e[1]!==t?(n=s.jsx($.Suspense,{fallback:l,children:s.jsx(Ps,{...t})}),e[1]=t,e[2]=n):n=e[2],n}const Gs={owner:[],admin:[],user:[]};function ks(t,e,l,n){const i=t==="owner"||t==="admin";return{role:{id:l?.id,slug:t,label:t.charAt(0).toUpperCase()+t.slice(1)},allowAllStaticPermissions:i,staticPermissions:Gs[t],toolSet:{},allowAllModels:!0,modelSet:{},memberIds:e.filter(o=>o.role===t).map(o=>o.id)}}function Us(t,e,l){const n=t.permission||{},i=n.self||[],o=i.includes("*"),c=o?[]:i.filter(a=>a!=="*"),g={};for(const[a,u]of Object.entries(n))if(!(a==="self"||a==="models"))if(a==="*")for(const x of l)g[x.id]=u.includes("*")?x.tools?.map(d=>d.name)??[]:u;else{const x=l.find(d=>d.id===a);x&&(g[a]=u.includes("*")?x.tools?.map(d=>d.name)??[]:u)}const h=n.models||[],m=h.length===0||h.includes("*:*"),f={};if(!m)for(const a of h){const u=a.indexOf(":");if(u===-1)continue;const x=a.slice(0,u),d=a.slice(u+1);f[x]||(f[x]=[]),f[x].push(d)}return{role:{id:t.id,slug:t.role,label:t.label},allowAllStaticPermissions:o,staticPermissions:c,toolSet:g,allowAllModels:m,modelSet:f,memberIds:e.filter(a=>a.role===t.role).map(a=>a.id)}}function Bs(t,e){const l={};t.allowAllStaticPermissions?l.self=["*"]:t.staticPermissions.length>0&&(l.self=t.staticPermissions);for(const[n,i]of Object.entries(t.toolSet))if(i.length>0){const c=e.find(g=>g.id===n)?.tools?.map(g=>g.name)??[];l[n]=c.length>0&&c.every(g=>i.includes(g))?["*"]:i}if(t.allowAllModels)l.models=["*:*"];else{const n=[];for(const[i,o]of Object.entries(t.modelSet))for(const c of o)n.push(`${i}:${c}`);n.length>0&&(l.models=n)}return l}function Vs(t,e,l){return t.kind==="builtin"?ks(t.role,e,void 0):t.kind==="custom"?Us(t.role,e,l):{role:{id:void 0,slug:void 0,label:""},allowAllStaticPermissions:!1,staticPermissions:[],toolSet:{},allowAllModels:!0,modelSet:{},memberIds:[]}}function Ys(t){const e=J.c(19),{readOnly:l,readOnlyMessage:n,onOpen:i}=t,o=n===void 0?void 0:n,c=re();let g;e[0]!==o||e[1]!==c?(g=o??c("settings.orgRoleDetail.ownerMembershipCannotBeChanged"),e[0]=o,e[1]=c,e[2]=g):g=e[2];const h=g;if(l){let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(ze,{size:16}),e[3]=u):u=e[3];let x;e[4]!==c?(x=c("settings.orgRoleDetail.addMember"),e[4]=c,e[5]=x):x=e[5];let d;e[6]!==x?(d=s.jsx(Pe,{asChild:!0,children:s.jsx("div",{children:s.jsxs(ce,{variant:"outline",size:"sm",disabled:!0,children:[u,x]})})}),e[6]=x,e[7]=d):d=e[7];let p;e[8]!==h?(p=s.jsx(we,{children:s.jsx("p",{children:h})}),e[8]=h,e[9]=p):p=e[9];let A;return e[10]!==d||e[11]!==p?(A=s.jsx(ye,{children:s.jsxs(Le,{children:[d,p]})}),e[10]=d,e[11]=p,e[12]=A):A=e[12],A}let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(ze,{size:16}),e[13]=m):m=e[13];let f;e[14]!==c?(f=c("settings.orgRoleDetail.addMember"),e[14]=c,e[15]=f):f=e[15];let a;return e[16]!==i||e[17]!==f?(a=s.jsxs(ce,{variant:"outline",size:"sm",onClick:i,children:[m,f]}),e[16]=i,e[17]=f,e[18]=a):a=e[18],a}function zs(t){const e=J.c(14),{locator:l}=Be(),n=$e(),i=qt();let o;e[0]!==l?(o=me.members(l),e[0]=l,e[1]=o):o=e[1];let c;e[2]!==n?(c=()=>n.organization.listMembers(),e[2]=n,e[3]=c):c=e[3];let g;e[4]!==o||e[5]!==c?(g={queryKey:o,queryFn:c},e[4]=o,e[5]=c,e[6]=g):g=e[6];const{data:h,isPending:m}=Ke(g);if(m||!i){let x;return e[7]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(ie,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(je,{size:32,className:"animate-spin text-muted-foreground"})})}),e[7]=x):x=e[7],x}let f;e[8]!==h?.data?.members?(f=h?.data?.members??[],e[8]=h?.data?.members,e[9]=f):f=e[9];const a=f;let u;return e[10]!==i||e[11]!==a||e[12]!==t?(u=s.jsx(Ks,{...t,members:a,connections:i}),e[10]=i,e[11]=a,e[12]=t,e[13]=u):u=e[13],u}function Ks({target:t,onBack:e,onSaved:l,members:n,connections:i}){const o=re(),{locator:c}=Be(),g=$e(),h=rt(),m=t.kind==="builtin",f=t.kind==="builtin"&&t.role==="owner",a=t.kind==="new",[u,x]=$.useState(m?"org":"mcp"),d=Ot({resolver:jt(us),defaultValues:Vs(t,n,i)}),p=d.formState.isValid,A=d.formState.isDirty,R=at({mutationFn:async r=>{const E=Bs(r,i),k=r.role.slug||r.role.label.toLowerCase().replace(/\s+/g,"-"),w=(r.role.slug==="owner"||r.role.slug==="admin"||r.role.slug==="user")&&!r.role.id,Y=async(y,z)=>{const L=n.filter(U=>U.role===(z??y)).map(U=>U.id),K=r.memberIds.filter(U=>!L.includes(U)),V=L.filter(U=>!r.memberIds.includes(U));for(const U of K){const B=await g.organization.updateMemberRole({memberId:U,role:[y]});if(B?.error)throw new Error(B.error.message??o("settings.orgRoleDetail.somethingWentWrong"))}for(const U of V){const B=await g.organization.updateMemberRole({memberId:U,role:["user"]});if(B?.error)throw new Error(B.error.message??o("settings.orgRoleDetail.somethingWentWrong"))}};if(w)return await Y(r.role.slug),r;if(r.role.id){const y=r.role.label.toLowerCase().replace(/\s+/g,"-"),z=r.role.slug,L=y!==z,K=await g.organization.updateRole({roleId:r.role.id,data:{permission:E,...L?{roleName:y}:{}}});if(K?.error)throw new Error(K.error.message??o("settings.orgRoleDetail.somethingWentWrong"));return await Y(L?y:z,L?z:void 0),L?{...r,role:{...r.role,slug:y}}:r}else{const y=await g.organization.createRole({role:k,permission:E});if(y?.error)throw new Error(y.error.message??o("settings.orgRoleDetail.somethingWentWrong"));for(const z of r.memberIds){const L=await g.organization.updateMemberRole({memberId:z,role:[k]});if(L?.error)throw new Error(L.error.message)}return{...r,role:{...r.role,id:y.data?.roleData?.id,slug:k}}}},onSuccess:(r,E)=>{h.invalidateQueries({queryKey:me.members(c)}),h.invalidateQueries({queryKey:me.organizationRoles(c)});const k=!E.role.id&&!E.role.slug,w=E.role.slug==="owner"&&!E.role.id;Fe(w?"role_members_updated":k?"role_created":"role_updated",{role_slug:E.role.slug??null}),Me.success(o(w?"settings.orgRoleDetail.membersUpdatedSuccessfully":k?"settings.orgRoleDetail.roleCreatedSuccessfully":"settings.orgRoleDetail.roleUpdatedSuccessfully")),d.reset(r),l(r.role.id)},onError:r=>{Me.error(r instanceof Error?r.message:o("settings.orgRoleDetail.failedToSaveRole"))}}),I=d.handleSubmit(r=>{if(!r.role.label.trim()){Me.error(o("settings.orgRoleDetail.roleNameIsRequired")),d.setFocus("role.label");return}R.mutate(r)}),b=!f,N=t.kind==="builtin"?t.role.charAt(0).toUpperCase()+t.role.slice(1):t.kind==="custom"?t.role.label:"",M=[...f?[]:[{id:"mcp",label:o("settings.orgRoleDetail.mcpPermissions")}],{id:"org",label:o("settings.orgRoleDetail.organizationPermissions")},{id:"models",label:o("settings.orgRoleDetail.models")},{id:"members",label:o("settings.orgRoleDetail.members")}],[S,O]=$.useState(""),[D,_]=$.useState(!1),C=r=>{x(r),O("")},v={mcp:o("settings.orgRoleDetail.searchMcpServers"),org:o("settings.orgRoleDetail.searchPermissions"),models:o("settings.orgRoleDetail.searchModels"),members:o("settings.orgRoleDetail.searchMembers")};return s.jsx(ie,{children:s.jsxs(ie.Content,{className:W("flex flex-col",u!=="org"&&"overflow-hidden"),children:[s.jsx("div",{className:"shrink-0 mx-auto w-full max-w-[1200px] px-4 md:px-10 pt-8 md:pt-12 pb-4",children:s.jsxs("div",{className:"flex flex-col gap-5",children:[s.jsx(ie.Title,{actions:b&&s.jsxs(s.Fragment,{children:[s.jsx(ce,{variant:"outline",size:"sm",onClick:e,disabled:R.isPending,children:o("settings.orgRoleDetail.cancel")}),s.jsx(ce,{size:"sm",onClick:I,disabled:R.isPending||!p||!A,children:R.isPending?o("settings.orgRoleDetail.saving"):o(a?"settings.orgRoleDetail.createRole":"settings.orgRoleDetail.saveChanges")})]}),children:s.jsxs("div",{className:"flex items-center gap-2.5 min-w-0",children:[s.jsx("div",{className:W("size-2.5 rounded-full shrink-0",t.kind==="builtin"?dt(t.role,!0):Pt(d.watch("role.label")))}),f&&s.jsx(ct,{size:16,className:"text-muted-foreground shrink-0"}),a||t.kind==="custom"?s.jsx("input",{...d.register("role.label"),placeholder:o("settings.orgRoleDetail.roleName"),className:"leading-tight text-foreground bg-transparent border-none outline-none px-1 -mx-1 rounded hover:bg-input/25 focus:bg-input/25 transition-colors w-64 placeholder:text-muted-foreground/50",autoFocus:a}):s.jsx("span",{className:"truncate",children:N})]})}),s.jsx("div",{className:"flex items-center gap-2",children:M.map(r=>s.jsx("button",{type:"button",onClick:()=>C(r.id),className:W("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex items-center",u===r.id?"bg-accent border-border text-foreground":"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:r.label},r.id))}),s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[s.jsx(Qe,{value:S,onChange:O,placeholder:v[u]??"Search...",className:"w-full md:w-[375px]"}),u==="members"&&s.jsx(Ys,{readOnly:t.kind==="builtin"&&t.role==="owner",onOpen:()=>_(!0)})]})]})}),s.jsx("div",{className:W("mx-auto w-full max-w-[1200px] px-4 md:px-10 pb-6",u!=="org"&&"flex-1 min-h-0"),children:s.jsxs("div",{className:W(u!=="org"&&"h-full overflow-hidden",u!=="models"&&u!=="org"&&"border border-border rounded-xl bg-card"),children:[u==="mcp"&&!f&&s.jsx(ms,{toolSet:d.watch("toolSet"),onToolSetChange:r=>d.setValue("toolSet",r,{shouldDirty:!0}),searchQuery:S}),u==="org"&&s.jsx(fs,{allowAllStaticPermissions:d.watch("allowAllStaticPermissions"),staticPermissions:d.watch("staticPermissions"),onAllowAllChange:r=>d.setValue("allowAllStaticPermissions",r,{shouldDirty:!0}),onPermissionsChange:r=>d.setValue("staticPermissions",r,{shouldDirty:!0}),readOnly:f,searchQuery:S}),u==="models"&&s.jsx(Ds,{allowAllModels:d.watch("allowAllModels"),modelSet:d.watch("modelSet"),onAllowAllChange:r=>d.setValue("allowAllModels",r,{shouldDirty:!0}),onModelSetChange:r=>d.setValue("modelSet",r,{shouldDirty:!0}),readOnly:f,searchQuery:S}),u==="members"&&s.jsx(ws,{memberIds:d.watch("memberIds"),onMemberIdsChange:r=>d.setValue("memberIds",r,{shouldDirty:!0}),readOnly:t.kind==="builtin"&&(t.role==="owner"||t.role==="user"),readOnlyMessage:t.kind==="builtin"&&t.role==="user"?o("settings.orgRoleDetail.userIsDefaultRoleMessage"):o("settings.orgRoleDetail.ownerMembershipCannotBeChanged"),searchQuery:S,addMemberDialogOpen:D,onAddMemberDialogOpenChange:_})]})})]})})}function Fs(t){return t.kind==="builtin"?`builtin-${t.role}`:t.kind==="custom"?`custom-${t.role.id}`:"new"}function $s(t){const e=J.c(6),{area:l,children:n}=t,{isPrivileged:i,loading:o,error:c}=ts();let g;return e[0]!==l||e[1]!==n||e[2]!==c||e[3]!==i||e[4]!==o?(g=s.jsx(ss,{granted:i,loading:o,error:c,area:l,children:n}),e[0]=l,e[1]=n,e[2]=c,e[3]=i,e[4]=o,e[5]=g):g=e[5],g}const Qs=[{role:"owner",labelKey:"settings.roles.roleOwner"},{role:"admin",labelKey:"settings.roles.roleAdmin"},{role:"user",labelKey:"settings.roles.roleUser"}];function Hs(){const t=J.c(135),e=re(),[l,n]=$.useState(""),[i,o]=$.useState(null),c=vt();let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g={strict:!1},t[0]=g):g=t[0];const{role:h}=yt(g),{locator:m}=Be(),f=$e(),a=rt(),{customRoles:u,refetch:x}=Lt();let d;t[1]!==c?(d=j=>c({to:".",search:P=>({...P,role:j})}),t[1]=c,t[2]=d):d=t[2];const p=d;let A;e:{if(!h){A=null;break e}if(h==="new"){A={kind:"new"};break e}if(h.startsWith("builtin-")){A={kind:"builtin",role:h.slice(8)};break e}let j;t[3]!==h?(j=ee=>ee.id===h,t[3]=h,t[4]=j):j=t[4];const P=u.find(j);A=P?{kind:"custom",role:P}:null}const R=A;let I;t[5]!==m?(I=me.members(m),t[5]=m,t[6]=I):I=t[6];let b;t[7]!==f?(b=()=>f.organization.listMembers(),t[7]=f,t[8]=b):b=t[8];let N;t[9]!==I||t[10]!==b?(N={queryKey:I,queryFn:b},t[9]=I,t[10]=b,t[11]=N):N=t[11];const{data:M}=Ke(N);let S;t[12]!==M?.data?.members?(S=M?.data?.members??[],t[12]=M?.data?.members,t[13]=S):S=t[13];const O=S;let D;t[14]!==O?(D=j=>O.filter(P=>P.role===j).length,t[14]=O,t[15]=D):D=t[15];const _=D;let C;if(t[16]!==u||t[17]!==_||t[18]!==l||t[19]!==e){let j;t[21]!==_||t[22]!==e?(j=de=>({kind:"builtin",role:{...de,memberCount:_(de.role),label:e(de.labelKey)}}),t[21]=_,t[22]=e,t[23]=j):j=t[23];const P=Qs.map(j);let ee;t[24]!==_?(ee=de=>({kind:"custom",role:{...de,memberCount:_(de.role)}}),t[24]=_,t[25]=ee):ee=t[25];const At=u.map(ee);if(C=[...P,...At],l){const de=l.toLowerCase();C=C.filter(bt=>bt.role.label.toLowerCase().includes(de))}t[16]=u,t[17]=_,t[18]=l,t[19]=e,t[20]=C}else C=t[20];let v;t[26]!==f?(v=async j=>{const P=await f.organization.deleteRole({roleId:j});if(P?.error)throw new Error(P.error.message);return P?.data},t[26]=f,t[27]=v):v=t[27];const r=at({mutationFn:v,onSuccess:(j,P)=>{Fe("role_deleted",{role_id:P}),a.invalidateQueries({queryKey:me.members(m)}),a.invalidateQueries({queryKey:me.organizationRoles(m)}),Me.success(e("settings.roles.deletedSuccessfully")),x(),R?.kind==="custom"&&R.role.id===P&&p(void 0)},onError:Js});let E;t[28]!==e?(E=e("settings.roles.columnRole"),t[28]=e,t[29]=E):E=t[29];let k;t[30]!==E?(k={id:"role",header:E,render:Xs,cellClassName:"flex-1 min-w-0",sortable:!0},t[30]=E,t[31]=k):k=t[31];let w;t[32]!==e?(w=e("settings.roles.columnType"),t[32]=e,t[33]=w):w=t[33];let Y;t[34]!==e?(Y=j=>j.kind==="builtin"?s.jsx(De,{variant:"secondary",className:"text-xs",children:e("settings.roles.builtIn")}):s.jsx(De,{variant:"outline",className:"text-xs",children:e("settings.roles.custom")}),t[34]=e,t[35]=Y):Y=t[35];let y;t[36]!==w||t[37]!==Y?(y={id:"type",header:w,render:Y,cellClassName:"w-28 shrink-0"},t[36]=w,t[37]=Y,t[38]=y):y=t[38];let z;t[39]!==e?(z=e("settings.roles.columnPermissions"),t[39]=e,t[40]=z):z=t[40];let L;t[41]!==e?(L=j=>{if(j.kind==="builtin")return j.role.role==="owner"||j.role.role==="admin"?s.jsx("span",{className:"text-sm text-muted-foreground",children:e("settings.roles.fullAccess")}):s.jsx("span",{className:"text-sm text-muted-foreground",children:e("settings.roles.basicAccess")});const P=j.role,ee=[];return P.allowsAllStaticPermissions?ee.push(e("settings.roles.fullOrgAccess")):P.staticPermissionCount&&P.staticPermissionCount>0&&ee.push(e("settings.roles.orgPermsCount",{count:P.staticPermissionCount})),P.allowsAllConnections?ee.push(e("settings.roles.allConnections")):P.connectionCount&&P.connectionCount>0&&ee.push(e("settings.roles.connectionCount",{count:P.connectionCount})),s.jsx("span",{className:"text-sm text-muted-foreground truncate",children:ee.length>0?ee.join(", "):e("settings.roles.noPermissions")})},t[41]=e,t[42]=L):L=t[42];let K;t[43]!==z||t[44]!==L?(K={id:"permissions",header:z,render:L,cellClassName:"flex-1 min-w-0"},t[43]=z,t[44]=L,t[45]=K):K=t[45];let V;t[46]!==e?(V=e("settings.roles.columnMembers"),t[46]=e,t[47]=V):V=t[47];let U;t[48]!==V?(U={id:"members",header:V,render:Ws,cellClassName:"w-24 shrink-0"},t[48]=V,t[49]=U):U=t[49];let B;t[50]!==e?(B={id:"actions",header:"",render:j=>j.kind==="builtin"?null:s.jsxs(wt,{children:[s.jsx(Gt,{asChild:!0,children:s.jsx(ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:qs,children:s.jsx(Bt,{size:16})})}),s.jsx(kt,{align:"end",onClick:Zs,children:s.jsxs(Ut,{variant:"destructive",onClick:()=>{const P=j.role;P.id&&o({id:P.id,label:P.label})},children:[s.jsx(Vt,{size:16}),e("settings.roles.delete")]})})]}),cellClassName:"w-12 shrink-0"},t[50]=e,t[51]=B):B=t[51];let H;t[52]!==k||t[53]!==y||t[54]!==K||t[55]!==U||t[56]!==B?(H=[k,y,K,U,B],t[52]=k,t[53]=y,t[54]=K,t[55]=U,t[56]=B,t[57]=H):H=t[57];const X=H;let te;t[58]!==p?(te=j=>{if(j.kind==="builtin")p(`builtin-${j.role.role}`);else{const P=j.role;p(P.id)}},t[58]=p,t[59]=te):te=t[59];const le=te;if(R){let j;t[60]!==p?(j=()=>p(void 0),t[60]=p,t[61]=j):j=t[61];let P;return t[62]!==x||t[63]!==p?(P=()=>{x(),p(void 0)},t[62]=x,t[63]=p,t[64]=P):P=t[64],s.jsx(zs,{target:R,onBack:j,onSaved:P},Fs(R))}let F;t[65]!==e?(F=e("settings.roles.pageTitle"),t[65]=e,t[66]=F):F=t[66];let Z;t[67]!==F?(Z=s.jsx(ie.Title,{children:F}),t[67]=F,t[68]=Z):Z=t[68];let T;t[69]!==e?(T=e("settings.roles.searchPlaceholder"),t[69]=e,t[70]=T):T=t[70];let G;t[71]===Symbol.for("react.memo_cache_sentinel")?(G=j=>{j.key==="Escape"&&(n(""),j.target.blur())},t[71]=G):G=t[71];let Q;t[72]!==l||t[73]!==T?(Q=s.jsx(Qe,{value:l,onChange:n,placeholder:T,className:"w-full md:w-[375px]",onKeyDown:G}),t[72]=l,t[73]=T,t[74]=Q):Q=t[74];let q;t[75]!==p?(q=()=>p("new"),t[75]=p,t[76]=q):q=t[76];let ne;t[77]===Symbol.for("react.memo_cache_sentinel")?(ne=s.jsx(ze,{size:16}),t[77]=ne):ne=t[77];let se;t[78]!==e?(se=e("settings.roles.createRole"),t[78]=e,t[79]=se):se=t[79];let oe;t[80]!==q||t[81]!==se?(oe=s.jsxs(ce,{onClick:q,children:[ne,se]}),t[80]=q,t[81]=se,t[82]=oe):oe=t[82];let ue;t[83]!==Q||t[84]!==oe?(ue=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[Q,oe]}),t[83]=Q,t[84]=oe,t[85]=ue):ue=t[85];let fe;t[86]!==l||t[87]!==e?(fe=l?s.jsx(tt,{title:e("settings.roles.noRolesFound"),description:e("settings.roles.noRolesMatchSearch",{search:l})}):s.jsx(tt,{title:e("settings.roles.noRoles"),description:e("settings.roles.createRoleGetStarted")}),t[86]=l,t[87]=e,t[88]=fe):fe=t[88];let ge;t[89]!==C||t[90]!==X||t[91]!==le||t[92]!==fe?(ge=s.jsx(Yt,{columns:X,data:C,isLoading:!1,onRowClick:le,emptyState:fe}),t[89]=C,t[90]=X,t[91]=le,t[92]=fe,t[93]=ge):ge=t[93];let he;t[94]!==Z||t[95]!==ue||t[96]!==ge?(he=s.jsx(ie.Content,{children:s.jsx(ie.Body,{children:s.jsxs("div",{className:"flex flex-col gap-6",children:[Z,ue,ge]})})}),t[94]=Z,t[95]=ue,t[96]=ge,t[97]=he):he=t[97];const Ve=i!==null;let Ge;t[98]===Symbol.for("react.memo_cache_sentinel")?(Ge=j=>!j&&o(null),t[98]=Ge):Ge=t[98];let xe;t[99]!==e?(xe=e("settings.roles.deleteRoleTitle"),t[99]=e,t[100]=xe):xe=t[100];let pe;t[101]!==xe?(pe=s.jsx(ft,{children:xe}),t[101]=xe,t[102]=pe):pe=t[102];const Ye=i?.label??"";let Te;t[103]!==e||t[104]!==Ye?(Te=e("settings.roles.deleteRoleConfirm",{role:Ye}),t[103]=e,t[104]=Ye,t[105]=Te):Te=t[105];let _e;t[106]!==Te?(_e=s.jsx(gt,{children:Te}),t[106]=Te,t[107]=_e):_e=t[107];let Ee;t[108]!==pe||t[109]!==_e?(Ee=s.jsxs(ht,{children:[pe,_e]}),t[108]=pe,t[109]=_e,t[110]=Ee):Ee=t[110];let Ie;t[111]!==e?(Ie=e("settings.roles.cancel"),t[111]=e,t[112]=Ie):Ie=t[112];let Re;t[113]!==Ie?(Re=s.jsx(xt,{children:Ie}),t[113]=Ie,t[114]=Re):Re=t[114];let Se;t[115]!==r||t[116]!==i?(Se=()=>{i?.id&&r.mutate(i.id),o(null)},t[115]=r,t[116]=i,t[117]=Se):Se=t[117];let Ne;t[118]!==e?(Ne=e("settings.roles.delete"),t[118]=e,t[119]=Ne):Ne=t[119];let Ce;t[120]!==Se||t[121]!==Ne?(Ce=s.jsx(pt,{onClick:Se,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:Ne}),t[120]=Se,t[121]=Ne,t[122]=Ce):Ce=t[122];let Ae;t[123]!==Re||t[124]!==Ce?(Ae=s.jsxs(Tt,{children:[Re,Ce]}),t[123]=Re,t[124]=Ce,t[125]=Ae):Ae=t[125];let be;t[126]!==Ee||t[127]!==Ae?(be=s.jsxs(ut,{children:[Ee,Ae]}),t[126]=Ee,t[127]=Ae,t[128]=be):be=t[128];let Oe;t[129]!==Ve||t[130]!==be?(Oe=s.jsx(mt,{open:Ve,onOpenChange:Ge,children:be}),t[129]=Ve,t[130]=be,t[131]=Oe):Oe=t[131];let ke;return t[132]!==he||t[133]!==Oe?(ke=s.jsxs(ie,{children:[he,Oe]}),t[132]=he,t[133]=Oe,t[134]=ke):ke=t[134],ke}function Zs(t){return t.stopPropagation()}function qs(t){return t.stopPropagation()}function Ws(t){return s.jsx("span",{className:"text-sm text-foreground",children:t.role.memberCount})}function Xs(t){return s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:W("size-2.5 rounded-full shrink-0",dt(t.role.role,t.kind==="builtin"))}),s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:t.role.label}),t.kind==="builtin"&&s.jsx(ct,{size:12,className:"text-muted-foreground shrink-0"})]})}function Js(t,e){Fe("role_delete_failed",{role_id:e,error:t instanceof Error?t.message:String(t)}),Me.error(t instanceof Error?t.message:"Failed to delete role")}function el(){const t=J.c(7),e=re();let l;t[0]!==e?(l=e("settings.roles.failedToLoad"),t[0]=e,t[1]=l):l=t[1];let n;t[2]!==l?(n=s.jsx(ie,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:l})})}),t[2]=l,t[3]=n):n=t[3];let i;t[4]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx($.Suspense,{fallback:s.jsx(ie,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(je,{size:32,className:"animate-spin text-muted-foreground"})})}),children:s.jsx(Hs,{})}),t[4]=i):i=t[4];let o;return t[5]!==n?(o=s.jsx(Dt,{fallback:n,children:i}),t[5]=n,t[6]=o):o=t[6],o}function Lo(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx($s,{area:"roles",children:s.jsx(el,{})}),t[0]=e):e=t[0],e}export{Lo as default};
@@ -1 +0,0 @@
1
- import{c as T,b as ve,j as o,r as ee,B as je,k as Se}from"./index-Gptoc_-0.js";import{i as ke}from"./ChevronRight-BnJ4c2IL.js";import{am as fe}from"./agent-icon-DpJzA7B2.js";import{B as xe}from"./automation-runs-0zCTJHHe.js";import{r as Ne,c as we,u as _e,a as Ee,i as Pe,d as Te,f as Fe,P as Re,S as Ce}from"./page-seo-form-DeB6ysXI.js";import{as as ue,aj as Ke}from"./index-h0GcRHM1.js";import{a as ye}from"./Tool01-CRPVUEI-.js";import"./AlertCircle-CjFbPbXR.js";import"./ArrowUp-BLV5slUU.js";import"./ArrowLeft-Dkou2oyv.js";import"./Tool02-BLLppoSv.js";import"./XCircle-CMWuzD62.js";import"./ArrowUpRight-BP30hDff.js";import"./TrendUp01-Bxf23nqY.js";import"./ZapSquare-CGho5JH5.js";import"./Users03-CttOOkYC.js";import"./CheckCircle-BJO_ypFA.js";import"./Check-BSC6j_AW.js";import"./ChevronDown-CVKkscg7.js";import"./ChevronUp-CVzJYnye.js";import"./DotsVertical-D-83qNJa.js";import"./Stars02-OU17b3lp.js";import"./Copy01-BGs_9rA1.js";import"./CpuChip01-CWKZNd3u.js";import"./CreditCard01-BgStC_qv.js";import"./Globe01-DarbWSch.js";import"./Settings02-DcwyvSXX.js";import"./Eye-NTHABHlz.js";import"./FilterLines-Bu45YNI1.js";import"./Share07-B2hvI558.js";import"./Star01-CBnujI48.js";import"./Globe04-BBpMsdiG.js";import"./SwitchHorizontal01-6N0f6IEs.js";import"./HardDrive-DCp-WUl5.js";import"./Key01-CNX_ptat.js";import"./LayoutLeft-D5nGLk_M.js";import"./LinkExternal01-BZfOUq-Q.js";import"./LogOut01-j4YaKBaR.js";import"./Monitor01-C38MaP2T.js";import"./Sun-yZz6cey6.js";import"./Palette-Borxdy0n.js";import"./Play-DtbV3l2x.js";import"./Plus-B75q72-Y.js";import"./SearchLg-C01PHEsZ.js";import"./SearchMd-sYSLCAfX.js";import"./Shield01-DQ1xPJLH.js";import"./Stars01-DqNq041Y.js";import"./Trash01-DUcC_MrI.js";import"./Upload01-lDNoA7DY.js";import"./User01-D_PtC3-l.js";import"./Users01-RLx4pV7z.js";import"./XClose-DiX97P-p.js";import"./X-0jWoG5jx.js";import"./Zap-CkkvDzJg.js";import"./select-Tei14Zu4.js";import"./tooltip-CAY4Un9y.js";import"./useInfiniteQuery-BcVwIHfG.js";import"./use-infinite-scroll-N2WGSfb_.js";import"./use-connection-CHvN0FBa.js";import"./use-mcp-client-CCJCYDxN.js";import"./auth-BUKUv3gh.js";import"./use-virtual-mcp-bKqEnT_v.js";import"./card-Zz2koMwO.js";import"./sidebar-fE9arcNR.js";import"./use-mobile-uWMSI329.js";import"./table-BqUdzLQw.js";import"./empty-state-CQKPJKx2.js";import"./use-members-BEOwJloH.js";import"./use-org-auth-client-BmiUk9g-.js";import"./use-clock-tick-DQJlJSeJ.js";import"./use-automations-l3Ox7fHF.js";import"./studio-tools-DaHRmNBg.js";import"./useSuspenseInfiniteQuery-B_UTR4fd.js";import"./avatar-CoBdq5SX.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BKbIPHzw.js";import"./dialog-C0_VZPHC.js";import"./tab-id-DqxFWWKz.js";import"./hooks-B7N1YIMG.js";import"./decopilot-sse-pool-DLZWceLm.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-BWORVgD7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-Dw-i46pJ.js";import"./use-decopilot-events-6yGSgNoz.js";import"./use-organization-settings-BPPkEz7K.js";import"./monaco-editor-Bx-WJoCd.js";import"./spinner-C3SNk2G5.js";import"./types-Ctr4Pq-Y.js";import"./shell-layout-DKP_M-mD.js";import"./required-auth-layout-DF3apjeH.js";import"./use-org-sso-DoxFiQxq.js";import"./integration-icon-BtDBTwbu.js";import"./use-navigate-to-agent-zvAVYd41.js";import"./reusable-new-chat-CouMjkYR.js";import"./chart-Bnk_UfBL.js";import"./index-OxFtCYT-.js";import"./form-DApAFFn0.js";import"./label-DtVKw0n-.js";import"./input-BzvzuDaQ.js";import"./file-type-icon-BaDll1C-.js";import"./switch-HDj1d-W_.js";import"./drawer-2KdGcrE6.js";import"./collection-search-_zFY8-Cf.js";import"./deco-site-production-url-BjY4ZYd-.js";import"./tabs-C2pF4tHl.js";import"./toggle-group-GAcLozzv.js";import"./use-commerce-diagnostic-BVElM2RV.js";import"./popover-vEPjwNUl.js";import"./self-tool-result-C9rWuUA9.js";import"./alert-dialog-C3fO6FiW.js";import"./extract-connection-data-DVi4pwNP.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import"./use-debounced-value-CGQ1MygG.js";import"./authenticate-and-persist-oauth-BL5kxXPR.js";import"./mcp-oauth-DmlNibJW.js";import"./track-poPKLD9c.js";import"./toolbar-CPIussBe.js";import"./skeleton-WByIIjEz.js";import"./github-repo-picker-qhvXBKMo.js";import"./use-mcp-tools-CGdKn1Fw.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-BHS6Mbjr.js";import"./use-registry-connections-CDunPWB9.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-kmGQrCWT.js";import"./connection-form-helpers-DsdyG005.js";import"./collection-tabs-Tu083PIR.js";import"./badge-BKlfRcKL.js";import"./command-DI3FhUnx.js";import"./index-CuujNnv4.js";import"./use-open-billing-url-ptr76Hlr.js";import"./select-model-DotYsAqj.js";import"./checkbox-DpwUgoY2.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-DhCcFHe0.js";import"./cards-DZhyxsHe.js";import"./dropdown-menu-CMTPZ7Ir.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BmimvYmS.js";import"./use-capability-Bq8QIaAm.js";import"./use-file-configs-BeAzNpwF.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-C2C9GPgR.js";import"./index-DeD3quSS.js";import"./search-input-DyFy1iK0.js";import"./index-BCveq62k.js";import"./use-secrets-Bb1WW8u5.js";import"./AreaChart-CF11UEYw.js";import"./use-tags-C0yWU0xy.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-BZ2cPPd8.js";function A(d){return typeof d=="string"&&d.trim()?d:void 0}function he(d,e){if(d){if(e)try{const t=new URL(d,e).href;return ue(t)}catch{return}return ue(d)}}function ze(d){if(!d)return{};const e=A(d.title),t=A(d.titleTemplate);return{title:e&&t?.includes("%s")?t.replace(/%s/g,e):e,description:A(d.description),image:A(d.image),favicon:A(d.favicon)}}function De(d){if(!d)return"example.com";try{return new URL(d).host}catch{return"example.com"}}const $e=[{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 de(d){const e=T.c(10),{src:t,className:n,iconSize:v}=d,r=v===void 0?20:v;if(t){let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={objectFit:"cover"},e[0]=m):m=e[0];let p;return e[1]!==n||e[2]!==t?(p=o.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:n,style:m}),e[1]=n,e[2]=t,e[3]=p):p=e[3],p}let s;e[4]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignItems:"center",justifyContent:"center",background:"#e5e7eb",color:"#9ca3af"},e[4]=s):s=e[4];let i;e[5]!==r?(i=o.jsx(ye,{size:r}),e[5]=r,e[6]=i):i=e[6];let a;return e[7]!==n||e[8]!==i?(a=o.jsx("div",{className:n,style:s,children:i}),e[7]=n,e[8]=i,e[9]=a):a=e[9],a}function Be(d){const e=T.c(33),{seo:t,host:n,path:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#fff",border:"1px solid #dadce0"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={background:"#f1f3f4"},e[1]=i):i=e[1];let a;e[2]!==t.favicon?(a=o.jsx("div",{className:"flex size-6 shrink-0 items-center justify-center overflow-hidden rounded-full",style:i,children:t.favicon?o.jsx("img",{src:t.favicon,alt:"",className:"size-full object-cover"}):o.jsx(ye,{size:12,color:"#9aa0a6"})}),e[2]=t.favicon,e[3]=a):a=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m={color:"#202124"},e[4]=m):m=e[4];let p;e[5]!==n?(p=o.jsx("div",{className:"truncate text-[13px] leading-tight",style:m,children:n}),e[5]=n,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f={color:"#4d5156"},e[7]=f):f=e[7];let l;e[8]!==n||e[9]!==v?(l=o.jsxs("div",{className:"truncate text-[12px] leading-tight",style:f,children:[n,v]}),e[8]=n,e[9]=v,e[10]=l):l=e[10];let c;e[11]!==p||e[12]!==l?(c=o.jsxs("div",{className:"min-w-0",children:[p,l]}),e[11]=p,e[12]=l,e[13]=c):c=e[13];let h;e[14]!==a||e[15]!==c?(h=o.jsxs("div",{className:"flex items-center gap-2",children:[a,c]}),e[14]=a,e[15]=c,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 u;e[21]!==y?(u=o.jsx("div",{className:"mt-1.5 truncate text-[18px] leading-snug",style:x,children:y}),e[21]=y,e[22]=u):u=e[22];let S;e[23]===Symbol.for("react.memo_cache_sentinel")?(S={color:"#4d5156"},e[23]=S):S=e[23];let g;e[24]!==t.description||e[25]!==r?(g=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[24]=t.description,e[25]=r,e[26]=g):g=e[26];let b;e[27]!==g?(b=o.jsx("div",{className:"mt-0.5 line-clamp-2 text-[13px] leading-snug",style:S,children:g}),e[27]=g,e[28]=b):b=e[28];let j;return e[29]!==u||e[30]!==b||e[31]!==h?(j=o.jsxs("div",{className:"rounded-lg p-3 text-left",style:s,children:[h,u,b]}),e[29]=u,e[30]=b,e[31]=h,e[32]=j):j=e[32],j}function Ie(d){const e=T.c(26),{seo:t,host:n,t:v}=d;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"#fff",border:"1px solid #e2e8f0"},e[0]=r):r=e[0];let s;e[1]!==t.image?(s=o.jsx(de,{src:t.image,className:"h-40 w-full"}),e[1]=t.image,e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i={borderTop:"1px solid #e2e8f0"},e[3]=i):i=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a={color:"#8a9099"},e[4]=a):a=e[4];let m;e[5]!==n?(m=o.jsx("div",{className:"truncate text-[11px]",style:a,children:n}),e[5]=n,e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={color:"#1c2024"},e[7]=p):p=e[7];let f;e[8]!==t.title||e[9]!==v?(f=t.title??v("sectionsEditor.seoPreview.fallbackTitle"),e[8]=t.title,e[9]=v,e[10]=f):f=e[10];let l;e[11]!==f?(l=o.jsx("div",{className:"line-clamp-1 text-[14px] font-semibold",style:p,children:f}),e[11]=f,e[12]=l):l=e[12];let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#60666c"},e[13]=c):c=e[13];let h;e[14]!==t.description||e[15]!==v?(h=t.description??v("sectionsEditor.seoPreview.fallbackDescription"),e[14]=t.description,e[15]=v,e[16]=h):h=e[16];let x;e[17]!==h?(x=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:c,children:h}),e[17]=h,e[18]=x):x=e[18];let y;e[19]!==x||e[20]!==m||e[21]!==l?(y=o.jsxs("div",{className:"px-3 py-2",style:i,children:[m,l,x]}),e[19]=x,e[20]=m,e[21]=l,e[22]=y):y=e[22];let u;return e[23]!==y||e[24]!==s?(u=o.jsxs("div",{className:"overflow-hidden rounded-lg text-left",style:r,children:[s,y]}),e[23]=y,e[24]=s,e[25]=u):u=e[25],u}function Le(d){const e=T.c(36),{seo:t,host:n,accent:v,t:r}=d;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={background:"#f0f2f5"},e[0]=s):s=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={color:"#3b4045"},e[1]=i):i=e[1];let a;e[2]!==r?(a=r("sectionsEditor.seoPreview.chatCardHint"),e[2]=r,e[3]=a):a=e[3];let m;e[4]!==a?(m=o.jsx("p",{className:"px-1 pb-1.5 text-[12px]",style:i,children:a}),e[4]=a,e[5]=m):m=e[5];const p=`3px solid ${v}`;let f;e[6]!==p?(f={background:"#fff",borderLeft:p},e[6]=p,e[7]=f):f=e[7];let l;e[8]!==t.image?(l=o.jsx(de,{src:t.image,className:"h-28 w-full",iconSize:18}),e[8]=t.image,e[9]=l):l=e[9];let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c={color:"#1c2024"},e[10]=c):c=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=o.jsx("div",{className:"line-clamp-1 text-[12px] font-semibold",style:c,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 u;e[17]!==t.description||e[18]!==r?(u=t.description??r("sectionsEditor.seoPreview.fallbackDescription"),e[17]=t.description,e[18]=r,e[19]=u):u=e[19];let S;e[20]!==u?(S=o.jsx("div",{className:"line-clamp-2 text-[11px]",style:y,children:u}),e[20]=u,e[21]=S):S=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#8a9099"},e[22]=g):g=e[22];let b;e[23]!==n?(b=o.jsx("div",{className:"mt-0.5 text-[10px]",style:g,children:n}),e[23]=n,e[24]=b):b=e[24];let j;e[25]!==x||e[26]!==S||e[27]!==b?(j=o.jsxs("div",{className:"px-2.5 py-1.5",children:[x,S,b]}),e[25]=x,e[26]=S,e[27]=b,e[28]=j):j=e[28];let k;e[29]!==j||e[30]!==f||e[31]!==l?(k=o.jsxs("div",{className:"overflow-hidden rounded-md",style:f,children:[l,j]}),e[29]=j,e[30]=f,e[31]=l,e[32]=k):k=e[32];let N;return e[33]!==k||e[34]!==m?(N=o.jsxs("div",{className:"rounded-lg p-2 text-left",style:s,children:[m,k]}),e[33]=k,e[34]=m,e[35]=N):N=e[35],N}function Oe(d){const e=T.c(39),{seo:t,host:n,accent:v,dark:r,t:s}=d,i=r?"#2b2d31":"#fff",a=r?"#00a8fc":"#1264a3",m=r?"#dbdee1":"#3b4045",p=r?"#949ba4":"#8a9099",f=r?"none":"1px solid #e2e8f0";let l;e[0]!==i||e[1]!==f?(l={background:i,border:f},e[0]=i,e[1]=f,e[2]=l):l=e[2];const c=`3px solid ${v}`;let h;e[3]!==c?(h={borderLeft:c,borderRadius:2},e[3]=c,e[4]=h):h=e[4];let x;e[5]!==p?(x={color:p},e[5]=p,e[6]=x):x=e[6];let y;e[7]!==n||e[8]!==x?(y=o.jsx("div",{className:"text-[10px]",style:x,children:n}),e[7]=n,e[8]=x,e[9]=y):y=e[9];let u;e[10]!==a?(u={color:a},e[10]=a,e[11]=u):u=e[11];let S;e[12]!==t.title||e[13]!==s?(S=t.title??s("sectionsEditor.seoPreview.fallbackTitle"),e[12]=t.title,e[13]=s,e[14]=S):S=e[14];let g;e[15]!==u||e[16]!==S?(g=o.jsx("div",{className:"line-clamp-1 text-[13px] font-semibold",style:u,children:S}),e[15]=u,e[16]=S,e[17]=g):g=e[17];let b;e[18]!==m?(b={color:m},e[18]=m,e[19]=b):b=e[19];let j;e[20]!==t.description||e[21]!==s?(j=t.description??s("sectionsEditor.seoPreview.fallbackDescription"),e[20]=t.description,e[21]=s,e[22]=j):j=e[22];let k;e[23]!==b||e[24]!==j?(k=o.jsx("div",{className:"line-clamp-2 text-[12px]",style:b,children:j}),e[23]=b,e[24]=j,e[25]=k):k=e[25];let N;e[26]!==k||e[27]!==y||e[28]!==g?(N=o.jsxs("div",{className:"min-w-0 flex-1",children:[y,g,k]}),e[26]=k,e[27]=y,e[28]=g,e[29]=N):N=e[29];let w;e[30]!==t.image?(w=o.jsx(de,{src:t.image,className:"size-14 shrink-0 rounded",iconSize:16}),e[30]=t.image,e[31]=w):w=e[31];let _;e[32]!==N||e[33]!==w||e[34]!==h?(_=o.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[35];let P;return e[36]!==_||e[37]!==l?(P=o.jsx("div",{className:"rounded-lg p-2.5 text-left",style:l,children:_}),e[36]=_,e[37]=l,e[38]=P):P=e[38],P}function Ue(d){const e=T.c(21),{platform:t,seo:n,host:v,path:r,t:s}=d;let i;e[0]!==v||e[1]!==r||e[2]!==t.color||e[3]!==t.id||e[4]!==t.layout||e[5]!==n||e[6]!==s?(i=t.layout==="search"?o.jsx(Be,{seo:n,host:v,path:r,t:s}):t.layout==="card"?o.jsx(Ie,{seo:n,host:v,path:r,t:s}):t.layout==="chat"?o.jsx(Le,{seo:n,host:v,path:r,accent:t.color,t:s}):o.jsx(Oe,{seo:n,host:v,path:r,accent:t.color,dark:t.id==="discord",t:s}),e[0]=v,e[1]=r,e[2]=t.color,e[3]=t.id,e[4]=t.layout,e[5]=n,e[6]=s,e[7]=i):i=e[7];const a=i;let m;e[8]!==t.color?(m=o.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{background:t.color}}),e[8]=t.color,e[9]=m):m=e[9];let p;e[10]!==t.labelKey||e[11]!==s?(p=s(t.labelKey),e[10]=t.labelKey,e[11]=s,e[12]=p):p=e[12];let f;e[13]!==p?(f=o.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:p}),e[13]=p,e[14]=f):f=e[14];let l;e[15]!==m||e[16]!==f?(l=o.jsxs("div",{className:"mb-1.5 flex items-center gap-1.5",children:[m,f]}),e[15]=m,e[16]=f,e[17]=l):l=e[17];let c;return e[18]!==a||e[19]!==l?(c=o.jsxs("div",{children:[l,a]}),e[18]=a,e[19]=l,e[20]=c):c=e[20],c}function Ae(d){const e=T.c(18),{seo:t,url:n,path:v}=d,r=v===void 0?"/":v,s=ve();let i,a,m;if(e[0]!==t||e[1]!==n){const u=ze(t);i=u,a=he(u.image,n),m=he(u.favicon,n),e[0]=t,e[1]=n,e[2]=i,e[3]=a,e[4]=m}else i=e[2],a=e[3],m=e[4];let p;e[5]!==i||e[6]!==a||e[7]!==m?(p={...i,image:a,favicon:m},e[5]=i,e[6]=a,e[7]=m,e[8]=p):p=e[8];const f=p;let l;e[9]!==n?(l=De(n),e[9]=n,e[10]=l):l=e[10];const c=l,h=r==="/"?"":r;let x;e[11]!==h||e[12]!==c||e[13]!==s||e[14]!==f?(x=$e.map(u=>o.jsx(Ue,{platform:u,seo:f,host:c,path:h,t:s},u.id)),e[11]=h,e[12]=c,e[13]=s,e[14]=f,e[15]=x):x=e[15];let y;return e[16]!==x?(y=o.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 Ai(d){const e=T.c(70),{orgSlug:t,virtualMcpId:n,branch:v,decofile:r,meta:s,target:i,previewBaseUrl:a,onSaved:m,onEditDefaultSeo:p,onBack:f}=d,l=ve(),c=Ne(r,i,s),h=c?.seoData,x=i.kind==="site"?"site":i.pageKey,[y,u]=ee.useState(x),[S,g]=ee.useState(null),[b,j]=ee.useState(0),[k,N]=ee.useState(void 0);y!==x&&(u(x),g(null),N(void 0),j(Ge));const{persistSeo:w,persistRawSeo:_,flush:P,isPending:te}=we({orgSlug:t,virtualMcpId:n,branch:v,target:i,resolved:c,onSaved:m}),M=i.kind==="page",ge=M?c?.rawSeoData:void 0,U=k!==void 0?k:ge,be=M?_e(U)??void 0:void 0,E=S??be??h??{},F=c?Ee(E,c):null,K=F&&(!M||Pe(U))?Ke(F,s):null;let G;e[0]!==s?(G=Te(s),e[0]=s,e[1]=G):G=e[1];const oe=G;let R,H;e[2]!==r||e[3]!==E||e[4]!==s||e[5]!==i.kind?(R=i.kind==="page"?Fe(r,s)?.seoData??{}:{},H=i.kind==="page"?Ve(R,E):E,e[2]=r,e[3]=E,e[4]=s,e[5]=i.kind,e[6]=R,e[7]=H):(R=e[6],H=e[7]);const ie=H;let V;e[8]!==w||e[9]!==c||e[10]!==g?(V=C=>{if(!c)return;const pe=C;g(pe),w(pe)},e[8]=w,e[9]=c,e[10]=g,e[11]=V):V=e[11];const se=V;let W;e[12]!==g?(W=()=>g(null),e[12]=g,e[13]=W):W=e[13];const le=W;let q;e[14]!==j?(q=()=>j(Me),e[14]=j,e[15]=q):q=e[15];const re=q;let J;e[16]!==P||e[17]!==f?(J=()=>{P(),f?.()},e[16]=P,e[17]=f,e[18]=J):J=e[18];const ce=J,z=i.kind==="page"?i.path:"/";let Q;e[19]!==z||e[20]!==a||e[21]!==i.kind?(Q=i.kind==="page"&&a?He(z,a):a??null,e[19]=z,e[20]=a,e[21]=i.kind,e[22]=Q):Q=e[22];const ne=Q;let X;e[23]!==c||e[24]!==l||e[25]!==i.kind?(X=i.kind==="site"?l("sectionsEditor.seoEditor.noSiteSeoBlock"):l(c?"sectionsEditor.seoEditor.noSeoSchema":"sectionsEditor.seoEditor.couldNotLoadSeo"),e[23]=c,e[24]=l,e[25]=i.kind,e[26]=X):X=e[26];const ae=X,Y=M&&c,me=i.kind==="site"&&c&&K;let D;e[27]!==ce||e[28]!==l||e[29]!==i.kind||e[30]!==i.pageName?(D=i.kind==="page"?o.jsxs("nav",{className:"flex min-w-0 items-center gap-1 text-sm",children:[o.jsx("button",{type:"button",onClick:ce,title:i.pageName,className:"min-w-0 truncate rounded-md px-1 py-0.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:i.pageName}),o.jsx(ke,{className:"size-3 shrink-0 text-muted-foreground/60"}),o.jsx("span",{className:"px-1 py-0.5 font-medium text-foreground",children:"SEO"})]}):o.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[o.jsx(fe,{size:16,className:"shrink-0 text-muted-foreground"}),o.jsx("span",{className:"text-sm font-medium",children:l("sectionsEditor.seoEditor.defaultSeoLabel")}),o.jsxs("span",{className:"hidden truncate text-xs text-muted-foreground sm:inline",children:["· ",l("sectionsEditor.seoEditor.appliedToEveryPage")]})]}),e[27]=ce,e[28]=l,e[29]=i.kind,e[30]=i.pageName,e[31]=D):D=e[31];let $;e[32]!==te?($=te&&o.jsx(Se,{size:14,className:"animate-spin text-muted-foreground"}),e[32]=te,e[33]=$):$=e[33];let B;e[34]!==p||e[35]!==l||e[36]!==i.kind?(B=i.kind==="page"&&p&&o.jsxs(je,{type:"button",variant:"outline",size:"sm",onClick:p,children:[o.jsx(fe,{size:14}),l("sectionsEditor.seoEditor.editDefaultSeoButton")]}),e[34]=p,e[35]=l,e[36]=i.kind,e[37]=B):B=e[37];let I;e[38]!==$||e[39]!==B?(I=o.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[$,B]}),e[38]=$,e[39]=B,e[40]=I):I=e[40];let L;e[41]!==I||e[42]!==D?(L=o.jsxs("div",{className:"flex h-12 shrink-0 items-center gap-2 border-b px-4",children:[D,I]}),e[41]=I,e[42]=D,e[43]=L):L=e[43];let O;e[44]!==F||e[45]!==re||e[46]!==le||e[47]!==oe||e[48]!==U||e[49]!==E||e[50]!==ae||e[51]!==b||e[52]!==se||e[53]!==z||e[54]!==_||e[55]!==w||e[56]!==ie||e[57]!==ne||e[58]!==c||e[59]!==K||e[60]!==g||e[61]!==N||e[62]!==Y||e[63]!==me||e[64]!==R||e[65]!==l?(O=!c||!Y&&!me?o.jsx("div",{className:"flex flex-1 items-center justify-center px-6 text-center text-sm text-muted-foreground",children:ae}):o.jsxs("div",{className:"flex min-h-0 flex-1",children:[o.jsx(xe,{className:"w-full max-w-md shrink-0 border-r [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"px-5 py-4",children:Y?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"mb-3 text-xs text-muted-foreground",children:l("sectionsEditor.seoEditor.emptyFieldsHint")}),o.jsx(Re,{rawSeo:U,innerSeo:E,defaultResolveType:oe,seoSchema:K,activeResolveType:F,seoTypeOptions:c.seoTypeOptions,formResetKey:b,siteDefaultSeo:R,onPersistRaw:C=>{N(C),_(C)},onInnerChange:C=>{g(C),w(C)},onClearForm:le,onBumpFormKey:re})]}):K&&F&&o.jsx(Ce,{schema:K,resolveType:F,value:E,formResetKey:b,onChange:se})})}),o.jsx(xe,{className:"min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:o.jsx("div",{className:"@container px-5 py-4",children:o.jsx(Ae,{seo:ie,url:ne,path:z})})})]}),e[44]=F,e[45]=re,e[46]=le,e[47]=oe,e[48]=U,e[49]=E,e[50]=ae,e[51]=b,e[52]=se,e[53]=z,e[54]=_,e[55]=w,e[56]=ie,e[57]=ne,e[58]=c,e[59]=K,e[60]=g,e[61]=N,e[62]=Y,e[63]=me,e[64]=R,e[65]=l,e[66]=O):O=e[66];let Z;return e[67]!==L||e[68]!==O?(Z=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[L,O]}),e[67]=L,e[68]=O,e[69]=Z):Z=e[69],Z}function Me(d){return d+1}function Ge(d){return d+1}function He(d,e){try{return new URL(d,e).href}catch{return e}}function Ve(d,e){const t=e.__resolveType,n=d.__resolveType;if(typeof t=="string"&&typeof n=="string"&&t!==n)return{...e};const v={...d};for(const[r,s]of Object.entries(e))r!=="__resolveType"&&s!=null&&(typeof s=="string"&&s.trim()===""||(v[r]=s));return v}export{Ai as SeoEditor};
@@ -1 +0,0 @@
1
- import{c as y,b as M,j as t,f as Z,F as ee,m as P,y as se,L as J,p as K,P as Q,a as W,k as te,r as ie,O as ne}from"./index-Gptoc_-0.js";import{u as le}from"./useRouterState-faIY6mBF.js";import{j as re,k as oe,l as ae,S as I,a as A,b as T,d as B,c as E,g as ce,h as me}from"./sidebar-fE9arcNR.js";import{a as fe}from"./index-DeD3quSS.js";import{b as G,n as de,i as ge,a as be,c as xe}from"./ZapSquare-CGho5JH5.js";import{t as ue,a as F}from"./Users03-CttOOkYC.js";import{i as pe}from"./CpuChip01-CWKZNd3u.js";import{i as he}from"./CreditCard01-BgStC_qv.js";import{i as ye}from"./HardDrive-DCp-WUl5.js";import{i as H}from"./Key01-CNX_ptat.js";import{n as je}from"./LinkExternal01-BZfOUq-Q.js";import{i as D}from"./LogOut01-j4YaKBaR.js";import{i as _e}from"./Shield01-DQ1xPJLH.js";import{s as ve}from"./User01-D_PtC3-l.js";import{i as Se}from"./Zap-CkkvDzJg.js";import{a as ke}from"./use-capability-Bq8QIaAm.js";import{u as Ne}from"./use-join-requests-D2gK9tyz.js";import{u as $e}from"./use-infra-billing-CRWMAvoz.js";import{u as U}from"./use-mobile-uWMSI329.js";import{u as ze}from"./use-status-sounds-BmimvYmS.js";import{a as _}from"./toolbar-CPIussBe.js";import{S as Ce,M as qe}from"./shell-controls-Cnb_Nzjz.js";import"./LayoutLeft-D5nGLk_M.js";import"./X-0jWoG5jx.js";import"./tooltip-CAY4Un9y.js";import"./studio-tools-DaHRmNBg.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-6yGSgNoz.js";import"./decopilot-sse-pool-DLZWceLm.js";import"./backoff-CrEUbyZT.js";function V(){const e=y.c(27),s=M(),{capabilities:o,isPrivileged:n,loading:i,error:l}=ke(),a=Ne().length,r=$e().sites.length>0;let m,c;if(e[0]!==o||e[1]!==l||e[2]!==n||e[3]!==a||e[4]!==i||e[5]!==r||e[6]!==s){c=Symbol.for("react.early_return_sentinel");e:{let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ue,{size:14}),e[9]=f):f=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(je,{size:14}),e[10]=d):d=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(de,{size:14}),e[11]=g):g=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(pe,{size:14}),e[12]=b):b=e[12];let u;e[13]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(he,{size:14}),e[13]=u):u=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(H,{size:14}),e[14]=p):p=e[14];let x;e[15]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(H,{size:14}),e[15]=x):x=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(ye,{size:14}),e[16]=j):j=e[16];let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(ge,{size:14}),e[17]=h):h=e[17];let v;e[18]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(be,{size:14}),e[18]=v):v=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(F,{size:14}),e[19]=S):S=e[19];let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(Se,{size:14}),e[20]=k):k=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(xe,{size:14}),e[21]=N):N=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(G,{size:14}),e[22]=$):$=e[22];let z;e[23]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(F,{size:14}),e[23]=z):z=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(_e,{size:14}),e[24]=C):C=e[24];let q;e[25]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(se,{size:14}),e[25]=q):q=e[25];let w;e[26]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(ve,{size:14}),e[26]=w):w=e[26];const L=[{key:"organization",label:s("settings.nav.organization"),items:[{key:"general",label:s("settings.nav.general"),icon:f,to:"/$org/settings/general",requires:"org:manage"},{key:"connect",label:s("settings.nav.connect"),icon:d,to:"/$org/settings/connect"},{key:"brand-context",label:s("settings.nav.brandContext"),icon:g,to:"/$org/settings/brand-context",requires:"org:manage"},{key:"ai-providers",label:s("settings.nav.aiProviders"),icon:b,to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"billing",label:s("settings.nav.billing"),icon:u,to:"/$org/settings/billing",requires:"members:manage"},...r?[{key:"infra-billing",label:s("settings.nav.infraBilling"),icon:t.jsx(G,{size:14}),to:"/$org/settings/infra-billing",requires:"members:manage"}]:[],{key:"secrets",label:s("settings.nav.secrets"),icon:p,to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"api-keys",label:s("settings.nav.apiKeys"),icon:x,to:"/$org/settings/api-keys",requires:"api-keys:manage"},{key:"buckets",label:s("settings.nav.buckets"),icon:j,to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",label:s("settings.nav.syncedRepos"),icon:h,to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]},{key:"build",label:s("settings.nav.build"),items:[{key:"connections",label:s("settings.nav.connections"),icon:v,to:"/$org/settings/connections"},{key:"agents",label:s("settings.nav.agents"),icon:S,to:"/$org/settings/agents"},{key:"automations",label:s("settings.nav.automations"),icon:k,to:"/$org/settings/automations",requires:"automations:manage"},{key:"store",label:s("settings.nav.store"),icon:N,to:"/$org/settings/store",requires:"registry:manage"}]},{key:"manage",label:s("settings.nav.manage"),items:[{key:"monitor",label:s("settings.nav.monitor"),icon:$,to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:s("settings.nav.members"),icon:z,to:"/$org/settings/members",requires:"members:manage",badge:a},{key:"roles",label:s("settings.nav.roles"),icon:C,to:"/$org/settings/roles",privilegedOnly:!0},{key:"sso",label:s("settings.nav.security"),icon:q,to:"/$org/settings/sso",requires:"org:manage"}]},{key:"account",label:s("settings.nav.account"),items:[{key:"profile",label:s("settings.nav.profile"),icon:w,to:"/$org/settings/profile"}]}];if(i||l){c=L;break e}m=L.map(R=>({...R,items:R.items.filter(O=>O.privilegedOnly?n:O.requires?n||o[O.requires]:!0)})).filter(we)}e[0]=o,e[1]=l,e[2]=n,e[3]=a,e[4]=i,e[5]=r,e[6]=s,e[7]=m,e[8]=c}else m=e[7],c=e[8];return c!==Symbol.for("react.early_return_sentinel")?c:m}function we(e){return e.items.length>0}function X(e){const s=y.c(5),{icon:o,badge:n}=e;let i;s[0]!==n?(i=n?t.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,s[0]=n,s[1]=i):i=s[1];let l;return s[2]!==o||s[3]!==i?(l=t.jsxs("span",{className:"relative shrink-0",children:[o,i]}),s[2]=o,s[3]=i,s[4]=l):l=s[4],l}function Y(){const e=y.c(8);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=Z(s);let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n={select:Pe},e[1]=n):n=e[1];const i=le(n);let l;e[2]!==o||e[3]!==i?(l=m=>{const c=m.replace("$org",o);return i.startsWith(c)},e[2]=o,e[3]=i,e[4]=l):l=e[4];const a=l;let r;return e[5]!==a||e[6]!==o?(r={org:o,isActive:a},e[5]=a,e[6]=o,e[7]=r):r=e[7],r}function Pe(e){return e.location.pathname}function Oe(){const e=y.c(19),s=M(),o=V(),{org:n,isActive:i}=Y();let l;if(e[0]!==o||e[1]!==i||e[2]!==n){let b;e[4]!==i||e[5]!==n?(b=(u,p)=>t.jsxs(I,{className:"pt-0 pr-0 pb-0 pl-0",children:[u.label&&t.jsx("p",{className:P("px-2 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",p>0&&"mt-3"),children:u.label}),t.jsx(A,{children:t.jsx(T,{className:"gap-0.5",children:u.items.map(x=>t.jsx(B,{children:t.jsx(E,{asChild:!0,isActive:i(x.to),children:t.jsxs(J,{to:x.to,params:{org:n},onClick:()=>K("settings_nav_clicked",{section_key:x.key,group_key:u.key}),className:"flex items-center gap-2.5 text-sm",children:[t.jsx(X,{icon:x.icon,badge:x.badge}),t.jsx("span",{className:"truncate",children:x.label})]})})},x.key))})})]},u.key),e[4]=i,e[5]=n,e[6]=b):b=e[6],l=o.map(b),e[0]=o,e[1]=i,e[2]=n,e[3]=l}else l=e[3];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[7]=a):a=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("span",{className:"shrink-0",children:t.jsx(D,{size:14})}),e[8]=r):r=e[8];let m;e[9]!==s?(m=s("settings.nav.signOut"),e[9]=s,e[10]=m):m=e[10];let c;e[11]!==m?(c=t.jsxs(I,{className:"pt-0 pr-0 pb-0 pl-0",children:[a,t.jsx(A,{children:t.jsx(T,{className:"gap-0.5",children:t.jsx(B,{children:t.jsxs(E,{onClick:Me,className:"flex items-center gap-2.5 text-sm",children:[r,t.jsx("span",{className:"truncate",children:m})]})})})})]}),e[11]=m,e[12]=c):c=e[12];let f;e[13]!==l||e[14]!==c?(f=t.jsxs(ce,{className:"flex flex-col flex-1 mt-2 px-2 pb-2 gap-0 overflow-y-auto",children:[l,c]}),e[13]=l,e[14]=c,e[15]=f):f=e[15];let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("div",{className:"mt-auto px-4 pb-1",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.237.0"]})}),e[16]=d):d=e[16];let g;return e[17]!==f?(g=t.jsxs(me,{variant:"sidebar",children:[f,d]}),e[17]=f,e[18]=g):g=e[18],g}function Me(){K("signed_out",{source:"settings_sidebar"}),Q(),W.signOut()}function Le(e){const s=y.c(21),{onClose:o}=e,n=M(),i=V(),{org:l,isActive:a}=Y();let r;if(s[0]!==i||s[1]!==a||s[2]!==o||s[3]!==l){let p;s[5]!==a||s[6]!==o||s[7]!==l?(p=(x,j)=>t.jsxs("div",{className:"flex flex-col gap-0.5",children:[x.label&&t.jsx("p",{className:P("px-3 pt-1.5 pb-0.5 text-xs font-medium text-muted-foreground/60",j>0&&"mt-3"),children:x.label}),x.items.map(h=>t.jsxs(J,{to:h.to,params:{org:l},onClick:o,className:P("flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm",a(h.to)?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground"),children:[t.jsx(X,{icon:h.icon,badge:h.badge}),t.jsx("span",{className:"truncate",children:h.label})]},h.key))]},x.key),s[5]=a,s[6]=o,s[7]=l,s[8]=p):p=s[8],r=i.map(p),s[0]=i,s[1]=a,s[2]=o,s[3]=l,s[4]=r}else r=s[4];let m;s[9]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"h-px bg-border/50 my-2"}),s[9]=m):m=s[9];let c;s[10]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("span",{className:"shrink-0",children:t.jsx(D,{size:14})}),s[10]=c):c=s[10];let f;s[11]!==n?(f=n("settings.nav.signOut"),s[11]=n,s[12]=f):f=s[12];let d;s[13]!==f?(d=t.jsxs("div",{className:"flex flex-col gap-0.5",children:[m,t.jsxs("button",{type:"button",onClick:Re,className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[c,t.jsx("span",{className:"truncate",children:f})]})]}),s[13]=f,s[14]=d):d=s[14];let g;s[15]!==r||s[16]!==d?(g=t.jsxs("div",{className:"flex flex-col flex-1 overflow-y-auto px-2 py-2 gap-0.5",children:[r,d]}),s[15]=r,s[16]=d,s[17]=g):g=s[17];let b;s[18]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("div",{className:"px-4 pb-3 pt-1 border-t border-border/50",children:t.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.237.0"]})}),s[18]=b):b=s[18];let u;return s[19]!==g?(u=t.jsxs("div",{className:"flex flex-col h-full bg-sidebar",children:[g,b]}),s[19]=g,s[20]=u):u=s[20],u}function Re(){Q(),W.signOut()}function Ie(){const e=y.c(4),s=U(),{org:o}=ee();ze(o.slug);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(te,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ie.Suspense,{fallback:n,children:t.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:t.jsx(fe,{value:"p-0",children:t.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:t.jsx(ne,{})})})})}),e[1]=i):i=e[1];const l=i;if(s){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:l}),e[2]=r):r=e[2],r}let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex-1 min-h-0 p-1",children:t.jsx("div",{className:P("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:l})}),e[3]=a):a=e[3],a}function bs(){const e=y.c(21),s=U();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(_.LogoLink,{}),e[0]=o):o=e[0];let n;e[1]!==s?(n=s&&t.jsx(Ce,{}),e[1]=s,e[2]=n):n=e[2];let i;e[3]!==n?(i=t.jsxs(_.LeftColumn,{children:[o,n]}),e[3]=n,e[4]=i):i=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(_.CenterSlot,{}),e[5]=l):l=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(_.RightColumn,{children:t.jsx("span",{})}),e[6]=a):a=e[6];let r;e[7]!==i?(r=t.jsxs(_.Header,{children:[i,l,a]}),e[7]=i,e[8]=r):r=e[8];let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m={"--sidebar-width-icon":"3.125rem"},e[9]=m):m=e[9];let c;e[10]!==s?(c=!s&&t.jsx(Oe,{}),e[10]=s,e[11]=c):c=e[11];let f;e[12]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(re,{className:"flex flex-col",style:{background:"transparent",containerType:"inline-size"},children:t.jsx(Ie,{})}),e[12]=f):f=e[12];let d;e[13]!==c?(d=t.jsxs(oe,{className:"flex-1 bg-sidebar min-h-0",style:m,children:[c,f]}),e[13]=c,e[14]=d):d=e[14];let g;e[15]!==s?(g=s&&t.jsx(qe,{renderSidebar:Ae}),e[15]=s,e[16]=g):g=e[16];let b;return e[17]!==g||e[18]!==r||e[19]!==d?(b=t.jsx(_.Provider,{children:t.jsx(ae,{defaultOpen:!0,children:t.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[r,d,g]})})}),e[17]=g,e[18]=r,e[19]=d,e[20]=b):b=e[20],b}function Ae(e){const{onClose:s}=e;return t.jsx(Le,{onClose:s})}export{Oe as SettingsSidebar,Le as SettingsSidebarMobile,bs as default};
@@ -1 +0,0 @@
1
- import{c as I,b as U,e as ne,j as n,B as $,t as te,bX as ee,y as ke,a as Z,w as Re,x as Ne,K as ce,bY as qe,bZ as Be,G as X,m as ue,r as B,n as re,at as he,v as Ue,b_ as He,p as pe,b$ as Je,c0 as Ke,c1 as Ge,d as Ve,F as We,f as Ae,u as Qe,J as Ye,b5 as Xe,c2 as Ze,c3 as ye,c4 as et,c5 as tt,S as nt,O as st,c6 as ot}from"./index-Gptoc_-0.js";import{A as de}from"./avatar-CoBdq5SX.js";import{t as _e,a as it}from"./Users03-CttOOkYC.js";import{i as at}from"./SearchLg-C01PHEsZ.js";import{i as rt,s as lt,a as H,n as ct}from"./Stars02-OU17b3lp.js";import{s as dt}from"./XClose-DiX97P-p.js";import{D as ut,s as mt,A as ft}from"./tab-id-DqxFWWKz.js";import{i as K}from"./CheckCircle-BJO_ypFA.js";import{i as gt}from"./CpuChip01-CWKZNd3u.js";import{i as xe}from"./FilterLines-Bu45YNI1.js";import{i as ht}from"./Monitor01-C38MaP2T.js";import{i as G}from"./Zap-CkkvDzJg.js";import{a as Te,b as Oe,d as Ce,e as Ee,h as pt,c as yt}from"./dialog-C0_VZPHC.js";import{u as xt}from"./use-is-desktop-app-BNujXJc_.js";import{R as bt}from"./required-auth-layout-DF3apjeH.js";import{a as be,m as wt,S as St}from"./use-mcp-client-CCJCYDxN.js";import{b as vt}from"./hooks-B7N1YIMG.js";import{h as jt}from"./use-organization-settings-BPPkEz7K.js";import{u as kt}from"./use-org-sso-DoxFiQxq.js";function Nt(t){const e=I.c(49),{orgName:s,orgSlug:i,orgLogo:l,domain:r}=t,a=U();let o;e[0]!==i||e[1]!==a?(o=async()=>{const k=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:i})}),O=await k.json();if(!k.ok||!O.success)throw new Error(O.error??a("common.autoDomainJoinScreen.joinError"));return O},e[0]=i,e[1]=a,e[2]=o):o=e[2];let d;e[3]!==i?(d=k=>{window.location.href=`/${k.slug??i}`},e[3]=i,e[4]=d):d=e[4];let f;e[5]!==a?(f=k=>{te.error(k instanceof Error?k.message:a("common.autoDomainJoinScreen.joinError"))},e[5]=a,e[6]=f):f=e[6];let x;e[7]!==o||e[8]!==d||e[9]!==f?(x={mutationFn:o,onSuccess:d,onError:f},e[7]=o,e[8]=d,e[9]=f,e[10]=x):x=e[10];const c=ne(x),v=At;let m;e[11]!==l||e[12]!==s?(m=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[11]=l,e[12]=s,e[13]=m):m=e[13];let u;e[14]!==s||e[15]!==a?(u=a("common.autoDomainJoinScreen.joinPrompt",{orgName:s}),e[14]=s,e[15]=a,e[16]=u):u=e[16];let p;e[17]!==u?(p=n.jsx("h3",{className:"text-lg font-medium",children:u}),e[17]=u,e[18]=p):p=e[18];let g;e[19]!==r||e[20]!==a?(g=a("common.autoDomainJoinScreen.joinDescription",{domain:r}),e[19]=r,e[20]=a,e[21]=g):g=e[21];let h;e[22]!==g?(h=n.jsx("p",{className:"text-sm text-muted-foreground",children:g}),e[22]=g,e[23]=h):h=e[23];let w;e[24]!==p||e[25]!==h?(w=n.jsxs("div",{className:"space-y-2",children:[p,h]}),e[24]=p,e[25]=h,e[26]=w):w=e[26];let b;e[27]!==c?(b=()=>c.mutate(),e[27]=c,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==s||e[31]!==a?(S=c.isPending?a("common.autoDomainJoinScreen.joining"):a("common.autoDomainJoinScreen.enterOrg",{orgName:s}),e[29]=c.isPending,e[30]=s,e[31]=a,e[32]=S):S=e[32];let N;e[33]!==c.isPending||e[34]!==b||e[35]!==S?(N=n.jsx($,{onClick:b,disabled:c.isPending,children:S}),e[33]=c.isPending,e[34]=b,e[35]=S,e[36]=N):N=e[36];const j=c.isPending;let A;e[37]!==a?(A=a("common.autoDomainJoinScreen.goHome"),e[37]=a,e[38]=A):A=e[38];let y;e[39]!==c.isPending||e[40]!==A?(y=n.jsx($,{variant:"ghost",onClick:v,disabled:j,children:A}),e[39]=c.isPending,e[40]=A,e[41]=y):y=e[41];let T;e[42]!==N||e[43]!==y?(T=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[N,y]}),e[42]=N,e[43]=y,e[44]=T):T=e[44];let _;return e[45]!==w||e[46]!==T||e[47]!==m?(_=n.jsxs(ee,{children:[m,w,T]}),e[45]=w,e[46]=T,e[47]=m,e[48]=_):_=e[48],_}function At(){window.location.href="/"}function we(t){const e=I.c(25),{orgSlug:s,orgName:i,reason:l}=t,r=U(),a=_t,o=l==="not-found",d=o?at:ke;let f;e[0]!==o||e[1]!==r?(f=r(o?"common.noAccessScreen.organizationNotFound":"common.noAccessScreen.noAccess"),e[0]=o,e[1]=r,e[2]=f):f=e[2];const x=f;let c;e[3]!==o||e[4]!==i||e[5]!==s||e[6]!==r?(c=o?n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.couldNotFind")," ",n.jsx("strong",{children:s}),"."]}):n.jsxs(n.Fragment,{children:[r("common.noAccessScreen.noAccessTo")," ",n.jsx("strong",{children:i??s}),".",n.jsx("br",{}),r("common.noAccessScreen.askAdminToInvite")]}),e[3]=o,e[4]=i,e[5]=s,e[6]=r,e[7]=c):c=e[7];const v=c;let m;e[8]!==d?(m=n.jsx("div",{className:"bg-muted p-3 rounded-full",children:n.jsx(d,{className:"h-6 w-6 text-muted-foreground"})}),e[8]=d,e[9]=m):m=e[9];let u;e[10]!==x?(u=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[10]=x,e[11]=u):u=e[11];let p;e[12]!==v?(p=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[12]=v,e[13]=p):p=e[13];let g;e[14]!==u||e[15]!==p?(g=n.jsxs("div",{className:"space-y-2",children:[u,p]}),e[14]=u,e[15]=p,e[16]=g):g=e[16];let h;e[17]!==r?(h=r("common.noAccessScreen.goToHome"),e[17]=r,e[18]=h):h=e[18];let w;e[19]!==h?(w=n.jsx($,{onClick:a,children:h}),e[19]=h,e[20]=w):w=e[20];let b;return e[21]!==m||e[22]!==g||e[23]!==w?(b=n.jsxs(ee,{children:[m,g,w]}),e[21]=m,e[22]=g,e[23]=w,e[24]=b):b=e[24],b}function _t(){window.location.href="/"}function Tt(t){const e=I.c(59),{invitationId:s,orgName:i,orgSlug:l,orgLogo:r}=t,a=U();let o;e[0]!==s?(o=async()=>{const E=await Z.organization.acceptInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[0]=s,e[1]=o):o=e[1];let d;e[2]!==l?(d=()=>{Re(),window.location.href=`/${l}`},e[2]=l,e[3]=d):d=e[3];let f;e[4]!==a?(f=E=>{te.error(E instanceof Error?E.message:a("common.pendingInviteScreen.failedToAccept"))},e[4]=a,e[5]=f):f=e[5];let x;e[6]!==o||e[7]!==d||e[8]!==f?(x={mutationFn:o,onSuccess:d,onError:f},e[6]=o,e[7]=d,e[8]=f,e[9]=x):x=e[9];const c=ne(x);let v;e[10]!==s?(v=async()=>{const E=await Z.organization.rejectInvitation({invitationId:s});if(E.error)throw new Error(E.error.message);return E.data},e[10]=s,e[11]=v):v=e[11];let m,u;e[12]!==a?(m=()=>{te.success(a("common.pendingInviteScreen.invitationDeclined")),window.location.href="/"},u=E=>{te.error(E instanceof Error?E.message:a("common.pendingInviteScreen.failedToDecline"))},e[12]=a,e[13]=m,e[14]=u):(m=e[13],u=e[14]);let p;e[15]!==v||e[16]!==m||e[17]!==u?(p={mutationFn:v,onSuccess:m,onError:u},e[15]=v,e[16]=m,e[17]=u,e[18]=p):p=e[18];const g=ne(p),h=c.isPending||g.isPending;let w;e[19]!==r||e[20]!==i?(w=r?n.jsx(de,{url:r,fallback:i.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(rt,{className:"h-6 w-6 text-primary"})}),e[19]=r,e[20]=i,e[21]=w):w=e[21];let b;e[22]!==i||e[23]!==a?(b=a("common.pendingInviteScreen.invitedTo",{orgName:i}),e[22]=i,e[23]=a,e[24]=b):b=e[24];let S;e[25]!==b?(S=n.jsx("h3",{className:"text-lg font-medium",children:b}),e[25]=b,e[26]=S):S=e[26];let N;e[27]!==a?(N=a("common.pendingInviteScreen.acceptDescription"),e[27]=a,e[28]=N):N=e[28];let j;e[29]!==N?(j=n.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[29]=N,e[30]=j):j=e[30];let A;e[31]!==S||e[32]!==j?(A=n.jsxs("div",{className:"space-y-2",children:[S,j]}),e[31]=S,e[32]=j,e[33]=A):A=e[33];let y;e[34]!==c?(y=()=>c.mutate(),e[34]=c,e[35]=y):y=e[35];let T;e[36]!==c.isPending||e[37]!==a?(T=c.isPending?a("common.pendingInviteScreen.acceptingButton"):a("common.pendingInviteScreen.acceptButton"),e[36]=c.isPending,e[37]=a,e[38]=T):T=e[38];let _;e[39]!==h||e[40]!==y||e[41]!==T?(_=n.jsx($,{onClick:y,disabled:h,children:T}),e[39]=h,e[40]=y,e[41]=T,e[42]=_):_=e[42];let k;e[43]!==g?(k=()=>g.mutate(),e[43]=g,e[44]=k):k=e[44];let O;e[45]!==g.isPending||e[46]!==a?(O=g.isPending?a("common.pendingInviteScreen.decliningButton"):a("common.pendingInviteScreen.declineButton"),e[45]=g.isPending,e[46]=a,e[47]=O):O=e[47];let L;e[48]!==h||e[49]!==k||e[50]!==O?(L=n.jsx($,{variant:"ghost",onClick:k,disabled:h,children:O}),e[48]=h,e[49]=k,e[50]=O,e[51]=L):L=e[51];let C;e[52]!==_||e[53]!==L?(C=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[_,L]}),e[52]=_,e[53]=L,e[54]=C):C=e[54];let D;return e[55]!==A||e[56]!==C||e[57]!==w?(D=n.jsxs(ee,{children:[w,A,C]}),e[55]=A,e[56]=C,e[57]=w,e[58]=D):D=e[58],D}function Ot(t){const e=I.c(23),{orgName:s,orgLogo:i}=t,l=U();let r;e[0]!==i||e[1]!==s?(r=i?n.jsx(de,{url:i,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(lt,{className:"h-6 w-6 text-primary"})}),e[0]=i,e[1]=s,e[2]=r):r=e[2];let a;e[3]!==l?(a=l("common.requestPendingScreen.title"),e[3]=l,e[4]=a):a=e[4];let o;e[5]!==a?(o=n.jsx("h3",{className:"text-lg font-medium",children:a}),e[5]=a,e[6]=o):o=e[6];let d;e[7]!==s||e[8]!==l?(d=l("common.requestPendingScreen.description",{orgName:s}),e[7]=s,e[8]=l,e[9]=d):d=e[9];let f;e[10]!==d?(f=n.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[10]=d,e[11]=f):f=e[11];let x;e[12]!==o||e[13]!==f?(x=n.jsxs("div",{className:"space-y-2",children:[o,f]}),e[12]=o,e[13]=f,e[14]=x):x=e[14];let c;e[15]!==l?(c=l("common.requestPendingScreen.goHome"),e[15]=l,e[16]=c):c=e[16];let v;e[17]!==c?(v=n.jsx($,{variant:"ghost",onClick:Ct,children:c}),e[17]=c,e[18]=v):v=e[18];let m;return e[19]!==r||e[20]!==x||e[21]!==v?(m=n.jsxs(ee,{children:[r,x,v]}),e[19]=r,e[20]=x,e[21]=v,e[22]=m):m=e[22],m}function Ct(){window.location.href="/"}function Et(t){const e=I.c(45),{orgName:s,orgSlug:i,orgLogo:l,domain:r}=t,a=U();let o;e[0]!==i?(o=async()=>{const _=await fetch("/api/auth/custom/domain-request-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:i})}),k=await _.json();if(!_.ok||!k.success)throw new Error(k.error??"Failed to request access");return k},e[0]=i,e[1]=o):o=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=Pt,e[2]=d):d=e[2];let f;e[3]!==a?(f=_=>{te.error(_ instanceof Error?_.message:a("common.requestToJoinScreen.failedToRequest"))},e[3]=a,e[4]=f):f=e[4];let x;e[5]!==o||e[6]!==f?(x={mutationFn:o,onSuccess:d,onError:f},e[5]=o,e[6]=f,e[7]=x):x=e[7];const c=ne(x);let v;e[8]!==l||e[9]!==s?(v=l?n.jsx(de,{url:l,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(_e,{className:"h-6 w-6 text-primary"})}),e[8]=l,e[9]=s,e[10]=v):v=e[10];let m;e[11]!==s||e[12]!==a?(m=a("common.requestToJoinScreen.title",{orgName:s}),e[11]=s,e[12]=a,e[13]=m):m=e[13];let u;e[14]!==m?(u=n.jsx("h3",{className:"text-lg font-medium",children:m}),e[14]=m,e[15]=u):u=e[15];let p;e[16]!==r||e[17]!==a?(p=a("common.requestToJoinScreen.description",{domain:r}),e[16]=r,e[17]=a,e[18]=p):p=e[18];let g;e[19]!==p?(g=n.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[19]=p,e[20]=g):g=e[20];let h;e[21]!==u||e[22]!==g?(h=n.jsxs("div",{className:"space-y-2",children:[u,g]}),e[21]=u,e[22]=g,e[23]=h):h=e[23];let w;e[24]!==c?(w=()=>c.mutate(),e[24]=c,e[25]=w):w=e[25];let b;e[26]!==c.isPending||e[27]!==a?(b=c.isPending?a("common.requestToJoinScreen.requesting"):a("common.requestToJoinScreen.requestButton"),e[26]=c.isPending,e[27]=a,e[28]=b):b=e[28];let S;e[29]!==c.isPending||e[30]!==w||e[31]!==b?(S=n.jsx($,{onClick:w,disabled:c.isPending,children:b}),e[29]=c.isPending,e[30]=w,e[31]=b,e[32]=S):S=e[32];const N=c.isPending;let j;e[33]!==a?(j=a("common.requestToJoinScreen.goToHome"),e[33]=a,e[34]=j):j=e[34];let A;e[35]!==c.isPending||e[36]!==j?(A=n.jsx($,{variant:"ghost",onClick:Lt,disabled:N,children:j}),e[35]=c.isPending,e[36]=j,e[37]=A):A=e[37];let y;e[38]!==S||e[39]!==A?(y=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[S,A]}),e[38]=S,e[39]=A,e[40]=y):y=e[40];let T;return e[41]!==h||e[42]!==y||e[43]!==v?(T=n.jsxs(ee,{children:[v,h,y]}),e[41]=h,e[42]=y,e[43]=v,e[44]=T):T=e[44],T}function Lt(){window.location.href="/"}function Pt(t){if(t.alreadyMember&&t.slug){window.location.href=`/${t.slug}`;return}window.location.reload()}function Dt(t){const e=I.c(7);let s;e[0]!==t?(s=ce.orgAccessStatus(t),e[0]=t,e[1]=s):s=e[1];let i;e[2]!==t?(i=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]=i):i=e[3];let l;return e[4]!==s||e[5]!==i?(l={queryKey:s,queryFn:i,refetchOnWindowFocus:!1},e[4]=s,e[5]=i,e[6]=l):l=e[6],Ne(l)}function It({orgSlug:t}){const{data:e}=Dt(t);if(e.status!=="member"){qe()?.org===t&&Be();const s=localStorage.getItem(X.lastOrgSlug())===t;if(s&&localStorage.removeItem(X.lastOrgSlug()),s&&(e.status==="not-found"||e.status==="no-access"))return window.location.href="/",null}return e.status==="not-found"?n.jsx(we,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?n.jsx(Tt,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?n.jsx(Nt,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="can-request"?n.jsx(Et,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="request-pending"?n.jsx(Ot,{orgName:e.organization.name,orgLogo:e.organization.logo}):e.status==="member"?(window.location.reload(),null):n.jsx(we,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function Le(t){const e=I.c(42),{ariaLabel:s,dismissLabel:i,eyebrow:l,title:r,description:a,icon:o,children:d,footerLeading:f,actions:x,onDismiss:c,tone:v}=t,m=v===void 0?"neutral":v,u=f||x;let p;e[0]!==m?(p=m==="system"&&n.jsx("div",{className:"h-0.5 bg-special"}),e[0]=m,e[1]=p):p=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(dt,{size:14}),e[2]=g):g=e[2];let h;e[3]!==i||e[4]!==c?(h=n.jsx($,{size:"icon-sm",variant:"ghost","aria-label":i,className:"absolute right-2 top-2 z-10 text-muted-foreground",onClick:c,children:g}),e[3]=i,e[4]=c,e[5]=h):h=e[5];const w=o&&"flex items-start gap-3",b=d&&"pb-3";let S;e[6]!==w||e[7]!==b?(S=ue("p-4 pr-11",w,b),e[6]=w,e[7]=b,e[8]=S):S=e[8];let N;e[9]!==o?(N=o&&n.jsx("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-special/10 text-special",children:o}),e[9]=o,e[10]=N):N=e[10];let j;e[11]!==l?(j=l&&n.jsx("p",{className:"text-xs text-muted-foreground",children:l}),e[11]=l,e[12]=j):j=e[12];let A;e[13]!==r?(A=n.jsx("h3",{className:"text-base font-semibold text-foreground",children:r}),e[13]=r,e[14]=A):A=e[14];let y;e[15]!==a?(y=a&&n.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:a}),e[15]=a,e[16]=y):y=e[16];let T;e[17]!==A||e[18]!==y||e[19]!==j?(T=n.jsxs("div",{children:[j,A,y]}),e[17]=A,e[18]=y,e[19]=j,e[20]=T):T=e[20];let _;e[21]!==d?(_=d&&n.jsx("div",{className:"mt-3",children:d}),e[21]=d,e[22]=_):_=e[22];let k;e[23]!==T||e[24]!==_?(k=n.jsxs("div",{className:"min-w-0 flex-1",children:[T,_]}),e[23]=T,e[24]=_,e[25]=k):k=e[25];let O;e[26]!==k||e[27]!==S||e[28]!==N?(O=n.jsxs("div",{className:S,children:[N,k]}),e[26]=k,e[27]=S,e[28]=N,e[29]=O):O=e[29];let L;e[30]!==x||e[31]!==f||e[32]!==u||e[33]!==m?(L=u&&n.jsxs("div",{className:ue("flex items-center justify-between gap-3 px-4 py-2.5",m==="system"?"border-t border-border bg-muted/50":"pt-0"),children:[n.jsx("div",{className:"min-w-0 text-xs text-muted-foreground",children:f}),n.jsx("div",{className:"flex shrink-0 items-center gap-2",children:x})]}),e[30]=x,e[31]=f,e[32]=u,e[33]=m,e[34]=L):L=e[34];let C;return e[35]!==s||e[36]!==O||e[37]!==L||e[38]!==p||e[39]!==h||e[40]!==m?(C=n.jsxs("div",{role:"dialog","aria-label":s,"data-slot":"announcement-card","data-tone":m,className:"relative w-full overflow-hidden rounded-lg border border-border bg-background shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[p,h,O,L]}),e[35]=s,e[36]=O,e[37]=L,e[38]=p,e[39]=h,e[40]=m,e[41]=C):C=e[41],C}const $t=[{id:"native-app-macos",date:"2026-07-30",eyebrow:"Now Available",title:"New beta studio app",bullets:[{icon:G,title:"Faster CMS previews",body:"Every draft gets its own git worktree on your machine, so previews render instantly as you edit."},{icon:H,title:"Native Claude Code & Codex support",body:"State-of-the-art coding agents, running natively against your local files."},{icon:gt,title:"Boosted performance",body:"Entirely rewritten in Rust with a smaller memory footprint than the Bun-based runtime — fast even on modest machines."},{icon:ht,title:"Apple Silicon only — Windows coming soon",body:"Today's builds target macOS on Apple Silicon; Windows is next."}],cta:{label:"Install on Mac",action:"download-app"},learnMoreHref:"https://github.com/decocms/studio/releases"},{id:"codex-gpt-5-6-defaults",date:"2026-07-13",eyebrow:"Now Available",title:"Codex defaults move to GPT-5.6",bullets:[{icon:H,title:"Sol leads Thinking",body:"Codex Thinking now defaults to `gpt-5.6-sol` for deeper coding and reasoning work."},{icon:K,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:G,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:H,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:K,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:G,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:K,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:H,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:G,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:H,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:K,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:G,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:H,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:K,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:G,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:H,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:xe,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:K,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:it,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:G,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:K,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:H,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:xe,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:H,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:ct,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],Pe=$t,le="studio.release-feed.v1",me=new Set;let V="",W={},fe=!1;function zt(){if(fe)return V||"{}";try{return localStorage.getItem(le)??"{}"}catch{return V||"{}"}}function De(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Se(){const t=zt();return t!==V&&(V=t,W=De(t)),W}function Ft(t){me.add(t);const e=s=>{if(!(s.key!==le&&s.key!==null)){try{const i=localStorage.getItem(le)??"{}",r={...De(i),...W};W=r,V=JSON.stringify(r)}catch{}t()}};return window.addEventListener("storage",e),()=>{me.delete(t),window.removeEventListener("storage",e)}}function Mt(t){W=t,V=JSON.stringify(t);try{localStorage.setItem(le,V),fe=!1}catch{fe=!0}me.forEach(e=>e())}function Rt(){const t=I.c(7),e=B.useSyncExternalStore(Ft,Se,Se);let s;t[0]!==e?(s=d=>!!e[d],t[0]=e,t[1]=s):s=t[1];const i=s,l=qt;let r;t[2]!==e?(r=Pe.reduce((d,f)=>e[f.id]?d:d+1,0),t[2]=e,t[3]=r):r=t[3];const a=r;let o;return t[4]!==i||t[5]!==a?(o={isSeen:i,markSeen:l,unseenCount:a},t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function qt(t){W[t]||Mt({...W,[t]:{seenAt:new Date().toISOString()}})}const Bt=720*60*60*1e3,Ut=10080*60*1e3;function Ht(t){const[e,s,i]=t.split("-").map(Number);return!e||!s||!i?new Date(t).getTime():new Date(e,s-1,i).getTime()}function Jt(t){const e=Pe[0];if(!e)return null;const s=Ht(e.date),i=t-s;return i<0||i>Bt?null:e}function Kt(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 Gt(t,e){const s=Kt(t);return s===null?!1:e-s>=Ut}function Vt(){const t=I.c(41),e=U(),{data:s}=Z.useSession(),{isSeen:i,markSeen:l}=Rt(),[r,a]=B.useState(!1);let o,d,f;if(t[0]!==i||t[1]!==s?.user?.createdAt){f=Symbol.for("react.early_return_sentinel");e:{const j=Date.now();if(o=Jt(j),!o){f=null;break e}if(!Gt(s?.user?.createdAt,j)){f=null;break e}d=i(o.id)}t[0]=i,t[1]=s?.user?.createdAt,t[2]=o,t[3]=d,t[4]=f}else o=t[2],d=t[3],f=t[4];if(f!==Symbol.for("react.early_return_sentinel"))return f;if(d)return null;let x;t[5]!==e?(x=e("announcements.release.ariaLabel"),t[5]=e,t[6]=x):x=t[6];let c;t[7]!==e?(c=e("announcements.release.dismiss"),t[7]=e,t[8]=c):c=t[8];const v=o.eyebrow,m=o.title;let u;t[9]!==o.id||t[10]!==l?(u=()=>l(o.id),t[9]=o.id,t[10]=l,t[11]=u):u=t[11];let p;t[12]!==o.id||t[13]!==o.learnMoreHref||t[14]!==l||t[15]!==e?(p=o.learnMoreHref?n.jsx("a",{href:o.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:()=>l(o.id),className:"underline-offset-2 hover:text-foreground hover:underline",children:e("announcements.release.learnMore")}):null,t[12]=o.id,t[13]=o.learnMoreHref,t[14]=l,t[15]=e,t[16]=p):p=t[16];let g;t[17]!==o.cta||t[18]!==o.id||t[19]!==l?(g=o.cta?"href"in o.cta?n.jsx($,{asChild:!0,size:"sm",onClick:()=>l(o.id),children:n.jsx("a",{href:o.cta.href,children:o.cta.label})}):n.jsx($,{size:"sm",onClick:()=>a(!0),children:o.cta.label}):null,t[17]=o.cta,t[18]=o.id,t[19]=l,t[20]=g):g=t[20];let h;t[21]!==o.bullets?(h=o.bullets.map(Wt),t[21]=o.bullets,t[22]=h):h=t[22];let w;t[23]!==h?(w=n.jsx("ul",{className:"flex flex-col gap-3",children:h}),t[23]=h,t[24]=w):w=t[24];let b;t[25]!==o.id||t[26]!==l?(b=j=>{a(j),j||l(o.id)},t[25]=o.id,t[26]=l,t[27]=b):b=t[27];let S;t[28]!==r||t[29]!==b?(S=n.jsx(ut,{open:r,onOpenChange:b}),t[28]=r,t[29]=b,t[30]=S):S=t[30];let N;return t[31]!==o.eyebrow||t[32]!==o.title||t[33]!==w||t[34]!==S||t[35]!==x||t[36]!==c||t[37]!==u||t[38]!==p||t[39]!==g?(N=n.jsxs(Le,{ariaLabel:x,dismissLabel:c,eyebrow:v,title:m,onDismiss:u,footerLeading:p,actions:g,children:[w,S]}),t[31]=o.eyebrow,t[32]=o.title,t[33]=w,t[34]=S,t[35]=x,t[36]=c,t[37]=u,t[38]=p,t[39]=g,t[40]=N):N=t[40],N}function Wt(t,e){return n.jsxs("li",{className:"flex items-start gap-3",children:[n.jsx(t.icon,{size:20,className:"mt-0.5 shrink-0 text-muted-foreground"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),n.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const Ie=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),J=Ie?"⌘":"Ctrl",M={keyboardShortcuts:{keys:[J,"K"],description:"Keyboard shortcuts"},back:{keys:[J,"["],description:"Back to previous"},focusChatInput:{keys:[J,"L"],description:"Focus chat input"},saveAndFormat:{keys:[J,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[J,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[J,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",J,"S"],description:"New task"},toggleDaemon:{keys:[J,"D"],description:"Toggle daemon logs"}},Qt=[{label:"General",shortcuts:[M.keyboardShortcuts,M.back,M.newTask,M.toggleDaemon]},{label:"Editor",shortcuts:[M.saveAndFormat]},{label:"Chat",shortcuts:[M.focusChatInput,M.togglePlanMode,M.sendMessage,M.newLine]},{label:"Questions",shortcuts:[M.selectOption]},{label:"Monitoring",shortcuts:[M.applyFilter]}];function ve(t){return Ie?t.metaKey:t.ctrlKey}function Yt(t){const e=I.c(11),{open:s,onOpenChange:i}=t,l=U();let r;e[0]!==l?(r=l("common.keyboardShortcutsDialog.title"),e[0]=l,e[1]=r):r=e[1];let a;e[2]!==r?(a=n.jsx(Te,{children:n.jsx(Oe,{children:r})}),e[2]=r,e[3]=a):a=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("div",{className:"flex flex-col gap-4",children:Qt.map(Xt)}),e[4]=o):o=e[4];let d;e[5]!==a?(d=n.jsxs(Ce,{className:"sm:max-w-md",children:[a,o]}),e[5]=a,e[6]=d):d=e[6];let f;return e[7]!==i||e[8]!==s||e[9]!==d?(f=n.jsx(Ee,{open:s,onOpenChange:i,children:d}),e[7]=i,e[8]=s,e[9]=d,e[10]=f):f=e[10],f}function Xt(t){return n.jsxs("div",{children:[n.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),n.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Zt)})]},t.label)}function Zt(t){return n.jsxs("div",{className:"flex items-center justify-between py-1",children:[n.jsx("span",{className:"text-sm",children:t.description}),n.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(en)})]},t.description)}function en(t){return n.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}const tn=300*1e3,nn=2;function sn(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 on(t,e){return t.count>=nn&&t.version!==null&&t.version!==e}function an(){const t=I.c(43),e=U(),s=xt();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={mutationFn:ln},t[0]=i):i=t[0];const l=ne(i);let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:ce.appVersionCheck(),queryFn:rn,refetchInterval:tn,refetchIntervalInBackground:!0,staleTime:0},t[1]=r):r=t[1];const{data:a,dataUpdatedAt:o}=re(r),[d,f]=B.useState(0);let x;t[2]===Symbol.for("react.memo_cache_sentinel")?(x={version:null,count:0},t[2]=x):x=t[2];const[c,v]=B.useState(x);o!==d&&(f(o),v(R=>sn(R,a,"4.237.0")));const[m,u]=B.useState(null),p=s;let g;t[3]!==s||t[4]!==l?(g=()=>window.location.reload(),t[3]=s,t[4]=l,t[5]=g):g=t[5];const h=g,w="announcements.version.refresh";if(!on(c,m))return null;let b;t[6]!==e?(b=e("announcements.version.ariaLabel"),t[6]=e,t[7]=b):b=t[7];let S;t[8]!==e?(S=e("announcements.version.dismiss"),t[8]=e,t[9]=S):S=t[9];let N;t[10]!==e?(N=e("announcements.version.eyebrow"),t[10]=e,t[11]=N):N=t[11];let j;t[12]!==e?(j=e("announcements.version.title"),t[12]=e,t[13]=j):j=t[13];const A="announcements.version.description";let y;t[14]!==e||t[15]!==A?(y=e(A),t[14]=e,t[15]=A,t[16]=y):y=t[16];let T;t[17]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(he,{size:16}),t[17]=T):T=t[17];let _;t[18]!==c.version?(_=()=>u(c.version),t[18]=c.version,t[19]=_):_=t[19];let k;t[20]!==e?(k=e("announcements.version.currentSession",{version:"4.237.0"}),t[20]=e,t[21]=k):k=t[21];let O;t[22]!==w||t[23]!==e?(O=e(w),t[22]=w,t[23]=e,t[24]=O):O=t[24];const L=p;let C;t[25]!==L?(C=ue(L),t[25]=L,t[26]=C):C=t[26];let D;t[27]!==C?(D=n.jsx(he,{size:14,className:C}),t[27]=C,t[28]=D):D=t[28];let E;t[29]!==h||t[30]!==p||t[31]!==O||t[32]!==D?(E=n.jsxs($,{size:"sm",disabled:p,onClick:h,children:[O,D]}),t[29]=h,t[30]=p,t[31]=O,t[32]=D,t[33]=E):E=t[33];let F;return t[34]!==_||t[35]!==k||t[36]!==E||t[37]!==b||t[38]!==S||t[39]!==N||t[40]!==j||t[41]!==y?(F=n.jsx(Le,{ariaLabel:b,dismissLabel:S,eyebrow:N,title:j,description:y,icon:T,tone:"system",onDismiss:_,footerLeading:k,actions:E}),t[34]=_,t[35]=k,t[36]=E,t[37]=b,t[38]=S,t[39]=N,t[40]=j,t[41]=y,t[42]=F):F=t[42],F}async function rn(){const t=await fetch("/api/config",{cache:"no-store"}),{config:e}=await t.json();return e.version}async function ln(){const t=await fetch("/_local/update/restart",{method:"POST"});if(!t.ok)throw new Error(`restart failed: ${t.status}`)}function cn(t){return{has(){try{return localStorage.getItem(t)==="1"}catch{return!1}},mark(){try{localStorage.setItem(t,"1")}catch{}}}}const dn=Date.parse("2026-07-21T00:00:00Z"),je=t=>cn(X.ptBrAnnouncementSeen(t));function un(){const t=I.c(35),e=U(),[s,i]=Ue(),{data:l,isPending:r}=Z.useSession(),a=l?.user,o=a?.id,d=a?.createdAt,f=d!=null&&new Date(d).getTime()<dn,x=He()==="pt-BR",c=!r&&!!o&&f&&x&&s.language==="en"&&!je(o).has(),[v,m]=B.useState(!1),[u,p]=B.useState(!1);!v&&!r&&(m(!0),c&&o&&(je(o).mark(),i(fn),p(!0),pe("pt_br_auto_switch_shown")));let g;t[0]===Symbol.for("react.memo_cache_sentinel")?(g=q=>{pe("pt_br_auto_switch_closed",{action:q}),p(!1)},t[0]=g):g=t[0];const h=g;let w;t[1]!==i?(w=()=>{i(mn),h("switch-back")},t[1]=i,t[2]=w):w=t[2];const b=w;let S;t[3]===Symbol.for("react.memo_cache_sentinel")?(S=q=>!q&&h("dismiss"),t[3]=S):S=t[3];let N;t[4]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx("div",{className:"text-4xl","aria-hidden":"true",children:"🇧🇷"}),t[4]=N):N=t[4];let j;t[5]!==e?(j=e("announcements.ptBr.title"),t[5]=e,t[6]=j):j=t[6];let A;t[7]!==j?(A=n.jsx(Oe,{children:j}),t[7]=j,t[8]=A):A=t[8];let y;t[9]!==e?(y=e("announcements.ptBr.description"),t[9]=e,t[10]=y):y=t[10];let T;t[11]!==y?(T=n.jsx(pt,{children:y}),t[11]=y,t[12]=T):T=t[12];let _;t[13]!==A||t[14]!==T?(_=n.jsxs(Te,{children:[A,T]}),t[13]=A,t[14]=T,t[15]=_):_=t[15];let k;t[16]!==e?(k=e("announcements.ptBr.switchBack"),t[16]=e,t[17]=k):k=t[17];let O;t[18]!==b||t[19]!==k?(O=n.jsx($,{variant:"outline",onClick:b,children:k}),t[18]=b,t[19]=k,t[20]=O):O=t[20];let L;t[21]===Symbol.for("react.memo_cache_sentinel")?(L=()=>h("ok"),t[21]=L):L=t[21];let C;t[22]!==e?(C=e("announcements.ptBr.ok"),t[22]=e,t[23]=C):C=t[23];let D;t[24]!==C?(D=n.jsx($,{onClick:L,children:C}),t[24]=C,t[25]=D):D=t[25];let E;t[26]!==O||t[27]!==D?(E=n.jsxs(yt,{children:[O,D]}),t[26]=O,t[27]=D,t[28]=E):E=t[28];let F;t[29]!==E||t[30]!==_?(F=n.jsxs(Ce,{className:"sm:max-w-md",children:[N,_,E]}),t[29]=E,t[30]=_,t[31]=F):F=t[31];let R;return t[32]!==u||t[33]!==F?(R=n.jsx(Ee,{open:u,onOpenChange:S,children:F}),t[32]=u,t[33]=F,t[34]=R):R=t[34],R}function mn(t){return{...t,language:"en"}}function fn(t){return{...t,language:"pt-BR"}}function gn(t){const e=Je(t);return typeof e=="string"?e:void 0}function hn(){return gn("experiment-pipeline-check"),null}function pn(t){const e=I.c(1),{activeOrg:s}=t;if(!s)return null;Ke(s.id,{name:s.name??void 0,slug:s.slug??void 0}),Ge();let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(hn,{}),e[0]=i):i=e[0],i}function yn(t){const{prev:e,virtualMcpId:s,decopilotId:i,savedLayout:l,opts:r,autosendValue:a}=t,o={};s?o.virtualmcpid=s:e.virtualmcpid&&(o.virtualmcpid=e.virtualmcpid);const d=typeof e.virtualmcpid=="string"?e.virtualmcpid:i,x=(s??d)!==d;let c;if(r?.main)o.main=r.main;else if(l)l.main!==void 0&&(o.main=l.main),l.sidepanel!==void 0&&(c=l.sidepanel);else if(!x){const v=e.main;v&&typeof v=="string"&&!mt(v)&&(o.main=v)}return c!==void 0&&(o.sidepanel=c),r?.autosend&&(o.autosend=a),o}const $e="studio:thread-layout:v1",xn=50;function ze(t){const e={};return(t.main===0||typeof t.main=="string")&&(e.main=t.main),(t.sidepanel===0||t.sidepanel==="chat")&&(e.sidepanel=t.sidepanel),e}function bn(t,e,s,i=xn){const l=t.filter(([r])=>r!==e);for(l.push([e,ze(s)]);l.length>i;)l.shift();return l}function ge(){try{const t=sessionStorage.getItem($e);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 Fe(t){try{sessionStorage.setItem($e,JSON.stringify(t))}catch{}}function wn(t,e){t&&Fe(bn(ge(),t,e))}function Sn(t){if(!t)return null;const e=ge().find(([s])=>s===t);return e?ze(e[1]):null}function Vn(t){if(!t)return;const e=ge(),s=e.filter(([i])=>i!==t);s.length!==e.length&&Fe(s)}function Me(t){return{queryKey:ce.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 Wn(t){const e=I.c(10);let s;e[0]!==t?(s=Me(t),e[0]=t,e[1]=s):s=e[1];const i=re(s);let l;e[2]!==i.data?.prompts?(l=i.data?.prompts??[],e[2]=i.data?.prompts,e[3]=l):l=e[3];let r;e[4]!==i.data?.tiles?(r=i.data?.tiles??[],e[4]=i.data?.tiles,e[5]=r):r=e[5];let a;return e[6]!==i.isLoading||e[7]!==l||e[8]!==r?(a={isLoading:i.isLoading,prompts:l,tiles:r},e[6]=i.isLoading,e[7]=l,e[8]=r,e[9]=a):a=e[9],a}function vn(t){const e=I.c(31),{orgSlug:s,orgName:i,domain:l}=t,r=U();let a;e[0]!==s?(a=()=>{window.location.href=`/api/${encodeURIComponent(s)}/sso/authorize`},e[0]=s,e[1]=a):a=e[1];const o=a,d=jn;let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=n.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:n.jsx(ke,{className:"h-6 w-6 text-primary"})}),e[2]=f):f=e[2];let x;e[3]!==r?(x=r("common.ssoRequiredScreen.title"),e[3]=r,e[4]=x):x=e[4];let c;e[5]!==x?(c=n.jsx("h3",{className:"text-lg font-medium",children:x}),e[5]=x,e[6]=c):c=e[6];let v;e[7]!==l||e[8]!==i||e[9]!==r?(v=i?n.jsxs(n.Fragment,{children:[n.jsx("strong",{children:i})," ",r("common.ssoRequiredScreen.requiresSsoAuth"),l?` ${r("common.ssoRequiredScreen.via",{domain:l})}`:"","."]}):r("common.ssoRequiredScreen.orgRequiresSsoAuth"),e[7]=l,e[8]=i,e[9]=r,e[10]=v):v=e[10];let m;e[11]!==v?(m=n.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[11]=v,e[12]=m):m=e[12];let u;e[13]!==c||e[14]!==m?(u=n.jsxs("div",{className:"space-y-2",children:[c,m]}),e[13]=c,e[14]=m,e[15]=u):u=e[15];let p;e[16]!==r?(p=r("common.ssoRequiredScreen.signInWithSso"),e[16]=r,e[17]=p):p=e[17];let g;e[18]!==o||e[19]!==p?(g=n.jsx($,{onClick:o,children:p}),e[18]=o,e[19]=p,e[20]=g):g=e[20];let h;e[21]!==r?(h=r("common.ssoRequiredScreen.goBack"),e[21]=r,e[22]=h):h=e[22];let w;e[23]!==h?(w=n.jsx($,{variant:"ghost",onClick:d,children:h}),e[23]=h,e[24]=w):w=e[24];let b;e[25]!==w||e[26]!==g?(b=n.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g,w]}),e[25]=w,e[26]=g,e[27]=b):b=e[27];let S;return e[28]!==b||e[29]!==u?(S=n.jsxs(ee,{children:[f,u,b]}),e[28]=b,e[29]=u,e[30]=S):S=e[30],S}function jn(){window.location.href="/"}function kn(t){const e=I.c(8),{org:s,children:i}=t,r=jt(s.id,s.slug)?.enabled_plugins??null;let a;e[0]!==s.id||e[1]!==s.name||e[2]!==r?(a={id:s.id,organizationId:s.id,slug:"_org",name:s.name,enabledPlugins:r,ui:null},e[0]=s.id,e[1]=s.name,e[2]=r,e[3]=a):a=e[3];const o=a;let d;return e[4]!==i||e[5]!==s||e[6]!==o?(d=n.jsx(ot,{org:s,project:o,children:i}),e[4]=i,e[5]=s,e[6]=o,e[7]=d):d=e[7],d}function Nn(){const t=Ve(),e=vt(),{org:s}=We(),i=Ae({strict:!1}),l=Qe({strict:!1}),r=i.org??"",a=i.taskId??"",o=(m,u,p=!0)=>t({to:"/$org/$taskId",params:{org:r,taskId:m},search:u,replace:p}),d=(m,u=!0)=>o(a,m,u),f=m=>d(u=>({...u,sidepanel:m})),x=(m,u,p)=>{const g=!!a&&a===m;a&&!g&&wn(a,{main:l.main,sidepanel:l.sidepanel});const h=g?null:Sn(m),w=be(s.id).id;return o(m,b=>yn({prev:b,virtualMcpId:u,decopilotId:w,savedLayout:h,opts:p,autosendValue:ft}),!1)};return{openSidePanel:f,setTaskId:x,createNewTask:async(m,u,p)=>{const g=crypto.randomUUID(),h=m??l.virtualmcpid??be(s.id).id;try{await e?.create({id:g,virtual_mcp_id:h,...u?{branch:u}:{}})}catch{}x(g,h,p)},openTab:m=>o(a||crypto.randomUUID(),u=>({...u,main:m}))}}function An(){const t=I.c(53);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const i=Ye(e)?.params.org;let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[1]=l):l=t[1];const{taskId:r}=Ae(l),[a,o]=B.useState(!1),d=Xe(),f=i??"";let x;t[2]!==f?(x=Me(f),t[2]=f,t[3]=x):x=t[3];const c=!!i&&!r;let v;t[4]!==x||t[5]!==c?(v={...x,enabled:c},t[4]=x,t[5]=c,t[6]=v):v=t[6],re(v);const{data:m}=Z.useSession(),u=m?.user?.id;let p;t[7]!==i||t[8]!==u?(p=i&&u?Ze(u,i):null,t[7]=i,t[8]=u,t[9]=p):p=t[9];const g=p;let h,w;t[10]!==d?(h=()=>{const P=z=>{if(ve(z)&&z.code==="KeyK"){z.preventDefault(),o(!0);return}ve(z)&&z.code==="BracketLeft"&&d.history.canGoBack()&&(z.preventDefault(),d.history.back())};return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},w=[d],t[10]=d,t[11]=h,t[12]=w):(h=t[11],w=t[12]),B.useEffect(h,w);let b;t[13]!==i?(b=ce.activeOrganization(i),t[13]=i,t[14]=b):b=t[14];let S;t[15]!==i||t[16]!==u?(S=async()=>{if(!i)return null;performance.mark("mesh:active-org-fetch:start");const{data:P}=await Z.organization.getFullOrganization({query:{organizationSlug:i}}).finally(_n),z=ye(P);return P&&!z&&localStorage.setItem(X.lastOrgSlug(),i),u&&P&&tt(u,i,P),P},t[15]=i,t[16]=u,t[17]=S):S=t[17];const N=g?g.data:void 0,j=g?.updatedAt;let A;t[18]!==S||t[19]!==N||t[20]!==j||t[21]!==b?(A={queryKey:b,queryFn:S,initialData:N,initialDataUpdatedAt:j,gcTime:1/0,refetchOnWindowFocus:!1},t[18]=S,t[19]=N,t[20]=j,t[21]=b,t[22]=A):A=t[22];const{data:y}=Ne(A),T=y?.id,_=y?.slug,{data:k}=kt(T,_),O=T??"",L=_??"";let C;t[23]!==O||t[24]!==L?(C=wt({connectionId:St,orgId:O,orgSlug:L}),t[23]=O,t[24]=L,t[25]=C):C=t[25];const D=!!T&&!!_;let E;if(t[26]!==C||t[27]!==D?(E={...C,enabled:D},t[26]=C,t[27]=D,t[28]=E):E=t[28],re(E),!y){let P;t[29]===Symbol.for("react.memo_cache_sentinel")?(P=n.jsx(nt,{}),t[29]=P):P=t[29];let z;return t[30]!==i?(z=n.jsx(B.Suspense,{fallback:P,children:n.jsx(It,{orgSlug:i})}),t[30]=i,t[31]=z):z=t[31],z}if(ye(y)){localStorage.getItem(X.lastOrgSlug())===i&&localStorage.removeItem(X.lastOrgSlug());let P;return t[32]!==y.name?(P=n.jsx(et,{orgName:y.name}),t[32]=y.name,t[33]=P):P=t[33],P}if(k?.ssoRequired&&!k.authenticated){let P;return t[34]!==y.id||t[35]!==y.name||t[36]!==y.slug||t[37]!==k.domain?(P=n.jsx(vn,{orgId:y.id,orgSlug:y.slug,orgName:y.name,domain:k.domain}),t[34]=y.id,t[35]=y.name,t[36]=y.slug,t[37]=k.domain,t[38]=P):P=t[38],P}const R=y.logo??null;let q;t[39]!==y||t[40]!==R?(q={...y,logo:R},t[39]=y,t[40]=R,t[41]=q):q=t[41];let Q;t[42]!==y?(Q=n.jsx(pn,{activeOrg:y}),t[42]=y,t[43]=Q):Q=t[43];let se;t[44]===Symbol.for("react.memo_cache_sentinel")?(se=n.jsx(st,{}),t[44]=se):se=t[44];let oe;t[45]===Symbol.for("react.memo_cache_sentinel")?(oe=n.jsxs("div",{className:"fixed bottom-6 right-6 z-50 flex w-[min(360px,calc(100vw-3rem))] flex-col gap-3",children:[n.jsx(Vt,{}),n.jsx(an,{})]}),t[45]=oe):oe=t[45];let Y;t[46]!==a?(Y=n.jsx(Yt,{open:a,onOpenChange:o}),t[46]=a,t[47]=Y):Y=t[47];let ie;t[48]===Symbol.for("react.memo_cache_sentinel")?(ie=n.jsx(un,{}),t[48]=ie):ie=t[48];let ae;return t[49]!==q||t[50]!==Q||t[51]!==Y?(ae=n.jsxs(kn,{org:q,children:[Q,se,oe,Y,ie]}),t[49]=q,t[50]=Q,t[51]=Y,t[52]=ae):ae=t[52],ae}function _n(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Tn(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(bt,{children:n.jsx(An,{})}),t[0]=e):e=t[0],e}const Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Tn,usePanelActions:Nn},Symbol.toStringTag,{value:"Module"}));export{M as K,Wn as a,Vn as f,ve as i,cn as m,Qn as s,Nn as u};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DVU67Hav.js","assets/index-Gptoc_-0.js","assets/index-BX7x5P5r.css","assets/Tool02-BLLppoSv.js","assets/CheckCircle-BJO_ypFA.js","assets/Settings02-DcwyvSXX.js","assets/use-mcp-client-CCJCYDxN.js","assets/auth-BUKUv3gh.js","assets/useInfiniteQuery-BcVwIHfG.js","assets/use-infinite-scroll-N2WGSfb_.js","assets/studio-tools-DaHRmNBg.js","assets/badge-BKlfRcKL.js","assets/input-BzvzuDaQ.js","assets/dropdown-menu-CMTPZ7Ir.js","assets/Check-BSC6j_AW.js","assets/ChevronRight-BnJ4c2IL.js","assets/DotsVertical-D-83qNJa.js","assets/table-BqUdzLQw.js","assets/toggle-group-GAcLozzv.js","assets/use-view-mode-CxVmDEL4.js","assets/use-mobile-uWMSI329.js","assets/FilterLines-Bu45YNI1.js","assets/Globe01-DarbWSch.js","assets/SearchMd-sYSLCAfX.js","assets/dialog-C0_VZPHC.js","assets/X-0jWoG5jx.js","assets/AlertCircle-CjFbPbXR.js","assets/Upload01-lDNoA7DY.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-C3fO6FiW.js","assets/card-Zz2koMwO.js","assets/Trash01-DUcC_MrI.js","assets/label-DtVKw0n-.js","assets/select-Tei14Zu4.js","assets/tooltip-CAY4Un9y.js","assets/ChevronDown-CVKkscg7.js","assets/ChevronUp-CVzJYnye.js","assets/switch-HDj1d-W_.js","assets/textarea-kmGQrCWT.js","assets/ArrowLeft-Dkou2oyv.js","assets/XCircle-CMWuzD62.js","assets/checkbox-DpwUgoY2.js","assets/Eye-NTHABHlz.js","assets/LinkExternal01-BZfOUq-Q.js","assets/use-copy-BKbIPHzw.js","assets/Copy01-BGs_9rA1.js","assets/Key01-CNX_ptat.js","assets/Plus-B75q72-Y.js","assets/mcp-oauth-DmlNibJW.js","assets/Play-DtbV3l2x.js"])))=>i.map(i=>d[i]);
2
- import{c as m,d as n,f as c,j as t,k as f,r as l,aF as p}from"./index-Gptoc_-0.js";import{R as u}from"./require-capability-CbJhxJIS.js";import"./use-capability-Bq8QIaAm.js";import"./access-gate-Yhz0WTWU.js";import"./capability-load-error-b09S7e_1.js";const g=l.lazy(()=>p(()=>import("./registry-layout-DVU67Hav.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
@@ -1 +0,0 @@
1
- import{c as te,b as de,j as s,r as ce,B as ee,m as je,t as ae}from"./index-Gptoc_-0.js";import{s as xe}from"./Plus-B75q72-Y.js";import{c as be,d as Re,b as ve,f as Se,g as Ne,e as De,a as Ce,A as _e}from"./alert-dialog-C3fO6FiW.js";import{b as Pe,h as Ae,a as ke,c as we,d as Oe,e as ze}from"./dialog-C0_VZPHC.js";import{I as Ee}from"./input-BzvzuDaQ.js";import{S as Ie}from"./skeleton-WByIIjEz.js";import{P as me}from"./index-DeD3quSS.js";import{c as Te}from"./settings-section-DhCcFHe0.js";import{G as he,a as $e}from"./github-repo-picker-qhvXBKMo.js";import{s as Fe,A as He,C as Be,t as Ge}from"./cards-DZhyxsHe.js";import{R as qe}from"./require-capability-CbJhxJIS.js";import"./X-0jWoG5jx.js";import"./sidebar-fE9arcNR.js";import"./LayoutLeft-D5nGLk_M.js";import"./use-mobile-uWMSI329.js";import"./tooltip-CAY4Un9y.js";import"./card-Zz2koMwO.js";import"./ArrowUpRight-BP30hDff.js";import"./collection-search-_zFY8-Cf.js";import"./SearchMd-sYSLCAfX.js";import"./use-debounced-value-CGQ1MygG.js";import"./use-connection-CHvN0FBa.js";import"./use-mcp-client-CCJCYDxN.js";import"./auth-BUKUv3gh.js";import"./authenticate-and-persist-oauth-BL5kxXPR.js";import"./mcp-oauth-DmlNibJW.js";import"./ArrowLeft-Dkou2oyv.js";import"./LinkExternal01-BZfOUq-Q.js";import"./Share07-B2hvI558.js";import"./use-mcp-tools-CGdKn1Fw.js";import"./extract-connection-data-DVi4pwNP.js";import"./metadata-dUsYcpuu.js";import"./use-navigate-to-agent-zvAVYd41.js";import"./use-virtual-mcp-bKqEnT_v.js";import"./hooks-B7N1YIMG.js";import"./decopilot-sse-pool-DLZWceLm.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./reusable-new-chat-CouMjkYR.js";import"./provision-repo-scoped-github-connection-C2HwF4Ce.js";import"./studio-tools-DaHRmNBg.js";import"./DotsVertical-D-83qNJa.js";import"./Globe01-DarbWSch.js";import"./Key01-CNX_ptat.js";import"./Palette-Borxdy0n.js";import"./Trash01-DUcC_MrI.js";import"./Zap-CkkvDzJg.js";import"./dropdown-menu-CMTPZ7Ir.js";import"./Check-BSC6j_AW.js";import"./ChevronRight-BnJ4c2IL.js";import"./file-type-icon-BaDll1C-.js";import"./Eye-NTHABHlz.js";import"./use-capability-Bq8QIaAm.js";import"./access-gate-Yhz0WTWU.js";import"./capability-load-error-b09S7e_1.js";function Le(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Ve(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:Ge(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Je(e){const t=te.c(32),{config:l,onRemove:i}=e,o=de();let r;t[0]!==l||t[1]!==o?(r=Ve(l,o),t[0]=l,t[1]=o,t[2]=r):r=t[2];const f=r;let c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(he,{size:16,className:"text-muted-foreground"})}),t[3]=c):c=t[3];let m;t[4]!==l.repoName||t[5]!==l.repoOwner?(m=s.jsxs("span",{className:"font-medium text-sm truncate",children:[l.repoOwner,"/",l.repoName]}),t[4]=l.repoName,t[5]=l.repoOwner,t[6]=m):m=t[6];let n;t[7]!==l.ref?(n=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[7]=l.ref,t[8]=n):n=t[8];let g;t[9]!==m||t[10]!==n?(g=s.jsxs("div",{className:"flex items-center gap-2",children:[m,n]}),t[9]=m,t[10]=n,t[11]=g):g=t[11];const d=f.error?"text-destructive":"text-muted-foreground";let p;t[12]!==d?(p=je("text-xs mt-0.5 truncate",d),t[12]=d,t[13]=p):p=t[13];let u;t[14]!==l.volume||t[15]!==o?(u=o("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[14]=l.volume,t[15]=o,t[16]=u):u=t[16];let y;t[17]!==f.label||t[18]!==p||t[19]!==u?(y=s.jsxs("p",{className:p,children:[u," ·"," ",f.label]}),t[17]=f.label,t[18]=p,t[19]=u,t[20]=y):y=t[20];let x;t[21]!==g||t[22]!==y?(x=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[c,s.jsxs("div",{className:"min-w-0",children:[g,y]})]}),t[21]=g,t[22]=y,t[23]=x):x=t[23];let j;t[24]!==o?(j=o("settings.syncedRepos.remove"),t[24]=o,t[25]=j):j=t[25];let h;t[26]!==i||t[27]!==j?(h=s.jsx(ee,{variant:"outline",size:"sm",onClick:i,children:j}),t[26]=i,t[27]=j,t[28]=h):h=t[28];let b;return t[29]!==x||t[30]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[x,h]}),t[29]=x,t[30]=h,t[31]=b):b=t[31],b}function Ke(e){const t=te.c(21),{onAdd:l}=e,i=de();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(he,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let r;t[1]!==i?(r=i("settings.syncedRepos.emptyTitle"),t[1]=i,t[2]=r):r=t[2];let f;t[3]!==r?(f=s.jsx("p",{className:"font-medium text-sm",children:r}),t[3]=r,t[4]=f):f=t[4];let c;t[5]!==i?(c=i("settings.syncedRepos.emptyDescription"),t[5]=i,t[6]=c):c=t[6];let m;t[7]!==c?(m=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:c}),t[7]=c,t[8]=m):m=t[8];let n;t[9]!==f||t[10]!==m?(n=s.jsxs("div",{children:[f,m]}),t[9]=f,t[10]=m,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let d;t[13]!==i?(d=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=d):d=t[14];let p;t[15]!==l||t[16]!==d?(p=s.jsxs(ee,{onClick:l,size:"sm",className:"mt-2",children:[g,d]}),t[15]=l,t[16]=d,t[17]=p):p=t[17];let u;return t[18]!==n||t[19]!==p?(u=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,p]}),t[18]=n,t[19]=p,t[20]=u):u=t[20],u}function Me(){const e=te.c(107),t=de(),l=Fe(),i=He(),o=Be(),[r,f]=ce.useState(!1),[c,m]=ce.useState(null),[n,g]=ce.useState(""),[d,p]=ce.useState(null);let u;e[0]!==i||e[1]!==c||e[2]!==t||e[3]!==n?(u=function(){!c||!n.trim()||i.mutate({connectionId:c.connectionId,volume:n.trim()},{onSuccess:R=>{m(null),ae.success(t("settings.syncedRepos.created",{volume:R.volume}))},onError:R=>{ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed"))}})},e[0]=i,e[1]=c,e[2]=t,e[3]=n,e[4]=u):u=e[4];const y=u;let x;e[5]!==d||e[6]!==o||e[7]!==t?(x=function(){d&&o.mutate(d.id,{onSuccess:()=>ae.success(t("settings.syncedRepos.removed")),onError:R=>ae.error(R instanceof Error?R.message:t("settings.syncedRepos.failed")),onSettled:()=>p(null)})},e[5]=d,e[6]=o,e[7]=t,e[8]=x):x=e[8];const j=x;if(l.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ie,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let h;e[10]!==l.data?(h=l.data??[],e[10]=l.data,e[11]=h):h=e[11];const b=h;let v;e[12]!==t?(v=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=v):v=e[13];let S;e[14]!==v?(S=s.jsx("p",{className:"text-sm text-muted-foreground",children:v}),e[14]=v,e[15]=S):S=e[15];let N;e[16]!==b||e[17]!==t?(N=b.length===0?s.jsx(Ke,{onAdd:()=>f(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(ee,{onClick:()=>f(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:b.map(a=>s.jsx(Je,{config:a,onRemove:()=>p(a)},a.id))})]}),e[16]=b,e[17]=t,e[18]=N):N=e[18];let D;e[19]!==t?(D=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=D):D=e[20];let se;e[21]===Symbol.for("react.memo_cache_sentinel")?(se=a=>{f(!1),m(a),g(Le(a.repo.name))},e[21]=se):se=e[21];let C;e[22]!==r||e[23]!==D?(C=s.jsx($e,{mode:"connection",open:r,onOpenChange:f,title:D,onImportComplete:se}),e[22]=r,e[23]=D,e[24]=C):C=e[24];const pe=c!==null;let ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>{a||m(null)},e[25]=ie):ie=e[25];let _;e[26]!==t?(_=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=_):_=e[27];let P;e[28]!==_?(P=s.jsx(Pe,{children:_}),e[28]=_,e[29]=P):P=e[29];const fe=c?`${c.repo.owner}/${c.repo.name}`:"";let A;e[30]!==t||e[31]!==fe?(A=t("settings.syncedRepos.nameDialogDescription",{repo:fe}),e[30]=t,e[31]=fe,e[32]=A):A=e[32];let k;e[33]!==A?(k=s.jsx(Ae,{children:A}),e[33]=A,e[34]=k):k=e[34];let w;e[35]!==P||e[36]!==k?(w=s.jsxs(ke,{children:[P,k]}),e[35]=P,e[36]=k,e[37]=w):w=e[37];let le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=a=>g(a.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let z;e[41]!==O||e[42]!==n?(z=s.jsx(Ee,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=z):z=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>m(null),e[44]=ne):ne=e[44];const ye=i.isPending;let E;e[45]!==t?(E=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=E):E=e[46];let I;e[47]!==i.isPending||e[48]!==E?(I=s.jsx(ee,{variant:"outline",onClick:ne,disabled:ye,children:E}),e[47]=i.isPending,e[48]=E,e[49]=I):I=e[49];let T;e[50]!==i.isPending||e[51]!==n?(T=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=T):T=e[52];let $;e[53]!==i.isPending||e[54]!==t?($=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=$):$=e[55];let F;e[56]!==y||e[57]!==T||e[58]!==$?(F=s.jsx(ee,{disabled:T,onClick:y,children:$}),e[56]=y,e[57]=T,e[58]=$,e[59]=F):F=e[59];let H;e[60]!==I||e[61]!==F?(H=s.jsxs(we,{children:[I,F]}),e[60]=I,e[61]=F,e[62]=H):H=e[62];let B;e[63]!==w||e[64]!==z||e[65]!==H?(B=s.jsxs(Oe,{className:"sm:max-w-sm",children:[w,z,H]}),e[63]=w,e[64]=z,e[65]=H,e[66]=B):B=e[66];let G;e[67]!==B||e[68]!==pe?(G=s.jsx(ze,{open:pe,onOpenChange:ie,children:B}),e[67]=B,e[68]=pe,e[69]=G):G=e[69];const ue=d!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||p(null)},e[70]=oe):oe=e[70];const ge=d?.volume??"";let q;e[71]!==t||e[72]!==ge?(q=t("settings.syncedRepos.removeTitle",{volume:ge}),e[71]=t,e[72]=ge,e[73]=q):q=e[73];let L;e[74]!==q?(L=s.jsx(be,{children:q}),e[74]=q,e[75]=L):L=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let J;e[78]!==V?(J=s.jsx(Re,{children:V}),e[78]=V,e[79]=J):J=e[79];let K;e[80]!==L||e[81]!==J?(K=s.jsxs(ve,{children:[L,J]}),e[80]=L,e[81]=J,e[82]=K):K=e[82];let M;e[83]!==t?(M=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=M):M=e[84];let Q;e[85]!==M?(Q=s.jsx(Se,{children:M}),e[85]=M,e[86]=Q):Q=e[86];let U;e[87]!==t?(U=t("settings.syncedRepos.remove"),e[87]=t,e[88]=U):U=e[88];let W;e[89]!==j||e[90]!==U?(W=s.jsx(Ne,{onClick:j,children:U}),e[89]=j,e[90]=U,e[91]=W):W=e[91];let X;e[92]!==Q||e[93]!==W?(X=s.jsxs(De,{children:[Q,W]}),e[92]=Q,e[93]=W,e[94]=X):X=e[94];let Y;e[95]!==K||e[96]!==X?(Y=s.jsxs(Ce,{children:[K,X]}),e[95]=K,e[96]=X,e[97]=Y):Y=e[97];let Z;e[98]!==ue||e[99]!==Y?(Z=s.jsx(_e,{open:ue,onOpenChange:oe,children:Y}),e[98]=ue,e[99]=Y,e[100]=Z):Z=e[100];let re;return e[101]!==G||e[102]!==S||e[103]!==Z||e[104]!==N||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[S,N,C,G,Z]}),e[101]=G,e[102]=S,e[103]=Z,e[104]=N,e[105]=C,e[106]=re):re=e[106],re}function Qe(){const e=te.c(7),t=de();let l;e[0]!==t?(l=t("settings.nav.syncedRepos"),e[0]=t,e[1]=l):l=e[1];let i;e[2]!==l?(i=s.jsx(me.Title,{children:l}),e[2]=l,e[3]=i):i=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Me,{}),e[4]=o):o=e[4];let r;return e[5]!==i?(r=s.jsx(me,{children:s.jsx(me.Content,{children:s.jsx(me.Body,{children:s.jsxs(Te,{children:[i,o]})})})}),e[5]=i,e[6]=r):r=e[6],r}function Wt(){const e=te.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(qe,{capability:"file-configs:manage",area:"files",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}export{Wt as default};