decocms 4.368.0 → 4.368.1

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 (361) hide show
  1. package/dist/client/assets/{AlertCircle-BKchbppf.js → AlertCircle-_dpPH4gp.js} +1 -1
  2. package/dist/client/assets/{AreaChart-y2C6FBRO.js → AreaChart-D3UNwAze.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BxcCVSsO.js → ArrowLeft-D5BILPql.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-M0oFo16p.js → ArrowRight-CeIfu-_Z.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DPPS6QAz.js → ArrowUp-D3IJVwy-.js} +1 -1
  6. package/dist/client/assets/{Check-ZxK4xe7F.js → Check-BrCocVFB.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-CXCmqtXe.js → CheckCircle-BC0FabXU.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-B1q4aRdE.js → ChevronRight-B8w28Rs0.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-Lw2r8wDj.js → ChevronUp-BZtOj4Ay.js} +1 -1
  10. package/dist/client/assets/{Copy01-BdfG_e2R.js → Copy01-8HlwnVL4.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-C0eii6cH.js → CreditCard01-BuU2-7Xz.js} +1 -1
  12. package/dist/client/assets/{Database01-D9xiMFRQ.js → Database01-CbAnK_KP.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-BHpLZzPU.js → DotsVertical-wpNLDjEw.js} +1 -1
  14. package/dist/client/assets/{Download01-DAPCTBrh.js → Download01-DGABlNWv.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-B7gfjXfw.js → ErrorBarContext-BlJtJ6et.js} +1 -1
  16. package/dist/client/assets/{Eye-Bwli19bO.js → Eye-DXMWNy9I.js} +1 -1
  17. package/dist/client/assets/{File02-Bk1dmRy_.js → File02-6XspF3iG.js} +1 -1
  18. package/dist/client/assets/{GitBranch01-fGQefizx.js → GitBranch01-DdWI6T46.js} +1 -1
  19. package/dist/client/assets/{Globe01-B4gNbsCg.js → Globe01-LbDP9lO6.js} +1 -1
  20. package/dist/client/assets/{HardDrive-D_aROQkn.js → HardDrive-DtG-DEiB.js} +1 -1
  21. package/dist/client/assets/{Image01-DTFvmUXj.js → Image01-rPrP47_j.js} +1 -1
  22. package/dist/client/assets/{Key01-CVWwYajp.js → Key01-CJUZ2anZ.js} +1 -1
  23. package/dist/client/assets/{Link01-CZbhj0_0.js → Link01-B0bN5v1C.js} +1 -1
  24. package/dist/client/assets/{LinkExternal01-BKxoqAo_.js → LinkExternal01-k2QYzvNX.js} +1 -1
  25. package/dist/client/assets/{MessageCircle01-bLbPG2BY.js → MessageCircle01-CjlDn3qL.js} +1 -1
  26. package/dist/client/assets/{Monitor01-BPvejB1C.js → Monitor01-BWhdvhYh.js} +1 -1
  27. package/dist/client/assets/{Package-aFD4MTA7.js → Package-CUFEWgH0.js} +1 -1
  28. package/dist/client/assets/{Palette-CPUNhPQw.js → Palette-D8sq7zSJ.js} +1 -1
  29. package/dist/client/assets/{Play-CIReceJE.js → Play-CaXzttX1.js} +1 -1
  30. package/dist/client/assets/{Plus-7oGWv8-d.js → Plus-B76Mdzta.js} +1 -1
  31. package/dist/client/assets/{Printer-DhW8UOTN.js → Printer-CilcBFsl.js} +1 -1
  32. package/dist/client/assets/{SearchLg-gMgT6qJL.js → SearchLg-UbmzRtIb.js} +1 -1
  33. package/dist/client/assets/{SearchMd-DBxEPxbW.js → SearchMd-Cz88FNXR.js} +1 -1
  34. package/dist/client/assets/{Sector-BObjIYQg.js → Sector-CupdVPpd.js} +1 -1
  35. package/dist/client/assets/{Settings02-2akNrypo.js → Settings02-DCxh89vV.js} +1 -1
  36. package/dist/client/assets/{Share07-Bl1oEFtE.js → Share07-CNlETPcr.js} +1 -1
  37. package/dist/client/assets/{Shield01-D26ePB5X.js → Shield01-UHqavRD7.js} +1 -1
  38. package/dist/client/assets/{Stars01-Dja9PZ8p.js → Stars01-BPm_Roon.js} +1 -1
  39. package/dist/client/assets/{Sun-49v3fDGt.js → Sun-BukuAUTA.js} +1 -1
  40. package/dist/client/assets/{SwitchHorizontal01-1bzMkj1j.js → SwitchHorizontal01-DDZJCKkC.js} +1 -1
  41. package/dist/client/assets/{Tool01-DXg-697p.js → Tool01-txvCBUcI.js} +1 -1
  42. package/dist/client/assets/{Tool02-BZbYKRFW.js → Tool02-DUdKhOIL.js} +1 -1
  43. package/dist/client/assets/{Trash01-BUixXtcj.js → Trash01-CeNVn9va.js} +1 -1
  44. package/dist/client/assets/{TrendUp01-WeYCREkX.js → TrendUp01-pvT8-WFv.js} +1 -1
  45. package/dist/client/assets/{Upload01-51uW4MtH.js → Upload01-CdWOLhzl.js} +1 -1
  46. package/dist/client/assets/{User01-B4JBmtbe.js → User01-BFd06Lzl.js} +1 -1
  47. package/dist/client/assets/{UserSquare-DXP9QUC0.js → UserSquare-VWJ4b2Nu.js} +1 -1
  48. package/dist/client/assets/{Users01-DxH5OmOp.js → Users01-CSkRDmMq.js} +1 -1
  49. package/dist/client/assets/{Users03-BNcMDmHT.js → Users03-CKweEAHJ.js} +1 -1
  50. package/dist/client/assets/{X-BdugDRJ_.js → X-Ch9pdqUF.js} +1 -1
  51. package/dist/client/assets/{XCircle-frgB9vHw.js → XCircle-CRFE9Sxc.js} +1 -1
  52. package/dist/client/assets/{XClose-DdmRkPdn.js → XClose-nb8sU8Mf.js} +1 -1
  53. package/dist/client/assets/{Zap-BOBZbKzr.js → Zap-cGv6CHKy.js} +1 -1
  54. package/dist/client/assets/{ZoomOut-CG3Sk2c2.js → ZoomOut-kKuBc-4q.js} +1 -1
  55. package/dist/client/assets/{access-gate-u19iYegA.js → access-gate-Dna5j1xg.js} +1 -1
  56. package/dist/client/assets/{add-connection-dialog-BMRrs0Iv.js → add-connection-dialog-Dv940sel.js} +1 -1
  57. package/dist/client/assets/{agent-analytics-x1RXtEfy.js → agent-analytics-BUFhTNrz.js} +1 -1
  58. package/dist/client/assets/agent-app-CwiQy74t.js +1 -0
  59. package/dist/client/assets/{agent-assets-BZB74Oo0.js → agent-assets-DBUnPpmJ.js} +1 -1
  60. package/dist/client/assets/{agent-automation-CLUkoEJi.js → agent-automation-BUKjRQ0s.js} +1 -1
  61. package/dist/client/assets/{agent-automations-S_NNW-G8.js → agent-automations-CkHa31mG.js} +1 -1
  62. package/dist/client/assets/{agent-connect-sources-FrFq6kgZ.js → agent-connect-sources-aEQ5U5Ys.js} +1 -1
  63. package/dist/client/assets/agent-deck-DZdDIvkK.js +1 -0
  64. package/dist/client/assets/{agent-e2e-BftBTu-r.js → agent-e2e-CVvHLDWr.js} +1 -1
  65. package/dist/client/assets/agent-file-B3z9GSFG.js +1 -0
  66. package/dist/client/assets/{agent-git-CUfmHf_3.js → agent-git-Xu4xVp7K.js} +1 -1
  67. package/dist/client/assets/{agent-hosting-DYMDraLb.js → agent-hosting-CqeGjFKK.js} +1 -1
  68. package/dist/client/assets/{agent-icon-CJ74PZ5u.js → agent-icon-TqAwQbws.js} +1 -1
  69. package/dist/client/assets/agent-library-file-CyW6BWlf.js +1 -0
  70. package/dist/client/assets/{agent-monitor-BWVjQWIl.js → agent-monitor-CQJNHyJU.js} +1 -1
  71. package/dist/client/assets/{agent-overview-DnPnksSV.js → agent-overview-BMNsRpT6.js} +1 -1
  72. package/dist/client/assets/agent-settings-DW9H-Dv0.js +1 -0
  73. package/dist/client/assets/{agent-site-editor-BnZTwUPY.js → agent-site-editor-CIwfwhaR.js} +1 -1
  74. package/dist/client/assets/agent-site-editor-code-DerDfcPo.js +2 -0
  75. package/dist/client/assets/{agent-site-editor-content-_eLWfu3Q.js → agent-site-editor-content-gT4XwcZF.js} +2 -2
  76. package/dist/client/assets/{agent-site-editor-preview-DLXhmiWT.js → agent-site-editor-preview-BxCHHAmi.js} +3 -3
  77. package/dist/client/assets/{agent-view-guard-CUaQwEO2.js → agent-view-guard-B9uu0uNy.js} +1 -1
  78. package/dist/client/assets/agent-view-mE-ErsH1.js +1 -0
  79. package/dist/client/assets/{agents-list-BXNTO5vo.js → agents-list-DEcIxmc7.js} +1 -1
  80. package/dist/client/assets/{ai-providers-DbzV8bxo.js → ai-providers-4TWNzC8y.js} +1 -1
  81. package/dist/client/assets/{alert-DXUzroby.js → alert-B054apY1.js} +1 -1
  82. package/dist/client/assets/{alert-dialog-92GutrH9.js → alert-dialog-BQcocmj1.js} +1 -1
  83. package/dist/client/assets/api-keys-Dfv4dEMM.js +1 -0
  84. package/dist/client/assets/{api-keys-B2Xef8ny.js → api-keys-EFdKngWA.js} +1 -1
  85. package/dist/client/assets/app-editor-DAPu7E0g.js +1 -0
  86. package/dist/client/assets/{asset-utils-B5fY-BSK.js → asset-utils-D8QOLQKI.js} +1 -1
  87. package/dist/client/assets/{auth-BrGex7FY.js → auth-CZC2Ujtf.js} +1 -1
  88. package/dist/client/assets/{auth-catchall-BIV239MQ.js → auth-catchall-CdCofhcq.js} +1 -1
  89. package/dist/client/assets/{auth-entry-CFDXzmrD.js → auth-entry-D76qGMln.js} +1 -1
  90. package/dist/client/assets/{auth-split-layout-CBVOXOwN.js → auth-split-layout-BqkQ5MRI.js} +1 -1
  91. package/dist/client/assets/{authenticate-and-persist-oauth-CUN-wLn1.js → authenticate-and-persist-oauth-CHdcX4lx.js} +1 -1
  92. package/dist/client/assets/{automation-list-row-Co6ffDdp.js → automation-list-row-CDBc0L1r.js} +1 -1
  93. package/dist/client/assets/{automation-runs-BNk-ou9m.js → automation-runs-BQLbZ_hL.js} +1 -1
  94. package/dist/client/assets/{automations-COrNd8f4.js → automations-CFVXwFqr.js} +1 -1
  95. package/dist/client/assets/{autosend-mHJRckjC.js → autosend-BA2WDHKH.js} +1 -1
  96. package/dist/client/assets/{avatar-ubLaXORO.js → avatar-U_W3DOyI.js} +1 -1
  97. package/dist/client/assets/{badge-DyIAknWc.js → badge-CTjh9J7T.js} +1 -1
  98. package/dist/client/assets/{block-document-WjNTO6O1.js → block-document-DCeQa0yI.js} +1 -1
  99. package/dist/client/assets/{blocks-preview-workspace-context-XPDRiBEY.js → blocks-preview-workspace-context-BdOEiss-.js} +1 -1
  100. package/dist/client/assets/{breadcrumb-D0FcEht9.js → breadcrumb-DhYRM7a2.js} +1 -1
  101. package/dist/client/assets/{buckets-D4XExOV7.js → buckets-DyboX_DE.js} +1 -1
  102. package/dist/client/assets/{build-improve-prompt-doc-BmggPsYr.js → build-improve-prompt-doc-CVdAljgW.js} +1 -1
  103. package/dist/client/assets/{bulk-category-panel-D_4Fv25D.js → bulk-category-panel-BLBAwogB.js} +1 -1
  104. package/dist/client/assets/{calendar-B1_9FUxA.js → calendar-C3g1HVYe.js} +1 -1
  105. package/dist/client/assets/{capability-load-error-CfjThErO.js → capability-load-error-DsSoc04a.js} +1 -1
  106. package/dist/client/assets/{cards-DzbRsseW.js → cards-D3kB6iIj.js} +1 -1
  107. package/dist/client/assets/category-editor-CC0PdtIK.js +1 -0
  108. package/dist/client/assets/{chart-Ei5Re4Wl.js → chart-D_loKaX9.js} +1 -1
  109. package/dist/client/assets/{chat-context-CwBa4iNq.js → chat-context-Cor1QyQv.js} +1 -1
  110. package/dist/client/assets/{chat-draft-DNmqFUGc.js → chat-draft-DCJe5CEL.js} +1 -1
  111. package/dist/client/assets/{checkbox-BzsCo22G.js → checkbox-W4oibM4M.js} +1 -1
  112. package/dist/client/assets/{choose-editor-GkG7SXyC.js → choose-editor-CEzDxdDD.js} +1 -1
  113. package/dist/client/assets/{cli-auth-success-CMF0dFZs.js → cli-auth-success-C_CF3b7k.js} +1 -1
  114. package/dist/client/assets/{client-icons-BwjZD78C.js → client-icons-Bzg5KJqo.js} +1 -1
  115. package/dist/client/assets/{collapsible-C1favzij.js → collapsible-Q7VW373b.js} +1 -1
  116. package/dist/client/assets/{collection-detail-BqWAJ7EW.js → collection-detail-Do-V1iEU.js} +1 -1
  117. package/dist/client/assets/{collection-display-button-BJZ15cTd.js → collection-display-button-DoWqp-k5.js} +1 -1
  118. package/dist/client/assets/{collection-search-aDCUzq7X.js → collection-search-Ve8Od1Ze.js} +1 -1
  119. package/dist/client/assets/{collection-table-wrapper-B8I7NupJ.js → collection-table-wrapper-CQd2BlgT.js} +1 -1
  120. package/dist/client/assets/{collection-tabs-CCTSLIp7.js → collection-tabs-B31cxzhl.js} +1 -1
  121. package/dist/client/assets/{command-Bp6cp4pI.js → command-BTJsPyoV.js} +1 -1
  122. package/dist/client/assets/{command-palette-store-DOa5piDf.js → command-palette-store-B3FjlwOX.js} +1 -1
  123. package/dist/client/assets/{companion-mcps-section-DEio5Adg.js → companion-mcps-section-BJrWJNrw.js} +1 -1
  124. package/dist/client/assets/{connect-BY6uXdow.js → connect-Dk6GxqPK.js} +2 -2
  125. package/dist/client/assets/{connect-layout-CP69O37i.js → connect-layout-CJdyGLIg.js} +1 -1
  126. package/dist/client/assets/{connection-BZn_3MEZ.js → connection-BYgVvaQ-.js} +1 -1
  127. package/dist/client/assets/{connection-card-COXej074.js → connection-card-BlyShat1.js} +1 -1
  128. package/dist/client/assets/{connection-detail-DHx2IRY4.js → connection-detail-CtIhDsnP.js} +1 -1
  129. package/dist/client/assets/{connection-form-helpers-bnj5C_pO.js → connection-form-helpers-DfdZqD7N.js} +1 -1
  130. package/dist/client/assets/{connections-H2nz3ZOT.js → connections-DxJKDsbg.js} +1 -1
  131. package/dist/client/assets/{create-organization-dialog-Dhjwuvqa.js → create-organization-dialog-CiZy-ZG6.js} +1 -1
  132. package/dist/client/assets/{decofile-api-BEtZILgN.js → decofile-api-drrGQg3A.js} +1 -1
  133. package/dist/client/assets/{decopilot-B6xCVEQX.js → decopilot-DB30hM5k.js} +1 -1
  134. package/dist/client/assets/{dialog-BCc5hlgI.js → dialog-FbeViKhV.js} +1 -1
  135. package/dist/client/assets/{discover-Djoq-knv.js → discover-Bkm8Ppdq.js} +1 -1
  136. package/dist/client/assets/{domain-settings-B68OapeG.js → domain-settings-di4lhBEH.js} +1 -1
  137. package/dist/client/assets/{download-app-dialog-CS9xCo3l.js → download-app-dialog-B0wRR8XY.js} +1 -1
  138. package/dist/client/assets/{drawer-CQ6YvWyB.js → drawer-BFLllOI5.js} +1 -1
  139. package/dist/client/assets/{dropdown-menu-tx6OX4aA.js → dropdown-menu-Cg7EtBKr.js} +1 -1
  140. package/dist/client/assets/{editor-BpQ5Scxi.js → editor-DfIJZemH.js} +1 -1
  141. package/dist/client/assets/{empty-state-ClkrHYmJ.js → empty-state-B73golk2.js} +1 -1
  142. package/dist/client/assets/{empty-state-BTjMWx5H.js → empty-state-BUjKoJeI.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-QX25cgiT.js → extract-connection-data-OymVW05I.js} +1 -1
  144. package/dist/client/assets/{feature-gate-DqjkAi9M.js → feature-gate-BtTiJvHf.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-b3qZoNCL.js → feature-paywall-CxRYlO85.js} +1 -1
  146. package/dist/client/assets/{file-explorer-vmaCniEv.js → file-explorer-ChhaUDkc.js} +1 -1
  147. package/dist/client/assets/{file-preview-9280F33a.js → file-preview-B-3X414G.js} +1 -1
  148. package/dist/client/assets/{file-share-button-Cqn5Q-hj.js → file-share-button-BCcqyHI3.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-Dxp-Ok2P.js → file-type-icon-CgjUbvA5.js} +1 -1
  150. package/dist/client/assets/{folder-icon-DfnI9Lc8.js → folder-icon-DIKFMRjx.js} +1 -1
  151. package/dist/client/assets/{form-CCEoicAR.js → form-ZSFKpKuR.js} +1 -1
  152. package/dist/client/assets/{gateway-client-CgyUBlgw.js → gateway-client-DDB4Jo5d.js} +1 -1
  153. package/dist/client/assets/{general-BlaLbOSk.js → general-B89BsePD.js} +1 -1
  154. package/dist/client/assets/{github-icon-BWfLdLT4.js → github-icon-DvBRseH_.js} +1 -1
  155. package/dist/client/assets/{home-sj-ZTRkz.js → home-EgbfGXHT.js} +1 -1
  156. package/dist/client/assets/{hooks-CBQzxxCh.js → hooks-CY6XZOHF.js} +1 -1
  157. package/dist/client/assets/{hooks-BsQ1zp8y.js → hooks-Czb0EjQM.js} +1 -1
  158. package/dist/client/assets/{index-CuNhd5EW.js → index-B8SDzCvY.js} +1 -1
  159. package/dist/client/assets/{index-p-pFkjAj.js → index-BLoGenx5.js} +1 -1
  160. package/dist/client/assets/{index-Cze73w-G.js → index-BWW-QUD7.js} +1 -1
  161. package/dist/client/assets/{index-DaYZAl9-.js → index-B_q9xGDu.js} +1 -1
  162. package/dist/client/assets/{index-CalU-CTh.js → index-BwNv0_X1.js} +1 -1
  163. package/dist/client/assets/{index-DXfPYL8S.js → index-C2PjpIk5.js} +1 -1
  164. package/dist/client/assets/{index-Cw7IXwLo.js → index-CaeHd-kX.js} +1 -1
  165. package/dist/client/assets/{index-CYsKkgvq.js → index-CbVT0Wha.js} +1 -1
  166. package/dist/client/assets/{index-D4pBLhg9.js → index-CiQ8AEuv.js} +1 -1
  167. package/dist/client/assets/{index-CUJMnria.js → index-CyayjuN4.js} +1 -1
  168. package/dist/client/assets/{index-unCC-6KL.js → index-DDWK4S9N.js} +1 -1
  169. package/dist/client/assets/{index-nvVwQgfX.js → index-DQH0Frt9.js} +1 -1
  170. package/dist/client/assets/{index-CZJ5G35_.js → index-DgDEDYFd.js} +1 -1
  171. package/dist/client/assets/{index-D9SZCEna.js → index-bq82HRdX.js} +4 -4
  172. package/dist/client/assets/{index-C_lmrR_C.js → index-mL_OEvyk.js} +1 -1
  173. package/dist/client/assets/{index-redirect-CPyK66Hq.js → index-redirect-Cl5ECm8S.js} +1 -1
  174. package/dist/client/assets/{infiniteQueryObserver-D3qec4tz.js → infiniteQueryObserver-Dk7f60ge.js} +1 -1
  175. package/dist/client/assets/{infra-billing-B8nXBSDz.js → infra-billing-D-zABnxC.js} +1 -1
  176. package/dist/client/assets/{input-5SO3LEdl.js → input-B62UEC6S.js} +1 -1
  177. package/dist/client/assets/{input-AeTUfj6S.js → input-C4xdJkO9.js} +1 -1
  178. package/dist/client/assets/{input-DMN2ylja.js → input-DYrUDn-6.js} +1 -1
  179. package/dist/client/assets/{integration-icon-B1sz4SeY.js → integration-icon-DWVAXJ5W.js} +1 -1
  180. package/dist/client/assets/{label-Dh9EjnVS.js → label-DHlCjoX-.js} +1 -1
  181. package/dist/client/assets/{last-preview-page-D52M-8kD.js → last-preview-page-g2Wt-_qP.js} +1 -1
  182. package/dist/client/assets/{layout-DSbF9Fai.js → layout-DvNX7Jhc.js} +1 -1
  183. package/dist/client/assets/{legacy-agents-deep-CO4Cj3Kz.js → legacy-agents-deep-B4F7_80Y.js} +1 -1
  184. package/dist/client/assets/{legacy-main-redirect-DyjtdITZ.js → legacy-main-redirect-DLvBqWxl.js} +1 -1
  185. package/dist/client/assets/{library-rJr5R-_-.js → library-CceZemOg.js} +1 -1
  186. package/dist/client/assets/{login-ByroOa_7.js → login-CX3-ibA4.js} +1 -1
  187. package/dist/client/assets/{markdown-08bGGv35.js → markdown-qqEQfcng.js} +1 -1
  188. package/dist/client/assets/{mcp-app-renderer-BrDqPGAT.js → mcp-app-renderer-Cj43EsNL.js} +1 -1
  189. package/dist/client/assets/{mcp-oauth-DssHToM4.js → mcp-oauth-lrCnpZRU.js} +1 -1
  190. package/dist/client/assets/{members-1ss87Nz0.js → members-BKOir_Pt.js} +1 -1
  191. package/dist/client/assets/{message-templates-BTVMJzpL.js → message-templates-0mKRx1r7.js} +1 -1
  192. package/dist/client/assets/{mini-report-page-CX7HMNh4.js → mini-report-page-CfZCYEQQ.js} +1 -1
  193. package/dist/client/assets/{mock-board-jgxOM55G.js → mock-board-CqCYQnTw.js} +14 -14
  194. package/dist/client/assets/{monaco-editor-DJxPzejh.js → monaco-editor-BbS-xHlo.js} +1 -1
  195. package/dist/client/assets/{monitoring-stats-row-wjNhJJbD.js → monitoring-stats-row-CGLZvQvq.js} +1 -1
  196. package/dist/client/assets/{multi-select-7rs5llE7.js → multi-select-DHogVRlv.js} +1 -1
  197. package/dist/client/assets/{mustache-vWrD4L5A.js → mustache-CaTcgxFU.js} +1 -1
  198. package/dist/client/assets/{oauth-callback-Dh7kJbIE.js → oauth-callback-BDR5owZa.js} +1 -1
  199. package/dist/client/assets/{oauth-callback-ai-provider-BR4KOwpH.js → oauth-callback-ai-provider-DSX_mvvw.js} +1 -1
  200. package/dist/client/assets/{onboarding-NaMysfKu.js → onboarding-_X5jFwXg.js} +1 -1
  201. package/dist/client/assets/{optimistic-project-sidebar-views-CnXa40yZ.js → optimistic-project-sidebar-views-prl2BiPv.js} +1 -1
  202. package/dist/client/assets/{org-file-open-context-GfBe4Lpi.js → org-file-open-context-CY-h563L.js} +1 -1
  203. package/dist/client/assets/{organization-choice-BKxMxoJn.js → organization-choice-C7qy14tx.js} +1 -1
  204. package/dist/client/assets/{orgs-BvzvadNE.js → orgs-CgMPvHkg.js} +1 -1
  205. package/dist/client/assets/{page-seo-form-D3Ps7cZw.js → page-seo-form-CmXwxqgr.js} +1 -1
  206. package/dist/client/assets/{pair-kWiwbnho.js → pair-CoC4CuoZ.js} +1 -1
  207. package/dist/client/assets/{plan-ladder-CY-Z8Ivq.js → plan-ladder-DpgC6kIZ.js} +1 -1
  208. package/dist/client/assets/{popover-BGd36YgB.js → popover-DJmzS7mv.js} +1 -1
  209. package/dist/client/assets/{post-calendar-DYYzvYLc.js → post-calendar-Dz5zavXp.js} +1 -1
  210. package/dist/client/assets/{post-editor-CaCmWj6J.js → post-editor-DWfeh8M1.js} +1 -1
  211. package/dist/client/assets/{preview-content-Boo_eVop.js → preview-content-C0VkspNR.js} +1 -1
  212. package/dist/client/assets/{preview-dialog-DHXJPLGL.js → preview-dialog-BZOqzTG2.js} +1 -1
  213. package/dist/client/assets/{primitives-CKaN1rNH.js → primitives-jHhmgAQ9.js} +1 -1
  214. package/dist/client/assets/{profile-N__YV02p.js → profile-fLPl9mHC.js} +1 -1
  215. package/dist/client/assets/{project-app-view-DNS5eCSn.js → project-app-view-B7QzqtQA.js} +1 -1
  216. package/dist/client/assets/{project-feed-5BgkxnYg.js → project-feed-B--J89zr.js} +1 -1
  217. package/dist/client/assets/{project-icon-DQkQSxZw.js → project-icon-BRc_SYWu.js} +1 -1
  218. package/dist/client/assets/project-reports-DeYwugwl.js +1 -0
  219. package/dist/client/assets/project-tasks-D7RrtRzg.js +1 -0
  220. package/dist/client/assets/{prompts-Dl4z55pl.js → prompts-C5wKMcEi.js} +1 -1
  221. package/dist/client/assets/record-editor-BMFTazO_.js +1 -0
  222. package/dist/client/assets/{redirect-editor-kShoD3Wd.js → redirect-editor-Bz1hNhc-.js} +1 -1
  223. package/dist/client/assets/registry-CBVz5tUq.js +2 -0
  224. package/dist/client/assets/{registry-layout-DI-hF5m1.js → registry-layout-B8hxuLqC.js} +1 -1
  225. package/dist/client/assets/{reports-gEiYrZM5.js → reports-BNMMk57f.js} +1 -1
  226. package/dist/client/assets/reports-BVwrD4fa.js +1 -0
  227. package/dist/client/assets/{reports-onboarding-DHaOLYgm.js → reports-onboarding-Cvd1ByZr.js} +1 -1
  228. package/dist/client/assets/{reports-tab-Cz8M-Vq9.js → reports-tab-B1GRtFON.js} +2 -2
  229. package/dist/client/assets/{repositories-B1iivH6M.js → repositories-CrrctYRd.js} +1 -1
  230. package/dist/client/assets/{repository-import-picker-JrKf0rR5.js → repository-import-picker-CwyID9Hr.js} +1 -1
  231. package/dist/client/assets/{repository-picker-CV4V7DF8.js → repository-picker-nA1fPR0i.js} +1 -1
  232. package/dist/client/assets/{require-capability-Td9HSP5v.js → require-capability-Dq_uftSz.js} +1 -1
  233. package/dist/client/assets/{required-auth-layout-O-2fosqz.js → required-auth-layout-bRQ8Relk.js} +1 -1
  234. package/dist/client/assets/{reset-password-DMz0UAEt.js → reset-password-9EzqJ9Aj.js} +1 -1
  235. package/dist/client/assets/{resizable-hHcftR57.js → resizable-CHa_EJdX.js} +1 -1
  236. package/dist/client/assets/{review-settings-CkVsqJxm.js → review-settings-CuYs2gkJ.js} +1 -1
  237. package/dist/client/assets/{rich-text-link-control-xyc77eAl.js → rich-text-link-control-BhNjJjUI.js} +1 -1
  238. package/dist/client/assets/{roles-DRF0sXxE.js → roles-DOIPyEeu.js} +1 -1
  239. package/dist/client/assets/{route-CG8hkNwT.js → route-BJZVtvXD.js} +1 -1
  240. package/dist/client/assets/{route-Cy-w3Fp7.js → route-DVbh_JIM.js} +1 -1
  241. package/dist/client/assets/{route-DOgOyrYA.js → route-DXTx8B1o.js} +1 -1
  242. package/dist/client/assets/{runnable-block-editor-Db5dXcSl.js → runnable-block-editor-NBss0rGv.js} +1 -1
  243. package/dist/client/assets/{sandbox-lifecycle-context-YzrdyqTe.js → sandbox-lifecycle-context-Cwag3ZuW.js} +1 -1
  244. package/dist/client/assets/{schema-DobnB1YS.js → schema-Difu_0cd.js} +1 -1
  245. package/dist/client/assets/{scroll-area-lKTlOT_0.js → scroll-area-DizJqsMb.js} +1 -1
  246. package/dist/client/assets/{search-input-BsvR49ic.js → search-input-BFvnqi9T.js} +1 -1
  247. package/dist/client/assets/{secrets-CvmXb4jS.js → secrets-mAWyIyIG.js} +1 -1
  248. package/dist/client/assets/{sections-editor-BL8f9i5C.js → sections-editor-BS-czeQw.js} +1 -1
  249. package/dist/client/assets/{select-D8neBfTB.js → select-CQk1UktB.js} +1 -1
  250. package/dist/client/assets/{select-model-Ckl_Fui7.js → select-model-V6Ahwt40.js} +1 -1
  251. package/dist/client/assets/{seo-editor-kdZ3qtF5.js → seo-editor-DqOS74Wa.js} +1 -1
  252. package/dist/client/assets/{settings-tab-DHNqjcoa.js → settings-tab-DgFFWLKL.js} +1 -1
  253. package/dist/client/assets/{sheet-CgrtO55N.js → sheet-XW3igMAp.js} +1 -1
  254. package/dist/client/assets/{shell-layout-BJKVf96_.js → shell-layout-lFmUNyF7.js} +1 -1
  255. package/dist/client/assets/{sidebar-CiHAL8Wu.js → sidebar-CaDkomsf.js} +1 -1
  256. package/dist/client/assets/{skill-preview-mcEHLHpL.js → skill-preview-haMHuu3V.js} +1 -1
  257. package/dist/client/assets/{skills-DqE-vPtp.js → skills-CQVB1v99.js} +1 -1
  258. package/dist/client/assets/{sso-CMeXDyDr.js → sso-BguB6oWk.js} +1 -1
  259. package/dist/client/assets/{store-BjgehfaI.js → store-DfwhNMsh.js} +1 -1
  260. package/dist/client/assets/store-registry-k7nLI4El.js +2 -0
  261. package/dist/client/assets/{switch-fMRKTd8o.js → switch-C44BHJ4_.js} +1 -1
  262. package/dist/client/assets/{synced-repos-D08q7iIK.js → synced-repos-CfvjXlOq.js} +1 -1
  263. package/dist/client/assets/{table-Clh8UGCw.js → table-vs5PY6MV.js} +1 -1
  264. package/dist/client/assets/{tabs-BSBLIBXv.js → tabs-Be7MjhEn.js} +1 -1
  265. package/dist/client/assets/{task-board-Cw7pQ9f8.js → task-board-NCKWK-L3.js} +1 -1
  266. package/dist/client/assets/{task-route-BcG-Y9vh.js → task-route-BoHR4cN4.js} +1 -1
  267. package/dist/client/assets/{task-status-BVBWAfWD.js → task-status-DsfqndTm.js} +1 -1
  268. package/dist/client/assets/{tasks-x1afrsv8.js → tasks-C_VDG237.js} +1 -1
  269. package/dist/client/assets/tasks-DjG_h180.js +1 -0
  270. package/dist/client/assets/{textarea-DRjwrMCJ.js → textarea-Dt5uzYAk.js} +1 -1
  271. package/dist/client/assets/{thread-intent-CC6uL69b.js → thread-intent-BBez6nif.js} +1 -1
  272. package/dist/client/assets/{thread-route-DvFwa34h.js → thread-route-B0O5tMmh.js} +1 -1
  273. package/dist/client/assets/{thread-route-BGLKWWbA.js → thread-route-DhLwmRkM.js} +1 -1
  274. package/dist/client/assets/{thread-sheet-body-DtBk50q_.js → thread-sheet-body-qD1pkorX.js} +1 -1
  275. package/dist/client/assets/{toggle-group-CFBKi1GU.js → toggle-group-DXrH4GGv.js} +1 -1
  276. package/dist/client/assets/{toolbar-icon-button-C8vKnpxW.js → toolbar-icon-button-DkmObRsV.js} +1 -1
  277. package/dist/client/assets/{tooltip-BM4MyYtx.js → tooltip-BbRZqSqs.js} +1 -1
  278. package/dist/client/assets/{track-BnjuU_Aa.js → track-Cq81o3eA.js} +1 -1
  279. package/dist/client/assets/{types-OTmzvENk.js → types-DfRui0tk.js} +1 -1
  280. package/dist/client/assets/{usage-stats-BtXxJtjV.js → usage-stats-CIfcRmIQ.js} +1 -1
  281. package/dist/client/assets/{use-ai-providers-D3pmon60.js → use-ai-providers-CzWjKGEV.js} +1 -1
  282. package/dist/client/assets/{use-automations-DToyPFV1.js → use-automations-B1g8BCjF.js} +1 -1
  283. package/dist/client/assets/{use-autosave-BU_qHXev.js → use-autosave-zCYjHp0Q.js} +1 -1
  284. package/dist/client/assets/{use-connect-companion-BpCoDO4S.js → use-connect-companion-CSsGFFTC.js} +1 -1
  285. package/dist/client/assets/{use-connection-B3V4uZfg.js → use-connection-D_iAIgTV.js} +1 -1
  286. package/dist/client/assets/{use-copy-KnHqebR6.js → use-copy-CXvvMCCk.js} +1 -1
  287. package/dist/client/assets/{use-create-virtual-mcp-2UYwG6y3.js → use-create-virtual-mcp-wa9JpFSa.js} +1 -1
  288. package/dist/client/assets/{use-date-fns-locale-BWw8dghC.js → use-date-fns-locale-DAtfdqMB.js} +1 -1
  289. package/dist/client/assets/{use-debounced-autosave-BHeNLff-.js → use-debounced-autosave-CGfqMI_2.js} +1 -1
  290. package/dist/client/assets/{use-debounced-value-BGWej6mZ.js → use-debounced-value-BjFoL1TN.js} +1 -1
  291. package/dist/client/assets/{use-deco-credits-D-Neva26.js → use-deco-credits-KfquqRSe.js} +1 -1
  292. package/dist/client/assets/{use-decopilot-events-DkwYxfvc.js → use-decopilot-events-3_YSe3LA.js} +1 -1
  293. package/dist/client/assets/{use-delete-connection-CzgqXCsw.js → use-delete-connection-4mVlUDap.js} +1 -1
  294. package/dist/client/assets/{use-deployment-admin-BD8J4rzi.js → use-deployment-admin-DiOvR37Z.js} +1 -1
  295. package/dist/client/assets/{use-entitlements-TTRAg4gu.js → use-entitlements-CZtG5Aw4.js} +1 -1
  296. package/dist/client/assets/{use-fast-preview-draft-url-CiAYOF7M.js → use-fast-preview-draft-url-tdElS5FG.js} +1 -1
  297. package/dist/client/assets/{use-file-configs-Ckmsn28x.js → use-file-configs-BTKu0ddn.js} +1 -1
  298. package/dist/client/assets/{use-infinite-scroll-gZkFm8Rv.js → use-infinite-scroll-CqfaxXN1.js} +1 -1
  299. package/dist/client/assets/{use-join-requests-FhpmlLIv.js → use-join-requests-B4yW6raK.js} +1 -1
  300. package/dist/client/assets/{use-main-panel-tabs-IpsUP9Wl.js → use-main-panel-tabs-Ch6v5oL2.js} +1 -1
  301. package/dist/client/assets/{use-mcp-auth-status-C9YFSjt7.js → use-mcp-auth-status-BHDkqk7b.js} +1 -1
  302. package/dist/client/assets/{use-mcp-client-DSGHqAYD.js → use-mcp-client-oEME4UuR.js} +1 -1
  303. package/dist/client/assets/{use-mcp-prompts-Dne6CipL.js → use-mcp-prompts-C3OTryE-.js} +1 -1
  304. package/dist/client/assets/{use-mcp-tools-5LthbFq_.js → use-mcp-tools-5nC74C22.js} +1 -1
  305. package/dist/client/assets/{use-members-vJs6czuz.js → use-members-69QDyex7.js} +1 -1
  306. package/dist/client/assets/{use-mobile-C5k18fP1.js → use-mobile-DAKfge6F.js} +1 -1
  307. package/dist/client/assets/{use-navigate-to-agent-qRyehLE-.js → use-navigate-to-agent-DxF2NRC6.js} +1 -1
  308. package/dist/client/assets/{use-open-billing-url-Bn4c7bA3.js → use-open-billing-url-B38x35SM.js} +1 -1
  309. package/dist/client/assets/{use-org-auth-client-BfT_gcIU.js → use-org-auth-client-DscVB01a.js} +1 -1
  310. package/dist/client/assets/{use-org-fs-CY3ClF__.js → use-org-fs-fnC2xvX1.js} +1 -1
  311. package/dist/client/assets/{use-org-notice-DXInzY6B.js → use-org-notice-B1I6Lz9G.js} +1 -1
  312. package/dist/client/assets/{use-org-sso-D6OOHL4I.js → use-org-sso-Bkoh1g8c.js} +1 -1
  313. package/dist/client/assets/{use-organization-roles-C6CqS3Hl.js → use-organization-roles-BfyEvouz.js} +1 -1
  314. package/dist/client/assets/{use-organization-settings-H5G4XpWU.js → use-organization-settings-822MAvzA.js} +1 -1
  315. package/dist/client/assets/{use-panel-navigate-EBQ6GmN1.js → use-panel-navigate-CfBqSRJx.js} +1 -1
  316. package/dist/client/assets/{use-project-native-view-presence-DY4DPkNa.js → use-project-native-view-presence-D8gp5jYC.js} +1 -1
  317. package/dist/client/assets/{use-project-scope-De26TkyD.js → use-project-scope-UolqDpiW.js} +1 -1
  318. package/dist/client/assets/{use-registry-connections-DOOOhGq6.js → use-registry-connections-fPqqwJHB.js} +1 -1
  319. package/dist/client/assets/{use-releases-Cd85Ra1l.js → use-releases-Cbg5_HwT.js} +1 -1
  320. package/dist/client/assets/{use-reports-diagnostic-C3Z-hnHf.js → use-reports-diagnostic-Dlm42p32.js} +1 -1
  321. package/dist/client/assets/{use-route-default-main-CwM8UwOB.js → use-route-default-main-Dxf67Gay.js} +1 -1
  322. package/dist/client/assets/{use-secrets-B7F5FjB9.js → use-secrets-CPAFHAxr.js} +1 -1
  323. package/dist/client/assets/{use-section-preview-base-CMoIrJO-.js → use-section-preview-base-kMBmEGDx.js} +1 -1
  324. package/dist/client/assets/{use-session-runtime-aoBCs__S.js → use-session-runtime-BBfRxqis.js} +1 -1
  325. package/dist/client/assets/{use-tags-pjxdPmb5.js → use-tags-BbWkKH-n.js} +1 -1
  326. package/dist/client/assets/{use-task-metadata-mJK-YnBs.js → use-task-metadata-C4b2me4e.js} +1 -1
  327. package/dist/client/assets/{use-thread-outputs-B9W8oYCz.js → use-thread-outputs-BBZhcvEI.js} +1 -1
  328. package/dist/client/assets/{use-view-mode-BA4qSq0B.js → use-view-mode-nKImchJM.js} +1 -1
  329. package/dist/client/assets/{use-virtual-mcp-Dr5NTd9r.js → use-virtual-mcp-Dd6It4Gy.js} +1 -1
  330. package/dist/client/assets/useInfiniteQuery-jh1wgrcQ.js +1 -0
  331. package/dist/client/assets/{useQueries-Dg4q1uaA.js → useQueries-Bz_0VuN2.js} +1 -1
  332. package/dist/client/assets/useSuspenseInfiniteQuery-B8nGcnhH.js +1 -0
  333. package/dist/client/assets/{users-CGIgpUaK.js → users-Bl2iF4g-.js} +1 -1
  334. package/dist/client/assets/{utils-BS6roSoG.js → utils-8GjS8YYu.js} +1 -1
  335. package/dist/client/assets/{variant-calendar-Mc1lG7f-.js → variant-calendar-BGrVKKIo.js} +1 -1
  336. package/dist/client/assets/{variant-matcher-override-D3DFoTTd.js → variant-matcher-override-Dlsp2B8I.js} +1 -1
  337. package/dist/client/assets/{view-mode-toggle-DE0VcNBJ.js → view-mode-toggle-BcLNRkIj.js} +1 -1
  338. package/dist/client/assets/{virtual-mcp-B9qKMF6v.js → virtual-mcp-KhrhV1xQ.js} +1 -1
  339. package/dist/client/index.html +1 -1
  340. package/dist/server/cli.js +59 -59
  341. package/dist/server/server.js +55 -55
  342. package/package.json +1 -1
  343. package/dist/client/assets/agent-app-DmoPEJGX.js +0 -1
  344. package/dist/client/assets/agent-deck-CmrG0VVN.js +0 -1
  345. package/dist/client/assets/agent-file-C9BmMguw.js +0 -1
  346. package/dist/client/assets/agent-library-file-BoVX_vwF.js +0 -1
  347. package/dist/client/assets/agent-settings-B_cAMSa0.js +0 -1
  348. package/dist/client/assets/agent-site-editor-code-Dzl6qE-Z.js +0 -2
  349. package/dist/client/assets/agent-view-Xhiyf05f.js +0 -1
  350. package/dist/client/assets/api-keys-Cb3SKZFn.js +0 -1
  351. package/dist/client/assets/app-editor-xKEqzK0v.js +0 -1
  352. package/dist/client/assets/category-editor-DkUyXLbS.js +0 -1
  353. package/dist/client/assets/project-reports-CqxK4fWT.js +0 -1
  354. package/dist/client/assets/project-tasks-IgbELLeD.js +0 -1
  355. package/dist/client/assets/record-editor-DsEcUGgo.js +0 -1
  356. package/dist/client/assets/registry-yh_1oSSj.js +0 -2
  357. package/dist/client/assets/reports-C1ta3Pms.js +0 -1
  358. package/dist/client/assets/store-registry-W_KtCEiD.js +0 -2
  359. package/dist/client/assets/tasks-CrfaMYqW.js +0 -1
  360. package/dist/client/assets/useInfiniteQuery-n-cIQ6QW.js +0 -1
  361. package/dist/client/assets/useSuspenseInfiniteQuery-BwUl7I8i.js +0 -1
