@hot-updater/console 1.2.0-rc.38 → 1.2.0-rc.39

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 (170) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-BJPSRi4t.js → -native-builds-search-CRhUT348.js} +1 -1
  3. package/.output/public/assets/{ChannelBadge-B04sTjw5.js → ChannelBadge-B7DxBTj3.js} +1 -1
  4. package/.output/public/assets/{CompositeItem-CcgQyrSU.js → CompositeItem-AJPwCjWh.js} +1 -1
  5. package/.output/public/assets/{ConsoleFeatureUnavailable-P2up1IkX.js → ConsoleFeatureUnavailable-PXmQqkJQ.js} +1 -1
  6. package/.output/public/assets/{EventDetails-BYZUOYsT.js → EventDetails-C7rnoh47.js} +1 -1
  7. package/.output/public/assets/{HashValueDisplay-N89T2mVj.js → HashValueDisplay-DDz2Ecy7.js} +1 -1
  8. package/.output/public/assets/{InsightsPageHeader-DhOT-Tmn.js → InsightsPageHeader-C7BMHQtN.js} +1 -1
  9. package/.output/public/assets/{IosInstall-ChFnQISV.js → IosInstall-CJ0427uA.js} +1 -1
  10. package/.output/public/assets/{NativeBuildsNav-CivF1UpI.js → NativeBuildsNav-CZSaxAYo.js} +1 -1
  11. package/.output/public/assets/{RelativeTime-CAwDWRiM.js → RelativeTime-DxYXSuC4.js} +1 -1
  12. package/.output/public/assets/RolloutPercentageBadge-Di_Ca_ss.js +1 -0
  13. package/.output/public/assets/{RowReason-CRPq0CHS.js → RowReason-BvjPxMrd.js} +1 -1
  14. package/.output/public/assets/SandboxBadge-B_edulK_.js +1 -0
  15. package/.output/public/assets/{TargetDisplay-C6ofsnLc.js → TargetDisplay-CyBWoX-f.js} +1 -1
  16. package/.output/public/assets/api-keys-BhEu-4kH.js +1 -0
  17. package/.output/public/assets/{api-keys-Bjv4olzj.js → api-keys-D3TC5aQy.js} +1 -1
  18. package/.output/public/assets/{index-DzRyUcWR.js → index-MllyLAwb.js} +3 -3
  19. package/.output/public/assets/insights-Cl7F_W3G.js +1 -0
  20. package/.output/public/assets/{insights-B1yw5HMS.js → insights-DvMY7nq6.js} +1 -1
  21. package/.output/public/assets/insights-Z2S8xvnR.js +2 -0
  22. package/.output/public/assets/{insights-search-DmxDGWAA.js → insights-search-BCR_lahU.js} +1 -1
  23. package/.output/public/assets/insights_.distribution-BYakpdgY.js +2 -0
  24. package/.output/public/assets/insights_.distribution-D9yFYdru.js +1 -0
  25. package/.output/public/assets/{insights_.distribution-vyjSwP0f.js → insights_.distribution-QzaOKttT.js} +1 -1
  26. package/.output/public/assets/{installations-BfbwP-Ub.js → installations-BryK0NqR.js} +2 -2
  27. package/.output/public/assets/{installations-BKAdFmTM.js → installations-CzsM7ZGi.js} +1 -1
  28. package/.output/public/assets/installations-D758kWNf.js +1 -0
  29. package/.output/public/assets/{native-builds-DYvuFp4w.js → native-builds-3qvP-53q.js} +1 -1
  30. package/.output/public/assets/native-builds-BYQ8bQGN.js +1 -0
  31. package/.output/public/assets/native-builds-CnaQgVq6.js +2 -0
  32. package/.output/public/assets/native-builds_._buildId-D-eAGzXZ.js +2 -0
  33. package/.output/public/assets/native-builds_._buildId-D2-0EtFr.js +1 -0
  34. package/.output/public/assets/native-builds_.devices-D8CsVAuR.js +2 -0
  35. package/.output/public/assets/{native-builds_.devices-CjmuLWk7.js → native-builds_.devices-OQV8P5Hf.js} +1 -1
  36. package/.output/public/assets/remote-config-Bt6V_XHg.js +1 -0
  37. package/.output/public/assets/{remote-config-BopBV_qe.js → remote-config-CSJSQdOv.js} +1 -1
  38. package/.output/public/assets/{remote-config-FiUamvQE.js → remote-config-DNSdmvmp.js} +3 -3
  39. package/.output/public/assets/routes-DgbtNsWJ.js +1 -0
  40. package/.output/public/assets/{routes-DVuMMuc5.js → routes-DkzFq9jv.js} +2 -2
  41. package/.output/server/{__23tanstack-start-server-fn-resolver-BtWTR3K6.mjs → __23tanstack-start-server-fn-resolver-D-ox_XZH.mjs} +58 -58
  42. package/.output/server/_libs/_.mjs +1 -1
  43. package/.output/server/_ssr/{BundleIdDisplay-CoG9Vh6a.mjs → BundleIdDisplay-Dobgd7p0.mjs} +2 -2
  44. package/.output/server/_ssr/{ChannelBadge-OzIjNKqL.mjs → ChannelBadge-Dp9lOdkW.mjs} +3 -3
  45. package/.output/server/_ssr/{ConsoleFeatureUnavailable-jSQbtBgK.mjs → ConsoleFeatureUnavailable-sMoqvehk.mjs} +5 -5
  46. package/.output/server/_ssr/{EventDetails-CJrDHxsT.mjs → EventDetails-B2lRHRhs.mjs} +6 -6
  47. package/.output/server/_ssr/{HashValueDisplay-DcC8Slj7.mjs → HashValueDisplay-DgOVBPz-.mjs} +2 -2
  48. package/.output/server/_ssr/{InsightsPageHeader-BNH5TKN9.mjs → InsightsPageHeader-CFrO8ZhS.mjs} +5 -5
  49. package/.output/server/_ssr/{IosInstall-CuSgvhg-.mjs → IosInstall-COL13Y9Q.mjs} +6 -6
  50. package/.output/server/_ssr/{NativeBuildsNav-DAXCwIoa.mjs → NativeBuildsNav-DADiCA79.mjs} +3 -3
  51. package/.output/server/_ssr/{NotFoundPage-DffajSyb.mjs → NotFoundPage-C6fy3EQE.mjs} +2 -2
  52. package/.output/server/_ssr/{QrCode-DwBVEOIh.mjs → QrCode-pjBmMRNW.mjs} +2 -2
  53. package/.output/server/_ssr/{RelativeTime-CH0r_O2c.mjs → RelativeTime-ybh_YpRa.mjs} +3 -3
  54. package/.output/server/_ssr/{RolloutPercentageBadge-Bwn0TagX.mjs → RolloutPercentageBadge-Ck1Qz_u9.mjs} +3 -3
  55. package/.output/server/_ssr/{RowReason-DWr8eiRr.mjs → RowReason-DrDg86zk.mjs} +4 -4
  56. package/.output/server/_ssr/{SandboxBadge-D5ecaKjw.mjs → SandboxBadge-BVLfk_MI.mjs} +7 -19
  57. package/.output/server/_ssr/{TargetDisplay-sdzBTzVV.mjs → TargetDisplay-CcNoERcA.mjs} +3 -3
  58. package/.output/server/_ssr/{alert-dialog-BmbeXMVA.mjs → alert-dialog-Cneyp4SL.mjs} +1 -1
  59. package/.output/server/_ssr/{api-BHKgmaIU.mjs → api-D1iTDB8X.mjs} +3 -3
  60. package/.output/server/_ssr/{api-keys-BOVrv884.mjs → api-keys-BmByedx3.mjs} +2 -2
  61. package/.output/server/_ssr/{api-keys-BsnJI325.mjs → api-keys-L22cEsbx.mjs} +9 -9
  62. package/.output/server/_ssr/{api-keys-rpc-BLJiZe-7.mjs → api-keys-rpc-De0gejNE.mjs} +3 -3
  63. package/.output/server/_ssr/{api-rpc-CozVGcH5.mjs → api-rpc-CLUkjEzc.mjs} +7 -7
  64. package/.output/server/_ssr/{auth-rpc-DRY2e35e.mjs → auth-rpc-BR35Xq9A.mjs} +4 -4
  65. package/.output/server/_ssr/{auth.server-BMzf25uQ.mjs → auth.server-DGB_iSU1.mjs} +2 -2
  66. package/.output/server/_ssr/{badge-COm_alG-.mjs → badge-Cr_XmvdA.mjs} +1 -1
  67. package/.output/server/_ssr/{card-BFTQ_XzK.mjs → card-DmZaoqKT.mjs} +1 -1
  68. package/.output/server/_ssr/{config.server-Bv6DoXn5.mjs → config.server-B5Dghtv-.mjs} +3 -3
  69. package/.output/server/_ssr/{console-access-DEJ5MJE4.mjs → console-access-GUnQkD3j.mjs} +2 -2
  70. package/.output/server/_ssr/{console-features-api-BpiwpG_6.mjs → console-features-api-rDUY2XrP.mjs} +3 -3
  71. package/.output/server/_ssr/{console-features-rpc-VIMnfCAY.mjs → console-features-rpc-BJrkm9dz.mjs} +3 -3
  72. package/.output/server/_ssr/{dialog-BI3i27S5.mjs → dialog-BvTfEtqZ.mjs} +1 -1
  73. package/.output/server/_ssr/{empty-BFtyXzTb.mjs → empty-DD6BahGF.mjs} +2 -2
  74. package/.output/server/_ssr/{field-CrIyg_Pu.mjs → field-BTahddUR.mjs} +2 -2
  75. package/.output/server/_ssr/{input-group-CaQYmdpl.mjs → input-group-DtCeEJ9x.mjs} +1 -1
  76. package/.output/server/_ssr/{insights-BWhfhoIe.mjs → insights-BKG9fP-a.mjs} +5 -5
  77. package/.output/server/_ssr/{insights-BUS6BNcb.mjs → insights-ChiX0NMe.mjs} +19 -19
  78. package/.output/server/_ssr/{insights-D3FBuhNP.mjs → insights-DMnvHO-N.mjs} +2 -2
  79. package/.output/server/_ssr/{insights-api-Dp_g14ew.mjs → insights-api-Cpr7F9Zq.mjs} +3 -3
  80. package/.output/server/_ssr/{insights-failures-rpc-B9HE0jaG.mjs → insights-failures-rpc-ClIZ5YAr.mjs} +4 -4
  81. package/.output/server/_ssr/{insights-recovery-rpc-CItLuIvv.mjs → insights-recovery-rpc-9vTxL0b9.mjs} +3 -3
  82. package/.output/server/_ssr/{insights-rpc-BK9yCwTo.mjs → insights-rpc-ntVL4dMr.mjs} +3 -3
  83. package/.output/server/_ssr/{insights-search-C3zfHoQH.mjs → insights-search-BDC6qL_N.mjs} +2 -2
  84. package/.output/server/_ssr/{insights-usage-rpc-D5DLPj5-.mjs → insights-usage-rpc-B3tWIvs7.mjs} +3 -3
  85. package/.output/server/_ssr/{insights-usage-rpc-BgMHF87M.mjs → insights-usage-rpc-D1AH4wIp.mjs} +3 -3
  86. package/.output/server/_ssr/{insights_.distribution-Cn0HJH9g.mjs → insights_.distribution-16p6uw87.mjs} +2 -2
  87. package/.output/server/_ssr/{insights_.distribution-93_mA2-l.mjs → insights_.distribution-BQyY6j-B.mjs} +13 -13
  88. package/.output/server/_ssr/{insights_.distribution-CP9GZanc.mjs → insights_.distribution-Bs9C7zLO.mjs} +5 -5
  89. package/.output/server/_ssr/{installations-ysHMBT1s.mjs → installations-BjPcHbsA.mjs} +4 -4
  90. package/.output/server/_ssr/{installations-CY_qlCNv.mjs → installations-DD36dmtY.mjs} +2 -2
  91. package/.output/server/_ssr/{installations-CvmlbSO9.mjs → installations-DkAGd1RB.mjs} +11 -11
  92. package/.output/server/_ssr/{ios-devices-rpc-Dux6IEq9.mjs → ios-devices-rpc-CUe5hM5d.mjs} +7 -7
  93. package/.output/server/_ssr/{iosDeviceCookie-C8I4QNd8.mjs → iosDeviceCookie-DeLAGIDy.mjs} +3 -3
  94. package/.output/server/_ssr/{iosDeviceProfile-htlFx2Iz.mjs → iosDeviceProfile-DEhxhqB1.mjs} +2 -2
  95. package/.output/server/_ssr/{iosDevices-Bm5YmQne.mjs → iosDevices-DC6OSIpz.mjs} +2 -2
  96. package/.output/server/_ssr/{native-builds-DokuKdcX.mjs → native-builds-83NqyJmR.mjs} +2 -2
  97. package/.output/server/_ssr/{native-builds-DSDdaywn.mjs → native-builds-BVCLjZy3.mjs} +27 -54
  98. package/.output/server/_ssr/{native-builds_._buildId-xRldfNoO.mjs → native-builds_._buildId-CW246wU-.mjs} +55 -94
  99. package/.output/server/_ssr/{native-builds_._buildId-Dah2sUhQ.mjs → native-builds_._buildId-Dz3ZOBO4.mjs} +2 -2
  100. package/.output/server/_ssr/{native-builds_.devices-ObbbZTA2.mjs → native-builds_.devices-BcgwCDYe.mjs} +2 -2
  101. package/.output/server/_ssr/{native-builds_.devices-CC2uVmMy.mjs → native-builds_.devices-Cb1j7l0p.mjs} +15 -15
  102. package/.output/server/_ssr/{nativeBuildDownloadLink-D_Lc8Kdl.mjs → nativeBuildDownloadLink-S98Fp4EL.mjs} +2 -2
  103. package/.output/server/_ssr/{nativeBuildInstall-D-zJgIjg.mjs → nativeBuildInstall-CGx9_h9k.mjs} +3 -3
  104. package/.output/server/_ssr/{release-adoption-rpc-BmBnPwgL.mjs → release-adoption-rpc-CH1S7Q72.mjs} +5 -5
  105. package/.output/server/_ssr/{remote-config-Bj3_Vy5J.mjs → remote-config-B37Kf8E_.mjs} +2 -2
  106. package/.output/server/_ssr/{remote-config-Cc61LMhc.mjs → remote-config-Bt9nmY6h.mjs} +2 -2
  107. package/.output/server/_ssr/{remote-config-Dzb-so_N.mjs → remote-config-D5eSR-Oj.mjs} +17 -17
  108. package/.output/server/_ssr/{remote-config-rpc-D1bl95E9.mjs → remote-config-rpc-C47nnyek.mjs} +3 -3
  109. package/.output/server/_ssr/{router-B9WYJ0i8.mjs → router-CHveNRca.mjs} +32 -32
  110. package/.output/server/_ssr/{routes-CupMWrld.mjs → routes-Dfa8uOh-.mjs} +8 -8
  111. package/.output/server/_ssr/{routes-Cf4GSQVG.mjs → routes-t2IGGOuQ.mjs} +21 -21
  112. package/.output/server/_ssr/{schema-migration-rpc-BJfLrS5u.mjs → schema-migration-rpc-LvcWmZNf.mjs} +3 -3
  113. package/.output/server/_ssr/{select-BhlTavBg.mjs → select-BM4VyXJ2.mjs} +1 -1
  114. package/.output/server/_ssr/{server-CO04rHE0.mjs → server-ChOocPzQ.mjs} +3 -3
  115. package/.output/server/_ssr/{sidebar-kS1dkq7c.mjs → sidebar-DaVgRP2d.mjs} +2 -2
  116. package/.output/server/_ssr/ssr.mjs +1 -1
  117. package/.output/server/_ssr/{switch-Up7u760a.mjs → switch-BSixbqb5.mjs} +2 -2
  118. package/.output/server/_ssr/{table-BVS2P58k.mjs → table-DIgStkYT.mjs} +1 -1
  119. package/.output/server/_ssr/{tabs-B-w3F332.mjs → tabs-BcBESH4i.mjs} +2 -2
  120. package/.output/server/_tanstack-start-manifest_v-CR_uX94i.mjs +223 -0
  121. package/.output/server/index.mjs +307 -307
  122. package/package.json +7 -7
  123. package/src/components/features/native-builds/BuiltInBundleCard.tsx +0 -6
  124. package/src/components/features/native-builds/InstallCard.tsx +48 -74
  125. package/src/components/features/native-builds/NativeBuildsTable.tsx +10 -40
  126. package/src/components/features/native-builds/playTracks.ts +4 -16
  127. package/.output/public/assets/RolloutPercentageBadge-DlaDqnOs.js +0 -1
  128. package/.output/public/assets/SandboxBadge-BpJoP3BG.js +0 -1
  129. package/.output/public/assets/api-keys-CrrBMw2x.js +0 -1
  130. package/.output/public/assets/insights-DuQ160fy.js +0 -2
  131. package/.output/public/assets/insights-QaHXTgmd.js +0 -1
  132. package/.output/public/assets/insights_.distribution-D2BkPvdk.js +0 -2
  133. package/.output/public/assets/insights_.distribution-gCONJgiU.js +0 -1
  134. package/.output/public/assets/installations-D5bvOxlY.js +0 -1
  135. package/.output/public/assets/native-builds-BqfRi0ou.js +0 -1
  136. package/.output/public/assets/native-builds-urjkBbVZ.js +0 -2
  137. package/.output/public/assets/native-builds_._buildId-Cy_v6FQF.js +0 -1
  138. package/.output/public/assets/native-builds_._buildId-EnQK17U1.js +0 -2
  139. package/.output/public/assets/native-builds_.devices-B6hLe0uI.js +0 -2
  140. package/.output/public/assets/remote-config-9h5s5yCy.js +0 -1
  141. package/.output/public/assets/routes-CMsRlxFp.js +0 -1
  142. package/.output/server/_tanstack-start-manifest_v-CGhBxSt1.mjs +0 -224
  143. /package/.output/public/assets/{BundleIdDisplay-Bm85NZma.js → BundleIdDisplay-Cz5MehaS.js} +0 -0
  144. /package/.output/public/assets/{NotFoundPage-DUWkihqx.js → NotFoundPage-DIwHXtYM.js} +0 -0
  145. /package/.output/public/assets/{PlatformIcon-CZjIJt0C.js → PlatformIcon-DjcYGkV6.js} +0 -0
  146. /package/.output/public/assets/{alert-dialog-ndHfUqUh.js → alert-dialog-C6K18pl_.js} +0 -0
  147. /package/.output/public/assets/{api-USY_IWMu.js → api-sTvbSydX.js} +0 -0
  148. /package/.output/public/assets/{badge-D4Tiwei-.js → badge-Cf3eoJjl.js} +0 -0
  149. /package/.output/public/assets/{card-VtWYErXu.js → card-CHIqYgB7.js} +0 -0
  150. /package/.output/public/assets/{constants-C5gi7fdZ.js → constants-zSb7FXDh.js} +0 -0
  151. /package/.output/public/assets/{dialog-Dx9gstou.js → dialog-ZrH3ul9A.js} +0 -0
  152. /package/.output/public/assets/{dist-BDfiL2Qz.js → dist-Dh2hrHKj.js} +0 -0
  153. /package/.output/public/assets/{empty-Cdfs8tuN.js → empty-Oq7fhUu4.js} +0 -0
  154. /package/.output/public/assets/{field-CubHQ_EM.js → field-BHPxgJmr.js} +0 -0
  155. /package/.output/public/assets/{git-branch-BWrvONjc.js → git-branch-BOz43vpU.js} +0 -0
  156. /package/.output/public/assets/{history-DwdBLzJP.js → history-Bz8IgNln.js} +0 -0
  157. /package/.output/public/assets/{input-group-DNfVeeYZ.js → input-group-cEQZv88S.js} +0 -0
  158. /package/.output/public/assets/{key-round-B-vaAsR7.js → key-round-Dy3paJP6.js} +0 -0
  159. /package/.output/public/assets/{list-Dq40Mmoj.js → list-ClzEOP6k.js} +0 -0
  160. /package/.output/public/assets/{loader-circle-C26cZDSM.js → loader-circle-BUfUHW-o.js} +0 -0
  161. /package/.output/public/assets/{plus-Bp6IqwOH.js → plus-CNhNPLpx.js} +0 -0
  162. /package/.output/public/assets/{relativeTime-Wk64dka-.js → relativeTime-CdKwnwWK.js} +0 -0
  163. /package/.output/public/assets/{rotate-cw-Bn3fIWmY.js → rotate-cw-CyYMmYDu.js} +0 -0
  164. /package/.output/public/assets/{search-DeKSyo9Q.js → search-C9QXSW-Z.js} +0 -0
  165. /package/.output/public/assets/{smartphone-lSZWrqxx.js → smartphone-NAD6OBaK.js} +0 -0
  166. /package/.output/public/assets/{switch-7xIPmzJp.js → switch-Bvelc7zQ.js} +0 -0
  167. /package/.output/public/assets/{table-DtcLx8yw.js → table-tm9RvUbS.js} +0 -0
  168. /package/.output/public/assets/{tabs-DYlO8l4M.js → tabs-TD0mdxc_.js} +0 -0
  169. /package/.output/public/assets/{trash-2-BPH7ydek.js → trash-2-SV8_CRNk.js} +0 -0
  170. /package/.output/public/assets/{undo-2-CGeTBZjC.js → undo-2-K3gpHMd2.js} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/console",
