decocms 4.397.0 → 4.397.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 (352) hide show
  1. package/dist/client/assets/{AlertCircle-B3LJiQhZ.js → AlertCircle-DwYUjJBu.js} +1 -1
  2. package/dist/client/assets/{AreaChart-C3D5EayI.js → AreaChart-BhT_gWYN.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DmWma6hW.js → ArrowLeft-BrzmATFY.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-540iMVH3.js → ArrowRight-DYu8UyAE.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BB5V3348.js → ArrowUp-Bgr2TLsm.js} +1 -1
  6. package/dist/client/assets/{CartesianChart-CYHbwjBR.js → CartesianChart-D3J9yYMj.js} +1 -1
  7. package/dist/client/assets/{Check-CGKF06bT.js → Check-BgzQchyA.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-tvGC17Dy.js → CheckCircle-DxLYuezp.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-Du4AWZmG.js → ChevronUp-CEt2-KWf.js} +1 -1
  10. package/dist/client/assets/{Copy01-CYbqJpFZ.js → Copy01-DY06zeXh.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-CK4yyvJY.js → CreditCard01-atzqozkq.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-BQfY36BV.js → DotsVertical-DY1WVLqG.js} +1 -1
  13. package/dist/client/assets/{Download01-C8jubU2p.js → Download01-BsnTCWqr.js} +1 -1
  14. package/dist/client/assets/{ErrorBarContext-DIzox7VI.js → ErrorBarContext-q2DeMR5z.js} +1 -1
  15. package/dist/client/assets/{Eye-CpLoEsen.js → Eye-BCLEOXNL.js} +1 -1
  16. package/dist/client/assets/{Globe04-DnURSsdQ.js → Globe04-C9YOUwUx.js} +1 -1
  17. package/dist/client/assets/{Image01-DPZCMheY.js → Image01-Dnl26WcB.js} +1 -1
  18. package/dist/client/assets/{Key01-CSyDklFV.js → Key01-CwoMWwVQ.js} +1 -1
  19. package/dist/client/assets/{LayoutLeft-DgiG6wiH.js → LayoutLeft-Bis2ERIL.js} +1 -1
  20. package/dist/client/assets/{Line-BzHEfJpl.js → Line-BkS8r3Hh.js} +1 -1
  21. package/dist/client/assets/{Link01-CYG0Mr8Q.js → Link01-1Ii-ZBB1.js} +1 -1
  22. package/dist/client/assets/{LinkExternal01-Div0d_z3.js → LinkExternal01-CxPBcUve.js} +1 -1
  23. package/dist/client/assets/{Monitor01-BrSZ6zzu.js → Monitor01-DypnteF9.js} +1 -1
  24. package/dist/client/assets/{Package-C5JGfmw5.js → Package-DLofDsnv.js} +1 -1
  25. package/dist/client/assets/{Palette-Bm4HMPv2.js → Palette-DZw1jmn0.js} +1 -1
  26. package/dist/client/assets/{Plus-Do5Wkomw.js → Plus-DJAmbMrJ.js} +1 -1
  27. package/dist/client/assets/{SearchLg-gOfrWgIs.js → SearchLg-0M2kccVO.js} +1 -1
  28. package/dist/client/assets/{SearchMd-B9ModJFt.js → SearchMd-BT8cdzsW.js} +1 -1
  29. package/dist/client/assets/{Sector-83Vf-xGJ.js → Sector-BJGxTbou.js} +1 -1
  30. package/dist/client/assets/{Share07-DpckpNEB.js → Share07-BqFFQNeK.js} +1 -1
  31. package/dist/client/assets/{Stars01-B6IfixlN.js → Stars01-BFm8fGnC.js} +1 -1
  32. package/dist/client/assets/{Sun-CzonSHrU.js → Sun-qCW4hQHf.js} +1 -1
  33. package/dist/client/assets/{Tool01-DK_vv6qf.js → Tool01-BNu7BHqQ.js} +1 -1
  34. package/dist/client/assets/{Trash01-Dw6PLr8l.js → Trash01-CSeT8ZD8.js} +1 -1
  35. package/dist/client/assets/{Upload01-BsQDz7U2.js → Upload01-GlJ5Ud3s.js} +1 -1
  36. package/dist/client/assets/{User01-Bla6DkK3.js → User01-D0NPPWmZ.js} +1 -1
  37. package/dist/client/assets/{UserSquare-CHvWRyuq.js → UserSquare-B_QuMjVL.js} +1 -1
  38. package/dist/client/assets/{Users01-fXdkObFe.js → Users01-K81i8krS.js} +1 -1
  39. package/dist/client/assets/{X-CLqvixem.js → X-ClBxN2Lo.js} +1 -1
  40. package/dist/client/assets/{XCircle-xC8IFHez.js → XCircle-Ds0Log1_.js} +1 -1
  41. package/dist/client/assets/{XClose-1APsw2yP.js → XClose-DjadAVCX.js} +1 -1
  42. package/dist/client/assets/{Zap-SzxRRv0w.js → Zap-D3U8XJRb.js} +1 -1
  43. package/dist/client/assets/{ZoomOut-DD-ULjJm.js → ZoomOut-DsH_k1C4.js} +1 -1
  44. package/dist/client/assets/{access-gate-DuyMJbDj.js → access-gate-CuIthKSm.js} +1 -1
  45. package/dist/client/assets/{add-connection-dialog-D9j0h-SU.js → add-connection-dialog-BKL_hKkk.js} +1 -1
  46. package/dist/client/assets/{agent-analytics-BYTMzPFg.js → agent-analytics-AEMDlU2l.js} +1 -1
  47. package/dist/client/assets/agent-app-Dg3IYcc1.js +1 -0
  48. package/dist/client/assets/{agent-assets-BvxD5BYD.js → agent-assets-BI_o8EXn.js} +1 -1
  49. package/dist/client/assets/{agent-automation-Ba85XZXF.js → agent-automation-DUiD7Tiw.js} +1 -1
  50. package/dist/client/assets/{agent-automations-C3Rb_m0i.js → agent-automations-BqRu2Acp.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-BAkxw0dJ.js → agent-connect-sources-wVhW_Voj.js} +1 -1
  52. package/dist/client/assets/agent-deck-BZGEf92K.js +1 -0
  53. package/dist/client/assets/{agent-e2e-DfSc6gB-.js → agent-e2e-B_VPTtsE.js} +1 -1
  54. package/dist/client/assets/{agent-experiments-DYALFaiE.js → agent-experiments-VNCtI9MN.js} +1 -1
  55. package/dist/client/assets/agent-file-D1Iq_S8L.js +1 -0
  56. package/dist/client/assets/{agent-git-Cx-YU73R.js → agent-git-DvIcC2QG.js} +1 -1
  57. package/dist/client/assets/{agent-hosting-BCPfQ2PT.js → agent-hosting-DQWvdG7u.js} +1 -1
  58. package/dist/client/assets/{agent-icon-CVsOY5Om.js → agent-icon-v-YF8SZ6.js} +1 -1
  59. package/dist/client/assets/agent-library-file-DJ5gCk1X.js +1 -0
  60. package/dist/client/assets/{agent-monitor-B-yEUTbW.js → agent-monitor-CEAGevcJ.js} +1 -1
  61. package/dist/client/assets/{agent-overview-Cfajc4T9.js → agent-overview-B9mWtQrN.js} +1 -1
  62. package/dist/client/assets/agent-settings-Bd8_YJSI.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-CkmomzNE.js → agent-site-editor-Dn-SwMeX.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-Y4xPIzmS.js +2 -0
  65. package/dist/client/assets/{agent-site-editor-content-CmJpSlh2.js → agent-site-editor-content-Dn2d28FJ.js} +3 -3
  66. package/dist/client/assets/{agent-site-editor-preview-DDrBOF0Z.js → agent-site-editor-preview-BGtSWN6k.js} +3 -3
  67. package/dist/client/assets/agent-view-BqNl4IOK.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-B7Mzpeja.js → agent-view-guard-KuUlGmjg.js} +1 -1
  69. package/dist/client/assets/{agents-list-IOt-xE6T.js → agents-list-DUTGAaYB.js} +1 -1
  70. package/dist/client/assets/{ai-providers-tko4xsdH.js → ai-providers-CvP0mu_h.js} +1 -1
  71. package/dist/client/assets/{alert-CQx6yLHp.js → alert-BGlOaWga.js} +1 -1
  72. package/dist/client/assets/{alert-dialog-m7PHs13d.js → alert-dialog-5zuyoQ54.js} +1 -1
  73. package/dist/client/assets/{analytics-sections-DsjRpqe8.js → analytics-sections-B2FKhhgH.js} +1 -1
  74. package/dist/client/assets/{api-keys-BprG_h9e.js → api-keys-B85PZWC-.js} +1 -1
  75. package/dist/client/assets/api-keys-guA8nw2b.js +1 -0
  76. package/dist/client/assets/app-editor-B4Z-g5Dd.js +1 -0
  77. package/dist/client/assets/{asset-utils-DvBCIwrI.js → asset-utils-DHE59DFm.js} +1 -1
  78. package/dist/client/assets/{auth-k9t16OOb.js → auth-Bdfh9TTN.js} +1 -1
  79. package/dist/client/assets/{auth-catchall-C7UKh7ij.js → auth-catchall-BoMWkor5.js} +1 -1
  80. package/dist/client/assets/{auth-entry-C6RqohRy.js → auth-entry-BEwITJEV.js} +1 -1
  81. package/dist/client/assets/{auth-split-layout-BHZF4vyi.js → auth-split-layout-BdEGeOmG.js} +1 -1
  82. package/dist/client/assets/{authenticate-and-persist-oauth-8HHvB0nM.js → authenticate-and-persist-oauth-DKS7LloY.js} +1 -1
  83. package/dist/client/assets/{automation-list-row-C44HdDvH.js → automation-list-row-C8lOzNNS.js} +1 -1
  84. package/dist/client/assets/{automation-runs-BCo5l857.js → automation-runs-VhaUbL_z.js} +1 -1
  85. package/dist/client/assets/{automations-CYGQmasI.js → automations-BxXnVrTy.js} +1 -1
  86. package/dist/client/assets/{autosend-BKkKn8iq.js → autosend-D8pg19Rh.js} +1 -1
  87. package/dist/client/assets/{avatar-B9CWtHB4.js → avatar-CAxICn2w.js} +1 -1
  88. package/dist/client/assets/{badge-DS7xysUQ.js → badge-BnOb-zsy.js} +1 -1
  89. package/dist/client/assets/{block-document-C4eQcnX0.js → block-document-Kro-pK9Z.js} +1 -1
  90. package/dist/client/assets/{blocks-preview-workspace-context-sjVUFVpv.js → blocks-preview-workspace-context-DdZhOygI.js} +1 -1
  91. package/dist/client/assets/{breadcrumb-DgDOitTK.js → breadcrumb-CkGzv7W5.js} +1 -1
  92. package/dist/client/assets/{buckets-B9kHwSwC.js → buckets-CjuL4oVA.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-lqIM7ao_.js → build-improve-prompt-doc-BUDaGIGD.js} +1 -1
  94. package/dist/client/assets/{calendar-v9y9PDp2.js → calendar-Rh3Ayi6D.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-BByCTECw.js → capability-load-error-Dy5jJdoS.js} +1 -1
  96. package/dist/client/assets/{category-editor-BreOyR0b.js → category-editor-BWM9wIdp.js} +1 -1
  97. package/dist/client/assets/{chart-BCxri3_D.js → chart-BXfjoXsa.js} +1 -1
  98. package/dist/client/assets/{chat-context-CIrojUbL.js → chat-context-ZGS-0Lc6.js} +1 -1
  99. package/dist/client/assets/{chat-draft-CsL23XeE.js → chat-draft-WttJ8tkW.js} +1 -1
  100. package/dist/client/assets/{checkbox-DXebLGmO.js → checkbox-8e5Ux6Bp.js} +1 -1
  101. package/dist/client/assets/{choose-editor-DTKQtlb0.js → choose-editor-C6KpaeEk.js} +1 -1
  102. package/dist/client/assets/{claim-phase-copy-Oexgf5gh.js → claim-phase-copy-B9MsUskO.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-BnGCv2Bd.js → cli-auth-success-Li-2eHwe.js} +1 -1
  104. package/dist/client/assets/{client-icons-D2WOCZv4.js → client-icons-xZ20IU_9.js} +1 -1
  105. package/dist/client/assets/{collapsible-Ckib1khq.js → collapsible-BSf9Onia.js} +1 -1
  106. package/dist/client/assets/{collection-detail-DnoTme22.js → collection-detail-fBl2Fztc.js} +1 -1
  107. package/dist/client/assets/{collection-display-button-CJrP29Qc.js → collection-display-button-4NcwJUay.js} +1 -1
  108. package/dist/client/assets/{collection-search-B2Rze4Ue.js → collection-search-DUPEyodi.js} +1 -1
  109. package/dist/client/assets/{collection-table-wrapper-C4p-UNKT.js → collection-table-wrapper-zQraMMIZ.js} +1 -1
  110. package/dist/client/assets/{collection-tabs-CrAcGqu0.js → collection-tabs-DltvKsB7.js} +1 -1
  111. package/dist/client/assets/{combobox-lelWCr2H.js → combobox-CFoM-dcS.js} +1 -1
  112. package/dist/client/assets/{command-DZRWMxD5.js → command-0Q71adD5.js} +1 -1
  113. package/dist/client/assets/{companion-mcps-section-Di0GvwiM.js → companion-mcps-section-A0aC2MKi.js} +1 -1
  114. package/dist/client/assets/{connect-DQoon_ei.js → connect-jOjDz1xq.js} +1 -1
  115. package/dist/client/assets/{connect-layout-DxnvLjPI.js → connect-layout-BrutlKFN.js} +1 -1
  116. package/dist/client/assets/{connection-BtvJKuLN.js → connection-BwlYp_98.js} +1 -1
  117. package/dist/client/assets/{connection-card-CEFIrJY3.js → connection-card-BwH4OiUh.js} +1 -1
  118. package/dist/client/assets/{connection-detail-B-1EXZEm.js → connection-detail-CM-qh20_.js} +1 -1
  119. package/dist/client/assets/{connection-form-helpers-DFcBYAWG.js → connection-form-helpers-DukXidKL.js} +1 -1
  120. package/dist/client/assets/{connections-BDHqljAv.js → connections-cAoSaU23.js} +1 -1
  121. package/dist/client/assets/{context-DWKz0IRn.js → context-Dqy_Piwx.js} +1 -1
  122. package/dist/client/assets/{create-organization-dialog-VdEJZP_b.js → create-organization-dialog-2wNLwwUG.js} +1 -1
  123. package/dist/client/assets/{decofile-api-DrtvihiV.js → decofile-api-Bk6Q_m6Q.js} +1 -1
  124. package/dist/client/assets/{decopilot-CaIWBpB6.js → decopilot-CjeDftvq.js} +1 -1
  125. package/dist/client/assets/{dialog-DiUlVwD1.js → dialog-aNfvq0Gx.js} +1 -1
  126. package/dist/client/assets/{discover-S8lOKkYU.js → discover-BhBU7Gzl.js} +1 -1
  127. package/dist/client/assets/{domain-settings-BSPXcrvG.js → domain-settings-Cg5mUYYW.js} +1 -1
  128. package/dist/client/assets/{download-app-dialog-CwgA8Jar.js → download-app-dialog-jqsRuRCN.js} +1 -1
  129. package/dist/client/assets/{drawer-BT08Xqaa.js → drawer-DSLgUl8S.js} +1 -1
  130. package/dist/client/assets/{editor-S8HMRfnV.js → editor-PxmQfpfP.js} +1 -1
  131. package/dist/client/assets/{empty-state-YhHJ1PAR.js → empty-state-Bryk1SHf.js} +1 -1
  132. package/dist/client/assets/{empty-state-AwoelJY5.js → empty-state-BtpZBU4x.js} +1 -1
  133. package/dist/client/assets/{extract-connection-data-ak1yxd15.js → extract-connection-data-B9DyPVU-.js} +1 -1
  134. package/dist/client/assets/{feature-gate-DpWu04P_.js → feature-gate-D6zo6xG-.js} +1 -1
  135. package/dist/client/assets/{feature-paywall-O1oksi-z.js → feature-paywall-Bh8RRr9y.js} +1 -1
  136. package/dist/client/assets/{file-explorer-Cml3GhPa.js → file-explorer-CN0NFZe1.js} +1 -1
  137. package/dist/client/assets/{file-preview-DMCP6_DD.js → file-preview-CJ-_1Vqz.js} +1 -1
  138. package/dist/client/assets/{file-share-button-DkoS4iJK.js → file-share-button-f2Yvf1Ye.js} +1 -1
  139. package/dist/client/assets/{file-type-icon-DyGflp6T.js → file-type-icon-BYgiZIDa.js} +1 -1
  140. package/dist/client/assets/{folder-icon-BDD2uWKR.js → folder-icon-CNG-f1SD.js} +1 -1
  141. package/dist/client/assets/{form-DDtq3Oeg.js → form-BvSGycPj.js} +1 -1
  142. package/dist/client/assets/{gateway-client-BrPXiQqR.js → gateway-client-DEZhRkTS.js} +1 -1
  143. package/dist/client/assets/{general-DfP98aec.js → general-BJZXxBNe.js} +1 -1
  144. package/dist/client/assets/{github-icon-C3M97Kp1.js → github-icon-BP92s-aj.js} +1 -1
  145. package/dist/client/assets/{home-xKrXsUuw.js → home-CdxWRWJt.js} +1 -1
  146. package/dist/client/assets/{hooks-Dpw_cJTM.js → hooks-BHo3iW8o.js} +1 -1
  147. package/dist/client/assets/{icon-button-BA96KFLT.js → icon-button-rGUjPiBO.js} +1 -1
  148. package/dist/client/assets/{index-DV_mVnUZ.js → index-B-vo5TqF.js} +1 -1
  149. package/dist/client/assets/{index-pU5iRqYT.js → index-B1YIjoy8.js} +1 -1
  150. package/dist/client/assets/{index-BBOB34ZQ.js → index-B9Mt2Zue.js} +1 -1
  151. package/dist/client/assets/{index-B3naBK-e.js → index-BIlCrPH2.js} +1 -1
  152. package/dist/client/assets/{index-CTQuScgI.js → index-BmxQhKcc.js} +1 -1
  153. package/dist/client/assets/{index-cT94sQUH.js → index-Bv8ovZX7.js} +2 -2
  154. package/dist/client/assets/{index-4NmZWgdA.js → index-CCZIVOTb.js} +1 -1
  155. package/dist/client/assets/{index-B37137hI.js → index-CEIxT9-w.js} +1 -1
  156. package/dist/client/assets/{index-C9PI5TjH.js → index-CMM8OiJN.js} +1 -1
  157. package/dist/client/assets/{index-CgGEL4tk.js → index-CW3mvbP-.js} +1 -1
  158. package/dist/client/assets/{index-Bh23iZvW.js → index-D4jxiDhV.js} +1 -1
  159. package/dist/client/assets/{index-eJ0UMn-u.js → index-DB7CW9tW.js} +1 -1
  160. package/dist/client/assets/{index-ChjHAm_X.js → index-DGESUJrE.js} +1 -1
  161. package/dist/client/assets/{index-Tjbom_M5.js → index-DfHvWqHg.js} +1 -1
  162. package/dist/client/assets/{index-redirect-D4SSam4Y.js → index-redirect-Cf0qGvvQ.js} +1 -1
  163. package/dist/client/assets/{infiniteQueryObserver-Dj3x0ul-.js → infiniteQueryObserver-CLmBPvOC.js} +1 -1
  164. package/dist/client/assets/{infra-billing-D24Nnoas.js → infra-billing-CgTT7mEA.js} +1 -1
  165. package/dist/client/assets/{input-q5pG06UZ.js → input-BrBT4VAu.js} +1 -1
  166. package/dist/client/assets/{input-DbR0YCVu.js → input-CXs-YVYu.js} +1 -1
  167. package/dist/client/assets/{input-CSdHjp7L.js → input-D7VKtVHV.js} +1 -1
  168. package/dist/client/assets/{integration-icon-CBv4y2ld.js → integration-icon-_QdW_HEl.js} +1 -1
  169. package/dist/client/assets/{label-C6sMx1BY.js → label-BAb2clBH.js} +1 -1
  170. package/dist/client/assets/{last-preview-page-CcpwTOWp.js → last-preview-page-BOasaofB.js} +1 -1
  171. package/dist/client/assets/{layout-E2cSDTGe.js → layout-DKz_gVMk.js} +1 -1
  172. package/dist/client/assets/{legacy-agents-deep-BMTlTde1.js → legacy-agents-deep-DzJV9WdZ.js} +1 -1
  173. package/dist/client/assets/{legacy-main-redirect-B68-Adnw.js → legacy-main-redirect-DoEPYUQz.js} +1 -1
  174. package/dist/client/assets/{library-DI55mv6l.js → library-BxKGOYLR.js} +1 -1
  175. package/dist/client/assets/{login-DwlqHc1T.js → login-B13wBUsH.js} +1 -1
  176. package/dist/client/assets/{markdown-rYdPNaGa.js → markdown-IEb50bp3.js} +1 -1
  177. package/dist/client/assets/{mcp-app-renderer-DQd4z-tw.js → mcp-app-renderer-BVjb1uep.js} +1 -1
  178. package/dist/client/assets/{mcp-oauth-CtDqQIpT.js → mcp-oauth-D7EnzUg3.js} +1 -1
  179. package/dist/client/assets/{members-CnWBKrrf.js → members-DaYkffyz.js} +1 -1
  180. package/dist/client/assets/{message-templates-wovwT2FV.js → message-templates-DIQZvuul.js} +1 -1
  181. package/dist/client/assets/{mini-report-page-C71ATA2q.js → mini-report-page-gPQljQx-.js} +1 -1
  182. package/dist/client/assets/{mock-board-vXXuZ9OB.js → mock-board-BCEtuogR.js} +3 -3
  183. package/dist/client/assets/{monaco-editor-BYvrmVl8.js → monaco-editor-CZ3UOq2C.js} +1 -1
  184. package/dist/client/assets/{monitoring-stats-row-IkwiQHjH.js → monitoring-stats-row-BKgG20GP.js} +1 -1
  185. package/dist/client/assets/{multi-select-CDQWJfyp.js → multi-select-B_FsyhJ3.js} +1 -1
  186. package/dist/client/assets/{mustache-g0W1c9Pz.js → mustache-B64bzbQE.js} +1 -1
  187. package/dist/client/assets/{oauth-callback-7N1qrOP1.js → oauth-callback-BVa1wqY_.js} +1 -1
  188. package/dist/client/assets/{oauth-callback-ai-provider-D330wyq5.js → oauth-callback-ai-provider-B6p3LEub.js} +1 -1
  189. package/dist/client/assets/{onboarding-DsJ-aRc9.js → onboarding-CjY9ZaJa.js} +1 -1
  190. package/dist/client/assets/{optimistic-project-sidebar-views-KtCnoFH8.js → optimistic-project-sidebar-views-CIgk0pPq.js} +1 -1
  191. package/dist/client/assets/{org-file-open-context-DjmvTwmC.js → org-file-open-context-C3CvG90a.js} +1 -1
  192. package/dist/client/assets/{organization-choice-CZOzYUte.js → organization-choice-4sTsbqZY.js} +1 -1
  193. package/dist/client/assets/{orgs-CRAWDAbw.js → orgs-DMLLTLY8.js} +1 -1
  194. package/dist/client/assets/{page-seo-form-DUgQn0jT.js → page-seo-form-BGuhWwqo.js} +1 -1
  195. package/dist/client/assets/{pair-knW_lHO5.js → pair-DSAE6kBc.js} +1 -1
  196. package/dist/client/assets/{plan-ladder-CcvRWQzg.js → plan-ladder-DRDlfnKQ.js} +1 -1
  197. package/dist/client/assets/{popover-DuPXzrgi.js → popover-n4tdwfg1.js} +1 -1
  198. package/dist/client/assets/{post-calendar-Dm2FZlVO.js → post-calendar-BAf3rV18.js} +1 -1
  199. package/dist/client/assets/{post-editor-BkQnPDqK.js → post-editor-BOL_jJ5F.js} +1 -1
  200. package/dist/client/assets/{preview-content-nqp1cQig.js → preview-content-BOr8t_B7.js} +1 -1
  201. package/dist/client/assets/{preview-dialog-DGkB30uu.js → preview-dialog-CBQATPoA.js} +1 -1
  202. package/dist/client/assets/{profile-B2S2gmBW.js → profile-CP_1bWDP.js} +1 -1
  203. package/dist/client/assets/{project-app-view-CJHRV6yL.js → project-app-view-XkPj660d.js} +1 -1
  204. package/dist/client/assets/{project-feed-8Cez5QU8.js → project-feed-mDfQ-laa.js} +1 -1
  205. package/dist/client/assets/{project-icon-DW-tv9X7.js → project-icon-K8IkvwTu.js} +1 -1
  206. package/dist/client/assets/project-reports-8pX-TMsT.js +1 -0
  207. package/dist/client/assets/project-tasks-C6Kryc4_.js +1 -0
  208. package/dist/client/assets/{prompts-B2tfrrMA.js → prompts-49OLfQnt.js} +1 -1
  209. package/dist/client/assets/record-editor-13ULQgYo.js +1 -0
  210. package/dist/client/assets/{redirect-editor-BbBd0UrL.js → redirect-editor-6KbeprTc.js} +1 -1
  211. package/dist/client/assets/reports-BrFDkh6w.js +1 -0
  212. package/dist/client/assets/{reports-2V5MZWdY.js → reports-C1-T_XI6.js} +1 -1
  213. package/dist/client/assets/{reports-onboarding-DA-l-ocL.js → reports-onboarding-BbH4V7A-.js} +1 -1
  214. package/dist/client/assets/{reports-tab-B6VauTwc.js → reports-tab-DyE4mWa3.js} +2 -2
  215. package/dist/client/assets/{repositories-CeQWa7JA.js → repositories-DHwboveY.js} +1 -1
  216. package/dist/client/assets/{repository-import-picker-DgpEdzVj.js → repository-import-picker-CRs10CPh.js} +1 -1
  217. package/dist/client/assets/{repository-picker-B-RVPafI.js → repository-picker-CZ9LQZYf.js} +1 -1
  218. package/dist/client/assets/{require-capability-A2qKaV-G.js → require-capability-D9SZxHsZ.js} +1 -1
  219. package/dist/client/assets/{required-auth-layout-fSuiMVRc.js → required-auth-layout-5gvCMtcO.js} +1 -1
  220. package/dist/client/assets/{reset-password-B9ys5_ef.js → reset-password-DWdrV3bH.js} +1 -1
  221. package/dist/client/assets/{resizable-CyPCDk7u.js → resizable-B57Znxf0.js} +1 -1
  222. package/dist/client/assets/{review-settings-CiSbDHmD.js → review-settings-BQC6b8ZY.js} +1 -1
  223. package/dist/client/assets/{rich-text-link-control-CEAa82WB.js → rich-text-link-control-B-NORzEn.js} +1 -1
  224. package/dist/client/assets/{roles-slcMFBOI.js → roles-BMRJMNLe.js} +1 -1
  225. package/dist/client/assets/{route-Be_JrbZa.js → route-BCJP0MYO.js} +1 -1
  226. package/dist/client/assets/{route-CBjQKRPM.js → route-Bms7Naqu.js} +1 -1
  227. package/dist/client/assets/{route-D6QVa62m.js → route-Bv4TqLdN.js} +1 -1
  228. package/dist/client/assets/{route-page-header-CQ5gYErc.js → route-page-header-CsPi4GMO.js} +1 -1
  229. package/dist/client/assets/{runnable-block-editor-s0ZqFhOI.js → runnable-block-editor-DM8wSMV8.js} +1 -1
  230. package/dist/client/assets/{sandbox-lifecycle-context-Bt6dDo65.js → sandbox-lifecycle-context-DsRGwORN.js} +1 -1
  231. package/dist/client/assets/{schema-BwpPocS5.js → schema-CMlylut3.js} +1 -1
  232. package/dist/client/assets/{scroll-area-C_IMBr_-.js → scroll-area-t3NukeQO.js} +1 -1
  233. package/dist/client/assets/{search-input-B12ZEo-u.js → search-input-B3K0cIXk.js} +1 -1
  234. package/dist/client/assets/{search-toggle-DN5GZHXp.js → search-toggle-7vfSZ3oM.js} +1 -1
  235. package/dist/client/assets/{secret-picker-yI9Rfw9t.js → secret-picker-BvIcwT9-.js} +1 -1
  236. package/dist/client/assets/{secrets-Dwbmj7Nu.js → secrets-Vf4pio1e.js} +1 -1
  237. package/dist/client/assets/sections-editor-Diy2sJ51.js +1 -0
  238. package/dist/client/assets/{select-B3V6AARR.js → select-B_9gxhnf.js} +1 -1
  239. package/dist/client/assets/{select-model-Dgg0QqmD.js → select-model-Dc8NFwmy.js} +1 -1
  240. package/dist/client/assets/{seo-editor-DVhSkr87.js → seo-editor-CyA_IHYp.js} +1 -1
  241. package/dist/client/assets/{separator-B-YTOKXU.js → separator-CeYTQgxJ.js} +1 -1
  242. package/dist/client/assets/{settings-tab-Bqa114IE.js → settings-tab-CSmq_TZm.js} +1 -1
  243. package/dist/client/assets/{sheet-908igmnH.js → sheet-ncGbwo3c.js} +1 -1
  244. package/dist/client/assets/{shell-layout-CkG1W_88.js → shell-layout-Cn2XiFfO.js} +1 -1
  245. package/dist/client/assets/{sidebar-BFWjj-3T.js → sidebar-DMorNI5B.js} +1 -1
  246. package/dist/client/assets/{skill-preview-DCEvyr6I.js → skill-preview-Csp1-IaM.js} +1 -1
  247. package/dist/client/assets/{skills-Kroh8R0z.js → skills-JdOILRst.js} +1 -1
  248. package/dist/client/assets/{sso-CI5lCnpA.js → sso-D6HM5t6s.js} +1 -1
  249. package/dist/client/assets/{suggestion-DWARFIlS.js → suggestion-5QOsyBWf.js} +1 -1
  250. package/dist/client/assets/{switch-BhJ3AZWs.js → switch-B8V9Ox46.js} +1 -1
  251. package/dist/client/assets/{synced-repos-Dk3VsHpp.js → synced-repos-Cq9R4ohv.js} +1 -1
  252. package/dist/client/assets/{table-niYnsTKc.js → table-CqSUYS4O.js} +1 -1
  253. package/dist/client/assets/{tabs-BcaB_WSA.js → tabs-god_zfat.js} +1 -1
  254. package/dist/client/assets/{task-board-BKlDz2nG.js → task-board-CSfWLhg4.js} +1 -1
  255. package/dist/client/assets/{task-route-CUZautp3.js → task-route-qv7COOYP.js} +1 -1
  256. package/dist/client/assets/{task-status-VdIk_CP0.js → task-status-BAjWghil.js} +1 -1
  257. package/dist/client/assets/{taskboard-analytics-CRqfD7UI.js → taskboard-analytics-D-yRn1S6.js} +1 -1
  258. package/dist/client/assets/tasks-BR9-q4OQ.js +1 -0
  259. package/dist/client/assets/{tasks-d4yimVTu.js → tasks-ChC4tJl9.js} +1 -1
  260. package/dist/client/assets/{textarea-lt2TXyPT.js → textarea-Bs1krskq.js} +1 -1
  261. package/dist/client/assets/{thread-analytics-DHF3uWYQ.js → thread-analytics-BgyyDuVq.js} +1 -1
  262. package/dist/client/assets/{thread-button-BVgcb5x6.js → thread-button-CU8FEc0x.js} +1 -1
  263. package/dist/client/assets/{thread-intent-CHlBhQ4g.js → thread-intent-Bl6xIfFf.js} +1 -1
  264. package/dist/client/assets/{thread-route-fx8YTsf_.js → thread-route-BSeISsE6.js} +1 -1
  265. package/dist/client/assets/{thread-route-C05Rrd8B.js → thread-route-CX0quyn9.js} +1 -1
  266. package/dist/client/assets/{thread-sheet-body-Do5I-YMq.js → thread-sheet-body-hkS4aUg5.js} +1 -1
  267. package/dist/client/assets/{toggle-group-D0Pzc72Y.js → toggle-group-uWDttGAl.js} +1 -1
  268. package/dist/client/assets/{toolbar-icon-button-BXZ727Lv.js → toolbar-icon-button-CL9TUqhr.js} +1 -1
  269. package/dist/client/assets/{tooltip-BGTnGCWW.js → tooltip-452rT2Av.js} +1 -1
  270. package/dist/client/assets/{track-Cl2p3Vuk.js → track-9kgX0QPk.js} +1 -1
  271. package/dist/client/assets/{types-C2ulVtYx.js → types-CKACT3re.js} +1 -1
  272. package/dist/client/assets/{usage-stats-D4BBDmdo.js → usage-stats-DpOdKRPA.js} +1 -1
  273. package/dist/client/assets/{use-ai-providers-Cc_CzBZr.js → use-ai-providers-BfBmzjxk.js} +1 -1
  274. package/dist/client/assets/{use-automations-Bjnctu1x.js → use-automations-BSATGAzs.js} +1 -1
  275. package/dist/client/assets/{use-autosave-C6qsU6pa.js → use-autosave-Cgp9LI2B.js} +1 -1
  276. package/dist/client/assets/{use-connect-companion-YiSxQfB7.js → use-connect-companion-C-aC_6H2.js} +1 -1
  277. package/dist/client/assets/{use-connection-BUnGMpfY.js → use-connection-DZHmMxeG.js} +1 -1
  278. package/dist/client/assets/{use-copy-Cg8pzMCn.js → use-copy-CKbfXSV3.js} +1 -1
  279. package/dist/client/assets/{use-create-virtual-mcp-DfoENq1A.js → use-create-virtual-mcp-DT6S24Ek.js} +1 -1
  280. package/dist/client/assets/{use-date-fns-locale-BxNb5mu8.js → use-date-fns-locale-4nMtSnpk.js} +1 -1
  281. package/dist/client/assets/{use-debounced-autosave-Ds1nUcal.js → use-debounced-autosave-Dabnhryq.js} +1 -1
  282. package/dist/client/assets/{use-debounced-value-CylTsY1l.js → use-debounced-value-D4IIgvZ6.js} +1 -1
  283. package/dist/client/assets/{use-deco-credits-BqxUGiz2.js → use-deco-credits-CUhDqFNs.js} +1 -1
  284. package/dist/client/assets/{use-decopilot-events-BT_W0lJl.js → use-decopilot-events-E0BM35TR.js} +1 -1
  285. package/dist/client/assets/{use-delete-connection-PzbXJAFK.js → use-delete-connection-CKxZ4wsy.js} +1 -1
  286. package/dist/client/assets/{use-deployment-admin-B1rWnD8o.js → use-deployment-admin-CULH8aip.js} +1 -1
  287. package/dist/client/assets/{use-entitlements-Dbhso4ZI.js → use-entitlements-BTK1TiYJ.js} +1 -1
  288. package/dist/client/assets/{use-fast-preview-draft-url-zcMUpMeA.js → use-fast-preview-draft-url-CDZ9QnYg.js} +1 -1
  289. package/dist/client/assets/{use-file-configs-Du_BOfea.js → use-file-configs-BX41631Z.js} +1 -1
  290. package/dist/client/assets/{use-in-settings-3zEronlT.js → use-in-settings-DMlBXVsJ.js} +1 -1
  291. package/dist/client/assets/{use-infinite-scroll-DASshMJA.js → use-infinite-scroll-Be1BN8YX.js} +1 -1
  292. package/dist/client/assets/{use-join-requests-DBEizFwN.js → use-join-requests-D7k_-rqK.js} +1 -1
  293. package/dist/client/assets/{use-main-panel-tabs-CSiN5F_0.js → use-main-panel-tabs-Xzm5JVo2.js} +1 -1
  294. package/dist/client/assets/{use-mcp-auth-status-JThWl3bk.js → use-mcp-auth-status-DZc1kZiD.js} +1 -1
  295. package/dist/client/assets/{use-mcp-client-GBv4syMd.js → use-mcp-client-8W4pv2iG.js} +1 -1
  296. package/dist/client/assets/{use-mcp-prompts-CrOqkZmO.js → use-mcp-prompts-EP5VAc7p.js} +1 -1
  297. package/dist/client/assets/{use-mcp-tools-BZqzi-qU.js → use-mcp-tools-CWjm4_qp.js} +1 -1
  298. package/dist/client/assets/{use-members-hKKM8H8F.js → use-members-DdFSpvT6.js} +1 -1
  299. package/dist/client/assets/{use-mobile-Dv7BcXr5.js → use-mobile-CbgvL5x6.js} +1 -1
  300. package/dist/client/assets/{use-navigate-to-agent-Cp353ZuE.js → use-navigate-to-agent-CnwjWuW_.js} +1 -1
  301. package/dist/client/assets/{use-open-billing-url-DzWGWKyA.js → use-open-billing-url-DAJYSvuP.js} +1 -1
  302. package/dist/client/assets/{use-org-auth-client-DzE4u5oy.js → use-org-auth-client-PjV6soYN.js} +1 -1
  303. package/dist/client/assets/{use-org-fs-CGr2NA9d.js → use-org-fs-DlHKBaPi.js} +1 -1
  304. package/dist/client/assets/{use-org-repo-syncs-6F5S6E3X.js → use-org-repo-syncs-IAlIRz5z.js} +1 -1
  305. package/dist/client/assets/{use-org-sso-BziwA5dH.js → use-org-sso-Od2nvWUP.js} +1 -1
  306. package/dist/client/assets/{use-organization-roles-BpECo09m.js → use-organization-roles-Cma99AA4.js} +1 -1
  307. package/dist/client/assets/{use-organization-settings-C55vewZa.js → use-organization-settings-BXDoAx1p.js} +1 -1
  308. package/dist/client/assets/{use-panel-navigate-BvpNAJeL.js → use-panel-navigate-CeERwAhY.js} +1 -1
  309. package/dist/client/assets/{use-project-native-view-presence-DYD4cRxj.js → use-project-native-view-presence-0O5UQcYW.js} +1 -1
  310. package/dist/client/assets/{use-project-scope-CYpIGnJg.js → use-project-scope-CdX2mBNC.js} +1 -1
  311. package/dist/client/assets/{use-releases-w4OvCw5M.js → use-releases-BKjJ4TJe.js} +1 -1
  312. package/dist/client/assets/{use-reports-diagnostic-DvPUM_ji.js → use-reports-diagnostic-T8Asd01v.js} +1 -1
  313. package/dist/client/assets/{use-route-default-main-Bux-DW8_.js → use-route-default-main-BW9UadGk.js} +1 -1
  314. package/dist/client/assets/{use-secrets-9InRr5Wg.js → use-secrets-CfE-SREF.js} +1 -1
  315. package/dist/client/assets/{use-section-preview-base-BbXgFtzl.js → use-section-preview-base-WUaK1Pi8.js} +1 -1
  316. package/dist/client/assets/{use-session-runtime-CyC7y7Wf.js → use-session-runtime-Bf6vLaxh.js} +1 -1
  317. package/dist/client/assets/{use-tags-B4nQMv-Q.js → use-tags-BUAJ1eC5.js} +1 -1
  318. package/dist/client/assets/{use-task-board-analytics-CVUteVBr.js → use-task-board-analytics-BDIpYBbX.js} +1 -1
  319. package/dist/client/assets/{use-task-metadata-C-i2MCdn.js → use-task-metadata-DyG3Lo1p.js} +1 -1
  320. package/dist/client/assets/{use-thread-analytics-CTAY_EQL.js → use-thread-analytics-DjnPlB1b.js} +1 -1
  321. package/dist/client/assets/{use-thread-outputs-B__J7AZP.js → use-thread-outputs-CSH9qR28.js} +1 -1
  322. package/dist/client/assets/{use-virtual-mcp-CyUsVYwB.js → use-virtual-mcp-DyTrBBn7.js} +1 -1
  323. package/dist/client/assets/useInfiniteQuery-COua6s42.js +1 -0
  324. package/dist/client/assets/{useQueries-DRE-cCNR.js → useQueries-BxKAM4Rs.js} +1 -1
  325. package/dist/client/assets/useSuspenseInfiniteQuery-6311fHu0.js +1 -0
  326. package/dist/client/assets/{users-DBkZe3bO.js → users-hKaW80lb.js} +1 -1
  327. package/dist/client/assets/{utils-CHGVrATA.js → utils-BnjmVFWV.js} +1 -1
  328. package/dist/client/assets/{variant-calendar-BDMygNPj.js → variant-calendar-7Gr0v6MN.js} +1 -1
  329. package/dist/client/assets/{variant-matcher-override-DefoQYjj.js → variant-matcher-override-BhXPWsTJ.js} +1 -1
  330. package/dist/client/assets/{view-mode-toggle-CSfYGuhk.js → view-mode-toggle-Blh9kDM6.js} +1 -1
  331. package/dist/client/assets/{virtual-mcp-C_hBI7Rj.js → virtual-mcp-BYf8h9T-.js} +1 -1
  332. package/dist/client/index.html +1 -1
  333. package/dist/server/cli.js +1 -1
  334. package/dist/server/server.js +1 -1
  335. package/package.json +1 -1
  336. package/dist/client/assets/agent-app-WxppwwfV.js +0 -1
  337. package/dist/client/assets/agent-deck-B70vaH0w.js +0 -1
  338. package/dist/client/assets/agent-file-D2-O8b6i.js +0 -1
  339. package/dist/client/assets/agent-library-file-Dfir9Jjz.js +0 -1
  340. package/dist/client/assets/agent-settings-DgXye6uc.js +0 -1
  341. package/dist/client/assets/agent-site-editor-code-DjOBYRBJ.js +0 -2
  342. package/dist/client/assets/agent-view-BgER_VJ8.js +0 -1
  343. package/dist/client/assets/api-keys-kPU0tPrf.js +0 -1
  344. package/dist/client/assets/app-editor-rJdo4lSU.js +0 -1
  345. package/dist/client/assets/project-reports-kefrM59s.js +0 -1
  346. package/dist/client/assets/project-tasks-B7o9qjzH.js +0 -1
  347. package/dist/client/assets/record-editor-C887zwF7.js +0 -1
  348. package/dist/client/assets/reports-N7SlvZN1.js +0 -1
  349. package/dist/client/assets/sections-editor-DWq3wSNS.js +0 -1
  350. package/dist/client/assets/tasks-CLicx8Qy.js +0 -1
  351. package/dist/client/assets/useInfiniteQuery-DS8vuz-1.js +0 -1
  352. package/dist/client/assets/useSuspenseInfiniteQuery-D-EjhUK7.js +0 -1
