@hot-updater/console 1.2.0-rc.5 → 1.2.0-rc.51

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 (404) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/-native-builds-search-6aptbS4G.js +1 -0
  3. package/.output/public/assets/BundleIdDisplay-CtbmyR7f.js +1 -0
  4. package/.output/public/assets/ChannelPicker-DPR-7lqV.js +1 -0
  5. package/.output/public/assets/CompositeItem-UhIlCBg4.js +1 -0
  6. package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
  7. package/.output/public/assets/EventDetails-LQ8ejbsd.js +1 -0
  8. package/.output/public/assets/FoldedRows-ClHLI-NM.js +1 -0
  9. package/.output/public/assets/HashValueDisplay-DTSMSH9O.js +1 -0
  10. package/.output/public/assets/InsightsPageHeader-ypKKV3rL.js +1 -0
  11. package/.output/public/assets/IosInstall-1a_GRSNg.js +1 -0
  12. package/.output/public/assets/NativeBuildsNav-ChBahvFN.js +1 -0
  13. package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-BEpesHEm.js} +1 -1
  14. package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-D4KPXCHL.js} +1 -1
  15. package/.output/public/assets/QrCode-BFSCkbPj.js +1 -0
  16. package/.output/public/assets/RelativeTime-BQErgQRj.js +1 -0
  17. package/.output/public/assets/RolloutPercentageBadge-DF4EeZIJ.js +1 -0
  18. package/.output/public/assets/RowReason-BvIxbpPP.js +1 -0
  19. package/.output/public/assets/SandboxBadge-DPmJn40v.js +1 -0
  20. package/.output/public/assets/TargetDisplay-D0dVdFCk.js +1 -0
  21. package/.output/public/assets/alert-dialog-DGPqJBCk.js +1 -0
  22. package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
  23. package/.output/public/assets/api-keys-ztwXoKcj.js +1 -0
  24. package/.output/public/assets/api-znPyglTl.js +1 -0
  25. package/.output/public/assets/arrow-left-68S4uy4I.js +1 -0
  26. package/.output/public/assets/arrow-right-DjRwIoF1.js +1 -0
  27. package/.output/public/assets/arrow-up-right-C_1ALUCD.js +1 -0
  28. package/.output/public/assets/badge-zMibJGR5.js +1 -0
  29. package/.output/public/assets/card-BAs80yql.js +1 -0
  30. package/.output/public/assets/check-C3VCvMOV.js +1 -0
  31. package/.output/public/assets/chevron-down-BkoJHAll.js +1 -0
  32. package/.output/public/assets/chevron-right-RAuPv9r1.js +1 -0
  33. package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-DvYMC5yF.js} +1 -1
  34. package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-D0JWZ1KF.js} +1 -1
  35. package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-CtbGqKyr.js} +1 -1
  36. package/.output/public/assets/{uuidv7-zXMtwR9Q.js → constants-yj-e3ahf.js} +1 -1
  37. package/.output/public/assets/{copy-DsuLj3oj.js → copy-BjVLMKbo.js} +1 -1
  38. package/.output/public/assets/dialog-BvZDZzdQ.js +1 -0
  39. package/.output/public/assets/dist-BEmib-ZM.js +1 -0
  40. package/.output/public/assets/{download-Cf24LBde.js → download-CgpaZb23.js} +1 -1
  41. package/.output/public/assets/empty-C5GqArX9.js +1 -0
  42. package/.output/public/assets/field-DInLQ5oV.js +1 -0
  43. package/.output/public/assets/git-branch-BGatQV8Q.js +1 -0
  44. package/.output/public/assets/history-Ci4dhphE.js +1 -0
  45. package/.output/public/assets/index-B8BpJ73Y.js +10 -0
  46. package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
  47. package/.output/public/assets/insights-BrdBpqda.js +42 -0
  48. package/.output/public/assets/insights-DsmTCDix.js +2 -0
  49. package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
  50. package/.output/public/assets/insights-api-C4Dmm34n.js +1 -0
  51. package/.output/public/assets/insights-search-B4NkHGeC.js +1 -0
  52. package/.output/public/assets/insights-usage-rpc-Dw5_pmRH.js +1 -0
  53. package/.output/public/assets/insights_.distribution-BHmK7ufZ.js +1 -0
  54. package/.output/public/assets/insights_.distribution-BNNw0whH.js +2 -0
  55. package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
  56. package/.output/public/assets/installations-CcPrSZwW.js +1 -0
  57. package/.output/public/assets/installations-Cjx0648C.js +1 -0
  58. package/.output/public/assets/installations-m1v6oE-2.js +2 -0
  59. package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-BkeLvA1m.js} +1 -1
  60. package/.output/public/assets/{link-DTEyW70e.js → link-CRMwpc7-.js} +2 -2
  61. package/.output/public/assets/{list--NIee1FZ.js → list-DQ9YBIDW.js} +1 -1
  62. package/.output/public/assets/loader-circle-8lunBReu.js +1 -0
  63. package/.output/public/assets/native-builds-B6t0ZxKP.js +1 -0
  64. package/.output/public/assets/native-builds-CgPSpNsA.js +2 -0
  65. package/.output/public/assets/native-builds-TF9BhYrQ.js +1 -0
  66. package/.output/public/assets/native-builds_._buildId-2rPrtz9-.js +2 -0
  67. package/.output/public/assets/native-builds_._buildId-BqUOY1Az.js +1 -0
  68. package/.output/public/assets/native-builds_.devices-B9kLHngv.js +2 -0
  69. package/.output/public/assets/native-builds_.devices-COFYZcaA.js +1 -0
  70. package/.output/public/assets/plus-DztQIXYL.js +1 -0
  71. package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-RUNbaMyO.js} +1 -1
  72. package/.output/public/assets/remote-config-BCQHNGRY.js +1 -0
  73. package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
  74. package/.output/public/assets/remote-config-CDlB7JK8.js +6 -0
  75. package/.output/public/assets/rotate-ccw-tITIe0Bd.js +1 -0
  76. package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-BFQcpUTO.js} +1 -1
  77. package/.output/public/assets/routes-DMooqgLf.js +1 -0
  78. package/.output/public/assets/routes-Z2IGj8MK.js +2 -0
  79. package/.output/public/assets/search-BfEqtE64.js +1 -0
  80. package/.output/public/assets/select-iSWTEY9t.js +1 -0
  81. package/.output/public/assets/sidebar-BmzmPGuv.js +3 -0
  82. package/.output/public/assets/smartphone-Dy13ukaU.js +1 -0
  83. package/.output/public/assets/styles-D5kpHu-Z.css +2 -0
  84. package/.output/public/assets/switch-ByNYRVTN.js +1 -0
  85. package/.output/public/assets/table-DbZPkzdz.js +1 -0
  86. package/.output/public/assets/tabs-Byfy8Qls.js +1 -0
  87. package/.output/public/assets/trash-2-DI0biNI-.js +1 -0
  88. package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-CxhBbgJw.js} +1 -1
  89. package/.output/public/assets/useAnchoredPopupScrollLock-Cvx6CdPD.js +1 -0
  90. package/.output/public/assets/useCompositeListItem-BEDqZ9Ni.js +1 -0
  91. package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-D7IuoOLE.js} +1 -1
  92. package/.output/public/assets/valueToPercent-Db73Kirz.js +1 -0
  93. package/.output/server/{__23tanstack-start-server-fn-resolver-BsXXRtkN.mjs → __23tanstack-start-server-fn-resolver-pdhJfnex.mjs} +94 -46
  94. package/.output/server/_chunks/ssr-renderer.mjs +2 -2
  95. package/.output/server/_libs/@base-ui/react+[...].mjs +4436 -3131
  96. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  97. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  98. package/.output/server/_libs/_.mjs +2 -0
  99. package/.output/server/_libs/lucide-react.mjs +50 -28
  100. package/.output/server/_libs/next-themes.mjs +1 -1
  101. package/.output/server/_libs/react-redux+[...].mjs +1 -1
  102. package/.output/server/_libs/recharts+[...].mjs +1 -1
  103. package/.output/server/_libs/sonner.mjs +1 -1
  104. package/.output/server/_libs/tanstack__react-query.mjs +1 -1
  105. package/.output/server/_ssr/-native-builds-search-D10dMZzL.mjs +62 -0
  106. package/.output/server/_ssr/BundleIdDisplay-Bbf_lM0q.mjs +26 -0
  107. package/.output/server/_ssr/ChannelPicker-D6dQe9hV.mjs +251 -0
  108. package/.output/server/_ssr/{ConsoleFeatureUnavailable-CGHVL37b.mjs → ConsoleFeatureUnavailable-cLOJizHM.mjs} +8 -8
  109. package/.output/server/_ssr/{EventDetails-DdJyaBZ5.mjs → EventDetails-Bf9A0sIH.mjs} +9 -9
  110. package/.output/server/_ssr/FoldedRows-CBXPkthB.mjs +152 -0
  111. package/.output/server/_ssr/HashValueDisplay-CTRuGnTF.mjs +65 -0
  112. package/.output/server/_ssr/{InsightsPageHeader-KtHEf8Q0.mjs → InsightsPageHeader-CZYqpzbC.mjs} +13 -13
  113. package/.output/server/_ssr/IosInstall-Dnv68fhL.mjs +767 -0
  114. package/.output/server/_ssr/NativeBuildsNav-Dg43O2Cd.mjs +39 -0
  115. package/.output/server/_ssr/{NotFoundPage-DZB6K98c.mjs → NotFoundPage-C0hUVtGq.mjs} +3 -3
  116. package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
  117. package/.output/server/_ssr/QrCode-BbK966IU.mjs +50 -0
  118. package/.output/server/_ssr/RelativeTime-CdBbi7fL.mjs +242 -0
  119. package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-CaK9SkbN.mjs} +20 -4
  120. package/.output/server/_ssr/RowReason-Cg035uIk.mjs +59 -0
  121. package/.output/server/_ssr/SandboxBadge-Zta6e__x.mjs +85 -0
  122. package/.output/server/_ssr/TargetDisplay-DGqswOee.mjs +105 -0
  123. package/.output/server/_ssr/{alert-dialog-CDr-Nsoo.mjs → alert-dialog-DFz9lm_Y.mjs} +4 -4
  124. package/.output/server/_ssr/{api-DGWwi1WN.mjs → api-B2LCh6pv.mjs} +186 -39
  125. package/.output/server/_ssr/{api-keys-BBb3xSox.mjs → api-keys-BbtiHE85.mjs} +14 -11
  126. package/.output/server/_ssr/{api-keys-e_eDCNr2.mjs → api-keys-D3oOFnP9.mjs} +2 -2
  127. package/.output/server/_ssr/{api-keys-rpc-BXiXUAm9.mjs → api-keys-rpc-CJIR67Ch.mjs} +4 -4
  128. package/.output/server/_ssr/{api-rpc-CLreF5Vr.mjs → api-rpc-Bf7S-MaH.mjs} +83 -35
  129. package/.output/server/_ssr/{auth-rpc-Bbf80tQK.mjs → auth-rpc-Dp-DCqh6.mjs} +5 -5
  130. package/.output/server/_ssr/{auth.server-DGwe3eds.mjs → auth.server-Cc0ZRXjk.mjs} +1876 -358
  131. package/.output/server/_ssr/{badge-BXk5c2yv.mjs → badge-YEmoI1eN.mjs} +4 -45
  132. package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
  133. package/.output/server/_ssr/card-D0a_6Dhh.mjs +49 -0
  134. package/.output/server/_ssr/{config.server-BIBSZpZE.mjs → config.server-CZRoGrFp.mjs} +4 -4
  135. package/.output/server/_ssr/{console-access-Cwha8dww.mjs → console-access-OPT4g-IS.mjs} +2 -2
  136. package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-DTYyXrWO.mjs} +1 -1
  137. package/.output/server/_ssr/{console-features-api-Bk24XYA5.mjs → console-features-api-tjmlaM_N.mjs} +4 -4
  138. package/.output/server/_ssr/{console-features-rpc-5WFiUFxb.mjs → console-features-rpc-SlXJxyZV.mjs} +4 -4
  139. package/.output/server/_ssr/constants-D-2jpCiJ.mjs +11 -0
  140. package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
  141. package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-B56IJxlu.mjs} +1 -1
  142. package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
  143. package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-D6bc51Xq.mjs} +5 -4
  144. package/.output/server/_ssr/deviceProfileToken-xzDLfE0T.mjs +98 -0
  145. package/.output/server/_ssr/{dialog-BG-juN_g.mjs → dialog-ChHbf-yX.mjs} +5 -5
  146. package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
  147. package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
  148. package/.output/server/_ssr/{empty-DF3o-H8c.mjs → empty-jogqtpGm.mjs} +3 -3
  149. package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
  150. package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-BVufgM3l.mjs} +3 -3
  151. package/.output/server/_ssr/{field-5zvNofJH.mjs → field-Df_Q9TWZ.mjs} +3 -3
  152. package/.output/server/_ssr/foldedPage-CUjJqtlF.mjs +176 -0
  153. package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-DDqsd1pL.mjs} +2 -2
  154. package/.output/server/_ssr/{input-group-rcPxMqYq.mjs → input-group-CVf7oJb7.mjs} +3 -3
  155. package/.output/server/_ssr/{insights-Din0R0k-.mjs → insights-CWe8WEnp.mjs} +93 -215
  156. package/.output/server/_ssr/{insights-BwEiSUUy.mjs → insights-DFSywrbh.mjs} +5 -5
  157. package/.output/server/_ssr/{insights-BDa6T_cj.mjs → insights-DIRlQAyF.mjs} +2 -2
  158. package/.output/server/_ssr/{insights-api-BESfPrTq.mjs → insights-api-C9rxV0Tn.mjs} +5 -5
  159. package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
  160. package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
  161. package/.output/server/_ssr/{insights-failures-rpc-BD3vjHse.mjs → insights-failures-rpc-wIScA1Qn.mjs} +11 -11
  162. package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
  163. package/.output/server/_ssr/{insights-recovery-rpc-sVwplV7s.mjs → insights-recovery-rpc-BVt-dUJZ.mjs} +7 -7
  164. package/.output/server/_ssr/{insights-rpc-BdtBheBi.mjs → insights-rpc-BDQqwXjX.mjs} +4 -4
  165. package/.output/server/_ssr/{insights-search-BAaycSRp.mjs → insights-search-B56U9By9.mjs} +6 -8
  166. package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
  167. package/.output/server/_ssr/{insights-usage-rpc-Bo5p-cuB.mjs → insights-usage-rpc-C084r9Yl.mjs} +5 -5
  168. package/.output/server/_ssr/{insights-usage-rpc-DCkLNAlG.mjs → insights-usage-rpc-D6QC7xMU.mjs} +7 -7
  169. package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
  170. package/.output/server/_ssr/{insights_.distribution-5sgau7rB.mjs → insights_.distribution-BO1VAcAm.mjs} +5 -5
  171. package/.output/server/_ssr/{insights_.distribution-D4QQxZmG.mjs → insights_.distribution-CoTlEOe8.mjs} +16 -15
  172. package/.output/server/_ssr/{insights_.distribution-DoO2NDvS.mjs → insights_.distribution-DP1M7WJo.mjs} +2 -2
  173. package/.output/server/_ssr/{installations-C4MwFvp6.mjs → installations-BczGuyup.mjs} +13 -13
  174. package/.output/server/_ssr/{installations-CZZsFoXb.mjs → installations-CHXPyqGZ.mjs} +4 -4
  175. package/.output/server/_ssr/{installations-W6DXZ5Tp.mjs → installations-CY86CKgz.mjs} +2 -2
  176. package/.output/server/_ssr/ios-devices-rpc-B-9HHSKk.mjs +149 -0
  177. package/.output/server/_ssr/iosDeviceCookie-CZArbhzA.mjs +155 -0
  178. package/.output/server/_ssr/iosDeviceProfile-CxeXYxc-.mjs +176 -0
  179. package/.output/server/_ssr/iosDevices-Ckjp_S09.mjs +132 -0
  180. package/.output/server/_ssr/listReleases-QF91GLE7.mjs +94 -0
  181. package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
  182. package/.output/server/_ssr/native-artifact-0tXDLTsd.mjs +1517 -0
  183. package/.output/server/_ssr/native-builds-C2xGyB-t.mjs +273 -0
  184. package/.output/server/_ssr/native-builds-CKoFuBrT.mjs +698 -0
  185. package/.output/server/_ssr/{native-builds-BhBltXq2.mjs → native-builds-DGckAE3j.mjs} +3 -3
  186. package/.output/server/_ssr/native-builds_._buildId-BXfvqKmr.mjs +1204 -0
  187. package/.output/server/_ssr/{native-builds_._buildId-B5QgMg7D.mjs → native-builds_._buildId-EqbJ7R4A.mjs} +3 -3
  188. package/.output/server/_ssr/native-builds_.devices-BJ75om8d.mjs +10 -0
  189. package/.output/server/_ssr/native-builds_.devices-X6JpinwG.mjs +858 -0
  190. package/.output/server/_ssr/nativeBuildDownloadLink-BAfCV_k_.mjs +96 -0
  191. package/.output/server/_ssr/nativeBuildInstall-D2rK0m4j.mjs +256 -0
  192. package/.output/server/_ssr/nativeBuilds-B3LcuLs4.mjs +306 -0
  193. package/.output/server/_ssr/plistText-BORUpyEb.mjs +15 -0
  194. package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-D9CCkDjn.mjs} +7 -6
  195. package/.output/server/_ssr/publicConsoleBase-C3sNbafy.mjs +15 -0
  196. package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
  197. package/.output/server/_ssr/{release-adoption-rpc-T00z1y9o.mjs → release-adoption-rpc-xKxB0Ir0.mjs} +9 -9
  198. package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-BNp2LKR5.mjs} +5 -4
  199. package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-CLDa8DuR.mjs} +23 -11
  200. package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-CqIc-SDE.mjs} +1 -1
  201. package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-Ch1JpJkY.mjs} +2 -2
  202. package/.output/server/_ssr/{remote-config-bTCPTVky.mjs → remote-config-ByjC_BCV.mjs} +23 -22
  203. package/.output/server/_ssr/{remote-config-Wjia3haX.mjs → remote-config-DmEXPobC.mjs} +3 -3
  204. package/.output/server/_ssr/{remote-config-rpc-7Zvra2dm.mjs → remote-config-rpc-BNPLt44i.mjs} +5 -5
  205. package/.output/server/_ssr/{remote-config-D6YMPi4J.mjs → remote-config-w3s5hFj9.mjs} +2 -2
  206. package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
  207. package/.output/server/_ssr/{router-CLK13IPD.mjs → router-C8NZ0bVd.mjs} +136 -63
  208. package/.output/server/_ssr/{routes-h_nOUmOr.mjs → routes-B8Gmx46E.mjs} +49 -17
  209. package/.output/server/_ssr/{routes-CbdYptnV.mjs → routes-DvpKW5gf.mjs} +495 -476
  210. package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BUbb281Z.mjs} +4 -4
  211. package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-CaIuQCXb.mjs} +1 -1
  212. package/.output/server/_ssr/{schema-migration-rpc-yB9ioGZE.mjs → schema-migration-rpc-DlahGhrf.mjs} +5 -5
  213. package/.output/server/_ssr/{select-BdzEzz-x.mjs → select-Csnyblf2.mjs} +12 -10
  214. package/.output/server/_ssr/{server-CddZkHk2.mjs → server-Yr7QLPLj.mjs} +7 -7
  215. package/.output/server/_ssr/{sidebar-DabmjV5E.mjs → sidebar-bKoOUlMN.mjs} +17 -10
  216. package/.output/server/_ssr/ssr.mjs +1 -1
  217. package/.output/server/_ssr/{start-BvDsQehg.mjs → start-BSkL2B6C.mjs} +2 -2
  218. package/.output/server/_ssr/{switch-84dzb1yG.mjs → switch-C-HJ8oZV.mjs} +4 -4
  219. package/.output/server/_ssr/{table-DP978C4F.mjs → table-DSB_9Amh.mjs} +2 -2
  220. package/.output/server/_ssr/tabs-DRTBxZTO.mjs +45 -0
  221. package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-DcCONz23.mjs} +8 -5
  222. package/.output/server/_ssr/{dist-TEpM_UAD.mjs → uuid-kZvLA0Ly-DNL0qBSj.mjs} +2 -147
  223. package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-C0jNe2Om.mjs} +2 -2
  224. package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-zW2fpHOZ.mjs} +1 -1
  225. package/.output/server/_tanstack-start-manifest_v-MJAIGQWT.mjs +229 -0
  226. package/.output/server/index.mjs +493 -381
  227. package/lib/index.d.mts +9 -0
  228. package/package.json +7 -30
  229. package/src/components/AppSidebar.tsx +11 -2
  230. package/src/components/BundleIdDisplay.tsx +30 -3
  231. package/src/components/ChannelBadge.tsx +9 -9
  232. package/src/components/ChannelPicker.tsx +227 -0
  233. package/src/components/DataTable.tsx +363 -0
  234. package/src/components/FoldedRows.tsx +219 -0
  235. package/src/components/HashValueDisplay.tsx +27 -8
  236. package/src/components/PlatformIcon.tsx +10 -0
  237. package/src/components/RelativeTime.tsx +31 -0
  238. package/src/components/RowReason.tsx +63 -0
  239. package/src/components/TargetDisplay.tsx +95 -0
  240. package/src/components/ThemeProvider.tsx +11 -2
  241. package/src/components/features/api-keys/ApiKeysPage.tsx +5 -3
  242. package/src/components/features/bundles/BundleMetadata.tsx +22 -1
  243. package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
  244. package/src/components/features/channels/ChannelManagementDialog.tsx +10 -11
  245. package/src/components/features/insights/AppUsage.tsx +3 -5
  246. package/src/components/features/insights/ComparedBundlesChart.tsx +1 -0
  247. package/src/components/features/insights/FailureReports.tsx +3 -2
  248. package/src/components/features/insights/InsightsControls.tsx +38 -73
  249. package/src/components/features/insights/InsightsOverview.tsx +10 -2
  250. package/src/components/features/insights/InsightsPageHeader.tsx +10 -15
  251. package/src/components/features/insights/ReleaseActivity.tsx +6 -2
  252. package/src/components/features/insights/ReleaseCombobox.tsx +8 -3
  253. package/src/components/features/insights/RollbackButton.tsx +1 -1
  254. package/src/components/features/insights/UpdateFailures.tsx +36 -10
  255. package/src/components/features/native-builds/BuiltInBundleCard.tsx +125 -63
  256. package/src/components/features/native-builds/CommitLink.tsx +3 -2
  257. package/src/components/features/native-builds/ImportBuild.tsx +1 -1
  258. package/src/components/features/native-builds/InstallCard.tsx +378 -93
  259. package/src/components/features/native-builds/IosDevicesPage.tsx +1145 -0
  260. package/src/components/features/native-builds/IosInstall.tsx +732 -0
  261. package/src/components/features/native-builds/IpaDevicesCard.tsx +123 -0
  262. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +45 -9
  263. package/src/components/features/native-builds/NativeBuildsNav.tsx +45 -0
  264. package/src/components/features/native-builds/NativeBuildsPage.tsx +94 -108
  265. package/src/components/features/native-builds/NativeBuildsTable.tsx +652 -323
  266. package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
  267. package/src/components/features/native-builds/PatchesCard.tsx +28 -19
  268. package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +5 -5
  269. package/src/components/features/native-builds/SandboxBadge.tsx +21 -0
  270. package/src/components/features/native-builds/ServedNowCard.tsx +39 -4
  271. package/src/components/features/native-builds/ShortHash.tsx +6 -3
  272. package/src/components/features/native-builds/StoreSubmission.tsx +18 -12
  273. package/src/components/features/native-builds/playTracks.ts +7 -0
  274. package/src/components/features/releases/ReleaseEditorSheet.tsx +14 -9
  275. package/src/components/features/remote-config/PublishDialog.tsx +4 -1
  276. package/src/components/features/remote-config/VersionsCard.tsx +5 -2
  277. package/src/components/ui/alert-dialog.tsx +2 -2
  278. package/src/components/ui/badge.tsx +2 -0
  279. package/src/components/ui/button.tsx +11 -2
  280. package/src/components/ui/combobox.tsx +2 -2
  281. package/src/components/ui/dialog.tsx +3 -3
  282. package/src/components/ui/input.tsx +1 -1
  283. package/src/components/ui/select.tsx +15 -7
  284. package/src/components/ui/sheet.tsx +1 -1
  285. package/src/components/ui/sidebar.tsx +2 -2
  286. package/src/components/ui/slider.tsx +1 -1
  287. package/src/components/ui/sonner.tsx +3 -1
  288. package/src/components/ui/switch.tsx +1 -1
  289. package/src/components/ui/tabs.tsx +1 -1
  290. package/src/components/ui/textarea.tsx +1 -1
  291. package/src/index.ts +9 -0
  292. package/src/lib/api-rpc.ts +125 -35
  293. package/src/lib/api.ts +171 -16
  294. package/src/lib/constants.ts +18 -0
  295. package/src/lib/insights-search.ts +0 -3
  296. package/src/lib/ios-devices-api.ts +304 -0
  297. package/src/lib/ios-devices-rpc.ts +215 -0
  298. package/src/lib/native-builds.ts +269 -20
  299. package/src/lib/release-adoption.ts +2 -0
  300. package/src/lib/schema-migration-rpc.ts +1 -1
  301. package/src/lib/server/console-runtime.server.ts +9 -2
  302. package/src/lib/server/deviceProfileToken.ts +221 -0
  303. package/src/lib/server/foldedPage.ts +360 -0
  304. package/src/lib/server/iosDeviceCookie.ts +239 -0
  305. package/src/lib/server/iosDeviceProfile.ts +232 -0
  306. package/src/lib/server/iosDevices.ts +232 -0
  307. package/src/lib/server/listReleases.ts +101 -62
  308. package/src/lib/server/local-console.ts +1 -1
  309. package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
  310. package/src/lib/server/nativeBuildInstall.ts +513 -0
  311. package/src/lib/server/nativeBuilds.ts +327 -59
  312. package/src/lib/server/plistText.ts +17 -0
  313. package/src/lib/server/publicConsoleBase.ts +17 -0
  314. package/src/lib/server/releaseAdoption.ts +1 -0
  315. package/src/lib/server/updateFailures.ts +6 -1
  316. package/src/routeTree.gen.ts +129 -18
  317. package/src/routes/-native-builds-search.ts +61 -4
  318. package/src/routes/-releases-search.ts +63 -2
  319. package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
  320. package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
  321. package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
  322. package/src/routes/[_]hot-updater/devices/request.ts +28 -0
  323. package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
  324. package/src/routes/api/native-builds/$buildId/download.ts +22 -1
  325. package/src/routes/index.tsx +662 -578
  326. package/src/routes/insights.tsx +3 -5
  327. package/src/routes/insights_.distribution.tsx +2 -2
  328. package/src/routes/native-builds_.devices.tsx +21 -0
  329. package/src/styles.css +24 -0
  330. package/.output/public/assets/-native-builds-search-C-TGpFAm.js +0 -1
  331. package/.output/public/assets/EventDetails-Dl2RvPAk.js +0 -1
  332. package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
  333. package/.output/public/assets/InsightsPageHeader-DHhqY3DT.js +0 -1
  334. package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
  335. package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
  336. package/.output/public/assets/alert-dialog-BqYScr9y.js +0 -1
  337. package/.output/public/assets/api-P2g8dCNg.js +0 -1
  338. package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
  339. package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
  340. package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
  341. package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
  342. package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
  343. package/.output/public/assets/badge-DWFcDWho.js +0 -1
  344. package/.output/public/assets/check-CXVR3s3X.js +0 -1
  345. package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
  346. package/.output/public/assets/dialog-CNUPxNxH.js +0 -1
  347. package/.output/public/assets/dist-CPlO6ko9.js +0 -1
  348. package/.output/public/assets/empty-B3Uwdd6k.js +0 -1
  349. package/.output/public/assets/field-D-2-mnNh.js +0 -1
  350. package/.output/public/assets/history-DqHlgSuV.js +0 -1
  351. package/.output/public/assets/index-CqP5HPV6.js +0 -10
  352. package/.output/public/assets/input-group-D3OUBk4n.js +0 -1
  353. package/.output/public/assets/insights-B-0odqpt.js +0 -42
  354. package/.output/public/assets/insights-BSVGfxSL.js +0 -1
  355. package/.output/public/assets/insights-NK5B6ReS.js +0 -2
  356. package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
  357. package/.output/public/assets/insights-search-DghCbEnk.js +0 -1
  358. package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +0 -1
  359. package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
  360. package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
  361. package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
  362. package/.output/public/assets/installations-B674P5Z5.js +0 -2
  363. package/.output/public/assets/installations-BWxczZ2t.js +0 -1
  364. package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
  365. package/.output/public/assets/native-builds-BOC71grI.js +0 -1
  366. package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
  367. package/.output/public/assets/native-builds-DAy2678K.js +0 -1
  368. package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
  369. package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
  370. package/.output/public/assets/plus-BReVKct-.js +0 -1
  371. package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
  372. package/.output/public/assets/refresh-cw-B9HHjLej.js +0 -1
  373. package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
  374. package/.output/public/assets/remote-config-WjpozBG5.js +0 -1
  375. package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
  376. package/.output/public/assets/routes-BDdBIxYS.js +0 -1
  377. package/.output/public/assets/routes-CCD33Azv.js +0 -2
  378. package/.output/public/assets/search-BCel4Oy6.js +0 -1
  379. package/.output/public/assets/select-CBIU0_M1.js +0 -1
  380. package/.output/public/assets/sidebar-Di9SN47G.js +0 -3
  381. package/.output/public/assets/smartphone-CMaSy_ir.js +0 -1
  382. package/.output/public/assets/styles-uK-0vUMk.css +0 -2
  383. package/.output/public/assets/switch-BpdiHL_t.js +0 -1
  384. package/.output/public/assets/table-Bpy3SvSo.js +0 -1
  385. package/.output/public/assets/tabs-Xmt7tZeG.js +0 -1
  386. package/.output/public/assets/useCompositeListItem-JmyDfo3-.js +0 -1
  387. package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
  388. package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
  389. package/.output/server/_ssr/-native-builds-search-CwNcoXf4.mjs +0 -37
  390. package/.output/server/_ssr/BundleIdDisplay-CFz1sCQl.mjs +0 -13
  391. package/.output/server/_ssr/HashValueDisplay-B85-LoBW.mjs +0 -55
  392. package/.output/server/_ssr/RolloutPercentageBadge-CKFY5OIh.mjs +0 -21
  393. package/.output/server/_ssr/StoreSubmission-CNukW8xF.mjs +0 -139
  394. package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
  395. package/.output/server/_ssr/native-builds-CoOxssXa.mjs +0 -510
  396. package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
  397. package/.output/server/_ssr/native-builds_._buildId-CysSVBT5.mjs +0 -813
  398. package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
  399. package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +0 -133
  400. package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +0 -22
  401. package/.output/server/_ssr/tabs-kQRMEiQT.mjs +0 -45
  402. package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
  403. package/src/lib/server/nativeBuildQr.ts +0 -73
  404. package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
