@hot-updater/console 1.2.0-rc.13 → 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 (186) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{-native-builds-search-DC2PutLU.js → -native-builds-search-OlRj4Jz0.js} +1 -1
  3. package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +1 -0
  4. package/.output/public/assets/{ConsoleFeatureUnavailable-oMmbaqF6.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-q2FgL8xS.js → InsightsPageHeader-CSas9gM0.js} +1 -1
  8. package/.output/public/assets/{PlatformIcon-DCTtCP5t.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-keys-3IL4dIHe.js +1 -0
  14. package/.output/public/assets/api-keys-4w2-ofii.js +1 -0
  15. package/.output/public/assets/badge-laIuYW1U.js +1 -0
  16. package/.output/public/assets/card-ulgg5xHn.js +1 -0
  17. package/.output/public/assets/{index-t0CToN0S.js → index-Cde2QQJq.js} +3 -3
  18. package/.output/public/assets/insights-0TUItqwh.js +1 -0
  19. package/.output/public/assets/insights-DDRfERph.js +2 -0
  20. package/.output/public/assets/insights-_6iMn8GR.js +42 -0
  21. package/.output/public/assets/{insights-search-B5cZsP6C.js → insights-search-CYPrQVUC.js} +1 -1
  22. package/.output/public/assets/{insights-usage-rpc-zut_JaSS.js → insights-usage-rpc-BbFllvi_.js} +1 -1
  23. package/.output/public/assets/insights_.distribution-AZcfvK7x.js +1 -0
  24. package/.output/public/assets/insights_.distribution-BGAqgPi0.js +1 -0
  25. package/.output/public/assets/insights_.distribution-CjYkDRA4.js +2 -0
  26. package/.output/public/assets/installations-Ap2G2tDs.js +1 -0
  27. package/.output/public/assets/{installations-BRS-vuRJ.js → installations-CSZfo1rG.js} +2 -2
  28. package/.output/public/assets/installations-CwQYwQ6K.js +1 -0
  29. package/.output/public/assets/native-builds-cT9Ha-jZ.js +1 -0
  30. package/.output/public/assets/native-builds-v5wez34c.js +2 -0
  31. package/.output/public/assets/native-builds_._buildId-BBwE8Pcc.js +2 -0
  32. package/.output/public/assets/native-builds_._buildId-DZPcR_up.js +1 -0
  33. package/.output/public/assets/package-ytYrywZH.js +1 -0
  34. package/.output/public/assets/remote-config-CIAEArwq.js +1 -0
  35. package/.output/public/assets/{remote-config-DQguWTMa.js → remote-config-Dwdc-sij.js} +1 -1
  36. package/.output/public/assets/remote-config-ZJ_IRSKE.js +6 -0
  37. package/.output/public/assets/routes-BUWLcUqW.js +1 -0
  38. package/.output/public/assets/routes-Rtz-KcQO.js +2 -0
  39. package/.output/public/assets/styles-bNNic0NS.css +2 -0
  40. package/.output/public/assets/valueToPercent-B6X9rUJM.js +1 -0
  41. package/.output/server/{__23tanstack-start-server-fn-resolver-DI0OnlQe.mjs → __23tanstack-start-server-fn-resolver-BD3yIgQW.mjs} +49 -49
  42. package/.output/server/_libs/_.mjs +1 -1
  43. package/.output/server/_libs/lucide-react.mjs +1 -27
  44. package/.output/server/_ssr/{BundleIdDisplay-SAvC-NlE.mjs → BundleIdDisplay-Di0dxxxD.mjs} +2 -2
  45. package/.output/server/_ssr/{ConsoleFeatureUnavailable-BgHEoZ36.mjs → ConsoleFeatureUnavailable-BJM23Zg6.mjs} +6 -6
  46. package/.output/server/_ssr/{EventDetails-VaS25yjE.mjs → EventDetails-BatEDlOf.mjs} +7 -7
  47. package/.output/server/_ssr/{HashValueDisplay-BGc-x_l8.mjs → HashValueDisplay-DoVLNSRc.mjs} +6 -6
  48. package/.output/server/_ssr/{InsightsPageHeader-gMuNJt-f.mjs → InsightsPageHeader--Lsgjvy7.mjs} +6 -6
  49. package/.output/server/_ssr/{NotFoundPage-DsRI-J4h.mjs → NotFoundPage-DsX6EelI.mjs} +2 -2
  50. package/.output/server/_ssr/{PlatformIcon-BsU0d0jN.mjs → PlatformIcon-Cuhy0CIO.mjs} +12 -2
  51. package/.output/server/_ssr/RelativeTime-BVQMmkQi.mjs +209 -0
  52. package/.output/server/_ssr/{git-WSg7LY17.mjs → RolloutPercentageBadge-B5_ASwiR.mjs} +18 -2
  53. package/.output/server/_ssr/StoreSubmission-B-oliflh.mjs +65 -0
  54. package/.output/server/_ssr/TargetDisplay-Zy7Xom4-.mjs +100 -0
  55. package/.output/server/_ssr/{alert-dialog-lury59vV.mjs → alert-dialog-C4wLRSPA.mjs} +1 -1
  56. package/.output/server/_ssr/{api-BQ8ztUgU.mjs → api-B9fz7k5l.mjs} +4 -4
  57. package/.output/server/_ssr/{api-keys-CHATVpa9.mjs → api-keys-CWRy6qIm.mjs} +2 -2
  58. package/.output/server/_ssr/{api-keys-DVChzF3r.mjs → api-keys-DSBFZRhe.mjs} +10 -9
  59. package/.output/server/_ssr/{api-keys-rpc-DXPJTfdr.mjs → api-keys-rpc-CWXJDGcR.mjs} +3 -3
  60. package/.output/server/_ssr/{api-rpc-BexxmTM9.mjs → api-rpc-DFAKchn0.mjs} +10 -10
  61. package/.output/server/_ssr/{auth-rpc-BgNCvy2L.mjs → auth-rpc-CCrZswwU.mjs} +4 -4
  62. package/.output/server/_ssr/{auth.server-43UW34Rd.mjs → auth.server-B_NFqTVL.mjs} +2 -2
  63. package/.output/server/_ssr/{badge-BYB825vl.mjs → badge-CrneyinM.mjs} +2 -44
  64. package/.output/server/_ssr/card-uJiVh8Ex.mjs +49 -0
  65. package/.output/server/_ssr/{config.server-QRTmD4Hf.mjs → config.server-DegewTDN.mjs} +3 -3
  66. package/.output/server/_ssr/{console-access-E91fYTIB.mjs → console-access-Dn2nyMoy.mjs} +2 -2
  67. package/.output/server/_ssr/{console-features-api-CLRjxvy2.mjs → console-features-api-XvLDCadj.mjs} +3 -3
  68. package/.output/server/_ssr/{console-features-rpc-C2rJ0u6i.mjs → console-features-rpc-BGj3a9MK.mjs} +3 -3
  69. package/.output/server/_ssr/{dialog-CcF1pxfR.mjs → dialog-Bd8rq2D6.mjs} +1 -1
  70. package/.output/server/_ssr/{empty-DkiJ7nWt.mjs → empty-CxQ3tY82.mjs} +2 -2
  71. package/.output/server/_ssr/{field-CHlDI06h.mjs → field-BO99RT90.mjs} +2 -2
  72. package/.output/server/_ssr/{input-group-BPZ4UtB5.mjs → input-group-DTHYcd9a.mjs} +1 -1
  73. package/.output/server/_ssr/{insights-B3YetvBK.mjs → insights-2DKWoVb_.mjs} +5 -5
  74. package/.output/server/_ssr/{insights-Dn32lJ18.mjs → insights-B7__SQut.mjs} +2 -2
  75. package/.output/server/_ssr/{insights-CEABWFk4.mjs → insights-BxElDwIK.mjs} +21 -20
  76. package/.output/server/_ssr/{insights-api-CYPf5853.mjs → insights-api-BJcM3WZe.mjs} +3 -3
  77. package/.output/server/_ssr/{insights-failures-rpc-CxPpBR1K.mjs → insights-failures-rpc-Waj0XZKw.mjs} +4 -4
  78. package/.output/server/_ssr/{insights-recovery-rpc-CwnQMTE3.mjs → insights-recovery-rpc-DrPel0ob.mjs} +3 -3
  79. package/.output/server/_ssr/{insights-rpc-CKd5ATFI.mjs → insights-rpc-ETBGnpx2.mjs} +3 -3
  80. package/.output/server/_ssr/{insights-search-B_92_iEj.mjs → insights-search-Dm005qPB.mjs} +2 -2
  81. package/.output/server/_ssr/{insights-usage-rpc-RIMNhPtj.mjs → insights-usage-rpc-DLReOGQK.mjs} +3 -3
  82. package/.output/server/_ssr/{insights-usage-rpc-D90uHpJJ.mjs → insights-usage-rpc-SqWTs_Dy.mjs} +3 -3
  83. package/.output/server/_ssr/{insights_.distribution-D4QWsHNo.mjs → insights_.distribution-BEUt7pIk.mjs} +5 -5
  84. package/.output/server/_ssr/{insights_.distribution-D42mHSe0.mjs → insights_.distribution-B_FxGnXR.mjs} +15 -14
  85. package/.output/server/_ssr/{insights_.distribution-DwjIdjQi.mjs → insights_.distribution-CCxFQ1g_.mjs} +2 -2
  86. package/.output/server/_ssr/{installations-BIu66J6Q.mjs → installations-Bphhuxoy.mjs} +2 -2
  87. package/.output/server/_ssr/{installations-DyzKzWuv.mjs → installations-C9cYjLEo.mjs} +12 -12
  88. package/.output/server/_ssr/{installations-CfmO_V_R.mjs → installations-ChnSJFAp.mjs} +4 -4
  89. package/.output/server/_ssr/{native-builds-BCp8ICrn.mjs → native-builds-CCLcEAUo.mjs} +2 -2
  90. package/.output/server/_ssr/{native-builds-qj346atQ.mjs → native-builds-CWA9Y__P.mjs} +11 -10
  91. package/.output/server/_ssr/native-builds-vEUV8Jcd.mjs +548 -0
  92. package/.output/server/_ssr/{native-builds_._buildId-C8gsW-Rh.mjs → native-builds_._buildId-C-AS0ccm.mjs} +2 -2
  93. package/.output/server/_ssr/{native-builds_._buildId-BAxkkEFo.mjs → native-builds_._buildId-CDnSyuLI.mjs} +107 -58
  94. package/.output/server/_ssr/{nativeBuildDevice-nU480p5A.mjs → nativeBuildDevice-Dn16gNmZ.mjs} +2 -2
  95. package/.output/server/_ssr/{nativeBuildDownloadLink-c3tcq3G5.mjs → nativeBuildDownloadLink-XqrSsk2n.mjs} +2 -2
  96. package/.output/server/_ssr/{nativeBuildInstall-B-_lHDsS.mjs → nativeBuildInstall-DqyrDtdY.mjs} +4 -4
  97. package/.output/server/_ssr/{nativeBuildQr-C5AFtpmE.mjs → nativeBuildQr-P9qKcI7l.mjs} +2 -2
  98. package/.output/server/_ssr/{nativeBuilds-CbxOJDhO.mjs → nativeBuilds-ByQdDnHG.mjs} +2 -2
  99. package/.output/server/_ssr/{release-adoption-rpc-BBwJO2hu.mjs → release-adoption-rpc-DUnqLbyh.mjs} +5 -5
  100. package/.output/server/_ssr/{remote-config-B1g7vrQD.mjs → remote-config-DC9HsCJa.mjs} +2 -2
  101. package/.output/server/_ssr/{remote-config-BDijmvj1.mjs → remote-config-Db3pXNkQ.mjs} +2 -2
  102. package/.output/server/_ssr/{remote-config-DjeXVIcr.mjs → remote-config-jOKasCsC.mjs} +19 -18
  103. package/.output/server/_ssr/{remote-config-rpc-B7bzKw4N.mjs → remote-config-rpc-D4rLBAC7.mjs} +3 -3
  104. package/.output/server/_ssr/{router-DhxgFNWn.mjs → router-B3iMYd1N.mjs} +28 -28
  105. package/.output/server/_ssr/{routes-BC-rBuu_.mjs → routes-BHhqwGpi.mjs} +254 -377
  106. package/.output/server/_ssr/{routes-BDriEBtF.mjs → routes-Bpb4VcCf.mjs} +10 -14
  107. package/.output/server/_ssr/{schema-migration-rpc-CNMqY0RE.mjs → schema-migration-rpc-BY84M6ZD.mjs} +3 -3
  108. package/.output/server/_ssr/{select-hFD2e3Bh.mjs → select-C_ARCTCI.mjs} +2 -2
  109. package/.output/server/_ssr/{server-D_hG9iIq.mjs → server-yFcuyI0b.mjs} +4 -4
  110. package/.output/server/_ssr/{sidebar-Dmq4j1qr.mjs → sidebar-CFRWCQFu.mjs} +2 -2
  111. package/.output/server/_ssr/ssr.mjs +1 -1
  112. package/.output/server/_ssr/{start-RjhaPVFE.mjs → start-C0XSSCq4.mjs} +1 -1
  113. package/.output/server/_ssr/{switch-CkNsEp9k.mjs → switch-DS2sIZvU.mjs} +2 -2
  114. package/.output/server/_ssr/{table-CTtXogFJ.mjs → table-C4kXCYKR.mjs} +1 -1
  115. package/.output/server/_ssr/{tabs-BTKDM4AJ.mjs → tabs-DxOJdu7O.mjs} +2 -2
  116. package/.output/server/_tanstack-start-manifest_v-AYP07Vaf.mjs +194 -0
  117. package/.output/server/index.mjs +305 -284
  118. package/package.json +7 -7
  119. package/src/components/ChannelBadge.tsx +9 -9
  120. package/src/components/DataTable.tsx +303 -0
  121. package/src/components/HashValueDisplay.tsx +6 -3
  122. package/src/components/PlatformIcon.tsx +10 -0
  123. package/src/components/RelativeTime.tsx +31 -0
  124. package/src/components/TargetDisplay.tsx +69 -0
  125. package/src/components/features/channels/ChannelManagementDialog.tsx +3 -8
  126. package/src/components/features/insights/ReleaseActivity.tsx +1 -1
  127. package/src/components/features/native-builds/BuiltInBundleCard.tsx +29 -28
  128. package/src/components/features/native-builds/CommitLink.tsx +1 -1
  129. package/src/components/features/native-builds/ImportBuild.tsx +1 -1
  130. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +4 -1
  131. package/src/components/features/native-builds/NativeBuildsPage.tsx +63 -76
  132. package/src/components/features/native-builds/NativeBuildsTable.tsx +435 -317
  133. package/src/components/features/native-builds/ShortHash.tsx +1 -1
  134. package/src/components/features/native-builds/StoreSubmission.tsx +11 -2
  135. package/src/lib/native-builds.ts +22 -6
  136. package/src/routes/index.tsx +290 -429
  137. package/src/styles.css +16 -0
  138. package/.output/public/assets/EventDetails-ly7ygfdH.js +0 -1
  139. package/.output/public/assets/HashValueDisplay-BNoXZADg.js +0 -1
  140. package/.output/public/assets/RolloutPercentageBadge-frllRncE.js +0 -1
  141. package/.output/public/assets/StoreSubmission-D8BGGGgn.js +0 -1
  142. package/.output/public/assets/api-keys-B0N3SixL.js +0 -1
  143. package/.output/public/assets/api-keys-DFAOfU4U.js +0 -1
  144. package/.output/public/assets/badge-UNnTz4Dl.js +0 -1
  145. package/.output/public/assets/download-Cf24LBde.js +0 -1
  146. package/.output/public/assets/insights-B0_8xNxr.js +0 -1
  147. package/.output/public/assets/insights-BbIzm_QG.js +0 -42
  148. package/.output/public/assets/insights-BtmYg4vg.js +0 -2
  149. package/.output/public/assets/insights_.distribution-DLxq-IKU.js +0 -1
  150. package/.output/public/assets/insights_.distribution-izFBYfJL.js +0 -2
  151. package/.output/public/assets/insights_.distribution-rdeyNhH2.js +0 -1
  152. package/.output/public/assets/installations-CWx7vYY5.js +0 -1
  153. package/.output/public/assets/installations-Ce_dTa35.js +0 -1
  154. package/.output/public/assets/native-builds-Br0onFRc.js +0 -2
  155. package/.output/public/assets/native-builds-CDYL3y0I.js +0 -1
  156. package/.output/public/assets/native-builds-DEWHul-_.js +0 -1
  157. package/.output/public/assets/native-builds_._buildId-D1XEPQ-V.js +0 -1
  158. package/.output/public/assets/native-builds_._buildId-x-uu1Vbr.js +0 -2
  159. package/.output/public/assets/remote-config-Bw6sErCV.js +0 -6
  160. package/.output/public/assets/remote-config-S3xj8r3x.js +0 -1
  161. package/.output/public/assets/routes-Dw8zgqXz.js +0 -2
  162. package/.output/public/assets/routes-nKCEKnhh.js +0 -1
  163. package/.output/public/assets/styles-uK-0vUMk.css +0 -2
  164. package/.output/public/assets/valueToPercent-DRLgSP0P.js +0 -1
  165. package/.output/server/_ssr/RolloutPercentageBadge-axz7VuIZ.mjs +0 -21
  166. package/.output/server/_ssr/StoreSubmission-BqXKtpqW.mjs +0 -139
  167. package/.output/server/_ssr/native-builds-CqFeXByK.mjs +0 -514
  168. package/.output/server/_tanstack-start-manifest_v-BuGAtKIu.mjs +0 -189
  169. /package/.output/public/assets/{NotFoundPage-fiaucvsO.js → NotFoundPage-Ckb5GMhh.js} +0 -0
  170. /package/.output/public/assets/{alert-dialog-Z_RNBrFc.js → alert-dialog-DiRLrFVe.js} +0 -0
  171. /package/.output/public/assets/{api-BEEYDSCX.js → api-LQJH44FU.js} +0 -0
  172. /package/.output/public/assets/{dialog-C2U9bINi.js → dialog-CLIaC82_.js} +0 -0
  173. /package/.output/public/assets/{dist-UQUhRoJi.js → dist-Bf1BPKMs.js} +0 -0
  174. /package/.output/public/assets/{empty-PAp07lsC.js → empty-Bhlj8PEo.js} +0 -0
  175. /package/.output/public/assets/{field-DhKRWFG5.js → field-q4sTYzNU.js} +0 -0
  176. /package/.output/public/assets/{input-group-BJfBVqeI.js → input-group-D_NfhUbX.js} +0 -0
  177. /package/.output/public/assets/{refresh-cw-C6svDMfM.js → refresh-cw-C-tvoCcE.js} +0 -0
  178. /package/.output/public/assets/{relativeTime-BscR0TsX.js → relativeTime-DvyxGIsm.js} +0 -0
  179. /package/.output/public/assets/{rotate-cw-CxFW64IG.js → rotate-cw-Clk5xTeE.js} +0 -0
  180. /package/.output/public/assets/{search-bIYGuFCt.js → search-nnvSOTEB.js} +0 -0
  181. /package/.output/public/assets/{smartphone-Bn5FtEwt.js → smartphone-r0rRdPas.js} +0 -0
  182. /package/.output/public/assets/{switch-DtUu1RCw.js → switch-CP6GsHmN.js} +0 -0
  183. /package/.output/public/assets/{table-B22H8-RL.js → table-TUtVz-2l.js} +0 -0
  184. /package/.output/public/assets/{tabs-Fgz3sA51.js → tabs-CP3CSmtI.js} +0 -0
  185. /package/.output/public/assets/{undo-2-7gOxArtb.js → undo-2-Bt0YXG26.js} +0 -0
  186. /package/.output/public/assets/{uuidv7-BLyD3pAM.js → uuidv7-cI6C63Fm.js} +0 -0
package/src/styles.css CHANGED
@@ -40,6 +40,14 @@ code {
40
40
  --destructive: oklch(0.577 0.245 27.325);
41
41
  --success: oklch(0.448 0.119 151.328);
42
42
  --warning: oklch(0.473 0.137 46.201);
43
+ /*
44
+ * A channel's badge, by name, and any other channel's. Each text keeps
45
+ * AA contrast on its own 10% tint.
46
+ */
47
+ --channel-production: oklch(0.507 0.154 150.069);
48
+ --channel-staging: oklch(0.534 0.135 66.442);
49
+ --channel-dev: oklch(0.488 0.243 264.376);
50
+ --channel-other: oklch(0.373 0.034 259.733);
43
51
  --border: oklch(0.923 0.003 48.717);
44
52
  --input: oklch(0.923 0.003 48.717);
45
53
  --ring: oklch(0.709 0.01 56.259);
@@ -83,6 +91,10 @@ code {
83
91
  --destructive: oklch(0.704 0.191 22.216);
84
92
  --success: oklch(0.792 0.209 151.711);
85
93
  --warning: oklch(0.828 0.189 84.429);
94
+ --channel-production: oklch(0.792 0.209 151.711);
95
+ --channel-staging: oklch(0.852 0.199 91.936);
96
+ --channel-dev: oklch(0.707 0.165 254.624);
97
+ --channel-other: oklch(0.707 0.022 261.325);
86
98
  --border: oklch(1 0 0 / 10%);
87
99
  --input: oklch(1 0 0 / 15%);
88
100
  --ring: oklch(0.553 0.013 58.071);
@@ -126,6 +138,10 @@ code {
126
138
  --color-destructive: var(--destructive);
127
139
  --color-success: var(--success);
128
140
  --color-warning: var(--warning);
141
+ --color-channel-production: var(--channel-production);
142
+ --color-channel-staging: var(--channel-staging);
143
+ --color-channel-dev: var(--channel-dev);
144
+ --color-channel-other: var(--channel-other);
129
145
  --color-accent-foreground: var(--accent-foreground);
130
146
  --color-accent: var(--accent);
131
147
  --color-muted-foreground: var(--muted-foreground);
@@ -1 +0,0 @@
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{t as h}from"./download-Cf24LBde.js";import{s as g}from"./input-group-BJfBVqeI.js";import{t as _}from"./smartphone-Bn5FtEwt.js";import{t as v}from"./badge-UNnTz4Dl.js";import{n as y}from"./dist-UQUhRoJi.js";import{i as b,o as x,r as S,t as C}from"./empty-PAp07lsC.js";import{t as w}from"./HashValueDisplay-BNoXZADg.js";import{n as T,r as E}from"./InsightsPageHeader-q2FgL8xS.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:g},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:_}: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),y.success(`Response body copied`)}catch{y.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)(C,{children:(0,M.jsxs)(b,{children:[(0,M.jsx)(x,{children:t.body===null?`Response body unavailable`:`Empty response body`}),(0,M.jsx)(S,{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)(v,{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)(v,{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)(w,{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)(w,{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};
@@ -1 +0,0 @@
1
- import{Ln as e,Wr as t,it as n,nt as r,tt as i}from"./sidebar-Di9SN47G.js";import{n as a}from"./dist-UQUhRoJi.js";var o=t(),s=(e,t=12)=>e.length>t?`${e.slice(0,Math.max(1,t-4))}…${e.slice(-4)}`:e;function c({value:t,maxLength:c=12,className:l,buttonClassName:u}){let d=t.length>c,f=s(t,c),p=async()=>{try{await navigator.clipboard.writeText(t),a.success(`Copied to clipboard`,{description:t})}catch{a.error(`Failed to copy value`)}},m=e=>{e.preventDefault(),e.stopPropagation(),p()},h=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),p())},g=(0,o.jsx)(`span`,{translate:`no`,className:e(`font-mono text-xs tabular-nums whitespace-nowrap`,l),children:f});return(0,o.jsxs)(i,{children:[(0,o.jsx)(n,{render:(0,o.jsx)(`button`,{type:`button`,"aria-label":`Copy full value: ${t}`,translate:`no`,className:e(`ring-ring/30 bg-muted/40 border-border/70 inline-flex min-w-0 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`,!d&&`cursor-copy`,u),onClick:m,onKeyDown:h}),children:g}),(0,o.jsx)(r,{hidden:!d,children:(0,o.jsx)(`p`,{translate:`no`,className:`break-all font-mono text-xs tabular-nums`,children:t})})]})}export{s as n,c as t};
@@ -1 +0,0 @@
1
- import{Ln as e,Wr as t,ir as n}from"./sidebar-Di9SN47G.js";import{f as r,t as i}from"./badge-UNnTz4Dl.js";var a=n(`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`}]]),o=t();function s({percentage:t,className:n}){let a=t<100,s=t.toFixed(1);return(0,o.jsxs)(i,{className:e(`gap-1`,n),variant:a?`secondary`:`default`,children:[a?(0,o.jsx)(r,{className:`h-3 w-3`}):null,s,`%`]})}export{a as n,s as t};
@@ -1 +0,0 @@
1
- import{Fn as e,Wr as t,ii as n,ir as r}from"./sidebar-Di9SN47G.js";import{y as i}from"./native-builds-CDYL3y0I.js";import{t as a}from"./copy-DsuLj3oj.js";import{t as o}from"./badge-UNnTz4Dl.js";import{n as s}from"./dist-UQUhRoJi.js";import{n as c,t as l}from"./relativeTime-BscR0TsX.js";import{a as u}from"./api-BEEYDSCX.js";var d=r(`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`}]]),f=t();function p({label:t,value:n,wrap:r=!1}){let i=async()=>{try{await navigator.clipboard.writeText(n),s.success(`Copied to clipboard`)}catch{s.error(`Could not copy ${t}`)}};return(0,f.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,f.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,f.jsx)(e,{"aria-label":`Copy ${t}`,className:`size-11 sm:size-7`,onClick:()=>void i(),size:`icon-sm`,variant:`ghost`,children:(0,f.jsx)(a,{"aria-hidden":`true`})})]})}function m({value:e,length:t,label:n}){let r=async()=>{try{await navigator.clipboard.writeText(e),s.success(`Copied to clipboard`,{description:e})}catch{s.error(`Could not copy the ${n}`)}};return(0,f.jsx)(`button`,{"aria-label":`Copy the ${n} ${e}`,className:`cursor-copy rounded-sm font-mono text-xs whitespace-nowrap tabular-nums underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none`,onClick:e=>{e.stopPropagation(),r()},title:e,translate:`no`,type:`button`,children:e.slice(0,t)})}function h({hash:e}){let t=u();if(e===null)return(0,f.jsx)(`span`,{className:`text-muted-foreground`,children:`—`});let n=i(t.data?.console.gitUrl,e);return n===null?(0,f.jsx)(m,{label:`commit`,length:7,value:e}):(0,f.jsx)(`a`,{className:`font-mono text-xs whitespace-nowrap underline-offset-4 hover:underline`,href:n,onClick:e=>e.stopPropagation(),rel:`noreferrer`,target:`_blank`,title:e,translate:`no`,children:e.slice(0,7)})}var g=n(c(),1),_=n(l(),1);g.default.extend(_.default);var v={testflight:`TestFlight`,"play-internal":`Play internal`},y=e=>e.submitted_to!==null&&e.submitted_to!==void 0;function b({ms:e}){if(e===null)return null;let t=(0,g.default)(e);return(0,f.jsx)(`time`,{className:`text-xs text-muted-foreground`,dateTime:t.toISOString(),title:t.format(`YYYY-MM-DD HH:mm:ss`),children:t.fromNow()})}function x({build:e,withTime:t=!1}){return y(e)?(0,f.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-1.5`,children:[(0,f.jsxs)(o,{className:`gap-1`,title:`Submitted to ${v[e.submitted_to]}`,variant:`secondary`,children:[(0,f.jsx)(d,{"aria-hidden":`true`,className:`size-3`}),v[e.submitted_to],e.submitted_version?(0,f.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.submitted_version}):null]}),t?(0,f.jsx)(b,{ms:e.submitted_at_ms}):null]}):null}export{p as a,m as i,y as n,h as r,x as t};
@@ -1 +0,0 @@
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 g}from"./plus-BVhOauU3.js";import{t as _}from"./refresh-cw-C6svDMfM.js";import{a as v,d as ne,f as y,i as b,n as re,o as ie,r as ae,s as oe,t as se,u as x}from"./badge-UNnTz4Dl.js";import{n as S}from"./dist-UQUhRoJi.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-Z_RNBrFc.js";import{a as N,i as P,n as F,o as I,r as L,t as R}from"./dialog-C2U9bINi.js";import{a as z,i as B,n as V,r as H,t as U}from"./field-DhKRWFG5.js";import{a as W,i as G,n as K,o as q,r as J,t as ce}from"./table-B22H8-RL.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)(g,{"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),S.success(`API key created`)}catch(e){S.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),S.success(`API key copied`)}catch{S.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),S.success(`API key revoked`)}catch(e){S.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)(ie,{className:`overflow-hidden shadow-sm`,children:[(0,$.jsxs)(x,{className:`flex-row items-center justify-between space-y-0 border-b px-4 py-3`,children:[(0,$.jsx)(ne,{className:`text-sm`,children:(0,$.jsx)(`h2`,{children:`API keys`})}),(0,$.jsx)(he,{})]}),(0,$.jsx)(oe,{className:`p-0`,children:n.isError?(0,$.jsx)(`div`,{className:`p-4`,children:(0,$.jsxs)(re,{variant:`destructive`,children:[(0,$.jsx)(y,{}),(0,$.jsx)(v,{children:`API keys couldn't be loaded`}),(0,$.jsx)(b,{children:`Check your connection and try again.`}),(0,$.jsx)(ae,{children:(0,$.jsxs)(t,{onClick:()=>void n.refetch(),size:`xs`,variant:`outline`,children:[(0,$.jsx)(_,{"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)(se,{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};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-oMmbaqF6.js";var t=e;export{t as notFoundComponent};
@@ -1 +0,0 @@
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();function l({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`card`,className:e(`rounded-xl border bg-card text-card-foreground shadow`,t),...n})}function u({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`card-header`,className:e(`flex flex-col gap-1.5 p-6`,t),...n})}function d({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`card-title`,className:e(`font-semibold leading-none tracking-tight`,t),...n})}function f({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`card-description`,className:e(`text-sm text-muted-foreground`,t),...n})}function p({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`card-content`,className:e(`p-6 pt-0`,t),...n})}function m({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`card-footer`,className:e(`flex items-center p-6 pt-0`,t),...n})}var h=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 g({className:t,variant:n,...r}){return(0,c.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:e(h({variant:n}),t),...r})}function _({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 v({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 y({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`alert-action`,className:e(`absolute top-1.5 right-2`,t),...n})}var b=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 x({className:n,variant:r=`default`,render:a,...o}){return t({defaultTagName:`span`,props:i({className:e(b({variant:r}),n)},o),render:a,state:{slot:`badge`,variant:r}})}export{_ as a,f as c,d,s as f,v as i,m as l,g as n,l as o,y as r,p as s,x as t,u};
@@ -1 +0,0 @@
1
- import{ir as e}from"./sidebar-Di9SN47G.js";var t=e(`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`}]]);export{t};
@@ -1 +0,0 @@
1
- import{t as e}from"./ConsoleFeatureUnavailable-oMmbaqF6.js";var t=e;export{t as notFoundComponent};