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

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 (286) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-OlRj4Jz0.js → -native-builds-search-7blX2yQW.js} +1 -1
  3. package/.output/public/assets/BundleIdDisplay-B0gAH01c.js +1 -0
  4. package/.output/public/assets/CompositeItem-Dy4xgOMg.js +1 -0
  5. package/.output/public/assets/{ConsoleFeatureUnavailable-DUqlpHCp.js → ConsoleFeatureUnavailable-cy_snb33.js} +1 -1
  6. package/.output/public/assets/{EventDetails-DZsRlDHk.js → EventDetails-sxag8Hfc.js} +1 -1
  7. package/.output/public/assets/{HashValueDisplay-MoZMmTeP.js → HashValueDisplay-DMweha_0.js} +1 -1
  8. package/.output/public/assets/{InsightsPageHeader-2bTrjXln.js → InsightsPageHeader-D5TJspVe.js} +1 -1
  9. package/.output/public/assets/IosInstall-B5NspihF.js +1 -0
  10. package/.output/public/assets/NativeBuildsNav-CjOOlbEu.js +1 -0
  11. package/.output/public/assets/{NotFoundPage-Ckb5GMhh.js → NotFoundPage-DDOJarFa.js} +1 -1
  12. package/.output/public/assets/{PlatformIcon-CJ69KopR.js → PlatformIcon-BBvlg6JY.js} +1 -1
  13. package/.output/public/assets/RelativeTime-CY1dKZpv.js +1 -0
  14. package/.output/public/assets/{RolloutPercentageBadge-G6qt8rVb.js → RolloutPercentageBadge-BHgHkBGB.js} +1 -1
  15. package/.output/public/assets/RowReason-BMx_vclu.js +1 -0
  16. package/.output/public/assets/SandboxBadge-irEkMf1P.js +1 -0
  17. package/.output/public/assets/TargetDisplay-DB8D019f.js +1 -0
  18. package/.output/public/assets/{alert-dialog-DiRLrFVe.js → alert-dialog-CLC_h1fL.js} +1 -1
  19. package/.output/public/assets/api-DLryz9hA.js +1 -0
  20. package/.output/public/assets/api-keys-Cd-aNt-v.js +1 -0
  21. package/.output/public/assets/api-keys-D3tAc4Uu.js +1 -0
  22. package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
  23. package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
  24. package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
  25. package/.output/public/assets/{badge-D0NFvUY5.js → badge-DJMW4YVM.js} +1 -1
  26. package/.output/public/assets/card-C4sBAMU-.js +1 -0
  27. package/.output/public/assets/check-CqWNyG93.js +1 -0
  28. package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
  29. package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
  30. package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
  31. package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
  32. package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
  33. package/.output/public/assets/dialog-tCTZmAo8.js +1 -0
  34. package/.output/public/assets/{dist-Bf1BPKMs.js → dist-Bw_uSBJn.js} +1 -1
  35. package/.output/public/assets/empty-DsbLxQ1w.js +1 -0
  36. package/.output/public/assets/field-DL4OXTJ7.js +1 -0
  37. package/.output/public/assets/git-branch-ByZMEBxZ.js +1 -0
  38. package/.output/public/assets/history-wYnPoVmT.js +1 -0
  39. package/.output/public/assets/index-CAnjb7M2.js +10 -0
  40. package/.output/public/assets/{input-group-D_NfhUbX.js → input-group-B7jx0icS.js} +1 -1
  41. package/.output/public/assets/insights-DIs4nJI9.js +2 -0
  42. package/.output/public/assets/insights-DTF7C4jb.js +42 -0
  43. package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
  44. package/.output/public/assets/insights-bUk3ChoU.js +1 -0
  45. package/.output/public/assets/{insights-search-CYPrQVUC.js → insights-search-TfRz5kGG.js} +1 -1
  46. package/.output/public/assets/insights-usage-rpc-B4V-Qqo4.js +1 -0
  47. package/.output/public/assets/insights_.distribution-BPl5oRt4.js +2 -0
  48. package/.output/public/assets/{insights_.distribution-_dZi1_ay.js → insights_.distribution-BqfzAuAf.js} +1 -1
  49. package/.output/public/assets/insights_.distribution-BqtmnGTt.js +1 -0
  50. package/.output/public/assets/installations-6U8c_03X.js +1 -0
  51. package/.output/public/assets/{installations-Y_7QW_p8.js → installations-BU65zztK.js} +1 -1
  52. package/.output/public/assets/installations-D3MbzcFb.js +2 -0
  53. package/.output/public/assets/{key-round-DzBe6DHr.js → key-round-B-P_hhUB.js} +1 -1
  54. package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
  55. package/.output/public/assets/{list-B6GeoQ_b.js → list-fFsS8Wxe.js} +1 -1
  56. package/.output/public/assets/loader-circle-GWIgH0fo.js +1 -0
  57. package/.output/public/assets/native-builds-BdzfAFnF.js +1 -0
  58. package/.output/public/assets/native-builds-CWwvuOXr.js +2 -0
  59. package/.output/public/assets/native-builds-Eh72Vr2G.js +1 -0
  60. package/.output/public/assets/native-builds_._buildId-33ksAlnZ.js +1 -0
  61. package/.output/public/assets/native-builds_._buildId-BVA5GnZP.js +2 -0
  62. package/.output/public/assets/native-builds_.devices-CElovmwq.js +1 -0
  63. package/.output/public/assets/native-builds_.devices-DWtcOVYO.js +2 -0
  64. package/.output/public/assets/{package-ytYrywZH.js → package-CXSDZsME.js} +1 -1
  65. package/.output/public/assets/plus-Cx-yFNd9.js +1 -0
  66. package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
  67. package/.output/public/assets/{refresh-cw-C-tvoCcE.js → refresh-cw-BgiOaFX3.js} +1 -1
  68. package/.output/public/assets/{relativeTime-DvyxGIsm.js → relativeTime-CBmDq8wh.js} +1 -1
  69. package/.output/public/assets/remote-config-B3oq9qR0.js +1 -0
  70. package/.output/public/assets/remote-config-CGbqsPh_.js +6 -0
  71. package/.output/public/assets/remote-config-D1OkfQKt.js +1 -0
  72. package/.output/public/assets/{rotate-cw-Clk5xTeE.js → rotate-cw-C1v7YuN7.js} +1 -1
  73. package/.output/public/assets/{routes-gQXSzO_n.js → routes-BTG3rg0l.js} +2 -2
  74. package/.output/public/assets/routes-CVbPjRKo.js +1 -0
  75. package/.output/public/assets/search-DiOSjaYL.js +1 -0
  76. package/.output/public/assets/select-CA8r-UUe.js +1 -0
  77. package/.output/public/assets/send-BgXZNiEA.js +1 -0
  78. package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
  79. package/.output/public/assets/smartphone-CxP0GGT6.js +1 -0
  80. package/.output/public/assets/styles-B0kzy3kp.css +2 -0
  81. package/.output/public/assets/switch-BTHWmKQ5.js +1 -0
  82. package/.output/public/assets/table-CwF7yxj4.js +1 -0
  83. package/.output/public/assets/tabs-CHNnCyvw.js +1 -0
  84. package/.output/public/assets/trash-2-CYISg7ZF.js +1 -0
  85. package/.output/public/assets/{undo-2-Bt0YXG26.js → undo-2-Bod3vw7x.js} +1 -1
  86. package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
  87. package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
  88. package/.output/server/{__23tanstack-start-server-fn-resolver-z8rr63xV.mjs → __23tanstack-start-server-fn-resolver-BFiPs5uv.mjs} +85 -49
  89. package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
  90. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  91. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  92. package/.output/server/_libs/_.mjs +1 -1
  93. package/.output/server/_libs/lucide-react.mjs +22 -2
  94. package/.output/server/_libs/next-themes.mjs +1 -1
  95. package/.output/server/_libs/react-redux+[...].mjs +1 -1
  96. package/.output/server/_libs/recharts+[...].mjs +1 -1
  97. package/.output/server/_libs/sonner.mjs +1 -1
  98. package/.output/server/_libs/tanstack__react-query.mjs +1 -1
  99. package/.output/server/_ssr/{-native-builds-search-M6t7EIt4.mjs → -native-builds-search-Mm_AZoRU.mjs} +8 -2
  100. package/.output/server/_ssr/{BundleIdDisplay-DRnAzJse.mjs → BundleIdDisplay-BSBR5eJ3.mjs} +3 -3
  101. package/.output/server/_ssr/{ConsoleFeatureUnavailable-BEU7r4aH.mjs → ConsoleFeatureUnavailable-DcZ4JBVq.mjs} +8 -8
  102. package/.output/server/_ssr/CopyableText-DgNEsByt.mjs +33 -0
  103. package/.output/server/_ssr/{EventDetails-CjT6o2sJ.mjs → EventDetails-CUHZuwei.mjs} +9 -9
  104. package/.output/server/_ssr/{HashValueDisplay-Bkim8r3-.mjs → HashValueDisplay-B9ORaCcP.mjs} +3 -3
  105. package/.output/server/_ssr/{InsightsPageHeader-Ctw4N3SZ.mjs → InsightsPageHeader-C0bJqC-n.mjs} +9 -9
  106. package/.output/server/_ssr/IosInstall-C5Y5gnDY.mjs +574 -0
  107. package/.output/server/_ssr/NativeBuildsNav-hFiyBaFW.mjs +38 -0
  108. package/.output/server/_ssr/{NotFoundPage-Bh3gFsR6.mjs → NotFoundPage-D4xRjmIA.mjs} +3 -3
  109. package/.output/server/_ssr/{PlatformIcon-CMLs3Wez.mjs → PlatformIcon-BpGOEXjU.mjs} +2 -2
  110. package/.output/server/_ssr/{RelativeTime-DjdCU0J7.mjs → RelativeTime-DnvxB666.mjs} +20 -9
  111. package/.output/server/_ssr/{RolloutPercentageBadge-BiIHw-V2.mjs → RolloutPercentageBadge-NBnIOzY9.mjs} +4 -4
  112. package/.output/server/_ssr/RowReason-B_jZN48d.mjs +169 -0
  113. package/.output/server/_ssr/{StoreSubmission-Cv59joPo.mjs → SandboxBadge-CFtTG1ZJ.mjs} +17 -17
  114. package/.output/server/_ssr/{TargetDisplay-D1PKOupt.mjs → TargetDisplay-0sb03v_6.mjs} +7 -33
  115. package/.output/server/_ssr/{alert-dialog-BOKQTpmP.mjs → alert-dialog-SLr1Q_AI.mjs} +2 -2
  116. package/.output/server/_ssr/{api-CDvGGB1B.mjs → api-CkgOQzSb.mjs} +74 -17
  117. package/.output/server/_ssr/{api-keys-DvbSgd9L.mjs → api-keys-BP7NJtoX.mjs} +2 -2
  118. package/.output/server/_ssr/{api-keys-NYJ0VaDB.mjs → api-keys-BcSzq0TA.mjs} +11 -11
  119. package/.output/server/_ssr/{api-keys-rpc-B0MrcD15.mjs → api-keys-rpc-IWPOq5vn.mjs} +3 -3
  120. package/.output/server/_ssr/{api-rpc-CIB9gcI7.mjs → api-rpc-cNJTB3v4.mjs} +48 -32
  121. package/.output/server/_ssr/{auth-rpc-DsIffEXe.mjs → auth-rpc-oaBbtxSP.mjs} +4 -4
  122. package/.output/server/_ssr/{auth.server-Dt9XHLs_.mjs → auth.server-WQw9JjMm.mjs} +587 -19
  123. package/.output/server/_ssr/{badge-KS3YftV5.mjs → badge-n3c0OTBQ.mjs} +2 -2
  124. package/.output/server/_ssr/{bundleActivity-BGVvqWx7.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
  125. package/.output/server/_ssr/{card-CG5GqIoA.mjs → card-CYgCcRUd.mjs} +2 -2
  126. package/.output/server/_ssr/{config.server-CJs-9Zd_.mjs → config.server-R3KQbcML.mjs} +4 -4
  127. package/.output/server/_ssr/{console-access-ClmTMpo_.mjs → console-access-BLVi82IN.mjs} +2 -2
  128. package/.output/server/_ssr/{console-features-api-CpMYF0Pb.mjs → console-features-api-B2JvJOlE.mjs} +4 -4
  129. package/.output/server/_ssr/{console-features-rpc-D-dr-WF8.mjs → console-features-rpc-LAxQoSNw.mjs} +3 -3
  130. package/.output/server/_ssr/{console-features-CRP-pfov.mjs → console-features-xaGDhRC9.mjs} +1 -1
  131. package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
  132. package/.output/server/_ssr/{dialog-DvHMJkq7.mjs → dialog-eru_h5oK.mjs} +2 -2
  133. package/.output/server/_ssr/{downloadBundle-BX8ODCZT.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
  134. package/.output/server/_ssr/{empty-Bx8DnyWN.mjs → empty-Bu4qodCx.mjs} +3 -3
  135. package/.output/server/_ssr/{failureReports-C_CmBF4x.mjs → failureReports-BA2eg11O.mjs} +3 -3
  136. package/.output/server/_ssr/{field-BVI4lxoz.mjs → field-DA5lwO5U.mjs} +3 -3
  137. package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
  138. package/.output/server/_ssr/{getBundleChildren-BJTufthT.mjs → getBundleChildren-CdqFonhl.mjs} +1 -1
  139. package/.output/server/_ssr/{input-group-CpJwooTk.mjs → input-group-VV5E3q78.mjs} +2 -2
  140. package/.output/server/_ssr/{insights-b1hq1O0p.mjs → insights-BJIt1xuT.mjs} +2 -2
  141. package/.output/server/_ssr/{insights-B-VtObqr.mjs → insights-C23mopzv.mjs} +5 -5
  142. package/.output/server/_ssr/{insights-DxlHHXPK.mjs → insights-Ci82qdkq.mjs} +27 -27
  143. package/.output/server/_ssr/{insights-api-8PWQ7PiR.mjs → insights-api-BwXMKUSe.mjs} +5 -5
  144. package/.output/server/_ssr/{insights-errors-Bz3sWNZm.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
  145. package/.output/server/_ssr/{insights-failures-DNQ9qVVf.mjs → insights-failures-7zH97WOO.mjs} +2 -2
  146. package/.output/server/_ssr/{insights-failures-rpc-pY2KV9HI.mjs → insights-failures-rpc-BuZ-jnby.mjs} +10 -10
  147. package/.output/server/_ssr/{insights-recovery-DOkpqnQ8.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
  148. package/.output/server/_ssr/{insights-recovery-rpc-CejmWL_y.mjs → insights-recovery-rpc-DrXSy9aA.mjs} +6 -6
  149. package/.output/server/_ssr/{insights-rpc-D_7d_AAJ.mjs → insights-rpc-DyrIZg3a.mjs} +3 -3
  150. package/.output/server/_ssr/{insights-search-CoMkZvRt.mjs → insights-search-CNkNB-aa.mjs} +3 -3
  151. package/.output/server/_ssr/{insights-usage-4KDIN3Kg.mjs → insights-usage-h8fipPTv.mjs} +1 -1
  152. package/.output/server/_ssr/{insights-usage-rpc-CrGZDHzO.mjs → insights-usage-rpc-C7UC1lom.mjs} +6 -6
  153. package/.output/server/_ssr/{insights-usage-rpc-B1XSuara.mjs → insights-usage-rpc-cTgmD-Ej.mjs} +5 -5
  154. package/.output/server/_ssr/{insightsUsage-DmQdJZqT.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
  155. package/.output/server/_ssr/{insights_.distribution-EOOOOTb6.mjs → insights_.distribution-BauOpBTE.mjs} +2 -2
  156. package/.output/server/_ssr/{insights_.distribution-CpqnDZNG.mjs → insights_.distribution-CIY_IGmh.mjs} +16 -16
  157. package/.output/server/_ssr/{insights_.distribution-B9sPDvG4.mjs → insights_.distribution-wfFKEv-Z.mjs} +5 -5
  158. package/.output/server/_ssr/{installations-BOI_y7Ma.mjs → installations-Ba3YVrAf.mjs} +13 -13
  159. package/.output/server/_ssr/{installations-dWlOOS7Y.mjs → installations-VzacOKHp.mjs} +2 -2
  160. package/.output/server/_ssr/{installations-D0_0hzdi.mjs → installations-jGW7nvEV.mjs} +4 -4
  161. package/.output/server/_ssr/ios-devices-rpc-Bhn7VVIh.mjs +138 -0
  162. package/.output/server/_ssr/iosDeviceProfile-_XT8TpgZ.mjs +176 -0
  163. package/.output/server/_ssr/iosDevices-Bc27J72d.mjs +129 -0
  164. package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
  165. package/.output/server/_ssr/{native-builds-OUdRtp6m.mjs → native-builds-BXBkklfA.mjs} +28 -6
  166. package/.output/server/_ssr/{native-builds-Bx_az6YZ.mjs → native-builds-DZFJGcHy.mjs} +3 -3
  167. package/.output/server/_ssr/{native-builds-C721Rw23.mjs → native-builds-DiNkKHly.mjs} +221 -86
  168. package/.output/server/_ssr/{native-builds_._buildId-ubi48Sfs.mjs → native-builds_._buildId-CuM1PsT6.mjs} +108 -294
  169. package/.output/server/_ssr/{native-builds_._buildId-YItxv8j9.mjs → native-builds_._buildId-D0n4QZY6.mjs} +3 -3
  170. package/.output/server/_ssr/native-builds_.devices-D0JJlX8E.mjs +689 -0
  171. package/.output/server/_ssr/native-builds_.devices-DiM2FdcW.mjs +10 -0
  172. package/.output/server/_ssr/{nativeBuildDownloadLink-C0I8eLpS.mjs → nativeBuildDownloadLink-CvvWuhh0.mjs} +3 -3
  173. package/.output/server/_ssr/{nativeBuildInstall-CxG8K8TL.mjs → nativeBuildInstall-BqcVHBaD.mjs} +54 -7
  174. package/.output/server/_ssr/{nativeBuilds-CRLmvFaO.mjs → nativeBuilds-Cub0EUGN.mjs} +135 -13
  175. package/.output/server/_ssr/{publicConsoleBase-DvHYxDaG.mjs → publicConsoleBase-f67NLLXZ.mjs} +11 -3
  176. package/.output/server/_ssr/{release-adoption-C7sUFDwa.mjs → release-adoption-DeICczY7.mjs} +2 -2
  177. package/.output/server/_ssr/{release-adoption-rpc-DcZAYRWJ.mjs → release-adoption-rpc-Dm-5yAJG.mjs} +8 -8
  178. package/.output/server/_ssr/{releaseAdoption-D6ScSu-W.mjs → releaseAdoption-kHZo8P90.mjs} +3 -3
  179. package/.output/server/_ssr/{remote-config-gKqDKMxk.mjs → remote-config-D1BhIBKu.mjs} +3 -3
  180. package/.output/server/_ssr/{remote-config-DOcSXzxG.mjs → remote-config-D7RruPiO.mjs} +2 -2
  181. package/.output/server/_ssr/{remote-config-BZ_vGV97.mjs → remote-config-ZFm-l4Gi.mjs} +20 -20
  182. package/.output/server/_ssr/{remote-config-rpc-CVPd3V69.mjs → remote-config-rpc-C7AZy37o.mjs} +3 -3
  183. package/.output/server/_ssr/{router-Bcyej4cr.mjs → router-BGkGFMsT.mjs} +72 -75
  184. package/.output/server/_ssr/{routes-B10xsCh4.mjs → routes-CJJxz-Ak.mjs} +304 -230
  185. package/.output/server/_ssr/{routes-ddBRVSju.mjs → routes-CiJ2dhL9.mjs} +14 -13
  186. package/.output/server/_ssr/{runtime.server-wcHT2Cop.mjs → runtime.server-CkSbWaZm.mjs} +2 -2
  187. package/.output/server/_ssr/{schema-migration-rpc-iWZzLv70.mjs → schema-migration-rpc-D4YlwvGH.mjs} +3 -3
  188. package/.output/server/_ssr/{select-i4WT0c9r.mjs → select-BB8GE7OZ.mjs} +3 -3
  189. package/.output/server/_ssr/{server-CMgMPrDx.mjs → server-DAHTchcr.mjs} +5 -5
  190. package/.output/server/_ssr/{sidebar-mIQgB0iy.mjs → sidebar-CsKVgZHa.mjs} +3 -3
  191. package/.output/server/_ssr/ssr.mjs +1 -1
  192. package/.output/server/_ssr/{start-By4wHYjG.mjs → start-D3noqqOK.mjs} +1 -1
  193. package/.output/server/_ssr/{switch-DR8EAh5C.mjs → switch-BvvmP7Y3.mjs} +3 -3
  194. package/.output/server/_ssr/{table-DXmK6G7A.mjs → table-WKKzprFn.mjs} +2 -2
  195. package/.output/server/_ssr/{tabs-DAfypcYe.mjs → tabs-BJ-4SgmC.mjs} +4 -4
  196. package/.output/server/_ssr/{updateFailures-DNiv3S_y.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
  197. package/.output/server/_tanstack-start-manifest_v-CSUJeG5D.mjs +219 -0
  198. package/.output/server/index.mjs +436 -366
  199. package/lib/index.d.mts +9 -0
  200. package/package.json +7 -30
  201. package/src/components/DataTable.tsx +21 -2
  202. package/src/components/FoldedRows.tsx +201 -0
  203. package/src/components/RowReason.tsx +56 -0
  204. package/src/components/features/native-builds/InstallCard.tsx +1 -1
  205. package/src/components/features/native-builds/IosDevicesPage.tsx +892 -0
  206. package/src/components/features/native-builds/IosInstall.tsx +292 -62
  207. package/src/components/features/native-builds/IpaDevicesCard.tsx +107 -0
  208. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +7 -0
  209. package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
  210. package/src/components/features/native-builds/NativeBuildsPage.tsx +2 -0
  211. package/src/components/features/native-builds/NativeBuildsTable.tsx +214 -30
  212. package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
  213. package/src/index.ts +9 -0
  214. package/src/lib/api-rpc.ts +56 -29
  215. package/src/lib/api.ts +65 -2
  216. package/src/lib/ios-devices-api.ts +110 -0
  217. package/src/lib/ios-devices-rpc.ts +174 -0
  218. package/src/lib/native-builds.ts +72 -7
  219. package/src/lib/server/console-runtime.server.ts +9 -2
  220. package/src/lib/server/deviceProfileToken.ts +187 -0
  221. package/src/lib/server/foldedPage.ts +360 -0
  222. package/src/lib/server/iosDeviceProfile.ts +230 -0
  223. package/src/lib/server/iosDevices.ts +223 -0
  224. package/src/lib/server/listReleases.ts +101 -62
  225. package/src/lib/server/nativeBuildInstall.ts +138 -7
  226. package/src/lib/server/nativeBuilds.ts +221 -26
  227. package/src/routeTree.gen.ts +64 -67
  228. package/src/routes/-native-builds-search.ts +20 -0
  229. package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
  230. package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
  231. package/src/routes/index.tsx +444 -299
  232. package/src/routes/native-builds_.devices.tsx +21 -0
  233. package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +0 -1
  234. package/.output/public/assets/RelativeTime-TCmpOVPg.js +0 -1
  235. package/.output/public/assets/StoreSubmission-CqSg880n.js +0 -1
  236. package/.output/public/assets/TargetDisplay-DwOaMOiI.js +0 -1
  237. package/.output/public/assets/api-LQJH44FU.js +0 -1
  238. package/.output/public/assets/api-keys-4w2-ofii.js +0 -1
  239. package/.output/public/assets/api-keys-uFY8FsN9.js +0 -1
  240. package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
  241. package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
  242. package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
  243. package/.output/public/assets/card-ulgg5xHn.js +0 -1
  244. package/.output/public/assets/check-CXVR3s3X.js +0 -1
  245. package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
  246. package/.output/public/assets/dialog-CLIaC82_.js +0 -1
  247. package/.output/public/assets/empty-Bhlj8PEo.js +0 -1
  248. package/.output/public/assets/field-q4sTYzNU.js +0 -1
  249. package/.output/public/assets/history-DakJoeSM.js +0 -1
  250. package/.output/public/assets/index-CJclLsbG.js +0 -10
  251. package/.output/public/assets/insights-0TUItqwh.js +0 -1
  252. package/.output/public/assets/insights-B75txQ_F.js +0 -42
  253. package/.output/public/assets/insights-C17Z0whn.js +0 -2
  254. package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
  255. package/.output/public/assets/insights-usage-rpc-BbFllvi_.js +0 -1
  256. package/.output/public/assets/insights_.distribution-AZcfvK7x.js +0 -1
  257. package/.output/public/assets/insights_.distribution-gDqNqI5E.js +0 -2
  258. package/.output/public/assets/installations-Ap2G2tDs.js +0 -1
  259. package/.output/public/assets/installations-D0g3xvw8.js +0 -2
  260. package/.output/public/assets/native-builds-Ba6cEZfm.js +0 -2
  261. package/.output/public/assets/native-builds-C3_-21we.js +0 -1
  262. package/.output/public/assets/native-builds_._buildId-BnP31v32.js +0 -1
  263. package/.output/public/assets/native-builds_._buildId-Cp9LJiMP.js +0 -2
  264. package/.output/public/assets/plus-BVhOauU3.js +0 -1
  265. package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
  266. package/.output/public/assets/remote-config-BRdy8QFR.js +0 -1
  267. package/.output/public/assets/remote-config-C9p5Pcdj.js +0 -6
  268. package/.output/public/assets/remote-config-CIAEArwq.js +0 -1
  269. package/.output/public/assets/routes-BLTF7nwe.js +0 -1
  270. package/.output/public/assets/search-nnvSOTEB.js +0 -1
  271. package/.output/public/assets/select-CBIU0_M1.js +0 -1
  272. package/.output/public/assets/smartphone-r0rRdPas.js +0 -1
  273. package/.output/public/assets/styles-BdlrKlVs.css +0 -2
  274. package/.output/public/assets/switch-CP6GsHmN.js +0 -1
  275. package/.output/public/assets/table-TUtVz-2l.js +0 -1
  276. package/.output/public/assets/tabs-CP3CSmtI.js +0 -1
  277. package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
  278. package/.output/server/_ssr/listReleases-CQEceg8j.mjs +0 -79
  279. package/.output/server/_ssr/nativeBuildDevice-DJUAzAIj.mjs +0 -210
  280. package/.output/server/_tanstack-start-manifest_v-8M7ggCuB.mjs +0 -192
  281. package/src/lib/server/nativeBuildDevice.ts +0 -253
  282. package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +0 -17
  283. package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +0 -17
  284. package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +0 -17
  285. /package/.output/public/assets/{uuidv7-cI6C63Fm.js → uuidv7-CVJ09bBG.js} +0 -0
  286. /package/.output/public/assets/{valueToPercent-B6X9rUJM.js → valueToPercent-Db73Kirz.js} +0 -0
@@ -0,0 +1,574 @@
1
+ import { i as __toESM } from "../_runtime.mjs";
2
+ import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
3
+ import { Et as require_react, Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
4
+ import { D as LoaderCircle, i as TriangleAlert, p as Send, u as Smartphone } from "../_libs/lucide-react.mjs";
5
+ import { A as createSsrRpc, C as Skeleton, O as buttonVariants, k as cn, n as Input, t as Button$1 } from "./sidebar-CsKVgZHa.mjs";
6
+ import { t as consoleAccess } from "./console-access-BLVi82IN.mjs";
7
+ import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
8
+ import { i as useQuery, n as useMutation, s as useQueryClient } from "../_libs/tanstack__react-query.mjs";
9
+ import { l as keepPreviousData } from "../_libs/tanstack__query-core.mjs";
10
+ import { i as AlertTitle, r as AlertDescription, t as Alert } from "./badge-n3c0OTBQ.mjs";
11
+ import { a as FieldLabel, n as FieldDescription, r as FieldError, t as Field } from "./field-DA5lwO5U.mjs";
12
+ import { c as NATIVE_BUILD_INSTALL_LINK_TTL_MS, f as iosDeviceProfileUrl, i as IOS_DEVICE_RECEIPT_STORAGE_KEY, o as IOS_UDID_PATTERN, s as IOS_UDID_STORAGE_KEY, u as consolePathOf, x as nativeBuildItmsUrl } from "./native-builds-BXBkklfA.mjs";
13
+ import { m as useNativeBuildInstallEligibilityQuery } from "./api-CkgOQzSb.mjs";
14
+ import { n as require_dayjs_min } from "../_libs/dayjs.mjs";
15
+ import { t as encode } from "../_libs/uqr.mjs";
16
+ //#region node_modules/.nitro/vite/services/ssr/assets/IosInstall-C5Y5gnDY.js
17
+ var import_react = /* @__PURE__ */ __toESM(require_react());
18
+ var import_jsx_runtime = require_jsx_runtime();
19
+ var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min());
20
+ /**
21
+ * A QR code of `value` as one SVG path of unit squares, with the standard
22
+ * four-module quiet zone: `size` is the side of its viewBox.
23
+ */
24
+ var qrCodePath = (value) => {
25
+ const { data, size } = encode(value, {
26
+ ecc: "M",
27
+ border: 4
28
+ });
29
+ let path = "";
30
+ data.forEach((row, y) => row.forEach((dark, x) => {
31
+ if (dark) path += `M${x} ${y}h1v1h-1z`;
32
+ }));
33
+ return {
34
+ size,
35
+ path
36
+ };
37
+ };
38
+ /**
39
+ * A QR code of `value`, drawn as one SVG path with the standard four-module
40
+ * quiet zone. Phone cameras read dark modules on a light ground, so the code
41
+ * keeps its own two colors in both themes instead of the theme's tokens.
42
+ */
43
+ function QrCode({ value, label, className }) {
44
+ const { size, path } = (0, import_react.useMemo)(() => qrCodePath(value), [value]);
45
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
46
+ "aria-label": label,
47
+ className: cn("aspect-square rounded-md", className),
48
+ role: "img",
49
+ shapeRendering: "crispEdges",
50
+ viewBox: `0 0 ${size} ${size}`,
51
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", {
52
+ fill: "#fff",
53
+ height: size,
54
+ width: size
55
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
56
+ d: path,
57
+ fill: "#000"
58
+ })]
59
+ });
60
+ }
61
+ var STATUSES = [
62
+ "pending",
63
+ "approved",
64
+ "registered"
65
+ ];
66
+ var record = (input) => {
67
+ if (typeof input !== "object" || input === null) throw new TypeError("Invalid input.");
68
+ return input;
69
+ };
70
+ var text = (input, field, max = 2048) => {
71
+ const value = record(input)[field];
72
+ if (typeof value !== "string" || value.length === 0 || value.length > max) throw new TypeError(`Invalid ${field}.`);
73
+ return value;
74
+ };
75
+ /**
76
+ * The registry over the Console's own assembly, with the signed-in viewer's
77
+ * rights: the access check runs first, in the middleware and again here.
78
+ */
79
+ /** The registry, or one status of it, with what the viewer may do. */
80
+ var getIosDevices = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator((input) => {
81
+ const status = input?.status;
82
+ if (status !== void 0 && !STATUSES.includes(status)) throw new TypeError("Invalid status.");
83
+ return status === void 0 ? {} : { status };
84
+ }).handler(createSsrRpc("3a62744a539db57f5a29f39cec7fb03fd2817703b40d98e6da69e2f5e7ae6f3d"));
85
+ /**
86
+ * A new link to the profile that reads this iPhone's UDID: `register` saves
87
+ * it as requested under `name`, `identify` tells build `buildId`'s page which
88
+ * iPhone it is. A POST, since it signs the link.
89
+ */
90
+ var createIosDeviceProfileLink = createServerFn({ method: "POST" }).middleware([consoleAccess]).validator((input) => {
91
+ const mode = record(input).mode;
92
+ if (mode === "register") return {
93
+ mode,
94
+ name: text(input, "name", 100)
95
+ };
96
+ if (mode === "identify") return {
97
+ mode,
98
+ buildId: text(input, "buildId", 36)
99
+ };
100
+ throw new TypeError("Invalid mode.");
101
+ }).handler(createSsrRpc("4b173c2b2f5ea074a1f10862282308f11f5a043c044d64b6f63e6a29d571ec64"));
102
+ /** Requests the iPhone this person's receipt names, for the next ad hoc build. */
103
+ var requestIosDeviceAccess = createServerFn({ method: "POST" }).middleware([consoleAccess]).validator((input) => ({
104
+ receipt: text(input, "receipt"),
105
+ name: text(input, "name", 100)
106
+ })).handler(createSsrRpc("24005564c8e58dbdeadba89e3f567255a991f5695359cbcc2e8392e033dac8e1"));
107
+ /** Approves a requested device, with its name: approvers only. */
108
+ var approveIosDevice = createServerFn({ method: "POST" }).middleware([consoleAccess]).validator((input) => ({
109
+ id: text(input, "id", 36),
110
+ name: text(input, "name", 100)
111
+ })).handler(createSsrRpc("7908c24ccc2674ce07a553a645b8f4790889975a80f424a05d71a9fb8ab49787"));
112
+ /** Renames a device in the registry: approvers only. */
113
+ var renameIosDevice = createServerFn({ method: "POST" }).middleware([consoleAccess]).validator((input) => ({
114
+ id: text(input, "id", 36),
115
+ name: text(input, "name", 100)
116
+ })).handler(createSsrRpc("4c92dfeae76a6fc898d6f38941eeedaec1f3d118f51a6f31ebf0bb1cea3fcea4"));
117
+ /**
118
+ * Removes a device from the registry: an approver any, the person who asked
119
+ * their own requested one. Apple keeps it.
120
+ */
121
+ var removeIosDevice = createServerFn({ method: "POST" }).middleware([consoleAccess]).validator((input) => ({ udid: text(input, "udid", 40) })).handler(createSsrRpc("8e37ec67413ceba554adb2d4b15e53682595a089d4b431ba7965d4347fb500fc"));
122
+ /**
123
+ * The devices an ad hoc build's IPA lists, read from its profile in storage,
124
+ * each with its registry name when the registry knows it: one row read, the
125
+ * IPA's few parts, and one page of the registry.
126
+ */
127
+ var getNativeBuildIpaDevices = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator((input) => ({ id: text(input, "id", 36) })).handler(createSsrRpc("a11cb4014e6b23528f76382c43684798b0e84a6936aaba02c918e8f4e216e282"));
128
+ var iosDeviceKeys = {
129
+ all: ["ios-devices"],
130
+ list: (status) => ["ios-devices", status ?? "all"],
131
+ ipa: (buildId) => ["native-build-ipa-devices", buildId]
132
+ };
133
+ /**
134
+ * How long a profile link is used before the page signs a new one: its
135
+ * capability works 15 minutes, and a tester may leave the page open.
136
+ */
137
+ var PROFILE_LINK_REFRESH_MS = 600 * 1e3;
138
+ /**
139
+ * The registry, one status or all, kept on screen while it reloads, so a
140
+ * filter change never blanks the table.
141
+ */
142
+ function useIosDevicesQuery(status) {
143
+ return useQuery({
144
+ queryKey: iosDeviceKeys.list(status),
145
+ queryFn: () => getIosDevices({ data: status === void 0 ? {} : { status } }),
146
+ placeholderData: keepPreviousData
147
+ });
148
+ }
149
+ /**
150
+ * A signed link to this iPhone's profile, signed again before it expires:
151
+ * the link stays a plain `<a href>`, so nothing waits on a request when it is
152
+ * tapped. The token signs its input, the name to register or the build to
153
+ * return to, so it has no data while another input's token loads: keeping
154
+ * the previous one would register the old name.
155
+ */
156
+ function useIosDeviceProfileLinkQuery(input, enabled = true) {
157
+ return useQuery({
158
+ queryKey: ["ios-device-profile-link", input],
159
+ queryFn: () => createIosDeviceProfileLink({ data: input }),
160
+ enabled,
161
+ staleTime: PROFILE_LINK_REFRESH_MS,
162
+ refetchInterval: PROFILE_LINK_REFRESH_MS
163
+ });
164
+ }
165
+ /** The devices an IPA lists, by registry name where it has one. */
166
+ function useNativeBuildIpaDevicesQuery(buildId) {
167
+ return useQuery({
168
+ queryKey: iosDeviceKeys.ipa(buildId),
169
+ queryFn: () => getNativeBuildIpaDevices({ data: { id: buildId } })
170
+ });
171
+ }
172
+ var useInvalidatingMutation = (mutationFn) => {
173
+ const queryClient = useQueryClient();
174
+ return useMutation({
175
+ mutationFn,
176
+ onSettled: async () => {
177
+ await Promise.all([queryClient.invalidateQueries({ queryKey: iosDeviceKeys.all }), queryClient.invalidateQueries({ queryKey: ["native-build-install-eligibility"] })]);
178
+ }
179
+ });
180
+ };
181
+ var useApproveIosDeviceMutation = () => useInvalidatingMutation((input) => approveIosDevice({ data: input }));
182
+ var useRenameIosDeviceMutation = () => useInvalidatingMutation((input) => renameIosDevice({ data: input }));
183
+ var useRemoveIosDeviceMutation = () => useInvalidatingMutation((input) => removeIosDevice({ data: input }));
184
+ var useRequestIosDeviceAccessMutation = () => useInvalidatingMutation((input) => requestIosDeviceAccess({ data: input }));
185
+ /**
186
+ * What an install does to the App Store's copy of the app on this iPhone, with
187
+ * the same bundle ID. The one line to change after trying it on a real iPhone.
188
+ */
189
+ var IOS_STORE_APP_NOTE = "With the same bundle ID, this install replaces the App Store's copy of the app on this iPhone.";
190
+ var ACTION_CLASS = "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit";
191
+ /** Whether this browser runs on an iPhone or iPad: an iPad says it is a Mac. */
192
+ var isIosBrowser = (browser) => /iPhone|iPod|iPad/u.test(browser.userAgent) || /Macintosh/u.test(browser.userAgent) && browser.maxTouchPoints > 1;
193
+ /**
194
+ * What the profile's answer passed back in the fragment: the UDID, with a
195
+ * receipt of it from a check, or `requested` from a registration.
196
+ */
197
+ var fragmentOf = () => {
198
+ if (typeof window === "undefined") return {
199
+ udid: null,
200
+ receipt: null,
201
+ requested: false
202
+ };
203
+ const params = new URLSearchParams(window.location.hash.slice(1));
204
+ const udid = params.get("udid");
205
+ const valid = udid !== null && IOS_UDID_PATTERN.test(udid) ? udid : null;
206
+ return {
207
+ udid: valid,
208
+ receipt: valid === null ? null : params.get("r"),
209
+ requested: valid !== null && params.get("requested") === "1"
210
+ };
211
+ };
212
+ var readKept = (key) => {
213
+ try {
214
+ return window.localStorage.getItem(key);
215
+ } catch {
216
+ return null;
217
+ }
218
+ };
219
+ var keep = (key, value) => {
220
+ try {
221
+ window.localStorage.setItem(key, value);
222
+ } catch {}
223
+ };
224
+ /**
225
+ * Whether this page is open on an iPhone, its UDID, and a receipt of it: the
226
+ * ones this phone kept, else the ones the profile's answer passed in the
227
+ * fragment, which are kept then. Read after the page mounts: the server
228
+ * renders it without a browser. Null until then.
229
+ */
230
+ var useIosDevice = () => {
231
+ const [device, setDevice] = (0, import_react.useState)(null);
232
+ const [passed] = (0, import_react.useState)(fragmentOf);
233
+ (0, import_react.useEffect)(() => {
234
+ const valid = (udid) => udid != null && IOS_UDID_PATTERN.test(udid) ? udid : null;
235
+ const answered = passed.receipt !== null || passed.requested;
236
+ if (passed.udid !== null && answered) {
237
+ keep(IOS_UDID_STORAGE_KEY, passed.udid);
238
+ if (passed.receipt !== null) keep(IOS_DEVICE_RECEIPT_STORAGE_KEY, JSON.stringify({
239
+ udid: passed.udid,
240
+ receipt: passed.receipt
241
+ }));
242
+ }
243
+ if (passed.udid !== null && window.location.hash !== "") window.history.replaceState(window.history.state, "", `${window.location.pathname}${window.location.search}`);
244
+ const read = () => {
245
+ const udid = valid(readKept("hot-updater-ios-udid")) ?? passed.udid;
246
+ let receipt = null;
247
+ try {
248
+ const kept = JSON.parse(readKept("hot-updater-ios-device-receipt") ?? "null");
249
+ receipt = kept?.udid === udid && typeof kept?.receipt === "string" ? kept.receipt : null;
250
+ } catch {
251
+ receipt = null;
252
+ }
253
+ if (receipt === null && passed.udid === udid) receipt = passed.receipt;
254
+ setDevice((current) => current !== null && current.udid === udid && current.receipt === receipt ? current : {
255
+ ios: isIosBrowser(navigator),
256
+ udid,
257
+ receipt,
258
+ requested: passed.requested
259
+ });
260
+ };
261
+ read();
262
+ const onStorage = (event) => {
263
+ if (event.key === null || event.key === "hot-updater-ios-udid" || event.key === "hot-updater-ios-device-receipt") read();
264
+ };
265
+ window.addEventListener("storage", onStorage);
266
+ window.addEventListener("pageshow", read);
267
+ document.addEventListener("visibilitychange", read);
268
+ return () => {
269
+ window.removeEventListener("storage", onStorage);
270
+ window.removeEventListener("pageshow", read);
271
+ document.removeEventListener("visibilitychange", read);
272
+ };
273
+ }, [passed]);
274
+ return device;
275
+ };
276
+ /**
277
+ * How long before its link expires the page stops offering it: the installer
278
+ * fetches the manifest, then the IPA, only after the tester confirms the prompt.
279
+ */
280
+ var INSTALL_LINK_MARGIN_MS = 300 * 1e3;
281
+ /**
282
+ * Whether a link read at `readAtMs` is past offering, measured on this phone's
283
+ * clock from when it arrived, since the phone's clock may disagree with the
284
+ * server's. A failed refresh leaves `readAtMs` where it was. Timers stop while
285
+ * the phone sleeps, so coming back to the page checks again.
286
+ */
287
+ var useInstallLinkExpired = (readAtMs, holdsLink) => {
288
+ const [, check] = (0, import_react.useReducer)((count) => count + 1, 0);
289
+ const expiresAtMs = readAtMs + NATIVE_BUILD_INSTALL_LINK_TTL_MS - INSTALL_LINK_MARGIN_MS;
290
+ (0, import_react.useEffect)(() => {
291
+ if (!holdsLink) return;
292
+ const timer = setTimeout(check, Math.max(0, expiresAtMs - Date.now()));
293
+ document.addEventListener("visibilitychange", check);
294
+ window.addEventListener("pageshow", check);
295
+ return () => {
296
+ clearTimeout(timer);
297
+ document.removeEventListener("visibilitychange", check);
298
+ window.removeEventListener("pageshow", check);
299
+ };
300
+ }, [expiresAtMs, holdsLink]);
301
+ return holdsLink && Date.now() >= expiresAtMs;
302
+ };
303
+ /** In place of Install once its link has expired: it never offers a dead link. */
304
+ function RenewInstallLink({ fetching, onRenew }) {
305
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
306
+ className: "flex min-w-0 flex-col gap-2",
307
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
308
+ className: "text-xs text-muted-foreground",
309
+ role: "status",
310
+ children: ["This install link has expired.", fetching ? " Getting a new one." : ""]
311
+ }), fetching ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
312
+ className: ACTION_CLASS,
313
+ onClick: onRenew,
314
+ variant: "outline",
315
+ children: "Get a new link"
316
+ })]
317
+ });
318
+ }
319
+ function InstallButton({ build, token }) {
320
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
321
+ className: buttonVariants({ className: ACTION_CLASS }),
322
+ href: nativeBuildItmsUrl(window.location, build.id, token),
323
+ children: "Install"
324
+ });
325
+ }
326
+ /** What a tester reads before Install opens the system's install prompt. */
327
+ function InstallNotes() {
328
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
329
+ className: "flex min-w-0 flex-col gap-1",
330
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
331
+ className: "text-xs text-muted-foreground",
332
+ children: "On iOS 16 or later, the app opens only with Developer Mode on: Settings, Privacy & Security, Developer Mode."
333
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
334
+ className: "text-xs text-muted-foreground",
335
+ children: IOS_STORE_APP_NOTE
336
+ })]
337
+ });
338
+ }
339
+ /**
340
+ * The link that hands this iPhone the profile that reads its UDID, signed for
341
+ * this person, under the Console's path. A plain link, so iOS offers the
342
+ * profile; the page signs a new one before it expires. Once it's installed,
343
+ * the phone comes back to this page with the UDID and a receipt of it.
344
+ */
345
+ function CheckThisIphone({ build, again = false }) {
346
+ const link = useIosDeviceProfileLinkQuery({
347
+ mode: "identify",
348
+ buildId: build.id
349
+ });
350
+ if (link.data?.status === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
351
+ className: "text-xs text-muted-foreground",
352
+ role: "status",
353
+ children: [
354
+ "Set ",
355
+ link.data.secretName,
356
+ " on the Console to check iPhones from this page."
357
+ ]
358
+ });
359
+ if (link.data?.status !== "issued") return link.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
360
+ className: "text-xs text-destructive",
361
+ role: "alert",
362
+ children: "The check couldn't start. Reload the page to try again."
363
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
364
+ "aria-label": "Preparing the check",
365
+ className: "h-11 w-full"
366
+ });
367
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
368
+ className: buttonVariants({
369
+ className: ACTION_CLASS,
370
+ variant: again ? "secondary" : "default"
371
+ }),
372
+ href: iosDeviceProfileUrl(consolePathOf(window.location, build.id), link.data.token),
373
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, { "data-icon": "inline-start" }), again ? "Check this iPhone again" : "Check this iPhone"]
374
+ });
375
+ }
376
+ var shortDate = (ms) => (0, import_dayjs_min.default)(ms).format("MMM D");
377
+ /**
378
+ * What an iPhone the IPA doesn't list sees: the registry's word on it, or
379
+ * Request access, which takes the UDID from this person's receipt alone.
380
+ */
381
+ function NotInThisBuild({ build, device, registry, newerBuild, registryReadAt }) {
382
+ const request = useRequestIosDeviceAccessMutation();
383
+ const [name, setName] = (0, import_react.useState)("");
384
+ const [requested, setRequested] = (0, import_react.useState)(null);
385
+ const standIn = requested !== null && registryReadAt <= requested.readBefore;
386
+ const row = standIn ? requested.device : registry;
387
+ const heading = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
388
+ className: "flex min-w-0 flex-col gap-1",
389
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
390
+ className: "text-sm font-medium",
391
+ children: "Not in this build"
392
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
393
+ className: "text-xs text-muted-foreground",
394
+ children: "This IPA was signed without this iPhone, and iOS won't install it here."
395
+ })]
396
+ });
397
+ if (row !== null) {
398
+ const newer = standIn ? null : newerBuild;
399
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
400
+ className: "flex min-w-0 flex-col gap-3",
401
+ children: [
402
+ heading,
403
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
404
+ className: "text-sm",
405
+ role: "status",
406
+ children: row.apple_error !== null && newer === null ? `Apple didn't register ${row.name}: ${row.apple_error} A maintainer can see it on the iOS devices page.` : row.status === "pending" ? `${row.name} was requested on ${shortDate(row.created_at_ms)}. A maintainer approves it next.` : newer !== null ? `A newer build has ${row.name}.` : `${row.name} is ${row.status}. It joins the next ad hoc build.`
407
+ }),
408
+ newer !== null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
409
+ className: buttonVariants({ className: ACTION_CLASS }),
410
+ params: { buildId: newer },
411
+ to: "/native-builds/$buildId",
412
+ children: "Open the newer build"
413
+ }) : null
414
+ ]
415
+ });
416
+ }
417
+ if (device.receipt === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
418
+ className: "flex min-w-0 flex-col gap-3",
419
+ children: [
420
+ heading,
421
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
422
+ className: "text-xs text-muted-foreground",
423
+ children: "Check this iPhone once more to request it for the next ad hoc build."
424
+ }),
425
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckThisIphone, {
426
+ build,
427
+ again: true
428
+ })
429
+ ]
430
+ });
431
+ const trimmed = name.trim();
432
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
433
+ className: "flex min-w-0 flex-col gap-3",
434
+ onSubmit: (event) => {
435
+ event.preventDefault();
436
+ if (trimmed === "") return;
437
+ const readBefore = registryReadAt;
438
+ request.mutate({
439
+ receipt: device.receipt,
440
+ name: trimmed
441
+ }, { onSuccess: ({ device: saved }) => setRequested({
442
+ device: saved,
443
+ readBefore
444
+ }) });
445
+ },
446
+ children: [
447
+ heading,
448
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, {
449
+ "data-invalid": request.isError || void 0,
450
+ children: [
451
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
452
+ htmlFor: "ios-device-name",
453
+ children: "This iPhone's name"
454
+ }),
455
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
456
+ autoComplete: "off",
457
+ className: "h-11 sm:h-8",
458
+ id: "ios-device-name",
459
+ maxLength: 100,
460
+ onChange: (event) => setName(event.target.value),
461
+ placeholder: "Kim's iPhone",
462
+ value: name
463
+ }),
464
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldDescription, { children: "A maintainer approves it, and it joins the next ad hoc build." }),
465
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldError, { children: request.isError ? "The request didn't go through. Check this iPhone again, then try once more." : null })
466
+ ]
467
+ }),
468
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
469
+ className: ACTION_CLASS,
470
+ disabled: trimmed === "" || request.isPending,
471
+ type: "submit",
472
+ children: [request.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
473
+ className: "animate-spin",
474
+ "data-icon": "inline-start"
475
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Send, { "data-icon": "inline-start" }), "Request access"]
476
+ }),
477
+ request.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckThisIphone, {
478
+ again: true,
479
+ build
480
+ }) : null
481
+ ]
482
+ });
483
+ }
484
+ /**
485
+ * Installing an IPA from this iPhone: the build's IPA says what it allows, read
486
+ * once when the page opens here, so a phone it doesn't list goes to Request
487
+ * access rather than a download iOS refuses at the end. App Store Connect isn't
488
+ * asked: a device registered after this IPA was signed still isn't in it.
489
+ */
490
+ function IosInstall({ build, device }) {
491
+ const { udid } = device;
492
+ const eligibility = useNativeBuildInstallEligibilityQuery(build.id, udid);
493
+ const { refetch } = eligibility;
494
+ const expired = useInstallLinkExpired(eligibility.dataUpdatedAt, eligibility.data?.status === "installable" && eligibility.data.device === "included");
495
+ (0, import_react.useEffect)(() => {
496
+ if (expired) refetch();
497
+ }, [expired, refetch]);
498
+ if (eligibility.isPending) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
499
+ "aria-label": "Reading this IPA",
500
+ className: "h-11 w-full"
501
+ });
502
+ const result = eligibility.data;
503
+ if (result === void 0 || result.status === "unavailable") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, { children: [
504
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
505
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Installation details unavailable" }),
506
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { 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." })
507
+ ] });
508
+ if (result.status === "store") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
509
+ className: "text-xs text-muted-foreground",
510
+ children: "This IPA is an App Store export, which installs through TestFlight, not from this page."
511
+ });
512
+ if (result.status === "expired") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
513
+ variant: "destructive",
514
+ children: [
515
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
516
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "This build's profile has expired" }),
517
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDescription, { children: [
518
+ "It expired on ",
519
+ (0, import_dayjs_min.default)(result.expiresAt).format("YYYY-MM-DD"),
520
+ ". A maintainer rebuilds it to install again."
521
+ ] })
522
+ ]
523
+ });
524
+ const token = result.link.status === "issued" ? result.link.token : null;
525
+ if (result.link.status === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
526
+ className: "text-xs text-muted-foreground",
527
+ role: "status",
528
+ children: [
529
+ "Set ",
530
+ result.link.secretName,
531
+ " on the Console to install from this page."
532
+ ]
533
+ });
534
+ if (token === null) return null;
535
+ if (result.device === "included") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
536
+ className: "flex min-w-0 flex-col gap-3",
537
+ children: [
538
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
539
+ className: "text-sm font-medium",
540
+ children: "This iPhone is in this build."
541
+ }),
542
+ expired ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RenewInstallLink, {
543
+ fetching: eligibility.isFetching,
544
+ onRenew: () => void refetch()
545
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallButton, {
546
+ build,
547
+ token
548
+ }),
549
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallNotes, {})
550
+ ]
551
+ });
552
+ if (result.device === "not-included") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NotInThisBuild, {
553
+ build,
554
+ device,
555
+ registry: result.registry,
556
+ newerBuild: result.newerBuild,
557
+ registryReadAt: eligibility.dataUpdatedAt
558
+ });
559
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
560
+ className: "flex min-w-0 flex-col gap-3",
561
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
562
+ className: "flex min-w-0 flex-col gap-1",
563
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
564
+ className: "text-sm font-medium",
565
+ children: "Check this iPhone first"
566
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
567
+ className: "text-xs text-muted-foreground",
568
+ 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 in Settings, where iOS calls it not signed. Safari comes back here, and nothing stays installed."
569
+ })]
570
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckThisIphone, { build })]
571
+ });
572
+ }
573
+ //#endregion
574
+ export { useIosDeviceProfileLinkQuery as a, useRemoveIosDeviceMutation as c, useIosDevice as i, useRenameIosDeviceMutation as l, QrCode as n, useIosDevicesQuery as o, useApproveIosDeviceMutation as r, useNativeBuildIpaDevicesQuery as s, IosInstall as t };
@@ -0,0 +1,38 @@
1
+ import { Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
2
+ import { k as cn } from "./sidebar-CsKVgZHa.mjs";
3
+ import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
4
+ import { a as tabsListVariants } from "./tabs-BJ-4SgmC.mjs";
5
+ //#region node_modules/.nitro/vite/services/ssr/assets/NativeBuildsNav-hFiyBaFW.js
6
+ var import_jsx_runtime = require_jsx_runtime();
7
+ var TAB_CLASS = "relative inline-flex h-full items-center justify-center rounded-md border border-transparent px-3 text-xs font-medium whitespace-nowrap text-foreground/60 transition-colors hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none aria-[current=page]:bg-background aria-[current=page]:text-foreground aria-[current=page]:shadow-sm dark:text-muted-foreground dark:hover:text-foreground dark:aria-[current=page]:border-input dark:aria-[current=page]:bg-input/30 dark:aria-[current=page]:text-foreground";
8
+ /**
9
+ * The two views of Native builds: the builds, and the iOS devices ad hoc
10
+ * builds install on. Links, so each view has its own URL and Back works.
11
+ */
12
+ function NativeBuildsNav({ current }) {
13
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("nav", {
14
+ "aria-label": "Native builds views",
15
+ className: cn(tabsListVariants(), "h-11 sm:h-8 [&>a]:min-h-10 sm:[&>a]:min-h-0"),
16
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
17
+ activeOptions: {
18
+ exact: true,
19
+ includeSearch: false
20
+ },
21
+ "aria-current": current === "builds" ? "page" : void 0,
22
+ className: TAB_CLASS,
23
+ to: "/native-builds",
24
+ children: "Builds"
25
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
26
+ activeOptions: {
27
+ exact: true,
28
+ includeSearch: false
29
+ },
30
+ "aria-current": current === "devices" ? "page" : void 0,
31
+ className: TAB_CLASS,
32
+ to: "/native-builds/devices",
33
+ children: "iOS devices"
34
+ })]
35
+ });
36
+ }
37
+ //#endregion
38
+ export { NativeBuildsNav as t };
@@ -1,7 +1,7 @@
1
- import { yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
2
- import { O as buttonVariants } from "./sidebar-mIQgB0iy.mjs";
1
+ import { Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
2
+ import { O as buttonVariants } from "./sidebar-CsKVgZHa.mjs";
3
3
  import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/NotFoundPage-Bh3gFsR6.js
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/NotFoundPage-D4xRjmIA.js
5
5
  var import_jsx_runtime = require_jsx_runtime();
6
6
  var homeSearch = {
7
7
  afterReleaseId: void 0,
@@ -1,5 +1,5 @@
1
- import { yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
2
- //#region node_modules/.nitro/vite/services/ssr/assets/PlatformIcon-CMLs3Wez.js
1
+ import { Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
2
+ //#region node_modules/.nitro/vite/services/ssr/assets/PlatformIcon-BpGOEXjU.js
3
3
  var import_jsx_runtime = require_jsx_runtime();
4
4
  function AppleIcon({ className }) {
5
5
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {