@hot-updater/console 1.2.0-rc.27 → 1.2.0-rc.29

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 (298) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-OlRj4Jz0.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-DUqlpHCp.js → ConsoleFeatureUnavailable-Be-0iTww.js} +1 -1
  7. package/.output/public/assets/EventDetails-bDOYte1z.js +1 -0
  8. package/.output/public/assets/HashValueDisplay-D2f0HmyU.js +1 -0
  9. package/.output/public/assets/{InsightsPageHeader-2bTrjXln.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-Ckb5GMhh.js → NotFoundPage-CVBtl68B.js} +1 -1
  13. package/.output/public/assets/{PlatformIcon-CJ69KopR.js → PlatformIcon-DVnzzGqM.js} +1 -1
  14. package/.output/public/assets/RelativeTime-B4PK8qDw.js +1 -0
  15. package/.output/public/assets/{RolloutPercentageBadge-G6qt8rVb.js → RolloutPercentageBadge-D_I0Raj2.js} +1 -1
  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-DiRLrFVe.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-D0NFvUY5.js → badge-FZMD5vvS.js} +1 -1
  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-Bf1BPKMs.js → dist-DAM__Tdz.js} +1 -1
  36. package/.output/public/assets/download-B2GjTySo.js +1 -0
  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-BdyQq4-k.js +10 -0
  42. package/.output/public/assets/{input-group-D_NfhUbX.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-CYPrQVUC.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-_dZi1_ay.js → insights_.distribution-CRkGNelG.js} +1 -1
  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-DzBe6DHr.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-B6GeoQ_b.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-B-u7uLLG.js +2 -0
  64. package/.output/public/assets/native-builds_.devices-CVNAQtSy.js +1 -0
  65. package/.output/public/assets/{package-ytYrywZH.js → package-BmfoZ5Zj.js} +1 -1
  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-C-tvoCcE.js → refresh-cw-BHhBYjS8.js} +1 -1
  69. package/.output/public/assets/{relativeTime-DvyxGIsm.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-Clk5xTeE.js → rotate-cw-Ba-slJea.js} +1 -1
  74. package/.output/public/assets/{routes-gQXSzO_n.js → routes-DM3TyTLW.js} +2 -2
  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-Bt0YXG26.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/server/{__23tanstack-start-server-fn-resolver-CIN7Hpjl.mjs → __23tanstack-start-server-fn-resolver-DTuNq7_z.mjs} +85 -49
  90. package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
  91. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  92. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +2 -2
  93. package/.output/server/_libs/_.mjs +1 -1
  94. package/.output/server/_libs/lucide-react.mjs +22 -2
  95. package/.output/server/_libs/next-themes.mjs +1 -1
  96. package/.output/server/_libs/react-redux+[...].mjs +1 -1
  97. package/.output/server/_libs/recharts+[...].mjs +1 -1
  98. package/.output/server/_libs/sonner.mjs +1 -1
  99. package/.output/server/_libs/tanstack__react-query.mjs +1 -1
  100. package/.output/server/_ssr/{-native-builds-search-M6t7EIt4.mjs → -native-builds-search-Mm_AZoRU.mjs} +8 -2
  101. package/.output/server/_ssr/{BundleIdDisplay-BaFPllhZ.mjs → BundleIdDisplay-BX6DLh1K.mjs} +3 -3
  102. package/.output/server/_ssr/ChannelBadge-D7O95Ack.mjs +23 -0
  103. package/.output/server/_ssr/{ConsoleFeatureUnavailable-C-1Ls1sm.mjs → ConsoleFeatureUnavailable-Dfs3WUZf.mjs} +8 -8
  104. package/.output/server/_ssr/{EventDetails-jVM6sD8m.mjs → EventDetails-C1Q9caVa.mjs} +9 -9
  105. package/.output/server/_ssr/{HashValueDisplay-C7nja_fn.mjs → HashValueDisplay-SIEeZe0O.mjs} +3 -3
  106. package/.output/server/_ssr/{InsightsPageHeader-CDJhClRy.mjs → InsightsPageHeader-CAcbXSFD.mjs} +9 -9
  107. package/.output/server/_ssr/IosInstall-B7yxnQ7o.mjs +615 -0
  108. package/.output/server/_ssr/NativeBuildsNav-BwoEX7xx.mjs +38 -0
  109. package/.output/server/_ssr/{NotFoundPage-DclXpGzY.mjs → NotFoundPage-Cd_nKv04.mjs} +3 -3
  110. package/.output/server/_ssr/{PlatformIcon-CMLs3Wez.mjs → PlatformIcon-BpGOEXjU.mjs} +2 -2
  111. package/.output/server/_ssr/{RelativeTime-DUr_cgha.mjs → RelativeTime-B5txzq94.mjs} +40 -12
  112. package/.output/server/_ssr/{RolloutPercentageBadge-Mg4g25Gf.mjs → RolloutPercentageBadge-BEV8btLv.mjs} +4 -4
  113. package/.output/server/_ssr/RowReason-CEDEk7-N.mjs +186 -0
  114. package/.output/server/_ssr/{StoreSubmission-CUIg6WXQ.mjs → SandboxBadge-wlOMZIUd.mjs} +17 -17
  115. package/.output/server/_ssr/{TargetDisplay-C-C8MKuf.mjs → TargetDisplay-076I9qHx.mjs} +6 -23
  116. package/.output/server/_ssr/{alert-dialog-CiN6BFHg.mjs → alert-dialog-DrD4hAp4.mjs} +2 -2
  117. package/.output/server/_ssr/{api-BeWenjNl.mjs → api-C1plnjZg.mjs} +74 -17
  118. package/.output/server/_ssr/{api-keys-DzWwXpi5.mjs → api-keys-Bzn-P-lX.mjs} +2 -2
  119. package/.output/server/_ssr/{api-keys-Bzaj1vWD.mjs → api-keys-L8_p18pO.mjs} +12 -12
  120. package/.output/server/_ssr/{api-keys-rpc-BRnZWUpw.mjs → api-keys-rpc-Mne2yo8z.mjs} +3 -3
  121. package/.output/server/_ssr/{api-rpc-B87QoJwB.mjs → api-rpc-ChVBmeca.mjs} +56 -33
  122. package/.output/server/_ssr/{auth-rpc-CO1_TL1b.mjs → auth-rpc-Dml8l_eq.mjs} +4 -4
  123. package/.output/server/_ssr/{auth.server-BWTHsAlW.mjs → auth.server-DOShgraQ.mjs} +587 -19
  124. package/.output/server/_ssr/{badge-C7PdVtoH.mjs → badge-BasQflNy.mjs} +2 -2
  125. package/.output/server/_ssr/{bundleActivity-BGVvqWx7.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
  126. package/.output/server/_ssr/{card-BkxhOkGp.mjs → card-BrGGQYC0.mjs} +2 -2
  127. package/.output/server/_ssr/{config.server-Bvqyj9Ec.mjs → config.server-CVOdMDBk.mjs} +4 -4
  128. package/.output/server/_ssr/{console-access-CHD7-b3E.mjs → console-access-Bi-abtY-.mjs} +2 -2
  129. package/.output/server/_ssr/{console-features-api-Btkz_ZEj.mjs → console-features-api-Bjxo5ur3.mjs} +5 -5
  130. package/.output/server/_ssr/{console-features-rpc-DYf3xbak.mjs → console-features-rpc-xzdodg3g.mjs} +3 -3
  131. package/.output/server/_ssr/{console-features-CRP-pfov.mjs → console-features-xaGDhRC9.mjs} +1 -1
  132. package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
  133. package/.output/server/_ssr/{dialog-fnm03nlH.mjs → dialog-7iMkt9l0.mjs} +2 -2
  134. package/.output/server/_ssr/{downloadBundle-BX8ODCZT.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
  135. package/.output/server/_ssr/{empty-BzjaWjuQ.mjs → empty-Chb-YL3R.mjs} +3 -3
  136. package/.output/server/_ssr/{failureReports-C_CmBF4x.mjs → failureReports-BA2eg11O.mjs} +3 -3
  137. package/.output/server/_ssr/{field-C2GZCygB.mjs → field-mL_Aa6ff.mjs} +3 -3
  138. package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
  139. package/.output/server/_ssr/{getBundleChildren-BJTufthT.mjs → getBundleChildren-CdqFonhl.mjs} +1 -1
  140. package/.output/server/_ssr/{input-group-Cu6TtdYb.mjs → input-group-C00_xYka.mjs} +2 -2
  141. package/.output/server/_ssr/{insights-DuQB3_VX.mjs → insights-BcVNQCXf.mjs} +28 -28
  142. package/.output/server/_ssr/{insights-DZZsKfdZ.mjs → insights-BdF3o0Yp.mjs} +2 -2
  143. package/.output/server/_ssr/{insights-D_XXiwXz.mjs → insights-C9sSQPMF.mjs} +5 -5
  144. package/.output/server/_ssr/{insights-api-a8B90BHl.mjs → insights-api-CShlv9dA.mjs} +5 -5
  145. package/.output/server/_ssr/{insights-errors-Bz3sWNZm.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
  146. package/.output/server/_ssr/{insights-failures-DNQ9qVVf.mjs → insights-failures-7zH97WOO.mjs} +2 -2
  147. package/.output/server/_ssr/{insights-failures-rpc-DM5dPfnS.mjs → insights-failures-rpc-C-cv9bId.mjs} +10 -10
  148. package/.output/server/_ssr/{insights-recovery-DOkpqnQ8.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
  149. package/.output/server/_ssr/{insights-recovery-rpc-C81f-2Xa.mjs → insights-recovery-rpc-Ct-jIQZU.mjs} +6 -6
  150. package/.output/server/_ssr/{insights-rpc-DVbg0dsI.mjs → insights-rpc-Dc0I8O3n.mjs} +3 -3
  151. package/.output/server/_ssr/{insights-search-sCdCd-8P.mjs → insights-search-D_vVwBwW.mjs} +3 -3
  152. package/.output/server/_ssr/{insights-usage-4KDIN3Kg.mjs → insights-usage-h8fipPTv.mjs} +1 -1
  153. package/.output/server/_ssr/{insights-usage-rpc-CKfXb-tc.mjs → insights-usage-rpc-4TR94EHa.mjs} +6 -6
  154. package/.output/server/_ssr/{insights-usage-rpc-DAwc4FE6.mjs → insights-usage-rpc-D60hOhzl.mjs} +5 -5
  155. package/.output/server/_ssr/{insightsUsage-DmQdJZqT.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
  156. package/.output/server/_ssr/{insights_.distribution-FhZMnsNm.mjs → insights_.distribution-BgnfMzw1.mjs} +17 -17
  157. package/.output/server/_ssr/{insights_.distribution-CvPrNh8j.mjs → insights_.distribution-DkD7uAwA.mjs} +5 -5
  158. package/.output/server/_ssr/{insights_.distribution-Bq52kUtA.mjs → insights_.distribution-wT1mjWsG.mjs} +2 -2
  159. package/.output/server/_ssr/{installations-BjOaol_w.mjs → installations-DtRbzy3N.mjs} +2 -2
  160. package/.output/server/_ssr/{installations-CKe2Srtx.mjs → installations-DvxMRP5u.mjs} +4 -4
  161. package/.output/server/_ssr/{installations-B2anrEwv.mjs → installations-tFsFnxKk.mjs} +13 -13
  162. package/.output/server/_ssr/ios-devices-rpc-CIPuCUQ8.mjs +139 -0
  163. package/.output/server/_ssr/iosDeviceProfile-WyMC1593.mjs +176 -0
  164. package/.output/server/_ssr/iosDevices-B0TjF_sb.mjs +129 -0
  165. package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
  166. package/.output/server/_ssr/{native-builds-OUdRtp6m.mjs → native-builds-BXBkklfA.mjs} +28 -6
  167. package/.output/server/_ssr/{native-builds-DSOAh1CX.mjs → native-builds-C458T7Ts.mjs} +3 -3
  168. package/.output/server/_ssr/{native-builds-BsfydODe.mjs → native-builds-C5WxR0BT.mjs} +235 -90
  169. package/.output/server/_ssr/{native-builds_._buildId-BOedzqOS.mjs → native-builds_._buildId-CyCGKZ1H.mjs} +165 -323
  170. package/.output/server/_ssr/{native-builds_._buildId-DSfes24H.mjs → native-builds_._buildId-UsgsqKI8.mjs} +3 -3
  171. package/.output/server/_ssr/native-builds_.devices-BcfLIzJs.mjs +10 -0
  172. package/.output/server/_ssr/native-builds_.devices-BpTcIWm0.mjs +689 -0
  173. package/.output/server/_ssr/{nativeBuildDownloadLink-D-yCU-H7.mjs → nativeBuildDownloadLink-CtB2G7qG.mjs} +3 -3
  174. package/.output/server/_ssr/{nativeBuildInstall-szlEt-t_.mjs → nativeBuildInstall-PavEyZtZ.mjs} +56 -8
  175. package/.output/server/_ssr/{nativeBuilds-CRLmvFaO.mjs → nativeBuilds-Cub0EUGN.mjs} +135 -13
  176. package/.output/server/_ssr/{publicConsoleBase-DvHYxDaG.mjs → publicConsoleBase-f67NLLXZ.mjs} +11 -3
  177. package/.output/server/_ssr/{release-adoption-C7sUFDwa.mjs → release-adoption-DeICczY7.mjs} +2 -2
  178. package/.output/server/_ssr/{release-adoption-rpc-DHqnRw73.mjs → release-adoption-rpc-DkT6ui4_.mjs} +8 -8
  179. package/.output/server/_ssr/{releaseAdoption-D6ScSu-W.mjs → releaseAdoption-kHZo8P90.mjs} +3 -3
  180. package/.output/server/_ssr/{remote-config-D2wHSNjm.mjs → remote-config-BKlK0dFP.mjs} +3 -3
  181. package/.output/server/_ssr/{remote-config-Byc4JHkB.mjs → remote-config-D_nQT__6.mjs} +2 -2
  182. package/.output/server/_ssr/{remote-config-rpc-ZOfBMLtE.mjs → remote-config-rpc-BW6lyp9Y.mjs} +3 -3
  183. package/.output/server/_ssr/{remote-config-DkrjdfMC.mjs → remote-config-v1hs050H.mjs} +24 -24
  184. package/.output/server/_ssr/{router-D0GDdWkI.mjs → router-hKO__Vrv.mjs} +74 -77
  185. package/.output/server/_ssr/{routes-C10oCddR.mjs → routes-DKxm5A7X.mjs} +312 -233
  186. package/.output/server/_ssr/{routes-ChnyY2qP.mjs → routes-OhljAvlx.mjs} +15 -14
  187. package/.output/server/_ssr/{runtime.server-wcHT2Cop.mjs → runtime.server-CkSbWaZm.mjs} +2 -2
  188. package/.output/server/_ssr/{schema-migration-rpc-BKRs4MNf.mjs → schema-migration-rpc-DrrYEFqy.mjs} +3 -3
  189. package/.output/server/_ssr/{select-B9du7Z50.mjs → select-M4kWGKJW.mjs} +3 -3
  190. package/.output/server/_ssr/{server-CApi3lVS.mjs → server-4hXySEh0.mjs} +5 -5
  191. package/.output/server/_ssr/{sidebar-BwMkm72O.mjs → sidebar-CFlo6lny.mjs} +3 -3
  192. package/.output/server/_ssr/ssr.mjs +1 -1
  193. package/.output/server/_ssr/{start-By4wHYjG.mjs → start-D3noqqOK.mjs} +1 -1
  194. package/.output/server/_ssr/{switch-DyShvUOF.mjs → switch-xTCGSBdC.mjs} +3 -3
  195. package/.output/server/_ssr/{table-DMj6AnqH.mjs → table-CqdaVMjd.mjs} +2 -2
  196. package/.output/server/_ssr/{tabs-5a_JPYme.mjs → tabs-DtMAFr25.mjs} +4 -4
  197. package/.output/server/_ssr/{updateFailures-DNiv3S_y.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
  198. package/.output/server/_tanstack-start-manifest_v-CYfHRC4i.mjs +225 -0
  199. package/.output/server/index.mjs +452 -375
  200. package/lib/index.d.mts +9 -0
  201. package/package.json +7 -7
  202. package/src/components/DataTable.tsx +47 -3
  203. package/src/components/FoldedRows.tsx +219 -0
  204. package/src/components/RowReason.tsx +56 -0
  205. package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
  206. package/src/components/features/channels/ChannelManagementDialog.tsx +2 -2
  207. package/src/components/features/native-builds/CommitLink.tsx +2 -1
  208. package/src/components/features/native-builds/InstallCard.tsx +77 -40
  209. package/src/components/features/native-builds/IosDevicesPage.tsx +925 -0
  210. package/src/components/features/native-builds/IosInstall.tsx +375 -73
  211. package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
  212. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +7 -0
  213. package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
  214. package/src/components/features/native-builds/NativeBuildsPage.tsx +2 -0
  215. package/src/components/features/native-builds/NativeBuildsTable.tsx +220 -32
  216. package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
  217. package/src/components/features/native-builds/ShortHash.tsx +5 -2
  218. package/src/components/features/remote-config/PublishDialog.tsx +4 -1
  219. package/src/components/features/remote-config/VersionsCard.tsx +5 -2
  220. package/src/components/ui/sonner.tsx +3 -1
  221. package/src/index.ts +9 -0
  222. package/src/lib/api-rpc.ts +70 -30
  223. package/src/lib/api.ts +65 -2
  224. package/src/lib/ios-devices-api.ts +110 -0
  225. package/src/lib/ios-devices-rpc.ts +183 -0
  226. package/src/lib/native-builds.ts +72 -7
  227. package/src/lib/server/console-runtime.server.ts +9 -2
  228. package/src/lib/server/deviceProfileToken.ts +187 -0
  229. package/src/lib/server/foldedPage.ts +360 -0
  230. package/src/lib/server/iosDeviceProfile.ts +230 -0
  231. package/src/lib/server/iosDevices.ts +223 -0
  232. package/src/lib/server/listReleases.ts +101 -62
  233. package/src/lib/server/nativeBuildInstall.ts +147 -7
  234. package/src/lib/server/nativeBuilds.ts +221 -26
  235. package/src/routeTree.gen.ts +64 -67
  236. package/src/routes/-native-builds-search.ts +20 -0
  237. package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
  238. package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
  239. package/src/routes/index.tsx +447 -299
  240. package/src/routes/native-builds_.devices.tsx +21 -0
  241. package/src/styles.css +2 -2
  242. package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +0 -1
  243. package/.output/public/assets/EventDetails-DZsRlDHk.js +0 -1
  244. package/.output/public/assets/HashValueDisplay-MoZMmTeP.js +0 -1
  245. package/.output/public/assets/RelativeTime-TCmpOVPg.js +0 -1
  246. package/.output/public/assets/StoreSubmission-CqSg880n.js +0 -1
  247. package/.output/public/assets/TargetDisplay-DwOaMOiI.js +0 -1
  248. package/.output/public/assets/api-LQJH44FU.js +0 -1
  249. package/.output/public/assets/api-keys-4w2-ofii.js +0 -1
  250. package/.output/public/assets/api-keys-uFY8FsN9.js +0 -1
  251. package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
  252. package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
  253. package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
  254. package/.output/public/assets/card-ulgg5xHn.js +0 -1
  255. package/.output/public/assets/check-CXVR3s3X.js +0 -1
  256. package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
  257. package/.output/public/assets/dialog-CLIaC82_.js +0 -1
  258. package/.output/public/assets/empty-Bhlj8PEo.js +0 -1
  259. package/.output/public/assets/field-q4sTYzNU.js +0 -1
  260. package/.output/public/assets/history-DakJoeSM.js +0 -1
  261. package/.output/public/assets/index-CJclLsbG.js +0 -10
  262. package/.output/public/assets/insights-0TUItqwh.js +0 -1
  263. package/.output/public/assets/insights-B75txQ_F.js +0 -42
  264. package/.output/public/assets/insights-C17Z0whn.js +0 -2
  265. package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
  266. package/.output/public/assets/insights-usage-rpc-BbFllvi_.js +0 -1
  267. package/.output/public/assets/insights_.distribution-AZcfvK7x.js +0 -1
  268. package/.output/public/assets/insights_.distribution-gDqNqI5E.js +0 -2
  269. package/.output/public/assets/installations-Ap2G2tDs.js +0 -1
  270. package/.output/public/assets/installations-D0g3xvw8.js +0 -2
  271. package/.output/public/assets/installations-Y_7QW_p8.js +0 -1
  272. package/.output/public/assets/native-builds-Ba6cEZfm.js +0 -2
  273. package/.output/public/assets/native-builds-C3_-21we.js +0 -1
  274. package/.output/public/assets/native-builds_._buildId-BnP31v32.js +0 -1
  275. package/.output/public/assets/native-builds_._buildId-Cp9LJiMP.js +0 -2
  276. package/.output/public/assets/plus-BVhOauU3.js +0 -1
  277. package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
  278. package/.output/public/assets/remote-config-BRdy8QFR.js +0 -1
  279. package/.output/public/assets/remote-config-C9p5Pcdj.js +0 -6
  280. package/.output/public/assets/remote-config-CIAEArwq.js +0 -1
  281. package/.output/public/assets/routes-BLTF7nwe.js +0 -1
  282. package/.output/public/assets/search-nnvSOTEB.js +0 -1
  283. package/.output/public/assets/select-CBIU0_M1.js +0 -1
  284. package/.output/public/assets/smartphone-r0rRdPas.js +0 -1
  285. package/.output/public/assets/styles-BdlrKlVs.css +0 -2
  286. package/.output/public/assets/switch-CP6GsHmN.js +0 -1
  287. package/.output/public/assets/table-TUtVz-2l.js +0 -1
  288. package/.output/public/assets/tabs-CP3CSmtI.js +0 -1
  289. package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
  290. package/.output/server/_ssr/listReleases-CQEceg8j.mjs +0 -79
  291. package/.output/server/_ssr/nativeBuildDevice-DJUAzAIj.mjs +0 -210
  292. package/.output/server/_tanstack-start-manifest_v-8M7ggCuB.mjs +0 -192
  293. package/src/lib/server/nativeBuildDevice.ts +0 -253
  294. package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +0 -17
  295. package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +0 -17
  296. package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +0 -17
  297. /package/.output/public/assets/{uuidv7-cI6C63Fm.js → uuidv7-DAoOOpz9.js} +0 -0
  298. /package/.output/public/assets/{valueToPercent-B6X9rUJM.js → valueToPercent-Bn8p2lng.js} +0 -0
@@ -0,0 +1,689 @@
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-CFlo6lny.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-BrGGQYC0.mjs";
7
+ import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-BasQflNy.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-DrD4hAp4.mjs";
9
+ import { a as DialogHeader, i as DialogFooter, n as DialogContent, o as DialogTitle, r as DialogDescription, t as Dialog$1 } from "./dialog-7iMkt9l0.mjs";
10
+ import { a as FieldLabel, i as FieldGroup, n as FieldDescription, r as FieldError, t as Field } from "./field-mL_Aa6ff.mjs";
11
+ import { i as TableHead, o as TableRow, r as TableCell } from "./table-CqdaVMjd.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-M4kWGKJW.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-B5txzq94.mjs";
17
+ import { n as CopyableText, r as NoValue } from "./TargetDisplay-076I9qHx.mjs";
18
+ import { t as NativeBuildsNav } from "./NativeBuildsNav-BwoEX7xx.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-B7yxnQ7o.mjs";
20
+ import { t as Route } from "./native-builds_.devices-BcfLIzJs.mjs";
21
+ //#region node_modules/.nitro/vite/services/ssr/assets/native-builds_.devices-BpTcIWm0.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
+ function AppleError({ device }) {
100
+ return device.apple_error === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
101
+ className: "max-w-64 text-xs whitespace-normal text-muted-foreground",
102
+ children: device.apple_error
103
+ });
104
+ }
105
+ function DeviceStatus({ device, withError = true }) {
106
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
107
+ className: "flex min-w-0 shrink-0 flex-col items-start gap-1",
108
+ children: [appleRefused(device) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
109
+ variant: "warning",
110
+ children: "Apple refused"
111
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
112
+ variant: STATUS_BADGES[device.status],
113
+ children: STATUS_LABELS[device.status]
114
+ }), withError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppleError, { device }) : null]
115
+ });
116
+ }
117
+ function DeviceBuild({ device }) {
118
+ if (device.build_id === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NoValue, {});
119
+ let label = "A build";
120
+ try {
121
+ label = `Build of ${(0, import_dayjs_min.default)(extractTimestampFromUUIDv7(device.build_id)).format("MMM D")}`;
122
+ } catch {}
123
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
124
+ className: "text-xs font-medium underline-offset-4 hover:underline",
125
+ params: { buildId: device.build_id },
126
+ to: "/native-builds/$buildId",
127
+ children: label
128
+ });
129
+ }
130
+ function DeviceActions({ device, viewer, onOpen }) {
131
+ const can = actionsFor(device, viewer);
132
+ if (!can.approve && !can.rename && !can.remove && !can.withdraw) return null;
133
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
134
+ className: "flex items-center justify-end gap-1",
135
+ children: [
136
+ can.approve ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
137
+ className: "h-11 sm:h-8",
138
+ onClick: () => onOpen({
139
+ kind: "approve",
140
+ device
141
+ }),
142
+ size: "sm",
143
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { "data-icon": "inline-start" }), "Approve"]
144
+ }) : null,
145
+ can.withdraw ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
146
+ className: "h-11 sm:h-8",
147
+ onClick: () => onOpen({
148
+ kind: "remove",
149
+ device
150
+ }),
151
+ size: "sm",
152
+ variant: "outline",
153
+ children: "Withdraw"
154
+ }) : null,
155
+ can.rename || can.remove ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenu, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
156
+ render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
157
+ "aria-label": `More actions for ${device.name}`,
158
+ className: "size-11 sm:size-8",
159
+ size: "icon-sm",
160
+ variant: "ghost"
161
+ }),
162
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ellipsis, { "aria-hidden": "true" })
163
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
164
+ align: "end",
165
+ children: [
166
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
167
+ onClick: () => onOpen({
168
+ kind: "rename",
169
+ device
170
+ }),
171
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pencil, { "aria-hidden": "true" }), "Rename"]
172
+ }),
173
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
174
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
175
+ onClick: () => onOpen({
176
+ kind: "remove",
177
+ device
178
+ }),
179
+ variant: "destructive",
180
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Trash2, { "aria-hidden": "true" }), device.status === "pending" ? "Decline" : "Remove"]
181
+ })
182
+ ]
183
+ })] }) : null
184
+ ]
185
+ });
186
+ }
187
+ function DeviceRow({ device, viewer, onOpen }) {
188
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
189
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
190
+ className: "font-medium",
191
+ children: device.name
192
+ }),
193
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
194
+ className: "font-mono text-xs",
195
+ title: device.udid,
196
+ translate: "no",
197
+ children: maskIosUdid(device.udid)
198
+ }) }),
199
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
200
+ className: "text-xs",
201
+ children: device.requested_by ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
202
+ className: "text-muted-foreground",
203
+ children: requesterOf(device)
204
+ })
205
+ }),
206
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceStatus, { device }) }),
207
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
208
+ className: "text-xs",
209
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: device.created_at_ms })
210
+ }),
211
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceBuild, { device }) }),
212
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
213
+ className: "text-right",
214
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceActions, {
215
+ device,
216
+ onOpen,
217
+ viewer
218
+ })
219
+ })
220
+ ] });
221
+ }
222
+ function DeviceCard({ device, viewer, onOpen }) {
223
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataCard, {
224
+ className: "cursor-default gap-3",
225
+ children: [
226
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
227
+ className: "flex min-w-0 items-start justify-between gap-3",
228
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
229
+ className: "flex min-w-0 flex-col gap-0.5",
230
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
231
+ className: "truncate text-sm font-medium",
232
+ children: device.name
233
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
234
+ className: "font-mono text-xs text-muted-foreground",
235
+ translate: "no",
236
+ children: maskIosUdid(device.udid)
237
+ })]
238
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceStatus, {
239
+ device,
240
+ withError: false
241
+ })]
242
+ }),
243
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppleError, { device }),
244
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
245
+ className: "flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground",
246
+ children: [
247
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: requesterOf(device) }),
248
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
249
+ "aria-hidden": "true",
250
+ children: "·"
251
+ }),
252
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: device.created_at_ms }),
253
+ device.build_id === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
254
+ "aria-hidden": "true",
255
+ children: "·"
256
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceBuild, { device })] })
257
+ ]
258
+ }),
259
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceActions, {
260
+ device,
261
+ onOpen,
262
+ viewer
263
+ })
264
+ ]
265
+ });
266
+ }
267
+ /** Name a device: approving a request, or renaming any device. */
268
+ function NameDialog({ target, onClose }) {
269
+ const approve = useApproveIosDeviceMutation();
270
+ const rename = useRenameIosDeviceMutation();
271
+ const mutation = target.kind === "approve" ? approve : rename;
272
+ const [name, setName] = (0, import_react.useState)(target.device.name);
273
+ const trimmed = name.trim();
274
+ const submit = (event) => {
275
+ event.preventDefault();
276
+ if (trimmed === "") return;
277
+ mutation.mutate({
278
+ id: target.device.id,
279
+ name: trimmed
280
+ }, { onSuccess: onClose });
281
+ };
282
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog$1, {
283
+ onOpenChange: (open) => open ? null : onClose(),
284
+ open: true,
285
+ 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", {
286
+ onSubmit: submit,
287
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(FieldGroup, { children: [target.kind === "approve" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
288
+ className: "grid grid-cols-[auto_minmax(0,1fr)] gap-x-4 gap-y-1 text-sm",
289
+ children: [
290
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
291
+ className: "text-muted-foreground",
292
+ children: "Requested by"
293
+ }),
294
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
295
+ className: "truncate",
296
+ children: target.device.requested_by ?? "Terminal (CLI)"
297
+ }),
298
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
299
+ className: "text-muted-foreground",
300
+ children: "UDID"
301
+ }),
302
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
303
+ className: "font-mono text-xs break-all select-all",
304
+ translate: "no",
305
+ children: target.device.udid
306
+ })
307
+ ]
308
+ }) : null, /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, {
309
+ "data-invalid": mutation.isError || void 0,
310
+ children: [
311
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
312
+ htmlFor: "ios-device-dialog-name",
313
+ children: "Name"
314
+ }),
315
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
316
+ autoComplete: "off",
317
+ id: "ios-device-dialog-name",
318
+ maxLength: 100,
319
+ onChange: (event) => setName(event.target.value),
320
+ value: name
321
+ }),
322
+ 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,
323
+ /* @__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 })
324
+ ]
325
+ })] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogFooter, {
326
+ className: "mt-4",
327
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
328
+ className: "h-11 sm:h-8",
329
+ disabled: trimmed === "" || mutation.isPending,
330
+ type: "submit",
331
+ children: [mutation.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
332
+ className: "animate-spin motion-reduce:animate-none",
333
+ "data-icon": "inline-start"
334
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { "data-icon": "inline-start" }), target.kind === "approve" ? "Approve" : "Rename"]
335
+ })
336
+ })]
337
+ })] })
338
+ });
339
+ }
340
+ function RemoveDialog({ device, viewer, onClose }) {
341
+ const remove = useRemoveIosDeviceMutation();
342
+ const withdraw = !viewer.canApprove;
343
+ const decline = device.status === "pending";
344
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialog$1, {
345
+ onOpenChange: (open) => open ? null : onClose(),
346
+ open: true,
347
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogContent, { children: [
348
+ /* @__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." })] }),
349
+ decline || !viewer.canApprove ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
350
+ className: "flex min-w-0 flex-col text-xs text-muted-foreground [&_code]:break-words [&_code]:whitespace-normal",
351
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
352
+ label: "the command that disables it",
353
+ value: `npx hot-updater native-build devices remove --udid ${device.udid}`,
354
+ wrap: true
355
+ })
356
+ }),
357
+ remove.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
358
+ className: "text-xs text-destructive",
359
+ role: "alert",
360
+ children: [
361
+ "Couldn't ",
362
+ withdraw ? "withdraw" : decline ? "decline" : "remove",
363
+ " ",
364
+ device.name,
365
+ ". Check your connection and try again."
366
+ ]
367
+ }) : null,
368
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogFooter, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogCancel, {
369
+ disabled: remove.isPending,
370
+ children: "Cancel"
371
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogAction, {
372
+ disabled: remove.isPending,
373
+ onClick: (event) => {
374
+ event.preventDefault();
375
+ remove.mutate({ udid: device.udid }, { onSuccess: onClose });
376
+ },
377
+ variant: "destructive",
378
+ children: [remove.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
379
+ className: "animate-spin motion-reduce:animate-none",
380
+ "data-icon": "inline-start"
381
+ }) : null, withdraw ? "Withdraw" : decline ? "Decline" : "Remove"]
382
+ })] })
383
+ ] })
384
+ });
385
+ }
386
+ /** Why iPhones can't register through this Console. */
387
+ function RegistrationNotice({ status, secretName }) {
388
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
389
+ className: "text-xs text-muted-foreground",
390
+ role: "status",
391
+ 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.`
392
+ });
393
+ }
394
+ /**
395
+ * Where an iPhone joins the list: on a computer, a QR code of this page; on
396
+ * the iPhone, its name and the profile that reads its UDID, signed for the
397
+ * person who is signed in.
398
+ */
399
+ function RegisterCard({ view, devices }) {
400
+ const phone = useIosDevice();
401
+ const [name, setName] = (0, import_react.useState)(null);
402
+ const typed = name ?? view?.defaultName ?? "";
403
+ const [signed, setSigned] = (0, import_react.useState)(typed);
404
+ (0, import_react.useEffect)(() => {
405
+ const timer = setTimeout(() => setSigned(typed.trim()), 400);
406
+ return () => clearTimeout(timer);
407
+ }, [typed]);
408
+ const onPhone = phone?.ios === true;
409
+ const link = useIosDeviceProfileLinkQuery({
410
+ mode: "register",
411
+ name: signed || "iPhone"
412
+ }, onPhone && view?.registration === "ready");
413
+ const https = phone === null || window.location.protocol === "https:";
414
+ const back = phone?.requested && phone.udid !== null ? devices?.find((device) => device.udid === phone.udid?.toLowerCase()) : void 0;
415
+ const body = (() => {
416
+ if (phone === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
417
+ "aria-label": "Loading",
418
+ className: "h-36 w-full"
419
+ });
420
+ if (back !== void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
421
+ className: "text-sm",
422
+ role: "status",
423
+ children: [
424
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
425
+ className: "font-medium",
426
+ children: back.name
427
+ }),
428
+ " ·",
429
+ " ",
430
+ STATUS_LABELS[back.status],
431
+ ".",
432
+ " ",
433
+ back.status === "pending" ? "A maintainer approves it next, and it joins the next ad hoc build." : "It joins the next ad hoc build."
434
+ ]
435
+ });
436
+ if (view !== void 0 && (view.registration === "local-console" || view.registration === "no-secret")) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegistrationNotice, {
437
+ secretName: view.secretName,
438
+ status: view.registration
439
+ });
440
+ if (!onPhone) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
441
+ className: "flex flex-col items-start gap-4 sm:flex-row sm:items-center",
442
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
443
+ className: "size-36 shrink-0",
444
+ label: "Open this page on an iPhone",
445
+ value: `${window.location.origin}${consolePath()}${IOS_DEVICES_PATH}`
446
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
447
+ className: "flex min-w-0 flex-col gap-1",
448
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
449
+ className: "text-sm font-medium",
450
+ children: "Open this page on the iPhone, in Safari."
451
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
452
+ className: "text-xs text-muted-foreground",
453
+ children: "It installs a profile that reads the iPhone's ID, then lists the iPhone here as requested. Nothing stays installed."
454
+ })]
455
+ })]
456
+ });
457
+ if (!https) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
458
+ className: "text-xs text-muted-foreground",
459
+ role: "status",
460
+ children: "iPhones need this Console on HTTPS."
461
+ });
462
+ if (link.data?.status === "local-console") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegistrationNotice, { status: "local-console" });
463
+ if (link.data?.status === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegistrationNotice, {
464
+ secretName: link.data.secretName,
465
+ status: "no-secret"
466
+ });
467
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
468
+ className: "flex min-w-0 flex-col gap-3",
469
+ children: [
470
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
471
+ htmlFor: "ios-device-register-name",
472
+ children: "This iPhone's name"
473
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
474
+ autoComplete: "off",
475
+ className: "h-11",
476
+ id: "ios-device-register-name",
477
+ maxLength: 100,
478
+ onChange: (event) => setName(event.target.value),
479
+ value: typed
480
+ })] }),
481
+ link.data?.status === "issued" && signed === typed.trim() ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
482
+ className: buttonVariants({ className: "h-auto min-h-11 w-full whitespace-normal" }),
483
+ href: iosDeviceProfileUrl(consolePath(), link.data.token),
484
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, { "data-icon": "inline-start" }), "Install profile"]
485
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
486
+ "aria-label": "Preparing the profile",
487
+ className: "h-11 w-full"
488
+ }),
489
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
490
+ className: "text-xs text-muted-foreground",
491
+ 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."
492
+ })
493
+ ]
494
+ });
495
+ })();
496
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
497
+ className: "shadow-sm",
498
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
499
+ className: "border-b px-4 py-3",
500
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
501
+ className: "text-sm",
502
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Register an iPhone" })
503
+ })
504
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
505
+ className: "p-4 sm:p-6",
506
+ children: body
507
+ })]
508
+ });
509
+ }
510
+ /**
511
+ * The iOS device registry inside Native builds: the iPhones and iPads a team
512
+ * asked to install ad hoc builds on. Testers register from an iPhone,
513
+ * approvers approve, rename, and remove, and the next ad hoc build registers
514
+ * what was approved with Apple. Android builds need none of this.
515
+ */
516
+ function IosDevicesPage({ search, onSearchChange }) {
517
+ const isMobile = useIsMobile();
518
+ const query = useIosDevicesQuery(search.status);
519
+ const view = query.data;
520
+ const rows = view?.devices;
521
+ const [dialog, setDialog] = (0, import_react.useState)(null);
522
+ const close = () => setDialog(null);
523
+ const empty = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableEmpty, {
524
+ icon: Smartphone,
525
+ title: search.status === void 0 ? "No iPhones yet" : `No ${STATUS_LABELS[search.status].toLowerCase()} iPhones`,
526
+ 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, {
527
+ className: "h-11 sm:h-8",
528
+ onClick: () => onSearchChange({}),
529
+ size: "sm",
530
+ variant: "outline",
531
+ children: "Show all"
532
+ })
533
+ });
534
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
535
+ className: "flex h-svh min-h-0 min-w-0 flex-col",
536
+ children: [
537
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
538
+ 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",
539
+ children: [
540
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
541
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
542
+ className: "flex items-center gap-1.5",
543
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDrive, {
544
+ "aria-hidden": "true",
545
+ className: "size-3.5 text-muted-foreground"
546
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
547
+ className: "text-sm font-medium",
548
+ children: "Native builds"
549
+ })]
550
+ }),
551
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
552
+ className: "basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0",
553
+ children: "The iPhones and iPads ad hoc builds install on. Android needs none."
554
+ })
555
+ ]
556
+ }),
557
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
558
+ 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",
559
+ children: [
560
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsNav, { current: "devices" }),
561
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegisterCard, {
562
+ devices: rows,
563
+ view
564
+ }),
565
+ view !== void 0 && !view.viewer.approversConfigured ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
566
+ className: "flex min-w-0 flex-col gap-1.5 text-xs text-muted-foreground",
567
+ 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, {
568
+ label: "the approve command",
569
+ value: IOS_DEVICES_ADD_COMMAND
570
+ })]
571
+ }) : null,
572
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
573
+ className: "flex items-center gap-2",
574
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Select$1, {
575
+ items: [{
576
+ label: "All statuses",
577
+ value: ALL
578
+ }, ...Object.keys(STATUS_LABELS).map((status) => ({
579
+ label: STATUS_LABELS[status],
580
+ value: status
581
+ }))],
582
+ onValueChange: (value) => onSearchChange(value === null || value === ALL ? {} : { status: value }),
583
+ value: search.status ?? ALL,
584
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
585
+ "aria-label": "Status",
586
+ 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",
587
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
588
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
589
+ value: ALL,
590
+ children: "All statuses"
591
+ }), Object.keys(STATUS_LABELS).map((status) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
592
+ value: status,
593
+ children: STATUS_LABELS[status]
594
+ }, status))] }) })]
595
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
596
+ "aria-label": "Refresh iOS devices",
597
+ className: "ml-auto size-11 sm:size-7",
598
+ disabled: query.isFetching,
599
+ onClick: () => void query.refetch(),
600
+ size: "icon-sm",
601
+ variant: "ghost",
602
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "aria-hidden": "true" })
603
+ })]
604
+ }),
605
+ query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
606
+ variant: "destructive",
607
+ children: [
608
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
609
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "iOS devices couldn't be loaded" }),
610
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: "Check your connection and try again." }),
611
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
612
+ onClick: () => void query.refetch(),
613
+ size: "xs",
614
+ variant: "outline",
615
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
616
+ }) })
617
+ ]
618
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFrame, { children: isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
619
+ "aria-busy": query.isPlaceholderData,
620
+ "aria-label": "iOS devices",
621
+ className: "aria-busy:opacity-60",
622
+ role: "list",
623
+ 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", {
624
+ className: "border-b last:border-b-0",
625
+ role: "listitem",
626
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceCard, {
627
+ device,
628
+ onOpen: setDialog,
629
+ viewer: view.viewer
630
+ })
631
+ }, device.id))
632
+ }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTable, {
633
+ "aria-busy": query.isPlaceholderData,
634
+ "aria-label": "iOS devices",
635
+ className: "aria-busy:opacity-60",
636
+ header: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
637
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Name" }),
638
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "UDID" }),
639
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Requested by" }),
640
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Status" }),
641
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Added" }),
642
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Build" }),
643
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
644
+ className: "text-right",
645
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
646
+ className: "sr-only",
647
+ children: "Actions"
648
+ })
649
+ })
650
+ ] }),
651
+ children: query.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableSkeletonRows, {
652
+ columns: COLUMNS + 1,
653
+ label: "Loading iOS devices"
654
+ }) : rows?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFullRow, {
655
+ columns: COLUMNS + 1,
656
+ children: empty
657
+ }) : rows?.map((device) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceRow, {
658
+ device,
659
+ onOpen: setDialog,
660
+ viewer: view.viewer
661
+ }, device.id))
662
+ }) })
663
+ ]
664
+ }),
665
+ dialog !== null && dialog.kind !== "remove" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NameDialog, {
666
+ onClose: close,
667
+ target: dialog
668
+ }, dialog.device.id) : null,
669
+ dialog?.kind === "remove" && view !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RemoveDialog, {
670
+ device: dialog.device,
671
+ onClose: close,
672
+ viewer: view.viewer
673
+ }, dialog.device.id) : null
674
+ ]
675
+ });
676
+ }
677
+ function IosDevicesRoute() {
678
+ const search = Route.useSearch();
679
+ const navigate = Route.useNavigate();
680
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IosDevicesPage, {
681
+ onSearchChange: (next) => void navigate({
682
+ search: next,
683
+ replace: true
684
+ }),
685
+ search
686
+ });
687
+ }
688
+ //#endregion
689
+ export { IosDevicesRoute as component };