@@ -0,0 +1,1204 @@
1
+ import { i as __toESM } from "../_runtime.mjs";
2
+ import { Et as require_react, Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
+ import { B as Download, K as CircleCheck, M as HardDrive, N as GitBranch, S as PackageOpen, U as CircleSlash, W as CircleQuestionMark, X as ChevronLeft, Y as ChevronRight, _ as RefreshCw, i as TriangleAlert, j as History, rt as ArrowUpRight, u as Smartphone } from "../_libs/lucide-react.mjs";
4
+ import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, k as cn, t as Button$1 } from "./sidebar-bKoOUlMN.mjs";
5
+ import { a as CardHeader, n as CardContent, o as CardTitle, t as Card } from "./card-D0a_6Dhh.mjs";
6
+ import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-YEmoI1eN.mjs";
7
+ import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-DSB_9Amh.mjs";
8
+ import { n as toast } from "../_libs/sonner.mjs";
9
+ import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
10
+ import { a as EmptyMedia, i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-jogqtpGm.mjs";
11
+ import { r as NUMERIC_COHORT_SIZE } from "./dist-CiOq3ygH.mjs";
12
+ import { A as nativeBuildSignedDownloadUrl, C as nativeBuildFileName, E as nativeBuildLabel, I as shellQuote, M as platformLabel, S as nativeBuildDownloadPath, _ as maskIosUdid, j as nativeBuildVersionLabel, l as SANDBOX_NO_PATCH_BASE, m as formatByteSize, v as nativeBuildArtifacts, w as nativeBuildInstallCommand } from "./native-builds-C2xGyB-t.mjs";
13
+ import { a as useConfigQuery, d as useNativeBuildDownloadLinkQuery, f as useNativeBuildDownloadUrlQuery, h as useNativeBuildPatchesQuery, l as useMarkNativeBuildMutation, u as useNativeBuildDetailQuery } from "./api-B2LCh6pv.mjs";
14
+ import { a as tabsListVariants } from "./tabs-DRTBxZTO.mjs";
15
+ import { t as PlatformIcon } from "./PlatformIcon-C22qEcwo.mjs";
16
+ import { t as BundleIdDisplay } from "./BundleIdDisplay-Bbf_lM0q.mjs";
17
+ import { n as RowReason, t as ChannelBadge } from "./RowReason-Cg035uIk.mjs";
18
+ import { n as require_dayjs_min } from "../_libs/dayjs.mjs";
19
+ import { i as TargetDisplay, n as CopyableText, r as NoValue, t as BuildKeyDisplay } from "./TargetDisplay-DGqswOee.mjs";
20
+ import { t as NAV_TAB_CLASS } from "./NativeBuildsNav-Dg43O2Cd.mjs";
21
+ import { n as StoreSubmissionBadge, r as isSubmitted, t as SandboxBadge } from "./SandboxBadge-Zta6e__x.mjs";
22
+ import { l as useIosDevice, m as useNativeBuildIpaDevicesQuery, n as IosInstall } from "./IosInstall-Dnv68fhL.mjs";
23
+ import { t as Route } from "./native-builds_._buildId-EqbJ7R4A.mjs";
24
+ import { n as TimestampDisplay, r as getCommitUrl, t as RolloutPercentageBadge } from "./RolloutPercentageBadge-CaK9SkbN.mjs";
25
+ import { t as QrCode } from "./QrCode-BbK966IU.mjs";
26
+ //#region node_modules/.nitro/vite/services/ssr/assets/native-builds_._buildId-BXfvqKmr.js
27
+ var import_react = /* @__PURE__ */ __toESM(require_react());
28
+ var import_jsx_runtime = require_jsx_runtime();
29
+ var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min());
30
+ /**
31
+ * A hash shortened to its prefix, as git shows a commit: never cut in the
32
+ * middle, the full value on hover, and copied on click.
33
+ */
34
+ function ShortHash({ value, length, shown = value.slice(0, length), label }) {
35
+ const copy = async () => {
36
+ try {
37
+ await navigator.clipboard.writeText(value);
38
+ toast.success("Copied to clipboard", { description: value });
39
+ } catch {
40
+ toast.error(`Could not copy the ${label}`);
41
+ }
42
+ };
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
44
+ "aria-label": `Copy the ${label} ${value}`,
45
+ className: "relative cursor-copy rounded-sm font-mono after:absolute after:-inset-x-2 after:-inset-y-4 sm:after:hidden text-xs whitespace-nowrap tabular-nums underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
46
+ onClick: (event) => {
47
+ event.stopPropagation();
48
+ copy();
49
+ },
50
+ title: value,
51
+ translate: "no",
52
+ type: "button",
53
+ children: shown
54
+ });
55
+ }
56
+ /**
57
+ * A build's commit as git shows it, its first 7 characters: a link to the
58
+ * commit when `console.gitUrl` is set, else a button that copies the full
59
+ * SHA. The full SHA shows on hover either way.
60
+ */
61
+ function CommitLink({ hash }) {
62
+ const config = useConfigQuery();
63
+ if (hash === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NoValue, {});
64
+ const url = getCommitUrl(config.data?.console.gitUrl, hash);
65
+ return url === null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShortHash, {
66
+ label: "commit",
67
+ length: 7,
68
+ value: hash
69
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
70
+ className: "relative font-mono text-xs whitespace-nowrap underline-offset-4 after:absolute after:-inset-x-2 after:-inset-y-4 hover:underline sm:after:hidden",
71
+ href: url,
72
+ onClick: (event) => event.stopPropagation(),
73
+ rel: "noreferrer",
74
+ target: "_blank",
75
+ title: hash,
76
+ translate: "no",
77
+ children: hash.slice(0, 7)
78
+ });
79
+ }
80
+ function Row({ label, children }) {
81
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
82
+ className: "grid gap-1 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4",
83
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
84
+ className: "text-xs font-medium text-muted-foreground",
85
+ children: label
86
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
87
+ className: "min-w-0 text-sm",
88
+ children
89
+ })]
90
+ });
91
+ }
92
+ /** Marks or clears the build where the card says what the mark does. */
93
+ function StoreBuildAction({ detail }) {
94
+ const { build } = detail;
95
+ const mark = useMarkNativeBuildMutation();
96
+ if (build.is_sandbox) return null;
97
+ const storeBuild = !build.is_store_build;
98
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
99
+ className: "min-h-11 shrink-0 sm:min-h-8",
100
+ disabled: mark.isPending,
101
+ onClick: () => mark.mutate({
102
+ id: build.id,
103
+ storeBuild
104
+ }, {
105
+ onSuccess: () => {
106
+ toast.success(storeBuild ? "Marked as the store build" : "Mark cleared");
107
+ },
108
+ onError: (error) => {
109
+ toast.error("Could not change the mark", { description: error.message });
110
+ }
111
+ }),
112
+ size: "sm",
113
+ type: "button",
114
+ variant: "outline",
115
+ children: storeBuild ? "Mark as store build" : "Clear mark"
116
+ });
117
+ }
118
+ /**
119
+ * Which build new deploys patch from: this one, as the store build or as the
120
+ * newest with no mark, or another, which it links to. A sandbox build is never
121
+ * one, whatever its scope holds.
122
+ */
123
+ function BaselineStatus({ detail }) {
124
+ const { build, newestInScope, storeBuildInScope } = detail;
125
+ if (build.is_sandbox) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
126
+ className: "flex items-start gap-2 rounded-md border bg-muted/40 p-3 text-xs",
127
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CircleSlash, {
128
+ "aria-hidden": "true",
129
+ className: "mt-0.5 size-3.5 shrink-0 text-muted-foreground"
130
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
131
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
132
+ className: "font-medium",
133
+ children: "No patch base."
134
+ }),
135
+ " ",
136
+ SANDBOX_NO_PATCH_BASE
137
+ ] })]
138
+ });
139
+ const base = storeBuildInScope ?? newestInScope;
140
+ if (base === null) return null;
141
+ const isBase = base.id === build.id;
142
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
143
+ className: "flex flex-col gap-3 rounded-md border bg-muted/40 p-3 text-xs sm:flex-row sm:items-center sm:justify-between",
144
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
145
+ className: "flex items-start gap-2",
146
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(isBase ? CircleCheck : History, {
147
+ "aria-hidden": "true",
148
+ className: "mt-0.5 size-3.5 shrink-0 text-muted-foreground"
149
+ }), storeBuildInScope?.id === build.id ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
150
+ className: "font-medium",
151
+ children: "Store build."
152
+ }), " New deploys to this scope patch from this build."] }) : isBase ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
153
+ className: "font-medium",
154
+ children: "Current baseline."
155
+ }), " The newest build, and no store build is marked. New deploys to this scope patch from this build."] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
156
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
157
+ className: "font-medium",
158
+ children: "Not the base."
159
+ }),
160
+ " New deploys patch from",
161
+ " ",
162
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
163
+ className: "inline-flex items-center gap-0.5 font-medium underline underline-offset-4",
164
+ params: { buildId: base.id },
165
+ to: "/native-builds/$buildId",
166
+ children: [nativeBuildLabel(base) ?? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
167
+ platformLabel(base.platform),
168
+ " ",
169
+ nativeBuildArtifacts[base.artifact_kind].label,
170
+ " ·",
171
+ " ",
172
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: base.id })
173
+ ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, {
174
+ "aria-hidden": "true",
175
+ className: "size-3"
176
+ })]
177
+ }),
178
+ ", so this one gets no new patches."
179
+ ] })]
180
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreBuildAction, { detail })]
181
+ });
182
+ }
183
+ /**
184
+ * The build's built-in bundle: the bundle every install runs until its
185
+ * first OTA, and the base that OTA's patch starts from.
186
+ */
187
+ function BuiltInBundleCard({ detail }) {
188
+ const { build, builtInBundle, channel } = detail;
189
+ const childCount = builtInBundle?.childCount ?? 0;
190
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
191
+ className: "overflow-hidden shadow-sm",
192
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
193
+ className: "border-b px-4 py-3",
194
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
195
+ className: "text-sm",
196
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Built-in bundle" })
197
+ })
198
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
199
+ className: "flex flex-col gap-4 p-4 sm:p-6",
200
+ children: [
201
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
202
+ className: "flex flex-col gap-3",
203
+ children: [
204
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
205
+ label: "Bundle ID",
206
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleIdDisplay, { bundleId: build.min_bundle_id })
207
+ }),
208
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
209
+ label: "OTAs patching from it",
210
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
211
+ className: "tabular-nums",
212
+ children: childCount === 1 ? "1 bundle" : `${childCount} bundles`
213
+ })
214
+ }),
215
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
216
+ label: "Scope",
217
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
218
+ className: "flex flex-wrap items-center gap-1.5",
219
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
220
+ "aria-label": `Show the builds that embed ${channel}`,
221
+ className: "relative rounded-md after:absolute after:-inset-x-1 after:-inset-y-[11px] sm:after:hidden",
222
+ search: { channel },
223
+ to: "/native-builds",
224
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelBadge, { channel })
225
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
226
+ className: "text-xs",
227
+ children: platformLabel(build.platform)
228
+ })]
229
+ })
230
+ }),
231
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
232
+ label: "Target",
233
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
234
+ className: "text-xs",
235
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TargetDisplay, {
236
+ appVersion: build.app_version,
237
+ fingerprintHash: build.fingerprint_hash,
238
+ nativeAppVersion: build.native_app_version
239
+ })
240
+ })
241
+ }),
242
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
243
+ label: "Build key",
244
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
245
+ className: "text-xs",
246
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildKeyDisplay, { value: build.build_key })
247
+ })
248
+ }),
249
+ nativeBuildVersionLabel(build) === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
250
+ label: "Build",
251
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
252
+ className: "font-mono text-xs tabular-nums",
253
+ translate: "no",
254
+ children: nativeBuildVersionLabel(build)
255
+ })
256
+ }),
257
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
258
+ label: "Commit",
259
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommitLink, { hash: build.git_commit_hash })
260
+ }),
261
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
262
+ label: "Created",
263
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, {
264
+ format: "both",
265
+ uuid: build.id
266
+ })
267
+ })
268
+ ]
269
+ }),
270
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaselineStatus, { detail }),
271
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
272
+ className: "text-xs text-muted-foreground",
273
+ children: build.is_sandbox ? "An install of this build runs this bundle until it opens an OTA." : "A store or test install of this build runs this bundle until its first OTA. That OTA downloads as a patch from this bundle when one exists, and as the full bundle otherwise."
274
+ })
275
+ ]
276
+ })]
277
+ });
278
+ }
279
+ var IPA_LIMIT = "The .ipa installs only on devices its signing profile allows (development or ad hoc)";
280
+ /**
281
+ * What an artifact installs on, where the file alone isn't enough: the card
282
+ * says it once, under the QR code, or without one, in its place. A sandbox
283
+ * build gets no TestFlight advice.
284
+ */
285
+ var installLimit = (build) => {
286
+ switch (build.artifact_kind) {
287
+ case "ipa": return build.is_sandbox ? `${IPA_LIMIT}.` : `${IPA_LIMIT}; an App Store export reaches testers through TestFlight.`;
288
+ case "aab": return "The .aab installs through Google Play or bundletool, not from the file.";
289
+ default: return;
290
+ }
291
+ };
292
+ /**
293
+ * What scanning a build's QR code gets, by its artifact. The install steps
294
+ * beside it add only what this doesn't say, so the card says each thing once.
295
+ */
296
+ var qrCaption = (build) => {
297
+ switch (build.artifact_kind) {
298
+ case "apk": return "Scan with an Android phone's camera, then open the APK to install it.";
299
+ case "app": return "Scan to download the .app.zip on a Mac.";
300
+ default: return `Scan to download. ${installLimit(build)}`;
301
+ }
302
+ };
303
+ /**
304
+ * An IPA's QR code holds this page rather than a file: the iPhone that scans it
305
+ * checks whether the IPA lists it before anything downloads, and installs here.
306
+ */
307
+ function ScannablePage() {
308
+ const { origin, pathname } = window.location;
309
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
310
+ className: "flex flex-col items-center gap-2",
311
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
312
+ className: "size-48",
313
+ label: "Open this page on an iPhone",
314
+ value: `${origin}${pathname}`
315
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
316
+ className: "max-w-56 text-center text-xs text-muted-foreground",
317
+ children: "Scan with an iPhone to install this build from here. The phone signs in to the Console first."
318
+ })]
319
+ });
320
+ }
321
+ /** A QR code of the build's download URL, with what scanning it gets. */
322
+ function ScannableUrl({ build, url, note }) {
323
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
324
+ className: "flex flex-col items-center gap-2",
325
+ children: [
326
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
327
+ className: "size-48",
328
+ label: `Download ${nativeBuildFileName(build)}`,
329
+ value: url
330
+ }),
331
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
332
+ className: "max-w-56 text-center text-xs text-muted-foreground",
333
+ children: qrCaption(build)
334
+ }),
335
+ note ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
336
+ className: "max-w-56 text-center text-xs text-muted-foreground",
337
+ children: note
338
+ }) : null
339
+ ]
340
+ });
341
+ }
342
+ function QrProblem({ message }) {
343
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
344
+ variant: "destructive",
345
+ children: [
346
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
347
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "The download link couldn't be created" }),
348
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: message })
349
+ ]
350
+ });
351
+ }
352
+ /**
353
+ * The QR code when the Console can't sign a link: the storage's URL, which a
354
+ * phone opens without the Console's sign-in, but only until it expires.
355
+ */
356
+ function StorageQrCode({ build }) {
357
+ const downloadUrl = useNativeBuildDownloadUrlQuery(build.id);
358
+ const url = downloadUrl.data?.url;
359
+ if (url === null) {
360
+ const limits = installLimit(build);
361
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
362
+ className: "flex flex-col gap-2 text-xs text-muted-foreground",
363
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "This storage gives no download link a phone can open without signing in, so there is no QR code. Download the build here, or open this page on the phone signed in to the console." }), limits ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: limits }) : null]
364
+ });
365
+ }
366
+ if (url !== void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScannableUrl, {
367
+ build,
368
+ note: "This link expires. If the download fails, reload this page.",
369
+ url
370
+ });
371
+ return downloadUrl.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrProblem, { message: downloadUrl.error.message }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "size-48" });
372
+ }
373
+ /**
374
+ * The file's download, as an outline button where people use the file itself.
375
+ * An IPA's is a ghost button in the same place: a computer's browser installs
376
+ * nothing from it, so it never competes with the card's install path.
377
+ */
378
+ function DownloadButton({ build, href }) {
379
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
380
+ className: buttonVariants({
381
+ className: "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
382
+ variant: build.artifact_kind === "ipa" ? "ghost" : "outline"
383
+ }),
384
+ download: true,
385
+ href,
386
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Download, { "data-icon": "inline-start" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
387
+ className: "text-left [overflow-wrap:anywhere]",
388
+ children: ["Download ", nativeBuildFileName(build)]
389
+ })]
390
+ });
391
+ }
392
+ /**
393
+ * A build a store took installs from the store, so the card leads with the
394
+ * store's badge, says how testers get it, and keeps the file's download, with
395
+ * no QR code or signed link to ask for.
396
+ */
397
+ function StoreInstallCard({ build }) {
398
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
399
+ className: "overflow-hidden shadow-sm",
400
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
401
+ className: "border-b px-4 py-3",
402
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
403
+ className: "text-sm",
404
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Install" })
405
+ })
406
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
407
+ className: "flex min-w-0 flex-col gap-4 p-4 sm:p-6",
408
+ children: [
409
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreSubmissionBadge, {
410
+ build,
411
+ withTime: true
412
+ }),
413
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallSteps, { build }),
414
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DownloadButton, {
415
+ build,
416
+ href: nativeBuildDownloadPath(build.id)
417
+ })
418
+ ]
419
+ })]
420
+ });
421
+ }
422
+ /**
423
+ * How else the artifact installs, beside its QR code's caption and its
424
+ * download: none of it repeats the caption.
425
+ */
426
+ function InstallSteps({ build }) {
427
+ switch (build.artifact_kind) {
428
+ case "apk": return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
429
+ className: "flex min-w-0 flex-col gap-2",
430
+ children: [
431
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
432
+ className: "text-xs text-muted-foreground",
433
+ children: "Your browser needs the \"Install unknown apps\" permission."
434
+ }),
435
+ build.is_sandbox ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
436
+ className: "text-xs text-muted-foreground",
437
+ children: "Its .sandbox ID installs it beside a Play copy."
438
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
439
+ className: "text-xs text-muted-foreground",
440
+ children: "If this package is already installed with another signing key, such as a Play copy, the install fails. Uninstall that copy first, or build with sandbox: true, whose .sandbox ID installs beside it."
441
+ }),
442
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
443
+ className: "text-xs text-muted-foreground",
444
+ children: "On an emulator or a phone over USB, install and open it from your project:"
445
+ }),
446
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
447
+ label: "the install command",
448
+ value: nativeBuildInstallCommand(build)
449
+ })
450
+ ]
451
+ });
452
+ case "app": return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
453
+ className: "flex min-w-0 flex-col gap-2",
454
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
455
+ className: "text-xs text-muted-foreground",
456
+ children: "It runs only in the iOS Simulator. In your project, install and open it on the booted one:"
457
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
458
+ label: "the install command",
459
+ value: nativeBuildInstallCommand(build)
460
+ })]
461
+ });
462
+ case "aab": return isSubmitted(build) ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
463
+ className: "text-xs text-muted-foreground",
464
+ children: [build.submitted_to === "play-production" ? "Users" : "Testers", " get it once its release is rolled out; on an app Play Console hasn't published, the release is a draft you roll out in Play Console."]
465
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
466
+ className: "flex min-w-0 flex-col gap-2",
467
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
468
+ className: "text-xs text-muted-foreground",
469
+ children: "For testers, build and release to internal testing:"
470
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
471
+ label: "the Google Play command",
472
+ value: "npx hot-updater google-play upload"
473
+ })]
474
+ });
475
+ case "ipa": return isSubmitted(build) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
476
+ className: "text-xs text-muted-foreground",
477
+ children: "Internal testers install it from the TestFlight app once App Store Connect has processed it."
478
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
479
+ className: "text-xs text-muted-foreground",
480
+ children: "Over USB, Xcode or Apple Configurator installs it."
481
+ });
482
+ }
483
+ }
484
+ /**
485
+ * The signed link to copy, which a script or a teammate uses without signing
486
+ * in. A local Console has none, and says nothing about it on every build.
487
+ */
488
+ function SignedLink({ link, url }) {
489
+ if (link?.status === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
490
+ className: "text-xs text-muted-foreground",
491
+ role: "status",
492
+ children: [
493
+ "Set ",
494
+ link.secretName,
495
+ " on the Console to create links."
496
+ ]
497
+ });
498
+ if (link?.status !== "issued" || url === null) return null;
499
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
500
+ className: "flex min-w-0 flex-col gap-2",
501
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
502
+ label: "the download link",
503
+ value: url
504
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
505
+ className: "text-xs text-muted-foreground",
506
+ children: [
507
+ "Anyone with this link can download this build until",
508
+ " ",
509
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
510
+ className: "whitespace-nowrap",
511
+ children: [(0, import_dayjs_min.default)(link.expiresAt).format("YYYY-MM-DD"), "."]
512
+ })
513
+ ]
514
+ })]
515
+ });
516
+ }
517
+ /**
518
+ * Installs one native build: an IPA or AAB a store took, from the store, which
519
+ * its badge names, with the file's download; an IPA
520
+ * on the iPhone that opens this page, whose QR code on any other screen holds
521
+ * this page; every other artifact by a QR code of its signed link, which a phone
522
+ * without a session scans, and by download here or the link itself; an APK or a
523
+ * simulator app also with `native-build install`, and an IPA's or an AAB's
524
+ * testers through its store. Where the Console can't sign, the QR code holds the
525
+ * storage's URL and the download asks for the session.
526
+ */
527
+ function InstallCard({ build, sibling = null }) {
528
+ return isSubmitted(build) && (build.artifact_kind === "ipa" || build.artifact_kind === "aab") ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreInstallCard, { build }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FileInstallCard, {
529
+ build,
530
+ sibling
531
+ });
532
+ }
533
+ /** What each install target is called where a person picks one. */
534
+ var TARGET_LABELS = {
535
+ ipa: "iPhone",
536
+ app: "Simulator"
537
+ };
538
+ /**
539
+ * The two install targets of one native code, iPhone then Simulator, as links
540
+ * to each build's own page: everything else on the page is of that build.
541
+ */
542
+ function InstallTargetSwitch({ build, sibling }) {
543
+ const targets = build.artifact_kind === "ipa" ? [build, sibling] : [sibling, build];
544
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", {
545
+ "aria-label": "Install target",
546
+ className: cn(tabsListVariants(), "h-auto min-h-11 shrink-0 sm:h-8 sm:min-h-0 [&>a]:min-h-11 sm:[&>a]:min-h-0"),
547
+ children: targets.map((target) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
548
+ "aria-current": target.id === build.id ? "page" : void 0,
549
+ className: NAV_TAB_CLASS,
550
+ params: { buildId: target.id },
551
+ to: "/native-builds/$buildId",
552
+ children: TARGET_LABELS[target.artifact_kind]
553
+ }, target.id))
554
+ });
555
+ }
556
+ /**
557
+ * On the iPhone, what installs the IPA from a computer, closed under the one
558
+ * action this phone takes: over USB, the download, and its link.
559
+ */
560
+ function OtherWaysToInstall({ children }) {
561
+ const [open, setOpen] = (0, import_react.useState)(false);
562
+ const id = (0, import_react.useId)();
563
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
564
+ className: "flex min-w-0 flex-col gap-3 border-t pt-3",
565
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
566
+ "aria-controls": id,
567
+ "aria-expanded": open,
568
+ className: "group/other -mx-1 flex min-h-11 items-center gap-1.5 self-start rounded-md px-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:min-h-8",
569
+ onClick: () => setOpen((value) => !value),
570
+ type: "button",
571
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, {
572
+ "aria-hidden": "true",
573
+ className: "size-3.5 shrink-0 transition-transform group-aria-expanded/other:rotate-90 motion-reduce:transition-none"
574
+ }), "Other ways to install"]
575
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
576
+ hidden: !open,
577
+ id,
578
+ children
579
+ })]
580
+ });
581
+ }
582
+ function FileInstallCard({ build, sibling }) {
583
+ const link = useNativeBuildDownloadLinkQuery(build.id);
584
+ const signedUrl = link.data?.status === "issued" ? nativeBuildSignedDownloadUrl(window.location, build.id, link.data.token) : null;
585
+ const device = useIosDevice();
586
+ const ipa = build.artifact_kind === "ipa";
587
+ const onPhone = ipa && device?.ios === true;
588
+ const otherWays = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
589
+ className: "flex min-w-0 flex-col gap-4",
590
+ children: [
591
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallSteps, { build }),
592
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DownloadButton, {
593
+ build,
594
+ href: signedUrl ?? nativeBuildDownloadPath(build.id)
595
+ }),
596
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SignedLink, {
597
+ link: link.data,
598
+ url: signedUrl
599
+ })
600
+ ]
601
+ });
602
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
603
+ className: "overflow-hidden shadow-sm",
604
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardHeader, {
605
+ className: "flex flex-row items-center justify-between gap-3 border-b px-4 py-3",
606
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
607
+ className: "text-sm",
608
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Install" })
609
+ }), sibling === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallTargetSwitch, {
610
+ build,
611
+ sibling
612
+ })]
613
+ }), onPhone ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
614
+ className: "flex min-w-0 flex-col gap-4 p-4 sm:p-6",
615
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(IosInstall, {
616
+ build,
617
+ device
618
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OtherWaysToInstall, { children: otherWays })]
619
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
620
+ className: "grid gap-6 p-4 sm:grid-cols-[12rem_minmax(0,1fr)] sm:p-6",
621
+ children: [ipa && signedUrl !== null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScannablePage, {}) : signedUrl !== null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScannableUrl, {
622
+ build,
623
+ url: signedUrl
624
+ }) : link.data !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StorageQrCode, { build }) : link.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrProblem, { message: link.error.message }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "size-48" }), otherWays]
625
+ })]
626
+ });
627
+ }
628
+ /**
629
+ * Why the Console can't name a device the IPA lists, and how to name it:
630
+ * Apple's ad hoc profile lists every enabled device in the account, the
631
+ * registry only those registered through Hot Updater.
632
+ */
633
+ var UNKNOWN_DEVICE_REASON = "In your Apple account, but not in Hot Updater. Open iOS devices on that iPhone to register it.";
634
+ /**
635
+ * The devices an ad hoc IPA installs on, read from its signing profile: each
636
+ * by the registry's name when the registry knows it, else as an unknown
637
+ * device, over its UDID's last characters, which copy the whole UDID. Read
638
+ * only: the IPA decides, and a new build is what adds a device.
639
+ */
640
+ function IpaDevicesCard({ build }) {
641
+ const query = useNativeBuildIpaDevicesQuery(build.id);
642
+ const result = query.data;
643
+ if (result?.status === "store" || result?.status === "enterprise") return null;
644
+ const devices = result?.status === "listed" ? result.devices : null;
645
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
646
+ className: "overflow-hidden shadow-sm",
647
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardHeader, {
648
+ className: "flex flex-row items-center gap-2 border-b px-4 py-3",
649
+ children: [
650
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
651
+ className: "text-sm",
652
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Devices in this build" })
653
+ }),
654
+ devices === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
655
+ className: "text-xs tabular-nums text-muted-foreground",
656
+ children: devices.length
657
+ }),
658
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
659
+ className: buttonVariants({
660
+ className: "ml-auto h-11 sm:h-7",
661
+ size: "sm",
662
+ variant: "ghost"
663
+ }),
664
+ to: "/native-builds/devices",
665
+ children: "iOS devices"
666
+ })
667
+ ]
668
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
669
+ className: "p-0",
670
+ children: query.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
671
+ className: "flex flex-col gap-2 p-4",
672
+ children: [
673
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
674
+ className: "sr-only",
675
+ children: "Reading this IPA's devices"
676
+ }),
677
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-8 w-full" }),
678
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-8 w-full" })
679
+ ]
680
+ }) : query.isError || result?.status === "unavailable" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
681
+ className: "flex flex-wrap items-center gap-3 p-4 text-xs text-muted-foreground",
682
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
683
+ className: "min-w-0 flex-1",
684
+ children: "The Console couldn't read this IPA's devices from storage."
685
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
686
+ className: "h-11 sm:h-7",
687
+ onClick: () => void query.refetch(),
688
+ size: "sm",
689
+ variant: "outline",
690
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
691
+ })]
692
+ }) : devices?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
693
+ className: "p-4 text-xs text-muted-foreground",
694
+ children: "This IPA lists no devices."
695
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", {
696
+ "aria-label": "Devices in this build",
697
+ className: "divide-y",
698
+ children: devices?.map((device) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", {
699
+ className: "flex min-h-11 min-w-0 items-center gap-3 px-4 py-2 text-sm",
700
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, {
701
+ "aria-hidden": "true",
702
+ className: "size-4 shrink-0 text-muted-foreground"
703
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
704
+ className: "flex min-w-0 flex-col items-start",
705
+ children: [device.name === null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RowReason, {
706
+ className: "text-sm",
707
+ icon: CircleQuestionMark,
708
+ label: `Unknown device: ${UNKNOWN_DEVICE_REASON}`,
709
+ reason: UNKNOWN_DEVICE_REASON,
710
+ children: "Unknown device"
711
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
712
+ className: "truncate",
713
+ children: device.name
714
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
715
+ className: "text-muted-foreground",
716
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShortHash, {
717
+ label: "UDID",
718
+ shown: maskIosUdid(device.udid),
719
+ value: device.udid
720
+ })
721
+ })]
722
+ })]
723
+ }, device.udid))
724
+ })
725
+ })]
726
+ });
727
+ }
728
+ var BUNDLE_DIFFING_GUIDE_URL = "https://hot-updater.dev/docs/guides/bundle-diffing#first-ota-update";
729
+ /**
730
+ * The bundles that patch from the build's built-in bundle, newest first, a
731
+ * page at a time: the newest page comes with the build's page, and others
732
+ * are read as they are asked for.
733
+ */
734
+ function PatchesCard({ detail, page, onPage }) {
735
+ const paged = page.before !== void 0 || page.after !== void 0;
736
+ const query = useNativeBuildPatchesQuery(detail.build.min_bundle_id, page, paged);
737
+ const patches = paged ? query.data : detail.patches;
738
+ const { next, previous } = patches ?? {};
739
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
740
+ className: "overflow-hidden shadow-sm",
741
+ id: "patches",
742
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
743
+ className: "border-b px-4 py-3",
744
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
745
+ className: "text-sm",
746
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Patches from this build" })
747
+ })
748
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
749
+ className: "p-0",
750
+ children: [paged && query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
751
+ className: "p-4",
752
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
753
+ variant: "destructive",
754
+ children: [
755
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
756
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Patches couldn't be loaded" }),
757
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: query.error.message }),
758
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
759
+ onClick: () => void query.refetch(),
760
+ size: "xs",
761
+ variant: "outline",
762
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
763
+ }) })
764
+ ]
765
+ })
766
+ }) : patches === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
767
+ className: "flex flex-col gap-2 p-4",
768
+ children: [
769
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
770
+ className: "sr-only",
771
+ children: "Loading patches"
772
+ }),
773
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-4 w-full" }),
774
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-4 w-2/3" })
775
+ ]
776
+ }) : patches.data.length === 0 ? paged ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Empty, {
777
+ className: "py-10",
778
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyTitle, { children: "No more patches" }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
779
+ className: "min-h-11 sm:min-h-8",
780
+ onClick: () => onPage({}),
781
+ variant: "outline",
782
+ children: "Show the newest patches"
783
+ })]
784
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Empty, {
785
+ className: "py-10",
786
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EmptyHeader, { children: [
787
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyMedia, {
788
+ variant: "icon",
789
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GitBranch, {})
790
+ }),
791
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyTitle, { children: "No patches from this build" }),
792
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyDescription, { children: detail.build.is_sandbox ? SANDBOX_NO_PATCH_BASE : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
793
+ "A deploy adds a patch from this build's bundle while it is its scope's store build, or its newest build with none marked, and the deploy config turns patches on, with",
794
+ " ",
795
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
796
+ className: "font-mono",
797
+ children: "patch"
798
+ }),
799
+ " in",
800
+ " ",
801
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
802
+ className: "font-mono",
803
+ children: "hot-updater.config.ts"
804
+ }),
805
+ "."
806
+ ] }) })
807
+ ] }), detail.build.is_sandbox ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
808
+ className: buttonVariants({
809
+ className: "min-h-11 sm:min-h-8",
810
+ variant: "outline"
811
+ }),
812
+ href: BUNDLE_DIFFING_GUIDE_URL,
813
+ rel: "noreferrer",
814
+ target: "_blank",
815
+ children: ["Bundle diffing guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
816
+ }) })]
817
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Table, {
818
+ "aria-busy": paged && query.isPlaceholderData,
819
+ "aria-label": "Patches from this build",
820
+ className: "table-fixed",
821
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
822
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Target bundle" }),
823
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
824
+ className: "w-28",
825
+ children: "Patch size"
826
+ }),
827
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
828
+ className: "hidden w-32 sm:table-cell",
829
+ children: "Created"
830
+ })
831
+ ] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableBody, { children: patches.data.map((patch) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
832
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
833
+ className: "py-3 whitespace-normal",
834
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
835
+ className: "block font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline",
836
+ search: { bundleId: patch.bundleId },
837
+ title: patch.bundleId,
838
+ to: "/",
839
+ translate: "no",
840
+ children: patch.bundleId
841
+ })
842
+ }),
843
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
844
+ className: "text-xs tabular-nums",
845
+ children: formatByteSize(patch.byteSize)
846
+ }),
847
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
848
+ className: "hidden sm:table-cell",
849
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: patch.bundleId })
850
+ })
851
+ ] }, patch.bundleId)) })]
852
+ }), next !== void 0 || previous !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("nav", {
853
+ "aria-label": "Patch pages",
854
+ className: "flex items-center justify-end gap-2 border-t px-4 py-2",
855
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
856
+ className: "min-h-11 sm:min-h-7",
857
+ disabled: previous === void 0 || paged && query.isPlaceholderData,
858
+ onClick: () => onPage({ after: previous }),
859
+ size: "sm",
860
+ variant: "ghost",
861
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { "data-icon": "inline-start" }), "Newer"]
862
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
863
+ className: "min-h-11 sm:min-h-7",
864
+ disabled: next === void 0 || paged && query.isPlaceholderData,
865
+ onClick: () => onPage({ before: next }),
866
+ size: "sm",
867
+ variant: "ghost",
868
+ children: ["Older", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, { "data-icon": "inline-end" })]
869
+ })]
870
+ }) : null]
871
+ })]
872
+ });
873
+ }
874
+ /**
875
+ * How an install of the build downloads `bundleId` as its first OTA: as the
876
+ * patch from the built-in bundle when one exists, else the full bundle. The
877
+ * newest page of patches decides it for every bundle down to the page's
878
+ * oldest; an older bundle is unknown only when the page is full.
879
+ */
880
+ var firstDownloadOf = (patches, bundleId) => {
881
+ const patch = patches.data.find((row) => row.bundleId === bundleId);
882
+ if (patch !== void 0) return {
883
+ kind: "patch",
884
+ byteSize: patch.byteSize
885
+ };
886
+ const oldest = patches.data.at(-1)?.bundleId;
887
+ return patches.next !== void 0 && oldest !== void 0 && bundleId < oldest ? { kind: "unknown" } : { kind: "full" };
888
+ };
889
+ function FirstDownloadCell({ download }) {
890
+ switch (download.kind) {
891
+ case "patch": return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
892
+ className: "text-xs",
893
+ children: [
894
+ "Patch",
895
+ " ",
896
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
897
+ className: "text-muted-foreground tabular-nums",
898
+ children: [
899
+ "(",
900
+ formatByteSize(download.byteSize),
901
+ ")"
902
+ ]
903
+ })
904
+ ]
905
+ });
906
+ case "full": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
907
+ className: "text-xs text-muted-foreground",
908
+ children: "Full bundle"
909
+ });
910
+ case "unknown": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
911
+ className: "text-xs underline-offset-4 hover:underline",
912
+ href: "#patches",
913
+ children: "See patches"
914
+ });
915
+ }
916
+ }
917
+ /**
918
+ * What the update check offers an install of the build now: its scope's
919
+ * catalog at the build's app version, down to the built-in bundle, newest
920
+ * first. It is the catalog of now, not the history.
921
+ */
922
+ function ServedNowCard({ detail }) {
923
+ const { build, channel, servedNow, patches, catalogScopeKey } = detail;
924
+ const firstOta = servedNow.find(({ rolloutCohortCount, targetCohorts }) => rolloutCohortCount > 0 || targetCohorts.length > 0)?.bundleId;
925
+ const missingPatch = build.is_store_build && firstOta !== void 0 && firstOta !== null && firstDownloadOf(patches, firstOta).kind === "full" ? [
926
+ "npx hot-updater patch",
927
+ `-p ${build.platform}`,
928
+ `-c ${shellQuote(channel)}`,
929
+ `-b ${shellQuote(firstOta)}`,
930
+ `--base-artifact-id ${shellQuote(build.min_bundle_id)}`
931
+ ].join(" ") : null;
932
+ const scopeLink = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
933
+ className: "inline-flex items-center gap-0.5 underline-offset-4 hover:underline",
934
+ search: { scopeKey: catalogScopeKey },
935
+ to: "/",
936
+ children: ["All releases in this scope", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, {
937
+ "aria-hidden": "true",
938
+ className: "size-3"
939
+ })]
940
+ });
941
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
942
+ className: "overflow-hidden shadow-sm",
943
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
944
+ className: "border-b px-4 py-3",
945
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
946
+ className: "text-sm",
947
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Served now" })
948
+ })
949
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
950
+ className: "p-0",
951
+ children: servedNow.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Empty, {
952
+ className: "py-10",
953
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EmptyHeader, { children: [
954
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyMedia, {
955
+ variant: "icon",
956
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PackageOpen, {})
957
+ }),
958
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyTitle, { children: "No OTA for this build yet" }),
959
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EmptyDescription, { children: [
960
+ "No release in this build's scope is newer than its built-in bundle. Deploy one with",
961
+ " ",
962
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
963
+ className: "font-mono",
964
+ children: "hot-updater deploy"
965
+ }),
966
+ ", and it shows here."
967
+ ] })
968
+ ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
969
+ className: buttonVariants({
970
+ className: "min-h-11 sm:min-h-8",
971
+ variant: "outline"
972
+ }),
973
+ search: { scopeKey: catalogScopeKey },
974
+ to: "/",
975
+ children: "All releases in this scope"
976
+ }) })]
977
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
978
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Table, {
979
+ "aria-label": "Served now",
980
+ className: "table-fixed",
981
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
982
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Bundle" }),
983
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
984
+ className: "hidden w-40 md:table-cell",
985
+ children: "Rollout"
986
+ }),
987
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
988
+ className: "hidden w-32 sm:table-cell",
989
+ children: "Created"
990
+ }),
991
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
992
+ className: "w-32",
993
+ children: "First OTA download"
994
+ })
995
+ ] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableBody, { children: servedNow.map((release) => {
996
+ const bundleId = release.bundleId;
997
+ const percentage = release.rolloutCohortCount / NUMERIC_COHORT_SIZE * 100;
998
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
999
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1000
+ className: "py-3 whitespace-normal",
1001
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1002
+ className: "flex min-w-0 flex-col gap-1",
1003
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
1004
+ className: "underline-offset-4 hover:underline",
1005
+ search: { releaseId: release.releaseId },
1006
+ title: bundleId,
1007
+ to: "/",
1008
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleIdDisplay, {
1009
+ bundleId,
1010
+ label: release.label
1011
+ })
1012
+ }), release.message ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1013
+ className: "text-xs text-muted-foreground",
1014
+ children: release.message
1015
+ }) : null]
1016
+ })
1017
+ }),
1018
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1019
+ className: "hidden md:table-cell",
1020
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1021
+ className: "flex flex-wrap gap-1",
1022
+ children: [release.targetCohorts.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
1023
+ variant: "secondary",
1024
+ children: release.targetCohorts.length === 1 ? "1 cohort" : `${release.targetCohorts.length} cohorts`
1025
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage }), release.shouldForceUpdate ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
1026
+ variant: "outline",
1027
+ children: "Forced"
1028
+ }) : null]
1029
+ })
1030
+ }),
1031
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
1032
+ className: "hidden sm:table-cell",
1033
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: bundleId })
1034
+ }),
1035
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FirstDownloadCell, { download: firstDownloadOf(patches, bundleId) }) })
1036
+ ] }, release.releaseId);
1037
+ }) })]
1038
+ }),
1039
+ missingPatch === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1040
+ className: "flex flex-col gap-2 border-t px-4 py-3 text-xs",
1041
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "The OTA fresh installs get first has no patch from this store build, so they download all of it. Add one from your project:" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
1042
+ label: "the patch command",
1043
+ value: missingPatch
1044
+ })]
1045
+ }),
1046
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
1047
+ className: "border-t px-4 py-3 text-xs text-muted-foreground",
1048
+ children: ["What the update check serves an install of this build now, newest first: not the history. ", scopeLink]
1049
+ })
1050
+ ] })
1051
+ })]
1052
+ });
1053
+ }
1054
+ /**
1055
+ * One native build: how to install it, its built-in bundle as the base its
1056
+ * OTAs patch from, what an install is served now, and the patches from it.
1057
+ * The patch page is in the URL, so a link opens it.
1058
+ */
1059
+ function NativeBuildDetailPage({ buildId, search, onSearchChange }) {
1060
+ const query = useNativeBuildDetailQuery(buildId);
1061
+ const detail = query.data;
1062
+ const page = {
1063
+ ...search.patchesBefore === void 0 ? {} : { before: search.patchesBefore },
1064
+ ...search.patchesAfter === void 0 ? {} : { after: search.patchesAfter }
1065
+ };
1066
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1067
+ className: "flex h-svh min-h-0 flex-col",
1068
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
1069
+ className: "sticky top-0 z-10 flex shrink-0 items-center gap-x-2 border-b bg-background px-3 py-3 sm:min-h-12 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm",
1070
+ children: [
1071
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
1072
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
1073
+ className: buttonVariants({
1074
+ className: "min-h-11 sm:min-h-7",
1075
+ size: "sm",
1076
+ variant: "ghost"
1077
+ }),
1078
+ search: detail ? { channel: detail.channel } : { channels: "all" },
1079
+ to: "/native-builds",
1080
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { "data-icon": "inline-start" }), "Native builds"]
1081
+ }),
1082
+ detail ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h1", {
1083
+ className: "flex min-w-0 items-center gap-1.5 text-sm font-medium",
1084
+ children: [
1085
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
1086
+ className: "size-3.5 shrink-0 text-muted-foreground",
1087
+ platform: detail.build.platform
1088
+ }),
1089
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1090
+ className: "flex min-w-0 flex-wrap items-center gap-x-1.5",
1091
+ children: [
1092
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1093
+ className: "inline-flex items-center gap-1.5 whitespace-nowrap",
1094
+ children: [
1095
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1096
+ className: "sr-only",
1097
+ children: [platformLabel(detail.build.platform), " "]
1098
+ }),
1099
+ nativeBuildArtifacts[detail.build.artifact_kind].label,
1100
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SandboxBadge, { build: detail.build })
1101
+ ]
1102
+ }),
1103
+ nativeBuildVersionLabel(detail.build) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1104
+ className: "font-mono whitespace-nowrap tabular-nums",
1105
+ translate: "no",
1106
+ children: nativeBuildVersionLabel(detail.build)
1107
+ }) : null,
1108
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1109
+ className: "min-w-0 [overflow-wrap:anywhere]",
1110
+ children: ["· ", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1111
+ translate: "no",
1112
+ children: detail.channel
1113
+ })]
1114
+ })
1115
+ ]
1116
+ }),
1117
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1118
+ className: "hidden text-xs font-normal text-muted-foreground tabular-nums sm:inline",
1119
+ children: formatByteSize(detail.build.byte_size)
1120
+ })
1121
+ ]
1122
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
1123
+ className: "sr-only",
1124
+ children: "Native build"
1125
+ })
1126
+ ]
1127
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1128
+ className: "min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6",
1129
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1130
+ className: "mx-auto flex w-full max-w-5xl flex-col gap-4 sm:gap-6",
1131
+ children: query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
1132
+ variant: "destructive",
1133
+ children: [
1134
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
1135
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "The native build couldn't be loaded" }),
1136
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: query.error.message }),
1137
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
1138
+ onClick: () => void query.refetch(),
1139
+ size: "xs",
1140
+ variant: "outline",
1141
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
1142
+ }) })
1143
+ ]
1144
+ }) : detail === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1145
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1146
+ className: "sr-only",
1147
+ children: "Loading the native build"
1148
+ }),
1149
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-56 w-full rounded-xl" }),
1150
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-64 w-full rounded-xl" })
1151
+ ] }) : detail === null ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Empty, {
1152
+ className: "border py-16",
1153
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EmptyHeader, { children: [
1154
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyMedia, {
1155
+ variant: "icon",
1156
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDrive, {})
1157
+ }),
1158
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyTitle, { children: "Native build not found" }),
1159
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyDescription, { children: "No native build has this ID. It may have been deleted, or be from another console." })
1160
+ ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
1161
+ className: buttonVariants({
1162
+ className: "min-h-11 sm:min-h-8",
1163
+ variant: "outline"
1164
+ }),
1165
+ search: { channels: "all" },
1166
+ to: "/native-builds",
1167
+ children: "Show all native builds"
1168
+ }) })]
1169
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
1170
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallCard, {
1171
+ build: detail.build,
1172
+ sibling: detail.sibling
1173
+ }),
1174
+ detail.build.artifact_kind === "ipa" && !isSubmitted(detail.build) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IpaDevicesCard, { build: detail.build }) : null,
1175
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuiltInBundleCard, { detail }),
1176
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ServedNowCard, { detail }),
1177
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PatchesCard, {
1178
+ detail,
1179
+ onPage: (next) => onSearchChange({
1180
+ ...next.before === void 0 ? {} : { patchesBefore: next.before },
1181
+ ...next.after === void 0 ? {} : { patchesAfter: next.after }
1182
+ }),
1183
+ page
1184
+ })
1185
+ ] }, detail.build.id)
1186
+ })
1187
+ })]
1188
+ });
1189
+ }
1190
+ function NativeBuildDetailRoute() {
1191
+ const { buildId } = Route.useParams();
1192
+ const search = Route.useSearch();
1193
+ const navigate = Route.useNavigate();
1194
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildDetailPage, {
1195
+ buildId,
1196
+ onSearchChange: (next) => void navigate({
1197
+ search: next,
1198
+ replace: true
1199
+ }),
1200
+ search
1201
+ });
1202
+ }
1203
+ //#endregion
1204
+ export { NativeBuildDetailRoute as component };