@hot-updater/console 1.2.0-rc.24 → 1.2.0-rc.26

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 (129) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{EventDetails-Dcpdu7re.js → EventDetails-DZsRlDHk.js} +1 -1
  3. package/.output/public/assets/{InsightsPageHeader-CSas9gM0.js → InsightsPageHeader-2bTrjXln.js} +1 -1
  4. package/.output/public/assets/{RelativeTime-CiZ7yXNJ.js → RelativeTime-TCmpOVPg.js} +1 -1
  5. package/.output/public/assets/{RolloutPercentageBadge-D-tZKnX7.js → RolloutPercentageBadge-G6qt8rVb.js} +1 -1
  6. package/.output/public/assets/StoreSubmission-CqSg880n.js +1 -0
  7. package/.output/public/assets/{TargetDisplay-CoYY8Fs4.js → TargetDisplay-DwOaMOiI.js} +1 -1
  8. package/.output/public/assets/{api-keys-3IL4dIHe.js → api-keys-uFY8FsN9.js} +1 -1
  9. package/.output/public/assets/{badge-laIuYW1U.js → badge-D0NFvUY5.js} +1 -1
  10. package/.output/public/assets/{index-BKB82n6Y.js → index-CJclLsbG.js} +3 -3
  11. package/.output/public/assets/{insights-_6iMn8GR.js → insights-B75txQ_F.js} +1 -1
  12. package/.output/public/assets/{insights-DDRfERph.js → insights-C17Z0whn.js} +2 -2
  13. package/.output/public/assets/{insights_.distribution-BGAqgPi0.js → insights_.distribution-_dZi1_ay.js} +1 -1
  14. package/.output/public/assets/{insights_.distribution-CjYkDRA4.js → insights_.distribution-gDqNqI5E.js} +2 -2
  15. package/.output/public/assets/{installations-CSZfo1rG.js → installations-D0g3xvw8.js} +2 -2
  16. package/.output/public/assets/{installations-CwQYwQ6K.js → installations-Y_7QW_p8.js} +1 -1
  17. package/.output/public/assets/{native-builds-B4pD_O7E.js → native-builds-Ba6cEZfm.js} +2 -2
  18. package/.output/public/assets/native-builds-C3_-21we.js +1 -0
  19. package/.output/public/assets/native-builds_._buildId-BnP31v32.js +1 -0
  20. package/.output/public/assets/{native-builds_._buildId-D5tnmyu7.js → native-builds_._buildId-Cp9LJiMP.js} +2 -2
  21. package/.output/public/assets/{remote-config-Dwdc-sij.js → remote-config-BRdy8QFR.js} +1 -1
  22. package/.output/public/assets/{remote-config-ZJ_IRSKE.js → remote-config-C9p5Pcdj.js} +3 -3
  23. package/.output/public/assets/{routes-BUWLcUqW.js → routes-BLTF7nwe.js} +1 -1
  24. package/.output/public/assets/{routes-Rtz-KcQO.js → routes-gQXSzO_n.js} +2 -2
  25. package/.output/public/assets/styles-BdlrKlVs.css +2 -0
  26. package/.output/server/{__23tanstack-start-server-fn-resolver-CcDHdMzp.mjs → __23tanstack-start-server-fn-resolver-z8rr63xV.mjs} +49 -49
  27. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  28. package/.output/server/_libs/_.mjs +1 -1
  29. package/.output/server/_ssr/{-native-builds-search-Cl8EZ0Ud.mjs → -native-builds-search-M6t7EIt4.mjs} +1 -1
  30. package/.output/server/_ssr/{BundleIdDisplay-BOFw0I4S.mjs → BundleIdDisplay-DRnAzJse.mjs} +2 -2
  31. package/.output/server/_ssr/{ConsoleFeatureUnavailable-CLb3FQ37.mjs → ConsoleFeatureUnavailable-BEU7r4aH.mjs} +6 -6
  32. package/.output/server/_ssr/{EventDetails-DCcm4h8I.mjs → EventDetails-CjT6o2sJ.mjs} +6 -6
  33. package/.output/server/_ssr/{HashValueDisplay-Bo7HtMVb.mjs → HashValueDisplay-Bkim8r3-.mjs} +2 -2
  34. package/.output/server/_ssr/{InsightsPageHeader-D0CFqoqK.mjs → InsightsPageHeader-Ctw4N3SZ.mjs} +6 -6
  35. package/.output/server/_ssr/{NotFoundPage-CrM2mNho.mjs → NotFoundPage-Bh3gFsR6.mjs} +2 -2
  36. package/.output/server/_ssr/{PlatformIcon-Cuhy0CIO.mjs → PlatformIcon-CMLs3Wez.mjs} +1 -1
  37. package/.output/server/_ssr/{RelativeTime-pdNaQt7K.mjs → RelativeTime-DjdCU0J7.mjs} +3 -3
  38. package/.output/server/_ssr/{RolloutPercentageBadge-D2fgomoj.mjs → RolloutPercentageBadge-BiIHw-V2.mjs} +3 -3
  39. package/.output/server/_ssr/{StoreSubmission-tbaU5Jxl.mjs → StoreSubmission-Cv59joPo.mjs} +29 -7
  40. package/.output/server/_ssr/{TargetDisplay-c4AmIqUa.mjs → TargetDisplay-D1PKOupt.mjs} +4 -4
  41. package/.output/server/_ssr/{alert-dialog-Bl_9bN7q.mjs → alert-dialog-BOKQTpmP.mjs} +1 -1
  42. package/.output/server/_ssr/{api-bPCSYWmk.mjs → api-CDvGGB1B.mjs} +4 -4
  43. package/.output/server/_ssr/{api-keys-DCdpQxvq.mjs → api-keys-DvbSgd9L.mjs} +2 -2
  44. package/.output/server/_ssr/{api-keys-CWc-kMoo.mjs → api-keys-NYJ0VaDB.mjs} +9 -9
  45. package/.output/server/_ssr/{api-keys-rpc-r2mnoc7r.mjs → api-keys-rpc-B0MrcD15.mjs} +3 -3
  46. package/.output/server/_ssr/{api-rpc--JDsqZkl.mjs → api-rpc-CIB9gcI7.mjs} +10 -10
  47. package/.output/server/_ssr/{auth-rpc-c6zZj3k7.mjs → auth-rpc-DsIffEXe.mjs} +4 -4
  48. package/.output/server/_ssr/{auth.server-D1lLWwx9.mjs → auth.server-Dt9XHLs_.mjs} +42 -15
  49. package/.output/server/_ssr/{badge-Cf4fbU_q.mjs → badge-KS3YftV5.mjs} +2 -1
  50. package/.output/server/_ssr/{card-Bx_12-o-.mjs → card-CG5GqIoA.mjs} +1 -1
  51. package/.output/server/_ssr/{config.server-DBFnQIeD.mjs → config.server-CJs-9Zd_.mjs} +4 -4
  52. package/.output/server/_ssr/{console-access-Dah0AEYy.mjs → console-access-ClmTMpo_.mjs} +2 -2
  53. package/.output/server/_ssr/{console-features-CgdQJQlX.mjs → console-features-CRP-pfov.mjs} +1 -1
  54. package/.output/server/_ssr/{console-features-api-CP8VgLf_.mjs → console-features-api-CpMYF0Pb.mjs} +5 -5
  55. package/.output/server/_ssr/{console-features-rpc-BWc5qG3c.mjs → console-features-rpc-D-dr-WF8.mjs} +3 -3
  56. package/.output/server/_ssr/{dialog-B5-o4y_0.mjs → dialog-DvHMJkq7.mjs} +1 -1
  57. package/.output/server/_ssr/{empty-sGLINpS3.mjs → empty-Bx8DnyWN.mjs} +2 -2
  58. package/.output/server/_ssr/{field-CYSNwGK0.mjs → field-BVI4lxoz.mjs} +2 -2
  59. package/.output/server/_ssr/{input-group-LpWc50V4.mjs → input-group-CpJwooTk.mjs} +1 -1
  60. package/.output/server/_ssr/{insights-CRjccjYz.mjs → insights-B-VtObqr.mjs} +5 -5
  61. package/.output/server/_ssr/{insights-CjQ9FDjt.mjs → insights-DxlHHXPK.mjs} +21 -21
  62. package/.output/server/_ssr/{insights-api-ChTevZmg.mjs → insights-api-8PWQ7PiR.mjs} +3 -3
  63. package/.output/server/_ssr/{insights-C3eT73Ut.mjs → insights-b1hq1O0p.mjs} +2 -2
  64. package/.output/server/_ssr/{insights-failures-rpc-C2SBL0t-.mjs → insights-failures-rpc-pY2KV9HI.mjs} +7 -7
  65. package/.output/server/_ssr/{insights-recovery-rpc-fBmK_XwY.mjs → insights-recovery-rpc-CejmWL_y.mjs} +4 -4
  66. package/.output/server/_ssr/{insights-rpc-CoIPmXt3.mjs → insights-rpc-D_7d_AAJ.mjs} +3 -3
  67. package/.output/server/_ssr/{insights-search-DqI-4UF6.mjs → insights-search-CoMkZvRt.mjs} +2 -2
  68. package/.output/server/_ssr/{insights-usage-rpc-DpI7VDWn.mjs → insights-usage-rpc-B1XSuara.mjs} +3 -3
  69. package/.output/server/_ssr/{insights-usage-rpc-37TTUAr6.mjs → insights-usage-rpc-CrGZDHzO.mjs} +4 -4
  70. package/.output/server/_ssr/{insights_.distribution-W4fpzgsj.mjs → insights_.distribution-B9sPDvG4.mjs} +5 -5
  71. package/.output/server/_ssr/{insights_.distribution-RwlJNvF6.mjs → insights_.distribution-CpqnDZNG.mjs} +15 -15
  72. package/.output/server/_ssr/{insights_.distribution-pdBXAM-9.mjs → insights_.distribution-EOOOOTb6.mjs} +2 -2
  73. package/.output/server/_ssr/{installations-DKKAVTSE.mjs → installations-BOI_y7Ma.mjs} +11 -11
  74. package/.output/server/_ssr/{installations-BmIh7M2B.mjs → installations-D0_0hzdi.mjs} +4 -4
  75. package/.output/server/_ssr/{installations-PHNRkSUb.mjs → installations-dWlOOS7Y.mjs} +2 -2
  76. package/.output/server/_ssr/{native-builds-CymG4aTV.mjs → native-builds-Bx_az6YZ.mjs} +3 -3
  77. package/.output/server/_ssr/{native-builds-q-yQUcmQ.mjs → native-builds-C721Rw23.mjs} +25 -21
  78. package/.output/server/_ssr/{native-builds-CWA9Y__P.mjs → native-builds-OUdRtp6m.mjs} +2 -2
  79. package/.output/server/_ssr/{native-builds_._buildId-CzJKPxiV.mjs → native-builds_._buildId-YItxv8j9.mjs} +3 -3
  80. package/.output/server/_ssr/{native-builds_._buildId-bLt4WRQ0.mjs → native-builds_._buildId-ubi48Sfs.mjs} +118 -85
  81. package/.output/server/_ssr/{nativeBuildDevice-Dn16gNmZ.mjs → nativeBuildDevice-DJUAzAIj.mjs} +26 -46
  82. package/.output/server/_ssr/{nativeBuildDownloadLink-mzzxooek.mjs → nativeBuildDownloadLink-C0I8eLpS.mjs} +2 -2
  83. package/.output/server/_ssr/{nativeBuildInstall-C52_rFTA.mjs → nativeBuildInstall-CxG8K8TL.mjs} +5 -6
  84. package/.output/server/_ssr/{nativeBuilds-D84Qo6jn.mjs → nativeBuilds-CRLmvFaO.mjs} +2 -2
  85. package/.output/server/_ssr/{native-artifact-H1MDP0Jz.mjs → publicConsoleBase-DvHYxDaG.mjs} +26 -17
  86. package/.output/server/_ssr/{release-adoption-rpc-CiQeg2XC.mjs → release-adoption-rpc-DcZAYRWJ.mjs} +7 -7
  87. package/.output/server/_ssr/{releaseAdoption-LLYlRnUB.mjs → releaseAdoption-D6ScSu-W.mjs} +1 -1
  88. package/.output/server/_ssr/{remote-config-D6_98aiF.mjs → remote-config-BZ_vGV97.mjs} +19 -19
  89. package/.output/server/_ssr/{remote-config-CHXk0t0Y.mjs → remote-config-DOcSXzxG.mjs} +2 -2
  90. package/.output/server/_ssr/{remote-config-DFcP3X_W.mjs → remote-config-gKqDKMxk.mjs} +2 -2
  91. package/.output/server/_ssr/{remote-config-rpc-CmjtaLZo.mjs → remote-config-rpc-CVPd3V69.mjs} +3 -3
  92. package/.output/server/_ssr/{router-DlRo8qJe.mjs → router-Bcyej4cr.mjs} +60 -75
  93. package/.output/server/_ssr/{routes-BemtQYlj.mjs → routes-B10xsCh4.mjs} +22 -22
  94. package/.output/server/_ssr/{routes-DeokFLZU.mjs → routes-ddBRVSju.mjs} +10 -10
  95. package/.output/server/_ssr/{runtime.server-BsTTLV-B.mjs → runtime.server-wcHT2Cop.mjs} +2 -2
  96. package/.output/server/_ssr/{schema-migration-rpc-8sXxCyev.mjs → schema-migration-rpc-iWZzLv70.mjs} +3 -3
  97. package/.output/server/_ssr/{select-C-Xg3M0y.mjs → select-i4WT0c9r.mjs} +1 -1
  98. package/.output/server/_ssr/{server-BMeXGwaI.mjs → server-CMgMPrDx.mjs} +4 -4
  99. package/.output/server/_ssr/{sidebar-C-YtAmhJ.mjs → sidebar-mIQgB0iy.mjs} +2 -2
  100. package/.output/server/_ssr/ssr.mjs +1 -1
  101. package/.output/server/_ssr/{start-C0XSSCq4.mjs → start-By4wHYjG.mjs} +1 -1
  102. package/.output/server/_ssr/{switch-Bq_TE-f9.mjs → switch-DR8EAh5C.mjs} +2 -2
  103. package/.output/server/_ssr/{table-DvW7CEdk.mjs → table-DXmK6G7A.mjs} +1 -1
  104. package/.output/server/_ssr/{tabs-X3A6lDz5.mjs → tabs-DAfypcYe.mjs} +2 -2
  105. package/.output/server/_ssr/{updateFailures-DPYzv9bE.mjs → updateFailures-DNiv3S_y.mjs} +1 -1
  106. package/.output/server/{_tanstack-start-manifest_v-Df6g3sSt.mjs → _tanstack-start-manifest_v-8M7ggCuB.mjs} +36 -38
  107. package/.output/server/index.mjs +211 -211
  108. package/package.json +7 -7
  109. package/src/components/ThemeProvider.tsx +11 -2
  110. package/src/components/features/native-builds/InstallCard.tsx +20 -21
  111. package/src/components/features/native-builds/IosInstall.tsx +77 -47
  112. package/src/components/features/native-builds/NativeBuildsTable.tsx +14 -9
  113. package/src/components/features/native-builds/SandboxBadge.tsx +8 -2
  114. package/src/components/features/native-builds/StoreSubmission.tsx +7 -10
  115. package/src/components/features/native-builds/playTracks.ts +19 -0
  116. package/src/components/ui/badge.tsx +2 -0
  117. package/src/lib/server/nativeBuildDevice.ts +22 -43
  118. package/src/routeTree.gen.ts +0 -44
  119. package/src/styles.css +8 -0
  120. package/.output/public/assets/StoreSubmission-CGFw9Mjw.js +0 -1
  121. package/.output/public/assets/native-builds-CKSg6cCF.js +0 -1
  122. package/.output/public/assets/native-builds_._buildId-BuVvRbMp.js +0 -1
  123. package/.output/public/assets/styles-83XEjOMT.css +0 -2
  124. package/.output/server/_ssr/nativeBuildQr-P9qKcI7l.mjs +0 -115
  125. package/.output/server/_ssr/publicConsoleBase-3IHSHvqd.mjs +0 -27
  126. package/.output/server/_ssr/qr-code-pENFuyy9.mjs +0 -22
  127. package/src/lib/server/nativeBuildQr.ts +0 -163
  128. package/src/routes/[_]hot-updater/native-builds/preview-qr.ts +0 -14
  129. package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