@@ -1 +1 @@
1
- import{c as Y,j as t,B as Ie,l as xt,b as Ae,ax as dt,eC as Ps,dN as vs,t as ce,n as pt,r as ee,e as lt,m as ct,K as Ye,D as Wt,M as ys,P as Jt,eU as Ss}from"./index-D9SZCEna.js";import{C as Ns}from"./index-DaYZAl9-.js";import{n as _t}from"./LinkExternal01-BKxoqAo_.js";import{a$ as Cs,b0 as ns,a8 as Ds,b1 as $s,b2 as ws,h as kt,av as Yt,H as Gt}from"./agent-icon-CJ74PZ5u.js";import{B as Re}from"./badge-DyIAknWc.js";import{E as Ze}from"./empty-state-BTjMWx5H.js";import{a as Ls}from"./use-virtual-mcp-Dr5NTd9r.js";import{r as _s}from"./site-slug-uya6Wp4-.js";import{i as ks}from"./AlertCircle-BKchbppf.js";import{e as gt}from"./UserSquare-DXP9QUC0.js";import{i as Es}from"./Zap-BOBZbKzr.js";import{A as is,a as ls,b as as,c as os,g as rs,d as cs,e as ms,f as ds}from"./alert-dialog-92GutrH9.js";import{T as fs,a as us,c as hs}from"./tooltip-BM4MyYtx.js";import{S as Rs,c as Fs,a as As,b as zs}from"./sheet-CgrtO55N.js";import{T as Hs,b as nt,c as Fe,e as Et,a as Rt,d as Ft}from"./table-Clh8UGCw.js";import{i as xs}from"./ChevronRight-B1q4aRdE.js";import{a as Vs}from"./Copy01-BdfG_e2R.js";import{a as Ht,b as Vt,C as Bs}from"./collapsible-C1favzij.js";import{i as At}from"./Globe01-B4gNbsCg.js";import{s as Pt}from"./Plus-7oGWv8-d.js";import{s as vt}from"./Trash01-BUixXtcj.js";import{c as yt,d as St,e as Nt,b as Ct,D as Dt}from"./dialog-BCc5hlgI.js";import{I as it}from"./input-DMN2ylja.js";import{L as Xe}from"./label-Dh9EjnVS.js";import{i as Os}from"./Settings02-2akNrypo.js";import{s as qs}from"./Eye-Bwli19bO.js";import{a as Bt,b as Ot,c as ft,d as qt,S as Mt}from"./select-D8neBfTB.js";import{i as Ms}from"./ArrowRight-M0oFo16p.js";import{c as Is}from"./Printer-DhW8UOTN.js";import{S as Us}from"./settings-tab-DHNqjcoa.js";import{c as Qs}from"./use-organization-settings-H5G4XpWU.js";import{b as Ks}from"./thread-route-DvFwa34h.js";import"./use-mobile-C5k18fP1.js";import"./index-Cw7IXwLo.js";import"./resizable-hHcftR57.js";import"./MessageCircle01-bLbPG2BY.js";import"./use-panel-navigate-EBQ6GmN1.js";import"./use-project-scope-De26TkyD.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-CwM8UwOB.js";import"./hooks-CBQzxxCh.js";import"./use-mcp-client-DSGHqAYD.js";import"./auth-BrGex7FY.js";import"./backoff-8mStPHYB.js";import"./task-board-Cw7pQ9f8.js";import"./schema-DobnB1YS.js";import"./toolbar-icon-button-C8vKnpxW.js";import"./Tool01-DXg-697p.js";import"./ArrowUp-DPPS6QAz.js";import"./ArrowLeft-BxcCVSsO.js";import"./Tool02-BZbYKRFW.js";import"./TrendUp01-WeYCREkX.js";import"./ZoomOut-CG3Sk2c2.js";import"./Users03-BNcMDmHT.js";import"./CheckCircle-CXCmqtXe.js";import"./Check-ZxK4xe7F.js";import"./ChevronUp-Lw2r8wDj.js";import"./DotsVertical-BHpLZzPU.js";import"./CreditCard01-C0eii6cH.js";import"./Database01-D9xiMFRQ.js";import"./Download01-DAPCTBrh.js";import"./File02-Bk1dmRy_.js";import"./Share07-Bl1oEFtE.js";import"./GitBranch01-fGQefizx.js";import"./SwitchHorizontal01-1bzMkj1j.js";import"./HardDrive-D_aROQkn.js";import"./Image01-DTFvmUXj.js";import"./Key01-CVWwYajp.js";import"./Link01-CZbhj0_0.js";import"./Monitor01-BPvejB1C.js";import"./Sun-49v3fDGt.js";import"./Package-aFD4MTA7.js";import"./Palette-CPUNhPQw.js";import"./Play-CIReceJE.js";import"./SearchLg-gMgT6qJL.js";import"./SearchMd-DBxEPxbW.js";import"./Shield01-D26ePB5X.js";import"./Stars01-Dja9PZ8p.js";import"./Upload01-51uW4MtH.js";import"./User01-B4JBmtbe.js";import"./Users01-DxH5OmOp.js";import"./XCircle-frgB9vHw.js";import"./XClose-DdmRkPdn.js";import"./X-BdugDRJ_.js";import"./index-unCC-6KL.js";import"./extract-connection-data-QX25cgiT.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-BZn_3MEZ.js";import"./chat-context-CwBa4iNq.js";import"./autosend-mHJRckjC.js";import"./thread-intent-CC6uL69b.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-TTRAg4gu.js";import"./use-ai-providers-D3pmon60.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-DkwYxfvc.js";import"./build-improve-prompt-doc-BmggPsYr.js";import"./avatar-ubLaXORO.js";import"./empty-state-ClkrHYmJ.js";import"./shell-layout-BJKVf96_.js";import"./download-app-dialog-CS9xCo3l.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-DXInzY6B.js";import"./command-palette-store-DOa5piDf.js";import"./command-Bp6cp4pI.js";import"./index-CUJMnria.js";import"./integration-icon-B1sz4SeY.js";import"./project-icon-DQkQSxZw.js";import"./required-auth-layout-O-2fosqz.js";import"./use-org-sso-D6OOHL4I.js";import"./use-date-fns-locale-BWw8dghC.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-B3V4uZfg.js";import"./mcp-oauth-DssHToM4.js";import"./textarea-DRjwrMCJ.js";import"./use-debounced-autosave-BHeNLff-.js";import"./popover-BGd36YgB.js";import"./scroll-area-lKTlOT_0.js";import"./add-connection-dialog-BMRrs0Iv.js";import"./collection-search-aDCUzq7X.js";import"./connection-card-COXej074.js";import"./use-registry-connections-DOOOhGq6.js";import"./useInfiniteQuery-n-cIQ6QW.js";import"./infiniteQueryObserver-D3qec4tz.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-CQ6YvWyB.js";import"./form-CCEoicAR.js";import"./connection-form-helpers-bnj5C_pO.js";import"./authenticate-and-persist-oauth-CUN-wLn1.js";import"./collection-tabs-CCTSLIp7.js";import"./use-infinite-scroll-gZkFm8Rv.js";import"./useSuspenseInfiniteQuery-BwUl7I8i.js";import"./dropdown-menu-tx6OX4aA.js";import"./file-type-icon-Dxp-Ok2P.js";import"./use-org-fs-CY3ClF__.js";import"./checkbox-BzsCo22G.js";import"./search-input-BsvR49ic.js";import"./use-mcp-auth-status-C9YFSjt7.js";import"./types-OTmzvENk.js";import"./use-mcp-tools-5LthbFq_.js";import"./use-mcp-prompts-Dne6CipL.js";import"./utils-CVEq3hMx.js";import"./switch-fMRKTd8o.js";import"./use-project-native-view-presence-DY4DPkNa.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-Ckmsn28x.js";import"./optimistic-project-sidebar-views-CnXa40yZ.js";import"./breadcrumb-D0FcEht9.js";import"./virtual-mcp-B9qKMF6v.js";import"./repository-import-picker-JrKf0rR5.js";import"./use-navigate-to-agent-qRyehLE-.js";import"./repository-picker-CV4V7DF8.js";import"./github-icon-BWfLdLT4.js";import"./use-debounced-value-BGWej6mZ.js";import"./sandbox-url-D3mC8qhT.js";import"./use-secrets-B7F5FjB9.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.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 Ws(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 Xt(r){if(!r)return"—";const e=new Date(r).getTime();if(Number.isNaN(e))return"—";const o=Math.round((Date.now()-e)/1e3),i=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),a=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[l,c]of a)if(Math.abs(o)>=c)return i.format(-Math.round(o/c),l);return i.format(-o,"second")}function Js(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`}class It extends Error{constructor(e,o){super(e),this.status=o}status}function jt(r){return r instanceof It&&r.status===401}function rt(r){return r instanceof Error?r.message:String(r)}function Ys(r){const e=r.trim();if(!e)return null;const i=(e.endsWith(".")?e.slice(0,-1):e).split(".");if(i.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 l of i){if(l.length>63)return`Label "${l}" is too long (max 63 characters)`;if(!/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/i.test(l))return`Label "${l}" has invalid characters or format`}const a=i[i.length-1]??"";return/^[0-9]+$/.test(a)?"Domain must include a valid TLD, not a number":null}function gs(r,e){return r&&typeof r=="object"&&"error"in r?String(r.error):`request failed (${e})`}async function Ut(r){const e=await fetch(r),o=await e.json().catch(()=>({}));if(!e.ok)throw new It(gs(o,e.status),e.status);return o}async function at(r,e,o){const i=await fetch(r,{method:e,headers:o!==void 0?{"Content-Type":"application/json"}:{},body:o!==void 0?JSON.stringify(o):void 0}),a=await i.json().catch(()=>({}));if(!i.ok)throw new It(gs(a,i.status),i.status);return a}function et(r){const e=Y.c(19);let o,i,a,l,c,m;e[0]!==r?({label:i,tooltipSide:l,variant:c,size:m,children:o,...a}=r,e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=l,e[5]=c,e[6]=m):(o=e[1],i=e[2],a=e[3],l=e[4],c=e[5],m=e[6]);const s=l===void 0?"top":l,n=c===void 0?"ghost":c,h=m===void 0?"icon-sm":m;let g;e[7]!==o||e[8]!==i||e[9]!==a||e[10]!==h||e[11]!==n?(g=t.jsx(fs,{asChild:!0,children:t.jsx(Ie,{"data-slot":"icon-button","aria-label":i,variant:n,size:h,...a,children:o})}),e[7]=o,e[8]=i,e[9]=a,e[10]=h,e[11]=n,e[12]=g):g=e[12];let d;e[13]!==i||e[14]!==s?(d=t.jsx(us,{side:s,children:i}),e[13]=i,e[14]=s,e[15]=d):d=e[15];let f;return e[16]!==g||e[17]!==d?(f=t.jsxs(hs,{children:[g,d]}),e[16]=g,e[17]=d,e[18]=f):f=e[18],f}function ut(r){const e=Y.c(4),{title:o,actions:i,children:a}=r;let l;return e[0]!==i||e[1]!==a||e[2]!==o?(l=t.jsx(vs,{title:o,actions:i,children:a}),e[0]=i,e[1]=a,e[2]=o,e[3]=l):l=e[3],l}function Ue(r){const e=Y.c(5),{className:o,children:i}=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 l;return e[2]!==i||e[3]!==a?(l=t.jsx(Ps,{className:a,children:i}),e[2]=i,e[3]=a,e[4]=l):l=e[4],l}function bt(r){const e=Y.c(5),{className:o,children:i}=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 l;return e[2]!==i||e[3]!==a?(l=t.jsx("div",{className:a,children:i}),e[2]=i,e[3]=a,e[4]=l):l=e[4],l}function ot(r){const e=Y.c(2),{children:o}=r;let i;return e[0]!==o?(i=t.jsx("p",{className:"px-4 py-6 text-sm text-muted-foreground",children:o}),e[0]=o,e[1]=i):i=e[1],i}function ht(r){const e=Y.c(2),{rows:o}=r,i=o===void 0?3:o;let a;return e[0]!==i?(a=t.jsx(Ue,{children:Array.from({length:i},Gs)}),e[0]=i,e[1]=a):a=e[1],a}function Gs(r,e){return t.jsxs(bt,{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=Y.c(5),{className:o,children:i}=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 l;return e[2]!==i||e[3]!==a?(l=t.jsx(Hs,{className:a,children:i}),e[2]=i,e[3]=a,e[4]=l):l=e[4],l}function Qt(r){const e=Y.c(12),{open:o,onClick:i}=r,a=Ae();let l;e[0]!==o||e[1]!==a?(l=a(o?"mainPanelTabs.hostingTab.hideDetails":"mainPanelTabs.hostingTab.showDetails"),e[0]=o,e[1]=a,e[2]=l):l=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(xs,{className:m}),e[5]=m,e[6]=s):s=e[6];let n;return e[7]!==i||e[8]!==o||e[9]!==l||e[10]!==s?(n=t.jsx(et,{label:l,size:"icon-sm",className:"-ml-1.5 text-muted-foreground","aria-expanded":o,onClick:i,children:s}),e[7]=i,e[8]=o,e[9]=l,e[10]=s,e[11]=n):n=e[11],n}function Xs(r){const e=Y.c(8),{open:o,colSpan:i,children:a}=r;let l;e[0]!==a?(l=t.jsx(Ht,{children:t.jsx("div",{className:"border-b border-border bg-muted/30 px-4 py-3",children:a})}),e[0]=a,e[1]=l):l=e[1];let c;e[2]!==o||e[3]!==l?(c=t.jsx(Vt,{open:o,children:l}),e[2]=o,e[3]=l,e[4]=c):c=e[4];let m;return e[5]!==i||e[6]!==c?(m=t.jsx(nt,{className:"border-0 hover:bg-transparent",children:t.jsx(Fe,{colSpan:i,className:"p-0 whitespace-normal",children:c})}),e[5]=i,e[6]=c,e[7]=m):m=e[7],m}function ps(r){const e=Y.c(5),{open:o,children:i}=r;let a;e[0]!==i?(a=t.jsx(Ht,{children:t.jsx("div",{className:"border-t border-border bg-muted/30 px-4 py-3",children:i})}),e[0]=i,e[1]=a):a=e[1];let l;return e[2]!==o||e[3]!==a?(l=t.jsx(Vt,{open:o,children:a}),e[2]=o,e[3]=a,e[4]=l):l=e[4],l}function bs(r){const e=Y.c(6),{scope:o}=r,i=Ae(),a=o==="build"?"outline":"secondary";let l;e[0]!==o||e[1]!==i?(l=i(o==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime"),e[0]=o,e[1]=i,e[2]=l):l=e[2];let c;return e[3]!==a||e[4]!==l?(c=t.jsx(Re,{variant:a,children:l}),e[3]=a,e[4]=l,e[5]=c):c=e[5],c}function Zs(r){const e=Y.c(9),{value:o}=r,i=Ae();let a;e[0]!==i?(a=i("mainPanelTabs.hostingTab.dnsCopy"),e[0]=i,e[1]=a):a=e[1];let l;e[2]!==i||e[3]!==o?(l=()=>{if(!navigator.clipboard){ce.error(i("mainPanelTabs.hostingTab.dnsCopyError"));return}navigator.clipboard.writeText(o).then(()=>ce.success(i("mainPanelTabs.hostingTab.dnsCopied")),()=>ce.error(i("mainPanelTabs.hostingTab.dnsCopyError")))},e[2]=i,e[3]=o,e[4]=l):l=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]!==l?(m=t.jsx(et,{label:a,onClick:l,children:c}),e[6]=a,e[7]=l,e[8]=m):m=e[8],m}function $t(r){const e=Y.c(28),{open:o,onOpenChange:i,title:a,description:l,confirmLabel:c,pending:m,onConfirm:s}=r,n=Ae();let h;e[0]!==a?(h=t.jsx(is,{children:a}),e[0]=a,e[1]=h):h=e[1];let g;e[2]!==l?(g=t.jsx(ls,{children:l}),e[2]=l,e[3]=g):g=e[3];let d;e[4]!==h||e[5]!==g?(d=t.jsxs(as,{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(os,{disabled:m,children:f}),e[9]=m,e[10]=f,e[11]=u):u=e[11];let p;e[12]!==s?(p=S=>{S.preventDefault(),s()},e[12]=s,e[13]=p):p=e[13];let x;e[14]!==c||e[15]!==m||e[16]!==p?(x=t.jsx(rs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:p,disabled:m,children:c}),e[14]=c,e[15]=m,e[16]=p,e[17]=x):x=e[17];let N;e[18]!==u||e[19]!==x?(N=t.jsxs(cs,{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(ms,{children:[d,N]}),e[21]=d,e[22]=N,e[23]=C):C=e[23];let P;return e[24]!==i||e[25]!==o||e[26]!==C?(P=t.jsx(ds,{open:o,onOpenChange:i,children:C}),e[24]=i,e[25]=o,e[26]=C,e[27]=P):P=e[27],P}const en=8;function tn(r){const e=Y.c(54),{base:o,orgSlug:i,site:a}=r,l=Ae(),c=pt(),[m,s]=ee.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]!==i||e[3]!==c||e[4]!==a||e[5]!==l?(h=()=>{c.invalidateQueries({queryKey:Ye.hostingDeployments(i,a)}),c.invalidateQueries({queryKey:Ye.hostingDeploymentHistory(i,a)}),ce.success(l("mainPanelTabs.hostingTab.toastDeployQueued")),s(!1)},e[2]=i,e[3]=c,e[4]=a,e[5]=l,e[6]=h):h=e[6];let g;e[7]!==n||e[8]!==h?(g={mutationFn:n,onSuccess:h,onError:sn},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 p;e[12]!==d.isPending||e[13]!==l?(p=d.isPending?l("mainPanelTabs.hostingTab.deploying"):l("mainPanelTabs.hostingTab.deploy"),e[12]=d.isPending,e[13]=l,e[14]=p):p=e[14];let x;e[15]!==d.isPending||e[16]!==p?(x=t.jsxs(Ie,{size:"sm",onClick:f,disabled:d.isPending,children:[u,p]}),e[15]=d.isPending,e[16]=p,e[17]=x):x=e[17];let N;e[18]!==l?(N=l("mainPanelTabs.hostingTab.deployConfirmTitle"),e[18]=l,e[19]=N):N=e[19];let C;e[20]!==N?(C=t.jsx(is,{children:N}),e[20]=N,e[21]=C):C=e[21];let P;e[22]!==l?(P=l("mainPanelTabs.hostingTab.deployConfirmDescription"),e[22]=l,e[23]=P):P=e[23];let S;e[24]!==P?(S=t.jsx(ls,{children:P}),e[24]=P,e[25]=S):S=e[25];let y;e[26]!==S||e[27]!==C?(y=t.jsxs(as,{children:[C,S]}),e[26]=S,e[27]=C,e[28]=y):y=e[28];const R=d.isPending;let $;e[29]!==l?($=l("mainPanelTabs.hostingTab.cancel"),e[29]=l,e[30]=$):$=e[30];let j;e[31]!==d.isPending||e[32]!==$?(j=t.jsx(os,{disabled:R,children:$}),e[31]=d.isPending,e[32]=$,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 H=d.isPending;let q;e[36]!==l?(q=l("mainPanelTabs.hostingTab.deploy"),e[36]=l,e[37]=q):q=e[37];let F;e[38]!==d.isPending||e[39]!==T||e[40]!==q?(F=t.jsx(rs,{onClick:T,disabled:H,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(cs,{children:[j,F]}),e[42]=j,e[43]=F,e[44]=v):v=e[44];let V;e[45]!==y||e[46]!==v?(V=t.jsxs(ms,{children:[y,v]}),e[45]=y,e[46]=v,e[47]=V):V=e[47];let A;e[48]!==m||e[49]!==V?(A=t.jsx(ds,{open:m,onOpenChange:s,children:V}),e[48]=m,e[49]=V,e[50]=A):A=e[50];let U;return e[51]!==A||e[52]!==x?(U=t.jsxs(t.Fragment,{children:[x,A]}),e[51]=A,e[52]=x,e[53]=U):U=e[53],U}function sn(r){return ce.error(rt(r))}function nn(r,e){const o=(r??"").toLowerCase();return o.includes("rollback")?t.jsxs(Re,{variant:"warning",children:[t.jsx($s,{}),e("mainPanelTabs.hostingTab.actionRollback")]}):o.includes("redeploy")?t.jsxs(Re,{variant:"secondary",children:[t.jsx(ws,{}),e("mainPanelTabs.hostingTab.actionRedeploy")]}):t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),e("mainPanelTabs.hostingTab.actionDeploy")]})}function ln(r,e,o){const i=(r??"").toLowerCase();return i==="build"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(ns,{}),o("mainPanelTabs.hostingTab.typeBuild")]}):i==="fast-deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(Es,{}),o("mainPanelTabs.hostingTab.typeFastDeploy")]}):i==="deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),o("mainPanelTabs.hostingTab.typeDeploy")]}):nn(e,o)}function an(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(Ds,{}),e("mainPanelTabs.hostingTab.outcomePending")]}):null}function Zt(r){const e=Y.c(7),{commit:o,onClick:i}=r,a=Ae();let l;e[0]!==a?(l=a("mainPanelTabs.hostingTab.buildLogs"),e[0]=a,e[1]=l):l=e[1];const c=!o;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(ns,{}),e[2]=m):m=e[2];let s;return e[3]!==i||e[4]!==l||e[5]!==c?(s=t.jsx(et,{label:l,onClick:i,disabled:c,children:m}),e[3]=i,e[4]=l,e[5]=c,e[6]=s):s=e[6],s}function on(r){const e=Y.c(37),{base:o,orgSlug:i,site:a,target:l,onOpenChange:c}=r,m=Ae(),s=l!=null,n=l?.commit??"",h=l?.env??"";let g;e[0]!==n||e[1]!==h||e[2]!==i||e[3]!==a?(g=Ye.hostingBuildLogs(i,a,n,h),e[0]=n,e[1]=h,e[2]=i,e[3]=a,e[4]=g):g=e[4];let d;e[5]!==o||e[6]!==n||e[7]!==h?(d=()=>Ut(`${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 p=ct(u),x=p.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(Rs,{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(Fs,{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]!==p.error||e[27]!==p.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(p.error)?t.jsx(Ze,{icon:t.jsx(kt,{className:"size-5"}),title:m("mainPanelTabs.hostingTab.notConnectedTitle"),description:m("mainPanelTabs.hostingTab.notConnectedDescription")}):p.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"})]}):p.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(ks,{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]=p.error,e[27]=p.isLoading,e[28]=m,e[29]=R):R=e[29];let $;e[30]!==R||e[31]!==y?($=t.jsxs(As,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:[y,R]}),e[30]=R,e[31]=y,e[32]=$):$=e[32];let j;return e[33]!==c||e[34]!==s||e[35]!==$?(j=t.jsx(zs,{open:s,onOpenChange:c,children:$}),e[33]=c,e[34]=s,e[35]=$,e[36]=j):j=e[36],j}function rn(r){const e=Y.c(52),{base:o,orgSlug:i,site:a,enabled:l,deployments:c,isLoading:m,error:s}=r,n=Ae(),[h,g]=ee.useState(null),[d,f]=ee.useState(en),[u,p]=ee.useState(null);let x;e[0]!==i||e[1]!==a?(x=Ye.hostingDeploymentHistory(i,a),e[0]=i,e[1]=a,e[2]=x):x=e[2];let N;e[3]!==o?(N=()=>Ut(`${o}/deployments/history?limit=50`),e[3]=o,e[4]=N):N=e[4];let C;e[5]!==l||e[6]!==x||e[7]!==N?(C={queryKey:x,queryFn:N,enabled:l,retry:!1,staleTime:3e4},e[5]=l,e[6]=x,e[7]=N,e[8]=C):C=e[8];const P=ct(C);let S,y,R,$;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),V=F.length-v.length;let A;e[22]!==c?(A=c.find(dn)?.commitSha??c.find(mn)?.commitSha??null,e[22]=c,e[23]=A):A=e[23];const U=A;let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=(b,I)=>{b&&p({commit:b,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 Q;e[27]!==c||e[28]!==s||e[29]!==h||e[30]!==m||e[31]!==n?(Q=m?t.jsx(ht,{}):s?t.jsx(Ue,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deploymentsError")})}):c.length===0?t.jsx(Ue,{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(b=>{const I=!!b.buildMessage,G=h===b.id;return t.jsxs(ee.Fragment,{children:[t.jsxs(nt,{className:xt(I&&"cursor-pointer hover:bg-muted/40"),onClick:I?()=>g(G?null:b.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:G,onClick:()=>g(G?null:b.id)}):t.jsx(Cs,{className:"size-4 text-muted-foreground/60"}),t.jsx("span",{className:"font-mono text-xs",children:b.shortCommit??b.commitSha?.slice(0,7)??"—"}),b.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:Ws(b.phase),children:b.phase??"—"}),b.up===!0&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(b.framework)??"—"}),t.jsx(Fe,{className:"text-right font-mono text-xs text-muted-foreground tabular-nums",children:Js(b.durationMs)}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Xt(b.finishedAt??b.startedAt??b.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",onClick:cn,children:t.jsx(Zt,{commit:b.commitSha,onClick:()=>W(b.commitSha,b.env)})})]}),I&&t.jsx(Xs,{open:G,colSpan:6,children:t.jsx("p",{className:"whitespace-pre-wrap break-words font-mono text-xs text-muted-foreground",children:b.buildMessage})})]},b.id)})})]}),e[27]=c,e[28]=s,e[29]=h,e[30]=m,e[31]=n,e[32]=Q):Q=e[32],e[33]!==Q||e[34]!==J?($=t.jsx(ut,{title:J,children:Q}),e[33]=Q,e[34]=J,e[35]=$):$=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(Ue,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deployHistoryError")})}):F.length===0?t.jsx(Ue,{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(b=>{const I=!!U&&b.commitSha===U;return t.jsxs(nt,{children:[t.jsx(Fe,{className:"pl-4",children:ln(b.type,b.action,n)}),t.jsx(Fe,{children:an(b.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:b.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(b.framework)??"—"}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:b.actor??"—"}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Xt(b.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",children:t.jsx(Zt,{commit:b.commitSha,onClick:()=>W(b.commitSha,b.env)})})]},b.id)}),V>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(V)})})})})]})]}),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]=$}else S=e[18],y=e[19],R=e[20],$=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||p(null)},e[42]=T):T=e[42];let H;e[43]!==o||e[44]!==u||e[45]!==i||e[46]!==a?(H=t.jsx(on,{base:o,orgSlug:i,site:a,target:u,onOpenChange:T}),e[43]=o,e[44]=u,e[45]=i,e[46]=a,e[47]=H):H=e[47];let q;return e[48]!==$||e[49]!==j||e[50]!==H?(q=t.jsxs(t.Fragment,{children:[$,j,H]}),e[48]=$,e[49]=j,e[50]=H,e[51]=q):q=e[51],q}function cn(r){return r.stopPropagation()}function mn(r){return r.production===!0&&r.up}function dn(r){return r.up===!0}const fn=["16.148.147.194","52.32.122.94","52.35.156.199"];function un(r){return r.replace(/\.$/,"").split(".").filter(Boolean).length===2}function es(r){const e=r.trim();return e.length>0&&!e.startsWith("/")&&e.includes(".")}function Ts(r){const e=Y.c(24),{records:o}=r,i=Ae();let a;e[0]!==i?(a=i("mainPanelTabs.hostingTab.dnsColType"),e[0]=i,e[1]=a):a=e[1];let l;e[2]!==a?(l=t.jsx(Me,{className:"w-16",children:a}),e[2]=a,e[3]=l):l=e[3];let c;e[4]!==i?(c=i("mainPanelTabs.hostingTab.dnsColName"),e[4]=i,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]!==i?(s=i("mainPanelTabs.hostingTab.dnsColValue"),e[8]=i,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]!==l||e[14]!==m||e[15]!==n?(g=t.jsx(Rt,{children:t.jsxs(nt,{children:[l,m,n,h]})}),e[13]=l,e[14]=m,e[15]=n,e[16]=g):g=e[16];let d;e[17]!==o?(d=o.map(hn),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 hn(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(Zs,{value:r.value})})]},`${r.type}-${r.name}-${r.value}`)}function js(r){const e=Y.c(14),{status:o,children:i}=r,a=Ae();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(At,{className:"size-4 text-muted-foreground"}),e[0]=l):l=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:[l,m,s]}),e[8]=m,e[9]=s,e[10]=n):n=e[10];let h;return e[11]!==i||e[12]!==n?(h=t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[n,i]}),e[11]=i,e[12]=n,e[13]=h):h=e[13],h}function ts(r){const e=Y.c(21),{from:o,source:i}=r,a=Ae();let l,c,m,s,n;if(e[0]!==o||e[1]!==i||e[2]!==a){const d=o.trim().replace(/\.$/,""),f=d?un(d)?"@":d:"@",u=i==="both";c=js,e[8]!==u?(s={active:u},e[8]=u,e[9]=s):s=e[9];let p;e[10]!==u||e[11]!==a?(p=a(u?"mainPanelTabs.hostingTab.dnsActiveHint":"mainPanelTabs.hostingTab.dnsAwaitingHint"),e[10]=u,e[11]=a,e[12]=p):p=e[12],n=t.jsxs("p",{className:"text-xs text-muted-foreground",children:[a("mainPanelTabs.hostingTab.dnsRedirectIntent",{from:d||"—"})," ",p]}),l=Ts,m=fn.map(x=>({type:"A",name:f,value:x})),e[0]=o,e[1]=i,e[2]=a,e[3]=l,e[4]=c,e[5]=m,e[6]=s,e[7]=n}else l=e[3],c=e[4],m=e[5],s=e[6],n=e[7];let h;e[13]!==l||e[14]!==m?(h=t.jsx(l,{records:m}),e[13]=l,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 ss(r){const e=Y.c(2),{records:o}=r;if(o.length===0)return null;let i;return e[0]!==o?(i=t.jsx(js,{children:t.jsx(Ts,{records:o})}),e[0]=o,e[1]=i):i=e[1],i}function xn(r){const e=Y.c(16),{domain:o}=r,i=Ae(),a=o.status??"pending";let l;e[0]!==a||e[1]!==i?(l=i(a==="active"?"mainPanelTabs.hostingTab.statusActive":a==="action-required"?"mainPanelTabs.hostingTab.statusActionRequired":"mainPanelTabs.hostingTab.statusPending"),e[0]=a,e[1]=i,e[2]=l):l=e[2];const c=l;let m;e[3]!==o.detail||e[4]!==i?(m=o.detail==="zone-not-onboarded"?i("mainPanelTabs.hostingTab.detailZoneNotOnboarded"):void 0,e[3]=o.detail,e[4]=i,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(fs,{asChild:!0,children:g}),e[9]=g,e[10]=d):d=e[10];let f;e[11]!==s?(f=t.jsx(us,{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(hs,{children:[d,f]}),e[13]=d,e[14]=f,e[15]=u):u=e[15],u}function gn(r){const e=Y.c(121),{base:o,orgSlug:i,site:a,domains:l,dnsTemplate:c,isLoading:m,error:s}=r,n=Ae(),h=pt(),[g,d]=ee.useState(!1),[f,u]=ee.useState(""),[p,x]=ee.useState(null),[N,C]=ee.useState(null);let P;e[0]!==i||e[1]!==h||e[2]!==a?(P=()=>h.invalidateQueries({queryKey:Ye.hostingDomains(i,a)}),e[0]=i,e[1]=h,e[2]=a,e[3]=P):P=e[3];const S=P;let y;e[4]!==o?(y=w=>at(`${o}/domains`,"PUT",w),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 $;e[9]!==y||e[10]!==R?($={mutationFn:y,onSuccess:R,onError:bn},e[9]=y,e[10]=R,e[11]=$):$=e[11];const j=lt($);let T;e[12]!==o?(T=w=>at(`${o}/domains/${encodeURIComponent(w)}`,"DELETE"),e[12]=o,e[13]=T):T=e[13];let H;e[14]!==S||e[15]!==n?(H=()=>{S(),ce.success(n("mainPanelTabs.hostingTab.toastDomainDeleted")),x(null)},e[14]=S,e[15]=n,e[16]=H):H=e[16];let q;e[17]!==T||e[18]!==H?(q={mutationFn:T,onSuccess:H,onError:pn},e[17]=T,e[18]=H,e[19]=q):q=e[19];const F=lt(q);let v;e[20]!==f||e[21]!==j||e[22]!==n?(v=()=>{const w=f.trim().toLowerCase();if(!w){ce.error(n("mainPanelTabs.hostingTab.errorDomainHostRequired"));return}const se=Ys(w);if(se){ce.error(se);return}j.mutate({host:w})},e[20]=f,e[21]=j,e[22]=n,e[23]=v):v=e[23];const V=v;let A;if(e[24]!==c||e[25]!==f){let w;e[27]!==f?(w=se=>({...se,name:f.trim().toLowerCase()||se.name}),e[27]=f,e[28]=w):w=e[28],A=c.map(w),e[24]=c,e[25]=f,e[26]=A}else A=e[26];const U=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 Q;e[33]!==J?(Q=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:_,children:[W,J]}),e[33]=J,e[34]=Q):Q=e[34];const b=Q;let I;e[35]!==n?(I=n("mainPanelTabs.hostingTab.domains"),e[35]=n,e[36]=I):I=e[36];const G=l.length>0?b:void 0;let D;e[37]!==b||e[38]!==F.isPending||e[39]!==N||e[40]!==l||e[41]!==s||e[42]!==m||e[43]!==n?(D=m?t.jsx(ht,{}):s?t.jsx(Ue,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.domainsError")})}):l.length===0?t.jsx(Ue,{children:t.jsx(Ze,{icon:t.jsx(At,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDomains"),className:"py-10",buttonComponent:b})}):t.jsx(Ue,{children:l.map((w,se)=>{const Se=!w.canonical&&(w.dns?.length??0)>0,je=N===w.host;return t.jsxs("div",{children:[t.jsxs(bt,{children:[Se?t.jsx(Qt,{open:je,onClick:()=>C(je?null:w.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:w.host}),w.canonical&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.canonical")})]}),t.jsx(xn,{domain:w}),!w.canonical&&t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteDomain"),onClick:()=>x(w.host),disabled:F.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]}),Se&&t.jsx(ps,{open:je,children:t.jsx(ss,{records:w.dns??[]})})]},`${w.host}-${se}`)})}),e[37]=b,e[38]=F.isPending,e[39]=N,e[40]=l,e[41]=s,e[42]=m,e[43]=n,e[44]=D):D=e[44];let X;e[45]!==n?(X=n("mainPanelTabs.hostingTab.addDomainTitle"),e[45]=n,e[46]=X):X=e[46];let O;e[47]!==X?(O=t.jsx(yt,{children:t.jsx(St,{children:X})}),e[47]=X,e[48]=O):O=e[48];let k;e[49]!==V?(k=w=>{w.preventDefault(),V()},e[49]=V,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 Z;e[55]!==n?(Z=n("mainPanelTabs.hostingTab.domainHostPlaceholder"),e[55]=n,e[56]=Z):Z=e[56];let te;e[57]===Symbol.for("react.memo_cache_sentinel")?(te=w=>u(w.target.value),e[57]=te):te=e[57];let K;e[58]!==f||e[59]!==j.isPending||e[60]!==Z?(K=t.jsx(it,{id:"domain-host",placeholder:Z,value:f,onChange:te,className:"font-mono text-xs",autoComplete:"off",disabled:j.isPending}),e[58]=f,e[59]=j.isPending,e[60]=Z,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]!==U?(ie=f.trim()&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ss,{records:U})}),e[65]=f,e[66]=U,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 be;e[71]!==j.isPending||e[72]!==me?(be=t.jsx(Ie,{variant:"outline",type:"button",onClick:Pe,disabled:Ce,children:me}),e[71]=j.isPending,e[72]=me,e[73]=be):be=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]!==be||e[84]!==de?(De=t.jsxs(Nt,{children:[be,de]}),e[83]=be,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=p!=null;let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=w=>{w||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=p??"";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]!==p?(re=()=>{p&&F.mutate(p)},e[105]=F,e[106]=p,e[107]=re):re=e[107];let pe;e[108]!==F.isPending||e[109]!==Te||e[110]!==xe||e[111]!==ye||e[112]!==ge||e[113]!==re?(pe=t.jsx($t,{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]=pe):pe=e[114];let $e;return e[115]!==I||e[116]!==G||e[117]!==D||e[118]!==oe||e[119]!==pe?($e=t.jsxs(ut,{title:I,actions:G,children:[D,oe,pe]}),e[115]=I,e[116]=G,e[117]=D,e[118]=oe,e[119]=pe,e[120]=$e):$e=e[120],$e}function pn(r){return ce.error(rt(r))}function bn(r){return ce.error(rt(r))}function Tn(r){const e=Y.c(24),{value:o,onChange:i,disabled:a,className:l}=r,c=Ae();let m;e[0]!==i?(m=N=>i(N==="build"?"build":"runtime"),e[0]=i,e[1]=m):m=e[1];let s;e[2]!==l?(s=xt("h-8",l),e[2]=l,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 p;e[15]!==d||e[16]!==u?(p=t.jsxs(qt,{children:[d,u]}),e[15]=d,e[16]=u,e[17]=p):p=e[17];let x;return e[18]!==a||e[19]!==m||e[20]!==h||e[21]!==p||e[22]!==o?(x=t.jsxs(Mt,{value:o,onValueChange:m,disabled:a,children:[h,p]}),e[18]=a,e[19]=m,e[20]=h,e[21]=p,e[22]=o,e[23]=x):x=e[23],x}function jn(r){const e=Y.c(151),{base:o,orgSlug:i,site:a,envVars:l,codeVars:c,isLoading:m,error:s}=r,n=Ae(),h=pt(),[g,d]=ee.useState(!1),[f,u]=ee.useState(""),[p,x]=ee.useState(""),[N,C]=ee.useState("runtime"),[P,S]=ee.useState(null),[y,R]=ee.useState(""),[$,j]=ee.useState(null);let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T=new Set,e[0]=T):T=e[0];const[H,q]=ee.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 V;e[2]!==o?(V=L=>at(`${o}/env`,"PUT",{vars:L}),e[2]=o,e[3]=V):V=e[3];let A;e[4]!==i||e[5]!==h||e[6]!==a||e[7]!==n?(A=()=>{h.invalidateQueries({queryKey:Ye.hostingEnv(i,a)}),ce.success(n("mainPanelTabs.hostingTab.toastEnvSaved"))},e[4]=i,e[5]=h,e[6]=a,e[7]=n,e[8]=A):A=e[8];let U;e[9]!==V||e[10]!==A?(U={mutationFn:V,onSuccess:A,onError:vn},e[9]=V,e[10]=A,e[11]=U):U=e[11];const _=lt(U);let W;e[12]!==f||e[13]!==N||e[14]!==p||e[15]!==_||e[16]!==l||e[17]!==n?(W=()=>{const L=f.trim();if(!L){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameRequired"));return}if(l.some(Ne=>Lt(Ne,{name:L,scope:N}))){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameDuplicate"));return}_.mutate([...l,{name:L,value:p,scope:N}],{onSuccess:()=>{d(!1),u(""),x(""),C("runtime")}})},e[12]=f,e[13]=N,e[14]=p,e[15]=_,e[16]=l,e[17]=n,e[18]=W):W=e[18];const J=W;let Q;e[19]!==y||e[20]!==_||e[21]!==l?(Q=L=>{_.mutate(l.map(Ne=>Lt(Ne,L)?{name:L.name,value:y,scope:L.scope}:Ne),{onSuccess:()=>S(null)})},e[19]=y,e[20]=_,e[21]=l,e[22]=Q):Q=e[22];const b=Q;let I;e[23]!==$||e[24]!==_||e[25]!==l?(I=()=>{$&&_.mutate(l.filter(L=>!Lt(L,$)),{onSuccess:()=>j(null)})},e[23]=$,e[24]=_,e[25]=l,e[26]=I):I=e[26];const G=I,D=_.isPending;let X;e[27]===Symbol.for("react.memo_cache_sentinel")?(X=()=>{u(""),x(""),C("runtime")},e[27]=X):X=e[27];const O=X;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 Z;e[32]!==B?(Z=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:k,children:[E,B]}),e[32]=B,e[33]=Z):Z=e[33];const te=Z;let K;e[34]!==n?(K=n("mainPanelTabs.hostingTab.env"),e[34]=n,e[35]=K):K=e[35];const ne=l.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]!==l||e[42]!==s||e[43]!==b||e[44]!==m||e[45]!==D||e[46]!==H||e[47]!==n?(ie=m?t.jsx(ht,{}):s?t.jsx(Ue,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.envError")})}):l.length===0&&c.length===0?t.jsx(Ue,{children:t.jsx(Ze,{icon:t.jsx(Yt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noEnv"),className:"py-10",buttonComponent:te})}):t.jsxs(Ue,{children:[l.map(L=>{const Ne=L.scope==="build"?"build":"runtime",We=`${L.name}:${Ne}`,tt=P?.name===L.name&&P?.scope===Ne,st=H.has(We);return t.jsxs(bt,{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"&&b({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:()=>b({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(Os,{}):t.jsx(qs,{})}),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(Vt,{children:[t.jsx(Bs,{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(xs,{className:"size-4 transition-transform duration-200 group-data-[state=open]:rotate-90 motion-reduce:transition-none"}),t.jsx(Yt,{className:"size-4"}),n("mainPanelTabs.hostingTab.codeVarsToggle",{count:String(c.length)})]})}),t.jsx(Ht,{children:t.jsx("div",{className:"divide-y divide-border/60 border-t border-border bg-muted/30",children:c.map(Pn)})})]})]}),e[36]=te,e[37]=c,e[38]=y,e[39]=P?.name,e[40]=P?.scope,e[41]=l,e[42]=s,e[43]=b,e[44]=m,e[45]=D,e[46]=H,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 be;e[54]!==J?(be=L=>{L.preventDefault(),J()},e[54]=J,e[55]=be):be=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]!==p||e[78]!==D||e[79]!==he?(ve=t.jsx(it,{id:"env-value",placeholder:he,value:p,onChange:xe,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[77]=p,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 pe;e[88]!==N||e[89]!==D?(pe=t.jsx(Tn,{value:N,onChange:C,disabled:D,className:"w-full"}),e[88]=N,e[89]=D,e[90]=pe):pe=e[90];let $e;e[91]!==N||e[92]!==n?($e=n(N==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[91]=N,e[92]=n,e[93]=$e):$e=e[93];let w;e[94]!==$e?(w=t.jsx("p",{className:"text-xs text-muted-foreground",children:$e}),e[94]=$e,e[95]=w):w=e[95];let se;e[96]!==re||e[97]!==pe||e[98]!==w?(se=t.jsxs("div",{className:"flex flex-col gap-2",children:[re,pe,w]}),e[96]=re,e[97]=pe,e[98]=w,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 we;e[103]!==D||e[104]!==je?(we=t.jsx(Ie,{variant:"outline",type:"button",onClick:Se,disabled:D,children:je}),e[103]=D,e[104]=je,e[105]=we):we=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]!==we||e[116]!==Le?(_e=t.jsxs(Nt,{children:[we,Le]}),e[115]=we,e[116]=Le,e[117]=_e):_e=e[117];let Be;e[118]!==be||e[119]!==ue||e[120]!==ye||e[121]!==se||e[122]!==_e?(Be=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:be,children:[ue,ye,se,_e]}),e[118]=be,e[119]=ue,e[120]=ye,e[121]=se,e[122]=_e,e[123]=Be):Be=e[123];let He;e[124]!==me||e[125]!==Be?(He=t.jsxs(Ct,{className:"sm:max-w-md",children:[me,Be]}),e[124]=me,e[125]=Be,e[126]=He):He=e[126];let ke;e[127]!==g||e[128]!==He?(ke=t.jsx(Dt,{open:g,onOpenChange:Pe,children:He}),e[127]=g,e[128]=He,e[129]=ke):ke=e[129];const Je=$!=null;let Ve;e[130]===Symbol.for("react.memo_cache_sentinel")?(Ve=L=>{L||j(null)},e[130]=Ve):Ve=e[130];let Ee;e[131]!==n?(Ee=n("mainPanelTabs.hostingTab.confirmDeleteVariableTitle"),e[131]=n,e[132]=Ee):Ee=e[132];const Oe=$?.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 Qe;e[136]!==n?(Qe=n("mainPanelTabs.hostingTab.deleteVariable"),e[136]=n,e[137]=Qe):Qe=e[137];let M;e[138]!==G||e[139]!==D||e[140]!==Je||e[141]!==Ee||e[142]!==qe||e[143]!==Qe?(M=t.jsx($t,{open:Je,onOpenChange:Ve,title:Ee,description:qe,confirmLabel:Qe,pending:D,onConfirm:G}),e[138]=G,e[139]=D,e[140]=Je,e[141]=Ee,e[142]=qe,e[143]=Qe,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 Pn(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 vn(r){return ce.error(rt(r))}function yn(r){const e=Y.c(6),{type:o}=r,i=Ae(),a=o==="permanent"?"secondary":"outline";let l;e[0]!==i||e[1]!==o?(l=i(o==="permanent"?"mainPanelTabs.hostingTab.permanent":"mainPanelTabs.hostingTab.temporary"),e[0]=i,e[1]=o,e[2]=l):l=e[2];let c;return e[3]!==a||e[4]!==l?(c=t.jsx(Re,{variant:a,children:l}),e[3]=a,e[4]=l,e[5]=c):c=e[5],c}function Sn(r){const e=Y.c(163),{base:o,orgSlug:i,site:a,redirects:l,isLoading:c,error:m}=r,s=Ae(),n=pt(),[h,g]=ee.useState(!1),[d,f]=ee.useState(null),[u,p]=ee.useState(""),[x,N]=ee.useState(""),[C,P]=ee.useState("permanent"),[S,y]=ee.useState(null),[R,$]=ee.useState(null);let j;e[0]!==i||e[1]!==n||e[2]!==a?(j=()=>n.invalidateQueries({queryKey:Ye.hostingRedirects(i,a)}),e[0]=i,e[1]=n,e[2]=a,e[3]=j):j=e[3];const T=j;let H;e[4]!==o?(H=z=>at(`${o}/redirects`,"PUT",z),e[4]=o,e[5]=H):H=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]!==H||e[10]!==q?(F={mutationFn:H,onSuccess:q,onError:Cn},e[9]=H,e[10]=q,e[11]=F):F=e[11];const v=lt(F);let V;e[12]!==o?(V=z=>at(`${o}/redirects/${encodeURIComponent(z)}`,"DELETE"),e[12]=o,e[13]=V):V=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 U;e[17]!==V||e[18]!==A?(U={mutationFn:V,onSuccess:A,onError:Nn},e[17]=V,e[18]=A,e[19]=U):U=e[19];const _=lt(U);let W;e[20]===Symbol.for("react.memo_cache_sentinel")?(W=()=>{f(null),p(""),N(""),P("permanent"),g(!0)},e[20]=W):W=e[20];const J=W;let Q;e[21]===Symbol.for("react.memo_cache_sentinel")?(Q=z=>{f(z.from),p(z.from),N(z.to),P(z.type==="temporary"?"temporary":"permanent"),g(!0)},e[21]=Q):Q=e[21];const b=Q;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 G=I;let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(Pt,{}),e[28]=D):D=e[28];let X;e[29]!==s?(X=s("mainPanelTabs.hostingTab.addRedirect"),e[29]=s,e[30]=X):X=e[30];let O;e[31]!==X?(O=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:J,children:[D,X]}),e[31]=X,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=l.length>0?k:void 0;let Z;e[35]!==k||e[36]!==_.isPending||e[37]!==R||e[38]!==m||e[39]!==c||e[40]!==v.isPending||e[41]!==l||e[42]!==s?(Z=c?t.jsx(ht,{}):m?t.jsx(Ue,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.redirectsError")})}):l.length===0?t.jsx(Ue,{children:t.jsx(Ze,{icon:t.jsx(Gt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noRedirects"),className:"py-10",buttonComponent:k})}):t.jsx(Ue,{children:l.map((z,Tt)=>{const Kt=es(z.from),wt=R===z.from;return t.jsxs("div",{children:[t.jsxs(bt,{children:[Kt?t.jsx(Qt,{open:wt,onClick:()=>$(wt?null:z.from)}):t.jsx(Gt,{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(Ms,{className:"size-3.5 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"truncate text-muted-foreground",children:z.to})]}),t.jsx(yn,{type:z.type}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.editRedirect"),onClick:()=>b(z),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(Is,{})}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.deleteRedirect"),onClick:()=>y(z.from),disabled:_.isPending,className:"-ml-1 text-muted-foreground",children:t.jsx(vt,{})})]}),Kt&&t.jsx(ps,{open:wt,children:t.jsx(ts,{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]=l,e[42]=s,e[43]=Z):Z=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]!==G?(ne=z=>{z.preventDefault(),G()},e[49]=G,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=>p(z.target.value),e[57]=me):me=e[57];const be=d!=null||v.isPending;let le;e[58]!==u||e[59]!==Ce||e[60]!==be?(le=t.jsx(it,{id:"redirect-from",placeholder:Ce,value:u,onChange:me,className:"font-mono text-xs",disabled:be}),e[58]=u,e[59]=Ce,e[60]=be,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 pe;e[87]!==re?(pe=t.jsx(ft,{value:"permanent",children:re}),e[87]=re,e[88]=pe):pe=e[88];let $e;e[89]!==s?($e=s("mainPanelTabs.hostingTab.temporary"),e[89]=s,e[90]=$e):$e=e[90];let w;e[91]!==$e?(w=t.jsx(ft,{value:"temporary",children:$e}),e[91]=$e,e[92]=w):w=e[92];let se;e[93]!==pe||e[94]!==w?(se=t.jsxs(qt,{children:[pe,w]}),e[93]=pe,e[94]=w,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 we;e[103]!==d||e[104]!==u||e[105]!==l?(we=es(u)&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ts,{from:u,source:l.find(z=>z.from===d)?.source})}),e[103]=d,e[104]=u,e[105]=l,e[106]=we):we=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 He;e[117]!==v.isPending||e[118]!==s?(He=v.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.save"),e[117]=v.isPending,e[118]=s,e[119]=He):He=e[119];let ke;e[120]!==Be||e[121]!==He?(ke=t.jsx(Ie,{type:"submit",disabled:Be,children:He}),e[120]=Be,e[121]=He,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 Ve;e[126]!==ne||e[127]!==ae||e[128]!==Te||e[129]!==je||e[130]!==we||e[131]!==Je?(Ve=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:ne,children:[ae,Te,je,we,Je]}),e[126]=ne,e[127]=ae,e[128]=Te,e[129]=je,e[130]=we,e[131]=Je,e[132]=Ve):Ve=e[132];let Ee;e[133]!==K||e[134]!==Ve?(Ee=t.jsxs(Ct,{className:"sm:max-w-md",children:[K,Ve]}),e[133]=K,e[134]=Ve,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 Qe;e[139]===Symbol.for("react.memo_cache_sentinel")?(Qe=z=>{z||y(null)},e[139]=Qe):Qe=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($t,{open:qe,onOpenChange:Qe,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]!==Z||e[160]!==Oe||e[161]!==tt?(st=t.jsxs(ut,{title:E,actions:B,children:[Z,Oe,tt]}),e[157]=E,e[158]=B,e[159]=Z,e[160]=Oe,e[161]=tt,e[162]=st):st=e[162],st}function Nn(r){return ce.error(rt(r))}function Cn(r){return ce.error(rt(r))}function Dn(r){const e=Y.c(160),{base:o,orgSlug:i,site:a,secrets:l,isLoading:c,error:m}=r,s=Ae(),n=pt(),[h,g]=ee.useState(!1),[d,f]=ee.useState(""),[u,p]=ee.useState(""),[x,N]=ee.useState("runtime"),[C,P]=ee.useState(null);let S;e[0]!==i||e[1]!==n||e[2]!==a?(S=()=>n.invalidateQueries({queryKey:Ye.hostingSecrets(i,a)}),e[0]=i,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 $;e[6]!==y||e[7]!==s?($=()=>{y(),ce.success(s("mainPanelTabs.hostingTab.toastSecretSaved")),g(!1),f(""),p(""),N("runtime")},e[6]=y,e[7]=s,e[8]=$):$=e[8];let j;e[9]!==R||e[10]!==$?(j={mutationFn:R,onSuccess:$,onError:wn},e[9]=R,e[10]=$,e[11]=j):j=e[11];const T=lt(j);let H;e[12]!==o?(H=M=>at(`${o}/secrets/${encodeURIComponent(M.name)}?scope=${M.scope}`,"DELETE"),e[12]=o,e[13]=H):H=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]!==H||e[18]!==q?(F={mutationFn:H,onSuccess:q,onError:$n},e[17]=H,e[18]=q,e[19]=F):F=e[19];const v=lt(F);let V;e[20]!==d||e[21]!==x||e[22]!==u||e[23]!==T||e[24]!==s?(V=()=>{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]=V):V=e[25];const A=V;let U,_;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=()=>g(!0),U=t.jsx(Pt,{}),e[26]=U,e[27]=_):(U=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:[U,W]}),e[30]=W,e[31]=J):J=e[31];const Q=J;let b;e[32]!==s?(b=s("mainPanelTabs.hostingTab.secrets"),e[32]=s,e[33]=b):b=e[33];const I=l.length>0?Q:void 0;let G;e[34]!==Q||e[35]!==v.isPending||e[36]!==m||e[37]!==c||e[38]!==l||e[39]!==s?(G=c?t.jsx(ht,{}):m?t.jsx(Ue,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.secretsError")})}):l.length===0?t.jsx(Ue,{children:t.jsx(Ze,{icon:t.jsx(Wt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noSecrets"),className:"py-10",buttonComponent:Q})}):t.jsx(Ue,{children:l.map(M=>{const Ge=M.scope==="build"?"build":"runtime";return t.jsxs(bt,{children:[t.jsx(Wt,{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]=Q,e[35]=v.isPending,e[36]=m,e[37]=c,e[38]=l,e[39]=s,e[40]=G):G=e[40];let D;e[41]!==s?(D=s("mainPanelTabs.hostingTab.addSecretTitle"),e[41]=s,e[42]=D):D=e[42];let X;e[43]!==D?(X=t.jsx(yt,{children:t.jsx(St,{children:D})}),e[43]=D,e[44]=X):X=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 Z;e[53]===Symbol.for("react.memo_cache_sentinel")?(Z=M=>f(M.target.value),e[53]=Z):Z=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:Z,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=>p(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 be;e[72]!==ie||e[73]!==me?(be=t.jsxs("div",{className:"flex flex-col gap-2",children:[ie,me]}),e[72]=ie,e[73]=me,e[74]=be):be=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 pe;e[105]===Symbol.for("react.memo_cache_sentinel")?(pe=()=>g(!1),e[105]=pe):pe=e[105];const $e=T.isPending;let w;e[106]!==s?(w=s("mainPanelTabs.hostingTab.cancel"),e[106]=s,e[107]=w):w=e[107];let se;e[108]!==T.isPending||e[109]!==w?(se=t.jsx(Ie,{variant:"outline",type:"button",onClick:pe,disabled:$e,children:w}),e[108]=T.isPending,e[109]=w,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 we;e[118]!==Se||e[119]!==je?(we=t.jsx(Ie,{type:"submit",disabled:Se,children:je}),e[118]=Se,e[119]=je,e[120]=we):we=e[120];let ze;e[121]!==se||e[122]!==we?(ze=t.jsxs(Nt,{children:[se,we]}),e[121]=se,e[122]=we,e[123]=ze):ze=e[123];let Ke;e[124]!==O||e[125]!==K||e[126]!==be||e[127]!==re||e[128]!==ze?(Ke=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:O,children:[K,be,re,ze]}),e[124]=O,e[125]=K,e[126]=be,e[127]=re,e[128]=ze,e[129]=Ke):Ke=e[129];let Le;e[130]!==X||e[131]!==Ke?(Le=t.jsxs(Ct,{className:"sm:max-w-md",children:[X,Ke]}),e[130]=X,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 He;e[136]===Symbol.for("react.memo_cache_sentinel")?(He=M=>{M||P(null)},e[136]=He):He=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 Ve;e[139]!==s||e[140]!==Je?(Ve=s("mainPanelTabs.hostingTab.confirmDeleteSecretDescription",{name:Je}),e[139]=s,e[140]=Je,e[141]=Ve):Ve=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]!==Ve||e[151]!==Ee||e[152]!==Oe?(qe=t.jsx($t,{open:Be,onOpenChange:He,title:ke,description:Ve,confirmLabel:Ee,pending:v.isPending,onConfirm:Oe}),e[147]=v.isPending,e[148]=Be,e[149]=ke,e[150]=Ve,e[151]=Ee,e[152]=Oe,e[153]=qe):qe=e[153];let Qe;return e[154]!==b||e[155]!==I||e[156]!==G||e[157]!==_e||e[158]!==qe?(Qe=t.jsxs(ut,{title:b,actions:I,children:[G,_e,qe]}),e[154]=b,e[155]=I,e[156]=G,e[157]=_e,e[158]=qe,e[159]=Qe):Qe=e[159],Qe}function $n(r){return ce.error(rt(r))}function wn(r){return ce.error(rt(r))}const Ln=3e4;function _n(r){const e=Y.c(111),{virtualMcpId:o}=r,i=Ae(),{org:a}=ys(),l=Ls(o),c=_s(l),m=!!c,s=c?`/api/${a.slug}/hosting/${encodeURIComponent(c)}`:"";let n;e[0]!==s||e[1]!==m?(n=(O,k)=>({queryKey:O,queryFn:()=>Ut(`${s}${k}`),enabled:m,retry:!1,staleTime:Ln}),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")),p=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]!==i?(k=i("mainPanelTabs.hostingTab.noSiteTitle"),e[4]=i,e[5]=k):k=e[5];let E;e[6]!==i?(E=i("mainPanelTabs.hostingTab.noSiteDescription"),e[6]=i,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(p.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]!==i?(k=i("mainPanelTabs.hostingTab.notConnectedTitle"),e[12]=i,e[13]=k):k=e[13];let E;e[14]!==i?(E=i("mainPanelTabs.hostingTab.notConnectedDescription"),e[14]=i,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,$,j,T,H,q;if(e[19]!==d.data||e[20]!==x.data||e[21]!==f.data||e[22]!==p.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],H=E;let B;e[40]!==p.data?(B=mt(p.data,"items"),e[40]=p.data,e[41]=B):B=e[41],T=B;const Z=x.data;let te;e[42]!==Z?.items?(te=Z?.items??[],e[42]=Z?.items,e[43]=te):te=e[43],y=te;let K;e[44]!==Z?.dnsTemplate?(K=Z?.dnsTemplate??[],e[44]=Z?.dnsTemplate,e[45]=K):K=e[45],S=K;const ne=P.find(En);$=zt((ne??P.find(kn))?.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]=p.data,e[23]=u.data,e[24]=C,e[25]=P,e[26]=S,e[27]=y,e[28]=R,e[29]=$,e[30]=j,e[31]=T,e[32]=H,e[33]=q}else C=e[24],P=e[25],S=e[26],y=e[27],R=e[28],$=e[29],j=e[30],T=e[31],H=e[32],q=e[33];const F=q;let v;e[46]!==s||e[47]!==a.slug||e[48]!==c?(v=t.jsx(tn,{base:s,orgSlug:a.slug,site:c}),e[46]=s,e[47]=a.slug,e[48]=c,e[49]=v):v=e[49];let V;e[50]!==i?(V=i("mainPanelTabs.hostingTab.title"),e[50]=i,e[51]=V):V=e[51];let A;e[52]!==$?(A=$&&t.jsx(Re,{variant:"secondary",children:$}),e[52]=$,e[53]=A):A=e[53];let U;e[54]!==V||e[55]!==A?(U=t.jsxs("span",{className:"inline-flex items-center gap-2.5",children:[V,A]}),e[54]=V,e[55]=A,e[56]=U):U=e[56];let _;e[57]!==v||e[58]!==U?(_=t.jsx(Jt.Title,{actions:v,children:U}),e[57]=v,e[58]=U,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 Q;e[66]!==s||e[67]!==P||e[68]!==d.error||e[69]!==d.isLoading||e[70]!==m||e[71]!==a.slug||e[72]!==c?(Q=t.jsx(rn,{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]=Q):Q=e[73];let b;e[74]!==s||e[75]!==C||e[76]!==f.error||e[77]!==f.isLoading||e[78]!==R||e[79]!==a.slug||e[80]!==c?(b=t.jsx(jn,{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]=b):b=e[81];let I;e[82]!==s||e[83]!==a.slug||e[84]!==H||e[85]!==u.error||e[86]!==u.isLoading||e[87]!==c?(I=t.jsx(Dn,{base:s,orgSlug:a.slug,site:c,secrets:H,isLoading:u.isLoading,error:u.error}),e[82]=s,e[83]=a.slug,e[84]=H,e[85]=u.error,e[86]=u.isLoading,e[87]=c,e[88]=I):I=e[88];let G;e[89]!==s||e[90]!==S||e[91]!==y||e[92]!==x.error||e[93]!==x.isLoading||e[94]!==a.slug||e[95]!==c?(G=t.jsx(gn,{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]=G):G=e[96];let D;e[97]!==s||e[98]!==a.slug||e[99]!==T||e[100]!==p.error||e[101]!==p.isLoading||e[102]!==c?(D=t.jsx(Sn,{base:s,orgSlug:a.slug,site:c,redirects:T,isLoading:p.isLoading,error:p.error}),e[97]=s,e[98]=a.slug,e[99]=T,e[100]=p.error,e[101]=p.isLoading,e[102]=c,e[103]=D):D=e[103];let X;return e[104]!==Q||e[105]!==b||e[106]!==I||e[107]!==G||e[108]!==D||e[109]!==J?(X=t.jsx("div",{className:"h-full min-h-0 overflow-y-auto",children:t.jsx(Jt.Container,{width:"standard",children:t.jsxs(Ss,{children:[J,Q,b,I,G,D]})})}),e[104]=Q,e[105]=b,e[106]=I,e[107]=G,e[108]=D,e[109]=J,e[110]=X):X=e[110],X}function kn(r){return r.framework}function En(r){return r.up===!0}function Rn(){const r=Y.c(3),e=Ks(),o=Qs();let i;return r[0]!==o.hosting||r[1]!==e?(i=o.hosting?t.jsx(_n,{virtualMcpId:e}):t.jsx(Us,{virtualMcpId:e}),r[0]=o.hosting,r[1]=e,r[2]=i):i=r[2],i}function Ra(){const r=Y.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ns.Content,{children:t.jsx(Rn,{})}),r[0]=e):e=r[0],e}export{Ra as default};
1
+ import{c as Y,j as t,B as Ie,l as xt,b as Ae,ax as dt,eC as Ps,dN as vs,t as ce,n as pt,r as ee,e as lt,m as ct,K as Ye,D as Wt,M as ys,P as Jt,eU as Ss}from"./index-bq82HRdX.js";import{C as Ns}from"./index-B_q9xGDu.js";import{n as _t}from"./LinkExternal01-k2QYzvNX.js";import{a$ as Cs,b0 as ns,a8 as Ds,b1 as $s,b2 as ws,h as kt,av as Yt,H as Gt}from"./agent-icon-TqAwQbws.js";import{B as Re}from"./badge-CTjh9J7T.js";import{E as Ze}from"./empty-state-BUjKoJeI.js";import{a as Ls}from"./use-virtual-mcp-Dd6It4Gy.js";import{r as _s}from"./site-slug-uya6Wp4-.js";import{i as ks}from"./AlertCircle-_dpPH4gp.js";import{e as gt}from"./UserSquare-VWJ4b2Nu.js";import{i as Es}from"./Zap-cGv6CHKy.js";import{A as is,a as ls,b as as,c as os,g as rs,d as cs,e as ms,f as ds}from"./alert-dialog-BQcocmj1.js";import{T as fs,a as us,c as hs}from"./tooltip-BbRZqSqs.js";import{S as Rs,c as Fs,a as As,b as zs}from"./sheet-XW3igMAp.js";import{T as Hs,b as nt,c as Fe,e as Et,a as Rt,d as Ft}from"./table-vs5PY6MV.js";import{i as xs}from"./ChevronRight-B8w28Rs0.js";import{a as Vs}from"./Copy01-8HlwnVL4.js";import{a as Ht,b as Vt,C as Bs}from"./collapsible-Q7VW373b.js";import{i as At}from"./Globe01-LbDP9lO6.js";import{s as Pt}from"./Plus-B76Mdzta.js";import{s as vt}from"./Trash01-CeNVn9va.js";import{c as yt,d as St,e as Nt,b as Ct,D as Dt}from"./dialog-FbeViKhV.js";import{I as it}from"./input-DYrUDn-6.js";import{L as Xe}from"./label-DHlCjoX-.js";import{i as Os}from"./Settings02-DCxh89vV.js";import{s as qs}from"./Eye-DXMWNy9I.js";import{a as Bt,b as Ot,c as ft,d as qt,S as Mt}from"./select-CQk1UktB.js";import{i as Ms}from"./ArrowRight-CeIfu-_Z.js";import{c as Is}from"./Printer-CilcBFsl.js";import{S as Us}from"./settings-tab-DgFFWLKL.js";import{c as Qs}from"./use-organization-settings-822MAvzA.js";import{b as Ks}from"./thread-route-B0O5tMmh.js";import"./use-mobile-DAKfge6F.js";import"./index-CaeHd-kX.js";import"./resizable-CHa_EJdX.js";import"./MessageCircle01-CjlDn3qL.js";import"./use-panel-navigate-CfBqSRJx.js";import"./use-project-scope-UolqDpiW.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-Dxf67Gay.js";import"./hooks-CY6XZOHF.js";import"./use-mcp-client-oEME4UuR.js";import"./auth-CZC2Ujtf.js";import"./backoff-8mStPHYB.js";import"./task-board-NCKWK-L3.js";import"./schema-Difu_0cd.js";import"./toolbar-icon-button-DkmObRsV.js";import"./Tool01-txvCBUcI.js";import"./ArrowUp-D3IJVwy-.js";import"./ArrowLeft-D5BILPql.js";import"./Tool02-DUdKhOIL.js";import"./TrendUp01-pvT8-WFv.js";import"./ZoomOut-kKuBc-4q.js";import"./Users03-CKweEAHJ.js";import"./CheckCircle-BC0FabXU.js";import"./Check-BrCocVFB.js";import"./ChevronUp-BZtOj4Ay.js";import"./DotsVertical-wpNLDjEw.js";import"./CreditCard01-BuU2-7Xz.js";import"./Database01-CbAnK_KP.js";import"./Download01-DGABlNWv.js";import"./File02-6XspF3iG.js";import"./Share07-CNlETPcr.js";import"./GitBranch01-DdWI6T46.js";import"./SwitchHorizontal01-DDZJCKkC.js";import"./HardDrive-DtG-DEiB.js";import"./Image01-rPrP47_j.js";import"./Key01-CJUZ2anZ.js";import"./Link01-B0bN5v1C.js";import"./Monitor01-BWhdvhYh.js";import"./Sun-BukuAUTA.js";import"./Package-CUFEWgH0.js";import"./Palette-D8sq7zSJ.js";import"./Play-CaXzttX1.js";import"./SearchLg-UbmzRtIb.js";import"./SearchMd-Cz88FNXR.js";import"./Shield01-UHqavRD7.js";import"./Stars01-BPm_Roon.js";import"./Upload01-CdWOLhzl.js";import"./User01-BFd06Lzl.js";import"./Users01-CSkRDmMq.js";import"./XCircle-CRFE9Sxc.js";import"./XClose-nb8sU8Mf.js";import"./X-Ch9pdqUF.js";import"./index-DDWK4S9N.js";import"./extract-connection-data-OymVW05I.js";import"./metadata-dUsYcpuu.js";import"./github-D4UJ99TO.js";import"./connection-BYgVvaQ-.js";import"./chat-context-Cor1QyQv.js";import"./autosend-BA2WDHKH.js";import"./thread-intent-BBez6nif.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-CZtG5Aw4.js";import"./use-ai-providers-CzWjKGEV.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-3_YSe3LA.js";import"./build-improve-prompt-doc-CVdAljgW.js";import"./avatar-U_W3DOyI.js";import"./empty-state-B73golk2.js";import"./shell-layout-lFmUNyF7.js";import"./download-app-dialog-B0wRR8XY.js";import"./anchors-yqDzZN4K.js";import"./use-org-notice-B1I6Lz9G.js";import"./command-palette-store-B3FjlwOX.js";import"./command-BTJsPyoV.js";import"./index-CyayjuN4.js";import"./integration-icon-DWVAXJ5W.js";import"./project-icon-BRc_SYWu.js";import"./required-auth-layout-bRQ8Relk.js";import"./use-org-sso-Bkoh1g8c.js";import"./use-date-fns-locale-DAtfdqMB.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-D_iAIgTV.js";import"./mcp-oauth-lrCnpZRU.js";import"./textarea-Dt5uzYAk.js";import"./use-debounced-autosave-CGfqMI_2.js";import"./popover-DJmzS7mv.js";import"./scroll-area-DizJqsMb.js";import"./add-connection-dialog-Dv940sel.js";import"./collection-search-Ve8Od1Ze.js";import"./connection-card-BlyShat1.js";import"./use-registry-connections-fPqqwJHB.js";import"./useInfiniteQuery-jh1wgrcQ.js";import"./infiniteQueryObserver-Dk7f60ge.js";import"./retry-i8LvYSZg.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-BFLllOI5.js";import"./form-ZSFKpKuR.js";import"./connection-form-helpers-DfdZqD7N.js";import"./authenticate-and-persist-oauth-CHdcX4lx.js";import"./collection-tabs-B31cxzhl.js";import"./use-infinite-scroll-CqfaxXN1.js";import"./useSuspenseInfiniteQuery-B8nGcnhH.js";import"./dropdown-menu-Cg7EtBKr.js";import"./file-type-icon-CgjUbvA5.js";import"./use-org-fs-fnC2xvX1.js";import"./checkbox-W4oibM4M.js";import"./search-input-BFvnqi9T.js";import"./use-mcp-auth-status-BHDkqk7b.js";import"./types-DfRui0tk.js";import"./use-mcp-tools-5nC74C22.js";import"./use-mcp-prompts-C3OTryE-.js";import"./utils-CVEq3hMx.js";import"./switch-C44BHJ4_.js";import"./use-project-native-view-presence-D8gp5jYC.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-BTKu0ddn.js";import"./optimistic-project-sidebar-views-prl2BiPv.js";import"./breadcrumb-DhYRM7a2.js";import"./virtual-mcp-KhrhV1xQ.js";import"./repository-import-picker-CwyID9Hr.js";import"./use-navigate-to-agent-DxF2NRC6.js";import"./repository-picker-nA1fPR0i.js";import"./github-icon-DvBRseH_.js";import"./use-debounced-value-BjFoL1TN.js";import"./sandbox-url-D3mC8qhT.js";import"./use-secrets-CPAFHAxr.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.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 Ws(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 Xt(r){if(!r)return"—";const e=new Date(r).getTime();if(Number.isNaN(e))return"—";const o=Math.round((Date.now()-e)/1e3),i=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),a=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[l,c]of a)if(Math.abs(o)>=c)return i.format(-Math.round(o/c),l);return i.format(-o,"second")}function Js(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`}class It extends Error{constructor(e,o){super(e),this.status=o}status}function jt(r){return r instanceof It&&r.status===401}function rt(r){return r instanceof Error?r.message:String(r)}function Ys(r){const e=r.trim();if(!e)return null;const i=(e.endsWith(".")?e.slice(0,-1):e).split(".");if(i.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 l of i){if(l.length>63)return`Label "${l}" is too long (max 63 characters)`;if(!/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/i.test(l))return`Label "${l}" has invalid characters or format`}const a=i[i.length-1]??"";return/^[0-9]+$/.test(a)?"Domain must include a valid TLD, not a number":null}function gs(r,e){return r&&typeof r=="object"&&"error"in r?String(r.error):`request failed (${e})`}async function Ut(r){const e=await fetch(r),o=await e.json().catch(()=>({}));if(!e.ok)throw new It(gs(o,e.status),e.status);return o}async function at(r,e,o){const i=await fetch(r,{method:e,headers:o!==void 0?{"Content-Type":"application/json"}:{},body:o!==void 0?JSON.stringify(o):void 0}),a=await i.json().catch(()=>({}));if(!i.ok)throw new It(gs(a,i.status),i.status);return a}function et(r){const e=Y.c(19);let o,i,a,l,c,m;e[0]!==r?({label:i,tooltipSide:l,variant:c,size:m,children:o,...a}=r,e[0]=r,e[1]=o,e[2]=i,e[3]=a,e[4]=l,e[5]=c,e[6]=m):(o=e[1],i=e[2],a=e[3],l=e[4],c=e[5],m=e[6]);const s=l===void 0?"top":l,n=c===void 0?"ghost":c,h=m===void 0?"icon-sm":m;let g;e[7]!==o||e[8]!==i||e[9]!==a||e[10]!==h||e[11]!==n?(g=t.jsx(fs,{asChild:!0,children:t.jsx(Ie,{"data-slot":"icon-button","aria-label":i,variant:n,size:h,...a,children:o})}),e[7]=o,e[8]=i,e[9]=a,e[10]=h,e[11]=n,e[12]=g):g=e[12];let d;e[13]!==i||e[14]!==s?(d=t.jsx(us,{side:s,children:i}),e[13]=i,e[14]=s,e[15]=d):d=e[15];let f;return e[16]!==g||e[17]!==d?(f=t.jsxs(hs,{children:[g,d]}),e[16]=g,e[17]=d,e[18]=f):f=e[18],f}function ut(r){const e=Y.c(4),{title:o,actions:i,children:a}=r;let l;return e[0]!==i||e[1]!==a||e[2]!==o?(l=t.jsx(vs,{title:o,actions:i,children:a}),e[0]=i,e[1]=a,e[2]=o,e[3]=l):l=e[3],l}function Ue(r){const e=Y.c(5),{className:o,children:i}=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 l;return e[2]!==i||e[3]!==a?(l=t.jsx(Ps,{className:a,children:i}),e[2]=i,e[3]=a,e[4]=l):l=e[4],l}function bt(r){const e=Y.c(5),{className:o,children:i}=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 l;return e[2]!==i||e[3]!==a?(l=t.jsx("div",{className:a,children:i}),e[2]=i,e[3]=a,e[4]=l):l=e[4],l}function ot(r){const e=Y.c(2),{children:o}=r;let i;return e[0]!==o?(i=t.jsx("p",{className:"px-4 py-6 text-sm text-muted-foreground",children:o}),e[0]=o,e[1]=i):i=e[1],i}function ht(r){const e=Y.c(2),{rows:o}=r,i=o===void 0?3:o;let a;return e[0]!==i?(a=t.jsx(Ue,{children:Array.from({length:i},Gs)}),e[0]=i,e[1]=a):a=e[1],a}function Gs(r,e){return t.jsxs(bt,{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=Y.c(5),{className:o,children:i}=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 l;return e[2]!==i||e[3]!==a?(l=t.jsx(Hs,{className:a,children:i}),e[2]=i,e[3]=a,e[4]=l):l=e[4],l}function Qt(r){const e=Y.c(12),{open:o,onClick:i}=r,a=Ae();let l;e[0]!==o||e[1]!==a?(l=a(o?"mainPanelTabs.hostingTab.hideDetails":"mainPanelTabs.hostingTab.showDetails"),e[0]=o,e[1]=a,e[2]=l):l=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(xs,{className:m}),e[5]=m,e[6]=s):s=e[6];let n;return e[7]!==i||e[8]!==o||e[9]!==l||e[10]!==s?(n=t.jsx(et,{label:l,size:"icon-sm",className:"-ml-1.5 text-muted-foreground","aria-expanded":o,onClick:i,children:s}),e[7]=i,e[8]=o,e[9]=l,e[10]=s,e[11]=n):n=e[11],n}function Xs(r){const e=Y.c(8),{open:o,colSpan:i,children:a}=r;let l;e[0]!==a?(l=t.jsx(Ht,{children:t.jsx("div",{className:"border-b border-border bg-muted/30 px-4 py-3",children:a})}),e[0]=a,e[1]=l):l=e[1];let c;e[2]!==o||e[3]!==l?(c=t.jsx(Vt,{open:o,children:l}),e[2]=o,e[3]=l,e[4]=c):c=e[4];let m;return e[5]!==i||e[6]!==c?(m=t.jsx(nt,{className:"border-0 hover:bg-transparent",children:t.jsx(Fe,{colSpan:i,className:"p-0 whitespace-normal",children:c})}),e[5]=i,e[6]=c,e[7]=m):m=e[7],m}function ps(r){const e=Y.c(5),{open:o,children:i}=r;let a;e[0]!==i?(a=t.jsx(Ht,{children:t.jsx("div",{className:"border-t border-border bg-muted/30 px-4 py-3",children:i})}),e[0]=i,e[1]=a):a=e[1];let l;return e[2]!==o||e[3]!==a?(l=t.jsx(Vt,{open:o,children:a}),e[2]=o,e[3]=a,e[4]=l):l=e[4],l}function bs(r){const e=Y.c(6),{scope:o}=r,i=Ae(),a=o==="build"?"outline":"secondary";let l;e[0]!==o||e[1]!==i?(l=i(o==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime"),e[0]=o,e[1]=i,e[2]=l):l=e[2];let c;return e[3]!==a||e[4]!==l?(c=t.jsx(Re,{variant:a,children:l}),e[3]=a,e[4]=l,e[5]=c):c=e[5],c}function Zs(r){const e=Y.c(9),{value:o}=r,i=Ae();let a;e[0]!==i?(a=i("mainPanelTabs.hostingTab.dnsCopy"),e[0]=i,e[1]=a):a=e[1];let l;e[2]!==i||e[3]!==o?(l=()=>{if(!navigator.clipboard){ce.error(i("mainPanelTabs.hostingTab.dnsCopyError"));return}navigator.clipboard.writeText(o).then(()=>ce.success(i("mainPanelTabs.hostingTab.dnsCopied")),()=>ce.error(i("mainPanelTabs.hostingTab.dnsCopyError")))},e[2]=i,e[3]=o,e[4]=l):l=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]!==l?(m=t.jsx(et,{label:a,onClick:l,children:c}),e[6]=a,e[7]=l,e[8]=m):m=e[8],m}function $t(r){const e=Y.c(28),{open:o,onOpenChange:i,title:a,description:l,confirmLabel:c,pending:m,onConfirm:s}=r,n=Ae();let h;e[0]!==a?(h=t.jsx(is,{children:a}),e[0]=a,e[1]=h):h=e[1];let g;e[2]!==l?(g=t.jsx(ls,{children:l}),e[2]=l,e[3]=g):g=e[3];let d;e[4]!==h||e[5]!==g?(d=t.jsxs(as,{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(os,{disabled:m,children:f}),e[9]=m,e[10]=f,e[11]=u):u=e[11];let p;e[12]!==s?(p=S=>{S.preventDefault(),s()},e[12]=s,e[13]=p):p=e[13];let x;e[14]!==c||e[15]!==m||e[16]!==p?(x=t.jsx(rs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:p,disabled:m,children:c}),e[14]=c,e[15]=m,e[16]=p,e[17]=x):x=e[17];let N;e[18]!==u||e[19]!==x?(N=t.jsxs(cs,{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(ms,{children:[d,N]}),e[21]=d,e[22]=N,e[23]=C):C=e[23];let P;return e[24]!==i||e[25]!==o||e[26]!==C?(P=t.jsx(ds,{open:o,onOpenChange:i,children:C}),e[24]=i,e[25]=o,e[26]=C,e[27]=P):P=e[27],P}const en=8;function tn(r){const e=Y.c(54),{base:o,orgSlug:i,site:a}=r,l=Ae(),c=pt(),[m,s]=ee.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]!==i||e[3]!==c||e[4]!==a||e[5]!==l?(h=()=>{c.invalidateQueries({queryKey:Ye.hostingDeployments(i,a)}),c.invalidateQueries({queryKey:Ye.hostingDeploymentHistory(i,a)}),ce.success(l("mainPanelTabs.hostingTab.toastDeployQueued")),s(!1)},e[2]=i,e[3]=c,e[4]=a,e[5]=l,e[6]=h):h=e[6];let g;e[7]!==n||e[8]!==h?(g={mutationFn:n,onSuccess:h,onError:sn},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 p;e[12]!==d.isPending||e[13]!==l?(p=d.isPending?l("mainPanelTabs.hostingTab.deploying"):l("mainPanelTabs.hostingTab.deploy"),e[12]=d.isPending,e[13]=l,e[14]=p):p=e[14];let x;e[15]!==d.isPending||e[16]!==p?(x=t.jsxs(Ie,{size:"sm",onClick:f,disabled:d.isPending,children:[u,p]}),e[15]=d.isPending,e[16]=p,e[17]=x):x=e[17];let N;e[18]!==l?(N=l("mainPanelTabs.hostingTab.deployConfirmTitle"),e[18]=l,e[19]=N):N=e[19];let C;e[20]!==N?(C=t.jsx(is,{children:N}),e[20]=N,e[21]=C):C=e[21];let P;e[22]!==l?(P=l("mainPanelTabs.hostingTab.deployConfirmDescription"),e[22]=l,e[23]=P):P=e[23];let S;e[24]!==P?(S=t.jsx(ls,{children:P}),e[24]=P,e[25]=S):S=e[25];let y;e[26]!==S||e[27]!==C?(y=t.jsxs(as,{children:[C,S]}),e[26]=S,e[27]=C,e[28]=y):y=e[28];const R=d.isPending;let $;e[29]!==l?($=l("mainPanelTabs.hostingTab.cancel"),e[29]=l,e[30]=$):$=e[30];let j;e[31]!==d.isPending||e[32]!==$?(j=t.jsx(os,{disabled:R,children:$}),e[31]=d.isPending,e[32]=$,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 H=d.isPending;let q;e[36]!==l?(q=l("mainPanelTabs.hostingTab.deploy"),e[36]=l,e[37]=q):q=e[37];let F;e[38]!==d.isPending||e[39]!==T||e[40]!==q?(F=t.jsx(rs,{onClick:T,disabled:H,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(cs,{children:[j,F]}),e[42]=j,e[43]=F,e[44]=v):v=e[44];let V;e[45]!==y||e[46]!==v?(V=t.jsxs(ms,{children:[y,v]}),e[45]=y,e[46]=v,e[47]=V):V=e[47];let A;e[48]!==m||e[49]!==V?(A=t.jsx(ds,{open:m,onOpenChange:s,children:V}),e[48]=m,e[49]=V,e[50]=A):A=e[50];let U;return e[51]!==A||e[52]!==x?(U=t.jsxs(t.Fragment,{children:[x,A]}),e[51]=A,e[52]=x,e[53]=U):U=e[53],U}function sn(r){return ce.error(rt(r))}function nn(r,e){const o=(r??"").toLowerCase();return o.includes("rollback")?t.jsxs(Re,{variant:"warning",children:[t.jsx($s,{}),e("mainPanelTabs.hostingTab.actionRollback")]}):o.includes("redeploy")?t.jsxs(Re,{variant:"secondary",children:[t.jsx(ws,{}),e("mainPanelTabs.hostingTab.actionRedeploy")]}):t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),e("mainPanelTabs.hostingTab.actionDeploy")]})}function ln(r,e,o){const i=(r??"").toLowerCase();return i==="build"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(ns,{}),o("mainPanelTabs.hostingTab.typeBuild")]}):i==="fast-deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(Es,{}),o("mainPanelTabs.hostingTab.typeFastDeploy")]}):i==="deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),o("mainPanelTabs.hostingTab.typeDeploy")]}):nn(e,o)}function an(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(Ds,{}),e("mainPanelTabs.hostingTab.outcomePending")]}):null}function Zt(r){const e=Y.c(7),{commit:o,onClick:i}=r,a=Ae();let l;e[0]!==a?(l=a("mainPanelTabs.hostingTab.buildLogs"),e[0]=a,e[1]=l):l=e[1];const c=!o;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(ns,{}),e[2]=m):m=e[2];let s;return e[3]!==i||e[4]!==l||e[5]!==c?(s=t.jsx(et,{label:l,onClick:i,disabled:c,children:m}),e[3]=i,e[4]=l,e[5]=c,e[6]=s):s=e[6],s}function on(r){const e=Y.c(37),{base:o,orgSlug:i,site:a,target:l,onOpenChange:c}=r,m=Ae(),s=l!=null,n=l?.commit??"",h=l?.env??"";let g;e[0]!==n||e[1]!==h||e[2]!==i||e[3]!==a?(g=Ye.hostingBuildLogs(i,a,n,h),e[0]=n,e[1]=h,e[2]=i,e[3]=a,e[4]=g):g=e[4];let d;e[5]!==o||e[6]!==n||e[7]!==h?(d=()=>Ut(`${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 p=ct(u),x=p.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(Rs,{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(Fs,{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]!==p.error||e[27]!==p.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(p.error)?t.jsx(Ze,{icon:t.jsx(kt,{className:"size-5"}),title:m("mainPanelTabs.hostingTab.notConnectedTitle"),description:m("mainPanelTabs.hostingTab.notConnectedDescription")}):p.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"})]}):p.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(ks,{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]=p.error,e[27]=p.isLoading,e[28]=m,e[29]=R):R=e[29];let $;e[30]!==R||e[31]!==y?($=t.jsxs(As,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:[y,R]}),e[30]=R,e[31]=y,e[32]=$):$=e[32];let j;return e[33]!==c||e[34]!==s||e[35]!==$?(j=t.jsx(zs,{open:s,onOpenChange:c,children:$}),e[33]=c,e[34]=s,e[35]=$,e[36]=j):j=e[36],j}function rn(r){const e=Y.c(52),{base:o,orgSlug:i,site:a,enabled:l,deployments:c,isLoading:m,error:s}=r,n=Ae(),[h,g]=ee.useState(null),[d,f]=ee.useState(en),[u,p]=ee.useState(null);let x;e[0]!==i||e[1]!==a?(x=Ye.hostingDeploymentHistory(i,a),e[0]=i,e[1]=a,e[2]=x):x=e[2];let N;e[3]!==o?(N=()=>Ut(`${o}/deployments/history?limit=50`),e[3]=o,e[4]=N):N=e[4];let C;e[5]!==l||e[6]!==x||e[7]!==N?(C={queryKey:x,queryFn:N,enabled:l,retry:!1,staleTime:3e4},e[5]=l,e[6]=x,e[7]=N,e[8]=C):C=e[8];const P=ct(C);let S,y,R,$;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),V=F.length-v.length;let A;e[22]!==c?(A=c.find(dn)?.commitSha??c.find(mn)?.commitSha??null,e[22]=c,e[23]=A):A=e[23];const U=A;let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=(b,I)=>{b&&p({commit:b,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 Q;e[27]!==c||e[28]!==s||e[29]!==h||e[30]!==m||e[31]!==n?(Q=m?t.jsx(ht,{}):s?t.jsx(Ue,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deploymentsError")})}):c.length===0?t.jsx(Ue,{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(b=>{const I=!!b.buildMessage,G=h===b.id;return t.jsxs(ee.Fragment,{children:[t.jsxs(nt,{className:xt(I&&"cursor-pointer hover:bg-muted/40"),onClick:I?()=>g(G?null:b.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:G,onClick:()=>g(G?null:b.id)}):t.jsx(Cs,{className:"size-4 text-muted-foreground/60"}),t.jsx("span",{className:"font-mono text-xs",children:b.shortCommit??b.commitSha?.slice(0,7)??"—"}),b.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:Ws(b.phase),children:b.phase??"—"}),b.up===!0&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(b.framework)??"—"}),t.jsx(Fe,{className:"text-right font-mono text-xs text-muted-foreground tabular-nums",children:Js(b.durationMs)}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Xt(b.finishedAt??b.startedAt??b.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",onClick:cn,children:t.jsx(Zt,{commit:b.commitSha,onClick:()=>W(b.commitSha,b.env)})})]}),I&&t.jsx(Xs,{open:G,colSpan:6,children:t.jsx("p",{className:"whitespace-pre-wrap break-words font-mono text-xs text-muted-foreground",children:b.buildMessage})})]},b.id)})})]}),e[27]=c,e[28]=s,e[29]=h,e[30]=m,e[31]=n,e[32]=Q):Q=e[32],e[33]!==Q||e[34]!==J?($=t.jsx(ut,{title:J,children:Q}),e[33]=Q,e[34]=J,e[35]=$):$=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(Ue,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deployHistoryError")})}):F.length===0?t.jsx(Ue,{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(b=>{const I=!!U&&b.commitSha===U;return t.jsxs(nt,{children:[t.jsx(Fe,{className:"pl-4",children:ln(b.type,b.action,n)}),t.jsx(Fe,{children:an(b.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:b.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(b.framework)??"—"}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:b.actor??"—"}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Xt(b.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",children:t.jsx(Zt,{commit:b.commitSha,onClick:()=>W(b.commitSha,b.env)})})]},b.id)}),V>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(V)})})})})]})]}),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]=$}else S=e[18],y=e[19],R=e[20],$=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||p(null)},e[42]=T):T=e[42];let H;e[43]!==o||e[44]!==u||e[45]!==i||e[46]!==a?(H=t.jsx(on,{base:o,orgSlug:i,site:a,target:u,onOpenChange:T}),e[43]=o,e[44]=u,e[45]=i,e[46]=a,e[47]=H):H=e[47];let q;return e[48]!==$||e[49]!==j||e[50]!==H?(q=t.jsxs(t.Fragment,{children:[$,j,H]}),e[48]=$,e[49]=j,e[50]=H,e[51]=q):q=e[51],q}function cn(r){return r.stopPropagation()}function mn(r){return r.production===!0&&r.up}function dn(r){return r.up===!0}const fn=["16.148.147.194","52.32.122.94","52.35.156.199"];function un(r){return r.replace(/\.$/,"").split(".").filter(Boolean).length===2}function es(r){const e=r.trim();return e.length>0&&!e.startsWith("/")&&e.includes(".")}function Ts(r){const e=Y.c(24),{records:o}=r,i=Ae();let a;e[0]!==i?(a=i("mainPanelTabs.hostingTab.dnsColType"),e[0]=i,e[1]=a):a=e[1];let l;e[2]!==a?(l=t.jsx(Me,{className:"w-16",children:a}),e[2]=a,e[3]=l):l=e[3];let c;e[4]!==i?(c=i("mainPanelTabs.hostingTab.dnsColName"),e[4]=i,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]!==i?(s=i("mainPanelTabs.hostingTab.dnsColValue"),e[8]=i,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]!==l||e[14]!==m||e[15]!==n?(g=t.jsx(Rt,{children:t.jsxs(nt,{children:[l,m,n,h]})}),e[13]=l,e[14]=m,e[15]=n,e[16]=g):g=e[16];let d;e[17]!==o?(d=o.map(hn),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 hn(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(Zs,{value:r.value})})]},`${r.type}-${r.name}-${r.value}`)}function js(r){const e=Y.c(14),{status:o,children:i}=r,a=Ae();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(At,{className:"size-4 text-muted-foreground"}),e[0]=l):l=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:[l,m,s]}),e[8]=m,e[9]=s,e[10]=n):n=e[10];let h;return e[11]!==i||e[12]!==n?(h=t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[n,i]}),e[11]=i,e[12]=n,e[13]=h):h=e[13],h}function ts(r){const e=Y.c(21),{from:o,source:i}=r,a=Ae();let l,c,m,s,n;if(e[0]!==o||e[1]!==i||e[2]!==a){const d=o.trim().replace(/\.$/,""),f=d?un(d)?"@":d:"@",u=i==="both";c=js,e[8]!==u?(s={active:u},e[8]=u,e[9]=s):s=e[9];let p;e[10]!==u||e[11]!==a?(p=a(u?"mainPanelTabs.hostingTab.dnsActiveHint":"mainPanelTabs.hostingTab.dnsAwaitingHint"),e[10]=u,e[11]=a,e[12]=p):p=e[12],n=t.jsxs("p",{className:"text-xs text-muted-foreground",children:[a("mainPanelTabs.hostingTab.dnsRedirectIntent",{from:d||"—"})," ",p]}),l=Ts,m=fn.map(x=>({type:"A",name:f,value:x})),e[0]=o,e[1]=i,e[2]=a,e[3]=l,e[4]=c,e[5]=m,e[6]=s,e[7]=n}else l=e[3],c=e[4],m=e[5],s=e[6],n=e[7];let h;e[13]!==l||e[14]!==m?(h=t.jsx(l,{records:m}),e[13]=l,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 ss(r){const e=Y.c(2),{records:o}=r;if(o.length===0)return null;let i;return e[0]!==o?(i=t.jsx(js,{children:t.jsx(Ts,{records:o})}),e[0]=o,e[1]=i):i=e[1],i}function xn(r){const e=Y.c(16),{domain:o}=r,i=Ae(),a=o.status??"pending";let l;e[0]!==a||e[1]!==i?(l=i(a==="active"?"mainPanelTabs.hostingTab.statusActive":a==="action-required"?"mainPanelTabs.hostingTab.statusActionRequired":"mainPanelTabs.hostingTab.statusPending"),e[0]=a,e[1]=i,e[2]=l):l=e[2];const c=l;let m;e[3]!==o.detail||e[4]!==i?(m=o.detail==="zone-not-onboarded"?i("mainPanelTabs.hostingTab.detailZoneNotOnboarded"):void 0,e[3]=o.detail,e[4]=i,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(fs,{asChild:!0,children:g}),e[9]=g,e[10]=d):d=e[10];let f;e[11]!==s?(f=t.jsx(us,{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(hs,{children:[d,f]}),e[13]=d,e[14]=f,e[15]=u):u=e[15],u}function gn(r){const e=Y.c(121),{base:o,orgSlug:i,site:a,domains:l,dnsTemplate:c,isLoading:m,error:s}=r,n=Ae(),h=pt(),[g,d]=ee.useState(!1),[f,u]=ee.useState(""),[p,x]=ee.useState(null),[N,C]=ee.useState(null);let P;e[0]!==i||e[1]!==h||e[2]!==a?(P=()=>h.invalidateQueries({queryKey:Ye.hostingDomains(i,a)}),e[0]=i,e[1]=h,e[2]=a,e[3]=P):P=e[3];const S=P;let y;e[4]!==o?(y=w=>at(`${o}/domains`,"PUT",w),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 $;e[9]!==y||e[10]!==R?($={mutationFn:y,onSuccess:R,onError:bn},e[9]=y,e[10]=R,e[11]=$):$=e[11];const j=lt($);let T;e[12]!==o?(T=w=>at(`${o}/domains/${encodeURIComponent(w)}`,"DELETE"),e[12]=o,e[13]=T):T=e[13];let H;e[14]!==S||e[15]!==n?(H=()=>{S(),ce.success(n("mainPanelTabs.hostingTab.toastDomainDeleted")),x(null)},e[14]=S,e[15]=n,e[16]=H):H=e[16];let q;e[17]!==T||e[18]!==H?(q={mutationFn:T,onSuccess:H,onError:pn},e[17]=T,e[18]=H,e[19]=q):q=e[19];const F=lt(q);let v;e[20]!==f||e[21]!==j||e[22]!==n?(v=()=>{const w=f.trim().toLowerCase();if(!w){ce.error(n("mainPanelTabs.hostingTab.errorDomainHostRequired"));return}const se=Ys(w);if(se){ce.error(se);return}j.mutate({host:w})},e[20]=f,e[21]=j,e[22]=n,e[23]=v):v=e[23];const V=v;let A;if(e[24]!==c||e[25]!==f){let w;e[27]!==f?(w=se=>({...se,name:f.trim().toLowerCase()||se.name}),e[27]=f,e[28]=w):w=e[28],A=c.map(w),e[24]=c,e[25]=f,e[26]=A}else A=e[26];const U=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 Q;e[33]!==J?(Q=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:_,children:[W,J]}),e[33]=J,e[34]=Q):Q=e[34];const b=Q;let I;e[35]!==n?(I=n("mainPanelTabs.hostingTab.domains"),e[35]=n,e[36]=I):I=e[36];const G=l.length>0?b:void 0;let D;e[37]!==b||e[38]!==F.isPending||e[39]!==N||e[40]!==l||e[41]!==s||e[42]!==m||e[43]!==n?(D=m?t.jsx(ht,{}):s?t.jsx(Ue,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.domainsError")})}):l.length===0?t.jsx(Ue,{children:t.jsx(Ze,{icon:t.jsx(At,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDomains"),className:"py-10",buttonComponent:b})}):t.jsx(Ue,{children:l.map((w,se)=>{const Se=!w.canonical&&(w.dns?.length??0)>0,je=N===w.host;return t.jsxs("div",{children:[t.jsxs(bt,{children:[Se?t.jsx(Qt,{open:je,onClick:()=>C(je?null:w.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:w.host}),w.canonical&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.canonical")})]}),t.jsx(xn,{domain:w}),!w.canonical&&t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteDomain"),onClick:()=>x(w.host),disabled:F.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]}),Se&&t.jsx(ps,{open:je,children:t.jsx(ss,{records:w.dns??[]})})]},`${w.host}-${se}`)})}),e[37]=b,e[38]=F.isPending,e[39]=N,e[40]=l,e[41]=s,e[42]=m,e[43]=n,e[44]=D):D=e[44];let X;e[45]!==n?(X=n("mainPanelTabs.hostingTab.addDomainTitle"),e[45]=n,e[46]=X):X=e[46];let O;e[47]!==X?(O=t.jsx(yt,{children:t.jsx(St,{children:X})}),e[47]=X,e[48]=O):O=e[48];let k;e[49]!==V?(k=w=>{w.preventDefault(),V()},e[49]=V,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 Z;e[55]!==n?(Z=n("mainPanelTabs.hostingTab.domainHostPlaceholder"),e[55]=n,e[56]=Z):Z=e[56];let te;e[57]===Symbol.for("react.memo_cache_sentinel")?(te=w=>u(w.target.value),e[57]=te):te=e[57];let K;e[58]!==f||e[59]!==j.isPending||e[60]!==Z?(K=t.jsx(it,{id:"domain-host",placeholder:Z,value:f,onChange:te,className:"font-mono text-xs",autoComplete:"off",disabled:j.isPending}),e[58]=f,e[59]=j.isPending,e[60]=Z,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]!==U?(ie=f.trim()&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ss,{records:U})}),e[65]=f,e[66]=U,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 be;e[71]!==j.isPending||e[72]!==me?(be=t.jsx(Ie,{variant:"outline",type:"button",onClick:Pe,disabled:Ce,children:me}),e[71]=j.isPending,e[72]=me,e[73]=be):be=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]!==be||e[84]!==de?(De=t.jsxs(Nt,{children:[be,de]}),e[83]=be,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=p!=null;let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=w=>{w||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=p??"";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]!==p?(re=()=>{p&&F.mutate(p)},e[105]=F,e[106]=p,e[107]=re):re=e[107];let pe;e[108]!==F.isPending||e[109]!==Te||e[110]!==xe||e[111]!==ye||e[112]!==ge||e[113]!==re?(pe=t.jsx($t,{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]=pe):pe=e[114];let $e;return e[115]!==I||e[116]!==G||e[117]!==D||e[118]!==oe||e[119]!==pe?($e=t.jsxs(ut,{title:I,actions:G,children:[D,oe,pe]}),e[115]=I,e[116]=G,e[117]=D,e[118]=oe,e[119]=pe,e[120]=$e):$e=e[120],$e}function pn(r){return ce.error(rt(r))}function bn(r){return ce.error(rt(r))}function Tn(r){const e=Y.c(24),{value:o,onChange:i,disabled:a,className:l}=r,c=Ae();let m;e[0]!==i?(m=N=>i(N==="build"?"build":"runtime"),e[0]=i,e[1]=m):m=e[1];let s;e[2]!==l?(s=xt("h-8",l),e[2]=l,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 p;e[15]!==d||e[16]!==u?(p=t.jsxs(qt,{children:[d,u]}),e[15]=d,e[16]=u,e[17]=p):p=e[17];let x;return e[18]!==a||e[19]!==m||e[20]!==h||e[21]!==p||e[22]!==o?(x=t.jsxs(Mt,{value:o,onValueChange:m,disabled:a,children:[h,p]}),e[18]=a,e[19]=m,e[20]=h,e[21]=p,e[22]=o,e[23]=x):x=e[23],x}function jn(r){const e=Y.c(151),{base:o,orgSlug:i,site:a,envVars:l,codeVars:c,isLoading:m,error:s}=r,n=Ae(),h=pt(),[g,d]=ee.useState(!1),[f,u]=ee.useState(""),[p,x]=ee.useState(""),[N,C]=ee.useState("runtime"),[P,S]=ee.useState(null),[y,R]=ee.useState(""),[$,j]=ee.useState(null);let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T=new Set,e[0]=T):T=e[0];const[H,q]=ee.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 V;e[2]!==o?(V=L=>at(`${o}/env`,"PUT",{vars:L}),e[2]=o,e[3]=V):V=e[3];let A;e[4]!==i||e[5]!==h||e[6]!==a||e[7]!==n?(A=()=>{h.invalidateQueries({queryKey:Ye.hostingEnv(i,a)}),ce.success(n("mainPanelTabs.hostingTab.toastEnvSaved"))},e[4]=i,e[5]=h,e[6]=a,e[7]=n,e[8]=A):A=e[8];let U;e[9]!==V||e[10]!==A?(U={mutationFn:V,onSuccess:A,onError:vn},e[9]=V,e[10]=A,e[11]=U):U=e[11];const _=lt(U);let W;e[12]!==f||e[13]!==N||e[14]!==p||e[15]!==_||e[16]!==l||e[17]!==n?(W=()=>{const L=f.trim();if(!L){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameRequired"));return}if(l.some(Ne=>Lt(Ne,{name:L,scope:N}))){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameDuplicate"));return}_.mutate([...l,{name:L,value:p,scope:N}],{onSuccess:()=>{d(!1),u(""),x(""),C("runtime")}})},e[12]=f,e[13]=N,e[14]=p,e[15]=_,e[16]=l,e[17]=n,e[18]=W):W=e[18];const J=W;let Q;e[19]!==y||e[20]!==_||e[21]!==l?(Q=L=>{_.mutate(l.map(Ne=>Lt(Ne,L)?{name:L.name,value:y,scope:L.scope}:Ne),{onSuccess:()=>S(null)})},e[19]=y,e[20]=_,e[21]=l,e[22]=Q):Q=e[22];const b=Q;let I;e[23]!==$||e[24]!==_||e[25]!==l?(I=()=>{$&&_.mutate(l.filter(L=>!Lt(L,$)),{onSuccess:()=>j(null)})},e[23]=$,e[24]=_,e[25]=l,e[26]=I):I=e[26];const G=I,D=_.isPending;let X;e[27]===Symbol.for("react.memo_cache_sentinel")?(X=()=>{u(""),x(""),C("runtime")},e[27]=X):X=e[27];const O=X;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 Z;e[32]!==B?(Z=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:k,children:[E,B]}),e[32]=B,e[33]=Z):Z=e[33];const te=Z;let K;e[34]!==n?(K=n("mainPanelTabs.hostingTab.env"),e[34]=n,e[35]=K):K=e[35];const ne=l.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]!==l||e[42]!==s||e[43]!==b||e[44]!==m||e[45]!==D||e[46]!==H||e[47]!==n?(ie=m?t.jsx(ht,{}):s?t.jsx(Ue,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.envError")})}):l.length===0&&c.length===0?t.jsx(Ue,{children:t.jsx(Ze,{icon:t.jsx(Yt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noEnv"),className:"py-10",buttonComponent:te})}):t.jsxs(Ue,{children:[l.map(L=>{const Ne=L.scope==="build"?"build":"runtime",We=`${L.name}:${Ne}`,tt=P?.name===L.name&&P?.scope===Ne,st=H.has(We);return t.jsxs(bt,{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"&&b({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:()=>b({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(Os,{}):t.jsx(qs,{})}),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(Vt,{children:[t.jsx(Bs,{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(xs,{className:"size-4 transition-transform duration-200 group-data-[state=open]:rotate-90 motion-reduce:transition-none"}),t.jsx(Yt,{className:"size-4"}),n("mainPanelTabs.hostingTab.codeVarsToggle",{count:String(c.length)})]})}),t.jsx(Ht,{children:t.jsx("div",{className:"divide-y divide-border/60 border-t border-border bg-muted/30",children:c.map(Pn)})})]})]}),e[36]=te,e[37]=c,e[38]=y,e[39]=P?.name,e[40]=P?.scope,e[41]=l,e[42]=s,e[43]=b,e[44]=m,e[45]=D,e[46]=H,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 be;e[54]!==J?(be=L=>{L.preventDefault(),J()},e[54]=J,e[55]=be):be=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]!==p||e[78]!==D||e[79]!==he?(ve=t.jsx(it,{id:"env-value",placeholder:he,value:p,onChange:xe,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[77]=p,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 pe;e[88]!==N||e[89]!==D?(pe=t.jsx(Tn,{value:N,onChange:C,disabled:D,className:"w-full"}),e[88]=N,e[89]=D,e[90]=pe):pe=e[90];let $e;e[91]!==N||e[92]!==n?($e=n(N==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[91]=N,e[92]=n,e[93]=$e):$e=e[93];let w;e[94]!==$e?(w=t.jsx("p",{className:"text-xs text-muted-foreground",children:$e}),e[94]=$e,e[95]=w):w=e[95];let se;e[96]!==re||e[97]!==pe||e[98]!==w?(se=t.jsxs("div",{className:"flex flex-col gap-2",children:[re,pe,w]}),e[96]=re,e[97]=pe,e[98]=w,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 we;e[103]!==D||e[104]!==je?(we=t.jsx(Ie,{variant:"outline",type:"button",onClick:Se,disabled:D,children:je}),e[103]=D,e[104]=je,e[105]=we):we=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]!==we||e[116]!==Le?(_e=t.jsxs(Nt,{children:[we,Le]}),e[115]=we,e[116]=Le,e[117]=_e):_e=e[117];let Be;e[118]!==be||e[119]!==ue||e[120]!==ye||e[121]!==se||e[122]!==_e?(Be=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:be,children:[ue,ye,se,_e]}),e[118]=be,e[119]=ue,e[120]=ye,e[121]=se,e[122]=_e,e[123]=Be):Be=e[123];let He;e[124]!==me||e[125]!==Be?(He=t.jsxs(Ct,{className:"sm:max-w-md",children:[me,Be]}),e[124]=me,e[125]=Be,e[126]=He):He=e[126];let ke;e[127]!==g||e[128]!==He?(ke=t.jsx(Dt,{open:g,onOpenChange:Pe,children:He}),e[127]=g,e[128]=He,e[129]=ke):ke=e[129];const Je=$!=null;let Ve;e[130]===Symbol.for("react.memo_cache_sentinel")?(Ve=L=>{L||j(null)},e[130]=Ve):Ve=e[130];let Ee;e[131]!==n?(Ee=n("mainPanelTabs.hostingTab.confirmDeleteVariableTitle"),e[131]=n,e[132]=Ee):Ee=e[132];const Oe=$?.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 Qe;e[136]!==n?(Qe=n("mainPanelTabs.hostingTab.deleteVariable"),e[136]=n,e[137]=Qe):Qe=e[137];let M;e[138]!==G||e[139]!==D||e[140]!==Je||e[141]!==Ee||e[142]!==qe||e[143]!==Qe?(M=t.jsx($t,{open:Je,onOpenChange:Ve,title:Ee,description:qe,confirmLabel:Qe,pending:D,onConfirm:G}),e[138]=G,e[139]=D,e[140]=Je,e[141]=Ee,e[142]=qe,e[143]=Qe,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 Pn(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 vn(r){return ce.error(rt(r))}function yn(r){const e=Y.c(6),{type:o}=r,i=Ae(),a=o==="permanent"?"secondary":"outline";let l;e[0]!==i||e[1]!==o?(l=i(o==="permanent"?"mainPanelTabs.hostingTab.permanent":"mainPanelTabs.hostingTab.temporary"),e[0]=i,e[1]=o,e[2]=l):l=e[2];let c;return e[3]!==a||e[4]!==l?(c=t.jsx(Re,{variant:a,children:l}),e[3]=a,e[4]=l,e[5]=c):c=e[5],c}function Sn(r){const e=Y.c(163),{base:o,orgSlug:i,site:a,redirects:l,isLoading:c,error:m}=r,s=Ae(),n=pt(),[h,g]=ee.useState(!1),[d,f]=ee.useState(null),[u,p]=ee.useState(""),[x,N]=ee.useState(""),[C,P]=ee.useState("permanent"),[S,y]=ee.useState(null),[R,$]=ee.useState(null);let j;e[0]!==i||e[1]!==n||e[2]!==a?(j=()=>n.invalidateQueries({queryKey:Ye.hostingRedirects(i,a)}),e[0]=i,e[1]=n,e[2]=a,e[3]=j):j=e[3];const T=j;let H;e[4]!==o?(H=z=>at(`${o}/redirects`,"PUT",z),e[4]=o,e[5]=H):H=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]!==H||e[10]!==q?(F={mutationFn:H,onSuccess:q,onError:Cn},e[9]=H,e[10]=q,e[11]=F):F=e[11];const v=lt(F);let V;e[12]!==o?(V=z=>at(`${o}/redirects/${encodeURIComponent(z)}`,"DELETE"),e[12]=o,e[13]=V):V=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 U;e[17]!==V||e[18]!==A?(U={mutationFn:V,onSuccess:A,onError:Nn},e[17]=V,e[18]=A,e[19]=U):U=e[19];const _=lt(U);let W;e[20]===Symbol.for("react.memo_cache_sentinel")?(W=()=>{f(null),p(""),N(""),P("permanent"),g(!0)},e[20]=W):W=e[20];const J=W;let Q;e[21]===Symbol.for("react.memo_cache_sentinel")?(Q=z=>{f(z.from),p(z.from),N(z.to),P(z.type==="temporary"?"temporary":"permanent"),g(!0)},e[21]=Q):Q=e[21];const b=Q;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 G=I;let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(Pt,{}),e[28]=D):D=e[28];let X;e[29]!==s?(X=s("mainPanelTabs.hostingTab.addRedirect"),e[29]=s,e[30]=X):X=e[30];let O;e[31]!==X?(O=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:J,children:[D,X]}),e[31]=X,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=l.length>0?k:void 0;let Z;e[35]!==k||e[36]!==_.isPending||e[37]!==R||e[38]!==m||e[39]!==c||e[40]!==v.isPending||e[41]!==l||e[42]!==s?(Z=c?t.jsx(ht,{}):m?t.jsx(Ue,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.redirectsError")})}):l.length===0?t.jsx(Ue,{children:t.jsx(Ze,{icon:t.jsx(Gt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noRedirects"),className:"py-10",buttonComponent:k})}):t.jsx(Ue,{children:l.map((z,Tt)=>{const Kt=es(z.from),wt=R===z.from;return t.jsxs("div",{children:[t.jsxs(bt,{children:[Kt?t.jsx(Qt,{open:wt,onClick:()=>$(wt?null:z.from)}):t.jsx(Gt,{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(Ms,{className:"size-3.5 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"truncate text-muted-foreground",children:z.to})]}),t.jsx(yn,{type:z.type}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.editRedirect"),onClick:()=>b(z),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(Is,{})}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.deleteRedirect"),onClick:()=>y(z.from),disabled:_.isPending,className:"-ml-1 text-muted-foreground",children:t.jsx(vt,{})})]}),Kt&&t.jsx(ps,{open:wt,children:t.jsx(ts,{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]=l,e[42]=s,e[43]=Z):Z=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]!==G?(ne=z=>{z.preventDefault(),G()},e[49]=G,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=>p(z.target.value),e[57]=me):me=e[57];const be=d!=null||v.isPending;let le;e[58]!==u||e[59]!==Ce||e[60]!==be?(le=t.jsx(it,{id:"redirect-from",placeholder:Ce,value:u,onChange:me,className:"font-mono text-xs",disabled:be}),e[58]=u,e[59]=Ce,e[60]=be,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 pe;e[87]!==re?(pe=t.jsx(ft,{value:"permanent",children:re}),e[87]=re,e[88]=pe):pe=e[88];let $e;e[89]!==s?($e=s("mainPanelTabs.hostingTab.temporary"),e[89]=s,e[90]=$e):$e=e[90];let w;e[91]!==$e?(w=t.jsx(ft,{value:"temporary",children:$e}),e[91]=$e,e[92]=w):w=e[92];let se;e[93]!==pe||e[94]!==w?(se=t.jsxs(qt,{children:[pe,w]}),e[93]=pe,e[94]=w,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 we;e[103]!==d||e[104]!==u||e[105]!==l?(we=es(u)&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ts,{from:u,source:l.find(z=>z.from===d)?.source})}),e[103]=d,e[104]=u,e[105]=l,e[106]=we):we=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 He;e[117]!==v.isPending||e[118]!==s?(He=v.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.save"),e[117]=v.isPending,e[118]=s,e[119]=He):He=e[119];let ke;e[120]!==Be||e[121]!==He?(ke=t.jsx(Ie,{type:"submit",disabled:Be,children:He}),e[120]=Be,e[121]=He,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 Ve;e[126]!==ne||e[127]!==ae||e[128]!==Te||e[129]!==je||e[130]!==we||e[131]!==Je?(Ve=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:ne,children:[ae,Te,je,we,Je]}),e[126]=ne,e[127]=ae,e[128]=Te,e[129]=je,e[130]=we,e[131]=Je,e[132]=Ve):Ve=e[132];let Ee;e[133]!==K||e[134]!==Ve?(Ee=t.jsxs(Ct,{className:"sm:max-w-md",children:[K,Ve]}),e[133]=K,e[134]=Ve,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 Qe;e[139]===Symbol.for("react.memo_cache_sentinel")?(Qe=z=>{z||y(null)},e[139]=Qe):Qe=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($t,{open:qe,onOpenChange:Qe,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]!==Z||e[160]!==Oe||e[161]!==tt?(st=t.jsxs(ut,{title:E,actions:B,children:[Z,Oe,tt]}),e[157]=E,e[158]=B,e[159]=Z,e[160]=Oe,e[161]=tt,e[162]=st):st=e[162],st}function Nn(r){return ce.error(rt(r))}function Cn(r){return ce.error(rt(r))}function Dn(r){const e=Y.c(160),{base:o,orgSlug:i,site:a,secrets:l,isLoading:c,error:m}=r,s=Ae(),n=pt(),[h,g]=ee.useState(!1),[d,f]=ee.useState(""),[u,p]=ee.useState(""),[x,N]=ee.useState("runtime"),[C,P]=ee.useState(null);let S;e[0]!==i||e[1]!==n||e[2]!==a?(S=()=>n.invalidateQueries({queryKey:Ye.hostingSecrets(i,a)}),e[0]=i,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 $;e[6]!==y||e[7]!==s?($=()=>{y(),ce.success(s("mainPanelTabs.hostingTab.toastSecretSaved")),g(!1),f(""),p(""),N("runtime")},e[6]=y,e[7]=s,e[8]=$):$=e[8];let j;e[9]!==R||e[10]!==$?(j={mutationFn:R,onSuccess:$,onError:wn},e[9]=R,e[10]=$,e[11]=j):j=e[11];const T=lt(j);let H;e[12]!==o?(H=M=>at(`${o}/secrets/${encodeURIComponent(M.name)}?scope=${M.scope}`,"DELETE"),e[12]=o,e[13]=H):H=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]!==H||e[18]!==q?(F={mutationFn:H,onSuccess:q,onError:$n},e[17]=H,e[18]=q,e[19]=F):F=e[19];const v=lt(F);let V;e[20]!==d||e[21]!==x||e[22]!==u||e[23]!==T||e[24]!==s?(V=()=>{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]=V):V=e[25];const A=V;let U,_;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=()=>g(!0),U=t.jsx(Pt,{}),e[26]=U,e[27]=_):(U=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:[U,W]}),e[30]=W,e[31]=J):J=e[31];const Q=J;let b;e[32]!==s?(b=s("mainPanelTabs.hostingTab.secrets"),e[32]=s,e[33]=b):b=e[33];const I=l.length>0?Q:void 0;let G;e[34]!==Q||e[35]!==v.isPending||e[36]!==m||e[37]!==c||e[38]!==l||e[39]!==s?(G=c?t.jsx(ht,{}):m?t.jsx(Ue,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.secretsError")})}):l.length===0?t.jsx(Ue,{children:t.jsx(Ze,{icon:t.jsx(Wt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noSecrets"),className:"py-10",buttonComponent:Q})}):t.jsx(Ue,{children:l.map(M=>{const Ge=M.scope==="build"?"build":"runtime";return t.jsxs(bt,{children:[t.jsx(Wt,{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]=Q,e[35]=v.isPending,e[36]=m,e[37]=c,e[38]=l,e[39]=s,e[40]=G):G=e[40];let D;e[41]!==s?(D=s("mainPanelTabs.hostingTab.addSecretTitle"),e[41]=s,e[42]=D):D=e[42];let X;e[43]!==D?(X=t.jsx(yt,{children:t.jsx(St,{children:D})}),e[43]=D,e[44]=X):X=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 Z;e[53]===Symbol.for("react.memo_cache_sentinel")?(Z=M=>f(M.target.value),e[53]=Z):Z=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:Z,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=>p(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 be;e[72]!==ie||e[73]!==me?(be=t.jsxs("div",{className:"flex flex-col gap-2",children:[ie,me]}),e[72]=ie,e[73]=me,e[74]=be):be=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 pe;e[105]===Symbol.for("react.memo_cache_sentinel")?(pe=()=>g(!1),e[105]=pe):pe=e[105];const $e=T.isPending;let w;e[106]!==s?(w=s("mainPanelTabs.hostingTab.cancel"),e[106]=s,e[107]=w):w=e[107];let se;e[108]!==T.isPending||e[109]!==w?(se=t.jsx(Ie,{variant:"outline",type:"button",onClick:pe,disabled:$e,children:w}),e[108]=T.isPending,e[109]=w,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 we;e[118]!==Se||e[119]!==je?(we=t.jsx(Ie,{type:"submit",disabled:Se,children:je}),e[118]=Se,e[119]=je,e[120]=we):we=e[120];let ze;e[121]!==se||e[122]!==we?(ze=t.jsxs(Nt,{children:[se,we]}),e[121]=se,e[122]=we,e[123]=ze):ze=e[123];let Ke;e[124]!==O||e[125]!==K||e[126]!==be||e[127]!==re||e[128]!==ze?(Ke=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:O,children:[K,be,re,ze]}),e[124]=O,e[125]=K,e[126]=be,e[127]=re,e[128]=ze,e[129]=Ke):Ke=e[129];let Le;e[130]!==X||e[131]!==Ke?(Le=t.jsxs(Ct,{className:"sm:max-w-md",children:[X,Ke]}),e[130]=X,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 He;e[136]===Symbol.for("react.memo_cache_sentinel")?(He=M=>{M||P(null)},e[136]=He):He=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 Ve;e[139]!==s||e[140]!==Je?(Ve=s("mainPanelTabs.hostingTab.confirmDeleteSecretDescription",{name:Je}),e[139]=s,e[140]=Je,e[141]=Ve):Ve=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]!==Ve||e[151]!==Ee||e[152]!==Oe?(qe=t.jsx($t,{open:Be,onOpenChange:He,title:ke,description:Ve,confirmLabel:Ee,pending:v.isPending,onConfirm:Oe}),e[147]=v.isPending,e[148]=Be,e[149]=ke,e[150]=Ve,e[151]=Ee,e[152]=Oe,e[153]=qe):qe=e[153];let Qe;return e[154]!==b||e[155]!==I||e[156]!==G||e[157]!==_e||e[158]!==qe?(Qe=t.jsxs(ut,{title:b,actions:I,children:[G,_e,qe]}),e[154]=b,e[155]=I,e[156]=G,e[157]=_e,e[158]=qe,e[159]=Qe):Qe=e[159],Qe}function $n(r){return ce.error(rt(r))}function wn(r){return ce.error(rt(r))}const Ln=3e4;function _n(r){const e=Y.c(111),{virtualMcpId:o}=r,i=Ae(),{org:a}=ys(),l=Ls(o),c=_s(l),m=!!c,s=c?`/api/${a.slug}/hosting/${encodeURIComponent(c)}`:"";let n;e[0]!==s||e[1]!==m?(n=(O,k)=>({queryKey:O,queryFn:()=>Ut(`${s}${k}`),enabled:m,retry:!1,staleTime:Ln}),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")),p=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]!==i?(k=i("mainPanelTabs.hostingTab.noSiteTitle"),e[4]=i,e[5]=k):k=e[5];let E;e[6]!==i?(E=i("mainPanelTabs.hostingTab.noSiteDescription"),e[6]=i,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(p.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]!==i?(k=i("mainPanelTabs.hostingTab.notConnectedTitle"),e[12]=i,e[13]=k):k=e[13];let E;e[14]!==i?(E=i("mainPanelTabs.hostingTab.notConnectedDescription"),e[14]=i,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,$,j,T,H,q;if(e[19]!==d.data||e[20]!==x.data||e[21]!==f.data||e[22]!==p.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],H=E;let B;e[40]!==p.data?(B=mt(p.data,"items"),e[40]=p.data,e[41]=B):B=e[41],T=B;const Z=x.data;let te;e[42]!==Z?.items?(te=Z?.items??[],e[42]=Z?.items,e[43]=te):te=e[43],y=te;let K;e[44]!==Z?.dnsTemplate?(K=Z?.dnsTemplate??[],e[44]=Z?.dnsTemplate,e[45]=K):K=e[45],S=K;const ne=P.find(En);$=zt((ne??P.find(kn))?.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]=p.data,e[23]=u.data,e[24]=C,e[25]=P,e[26]=S,e[27]=y,e[28]=R,e[29]=$,e[30]=j,e[31]=T,e[32]=H,e[33]=q}else C=e[24],P=e[25],S=e[26],y=e[27],R=e[28],$=e[29],j=e[30],T=e[31],H=e[32],q=e[33];const F=q;let v;e[46]!==s||e[47]!==a.slug||e[48]!==c?(v=t.jsx(tn,{base:s,orgSlug:a.slug,site:c}),e[46]=s,e[47]=a.slug,e[48]=c,e[49]=v):v=e[49];let V;e[50]!==i?(V=i("mainPanelTabs.hostingTab.title"),e[50]=i,e[51]=V):V=e[51];let A;e[52]!==$?(A=$&&t.jsx(Re,{variant:"secondary",children:$}),e[52]=$,e[53]=A):A=e[53];let U;e[54]!==V||e[55]!==A?(U=t.jsxs("span",{className:"inline-flex items-center gap-2.5",children:[V,A]}),e[54]=V,e[55]=A,e[56]=U):U=e[56];let _;e[57]!==v||e[58]!==U?(_=t.jsx(Jt.Title,{actions:v,children:U}),e[57]=v,e[58]=U,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 Q;e[66]!==s||e[67]!==P||e[68]!==d.error||e[69]!==d.isLoading||e[70]!==m||e[71]!==a.slug||e[72]!==c?(Q=t.jsx(rn,{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]=Q):Q=e[73];let b;e[74]!==s||e[75]!==C||e[76]!==f.error||e[77]!==f.isLoading||e[78]!==R||e[79]!==a.slug||e[80]!==c?(b=t.jsx(jn,{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]=b):b=e[81];let I;e[82]!==s||e[83]!==a.slug||e[84]!==H||e[85]!==u.error||e[86]!==u.isLoading||e[87]!==c?(I=t.jsx(Dn,{base:s,orgSlug:a.slug,site:c,secrets:H,isLoading:u.isLoading,error:u.error}),e[82]=s,e[83]=a.slug,e[84]=H,e[85]=u.error,e[86]=u.isLoading,e[87]=c,e[88]=I):I=e[88];let G;e[89]!==s||e[90]!==S||e[91]!==y||e[92]!==x.error||e[93]!==x.isLoading||e[94]!==a.slug||e[95]!==c?(G=t.jsx(gn,{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]=G):G=e[96];let D;e[97]!==s||e[98]!==a.slug||e[99]!==T||e[100]!==p.error||e[101]!==p.isLoading||e[102]!==c?(D=t.jsx(Sn,{base:s,orgSlug:a.slug,site:c,redirects:T,isLoading:p.isLoading,error:p.error}),e[97]=s,e[98]=a.slug,e[99]=T,e[100]=p.error,e[101]=p.isLoading,e[102]=c,e[103]=D):D=e[103];let X;return e[104]!==Q||e[105]!==b||e[106]!==I||e[107]!==G||e[108]!==D||e[109]!==J?(X=t.jsx("div",{className:"h-full min-h-0 overflow-y-auto",children:t.jsx(Jt.Container,{width:"standard",children:t.jsxs(Ss,{children:[J,Q,b,I,G,D]})})}),e[104]=Q,e[105]=b,e[106]=I,e[107]=G,e[108]=D,e[109]=J,e[110]=X):X=e[110],X}function kn(r){return r.framework}function En(r){return r.up===!0}function Rn(){const r=Y.c(3),e=Ks(),o=Qs();let i;return r[0]!==o.hosting||r[1]!==e?(i=o.hosting?t.jsx(_n,{virtualMcpId:e}):t.jsx(Us,{virtualMcpId:e}),r[0]=o.hosting,r[1]=e,r[2]=i):i=r[2],i}function Ra(){const r=Y.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ns.Content,{children:t.jsx(Rn,{})}),r[0]=e):e=r[0],e}export{Ra as default};