3
3
  "type": "module",
4
- "version": "1.2.0-rc.38",
4
+ "version": "1.2.0-rc.39",
5
5
  "files": [
6
6
  ".output",
7
7
  "lib",
@@ -59,10 +59,10 @@
59
59
  "tw-animate-css": "^1.4.0",
60
60
  "uqr": "^0.1.3",
61
61
  "verkit": "0.4.0",
62
- "@hot-updater/bsdiff": "1.2.0-rc.38",
63
- "@hot-updater/protocol": "1.2.0-rc.38",
64
- "@hot-updater/server": "1.2.0-rc.38",
65
- "@hot-updater/plugin-core": "1.2.0-rc.38"
62
+ "@hot-updater/bsdiff": "1.2.0-rc.39",
63
+ "@hot-updater/plugin-core": "1.2.0-rc.39",
64
+ "@hot-updater/protocol": "1.2.0-rc.39",
65
+ "@hot-updater/server": "1.2.0-rc.39"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@tanstack/devtools-vite": "^0.6.0",
@@ -86,8 +86,8 @@
86
86
  "vite-tsconfig-paths": "^6.1.1",
87
87
  "vitest": "4.1.4",
88
88
  "web-vitals": "^5.1.0",
89
- "@hot-updater/cli-tools": "1.2.0-rc.38",
90
- "@hot-updater/mock": "1.2.0-rc.38"
89
+ "@hot-updater/cli-tools": "1.2.0-rc.39",
90
+ "@hot-updater/mock": "1.2.0-rc.39"
91
91
  },
92
92
  "description": "React Native OTA solution for self-hosted",
93
93
  "license": "SEE LICENSE IN LICENSE",
