decocms 4.358.5 → 4.358.6

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 (259) hide show
  1. package/dist/client/assets/{AlertCircle-DnecbAPh.js → AlertCircle-CW0O4pBw.js} +1 -1
  2. package/dist/client/assets/{AreaChart-CieUdvmg.js → AreaChart-Cp6MXzZb.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DKxrZoHN.js → ArrowLeft-CN9RDpNo.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-D5xmwFpZ.js → ArrowRight-BX_PSZ1n.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-Di6V-t98.js → ArrowUp-nlh0HDOg.js} +1 -1
  6. package/dist/client/assets/{Check-Cz1yJ2Ku.js → Check-BhRIOCpN.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-CUMJTel7.js → CheckCircle-DLOzW94r.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-DBtAhTcB.js → ChevronRight-D0Rkuzgn.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-BWywRn6y.js → ChevronSelectorVertical-CL4P_ZBZ.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-CzD3Q5Ez.js → ChevronUp-_pfTz8yB.js} +1 -1
  11. package/dist/client/assets/{Copy01-8PINeOv9.js → Copy01-C4hJcHl-.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-DrPWgPgY.js → CreditCard01-Cdtz3cQC.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-pXN36xDf.js → DotsVertical-CNJtdwwq.js} +1 -1
  14. package/dist/client/assets/{Download01-ChKDQL-2.js → Download01-LL61yWJD.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-a7ePfei0.js → ErrorBarContext-CzmrIVxh.js} +1 -1
  16. package/dist/client/assets/{Eye-uv0JopIC.js → Eye-B9MlIArW.js} +1 -1
  17. package/dist/client/assets/{GitBranch01-hVNlV4_5.js → GitBranch01-DTF-gKNt.js} +1 -1
  18. package/dist/client/assets/{Globe01-cNyR-aGb.js → Globe01-a9PcO0Vi.js} +1 -1
  19. package/dist/client/assets/{HardDrive-0QEGAcdt.js → HardDrive-CcK8PQXf.js} +1 -1
  20. package/dist/client/assets/{Image01-D8DJyxgN.js → Image01-D7zqr1M8.js} +1 -1
  21. package/dist/client/assets/{Key01-B4wEzwfA.js → Key01-CaA-Rk8l.js} +1 -1
  22. package/dist/client/assets/{Link01-Dg3Wgdll.js → Link01-DrMHFicJ.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-DcDWG6E7.js → LinkExternal01-B7whCsmH.js} +1 -1
  24. package/dist/client/assets/{Monitor01-DKUPqvEt.js → Monitor01-Bi-3rxWt.js} +1 -1
  25. package/dist/client/assets/{Package-C2z5N4Ha.js → Package-B0XJYpfq.js} +1 -1
  26. package/dist/client/assets/{Palette-B-kHXH8u.js → Palette-BGP_8XBy.js} +1 -1
  27. package/dist/client/assets/{Play-DO5I4TQw.js → Play-DyAuIgFu.js} +1 -1
  28. package/dist/client/assets/{Plus-CvXXAkh5.js → Plus-BeujyEwZ.js} +1 -1
  29. package/dist/client/assets/{SearchLg-ClCNH8OL.js → SearchLg-CHitH-Kd.js} +1 -1
  30. package/dist/client/assets/{SearchMd-BDM79zjM.js → SearchMd-DHdOgt1H.js} +1 -1
  31. package/dist/client/assets/{Sector-CY5FlDSF.js → Sector-C4sLJ-1V.js} +1 -1
  32. package/dist/client/assets/{Settings02-Bniu9Kuf.js → Settings02-Dmq_9N1-.js} +1 -1
  33. package/dist/client/assets/{Share07-Cs5GE4ka.js → Share07-xuMrkrGu.js} +1 -1
  34. package/dist/client/assets/{Shield01-Y_WnaKFU.js → Shield01-6cNRJO7b.js} +1 -1
  35. package/dist/client/assets/{Stars01-6JGB8G_o.js → Stars01-CNelyhpt.js} +1 -1
  36. package/dist/client/assets/{Sun-B5-Zgu6g.js → Sun-DJIXTnoe.js} +1 -1
  37. package/dist/client/assets/{Tool01-hRYJ57AS.js → Tool01-BrjDzkok.js} +1 -1
  38. package/dist/client/assets/{Tool02-VahAgw3l.js → Tool02-Da4A0ujA.js} +1 -1
  39. package/dist/client/assets/{Trash01-Cbibxhdy.js → Trash01-CQfYw0YJ.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-BrA1T2pc.js → TrendUp01-ClvAA7bo.js} +1 -1
  41. package/dist/client/assets/{Upload01-DCSoEoPT.js → Upload01-DMYP6HVa.js} +1 -1
  42. package/dist/client/assets/{User01-CMN81VOd.js → User01-nxy53Igz.js} +1 -1
  43. package/dist/client/assets/{UserSquare-B9-4LA44.js → UserSquare-CBqLMnzb.js} +1 -1
  44. package/dist/client/assets/{Users01-G5gtvFkg.js → Users01-CusJiTMb.js} +1 -1
  45. package/dist/client/assets/{Users03-BP5hN4tN.js → Users03-DiBp-2rZ.js} +1 -1
  46. package/dist/client/assets/{XCircle-CAT1mlY1.js → XCircle-D2ZPhClx.js} +1 -1
  47. package/dist/client/assets/{XClose-C39TipQ9.js → XClose-mHv2rmh8.js} +1 -1
  48. package/dist/client/assets/{Zap-C6djsNj_.js → Zap-D89Gt6Fw.js} +1 -1
  49. package/dist/client/assets/{ZoomOut-BDx7bzVD.js → ZoomOut-DMcFahn8.js} +1 -1
  50. package/dist/client/assets/{access-gate-CDgve0Y7.js → access-gate-BoNTAAw6.js} +1 -1
  51. package/dist/client/assets/{agent-icon-BFmhGO5e.js → agent-icon-MWGASSSc.js} +1 -1
  52. package/dist/client/assets/{agents-list-XVY-mC6j.js → agents-list-BLZZWf4k.js} +1 -1
  53. package/dist/client/assets/{ai-providers-C_YD1-eC.js → ai-providers-2BxiJMGH.js} +1 -1
  54. package/dist/client/assets/{alert-Ti219vTC.js → alert-CGd8ZySD.js} +1 -1
  55. package/dist/client/assets/{alert-dialog-CZ1KENHH.js → alert-dialog-BZr4ofKO.js} +1 -1
  56. package/dist/client/assets/{analytics-tab-D3oXCyJU.js → analytics-tab-hVYr6oh5.js} +1 -1
  57. package/dist/client/assets/api-keys-Bhl6zyMv.js +1 -0
  58. package/dist/client/assets/{api-keys-Dro4J7Ul.js → api-keys-HnFYY98-.js} +1 -1
  59. package/dist/client/assets/{app-editor-B6L5rrlt.js → app-editor-DHJIwV6f.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-CP2aNR9v.js → auth-catchall-CymTA4Xj.js} +1 -1
  61. package/dist/client/assets/{auth-entry-B-IGkSZs.js → auth-entry-CQF0KL2n.js} +1 -1
  62. package/dist/client/assets/{auth-B5sZ5Nku.js → auth-luB2ReMr.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout-BdcfozHo.js → auth-split-layout-dgja2t1C.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-N0Onqilv.js → authenticate-and-persist-oauth-Dkpk1b_4.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-Brfwt3an.js → automation-list-row-DMR6qaRU.js} +1 -1
  66. package/dist/client/assets/{automation-runs-CyDBE23L.js → automation-runs-CYcu-5ir.js} +1 -1
  67. package/dist/client/assets/{automations-CuGzlXt9.js → automations-D4XnCX7H.js} +1 -1
  68. package/dist/client/assets/{autosend-Do97LQ4X.js → autosend-D1PJjyTv.js} +1 -1
  69. package/dist/client/assets/{avatar-DgTZ1wzS.js → avatar-C3S80rWa.js} +1 -1
  70. package/dist/client/assets/{badge-BXckqUEw.js → badge-C0dM1yqI.js} +1 -1
  71. package/dist/client/assets/{block-document-Cs7DZImF.js → block-document-PjwDgver.js} +1 -1
  72. package/dist/client/assets/{breadcrumb-BZZe5syI.js → breadcrumb-BwWW0ZYj.js} +1 -1
  73. package/dist/client/assets/{buckets-DXoXeOAg.js → buckets-BBkrLkhE.js} +1 -1
  74. package/dist/client/assets/{bulk-category-panel-7dM2R4js.js → bulk-category-panel-CvNzRuGu.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-BR7ZE3ck.js → capability-load-error-D_FgiO0o.js} +1 -1
  76. package/dist/client/assets/{cards-C3DkSzrs.js → cards-CPmpdqbR.js} +1 -1
  77. package/dist/client/assets/{category-editor-BNGX39x1.js → category-editor-Bvp5J1Ue.js} +1 -1
  78. package/dist/client/assets/{cdn-tab-Dof5_kNi.js → cdn-tab-DJGbM01z.js} +1 -1
  79. package/dist/client/assets/{chart-BKBIXKZl.js → chart-D4taNc_Z.js} +1 -1
  80. package/dist/client/assets/{chat-context-DxdDV2c_.js → chat-context-CiSqTsaU.js} +1 -1
  81. package/dist/client/assets/{checkbox-BuDYKoG3.js → checkbox-CkvNIg15.js} +1 -1
  82. package/dist/client/assets/{choose-editor-DeG6fWFI.js → choose-editor-BwfOj7ju.js} +1 -1
  83. package/dist/client/assets/{cli-auth-success-CJysUPLz.js → cli-auth-success-Czr-QGke.js} +1 -1
  84. package/dist/client/assets/{client-icons-Bzy3f2K0.js → client-icons-kGMNtxUX.js} +1 -1
  85. package/dist/client/assets/{collection-detail-DMEXkOgX.js → collection-detail-CGWWADun.js} +1 -1
  86. package/dist/client/assets/{collection-display-button-YaQc-_Zz.js → collection-display-button-CK6xl2gO.js} +1 -1
  87. package/dist/client/assets/{collection-search-BPZ632Qb.js → collection-search-BLnLRPJY.js} +1 -1
  88. package/dist/client/assets/{collection-table-wrapper-B9XCvDX2.js → collection-table-wrapper-BY31wZT4.js} +1 -1
  89. package/dist/client/assets/{collection-tabs-CkULqP96.js → collection-tabs-cVeFEz0v.js} +1 -1
  90. package/dist/client/assets/{command-CrfbvrPh.js → command-BS_wx-x7.js} +1 -1
  91. package/dist/client/assets/{commerce-onboarding-CEkt5zT2.js → commerce-onboarding-C_2xdi6n.js} +1 -1
  92. package/dist/client/assets/{connect-BavLBpMM.js → connect-F3JBBPbA.js} +1 -1
  93. package/dist/client/assets/{connect-layout-Ckz-l1qi.js → connect-layout-Lihb2uIT.js} +1 -1
  94. package/dist/client/assets/{connection-BihzkxkU.js → connection-CM9gtY5w.js} +1 -1
  95. package/dist/client/assets/{connection-card-CZIy77L1.js → connection-card-C_ZIPjY2.js} +1 -1
  96. package/dist/client/assets/{connection-detail-BaG-ZPOw.js → connection-detail-CsRsHtEa.js} +1 -1
  97. package/dist/client/assets/{connection-form-helpers-BiWza_n6.js → connection-form-helpers-B1-pfy6E.js} +1 -1
  98. package/dist/client/assets/{connections-DaciiVFw.js → connections-BL4kY4Xa.js} +1 -1
  99. package/dist/client/assets/{create-organization-dialog-CKS2WDIe.js → create-organization-dialog-6ybzcMZg.js} +1 -1
  100. package/dist/client/assets/{decopilot-sse-pool-B6oDJj48.js → decopilot-sse-pool-XAXiiLSH.js} +1 -1
  101. package/dist/client/assets/{dialog-XHYSv2FF.js → dialog-D5t1X9lU.js} +1 -1
  102. package/dist/client/assets/{domain-settings-CZPIiIuC.js → domain-settings-BYYRJipq.js} +1 -1
  103. package/dist/client/assets/{drawer-Baxk3ITM.js → drawer-Df4pRBXo.js} +1 -1
  104. package/dist/client/assets/{dropdown-menu-DXwTXKHW.js → dropdown-menu-DaKMrV9t.js} +1 -1
  105. package/dist/client/assets/{e2e-tab-RZJty-BJ.js → e2e-tab-D46zC88a.js} +1 -1
  106. package/dist/client/assets/{editor-DL4--PcF.js → editor-C-r0gGGU.js} +1 -1
  107. package/dist/client/assets/{empty-state-DUWesh0y.js → empty-state-Co_odNhC.js} +1 -1
  108. package/dist/client/assets/{empty-state--1O_g2Vb.js → empty-state-HeALLFVe.js} +1 -1
  109. package/dist/client/assets/{extract-connection-data-j3oiKoXE.js → extract-connection-data-xbCt3zcQ.js} +1 -1
  110. package/dist/client/assets/{file-explorer-C_0SxNcE.js → file-explorer-C2kyz1ZG.js} +1 -1
  111. package/dist/client/assets/{file-type-icon-CZuZ3Yie.js → file-type-icon-BZ5LBYvN.js} +1 -1
  112. package/dist/client/assets/{folder-icon-D_6Qxdwn.js → folder-icon-BbPXRXJY.js} +1 -1
  113. package/dist/client/assets/{form-9R94AgDH.js → form-CeMhKgcZ.js} +1 -1
  114. package/dist/client/assets/{general-BHBaigtz.js → general-D-krAqsI.js} +1 -1
  115. package/dist/client/assets/{github-icon-CPF2UG7w.js → github-icon-BfYxSeCS.js} +1 -1
  116. package/dist/client/assets/{hooks-DPkoA9nj.js → hooks-C5zGbAN-.js} +1 -1
  117. package/dist/client/assets/{index-DUmDOTgv.js → index-BH_v75ZT.js} +1 -1
  118. package/dist/client/assets/index-BVP3J12_.js +1 -0
  119. package/dist/client/assets/{index-BFzI2jlp.js → index-BqtVkVrN.js} +1 -1
  120. package/dist/client/assets/{index-Ccrw7Y8L.js → index-BwkkhXAQ.js} +1 -1
  121. package/dist/client/assets/{index-Cxsast4S.js → index-C1Rz7LoU.js} +1 -1
  122. package/dist/client/assets/{index-BrNAJ0cO.js → index-CVRcfb7q.js} +1 -1
  123. package/dist/client/assets/{index-ardO8QQc.js → index-CYmu_lpv.js} +6 -6
  124. package/dist/client/assets/{index-Boo4Ho4L.js → index-DH8v1CXN.js} +1 -1
  125. package/dist/client/assets/{index-DLXkJsHm.js → index-DY7Qz03S.js} +1 -1
  126. package/dist/client/assets/{index-Co_9Xm5o.js → index-Df6H4nZG.js} +1 -1
  127. package/dist/client/assets/{index-ClceuAyk.js → index-DwLTHuEV.js} +14 -14
  128. package/dist/client/assets/{index-redirect-B-O2heAm.js → index-redirect-BClVJBxJ.js} +1 -1
  129. package/dist/client/assets/{index-CVUfhy6G.js → index-t1QFjxgF.js} +1 -1
  130. package/dist/client/assets/{infiniteQueryObserver-Dl9Qp9QK.js → infiniteQueryObserver-BsIIe3_Y.js} +1 -1
  131. package/dist/client/assets/{infra-billing-CAgokXzp.js → infra-billing-CdTgJc_9.js} +1 -1
  132. package/dist/client/assets/{input-BnaH3Pwu.js → input-BrLxyu7g.js} +1 -1
  133. package/dist/client/assets/{integration-icon-dzOlSD8N.js → integration-icon-SNrRdp_f.js} +1 -1
  134. package/dist/client/assets/{invite-member-dialog-QDw_M-ud.js → invite-member-dialog-CVP3APjW.js} +1 -1
  135. package/dist/client/assets/{label-BXG-IHer.js → label-DO0unQuW.js} +1 -1
  136. package/dist/client/assets/{layout-C2_aen3L.js → layout-qjlYJBSt.js} +1 -1
  137. package/dist/client/assets/{login-D4cqzRQb.js → login-DTtHLEr3.js} +1 -1
  138. package/dist/client/assets/{markdown-CaFF2juq.js → markdown-DivzufJq.js} +1 -1
  139. package/dist/client/assets/{mcp-app-renderer-QFINxU6q.js → mcp-app-renderer-Cm4vAfQ5.js} +1 -1
  140. package/dist/client/assets/{mcp-oauth-DPzuG3zD.js → mcp-oauth-BOLDxb5w.js} +1 -1
  141. package/dist/client/assets/{members-Cqjgou5V.js → members-HYcXh_m3.js} +1 -1
  142. package/dist/client/assets/{monaco-editor-B0P4X5oN.js → monaco-editor-BbPO71I5.js} +1 -1
  143. package/dist/client/assets/{monitoring-stats-row-CSFd13g3.js → monitoring-stats-row-BVzVd4-Q.js} +1 -1
  144. package/dist/client/assets/{multi-select-BAV4AxGB.js → multi-select-CO6tWQdE.js} +1 -1
  145. package/dist/client/assets/{oauth-callback-CFuqbwtT.js → oauth-callback-D-AheijO.js} +1 -1
  146. package/dist/client/assets/{oauth-callback-ai-provider-DbQQLyJP.js → oauth-callback-ai-provider-C7c0R32o.js} +1 -1
  147. package/dist/client/assets/{onboarding-CYD-4U_W.js → onboarding-Pmst8RY1.js} +1 -1
  148. package/dist/client/assets/{org-layout-JsgfJ6Y1.js → org-layout-Dkleo3c_.js} +1 -1
  149. package/dist/client/assets/{organization-choice-Cxa29sqL.js → organization-choice-CW8hHcif.js} +1 -1
  150. package/dist/client/assets/{orgs-itRRL6Ty.js → orgs-3E9IW3cx.js} +1 -1
  151. package/dist/client/assets/{page-seo-form-CqcF641q.js → page-seo-form-CdZWSlOv.js} +1 -1
  152. package/dist/client/assets/{popover-B0ciwF2d.js → popover-CYNdLknD.js} +1 -1
  153. package/dist/client/assets/{post-calendar-Bzotl2oT.js → post-calendar-BaHJqLJq.js} +1 -1
  154. package/dist/client/assets/{post-editor-CcAde5RR.js → post-editor-C92UmWtb.js} +1 -1
  155. package/dist/client/assets/{primitives-C7FP5JK1.js → primitives-DclQz1uQ.js} +1 -1
  156. package/dist/client/assets/{profile-BxtFcTt6.js → profile-CbdzrFg-.js} +1 -1
  157. package/dist/client/assets/{project-app-view-MBcJtUk2.js → project-app-view-DDTMhLEa.js} +1 -1
  158. package/dist/client/assets/{project-icon-CfK-Oy7W.js → project-icon-_AADSlOL.js} +1 -1
  159. package/dist/client/assets/{prompts-CIeRrkCk.js → prompts-DziHWbWK.js} +1 -1
  160. package/dist/client/assets/record-editor-6ESDWlAy.js +1 -0
  161. package/dist/client/assets/redirect-editor-C2zMKRjs.js +1 -0
  162. package/dist/client/assets/registry-DD6VJ6Ri.js +2 -0
  163. package/dist/client/assets/{registry-layout-BlNehP-G.js → registry-layout-D03cBxoy.js} +1 -1
  164. package/dist/client/assets/{reports-D8XEiFZi.js → reports-xxpGWJER.js} +1 -1
  165. package/dist/client/assets/{repositories-CNKYYrmM.js → repositories-D-JqEXhh.js} +1 -1
  166. package/dist/client/assets/{repository-import-picker-891LXjlh.js → repository-import-picker-B3hvJpPt.js} +1 -1
  167. package/dist/client/assets/{repository-picker-CJvOUjvr.js → repository-picker-D23-XofN.js} +1 -1
  168. package/dist/client/assets/{require-capability-B5XPZW1m.js → require-capability-PPe9XU6v.js} +1 -1
  169. package/dist/client/assets/{required-auth-layout-Dar1s87n.js → required-auth-layout-CcyTsGD8.js} +1 -1
  170. package/dist/client/assets/{reset-password-BTB-L-Uv.js → reset-password-DTsQ-j7j.js} +1 -1
  171. package/dist/client/assets/{review-settings-C7Lip4oM.js → review-settings-BIQc2Tpj.js} +1 -1
  172. package/dist/client/assets/roles-GYBgNUXU.js +1 -0
  173. package/dist/client/assets/{schema-C6aNLxKf.js → schema-BEs_LihD.js} +1 -1
  174. package/dist/client/assets/{scroll-area-C9lu0lSL.js → scroll-area-g0nUcrXQ.js} +1 -1
  175. package/dist/client/assets/{search-input-DyWwr2ur.js → search-input-jiiS9zP6.js} +1 -1
  176. package/dist/client/assets/{secrets-DiWIhH7K.js → secrets-cwVhpkqm.js} +1 -1
  177. package/dist/client/assets/{sections-editor-DWnxt7-x.js → sections-editor-DQESxxPc.js} +1 -1
  178. package/dist/client/assets/{select-CPovt3xR.js → select-Bp3traQ4.js} +1 -1
  179. package/dist/client/assets/{select-model-yl9KFIES.js → select-model-D9l0Ou7P.js} +1 -1
  180. package/dist/client/assets/{self-tool-result-DRjgFxL_.js → self-tool-result-S3FLFbzz.js} +1 -1
  181. package/dist/client/assets/{seo-editor-D4paGbZH.js → seo-editor-CI9Pz5g0.js} +1 -1
  182. package/dist/client/assets/settings-layout-DiHA_kmT.js +1 -0
  183. package/dist/client/assets/{settings-sidebar--XrDF_-z.js → settings-sidebar-DHpdn5C9.js} +1 -1
  184. package/dist/client/assets/{shell-controls-D-QiDg45.js → shell-controls-BYYp4573.js} +1 -1
  185. package/dist/client/assets/{shell-layout-BORrXGw4.js → shell-layout-BS7N74ED.js} +1 -1
  186. package/dist/client/assets/{skill-preview-BJQ-JS1j.js → skill-preview-CFI6FGea.js} +1 -1
  187. package/dist/client/assets/{skills-E-TzyI3n.js → skills-BPPeZIgJ.js} +1 -1
  188. package/dist/client/assets/{sso-ak-ecfqB.js → sso-C_Rapysd.js} +1 -1
  189. package/dist/client/assets/{store-DVzXeQlw.js → store-DJwhkUE7.js} +1 -1
  190. package/dist/client/assets/store-registry-DIXLfAi9.js +2 -0
  191. package/dist/client/assets/{switch-CyYEu2Mr.js → switch-cSkDhXT4.js} +1 -1
  192. package/dist/client/assets/{synced-repos-DwI4VKBm.js → synced-repos-DpOWWvk6.js} +1 -1
  193. package/dist/client/assets/{table-BZwt0mq1.js → table-DTpsTVx_.js} +1 -1
  194. package/dist/client/assets/{tabs-Dh_rs5-C.js → tabs-CrMOtF5I.js} +1 -1
  195. package/dist/client/assets/{task-board-ogD6qhBD.js → task-board-D1NFzUy7.js} +1 -1
  196. package/dist/client/assets/{task-route-D0StKYLX.js → task-route-BqIa8KFK.js} +1 -1
  197. package/dist/client/assets/{tasks-HZz_ZCv5.js → tasks-zBWnoZyu.js} +1 -1
  198. package/dist/client/assets/{textarea-BsfO56Vo.js → textarea-BzS9prJw.js} +1 -1
  199. package/dist/client/assets/{thread-intent-_gcPeplT.js → thread-intent-CwKzUr8k.js} +1 -1
  200. package/dist/client/assets/{thread-route-5G3X8NOl.js → thread-route-0tqXILPp.js} +1 -1
  201. package/dist/client/assets/{toggle-group-BtCG8lSD.js → toggle-group-BmZ03JYY.js} +1 -1
  202. package/dist/client/assets/{toolbar-icon-button-BhH4epEy.js → toolbar-icon-button-FS_Ht5xa.js} +1 -1
  203. package/dist/client/assets/{toolbar-Dz6pjT1t.js → toolbar-zXkttmNV.js} +1 -1
  204. package/dist/client/assets/{track-CHBVpe37.js → track-Uk-d37hu.js} +1 -1
  205. package/dist/client/assets/{types-DWPAY_9z.js → types-D0egiqka.js} +1 -1
  206. package/dist/client/assets/{use-ai-providers-C8uOURwM.js → use-ai-providers-CCeZ_hn_.js} +1 -1
  207. package/dist/client/assets/{use-automations-J04oXu-B.js → use-automations-DufB7i1w.js} +1 -1
  208. package/dist/client/assets/{use-autosave-BTBrWTLA.js → use-autosave-SPWHVk3b.js} +1 -1
  209. package/dist/client/assets/{use-connection-Czuylju7.js → use-connection-BySY6_LW.js} +1 -1
  210. package/dist/client/assets/{use-copy-DsJQkugr.js → use-copy-JqVB03dy.js} +1 -1
  211. package/dist/client/assets/{use-create-virtual-mcp-CGD6M3Tf.js → use-create-virtual-mcp-w5PpL0vo.js} +1 -1
  212. package/dist/client/assets/{use-date-fns-locale-DTEXZF5C.js → use-date-fns-locale-DwsB-rti.js} +1 -1
  213. package/dist/client/assets/{use-debounced-autosave-DHIO9FEX.js → use-debounced-autosave-Cf8HfeJg.js} +1 -1
  214. package/dist/client/assets/{use-debounced-value-xYpMclvp.js → use-debounced-value-DZZTZpqX.js} +1 -1
  215. package/dist/client/assets/{use-decopilot-events-DO9n8G8k.js → use-decopilot-events-ukH84hzL.js} +1 -1
  216. package/dist/client/assets/{use-delete-connection-C4uA47Qa.js → use-delete-connection-CWkJIdZ8.js} +1 -1
  217. package/dist/client/assets/{use-deployment-admin-Cmhm3aMd.js → use-deployment-admin-CpX_nea-.js} +1 -1
  218. package/dist/client/assets/{use-destination-route-C33Wg86r.js → use-destination-route-CvSc3PW1.js} +1 -1
  219. package/dist/client/assets/{use-file-configs-BRBSB8n0.js → use-file-configs-BguQryrn.js} +1 -1
  220. package/dist/client/assets/{use-infinite-scroll-D1TiZfg3.js → use-infinite-scroll-DFWE1P5B.js} +1 -1
  221. package/dist/client/assets/{use-join-requests-DbsA_U8I.js → use-join-requests-C-iPcyvV.js} +1 -1
  222. package/dist/client/assets/{use-mcp-auth-status-Dx3ZJ78o.js → use-mcp-auth-status-Be0uN9_3.js} +1 -1
  223. package/dist/client/assets/{use-mcp-client-Dw2P7NDf.js → use-mcp-client-D-xbmqqG.js} +1 -1
  224. package/dist/client/assets/{use-mcp-prompts-9ajBzqEl.js → use-mcp-prompts-B4tR_SGm.js} +1 -1
  225. package/dist/client/assets/{use-mcp-tools-DTlqZz4T.js → use-mcp-tools-DfE-BOiB.js} +1 -1
  226. package/dist/client/assets/{use-members-Civ1IUhM.js → use-members-DVfjd1M3.js} +1 -1
  227. package/dist/client/assets/{use-navigate-to-agent-D8VlsMLe.js → use-navigate-to-agent-S-To4kW5.js} +1 -1
  228. package/dist/client/assets/{use-org-auth-client-M8lU8FVO.js → use-org-auth-client-DvTd9eSw.js} +1 -1
  229. package/dist/client/assets/{use-org-notice-D5gXZJLr.js → use-org-notice-BskYN6-R.js} +1 -1
  230. package/dist/client/assets/{use-org-sso-LYhDAOed.js → use-org-sso-DZsIHXB_.js} +1 -1
  231. package/dist/client/assets/{use-organization-roles-DcyFYuL1.js → use-organization-roles-D45T_Abp.js} +1 -1
  232. package/dist/client/assets/{use-organization-settings-Bfxc2_gK.js → use-organization-settings-C0-L_o7G.js} +1 -1
  233. package/dist/client/assets/{use-panel-navigate-BYeq7p5w.js → use-panel-navigate-MkBOnUP9.js} +1 -1
  234. package/dist/client/assets/{use-registry-connections-DjnXhjaU.js → use-registry-connections-CptCzADX.js} +1 -1
  235. package/dist/client/assets/{use-secrets-eQ4xIgIJ.js → use-secrets-BjcoO2jT.js} +1 -1
  236. package/dist/client/assets/{use-section-preview-base-B6meCR-c.js → use-section-preview-base-txV2PKk6.js} +1 -1
  237. package/dist/client/assets/{use-status-sounds-UkEj7H3u.js → use-status-sounds-DhEUawFs.js} +1 -1
  238. package/dist/client/assets/{use-tags-B0uMUfkd.js → use-tags-DqPfa9lk.js} +1 -1
  239. package/dist/client/assets/{use-view-mode-DBUPinV2.js → use-view-mode-Cs6DOhsU.js} +1 -1
  240. package/dist/client/assets/{use-virtual-mcp-Cg1qs7zR.js → use-virtual-mcp-KkwQ7U1_.js} +1 -1
  241. package/dist/client/assets/useInfiniteQuery-DTnA7lQ7.js +1 -0
  242. package/dist/client/assets/useSuspenseInfiniteQuery-B31lgzv6.js +1 -0
  243. package/dist/client/assets/{users-D8LutkfV.js → users-5K4ChBIu.js} +1 -1
  244. package/dist/client/assets/{variant-calendar-Db-_Fy9i.js → variant-calendar-CH-t_mxv.js} +1 -1
  245. package/dist/client/assets/{view-mode-toggle-CoqStA7o.js → view-mode-toggle-Fes_BCGT.js} +1 -1
  246. package/dist/client/index.html +1 -1
  247. package/dist/server/cli.js +251 -251
  248. package/dist/server/server.js +196 -196
  249. package/package.json +1 -1
  250. package/dist/client/assets/api-keys-C7l5OjNV.js +0 -1
  251. package/dist/client/assets/index-BX98OVpd.js +0 -1
  252. package/dist/client/assets/record-editor-BoFP0xFL.js +0 -1
  253. package/dist/client/assets/redirect-editor-DZTM6E3l.js +0 -1
  254. package/dist/client/assets/registry-B3MK34Kk.js +0 -2
  255. package/dist/client/assets/roles-DzNrXEZs.js +0 -1
  256. package/dist/client/assets/settings-layout-D6mzJNvS.js +0 -1
  257. package/dist/client/assets/store-registry-BUq-87q5.js +0 -2
  258. package/dist/client/assets/useInfiniteQuery-BcvMcS30.js +0 -1
  259. package/dist/client/assets/useSuspenseInfiniteQuery-D_McCkNU.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "4.358.5",
3
+ "version": "4.358.6",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{c as o,j as r}from"./index-ClceuAyk.js";import{O as m}from"./api-keys-Dro4J7Ul.js";import{R as p}from"./require-capability-B5XPZW1m.js";import"./AlertCircle-DnecbAPh.js";import"./Copy01-8PINeOv9.js";import"./Key01-B4wEzwfA.js";import"./Plus-CvXXAkh5.js";import"./Trash01-Cbibxhdy.js";import"./alert-dialog-CZ1KENHH.js";import"./dialog-XHYSv2FF.js";import"./input-BnaH3Pwu.js";import"./label-BXG-IHer.js";import"./use-mcp-client-Dw2P7NDf.js";import"./auth-B5sZ5Nku.js";import"./access-gate-CDgve0Y7.js";import"./capability-load-error-BR7ZE3ck.js";function k(){const t=o.c(1);let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(p,{capability:"api-keys:manage",area:"api-keys",children:r.jsx(m,{})}),t[0]=i):i=t[0],i}export{k as default};
@@ -1 +0,0 @@
1
- import{c as ee,j as t,a1 as ss,B as Ie,a2 as ns,a4 as is,l as xt,b as Ae,b8 as dt,b6 as js,b1 as Ps,t as ce,n as bt,r as Z,e as lt,m as ct,K as Ye,bm as vs,bl as ys,bn as Ss,bo as Ns,z as Kt,G as Cs,P as Wt,b5 as Ds}from"./index-ClceuAyk.js";import{n as _t}from"./LinkExternal01-DcDWG6E7.js";import{be as ws,bf as ls,aD as $s,aY as Ls,bg as _s,k as kt,C as Jt,av as Yt,aF as ks}from"./agent-icon-BFmhGO5e.js";import{B as Re}from"./badge-BXckqUEw.js";import{E as Ze}from"./empty-state-DUWesh0y.js";import{u as Es}from"./use-virtual-mcp-Cg1qs7zR.js";import{r as Rs}from"./site-slug-uya6Wp4-.js";import{i as Fs}from"./AlertCircle-DnecbAPh.js";import{d as gt}from"./UserSquare-B9-4LA44.js";import{i as As}from"./Zap-C6djsNj_.js";import{c as as,d as os,b as rs,f as cs,g as ms,e as ds,a as fs,A as us}from"./alert-dialog-CZ1KENHH.js";import{d as zs,a as nt,T as Fe,c as Et,e as Rt,b as Ft}from"./table-BZwt0mq1.js";import{i as hs}from"./ChevronRight-DBtAhTcB.js";import{a as Vs}from"./Copy01-8PINeOv9.js";import{am as Vt,an as Ht,al as Hs}from"./automation-runs-CyDBE23L.js";import{i as At}from"./Globe01-cNyR-aGb.js";import{s as Pt}from"./Plus-CvXXAkh5.js";import{s as vt}from"./Trash01-Cbibxhdy.js";import{c as yt,d as St,e as Nt,b as Ct,D as Dt}from"./dialog-XHYSv2FF.js";import{I as it}from"./input-BnaH3Pwu.js";import{L as Xe}from"./label-BXG-IHer.js";import{i as Bs}from"./Settings02-Bniu9Kuf.js";import{s as Os}from"./Eye-uv0JopIC.js";import{a as Bt,b as Ot,c as ft,d as qt,S as Mt}from"./select-CPovt3xR.js";import{i as qs}from"./ArrowRight-D5xmwFpZ.js";import"./Tool01-hRYJ57AS.js";import"./ArrowUp-Di6V-t98.js";import"./ArrowLeft-DKxrZoHN.js";import"./Tool02-VahAgw3l.js";import"./TrendUp01-BrA1T2pc.js";import"./ZoomOut-BDx7bzVD.js";import"./Users03-BP5hN4tN.js";import"./CheckCircle-CUMJTel7.js";import"./Check-Cz1yJ2Ku.js";import"./ChevronUp-CzD3Q5Ez.js";import"./ChevronSelectorVertical-BWywRn6y.js";import"./DotsVertical-pXN36xDf.js";import"./CreditCard01-DrPWgPgY.js";import"./Download01-ChKDQL-2.js";import"./Share07-Cs5GE4ka.js";import"./GitBranch01-hVNlV4_5.js";import"./XClose-C39TipQ9.js";import"./HardDrive-0QEGAcdt.js";import"./Image01-D8DJyxgN.js";import"./Key01-B4wEzwfA.js";import"./Link01-Dg3Wgdll.js";import"./Monitor01-DKUPqvEt.js";import"./Sun-B5-Zgu6g.js";import"./Package-C2z5N4Ha.js";import"./Palette-B-kHXH8u.js";import"./Play-DO5I4TQw.js";import"./SearchLg-ClCNH8OL.js";import"./SearchMd-BDM79zjM.js";import"./Shield01-Y_WnaKFU.js";import"./Stars01-6JGB8G_o.js";import"./Upload01-DCSoEoPT.js";import"./User01-CMN81VOd.js";import"./Users01-G5gtvFkg.js";import"./XCircle-CAT1mlY1.js";import"./use-mcp-client-Dw2P7NDf.js";import"./auth-B5sZ5Nku.js";import"./useInfiniteQuery-BcvMcS30.js";import"./infiniteQueryObserver-Dl9Qp9QK.js";import"./use-connection-Czuylju7.js";import"./empty-state--1O_g2Vb.js";import"./use-infinite-scroll-D1TiZfg3.js";import"./use-members-Civ1IUhM.js";import"./use-org-auth-client-M8lU8FVO.js";import"./use-automations-J04oXu-B.js";import"./useSuspenseInfiniteQuery-D_McCkNU.js";import"./avatar-DgTZ1wzS.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-DsJQkugr.js";import"./markdown-CaFF2juq.js";import"./use-panel-navigate-BYeq7p5w.js";import"./use-destination-route-C33Wg86r.js";import"./hooks-DPkoA9nj.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-B6oDJj48.js";import"./task-board-ogD6qhBD.js";import"./schema-C6aNLxKf.js";import"./chat-context-DxdDV2c_.js";import"./autosend-Do97LQ4X.js";import"./thread-intent-_gcPeplT.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-C8uOURwM.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DO9n8G8k.js";import"./thread-route-5G3X8NOl.js";import"./use-organization-settings-Bfxc2_gK.js";import"./monaco-editor-B0P4X5oN.js";import"./editor-DL4--PcF.js";import"./mcp-app-renderer-QFINxU6q.js";import"./types-DWPAY_9z.js";import"./shell-layout-BORrXGw4.js";import"./anchors-yqDzZN4K.js";import"./project-icon-CfK-Oy7W.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-CrfbvrPh.js";import"./index-BrNAJ0cO.js";import"./integration-icon-dzOlSD8N.js";import"./required-auth-layout-Dar1s87n.js";import"./use-org-sso-LYhDAOed.js";import"./use-org-notice-D5gXZJLr.js";import"./use-navigate-to-agent-D8VlsMLe.js";import"./use-mcp-prompts-9ajBzqEl.js";import"./form-9R94AgDH.js";import"./file-type-icon-CZuZ3Yie.js";function Lt(r,e){return r.name===e.name&&(r.scope??"runtime")===e.scope}function mt(r,e){if(Array.isArray(r))return r;if(r&&typeof r=="object"){const o=r[e];if(Array.isArray(o))return o}return[]}function zt(r){return r==="deco-deno"?"Deco Deno":r==="deco-tanstack"?"Deco TanStack":r??null}function Ms(r){const e=(r??"").toLowerCase();return e.includes("ready")||e.includes("success")||e.includes("active")?"success":e.includes("fail")||e.includes("error")?"destructive":e.includes("build")||e.includes("pend")||e.includes("progress")?"warning":"secondary"}function Gt(r){if(!r)return"—";const e=new Date(r).getTime();if(Number.isNaN(e))return"—";const o=Math.round((Date.now()-e)/1e3),l=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),a=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[i,c]of a)if(Math.abs(o)>=c)return l.format(-Math.round(o/c),i);return l.format(-o,"second")}function Is(r){if(r==null||!Number.isFinite(r))return"—";if(r<1e3)return`${Math.round(r)}ms`;const e=r/1e3;if(e<60)return`${e.toFixed(e>=10?0:1)}s`;const o=Math.round(e);return`${Math.floor(o/60)}m ${o%60}s`}function jt(r){const e=r instanceof Error?r.message.toLowerCase():"";return e.includes("unauthorized")||e.includes("401")}function rt(r){return r instanceof Error?r.message:String(r)}function Qs(r){const e=r.trim();if(!e)return null;const l=(e.endsWith(".")?e.slice(0,-1):e).split(".");if(l.length<2)return"Domain must include a TLD (e.g., example.com)";if(e.length>253)return"Domain name is too long (max 253 characters)";for(const i of l){if(i.length>63)return`Label "${i}" is too long (max 63 characters)`;if(!/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/i.test(i))return`Label "${i}" has invalid characters or format`}const a=l[l.length-1]??"";return/^[0-9]+$/.test(a)?"Domain must include a valid TLD, not a number":null}function xs(r,e){return r&&typeof r=="object"&&"error"in r?String(r.error):`request failed (${e})`}async function It(r){const e=await fetch(r),o=await e.json().catch(()=>({}));if(!e.ok)throw new Error(xs(o,e.status));return o}async function at(r,e,o){const l=await fetch(r,{method:e,headers:o!==void 0?{"Content-Type":"application/json"}:{},body:o!==void 0?JSON.stringify(o):void 0}),a=await l.json().catch(()=>({}));if(!l.ok)throw new Error(xs(a,l.status));return a}function et(r){const e=ee.c(19);let o,l,a,i,c,m;e[0]!==r?({label:l,tooltipSide:i,variant:c,size:m,children:o,...a}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=a,e[4]=i,e[5]=c,e[6]=m):(o=e[1],l=e[2],a=e[3],i=e[4],c=e[5],m=e[6]);const s=i===void 0?"top":i,n=c===void 0?"ghost":c,h=m===void 0?"icon-sm":m;let g;e[7]!==o||e[8]!==l||e[9]!==a||e[10]!==h||e[11]!==n?(g=t.jsx(ss,{asChild:!0,children:t.jsx(Ie,{"data-slot":"icon-button","aria-label":l,variant:n,size:h,...a,children:o})}),e[7]=o,e[8]=l,e[9]=a,e[10]=h,e[11]=n,e[12]=g):g=e[12];let d;e[13]!==l||e[14]!==s?(d=t.jsx(ns,{side:s,children:l}),e[13]=l,e[14]=s,e[15]=d):d=e[15];let f;return e[16]!==g||e[17]!==d?(f=t.jsxs(is,{children:[g,d]}),e[16]=g,e[17]=d,e[18]=f):f=e[18],f}function ut(r){const e=ee.c(4),{title:o,actions:l,children:a}=r;let i;return e[0]!==l||e[1]!==a||e[2]!==o?(i=t.jsx(Ps,{title:o,actions:l,children:a}),e[0]=l,e[1]=a,e[2]=o,e[3]=i):i=e[3],i}function Qe(r){const e=ee.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("gap-0 overflow-hidden p-0 divide-y divide-border",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx(js,{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function pt(r){const e=ee.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("flex min-h-12 items-center gap-3 px-4 py-2",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx("div",{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function ot(r){const e=ee.c(2),{children:o}=r;let l;return e[0]!==o?(l=t.jsx("p",{className:"px-4 py-6 text-sm text-muted-foreground",children:o}),e[0]=o,e[1]=l):l=e[1],l}function ht(r){const e=ee.c(2),{rows:o}=r,l=o===void 0?3:o;let a;return e[0]!==l?(a=t.jsx(Qe,{children:Array.from({length:l},Us)}),e[0]=l,e[1]=a):a=e[1],a}function Us(r,e){return t.jsxs(pt,{children:[t.jsx(dt,{className:"h-4 w-40"}),t.jsx(dt,{className:"h-4 flex-1"}),t.jsx(dt,{className:"size-7 rounded-lg"})]},e)}function Me(r){const e=ee.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("text-xs font-medium text-muted-foreground",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx(zs,{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function Qt(r){const e=ee.c(12),{open:o,onClick:l}=r,a=Ae();let i;e[0]!==o||e[1]!==a?(i=a(o?"mainPanelTabs.hostingTab.hideDetails":"mainPanelTabs.hostingTab.showDetails"),e[0]=o,e[1]=a,e[2]=i):i=e[2];const c=o&&"rotate-90";let m;e[3]!==c?(m=xt("transition-transform duration-200 motion-reduce:transition-none",c),e[3]=c,e[4]=m):m=e[4];let s;e[5]!==m?(s=t.jsx(hs,{className:m}),e[5]=m,e[6]=s):s=e[6];let n;return e[7]!==l||e[8]!==o||e[9]!==i||e[10]!==s?(n=t.jsx(et,{label:i,size:"icon-sm",className:"-ml-1.5 text-muted-foreground","aria-expanded":o,onClick:l,children:s}),e[7]=l,e[8]=o,e[9]=i,e[10]=s,e[11]=n):n=e[11],n}function Ks(r){const e=ee.c(8),{open:o,colSpan:l,children:a}=r;let i;e[0]!==a?(i=t.jsx(Vt,{children:t.jsx("div",{className:"border-b border-border bg-muted/30 px-4 py-3",children:a})}),e[0]=a,e[1]=i):i=e[1];let c;e[2]!==o||e[3]!==i?(c=t.jsx(Ht,{open:o,children:i}),e[2]=o,e[3]=i,e[4]=c):c=e[4];let m;return e[5]!==l||e[6]!==c?(m=t.jsx(nt,{className:"border-0 hover:bg-transparent",children:t.jsx(Fe,{colSpan:l,className:"p-0 whitespace-normal",children:c})}),e[5]=l,e[6]=c,e[7]=m):m=e[7],m}function gs(r){const e=ee.c(5),{open:o,children:l}=r;let a;e[0]!==l?(a=t.jsx(Vt,{children:t.jsx("div",{className:"border-t border-border bg-muted/30 px-4 py-3",children:l})}),e[0]=l,e[1]=a):a=e[1];let i;return e[2]!==o||e[3]!==a?(i=t.jsx(Ht,{open:o,children:a}),e[2]=o,e[3]=a,e[4]=i):i=e[4],i}function bs(r){const e=ee.c(6),{scope:o}=r,l=Ae(),a=o==="build"?"outline":"secondary";let i;e[0]!==o||e[1]!==l?(i=l(o==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime"),e[0]=o,e[1]=l,e[2]=i):i=e[2];let c;return e[3]!==a||e[4]!==i?(c=t.jsx(Re,{variant:a,children:i}),e[3]=a,e[4]=i,e[5]=c):c=e[5],c}function Ws(r){const e=ee.c(9),{value:o}=r,l=Ae();let a;e[0]!==l?(a=l("mainPanelTabs.hostingTab.dnsCopy"),e[0]=l,e[1]=a):a=e[1];let i;e[2]!==l||e[3]!==o?(i=()=>{if(!navigator.clipboard){ce.error(l("mainPanelTabs.hostingTab.dnsCopyError"));return}navigator.clipboard.writeText(o).then(()=>ce.success(l("mainPanelTabs.hostingTab.dnsCopied")),()=>ce.error(l("mainPanelTabs.hostingTab.dnsCopyError")))},e[2]=l,e[3]=o,e[4]=i):i=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(Vs,{className:"size-3.5"}),e[5]=c):c=e[5];let m;return e[6]!==a||e[7]!==i?(m=t.jsx(et,{label:a,onClick:i,children:c}),e[6]=a,e[7]=i,e[8]=m):m=e[8],m}function wt(r){const e=ee.c(28),{open:o,onOpenChange:l,title:a,description:i,confirmLabel:c,pending:m,onConfirm:s}=r,n=Ae();let h;e[0]!==a?(h=t.jsx(as,{children:a}),e[0]=a,e[1]=h):h=e[1];let g;e[2]!==i?(g=t.jsx(os,{children:i}),e[2]=i,e[3]=g):g=e[3];let d;e[4]!==h||e[5]!==g?(d=t.jsxs(rs,{children:[h,g]}),e[4]=h,e[5]=g,e[6]=d):d=e[6];let f;e[7]!==n?(f=n("mainPanelTabs.hostingTab.cancel"),e[7]=n,e[8]=f):f=e[8];let u;e[9]!==m||e[10]!==f?(u=t.jsx(cs,{disabled:m,children:f}),e[9]=m,e[10]=f,e[11]=u):u=e[11];let b;e[12]!==s?(b=S=>{S.preventDefault(),s()},e[12]=s,e[13]=b):b=e[13];let x;e[14]!==c||e[15]!==m||e[16]!==b?(x=t.jsx(ms,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:b,disabled:m,children:c}),e[14]=c,e[15]=m,e[16]=b,e[17]=x):x=e[17];let N;e[18]!==u||e[19]!==x?(N=t.jsxs(ds,{children:[u,x]}),e[18]=u,e[19]=x,e[20]=N):N=e[20];let C;e[21]!==d||e[22]!==N?(C=t.jsxs(fs,{children:[d,N]}),e[21]=d,e[22]=N,e[23]=C):C=e[23];let P;return e[24]!==l||e[25]!==o||e[26]!==C?(P=t.jsx(us,{open:o,onOpenChange:l,children:C}),e[24]=l,e[25]=o,e[26]=C,e[27]=P):P=e[27],P}const Js=8;function Ys(r){const e=ee.c(54),{base:o,orgSlug:l,site:a}=r,i=Ae(),c=bt(),[m,s]=Z.useState(!1);let n;e[0]!==o?(n=()=>at(`${o}/deploy`,"POST",{mode:"current"}),e[0]=o,e[1]=n):n=e[1];let h;e[2]!==l||e[3]!==c||e[4]!==a||e[5]!==i?(h=()=>{c.invalidateQueries({queryKey:Ye.hostingDeployments(l,a)}),c.invalidateQueries({queryKey:Ye.hostingDeploymentHistory(l,a)}),ce.success(i("mainPanelTabs.hostingTab.toastDeployQueued")),s(!1)},e[2]=l,e[3]=c,e[4]=a,e[5]=i,e[6]=h):h=e[6];let g;e[7]!==n||e[8]!==h?(g={mutationFn:n,onSuccess:h,onError:Gs},e[7]=n,e[8]=h,e[9]=g):g=e[9];const d=lt(g);let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=()=>s(!0),e[10]=f):f=e[10];let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(gt,{}),e[11]=u):u=e[11];let b;e[12]!==d.isPending||e[13]!==i?(b=d.isPending?i("mainPanelTabs.hostingTab.deploying"):i("mainPanelTabs.hostingTab.deploy"),e[12]=d.isPending,e[13]=i,e[14]=b):b=e[14];let x;e[15]!==d.isPending||e[16]!==b?(x=t.jsxs(Ie,{size:"sm",onClick:f,disabled:d.isPending,children:[u,b]}),e[15]=d.isPending,e[16]=b,e[17]=x):x=e[17];let N;e[18]!==i?(N=i("mainPanelTabs.hostingTab.deployConfirmTitle"),e[18]=i,e[19]=N):N=e[19];let C;e[20]!==N?(C=t.jsx(as,{children:N}),e[20]=N,e[21]=C):C=e[21];let P;e[22]!==i?(P=i("mainPanelTabs.hostingTab.deployConfirmDescription"),e[22]=i,e[23]=P):P=e[23];let S;e[24]!==P?(S=t.jsx(os,{children:P}),e[24]=P,e[25]=S):S=e[25];let y;e[26]!==S||e[27]!==C?(y=t.jsxs(rs,{children:[C,S]}),e[26]=S,e[27]=C,e[28]=y):y=e[28];const R=d.isPending;let w;e[29]!==i?(w=i("mainPanelTabs.hostingTab.cancel"),e[29]=i,e[30]=w):w=e[30];let j;e[31]!==d.isPending||e[32]!==w?(j=t.jsx(cs,{disabled:R,children:w}),e[31]=d.isPending,e[32]=w,e[33]=j):j=e[33];let T;e[34]!==d?(T=_=>{_.preventDefault(),d.mutate()},e[34]=d,e[35]=T):T=e[35];const V=d.isPending;let q;e[36]!==i?(q=i("mainPanelTabs.hostingTab.deploy"),e[36]=i,e[37]=q):q=e[37];let F;e[38]!==d.isPending||e[39]!==T||e[40]!==q?(F=t.jsx(ms,{onClick:T,disabled:V,children:q}),e[38]=d.isPending,e[39]=T,e[40]=q,e[41]=F):F=e[41];let v;e[42]!==j||e[43]!==F?(v=t.jsxs(ds,{children:[j,F]}),e[42]=j,e[43]=F,e[44]=v):v=e[44];let H;e[45]!==y||e[46]!==v?(H=t.jsxs(fs,{children:[y,v]}),e[45]=y,e[46]=v,e[47]=H):H=e[47];let A;e[48]!==m||e[49]!==H?(A=t.jsx(us,{open:m,onOpenChange:s,children:H}),e[48]=m,e[49]=H,e[50]=A):A=e[50];let Q;return e[51]!==A||e[52]!==x?(Q=t.jsxs(t.Fragment,{children:[x,A]}),e[51]=A,e[52]=x,e[53]=Q):Q=e[53],Q}function Gs(r){return ce.error(rt(r))}function Xs(r,e){const o=(r??"").toLowerCase();return o.includes("rollback")?t.jsxs(Re,{variant:"warning",children:[t.jsx(Ls,{}),e("mainPanelTabs.hostingTab.actionRollback")]}):o.includes("redeploy")?t.jsxs(Re,{variant:"secondary",children:[t.jsx(_s,{}),e("mainPanelTabs.hostingTab.actionRedeploy")]}):t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),e("mainPanelTabs.hostingTab.actionDeploy")]})}function Zs(r,e,o){const l=(r??"").toLowerCase();return l==="build"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(ls,{}),o("mainPanelTabs.hostingTab.typeBuild")]}):l==="fast-deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(As,{}),o("mainPanelTabs.hostingTab.typeFastDeploy")]}):l==="deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),o("mainPanelTabs.hostingTab.typeDeploy")]}):Xs(e,o)}function en(r,e){const o=(r??"").toLowerCase();return o==="success"?t.jsx(Re,{variant:"success",children:e("mainPanelTabs.hostingTab.outcomeSuccess")}):o==="failure"?t.jsx(Re,{variant:"destructive",children:e("mainPanelTabs.hostingTab.outcomeFailure")}):o==="pending"?t.jsxs(Re,{variant:"secondary",children:[t.jsx($s,{}),e("mainPanelTabs.hostingTab.outcomePending")]}):null}function Xt(r){const e=ee.c(7),{commit:o,onClick:l}=r,a=Ae();let i;e[0]!==a?(i=a("mainPanelTabs.hostingTab.buildLogs"),e[0]=a,e[1]=i):i=e[1];const c=!o;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(ls,{}),e[2]=m):m=e[2];let s;return e[3]!==l||e[4]!==i||e[5]!==c?(s=t.jsx(et,{label:i,onClick:l,disabled:c,children:m}),e[3]=l,e[4]=i,e[5]=c,e[6]=s):s=e[6],s}function tn(r){const e=ee.c(37),{base:o,orgSlug:l,site:a,target:i,onOpenChange:c}=r,m=Ae(),s=i!=null,n=i?.commit??"",h=i?.env??"";let g;e[0]!==n||e[1]!==h||e[2]!==l||e[3]!==a?(g=Ye.hostingBuildLogs(l,a,n,h),e[0]=n,e[1]=h,e[2]=l,e[3]=a,e[4]=g):g=e[4];let d;e[5]!==o||e[6]!==n||e[7]!==h?(d=()=>It(`${o}/deployments/logs?commit=${encodeURIComponent(n)}&env=${encodeURIComponent(h)}`),e[5]=o,e[6]=n,e[7]=h,e[8]=d):d=e[8];const f=s&&!!n;let u;e[9]!==g||e[10]!==d||e[11]!==f?(u={queryKey:g,queryFn:d,enabled:f,retry:!1,staleTime:0,gcTime:0,refetchOnMount:"always"},e[9]=g,e[10]=d,e[11]=f,e[12]=u):u=e[12];const b=ct(u),x=b.data;let N;e[13]!==m?(N=m("mainPanelTabs.hostingTab.buildLogsTitle"),e[13]=m,e[14]=N):N=e[14];let C;e[15]!==N?(C=t.jsx(vs,{children:N}),e[15]=N,e[16]=C):C=e[16];let P;e[17]!==n||e[18]!==m?(P=m("mainPanelTabs.hostingTab.buildLogsCommit",{commit:n.slice(0,7)}),e[17]=n,e[18]=m,e[19]=P):P=e[19];let S;e[20]!==P?(S=t.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:P}),e[20]=P,e[21]=S):S=e[21];let y;e[22]!==C||e[23]!==S?(y=t.jsxs(ys,{className:"shrink-0 border-b border-border px-5 py-5 md:px-6",children:[C,S]}),e[22]=C,e[23]=S,e[24]=y):y=e[24];let R;e[25]!==x||e[26]!==b.error||e[27]!==b.isLoading||e[28]!==m?(R=t.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 py-5 md:px-6",children:jt(b.error)?t.jsx(Ze,{icon:t.jsx(kt,{className:"size-5"}),title:m("mainPanelTabs.hostingTab.notConnectedTitle"),description:m("mainPanelTabs.hostingTab.notConnectedDescription")}):b.isLoading?t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx(dt,{className:"h-4 w-full"}),t.jsx(dt,{className:"h-4 w-full"}),t.jsx(dt,{className:"h-4 w-2/3"})]}):b.error?t.jsx(ot,{children:m("mainPanelTabs.hostingTab.buildLogsError")}):x&&x.configured===!1?t.jsxs("div",{className:"flex flex-col items-center gap-2 rounded-lg border border-border bg-muted/30 px-4 py-8 text-center",children:[t.jsx(Fs,{className:"size-5 text-muted-foreground"}),t.jsx("p",{className:"text-sm font-medium text-foreground",children:m("mainPanelTabs.hostingTab.buildLogsNotWiredTitle")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:x.reason??m("mainPanelTabs.hostingTab.buildLogsNotWiredDescription")})]}):x?.text?t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("pre",{className:"overflow-auto font-mono text-[11px] leading-relaxed text-foreground/80 whitespace-pre-wrap break-words",children:x.text}),x.truncated&&t.jsx("p",{className:"text-xs text-warning",children:m("mainPanelTabs.hostingTab.buildLogsTruncated")}),x.url&&t.jsxs("a",{href:x.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-xs text-primary hover:underline",children:[t.jsx(_t,{className:"size-3.5"}),m("mainPanelTabs.hostingTab.buildLogsOpenFull")]})]}):x?.url?t.jsxs("a",{href:x.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-sm text-primary hover:underline",children:[t.jsx(_t,{className:"size-4"}),m("mainPanelTabs.hostingTab.buildLogsOpenFull")]}):t.jsx(ot,{children:m("mainPanelTabs.hostingTab.buildLogsEmpty")})}),e[25]=x,e[26]=b.error,e[27]=b.isLoading,e[28]=m,e[29]=R):R=e[29];let w;e[30]!==R||e[31]!==y?(w=t.jsxs(Ss,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:[y,R]}),e[30]=R,e[31]=y,e[32]=w):w=e[32];let j;return e[33]!==c||e[34]!==s||e[35]!==w?(j=t.jsx(Ns,{open:s,onOpenChange:c,children:w}),e[33]=c,e[34]=s,e[35]=w,e[36]=j):j=e[36],j}function sn(r){const e=ee.c(52),{base:o,orgSlug:l,site:a,enabled:i,deployments:c,isLoading:m,error:s}=r,n=Ae(),[h,g]=Z.useState(null),[d,f]=Z.useState(Js),[u,b]=Z.useState(null);let x;e[0]!==l||e[1]!==a?(x=Ye.hostingDeploymentHistory(l,a),e[0]=l,e[1]=a,e[2]=x):x=e[2];let N;e[3]!==o?(N=()=>It(`${o}/deployments/history?limit=50`),e[3]=o,e[4]=N):N=e[4];let C;e[5]!==i||e[6]!==x||e[7]!==N?(C={queryKey:x,queryFn:N,enabled:i,retry:!1,staleTime:3e4},e[5]=i,e[6]=x,e[7]=N,e[8]=C):C=e[8];const P=ct(C);let S,y,R,w;if(e[9]!==c||e[10]!==s||e[11]!==h||e[12]!==d||e[13]!==P.data||e[14]!==P.error||e[15]!==P.isLoading||e[16]!==m||e[17]!==n){const F=mt(P.data,"items"),v=F.slice(0,d),H=F.length-v.length;let A;e[22]!==c?(A=c.find(an)?.commitSha??c.find(ln)?.commitSha??null,e[22]=c,e[23]=A):A=e[23];const Q=A;let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=(p,I)=>{p&&b({commit:p,env:I??"production"})},e[24]=_):_=e[24];const W=_;let J;e[25]!==n?(J=n("mainPanelTabs.hostingTab.deployments"),e[25]=n,e[26]=J):J=e[26];let U;e[27]!==c||e[28]!==s||e[29]!==h||e[30]!==m||e[31]!==n?(U=m?t.jsx(ht,{}):s?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deploymentsError")})}):c.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(gt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDeployments"),className:"py-10"})}):t.jsxs(Et,{children:[t.jsx(Rt,{children:t.jsxs(nt,{children:[t.jsx(Me,{className:"pl-4",children:n("mainPanelTabs.hostingTab.colCommit")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colStatus")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colFramework")}),t.jsx(Me,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDuration")}),t.jsx(Me,{className:"text-right",children:n("mainPanelTabs.hostingTab.colUpdated")}),t.jsx(Me,{className:"w-[1%]"})]})}),t.jsx(Ft,{children:c.map(p=>{const I=!!p.buildMessage,Y=h===p.id;return t.jsxs(Z.Fragment,{children:[t.jsxs(nt,{className:xt(I&&"cursor-pointer hover:bg-muted/40"),onClick:I?()=>g(Y?null:p.id):void 0,children:[t.jsx(Fe,{className:"px-4",children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[I?t.jsx(Qt,{open:Y,onClick:()=>g(Y?null:p.id)}):t.jsx(ws,{className:"size-4 text-muted-foreground/60"}),t.jsx("span",{className:"font-mono text-xs",children:p.shortCommit??p.commitSha?.slice(0,7)??"—"}),p.production===!0&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.production")})]})}),t.jsx(Fe,{children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Re,{variant:Ms(p.phase),children:p.phase??"—"}),p.up===!0&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(p.framework)??"—"}),t.jsx(Fe,{className:"text-right font-mono text-xs text-muted-foreground tabular-nums",children:Is(p.durationMs)}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Gt(p.finishedAt??p.startedAt??p.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",onClick:nn,children:t.jsx(Xt,{commit:p.commitSha,onClick:()=>W(p.commitSha,p.env)})})]}),I&&t.jsx(Ks,{open:Y,colSpan:6,children:t.jsx("p",{className:"whitespace-pre-wrap break-words font-mono text-xs text-muted-foreground",children:p.buildMessage})})]},p.id)})})]}),e[27]=c,e[28]=s,e[29]=h,e[30]=m,e[31]=n,e[32]=U):U=e[32],e[33]!==U||e[34]!==J?(w=t.jsx(ut,{title:J,children:U}),e[33]=U,e[34]=J,e[35]=w):w=e[35],S=ut,e[36]!==n?(y=n("mainPanelTabs.hostingTab.deployHistory"),e[36]=n,e[37]=y):y=e[37],R=P.isLoading?t.jsx(ht,{}):P.error?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deployHistoryError")})}):F.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(gt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDeployHistory"),className:"py-10"})}):t.jsxs(Et,{children:[t.jsx(Rt,{children:t.jsxs(nt,{children:[t.jsx(Me,{className:"pl-4",children:n("mainPanelTabs.hostingTab.colAction")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colStatus")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colCommit")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colFramework")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colActor")}),t.jsx(Me,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDate")}),t.jsx(Me,{className:"w-[1%]"})]})}),t.jsxs(Ft,{children:[v.map(p=>{const I=!!Q&&p.commitSha===Q;return t.jsxs(nt,{children:[t.jsx(Fe,{className:"pl-4",children:Zs(p.type,p.action,n)}),t.jsx(Fe,{children:en(p.outcome,n)}),t.jsx(Fe,{children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"font-mono text-xs",children:p.commitSha?.slice(0,7)??"—"}),I&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(p.framework)??"—"}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:p.actor??"—"}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Gt(p.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",children:t.jsx(Xt,{commit:p.commitSha,onClick:()=>W(p.commitSha,p.env)})})]},p.id)}),H>0&&t.jsx(nt,{className:"hover:bg-transparent",children:t.jsx(Fe,{colSpan:7,className:"p-2 text-center",children:t.jsx(Ie,{variant:"ghost",size:"sm",onClick:()=>f(F.length),children:n("mainPanelTabs.hostingTab.showMoreHistory",{count:String(H)})})})})]})]}),e[9]=c,e[10]=s,e[11]=h,e[12]=d,e[13]=P.data,e[14]=P.error,e[15]=P.isLoading,e[16]=m,e[17]=n,e[18]=S,e[19]=y,e[20]=R,e[21]=w}else S=e[18],y=e[19],R=e[20],w=e[21];let j;e[38]!==S||e[39]!==y||e[40]!==R?(j=t.jsx(S,{title:y,children:R}),e[38]=S,e[39]=y,e[40]=R,e[41]=j):j=e[41];let T;e[42]===Symbol.for("react.memo_cache_sentinel")?(T=F=>{F||b(null)},e[42]=T):T=e[42];let V;e[43]!==o||e[44]!==u||e[45]!==l||e[46]!==a?(V=t.jsx(tn,{base:o,orgSlug:l,site:a,target:u,onOpenChange:T}),e[43]=o,e[44]=u,e[45]=l,e[46]=a,e[47]=V):V=e[47];let q;return e[48]!==w||e[49]!==j||e[50]!==V?(q=t.jsxs(t.Fragment,{children:[w,j,V]}),e[48]=w,e[49]=j,e[50]=V,e[51]=q):q=e[51],q}function nn(r){return r.stopPropagation()}function ln(r){return r.production===!0&&r.up}function an(r){return r.up===!0}const on=["16.148.147.194","52.32.122.94","52.35.156.199"];function rn(r){return r.replace(/\.$/,"").split(".").filter(Boolean).length===2}function Zt(r){const e=r.trim();return e.length>0&&!e.startsWith("/")&&e.includes(".")}function ps(r){const e=ee.c(24),{records:o}=r,l=Ae();let a;e[0]!==l?(a=l("mainPanelTabs.hostingTab.dnsColType"),e[0]=l,e[1]=a):a=e[1];let i;e[2]!==a?(i=t.jsx(Me,{className:"w-16",children:a}),e[2]=a,e[3]=i):i=e[3];let c;e[4]!==l?(c=l("mainPanelTabs.hostingTab.dnsColName"),e[4]=l,e[5]=c):c=e[5];let m;e[6]!==c?(m=t.jsx(Me,{children:c}),e[6]=c,e[7]=m):m=e[7];let s;e[8]!==l?(s=l("mainPanelTabs.hostingTab.dnsColValue"),e[8]=l,e[9]=s):s=e[9];let n;e[10]!==s?(n=t.jsx(Me,{children:s}),e[10]=s,e[11]=n):n=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(Me,{className:"w-10"}),e[12]=h):h=e[12];let g;e[13]!==i||e[14]!==m||e[15]!==n?(g=t.jsx(Rt,{children:t.jsxs(nt,{children:[i,m,n,h]})}),e[13]=i,e[14]=m,e[15]=n,e[16]=g):g=e[16];let d;e[17]!==o?(d=o.map(cn),e[17]=o,e[18]=d):d=e[18];let f;e[19]!==d?(f=t.jsx(Ft,{children:d}),e[19]=d,e[20]=f):f=e[20];let u;return e[21]!==f||e[22]!==g?(u=t.jsxs(Et,{className:"table-fixed",children:[g,f]}),e[21]=f,e[22]=g,e[23]=u):u=e[23],u}function cn(r){return t.jsxs(nt,{children:[t.jsx(Fe,{className:"font-mono text-xs",children:r.type}),t.jsx(Fe,{className:"break-all whitespace-normal font-mono text-xs",children:r.name}),t.jsx(Fe,{className:"break-all whitespace-normal font-mono text-xs text-muted-foreground",children:r.value}),t.jsx(Fe,{className:"text-right",children:t.jsx(Ws,{value:r.value})})]},`${r.type}-${r.name}-${r.value}`)}function Ts(r){const e=ee.c(14),{status:o,children:l}=r,a=Ae();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(At,{className:"size-4 text-muted-foreground"}),e[0]=i):i=e[0];let c;e[1]!==a?(c=a("mainPanelTabs.hostingTab.dnsSetupTitle"),e[1]=a,e[2]=c):c=e[2];let m;e[3]!==c?(m=t.jsx("span",{className:"text-sm font-medium",children:c}),e[3]=c,e[4]=m):m=e[4];let s;e[5]!==o||e[6]!==a?(s=o&&t.jsx(Re,{variant:o.active?"success":"outline",className:"ml-auto",children:o.active?a("mainPanelTabs.hostingTab.dnsActive"):a("mainPanelTabs.hostingTab.dnsAwaiting")}),e[5]=o,e[6]=a,e[7]=s):s=e[7];let n;e[8]!==m||e[9]!==s?(n=t.jsxs("div",{className:"flex items-center gap-2",children:[i,m,s]}),e[8]=m,e[9]=s,e[10]=n):n=e[10];let h;return e[11]!==l||e[12]!==n?(h=t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[n,l]}),e[11]=l,e[12]=n,e[13]=h):h=e[13],h}function es(r){const e=ee.c(21),{from:o,source:l}=r,a=Ae();let i,c,m,s,n;if(e[0]!==o||e[1]!==l||e[2]!==a){const d=o.trim().replace(/\.$/,""),f=d?rn(d)?"@":d:"@",u=l==="both";c=Ts,e[8]!==u?(s={active:u},e[8]=u,e[9]=s):s=e[9];let b;e[10]!==u||e[11]!==a?(b=a(u?"mainPanelTabs.hostingTab.dnsActiveHint":"mainPanelTabs.hostingTab.dnsAwaitingHint"),e[10]=u,e[11]=a,e[12]=b):b=e[12],n=t.jsxs("p",{className:"text-xs text-muted-foreground",children:[a("mainPanelTabs.hostingTab.dnsRedirectIntent",{from:d||"—"})," ",b]}),i=ps,m=on.map(x=>({type:"A",name:f,value:x})),e[0]=o,e[1]=l,e[2]=a,e[3]=i,e[4]=c,e[5]=m,e[6]=s,e[7]=n}else i=e[3],c=e[4],m=e[5],s=e[6],n=e[7];let h;e[13]!==i||e[14]!==m?(h=t.jsx(i,{records:m}),e[13]=i,e[14]=m,e[15]=h):h=e[15];let g;return e[16]!==c||e[17]!==s||e[18]!==n||e[19]!==h?(g=t.jsxs(c,{status:s,children:[n,h]}),e[16]=c,e[17]=s,e[18]=n,e[19]=h,e[20]=g):g=e[20],g}function ts(r){const e=ee.c(2),{records:o}=r;if(o.length===0)return null;let l;return e[0]!==o?(l=t.jsx(Ts,{children:t.jsx(ps,{records:o})}),e[0]=o,e[1]=l):l=e[1],l}function mn(r){const e=ee.c(16),{domain:o}=r,l=Ae(),a=o.status??"pending";let i;e[0]!==a||e[1]!==l?(i=l(a==="active"?"mainPanelTabs.hostingTab.statusActive":a==="action-required"?"mainPanelTabs.hostingTab.statusActionRequired":"mainPanelTabs.hostingTab.statusPending"),e[0]=a,e[1]=l,e[2]=i):i=e[2];const c=i;let m;e[3]!==o.detail||e[4]!==l?(m=o.detail==="zone-not-onboarded"?l("mainPanelTabs.hostingTab.detailZoneNotOnboarded"):void 0,e[3]=o.detail,e[4]=l,e[5]=m):m=e[5];const s=m,n=a==="active"?"success":a==="action-required"?"warning":"outline";let h;e[6]!==c||e[7]!==n?(h=t.jsx(Re,{variant:n,children:c}),e[6]=c,e[7]=n,e[8]=h):h=e[8];const g=h;if(!s)return g;let d;e[9]!==g?(d=t.jsx(ss,{asChild:!0,children:g}),e[9]=g,e[10]=d):d=e[10];let f;e[11]!==s?(f=t.jsx(ns,{className:"max-w-xs",children:s}),e[11]=s,e[12]=f):f=e[12];let u;return e[13]!==d||e[14]!==f?(u=t.jsxs(is,{children:[d,f]}),e[13]=d,e[14]=f,e[15]=u):u=e[15],u}function dn(r){const e=ee.c(121),{base:o,orgSlug:l,site:a,domains:i,dnsTemplate:c,isLoading:m,error:s}=r,n=Ae(),h=bt(),[g,d]=Z.useState(!1),[f,u]=Z.useState(""),[b,x]=Z.useState(null),[N,C]=Z.useState(null);let P;e[0]!==l||e[1]!==h||e[2]!==a?(P=()=>h.invalidateQueries({queryKey:Ye.hostingDomains(l,a)}),e[0]=l,e[1]=h,e[2]=a,e[3]=P):P=e[3];const S=P;let y;e[4]!==o?(y=$=>at(`${o}/domains`,"PUT",$),e[4]=o,e[5]=y):y=e[5];let R;e[6]!==S||e[7]!==n?(R=()=>{S(),ce.success(n("mainPanelTabs.hostingTab.toastDomainSaved")),d(!1)},e[6]=S,e[7]=n,e[8]=R):R=e[8];let w;e[9]!==y||e[10]!==R?(w={mutationFn:y,onSuccess:R,onError:un},e[9]=y,e[10]=R,e[11]=w):w=e[11];const j=lt(w);let T;e[12]!==o?(T=$=>at(`${o}/domains/${encodeURIComponent($)}`,"DELETE"),e[12]=o,e[13]=T):T=e[13];let V;e[14]!==S||e[15]!==n?(V=()=>{S(),ce.success(n("mainPanelTabs.hostingTab.toastDomainDeleted")),x(null)},e[14]=S,e[15]=n,e[16]=V):V=e[16];let q;e[17]!==T||e[18]!==V?(q={mutationFn:T,onSuccess:V,onError:fn},e[17]=T,e[18]=V,e[19]=q):q=e[19];const F=lt(q);let v;e[20]!==f||e[21]!==j||e[22]!==n?(v=()=>{const $=f.trim().toLowerCase();if(!$){ce.error(n("mainPanelTabs.hostingTab.errorDomainHostRequired"));return}const se=Qs($);if(se){ce.error(se);return}j.mutate({host:$})},e[20]=f,e[21]=j,e[22]=n,e[23]=v):v=e[23];const H=v;let A;if(e[24]!==c||e[25]!==f){let $;e[27]!==f?($=se=>({...se,name:f.trim().toLowerCase()||se.name}),e[27]=f,e[28]=$):$=e[28],A=c.map($),e[24]=c,e[25]=f,e[26]=A}else A=e[26];const Q=A;let _,W;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{u(""),d(!0)},W=t.jsx(Pt,{}),e[29]=_,e[30]=W):(_=e[29],W=e[30]);let J;e[31]!==n?(J=n("mainPanelTabs.hostingTab.addDomain"),e[31]=n,e[32]=J):J=e[32];let U;e[33]!==J?(U=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:_,children:[W,J]}),e[33]=J,e[34]=U):U=e[34];const p=U;let I;e[35]!==n?(I=n("mainPanelTabs.hostingTab.domains"),e[35]=n,e[36]=I):I=e[36];const Y=i.length>0?p:void 0;let D;e[37]!==p||e[38]!==F.isPending||e[39]!==N||e[40]!==i||e[41]!==s||e[42]!==m||e[43]!==n?(D=m?t.jsx(ht,{}):s?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.domainsError")})}):i.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(At,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDomains"),className:"py-10",buttonComponent:p})}):t.jsx(Qe,{children:i.map(($,se)=>{const Se=!$.canonical&&($.dns?.length??0)>0,je=N===$.host;return t.jsxs("div",{children:[t.jsxs(pt,{children:[Se?t.jsx(Qt,{open:je,onClick:()=>C(je?null:$.host)}):t.jsx(At,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[t.jsx("span",{className:"truncate font-mono text-xs",children:$.host}),$.canonical&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.canonical")})]}),t.jsx(mn,{domain:$}),!$.canonical&&t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteDomain"),onClick:()=>x($.host),disabled:F.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]}),Se&&t.jsx(gs,{open:je,children:t.jsx(ts,{records:$.dns??[]})})]},`${$.host}-${se}`)})}),e[37]=p,e[38]=F.isPending,e[39]=N,e[40]=i,e[41]=s,e[42]=m,e[43]=n,e[44]=D):D=e[44];let G;e[45]!==n?(G=n("mainPanelTabs.hostingTab.addDomainTitle"),e[45]=n,e[46]=G):G=e[46];let O;e[47]!==G?(O=t.jsx(yt,{children:t.jsx(St,{children:G})}),e[47]=G,e[48]=O):O=e[48];let k;e[49]!==H?(k=$=>{$.preventDefault(),H()},e[49]=H,e[50]=k):k=e[50];let E;e[51]!==n?(E=n("mainPanelTabs.hostingTab.colHost"),e[51]=n,e[52]=E):E=e[52];let B;e[53]!==E?(B=t.jsx(Xe,{htmlFor:"domain-host",children:E}),e[53]=E,e[54]=B):B=e[54];let X;e[55]!==n?(X=n("mainPanelTabs.hostingTab.domainHostPlaceholder"),e[55]=n,e[56]=X):X=e[56];let te;e[57]===Symbol.for("react.memo_cache_sentinel")?(te=$=>u($.target.value),e[57]=te):te=e[57];let K;e[58]!==f||e[59]!==j.isPending||e[60]!==X?(K=t.jsx(it,{id:"domain-host",placeholder:X,value:f,onChange:te,className:"font-mono text-xs",autoComplete:"off",disabled:j.isPending}),e[58]=f,e[59]=j.isPending,e[60]=X,e[61]=K):K=e[61];let ne;e[62]!==B||e[63]!==K?(ne=t.jsxs("div",{className:"flex flex-col gap-2",children:[B,K]}),e[62]=B,e[63]=K,e[64]=ne):ne=e[64];let ie;e[65]!==f||e[66]!==Q?(ie=f.trim()&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ts,{records:Q})}),e[65]=f,e[66]=Q,e[67]=ie):ie=e[67];let Pe;e[68]===Symbol.for("react.memo_cache_sentinel")?(Pe=()=>d(!1),e[68]=Pe):Pe=e[68];const Ce=j.isPending;let me;e[69]!==n?(me=n("mainPanelTabs.hostingTab.cancel"),e[69]=n,e[70]=me):me=e[70];let pe;e[71]!==j.isPending||e[72]!==me?(pe=t.jsx(Ie,{variant:"outline",type:"button",onClick:Pe,disabled:Ce,children:me}),e[71]=j.isPending,e[72]=me,e[73]=pe):pe=e[73];let le;e[74]!==f||e[75]!==j.isPending?(le=j.isPending||!f.trim(),e[74]=f,e[75]=j.isPending,e[76]=le):le=e[76];let ae;e[77]!==j.isPending||e[78]!==n?(ae=j.isPending?n("mainPanelTabs.hostingTab.saving"):n("mainPanelTabs.hostingTab.save"),e[77]=j.isPending,e[78]=n,e[79]=ae):ae=e[79];let de;e[80]!==le||e[81]!==ae?(de=t.jsx(Ie,{type:"submit",disabled:le,children:ae}),e[80]=le,e[81]=ae,e[82]=de):de=e[82];let De;e[83]!==pe||e[84]!==de?(De=t.jsxs(Nt,{children:[pe,de]}),e[83]=pe,e[84]=de,e[85]=De):De=e[85];let fe;e[86]!==k||e[87]!==ne||e[88]!==ie||e[89]!==De?(fe=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:k,children:[ne,ie,De]}),e[86]=k,e[87]=ne,e[88]=ie,e[89]=De,e[90]=fe):fe=e[90];let ue;e[91]!==O||e[92]!==fe?(ue=t.jsxs(Ct,{className:"sm:max-w-md",children:[O,fe]}),e[91]=O,e[92]=fe,e[93]=ue):ue=e[93];let oe;e[94]!==g||e[95]!==ue?(oe=t.jsx(Dt,{open:g,onOpenChange:d,children:ue}),e[94]=g,e[95]=ue,e[96]=oe):oe=e[96];const Te=b!=null;let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=$=>{$||x(null)},e[97]=he):he=e[97];let xe;e[98]!==n?(xe=n("mainPanelTabs.hostingTab.confirmDeleteDomainTitle"),e[98]=n,e[99]=xe):xe=e[99];const ve=b??"";let ye;e[100]!==n||e[101]!==ve?(ye=n("mainPanelTabs.hostingTab.confirmDeleteDomainDescription",{host:ve}),e[100]=n,e[101]=ve,e[102]=ye):ye=e[102];let ge;e[103]!==n?(ge=n("mainPanelTabs.hostingTab.deleteDomain"),e[103]=n,e[104]=ge):ge=e[104];let re;e[105]!==F||e[106]!==b?(re=()=>{b&&F.mutate(b)},e[105]=F,e[106]=b,e[107]=re):re=e[107];let be;e[108]!==F.isPending||e[109]!==Te||e[110]!==xe||e[111]!==ye||e[112]!==ge||e[113]!==re?(be=t.jsx(wt,{open:Te,onOpenChange:he,title:xe,description:ye,confirmLabel:ge,pending:F.isPending,onConfirm:re}),e[108]=F.isPending,e[109]=Te,e[110]=xe,e[111]=ye,e[112]=ge,e[113]=re,e[114]=be):be=e[114];let we;return e[115]!==I||e[116]!==Y||e[117]!==D||e[118]!==oe||e[119]!==be?(we=t.jsxs(ut,{title:I,actions:Y,children:[D,oe,be]}),e[115]=I,e[116]=Y,e[117]=D,e[118]=oe,e[119]=be,e[120]=we):we=e[120],we}function fn(r){return ce.error(rt(r))}function un(r){return ce.error(rt(r))}function hn(r){const e=ee.c(24),{value:o,onChange:l,disabled:a,className:i}=r,c=Ae();let m;e[0]!==l?(m=N=>l(N==="build"?"build":"runtime"),e[0]=l,e[1]=m):m=e[1];let s;e[2]!==i?(s=xt("h-8",i),e[2]=i,e[3]=s):s=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Bt,{}),e[4]=n):n=e[4];let h;e[5]!==s?(h=t.jsx(Ot,{className:s,children:n}),e[5]=s,e[6]=h):h=e[6];let g;e[7]!==c?(g=c("mainPanelTabs.hostingTab.secretScopeRuntime"),e[7]=c,e[8]=g):g=e[8];let d;e[9]!==g?(d=t.jsx(ft,{value:"runtime",children:g}),e[9]=g,e[10]=d):d=e[10];let f;e[11]!==c?(f=c("mainPanelTabs.hostingTab.secretScopeBuild"),e[11]=c,e[12]=f):f=e[12];let u;e[13]!==f?(u=t.jsx(ft,{value:"build",children:f}),e[13]=f,e[14]=u):u=e[14];let b;e[15]!==d||e[16]!==u?(b=t.jsxs(qt,{children:[d,u]}),e[15]=d,e[16]=u,e[17]=b):b=e[17];let x;return e[18]!==a||e[19]!==m||e[20]!==h||e[21]!==b||e[22]!==o?(x=t.jsxs(Mt,{value:o,onValueChange:m,disabled:a,children:[h,b]}),e[18]=a,e[19]=m,e[20]=h,e[21]=b,e[22]=o,e[23]=x):x=e[23],x}function xn(r){const e=ee.c(151),{base:o,orgSlug:l,site:a,envVars:i,codeVars:c,isLoading:m,error:s}=r,n=Ae(),h=bt(),[g,d]=Z.useState(!1),[f,u]=Z.useState(""),[b,x]=Z.useState(""),[N,C]=Z.useState("runtime"),[P,S]=Z.useState(null),[y,R]=Z.useState(""),[w,j]=Z.useState(null);let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T=new Set,e[0]=T):T=e[0];const[V,q]=Z.useState(T);let F;e[1]===Symbol.for("react.memo_cache_sentinel")?(F=L=>{q(Ne=>{const We=new Set(Ne);return We.has(L)?We.delete(L):We.add(L),We})},e[1]=F):F=e[1];const v=F;let H;e[2]!==o?(H=L=>at(`${o}/env`,"PUT",{vars:L}),e[2]=o,e[3]=H):H=e[3];let A;e[4]!==l||e[5]!==h||e[6]!==a||e[7]!==n?(A=()=>{h.invalidateQueries({queryKey:Ye.hostingEnv(l,a)}),ce.success(n("mainPanelTabs.hostingTab.toastEnvSaved"))},e[4]=l,e[5]=h,e[6]=a,e[7]=n,e[8]=A):A=e[8];let Q;e[9]!==H||e[10]!==A?(Q={mutationFn:H,onSuccess:A,onError:bn},e[9]=H,e[10]=A,e[11]=Q):Q=e[11];const _=lt(Q);let W;e[12]!==f||e[13]!==N||e[14]!==b||e[15]!==_||e[16]!==i||e[17]!==n?(W=()=>{const L=f.trim();if(!L){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameRequired"));return}if(i.some(Ne=>Lt(Ne,{name:L,scope:N}))){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameDuplicate"));return}_.mutate([...i,{name:L,value:b,scope:N}],{onSuccess:()=>{d(!1),u(""),x(""),C("runtime")}})},e[12]=f,e[13]=N,e[14]=b,e[15]=_,e[16]=i,e[17]=n,e[18]=W):W=e[18];const J=W;let U;e[19]!==y||e[20]!==_||e[21]!==i?(U=L=>{_.mutate(i.map(Ne=>Lt(Ne,L)?{name:L.name,value:y,scope:L.scope}:Ne),{onSuccess:()=>S(null)})},e[19]=y,e[20]=_,e[21]=i,e[22]=U):U=e[22];const p=U;let I;e[23]!==w||e[24]!==_||e[25]!==i?(I=()=>{w&&_.mutate(i.filter(L=>!Lt(L,w)),{onSuccess:()=>j(null)})},e[23]=w,e[24]=_,e[25]=i,e[26]=I):I=e[26];const Y=I,D=_.isPending;let G;e[27]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{u(""),x(""),C("runtime")},e[27]=G):G=e[27];const O=G;let k,E;e[28]===Symbol.for("react.memo_cache_sentinel")?(k=()=>d(!0),E=t.jsx(Pt,{}),e[28]=k,e[29]=E):(k=e[28],E=e[29]);let B;e[30]!==n?(B=n("mainPanelTabs.hostingTab.addVariable"),e[30]=n,e[31]=B):B=e[31];let X;e[32]!==B?(X=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:k,children:[E,B]}),e[32]=B,e[33]=X):X=e[33];const te=X;let K;e[34]!==n?(K=n("mainPanelTabs.hostingTab.env"),e[34]=n,e[35]=K):K=e[35];const ne=i.length>0||c.length>0?te:void 0;let ie;e[36]!==te||e[37]!==c||e[38]!==y||e[39]!==P?.name||e[40]!==P?.scope||e[41]!==i||e[42]!==s||e[43]!==p||e[44]!==m||e[45]!==D||e[46]!==V||e[47]!==n?(ie=m?t.jsx(ht,{}):s?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.envError")})}):i.length===0&&c.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(Jt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noEnv"),className:"py-10",buttonComponent:te})}):t.jsxs(Qe,{children:[i.map(L=>{const Ne=L.scope==="build"?"build":"runtime",We=`${L.name}:${Ne}`,tt=P?.name===L.name&&P?.scope===Ne,st=V.has(We);return t.jsxs(pt,{children:[t.jsxs("div",{className:"flex min-w-0 flex-1 basis-0 items-center gap-2",children:[t.jsx("div",{className:"w-20 shrink-0",children:t.jsx(bs,{scope:Ne})}),t.jsx("span",{className:"truncate font-mono text-xs",children:L.name})]}),t.jsx("div",{className:"flex min-w-0 flex-1 basis-0 items-center justify-end gap-2",children:tt?t.jsxs(t.Fragment,{children:[t.jsx(it,{value:y,onChange:z=>R(z.target.value),onKeyDown:z=>{z.key==="Enter"&&p({name:L.name,scope:Ne}),z.key==="Escape"&&S(null)},autoFocus:!0,className:"h-8 font-mono text-xs"}),t.jsx(Ie,{size:"sm",onClick:()=>p({name:L.name,scope:Ne}),disabled:D,children:n("mainPanelTabs.hostingTab.save")}),t.jsx(Ie,{size:"sm",variant:"ghost",onClick:()=>S(null),disabled:D,children:n("mainPanelTabs.hostingTab.cancel")})]}):t.jsxs(t.Fragment,{children:[t.jsx(et,{label:n(st?"mainPanelTabs.hostingTab.hideValue":"mainPanelTabs.hostingTab.showValue"),onClick:()=>v(We),className:"text-muted-foreground",children:st?t.jsx(Bs,{}):t.jsx(Os,{})}),st?t.jsx("button",{type:"button",onClick:()=>{S({name:L.name,scope:Ne}),R(L.value)},title:n("mainPanelTabs.hostingTab.editValue"),className:"min-w-0 truncate rounded px-1.5 py-0.5 text-right font-mono text-xs text-muted-foreground hover:bg-muted hover:text-foreground",children:L.value||"—"}):t.jsx("span",{className:"min-w-0 truncate px-1.5 py-0.5 text-right font-mono text-xs text-muted-foreground/60",children:L.value?"••••••••••":"—"})]})}),t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteVariable"),onClick:()=>j({name:L.name,scope:Ne}),disabled:D,className:"text-muted-foreground",children:t.jsx(vt,{})})]},We)}),c.length>0&&t.jsxs(Ht,{children:[t.jsx(Hs,{asChild:!0,children:t.jsxs("button",{type:"button",className:"group flex w-full items-center gap-2 px-4 py-2.5 text-left text-xs text-muted-foreground hover:bg-muted/40",children:[t.jsx(hs,{className:"size-4 transition-transform duration-200 group-data-[state=open]:rotate-90 motion-reduce:transition-none"}),t.jsx(Jt,{className:"size-4"}),n("mainPanelTabs.hostingTab.codeVarsToggle",{count:String(c.length)})]})}),t.jsx(Vt,{children:t.jsx("div",{className:"divide-y divide-border/60 border-t border-border bg-muted/30",children:c.map(gn)})})]})]}),e[36]=te,e[37]=c,e[38]=y,e[39]=P?.name,e[40]=P?.scope,e[41]=i,e[42]=s,e[43]=p,e[44]=m,e[45]=D,e[46]=V,e[47]=n,e[48]=ie):ie=e[48];let Pe;e[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=L=>{d(L),L||O()},e[49]=Pe):Pe=e[49];let Ce;e[50]!==n?(Ce=n("mainPanelTabs.hostingTab.addVariable"),e[50]=n,e[51]=Ce):Ce=e[51];let me;e[52]!==Ce?(me=t.jsx(yt,{children:t.jsx(St,{children:Ce})}),e[52]=Ce,e[53]=me):me=e[53];let pe;e[54]!==J?(pe=L=>{L.preventDefault(),J()},e[54]=J,e[55]=pe):pe=e[55];let le;e[56]!==n?(le=n("mainPanelTabs.hostingTab.colName"),e[56]=n,e[57]=le):le=e[57];let ae;e[58]!==le?(ae=t.jsx(Xe,{htmlFor:"env-name",children:le}),e[58]=le,e[59]=ae):ae=e[59];let de;e[60]!==n?(de=n("mainPanelTabs.hostingTab.envNamePlaceholder"),e[60]=n,e[61]=de):de=e[61];let De;e[62]===Symbol.for("react.memo_cache_sentinel")?(De=L=>u(L.target.value),e[62]=De):De=e[62];let fe;e[63]!==f||e[64]!==D||e[65]!==de?(fe=t.jsx(it,{id:"env-name",placeholder:de,value:f,onChange:De,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[63]=f,e[64]=D,e[65]=de,e[66]=fe):fe=e[66];let ue;e[67]!==ae||e[68]!==fe?(ue=t.jsxs("div",{className:"flex flex-col gap-2",children:[ae,fe]}),e[67]=ae,e[68]=fe,e[69]=ue):ue=e[69];let oe;e[70]!==n?(oe=n("mainPanelTabs.hostingTab.colValue"),e[70]=n,e[71]=oe):oe=e[71];let Te;e[72]!==oe?(Te=t.jsx(Xe,{htmlFor:"env-value",children:oe}),e[72]=oe,e[73]=Te):Te=e[73];let he;e[74]!==n?(he=n("mainPanelTabs.hostingTab.envValuePlaceholder"),e[74]=n,e[75]=he):he=e[75];let xe;e[76]===Symbol.for("react.memo_cache_sentinel")?(xe=L=>x(L.target.value),e[76]=xe):xe=e[76];let ve;e[77]!==b||e[78]!==D||e[79]!==he?(ve=t.jsx(it,{id:"env-value",placeholder:he,value:b,onChange:xe,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[77]=b,e[78]=D,e[79]=he,e[80]=ve):ve=e[80];let ye;e[81]!==Te||e[82]!==ve?(ye=t.jsxs("div",{className:"flex flex-col gap-2",children:[Te,ve]}),e[81]=Te,e[82]=ve,e[83]=ye):ye=e[83];let ge;e[84]!==n?(ge=n("mainPanelTabs.hostingTab.secretScope"),e[84]=n,e[85]=ge):ge=e[85];let re;e[86]!==ge?(re=t.jsx(Xe,{children:ge}),e[86]=ge,e[87]=re):re=e[87];let be;e[88]!==N||e[89]!==D?(be=t.jsx(hn,{value:N,onChange:C,disabled:D,className:"w-full"}),e[88]=N,e[89]=D,e[90]=be):be=e[90];let we;e[91]!==N||e[92]!==n?(we=n(N==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[91]=N,e[92]=n,e[93]=we):we=e[93];let $;e[94]!==we?($=t.jsx("p",{className:"text-xs text-muted-foreground",children:we}),e[94]=we,e[95]=$):$=e[95];let se;e[96]!==re||e[97]!==be||e[98]!==$?(se=t.jsxs("div",{className:"flex flex-col gap-2",children:[re,be,$]}),e[96]=re,e[97]=be,e[98]=$,e[99]=se):se=e[99];let Se;e[100]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>{d(!1),O()},e[100]=Se):Se=e[100];let je;e[101]!==n?(je=n("mainPanelTabs.hostingTab.cancel"),e[101]=n,e[102]=je):je=e[102];let $e;e[103]!==D||e[104]!==je?($e=t.jsx(Ie,{variant:"outline",type:"button",onClick:Se,disabled:D,children:je}),e[103]=D,e[104]=je,e[105]=$e):$e=e[105];let ze;e[106]!==f||e[107]!==D?(ze=D||!f.trim(),e[106]=f,e[107]=D,e[108]=ze):ze=e[108];let Ke;e[109]!==D||e[110]!==n?(Ke=n(D?"mainPanelTabs.hostingTab.saving":"mainPanelTabs.hostingTab.add"),e[109]=D,e[110]=n,e[111]=Ke):Ke=e[111];let Le;e[112]!==ze||e[113]!==Ke?(Le=t.jsx(Ie,{type:"submit",disabled:ze,children:Ke}),e[112]=ze,e[113]=Ke,e[114]=Le):Le=e[114];let _e;e[115]!==$e||e[116]!==Le?(_e=t.jsxs(Nt,{children:[$e,Le]}),e[115]=$e,e[116]=Le,e[117]=_e):_e=e[117];let Be;e[118]!==pe||e[119]!==ue||e[120]!==ye||e[121]!==se||e[122]!==_e?(Be=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:pe,children:[ue,ye,se,_e]}),e[118]=pe,e[119]=ue,e[120]=ye,e[121]=se,e[122]=_e,e[123]=Be):Be=e[123];let Ve;e[124]!==me||e[125]!==Be?(Ve=t.jsxs(Ct,{className:"sm:max-w-md",children:[me,Be]}),e[124]=me,e[125]=Be,e[126]=Ve):Ve=e[126];let ke;e[127]!==g||e[128]!==Ve?(ke=t.jsx(Dt,{open:g,onOpenChange:Pe,children:Ve}),e[127]=g,e[128]=Ve,e[129]=ke):ke=e[129];const Je=w!=null;let He;e[130]===Symbol.for("react.memo_cache_sentinel")?(He=L=>{L||j(null)},e[130]=He):He=e[130];let Ee;e[131]!==n?(Ee=n("mainPanelTabs.hostingTab.confirmDeleteVariableTitle"),e[131]=n,e[132]=Ee):Ee=e[132];const Oe=w?.name??"";let qe;e[133]!==n||e[134]!==Oe?(qe=n("mainPanelTabs.hostingTab.confirmDeleteVariableDescription",{name:Oe}),e[133]=n,e[134]=Oe,e[135]=qe):qe=e[135];let Ue;e[136]!==n?(Ue=n("mainPanelTabs.hostingTab.deleteVariable"),e[136]=n,e[137]=Ue):Ue=e[137];let M;e[138]!==Y||e[139]!==D||e[140]!==Je||e[141]!==Ee||e[142]!==qe||e[143]!==Ue?(M=t.jsx(wt,{open:Je,onOpenChange:He,title:Ee,description:qe,confirmLabel:Ue,pending:D,onConfirm:Y}),e[138]=Y,e[139]=D,e[140]=Je,e[141]=Ee,e[142]=qe,e[143]=Ue,e[144]=M):M=e[144];let Ge;return e[145]!==K||e[146]!==ne||e[147]!==ie||e[148]!==ke||e[149]!==M?(Ge=t.jsxs(ut,{title:K,actions:ne,children:[ie,ke,M]}),e[145]=K,e[146]=ne,e[147]=ie,e[148]=ke,e[149]=M,e[150]=Ge):Ge=e[150],Ge}function gn(r){return t.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 font-mono text-xs",children:[t.jsx("span",{className:"flex-1 basis-0 truncate",children:r.name}),t.jsx("span",{className:"flex-1 basis-0 truncate text-right text-muted-foreground",children:r.value})]},r.name)}function bn(r){return ce.error(rt(r))}function pn(r){const e=ee.c(6),{type:o}=r,l=Ae(),a=o==="permanent"?"secondary":"outline";let i;e[0]!==l||e[1]!==o?(i=l(o==="permanent"?"mainPanelTabs.hostingTab.permanent":"mainPanelTabs.hostingTab.temporary"),e[0]=l,e[1]=o,e[2]=i):i=e[2];let c;return e[3]!==a||e[4]!==i?(c=t.jsx(Re,{variant:a,children:i}),e[3]=a,e[4]=i,e[5]=c):c=e[5],c}function Tn(r){const e=ee.c(163),{base:o,orgSlug:l,site:a,redirects:i,isLoading:c,error:m}=r,s=Ae(),n=bt(),[h,g]=Z.useState(!1),[d,f]=Z.useState(null),[u,b]=Z.useState(""),[x,N]=Z.useState(""),[C,P]=Z.useState("permanent"),[S,y]=Z.useState(null),[R,w]=Z.useState(null);let j;e[0]!==l||e[1]!==n||e[2]!==a?(j=()=>n.invalidateQueries({queryKey:Ye.hostingRedirects(l,a)}),e[0]=l,e[1]=n,e[2]=a,e[3]=j):j=e[3];const T=j;let V;e[4]!==o?(V=z=>at(`${o}/redirects`,"PUT",z),e[4]=o,e[5]=V):V=e[5];let q;e[6]!==T||e[7]!==s?(q=()=>{T(),ce.success(s("mainPanelTabs.hostingTab.toastRedirectSaved")),g(!1)},e[6]=T,e[7]=s,e[8]=q):q=e[8];let F;e[9]!==V||e[10]!==q?(F={mutationFn:V,onSuccess:q,onError:Pn},e[9]=V,e[10]=q,e[11]=F):F=e[11];const v=lt(F);let H;e[12]!==o?(H=z=>at(`${o}/redirects/${encodeURIComponent(z)}`,"DELETE"),e[12]=o,e[13]=H):H=e[13];let A;e[14]!==T||e[15]!==s?(A=()=>{T(),ce.success(s("mainPanelTabs.hostingTab.toastRedirectDeleted")),y(null)},e[14]=T,e[15]=s,e[16]=A):A=e[16];let Q;e[17]!==H||e[18]!==A?(Q={mutationFn:H,onSuccess:A,onError:jn},e[17]=H,e[18]=A,e[19]=Q):Q=e[19];const _=lt(Q);let W;e[20]===Symbol.for("react.memo_cache_sentinel")?(W=()=>{f(null),b(""),N(""),P("permanent"),g(!0)},e[20]=W):W=e[20];const J=W;let U;e[21]===Symbol.for("react.memo_cache_sentinel")?(U=z=>{f(z.from),b(z.from),N(z.to),P(z.type==="temporary"?"temporary":"permanent"),g(!0)},e[21]=U):U=e[21];const p=U;let I;e[22]!==u||e[23]!==x||e[24]!==C||e[25]!==v||e[26]!==s?(I=()=>{const z=u.trim(),Tt=x.trim();if(!z||!Tt){ce.error(s("mainPanelTabs.hostingTab.errorRedirectFieldsRequired"));return}v.mutate({from:z,to:Tt,type:C})},e[22]=u,e[23]=x,e[24]=C,e[25]=v,e[26]=s,e[27]=I):I=e[27];const Y=I;let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(Pt,{}),e[28]=D):D=e[28];let G;e[29]!==s?(G=s("mainPanelTabs.hostingTab.addRedirect"),e[29]=s,e[30]=G):G=e[30];let O;e[31]!==G?(O=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:J,children:[D,G]}),e[31]=G,e[32]=O):O=e[32];const k=O;let E;e[33]!==s?(E=s("mainPanelTabs.hostingTab.redirects"),e[33]=s,e[34]=E):E=e[34];const B=i.length>0?k:void 0;let X;e[35]!==k||e[36]!==_.isPending||e[37]!==R||e[38]!==m||e[39]!==c||e[40]!==v.isPending||e[41]!==i||e[42]!==s?(X=c?t.jsx(ht,{}):m?t.jsx(Qe,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.redirectsError")})}):i.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(Yt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noRedirects"),className:"py-10",buttonComponent:k})}):t.jsx(Qe,{children:i.map((z,Tt)=>{const Ut=Zt(z.from),$t=R===z.from;return t.jsxs("div",{children:[t.jsxs(pt,{children:[Ut?t.jsx(Qt,{open:$t,onClick:()=>w($t?null:z.from)}):t.jsx(Yt,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 font-mono text-xs",children:[t.jsx("span",{className:"truncate",children:z.from}),t.jsx(qs,{className:"size-3.5 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"truncate text-muted-foreground",children:z.to})]}),t.jsx(pn,{type:z.type}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.editRedirect"),onClick:()=>p(z),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(ks,{})}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.deleteRedirect"),onClick:()=>y(z.from),disabled:_.isPending,className:"-ml-1 text-muted-foreground",children:t.jsx(vt,{})})]}),Ut&&t.jsx(gs,{open:$t,children:t.jsx(es,{from:z.from,source:z.source})})]},z.id??`${z.from}-${Tt}`)})}),e[35]=k,e[36]=_.isPending,e[37]=R,e[38]=m,e[39]=c,e[40]=v.isPending,e[41]=i,e[42]=s,e[43]=X):X=e[43];let te;e[44]!==d||e[45]!==s?(te=d!=null?s("mainPanelTabs.hostingTab.editRedirectTitle"):s("mainPanelTabs.hostingTab.addRedirectTitle"),e[44]=d,e[45]=s,e[46]=te):te=e[46];let K;e[47]!==te?(K=t.jsx(yt,{children:t.jsx(St,{children:te})}),e[47]=te,e[48]=K):K=e[48];let ne;e[49]!==Y?(ne=z=>{z.preventDefault(),Y()},e[49]=Y,e[50]=ne):ne=e[50];let ie;e[51]!==s?(ie=s("mainPanelTabs.hostingTab.colFrom"),e[51]=s,e[52]=ie):ie=e[52];let Pe;e[53]!==ie?(Pe=t.jsx(Xe,{htmlFor:"redirect-from",children:ie}),e[53]=ie,e[54]=Pe):Pe=e[54];let Ce;e[55]!==s?(Ce=s("mainPanelTabs.hostingTab.redirectFromPlaceholder"),e[55]=s,e[56]=Ce):Ce=e[56];let me;e[57]===Symbol.for("react.memo_cache_sentinel")?(me=z=>b(z.target.value),e[57]=me):me=e[57];const pe=d!=null||v.isPending;let le;e[58]!==u||e[59]!==Ce||e[60]!==pe?(le=t.jsx(it,{id:"redirect-from",placeholder:Ce,value:u,onChange:me,className:"font-mono text-xs",disabled:pe}),e[58]=u,e[59]=Ce,e[60]=pe,e[61]=le):le=e[61];let ae;e[62]!==Pe||e[63]!==le?(ae=t.jsxs("div",{className:"flex flex-col gap-2",children:[Pe,le]}),e[62]=Pe,e[63]=le,e[64]=ae):ae=e[64];let de;e[65]!==s?(de=s("mainPanelTabs.hostingTab.colTo"),e[65]=s,e[66]=de):de=e[66];let De;e[67]!==de?(De=t.jsx(Xe,{htmlFor:"redirect-to",children:de}),e[67]=de,e[68]=De):De=e[68];let fe;e[69]!==s?(fe=s("mainPanelTabs.hostingTab.redirectToPlaceholder"),e[69]=s,e[70]=fe):fe=e[70];let ue;e[71]===Symbol.for("react.memo_cache_sentinel")?(ue=z=>N(z.target.value),e[71]=ue):ue=e[71];let oe;e[72]!==x||e[73]!==v.isPending||e[74]!==fe?(oe=t.jsx(it,{id:"redirect-to",placeholder:fe,value:x,onChange:ue,className:"font-mono text-xs",disabled:v.isPending}),e[72]=x,e[73]=v.isPending,e[74]=fe,e[75]=oe):oe=e[75];let Te;e[76]!==De||e[77]!==oe?(Te=t.jsxs("div",{className:"flex flex-col gap-2",children:[De,oe]}),e[76]=De,e[77]=oe,e[78]=Te):Te=e[78];let he;e[79]!==s?(he=s("mainPanelTabs.hostingTab.colType"),e[79]=s,e[80]=he):he=e[80];let xe;e[81]!==he?(xe=t.jsx(Xe,{children:he}),e[81]=he,e[82]=xe):xe=e[82];let ve;e[83]===Symbol.for("react.memo_cache_sentinel")?(ve=z=>P(z==="temporary"?"temporary":"permanent"),e[83]=ve):ve=e[83];const ye=v.isPending;let ge;e[84]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx(Ot,{className:"w-full",children:t.jsx(Bt,{})}),e[84]=ge):ge=e[84];let re;e[85]!==s?(re=s("mainPanelTabs.hostingTab.permanent"),e[85]=s,e[86]=re):re=e[86];let be;e[87]!==re?(be=t.jsx(ft,{value:"permanent",children:re}),e[87]=re,e[88]=be):be=e[88];let we;e[89]!==s?(we=s("mainPanelTabs.hostingTab.temporary"),e[89]=s,e[90]=we):we=e[90];let $;e[91]!==we?($=t.jsx(ft,{value:"temporary",children:we}),e[91]=we,e[92]=$):$=e[92];let se;e[93]!==be||e[94]!==$?(se=t.jsxs(qt,{children:[be,$]}),e[93]=be,e[94]=$,e[95]=se):se=e[95];let Se;e[96]!==C||e[97]!==v.isPending||e[98]!==se?(Se=t.jsxs(Mt,{value:C,onValueChange:ve,disabled:ye,children:[ge,se]}),e[96]=C,e[97]=v.isPending,e[98]=se,e[99]=Se):Se=e[99];let je;e[100]!==xe||e[101]!==Se?(je=t.jsxs("div",{className:"flex flex-col gap-2",children:[xe,Se]}),e[100]=xe,e[101]=Se,e[102]=je):je=e[102];let $e;e[103]!==d||e[104]!==u||e[105]!==i?($e=Zt(u)&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(es,{from:u,source:i.find(z=>z.from===d)?.source})}),e[103]=d,e[104]=u,e[105]=i,e[106]=$e):$e=e[106];let ze;e[107]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>g(!1),e[107]=ze):ze=e[107];const Ke=v.isPending;let Le;e[108]!==s?(Le=s("mainPanelTabs.hostingTab.cancel"),e[108]=s,e[109]=Le):Le=e[109];let _e;e[110]!==v.isPending||e[111]!==Le?(_e=t.jsx(Ie,{variant:"outline",type:"button",onClick:ze,disabled:Ke,children:Le}),e[110]=v.isPending,e[111]=Le,e[112]=_e):_e=e[112];let Be;e[113]!==u||e[114]!==x||e[115]!==v.isPending?(Be=v.isPending||!u.trim()||!x.trim(),e[113]=u,e[114]=x,e[115]=v.isPending,e[116]=Be):Be=e[116];let Ve;e[117]!==v.isPending||e[118]!==s?(Ve=v.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.save"),e[117]=v.isPending,e[118]=s,e[119]=Ve):Ve=e[119];let ke;e[120]!==Be||e[121]!==Ve?(ke=t.jsx(Ie,{type:"submit",disabled:Be,children:Ve}),e[120]=Be,e[121]=Ve,e[122]=ke):ke=e[122];let Je;e[123]!==_e||e[124]!==ke?(Je=t.jsxs(Nt,{children:[_e,ke]}),e[123]=_e,e[124]=ke,e[125]=Je):Je=e[125];let He;e[126]!==ne||e[127]!==ae||e[128]!==Te||e[129]!==je||e[130]!==$e||e[131]!==Je?(He=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:ne,children:[ae,Te,je,$e,Je]}),e[126]=ne,e[127]=ae,e[128]=Te,e[129]=je,e[130]=$e,e[131]=Je,e[132]=He):He=e[132];let Ee;e[133]!==K||e[134]!==He?(Ee=t.jsxs(Ct,{className:"sm:max-w-md",children:[K,He]}),e[133]=K,e[134]=He,e[135]=Ee):Ee=e[135];let Oe;e[136]!==h||e[137]!==Ee?(Oe=t.jsx(Dt,{open:h,onOpenChange:g,children:Ee}),e[136]=h,e[137]=Ee,e[138]=Oe):Oe=e[138];const qe=S!=null;let Ue;e[139]===Symbol.for("react.memo_cache_sentinel")?(Ue=z=>{z||y(null)},e[139]=Ue):Ue=e[139];let M;e[140]!==s?(M=s("mainPanelTabs.hostingTab.confirmDeleteRedirectTitle"),e[140]=s,e[141]=M):M=e[141];const Ge=S??"";let L;e[142]!==s||e[143]!==Ge?(L=s("mainPanelTabs.hostingTab.confirmDeleteRedirectDescription",{from:Ge}),e[142]=s,e[143]=Ge,e[144]=L):L=e[144];let Ne;e[145]!==s?(Ne=s("mainPanelTabs.hostingTab.deleteRedirect"),e[145]=s,e[146]=Ne):Ne=e[146];let We;e[147]!==_||e[148]!==S?(We=()=>{S&&_.mutate(S)},e[147]=_,e[148]=S,e[149]=We):We=e[149];let tt;e[150]!==_.isPending||e[151]!==qe||e[152]!==M||e[153]!==L||e[154]!==Ne||e[155]!==We?(tt=t.jsx(wt,{open:qe,onOpenChange:Ue,title:M,description:L,confirmLabel:Ne,pending:_.isPending,onConfirm:We}),e[150]=_.isPending,e[151]=qe,e[152]=M,e[153]=L,e[154]=Ne,e[155]=We,e[156]=tt):tt=e[156];let st;return e[157]!==E||e[158]!==B||e[159]!==X||e[160]!==Oe||e[161]!==tt?(st=t.jsxs(ut,{title:E,actions:B,children:[X,Oe,tt]}),e[157]=E,e[158]=B,e[159]=X,e[160]=Oe,e[161]=tt,e[162]=st):st=e[162],st}function jn(r){return ce.error(rt(r))}function Pn(r){return ce.error(rt(r))}function vn(r){const e=ee.c(160),{base:o,orgSlug:l,site:a,secrets:i,isLoading:c,error:m}=r,s=Ae(),n=bt(),[h,g]=Z.useState(!1),[d,f]=Z.useState(""),[u,b]=Z.useState(""),[x,N]=Z.useState("runtime"),[C,P]=Z.useState(null);let S;e[0]!==l||e[1]!==n||e[2]!==a?(S=()=>n.invalidateQueries({queryKey:Ye.hostingSecrets(l,a)}),e[0]=l,e[1]=n,e[2]=a,e[3]=S):S=e[3];const y=S;let R;e[4]!==o?(R=M=>at(`${o}/secrets`,"PUT",M),e[4]=o,e[5]=R):R=e[5];let w;e[6]!==y||e[7]!==s?(w=()=>{y(),ce.success(s("mainPanelTabs.hostingTab.toastSecretSaved")),g(!1),f(""),b(""),N("runtime")},e[6]=y,e[7]=s,e[8]=w):w=e[8];let j;e[9]!==R||e[10]!==w?(j={mutationFn:R,onSuccess:w,onError:Sn},e[9]=R,e[10]=w,e[11]=j):j=e[11];const T=lt(j);let V;e[12]!==o?(V=M=>at(`${o}/secrets/${encodeURIComponent(M.name)}?scope=${M.scope}`,"DELETE"),e[12]=o,e[13]=V):V=e[13];let q;e[14]!==y||e[15]!==s?(q=()=>{y(),ce.success(s("mainPanelTabs.hostingTab.toastSecretDeleted")),P(null)},e[14]=y,e[15]=s,e[16]=q):q=e[16];let F;e[17]!==V||e[18]!==q?(F={mutationFn:V,onSuccess:q,onError:yn},e[17]=V,e[18]=q,e[19]=F):F=e[19];const v=lt(F);let H;e[20]!==d||e[21]!==x||e[22]!==u||e[23]!==T||e[24]!==s?(H=()=>{const M=d.trim();if(!M){ce.error(s("mainPanelTabs.hostingTab.errorSecretNameRequired"));return}if(!u){ce.error(s("mainPanelTabs.hostingTab.errorSecretValueRequired"));return}T.mutate({name:M,value:u,scope:x})},e[20]=d,e[21]=x,e[22]=u,e[23]=T,e[24]=s,e[25]=H):H=e[25];const A=H;let Q,_;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=()=>g(!0),Q=t.jsx(Pt,{}),e[26]=Q,e[27]=_):(Q=e[26],_=e[27]);let W;e[28]!==s?(W=s("mainPanelTabs.hostingTab.addSecret"),e[28]=s,e[29]=W):W=e[29];let J;e[30]!==W?(J=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:_,children:[Q,W]}),e[30]=W,e[31]=J):J=e[31];const U=J;let p;e[32]!==s?(p=s("mainPanelTabs.hostingTab.secrets"),e[32]=s,e[33]=p):p=e[33];const I=i.length>0?U:void 0;let Y;e[34]!==U||e[35]!==v.isPending||e[36]!==m||e[37]!==c||e[38]!==i||e[39]!==s?(Y=c?t.jsx(ht,{}):m?t.jsx(Qe,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.secretsError")})}):i.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(Kt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noSecrets"),className:"py-10",buttonComponent:U})}):t.jsx(Qe,{children:i.map(M=>{const Ge=M.scope==="build"?"build":"runtime";return t.jsxs(pt,{children:[t.jsx(Kt,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[t.jsx("div",{className:"w-20 shrink-0",children:t.jsx(bs,{scope:Ge})}),t.jsx("span",{className:"truncate font-mono text-xs",children:M.name}),M.origin==="worker"&&t.jsx(Re,{variant:"secondary",children:s("mainPanelTabs.hostingTab.secretOnWorker")})]}),t.jsx("span",{className:"font-mono text-xs text-muted-foreground/60",children:s("mainPanelTabs.hostingTab.secretValueHidden")}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.deleteSecret"),onClick:()=>P({name:M.name,scope:Ge}),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]},`${M.name}:${Ge}`)})}),e[34]=U,e[35]=v.isPending,e[36]=m,e[37]=c,e[38]=i,e[39]=s,e[40]=Y):Y=e[40];let D;e[41]!==s?(D=s("mainPanelTabs.hostingTab.addSecretTitle"),e[41]=s,e[42]=D):D=e[42];let G;e[43]!==D?(G=t.jsx(yt,{children:t.jsx(St,{children:D})}),e[43]=D,e[44]=G):G=e[44];let O;e[45]!==A?(O=M=>{M.preventDefault(),A()},e[45]=A,e[46]=O):O=e[46];let k;e[47]!==s?(k=s("mainPanelTabs.hostingTab.colName"),e[47]=s,e[48]=k):k=e[48];let E;e[49]!==k?(E=t.jsx(Xe,{htmlFor:"secret-name",children:k}),e[49]=k,e[50]=E):E=e[50];let B;e[51]!==s?(B=s("mainPanelTabs.hostingTab.secretNamePlaceholder"),e[51]=s,e[52]=B):B=e[52];let X;e[53]===Symbol.for("react.memo_cache_sentinel")?(X=M=>f(M.target.value),e[53]=X):X=e[53];let te;e[54]!==d||e[55]!==T.isPending||e[56]!==B?(te=t.jsx(it,{id:"secret-name",placeholder:B,value:d,onChange:X,className:"font-mono text-xs",autoComplete:"off",disabled:T.isPending}),e[54]=d,e[55]=T.isPending,e[56]=B,e[57]=te):te=e[57];let K;e[58]!==E||e[59]!==te?(K=t.jsxs("div",{className:"flex flex-col gap-2",children:[E,te]}),e[58]=E,e[59]=te,e[60]=K):K=e[60];let ne;e[61]!==s?(ne=s("mainPanelTabs.hostingTab.colValue"),e[61]=s,e[62]=ne):ne=e[62];let ie;e[63]!==ne?(ie=t.jsx(Xe,{htmlFor:"secret-value",children:ne}),e[63]=ne,e[64]=ie):ie=e[64];let Pe;e[65]!==s?(Pe=s("mainPanelTabs.hostingTab.secretValuePlaceholder"),e[65]=s,e[66]=Pe):Pe=e[66];let Ce;e[67]===Symbol.for("react.memo_cache_sentinel")?(Ce=M=>b(M.target.value),e[67]=Ce):Ce=e[67];let me;e[68]!==u||e[69]!==T.isPending||e[70]!==Pe?(me=t.jsx(it,{id:"secret-value",type:"password",placeholder:Pe,value:u,onChange:Ce,className:"font-mono text-xs",autoComplete:"new-password",disabled:T.isPending}),e[68]=u,e[69]=T.isPending,e[70]=Pe,e[71]=me):me=e[71];let pe;e[72]!==ie||e[73]!==me?(pe=t.jsxs("div",{className:"flex flex-col gap-2",children:[ie,me]}),e[72]=ie,e[73]=me,e[74]=pe):pe=e[74];let le;e[75]!==s?(le=s("mainPanelTabs.hostingTab.secretScope"),e[75]=s,e[76]=le):le=e[76];let ae;e[77]!==le?(ae=t.jsx(Xe,{children:le}),e[77]=le,e[78]=ae):ae=e[78];let de;e[79]===Symbol.for("react.memo_cache_sentinel")?(de=M=>N(M==="build"?"build":"runtime"),e[79]=de):de=e[79];const De=T.isPending;let fe;e[80]===Symbol.for("react.memo_cache_sentinel")?(fe=t.jsx(Ot,{className:"w-full",children:t.jsx(Bt,{})}),e[80]=fe):fe=e[80];let ue;e[81]!==s?(ue=s("mainPanelTabs.hostingTab.secretScopeRuntime"),e[81]=s,e[82]=ue):ue=e[82];let oe;e[83]!==ue?(oe=t.jsx(ft,{value:"runtime",children:ue}),e[83]=ue,e[84]=oe):oe=e[84];let Te;e[85]!==s?(Te=s("mainPanelTabs.hostingTab.secretScopeBuild"),e[85]=s,e[86]=Te):Te=e[86];let he;e[87]!==Te?(he=t.jsx(ft,{value:"build",children:Te}),e[87]=Te,e[88]=he):he=e[88];let xe;e[89]!==oe||e[90]!==he?(xe=t.jsxs(qt,{children:[oe,he]}),e[89]=oe,e[90]=he,e[91]=xe):xe=e[91];let ve;e[92]!==x||e[93]!==T.isPending||e[94]!==xe?(ve=t.jsxs(Mt,{value:x,onValueChange:de,disabled:De,children:[fe,xe]}),e[92]=x,e[93]=T.isPending,e[94]=xe,e[95]=ve):ve=e[95];let ye;e[96]!==x||e[97]!==s?(ye=s(x==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[96]=x,e[97]=s,e[98]=ye):ye=e[98];let ge;e[99]!==ye?(ge=t.jsx("p",{className:"text-xs text-muted-foreground",children:ye}),e[99]=ye,e[100]=ge):ge=e[100];let re;e[101]!==ae||e[102]!==ve||e[103]!==ge?(re=t.jsxs("div",{className:"flex flex-col gap-2",children:[ae,ve,ge]}),e[101]=ae,e[102]=ve,e[103]=ge,e[104]=re):re=e[104];let be;e[105]===Symbol.for("react.memo_cache_sentinel")?(be=()=>g(!1),e[105]=be):be=e[105];const we=T.isPending;let $;e[106]!==s?($=s("mainPanelTabs.hostingTab.cancel"),e[106]=s,e[107]=$):$=e[107];let se;e[108]!==T.isPending||e[109]!==$?(se=t.jsx(Ie,{variant:"outline",type:"button",onClick:be,disabled:we,children:$}),e[108]=T.isPending,e[109]=$,e[110]=se):se=e[110];let Se;e[111]!==d||e[112]!==u||e[113]!==T.isPending?(Se=T.isPending||!d.trim()||!u,e[111]=d,e[112]=u,e[113]=T.isPending,e[114]=Se):Se=e[114];let je;e[115]!==T.isPending||e[116]!==s?(je=T.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.add"),e[115]=T.isPending,e[116]=s,e[117]=je):je=e[117];let $e;e[118]!==Se||e[119]!==je?($e=t.jsx(Ie,{type:"submit",disabled:Se,children:je}),e[118]=Se,e[119]=je,e[120]=$e):$e=e[120];let ze;e[121]!==se||e[122]!==$e?(ze=t.jsxs(Nt,{children:[se,$e]}),e[121]=se,e[122]=$e,e[123]=ze):ze=e[123];let Ke;e[124]!==O||e[125]!==K||e[126]!==pe||e[127]!==re||e[128]!==ze?(Ke=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:O,children:[K,pe,re,ze]}),e[124]=O,e[125]=K,e[126]=pe,e[127]=re,e[128]=ze,e[129]=Ke):Ke=e[129];let Le;e[130]!==G||e[131]!==Ke?(Le=t.jsxs(Ct,{className:"sm:max-w-md",children:[G,Ke]}),e[130]=G,e[131]=Ke,e[132]=Le):Le=e[132];let _e;e[133]!==h||e[134]!==Le?(_e=t.jsx(Dt,{open:h,onOpenChange:g,children:Le}),e[133]=h,e[134]=Le,e[135]=_e):_e=e[135];const Be=C!=null;let Ve;e[136]===Symbol.for("react.memo_cache_sentinel")?(Ve=M=>{M||P(null)},e[136]=Ve):Ve=e[136];let ke;e[137]!==s?(ke=s("mainPanelTabs.hostingTab.confirmDeleteSecretTitle"),e[137]=s,e[138]=ke):ke=e[138];const Je=C?.name??"";let He;e[139]!==s||e[140]!==Je?(He=s("mainPanelTabs.hostingTab.confirmDeleteSecretDescription",{name:Je}),e[139]=s,e[140]=Je,e[141]=He):He=e[141];let Ee;e[142]!==s?(Ee=s("mainPanelTabs.hostingTab.deleteSecret"),e[142]=s,e[143]=Ee):Ee=e[143];let Oe;e[144]!==v||e[145]!==C?(Oe=()=>{C&&v.mutate(C)},e[144]=v,e[145]=C,e[146]=Oe):Oe=e[146];let qe;e[147]!==v.isPending||e[148]!==Be||e[149]!==ke||e[150]!==He||e[151]!==Ee||e[152]!==Oe?(qe=t.jsx(wt,{open:Be,onOpenChange:Ve,title:ke,description:He,confirmLabel:Ee,pending:v.isPending,onConfirm:Oe}),e[147]=v.isPending,e[148]=Be,e[149]=ke,e[150]=He,e[151]=Ee,e[152]=Oe,e[153]=qe):qe=e[153];let Ue;return e[154]!==p||e[155]!==I||e[156]!==Y||e[157]!==_e||e[158]!==qe?(Ue=t.jsxs(ut,{title:p,actions:I,children:[Y,_e,qe]}),e[154]=p,e[155]=I,e[156]=Y,e[157]=_e,e[158]=qe,e[159]=Ue):Ue=e[159],Ue}function yn(r){return ce.error(rt(r))}function Sn(r){return ce.error(rt(r))}const Nn=3e4;function kl(r){const e=ee.c(111),{virtualMcpId:o}=r,l=Ae(),{org:a}=Cs(),i=Es(o),c=Rs(i),m=!!c,s=c?`/api/${a.slug}/hosting/${encodeURIComponent(c)}`:"";let n;e[0]!==s||e[1]!==m?(n=(O,k)=>({queryKey:O,queryFn:()=>It(`${s}${k}`),enabled:m,retry:!1,staleTime:Nn}),e[0]=s,e[1]=m,e[2]=n):n=e[2];const h=n,g=c??"",d=ct(h(Ye.hostingDeployments(a.slug,g),"/deployments")),f=ct(h(Ye.hostingEnv(a.slug,g),"/env")),u=ct(h(Ye.hostingSecrets(a.slug,g),"/secrets")),b=ct(h(Ye.hostingRedirects(a.slug,g),"/redirects")),x=ct(h(Ye.hostingDomains(a.slug,g),"/domains"));if(!c){let O;e[3]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(kt,{className:"size-5"}),e[3]=O):O=e[3];let k;e[4]!==l?(k=l("mainPanelTabs.hostingTab.noSiteTitle"),e[4]=l,e[5]=k):k=e[5];let E;e[6]!==l?(E=l("mainPanelTabs.hostingTab.noSiteDescription"),e[6]=l,e[7]=E):E=e[7];let B;return e[8]!==k||e[9]!==E?(B=t.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:t.jsx(Ze,{icon:O,title:k,description:E})}),e[8]=k,e[9]=E,e[10]=B):B=e[10],B}if(jt(d.error)&&jt(f.error)&&jt(b.error)){let O;e[11]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(kt,{className:"size-5"}),e[11]=O):O=e[11];let k;e[12]!==l?(k=l("mainPanelTabs.hostingTab.notConnectedTitle"),e[12]=l,e[13]=k):k=e[13];let E;e[14]!==l?(E=l("mainPanelTabs.hostingTab.notConnectedDescription"),e[14]=l,e[15]=E):E=e[15];let B;return e[16]!==k||e[17]!==E?(B=t.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:t.jsx(Ze,{icon:O,title:k,description:E})}),e[16]=k,e[17]=E,e[18]=B):B=e[18],B}let C,P,S,y,R,w,j,T,V,q;if(e[19]!==d.data||e[20]!==x.data||e[21]!==f.data||e[22]!==b.data||e[23]!==u.data){P=mt(d.data,"items");let O;e[34]!==f.data?(O=mt(f.data,"vars"),e[34]=f.data,e[35]=O):O=e[35],R=O;let k;e[36]!==f.data?(k=mt(f.data,"codeVars"),e[36]=f.data,e[37]=k):k=e[37],C=k;let E;e[38]!==u.data?(E=mt(u.data,"secrets"),e[38]=u.data,e[39]=E):E=e[39],V=E;let B;e[40]!==b.data?(B=mt(b.data,"items"),e[40]=b.data,e[41]=B):B=e[41],T=B;const X=x.data;let te;e[42]!==X?.items?(te=X?.items??[],e[42]=X?.items,e[43]=te):te=e[43],y=te;let K;e[44]!==X?.dnsTemplate?(K=X?.dnsTemplate??[],e[44]=X?.dnsTemplate,e[45]=K):K=e[45],S=K;const ne=P.find(Dn);w=zt((ne??P.find(Cn))?.framework),j=ne?.servingUrl??null,q=j?j.replace(/^https?:\/\//,"").replace(/\/$/,""):null,e[19]=d.data,e[20]=x.data,e[21]=f.data,e[22]=b.data,e[23]=u.data,e[24]=C,e[25]=P,e[26]=S,e[27]=y,e[28]=R,e[29]=w,e[30]=j,e[31]=T,e[32]=V,e[33]=q}else C=e[24],P=e[25],S=e[26],y=e[27],R=e[28],w=e[29],j=e[30],T=e[31],V=e[32],q=e[33];const F=q;let v;e[46]!==s||e[47]!==a.slug||e[48]!==c?(v=t.jsx(Ys,{base:s,orgSlug:a.slug,site:c}),e[46]=s,e[47]=a.slug,e[48]=c,e[49]=v):v=e[49];let H;e[50]!==l?(H=l("mainPanelTabs.hostingTab.title"),e[50]=l,e[51]=H):H=e[51];let A;e[52]!==w?(A=w&&t.jsx(Re,{variant:"secondary",children:w}),e[52]=w,e[53]=A):A=e[53];let Q;e[54]!==H||e[55]!==A?(Q=t.jsxs("span",{className:"inline-flex items-center gap-2.5",children:[H,A]}),e[54]=H,e[55]=A,e[56]=Q):Q=e[56];let _;e[57]!==v||e[58]!==Q?(_=t.jsx(Wt.Title,{actions:v,children:Q}),e[57]=v,e[58]=Q,e[59]=_):_=e[59];let W;e[60]!==F||e[61]!==j?(W=j&&F&&t.jsx("p",{className:"flex flex-wrap items-center gap-x-1.5 text-sm text-muted-foreground",children:t.jsxs("a",{href:j,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 font-mono text-xs text-foreground hover:underline",children:[F,t.jsx(_t,{className:"size-3"})]})}),e[60]=F,e[61]=j,e[62]=W):W=e[62];let J;e[63]!==_||e[64]!==W?(J=t.jsxs("div",{className:"flex flex-col gap-2",children:[_,W]}),e[63]=_,e[64]=W,e[65]=J):J=e[65];let U;e[66]!==s||e[67]!==P||e[68]!==d.error||e[69]!==d.isLoading||e[70]!==m||e[71]!==a.slug||e[72]!==c?(U=t.jsx(sn,{base:s,orgSlug:a.slug,site:c,enabled:m,deployments:P,isLoading:d.isLoading,error:d.error}),e[66]=s,e[67]=P,e[68]=d.error,e[69]=d.isLoading,e[70]=m,e[71]=a.slug,e[72]=c,e[73]=U):U=e[73];let p;e[74]!==s||e[75]!==C||e[76]!==f.error||e[77]!==f.isLoading||e[78]!==R||e[79]!==a.slug||e[80]!==c?(p=t.jsx(xn,{base:s,orgSlug:a.slug,site:c,envVars:R,codeVars:C,isLoading:f.isLoading,error:f.error}),e[74]=s,e[75]=C,e[76]=f.error,e[77]=f.isLoading,e[78]=R,e[79]=a.slug,e[80]=c,e[81]=p):p=e[81];let I;e[82]!==s||e[83]!==a.slug||e[84]!==V||e[85]!==u.error||e[86]!==u.isLoading||e[87]!==c?(I=t.jsx(vn,{base:s,orgSlug:a.slug,site:c,secrets:V,isLoading:u.isLoading,error:u.error}),e[82]=s,e[83]=a.slug,e[84]=V,e[85]=u.error,e[86]=u.isLoading,e[87]=c,e[88]=I):I=e[88];let Y;e[89]!==s||e[90]!==S||e[91]!==y||e[92]!==x.error||e[93]!==x.isLoading||e[94]!==a.slug||e[95]!==c?(Y=t.jsx(dn,{base:s,orgSlug:a.slug,site:c,domains:y,dnsTemplate:S,isLoading:x.isLoading,error:x.error}),e[89]=s,e[90]=S,e[91]=y,e[92]=x.error,e[93]=x.isLoading,e[94]=a.slug,e[95]=c,e[96]=Y):Y=e[96];let D;e[97]!==s||e[98]!==a.slug||e[99]!==T||e[100]!==b.error||e[101]!==b.isLoading||e[102]!==c?(D=t.jsx(Tn,{base:s,orgSlug:a.slug,site:c,redirects:T,isLoading:b.isLoading,error:b.error}),e[97]=s,e[98]=a.slug,e[99]=T,e[100]=b.error,e[101]=b.isLoading,e[102]=c,e[103]=D):D=e[103];let G;return e[104]!==U||e[105]!==p||e[106]!==I||e[107]!==Y||e[108]!==D||e[109]!==J?(G=t.jsx("div",{className:"h-full min-h-0 overflow-y-auto",children:t.jsx(Wt.Body,{maxWidth:"max-w-5xl",children:t.jsxs(Ds,{children:[J,U,p,I,Y,D]})})}),e[104]=U,e[105]=p,e[106]=I,e[107]=Y,e[108]=D,e[109]=J,e[110]=G):G=e[110],G}function Cn(r){return r.framework}function Dn(r){return r.up===!0}export{kl as HostingTab};
@@ -1 +0,0 @@
1
- import{c as L,b as A,j as r}from"./index-ClceuAyk.js";import{I as R}from"./input-BnaH3Pwu.js";import{L as I}from"./label-BXG-IHer.js";import{S as z,b as J,a as O,d as V,c as D}from"./select-CPovt3xR.js";import{T as M}from"./textarea-BsfO56Vo.js";import{e as $,w as q,j as G,y as H,J as Q}from"./index-ardO8QQc.js";import{s as F}from"./primitives-C7FP5JK1.js";import{u as U}from"./use-autosave-BTBrWTLA.js";import"./Check-Cz1yJ2Ku.js";import"./ChevronUp-CzD3Q5Ez.js";import"./ArrowUp-Di6V-t98.js";import"./chat-context-DxdDV2c_.js";import"./use-panel-navigate-BYeq7p5w.js";import"./use-destination-route-C33Wg86r.js";import"./autosend-Do97LQ4X.js";import"./thread-intent-_gcPeplT.js";import"./slugify-CEUa2lfQ.js";import"./hooks-DPkoA9nj.js";import"./use-mcp-client-Dw2P7NDf.js";import"./auth-B5sZ5Nku.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-B6oDJj48.js";import"./task-board-ogD6qhBD.js";import"./schema-C6aNLxKf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-Cg1qs7zR.js";import"./use-ai-providers-C8uOURwM.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DO9n8G8k.js";import"./thread-route-5G3X8NOl.js";import"./dialog-XHYSv2FF.js";import"./Copy01-8PINeOv9.js";import"./Download01-ChKDQL-2.js";import"./use-organization-settings-Bfxc2_gK.js";import"./automation-runs-CyDBE23L.js";import"./agent-icon-BFmhGO5e.js";import"./AlertCircle-DnecbAPh.js";import"./Tool01-hRYJ57AS.js";import"./ArrowLeft-DKxrZoHN.js";import"./Tool02-VahAgw3l.js";import"./ArrowRight-D5xmwFpZ.js";import"./TrendUp01-BrA1T2pc.js";import"./ZoomOut-BDx7bzVD.js";import"./Users03-BP5hN4tN.js";import"./CheckCircle-CUMJTel7.js";import"./ChevronRight-DBtAhTcB.js";import"./ChevronSelectorVertical-BWywRn6y.js";import"./DotsVertical-pXN36xDf.js";import"./UserSquare-B9-4LA44.js";import"./CreditCard01-DrPWgPgY.js";import"./Settings02-Bniu9Kuf.js";import"./Eye-uv0JopIC.js";import"./Share07-Cs5GE4ka.js";import"./GitBranch01-hVNlV4_5.js";import"./Globe01-cNyR-aGb.js";import"./XClose-C39TipQ9.js";import"./HardDrive-0QEGAcdt.js";import"./Image01-D8DJyxgN.js";import"./Key01-B4wEzwfA.js";import"./Link01-Dg3Wgdll.js";import"./LinkExternal01-DcDWG6E7.js";import"./Monitor01-DKUPqvEt.js";import"./Sun-B5-Zgu6g.js";import"./Package-C2z5N4Ha.js";import"./Palette-B-kHXH8u.js";import"./Play-DO5I4TQw.js";import"./Plus-CvXXAkh5.js";import"./SearchLg-ClCNH8OL.js";import"./SearchMd-BDM79zjM.js";import"./Shield01-Y_WnaKFU.js";import"./Stars01-6JGB8G_o.js";import"./Trash01-Cbibxhdy.js";import"./Upload01-DCSoEoPT.js";import"./User01-CMN81VOd.js";import"./Users01-G5gtvFkg.js";import"./XCircle-CAT1mlY1.js";import"./Zap-C6djsNj_.js";import"./useInfiniteQuery-BcvMcS30.js";import"./infiniteQueryObserver-Dl9Qp9QK.js";import"./use-connection-Czuylju7.js";import"./table-BZwt0mq1.js";import"./empty-state--1O_g2Vb.js";import"./use-infinite-scroll-D1TiZfg3.js";import"./use-members-Civ1IUhM.js";import"./use-org-auth-client-M8lU8FVO.js";import"./use-automations-J04oXu-B.js";import"./useSuspenseInfiniteQuery-D_McCkNU.js";import"./avatar-DgTZ1wzS.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-DsJQkugr.js";import"./markdown-CaFF2juq.js";import"./monaco-editor-B0P4X5oN.js";import"./editor-DL4--PcF.js";import"./mcp-app-renderer-QFINxU6q.js";import"./types-DWPAY_9z.js";import"./shell-layout-BORrXGw4.js";import"./anchors-yqDzZN4K.js";import"./project-icon-CfK-Oy7W.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-CrfbvrPh.js";import"./index-BrNAJ0cO.js";import"./integration-icon-dzOlSD8N.js";import"./required-auth-layout-Dar1s87n.js";import"./use-org-sso-LYhDAOed.js";import"./use-org-notice-D5gXZJLr.js";import"./use-navigate-to-agent-D8VlsMLe.js";import"./use-mcp-prompts-9ajBzqEl.js";import"./form-9R94AgDH.js";import"./file-type-icon-CZuZ3Yie.js";import"./drawer-Baxk3ITM.js";import"./collection-search-BPZ632Qb.js";import"./tabs-Dh_rs5-C.js";import"./toggle-group-BtCG8lSD.js";import"./task-route-D0StKYLX.js";import"./extract-connection-data-j3oiKoXE.js";import"./metadata-dUsYcpuu.js";import"./connection-BihzkxkU.js";import"./connection-card-CZIy77L1.js";import"./use-registry-connections-DjnXhjaU.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-BiWza_n6.js";import"./authenticate-and-persist-oauth-N0Onqilv.js";import"./mcp-oauth-DPzuG3zD.js";import"./collection-tabs-CkULqP96.js";import"./badge-BXckqUEw.js";import"./use-file-configs-BRBSB8n0.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-DXwTXKHW.js";import"./popover-B0ciwF2d.js";import"./github-icon-CPF2UG7w.js";import"./get-initials-D-f_fDFw.js";import"./select-model-yl9KFIES.js";import"./checkbox-BuDYKoG3.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-D_6Qxdwn.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-UkEj7H3u.js";import"./toolbar-Dz6pjT1t.js";import"./use-mcp-tools-DTlqZz4T.js";import"./skill-preview-BJQ-JS1j.js";import"./use-date-fns-locale-DTEXZF5C.js";import"./alert-dialog-CZ1KENHH.js";import"./use-debounced-autosave-DHIO9FEX.js";import"./scroll-area-C9lu0lSL.js";import"./search-input-DyWwr2ur.js";import"./use-mcp-auth-status-Dx3ZJ78o.js";import"./switch-CyYEu2Mr.js";import"./breadcrumb-BZZe5syI.js";import"./repository-import-picker-891LXjlh.js";import"./repository-picker-CJvOUjvr.js";import"./use-debounced-value-xYpMclvp.js";import"./use-secrets-eQ4xIgIJ.js";import"./client-icons-Bzy3f2K0.js";import"./connect-layout-Ckz-l1qi.js";import"./self-tool-result-DRjgFxL_.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-CHBVpe37.js";import"./use-tags-B0uMUfkd.js";import"./toolbar-icon-button-BhH4epEy.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-Brfwt3an.js";import"./site-error--i37Vnuw.js";import"./cards-C3DkSzrs.js";const W={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},X={authors:"sandbox.recordEditor.titleAuthor"};function ii(C){const t=L.c(41),{orgSlug:K,virtualMcpId:w,branch:f,kind:a,blockKey:u,block:S}=C,i=A();let b;t[0]!==f||t[1]!==K||t[2]!==w?(b={orgSlug:K,virtualMcpId:w,branch:f},t[0]=f,t[1]=K,t[2]=w,t[3]=b):b=t[3];const e=$(b);let h;t[4]!==S||t[5]!==a?(h=q(S,a),t[4]=S,t[5]=a,t[6]=h):h=t[6];const B=h;let k;t[7]!==u||t[8]!==a||t[9]!==e?(k=l=>{e.mutate({blockKey:u,data:H(u,a,l)})},t[7]=u,t[8]=a,t[9]=e,t[10]=k):k=t[10];let v;t[11]!==e.isPending?(v={isSaving:e.isPending},t[11]=e.isPending,t[12]=v):v=t[12];const[m,P]=U(B,k,v);let j;t[13]!==m||t[14]!==P?(j=(l,o)=>P({...m,[l]:o}),t[13]=m,t[14]=P,t[15]=j):j=t[15];const s=j,N=X[a];let n;t[16]!==i||t[17]!==N?(n=i(N),t[16]=i,t[17]=N,t[18]=n):n=t[18];let c;t[19]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[19]=n,t[20]=c):c=t[20];let d;t[21]!==e.isError||t[22]!==e.isPending?(d=r.jsx(G,{isPending:e.isPending,isError:e.isError}),t[21]=e.isError,t[22]=e.isPending,t[23]=d):d=t[23];let y;t[24]!==c||t[25]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[24]=c,t[25]=d,t[26]=y):y=t[26];const T=W[a];let x;if(t[27]!==m||t[28]!==s||t[29]!==i||t[30]!==T){let l;t[32]!==m||t[33]!==s||t[34]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(Q,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:m[o.key],onChange:p=>s(o.key,p),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(z,{value:F(m[o.key])||o.options?.[0]?.value,onValueChange:p=>s(o.key,p),children:[r.jsx(J,{id:o.key,className:"h-10 w-full",children:r.jsx(O,{placeholder:i(o.labelKey)})}),r.jsx(V,{children:(o.options??[]).map(p=>r.jsx(D,{value:p.value,children:i(p.labelKey)},p.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(M,{id:o.key,value:F(m[o.key]),onChange:p=>s(o.key,p.target.value),rows:3}):r.jsx(R,{id:o.key,value:F(m[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:p=>s(o.key,p.target.value),className:"h-10"})]})},o.key),t[32]=m,t[33]=s,t[34]=i,t[35]=l):l=t[35],x=T.map(l),t[27]=m,t[28]=s,t[29]=i,t[30]=T,t[31]=x}else x=t[31];let g;t[36]!==x?(g=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:x})}),t[36]=x,t[37]=g):g=t[37];let E;return t[38]!==y||t[39]!==g?(E=r.jsxs("div",{className:"flex h-full flex-col",children:[y,g]}),t[38]=y,t[39]=g,t[40]=E):E=t[40],E}export{ii as RecordEditor};
@@ -1 +0,0 @@
1
- import{c as at,b as ct,j as r}from"./index-ClceuAyk.js";import{C as dt}from"./checkbox-BuDYKoG3.js";import{I as it}from"./input-BnaH3Pwu.js";import{L as rt}from"./label-BXG-IHer.js";import{c as nt,b as ft,a as xt,d as ht,S as ut}from"./select-CPovt3xR.js";import{e as bt,bF as yt,j as jt,bG as gt,bH as vt}from"./index-ardO8QQc.js";import{u as Et}from"./use-autosave-BTBrWTLA.js";import"./Check-Cz1yJ2Ku.js";import"./ChevronUp-CzD3Q5Ez.js";import"./ArrowUp-Di6V-t98.js";import"./chat-context-DxdDV2c_.js";import"./use-panel-navigate-BYeq7p5w.js";import"./use-destination-route-C33Wg86r.js";import"./autosend-Do97LQ4X.js";import"./thread-intent-_gcPeplT.js";import"./slugify-CEUa2lfQ.js";import"./hooks-DPkoA9nj.js";import"./use-mcp-client-Dw2P7NDf.js";import"./auth-B5sZ5Nku.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-B6oDJj48.js";import"./task-board-ogD6qhBD.js";import"./schema-C6aNLxKf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-Cg1qs7zR.js";import"./use-ai-providers-C8uOURwM.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DO9n8G8k.js";import"./thread-route-5G3X8NOl.js";import"./dialog-XHYSv2FF.js";import"./Copy01-8PINeOv9.js";import"./Download01-ChKDQL-2.js";import"./use-organization-settings-Bfxc2_gK.js";import"./automation-runs-CyDBE23L.js";import"./agent-icon-BFmhGO5e.js";import"./AlertCircle-DnecbAPh.js";import"./Tool01-hRYJ57AS.js";import"./ArrowLeft-DKxrZoHN.js";import"./Tool02-VahAgw3l.js";import"./ArrowRight-D5xmwFpZ.js";import"./TrendUp01-BrA1T2pc.js";import"./ZoomOut-BDx7bzVD.js";import"./Users03-BP5hN4tN.js";import"./CheckCircle-CUMJTel7.js";import"./ChevronRight-DBtAhTcB.js";import"./ChevronSelectorVertical-BWywRn6y.js";import"./DotsVertical-pXN36xDf.js";import"./UserSquare-B9-4LA44.js";import"./CreditCard01-DrPWgPgY.js";import"./Settings02-Bniu9Kuf.js";import"./Eye-uv0JopIC.js";import"./Share07-Cs5GE4ka.js";import"./GitBranch01-hVNlV4_5.js";import"./Globe01-cNyR-aGb.js";import"./XClose-C39TipQ9.js";import"./HardDrive-0QEGAcdt.js";import"./Image01-D8DJyxgN.js";import"./Key01-B4wEzwfA.js";import"./Link01-Dg3Wgdll.js";import"./LinkExternal01-DcDWG6E7.js";import"./Monitor01-DKUPqvEt.js";import"./Sun-B5-Zgu6g.js";import"./Package-C2z5N4Ha.js";import"./Palette-B-kHXH8u.js";import"./Play-DO5I4TQw.js";import"./Plus-CvXXAkh5.js";import"./SearchLg-ClCNH8OL.js";import"./SearchMd-BDM79zjM.js";import"./Shield01-Y_WnaKFU.js";import"./Stars01-6JGB8G_o.js";import"./Trash01-Cbibxhdy.js";import"./Upload01-DCSoEoPT.js";import"./User01-CMN81VOd.js";import"./Users01-G5gtvFkg.js";import"./XCircle-CAT1mlY1.js";import"./Zap-C6djsNj_.js";import"./useInfiniteQuery-BcvMcS30.js";import"./infiniteQueryObserver-Dl9Qp9QK.js";import"./use-connection-Czuylju7.js";import"./table-BZwt0mq1.js";import"./empty-state--1O_g2Vb.js";import"./use-infinite-scroll-D1TiZfg3.js";import"./use-members-Civ1IUhM.js";import"./use-org-auth-client-M8lU8FVO.js";import"./use-automations-J04oXu-B.js";import"./useSuspenseInfiniteQuery-D_McCkNU.js";import"./avatar-DgTZ1wzS.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-DsJQkugr.js";import"./markdown-CaFF2juq.js";import"./monaco-editor-B0P4X5oN.js";import"./editor-DL4--PcF.js";import"./mcp-app-renderer-QFINxU6q.js";import"./types-DWPAY_9z.js";import"./shell-layout-BORrXGw4.js";import"./anchors-yqDzZN4K.js";import"./project-icon-CfK-Oy7W.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-CrfbvrPh.js";import"./index-BrNAJ0cO.js";import"./integration-icon-dzOlSD8N.js";import"./required-auth-layout-Dar1s87n.js";import"./use-org-sso-LYhDAOed.js";import"./use-org-notice-D5gXZJLr.js";import"./use-navigate-to-agent-D8VlsMLe.js";import"./use-mcp-prompts-9ajBzqEl.js";import"./form-9R94AgDH.js";import"./file-type-icon-CZuZ3Yie.js";import"./drawer-Baxk3ITM.js";import"./collection-search-BPZ632Qb.js";import"./tabs-Dh_rs5-C.js";import"./toggle-group-BtCG8lSD.js";import"./task-route-D0StKYLX.js";import"./extract-connection-data-j3oiKoXE.js";import"./metadata-dUsYcpuu.js";import"./connection-BihzkxkU.js";import"./connection-card-CZIy77L1.js";import"./use-registry-connections-DjnXhjaU.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-BsfO56Vo.js";import"./connection-form-helpers-BiWza_n6.js";import"./authenticate-and-persist-oauth-N0Onqilv.js";import"./mcp-oauth-DPzuG3zD.js";import"./collection-tabs-CkULqP96.js";import"./badge-BXckqUEw.js";import"./use-file-configs-BRBSB8n0.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-DXwTXKHW.js";import"./popover-B0ciwF2d.js";import"./github-icon-CPF2UG7w.js";import"./get-initials-D-f_fDFw.js";import"./select-model-yl9KFIES.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-D_6Qxdwn.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-UkEj7H3u.js";import"./toolbar-Dz6pjT1t.js";import"./use-mcp-tools-DTlqZz4T.js";import"./skill-preview-BJQ-JS1j.js";import"./use-date-fns-locale-DTEXZF5C.js";import"./alert-dialog-CZ1KENHH.js";import"./use-debounced-autosave-DHIO9FEX.js";import"./scroll-area-C9lu0lSL.js";import"./search-input-DyWwr2ur.js";import"./use-mcp-auth-status-Dx3ZJ78o.js";import"./switch-CyYEu2Mr.js";import"./breadcrumb-BZZe5syI.js";import"./repository-import-picker-891LXjlh.js";import"./repository-picker-CJvOUjvr.js";import"./use-debounced-value-xYpMclvp.js";import"./use-secrets-eQ4xIgIJ.js";import"./client-icons-Bzy3f2K0.js";import"./connect-layout-Ckz-l1qi.js";import"./self-tool-result-DRjgFxL_.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-CHBVpe37.js";import"./use-tags-B0uMUfkd.js";import"./toolbar-icon-button-BhH4epEy.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-Brfwt3an.js";import"./site-error--i37Vnuw.js";import"./cards-C3DkSzrs.js";const Pt=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function ki(ot){const t=at.c(108),{orgSlug:J,virtualMcpId:W,branch:X,blockKey:Z,block:tt}=ot,e=ct();let V;t[0]!==X||t[1]!==J||t[2]!==W?(V={orgSlug:J,virtualMcpId:W,branch:X},t[0]=X,t[1]=J,t[2]=W,t[3]=V):V=t[3];const m=bt(V);let G;t[4]!==tt?(G=yt(tt),t[4]=tt,t[5]=G):G=t[5];const mt=G;let H;t[6]!==Z||t[7]!==m?(H=i=>{m.mutate({blockKey:Z,data:vt(i)})},t[6]=Z,t[7]=m,t[8]=H):H=t[8];let M;t[9]!==m.isPending?(M={isSaving:m.isPending},t[9]=m.isPending,t[10]=M):M=t[10];const[o,et]=Et(mt,H,M);let Y;t[11]!==o||t[12]!==et?(Y=i=>et({...o,...i}),t[11]=o,t[12]=et,t[13]=Y):Y=t[13];const s=Y;let p;t[14]!==e?(p=e("sandbox.redirectEditor.title"),t[14]=e,t[15]=p):p=t[15];let l;t[16]!==p?(l=r.jsx("span",{className:"text-sm font-medium",children:p}),t[16]=p,t[17]=l):l=t[17];let a;t[18]!==m.isError||t[19]!==m.isPending?(a=r.jsx(jt,{isPending:m.isPending,isError:m.isError}),t[18]=m.isError,t[19]=m.isPending,t[20]=a):a=t[20];let c;t[21]!==l||t[22]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,a]}),t[21]=l,t[22]=a,t[23]=c):c=t[23];let d;t[24]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[24]=e,t[25]=d):d=t[25];let n;t[26]!==d?(n=r.jsx(rt,{htmlFor:"redirect-from",children:d}),t[26]=d,t[27]=n):n=t[27];const st=o.from;let f;t[28]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[28]=e,t[29]=f):f=t[29];let x;t[30]!==s?(x=i=>s({from:i.target.value}),t[30]=s,t[31]=x):x=t[31];let h;t[32]!==o.from||t[33]!==f||t[34]!==x?(h=r.jsx(it,{id:"redirect-from",value:st,placeholder:f,onChange:x,className:"h-10"}),t[32]=o.from,t[33]=f,t[34]=x,t[35]=h):h=t[35];let u;t[36]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[36]=e,t[37]=u):u=t[37];let b;t[38]!==u?(b=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[38]=u,t[39]=b):b=t[39];let y;t[40]!==n||t[41]!==h||t[42]!==b?(y=r.jsxs("div",{className:"space-y-2",children:[n,h,b]}),t[40]=n,t[41]=h,t[42]=b,t[43]=y):y=t[43];let j;t[44]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[44]=e,t[45]=j):j=t[45];let g;t[46]!==j?(g=r.jsx(rt,{htmlFor:"redirect-to",children:j}),t[46]=j,t[47]=g):g=t[47];const pt=o.to;let v;t[48]!==e?(v=e("sandbox.redirectEditor.toPlaceholder"),t[48]=e,t[49]=v):v=t[49];let E;t[50]!==s?(E=i=>s({to:i.target.value}),t[50]=s,t[51]=E):E=t[51];let P;t[52]!==o.to||t[53]!==v||t[54]!==E?(P=r.jsx(it,{id:"redirect-to",value:pt,placeholder:v,onChange:E,className:"h-10"}),t[52]=o.to,t[53]=v,t[54]=E,t[55]=P):P=t[55];let N;t[56]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[56]=e,t[57]=N):N=t[57];let S;t[58]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[58]=N,t[59]=S):S=t[59];let C;t[60]!==g||t[61]!==P||t[62]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[g,P,S]}),t[60]=g,t[61]=P,t[62]=S,t[63]=C):C=t[63];let T;t[64]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[64]=e,t[65]=T):T=t[65];let k;t[66]!==T?(k=r.jsx(rt,{htmlFor:"redirect-type",children:T}),t[66]=T,t[67]=k):k=t[67];const lt=o.type;let w;t[68]!==s?(w=i=>s({type:i}),t[68]=s,t[69]=w):w=t[69];let R;t[70]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[70]=e,t[71]=R):R=t[71];let I;t[72]!==R?(I=r.jsx(ft,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(xt,{placeholder:R})}),t[72]=R,t[73]=I):I=t[73];let _;t[74]!==e?(_=Pt.map(i=>r.jsx(nt,{value:i.value,children:e(i.labelKey,{status:gt[i.value]})},i.value)),t[74]=e,t[75]=_):_=t[75];let F;t[76]!==_?(F=r.jsx(ht,{children:_}),t[76]=_,t[77]=F):F=t[77];let L;t[78]!==o.type||t[79]!==w||t[80]!==I||t[81]!==F?(L=r.jsxs(ut,{value:lt,onValueChange:w,children:[I,F]}),t[78]=o.type,t[79]=w,t[80]=I,t[81]=F,t[82]=L):L=t[82];let $;t[83]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("strong",{children:"Temporary"}),t[83]=$):$=t[83];let q;t[84]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",$," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[84]=q):q=t[84];let Q;t[85]!==k||t[86]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[85]=k,t[86]=L,t[87]=Q):Q=t[87];let K;t[88]!==s?(K=i=>s({discardQueryParameters:i===!0}),t[88]=s,t[89]=K):K=t[89];let D;t[90]!==o.discardQueryParameters||t[91]!==K?(D=r.jsx(dt,{checked:o.discardQueryParameters,onCheckedChange:K}),t[90]=o.discardQueryParameters,t[91]=K,t[92]=D):D=t[92];let A;t[93]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[93]=e,t[94]=A):A=t[94];let B;t[95]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[95]=A,t[96]=B):B=t[96];let O;t[97]!==D||t[98]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[D,B]}),t[97]=D,t[98]=B,t[99]=O):O=t[99];let U;t[100]!==y||t[101]!==C||t[102]!==Q||t[103]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[y,C,Q,O]})}),t[100]=y,t[101]=C,t[102]=Q,t[103]=O,t[104]=U):U=t[104];let z;return t[105]!==U||t[106]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[105]=U,t[106]=c,t[107]=z):z=t[107],z}export{ki as RedirectEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BlNehP-G.js","assets/index-ClceuAyk.js","assets/index-DJADaZ4J.css","assets/Tool02-VahAgw3l.js","assets/CheckCircle-CUMJTel7.js","assets/Settings02-Bniu9Kuf.js","assets/use-mcp-client-Dw2P7NDf.js","assets/auth-B5sZ5Nku.js","assets/useInfiniteQuery-BcvMcS30.js","assets/infiniteQueryObserver-Dl9Qp9QK.js","assets/badge-BXckqUEw.js","assets/input-BnaH3Pwu.js","assets/dropdown-menu-DXwTXKHW.js","assets/Check-Cz1yJ2Ku.js","assets/ChevronRight-DBtAhTcB.js","assets/DotsVertical-pXN36xDf.js","assets/table-BZwt0mq1.js","assets/toggle-group-BtCG8lSD.js","assets/use-view-mode-DBUPinV2.js","assets/Globe01-cNyR-aGb.js","assets/SearchMd-BDM79zjM.js","assets/dialog-XHYSv2FF.js","assets/AlertCircle-DnecbAPh.js","assets/Download01-ChKDQL-2.js","assets/Upload01-DCSoEoPT.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CZ1KENHH.js","assets/Trash01-Cbibxhdy.js","assets/label-BXG-IHer.js","assets/select-CPovt3xR.js","assets/ChevronUp-CzD3Q5Ez.js","assets/switch-CyYEu2Mr.js","assets/textarea-BsfO56Vo.js","assets/ArrowLeft-DKxrZoHN.js","assets/ArrowRight-D5xmwFpZ.js","assets/Link01-Dg3Wgdll.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-BuDYKoG3.js","assets/Eye-uv0JopIC.js","assets/LinkExternal01-DcDWG6E7.js","assets/XCircle-CAT1mlY1.js","assets/use-infinite-scroll-D1TiZfg3.js","assets/use-copy-DsJQkugr.js","assets/Copy01-8PINeOv9.js","assets/Key01-B4wEzwfA.js","assets/Plus-CvXXAkh5.js","assets/mcp-oauth-DPzuG3zD.js","assets/Play-DO5I4TQw.js"])))=>i.map(i=>d[i]);
2
- import{c as i,j as e,r as s,h as a,bq as o}from"./index-ClceuAyk.js";import{R as n}from"./require-capability-B5XPZW1m.js";import"./access-gate-CDgve0Y7.js";import"./capability-load-error-BR7ZE3ck.js";const c=s.lazy(()=>o(()=>import("./registry-layout-BlNehP-G.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])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(n,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{className:"size-5 text-muted-foreground"})}),children:e.jsx(c,{})})}),r[0]=t):t=r[0],t}export{u as default};
@@ -1 +0,0 @@
1
- import{b as ie,r as Q,G as Ge,K as de,m as Ke,j as s,l as q,h as Oe,B as ae,c as J,ae as Je,af as Me,ag as re,ah as Ve,ak as We,n as it,aq as jt,ar as Dt,e as rt,t as ve,o as ze,P as Ce,z as at,b1 as Xe,b0 as et,a$ as tt,C as Pt,a3 as be,a4 as je,a1 as De,a2 as Pe,ap as st,c2 as Mt,u as ct,ds as dt,fh as vt,E as Lt,d as yt}from"./index-ClceuAyk.js";import{u as wt}from"./use-organization-roles-DcyFYuL1.js";import{u as Fe}from"./use-org-auth-client-M8lU8FVO.js";import{g as mt,a as Gt}from"./role-color-Dn2tXDDF.js";import{B as Le}from"./badge-BXckqUEw.js";import{A as ut,a as ft,c as gt,d as ht,b as Tt,f as xt,g as _t,e as pt}from"./alert-dialog-CZ1KENHH.js";import{c as kt,D as Ut,b as Bt,a as Vt}from"./dropdown-menu-DXwTXKHW.js";import{i as Yt}from"./DotsVertical-pXN36xDf.js";import{s as Ye}from"./Plus-CvXXAkh5.js";import{s as Kt}from"./Trash01-Cbibxhdy.js";import{C as zt}from"./collection-table-wrapper-B9XCvDX2.js";import{E as lt}from"./empty-state--1O_g2Vb.js";import{S as Qe}from"./search-input-DyWwr2ur.js";import{P as Et,D as It}from"./ai-providers-logos-DD3qZ33J.js";import{I as $e}from"./integration-icon-dzOlSD8N.js";import{u as Ft}from"./use-infinite-scroll-D1TiZfg3.js";import{C as ke}from"./checkbox-BuDYKoG3.js";import{i as Qt}from"./ArrowLeft-DKxrZoHN.js";import{u as $t}from"./useSuspenseInfiniteQuery-D_McCkNU.js";import{u as Ht,S as qt}from"./use-mcp-client-Dw2P7NDf.js";import{C as Zt}from"./collection-search-BPZ632Qb.js";import{p as Jt}from"./connection-BihzkxkU.js";import{a as Rt}from"./use-members-Civ1IUhM.js";import{g as St}from"./get-initials-D-f_fDFw.js";import{u as Wt}from"./use-connection-Czuylju7.js";import{d as Xt}from"./use-virtual-mcp-Cg1qs7zR.js";import{u as es,g as ts}from"./use-ai-providers-C8uOURwM.js";import{A as At}from"./avatar-DgTZ1wzS.js";import{S as me}from"./switch-CyYEu2Mr.js";import{s as ss,P as ls}from"./project-icon-CfK-Oy7W.js";import{t as os}from"./ChevronUp-CzD3Q5Ez.js";import{i as ns}from"./ChevronRight-DBtAhTcB.js";import{A as is}from"./access-gate-CDgve0Y7.js";import"./Check-Cz1yJ2Ku.js";import"./table-BZwt0mq1.js";import"./ArrowUp-Di6V-t98.js";import"./SearchMd-BDM79zjM.js";import"./Tool02-VahAgw3l.js";import"./agent-icon-BFmhGO5e.js";import"./AlertCircle-DnecbAPh.js";import"./Tool01-hRYJ57AS.js";import"./ArrowRight-D5xmwFpZ.js";import"./TrendUp01-BrA1T2pc.js";import"./ZoomOut-BDx7bzVD.js";import"./Users03-BP5hN4tN.js";import"./CheckCircle-CUMJTel7.js";import"./ChevronSelectorVertical-BWywRn6y.js";import"./UserSquare-B9-4LA44.js";import"./Copy01-8PINeOv9.js";import"./CreditCard01-DrPWgPgY.js";import"./Download01-ChKDQL-2.js";import"./Settings02-Bniu9Kuf.js";import"./Eye-uv0JopIC.js";import"./Share07-Cs5GE4ka.js";import"./GitBranch01-hVNlV4_5.js";import"./Globe01-cNyR-aGb.js";import"./XClose-C39TipQ9.js";import"./HardDrive-0QEGAcdt.js";import"./Image01-D8DJyxgN.js";import"./Key01-B4wEzwfA.js";import"./Link01-Dg3Wgdll.js";import"./LinkExternal01-DcDWG6E7.js";import"./Monitor01-DKUPqvEt.js";import"./Sun-B5-Zgu6g.js";import"./Package-C2z5N4Ha.js";import"./Palette-B-kHXH8u.js";import"./Play-DO5I4TQw.js";import"./SearchLg-ClCNH8OL.js";import"./Shield01-Y_WnaKFU.js";import"./Stars01-6JGB8G_o.js";import"./Upload01-DCSoEoPT.js";import"./User01-CMN81VOd.js";import"./Users01-G5gtvFkg.js";import"./XCircle-CAT1mlY1.js";import"./Zap-C6djsNj_.js";import"./infiniteQueryObserver-Dl9Qp9QK.js";import"./auth-B5sZ5Nku.js";import"./github-repo-CTPv5ZM2.js";import"./capability-load-error-BR7ZE3ck.js";const He="basic-usage",qe=[{id:He,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","REPOSITORY_SEARCH_BRANCHES","GIT_PROVIDER_CAPABILITIES","GIT_ACCOUNT_LIST","REPOSITORY_LIST","REPOSITORY_SEARCH","CHANGE_REQUEST_STATE","CHANGE_REQUEST_LAST_MERGED","CHANGE_REQUEST_LIST_OPEN","CHANGE_REQUEST_CHECK_LOG","GLOBAL_SEARCH","ORGANIZATION_SETTINGS_GET","USER_GET","BRAND_CONTEXT_LIST","ORGANIZATION_HAS_SITE","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_AUTOMATION_LIST","TASK_BOARD_AUTOMATION_UPSERT","TASK_BOARD_AUTOMATION_DELETE","TASK_BOARD_PROMPT_LIST","TASK_BOARD_PROMPT_UPSERT","TASK_BOARD_PROMPT_DELETE","TASK_BOARD_ITEM_PRS_GET","TASK_BOARD_PREVIEW_PROBE","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","NOTIFICATION_LIST","NOTIFICATION_MARK_READ","NOTIFICATION_SUBSCRIPTION_SET","NOTIFICATION_SUBSCRIPTION_LIST"]},{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","JIRA_INTEGRATION_GET","JIRA_INTEGRATION_UPSERT","JIRA_INTEGRATION_DELETE","JIRA_BOARDS_LIST","JIRA_BOARD_COLUMNS_LIST","JIRA_AUTOMATION_LIST","JIRA_AUTOMATION_UPSERT","JIRA_AUTOMATION_DELETE","JIRA_RUN_START"]},{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}];[...qe.find(t=>t.id===He)?.tools??[]];const rs=["agents:manage","connections:manage"];new Set(qe.filter(t=>rs.includes(t.id)).flatMap(t=>t.tools));function as(){const t=new Map;for(const e of qe){if(e.id===He)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 cs(t,e,l){return l?!0:t.tools.every(r=>e.includes(r))}function ds(t,e,l){if(l){const n=new Set(e);for(const o of t.tools)n.add(o);return Array.from(n)}const r=new Set(e);for(const n of t.tools)r.delete(n);return Array.from(r)}const Ze="projects",ot="*";function ms(t){if(!t)return null;const e=t[Ze];return Array.isArray(e)?e:null}function us(t){const e=J.c(21),{connection:l,isSelected:r,hasToolsEnabled:n,activeToolsCount:o,totalToolsCount:d,onSelect:f,onToggle:m}=t,c=r?"bg-accent/50":"hover:bg-muted/50";let g;e[0]!==c?(g=q("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",c),e[0]=c,e[1]=g):g=e[1];let u;e[2]!==l.icon||e[3]!==l.title?(u=s.jsx($e,{icon:l.icon,name:l.title,size:"xs"}),e[2]=l.icon,e[3]=l.title,e[4]=u):u=e[4];let h;e[5]!==l.title?(h=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]=h):h=e[6];let x;e[7]!==f||e[8]!==u||e[9]!==h?(x=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:f,children:[u,h]}),e[7]=f,e[8]=u,e[9]=h,e[10]=x):x=e[10];let a;e[11]!==o||e[12]!==l.tools||e[13]!==n||e[14]!==m||e[15]!==d?(a=l.tools&&l.tools.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[o,"/",d]}),s.jsx(ke,{checked:n,onCheckedChange:m,onClick:fs})]}),e[11]=o,e[12]=l.tools,e[13]=n,e[14]=m,e[15]=d,e[16]=a):a=e[16];let T;return e[17]!==g||e[18]!==x||e[19]!==a?(T=s.jsxs("div",{className:g,children:[x,a]}),e[17]=g,e[18]=x,e[19]=a,e[20]=T):T=e[20],T}function fs(t){return t.stopPropagation()}function gs(t){const e=J.c(18),{connectionId:l,tool:r,isSelected:n,onToggle:o}=t,d=`tool-${l}-${r.name}`,f=n?"text-foreground":"text-muted-foreground";let m;e[0]!==f?(m=q("text-sm font-medium",f),e[0]=f,e[1]=m):m=e[1];let c;e[2]!==m||e[3]!==r.name?(c=s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:m,children:r.name})}),e[2]=m,e[3]=r.name,e[4]=c):c=e[4];let g;e[5]!==r.description?(g=r.description&&s.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:r.description}),e[5]=r.description,e[6]=g):g=e[6];let u;e[7]!==c||e[8]!==g?(u=s.jsxs("div",{className:"flex-1 min-w-0",children:[c,g]}),e[7]=c,e[8]=g,e[9]=u):u=e[9];const h=`tool-${l}-${r.name}`;let x;e[10]!==n||e[11]!==o||e[12]!==h?(x=s.jsx("div",{className:"flex items-center shrink-0",children:s.jsx(ke,{id:h,checked:n,onCheckedChange:o,onClick:hs})}),e[10]=n,e[11]=o,e[12]=h,e[13]=x):x=e[13];let a;return e[14]!==d||e[15]!==u||e[16]!==x?(a=s.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:d,children:[u,x]}),e[14]=d,e[15]=u,e[16]=x,e[17]=a):a=e[17],a}function hs(t){return t.stopPropagation()}function Ts({toolSet:t,onToolSetChange:e,excludeVirtualMcpId:l,searchQuery:r}){const n=ie(),[o,d]=Q.useState(""),f=r!==void 0?r:o,m=Q.useDeferredValue(f),[c,g]=Q.useState("all"),[u,h]=Q.useState(!1),x=Q.useRef(new Set(Object.keys(t))),{org:a}=Ge(),T=Ht({connectionId:qt,orgId:a.id,orgSlug:a.slug}),S=100,E=m.trim(),I=E?{operator:"or",conditions:[{field:["title"],operator:"contains",value:E},{field:["description"],operator:"contains",value:E}]}:void 0,b=!!l,N={...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:S,offset:0,...b&&{include_virtual:!0}},D=JSON.stringify(N),{data:A,fetchNextPage:j,hasNextPage:P,isFetchingNextPage:_}=$t({queryKey:de.collectionListInfinite(T,a.id,"","CONNECTIONS",D),queryFn:async({pageParam:p=0})=>(await T.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...I&&{where:I},orderBy:[{field:["updated_at"],direction:"asc"}],limit:S,offset:p,...b&&{include_virtual:!0}}})).structuredContent,initialPageParam:0,getNextPageParam:(p,w)=>{if(p?.hasMore)return w.reduce((H,Z)=>H+(Z?.items?.length??0),0)},staleTime:3e4}),O=A?.pages.flatMap(p=>p?.items??[])??[],C=Ft(j,P??!1,_),i=l?O.filter(p=>p.connection_type!=="VIRTUAL"?!0:Jt(p.connection_url)!==l):O,R=x.current,k=[...R.values()].map(p=>i.find(w=>w.id===p)).filter(p=>p!==void 0),G=i.filter(p=>!R.has(p.id)),Y=[...k,...G],v=p=>{const w=t[p];return w!==void 0&&w.length>0},K=Y.filter(p=>{if(c==="all")return!0;const w=v(p.id);return c==="selected"?w:c==="unselected"?!w:!0}),[L,z]=Q.useState(Y[0]?.id??null),V=L?Y.find(p=>p.id===L)??null:null,{data:U,isFetching:B}=Ke({queryKey:de.collectionItem(T,a.id,"","CONNECTIONS",L??""),queryFn:async()=>L?(await T.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:L}})).structuredContent?.item??null:null,enabled:!!L,staleTime:3e4}),$=U?.tools??[],W=(p,w)=>t[p]?.includes(w)??!1,te=(p,w)=>{const H=t[p]??[],Z=H.includes(w),se={...t};if(Z){const le=H.filter(ne=>ne!==w);le.length===0?delete se[p]:se[p]=le}else se[p]=[...H,w];e(se)},oe=p=>{const w=p===L?$:[];if(!w.length)return;const H=t[p]??[],Z=w.map(ne=>ne.name),se=H.length>0&&Z.every(ne=>H.includes(ne)),le={...t};se?delete le[p]:(le[p]=Z,z(p)),e(le)},F=p=>{z(p),h(!0)},X=()=>{h(!1)};return s.jsxs("div",{className:"flex h-full",children:[s.jsxs("div",{className:q("w-full md:w-80 border-r border-border flex flex-col",u&&"hidden md:flex"),children:[r===void 0&&s.jsx(Zt,{value:o,onChange:d,placeholder:n("common.toolSetSelector.searchPlaceholder")}),s.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[s.jsx("button",{onClick:()=>g("all"),className:q("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:n("common.toolSetSelector.filterAll")}),s.jsx("button",{onClick:()=>g("selected"),className:q("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:n("common.toolSetSelector.filterSelected")}),s.jsx("button",{onClick:()=>g("unselected"),className:q("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:n("common.toolSetSelector.filterUnselected")})]}),s.jsx("div",{className:"flex-1 overflow-auto",children:K.length===0?s.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:n(f?"common.toolSetSelector.noConnectionsFound":c==="selected"?"common.toolSetSelector.noServersSelected":c==="unselected"?"common.toolSetSelector.noUnselectedServers":"common.toolSetSelector.noConnectionsAvailable")}):s.jsxs("div",{className:"p-2 space-y-1",children:[K.map(p=>{const w=L===p.id,H=w?$.length:0,Z=t[p.id]?.length??0;return s.jsx(us,{connection:{...p,tools:w?$:p.tools},isSelected:w,hasToolsEnabled:v(p.id),activeToolsCount:Z,totalToolsCount:H,onSelect:()=>F(p.id),onToggle:()=>oe(p.id)},p.id)}),s.jsx("div",{ref:C,className:"h-4"}),_&&s.jsx("div",{className:"flex justify-center py-3",children:s.jsx(Oe,{className:"size-4.5 text-muted-foreground"})})]})})]}),s.jsx("div",{className:q("flex-1 flex-col",u?"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(ae,{variant:"ghost",size:"sm",onClick:X,className:"h-8 w-8 p-0 shrink-0",children:s.jsx(Qt,{size:20})}),s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[s.jsx($e,{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(Oe,{className:"size-4.5 text-muted-foreground"})}):$.length===0?s.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:n("common.toolSetSelector.noToolsAvailable")}):s.jsx("div",{className:"space-y-2",children:$.map(p=>s.jsx(gs,{connectionId:V.id,tool:p,isSelected:W(V.id,p.name),onToggle:()=>te(V.id,p.name)},p.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:n("common.toolSetSelector.selectConnection")})})})]})}const xs=Je({role:Je({id:re().optional(),slug:re().optional(),label:re()}),allowAllStaticPermissions:Ve(),staticPermissions:Me(re()),toolSet:We(re(),Me(re())),allowAllModels:Ve(),modelSet:We(re(),Me(re())),allowAllProjects:Ve(),projectSet:Me(re()),memberIds:Me(re())});function nt(t,e,l,r){const n=s.jsx(me,{checked:e,disabled:l,onCheckedChange:r});return l?s.jsx(be,{children:s.jsxs(je,{children:[s.jsx(De,{asChild:!0,children:s.jsx("div",{children:n})}),s.jsx(Pe,{children:s.jsx("p",{children:t("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):n}function _s(t){const e=J.c(41),{allowAllStaticPermissions:l,staticPermissions:r,onAllowAllChange:n,onPermissionsChange:o,readOnly:d,searchQuery:f}=t,m=d===void 0?!1:d,c=ie();let g;e[0]!==f?(g=f.trim().toLowerCase(),e[0]=f,e[1]=g):g=e[1];const u=Q.useDeferredValue(g);let h;if(e[2]!==l||e[3]!==u||e[4]!==n||e[5]!==o||e[6]!==m||e[7]!==f||e[8]!==r||e[9]!==c){const x=as(),a=(_,O)=>{if(!m){if(l&&O){const C=x.flatMap(Is).flatMap(Es);n(!1),o(C.filter(i=>!_.tools.includes(i)));return}l||o(ds(_,r,!O))}};let T;e[11]!==u?(T=_=>{const{section:O,capabilities:C}=_;return{section:O,capabilities:C.filter(i=>!u||i.label.toLowerCase().includes(u)||i.description.toLowerCase().includes(u))}},e[11]=u,e[12]=T):T=e[12];const S=x.map(T).filter(ps);let E;e[13]!==c?(E=c("settings.orgRoleDetail.general"),e[13]=c,e[14]=E):E=e[14];let I;e[15]!==c?(I=c("settings.orgRoleDetail.allOrgPermissions"),e[15]=c,e[16]=I):I=e[16];let b;e[17]!==c?(b=c("settings.orgRoleDetail.grantFullAccessToAllFeaturesBelow"),e[17]=c,e[18]=b):b=e[18];let N;e[19]!==l||e[20]!==n||e[21]!==o?(N=()=>{n(!l),o([])},e[19]=l,e[20]=n,e[21]=o,e[22]=N):N=e[22];let D;e[23]!==l||e[24]!==m||e[25]!==c||e[26]!==N?(D=nt(c,l,m,N),e[23]=l,e[24]=m,e[25]=c,e[26]=N,e[27]=D):D=e[27];let A;e[28]!==l||e[29]!==n||e[30]!==o||e[31]!==m?(A=m?void 0:()=>{n(!l),o([])},e[28]=l,e[29]=n,e[30]=o,e[31]=m,e[32]=A):A=e[32];let j;e[33]!==A||e[34]!==I||e[35]!==b||e[36]!==D?(j=s.jsx(et,{children:s.jsx(tt,{title:I,description:b,action:D,onClick:A})}),e[33]=A,e[34]=I,e[35]=b,e[36]=D,e[37]=j):j=e[37];let P;e[38]!==j||e[39]!==E?(P=s.jsx(Xe,{title:E,children:j}),e[38]=j,e[39]=E,e[40]=P):P=e[40],h=s.jsx("div",{children:s.jsxs("div",{className:"flex flex-col gap-10 py-4",children:[P,S.length===0&&u?s.jsx("p",{className:"text-sm text-muted-foreground py-4",children:c("settings.orgRoleDetail.noPermissionsMatch",{searchQuery:f})}):S.map(_=>{const{section:O,capabilities:C}=_;return s.jsx(Xe,{title:O,children:s.jsx(et,{children:C.map(i=>{const R=cs(i,r,l);return s.jsx(tt,{title:s.jsxs("span",{className:"flex items-center gap-1.5",children:[i.label,i.dangerous&&s.jsx(Pt,{size:12,className:"text-warning shrink-0"})]}),description:i.description,action:nt(c,R,m,()=>a(i,R)),onClick:m?void 0:()=>a(i,R)},i.id)})})},O)})]})}),e[2]=l,e[3]=u,e[4]=n,e[5]=o,e[6]=m,e[7]=f,e[8]=r,e[9]=c,e[10]=h}else h=e[10];return h}function ps(t){return t.capabilities.length>0}function Es(t){return t.tools}function Is(t){return t.capabilities}const Nt={anthropic:"Anthropic",openrouter:"OpenRouter"},Rs={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 Ss(t,e){const l=t.indexOf("/"),r=l>0?t.slice(0,l):e;return r.startsWith("~")?r.slice(1):r}function As(t){return Rs[t]??Nt[t]??t}function Ns(t){const e=t.indexOf(": ");return e>0&&e<32?t.slice(e+2):t}const Ct=30;function Cs(t){const e=J.c(40),{connectionId:l,subProviderId:r,subProviderName:n,groupLogo:o,models:d,allConnectionModelIds:f,selectedModels:m,allowAllModels:c,allConnectionModelsSelected:g,onToggleModel:u,onExitAllowAll:h,readOnly:x,defaultExpanded:a}=t,T=ie(),[S,E]=Q.useState(a),I=a||S,b=E,[N,D]=Q.useState(Ct);let A;e[0]!==g||e[1]!==c||e[2]!==m?(A=_=>c||g||m.includes("*")||m.includes(_),e[0]=g,e[1]=c,e[2]=m,e[3]=A):A=e[3];const j=A;let P;if(e[4]!==f||e[5]!==c||e[6]!==l||e[7]!==I||e[8]!==o||e[9]!==j||e[10]!==d||e[11]!==h||e[12]!==u||e[13]!==x||e[14]!==r||e[15]!==n||e[16]!==T||e[17]!==N){let _;e[19]!==j?(_=B=>j(B.id),e[19]=j,e[20]=_):_=e[20];const O=d.filter(_).length,C=d.slice(0,N),i=d.length>N;let R;e[21]===Symbol.for("react.memo_cache_sentinel")?(R=()=>b(Ds),e[21]=R):R=e[21];const k=o??Et[r]??It;let G;e[22]!==n||e[23]!==k?(G=s.jsx($e,{icon:k,name:n,size:"sm"}),e[22]=n,e[23]=k,e[24]=G):G=e[24];let Y;e[25]!==n?(Y=s.jsx("span",{className:"text-sm font-medium truncate",children:n}),e[25]=n,e[26]=Y):Y=e[26];let v;e[27]!==G||e[28]!==Y?(v=s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[G,Y]}),e[27]=G,e[28]=Y,e[29]=v):v=e[29];const K=T("settings.orgRoleDetail.enabledCount",{enabledCount:O,total:d.length});let L;e[30]!==K?(L=s.jsx(Le,{variant:"secondary",className:"text-xs text-muted-foreground",children:K}),e[30]=K,e[31]=L):L=e[31];let z;e[32]!==I?(z=I?s.jsx(os,{size:16,className:"text-muted-foreground shrink-0"}):s.jsx(ns,{size:16,className:"text-muted-foreground shrink-0"}),e[32]=I,e[33]=z):z=e[33];let V;e[34]!==L||e[35]!==z?(V=s.jsxs("div",{className:"flex items-center gap-3 shrink-0",children:[L,z]}),e[34]=L,e[35]=z,e[36]=V):V=e[36];let U;e[37]!==V||e[38]!==v?(U=s.jsxs("div",{className:"flex items-center justify-between gap-3 px-4 py-3 hover:bg-muted/50 cursor-pointer",onClick:R,children:[v,V]}),e[37]=V,e[38]=v,e[39]=U):U=e[39],P=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:[C.map(B=>{const $=j(B.id),W=()=>{if(!x){if(c){h(l,f,B.id);return}u(l,B.id)}};return s.jsxs("div",{className:q("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:W,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:js,children:x?s.jsx(be,{children:s.jsxs(je,{children:[s.jsx(De,{asChild:!0,children:s.jsx("div",{children:s.jsx(me,{checked:$,disabled:!0,onCheckedChange:bs})})}),s.jsx(Pe,{children:s.jsx("p",{children:T("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):s.jsx(me,{checked:$,onCheckedChange:W})})]},B.id)}),i&&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:()=>D(Os),children:T("settings.orgRoleDetail.showMore",{remaining:d.length-N})})]})]}),e[4]=f,e[5]=c,e[6]=l,e[7]=I,e[8]=o,e[9]=j,e[10]=d,e[11]=h,e[12]=u,e[13]=x,e[14]=r,e[15]=n,e[16]=T,e[17]=N,e[18]=P}else P=e[18];return P}function Os(t){return t+Ct}function bs(){}function js(t){return t.stopPropagation()}function Ds(t){return!t}function Ps(t){const e=J.c(33),{connection:l,selectedModels:r,allowAllModels:n,onToggleModel:o,onExitAllowAll:d,allConnectionModelsSelected:f,searchQuery:m,readOnly:c}=t,g=ts(l.id);let u,h,x,a,T;if(e[0]!==f||e[1]!==n||e[2]!==l.id||e[3]!==l.label||e[4]!==l.providerId||e[5]!==d||e[6]!==o||e[7]!==g||e[8]!==c||e[9]!==m||e[10]!==r){T=Symbol.for("react.early_return_sentinel");e:{let I;e[16]!==l.label?(I=R=>({...R,id:R.modelId,provider:l.label}),e[16]=l.label,e[17]=I):I=e[17];const b=g.filter(ys).map(I),N=m.trim().toLowerCase(),D=N?b.filter(R=>R.title.toLowerCase().includes(N)||R.id.toLowerCase().includes(N)||R.provider?.toLowerCase().includes(N)):b;if(D.length===0){T=null;break e}const A=new Map;for(const R of D){const k=Ss(R.id,l.providerId),G=A.get(k)??{models:[],logo:null};G.models.push({id:R.id,title:Ns(R.title),logo:R.logo}),!G.logo&&R.logo&&(G.logo=R.logo),A.set(k,G)}const j=Array.from(A.entries()).map(Ls).sort(vs),P=j.length===1||N.length>0;x="flex flex-col gap-3";const _=Et[l.providerId]??It;let O;e[18]!==l.providerId||e[19]!==_?(O=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]=O):O=e[20];const C=Nt[l.providerId]??l.providerId;let i;e[21]!==C?(i=s.jsx("h4",{className:"text-sm font-medium",children:C}),e[21]=C,e[22]=i):i=e[22],e[23]!==i||e[24]!==O?(a=s.jsxs("div",{className:"flex items-center gap-2",children:[O,i]}),e[23]=i,e[24]=O,e[25]=a):a=e[25],u="flex flex-col gap-3",h=j.map(R=>s.jsx(Cs,{connectionId:l.id,subProviderId:R.id,subProviderName:R.name,groupLogo:R.logo,models:R.models,allConnectionModelIds:b.map(Ms),selectedModels:r,allowAllModels:n,allConnectionModelsSelected:f,onToggleModel:o,onExitAllowAll:d,readOnly:c,defaultExpanded:P},R.id))}e[0]=f,e[1]=n,e[2]=l.id,e[3]=l.label,e[4]=l.providerId,e[5]=d,e[6]=o,e[7]=g,e[8]=c,e[9]=m,e[10]=r,e[11]=u,e[12]=h,e[13]=x,e[14]=a,e[15]=T}else u=e[11],h=e[12],x=e[13],a=e[14],T=e[15];if(T!==Symbol.for("react.early_return_sentinel"))return T;let S;e[26]!==u||e[27]!==h?(S=s.jsx("div",{className:u,children:h}),e[26]=u,e[27]=h,e[28]=S):S=e[28];let E;return e[29]!==x||e[30]!==a||e[31]!==S?(E=s.jsxs("div",{className:x,children:[a,S]}),e[29]=x,e[30]=a,e[31]=S,e[32]=E):E=e[32],E}function Ms(t){return t.id}function vs(t,e){return t.name.localeCompare(e.name)}function Ls(t){const[e,l]=t;return{id:e,name:As(e),logo:l.logo,models:l.models}}function ys(t,e,l){return l.findIndex(r=>r.modelId===t.modelId)===e}function ws(t){const e=J.c(41),{allowAllModels:l,modelSet:r,onAllowAllChange:n,onModelSetChange:o,readOnly:d,searchQuery:f}=t,m=d===void 0?!1:d,c=ie(),g=Q.useDeferredValue(f),u=es();let h;e[0]!==r||e[1]!==o?(h=(_,O)=>{const C=r[_]??[],i={...r};if(C.includes(O)){const R=C.filter(k=>k!==O);R.length===0?delete i[_]:i[_]=R}else i[_]=[...C,O];o(i)},e[0]=r,e[1]=o,e[2]=h):h=e[2];const x=h;let a;e[3]!==r||e[4]!==n||e[5]!==o?(a=(_,O,C)=>{n(!1),o({...r,[_]:O.filter(i=>i!==C)})},e[3]=r,e[4]=n,e[5]=o,e[6]=a):a=e[6];const T=a,S=!m&&"hover:bg-muted/50 cursor-pointer";let E;e[7]!==S?(E=q("flex items-center justify-between px-4 py-3 rounded-lg border border-border bg-card",S),e[7]=S,e[8]=E):E=e[8];let I;e[9]!==l||e[10]!==n||e[11]!==o||e[12]!==m?(I=()=>{if(m)return;const _=!l;n(_),_&&o({})},e[9]=l,e[10]=n,e[11]=o,e[12]=m,e[13]=I):I=e[13];let b;e[14]!==c?(b=c("settings.orgRoleDetail.allModels"),e[14]=c,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 D;e[18]!==l||e[19]!==n||e[20]!==o||e[21]!==m||e[22]!==c?(D=s.jsx("div",{onClick:ks,children:m?s.jsx(be,{children:s.jsxs(je,{children:[s.jsx(De,{asChild:!0,children:s.jsx("div",{children:s.jsx(me,{checked:l,disabled:!0,onCheckedChange:Gs})})}),s.jsx(Pe,{children:s.jsx("p",{children:c("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):s.jsx(me,{checked:l,onCheckedChange:_=>{n(_),_&&o({})}})}),e[18]=l,e[19]=n,e[20]=o,e[21]=m,e[22]=c,e[23]=D):D=e[23];let A;e[24]!==E||e[25]!==I||e[26]!==N||e[27]!==D?(A=s.jsxs("div",{className:E,onClick:I,children:[N,D]}),e[24]=E,e[25]=I,e[26]=N,e[27]=D,e[28]=A):A=e[28];let j;e[29]!==u||e[30]!==l||e[31]!==g||e[32]!==T||e[33]!==r||e[34]!==m||e[35]!==c||e[36]!==x?(j=u.length===0?s.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:c("settings.orgRoleDetail.noLlmConnectionsConfigured")}):u.map(_=>s.jsx(Q.Suspense,{fallback:s.jsxs("div",{className:"px-4 py-3 flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx(Oe,{className:"size-4"}),c("settings.orgRoleDetail.loadingModels")]}),children:s.jsx(Ps,{connection:_,selectedModels:r[_.id]??[],allowAllModels:l,onToggleModel:x,onExitAllowAll:T,allConnectionModelsSelected:(r[_.id]??[]).includes("*"),searchQuery:g,readOnly:m})},_.id)),e[29]=u,e[30]=l,e[31]=g,e[32]=T,e[33]=r,e[34]=m,e[35]=c,e[36]=x,e[37]=j):j=e[37];let P;return e[38]!==A||e[39]!==j?(P=s.jsxs("div",{className:"flex flex-col h-full overflow-auto gap-6 pb-6",children:[A,j]}),e[38]=A,e[39]=j,e[40]=P):P=e[40],P}function Gs(){}function ks(t){return t.stopPropagation()}function Us(t){const e=J.c(38),{allowAllProjects:l,projectSet:r,onAllowAllChange:n,onProjectSetChange:o,readOnly:d,searchQuery:f}=t,m=d===void 0?!1:d,c=ie(),g=Q.useDeferredValue(f),u=Xt();let h;if(e[0]!==l||e[1]!==g||e[2]!==n||e[3]!==o||e[4]!==r||e[5]!==m||e[6]!==c||e[7]!==u){const x=ss(u),a=g.trim().toLowerCase(),T=a?x.filter(C=>C.title.toLowerCase().includes(a)):x,S=C=>{if(l){n(!1),o(x.map(Ys).filter(i=>i!==C));return}r.includes(C)?o(r.filter(i=>i!==C)):o([...r,C])},E=!m&&"hover:bg-muted/50 cursor-pointer";let I;e[9]!==E?(I=q("flex items-center justify-between px-4 py-3 rounded-lg border border-border bg-card",E),e[9]=E,e[10]=I):I=e[10];let b;e[11]!==l||e[12]!==n||e[13]!==o||e[14]!==m?(b=()=>{if(m)return;const C=!l;n(C),C&&o([])},e[11]=l,e[12]=n,e[13]=o,e[14]=m,e[15]=b):b=e[15];let N;e[16]!==c?(N=c("settings.orgRoleDetail.allProjects"),e[16]=c,e[17]=N):N=e[17];let D;e[18]!==N?(D=s.jsx("span",{className:"text-sm font-medium",children:N}),e[18]=N,e[19]=D):D=e[19];let A;e[20]!==c?(A=c("settings.orgRoleDetail.allProjectsDescription"),e[20]=c,e[21]=A):A=e[21];let j;e[22]!==A?(j=s.jsx("span",{className:"text-xs text-muted-foreground",children:A}),e[22]=A,e[23]=j):j=e[23];let P;e[24]!==D||e[25]!==j?(P=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[D,j]}),e[24]=D,e[25]=j,e[26]=P):P=e[26];let _;e[27]!==l||e[28]!==n||e[29]!==o||e[30]!==m||e[31]!==c?(_=s.jsx("div",{onClick:Vs,children:m?s.jsx(be,{children:s.jsxs(je,{children:[s.jsx(De,{asChild:!0,children:s.jsx("div",{children:s.jsx(me,{checked:l,disabled:!0,onCheckedChange:Bs})})}),s.jsx(Pe,{children:s.jsx("p",{children:c("settings.orgRoleDetail.builtinRolePermissionsCannotBeChanged")})})]})}):s.jsx(me,{checked:l,onCheckedChange:C=>{n(C),C&&o([])}})}),e[27]=l,e[28]=n,e[29]=o,e[30]=m,e[31]=c,e[32]=_):_=e[32];let O;e[33]!==P||e[34]!==_||e[35]!==I||e[36]!==b?(O=s.jsxs("div",{className:I,onClick:b,children:[P,_]}),e[33]=P,e[34]=_,e[35]=I,e[36]=b,e[37]=O):O=e[37],h=s.jsxs("div",{className:"flex flex-col h-full overflow-auto gap-6 p-4",children:[O,x.length===0?s.jsx("div",{className:"flex items-center justify-center py-8 text-sm text-muted-foreground",children:c("settings.orgRoleDetail.noProjectsAvailable")}):s.jsx("div",{className:"flex flex-col gap-1",children:T.map(C=>{const i=l||r.includes(C.id);return s.jsxs("label",{className:q("flex items-center gap-3 px-3 py-2 rounded-lg border border-transparent",m?"cursor-default":"hover:bg-muted/50 cursor-pointer"),children:[s.jsx(ke,{checked:i,disabled:m,onCheckedChange:()=>{m||S(C.id)}}),s.jsx(ls,{icon:C.icon,name:C.title}),s.jsx("span",{className:"text-sm truncate",children:C.title})]},C.id)})})]}),e[0]=l,e[1]=g,e[2]=n,e[3]=o,e[4]=r,e[5]=m,e[6]=c,e[7]=u,e[8]=h}else h=e[8];return h}function Bs(){}function Vs(t){return t.stopPropagation()}function Ys(t){return t.id}function Ks(t){const e=J.c(75),{open:l,onOpenChange:r,selectedMemberIds:n,onAddMembers:o}=t,d=ie(),[f,m]=Q.useState(""),c=Q.useDeferredValue(f);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=[],e[0]=g):g=e[0];const[u,h]=Q.useState(g),{data:x}=Rt();let a,T,S,E,I,b,N,D,A,j,P;if(e[1]!==x?.data?.members||e[2]!==c||e[3]!==o||e[4]!==r||e[5]!==l||e[6]!==u||e[7]!==f||e[8]!==n||e[9]!==d){const L=x?.data?.members??[];let z;e[21]!==c?(z=F=>{const X=c.toLowerCase();return F.user?.name?.toLowerCase().includes(X)||F.user?.email?.toLowerCase().includes(X)},e[21]=c,e[22]=z):z=e[22];const V=L.filter(z);let U;e[23]!==o||e[24]!==r||e[25]!==u?(U=()=>{o(u),h([]),r(!1)},e[23]=o,e[24]=r,e[25]=u,e[26]=U):U=e[26],S=U,T=ut,j=l,P=r,a=ft,D="sm:max-w-md p-0";let B;e[27]!==d?(B=d("settings.orgRoleDetail.addMembersToRole"),e[27]=d,e[28]=B):B=e[28];let $;e[29]!==B?($=s.jsx(gt,{children:B}),e[29]=B,e[30]=$):$=e[30];let W;e[31]!==d?(W=d("settings.orgRoleDetail.selectMembersToAddToThisRole"),e[31]=d,e[32]=W):W=e[32];let te;e[33]!==W?(te=s.jsx(ht,{children:W}),e[33]=W,e[34]=te):te=e[34],e[35]!==$||e[36]!==te?(A=s.jsxs(Tt,{className:"px-6 pt-6",children:[$,te]}),e[35]=$,e[36]=te,e[37]=A):A=e[37],b="flex flex-col h-80";let oe;e[38]!==d?(oe=d("settings.orgRoleDetail.searchMembers"),e[38]=d,e[39]=oe):oe=e[39],e[40]!==f||e[41]!==oe?(N=s.jsx("div",{className:"border-b border-border px-4 py-3",children:s.jsx(Qe,{value:f,onChange:m,placeholder:oe,className:"w-full"})}),e[40]=f,e[41]=oe,e[42]=N):N=e[42],E="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:d(f?"settings.orgRoleDetail.noMembersFound":"settings.orgRoleDetail.noMembersAvailable")})}):s.jsx("div",{className:"px-6 py-2 space-y-1",children:V.map(F=>{const X=F.role!=="owner",p=n.includes(F.id),w=u.includes(F.id);return s.jsxs("label",{className:q("flex items-center gap-3 p-2 rounded-lg",!X||p?"opacity-50 cursor-not-allowed":"cursor-pointer hover:bg-muted/50"),children:[s.jsx(ke,{checked:w||p,onCheckedChange:()=>{!X||p||h(H=>H.includes(F.id)?H.filter(Z=>Z!==F.id):[...H,F.id])},disabled:!X||p}),s.jsx(At,{url:F.user?.image??void 0,fallback:St(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||d("settings.orgRoleDetail.unknown")}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:F.user?.email})]}),!X&&s.jsx(Le,{variant:"secondary",className:"shrink-0",children:d("settings.orgRoleDetail.owner")}),p&&X&&s.jsx(Le,{variant:"outline",className:"shrink-0",children:d("settings.orgRoleDetail.added")})]},F.id)})}),e[1]=x?.data?.members,e[2]=c,e[3]=o,e[4]=r,e[5]=l,e[6]=u,e[7]=f,e[8]=n,e[9]=d,e[10]=a,e[11]=T,e[12]=S,e[13]=E,e[14]=I,e[15]=b,e[16]=N,e[17]=D,e[18]=A,e[19]=j,e[20]=P}else a=e[10],T=e[11],S=e[12],E=e[13],I=e[14],b=e[15],N=e[16],D=e[17],A=e[18],j=e[19],P=e[20];let _;e[43]!==E||e[44]!==I?(_=s.jsx("div",{className:E,children:I}),e[43]=E,e[44]=I,e[45]=_):_=e[45];let O;e[46]!==_||e[47]!==b||e[48]!==N?(O=s.jsxs("div",{className:b,children:[N,_]}),e[46]=_,e[47]=b,e[48]=N,e[49]=O):O=e[49];let C;e[50]!==d?(C=d("settings.orgRoleDetail.cancel"),e[50]=d,e[51]=C):C=e[51];let i;e[52]!==C?(i=s.jsx(xt,{children:C}),e[52]=C,e[53]=i):i=e[53];const R=u.length===0;let k;e[54]!==u.length||e[55]!==d?(k=d("settings.orgRoleDetail.addWithCount",{count:u.length}),e[54]=u.length,e[55]=d,e[56]=k):k=e[56];let G;e[57]!==S||e[58]!==R||e[59]!==k?(G=s.jsx(_t,{onClick:S,disabled:R,children:k}),e[57]=S,e[58]=R,e[59]=k,e[60]=G):G=e[60];let Y;e[61]!==i||e[62]!==G?(Y=s.jsxs(pt,{className:"px-6 pb-6",children:[i,G]}),e[61]=i,e[62]=G,e[63]=Y):Y=e[63];let v;e[64]!==a||e[65]!==O||e[66]!==Y||e[67]!==D||e[68]!==A?(v=s.jsxs(a,{className:D,children:[A,O,Y]}),e[64]=a,e[65]=O,e[66]=Y,e[67]=D,e[68]=A,e[69]=v):v=e[69];let K;return e[70]!==T||e[71]!==v||e[72]!==j||e[73]!==P?(K=s.jsx(T,{open:j,onOpenChange:P,children:v}),e[70]=T,e[71]=v,e[72]=j,e[73]=P,e[74]=K):K=e[74],K}function zs(t){const e=J.c(33),{memberIds:l,onMemberIdsChange:r,readOnly:n,readOnlyMessage:o,searchQuery:d,addMemberDialogOpen:f,onAddMemberDialogOpenChange:m}=t,c=n===void 0?!1:n,g=o===void 0?void 0:o,u=ie(),h=Q.useDeferredValue(d),{data:x}=Rt();let a,T,S;if(e[0]!==x?.data?.members||e[1]!==h||e[2]!==l||e[3]!==r||e[4]!==c||e[5]!==g||e[6]!==d||e[7]!==u){const D=x?.data?.members??[];let A;e[11]!==l?(A=i=>l.includes(i.id),e[11]=l,e[12]=A):A=e[12];const j=D.filter(A);let P;e[13]!==h?(P=i=>{const R=h.toLowerCase();return i.user?.name?.toLowerCase().includes(R)||i.user?.email?.toLowerCase().includes(R)},e[13]=h,e[14]=P):P=e[14];const _=j.filter(P);let O;e[15]!==g||e[16]!==u?(O=g??u("settings.orgRoleDetail.ownerMembershipCannotBeChanged"),e[15]=g,e[16]=u,e[17]=O):O=e[17];const C=O;S="flex flex-col h-full",a="flex-1 overflow-auto",T=j.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:u("settings.orgRoleDetail.noMembers")}),s.jsx("p",{className:"text-sm text-muted-foreground",children:u("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:u("settings.orgRoleDetail.noMembersMatch",{searchQuery:d})})}):s.jsx("div",{className:"p-4 space-y-2",children:_.map(i=>s.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-muted/30",children:[s.jsx(At,{url:i.user?.image??void 0,fallback:St(i.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:i.user?.name||u("settings.orgRoleDetail.unknown")}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:i.user?.email})]}),c?s.jsx(be,{children:s.jsxs(je,{children:[s.jsx(De,{asChild:!0,children:s.jsx("div",{children:s.jsx(ae,{variant:"ghost",size:"sm",disabled:!0,"aria-label":u("settings.orgRoleDetail.removeMember",{name:i.user?.name||u("settings.orgRoleDetail.unknown")}),children:s.jsx(st,{size:16})})})}),s.jsx(Pe,{children:s.jsx("p",{children:C})})]})}):s.jsx(ae,{variant:"ghost",size:"sm","aria-label":u("settings.orgRoleDetail.removeMember",{name:i.user?.name||u("settings.orgRoleDetail.unknown")}),onClick:()=>r(l.filter(R=>R!==i.id)),children:s.jsx(st,{size:16})})]},i.id))}),e[0]=x?.data?.members,e[1]=h,e[2]=l,e[3]=r,e[4]=c,e[5]=g,e[6]=d,e[7]=u,e[8]=a,e[9]=T,e[10]=S}else a=e[8],T=e[9],S=e[10];let E;e[18]!==a||e[19]!==T?(E=s.jsx("div",{className:a,children:T}),e[18]=a,e[19]=T,e[20]=E):E=e[20];let I;e[21]!==l||e[22]!==r?(I=D=>r([...l,...D]),e[21]=l,e[22]=r,e[23]=I):I=e[23];let b;e[24]!==f||e[25]!==l||e[26]!==m||e[27]!==I?(b=s.jsx(Ks,{open:f,onOpenChange:m,selectedMemberIds:l,onAddMembers:I}),e[24]=f,e[25]=l,e[26]=m,e[27]=I,e[28]=b):b=e[28];let N;return e[29]!==S||e[30]!==E||e[31]!==b?(N=s.jsxs("div",{className:S,children:[E,b]}),e[29]=S,e[30]=E,e[31]=b,e[32]=N):N=e[32],N}function Fs(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(Oe,{className:"size-6 text-muted-foreground"})}),e[0]=l):l=e[0];let r;return e[1]!==t?(r=s.jsx(Q.Suspense,{fallback:l,children:s.jsx(zs,{...t})}),e[1]=t,e[2]=r):r=e[2],r}const Qs={owner:[],admin:[],user:[]};function $s(t,e,l,r){const n=t==="owner"||t==="admin";return{role:{id:l?.id,slug:t,label:t.charAt(0).toUpperCase()+t.slice(1)},allowAllStaticPermissions:n,staticPermissions:Qs[t],toolSet:{},allowAllModels:!0,modelSet:{},allowAllProjects:!0,projectSet:[],memberIds:e.filter(o=>o.role===t).map(o=>o.id)}}function Hs(t,e,l){const r=t.permission||{},n=r.self||[],o=n.includes("*"),d=o?[]:n.filter(a=>a!=="*"),f={};for(const[a,T]of Object.entries(r))if(!(a==="self"||a==="models"||a===Ze))if(a==="*")for(const S of l)f[S.id]=T.includes("*")?S.tools?.map(E=>E.name)??[]:T;else{const S=l.find(E=>E.id===a);S&&(f[a]=T.includes("*")?S.tools?.map(E=>E.name)??[]:T)}const m=r.models||[],c=m.length===0||m.includes("*:*"),g={};if(!c)for(const a of m){const T=a.indexOf(":");if(T===-1)continue;const S=a.slice(0,T),E=a.slice(T+1);g[S]||(g[S]=[]),g[S].push(E)}const u=ms(r),h=u===null||u.includes(ot),x=h?[]:u.filter(a=>a!==ot);return{role:{id:t.id,slug:t.role,label:t.label},allowAllStaticPermissions:o,staticPermissions:d,toolSet:f,allowAllModels:c,modelSet:g,allowAllProjects:h,projectSet:x,memberIds:e.filter(a=>a.role===t.role).map(a=>a.id)}}function qs(t,e){const l={};t.allowAllStaticPermissions?l.self=["*"]:t.staticPermissions.length>0&&(l.self=t.staticPermissions);for(const[r,n]of Object.entries(t.toolSet))if(n.length>0){const d=e.find(f=>f.id===r)?.tools?.map(f=>f.name)??[];l[r]=d.length>0&&d.every(f=>n.includes(f))?["*"]:n}if(t.allowAllModels)l.models=["*:*"];else{const r=[];for(const[n,o]of Object.entries(t.modelSet))for(const d of o)r.push(`${n}:${d}`);r.length>0&&(l.models=r)}return t.allowAllProjects||(l[Ze]=t.projectSet),l}function Zs(t,e,l){return t.kind==="builtin"?$s(t.role,e,void 0):t.kind==="custom"?Hs(t.role,e,l):{role:{id:void 0,slug:void 0,label:""},allowAllStaticPermissions:!1,staticPermissions:[],toolSet:{},allowAllModels:!0,modelSet:{},allowAllProjects:!0,projectSet:[],memberIds:[]}}function Js(t){const e=J.c(19),{readOnly:l,readOnlyMessage:r,onOpen:n}=t,o=r===void 0?void 0:r,d=ie();let f;e[0]!==o||e[1]!==d?(f=o??d("settings.orgRoleDetail.ownerMembershipCannotBeChanged"),e[0]=o,e[1]=d,e[2]=f):f=e[2];const m=f;if(l){let h;e[3]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(Ye,{size:16}),e[3]=h):h=e[3];let x;e[4]!==d?(x=d("settings.orgRoleDetail.addMember"),e[4]=d,e[5]=x):x=e[5];let a;e[6]!==x?(a=s.jsx(De,{asChild:!0,children:s.jsx("div",{children:s.jsxs(ae,{variant:"outline",size:"sm",disabled:!0,children:[h,x]})})}),e[6]=x,e[7]=a):a=e[7];let T;e[8]!==m?(T=s.jsx(Pe,{children:s.jsx("p",{children:m})}),e[8]=m,e[9]=T):T=e[9];let S;return e[10]!==a||e[11]!==T?(S=s.jsx(be,{children:s.jsxs(je,{children:[a,T]})}),e[10]=a,e[11]=T,e[12]=S):S=e[12],S}let c;e[13]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ye,{size:16}),e[13]=c):c=e[13];let g;e[14]!==d?(g=d("settings.orgRoleDetail.addMember"),e[14]=d,e[15]=g):g=e[15];let u;return e[16]!==n||e[17]!==g?(u=s.jsxs(ae,{variant:"outline",size:"sm",onClick:n,children:[c,g]}),e[16]=n,e[17]=g,e[18]=u):u=e[18],u}function Ws(t){const e=J.c(14),{locator:l}=Ge(),r=Fe(),n=Wt();let o;e[0]!==l?(o=de.members(l),e[0]=l,e[1]=o):o=e[1];let d;e[2]!==r?(d=()=>r.organization.listMembers(),e[2]=r,e[3]=d):d=e[3];let f;e[4]!==o||e[5]!==d?(f={queryKey:o,queryFn:d},e[4]=o,e[5]=d,e[6]=f):f=e[6];const{data:m,isPending:c}=Ke(f);if(c||!n){let x;return e[7]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Ce,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(Oe,{className:"size-8 text-muted-foreground"})})}),e[7]=x):x=e[7],x}let g;e[8]!==m?.data?.members?(g=m?.data?.members??[],e[8]=m?.data?.members,e[9]=g):g=e[9];const u=g;let h;return e[10]!==n||e[11]!==u||e[12]!==t?(h=s.jsx(Xs,{...t,members:u,connections:n}),e[10]=n,e[11]=u,e[12]=t,e[13]=h):h=e[13],h}function Xs({target:t,onBack:e,onSaved:l,members:r,connections:n}){const o=ie(),{locator:d}=Ge(),f=Fe(),m=it(),c=t.kind==="builtin",g=t.kind==="builtin"&&t.role==="owner",u=t.kind==="new",[h,x]=Q.useState(c?"org":"mcp"),a=jt({resolver:Dt(xs),defaultValues:Zs(t,r,n)}),T=a.formState.isValid,S=a.formState.isDirty,E=rt({mutationFn:async i=>{const R=qs(i,n),k=i.role.slug||i.role.label.toLowerCase().replace(/\s+/g,"-"),G=(i.role.slug==="owner"||i.role.slug==="admin"||i.role.slug==="user")&&!i.role.id,Y=async(v,K)=>{const L=r.filter(U=>U.role===(K??v)).map(U=>U.id),z=i.memberIds.filter(U=>!L.includes(U)),V=L.filter(U=>!i.memberIds.includes(U));for(const U of z){const B=await f.organization.updateMemberRole({memberId:U,role:[v]});if(B?.error)throw new Error(B.error.message??o("settings.orgRoleDetail.somethingWentWrong"))}for(const U of V){const B=await f.organization.updateMemberRole({memberId:U,role:["user"]});if(B?.error)throw new Error(B.error.message??o("settings.orgRoleDetail.somethingWentWrong"))}};if(G)return await Y(i.role.slug),i;if(i.role.id){const v=i.role.label.toLowerCase().replace(/\s+/g,"-"),K=i.role.slug,L=v!==K,z=await f.organization.updateRole({roleId:i.role.id,data:{permission:R,...L?{roleName:v}:{}}});if(z?.error)throw new Error(z.error.message??o("settings.orgRoleDetail.somethingWentWrong"));return await Y(L?v:K,L?K:void 0),L?{...i,role:{...i.role,slug:v}}:i}else{const v=await f.organization.createRole({role:k,permission:R});if(v?.error)throw new Error(v.error.message??o("settings.orgRoleDetail.somethingWentWrong"));for(const K of i.memberIds){const L=await f.organization.updateMemberRole({memberId:K,role:[k]});if(L?.error)throw new Error(L.error.message)}return{...i,role:{...i.role,id:v.data?.roleData?.id,slug:k}}}},onSuccess:(i,R)=>{m.invalidateQueries({queryKey:de.members(d)}),m.invalidateQueries({queryKey:de.organizationRoles(d)});const k=!R.role.id&&!R.role.slug,G=R.role.slug==="owner"&&!R.role.id;ze(G?"role_members_updated":k?"role_created":"role_updated",{role_slug:R.role.slug??null}),ve.success(o(G?"settings.orgRoleDetail.membersUpdatedSuccessfully":k?"settings.orgRoleDetail.roleCreatedSuccessfully":"settings.orgRoleDetail.roleUpdatedSuccessfully")),a.reset(i),l(i.role.id)},onError:i=>{ve.error(i instanceof Error?i.message:o("settings.orgRoleDetail.failedToSaveRole"))}}),I=a.handleSubmit(i=>{if(!i.role.label.trim()){ve.error(o("settings.orgRoleDetail.roleNameIsRequired")),a.setFocus("role.label");return}E.mutate(i)}),b=!g,N=t.kind==="builtin"?t.role.charAt(0).toUpperCase()+t.role.slice(1):t.kind==="custom"?t.role.label:"",D=[...g?[]:[{id:"mcp",label:o("settings.orgRoleDetail.mcpPermissions")}],{id:"org",label:o("settings.orgRoleDetail.organizationPermissions")},{id:"models",label:o("settings.orgRoleDetail.models")},{id:"projects",label:o("settings.orgRoleDetail.projects")},{id:"members",label:o("settings.orgRoleDetail.members")}],[A,j]=Q.useState(""),[P,_]=Q.useState(!1),O=i=>{x(i),j("")},C={mcp:o("settings.orgRoleDetail.searchMcpServers"),org:o("settings.orgRoleDetail.searchPermissions"),models:o("settings.orgRoleDetail.searchModels"),projects:o("settings.orgRoleDetail.searchProjects"),members:o("settings.orgRoleDetail.searchMembers")};return s.jsx(Ce,{children:s.jsxs(Ce.Content,{className:q("flex flex-col",h!=="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(Ce.Title,{actions:b&&s.jsxs(s.Fragment,{children:[s.jsx(ae,{variant:"outline",size:"sm",onClick:e,disabled:E.isPending,children:o("settings.orgRoleDetail.cancel")}),s.jsx(ae,{size:"sm",onClick:I,disabled:E.isPending||!T||!S,children:E.isPending?o("settings.orgRoleDetail.saving"):o(u?"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:q("size-2.5 rounded-full shrink-0",t.kind==="builtin"?mt(t.role,!0):Gt(a.watch("role.label")))}),g&&s.jsx(at,{size:16,className:"text-muted-foreground shrink-0"}),u||t.kind==="custom"?s.jsx("input",{...a.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:u}):s.jsx("span",{className:"truncate",children:N})]})}),s.jsx("div",{className:"flex items-center gap-2",children:D.map(i=>s.jsx("button",{type:"button",onClick:()=>O(i.id),className:q("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex items-center",h===i.id?"bg-accent border-border text-foreground":"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:i.label},i.id))}),s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[s.jsx(Qe,{value:A,onChange:j,placeholder:C[h]??"Search...",className:"w-full md:w-[375px]"}),h==="members"&&s.jsx(Js,{readOnly:t.kind==="builtin"&&t.role==="owner",onOpen:()=>_(!0)})]})]})}),s.jsx("div",{className:q("mx-auto w-full max-w-[1200px] px-4 md:px-10 pb-6",h!=="org"&&"flex-1 min-h-0"),children:s.jsxs("div",{className:q(h!=="org"&&"h-full overflow-hidden",h!=="models"&&h!=="projects"&&h!=="org"&&"border border-border rounded-xl bg-card"),children:[h==="mcp"&&!g&&s.jsx(Ts,{toolSet:a.watch("toolSet"),onToolSetChange:i=>a.setValue("toolSet",i,{shouldDirty:!0}),searchQuery:A}),h==="org"&&s.jsx(_s,{allowAllStaticPermissions:a.watch("allowAllStaticPermissions"),staticPermissions:a.watch("staticPermissions"),onAllowAllChange:i=>a.setValue("allowAllStaticPermissions",i,{shouldDirty:!0}),onPermissionsChange:i=>a.setValue("staticPermissions",i,{shouldDirty:!0}),readOnly:g,searchQuery:A}),h==="models"&&s.jsx(ws,{allowAllModels:a.watch("allowAllModels"),modelSet:a.watch("modelSet"),onAllowAllChange:i=>a.setValue("allowAllModels",i,{shouldDirty:!0}),onModelSetChange:i=>a.setValue("modelSet",i,{shouldDirty:!0}),readOnly:g,searchQuery:A}),h==="projects"&&s.jsx(Us,{allowAllProjects:a.watch("allowAllProjects"),projectSet:a.watch("projectSet"),onAllowAllChange:i=>a.setValue("allowAllProjects",i,{shouldDirty:!0}),onProjectSetChange:i=>a.setValue("projectSet",i,{shouldDirty:!0}),readOnly:g,searchQuery:A}),h==="members"&&s.jsx(Fs,{memberIds:a.watch("memberIds"),onMemberIdsChange:i=>a.setValue("memberIds",i,{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:A,addMemberDialogOpen:P,onAddMemberDialogOpenChange:_})]})})]})})}function el(t){return t.kind==="builtin"?`builtin-${t.role}`:t.kind==="custom"?`custom-${t.role.id}`:"new"}function tl(t){const e=J.c(6),{area:l,children:r}=t,{isPrivileged:n,loading:o,error:d}=Mt();let f;return e[0]!==l||e[1]!==r||e[2]!==d||e[3]!==n||e[4]!==o?(f=s.jsx(is,{granted:n,loading:o,error:d,area:l,children:r}),e[0]=l,e[1]=r,e[2]=d,e[3]=n,e[4]=o,e[5]=f):f=e[5],f}const sl=[{role:"owner",labelKey:"settings.roles.roleOwner"},{role:"admin",labelKey:"settings.roles.roleAdmin"},{role:"user",labelKey:"settings.roles.roleUser"}];function ll(){const t=J.c(128),e=ie(),[l,r]=Q.useState(""),[n,o]=Q.useState(null),d=yt();let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f={strict:!1},t[0]=f):f=t[0];const{role:m}=ct(f),{locator:c}=Ge(),g=Fe(),u=it(),{customRoles:h,refetch:x}=wt();let a;t[1]!==d?(a=M=>d({to:".",search:y=>({...y,role:M})}),t[1]=d,t[2]=a):a=t[2];const T=a;let S;e:{if(!m){S=null;break e}if(m==="new"){S={kind:"new"};break e}if(m.startsWith("builtin-")){S={kind:"builtin",role:m.slice(8)};break e}let M;t[3]!==m?(M=ee=>ee.id===m,t[3]=m,t[4]=M):M=t[4];const y=h.find(M);S=y?{kind:"custom",role:y}:null}const E=S;let I;t[5]!==c?(I=de.members(c),t[5]=c,t[6]=I):I=t[6];let b;t[7]!==g?(b=()=>g.organization.listMembers(),t[7]=g,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:D}=Ke(N);let A;t[12]!==D?.data?.members?(A=D?.data?.members??[],t[12]=D?.data?.members,t[13]=A):A=t[13];const j=A;let P;t[14]!==j?(P=M=>j.filter(y=>y.role===M).length,t[14]=j,t[15]=P):P=t[15];const _=P;let O;if(t[16]!==h||t[17]!==_||t[18]!==l||t[19]!==e){let M;t[21]!==_||t[22]!==e?(M=ce=>({kind:"builtin",role:{...ce,memberCount:_(ce.role),label:e(ce.labelKey)}}),t[21]=_,t[22]=e,t[23]=M):M=t[23];const y=sl.map(M);let ee;t[24]!==_?(ee=ce=>({kind:"custom",role:{...ce,memberCount:_(ce.role)}}),t[24]=_,t[25]=ee):ee=t[25];const Ot=h.map(ee);if(O=[...y,...Ot],l){const ce=l.toLowerCase();O=O.filter(bt=>bt.role.label.toLowerCase().includes(ce))}t[16]=h,t[17]=_,t[18]=l,t[19]=e,t[20]=O}else O=t[20];let C;t[26]!==g?(C=async M=>{const y=await g.organization.deleteRole({roleId:M});if(y?.error)throw new Error(y.error.message);return y?.data},t[26]=g,t[27]=C):C=t[27];const i=rt({mutationFn:C,onSuccess:(M,y)=>{ze("role_deleted",{role_id:y}),u.invalidateQueries({queryKey:de.members(c)}),u.invalidateQueries({queryKey:de.organizationRoles(c)}),ve.success(e("settings.roles.deletedSuccessfully")),x(),E?.kind==="custom"&&E.role.id===y&&T(void 0)},onError:al});let R;t[28]!==e?(R=e("settings.roles.columnRole"),t[28]=e,t[29]=R):R=t[29];let k;t[30]!==R?(k={id:"role",header:R,render:rl,cellClassName:"flex-1 min-w-0",sortable:!0},t[30]=R,t[31]=k):k=t[31];let G;t[32]!==e?(G=e("settings.roles.columnType"),t[32]=e,t[33]=G):G=t[33];let Y;t[34]!==e?(Y=M=>M.kind==="builtin"?s.jsx(Le,{variant:"secondary",className:"text-xs",children:e("settings.roles.builtIn")}):s.jsx(Le,{variant:"outline",className:"text-xs",children:e("settings.roles.custom")}),t[34]=e,t[35]=Y):Y=t[35];let v;t[36]!==G||t[37]!==Y?(v={id:"type",header:G,render:Y,cellClassName:"w-28 shrink-0"},t[36]=G,t[37]=Y,t[38]=v):v=t[38];let K;t[39]!==e?(K=e("settings.roles.columnPermissions"),t[39]=e,t[40]=K):K=t[40];let L;t[41]!==e?(L=M=>{if(M.kind==="builtin")return M.role.role==="owner"||M.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 y=M.role,ee=[];return y.allowsAllStaticPermissions?ee.push(e("settings.roles.fullOrgAccess")):y.staticPermissionCount&&y.staticPermissionCount>0&&ee.push(e("settings.roles.orgPermsCount",{count:y.staticPermissionCount})),y.allowsAllConnections?ee.push(e("settings.roles.allConnections")):y.connectionCount&&y.connectionCount>0&&ee.push(e("settings.roles.connectionCount",{count:y.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 z;t[43]!==K||t[44]!==L?(z={id:"permissions",header:K,render:L,cellClassName:"flex-1 min-w-0"},t[43]=K,t[44]=L,t[45]=z):z=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:il,cellClassName:"w-24 shrink-0"},t[48]=V,t[49]=U):U=t[49];let B;t[50]!==e?(B={id:"actions",header:"",render:M=>M.kind==="builtin"?null:s.jsxs(kt,{children:[s.jsx(Ut,{asChild:!0,children:s.jsx(ae,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:nl,children:s.jsx(Yt,{size:16})})}),s.jsx(Bt,{align:"end",onClick:ol,children:s.jsxs(Vt,{variant:"destructive",onClick:()=>{const y=M.role;y.id&&o({id:y.id,label:y.label})},children:[s.jsx(Kt,{size:16}),e("settings.roles.delete")]})})]}),cellClassName:"w-12 shrink-0"},t[50]=e,t[51]=B):B=t[51];let $;t[52]!==k||t[53]!==v||t[54]!==z||t[55]!==U||t[56]!==B?($=[k,v,z,U,B],t[52]=k,t[53]=v,t[54]=z,t[55]=U,t[56]=B,t[57]=$):$=t[57];const W=$;let te;t[58]!==T?(te=M=>{if(M.kind==="builtin")T(`builtin-${M.role.role}`);else{const y=M.role;T(y.id)}},t[58]=T,t[59]=te):te=t[59];const oe=te;if(E){let M;t[60]!==T?(M=()=>T(void 0),t[60]=T,t[61]=M):M=t[61];let y;return t[62]!==x||t[63]!==T?(y=()=>{x(),T(void 0)},t[62]=x,t[63]=T,t[64]=y):y=t[64],s.jsx(Ws,{target:E,onBack:M,onSaved:y},el(E))}let F;t[65]!==e?(F=e("settings.roles.searchPlaceholder"),t[65]=e,t[66]=F):F=t[66];let X;t[67]===Symbol.for("react.memo_cache_sentinel")?(X=M=>{M.key==="Escape"&&(r(""),M.target.blur())},t[67]=X):X=t[67];let p;t[68]!==l||t[69]!==F?(p=s.jsx(Qe,{value:l,onChange:r,placeholder:F,className:"w-full md:w-[375px]",onKeyDown:X}),t[68]=l,t[69]=F,t[70]=p):p=t[70];let w;t[71]!==T?(w=()=>T("new"),t[71]=T,t[72]=w):w=t[72];let H;t[73]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(Ye,{size:16}),t[73]=H):H=t[73];let Z;t[74]!==e?(Z=e("settings.roles.createRole"),t[74]=e,t[75]=Z):Z=t[75];let se;t[76]!==w||t[77]!==Z?(se=s.jsxs(ae,{onClick:w,children:[H,Z]}),t[76]=w,t[77]=Z,t[78]=se):se=t[78];let le;t[79]!==p||t[80]!==se?(le=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[p,se]}),t[79]=p,t[80]=se,t[81]=le):le=t[81];let ne;t[82]!==l||t[83]!==e?(ne=l?s.jsx(lt,{title:e("settings.roles.noRolesFound"),description:e("settings.roles.noRolesMatchSearch",{search:l})}):s.jsx(lt,{title:e("settings.roles.noRoles"),description:e("settings.roles.createRoleGetStarted")}),t[82]=l,t[83]=e,t[84]=ne):ne=t[84];let ue;t[85]!==O||t[86]!==W||t[87]!==oe||t[88]!==ne?(ue=s.jsx(zt,{columns:W,data:O,isLoading:!1,onRowClick:oe,emptyState:ne}),t[85]=O,t[86]=W,t[87]=oe,t[88]=ne,t[89]=ue):ue=t[89];const Ue=n!==null;let ye;t[90]===Symbol.for("react.memo_cache_sentinel")?(ye=M=>!M&&o(null),t[90]=ye):ye=t[90];let fe;t[91]!==e?(fe=e("settings.roles.deleteRoleTitle"),t[91]=e,t[92]=fe):fe=t[92];let ge;t[93]!==fe?(ge=s.jsx(gt,{children:fe}),t[93]=fe,t[94]=ge):ge=t[94];const Be=n?.label??"";let he;t[95]!==e||t[96]!==Be?(he=e("settings.roles.deleteRoleConfirm",{role:Be}),t[95]=e,t[96]=Be,t[97]=he):he=t[97];let Te;t[98]!==he?(Te=s.jsx(ht,{children:he}),t[98]=he,t[99]=Te):Te=t[99];let xe;t[100]!==ge||t[101]!==Te?(xe=s.jsxs(Tt,{children:[ge,Te]}),t[100]=ge,t[101]=Te,t[102]=xe):xe=t[102];let _e;t[103]!==e?(_e=e("settings.roles.cancel"),t[103]=e,t[104]=_e):_e=t[104];let pe;t[105]!==_e?(pe=s.jsx(xt,{children:_e}),t[105]=_e,t[106]=pe):pe=t[106];let Ee;t[107]!==i||t[108]!==n?(Ee=()=>{n?.id&&i.mutate(n.id),o(null)},t[107]=i,t[108]=n,t[109]=Ee):Ee=t[109];let Ie;t[110]!==e?(Ie=e("settings.roles.delete"),t[110]=e,t[111]=Ie):Ie=t[111];let Re;t[112]!==Ee||t[113]!==Ie?(Re=s.jsx(_t,{onClick:Ee,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:Ie}),t[112]=Ee,t[113]=Ie,t[114]=Re):Re=t[114];let Se;t[115]!==pe||t[116]!==Re?(Se=s.jsxs(pt,{children:[pe,Re]}),t[115]=pe,t[116]=Re,t[117]=Se):Se=t[117];let Ae;t[118]!==xe||t[119]!==Se?(Ae=s.jsxs(ft,{children:[xe,Se]}),t[118]=xe,t[119]=Se,t[120]=Ae):Ae=t[120];let Ne;t[121]!==Ue||t[122]!==Ae?(Ne=s.jsx(ut,{open:Ue,onOpenChange:ye,children:Ae}),t[121]=Ue,t[122]=Ae,t[123]=Ne):Ne=t[123];let we;return t[124]!==le||t[125]!==ue||t[126]!==Ne?(we=s.jsxs(dt,{group:"members",className:"gap-6",children:[le,ue,Ne]}),t[124]=le,t[125]=ue,t[126]=Ne,t[127]=we):we=t[127],we}function ol(t){return t.stopPropagation()}function nl(t){return t.stopPropagation()}function il(t){return s.jsx("span",{className:"text-sm text-foreground",children:t.role.memberCount})}function rl(t){return s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:q("size-2.5 rounded-full shrink-0",mt(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(at,{size:12,className:"text-muted-foreground shrink-0"})]})}function al(t,e){ze("role_delete_failed",{role_id:e,error:t instanceof Error?t.message:String(t)}),ve.error(t instanceof Error?t.message:"Failed to delete role")}function cl(){const t=J.c(13),e=ie();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},t[0]=l):l=t[0];const{role:r}=ct(l);let n;t[1]!==e?(n=e("settings.roles.failedToLoad"),t[1]=e,t[2]=n):n=t[2];let o;t[3]!==n?(o=s.jsx(Ce,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-sm text-muted-foreground",children:n})})}),t[3]=n,t[4]=o):o=t[4];let d;t[5]!==r?(d=r?s.jsx(Ce,{children:s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(Oe,{className:"size-8 text-muted-foreground"})})}):s.jsx(dt,{group:"members",className:"gap-6",children:s.jsx(vt,{})}),t[5]=r,t[6]=d):d=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(ll,{}),t[7]=f):f=t[7];let m;t[8]!==d?(m=s.jsx(Q.Suspense,{fallback:d,children:f}),t[8]=d,t[9]=m):m=t[9];let c;return t[10]!==o||t[11]!==m?(c=s.jsx(Lt,{fallback:o,children:m}),t[10]=o,t[11]=m,t[12]=c):c=t[12],c}function wo(){const t=J.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(tl,{area:"roles",children:s.jsx(cl,{})}),t[0]=e):e=t[0],e}export{wo as default};
@@ -1 +0,0 @@
1
- import{c as n,J as a,j as o,G as c,l as d,Y as f,b$ as x,O as h}from"./index-ClceuAyk.js";import{i as u}from"./settings-sidebar--XrDF_-z.js";import{T as l}from"./toolbar-Dz6pjT1t.js";import{S as j,M as b}from"./shell-controls-D-QiDg45.js";import{u as S}from"./use-status-sounds-UkEj7H3u.js";import"./ChevronUp-CzD3Q5Ez.js";import"./ChevronRight-DBtAhTcB.js";import"./TrendUp01-BrA1T2pc.js";import"./toolbar-icon-button-BhH4epEy.js";import"./Check-Cz1yJ2Ku.js";import"./ChevronSelectorVertical-BWywRn6y.js";import"./Plus-CvXXAkh5.js";import"./command-CrfbvrPh.js";import"./index-BrNAJ0cO.js";import"./dialog-XHYSv2FF.js";import"./SearchMd-BDM79zjM.js";import"./drawer-Baxk3ITM.js";import"./popover-B0ciwF2d.js";import"./agent-icon-BFmhGO5e.js";import"./AlertCircle-DnecbAPh.js";import"./Tool01-hRYJ57AS.js";import"./ArrowUp-Di6V-t98.js";import"./ArrowLeft-DKxrZoHN.js";import"./Tool02-VahAgw3l.js";import"./ArrowRight-D5xmwFpZ.js";import"./ZoomOut-BDx7bzVD.js";import"./Users03-BP5hN4tN.js";import"./CheckCircle-CUMJTel7.js";import"./DotsVertical-pXN36xDf.js";import"./UserSquare-B9-4LA44.js";import"./Copy01-8PINeOv9.js";import"./CreditCard01-DrPWgPgY.js";import"./Download01-ChKDQL-2.js";import"./Settings02-Bniu9Kuf.js";import"./Eye-uv0JopIC.js";import"./Share07-Cs5GE4ka.js";import"./GitBranch01-hVNlV4_5.js";import"./Globe01-cNyR-aGb.js";import"./XClose-C39TipQ9.js";import"./HardDrive-0QEGAcdt.js";import"./Image01-D8DJyxgN.js";import"./Key01-B4wEzwfA.js";import"./Link01-Dg3Wgdll.js";import"./LinkExternal01-DcDWG6E7.js";import"./Monitor01-DKUPqvEt.js";import"./Sun-B5-Zgu6g.js";import"./Package-C2z5N4Ha.js";import"./Palette-B-kHXH8u.js";import"./Play-DO5I4TQw.js";import"./SearchLg-ClCNH8OL.js";import"./Shield01-Y_WnaKFU.js";import"./Stars01-6JGB8G_o.js";import"./Trash01-Cbibxhdy.js";import"./Upload01-DCSoEoPT.js";import"./User01-CMN81VOd.js";import"./Users01-G5gtvFkg.js";import"./XCircle-CAT1mlY1.js";import"./Zap-C6djsNj_.js";import"./project-icon-CfK-Oy7W.js";import"./use-mcp-client-Dw2P7NDf.js";import"./auth-B5sZ5Nku.js";import"./use-virtual-mcp-Cg1qs7zR.js";import"./github-repo-CTPv5ZM2.js";import"./create-organization-dialog-CKS2WDIe.js";import"./alert-dialog-CZ1KENHH.js";import"./form-9R94AgDH.js";import"./label-BXG-IHer.js";import"./input-BnaH3Pwu.js";import"./use-destination-route-C33Wg86r.js";import"./anchors-yqDzZN4K.js";import"./use-join-requests-DbsA_U8I.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-DO9n8G8k.js";import"./decopilot-sse-pool-B6oDJj48.js";import"./task-board-ogD6qhBD.js";import"./schema-C6aNLxKf.js";import"./backoff-CrEUbyZT.js";function g(){const t=n.c(3),r=a(),{org:p}=c();S(p.slug);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(f,{children:o.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:o.jsx(x,{value:"p-0",children:o.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:o.jsx(h,{})})})})}),t[0]=e):e=t[0];const m=e;if(r){let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:m}),t[1]=s):s=t[1],s}let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex-1 min-h-0 p-1.5",children:o.jsx("div",{className:d("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:m})}),t[2]=i):i=t[2],i}function Dt(){const t=n.c(10),r=a();let p;t[0]!==r?(p=r&&o.jsxs(l.Header,{children:[o.jsx(l.LeftColumn,{children:o.jsx(j,{})}),o.jsx(l.CenterSlot,{}),o.jsx(l.RightColumn,{children:o.jsx("span",{})})]}),t[0]=r,t[1]=p):p=t[1];let e;t[2]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(g,{}),t[2]=e):e=t[2];let m;t[3]!==p?(m=o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[p,e]}),t[3]=p,t[4]=m):m=t[4];let i;t[5]!==r?(i=r&&o.jsx(b,{renderSidebar:v}),t[5]=r,t[6]=i):i=t[6];let s;return t[7]!==m||t[8]!==i?(s=o.jsxs(l.Provider,{children:[m,i]}),t[7]=m,t[8]=i,t[9]=s):s=t[9],s}function v(t){const{onClose:r}=t;return o.jsx(u,{onClose:r})}export{Dt as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BlNehP-G.js","assets/index-ClceuAyk.js","assets/index-DJADaZ4J.css","assets/Tool02-VahAgw3l.js","assets/CheckCircle-CUMJTel7.js","assets/Settings02-Bniu9Kuf.js","assets/use-mcp-client-Dw2P7NDf.js","assets/auth-B5sZ5Nku.js","assets/useInfiniteQuery-BcvMcS30.js","assets/infiniteQueryObserver-Dl9Qp9QK.js","assets/badge-BXckqUEw.js","assets/input-BnaH3Pwu.js","assets/dropdown-menu-DXwTXKHW.js","assets/Check-Cz1yJ2Ku.js","assets/ChevronRight-DBtAhTcB.js","assets/DotsVertical-pXN36xDf.js","assets/table-BZwt0mq1.js","assets/toggle-group-BtCG8lSD.js","assets/use-view-mode-DBUPinV2.js","assets/Globe01-cNyR-aGb.js","assets/SearchMd-BDM79zjM.js","assets/dialog-XHYSv2FF.js","assets/AlertCircle-DnecbAPh.js","assets/Download01-ChKDQL-2.js","assets/Upload01-DCSoEoPT.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CZ1KENHH.js","assets/Trash01-Cbibxhdy.js","assets/label-BXG-IHer.js","assets/select-CPovt3xR.js","assets/ChevronUp-CzD3Q5Ez.js","assets/switch-CyYEu2Mr.js","assets/textarea-BsfO56Vo.js","assets/ArrowLeft-DKxrZoHN.js","assets/ArrowRight-D5xmwFpZ.js","assets/Link01-Dg3Wgdll.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-BuDYKoG3.js","assets/Eye-uv0JopIC.js","assets/LinkExternal01-DcDWG6E7.js","assets/XCircle-CAT1mlY1.js","assets/use-infinite-scroll-D1TiZfg3.js","assets/use-copy-DsJQkugr.js","assets/Copy01-8PINeOv9.js","assets/Key01-B4wEzwfA.js","assets/Plus-CvXXAkh5.js","assets/mcp-oauth-DPzuG3zD.js","assets/Play-DO5I4TQw.js"])))=>i.map(i=>d[i]);
2
- import{c as n,d as c,f as m,j as t,h as f,r as l,bq as p}from"./index-ClceuAyk.js";import{R as u}from"./require-capability-B5XPZW1m.js";import"./access-gate-CDgve0Y7.js";import"./capability-load-error-BR7ZE3ck.js";const g=l.lazy(()=>p(()=>import("./registry-layout-BlNehP-G.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])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(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,{className:"size-5 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{h as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-Dl9Qp9QK.js";import{fd as i}from"./index-ClceuAyk.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-Dl9Qp9QK.js";import{fd as u,bY as n}from"./index-ClceuAyk.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};