@hot-updater/console 1.2.0-rc.3 → 1.2.0-rc.30

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 (342) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-C-TGpFAm.js → -native-builds-search-DdHwfe4q.js} +1 -1
  3. package/.output/public/assets/BundleIdDisplay-CTBdtFQ8.js +1 -0
  4. package/.output/public/assets/ChannelBadge-CEabmopB.js +1 -0
  5. package/.output/public/assets/CompositeItem-KUM5yQVr.js +1 -0
  6. package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-Be-0iTww.js} +1 -1
  7. package/.output/public/assets/{EventDetails-Dl2RvPAk.js → EventDetails-bDOYte1z.js} +1 -1
  8. package/.output/public/assets/HashValueDisplay-D2f0HmyU.js +1 -0
  9. package/.output/public/assets/{InsightsPageHeader-DHhqY3DT.js → InsightsPageHeader-Cj2ROSQO.js} +1 -1
  10. package/.output/public/assets/IosInstall-CHI2C4Yd.js +1 -0
  11. package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +1 -0
  12. package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-CVBtl68B.js} +1 -1
  13. package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-DVnzzGqM.js} +1 -1
  14. package/.output/public/assets/RelativeTime-B4PK8qDw.js +1 -0
  15. package/.output/public/assets/RolloutPercentageBadge-D_I0Raj2.js +1 -0
  16. package/.output/public/assets/RowReason-B7VM1ztc.js +1 -0
  17. package/.output/public/assets/SandboxBadge-BVxHg_HF.js +1 -0
  18. package/.output/public/assets/TargetDisplay-KU7JhIWG.js +1 -0
  19. package/.output/public/assets/{alert-dialog-BqYScr9y.js → alert-dialog-Ch0QxRsa.js} +1 -1
  20. package/.output/public/assets/api-C1OPeiG1.js +1 -0
  21. package/.output/public/assets/api-keys-DLC8jjaM.js +1 -0
  22. package/.output/public/assets/api-keys-eDnzgFAf.js +1 -0
  23. package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
  24. package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
  25. package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
  26. package/.output/public/assets/badge-FZMD5vvS.js +1 -0
  27. package/.output/public/assets/card-CyHYmHue.js +1 -0
  28. package/.output/public/assets/check-CqWNyG93.js +1 -0
  29. package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
  30. package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
  31. package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
  32. package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
  33. package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
  34. package/.output/public/assets/dialog-BLj71-Nf.js +1 -0
  35. package/.output/public/assets/{dist-CPlO6ko9.js → dist-DAM__Tdz.js} +1 -1
  36. package/.output/public/assets/{download-Cf24LBde.js → download-B2GjTySo.js} +1 -1
  37. package/.output/public/assets/empty--YaE5Z4p.js +1 -0
  38. package/.output/public/assets/field-CdhSgWhI.js +1 -0
  39. package/.output/public/assets/git-branch-DG1VDaKq.js +1 -0
  40. package/.output/public/assets/history-C0wv4htz.js +1 -0
  41. package/.output/public/assets/index-CgwVUC2n.js +10 -0
  42. package/.output/public/assets/{input-group-D3OUBk4n.js → input-group-XKLcUGoa.js} +1 -1
  43. package/.output/public/assets/insights-C94CdeAA.js +1 -0
  44. package/.output/public/assets/insights-DILMVpk8.js +2 -0
  45. package/.output/public/assets/insights-_j_ieOyh.js +42 -0
  46. package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
  47. package/.output/public/assets/{insights-search-DghCbEnk.js → insights-search-Bgvg6wSP.js} +1 -1
  48. package/.output/public/assets/insights-usage-rpc-BUCinjSN.js +1 -0
  49. package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +2 -0
  50. package/.output/public/assets/insights_.distribution-CRkGNelG.js +1 -0
  51. package/.output/public/assets/insights_.distribution-CyAu3RN3.js +1 -0
  52. package/.output/public/assets/installations-BA01mqJE.js +1 -0
  53. package/.output/public/assets/installations-BsD6LgNc.js +2 -0
  54. package/.output/public/assets/installations-CYTzndfP.js +1 -0
  55. package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-D7UgdXyA.js} +1 -1
  56. package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
  57. package/.output/public/assets/{list--NIee1FZ.js → list-Bm-CfN5g.js} +1 -1
  58. package/.output/public/assets/loader-circle-iMqC-8ZE.js +1 -0
  59. package/.output/public/assets/native-builds-BMbws1g5.js +2 -0
  60. package/.output/public/assets/native-builds-xgHiHQML.js +1 -0
  61. package/.output/public/assets/native-builds_._buildId-B04z9yfk.js +1 -0
  62. package/.output/public/assets/native-builds_._buildId-DaMmTcHo.js +2 -0
  63. package/.output/public/assets/native-builds_.devices-CTzpCVsb.js +1 -0
  64. package/.output/public/assets/native-builds_.devices-D_kl2-bc.js +2 -0
  65. package/.output/public/assets/package-BmfoZ5Zj.js +1 -0
  66. package/.output/public/assets/plus-Db0KxLZp.js +1 -0
  67. package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
  68. package/.output/public/assets/{refresh-cw-B9HHjLej.js → refresh-cw-BHhBYjS8.js} +1 -1
  69. package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-BYRt19mj.js} +1 -1
  70. package/.output/public/assets/remote-config-Cxkr7_BP.js +1 -0
  71. package/.output/public/assets/remote-config-DAOyn5xL.js +1 -0
  72. package/.output/public/assets/remote-config-DXv25LX1.js +6 -0
  73. package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-Ba-slJea.js} +1 -1
  74. package/.output/public/assets/routes-DM3TyTLW.js +2 -0
  75. package/.output/public/assets/routes-Des97uK_.js +1 -0
  76. package/.output/public/assets/search-dJG2BYmx.js +1 -0
  77. package/.output/public/assets/select-CA8r-UUe.js +1 -0
  78. package/.output/public/assets/send-DuMOCzbD.js +1 -0
  79. package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
  80. package/.output/public/assets/smartphone-D1C6BRd_.js +1 -0
  81. package/.output/public/assets/styles-BHLI87EH.css +2 -0
  82. package/.output/public/assets/switch-BsV3d4km.js +1 -0
  83. package/.output/public/assets/table-D8YjT_ht.js +1 -0
  84. package/.output/public/assets/tabs-RdhEl9sE.js +1 -0
  85. package/.output/public/assets/trash-2-B5KIvrXy.js +1 -0
  86. package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-CFcU9dIB.js} +1 -1
  87. package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
  88. package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
  89. package/.output/public/assets/valueToPercent-Bn8p2lng.js +1 -0
  90. package/.output/server/{__23tanstack-start-server-fn-resolver-DJQS4eWX.mjs → __23tanstack-start-server-fn-resolver-q4YFIDyr.mjs} +94 -46
  91. package/.output/server/_chunks/ssr-renderer.mjs +2 -2
  92. package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
  93. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  94. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  95. package/.output/server/_libs/_.mjs +2 -0
  96. package/.output/server/_libs/lucide-react.mjs +22 -28
  97. package/.output/server/_libs/next-themes.mjs +1 -1
  98. package/.output/server/_libs/react-redux+[...].mjs +1 -1
  99. package/.output/server/_libs/recharts+[...].mjs +1 -1
  100. package/.output/server/_libs/sonner.mjs +1 -1
  101. package/.output/server/_libs/tanstack__react-query.mjs +1 -1
  102. package/.output/server/_ssr/{-native-builds-search-CwNcoXf4.mjs → -native-builds-search-Mm_AZoRU.mjs} +9 -3
  103. package/.output/server/_ssr/{BundleIdDisplay-LdRkYdnN.mjs → BundleIdDisplay-DvzlYWq8.mjs} +3 -3
  104. package/.output/server/_ssr/ChannelBadge-qF_Pc5Ud.mjs +23 -0
  105. package/.output/server/_ssr/{ConsoleFeatureUnavailable-BN-FZ8eG.mjs → ConsoleFeatureUnavailable-DKUgr0N_.mjs} +7 -7
  106. package/.output/server/_ssr/{EventDetails-B77sWxgh.mjs → EventDetails-T1XtYEDD.mjs} +8 -8
  107. package/.output/server/_ssr/{HashValueDisplay-C4Vs4cmO.mjs → HashValueDisplay-Cas_zjIS.mjs} +7 -7
  108. package/.output/server/_ssr/{InsightsPageHeader-Dx4jJ7X0.mjs → InsightsPageHeader-BrllhUl2.mjs} +8 -8
  109. package/.output/server/_ssr/IosInstall-CEHI8F2M.mjs +615 -0
  110. package/.output/server/_ssr/NativeBuildsNav-2xSHyA1a.mjs +38 -0
  111. package/.output/server/_ssr/{NotFoundPage-DB5cXeVZ.mjs → NotFoundPage-D6H9vxj_.mjs} +3 -3
  112. package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-BpGOEXjU.mjs} +13 -3
  113. package/.output/server/_ssr/RelativeTime-DpEVzDP9.mjs +237 -0
  114. package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-DW8-_w30.mjs} +20 -4
  115. package/.output/server/_ssr/RowReason-C-PjIxzq.mjs +186 -0
  116. package/.output/server/_ssr/SandboxBadge-CDdNew0R.mjs +97 -0
  117. package/.output/server/_ssr/TargetDisplay-BBsP7IaZ.mjs +83 -0
  118. package/.output/server/_ssr/{alert-dialog-DxboqQmd.mjs → alert-dialog-Bd4E9xdw.mjs} +2 -2
  119. package/.output/server/_ssr/{api-cvzOLlTy.mjs → api-BT7aA8UM.mjs} +167 -33
  120. package/.output/server/_ssr/{api-keys-C3QCQvpV.mjs → api-keys-D2NvcQZv.mjs} +2 -2
  121. package/.output/server/_ssr/{api-keys-CrbGr02t.mjs → api-keys-DjWpM20P.mjs} +11 -10
  122. package/.output/server/_ssr/{api-keys-rpc-BcTQzRLj.mjs → api-keys-rpc-nM5H7V7f.mjs} +4 -4
  123. package/.output/server/_ssr/{api-rpc-B48nsUak.mjs → api-rpc-DX4HynbW.mjs} +83 -35
  124. package/.output/server/_ssr/{auth-rpc-C0gtG9nJ.mjs → auth-rpc-LCxTtYz2.mjs} +5 -5
  125. package/.output/server/_ssr/{auth.server-B0JikHOQ.mjs → auth.server-CERo_xef.mjs} +797 -174
  126. package/.output/server/_ssr/{badge-oO-0mLsr.mjs → badge-Dpp4q7sD.mjs} +4 -45
  127. package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
  128. package/.output/server/_ssr/card-CFCftDfI.mjs +49 -0
  129. package/.output/server/_ssr/{config.server-CJVHGJtr.mjs → config.server-5W5WD8x2.mjs} +4 -4
  130. package/.output/server/_ssr/{console-access-4TW5Af_n.mjs → console-access-B0S5YFUa.mjs} +2 -2
  131. package/.output/server/_ssr/{console-features-api-DfzZRyXa.mjs → console-features-api-CV_EReEj.mjs} +4 -4
  132. package/.output/server/_ssr/{console-features-rpc-DqNpa3U9.mjs → console-features-rpc-D3xlQsuy.mjs} +4 -4
  133. package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-xaGDhRC9.mjs} +1 -1
  134. package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
  135. package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-XAvDetmn.mjs} +1 -1
  136. package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
  137. package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BtRVBD0C.mjs} +3 -3
  138. package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
  139. package/.output/server/_ssr/{dialog-DsuMZ5oh.mjs → dialog-DQR_QI_X.mjs} +2 -2
  140. package/.output/server/_ssr/{dist-TEpM_UAD.mjs → dist-B6-irDRA.mjs} +1 -1
  141. package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
  142. package/.output/server/_ssr/{empty-r4kJO91t.mjs → empty-C7PFnkCH.mjs} +3 -3
  143. package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
  144. package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-BA2eg11O.mjs} +3 -3
  145. package/.output/server/_ssr/{field-DfXmt9CS.mjs → field-BqYN8sZT.mjs} +3 -3
  146. package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
  147. package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-CdqFonhl.mjs} +2 -2
  148. package/.output/server/_ssr/{input-group-BCO7zTpU.mjs → input-group-Brv0mmyp.mjs} +2 -2
  149. package/.output/server/_ssr/{insights-CRu5FUj8.mjs → insights--xI3A0KI.mjs} +5 -5
  150. package/.output/server/_ssr/{insights-DrrhPDER.mjs → insights-CD1e3EnW.mjs} +2 -2
  151. package/.output/server/_ssr/{insights-Csqlj6u7.mjs → insights-Dd0VdO-1.mjs} +27 -26
  152. package/.output/server/_ssr/{insights-api-NW5VCXqg.mjs → insights-api-Bt2XVa4Y.mjs} +5 -5
  153. package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
  154. package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-7zH97WOO.mjs} +2 -2
  155. package/.output/server/_ssr/{insights-failures-rpc-CoFrAOK9.mjs → insights-failures-rpc-DBGzXP5A.mjs} +11 -11
  156. package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
  157. package/.output/server/_ssr/{insights-recovery-rpc-sud_FyGW.mjs → insights-recovery-rpc-C6fAh-i_.mjs} +7 -7
  158. package/.output/server/_ssr/{insights-rpc-Ce2Isz9q.mjs → insights-rpc-pThKC9oj.mjs} +4 -4
  159. package/.output/server/_ssr/{insights-search-B0O3YoO2.mjs → insights-search-iFN4UaUv.mjs} +5 -5
  160. package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-h8fipPTv.mjs} +1 -1
  161. package/.output/server/_ssr/{insights-usage-rpc-Cwf1t4aW.mjs → insights-usage-rpc-B-RLvdLZ.mjs} +5 -5
  162. package/.output/server/_ssr/{insights-usage-rpc-C-cS2F9s.mjs → insights-usage-rpc-CGHZQ9jq.mjs} +7 -7
  163. package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
  164. package/.output/server/_ssr/{insights_.distribution-DIkh5VqM.mjs → insights_.distribution-C6iXJ93Y.mjs} +15 -14
  165. package/.output/server/_ssr/{insights_.distribution-D52TkQ2V.mjs → insights_.distribution-E6Ns2aN7.mjs} +2 -2
  166. package/.output/server/_ssr/{insights_.distribution--3aR6Kpy.mjs → insights_.distribution-xHmfwwa5.mjs} +5 -5
  167. package/.output/server/_ssr/{installations-Bu4Lb0x9.mjs → installations-7V-Xyui8.mjs} +12 -12
  168. package/.output/server/_ssr/{installations-DftevpDt.mjs → installations-CZnN6slr.mjs} +4 -4
  169. package/.output/server/_ssr/{installations-C818mFCp.mjs → installations-D6Upc9Rt.mjs} +2 -2
  170. package/.output/server/_ssr/ios-devices-rpc-CXuHk24G.mjs +139 -0
  171. package/.output/server/_ssr/iosDeviceProfile-BESi_onx.mjs +176 -0
  172. package/.output/server/_ssr/iosDevices-BmvvvZRo.mjs +129 -0
  173. package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
  174. package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
  175. package/.output/server/_ssr/{native-builds-DOASMwGh.mjs → native-builds-BUojmVWC.mjs} +3 -3
  176. package/.output/server/_ssr/native-builds-BXBkklfA.mjs +197 -0
  177. package/.output/server/_ssr/native-builds-BhDCE89P.mjs +717 -0
  178. package/.output/server/_ssr/{native-builds_._buildId-CTytnLBB.mjs → native-builds_._buildId-DRiCNDdO.mjs} +3 -3
  179. package/.output/server/_ssr/native-builds_._buildId-DkMpG-OB.mjs +1176 -0
  180. package/.output/server/_ssr/native-builds_.devices-DSideebA.mjs +10 -0
  181. package/.output/server/_ssr/native-builds_.devices-DsOx1R36.mjs +702 -0
  182. package/.output/server/_ssr/nativeBuildDownloadLink-DDAUVU8q.mjs +96 -0
  183. package/.output/server/_ssr/nativeBuildInstall-CcBrfTsc.mjs +250 -0
  184. package/.output/server/_ssr/nativeBuilds-Cub0EUGN.mjs +287 -0
  185. package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-CX7wutet.mjs} +6 -6
  186. package/.output/server/_ssr/publicConsoleBase-f67NLLXZ.mjs +610 -0
  187. package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-DeICczY7.mjs} +2 -2
  188. package/.output/server/_ssr/{release-adoption-rpc-OizwttJD.mjs → release-adoption-rpc-BjMXMi9A.mjs} +9 -9
  189. package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-kHZo8P90.mjs} +4 -4
  190. package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-D9dAMI17.mjs} +3 -3
  191. package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-EPhok_Py.mjs} +1 -1
  192. package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-DaZ7ifUF.mjs} +2 -2
  193. package/.output/server/_ssr/{remote-config-DaBgnVnL.mjs → remote-config-B1iZuZOF.mjs} +2 -2
  194. package/.output/server/_ssr/{remote-config-Dypc_nuk.mjs → remote-config-C_DprbJz.mjs} +23 -22
  195. package/.output/server/_ssr/{remote-config-DZu7gJLL.mjs → remote-config-C_q6FBE4.mjs} +3 -3
  196. package/.output/server/_ssr/{remote-config-rpc-DOfPhqli.mjs → remote-config-rpc-BFTPcMfZ.mjs} +5 -5
  197. package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
  198. package/.output/server/_ssr/{router-BkRbvels.mjs → router-BDXPwfwl.mjs} +92 -59
  199. package/.output/server/_ssr/{routes-D9JnXVWL.mjs → routes-BJeztqpQ.mjs} +388 -432
  200. package/.output/server/_ssr/{routes-BeTsUkNX.mjs → routes-DpapxHLc.mjs} +14 -17
  201. package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-CkSbWaZm.mjs} +4 -4
  202. package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-3oDJJFWa.mjs} +1 -1
  203. package/.output/server/_ssr/{schema-migration-rpc-B2VGxRY6.mjs → schema-migration-rpc-a4bLEdaP.mjs} +4 -4
  204. package/.output/server/_ssr/{select-Cywc0NmT.mjs → select-C9HpIZxd.mjs} +2 -2
  205. package/.output/server/_ssr/{server-Ds-fU1zf.mjs → server-C8ZmMWnn.mjs} +7 -7
  206. package/.output/server/_ssr/{sidebar-t0NiN0-2.mjs → sidebar-BrVL3L7R.mjs} +3 -3
  207. package/.output/server/_ssr/ssr.mjs +1 -1
  208. package/.output/server/_ssr/{start-BvDsQehg.mjs → start-D3noqqOK.mjs} +2 -2
  209. package/.output/server/_ssr/{switch-D1T38CnM.mjs → switch-DtnsoZHO.mjs} +3 -3
  210. package/.output/server/_ssr/{table-L9ZQgxNF.mjs → table-Bg7nCnct.mjs} +2 -2
  211. package/.output/server/_ssr/{tabs-BiByrAnU.mjs → tabs-BEIoGLTL.mjs} +4 -4
  212. package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
  213. package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-CmHbryZT.mjs} +2 -2
  214. package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-NmbU0MD2.mjs} +1 -1
  215. package/.output/server/_tanstack-start-manifest_v-C_TPyfFP.mjs +225 -0
  216. package/.output/server/index.mjs +479 -381
  217. package/lib/index.d.mts +9 -0
  218. package/package.json +7 -30
  219. package/src/components/ChannelBadge.tsx +9 -9
  220. package/src/components/DataTable.tsx +347 -0
  221. package/src/components/FoldedRows.tsx +219 -0
  222. package/src/components/HashValueDisplay.tsx +6 -3
  223. package/src/components/PlatformIcon.tsx +10 -0
  224. package/src/components/RelativeTime.tsx +31 -0
  225. package/src/components/RowReason.tsx +56 -0
  226. package/src/components/TargetDisplay.tsx +69 -0
  227. package/src/components/ThemeProvider.tsx +11 -2
  228. package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
  229. package/src/components/features/channels/ChannelManagementDialog.tsx +5 -10
  230. package/src/components/features/insights/ReleaseActivity.tsx +1 -1
  231. package/src/components/features/native-builds/BuiltInBundleCard.tsx +108 -58
  232. package/src/components/features/native-builds/CommitLink.tsx +3 -2
  233. package/src/components/features/native-builds/ImportBuild.tsx +1 -1
  234. package/src/components/features/native-builds/InstallCard.tsx +310 -67
  235. package/src/components/features/native-builds/IosDevicesPage.tsx +944 -0
  236. package/src/components/features/native-builds/IosInstall.tsx +632 -0
  237. package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
  238. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +21 -4
  239. package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
  240. package/src/components/features/native-builds/NativeBuildsPage.tsx +65 -76
  241. package/src/components/features/native-builds/NativeBuildsTable.tsx +668 -318
  242. package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
  243. package/src/components/features/native-builds/PatchesCard.tsx +3 -2
  244. package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +4 -4
  245. package/src/components/features/native-builds/SandboxBadge.tsx +21 -0
  246. package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
  247. package/src/components/features/native-builds/ShortHash.tsx +6 -3
  248. package/src/components/features/native-builds/StoreSubmission.tsx +18 -12
  249. package/src/components/features/native-builds/playTracks.ts +19 -0
  250. package/src/components/features/remote-config/PublishDialog.tsx +4 -1
  251. package/src/components/features/remote-config/VersionsCard.tsx +5 -2
  252. package/src/components/ui/badge.tsx +2 -0
  253. package/src/components/ui/sonner.tsx +3 -1
  254. package/src/index.ts +9 -0
  255. package/src/lib/api-rpc.ts +124 -35
  256. package/src/lib/api.ts +150 -14
  257. package/src/lib/ios-devices-api.ts +110 -0
  258. package/src/lib/ios-devices-rpc.ts +183 -0
  259. package/src/lib/native-builds.ts +160 -17
  260. package/src/lib/server/console-runtime.server.ts +9 -2
  261. package/src/lib/server/deviceProfileToken.ts +187 -0
  262. package/src/lib/server/foldedPage.ts +360 -0
  263. package/src/lib/server/iosDeviceProfile.ts +230 -0
  264. package/src/lib/server/iosDevices.ts +223 -0
  265. package/src/lib/server/listReleases.ts +101 -62
  266. package/src/lib/server/local-console.ts +1 -1
  267. package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
  268. package/src/lib/server/nativeBuildInstall.ts +495 -0
  269. package/src/lib/server/nativeBuilds.ts +308 -59
  270. package/src/lib/server/plistText.ts +17 -0
  271. package/src/lib/server/publicConsoleBase.ts +17 -0
  272. package/src/routeTree.gen.ts +85 -18
  273. package/src/routes/-native-builds-search.ts +20 -0
  274. package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
  275. package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
  276. package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
  277. package/src/routes/api/native-builds/$buildId/download.ts +22 -1
  278. package/src/routes/index.tsx +541 -532
  279. package/src/routes/native-builds_.devices.tsx +21 -0
  280. package/src/styles.css +24 -0
  281. package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
  282. package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
  283. package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
  284. package/.output/public/assets/api-P2g8dCNg.js +0 -1
  285. package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
  286. package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
  287. package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
  288. package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
  289. package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
  290. package/.output/public/assets/badge-DWFcDWho.js +0 -1
  291. package/.output/public/assets/check-CXVR3s3X.js +0 -1
  292. package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
  293. package/.output/public/assets/dialog-CNUPxNxH.js +0 -1
  294. package/.output/public/assets/empty-B3Uwdd6k.js +0 -1
  295. package/.output/public/assets/field-D-2-mnNh.js +0 -1
  296. package/.output/public/assets/history-DqHlgSuV.js +0 -1
  297. package/.output/public/assets/index-CqP5HPV6.js +0 -10
  298. package/.output/public/assets/insights-B-0odqpt.js +0 -42
  299. package/.output/public/assets/insights-BSVGfxSL.js +0 -1
  300. package/.output/public/assets/insights-NK5B6ReS.js +0 -2
  301. package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
  302. package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +0 -1
  303. package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
  304. package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
  305. package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
  306. package/.output/public/assets/installations-B674P5Z5.js +0 -2
  307. package/.output/public/assets/installations-BWxczZ2t.js +0 -1
  308. package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
  309. package/.output/public/assets/native-builds-BOC71grI.js +0 -1
  310. package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
  311. package/.output/public/assets/native-builds-DAy2678K.js +0 -1
  312. package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
  313. package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
  314. package/.output/public/assets/plus-BReVKct-.js +0 -1
  315. package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
  316. package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
  317. package/.output/public/assets/remote-config-WjpozBG5.js +0 -1
  318. package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
  319. package/.output/public/assets/routes-BDdBIxYS.js +0 -1
  320. package/.output/public/assets/routes-CCD33Azv.js +0 -2
  321. package/.output/public/assets/search-BCel4Oy6.js +0 -1
  322. package/.output/public/assets/select-CBIU0_M1.js +0 -1
  323. package/.output/public/assets/smartphone-CMaSy_ir.js +0 -1
  324. package/.output/public/assets/styles-uK-0vUMk.css +0 -2
  325. package/.output/public/assets/switch-BpdiHL_t.js +0 -1
  326. package/.output/public/assets/table-Bpy3SvSo.js +0 -1
  327. package/.output/public/assets/tabs-Xmt7tZeG.js +0 -1
  328. package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
  329. package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
  330. package/.output/server/_ssr/RolloutPercentageBadge-vmwE8iae.mjs +0 -21
  331. package/.output/server/_ssr/StoreSubmission-DE4vgy5B.mjs +0 -139
  332. package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
  333. package/.output/server/_ssr/native-builds-CWjU--fI.mjs +0 -510
  334. package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
  335. package/.output/server/_ssr/native-builds_._buildId-D4lYJLIU.mjs +0 -813
  336. package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
  337. package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +0 -133
  338. package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +0 -22
  339. package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
  340. package/src/lib/server/nativeBuildQr.ts +0 -73
  341. package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
  342. /package/.output/public/assets/{uuidv7-zXMtwR9Q.js → uuidv7-DAoOOpz9.js} +0 -0
