decocms 4.357.4 → 4.358.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 (258) hide show
  1. package/dist/client/assets/{AlertCircle-CBd9kERr.js → AlertCircle-DPaRwgAG.js} +1 -1
  2. package/dist/client/assets/{AreaChart-mq1z999O.js → AreaChart-CPSJGT4X.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BjRYjvHK.js → ArrowLeft-XjRNFRv1.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-Ch_JzAKL.js → ArrowRight-J-petX6f.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BreiqpEz.js → ArrowUp-CaHcPB8P.js} +1 -1
  6. package/dist/client/assets/{Check-DqkacOOo.js → Check-JeFVYVsD.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-BTv_HNPs.js → CheckCircle-B4aCNQJF.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-DzmLWKAo.js → ChevronRight-CTXDn067.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-D1pSeQIS.js → ChevronSelectorVertical-BdzqI_Xi.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-DuOOHGIB.js → ChevronUp-D737agYe.js} +1 -1
  11. package/dist/client/assets/{Copy01-l2VRotFt.js → Copy01-6dDv22T0.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-BMkeXieC.js → CreditCard01-vUDzOCKN.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-DxIFAaFG.js → DotsVertical-C_GXibMO.js} +1 -1
  14. package/dist/client/assets/{Download01-BWA6sHtg.js → Download01-Cj7iGaqQ.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-x0zZ8XkO.js → ErrorBarContext-DkoZiC3w.js} +1 -1
  16. package/dist/client/assets/{Eye-YIGHsl-L.js → Eye-CE-B81UX.js} +1 -1
  17. package/dist/client/assets/{GitBranch01-BVCazP-u.js → GitBranch01-CA7uP9ea.js} +1 -1
  18. package/dist/client/assets/{Globe01-C8MxLRkP.js → Globe01-C4bqo-s6.js} +1 -1
  19. package/dist/client/assets/{HardDrive-BS0obIOG.js → HardDrive-BXwcYpMb.js} +1 -1
  20. package/dist/client/assets/{Image01-EbJSXFxN.js → Image01-CPXhRcpD.js} +1 -1
  21. package/dist/client/assets/{Key01-BFkiELTT.js → Key01-BRzVe6En.js} +1 -1
  22. package/dist/client/assets/{Link01-C6iFD_1F.js → Link01-jwUl0VA2.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-DqKHzw9U.js → LinkExternal01-CQkNNysg.js} +1 -1
  24. package/dist/client/assets/{Monitor01-Cxz_eAVo.js → Monitor01-BEXQ2Ufe.js} +1 -1
  25. package/dist/client/assets/{Package-CXlEv3H8.js → Package-CWgS7aGL.js} +1 -1
  26. package/dist/client/assets/{Palette-DbewMeGN.js → Palette-CJp_qQUp.js} +1 -1
  27. package/dist/client/assets/{Play-CEPPAIh5.js → Play-DXr4SlB4.js} +1 -1
  28. package/dist/client/assets/{Plus-DgxBd8rk.js → Plus-VBzAzGvj.js} +1 -1
  29. package/dist/client/assets/{SearchLg-AFAJsxFc.js → SearchLg-eFvz4geh.js} +1 -1
  30. package/dist/client/assets/{SearchMd-DeIp0WHu.js → SearchMd-Z0aCyP31.js} +1 -1
  31. package/dist/client/assets/{Sector-CXxvJnen.js → Sector-BNkZJTvV.js} +1 -1
  32. package/dist/client/assets/{Settings02-Dr-zcWez.js → Settings02-Cruxvgg5.js} +1 -1
  33. package/dist/client/assets/{Share07-fCS-0opG.js → Share07-B_cBawT5.js} +1 -1
  34. package/dist/client/assets/{Shield01-Co61R0sU.js → Shield01-CdZECJoy.js} +1 -1
  35. package/dist/client/assets/{Stars01-C4Zmu7Ep.js → Stars01-DhZ4bIeh.js} +1 -1
  36. package/dist/client/assets/{Sun-BWedp7Qb.js → Sun-yIhUijXR.js} +1 -1
  37. package/dist/client/assets/{Tool01-CCYiLfpn.js → Tool01-CED40lZm.js} +1 -1
  38. package/dist/client/assets/{Tool02-C1pNmKnM.js → Tool02-BXyLkOoT.js} +1 -1
  39. package/dist/client/assets/{Trash01-DWldj1cf.js → Trash01-D4zzNKOs.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-CqdHzjJu.js → TrendUp01-BS25tCwK.js} +1 -1
  41. package/dist/client/assets/{Upload01-BECJfTWE.js → Upload01-CUqXLK6y.js} +1 -1
  42. package/dist/client/assets/{User01-CTfDcS5e.js → User01-DE5O7H7j.js} +1 -1
  43. package/dist/client/assets/{UserSquare-BMpPM1Vn.js → UserSquare-BX0Y2TWZ.js} +1 -1
  44. package/dist/client/assets/{Users01-C2R2z6TK.js → Users01-DuDTleoN.js} +1 -1
  45. package/dist/client/assets/{Users03-jUFurcPA.js → Users03-BRuCKyfI.js} +1 -1
  46. package/dist/client/assets/{XCircle-DbggDpQ5.js → XCircle-B04wAQpu.js} +1 -1
  47. package/dist/client/assets/{XClose-D3lJp_3C.js → XClose-DNLErYyb.js} +1 -1
  48. package/dist/client/assets/{Zap-C6wi2cLw.js → Zap-CugJ59Kw.js} +1 -1
  49. package/dist/client/assets/{ZoomOut-B00NO3iw.js → ZoomOut-BiO8sX4m.js} +1 -1
  50. package/dist/client/assets/{access-gate-aFqluTVu.js → access-gate-DNscBn-J.js} +1 -1
  51. package/dist/client/assets/{agent-icon-BAqALP_H.js → agent-icon-2Brp-tzf.js} +1 -1
  52. package/dist/client/assets/{agents-list-4yU2K_0F.js → agents-list-MYf1OTmf.js} +1 -1
  53. package/dist/client/assets/{ai-providers-ny9nWlU9.js → ai-providers-IEvC3m_0.js} +1 -1
  54. package/dist/client/assets/{alert-BeXN7wDK.js → alert-DA4bcZHo.js} +1 -1
  55. package/dist/client/assets/{alert-dialog-CsEW_ZuO.js → alert-dialog-BxnHhmWY.js} +1 -1
  56. package/dist/client/assets/{analytics-tab-BX5cJidk.js → analytics-tab-C65wb6yE.js} +1 -1
  57. package/dist/client/assets/{api-keys-CMxXjzZz.js → api-keys-CLUI5yOt.js} +1 -1
  58. package/dist/client/assets/api-keys-DuO6DGVm.js +1 -0
  59. package/dist/client/assets/{app-editor-Dxh3NtkV.js → app-editor-CW_Z-zSE.js} +1 -1
  60. package/dist/client/assets/{auth-CauVv39M.js → auth-C1sSy1I_.js} +1 -1
  61. package/dist/client/assets/{auth-catchall-DcAs8UF7.js → auth-catchall-Cl51b39x.js} +1 -1
  62. package/dist/client/assets/{auth-entry-D9BTQgv6.js → auth-entry-DwA_XRHv.js} +1 -1
  63. package/dist/client/assets/{auth-split-layout-XVrtOA8P.js → auth-split-layout-DPCEizTJ.js} +1 -1
  64. package/dist/client/assets/{authenticate-and-persist-oauth-CgnQlNZ8.js → authenticate-and-persist-oauth-BIhqpyGw.js} +1 -1
  65. package/dist/client/assets/{automation-list-row-C-JbyWG5.js → automation-list-row-BPDjHB4X.js} +1 -1
  66. package/dist/client/assets/{automation-runs-Bzce-lss.js → automation-runs-fa-TFht1.js} +1 -1
  67. package/dist/client/assets/{automations-qedng0rR.js → automations-CZnQfZ3w.js} +1 -1
  68. package/dist/client/assets/{autosend-SS5aZjSF.js → autosend-DoFxpWqR.js} +1 -1
  69. package/dist/client/assets/{avatar-DXXjOQK5.js → avatar-QqQiR6fK.js} +1 -1
  70. package/dist/client/assets/{badge-BHXGD-K5.js → badge-yMyvOLD3.js} +1 -1
  71. package/dist/client/assets/{block-document-xWGFz7hu.js → block-document-WJ37E3Ni.js} +1 -1
  72. package/dist/client/assets/{breadcrumb-CLQCquYY.js → breadcrumb-BDAUanwC.js} +1 -1
  73. package/dist/client/assets/{buckets-Bs-iSQfs.js → buckets-etYgDqf7.js} +1 -1
  74. package/dist/client/assets/{bulk-category-panel-BoCBqYcl.js → bulk-category-panel-TjU9hA6M.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-BTHd06DV.js → capability-load-error-DkvKRx5b.js} +1 -1
  76. package/dist/client/assets/{cards-Bg8Jxlkr.js → cards-J1P_sgLl.js} +1 -1
  77. package/dist/client/assets/{category-editor-Te8j9aPs.js → category-editor-CnqXWFJe.js} +1 -1
  78. package/dist/client/assets/{cdn-tab-BSrgHBDl.js → cdn-tab-CdoMepAY.js} +1 -1
  79. package/dist/client/assets/{chart-DqlN_aNX.js → chart-DgJ8Lj_z.js} +1 -1
  80. package/dist/client/assets/{chat-context-B6tUHlAE.js → chat-context-DxI0qb93.js} +1 -1
  81. package/dist/client/assets/{checkbox-CdLxQJZz.js → checkbox-Bv_GOC-t.js} +1 -1
  82. package/dist/client/assets/{choose-editor-C-cOJhM2.js → choose-editor-C7AIaX6k.js} +1 -1
  83. package/dist/client/assets/{cli-auth-success-BIEZetIo.js → cli-auth-success-CXVZFO0S.js} +1 -1
  84. package/dist/client/assets/{client-icons-CaXsC6fg.js → client-icons-DdaC6sYj.js} +1 -1
  85. package/dist/client/assets/{collection-detail-B6JpJyBT.js → collection-detail-D8Fgfe_y.js} +1 -1
  86. package/dist/client/assets/{collection-display-button-Ds2G7tTD.js → collection-display-button-DoLL3dHH.js} +1 -1
  87. package/dist/client/assets/{collection-search-BEeyUT2p.js → collection-search-28-_kNJz.js} +1 -1
  88. package/dist/client/assets/{collection-table-wrapper-BPX29dVz.js → collection-table-wrapper-CeD9_VYm.js} +1 -1
  89. package/dist/client/assets/{collection-tabs-BFgE8VhE.js → collection-tabs-0xbXLZOC.js} +1 -1
  90. package/dist/client/assets/{command-D6vFPSCI.js → command-CbxQwPAk.js} +1 -1
  91. package/dist/client/assets/{commerce-onboarding-DHHRbGQ7.js → commerce-onboarding-DltC125X.js} +1 -1
  92. package/dist/client/assets/{connect-B6ba4h_O.js → connect-DqjDrR3h.js} +1 -1
  93. package/dist/client/assets/{connect-layout-tQE9fQwK.js → connect-layout-Bu0WZMR_.js} +1 -1
  94. package/dist/client/assets/{connection-card-Bq-bNVSb.js → connection-card-Bzr21Ou8.js} +1 -1
  95. package/dist/client/assets/{connection-detail-ChtbSdgP.js → connection-detail-BDNGZ8tC.js} +1 -1
  96. package/dist/client/assets/{connection-form-helpers-BRqiHsa1.js → connection-form-helpers-B4cG-D7o.js} +1 -1
  97. package/dist/client/assets/{connection-XbVIg3WZ.js → connection-v15YrTSw.js} +1 -1
  98. package/dist/client/assets/{connections-kdNWqRmk.js → connections-B-hlfNZJ.js} +1 -1
  99. package/dist/client/assets/{create-organization-dialog-_SPLe5kk.js → create-organization-dialog-BklPNOel.js} +1 -1
  100. package/dist/client/assets/{decopilot-sse-pool-BXVf9Dkw.js → decopilot-sse-pool-BnSfF29I.js} +1 -1
  101. package/dist/client/assets/{dialog-DDlyX8zJ.js → dialog-BKi4ovai.js} +1 -1
  102. package/dist/client/assets/{domain-settings-coQRiz8e.js → domain-settings-BYWSoGqG.js} +1 -1
  103. package/dist/client/assets/{drawer-DwjjcAEk.js → drawer-Brlbfw3K.js} +1 -1
  104. package/dist/client/assets/{dropdown-menu-ICXmOu_l.js → dropdown-menu-cKkiZvfH.js} +1 -1
  105. package/dist/client/assets/{e2e-tab-C7m2E4Rd.js → e2e-tab-AK0drfJR.js} +1 -1
  106. package/dist/client/assets/{editor-TbLNsIFy.js → editor-5C9HKUf_.js} +1 -1
  107. package/dist/client/assets/{empty-state-hUIlBR3q.js → empty-state-CSwM--V8.js} +1 -1
  108. package/dist/client/assets/{empty-state-D_WbIpYR.js → empty-state-QWKD3zPq.js} +1 -1
  109. package/dist/client/assets/{extract-connection-data-BmQLXIgr.js → extract-connection-data-CxL8-WFV.js} +1 -1
  110. package/dist/client/assets/{file-explorer-Bma_J7tg.js → file-explorer-2Qp6thGj.js} +1 -1
  111. package/dist/client/assets/{file-type-icon-B1cjMMrB.js → file-type-icon-CgIeRA5V.js} +1 -1
  112. package/dist/client/assets/{folder-icon-s_xB5zRI.js → folder-icon-BgXuWGYM.js} +1 -1
  113. package/dist/client/assets/{form-D6PYqRbd.js → form-mXpbE17u.js} +1 -1
  114. package/dist/client/assets/{general-BPPsQyiV.js → general-CrLocpSx.js} +1 -1
  115. package/dist/client/assets/{github-icon-B99drnXh.js → github-icon-CoGoMYrC.js} +1 -1
  116. package/dist/client/assets/{hooks-b4KT4QM3.js → hooks-d3UYkGk8.js} +1 -1
  117. package/dist/client/assets/{index-CsCqMGDA.js → index--oE26u5Z.js} +1 -1
  118. package/dist/client/assets/{index-hIfwEZtB.js → index-BhQz8p58.js} +1 -1
  119. package/dist/client/assets/{index-DGnV1pVM.js → index-BotDajI_.js} +1 -1
  120. package/dist/client/assets/{index-BLnFneGf.js → index-C0SGJ6GK.js} +1 -1
  121. package/dist/client/assets/{index-Byx2pRmC.js → index-C3vlrgoO.js} +2 -2
  122. package/dist/client/assets/index-ClTC9lyB.js +1 -0
  123. package/dist/client/assets/{index-BOPkC2j-.js → index-Cu5G9hQZ.js} +1 -1
  124. package/dist/client/assets/{index-Bl_g7jZS.js → index-D7dBG_xb.js} +1 -1
  125. package/dist/client/assets/{index-PiHaJx_C.js → index-DWLzuJaz.js} +1 -1
  126. package/dist/client/assets/{index-BowyqHsG.js → index-DZ0DPlBW.js} +1 -1
  127. package/dist/client/assets/{index-Di6eWooH.js → index-GEMwVlLI.js} +6 -6
  128. package/dist/client/assets/{index-DJNj_4wi.js → index-bbgkkxsB.js} +1 -1
  129. package/dist/client/assets/{index-redirect-DYk-nRVL.js → index-redirect-I7csUGQa.js} +1 -1
  130. package/dist/client/assets/{infiniteQueryObserver-f1Mg7m56.js → infiniteQueryObserver-B6plkr5u.js} +1 -1
  131. package/dist/client/assets/{infra-billing-DI5KBT8c.js → infra-billing-D7w1W9Om.js} +1 -1
  132. package/dist/client/assets/{input-C_xB1yG3.js → input-DjDT3ozl.js} +1 -1
  133. package/dist/client/assets/{integration-icon-DZ8Y6sMt.js → integration-icon-YB5qEO1J.js} +1 -1
  134. package/dist/client/assets/{invite-member-dialog-CAjrXPwV.js → invite-member-dialog-Bn1ycp_V.js} +1 -1
  135. package/dist/client/assets/{label-Blftr3En.js → label-DZ4z0CyF.js} +1 -1
  136. package/dist/client/assets/{layout-BO7PirZP.js → layout-Bf8dZkIH.js} +1 -1
  137. package/dist/client/assets/{login-9K2GwDxa.js → login-COTODW0U.js} +1 -1
  138. package/dist/client/assets/{markdown-htg7W98G.js → markdown-BsaXwE5E.js} +1 -1
  139. package/dist/client/assets/{mcp-app-renderer-C4rMJv7P.js → mcp-app-renderer-BIDmKHPE.js} +1 -1
  140. package/dist/client/assets/{mcp-oauth-De161Gif.js → mcp-oauth-BH_5gt0z.js} +1 -1
  141. package/dist/client/assets/{members-AIXa7ftr.js → members-BNkTVkyS.js} +1 -1
  142. package/dist/client/assets/{monaco-editor-D5wA_jK1.js → monaco-editor-CmzYFyFO.js} +1 -1
  143. package/dist/client/assets/{monitoring-stats-row-Cp6q_jYB.js → monitoring-stats-row-DJUu-f5P.js} +1 -1
  144. package/dist/client/assets/{multi-select-Bx_buGuu.js → multi-select-nhzAp1k1.js} +1 -1
  145. package/dist/client/assets/{oauth-callback-CyzcCrM7.js → oauth-callback-Uw1X8Rm8.js} +1 -1
  146. package/dist/client/assets/{oauth-callback-ai-provider-DtoEmSsC.js → oauth-callback-ai-provider-BWp4BRgr.js} +1 -1
  147. package/dist/client/assets/{onboarding-D8AEYxv4.js → onboarding-BOMneDTJ.js} +1 -1
  148. package/dist/client/assets/{org-layout-BFiiuFZn.js → org-layout-D6PNY6Ib.js} +1 -1
  149. package/dist/client/assets/{organization-choice-CpemJcb4.js → organization-choice-DsLSY9bh.js} +1 -1
  150. package/dist/client/assets/{orgs-CzixhYYe.js → orgs-BjjFeeii.js} +1 -1
  151. package/dist/client/assets/{page-seo-form-CVnOe5gs.js → page-seo-form-DMqXi0PY.js} +1 -1
  152. package/dist/client/assets/{popover-Brk4eSJE.js → popover-BNMBwf36.js} +1 -1
  153. package/dist/client/assets/{post-calendar-DopvucTb.js → post-calendar-Tdl1cWb4.js} +1 -1
  154. package/dist/client/assets/{post-editor-Yfz-5ovJ.js → post-editor-Jxhwxzu9.js} +1 -1
  155. package/dist/client/assets/{primitives-DsuPOFEy.js → primitives-eDVkDLyD.js} +1 -1
  156. package/dist/client/assets/{profile-Bl0Q_gwt.js → profile-CwwUYHeI.js} +1 -1
  157. package/dist/client/assets/{project-app-view-DG08ufF_.js → project-app-view-DvSxxiMZ.js} +1 -1
  158. package/dist/client/assets/{project-icon-FvFivmfl.js → project-icon-B33pWTBF.js} +1 -1
  159. package/dist/client/assets/{prompts-nGbx68yG.js → prompts-cFL0cJDn.js} +1 -1
  160. package/dist/client/assets/record-editor-DmB0-QoJ.js +1 -0
  161. package/dist/client/assets/redirect-editor-CUjqTuPf.js +1 -0
  162. package/dist/client/assets/registry-DC6hVBbv.js +2 -0
  163. package/dist/client/assets/{registry-layout-fiw4zfbz.js → registry-layout-D5fD-Otx.js} +1 -1
  164. package/dist/client/assets/{reports-CPZEEPeA.js → reports-aRuC8m37.js} +1 -1
  165. package/dist/client/assets/{repositories-BWXMUElK.js → repositories-nM4wwnxj.js} +1 -1
  166. package/dist/client/assets/{repository-import-picker-BV9RnTSy.js → repository-import-picker-DHQHo5M0.js} +1 -1
  167. package/dist/client/assets/{repository-picker-BCQoMPuh.js → repository-picker-Davl2db1.js} +1 -1
  168. package/dist/client/assets/{require-capability-BR8x5kxT.js → require-capability-Dh758p3I.js} +1 -1
  169. package/dist/client/assets/{required-auth-layout-HH2bVNBU.js → required-auth-layout-Uc_CkAJg.js} +1 -1
  170. package/dist/client/assets/{reset-password-BcmztWBA.js → reset-password-EEEdMymz.js} +1 -1
  171. package/dist/client/assets/{review-settings-DsvcuSGL.js → review-settings-CjBJZxkY.js} +1 -1
  172. package/dist/client/assets/{roles-COTP94rw.js → roles-CrX1vqT3.js} +1 -1
  173. package/dist/client/assets/{schema-japUOE_t.js → schema-DnToVa8P.js} +1 -1
  174. package/dist/client/assets/{scroll-area-D_kMudvf.js → scroll-area-2e4a5OfN.js} +1 -1
  175. package/dist/client/assets/{search-input-BWcQ33a7.js → search-input-CME3I8Cx.js} +1 -1
  176. package/dist/client/assets/{secrets-BSQjQh0P.js → secrets-qwifqiz3.js} +1 -1
  177. package/dist/client/assets/{sections-editor-D-RkJP16.js → sections-editor-C88ayfGP.js} +1 -1
  178. package/dist/client/assets/{select-Bry_eRAa.js → select-VPKdzxMt.js} +1 -1
  179. package/dist/client/assets/{select-model-D9FmitIE.js → select-model-CHfp8VKE.js} +1 -1
  180. package/dist/client/assets/{self-tool-result-BfrV1Xz8.js → self-tool-result-BAvGcAut.js} +1 -1
  181. package/dist/client/assets/{seo-editor-BrXiaNIN.js → seo-editor-Clpe4Rdt.js} +1 -1
  182. package/dist/client/assets/settings-layout-ktw7RoNC.js +1 -0
  183. package/dist/client/assets/{settings-sidebar-D4yrI8rl.js → settings-sidebar-CWNcptzM.js} +1 -1
  184. package/dist/client/assets/{shell-controls-BaxRvMFj.js → shell-controls-CmmBBJCt.js} +1 -1
  185. package/dist/client/assets/{shell-layout-DFrR6tdX.js → shell-layout-BLU43UIn.js} +1 -1
  186. package/dist/client/assets/{skill-preview-B5YPdiFy.js → skill-preview-BASX8Hpu.js} +1 -1
  187. package/dist/client/assets/{skills-DMaRc3HE.js → skills-aksi4LPg.js} +1 -1
  188. package/dist/client/assets/{sso-BW1JmFsY.js → sso-BTlZuOfj.js} +1 -1
  189. package/dist/client/assets/{store-DLooIHsR.js → store-BcoxyfGQ.js} +1 -1
  190. package/dist/client/assets/store-registry-BoIejWxm.js +2 -0
  191. package/dist/client/assets/{switch-CFcBe-39.js → switch-BhK2KylJ.js} +1 -1
  192. package/dist/client/assets/{synced-repos-D7XkPIWc.js → synced-repos-CR6g9wZL.js} +1 -1
  193. package/dist/client/assets/{table-CsCBd0lQ.js → table-5aEMIHUZ.js} +1 -1
  194. package/dist/client/assets/{tabs-CiF_JE3E.js → tabs-Cw42mozl.js} +1 -1
  195. package/dist/client/assets/{task-board-DUw5IESw.js → task-board-C1zp-ho0.js} +1 -1
  196. package/dist/client/assets/{task-route-B2F1kPjG.js → task-route-wg2gZHHJ.js} +1 -1
  197. package/dist/client/assets/{tasks-DlhF8s2O.js → tasks-DzpLWLqn.js} +1 -1
  198. package/dist/client/assets/{textarea-D7oZSRuU.js → textarea-Bf0SiHvR.js} +1 -1
  199. package/dist/client/assets/{thread-intent-D8peSDUi.js → thread-intent-BRW0j7-l.js} +1 -1
  200. package/dist/client/assets/{thread-route-CQ-Toekd.js → thread-route-BuT3Z3dy.js} +1 -1
  201. package/dist/client/assets/{toggle-group-C72d71bC.js → toggle-group-Cwb378pp.js} +1 -1
  202. package/dist/client/assets/{toolbar-JNnsJplx.js → toolbar-DX5jGVFs.js} +1 -1
  203. package/dist/client/assets/{toolbar-icon-button-BZmPXrm7.js → toolbar-icon-button-D4bCpf5Z.js} +1 -1
  204. package/dist/client/assets/{track-CVU5crkS.js → track-Dh5F_mbH.js} +1 -1
  205. package/dist/client/assets/{types-ZI4hLB92.js → types-B8HpU9JD.js} +1 -1
  206. package/dist/client/assets/{use-ai-providers-BizNuqZ_.js → use-ai-providers-B1HFrjua.js} +1 -1
  207. package/dist/client/assets/{use-automations-YKeF0GSq.js → use-automations-DbfJVsW4.js} +1 -1
  208. package/dist/client/assets/{use-autosave-D-mlBHqz.js → use-autosave-zP6tBKhw.js} +1 -1
  209. package/dist/client/assets/{use-connection-DyoJ3842.js → use-connection-lTfFnel8.js} +1 -1
  210. package/dist/client/assets/{use-copy--zGmPPwD.js → use-copy-DX7iyDKr.js} +1 -1
  211. package/dist/client/assets/{use-create-virtual-mcp-D0x4cwPb.js → use-create-virtual-mcp-CbuGNJJR.js} +1 -1
  212. package/dist/client/assets/{use-date-fns-locale--wtOnXlr.js → use-date-fns-locale-DCymTtPU.js} +1 -1
  213. package/dist/client/assets/{use-debounced-autosave-BhTrD5fo.js → use-debounced-autosave-Nz7DBL7e.js} +1 -1
  214. package/dist/client/assets/{use-debounced-value-jkfC9hMo.js → use-debounced-value-DxNd4y3x.js} +1 -1
  215. package/dist/client/assets/{use-decopilot-events-D8v0JTxh.js → use-decopilot-events-DWEiQT43.js} +1 -1
  216. package/dist/client/assets/{use-delete-connection-DD8d7DNZ.js → use-delete-connection-B_lk3bSX.js} +1 -1
  217. package/dist/client/assets/{use-deployment-admin-DIFYfbCd.js → use-deployment-admin-CqMmCaPd.js} +1 -1
  218. package/dist/client/assets/{use-destination-route-Dumfqkh7.js → use-destination-route-CE0McHhc.js} +1 -1
  219. package/dist/client/assets/{use-file-configs-D9SysYxD.js → use-file-configs-C5wJ1oSO.js} +1 -1
  220. package/dist/client/assets/{use-infinite-scroll-BcPSZiNZ.js → use-infinite-scroll-BAvQfIh1.js} +1 -1
  221. package/dist/client/assets/{use-join-requests-BxUq1QXo.js → use-join-requests-DcvE_USw.js} +1 -1
  222. package/dist/client/assets/{use-mcp-auth-status-BLT8d1nh.js → use-mcp-auth-status-Db54y-KA.js} +1 -1
  223. package/dist/client/assets/{use-mcp-client-zU4b6By6.js → use-mcp-client-D1ECnrcj.js} +1 -1
  224. package/dist/client/assets/{use-mcp-prompts-DdlH2qST.js → use-mcp-prompts-BZhbWvcv.js} +1 -1
  225. package/dist/client/assets/{use-mcp-tools-lB_BBgJh.js → use-mcp-tools-DMeVX7Jo.js} +1 -1
  226. package/dist/client/assets/{use-members-NeCLLrrB.js → use-members-BhMPk-px.js} +1 -1
  227. package/dist/client/assets/{use-navigate-to-agent-vf6CPdOT.js → use-navigate-to-agent-B570w3XH.js} +1 -1
  228. package/dist/client/assets/{use-org-auth-client-B5-qRoTn.js → use-org-auth-client-CDJgGWRT.js} +1 -1
  229. package/dist/client/assets/{use-org-notice-DWcI6MY4.js → use-org-notice-BqsplDoe.js} +1 -1
  230. package/dist/client/assets/{use-org-sso-HqaCDMyO.js → use-org-sso-C4AVAKlD.js} +1 -1
  231. package/dist/client/assets/{use-organization-roles-DlCblX5Z.js → use-organization-roles-BYgRSEKz.js} +1 -1
  232. package/dist/client/assets/{use-organization-settings-CTeI3cWs.js → use-organization-settings-BqfPlWlo.js} +1 -1
  233. package/dist/client/assets/{use-panel-navigate-D3xoeR8G.js → use-panel-navigate-2qkxUZs9.js} +1 -1
  234. package/dist/client/assets/{use-registry-connections-BVgKKT5B.js → use-registry-connections-BadGbohL.js} +1 -1
  235. package/dist/client/assets/{use-secrets-Cc8pMQzW.js → use-secrets-CeR6MIhP.js} +1 -1
  236. package/dist/client/assets/{use-section-preview-base-BoNPCZQq.js → use-section-preview-base-DJvxTS95.js} +1 -1
  237. package/dist/client/assets/{use-status-sounds-Cw4NWpev.js → use-status-sounds-D9JIu7Hm.js} +1 -1
  238. package/dist/client/assets/{use-tags-yrL3KCY2.js → use-tags-DGvXNc2e.js} +1 -1
  239. package/dist/client/assets/{use-view-mode-D8T6JwXp.js → use-view-mode-DehGA0b4.js} +1 -1
  240. package/dist/client/assets/{use-virtual-mcp-xxFiywxX.js → use-virtual-mcp-DHUIPWyc.js} +1 -1
  241. package/dist/client/assets/useInfiniteQuery-WKKEwCIs.js +1 -0
  242. package/dist/client/assets/useSuspenseInfiniteQuery-CPnLyRrb.js +1 -0
  243. package/dist/client/assets/{users-jQKQ0AmQ.js → users-IaJ805do.js} +1 -1
  244. package/dist/client/assets/{variant-calendar-peHOjrOX.js → variant-calendar-e4WVkRdr.js} +1 -1
  245. package/dist/client/assets/{view-mode-toggle-BoDOdBNJ.js → view-mode-toggle-DidX_Gh8.js} +1 -1
  246. package/dist/client/index.html +1 -1
  247. package/dist/server/cli.js +658 -658
  248. package/dist/server/server.js +415 -415
  249. package/package.json +1 -1
  250. package/dist/client/assets/api-keys-CaSLwL-s.js +0 -1
  251. package/dist/client/assets/index-BXPAtEBq.js +0 -1
  252. package/dist/client/assets/record-editor-CH3c8ZA9.js +0 -1
  253. package/dist/client/assets/redirect-editor-CyJ7GG7m.js +0 -1
  254. package/dist/client/assets/registry-Cvk1zzb3.js +0 -2
  255. package/dist/client/assets/settings-layout-Q_3ayXHZ.js +0 -1
  256. package/dist/client/assets/store-registry-BGd5ZVU6.js +0 -2
  257. package/dist/client/assets/useInfiniteQuery-CGwSzAR5.js +0 -1
  258. package/dist/client/assets/useSuspenseInfiniteQuery-oataxVbC.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "4.357.4",
3
+ "version": "4.358.1",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{c as o,j as r}from"./index-Byx2pRmC.js";import{O as m}from"./api-keys-CMxXjzZz.js";import{R as p}from"./require-capability-BR8x5kxT.js";import"./AlertCircle-CBd9kERr.js";import"./Copy01-l2VRotFt.js";import"./Key01-BFkiELTT.js";import"./Plus-DgxBd8rk.js";import"./Trash01-DWldj1cf.js";import"./alert-dialog-CsEW_ZuO.js";import"./dialog-DDlyX8zJ.js";import"./input-C_xB1yG3.js";import"./label-Blftr3En.js";import"./use-mcp-client-zU4b6By6.js";import"./auth-CauVv39M.js";import"./access-gate-aFqluTVu.js";import"./capability-load-error-BTHd06DV.js";function k(){const t=o.c(1);let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(p,{capability:"api-keys:manage",area:"api-keys",children:r.jsx(m,{})}),t[0]=i):i=t[0],i}export{k as default};
@@ -1 +0,0 @@
1
- import{c as ee,j as t,a1 as ss,B as Ie,a2 as ns,a4 as is,l as xt,b as Ae,b8 as dt,b6 as js,b1 as Ps,t as ce,n as bt,r as Z,e as lt,m as ct,K as Ye,bm as vs,bl as ys,bn as Ss,bo as Ns,z as Kt,G as Cs,P as Wt,b5 as Ds}from"./index-Byx2pRmC.js";import{n as _t}from"./LinkExternal01-DqKHzw9U.js";import{be as ws,bf as ls,aD as $s,aY as Ls,bg as _s,k as kt,C as Jt,av as Yt,aF as ks}from"./agent-icon-BAqALP_H.js";import{B as Re}from"./badge-BHXGD-K5.js";import{E as Ze}from"./empty-state-D_WbIpYR.js";import{u as Es}from"./use-virtual-mcp-xxFiywxX.js";import{r as Rs}from"./site-slug-uya6Wp4-.js";import{i as Fs}from"./AlertCircle-CBd9kERr.js";import{d as gt}from"./UserSquare-BMpPM1Vn.js";import{i as As}from"./Zap-C6wi2cLw.js";import{c as as,d as os,b as rs,f as cs,g as ms,e as ds,a as fs,A as us}from"./alert-dialog-CsEW_ZuO.js";import{d as zs,a as nt,T as Fe,c as Et,e as Rt,b as Ft}from"./table-CsCBd0lQ.js";import{i as hs}from"./ChevronRight-DzmLWKAo.js";import{a as Vs}from"./Copy01-l2VRotFt.js";import{am as Vt,an as Ht,al as Hs}from"./automation-runs-Bzce-lss.js";import{i as At}from"./Globe01-C8MxLRkP.js";import{s as Pt}from"./Plus-DgxBd8rk.js";import{s as vt}from"./Trash01-DWldj1cf.js";import{c as yt,d as St,e as Nt,b as Ct,D as Dt}from"./dialog-DDlyX8zJ.js";import{I as it}from"./input-C_xB1yG3.js";import{L as Xe}from"./label-Blftr3En.js";import{i as Bs}from"./Settings02-Dr-zcWez.js";import{s as Os}from"./Eye-YIGHsl-L.js";import{a as Bt,b as Ot,c as ft,d as qt,S as Mt}from"./select-Bry_eRAa.js";import{i as qs}from"./ArrowRight-Ch_JzAKL.js";import"./Tool01-CCYiLfpn.js";import"./ArrowUp-BreiqpEz.js";import"./ArrowLeft-BjRYjvHK.js";import"./Tool02-C1pNmKnM.js";import"./TrendUp01-CqdHzjJu.js";import"./ZoomOut-B00NO3iw.js";import"./Users03-jUFurcPA.js";import"./CheckCircle-BTv_HNPs.js";import"./Check-DqkacOOo.js";import"./ChevronUp-DuOOHGIB.js";import"./ChevronSelectorVertical-D1pSeQIS.js";import"./DotsVertical-DxIFAaFG.js";import"./CreditCard01-BMkeXieC.js";import"./Download01-BWA6sHtg.js";import"./Share07-fCS-0opG.js";import"./GitBranch01-BVCazP-u.js";import"./XClose-D3lJp_3C.js";import"./HardDrive-BS0obIOG.js";import"./Image01-EbJSXFxN.js";import"./Key01-BFkiELTT.js";import"./Link01-C6iFD_1F.js";import"./Monitor01-Cxz_eAVo.js";import"./Sun-BWedp7Qb.js";import"./Package-CXlEv3H8.js";import"./Palette-DbewMeGN.js";import"./Play-CEPPAIh5.js";import"./SearchLg-AFAJsxFc.js";import"./SearchMd-DeIp0WHu.js";import"./Shield01-Co61R0sU.js";import"./Stars01-C4Zmu7Ep.js";import"./Upload01-BECJfTWE.js";import"./User01-CTfDcS5e.js";import"./Users01-C2R2z6TK.js";import"./XCircle-DbggDpQ5.js";import"./use-mcp-client-zU4b6By6.js";import"./auth-CauVv39M.js";import"./useInfiniteQuery-CGwSzAR5.js";import"./infiniteQueryObserver-f1Mg7m56.js";import"./use-connection-DyoJ3842.js";import"./empty-state-hUIlBR3q.js";import"./use-infinite-scroll-BcPSZiNZ.js";import"./use-members-NeCLLrrB.js";import"./use-org-auth-client-B5-qRoTn.js";import"./use-automations-YKeF0GSq.js";import"./useSuspenseInfiniteQuery-oataxVbC.js";import"./avatar-DXXjOQK5.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy--zGmPPwD.js";import"./markdown-htg7W98G.js";import"./use-panel-navigate-D3xoeR8G.js";import"./use-destination-route-Dumfqkh7.js";import"./hooks-b4KT4QM3.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BXVf9Dkw.js";import"./task-board-DUw5IESw.js";import"./schema-japUOE_t.js";import"./chat-context-B6tUHlAE.js";import"./autosend-SS5aZjSF.js";import"./thread-intent-D8peSDUi.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-BizNuqZ_.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-D8v0JTxh.js";import"./thread-route-CQ-Toekd.js";import"./use-organization-settings-CTeI3cWs.js";import"./monaco-editor-D5wA_jK1.js";import"./editor-TbLNsIFy.js";import"./mcp-app-renderer-C4rMJv7P.js";import"./types-ZI4hLB92.js";import"./shell-layout-DFrR6tdX.js";import"./anchors-yqDzZN4K.js";import"./project-icon-FvFivmfl.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-D6vFPSCI.js";import"./index-DGnV1pVM.js";import"./integration-icon-DZ8Y6sMt.js";import"./required-auth-layout-HH2bVNBU.js";import"./use-org-sso-HqaCDMyO.js";import"./use-org-notice-DWcI6MY4.js";import"./use-navigate-to-agent-vf6CPdOT.js";import"./use-mcp-prompts-DdlH2qST.js";import"./form-D6PYqRbd.js";import"./file-type-icon-B1cjMMrB.js";function Lt(r,e){return r.name===e.name&&(r.scope??"runtime")===e.scope}function mt(r,e){if(Array.isArray(r))return r;if(r&&typeof r=="object"){const o=r[e];if(Array.isArray(o))return o}return[]}function zt(r){return r==="deco-deno"?"Deco Deno":r==="deco-tanstack"?"Deco TanStack":r??null}function Ms(r){const e=(r??"").toLowerCase();return e.includes("ready")||e.includes("success")||e.includes("active")?"success":e.includes("fail")||e.includes("error")?"destructive":e.includes("build")||e.includes("pend")||e.includes("progress")?"warning":"secondary"}function Gt(r){if(!r)return"—";const e=new Date(r).getTime();if(Number.isNaN(e))return"—";const o=Math.round((Date.now()-e)/1e3),a=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),i=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[l,c]of i)if(Math.abs(o)>=c)return a.format(-Math.round(o/c),l);return a.format(-o,"second")}function Is(r){if(r==null||!Number.isFinite(r))return"—";if(r<1e3)return`${Math.round(r)}ms`;const e=r/1e3;if(e<60)return`${e.toFixed(e>=10?0:1)}s`;const o=Math.round(e);return`${Math.floor(o/60)}m ${o%60}s`}function jt(r){const e=r instanceof Error?r.message.toLowerCase():"";return e.includes("unauthorized")||e.includes("401")}function rt(r){return r instanceof Error?r.message:String(r)}function Qs(r){const e=r.trim();if(!e)return null;const a=(e.endsWith(".")?e.slice(0,-1):e).split(".");if(a.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 a){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`}return null}function xs(r,e){return r&&typeof r=="object"&&"error"in r?String(r.error):`request failed (${e})`}async function It(r){const e=await fetch(r),o=await e.json().catch(()=>({}));if(!e.ok)throw new Error(xs(o,e.status));return o}async function at(r,e,o){const a=await fetch(r,{method:e,headers:o!==void 0?{"Content-Type":"application/json"}:{},body:o!==void 0?JSON.stringify(o):void 0}),i=await a.json().catch(()=>({}));if(!a.ok)throw new Error(xs(i,a.status));return i}function et(r){const e=ee.c(19);let o,a,i,l,c,m;e[0]!==r?({label:a,tooltipSide:l,variant:c,size:m,children:o,...i}=r,e[0]=r,e[1]=o,e[2]=a,e[3]=i,e[4]=l,e[5]=c,e[6]=m):(o=e[1],a=e[2],i=e[3],l=e[4],c=e[5],m=e[6]);const s=l===void 0?"top":l,n=c===void 0?"ghost":c,h=m===void 0?"icon-sm":m;let g;e[7]!==o||e[8]!==a||e[9]!==i||e[10]!==h||e[11]!==n?(g=t.jsx(ss,{asChild:!0,children:t.jsx(Ie,{"data-slot":"icon-button","aria-label":a,variant:n,size:h,...i,children:o})}),e[7]=o,e[8]=a,e[9]=i,e[10]=h,e[11]=n,e[12]=g):g=e[12];let d;e[13]!==a||e[14]!==s?(d=t.jsx(ns,{side:s,children:a}),e[13]=a,e[14]=s,e[15]=d):d=e[15];let f;return e[16]!==g||e[17]!==d?(f=t.jsxs(is,{children:[g,d]}),e[16]=g,e[17]=d,e[18]=f):f=e[18],f}function ut(r){const e=ee.c(4),{title:o,actions:a,children:i}=r;let l;return e[0]!==a||e[1]!==i||e[2]!==o?(l=t.jsx(Ps,{title:o,actions:a,children:i}),e[0]=a,e[1]=i,e[2]=o,e[3]=l):l=e[3],l}function Qe(r){const e=ee.c(5),{className:o,children:a}=r;let i;e[0]!==o?(i=xt("gap-0 overflow-hidden p-0 divide-y divide-border",o),e[0]=o,e[1]=i):i=e[1];let l;return e[2]!==a||e[3]!==i?(l=t.jsx(js,{className:i,children:a}),e[2]=a,e[3]=i,e[4]=l):l=e[4],l}function pt(r){const e=ee.c(5),{className:o,children:a}=r;let i;e[0]!==o?(i=xt("flex min-h-12 items-center gap-3 px-4 py-2",o),e[0]=o,e[1]=i):i=e[1];let l;return e[2]!==a||e[3]!==i?(l=t.jsx("div",{className:i,children:a}),e[2]=a,e[3]=i,e[4]=l):l=e[4],l}function ot(r){const e=ee.c(2),{children:o}=r;let a;return e[0]!==o?(a=t.jsx("p",{className:"px-4 py-6 text-sm text-muted-foreground",children:o}),e[0]=o,e[1]=a):a=e[1],a}function ht(r){const e=ee.c(2),{rows:o}=r,a=o===void 0?3:o;let i;return e[0]!==a?(i=t.jsx(Qe,{children:Array.from({length:a},Us)}),e[0]=a,e[1]=i):i=e[1],i}function Us(r,e){return t.jsxs(pt,{children:[t.jsx(dt,{className:"h-4 w-40"}),t.jsx(dt,{className:"h-4 flex-1"}),t.jsx(dt,{className:"size-7 rounded-lg"})]},e)}function Me(r){const e=ee.c(5),{className:o,children:a}=r;let i;e[0]!==o?(i=xt("text-xs font-medium text-muted-foreground",o),e[0]=o,e[1]=i):i=e[1];let l;return e[2]!==a||e[3]!==i?(l=t.jsx(zs,{className:i,children:a}),e[2]=a,e[3]=i,e[4]=l):l=e[4],l}function Qt(r){const e=ee.c(12),{open:o,onClick:a}=r,i=Ae();let l;e[0]!==o||e[1]!==i?(l=i(o?"mainPanelTabs.hostingTab.hideDetails":"mainPanelTabs.hostingTab.showDetails"),e[0]=o,e[1]=i,e[2]=l):l=e[2];const c=o&&"rotate-90";let m;e[3]!==c?(m=xt("transition-transform duration-200 motion-reduce:transition-none",c),e[3]=c,e[4]=m):m=e[4];let s;e[5]!==m?(s=t.jsx(hs,{className:m}),e[5]=m,e[6]=s):s=e[6];let n;return e[7]!==a||e[8]!==o||e[9]!==l||e[10]!==s?(n=t.jsx(et,{label:l,size:"icon-sm",className:"-ml-1.5 text-muted-foreground","aria-expanded":o,onClick:a,children:s}),e[7]=a,e[8]=o,e[9]=l,e[10]=s,e[11]=n):n=e[11],n}function Ks(r){const e=ee.c(8),{open:o,colSpan:a,children:i}=r;let l;e[0]!==i?(l=t.jsx(Vt,{children:t.jsx("div",{className:"border-b border-border bg-muted/30 px-4 py-3",children:i})}),e[0]=i,e[1]=l):l=e[1];let c;e[2]!==o||e[3]!==l?(c=t.jsx(Ht,{open:o,children:l}),e[2]=o,e[3]=l,e[4]=c):c=e[4];let m;return e[5]!==a||e[6]!==c?(m=t.jsx(nt,{className:"border-0 hover:bg-transparent",children:t.jsx(Fe,{colSpan:a,className:"p-0 whitespace-normal",children:c})}),e[5]=a,e[6]=c,e[7]=m):m=e[7],m}function gs(r){const e=ee.c(5),{open:o,children:a}=r;let i;e[0]!==a?(i=t.jsx(Vt,{children:t.jsx("div",{className:"border-t border-border bg-muted/30 px-4 py-3",children:a})}),e[0]=a,e[1]=i):i=e[1];let l;return e[2]!==o||e[3]!==i?(l=t.jsx(Ht,{open:o,children:i}),e[2]=o,e[3]=i,e[4]=l):l=e[4],l}function bs(r){const e=ee.c(6),{scope:o}=r,a=Ae(),i=o==="build"?"outline":"secondary";let l;e[0]!==o||e[1]!==a?(l=a(o==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime"),e[0]=o,e[1]=a,e[2]=l):l=e[2];let c;return e[3]!==i||e[4]!==l?(c=t.jsx(Re,{variant:i,children:l}),e[3]=i,e[4]=l,e[5]=c):c=e[5],c}function Ws(r){const e=ee.c(9),{value:o}=r,a=Ae();let i;e[0]!==a?(i=a("mainPanelTabs.hostingTab.dnsCopy"),e[0]=a,e[1]=i):i=e[1];let l;e[2]!==a||e[3]!==o?(l=()=>{if(!navigator.clipboard){ce.error(a("mainPanelTabs.hostingTab.dnsCopyError"));return}navigator.clipboard.writeText(o).then(()=>ce.success(a("mainPanelTabs.hostingTab.dnsCopied")),()=>ce.error(a("mainPanelTabs.hostingTab.dnsCopyError")))},e[2]=a,e[3]=o,e[4]=l):l=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(Vs,{className:"size-3.5"}),e[5]=c):c=e[5];let m;return e[6]!==i||e[7]!==l?(m=t.jsx(et,{label:i,onClick:l,children:c}),e[6]=i,e[7]=l,e[8]=m):m=e[8],m}function wt(r){const e=ee.c(28),{open:o,onOpenChange:a,title:i,description:l,confirmLabel:c,pending:m,onConfirm:s}=r,n=Ae();let h;e[0]!==i?(h=t.jsx(as,{children:i}),e[0]=i,e[1]=h):h=e[1];let g;e[2]!==l?(g=t.jsx(os,{children:l}),e[2]=l,e[3]=g):g=e[3];let d;e[4]!==h||e[5]!==g?(d=t.jsxs(rs,{children:[h,g]}),e[4]=h,e[5]=g,e[6]=d):d=e[6];let f;e[7]!==n?(f=n("mainPanelTabs.hostingTab.cancel"),e[7]=n,e[8]=f):f=e[8];let u;e[9]!==m||e[10]!==f?(u=t.jsx(cs,{disabled:m,children:f}),e[9]=m,e[10]=f,e[11]=u):u=e[11];let b;e[12]!==s?(b=S=>{S.preventDefault(),s()},e[12]=s,e[13]=b):b=e[13];let x;e[14]!==c||e[15]!==m||e[16]!==b?(x=t.jsx(ms,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:b,disabled:m,children:c}),e[14]=c,e[15]=m,e[16]=b,e[17]=x):x=e[17];let N;e[18]!==u||e[19]!==x?(N=t.jsxs(ds,{children:[u,x]}),e[18]=u,e[19]=x,e[20]=N):N=e[20];let C;e[21]!==d||e[22]!==N?(C=t.jsxs(fs,{children:[d,N]}),e[21]=d,e[22]=N,e[23]=C):C=e[23];let P;return e[24]!==a||e[25]!==o||e[26]!==C?(P=t.jsx(us,{open:o,onOpenChange:a,children:C}),e[24]=a,e[25]=o,e[26]=C,e[27]=P):P=e[27],P}const Js=8;function Ys(r){const e=ee.c(54),{base:o,orgSlug:a,site:i}=r,l=Ae(),c=bt(),[m,s]=Z.useState(!1);let n;e[0]!==o?(n=()=>at(`${o}/deploy`,"POST",{mode:"current"}),e[0]=o,e[1]=n):n=e[1];let h;e[2]!==a||e[3]!==c||e[4]!==i||e[5]!==l?(h=()=>{c.invalidateQueries({queryKey:Ye.hostingDeployments(a,i)}),c.invalidateQueries({queryKey:Ye.hostingDeploymentHistory(a,i)}),ce.success(l("mainPanelTabs.hostingTab.toastDeployQueued")),s(!1)},e[2]=a,e[3]=c,e[4]=i,e[5]=l,e[6]=h):h=e[6];let g;e[7]!==n||e[8]!==h?(g={mutationFn:n,onSuccess:h,onError:Gs},e[7]=n,e[8]=h,e[9]=g):g=e[9];const d=lt(g);let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=()=>s(!0),e[10]=f):f=e[10];let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(gt,{}),e[11]=u):u=e[11];let b;e[12]!==d.isPending||e[13]!==l?(b=d.isPending?l("mainPanelTabs.hostingTab.deploying"):l("mainPanelTabs.hostingTab.deploy"),e[12]=d.isPending,e[13]=l,e[14]=b):b=e[14];let x;e[15]!==d.isPending||e[16]!==b?(x=t.jsxs(Ie,{size:"sm",onClick:f,disabled:d.isPending,children:[u,b]}),e[15]=d.isPending,e[16]=b,e[17]=x):x=e[17];let N;e[18]!==l?(N=l("mainPanelTabs.hostingTab.deployConfirmTitle"),e[18]=l,e[19]=N):N=e[19];let C;e[20]!==N?(C=t.jsx(as,{children:N}),e[20]=N,e[21]=C):C=e[21];let P;e[22]!==l?(P=l("mainPanelTabs.hostingTab.deployConfirmDescription"),e[22]=l,e[23]=P):P=e[23];let S;e[24]!==P?(S=t.jsx(os,{children:P}),e[24]=P,e[25]=S):S=e[25];let y;e[26]!==S||e[27]!==C?(y=t.jsxs(rs,{children:[C,S]}),e[26]=S,e[27]=C,e[28]=y):y=e[28];const R=d.isPending;let w;e[29]!==l?(w=l("mainPanelTabs.hostingTab.cancel"),e[29]=l,e[30]=w):w=e[30];let j;e[31]!==d.isPending||e[32]!==w?(j=t.jsx(cs,{disabled:R,children:w}),e[31]=d.isPending,e[32]=w,e[33]=j):j=e[33];let T;e[34]!==d?(T=_=>{_.preventDefault(),d.mutate()},e[34]=d,e[35]=T):T=e[35];const V=d.isPending;let q;e[36]!==l?(q=l("mainPanelTabs.hostingTab.deploy"),e[36]=l,e[37]=q):q=e[37];let F;e[38]!==d.isPending||e[39]!==T||e[40]!==q?(F=t.jsx(ms,{onClick:T,disabled:V,children:q}),e[38]=d.isPending,e[39]=T,e[40]=q,e[41]=F):F=e[41];let v;e[42]!==j||e[43]!==F?(v=t.jsxs(ds,{children:[j,F]}),e[42]=j,e[43]=F,e[44]=v):v=e[44];let H;e[45]!==y||e[46]!==v?(H=t.jsxs(fs,{children:[y,v]}),e[45]=y,e[46]=v,e[47]=H):H=e[47];let A;e[48]!==m||e[49]!==H?(A=t.jsx(us,{open:m,onOpenChange:s,children:H}),e[48]=m,e[49]=H,e[50]=A):A=e[50];let Q;return e[51]!==A||e[52]!==x?(Q=t.jsxs(t.Fragment,{children:[x,A]}),e[51]=A,e[52]=x,e[53]=Q):Q=e[53],Q}function Gs(r){return ce.error(rt(r))}function Xs(r,e){const o=(r??"").toLowerCase();return o.includes("rollback")?t.jsxs(Re,{variant:"warning",children:[t.jsx(Ls,{}),e("mainPanelTabs.hostingTab.actionRollback")]}):o.includes("redeploy")?t.jsxs(Re,{variant:"secondary",children:[t.jsx(_s,{}),e("mainPanelTabs.hostingTab.actionRedeploy")]}):t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),e("mainPanelTabs.hostingTab.actionDeploy")]})}function Zs(r,e,o){const a=(r??"").toLowerCase();return a==="build"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(ls,{}),o("mainPanelTabs.hostingTab.typeBuild")]}):a==="fast-deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(As,{}),o("mainPanelTabs.hostingTab.typeFastDeploy")]}):a==="deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),o("mainPanelTabs.hostingTab.typeDeploy")]}):Xs(e,o)}function en(r,e){const o=(r??"").toLowerCase();return o==="success"?t.jsx(Re,{variant:"success",children:e("mainPanelTabs.hostingTab.outcomeSuccess")}):o==="failure"?t.jsx(Re,{variant:"destructive",children:e("mainPanelTabs.hostingTab.outcomeFailure")}):o==="pending"?t.jsxs(Re,{variant:"secondary",children:[t.jsx($s,{}),e("mainPanelTabs.hostingTab.outcomePending")]}):null}function Xt(r){const e=ee.c(7),{commit:o,onClick:a}=r,i=Ae();let l;e[0]!==i?(l=i("mainPanelTabs.hostingTab.buildLogs"),e[0]=i,e[1]=l):l=e[1];const c=!o;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(ls,{}),e[2]=m):m=e[2];let s;return e[3]!==a||e[4]!==l||e[5]!==c?(s=t.jsx(et,{label:l,onClick:a,disabled:c,children:m}),e[3]=a,e[4]=l,e[5]=c,e[6]=s):s=e[6],s}function tn(r){const e=ee.c(37),{base:o,orgSlug:a,site:i,target:l,onOpenChange:c}=r,m=Ae(),s=l!=null,n=l?.commit??"",h=l?.env??"";let g;e[0]!==n||e[1]!==h||e[2]!==a||e[3]!==i?(g=Ye.hostingBuildLogs(a,i,n,h),e[0]=n,e[1]=h,e[2]=a,e[3]=i,e[4]=g):g=e[4];let d;e[5]!==o||e[6]!==n||e[7]!==h?(d=()=>It(`${o}/deployments/logs?commit=${encodeURIComponent(n)}&env=${encodeURIComponent(h)}`),e[5]=o,e[6]=n,e[7]=h,e[8]=d):d=e[8];const f=s&&!!n;let u;e[9]!==g||e[10]!==d||e[11]!==f?(u={queryKey:g,queryFn:d,enabled:f,retry:!1,staleTime:0,gcTime:0,refetchOnMount:"always"},e[9]=g,e[10]=d,e[11]=f,e[12]=u):u=e[12];const b=ct(u),x=b.data;let N;e[13]!==m?(N=m("mainPanelTabs.hostingTab.buildLogsTitle"),e[13]=m,e[14]=N):N=e[14];let C;e[15]!==N?(C=t.jsx(vs,{children:N}),e[15]=N,e[16]=C):C=e[16];let P;e[17]!==n||e[18]!==m?(P=m("mainPanelTabs.hostingTab.buildLogsCommit",{commit:n.slice(0,7)}),e[17]=n,e[18]=m,e[19]=P):P=e[19];let S;e[20]!==P?(S=t.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:P}),e[20]=P,e[21]=S):S=e[21];let y;e[22]!==C||e[23]!==S?(y=t.jsxs(ys,{className:"shrink-0 border-b border-border px-5 py-5 md:px-6",children:[C,S]}),e[22]=C,e[23]=S,e[24]=y):y=e[24];let R;e[25]!==x||e[26]!==b.error||e[27]!==b.isLoading||e[28]!==m?(R=t.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 py-5 md:px-6",children:jt(b.error)?t.jsx(Ze,{icon:t.jsx(kt,{className:"size-5"}),title:m("mainPanelTabs.hostingTab.notConnectedTitle"),description:m("mainPanelTabs.hostingTab.notConnectedDescription")}):b.isLoading?t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx(dt,{className:"h-4 w-full"}),t.jsx(dt,{className:"h-4 w-full"}),t.jsx(dt,{className:"h-4 w-2/3"})]}):b.error?t.jsx(ot,{children:m("mainPanelTabs.hostingTab.buildLogsError")}):x&&x.configured===!1?t.jsxs("div",{className:"flex flex-col items-center gap-2 rounded-lg border border-border bg-muted/30 px-4 py-8 text-center",children:[t.jsx(Fs,{className:"size-5 text-muted-foreground"}),t.jsx("p",{className:"text-sm font-medium text-foreground",children:m("mainPanelTabs.hostingTab.buildLogsNotWiredTitle")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:x.reason??m("mainPanelTabs.hostingTab.buildLogsNotWiredDescription")})]}):x?.text?t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("pre",{className:"overflow-auto font-mono text-[11px] leading-relaxed text-foreground/80 whitespace-pre-wrap break-words",children:x.text}),x.truncated&&t.jsx("p",{className:"text-xs text-warning",children:m("mainPanelTabs.hostingTab.buildLogsTruncated")}),x.url&&t.jsxs("a",{href:x.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-xs text-primary hover:underline",children:[t.jsx(_t,{className:"size-3.5"}),m("mainPanelTabs.hostingTab.buildLogsOpenFull")]})]}):x?.url?t.jsxs("a",{href:x.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-sm text-primary hover:underline",children:[t.jsx(_t,{className:"size-4"}),m("mainPanelTabs.hostingTab.buildLogsOpenFull")]}):t.jsx(ot,{children:m("mainPanelTabs.hostingTab.buildLogsEmpty")})}),e[25]=x,e[26]=b.error,e[27]=b.isLoading,e[28]=m,e[29]=R):R=e[29];let w;e[30]!==R||e[31]!==y?(w=t.jsxs(Ss,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:[y,R]}),e[30]=R,e[31]=y,e[32]=w):w=e[32];let j;return e[33]!==c||e[34]!==s||e[35]!==w?(j=t.jsx(Ns,{open:s,onOpenChange:c,children:w}),e[33]=c,e[34]=s,e[35]=w,e[36]=j):j=e[36],j}function sn(r){const e=ee.c(52),{base:o,orgSlug:a,site:i,enabled:l,deployments:c,isLoading:m,error:s}=r,n=Ae(),[h,g]=Z.useState(null),[d,f]=Z.useState(Js),[u,b]=Z.useState(null);let x;e[0]!==a||e[1]!==i?(x=Ye.hostingDeploymentHistory(a,i),e[0]=a,e[1]=i,e[2]=x):x=e[2];let N;e[3]!==o?(N=()=>It(`${o}/deployments/history?limit=50`),e[3]=o,e[4]=N):N=e[4];let C;e[5]!==l||e[6]!==x||e[7]!==N?(C={queryKey:x,queryFn:N,enabled:l,retry:!1,staleTime:3e4},e[5]=l,e[6]=x,e[7]=N,e[8]=C):C=e[8];const P=ct(C);let S,y,R,w;if(e[9]!==c||e[10]!==s||e[11]!==h||e[12]!==d||e[13]!==P.data||e[14]!==P.error||e[15]!==P.isLoading||e[16]!==m||e[17]!==n){const F=mt(P.data,"items"),v=F.slice(0,d),H=F.length-v.length;let A;e[22]!==c?(A=c.find(an)?.commitSha??c.find(ln)?.commitSha??null,e[22]=c,e[23]=A):A=e[23];const Q=A;let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=(p,I)=>{p&&b({commit:p,env:I??"production"})},e[24]=_):_=e[24];const W=_;let J;e[25]!==n?(J=n("mainPanelTabs.hostingTab.deployments"),e[25]=n,e[26]=J):J=e[26];let U;e[27]!==c||e[28]!==s||e[29]!==h||e[30]!==m||e[31]!==n?(U=m?t.jsx(ht,{}):s?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deploymentsError")})}):c.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(gt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDeployments"),className:"py-10"})}):t.jsxs(Et,{children:[t.jsx(Rt,{children:t.jsxs(nt,{children:[t.jsx(Me,{className:"pl-4",children:n("mainPanelTabs.hostingTab.colCommit")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colStatus")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colFramework")}),t.jsx(Me,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDuration")}),t.jsx(Me,{className:"text-right",children:n("mainPanelTabs.hostingTab.colUpdated")}),t.jsx(Me,{className:"w-[1%]"})]})}),t.jsx(Ft,{children:c.map(p=>{const I=!!p.buildMessage,Y=h===p.id;return t.jsxs(Z.Fragment,{children:[t.jsxs(nt,{className:xt(I&&"cursor-pointer hover:bg-muted/40"),onClick:I?()=>g(Y?null:p.id):void 0,children:[t.jsx(Fe,{className:"px-4",children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[I?t.jsx(Qt,{open:Y,onClick:()=>g(Y?null:p.id)}):t.jsx(ws,{className:"size-4 text-muted-foreground/60"}),t.jsx("span",{className:"font-mono text-xs",children:p.shortCommit??p.commitSha?.slice(0,7)??"—"}),p.production===!0&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.production")})]})}),t.jsx(Fe,{children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Re,{variant:Ms(p.phase),children:p.phase??"—"}),p.up===!0&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(p.framework)??"—"}),t.jsx(Fe,{className:"text-right font-mono text-xs text-muted-foreground tabular-nums",children:Is(p.durationMs)}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Gt(p.finishedAt??p.startedAt??p.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",onClick:nn,children:t.jsx(Xt,{commit:p.commitSha,onClick:()=>W(p.commitSha,p.env)})})]}),I&&t.jsx(Ks,{open:Y,colSpan:6,children:t.jsx("p",{className:"whitespace-pre-wrap break-words font-mono text-xs text-muted-foreground",children:p.buildMessage})})]},p.id)})})]}),e[27]=c,e[28]=s,e[29]=h,e[30]=m,e[31]=n,e[32]=U):U=e[32],e[33]!==U||e[34]!==J?(w=t.jsx(ut,{title:J,children:U}),e[33]=U,e[34]=J,e[35]=w):w=e[35],S=ut,e[36]!==n?(y=n("mainPanelTabs.hostingTab.deployHistory"),e[36]=n,e[37]=y):y=e[37],R=P.isLoading?t.jsx(ht,{}):P.error?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deployHistoryError")})}):F.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(gt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDeployHistory"),className:"py-10"})}):t.jsxs(Et,{children:[t.jsx(Rt,{children:t.jsxs(nt,{children:[t.jsx(Me,{className:"pl-4",children:n("mainPanelTabs.hostingTab.colAction")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colStatus")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colCommit")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colFramework")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colActor")}),t.jsx(Me,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDate")}),t.jsx(Me,{className:"w-[1%]"})]})}),t.jsxs(Ft,{children:[v.map(p=>{const I=!!Q&&p.commitSha===Q;return t.jsxs(nt,{children:[t.jsx(Fe,{className:"pl-4",children:Zs(p.type,p.action,n)}),t.jsx(Fe,{children:en(p.outcome,n)}),t.jsx(Fe,{children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"font-mono text-xs",children:p.commitSha?.slice(0,7)??"—"}),I&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(p.framework)??"—"}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:p.actor??"—"}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Gt(p.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",children:t.jsx(Xt,{commit:p.commitSha,onClick:()=>W(p.commitSha,p.env)})})]},p.id)}),H>0&&t.jsx(nt,{className:"hover:bg-transparent",children:t.jsx(Fe,{colSpan:7,className:"p-2 text-center",children:t.jsx(Ie,{variant:"ghost",size:"sm",onClick:()=>f(F.length),children:n("mainPanelTabs.hostingTab.showMoreHistory",{count:String(H)})})})})]})]}),e[9]=c,e[10]=s,e[11]=h,e[12]=d,e[13]=P.data,e[14]=P.error,e[15]=P.isLoading,e[16]=m,e[17]=n,e[18]=S,e[19]=y,e[20]=R,e[21]=w}else S=e[18],y=e[19],R=e[20],w=e[21];let j;e[38]!==S||e[39]!==y||e[40]!==R?(j=t.jsx(S,{title:y,children:R}),e[38]=S,e[39]=y,e[40]=R,e[41]=j):j=e[41];let T;e[42]===Symbol.for("react.memo_cache_sentinel")?(T=F=>{F||b(null)},e[42]=T):T=e[42];let V;e[43]!==o||e[44]!==u||e[45]!==a||e[46]!==i?(V=t.jsx(tn,{base:o,orgSlug:a,site:i,target:u,onOpenChange:T}),e[43]=o,e[44]=u,e[45]=a,e[46]=i,e[47]=V):V=e[47];let q;return e[48]!==w||e[49]!==j||e[50]!==V?(q=t.jsxs(t.Fragment,{children:[w,j,V]}),e[48]=w,e[49]=j,e[50]=V,e[51]=q):q=e[51],q}function nn(r){return r.stopPropagation()}function ln(r){return r.production===!0&&r.up}function an(r){return r.up===!0}const on=["16.148.147.194","52.32.122.94","52.35.156.199"];function rn(r){return r.replace(/\.$/,"").split(".").filter(Boolean).length===2}function Zt(r){const e=r.trim();return e.length>0&&!e.startsWith("/")&&e.includes(".")}function ps(r){const e=ee.c(24),{records:o}=r,a=Ae();let i;e[0]!==a?(i=a("mainPanelTabs.hostingTab.dnsColType"),e[0]=a,e[1]=i):i=e[1];let l;e[2]!==i?(l=t.jsx(Me,{className:"w-16",children:i}),e[2]=i,e[3]=l):l=e[3];let c;e[4]!==a?(c=a("mainPanelTabs.hostingTab.dnsColName"),e[4]=a,e[5]=c):c=e[5];let m;e[6]!==c?(m=t.jsx(Me,{children:c}),e[6]=c,e[7]=m):m=e[7];let s;e[8]!==a?(s=a("mainPanelTabs.hostingTab.dnsColValue"),e[8]=a,e[9]=s):s=e[9];let n;e[10]!==s?(n=t.jsx(Me,{children:s}),e[10]=s,e[11]=n):n=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(Me,{className:"w-10"}),e[12]=h):h=e[12];let g;e[13]!==l||e[14]!==m||e[15]!==n?(g=t.jsx(Rt,{children:t.jsxs(nt,{children:[l,m,n,h]})}),e[13]=l,e[14]=m,e[15]=n,e[16]=g):g=e[16];let d;e[17]!==o?(d=o.map(cn),e[17]=o,e[18]=d):d=e[18];let f;e[19]!==d?(f=t.jsx(Ft,{children:d}),e[19]=d,e[20]=f):f=e[20];let u;return e[21]!==f||e[22]!==g?(u=t.jsxs(Et,{className:"table-fixed",children:[g,f]}),e[21]=f,e[22]=g,e[23]=u):u=e[23],u}function cn(r){return t.jsxs(nt,{children:[t.jsx(Fe,{className:"font-mono text-xs",children:r.type}),t.jsx(Fe,{className:"break-all whitespace-normal font-mono text-xs",children:r.name}),t.jsx(Fe,{className:"break-all whitespace-normal font-mono text-xs text-muted-foreground",children:r.value}),t.jsx(Fe,{className:"text-right",children:t.jsx(Ws,{value:r.value})})]},`${r.type}-${r.name}-${r.value}`)}function Ts(r){const e=ee.c(14),{status:o,children:a}=r,i=Ae();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(At,{className:"size-4 text-muted-foreground"}),e[0]=l):l=e[0];let c;e[1]!==i?(c=i("mainPanelTabs.hostingTab.dnsSetupTitle"),e[1]=i,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]!==i?(s=o&&t.jsx(Re,{variant:o.active?"success":"outline",className:"ml-auto",children:o.active?i("mainPanelTabs.hostingTab.dnsActive"):i("mainPanelTabs.hostingTab.dnsAwaiting")}),e[5]=o,e[6]=i,e[7]=s):s=e[7];let n;e[8]!==m||e[9]!==s?(n=t.jsxs("div",{className:"flex items-center gap-2",children:[l,m,s]}),e[8]=m,e[9]=s,e[10]=n):n=e[10];let h;return e[11]!==a||e[12]!==n?(h=t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[n,a]}),e[11]=a,e[12]=n,e[13]=h):h=e[13],h}function es(r){const e=ee.c(21),{from:o,source:a}=r,i=Ae();let l,c,m,s,n;if(e[0]!==o||e[1]!==a||e[2]!==i){const d=o.trim().replace(/\.$/,""),f=d?rn(d)?"@":d:"@",u=a==="both";c=Ts,e[8]!==u?(s={active:u},e[8]=u,e[9]=s):s=e[9];let b;e[10]!==u||e[11]!==i?(b=i(u?"mainPanelTabs.hostingTab.dnsActiveHint":"mainPanelTabs.hostingTab.dnsAwaitingHint"),e[10]=u,e[11]=i,e[12]=b):b=e[12],n=t.jsxs("p",{className:"text-xs text-muted-foreground",children:[i("mainPanelTabs.hostingTab.dnsRedirectIntent",{from:d||"—"})," ",b]}),l=ps,m=on.map(x=>({type:"A",name:f,value:x})),e[0]=o,e[1]=a,e[2]=i,e[3]=l,e[4]=c,e[5]=m,e[6]=s,e[7]=n}else l=e[3],c=e[4],m=e[5],s=e[6],n=e[7];let h;e[13]!==l||e[14]!==m?(h=t.jsx(l,{records:m}),e[13]=l,e[14]=m,e[15]=h):h=e[15];let g;return e[16]!==c||e[17]!==s||e[18]!==n||e[19]!==h?(g=t.jsxs(c,{status:s,children:[n,h]}),e[16]=c,e[17]=s,e[18]=n,e[19]=h,e[20]=g):g=e[20],g}function ts(r){const e=ee.c(2),{records:o}=r;if(o.length===0)return null;let a;return e[0]!==o?(a=t.jsx(Ts,{children:t.jsx(ps,{records:o})}),e[0]=o,e[1]=a):a=e[1],a}function mn(r){const e=ee.c(16),{domain:o}=r,a=Ae(),i=o.status??"pending";let l;e[0]!==i||e[1]!==a?(l=a(i==="active"?"mainPanelTabs.hostingTab.statusActive":i==="action-required"?"mainPanelTabs.hostingTab.statusActionRequired":"mainPanelTabs.hostingTab.statusPending"),e[0]=i,e[1]=a,e[2]=l):l=e[2];const c=l;let m;e[3]!==o.detail||e[4]!==a?(m=o.detail==="zone-not-onboarded"?a("mainPanelTabs.hostingTab.detailZoneNotOnboarded"):void 0,e[3]=o.detail,e[4]=a,e[5]=m):m=e[5];const s=m,n=i==="active"?"success":i==="action-required"?"warning":"outline";let h;e[6]!==c||e[7]!==n?(h=t.jsx(Re,{variant:n,children:c}),e[6]=c,e[7]=n,e[8]=h):h=e[8];const g=h;if(!s)return g;let d;e[9]!==g?(d=t.jsx(ss,{asChild:!0,children:g}),e[9]=g,e[10]=d):d=e[10];let f;e[11]!==s?(f=t.jsx(ns,{className:"max-w-xs",children:s}),e[11]=s,e[12]=f):f=e[12];let u;return e[13]!==d||e[14]!==f?(u=t.jsxs(is,{children:[d,f]}),e[13]=d,e[14]=f,e[15]=u):u=e[15],u}function dn(r){const e=ee.c(121),{base:o,orgSlug:a,site:i,domains:l,dnsTemplate:c,isLoading:m,error:s}=r,n=Ae(),h=bt(),[g,d]=Z.useState(!1),[f,u]=Z.useState(""),[b,x]=Z.useState(null),[N,C]=Z.useState(null);let P;e[0]!==a||e[1]!==h||e[2]!==i?(P=()=>h.invalidateQueries({queryKey:Ye.hostingDomains(a,i)}),e[0]=a,e[1]=h,e[2]=i,e[3]=P):P=e[3];const S=P;let y;e[4]!==o?(y=$=>at(`${o}/domains`,"PUT",$),e[4]=o,e[5]=y):y=e[5];let R;e[6]!==S||e[7]!==n?(R=()=>{S(),ce.success(n("mainPanelTabs.hostingTab.toastDomainSaved")),d(!1)},e[6]=S,e[7]=n,e[8]=R):R=e[8];let w;e[9]!==y||e[10]!==R?(w={mutationFn:y,onSuccess:R,onError:un},e[9]=y,e[10]=R,e[11]=w):w=e[11];const j=lt(w);let T;e[12]!==o?(T=$=>at(`${o}/domains/${encodeURIComponent($)}`,"DELETE"),e[12]=o,e[13]=T):T=e[13];let V;e[14]!==S||e[15]!==n?(V=()=>{S(),ce.success(n("mainPanelTabs.hostingTab.toastDomainDeleted")),x(null)},e[14]=S,e[15]=n,e[16]=V):V=e[16];let q;e[17]!==T||e[18]!==V?(q={mutationFn:T,onSuccess:V,onError:fn},e[17]=T,e[18]=V,e[19]=q):q=e[19];const F=lt(q);let v;e[20]!==f||e[21]!==j||e[22]!==n?(v=()=>{const $=f.trim().toLowerCase();if(!$){ce.error(n("mainPanelTabs.hostingTab.errorDomainHostRequired"));return}const se=Qs($);if(se){ce.error(se);return}j.mutate({host:$})},e[20]=f,e[21]=j,e[22]=n,e[23]=v):v=e[23];const H=v;let A;if(e[24]!==c||e[25]!==f){let $;e[27]!==f?($=se=>({...se,name:f.trim().toLowerCase()||se.name}),e[27]=f,e[28]=$):$=e[28],A=c.map($),e[24]=c,e[25]=f,e[26]=A}else A=e[26];const Q=A;let _,W;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{u(""),d(!0)},W=t.jsx(Pt,{}),e[29]=_,e[30]=W):(_=e[29],W=e[30]);let J;e[31]!==n?(J=n("mainPanelTabs.hostingTab.addDomain"),e[31]=n,e[32]=J):J=e[32];let U;e[33]!==J?(U=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:_,children:[W,J]}),e[33]=J,e[34]=U):U=e[34];const p=U;let I;e[35]!==n?(I=n("mainPanelTabs.hostingTab.domains"),e[35]=n,e[36]=I):I=e[36];const Y=l.length>0?p:void 0;let D;e[37]!==p||e[38]!==F.isPending||e[39]!==N||e[40]!==l||e[41]!==s||e[42]!==m||e[43]!==n?(D=m?t.jsx(ht,{}):s?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.domainsError")})}):l.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(At,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDomains"),className:"py-10",buttonComponent:p})}):t.jsx(Qe,{children:l.map(($,se)=>{const Se=!$.canonical&&($.dns?.length??0)>0,je=N===$.host;return t.jsxs("div",{children:[t.jsxs(pt,{children:[Se?t.jsx(Qt,{open:je,onClick:()=>C(je?null:$.host)}):t.jsx(At,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[t.jsx("span",{className:"truncate font-mono text-xs",children:$.host}),$.canonical&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.canonical")})]}),t.jsx(mn,{domain:$}),!$.canonical&&t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteDomain"),onClick:()=>x($.host),disabled:F.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]}),Se&&t.jsx(gs,{open:je,children:t.jsx(ts,{records:$.dns??[]})})]},`${$.host}-${se}`)})}),e[37]=p,e[38]=F.isPending,e[39]=N,e[40]=l,e[41]=s,e[42]=m,e[43]=n,e[44]=D):D=e[44];let G;e[45]!==n?(G=n("mainPanelTabs.hostingTab.addDomainTitle"),e[45]=n,e[46]=G):G=e[46];let O;e[47]!==G?(O=t.jsx(yt,{children:t.jsx(St,{children:G})}),e[47]=G,e[48]=O):O=e[48];let k;e[49]!==H?(k=$=>{$.preventDefault(),H()},e[49]=H,e[50]=k):k=e[50];let E;e[51]!==n?(E=n("mainPanelTabs.hostingTab.colHost"),e[51]=n,e[52]=E):E=e[52];let B;e[53]!==E?(B=t.jsx(Xe,{htmlFor:"domain-host",children:E}),e[53]=E,e[54]=B):B=e[54];let X;e[55]!==n?(X=n("mainPanelTabs.hostingTab.domainHostPlaceholder"),e[55]=n,e[56]=X):X=e[56];let te;e[57]===Symbol.for("react.memo_cache_sentinel")?(te=$=>u($.target.value),e[57]=te):te=e[57];let K;e[58]!==f||e[59]!==j.isPending||e[60]!==X?(K=t.jsx(it,{id:"domain-host",placeholder:X,value:f,onChange:te,className:"font-mono text-xs",autoComplete:"off",disabled:j.isPending}),e[58]=f,e[59]=j.isPending,e[60]=X,e[61]=K):K=e[61];let ne;e[62]!==B||e[63]!==K?(ne=t.jsxs("div",{className:"flex flex-col gap-2",children:[B,K]}),e[62]=B,e[63]=K,e[64]=ne):ne=e[64];let ie;e[65]!==f||e[66]!==Q?(ie=f.trim()&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ts,{records:Q})}),e[65]=f,e[66]=Q,e[67]=ie):ie=e[67];let Pe;e[68]===Symbol.for("react.memo_cache_sentinel")?(Pe=()=>d(!1),e[68]=Pe):Pe=e[68];const Ce=j.isPending;let me;e[69]!==n?(me=n("mainPanelTabs.hostingTab.cancel"),e[69]=n,e[70]=me):me=e[70];let pe;e[71]!==j.isPending||e[72]!==me?(pe=t.jsx(Ie,{variant:"outline",type:"button",onClick:Pe,disabled:Ce,children:me}),e[71]=j.isPending,e[72]=me,e[73]=pe):pe=e[73];let le;e[74]!==f||e[75]!==j.isPending?(le=j.isPending||!f.trim(),e[74]=f,e[75]=j.isPending,e[76]=le):le=e[76];let ae;e[77]!==j.isPending||e[78]!==n?(ae=j.isPending?n("mainPanelTabs.hostingTab.saving"):n("mainPanelTabs.hostingTab.save"),e[77]=j.isPending,e[78]=n,e[79]=ae):ae=e[79];let de;e[80]!==le||e[81]!==ae?(de=t.jsx(Ie,{type:"submit",disabled:le,children:ae}),e[80]=le,e[81]=ae,e[82]=de):de=e[82];let De;e[83]!==pe||e[84]!==de?(De=t.jsxs(Nt,{children:[pe,de]}),e[83]=pe,e[84]=de,e[85]=De):De=e[85];let fe;e[86]!==k||e[87]!==ne||e[88]!==ie||e[89]!==De?(fe=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:k,children:[ne,ie,De]}),e[86]=k,e[87]=ne,e[88]=ie,e[89]=De,e[90]=fe):fe=e[90];let ue;e[91]!==O||e[92]!==fe?(ue=t.jsxs(Ct,{className:"sm:max-w-md",children:[O,fe]}),e[91]=O,e[92]=fe,e[93]=ue):ue=e[93];let oe;e[94]!==g||e[95]!==ue?(oe=t.jsx(Dt,{open:g,onOpenChange:d,children:ue}),e[94]=g,e[95]=ue,e[96]=oe):oe=e[96];const Te=b!=null;let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=$=>{$||x(null)},e[97]=he):he=e[97];let xe;e[98]!==n?(xe=n("mainPanelTabs.hostingTab.confirmDeleteDomainTitle"),e[98]=n,e[99]=xe):xe=e[99];const ve=b??"";let ye;e[100]!==n||e[101]!==ve?(ye=n("mainPanelTabs.hostingTab.confirmDeleteDomainDescription",{host:ve}),e[100]=n,e[101]=ve,e[102]=ye):ye=e[102];let ge;e[103]!==n?(ge=n("mainPanelTabs.hostingTab.deleteDomain"),e[103]=n,e[104]=ge):ge=e[104];let re;e[105]!==F||e[106]!==b?(re=()=>{b&&F.mutate(b)},e[105]=F,e[106]=b,e[107]=re):re=e[107];let be;e[108]!==F.isPending||e[109]!==Te||e[110]!==xe||e[111]!==ye||e[112]!==ge||e[113]!==re?(be=t.jsx(wt,{open:Te,onOpenChange:he,title:xe,description:ye,confirmLabel:ge,pending:F.isPending,onConfirm:re}),e[108]=F.isPending,e[109]=Te,e[110]=xe,e[111]=ye,e[112]=ge,e[113]=re,e[114]=be):be=e[114];let we;return e[115]!==I||e[116]!==Y||e[117]!==D||e[118]!==oe||e[119]!==be?(we=t.jsxs(ut,{title:I,actions:Y,children:[D,oe,be]}),e[115]=I,e[116]=Y,e[117]=D,e[118]=oe,e[119]=be,e[120]=we):we=e[120],we}function fn(r){return ce.error(rt(r))}function un(r){return ce.error(rt(r))}function hn(r){const e=ee.c(24),{value:o,onChange:a,disabled:i,className:l}=r,c=Ae();let m;e[0]!==a?(m=N=>a(N==="build"?"build":"runtime"),e[0]=a,e[1]=m):m=e[1];let s;e[2]!==l?(s=xt("h-8",l),e[2]=l,e[3]=s):s=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Bt,{}),e[4]=n):n=e[4];let h;e[5]!==s?(h=t.jsx(Ot,{className:s,children:n}),e[5]=s,e[6]=h):h=e[6];let g;e[7]!==c?(g=c("mainPanelTabs.hostingTab.secretScopeRuntime"),e[7]=c,e[8]=g):g=e[8];let d;e[9]!==g?(d=t.jsx(ft,{value:"runtime",children:g}),e[9]=g,e[10]=d):d=e[10];let f;e[11]!==c?(f=c("mainPanelTabs.hostingTab.secretScopeBuild"),e[11]=c,e[12]=f):f=e[12];let u;e[13]!==f?(u=t.jsx(ft,{value:"build",children:f}),e[13]=f,e[14]=u):u=e[14];let b;e[15]!==d||e[16]!==u?(b=t.jsxs(qt,{children:[d,u]}),e[15]=d,e[16]=u,e[17]=b):b=e[17];let x;return e[18]!==i||e[19]!==m||e[20]!==h||e[21]!==b||e[22]!==o?(x=t.jsxs(Mt,{value:o,onValueChange:m,disabled:i,children:[h,b]}),e[18]=i,e[19]=m,e[20]=h,e[21]=b,e[22]=o,e[23]=x):x=e[23],x}function xn(r){const e=ee.c(151),{base:o,orgSlug:a,site:i,envVars:l,codeVars:c,isLoading:m,error:s}=r,n=Ae(),h=bt(),[g,d]=Z.useState(!1),[f,u]=Z.useState(""),[b,x]=Z.useState(""),[N,C]=Z.useState("runtime"),[P,S]=Z.useState(null),[y,R]=Z.useState(""),[w,j]=Z.useState(null);let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T=new Set,e[0]=T):T=e[0];const[V,q]=Z.useState(T);let F;e[1]===Symbol.for("react.memo_cache_sentinel")?(F=L=>{q(Ne=>{const We=new Set(Ne);return We.has(L)?We.delete(L):We.add(L),We})},e[1]=F):F=e[1];const v=F;let H;e[2]!==o?(H=L=>at(`${o}/env`,"PUT",{vars:L}),e[2]=o,e[3]=H):H=e[3];let A;e[4]!==a||e[5]!==h||e[6]!==i||e[7]!==n?(A=()=>{h.invalidateQueries({queryKey:Ye.hostingEnv(a,i)}),ce.success(n("mainPanelTabs.hostingTab.toastEnvSaved"))},e[4]=a,e[5]=h,e[6]=i,e[7]=n,e[8]=A):A=e[8];let Q;e[9]!==H||e[10]!==A?(Q={mutationFn:H,onSuccess:A,onError:bn},e[9]=H,e[10]=A,e[11]=Q):Q=e[11];const _=lt(Q);let W;e[12]!==f||e[13]!==N||e[14]!==b||e[15]!==_||e[16]!==l||e[17]!==n?(W=()=>{const L=f.trim();if(!L){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameRequired"));return}if(l.some(Ne=>Lt(Ne,{name:L,scope:N}))){ce.error(n("mainPanelTabs.hostingTab.errorEnvNameDuplicate"));return}_.mutate([...l,{name:L,value:b,scope:N}],{onSuccess:()=>{d(!1),u(""),x(""),C("runtime")}})},e[12]=f,e[13]=N,e[14]=b,e[15]=_,e[16]=l,e[17]=n,e[18]=W):W=e[18];const J=W;let U;e[19]!==y||e[20]!==_||e[21]!==l?(U=L=>{_.mutate(l.map(Ne=>Lt(Ne,L)?{name:L.name,value:y,scope:L.scope}:Ne),{onSuccess:()=>S(null)})},e[19]=y,e[20]=_,e[21]=l,e[22]=U):U=e[22];const p=U;let I;e[23]!==w||e[24]!==_||e[25]!==l?(I=()=>{w&&_.mutate(l.filter(L=>!Lt(L,w)),{onSuccess:()=>j(null)})},e[23]=w,e[24]=_,e[25]=l,e[26]=I):I=e[26];const Y=I,D=_.isPending;let G;e[27]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{u(""),x(""),C("runtime")},e[27]=G):G=e[27];const O=G;let k,E;e[28]===Symbol.for("react.memo_cache_sentinel")?(k=()=>d(!0),E=t.jsx(Pt,{}),e[28]=k,e[29]=E):(k=e[28],E=e[29]);let B;e[30]!==n?(B=n("mainPanelTabs.hostingTab.addVariable"),e[30]=n,e[31]=B):B=e[31];let X;e[32]!==B?(X=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:k,children:[E,B]}),e[32]=B,e[33]=X):X=e[33];const te=X;let K;e[34]!==n?(K=n("mainPanelTabs.hostingTab.env"),e[34]=n,e[35]=K):K=e[35];const ne=l.length>0||c.length>0?te:void 0;let ie;e[36]!==te||e[37]!==c||e[38]!==y||e[39]!==P?.name||e[40]!==P?.scope||e[41]!==l||e[42]!==s||e[43]!==p||e[44]!==m||e[45]!==D||e[46]!==V||e[47]!==n?(ie=m?t.jsx(ht,{}):s?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.envError")})}):l.length===0&&c.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(Jt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noEnv"),className:"py-10",buttonComponent:te})}):t.jsxs(Qe,{children:[l.map(L=>{const Ne=L.scope==="build"?"build":"runtime",We=`${L.name}:${Ne}`,tt=P?.name===L.name&&P?.scope===Ne,st=V.has(We);return t.jsxs(pt,{children:[t.jsxs("div",{className:"flex min-w-0 flex-1 basis-0 items-center gap-2",children:[t.jsx("div",{className:"w-20 shrink-0",children:t.jsx(bs,{scope:Ne})}),t.jsx("span",{className:"truncate font-mono text-xs",children:L.name})]}),t.jsx("div",{className:"flex min-w-0 flex-1 basis-0 items-center justify-end gap-2",children:tt?t.jsxs(t.Fragment,{children:[t.jsx(it,{value:y,onChange:z=>R(z.target.value),onKeyDown:z=>{z.key==="Enter"&&p({name:L.name,scope:Ne}),z.key==="Escape"&&S(null)},autoFocus:!0,className:"h-8 font-mono text-xs"}),t.jsx(Ie,{size:"sm",onClick:()=>p({name:L.name,scope:Ne}),disabled:D,children:n("mainPanelTabs.hostingTab.save")}),t.jsx(Ie,{size:"sm",variant:"ghost",onClick:()=>S(null),disabled:D,children:n("mainPanelTabs.hostingTab.cancel")})]}):t.jsxs(t.Fragment,{children:[t.jsx(et,{label:n(st?"mainPanelTabs.hostingTab.hideValue":"mainPanelTabs.hostingTab.showValue"),onClick:()=>v(We),className:"text-muted-foreground",children:st?t.jsx(Bs,{}):t.jsx(Os,{})}),st?t.jsx("button",{type:"button",onClick:()=>{S({name:L.name,scope:Ne}),R(L.value)},title:n("mainPanelTabs.hostingTab.editValue"),className:"min-w-0 truncate rounded px-1.5 py-0.5 text-right font-mono text-xs text-muted-foreground hover:bg-muted hover:text-foreground",children:L.value||"—"}):t.jsx("span",{className:"min-w-0 truncate px-1.5 py-0.5 text-right font-mono text-xs text-muted-foreground/60",children:L.value?"••••••••••":"—"})]})}),t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteVariable"),onClick:()=>j({name:L.name,scope:Ne}),disabled:D,className:"text-muted-foreground",children:t.jsx(vt,{})})]},We)}),c.length>0&&t.jsxs(Ht,{children:[t.jsx(Hs,{asChild:!0,children:t.jsxs("button",{type:"button",className:"group flex w-full items-center gap-2 px-4 py-2.5 text-left text-xs text-muted-foreground hover:bg-muted/40",children:[t.jsx(hs,{className:"size-4 transition-transform duration-200 group-data-[state=open]:rotate-90 motion-reduce:transition-none"}),t.jsx(Jt,{className:"size-4"}),n("mainPanelTabs.hostingTab.codeVarsToggle",{count:String(c.length)})]})}),t.jsx(Vt,{children:t.jsx("div",{className:"divide-y divide-border/60 border-t border-border bg-muted/30",children:c.map(gn)})})]})]}),e[36]=te,e[37]=c,e[38]=y,e[39]=P?.name,e[40]=P?.scope,e[41]=l,e[42]=s,e[43]=p,e[44]=m,e[45]=D,e[46]=V,e[47]=n,e[48]=ie):ie=e[48];let Pe;e[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=L=>{d(L),L||O()},e[49]=Pe):Pe=e[49];let Ce;e[50]!==n?(Ce=n("mainPanelTabs.hostingTab.addVariable"),e[50]=n,e[51]=Ce):Ce=e[51];let me;e[52]!==Ce?(me=t.jsx(yt,{children:t.jsx(St,{children:Ce})}),e[52]=Ce,e[53]=me):me=e[53];let pe;e[54]!==J?(pe=L=>{L.preventDefault(),J()},e[54]=J,e[55]=pe):pe=e[55];let le;e[56]!==n?(le=n("mainPanelTabs.hostingTab.colName"),e[56]=n,e[57]=le):le=e[57];let ae;e[58]!==le?(ae=t.jsx(Xe,{htmlFor:"env-name",children:le}),e[58]=le,e[59]=ae):ae=e[59];let de;e[60]!==n?(de=n("mainPanelTabs.hostingTab.envNamePlaceholder"),e[60]=n,e[61]=de):de=e[61];let De;e[62]===Symbol.for("react.memo_cache_sentinel")?(De=L=>u(L.target.value),e[62]=De):De=e[62];let fe;e[63]!==f||e[64]!==D||e[65]!==de?(fe=t.jsx(it,{id:"env-name",placeholder:de,value:f,onChange:De,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[63]=f,e[64]=D,e[65]=de,e[66]=fe):fe=e[66];let ue;e[67]!==ae||e[68]!==fe?(ue=t.jsxs("div",{className:"flex flex-col gap-2",children:[ae,fe]}),e[67]=ae,e[68]=fe,e[69]=ue):ue=e[69];let oe;e[70]!==n?(oe=n("mainPanelTabs.hostingTab.colValue"),e[70]=n,e[71]=oe):oe=e[71];let Te;e[72]!==oe?(Te=t.jsx(Xe,{htmlFor:"env-value",children:oe}),e[72]=oe,e[73]=Te):Te=e[73];let he;e[74]!==n?(he=n("mainPanelTabs.hostingTab.envValuePlaceholder"),e[74]=n,e[75]=he):he=e[75];let xe;e[76]===Symbol.for("react.memo_cache_sentinel")?(xe=L=>x(L.target.value),e[76]=xe):xe=e[76];let ve;e[77]!==b||e[78]!==D||e[79]!==he?(ve=t.jsx(it,{id:"env-value",placeholder:he,value:b,onChange:xe,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[77]=b,e[78]=D,e[79]=he,e[80]=ve):ve=e[80];let ye;e[81]!==Te||e[82]!==ve?(ye=t.jsxs("div",{className:"flex flex-col gap-2",children:[Te,ve]}),e[81]=Te,e[82]=ve,e[83]=ye):ye=e[83];let ge;e[84]!==n?(ge=n("mainPanelTabs.hostingTab.secretScope"),e[84]=n,e[85]=ge):ge=e[85];let re;e[86]!==ge?(re=t.jsx(Xe,{children:ge}),e[86]=ge,e[87]=re):re=e[87];let be;e[88]!==N||e[89]!==D?(be=t.jsx(hn,{value:N,onChange:C,disabled:D,className:"w-full"}),e[88]=N,e[89]=D,e[90]=be):be=e[90];let we;e[91]!==N||e[92]!==n?(we=n(N==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[91]=N,e[92]=n,e[93]=we):we=e[93];let $;e[94]!==we?($=t.jsx("p",{className:"text-xs text-muted-foreground",children:we}),e[94]=we,e[95]=$):$=e[95];let se;e[96]!==re||e[97]!==be||e[98]!==$?(se=t.jsxs("div",{className:"flex flex-col gap-2",children:[re,be,$]}),e[96]=re,e[97]=be,e[98]=$,e[99]=se):se=e[99];let Se;e[100]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>{d(!1),O()},e[100]=Se):Se=e[100];let je;e[101]!==n?(je=n("mainPanelTabs.hostingTab.cancel"),e[101]=n,e[102]=je):je=e[102];let $e;e[103]!==D||e[104]!==je?($e=t.jsx(Ie,{variant:"outline",type:"button",onClick:Se,disabled:D,children:je}),e[103]=D,e[104]=je,e[105]=$e):$e=e[105];let ze;e[106]!==f||e[107]!==D?(ze=D||!f.trim(),e[106]=f,e[107]=D,e[108]=ze):ze=e[108];let Ke;e[109]!==D||e[110]!==n?(Ke=n(D?"mainPanelTabs.hostingTab.saving":"mainPanelTabs.hostingTab.add"),e[109]=D,e[110]=n,e[111]=Ke):Ke=e[111];let Le;e[112]!==ze||e[113]!==Ke?(Le=t.jsx(Ie,{type:"submit",disabled:ze,children:Ke}),e[112]=ze,e[113]=Ke,e[114]=Le):Le=e[114];let _e;e[115]!==$e||e[116]!==Le?(_e=t.jsxs(Nt,{children:[$e,Le]}),e[115]=$e,e[116]=Le,e[117]=_e):_e=e[117];let Be;e[118]!==pe||e[119]!==ue||e[120]!==ye||e[121]!==se||e[122]!==_e?(Be=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:pe,children:[ue,ye,se,_e]}),e[118]=pe,e[119]=ue,e[120]=ye,e[121]=se,e[122]=_e,e[123]=Be):Be=e[123];let Ve;e[124]!==me||e[125]!==Be?(Ve=t.jsxs(Ct,{className:"sm:max-w-md",children:[me,Be]}),e[124]=me,e[125]=Be,e[126]=Ve):Ve=e[126];let ke;e[127]!==g||e[128]!==Ve?(ke=t.jsx(Dt,{open:g,onOpenChange:Pe,children:Ve}),e[127]=g,e[128]=Ve,e[129]=ke):ke=e[129];const Je=w!=null;let He;e[130]===Symbol.for("react.memo_cache_sentinel")?(He=L=>{L||j(null)},e[130]=He):He=e[130];let Ee;e[131]!==n?(Ee=n("mainPanelTabs.hostingTab.confirmDeleteVariableTitle"),e[131]=n,e[132]=Ee):Ee=e[132];const Oe=w?.name??"";let qe;e[133]!==n||e[134]!==Oe?(qe=n("mainPanelTabs.hostingTab.confirmDeleteVariableDescription",{name:Oe}),e[133]=n,e[134]=Oe,e[135]=qe):qe=e[135];let Ue;e[136]!==n?(Ue=n("mainPanelTabs.hostingTab.deleteVariable"),e[136]=n,e[137]=Ue):Ue=e[137];let M;e[138]!==Y||e[139]!==D||e[140]!==Je||e[141]!==Ee||e[142]!==qe||e[143]!==Ue?(M=t.jsx(wt,{open:Je,onOpenChange:He,title:Ee,description:qe,confirmLabel:Ue,pending:D,onConfirm:Y}),e[138]=Y,e[139]=D,e[140]=Je,e[141]=Ee,e[142]=qe,e[143]=Ue,e[144]=M):M=e[144];let Ge;return e[145]!==K||e[146]!==ne||e[147]!==ie||e[148]!==ke||e[149]!==M?(Ge=t.jsxs(ut,{title:K,actions:ne,children:[ie,ke,M]}),e[145]=K,e[146]=ne,e[147]=ie,e[148]=ke,e[149]=M,e[150]=Ge):Ge=e[150],Ge}function gn(r){return t.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 font-mono text-xs",children:[t.jsx("span",{className:"flex-1 basis-0 truncate",children:r.name}),t.jsx("span",{className:"flex-1 basis-0 truncate text-right text-muted-foreground",children:r.value})]},r.name)}function bn(r){return ce.error(rt(r))}function pn(r){const e=ee.c(6),{type:o}=r,a=Ae(),i=o==="permanent"?"secondary":"outline";let l;e[0]!==a||e[1]!==o?(l=a(o==="permanent"?"mainPanelTabs.hostingTab.permanent":"mainPanelTabs.hostingTab.temporary"),e[0]=a,e[1]=o,e[2]=l):l=e[2];let c;return e[3]!==i||e[4]!==l?(c=t.jsx(Re,{variant:i,children:l}),e[3]=i,e[4]=l,e[5]=c):c=e[5],c}function Tn(r){const e=ee.c(163),{base:o,orgSlug:a,site:i,redirects:l,isLoading:c,error:m}=r,s=Ae(),n=bt(),[h,g]=Z.useState(!1),[d,f]=Z.useState(null),[u,b]=Z.useState(""),[x,N]=Z.useState(""),[C,P]=Z.useState("permanent"),[S,y]=Z.useState(null),[R,w]=Z.useState(null);let j;e[0]!==a||e[1]!==n||e[2]!==i?(j=()=>n.invalidateQueries({queryKey:Ye.hostingRedirects(a,i)}),e[0]=a,e[1]=n,e[2]=i,e[3]=j):j=e[3];const T=j;let V;e[4]!==o?(V=z=>at(`${o}/redirects`,"PUT",z),e[4]=o,e[5]=V):V=e[5];let q;e[6]!==T||e[7]!==s?(q=()=>{T(),ce.success(s("mainPanelTabs.hostingTab.toastRedirectSaved")),g(!1)},e[6]=T,e[7]=s,e[8]=q):q=e[8];let F;e[9]!==V||e[10]!==q?(F={mutationFn:V,onSuccess:q,onError:Pn},e[9]=V,e[10]=q,e[11]=F):F=e[11];const v=lt(F);let H;e[12]!==o?(H=z=>at(`${o}/redirects/${encodeURIComponent(z)}`,"DELETE"),e[12]=o,e[13]=H):H=e[13];let A;e[14]!==T||e[15]!==s?(A=()=>{T(),ce.success(s("mainPanelTabs.hostingTab.toastRedirectDeleted")),y(null)},e[14]=T,e[15]=s,e[16]=A):A=e[16];let Q;e[17]!==H||e[18]!==A?(Q={mutationFn:H,onSuccess:A,onError:jn},e[17]=H,e[18]=A,e[19]=Q):Q=e[19];const _=lt(Q);let W;e[20]===Symbol.for("react.memo_cache_sentinel")?(W=()=>{f(null),b(""),N(""),P("permanent"),g(!0)},e[20]=W):W=e[20];const J=W;let U;e[21]===Symbol.for("react.memo_cache_sentinel")?(U=z=>{f(z.from),b(z.from),N(z.to),P(z.type==="temporary"?"temporary":"permanent"),g(!0)},e[21]=U):U=e[21];const p=U;let I;e[22]!==u||e[23]!==x||e[24]!==C||e[25]!==v||e[26]!==s?(I=()=>{const z=u.trim(),Tt=x.trim();if(!z||!Tt){ce.error(s("mainPanelTabs.hostingTab.errorRedirectFieldsRequired"));return}v.mutate({from:z,to:Tt,type:C})},e[22]=u,e[23]=x,e[24]=C,e[25]=v,e[26]=s,e[27]=I):I=e[27];const Y=I;let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(Pt,{}),e[28]=D):D=e[28];let G;e[29]!==s?(G=s("mainPanelTabs.hostingTab.addRedirect"),e[29]=s,e[30]=G):G=e[30];let O;e[31]!==G?(O=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:J,children:[D,G]}),e[31]=G,e[32]=O):O=e[32];const k=O;let E;e[33]!==s?(E=s("mainPanelTabs.hostingTab.redirects"),e[33]=s,e[34]=E):E=e[34];const B=l.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]!==l||e[42]!==s?(X=c?t.jsx(ht,{}):m?t.jsx(Qe,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.redirectsError")})}):l.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(Yt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noRedirects"),className:"py-10",buttonComponent:k})}):t.jsx(Qe,{children:l.map((z,Tt)=>{const Ut=Zt(z.from),$t=R===z.from;return t.jsxs("div",{children:[t.jsxs(pt,{children:[Ut?t.jsx(Qt,{open:$t,onClick:()=>w($t?null:z.from)}):t.jsx(Yt,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 font-mono text-xs",children:[t.jsx("span",{className:"truncate",children:z.from}),t.jsx(qs,{className:"size-3.5 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"truncate text-muted-foreground",children:z.to})]}),t.jsx(pn,{type:z.type}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.editRedirect"),onClick:()=>p(z),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(ks,{})}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.deleteRedirect"),onClick:()=>y(z.from),disabled:_.isPending,className:"-ml-1 text-muted-foreground",children:t.jsx(vt,{})})]}),Ut&&t.jsx(gs,{open:$t,children:t.jsx(es,{from:z.from,source:z.source})})]},z.id??`${z.from}-${Tt}`)})}),e[35]=k,e[36]=_.isPending,e[37]=R,e[38]=m,e[39]=c,e[40]=v.isPending,e[41]=l,e[42]=s,e[43]=X):X=e[43];let te;e[44]!==d||e[45]!==s?(te=d!=null?s("mainPanelTabs.hostingTab.editRedirectTitle"):s("mainPanelTabs.hostingTab.addRedirectTitle"),e[44]=d,e[45]=s,e[46]=te):te=e[46];let K;e[47]!==te?(K=t.jsx(yt,{children:t.jsx(St,{children:te})}),e[47]=te,e[48]=K):K=e[48];let ne;e[49]!==Y?(ne=z=>{z.preventDefault(),Y()},e[49]=Y,e[50]=ne):ne=e[50];let ie;e[51]!==s?(ie=s("mainPanelTabs.hostingTab.colFrom"),e[51]=s,e[52]=ie):ie=e[52];let Pe;e[53]!==ie?(Pe=t.jsx(Xe,{htmlFor:"redirect-from",children:ie}),e[53]=ie,e[54]=Pe):Pe=e[54];let Ce;e[55]!==s?(Ce=s("mainPanelTabs.hostingTab.redirectFromPlaceholder"),e[55]=s,e[56]=Ce):Ce=e[56];let me;e[57]===Symbol.for("react.memo_cache_sentinel")?(me=z=>b(z.target.value),e[57]=me):me=e[57];const pe=d!=null||v.isPending;let le;e[58]!==u||e[59]!==Ce||e[60]!==pe?(le=t.jsx(it,{id:"redirect-from",placeholder:Ce,value:u,onChange:me,className:"font-mono text-xs",disabled:pe}),e[58]=u,e[59]=Ce,e[60]=pe,e[61]=le):le=e[61];let ae;e[62]!==Pe||e[63]!==le?(ae=t.jsxs("div",{className:"flex flex-col gap-2",children:[Pe,le]}),e[62]=Pe,e[63]=le,e[64]=ae):ae=e[64];let de;e[65]!==s?(de=s("mainPanelTabs.hostingTab.colTo"),e[65]=s,e[66]=de):de=e[66];let De;e[67]!==de?(De=t.jsx(Xe,{htmlFor:"redirect-to",children:de}),e[67]=de,e[68]=De):De=e[68];let fe;e[69]!==s?(fe=s("mainPanelTabs.hostingTab.redirectToPlaceholder"),e[69]=s,e[70]=fe):fe=e[70];let ue;e[71]===Symbol.for("react.memo_cache_sentinel")?(ue=z=>N(z.target.value),e[71]=ue):ue=e[71];let oe;e[72]!==x||e[73]!==v.isPending||e[74]!==fe?(oe=t.jsx(it,{id:"redirect-to",placeholder:fe,value:x,onChange:ue,className:"font-mono text-xs",disabled:v.isPending}),e[72]=x,e[73]=v.isPending,e[74]=fe,e[75]=oe):oe=e[75];let Te;e[76]!==De||e[77]!==oe?(Te=t.jsxs("div",{className:"flex flex-col gap-2",children:[De,oe]}),e[76]=De,e[77]=oe,e[78]=Te):Te=e[78];let he;e[79]!==s?(he=s("mainPanelTabs.hostingTab.colType"),e[79]=s,e[80]=he):he=e[80];let xe;e[81]!==he?(xe=t.jsx(Xe,{children:he}),e[81]=he,e[82]=xe):xe=e[82];let ve;e[83]===Symbol.for("react.memo_cache_sentinel")?(ve=z=>P(z==="temporary"?"temporary":"permanent"),e[83]=ve):ve=e[83];const ye=v.isPending;let ge;e[84]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx(Ot,{className:"w-full",children:t.jsx(Bt,{})}),e[84]=ge):ge=e[84];let re;e[85]!==s?(re=s("mainPanelTabs.hostingTab.permanent"),e[85]=s,e[86]=re):re=e[86];let be;e[87]!==re?(be=t.jsx(ft,{value:"permanent",children:re}),e[87]=re,e[88]=be):be=e[88];let we;e[89]!==s?(we=s("mainPanelTabs.hostingTab.temporary"),e[89]=s,e[90]=we):we=e[90];let $;e[91]!==we?($=t.jsx(ft,{value:"temporary",children:we}),e[91]=we,e[92]=$):$=e[92];let se;e[93]!==be||e[94]!==$?(se=t.jsxs(qt,{children:[be,$]}),e[93]=be,e[94]=$,e[95]=se):se=e[95];let Se;e[96]!==C||e[97]!==v.isPending||e[98]!==se?(Se=t.jsxs(Mt,{value:C,onValueChange:ve,disabled:ye,children:[ge,se]}),e[96]=C,e[97]=v.isPending,e[98]=se,e[99]=Se):Se=e[99];let je;e[100]!==xe||e[101]!==Se?(je=t.jsxs("div",{className:"flex flex-col gap-2",children:[xe,Se]}),e[100]=xe,e[101]=Se,e[102]=je):je=e[102];let $e;e[103]!==d||e[104]!==u||e[105]!==l?($e=Zt(u)&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(es,{from:u,source:l.find(z=>z.from===d)?.source})}),e[103]=d,e[104]=u,e[105]=l,e[106]=$e):$e=e[106];let ze;e[107]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>g(!1),e[107]=ze):ze=e[107];const Ke=v.isPending;let Le;e[108]!==s?(Le=s("mainPanelTabs.hostingTab.cancel"),e[108]=s,e[109]=Le):Le=e[109];let _e;e[110]!==v.isPending||e[111]!==Le?(_e=t.jsx(Ie,{variant:"outline",type:"button",onClick:ze,disabled:Ke,children:Le}),e[110]=v.isPending,e[111]=Le,e[112]=_e):_e=e[112];let Be;e[113]!==u||e[114]!==x||e[115]!==v.isPending?(Be=v.isPending||!u.trim()||!x.trim(),e[113]=u,e[114]=x,e[115]=v.isPending,e[116]=Be):Be=e[116];let Ve;e[117]!==v.isPending||e[118]!==s?(Ve=v.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.save"),e[117]=v.isPending,e[118]=s,e[119]=Ve):Ve=e[119];let ke;e[120]!==Be||e[121]!==Ve?(ke=t.jsx(Ie,{type:"submit",disabled:Be,children:Ve}),e[120]=Be,e[121]=Ve,e[122]=ke):ke=e[122];let Je;e[123]!==_e||e[124]!==ke?(Je=t.jsxs(Nt,{children:[_e,ke]}),e[123]=_e,e[124]=ke,e[125]=Je):Je=e[125];let He;e[126]!==ne||e[127]!==ae||e[128]!==Te||e[129]!==je||e[130]!==$e||e[131]!==Je?(He=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:ne,children:[ae,Te,je,$e,Je]}),e[126]=ne,e[127]=ae,e[128]=Te,e[129]=je,e[130]=$e,e[131]=Je,e[132]=He):He=e[132];let Ee;e[133]!==K||e[134]!==He?(Ee=t.jsxs(Ct,{className:"sm:max-w-md",children:[K,He]}),e[133]=K,e[134]=He,e[135]=Ee):Ee=e[135];let Oe;e[136]!==h||e[137]!==Ee?(Oe=t.jsx(Dt,{open:h,onOpenChange:g,children:Ee}),e[136]=h,e[137]=Ee,e[138]=Oe):Oe=e[138];const qe=S!=null;let Ue;e[139]===Symbol.for("react.memo_cache_sentinel")?(Ue=z=>{z||y(null)},e[139]=Ue):Ue=e[139];let M;e[140]!==s?(M=s("mainPanelTabs.hostingTab.confirmDeleteRedirectTitle"),e[140]=s,e[141]=M):M=e[141];const Ge=S??"";let L;e[142]!==s||e[143]!==Ge?(L=s("mainPanelTabs.hostingTab.confirmDeleteRedirectDescription",{from:Ge}),e[142]=s,e[143]=Ge,e[144]=L):L=e[144];let Ne;e[145]!==s?(Ne=s("mainPanelTabs.hostingTab.deleteRedirect"),e[145]=s,e[146]=Ne):Ne=e[146];let We;e[147]!==_||e[148]!==S?(We=()=>{S&&_.mutate(S)},e[147]=_,e[148]=S,e[149]=We):We=e[149];let tt;e[150]!==_.isPending||e[151]!==qe||e[152]!==M||e[153]!==L||e[154]!==Ne||e[155]!==We?(tt=t.jsx(wt,{open:qe,onOpenChange:Ue,title:M,description:L,confirmLabel:Ne,pending:_.isPending,onConfirm:We}),e[150]=_.isPending,e[151]=qe,e[152]=M,e[153]=L,e[154]=Ne,e[155]=We,e[156]=tt):tt=e[156];let st;return e[157]!==E||e[158]!==B||e[159]!==X||e[160]!==Oe||e[161]!==tt?(st=t.jsxs(ut,{title:E,actions:B,children:[X,Oe,tt]}),e[157]=E,e[158]=B,e[159]=X,e[160]=Oe,e[161]=tt,e[162]=st):st=e[162],st}function jn(r){return ce.error(rt(r))}function Pn(r){return ce.error(rt(r))}function vn(r){const e=ee.c(160),{base:o,orgSlug:a,site:i,secrets:l,isLoading:c,error:m}=r,s=Ae(),n=bt(),[h,g]=Z.useState(!1),[d,f]=Z.useState(""),[u,b]=Z.useState(""),[x,N]=Z.useState("runtime"),[C,P]=Z.useState(null);let S;e[0]!==a||e[1]!==n||e[2]!==i?(S=()=>n.invalidateQueries({queryKey:Ye.hostingSecrets(a,i)}),e[0]=a,e[1]=n,e[2]=i,e[3]=S):S=e[3];const y=S;let R;e[4]!==o?(R=M=>at(`${o}/secrets`,"PUT",M),e[4]=o,e[5]=R):R=e[5];let w;e[6]!==y||e[7]!==s?(w=()=>{y(),ce.success(s("mainPanelTabs.hostingTab.toastSecretSaved")),g(!1),f(""),b(""),N("runtime")},e[6]=y,e[7]=s,e[8]=w):w=e[8];let j;e[9]!==R||e[10]!==w?(j={mutationFn:R,onSuccess:w,onError:Sn},e[9]=R,e[10]=w,e[11]=j):j=e[11];const T=lt(j);let V;e[12]!==o?(V=M=>at(`${o}/secrets/${encodeURIComponent(M.name)}?scope=${M.scope}`,"DELETE"),e[12]=o,e[13]=V):V=e[13];let q;e[14]!==y||e[15]!==s?(q=()=>{y(),ce.success(s("mainPanelTabs.hostingTab.toastSecretDeleted")),P(null)},e[14]=y,e[15]=s,e[16]=q):q=e[16];let F;e[17]!==V||e[18]!==q?(F={mutationFn:V,onSuccess:q,onError:yn},e[17]=V,e[18]=q,e[19]=F):F=e[19];const v=lt(F);let H;e[20]!==d||e[21]!==x||e[22]!==u||e[23]!==T||e[24]!==s?(H=()=>{const M=d.trim();if(!M){ce.error(s("mainPanelTabs.hostingTab.errorSecretNameRequired"));return}if(!u){ce.error(s("mainPanelTabs.hostingTab.errorSecretValueRequired"));return}T.mutate({name:M,value:u,scope:x})},e[20]=d,e[21]=x,e[22]=u,e[23]=T,e[24]=s,e[25]=H):H=e[25];const A=H;let Q,_;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=()=>g(!0),Q=t.jsx(Pt,{}),e[26]=Q,e[27]=_):(Q=e[26],_=e[27]);let W;e[28]!==s?(W=s("mainPanelTabs.hostingTab.addSecret"),e[28]=s,e[29]=W):W=e[29];let J;e[30]!==W?(J=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:_,children:[Q,W]}),e[30]=W,e[31]=J):J=e[31];const U=J;let p;e[32]!==s?(p=s("mainPanelTabs.hostingTab.secrets"),e[32]=s,e[33]=p):p=e[33];const I=l.length>0?U:void 0;let Y;e[34]!==U||e[35]!==v.isPending||e[36]!==m||e[37]!==c||e[38]!==l||e[39]!==s?(Y=c?t.jsx(ht,{}):m?t.jsx(Qe,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.secretsError")})}):l.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(Kt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noSecrets"),className:"py-10",buttonComponent:U})}):t.jsx(Qe,{children:l.map(M=>{const Ge=M.scope==="build"?"build":"runtime";return t.jsxs(pt,{children:[t.jsx(Kt,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[t.jsx("div",{className:"w-20 shrink-0",children:t.jsx(bs,{scope:Ge})}),t.jsx("span",{className:"truncate font-mono text-xs",children:M.name}),M.origin==="worker"&&t.jsx(Re,{variant:"secondary",children:s("mainPanelTabs.hostingTab.secretOnWorker")})]}),t.jsx("span",{className:"font-mono text-xs text-muted-foreground/60",children:s("mainPanelTabs.hostingTab.secretValueHidden")}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.deleteSecret"),onClick:()=>P({name:M.name,scope:Ge}),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]},`${M.name}:${Ge}`)})}),e[34]=U,e[35]=v.isPending,e[36]=m,e[37]=c,e[38]=l,e[39]=s,e[40]=Y):Y=e[40];let D;e[41]!==s?(D=s("mainPanelTabs.hostingTab.addSecretTitle"),e[41]=s,e[42]=D):D=e[42];let G;e[43]!==D?(G=t.jsx(yt,{children:t.jsx(St,{children:D})}),e[43]=D,e[44]=G):G=e[44];let O;e[45]!==A?(O=M=>{M.preventDefault(),A()},e[45]=A,e[46]=O):O=e[46];let k;e[47]!==s?(k=s("mainPanelTabs.hostingTab.colName"),e[47]=s,e[48]=k):k=e[48];let E;e[49]!==k?(E=t.jsx(Xe,{htmlFor:"secret-name",children:k}),e[49]=k,e[50]=E):E=e[50];let B;e[51]!==s?(B=s("mainPanelTabs.hostingTab.secretNamePlaceholder"),e[51]=s,e[52]=B):B=e[52];let X;e[53]===Symbol.for("react.memo_cache_sentinel")?(X=M=>f(M.target.value),e[53]=X):X=e[53];let te;e[54]!==d||e[55]!==T.isPending||e[56]!==B?(te=t.jsx(it,{id:"secret-name",placeholder:B,value:d,onChange:X,className:"font-mono text-xs",autoComplete:"off",disabled:T.isPending}),e[54]=d,e[55]=T.isPending,e[56]=B,e[57]=te):te=e[57];let K;e[58]!==E||e[59]!==te?(K=t.jsxs("div",{className:"flex flex-col gap-2",children:[E,te]}),e[58]=E,e[59]=te,e[60]=K):K=e[60];let ne;e[61]!==s?(ne=s("mainPanelTabs.hostingTab.colValue"),e[61]=s,e[62]=ne):ne=e[62];let ie;e[63]!==ne?(ie=t.jsx(Xe,{htmlFor:"secret-value",children:ne}),e[63]=ne,e[64]=ie):ie=e[64];let Pe;e[65]!==s?(Pe=s("mainPanelTabs.hostingTab.secretValuePlaceholder"),e[65]=s,e[66]=Pe):Pe=e[66];let Ce;e[67]===Symbol.for("react.memo_cache_sentinel")?(Ce=M=>b(M.target.value),e[67]=Ce):Ce=e[67];let me;e[68]!==u||e[69]!==T.isPending||e[70]!==Pe?(me=t.jsx(it,{id:"secret-value",type:"password",placeholder:Pe,value:u,onChange:Ce,className:"font-mono text-xs",autoComplete:"new-password",disabled:T.isPending}),e[68]=u,e[69]=T.isPending,e[70]=Pe,e[71]=me):me=e[71];let pe;e[72]!==ie||e[73]!==me?(pe=t.jsxs("div",{className:"flex flex-col gap-2",children:[ie,me]}),e[72]=ie,e[73]=me,e[74]=pe):pe=e[74];let le;e[75]!==s?(le=s("mainPanelTabs.hostingTab.secretScope"),e[75]=s,e[76]=le):le=e[76];let ae;e[77]!==le?(ae=t.jsx(Xe,{children:le}),e[77]=le,e[78]=ae):ae=e[78];let de;e[79]===Symbol.for("react.memo_cache_sentinel")?(de=M=>N(M==="build"?"build":"runtime"),e[79]=de):de=e[79];const De=T.isPending;let fe;e[80]===Symbol.for("react.memo_cache_sentinel")?(fe=t.jsx(Ot,{className:"w-full",children:t.jsx(Bt,{})}),e[80]=fe):fe=e[80];let ue;e[81]!==s?(ue=s("mainPanelTabs.hostingTab.secretScopeRuntime"),e[81]=s,e[82]=ue):ue=e[82];let oe;e[83]!==ue?(oe=t.jsx(ft,{value:"runtime",children:ue}),e[83]=ue,e[84]=oe):oe=e[84];let Te;e[85]!==s?(Te=s("mainPanelTabs.hostingTab.secretScopeBuild"),e[85]=s,e[86]=Te):Te=e[86];let he;e[87]!==Te?(he=t.jsx(ft,{value:"build",children:Te}),e[87]=Te,e[88]=he):he=e[88];let xe;e[89]!==oe||e[90]!==he?(xe=t.jsxs(qt,{children:[oe,he]}),e[89]=oe,e[90]=he,e[91]=xe):xe=e[91];let ve;e[92]!==x||e[93]!==T.isPending||e[94]!==xe?(ve=t.jsxs(Mt,{value:x,onValueChange:de,disabled:De,children:[fe,xe]}),e[92]=x,e[93]=T.isPending,e[94]=xe,e[95]=ve):ve=e[95];let ye;e[96]!==x||e[97]!==s?(ye=s(x==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[96]=x,e[97]=s,e[98]=ye):ye=e[98];let ge;e[99]!==ye?(ge=t.jsx("p",{className:"text-xs text-muted-foreground",children:ye}),e[99]=ye,e[100]=ge):ge=e[100];let re;e[101]!==ae||e[102]!==ve||e[103]!==ge?(re=t.jsxs("div",{className:"flex flex-col gap-2",children:[ae,ve,ge]}),e[101]=ae,e[102]=ve,e[103]=ge,e[104]=re):re=e[104];let be;e[105]===Symbol.for("react.memo_cache_sentinel")?(be=()=>g(!1),e[105]=be):be=e[105];const we=T.isPending;let $;e[106]!==s?($=s("mainPanelTabs.hostingTab.cancel"),e[106]=s,e[107]=$):$=e[107];let se;e[108]!==T.isPending||e[109]!==$?(se=t.jsx(Ie,{variant:"outline",type:"button",onClick:be,disabled:we,children:$}),e[108]=T.isPending,e[109]=$,e[110]=se):se=e[110];let Se;e[111]!==d||e[112]!==u||e[113]!==T.isPending?(Se=T.isPending||!d.trim()||!u,e[111]=d,e[112]=u,e[113]=T.isPending,e[114]=Se):Se=e[114];let je;e[115]!==T.isPending||e[116]!==s?(je=T.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.add"),e[115]=T.isPending,e[116]=s,e[117]=je):je=e[117];let $e;e[118]!==Se||e[119]!==je?($e=t.jsx(Ie,{type:"submit",disabled:Se,children:je}),e[118]=Se,e[119]=je,e[120]=$e):$e=e[120];let ze;e[121]!==se||e[122]!==$e?(ze=t.jsxs(Nt,{children:[se,$e]}),e[121]=se,e[122]=$e,e[123]=ze):ze=e[123];let Ke;e[124]!==O||e[125]!==K||e[126]!==pe||e[127]!==re||e[128]!==ze?(Ke=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:O,children:[K,pe,re,ze]}),e[124]=O,e[125]=K,e[126]=pe,e[127]=re,e[128]=ze,e[129]=Ke):Ke=e[129];let Le;e[130]!==G||e[131]!==Ke?(Le=t.jsxs(Ct,{className:"sm:max-w-md",children:[G,Ke]}),e[130]=G,e[131]=Ke,e[132]=Le):Le=e[132];let _e;e[133]!==h||e[134]!==Le?(_e=t.jsx(Dt,{open:h,onOpenChange:g,children:Le}),e[133]=h,e[134]=Le,e[135]=_e):_e=e[135];const Be=C!=null;let Ve;e[136]===Symbol.for("react.memo_cache_sentinel")?(Ve=M=>{M||P(null)},e[136]=Ve):Ve=e[136];let ke;e[137]!==s?(ke=s("mainPanelTabs.hostingTab.confirmDeleteSecretTitle"),e[137]=s,e[138]=ke):ke=e[138];const Je=C?.name??"";let He;e[139]!==s||e[140]!==Je?(He=s("mainPanelTabs.hostingTab.confirmDeleteSecretDescription",{name:Je}),e[139]=s,e[140]=Je,e[141]=He):He=e[141];let Ee;e[142]!==s?(Ee=s("mainPanelTabs.hostingTab.deleteSecret"),e[142]=s,e[143]=Ee):Ee=e[143];let Oe;e[144]!==v||e[145]!==C?(Oe=()=>{C&&v.mutate(C)},e[144]=v,e[145]=C,e[146]=Oe):Oe=e[146];let qe;e[147]!==v.isPending||e[148]!==Be||e[149]!==ke||e[150]!==He||e[151]!==Ee||e[152]!==Oe?(qe=t.jsx(wt,{open:Be,onOpenChange:Ve,title:ke,description:He,confirmLabel:Ee,pending:v.isPending,onConfirm:Oe}),e[147]=v.isPending,e[148]=Be,e[149]=ke,e[150]=He,e[151]=Ee,e[152]=Oe,e[153]=qe):qe=e[153];let Ue;return e[154]!==p||e[155]!==I||e[156]!==Y||e[157]!==_e||e[158]!==qe?(Ue=t.jsxs(ut,{title:p,actions:I,children:[Y,_e,qe]}),e[154]=p,e[155]=I,e[156]=Y,e[157]=_e,e[158]=qe,e[159]=Ue):Ue=e[159],Ue}function yn(r){return ce.error(rt(r))}function Sn(r){return ce.error(rt(r))}const Nn=3e4;function kl(r){const e=ee.c(111),{virtualMcpId:o}=r,a=Ae(),{org:i}=Cs(),l=Es(o),c=Rs(l),m=!!c,s=c?`/api/${i.slug}/hosting/${encodeURIComponent(c)}`:"";let n;e[0]!==s||e[1]!==m?(n=(O,k)=>({queryKey:O,queryFn:()=>It(`${s}${k}`),enabled:m,retry:!1,staleTime:Nn}),e[0]=s,e[1]=m,e[2]=n):n=e[2];const h=n,g=c??"",d=ct(h(Ye.hostingDeployments(i.slug,g),"/deployments")),f=ct(h(Ye.hostingEnv(i.slug,g),"/env")),u=ct(h(Ye.hostingSecrets(i.slug,g),"/secrets")),b=ct(h(Ye.hostingRedirects(i.slug,g),"/redirects")),x=ct(h(Ye.hostingDomains(i.slug,g),"/domains"));if(!c){let O;e[3]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(kt,{className:"size-5"}),e[3]=O):O=e[3];let k;e[4]!==a?(k=a("mainPanelTabs.hostingTab.noSiteTitle"),e[4]=a,e[5]=k):k=e[5];let E;e[6]!==a?(E=a("mainPanelTabs.hostingTab.noSiteDescription"),e[6]=a,e[7]=E):E=e[7];let B;return e[8]!==k||e[9]!==E?(B=t.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:t.jsx(Ze,{icon:O,title:k,description:E})}),e[8]=k,e[9]=E,e[10]=B):B=e[10],B}if(jt(d.error)&&jt(f.error)&&jt(b.error)){let O;e[11]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(kt,{className:"size-5"}),e[11]=O):O=e[11];let k;e[12]!==a?(k=a("mainPanelTabs.hostingTab.notConnectedTitle"),e[12]=a,e[13]=k):k=e[13];let E;e[14]!==a?(E=a("mainPanelTabs.hostingTab.notConnectedDescription"),e[14]=a,e[15]=E):E=e[15];let B;return e[16]!==k||e[17]!==E?(B=t.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:t.jsx(Ze,{icon:O,title:k,description:E})}),e[16]=k,e[17]=E,e[18]=B):B=e[18],B}let C,P,S,y,R,w,j,T,V,q;if(e[19]!==d.data||e[20]!==x.data||e[21]!==f.data||e[22]!==b.data||e[23]!==u.data){P=mt(d.data,"items");let O;e[34]!==f.data?(O=mt(f.data,"vars"),e[34]=f.data,e[35]=O):O=e[35],R=O;let k;e[36]!==f.data?(k=mt(f.data,"codeVars"),e[36]=f.data,e[37]=k):k=e[37],C=k;let E;e[38]!==u.data?(E=mt(u.data,"secrets"),e[38]=u.data,e[39]=E):E=e[39],V=E;let B;e[40]!==b.data?(B=mt(b.data,"items"),e[40]=b.data,e[41]=B):B=e[41],T=B;const X=x.data;let te;e[42]!==X?.items?(te=X?.items??[],e[42]=X?.items,e[43]=te):te=e[43],y=te;let K;e[44]!==X?.dnsTemplate?(K=X?.dnsTemplate??[],e[44]=X?.dnsTemplate,e[45]=K):K=e[45],S=K;const ne=P.find(Dn);w=zt((ne??P.find(Cn))?.framework),j=ne?.servingUrl??null,q=j?j.replace(/^https?:\/\//,"").replace(/\/$/,""):null,e[19]=d.data,e[20]=x.data,e[21]=f.data,e[22]=b.data,e[23]=u.data,e[24]=C,e[25]=P,e[26]=S,e[27]=y,e[28]=R,e[29]=w,e[30]=j,e[31]=T,e[32]=V,e[33]=q}else C=e[24],P=e[25],S=e[26],y=e[27],R=e[28],w=e[29],j=e[30],T=e[31],V=e[32],q=e[33];const F=q;let v;e[46]!==s||e[47]!==i.slug||e[48]!==c?(v=t.jsx(Ys,{base:s,orgSlug:i.slug,site:c}),e[46]=s,e[47]=i.slug,e[48]=c,e[49]=v):v=e[49];let H;e[50]!==a?(H=a("mainPanelTabs.hostingTab.title"),e[50]=a,e[51]=H):H=e[51];let A;e[52]!==w?(A=w&&t.jsx(Re,{variant:"secondary",children:w}),e[52]=w,e[53]=A):A=e[53];let Q;e[54]!==H||e[55]!==A?(Q=t.jsxs("span",{className:"inline-flex items-center gap-2.5",children:[H,A]}),e[54]=H,e[55]=A,e[56]=Q):Q=e[56];let _;e[57]!==v||e[58]!==Q?(_=t.jsx(Wt.Title,{actions:v,children:Q}),e[57]=v,e[58]=Q,e[59]=_):_=e[59];let W;e[60]!==F||e[61]!==j?(W=j&&F&&t.jsx("p",{className:"flex flex-wrap items-center gap-x-1.5 text-sm text-muted-foreground",children:t.jsxs("a",{href:j,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 font-mono text-xs text-foreground hover:underline",children:[F,t.jsx(_t,{className:"size-3"})]})}),e[60]=F,e[61]=j,e[62]=W):W=e[62];let J;e[63]!==_||e[64]!==W?(J=t.jsxs("div",{className:"flex flex-col gap-2",children:[_,W]}),e[63]=_,e[64]=W,e[65]=J):J=e[65];let U;e[66]!==s||e[67]!==P||e[68]!==d.error||e[69]!==d.isLoading||e[70]!==m||e[71]!==i.slug||e[72]!==c?(U=t.jsx(sn,{base:s,orgSlug:i.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]=i.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]!==i.slug||e[80]!==c?(p=t.jsx(xn,{base:s,orgSlug:i.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]=i.slug,e[80]=c,e[81]=p):p=e[81];let I;e[82]!==s||e[83]!==i.slug||e[84]!==V||e[85]!==u.error||e[86]!==u.isLoading||e[87]!==c?(I=t.jsx(vn,{base:s,orgSlug:i.slug,site:c,secrets:V,isLoading:u.isLoading,error:u.error}),e[82]=s,e[83]=i.slug,e[84]=V,e[85]=u.error,e[86]=u.isLoading,e[87]=c,e[88]=I):I=e[88];let Y;e[89]!==s||e[90]!==S||e[91]!==y||e[92]!==x.error||e[93]!==x.isLoading||e[94]!==i.slug||e[95]!==c?(Y=t.jsx(dn,{base:s,orgSlug:i.slug,site:c,domains:y,dnsTemplate:S,isLoading:x.isLoading,error:x.error}),e[89]=s,e[90]=S,e[91]=y,e[92]=x.error,e[93]=x.isLoading,e[94]=i.slug,e[95]=c,e[96]=Y):Y=e[96];let D;e[97]!==s||e[98]!==i.slug||e[99]!==T||e[100]!==b.error||e[101]!==b.isLoading||e[102]!==c?(D=t.jsx(Tn,{base:s,orgSlug:i.slug,site:c,redirects:T,isLoading:b.isLoading,error:b.error}),e[97]=s,e[98]=i.slug,e[99]=T,e[100]=b.error,e[101]=b.isLoading,e[102]=c,e[103]=D):D=e[103];let G;return e[104]!==U||e[105]!==p||e[106]!==I||e[107]!==Y||e[108]!==D||e[109]!==J?(G=t.jsx("div",{className:"h-full min-h-0 overflow-y-auto",children:t.jsx(Wt.Body,{maxWidth:"max-w-5xl",children:t.jsxs(Ds,{children:[J,U,p,I,Y,D]})})}),e[104]=U,e[105]=p,e[106]=I,e[107]=Y,e[108]=D,e[109]=J,e[110]=G):G=e[110],G}function Cn(r){return r.framework}function Dn(r){return r.up===!0}export{kl as HostingTab};
@@ -1 +0,0 @@
1
- import{c as L,b as A,j as r}from"./index-Byx2pRmC.js";import{I as R}from"./input-C_xB1yG3.js";import{L as I}from"./label-Blftr3En.js";import{S as z,b as J,a as O,d as V,c as D}from"./select-Bry_eRAa.js";import{T as M}from"./textarea-D7oZSRuU.js";import{e as $,w as q,j as G,y as H,J as Q}from"./index-Di6eWooH.js";import{s as F}from"./primitives-DsuPOFEy.js";import{u as U}from"./use-autosave-D-mlBHqz.js";import"./Check-DqkacOOo.js";import"./ChevronUp-DuOOHGIB.js";import"./ArrowUp-BreiqpEz.js";import"./chat-context-B6tUHlAE.js";import"./use-panel-navigate-D3xoeR8G.js";import"./use-destination-route-Dumfqkh7.js";import"./autosend-SS5aZjSF.js";import"./thread-intent-D8peSDUi.js";import"./slugify-CEUa2lfQ.js";import"./hooks-b4KT4QM3.js";import"./use-mcp-client-zU4b6By6.js";import"./auth-CauVv39M.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BXVf9Dkw.js";import"./task-board-DUw5IESw.js";import"./schema-japUOE_t.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-xxFiywxX.js";import"./use-ai-providers-BizNuqZ_.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-D8v0JTxh.js";import"./thread-route-CQ-Toekd.js";import"./dialog-DDlyX8zJ.js";import"./Copy01-l2VRotFt.js";import"./Download01-BWA6sHtg.js";import"./use-organization-settings-CTeI3cWs.js";import"./automation-runs-Bzce-lss.js";import"./agent-icon-BAqALP_H.js";import"./AlertCircle-CBd9kERr.js";import"./Tool01-CCYiLfpn.js";import"./ArrowLeft-BjRYjvHK.js";import"./Tool02-C1pNmKnM.js";import"./ArrowRight-Ch_JzAKL.js";import"./TrendUp01-CqdHzjJu.js";import"./ZoomOut-B00NO3iw.js";import"./Users03-jUFurcPA.js";import"./CheckCircle-BTv_HNPs.js";import"./ChevronRight-DzmLWKAo.js";import"./ChevronSelectorVertical-D1pSeQIS.js";import"./DotsVertical-DxIFAaFG.js";import"./UserSquare-BMpPM1Vn.js";import"./CreditCard01-BMkeXieC.js";import"./Settings02-Dr-zcWez.js";import"./Eye-YIGHsl-L.js";import"./Share07-fCS-0opG.js";import"./GitBranch01-BVCazP-u.js";import"./Globe01-C8MxLRkP.js";import"./XClose-D3lJp_3C.js";import"./HardDrive-BS0obIOG.js";import"./Image01-EbJSXFxN.js";import"./Key01-BFkiELTT.js";import"./Link01-C6iFD_1F.js";import"./LinkExternal01-DqKHzw9U.js";import"./Monitor01-Cxz_eAVo.js";import"./Sun-BWedp7Qb.js";import"./Package-CXlEv3H8.js";import"./Palette-DbewMeGN.js";import"./Play-CEPPAIh5.js";import"./Plus-DgxBd8rk.js";import"./SearchLg-AFAJsxFc.js";import"./SearchMd-DeIp0WHu.js";import"./Shield01-Co61R0sU.js";import"./Stars01-C4Zmu7Ep.js";import"./Trash01-DWldj1cf.js";import"./Upload01-BECJfTWE.js";import"./User01-CTfDcS5e.js";import"./Users01-C2R2z6TK.js";import"./XCircle-DbggDpQ5.js";import"./Zap-C6wi2cLw.js";import"./useInfiniteQuery-CGwSzAR5.js";import"./infiniteQueryObserver-f1Mg7m56.js";import"./use-connection-DyoJ3842.js";import"./table-CsCBd0lQ.js";import"./empty-state-hUIlBR3q.js";import"./use-infinite-scroll-BcPSZiNZ.js";import"./use-members-NeCLLrrB.js";import"./use-org-auth-client-B5-qRoTn.js";import"./use-automations-YKeF0GSq.js";import"./useSuspenseInfiniteQuery-oataxVbC.js";import"./avatar-DXXjOQK5.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy--zGmPPwD.js";import"./markdown-htg7W98G.js";import"./monaco-editor-D5wA_jK1.js";import"./editor-TbLNsIFy.js";import"./mcp-app-renderer-C4rMJv7P.js";import"./types-ZI4hLB92.js";import"./shell-layout-DFrR6tdX.js";import"./anchors-yqDzZN4K.js";import"./project-icon-FvFivmfl.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-D6vFPSCI.js";import"./index-DGnV1pVM.js";import"./integration-icon-DZ8Y6sMt.js";import"./required-auth-layout-HH2bVNBU.js";import"./use-org-sso-HqaCDMyO.js";import"./use-org-notice-DWcI6MY4.js";import"./use-navigate-to-agent-vf6CPdOT.js";import"./use-mcp-prompts-DdlH2qST.js";import"./form-D6PYqRbd.js";import"./file-type-icon-B1cjMMrB.js";import"./drawer-DwjjcAEk.js";import"./collection-search-BEeyUT2p.js";import"./tabs-CiF_JE3E.js";import"./toggle-group-C72d71bC.js";import"./task-route-B2F1kPjG.js";import"./extract-connection-data-BmQLXIgr.js";import"./metadata-dUsYcpuu.js";import"./connection-XbVIg3WZ.js";import"./connection-card-Bq-bNVSb.js";import"./use-registry-connections-BVgKKT5B.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-BRqiHsa1.js";import"./authenticate-and-persist-oauth-CgnQlNZ8.js";import"./mcp-oauth-De161Gif.js";import"./collection-tabs-BFgE8VhE.js";import"./badge-BHXGD-K5.js";import"./use-file-configs-D9SysYxD.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-ICXmOu_l.js";import"./popover-Brk4eSJE.js";import"./github-icon-B99drnXh.js";import"./get-initials-D-f_fDFw.js";import"./select-model-D9FmitIE.js";import"./checkbox-CdLxQJZz.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-s_xB5zRI.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Cw4NWpev.js";import"./toolbar-JNnsJplx.js";import"./use-mcp-tools-lB_BBgJh.js";import"./skill-preview-B5YPdiFy.js";import"./use-date-fns-locale--wtOnXlr.js";import"./alert-dialog-CsEW_ZuO.js";import"./use-debounced-autosave-BhTrD5fo.js";import"./scroll-area-D_kMudvf.js";import"./search-input-BWcQ33a7.js";import"./use-mcp-auth-status-BLT8d1nh.js";import"./switch-CFcBe-39.js";import"./breadcrumb-CLQCquYY.js";import"./repository-import-picker-BV9RnTSy.js";import"./repository-picker-BCQoMPuh.js";import"./use-debounced-value-jkfC9hMo.js";import"./use-secrets-Cc8pMQzW.js";import"./client-icons-CaXsC6fg.js";import"./connect-layout-tQE9fQwK.js";import"./self-tool-result-BfrV1Xz8.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-CVU5crkS.js";import"./use-tags-yrL3KCY2.js";import"./toolbar-icon-button-BZmPXrm7.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-C-JbyWG5.js";import"./site-error--i37Vnuw.js";import"./cards-Bg8Jxlkr.js";const W={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},X={authors:"sandbox.recordEditor.titleAuthor"};function ii(C){const t=L.c(41),{orgSlug:K,virtualMcpId:w,branch:f,kind:a,blockKey:u,block:S}=C,i=A();let b;t[0]!==f||t[1]!==K||t[2]!==w?(b={orgSlug:K,virtualMcpId:w,branch:f},t[0]=f,t[1]=K,t[2]=w,t[3]=b):b=t[3];const e=$(b);let h;t[4]!==S||t[5]!==a?(h=q(S,a),t[4]=S,t[5]=a,t[6]=h):h=t[6];const B=h;let k;t[7]!==u||t[8]!==a||t[9]!==e?(k=l=>{e.mutate({blockKey:u,data:H(u,a,l)})},t[7]=u,t[8]=a,t[9]=e,t[10]=k):k=t[10];let v;t[11]!==e.isPending?(v={isSaving:e.isPending},t[11]=e.isPending,t[12]=v):v=t[12];const[m,P]=U(B,k,v);let j;t[13]!==m||t[14]!==P?(j=(l,o)=>P({...m,[l]:o}),t[13]=m,t[14]=P,t[15]=j):j=t[15];const s=j,N=X[a];let n;t[16]!==i||t[17]!==N?(n=i(N),t[16]=i,t[17]=N,t[18]=n):n=t[18];let c;t[19]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[19]=n,t[20]=c):c=t[20];let d;t[21]!==e.isError||t[22]!==e.isPending?(d=r.jsx(G,{isPending:e.isPending,isError:e.isError}),t[21]=e.isError,t[22]=e.isPending,t[23]=d):d=t[23];let y;t[24]!==c||t[25]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[24]=c,t[25]=d,t[26]=y):y=t[26];const T=W[a];let x;if(t[27]!==m||t[28]!==s||t[29]!==i||t[30]!==T){let l;t[32]!==m||t[33]!==s||t[34]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(Q,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:m[o.key],onChange:p=>s(o.key,p),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(z,{value:F(m[o.key])||o.options?.[0]?.value,onValueChange:p=>s(o.key,p),children:[r.jsx(J,{id:o.key,className:"h-10 w-full",children:r.jsx(O,{placeholder:i(o.labelKey)})}),r.jsx(V,{children:(o.options??[]).map(p=>r.jsx(D,{value:p.value,children:i(p.labelKey)},p.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(M,{id:o.key,value:F(m[o.key]),onChange:p=>s(o.key,p.target.value),rows:3}):r.jsx(R,{id:o.key,value:F(m[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:p=>s(o.key,p.target.value),className:"h-10"})]})},o.key),t[32]=m,t[33]=s,t[34]=i,t[35]=l):l=t[35],x=T.map(l),t[27]=m,t[28]=s,t[29]=i,t[30]=T,t[31]=x}else x=t[31];let g;t[36]!==x?(g=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:x})}),t[36]=x,t[37]=g):g=t[37];let E;return t[38]!==y||t[39]!==g?(E=r.jsxs("div",{className:"flex h-full flex-col",children:[y,g]}),t[38]=y,t[39]=g,t[40]=E):E=t[40],E}export{ii as RecordEditor};
@@ -1 +0,0 @@
1
- import{c as at,b as ct,j as r}from"./index-Byx2pRmC.js";import{C as dt}from"./checkbox-CdLxQJZz.js";import{I as it}from"./input-C_xB1yG3.js";import{L as rt}from"./label-Blftr3En.js";import{c as nt,b as ft,a as xt,d as ht,S as ut}from"./select-Bry_eRAa.js";import{e as bt,bF as yt,j as jt,bG as gt,bH as vt}from"./index-Di6eWooH.js";import{u as Et}from"./use-autosave-D-mlBHqz.js";import"./Check-DqkacOOo.js";import"./ChevronUp-DuOOHGIB.js";import"./ArrowUp-BreiqpEz.js";import"./chat-context-B6tUHlAE.js";import"./use-panel-navigate-D3xoeR8G.js";import"./use-destination-route-Dumfqkh7.js";import"./autosend-SS5aZjSF.js";import"./thread-intent-D8peSDUi.js";import"./slugify-CEUa2lfQ.js";import"./hooks-b4KT4QM3.js";import"./use-mcp-client-zU4b6By6.js";import"./auth-CauVv39M.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BXVf9Dkw.js";import"./task-board-DUw5IESw.js";import"./schema-japUOE_t.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-xxFiywxX.js";import"./use-ai-providers-BizNuqZ_.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-D8v0JTxh.js";import"./thread-route-CQ-Toekd.js";import"./dialog-DDlyX8zJ.js";import"./Copy01-l2VRotFt.js";import"./Download01-BWA6sHtg.js";import"./use-organization-settings-CTeI3cWs.js";import"./automation-runs-Bzce-lss.js";import"./agent-icon-BAqALP_H.js";import"./AlertCircle-CBd9kERr.js";import"./Tool01-CCYiLfpn.js";import"./ArrowLeft-BjRYjvHK.js";import"./Tool02-C1pNmKnM.js";import"./ArrowRight-Ch_JzAKL.js";import"./TrendUp01-CqdHzjJu.js";import"./ZoomOut-B00NO3iw.js";import"./Users03-jUFurcPA.js";import"./CheckCircle-BTv_HNPs.js";import"./ChevronRight-DzmLWKAo.js";import"./ChevronSelectorVertical-D1pSeQIS.js";import"./DotsVertical-DxIFAaFG.js";import"./UserSquare-BMpPM1Vn.js";import"./CreditCard01-BMkeXieC.js";import"./Settings02-Dr-zcWez.js";import"./Eye-YIGHsl-L.js";import"./Share07-fCS-0opG.js";import"./GitBranch01-BVCazP-u.js";import"./Globe01-C8MxLRkP.js";import"./XClose-D3lJp_3C.js";import"./HardDrive-BS0obIOG.js";import"./Image01-EbJSXFxN.js";import"./Key01-BFkiELTT.js";import"./Link01-C6iFD_1F.js";import"./LinkExternal01-DqKHzw9U.js";import"./Monitor01-Cxz_eAVo.js";import"./Sun-BWedp7Qb.js";import"./Package-CXlEv3H8.js";import"./Palette-DbewMeGN.js";import"./Play-CEPPAIh5.js";import"./Plus-DgxBd8rk.js";import"./SearchLg-AFAJsxFc.js";import"./SearchMd-DeIp0WHu.js";import"./Shield01-Co61R0sU.js";import"./Stars01-C4Zmu7Ep.js";import"./Trash01-DWldj1cf.js";import"./Upload01-BECJfTWE.js";import"./User01-CTfDcS5e.js";import"./Users01-C2R2z6TK.js";import"./XCircle-DbggDpQ5.js";import"./Zap-C6wi2cLw.js";import"./useInfiniteQuery-CGwSzAR5.js";import"./infiniteQueryObserver-f1Mg7m56.js";import"./use-connection-DyoJ3842.js";import"./table-CsCBd0lQ.js";import"./empty-state-hUIlBR3q.js";import"./use-infinite-scroll-BcPSZiNZ.js";import"./use-members-NeCLLrrB.js";import"./use-org-auth-client-B5-qRoTn.js";import"./use-automations-YKeF0GSq.js";import"./useSuspenseInfiniteQuery-oataxVbC.js";import"./avatar-DXXjOQK5.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy--zGmPPwD.js";import"./markdown-htg7W98G.js";import"./monaco-editor-D5wA_jK1.js";import"./editor-TbLNsIFy.js";import"./mcp-app-renderer-C4rMJv7P.js";import"./types-ZI4hLB92.js";import"./shell-layout-DFrR6tdX.js";import"./anchors-yqDzZN4K.js";import"./project-icon-FvFivmfl.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-D6vFPSCI.js";import"./index-DGnV1pVM.js";import"./integration-icon-DZ8Y6sMt.js";import"./required-auth-layout-HH2bVNBU.js";import"./use-org-sso-HqaCDMyO.js";import"./use-org-notice-DWcI6MY4.js";import"./use-navigate-to-agent-vf6CPdOT.js";import"./use-mcp-prompts-DdlH2qST.js";import"./form-D6PYqRbd.js";import"./file-type-icon-B1cjMMrB.js";import"./drawer-DwjjcAEk.js";import"./collection-search-BEeyUT2p.js";import"./tabs-CiF_JE3E.js";import"./toggle-group-C72d71bC.js";import"./task-route-B2F1kPjG.js";import"./extract-connection-data-BmQLXIgr.js";import"./metadata-dUsYcpuu.js";import"./connection-XbVIg3WZ.js";import"./connection-card-Bq-bNVSb.js";import"./use-registry-connections-BVgKKT5B.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-D7oZSRuU.js";import"./connection-form-helpers-BRqiHsa1.js";import"./authenticate-and-persist-oauth-CgnQlNZ8.js";import"./mcp-oauth-De161Gif.js";import"./collection-tabs-BFgE8VhE.js";import"./badge-BHXGD-K5.js";import"./use-file-configs-D9SysYxD.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-ICXmOu_l.js";import"./popover-Brk4eSJE.js";import"./github-icon-B99drnXh.js";import"./get-initials-D-f_fDFw.js";import"./select-model-D9FmitIE.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-s_xB5zRI.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Cw4NWpev.js";import"./toolbar-JNnsJplx.js";import"./use-mcp-tools-lB_BBgJh.js";import"./skill-preview-B5YPdiFy.js";import"./use-date-fns-locale--wtOnXlr.js";import"./alert-dialog-CsEW_ZuO.js";import"./use-debounced-autosave-BhTrD5fo.js";import"./scroll-area-D_kMudvf.js";import"./search-input-BWcQ33a7.js";import"./use-mcp-auth-status-BLT8d1nh.js";import"./switch-CFcBe-39.js";import"./breadcrumb-CLQCquYY.js";import"./repository-import-picker-BV9RnTSy.js";import"./repository-picker-BCQoMPuh.js";import"./use-debounced-value-jkfC9hMo.js";import"./use-secrets-Cc8pMQzW.js";import"./client-icons-CaXsC6fg.js";import"./connect-layout-tQE9fQwK.js";import"./self-tool-result-BfrV1Xz8.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-CVU5crkS.js";import"./use-tags-yrL3KCY2.js";import"./toolbar-icon-button-BZmPXrm7.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-C-JbyWG5.js";import"./site-error--i37Vnuw.js";import"./cards-Bg8Jxlkr.js";const Pt=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function ki(ot){const t=at.c(108),{orgSlug:J,virtualMcpId:W,branch:X,blockKey:Z,block:tt}=ot,e=ct();let V;t[0]!==X||t[1]!==J||t[2]!==W?(V={orgSlug:J,virtualMcpId:W,branch:X},t[0]=X,t[1]=J,t[2]=W,t[3]=V):V=t[3];const m=bt(V);let G;t[4]!==tt?(G=yt(tt),t[4]=tt,t[5]=G):G=t[5];const mt=G;let H;t[6]!==Z||t[7]!==m?(H=i=>{m.mutate({blockKey:Z,data:vt(i)})},t[6]=Z,t[7]=m,t[8]=H):H=t[8];let M;t[9]!==m.isPending?(M={isSaving:m.isPending},t[9]=m.isPending,t[10]=M):M=t[10];const[o,et]=Et(mt,H,M);let Y;t[11]!==o||t[12]!==et?(Y=i=>et({...o,...i}),t[11]=o,t[12]=et,t[13]=Y):Y=t[13];const s=Y;let p;t[14]!==e?(p=e("sandbox.redirectEditor.title"),t[14]=e,t[15]=p):p=t[15];let l;t[16]!==p?(l=r.jsx("span",{className:"text-sm font-medium",children:p}),t[16]=p,t[17]=l):l=t[17];let a;t[18]!==m.isError||t[19]!==m.isPending?(a=r.jsx(jt,{isPending:m.isPending,isError:m.isError}),t[18]=m.isError,t[19]=m.isPending,t[20]=a):a=t[20];let c;t[21]!==l||t[22]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,a]}),t[21]=l,t[22]=a,t[23]=c):c=t[23];let d;t[24]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[24]=e,t[25]=d):d=t[25];let n;t[26]!==d?(n=r.jsx(rt,{htmlFor:"redirect-from",children:d}),t[26]=d,t[27]=n):n=t[27];const st=o.from;let f;t[28]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[28]=e,t[29]=f):f=t[29];let x;t[30]!==s?(x=i=>s({from:i.target.value}),t[30]=s,t[31]=x):x=t[31];let h;t[32]!==o.from||t[33]!==f||t[34]!==x?(h=r.jsx(it,{id:"redirect-from",value:st,placeholder:f,onChange:x,className:"h-10"}),t[32]=o.from,t[33]=f,t[34]=x,t[35]=h):h=t[35];let u;t[36]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[36]=e,t[37]=u):u=t[37];let b;t[38]!==u?(b=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[38]=u,t[39]=b):b=t[39];let y;t[40]!==n||t[41]!==h||t[42]!==b?(y=r.jsxs("div",{className:"space-y-2",children:[n,h,b]}),t[40]=n,t[41]=h,t[42]=b,t[43]=y):y=t[43];let j;t[44]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[44]=e,t[45]=j):j=t[45];let g;t[46]!==j?(g=r.jsx(rt,{htmlFor:"redirect-to",children:j}),t[46]=j,t[47]=g):g=t[47];const pt=o.to;let v;t[48]!==e?(v=e("sandbox.redirectEditor.toPlaceholder"),t[48]=e,t[49]=v):v=t[49];let E;t[50]!==s?(E=i=>s({to:i.target.value}),t[50]=s,t[51]=E):E=t[51];let P;t[52]!==o.to||t[53]!==v||t[54]!==E?(P=r.jsx(it,{id:"redirect-to",value:pt,placeholder:v,onChange:E,className:"h-10"}),t[52]=o.to,t[53]=v,t[54]=E,t[55]=P):P=t[55];let N;t[56]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[56]=e,t[57]=N):N=t[57];let S;t[58]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[58]=N,t[59]=S):S=t[59];let C;t[60]!==g||t[61]!==P||t[62]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[g,P,S]}),t[60]=g,t[61]=P,t[62]=S,t[63]=C):C=t[63];let T;t[64]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[64]=e,t[65]=T):T=t[65];let k;t[66]!==T?(k=r.jsx(rt,{htmlFor:"redirect-type",children:T}),t[66]=T,t[67]=k):k=t[67];const lt=o.type;let w;t[68]!==s?(w=i=>s({type:i}),t[68]=s,t[69]=w):w=t[69];let R;t[70]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[70]=e,t[71]=R):R=t[71];let I;t[72]!==R?(I=r.jsx(ft,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(xt,{placeholder:R})}),t[72]=R,t[73]=I):I=t[73];let _;t[74]!==e?(_=Pt.map(i=>r.jsx(nt,{value:i.value,children:e(i.labelKey,{status:gt[i.value]})},i.value)),t[74]=e,t[75]=_):_=t[75];let F;t[76]!==_?(F=r.jsx(ht,{children:_}),t[76]=_,t[77]=F):F=t[77];let L;t[78]!==o.type||t[79]!==w||t[80]!==I||t[81]!==F?(L=r.jsxs(ut,{value:lt,onValueChange:w,children:[I,F]}),t[78]=o.type,t[79]=w,t[80]=I,t[81]=F,t[82]=L):L=t[82];let $;t[83]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("strong",{children:"Temporary"}),t[83]=$):$=t[83];let q;t[84]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",$," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[84]=q):q=t[84];let Q;t[85]!==k||t[86]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[85]=k,t[86]=L,t[87]=Q):Q=t[87];let K;t[88]!==s?(K=i=>s({discardQueryParameters:i===!0}),t[88]=s,t[89]=K):K=t[89];let D;t[90]!==o.discardQueryParameters||t[91]!==K?(D=r.jsx(dt,{checked:o.discardQueryParameters,onCheckedChange:K}),t[90]=o.discardQueryParameters,t[91]=K,t[92]=D):D=t[92];let A;t[93]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[93]=e,t[94]=A):A=t[94];let B;t[95]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[95]=A,t[96]=B):B=t[96];let O;t[97]!==D||t[98]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[D,B]}),t[97]=D,t[98]=B,t[99]=O):O=t[99];let U;t[100]!==y||t[101]!==C||t[102]!==Q||t[103]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[y,C,Q,O]})}),t[100]=y,t[101]=C,t[102]=Q,t[103]=O,t[104]=U):U=t[104];let z;return t[105]!==U||t[106]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[105]=U,t[106]=c,t[107]=z):z=t[107],z}export{ki as RedirectEditor};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-fiw4zfbz.js","assets/index-Byx2pRmC.js","assets/index-DJADaZ4J.css","assets/Tool02-C1pNmKnM.js","assets/CheckCircle-BTv_HNPs.js","assets/Settings02-Dr-zcWez.js","assets/use-mcp-client-zU4b6By6.js","assets/auth-CauVv39M.js","assets/useInfiniteQuery-CGwSzAR5.js","assets/infiniteQueryObserver-f1Mg7m56.js","assets/badge-BHXGD-K5.js","assets/input-C_xB1yG3.js","assets/dropdown-menu-ICXmOu_l.js","assets/Check-DqkacOOo.js","assets/ChevronRight-DzmLWKAo.js","assets/DotsVertical-DxIFAaFG.js","assets/table-CsCBd0lQ.js","assets/toggle-group-C72d71bC.js","assets/use-view-mode-D8T6JwXp.js","assets/Globe01-C8MxLRkP.js","assets/SearchMd-DeIp0WHu.js","assets/dialog-DDlyX8zJ.js","assets/AlertCircle-CBd9kERr.js","assets/Download01-BWA6sHtg.js","assets/Upload01-BECJfTWE.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CsEW_ZuO.js","assets/Trash01-DWldj1cf.js","assets/label-Blftr3En.js","assets/select-Bry_eRAa.js","assets/ChevronUp-DuOOHGIB.js","assets/switch-CFcBe-39.js","assets/textarea-D7oZSRuU.js","assets/ArrowLeft-BjRYjvHK.js","assets/ArrowRight-Ch_JzAKL.js","assets/Link01-C6iFD_1F.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-CdLxQJZz.js","assets/Eye-YIGHsl-L.js","assets/LinkExternal01-DqKHzw9U.js","assets/XCircle-DbggDpQ5.js","assets/use-infinite-scroll-BcPSZiNZ.js","assets/use-copy--zGmPPwD.js","assets/Copy01-l2VRotFt.js","assets/Key01-BFkiELTT.js","assets/Plus-DgxBd8rk.js","assets/mcp-oauth-De161Gif.js","assets/Play-CEPPAIh5.js"])))=>i.map(i=>d[i]);
2
- import{c as i,j as e,r as s,h as a,bq as o}from"./index-Byx2pRmC.js";import{R as n}from"./require-capability-BR8x5kxT.js";import"./access-gate-aFqluTVu.js";import"./capability-load-error-BTHd06DV.js";const c=s.lazy(()=>o(()=>import("./registry-layout-fiw4zfbz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(n,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{className:"size-5 text-muted-foreground"})}),children:e.jsx(c,{})})}),r[0]=t):t=r[0],t}export{u as default};
@@ -1 +0,0 @@
1
- import{c as n,J as a,j as o,G as c,l as d,Y as f,b$ as x,O as h}from"./index-Byx2pRmC.js";import{i as u}from"./settings-sidebar-D4yrI8rl.js";import{T as l}from"./toolbar-JNnsJplx.js";import{S as j,M as b}from"./shell-controls-BaxRvMFj.js";import{u as S}from"./use-status-sounds-Cw4NWpev.js";import"./ChevronUp-DuOOHGIB.js";import"./ChevronRight-DzmLWKAo.js";import"./TrendUp01-CqdHzjJu.js";import"./toolbar-icon-button-BZmPXrm7.js";import"./Check-DqkacOOo.js";import"./ChevronSelectorVertical-D1pSeQIS.js";import"./Plus-DgxBd8rk.js";import"./command-D6vFPSCI.js";import"./index-DGnV1pVM.js";import"./dialog-DDlyX8zJ.js";import"./SearchMd-DeIp0WHu.js";import"./drawer-DwjjcAEk.js";import"./popover-Brk4eSJE.js";import"./agent-icon-BAqALP_H.js";import"./AlertCircle-CBd9kERr.js";import"./Tool01-CCYiLfpn.js";import"./ArrowUp-BreiqpEz.js";import"./ArrowLeft-BjRYjvHK.js";import"./Tool02-C1pNmKnM.js";import"./ArrowRight-Ch_JzAKL.js";import"./ZoomOut-B00NO3iw.js";import"./Users03-jUFurcPA.js";import"./CheckCircle-BTv_HNPs.js";import"./DotsVertical-DxIFAaFG.js";import"./UserSquare-BMpPM1Vn.js";import"./Copy01-l2VRotFt.js";import"./CreditCard01-BMkeXieC.js";import"./Download01-BWA6sHtg.js";import"./Settings02-Dr-zcWez.js";import"./Eye-YIGHsl-L.js";import"./Share07-fCS-0opG.js";import"./GitBranch01-BVCazP-u.js";import"./Globe01-C8MxLRkP.js";import"./XClose-D3lJp_3C.js";import"./HardDrive-BS0obIOG.js";import"./Image01-EbJSXFxN.js";import"./Key01-BFkiELTT.js";import"./Link01-C6iFD_1F.js";import"./LinkExternal01-DqKHzw9U.js";import"./Monitor01-Cxz_eAVo.js";import"./Sun-BWedp7Qb.js";import"./Package-CXlEv3H8.js";import"./Palette-DbewMeGN.js";import"./Play-CEPPAIh5.js";import"./SearchLg-AFAJsxFc.js";import"./Shield01-Co61R0sU.js";import"./Stars01-C4Zmu7Ep.js";import"./Trash01-DWldj1cf.js";import"./Upload01-BECJfTWE.js";import"./User01-CTfDcS5e.js";import"./Users01-C2R2z6TK.js";import"./XCircle-DbggDpQ5.js";import"./Zap-C6wi2cLw.js";import"./project-icon-FvFivmfl.js";import"./use-mcp-client-zU4b6By6.js";import"./auth-CauVv39M.js";import"./use-virtual-mcp-xxFiywxX.js";import"./github-repo-CTPv5ZM2.js";import"./create-organization-dialog-_SPLe5kk.js";import"./alert-dialog-CsEW_ZuO.js";import"./form-D6PYqRbd.js";import"./label-Blftr3En.js";import"./input-C_xB1yG3.js";import"./use-destination-route-Dumfqkh7.js";import"./anchors-yqDzZN4K.js";import"./use-join-requests-BxUq1QXo.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-D8v0JTxh.js";import"./decopilot-sse-pool-BXVf9Dkw.js";import"./task-board-DUw5IESw.js";import"./schema-japUOE_t.js";import"./backoff-CrEUbyZT.js";function g(){const t=n.c(3),r=a(),{org:p}=c();S(p.slug);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(f,{children:o.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:o.jsx(x,{value:"p-0",children:o.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:o.jsx(h,{})})})})}),t[0]=e):e=t[0];const m=e;if(r){let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:m}),t[1]=s):s=t[1],s}let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex-1 min-h-0 p-1.5",children:o.jsx("div",{className:d("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:m})}),t[2]=i):i=t[2],i}function Dt(){const t=n.c(10),r=a();let p;t[0]!==r?(p=r&&o.jsxs(l.Header,{children:[o.jsx(l.LeftColumn,{children:o.jsx(j,{})}),o.jsx(l.CenterSlot,{}),o.jsx(l.RightColumn,{children:o.jsx("span",{})})]}),t[0]=r,t[1]=p):p=t[1];let e;t[2]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(g,{}),t[2]=e):e=t[2];let m;t[3]!==p?(m=o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[p,e]}),t[3]=p,t[4]=m):m=t[4];let i;t[5]!==r?(i=r&&o.jsx(b,{renderSidebar:v}),t[5]=r,t[6]=i):i=t[6];let s;return t[7]!==m||t[8]!==i?(s=o.jsxs(l.Provider,{children:[m,i]}),t[7]=m,t[8]=i,t[9]=s):s=t[9],s}function v(t){const{onClose:r}=t;return o.jsx(u,{onClose:r})}export{Dt as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-fiw4zfbz.js","assets/index-Byx2pRmC.js","assets/index-DJADaZ4J.css","assets/Tool02-C1pNmKnM.js","assets/CheckCircle-BTv_HNPs.js","assets/Settings02-Dr-zcWez.js","assets/use-mcp-client-zU4b6By6.js","assets/auth-CauVv39M.js","assets/useInfiniteQuery-CGwSzAR5.js","assets/infiniteQueryObserver-f1Mg7m56.js","assets/badge-BHXGD-K5.js","assets/input-C_xB1yG3.js","assets/dropdown-menu-ICXmOu_l.js","assets/Check-DqkacOOo.js","assets/ChevronRight-DzmLWKAo.js","assets/DotsVertical-DxIFAaFG.js","assets/table-CsCBd0lQ.js","assets/toggle-group-C72d71bC.js","assets/use-view-mode-D8T6JwXp.js","assets/Globe01-C8MxLRkP.js","assets/SearchMd-DeIp0WHu.js","assets/dialog-DDlyX8zJ.js","assets/AlertCircle-CBd9kERr.js","assets/Download01-BWA6sHtg.js","assets/Upload01-BECJfTWE.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CsEW_ZuO.js","assets/Trash01-DWldj1cf.js","assets/label-Blftr3En.js","assets/select-Bry_eRAa.js","assets/ChevronUp-DuOOHGIB.js","assets/switch-CFcBe-39.js","assets/textarea-D7oZSRuU.js","assets/ArrowLeft-BjRYjvHK.js","assets/ArrowRight-Ch_JzAKL.js","assets/Link01-C6iFD_1F.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-CdLxQJZz.js","assets/Eye-YIGHsl-L.js","assets/LinkExternal01-DqKHzw9U.js","assets/XCircle-DbggDpQ5.js","assets/use-infinite-scroll-BcPSZiNZ.js","assets/use-copy--zGmPPwD.js","assets/Copy01-l2VRotFt.js","assets/Key01-BFkiELTT.js","assets/Plus-DgxBd8rk.js","assets/mcp-oauth-De161Gif.js","assets/Play-CEPPAIh5.js"])))=>i.map(i=>d[i]);
2
- import{c as n,d as c,f as m,j as t,h as f,r as l,bq as p}from"./index-Byx2pRmC.js";import{R as u}from"./require-capability-BR8x5kxT.js";import"./access-gate-aFqluTVu.js";import"./capability-load-error-BTHd06DV.js";const g=l.lazy(()=>p(()=>import("./registry-layout-fiw4zfbz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-f1Mg7m56.js";import{fd as i}from"./index-Byx2pRmC.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-f1Mg7m56.js";import{fd as u,bY as n}from"./index-Byx2pRmC.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};