@@ -17,8 +17,6 @@ import { Route as NativeBuildsRouteImport } from './routes/native-builds'
17
17
  import { Route as RemoteConfigRouteImport } from './routes/remote-config'
18
18
  import { Route as InsightsDistributionRouteImport } from './routes/insights_.distribution'
19
19
  import { Route as NativeBuildsBuildIdRouteImport } from './routes/native-builds_.$buildId'
20
- import { Route as HotUpdaterNativeBuildsPreviewQrRouteImport } from './routes/[_]hot-updater/native-builds/preview-qr'
21
- import { Route as HotUpdaterNativeBuildsQrRouteImport } from './routes/[_]hot-updater/native-builds/qr'
22
20
  import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$'
23
21
  import { Route as HotUpdaterNativeBuildsBuildIdDeviceRouteImport } from './routes/[_]hot-updater/native-builds/$buildId/device'
24
22
  import { Route as HotUpdaterNativeBuildsBuildIdDeviceResponseRouteImport } from './routes/[_]hot-updater/native-builds/$buildId/device-response'
@@ -67,18 +65,6 @@ const NativeBuildsBuildIdRoute = NativeBuildsBuildIdRouteImport.update({
67
65
  path: '/native-builds/$buildId',
68
66
  getParentRoute: () => rootRouteImport,
69
67
  } as any)