@@ -0,0 +1,702 @@
1
+ import { i as __toESM } from "../_runtime.mjs";
2
+ import { Et as require_react, Tt as require_jsx_runtime, d as MenuRoot, f as MenuPositioner, h as MenuItem, m as MenuPopup, p as MenuPortal, pt as Separator, u as MenuTrigger } from "../_libs/@base-ui/react+[...].mjs";
3
+ import { D as LoaderCircle, M as HardDrive, X as Check, _ as RefreshCw, a as Trash2, i as TriangleAlert, u as Smartphone, y as Pencil, z as Ellipsis } from "../_libs/lucide-react.mjs";
4
+ import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, j as useIsMobile, k as cn, n as Input, t as Button$1 } from "./sidebar-BrVL3L7R.mjs";
5
+ import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
6
+ import { a as CardHeader, n as CardContent, o as CardTitle, t as Card } from "./card-CFCftDfI.mjs";
7
+ import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-Dpp4q7sD.mjs";
8
+ import { a as AlertDialogDescription, i as AlertDialogContent, l as AlertDialogTitle, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1 } from "./alert-dialog-Bd4E9xdw.mjs";
9
+ import { a as DialogHeader, i as DialogFooter, n as DialogContent, o as DialogTitle, r as DialogDescription, t as Dialog$1 } from "./dialog-DQR_QI_X.mjs";
10
+ import { a as FieldLabel, i as FieldGroup, n as FieldDescription, r as FieldError, t as Field } from "./field-BqYN8sZT.mjs";
11
+ import { i as TableHead, o as TableRow, r as TableCell } from "./table-Bg7nCnct.mjs";
12
+ import { f as iosDeviceProfileUrl, n as IOS_DEVICES_PATH, p as maskIosUdid, t as IOS_DEVICES_ADD_COMMAND, u as consolePathOf } from "./native-builds-BXBkklfA.mjs";
13
+ import { r as extractTimestampFromUUIDv7 } from "./uuidv7-CmHbryZT.mjs";
14
+ import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-C9HpIZxd.mjs";
15
+ import { n as require_dayjs_min } from "../_libs/dayjs.mjs";
16
+ import { c as DataTableFullRow, d as DataTableSkeletonRows, f as RelativeTime, i as DataTable, n as DataCardSkeletons, o as DataTableEmpty, r as DataCardsEmpty, s as DataTableFrame, t as DataCard } from "./RelativeTime-DpEVzDP9.mjs";
17
+ import { n as CopyableText, r as NoValue } from "./TargetDisplay-BBsP7IaZ.mjs";
18
+ import { t as NativeBuildsNav } from "./NativeBuildsNav-2xSHyA1a.mjs";
19
+ import { a as useIosDeviceProfileLinkQuery, c as useRemoveIosDeviceMutation, i as useIosDevice, l as useRenameIosDeviceMutation, n as QrCode, o as useIosDevicesQuery, r as useApproveIosDeviceMutation } from "./IosInstall-CEHI8F2M.mjs";
20
+ import { t as Route } from "./native-builds_.devices-DSideebA.mjs";
21
+ //#region node_modules/.nitro/vite/services/ssr/assets/native-builds_.devices-DsOx1R36.js
22
+ var import_react = /* @__PURE__ */ __toESM(require_react());
23
+ var import_jsx_runtime = require_jsx_runtime();
24
+ var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min());
25
+ function DropdownMenu({ ...props }) {
26
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuRoot, {
27
+ "data-slot": "dropdown-menu",
28
+ ...props
29
+ });
30
+ }
31
+ function DropdownMenuTrigger({ ...props }) {
32
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuTrigger, {
33
+ "data-slot": "dropdown-menu-trigger",
34
+ ...props
35
+ });
36
+ }
37
+ function DropdownMenuContent({ align = "start", alignOffset = 0, side = "bottom", sideOffset = 4, className, ...props }) {
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPositioner, {
39
+ className: "isolate z-50 outline-none",
40
+ align,
41
+ alignOffset,
42
+ side,
43
+ sideOffset,
44
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPopup, {
45
+ "data-slot": "dropdown-menu-content",
46
+ className: cn("dark z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className),
47
+ ...props
48
+ })
49
+ }) });
50
+ }
51
+ function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
52
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuItem, {
53
+ "data-slot": "dropdown-menu-item",
54
+ "data-inset": inset,
55
+ "data-variant": variant,
56
+ className: cn("group/dropdown-menu-item relative flex min-h-7 cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 data-[variant=destructive]:*:[svg]:text-destructive", className),
57
+ ...props
58
+ });
59
+ }
60
+ function DropdownMenuSeparator({ className, ...props }) {
61
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Separator, {
62
+ "data-slot": "dropdown-menu-separator",
63
+ className: cn("-mx-1 my-1 h-px bg-border/50", className),
64
+ ...props
65
+ });
66
+ }
67
+ var STATUS_LABELS = {
68
+ pending: "Requested",
69
+ approved: "Approved",
70
+ registered: "Registered"
71
+ };
72
+ /**
73
+ * Only a request waits on someone, so only it takes a status color; the
74
+ * other states are the normal course and stay neutral.
75
+ */
76
+ var STATUS_BADGES = {
77
+ pending: "warning",
78
+ approved: "secondary",
79
+ registered: "muted"
80
+ };
81
+ var ALL = "all";
82
+ var COLUMNS = 6;
83
+ /** The Console's path from this page, so links work under a base path. */
84
+ var consolePath = () => window.location.pathname.endsWith("/native-builds/devices") ? window.location.pathname.slice(0, -IOS_DEVICES_PATH.length) : consolePathOf(window.location, "");
85
+ /** Who may act on a row, decided again on the server. */
86
+ var actionsFor = (device, viewer) => ({
87
+ approve: viewer.canApprove && device.status === "pending",
88
+ rename: viewer.canApprove,
89
+ remove: viewer.canApprove,
90
+ withdraw: !viewer.canApprove && device.status === "pending" && device.requested_by === viewer.email
91
+ });
92
+ /**
93
+ * Apple's refusal of an approved device is the row an approver acts on, so it
94
+ * takes the warning in place of Approved; the other states stay neutral.
95
+ */
96
+ var appleRefused = (device) => device.status === "approved" && device.apple_error !== null;
97
+ /** Who asked for a device: a person, or a terminal for one the CLI added. */
98
+ var requesterOf = (device) => device.requested_by ?? "Added from a terminal";
99
+ /**
100
+ * Apple's reason. In a table cell it wraps at most two lines in a narrow
101
+ * column, the full text on hover and to a screen reader, so a long reason
102
+ * never widens the table past its frame; a card shows all of it.
103
+ */
104
+ function AppleError({ device, inTable = false }) {
105
+ if (device.apple_error === null) return null;
106
+ return inTable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
107
+ className: "line-clamp-2 max-w-48 text-xs whitespace-normal text-muted-foreground",
108
+ title: device.apple_error,
109
+ children: device.apple_error
110
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
111
+ className: "max-w-64 text-xs whitespace-normal text-muted-foreground",
112
+ children: device.apple_error
113
+ });
114
+ }
115
+ function DeviceStatus({ device, withError = true }) {
116
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
117
+ className: "flex min-w-0 shrink-0 flex-col items-start gap-1",
118
+ children: [appleRefused(device) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
119
+ variant: "warning",
120
+ children: "Apple refused"
121
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
122
+ variant: STATUS_BADGES[device.status],
123
+ children: STATUS_LABELS[device.status]
124
+ }), withError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppleError, {
125
+ device,
126
+ inTable: true
127
+ }) : null]
128
+ });
129
+ }
130
+ function DeviceBuild({ device }) {
131
+ if (device.build_id === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NoValue, {});
132
+ let label = "A build";
133
+ try {
134
+ label = `Build of ${(0, import_dayjs_min.default)(extractTimestampFromUUIDv7(device.build_id)).format("MMM D")}`;
135
+ } catch {}
136
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
137
+ className: "text-xs font-medium underline-offset-4 hover:underline",
138
+ params: { buildId: device.build_id },
139
+ to: "/native-builds/$buildId",
140
+ children: label
141
+ });
142
+ }
143
+ function DeviceActions({ device, viewer, onOpen }) {
144
+ const can = actionsFor(device, viewer);
145
+ if (!can.approve && !can.rename && !can.remove && !can.withdraw) return null;
146
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
147
+ className: "flex items-center justify-end gap-1",
148
+ children: [
149
+ can.approve ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
150
+ className: "h-11 sm:h-8",
151
+ onClick: () => onOpen({
152
+ kind: "approve",
153
+ device
154
+ }),
155
+ size: "sm",
156
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { "data-icon": "inline-start" }), "Approve"]
157
+ }) : null,
158
+ can.withdraw ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
159
+ className: "h-11 sm:h-8",
160
+ onClick: () => onOpen({
161
+ kind: "remove",
162
+ device
163
+ }),
164
+ size: "sm",
165
+ variant: "outline",
166
+ children: "Withdraw"
167
+ }) : null,
168
+ can.rename || can.remove ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenu, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
169
+ render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
170
+ "aria-label": `More actions for ${device.name}`,
171
+ className: "size-11 sm:size-8",
172
+ size: "icon-sm",
173
+ variant: "ghost"
174
+ }),
175
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ellipsis, { "aria-hidden": "true" })
176
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
177
+ align: "end",
178
+ children: [
179
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
180
+ onClick: () => onOpen({
181
+ kind: "rename",
182
+ device
183
+ }),
184
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pencil, { "aria-hidden": "true" }), "Rename"]
185
+ }),
186
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
187
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
188
+ onClick: () => onOpen({
189
+ kind: "remove",
190
+ device
191
+ }),
192
+ variant: "destructive",
193
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Trash2, { "aria-hidden": "true" }), device.status === "pending" ? "Decline" : "Remove"]
194
+ })
195
+ ]
196
+ })] }) : null
197
+ ]
198
+ });
199
+ }
200
+ function DeviceRow({ device, viewer, onOpen }) {
201
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
202
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
203
+ className: "font-medium",
204
+ children: device.name
205
+ }),
206
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
207
+ className: "font-mono text-xs",
208
+ title: device.udid,
209
+ translate: "no",
210
+ children: maskIosUdid(device.udid)
211
+ }) }),
212
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
213
+ className: "text-xs",
214
+ children: device.requested_by ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
215
+ className: "text-muted-foreground",
216
+ children: requesterOf(device)
217
+ })
218
+ }),
219
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceStatus, { device }) }),
220
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
221
+ className: "text-xs",
222
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: device.created_at_ms })
223
+ }),
224
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceBuild, { device }) }),
225
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
226
+ className: "text-right",
227
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceActions, {
228
+ device,
229
+ onOpen,
230
+ viewer
231
+ })
232
+ })
233
+ ] });
234
+ }
235
+ function DeviceCard({ device, viewer, onOpen }) {
236
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataCard, {
237
+ className: "cursor-default gap-3",
238
+ children: [
239
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
240
+ className: "flex min-w-0 items-start justify-between gap-3",
241
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
242
+ className: "flex min-w-0 flex-col gap-0.5",
243
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
244
+ className: "truncate text-sm font-medium",
245
+ children: device.name
246
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
247
+ className: "font-mono text-xs text-muted-foreground",
248
+ translate: "no",
249
+ children: maskIosUdid(device.udid)
250
+ })]
251
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceStatus, {
252
+ device,
253
+ withError: false
254
+ })]
255
+ }),
256
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppleError, { device }),
257
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
258
+ className: "flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground",
259
+ children: [
260
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: requesterOf(device) }),
261
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
262
+ "aria-hidden": "true",
263
+ children: "·"
264
+ }),
265
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: device.created_at_ms }),
266
+ device.build_id === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
267
+ "aria-hidden": "true",
268
+ children: "·"
269
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceBuild, { device })] })
270
+ ]
271
+ }),
272
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceActions, {
273
+ device,
274
+ onOpen,
275
+ viewer
276
+ })
277
+ ]
278
+ });
279
+ }
280
+ /** Name a device: approving a request, or renaming any device. */
281
+ function NameDialog({ target, onClose }) {
282
+ const approve = useApproveIosDeviceMutation();
283
+ const rename = useRenameIosDeviceMutation();
284
+ const mutation = target.kind === "approve" ? approve : rename;
285
+ const [name, setName] = (0, import_react.useState)(target.device.name);
286
+ const trimmed = name.trim();
287
+ const submit = (event) => {
288
+ event.preventDefault();
289
+ if (trimmed === "") return;
290
+ mutation.mutate({
291
+ id: target.device.id,
292
+ name: trimmed
293
+ }, { onSuccess: onClose });
294
+ };
295
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog$1, {
296
+ onOpenChange: (open) => open ? null : onClose(),
297
+ open: true,
298
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogContent, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogHeader, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogTitle, { children: target.kind === "approve" ? `Approve ${target.device.name}?` : `Rename ${target.device.name}` }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogDescription, { children: target.kind === "approve" ? "The next ad hoc build registers this iPhone with your Apple account. Each new iPhone uses one of the account's 100 a year, and removing it never gives the slot back." : "The registry shows this name. The next ad hoc build doesn't rename it at Apple." })] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
299
+ onSubmit: submit,
300
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(FieldGroup, { children: [target.kind === "approve" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
301
+ className: "grid grid-cols-[auto_minmax(0,1fr)] gap-x-4 gap-y-1 text-sm",
302
+ children: [
303
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
304
+ className: "text-muted-foreground",
305
+ children: "Requested by"
306
+ }),
307
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
308
+ className: "truncate",
309
+ children: target.device.requested_by ?? "Terminal (CLI)"
310
+ }),
311
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
312
+ className: "text-muted-foreground",
313
+ children: "UDID"
314
+ }),
315
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
316
+ className: "font-mono text-xs break-all select-all",
317
+ translate: "no",
318
+ children: target.device.udid
319
+ })
320
+ ]
321
+ }) : null, /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, {
322
+ "data-invalid": mutation.isError || void 0,
323
+ children: [
324
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
325
+ htmlFor: "ios-device-dialog-name",
326
+ children: "Name"
327
+ }),
328
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
329
+ autoComplete: "off",
330
+ id: "ios-device-dialog-name",
331
+ maxLength: 100,
332
+ onChange: (event) => setName(event.target.value),
333
+ value: name
334
+ }),
335
+ target.kind === "approve" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldDescription, { children: "The iPhone's ID comes from the person who asked. Approve devices you recognize." }) : null,
336
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldError, { children: mutation.isError ? `Couldn't ${target.kind === "approve" ? "approve" : "rename"} ${target.device.name}. Check your connection and try again.` : null })
337
+ ]
338
+ })] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogFooter, {
339
+ className: "mt-4",
340
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
341
+ className: "h-11 sm:h-8",
342
+ disabled: trimmed === "" || mutation.isPending,
343
+ type: "submit",
344
+ children: [mutation.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
345
+ className: "animate-spin motion-reduce:animate-none",
346
+ "data-icon": "inline-start"
347
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { "data-icon": "inline-start" }), target.kind === "approve" ? "Approve" : "Rename"]
348
+ })
349
+ })]
350
+ })] })
351
+ });
352
+ }
353
+ function RemoveDialog({ device, viewer, onClose }) {
354
+ const remove = useRemoveIosDeviceMutation();
355
+ const withdraw = !viewer.canApprove;
356
+ const decline = device.status === "pending";
357
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialog$1, {
358
+ onOpenChange: (open) => open ? null : onClose(),
359
+ open: true,
360
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogContent, { children: [
361
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogHeader, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogTitle, { children: withdraw ? `Withdraw ${device.name}?` : decline ? `Decline ${device.name}?` : `Remove ${device.name}?` }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogDescription, { children: decline ? "It leaves the list. Its owner can request it again." : "It leaves the list. New ad hoc builds keep it until it's disabled at Apple." })] }),
362
+ decline || !viewer.canApprove ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
363
+ className: "flex min-w-0 flex-col text-xs text-muted-foreground [&_code]:break-words [&_code]:whitespace-normal",
364
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
365
+ label: "the command that disables it",
366
+ value: `npx hot-updater native-build devices remove --udid ${device.udid}`,
367
+ wrap: true
368
+ })
369
+ }),
370
+ remove.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
371
+ className: "text-xs text-destructive",
372
+ role: "alert",
373
+ children: [
374
+ "Couldn't ",
375
+ withdraw ? "withdraw" : decline ? "decline" : "remove",
376
+ " ",
377
+ device.name,
378
+ ". Check your connection and try again."
379
+ ]
380
+ }) : null,
381
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogFooter, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogCancel, {
382
+ disabled: remove.isPending,
383
+ children: "Cancel"
384
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogAction, {
385
+ disabled: remove.isPending,
386
+ onClick: (event) => {
387
+ event.preventDefault();
388
+ remove.mutate({ udid: device.udid }, { onSuccess: onClose });
389
+ },
390
+ variant: "destructive",
391
+ children: [remove.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
392
+ className: "animate-spin motion-reduce:animate-none",
393
+ "data-icon": "inline-start"
394
+ }) : null, withdraw ? "Withdraw" : decline ? "Decline" : "Remove"]
395
+ })] })
396
+ ] })
397
+ });
398
+ }
399
+ /** Why iPhones can't register through this Console. */
400
+ function RegistrationNotice({ status, secretName }) {
401
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
402
+ className: "text-xs text-muted-foreground",
403
+ role: "status",
404
+ children: status === "local-console" ? "iPhones register through your hosted Console: an iPhone can't reach this computer's." : `Set ${secretName} on this Console to register iPhones.`
405
+ });
406
+ }
407
+ /**
408
+ * Where an iPhone joins the list: on a computer, a QR code of this page; on
409
+ * the iPhone, its name and the profile that reads its UDID, signed for the
410
+ * person who is signed in.
411
+ */
412
+ function RegisterCard({ view, devices }) {
413
+ const phone = useIosDevice();
414
+ const [name, setName] = (0, import_react.useState)(null);
415
+ const typed = name ?? view?.defaultName ?? "";
416
+ const [signed, setSigned] = (0, import_react.useState)(typed);
417
+ (0, import_react.useEffect)(() => {
418
+ const timer = setTimeout(() => setSigned(typed.trim()), 400);
419
+ return () => clearTimeout(timer);
420
+ }, [typed]);
421
+ const onPhone = phone?.ios === true;
422
+ const link = useIosDeviceProfileLinkQuery({
423
+ mode: "register",
424
+ name: signed || "iPhone"
425
+ }, onPhone && view?.registration === "ready");
426
+ const https = phone === null || window.location.protocol === "https:";
427
+ const back = phone?.requested && phone.udid !== null ? devices?.find((device) => device.udid === phone.udid?.toLowerCase()) : void 0;
428
+ const body = (() => {
429
+ if (phone === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
430
+ "aria-label": "Loading",
431
+ className: "h-36 w-full"
432
+ });
433
+ if (back !== void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
434
+ className: "text-sm",
435
+ role: "status",
436
+ children: [
437
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
438
+ className: "font-medium",
439
+ children: back.name
440
+ }),
441
+ " ·",
442
+ " ",
443
+ STATUS_LABELS[back.status],
444
+ ".",
445
+ " ",
446
+ back.status === "pending" ? "A maintainer approves it next, and it joins the next ad hoc build." : "It joins the next ad hoc build."
447
+ ]
448
+ });
449
+ if (view !== void 0 && (view.registration === "local-console" || view.registration === "no-secret")) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegistrationNotice, {
450
+ secretName: view.secretName,
451
+ status: view.registration
452
+ });
453
+ if (!onPhone) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
454
+ className: "flex flex-col items-start gap-4 sm:flex-row sm:items-center",
455
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
456
+ className: "size-36 shrink-0",
457
+ label: "Open this page on an iPhone",
458
+ value: `${window.location.origin}${consolePath()}${IOS_DEVICES_PATH}`
459
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
460
+ className: "flex min-w-0 flex-col gap-1",
461
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
462
+ className: "text-sm font-medium",
463
+ children: "Open this page on the iPhone, in Safari."
464
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
465
+ className: "text-xs text-muted-foreground",
466
+ children: "It installs a profile that reads the iPhone's ID, then lists the iPhone here as requested. Nothing stays installed."
467
+ })]
468
+ })]
469
+ });
470
+ if (!https) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
471
+ className: "text-xs text-muted-foreground",
472
+ role: "status",
473
+ children: "iPhones need this Console on HTTPS."
474
+ });
475
+ if (link.data?.status === "local-console") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegistrationNotice, { status: "local-console" });
476
+ if (link.data?.status === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegistrationNotice, {
477
+ secretName: link.data.secretName,
478
+ status: "no-secret"
479
+ });
480
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
481
+ className: "flex min-w-0 flex-col gap-3",
482
+ children: [
483
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
484
+ htmlFor: "ios-device-register-name",
485
+ children: "This iPhone's name"
486
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
487
+ autoComplete: "off",
488
+ className: "h-11",
489
+ id: "ios-device-register-name",
490
+ maxLength: 100,
491
+ onChange: (event) => setName(event.target.value),
492
+ value: typed
493
+ })] }),
494
+ link.data?.status === "issued" && signed === typed.trim() ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
495
+ className: buttonVariants({ className: "h-auto min-h-11 w-full whitespace-normal" }),
496
+ href: iosDeviceProfileUrl(consolePath(), link.data.token),
497
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, { "data-icon": "inline-start" }), "Install profile"]
498
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
499
+ "aria-label": "Preparing the profile",
500
+ className: "h-11 w-full"
501
+ }),
502
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
503
+ className: "text-xs text-muted-foreground",
504
+ children: "Safari only. Allow the download, then install it in Settings, where iOS calls it not signed. Safari comes back here, and nothing stays installed."
505
+ })
506
+ ]
507
+ });
508
+ })();
509
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
510
+ className: "shadow-sm",
511
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
512
+ className: "border-b px-4 py-3",
513
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
514
+ className: "text-sm",
515
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Register an iPhone" })
516
+ })
517
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
518
+ className: "p-4 sm:p-6",
519
+ children: body
520
+ })]
521
+ });
522
+ }
523
+ /**
524
+ * The iOS device registry inside Native builds: the iPhones and iPads a team
525
+ * asked to install ad hoc builds on. Testers register from an iPhone,
526
+ * approvers approve, rename, and remove, and the next ad hoc build registers
527
+ * what was approved with Apple. Android builds need none of this.
528
+ */
529
+ function IosDevicesPage({ search, onSearchChange }) {
530
+ const isMobile = useIsMobile();
531
+ const query = useIosDevicesQuery(search.status);
532
+ const view = query.data;
533
+ const rows = view?.devices;
534
+ const [dialog, setDialog] = (0, import_react.useState)(null);
535
+ const close = () => setDialog(null);
536
+ const empty = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableEmpty, {
537
+ icon: Smartphone,
538
+ title: search.status === void 0 ? "No iPhones yet" : `No ${STATUS_LABELS[search.status].toLowerCase()} iPhones`,
539
+ children: search.status === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Open this page on an iPhone to register it." }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
540
+ className: "h-11 sm:h-8",
541
+ onClick: () => onSearchChange({}),
542
+ size: "sm",
543
+ variant: "outline",
544
+ children: "Show all"
545
+ })
546
+ });
547
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
548
+ className: "flex h-svh min-h-0 min-w-0 flex-col",
549
+ children: [
550
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
551
+ 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",
552
+ children: [
553
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
554
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
555
+ className: "flex items-center gap-1.5",
556
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDrive, {
557
+ "aria-hidden": "true",
558
+ className: "size-3.5 text-muted-foreground"
559
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
560
+ className: "text-sm font-medium",
561
+ children: "Native builds"
562
+ })]
563
+ }),
564
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
565
+ className: "basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0",
566
+ children: "The iPhones and iPads ad hoc builds install on. Android needs none."
567
+ })
568
+ ]
569
+ }),
570
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
571
+ className: "flex min-h-0 min-w-0 flex-1 flex-col gap-4 overflow-y-auto bg-muted/5 p-3 sm:p-6",
572
+ children: [
573
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsNav, { current: "devices" }),
574
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegisterCard, {
575
+ devices: rows,
576
+ view
577
+ }),
578
+ view !== void 0 && !view.viewer.approversConfigured ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
579
+ className: "flex min-w-0 flex-col gap-1.5 text-xs text-muted-foreground",
580
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Nobody approves in this Console. Approve from a terminal:" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
581
+ label: "the approve command",
582
+ value: IOS_DEVICES_ADD_COMMAND
583
+ })]
584
+ }) : null,
585
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
586
+ className: "flex items-center gap-2",
587
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Select$1, {
588
+ items: [{
589
+ label: "All statuses",
590
+ value: ALL
591
+ }, ...Object.keys(STATUS_LABELS).map((status) => ({
592
+ label: STATUS_LABELS[status],
593
+ value: status
594
+ }))],
595
+ onValueChange: (value) => onSearchChange(value === null || value === ALL ? {} : { status: value }),
596
+ value: search.status ?? ALL,
597
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
598
+ "aria-label": "Status",
599
+ className: "min-w-0 flex-1 text-xs data-[size=default]:h-11 sm:w-44 sm:flex-none sm:data-[size=default]:h-8",
600
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
601
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
602
+ value: ALL,
603
+ children: "All statuses"
604
+ }), Object.keys(STATUS_LABELS).map((status) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
605
+ value: status,
606
+ children: STATUS_LABELS[status]
607
+ }, status))] }) })]
608
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
609
+ "aria-label": "Refresh iOS devices",
610
+ className: "ml-auto size-11 sm:size-7",
611
+ disabled: query.isFetching,
612
+ onClick: () => void query.refetch(),
613
+ size: "icon-sm",
614
+ variant: "ghost",
615
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "aria-hidden": "true" })
616
+ })]
617
+ }),
618
+ query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
619
+ variant: "destructive",
620
+ children: [
621
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
622
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "iOS devices couldn't be loaded" }),
623
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: "Check your connection and try again." }),
624
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
625
+ onClick: () => void query.refetch(),
626
+ size: "xs",
627
+ variant: "outline",
628
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
629
+ }) })
630
+ ]
631
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFrame, { children: isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
632
+ "aria-busy": query.isPlaceholderData,
633
+ "aria-label": "iOS devices",
634
+ className: "aria-busy:opacity-60",
635
+ role: "list",
636
+ children: query.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardSkeletons, { label: "Loading iOS devices" }) : rows?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardsEmpty, { children: empty }) : rows?.map((device) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
637
+ className: "border-b last:border-b-0",
638
+ role: "listitem",
639
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceCard, {
640
+ device,
641
+ onOpen: setDialog,
642
+ viewer: view.viewer
643
+ })
644
+ }, device.id))
645
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTable, {
646
+ "aria-busy": query.isPlaceholderData,
647
+ "aria-label": "iOS devices",
648
+ className: "aria-busy:opacity-60",
649
+ header: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
650
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Name" }),
651
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "UDID" }),
652
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Requested by" }),
653
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Status" }),
654
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Added" }),
655
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Build" }),
656
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
657
+ className: "text-right",
658
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
659
+ className: "sr-only",
660
+ children: "Actions"
661
+ })
662
+ })
663
+ ] }),
664
+ children: query.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableSkeletonRows, {
665
+ columns: COLUMNS + 1,
666
+ label: "Loading iOS devices"
667
+ }) : rows?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFullRow, {
668
+ columns: COLUMNS + 1,
669
+ children: empty
670
+ }) : rows?.map((device) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceRow, {
671
+ device,
672
+ onOpen: setDialog,
673
+ viewer: view.viewer
674
+ }, device.id))
675
+ }) })
676
+ ]
677
+ }),
678
+ dialog !== null && dialog.kind !== "remove" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NameDialog, {
679
+ onClose: close,
680
+ target: dialog
681
+ }, dialog.device.id) : null,
682
+ dialog?.kind === "remove" && view !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RemoveDialog, {
683
+ device: dialog.device,
684
+ onClose: close,
685
+ viewer: view.viewer
686
+ }, dialog.device.id) : null
687
+ ]
688
+ });
689
+ }
690
+ function IosDevicesRoute() {
691
+ const search = Route.useSearch();
692
+ const navigate = Route.useNavigate();
693
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IosDevicesPage, {
694
+ onSearchChange: (next) => void navigate({
695
+ search: next,
696
+ replace: true
697
+ }),
698
+ search
699
+ });
700
+ }
701
+ //#endregion
702
+ export { IosDevicesRoute as component };