@hot-updater/console 1.2.0-rc.12 → 1.2.0-rc.14

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 (250) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-C-TGpFAm.js → -native-builds-search-OlRj4Jz0.js} +1 -1
  3. package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +1 -0
  4. package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-DUqlpHCp.js} +1 -1
  5. package/.output/public/assets/EventDetails-Dcpdu7re.js +1 -0
  6. package/.output/public/assets/HashValueDisplay-MoZMmTeP.js +1 -0
  7. package/.output/public/assets/{InsightsPageHeader-DHhqY3DT.js → InsightsPageHeader-CSas9gM0.js} +1 -1
  8. package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-CJ69KopR.js} +1 -1
  9. package/.output/public/assets/RelativeTime-CiZ7yXNJ.js +1 -0
  10. package/.output/public/assets/RolloutPercentageBadge-D-tZKnX7.js +1 -0
  11. package/.output/public/assets/StoreSubmission-F00RL5rI.js +1 -0
  12. package/.output/public/assets/TargetDisplay-CoYY8Fs4.js +1 -0
  13. package/.output/public/assets/api-LQJH44FU.js +1 -0
  14. package/.output/public/assets/api-keys-3IL4dIHe.js +1 -0
  15. package/.output/public/assets/api-keys-4w2-ofii.js +1 -0
  16. package/.output/public/assets/badge-laIuYW1U.js +1 -0
  17. package/.output/public/assets/card-ulgg5xHn.js +1 -0
  18. package/.output/public/assets/{index-DH9-mB8D.js → index-Cde2QQJq.js} +3 -3
  19. package/.output/public/assets/insights-0TUItqwh.js +1 -0
  20. package/.output/public/assets/insights-DDRfERph.js +2 -0
  21. package/.output/public/assets/insights-_6iMn8GR.js +42 -0
  22. package/.output/public/assets/{insights-search-DghCbEnk.js → insights-search-CYPrQVUC.js} +1 -1
  23. package/.output/public/assets/{insights-usage-rpc-CKQH0pUS.js → insights-usage-rpc-BbFllvi_.js} +1 -1
  24. package/.output/public/assets/insights_.distribution-AZcfvK7x.js +1 -0
  25. package/.output/public/assets/insights_.distribution-BGAqgPi0.js +1 -0
  26. package/.output/public/assets/insights_.distribution-CjYkDRA4.js +2 -0
  27. package/.output/public/assets/installations-Ap2G2tDs.js +1 -0
  28. package/.output/public/assets/{installations-B674P5Z5.js → installations-CSZfo1rG.js} +2 -2
  29. package/.output/public/assets/installations-CwQYwQ6K.js +1 -0
  30. package/.output/public/assets/native-builds-cT9Ha-jZ.js +1 -0
  31. package/.output/public/assets/native-builds-v5wez34c.js +2 -0
  32. package/.output/public/assets/native-builds_._buildId-BBwE8Pcc.js +2 -0
  33. package/.output/public/assets/native-builds_._buildId-DZPcR_up.js +1 -0
  34. package/.output/public/assets/package-ytYrywZH.js +1 -0
  35. package/.output/public/assets/remote-config-CIAEArwq.js +1 -0
  36. package/.output/public/assets/{remote-config-WjpozBG5.js → remote-config-Dwdc-sij.js} +1 -1
  37. package/.output/public/assets/remote-config-ZJ_IRSKE.js +6 -0
  38. package/.output/public/assets/routes-BUWLcUqW.js +1 -0
  39. package/.output/public/assets/routes-Rtz-KcQO.js +2 -0
  40. package/.output/public/assets/styles-bNNic0NS.css +2 -0
  41. package/.output/public/assets/valueToPercent-B6X9rUJM.js +1 -0
  42. package/.output/server/{__23tanstack-start-server-fn-resolver-C19x6erS.mjs → __23tanstack-start-server-fn-resolver-BD3yIgQW.mjs} +58 -46
  43. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  44. package/.output/server/_libs/_.mjs +2 -0
  45. package/.output/server/_libs/lucide-react.mjs +1 -27
  46. package/.output/server/_ssr/{-native-builds-search-CwNcoXf4.mjs → -native-builds-search-Cl8EZ0Ud.mjs} +2 -2
  47. package/.output/server/_ssr/{BundleIdDisplay-Bf-L37zf.mjs → BundleIdDisplay-Di0dxxxD.mjs} +2 -2
  48. package/.output/server/_ssr/{ConsoleFeatureUnavailable-iNGya64h.mjs → ConsoleFeatureUnavailable-BJM23Zg6.mjs} +7 -7
  49. package/.output/server/_ssr/{EventDetails-CZofL6Hn.mjs → EventDetails-BatEDlOf.mjs} +8 -8
  50. package/.output/server/_ssr/{HashValueDisplay-DC1TLS-8.mjs → HashValueDisplay-DoVLNSRc.mjs} +6 -6
  51. package/.output/server/_ssr/{InsightsPageHeader-sVotAhl0.mjs → InsightsPageHeader--Lsgjvy7.mjs} +8 -8
  52. package/.output/server/_ssr/{NotFoundPage-COb0erGp.mjs → NotFoundPage-DsX6EelI.mjs} +2 -2
  53. package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-Cuhy0CIO.mjs} +12 -2
  54. package/.output/server/_ssr/RelativeTime-BVQMmkQi.mjs +209 -0
  55. package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-B5_ASwiR.mjs} +19 -3
  56. package/.output/server/_ssr/StoreSubmission-B-oliflh.mjs +65 -0
  57. package/.output/server/_ssr/TargetDisplay-Zy7Xom4-.mjs +100 -0
  58. package/.output/server/_ssr/{alert-dialog-C-Mck8_M.mjs → alert-dialog-C4wLRSPA.mjs} +1 -1
  59. package/.output/server/_ssr/{api-oJajV-DG.mjs → api-B9fz7k5l.mjs} +99 -22
  60. package/.output/server/_ssr/{api-keys-CcqDkOcC.mjs → api-keys-CWRy6qIm.mjs} +2 -2
  61. package/.output/server/_ssr/{api-keys-B0L1sj-W.mjs → api-keys-DSBFZRhe.mjs} +10 -9
  62. package/.output/server/_ssr/{api-keys-rpc-Do6Rbl0V.mjs → api-keys-rpc-CWXJDGcR.mjs} +4 -4
  63. package/.output/server/_ssr/{api-rpc-DE0zy7iY.mjs → api-rpc-DFAKchn0.mjs} +43 -18
  64. package/.output/server/_ssr/{auth-rpc-0I_10FKy.mjs → auth-rpc-CCrZswwU.mjs} +5 -5
  65. package/.output/server/_ssr/{auth.server-cdIC1rxo.mjs → auth.server-B_NFqTVL.mjs} +165 -149
  66. package/.output/server/_ssr/{badge-BZZCX8Wn.mjs → badge-CrneyinM.mjs} +2 -44
  67. package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-BGVvqWx7.mjs} +1 -1
  68. package/.output/server/_ssr/card-uJiVh8Ex.mjs +49 -0
  69. package/.output/server/_ssr/{config.server-CydWUX0c.mjs → config.server-DegewTDN.mjs} +4 -4
  70. package/.output/server/_ssr/{console-access-y52SJdFn.mjs → console-access-Dn2nyMoy.mjs} +2 -2
  71. package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-CgdQJQlX.mjs} +1 -1
  72. package/.output/server/_ssr/{console-features-api-BDrXaElT.mjs → console-features-api-XvLDCadj.mjs} +5 -5
  73. package/.output/server/_ssr/{console-features-rpc-C9kKIDeK.mjs → console-features-rpc-BGj3a9MK.mjs} +4 -4
  74. package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
  75. package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-XAvDetmn.mjs} +1 -1
  76. package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
  77. package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BtRVBD0C.mjs} +3 -3
  78. package/.output/server/_ssr/{dialog-DKsDLcYQ.mjs → dialog-Bd8rq2D6.mjs} +1 -1
  79. package/.output/server/_ssr/{dist-TEpM_UAD.mjs → dist-B6-irDRA.mjs} +1 -1
  80. package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-BX8ODCZT.mjs} +1 -1
  81. package/.output/server/_ssr/{empty-D-mnqnCP.mjs → empty-CxQ3tY82.mjs} +2 -2
  82. package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
  83. package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-C_CmBF4x.mjs} +3 -3
  84. package/.output/server/_ssr/{field-Bbw5SS9L.mjs → field-BO99RT90.mjs} +2 -2
  85. package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-BJTufthT.mjs} +2 -2
  86. package/.output/server/_ssr/{input-group-DXofNRNJ.mjs → input-group-DTHYcd9a.mjs} +1 -1
  87. package/.output/server/_ssr/{insights-Dm2UdEf_.mjs → insights-2DKWoVb_.mjs} +5 -5
  88. package/.output/server/_ssr/{insights-D6kIjZuE.mjs → insights-B7__SQut.mjs} +2 -2
  89. package/.output/server/_ssr/{insights-C7rhyg61.mjs → insights-BxElDwIK.mjs} +28 -27
  90. package/.output/server/_ssr/{insights-api-DNmt4PWL.mjs → insights-api-BJcM3WZe.mjs} +5 -5
  91. package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-Bz3sWNZm.mjs} +2 -2
  92. package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DNQ9qVVf.mjs} +2 -2
  93. package/.output/server/_ssr/{insights-failures-rpc-DkrdYXJk.mjs → insights-failures-rpc-Waj0XZKw.mjs} +11 -11
  94. package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-DOkpqnQ8.mjs} +1 -1
  95. package/.output/server/_ssr/{insights-recovery-rpc-DWLnLF_s.mjs → insights-recovery-rpc-DrPel0ob.mjs} +7 -7
  96. package/.output/server/_ssr/{insights-rpc-CdYYZ7lE.mjs → insights-rpc-ETBGnpx2.mjs} +4 -4
  97. package/.output/server/_ssr/{insights-search-HVXIz64-.mjs → insights-search-Dm005qPB.mjs} +4 -4
  98. package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-4KDIN3Kg.mjs} +1 -1
  99. package/.output/server/_ssr/{insights-usage-rpc-BCMRZErp.mjs → insights-usage-rpc-DLReOGQK.mjs} +4 -4
  100. package/.output/server/_ssr/{insights-usage-rpc-CLHS5JhI.mjs → insights-usage-rpc-SqWTs_Dy.mjs} +7 -7
  101. package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-DmQdJZqT.mjs} +3 -3
  102. package/.output/server/_ssr/{insights_.distribution-3NzANTBS.mjs → insights_.distribution-BEUt7pIk.mjs} +5 -5
  103. package/.output/server/_ssr/{insights_.distribution-zbVsH0TU.mjs → insights_.distribution-B_FxGnXR.mjs} +16 -15
  104. package/.output/server/_ssr/{insights_.distribution-BTbT0Z4H.mjs → insights_.distribution-CCxFQ1g_.mjs} +2 -2
  105. package/.output/server/_ssr/{installations-BsCupWHx.mjs → installations-Bphhuxoy.mjs} +2 -2
  106. package/.output/server/_ssr/{installations-CpjqEYh_.mjs → installations-C9cYjLEo.mjs} +12 -12
  107. package/.output/server/_ssr/{installations-3XOT2V1j.mjs → installations-ChnSJFAp.mjs} +4 -4
  108. package/.output/server/_ssr/{listReleases-D_GY00SQ.mjs → listReleases-CQEceg8j.mjs} +1 -1
  109. package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
  110. package/.output/server/_ssr/native-artifact-H1MDP0Jz.mjs +593 -0
  111. package/.output/server/_ssr/{native-builds-CehTsEwY.mjs → native-builds-CCLcEAUo.mjs} +3 -3
  112. package/.output/server/_ssr/{native-builds-DhXL5zf_.mjs → native-builds-CWA9Y__P.mjs} +58 -20
  113. package/.output/server/_ssr/native-builds-vEUV8Jcd.mjs +548 -0
  114. package/.output/server/_ssr/{native-builds_._buildId-euhJ0EI7.mjs → native-builds_._buildId-C-AS0ccm.mjs} +3 -3
  115. package/.output/server/_ssr/native-builds_._buildId-CDnSyuLI.mjs +1294 -0
  116. package/.output/server/_ssr/nativeBuildDevice-Dn16gNmZ.mjs +230 -0
  117. package/.output/server/_ssr/nativeBuildDownloadLink-XqrSsk2n.mjs +96 -0
  118. package/.output/server/_ssr/nativeBuildInstall-DqyrDtdY.mjs +203 -0
  119. package/.output/server/_ssr/nativeBuildQr-P9qKcI7l.mjs +115 -0
  120. package/.output/server/_ssr/{nativeBuilds-B_7BPjt_.mjs → nativeBuilds-ByQdDnHG.mjs} +61 -29
  121. package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-CX7wutet.mjs} +6 -6
  122. package/.output/server/_ssr/publicConsoleBase-3IHSHvqd.mjs +27 -0
  123. package/.output/server/_ssr/{qr-code-C7kNRIDX.mjs → qr-code-pENFuyy9.mjs} +1 -1
  124. package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-C7sUFDwa.mjs} +2 -2
  125. package/.output/server/_ssr/{release-adoption-rpc-BF8svHjV.mjs → release-adoption-rpc-DUnqLbyh.mjs} +9 -9
  126. package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-LLYlRnUB.mjs} +4 -4
  127. package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-D9dAMI17.mjs} +3 -3
  128. package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-EPhok_Py.mjs} +1 -1
  129. package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-DaZ7ifUF.mjs} +2 -2
  130. package/.output/server/_ssr/{remote-config-Bn-BZgDt.mjs → remote-config-DC9HsCJa.mjs} +2 -2
  131. package/.output/server/_ssr/{remote-config-ofOYh91b.mjs → remote-config-Db3pXNkQ.mjs} +2 -2
  132. package/.output/server/_ssr/{remote-config-DdukdePk.mjs → remote-config-jOKasCsC.mjs} +20 -19
  133. package/.output/server/_ssr/{remote-config-rpc-CzSU_Gwg.mjs → remote-config-rpc-D4rLBAC7.mjs} +5 -5
  134. package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
  135. package/.output/server/_ssr/{router-BQikCEhb.mjs → router-B3iMYd1N.mjs} +103 -52
  136. package/.output/server/_ssr/{routes-Brx45XtQ.mjs → routes-BHhqwGpi.mjs} +260 -383
  137. package/.output/server/_ssr/{routes-CTo-A_dj.mjs → routes-Bpb4VcCf.mjs} +14 -18
  138. package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BsTTLV-B.mjs} +4 -4
  139. package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-3oDJJFWa.mjs} +1 -1
  140. package/.output/server/_ssr/{schema-migration-rpc-BcwNAFZJ.mjs → schema-migration-rpc-BY84M6ZD.mjs} +4 -4
  141. package/.output/server/_ssr/{select-Dk_Yv0IG.mjs → select-C_ARCTCI.mjs} +2 -2
  142. package/.output/server/_ssr/{server-b1jUGuT2.mjs → server-yFcuyI0b.mjs} +6 -6
  143. package/.output/server/_ssr/{sidebar-CsRdKfb2.mjs → sidebar-CFRWCQFu.mjs} +2 -2
  144. package/.output/server/_ssr/ssr.mjs +1 -1
  145. package/.output/server/_ssr/{start-BvDsQehg.mjs → start-C0XSSCq4.mjs} +2 -2
  146. package/.output/server/_ssr/{switch-DpYvZqIf.mjs → switch-DS2sIZvU.mjs} +2 -2
  147. package/.output/server/_ssr/{table-BAP-tdNn.mjs → table-C4kXCYKR.mjs} +1 -1
  148. package/.output/server/_ssr/{tabs-DGN9JEGV.mjs → tabs-DxOJdu7O.mjs} +2 -2
  149. package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-DPYzv9bE.mjs} +3 -3
  150. package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-CmHbryZT.mjs} +2 -2
  151. package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-NmbU0MD2.mjs} +1 -1
  152. package/.output/server/_tanstack-start-manifest_v-AYP07Vaf.mjs +194 -0
  153. package/.output/server/index.mjs +306 -285
  154. package/package.json +7 -7
  155. package/src/components/ChannelBadge.tsx +9 -9
  156. package/src/components/DataTable.tsx +303 -0
  157. package/src/components/HashValueDisplay.tsx +6 -3
  158. package/src/components/PlatformIcon.tsx +10 -0
  159. package/src/components/RelativeTime.tsx +31 -0
  160. package/src/components/TargetDisplay.tsx +69 -0
  161. package/src/components/features/channels/ChannelManagementDialog.tsx +3 -8
  162. package/src/components/features/insights/ReleaseActivity.tsx +1 -1
  163. package/src/components/features/native-builds/BuiltInBundleCard.tsx +108 -58
  164. package/src/components/features/native-builds/CommitLink.tsx +1 -1
  165. package/src/components/features/native-builds/ImportBuild.tsx +1 -1
  166. package/src/components/features/native-builds/InstallCard.tsx +246 -46
  167. package/src/components/features/native-builds/IosInstall.tsx +300 -0
  168. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +4 -1
  169. package/src/components/features/native-builds/NativeBuildsPage.tsx +63 -76
  170. package/src/components/features/native-builds/NativeBuildsTable.tsx +435 -314
  171. package/src/components/features/native-builds/PatchesCard.tsx +3 -2
  172. package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +4 -4
  173. package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
  174. package/src/components/features/native-builds/ShortHash.tsx +1 -1
  175. package/src/components/features/native-builds/StoreSubmission.tsx +12 -3
  176. package/src/lib/api-rpc.ts +55 -6
  177. package/src/lib/api.ts +85 -12
  178. package/src/lib/native-builds.ts +95 -17
  179. package/src/lib/server/local-console.ts +1 -1
  180. package/src/lib/server/nativeBuildDevice.ts +274 -0
  181. package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
  182. package/src/lib/server/nativeBuildInstall.ts +355 -0
  183. package/src/lib/server/nativeBuildQr.ts +114 -24
  184. package/src/lib/server/nativeBuilds.ts +87 -33
  185. package/src/lib/server/plistText.ts +17 -0
  186. package/src/lib/server/publicConsoleBase.ts +17 -0
  187. package/src/routeTree.gen.ts +114 -0
  188. package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +17 -0
  189. package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +17 -0
  190. package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +17 -0
  191. package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
  192. package/src/routes/[_]hot-updater/native-builds/preview-qr.ts +14 -0
  193. package/src/routes/api/native-builds/$buildId/download.ts +22 -1
  194. package/src/routes/index.tsx +290 -429
  195. package/src/styles.css +16 -0
  196. package/.output/public/assets/EventDetails-Dl2RvPAk.js +0 -1
  197. package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
  198. package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
  199. package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
  200. package/.output/public/assets/api-P2g8dCNg.js +0 -1
  201. package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
  202. package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
  203. package/.output/public/assets/badge-DWFcDWho.js +0 -1
  204. package/.output/public/assets/download-Cf24LBde.js +0 -1
  205. package/.output/public/assets/insights-B-0odqpt.js +0 -42
  206. package/.output/public/assets/insights-BSVGfxSL.js +0 -1
  207. package/.output/public/assets/insights-NK5B6ReS.js +0 -2
  208. package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
  209. package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
  210. package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
  211. package/.output/public/assets/installations-BWxczZ2t.js +0 -1
  212. package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
  213. package/.output/public/assets/native-builds-BGgFQTDW.js +0 -2
  214. package/.output/public/assets/native-builds-BOC71grI.js +0 -1
  215. package/.output/public/assets/native-builds-CxomzFqe.js +0 -1
  216. package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
  217. package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
  218. package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
  219. package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
  220. package/.output/public/assets/routes-BDdBIxYS.js +0 -1
  221. package/.output/public/assets/routes-CCD33Azv.js +0 -2
  222. package/.output/public/assets/styles-uK-0vUMk.css +0 -2
  223. package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
  224. package/.output/server/_ssr/RolloutPercentageBadge-BFBh0QWv.mjs +0 -21
  225. package/.output/server/_ssr/StoreSubmission-Bvfq8pWk.mjs +0 -139
  226. package/.output/server/_ssr/native-builds-vYKOMlhp.mjs +0 -510
  227. package/.output/server/_ssr/native-builds_._buildId-BHxp9NcZ.mjs +0 -813
  228. package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
  229. package/.output/server/_tanstack-start-manifest_v-uhJWytDm.mjs +0 -184
  230. /package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-Ckb5GMhh.js} +0 -0
  231. /package/.output/public/assets/{alert-dialog-BqYScr9y.js → alert-dialog-DiRLrFVe.js} +0 -0
  232. /package/.output/public/assets/{dialog-CNUPxNxH.js → dialog-CLIaC82_.js} +0 -0
  233. /package/.output/public/assets/{dist-CPlO6ko9.js → dist-Bf1BPKMs.js} +0 -0
  234. /package/.output/public/assets/{empty-B3Uwdd6k.js → empty-Bhlj8PEo.js} +0 -0
  235. /package/.output/public/assets/{field-D-2-mnNh.js → field-q4sTYzNU.js} +0 -0
  236. /package/.output/public/assets/{history-DqHlgSuV.js → history-DakJoeSM.js} +0 -0
  237. /package/.output/public/assets/{input-group-D3OUBk4n.js → input-group-D_NfhUbX.js} +0 -0
  238. /package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-DzBe6DHr.js} +0 -0
  239. /package/.output/public/assets/{list--NIee1FZ.js → list-B6GeoQ_b.js} +0 -0
  240. /package/.output/public/assets/{plus-BReVKct-.js → plus-BVhOauU3.js} +0 -0
  241. /package/.output/public/assets/{refresh-cw-B9HHjLej.js → refresh-cw-C-tvoCcE.js} +0 -0
  242. /package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-DvyxGIsm.js} +0 -0
  243. /package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-Clk5xTeE.js} +0 -0
  244. /package/.output/public/assets/{search-BCel4Oy6.js → search-nnvSOTEB.js} +0 -0
  245. /package/.output/public/assets/{smartphone-CMaSy_ir.js → smartphone-r0rRdPas.js} +0 -0
  246. /package/.output/public/assets/{switch-BpdiHL_t.js → switch-CP6GsHmN.js} +0 -0
  247. /package/.output/public/assets/{table-Bpy3SvSo.js → table-TUtVz-2l.js} +0 -0
  248. /package/.output/public/assets/{tabs-Xmt7tZeG.js → tabs-CP3CSmtI.js} +0 -0
  249. /package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-Bt0YXG26.js} +0 -0
  250. /package/.output/public/assets/{uuidv7-zXMtwR9Q.js → uuidv7-cI6C63Fm.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-10-30T04:40:06.056Z",
2
+ "date": "2026-11-03T17:15:43.789Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -1 +1 @@
1
- import{ir as e}from"./sidebar-Di9SN47G.js";import{d as t}from"./uuidv7-zXMtwR9Q.js";var n=e(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),r=e=>typeof e==`string`&&e.length>0?e:void 0,i=e=>{let n=r(e);if(n!==void 0)try{return t(n),n}catch{return}},a=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),o=e=>{let t=r(e.before);return a({channel:i(e.channel),before:t,after:t===void 0?r(e.after):void 0})},s=e=>{let t=r(e.patchesBefore);return a({patchesBefore:t,patchesAfter:t===void 0?r(e.patchesAfter):void 0})};export{o as n,n as r,s as t};
1
+ import{ir as e}from"./sidebar-Di9SN47G.js";import{d as t}from"./uuidv7-cI6C63Fm.js";var n=e(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),r=e=>typeof e==`string`&&e.length>0?e:void 0,i=e=>{let n=r(e);if(n!==void 0)try{return t(n),n}catch{return}},a=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),o=e=>{let t=r(e.before);return a({channel:i(e.channel),before:t,after:t===void 0?r(e.after):void 0})},s=e=>{let t=r(e.patchesBefore);return a({patchesBefore:t,patchesAfter:t===void 0?r(e.patchesAfter):void 0})};export{o as n,n as r,s as t};
@@ -0,0 +1 @@
1
+ import{Ln as e,Wr as t}from"./sidebar-Di9SN47G.js";var n=t();function r({bundleId:t,className:r}){return(0,n.jsx)(`span`,{translate:`no`,className:e(`break-all font-mono text-xs tabular-nums`,r),children:t})}export{r as t};
@@ -1 +1 @@
1
- import{In as e,Wr as t,p as n}from"./sidebar-Di9SN47G.js";import{a as r,c as i,n as a,o}from"./console-features-api-DEXSwFtc.js";import{t as s}from"./arrow-up-right-DK8Zdg40.js";import{t as c}from"./NotFoundPage-DZ3DxyRA.js";import{i as l,n as u,o as d,r as f,t as p}from"./empty-B3Uwdd6k.js";var m=t(),h=`https://hot-updater.dev/docs/guides/console-deployment`;function g({data:t}){let g=a(t),_=r().data?.remote===!0;if(g===void 0)return(0,m.jsx)(c,{});let{label:v,plugin:y}=o[g],b=(0,m.jsx)(`code`,{className:`font-mono`,children:`${y}()`});return(0,m.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,m.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 items-center gap-3 border-b bg-background px-3 py-3 sm:min-h-12 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,m.jsx)(n,{className:`-ml-1`}),(0,m.jsx)(`h1`,{className:`text-sm font-medium`,children:v})]}),(0,m.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,m.jsxs)(p,{children:[(0,m.jsx)(l,{children:i(g,{remote:_})===`remote`?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(d,{children:`Needs the server's database`}),(0,m.jsx)(f,{children:`This console reaches a self-hosted server through its admin API, which does not serve this page. Configure the console with the database the server uses.`})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(d,{children:[v,` not installed`]}),(0,m.jsxs)(f,{children:[`Add `,b,` to `,(0,m.jsx)(`code`,{className:`font-mono`,children:`plugins`}),` `,`where you create the server and in the console config.`]})]})}),(0,m.jsx)(u,{children:(0,m.jsxs)(`a`,{className:e({variant:`outline`}),href:h,rel:`noreferrer`,target:`_blank`,children:[`Console setup guide`,(0,m.jsx)(s,{"aria-hidden":`true`,"data-icon":`inline-end`})]})})]})})]})}export{g as t};
1
+ import{In as e,Wr as t,p as n}from"./sidebar-Di9SN47G.js";import{a as r,c as i,n as a,o}from"./console-features-api-DEXSwFtc.js";import{t as s}from"./arrow-up-right-DK8Zdg40.js";import{t as c}from"./NotFoundPage-Ckb5GMhh.js";import{i as l,n as u,o as d,r as f,t as p}from"./empty-Bhlj8PEo.js";var m=t(),h=`https://hot-updater.dev/docs/guides/console-deployment`;function g({data:t}){let g=a(t),_=r().data?.remote===!0;if(g===void 0)return(0,m.jsx)(c,{});let{label:v,plugin:y}=o[g],b=(0,m.jsx)(`code`,{className:`font-mono`,children:`${y}()`});return(0,m.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,m.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 items-center gap-3 border-b bg-background px-3 py-3 sm:min-h-12 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,m.jsx)(n,{className:`-ml-1`}),(0,m.jsx)(`h1`,{className:`text-sm font-medium`,children:v})]}),(0,m.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,m.jsxs)(p,{children:[(0,m.jsx)(l,{children:i(g,{remote:_})===`remote`?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(d,{children:`Needs the server's database`}),(0,m.jsx)(f,{children:`This console reaches a self-hosted server through its admin API, which does not serve this page. Configure the console with the database the server uses.`})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(d,{children:[v,` not installed`]}),(0,m.jsxs)(f,{children:[`Add `,b,` to `,(0,m.jsx)(`code`,{className:`font-mono`,children:`plugins`}),` `,`where you create the server and in the console config.`]})]})}),(0,m.jsx)(u,{children:(0,m.jsxs)(`a`,{className:e({variant:`outline`}),href:h,rel:`noreferrer`,target:`_blank`,children:[`Console setup guide`,(0,m.jsx)(s,{"aria-hidden":`true`,"data-icon":`inline-end`})]})})]})})]})}export{g as t};
@@ -0,0 +1 @@
1
+ import{Fn as e,Wr as t,_ as n,b as r,g as i,ii as a,ir as o,ti as s,v as c,x as l,y as u}from"./sidebar-Di9SN47G.js";import{f as d}from"./insights-api-BVCXJsoV.js";import{t as f}from"./check-CXVR3s3X.js";import{a as p}from"./useCompositeListItem-JmyDfo3-.js";import{t as m}from"./copy-DsuLj3oj.js";import{r as h,t as g}from"./HashValueDisplay-MoZMmTeP.js";import{s as _}from"./input-group-D_NfhUbX.js";import{t as v}from"./smartphone-r0rRdPas.js";import{t as y}from"./badge-laIuYW1U.js";import{n as b}from"./dist-Bf1BPKMs.js";import{i as x,o as S,r as C,t as w}from"./empty-Bhlj8PEo.js";import{n as T,r as E}from"./InsightsPageHeader-CSas9gM0.js";var D=o(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),O=o(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),k=o(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),A=o(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),j=a(s(),1),M=t(),N={UPDATE_DOWNLOADED:{label:`Downloaded`,description:`Downloaded. It launches when the app restarts.`,variant:`default`,icon:h},UPDATE_APPLIED:{label:`Launched`,description:`The app restarted into the downloaded bundle.`,variant:`success`,icon:f},RECOVERED:{label:`Crashed`,description:`Crashed on the bundle and rolled back.`,variant:`warning`,icon:_},UPDATE_FAILED:{label:`Update failed`,description:`An update check, download, or install failed.`,variant:`destructive`,icon:k},UNCHANGED:{label:`Launch`,description:`The app launched; the report changed nothing.`,variant:`secondary`,icon:D}},P=e=>{let{kinds:t=[],previous:n}=e.change??{};return t.includes(`first_seen`)?{label:`First seen`,description:`The installation's first report to this server.`,variant:`secondary`,icon:A}:t.includes(`app_version`)||t.includes(`native_build`)?{label:`App updated`,description:n&&n.appVersion!==e.appVersion?`From app ${n.appVersion} to ${e.appVersion}.`:`A new build of the same app version.`,variant:`secondary`,icon:v}:t.includes(`bundle`)?{label:`Launched`,description:`Seen running this bundle; the report of the restart into it never arrived.`,variant:`success`,icon:f}:t.includes(`release`)?{label:`Release adopted`,description:`The bundle it runs now ships under another release.`,variant:`secondary`,icon:O}:t.includes(`channel`)?{label:`Channel changed`,description:n?`From ${n.channel} to ${e.channel}.`:`It reports on another channel.`,variant:`secondary`,icon:O}:N.UNCHANGED},F=e=>e.type===`UNCHANGED`&&e.change?P({change:e.change,appVersion:e.appVersion??``,channel:e.channel??``}):N[e.type];function I(){let[e,t]=(0,j.useState)(`UTC`);return(0,j.useEffect)(()=>{t(Intl.DateTimeFormat().resolvedOptions().timeZone)},[]),new Intl.DateTimeFormat(`en`,{timeZone:e,timeZoneName:`shortOffset`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`})}function L(e,t){let n=Object.fromEntries(t.formatToParts(new Date(e)).map(({type:e,value:t})=>[e,t])),r=n.timeZoneName===`GMT`?`GMT+0`:n.timeZoneName;return`${n.year}/${n.month}/${n.day} ${n.hour}:${n.minute}:${n.second} ${r}`}function R({value:e,formatter:t,touch:n=!1}){let r=new Date(e),i=L(e,t);return(0,M.jsxs)(`details`,{className:`group/time`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring/30 [&::-webkit-details-marker]:hidden ${n?`flex min-h-11 items-center`:``}`,children:(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,M.jsx)(`time`,{dateTime:r.toISOString(),className:`whitespace-nowrap`,children:i}),(0,M.jsx)(p,{"aria-hidden":`true`,className:`size-3 text-muted-foreground group-open/time:rotate-180`})]})}),(0,M.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:r.toISOString().replace(`T`,` `).replace(`Z`,` UTC`)})]})}var z={patch:`A patch delivered it.`,manifest:`Only the changed files were downloaded.`,archive:`The full archive was downloaded.`},B=e=>{if(e.late)return`Counted nothing: the installation had already downloaded or run this bundle.`;if(e.impliedDownload)return`Its download report never arrived; the download counted with it.`;if(e.type===`UPDATE_FAILED`&&e.failure)return d(e.failure);if(e.type===`UPDATE_DOWNLOADED`&&e.delivery){let t=z[e.delivery]??null;return e.patchFallback?`The patch failed. ${t??``}`.trim():t}return null};function V({response:t}){let n=async()=>{try{await navigator.clipboard.writeText(t.body),b.success(`Response body copied`)}catch{b.error(`Could not copy the response body`)}};return(0,M.jsxs)(`section`,{"aria-label":`Response body`,className:`flex min-w-0 flex-col gap-3`,children:[(0,M.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response body`}),(0,M.jsxs)(e,{variant:`outline`,className:`min-h-11`,disabled:t.body===null||t.body===``,onClick:()=>void n(),children:[(0,M.jsx)(m,{"aria-hidden":`true`,"data-icon":`inline-start`}),` Copy body`]})]}),t.bodyTruncated?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Truncated to the 4 KiB reporting limit. Copy includes only the stored text.`}):null,t.body?(0,M.jsx)(`pre`,{className:`rounded-md border bg-muted/30 p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:t.body}):(0,M.jsx)(w,{children:(0,M.jsxs)(x,{children:[(0,M.jsx)(S,{children:t.body===null?`Response body unavailable`:`Empty response body`}),(0,M.jsx)(C,{children:t.body===null?`The client received the HTTP status but could not read the body.`:t.status===304?`The server returned no body. The client can reuse its cached catalog.`:`The server returned no text in this response.`})]})})]})}function H({event:t}){let a=t.httpResponse,o=I(),s=a.status===304?`Not modified`:a.status>=500?`Server error`:a.status>=400?`Request error`:a.status>=300?`Redirect`:`Success`,d=a.resource===`catalog`?`Catalog`:`Artifact`,f=[[`App`,t.platform&&`${t.platform===`ios`?`iOS`:`Android`} ${t.appVersion}`],[`Channel`,t.channel],[`SDK`,t.sdkVersion],[`Installation`,t.installId]].filter(([,e])=>e!=null);return(0,M.jsxs)(i,{children:[(0,M.jsxs)(l,{"aria-label":`View ${d.toLowerCase()} response: HTTP ${a.status}`,render:(0,M.jsx)(e,{variant:`ghost`,className:`-ml-2 h-auto min-h-11 justify-start`}),children:[(0,M.jsxs)(y,{variant:a.status>=400?`destructive`:`secondary`,children:[`HTTP `,a.status]}),(0,M.jsxs)(`span`,{children:[d,` response`]})]}),(0,M.jsxs)(n,{className:`data-[side=right]:w-full data-[side=right]:sm:max-w-2xl`,children:[(0,M.jsxs)(u,{className:`border-b pr-14`,children:[(0,M.jsx)(r,{children:`HTTP response`}),(0,M.jsxs)(c,{children:[d,` · HTTP `,a.status,` · `,s,`. Most recent response available when this report was created.`]})]}),(0,M.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-6`,children:[(0,M.jsxs)(`section`,{"aria-label":`Request`,className:`flex min-w-0 flex-col gap-2`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Request`}),(0,M.jsxs)(`p`,{className:`font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:[`GET `,a.path]}),a.receivedAtMs==null?null:(0,M.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[`Response received`,` `,(0,M.jsx)(R,{value:a.receivedAtMs,formatter:o})]})]}),(0,M.jsx)(V,{response:a}),f.length?(0,M.jsxs)(`section`,{"aria-label":`Response context`,className:`flex flex-col gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response context`}),(0,M.jsx)(`dl`,{className:`grid grid-cols-2 gap-x-6 gap-y-4`,children:f.map(([e,t])=>(0,M.jsxs)(`div`,{className:`min-w-0`,children:[(0,M.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,M.jsx)(`dd`,{className:`mt-1 text-sm wrap-anywhere`,children:t})]},e))})]}):null]})]})]})}function U({event:e}){let t=F(e),n=t.icon,r=B(e);return(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2`,children:[(0,M.jsxs)(y,{variant:t.variant,className:`gap-1 whitespace-nowrap [&_svg]:size-3`,children:[(0,M.jsx)(n,{"aria-hidden":`true`}),t.label]}),(0,M.jsx)(`p`,{className:`max-w-56 whitespace-pre-wrap wrap-anywhere text-xs text-muted-foreground`,children:e.type===`UPDATE_FAILED`&&r?r:t.description}),e.httpResponse?(0,M.jsx)(H,{event:e}):null,e.type===`UPDATE_FAILED`&&e.failure?.errorStack?(0,M.jsxs)(`details`,{className:`w-full max-w-56 text-xs`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:`Stack trace`}),(0,M.jsx)(`pre`,{className:`mt-2 max-h-64 overflow-auto whitespace-pre-wrap wrap-anywhere font-mono`,children:e.failure.errorStack})]}):null,e.type!==`UPDATE_FAILED`&&r?(0,M.jsx)(`p`,{className:`max-w-56 whitespace-normal text-xs text-muted-foreground`,children:r}):null]})}function W({event:e,touch:t=!1}){let n=e.type===`UPDATE_DOWNLOADED`,r=e.type===`UPDATE_FAILED`,i=!r||e.failure?.stage!==`check`,a=e.type===`UNCHANGED`&&e.change?.kinds.includes(`bundle`)===!0&&e.change.previous!==void 0,o=a?e.change.previous.bundleId:e.fromBundleId,s=n||r||a||e.type===`UPDATE_APPLIED`||e.type===`RECOVERED`;return(0,M.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-2 gap-y-2`,children:[o&&s?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n||r?`Running`:`From`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(g,{value:o,buttonClassName:t?`min-h-11 px-3`:void 0}),E(o,a?e.change.previous.minBundleId:e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null,i?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n?`Pending`:r?`Target`:s?`To`:`Current`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(g,{value:e.toBundleId,buttonClassName:t?`min-h-11 px-3`:void 0}),E(e.toBundleId,e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null]})}export{H as a,V as i,R as n,I as o,U as r,W as t};
@@ -0,0 +1 @@
1
+ import{Ln as e,Wr as t,ir as n,it as r,nt as i,tt as a}from"./sidebar-Di9SN47G.js";import{n as o}from"./dist-Bf1BPKMs.js";var s=n(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),c=t(),l=(e,t=12)=>e.length>t?`${e.slice(0,Math.max(1,t-4))}…${e.slice(-4)}`:e;function u({value:t,display:n=t,maxLength:s=12,className:u,buttonClassName:d}){let f=n!==t||n.length>s,p=l(n,s),m=async()=>{try{await navigator.clipboard.writeText(t),o.success(`Copied to clipboard`,{description:t})}catch{o.error(`Failed to copy value`)}},h=e=>{e.preventDefault(),e.stopPropagation(),m()},g=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),m())},_=(0,c.jsx)(`span`,{translate:`no`,className:e(`font-mono text-xs tabular-nums whitespace-nowrap`,u),children:p});return(0,c.jsxs)(a,{children:[(0,c.jsx)(r,{render:(0,c.jsx)(`button`,{type:`button`,"aria-label":`Copy full value: ${t}`,translate:`no`,className:e(`ring-ring/30 bg-muted/40 border-border/70 relative inline-flex min-w-0 after:absolute after:inset-x-0 after:-inset-y-3 sm:after:hidden max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]`,`hover:bg-muted/70 active:scale-[0.98] active:bg-muted/85 focus-visible:ring-[2px]`,`touch-manipulation select-none motion-reduce:transition-none motion-reduce:active:scale-100`,!f&&`cursor-copy`,d),onClick:h,onKeyDown:g}),children:_}),(0,c.jsx)(i,{hidden:!f,children:(0,c.jsx)(`p`,{translate:`no`,className:`break-all font-mono text-xs tabular-nums`,children:t})})]})}export{l as n,s as r,u as t};
@@ -1 +1 @@
1
- import{In as e,Ln as t,Wr as n,p as r}from"./sidebar-Di9SN47G.js";import{t as i}from"./link-DTEyW70e.js";import{i as a,s as o}from"./console-features-api-DEXSwFtc.js";import{b as s,x as c}from"./insights-api-BVCXJsoV.js";import{t as l}from"./list--NIee1FZ.js";import{a as u,f as d,i as f,n as p,t as m}from"./badge-DWFcDWho.js";import{i as h,r as g,t as _}from"./tabs-Xmt7tZeG.js";var v=n();function y({error:e,fallbackTitle:t}){return o(e)?(0,v.jsxs)(p,{children:[(0,v.jsx)(s,{"aria-hidden":`true`}),(0,v.jsx)(u,{children:`Insights not installed`}),(0,v.jsx)(f,{children:e.message})]}):(0,v.jsxs)(p,{variant:`destructive`,children:[(0,v.jsx)(d,{"aria-hidden":`true`}),(0,v.jsx)(u,{children:t}),(0,v.jsx)(f,{children:`Refresh to try again. If this keeps happening, check your Insights provider connection.`})]})}var b={"24h":{label:`DAU`,period:`24 hours`,interval:`hour`},"7d":{label:`WAU`,period:`7 days`,interval:`6 hours`},"30d":{label:`MAU`,period:`30 days`,interval:`day`},"12m":{label:`YAU`,period:`12 months`,interval:`week`}};function x({label:e,onPeriodChange:t,period:n,periods:r}){return(0,v.jsx)(_,{value:n,onValueChange:e=>{let n=r.find(t=>t.value===e);n&&t(n.value)},children:(0,v.jsx)(g,{"aria-label":e,className:`min-h-11 sm:min-h-9`,children:r.map(({value:e,name:t})=>(0,v.jsx)(h,{value:e,"aria-label":t,className:`min-w-12 px-3`,children:e},e))})})}var S=[`24h`,`7d`,`30d`].map(e=>({value:e,name:b[e].period})),C=Object.keys(b).map(e=>({value:e,name:b[e].period}));function w({window:e,onWindowChange:t}){return(0,v.jsx)(x,{label:`Reporting period`,onPeriodChange:t,period:e,periods:S})}function T({window:e,onWindowChange:t,twelveMonths:n=!0}){return(0,v.jsx)(x,{label:`Reporting period`,onPeriodChange:t,period:e,periods:C.filter(({value:e})=>n||e!==`12m`)})}var E=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-7000-8000-(?:000000000000|0[12][0-9a-f]{10})|00000000-0000-0000-0000-000000000000)$/iu,D=(e,t)=>e!=null&&(e===t||E.test(e));function O(){return(0,v.jsx)(m,{className:`shrink-0 font-sans font-normal`,title:`The bundle the native build shipped`,variant:`secondary`,children:`Built-in bundle`})}function k({view:n,overviewSearch:o}){let s=a(`insightsAnalytics`);return(0,v.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-3 border-b bg-background px-3 py-3 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,v.jsx)(r,{className:`-ml-1 size-11 lg:size-7`}),(0,v.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(c,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,v.jsx)(`h1`,{className:`text-sm font-medium`,children:`Insights`})]}),(0,v.jsxs)(`nav`,{"aria-label":`Insights views`,className:`ml-auto flex gap-2`,children:[s?(0,v.jsx)(i,{"aria-current":n===`overview`?`page`:void 0,className:t(e({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:n===`overview`?`secondary`:`ghost`})),search:o,to:`/insights`,children:`Overview`}):null,(0,v.jsxs)(i,{"aria-current":n===`events`?`page`:void 0,className:t(e({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:n===`events`?`secondary`:`ghost`})),to:`/installations`,children:[(0,v.jsx)(l,{"aria-hidden":`true`,"data-icon":`inline-start`}),`All events`]})]})]})}export{x as a,y as c,w as i,O as n,T as o,D as r,b as s,k as t};
1
+ import{In as e,Ln as t,Wr as n,p as r}from"./sidebar-Di9SN47G.js";import{t as i}from"./link-DTEyW70e.js";import{i as a,s as o}from"./console-features-api-DEXSwFtc.js";import{b as s,x as c}from"./insights-api-BVCXJsoV.js";import{t as l}from"./list-B6GeoQ_b.js";import{a as u,i as d,n as f,o as p,t as m}from"./badge-laIuYW1U.js";import{i as h,r as g,t as _}from"./tabs-CP3CSmtI.js";var v=n();function y({error:e,fallbackTitle:t}){return o(e)?(0,v.jsxs)(f,{children:[(0,v.jsx)(s,{"aria-hidden":`true`}),(0,v.jsx)(u,{children:`Insights not installed`}),(0,v.jsx)(d,{children:e.message})]}):(0,v.jsxs)(f,{variant:`destructive`,children:[(0,v.jsx)(p,{"aria-hidden":`true`}),(0,v.jsx)(u,{children:t}),(0,v.jsx)(d,{children:`Refresh to try again. If this keeps happening, check your Insights provider connection.`})]})}var b={"24h":{label:`DAU`,period:`24 hours`,interval:`hour`},"7d":{label:`WAU`,period:`7 days`,interval:`6 hours`},"30d":{label:`MAU`,period:`30 days`,interval:`day`},"12m":{label:`YAU`,period:`12 months`,interval:`week`}};function x({label:e,onPeriodChange:t,period:n,periods:r}){return(0,v.jsx)(_,{value:n,onValueChange:e=>{let n=r.find(t=>t.value===e);n&&t(n.value)},children:(0,v.jsx)(g,{"aria-label":e,className:`min-h-11 sm:min-h-9`,children:r.map(({value:e,name:t})=>(0,v.jsx)(h,{value:e,"aria-label":t,className:`min-w-12 px-3`,children:e},e))})})}var S=[`24h`,`7d`,`30d`].map(e=>({value:e,name:b[e].period})),C=Object.keys(b).map(e=>({value:e,name:b[e].period}));function w({window:e,onWindowChange:t}){return(0,v.jsx)(x,{label:`Reporting period`,onPeriodChange:t,period:e,periods:S})}function T({window:e,onWindowChange:t,twelveMonths:n=!0}){return(0,v.jsx)(x,{label:`Reporting period`,onPeriodChange:t,period:e,periods:C.filter(({value:e})=>n||e!==`12m`)})}var E=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-7000-8000-(?:000000000000|0[12][0-9a-f]{10})|00000000-0000-0000-0000-000000000000)$/iu,D=(e,t)=>e!=null&&(e===t||E.test(e));function O(){return(0,v.jsx)(m,{className:`shrink-0 font-sans font-normal`,title:`The bundle the native build shipped`,variant:`secondary`,children:`Built-in bundle`})}function k({view:n,overviewSearch:o}){let s=a(`insightsAnalytics`);return(0,v.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-3 border-b bg-background px-3 py-3 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,v.jsx)(r,{className:`-ml-1 size-11 lg:size-7`}),(0,v.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(c,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,v.jsx)(`h1`,{className:`text-sm font-medium`,children:`Insights`})]}),(0,v.jsxs)(`nav`,{"aria-label":`Insights views`,className:`ml-auto flex gap-2`,children:[s?(0,v.jsx)(i,{"aria-current":n===`overview`?`page`:void 0,className:t(e({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:n===`overview`?`secondary`:`ghost`})),search:o,to:`/insights`,children:`Overview`}):null,(0,v.jsxs)(i,{"aria-current":n===`events`?`page`:void 0,className:t(e({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:n===`events`?`secondary`:`ghost`})),to:`/installations`,children:[(0,v.jsx)(l,{"aria-hidden":`true`,"data-icon":`inline-start`}),`All events`]})]})]})}export{x as a,y as c,w as i,O as n,T as o,D as r,b as s,k as t};
@@ -1 +1 @@
1
- import{Wr as e}from"./sidebar-Di9SN47G.js";var t=e();function n({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701`})})}function r({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M18.4395 5.5586c-.675 1.1664-1.352 2.3318-2.0274 3.498-.0366-.0155-.0742-.0286-.1113-.043-1.8249-.6957-3.484-.8-4.42-.787-1.8551.0185-3.3544.4643-4.2597.8203-.084-.1494-1.7526-3.021-2.0215-3.4864a1.1451 1.1451 0 0 0-.1406-.1914c-.3312-.364-.9054-.4859-1.379-.203-.475.282-.7136.9361-.3886 1.5019 1.9466 3.3696-.0966-.2158 1.9473 3.3593.0172.031-.4946.2642-1.3926 1.0177C2.8987 12.176.452 14.772 0 18.9902h24c-.119-1.1108-.3686-2.099-.7461-3.0683-.7438-1.9118-1.8435-3.2928-2.7402-4.1836a12.1048 12.1048 0 0 0-2.1309-1.6875c.6594-1.122 1.312-2.2559 1.9649-3.3848.2077-.3615.1886-.7956-.0079-1.1191a1.1001 1.1001 0 0 0-.8515-.5332c-.5225-.0536-.9392.3128-1.0488.5449zm-.0391 8.461c.3944.5926.324 1.3306-.1563 1.6503-.4799.3197-1.188.0985-1.582-.4941-.3944-.5927-.324-1.3307.1563-1.6504.4727-.315 1.1812-.1086 1.582.4941zM7.207 13.5273c.4803.3197.5506 1.0577.1563 1.6504-.394.5926-1.1038.8138-1.584.4941-.48-.3197-.5503-1.0577-.1563-1.6504.4008-.6021 1.1087-.8106 1.584-.4941z`})})}function i({platform:e,className:i}){return e===`ios`?(0,t.jsx)(n,{className:i}):(0,t.jsx)(r,{className:i})}export{i as t};
1
+ import{Wr as e}from"./sidebar-Di9SN47G.js";var t=e();function n({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701`})})}function r({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M18.4395 5.5586c-.675 1.1664-1.352 2.3318-2.0274 3.498-.0366-.0155-.0742-.0286-.1113-.043-1.8249-.6957-3.484-.8-4.42-.787-1.8551.0185-3.3544.4643-4.2597.8203-.084-.1494-1.7526-3.021-2.0215-3.4864a1.1451 1.1451 0 0 0-.1406-.1914c-.3312-.364-.9054-.4859-1.379-.203-.475.282-.7136.9361-.3886 1.5019 1.9466 3.3696-.0966-.2158 1.9473 3.3593.0172.031-.4946.2642-1.3926 1.0177C2.8987 12.176.452 14.772 0 18.9902h24c-.119-1.1108-.3686-2.099-.7461-3.0683-.7438-1.9118-1.8435-3.2928-2.7402-4.1836a12.1048 12.1048 0 0 0-2.1309-1.6875c.6594-1.122 1.312-2.2559 1.9649-3.3848.2077-.3615.1886-.7956-.0079-1.1191a1.1001 1.1001 0 0 0-.8515-.5332c-.5225-.0536-.9392.3128-1.0488.5449zm-.0391 8.461c.3944.5926.324 1.3306-.1563 1.6503-.4799.3197-1.188.0985-1.582-.4941-.3944-.5927-.324-1.3307.1563-1.6504.4727-.315 1.1812-.1086 1.582.4941zM7.207 13.5273c.4803.3197.5506 1.0577.1563 1.6504-.394.5926-1.1038.8138-1.584.4941-.48-.3197-.5503-1.0577-.1563-1.6504.4008-.6021 1.1087-.8106 1.584-.4941z`})})}function i({platform:e,className:i}){return e===`ios`?(0,t.jsx)(n,{className:i}):(0,t.jsx)(r,{className:i})}function a({platform:e}){return(0,t.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,t.jsx)(i,{className:`size-4`,platform:e}),e===`ios`?`iOS`:`Android`]})}export{a as n,i as t};
@@ -0,0 +1 @@
1
+ import{$ as e,Fn as t,In as n,Ln as r,Wr as i,ii as a}from"./sidebar-Di9SN47G.js";import{t as o}from"./link-DTEyW70e.js";import{w as s}from"./TargetDisplay-CoYY8Fs4.js";import{t as c}from"./chevron-right-BoUXo82O.js";import{n as l,t as u}from"./relativeTime-DvyxGIsm.js";import{a as d,n as f,o as p,r as m,t as h}from"./table-TUtVz-2l.js";var g=i();function _({children:e}){return(0,g.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm [&_[data-slot=table-container]]:h-full [&_[data-slot=table-container]]:overflow-auto`,children:e})}function v({header:e,children:t,className:n,...i}){return(0,g.jsxs)(h,{className:r(`min-w-max`,n),...i,children:[(0,g.jsx)(d,{className:`bg-muted/40`,children:(0,g.jsx)(p,{className:`border-b border-border/60 hover:bg-transparent [&>th]:h-10 [&>th]:text-xs [&>th]:font-semibold [&>th]:uppercase [&>th]:text-muted-foreground`,children:e})}),(0,g.jsx)(f,{children:t})]})}var y=e=>t=>{t.target instanceof Element&&t.target.closest(`button, a, input, select, textarea`)||e()};function b({className:e,onOpen:t,...n}){return(0,g.jsx)(p,{onClick:y(t),onKeyDown:e=>{e.target!==e.currentTarget||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),t())},tabIndex:0,className:r(`cursor-pointer transition-[background-color,filter] hover:bg-muted/10 focus-within:bg-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none data-[state=selected]:bg-muted/15 [&>td]:py-3`,e),...n})}function x({columns:t,label:n}){return Array.from({length:7},(r,i)=>(0,g.jsx)(p,{children:(0,g.jsxs)(m,{colSpan:t,children:[i===0&&n?(0,g.jsx)(`span`,{className:`sr-only`,children:n}):null,(0,g.jsx)(e,{className:`h-8 w-full`})]})},i))}function S({columns:e,className:t,children:n}){return(0,g.jsx)(p,{children:(0,g.jsx)(m,{className:r(`h-44 text-center text-muted-foreground`,t),colSpan:e,children:n})})}function C({icon:e,title:t,children:n}){return(0,g.jsxs)(`div`,{className:`mx-auto flex max-w-sm flex-col items-center gap-2 whitespace-normal text-center text-sm text-muted-foreground`,children:[(0,g.jsx)(e,{"aria-hidden":`true`,className:`size-5`}),(0,g.jsx)(`p`,{className:`font-medium text-foreground`,children:t}),n]})}function w({children:e}){return(0,g.jsx)(`div`,{className:`p-8`,children:e})}function T({label:t}){return(0,g.jsxs)(`div`,{className:`flex flex-col gap-3 p-4`,children:[t?(0,g.jsx)(`span`,{className:`sr-only`,children:t}):null,Array.from({length:5},(t,n)=>(0,g.jsx)(e,{className:`h-44 w-full`},n))]})}function E({className:e,...t}){return(0,g.jsx)(`article`,{className:r(`flex cursor-pointer touch-manipulation flex-col gap-4 border-b p-4 transition-[background-color,filter] last:border-b-0 hover:bg-muted/10 active:bg-muted/20 motion-reduce:transition-none data-[state=selected]:bg-muted/15`,e),...t})}function D({count:e,label:r,pending:i=!1,newest:a,previous:l,next:u}){return(0,g.jsxs)(`nav`,{"aria-label":r,className:`flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between`,children:[(0,g.jsxs)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:[(0,g.jsx)(`span`,{className:`text-foreground`,children:e}),` `,e===1?`entry`:`entries`,`, newest first`]}),(0,g.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 sm:justify-end`,children:[a&&!i?(0,g.jsx)(o,{className:n({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`ghost`}),search:a.search,to:a.to,children:`Newest`}):null,l&&!i?(0,g.jsxs)(o,{className:n({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:l.search,to:l.to,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}):(0,g.jsxs)(t,{className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}),u&&!i?(0,g.jsxs)(o,{className:n({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:u.search,to:u.to,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]}):(0,g.jsxs)(t,{className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]})]})]})}var O=a(l(),1),k=a(u(),1);O.default.extend(k.default);function A({ms:e,withDate:t=!1}){let n=(0,O.default)(e),r=n.format(`YYYY-MM-DD HH:mm:ss`);return(0,g.jsxs)(`time`,{className:`flex flex-col whitespace-nowrap tabular-nums`,dateTime:n.toISOString(),title:r,children:[(0,g.jsx)(`span`,{children:n.fromNow()}),t?(0,g.jsx)(`span`,{className:`text-muted-foreground`,children:r}):null]})}export{v as a,S as c,x as d,y as f,w as i,D as l,E as n,C as o,T as r,_ as s,A as t,b as u};
@@ -0,0 +1 @@
1
+ import{Ln as e,Wr as t,ii as n,ir as r}from"./sidebar-Di9SN47G.js";import{o as i,t as a}from"./badge-laIuYW1U.js";import{t as o}from"./uuidv7-cI6C63Fm.js";import{n as s,t as c}from"./relativeTime-DvyxGIsm.js";var l=r(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),u=n(s(),1),d=n(c(),1),f=t();u.default.extend(d.default);function p({uuid:e,format:t=`relative`}){let n=(0,u.default)(o(e));return t===`relative`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,f.jsxs)(`div`,{className:`flex flex-col`,children:[(0,f.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,f.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}var m=e=>{let t=e.trim();if(t.startsWith(`git@`)){let e=t.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(e)return`https://${e[1]}/${e[2]}`}if(t.startsWith(`ssh://`))try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`.replace(/\/+$/,``).replace(/\.git$/,``)}catch{return t.replace(/\/+$/,``).replace(/\.git$/,``)}return t.replace(/\/+$/,``).replace(/\.git$/,``)},h=(e,t)=>{if(!e?.trim())return null;let n=m(e);try{let{hostname:e}=new URL(n);if(e.includes(`gitlab`))return`${n}/-/commit/${t}`;if(e.includes(`bitbucket`))return`${n}/commits/${t}`}catch{}return`${n}/commit/${t}`};function g({percentage:t,className:n}){let r=t<100,o=t.toFixed(1);return(0,f.jsxs)(a,{className:e(`gap-1`,n),variant:r?`secondary`:`default`,children:[r?(0,f.jsx)(i,{className:`h-3 w-3`}):null,o,`%`]})}export{l as i,h as n,p as r,g as t};
@@ -0,0 +1 @@
1
+ import{Wr as e,ii as t,ir as n}from"./sidebar-Di9SN47G.js";import{t as r}from"./badge-laIuYW1U.js";import{n as i,t as a}from"./relativeTime-DvyxGIsm.js";var o=n(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),s=t(i(),1),c=t(a(),1),l=e();s.default.extend(c.default);var u={testflight:`TestFlight`,"play-internal":`Play internal`},d=e=>e.submitted_to!==null&&e.submitted_to!==void 0;function f({ms:e}){if(e===null)return null;let t=(0,s.default)(e);return(0,l.jsx)(`time`,{className:`text-xs text-muted-foreground`,dateTime:t.toISOString(),title:t.format(`YYYY-MM-DD HH:mm:ss`),children:t.fromNow()})}var p=e=>{let t=`Submitted to ${u[e.submitted_to]}`;if(e.submitted_at_ms===null)return t;let n=(0,s.default)(e.submitted_at_ms);return`${t} ${n.fromNow()}, ${n.format(`YYYY-MM-DD HH:mm:ss`)}`};function m({build:e,withTime:t=!1}){return d(e)?(0,l.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-1.5`,children:[(0,l.jsxs)(r,{className:`gap-1`,title:p(e),variant:`secondary`,children:[(0,l.jsx)(o,{"aria-hidden":`true`,className:`size-3`}),u[e.submitted_to],e.submitted_version?(0,l.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.submitted_version}):null]}),t?(0,l.jsx)(f,{ms:e.submitted_at_ms}):null]}):null}export{d as n,m as t};
@@ -0,0 +1 @@
1
+ import{Fn as e,Ln as t,Wr as n,ir as r}from"./sidebar-Di9SN47G.js";import{t as i}from"./copy-DsuLj3oj.js";import{t as a}from"./HashValueDisplay-MoZMmTeP.js";import{t as o}from"./key-round-DzBe6DHr.js";import{t as s}from"./package-ytYrywZH.js";import{t as c}from"./badge-laIuYW1U.js";import{n as l}from"./dist-Bf1BPKMs.js";import{f as u,p as d}from"./uuidv7-cI6C63Fm.js";var f=r(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),p=r(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),m=n(),h=new Set([`production`,`staging`,`dev`]);function g({channel:e,className:n}){let r=e.toLowerCase();return(0,m.jsx)(c,{variant:`outline`,translate:`no`,"data-channel":h.has(r)?r:void 0,className:t(`border-channel-other/20 bg-channel-other/10 text-channel-other`,`data-[channel=production]:border-channel-production/20 data-[channel=production]:bg-channel-production/10 data-[channel=production]:text-channel-production`,`data-[channel=staging]:border-channel-staging/20 data-[channel=staging]:bg-channel-staging/10 data-[channel=staging]:text-channel-staging`,`data-[channel=dev]:border-channel-dev/20 data-[channel=dev]:bg-channel-dev/10 data-[channel=dev]:text-channel-dev`,n),children:e})}function _({label:t,value:n,wrap:r=!1}){let a=async()=>{try{await navigator.clipboard.writeText(n),l.success(`Copied to clipboard`)}catch{l.error(`Could not copy ${t}`)}};return(0,m.jsxs)(`div`,{className:`flex w-full min-w-0 items-center gap-2 rounded-md border bg-muted/40 py-1 pr-1 pl-3`,children:[(0,m.jsx)(`code`,{className:r?`min-w-0 flex-1 text-left font-mono text-xs whitespace-normal sm:whitespace-nowrap`:`min-w-0 flex-1 overflow-x-auto text-left font-mono text-xs whitespace-nowrap`,children:n}),(0,m.jsx)(e,{"aria-label":`Copy ${t}`,className:`size-11 sm:size-7`,onClick:()=>void a(),size:`icon-sm`,variant:`ghost`,children:(0,m.jsx)(i,{"aria-hidden":`true`})})]})}var v=e=>/^[\w@%+=:,./-]+$/.test(e)?e:`'${e.replaceAll(`'`,`'\\''`)}'`,y={apk:{label:`APK`,installs:`Android device or emulator`},aab:{label:`AAB`,installs:`Google Play or bundletool`},app:{label:`Simulator app`,installs:`iOS Simulator`},ipa:{label:`IPA`,installs:`registered iOS devices`}},b=e=>e===`ios`?`iOS`:`Android`,x=e=>{let t=e.submitted_version??[e.app_version,e.build_number===null?null:`(${e.build_number})`].filter(e=>e!==null).join(` `);return t===``?null:`${b(e.platform)} ${t}`},S=e=>`/api/native-builds/${encodeURIComponent(e)}/download`,C=(e,t,n)=>`${e.origin}${w(e,t)}${S(t)}?t=${encodeURIComponent(n)}`,w=(e,t)=>{let n=T(t);return e.pathname.endsWith(n)?e.pathname.slice(0,-n.length):``},T=e=>`/native-builds/${encodeURIComponent(e)}`,E=3600*1e3,D=`hot-updater-ios-udid`,O=/^(?:[0-9a-f]{40}|[0-9a-f]{8}-[0-9a-f]{16})$/iu,k=e=>`/_hot-updater/native-builds/${encodeURIComponent(e)}/device.mobileconfig`,A=e=>`/_hot-updater/native-builds/${encodeURIComponent(e)}/manifest.plist`,j=e=>`npx hot-updater native-build devices add --udid ${e} --name "Teammate's iPhone"`,M=(e,t,n)=>{let r=`${e.origin}${w(e,t)}${A(t)}?t=${encodeURIComponent(n)}`;return`itms-services://?action=download-manifest&url=${encodeURIComponent(r)}`},N=e=>d(e.channel_id.slice(8)),P=e=>{if(e.fingerprintHash!==null)return{platform:e.platform,channel:e.channel,fingerprintHash:e.fingerprintHash,appVersion:null};let t=e.targetAppVersion;return t===null||u(t)!==t?null:{platform:e.platform,channel:e.channel,fingerprintHash:null,appVersion:t}},F=e=>{let t=(e.artifact_storage_uri.split(/[?#]/,1)[0]??``).split(`/`).at(-1)??``;try{return decodeURIComponent(t)}catch{return t}},I=[`B`,`KB`,`MB`,`GB`],L=e=>{let t=e,n=0;for(;t>=1024&&n<I.length-1;)t/=1024,n+=1;return`${n===0?t:t.toFixed(1)} ${I[n]}`},R=e=>`npx hot-updater native-build install ${v(e.id)}`;function z({icon:e,value:t,display:n}){return(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(e,{className:`size-4 shrink-0 text-muted-foreground`}),(0,m.jsx)(a,{display:n,maxLength:12,value:t})]})}function B(){return(0,m.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}function V({appVersion:e,fingerprintHash:t}){return e?(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(s,{className:`size-4 shrink-0 text-muted-foreground`}),(0,m.jsx)(`span`,{className:`font-medium`,children:e})]}):t?(0,m.jsx)(z,{icon:p,value:t}):(0,m.jsx)(B,{})}function H({value:e}){return e?(0,m.jsx)(z,{display:e.replace(/^nbk1:/,``),icon:o,value:e}):(0,m.jsx)(B,{})}export{g as C,_ as S,x as _,D as a,P as b,L as c,j as d,k as f,M as g,R as h,O as i,y as l,F as m,B as n,E as o,S as p,V as r,w as s,H as t,N as u,C as v,f as w,v as x,b as y};
@@ -0,0 +1 @@
1
+ import{Gr as e,Vr as t,ar as n,nr as r,zr as i}from"./sidebar-Di9SN47G.js";import{t as a}from"./useMutation-DbYw7boA.js";var o=t({method:`GET`}).middleware([r]).handler(e(`206547cb1526f961070a989818ca7b9e34f6b2b0e4ab851698c3807fe9fb5e0c`)),s=t({method:`GET`}).middleware([r]).handler(e(`a6f23116eeaf76166d405e28a95213123025613c6603030894e519015bf48032`)),c=t({method:`POST`}).middleware([r]).handler(e(`7ea0186f19f9f2bc2ca4b26e3c59636891cf046957f84287b6783f8d88bd8cb7`)),l=t({method:`POST`}).middleware([r]).handler(e(`b46c95dba95a6a3e8fa5c9d100e3622fa5ae7af4f38e10fb1ed2fa48289a3a8f`)),u=t({method:`POST`}).middleware([r]).handler(e(`d5b58722ce514e3b63a377f736b4823c2011782495442ae4870ed547e392c70b`)),d=t({method:`POST`}).middleware([r]).handler(e(`956539a300d79a7efa191c1cc2d529d62fc4bfd940442548fdbc1404e0d53078`)),f=t({method:`GET`}).middleware([r]).handler(e(`e8c24b7247936f045a145ffd5c177fd0e3df3b52769d67dfbd8d1de491d66396`)),p=t().middleware([r]).handler(e(`51a34c05479a893c7d320bd4cd1604427289d667698c48b9f30a01aabf8a5e68`)),m=t().middleware([r]).handler(e(`79ada05964de8f2123bfcd62b10097d59bf8fd689ef5c7161031e5871d8396c5`)),h=t({method:`POST`}).middleware([r]).handler(e(`2b9b8d1f49f79a511589617d8d4bfc6094a3acf5264f33651b9569ba66d3f321`)),g=t({method:`POST`}).middleware([r]).handler(e(`52756dde414919a906bfe83d1ab6d29910c63bcafdb47653d6f1df562d958920`)),_=t({method:`GET`}).middleware([r]).handler(e(`1bd85c2a50e24785cb6abb023a247a9f048f37ddfa85cbb1c57e579563bad013`)),v=t({method:`GET`}).middleware([r]).handler(e(`4370f1bf70b91f1168d85379d3008449a1bedb915e9878ca4ef89d5f3a80fa7f`)),y=t({method:`GET`}).middleware([r]).handler(e(`4ca367070b00f58179a572f0bb8196a4ccdd3881e9b1dbfe33deee0cb6e1f549`)),b=t({method:`GET`}).middleware([r]).handler(e(`17a54fe7c5ad6ca53457914b1d02b3d6887811aa6b5fa6598a1ee107796ce8f0`)),x=t({method:`GET`}).middleware([r]).handler(e(`c101ad0315790cf226f182906274176b64a93b9bf5b410cacec5067208c70a04`)),S=t({method:`GET`}).middleware([r]).handler(e(`2e3fab89483b2e4fea0c2f996071b2dbb15b8bc072e7dae78c75a9a9d854d5b9`)),C=t({method:`GET`}).middleware([r]).handler(e(`868ce85f0b63ad138a1f82a573d1d6b12f80c7ca44aefec3dadf01b5fa7db86c`)),w=t({method:`POST`}).middleware([r]).handler(e(`a6c8cfa907e2f75bf69aa90044bd52a3ee684d1a0462d23781161a1a3531aa33`)),T=t({method:`GET`}).middleware([r]).handler(e(`936ef8582ff49d97077d1d80e8403d0b4106831c955591c5c471a88f96007fe9`)),E=t({method:`POST`}).middleware([r]).handler(e(`c6ff40bd8faad0b2d7aba3e94179c18e02a918a76bff25849d771ff31f688208`)),D=t({method:`POST`}).middleware([r]).handler(e(`67cea9f69773d83e69e68e20b81116a2bee9ee4ab3e378698ff74149f1d59ad0`)),O=[`releases`],k={config:[`config`],channels:[`channels`],releases:{all:O,list:e=>[...O,e??{}]},release:e=>[`release`,e],releaseCatalog:e=>[`release-catalog`,e],bundleChildren:{all:[`bundle-children`],list:e=>[`bundle-children`,e],counts:e=>[`bundle-children`,`counts`,...e]},bundle:e=>[`bundle`,e],nativeBuilds:{all:[`native-builds`],list:e=>[`native-builds`,e]},nativeBuild:e=>[`native-build`,e],nativeBuildPatches:(e,t)=>[`native-build-patches`,e,t],nativeBuildDownloadUrl:e=>[`native-build-download-url`,e],nativeBuildDownloadLink:e=>[`native-build-download-link`,e],nativeBuildInstallEligibility:(e,t)=>[`native-build-install-eligibility`,e,t],releaseNativeBuild:e=>[`release-native-build`,e]},ee=6e4,A=1440*60*1e3,j=1800*1e3;function M(){return n({queryKey:k.config,queryFn:()=>p(),staleTime:1/0})}function N(){return n({queryKey:k.channels,queryFn:()=>m(),staleTime:1/0})}function P(e){return n({queryKey:k.releases.list(e),queryFn:()=>o({data:e}),placeholderData:e=>e})}function F(e){return n({enabled:e.length>0,queryFn:()=>s({data:{releaseId:e}}),queryKey:k.release(e)})}function I(e){return n({enabled:e.length>0,queryFn:()=>f({data:{scopeKey:e}}),queryKey:k.releaseCatalog(e)})}function L(e){return n({queryKey:k.bundle(e),queryFn:()=>_({data:{bundleId:e}}),staleTime:1/0,enabled:!!e})}function R(e){return n({queryKey:k.bundleChildren.list(e),queryFn:()=>v({data:{baseBundleId:e}}),staleTime:1/0,enabled:!!e})}function z(e){let t=[...e].sort((e,t)=>e.localeCompare(t));return n({queryKey:k.bundleChildren.counts(t),queryFn:()=>y({data:{bundleIds:t}}),staleTime:1/0,enabled:t.length>0})}function B(e){return n({queryKey:k.nativeBuilds.list(e),queryFn:()=>b({data:e}),placeholderData:e=>e,staleTime:6e4})}function V(e){return n({queryKey:k.nativeBuild(e),queryFn:()=>x({data:{id:e}}),enabled:e.length>0})}function H(e,t,r){return n({queryKey:k.nativeBuildPatches(e,t),queryFn:()=>S({data:{minBundleId:e,...t}}),enabled:r&&e.length>0,placeholderData:e=>e})}function U(e){return n({queryKey:k.releaseNativeBuild(e??{platform:`ios`,channel:``,fingerprintHash:null,targetAppVersion:null}),queryFn:()=>C({data:e}),enabled:e!==null,staleTime:6e4})}function W(e){return n({queryKey:k.nativeBuildDownloadLink(e),queryFn:()=>E({data:{id:e}}),staleTime:A})}function G(e,t){return n({queryKey:k.nativeBuildInstallEligibility(e,t),queryFn:()=>D({data:{id:e,...t===null?{}:{udid:t}}}),staleTime:j,refetchInterval:j})}function K(e){return n({queryKey:k.nativeBuildDownloadUrl(e),queryFn:()=>T({data:{id:e}}),staleTime:ee})}function q(){let e=i();return a({mutationFn:e=>h({data:e}).then(e=>e.data),onSuccess:async()=>{await e.invalidateQueries({queryKey:k.channels})}})}function J(){let e=i();return a({mutationFn:e=>g({data:e}).then(e=>e.data),onSettled:async()=>{await e.invalidateQueries({queryKey:k.channels})}})}function Y(){let e=i();return a({mutationFn:e=>w({data:e}),onSettled:async()=>{await Promise.all([e.invalidateQueries({queryKey:[`native-build`]}),e.invalidateQueries({queryKey:k.nativeBuilds.all}),e.invalidateQueries({queryKey:[`release-native-build`]})])}})}function X(){let e=i();return a({mutationFn:e=>c({data:e}),onSuccess:async(t,n)=>{await Promise.all([e.invalidateQueries({queryKey:k.releases.all}),e.invalidateQueries({queryKey:k.release(n.releaseId)}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:k.channels})])}})}function Z(){return a({mutationFn:e=>l({data:e})})}function Q(){let e=i();return a({mutationFn:e=>u({data:e}),onSuccess:async(t,n)=>{e.removeQueries({queryKey:k.release(n.releaseId)}),await Promise.all([e.invalidateQueries({queryKey:k.releases.all}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:k.channels}),e.invalidateQueries({queryKey:[`bundle`]}),e.invalidateQueries({queryKey:k.bundleChildren.all})])}})}function $(){let e=i();return a({mutationFn:e=>d({data:e}),onSuccess:async()=>{await Promise.all([e.invalidateQueries({queryKey:k.releases.all}),e.invalidateQueries({queryKey:[`release`]}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:k.channels})])}})}export{X as S,$ as _,M as a,F as b,Q as c,W as d,K as f,Z as g,B as h,N as i,Y as l,H as m,R as n,q as o,G as p,L as r,J as s,z as t,V as u,I as v,P as x,U as y};
@@ -0,0 +1 @@
1
+ import{$ as e,Fn as t,Gr as n,Vr as r,Wr as i,Z as a,ar as o,ii as s,ir as c,nr as l,p as u,ti as d,zr as f}from"./sidebar-Di9SN47G.js";import{t as p}from"./useMutation-DbYw7boA.js";import{t as ee}from"./check-CXVR3s3X.js";import{t as te}from"./clipboard-DQbOcrL7.js";import{t as m}from"./key-round-DzBe6DHr.js";import{n as h,t as ne}from"./plus-BVhOauU3.js";import{t as g}from"./refresh-cw-C-tvoCcE.js";import{a as _,i as re,n as v,o as y,r as ie,t as ae}from"./badge-laIuYW1U.js";import{n as b}from"./dist-Bf1BPKMs.js";import{a as oe,n as se,o as x,t as S}from"./card-ulgg5xHn.js";import{a as C,c as w,i as T,l as E,n as D,o as O,r as k,s as A,t as j,u as M}from"./alert-dialog-DiRLrFVe.js";import{a as N,i as P,n as F,o as I,r as L,t as R}from"./dialog-CLIaC82_.js";import{a as z,i as B,n as V,r as H,t as U}from"./field-q4sTYzNU.js";import{a as W,i as G,n as K,o as q,r as J,t as ce}from"./table-TUtVz-2l.js";var Y=c(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),X=s(d(),1),le=r({method:`GET`}).middleware([l]).handler(n(`2c7f3cdb9bd3cab2c026a48abdc84c362db0362924a08679052a325640aec56b`)),ue=r({method:`POST`}).middleware([l]).handler(n(`68a2d94ee016be64936401f5eba60ab08a47ff373e1cf9de48e4413336e6034b`)),de=r({method:`POST`}).middleware([l]).handler(n(`a1cb80b19ca72a64fb631ca28ebb9b6941db245983de082d5dd3203ec2eef795`)),Z={list:[`api-keys`,`list`]},fe=()=>o({queryKey:Z.list,queryFn:()=>le()}),Q=()=>{let e=f();return p({mutationFn:e=>ue({data:{name:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Z.list})}})},pe=()=>{let e=f();return p({mutationFn:e=>de({data:{id:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Z.list})}})},$=i(),me=e=>new Date(e).toISOString().slice(0,10);function he(){let[e,n]=(0,X.useState)(!1),[r,i]=(0,X.useState)(``),[o,s]=(0,X.useState)(null),c=Q(),l=r.trim(),u=l.length>64?`Name must be 64 characters or fewer.`:null,d=()=>{i(``),s(null),c.reset()},f=e=>{n(e),e||d()};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(t,{onClick:()=>n(!0),children:[(0,$.jsx)(ne,{"data-icon":`inline-start`}),`Create API key`]}),(0,$.jsx)(R,{open:e,onOpenChange:f,children:(0,$.jsxs)(F,{showCloseButton:o===null,children:[(0,$.jsxs)(N,{children:[(0,$.jsx)(I,{children:o===null?`Create API key`:`Save your API key`}),(0,$.jsx)(L,{children:o===null?`Name the app or environment that will use this key.`:`This key is shown once. Store it securely before closing.`})]}),o===null?(0,$.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!(l.length===0||u!==null))try{s((await c.mutateAsync(l)).apiKey),b.success(`API key created`)}catch(e){b.error(e instanceof Error?e.message:`Unable to create API key`)}},children:[(0,$.jsx)(B,{children:(0,$.jsxs)(U,{"data-invalid":u!==null||void 0,children:[(0,$.jsx)(z,{htmlFor:`api-key-name`,children:`Name`}),(0,$.jsx)(a,{id:`api-key-name`,autoComplete:`off`,maxLength:65,onChange:e=>i(e.target.value),placeholder:`Production app`,value:r}),(0,$.jsx)(V,{children:`Use a name you can identify before revoking the key.`}),(0,$.jsx)(H,{children:u})]})}),(0,$.jsx)(P,{className:`mt-4`,children:(0,$.jsxs)(t,{disabled:c.isPending||l.length===0||u!==null,type:`submit`,children:[c.isPending?(0,$.jsx)(h,{"data-icon":`inline-start`,className:`animate-spin`}):(0,$.jsx)(m,{"data-icon":`inline-start`}),`Create API key`]})})]}):(0,$.jsxs)(B,{children:[(0,$.jsxs)(U,{children:[(0,$.jsx)(z,{htmlFor:`created-api-key`,children:`API key`}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(a,{id:`created-api-key`,className:`font-mono`,readOnly:!0,value:o}),(0,$.jsxs)(t,{onClick:async()=>{if(o!==null)try{await navigator.clipboard.writeText(o),b.success(`API key copied`)}catch{b.error(`Unable to copy API key`)}},type:`button`,variant:`outline`,children:[(0,$.jsx)(te,{"data-icon":`inline-start`}),`Copy`]})]})]}),(0,$.jsx)(P,{children:(0,$.jsxs)(t,{onClick:()=>f(!1),children:[(0,$.jsx)(ee,{"data-icon":`inline-start`}),`Done`]})})]})]})})]})}function ge({record:e}){let[n,r]=(0,X.useState)(!1),i=pe(),a=async t=>{t.preventDefault();try{await i.mutateAsync(e.id),r(!1),b.success(`API key revoked`)}catch(e){b.error(e instanceof Error?e.message:`Unable to revoke API key`)}};return(0,$.jsxs)(j,{open:n,onOpenChange:e=>{i.isPending||r(e)},children:[(0,$.jsxs)(M,{render:(0,$.jsx)(t,{size:`sm`,variant:`ghost`}),children:[(0,$.jsx)(Y,{"data-icon":`inline-start`}),`Revoke`]}),(0,$.jsxs)(T,{children:[(0,$.jsxs)(A,{children:[(0,$.jsx)(w,{children:(0,$.jsx)(Y,{})}),(0,$.jsxs)(E,{children:[`Revoke `,e.name,`?`]}),(0,$.jsxs)(C,{children:[`Apps using `,e.prefix,`… will immediately lose OTA update and insights access. This action cannot be undone.`]})]}),(0,$.jsxs)(O,{children:[(0,$.jsx)(k,{disabled:i.isPending,children:`Cancel`}),(0,$.jsx)(D,{disabled:i.isPending,onClick:e=>void a(e),variant:`destructive`,children:`Revoke API key`})]})]})]})}function _e(){let n=fe();return(0,$.jsxs)(S,{className:`overflow-hidden shadow-sm`,children:[(0,$.jsxs)(oe,{className:`flex-row items-center justify-between space-y-0 border-b px-4 py-3`,children:[(0,$.jsx)(x,{className:`text-sm`,children:(0,$.jsx)(`h2`,{children:`API keys`})}),(0,$.jsx)(he,{})]}),(0,$.jsx)(se,{className:`p-0`,children:n.isError?(0,$.jsx)(`div`,{className:`p-4`,children:(0,$.jsxs)(v,{variant:`destructive`,children:[(0,$.jsx)(y,{}),(0,$.jsx)(_,{children:`API keys couldn't be loaded`}),(0,$.jsx)(re,{children:`Check your connection and try again.`}),(0,$.jsx)(ie,{children:(0,$.jsxs)(t,{onClick:()=>void n.refetch(),size:`xs`,variant:`outline`,children:[(0,$.jsx)(g,{"data-icon":`inline-start`}),`Retry`]})})]})}):(0,$.jsxs)(ce,{"aria-label":`API keys`,className:`table-fixed`,children:[(0,$.jsx)(W,{children:(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:`Key`}),(0,$.jsx)(G,{className:`w-32`,children:`Created`}),(0,$.jsx)(G,{className:`w-24 text-right`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(K,{children:n.isLoading?Array.from({length:3},(t,n)=>(0,$.jsxs)(q,{children:[(0,$.jsxs)(J,{className:`space-y-2 py-3`,children:[n===0?(0,$.jsx)(`span`,{className:`sr-only`,children:`Loading API keys`}):null,(0,$.jsx)(e,{className:`h-3.5 w-32`}),(0,$.jsx)(e,{className:`h-3 w-20`})]}),(0,$.jsx)(J,{children:(0,$.jsx)(e,{className:`h-3.5 w-20`})}),(0,$.jsx)(J,{children:(0,$.jsx)(e,{className:`ml-auto h-6 w-16`})})]},n)):n.data?.length===0?(0,$.jsx)(q,{children:(0,$.jsx)(J,{colSpan:3,className:`h-40 text-center text-muted-foreground`,children:(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-xs flex-col items-center gap-2`,children:[(0,$.jsx)(m,{className:`size-5`}),(0,$.jsx)(`p`,{className:`font-medium text-foreground`,children:`No API keys`}),(0,$.jsx)(`p`,{children:`Create an API key to connect an app.`})]})})}):n.data?.map(e=>(0,$.jsxs)(q,{className:e.revoked_at_ms===null?void 0:`text-muted-foreground`,children:[(0,$.jsx)(J,{className:`whitespace-normal py-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`p`,{className:`break-words font-medium text-foreground`,children:e.name}),(0,$.jsxs)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:[e.prefix,`…`]})]})}),(0,$.jsx)(J,{className:`text-xs text-muted-foreground`,children:(0,$.jsx)(`time`,{dateTime:new Date(e.created_at_ms).toISOString(),children:me(e.created_at_ms)})}),(0,$.jsx)(J,{className:`text-right`,children:e.revoked_at_ms===null?(0,$.jsx)(ge,{record:e}):(0,$.jsx)(ae,{variant:`outline`,children:`Revoked`})})]},e.id))})]})})]})}function ve(){return(0,$.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,$.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,$.jsx)(u,{className:`-ml-1`}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(m,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,$.jsx)(`h1`,{className:`text-sm font-medium`,children:`API keys`})]}),(0,$.jsx)(`p`,{className:`basis-full pl-9 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`API keys can download OTA updates and submit insights only.`})]}),(0,$.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,$.jsx)(`div`,{className:`mx-auto w-full max-w-5xl`,children:(0,$.jsx)(_e,{})})})]})}export{ve as component};
@@ -0,0 +1 @@
1
+ import{t as e}from"./ConsoleFeatureUnavailable-DUqlpHCp.js";var t=e;export{t as notFoundComponent};
@@ -0,0 +1 @@
1
+ import{Ln as e,Q as t,Rn as n,Wr as r,Yn as i,ir as a,ti as o}from"./sidebar-Di9SN47G.js";var s=a(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);o();var c=r(),l=n(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function u({className:t,variant:n,...r}){return(0,c.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:e(l({variant:n}),t),...r})}function d({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`alert-title`,className:e(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t),...n})}function f({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`alert-description`,className:e(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,t),...n})}function p({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`alert-action`,className:e(`absolute top-1.5 right-2`,t),...n})}var m=n(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,success:`border-success/20 bg-success/10 text-success`,warning:`border-warning/20 bg-warning/10 text-warning`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function h({className:n,variant:r=`default`,render:a,...o}){return t({defaultTagName:`span`,props:i({className:e(m({variant:r}),n)},o),render:a,state:{slot:`badge`,variant:r}})}export{d as a,f as i,u as n,s as o,p as r,h as t};
@@ -0,0 +1 @@
1
+ import{Ln as e,Wr as t,ti as n}from"./sidebar-Di9SN47G.js";n();var r=t();function i({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card`,className:e(`rounded-xl border bg-card text-card-foreground shadow`,t),...n})}function a({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:e(`flex flex-col gap-1.5 p-6`,t),...n})}function o({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-title`,className:e(`font-semibold leading-none tracking-tight`,t),...n})}function s({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:e(`text-sm text-muted-foreground`,t),...n})}function c({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:e(`p-6 pt-0`,t),...n})}function l({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:e(`flex items-center p-6 pt-0`,t),...n})}export{a,l as i,c as n,o,s as r,i as t};