70
- const HotUpdaterNativeBuildsPreviewQrRoute =
71
- HotUpdaterNativeBuildsPreviewQrRouteImport.update({
72
- id: '/_hot-updater/native-builds/preview-qr',
73
- path: '/_hot-updater/native-builds/preview-qr',
74
- getParentRoute: () => rootRouteImport,
75
- } as any)
76
- const HotUpdaterNativeBuildsQrRoute =
77
- HotUpdaterNativeBuildsQrRouteImport.update({
78
- id: '/_hot-updater/native-builds/qr',
79
- path: '/_hot-updater/native-builds/qr',
80
- getParentRoute: () => rootRouteImport,
81
- } as any)
82
68
  const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({
83
69
  id: '/api/auth/$',
84
70
  path: '/api/auth/$',
@@ -130,8 +116,6 @@ export interface FileRoutesByFullPath {
130
116
  '/remote-config': typeof RemoteConfigRoute
131
117
  '/insights/distribution': typeof InsightsDistributionRoute
132
118
  '/native-builds/$buildId': typeof NativeBuildsBuildIdRoute
133
- '/_hot-updater/native-builds/preview-qr': typeof HotUpdaterNativeBuildsPreviewQrRoute
134
- '/_hot-updater/native-builds/qr': typeof HotUpdaterNativeBuildsQrRoute
135
119
  '/api/auth/$': typeof ApiAuthSplatRoute
136
120
  '/_hot-updater/native-builds/$buildId/device': typeof HotUpdaterNativeBuildsBuildIdDeviceRoute
137
121
  '/_hot-updater/native-builds/$buildId/device-response': typeof HotUpdaterNativeBuildsBuildIdDeviceResponseRoute
@@ -149,8 +133,6 @@ export interface FileRoutesByTo {
149
133
  '/remote-config': typeof RemoteConfigRoute
150
134
  '/insights/distribution': typeof InsightsDistributionRoute
151
135
  '/native-builds/$buildId': typeof NativeBuildsBuildIdRoute
152
- '/_hot-updater/native-builds/preview-qr': typeof HotUpdaterNativeBuildsPreviewQrRoute
153
- '/_hot-updater/native-builds/qr': typeof HotUpdaterNativeBuildsQrRoute
154
136
  '/api/auth/$': typeof ApiAuthSplatRoute
155
137
  '/_hot-updater/native-builds/$buildId/device': typeof HotUpdaterNativeBuildsBuildIdDeviceRoute
156
138
  '/_hot-updater/native-builds/$buildId/device-response': typeof HotUpdaterNativeBuildsBuildIdDeviceResponseRoute
@@ -169,8 +151,6 @@ export interface FileRoutesById {
169
151
  '/remote-config': typeof RemoteConfigRoute
170
152
  '/insights_/distribution': typeof InsightsDistributionRoute
171
153
  '/native-builds_/$buildId': typeof NativeBuildsBuildIdRoute
172
- '/_hot-updater/native-builds/preview-qr': typeof HotUpdaterNativeBuildsPreviewQrRoute
173
- '/_hot-updater/native-builds/qr': typeof HotUpdaterNativeBuildsQrRoute
174
154
  '/api/auth/$': typeof ApiAuthSplatRoute
175
155
  '/_hot-updater/native-builds/$buildId/device': typeof HotUpdaterNativeBuildsBuildIdDeviceRoute
176
156
  '/_hot-updater/native-builds/$buildId/device-response': typeof HotUpdaterNativeBuildsBuildIdDeviceResponseRoute
@@ -190,8 +170,6 @@ export interface FileRouteTypes {
190
170
  | '/remote-config'
191
171
  | '/insights/distribution'
192
172
  | '/native-builds/$buildId'
193
- | '/_hot-updater/native-builds/preview-qr'
194
- | '/_hot-updater/native-builds/qr'
195
173
  | '/api/auth/$'
196
174
  | '/_hot-updater/native-builds/$buildId/device'
197
175
  | '/_hot-updater/native-builds/$buildId/device-response'
@@ -209,8 +187,6 @@ export interface FileRouteTypes {
209
187
  | '/remote-config'
210
188
  | '/insights/distribution'
211
189
  | '/native-builds/$buildId'
212
- | '/_hot-updater/native-builds/preview-qr'
213
- | '/_hot-updater/native-builds/qr'
214
190
  | '/api/auth/$'
215
191
  | '/_hot-updater/native-builds/$buildId/device'
216
192
  | '/_hot-updater/native-builds/$buildId/device-response'
@@ -228,8 +204,6 @@ export interface FileRouteTypes {
228
204
  | '/remote-config'
229
205
  | '/insights_/distribution'
230
206
  | '/native-builds_/$buildId'
231
- | '/_hot-updater/native-builds/preview-qr'
232
- | '/_hot-updater/native-builds/qr'
233
207
  | '/api/auth/$'
234
208
  | '/_hot-updater/native-builds/$buildId/device'
235
209
  | '/_hot-updater/native-builds/$buildId/device-response'
@@ -248,8 +222,6 @@ export interface RootRouteChildren {
248
222
  RemoteConfigRoute: typeof RemoteConfigRoute
249
223
  InsightsDistributionRoute: typeof InsightsDistributionRoute
250
224
  NativeBuildsBuildIdRoute: typeof NativeBuildsBuildIdRoute
251
- HotUpdaterNativeBuildsPreviewQrRoute: typeof HotUpdaterNativeBuildsPreviewQrRoute
252
- HotUpdaterNativeBuildsQrRoute: typeof HotUpdaterNativeBuildsQrRoute
253
225
  ApiAuthSplatRoute: typeof ApiAuthSplatRoute
254
226
  HotUpdaterNativeBuildsBuildIdDeviceRoute: typeof HotUpdaterNativeBuildsBuildIdDeviceRoute
255
227
  HotUpdaterNativeBuildsBuildIdDeviceResponseRoute: typeof HotUpdaterNativeBuildsBuildIdDeviceResponseRoute
@@ -317,20 +289,6 @@ declare module '@tanstack/react-router' {
317
289
  preLoaderRoute: typeof NativeBuildsBuildIdRouteImport
318
290
  parentRoute: typeof rootRouteImport
319
291
  }
320
- '/_hot-updater/native-builds/preview-qr': {
321
- id: '/_hot-updater/native-builds/preview-qr'
322
- path: '/_hot-updater/native-builds/preview-qr'
323
- fullPath: '/_hot-updater/native-builds/preview-qr'
324
- preLoaderRoute: typeof HotUpdaterNativeBuildsPreviewQrRouteImport
325
- parentRoute: typeof rootRouteImport
326
- }
327
- '/_hot-updater/native-builds/qr': {
328
- id: '/_hot-updater/native-builds/qr'
329
- path: '/_hot-updater/native-builds/qr'
330
- fullPath: '/_hot-updater/native-builds/qr'
331
- preLoaderRoute: typeof HotUpdaterNativeBuildsQrRouteImport
332
- parentRoute: typeof rootRouteImport
333
- }
334
292
  '/api/auth/$': {
335
293
  id: '/api/auth/$'
336
294
  path: '/api/auth/$'
@@ -392,8 +350,6 @@ const rootRouteChildren: RootRouteChildren = {
392
350
  RemoteConfigRoute: RemoteConfigRoute,
393
351
  InsightsDistributionRoute: InsightsDistributionRoute,
394
352
  NativeBuildsBuildIdRoute: NativeBuildsBuildIdRoute,
395
- HotUpdaterNativeBuildsPreviewQrRoute: HotUpdaterNativeBuildsPreviewQrRoute,
396
- HotUpdaterNativeBuildsQrRoute: HotUpdaterNativeBuildsQrRoute,
397
353
  ApiAuthSplatRoute: ApiAuthSplatRoute,
398
354
  HotUpdaterNativeBuildsBuildIdDeviceRoute:
399
355
  HotUpdaterNativeBuildsBuildIdDeviceRoute,
package/src/styles.css CHANGED
@@ -48,6 +48,12 @@ code {
48
48
  --channel-staging: oklch(0.534 0.135 66.442);
49
49
  --channel-dev: oklch(0.488 0.243 264.376);
50
50
  --channel-other: oklch(0.373 0.034 259.733);
51
+ /*
52
+ * A muted badge's text, border, and tint: a qualifier such as "Sandbox".
53
+ * Muted-foreground's hue, 0.033 L darker here so the text keeps AA on its
54
+ * own 10% tint.
55
+ */
56
+ --badge-muted: oklch(0.52 0.013 58.071);
51
57
  --border: oklch(0.923 0.003 48.717);
52
58
  --input: oklch(0.923 0.003 48.717);
53
59
  --ring: oklch(0.709 0.01 56.259);
@@ -95,6 +101,7 @@ code {
95
101
  --channel-staging: oklch(0.852 0.199 91.936);
96
102
  --channel-dev: oklch(0.707 0.165 254.624);
97
103
  --channel-other: oklch(0.707 0.022 261.325);
104
+ --badge-muted: var(--muted-foreground);
98
105
  --border: oklch(1 0 0 / 10%);
99
106
  --input: oklch(1 0 0 / 15%);
100
107
  --ring: oklch(0.553 0.013 58.071);
@@ -142,6 +149,7 @@ code {
142
149
  --color-channel-staging: var(--channel-staging);
143
150
  --color-channel-dev: var(--channel-dev);
144
151
  --color-channel-other: var(--channel-other);
152
+ --color-badge-muted: var(--badge-muted);
145
153
  --color-accent-foreground: var(--accent-foreground);
146
154
  --color-accent: var(--accent);
147
155
  --color-muted-foreground: var(--muted-foreground);
@@ -1 +0,0 @@
1
- import{Wr as e,ii as t,ir as n}from"./sidebar-Di9SN47G.js";import{t as r}from"./badge-laIuYW1U.js";import{n as i,t as a}from"./relativeTime-DvyxGIsm.js";var o=n(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),s=e();function c({build:e}){return e.is_sandbox?(0,s.jsx)(r,{variant:`secondary`,children:`Sandbox`}):null}var l=t(i(),1),u=t(a(),1);l.default.extend(u.default);var d={testflight:`TestFlight`,"play-internal":`Play internal`},f=e=>e.submitted_to!==null&&e.submitted_to!==void 0;function p({ms:e}){if(e===null)return null;let t=(0,l.default)(e);return(0,s.jsx)(`time`,{className:`text-xs text-muted-foreground`,dateTime:t.toISOString(),title:t.format(`YYYY-MM-DD HH:mm:ss`),children:t.fromNow()})}var m=e=>{let t=`Submitted to ${d[e.submitted_to]}`;if(e.submitted_at_ms===null)return t;let n=(0,l.default)(e.submitted_at_ms);return`${t} ${n.fromNow()}, ${n.format(`YYYY-MM-DD HH:mm:ss`)}`};function h({build:e,withTime:t=!1}){return f(e)?(0,s.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-1.5`,children:[(0,s.jsxs)(r,{className:`gap-1`,title:m(e),variant:`secondary`,children:[(0,s.jsx)(o,{"aria-hidden":`true`,className:`size-3`}),d[e.submitted_to],e.submitted_version?(0,s.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.submitted_version}):null]}),t?(0,s.jsx)(p,{ms:e.submitted_at_ms}):null]}):null}export{f as n,c as r,h as t};
@@ -1 +0,0 @@
1
- import{Fn as e,In as t,Wr as n,h as r,ir as i,p as a}from"./sidebar-Di9SN47G.js";import{t as o}from"./link-DTEyW70e.js";import{a as s}from"./preload-helper-B44EvKhG.js";import{t as c}from"./arrow-up-right-DK8Zdg40.js";import{C as l,S as u,c as d,l as f,m as ee,n as p,p as te,r as m,t as h,u as g,y as _}from"./TargetDisplay-CoYY8Fs4.js";import{a as ne,i as v,n as re,o as ie,r as y,t as b}from"./select-CBIU0_M1.js";import{r as ae}from"./HashValueDisplay-MoZMmTeP.js";import{r as x}from"./-native-builds-search-OlRj4Jz0.js";import{t as S}from"./refresh-cw-C-tvoCcE.js";import{n as C,r as w,t as oe}from"./StoreSubmission-CGFw9Mjw.js";import{a as se,i as ce,n as le,o as ue,r as de,t as fe}from"./badge-laIuYW1U.js";import{t as pe}from"./uuidv7-cI6C63Fm.js";import{t as T}from"./native-builds-B4pD_O7E.js";import{n as me,t as he}from"./PlatformIcon-CJ69KopR.js";import{a as ge,n as _e,o as ve,r as E,s as D,t as O}from"./dialog-CLIaC82_.js";import{h as k,i as A}from"./api-LQJH44FU.js";import{i as j,r as M}from"./table-TUtVz-2l.js";import{a as N,c as P,d as F,f as ye,i as be,l as xe,n as Se,o as I,r as Ce,s as we,t as L,u as Te}from"./RelativeTime-CiZ7yXNJ.js";var Ee=i(`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=n(),z=`npx hot-updater native-build import <file>`,B=`https://hot-updater.dev/docs/guides/native-build#import-a-build-made-elsewhere`;function De(){return(0,R.jsxs)(O,{children:[(0,R.jsxs)(D,{render:(0,R.jsx)(e,{"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)(Ee,{"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)(E,{children:`Track an .ipa, .aab, .apk or .app built elsewhere as a patch base.`})]}),(0,R.jsx)(u,{label:`the import command`,value:z,wrap:!0}),(0,R.jsxs)(`a`,{className:t({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 Oe=`https://hot-updater.dev/docs/guides/native-build#how-a-build-is-tracked`,V=10,H=e=>e===void 0?{}:{channel:e};function ke({channel:n,paged:r,onClearChannel:i}){return r?(0,R.jsx)(I,{icon:x,title:`No more native builds`,children:(0,R.jsx)(o,{className:t({className:`mt-1 min-h-11 sm:min-h-8`,variant:`outline`}),search:H(n),to:`/native-builds`,children:`Show the newest builds`})}):n===void 0?(0,R.jsxs)(I,{icon:x,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)(u,{label:`the import command`,value:z,wrap:!0})}),(0,R.jsxs)(`a`,{className:t({className:`mt-1 min-h-11 sm:min-h-8`,variant:`outline`}),href:Oe,rel:`noreferrer`,target:`_blank`,children:[`Native build guide`,(0,R.jsx)(c,{"data-icon":`inline-end`})]}),(0,R.jsxs)(`a`,{className:t({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)(I,{icon:x,title:(0,R.jsxs)(R.Fragment,{children:[`No native build embeds `,(0,R.jsx)(`span`,{translate:`no`,children:n})]}),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)(e,{className:`mt-1 min-h-11 sm:min-h-8`,onClick:i,variant:`outline`,children:`Show all channels`})]})}var U=e=>`${_(e.platform)} ${f[e.artifact_kind].label}`;function W({build:e}){return(0,R.jsx)(o,{"aria-label":U(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:f[e.artifact_kind].label})}function G({build:e,stacked:t=!1}){return t?(0,R.jsxs)(`span`,{className:`flex flex-col items-start gap-1`,children:[(0,R.jsx)(W,{build:e}),(0,R.jsx)(w,{build:e})]}):(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1`,children:[(0,R.jsx)(W,{build:e}),(0,R.jsx)(w,{build:e})]})}function K({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-0 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)(l,{channel:e,className:`block max-w-32 truncate`})})}function Ae({build:e}){return!C(e)&&!e.is_store_build?(0,R.jsx)(p,{}):(0,R.jsx)(q,{build:e,className:`flex flex-col items-start gap-1`})}function q({build:e,className:t}){return(0,R.jsxs)(`span`,{className:t,children:[(0,R.jsx)(oe,{build:e}),e.is_store_build?(0,R.jsx)(fe,{variant:`secondary`,children:`Store build`}):null]})}function J({build:e}){return(0,R.jsxs)(`a`,{"aria-label":`Download ${ee(e)}`,className:t({className:`min-h-11 sm:min-h-8`,size:`sm`,variant:`outline`}),download:!0,href:te(e.id),children:[(0,R.jsx)(ae,{"data-icon":`inline-start`}),`Download`]})}function je({build:e}){return e.build_number?(0,R.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.build_number}):(0,R.jsx)(p,{})}var Y=e=>pe(e.id);function Me({build:e,onChannel:t}){let n=s(),r=g(e);return(0,R.jsxs)(Te,{"aria-label":`Open native build ${e.id}`,onOpen:()=>void n({to:`/native-builds/$buildId`,params:{buildId:e.id}}),children:[(0,R.jsx)(M,{children:(0,R.jsx)(G,{build:e,stacked:!0})}),(0,R.jsx)(M,{children:(0,R.jsx)(K,{channel:r,onChannel:t})}),(0,R.jsx)(M,{className:`whitespace-nowrap`,children:(0,R.jsx)(me,{platform:e.platform})}),(0,R.jsx)(M,{children:(0,R.jsx)(je,{build:e})}),(0,R.jsx)(M,{children:(0,R.jsx)(m,{appVersion:e.app_version,fingerprintHash:e.fingerprint_hash})}),(0,R.jsx)(M,{children:(0,R.jsx)(h,{value:e.build_key})}),(0,R.jsx)(M,{children:(0,R.jsx)(Ae,{build:e})}),(0,R.jsx)(M,{className:`whitespace-nowrap text-muted-foreground tabular-nums`,children:d(e.byte_size)}),(0,R.jsx)(M,{className:`text-xs text-muted-foreground`,children:(0,R.jsx)(L,{ms:Y(e)})}),(0,R.jsx)(M,{className:`text-right`,children:(0,R.jsx)(J,{build:e})})]})}function Ne({build:e,onChannel:t}){let n=s(),r=g(e),i=C(e)||e.is_store_build;return(0,R.jsxs)(Se,{"aria-label":`Native build ${U(e)} ${e.id}`,className:`gap-3 border-b-0`,onClick:ye(()=>void n({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)(G,{build:e})]}),(0,R.jsx)(J,{build:e})]}),(0,R.jsx)(`div`,{className:`flex min-w-0`,children:(0,R.jsx)(K,{channel:r,onChannel:t})}),(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:d(e.byte_size)}),(0,R.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,R.jsx)(L,{ms:Y(e)})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center 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)(m,{appVersion:e.app_version,fingerprintHash:e.fingerprint_hash})]}),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)(h,{value:e.build_key})]}):null]}),i?(0,R.jsx)(q,{build:e,className:`flex flex-wrap items-center gap-1.5`}):null]})}function X({builds:t,channel:n,paged:i,onChannel:a}){let o=r(),s=t.data?.data,{next:c,previous:l}=t.data??{};if(t.isError)return(0,R.jsxs)(le,{variant:`destructive`,children:[(0,R.jsx)(ue,{}),(0,R.jsx)(se,{children:`Native builds couldn't be loaded`}),(0,R.jsx)(ce,{children:`Check your connection and try again.`}),(0,R.jsx)(de,{children:(0,R.jsxs)(e,{onClick:()=>void t.refetch(),size:`xs`,variant:`outline`,children:[(0,R.jsx)(S,{"data-icon":`inline-start`}),`Retry`]})})]});let u=(0,R.jsx)(ke,{channel:n,onClearChannel:()=>a(void 0),paged:i});return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(we,{children:o?(0,R.jsx)(`div`,{"aria-busy":t.isPlaceholderData,"aria-label":`Native builds`,className:`h-full overflow-y-auto aria-busy:opacity-60`,role:`list`,children:t.isLoading?(0,R.jsx)(Ce,{label:`Loading native builds`}):s?.length===0?(0,R.jsx)(be,{children:u}):s?.map(e=>(0,R.jsx)(`div`,{className:`border-b last:border-b-0`,role:`listitem`,children:(0,R.jsx)(Ne,{build:e,onChannel:a})},e.id))}):(0,R.jsx)(N,{"aria-busy":t.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)(j,{children:`Artifact`}),(0,R.jsx)(j,{children:`Channel`}),(0,R.jsx)(j,{children:`Platform`}),(0,R.jsx)(j,{children:`Build`}),(0,R.jsx)(j,{children:`Target`}),(0,R.jsx)(j,{children:`Build key`}),(0,R.jsx)(j,{children:`Store`}),(0,R.jsx)(j,{children:`Size`}),(0,R.jsx)(j,{children:`Created`}),(0,R.jsx)(j,{className:`text-right`,children:(0,R.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]}),children:t.isLoading?(0,R.jsx)(F,{columns:V,label:`Loading native builds`}):s?.length===0?(0,R.jsx)(P,{columns:V,children:u}):s?.map(e=>(0,R.jsx)(Me,{build:e,onChannel:a},e.id))})}),t.isLoading||s===void 0?null:(0,R.jsx)(xe,{count:s.length,label:`Native build pages`,pending:t.isPlaceholderData,newest:i?{search:H(n),to:`/native-builds`}:void 0,next:c===void 0?void 0:{search:{...H(n),before:c},to:`/native-builds`},previous:l===void 0?void 0:{search:{...H(n),after:l},to:`/native-builds`}})]})}var Z=`all`,Q=`channel:`,$=e=>`${Q}${e}`;function Pe({search:t,onSearchChange:n}){let{channel:r,before:i,after:o}=t,s=k(t),c=A(),l=c.data?.map(({name:e})=>e)??[],u=r===void 0||l.includes(r)?l:[r,...l],d=e=>n(e===void 0?{}:{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)(x,{"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.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,R.jsxs)(b,{items:[{label:`All channels`,value:Z},...u.map(e=>({label:e,value:$(e)}))],onOpenChange:e=>{e&&c.refetch()},onValueChange:e=>d(e?.startsWith(Q)?e.slice(8):void 0),value:r===void 0?Z:$(r),children:[(0,R.jsx)(ne,{"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)(ie,{})}),(0,R.jsx)(re,{children:(0,R.jsxs)(y,{children:[(0,R.jsx)(v,{value:Z,children:`All channels`}),u.map(e=>(0,R.jsx)(v,{translate:`no`,value:$(e),children:e},e))]})})]}),(0,R.jsx)(`div`,{className:`ml-auto`,children:(0,R.jsx)(De,{})}),(0,R.jsx)(e,{"aria-label":`Refresh native builds`,className:`size-11 sm:size-7`,disabled:s.isLoading,onClick:()=>void s.refetch(),size:`icon-sm`,variant:`ghost`,children:(0,R.jsx)(S,{"aria-hidden":`true`})})]}),(0,R.jsx)(X,{builds:s,channel:r,onChannel:d,paged:i!==void 0||o!==void 0})]})]})}function Fe(){let e=T.useSearch(),t=T.useNavigate();return(0,R.jsx)(Pe,{onSearchChange:e=>void t({search:e}),search:e})}export{Fe as component};
@@ -1 +0,0 @@
1
- import{$ as e,Fn as t,In as n,Ln as r,Wr as i,ii as a,ir as o,p as s,ti as c}from"./sidebar-Di9SN47G.js";import{t as l}from"./link-DTEyW70e.js";import{t as u}from"./arrow-up-right-DK8Zdg40.js";import{C as d,S as f,_ as ee,a as te,c as p,d as ne,f as re,g as ie,h as ae,i as oe,l as se,m,o as ce,p as le,r as ue,s as de,t as fe,v as pe,w as me,x as h,y as g}from"./TargetDisplay-CoYY8Fs4.js";import{t as he}from"./chevron-right-BoUXo82O.js";import{n as ge,t as _}from"./native-builds_._buildId-D5tnmyu7.js";import{r as _e}from"./HashValueDisplay-MoZMmTeP.js";import{i as ve,n as ye,r as v,t as be}from"./RolloutPercentageBadge-D-tZKnX7.js";import{n as xe,t as Se}from"./history-DakJoeSM.js";import{r as Ce}from"./-native-builds-search-OlRj4Jz0.js";import{t as we}from"./refresh-cw-C-tvoCcE.js";import{n as y,r as Te,t as Ee}from"./StoreSubmission-CGFw9Mjw.js";import{t as De}from"./smartphone-r0rRdPas.js";import{a as b,i as x,n as S,o as C,r as Oe,t as ke}from"./badge-laIuYW1U.js";import{n as w}from"./dist-Bf1BPKMs.js";import{a as T,n as E,o as D,t as O}from"./card-ulgg5xHn.js";import{r as Ae}from"./uuidv7-cI6C63Fm.js";import{a as k,i as A,n as j,o as M,r as N,t as P}from"./empty-Bhlj8PEo.js";import{n as je}from"./relativeTime-DvyxGIsm.js";import{t as Me}from"./PlatformIcon-CJ69KopR.js";import{a as Ne,d as Pe,f as Fe,l as Ie,m as Le,p as Re,u as ze}from"./api-LQJH44FU.js";import{a as Be,i as F,n as Ve,o as I,r as L,t as He}from"./table-TUtVz-2l.js";import{t as Ue}from"./BundleIdDisplay-CP6rsdFO.js";var We=o(`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`}]]),R=i();function Ge({value:e,length:t,label:n}){let r=async()=>{try{await navigator.clipboard.writeText(e),w.success(`Copied to clipboard`,{description:e})}catch{w.error(`Could not copy the ${n}`)}};return(0,R.jsx)(`button`,{"aria-label":`Copy the ${n} ${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(),r()},title:e,translate:`no`,type:`button`,children:e.slice(0,t)})}function Ke({hash:e}){let t=Ne();if(e===null)return(0,R.jsx)(`span`,{className:`text-muted-foreground`,children:`—`});let n=ye(t.data?.console.gitUrl,e);return n===null?(0,R.jsx)(Ge,{label:`commit`,length:7,value:e}):(0,R.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 z({label:e,children:t}){return(0,R.jsxs)(`div`,{className:`grid gap-1 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4`,children:[(0,R.jsx)(`dt`,{className:`text-xs font-medium text-muted-foreground`,children:e}),(0,R.jsx)(`dd`,{className:`min-w-0 text-sm`,children:t})]})}function qe({detail:e}){let{build:n}=e,r=Ie();if(n.is_sandbox)return null;let i=!n.is_store_build;return(0,R.jsx)(t,{className:`min-h-11 shrink-0 sm:min-h-8`,disabled:r.isPending,onClick:()=>r.mutate({id:n.id,storeBuild:i},{onSuccess:()=>{w.success(i?`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:i?`Mark as store build`:`Clear mark`})}function Je({detail:e}){let{build:t,newestInScope:n,storeBuildInScope:r}=e,i=r??n;if(i===null)return null;let a=i.id===t.id;return(0,R.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,R.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,R.jsx)(a?ge:Se,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground`}),r?.id===t.id?(0,R.jsxs)(`p`,{children:[(0,R.jsx)(`span`,{className:`font-medium`,children:`Store build.`}),` New deploys to this scope patch from this build.`]}):a?(0,R.jsxs)(`p`,{children:[(0,R.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,R.jsxs)(`p`,{children:[(0,R.jsx)(`span`,{className:`font-medium`,children:`Not the base.`}),` New deploys patch from`,` `,(0,R.jsxs)(l,{className:`inline-flex items-center gap-0.5 font-medium underline underline-offset-4`,params:{buildId:i.id},to:`/native-builds/$buildId`,children:[ee(i)??(0,R.jsxs)(R.Fragment,{children:[g(i.platform),` `,se[i.artifact_kind].label,` ·`,` `,(0,R.jsx)(v,{uuid:i.id})]}),(0,R.jsx)(u,{"aria-hidden":`true`,className:`size-3`})]}),`, so this one gets no new patches.`]})]}),(0,R.jsx)(qe,{detail:e})]})}function Ye({detail:e}){let{build:t,builtInBundle:n,channel:r}=e,i=n?.childCount??0;return(0,R.jsxs)(O,{className:`overflow-hidden shadow-sm`,children:[(0,R.jsx)(T,{className:`border-b px-4 py-3`,children:(0,R.jsx)(D,{className:`text-sm`,children:(0,R.jsx)(`h2`,{children:`Built-in bundle`})})}),(0,R.jsxs)(E,{className:`flex flex-col gap-4 p-4 sm:p-6`,children:[(0,R.jsxs)(`dl`,{className:`flex flex-col gap-3`,children:[(0,R.jsx)(z,{label:`Bundle ID`,children:(0,R.jsx)(Ue,{bundleId:t.min_bundle_id})}),(0,R.jsx)(z,{label:`OTAs patching from it`,children:(0,R.jsx)(`span`,{className:`tabular-nums`,children:i===1?`1 bundle`:`${i} bundles`})}),(0,R.jsx)(z,{label:`Scope`,children:(0,R.jsxs)(`span`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,R.jsx)(l,{"aria-label":`Show the builds that embed ${r}`,className:`relative rounded-md after:absolute after:inset-x-0 after:-inset-y-[11px] sm:after:hidden`,search:{channel:r},to:`/native-builds`,children:(0,R.jsx)(d,{channel:r})}),(0,R.jsx)(`span`,{className:`text-xs`,children:g(t.platform)})]})}),(0,R.jsx)(z,{label:`Target`,children:(0,R.jsx)(`span`,{className:`text-xs`,children:(0,R.jsx)(ue,{appVersion:t.app_version,fingerprintHash:t.fingerprint_hash})})}),(0,R.jsx)(z,{label:`Build key`,children:(0,R.jsx)(`span`,{className:`text-xs`,children:(0,R.jsx)(fe,{value:t.build_key})})}),t.build_number?(0,R.jsx)(z,{label:`Build`,children:(0,R.jsx)(`span`,{className:`font-mono text-xs tabular-nums`,translate:`no`,children:t.build_number})}):null,y(t)?(0,R.jsx)(z,{label:`Store`,children:(0,R.jsx)(Ee,{build:t,withTime:!0})}):null,(0,R.jsx)(z,{label:`Commit`,children:(0,R.jsx)(Ke,{hash:t.git_commit_hash})}),(0,R.jsx)(z,{label:`Created`,children:(0,R.jsx)(v,{format:`both`,uuid:t.id})})]}),(0,R.jsx)(Je,{detail:e}),(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`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 B=a(c(),1),Xe=a(je(),1),V=(e=>(e[e.Border=-1]=`Border`,e[e.Data=0]=`Data`,e[e.Function=1]=`Function`,e[e.Position=2]=`Position`,e[e.Timing=3]=`Timing`,e[e.Alignment=4]=`Alignment`,e))(V||{}),Ze=[0,1],Qe=[1,0],$e=[2,3],et=[3,2],tt={L:Ze,M:Qe,Q:$e,H:et},nt=/^\d*$/,rt=/^[A-Z0-9 $%*+./:-]*$/,H=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`,U=1,W=40,it=3,at=3,G=40,ot=10,st=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],ct=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],lt=class{constructor(e,t,n,r){if(this.version=e,this.ecc=t,e<U||e>W)throw RangeError(`Version value out of range`);if(r<-1||r>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let i=Array.from({length:this.size}).fill(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let a=this.addEccAndInterleave(n);if(this.drawCodewords(a),r===-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(r=t,e=n),this.applyMask(t)}}this.mask=r,this.applyMask(r),this.drawFormatBits(r)}size;mask;modules=[];types=[];getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,V.Timing),this.setFunctionModule(e,6,e%2==0,V.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n===0&&r===0||n===0&&r===t-1||n===t-1&&r===0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.ecc[1]<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,q(r,e));this.setFunctionModule(8,7,q(r,6)),this.setFunctionModule(8,8,q(r,7)),this.setFunctionModule(7,8,q(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,q(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,q(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,q(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=q(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;a>=0&&a<this.size&&o>=0&&o<this.size&&this.setFunctionModule(a,o,i!==2&&i!==4,V.Position)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!==1,V.Alignment)}setFunctionModule(e,t,n,r=V.Function){this.modules[t][e]=n,this.types[t][e]=r}addEccAndInterleave(e){let t=this.version,n=this.ecc;if(e.length!==X(t,n))throw RangeError(`Invalid argument`);let r=ct[n[0]][t],i=st[n[0]][t],a=Math.floor(Y(t)/8),o=r-a%r,s=Math.floor(a/r),c=[],l=St(i);for(let t=0,n=0;t<r;t++){let r=e.slice(n,n+s-i+(t<o?0:1));n+=r.length;let a=Ct(r,l);t<o&&r.push(0),c.push(r.concat(a))}let u=[];for(let e=0;e<c[0].length;e++)c.forEach((t,n)=>{(e!==s-i||n>=o)&&u.push(t[e])});return u}drawCodewords(e){if(e.length!==Math.floor(Y(this.version)/8))throw RangeError(`Invalid argument`);let t=0;for(let n=this.size-1;n>=1;n-=2){n===6&&(n=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let a=n-i,o=n+1&2?r:this.size-1-r;!this.types[o][a]&&t<e.length*8&&(this.modules[o][a]=q(e[t>>>3],7-(t&7)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.types[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[t][a]===n?(r++,r===5?e+=it:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*G),n=this.modules[t][a],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*G}for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][t]===n?(r++,r===5?e+=it:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*G),n=this.modules[a][t],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*G}for(let t=0;t<this.size-1;t++)for(let n=0;n<this.size-1;n++){let r=this.modules[t][n];r===this.modules[t][n+1]&&r===this.modules[t+1][n]&&r===this.modules[t+1][n+1]&&(e+=at)}let t=0;for(let e of this.modules)t=e.reduce((e,t)=>e+ +!!t,t);let n=this.size*this.size,r=Math.ceil(Math.abs(t*20-n*10)/n)-1;return e+=r*ot,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}};function K(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function q(e,t){return(e>>>t&1)!=0}var J=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}getData(){return this.bitData.slice()}},ut=[1,10,12,14],dt=[2,9,11,13],ft=[4,8,16,16];function pt(e,t){return e[Math.floor((t+7)/17)+1]}function mt(e){let t=[];for(let n of e)K(n,8,t);return new J(ft,e.length,t)}function ht(e){if(!vt(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let n=0;n<e.length;){let r=Math.min(e.length-n,3);K(Number.parseInt(e.substring(n,n+r),10),r*3+1,t),n+=r}return new J(ut,e.length,t)}function gt(e){if(!yt(e))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let t=[],n;for(n=0;n+2<=e.length;n+=2){let r=H.indexOf(e.charAt(n))*45;r+=H.indexOf(e.charAt(n+1)),K(r,11,t)}return n<e.length&&K(H.indexOf(e.charAt(n)),6,t),new J(dt,e.length,t)}function _t(e){return e===``?[]:vt(e)?[ht(e)]:yt(e)?[gt(e)]:[mt(xt(e))]}function vt(e){return nt.test(e)}function yt(e){return rt.test(e)}function bt(e,t){let n=0;for(let r of e){let e=pt(r.mode,t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}function xt(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)===`%`?(t.push(Number.parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}function Y(e){if(e<U||e>W)throw RangeError(`Version number out of range`);let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function X(e,t){return Math.floor(Y(e)/8)-st[t[0]][e]*ct[t[0]][e]}function St(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let t=[];for(let n=0;n<e-1;n++)t.push(0);t.push(1);let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=Z(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=Z(n,2)}return t}function Ct(e,t){let n=t.map(e=>0);for(let r of e){let e=r^n.shift();n.push(0),t.forEach((t,r)=>n[r]^=Z(t,e))}return n}function Z(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}function wt(e,t,n=1,r=40,i=-1,a=!0){if(!(U<=n&&n<=r&&r<=W)||i<-1||i>7)throw RangeError(`Invalid value`);let o,s;for(o=n;;o++){let n=X(o,t)*8,i=bt(e,o);if(i<=n){s=i;break}if(o>=r)throw RangeError(`Data too long`)}for(let e of[Qe,$e,et])a&&s<=X(o,e)*8&&(t=e);let c=[];for(let t of e){K(t.mode[0],4,c),K(t.numChars,pt(t.mode,o),c);for(let e of t.getData())c.push(e)}let l=X(o,t)*8;K(0,Math.min(4,l-c.length),c),K(0,(8-c.length%8)%8,c);for(let e=236;c.length<l;e^=253)K(e,8,c);let u=Array.from({length:Math.ceil(c.length/8)},()=>0);return c.forEach((e,t)=>u[t>>>3]|=e<<7-(t&7)),new lt(o,t,u,i)}function Tt(e,t){let{ecc:n=`L`,boostEcc:r=!1,minVersion:i=1,maxVersion:a=40,maskPattern:o=-1,border:s=1}=t||{},c=typeof e==`string`?_t(e):Array.isArray(e)?[mt(e)]:void 0;if(!c)throw Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let l=wt(c,tt[n],i,a,o,r),u=Et({version:l.version,maskPattern:l.mask,size:l.size,data:l.modules,types:l.types},s);return t?.invert&&(u.data=u.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(u),u}function Et(e,t=1){if(!t)return e;let{size:n}=e,r=n+t*2;e.size=r,e.data.forEach(e=>{for(let n=0;n<t;n++)e.unshift(!1),e.push(!1)});for(let n=0;n<t;n++)e.data.unshift(Array.from({length:r},e=>!1)),e.data.push(Array.from({length:r},e=>!1));let i=V.Border;e.types.forEach(e=>{for(let n=0;n<t;n++)e.unshift(i),e.push(i)});for(let n=0;n<t;n++)e.types.unshift(Array.from({length:r},e=>i)),e.types.push(Array.from({length:r},e=>i));return e}var Dt=e=>{let{data:t,size:n}=Tt(e,{ecc:`M`,border:4}),r=``;return t.forEach((e,t)=>e.forEach((e,n)=>{e&&(r+=`M${n} ${t}h1v1h-1z`)})),{size:n,path:r}};function Ot({value:e,label:t,className:n}){let{size:i,path:a}=(0,B.useMemo)(()=>Dt(e),[e]);return(0,R.jsxs)(`svg`,{"aria-label":t,className:r(`aspect-square rounded-md`,n),role:`img`,shapeRendering:`crispEdges`,viewBox:`0 0 ${i} ${i}`,children:[(0,R.jsx)(`rect`,{fill:`#fff`,height:i,width:i}),(0,R.jsx)(`path`,{d:a,fill:`#000`})]})}var kt=`With the same bundle ID, this install replaces the App Store's copy of the app on this iPhone.`,Q=`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,At=e=>/iPhone|iPod|iPad/u.test(e.userAgent)||/Macintosh/u.test(e.userAgent)&&e.maxTouchPoints>1,jt=()=>{let[e,t]=(0,B.useState)(null);return(0,B.useEffect)(()=>{let e=null;try{e=window.localStorage.getItem(te)}catch{}t({ios:At(navigator),udid:e!==null&&oe.test(e)?e:null})},[]),e},Mt=300*1e3,Nt=(e,t)=>{let[,n]=(0,B.useReducer)(e=>e+1,0),r=e+ce-Mt;return(0,B.useEffect)(()=>{if(!t)return;let e=setTimeout(n,Math.max(0,r-Date.now()));return document.addEventListener(`visibilitychange`,n),window.addEventListener(`pageshow`,n),()=>{clearTimeout(e),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`pageshow`,n)}},[r,t]),t&&Date.now()>=r};function Pt({fetching:e,onRenew:n}){return(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,R.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`This install link has expired.`,e?` Getting a new one.`:``]}),e?null:(0,R.jsx)(t,{className:Q,onClick:n,variant:`outline`,children:`Get a new link`})]})}function Ft({build:e,token:t,secondary:r=!1}){return(0,R.jsx)(`a`,{className:n({className:Q,variant:r?`outline`:`default`}),href:ie(window.location,e.id,t),children:r?`Install anyway`:`Install`})}function $(){return(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`On iOS 16 or later, the app opens only with Developer Mode on: Settings, Privacy & Security, Developer Mode.`}),(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:kt})]})}function It({build:e,outline:t=!1}){return(0,R.jsxs)(`a`,{className:n({className:Q,variant:t?`outline`:`default`}),href:`${de(window.location,e.id)}${re(e.id)}`,children:[(0,R.jsx)(De,{"data-icon":`inline-start`}),`Check this iPhone`]})}function Lt({build:t,udid:n}){let r=Re(t.id,n),{refetch:i}=r,a=Nt(r.dataUpdatedAt,r.data?.status===`installable`);if((0,B.useEffect)(()=>{a&&i()},[a,i]),r.isPending)return(0,R.jsx)(e,{"aria-label":`Reading this IPA`,className:`h-11 w-full`});let o=r.data;if(o===void 0||o.status===`unavailable`)return(0,R.jsxs)(S,{children:[(0,R.jsx)(C,{}),(0,R.jsx)(b,{children:`Installation details unavailable`}),(0,R.jsx)(x,{children:`The Console couldn't read this IPA from storage in parts, which takes an HTTPS download link that answers Range requests. Xcode or Apple Configurator still installs the download over USB.`})]});if(o.status===`store`)return(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA is an App Store export, which installs through TestFlight, not from this page.`});if(o.status===`expired`)return(0,R.jsxs)(S,{variant:`destructive`,children:[(0,R.jsx)(C,{}),(0,R.jsx)(b,{children:`This build's profile has expired`}),(0,R.jsxs)(x,{children:[`It expired on `,(0,Xe.default)(o.expiresAt).format(`YYYY-MM-DD`),`. A maintainer rebuilds it to install again.`]})]});let s=o.link.status===`issued`?o.link.token:null;if(o.link.status===`no-secret`)return(0,R.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,o.link.secretName,` on the Console to install from this page.`]});if(s===null)return null;let c=({secondary:e=!1}={})=>a?(0,R.jsx)(Pt,{fetching:r.isFetching,onRenew:()=>void i()}):(0,R.jsx)(Ft,{build:t,secondary:e,token:s});return o.device===`included`?(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,R.jsx)(`p`,{className:`text-sm font-medium`,children:`This iPhone is in this build.`}),c(),(0,R.jsx)($,{})]}):o.device===`not-included`?(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,R.jsx)(`p`,{className:`text-sm font-medium`,children:`Not in this build`}),(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA was signed without this iPhone. Send a maintainer this command, then open the newer build once they've rebuilt. Send it only if this is your iPhone.`})]}),(0,R.jsx)(f,{label:`the command that registers this iPhone`,value:ne(n??``),wrap:!0}),c({secondary:!0}),(0,R.jsx)($,{})]}):(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,R.jsx)(`p`,{className:`text-sm font-medium`,children:`Is this iPhone in this build?`}),(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`iOS installs this IPA only on the devices it lists. A profile reads this iPhone's ID and nothing else: allow the download, then install it from Settings, where iOS calls it not signed. Nothing stays installed.`})]}),(0,R.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:flex-wrap`,children:[(0,R.jsx)(It,{build:t}),c({secondary:!0})]}),(0,R.jsx)($,{})]})}var Rt={ipa:`The .ipa installs only on devices its signing profile allows (development or ad hoc); an App Store export reaches testers through TestFlight.`,aab:`The .aab installs through Google Play or bundletool, not from the file.`},zt={apk:`Scan with an Android phone's camera, then open the APK to install it.`,ipa:`Scan to download. ${Rt.ipa}`,aab:`Scan to download. ${Rt.aab}`,app:`Scan to download the .app.zip on a Mac.`};function Bt(){let{origin:e,pathname:t}=window.location;return(0,R.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,R.jsx)(Ot,{className:`size-48`,label:`Open this page on an iPhone`,value:`${e}${t}`}),(0,R.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 Vt({build:e,url:t,note:n}){return(0,R.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,R.jsx)(Ot,{className:`size-48`,label:`Download ${m(e)}`,value:t}),(0,R.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:zt[e.artifact_kind]}),n?(0,R.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:n}):null]})}function Ht({message:e}){return(0,R.jsxs)(S,{variant:`destructive`,children:[(0,R.jsx)(C,{}),(0,R.jsx)(b,{children:`The download link couldn't be created`}),(0,R.jsx)(x,{children:e})]})}function Ut({build:t}){let n=Fe(t.id),r=n.data?.url;if(r===null){let e=Rt[t.artifact_kind];return(0,R.jsxs)(`div`,{className:`flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,R.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,R.jsx)(`p`,{children:e}):null]})}return r===void 0?n.isError?(0,R.jsx)(Ht,{message:n.error.message}):(0,R.jsx)(e,{className:`size-48`}):(0,R.jsx)(Vt,{build:t,note:`This link expires. If the download fails, reload this page.`,url:r})}function Wt({build:e}){return(0,R.jsx)(`span`,{className:`font-mono text-foreground`,translate:`no`,children:e.submitted_version??`this build`})}var Gt={testflight:{name:`App Store Connect`,url:`https://appstoreconnect.apple.com/apps`},"play-internal":{name:`Play Console`,url:`https://play.google.com/console`}};function Kt({build:e}){let t=Gt[e.submitted_to];return(0,R.jsxs)(O,{className:`overflow-hidden shadow-sm`,children:[(0,R.jsx)(T,{className:`border-b px-4 py-3`,children:(0,R.jsx)(D,{className:`text-sm`,children:(0,R.jsx)(`h2`,{children:`Install`})})}),(0,R.jsxs)(E,{className:`flex min-w-0 flex-col gap-4 p-4 sm:p-6`,children:[(0,R.jsx)(qt,{build:e}),(0,R.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:flex-wrap`,children:[(0,R.jsxs)(`a`,{className:n({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,R.jsx)(ve,{"data-icon":`inline-start`}),`Open `,t.name]}),(0,R.jsxs)(`a`,{className:n({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:le(e.id),children:[(0,R.jsx)(_e,{"data-icon":`inline-start`}),(0,R.jsxs)(`span`,{className:`text-left [overflow-wrap:anywhere]`,children:[`Download `,m(e)]})]})]})]})]})}function qt({build:e}){switch(e.artifact_kind){case`apk`:return(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Your browser needs the "Install unknown apps" permission.`}),e.is_sandbox?(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Its .sandbox ID installs it beside a Play copy.`}):(0,R.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,R.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,R.jsx)(f,{label:`the install command`,value:ae(e)})]});case`app`:return(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,R.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,R.jsx)(f,{label:`the install command`,value:ae(e)})]});case`aab`:return y(e)?(0,R.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Submitted to Google Play internal testing as`,` `,(0,R.jsx)(Wt,{build:e}),`. 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,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`For testers, build and release to internal testing:`}),(0,R.jsx)(f,{label:`the Google Play command`,value:`npx hot-updater google-play upload`})]});case`ipa`:return y(e)?(0,R.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`On TestFlight as `,(0,R.jsx)(Wt,{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,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,R.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Over USB, Xcode or Apple Configurator installs it. For testers without a registered device:`}),(0,R.jsx)(f,{label:`the TestFlight command`,value:`npx hot-updater testflight`})]})}}function Jt({link:e,url:t}){return e?.status===`no-secret`?(0,R.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,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,R.jsx)(f,{label:`the download link`,value:t}),(0,R.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Anyone with this link can download this build until`,` `,(0,Xe.default)(e.expiresAt).format(`YYYY-MM-DD`),`.`]})]})}function Yt({build:e}){return y(e)&&(e.artifact_kind===`ipa`||e.artifact_kind===`aab`)?(0,R.jsx)(Kt,{build:e}):(0,R.jsx)(Xt,{build:e})}function Xt({build:t}){let r=m(t),i=Pe(t.id),a=i.data?.status===`issued`?pe(window.location,t.id,i.data.token):null,o=jt(),s=t.artifact_kind===`ipa`,c=s&&o?.ios===!0;return(0,R.jsxs)(O,{className:`overflow-hidden shadow-sm`,children:[(0,R.jsx)(T,{className:`border-b px-4 py-3`,children:(0,R.jsx)(D,{className:`text-sm`,children:(0,R.jsx)(`h2`,{children:`Install`})})}),(0,R.jsxs)(E,{className:c?`flex min-w-0 flex-col gap-6 p-4 sm:p-6`:`grid gap-6 p-4 sm:grid-cols-[12rem_minmax(0,1fr)] sm:p-6`,children:[c?(0,R.jsx)(Lt,{build:t,udid:o.udid}):s&&a!==null?(0,R.jsx)(Bt,{}):a===null?i.data===void 0?i.isError?(0,R.jsx)(Ht,{message:i.error.message}):(0,R.jsx)(e,{className:`size-48`}):(0,R.jsx)(Ut,{build:t}):(0,R.jsx)(Vt,{build:t,url:a}),(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,R.jsx)(qt,{build:t}),(0,R.jsxs)(`a`,{className:n({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:a??le(t.id),children:[(0,R.jsx)(_e,{"data-icon":`inline-start`}),(0,R.jsxs)(`span`,{className:`text-left [overflow-wrap:anywhere]`,children:[`Download `,r]})]}),(0,R.jsx)(Jt,{link:i.data,url:a})]})]})]})}var Zt=`https://hot-updater.dev/docs/guides/bundle-diffing#first-ota-update`;function Qt({detail:r,page:i,onPage:a}){let o=i.before!==void 0||i.after!==void 0,s=Le(r.build.min_bundle_id,i,o),c=o?s.data:r.patches,{next:d,previous:f}=c??{};return(0,R.jsxs)(O,{className:`overflow-hidden shadow-sm`,id:`patches`,children:[(0,R.jsx)(T,{className:`border-b px-4 py-3`,children:(0,R.jsx)(D,{className:`text-sm`,children:(0,R.jsx)(`h2`,{children:`Patches from this build`})})}),(0,R.jsxs)(E,{className:`p-0`,children:[o&&s.isError?(0,R.jsx)(`div`,{className:`p-4`,children:(0,R.jsxs)(S,{variant:`destructive`,children:[(0,R.jsx)(C,{}),(0,R.jsx)(b,{children:`Patches couldn't be loaded`}),(0,R.jsx)(x,{children:s.error.message}),(0,R.jsx)(Oe,{children:(0,R.jsxs)(t,{onClick:()=>void s.refetch(),size:`xs`,variant:`outline`,children:[(0,R.jsx)(we,{"data-icon":`inline-start`}),`Retry`]})})]})}):c===void 0?(0,R.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[(0,R.jsx)(`span`,{className:`sr-only`,children:`Loading patches`}),(0,R.jsx)(e,{className:`h-4 w-full`}),(0,R.jsx)(e,{className:`h-4 w-2/3`})]}):c.data.length===0?o?(0,R.jsxs)(P,{className:`py-10`,children:[(0,R.jsx)(A,{children:(0,R.jsx)(M,{children:`No more patches`})}),(0,R.jsx)(t,{className:`min-h-11 sm:min-h-8`,onClick:()=>a({}),variant:`outline`,children:`Show the newest patches`})]}):(0,R.jsxs)(P,{className:`py-10`,children:[(0,R.jsxs)(A,{children:[(0,R.jsx)(k,{variant:`icon`,children:(0,R.jsx)(xe,{})}),(0,R.jsx)(M,{children:`No patches from this build`}),(0,R.jsxs)(N,{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,R.jsx)(`code`,{className:`font-mono`,children:`patch`}),` in`,` `,(0,R.jsx)(`code`,{className:`font-mono`,children:`hot-updater.config.ts`}),`.`]})]}),(0,R.jsx)(j,{children:(0,R.jsxs)(`a`,{className:n({className:`min-h-11 sm:min-h-8`,variant:`outline`}),href:Zt,rel:`noreferrer`,target:`_blank`,children:[`Bundle diffing guide`,(0,R.jsx)(u,{"data-icon":`inline-end`})]})})]}):(0,R.jsxs)(He,{"aria-busy":o&&s.isPlaceholderData,"aria-label":`Patches from this build`,className:`table-fixed`,children:[(0,R.jsx)(Be,{children:(0,R.jsxs)(I,{children:[(0,R.jsx)(F,{children:`Target bundle`}),(0,R.jsx)(F,{className:`w-28`,children:`Patch size`}),(0,R.jsx)(F,{className:`hidden w-32 sm:table-cell`,children:`Created`})]})}),(0,R.jsx)(Ve,{children:c.data.map(e=>(0,R.jsxs)(I,{children:[(0,R.jsx)(L,{className:`py-3 whitespace-normal`,children:(0,R.jsx)(l,{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,R.jsx)(L,{className:`text-xs tabular-nums`,children:p(e.byteSize)}),(0,R.jsx)(L,{className:`hidden sm:table-cell`,children:(0,R.jsx)(v,{uuid:e.bundleId})})]},e.bundleId))})]}),d!==void 0||f!==void 0?(0,R.jsxs)(`nav`,{"aria-label":`Patch pages`,className:`flex items-center justify-end gap-2 border-t px-4 py-2`,children:[(0,R.jsxs)(t,{className:`min-h-11 sm:min-h-7`,disabled:f===void 0||o&&s.isPlaceholderData,onClick:()=>a({after:f}),size:`sm`,variant:`ghost`,children:[(0,R.jsx)(me,{"data-icon":`inline-start`}),`Newer`]}),(0,R.jsxs)(t,{className:`min-h-11 sm:min-h-7`,disabled:d===void 0||o&&s.isPlaceholderData,onClick:()=>a({before:d}),size:`sm`,variant:`ghost`,children:[`Older`,(0,R.jsx)(he,{"data-icon":`inline-end`})]})]}):null]})]})}var $t=(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 en({download:e}){switch(e.kind){case`patch`:return(0,R.jsxs)(`span`,{className:`text-xs`,children:[`Patch`,` `,(0,R.jsxs)(`span`,{className:`text-muted-foreground tabular-nums`,children:[`(`,p(e.byteSize),`)`]})]});case`full`:return(0,R.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Full bundle`});case`unknown`:return(0,R.jsx)(`a`,{className:`text-xs underline-offset-4 hover:underline`,href:`#patches`,children:`See patches`})}}function tn({detail:e}){let{build:t,channel:r,servedNow:i,patches:a,catalogScopeKey:o}=e,s=i.find(({rolloutCohortCount:e,targetCohorts:t})=>e>0||t.length>0)?.bundleId,c=t.is_store_build&&s!=null&&$t(a,s).kind===`full`?[`npx hot-updater patch`,`-p ${t.platform}`,`-c ${h(r)}`,`-b ${h(s)}`,`--base-artifact-id ${h(t.min_bundle_id)}`].join(` `):null,d=(0,R.jsxs)(l,{className:`inline-flex items-center gap-0.5 underline-offset-4 hover:underline`,search:{scopeKey:o},to:`/`,children:[`All releases in this scope`,(0,R.jsx)(u,{"aria-hidden":`true`,className:`size-3`})]});return(0,R.jsxs)(O,{className:`overflow-hidden shadow-sm`,children:[(0,R.jsx)(T,{className:`border-b px-4 py-3`,children:(0,R.jsx)(D,{className:`text-sm`,children:(0,R.jsx)(`h2`,{children:`Served now`})})}),(0,R.jsx)(E,{className:`p-0`,children:i.length===0?(0,R.jsxs)(P,{className:`py-10`,children:[(0,R.jsxs)(A,{children:[(0,R.jsx)(k,{variant:`icon`,children:(0,R.jsx)(We,{})}),(0,R.jsx)(M,{children:`No OTA for this build yet`}),(0,R.jsxs)(N,{children:[`No release in this build's scope is newer than its built-in bundle. Deploy one with`,` `,(0,R.jsx)(`code`,{className:`font-mono`,children:`hot-updater deploy`}),`, and it shows here.`]})]}),(0,R.jsx)(j,{children:(0,R.jsx)(l,{className:n({className:`min-h-11 sm:min-h-8`,variant:`outline`}),search:{scopeKey:o},to:`/`,children:`All releases in this scope`})})]}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(He,{"aria-label":`Served now`,className:`table-fixed`,children:[(0,R.jsx)(Be,{children:(0,R.jsxs)(I,{children:[(0,R.jsx)(F,{children:`Bundle`}),(0,R.jsx)(F,{className:`hidden w-40 md:table-cell`,children:`Rollout`}),(0,R.jsx)(F,{className:`hidden w-32 sm:table-cell`,children:`Created`}),(0,R.jsx)(F,{className:`w-32`,children:`First OTA download`})]})}),(0,R.jsx)(Ve,{children:i.map(e=>{let t=e.bundleId,n=e.rolloutCohortCount/Ae*100;return(0,R.jsxs)(I,{children:[(0,R.jsx)(L,{className:`py-3 whitespace-normal`,children:(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,R.jsx)(l,{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,R.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.message}):null]})}),(0,R.jsx)(L,{className:`hidden md:table-cell`,children:(0,R.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[e.targetCohorts.length>0?(0,R.jsx)(ke,{variant:`secondary`,children:e.targetCohorts.length===1?`1 cohort`:`${e.targetCohorts.length} cohorts`}):(0,R.jsx)(be,{percentage:n}),e.shouldForceUpdate?(0,R.jsx)(ke,{variant:`outline`,children:`Forced`}):null]})}),(0,R.jsx)(L,{className:`hidden sm:table-cell`,children:(0,R.jsx)(v,{uuid:t})}),(0,R.jsx)(L,{children:(0,R.jsx)(en,{download:$t(a,t)})})]},e.releaseId)})})]}),c===null?null:(0,R.jsxs)(`div`,{className:`flex flex-col gap-2 border-t px-4 py-3 text-xs`,children:[(0,R.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,R.jsx)(f,{label:`the patch command`,value:c})]}),(0,R.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. `,d]})]})})]})}function nn({buildId:r,search:i,onSearchChange:a}){let o=ze(r),c=o.data,u={...i.patchesBefore===void 0?{}:{before:i.patchesBefore},...i.patchesAfter===void 0?{}:{after:i.patchesAfter}};return(0,R.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,R.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,R.jsx)(s,{className:`-ml-1 size-11 lg:size-7`}),(0,R.jsxs)(l,{className:n({className:`min-h-11 sm:min-h-7`,size:`sm`,variant:`ghost`}),to:`/native-builds`,children:[(0,R.jsx)(me,{"data-icon":`inline-start`}),`Native builds`]}),c?(0,R.jsxs)(`h1`,{className:`flex min-w-0 items-center gap-1.5 text-sm font-medium`,children:[(0,R.jsx)(Me,{className:`size-3.5 shrink-0 text-muted-foreground`,platform:c.build.platform}),(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5`,children:[(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 whitespace-nowrap`,children:[(0,R.jsxs)(`span`,{className:`sr-only`,children:[g(c.build.platform),` `]}),se[c.build.artifact_kind].label,(0,R.jsx)(Te,{build:c.build})]}),(0,R.jsxs)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:[`· `,(0,R.jsx)(`span`,{translate:`no`,children:c.channel})]})]}),(0,R.jsx)(`span`,{className:`hidden text-xs font-normal text-muted-foreground tabular-nums sm:inline`,children:p(c.build.byte_size)})]}):(0,R.jsx)(`h1`,{className:`sr-only`,children:`Native build`})]}),(0,R.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,R.jsx)(`div`,{className:`mx-auto flex w-full max-w-5xl flex-col gap-4 sm:gap-6`,children:o.isError?(0,R.jsxs)(S,{variant:`destructive`,children:[(0,R.jsx)(C,{}),(0,R.jsx)(b,{children:`The native build couldn't be loaded`}),(0,R.jsx)(x,{children:o.error.message}),(0,R.jsx)(Oe,{children:(0,R.jsxs)(t,{onClick:()=>void o.refetch(),size:`xs`,variant:`outline`,children:[(0,R.jsx)(we,{"data-icon":`inline-start`}),`Retry`]})})]}):c===void 0?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`span`,{className:`sr-only`,children:`Loading the native build`}),(0,R.jsx)(e,{className:`h-56 w-full rounded-xl`}),(0,R.jsx)(e,{className:`h-64 w-full rounded-xl`})]}):c===null?(0,R.jsxs)(P,{className:`border py-16`,children:[(0,R.jsxs)(A,{children:[(0,R.jsx)(k,{variant:`icon`,children:(0,R.jsx)(Ce,{})}),(0,R.jsx)(M,{children:`Native build not found`}),(0,R.jsxs)(N,{children:[`No native build has this ID. It may have been deleted with`,` `,(0,R.jsx)(`code`,{className:`font-mono`,children:`native-build delete`}),`, or be from another console.`]})]}),(0,R.jsx)(j,{children:(0,R.jsx)(l,{className:n({className:`min-h-11 sm:min-h-8`,variant:`outline`}),to:`/native-builds`,children:`Show all native builds`})})]}):(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(Yt,{build:c.build}),(0,R.jsx)(Ye,{detail:c}),(0,R.jsx)(tn,{detail:c}),(0,R.jsx)(Qt,{detail:c,onPage:e=>a({...e.before===void 0?{}:{patchesBefore:e.before},...e.after===void 0?{}:{patchesAfter:e.after}}),page:u})]})})})]})}function rn(){let{buildId:e}=_.useParams(),t=_.useSearch(),n=_.useNavigate();return(0,R.jsx)(nn,{buildId:e,onSearchChange:e=>void n({search:e,replace:!0}),search:t})}export{rn as component};