@hot-updater/console 1.2.0-rc.30 → 1.2.0-rc.32
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.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/-native-builds-search-BvCftqF2.js +1 -0
- package/.output/public/assets/{BundleIdDisplay-CTBdtFQ8.js → BundleIdDisplay-D8oR8mcP.js} +1 -1
- package/.output/public/assets/{ChannelBadge-CEabmopB.js → ChannelBadge-Do-lWsLM.js} +1 -1
- package/.output/public/assets/{CompositeItem-KUM5yQVr.js → CompositeItem-Ci-Dvjc7.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-Be-0iTww.js → ConsoleFeatureUnavailable-C0iDIboF.js} +1 -1
- package/.output/public/assets/{EventDetails-bDOYte1z.js → EventDetails-DglqzK6l.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-D2f0HmyU.js → HashValueDisplay-DKziWjEg.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-Cj2ROSQO.js → InsightsPageHeader-DLH1MntM.js} +1 -1
- package/.output/public/assets/IosInstall-2R2o1IXd.js +1 -0
- package/.output/public/assets/NativeBuildsNav-BgeUSMqw.js +1 -0
- package/.output/public/assets/{NotFoundPage-CVBtl68B.js → NotFoundPage-CijSy63W.js} +1 -1
- package/.output/public/assets/{PlatformIcon-DVnzzGqM.js → PlatformIcon-Kq3q98tU.js} +1 -1
- package/.output/public/assets/QrCode-D3-Vuudy.js +1 -0
- package/.output/public/assets/RelativeTime-CP7nosYx.js +1 -0
- package/.output/public/assets/{RolloutPercentageBadge-D_I0Raj2.js → RolloutPercentageBadge-DnmU8XbU.js} +1 -1
- package/.output/public/assets/{RowReason-B7VM1ztc.js → RowReason-D7TZ2xwW.js} +1 -1
- package/.output/public/assets/SandboxBadge-BPf2uve4.js +1 -0
- package/.output/public/assets/TargetDisplay-DzSkf5yP.js +1 -0
- package/.output/public/assets/alert-dialog-Dihztkem.js +1 -0
- package/.output/public/assets/{api-C1OPeiG1.js → api-B1z_XXrQ.js} +1 -1
- package/.output/public/assets/api-keys-DL9HeC8e.js +1 -0
- package/.output/public/assets/api-keys-DPuPM7ag.js +1 -0
- package/.output/public/assets/arrow-left-CxxDwBQs.js +1 -0
- package/.output/public/assets/arrow-right-jHG0fJt7.js +1 -0
- package/.output/public/assets/arrow-up-right-BPRe5soE.js +1 -0
- package/.output/public/assets/{badge-FZMD5vvS.js → badge-D4Tiwei-.js} +1 -1
- package/.output/public/assets/{card-CyHYmHue.js → card-BfeRlTvj.js} +1 -1
- package/.output/public/assets/check-Dz_5aNwx.js +1 -0
- package/.output/public/assets/chevron-right-CuYrscDY.js +1 -0
- package/.output/public/assets/{circle-off-BCkZpskJ.js → circle-off-BZFOMb8J.js} +1 -1
- package/.output/public/assets/{clipboard-DZrZK5gR.js → clipboard-D8uvj6FN.js} +1 -1
- package/.output/public/assets/{console-features-api-BO5V64P3.js → console-features-api-De6tXQnd.js} +1 -1
- package/.output/public/assets/{copy-CH1__JAW.js → copy-BxI24-g-.js} +1 -1
- package/.output/public/assets/dialog-e9AF5T6h.js +1 -0
- package/.output/public/assets/{dist-DAM__Tdz.js → dist-BEIz5ojx.js} +1 -1
- package/.output/public/assets/{download-B2GjTySo.js → download-ekENI2Sw.js} +1 -1
- package/.output/public/assets/{empty--YaE5Z4p.js → empty-DpSPWLc2.js} +1 -1
- package/.output/public/assets/{field-CdhSgWhI.js → field-PkdRPD3A.js} +1 -1
- package/.output/public/assets/{git-branch-DG1VDaKq.js → git-branch-BWrvONjc.js} +1 -1
- package/.output/public/assets/{history-C0wv4htz.js → history-DwdBLzJP.js} +1 -1
- package/.output/public/assets/index-DZdzmvWS.js +10 -0
- package/.output/public/assets/input-group-DNfVeeYZ.js +1 -0
- package/.output/public/assets/{insights-_j_ieOyh.js → insights-6d-iISFa.js} +2 -2
- package/.output/public/assets/insights-DotP9eJn.js +2 -0
- package/.output/public/assets/insights-MQrx_wbP.js +1 -0
- package/.output/public/assets/{insights-api-B6Gj74n5.js → insights-api-CXXCRZhF.js} +1 -1
- package/.output/public/assets/{insights-search-Bgvg6wSP.js → insights-search-CtEcj6lz.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-BUCinjSN.js → insights-usage-rpc-DdmD1Nuy.js} +1 -1
- package/.output/public/assets/{insights_.distribution-CRkGNelG.js → insights_.distribution-DATeWpQS.js} +1 -1
- package/.output/public/assets/insights_.distribution-DYgsR7-7.js +2 -0
- package/.output/public/assets/insights_.distribution-REbBAqgL.js +1 -0
- package/.output/public/assets/installations-Di02gX_V.js +1 -0
- package/.output/public/assets/{installations-CYTzndfP.js → installations-Ds-MhfsQ.js} +1 -1
- package/.output/public/assets/{installations-BsD6LgNc.js → installations-Lm8TxrcB.js} +2 -2
- package/.output/public/assets/{key-round-D7UgdXyA.js → key-round-B-vaAsR7.js} +1 -1
- package/.output/public/assets/{link-CN3iHC4A.js → link-D95E0fwF.js} +1 -1
- package/.output/public/assets/{list-Bm-CfN5g.js → list-Dq40Mmoj.js} +1 -1
- package/.output/public/assets/loader-circle-C26cZDSM.js +1 -0
- package/.output/public/assets/native-builds-BOSmoLed.js +1 -0
- package/.output/public/assets/native-builds-Bs_JroPG.js +2 -0
- package/.output/public/assets/native-builds-Chv-kXaS.js +1 -0
- package/.output/public/assets/native-builds_._buildId-Bj24bG99.js +2 -0
- package/.output/public/assets/native-builds_._buildId-Somk3u9R.js +1 -0
- package/.output/public/assets/native-builds_.devices-afOLyzux.js +1 -0
- package/.output/public/assets/native-builds_.devices-o6LsPF9Y.js +2 -0
- package/.output/public/assets/plus-Bp6IqwOH.js +1 -0
- package/.output/public/assets/{preload-helper-CRQjUQaZ.js → preload-helper-52zhjEsw.js} +1 -1
- package/.output/public/assets/{refresh-cw-BHhBYjS8.js → refresh-cw-CpCxPYma.js} +1 -1
- package/.output/public/assets/{relativeTime-BYRt19mj.js → relativeTime-D_aYJRc7.js} +1 -1
- package/.output/public/assets/remote-config-Buy_12p7.js +1 -0
- package/.output/public/assets/remote-config-Dmuqm9xx.js +1 -0
- package/.output/public/assets/remote-config-g05054op.js +6 -0
- package/.output/public/assets/{rotate-cw-Ba-slJea.js → rotate-cw-Bn3fIWmY.js} +1 -1
- package/.output/public/assets/routes-5mt1iab-.js +2 -0
- package/.output/public/assets/routes-BxJfMpil.js +1 -0
- package/.output/public/assets/search-DeKSyo9Q.js +1 -0
- package/.output/public/assets/{select-CA8r-UUe.js → select-BAd2hAoW.js} +1 -1
- package/.output/public/assets/{sidebar-yC7KdImc.js → sidebar-UnsNYOry.js} +1 -1
- package/.output/public/assets/smartphone-lSZWrqxx.js +1 -0
- package/.output/public/assets/styles-CN7c7MGr.css +2 -0
- package/.output/public/assets/{switch-BsV3d4km.js → switch-C_s67MO4.js} +1 -1
- package/.output/public/assets/{table-D8YjT_ht.js → table-r_sYqKTQ.js} +1 -1
- package/.output/public/assets/{tabs-RdhEl9sE.js → tabs-B95QcXeT.js} +1 -1
- package/.output/public/assets/{trash-2-B5KIvrXy.js → trash-2-BPH7ydek.js} +1 -1
- package/.output/public/assets/{undo-2-CFcU9dIB.js → undo-2-CGeTBZjC.js} +1 -1
- package/.output/public/assets/{useCompositeListItem-lAmUsXcc.js → useCompositeListItem-B9ONn9qn.js} +1 -1
- package/.output/public/assets/{useMutation-w3qYaU2L.js → useMutation-BWX97JX2.js} +1 -1
- package/.output/server/{__23tanstack-start-server-fn-resolver-q4YFIDyr.mjs → __23tanstack-start-server-fn-resolver-ET1Ypyyk.mjs} +61 -61
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{-native-builds-search-Mm_AZoRU.mjs → -native-builds-search-OJ8XmaBa.mjs} +2 -2
- package/.output/server/_ssr/{BundleIdDisplay-DvzlYWq8.mjs → BundleIdDisplay-CpaKbEYb.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-qF_Pc5Ud.mjs → ChannelBadge-dVXs-bYV.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-DKUgr0N_.mjs → ConsoleFeatureUnavailable-DWuWwY4L.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-T1XtYEDD.mjs → EventDetails-CcuGyU26.mjs} +7 -7
- package/.output/server/_ssr/{HashValueDisplay-Cas_zjIS.mjs → HashValueDisplay-ClkGq5_0.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-BrllhUl2.mjs → InsightsPageHeader-Bw6RVpdS.mjs} +7 -7
- package/.output/server/_ssr/{IosInstall-CEHI8F2M.mjs → IosInstall-DEceeAVT.mjs} +180 -87
- package/.output/server/_ssr/{NativeBuildsNav-2xSHyA1a.mjs → NativeBuildsNav-ChqRZH4E.mjs} +5 -5
- package/.output/server/_ssr/{NotFoundPage-D6H9vxj_.mjs → NotFoundPage-aZrAWo5n.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-BpGOEXjU.mjs → PlatformIcon-X18AN8Yp.mjs} +1 -1
- package/.output/server/_ssr/QrCode-pEaOdaRS.mjs +50 -0
- package/.output/server/_ssr/{RelativeTime-DpEVzDP9.mjs → RelativeTime-CFIJbj_r.mjs} +10 -5
- package/.output/server/_ssr/{RolloutPercentageBadge-DW8-_w30.mjs → RolloutPercentageBadge-BEqOJXly.mjs} +4 -4
- package/.output/server/_ssr/{RowReason-C-PjIxzq.mjs → RowReason-DXbU_Nml.mjs} +4 -4
- package/.output/server/_ssr/{SandboxBadge-CDdNew0R.mjs → SandboxBadge-CP76AVxN.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-BBsP7IaZ.mjs → TargetDisplay-csC-slf3.mjs} +37 -15
- package/.output/server/_ssr/{alert-dialog-Bd4E9xdw.mjs → alert-dialog-Dn5l3Bob.mjs} +3 -3
- package/.output/server/_ssr/{api-BT7aA8UM.mjs → api-W0WerUfm.mjs} +6 -6
- package/.output/server/_ssr/{api-keys-D2NvcQZv.mjs → api-keys-Btu37Irf.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-DjWpM20P.mjs → api-keys-D7kmFdhY.mjs} +10 -9
- package/.output/server/_ssr/{api-keys-rpc-nM5H7V7f.mjs → api-keys-rpc-9o4CyzUZ.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-DX4HynbW.mjs → api-rpc-B1HnUZMu.mjs} +19 -19
- package/.output/server/_ssr/{auth-rpc-LCxTtYz2.mjs → auth-rpc-BBy2L4Ah.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-CERo_xef.mjs → auth.server-ajvR-m99.mjs} +28 -14
- package/.output/server/_ssr/{badge-Dpp4q7sD.mjs → badge-DlEpe8yC.mjs} +1 -1
- package/.output/server/_ssr/{bundleActivity-BP40zYSt.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/{card-CFCftDfI.mjs → card-AK7Ms1Oa.mjs} +1 -1
- package/.output/server/_ssr/{config.server-5W5WD8x2.mjs → config.server-DswyWSgG.mjs} +4 -4
- package/.output/server/_ssr/{console-access-B0S5YFUa.mjs → console-access-DM56j3dM.mjs} +2 -2
- package/.output/server/_ssr/{console-features-xaGDhRC9.mjs → console-features-DTYyXrWO.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-CV_EReEj.mjs → console-features-api-g5s9V5sz.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-D3xlQsuy.mjs → console-features-rpc-Cnmhvmsk.mjs} +3 -3
- package/.output/server/_ssr/{databaseConfig-XAvDetmn.mjs → databaseConfig-B56IJxlu.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-BtRVBD0C.mjs → databaseRows-BZMFl5QV.mjs} +2 -2
- package/.output/server/_ssr/{deviceProfileToken-CwWb1lPq.mjs → deviceProfileToken-xzDLfE0T.mjs} +21 -5
- package/.output/server/_ssr/{dialog-DQR_QI_X.mjs → dialog-0oBrR9Cj.mjs} +4 -4
- package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
- package/.output/server/_ssr/{downloadBundle-DnoYpi36.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
- package/.output/server/_ssr/{empty-C7PFnkCH.mjs → empty-tasgkoU9.mjs} +2 -2
- package/.output/server/_ssr/{failureReports-BA2eg11O.mjs → failureReports-BVufgM3l.mjs} +3 -3
- package/.output/server/_ssr/{field-BqYN8sZT.mjs → field-phtuBLMh.mjs} +2 -2
- package/.output/server/_ssr/{foldedPage-CqpVk31Q.mjs → foldedPage-CUjJqtlF.mjs} +1 -1
- package/.output/server/_ssr/{getBundleChildren-CdqFonhl.mjs → getBundleChildren-CnOf4Frp.mjs} +2 -2
- package/.output/server/_ssr/{input-group-Brv0mmyp.mjs → input-group-BTEoUANX.mjs} +2 -2
- package/.output/server/_ssr/{insights-CD1e3EnW.mjs → insights-BBzyKO95.mjs} +2 -2
- package/.output/server/_ssr/{insights--xI3A0KI.mjs → insights-CPDtpuXg.mjs} +5 -5
- package/.output/server/_ssr/{insights-Dd0VdO-1.mjs → insights-D4le8l6s.mjs} +31 -26
- package/.output/server/_ssr/{insights-api-Bt2XVa4Y.mjs → insights-api-D6J2HVtY.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-CXHg1lLV.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-7zH97WOO.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-DBGzXP5A.mjs → insights-failures-rpc-ChwlB9sg.mjs} +10 -10
- package/.output/server/_ssr/{insights-recovery-BhOg6kz2.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-C6fAh-i_.mjs → insights-recovery-rpc-B6_GT-_U.mjs} +6 -6
- package/.output/server/_ssr/{insights-rpc-pThKC9oj.mjs → insights-rpc-DG0GxsIL.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-iFN4UaUv.mjs → insights-search-LKeSNr4M.mjs} +4 -4
- package/.output/server/_ssr/{insights-usage-h8fipPTv.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-CGHZQ9jq.mjs → insights-usage-rpc-I0Eh5Z89.mjs} +6 -6
- package/.output/server/_ssr/{insights-usage-rpc-B-RLvdLZ.mjs → insights-usage-rpc-qnQWkNn2.mjs} +4 -4
- package/.output/server/_ssr/{insightsUsage-BjSiV_X_.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-xHmfwwa5.mjs → insights_.distribution-BF99IaZu.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-E6Ns2aN7.mjs → insights_.distribution-D2dZwvqQ.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-C6iXJ93Y.mjs → insights_.distribution-Dgv-_T7g.mjs} +14 -14
- package/.output/server/_ssr/{installations-D6Upc9Rt.mjs → installations-BHjU8FUI.mjs} +2 -2
- package/.output/server/_ssr/{installations-CZnN6slr.mjs → installations-C7TindNY.mjs} +4 -4
- package/.output/server/_ssr/{installations-7V-Xyui8.mjs → installations-DVTUpBGI.mjs} +11 -11
- package/.output/server/_ssr/{ios-devices-rpc-CXuHk24G.mjs → ios-devices-rpc-KtosHTCC.mjs} +18 -20
- package/.output/server/_ssr/iosDeviceCookie-B-8c7lMJ.mjs +155 -0
- package/.output/server/_ssr/{iosDeviceProfile-BESi_onx.mjs → iosDeviceProfile-CIEuY_kV.mjs} +13 -13
- package/.output/server/_ssr/{iosDevices-BmvvvZRo.mjs → iosDevices-CkLgS8_U.mjs} +4 -20
- package/.output/server/_ssr/{listReleases-DYYA5alS.mjs → listReleases-QF91GLE7.mjs} +3 -3
- package/.output/server/_ssr/native-artifact-BRNP_q-y.mjs +1532 -0
- package/.output/server/_ssr/{native-builds-BhDCE89P.mjs → native-builds-3WEAnb93.mjs} +22 -20
- package/.output/server/_ssr/{native-builds-BUojmVWC.mjs → native-builds-B6rWkcHL.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-BXBkklfA.mjs → native-builds-nRuXKypG.mjs} +68 -6
- package/.output/server/_ssr/{native-builds_._buildId-DRiCNDdO.mjs → native-builds_._buildId-BaykQRJl.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-DkMpG-OB.mjs → native-builds_._buildId-RFJXyul0.mjs} +21 -27
- package/.output/server/_ssr/{native-builds_.devices-DsOx1R36.mjs → native-builds_.devices-BzkeAX0K.mjs} +213 -93
- package/.output/server/_ssr/{native-builds_.devices-DSideebA.mjs → native-builds_.devices-D9EGVV1N.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildDownloadLink-DDAUVU8q.mjs → nativeBuildDownloadLink-A1aWZBDw.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-CcBrfTsc.mjs → nativeBuildInstall-XzMDX9iY.mjs} +8 -6
- package/.output/server/_ssr/{nativeBuilds-Cub0EUGN.mjs → nativeBuilds-DaF-TcfO.mjs} +4 -4
- package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
- package/.output/server/_ssr/{plugins-CX7wutet.mjs → plugins-D9CCkDjn.mjs} +6 -5
- package/.output/server/_ssr/publicConsoleBase-wTKw3_iB.mjs +15 -0
- package/.output/server/_ssr/{release-adoption-DeICczY7.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-BjMXMi9A.mjs → release-adoption-rpc-DoDlwfWB.mjs} +8 -8
- package/.output/server/_ssr/{releaseAdoption-kHZo8P90.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-D9dAMI17.mjs → releaseCatalogCompiler-CJ2Shida.mjs} +4 -3
- package/.output/server/_ssr/{releaseManagement-EPhok_Py.mjs → releaseManagement-CqIc-SDE.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DaZ7ifUF.mjs → releaseReachability-Ch1JpJkY.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-C_DprbJz.mjs → remote-config-6lhdA4DB.mjs} +18 -18
- package/.output/server/_ssr/{remote-config-B1iZuZOF.mjs → remote-config-BMg2UurZ.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-BFTPcMfZ.mjs → remote-config-rpc-Ddg8dyxw.mjs} +4 -4
- package/.output/server/_ssr/{remote-config-C_q6FBE4.mjs → remote-config-u_T4AXyi.mjs} +2 -2
- package/.output/server/_ssr/{router-BDXPwfwl.mjs → router-CovCAswJ.mjs} +101 -61
- package/.output/server/_ssr/{routes-BJeztqpQ.mjs → routes-CTUvEVa6.mjs} +37 -33
- package/.output/server/_ssr/{routes-DpapxHLc.mjs → routes-DtkONaBi.mjs} +12 -11
- package/.output/server/_ssr/{runtime.server-CkSbWaZm.mjs → runtime.server-BUbb281Z.mjs} +4 -4
- package/.output/server/_ssr/{schema-3oDJJFWa.mjs → schema-CaIuQCXb.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-a4bLEdaP.mjs → schema-migration-rpc-DvmruDB6.mjs} +3 -3
- package/.output/server/_ssr/{select-C9HpIZxd.mjs → select-DJLTQgmc.mjs} +1 -1
- package/.output/server/_ssr/{server-C8ZmMWnn.mjs → server-BfWxoIjf.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-BrVL3L7R.mjs → sidebar-Bsfqid7Q.mjs} +6 -6
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-D3noqqOK.mjs → start-BaUpXI0L.mjs} +1 -1
- package/.output/server/_ssr/{switch-DtnsoZHO.mjs → switch-DckZkZBS.mjs} +3 -3
- package/.output/server/_ssr/{table-Bg7nCnct.mjs → table-DG8aRQBO.mjs} +1 -1
- package/.output/server/_ssr/{tabs-BEIoGLTL.mjs → tabs-Dblh3lL2.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-D0bP_Ume.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
- package/.output/server/_ssr/{dist-B6-irDRA.mjs → uuid-kZvLA0Ly-DNL0qBSj.mjs} +2 -147
- package/.output/server/_ssr/{uuidv7-CmHbryZT.mjs → uuidv7-C0jNe2Om.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-NmbU0MD2.mjs → version-CQ98ZBpL-zW2fpHOZ.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-CfDH9vVq.mjs +225 -0
- package/.output/server/index.mjs +430 -430
- package/package.json +7 -7
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/DataTable.tsx +18 -2
- package/src/components/TargetDisplay.tsx +33 -7
- package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
- package/src/components/features/bundles/BundleMetadata.tsx +1 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +6 -2
- package/src/components/features/insights/FailureReports.tsx +1 -0
- package/src/components/features/insights/InsightsOverview.tsx +7 -1
- package/src/components/features/insights/ReleaseActivity.tsx +5 -1
- package/src/components/features/insights/UpdateFailures.tsx +1 -0
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +1 -0
- package/src/components/features/native-builds/IosDevicesPage.tsx +187 -38
- package/src/components/features/native-builds/IosInstall.tsx +122 -58
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +1 -2
- package/src/components/features/native-builds/NativeBuildsNav.tsx +2 -2
- package/src/components/features/native-builds/NativeBuildsTable.tsx +5 -1
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +1 -1
- package/src/components/features/releases/ReleaseEditorSheet.tsx +6 -5
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/dialog.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/lib/ios-devices-api.ts +148 -5
- package/src/lib/ios-devices-rpc.ts +17 -12
- package/src/lib/native-builds.ts +97 -4
- package/src/lib/server/deviceProfileToken.ts +37 -3
- package/src/lib/server/iosDeviceCookie.ts +239 -0
- package/src/lib/server/iosDeviceProfile.ts +4 -2
- package/src/lib/server/iosDevices.ts +0 -30
- package/src/routeTree.gen.ts +44 -0
- package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
- package/src/routes/[_]hot-updater/devices/request.ts +28 -0
- package/.output/public/assets/-native-builds-search-DdHwfe4q.js +0 -1
- package/.output/public/assets/IosInstall-CHI2C4Yd.js +0 -1
- package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +0 -1
- package/.output/public/assets/RelativeTime-B4PK8qDw.js +0 -1
- package/.output/public/assets/SandboxBadge-BVxHg_HF.js +0 -1
- package/.output/public/assets/TargetDisplay-KU7JhIWG.js +0 -1
- package/.output/public/assets/alert-dialog-Ch0QxRsa.js +0 -1
- package/.output/public/assets/api-keys-DLC8jjaM.js +0 -1
- package/.output/public/assets/api-keys-eDnzgFAf.js +0 -1
- package/.output/public/assets/arrow-left-DQjHJAnT.js +0 -1
- package/.output/public/assets/arrow-right-CXp_K3xK.js +0 -1
- package/.output/public/assets/arrow-up-right-BFafIOrq.js +0 -1
- package/.output/public/assets/check-CqWNyG93.js +0 -1
- package/.output/public/assets/chevron-right-DNbYTBX1.js +0 -1
- package/.output/public/assets/dialog-BLj71-Nf.js +0 -1
- package/.output/public/assets/index-CgwVUC2n.js +0 -10
- package/.output/public/assets/input-group-XKLcUGoa.js +0 -1
- package/.output/public/assets/insights-C94CdeAA.js +0 -1
- package/.output/public/assets/insights-DILMVpk8.js +0 -2
- package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +0 -2
- package/.output/public/assets/insights_.distribution-CyAu3RN3.js +0 -1
- package/.output/public/assets/installations-BA01mqJE.js +0 -1
- package/.output/public/assets/loader-circle-iMqC-8ZE.js +0 -1
- package/.output/public/assets/native-builds-BMbws1g5.js +0 -2
- package/.output/public/assets/native-builds-xgHiHQML.js +0 -1
- package/.output/public/assets/native-builds_._buildId-B04z9yfk.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DaMmTcHo.js +0 -2
- package/.output/public/assets/native-builds_.devices-CTzpCVsb.js +0 -1
- package/.output/public/assets/native-builds_.devices-D_kl2-bc.js +0 -2
- package/.output/public/assets/package-BmfoZ5Zj.js +0 -1
- package/.output/public/assets/plus-Db0KxLZp.js +0 -1
- package/.output/public/assets/remote-config-Cxkr7_BP.js +0 -1
- package/.output/public/assets/remote-config-DAOyn5xL.js +0 -1
- package/.output/public/assets/remote-config-DXv25LX1.js +0 -6
- package/.output/public/assets/routes-DM3TyTLW.js +0 -2
- package/.output/public/assets/routes-Des97uK_.js +0 -1
- package/.output/public/assets/search-dJG2BYmx.js +0 -1
- package/.output/public/assets/send-DuMOCzbD.js +0 -1
- package/.output/public/assets/smartphone-D1C6BRd_.js +0 -1
- package/.output/public/assets/styles-BHLI87EH.css +0 -2
- package/.output/server/_ssr/publicConsoleBase-f67NLLXZ.mjs +0 -610
- package/.output/server/_tanstack-start-manifest_v-C_TPyfFP.mjs +0 -225
- /package/.output/public/assets/{uuidv7-DAoOOpz9.js → uuidv7-DgXZ1zRR.js} +0 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import type { HotUpdaterCoreApi, IosDeviceRow } from "@hot-updater/plugin-core";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
createKeptDeviceReceipt,
|
|
5
|
+
type DeviceReceipt,
|
|
6
|
+
KEPT_DEVICE_RECEIPT_TTL_MS,
|
|
7
|
+
verifyDeviceReceipt,
|
|
8
|
+
verifyKeptDeviceReceipt,
|
|
9
|
+
} from "./deviceProfileToken";
|
|
10
|
+
import { deviceName, type IosDeviceViewer } from "./iosDevices";
|
|
11
|
+
import { readConsoleSecret } from "./nativeBuildDownloadLink";
|
|
12
|
+
import { publicConsoleBase } from "./publicConsoleBase";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* This iPhone's proof, kept by Safari: after the profile's answer, the page
|
|
16
|
+
* trades the fragment's one-hour receipt for a 30-day one in an HttpOnly
|
|
17
|
+
* cookie, so the same person can request this iPhone again, after a removal,
|
|
18
|
+
* without the profile. The Console stores nothing: the cookie is a receipt
|
|
19
|
+
* signed with its secret, checked against the session on every use.
|
|
20
|
+
*
|
|
21
|
+
* The cookie is `Secure`, `SameSite=Strict`, and scoped to these routes, so
|
|
22
|
+
* no other request carries it and no other site's request does either. Every
|
|
23
|
+
* route here needs the Console's session, and a POST or DELETE only from this
|
|
24
|
+
* Console's own pages.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
export const IOS_DEVICE_COOKIE = "hot-updater-ios-device";
|
|
28
|
+
|
|
29
|
+
/** The routes the cookie is sent to, under the Console's path. */
|
|
30
|
+
export const IOS_DEVICE_COOKIE_ROUTES = "/_hot-updater/devices";
|
|
31
|
+
|
|
32
|
+
export const IOS_DEVICE_RECEIPT_ROUTE = `${IOS_DEVICE_COOKIE_ROUTES}/receipt`;
|
|
33
|
+
export const IOS_DEVICE_REQUEST_ROUTE = `${IOS_DEVICE_COOKIE_ROUTES}/request`;
|
|
34
|
+
|
|
35
|
+
const json = (body: unknown, status = 200, headers: HeadersInit = {}) =>
|
|
36
|
+
new Response(JSON.stringify(body), {
|
|
37
|
+
status,
|
|
38
|
+
headers: {
|
|
39
|
+
"cache-control": "no-store",
|
|
40
|
+
"content-type": "application/json; charset=utf-8",
|
|
41
|
+
...headers,
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const refusal = (status: number, message: string) =>
|
|
46
|
+
json({ error: message }, status);
|
|
47
|
+
|
|
48
|
+
const cookieOf = (request: Request): string | null => {
|
|
49
|
+
for (const part of (request.headers.get("cookie") ?? "").split(";")) {
|
|
50
|
+
const [name, ...value] = part.trim().split("=");
|
|
51
|
+
if (name === IOS_DEVICE_COOKIE) return value.join("=") || null;
|
|
52
|
+
}
|
|
53
|
+
return null;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** The cookie's `Path`: these routes, under the Console's own path. */
|
|
57
|
+
const cookiePath = (request: Request, route: string) =>
|
|
58
|
+
`${new URL(publicConsoleBase(request, route)).pathname.replace(/\/$/u, "")}${IOS_DEVICE_COOKIE_ROUTES}`;
|
|
59
|
+
|
|
60
|
+
const setCookie = (request: Request, route: string, value: string) =>
|
|
61
|
+
[
|
|
62
|
+
`${IOS_DEVICE_COOKIE}=${value}`,
|
|
63
|
+
`Path=${cookiePath(request, route)}`,
|
|
64
|
+
`Max-Age=${value === "" ? 0 : Math.floor(KEPT_DEVICE_RECEIPT_TTL_MS / 1000)}`,
|
|
65
|
+
"HttpOnly",
|
|
66
|
+
"Secure",
|
|
67
|
+
"SameSite=Strict",
|
|
68
|
+
].join("; ");
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Whether a request that changes something comes from this Console's own
|
|
72
|
+
* pages: a browser says so in `Sec-Fetch-Site` and `Origin`. With the
|
|
73
|
+
* cookie's `SameSite=Strict`, another site's form or script gets nowhere.
|
|
74
|
+
*/
|
|
75
|
+
const sameOrigin = (request: Request, route: string) => {
|
|
76
|
+
const site = request.headers.get("sec-fetch-site");
|
|
77
|
+
if (site !== null && site !== "same-origin") return false;
|
|
78
|
+
const origin = request.headers.get("origin");
|
|
79
|
+
if (origin === null) return site === "same-origin";
|
|
80
|
+
return (
|
|
81
|
+
origin === new URL(request.url).origin ||
|
|
82
|
+
origin === new URL(publicConsoleBase(request, route)).origin
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
const readJson = async (request: Request) => {
|
|
87
|
+
if (
|
|
88
|
+
!(request.headers.get("content-type") ?? "").startsWith("application/json")
|
|
89
|
+
) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
try {
|
|
93
|
+
const body: unknown = await request.json();
|
|
94
|
+
return typeof body === "object" && body !== null
|
|
95
|
+
? (body as Record<string, unknown>)
|
|
96
|
+
: null;
|
|
97
|
+
} catch {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** The cookie's receipt, for this person only; null when it holds none. */
|
|
103
|
+
const keptReceipt = async (
|
|
104
|
+
request: Request,
|
|
105
|
+
secret: string,
|
|
106
|
+
viewer: IosDeviceViewer,
|
|
107
|
+
now: number,
|
|
108
|
+
): Promise<DeviceReceipt | null> => {
|
|
109
|
+
const cookie = cookieOf(request);
|
|
110
|
+
if (cookie === null) return null;
|
|
111
|
+
const receipt = await verifyKeptDeviceReceipt(secret, cookie, now);
|
|
112
|
+
return typeof receipt === "string" || receipt.e !== viewer.email
|
|
113
|
+
? null
|
|
114
|
+
: receipt;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export interface IosDeviceCookieDeps {
|
|
118
|
+
/** The signed-in viewer, or the access check's 401/403. */
|
|
119
|
+
readonly viewer: () => Promise<IosDeviceViewer>;
|
|
120
|
+
readonly core: () => Promise<Pick<HotUpdaterCoreApi, "requestIosDevice">>;
|
|
121
|
+
readonly now?: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const withViewer = async (
|
|
125
|
+
deps: IosDeviceCookieDeps,
|
|
126
|
+
run: (viewer: IosDeviceViewer) => Promise<Response>,
|
|
127
|
+
) => {
|
|
128
|
+
let viewer: IosDeviceViewer;
|
|
129
|
+
try {
|
|
130
|
+
viewer = await deps.viewer();
|
|
131
|
+
} catch (error) {
|
|
132
|
+
if (error instanceof Response) return error;
|
|
133
|
+
throw error;
|
|
134
|
+
}
|
|
135
|
+
return run(viewer);
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* `/_hot-updater/devices/receipt`:
|
|
140
|
+
*
|
|
141
|
+
* - GET: the UDID this Safari proved for this person, or null.
|
|
142
|
+
* - POST `{ receipt }`: trades the fragment's receipt, for this person, for
|
|
143
|
+
* the cookie; 403 for anyone else's, an expired one, or a forged one.
|
|
144
|
+
* - DELETE: forgets the cookie, as sign-out does.
|
|
145
|
+
*/
|
|
146
|
+
export const handleIosDeviceReceipt = async (
|
|
147
|
+
request: Request,
|
|
148
|
+
deps: IosDeviceCookieDeps,
|
|
149
|
+
): Promise<Response> =>
|
|
150
|
+
withViewer(deps, async (viewer) => {
|
|
151
|
+
const now = deps.now ?? Date.now();
|
|
152
|
+
const route = IOS_DEVICE_RECEIPT_ROUTE;
|
|
153
|
+
if (request.method === "DELETE") {
|
|
154
|
+
if (!sameOrigin(request, route)) return refusal(403, "Forbidden");
|
|
155
|
+
return json({ udid: null }, 200, {
|
|
156
|
+
"set-cookie": setCookie(request, route, ""),
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
const secret = readConsoleSecret(request);
|
|
160
|
+
if (request.method === "GET") {
|
|
161
|
+
const receipt =
|
|
162
|
+
secret === undefined
|
|
163
|
+
? null
|
|
164
|
+
: await keptReceipt(request, secret, viewer, now);
|
|
165
|
+
return json({ udid: receipt?.u ?? null });
|
|
166
|
+
}
|
|
167
|
+
if (request.method !== "POST") {
|
|
168
|
+
return new Response(null, {
|
|
169
|
+
status: 405,
|
|
170
|
+
headers: { allow: "GET, POST, DELETE" },
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
if (!sameOrigin(request, route)) return refusal(403, "Forbidden");
|
|
174
|
+
if (secret === undefined) {
|
|
175
|
+
return refusal(409, "This Console has no secret to sign with.");
|
|
176
|
+
}
|
|
177
|
+
const body = await readJson(request);
|
|
178
|
+
if (body === null || typeof body.receipt !== "string") {
|
|
179
|
+
return refusal(400, "Send this iPhone's receipt.");
|
|
180
|
+
}
|
|
181
|
+
const receipt = await verifyDeviceReceipt(secret, body.receipt, now);
|
|
182
|
+
if (typeof receipt === "string" || receipt.e !== viewer.email) {
|
|
183
|
+
return refusal(403, "Check this iPhone again from this account.");
|
|
184
|
+
}
|
|
185
|
+
return json({ udid: receipt.u }, 200, {
|
|
186
|
+
"set-cookie": setCookie(
|
|
187
|
+
request,
|
|
188
|
+
route,
|
|
189
|
+
await createKeptDeviceReceipt(secret, receipt, now),
|
|
190
|
+
),
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* `/_hot-updater/devices/request`, POST `{ name, receipt? }`: requests the
|
|
196
|
+
* iPhone a receipt names, for the signed-in person, under `name`. The UDID
|
|
197
|
+
* comes from the fragment's receipt when the page has one, else from the
|
|
198
|
+
* cookie, never from the request's own words.
|
|
199
|
+
*/
|
|
200
|
+
export const handleIosDeviceRequest = async (
|
|
201
|
+
request: Request,
|
|
202
|
+
deps: IosDeviceCookieDeps,
|
|
203
|
+
): Promise<Response> =>
|
|
204
|
+
withViewer(deps, async (viewer) => {
|
|
205
|
+
const now = deps.now ?? Date.now();
|
|
206
|
+
const route = IOS_DEVICE_REQUEST_ROUTE;
|
|
207
|
+
if (request.method !== "POST") {
|
|
208
|
+
return new Response(null, { status: 405, headers: { allow: "POST" } });
|
|
209
|
+
}
|
|
210
|
+
if (!sameOrigin(request, route)) return refusal(403, "Forbidden");
|
|
211
|
+
const secret = readConsoleSecret(request);
|
|
212
|
+
const body = await readJson(request);
|
|
213
|
+
if (body === null) return refusal(400, "Send this iPhone's name.");
|
|
214
|
+
let name: string;
|
|
215
|
+
try {
|
|
216
|
+
name = deviceName(body.name);
|
|
217
|
+
} catch (error) {
|
|
218
|
+
return refusal(400, (error as Error).message);
|
|
219
|
+
}
|
|
220
|
+
let udid: string | null = null;
|
|
221
|
+
if (secret !== undefined) {
|
|
222
|
+
if (typeof body.receipt === "string") {
|
|
223
|
+
const receipt = await verifyDeviceReceipt(secret, body.receipt, now);
|
|
224
|
+
udid =
|
|
225
|
+
typeof receipt === "string" || receipt.e !== viewer.email
|
|
226
|
+
? null
|
|
227
|
+
: receipt.u;
|
|
228
|
+
}
|
|
229
|
+
// A page left open past its fragment's hour still has the cookie.
|
|
230
|
+
udid ??= (await keptReceipt(request, secret, viewer, now))?.u ?? null;
|
|
231
|
+
}
|
|
232
|
+
if (udid === null) {
|
|
233
|
+
return refusal(403, "Check this iPhone again from this account.");
|
|
234
|
+
}
|
|
235
|
+
const core = await deps.core();
|
|
236
|
+
const result: { device: IosDeviceRow; created: boolean } =
|
|
237
|
+
await core.requestIosDevice({ udid, name, requestedBy: viewer.email });
|
|
238
|
+
return json(result);
|
|
239
|
+
});
|
|
@@ -205,6 +205,9 @@ export const receiveDeviceResponse = async (
|
|
|
205
205
|
const { grant, secret } = checked;
|
|
206
206
|
const base = publicConsoleBase(request, IOS_DEVICE_RESPONSE_PATH);
|
|
207
207
|
let location: string;
|
|
208
|
+
// Either answer hands the page a receipt, which it trades for the cookie
|
|
209
|
+
// that lets this Safari request the iPhone again without the profile.
|
|
210
|
+
const receipt = await createDeviceReceipt(secret, { u: udid, e: grant.e });
|
|
208
211
|
if (grant.m === "register") {
|
|
209
212
|
const core = await loadCore();
|
|
210
213
|
await core.requestIosDevice({
|
|
@@ -212,9 +215,8 @@ export const receiveDeviceResponse = async (
|
|
|
212
215
|
name: grant.n ?? "iPhone",
|
|
213
216
|
requestedBy: grant.e,
|
|
214
217
|
});
|
|
215
|
-
location = `${base}${IOS_DEVICES_PATH}#udid=${encodeURIComponent(udid)}&requested=1`;
|
|
218
|
+
location = `${base}${IOS_DEVICES_PATH}#udid=${encodeURIComponent(udid)}&r=${encodeURIComponent(receipt)}&requested=1`;
|
|
216
219
|
} else {
|
|
217
|
-
const receipt = await createDeviceReceipt(secret, { u: udid, e: grant.e });
|
|
218
220
|
const page =
|
|
219
221
|
grant.b === undefined ? IOS_DEVICES_PATH : nativeBuildDetailPath(grant.b);
|
|
220
222
|
location = `${base}${page}#udid=${encodeURIComponent(udid)}&r=${encodeURIComponent(receipt)}`;
|
|
@@ -8,7 +8,6 @@ import type { ConsolePrincipal } from "../../index";
|
|
|
8
8
|
import {
|
|
9
9
|
createDeviceProfileToken,
|
|
10
10
|
DEVICE_PROFILE_TOKEN_TTL_MS,
|
|
11
|
-
verifyDeviceReceipt,
|
|
12
11
|
} from "./deviceProfileToken";
|
|
13
12
|
import {
|
|
14
13
|
CONSOLE_SECRET_ENV,
|
|
@@ -165,35 +164,6 @@ export const issueDeviceProfileLink = async (
|
|
|
165
164
|
};
|
|
166
165
|
};
|
|
167
166
|
|
|
168
|
-
/**
|
|
169
|
-
* Requests the iPhone a receipt names, for the person whose profile made it:
|
|
170
|
-
* the UDID comes from the receipt alone. Another person's receipt, an expired
|
|
171
|
-
* one, or none, is refused.
|
|
172
|
-
*/
|
|
173
|
-
export const requestIosDeviceAccess = async (
|
|
174
|
-
request: Request,
|
|
175
|
-
core: Pick<HotUpdaterCoreApi, "requestIosDevice">,
|
|
176
|
-
viewer: IosDeviceViewer,
|
|
177
|
-
input: { readonly receipt: string; readonly name: string },
|
|
178
|
-
) => {
|
|
179
|
-
const secret = readConsoleSecret(request);
|
|
180
|
-
const receipt =
|
|
181
|
-
secret === undefined
|
|
182
|
-
? "invalid"
|
|
183
|
-
: await verifyDeviceReceipt(secret, input.receipt);
|
|
184
|
-
if (receipt === "expired") {
|
|
185
|
-
throw forbidden("Check this iPhone again: its check has expired.");
|
|
186
|
-
}
|
|
187
|
-
if (receipt === "invalid" || receipt.e !== viewer.email) {
|
|
188
|
-
throw forbidden("Check this iPhone again from this account.");
|
|
189
|
-
}
|
|
190
|
-
return core.requestIosDevice({
|
|
191
|
-
udid: receipt.u,
|
|
192
|
-
name: deviceName(input.name),
|
|
193
|
-
requestedBy: viewer.email,
|
|
194
|
-
});
|
|
195
|
-
};
|
|
196
|
-
|
|
197
167
|
/**
|
|
198
168
|
* Removes a device from the registry, as read now: an approver removes any,
|
|
199
169
|
* and the person who asked withdraws their own while it is still requested.
|
package/src/routeTree.gen.ts
CHANGED
|
@@ -20,6 +20,8 @@ import { Route as NativeBuildsBuildIdRouteImport } from './routes/native-builds_
|
|
|
20
20
|
import { Route as NativeBuildsDevicesRouteImport } from './routes/native-builds_.devices'
|
|
21
21
|
import { Route as HotUpdaterDevicesDeviceResponseRouteImport } from './routes/[_]hot-updater/devices/device-response'
|
|
22
22
|
import { Route as HotUpdaterDevicesDeviceDotmobileconfigRouteImport } from './routes/[_]hot-updater/devices/device[.]mobileconfig'
|
|
23
|
+
import { Route as HotUpdaterDevicesReceiptRouteImport } from './routes/[_]hot-updater/devices/receipt'
|
|
24
|
+
import { Route as HotUpdaterDevicesRequestRouteImport } from './routes/[_]hot-updater/devices/request'
|
|
23
25
|
import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$'
|
|
24
26
|
import { Route as HotUpdaterNativeBuildsBuildIdManifestDotplistRouteImport } from './routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist'
|
|
25
27
|
import { Route as ApiBundlesBundleIdDownloadRouteImport } from './routes/api/bundles/$bundleId/download'
|
|
@@ -82,6 +84,18 @@ const HotUpdaterDevicesDeviceDotmobileconfigRoute =
|
|
|
82
84
|
path: '/_hot-updater/devices/device.mobileconfig',
|
|
83
85
|
getParentRoute: () => rootRouteImport,
|
|
84
86
|
} as any)
|
|
87
|
+
const HotUpdaterDevicesReceiptRoute =
|
|
88
|
+
HotUpdaterDevicesReceiptRouteImport.update({
|
|
89
|
+
id: '/_hot-updater/devices/receipt',
|
|
90
|
+
path: '/_hot-updater/devices/receipt',
|
|
91
|
+
getParentRoute: () => rootRouteImport,
|
|
92
|
+
} as any)
|
|
93
|
+
const HotUpdaterDevicesRequestRoute =
|
|
94
|
+
HotUpdaterDevicesRequestRouteImport.update({
|
|
95
|
+
id: '/_hot-updater/devices/request',
|
|
96
|
+
path: '/_hot-updater/devices/request',
|
|
97
|
+
getParentRoute: () => rootRouteImport,
|
|
98
|
+
} as any)
|
|
85
99
|
const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({
|
|
86
100
|
id: '/api/auth/$',
|
|
87
101
|
path: '/api/auth/$',
|
|
@@ -118,6 +132,8 @@ export interface FileRoutesByFullPath {
|
|
|
118
132
|
'/native-builds/devices': typeof NativeBuildsDevicesRoute
|
|
119
133
|
'/_hot-updater/devices/device-response': typeof HotUpdaterDevicesDeviceResponseRoute
|
|
120
134
|
'/_hot-updater/devices/device.mobileconfig': typeof HotUpdaterDevicesDeviceDotmobileconfigRoute
|
|
135
|
+
'/_hot-updater/devices/receipt': typeof HotUpdaterDevicesReceiptRoute
|
|
136
|
+
'/_hot-updater/devices/request': typeof HotUpdaterDevicesRequestRoute
|
|
121
137
|
'/api/auth/$': typeof ApiAuthSplatRoute
|
|
122
138
|
'/_hot-updater/native-builds/$buildId/manifest.plist': typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
|
|
123
139
|
'/api/bundles/$bundleId/download': typeof ApiBundlesBundleIdDownloadRoute
|
|
@@ -135,6 +151,8 @@ export interface FileRoutesByTo {
|
|
|
135
151
|
'/native-builds/devices': typeof NativeBuildsDevicesRoute
|
|
136
152
|
'/_hot-updater/devices/device-response': typeof HotUpdaterDevicesDeviceResponseRoute
|
|
137
153
|
'/_hot-updater/devices/device.mobileconfig': typeof HotUpdaterDevicesDeviceDotmobileconfigRoute
|
|
154
|
+
'/_hot-updater/devices/receipt': typeof HotUpdaterDevicesReceiptRoute
|
|
155
|
+
'/_hot-updater/devices/request': typeof HotUpdaterDevicesRequestRoute
|
|
138
156
|
'/api/auth/$': typeof ApiAuthSplatRoute
|
|
139
157
|
'/_hot-updater/native-builds/$buildId/manifest.plist': typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
|
|
140
158
|
'/api/bundles/$bundleId/download': typeof ApiBundlesBundleIdDownloadRoute
|
|
@@ -153,6 +171,8 @@ export interface FileRoutesById {
|
|
|
153
171
|
'/native-builds_/devices': typeof NativeBuildsDevicesRoute
|
|
154
172
|
'/_hot-updater/devices/device-response': typeof HotUpdaterDevicesDeviceResponseRoute
|
|
155
173
|
'/_hot-updater/devices/device.mobileconfig': typeof HotUpdaterDevicesDeviceDotmobileconfigRoute
|
|
174
|
+
'/_hot-updater/devices/receipt': typeof HotUpdaterDevicesReceiptRoute
|
|
175
|
+
'/_hot-updater/devices/request': typeof HotUpdaterDevicesRequestRoute
|
|
156
176
|
'/api/auth/$': typeof ApiAuthSplatRoute
|
|
157
177
|
'/_hot-updater/native-builds/$buildId/manifest.plist': typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
|
|
158
178
|
'/api/bundles/$bundleId/download': typeof ApiBundlesBundleIdDownloadRoute
|
|
@@ -172,6 +192,8 @@ export interface FileRouteTypes {
|
|
|
172
192
|
| '/native-builds/devices'
|
|
173
193
|
| '/_hot-updater/devices/device-response'
|
|
174
194
|
| '/_hot-updater/devices/device.mobileconfig'
|
|
195
|
+
| '/_hot-updater/devices/receipt'
|
|
196
|
+
| '/_hot-updater/devices/request'
|
|
175
197
|
| '/api/auth/$'
|
|
176
198
|
| '/_hot-updater/native-builds/$buildId/manifest.plist'
|
|
177
199
|
| '/api/bundles/$bundleId/download'
|
|
@@ -189,6 +211,8 @@ export interface FileRouteTypes {
|
|
|
189
211
|
| '/native-builds/devices'
|
|
190
212
|
| '/_hot-updater/devices/device-response'
|
|
191
213
|
| '/_hot-updater/devices/device.mobileconfig'
|
|
214
|
+
| '/_hot-updater/devices/receipt'
|
|
215
|
+
| '/_hot-updater/devices/request'
|
|
192
216
|
| '/api/auth/$'
|
|
193
217
|
| '/_hot-updater/native-builds/$buildId/manifest.plist'
|
|
194
218
|
| '/api/bundles/$bundleId/download'
|
|
@@ -206,6 +230,8 @@ export interface FileRouteTypes {
|
|
|
206
230
|
| '/native-builds_/devices'
|
|
207
231
|
| '/_hot-updater/devices/device-response'
|
|
208
232
|
| '/_hot-updater/devices/device.mobileconfig'
|
|
233
|
+
| '/_hot-updater/devices/receipt'
|
|
234
|
+
| '/_hot-updater/devices/request'
|
|
209
235
|
| '/api/auth/$'
|
|
210
236
|
| '/_hot-updater/native-builds/$buildId/manifest.plist'
|
|
211
237
|
| '/api/bundles/$bundleId/download'
|
|
@@ -224,6 +250,8 @@ export interface RootRouteChildren {
|
|
|
224
250
|
NativeBuildsDevicesRoute: typeof NativeBuildsDevicesRoute
|
|
225
251
|
HotUpdaterDevicesDeviceResponseRoute: typeof HotUpdaterDevicesDeviceResponseRoute
|
|
226
252
|
HotUpdaterDevicesDeviceDotmobileconfigRoute: typeof HotUpdaterDevicesDeviceDotmobileconfigRoute
|
|
253
|
+
HotUpdaterDevicesReceiptRoute: typeof HotUpdaterDevicesReceiptRoute
|
|
254
|
+
HotUpdaterDevicesRequestRoute: typeof HotUpdaterDevicesRequestRoute
|
|
227
255
|
ApiAuthSplatRoute: typeof ApiAuthSplatRoute
|
|
228
256
|
HotUpdaterNativeBuildsBuildIdManifestDotplistRoute: typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
|
|
229
257
|
ApiBundlesBundleIdDownloadRoute: typeof ApiBundlesBundleIdDownloadRoute
|
|
@@ -309,6 +337,20 @@ declare module '@tanstack/react-router' {
|
|
|
309
337
|
preLoaderRoute: typeof HotUpdaterDevicesDeviceDotmobileconfigRouteImport
|
|
310
338
|
parentRoute: typeof rootRouteImport
|
|
311
339
|
}
|
|
340
|
+
'/_hot-updater/devices/receipt': {
|
|
341
|
+
id: '/_hot-updater/devices/receipt'
|
|
342
|
+
path: '/_hot-updater/devices/receipt'
|
|
343
|
+
fullPath: '/_hot-updater/devices/receipt'
|
|
344
|
+
preLoaderRoute: typeof HotUpdaterDevicesReceiptRouteImport
|
|
345
|
+
parentRoute: typeof rootRouteImport
|
|
346
|
+
}
|
|
347
|
+
'/_hot-updater/devices/request': {
|
|
348
|
+
id: '/_hot-updater/devices/request'
|
|
349
|
+
path: '/_hot-updater/devices/request'
|
|
350
|
+
fullPath: '/_hot-updater/devices/request'
|
|
351
|
+
preLoaderRoute: typeof HotUpdaterDevicesRequestRouteImport
|
|
352
|
+
parentRoute: typeof rootRouteImport
|
|
353
|
+
}
|
|
312
354
|
'/api/auth/$': {
|
|
313
355
|
id: '/api/auth/$'
|
|
314
356
|
path: '/api/auth/$'
|
|
@@ -353,6 +395,8 @@ const rootRouteChildren: RootRouteChildren = {
|
|
|
353
395
|
HotUpdaterDevicesDeviceResponseRoute: HotUpdaterDevicesDeviceResponseRoute,
|
|
354
396
|
HotUpdaterDevicesDeviceDotmobileconfigRoute:
|
|
355
397
|
HotUpdaterDevicesDeviceDotmobileconfigRoute,
|
|
398
|
+
HotUpdaterDevicesReceiptRoute: HotUpdaterDevicesReceiptRoute,
|
|
399
|
+
HotUpdaterDevicesRequestRoute: HotUpdaterDevicesRequestRoute,
|
|
356
400
|
ApiAuthSplatRoute: ApiAuthSplatRoute,
|
|
357
401
|
HotUpdaterNativeBuildsBuildIdManifestDotplistRoute:
|
|
358
402
|
HotUpdaterNativeBuildsBuildIdManifestDotplistRoute,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
// This iPhone's kept proof, an HttpOnly cookie scoped to these routes: see
|
|
4
|
+
// iosDeviceCookie.ts. Every method needs the Console's session.
|
|
5
|
+
export const Route = createFileRoute("/_hot-updater/devices/receipt")({
|
|
6
|
+
server: {
|
|
7
|
+
handlers: {
|
|
8
|
+
ANY: async ({ request }) => {
|
|
9
|
+
const [cookie, { iosDeviceViewer }, { requireConsoleAccess }, config] =
|
|
10
|
+
await Promise.all([
|
|
11
|
+
import("@/lib/server/iosDeviceCookie"),
|
|
12
|
+
import("@/lib/server/iosDevices"),
|
|
13
|
+
import("@/lib/server/auth.server"),
|
|
14
|
+
import("@/lib/server/config.server"),
|
|
15
|
+
]);
|
|
16
|
+
const loaded = () => config.prepareConfig(request);
|
|
17
|
+
return cookie.handleIosDeviceReceipt(request, {
|
|
18
|
+
viewer: async () =>
|
|
19
|
+
iosDeviceViewer(
|
|
20
|
+
await requireConsoleAccess(request),
|
|
21
|
+
(await loaded()).config.deviceApprovers,
|
|
22
|
+
),
|
|
23
|
+
core: async () => (await loaded()).core,
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
// This iPhone's kept proof, an HttpOnly cookie scoped to these routes: see
|
|
4
|
+
// iosDeviceCookie.ts. Every method needs the Console's session.
|
|
5
|
+
export const Route = createFileRoute("/_hot-updater/devices/request")({
|
|
6
|
+
server: {
|
|
7
|
+
handlers: {
|
|
8
|
+
ANY: async ({ request }) => {
|
|
9
|
+
const [cookie, { iosDeviceViewer }, { requireConsoleAccess }, config] =
|
|
10
|
+
await Promise.all([
|
|
11
|
+
import("@/lib/server/iosDeviceCookie"),
|
|
12
|
+
import("@/lib/server/iosDevices"),
|
|
13
|
+
import("@/lib/server/auth.server"),
|
|
14
|
+
import("@/lib/server/config.server"),
|
|
15
|
+
]);
|
|
16
|
+
const loaded = () => config.prepareConfig(request);
|
|
17
|
+
return cookie.handleIosDeviceRequest(request, {
|
|
18
|
+
viewer: async () =>
|
|
19
|
+
iosDeviceViewer(
|
|
20
|
+
await requireConsoleAccess(request),
|
|
21
|
+
(await loaded()).config.deviceApprovers,
|
|
22
|
+
),
|
|
23
|
+
core: async () => (await loaded()).core,
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-yC7KdImc.js";import{d as t}from"./uuidv7-DAoOOpz9.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})},c=[`pending`,`approved`,`registered`],l=e=>typeof e.status==`string`&&c.includes(e.status)?{status:e.status}:{};export{n as i,s as n,o as r,l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,Di as t,Hr as n,Oi as r,Ri as i,Si as a,Vi as o,Z as s,_r as c,di as l,gr as u,vr as d,wi as f,zr as p}from"./sidebar-yC7KdImc.js";import{t as m}from"./link-CN3iHC4A.js";import{t as h}from"./useMutation-w3qYaU2L.js";import{c as g,f as _,l as v,o as ee,s as y,u as te,y as ne}from"./TargetDisplay-KU7JhIWG.js";import{t as re}from"./loader-circle-iMqC-8ZE.js";import{t as ie}from"./refresh-cw-BHhBYjS8.js";import{t as ae}from"./send-DuMOCzbD.js";import{t as oe}from"./smartphone-D1C6BRd_.js";import{a as b,i as x,n as S,o as C}from"./badge-FZMD5vvS.js";import{n as se}from"./relativeTime-BYRt19mj.js";import{a as ce,n as le,r as ue,t as de}from"./field-CdhSgWhI.js";import{m as fe}from"./api-C1OPeiG1.js";var w=o(i(),1),T=(e=>(e[e.Border=-1]=`Border`,e[e.Data=0]=`Data`,e[e.Function=1]=`Function`,e[e.Position=2]=`Position`,e[e.Timing=3]=`Timing`,e[e.Alignment=4]=`Alignment`,e))(T||{}),pe=[0,1],E=[1,0],D=[2,3],O=[3,2],me={L:pe,M:E,Q:D,H:O},he=/^\d*$/,ge=/^[A-Z0-9 $%*+./:-]*$/,k=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`,A=1,j=40,M=3,_e=3,N=40,ve=10,P=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],F=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],ye=class{constructor(e,t,n,r){if(this.version=e,this.ecc=t,e<A||e>j)throw RangeError(`Version value out of range`);if(r<-1||r>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let i=Array.from({length:this.size}).fill(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let a=this.addEccAndInterleave(n);if(this.drawCodewords(a),r===-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(r=t,e=n),this.applyMask(t)}}this.mask=r,this.applyMask(r),this.drawFormatBits(r)}size;mask;modules=[];types=[];getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,T.Timing),this.setFunctionModule(e,6,e%2==0,T.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n===0&&r===0||n===0&&r===t-1||n===t-1&&r===0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.ecc[1]<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,L(r,e));this.setFunctionModule(8,7,L(r,6)),this.setFunctionModule(8,8,L(r,7)),this.setFunctionModule(7,8,L(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,L(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,L(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,L(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=L(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;a>=0&&a<this.size&&o>=0&&o<this.size&&this.setFunctionModule(a,o,i!==2&&i!==4,T.Position)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!==1,T.Alignment)}setFunctionModule(e,t,n,r=T.Function){this.modules[t][e]=n,this.types[t][e]=r}addEccAndInterleave(e){let t=this.version,n=this.ecc;if(e.length!==W(t,n))throw RangeError(`Invalid argument`);let r=F[n[0]][t],i=P[n[0]][t],a=Math.floor(U(t)/8),o=r-a%r,s=Math.floor(a/r),c=[],l=Oe(i);for(let t=0,n=0;t<r;t++){let r=e.slice(n,n+s-i+(t<o?0:1));n+=r.length;let a=ke(r,l);t<o&&r.push(0),c.push(r.concat(a))}let u=[];for(let e=0;e<c[0].length;e++)c.forEach((t,n)=>{(e!==s-i||n>=o)&&u.push(t[e])});return u}drawCodewords(e){if(e.length!==Math.floor(U(this.version)/8))throw RangeError(`Invalid argument`);let t=0;for(let n=this.size-1;n>=1;n-=2){n===6&&(n=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let a=n-i,o=n+1&2?r:this.size-1-r;!this.types[o][a]&&t<e.length*8&&(this.modules[o][a]=L(e[t>>>3],7-(t&7)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.types[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[t][a]===n?(r++,r===5?e+=M:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*N),n=this.modules[t][a],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*N}for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][t]===n?(r++,r===5?e+=M:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*N),n=this.modules[a][t],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*N}for(let t=0;t<this.size-1;t++)for(let n=0;n<this.size-1;n++){let r=this.modules[t][n];r===this.modules[t][n+1]&&r===this.modules[t+1][n]&&r===this.modules[t+1][n+1]&&(e+=_e)}let t=0;for(let e of this.modules)t=e.reduce((e,t)=>e+ +!!t,t);let n=this.size*this.size,r=Math.ceil(Math.abs(t*20-n*10)/n)-1;return e+=r*ve,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}};function I(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function L(e,t){return(e>>>t&1)!=0}var R=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}getData(){return this.bitData.slice()}},be=[1,10,12,14],xe=[2,9,11,13],Se=[4,8,16,16];function z(e,t){return e[Math.floor((t+7)/17)+1]}function B(e){let t=[];for(let n of e)I(n,8,t);return new R(Se,e.length,t)}function Ce(e){if(!V(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let n=0;n<e.length;){let r=Math.min(e.length-n,3);I(Number.parseInt(e.substring(n,n+r),10),r*3+1,t),n+=r}return new R(be,e.length,t)}function we(e){if(!H(e))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let t=[],n;for(n=0;n+2<=e.length;n+=2){let r=k.indexOf(e.charAt(n))*45;r+=k.indexOf(e.charAt(n+1)),I(r,11,t)}return n<e.length&&I(k.indexOf(e.charAt(n)),6,t),new R(xe,e.length,t)}function Te(e){return e===``?[]:V(e)?[Ce(e)]:H(e)?[we(e)]:[B(De(e))]}function V(e){return he.test(e)}function H(e){return ge.test(e)}function Ee(e,t){let n=0;for(let r of e){let e=z(r.mode,t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}function De(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)===`%`?(t.push(Number.parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}function U(e){if(e<A||e>j)throw RangeError(`Version number out of range`);let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function W(e,t){return Math.floor(U(e)/8)-P[t[0]][e]*F[t[0]][e]}function Oe(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let t=[];for(let n=0;n<e-1;n++)t.push(0);t.push(1);let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=G(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=G(n,2)}return t}function ke(e,t){let n=t.map(e=>0);for(let r of e){let e=r^n.shift();n.push(0),t.forEach((t,r)=>n[r]^=G(t,e))}return n}function G(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}function Ae(e,t,n=1,r=40,i=-1,a=!0){if(!(A<=n&&n<=r&&r<=j)||i<-1||i>7)throw RangeError(`Invalid value`);let o,s;for(o=n;;o++){let n=W(o,t)*8,i=Ee(e,o);if(i<=n){s=i;break}if(o>=r)throw RangeError(`Data too long`)}for(let e of[E,D,O])a&&s<=W(o,e)*8&&(t=e);let c=[];for(let t of e){I(t.mode[0],4,c),I(t.numChars,z(t.mode,o),c);for(let e of t.getData())c.push(e)}let l=W(o,t)*8;I(0,Math.min(4,l-c.length),c),I(0,(8-c.length%8)%8,c);for(let e=236;c.length<l;e^=253)I(e,8,c);let u=Array.from({length:Math.ceil(c.length/8)},()=>0);return c.forEach((e,t)=>u[t>>>3]|=e<<7-(t&7)),new ye(o,t,u,i)}function je(e,t){let{ecc:n=`L`,boostEcc:r=!1,minVersion:i=1,maxVersion:a=40,maskPattern:o=-1,border:s=1}=t||{},c=typeof e==`string`?Te(e):Array.isArray(e)?[B(e)]:void 0;if(!c)throw Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let l=Ae(c,me[n],i,a,o,r),u=Me({version:l.version,maskPattern:l.mask,size:l.size,data:l.modules,types:l.types},s);return t?.invert&&(u.data=u.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(u),u}function Me(e,t=1){if(!t)return e;let{size:n}=e,r=n+t*2;e.size=r,e.data.forEach(e=>{for(let n=0;n<t;n++)e.unshift(!1),e.push(!1)});for(let n=0;n<t;n++)e.data.unshift(Array.from({length:r},e=>!1)),e.data.push(Array.from({length:r},e=>!1));let i=T.Border;e.types.forEach(e=>{for(let n=0;n<t;n++)e.unshift(i),e.push(i)});for(let n=0;n<t;n++)e.types.unshift(Array.from({length:r},e=>i)),e.types.push(Array.from({length:r},e=>i));return e}var Ne=e=>{let{data:t,size:n}=je(e,{ecc:`M`,border:4}),r=``;return t.forEach((e,t)=>e.forEach((e,n)=>{e&&(r+=`M${n} ${t}h1v1h-1z`)})),{size:n,path:r}},K=t();function Pe({value:e,label:t,className:n}){let{size:r,path:i}=(0,w.useMemo)(()=>Ne(e),[e]);return(0,K.jsxs)(`svg`,{"aria-label":t,className:d(`aspect-square rounded-md`,n),role:`img`,shapeRendering:`crispEdges`,viewBox:`0 0 ${r} ${r}`,children:[(0,K.jsx)(`rect`,{fill:`#fff`,height:r,width:r}),(0,K.jsx)(`path`,{d:i,fill:`#000`})]})}var q=o(se(),1),Fe=f({method:`GET`}).middleware([p]).handler(r(`3a62744a539db57f5a29f39cec7fb03fd2817703b40d98e6da69e2f5e7ae6f3d`)),Ie=f({method:`POST`}).middleware([p]).handler(r(`4b173c2b2f5ea074a1f10862282308f11f5a043c044d64b6f63e6a29d571ec64`)),Le=f({method:`POST`}).middleware([p]).handler(r(`24005564c8e58dbdeadba89e3f567255a991f5695359cbcc2e8392e033dac8e1`)),Re=f({method:`POST`}).middleware([p]).handler(r(`7908c24ccc2674ce07a553a645b8f4790889975a80f424a05d71a9fb8ab49787`)),ze=f({method:`POST`}).middleware([p]).handler(r(`4c92dfeae76a6fc898d6f38941eeedaec1f3d118f51a6f31ebf0bb1cea3fcea4`)),Be=f({method:`POST`}).middleware([p]).handler(r(`8e37ec67413ceba554adb2d4b15e53682595a089d4b431ba7965d4347fb500fc`)),Ve=f({method:`GET`}).middleware([p]).handler(r(`a11cb4014e6b23528f76382c43684798b0e84a6936aaba02c918e8f4e216e282`)),J={all:[`ios-devices`],list:e=>[`ios-devices`,e??`all`],ipa:e=>[`native-build-ipa-devices`,e]},Y=600*1e3;function He(e){return n({queryKey:J.list(e),queryFn:()=>Fe({data:e===void 0?{}:{status:e}}),placeholderData:l})}function X(e,t=!0){return n({queryKey:[`ios-device-profile-link`,e],queryFn:()=>Ie({data:e}),enabled:t,staleTime:Y,refetchInterval:Y})}function Ue(e){return n({queryKey:J.ipa(e),queryFn:()=>Ve({data:{id:e}})})}var Z=e=>{let t=a();return h({mutationFn:e,onSettled:async()=>{await Promise.all([t.invalidateQueries({queryKey:J.all}),t.invalidateQueries({queryKey:[`native-build-install-eligibility`]})])}})},We=()=>Z(e=>Re({data:e})),Ge=()=>Z(e=>ze({data:e})),Ke=()=>Z(e=>Be({data:e})),qe=()=>Z(e=>Le({data:e})),Je=`With the same bundle ID, this install replaces the App Store's copy of the app on this iPhone.`,Q=`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,Ye=e=>/iPhone|iPod|iPad/u.test(e.userAgent)||/Macintosh/u.test(e.userAgent)&&e.maxTouchPoints>1,Xe=()=>{if(typeof window>`u`)return{udid:null,receipt:null,requested:!1};let e=new URLSearchParams(window.location.hash.slice(1)),t=e.get(`udid`),n=t!==null&&y.test(t)?t:null;return{udid:n,receipt:n===null?null:e.get(`r`),requested:n!==null&&e.get(`requested`)===`1`}},Ze=e=>{try{return window.localStorage.getItem(e)}catch{return null}},Qe=(e,t)=>{try{window.localStorage.setItem(e,t)}catch{}},$e=()=>{let[e,t]=(0,w.useState)(null),[n]=(0,w.useState)(Xe);return(0,w.useEffect)(()=>{let e=e=>e!=null&&y.test(e)?e:null,r=n.receipt!==null||n.requested;n.udid!==null&&r&&(Qe(g,n.udid),n.receipt!==null&&Qe(ee,JSON.stringify({udid:n.udid,receipt:n.receipt}))),n.udid!==null&&window.location.hash!==``&&window.history.replaceState(window.history.state,``,`${window.location.pathname}${window.location.search}`);let i=()=>{let r=e(Ze(`hot-updater-ios-udid`))??n.udid,i=null;try{let e=JSON.parse(Ze(`hot-updater-ios-device-receipt`)??`null`);i=e?.udid===r&&typeof e?.receipt==`string`?e.receipt:null}catch{i=null}i===null&&n.udid===r&&(i=n.receipt),t(e=>e!==null&&e.udid===r&&e.receipt===i?e:{ios:Ye(navigator),udid:r,receipt:i,requested:n.requested})};i();let a=e=>{(e.key===null||e.key===`hot-updater-ios-udid`||e.key===`hot-updater-ios-device-receipt`)&&i()};return window.addEventListener(`storage`,a),window.addEventListener(`pageshow`,i),document.addEventListener(`visibilitychange`,i),()=>{window.removeEventListener(`storage`,a),window.removeEventListener(`pageshow`,i),document.removeEventListener(`visibilitychange`,i)}},[n]),e},et=300*1e3,tt=(e,t)=>{let[,n]=(0,w.useReducer)(e=>e+1,0),r=e+v-et;return(0,w.useEffect)(()=>{if(!t)return;let e=setTimeout(n,Math.max(0,r-Date.now()));return document.addEventListener(`visibilitychange`,n),window.addEventListener(`pageshow`,n),()=>{clearTimeout(e),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`pageshow`,n)}},[r,t]),t&&Date.now()>=r};function nt({fetching:e,onRenew:t}){return(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,K.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`This install link has expired.`,e?` Getting a new one.`:``]}),e?null:(0,K.jsx)(u,{className:Q,onClick:t,variant:`outline`,children:`Get a new link`})]})}function rt({build:e,token:t}){return(0,K.jsx)(`a`,{className:c({className:Q}),href:ne(window.location,e.id,t),children:`Install`})}function it(){return(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`On iOS 16 or later, the app opens only with Developer Mode on: Settings, Privacy & Security, Developer Mode.`}),(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Je})]})}function $({build:t,again:n=!1}){let r=X({mode:`identify`,buildId:t.id});return r.data?.status===`no-secret`?(0,K.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,r.data.secretName,` on the Console to check iPhones from this page.`]}):r.data?.status===`issued`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`a`,{className:c({className:Q,variant:n?`secondary`:`default`}),href:_(te(window.location,t.id),r.data.token),children:[(0,K.jsx)(oe,{"data-icon":`inline-start`}),n?`Check this iPhone again`:`Check this iPhone`]}),(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Allow the download, then install it in Settings, where iOS calls it not signed. Nothing stays installed.`})]}):r.isError?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(S,{variant:`destructive`,children:[(0,K.jsx)(C,{}),(0,K.jsx)(b,{children:`The check couldn't start`}),(0,K.jsx)(x,{children:`Check your connection and try again.`})]}),(0,K.jsxs)(u,{className:Q,disabled:r.isFetching,onClick:()=>void r.refetch(),variant:`outline`,children:[(0,K.jsx)(ie,{"data-icon":`inline-start`}),`Reload`]})]}):(0,K.jsx)(e,{"aria-label":`Preparing the check`,className:`h-11 w-full`})}var at=e=>(0,q.default)(e).format(`MMM D`);function ot({device:e,canApprove:t}){return(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,K.jsxs)(S,{children:[(0,K.jsx)(C,{}),(0,K.jsx)(b,{children:`Apple didn't register this iPhone`}),(0,K.jsx)(x,{children:e.apple_error})]}),t?(0,K.jsx)(m,{className:c({className:Q,variant:`outline`}),to:`/native-builds/devices`,children:`iOS devices`}):(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.status===`approved`?`Ask a maintainer to free a device slot.`:`Ask a maintainer to check it on the iOS devices page.`})]})}function st({build:e,device:t,registry:n,newerBuild:r,canApprove:i,registryReadAt:a}){let o=qe(),[l,d]=(0,w.useState)(``),[f,p]=(0,w.useState)(null),h=f!==null&&a<=f.readBefore,g=h?f.device:n,_=(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,K.jsx)(`p`,{className:`text-sm font-medium`,children:`Not in this build`}),(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA was signed without this iPhone, and iOS won't install it here.`})]});if(g!==null){let e=h?null:r;return g.apple_error!==null&&e===null?(0,K.jsx)(ot,{canApprove:i,device:g}):(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[_,(0,K.jsx)(`p`,{className:`text-sm`,role:`status`,children:g.status===`pending`?`${g.name} was requested on ${at(g.created_at_ms)}. A maintainer approves it next.`:e===null?`${g.name} is ${g.status}. It joins the next ad hoc build.`:`A newer build has ${g.name}.`}),e===null?null:(0,K.jsx)(m,{className:c({className:Q}),params:{buildId:e},to:`/native-builds/$buildId`,children:`Open the newer build`})]})}if(t.receipt===null)return(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[_,(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Check this iPhone once more to request it for the next ad hoc build.`}),(0,K.jsx)($,{build:e,again:!0})]});let v=l.trim();return(0,K.jsxs)(`form`,{className:`flex min-w-0 flex-col gap-3`,onSubmit:e=>{if(e.preventDefault(),v===``)return;let n=a;o.mutate({receipt:t.receipt,name:v},{onSuccess:({device:e})=>p({device:e,readBefore:n})})},children:[_,(0,K.jsxs)(de,{"data-invalid":o.isError||void 0,children:[(0,K.jsx)(ce,{htmlFor:`ios-device-name`,children:`This iPhone's name`}),(0,K.jsx)(s,{autoComplete:`off`,className:`h-11 sm:h-8`,id:`ios-device-name`,maxLength:100,onChange:e=>d(e.target.value),placeholder:`Kim's iPhone`,value:l}),(0,K.jsx)(le,{children:`A maintainer approves it, and it joins the next ad hoc build.`}),(0,K.jsx)(ue,{children:o.isError?`The request didn't go through. Check this iPhone again, then try once more.`:null})]}),(0,K.jsxs)(u,{className:Q,disabled:v===``||o.isPending,type:`submit`,children:[o.isPending?(0,K.jsx)(re,{className:`animate-spin motion-reduce:animate-none`,"data-icon":`inline-start`}):(0,K.jsx)(ae,{"data-icon":`inline-start`}),`Request access`]}),o.isError?(0,K.jsx)($,{again:!0,build:e}):null]})}function ct({build:t,device:n}){let{udid:r}=n,i=fe(t.id,r),{refetch:a}=i,o=tt(i.dataUpdatedAt,i.data?.status===`installable`&&i.data.device===`included`);if((0,w.useEffect)(()=>{o&&a()},[o,a]),i.isPending)return(0,K.jsx)(e,{"aria-label":`Reading this IPA`,className:`h-11 w-full`});let s=i.data;if(s===void 0||s.status===`unavailable`)return(0,K.jsxs)(S,{children:[(0,K.jsx)(C,{}),(0,K.jsx)(b,{children:`Installation details unavailable`}),(0,K.jsx)(x,{children:`The Console couldn't read this IPA from storage in parts, which takes an HTTPS download link that answers Range requests. Other ways to install still work from a computer.`})]});if(s.status===`store`)return(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA is an App Store export, which installs through TestFlight, not from this page.`});if(s.status===`expired`)return(0,K.jsxs)(S,{variant:`destructive`,children:[(0,K.jsx)(C,{}),(0,K.jsx)(b,{children:`This build's profile has expired`}),(0,K.jsxs)(x,{children:[`It expired on `,(0,q.default)(s.expiresAt).format(`YYYY-MM-DD`),`. A maintainer rebuilds it to install again.`]})]});let c=s.link.status===`issued`?s.link.token:null;return s.link.status===`no-secret`?(0,K.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,s.link.secretName,` on the Console to install from this page.`]}):c===null?null:s.device===`included`?(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,K.jsx)(`p`,{className:`text-sm font-medium`,children:`In this build`}),o?(0,K.jsx)(nt,{fetching:i.isFetching,onRenew:()=>void a()}):(0,K.jsx)(rt,{build:t,token:c}),(0,K.jsx)(it,{})]}):s.device===`not-included`?(0,K.jsx)(st,{build:t,device:n,registry:s.registry,newerBuild:s.newerBuild,canApprove:s.canApprove,registryReadAt:i.dataUpdatedAt}):(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,K.jsx)(`p`,{className:`text-sm font-medium`,children:`Check this iPhone first`}),(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`iOS installs this IPA only on the devices it lists. A profile reads this iPhone's ID, then Safari comes back here.`})]}),(0,K.jsx)($,{build:t})]})}export{He as a,Ge as c,X as i,Pe as l,$e as n,Ue as o,We as r,Ke as s,ct as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Di as e,vr as t}from"./sidebar-yC7KdImc.js";import{t as n}from"./link-CN3iHC4A.js";import{a as r}from"./tabs-RdhEl9sE.js";var i=e(),a=`relative inline-flex h-full items-center justify-center rounded-md border border-transparent px-3 text-xs font-medium whitespace-nowrap text-foreground/60 transition-colors hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none aria-[current=page]:bg-background aria-[current=page]:text-foreground aria-[current=page]:shadow-sm dark:text-muted-foreground dark:hover:text-foreground dark:aria-[current=page]:border-input dark:aria-[current=page]:bg-input/30 dark:aria-[current=page]:text-foreground`;function o({current:e}){return(0,i.jsxs)(`nav`,{"aria-label":`Native builds views`,className:t(r(),`h-11 sm:h-8 [&>a]:min-h-10 sm:[&>a]:min-h-0`),children:[(0,i.jsx)(n,{activeOptions:{exact:!0,includeSearch:!1},"aria-current":e===`builds`?`page`:void 0,className:a,to:`/native-builds`,children:`Builds`}),(0,i.jsx)(n,{activeOptions:{exact:!0,includeSearch:!1},"aria-current":e===`devices`?`page`:void 0,className:a,to:`/native-builds/devices`,children:`iOS devices`})]})}export{o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,Di as t,Vi as n,_r as r,gr as i,vr as a}from"./sidebar-yC7KdImc.js";import{t as o}from"./link-CN3iHC4A.js";import{E as s}from"./TargetDisplay-KU7JhIWG.js";import{t as c}from"./chevron-right-DNbYTBX1.js";import{n as l,t as u}from"./relativeTime-BYRt19mj.js";import{a as d,n as f,o as p,r as m,t as h}from"./table-D8YjT_ht.js";var g=t();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,rowGroups:r=!1,...i}){return(0,g.jsxs)(h,{className:a(`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})}),r?t:(0,g.jsx)(f,{children:t})]})}function y({className:e,...t}){return(0,g.jsx)(f,{className:a(`[&_tr:last-child]:border-b`,e),...t})}var b=e=>t=>{t.target instanceof Element&&t.target.closest(`button, a, input, select, textarea`)||e()};function x({className:e,onOpen:t,...n}){return(0,g.jsx)(p,{onClick:b(t),onKeyDown:e=>{e.target!==e.currentTarget||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),t())},tabIndex:0,className:a(`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 S({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 C({columns:e,className:t,children:n}){return(0,g.jsx)(p,{children:(0,g.jsx)(m,{className:a(`h-44 text-center text-muted-foreground`,t),colSpan:e,children:n})})}function w({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 T({children:e}){return(0,g.jsx)(`div`,{className:`p-8`,children:e})}function E({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 D({className:e,...t}){return(0,g.jsx)(`article`,{className:a(`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 O({count:e,noun:t,folded:n,label:a,pending:l=!1,newest:u,previous:d,next:f}){return(0,g.jsxs)(`nav`,{"aria-label":a,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?t[0]:t[1],`, newest first`,n===void 0||n.count===0?null:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(`span`,{"aria-hidden":`true`,children:` · `}),(0,g.jsx)(`span`,{className:`sr-only`,children:`, `}),(0,g.jsxs)(`span`,{className:`text-foreground`,children:[n.count,n.more?`+`:``]}),` `,n.label,` folded`]})]}),(0,g.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 sm:justify-end`,children:[u&&!l?(0,g.jsx)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`ghost`}),search:u.search,to:u.to,children:`Newest`}):null,d&&!l?(0,g.jsxs)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:d.search,to:d.to,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}):(0,g.jsxs)(i,{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`]}),f&&!l?(0,g.jsxs)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:f.search,to:f.to,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]}):(0,g.jsxs)(i,{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 k=n(l(),1),A=n(u(),1);k.default.extend(A.default);function j({ms:e,withDate:t=!1}){let n=(0,k.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,_ as c,x as d,S as f,T as i,C as l,D as n,y as o,b as p,E as r,w as s,j as t,O as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Di as e,Vi as t}from"./sidebar-yC7KdImc.js";import{t as n}from"./send-DuMOCzbD.js";import{t as r}from"./badge-FZMD5vvS.js";import{n as i,t as a}from"./relativeTime-BYRt19mj.js";var o=t(i(),1),s=t(a(),1),c={"play-internal":{label:`Play internal`,name:`Google Play internal testing`},"play-closed":{label:`Play closed`,name:`Google Play closed testing`},"play-open":{label:`Play open`,name:`Google Play open testing`},"play-production":{label:`Play production`,name:`Google Play production`}},l=e();o.default.extend(s.default);var u={testflight:`TestFlight`,...Object.fromEntries(Object.entries(c).map(([e,t])=>[e,t.label]))},d=e=>e.submitted_to!==null&&e.submitted_to!==void 0;function f({ms:e}){if(e===null)return null;let t=(0,o.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,o.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:`muted`,children:[(0,l.jsx)(n,{"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}function h({build:e}){return e.is_sandbox?(0,l.jsx)(r,{className:`px-1.5`,variant:`muted`,children:`Sandbox`}):null}export{c as a,u as i,m as n,d as r,h as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Di as e,Vr as t,gr as n}from"./sidebar-yC7KdImc.js";import{t as r}from"./copy-CH1__JAW.js";import{t as i}from"./key-round-D7UgdXyA.js";import{t as a}from"./package-BmfoZ5Zj.js";import{n as o}from"./dist-DAM__Tdz.js";import{f as s,p as c}from"./uuidv7-DAoOOpz9.js";import{t as l}from"./HashValueDisplay-D2f0HmyU.js";var u=t(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),d=t(`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`}]]),f=e();function p({label:e,value:t,wrap:i=!1}){let a=async()=>{try{await navigator.clipboard.writeText(t),o.success(`Copied to clipboard`)}catch{o.error(`Could not copy ${e}`)}};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:i?`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:t}),(0,f.jsx)(n,{"aria-label":`Copy ${e}`,className:`size-11 sm:size-7`,onClick:()=>void a(),size:`icon-sm`,variant:`ghost`,children:(0,f.jsx)(r,{"aria-hidden":`true`})})]})}var m=e=>/^[\w@%+=:,./-]+$/.test(e)?e:`'${e.replaceAll(`'`,`'\\''`)}'`,h={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`}},g=e=>e===`ios`?`iOS`:`Android`,_=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:`${g(e.platform)} ${t}`},v=e=>`/api/native-builds/${encodeURIComponent(e)}/download`,y=(e,t,n)=>`${e.origin}${b(e,t)}${v(t)}?t=${encodeURIComponent(n)}`,b=(e,t)=>{let n=x(t);return e.pathname.endsWith(n)?e.pathname.slice(0,-n.length):``},x=e=>`/native-builds/${encodeURIComponent(e)}`,S=3600*1e3,C=`hot-updater-ios-udid`,w=`hot-updater-ios-device-receipt`,T=/^(?:[0-9a-f]{40}|[0-9a-f]{8}-[0-9a-f]{16})$/iu,E=`/native-builds/devices`,D=`/_hot-updater/devices/device.mobileconfig`,O=(e,t)=>`${e}${D}?t=${encodeURIComponent(t)}`,k=`npx hot-updater native-build devices add`,A=e=>`…${e.slice(-6)}`,j=e=>`/_hot-updater/native-builds/${encodeURIComponent(e)}/manifest.plist`,M=(e,t,n)=>{let r=`${e.origin}${b(e,t)}${j(t)}?t=${encodeURIComponent(n)}`;return`itms-services://?action=download-manifest&url=${encodeURIComponent(r)}`},N=e=>c(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||s(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 ${m(e.id)}`;function z({icon:e,value:t,display:n}){return(0,f.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,f.jsx)(e,{className:`size-4 shrink-0 text-muted-foreground`}),(0,f.jsx)(l,{display:n,maxLength:12,value:t})]})}function B(){return(0,f.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}function V({appVersion:e,fingerprintHash:t}){return e?(0,f.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,f.jsx)(a,{className:`size-4 shrink-0 text-muted-foreground`}),(0,f.jsx)(`span`,{className:`font-medium`,children:e})]}):t?(0,f.jsx)(z,{icon:d,value:t}):(0,f.jsx)(B,{})}function H({value:e}){return e?(0,f.jsx)(z,{display:e.replace(/^nbk1:/,``),icon:i,value:e}):(0,f.jsx)(B,{})}export{P as C,u as E,g as S,p as T,F as _,E as a,_ as b,C as c,L as d,O as f,v as g,N as h,k as i,S as l,h as m,B as n,w as o,A as p,V as r,T as s,H as t,b as u,R as v,m as w,y as x,M as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,Di as t,J as n,Ri as r,S as i,T as a,X as o,Y as s,gr as c,j as l,k as u,vr as d}from"./sidebar-yC7KdImc.js";function f(t){return e(t,`alert-dialog`)}var p=i;r();var m=t();function h({...e}){return(0,m.jsx)(f,{"data-slot":`alert-dialog`,...e})}function g({...e}){return(0,m.jsx)(p,{"data-slot":`alert-dialog-trigger`,...e})}function _({...e}){return(0,m.jsx)(u,{"data-slot":`alert-dialog-portal`,...e})}function v({className:e,...t}){return(0,m.jsx)(o,{"data-slot":`alert-dialog-overlay`,className:d(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function y({className:e,size:t=`default`,...n}){return(0,m.jsxs)(_,{children:[(0,m.jsx)(v,{}),(0,m.jsx)(l,{"data-slot":`alert-dialog-content`,"data-size":t,className:d(`group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...n})]})}function b({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:d(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...t})}function x({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:d(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...t})}function S({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`alert-dialog-media`,className:d(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,e),...t})}function C({className:e,...t}){return(0,m.jsx)(a,{"data-slot":`alert-dialog-title`,className:d(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...t})}function w({className:e,...t}){return(0,m.jsx)(n,{"data-slot":`alert-dialog-description`,className:d(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function T({className:e,...t}){return(0,m.jsx)(c,{"data-slot":`alert-dialog-action`,className:d(e),...t})}function E({className:e,variant:t=`outline`,size:n=`default`,...r}){return(0,m.jsx)(s,{"data-slot":`alert-dialog-cancel`,className:d(e),render:(0,m.jsx)(c,{variant:t,size:n}),...r})}export{w as a,S as c,y as i,C as l,T as n,x as o,E as r,b as s,h as t,g as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ConsoleFeatureUnavailable-Be-0iTww.js";var t=e;export{t as notFoundComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,Di as t,Hr as n,Oi as r,Ri as i,Si as a,Vi as o,Vr as s,Z as c,gr as l,p as u,wi as d,zr as f}from"./sidebar-yC7KdImc.js";import{t as p}from"./useMutation-w3qYaU2L.js";import{t as ee}from"./check-CqWNyG93.js";import{t as te}from"./clipboard-DZrZK5gR.js";import{t as m}from"./key-round-D7UgdXyA.js";import{t as ne}from"./loader-circle-iMqC-8ZE.js";import{t as re}from"./plus-Db0KxLZp.js";import{t as h}from"./refresh-cw-BHhBYjS8.js";import{a as ie,i as g,n as _,o as ae,r as v,t as y}from"./badge-FZMD5vvS.js";import{n as b}from"./dist-DAM__Tdz.js";import{a as oe,n as se,o as x,t as S}from"./card-CyHYmHue.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-Ch0QxRsa.js";import{a as N,i as P,n as F,o as I,r as L,t as R}from"./dialog-BLj71-Nf.js";import{a as z,i as B,n as V,r as H,t as U}from"./field-CdhSgWhI.js";import{a as W,i as G,n as K,o as q,r as J,t as ce}from"./table-D8YjT_ht.js";var Y=s(`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=o(i(),1),Z=d({method:`GET`}).middleware([f]).handler(r(`2c7f3cdb9bd3cab2c026a48abdc84c362db0362924a08679052a325640aec56b`)),le=d({method:`POST`}).middleware([f]).handler(r(`68a2d94ee016be64936401f5eba60ab08a47ff373e1cf9de48e4413336e6034b`)),ue=d({method:`POST`}).middleware([f]).handler(r(`a1cb80b19ca72a64fb631ca28ebb9b6941db245983de082d5dd3203ec2eef795`)),Q={list:[`api-keys`,`list`]},de=()=>n({queryKey:Q.list,queryFn:()=>Z()}),fe=()=>{let e=a();return p({mutationFn:e=>le({data:{name:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Q.list})}})},pe=()=>{let e=a();return p({mutationFn:e=>ue({data:{id:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Q.list})}})},$=t(),me=e=>new Date(e).toISOString().slice(0,10);function he(){let[e,t]=(0,X.useState)(!1),[n,r]=(0,X.useState)(``),[i,a]=(0,X.useState)(null),o=fe(),s=n.trim(),u=s.length>64?`Name must be 64 characters or fewer.`:null,d=()=>{r(``),a(null),o.reset()},f=e=>{t(e),e||d()};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(l,{onClick:()=>t(!0),children:[(0,$.jsx)(re,{"data-icon":`inline-start`}),`Create API key`]}),(0,$.jsx)(R,{open:e,onOpenChange:f,children:(0,$.jsxs)(F,{showCloseButton:i===null,children:[(0,$.jsxs)(N,{children:[(0,$.jsx)(I,{children:i===null?`Create API key`:`Save your API key`}),(0,$.jsx)(L,{children:i===null?`Name the app or environment that will use this key.`:`This key is shown once. Store it securely before closing.`})]}),i===null?(0,$.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!(s.length===0||u!==null))try{a((await o.mutateAsync(s)).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)(c,{id:`api-key-name`,autoComplete:`off`,maxLength:65,onChange:e=>r(e.target.value),placeholder:`Production app`,value:n}),(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)(l,{disabled:o.isPending||s.length===0||u!==null,type:`submit`,children:[o.isPending?(0,$.jsx)(ne,{"data-icon":`inline-start`,className:`animate-spin motion-reduce:animate-none`}):(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)(c,{id:`created-api-key`,className:`font-mono`,readOnly:!0,value:i}),(0,$.jsxs)(l,{onClick:async()=>{if(i!==null)try{await navigator.clipboard.writeText(i),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)(l,{onClick:()=>f(!1),children:[(0,$.jsx)(ee,{"data-icon":`inline-start`}),`Done`]})})]})]})})]})}function ge({record:e}){let[t,n]=(0,X.useState)(!1),r=pe(),i=async t=>{t.preventDefault();try{await r.mutateAsync(e.id),n(!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:t,onOpenChange:e=>{r.isPending||n(e)},children:[(0,$.jsxs)(M,{render:(0,$.jsx)(l,{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:r.isPending,children:`Cancel`}),(0,$.jsx)(D,{disabled:r.isPending,onClick:e=>void i(e),variant:`destructive`,children:`Revoke API key`})]})]})]})}function _e(){let t=de();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:t.isError?(0,$.jsx)(`div`,{className:`p-4`,children:(0,$.jsxs)(_,{variant:`destructive`,children:[(0,$.jsx)(ae,{}),(0,$.jsx)(ie,{children:`API keys couldn't be loaded`}),(0,$.jsx)(g,{children:`Check your connection and try again.`}),(0,$.jsx)(v,{children:(0,$.jsxs)(l,{onClick:()=>void t.refetch(),size:`xs`,variant:`outline`,children:[(0,$.jsx)(h,{"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:t.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)):t.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.`})]})})}):t.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)(y,{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{Vr as e}from"./sidebar-yC7KdImc.js";var t=e(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-yC7KdImc.js";var t=e(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-yC7KdImc.js";var t=e(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-yC7KdImc.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-yC7KdImc.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Br as e,Di as t,E as n,J as r,Ri as i,S as a,T as o,X as s,Y as c,gr as l,j as u,k as d,vr as f}from"./sidebar-yC7KdImc.js";i();var p=t();function m({...e}){return(0,p.jsx)(n,{"data-slot":`dialog`,...e})}function h({...e}){return(0,p.jsx)(a,{"data-slot":`dialog-trigger`,...e})}function g({...e}){return(0,p.jsx)(d,{"data-slot":`dialog-portal`,...e})}function _({className:e,...t}){return(0,p.jsx)(s,{"data-slot":`dialog-overlay`,className:f(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function v({className:t,children:n,showCloseButton:r=!0,...i}){return(0,p.jsxs)(g,{children:[(0,p.jsx)(_,{}),(0,p.jsxs)(u,{"data-slot":`dialog-content`,className:f(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-xs/relaxed ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,t),...i,children:[n,r&&(0,p.jsxs)(c,{"data-slot":`dialog-close`,render:(0,p.jsx)(l,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,p.jsx)(e,{}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function y({className:e,...t}){return(0,p.jsx)(`div`,{"data-slot":`dialog-header`,className:f(`flex flex-col gap-1`,e),...t})}function b({className:e,showCloseButton:t=!1,children:n,...r}){return(0,p.jsxs)(`div`,{"data-slot":`dialog-footer`,className:f(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,p.jsx)(c,{render:(0,p.jsx)(l,{variant:`outline`}),children:`Close`})]})}function x({className:e,...t}){return(0,p.jsx)(o,{"data-slot":`dialog-title`,className:f(`text-sm font-medium`,e),...t})}function S({className:e,...t}){return(0,p.jsx)(r,{"data-slot":`dialog-description`,className:f(`text-xs/relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}export{y as a,b as i,v as n,x as o,S as r,h as s,m as t};
|