@@ -18,7 +18,6 @@ import {
18
18
  import type { NativeBuildDetail } from "@/lib/server/nativeBuilds";
19
19
 
20
20
  import { CommitLink } from "./CommitLink";
21
- import { isSubmitted, StoreSubmissionBadge } from "./StoreSubmission";
22
21
 
23
22
  function Row({
24
23
  label,
@@ -206,11 +205,6 @@ export function BuiltInBundleCard({
206
205
  </span>
207
206
  </Row>
208
207
  )}
209
- {isSubmitted(build) ? (
210
- <Row label="Store">
211
- <StoreSubmissionBadge build={build} withTime />
212
- </Row>
213
- ) : null}
214
208
  <Row label="Commit">
215
209
  <CommitLink hash={build.git_commit_hash} />
216
210
  </Row>
@@ -1,11 +1,6 @@
1
1
  import type { NativeBuildRow } from "@hot-updater/plugin-core";
2
2
  import dayjs from "dayjs";
3
- import {
4
- AlertTriangle,
5
- ChevronRight,
6
- Download,
7
- ExternalLink,
8
- } from "lucide-react";
3
+ import { AlertTriangle, ChevronRight, Download } from "lucide-react";
9
4
  import { type ReactNode, useId, useState } from "react";
10
5
 
11
6
  import { QrCode } from "@/components/QrCode";
@@ -27,8 +22,11 @@ import type { NativeBuildDownloadLinkResult } from "@/lib/server/nativeBuildDown
27
22
 
28
23
  import { CopyableText } from "./CopyableText";
29
24
  import { IosInstall, useIosDevice } from "./IosInstall";
30
- import { PLAY_TRACKS } from "./playTracks";
31
- import { isSubmitted, type Submitted } from "./StoreSubmission";
25
+ import {
26
+ isSubmitted,
27
+ StoreSubmissionBadge,
28
+ type Submitted,
29
+ } from "./StoreSubmission";
32
30
 
33
31
  const IPA_LIMIT =
34
32
  "The .ipa installs only on devices its signing profile allows (development or ad hoc)";
@@ -165,27 +163,42 @@ function StorageQrCode({ build }: { readonly build: NativeBuildRow }) {
165
163
  );
166
164
  }
167
165
 
168
- /** The store's label of a submitted build. */
169
- function SubmittedVersion({ build }: { readonly build: NativeBuildRow }) {
166
+ /**
167
+ * The file's download, as an outline button where people use the file itself.
168
+ * An IPA's is a ghost button in the same place: a computer's browser installs
169
+ * nothing from it, so it never competes with the card's install path.
170
+ */
171
+ function DownloadButton({
172
+ build,
173
+ href,
174
+ }: {
175
+ readonly build: NativeBuildRow;
176
+ readonly href: string;
177
+ }) {
170
178
  return (
171
- <span className="font-mono text-foreground" translate="no">
172
- {build.submitted_version ?? "this build"}
173
- </span>
179
+ <a
180
+ className={buttonVariants({
181
+ className:
182
+ "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
183
+ variant: build.artifact_kind === "ipa" ? "ghost" : "outline",
184
+ })}
185
+ download
186
+ href={href}
187
+ >
188
+ <Download data-icon="inline-start" />
189
+ <span className="text-left [overflow-wrap:anywhere]">
190
+ Download {nativeBuildFileName(build)}
191
+ </span>
192
+ </a>
174
193
  );
175
194
  }
176
195
 
177
196
  /**
178
- * A build a store took installs from the store, so the card leads with it, and
179
- * the file stays for keeping, with no QR code or signed link to ask for.
197
+ * A build a store took installs from the store, so the card leads with the
198
+ * store's badge, says how testers get it, and keeps the file's download, with
199
+ * no QR code or signed link to ask for.
180
200
  */
181
201
  function StoreInstallCard({ build }: { readonly build: Submitted }) {
182
- const store =
183
- build.submitted_to === "testflight"
184
- ? {
185
- name: "App Store Connect",
186
- url: "https://appstoreconnect.apple.com/apps",
187
- }
188
- : { name: "Play Console", url: "https://play.google.com/console" };
189
202
  return (
190
203
  <Card className="overflow-hidden shadow-sm">
191
204
  <CardHeader className="border-b px-4 py-3">
@@ -194,35 +207,12 @@ function StoreInstallCard({ build }: { readonly build: Submitted }) {
194
207
  </CardTitle>
195
208
  </CardHeader>
196
209
  <CardContent className="flex min-w-0 flex-col gap-4 p-4 sm:p-6">
210
+ <StoreSubmissionBadge build={build} withTime />
197
211
  <InstallSteps build={build} />
198
- <div className="flex flex-col gap-2 sm:flex-row sm:flex-wrap">
199
- <a
200
- className={buttonVariants({
201
- className:
202
- "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
203
- })}
204
- href={store.url}
205
- rel="noreferrer"
206
- target="_blank"
207
- >
208
- <ExternalLink data-icon="inline-start" />
209
- Open {store.name}
210
- </a>
211
- <a
212
- className={buttonVariants({
213
- className:
214
- "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
215
- variant: "outline",
216
- })}
217
- download
218
- href={nativeBuildDownloadPath(build.id)}
219
- >
220
- <Download data-icon="inline-start" />
221
- <span className="text-left [overflow-wrap:anywhere]">
222
- Download {nativeBuildFileName(build)}
223
- </span>
224
- </a>
225
- </div>
212
+ <DownloadButton
213
+ build={build}
214
+ href={nativeBuildDownloadPath(build.id)}
215
+ />
226
216
  </CardContent>
227
217
  </Card>
228
218
  );
@@ -277,13 +267,8 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
277
267
  );
278
268
  case "aab":
279
269
  return isSubmitted(build) ? (
270
+ // The store's badge above says where it went and as what.
280
271
  <p className="text-xs text-muted-foreground">
281
- Submitted to{" "}
282
- {build.submitted_to === "play-internal"
283
- ? PLAY_TRACKS["play-internal"].name
284
- : PLAY_TRACKS[build.submitted_to as keyof typeof PLAY_TRACKS]
285
- .label}{" "}
286
- as <SubmittedVersion build={build} />.{" "}
287
272
  {build.submitted_to === "play-production" ? "Users" : "Testers"} get
288
273
  it once its release is rolled out; on an app Play Console hasn't
289
274
  published, the release is a draft you roll out in Play Console.
@@ -302,9 +287,8 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
302
287
  case "ipa":
303
288
  return isSubmitted(build) ? (
304
289
  <p className="text-xs text-muted-foreground">
305
- On TestFlight as <SubmittedVersion build={build} />. Internal testers
306
- install it from the TestFlight app once App Store Connect has
307
- processed it, and a preview's pull request comment shows that state.
290
+ Internal testers install it from the TestFlight app once App Store
291
+ Connect has processed it.
308
292
  </p>
309
293
  ) : (
310
294
  <p className="text-xs text-muted-foreground">
@@ -347,7 +331,8 @@ function SignedLink({
347
331
  }
348
332
 
349
333
  /**
350
- * Installs one native build: an IPA or AAB a store took, from the store; an IPA
334
+ * Installs one native build: an IPA or AAB a store took, from the store, which
335
+ * its badge names, with the file's download; an IPA
351
336
  * on the iPhone that opens this page, whose QR code on any other screen holds
352
337
  * this page; every other artifact by a QR code of its signed link, which a phone
353
338
  * without a session scans, and by download here or the link itself; an APK or a
@@ -394,7 +379,6 @@ function OtherWaysToInstall({ children }: { readonly children: ReactNode }) {
394
379
  }
395
380
 
396
381
  function FileInstallCard({ build }: { readonly build: NativeBuildRow }) {
397
- const fileName = nativeBuildFileName(build);
398
382
  const link = useNativeBuildDownloadLinkQuery(build.id);
399
383
  const signedUrl =
400
384
  link.data?.status === "issued"
@@ -406,20 +390,10 @@ function FileInstallCard({ build }: { readonly build: NativeBuildRow }) {
406
390
  const otherWays = (
407
391
  <div className="flex min-w-0 flex-col gap-4">
408
392
  <InstallSteps build={build} />
409
- <a
410
- className={buttonVariants({
411
- className:
412
- "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
413
- variant: "outline",
414
- })}
415
- download
393
+ <DownloadButton
394
+ build={build}
416
395
  href={signedUrl ?? nativeBuildDownloadPath(build.id)}
417
- >
418
- <Download data-icon="inline-start" />
419
- <span className="text-left [overflow-wrap:anywhere]">
420
- Download {fileName}
421
- </span>
422
- </a>
396
+ />
423
397
  <SignedLink link={link.data} url={signedUrl} />
424
398
  </div>
425
399
  );
@@ -6,7 +6,6 @@ import { Link, useNavigate } from "@tanstack/react-router";
6
6
  import {
7
7
  AlertTriangle,
8
8
  ArrowUpRight,
9
- Download,
10
9
  HardDrive,
11
10
  RefreshCw,
12
11
  } from "lucide-react";
@@ -59,8 +58,6 @@ import {
59
58
  formatByteSize,
60
59
  nativeBuildArtifacts,
61
60
  nativeBuildChannel,
62
- nativeBuildDownloadPath,
63
- nativeBuildFileName,
64
61
  platformLabel,
65
62
  } from "@/lib/native-builds";
66
63
  import type { Fold } from "@/lib/server/foldedPage";
@@ -76,7 +73,7 @@ import { isSubmitted, StoreSubmissionBadge } from "./StoreSubmission";
76
73
  export const NATIVE_BUILD_GUIDE_URL =
77
74
  "https://hot-updater.dev/docs/guides/native-build#how-a-build-is-tracked";
78
75
 
79
- const COLUMNS = 10;
76
+ const COLUMNS = 9;
80
77
 
81
78
  /** The page of the list that shows `channel`'s builds, or every build. */
82
79
  const channelSearch = (channel: string | undefined): NativeBuildsSearch =>
@@ -295,24 +292,6 @@ function StoreBadges({
295
292
  );
296
293
  }
297
294
 
298
- function DownloadButton({ build }: { readonly build: NativeBuildRow }) {
299
- return (
300
- <a
301
- aria-label={`Download ${nativeBuildFileName(build)}`}
302
- className={buttonVariants({
303
- className: "min-h-11 sm:min-h-8",
304
- size: "sm",
305
- variant: "outline",
306
- })}
307
- download
308
- href={nativeBuildDownloadPath(build.id)}
309
- >
310
- <Download data-icon="inline-start" />
311
- Download
312
- </a>
313
- );
314
- }
315
-
316
295
  function BuildNumber({ build }: { readonly build: NativeBuildRow }) {
317
296
  return build.build_number ? (
318
297
  <span className="font-mono tabular-nums" translate="no">
@@ -385,9 +364,6 @@ function BuildRow({
385
364
  <TableCell className="text-xs text-muted-foreground">
386
365
  <RelativeTime ms={createdAt(build)} />
387
366
  </TableCell>
388
- <TableCell className="text-right">
389
- <DownloadButton build={build} />
390
- </TableCell>
391
367
  </DataTableRow>
392
368
  );
393
369
  }
@@ -426,17 +402,14 @@ function BuildCard({
426
402
  }),
427
403
  )}
428
404
  >
429
- {/* What the build is and its download on one line, its channel under it. */}
430
- <div className="flex items-center justify-between gap-3">
431
- <div className="flex min-w-0 items-center gap-x-2.5">
432
- <PlatformIcon
433
- className="size-4 shrink-0 text-muted-foreground"
434
- platform={build.platform}
435
- />
436
- <BuildIdentity build={build} />
437
- {older ? <OlderBuildLabel newer={newer} /> : null}
438
- </div>
439
- <DownloadButton build={build} />
405
+ {/* What the build is on one line, its channel under it. */}
406
+ <div className="flex min-w-0 items-center gap-x-2.5">
407
+ <PlatformIcon
408
+ className="size-4 shrink-0 text-muted-foreground"
409
+ platform={build.platform}
410
+ />
411
+ <BuildIdentity build={build} />
412
+ {older ? <OlderBuildLabel newer={newer} /> : null}
440
413
  </div>
441
414
  <div className="flex min-w-0">
442
415
  <ChannelFilterButton channel={channel} onChannel={onChannel} />
@@ -689,7 +662,7 @@ export function NativeBuildsTable({
689
662
  <DataTable
690
663
  aria-busy={builds.isPlaceholderData}
691
664
  aria-label="Native builds"
692
- // Ten columns fit 1440 px with 6 px between a cell and its border.
665
+ // Nine columns fit 1440 px with 6 px between a cell and its border.
693
666
  className="aria-busy:opacity-60 [&_td]:px-1.5 [&_th]:px-1.5"
694
667
  header={
695
668
  <>
@@ -702,9 +675,6 @@ export function NativeBuildsTable({
702
675
  <TableHead>Store</TableHead>
703
676
  <TableHead>Size</TableHead>
704
677
  <TableHead>Created</TableHead>
705
- <TableHead className="text-right">
706
- <span className="sr-only">Actions</span>
707
- </TableHead>
708
678
  </>
709
679
  }
710
680
  rowGroups
@@ -1,19 +1,7 @@
1
1
  /** Google Play destination display labels. */
2
2
  export const PLAY_TRACKS = {
3
- "play-internal": {
4
- label: "Play internal",
5
- name: "Google Play internal testing",
6
- },
7
- "play-closed": {
8
- label: "Play closed",
9
- name: "Google Play closed testing",
10
- },
11
- "play-open": {
12
- label: "Play open",
13
- name: "Google Play open testing",
14
- },
15
- "play-production": {
16
- label: "Play production",
17
- name: "Google Play production",
18
- },
3
+ "play-internal": { label: "Play internal" },
4
+ "play-closed": { label: "Play closed" },
5
+ "play-open": { label: "Play open" },
6
+ "play-production": { label: "Play production" },
19
7
  } as const;
@@ -1 +0,0 @@
1
- import{Di as e,Vi as t,Vr as n,vr as r}from"./sidebar-UnsNYOry.js";import{o as i,t as a}from"./badge-D4Tiwei-.js";import{r as o}from"./constants-C5gi7fdZ.js";import{n as s,t as c}from"./relativeTime-Wk64dka-.js";var l=n(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),u=t(s(),1),d=t(c(),1),f=e();u.default.extend(d.default);function p({uuid:e,format:t=`relative`}){let n=(0,u.default)(o(e));return t===`relative`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,f.jsxs)(`div`,{className:`flex flex-col`,children:[(0,f.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,f.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}var m=e=>{let t=e.trim();if(t.startsWith(`git@`)){let e=t.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(e)return`https://${e[1]}/${e[2]}`}if(t.startsWith(`ssh://`))try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`.replace(/\/+$/,``).replace(/\.git$/,``)}catch{return t.replace(/\/+$/,``).replace(/\.git$/,``)}return t.replace(/\/+$/,``).replace(/\.git$/,``)},h=(e,t)=>{if(!e?.trim())return null;let n=m(e);try{let{hostname:e}=new URL(n);if(e.includes(`gitlab`))return`${n}/-/commit/${t}`;if(e.includes(`bitbucket`))return`${n}/commits/${t}`}catch{}return`${n}/commit/${t}`};function g({percentage:e,className:t}){let n=e<100,o=e.toFixed(1);return(0,f.jsxs)(a,{className:r(`gap-1`,t),variant:n?`secondary`:`default`,children:[n?(0,f.jsx)(i,{className:`h-3 w-3`}):null,o,`%`]})}export{l as i,h as n,p as r,g as t};
@@ -1 +0,0 @@
1
- import{Di as e,Vi as t}from"./sidebar-UnsNYOry.js";import{a as n}from"./-native-builds-search-BJPSRi4t.js";import{t as r}from"./badge-D4Tiwei-.js";import{n as i,t as a}from"./relativeTime-Wk64dka-.js";var o=t(i(),1),s=t(a(),1),c={"play-internal":{label:`Play internal`,name:`Google Play internal testing`},"play-closed":{label:`Play closed`,name:`Google Play closed testing`},"play-open":{label:`Play open`,name:`Google Play open testing`},"play-production":{label:`Play production`,name:`Google Play production`}},l=e();o.default.extend(s.default);var u={testflight:`TestFlight`,...Object.fromEntries(Object.entries(c).map(([e,t])=>[e,t.label]))},d=e=>e.submitted_to!==null&&e.submitted_to!==void 0;function f({ms:e}){if(e===null)return null;let t=(0,o.default)(e);return(0,l.jsx)(`time`,{className:`text-xs text-muted-foreground`,dateTime:t.toISOString(),title:t.format(`YYYY-MM-DD HH:mm:ss`),children:t.fromNow()})}var p=e=>{let t=`Submitted to ${u[e.submitted_to]}`;if(e.submitted_at_ms===null)return t;let n=(0,o.default)(e.submitted_at_ms);return`${t} ${n.fromNow()}, ${n.format(`YYYY-MM-DD HH:mm:ss`)}`};function m({build:e,withTime:t=!1}){return d(e)?(0,l.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-1.5`,children:[(0,l.jsxs)(r,{className:`gap-1`,title:p(e),variant:`muted`,children:[(0,l.jsx)(n,{"aria-hidden":`true`,className:`size-3`}),u[e.submitted_to],e.submitted_version?(0,l.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.submitted_version}):null]}),t?(0,l.jsx)(f,{ms:e.submitted_at_ms}):null]}):null}function h({build:e}){return e.is_sandbox?(0,l.jsx)(r,{className:`px-1.5`,variant:`muted`,children:`Sandbox`}):null}export{c as a,u as i,m as n,d as r,h as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-P2up1IkX.js";var t=e;export{t as notFoundComponent};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights-QaHXTgmd.js","assets/ConsoleFeatureUnavailable-P2up1IkX.js","assets/sidebar-UnsNYOry.js","assets/console-features-api-De6tXQnd.js","assets/arrow-up-right-BPRe5soE.js","assets/NotFoundPage-DUWkihqx.js","assets/link-D95E0fwF.js","assets/empty-Cdfs8tuN.js","assets/insights-B1yw5HMS.js","assets/alert-dialog-ndHfUqUh.js","assets/select-DSZKLAHH.js","assets/useCompositeListItem-B9ONn9qn.js","assets/check-Dz_5aNwx.js","assets/tabs-DYlO8l4M.js","assets/insights-usage-rpc-BG7EOn2n.js","assets/valueToPercent-Db73Kirz.js","assets/EventDetails-BYZUOYsT.js","assets/insights-api-CXXCRZhF.js","assets/preload-helper-52zhjEsw.js","assets/copy-BxI24-g-.js","assets/download-ekENI2Sw.js","assets/dist-BDfiL2Qz.js","assets/input-group-DNfVeeYZ.js","assets/smartphone-lSZWrqxx.js","assets/badge-D4Tiwei-.js","assets/HashValueDisplay-N89T2mVj.js","assets/InsightsPageHeader-DhOT-Tmn.js","assets/list-Dq40Mmoj.js","assets/arrow-right-jHG0fJt7.js","assets/chevron-right-CuYrscDY.js","assets/circle-off-BZFOMb8J.js","assets/rotate-cw-Bn3fIWmY.js","assets/undo-2-CGeTBZjC.js","assets/BundleIdDisplay-Bm85NZma.js","assets/insights-search-DmxDGWAA.js","assets/constants-C5gi7fdZ.js","assets/PlatformIcon-CZjIJt0C.js","assets/card-VtWYErXu.js","assets/table-DtcLx8yw.js","assets/api-USY_IWMu.js","assets/useMutation-BWX97JX2.js"])))=>i.map(i=>d[i]);
2
- import{i as e,r as t,t as n}from"./preload-helper-52zhjEsw.js";import{r}from"./console-features-api-De6tXQnd.js";import{i}from"./insights-search-DmxDGWAA.js";var a=e(`/insights`)({beforeLoad:({context:e})=>r(e.queryClient,`insightsAnalytics`),notFoundComponent:t(()=>n(()=>import(`./insights-QaHXTgmd.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:t(()=>n(()=>import(`./insights-B1yw5HMS.js`),__vite__mapDeps([8,2,9,10,11,12,13,14,15,6,16,17,18,19,20,21,22,23,24,25,26,3,27,7,28,4,29,30,31,32,33,34,35,36,37,38,39,40])),`component`),validateSearch:i});export{a as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-P2up1IkX.js";var t=e;export{t as notFoundComponent};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights_.distribution-gCONJgiU.js","assets/ConsoleFeatureUnavailable-P2up1IkX.js","assets/sidebar-UnsNYOry.js","assets/console-features-api-De6tXQnd.js","assets/arrow-up-right-BPRe5soE.js","assets/NotFoundPage-DUWkihqx.js","assets/link-D95E0fwF.js","assets/empty-Cdfs8tuN.js","assets/insights_.distribution-vyjSwP0f.js","assets/select-DSZKLAHH.js","assets/useCompositeListItem-B9ONn9qn.js","assets/check-Dz_5aNwx.js","assets/insights-usage-rpc-BG7EOn2n.js","assets/valueToPercent-Db73Kirz.js","assets/arrow-left-CxxDwBQs.js","assets/insights-api-CXXCRZhF.js","assets/preload-helper-52zhjEsw.js","assets/rotate-cw-Bn3fIWmY.js","assets/badge-D4Tiwei-.js","assets/BundleIdDisplay-Bm85NZma.js","assets/insights-search-DmxDGWAA.js","assets/constants-C5gi7fdZ.js","assets/PlatformIcon-CZjIJt0C.js","assets/InsightsPageHeader-DhOT-Tmn.js","assets/tabs-DYlO8l4M.js","assets/list-Dq40Mmoj.js","assets/card-VtWYErXu.js","assets/field-CubHQ_EM.js"])))=>i.map(i=>d[i]);
2
- import{i as e,r as t,t as n}from"./preload-helper-52zhjEsw.js";import{r}from"./console-features-api-De6tXQnd.js";import{r as i}from"./insights-search-DmxDGWAA.js";var a=e(`/insights_/distribution`)({beforeLoad:({context:e})=>r(e.queryClient,`insightsAnalytics`),notFoundComponent:t(()=>n(()=>import(`./insights_.distribution-gCONJgiU.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:t(()=>n(()=>import(`./insights_.distribution-vyjSwP0f.js`),__vite__mapDeps([8,2,9,10,11,12,13,6,14,4,15,16,17,18,19,20,21,22,23,24,3,25,26,7,27])),`component`),validateSearch:i});export{a as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-P2up1IkX.js";var t=e;export{t as notFoundComponent};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-P2up1IkX.js";var t=e;export{t as notFoundComponent};
@@ -1 +0,0 @@
1
- import{Di as e,Vr as t,_r as n,gr as r,h as i,p as a}from"./sidebar-UnsNYOry.js";import{t as o}from"./link-D95E0fwF.js";import{o as s}from"./preload-helper-52zhjEsw.js";import{t as c}from"./arrow-up-right-BPRe5soE.js";import{i as l,n as u,r as d,t as f}from"./TargetDisplay-C6ofsnLc.js";import{a as p,i as ee,n as te,o as ne,r as re,t as ie}from"./select-DSZKLAHH.js";import{t as m}from"./download-ekENI2Sw.js";import{o as h,t as ae}from"./-native-builds-search-BJPSRi4t.js";import{t as g}from"./history-DwdBLzJP.js";import{C as _,_ as oe,d as v,g as y,h as b,v as se,x as ce}from"./native-builds-DYvuFp4w.js";import{r as x}from"./dist-BDfiL2Qz.js";import{a as S,i as C,n as w,o as T,r as E,t as le}from"./badge-D4Tiwei-.js";import{r as ue,t as D}from"./constants-C5gi7fdZ.js";import{g as de,i as fe,p as pe}from"./api-USY_IWMu.js";import{t as O}from"./native-builds-urjkBbVZ.js";import{n as me,t as he}from"./PlatformIcon-CZjIJt0C.js";import{a as ge,n as _e,o as ve,r as ye,s as be,t as xe}from"./dialog-Dx9gstou.js";import{i as k,r as A}from"./table-DtcLx8yw.js";import{t as Se}from"./ChannelBadge-B04sTjw5.js";import{a as Ce,c as we,d as Te,f as Ee,i as De,l as Oe,n as ke,o as j,p as Ae,r as je,s as M,t as N,u as Me}from"./RelativeTime-CAwDWRiM.js";import{a as P,c as Ne,i as F,l as Pe,n as Fe,o as Ie,r as Le,s as Re,t as ze}from"./RowReason-CRPq0CHS.js";import{t as Be}from"./NativeBuildsNav-CivF1UpI.js";import{i as Ve,n as He,r as I,t as L}from"./SandboxBadge-BpJoP3BG.js";var Ue=t(`file-up`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]),R=e(),z=`npx hot-updater native-build import <file>`,B=`https://hot-updater.dev/docs/guides/native-build#import-a-build-made-elsewhere`;function We(){return(0,R.jsxs)(xe,{children:[(0,R.jsxs)(be,{render:(0,R.jsx)(r,{"aria-label":`Import a build`,className:`min-h-11 min-w-11 sm:min-h-7 sm:min-w-0`,size:`sm`,variant:`outline`}),children:[(0,R.jsx)(Ue,{"data-icon":`inline-start`}),(0,R.jsx)(`span`,{className:`hidden sm:inline`,children:`Import a build`})]}),(0,R.jsxs)(_e,{className:`sm:max-w-lg`,children:[(0,R.jsxs)(ge,{children:[(0,R.jsx)(ve,{children:`Import a build`}),(0,R.jsx)(ye,{children:`Track an .ipa, .aab, .apk or .app built elsewhere as a patch base.`})]}),(0,R.jsx)(l,{label:`the import command`,value:z,wrap:!0}),(0,R.jsxs)(`a`,{className:n({className:`min-h-11 w-full sm:min-h-8 sm:w-fit`,variant:`outline`}),href:B,rel:`noreferrer`,target:`_blank`,children:[`Import guide`,(0,R.jsx)(c,{"data-icon":`inline-end`})]})]})]})}var Ge={"app-store":`App Store`,"ad-hoc":`ad hoc`,development:`development`,enterprise:`enterprise`},V=e=>{let t=b[e.artifact_kind].label,n=e.submitted_to===null?e.artifact_kind===`ipa`&&e.export_method!==null?`${Ge[e.export_method]} ${t}`:t:`${Ve[e.submitted_to]} build`;return e.is_sandbox?`sandbox ${n}`:n},Ke=e=>{if(e===void 0)return{sentence:`A newer build on its channel reaches people the same way.`,label:`Older: a newer build on its channel reaches people the same way`};let t=ce(e);return{sentence:`A newer ${V(e)} exists${t===null?`.`:`: ${t}`}`,label:`Older: a newer ${V(e)} exists${t===null?``:`, ${t}`}`}};function H({newer:e}){let t=Ke(e);return(0,R.jsx)(ze,{icon:g,label:t.label,reason:t.sentence,children:`Older`})}var qe=`https://hot-updater.dev/docs/guides/native-build#how-a-build-is-tracked`,U=10,W=e=>e===void 0?{channels:`all`}:{channel:e},Je={one:`older build`,other:`older builds`};function Ye({channel:e,paged:t,folded:i,onClearChannel:a}){return t||i?(0,R.jsx)(M,{icon:h,title:i?`Each build here has a newer one`:`No more native builds`,children:(0,R.jsx)(o,{className:n({className:`mt-1 min-h-11 sm:min-h-8`,variant:`outline`}),search:W(e),to:`/native-builds`,children:`Show the newest builds`})}):e===void 0?(0,R.jsxs)(M,{icon:h,title:`No native builds`,children:[(0,R.jsxs)(`p`,{children:[`Build one with`,` `,(0,R.jsx)(`code`,{className:`font-mono text-xs`,children:`native-build android`}),` or`,` `,(0,R.jsx)(`code`,{className:`font-mono text-xs`,children:`native-build ios`}),`, or import one built elsewhere:`]}),(0,R.jsx)(`div`,{className:`w-full text-left`,children:(0,R.jsx)(l,{label:`the import command`,value:z,wrap:!0})}),(0,R.jsxs)(`a`,{className:n({className:`mt-1 min-h-11 sm:min-h-8`,variant:`outline`}),href:qe,rel:`noreferrer`,target:`_blank`,children:[`Native build guide`,(0,R.jsx)(c,{"data-icon":`inline-end`})]}),(0,R.jsxs)(`a`,{className:n({className:`min-h-11 sm:min-h-8`,variant:`outline`}),href:B,rel:`noreferrer`,target:`_blank`,children:[`Import guide`,(0,R.jsx)(c,{"data-icon":`inline-end`})]})]}):(0,R.jsxs)(M,{icon:h,title:(0,R.jsxs)(R.Fragment,{children:[`No native build embeds `,(0,R.jsx)(`span`,{translate:`no`,children:e})]}),children:[(0,R.jsx)(`p`,{children:`A build embeds the channel it was built on. Build one on this channel, or list every channel's builds.`}),(0,R.jsx)(r,{className:`mt-1 min-h-11 sm:min-h-8`,onClick:a,variant:`outline`,children:`Show all channels`})]})}var G=e=>`${_(e.platform)} ${b[e.artifact_kind].label}`;function K({build:e}){return(0,R.jsx)(o,{"aria-label":G(e),className:`relative rounded-sm font-medium whitespace-nowrap text-foreground transition-colors underline-offset-4 after:absolute after:-inset-x-[10px] after:-inset-y-[10px] hover:text-primary hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden`,params:{buildId:e.id},to:`/native-builds/$buildId`,children:b[e.artifact_kind].label})}function q({build:e,inTable:t=!1,older:n=!1,newer:r}){return t?(0,R.jsxs)(`span`,{className:`flex max-w-24 flex-wrap items-center gap-x-1.5 gap-y-1`,children:[(0,R.jsx)(K,{build:e}),(0,R.jsx)(L,{build:e}),n?(0,R.jsx)(H,{newer:r}):null]}):(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1`,children:[(0,R.jsx)(K,{build:e}),(0,R.jsx)(L,{build:e})]})}function J({channel:e,onChannel:t}){return(0,R.jsx)(`button`,{"aria-label":`Show the builds that embed ${e}`,className:`relative flex max-w-full min-w-0 rounded-md text-left after:absolute after:-inset-x-1 after:-inset-y-[11px] focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden`,onClick:()=>t(e),title:e,type:`button`,children:(0,R.jsx)(Se,{channel:e,className:`block max-w-32 truncate`})})}function Xe({build:e}){return!I(e)&&!e.is_store_build?(0,R.jsx)(u,{}):(0,R.jsx)(Y,{build:e,className:`flex flex-col items-start gap-1`})}function Y({build:e,className:t}){return(0,R.jsxs)(`span`,{className:t,children:[(0,R.jsx)(He,{build:e}),e.is_store_build?(0,R.jsx)(le,{className:`px-1.5`,variant:`muted`,children:`Store build`}):null]})}function X({build:e}){return(0,R.jsxs)(`a`,{"aria-label":`Download ${se(e)}`,className:n({className:`min-h-11 sm:min-h-8`,size:`sm`,variant:`outline`}),download:!0,href:oe(e.id),children:[(0,R.jsx)(m,{"data-icon":`inline-start`}),`Download`]})}function Ze({build:e}){return e.build_number?(0,R.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.build_number}):(0,R.jsx)(u,{})}var Z=e=>ue(e.id);function Q({build:e,older:t=!1,newer:n,onChannel:r}){let i=s(),a=y(e);return(0,R.jsxs)(Te,{"aria-label":`Open native build ${e.id}`,className:`data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100`,"data-older":t?!0:void 0,onOpen:()=>void i({to:`/native-builds/$buildId`,params:{buildId:e.id}}),children:[(0,R.jsx)(A,{children:(0,R.jsx)(q,{build:e,inTable:!0,newer:n,older:t})}),(0,R.jsx)(A,{children:(0,R.jsx)(J,{channel:a,onChannel:r})}),(0,R.jsx)(A,{className:`whitespace-nowrap`,children:(0,R.jsx)(me,{platform:e.platform})}),(0,R.jsx)(A,{children:(0,R.jsx)(Ze,{build:e})}),(0,R.jsx)(A,{children:(0,R.jsx)(d,{appVersion:e.app_version,fingerprintHash:e.fingerprint_hash,nativeAppVersion:e.native_app_version})}),(0,R.jsx)(A,{children:(0,R.jsx)(f,{value:e.build_key})}),(0,R.jsx)(A,{children:(0,R.jsx)(Xe,{build:e})}),(0,R.jsx)(A,{className:`whitespace-nowrap text-muted-foreground tabular-nums`,children:v(e.byte_size)}),(0,R.jsx)(A,{className:`text-xs text-muted-foreground`,children:(0,R.jsx)(N,{ms:Z(e)})}),(0,R.jsx)(A,{className:`text-right`,children:(0,R.jsx)(X,{build:e})})]})}function Qe({build:e,older:t=!1,newer:n,onChannel:r}){let i=s(),a=y(e),o=I(e)||e.is_store_build;return(0,R.jsxs)(ke,{"aria-label":`Native build ${G(e)} ${e.id}`,className:`gap-3 border-b-0 data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100`,"data-older":t?!0:void 0,onClick:Ae(()=>void i({to:`/native-builds/$buildId`,params:{buildId:e.id}})),children:[(0,R.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 items-center gap-x-2.5`,children:[(0,R.jsx)(he,{className:`size-4 shrink-0 text-muted-foreground`,platform:e.platform}),(0,R.jsx)(q,{build:e}),t?(0,R.jsx)(H,{newer:n}):null]}),(0,R.jsx)(X,{build:e})]}),(0,R.jsx)(`div`,{className:`flex min-w-0`,children:(0,R.jsx)(J,{channel:a,onChannel:r})}),(0,R.jsxs)(`p`,{className:`flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground`,children:[(0,R.jsx)(`span`,{className:`sr-only`,children:_(e.platform)}),e.build_number?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(`span`,{translate:`no`,children:[`Build`,` `,(0,R.jsx)(`span`,{className:`font-mono tabular-nums text-foreground`,children:e.build_number})]}),(0,R.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}):null,(0,R.jsx)(`span`,{className:`tabular-nums`,children:v(e.byte_size)}),(0,R.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,R.jsx)(N,{ms:Z(e)})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-end gap-x-4 gap-y-6 text-xs`,children:[(0,R.jsxs)(`span`,{className:`flex items-center`,children:[(0,R.jsx)(`span`,{className:`sr-only`,children:`Target `}),(0,R.jsx)(d,{appVersion:e.app_version,fingerprintHash:e.fingerprint_hash,nativeAppVersion:e.native_app_version})]}),e.build_key?(0,R.jsxs)(`span`,{className:`flex items-center`,children:[(0,R.jsx)(`span`,{className:`sr-only`,children:`Build key `}),(0,R.jsx)(f,{value:e.build_key})]}):null]}),o?(0,R.jsx)(Y,{build:e,className:`flex flex-wrap items-center gap-1.5`}):null]})}function $e({fold:e,channel:t,isMobile:n,open:r,onOpenChange:i,onChannel:a}){let o=pe(t,{...e.from===void 0?{}:{from:e.from},to:e.to},r),s=o.data?.pages??[],c=Object.assign({},...s.map(e=>e.newer)),l=s.flatMap(e=>e.rows),u=n?void 0:U,d=o.isError?(0,R.jsx)(F,{columns:u,label:`Older builds`,onRetry:()=>void o.refetch(),state:`error`}):o.isPending||o.isFetchingNextPage?(0,R.jsx)(F,{columns:u,label:`Loading older builds`,state:`loading`}):o.hasNextPage?(0,R.jsx)(F,{columns:u,label:`Older builds`,onMore:()=>void o.fetchNextPage(),state:`more`}):null,f={label:Ie(e,Je),open:r,onOpenChange:i,panelId:`native-build-fold-${e.to}`};return n?(0,R.jsxs)(Fe,{...f,inList:!0,children:[l.map(e=>(0,R.jsx)(`div`,{className:`border-b last:border-b-0`,role:`listitem`,children:(0,R.jsx)(Qe,{build:e,newer:c[e.id],older:!0,onChannel:a})},e.id)),d]}):(0,R.jsxs)(Le,{...f,columns:U,children:[l.map(e=>(0,R.jsx)(Q,{build:e,newer:c[e.id],older:!0,onChannel:a},e.id)),d]})}function et({builds:e,channel:t,paged:n,onChannel:a}){let o=i(),s=Pe(),c=e.data?.entries,{next:l,previous:u}=e.data??{},d=c?.filter(({kind:e})=>e===`row`).length??0;if(e.isError)return(0,R.jsxs)(w,{variant:`destructive`,children:[(0,R.jsx)(T,{}),(0,R.jsx)(S,{children:`Native builds couldn't be loaded`}),(0,R.jsx)(C,{children:`Check your connection and try again.`}),(0,R.jsx)(E,{children:(0,R.jsxs)(r,{onClick:()=>void e.refetch(),size:`xs`,variant:`outline`,children:[(0,R.jsx)(x,{"data-icon":`inline-start`}),`Retry`]})})]});let f=(0,R.jsx)(Ye,{channel:t,folded:(c?.length??0)>0,onClearChannel:()=>a(void 0),paged:n}),p=e=>(0,R.jsx)($e,{channel:t,fold:e,isMobile:o,onChannel:a,onOpenChange:t=>s.set(P(e),t),open:s.isOpen(P(e))},`fold-${e.to}`);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(we,{children:o?(0,R.jsx)(`div`,{"aria-busy":e.isPlaceholderData,"aria-label":`Native builds`,className:`h-full overflow-y-auto aria-busy:opacity-60`,role:`list`,children:e.isPending?(0,R.jsx)(je,{label:`Loading native builds`}):(0,R.jsxs)(R.Fragment,{children:[d===0?(0,R.jsx)(De,{children:f}):null,c?.map(e=>e.kind===`fold`?p(e):(0,R.jsx)(`div`,{className:`border-b last:border-b-0`,role:`listitem`,children:(0,R.jsx)(Qe,{build:e.row,onChannel:a})},e.row.id))]})}):(0,R.jsx)(Ce,{"aria-busy":e.isPlaceholderData,"aria-label":`Native builds`,className:`aria-busy:opacity-60 [&_td]:px-1.5 [&_th]:px-1.5`,header:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(k,{children:`Artifact`}),(0,R.jsx)(k,{children:`Channel`}),(0,R.jsx)(k,{children:`Platform`}),(0,R.jsx)(k,{children:`Build`}),(0,R.jsx)(k,{children:`Target`}),(0,R.jsx)(k,{children:`Build key`}),(0,R.jsx)(k,{children:`Store`}),(0,R.jsx)(k,{children:`Size`}),(0,R.jsx)(k,{children:`Created`}),(0,R.jsx)(k,{className:`text-right`,children:(0,R.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]}),rowGroups:!0,children:e.isPending?(0,R.jsx)(j,{children:(0,R.jsx)(Ee,{columns:U,label:`Loading native builds`})}):(0,R.jsxs)(R.Fragment,{children:[d===0?(0,R.jsx)(j,{children:(0,R.jsx)(Oe,{columns:U,children:f})}):null,Ne(c??[]).map(e=>e.kind===`fold`?p(e.fold):(0,R.jsx)(j,{children:e.rows.map(e=>(0,R.jsx)(Q,{build:e,onChannel:a},e.id))},`rows-${e.rows[0].id}`))]})})}),e.isPending||c===void 0?null:(0,R.jsx)(Me,{count:d,folded:{...Re(c),label:`older`},label:`Native build pages`,noun:[`build`,`builds`],pending:e.isPlaceholderData,newest:n?{search:W(t),to:`/native-builds`}:void 0,next:l===void 0?void 0:{search:{...W(t),before:l},to:`/native-builds`},previous:u===void 0?void 0:{search:{...W(t),...u},to:`/native-builds`}})]})}var tt=`channel:`,nt={data:void 0,isError:!1,isPending:!0,isPlaceholderData:!1,refetch:()=>void 0},$=e=>`${tt}${e}`;function rt({search:e,onSearchChange:t}){let n=fe(),i=n.data?.map(({name:e})=>e)??[],o=ae(e,n.data&&i),s=o===void 0,c=s&&n.isError,{channel:l,before:u,after:d}=o??e,f=de(o??{},{enabled:!s}),m=s?nt:f,g=l===void 0||i.includes(l)?i:[l,...i],_=e=>t(e===void 0?{channels:`all`}:{channel:e});return(0,R.jsxs)(`div`,{className:`flex h-svh min-h-0 min-w-0 flex-col`,children:[(0,R.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,R.jsx)(a,{className:`-ml-1 size-11 lg:size-7`}),(0,R.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,R.jsx)(h,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,R.jsx)(`h1`,{className:`text-sm font-medium`,children:`Native builds`})]}),(0,R.jsx)(`p`,{className:`basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`Store and test builds, each the built-in bundle its OTAs patch from.`})]}),(0,R.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col gap-4 bg-muted/5 p-3 sm:p-6`,children:[(0,R.jsx)(Be,{current:`builds`}),(0,R.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,R.jsxs)(ie,{disabled:s,items:[{label:D,value:`all`},...g.map(e=>({label:e,value:$(e)}))],onOpenChange:e=>{e&&n.refetch()},onValueChange:e=>_(e?.startsWith(tt)?e.slice(8):void 0),value:s?null:l===void 0?`all`:$(l),children:[(0,R.jsx)(p,{"aria-label":`Channel`,className:`min-w-0 flex-1 text-xs data-[size=default]:h-11 sm:w-48 sm:flex-none sm:data-[size=default]:h-8`,children:(0,R.jsx)(ne,{})}),(0,R.jsx)(te,{children:(0,R.jsxs)(re,{children:[(0,R.jsx)(ee,{value:`all`,children:D}),g.map(e=>(0,R.jsx)(ee,{translate:`no`,value:$(e),children:e},e))]})})]}),(0,R.jsx)(`div`,{className:`ml-auto`,children:(0,R.jsx)(We,{})}),(0,R.jsx)(r,{"aria-label":`Refresh native builds`,className:`size-11 sm:size-7`,disabled:m.isPending,onClick:()=>void m.refetch(),size:`icon-sm`,variant:`ghost`,children:(0,R.jsx)(x,{"aria-hidden":`true`})})]}),c?(0,R.jsxs)(w,{variant:`destructive`,children:[(0,R.jsx)(T,{}),(0,R.jsx)(S,{children:`Channels couldn't be loaded`}),(0,R.jsx)(C,{children:`Native builds show once the channels load.`}),(0,R.jsx)(E,{children:(0,R.jsxs)(r,{className:`min-h-11 sm:min-h-7`,onClick:()=>void n.refetch(),size:`xs`,variant:`outline`,children:[(0,R.jsx)(x,{"data-icon":`inline-start`}),`Retry`]})})]}):(0,R.jsx)(et,{builds:m,channel:l,onChannel:_,paged:u!==void 0||d!==void 0})]})]})}function it(){let e=O.useSearch(),t=O.useNavigate();return(0,R.jsx)(rt,{onSearchChange:e=>void t({search:e}),search:e})}export{it as component};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-builds-BqfRi0ou.js","assets/sidebar-UnsNYOry.js","assets/preload-helper-52zhjEsw.js","assets/link-D95E0fwF.js","assets/select-DSZKLAHH.js","assets/useCompositeListItem-B9ONn9qn.js","assets/check-Dz_5aNwx.js","assets/arrow-up-right-BPRe5soE.js","assets/TargetDisplay-C6ofsnLc.js","assets/copy-BxI24-g-.js","assets/key-round-B-vaAsR7.js","assets/native-builds-DYvuFp4w.js","assets/constants-C5gi7fdZ.js","assets/dist-BDfiL2Qz.js","assets/HashValueDisplay-N89T2mVj.js","assets/download-ekENI2Sw.js","assets/-native-builds-search-BJPSRi4t.js","assets/history-DwdBLzJP.js","assets/badge-D4Tiwei-.js","assets/ChannelBadge-B04sTjw5.js","assets/RelativeTime-CAwDWRiM.js","assets/relativeTime-Wk64dka-.js","assets/chevron-right-CuYrscDY.js","assets/table-DtcLx8yw.js","assets/RowReason-CRPq0CHS.js","assets/PlatformIcon-CZjIJt0C.js","assets/NativeBuildsNav-CivF1UpI.js","assets/tabs-DYlO8l4M.js","assets/SandboxBadge-BpJoP3BG.js","assets/dialog-Dx9gstou.js","assets/api-USY_IWMu.js","assets/useMutation-BWX97JX2.js"])))=>i.map(i=>d[i]);
2
- import{i as e,r as t,t as n}from"./preload-helper-52zhjEsw.js";import{i as r}from"./-native-builds-search-BJPSRi4t.js";var i=e(`/native-builds`)({component:t(()=>n(()=>import(`./native-builds-BqfRi0ou.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31])),`component`),validateSearch:r});export{i as t};
@@ -1 +0,0 @@
1
- import{$ as e,Di as t,Ri as n,Vi as r,Vr as i,_r as a,gr as o,p as s}from"./sidebar-UnsNYOry.js";import{t as c}from"./link-D95E0fwF.js";import{t as l}from"./arrow-up-right-BPRe5soE.js";import{a as u,i as d,n as f,r as p,t as ee}from"./TargetDisplay-C6ofsnLc.js";import{t as m}from"./chevron-right-CuYrscDY.js";import{n as te,t as h}from"./native-builds_._buildId-EnQK17U1.js";import{t as ne}from"./download-ekENI2Sw.js";import{i as re,n as ie,r as g,t as ae}from"./RolloutPercentageBadge-DlaDqnOs.js";import{t as oe}from"./git-branch-BWrvONjc.js";import{o as se}from"./-native-builds-search-BJPSRi4t.js";import{t as ce}from"./history-DwdBLzJP.js";import{C as _,D as v,S as le,_ as y,d as b,h as x,m as ue,s as de,v as S,x as fe,y as C}from"./native-builds-DYvuFp4w.js";import{n as w,r as T}from"./dist-BDfiL2Qz.js";import{t as pe}from"./smartphone-lSZWrqxx.js";import{a as E,i as D,n as O,o as k,r as A,t as j}from"./badge-D4Tiwei-.js";import{a as M,n as N,o as P,t as F}from"./card-VtWYErXu.js";import{a as me}from"./constants-C5gi7fdZ.js";import{n as he}from"./relativeTime-Wk64dka-.js";import{a as ge,d as _e,f as ve,h as ye,l as be,u as xe}from"./api-USY_IWMu.js";import{a as Se,m as Ce,n as we}from"./IosInstall-ChFnQISV.js";import{a as I,i as L,n as R,o as z,r as B,t as V}from"./empty-Cdfs8tuN.js";import{t as Te}from"./PlatformIcon-CZjIJt0C.js";import{a as Ee,i as H,n as U,o as W,r as G,t as K}from"./table-DtcLx8yw.js";import{t as De}from"./BundleIdDisplay-Bm85NZma.js";import{t as Oe}from"./ChannelBadge-B04sTjw5.js";import{a as q,n as ke,r as J,t as Ae}from"./SandboxBadge-BpJoP3BG.js";import{t as Y}from"./QrCode-DJ5leikY.js";var je=i(`circle-slash`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]),Me=i(`package-open`,[[`path`,{d:`M12 22v-9`,key:`x3hkom`}],[`path`,{d:`M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z`,key:`2ntwy6`}],[`path`,{d:`M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13`,key:`1pmm1c`}],[`path`,{d:`M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z`,key:`12ttoo`}]]),X=t();function Z({value:e,length:t,shown:n=e.slice(0,t),label:r}){let i=async()=>{try{await navigator.clipboard.writeText(e),w.success(`Copied to clipboard`,{description:e})}catch{w.error(`Could not copy the ${r}`)}};return(0,X.jsx)(`button`,{"aria-label":`Copy the ${r} ${e}`,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`,onClick:e=>{e.stopPropagation(),i()},title:e,translate:`no`,type:`button`,children:n})}function Ne({hash:e}){let t=ge();if(e===null)return(0,X.jsx)(f,{});let n=ie(t.data?.console.gitUrl,e);return n===null?(0,X.jsx)(Z,{label:`commit`,length:7,value:e}):(0,X.jsx)(`a`,{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`,href:n,onClick:e=>e.stopPropagation(),rel:`noreferrer`,target:`_blank`,title:e,translate:`no`,children:e.slice(0,7)})}function Q({label:e,children:t}){return(0,X.jsxs)(`div`,{className:`grid gap-1 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4`,children:[(0,X.jsx)(`dt`,{className:`text-xs font-medium text-muted-foreground`,children:e}),(0,X.jsx)(`dd`,{className:`min-w-0 text-sm`,children:t})]})}function Pe({detail:e}){let{build:t}=e,n=be();if(t.is_sandbox)return null;let r=!t.is_store_build;return(0,X.jsx)(o,{className:`min-h-11 shrink-0 sm:min-h-8`,disabled:n.isPending,onClick:()=>n.mutate({id:t.id,storeBuild:r},{onSuccess:()=>{w.success(r?`Marked as the store build`:`Mark cleared`)},onError:e=>{w.error(`Could not change the mark`,{description:e.message})}}),size:`sm`,type:`button`,variant:`outline`,children:r?`Mark as store build`:`Clear mark`})}function Fe({detail:e}){let{build:t,newestInScope:n,storeBuildInScope:r}=e;if(t.is_sandbox)return(0,X.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border bg-muted/40 p-3 text-xs`,children:[(0,X.jsx)(je,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground`}),(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`No patch base.`}),` `,de]})]});let i=r??n;if(i===null)return null;let a=i.id===t.id;return(0,X.jsxs)(`div`,{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`,children:[(0,X.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,X.jsx)(a?te:ce,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground`}),r?.id===t.id?(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`Store build.`}),` New deploys to this scope patch from this build.`]}):a?(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`Current baseline.`}),` The newest build, and no store build is marked. New deploys to this scope patch from this build.`]}):(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`Not the base.`}),` New deploys patch from`,` `,(0,X.jsxs)(c,{className:`inline-flex items-center gap-0.5 font-medium underline underline-offset-4`,params:{buildId:i.id},to:`/native-builds/$buildId`,children:[fe(i)??(0,X.jsxs)(X.Fragment,{children:[_(i.platform),` `,x[i.artifact_kind].label,` ·`,` `,(0,X.jsx)(g,{uuid:i.id})]}),(0,X.jsx)(l,{"aria-hidden":`true`,className:`size-3`})]}),`, so this one gets no new patches.`]})]}),(0,X.jsx)(Pe,{detail:e})]})}function Ie({detail:e}){let{build:t,builtInBundle:n,channel:r}=e,i=n?.childCount??0;return(0,X.jsxs)(F,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(M,{className:`border-b px-4 py-3`,children:(0,X.jsx)(P,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Built-in bundle`})})}),(0,X.jsxs)(N,{className:`flex flex-col gap-4 p-4 sm:p-6`,children:[(0,X.jsxs)(`dl`,{className:`flex flex-col gap-3`,children:[(0,X.jsx)(Q,{label:`Bundle ID`,children:(0,X.jsx)(De,{bundleId:t.min_bundle_id})}),(0,X.jsx)(Q,{label:`OTAs patching from it`,children:(0,X.jsx)(`span`,{className:`tabular-nums`,children:i===1?`1 bundle`:`${i} bundles`})}),(0,X.jsx)(Q,{label:`Scope`,children:(0,X.jsxs)(`span`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,X.jsx)(c,{"aria-label":`Show the builds that embed ${r}`,className:`relative rounded-md after:absolute after:-inset-x-1 after:-inset-y-[11px] sm:after:hidden`,search:{channel:r},to:`/native-builds`,children:(0,X.jsx)(Oe,{channel:r})}),(0,X.jsx)(`span`,{className:`text-xs`,children:_(t.platform)})]})}),(0,X.jsx)(Q,{label:`Target`,children:(0,X.jsx)(`span`,{className:`text-xs`,children:(0,X.jsx)(p,{appVersion:t.app_version,fingerprintHash:t.fingerprint_hash,nativeAppVersion:t.native_app_version})})}),(0,X.jsx)(Q,{label:`Build key`,children:(0,X.jsx)(`span`,{className:`text-xs`,children:(0,X.jsx)(ee,{value:t.build_key})})}),t.build_number?(0,X.jsx)(Q,{label:`Build`,children:(0,X.jsx)(`span`,{className:`font-mono text-xs tabular-nums`,translate:`no`,children:t.build_number})}):null,J(t)?(0,X.jsx)(Q,{label:`Store`,children:(0,X.jsx)(ke,{build:t,withTime:!0})}):null,(0,X.jsx)(Q,{label:`Commit`,children:(0,X.jsx)(Ne,{hash:t.git_commit_hash})}),(0,X.jsx)(Q,{label:`Created`,children:(0,X.jsx)(g,{format:`both`,uuid:t.id})})]}),(0,X.jsx)(Fe,{detail:e}),(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.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.`})]})]})}var Le=r(he(),1),Re=r(n(),1),ze=`The .ipa installs only on devices its signing profile allows (development or ad hoc)`,Be=e=>{switch(e.artifact_kind){case`ipa`:return e.is_sandbox?`${ze}.`:`${ze}; an App Store export reaches testers through TestFlight.`;case`aab`:return`The .aab installs through Google Play or bundletool, not from the file.`;default:return}},Ve=e=>{switch(e.artifact_kind){case`apk`:return`Scan with an Android phone's camera, then open the APK to install it.`;case`app`:return`Scan to download the .app.zip on a Mac.`;default:return`Scan to download. ${Be(e)}`}};function He(){let{origin:e,pathname:t}=window.location;return(0,X.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,X.jsx)(Y,{className:`size-48`,label:`Open this page on an iPhone`,value:`${e}${t}`}),(0,X.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:`Scan with an iPhone to install this build from here. The phone signs in to the Console first.`})]})}function $({build:e,url:t,note:n}){return(0,X.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,X.jsx)(Y,{className:`size-48`,label:`Download ${S(e)}`,value:t}),(0,X.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:Ve(e)}),n?(0,X.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:n}):null]})}function Ue({message:e}){return(0,X.jsxs)(O,{variant:`destructive`,children:[(0,X.jsx)(k,{}),(0,X.jsx)(E,{children:`The download link couldn't be created`}),(0,X.jsx)(D,{children:e})]})}function We({build:t}){let n=ve(t.id),r=n.data?.url;if(r===null){let e=Be(t);return(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,X.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.`}),e?(0,X.jsx)(`p`,{children:e}):null]})}return r===void 0?n.isError?(0,X.jsx)(Ue,{message:n.error.message}):(0,X.jsx)(e,{className:`size-48`}):(0,X.jsx)($,{build:t,note:`This link expires. If the download fails, reload this page.`,url:r})}function Ge({build:e}){return(0,X.jsx)(`span`,{className:`font-mono text-foreground`,translate:`no`,children:e.submitted_version??`this build`})}function Ke({build:e}){let t=e.submitted_to===`testflight`?{name:`App Store Connect`,url:`https://appstoreconnect.apple.com/apps`}:{name:`Play Console`,url:`https://play.google.com/console`};return(0,X.jsxs)(F,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(M,{className:`border-b px-4 py-3`,children:(0,X.jsx)(P,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Install`})})}),(0,X.jsxs)(N,{className:`flex min-w-0 flex-col gap-4 p-4 sm:p-6`,children:[(0,X.jsx)(qe,{build:e}),(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:flex-wrap`,children:[(0,X.jsxs)(`a`,{className:a({className:`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`}),href:t.url,rel:`noreferrer`,target:`_blank`,children:[(0,X.jsx)(re,{"data-icon":`inline-start`}),`Open `,t.name]}),(0,X.jsxs)(`a`,{className:a({className:`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,variant:`outline`}),download:!0,href:y(e.id),children:[(0,X.jsx)(ne,{"data-icon":`inline-start`}),(0,X.jsxs)(`span`,{className:`text-left [overflow-wrap:anywhere]`,children:[`Download `,S(e)]})]})]})]})]})}function qe({build:e}){switch(e.artifact_kind){case`apk`:return(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Your browser needs the "Install unknown apps" permission.`}),e.is_sandbox?(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Its .sandbox ID installs it beside a Play copy.`}):(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,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.`}),(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`On an emulator or a phone over USB, install and open it from your project:`}),(0,X.jsx)(d,{label:`the install command`,value:C(e)})]});case`app`:return(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`It runs only in the iOS Simulator. In your project, install and open it on the booted one:`}),(0,X.jsx)(d,{label:`the install command`,value:C(e)})]});case`aab`:return J(e)?(0,X.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Submitted to`,` `,e.submitted_to===`play-internal`?q[`play-internal`].name:q[e.submitted_to].label,` `,`as `,(0,X.jsx)(Ge,{build:e}),`.`,` `,e.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.`]}):(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`For testers, build and release to internal testing:`}),(0,X.jsx)(d,{label:`the Google Play command`,value:`npx hot-updater google-play upload`})]});case`ipa`:return J(e)?(0,X.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`On TestFlight as `,(0,X.jsx)(Ge,{build:e}),`. Internal testers install it from the TestFlight app once App Store Connect has processed it, and a preview's pull request comment shows that state.`]}):(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Over USB, Xcode or Apple Configurator installs it.`})}}function Je({link:e,url:t}){return e?.status===`no-secret`?(0,X.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,e.secretName,` on the Console to create links.`]}):e?.status!==`issued`||t===null?null:(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(d,{label:`the download link`,value:t}),(0,X.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Anyone with this link can download this build until`,` `,(0,X.jsxs)(`span`,{className:`whitespace-nowrap`,children:[(0,Le.default)(e.expiresAt).format(`YYYY-MM-DD`),`.`]})]})]})}function Ye({build:e}){return J(e)&&(e.artifact_kind===`ipa`||e.artifact_kind===`aab`)?(0,X.jsx)(Ke,{build:e}):(0,X.jsx)(Ze,{build:e})}function Xe({children:e}){let[t,n]=(0,Re.useState)(!1),r=(0,Re.useId)();return(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3 border-t pt-3`,children:[(0,X.jsxs)(`button`,{"aria-controls":r,"aria-expanded":t,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`,onClick:()=>n(e=>!e),type:`button`,children:[(0,X.jsx)(m,{"aria-hidden":`true`,className:`size-3.5 shrink-0 transition-transform group-aria-expanded/other:rotate-90 motion-reduce:transition-none`}),`Other ways to install`]}),(0,X.jsx)(`div`,{hidden:!t,id:r,children:e})]})}function Ze({build:t}){let n=S(t),r=_e(t.id),i=r.data?.status===`issued`?le(window.location,t.id,r.data.token):null,o=Se(),s=t.artifact_kind===`ipa`,c=s&&o?.ios===!0,l=(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,X.jsx)(qe,{build:t}),(0,X.jsxs)(`a`,{className:a({className:`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,variant:`outline`}),download:!0,href:i??y(t.id),children:[(0,X.jsx)(ne,{"data-icon":`inline-start`}),(0,X.jsxs)(`span`,{className:`text-left [overflow-wrap:anywhere]`,children:[`Download `,n]})]}),(0,X.jsx)(Je,{link:r.data,url:i})]});return(0,X.jsxs)(F,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(M,{className:`border-b px-4 py-3`,children:(0,X.jsx)(P,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Install`})})}),c?(0,X.jsxs)(N,{className:`flex min-w-0 flex-col gap-4 p-4 sm:p-6`,children:[(0,X.jsx)(we,{build:t,device:o}),(0,X.jsx)(Xe,{children:l})]}):(0,X.jsxs)(N,{className:`grid gap-6 p-4 sm:grid-cols-[12rem_minmax(0,1fr)] sm:p-6`,children:[s&&i!==null?(0,X.jsx)(He,{}):i===null?r.data===void 0?r.isError?(0,X.jsx)(Ue,{message:r.error.message}):(0,X.jsx)(e,{className:`size-48`}):(0,X.jsx)(We,{build:t}):(0,X.jsx)($,{build:t,url:i}),l]})]})}function Qe({build:t}){let n=Ce(t.id),r=n.data;if(r?.status===`store`||r?.status===`enterprise`)return null;let i=r?.status===`listed`?r.devices:null;return(0,X.jsxs)(F,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsxs)(M,{className:`flex flex-row items-center gap-2 border-b px-4 py-3`,children:[(0,X.jsx)(P,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Devices in this build`})}),i===null?null:(0,X.jsx)(`span`,{className:`text-xs tabular-nums text-muted-foreground`,children:i.length}),(0,X.jsx)(c,{className:a({className:`ml-auto h-11 sm:h-7`,size:`sm`,variant:`ghost`}),to:`/native-builds/devices`,children:`iOS devices`})]}),(0,X.jsx)(N,{className:`p-0`,children:n.isPending?(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`Reading this IPA's devices`}),(0,X.jsx)(e,{className:`h-8 w-full`}),(0,X.jsx)(e,{className:`h-8 w-full`})]}):n.isError||r?.status===`unavailable`?(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 p-4 text-xs text-muted-foreground`,children:[(0,X.jsx)(`p`,{className:`min-w-0 flex-1`,children:`The Console couldn't read this IPA's devices from storage.`}),(0,X.jsxs)(o,{className:`h-11 sm:h-7`,onClick:()=>void n.refetch(),size:`sm`,variant:`outline`,children:[(0,X.jsx)(T,{"data-icon":`inline-start`}),`Retry`]})]}):i?.length===0?(0,X.jsx)(`p`,{className:`p-4 text-xs text-muted-foreground`,children:`This IPA lists no devices.`}):(0,X.jsx)(`ul`,{"aria-label":`Devices in this build`,className:`divide-y`,children:i?.map(e=>(0,X.jsxs)(`li`,{className:`flex min-h-11 min-w-0 items-center gap-3 px-4 py-2 text-sm`,children:[(0,X.jsx)(pe,{"aria-hidden":`true`,className:`size-4 shrink-0 text-muted-foreground`}),(0,X.jsxs)(`span`,{className:`flex min-w-0 flex-col items-start`,children:[(0,X.jsx)(`span`,{className:e.name===null?`truncate text-muted-foreground`:`truncate`,children:e.name??`Unknown device`}),(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:(0,X.jsx)(Z,{label:`UDID`,shown:ue(e.udid),value:e.udid})})]})]},e.udid))})})]})}var $e=`https://hot-updater.dev/docs/guides/bundle-diffing#first-ota-update`;function et({detail:t,page:n,onPage:r}){let i=n.before!==void 0||n.after!==void 0,s=ye(t.build.min_bundle_id,n,i),d=i?s.data:t.patches,{next:f,previous:p}=d??{};return(0,X.jsxs)(F,{className:`overflow-hidden shadow-sm`,id:`patches`,children:[(0,X.jsx)(M,{className:`border-b px-4 py-3`,children:(0,X.jsx)(P,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Patches from this build`})})}),(0,X.jsxs)(N,{className:`p-0`,children:[i&&s.isError?(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsxs)(O,{variant:`destructive`,children:[(0,X.jsx)(k,{}),(0,X.jsx)(E,{children:`Patches couldn't be loaded`}),(0,X.jsx)(D,{children:s.error.message}),(0,X.jsx)(A,{children:(0,X.jsxs)(o,{onClick:()=>void s.refetch(),size:`xs`,variant:`outline`,children:[(0,X.jsx)(T,{"data-icon":`inline-start`}),`Retry`]})})]})}):d===void 0?(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`Loading patches`}),(0,X.jsx)(e,{className:`h-4 w-full`}),(0,X.jsx)(e,{className:`h-4 w-2/3`})]}):d.data.length===0?i?(0,X.jsxs)(V,{className:`py-10`,children:[(0,X.jsx)(L,{children:(0,X.jsx)(z,{children:`No more patches`})}),(0,X.jsx)(o,{className:`min-h-11 sm:min-h-8`,onClick:()=>r({}),variant:`outline`,children:`Show the newest patches`})]}):(0,X.jsxs)(V,{className:`py-10`,children:[(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{variant:`icon`,children:(0,X.jsx)(oe,{})}),(0,X.jsx)(z,{children:`No patches from this build`}),(0,X.jsx)(B,{children:t.build.is_sandbox?de:(0,X.jsxs)(X.Fragment,{children:[`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`,` `,(0,X.jsx)(`code`,{className:`font-mono`,children:`patch`}),` in`,` `,(0,X.jsx)(`code`,{className:`font-mono`,children:`hot-updater.config.ts`}),`.`]})})]}),t.build.is_sandbox?null:(0,X.jsx)(R,{children:(0,X.jsxs)(`a`,{className:a({className:`min-h-11 sm:min-h-8`,variant:`outline`}),href:$e,rel:`noreferrer`,target:`_blank`,children:[`Bundle diffing guide`,(0,X.jsx)(l,{"data-icon":`inline-end`})]})})]}):(0,X.jsxs)(K,{"aria-busy":i&&s.isPlaceholderData,"aria-label":`Patches from this build`,className:`table-fixed`,children:[(0,X.jsx)(Ee,{children:(0,X.jsxs)(W,{children:[(0,X.jsx)(H,{children:`Target bundle`}),(0,X.jsx)(H,{className:`w-28`,children:`Patch size`}),(0,X.jsx)(H,{className:`hidden w-32 sm:table-cell`,children:`Created`})]})}),(0,X.jsx)(U,{children:d.data.map(e=>(0,X.jsxs)(W,{children:[(0,X.jsx)(G,{className:`py-3 whitespace-normal`,children:(0,X.jsx)(c,{className:`block font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline`,search:{bundleId:e.bundleId},title:e.bundleId,to:`/`,translate:`no`,children:e.bundleId})}),(0,X.jsx)(G,{className:`text-xs tabular-nums`,children:b(e.byteSize)}),(0,X.jsx)(G,{className:`hidden sm:table-cell`,children:(0,X.jsx)(g,{uuid:e.bundleId})})]},e.bundleId))})]}),f!==void 0||p!==void 0?(0,X.jsxs)(`nav`,{"aria-label":`Patch pages`,className:`flex items-center justify-end gap-2 border-t px-4 py-2`,children:[(0,X.jsxs)(o,{className:`min-h-11 sm:min-h-7`,disabled:p===void 0||i&&s.isPlaceholderData,onClick:()=>r({after:p}),size:`sm`,variant:`ghost`,children:[(0,X.jsx)(u,{"data-icon":`inline-start`}),`Newer`]}),(0,X.jsxs)(o,{className:`min-h-11 sm:min-h-7`,disabled:f===void 0||i&&s.isPlaceholderData,onClick:()=>r({before:f}),size:`sm`,variant:`ghost`,children:[`Older`,(0,X.jsx)(m,{"data-icon":`inline-end`})]})]}):null]})]})}var tt=(e,t)=>{let n=e.data.find(e=>e.bundleId===t);if(n!==void 0)return{kind:`patch`,byteSize:n.byteSize};let r=e.data.at(-1)?.bundleId;return e.next!==void 0&&r!==void 0&&t<r?{kind:`unknown`}:{kind:`full`}};function nt({download:e}){switch(e.kind){case`patch`:return(0,X.jsxs)(`span`,{className:`text-xs`,children:[`Patch`,` `,(0,X.jsxs)(`span`,{className:`text-muted-foreground tabular-nums`,children:[`(`,b(e.byteSize),`)`]})]});case`full`:return(0,X.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Full bundle`});case`unknown`:return(0,X.jsx)(`a`,{className:`text-xs underline-offset-4 hover:underline`,href:`#patches`,children:`See patches`})}}function rt({detail:e}){let{build:t,channel:n,servedNow:r,patches:i,catalogScopeKey:o}=e,s=r.find(({rolloutCohortCount:e,targetCohorts:t})=>e>0||t.length>0)?.bundleId,u=t.is_store_build&&s!=null&&tt(i,s).kind===`full`?[`npx hot-updater patch`,`-p ${t.platform}`,`-c ${v(n)}`,`-b ${v(s)}`,`--base-artifact-id ${v(t.min_bundle_id)}`].join(` `):null,f=(0,X.jsxs)(c,{className:`inline-flex items-center gap-0.5 underline-offset-4 hover:underline`,search:{scopeKey:o},to:`/`,children:[`All releases in this scope`,(0,X.jsx)(l,{"aria-hidden":`true`,className:`size-3`})]});return(0,X.jsxs)(F,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(M,{className:`border-b px-4 py-3`,children:(0,X.jsx)(P,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Served now`})})}),(0,X.jsx)(N,{className:`p-0`,children:r.length===0?(0,X.jsxs)(V,{className:`py-10`,children:[(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{variant:`icon`,children:(0,X.jsx)(Me,{})}),(0,X.jsx)(z,{children:`No OTA for this build yet`}),(0,X.jsxs)(B,{children:[`No release in this build's scope is newer than its built-in bundle. Deploy one with`,` `,(0,X.jsx)(`code`,{className:`font-mono`,children:`hot-updater deploy`}),`, and it shows here.`]})]}),(0,X.jsx)(R,{children:(0,X.jsx)(c,{className:a({className:`min-h-11 sm:min-h-8`,variant:`outline`}),search:{scopeKey:o},to:`/`,children:`All releases in this scope`})})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(K,{"aria-label":`Served now`,className:`table-fixed`,children:[(0,X.jsx)(Ee,{children:(0,X.jsxs)(W,{children:[(0,X.jsx)(H,{children:`Bundle`}),(0,X.jsx)(H,{className:`hidden w-40 md:table-cell`,children:`Rollout`}),(0,X.jsx)(H,{className:`hidden w-32 sm:table-cell`,children:`Created`}),(0,X.jsx)(H,{className:`w-32`,children:`First OTA download`})]})}),(0,X.jsx)(U,{children:r.map(e=>{let t=e.bundleId,n=e.rolloutCohortCount/me*100;return(0,X.jsxs)(W,{children:[(0,X.jsx)(G,{className:`py-3 whitespace-normal`,children:(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,X.jsx)(c,{className:`font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline`,search:{releaseId:e.releaseId},title:t,to:`/`,translate:`no`,children:t}),e.message?(0,X.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.message}):null]})}),(0,X.jsx)(G,{className:`hidden md:table-cell`,children:(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[e.targetCohorts.length>0?(0,X.jsx)(j,{variant:`secondary`,children:e.targetCohorts.length===1?`1 cohort`:`${e.targetCohorts.length} cohorts`}):(0,X.jsx)(ae,{percentage:n}),e.shouldForceUpdate?(0,X.jsx)(j,{variant:`outline`,children:`Forced`}):null]})}),(0,X.jsx)(G,{className:`hidden sm:table-cell`,children:(0,X.jsx)(g,{uuid:t})}),(0,X.jsx)(G,{children:(0,X.jsx)(nt,{download:tt(i,t)})})]},e.releaseId)})})]}),u===null?null:(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 border-t px-4 py-3 text-xs`,children:[(0,X.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:`}),(0,X.jsx)(d,{label:`the patch command`,value:u})]}),(0,X.jsxs)(`p`,{className:`border-t px-4 py-3 text-xs text-muted-foreground`,children:[`What the update check serves an install of this build now, newest first: not the history. `,f]})]})})]})}function it({buildId:t,search:n,onSearchChange:r}){let i=xe(t),l=i.data,d={...n.patchesBefore===void 0?{}:{before:n.patchesBefore},...n.patchesAfter===void 0?{}:{after:n.patchesAfter}};return(0,X.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,X.jsxs)(`header`,{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`,children:[(0,X.jsx)(s,{className:`-ml-1 size-11 lg:size-7`}),(0,X.jsxs)(c,{className:a({className:`min-h-11 sm:min-h-7`,size:`sm`,variant:`ghost`}),search:l?{channel:l.channel}:{channels:`all`},to:`/native-builds`,children:[(0,X.jsx)(u,{"data-icon":`inline-start`}),`Native builds`]}),l?(0,X.jsxs)(`h1`,{className:`flex min-w-0 items-center gap-1.5 text-sm font-medium`,children:[(0,X.jsx)(Te,{className:`size-3.5 shrink-0 text-muted-foreground`,platform:l.build.platform}),(0,X.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5`,children:[(0,X.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 whitespace-nowrap`,children:[(0,X.jsxs)(`span`,{className:`sr-only`,children:[_(l.build.platform),` `]}),x[l.build.artifact_kind].label,(0,X.jsx)(Ae,{build:l.build})]}),(0,X.jsxs)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:[`· `,(0,X.jsx)(`span`,{translate:`no`,children:l.channel})]})]}),(0,X.jsx)(`span`,{className:`hidden text-xs font-normal text-muted-foreground tabular-nums sm:inline`,children:b(l.build.byte_size)})]}):(0,X.jsx)(`h1`,{className:`sr-only`,children:`Native build`})]}),(0,X.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,X.jsx)(`div`,{className:`mx-auto flex w-full max-w-5xl flex-col gap-4 sm:gap-6`,children:i.isError?(0,X.jsxs)(O,{variant:`destructive`,children:[(0,X.jsx)(k,{}),(0,X.jsx)(E,{children:`The native build couldn't be loaded`}),(0,X.jsx)(D,{children:i.error.message}),(0,X.jsx)(A,{children:(0,X.jsxs)(o,{onClick:()=>void i.refetch(),size:`xs`,variant:`outline`,children:[(0,X.jsx)(T,{"data-icon":`inline-start`}),`Retry`]})})]}):l===void 0?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`Loading the native build`}),(0,X.jsx)(e,{className:`h-56 w-full rounded-xl`}),(0,X.jsx)(e,{className:`h-64 w-full rounded-xl`})]}):l===null?(0,X.jsxs)(V,{className:`border py-16`,children:[(0,X.jsxs)(L,{children:[(0,X.jsx)(I,{variant:`icon`,children:(0,X.jsx)(se,{})}),(0,X.jsx)(z,{children:`Native build not found`}),(0,X.jsx)(B,{children:`No native build has this ID. It may have been deleted, or be from another console.`})]}),(0,X.jsx)(R,{children:(0,X.jsx)(c,{className:a({className:`min-h-11 sm:min-h-8`,variant:`outline`}),search:{channels:`all`},to:`/native-builds`,children:`Show all native builds`})})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ye,{build:l.build}),l.build.artifact_kind===`ipa`&&!J(l.build)?(0,X.jsx)(Qe,{build:l.build}):null,(0,X.jsx)(Ie,{detail:l}),(0,X.jsx)(rt,{detail:l}),(0,X.jsx)(et,{detail:l,onPage:e=>r({...e.before===void 0?{}:{patchesBefore:e.before},...e.after===void 0?{}:{patchesAfter:e.after}}),page:d})]})})})]})}function at(){let{buildId:e}=h.useParams(),t=h.useSearch(),n=h.useNavigate();return(0,X.jsx)(it,{buildId:e,onSearchChange:e=>void n({search:e,replace:!0}),search:t})}export{at as component};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-builds_._buildId-Cy_v6FQF.js","assets/sidebar-UnsNYOry.js","assets/link-D95E0fwF.js","assets/relativeTime-Wk64dka-.js","assets/arrow-up-right-BPRe5soE.js","assets/TargetDisplay-C6ofsnLc.js","assets/copy-BxI24-g-.js","assets/key-round-B-vaAsR7.js","assets/native-builds-DYvuFp4w.js","assets/constants-C5gi7fdZ.js","assets/dist-BDfiL2Qz.js","assets/HashValueDisplay-N89T2mVj.js","assets/chevron-right-CuYrscDY.js","assets/download-ekENI2Sw.js","assets/RolloutPercentageBadge-DlaDqnOs.js","assets/badge-D4Tiwei-.js","assets/git-branch-BWrvONjc.js","assets/-native-builds-search-BJPSRi4t.js","assets/history-DwdBLzJP.js","assets/smartphone-lSZWrqxx.js","assets/QrCode-DJ5leikY.js","assets/BundleIdDisplay-Bm85NZma.js","assets/ChannelBadge-B04sTjw5.js","assets/PlatformIcon-CZjIJt0C.js","assets/IosInstall-ChFnQISV.js","assets/useMutation-BWX97JX2.js","assets/loader-circle-C26cZDSM.js","assets/field-CubHQ_EM.js","assets/api-USY_IWMu.js","assets/preload-helper-52zhjEsw.js","assets/SandboxBadge-BpJoP3BG.js","assets/card-VtWYErXu.js","assets/empty-Cdfs8tuN.js","assets/table-DtcLx8yw.js"])))=>i.map(i=>d[i]);
2
- import{Vr as e}from"./sidebar-UnsNYOry.js";import{i as t,r as n,t as r}from"./preload-helper-52zhjEsw.js";import{r as i}from"./-native-builds-search-BJPSRi4t.js";var a=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),o=t(`/native-builds_/$buildId`)({component:n(()=>r(()=>import(`./native-builds_._buildId-Cy_v6FQF.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])),`component`),validateSearch:i});export{a as n,o as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-builds_.devices-CjmuLWk7.js","assets/sidebar-UnsNYOry.js","assets/alert-dialog-ndHfUqUh.js","assets/select-DSZKLAHH.js","assets/useCompositeListItem-B9ONn9qn.js","assets/check-Dz_5aNwx.js","assets/CompositeItem-CcgQyrSU.js","assets/tabs-DYlO8l4M.js","assets/link-D95E0fwF.js","assets/relativeTime-Wk64dka-.js","assets/TargetDisplay-C6ofsnLc.js","assets/copy-BxI24-g-.js","assets/key-round-B-vaAsR7.js","assets/native-builds-DYvuFp4w.js","assets/constants-C5gi7fdZ.js","assets/dist-BDfiL2Qz.js","assets/HashValueDisplay-N89T2mVj.js","assets/-native-builds-search-BJPSRi4t.js","assets/loader-circle-C26cZDSM.js","assets/smartphone-lSZWrqxx.js","assets/trash-2-BPH7ydek.js","assets/badge-D4Tiwei-.js","assets/QrCode-DJ5leikY.js","assets/RelativeTime-CAwDWRiM.js","assets/chevron-right-CuYrscDY.js","assets/table-DtcLx8yw.js","assets/IosInstall-ChFnQISV.js","assets/useMutation-BWX97JX2.js","assets/field-CubHQ_EM.js","assets/api-USY_IWMu.js","assets/preload-helper-52zhjEsw.js","assets/NativeBuildsNav-CivF1UpI.js","assets/card-VtWYErXu.js","assets/dialog-Dx9gstou.js"])))=>i.map(i=>d[i]);
2
- import{i as e,r as t,t as n}from"./preload-helper-52zhjEsw.js";import{n as r}from"./-native-builds-search-BJPSRi4t.js";var i=e(`/native-builds_/devices`)({component:t(()=>n(()=>import(`./native-builds_.devices-CjmuLWk7.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])),`component`),validateSearch:r});export{i as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-P2up1IkX.js";var t=e;export{t as notFoundComponent};