@hot-updater/console 1.2.0-rc.4 → 1.2.0-rc.41

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 (394) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/-native-builds-search-BFcW2mlI.js +1 -0
  3. package/.output/public/assets/BundleIdDisplay-C0X-k49t.js +1 -0
  4. package/.output/public/assets/ChannelBadge-BgVCJfJs.js +1 -0
  5. package/.output/public/assets/ChannelPicker-BQKoyxnf.js +1 -0
  6. package/.output/public/assets/CompositeItem-B7uxFM46.js +1 -0
  7. package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
  8. package/.output/public/assets/EventDetails-CWiI1CXb.js +1 -0
  9. package/.output/public/assets/HashValueDisplay-DvwvQchI.js +1 -0
  10. package/.output/public/assets/InsightsPageHeader-BjUAikRe.js +1 -0
  11. package/.output/public/assets/IosInstall-B5IdjCP2.js +1 -0
  12. package/.output/public/assets/NativeBuildsNav-BKdnlKMN.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-5ZP9WlQ6.js +1 -0
  17. package/.output/public/assets/RolloutPercentageBadge-DCtG7c1o.js +1 -0
  18. package/.output/public/assets/RowReason-CXMCJ-Jc.js +1 -0
  19. package/.output/public/assets/SandboxBadge-PM92jCk6.js +1 -0
  20. package/.output/public/assets/TargetDisplay-DG_I3qln.js +1 -0
  21. package/.output/public/assets/alert-dialog-DGPqJBCk.js +1 -0
  22. package/.output/public/assets/api-eO-sq3Jd.js +1 -0
  23. package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
  24. package/.output/public/assets/api-keys-ztwXoKcj.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-right-RAuPv9r1.js +1 -0
  32. package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-DvYMC5yF.js} +1 -1
  33. package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-D0JWZ1KF.js} +1 -1
  34. package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-CtbGqKyr.js} +1 -1
  35. package/.output/public/assets/{uuidv7-zXMtwR9Q.js → constants-C5gi7fdZ.js} +1 -1
  36. package/.output/public/assets/{copy-DsuLj3oj.js → copy-BjVLMKbo.js} +1 -1
  37. package/.output/public/assets/dialog-BvZDZzdQ.js +1 -0
  38. package/.output/public/assets/dist-BEmib-ZM.js +1 -0
  39. package/.output/public/assets/{download-Cf24LBde.js → download-CgpaZb23.js} +1 -1
  40. package/.output/public/assets/empty-C5GqArX9.js +1 -0
  41. package/.output/public/assets/field-DInLQ5oV.js +1 -0
  42. package/.output/public/assets/git-branch-BGatQV8Q.js +1 -0
  43. package/.output/public/assets/history-Ci4dhphE.js +1 -0
  44. package/.output/public/assets/index-Ck4fZq4M.js +10 -0
  45. package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
  46. package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
  47. package/.output/public/assets/insights-api-D4-FZeEI.js +1 -0
  48. package/.output/public/assets/insights-fSY6n4k3.js +42 -0
  49. package/.output/public/assets/insights-osTmFzzR.js +2 -0
  50. package/.output/public/assets/insights-search-CZtvD-Vf.js +1 -0
  51. package/.output/public/assets/insights-usage-rpc-Dw5_pmRH.js +1 -0
  52. package/.output/public/assets/insights_.distribution-Cws8lYLC.js +1 -0
  53. package/.output/public/assets/insights_.distribution-DpppHhaU.js +2 -0
  54. package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
  55. package/.output/public/assets/installations-Byojb0Rv.js +2 -0
  56. package/.output/public/assets/installations-CFGDrY-W.js +1 -0
  57. package/.output/public/assets/installations-CcPrSZwW.js +1 -0
  58. package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-BkeLvA1m.js} +1 -1
  59. package/.output/public/assets/{link-DTEyW70e.js → link-CRMwpc7-.js} +2 -2
  60. package/.output/public/assets/{list--NIee1FZ.js → list-DQ9YBIDW.js} +1 -1
  61. package/.output/public/assets/loader-circle-8lunBReu.js +1 -0
  62. package/.output/public/assets/native-builds-C4u6JvxV.js +2 -0
  63. package/.output/public/assets/native-builds-D9hoJd6W.js +1 -0
  64. package/.output/public/assets/native-builds-zwqucwx2.js +1 -0
  65. package/.output/public/assets/native-builds_._buildId-CXx2xjoI.js +1 -0
  66. package/.output/public/assets/native-builds_._buildId-DymsEZlO.js +2 -0
  67. package/.output/public/assets/native-builds_.devices-DF3g--dt.js +1 -0
  68. package/.output/public/assets/native-builds_.devices-QToUV8FB.js +2 -0
  69. package/.output/public/assets/plus-DztQIXYL.js +1 -0
  70. package/.output/public/assets/preload-helper-CE9OukVC.js +1 -0
  71. package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-RUNbaMyO.js} +1 -1
  72. package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
  73. package/.output/public/assets/remote-config-BJJAxy_g.js +6 -0
  74. package/.output/public/assets/remote-config-Dm1MCHDN.js +1 -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-9gxYg__u.js +1 -0
  78. package/.output/public/assets/routes-CUsayL0T.js +2 -0
  79. package/.output/public/assets/search-BfEqtE64.js +1 -0
  80. package/.output/public/assets/select-Bk52fOVX.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-C1iqL6CR.css +2 -0
  84. package/.output/public/assets/switch-CI393qIT.js +1 -0
  85. package/.output/public/assets/table-DbZPkzdz.js +1 -0
  86. package/.output/public/assets/tabs-BnpNC0zf.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-JmyDfo3-.js → useCompositeListItem-Cbk_weKW.js} +1 -1
  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-X9YQcrQI.mjs → __23tanstack-start-server-fn-resolver-76SKGuoc.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 +2 -2
  98. package/.output/server/_libs/_.mjs +2 -0
  99. package/.output/server/_libs/lucide-react.mjs +34 -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-Bwt8tQzp.mjs +55 -0
  106. package/.output/server/_ssr/{BundleIdDisplay-BVrZXzTm.mjs → BundleIdDisplay-By3CbbRM.mjs} +3 -3
  107. package/.output/server/_ssr/ChannelBadge-CDup7l56.mjs +23 -0
  108. package/.output/server/_ssr/ChannelPicker-Du2TmP3P.mjs +251 -0
  109. package/.output/server/_ssr/{ConsoleFeatureUnavailable-CULyV3nR.mjs → ConsoleFeatureUnavailable-C6aGoKDE.mjs} +8 -8
  110. package/.output/server/_ssr/{EventDetails-DeI1rOQc.mjs → EventDetails-VbcnMnSs.mjs} +9 -9
  111. package/.output/server/_ssr/{HashValueDisplay-DpnPD3U2.mjs → HashValueDisplay-CnC2fHER.mjs} +7 -7
  112. package/.output/server/_ssr/{InsightsPageHeader-Dwmdtelg.mjs → InsightsPageHeader-BuOanVZL.mjs} +13 -13
  113. package/.output/server/_ssr/IosInstall-BAFhW7Q9.mjs +751 -0
  114. package/.output/server/_ssr/NativeBuildsNav-BoTu4aLF.mjs +38 -0
  115. package/.output/server/_ssr/{NotFoundPage-Dddp1HSc.mjs → NotFoundPage-Bz05xF5Q.mjs} +3 -3
  116. package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
  117. package/.output/server/_ssr/QrCode-DWshAW81.mjs +50 -0
  118. package/.output/server/_ssr/RelativeTime-D5kDQVn1.mjs +242 -0
  119. package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-Dwx7dEeQ.mjs} +20 -4
  120. package/.output/server/_ssr/RowReason-pVOWQ7t5.mjs +186 -0
  121. package/.output/server/_ssr/SandboxBadge-DFbUYwhO.mjs +85 -0
  122. package/.output/server/_ssr/TargetDisplay-BtE5vntq.mjs +105 -0
  123. package/.output/server/_ssr/{alert-dialog-ei2c1b6A.mjs → alert-dialog-tcfkkNUX.mjs} +4 -4
  124. package/.output/server/_ssr/{api-keys-CVi7E0qS.mjs → api-keys-12_U0SQM.mjs} +14 -11
  125. package/.output/server/_ssr/{api-keys-BLHCygD_.mjs → api-keys-Bm8uDp2u.mjs} +2 -2
  126. package/.output/server/_ssr/{api-keys-rpc-CLZsTwih.mjs → api-keys-rpc-BxkfToWI.mjs} +4 -4
  127. package/.output/server/_ssr/{api-rpc-p-7EhGIG.mjs → api-rpc-TSnLWB7e.mjs} +83 -35
  128. package/.output/server/_ssr/{api-CvwqILEx.mjs → api-xOHZxbzu.mjs} +174 -37
  129. package/.output/server/_ssr/{auth-rpc-B1W4-hxa.mjs → auth-rpc-D3w54vsW.mjs} +5 -5
  130. package/.output/server/_ssr/{auth.server-CVKs7SWJ.mjs → auth.server-a2eP6q5P.mjs} +952 -186
  131. package/.output/server/_ssr/{badge-nS9EbEA0.mjs → badge-DrfbN1n0.mjs} +4 -45
  132. package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
  133. package/.output/server/_ssr/card-DEItjgKG.mjs +49 -0
  134. package/.output/server/_ssr/{config.server-BAdvotbH.mjs → config.server-K8dd4dRv.mjs} +4 -4
  135. package/.output/server/_ssr/{console-access-BiuC2QFp.mjs → console-access-D-DHU4YH.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-FvbqhbTg.mjs → console-features-api-Chy2PrzZ.mjs} +5 -5
  138. package/.output/server/_ssr/{console-features-rpc-Cl3J66aP.mjs → console-features-rpc-_31L0k1i.mjs} +4 -4
  139. package/.output/server/_ssr/constants-BjsJZqaU.mjs +10 -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-BZMFl5QV.mjs} +3 -3
  144. package/.output/server/_ssr/deviceProfileToken-xzDLfE0T.mjs +98 -0
  145. package/.output/server/_ssr/{dialog-GmTPeUS4.mjs → dialog-SAl1vP74.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-CXWKv24M.mjs → empty-opJc9Fjw.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-lwIHAwLc.mjs → field-D6Y7zDZd.mjs} +3 -3
  152. package/.output/server/_ssr/foldedPage-CUjJqtlF.mjs +176 -0
  153. package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-CnOf4Frp.mjs} +2 -2
  154. package/.output/server/_ssr/{input-group-Dgr4DNbE.mjs → input-group-D2PvPRdm.mjs} +3 -3
  155. package/.output/server/_ssr/{insights-BxtyBLt0.mjs → insights-Cro4cYp7.mjs} +2 -2
  156. package/.output/server/_ssr/{insights-api-PN_9ilr8.mjs → insights-api-BPyvQert.mjs} +5 -5
  157. package/.output/server/_ssr/{insights-DSnQTQw1.mjs → insights-dWeLneo1.mjs} +45 -191
  158. package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
  159. package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
  160. package/.output/server/_ssr/{insights-failures-rpc-Cxu3UtyB.mjs → insights-failures-rpc-D7M8-Et9.mjs} +11 -11
  161. package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
  162. package/.output/server/_ssr/{insights-recovery-rpc--c6kBp3k.mjs → insights-recovery-rpc-BUMK4m4H.mjs} +7 -7
  163. package/.output/server/_ssr/{insights-rpc-oTMaAqc1.mjs → insights-rpc-BZZ4U2Ll.mjs} +4 -4
  164. package/.output/server/_ssr/{insights-search-r-Z50f0Y.mjs → insights-search-Czi553oN.mjs} +6 -8
  165. package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
  166. package/.output/server/_ssr/{insights-usage-rpc-DoElOI5b.mjs → insights-usage-rpc-BXvUr-z6.mjs} +7 -7
  167. package/.output/server/_ssr/{insights-usage-rpc-B00vjt0a.mjs → insights-usage-rpc-HOr6mniz.mjs} +5 -5
  168. package/.output/server/_ssr/{insights-B9NvjAWc.mjs → insights-vmCmvfXx.mjs} +5 -5
  169. package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
  170. package/.output/server/_ssr/{insights_.distribution-CnYddZ2Y.mjs → insights_.distribution-B2dxcCd_.mjs} +2 -2
  171. package/.output/server/_ssr/{insights_.distribution-mpZ0wS_R.mjs → insights_.distribution-B5V_NbK4.mjs} +17 -16
  172. package/.output/server/_ssr/{insights_.distribution-B8AMBp-Q.mjs → insights_.distribution-DongF2jp.mjs} +5 -5
  173. package/.output/server/_ssr/{installations-BfhcY_XQ.mjs → installations-B7w4LGJp.mjs} +4 -4
  174. package/.output/server/_ssr/{installations-CWTRzcR7.mjs → installations-B84kSetd.mjs} +2 -2
  175. package/.output/server/_ssr/{installations-O6Jzc5PO.mjs → installations-bieZA3xt.mjs} +13 -13
  176. package/.output/server/_ssr/ios-devices-rpc-DOQg4dpb.mjs +137 -0
  177. package/.output/server/_ssr/iosDeviceCookie-DhWNFpC6.mjs +155 -0
  178. package/.output/server/_ssr/iosDeviceProfile-jC8w4zEF.mjs +176 -0
  179. package/.output/server/_ssr/iosDevices-B4kQLURA.mjs +113 -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-D4ZISXRZ.mjs +1517 -0
  183. package/.output/server/_ssr/native-builds-BU9Njiwm.mjs +696 -0
  184. package/.output/server/_ssr/native-builds-lEyKQemV.mjs +262 -0
  185. package/.output/server/_ssr/{native-builds-UIgRLMb8.mjs → native-builds-zpCsEYyA.mjs} +3 -3
  186. package/.output/server/_ssr/{native-builds_._buildId-DjUqI5sa.mjs → native-builds_._buildId-BJ4R32fq.mjs} +3 -3
  187. package/.output/server/_ssr/native-builds_._buildId-RHUotAYb.mjs +1148 -0
  188. package/.output/server/_ssr/native-builds_.devices-C0IlQkLv.mjs +10 -0
  189. package/.output/server/_ssr/native-builds_.devices-D1Ke-Fc-.mjs +820 -0
  190. package/.output/server/_ssr/nativeBuildDownloadLink-MCd5xUqP.mjs +96 -0
  191. package/.output/server/_ssr/nativeBuildInstall-DcsqDS-O.mjs +253 -0
  192. package/.output/server/_ssr/nativeBuilds-CRa36wNn.mjs +287 -0
  193. package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
  194. package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-D9CCkDjn.mjs} +7 -6
  195. package/.output/server/_ssr/publicConsoleBase-wTKw3_iB.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-PLyiDnas.mjs → release-adoption-rpc-C4G_d8qK.mjs} +9 -9
  198. package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
  199. package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-CJ2Shida.mjs} +4 -3
  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-C5j4CfGa.mjs → remote-config-1QZ0HgEu.mjs} +3 -3
  203. package/.output/server/_ssr/{remote-config-eNxv5Kzc.mjs → remote-config-CsbpqWAR.mjs} +24 -23
  204. package/.output/server/_ssr/{remote-config-tOdzsFMi.mjs → remote-config-DkgBxBka.mjs} +2 -2
  205. package/.output/server/_ssr/{remote-config-rpc-Cy4VwdMt.mjs → remote-config-rpc-KjJA9DC-.mjs} +5 -5
  206. package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
  207. package/.output/server/_ssr/{router-DaQ6OkIp.mjs → router-Dy3fmb8q.mjs} +137 -64
  208. package/.output/server/_ssr/{routes-Drni4c1E.mjs → routes-68rZQGee.mjs} +470 -474
  209. package/.output/server/_ssr/{routes-BYmUIYfN.mjs → routes-Ug9uqzob.mjs} +50 -18
  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-mZ_19Wt_.mjs → schema-migration-rpc-kntY9oPm.mjs} +4 -4
  213. package/.output/server/_ssr/{select-Cjrp1Sl9.mjs → select-BOKFFr_G.mjs} +12 -10
  214. package/.output/server/_ssr/{server-y3KoaSil.mjs → server-DetMvRBJ.mjs} +7 -7
  215. package/.output/server/_ssr/{sidebar-tRHVNWpo.mjs → sidebar-B46houn0.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-YrqCYfP-.mjs → switch-BMYzd71j.mjs} +4 -4
  219. package/.output/server/_ssr/{table-NHakBPSp.mjs → table-DWrYwJ_a.mjs} +2 -2
  220. package/.output/server/_ssr/tabs-DusHAcYy.mjs +45 -0
  221. package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
  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-CD1q5k0m.mjs +228 -0
  226. package/.output/server/index.mjs +503 -391
  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/ChannelBadge.tsx +9 -9
  231. package/src/components/ChannelPicker.tsx +227 -0
  232. package/src/components/DataTable.tsx +363 -0
  233. package/src/components/FoldedRows.tsx +219 -0
  234. package/src/components/HashValueDisplay.tsx +6 -3
  235. package/src/components/PlatformIcon.tsx +10 -0
  236. package/src/components/RelativeTime.tsx +31 -0
  237. package/src/components/RowReason.tsx +56 -0
  238. package/src/components/TargetDisplay.tsx +95 -0
  239. package/src/components/ThemeProvider.tsx +11 -2
  240. package/src/components/features/api-keys/ApiKeysPage.tsx +5 -3
  241. package/src/components/features/bundles/BundleMetadata.tsx +1 -1
  242. package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
  243. package/src/components/features/channels/ChannelManagementDialog.tsx +10 -11
  244. package/src/components/features/insights/AppUsage.tsx +3 -5
  245. package/src/components/features/insights/FailureReports.tsx +3 -2
  246. package/src/components/features/insights/InsightsControls.tsx +10 -69
  247. package/src/components/features/insights/InsightsOverview.tsx +7 -1
  248. package/src/components/features/insights/InsightsPageHeader.tsx +10 -15
  249. package/src/components/features/insights/ReleaseActivity.tsx +6 -2
  250. package/src/components/features/insights/ReleaseCombobox.tsx +1 -1
  251. package/src/components/features/insights/UpdateFailures.tsx +1 -0
  252. package/src/components/features/native-builds/BuiltInBundleCard.tsx +122 -61
  253. package/src/components/features/native-builds/CommitLink.tsx +3 -2
  254. package/src/components/features/native-builds/ImportBuild.tsx +1 -1
  255. package/src/components/features/native-builds/InstallCard.tsx +316 -91
  256. package/src/components/features/native-builds/IosDevicesPage.tsx +1100 -0
  257. package/src/components/features/native-builds/IosInstall.tsx +732 -0
  258. package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
  259. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +30 -6
  260. package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
  261. package/src/components/features/native-builds/NativeBuildsPage.tsx +94 -108
  262. package/src/components/features/native-builds/NativeBuildsTable.tsx +649 -323
  263. package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
  264. package/src/components/features/native-builds/PatchesCard.tsx +28 -19
  265. package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +5 -5
  266. package/src/components/features/native-builds/SandboxBadge.tsx +21 -0
  267. package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
  268. package/src/components/features/native-builds/ShortHash.tsx +6 -3
  269. package/src/components/features/native-builds/StoreSubmission.tsx +18 -12
  270. package/src/components/features/native-builds/playTracks.ts +7 -0
  271. package/src/components/features/releases/ReleaseEditorSheet.tsx +8 -6
  272. package/src/components/features/remote-config/PublishDialog.tsx +4 -1
  273. package/src/components/features/remote-config/VersionsCard.tsx +5 -2
  274. package/src/components/ui/alert-dialog.tsx +2 -2
  275. package/src/components/ui/badge.tsx +2 -0
  276. package/src/components/ui/button.tsx +11 -2
  277. package/src/components/ui/combobox.tsx +2 -2
  278. package/src/components/ui/dialog.tsx +3 -3
  279. package/src/components/ui/input.tsx +1 -1
  280. package/src/components/ui/select.tsx +15 -7
  281. package/src/components/ui/sheet.tsx +1 -1
  282. package/src/components/ui/sidebar.tsx +2 -2
  283. package/src/components/ui/slider.tsx +1 -1
  284. package/src/components/ui/sonner.tsx +3 -1
  285. package/src/components/ui/switch.tsx +1 -1
  286. package/src/components/ui/tabs.tsx +1 -1
  287. package/src/components/ui/textarea.tsx +1 -1
  288. package/src/index.ts +9 -0
  289. package/src/lib/api-rpc.ts +125 -35
  290. package/src/lib/api.ts +160 -16
  291. package/src/lib/constants.ts +15 -0
  292. package/src/lib/insights-search.ts +0 -3
  293. package/src/lib/ios-devices-api.ts +290 -0
  294. package/src/lib/ios-devices-rpc.ts +188 -0
  295. package/src/lib/native-builds.ts +261 -20
  296. package/src/lib/server/console-runtime.server.ts +9 -2
  297. package/src/lib/server/deviceProfileToken.ts +221 -0
  298. package/src/lib/server/foldedPage.ts +360 -0
  299. package/src/lib/server/iosDeviceCookie.ts +239 -0
  300. package/src/lib/server/iosDeviceProfile.ts +232 -0
  301. package/src/lib/server/iosDevices.ts +193 -0
  302. package/src/lib/server/listReleases.ts +101 -62
  303. package/src/lib/server/local-console.ts +1 -1
  304. package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
  305. package/src/lib/server/nativeBuildInstall.ts +502 -0
  306. package/src/lib/server/nativeBuilds.ts +314 -58
  307. package/src/lib/server/plistText.ts +17 -0
  308. package/src/lib/server/publicConsoleBase.ts +17 -0
  309. package/src/routeTree.gen.ts +129 -18
  310. package/src/routes/-native-builds-search.ts +52 -4
  311. package/src/routes/-releases-search.ts +63 -2
  312. package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
  313. package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
  314. package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
  315. package/src/routes/[_]hot-updater/devices/request.ts +28 -0
  316. package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
  317. package/src/routes/api/native-builds/$buildId/download.ts +22 -1
  318. package/src/routes/index.tsx +657 -577
  319. package/src/routes/insights.tsx +3 -5
  320. package/src/routes/insights_.distribution.tsx +2 -2
  321. package/src/routes/native-builds_.devices.tsx +21 -0
  322. package/src/styles.css +24 -0
  323. package/.output/public/assets/-native-builds-search-C-TGpFAm.js +0 -1
  324. package/.output/public/assets/EventDetails-Dl2RvPAk.js +0 -1
  325. package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
  326. package/.output/public/assets/InsightsPageHeader-DHhqY3DT.js +0 -1
  327. package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
  328. package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
  329. package/.output/public/assets/alert-dialog-BqYScr9y.js +0 -1
  330. package/.output/public/assets/api-P2g8dCNg.js +0 -1
  331. package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
  332. package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
  333. package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
  334. package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
  335. package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
  336. package/.output/public/assets/badge-DWFcDWho.js +0 -1
  337. package/.output/public/assets/check-CXVR3s3X.js +0 -1
  338. package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
  339. package/.output/public/assets/dialog-CNUPxNxH.js +0 -1
  340. package/.output/public/assets/dist-CPlO6ko9.js +0 -1
  341. package/.output/public/assets/empty-B3Uwdd6k.js +0 -1
  342. package/.output/public/assets/field-D-2-mnNh.js +0 -1
  343. package/.output/public/assets/history-DqHlgSuV.js +0 -1
  344. package/.output/public/assets/index-CqP5HPV6.js +0 -10
  345. package/.output/public/assets/input-group-D3OUBk4n.js +0 -1
  346. package/.output/public/assets/insights-B-0odqpt.js +0 -42
  347. package/.output/public/assets/insights-BSVGfxSL.js +0 -1
  348. package/.output/public/assets/insights-NK5B6ReS.js +0 -2
  349. package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
  350. package/.output/public/assets/insights-search-DghCbEnk.js +0 -1
  351. package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +0 -1
  352. package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
  353. package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
  354. package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
  355. package/.output/public/assets/installations-B674P5Z5.js +0 -2
  356. package/.output/public/assets/installations-BWxczZ2t.js +0 -1
  357. package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
  358. package/.output/public/assets/native-builds-BOC71grI.js +0 -1
  359. package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
  360. package/.output/public/assets/native-builds-DAy2678K.js +0 -1
  361. package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
  362. package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
  363. package/.output/public/assets/plus-BReVKct-.js +0 -1
  364. package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
  365. package/.output/public/assets/refresh-cw-B9HHjLej.js +0 -1
  366. package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
  367. package/.output/public/assets/remote-config-WjpozBG5.js +0 -1
  368. package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
  369. package/.output/public/assets/routes-BDdBIxYS.js +0 -1
  370. package/.output/public/assets/routes-CCD33Azv.js +0 -2
  371. package/.output/public/assets/search-BCel4Oy6.js +0 -1
  372. package/.output/public/assets/select-CBIU0_M1.js +0 -1
  373. package/.output/public/assets/sidebar-Di9SN47G.js +0 -3
  374. package/.output/public/assets/smartphone-CMaSy_ir.js +0 -1
  375. package/.output/public/assets/styles-uK-0vUMk.css +0 -2
  376. package/.output/public/assets/switch-BpdiHL_t.js +0 -1
  377. package/.output/public/assets/table-Bpy3SvSo.js +0 -1
  378. package/.output/public/assets/tabs-Xmt7tZeG.js +0 -1
  379. package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
  380. package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
  381. package/.output/server/_ssr/-native-builds-search-CwNcoXf4.mjs +0 -37
  382. package/.output/server/_ssr/RolloutPercentageBadge-CoBhJtv9.mjs +0 -21
  383. package/.output/server/_ssr/StoreSubmission-CPg_Rn5E.mjs +0 -139
  384. package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
  385. package/.output/server/_ssr/native-builds-BDcOlKnd.mjs +0 -510
  386. package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
  387. package/.output/server/_ssr/native-builds_._buildId-BjsdQO93.mjs +0 -813
  388. package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
  389. package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +0 -133
  390. package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +0 -22
  391. package/.output/server/_ssr/tabs-BgTTFotk.mjs +0 -45
  392. package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
  393. package/src/lib/server/nativeBuildQr.ts +0 -73
  394. package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