@@ -1 +1 @@
1
- import{c as Z,j as t,l as xt,b as Ae,aR as dt,eM as ps,am as ns,dY as Ts,t as ce,o as bt,r as ee,e as lt,B as Ue,m as ct,K as Ye,ac as _t,R as Wt,a0 as js,n as Jt,e$ as Ps}from"./index-cT94sQUH.js";import{C as vs}from"./index-ChjHAm_X.js";import{n as kt}from"./LinkExternal01-Div0d_z3.js";import{B as Re}from"./badge-DS7xysUQ.js";import{E as Ze}from"./empty-state-AwoelJY5.js";import{a as ys}from"./use-virtual-mcp-CyUsVYwB.js";import{r as Ss}from"./site-slug-uya6Wp4-.js";import{i as Ns}from"./AlertCircle-B3LJiQhZ.js";import{bb as Cs,bc as is,L as Ds,bd as ws,be as $s,aF as Yt,M as Gt,bf as Ls}from"./agent-icon-CVsOY5Om.js";import{e as gt}from"./UserSquare-CHvWRyuq.js";import{i as _s}from"./Zap-SzxRRv0w.js";import{A as ls,a as as,b as os,c as rs,g as cs,d as ms,e as ds,f as fs}from"./alert-dialog-m7PHs13d.js";import{I as et}from"./icon-button-BA96KFLT.js";import{S as ks,c as Es,a as Rs,b as Fs}from"./sheet-908igmnH.js";import{T as As,b as nt,c as Fe,e as Et,a as Rt,d as Ft}from"./table-niYnsTKc.js";import{a as zs}from"./Copy01-CYbqJpFZ.js";import{a as Vt,b as Ht,C as Vs}from"./collapsible-Ckib1khq.js";import{i as At}from"./Share07-DpckpNEB.js";import{s as Pt}from"./Plus-Do5Wkomw.js";import{s as vt}from"./Trash01-Dw6PLr8l.js";import{c as yt,d as St,e as Nt,b as Ct,D as Dt}from"./dialog-DiUlVwD1.js";import{I as it}from"./input-CSdHjp7L.js";import{L as Xe}from"./label-C6sMx1BY.js";import{T as Hs,a as Bs,c as Os}from"./tooltip-BGTnGCWW.js";import{e as Ms}from"./Tool01-DK_vv6qf.js";import{s as qs}from"./Eye-CpLoEsen.js";import{a as Bt,b as Ot,c as ft,d as Mt,S as qt}from"./select-B3V6AARR.js";import{i as Is}from"./ArrowRight-540iMVH3.js";import{S as Qs}from"./settings-tab-Bqa114IE.js";import{b as Us}from"./use-organization-settings-C55vewZa.js";import{b as Ks}from"./thread-route-C05Rrd8B.js";import"./use-mobile-Dv7BcXr5.js";import"./thread-button-BVgcb5x6.js";import"./sidebar-BFWjj-3T.js";import"./LayoutLeft-DgiG6wiH.js";import"./use-panel-navigate-BvpNAJeL.js";import"./use-project-scope-CYpIGnJg.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-Bux-DW8_.js";import"./hooks-Dpw_cJTM.js";import"./use-mcp-client-GBv4syMd.js";import"./auth-k9t16OOb.js";import"./backoff-8mStPHYB.js";import"./task-board-BKlDz2nG.js";import"./schema-BwpPocS5.js";import"./toolbar-icon-button-BXZ727Lv.js";import"./use-in-settings-3zEronlT.js";import"./shell-layout-CkG1W_88.js";import"./avatar-B9CWtHB4.js";import"./User01-Bla6DkK3.js";import"./Globe04-DnURSsdQ.js";import"./SearchLg-gOfrWgIs.js";import"./XClose-1APsw2yP.js";import"./download-app-dialog-CwgA8Jar.js";import"./Check-CGKF06bT.js";import"./Download01-C8jubU2p.js";import"./CheckCircle-tvGC17Dy.js";import"./Monitor01-BrSZ6zzu.js";import"./command-DZRWMxD5.js";import"./index-C9PI5TjH.js";import"./SearchMd-B9ModJFt.js";import"./integration-icon-CBv4y2ld.js";import"./project-icon-DW-tv9X7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-fSuiMVRc.js";import"./autosend-BKkKn8iq.js";import"./use-org-sso-BziwA5dH.js";import"./resizable-CyPCDk7u.js";import"./route-page-header-CQ5gYErc.js";import"./ArrowUp-BB5V3348.js";import"./ArrowLeft-DmWma6hW.js";import"./XCircle-xC8IFHez.js";import"./ZoomOut-DD-ULjJm.js";import"./ChevronUp-Du4AWZmG.js";import"./CreditCard01-CK4yyvJY.js";import"./DotsVertical-BQfY36BV.js";import"./Image01-DPZCMheY.js";import"./Key01-CSyDklFV.js";import"./Link01-CYG0Mr8Q.js";import"./Sun-CzonSHrU.js";import"./Package-C5JGfmw5.js";import"./Palette-Bm4HMPv2.js";import"./Stars01-B6IfixlN.js";import"./Upload01-BsQDz7U2.js";import"./Users01-fXdkObFe.js";import"./X-CLqvixem.js";import"./index-CgGEL4tk.js";import"./popover-DuPXzrgi.js";import"./scroll-area-C_IMBr_-.js";import"./breadcrumb-DgDOitTK.js";import"./extract-connection-data-ak1yxd15.js";import"./metadata-D72DunRR.js";import"./connection-BtvJKuLN.js";import"./chat-context-CIrojUbL.js";import"./thread-intent-CHlBhQ4g.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-Dbhso4ZI.js";import"./use-ai-providers-Cc_CzBZr.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BT_W0lJl.js";import"./build-improve-prompt-doc-lqIM7ao_.js";import"./empty-state-YhHJ1PAR.js";import"./use-date-fns-locale-BxNb5mu8.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-BUnGMpfY.js";import"./mcp-oauth-CtDqQIpT.js";import"./textarea-lt2TXyPT.js";import"./use-debounced-autosave-Ds1nUcal.js";import"./add-connection-dialog-D9j0h-SU.js";import"./collection-search-B2Rze4Ue.js";import"./connection-card-CEFIrJY3.js";import"./useInfiniteQuery-DS8vuz-1.js";import"./infiniteQueryObserver-Dj3x0ul-.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-BT08Xqaa.js";import"./form-DDtq3Oeg.js";import"./connection-form-helpers-DFcBYAWG.js";import"./authenticate-and-persist-oauth-8HHvB0nM.js";import"./collection-tabs-CrAcGqu0.js";import"./use-infinite-scroll-DASshMJA.js";import"./useSuspenseInfiniteQuery-D-EjhUK7.js";import"./file-type-icon-DyGflp6T.js";import"./use-org-fs-CGr2NA9d.js";import"./checkbox-DXebLGmO.js";import"./search-input-B12ZEo-u.js";import"./use-mcp-auth-status-JThWl3bk.js";import"./types-C2ulVtYx.js";import"./use-mcp-tools-BZqzi-qU.js";import"./use-mcp-prompts-CrOqkZmO.js";import"./utils-CVEq3hMx.js";import"./switch-BhJ3AZWs.js";import"./use-project-native-view-presence-DYD4cRxj.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-Du_BOfea.js";import"./optimistic-project-sidebar-views-KtCnoFH8.js";import"./virtual-mcp-C_hBI7Rj.js";import"./repository-import-picker-DgpEdzVj.js";import"./use-navigate-to-agent-Cp353ZuE.js";import"./repository-picker-B-RVPafI.js";import"./github-icon-C3M97Kp1.js";import"./use-debounced-value-CylTsY1l.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-yI9Rfw9t.js";import"./use-secrets-9InRr5Wg.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),l=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),a=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[i,c]of a)if(Math.abs(o)>=c)return l.format(-Math.round(o/c),i);return l.format(-o,"second")}function 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 l=(e.endsWith(".")?e.slice(0,-1):e).split(".");if(l.length<2)return"Domain must include a TLD (e.g., example.com)";if(e.length>253)return"Domain name is too long (max 253 characters)";for(const i of l){if(i.length>63)return`Label "${i}" is too long (max 63 characters)`;if(!/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/i.test(i))return`Label "${i}" has invalid characters or format`}const a=l[l.length-1]??"";return/^[0-9]+$/.test(a)?"Domain must include a valid TLD, not a number":null}function us(r,e){return r&&typeof r=="object"&&"error"in r?String(r.error):`request failed (${e})`}async function Qt(r){const e=await fetch(r),o=await e.json().catch(()=>({}));if(!e.ok)throw new It(us(o,e.status),e.status);return o}async function at(r,e,o){const l=await fetch(r,{method:e,headers:o!==void 0?{"Content-Type":"application/json"}:{},body:o!==void 0?JSON.stringify(o):void 0}),a=await l.json().catch(()=>({}));if(!l.ok)throw new It(us(a,l.status),l.status);return a}function ut(r){const e=Z.c(4),{title:o,actions:l,children:a}=r;let i;return e[0]!==l||e[1]!==a||e[2]!==o?(i=t.jsx(Ts,{title:o,actions:l,children:a}),e[0]=l,e[1]=a,e[2]=o,e[3]=i):i=e[3],i}function Ie(r){const e=Z.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("gap-0 overflow-hidden p-0 divide-y divide-border",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx(ps,{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function pt(r){const e=Z.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("flex min-h-12 items-center gap-3 px-4 py-2",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx("div",{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function ot(r){const e=Z.c(2),{children:o}=r;let l;return e[0]!==o?(l=t.jsx("p",{className:"px-4 py-6 text-sm text-muted-foreground",children:o}),e[0]=o,e[1]=l):l=e[1],l}function ht(r){const e=Z.c(2),{rows:o}=r,l=o===void 0?3:o;let a;return e[0]!==l?(a=t.jsx(Ie,{children:Array.from({length:l},Gs)}),e[0]=l,e[1]=a):a=e[1],a}function Gs(r,e){return t.jsxs(pt,{children:[t.jsx(dt,{className:"h-4 w-40"}),t.jsx(dt,{className:"h-4 flex-1"}),t.jsx(dt,{className:"size-7 rounded-lg"})]},e)}function qe(r){const e=Z.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("text-xs font-medium text-muted-foreground",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx(As,{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function Ut(r){const e=Z.c(12),{open:o,onClick:l}=r,a=Ae();let i;e[0]!==o||e[1]!==a?(i=a(o?"mainPanelTabs.hostingTab.hideDetails":"mainPanelTabs.hostingTab.showDetails"),e[0]=o,e[1]=a,e[2]=i):i=e[2];const c=o&&"rotate-90";let m;e[3]!==c?(m=xt("transition-transform duration-200 motion-reduce:transition-none",c),e[3]=c,e[4]=m):m=e[4];let s;e[5]!==m?(s=t.jsx(ns,{className:m}),e[5]=m,e[6]=s):s=e[6];let n;return e[7]!==l||e[8]!==o||e[9]!==i||e[10]!==s?(n=t.jsx(et,{label:i,size:"icon-sm",className:"-ml-1.5 text-muted-foreground","aria-expanded":o,onClick:l,children:s}),e[7]=l,e[8]=o,e[9]=i,e[10]=s,e[11]=n):n=e[11],n}function Xs(r){const e=Z.c(8),{open:o,colSpan:l,children:a}=r;let i;e[0]!==a?(i=t.jsx(Vt,{children:t.jsx("div",{className:"border-b border-border bg-muted/30 px-4 py-3",children:a})}),e[0]=a,e[1]=i):i=e[1];let c;e[2]!==o||e[3]!==i?(c=t.jsx(Ht,{open:o,children:i}),e[2]=o,e[3]=i,e[4]=c):c=e[4];let m;return e[5]!==l||e[6]!==c?(m=t.jsx(nt,{className:"border-0 hover:bg-transparent",children:t.jsx(Fe,{colSpan:l,className:"p-0 whitespace-normal",children:c})}),e[5]=l,e[6]=c,e[7]=m):m=e[7],m}function hs(r){const e=Z.c(5),{open:o,children:l}=r;let a;e[0]!==l?(a=t.jsx(Vt,{children:t.jsx("div",{className:"border-t border-border bg-muted/30 px-4 py-3",children:l})}),e[0]=l,e[1]=a):a=e[1];let i;return e[2]!==o||e[3]!==a?(i=t.jsx(Ht,{open:o,children:a}),e[2]=o,e[3]=a,e[4]=i):i=e[4],i}function xs(r){const e=Z.c(6),{scope:o}=r,l=Ae(),a=o==="build"?"outline":"secondary";let i;e[0]!==o||e[1]!==l?(i=l(o==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime"),e[0]=o,e[1]=l,e[2]=i):i=e[2];let c;return e[3]!==a||e[4]!==i?(c=t.jsx(Re,{variant:a,children:i}),e[3]=a,e[4]=i,e[5]=c):c=e[5],c}function Zs(r){const e=Z.c(9),{value:o}=r,l=Ae();let a;e[0]!==l?(a=l("mainPanelTabs.hostingTab.dnsCopy"),e[0]=l,e[1]=a):a=e[1];let i;e[2]!==l||e[3]!==o?(i=()=>{if(!navigator.clipboard){ce.error(l("mainPanelTabs.hostingTab.dnsCopyError"));return}navigator.clipboard.writeText(o).then(()=>ce.success(l("mainPanelTabs.hostingTab.dnsCopied")),()=>ce.error(l("mainPanelTabs.hostingTab.dnsCopyError")))},e[2]=l,e[3]=o,e[4]=i):i=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(zs,{className:"size-3.5"}),e[5]=c):c=e[5];let m;return e[6]!==a||e[7]!==i?(m=t.jsx(et,{label:a,onClick:i,children:c}),e[6]=a,e[7]=i,e[8]=m):m=e[8],m}function wt(r){const e=Z.c(28),{open:o,onOpenChange:l,title:a,description:i,confirmLabel:c,pending:m,onConfirm:s}=r,n=Ae();let x;e[0]!==a?(x=t.jsx(ls,{children:a}),e[0]=a,e[1]=x):x=e[1];let b;e[2]!==i?(b=t.jsx(as,{children:i}),e[2]=i,e[3]=b):b=e[3];let d;e[4]!==x||e[5]!==b?(d=t.jsxs(os,{children:[x,b]}),e[4]=x,e[5]=b,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(rs,{disabled:m,children:f}),e[9]=m,e[10]=f,e[11]=u):u=e[11];let g;e[12]!==s?(g=S=>{S.preventDefault(),s()},e[12]=s,e[13]=g):g=e[13];let h;e[14]!==c||e[15]!==m||e[16]!==g?(h=t.jsx(cs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:g,disabled:m,children:c}),e[14]=c,e[15]=m,e[16]=g,e[17]=h):h=e[17];let N;e[18]!==u||e[19]!==h?(N=t.jsxs(ms,{children:[u,h]}),e[18]=u,e[19]=h,e[20]=N):N=e[20];let C;e[21]!==d||e[22]!==N?(C=t.jsxs(ds,{children:[d,N]}),e[21]=d,e[22]=N,e[23]=C):C=e[23];let P;return e[24]!==l||e[25]!==o||e[26]!==C?(P=t.jsx(fs,{open:o,onOpenChange:l,children:C}),e[24]=l,e[25]=o,e[26]=C,e[27]=P):P=e[27],P}const en=8;function tn(r){const e=Z.c(54),{base:o,orgSlug:l,site:a}=r,i=Ae(),c=bt(),[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 x;e[2]!==l||e[3]!==c||e[4]!==a||e[5]!==i?(x=()=>{c.invalidateQueries({queryKey:Ye.hostingDeployments(l,a)}),c.invalidateQueries({queryKey:Ye.hostingDeploymentHistory(l,a)}),ce.success(i("mainPanelTabs.hostingTab.toastDeployQueued")),s(!1)},e[2]=l,e[3]=c,e[4]=a,e[5]=i,e[6]=x):x=e[6];let b;e[7]!==n||e[8]!==x?(b={mutationFn:n,onSuccess:x,onError:sn},e[7]=n,e[8]=x,e[9]=b):b=e[9];const d=lt(b);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 g;e[12]!==d.isPending||e[13]!==i?(g=d.isPending?i("mainPanelTabs.hostingTab.deploying"):i("mainPanelTabs.hostingTab.deploy"),e[12]=d.isPending,e[13]=i,e[14]=g):g=e[14];let h;e[15]!==d.isPending||e[16]!==g?(h=t.jsxs(Ue,{size:"sm",onClick:f,disabled:d.isPending,children:[u,g]}),e[15]=d.isPending,e[16]=g,e[17]=h):h=e[17];let N;e[18]!==i?(N=i("mainPanelTabs.hostingTab.deployConfirmTitle"),e[18]=i,e[19]=N):N=e[19];let C;e[20]!==N?(C=t.jsx(ls,{children:N}),e[20]=N,e[21]=C):C=e[21];let P;e[22]!==i?(P=i("mainPanelTabs.hostingTab.deployConfirmDescription"),e[22]=i,e[23]=P):P=e[23];let S;e[24]!==P?(S=t.jsx(as,{children:P}),e[24]=P,e[25]=S):S=e[25];let y;e[26]!==S||e[27]!==C?(y=t.jsxs(os,{children:[C,S]}),e[26]=S,e[27]=C,e[28]=y):y=e[28];const R=d.isPending;let w;e[29]!==i?(w=i("mainPanelTabs.hostingTab.cancel"),e[29]=i,e[30]=w):w=e[30];let j;e[31]!==d.isPending||e[32]!==w?(j=t.jsx(rs,{disabled:R,children:w}),e[31]=d.isPending,e[32]=w,e[33]=j):j=e[33];let T;e[34]!==d?(T=_=>{_.preventDefault(),d.mutate()},e[34]=d,e[35]=T):T=e[35];const V=d.isPending;let M;e[36]!==i?(M=i("mainPanelTabs.hostingTab.deploy"),e[36]=i,e[37]=M):M=e[37];let F;e[38]!==d.isPending||e[39]!==T||e[40]!==M?(F=t.jsx(cs,{onClick:T,disabled:V,children:M}),e[38]=d.isPending,e[39]=T,e[40]=M,e[41]=F):F=e[41];let v;e[42]!==j||e[43]!==F?(v=t.jsxs(ms,{children:[j,F]}),e[42]=j,e[43]=F,e[44]=v):v=e[44];let H;e[45]!==y||e[46]!==v?(H=t.jsxs(ds,{children:[y,v]}),e[45]=y,e[46]=v,e[47]=H):H=e[47];let A;e[48]!==m||e[49]!==H?(A=t.jsx(fs,{open:m,onOpenChange:s,children:H}),e[48]=m,e[49]=H,e[50]=A):A=e[50];let Q;return e[51]!==A||e[52]!==h?(Q=t.jsxs(t.Fragment,{children:[h,A]}),e[51]=A,e[52]=h,e[53]=Q):Q=e[53],Q}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(ws,{}),e("mainPanelTabs.hostingTab.actionRollback")]}):o.includes("redeploy")?t.jsxs(Re,{variant:"secondary",children:[t.jsx($s,{}),e("mainPanelTabs.hostingTab.actionRedeploy")]}):t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),e("mainPanelTabs.hostingTab.actionDeploy")]})}function ln(r,e,o){const l=(r??"").toLowerCase();return l==="build"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(is,{}),o("mainPanelTabs.hostingTab.typeBuild")]}):l==="fast-deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(_s,{}),o("mainPanelTabs.hostingTab.typeFastDeploy")]}):l==="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=Z.c(7),{commit:o,onClick:l}=r,a=Ae();let i;e[0]!==a?(i=a("mainPanelTabs.hostingTab.buildLogs"),e[0]=a,e[1]=i):i=e[1];const c=!o;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(is,{}),e[2]=m):m=e[2];let s;return e[3]!==l||e[4]!==i||e[5]!==c?(s=t.jsx(et,{label:i,onClick:l,disabled:c,children:m}),e[3]=l,e[4]=i,e[5]=c,e[6]=s):s=e[6],s}function on(r){const e=Z.c(37),{base:o,orgSlug:l,site:a,target:i,onOpenChange:c}=r,m=Ae(),s=i!=null,n=i?.commit??"",x=i?.env??"";let b;e[0]!==n||e[1]!==x||e[2]!==l||e[3]!==a?(b=Ye.hostingBuildLogs(l,a,n,x),e[0]=n,e[1]=x,e[2]=l,e[3]=a,e[4]=b):b=e[4];let d;e[5]!==o||e[6]!==n||e[7]!==x?(d=()=>Qt(`${o}/deployments/logs?commit=${encodeURIComponent(n)}&env=${encodeURIComponent(x)}`),e[5]=o,e[6]=n,e[7]=x,e[8]=d):d=e[8];const f=s&&!!n;let u;e[9]!==b||e[10]!==d||e[11]!==f?(u={queryKey:b,queryFn:d,enabled:f,retry:!1,staleTime:0,gcTime:0,refetchOnMount:"always"},e[9]=b,e[10]=d,e[11]=f,e[12]=u):u=e[12];const g=ct(u),h=g.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(ks,{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(Es,{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]!==h||e[26]!==g.error||e[27]!==g.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(g.error)?t.jsx(Ze,{icon:t.jsx(_t,{className:"size-5"}),title:m("mainPanelTabs.hostingTab.notConnectedTitle"),description:m("mainPanelTabs.hostingTab.notConnectedDescription")}):g.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"})]}):g.error?t.jsx(ot,{children:m("mainPanelTabs.hostingTab.buildLogsError")}):h&&h.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(Ns,{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:h.reason??m("mainPanelTabs.hostingTab.buildLogsNotWiredDescription")})]}):h?.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:h.text}),h.truncated&&t.jsx("p",{className:"text-xs text-warning",children:m("mainPanelTabs.hostingTab.buildLogsTruncated")}),h.url&&t.jsxs("a",{href:h.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-xs text-primary hover:underline",children:[t.jsx(kt,{className:"size-3.5"}),m("mainPanelTabs.hostingTab.buildLogsOpenFull")]})]}):h?.url?t.jsxs("a",{href:h.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-sm text-primary hover:underline",children:[t.jsx(kt,{className:"size-4"}),m("mainPanelTabs.hostingTab.buildLogsOpenFull")]}):t.jsx(ot,{children:m("mainPanelTabs.hostingTab.buildLogsEmpty")})}),e[25]=h,e[26]=g.error,e[27]=g.isLoading,e[28]=m,e[29]=R):R=e[29];let w;e[30]!==R||e[31]!==y?(w=t.jsxs(Rs,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:[y,R]}),e[30]=R,e[31]=y,e[32]=w):w=e[32];let j;return e[33]!==c||e[34]!==s||e[35]!==w?(j=t.jsx(Fs,{open:s,onOpenChange:c,children:w}),e[33]=c,e[34]=s,e[35]=w,e[36]=j):j=e[36],j}function rn(r){const e=Z.c(52),{base:o,orgSlug:l,site:a,enabled:i,deployments:c,isLoading:m,error:s}=r,n=Ae(),[x,b]=ee.useState(null),[d,f]=ee.useState(en),[u,g]=ee.useState(null);let h;e[0]!==l||e[1]!==a?(h=Ye.hostingDeploymentHistory(l,a),e[0]=l,e[1]=a,e[2]=h):h=e[2];let N;e[3]!==o?(N=()=>Qt(`${o}/deployments/history?limit=50`),e[3]=o,e[4]=N):N=e[4];let C;e[5]!==i||e[6]!==h||e[7]!==N?(C={queryKey:h,queryFn:N,enabled:i,retry:!1,staleTime:3e4},e[5]=i,e[6]=h,e[7]=N,e[8]=C):C=e[8];const P=ct(C);let S,y,R,w;if(e[9]!==c||e[10]!==s||e[11]!==x||e[12]!==d||e[13]!==P.data||e[14]!==P.error||e[15]!==P.isLoading||e[16]!==m||e[17]!==n){const F=mt(P.data,"items"),v=F.slice(0,d),H=F.length-v.length;let A;e[22]!==c?(A=c.find(dn)?.commitSha??c.find(mn)?.commitSha??null,e[22]=c,e[23]=A):A=e[23];const Q=A;let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=(p,I)=>{p&&g({commit:p,env:I??"production"})},e[24]=_):_=e[24];const W=_;let J;e[25]!==n?(J=n("mainPanelTabs.hostingTab.deployments"),e[25]=n,e[26]=J):J=e[26];let U;e[27]!==c||e[28]!==s||e[29]!==x||e[30]!==m||e[31]!==n?(U=m?t.jsx(ht,{}):s?t.jsx(Ie,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deploymentsError")})}):c.length===0?t.jsx(Ie,{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(qe,{className:"pl-4",children:n("mainPanelTabs.hostingTab.colCommit")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colStatus")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colFramework")}),t.jsx(qe,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDuration")}),t.jsx(qe,{className:"text-right",children:n("mainPanelTabs.hostingTab.colUpdated")}),t.jsx(qe,{className:"w-[1%]"})]})}),t.jsx(Ft,{children:c.map(p=>{const I=!!p.buildMessage,Y=x===p.id;return t.jsxs(ee.Fragment,{children:[t.jsxs(nt,{className:xt(I&&"cursor-pointer hover:bg-muted/40"),onClick:I?()=>b(Y?null:p.id):void 0,children:[t.jsx(Fe,{className:"px-4",children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[I?t.jsx(Ut,{open:Y,onClick:()=>b(Y?null:p.id)}):t.jsx(Cs,{className:"size-4 text-muted-foreground/60"}),t.jsx("span",{className:"font-mono text-xs",children:p.shortCommit??p.commitSha?.slice(0,7)??"—"}),p.production===!0&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.production")})]})}),t.jsx(Fe,{children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Re,{variant:Ws(p.phase),children:p.phase??"—"}),p.up===!0&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(p.framework)??"—"}),t.jsx(Fe,{className:"text-right font-mono text-xs text-muted-foreground tabular-nums",children:Js(p.durationMs)}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Xt(p.finishedAt??p.startedAt??p.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",onClick:cn,children:t.jsx(Zt,{commit:p.commitSha,onClick:()=>W(p.commitSha,p.env)})})]}),I&&t.jsx(Xs,{open:Y,colSpan:6,children:t.jsx("p",{className:"whitespace-pre-wrap break-words font-mono text-xs text-muted-foreground",children:p.buildMessage})})]},p.id)})})]}),e[27]=c,e[28]=s,e[29]=x,e[30]=m,e[31]=n,e[32]=U):U=e[32],e[33]!==U||e[34]!==J?(w=t.jsx(ut,{title:J,children:U}),e[33]=U,e[34]=J,e[35]=w):w=e[35],S=ut,e[36]!==n?(y=n("mainPanelTabs.hostingTab.deployHistory"),e[36]=n,e[37]=y):y=e[37],R=P.isLoading?t.jsx(ht,{}):P.error?t.jsx(Ie,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deployHistoryError")})}):F.length===0?t.jsx(Ie,{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(qe,{className:"pl-4",children:n("mainPanelTabs.hostingTab.colAction")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colStatus")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colCommit")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colFramework")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colActor")}),t.jsx(qe,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDate")}),t.jsx(qe,{className:"w-[1%]"})]})}),t.jsxs(Ft,{children:[v.map(p=>{const I=!!Q&&p.commitSha===Q;return t.jsxs(nt,{children:[t.jsx(Fe,{className:"pl-4",children:ln(p.type,p.action,n)}),t.jsx(Fe,{children:an(p.outcome,n)}),t.jsx(Fe,{children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"font-mono text-xs",children:p.commitSha?.slice(0,7)??"—"}),I&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(p.framework)??"—"}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:p.actor??"—"}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Xt(p.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",children:t.jsx(Zt,{commit:p.commitSha,onClick:()=>W(p.commitSha,p.env)})})]},p.id)}),H>0&&t.jsx(nt,{className:"hover:bg-transparent",children:t.jsx(Fe,{colSpan:7,className:"p-2 text-center",children:t.jsx(Ue,{variant:"ghost",size:"sm",onClick:()=>f(F.length),children:n("mainPanelTabs.hostingTab.showMoreHistory",{count:String(H)})})})})]})]}),e[9]=c,e[10]=s,e[11]=x,e[12]=d,e[13]=P.data,e[14]=P.error,e[15]=P.isLoading,e[16]=m,e[17]=n,e[18]=S,e[19]=y,e[20]=R,e[21]=w}else S=e[18],y=e[19],R=e[20],w=e[21];let j;e[38]!==S||e[39]!==y||e[40]!==R?(j=t.jsx(S,{title:y,children:R}),e[38]=S,e[39]=y,e[40]=R,e[41]=j):j=e[41];let T;e[42]===Symbol.for("react.memo_cache_sentinel")?(T=F=>{F||g(null)},e[42]=T):T=e[42];let V;e[43]!==o||e[44]!==u||e[45]!==l||e[46]!==a?(V=t.jsx(on,{base:o,orgSlug:l,site:a,target:u,onOpenChange:T}),e[43]=o,e[44]=u,e[45]=l,e[46]=a,e[47]=V):V=e[47];let M;return e[48]!==w||e[49]!==j||e[50]!==V?(M=t.jsxs(t.Fragment,{children:[w,j,V]}),e[48]=w,e[49]=j,e[50]=V,e[51]=M):M=e[51],M}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 gs(r){const e=Z.c(24),{records:o}=r,l=Ae();let a;e[0]!==l?(a=l("mainPanelTabs.hostingTab.dnsColType"),e[0]=l,e[1]=a):a=e[1];let i;e[2]!==a?(i=t.jsx(qe,{className:"w-16",children:a}),e[2]=a,e[3]=i):i=e[3];let c;e[4]!==l?(c=l("mainPanelTabs.hostingTab.dnsColName"),e[4]=l,e[5]=c):c=e[5];let m;e[6]!==c?(m=t.jsx(qe,{children:c}),e[6]=c,e[7]=m):m=e[7];let s;e[8]!==l?(s=l("mainPanelTabs.hostingTab.dnsColValue"),e[8]=l,e[9]=s):s=e[9];let n;e[10]!==s?(n=t.jsx(qe,{children:s}),e[10]=s,e[11]=n):n=e[11];let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(qe,{className:"w-10"}),e[12]=x):x=e[12];let b;e[13]!==i||e[14]!==m||e[15]!==n?(b=t.jsx(Rt,{children:t.jsxs(nt,{children:[i,m,n,x]})}),e[13]=i,e[14]=m,e[15]=n,e[16]=b):b=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]!==b?(u=t.jsxs(Et,{className:"table-fixed",children:[b,f]}),e[21]=f,e[22]=b,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 bs(r){const e=Z.c(14),{status:o,children:l}=r,a=Ae();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(At,{className:"size-4 text-muted-foreground"}),e[0]=i):i=e[0];let c;e[1]!==a?(c=a("mainPanelTabs.hostingTab.dnsSetupTitle"),e[1]=a,e[2]=c):c=e[2];let m;e[3]!==c?(m=t.jsx("span",{className:"text-sm font-medium",children:c}),e[3]=c,e[4]=m):m=e[4];let s;e[5]!==o||e[6]!==a?(s=o&&t.jsx(Re,{variant:o.active?"success":"outline",className:"ml-auto",children:o.active?a("mainPanelTabs.hostingTab.dnsActive"):a("mainPanelTabs.hostingTab.dnsAwaiting")}),e[5]=o,e[6]=a,e[7]=s):s=e[7];let n;e[8]!==m||e[9]!==s?(n=t.jsxs("div",{className:"flex items-center gap-2",children:[i,m,s]}),e[8]=m,e[9]=s,e[10]=n):n=e[10];let x;return e[11]!==l||e[12]!==n?(x=t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[n,l]}),e[11]=l,e[12]=n,e[13]=x):x=e[13],x}function ts(r){const e=Z.c(21),{from:o,source:l}=r,a=Ae();let i,c,m,s,n;if(e[0]!==o||e[1]!==l||e[2]!==a){const d=o.trim().replace(/\.$/,""),f=d?un(d)?"@":d:"@",u=l==="both";c=bs,e[8]!==u?(s={active:u},e[8]=u,e[9]=s):s=e[9];let g;e[10]!==u||e[11]!==a?(g=a(u?"mainPanelTabs.hostingTab.dnsActiveHint":"mainPanelTabs.hostingTab.dnsAwaitingHint"),e[10]=u,e[11]=a,e[12]=g):g=e[12],n=t.jsxs("p",{className:"text-xs text-muted-foreground",children:[a("mainPanelTabs.hostingTab.dnsRedirectIntent",{from:d||"—"})," ",g]}),i=gs,m=fn.map(h=>({type:"A",name:f,value:h})),e[0]=o,e[1]=l,e[2]=a,e[3]=i,e[4]=c,e[5]=m,e[6]=s,e[7]=n}else i=e[3],c=e[4],m=e[5],s=e[6],n=e[7];let x;e[13]!==i||e[14]!==m?(x=t.jsx(i,{records:m}),e[13]=i,e[14]=m,e[15]=x):x=e[15];let b;return e[16]!==c||e[17]!==s||e[18]!==n||e[19]!==x?(b=t.jsxs(c,{status:s,children:[n,x]}),e[16]=c,e[17]=s,e[18]=n,e[19]=x,e[20]=b):b=e[20],b}function ss(r){const e=Z.c(2),{records:o}=r;if(o.length===0)return null;let l;return e[0]!==o?(l=t.jsx(bs,{children:t.jsx(gs,{records:o})}),e[0]=o,e[1]=l):l=e[1],l}function xn(r){const e=Z.c(16),{domain:o}=r,l=Ae(),a=o.status??"pending";let i;e[0]!==a||e[1]!==l?(i=l(a==="active"?"mainPanelTabs.hostingTab.statusActive":a==="action-required"?"mainPanelTabs.hostingTab.statusActionRequired":"mainPanelTabs.hostingTab.statusPending"),e[0]=a,e[1]=l,e[2]=i):i=e[2];const c=i;let m;e[3]!==o.detail||e[4]!==l?(m=o.detail==="zone-not-onboarded"?l("mainPanelTabs.hostingTab.detailZoneNotOnboarded"):void 0,e[3]=o.detail,e[4]=l,e[5]=m):m=e[5];const s=m,n=a==="active"?"success":a==="action-required"?"warning":"outline";let x;e[6]!==c||e[7]!==n?(x=t.jsx(Re,{variant:n,children:c}),e[6]=c,e[7]=n,e[8]=x):x=e[8];const b=x;if(!s)return b;let d;e[9]!==b?(d=t.jsx(Hs,{asChild:!0,children:b}),e[9]=b,e[10]=d):d=e[10];let f;e[11]!==s?(f=t.jsx(Bs,{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(Os,{children:[d,f]}),e[13]=d,e[14]=f,e[15]=u):u=e[15],u}function gn(r){const e=Z.c(121),{base:o,orgSlug:l,site:a,domains:i,dnsTemplate:c,isLoading:m,error:s}=r,n=Ae(),x=bt(),[b,d]=ee.useState(!1),[f,u]=ee.useState(""),[g,h]=ee.useState(null),[N,C]=ee.useState(null);let P;e[0]!==l||e[1]!==x||e[2]!==a?(P=()=>x.invalidateQueries({queryKey:Ye.hostingDomains(l,a)}),e[0]=l,e[1]=x,e[2]=a,e[3]=P):P=e[3];const S=P;let y;e[4]!==o?(y=$=>at(`${o}/domains`,"PUT",$),e[4]=o,e[5]=y):y=e[5];let R;e[6]!==S||e[7]!==n?(R=()=>{S(),ce.success(n("mainPanelTabs.hostingTab.toastDomainSaved")),d(!1)},e[6]=S,e[7]=n,e[8]=R):R=e[8];let w;e[9]!==y||e[10]!==R?(w={mutationFn:y,onSuccess:R,onError:pn},e[9]=y,e[10]=R,e[11]=w):w=e[11];const j=lt(w);let T;e[12]!==o?(T=$=>at(`${o}/domains/${encodeURIComponent($)}`,"DELETE"),e[12]=o,e[13]=T):T=e[13];let V;e[14]!==S||e[15]!==n?(V=()=>{S(),ce.success(n("mainPanelTabs.hostingTab.toastDomainDeleted")),h(null)},e[14]=S,e[15]=n,e[16]=V):V=e[16];let M;e[17]!==T||e[18]!==V?(M={mutationFn:T,onSuccess:V,onError:bn},e[17]=T,e[18]=V,e[19]=M):M=e[19];const F=lt(M);let v;e[20]!==f||e[21]!==j||e[22]!==n?(v=()=>{const $=f.trim().toLowerCase();if(!$){ce.error(n("mainPanelTabs.hostingTab.errorDomainHostRequired"));return}const se=Ys($);if(se){ce.error(se);return}j.mutate({host:$})},e[20]=f,e[21]=j,e[22]=n,e[23]=v):v=e[23];const H=v;let A;if(e[24]!==c||e[25]!==f){let $;e[27]!==f?($=se=>({...se,name:f.trim().toLowerCase()||se.name}),e[27]=f,e[28]=$):$=e[28],A=c.map($),e[24]=c,e[25]=f,e[26]=A}else A=e[26];const Q=A;let _,W;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{u(""),d(!0)},W=t.jsx(Pt,{}),e[29]=_,e[30]=W):(_=e[29],W=e[30]);let J;e[31]!==n?(J=n("mainPanelTabs.hostingTab.addDomain"),e[31]=n,e[32]=J):J=e[32];let U;e[33]!==J?(U=t.jsxs(Ue,{size:"sm",variant:"outline",onClick:_,children:[W,J]}),e[33]=J,e[34]=U):U=e[34];const p=U;let I;e[35]!==n?(I=n("mainPanelTabs.hostingTab.domains"),e[35]=n,e[36]=I):I=e[36];const Y=i.length>0?p:void 0;let D;e[37]!==p||e[38]!==F.isPending||e[39]!==N||e[40]!==i||e[41]!==s||e[42]!==m||e[43]!==n?(D=m?t.jsx(ht,{}):s?t.jsx(Ie,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.domainsError")})}):i.length===0?t.jsx(Ie,{children:t.jsx(Ze,{icon:t.jsx(At,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDomains"),className:"py-10",buttonComponent:p})}):t.jsx(Ie,{children:i.map(($,se)=>{const Se=!$.canonical&&($.dns?.length??0)>0,je=N===$.host;return t.jsxs("div",{children:[t.jsxs(pt,{children:[Se?t.jsx(Ut,{open:je,onClick:()=>C(je?null:$.host)}):t.jsx(At,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[t.jsx("span",{className:"truncate font-mono text-xs",children:$.host}),$.canonical&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.canonical")})]}),t.jsx(xn,{domain:$}),!$.canonical&&t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteDomain"),onClick:()=>h($.host),disabled:F.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]}),Se&&t.jsx(hs,{open:je,children:t.jsx(ss,{records:$.dns??[]})})]},`${$.host}-${se}`)})}),e[37]=p,e[38]=F.isPending,e[39]=N,e[40]=i,e[41]=s,e[42]=m,e[43]=n,e[44]=D):D=e[44];let G;e[45]!==n?(G=n("mainPanelTabs.hostingTab.addDomainTitle"),e[45]=n,e[46]=G):G=e[46];let O;e[47]!==G?(O=t.jsx(yt,{children:t.jsx(St,{children:G})}),e[47]=G,e[48]=O):O=e[48];let k;e[49]!==H?(k=$=>{$.preventDefault(),H()},e[49]=H,e[50]=k):k=e[50];let E;e[51]!==n?(E=n("mainPanelTabs.hostingTab.colHost"),e[51]=n,e[52]=E):E=e[52];let B;e[53]!==E?(B=t.jsx(Xe,{htmlFor:"domain-host",children:E}),e[53]=E,e[54]=B):B=e[54];let X;e[55]!==n?(X=n("mainPanelTabs.hostingTab.domainHostPlaceholder"),e[55]=n,e[56]=X):X=e[56];let te;e[57]===Symbol.for("react.memo_cache_sentinel")?(te=$=>u($.target.value),e[57]=te):te=e[57];let K;e[58]!==f||e[59]!==j.isPending||e[60]!==X?(K=t.jsx(it,{id:"domain-host",placeholder:X,value:f,onChange:te,className:"font-mono text-xs",autoComplete:"off",disabled:j.isPending}),e[58]=f,e[59]=j.isPending,e[60]=X,e[61]=K):K=e[61];let ne;e[62]!==B||e[63]!==K?(ne=t.jsxs("div",{className:"flex flex-col gap-2",children:[B,K]}),e[62]=B,e[63]=K,e[64]=ne):ne=e[64];let ie;e[65]!==f||e[66]!==Q?(ie=f.trim()&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ss,{records:Q})}),e[65]=f,e[66]=Q,e[67]=ie):ie=e[67];let Pe;e[68]===Symbol.for("react.memo_cache_sentinel")?(Pe=()=>d(!1),e[68]=Pe):Pe=e[68];const Ce=j.isPending;let me;e[69]!==n?(me=n("mainPanelTabs.hostingTab.cancel"),e[69]=n,e[70]=me):me=e[70];let pe;e[71]!==j.isPending||e[72]!==me?(pe=t.jsx(Ue,{variant:"outline",type:"button",onClick:Pe,disabled:Ce,children:me}),e[71]=j.isPending,e[72]=me,e[73]=pe):pe=e[73];let le;e[74]!==f||e[75]!==j.isPending?(le=j.isPending||!f.trim(),e[74]=f,e[75]=j.isPending,e[76]=le):le=e[76];let ae;e[77]!==j.isPending||e[78]!==n?(ae=j.isPending?n("mainPanelTabs.hostingTab.saving"):n("mainPanelTabs.hostingTab.save"),e[77]=j.isPending,e[78]=n,e[79]=ae):ae=e[79];let de;e[80]!==le||e[81]!==ae?(de=t.jsx(Ue,{type:"submit",disabled:le,children:ae}),e[80]=le,e[81]=ae,e[82]=de):de=e[82];let De;e[83]!==pe||e[84]!==de?(De=t.jsxs(Nt,{children:[pe,de]}),e[83]=pe,e[84]=de,e[85]=De):De=e[85];let fe;e[86]!==k||e[87]!==ne||e[88]!==ie||e[89]!==De?(fe=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:k,children:[ne,ie,De]}),e[86]=k,e[87]=ne,e[88]=ie,e[89]=De,e[90]=fe):fe=e[90];let ue;e[91]!==O||e[92]!==fe?(ue=t.jsxs(Ct,{className:"sm:max-w-md",children:[O,fe]}),e[91]=O,e[92]=fe,e[93]=ue):ue=e[93];let oe;e[94]!==b||e[95]!==ue?(oe=t.jsx(Dt,{open:b,onOpenChange:d,children:ue}),e[94]=b,e[95]=ue,e[96]=oe):oe=e[96];const Te=g!=null;let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=$=>{$||h(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=g??"";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]!==g?(re=()=>{g&&F.mutate(g)},e[105]=F,e[106]=g,e[107]=re):re=e[107];let be;e[108]!==F.isPending||e[109]!==Te||e[110]!==xe||e[111]!==ye||e[112]!==ge||e[113]!==re?(be=t.jsx(wt,{open:Te,onOpenChange:he,title:xe,description:ye,confirmLabel:ge,pending:F.isPending,onConfirm:re}),e[108]=F.isPending,e[109]=Te,e[110]=xe,e[111]=ye,e[112]=ge,e[113]=re,e[114]=be):be=e[114];let we;return e[115]!==I||e[116]!==Y||e[117]!==D||e[118]!==oe||e[119]!==be?(we=t.jsxs(ut,{title:I,actions:Y,children:[D,oe,be]}),e[115]=I,e[116]=Y,e[117]=D,e[118]=oe,e[119]=be,e[120]=we):we=e[120],we}function bn(r){return ce.error(rt(r))}function pn(r){return ce.error(rt(r))}function Tn(r){const e=Z.c(24),{value:o,onChange:l,disabled:a,className:i}=r,c=Ae();let m;e[0]!==l?(m=N=>l(N==="build"?"build":"runtime"),e[0]=l,e[1]=m):m=e[1];let s;e[2]!==i?(s=xt("h-8",i),e[2]=i,e[3]=s):s=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Bt,{}),e[4]=n):n=e[4];let x;e[5]!==s?(x=t.jsx(Ot,{className:s,children:n}),e[5]=s,e[6]=x):x=e[6];let b;e[7]!==c?(b=c("mainPanelTabs.hostingTab.secretScopeRuntime"),e[7]=c,e[8]=b):b=e[8];let d;e[9]!==b?(d=t.jsx(ft,{value:"runtime",children:b}),e[9]=b,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 g;e[15]!==d||e[16]!==u?(g=t.jsxs(Mt,{children:[d,u]}),e[15]=d,e[16]=u,e[17]=g):g=e[17];let h;return e[18]!==a||e[19]!==m||e[20]!==x||e[21]!==g||e[22]!==o?(h=t.jsxs(qt,{value:o,onValueChange:m,disabled:a,children:[x,g]}),e[18]=a,e[19]=m,e[20]=x,e[21]=g,e[22]=o,e[23]=h):h=e[23],h}function jn(r){const e=Z.c(151),{base:o,orgSlug:l,site:a,envVars:i,codeVars:c,isLoading:m,error:s}=r,n=Ae(),x=bt(),[b,d]=ee.useState(!1),[f,u]=ee.useState(""),[g,h]=ee.useState(""),[N,C]=ee.useState("runtime"),[P,S]=ee.useState(null),[y,R]=ee.useState(""),[w,j]=ee.useState(null);let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T=new Set,e[0]=T):T=e[0];const[V,M]=ee.useState(T);let F;e[1]===Symbol.for("react.memo_cache_sentinel")?(F=L=>{M(Ne=>{const We=new Set(Ne);return We.has(L)?We.delete(L):We.add(L),We})},e[1]=F):F=e[1];const v=F;let H;e[2]!==o?(H=L=>at(`${o}/env`,"PUT",{vars:L}),e[2]=o,e[3]=H):H=e[3];let A;e[4]!==l||e[5]!==x||e[6]!==a||e[7]!==n?(A=()=>{x.invalidateQueries({queryKey:Ye.hostingEnv(l,a)}),ce.success(n("mainPanelTabs.hostingTab.toastEnvSaved"))},e[4]=l,e[5]=x,e[6]=a,e[7]=n,e[8]=A):A=e[8];let Q;e[9]!==H||e[10]!==A?(Q={mutationFn:H,onSuccess:A,onError:vn},e[9]=H,e[10]=A,e[11]=Q):Q=e[11];const _=lt(Q);let W;e[12]!==f||e[13]!==N||e[14]!==g||e[15]!==_||e[16]!==i||e[17]!==n?(W=()=>{const L=f.trim();if(!L){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameRequired"));return}if(i.some(Ne=>Lt(Ne,{name:L,scope:N}))){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameDuplicate"));return}_.mutate([...i,{name:L,value:g,scope:N}],{onSuccess:()=>{d(!1),u(""),h(""),C("runtime")}})},e[12]=f,e[13]=N,e[14]=g,e[15]=_,e[16]=i,e[17]=n,e[18]=W):W=e[18];const J=W;let U;e[19]!==y||e[20]!==_||e[21]!==i?(U=L=>{_.mutate(i.map(Ne=>Lt(Ne,L)?{name:L.name,value:y,scope:L.scope}:Ne),{onSuccess:()=>S(null)})},e[19]=y,e[20]=_,e[21]=i,e[22]=U):U=e[22];const p=U;let I;e[23]!==w||e[24]!==_||e[25]!==i?(I=()=>{w&&_.mutate(i.filter(L=>!Lt(L,w)),{onSuccess:()=>j(null)})},e[23]=w,e[24]=_,e[25]=i,e[26]=I):I=e[26];const Y=I,D=_.isPending;let G;e[27]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{u(""),h(""),C("runtime")},e[27]=G):G=e[27];const O=G;let k,E;e[28]===Symbol.for("react.memo_cache_sentinel")?(k=()=>d(!0),E=t.jsx(Pt,{}),e[28]=k,e[29]=E):(k=e[28],E=e[29]);let B;e[30]!==n?(B=n("mainPanelTabs.hostingTab.addVariable"),e[30]=n,e[31]=B):B=e[31];let X;e[32]!==B?(X=t.jsxs(Ue,{size:"sm",variant:"outline",onClick:k,children:[E,B]}),e[32]=B,e[33]=X):X=e[33];const te=X;let K;e[34]!==n?(K=n("mainPanelTabs.hostingTab.env"),e[34]=n,e[35]=K):K=e[35];const ne=i.length>0||c.length>0?te:void 0;let ie;e[36]!==te||e[37]!==c||e[38]!==y||e[39]!==P?.name||e[40]!==P?.scope||e[41]!==i||e[42]!==s||e[43]!==p||e[44]!==m||e[45]!==D||e[46]!==V||e[47]!==n?(ie=m?t.jsx(ht,{}):s?t.jsx(Ie,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.envError")})}):i.length===0&&c.length===0?t.jsx(Ie,{children:t.jsx(Ze,{icon:t.jsx(Yt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noEnv"),className:"py-10",buttonComponent:te})}):t.jsxs(Ie,{children:[i.map(L=>{const Ne=L.scope==="build"?"build":"runtime",We=`${L.name}:${Ne}`,tt=P?.name===L.name&&P?.scope===Ne,st=V.has(We);return t.jsxs(pt,{children:[t.jsxs("div",{className:"flex min-w-0 flex-1 basis-0 items-center gap-2",children:[t.jsx("div",{className:"w-20 shrink-0",children:t.jsx(xs,{scope:Ne})}),t.jsx("span",{className:"truncate font-mono text-xs",children:L.name})]}),t.jsx("div",{className:"flex min-w-0 flex-1 basis-0 items-center justify-end gap-2",children:tt?t.jsxs(t.Fragment,{children:[t.jsx(it,{value:y,onChange:z=>R(z.target.value),onKeyDown:z=>{z.key==="Enter"&&p({name:L.name,scope:Ne}),z.key==="Escape"&&S(null)},autoFocus:!0,className:"h-8 font-mono text-xs"}),t.jsx(Ue,{size:"sm",onClick:()=>p({name:L.name,scope:Ne}),disabled:D,children:n("mainPanelTabs.hostingTab.save")}),t.jsx(Ue,{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(Ms,{}):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 classic:rounded px-1.5 py-0.5 text-right font-mono text-xs text-muted-foreground hover:bg-muted hover:text-foreground compact:rounded-lg",children:L.value||"—"}):t.jsx("span",{className:"min-w-0 truncate px-1.5 py-0.5 text-right font-mono text-xs text-muted-foreground/60",children:L.value?"••••••••••":"—"})]})}),t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteVariable"),onClick:()=>j({name:L.name,scope:Ne}),disabled:D,className:"text-muted-foreground",children:t.jsx(vt,{})})]},We)}),c.length>0&&t.jsxs(Ht,{children:[t.jsx(Vs,{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(ns,{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(Vt,{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]=i,e[42]=s,e[43]=p,e[44]=m,e[45]=D,e[46]=V,e[47]=n,e[48]=ie):ie=e[48];let Pe;e[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=L=>{d(L),L||O()},e[49]=Pe):Pe=e[49];let Ce;e[50]!==n?(Ce=n("mainPanelTabs.hostingTab.addVariable"),e[50]=n,e[51]=Ce):Ce=e[51];let me;e[52]!==Ce?(me=t.jsx(yt,{children:t.jsx(St,{children:Ce})}),e[52]=Ce,e[53]=me):me=e[53];let pe;e[54]!==J?(pe=L=>{L.preventDefault(),J()},e[54]=J,e[55]=pe):pe=e[55];let le;e[56]!==n?(le=n("mainPanelTabs.hostingTab.colName"),e[56]=n,e[57]=le):le=e[57];let ae;e[58]!==le?(ae=t.jsx(Xe,{htmlFor:"env-name",children:le}),e[58]=le,e[59]=ae):ae=e[59];let de;e[60]!==n?(de=n("mainPanelTabs.hostingTab.envNamePlaceholder"),e[60]=n,e[61]=de):de=e[61];let De;e[62]===Symbol.for("react.memo_cache_sentinel")?(De=L=>u(L.target.value),e[62]=De):De=e[62];let fe;e[63]!==f||e[64]!==D||e[65]!==de?(fe=t.jsx(it,{id:"env-name",placeholder:de,value:f,onChange:De,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[63]=f,e[64]=D,e[65]=de,e[66]=fe):fe=e[66];let ue;e[67]!==ae||e[68]!==fe?(ue=t.jsxs("div",{className:"flex flex-col gap-2",children:[ae,fe]}),e[67]=ae,e[68]=fe,e[69]=ue):ue=e[69];let oe;e[70]!==n?(oe=n("mainPanelTabs.hostingTab.colValue"),e[70]=n,e[71]=oe):oe=e[71];let Te;e[72]!==oe?(Te=t.jsx(Xe,{htmlFor:"env-value",children:oe}),e[72]=oe,e[73]=Te):Te=e[73];let he;e[74]!==n?(he=n("mainPanelTabs.hostingTab.envValuePlaceholder"),e[74]=n,e[75]=he):he=e[75];let xe;e[76]===Symbol.for("react.memo_cache_sentinel")?(xe=L=>h(L.target.value),e[76]=xe):xe=e[76];let ve;e[77]!==g||e[78]!==D||e[79]!==he?(ve=t.jsx(it,{id:"env-value",placeholder:he,value:g,onChange:xe,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[77]=g,e[78]=D,e[79]=he,e[80]=ve):ve=e[80];let ye;e[81]!==Te||e[82]!==ve?(ye=t.jsxs("div",{className:"flex flex-col gap-2",children:[Te,ve]}),e[81]=Te,e[82]=ve,e[83]=ye):ye=e[83];let ge;e[84]!==n?(ge=n("mainPanelTabs.hostingTab.secretScope"),e[84]=n,e[85]=ge):ge=e[85];let re;e[86]!==ge?(re=t.jsx(Xe,{children:ge}),e[86]=ge,e[87]=re):re=e[87];let be;e[88]!==N||e[89]!==D?(be=t.jsx(Tn,{value:N,onChange:C,disabled:D,className:"w-full"}),e[88]=N,e[89]=D,e[90]=be):be=e[90];let we;e[91]!==N||e[92]!==n?(we=n(N==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[91]=N,e[92]=n,e[93]=we):we=e[93];let $;e[94]!==we?($=t.jsx("p",{className:"text-xs text-muted-foreground",children:we}),e[94]=we,e[95]=$):$=e[95];let se;e[96]!==re||e[97]!==be||e[98]!==$?(se=t.jsxs("div",{className:"flex flex-col gap-2",children:[re,be,$]}),e[96]=re,e[97]=be,e[98]=$,e[99]=se):se=e[99];let Se;e[100]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>{d(!1),O()},e[100]=Se):Se=e[100];let je;e[101]!==n?(je=n("mainPanelTabs.hostingTab.cancel"),e[101]=n,e[102]=je):je=e[102];let $e;e[103]!==D||e[104]!==je?($e=t.jsx(Ue,{variant:"outline",type:"button",onClick:Se,disabled:D,children:je}),e[103]=D,e[104]=je,e[105]=$e):$e=e[105];let ze;e[106]!==f||e[107]!==D?(ze=D||!f.trim(),e[106]=f,e[107]=D,e[108]=ze):ze=e[108];let Ke;e[109]!==D||e[110]!==n?(Ke=n(D?"mainPanelTabs.hostingTab.saving":"mainPanelTabs.hostingTab.add"),e[109]=D,e[110]=n,e[111]=Ke):Ke=e[111];let Le;e[112]!==ze||e[113]!==Ke?(Le=t.jsx(Ue,{type:"submit",disabled:ze,children:Ke}),e[112]=ze,e[113]=Ke,e[114]=Le):Le=e[114];let _e;e[115]!==$e||e[116]!==Le?(_e=t.jsxs(Nt,{children:[$e,Le]}),e[115]=$e,e[116]=Le,e[117]=_e):_e=e[117];let Be;e[118]!==pe||e[119]!==ue||e[120]!==ye||e[121]!==se||e[122]!==_e?(Be=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:pe,children:[ue,ye,se,_e]}),e[118]=pe,e[119]=ue,e[120]=ye,e[121]=se,e[122]=_e,e[123]=Be):Be=e[123];let Ve;e[124]!==me||e[125]!==Be?(Ve=t.jsxs(Ct,{className:"sm:max-w-md",children:[me,Be]}),e[124]=me,e[125]=Be,e[126]=Ve):Ve=e[126];let ke;e[127]!==b||e[128]!==Ve?(ke=t.jsx(Dt,{open:b,onOpenChange:Pe,children:Ve}),e[127]=b,e[128]=Ve,e[129]=ke):ke=e[129];const Je=w!=null;let He;e[130]===Symbol.for("react.memo_cache_sentinel")?(He=L=>{L||j(null)},e[130]=He):He=e[130];let Ee;e[131]!==n?(Ee=n("mainPanelTabs.hostingTab.confirmDeleteVariableTitle"),e[131]=n,e[132]=Ee):Ee=e[132];const Oe=w?.name??"";let Me;e[133]!==n||e[134]!==Oe?(Me=n("mainPanelTabs.hostingTab.confirmDeleteVariableDescription",{name:Oe}),e[133]=n,e[134]=Oe,e[135]=Me):Me=e[135];let Qe;e[136]!==n?(Qe=n("mainPanelTabs.hostingTab.deleteVariable"),e[136]=n,e[137]=Qe):Qe=e[137];let q;e[138]!==Y||e[139]!==D||e[140]!==Je||e[141]!==Ee||e[142]!==Me||e[143]!==Qe?(q=t.jsx(wt,{open:Je,onOpenChange:He,title:Ee,description:Me,confirmLabel:Qe,pending:D,onConfirm:Y}),e[138]=Y,e[139]=D,e[140]=Je,e[141]=Ee,e[142]=Me,e[143]=Qe,e[144]=q):q=e[144];let Ge;return e[145]!==K||e[146]!==ne||e[147]!==ie||e[148]!==ke||e[149]!==q?(Ge=t.jsxs(ut,{title:K,actions:ne,children:[ie,ke,q]}),e[145]=K,e[146]=ne,e[147]=ie,e[148]=ke,e[149]=q,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=Z.c(6),{type:o}=r,l=Ae(),a=o==="permanent"?"secondary":"outline";let i;e[0]!==l||e[1]!==o?(i=l(o==="permanent"?"mainPanelTabs.hostingTab.permanent":"mainPanelTabs.hostingTab.temporary"),e[0]=l,e[1]=o,e[2]=i):i=e[2];let c;return e[3]!==a||e[4]!==i?(c=t.jsx(Re,{variant:a,children:i}),e[3]=a,e[4]=i,e[5]=c):c=e[5],c}function Sn(r){const e=Z.c(163),{base:o,orgSlug:l,site:a,redirects:i,isLoading:c,error:m}=r,s=Ae(),n=bt(),[x,b]=ee.useState(!1),[d,f]=ee.useState(null),[u,g]=ee.useState(""),[h,N]=ee.useState(""),[C,P]=ee.useState("permanent"),[S,y]=ee.useState(null),[R,w]=ee.useState(null);let j;e[0]!==l||e[1]!==n||e[2]!==a?(j=()=>n.invalidateQueries({queryKey:Ye.hostingRedirects(l,a)}),e[0]=l,e[1]=n,e[2]=a,e[3]=j):j=e[3];const T=j;let V;e[4]!==o?(V=z=>at(`${o}/redirects`,"PUT",z),e[4]=o,e[5]=V):V=e[5];let M;e[6]!==T||e[7]!==s?(M=()=>{T(),ce.success(s("mainPanelTabs.hostingTab.toastRedirectSaved")),b(!1)},e[6]=T,e[7]=s,e[8]=M):M=e[8];let F;e[9]!==V||e[10]!==M?(F={mutationFn:V,onSuccess:M,onError:Cn},e[9]=V,e[10]=M,e[11]=F):F=e[11];const v=lt(F);let H;e[12]!==o?(H=z=>at(`${o}/redirects/${encodeURIComponent(z)}`,"DELETE"),e[12]=o,e[13]=H):H=e[13];let A;e[14]!==T||e[15]!==s?(A=()=>{T(),ce.success(s("mainPanelTabs.hostingTab.toastRedirectDeleted")),y(null)},e[14]=T,e[15]=s,e[16]=A):A=e[16];let Q;e[17]!==H||e[18]!==A?(Q={mutationFn:H,onSuccess:A,onError:Nn},e[17]=H,e[18]=A,e[19]=Q):Q=e[19];const _=lt(Q);let W;e[20]===Symbol.for("react.memo_cache_sentinel")?(W=()=>{f(null),g(""),N(""),P("permanent"),b(!0)},e[20]=W):W=e[20];const J=W;let U;e[21]===Symbol.for("react.memo_cache_sentinel")?(U=z=>{f(z.from),g(z.from),N(z.to),P(z.type==="temporary"?"temporary":"permanent"),b(!0)},e[21]=U):U=e[21];const p=U;let I;e[22]!==u||e[23]!==h||e[24]!==C||e[25]!==v||e[26]!==s?(I=()=>{const z=u.trim(),Tt=h.trim();if(!z||!Tt){ce.error(s("mainPanelTabs.hostingTab.errorRedirectFieldsRequired"));return}v.mutate({from:z,to:Tt,type:C})},e[22]=u,e[23]=h,e[24]=C,e[25]=v,e[26]=s,e[27]=I):I=e[27];const Y=I;let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(Pt,{}),e[28]=D):D=e[28];let G;e[29]!==s?(G=s("mainPanelTabs.hostingTab.addRedirect"),e[29]=s,e[30]=G):G=e[30];let O;e[31]!==G?(O=t.jsxs(Ue,{size:"sm",variant:"outline",onClick:J,children:[D,G]}),e[31]=G,e[32]=O):O=e[32];const k=O;let E;e[33]!==s?(E=s("mainPanelTabs.hostingTab.redirects"),e[33]=s,e[34]=E):E=e[34];const B=i.length>0?k:void 0;let X;e[35]!==k||e[36]!==_.isPending||e[37]!==R||e[38]!==m||e[39]!==c||e[40]!==v.isPending||e[41]!==i||e[42]!==s?(X=c?t.jsx(ht,{}):m?t.jsx(Ie,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.redirectsError")})}):i.length===0?t.jsx(Ie,{children:t.jsx(Ze,{icon:t.jsx(Gt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noRedirects"),className:"py-10",buttonComponent:k})}):t.jsx(Ie,{children:i.map((z,Tt)=>{const Kt=es(z.from),$t=R===z.from;return t.jsxs("div",{children:[t.jsxs(pt,{children:[Kt?t.jsx(Ut,{open:$t,onClick:()=>w($t?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(Is,{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:()=>p(z),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(Ls,{})}),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(hs,{open:$t,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]=i,e[42]=s,e[43]=X):X=e[43];let te;e[44]!==d||e[45]!==s?(te=d!=null?s("mainPanelTabs.hostingTab.editRedirectTitle"):s("mainPanelTabs.hostingTab.addRedirectTitle"),e[44]=d,e[45]=s,e[46]=te):te=e[46];let K;e[47]!==te?(K=t.jsx(yt,{children:t.jsx(St,{children:te})}),e[47]=te,e[48]=K):K=e[48];let ne;e[49]!==Y?(ne=z=>{z.preventDefault(),Y()},e[49]=Y,e[50]=ne):ne=e[50];let ie;e[51]!==s?(ie=s("mainPanelTabs.hostingTab.colFrom"),e[51]=s,e[52]=ie):ie=e[52];let Pe;e[53]!==ie?(Pe=t.jsx(Xe,{htmlFor:"redirect-from",children:ie}),e[53]=ie,e[54]=Pe):Pe=e[54];let Ce;e[55]!==s?(Ce=s("mainPanelTabs.hostingTab.redirectFromPlaceholder"),e[55]=s,e[56]=Ce):Ce=e[56];let me;e[57]===Symbol.for("react.memo_cache_sentinel")?(me=z=>g(z.target.value),e[57]=me):me=e[57];const pe=d!=null||v.isPending;let le;e[58]!==u||e[59]!==Ce||e[60]!==pe?(le=t.jsx(it,{id:"redirect-from",placeholder:Ce,value:u,onChange:me,className:"font-mono text-xs",disabled:pe}),e[58]=u,e[59]=Ce,e[60]=pe,e[61]=le):le=e[61];let ae;e[62]!==Pe||e[63]!==le?(ae=t.jsxs("div",{className:"flex flex-col gap-2",children:[Pe,le]}),e[62]=Pe,e[63]=le,e[64]=ae):ae=e[64];let de;e[65]!==s?(de=s("mainPanelTabs.hostingTab.colTo"),e[65]=s,e[66]=de):de=e[66];let De;e[67]!==de?(De=t.jsx(Xe,{htmlFor:"redirect-to",children:de}),e[67]=de,e[68]=De):De=e[68];let fe;e[69]!==s?(fe=s("mainPanelTabs.hostingTab.redirectToPlaceholder"),e[69]=s,e[70]=fe):fe=e[70];let ue;e[71]===Symbol.for("react.memo_cache_sentinel")?(ue=z=>N(z.target.value),e[71]=ue):ue=e[71];let oe;e[72]!==h||e[73]!==v.isPending||e[74]!==fe?(oe=t.jsx(it,{id:"redirect-to",placeholder:fe,value:h,onChange:ue,className:"font-mono text-xs",disabled:v.isPending}),e[72]=h,e[73]=v.isPending,e[74]=fe,e[75]=oe):oe=e[75];let Te;e[76]!==De||e[77]!==oe?(Te=t.jsxs("div",{className:"flex flex-col gap-2",children:[De,oe]}),e[76]=De,e[77]=oe,e[78]=Te):Te=e[78];let he;e[79]!==s?(he=s("mainPanelTabs.hostingTab.colType"),e[79]=s,e[80]=he):he=e[80];let xe;e[81]!==he?(xe=t.jsx(Xe,{children:he}),e[81]=he,e[82]=xe):xe=e[82];let ve;e[83]===Symbol.for("react.memo_cache_sentinel")?(ve=z=>P(z==="temporary"?"temporary":"permanent"),e[83]=ve):ve=e[83];const ye=v.isPending;let ge;e[84]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx(Ot,{className:"w-full",children:t.jsx(Bt,{})}),e[84]=ge):ge=e[84];let re;e[85]!==s?(re=s("mainPanelTabs.hostingTab.permanent"),e[85]=s,e[86]=re):re=e[86];let be;e[87]!==re?(be=t.jsx(ft,{value:"permanent",children:re}),e[87]=re,e[88]=be):be=e[88];let we;e[89]!==s?(we=s("mainPanelTabs.hostingTab.temporary"),e[89]=s,e[90]=we):we=e[90];let $;e[91]!==we?($=t.jsx(ft,{value:"temporary",children:we}),e[91]=we,e[92]=$):$=e[92];let se;e[93]!==be||e[94]!==$?(se=t.jsxs(Mt,{children:[be,$]}),e[93]=be,e[94]=$,e[95]=se):se=e[95];let Se;e[96]!==C||e[97]!==v.isPending||e[98]!==se?(Se=t.jsxs(qt,{value:C,onValueChange:ve,disabled:ye,children:[ge,se]}),e[96]=C,e[97]=v.isPending,e[98]=se,e[99]=Se):Se=e[99];let je;e[100]!==xe||e[101]!==Se?(je=t.jsxs("div",{className:"flex flex-col gap-2",children:[xe,Se]}),e[100]=xe,e[101]=Se,e[102]=je):je=e[102];let $e;e[103]!==d||e[104]!==u||e[105]!==i?($e=es(u)&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ts,{from:u,source:i.find(z=>z.from===d)?.source})}),e[103]=d,e[104]=u,e[105]=i,e[106]=$e):$e=e[106];let ze;e[107]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>b(!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(Ue,{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]!==h||e[115]!==v.isPending?(Be=v.isPending||!u.trim()||!h.trim(),e[113]=u,e[114]=h,e[115]=v.isPending,e[116]=Be):Be=e[116];let Ve;e[117]!==v.isPending||e[118]!==s?(Ve=v.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.save"),e[117]=v.isPending,e[118]=s,e[119]=Ve):Ve=e[119];let ke;e[120]!==Be||e[121]!==Ve?(ke=t.jsx(Ue,{type:"submit",disabled:Be,children:Ve}),e[120]=Be,e[121]=Ve,e[122]=ke):ke=e[122];let Je;e[123]!==_e||e[124]!==ke?(Je=t.jsxs(Nt,{children:[_e,ke]}),e[123]=_e,e[124]=ke,e[125]=Je):Je=e[125];let He;e[126]!==ne||e[127]!==ae||e[128]!==Te||e[129]!==je||e[130]!==$e||e[131]!==Je?(He=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:ne,children:[ae,Te,je,$e,Je]}),e[126]=ne,e[127]=ae,e[128]=Te,e[129]=je,e[130]=$e,e[131]=Je,e[132]=He):He=e[132];let Ee;e[133]!==K||e[134]!==He?(Ee=t.jsxs(Ct,{className:"sm:max-w-md",children:[K,He]}),e[133]=K,e[134]=He,e[135]=Ee):Ee=e[135];let Oe;e[136]!==x||e[137]!==Ee?(Oe=t.jsx(Dt,{open:x,onOpenChange:b,children:Ee}),e[136]=x,e[137]=Ee,e[138]=Oe):Oe=e[138];const Me=S!=null;let Qe;e[139]===Symbol.for("react.memo_cache_sentinel")?(Qe=z=>{z||y(null)},e[139]=Qe):Qe=e[139];let q;e[140]!==s?(q=s("mainPanelTabs.hostingTab.confirmDeleteRedirectTitle"),e[140]=s,e[141]=q):q=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]!==Me||e[152]!==q||e[153]!==L||e[154]!==Ne||e[155]!==We?(tt=t.jsx(wt,{open:Me,onOpenChange:Qe,title:q,description:L,confirmLabel:Ne,pending:_.isPending,onConfirm:We}),e[150]=_.isPending,e[151]=Me,e[152]=q,e[153]=L,e[154]=Ne,e[155]=We,e[156]=tt):tt=e[156];let st;return e[157]!==E||e[158]!==B||e[159]!==X||e[160]!==Oe||e[161]!==tt?(st=t.jsxs(ut,{title:E,actions:B,children:[X,Oe,tt]}),e[157]=E,e[158]=B,e[159]=X,e[160]=Oe,e[161]=tt,e[162]=st):st=e[162],st}function Nn(r){return ce.error(rt(r))}function Cn(r){return ce.error(rt(r))}function Dn(r){const e=Z.c(160),{base:o,orgSlug:l,site:a,secrets:i,isLoading:c,error:m}=r,s=Ae(),n=bt(),[x,b]=ee.useState(!1),[d,f]=ee.useState(""),[u,g]=ee.useState(""),[h,N]=ee.useState("runtime"),[C,P]=ee.useState(null);let S;e[0]!==l||e[1]!==n||e[2]!==a?(S=()=>n.invalidateQueries({queryKey:Ye.hostingSecrets(l,a)}),e[0]=l,e[1]=n,e[2]=a,e[3]=S):S=e[3];const y=S;let R;e[4]!==o?(R=q=>at(`${o}/secrets`,"PUT",q),e[4]=o,e[5]=R):R=e[5];let w;e[6]!==y||e[7]!==s?(w=()=>{y(),ce.success(s("mainPanelTabs.hostingTab.toastSecretSaved")),b(!1),f(""),g(""),N("runtime")},e[6]=y,e[7]=s,e[8]=w):w=e[8];let j;e[9]!==R||e[10]!==w?(j={mutationFn:R,onSuccess:w,onError:$n},e[9]=R,e[10]=w,e[11]=j):j=e[11];const T=lt(j);let V;e[12]!==o?(V=q=>at(`${o}/secrets/${encodeURIComponent(q.name)}?scope=${q.scope}`,"DELETE"),e[12]=o,e[13]=V):V=e[13];let M;e[14]!==y||e[15]!==s?(M=()=>{y(),ce.success(s("mainPanelTabs.hostingTab.toastSecretDeleted")),P(null)},e[14]=y,e[15]=s,e[16]=M):M=e[16];let F;e[17]!==V||e[18]!==M?(F={mutationFn:V,onSuccess:M,onError:wn},e[17]=V,e[18]=M,e[19]=F):F=e[19];const v=lt(F);let H;e[20]!==d||e[21]!==h||e[22]!==u||e[23]!==T||e[24]!==s?(H=()=>{const q=d.trim();if(!q){ce.error(s("mainPanelTabs.hostingTab.errorSecretNameRequired"));return}if(!u){ce.error(s("mainPanelTabs.hostingTab.errorSecretValueRequired"));return}T.mutate({name:q,value:u,scope:h})},e[20]=d,e[21]=h,e[22]=u,e[23]=T,e[24]=s,e[25]=H):H=e[25];const A=H;let Q,_;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=()=>b(!0),Q=t.jsx(Pt,{}),e[26]=Q,e[27]=_):(Q=e[26],_=e[27]);let W;e[28]!==s?(W=s("mainPanelTabs.hostingTab.addSecret"),e[28]=s,e[29]=W):W=e[29];let J;e[30]!==W?(J=t.jsxs(Ue,{size:"sm",variant:"outline",onClick:_,children:[Q,W]}),e[30]=W,e[31]=J):J=e[31];const U=J;let p;e[32]!==s?(p=s("mainPanelTabs.hostingTab.secrets"),e[32]=s,e[33]=p):p=e[33];const I=i.length>0?U:void 0;let Y;e[34]!==U||e[35]!==v.isPending||e[36]!==m||e[37]!==c||e[38]!==i||e[39]!==s?(Y=c?t.jsx(ht,{}):m?t.jsx(Ie,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.secretsError")})}):i.length===0?t.jsx(Ie,{children:t.jsx(Ze,{icon:t.jsx(Wt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noSecrets"),className:"py-10",buttonComponent:U})}):t.jsx(Ie,{children:i.map(q=>{const Ge=q.scope==="build"?"build":"runtime";return t.jsxs(pt,{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(xs,{scope:Ge})}),t.jsx("span",{className:"truncate font-mono text-xs",children:q.name}),q.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:q.name,scope:Ge}),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]},`${q.name}:${Ge}`)})}),e[34]=U,e[35]=v.isPending,e[36]=m,e[37]=c,e[38]=i,e[39]=s,e[40]=Y):Y=e[40];let D;e[41]!==s?(D=s("mainPanelTabs.hostingTab.addSecretTitle"),e[41]=s,e[42]=D):D=e[42];let G;e[43]!==D?(G=t.jsx(yt,{children:t.jsx(St,{children:D})}),e[43]=D,e[44]=G):G=e[44];let O;e[45]!==A?(O=q=>{q.preventDefault(),A()},e[45]=A,e[46]=O):O=e[46];let k;e[47]!==s?(k=s("mainPanelTabs.hostingTab.colName"),e[47]=s,e[48]=k):k=e[48];let E;e[49]!==k?(E=t.jsx(Xe,{htmlFor:"secret-name",children:k}),e[49]=k,e[50]=E):E=e[50];let B;e[51]!==s?(B=s("mainPanelTabs.hostingTab.secretNamePlaceholder"),e[51]=s,e[52]=B):B=e[52];let X;e[53]===Symbol.for("react.memo_cache_sentinel")?(X=q=>f(q.target.value),e[53]=X):X=e[53];let te;e[54]!==d||e[55]!==T.isPending||e[56]!==B?(te=t.jsx(it,{id:"secret-name",placeholder:B,value:d,onChange:X,className:"font-mono text-xs",autoComplete:"off",disabled:T.isPending}),e[54]=d,e[55]=T.isPending,e[56]=B,e[57]=te):te=e[57];let K;e[58]!==E||e[59]!==te?(K=t.jsxs("div",{className:"flex flex-col gap-2",children:[E,te]}),e[58]=E,e[59]=te,e[60]=K):K=e[60];let ne;e[61]!==s?(ne=s("mainPanelTabs.hostingTab.colValue"),e[61]=s,e[62]=ne):ne=e[62];let ie;e[63]!==ne?(ie=t.jsx(Xe,{htmlFor:"secret-value",children:ne}),e[63]=ne,e[64]=ie):ie=e[64];let Pe;e[65]!==s?(Pe=s("mainPanelTabs.hostingTab.secretValuePlaceholder"),e[65]=s,e[66]=Pe):Pe=e[66];let Ce;e[67]===Symbol.for("react.memo_cache_sentinel")?(Ce=q=>g(q.target.value),e[67]=Ce):Ce=e[67];let me;e[68]!==u||e[69]!==T.isPending||e[70]!==Pe?(me=t.jsx(it,{id:"secret-value",type:"password",placeholder:Pe,value:u,onChange:Ce,className:"font-mono text-xs",autoComplete:"new-password",disabled:T.isPending}),e[68]=u,e[69]=T.isPending,e[70]=Pe,e[71]=me):me=e[71];let pe;e[72]!==ie||e[73]!==me?(pe=t.jsxs("div",{className:"flex flex-col gap-2",children:[ie,me]}),e[72]=ie,e[73]=me,e[74]=pe):pe=e[74];let le;e[75]!==s?(le=s("mainPanelTabs.hostingTab.secretScope"),e[75]=s,e[76]=le):le=e[76];let ae;e[77]!==le?(ae=t.jsx(Xe,{children:le}),e[77]=le,e[78]=ae):ae=e[78];let de;e[79]===Symbol.for("react.memo_cache_sentinel")?(de=q=>N(q==="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(Mt,{children:[oe,he]}),e[89]=oe,e[90]=he,e[91]=xe):xe=e[91];let ve;e[92]!==h||e[93]!==T.isPending||e[94]!==xe?(ve=t.jsxs(qt,{value:h,onValueChange:de,disabled:De,children:[fe,xe]}),e[92]=h,e[93]=T.isPending,e[94]=xe,e[95]=ve):ve=e[95];let ye;e[96]!==h||e[97]!==s?(ye=s(h==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[96]=h,e[97]=s,e[98]=ye):ye=e[98];let ge;e[99]!==ye?(ge=t.jsx("p",{className:"text-xs text-muted-foreground",children:ye}),e[99]=ye,e[100]=ge):ge=e[100];let re;e[101]!==ae||e[102]!==ve||e[103]!==ge?(re=t.jsxs("div",{className:"flex flex-col gap-2",children:[ae,ve,ge]}),e[101]=ae,e[102]=ve,e[103]=ge,e[104]=re):re=e[104];let be;e[105]===Symbol.for("react.memo_cache_sentinel")?(be=()=>b(!1),e[105]=be):be=e[105];const we=T.isPending;let $;e[106]!==s?($=s("mainPanelTabs.hostingTab.cancel"),e[106]=s,e[107]=$):$=e[107];let se;e[108]!==T.isPending||e[109]!==$?(se=t.jsx(Ue,{variant:"outline",type:"button",onClick:be,disabled:we,children:$}),e[108]=T.isPending,e[109]=$,e[110]=se):se=e[110];let Se;e[111]!==d||e[112]!==u||e[113]!==T.isPending?(Se=T.isPending||!d.trim()||!u,e[111]=d,e[112]=u,e[113]=T.isPending,e[114]=Se):Se=e[114];let je;e[115]!==T.isPending||e[116]!==s?(je=T.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.add"),e[115]=T.isPending,e[116]=s,e[117]=je):je=e[117];let $e;e[118]!==Se||e[119]!==je?($e=t.jsx(Ue,{type:"submit",disabled:Se,children:je}),e[118]=Se,e[119]=je,e[120]=$e):$e=e[120];let ze;e[121]!==se||e[122]!==$e?(ze=t.jsxs(Nt,{children:[se,$e]}),e[121]=se,e[122]=$e,e[123]=ze):ze=e[123];let Ke;e[124]!==O||e[125]!==K||e[126]!==pe||e[127]!==re||e[128]!==ze?(Ke=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:O,children:[K,pe,re,ze]}),e[124]=O,e[125]=K,e[126]=pe,e[127]=re,e[128]=ze,e[129]=Ke):Ke=e[129];let Le;e[130]!==G||e[131]!==Ke?(Le=t.jsxs(Ct,{className:"sm:max-w-md",children:[G,Ke]}),e[130]=G,e[131]=Ke,e[132]=Le):Le=e[132];let _e;e[133]!==x||e[134]!==Le?(_e=t.jsx(Dt,{open:x,onOpenChange:b,children:Le}),e[133]=x,e[134]=Le,e[135]=_e):_e=e[135];const Be=C!=null;let Ve;e[136]===Symbol.for("react.memo_cache_sentinel")?(Ve=q=>{q||P(null)},e[136]=Ve):Ve=e[136];let ke;e[137]!==s?(ke=s("mainPanelTabs.hostingTab.confirmDeleteSecretTitle"),e[137]=s,e[138]=ke):ke=e[138];const Je=C?.name??"";let He;e[139]!==s||e[140]!==Je?(He=s("mainPanelTabs.hostingTab.confirmDeleteSecretDescription",{name:Je}),e[139]=s,e[140]=Je,e[141]=He):He=e[141];let Ee;e[142]!==s?(Ee=s("mainPanelTabs.hostingTab.deleteSecret"),e[142]=s,e[143]=Ee):Ee=e[143];let Oe;e[144]!==v||e[145]!==C?(Oe=()=>{C&&v.mutate(C)},e[144]=v,e[145]=C,e[146]=Oe):Oe=e[146];let Me;e[147]!==v.isPending||e[148]!==Be||e[149]!==ke||e[150]!==He||e[151]!==Ee||e[152]!==Oe?(Me=t.jsx(wt,{open:Be,onOpenChange:Ve,title:ke,description:He,confirmLabel:Ee,pending:v.isPending,onConfirm:Oe}),e[147]=v.isPending,e[148]=Be,e[149]=ke,e[150]=He,e[151]=Ee,e[152]=Oe,e[153]=Me):Me=e[153];let Qe;return e[154]!==p||e[155]!==I||e[156]!==Y||e[157]!==_e||e[158]!==Me?(Qe=t.jsxs(ut,{title:p,actions:I,children:[Y,_e,Me]}),e[154]=p,e[155]=I,e[156]=Y,e[157]=_e,e[158]=Me,e[159]=Qe):Qe=e[159],Qe}function wn(r){return ce.error(rt(r))}function $n(r){return ce.error(rt(r))}const Ln=3e4;function _n(r){const e=Z.c(111),{virtualMcpId:o}=r,l=Ae(),{org:a}=js(),i=ys(o),c=Ss(i),m=!!c,s=c?`/api/${a.slug}/hosting/${encodeURIComponent(c)}`:"";let n;e[0]!==s||e[1]!==m?(n=(O,k)=>({queryKey:O,queryFn:()=>Qt(`${s}${k}`),enabled:m,retry:!1,staleTime:Ln}),e[0]=s,e[1]=m,e[2]=n):n=e[2];const x=n,b=c??"",d=ct(x(Ye.hostingDeployments(a.slug,b),"/deployments")),f=ct(x(Ye.hostingEnv(a.slug,b),"/env")),u=ct(x(Ye.hostingSecrets(a.slug,b),"/secrets")),g=ct(x(Ye.hostingRedirects(a.slug,b),"/redirects")),h=ct(x(Ye.hostingDomains(a.slug,b),"/domains"));if(!c){let O;e[3]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(_t,{className:"size-5"}),e[3]=O):O=e[3];let k;e[4]!==l?(k=l("mainPanelTabs.hostingTab.noSiteTitle"),e[4]=l,e[5]=k):k=e[5];let E;e[6]!==l?(E=l("mainPanelTabs.hostingTab.noSiteDescription"),e[6]=l,e[7]=E):E=e[7];let B;return e[8]!==k||e[9]!==E?(B=t.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:t.jsx(Ze,{icon:O,title:k,description:E})}),e[8]=k,e[9]=E,e[10]=B):B=e[10],B}if(jt(d.error)&&jt(f.error)&&jt(g.error)){let O;e[11]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(_t,{className:"size-5"}),e[11]=O):O=e[11];let k;e[12]!==l?(k=l("mainPanelTabs.hostingTab.notConnectedTitle"),e[12]=l,e[13]=k):k=e[13];let E;e[14]!==l?(E=l("mainPanelTabs.hostingTab.notConnectedDescription"),e[14]=l,e[15]=E):E=e[15];let B;return e[16]!==k||e[17]!==E?(B=t.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:t.jsx(Ze,{icon:O,title:k,description:E})}),e[16]=k,e[17]=E,e[18]=B):B=e[18],B}let C,P,S,y,R,w,j,T,V,M;if(e[19]!==d.data||e[20]!==h.data||e[21]!==f.data||e[22]!==g.data||e[23]!==u.data){P=mt(d.data,"items");let O;e[34]!==f.data?(O=mt(f.data,"vars"),e[34]=f.data,e[35]=O):O=e[35],R=O;let k;e[36]!==f.data?(k=mt(f.data,"codeVars"),e[36]=f.data,e[37]=k):k=e[37],C=k;let E;e[38]!==u.data?(E=mt(u.data,"secrets"),e[38]=u.data,e[39]=E):E=e[39],V=E;let B;e[40]!==g.data?(B=mt(g.data,"items"),e[40]=g.data,e[41]=B):B=e[41],T=B;const X=h.data;let te;e[42]!==X?.items?(te=X?.items??[],e[42]=X?.items,e[43]=te):te=e[43],y=te;let K;e[44]!==X?.dnsTemplate?(K=X?.dnsTemplate??[],e[44]=X?.dnsTemplate,e[45]=K):K=e[45],S=K;const ne=P.find(En);w=zt((ne??P.find(kn))?.framework),j=ne?.servingUrl??null,M=j?j.replace(/^https?:\/\//,"").replace(/\/$/,""):null,e[19]=d.data,e[20]=h.data,e[21]=f.data,e[22]=g.data,e[23]=u.data,e[24]=C,e[25]=P,e[26]=S,e[27]=y,e[28]=R,e[29]=w,e[30]=j,e[31]=T,e[32]=V,e[33]=M}else C=e[24],P=e[25],S=e[26],y=e[27],R=e[28],w=e[29],j=e[30],T=e[31],V=e[32],M=e[33];const F=M;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 H;e[50]!==l?(H=l("mainPanelTabs.hostingTab.title"),e[50]=l,e[51]=H):H=e[51];let A;e[52]!==w?(A=w&&t.jsx(Re,{variant:"secondary",children:w}),e[52]=w,e[53]=A):A=e[53];let Q;e[54]!==H||e[55]!==A?(Q=t.jsxs("span",{className:"inline-flex items-center gap-2.5",children:[H,A]}),e[54]=H,e[55]=A,e[56]=Q):Q=e[56];let _;e[57]!==v||e[58]!==Q?(_=t.jsx(Jt.Title,{actions:v,children:Q}),e[57]=v,e[58]=Q,e[59]=_):_=e[59];let W;e[60]!==F||e[61]!==j?(W=j&&F&&t.jsx("p",{className:"flex flex-wrap items-center gap-x-1.5 text-sm text-muted-foreground",children:t.jsxs("a",{href:j,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 font-mono text-xs text-foreground hover:underline",children:[F,t.jsx(kt,{className:"size-3"})]})}),e[60]=F,e[61]=j,e[62]=W):W=e[62];let J;e[63]!==_||e[64]!==W?(J=t.jsxs("div",{className:"flex flex-col gap-2",children:[_,W]}),e[63]=_,e[64]=W,e[65]=J):J=e[65];let U;e[66]!==s||e[67]!==P||e[68]!==d.error||e[69]!==d.isLoading||e[70]!==m||e[71]!==a.slug||e[72]!==c?(U=t.jsx(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]=U):U=e[73];let p;e[74]!==s||e[75]!==C||e[76]!==f.error||e[77]!==f.isLoading||e[78]!==R||e[79]!==a.slug||e[80]!==c?(p=t.jsx(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]=p):p=e[81];let I;e[82]!==s||e[83]!==a.slug||e[84]!==V||e[85]!==u.error||e[86]!==u.isLoading||e[87]!==c?(I=t.jsx(Dn,{base:s,orgSlug:a.slug,site:c,secrets:V,isLoading:u.isLoading,error:u.error}),e[82]=s,e[83]=a.slug,e[84]=V,e[85]=u.error,e[86]=u.isLoading,e[87]=c,e[88]=I):I=e[88];let Y;e[89]!==s||e[90]!==S||e[91]!==y||e[92]!==h.error||e[93]!==h.isLoading||e[94]!==a.slug||e[95]!==c?(Y=t.jsx(gn,{base:s,orgSlug:a.slug,site:c,domains:y,dnsTemplate:S,isLoading:h.isLoading,error:h.error}),e[89]=s,e[90]=S,e[91]=y,e[92]=h.error,e[93]=h.isLoading,e[94]=a.slug,e[95]=c,e[96]=Y):Y=e[96];let D;e[97]!==s||e[98]!==a.slug||e[99]!==T||e[100]!==g.error||e[101]!==g.isLoading||e[102]!==c?(D=t.jsx(Sn,{base:s,orgSlug:a.slug,site:c,redirects:T,isLoading:g.isLoading,error:g.error}),e[97]=s,e[98]=a.slug,e[99]=T,e[100]=g.error,e[101]=g.isLoading,e[102]=c,e[103]=D):D=e[103];let G;return e[104]!==U||e[105]!==p||e[106]!==I||e[107]!==Y||e[108]!==D||e[109]!==J?(G=t.jsx("div",{className:"h-full min-h-0 overflow-y-auto",children:t.jsx(Jt.Container,{width:"standard",children:t.jsxs(Ps,{children:[J,U,p,I,Y,D]})})}),e[104]=U,e[105]=p,e[106]=I,e[107]=Y,e[108]=D,e[109]=J,e[110]=G):G=e[110],G}function kn(r){return r.framework}function En(r){return r.up===!0}function Rn(){const r=Z.c(3),e=Ks(),o=Us();let l;return r[0]!==o.hosting||r[1]!==e?(l=o.hosting?t.jsx(_n,{virtualMcpId:e}):t.jsx(Qs,{virtualMcpId:e}),r[0]=o.hosting,r[1]=e,r[2]=l):l=r[2],l}function Ta(){const r=Z.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(vs.Content,{children:t.jsx(Rn,{})}),r[0]=e):e=r[0],e}export{Ta as default};
1
+ import{c as Z,j as t,l as xt,b as Ae,aR as dt,eM as ps,am as ns,dY as Ts,t as ce,o as bt,r as ee,e as lt,B as Ue,m as ct,K as Ye,ac as _t,R as Wt,a0 as js,n as Jt,e$ as Ps}from"./index-Bv8ovZX7.js";import{C as vs}from"./index-DGESUJrE.js";import{n as kt}from"./LinkExternal01-CxPBcUve.js";import{B as Re}from"./badge-BnOb-zsy.js";import{E as Ze}from"./empty-state-BtpZBU4x.js";import{a as ys}from"./use-virtual-mcp-DyTrBBn7.js";import{r as Ss}from"./site-slug-uya6Wp4-.js";import{i as Ns}from"./AlertCircle-DwYUjJBu.js";import{bb as Cs,bc as is,L as Ds,bd as ws,be as $s,aF as Yt,M as Gt,bf as Ls}from"./agent-icon-v-YF8SZ6.js";import{e as gt}from"./UserSquare-B_QuMjVL.js";import{i as _s}from"./Zap-D3U8XJRb.js";import{A as ls,a as as,b as os,c as rs,g as cs,d as ms,e as ds,f as fs}from"./alert-dialog-5zuyoQ54.js";import{I as et}from"./icon-button-rGUjPiBO.js";import{S as ks,c as Es,a as Rs,b as Fs}from"./sheet-ncGbwo3c.js";import{T as As,b as nt,c as Fe,e as Et,a as Rt,d as Ft}from"./table-CqSUYS4O.js";import{a as zs}from"./Copy01-DY06zeXh.js";import{a as Vt,b as Ht,C as Vs}from"./collapsible-BSf9Onia.js";import{i as At}from"./Share07-BqFFQNeK.js";import{s as Pt}from"./Plus-DJAmbMrJ.js";import{s as vt}from"./Trash01-CSeT8ZD8.js";import{c as yt,d as St,e as Nt,b as Ct,D as Dt}from"./dialog-aNfvq0Gx.js";import{I as it}from"./input-D7VKtVHV.js";import{L as Xe}from"./label-BAb2clBH.js";import{T as Hs,a as Bs,c as Os}from"./tooltip-452rT2Av.js";import{e as Ms}from"./Tool01-BNu7BHqQ.js";import{s as qs}from"./Eye-BCLEOXNL.js";import{a as Bt,b as Ot,c as ft,d as Mt,S as qt}from"./select-B_9gxhnf.js";import{i as Is}from"./ArrowRight-DYu8UyAE.js";import{S as Qs}from"./settings-tab-CSmq_TZm.js";import{b as Us}from"./use-organization-settings-BXDoAx1p.js";import{b as Ks}from"./thread-route-CX0quyn9.js";import"./use-mobile-CbgvL5x6.js";import"./thread-button-CU8FEc0x.js";import"./sidebar-DMorNI5B.js";import"./LayoutLeft-Bis2ERIL.js";import"./use-panel-navigate-CeERwAhY.js";import"./use-project-scope-CdX2mBNC.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-BW9UadGk.js";import"./hooks-BHo3iW8o.js";import"./use-mcp-client-8W4pv2iG.js";import"./auth-Bdfh9TTN.js";import"./backoff-8mStPHYB.js";import"./task-board-CSfWLhg4.js";import"./schema-CMlylut3.js";import"./toolbar-icon-button-CL9TUqhr.js";import"./use-in-settings-DMlBXVsJ.js";import"./shell-layout-Cn2XiFfO.js";import"./avatar-CAxICn2w.js";import"./User01-D0NPPWmZ.js";import"./Globe04-C9YOUwUx.js";import"./SearchLg-0M2kccVO.js";import"./XClose-DjadAVCX.js";import"./download-app-dialog-jqsRuRCN.js";import"./Check-BgzQchyA.js";import"./Download01-BsnTCWqr.js";import"./CheckCircle-DxLYuezp.js";import"./Monitor01-DypnteF9.js";import"./command-0Q71adD5.js";import"./index-CMM8OiJN.js";import"./SearchMd-BT8cdzsW.js";import"./integration-icon-_QdW_HEl.js";import"./project-icon-K8IkvwTu.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-5gvCMtcO.js";import"./autosend-D8pg19Rh.js";import"./use-org-sso-Od2nvWUP.js";import"./resizable-B57Znxf0.js";import"./route-page-header-CsPi4GMO.js";import"./ArrowUp-Bgr2TLsm.js";import"./ArrowLeft-BrzmATFY.js";import"./XCircle-Ds0Log1_.js";import"./ZoomOut-DsH_k1C4.js";import"./ChevronUp-CEt2-KWf.js";import"./CreditCard01-atzqozkq.js";import"./DotsVertical-DY1WVLqG.js";import"./Image01-Dnl26WcB.js";import"./Key01-CwoMWwVQ.js";import"./Link01-1Ii-ZBB1.js";import"./Sun-qCW4hQHf.js";import"./Package-DLofDsnv.js";import"./Palette-DZw1jmn0.js";import"./Stars01-BFm8fGnC.js";import"./Upload01-GlJ5Ud3s.js";import"./Users01-K81i8krS.js";import"./X-ClBxN2Lo.js";import"./index-CW3mvbP-.js";import"./popover-n4tdwfg1.js";import"./scroll-area-t3NukeQO.js";import"./breadcrumb-CkGzv7W5.js";import"./extract-connection-data-B9DyPVU-.js";import"./metadata-D72DunRR.js";import"./connection-BwlYp_98.js";import"./chat-context-ZGS-0Lc6.js";import"./thread-intent-Bl6xIfFf.js";import"./slugify-CEUa2lfQ.js";import"./use-entitlements-BTK1TiYJ.js";import"./use-ai-providers-BfBmzjxk.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-E0BM35TR.js";import"./build-improve-prompt-doc-BUDaGIGD.js";import"./empty-state-Bryk1SHf.js";import"./use-date-fns-locale-4nMtSnpk.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-connection-DZHmMxeG.js";import"./mcp-oauth-D7EnzUg3.js";import"./textarea-Bs1krskq.js";import"./use-debounced-autosave-Dabnhryq.js";import"./add-connection-dialog-BKL_hKkk.js";import"./collection-search-DUPEyodi.js";import"./connection-card-BwH4OiUh.js";import"./useInfiniteQuery-COua6s42.js";import"./infiniteQueryObserver-CLmBPvOC.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-DSLgUl8S.js";import"./form-BvSGycPj.js";import"./connection-form-helpers-DukXidKL.js";import"./authenticate-and-persist-oauth-DKS7LloY.js";import"./collection-tabs-DltvKsB7.js";import"./use-infinite-scroll-Be1BN8YX.js";import"./useSuspenseInfiniteQuery-6311fHu0.js";import"./file-type-icon-BYgiZIDa.js";import"./use-org-fs-DlHKBaPi.js";import"./checkbox-8e5Ux6Bp.js";import"./search-input-B3K0cIXk.js";import"./use-mcp-auth-status-DZc1kZiD.js";import"./types-CKACT3re.js";import"./use-mcp-tools-CWjm4_qp.js";import"./use-mcp-prompts-EP5VAc7p.js";import"./utils-CVEq3hMx.js";import"./switch-B8V9Ox46.js";import"./use-project-native-view-presence-0O5UQcYW.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-file-configs-BX41631Z.js";import"./optimistic-project-sidebar-views-CIgk0pPq.js";import"./virtual-mcp-BYf8h9T-.js";import"./repository-import-picker-CRs10CPh.js";import"./use-navigate-to-agent-CnwjWuW_.js";import"./repository-picker-CZ9LQZYf.js";import"./github-icon-BP92s-aj.js";import"./use-debounced-value-D4IIgvZ6.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-BvIcwT9-.js";import"./use-secrets-CfE-SREF.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),l=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),a=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[i,c]of a)if(Math.abs(o)>=c)return l.format(-Math.round(o/c),i);return l.format(-o,"second")}function 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 l=(e.endsWith(".")?e.slice(0,-1):e).split(".");if(l.length<2)return"Domain must include a TLD (e.g., example.com)";if(e.length>253)return"Domain name is too long (max 253 characters)";for(const i of l){if(i.length>63)return`Label "${i}" is too long (max 63 characters)`;if(!/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/i.test(i))return`Label "${i}" has invalid characters or format`}const a=l[l.length-1]??"";return/^[0-9]+$/.test(a)?"Domain must include a valid TLD, not a number":null}function us(r,e){return r&&typeof r=="object"&&"error"in r?String(r.error):`request failed (${e})`}async function Qt(r){const e=await fetch(r),o=await e.json().catch(()=>({}));if(!e.ok)throw new It(us(o,e.status),e.status);return o}async function at(r,e,o){const l=await fetch(r,{method:e,headers:o!==void 0?{"Content-Type":"application/json"}:{},body:o!==void 0?JSON.stringify(o):void 0}),a=await l.json().catch(()=>({}));if(!l.ok)throw new It(us(a,l.status),l.status);return a}function ut(r){const e=Z.c(4),{title:o,actions:l,children:a}=r;let i;return e[0]!==l||e[1]!==a||e[2]!==o?(i=t.jsx(Ts,{title:o,actions:l,children:a}),e[0]=l,e[1]=a,e[2]=o,e[3]=i):i=e[3],i}function Ie(r){const e=Z.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("gap-0 overflow-hidden p-0 divide-y divide-border",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx(ps,{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function pt(r){const e=Z.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("flex min-h-12 items-center gap-3 px-4 py-2",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx("div",{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function ot(r){const e=Z.c(2),{children:o}=r;let l;return e[0]!==o?(l=t.jsx("p",{className:"px-4 py-6 text-sm text-muted-foreground",children:o}),e[0]=o,e[1]=l):l=e[1],l}function ht(r){const e=Z.c(2),{rows:o}=r,l=o===void 0?3:o;let a;return e[0]!==l?(a=t.jsx(Ie,{children:Array.from({length:l},Gs)}),e[0]=l,e[1]=a):a=e[1],a}function Gs(r,e){return t.jsxs(pt,{children:[t.jsx(dt,{className:"h-4 w-40"}),t.jsx(dt,{className:"h-4 flex-1"}),t.jsx(dt,{className:"size-7 rounded-lg"})]},e)}function qe(r){const e=Z.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("text-xs font-medium text-muted-foreground",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx(As,{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function Ut(r){const e=Z.c(12),{open:o,onClick:l}=r,a=Ae();let i;e[0]!==o||e[1]!==a?(i=a(o?"mainPanelTabs.hostingTab.hideDetails":"mainPanelTabs.hostingTab.showDetails"),e[0]=o,e[1]=a,e[2]=i):i=e[2];const c=o&&"rotate-90";let m;e[3]!==c?(m=xt("transition-transform duration-200 motion-reduce:transition-none",c),e[3]=c,e[4]=m):m=e[4];let s;e[5]!==m?(s=t.jsx(ns,{className:m}),e[5]=m,e[6]=s):s=e[6];let n;return e[7]!==l||e[8]!==o||e[9]!==i||e[10]!==s?(n=t.jsx(et,{label:i,size:"icon-sm",className:"-ml-1.5 text-muted-foreground","aria-expanded":o,onClick:l,children:s}),e[7]=l,e[8]=o,e[9]=i,e[10]=s,e[11]=n):n=e[11],n}function Xs(r){const e=Z.c(8),{open:o,colSpan:l,children:a}=r;let i;e[0]!==a?(i=t.jsx(Vt,{children:t.jsx("div",{className:"border-b border-border bg-muted/30 px-4 py-3",children:a})}),e[0]=a,e[1]=i):i=e[1];let c;e[2]!==o||e[3]!==i?(c=t.jsx(Ht,{open:o,children:i}),e[2]=o,e[3]=i,e[4]=c):c=e[4];let m;return e[5]!==l||e[6]!==c?(m=t.jsx(nt,{className:"border-0 hover:bg-transparent",children:t.jsx(Fe,{colSpan:l,className:"p-0 whitespace-normal",children:c})}),e[5]=l,e[6]=c,e[7]=m):m=e[7],m}function hs(r){const e=Z.c(5),{open:o,children:l}=r;let a;e[0]!==l?(a=t.jsx(Vt,{children:t.jsx("div",{className:"border-t border-border bg-muted/30 px-4 py-3",children:l})}),e[0]=l,e[1]=a):a=e[1];let i;return e[2]!==o||e[3]!==a?(i=t.jsx(Ht,{open:o,children:a}),e[2]=o,e[3]=a,e[4]=i):i=e[4],i}function xs(r){const e=Z.c(6),{scope:o}=r,l=Ae(),a=o==="build"?"outline":"secondary";let i;e[0]!==o||e[1]!==l?(i=l(o==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime"),e[0]=o,e[1]=l,e[2]=i):i=e[2];let c;return e[3]!==a||e[4]!==i?(c=t.jsx(Re,{variant:a,children:i}),e[3]=a,e[4]=i,e[5]=c):c=e[5],c}function Zs(r){const e=Z.c(9),{value:o}=r,l=Ae();let a;e[0]!==l?(a=l("mainPanelTabs.hostingTab.dnsCopy"),e[0]=l,e[1]=a):a=e[1];let i;e[2]!==l||e[3]!==o?(i=()=>{if(!navigator.clipboard){ce.error(l("mainPanelTabs.hostingTab.dnsCopyError"));return}navigator.clipboard.writeText(o).then(()=>ce.success(l("mainPanelTabs.hostingTab.dnsCopied")),()=>ce.error(l("mainPanelTabs.hostingTab.dnsCopyError")))},e[2]=l,e[3]=o,e[4]=i):i=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(zs,{className:"size-3.5"}),e[5]=c):c=e[5];let m;return e[6]!==a||e[7]!==i?(m=t.jsx(et,{label:a,onClick:i,children:c}),e[6]=a,e[7]=i,e[8]=m):m=e[8],m}function wt(r){const e=Z.c(28),{open:o,onOpenChange:l,title:a,description:i,confirmLabel:c,pending:m,onConfirm:s}=r,n=Ae();let x;e[0]!==a?(x=t.jsx(ls,{children:a}),e[0]=a,e[1]=x):x=e[1];let b;e[2]!==i?(b=t.jsx(as,{children:i}),e[2]=i,e[3]=b):b=e[3];let d;e[4]!==x||e[5]!==b?(d=t.jsxs(os,{children:[x,b]}),e[4]=x,e[5]=b,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(rs,{disabled:m,children:f}),e[9]=m,e[10]=f,e[11]=u):u=e[11];let g;e[12]!==s?(g=S=>{S.preventDefault(),s()},e[12]=s,e[13]=g):g=e[13];let h;e[14]!==c||e[15]!==m||e[16]!==g?(h=t.jsx(cs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:g,disabled:m,children:c}),e[14]=c,e[15]=m,e[16]=g,e[17]=h):h=e[17];let N;e[18]!==u||e[19]!==h?(N=t.jsxs(ms,{children:[u,h]}),e[18]=u,e[19]=h,e[20]=N):N=e[20];let C;e[21]!==d||e[22]!==N?(C=t.jsxs(ds,{children:[d,N]}),e[21]=d,e[22]=N,e[23]=C):C=e[23];let P;return e[24]!==l||e[25]!==o||e[26]!==C?(P=t.jsx(fs,{open:o,onOpenChange:l,children:C}),e[24]=l,e[25]=o,e[26]=C,e[27]=P):P=e[27],P}const en=8;function tn(r){const e=Z.c(54),{base:o,orgSlug:l,site:a}=r,i=Ae(),c=bt(),[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 x;e[2]!==l||e[3]!==c||e[4]!==a||e[5]!==i?(x=()=>{c.invalidateQueries({queryKey:Ye.hostingDeployments(l,a)}),c.invalidateQueries({queryKey:Ye.hostingDeploymentHistory(l,a)}),ce.success(i("mainPanelTabs.hostingTab.toastDeployQueued")),s(!1)},e[2]=l,e[3]=c,e[4]=a,e[5]=i,e[6]=x):x=e[6];let b;e[7]!==n||e[8]!==x?(b={mutationFn:n,onSuccess:x,onError:sn},e[7]=n,e[8]=x,e[9]=b):b=e[9];const d=lt(b);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 g;e[12]!==d.isPending||e[13]!==i?(g=d.isPending?i("mainPanelTabs.hostingTab.deploying"):i("mainPanelTabs.hostingTab.deploy"),e[12]=d.isPending,e[13]=i,e[14]=g):g=e[14];let h;e[15]!==d.isPending||e[16]!==g?(h=t.jsxs(Ue,{size:"sm",onClick:f,disabled:d.isPending,children:[u,g]}),e[15]=d.isPending,e[16]=g,e[17]=h):h=e[17];let N;e[18]!==i?(N=i("mainPanelTabs.hostingTab.deployConfirmTitle"),e[18]=i,e[19]=N):N=e[19];let C;e[20]!==N?(C=t.jsx(ls,{children:N}),e[20]=N,e[21]=C):C=e[21];let P;e[22]!==i?(P=i("mainPanelTabs.hostingTab.deployConfirmDescription"),e[22]=i,e[23]=P):P=e[23];let S;e[24]!==P?(S=t.jsx(as,{children:P}),e[24]=P,e[25]=S):S=e[25];let y;e[26]!==S||e[27]!==C?(y=t.jsxs(os,{children:[C,S]}),e[26]=S,e[27]=C,e[28]=y):y=e[28];const R=d.isPending;let w;e[29]!==i?(w=i("mainPanelTabs.hostingTab.cancel"),e[29]=i,e[30]=w):w=e[30];let j;e[31]!==d.isPending||e[32]!==w?(j=t.jsx(rs,{disabled:R,children:w}),e[31]=d.isPending,e[32]=w,e[33]=j):j=e[33];let T;e[34]!==d?(T=_=>{_.preventDefault(),d.mutate()},e[34]=d,e[35]=T):T=e[35];const V=d.isPending;let M;e[36]!==i?(M=i("mainPanelTabs.hostingTab.deploy"),e[36]=i,e[37]=M):M=e[37];let F;e[38]!==d.isPending||e[39]!==T||e[40]!==M?(F=t.jsx(cs,{onClick:T,disabled:V,children:M}),e[38]=d.isPending,e[39]=T,e[40]=M,e[41]=F):F=e[41];let v;e[42]!==j||e[43]!==F?(v=t.jsxs(ms,{children:[j,F]}),e[42]=j,e[43]=F,e[44]=v):v=e[44];let H;e[45]!==y||e[46]!==v?(H=t.jsxs(ds,{children:[y,v]}),e[45]=y,e[46]=v,e[47]=H):H=e[47];let A;e[48]!==m||e[49]!==H?(A=t.jsx(fs,{open:m,onOpenChange:s,children:H}),e[48]=m,e[49]=H,e[50]=A):A=e[50];let Q;return e[51]!==A||e[52]!==h?(Q=t.jsxs(t.Fragment,{children:[h,A]}),e[51]=A,e[52]=h,e[53]=Q):Q=e[53],Q}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(ws,{}),e("mainPanelTabs.hostingTab.actionRollback")]}):o.includes("redeploy")?t.jsxs(Re,{variant:"secondary",children:[t.jsx($s,{}),e("mainPanelTabs.hostingTab.actionRedeploy")]}):t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),e("mainPanelTabs.hostingTab.actionDeploy")]})}function ln(r,e,o){const l=(r??"").toLowerCase();return l==="build"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(is,{}),o("mainPanelTabs.hostingTab.typeBuild")]}):l==="fast-deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(_s,{}),o("mainPanelTabs.hostingTab.typeFastDeploy")]}):l==="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=Z.c(7),{commit:o,onClick:l}=r,a=Ae();let i;e[0]!==a?(i=a("mainPanelTabs.hostingTab.buildLogs"),e[0]=a,e[1]=i):i=e[1];const c=!o;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(is,{}),e[2]=m):m=e[2];let s;return e[3]!==l||e[4]!==i||e[5]!==c?(s=t.jsx(et,{label:i,onClick:l,disabled:c,children:m}),e[3]=l,e[4]=i,e[5]=c,e[6]=s):s=e[6],s}function on(r){const e=Z.c(37),{base:o,orgSlug:l,site:a,target:i,onOpenChange:c}=r,m=Ae(),s=i!=null,n=i?.commit??"",x=i?.env??"";let b;e[0]!==n||e[1]!==x||e[2]!==l||e[3]!==a?(b=Ye.hostingBuildLogs(l,a,n,x),e[0]=n,e[1]=x,e[2]=l,e[3]=a,e[4]=b):b=e[4];let d;e[5]!==o||e[6]!==n||e[7]!==x?(d=()=>Qt(`${o}/deployments/logs?commit=${encodeURIComponent(n)}&env=${encodeURIComponent(x)}`),e[5]=o,e[6]=n,e[7]=x,e[8]=d):d=e[8];const f=s&&!!n;let u;e[9]!==b||e[10]!==d||e[11]!==f?(u={queryKey:b,queryFn:d,enabled:f,retry:!1,staleTime:0,gcTime:0,refetchOnMount:"always"},e[9]=b,e[10]=d,e[11]=f,e[12]=u):u=e[12];const g=ct(u),h=g.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(ks,{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(Es,{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]!==h||e[26]!==g.error||e[27]!==g.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(g.error)?t.jsx(Ze,{icon:t.jsx(_t,{className:"size-5"}),title:m("mainPanelTabs.hostingTab.notConnectedTitle"),description:m("mainPanelTabs.hostingTab.notConnectedDescription")}):g.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"})]}):g.error?t.jsx(ot,{children:m("mainPanelTabs.hostingTab.buildLogsError")}):h&&h.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(Ns,{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:h.reason??m("mainPanelTabs.hostingTab.buildLogsNotWiredDescription")})]}):h?.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:h.text}),h.truncated&&t.jsx("p",{className:"text-xs text-warning",children:m("mainPanelTabs.hostingTab.buildLogsTruncated")}),h.url&&t.jsxs("a",{href:h.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-xs text-primary hover:underline",children:[t.jsx(kt,{className:"size-3.5"}),m("mainPanelTabs.hostingTab.buildLogsOpenFull")]})]}):h?.url?t.jsxs("a",{href:h.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-sm text-primary hover:underline",children:[t.jsx(kt,{className:"size-4"}),m("mainPanelTabs.hostingTab.buildLogsOpenFull")]}):t.jsx(ot,{children:m("mainPanelTabs.hostingTab.buildLogsEmpty")})}),e[25]=h,e[26]=g.error,e[27]=g.isLoading,e[28]=m,e[29]=R):R=e[29];let w;e[30]!==R||e[31]!==y?(w=t.jsxs(Rs,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:[y,R]}),e[30]=R,e[31]=y,e[32]=w):w=e[32];let j;return e[33]!==c||e[34]!==s||e[35]!==w?(j=t.jsx(Fs,{open:s,onOpenChange:c,children:w}),e[33]=c,e[34]=s,e[35]=w,e[36]=j):j=e[36],j}function rn(r){const e=Z.c(52),{base:o,orgSlug:l,site:a,enabled:i,deployments:c,isLoading:m,error:s}=r,n=Ae(),[x,b]=ee.useState(null),[d,f]=ee.useState(en),[u,g]=ee.useState(null);let h;e[0]!==l||e[1]!==a?(h=Ye.hostingDeploymentHistory(l,a),e[0]=l,e[1]=a,e[2]=h):h=e[2];let N;e[3]!==o?(N=()=>Qt(`${o}/deployments/history?limit=50`),e[3]=o,e[4]=N):N=e[4];let C;e[5]!==i||e[6]!==h||e[7]!==N?(C={queryKey:h,queryFn:N,enabled:i,retry:!1,staleTime:3e4},e[5]=i,e[6]=h,e[7]=N,e[8]=C):C=e[8];const P=ct(C);let S,y,R,w;if(e[9]!==c||e[10]!==s||e[11]!==x||e[12]!==d||e[13]!==P.data||e[14]!==P.error||e[15]!==P.isLoading||e[16]!==m||e[17]!==n){const F=mt(P.data,"items"),v=F.slice(0,d),H=F.length-v.length;let A;e[22]!==c?(A=c.find(dn)?.commitSha??c.find(mn)?.commitSha??null,e[22]=c,e[23]=A):A=e[23];const Q=A;let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=(p,I)=>{p&&g({commit:p,env:I??"production"})},e[24]=_):_=e[24];const W=_;let J;e[25]!==n?(J=n("mainPanelTabs.hostingTab.deployments"),e[25]=n,e[26]=J):J=e[26];let U;e[27]!==c||e[28]!==s||e[29]!==x||e[30]!==m||e[31]!==n?(U=m?t.jsx(ht,{}):s?t.jsx(Ie,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deploymentsError")})}):c.length===0?t.jsx(Ie,{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(qe,{className:"pl-4",children:n("mainPanelTabs.hostingTab.colCommit")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colStatus")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colFramework")}),t.jsx(qe,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDuration")}),t.jsx(qe,{className:"text-right",children:n("mainPanelTabs.hostingTab.colUpdated")}),t.jsx(qe,{className:"w-[1%]"})]})}),t.jsx(Ft,{children:c.map(p=>{const I=!!p.buildMessage,Y=x===p.id;return t.jsxs(ee.Fragment,{children:[t.jsxs(nt,{className:xt(I&&"cursor-pointer hover:bg-muted/40"),onClick:I?()=>b(Y?null:p.id):void 0,children:[t.jsx(Fe,{className:"px-4",children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[I?t.jsx(Ut,{open:Y,onClick:()=>b(Y?null:p.id)}):t.jsx(Cs,{className:"size-4 text-muted-foreground/60"}),t.jsx("span",{className:"font-mono text-xs",children:p.shortCommit??p.commitSha?.slice(0,7)??"—"}),p.production===!0&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.production")})]})}),t.jsx(Fe,{children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Re,{variant:Ws(p.phase),children:p.phase??"—"}),p.up===!0&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(p.framework)??"—"}),t.jsx(Fe,{className:"text-right font-mono text-xs text-muted-foreground tabular-nums",children:Js(p.durationMs)}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Xt(p.finishedAt??p.startedAt??p.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",onClick:cn,children:t.jsx(Zt,{commit:p.commitSha,onClick:()=>W(p.commitSha,p.env)})})]}),I&&t.jsx(Xs,{open:Y,colSpan:6,children:t.jsx("p",{className:"whitespace-pre-wrap break-words font-mono text-xs text-muted-foreground",children:p.buildMessage})})]},p.id)})})]}),e[27]=c,e[28]=s,e[29]=x,e[30]=m,e[31]=n,e[32]=U):U=e[32],e[33]!==U||e[34]!==J?(w=t.jsx(ut,{title:J,children:U}),e[33]=U,e[34]=J,e[35]=w):w=e[35],S=ut,e[36]!==n?(y=n("mainPanelTabs.hostingTab.deployHistory"),e[36]=n,e[37]=y):y=e[37],R=P.isLoading?t.jsx(ht,{}):P.error?t.jsx(Ie,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deployHistoryError")})}):F.length===0?t.jsx(Ie,{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(qe,{className:"pl-4",children:n("mainPanelTabs.hostingTab.colAction")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colStatus")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colCommit")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colFramework")}),t.jsx(qe,{children:n("mainPanelTabs.hostingTab.colActor")}),t.jsx(qe,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDate")}),t.jsx(qe,{className:"w-[1%]"})]})}),t.jsxs(Ft,{children:[v.map(p=>{const I=!!Q&&p.commitSha===Q;return t.jsxs(nt,{children:[t.jsx(Fe,{className:"pl-4",children:ln(p.type,p.action,n)}),t.jsx(Fe,{children:an(p.outcome,n)}),t.jsx(Fe,{children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"font-mono text-xs",children:p.commitSha?.slice(0,7)??"—"}),I&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(p.framework)??"—"}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:p.actor??"—"}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Xt(p.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",children:t.jsx(Zt,{commit:p.commitSha,onClick:()=>W(p.commitSha,p.env)})})]},p.id)}),H>0&&t.jsx(nt,{className:"hover:bg-transparent",children:t.jsx(Fe,{colSpan:7,className:"p-2 text-center",children:t.jsx(Ue,{variant:"ghost",size:"sm",onClick:()=>f(F.length),children:n("mainPanelTabs.hostingTab.showMoreHistory",{count:String(H)})})})})]})]}),e[9]=c,e[10]=s,e[11]=x,e[12]=d,e[13]=P.data,e[14]=P.error,e[15]=P.isLoading,e[16]=m,e[17]=n,e[18]=S,e[19]=y,e[20]=R,e[21]=w}else S=e[18],y=e[19],R=e[20],w=e[21];let j;e[38]!==S||e[39]!==y||e[40]!==R?(j=t.jsx(S,{title:y,children:R}),e[38]=S,e[39]=y,e[40]=R,e[41]=j):j=e[41];let T;e[42]===Symbol.for("react.memo_cache_sentinel")?(T=F=>{F||g(null)},e[42]=T):T=e[42];let V;e[43]!==o||e[44]!==u||e[45]!==l||e[46]!==a?(V=t.jsx(on,{base:o,orgSlug:l,site:a,target:u,onOpenChange:T}),e[43]=o,e[44]=u,e[45]=l,e[46]=a,e[47]=V):V=e[47];let M;return e[48]!==w||e[49]!==j||e[50]!==V?(M=t.jsxs(t.Fragment,{children:[w,j,V]}),e[48]=w,e[49]=j,e[50]=V,e[51]=M):M=e[51],M}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 gs(r){const e=Z.c(24),{records:o}=r,l=Ae();let a;e[0]!==l?(a=l("mainPanelTabs.hostingTab.dnsColType"),e[0]=l,e[1]=a):a=e[1];let i;e[2]!==a?(i=t.jsx(qe,{className:"w-16",children:a}),e[2]=a,e[3]=i):i=e[3];let c;e[4]!==l?(c=l("mainPanelTabs.hostingTab.dnsColName"),e[4]=l,e[5]=c):c=e[5];let m;e[6]!==c?(m=t.jsx(qe,{children:c}),e[6]=c,e[7]=m):m=e[7];let s;e[8]!==l?(s=l("mainPanelTabs.hostingTab.dnsColValue"),e[8]=l,e[9]=s):s=e[9];let n;e[10]!==s?(n=t.jsx(qe,{children:s}),e[10]=s,e[11]=n):n=e[11];let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(qe,{className:"w-10"}),e[12]=x):x=e[12];let b;e[13]!==i||e[14]!==m||e[15]!==n?(b=t.jsx(Rt,{children:t.jsxs(nt,{children:[i,m,n,x]})}),e[13]=i,e[14]=m,e[15]=n,e[16]=b):b=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]!==b?(u=t.jsxs(Et,{className:"table-fixed",children:[b,f]}),e[21]=f,e[22]=b,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 bs(r){const e=Z.c(14),{status:o,children:l}=r,a=Ae();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(At,{className:"size-4 text-muted-foreground"}),e[0]=i):i=e[0];let c;e[1]!==a?(c=a("mainPanelTabs.hostingTab.dnsSetupTitle"),e[1]=a,e[2]=c):c=e[2];let m;e[3]!==c?(m=t.jsx("span",{className:"text-sm font-medium",children:c}),e[3]=c,e[4]=m):m=e[4];let s;e[5]!==o||e[6]!==a?(s=o&&t.jsx(Re,{variant:o.active?"success":"outline",className:"ml-auto",children:o.active?a("mainPanelTabs.hostingTab.dnsActive"):a("mainPanelTabs.hostingTab.dnsAwaiting")}),e[5]=o,e[6]=a,e[7]=s):s=e[7];let n;e[8]!==m||e[9]!==s?(n=t.jsxs("div",{className:"flex items-center gap-2",children:[i,m,s]}),e[8]=m,e[9]=s,e[10]=n):n=e[10];let x;return e[11]!==l||e[12]!==n?(x=t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[n,l]}),e[11]=l,e[12]=n,e[13]=x):x=e[13],x}function ts(r){const e=Z.c(21),{from:o,source:l}=r,a=Ae();let i,c,m,s,n;if(e[0]!==o||e[1]!==l||e[2]!==a){const d=o.trim().replace(/\.$/,""),f=d?un(d)?"@":d:"@",u=l==="both";c=bs,e[8]!==u?(s={active:u},e[8]=u,e[9]=s):s=e[9];let g;e[10]!==u||e[11]!==a?(g=a(u?"mainPanelTabs.hostingTab.dnsActiveHint":"mainPanelTabs.hostingTab.dnsAwaitingHint"),e[10]=u,e[11]=a,e[12]=g):g=e[12],n=t.jsxs("p",{className:"text-xs text-muted-foreground",children:[a("mainPanelTabs.hostingTab.dnsRedirectIntent",{from:d||"—"})," ",g]}),i=gs,m=fn.map(h=>({type:"A",name:f,value:h})),e[0]=o,e[1]=l,e[2]=a,e[3]=i,e[4]=c,e[5]=m,e[6]=s,e[7]=n}else i=e[3],c=e[4],m=e[5],s=e[6],n=e[7];let x;e[13]!==i||e[14]!==m?(x=t.jsx(i,{records:m}),e[13]=i,e[14]=m,e[15]=x):x=e[15];let b;return e[16]!==c||e[17]!==s||e[18]!==n||e[19]!==x?(b=t.jsxs(c,{status:s,children:[n,x]}),e[16]=c,e[17]=s,e[18]=n,e[19]=x,e[20]=b):b=e[20],b}function ss(r){const e=Z.c(2),{records:o}=r;if(o.length===0)return null;let l;return e[0]!==o?(l=t.jsx(bs,{children:t.jsx(gs,{records:o})}),e[0]=o,e[1]=l):l=e[1],l}function xn(r){const e=Z.c(16),{domain:o}=r,l=Ae(),a=o.status??"pending";let i;e[0]!==a||e[1]!==l?(i=l(a==="active"?"mainPanelTabs.hostingTab.statusActive":a==="action-required"?"mainPanelTabs.hostingTab.statusActionRequired":"mainPanelTabs.hostingTab.statusPending"),e[0]=a,e[1]=l,e[2]=i):i=e[2];const c=i;let m;e[3]!==o.detail||e[4]!==l?(m=o.detail==="zone-not-onboarded"?l("mainPanelTabs.hostingTab.detailZoneNotOnboarded"):void 0,e[3]=o.detail,e[4]=l,e[5]=m):m=e[5];const s=m,n=a==="active"?"success":a==="action-required"?"warning":"outline";let x;e[6]!==c||e[7]!==n?(x=t.jsx(Re,{variant:n,children:c}),e[6]=c,e[7]=n,e[8]=x):x=e[8];const b=x;if(!s)return b;let d;e[9]!==b?(d=t.jsx(Hs,{asChild:!0,children:b}),e[9]=b,e[10]=d):d=e[10];let f;e[11]!==s?(f=t.jsx(Bs,{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(Os,{children:[d,f]}),e[13]=d,e[14]=f,e[15]=u):u=e[15],u}function gn(r){const e=Z.c(121),{base:o,orgSlug:l,site:a,domains:i,dnsTemplate:c,isLoading:m,error:s}=r,n=Ae(),x=bt(),[b,d]=ee.useState(!1),[f,u]=ee.useState(""),[g,h]=ee.useState(null),[N,C]=ee.useState(null);let P;e[0]!==l||e[1]!==x||e[2]!==a?(P=()=>x.invalidateQueries({queryKey:Ye.hostingDomains(l,a)}),e[0]=l,e[1]=x,e[2]=a,e[3]=P):P=e[3];const S=P;let y;e[4]!==o?(y=$=>at(`${o}/domains`,"PUT",$),e[4]=o,e[5]=y):y=e[5];let R;e[6]!==S||e[7]!==n?(R=()=>{S(),ce.success(n("mainPanelTabs.hostingTab.toastDomainSaved")),d(!1)},e[6]=S,e[7]=n,e[8]=R):R=e[8];let w;e[9]!==y||e[10]!==R?(w={mutationFn:y,onSuccess:R,onError:pn},e[9]=y,e[10]=R,e[11]=w):w=e[11];const j=lt(w);let T;e[12]!==o?(T=$=>at(`${o}/domains/${encodeURIComponent($)}`,"DELETE"),e[12]=o,e[13]=T):T=e[13];let V;e[14]!==S||e[15]!==n?(V=()=>{S(),ce.success(n("mainPanelTabs.hostingTab.toastDomainDeleted")),h(null)},e[14]=S,e[15]=n,e[16]=V):V=e[16];let M;e[17]!==T||e[18]!==V?(M={mutationFn:T,onSuccess:V,onError:bn},e[17]=T,e[18]=V,e[19]=M):M=e[19];const F=lt(M);let v;e[20]!==f||e[21]!==j||e[22]!==n?(v=()=>{const $=f.trim().toLowerCase();if(!$){ce.error(n("mainPanelTabs.hostingTab.errorDomainHostRequired"));return}const se=Ys($);if(se){ce.error(se);return}j.mutate({host:$})},e[20]=f,e[21]=j,e[22]=n,e[23]=v):v=e[23];const H=v;let A;if(e[24]!==c||e[25]!==f){let $;e[27]!==f?($=se=>({...se,name:f.trim().toLowerCase()||se.name}),e[27]=f,e[28]=$):$=e[28],A=c.map($),e[24]=c,e[25]=f,e[26]=A}else A=e[26];const Q=A;let _,W;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{u(""),d(!0)},W=t.jsx(Pt,{}),e[29]=_,e[30]=W):(_=e[29],W=e[30]);let J;e[31]!==n?(J=n("mainPanelTabs.hostingTab.addDomain"),e[31]=n,e[32]=J):J=e[32];let U;e[33]!==J?(U=t.jsxs(Ue,{size:"sm",variant:"outline",onClick:_,children:[W,J]}),e[33]=J,e[34]=U):U=e[34];const p=U;let I;e[35]!==n?(I=n("mainPanelTabs.hostingTab.domains"),e[35]=n,e[36]=I):I=e[36];const Y=i.length>0?p:void 0;let D;e[37]!==p||e[38]!==F.isPending||e[39]!==N||e[40]!==i||e[41]!==s||e[42]!==m||e[43]!==n?(D=m?t.jsx(ht,{}):s?t.jsx(Ie,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.domainsError")})}):i.length===0?t.jsx(Ie,{children:t.jsx(Ze,{icon:t.jsx(At,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDomains"),className:"py-10",buttonComponent:p})}):t.jsx(Ie,{children:i.map(($,se)=>{const Se=!$.canonical&&($.dns?.length??0)>0,je=N===$.host;return t.jsxs("div",{children:[t.jsxs(pt,{children:[Se?t.jsx(Ut,{open:je,onClick:()=>C(je?null:$.host)}):t.jsx(At,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[t.jsx("span",{className:"truncate font-mono text-xs",children:$.host}),$.canonical&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.canonical")})]}),t.jsx(xn,{domain:$}),!$.canonical&&t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteDomain"),onClick:()=>h($.host),disabled:F.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]}),Se&&t.jsx(hs,{open:je,children:t.jsx(ss,{records:$.dns??[]})})]},`${$.host}-${se}`)})}),e[37]=p,e[38]=F.isPending,e[39]=N,e[40]=i,e[41]=s,e[42]=m,e[43]=n,e[44]=D):D=e[44];let G;e[45]!==n?(G=n("mainPanelTabs.hostingTab.addDomainTitle"),e[45]=n,e[46]=G):G=e[46];let O;e[47]!==G?(O=t.jsx(yt,{children:t.jsx(St,{children:G})}),e[47]=G,e[48]=O):O=e[48];let k;e[49]!==H?(k=$=>{$.preventDefault(),H()},e[49]=H,e[50]=k):k=e[50];let E;e[51]!==n?(E=n("mainPanelTabs.hostingTab.colHost"),e[51]=n,e[52]=E):E=e[52];let B;e[53]!==E?(B=t.jsx(Xe,{htmlFor:"domain-host",children:E}),e[53]=E,e[54]=B):B=e[54];let X;e[55]!==n?(X=n("mainPanelTabs.hostingTab.domainHostPlaceholder"),e[55]=n,e[56]=X):X=e[56];let te;e[57]===Symbol.for("react.memo_cache_sentinel")?(te=$=>u($.target.value),e[57]=te):te=e[57];let K;e[58]!==f||e[59]!==j.isPending||e[60]!==X?(K=t.jsx(it,{id:"domain-host",placeholder:X,value:f,onChange:te,className:"font-mono text-xs",autoComplete:"off",disabled:j.isPending}),e[58]=f,e[59]=j.isPending,e[60]=X,e[61]=K):K=e[61];let ne;e[62]!==B||e[63]!==K?(ne=t.jsxs("div",{className:"flex flex-col gap-2",children:[B,K]}),e[62]=B,e[63]=K,e[64]=ne):ne=e[64];let ie;e[65]!==f||e[66]!==Q?(ie=f.trim()&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ss,{records:Q})}),e[65]=f,e[66]=Q,e[67]=ie):ie=e[67];let Pe;e[68]===Symbol.for("react.memo_cache_sentinel")?(Pe=()=>d(!1),e[68]=Pe):Pe=e[68];const Ce=j.isPending;let me;e[69]!==n?(me=n("mainPanelTabs.hostingTab.cancel"),e[69]=n,e[70]=me):me=e[70];let pe;e[71]!==j.isPending||e[72]!==me?(pe=t.jsx(Ue,{variant:"outline",type:"button",onClick:Pe,disabled:Ce,children:me}),e[71]=j.isPending,e[72]=me,e[73]=pe):pe=e[73];let le;e[74]!==f||e[75]!==j.isPending?(le=j.isPending||!f.trim(),e[74]=f,e[75]=j.isPending,e[76]=le):le=e[76];let ae;e[77]!==j.isPending||e[78]!==n?(ae=j.isPending?n("mainPanelTabs.hostingTab.saving"):n("mainPanelTabs.hostingTab.save"),e[77]=j.isPending,e[78]=n,e[79]=ae):ae=e[79];let de;e[80]!==le||e[81]!==ae?(de=t.jsx(Ue,{type:"submit",disabled:le,children:ae}),e[80]=le,e[81]=ae,e[82]=de):de=e[82];let De;e[83]!==pe||e[84]!==de?(De=t.jsxs(Nt,{children:[pe,de]}),e[83]=pe,e[84]=de,e[85]=De):De=e[85];let fe;e[86]!==k||e[87]!==ne||e[88]!==ie||e[89]!==De?(fe=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:k,children:[ne,ie,De]}),e[86]=k,e[87]=ne,e[88]=ie,e[89]=De,e[90]=fe):fe=e[90];let ue;e[91]!==O||e[92]!==fe?(ue=t.jsxs(Ct,{className:"sm:max-w-md",children:[O,fe]}),e[91]=O,e[92]=fe,e[93]=ue):ue=e[93];let oe;e[94]!==b||e[95]!==ue?(oe=t.jsx(Dt,{open:b,onOpenChange:d,children:ue}),e[94]=b,e[95]=ue,e[96]=oe):oe=e[96];const Te=g!=null;let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=$=>{$||h(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=g??"";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]!==g?(re=()=>{g&&F.mutate(g)},e[105]=F,e[106]=g,e[107]=re):re=e[107];let be;e[108]!==F.isPending||e[109]!==Te||e[110]!==xe||e[111]!==ye||e[112]!==ge||e[113]!==re?(be=t.jsx(wt,{open:Te,onOpenChange:he,title:xe,description:ye,confirmLabel:ge,pending:F.isPending,onConfirm:re}),e[108]=F.isPending,e[109]=Te,e[110]=xe,e[111]=ye,e[112]=ge,e[113]=re,e[114]=be):be=e[114];let we;return e[115]!==I||e[116]!==Y||e[117]!==D||e[118]!==oe||e[119]!==be?(we=t.jsxs(ut,{title:I,actions:Y,children:[D,oe,be]}),e[115]=I,e[116]=Y,e[117]=D,e[118]=oe,e[119]=be,e[120]=we):we=e[120],we}function bn(r){return ce.error(rt(r))}function pn(r){return ce.error(rt(r))}function Tn(r){const e=Z.c(24),{value:o,onChange:l,disabled:a,className:i}=r,c=Ae();let m;e[0]!==l?(m=N=>l(N==="build"?"build":"runtime"),e[0]=l,e[1]=m):m=e[1];let s;e[2]!==i?(s=xt("h-8",i),e[2]=i,e[3]=s):s=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Bt,{}),e[4]=n):n=e[4];let x;e[5]!==s?(x=t.jsx(Ot,{className:s,children:n}),e[5]=s,e[6]=x):x=e[6];let b;e[7]!==c?(b=c("mainPanelTabs.hostingTab.secretScopeRuntime"),e[7]=c,e[8]=b):b=e[8];let d;e[9]!==b?(d=t.jsx(ft,{value:"runtime",children:b}),e[9]=b,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 g;e[15]!==d||e[16]!==u?(g=t.jsxs(Mt,{children:[d,u]}),e[15]=d,e[16]=u,e[17]=g):g=e[17];let h;return e[18]!==a||e[19]!==m||e[20]!==x||e[21]!==g||e[22]!==o?(h=t.jsxs(qt,{value:o,onValueChange:m,disabled:a,children:[x,g]}),e[18]=a,e[19]=m,e[20]=x,e[21]=g,e[22]=o,e[23]=h):h=e[23],h}function jn(r){const e=Z.c(151),{base:o,orgSlug:l,site:a,envVars:i,codeVars:c,isLoading:m,error:s}=r,n=Ae(),x=bt(),[b,d]=ee.useState(!1),[f,u]=ee.useState(""),[g,h]=ee.useState(""),[N,C]=ee.useState("runtime"),[P,S]=ee.useState(null),[y,R]=ee.useState(""),[w,j]=ee.useState(null);let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T=new Set,e[0]=T):T=e[0];const[V,M]=ee.useState(T);let F;e[1]===Symbol.for("react.memo_cache_sentinel")?(F=L=>{M(Ne=>{const We=new Set(Ne);return We.has(L)?We.delete(L):We.add(L),We})},e[1]=F):F=e[1];const v=F;let H;e[2]!==o?(H=L=>at(`${o}/env`,"PUT",{vars:L}),e[2]=o,e[3]=H):H=e[3];let A;e[4]!==l||e[5]!==x||e[6]!==a||e[7]!==n?(A=()=>{x.invalidateQueries({queryKey:Ye.hostingEnv(l,a)}),ce.success(n("mainPanelTabs.hostingTab.toastEnvSaved"))},e[4]=l,e[5]=x,e[6]=a,e[7]=n,e[8]=A):A=e[8];let Q;e[9]!==H||e[10]!==A?(Q={mutationFn:H,onSuccess:A,onError:vn},e[9]=H,e[10]=A,e[11]=Q):Q=e[11];const _=lt(Q);let W;e[12]!==f||e[13]!==N||e[14]!==g||e[15]!==_||e[16]!==i||e[17]!==n?(W=()=>{const L=f.trim();if(!L){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameRequired"));return}if(i.some(Ne=>Lt(Ne,{name:L,scope:N}))){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameDuplicate"));return}_.mutate([...i,{name:L,value:g,scope:N}],{onSuccess:()=>{d(!1),u(""),h(""),C("runtime")}})},e[12]=f,e[13]=N,e[14]=g,e[15]=_,e[16]=i,e[17]=n,e[18]=W):W=e[18];const J=W;let U;e[19]!==y||e[20]!==_||e[21]!==i?(U=L=>{_.mutate(i.map(Ne=>Lt(Ne,L)?{name:L.name,value:y,scope:L.scope}:Ne),{onSuccess:()=>S(null)})},e[19]=y,e[20]=_,e[21]=i,e[22]=U):U=e[22];const p=U;let I;e[23]!==w||e[24]!==_||e[25]!==i?(I=()=>{w&&_.mutate(i.filter(L=>!Lt(L,w)),{onSuccess:()=>j(null)})},e[23]=w,e[24]=_,e[25]=i,e[26]=I):I=e[26];const Y=I,D=_.isPending;let G;e[27]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{u(""),h(""),C("runtime")},e[27]=G):G=e[27];const O=G;let k,E;e[28]===Symbol.for("react.memo_cache_sentinel")?(k=()=>d(!0),E=t.jsx(Pt,{}),e[28]=k,e[29]=E):(k=e[28],E=e[29]);let B;e[30]!==n?(B=n("mainPanelTabs.hostingTab.addVariable"),e[30]=n,e[31]=B):B=e[31];let X;e[32]!==B?(X=t.jsxs(Ue,{size:"sm",variant:"outline",onClick:k,children:[E,B]}),e[32]=B,e[33]=X):X=e[33];const te=X;let K;e[34]!==n?(K=n("mainPanelTabs.hostingTab.env"),e[34]=n,e[35]=K):K=e[35];const ne=i.length>0||c.length>0?te:void 0;let ie;e[36]!==te||e[37]!==c||e[38]!==y||e[39]!==P?.name||e[40]!==P?.scope||e[41]!==i||e[42]!==s||e[43]!==p||e[44]!==m||e[45]!==D||e[46]!==V||e[47]!==n?(ie=m?t.jsx(ht,{}):s?t.jsx(Ie,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.envError")})}):i.length===0&&c.length===0?t.jsx(Ie,{children:t.jsx(Ze,{icon:t.jsx(Yt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noEnv"),className:"py-10",buttonComponent:te})}):t.jsxs(Ie,{children:[i.map(L=>{const Ne=L.scope==="build"?"build":"runtime",We=`${L.name}:${Ne}`,tt=P?.name===L.name&&P?.scope===Ne,st=V.has(We);return t.jsxs(pt,{children:[t.jsxs("div",{className:"flex min-w-0 flex-1 basis-0 items-center gap-2",children:[t.jsx("div",{className:"w-20 shrink-0",children:t.jsx(xs,{scope:Ne})}),t.jsx("span",{className:"truncate font-mono text-xs",children:L.name})]}),t.jsx("div",{className:"flex min-w-0 flex-1 basis-0 items-center justify-end gap-2",children:tt?t.jsxs(t.Fragment,{children:[t.jsx(it,{value:y,onChange:z=>R(z.target.value),onKeyDown:z=>{z.key==="Enter"&&p({name:L.name,scope:Ne}),z.key==="Escape"&&S(null)},autoFocus:!0,className:"h-8 font-mono text-xs"}),t.jsx(Ue,{size:"sm",onClick:()=>p({name:L.name,scope:Ne}),disabled:D,children:n("mainPanelTabs.hostingTab.save")}),t.jsx(Ue,{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(Ms,{}):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 classic:rounded px-1.5 py-0.5 text-right font-mono text-xs text-muted-foreground hover:bg-muted hover:text-foreground compact:rounded-lg",children:L.value||"—"}):t.jsx("span",{className:"min-w-0 truncate px-1.5 py-0.5 text-right font-mono text-xs text-muted-foreground/60",children:L.value?"••••••••••":"—"})]})}),t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteVariable"),onClick:()=>j({name:L.name,scope:Ne}),disabled:D,className:"text-muted-foreground",children:t.jsx(vt,{})})]},We)}),c.length>0&&t.jsxs(Ht,{children:[t.jsx(Vs,{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(ns,{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(Vt,{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]=i,e[42]=s,e[43]=p,e[44]=m,e[45]=D,e[46]=V,e[47]=n,e[48]=ie):ie=e[48];let Pe;e[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=L=>{d(L),L||O()},e[49]=Pe):Pe=e[49];let Ce;e[50]!==n?(Ce=n("mainPanelTabs.hostingTab.addVariable"),e[50]=n,e[51]=Ce):Ce=e[51];let me;e[52]!==Ce?(me=t.jsx(yt,{children:t.jsx(St,{children:Ce})}),e[52]=Ce,e[53]=me):me=e[53];let pe;e[54]!==J?(pe=L=>{L.preventDefault(),J()},e[54]=J,e[55]=pe):pe=e[55];let le;e[56]!==n?(le=n("mainPanelTabs.hostingTab.colName"),e[56]=n,e[57]=le):le=e[57];let ae;e[58]!==le?(ae=t.jsx(Xe,{htmlFor:"env-name",children:le}),e[58]=le,e[59]=ae):ae=e[59];let de;e[60]!==n?(de=n("mainPanelTabs.hostingTab.envNamePlaceholder"),e[60]=n,e[61]=de):de=e[61];let De;e[62]===Symbol.for("react.memo_cache_sentinel")?(De=L=>u(L.target.value),e[62]=De):De=e[62];let fe;e[63]!==f||e[64]!==D||e[65]!==de?(fe=t.jsx(it,{id:"env-name",placeholder:de,value:f,onChange:De,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[63]=f,e[64]=D,e[65]=de,e[66]=fe):fe=e[66];let ue;e[67]!==ae||e[68]!==fe?(ue=t.jsxs("div",{className:"flex flex-col gap-2",children:[ae,fe]}),e[67]=ae,e[68]=fe,e[69]=ue):ue=e[69];let oe;e[70]!==n?(oe=n("mainPanelTabs.hostingTab.colValue"),e[70]=n,e[71]=oe):oe=e[71];let Te;e[72]!==oe?(Te=t.jsx(Xe,{htmlFor:"env-value",children:oe}),e[72]=oe,e[73]=Te):Te=e[73];let he;e[74]!==n?(he=n("mainPanelTabs.hostingTab.envValuePlaceholder"),e[74]=n,e[75]=he):he=e[75];let xe;e[76]===Symbol.for("react.memo_cache_sentinel")?(xe=L=>h(L.target.value),e[76]=xe):xe=e[76];let ve;e[77]!==g||e[78]!==D||e[79]!==he?(ve=t.jsx(it,{id:"env-value",placeholder:he,value:g,onChange:xe,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[77]=g,e[78]=D,e[79]=he,e[80]=ve):ve=e[80];let ye;e[81]!==Te||e[82]!==ve?(ye=t.jsxs("div",{className:"flex flex-col gap-2",children:[Te,ve]}),e[81]=Te,e[82]=ve,e[83]=ye):ye=e[83];let ge;e[84]!==n?(ge=n("mainPanelTabs.hostingTab.secretScope"),e[84]=n,e[85]=ge):ge=e[85];let re;e[86]!==ge?(re=t.jsx(Xe,{children:ge}),e[86]=ge,e[87]=re):re=e[87];let be;e[88]!==N||e[89]!==D?(be=t.jsx(Tn,{value:N,onChange:C,disabled:D,className:"w-full"}),e[88]=N,e[89]=D,e[90]=be):be=e[90];let we;e[91]!==N||e[92]!==n?(we=n(N==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[91]=N,e[92]=n,e[93]=we):we=e[93];let $;e[94]!==we?($=t.jsx("p",{className:"text-xs text-muted-foreground",children:we}),e[94]=we,e[95]=$):$=e[95];let se;e[96]!==re||e[97]!==be||e[98]!==$?(se=t.jsxs("div",{className:"flex flex-col gap-2",children:[re,be,$]}),e[96]=re,e[97]=be,e[98]=$,e[99]=se):se=e[99];let Se;e[100]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>{d(!1),O()},e[100]=Se):Se=e[100];let je;e[101]!==n?(je=n("mainPanelTabs.hostingTab.cancel"),e[101]=n,e[102]=je):je=e[102];let $e;e[103]!==D||e[104]!==je?($e=t.jsx(Ue,{variant:"outline",type:"button",onClick:Se,disabled:D,children:je}),e[103]=D,e[104]=je,e[105]=$e):$e=e[105];let ze;e[106]!==f||e[107]!==D?(ze=D||!f.trim(),e[106]=f,e[107]=D,e[108]=ze):ze=e[108];let Ke;e[109]!==D||e[110]!==n?(Ke=n(D?"mainPanelTabs.hostingTab.saving":"mainPanelTabs.hostingTab.add"),e[109]=D,e[110]=n,e[111]=Ke):Ke=e[111];let Le;e[112]!==ze||e[113]!==Ke?(Le=t.jsx(Ue,{type:"submit",disabled:ze,children:Ke}),e[112]=ze,e[113]=Ke,e[114]=Le):Le=e[114];let _e;e[115]!==$e||e[116]!==Le?(_e=t.jsxs(Nt,{children:[$e,Le]}),e[115]=$e,e[116]=Le,e[117]=_e):_e=e[117];let Be;e[118]!==pe||e[119]!==ue||e[120]!==ye||e[121]!==se||e[122]!==_e?(Be=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:pe,children:[ue,ye,se,_e]}),e[118]=pe,e[119]=ue,e[120]=ye,e[121]=se,e[122]=_e,e[123]=Be):Be=e[123];let Ve;e[124]!==me||e[125]!==Be?(Ve=t.jsxs(Ct,{className:"sm:max-w-md",children:[me,Be]}),e[124]=me,e[125]=Be,e[126]=Ve):Ve=e[126];let ke;e[127]!==b||e[128]!==Ve?(ke=t.jsx(Dt,{open:b,onOpenChange:Pe,children:Ve}),e[127]=b,e[128]=Ve,e[129]=ke):ke=e[129];const Je=w!=null;let He;e[130]===Symbol.for("react.memo_cache_sentinel")?(He=L=>{L||j(null)},e[130]=He):He=e[130];let Ee;e[131]!==n?(Ee=n("mainPanelTabs.hostingTab.confirmDeleteVariableTitle"),e[131]=n,e[132]=Ee):Ee=e[132];const Oe=w?.name??"";let Me;e[133]!==n||e[134]!==Oe?(Me=n("mainPanelTabs.hostingTab.confirmDeleteVariableDescription",{name:Oe}),e[133]=n,e[134]=Oe,e[135]=Me):Me=e[135];let Qe;e[136]!==n?(Qe=n("mainPanelTabs.hostingTab.deleteVariable"),e[136]=n,e[137]=Qe):Qe=e[137];let q;e[138]!==Y||e[139]!==D||e[140]!==Je||e[141]!==Ee||e[142]!==Me||e[143]!==Qe?(q=t.jsx(wt,{open:Je,onOpenChange:He,title:Ee,description:Me,confirmLabel:Qe,pending:D,onConfirm:Y}),e[138]=Y,e[139]=D,e[140]=Je,e[141]=Ee,e[142]=Me,e[143]=Qe,e[144]=q):q=e[144];let Ge;return e[145]!==K||e[146]!==ne||e[147]!==ie||e[148]!==ke||e[149]!==q?(Ge=t.jsxs(ut,{title:K,actions:ne,children:[ie,ke,q]}),e[145]=K,e[146]=ne,e[147]=ie,e[148]=ke,e[149]=q,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=Z.c(6),{type:o}=r,l=Ae(),a=o==="permanent"?"secondary":"outline";let i;e[0]!==l||e[1]!==o?(i=l(o==="permanent"?"mainPanelTabs.hostingTab.permanent":"mainPanelTabs.hostingTab.temporary"),e[0]=l,e[1]=o,e[2]=i):i=e[2];let c;return e[3]!==a||e[4]!==i?(c=t.jsx(Re,{variant:a,children:i}),e[3]=a,e[4]=i,e[5]=c):c=e[5],c}function Sn(r){const e=Z.c(163),{base:o,orgSlug:l,site:a,redirects:i,isLoading:c,error:m}=r,s=Ae(),n=bt(),[x,b]=ee.useState(!1),[d,f]=ee.useState(null),[u,g]=ee.useState(""),[h,N]=ee.useState(""),[C,P]=ee.useState("permanent"),[S,y]=ee.useState(null),[R,w]=ee.useState(null);let j;e[0]!==l||e[1]!==n||e[2]!==a?(j=()=>n.invalidateQueries({queryKey:Ye.hostingRedirects(l,a)}),e[0]=l,e[1]=n,e[2]=a,e[3]=j):j=e[3];const T=j;let V;e[4]!==o?(V=z=>at(`${o}/redirects`,"PUT",z),e[4]=o,e[5]=V):V=e[5];let M;e[6]!==T||e[7]!==s?(M=()=>{T(),ce.success(s("mainPanelTabs.hostingTab.toastRedirectSaved")),b(!1)},e[6]=T,e[7]=s,e[8]=M):M=e[8];let F;e[9]!==V||e[10]!==M?(F={mutationFn:V,onSuccess:M,onError:Cn},e[9]=V,e[10]=M,e[11]=F):F=e[11];const v=lt(F);let H;e[12]!==o?(H=z=>at(`${o}/redirects/${encodeURIComponent(z)}`,"DELETE"),e[12]=o,e[13]=H):H=e[13];let A;e[14]!==T||e[15]!==s?(A=()=>{T(),ce.success(s("mainPanelTabs.hostingTab.toastRedirectDeleted")),y(null)},e[14]=T,e[15]=s,e[16]=A):A=e[16];let Q;e[17]!==H||e[18]!==A?(Q={mutationFn:H,onSuccess:A,onError:Nn},e[17]=H,e[18]=A,e[19]=Q):Q=e[19];const _=lt(Q);let W;e[20]===Symbol.for("react.memo_cache_sentinel")?(W=()=>{f(null),g(""),N(""),P("permanent"),b(!0)},e[20]=W):W=e[20];const J=W;let U;e[21]===Symbol.for("react.memo_cache_sentinel")?(U=z=>{f(z.from),g(z.from),N(z.to),P(z.type==="temporary"?"temporary":"permanent"),b(!0)},e[21]=U):U=e[21];const p=U;let I;e[22]!==u||e[23]!==h||e[24]!==C||e[25]!==v||e[26]!==s?(I=()=>{const z=u.trim(),Tt=h.trim();if(!z||!Tt){ce.error(s("mainPanelTabs.hostingTab.errorRedirectFieldsRequired"));return}v.mutate({from:z,to:Tt,type:C})},e[22]=u,e[23]=h,e[24]=C,e[25]=v,e[26]=s,e[27]=I):I=e[27];const Y=I;let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(Pt,{}),e[28]=D):D=e[28];let G;e[29]!==s?(G=s("mainPanelTabs.hostingTab.addRedirect"),e[29]=s,e[30]=G):G=e[30];let O;e[31]!==G?(O=t.jsxs(Ue,{size:"sm",variant:"outline",onClick:J,children:[D,G]}),e[31]=G,e[32]=O):O=e[32];const k=O;let E;e[33]!==s?(E=s("mainPanelTabs.hostingTab.redirects"),e[33]=s,e[34]=E):E=e[34];const B=i.length>0?k:void 0;let X;e[35]!==k||e[36]!==_.isPending||e[37]!==R||e[38]!==m||e[39]!==c||e[40]!==v.isPending||e[41]!==i||e[42]!==s?(X=c?t.jsx(ht,{}):m?t.jsx(Ie,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.redirectsError")})}):i.length===0?t.jsx(Ie,{children:t.jsx(Ze,{icon:t.jsx(Gt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noRedirects"),className:"py-10",buttonComponent:k})}):t.jsx(Ie,{children:i.map((z,Tt)=>{const Kt=es(z.from),$t=R===z.from;return t.jsxs("div",{children:[t.jsxs(pt,{children:[Kt?t.jsx(Ut,{open:$t,onClick:()=>w($t?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(Is,{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:()=>p(z),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(Ls,{})}),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(hs,{open:$t,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]=i,e[42]=s,e[43]=X):X=e[43];let te;e[44]!==d||e[45]!==s?(te=d!=null?s("mainPanelTabs.hostingTab.editRedirectTitle"):s("mainPanelTabs.hostingTab.addRedirectTitle"),e[44]=d,e[45]=s,e[46]=te):te=e[46];let K;e[47]!==te?(K=t.jsx(yt,{children:t.jsx(St,{children:te})}),e[47]=te,e[48]=K):K=e[48];let ne;e[49]!==Y?(ne=z=>{z.preventDefault(),Y()},e[49]=Y,e[50]=ne):ne=e[50];let ie;e[51]!==s?(ie=s("mainPanelTabs.hostingTab.colFrom"),e[51]=s,e[52]=ie):ie=e[52];let Pe;e[53]!==ie?(Pe=t.jsx(Xe,{htmlFor:"redirect-from",children:ie}),e[53]=ie,e[54]=Pe):Pe=e[54];let Ce;e[55]!==s?(Ce=s("mainPanelTabs.hostingTab.redirectFromPlaceholder"),e[55]=s,e[56]=Ce):Ce=e[56];let me;e[57]===Symbol.for("react.memo_cache_sentinel")?(me=z=>g(z.target.value),e[57]=me):me=e[57];const pe=d!=null||v.isPending;let le;e[58]!==u||e[59]!==Ce||e[60]!==pe?(le=t.jsx(it,{id:"redirect-from",placeholder:Ce,value:u,onChange:me,className:"font-mono text-xs",disabled:pe}),e[58]=u,e[59]=Ce,e[60]=pe,e[61]=le):le=e[61];let ae;e[62]!==Pe||e[63]!==le?(ae=t.jsxs("div",{className:"flex flex-col gap-2",children:[Pe,le]}),e[62]=Pe,e[63]=le,e[64]=ae):ae=e[64];let de;e[65]!==s?(de=s("mainPanelTabs.hostingTab.colTo"),e[65]=s,e[66]=de):de=e[66];let De;e[67]!==de?(De=t.jsx(Xe,{htmlFor:"redirect-to",children:de}),e[67]=de,e[68]=De):De=e[68];let fe;e[69]!==s?(fe=s("mainPanelTabs.hostingTab.redirectToPlaceholder"),e[69]=s,e[70]=fe):fe=e[70];let ue;e[71]===Symbol.for("react.memo_cache_sentinel")?(ue=z=>N(z.target.value),e[71]=ue):ue=e[71];let oe;e[72]!==h||e[73]!==v.isPending||e[74]!==fe?(oe=t.jsx(it,{id:"redirect-to",placeholder:fe,value:h,onChange:ue,className:"font-mono text-xs",disabled:v.isPending}),e[72]=h,e[73]=v.isPending,e[74]=fe,e[75]=oe):oe=e[75];let Te;e[76]!==De||e[77]!==oe?(Te=t.jsxs("div",{className:"flex flex-col gap-2",children:[De,oe]}),e[76]=De,e[77]=oe,e[78]=Te):Te=e[78];let he;e[79]!==s?(he=s("mainPanelTabs.hostingTab.colType"),e[79]=s,e[80]=he):he=e[80];let xe;e[81]!==he?(xe=t.jsx(Xe,{children:he}),e[81]=he,e[82]=xe):xe=e[82];let ve;e[83]===Symbol.for("react.memo_cache_sentinel")?(ve=z=>P(z==="temporary"?"temporary":"permanent"),e[83]=ve):ve=e[83];const ye=v.isPending;let ge;e[84]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx(Ot,{className:"w-full",children:t.jsx(Bt,{})}),e[84]=ge):ge=e[84];let re;e[85]!==s?(re=s("mainPanelTabs.hostingTab.permanent"),e[85]=s,e[86]=re):re=e[86];let be;e[87]!==re?(be=t.jsx(ft,{value:"permanent",children:re}),e[87]=re,e[88]=be):be=e[88];let we;e[89]!==s?(we=s("mainPanelTabs.hostingTab.temporary"),e[89]=s,e[90]=we):we=e[90];let $;e[91]!==we?($=t.jsx(ft,{value:"temporary",children:we}),e[91]=we,e[92]=$):$=e[92];let se;e[93]!==be||e[94]!==$?(se=t.jsxs(Mt,{children:[be,$]}),e[93]=be,e[94]=$,e[95]=se):se=e[95];let Se;e[96]!==C||e[97]!==v.isPending||e[98]!==se?(Se=t.jsxs(qt,{value:C,onValueChange:ve,disabled:ye,children:[ge,se]}),e[96]=C,e[97]=v.isPending,e[98]=se,e[99]=Se):Se=e[99];let je;e[100]!==xe||e[101]!==Se?(je=t.jsxs("div",{className:"flex flex-col gap-2",children:[xe,Se]}),e[100]=xe,e[101]=Se,e[102]=je):je=e[102];let $e;e[103]!==d||e[104]!==u||e[105]!==i?($e=es(u)&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ts,{from:u,source:i.find(z=>z.from===d)?.source})}),e[103]=d,e[104]=u,e[105]=i,e[106]=$e):$e=e[106];let ze;e[107]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>b(!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(Ue,{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]!==h||e[115]!==v.isPending?(Be=v.isPending||!u.trim()||!h.trim(),e[113]=u,e[114]=h,e[115]=v.isPending,e[116]=Be):Be=e[116];let Ve;e[117]!==v.isPending||e[118]!==s?(Ve=v.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.save"),e[117]=v.isPending,e[118]=s,e[119]=Ve):Ve=e[119];let ke;e[120]!==Be||e[121]!==Ve?(ke=t.jsx(Ue,{type:"submit",disabled:Be,children:Ve}),e[120]=Be,e[121]=Ve,e[122]=ke):ke=e[122];let Je;e[123]!==_e||e[124]!==ke?(Je=t.jsxs(Nt,{children:[_e,ke]}),e[123]=_e,e[124]=ke,e[125]=Je):Je=e[125];let He;e[126]!==ne||e[127]!==ae||e[128]!==Te||e[129]!==je||e[130]!==$e||e[131]!==Je?(He=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:ne,children:[ae,Te,je,$e,Je]}),e[126]=ne,e[127]=ae,e[128]=Te,e[129]=je,e[130]=$e,e[131]=Je,e[132]=He):He=e[132];let Ee;e[133]!==K||e[134]!==He?(Ee=t.jsxs(Ct,{className:"sm:max-w-md",children:[K,He]}),e[133]=K,e[134]=He,e[135]=Ee):Ee=e[135];let Oe;e[136]!==x||e[137]!==Ee?(Oe=t.jsx(Dt,{open:x,onOpenChange:b,children:Ee}),e[136]=x,e[137]=Ee,e[138]=Oe):Oe=e[138];const Me=S!=null;let Qe;e[139]===Symbol.for("react.memo_cache_sentinel")?(Qe=z=>{z||y(null)},e[139]=Qe):Qe=e[139];let q;e[140]!==s?(q=s("mainPanelTabs.hostingTab.confirmDeleteRedirectTitle"),e[140]=s,e[141]=q):q=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]!==Me||e[152]!==q||e[153]!==L||e[154]!==Ne||e[155]!==We?(tt=t.jsx(wt,{open:Me,onOpenChange:Qe,title:q,description:L,confirmLabel:Ne,pending:_.isPending,onConfirm:We}),e[150]=_.isPending,e[151]=Me,e[152]=q,e[153]=L,e[154]=Ne,e[155]=We,e[156]=tt):tt=e[156];let st;return e[157]!==E||e[158]!==B||e[159]!==X||e[160]!==Oe||e[161]!==tt?(st=t.jsxs(ut,{title:E,actions:B,children:[X,Oe,tt]}),e[157]=E,e[158]=B,e[159]=X,e[160]=Oe,e[161]=tt,e[162]=st):st=e[162],st}function Nn(r){return ce.error(rt(r))}function Cn(r){return ce.error(rt(r))}function Dn(r){const e=Z.c(160),{base:o,orgSlug:l,site:a,secrets:i,isLoading:c,error:m}=r,s=Ae(),n=bt(),[x,b]=ee.useState(!1),[d,f]=ee.useState(""),[u,g]=ee.useState(""),[h,N]=ee.useState("runtime"),[C,P]=ee.useState(null);let S;e[0]!==l||e[1]!==n||e[2]!==a?(S=()=>n.invalidateQueries({queryKey:Ye.hostingSecrets(l,a)}),e[0]=l,e[1]=n,e[2]=a,e[3]=S):S=e[3];const y=S;let R;e[4]!==o?(R=q=>at(`${o}/secrets`,"PUT",q),e[4]=o,e[5]=R):R=e[5];let w;e[6]!==y||e[7]!==s?(w=()=>{y(),ce.success(s("mainPanelTabs.hostingTab.toastSecretSaved")),b(!1),f(""),g(""),N("runtime")},e[6]=y,e[7]=s,e[8]=w):w=e[8];let j;e[9]!==R||e[10]!==w?(j={mutationFn:R,onSuccess:w,onError:$n},e[9]=R,e[10]=w,e[11]=j):j=e[11];const T=lt(j);let V;e[12]!==o?(V=q=>at(`${o}/secrets/${encodeURIComponent(q.name)}?scope=${q.scope}`,"DELETE"),e[12]=o,e[13]=V):V=e[13];let M;e[14]!==y||e[15]!==s?(M=()=>{y(),ce.success(s("mainPanelTabs.hostingTab.toastSecretDeleted")),P(null)},e[14]=y,e[15]=s,e[16]=M):M=e[16];let F;e[17]!==V||e[18]!==M?(F={mutationFn:V,onSuccess:M,onError:wn},e[17]=V,e[18]=M,e[19]=F):F=e[19];const v=lt(F);let H;e[20]!==d||e[21]!==h||e[22]!==u||e[23]!==T||e[24]!==s?(H=()=>{const q=d.trim();if(!q){ce.error(s("mainPanelTabs.hostingTab.errorSecretNameRequired"));return}if(!u){ce.error(s("mainPanelTabs.hostingTab.errorSecretValueRequired"));return}T.mutate({name:q,value:u,scope:h})},e[20]=d,e[21]=h,e[22]=u,e[23]=T,e[24]=s,e[25]=H):H=e[25];const A=H;let Q,_;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=()=>b(!0),Q=t.jsx(Pt,{}),e[26]=Q,e[27]=_):(Q=e[26],_=e[27]);let W;e[28]!==s?(W=s("mainPanelTabs.hostingTab.addSecret"),e[28]=s,e[29]=W):W=e[29];let J;e[30]!==W?(J=t.jsxs(Ue,{size:"sm",variant:"outline",onClick:_,children:[Q,W]}),e[30]=W,e[31]=J):J=e[31];const U=J;let p;e[32]!==s?(p=s("mainPanelTabs.hostingTab.secrets"),e[32]=s,e[33]=p):p=e[33];const I=i.length>0?U:void 0;let Y;e[34]!==U||e[35]!==v.isPending||e[36]!==m||e[37]!==c||e[38]!==i||e[39]!==s?(Y=c?t.jsx(ht,{}):m?t.jsx(Ie,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.secretsError")})}):i.length===0?t.jsx(Ie,{children:t.jsx(Ze,{icon:t.jsx(Wt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noSecrets"),className:"py-10",buttonComponent:U})}):t.jsx(Ie,{children:i.map(q=>{const Ge=q.scope==="build"?"build":"runtime";return t.jsxs(pt,{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(xs,{scope:Ge})}),t.jsx("span",{className:"truncate font-mono text-xs",children:q.name}),q.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:q.name,scope:Ge}),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]},`${q.name}:${Ge}`)})}),e[34]=U,e[35]=v.isPending,e[36]=m,e[37]=c,e[38]=i,e[39]=s,e[40]=Y):Y=e[40];let D;e[41]!==s?(D=s("mainPanelTabs.hostingTab.addSecretTitle"),e[41]=s,e[42]=D):D=e[42];let G;e[43]!==D?(G=t.jsx(yt,{children:t.jsx(St,{children:D})}),e[43]=D,e[44]=G):G=e[44];let O;e[45]!==A?(O=q=>{q.preventDefault(),A()},e[45]=A,e[46]=O):O=e[46];let k;e[47]!==s?(k=s("mainPanelTabs.hostingTab.colName"),e[47]=s,e[48]=k):k=e[48];let E;e[49]!==k?(E=t.jsx(Xe,{htmlFor:"secret-name",children:k}),e[49]=k,e[50]=E):E=e[50];let B;e[51]!==s?(B=s("mainPanelTabs.hostingTab.secretNamePlaceholder"),e[51]=s,e[52]=B):B=e[52];let X;e[53]===Symbol.for("react.memo_cache_sentinel")?(X=q=>f(q.target.value),e[53]=X):X=e[53];let te;e[54]!==d||e[55]!==T.isPending||e[56]!==B?(te=t.jsx(it,{id:"secret-name",placeholder:B,value:d,onChange:X,className:"font-mono text-xs",autoComplete:"off",disabled:T.isPending}),e[54]=d,e[55]=T.isPending,e[56]=B,e[57]=te):te=e[57];let K;e[58]!==E||e[59]!==te?(K=t.jsxs("div",{className:"flex flex-col gap-2",children:[E,te]}),e[58]=E,e[59]=te,e[60]=K):K=e[60];let ne;e[61]!==s?(ne=s("mainPanelTabs.hostingTab.colValue"),e[61]=s,e[62]=ne):ne=e[62];let ie;e[63]!==ne?(ie=t.jsx(Xe,{htmlFor:"secret-value",children:ne}),e[63]=ne,e[64]=ie):ie=e[64];let Pe;e[65]!==s?(Pe=s("mainPanelTabs.hostingTab.secretValuePlaceholder"),e[65]=s,e[66]=Pe):Pe=e[66];let Ce;e[67]===Symbol.for("react.memo_cache_sentinel")?(Ce=q=>g(q.target.value),e[67]=Ce):Ce=e[67];let me;e[68]!==u||e[69]!==T.isPending||e[70]!==Pe?(me=t.jsx(it,{id:"secret-value",type:"password",placeholder:Pe,value:u,onChange:Ce,className:"font-mono text-xs",autoComplete:"new-password",disabled:T.isPending}),e[68]=u,e[69]=T.isPending,e[70]=Pe,e[71]=me):me=e[71];let pe;e[72]!==ie||e[73]!==me?(pe=t.jsxs("div",{className:"flex flex-col gap-2",children:[ie,me]}),e[72]=ie,e[73]=me,e[74]=pe):pe=e[74];let le;e[75]!==s?(le=s("mainPanelTabs.hostingTab.secretScope"),e[75]=s,e[76]=le):le=e[76];let ae;e[77]!==le?(ae=t.jsx(Xe,{children:le}),e[77]=le,e[78]=ae):ae=e[78];let de;e[79]===Symbol.for("react.memo_cache_sentinel")?(de=q=>N(q==="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(Mt,{children:[oe,he]}),e[89]=oe,e[90]=he,e[91]=xe):xe=e[91];let ve;e[92]!==h||e[93]!==T.isPending||e[94]!==xe?(ve=t.jsxs(qt,{value:h,onValueChange:de,disabled:De,children:[fe,xe]}),e[92]=h,e[93]=T.isPending,e[94]=xe,e[95]=ve):ve=e[95];let ye;e[96]!==h||e[97]!==s?(ye=s(h==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[96]=h,e[97]=s,e[98]=ye):ye=e[98];let ge;e[99]!==ye?(ge=t.jsx("p",{className:"text-xs text-muted-foreground",children:ye}),e[99]=ye,e[100]=ge):ge=e[100];let re;e[101]!==ae||e[102]!==ve||e[103]!==ge?(re=t.jsxs("div",{className:"flex flex-col gap-2",children:[ae,ve,ge]}),e[101]=ae,e[102]=ve,e[103]=ge,e[104]=re):re=e[104];let be;e[105]===Symbol.for("react.memo_cache_sentinel")?(be=()=>b(!1),e[105]=be):be=e[105];const we=T.isPending;let $;e[106]!==s?($=s("mainPanelTabs.hostingTab.cancel"),e[106]=s,e[107]=$):$=e[107];let se;e[108]!==T.isPending||e[109]!==$?(se=t.jsx(Ue,{variant:"outline",type:"button",onClick:be,disabled:we,children:$}),e[108]=T.isPending,e[109]=$,e[110]=se):se=e[110];let Se;e[111]!==d||e[112]!==u||e[113]!==T.isPending?(Se=T.isPending||!d.trim()||!u,e[111]=d,e[112]=u,e[113]=T.isPending,e[114]=Se):Se=e[114];let je;e[115]!==T.isPending||e[116]!==s?(je=T.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.add"),e[115]=T.isPending,e[116]=s,e[117]=je):je=e[117];let $e;e[118]!==Se||e[119]!==je?($e=t.jsx(Ue,{type:"submit",disabled:Se,children:je}),e[118]=Se,e[119]=je,e[120]=$e):$e=e[120];let ze;e[121]!==se||e[122]!==$e?(ze=t.jsxs(Nt,{children:[se,$e]}),e[121]=se,e[122]=$e,e[123]=ze):ze=e[123];let Ke;e[124]!==O||e[125]!==K||e[126]!==pe||e[127]!==re||e[128]!==ze?(Ke=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:O,children:[K,pe,re,ze]}),e[124]=O,e[125]=K,e[126]=pe,e[127]=re,e[128]=ze,e[129]=Ke):Ke=e[129];let Le;e[130]!==G||e[131]!==Ke?(Le=t.jsxs(Ct,{className:"sm:max-w-md",children:[G,Ke]}),e[130]=G,e[131]=Ke,e[132]=Le):Le=e[132];let _e;e[133]!==x||e[134]!==Le?(_e=t.jsx(Dt,{open:x,onOpenChange:b,children:Le}),e[133]=x,e[134]=Le,e[135]=_e):_e=e[135];const Be=C!=null;let Ve;e[136]===Symbol.for("react.memo_cache_sentinel")?(Ve=q=>{q||P(null)},e[136]=Ve):Ve=e[136];let ke;e[137]!==s?(ke=s("mainPanelTabs.hostingTab.confirmDeleteSecretTitle"),e[137]=s,e[138]=ke):ke=e[138];const Je=C?.name??"";let He;e[139]!==s||e[140]!==Je?(He=s("mainPanelTabs.hostingTab.confirmDeleteSecretDescription",{name:Je}),e[139]=s,e[140]=Je,e[141]=He):He=e[141];let Ee;e[142]!==s?(Ee=s("mainPanelTabs.hostingTab.deleteSecret"),e[142]=s,e[143]=Ee):Ee=e[143];let Oe;e[144]!==v||e[145]!==C?(Oe=()=>{C&&v.mutate(C)},e[144]=v,e[145]=C,e[146]=Oe):Oe=e[146];let Me;e[147]!==v.isPending||e[148]!==Be||e[149]!==ke||e[150]!==He||e[151]!==Ee||e[152]!==Oe?(Me=t.jsx(wt,{open:Be,onOpenChange:Ve,title:ke,description:He,confirmLabel:Ee,pending:v.isPending,onConfirm:Oe}),e[147]=v.isPending,e[148]=Be,e[149]=ke,e[150]=He,e[151]=Ee,e[152]=Oe,e[153]=Me):Me=e[153];let Qe;return e[154]!==p||e[155]!==I||e[156]!==Y||e[157]!==_e||e[158]!==Me?(Qe=t.jsxs(ut,{title:p,actions:I,children:[Y,_e,Me]}),e[154]=p,e[155]=I,e[156]=Y,e[157]=_e,e[158]=Me,e[159]=Qe):Qe=e[159],Qe}function wn(r){return ce.error(rt(r))}function $n(r){return ce.error(rt(r))}const Ln=3e4;function _n(r){const e=Z.c(111),{virtualMcpId:o}=r,l=Ae(),{org:a}=js(),i=ys(o),c=Ss(i),m=!!c,s=c?`/api/${a.slug}/hosting/${encodeURIComponent(c)}`:"";let n;e[0]!==s||e[1]!==m?(n=(O,k)=>({queryKey:O,queryFn:()=>Qt(`${s}${k}`),enabled:m,retry:!1,staleTime:Ln}),e[0]=s,e[1]=m,e[2]=n):n=e[2];const x=n,b=c??"",d=ct(x(Ye.hostingDeployments(a.slug,b),"/deployments")),f=ct(x(Ye.hostingEnv(a.slug,b),"/env")),u=ct(x(Ye.hostingSecrets(a.slug,b),"/secrets")),g=ct(x(Ye.hostingRedirects(a.slug,b),"/redirects")),h=ct(x(Ye.hostingDomains(a.slug,b),"/domains"));if(!c){let O;e[3]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(_t,{className:"size-5"}),e[3]=O):O=e[3];let k;e[4]!==l?(k=l("mainPanelTabs.hostingTab.noSiteTitle"),e[4]=l,e[5]=k):k=e[5];let E;e[6]!==l?(E=l("mainPanelTabs.hostingTab.noSiteDescription"),e[6]=l,e[7]=E):E=e[7];let B;return e[8]!==k||e[9]!==E?(B=t.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:t.jsx(Ze,{icon:O,title:k,description:E})}),e[8]=k,e[9]=E,e[10]=B):B=e[10],B}if(jt(d.error)&&jt(f.error)&&jt(g.error)){let O;e[11]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(_t,{className:"size-5"}),e[11]=O):O=e[11];let k;e[12]!==l?(k=l("mainPanelTabs.hostingTab.notConnectedTitle"),e[12]=l,e[13]=k):k=e[13];let E;e[14]!==l?(E=l("mainPanelTabs.hostingTab.notConnectedDescription"),e[14]=l,e[15]=E):E=e[15];let B;return e[16]!==k||e[17]!==E?(B=t.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:t.jsx(Ze,{icon:O,title:k,description:E})}),e[16]=k,e[17]=E,e[18]=B):B=e[18],B}let C,P,S,y,R,w,j,T,V,M;if(e[19]!==d.data||e[20]!==h.data||e[21]!==f.data||e[22]!==g.data||e[23]!==u.data){P=mt(d.data,"items");let O;e[34]!==f.data?(O=mt(f.data,"vars"),e[34]=f.data,e[35]=O):O=e[35],R=O;let k;e[36]!==f.data?(k=mt(f.data,"codeVars"),e[36]=f.data,e[37]=k):k=e[37],C=k;let E;e[38]!==u.data?(E=mt(u.data,"secrets"),e[38]=u.data,e[39]=E):E=e[39],V=E;let B;e[40]!==g.data?(B=mt(g.data,"items"),e[40]=g.data,e[41]=B):B=e[41],T=B;const X=h.data;let te;e[42]!==X?.items?(te=X?.items??[],e[42]=X?.items,e[43]=te):te=e[43],y=te;let K;e[44]!==X?.dnsTemplate?(K=X?.dnsTemplate??[],e[44]=X?.dnsTemplate,e[45]=K):K=e[45],S=K;const ne=P.find(En);w=zt((ne??P.find(kn))?.framework),j=ne?.servingUrl??null,M=j?j.replace(/^https?:\/\//,"").replace(/\/$/,""):null,e[19]=d.data,e[20]=h.data,e[21]=f.data,e[22]=g.data,e[23]=u.data,e[24]=C,e[25]=P,e[26]=S,e[27]=y,e[28]=R,e[29]=w,e[30]=j,e[31]=T,e[32]=V,e[33]=M}else C=e[24],P=e[25],S=e[26],y=e[27],R=e[28],w=e[29],j=e[30],T=e[31],V=e[32],M=e[33];const F=M;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 H;e[50]!==l?(H=l("mainPanelTabs.hostingTab.title"),e[50]=l,e[51]=H):H=e[51];let A;e[52]!==w?(A=w&&t.jsx(Re,{variant:"secondary",children:w}),e[52]=w,e[53]=A):A=e[53];let Q;e[54]!==H||e[55]!==A?(Q=t.jsxs("span",{className:"inline-flex items-center gap-2.5",children:[H,A]}),e[54]=H,e[55]=A,e[56]=Q):Q=e[56];let _;e[57]!==v||e[58]!==Q?(_=t.jsx(Jt.Title,{actions:v,children:Q}),e[57]=v,e[58]=Q,e[59]=_):_=e[59];let W;e[60]!==F||e[61]!==j?(W=j&&F&&t.jsx("p",{className:"flex flex-wrap items-center gap-x-1.5 text-sm text-muted-foreground",children:t.jsxs("a",{href:j,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 font-mono text-xs text-foreground hover:underline",children:[F,t.jsx(kt,{className:"size-3"})]})}),e[60]=F,e[61]=j,e[62]=W):W=e[62];let J;e[63]!==_||e[64]!==W?(J=t.jsxs("div",{className:"flex flex-col gap-2",children:[_,W]}),e[63]=_,e[64]=W,e[65]=J):J=e[65];let U;e[66]!==s||e[67]!==P||e[68]!==d.error||e[69]!==d.isLoading||e[70]!==m||e[71]!==a.slug||e[72]!==c?(U=t.jsx(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]=U):U=e[73];let p;e[74]!==s||e[75]!==C||e[76]!==f.error||e[77]!==f.isLoading||e[78]!==R||e[79]!==a.slug||e[80]!==c?(p=t.jsx(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]=p):p=e[81];let I;e[82]!==s||e[83]!==a.slug||e[84]!==V||e[85]!==u.error||e[86]!==u.isLoading||e[87]!==c?(I=t.jsx(Dn,{base:s,orgSlug:a.slug,site:c,secrets:V,isLoading:u.isLoading,error:u.error}),e[82]=s,e[83]=a.slug,e[84]=V,e[85]=u.error,e[86]=u.isLoading,e[87]=c,e[88]=I):I=e[88];let Y;e[89]!==s||e[90]!==S||e[91]!==y||e[92]!==h.error||e[93]!==h.isLoading||e[94]!==a.slug||e[95]!==c?(Y=t.jsx(gn,{base:s,orgSlug:a.slug,site:c,domains:y,dnsTemplate:S,isLoading:h.isLoading,error:h.error}),e[89]=s,e[90]=S,e[91]=y,e[92]=h.error,e[93]=h.isLoading,e[94]=a.slug,e[95]=c,e[96]=Y):Y=e[96];let D;e[97]!==s||e[98]!==a.slug||e[99]!==T||e[100]!==g.error||e[101]!==g.isLoading||e[102]!==c?(D=t.jsx(Sn,{base:s,orgSlug:a.slug,site:c,redirects:T,isLoading:g.isLoading,error:g.error}),e[97]=s,e[98]=a.slug,e[99]=T,e[100]=g.error,e[101]=g.isLoading,e[102]=c,e[103]=D):D=e[103];let G;return e[104]!==U||e[105]!==p||e[106]!==I||e[107]!==Y||e[108]!==D||e[109]!==J?(G=t.jsx("div",{className:"h-full min-h-0 overflow-y-auto",children:t.jsx(Jt.Container,{width:"standard",children:t.jsxs(Ps,{children:[J,U,p,I,Y,D]})})}),e[104]=U,e[105]=p,e[106]=I,e[107]=Y,e[108]=D,e[109]=J,e[110]=G):G=e[110],G}function kn(r){return r.framework}function En(r){return r.up===!0}function Rn(){const r=Z.c(3),e=Ks(),o=Us();let l;return r[0]!==o.hosting||r[1]!==e?(l=o.hosting?t.jsx(_n,{virtualMcpId:e}):t.jsx(Qs,{virtualMcpId:e}),r[0]=o.hosting,r[1]=e,r[2]=l):l=r[2],l}function Ta(){const r=Z.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(vs.Content,{children:t.jsx(Rn,{})}),r[0]=e):e=r[0],e}export{Ta as default};