@@ -0,0 +1,1148 @@
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, G as CircleCheck, J as ChevronRight, M as HardDrive, N as GitBranch, S as PackageOpen, U as CircleSlash, Y as ChevronLeft, _ as RefreshCw, i as TriangleAlert, j as History, nt as ArrowUpRight, u as Smartphone } from "../_libs/lucide-react.mjs";
4
+ import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, t as Button$1 } from "./sidebar-B46houn0.mjs";
5
+ import { a as CardHeader, n as CardContent, o as CardTitle, t as Card } from "./card-DEItjgKG.mjs";
6
+ import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-DrfbN1n0.mjs";
7
+ import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-DWrYwJ_a.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-opJc9Fjw.mjs";
11
+ import { r as NUMERIC_COHORT_SIZE } from "./dist-CiOq3ygH.mjs";
12
+ import { A as nativeBuildSignedDownloadUrl, C as nativeBuildFileName, E as nativeBuildLabel, F as shellQuote, S as nativeBuildDownloadPath, _ as maskIosUdid, j as platformLabel, l as SANDBOX_NO_PATCH_BASE, m as formatByteSize, v as nativeBuildArtifacts, w as nativeBuildInstallCommand } from "./native-builds-lEyKQemV.mjs";
13
+ import { a as useConfigQuery, d as useNativeBuildDownloadLinkQuery, f as useNativeBuildDownloadUrlQuery, h as useNativeBuildPatchesQuery, l as useMarkNativeBuildMutation, u as useNativeBuildDetailQuery } from "./api-xOHZxbzu.mjs";
14
+ import { t as PlatformIcon } from "./PlatformIcon-C22qEcwo.mjs";
15
+ import { t as BundleIdDisplay } from "./BundleIdDisplay-By3CbbRM.mjs";
16
+ import { t as ChannelBadge } from "./ChannelBadge-CDup7l56.mjs";
17
+ import { n as require_dayjs_min } from "../_libs/dayjs.mjs";
18
+ import { i as TargetDisplay, n as CopyableText, r as NoValue, t as BuildKeyDisplay } from "./TargetDisplay-BtE5vntq.mjs";
19
+ import { n as StoreSubmissionBadge, r as isSubmitted, t as SandboxBadge } from "./SandboxBadge-DFbUYwhO.mjs";
20
+ import { l as useIosDevice, m as useNativeBuildIpaDevicesQuery, n as IosInstall } from "./IosInstall-BAFhW7Q9.mjs";
21
+ import { t as Route } from "./native-builds_._buildId-BJ4R32fq.mjs";
22
+ import { n as TimestampDisplay, r as getCommitUrl, t as RolloutPercentageBadge } from "./RolloutPercentageBadge-Dwx7dEeQ.mjs";
23
+ import { t as QrCode } from "./QrCode-DWshAW81.mjs";
24
+ //#region node_modules/.nitro/vite/services/ssr/assets/native-builds_._buildId-RHUotAYb.js
25
+ var import_react = /* @__PURE__ */ __toESM(require_react());
26
+ var import_jsx_runtime = require_jsx_runtime();
27
+ var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min());
28
+ /**
29
+ * A hash shortened to its prefix, as git shows a commit: never cut in the
30
+ * middle, the full value on hover, and copied on click.
31
+ */
32
+ function ShortHash({ value, length, shown = value.slice(0, length), label }) {
33
+ const copy = async () => {
34
+ try {
35
+ await navigator.clipboard.writeText(value);
36
+ toast.success("Copied to clipboard", { description: value });
37
+ } catch {
38
+ toast.error(`Could not copy the ${label}`);
39
+ }
40
+ };
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
42
+ "aria-label": `Copy the ${label} ${value}`,
43
+ 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",
44
+ onClick: (event) => {
45
+ event.stopPropagation();
46
+ copy();
47
+ },
48
+ title: value,
49
+ translate: "no",
50
+ type: "button",
51
+ children: shown
52
+ });
53
+ }
54
+ /**
55
+ * A build's commit as git shows it, its first 7 characters: a link to the
56
+ * commit when `console.gitUrl` is set, else a button that copies the full
57
+ * SHA. The full SHA shows on hover either way.
58
+ */
59
+ function CommitLink({ hash }) {
60
+ const config = useConfigQuery();
61
+ if (hash === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NoValue, {});
62
+ const url = getCommitUrl(config.data?.console.gitUrl, hash);
63
+ return url === null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShortHash, {
64
+ label: "commit",
65
+ length: 7,
66
+ value: hash
67
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
68
+ 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",
69
+ href: url,
70
+ onClick: (event) => event.stopPropagation(),
71
+ rel: "noreferrer",
72
+ target: "_blank",
73
+ title: hash,
74
+ translate: "no",
75
+ children: hash.slice(0, 7)
76
+ });
77
+ }
78
+ function Row({ label, children }) {
79
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
80
+ className: "grid gap-1 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4",
81
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
82
+ className: "text-xs font-medium text-muted-foreground",
83
+ children: label
84
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
85
+ className: "min-w-0 text-sm",
86
+ children
87
+ })]
88
+ });
89
+ }
90
+ /** Marks or clears the build where the card says what the mark does. */
91
+ function StoreBuildAction({ detail }) {
92
+ const { build } = detail;
93
+ const mark = useMarkNativeBuildMutation();
94
+ if (build.is_sandbox) return null;
95
+ const storeBuild = !build.is_store_build;
96
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
97
+ className: "min-h-11 shrink-0 sm:min-h-8",
98
+ disabled: mark.isPending,
99
+ onClick: () => mark.mutate({
100
+ id: build.id,
101
+ storeBuild
102
+ }, {
103
+ onSuccess: () => {
104
+ toast.success(storeBuild ? "Marked as the store build" : "Mark cleared");
105
+ },
106
+ onError: (error) => {
107
+ toast.error("Could not change the mark", { description: error.message });
108
+ }
109
+ }),
110
+ size: "sm",
111
+ type: "button",
112
+ variant: "outline",
113
+ children: storeBuild ? "Mark as store build" : "Clear mark"
114
+ });
115
+ }
116
+ /**
117
+ * Which build new deploys patch from: this one, as the store build or as the
118
+ * newest with no mark, or another, which it links to. A sandbox build is never
119
+ * one, whatever its scope holds.
120
+ */
121
+ function BaselineStatus({ detail }) {
122
+ const { build, newestInScope, storeBuildInScope } = detail;
123
+ if (build.is_sandbox) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
124
+ className: "flex items-start gap-2 rounded-md border bg-muted/40 p-3 text-xs",
125
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CircleSlash, {
126
+ "aria-hidden": "true",
127
+ className: "mt-0.5 size-3.5 shrink-0 text-muted-foreground"
128
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
130
+ className: "font-medium",
131
+ children: "No patch base."
132
+ }),
133
+ " ",
134
+ SANDBOX_NO_PATCH_BASE
135
+ ] })]
136
+ });
137
+ const base = storeBuildInScope ?? newestInScope;
138
+ if (base === null) return null;
139
+ const isBase = base.id === build.id;
140
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
141
+ 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",
142
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
143
+ className: "flex items-start gap-2",
144
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(isBase ? CircleCheck : History, {
145
+ "aria-hidden": "true",
146
+ className: "mt-0.5 size-3.5 shrink-0 text-muted-foreground"
147
+ }), storeBuildInScope?.id === build.id ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
148
+ className: "font-medium",
149
+ children: "Store build."
150
+ }), " 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", {
151
+ className: "font-medium",
152
+ children: "Current baseline."
153
+ }), " 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: [
154
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
155
+ className: "font-medium",
156
+ children: "Not the base."
157
+ }),
158
+ " New deploys patch from",
159
+ " ",
160
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
161
+ className: "inline-flex items-center gap-0.5 font-medium underline underline-offset-4",
162
+ params: { buildId: base.id },
163
+ to: "/native-builds/$buildId",
164
+ children: [nativeBuildLabel(base) ?? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
165
+ platformLabel(base.platform),
166
+ " ",
167
+ nativeBuildArtifacts[base.artifact_kind].label,
168
+ " ·",
169
+ " ",
170
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: base.id })
171
+ ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, {
172
+ "aria-hidden": "true",
173
+ className: "size-3"
174
+ })]
175
+ }),
176
+ ", so this one gets no new patches."
177
+ ] })]
178
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreBuildAction, { detail })]
179
+ });
180
+ }
181
+ /**
182
+ * The build's built-in bundle: the bundle every install runs until its
183
+ * first OTA, and the base that OTA's patch starts from.
184
+ */
185
+ function BuiltInBundleCard({ detail }) {
186
+ const { build, builtInBundle, channel } = detail;
187
+ const childCount = builtInBundle?.childCount ?? 0;
188
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
189
+ className: "overflow-hidden shadow-sm",
190
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
191
+ className: "border-b px-4 py-3",
192
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
193
+ className: "text-sm",
194
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Built-in bundle" })
195
+ })
196
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
197
+ className: "flex flex-col gap-4 p-4 sm:p-6",
198
+ children: [
199
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
200
+ className: "flex flex-col gap-3",
201
+ children: [
202
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
203
+ label: "Bundle ID",
204
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BundleIdDisplay, { bundleId: build.min_bundle_id })
205
+ }),
206
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
207
+ label: "OTAs patching from it",
208
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
209
+ className: "tabular-nums",
210
+ children: childCount === 1 ? "1 bundle" : `${childCount} bundles`
211
+ })
212
+ }),
213
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
214
+ label: "Scope",
215
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
216
+ className: "flex flex-wrap items-center gap-1.5",
217
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
218
+ "aria-label": `Show the builds that embed ${channel}`,
219
+ className: "relative rounded-md after:absolute after:-inset-x-1 after:-inset-y-[11px] sm:after:hidden",
220
+ search: { channel },
221
+ to: "/native-builds",
222
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelBadge, { channel })
223
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
224
+ className: "text-xs",
225
+ children: platformLabel(build.platform)
226
+ })]
227
+ })
228
+ }),
229
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
230
+ label: "Target",
231
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
232
+ className: "text-xs",
233
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TargetDisplay, {
234
+ appVersion: build.app_version,
235
+ fingerprintHash: build.fingerprint_hash,
236
+ nativeAppVersion: build.native_app_version
237
+ })
238
+ })
239
+ }),
240
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
241
+ label: "Build key",
242
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
243
+ className: "text-xs",
244
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildKeyDisplay, { value: build.build_key })
245
+ })
246
+ }),
247
+ !build.build_number ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
248
+ label: "Build",
249
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
250
+ className: "font-mono text-xs tabular-nums",
251
+ translate: "no",
252
+ children: build.build_number
253
+ })
254
+ }),
255
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
256
+ label: "Commit",
257
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommitLink, { hash: build.git_commit_hash })
258
+ }),
259
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Row, {
260
+ label: "Created",
261
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, {
262
+ format: "both",
263
+ uuid: build.id
264
+ })
265
+ })
266
+ ]
267
+ }),
268
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaselineStatus, { detail }),
269
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
270
+ className: "text-xs text-muted-foreground",
271
+ 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."
272
+ })
273
+ ]
274
+ })]
275
+ });
276
+ }
277
+ var IPA_LIMIT = "The .ipa installs only on devices its signing profile allows (development or ad hoc)";
278
+ /**
279
+ * What an artifact installs on, where the file alone isn't enough: the card
280
+ * says it once, under the QR code, or without one, in its place. A sandbox
281
+ * build gets no TestFlight advice.
282
+ */
283
+ var installLimit = (build) => {
284
+ switch (build.artifact_kind) {
285
+ case "ipa": return build.is_sandbox ? `${IPA_LIMIT}.` : `${IPA_LIMIT}; an App Store export reaches testers through TestFlight.`;
286
+ case "aab": return "The .aab installs through Google Play or bundletool, not from the file.";
287
+ default: return;
288
+ }
289
+ };
290
+ /**
291
+ * What scanning a build's QR code gets, by its artifact. The install steps
292
+ * beside it add only what this doesn't say, so the card says each thing once.
293
+ */
294
+ var qrCaption = (build) => {
295
+ switch (build.artifact_kind) {
296
+ case "apk": return "Scan with an Android phone's camera, then open the APK to install it.";
297
+ case "app": return "Scan to download the .app.zip on a Mac.";
298
+ default: return `Scan to download. ${installLimit(build)}`;
299
+ }
300
+ };
301
+ /**
302
+ * An IPA's QR code holds this page rather than a file: the iPhone that scans it
303
+ * checks whether the IPA lists it before anything downloads, and installs here.
304
+ */
305
+ function ScannablePage() {
306
+ const { origin, pathname } = window.location;
307
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
308
+ className: "flex flex-col items-center gap-2",
309
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
310
+ className: "size-48",
311
+ label: "Open this page on an iPhone",
312
+ value: `${origin}${pathname}`
313
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
314
+ className: "max-w-56 text-center text-xs text-muted-foreground",
315
+ children: "Scan with an iPhone to install this build from here. The phone signs in to the Console first."
316
+ })]
317
+ });
318
+ }
319
+ /** A QR code of the build's download URL, with what scanning it gets. */
320
+ function ScannableUrl({ build, url, note }) {
321
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
322
+ className: "flex flex-col items-center gap-2",
323
+ children: [
324
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
325
+ className: "size-48",
326
+ label: `Download ${nativeBuildFileName(build)}`,
327
+ value: url
328
+ }),
329
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
330
+ className: "max-w-56 text-center text-xs text-muted-foreground",
331
+ children: qrCaption(build)
332
+ }),
333
+ note ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
334
+ className: "max-w-56 text-center text-xs text-muted-foreground",
335
+ children: note
336
+ }) : null
337
+ ]
338
+ });
339
+ }
340
+ function QrProblem({ message }) {
341
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
342
+ variant: "destructive",
343
+ children: [
344
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
345
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "The download link couldn't be created" }),
346
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: message })
347
+ ]
348
+ });
349
+ }
350
+ /**
351
+ * The QR code when the Console can't sign a link: the storage's URL, which a
352
+ * phone opens without the Console's sign-in, but only until it expires.
353
+ */
354
+ function StorageQrCode({ build }) {
355
+ const downloadUrl = useNativeBuildDownloadUrlQuery(build.id);
356
+ const url = downloadUrl.data?.url;
357
+ if (url === null) {
358
+ const limits = installLimit(build);
359
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
360
+ className: "flex flex-col gap-2 text-xs text-muted-foreground",
361
+ 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]
362
+ });
363
+ }
364
+ if (url !== void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScannableUrl, {
365
+ build,
366
+ note: "This link expires. If the download fails, reload this page.",
367
+ url
368
+ });
369
+ return downloadUrl.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrProblem, { message: downloadUrl.error.message }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "size-48" });
370
+ }
371
+ /**
372
+ * The file's download, as an outline button where people use the file itself.
373
+ * An IPA's is a ghost button in the same place: a computer's browser installs
374
+ * nothing from it, so it never competes with the card's install path.
375
+ */
376
+ function DownloadButton({ build, href }) {
377
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
378
+ className: buttonVariants({
379
+ className: "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
380
+ variant: build.artifact_kind === "ipa" ? "ghost" : "outline"
381
+ }),
382
+ download: true,
383
+ href,
384
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Download, { "data-icon": "inline-start" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
385
+ className: "text-left [overflow-wrap:anywhere]",
386
+ children: ["Download ", nativeBuildFileName(build)]
387
+ })]
388
+ });
389
+ }
390
+ /**
391
+ * A build a store took installs from the store, so the card leads with the
392
+ * store's badge, says how testers get it, and keeps the file's download, with
393
+ * no QR code or signed link to ask for.
394
+ */
395
+ function StoreInstallCard({ build }) {
396
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
397
+ className: "overflow-hidden shadow-sm",
398
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
399
+ className: "border-b px-4 py-3",
400
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
401
+ className: "text-sm",
402
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Install" })
403
+ })
404
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
405
+ className: "flex min-w-0 flex-col gap-4 p-4 sm:p-6",
406
+ children: [
407
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreSubmissionBadge, {
408
+ build,
409
+ withTime: true
410
+ }),
411
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallSteps, { build }),
412
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DownloadButton, {
413
+ build,
414
+ href: nativeBuildDownloadPath(build.id)
415
+ })
416
+ ]
417
+ })]
418
+ });
419
+ }
420
+ /**
421
+ * How else the artifact installs, beside its QR code's caption and its
422
+ * download: none of it repeats the caption.
423
+ */
424
+ function InstallSteps({ build }) {
425
+ switch (build.artifact_kind) {
426
+ case "apk": return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
427
+ className: "flex min-w-0 flex-col gap-2",
428
+ children: [
429
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
430
+ className: "text-xs text-muted-foreground",
431
+ children: "Your browser needs the \"Install unknown apps\" permission."
432
+ }),
433
+ build.is_sandbox ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
434
+ className: "text-xs text-muted-foreground",
435
+ children: "Its .sandbox ID installs it beside a Play copy."
436
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
437
+ className: "text-xs text-muted-foreground",
438
+ 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."
439
+ }),
440
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
441
+ className: "text-xs text-muted-foreground",
442
+ children: "On an emulator or a phone over USB, install and open it from your project:"
443
+ }),
444
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
445
+ label: "the install command",
446
+ value: nativeBuildInstallCommand(build)
447
+ })
448
+ ]
449
+ });
450
+ case "app": return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
451
+ className: "flex min-w-0 flex-col gap-2",
452
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
453
+ className: "text-xs text-muted-foreground",
454
+ children: "It runs only in the iOS Simulator. In your project, install and open it on the booted one:"
455
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
456
+ label: "the install command",
457
+ value: nativeBuildInstallCommand(build)
458
+ })]
459
+ });
460
+ case "aab": return isSubmitted(build) ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
461
+ className: "text-xs text-muted-foreground",
462
+ 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."]
463
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
464
+ className: "flex min-w-0 flex-col gap-2",
465
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
466
+ className: "text-xs text-muted-foreground",
467
+ children: "For testers, build and release to internal testing:"
468
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
469
+ label: "the Google Play command",
470
+ value: "npx hot-updater google-play upload"
471
+ })]
472
+ });
473
+ case "ipa": return isSubmitted(build) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
474
+ className: "text-xs text-muted-foreground",
475
+ children: "Internal testers install it from the TestFlight app once App Store Connect has processed it."
476
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
477
+ className: "text-xs text-muted-foreground",
478
+ children: "Over USB, Xcode or Apple Configurator installs it."
479
+ });
480
+ }
481
+ }
482
+ /**
483
+ * The signed link to copy, which a script or a teammate uses without signing
484
+ * in. A local Console has none, and says nothing about it on every build.
485
+ */
486
+ function SignedLink({ link, url }) {
487
+ if (link?.status === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
488
+ className: "text-xs text-muted-foreground",
489
+ role: "status",
490
+ children: [
491
+ "Set ",
492
+ link.secretName,
493
+ " on the Console to create links."
494
+ ]
495
+ });
496
+ if (link?.status !== "issued" || url === null) return null;
497
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
498
+ className: "flex min-w-0 flex-col gap-2",
499
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
500
+ label: "the download link",
501
+ value: url
502
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
503
+ className: "text-xs text-muted-foreground",
504
+ children: [
505
+ "Anyone with this link can download this build until",
506
+ " ",
507
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
508
+ className: "whitespace-nowrap",
509
+ children: [(0, import_dayjs_min.default)(link.expiresAt).format("YYYY-MM-DD"), "."]
510
+ })
511
+ ]
512
+ })]
513
+ });
514
+ }
515
+ /**
516
+ * Installs one native build: an IPA or AAB a store took, from the store, which
517
+ * its badge names, with the file's download; an IPA
518
+ * on the iPhone that opens this page, whose QR code on any other screen holds
519
+ * this page; every other artifact by a QR code of its signed link, which a phone
520
+ * without a session scans, and by download here or the link itself; an APK or a
521
+ * simulator app also with `native-build install`, and an IPA's or an AAB's
522
+ * testers through its store. Where the Console can't sign, the QR code holds the
523
+ * storage's URL and the download asks for the session.
524
+ */
525
+ function InstallCard({ build }) {
526
+ 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, { build });
527
+ }
528
+ /**
529
+ * On the iPhone, what installs the IPA from a computer, closed under the one
530
+ * action this phone takes: over USB, the download, and its link.
531
+ */
532
+ function OtherWaysToInstall({ children }) {
533
+ const [open, setOpen] = (0, import_react.useState)(false);
534
+ const id = (0, import_react.useId)();
535
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
536
+ className: "flex min-w-0 flex-col gap-3 border-t pt-3",
537
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
538
+ "aria-controls": id,
539
+ "aria-expanded": open,
540
+ 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",
541
+ onClick: () => setOpen((value) => !value),
542
+ type: "button",
543
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, {
544
+ "aria-hidden": "true",
545
+ className: "size-3.5 shrink-0 transition-transform group-aria-expanded/other:rotate-90 motion-reduce:transition-none"
546
+ }), "Other ways to install"]
547
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
548
+ hidden: !open,
549
+ id,
550
+ children
551
+ })]
552
+ });
553
+ }
554
+ function FileInstallCard({ build }) {
555
+ const link = useNativeBuildDownloadLinkQuery(build.id);
556
+ const signedUrl = link.data?.status === "issued" ? nativeBuildSignedDownloadUrl(window.location, build.id, link.data.token) : null;
557
+ const device = useIosDevice();
558
+ const ipa = build.artifact_kind === "ipa";
559
+ const onPhone = ipa && device?.ios === true;
560
+ const otherWays = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
561
+ className: "flex min-w-0 flex-col gap-4",
562
+ children: [
563
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallSteps, { build }),
564
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DownloadButton, {
565
+ build,
566
+ href: signedUrl ?? nativeBuildDownloadPath(build.id)
567
+ }),
568
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SignedLink, {
569
+ link: link.data,
570
+ url: signedUrl
571
+ })
572
+ ]
573
+ });
574
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
575
+ className: "overflow-hidden shadow-sm",
576
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
577
+ className: "border-b px-4 py-3",
578
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
579
+ className: "text-sm",
580
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Install" })
581
+ })
582
+ }), onPhone ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
583
+ className: "flex min-w-0 flex-col gap-4 p-4 sm:p-6",
584
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(IosInstall, {
585
+ build,
586
+ device
587
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OtherWaysToInstall, { children: otherWays })]
588
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
589
+ className: "grid gap-6 p-4 sm:grid-cols-[12rem_minmax(0,1fr)] sm:p-6",
590
+ children: [ipa && signedUrl !== null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScannablePage, {}) : signedUrl !== null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScannableUrl, {
591
+ build,
592
+ url: signedUrl
593
+ }) : 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]
594
+ })]
595
+ });
596
+ }
597
+ /**
598
+ * The devices an ad hoc IPA installs on, read from its signing profile: each
599
+ * by the registry's name when the registry knows it, else as an unknown
600
+ * device, over its UDID's last characters, which copy the whole UDID. Read
601
+ * only: the IPA decides, and a new build is what adds a device.
602
+ */
603
+ function IpaDevicesCard({ build }) {
604
+ const query = useNativeBuildIpaDevicesQuery(build.id);
605
+ const result = query.data;
606
+ if (result?.status === "store" || result?.status === "enterprise") return null;
607
+ const devices = result?.status === "listed" ? result.devices : null;
608
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
609
+ className: "overflow-hidden shadow-sm",
610
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardHeader, {
611
+ className: "flex flex-row items-center gap-2 border-b px-4 py-3",
612
+ children: [
613
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
614
+ className: "text-sm",
615
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Devices in this build" })
616
+ }),
617
+ devices === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
618
+ className: "text-xs tabular-nums text-muted-foreground",
619
+ children: devices.length
620
+ }),
621
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
622
+ className: buttonVariants({
623
+ className: "ml-auto h-11 sm:h-7",
624
+ size: "sm",
625
+ variant: "ghost"
626
+ }),
627
+ to: "/native-builds/devices",
628
+ children: "iOS devices"
629
+ })
630
+ ]
631
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
632
+ className: "p-0",
633
+ children: query.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
634
+ className: "flex flex-col gap-2 p-4",
635
+ children: [
636
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
637
+ className: "sr-only",
638
+ children: "Reading this IPA's devices"
639
+ }),
640
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-8 w-full" }),
641
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-8 w-full" })
642
+ ]
643
+ }) : query.isError || result?.status === "unavailable" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
644
+ className: "flex flex-wrap items-center gap-3 p-4 text-xs text-muted-foreground",
645
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
646
+ className: "min-w-0 flex-1",
647
+ children: "The Console couldn't read this IPA's devices from storage."
648
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
649
+ className: "h-11 sm:h-7",
650
+ onClick: () => void query.refetch(),
651
+ size: "sm",
652
+ variant: "outline",
653
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
654
+ })]
655
+ }) : devices?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
656
+ className: "p-4 text-xs text-muted-foreground",
657
+ children: "This IPA lists no devices."
658
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", {
659
+ "aria-label": "Devices in this build",
660
+ className: "divide-y",
661
+ children: devices?.map((device) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", {
662
+ className: "flex min-h-11 min-w-0 items-center gap-3 px-4 py-2 text-sm",
663
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, {
664
+ "aria-hidden": "true",
665
+ className: "size-4 shrink-0 text-muted-foreground"
666
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
667
+ className: "flex min-w-0 flex-col items-start",
668
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
669
+ className: device.name === null ? "truncate text-muted-foreground" : "truncate",
670
+ children: device.name ?? "Unknown device"
671
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
672
+ className: "text-muted-foreground",
673
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShortHash, {
674
+ label: "UDID",
675
+ shown: maskIosUdid(device.udid),
676
+ value: device.udid
677
+ })
678
+ })]
679
+ })]
680
+ }, device.udid))
681
+ })
682
+ })]
683
+ });
684
+ }
685
+ var BUNDLE_DIFFING_GUIDE_URL = "https://hot-updater.dev/docs/guides/bundle-diffing#first-ota-update";
686
+ /**
687
+ * The bundles that patch from the build's built-in bundle, newest first, a
688
+ * page at a time: the newest page comes with the build's page, and others
689
+ * are read as they are asked for.
690
+ */
691
+ function PatchesCard({ detail, page, onPage }) {
692
+ const paged = page.before !== void 0 || page.after !== void 0;
693
+ const query = useNativeBuildPatchesQuery(detail.build.min_bundle_id, page, paged);
694
+ const patches = paged ? query.data : detail.patches;
695
+ const { next, previous } = patches ?? {};
696
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
697
+ className: "overflow-hidden shadow-sm",
698
+ id: "patches",
699
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
700
+ className: "border-b px-4 py-3",
701
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
702
+ className: "text-sm",
703
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Patches from this build" })
704
+ })
705
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardContent, {
706
+ className: "p-0",
707
+ children: [paged && query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
708
+ className: "p-4",
709
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
710
+ variant: "destructive",
711
+ children: [
712
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
713
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Patches couldn't be loaded" }),
714
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: query.error.message }),
715
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
716
+ onClick: () => void query.refetch(),
717
+ size: "xs",
718
+ variant: "outline",
719
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
720
+ }) })
721
+ ]
722
+ })
723
+ }) : patches === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
724
+ className: "flex flex-col gap-2 p-4",
725
+ children: [
726
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
727
+ className: "sr-only",
728
+ children: "Loading patches"
729
+ }),
730
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-4 w-full" }),
731
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-4 w-2/3" })
732
+ ]
733
+ }) : patches.data.length === 0 ? paged ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Empty, {
734
+ className: "py-10",
735
+ 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, {
736
+ className: "min-h-11 sm:min-h-8",
737
+ onClick: () => onPage({}),
738
+ variant: "outline",
739
+ children: "Show the newest patches"
740
+ })]
741
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Empty, {
742
+ className: "py-10",
743
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EmptyHeader, { children: [
744
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyMedia, {
745
+ variant: "icon",
746
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GitBranch, {})
747
+ }),
748
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyTitle, { children: "No patches from this build" }),
749
+ /* @__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: [
750
+ "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",
751
+ " ",
752
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
753
+ className: "font-mono",
754
+ children: "patch"
755
+ }),
756
+ " in",
757
+ " ",
758
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
759
+ className: "font-mono",
760
+ children: "hot-updater.config.ts"
761
+ }),
762
+ "."
763
+ ] }) })
764
+ ] }), detail.build.is_sandbox ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
765
+ className: buttonVariants({
766
+ className: "min-h-11 sm:min-h-8",
767
+ variant: "outline"
768
+ }),
769
+ href: BUNDLE_DIFFING_GUIDE_URL,
770
+ rel: "noreferrer",
771
+ target: "_blank",
772
+ children: ["Bundle diffing guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
773
+ }) })]
774
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Table, {
775
+ "aria-busy": paged && query.isPlaceholderData,
776
+ "aria-label": "Patches from this build",
777
+ className: "table-fixed",
778
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
779
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Target bundle" }),
780
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
781
+ className: "w-28",
782
+ children: "Patch size"
783
+ }),
784
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
785
+ className: "hidden w-32 sm:table-cell",
786
+ children: "Created"
787
+ })
788
+ ] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableBody, { children: patches.data.map((patch) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
789
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
790
+ className: "py-3 whitespace-normal",
791
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
792
+ className: "block font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline",
793
+ search: { bundleId: patch.bundleId },
794
+ title: patch.bundleId,
795
+ to: "/",
796
+ translate: "no",
797
+ children: patch.bundleId
798
+ })
799
+ }),
800
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
801
+ className: "text-xs tabular-nums",
802
+ children: formatByteSize(patch.byteSize)
803
+ }),
804
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
805
+ className: "hidden sm:table-cell",
806
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: patch.bundleId })
807
+ })
808
+ ] }, patch.bundleId)) })]
809
+ }), next !== void 0 || previous !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("nav", {
810
+ "aria-label": "Patch pages",
811
+ className: "flex items-center justify-end gap-2 border-t px-4 py-2",
812
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
813
+ className: "min-h-11 sm:min-h-7",
814
+ disabled: previous === void 0 || paged && query.isPlaceholderData,
815
+ onClick: () => onPage({ after: previous }),
816
+ size: "sm",
817
+ variant: "ghost",
818
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { "data-icon": "inline-start" }), "Newer"]
819
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
820
+ className: "min-h-11 sm:min-h-7",
821
+ disabled: next === void 0 || paged && query.isPlaceholderData,
822
+ onClick: () => onPage({ before: next }),
823
+ size: "sm",
824
+ variant: "ghost",
825
+ children: ["Older", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, { "data-icon": "inline-end" })]
826
+ })]
827
+ }) : null]
828
+ })]
829
+ });
830
+ }
831
+ /**
832
+ * How an install of the build downloads `bundleId` as its first OTA: as the
833
+ * patch from the built-in bundle when one exists, else the full bundle. The
834
+ * newest page of patches decides it for every bundle down to the page's
835
+ * oldest; an older bundle is unknown only when the page is full.
836
+ */
837
+ var firstDownloadOf = (patches, bundleId) => {
838
+ const patch = patches.data.find((row) => row.bundleId === bundleId);
839
+ if (patch !== void 0) return {
840
+ kind: "patch",
841
+ byteSize: patch.byteSize
842
+ };
843
+ const oldest = patches.data.at(-1)?.bundleId;
844
+ return patches.next !== void 0 && oldest !== void 0 && bundleId < oldest ? { kind: "unknown" } : { kind: "full" };
845
+ };
846
+ function FirstDownloadCell({ download }) {
847
+ switch (download.kind) {
848
+ case "patch": return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
849
+ className: "text-xs",
850
+ children: [
851
+ "Patch",
852
+ " ",
853
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
854
+ className: "text-muted-foreground tabular-nums",
855
+ children: [
856
+ "(",
857
+ formatByteSize(download.byteSize),
858
+ ")"
859
+ ]
860
+ })
861
+ ]
862
+ });
863
+ case "full": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
864
+ className: "text-xs text-muted-foreground",
865
+ children: "Full bundle"
866
+ });
867
+ case "unknown": return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
868
+ className: "text-xs underline-offset-4 hover:underline",
869
+ href: "#patches",
870
+ children: "See patches"
871
+ });
872
+ }
873
+ }
874
+ /**
875
+ * What the update check offers an install of the build now: its scope's
876
+ * catalog at the build's app version, down to the built-in bundle, newest
877
+ * first. It is the catalog of now, not the history.
878
+ */
879
+ function ServedNowCard({ detail }) {
880
+ const { build, channel, servedNow, patches, catalogScopeKey } = detail;
881
+ const firstOta = servedNow.find(({ rolloutCohortCount, targetCohorts }) => rolloutCohortCount > 0 || targetCohorts.length > 0)?.bundleId;
882
+ const missingPatch = build.is_store_build && firstOta !== void 0 && firstOta !== null && firstDownloadOf(patches, firstOta).kind === "full" ? [
883
+ "npx hot-updater patch",
884
+ `-p ${build.platform}`,
885
+ `-c ${shellQuote(channel)}`,
886
+ `-b ${shellQuote(firstOta)}`,
887
+ `--base-artifact-id ${shellQuote(build.min_bundle_id)}`
888
+ ].join(" ") : null;
889
+ const scopeLink = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
890
+ className: "inline-flex items-center gap-0.5 underline-offset-4 hover:underline",
891
+ search: { scopeKey: catalogScopeKey },
892
+ to: "/",
893
+ children: ["All releases in this scope", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, {
894
+ "aria-hidden": "true",
895
+ className: "size-3"
896
+ })]
897
+ });
898
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
899
+ className: "overflow-hidden shadow-sm",
900
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
901
+ className: "border-b px-4 py-3",
902
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
903
+ className: "text-sm",
904
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Served now" })
905
+ })
906
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
907
+ className: "p-0",
908
+ children: servedNow.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Empty, {
909
+ className: "py-10",
910
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EmptyHeader, { children: [
911
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyMedia, {
912
+ variant: "icon",
913
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PackageOpen, {})
914
+ }),
915
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyTitle, { children: "No OTA for this build yet" }),
916
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EmptyDescription, { children: [
917
+ "No release in this build's scope is newer than its built-in bundle. Deploy one with",
918
+ " ",
919
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
920
+ className: "font-mono",
921
+ children: "hot-updater deploy"
922
+ }),
923
+ ", and it shows here."
924
+ ] })
925
+ ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
926
+ className: buttonVariants({
927
+ className: "min-h-11 sm:min-h-8",
928
+ variant: "outline"
929
+ }),
930
+ search: { scopeKey: catalogScopeKey },
931
+ to: "/",
932
+ children: "All releases in this scope"
933
+ }) })]
934
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
935
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Table, {
936
+ "aria-label": "Served now",
937
+ className: "table-fixed",
938
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
939
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Bundle" }),
940
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
941
+ className: "hidden w-40 md:table-cell",
942
+ children: "Rollout"
943
+ }),
944
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
945
+ className: "hidden w-32 sm:table-cell",
946
+ children: "Created"
947
+ }),
948
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
949
+ className: "w-32",
950
+ children: "First OTA download"
951
+ })
952
+ ] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableBody, { children: servedNow.map((release) => {
953
+ const bundleId = release.bundleId;
954
+ const percentage = release.rolloutCohortCount / NUMERIC_COHORT_SIZE * 100;
955
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
956
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
957
+ className: "py-3 whitespace-normal",
958
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
959
+ className: "flex min-w-0 flex-col gap-1",
960
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
961
+ className: "font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline",
962
+ search: { releaseId: release.releaseId },
963
+ title: bundleId,
964
+ to: "/",
965
+ translate: "no",
966
+ children: bundleId
967
+ }), release.message ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
968
+ className: "text-xs text-muted-foreground",
969
+ children: release.message
970
+ }) : null]
971
+ })
972
+ }),
973
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
974
+ className: "hidden md:table-cell",
975
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
976
+ className: "flex flex-wrap gap-1",
977
+ children: [release.targetCohorts.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
978
+ variant: "secondary",
979
+ children: release.targetCohorts.length === 1 ? "1 cohort" : `${release.targetCohorts.length} cohorts`
980
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RolloutPercentageBadge, { percentage }), release.shouldForceUpdate ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
981
+ variant: "outline",
982
+ children: "Forced"
983
+ }) : null]
984
+ })
985
+ }),
986
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
987
+ className: "hidden sm:table-cell",
988
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: bundleId })
989
+ }),
990
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FirstDownloadCell, { download: firstDownloadOf(patches, bundleId) }) })
991
+ ] }, release.releaseId);
992
+ }) })]
993
+ }),
994
+ missingPatch === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
995
+ className: "flex flex-col gap-2 border-t px-4 py-3 text-xs",
996
+ 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, {
997
+ label: "the patch command",
998
+ value: missingPatch
999
+ })]
1000
+ }),
1001
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
1002
+ className: "border-t px-4 py-3 text-xs text-muted-foreground",
1003
+ children: ["What the update check serves an install of this build now, newest first: not the history. ", scopeLink]
1004
+ })
1005
+ ] })
1006
+ })]
1007
+ });
1008
+ }
1009
+ /**
1010
+ * One native build: how to install it, its built-in bundle as the base its
1011
+ * OTAs patch from, what an install is served now, and the patches from it.
1012
+ * The patch page is in the URL, so a link opens it.
1013
+ */
1014
+ function NativeBuildDetailPage({ buildId, search, onSearchChange }) {
1015
+ const query = useNativeBuildDetailQuery(buildId);
1016
+ const detail = query.data;
1017
+ const page = {
1018
+ ...search.patchesBefore === void 0 ? {} : { before: search.patchesBefore },
1019
+ ...search.patchesAfter === void 0 ? {} : { after: search.patchesAfter }
1020
+ };
1021
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
1022
+ className: "flex h-svh min-h-0 flex-col",
1023
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
1024
+ 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",
1025
+ children: [
1026
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
1027
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
1028
+ className: buttonVariants({
1029
+ className: "min-h-11 sm:min-h-7",
1030
+ size: "sm",
1031
+ variant: "ghost"
1032
+ }),
1033
+ search: detail ? { channel: detail.channel } : { channels: "all" },
1034
+ to: "/native-builds",
1035
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { "data-icon": "inline-start" }), "Native builds"]
1036
+ }),
1037
+ detail ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h1", {
1038
+ className: "flex min-w-0 items-center gap-1.5 text-sm font-medium",
1039
+ children: [
1040
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
1041
+ className: "size-3.5 shrink-0 text-muted-foreground",
1042
+ platform: detail.build.platform
1043
+ }),
1044
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1045
+ className: "flex min-w-0 flex-wrap items-center gap-x-1.5",
1046
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1047
+ className: "inline-flex items-center gap-1.5 whitespace-nowrap",
1048
+ children: [
1049
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1050
+ className: "sr-only",
1051
+ children: [platformLabel(detail.build.platform), " "]
1052
+ }),
1053
+ nativeBuildArtifacts[detail.build.artifact_kind].label,
1054
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SandboxBadge, { build: detail.build })
1055
+ ]
1056
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1057
+ className: "min-w-0 [overflow-wrap:anywhere]",
1058
+ children: ["· ", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1059
+ translate: "no",
1060
+ children: detail.channel
1061
+ })]
1062
+ })]
1063
+ }),
1064
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1065
+ className: "hidden text-xs font-normal text-muted-foreground tabular-nums sm:inline",
1066
+ children: formatByteSize(detail.build.byte_size)
1067
+ })
1068
+ ]
1069
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
1070
+ className: "sr-only",
1071
+ children: "Native build"
1072
+ })
1073
+ ]
1074
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1075
+ className: "min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6",
1076
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1077
+ className: "mx-auto flex w-full max-w-5xl flex-col gap-4 sm:gap-6",
1078
+ children: query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
1079
+ variant: "destructive",
1080
+ children: [
1081
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
1082
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "The native build couldn't be loaded" }),
1083
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: query.error.message }),
1084
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
1085
+ onClick: () => void query.refetch(),
1086
+ size: "xs",
1087
+ variant: "outline",
1088
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
1089
+ }) })
1090
+ ]
1091
+ }) : detail === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1092
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1093
+ className: "sr-only",
1094
+ children: "Loading the native build"
1095
+ }),
1096
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-56 w-full rounded-xl" }),
1097
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-64 w-full rounded-xl" })
1098
+ ] }) : detail === null ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Empty, {
1099
+ className: "border py-16",
1100
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(EmptyHeader, { children: [
1101
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyMedia, {
1102
+ variant: "icon",
1103
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDrive, {})
1104
+ }),
1105
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyTitle, { children: "Native build not found" }),
1106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyDescription, { children: "No native build has this ID. It may have been deleted, or be from another console." })
1107
+ ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
1108
+ className: buttonVariants({
1109
+ className: "min-h-11 sm:min-h-8",
1110
+ variant: "outline"
1111
+ }),
1112
+ search: { channels: "all" },
1113
+ to: "/native-builds",
1114
+ children: "Show all native builds"
1115
+ }) })]
1116
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1117
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallCard, { build: detail.build }),
1118
+ detail.build.artifact_kind === "ipa" && !isSubmitted(detail.build) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IpaDevicesCard, { build: detail.build }) : null,
1119
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuiltInBundleCard, { detail }),
1120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ServedNowCard, { detail }),
1121
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PatchesCard, {
1122
+ detail,
1123
+ onPage: (next) => onSearchChange({
1124
+ ...next.before === void 0 ? {} : { patchesBefore: next.before },
1125
+ ...next.after === void 0 ? {} : { patchesAfter: next.after }
1126
+ }),
1127
+ page
1128
+ })
1129
+ ] })
1130
+ })
1131
+ })]
1132
+ });
1133
+ }
1134
+ function NativeBuildDetailRoute() {
1135
+ const { buildId } = Route.useParams();
1136
+ const search = Route.useSearch();
1137
+ const navigate = Route.useNavigate();
1138
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildDetailPage, {
1139
+ buildId,
1140
+ onSearchChange: (next) => void navigate({
1141
+ search: next,
1142
+ replace: true
1143
+ }),
1144
+ search
1145
+ });
1146
+ }
1147
+ //#endregion
1148
+ export { NativeBuildDetailRoute as component };