@hot-updater/console 1.2.0-rc.40 → 1.2.0-rc.42
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-qeto9-fq.js → -native-builds-search-BFcW2mlI.js} +1 -1
- package/.output/public/assets/ChannelPicker-BQKoyxnf.js +1 -0
- package/.output/public/assets/{CompositeItem-B541MSYC.js → CompositeItem-B7uxFM46.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-C6aryy7j.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
- package/.output/public/assets/EventDetails-CWiI1CXb.js +1 -0
- package/.output/public/assets/{InsightsPageHeader-D0Nxcccp.js → InsightsPageHeader-BjUAikRe.js} +1 -1
- package/.output/public/assets/{IosInstall-CgNa8B4v.js → IosInstall-B5IdjCP2.js} +1 -1
- package/.output/public/assets/{NativeBuildsNav-BxAmQr2E.js → NativeBuildsNav-BKdnlKMN.js} +1 -1
- package/.output/public/assets/{RelativeTime-CdQ86VoP.js → RelativeTime-5ZP9WlQ6.js} +1 -1
- package/.output/public/assets/{RolloutPercentageBadge-Cd1UNLL0.js → RolloutPercentageBadge-DCtG7c1o.js} +1 -1
- package/.output/public/assets/{RowReason-CEI-_T6G.js → RowReason-CXMCJ-Jc.js} +1 -1
- package/.output/public/assets/{SandboxBadge-CqGX5DiH.js → SandboxBadge-PM92jCk6.js} +1 -1
- package/.output/public/assets/{TargetDisplay-DMZHMgWk.js → TargetDisplay-DG_I3qln.js} +1 -1
- package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
- package/.output/public/assets/{api-keys-B9XQLCZ8.js → api-keys-ztwXoKcj.js} +1 -1
- package/.output/public/assets/{index-D7PWINwc.js → index-Ck4fZq4M.js} +3 -3
- package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
- package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
- package/.output/public/assets/insights-fSY6n4k3.js +42 -0
- package/.output/public/assets/insights-osTmFzzR.js +2 -0
- package/.output/public/assets/{insights-search-DkovoDrZ.js → insights-search-CZtvD-Vf.js} +1 -1
- package/.output/public/assets/{insights_.distribution-DmeI9XZw.js → insights_.distribution-Cws8lYLC.js} +1 -1
- package/.output/public/assets/insights_.distribution-DpppHhaU.js +2 -0
- package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
- package/.output/public/assets/{installations-ClsF2q6A.js → installations-Byojb0Rv.js} +2 -2
- package/.output/public/assets/installations-CFGDrY-W.js +1 -0
- package/.output/public/assets/installations-CcPrSZwW.js +1 -0
- package/.output/public/assets/native-builds-C4u6JvxV.js +2 -0
- package/.output/public/assets/native-builds-D9hoJd6W.js +1 -0
- package/.output/public/assets/native-builds-zwqucwx2.js +1 -0
- package/.output/public/assets/{native-builds_._buildId-DZqylSRq.js → native-builds_._buildId-CXx2xjoI.js} +1 -1
- package/.output/public/assets/native-builds_._buildId-DymsEZlO.js +2 -0
- package/.output/public/assets/native-builds_.devices-DF3g--dt.js +1 -0
- package/.output/public/assets/native-builds_.devices-QToUV8FB.js +2 -0
- package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
- package/.output/public/assets/remote-config-BJJAxy_g.js +6 -0
- package/.output/public/assets/{remote-config-r945bivi.js → remote-config-Dm1MCHDN.js} +1 -1
- package/.output/public/assets/rotate-ccw-tITIe0Bd.js +1 -0
- package/.output/public/assets/routes-9gxYg__u.js +1 -0
- package/.output/public/assets/{routes-DWjGfLRs.js → routes-CUsayL0T.js} +2 -2
- package/.output/public/assets/select-Bk52fOVX.js +1 -0
- package/.output/public/assets/styles-C1iqL6CR.css +2 -0
- package/.output/public/assets/switch-CI393qIT.js +1 -0
- package/.output/public/assets/useAnchoredPopupScrollLock-Cvx6CdPD.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-CSEErUrV.mjs → __23tanstack-start-server-fn-resolver-bwJOc7yf.mjs} +58 -58
- package/.output/server/_libs/@base-ui/react+[...].mjs +3844 -3844
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{BundleIdDisplay-BfMtMws8.mjs → BundleIdDisplay-CG9iACjI.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-CyjOxlfr.mjs → ChannelBadge-CYT75v8l.mjs} +3 -3
- package/.output/server/_ssr/ChannelPicker-BkXqCfZr.mjs +251 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-D5a8SXzu.mjs → ConsoleFeatureUnavailable-Dx7obWmR.mjs} +5 -5
- package/.output/server/_ssr/{EventDetails-XaXslOac.mjs → EventDetails-BXeNHows.mjs} +7 -7
- package/.output/server/_ssr/{HashValueDisplay-CtrIkPNM.mjs → HashValueDisplay-3H3S8hmf.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-CK76Vycr.mjs → InsightsPageHeader-C-h0ChZZ.mjs} +6 -6
- package/.output/server/_ssr/{IosInstall-BD2HpMsh.mjs → IosInstall-BANz2UTe.mjs} +7 -7
- package/.output/server/_ssr/{NativeBuildsNav-DvFscYEN.mjs → NativeBuildsNav-BNpQ4ajr.mjs} +3 -3
- package/.output/server/_ssr/{NotFoundPage-CQc5Envb.mjs → NotFoundPage-Djj-PEM8.mjs} +2 -2
- package/.output/server/_ssr/{QrCode-VPGDhoTy.mjs → QrCode-Curv9Elz.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-D6qU9XeU.mjs → RelativeTime-BI0B980i.mjs} +3 -3
- package/.output/server/_ssr/{RolloutPercentageBadge-7HdtPPd8.mjs → RolloutPercentageBadge-BTABZINd.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-CR2C_0d9.mjs → RowReason-830CS7kd.mjs} +4 -4
- package/.output/server/_ssr/{SandboxBadge-HQv4waT2.mjs → SandboxBadge-B1Pvq-eN.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-BQ3rf-jt.mjs → TargetDisplay-BN_l8Jis.mjs} +3 -3
- package/.output/server/_ssr/{alert-dialog-DZfV4jo0.mjs → alert-dialog-BcSW6K-J.mjs} +1 -1
- package/.output/server/_ssr/{api-C3S89RIl.mjs → api-DWaVnH2C.mjs} +7 -7
- package/.output/server/_ssr/{api-keys-DhgkyA5L.mjs → api-keys-Ct4uSQCW.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-tydhn1tu.mjs → api-keys-F1mk3h4e.mjs} +9 -9
- package/.output/server/_ssr/{api-keys-rpc-PnrzjW84.mjs → api-keys-rpc-D1E5LGeY.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-D8qYGyez.mjs → api-rpc-DilLccxX.mjs} +16 -16
- package/.output/server/_ssr/{auth-rpc-rMdoXrTW.mjs → auth-rpc-CnqWWASM.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-YE2ZZC0j.mjs → auth.server-Bq8aAzOZ.mjs} +135 -23
- package/.output/server/_ssr/{badge-NON1cyRV.mjs → badge-DFb304mW.mjs} +1 -1
- package/.output/server/_ssr/{bundleActivity-CjE9yslP.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/{card-CVw7zPaM.mjs → card-DGsz5onz.mjs} +1 -1
- package/.output/server/_ssr/{config.server-BYkojQAW.mjs → config.server-CdlTA6dO.mjs} +3 -3
- package/.output/server/_ssr/{console-access-CRyGs-sb.mjs → console-access-B7Dpr9_C.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-DwbIx8oM.mjs → console-features-api-BB9z4VLS.mjs} +3 -3
- package/.output/server/_ssr/{console-features-rpc-erZu7BIN.mjs → console-features-rpc-C6JrZZMs.mjs} +3 -3
- package/.output/server/_ssr/{deviceProfileToken-Eeltr-o0.mjs → deviceProfileToken-xzDLfE0T.mjs} +1 -1
- package/.output/server/_ssr/{dialog-ZuUCxUNo.mjs → dialog-HyO7LIr3.mjs} +1 -1
- package/.output/server/_ssr/{downloadBundle-DLkb7A7E.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
- package/.output/server/_ssr/{empty-4FbiMhrz.mjs → empty-CTkTNzUQ.mjs} +2 -2
- package/.output/server/_ssr/{failureReports-Bd7CaadE.mjs → failureReports-BVufgM3l.mjs} +3 -3
- package/.output/server/_ssr/{field-B9YWRLoo.mjs → field-Dx06dJS_.mjs} +2 -2
- package/.output/server/_ssr/{foldedPage-DrxWt5XS.mjs → foldedPage-CUjJqtlF.mjs} +1 -1
- package/.output/server/_ssr/{getBundleChildren-DA9zbUBD.mjs → getBundleChildren-CnOf4Frp.mjs} +1 -1
- package/.output/server/_ssr/{input-group-sETcyyLC.mjs → input-group-CdVqk7gY.mjs} +1 -1
- package/.output/server/_ssr/{insights-K6CFztcF.mjs → insights-B6rcrYg3.mjs} +5 -5
- package/.output/server/_ssr/{insights-BjtOex57.mjs → insights-BhBtx1VZ.mjs} +32 -185
- package/.output/server/_ssr/{insights-api-9jE9dp-3.mjs → insights-api-BKpDd6nY.mjs} +5 -5
- package/.output/server/_ssr/{insights-CkJWItoo.mjs → insights-bIkpFyGe.mjs} +2 -2
- package/.output/server/_ssr/{insights-errors-BrToSfI9.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-lmcxwKb3.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-XxbDFtKo.mjs → insights-failures-rpc-yEApXjfH.mjs} +8 -8
- package/.output/server/_ssr/{insights-recovery-Dhg3WGpC.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-CFeoyZEw.mjs → insights-recovery-rpc-Cms_z9rZ.mjs} +5 -5
- package/.output/server/_ssr/{insights-rpc-TAS-cemx.mjs → insights-rpc-CP0XwPMh.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-DL8LLP6s.mjs → insights-search-BSk4seSF.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-gW3T5N6N.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-CrAA5_Wn.mjs → insights-usage-rpc-ChC05ZGM.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-DGSVT5eB.mjs → insights-usage-rpc-Trab8nDE.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-B_7pM9wp.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-DDr3vglh.mjs → insights_.distribution-B8cOGhRI.mjs} +13 -13
- package/.output/server/_ssr/{insights_.distribution-CK5_wfLT.mjs → insights_.distribution-BL6xIQuC.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-C9nMSRtr.mjs → insights_.distribution-CIY7kHwu.mjs} +5 -5
- package/.output/server/_ssr/{installations-BvGL_EXM.mjs → installations-B27fPBLI.mjs} +2 -2
- package/.output/server/_ssr/{installations-CWutybSC.mjs → installations-BS2xiJm1.mjs} +11 -11
- package/.output/server/_ssr/{installations-CRHGd6SX.mjs → installations-T1a0vZgO.mjs} +4 -4
- package/.output/server/_ssr/{ios-devices-rpc-CCx4TvyR.mjs → ios-devices-rpc-B2hahz-c.mjs} +8 -8
- package/.output/server/_ssr/{iosDeviceCookie-B3FPj65l.mjs → iosDeviceCookie-CgBQbWj5.mjs} +5 -5
- package/.output/server/_ssr/{iosDeviceProfile-Cclrfk8N.mjs → iosDeviceProfile-BlsIgI5i.mjs} +6 -6
- package/.output/server/_ssr/{iosDevices-DMXaKH8F.mjs → iosDevices-DvLPzcyf.mjs} +3 -3
- package/.output/server/_ssr/{listReleases-B2Q9xwFv.mjs → listReleases-QF91GLE7.mjs} +3 -3
- package/.output/server/_ssr/{native-artifact-BurROe05.mjs → native-artifact-D4ZISXRZ.mjs} +8 -64
- package/.output/server/_ssr/{native-builds-BGDsGYAp.mjs → native-builds-DmYTdM2v.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-Bnx0fVWs.mjs → native-builds-lEyKQemV.mjs} +3 -5
- package/.output/server/_ssr/{native-builds-BPiSm8HX.mjs → native-builds-vdXMzW7U.mjs} +22 -50
- package/.output/server/_ssr/{native-builds_._buildId-B749BEMp.mjs → native-builds_._buildId-Cb7osiVt.mjs} +16 -16
- package/.output/server/_ssr/{native-builds_._buildId-CS9w0JIp.mjs → native-builds_._buildId-Dtnlg-3y.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_.devices-w_jDlH8K.mjs → native-builds_.devices-BO4wrS7e.mjs} +17 -17
- package/.output/server/_ssr/{native-builds_.devices-BPT8_91w.mjs → native-builds_.devices-CN9N40ju.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildDownloadLink-CXibRgym.mjs → nativeBuildDownloadLink-9vC7V1iX.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-BLuyTfXE.mjs → nativeBuildInstall-CReQ5tp6.mjs} +10 -9
- package/.output/server/_ssr/{nativeBuilds-WKdqgemR.mjs → nativeBuilds-CRa36wNn.mjs} +3 -3
- package/.output/server/_ssr/{publicConsoleBase-C3sNbafy.mjs → publicConsoleBase-wTKw3_iB.mjs} +1 -1
- package/.output/server/_ssr/{release-adoption-D2719HVh.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-DOdELZNl.mjs → release-adoption-rpc-CRkz6cds.mjs} +7 -7
- package/.output/server/_ssr/{releaseAdoption-CxGKmUXx.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseReachability-sWr0bLRk.mjs → releaseReachability-Ch1JpJkY.mjs} +1 -1
- package/.output/server/_ssr/{remote-config-DuOo-AFR.mjs → remote-config-BSuWO1-Q.mjs} +17 -17
- package/.output/server/_ssr/{remote-config-xbBIsBh1.mjs → remote-config-DD6AWD0v.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-C5mPNt0s.mjs → remote-config-LYHVFz1q.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-rEe5HBxX.mjs → remote-config-rpc-lO71fGrN.mjs} +3 -3
- package/.output/server/_ssr/{router-Bc5Zx-dc.mjs → router-DZcyoSOU.mjs} +36 -36
- package/.output/server/_ssr/{routes-CUQ96XR2.mjs → routes-DhckL38s.mjs} +10 -10
- package/.output/server/_ssr/{routes-DCOnxOlA.mjs → routes-oSHCN37Z.mjs} +33 -50
- package/.output/server/_ssr/{schema-migration-rpc-DK_ceMAg.mjs → schema-migration-rpc-DF6yyuij.mjs} +3 -3
- package/.output/server/_ssr/{select-dGQiTkaZ.mjs → select-C6foYw3k.mjs} +1 -1
- package/.output/server/_ssr/{server-l-C5qBnr.mjs → server-DD_hZK1t.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-Ccd4WNjQ.mjs → sidebar-BMc8xWl7.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BXlykDIg.mjs → start-BSkL2B6C.mjs} +1 -1
- package/.output/server/_ssr/{switch-CC7UK0Nw.mjs → switch-OUPYZj1M.mjs} +2 -2
- package/.output/server/_ssr/{table-BAlgZdxo.mjs → table-C-rOSjym.mjs} +1 -1
- package/.output/server/_ssr/{tabs-Bm7PWhQk.mjs → tabs-DWW5sA9K.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-DGuFoK6A.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
- package/.output/server/{_tanstack-start-manifest_v-C_zDNaKT.mjs → _tanstack-start-manifest_v-CD1q5k0m.mjs} +99 -94
- package/.output/server/index.mjs +308 -287
- package/package.json +7 -7
- package/src/components/ChannelPicker.tsx +227 -0
- package/src/components/features/insights/InsightsControls.tsx +8 -67
- package/src/components/features/native-builds/NativeBuildsPage.tsx +11 -74
- package/src/components/ui/combobox.tsx +2 -2
- package/src/lib/api-rpc.ts +2 -2
- package/src/lib/native-builds.ts +2 -4
- package/src/lib/server/nativeBuildInstall.ts +7 -2
- package/src/routes/index.tsx +23 -36
- package/.output/public/assets/EventDetails-BdqU96Wu.js +0 -1
- package/.output/public/assets/api-keys-D4tjInrB.js +0 -1
- package/.output/public/assets/input-group-CPboh0Rx.js +0 -1
- package/.output/public/assets/insights-B7GL298D.js +0 -1
- package/.output/public/assets/insights-BzKbxWIo.js +0 -42
- package/.output/public/assets/insights-Q2nAkSMz.js +0 -2
- package/.output/public/assets/insights_.distribution-BafQuEd0.js +0 -1
- package/.output/public/assets/insights_.distribution-DHU1udei.js +0 -2
- package/.output/public/assets/installations-CmuNX_Ok.js +0 -1
- package/.output/public/assets/installations-oGkAO7nb.js +0 -1
- package/.output/public/assets/native-builds-DJlYvvPY.js +0 -2
- package/.output/public/assets/native-builds-NyGMlBx2.js +0 -1
- package/.output/public/assets/native-builds-uKuvmyXZ.js +0 -1
- package/.output/public/assets/native-builds_._buildId-Dza7vEcy.js +0 -2
- package/.output/public/assets/native-builds_.devices-BykEftlY.js +0 -1
- package/.output/public/assets/native-builds_.devices-DH1JB1zr.js +0 -2
- package/.output/public/assets/remote-config-BiD075AT.js +0 -1
- package/.output/public/assets/remote-config-CBirPcRR.js +0 -6
- package/.output/public/assets/routes-5U4k3N1_.js +0 -1
- package/.output/public/assets/select-DIyG5G-V.js +0 -1
- package/.output/public/assets/styles-C_9Rf75p.css +0 -2
- package/.output/public/assets/switch-B_7OwJhK.js +0 -1
- /package/.output/public/assets/{BundleIdDisplay-BKaGARD1.js → BundleIdDisplay-C0X-k49t.js} +0 -0
- /package/.output/public/assets/{ChannelBadge-CPc1M44L.js → ChannelBadge-BgVCJfJs.js} +0 -0
- /package/.output/public/assets/{HashValueDisplay-BHL4xWSY.js → HashValueDisplay-DvwvQchI.js} +0 -0
- /package/.output/public/assets/{NotFoundPage-haKPLHiT.js → NotFoundPage-BEpesHEm.js} +0 -0
- /package/.output/public/assets/{PlatformIcon-DYsYaYt6.js → PlatformIcon-D4KPXCHL.js} +0 -0
- /package/.output/public/assets/{QrCode-BSNEn_M-.js → QrCode-BFSCkbPj.js} +0 -0
- /package/.output/public/assets/{alert-dialog-Cj7AOTIE.js → alert-dialog-DGPqJBCk.js} +0 -0
- /package/.output/public/assets/{api-tJRzijjy.js → api-eO-sq3Jd.js} +0 -0
- /package/.output/public/assets/{card-pYZSDIxg.js → card-BAs80yql.js} +0 -0
- /package/.output/public/assets/{constants-zSb7FXDh.js → constants-C5gi7fdZ.js} +0 -0
- /package/.output/public/assets/{dialog-DlAv6zou.js → dialog-BvZDZzdQ.js} +0 -0
- /package/.output/public/assets/{empty-Bwao2ztZ.js → empty-C5GqArX9.js} +0 -0
- /package/.output/public/assets/{field-BiSGCVoS.js → field-DInLQ5oV.js} +0 -0
- /package/.output/public/assets/{insights-usage-rpc-DkJgbAYm.js → insights-usage-rpc-Dw5_pmRH.js} +0 -0
- /package/.output/public/assets/{relativeTime-Dbefsycs.js → relativeTime-RUNbaMyO.js} +0 -0
- /package/.output/public/assets/{table-Bo1jU9-v.js → table-DbZPkzdz.js} +0 -0
- /package/.output/public/assets/{tabs-DARDj-XC.js → tabs-BnpNC0zf.js} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights-V3D8tYPQ.js","assets/ConsoleFeatureUnavailable-B3VCINom.js","assets/sidebar-BmzmPGuv.js","assets/console-features-api-CtbGqKyr.js","assets/arrow-up-right-C_1ALUCD.js","assets/NotFoundPage-BEpesHEm.js","assets/link-CRMwpc7-.js","assets/empty-C5GqArX9.js","assets/insights-fSY6n4k3.js","assets/alert-dialog-DGPqJBCk.js","assets/ChannelPicker-BQKoyxnf.js","assets/useAnchoredPopupScrollLock-Cvx6CdPD.js","assets/useCompositeListItem-Cbk_weKW.js","assets/check-C3VCvMOV.js","assets/dist-BEmib-ZM.js","assets/input-group-CIjTdxCW.js","assets/api-eO-sq3Jd.js","assets/preload-helper-CE9OukVC.js","assets/useMutation-D7IuoOLE.js","assets/constants-C5gi7fdZ.js","assets/select-Bk52fOVX.js","assets/tabs-BnpNC0zf.js","assets/insights-usage-rpc-Dw5_pmRH.js","assets/valueToPercent-Db73Kirz.js","assets/EventDetails-CWiI1CXb.js","assets/insights-api-D4-FZeEI.js","assets/copy-BjVLMKbo.js","assets/download-CgpaZb23.js","assets/rotate-ccw-tITIe0Bd.js","assets/smartphone-Dy13ukaU.js","assets/badge-zMibJGR5.js","assets/HashValueDisplay-DvwvQchI.js","assets/InsightsPageHeader-BjUAikRe.js","assets/list-DQ9YBIDW.js","assets/arrow-right-DjRwIoF1.js","assets/chevron-right-RAuPv9r1.js","assets/circle-off-DvYMC5yF.js","assets/rotate-cw-BFQcpUTO.js","assets/undo-2-CxhBbgJw.js","assets/BundleIdDisplay-C0X-k49t.js","assets/insights-search-CZtvD-Vf.js","assets/PlatformIcon-D4KPXCHL.js","assets/card-BAs80yql.js","assets/table-DbZPkzdz.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,r as t,t as n}from"./preload-helper-CE9OukVC.js";import{r}from"./console-features-api-CtbGqKyr.js";import{i}from"./insights-search-CZtvD-Vf.js";var a=e(`/insights`)({beforeLoad:({context:e})=>r(e.queryClient,`insightsAnalytics`),notFoundComponent:t(()=>n(()=>import(`./insights-V3D8tYPQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:t(()=>n(()=>import(`./insights-fSY6n4k3.js`),__vite__mapDeps([8,2,9,10,11,12,13,14,15,16,17,6,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,3,33,7,34,4,35,36,37,38,39,40,41,42,43])),`component`),validateSearch:i});export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,Ri as t,Vi as n,at as r,gr as i,nt as a,rt as o}from"./sidebar-BmzmPGuv.js";import{b as s}from"./insights-api-D4-FZeEI.js";import{g as c,r as l}from"./constants-
|
|
1
|
+
import{Di as e,Ri as t,Vi as n,at as r,gr as i,nt as a,rt as o}from"./sidebar-BmzmPGuv.js";import{b as s}from"./insights-api-D4-FZeEI.js";import{g as c,r as l}from"./constants-C5gi7fdZ.js";var u=n(t(),1),d=e();function f({label:e,children:t}){let n=(0,u.useId)(),[c,l]=(0,u.useState)(!1);return(0,d.jsxs)(a,{open:c,onOpenChange:l,triggerId:n,children:[(0,d.jsx)(r,{id:n,"aria-describedby":c?`${n}-description`:void 0,closeOnClick:!1,onClick:()=>l(e=>!e),render:(0,d.jsx)(i,{"aria-label":e,className:`size-11 sm:size-7`,size:`icon`,variant:`ghost`}),children:(0,d.jsx)(s,{})}),(0,d.jsx)(o,{id:`${n}-description`,role:`tooltip`,className:`max-w-64`,side:`bottom`,children:t})]})}var p=e=>typeof e==`string`&&e.trim().length>0&&e.length<=1024?e:void 0,m=e=>e===`24h`||e===`7d`||e===`30d`?e:void 0,h=e=>e===`adoption`||e===`crashes`?e:void 0,g=e=>e===`12m`?e:m(e),_=e=>e===`all`||e===`ios`||e===`android`?e:void 0;function v(e){return{platform:_(e.platform),channel:p(e.channel),appVersion:p(e.appVersion),window:g(e.window),bundleWindow:m(e.bundleWindow),releaseId:p(e.releaseId),healthChart:h(e.healthChart),bundles:p(e.bundles)}}function y(e){return{...v(e),version:p(e.version),page:typeof e.page==`number`&&Number.isSafeInteger(e.page)&&e.page>0?e.page:void 0}}function b(e,t=Date.now()){if(!c(e))return`7d`;let n=t-l(e);return n<=864e5?`24h`:n<=7*864e5?`7d`:`30d`}var x=e=>e===void 0?void 0:[...new Set(e.split(`,`).filter(e=>e.length>0))];export{f as a,v as i,x as n,y as r,b as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Di as t,Hr as n,_r as r,gr as i}from"./sidebar-BmzmPGuv.js";import{t as a}from"./link-CRMwpc7-.js";import{t as o}from"./arrow-left-68S4uy4I.js";import{t as s}from"./arrow-up-right-C_1ALUCD.js";import{o as c,u as ee}from"./insights-api-D4-FZeEI.js";import{a as l,i as u,n as d,o as f,r as p,t as m}from"./select-
|
|
1
|
+
import{$ as e,Di as t,Hr as n,_r as r,gr as i}from"./sidebar-BmzmPGuv.js";import{t as a}from"./link-CRMwpc7-.js";import{t as o}from"./arrow-left-68S4uy4I.js";import{t as s}from"./arrow-up-right-C_1ALUCD.js";import{o as c,u as ee}from"./insights-api-D4-FZeEI.js";import{a as l,i as u,n as d,o as f,r as p,t as m}from"./select-Bk52fOVX.js";import{t as h}from"./rotate-cw-BFQcpUTO.js";import{a as g,i as _,n as v,t as y}from"./badge-zMibJGR5.js";import{a as te,i as ne}from"./insights-search-CZtvD-Vf.js";import{a as re,i as b,n as x,o as S,t as C}from"./card-BAs80yql.js";import"./constants-C5gi7fdZ.js";import{a as w,t as T}from"./field-DInLQ5oV.js";import{i as E,o as D,r as O,t as k}from"./empty-C5GqArX9.js";import{t as A}from"./PlatformIcon-D4KPXCHL.js";import{t as j}from"./insights_.distribution-DpppHhaU.js";import{t as M}from"./BundleIdDisplay-C0X-k49t.js";import{n as N,t as P}from"./insights-usage-rpc-Dw5_pmRH.js";import{c as ie,n as F,o as I,t as L}from"./InsightsPageHeader-BjUAikRe.js";var R=t(),z=20,B=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`,timeZone:`UTC`}),V=e=>e.releaseId??(e.builtinBundleId?`Built-in bundle ${e.builtinBundleId}`:`Unknown bundle`);function H({bundleId:e}){return(0,R.jsxs)(`div`,{className:`flex min-h-11 min-w-0 flex-wrap items-center gap-2 md:min-h-9`,children:[(0,R.jsx)(F,{}),(0,R.jsx)(M,{bundleId:e,className:`text-muted-foreground`})]})}function U(){let t=j.useSearch(),M=c(),F=j.useNavigate(),U={platform:t.platform??`all`,channel:t.channel??`production`,appVersion:t.appVersion,window:t.window??`24h`},W=n({queryKey:[`insights`,`app-usage`,U],queryFn:()=>P({data:U}),staleTime:3e4}),G=W.error?void 0:W.data,K=G?`since ${B.format(G.distributionSinceMs)}, 00:00 UTC`:`in this period`,q=(G?.bundleDistribution??[]).filter(e=>!t.version||e.appVersion===t.version),J=q.reduce((e,t)=>e+t.installations,0),Y=Math.max(1,Math.ceil(q.length/z)),X=Math.min(t.page??1,Y),Z=[...new Set([...G?.versions.map(e=>e.name)??[],...t.version?[t.version]:[]])],Q=ne(t),$=e=>void F({search:{...t,page:void 0,...e}});return(0,R.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,R.jsx)(L,{view:`distribution`,overviewSearch:Q}),(0,R.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 px-4 py-6 sm:p-8`,children:(0,R.jsxs)(`div`,{className:`mx-auto flex w-full max-w-6xl flex-col gap-6`,children:[(0,R.jsxs)(a,{to:`/insights`,search:Q,className:r({variant:`ghost`,className:`h-11 w-fit sm:h-9`}),children:[(0,R.jsx)(o,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Back to overview`]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-4`,children:[(0,R.jsx)(`h2`,{className:`text-2xl font-semibold tracking-tight`,children:`Distribution`}),(0,R.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,R.jsx)(I,{twelveMonths:ee(M),window:U.window,onWindowChange:e=>$({window:e})}),(0,R.jsx)(i,{"aria-label":`Refresh distribution`,variant:`ghost`,size:`icon`,className:`size-11 sm:size-9`,disabled:W.isFetching,onClick:()=>void W.refetch(),children:(0,R.jsx)(h,{"aria-hidden":`true`})})]})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-4`,children:[(0,R.jsxs)(T,{className:`w-full sm:w-64`,children:[(0,R.jsx)(w,{htmlFor:`distribution-version`,children:`App version`}),(0,R.jsxs)(m,{items:Object.fromEntries([[`all`,`All versions`],...Z.map(e=>[`version:${e}`,e])]),value:t.version?`version:${t.version}`:`all`,onValueChange:e=>{e!==null&&$({version:e===`all`?void 0:e.slice(8)})},children:[(0,R.jsx)(l,{id:`distribution-version`,className:`min-h-11 w-full sm:min-h-9`,children:(0,R.jsx)(f,{})}),(0,R.jsx)(d,{children:(0,R.jsxs)(p,{children:[(0,R.jsx)(u,{value:`all`,children:`All versions`}),Z.map(e=>(0,R.jsx)(u,{value:`version:${e}`,children:e},e))]})})]})]}),(0,R.jsxs)(`div`,{className:`flex min-h-9 flex-wrap items-center gap-2`,"aria-label":`Distribution scope`,children:[(0,R.jsxs)(y,{variant:`outline`,className:`gap-1.5`,children:[U.platform===`all`?null:(0,R.jsx)(A,{platform:U.platform,className:`size-3.5`}),U.platform===`all`?`All platforms`:U.platform===`ios`?`iOS`:`Android`]}),(0,R.jsx)(y,{variant:`outline`,children:U.channel}),U.appVersion?(0,R.jsxs)(y,{variant:`outline`,children:[`Reports from `,U.appVersion]}):null]})]}),(0,R.jsxs)(C,{"aria-label":`Bundles by app version`,role:`region`,className:`min-w-0`,children:[(0,R.jsxs)(re,{className:`flex flex-col gap-3`,children:[(0,R.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,R.jsx)(S,{children:`Bundles by app version`}),(0,R.jsxs)(te,{label:`How bundle distribution is counted`,children:[`Each installation counts once, by its latest report`,` `,K,`. Shares are within each app version. Built-in bundle: the bundle the native build shipped, by its ID. Unknown bundle: no deployment and no built-in bundle ID.`]})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-1`,children:[W.isPending?(0,R.jsx)(e,{className:`h-9 w-16`}):(0,R.jsx)(`p`,{className:`text-3xl font-semibold tabular-nums`,children:G?`${G.truncated?`≥`:``}${J.toLocaleString()}`:`—`}),(0,R.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Reporting installations`})]})]}),(0,R.jsxs)(x,{className:`flex min-w-0 flex-col gap-4`,children:[G?.truncated?(0,R.jsxs)(v,{children:[(0,R.jsx)(g,{children:`Partial history`}),(0,R.jsxs)(_,{children:[`Counts and shares reflect reports since`,` `,new Date(G.sinceMs).toLocaleString(`en`,{timeZone:`UTC`}),` `,`UTC. Choose a shorter period for a more complete view.`]})]}):null,W.isPending?(0,R.jsx)(e,{"aria-label":`Loading bundle distribution`,className:`h-64`}):W.error?(0,R.jsxs)(`div`,{className:`flex flex-col items-start gap-4`,children:[(0,R.jsx)(ie,{error:W.error,fallbackTitle:`Distribution unavailable`}),(0,R.jsx)(i,{variant:`outline`,onClick:()=>void W.refetch(),children:`Retry distribution`})]}):q.length===0?(0,R.jsxs)(k,{children:[(0,R.jsxs)(E,{children:[(0,R.jsx)(D,{children:`No bundles reported`}),(0,R.jsx)(O,{children:`Choose another version or period, or change the filters in the overview.`})]}),(0,R.jsx)(i,{variant:`outline`,onClick:()=>$({version:void 0}),children:`Show all versions`})]}):(0,R.jsxs)(`div`,{className:`min-w-0`,children:[(0,R.jsxs)(`div`,{"aria-hidden":`true`,className:`hidden grid-cols-[8rem_minmax(0,1fr)_7rem_7rem] gap-4 border-b px-3 pb-3 text-xs text-muted-foreground md:grid`,children:[(0,R.jsx)(`span`,{children:`App version`}),(0,R.jsx)(`span`,{children:`Bundle ID`}),(0,R.jsx)(`span`,{className:`text-right`,children:`Active installations`}),(0,R.jsx)(`span`,{className:`text-right`,children:`Version share`})]}),(0,R.jsx)(`ul`,{"aria-label":`Bundle distribution`,className:`divide-y`,children:q.slice((X-1)*z,X*z).map(e=>{let t=G?.versions.find(t=>t.name===e.appVersion)?.installations??0,n=t>0?e.installations/t*100:0;return(0,R.jsxs)(`li`,{className:`grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-4 gap-y-3 px-1 py-4 md:grid-cols-[8rem_minmax(0,1fr)_7rem_7rem] md:px-3`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`truncate text-sm font-medium`,title:e.appVersion,children:e.appVersion}),(0,R.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs text-muted-foreground`,children:[(0,R.jsx)(A,{platform:e.platform,className:`size-3.5`}),e.platform===`ios`?`iOS`:`Android`]})]}),(0,R.jsxs)(`div`,{className:`col-span-2 row-start-2 min-w-0 md:col-span-1 md:row-auto`,children:[e.releaseId?(0,R.jsxs)(a,{to:`/`,search:{releaseId:e.releaseId},"aria-label":`Review bundle ${e.releaseId} for app version ${e.appVersion}`,className:`flex min-h-11 min-w-0 items-center gap-2 text-xs underline-offset-4 hover:underline md:min-h-9`,children:[(0,R.jsx)(`span`,{className:`break-all font-mono`,children:e.releaseId}),(0,R.jsx)(s,{"aria-hidden":`true`,className:`size-3.5 shrink-0`})]}):e.builtinBundleId?null:(0,R.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Unknown bundle`}),e.builtinBundleId?(0,R.jsx)(H,{bundleId:e.builtinBundleId}):null]}),(0,R.jsxs)(`div`,{className:`col-start-2 row-start-1 text-right md:col-auto md:row-auto`,children:[(0,R.jsx)(`span`,{className:`text-sm font-medium tabular-nums`,children:e.installations.toLocaleString()}),(0,R.jsx)(`span`,{className:`ml-1 text-xs text-muted-foreground md:sr-only`,children:`active`}),(0,R.jsxs)(`p`,{className:`mt-1 text-xs tabular-nums text-muted-foreground md:hidden`,children:[n.toFixed(1),`% of version`]})]}),(0,R.jsxs)(`div`,{className:`hidden flex-col gap-2 md:flex`,children:[(0,R.jsxs)(`span`,{className:`text-right text-sm tabular-nums`,children:[n.toFixed(1),`%`]}),(0,R.jsx)(N,{"aria-label":`${V(e)} share in ${e.appVersion} on ${e.platform}`,value:n})]})]},JSON.stringify([e.appVersion,e.platform,e.releaseId,e.builtinBundleId]))})})]})]}),G&&q.length>0?(0,R.jsxs)(b,{className:`flex flex-wrap items-center justify-between gap-3 border-t pt-4`,children:[(0,R.jsxs)(`p`,{className:`text-xs tabular-nums text-muted-foreground`,children:[(X-1)*z+1,`–`,Math.min(X*z,q.length),` of `,q.length]}),(0,R.jsxs)(`nav`,{"aria-label":`Distribution pages`,className:`flex gap-2`,children:[(0,R.jsx)(i,{variant:`outline`,className:`h-11 sm:h-9`,disabled:X<=1,onClick:()=>$({page:X-1}),children:`Previous`}),(0,R.jsx)(i,{variant:`outline`,className:`h-11 sm:h-9`,disabled:X>=Y,onClick:()=>$({page:X+1}),children:`Next`})]})]}):null]})]})})]})}export{U as component};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights_.distribution-oIFSv2TC.js","assets/ConsoleFeatureUnavailable-B3VCINom.js","assets/sidebar-BmzmPGuv.js","assets/console-features-api-CtbGqKyr.js","assets/arrow-up-right-C_1ALUCD.js","assets/NotFoundPage-BEpesHEm.js","assets/link-CRMwpc7-.js","assets/empty-C5GqArX9.js","assets/insights_.distribution-Cws8lYLC.js","assets/select-Bk52fOVX.js","assets/useAnchoredPopupScrollLock-Cvx6CdPD.js","assets/useCompositeListItem-Cbk_weKW.js","assets/check-C3VCvMOV.js","assets/insights-usage-rpc-Dw5_pmRH.js","assets/valueToPercent-Db73Kirz.js","assets/arrow-left-68S4uy4I.js","assets/insights-api-D4-FZeEI.js","assets/preload-helper-CE9OukVC.js","assets/rotate-cw-BFQcpUTO.js","assets/badge-zMibJGR5.js","assets/BundleIdDisplay-C0X-k49t.js","assets/insights-search-CZtvD-Vf.js","assets/constants-C5gi7fdZ.js","assets/PlatformIcon-D4KPXCHL.js","assets/InsightsPageHeader-BjUAikRe.js","assets/tabs-BnpNC0zf.js","assets/list-DQ9YBIDW.js","assets/card-BAs80yql.js","assets/field-DInLQ5oV.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,r as t,t as n}from"./preload-helper-CE9OukVC.js";import{r}from"./console-features-api-CtbGqKyr.js";import{r as i}from"./insights-search-CZtvD-Vf.js";var a=e(`/insights_/distribution`)({beforeLoad:({context:e})=>r(e.queryClient,`insightsAnalytics`),notFoundComponent:t(()=>n(()=>import(`./insights_.distribution-oIFSv2TC.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:t(()=>n(()=>import(`./insights_.distribution-Cws8lYLC.js`),__vite__mapDeps([8,2,9,10,11,12,13,14,6,15,4,16,17,18,19,20,21,22,23,24,25,3,26,27,7,28])),`component`),validateSearch:i});export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./ConsoleFeatureUnavailable-B3VCINom.js";var t=e;export{t as notFoundComponent};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/installations-
|
|
2
|
-
import{i as e,r as t,t as n}from"./preload-helper-CE9OukVC.js";import{r}from"./console-features-api-CtbGqKyr.js";var i=864e5,a={"24h":{period:`24 hours`,durationMs:i},"7d":{period:`7 days`,durationMs:7*i},"30d":{period:`30 days`,durationMs:30*i},"90d":{period:`90 days`,durationMs:90*i}},o=Object.keys(a),s=e=>o[o.indexOf(e)+1],c=(e,t)=>({beforeReceivedAtMs:t,sinceMs:Math.max(0,t-a[e].durationMs)}),l=e=>typeof e==`string`&&e.length>0?e:void 0,u=e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:void 0,d=e=>o.find(t=>t===e);function f(e){let t=p(e.search);return t.query===void 0&&t.installId===void 0?`/installations?eventsBefore=${t.eventsBefore??`new`}&eventsRange=${t.eventsRange??`7d`}&eventsCursor=${t.eventsCursor??`first`}`:e.state.__TSR_key}function p(e){return{query:typeof e.query==`string`?e.query:void 0,installId:typeof e.installId==`string`?e.installId:void 0,eventsCursor:l(e.eventsCursor),eventsBefore:u(e.eventsBefore),eventsRange:d(e.eventsRange),searchCursor:l(e.searchCursor),historyCursor:l(e.historyCursor),historyBefore:u(e.historyBefore)}}var m=e(`/installations`)({beforeLoad:({context:e})=>r(e.queryClient,`insights`),notFoundComponent:t(()=>n(()=>import(`./installations-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/installations-CcPrSZwW.js","assets/ConsoleFeatureUnavailable-B3VCINom.js","assets/sidebar-BmzmPGuv.js","assets/console-features-api-CtbGqKyr.js","assets/arrow-up-right-C_1ALUCD.js","assets/NotFoundPage-BEpesHEm.js","assets/link-CRMwpc7-.js","assets/empty-C5GqArX9.js","assets/installations-CFGDrY-W.js","assets/preload-helper-CE9OukVC.js","assets/useCompositeListItem-Cbk_weKW.js","assets/EventDetails-CWiI1CXb.js","assets/insights-api-D4-FZeEI.js","assets/check-C3VCvMOV.js","assets/copy-BjVLMKbo.js","assets/download-CgpaZb23.js","assets/dist-BEmib-ZM.js","assets/rotate-ccw-tITIe0Bd.js","assets/smartphone-Dy13ukaU.js","assets/badge-zMibJGR5.js","assets/HashValueDisplay-DvwvQchI.js","assets/InsightsPageHeader-BjUAikRe.js","assets/tabs-BnpNC0zf.js","assets/list-DQ9YBIDW.js","assets/arrow-left-68S4uy4I.js","assets/search-BfEqtE64.js","assets/card-BAs80yql.js","assets/field-DInLQ5oV.js","assets/input-group-CIjTdxCW.js","assets/table-DbZPkzdz.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,r as t,t as n}from"./preload-helper-CE9OukVC.js";import{r}from"./console-features-api-CtbGqKyr.js";var i=864e5,a={"24h":{period:`24 hours`,durationMs:i},"7d":{period:`7 days`,durationMs:7*i},"30d":{period:`30 days`,durationMs:30*i},"90d":{period:`90 days`,durationMs:90*i}},o=Object.keys(a),s=e=>o[o.indexOf(e)+1],c=(e,t)=>({beforeReceivedAtMs:t,sinceMs:Math.max(0,t-a[e].durationMs)}),l=e=>typeof e==`string`&&e.length>0?e:void 0,u=e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:void 0,d=e=>o.find(t=>t===e);function f(e){let t=p(e.search);return t.query===void 0&&t.installId===void 0?`/installations?eventsBefore=${t.eventsBefore??`new`}&eventsRange=${t.eventsRange??`7d`}&eventsCursor=${t.eventsCursor??`first`}`:e.state.__TSR_key}function p(e){return{query:typeof e.query==`string`?e.query:void 0,installId:typeof e.installId==`string`?e.installId:void 0,eventsCursor:l(e.eventsCursor),eventsBefore:u(e.eventsBefore),eventsRange:d(e.eventsRange),searchCursor:l(e.searchCursor),historyCursor:l(e.historyCursor),historyBefore:u(e.historyBefore)}}var m=e(`/installations`)({beforeLoad:({context:e})=>r(e.queryClient,`insights`),notFoundComponent:t(()=>n(()=>import(`./installations-CcPrSZwW.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:t(()=>n(()=>import(`./installations-CFGDrY-W.js`),__vite__mapDeps([8,2,9,6,10,11,12,13,14,15,16,17,18,19,20,21,22,3,23,7,24,4,25,26,27,28,29])),`component`),staticData:{scrollRestorationKey:f},validateSearch:p});export{a,c as i,f as n,s as o,o as r,m as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,Br as t,Di as n,Ri as r,Vi as i,_r as a,et as o,gr as s,vr as c}from"./sidebar-BmzmPGuv.js";import{h as l,i as u,m as d,t as f}from"./link-CRMwpc7-.js";import{c as p,s as m}from"./preload-helper-CE9OukVC.js";import{a as h,n as g,o as _,r as v,t as y}from"./EventDetails-CWiI1CXb.js";import{t as b}from"./arrow-left-68S4uy4I.js";import{t as x}from"./arrow-up-right-C_1ALUCD.js";import{a as S,c as C,i as w,l as T,n as E,o as ee,r as te}from"./insights-api-D4-FZeEI.js";import{t as D}from"./check-C3VCvMOV.js";import{a as O}from"./useCompositeListItem-Cbk_weKW.js";import{r as k}from"./dist-BEmib-ZM.js";import{t as A}from"./search-BfEqtE64.js";import{a as j,n as M,o as N,r as P,t as F}from"./card-BAs80yql.js";import{a as I,t as ne}from"./field-DInLQ5oV.js";import{a as L,i as re,n as ie,o as ae,r as oe,t as se}from"./installations-Byojb0Rv.js";import{i as ce,n as R,r as le,t as ue}from"./input-group-CIjTdxCW.js";import{a as z,i as B,n as V,o as H,r as U,t as W}from"./table-DbZPkzdz.js";import{n as G,t as K}from"./HashValueDisplay-DvwvQchI.js";import{a as de,c as q,n as fe,r as pe,t as me}from"./InsightsPageHeader-BjUAikRe.js";function he(){l(u(),!0)}function ge(e){return he(),d(u(),e)}function _e(e){let t=u();return p(t.stores.location,m(e,t))}var J=i(r(),1),Y=n();function ve({events:e,formatter:t,renderIdentity:n}){return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`px-4 pb-2 text-xs text-muted-foreground sm:px-6`,children:`Time in your browser zone`}),(0,Y.jsx)(`ol`,{"aria-label":`Events`,className:`divide-y border-y`,children:e.map(e=>(0,Y.jsxs)(`li`,{className:`flex min-w-0 flex-col gap-3 px-4 py-4 sm:px-6`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-4 gap-y-1`,children:[(0,Y.jsx)(v,{event:e}),(0,Y.jsx)(`div`,{className:`text-xs tabular-nums`,children:(0,Y.jsx)(g,{value:e.receivedAtMs,formatter:t,touch:!0})})]}),n?.(e),(0,Y.jsxs)(`dl`,{className:`flex flex-wrap gap-x-2 gap-y-1 text-sm`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`dt`,{className:`sr-only`,children:`App`}),(0,Y.jsxs)(`dd`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]})]}),(0,Y.jsxs)(`div`,{className:`min-w-0 text-muted-foreground`,children:[(0,Y.jsx)(`dt`,{className:`sr-only`,children:`Channel`}),(0,Y.jsx)(`dd`,{className:`wrap-anywhere`,children:e.channel})]})]}),(0,Y.jsx)(`div`,{className:`text-xs`,"aria-label":`Bundle`,children:(0,Y.jsx)(y,{event:e,touch:!0})})]},e.id))})]})}function X({hasPrevious:e,label:t,nextCursor:n,onNext:r,onPrevious:i,pageLength:a,pageNumber:o}){return(0,Y.jsxs)(`nav`,{"aria-label":`${t} pagination`,className:`flex flex-wrap items-center justify-between gap-3 border-t px-4 py-3 sm:px-6`,children:[(0,Y.jsxs)(`span`,{className:`text-xs text-muted-foreground tabular-nums`,children:[`Page `,o,` · `,a.toLocaleString(),` rows`]}),(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsx)(s,{className:`h-11 min-w-11 px-3 lg:h-8 lg:min-w-0 lg:px-2`,disabled:!e,onClick:i,size:`sm`,type:`button`,variant:`outline`,children:`Previous`}),(0,Y.jsx)(s,{className:`h-11 min-w-11 px-3 lg:h-8 lg:min-w-0 lg:px-2`,disabled:n===null,onClick:r,size:`sm`,type:`button`,variant:`outline`,children:`Next`})]})]})}var ye=e=>oe.filter((t,n)=>n===0||L[t].durationMs<=e*864e5);function be({event:e,eventsLocation:t,touch:n=!1}){return(0,Y.jsxs)(`div`,{className:n?`flex min-w-0 flex-wrap items-center justify-between gap-2`:`flex min-w-0 flex-col items-start gap-2`,children:[(0,Y.jsxs)(f,{className:a({className:n?`-ml-2 h-auto min-h-11 min-w-0 flex-1 justify-start gap-2 whitespace-normal text-sm`:`-ml-2 max-w-full justify-start`,size:`sm`,variant:`ghost`}),to:`/installations`,search:{...t,query:e.installId||void 0,installId:e.installId},state:e=>({insightsPagination:{eventsBack:e.insightsPagination?.eventsBack}}),"aria-label":`View history for ${e.userId??`anonymous installation`} (${e.installId})`,children:[(0,Y.jsx)(`span`,{className:n?`min-w-0 text-left wrap-anywhere`:`truncate`,children:e.userId??`Anonymous installation`}),(0,Y.jsx)(x,{"aria-hidden":`true`,"data-icon":`inline-end`})]}),(0,Y.jsx)(K,{value:e.installId,maxLength:13,buttonClassName:n?`min-h-11 px-3`:void 0})]})}function xe({children:t,description:n,error:r,eventsLocation:i,history:a,isFetching:o,isLoading:c,onNext:l,onPrevious:u,onRangeChange:d,onRefresh:f,pageNumber:p,range:m,rawDays:h=90,title:b=`All events`}){let x=_(),S=p>1,C=ye(h),w=m===void 0?void 0:ae(m),T=w!==void 0&&C.includes(w)?w:void 0,E=T!==void 0&&d?(0,Y.jsx)(s,{className:`h-11 px-3 lg:h-8`,onClick:()=>d(T),type:`button`,variant:`outline`,children:`Show the last ${L[T].period}`}):null;return(0,Y.jsxs)(F,{className:`@container min-w-0 shadow-sm`,"aria-busy":o,children:[(0,Y.jsxs)(j,{className:`gap-4 p-4 sm:p-6`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,Y.jsx)(N,{children:(0,Y.jsx)(`h2`,{children:b})}),(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[m!==void 0&&d?(0,Y.jsx)(de,{label:`Time range`,onPeriodChange:d,period:m,periods:C.map(e=>({value:e,name:`Last ${L[e].period}`}))}):null,(0,Y.jsxs)(s,{className:`h-11 lg:h-8`,disabled:o,onClick:f,size:`lg`,variant:`outline`,children:[(0,Y.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Refresh`]})]})]}),n?(0,Y.jsx)(P,{children:n}):null]}),t]}),(0,Y.jsx)(M,{className:`min-w-0 p-0`,children:c?(0,Y.jsxs)(`div`,{className:`flex flex-col gap-4 p-6`,role:`status`,"aria-label":`Loading events`,children:[(0,Y.jsx)(e,{className:`h-12 w-full`}),(0,Y.jsx)(e,{className:`h-12 w-full`}),(0,Y.jsx)(e,{className:`h-12 w-full`})]}):r?(0,Y.jsx)(`div`,{className:`px-6 pb-6`,children:(0,Y.jsx)(q,{error:r,fallbackTitle:`Event history unavailable`})}):a?(0,Y.jsxs)(Y.Fragment,{children:[a.data.length>0?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`@[58rem]:hidden`,children:(0,Y.jsx)(ve,{events:a.data,formatter:x,renderIdentity:e=>(0,Y.jsx)(be,{event:e,eventsLocation:i,touch:!0})})}),(0,Y.jsx)(`div`,{className:`hidden @[58rem]:block`,children:(0,Y.jsxs)(W,{className:`min-w-4xl table-fixed`,children:[(0,Y.jsx)(z,{children:(0,Y.jsxs)(H,{className:`[&>th]:px-4 sm:[&>th]:px-6`,children:[(0,Y.jsx)(B,{className:`w-64`,children:`Time`}),(0,Y.jsx)(B,{className:`w-48`,children:`Event`}),(0,Y.jsx)(B,{className:`w-48`,children:`User / installation`}),(0,Y.jsx)(B,{className:`w-32`,children:`App`}),(0,Y.jsx)(B,{className:`w-52`,children:`Bundle`})]})}),(0,Y.jsx)(V,{children:a.data.map(e=>(0,Y.jsxs)(H,{className:`[&>td]:px-4 [&>td]:py-4 [&>td]:align-top sm:[&>td]:px-6`,children:[(0,Y.jsx)(U,{className:`whitespace-normal text-xs tabular-nums`,children:(0,Y.jsx)(g,{value:e.receivedAtMs,formatter:x})}),(0,Y.jsx)(U,{children:(0,Y.jsx)(v,{event:e})}),(0,Y.jsx)(U,{children:(0,Y.jsx)(be,{event:e,eventsLocation:i})}),(0,Y.jsx)(U,{className:`whitespace-normal text-xs`,children:(0,Y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Y.jsxs)(`span`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:e.channel})]})}),(0,Y.jsx)(U,{className:`whitespace-normal text-xs`,children:(0,Y.jsx)(y,{event:e})})]},e.id))})]})})]}):(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 px-4 pb-4 sm:px-6 sm:pb-6`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:S?`No older events in this range.`:m===void 0?b===`All events`?`No events recorded yet`:`No matching reports in this period`:`No events in the last ${L[m].period}.`}),S?null:E]}),m!==void 0&&a.nextCursor===null&&(a.data.length>0||S)?(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-t px-4 py-3 sm:px-6`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Start of range reached`}),E]}):null,a.data.length>0||S||a.nextCursor?(0,Y.jsx)(X,{hasPrevious:S,label:b,nextCursor:a.nextCursor,onNext:l,onPrevious:u,pageLength:a.data.length,pageNumber:p}):null]}):null})]})}var Se=e=>e.userId??`—`,Ce=e=>`lastKnownBundleId`in e?e.lastKnownBundleId:e.type===`UPDATE_DOWNLOADED`||e.type===`UPDATE_FAILED`?e.fromBundleId:e.toBundleId;function we({error:t,history:n,isLoading:r,onNext:i,onPrevious:a,onRefresh:c,pageNumber:l,retention:u=C,selectedEvent:d,selectedInstallId:f}){let p=_(),m=d?Ce(d):void 0,b=d&&`pendingBundleId`in d?d.pendingBundleId:d&&`type`in d&&d.type===`UPDATE_DOWNLOADED`?d.toBundleId:null;return(0,Y.jsxs)(F,{className:`@container min-h-0 min-w-0 shadow-sm`,children:[(0,Y.jsx)(j,{className:`p-4 sm:p-6`,children:(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[(0,Y.jsx)(N,{className:`text-sm font-medium`,children:(0,Y.jsx)(`h2`,{children:f===void 0?`Select an installation`:`Installation history`})}),f===void 0?null:(0,Y.jsxs)(P,{children:[`Bundle changes and update failures are kept for`,` `,T(u.rawDays),`; the latest report, for`,` `,T(u.dailyDays),` after the installation last reports.`]})]}),c&&f!==void 0?(0,Y.jsxs)(s,{className:`h-11 lg:h-8`,size:`lg`,variant:`outline`,onClick:c,disabled:r,children:[(0,Y.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Refresh`]}):null]})}),(0,Y.jsxs)(M,{className:`min-h-0 p-0`,children:[f!==void 0&&d?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`section`,{"aria-labelledby":`latest-installation-state`,className:`px-4 pb-4 sm:px-6 sm:pb-6`,children:[(0,Y.jsx)(`h3`,{className:`sr-only`,id:`latest-installation-state`,children:`Latest reported state`}),(0,Y.jsxs)(`dl`,{className:`grid grid-cols-2 gap-4 @[36rem]:grid-cols-3`,children:[(0,Y.jsxs)(`div`,{className:`col-span-2 min-w-0 @[36rem]:col-span-1`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`User ID`}),(0,Y.jsx)(`dd`,{className:`mt-1 text-sm font-medium wrap-anywhere`,children:Se(d)})]}),(0,Y.jsxs)(`div`,{className:`min-w-0`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Install ID`}),(0,Y.jsx)(`dd`,{className:`mt-1 font-mono text-xs`,children:(0,Y.jsx)(K,{value:f,buttonClassName:`min-h-11 px-3 lg:min-h-0 lg:px-1.5`})})]}),(0,Y.jsxs)(`div`,{className:`min-w-0`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Last known bundle`}),(0,Y.jsxs)(`dd`,{className:`mt-1 flex min-w-0 flex-wrap items-center gap-2 font-mono text-xs`,children:[m?(0,Y.jsx)(K,{value:m,buttonClassName:`min-h-11 px-3 lg:min-h-0 lg:px-1.5`}):`—`,pe(m,d.minBundleId)?(0,Y.jsx)(fe,{}):null]})]}),b?(0,Y.jsxs)(`div`,{className:`col-span-2 min-w-0`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Downloaded · Not launched yet`}),(0,Y.jsx)(`dd`,{className:`mt-1 text-xs`,children:(0,Y.jsx)(K,{value:b})})]}):null]}),d.httpResponse?(0,Y.jsx)(`div`,{className:`mt-4`,children:(0,Y.jsx)(h,{event:d})}):null]}),(0,Y.jsx)(o,{})]}):null,f===void 0?null:r?(0,Y.jsxs)(`div`,{className:`flex flex-col gap-3 p-6`,role:`status`,"aria-label":`Loading installation history`,children:[(0,Y.jsx)(e,{className:`h-10 w-full`}),(0,Y.jsx)(e,{className:`h-10 w-full`}),(0,Y.jsx)(e,{className:`h-10 w-full`})]}):t?(0,Y.jsx)(`div`,{className:`p-6`,children:(0,Y.jsx)(q,{error:t instanceof Error?t:Error(),fallbackTitle:`Installation history unavailable`})}):n&&n.data.length>0?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`@[48rem]:hidden`,children:(0,Y.jsx)(ve,{events:n.data,formatter:p})}),(0,Y.jsx)(`div`,{className:`hidden @[48rem]:block`,children:(0,Y.jsxs)(W,{className:`min-w-3xl table-fixed`,children:[(0,Y.jsx)(z,{children:(0,Y.jsxs)(H,{className:`[&>th]:px-4 sm:[&>th]:px-6`,children:[(0,Y.jsx)(B,{className:`w-64`,children:`Time`}),(0,Y.jsx)(B,{className:`w-48`,children:`Event`}),(0,Y.jsx)(B,{className:`w-32`,children:`App`}),(0,Y.jsx)(B,{className:`w-52`,children:`Bundle`})]})}),(0,Y.jsx)(V,{children:n.data.map(e=>(0,Y.jsxs)(H,{className:`[&>td]:px-4 [&>td]:py-4 [&>td]:align-top sm:[&>td]:px-6`,children:[(0,Y.jsx)(U,{className:`whitespace-normal text-xs tabular-nums`,children:(0,Y.jsx)(g,{value:e.receivedAtMs,formatter:p})}),(0,Y.jsx)(U,{children:(0,Y.jsx)(v,{event:e})}),(0,Y.jsx)(U,{className:`whitespace-normal text-xs`,children:(0,Y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Y.jsxs)(`span`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:e.channel})]})}),(0,Y.jsx)(U,{className:`whitespace-normal text-xs`,children:(0,Y.jsx)(y,{event:e})})]},e.id))})]})}),(0,Y.jsx)(X,{hasPrevious:l>1,label:`Installation history`,nextCursor:n.nextCursor,onNext:i,onPrevious:a,pageLength:n.data.length,pageNumber:l})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`p-6 text-sm text-muted-foreground`,children:l>1?`No older bundle changes.`:`No bundle changes recorded yet.`}),n&&(l>1||n.nextCursor)?(0,Y.jsx)(X,{hasPrevious:l>1,label:`Installation history`,nextCursor:n.nextCursor,onNext:i,onPrevious:a,pageLength:0,pageNumber:l}):null]})]})]})}var Te=e=>e.lastKnownBundleId,Ee=e=>e.userId??`—`;function De({error:e,onNext:t,onPrevious:n,onSelect:r,pageNumber:i,results:o,selectedInstallId:l}){let[u,d]=(0,J.useState)(!1),f=(0,J.useId)(),p=(0,J.useRef)(null),m=!e&&o&&o.data.length>0;return(0,Y.jsxs)(F,{className:`min-h-0 min-w-0 shadow-sm`,children:[(0,Y.jsx)(j,{className:`p-4 sm:px-6`,children:(0,Y.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,Y.jsx)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:(0,Y.jsx)(N,{className:`text-sm font-medium`,children:(0,Y.jsx)(`h2`,{children:`Matching installations`})})}),(0,Y.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:m?(0,Y.jsx)(s,{"aria-controls":f,"aria-expanded":u,"aria-label":u?`Hide matching installations`:`Show matching installations`,className:`size-11 lg:hidden`,onClick:()=>d(!u),ref:p,size:`icon-lg`,variant:`ghost`,children:(0,Y.jsx)(O,{"aria-hidden":`true`,className:c(u&&`rotate-180`)})}):null})]})}),(0,Y.jsxs)(M,{className:c(`min-h-0 p-0`,m&&!u&&`hidden lg:block`),id:f,children:[e?(0,Y.jsx)(`div`,{className:`p-6`,children:(0,Y.jsx)(q,{error:e instanceof Error?e:Error(),fallbackTitle:`Installation search unavailable`})}):o&&o.data.length>0?(0,Y.jsx)(`ul`,{"aria-label":`Matching installations`,className:`divide-y`,children:o.data.map(e=>{let t=Te(e),n=e.installId===l;return(0,Y.jsx)(`li`,{children:(0,Y.jsxs)(`button`,{"aria-label":`${Ee(e)}, install ID ${e.installId}`,"aria-pressed":n,className:`group flex w-full min-w-0 flex-col gap-2 border-l-2 border-transparent px-4 py-4 text-left outline-none transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:bg-muted/40 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/30 aria-pressed:border-primary aria-pressed:bg-muted/60 motion-reduce:transition-none sm:px-6`,onClick:()=>{r(e.installId),d(!1),p.current?.focus()},type:`button`,children:[(0,Y.jsxs)(`span`,{className:`flex w-full min-w-0 items-center justify-between gap-3`,children:[(0,Y.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium`,children:Ee(e)}),n?(0,Y.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-xs font-medium text-primary`,children:[(0,Y.jsx)(D,{"aria-hidden":`true`,className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`sr-only`,children:`Selected`})]}):null]}),(0,Y.jsx)(`span`,{className:`flex flex-wrap items-center gap-2`,children:(0,Y.jsx)(`span`,{className:`font-mono text-xs`,title:e.installId,children:G(e.installId)})}),(0,Y.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Bundle`}),t?(0,Y.jsx)(`span`,{className:`font-mono text-xs`,title:t,children:G(t)}):(0,Y.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`—`})]})]})},e.installId)})}):(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 p-4 sm:px-6`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No matches`}),(0,Y.jsx)(`a`,{className:a({variant:`outline`,className:`h-11 px-3 lg:h-8`}),href:`#installation-history-search`,children:`Edit search`})]}),o&&(o.data.length>0||i>1||o.nextCursor)?(0,Y.jsx)(X,{hasPrevious:i>1,label:`Installation results`,nextCursor:o.nextCursor,onNext:t,onPrevious:n,pageLength:o.data.length,pageNumber:i}):null]})]})}function Oe({draftQuery:e,onDraftQueryChange:n,onSubmit:r,onClear:i}){return(0,Y.jsx)(`form`,{"aria-label":`Find installation`,onSubmit:t=>{t.preventDefault(),e.trim()&&r()},role:`search`,children:(0,Y.jsxs)(ne,{className:`gap-2`,children:[(0,Y.jsx)(I,{className:`sr-only`,htmlFor:`installation-history-search`,children:`User ID or installation ID`}),(0,Y.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,Y.jsxs)(ue,{className:`h-11 w-auto min-w-0 flex-1 basis-44 lg:h-8`,children:[(0,Y.jsx)(R,{children:(0,Y.jsx)(A,{"aria-hidden":`true`})}),(0,Y.jsx)(ce,{autoComplete:`off`,className:`h-11 text-base md:text-base lg:h-8 lg:text-xs`,id:`installation-history-search`,maxLength:1024,name:`installation`,onChange:e=>n(e.target.value),placeholder:`User ID or installation ID`,spellCheck:!1,type:`search`,value:e}),e.length>0?(0,Y.jsx)(R,{align:`inline-end`,children:(0,Y.jsx)(le,{"aria-label":`Clear installation lookup`,className:`size-11 lg:size-5`,onClick:i,size:`icon-xs`,children:(0,Y.jsx)(t,{"aria-hidden":`true`})})}):null]}),(0,Y.jsx)(s,{"aria-label":`Find installation`,className:`h-11 px-3 lg:h-8`,disabled:e.trim().length===0,size:`lg`,type:`submit`,variant:`outline`,children:`Find`})]})]})})}function ke(){return(0,Y.jsxs)(`div`,{className:`grid items-stretch gap-6 lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`,children:[(0,Y.jsx)(e,{className:`h-64 w-full lg:h-full`}),(0,Y.jsx)(e,{className:`h-64 w-full lg:h-full`})]})}var Ae=20,je=50,Z=()=>Date.now(),Q=(e,t)=>[...e,t??``],$=e=>({cursor:e?.at(-1)||void 0,stack:e.slice(0,-1)});function Me(){let e=se.useSearch(),t=se.useNavigate(),n=ee(),[r,i]=(0,J.useState)(e.query??``),[a]=(0,J.useState)(Z),[o]=(0,J.useState)(Z),c=_e({select:e=>e.state.insightsPagination}),l=c?.eventsBack??[],u=c?.searchBack??[],d=c?.historyBack??[],f=e.query?.trim()??``,p=f.length>0,m=e.installId!==void 0,h=p||m,g=e.eventsBefore??a,_=e.eventsRange??`7d`,v=e.historyBefore??o,y=(n,r=!1,i={})=>{t({to:`/installations`,search:{...e,...n},state:e=>({...e,insightsPagination:{...e.insightsPagination,...i}}),replace:r})};(0,J.useEffect)(()=>{i(e.query??``)},[e.query]),(0,J.useEffect)(()=>{e.eventsBefore===void 0&&y({eventsBefore:g},!0)},[g,e.eventsBefore]),(0,J.useEffect)(()=>{m&&e.historyBefore===void 0&&y({historyBefore:v},!0)},[m,v,e.historyBefore]);let x=E({...re(_,g),cursor:e.eventsCursor,limit:20},!h),C=S({cursor:e.searchCursor,identity:f,limit:Ae},p);(0,J.useEffect)(()=>{let e=C.data?.data[0]?.installId;!p||m||e===void 0||y({historyBefore:Z(),historyCursor:void 0,installId:e},!0,{historyBack:[]})},[p,m,C.data?.data]);let D=w(e.installId??``,m),O=te({beforeReceivedAtMs:v,cursor:e.historyCursor,installId:e.installId??``,limit:je},m),k=D.data??C.data?.data.find(({installId:t})=>t===e.installId)??O.data?.data[0],A=h?`installation-history-${e.historyCursor??`first`}`:`all-events-${e.eventsCursor??`first`}`,j=(0,J.useRef)(null),N=ge({id:A,getKey:ie});(0,J.useLayoutEffect)(()=>{!h&&!x.isLoading&&j.current&&(j.current.scrollTop=N?.scrollY??0)},[x.isLoading,h,N?.scrollY,A]);let P=()=>{i(``),y({historyBefore:void 0,historyCursor:void 0,installId:void 0,query:void 0,searchCursor:void 0},!1,{historyBack:[],searchBack:[]})},I=(0,Y.jsx)(Oe,{draftQuery:r,onClear:P,onDraftQueryChange:i,onSubmit:()=>{let e=r.trim();if(!e){P();return}y({historyBefore:void 0,historyCursor:void 0,installId:void 0,query:e,searchCursor:void 0},!1,{historyBack:[],searchBack:[]})}});return(0,Y.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,Y.jsx)(me,{view:`events`}),(0,Y.jsx)(`div`,{ref:j,"data-scroll-restoration-id":A,id:`insights-events-scroll`,className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,Y.jsxs)(`div`,{className:`mx-auto flex w-full max-w-7xl flex-col gap-4 sm:gap-6`,children:[h?(0,Y.jsx)(F,{className:`shadow-sm`,children:(0,Y.jsxs)(M,{className:`flex flex-col gap-3 p-4 sm:p-6`,children:[(0,Y.jsxs)(s,{className:`-ml-2 h-11 self-start lg:h-8`,onClick:P,variant:`ghost`,children:[(0,Y.jsx)(b,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Back to all events`]}),I]})}):null,h?C.isLoading&&p?(0,Y.jsx)(ke,{}):(0,Y.jsxs)(`div`,{className:`grid min-h-0 min-w-0 items-stretch gap-4 sm:gap-6 ${p?`lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`:`lg:grid-cols-1`}`,children:[p?(0,Y.jsx)(De,{error:C.error,onNext:()=>{C.data?.nextCursor&&y({installId:void 0,searchCursor:C.data.nextCursor},!0,{searchBack:Q(u,e.searchCursor)})},onPrevious:()=>{let e=$(u);y({installId:void 0,searchCursor:e.cursor},!0,{searchBack:e.stack})},onSelect:e=>{y({historyBefore:Z(),historyCursor:void 0,installId:e},!1,{historyBack:[]})},pageNumber:u.length+1,results:C.data,selectedInstallId:e.installId}):null,(0,Y.jsx)(we,{error:O.error??D.error,history:O.data,isLoading:O.isLoading||D.isLoading,onNext:()=>{O.data?.nextCursor&&y({historyCursor:O.data.nextCursor},!0,{historyBack:Q(d,e.historyCursor)})},onPrevious:()=>{let e=$(d);y({historyCursor:e.cursor},!0,{historyBack:e.stack})},onRefresh:()=>{y({historyBefore:Z(),historyCursor:void 0},!0,{historyBack:[]})},pageNumber:d.length+1,retention:n,selectedEvent:k,selectedInstallId:e.installId})]}):(0,Y.jsx)(xe,{description:`Downloads, launches, crashes, update failures, and other changes to what an installation runs, newest first, kept for ${T(n.rawDays)}. Launches that change nothing aren't listed.`,error:x.error,eventsLocation:{eventsBefore:g,eventsCursor:e.eventsCursor,eventsRange:e.eventsRange},history:x.data,isFetching:x.isFetching,isLoading:x.isLoading,onNext:()=>{x.data?.nextCursor&&y({eventsCursor:x.data.nextCursor},!0,{eventsBack:Q(l,e.eventsCursor)})},onPrevious:()=>{let e=$(l);y({eventsCursor:e.cursor},!0,{eventsBack:e.stack})},onRangeChange:e=>{y({eventsBefore:Z(),eventsCursor:void 0,eventsRange:e},!1,{eventsBack:[]})},onRefresh:()=>{y({eventsBefore:Z(),eventsCursor:void 0},!0,{eventsBack:[]})},pageNumber:l.length+1,range:_,rawDays:n.rawDays,children:I})]})},A)]})}export{Me as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./ConsoleFeatureUnavailable-B3VCINom.js";var t=e;export{t as notFoundComponent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-builds-D9hoJd6W.js","assets/sidebar-BmzmPGuv.js","assets/preload-helper-CE9OukVC.js","assets/link-CRMwpc7-.js","assets/ChannelPicker-BQKoyxnf.js","assets/useAnchoredPopupScrollLock-Cvx6CdPD.js","assets/useCompositeListItem-Cbk_weKW.js","assets/check-C3VCvMOV.js","assets/dist-BEmib-ZM.js","assets/input-group-CIjTdxCW.js","assets/api-eO-sq3Jd.js","assets/useMutation-D7IuoOLE.js","assets/constants-C5gi7fdZ.js","assets/arrow-up-right-C_1ALUCD.js","assets/TargetDisplay-DG_I3qln.js","assets/copy-BjVLMKbo.js","assets/key-round-BkeLvA1m.js","assets/native-builds-zwqucwx2.js","assets/HashValueDisplay-DvwvQchI.js","assets/-native-builds-search-BFcW2mlI.js","assets/history-Ci4dhphE.js","assets/badge-zMibJGR5.js","assets/ChannelBadge-BgVCJfJs.js","assets/RelativeTime-5ZP9WlQ6.js","assets/relativeTime-RUNbaMyO.js","assets/chevron-right-RAuPv9r1.js","assets/table-DbZPkzdz.js","assets/RowReason-CXMCJ-Jc.js","assets/PlatformIcon-D4KPXCHL.js","assets/NativeBuildsNav-BKdnlKMN.js","assets/tabs-BnpNC0zf.js","assets/SandboxBadge-PM92jCk6.js","assets/dialog-BvZDZzdQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,r as t,t as n}from"./preload-helper-CE9OukVC.js";import{i as r}from"./-native-builds-search-BFcW2mlI.js";var i=e(`/native-builds`)({component:t(()=>n(()=>import(`./native-builds-D9hoJd6W.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32])),`component`),validateSearch:r});export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Di as e,Vr as t,_r as n,gr as r,h as i,p as a}from"./sidebar-BmzmPGuv.js";import{t as o}from"./link-CRMwpc7-.js";import{o as s}from"./preload-helper-CE9OukVC.js";import{t as c}from"./arrow-up-right-C_1ALUCD.js";import{i as l,n as u,r as d,t as f}from"./TargetDisplay-DG_I3qln.js";import{o as p,t as ee}from"./-native-builds-search-BFcW2mlI.js";import{t as m}from"./history-Ci4dhphE.js";import{C as h,d as g,g as _,h as v,x as te}from"./native-builds-zwqucwx2.js";import{r as y}from"./dist-BEmib-ZM.js";import{a as b,i as x,n as S,o as C,r as w,t as ne}from"./badge-zMibJGR5.js";import{r as re}from"./constants-C5gi7fdZ.js";import{g as T,i as ie,p as ae}from"./api-eO-sq3Jd.js";import{t as E}from"./native-builds-C4u6JvxV.js";import{n as oe,t as se}from"./PlatformIcon-D4KPXCHL.js";import{a as ce,n as le,o as ue,r as de,s as fe,t as pe}from"./dialog-BvZDZzdQ.js";import{i as D,r as O}from"./table-DbZPkzdz.js";import{t as me}from"./ChannelBadge-BgVCJfJs.js";import{t as he}from"./ChannelPicker-BQKoyxnf.js";import{a as ge,c as _e,d as ve,f as ye,i as be,l as xe,n as Se,o as k,p as A,r as j,s as M,t as N,u as Ce}from"./RelativeTime-5ZP9WlQ6.js";import{a as P,c as we,i as F,l as Te,n as Ee,o as De,r as Oe,s as ke,t as Ae}from"./RowReason-CXMCJ-Jc.js";import{t as je}from"./NativeBuildsNav-BKdnlKMN.js";import{i as Me,n as Ne,r as I,t as L}from"./SandboxBadge-PM92jCk6.js";var Pe=t(`file-up`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]),R=e(),z=`npx hot-updater native-build import <file>`,B=`https://hot-updater.dev/docs/guides/native-build#import-a-build-made-elsewhere`;function Fe(){return(0,R.jsxs)(pe,{children:[(0,R.jsxs)(fe,{render:(0,R.jsx)(r,{"aria-label":`Import a build`,className:`min-h-11 min-w-11 sm:min-h-7 sm:min-w-0`,size:`sm`,variant:`outline`}),children:[(0,R.jsx)(Pe,{"data-icon":`inline-start`}),(0,R.jsx)(`span`,{className:`hidden sm:inline`,children:`Import a build`})]}),(0,R.jsxs)(le,{className:`sm:max-w-lg`,children:[(0,R.jsxs)(ce,{children:[(0,R.jsx)(ue,{children:`Import a build`}),(0,R.jsx)(de,{children:`Track an .ipa, .aab, .apk or .app built elsewhere as a patch base.`})]}),(0,R.jsx)(l,{label:`the import command`,value:z,wrap:!0}),(0,R.jsxs)(`a`,{className:n({className:`min-h-11 w-full sm:min-h-8 sm:w-fit`,variant:`outline`}),href:B,rel:`noreferrer`,target:`_blank`,children:[`Import guide`,(0,R.jsx)(c,{"data-icon":`inline-end`})]})]})]})}var Ie={"app-store":`App Store`,"ad-hoc":`ad hoc`,development:`development`,enterprise:`enterprise`},V=e=>{let t=v[e.artifact_kind].label,n=e.submitted_to===null?e.artifact_kind===`ipa`&&e.export_method!==null?`${Ie[e.export_method]} ${t}`:t:`${Me[e.submitted_to]} build`;return e.is_sandbox?`sandbox ${n}`:n},Le=e=>{if(e===void 0)return{sentence:`A newer build on its channel reaches people the same way.`,label:`Older: a newer build on its channel reaches people the same way`};let t=te(e);return{sentence:`A newer ${V(e)} exists${t===null?`.`:`: ${t}`}`,label:`Older: a newer ${V(e)} exists${t===null?``:`, ${t}`}`}};function H({newer:e}){let t=Le(e);return(0,R.jsx)(Ae,{icon:m,label:t.label,reason:t.sentence,children:`Older`})}var Re=`https://hot-updater.dev/docs/guides/native-build#how-a-build-is-tracked`,U=9,W=e=>e===void 0?{channels:`all`}:{channel:e},ze={one:`older build`,other:`older builds`};function Be({channel:e,paged:t,folded:i,onClearChannel:a}){return t||i?(0,R.jsx)(M,{icon:p,title:i?`Each build here has a newer one`:`No more native builds`,children:(0,R.jsx)(o,{className:n({className:`mt-1 min-h-11 sm:min-h-8`,variant:`outline`}),search:W(e),to:`/native-builds`,children:`Show the newest builds`})}):e===void 0?(0,R.jsxs)(M,{icon:p,title:`No native builds`,children:[(0,R.jsxs)(`p`,{children:[`Build one with`,` `,(0,R.jsx)(`code`,{className:`font-mono text-xs`,children:`native-build android`}),` or`,` `,(0,R.jsx)(`code`,{className:`font-mono text-xs`,children:`native-build ios`}),`, or import one built elsewhere:`]}),(0,R.jsx)(`div`,{className:`w-full text-left`,children:(0,R.jsx)(l,{label:`the import command`,value:z,wrap:!0})}),(0,R.jsxs)(`a`,{className:n({className:`mt-1 min-h-11 sm:min-h-8`,variant:`outline`}),href:Re,rel:`noreferrer`,target:`_blank`,children:[`Native build guide`,(0,R.jsx)(c,{"data-icon":`inline-end`})]}),(0,R.jsxs)(`a`,{className:n({className:`min-h-11 sm:min-h-8`,variant:`outline`}),href:B,rel:`noreferrer`,target:`_blank`,children:[`Import guide`,(0,R.jsx)(c,{"data-icon":`inline-end`})]})]}):(0,R.jsxs)(M,{icon:p,title:(0,R.jsxs)(R.Fragment,{children:[`No native build embeds `,(0,R.jsx)(`span`,{translate:`no`,children:e})]}),children:[(0,R.jsx)(`p`,{children:`A build embeds the channel it was built on. Build one on this channel, or list every channel's builds.`}),(0,R.jsx)(r,{className:`mt-1 min-h-11 sm:min-h-8`,onClick:a,variant:`outline`,children:`Show all channels`})]})}var G=e=>`${h(e.platform)} ${v[e.artifact_kind].label}`;function K({build:e}){return(0,R.jsx)(o,{"aria-label":G(e),className:`relative rounded-sm font-medium whitespace-nowrap text-foreground transition-colors underline-offset-4 after:absolute after:-inset-x-[10px] after:-inset-y-[10px] hover:text-primary hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden`,params:{buildId:e.id},to:`/native-builds/$buildId`,children:v[e.artifact_kind].label})}function q({build:e,inTable:t=!1,older:n=!1,newer:r}){return t?(0,R.jsxs)(`span`,{className:`flex max-w-24 flex-wrap items-center gap-x-1.5 gap-y-1`,children:[(0,R.jsx)(K,{build:e}),(0,R.jsx)(L,{build:e}),n?(0,R.jsx)(H,{newer:r}):null]}):(0,R.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1`,children:[(0,R.jsx)(K,{build:e}),(0,R.jsx)(L,{build:e})]})}function J({channel:e,onChannel:t}){return(0,R.jsx)(`button`,{"aria-label":`Show the builds that embed ${e}`,className:`relative flex max-w-full min-w-0 rounded-md text-left after:absolute after:-inset-x-1 after:-inset-y-[11px] focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden`,onClick:()=>t(e),title:e,type:`button`,children:(0,R.jsx)(me,{channel:e,className:`block max-w-32 truncate`})})}function Ve({build:e}){return!I(e)&&!e.is_store_build?(0,R.jsx)(u,{}):(0,R.jsx)(Y,{build:e,className:`flex flex-col items-start gap-1`})}function Y({build:e,className:t}){return(0,R.jsxs)(`span`,{className:t,children:[(0,R.jsx)(Ne,{build:e}),e.is_store_build?(0,R.jsx)(ne,{className:`px-1.5`,variant:`muted`,children:`Store build`}):null]})}function X({build:e}){return e.build_number?(0,R.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.build_number}):(0,R.jsx)(u,{})}var Z=e=>re(e.id);function Q({build:e,older:t=!1,newer:n,onChannel:r}){let i=s(),a=_(e);return(0,R.jsxs)(ve,{"aria-label":`Open native build ${e.id}`,className:`data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100`,"data-older":t?!0:void 0,onOpen:()=>void i({to:`/native-builds/$buildId`,params:{buildId:e.id}}),children:[(0,R.jsx)(O,{children:(0,R.jsx)(q,{build:e,inTable:!0,newer:n,older:t})}),(0,R.jsx)(O,{children:(0,R.jsx)(J,{channel:a,onChannel:r})}),(0,R.jsx)(O,{className:`whitespace-nowrap`,children:(0,R.jsx)(oe,{platform:e.platform})}),(0,R.jsx)(O,{children:(0,R.jsx)(X,{build:e})}),(0,R.jsx)(O,{children:(0,R.jsx)(d,{appVersion:e.app_version,fingerprintHash:e.fingerprint_hash,nativeAppVersion:e.native_app_version})}),(0,R.jsx)(O,{children:(0,R.jsx)(f,{value:e.build_key})}),(0,R.jsx)(O,{children:(0,R.jsx)(Ve,{build:e})}),(0,R.jsx)(O,{className:`whitespace-nowrap text-muted-foreground tabular-nums`,children:g(e.byte_size)}),(0,R.jsx)(O,{className:`text-xs text-muted-foreground`,children:(0,R.jsx)(N,{ms:Z(e)})})]})}function $({build:e,older:t=!1,newer:n,onChannel:r}){let i=s(),a=_(e),o=I(e)||e.is_store_build;return(0,R.jsxs)(Se,{"aria-label":`Native build ${G(e)} ${e.id}`,className:`gap-3 border-b-0 data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100`,"data-older":t?!0:void 0,onClick:A(()=>void i({to:`/native-builds/$buildId`,params:{buildId:e.id}})),children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 items-center gap-x-2.5`,children:[(0,R.jsx)(se,{className:`size-4 shrink-0 text-muted-foreground`,platform:e.platform}),(0,R.jsx)(q,{build:e}),t?(0,R.jsx)(H,{newer:n}):null]}),(0,R.jsx)(`div`,{className:`flex min-w-0`,children:(0,R.jsx)(J,{channel:a,onChannel:r})}),(0,R.jsxs)(`p`,{className:`flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground`,children:[(0,R.jsx)(`span`,{className:`sr-only`,children:h(e.platform)}),e.build_number?(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(`span`,{translate:`no`,children:[`Build`,` `,(0,R.jsx)(`span`,{className:`font-mono tabular-nums text-foreground`,children:e.build_number})]}),(0,R.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}):null,(0,R.jsx)(`span`,{className:`tabular-nums`,children:g(e.byte_size)}),(0,R.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,R.jsx)(N,{ms:Z(e)})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-end gap-x-4 gap-y-6 text-xs`,children:[(0,R.jsxs)(`span`,{className:`flex items-center`,children:[(0,R.jsx)(`span`,{className:`sr-only`,children:`Target `}),(0,R.jsx)(d,{appVersion:e.app_version,fingerprintHash:e.fingerprint_hash,nativeAppVersion:e.native_app_version})]}),e.build_key?(0,R.jsxs)(`span`,{className:`flex items-center`,children:[(0,R.jsx)(`span`,{className:`sr-only`,children:`Build key `}),(0,R.jsx)(f,{value:e.build_key})]}):null]}),o?(0,R.jsx)(Y,{build:e,className:`flex flex-wrap items-center gap-1.5`}):null]})}function He({fold:e,channel:t,isMobile:n,open:r,onOpenChange:i,onChannel:a}){let o=ae(t,{...e.from===void 0?{}:{from:e.from},to:e.to},r),s=o.data?.pages??[],c=Object.assign({},...s.map(e=>e.newer)),l=s.flatMap(e=>e.rows),u=n?void 0:U,d=o.isError?(0,R.jsx)(F,{columns:u,label:`Older builds`,onRetry:()=>void o.refetch(),state:`error`}):o.isPending||o.isFetchingNextPage?(0,R.jsx)(F,{columns:u,label:`Loading older builds`,state:`loading`}):o.hasNextPage?(0,R.jsx)(F,{columns:u,label:`Older builds`,onMore:()=>void o.fetchNextPage(),state:`more`}):null,f={label:De(e,ze),open:r,onOpenChange:i,panelId:`native-build-fold-${e.to}`};return n?(0,R.jsxs)(Ee,{...f,inList:!0,children:[l.map(e=>(0,R.jsx)(`div`,{className:`border-b last:border-b-0`,role:`listitem`,children:(0,R.jsx)($,{build:e,newer:c[e.id],older:!0,onChannel:a})},e.id)),d]}):(0,R.jsxs)(Oe,{...f,columns:U,children:[l.map(e=>(0,R.jsx)(Q,{build:e,newer:c[e.id],older:!0,onChannel:a},e.id)),d]})}function Ue({builds:e,channel:t,paged:n,onChannel:a}){let o=i(),s=Te(),c=e.data?.entries,{next:l,previous:u}=e.data??{},d=c?.filter(({kind:e})=>e===`row`).length??0;if(e.isError)return(0,R.jsxs)(S,{variant:`destructive`,children:[(0,R.jsx)(C,{}),(0,R.jsx)(b,{children:`Native builds couldn't be loaded`}),(0,R.jsx)(x,{children:`Check your connection and try again.`}),(0,R.jsx)(w,{children:(0,R.jsxs)(r,{onClick:()=>void e.refetch(),size:`xs`,variant:`outline`,children:[(0,R.jsx)(y,{"data-icon":`inline-start`}),`Retry`]})})]});let f=(0,R.jsx)(Be,{channel:t,folded:(c?.length??0)>0,onClearChannel:()=>a(void 0),paged:n}),p=e=>(0,R.jsx)(He,{channel:t,fold:e,isMobile:o,onChannel:a,onOpenChange:t=>s.set(P(e),t),open:s.isOpen(P(e))},`fold-${e.to}`);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(_e,{children:o?(0,R.jsx)(`div`,{"aria-busy":e.isPlaceholderData,"aria-label":`Native builds`,className:`h-full overflow-y-auto aria-busy:opacity-60`,role:`list`,children:e.isPending?(0,R.jsx)(j,{label:`Loading native builds`}):(0,R.jsxs)(R.Fragment,{children:[d===0?(0,R.jsx)(be,{children:f}):null,c?.map(e=>e.kind===`fold`?p(e):(0,R.jsx)(`div`,{className:`border-b last:border-b-0`,role:`listitem`,children:(0,R.jsx)($,{build:e.row,onChannel:a})},e.row.id))]})}):(0,R.jsx)(ge,{"aria-busy":e.isPlaceholderData,"aria-label":`Native builds`,className:`aria-busy:opacity-60 [&_td]:px-1.5 [&_th]:px-1.5`,header:(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(D,{children:`Artifact`}),(0,R.jsx)(D,{children:`Channel`}),(0,R.jsx)(D,{children:`Platform`}),(0,R.jsx)(D,{children:`Build`}),(0,R.jsx)(D,{children:`Target`}),(0,R.jsx)(D,{children:`Build key`}),(0,R.jsx)(D,{children:`Store`}),(0,R.jsx)(D,{children:`Size`}),(0,R.jsx)(D,{children:`Created`})]}),rowGroups:!0,children:e.isPending?(0,R.jsx)(k,{children:(0,R.jsx)(ye,{columns:U,label:`Loading native builds`})}):(0,R.jsxs)(R.Fragment,{children:[d===0?(0,R.jsx)(k,{children:(0,R.jsx)(xe,{columns:U,children:f})}):null,we(c??[]).map(e=>e.kind===`fold`?p(e.fold):(0,R.jsx)(k,{children:e.rows.map(e=>(0,R.jsx)(Q,{build:e,onChannel:a},e.id))},`rows-${e.rows[0].id}`))]})})}),e.isPending||c===void 0?null:(0,R.jsx)(Ce,{count:d,folded:{...ke(c),label:`older`},label:`Native build pages`,noun:[`build`,`builds`],pending:e.isPlaceholderData,newest:n?{search:W(t),to:`/native-builds`}:void 0,next:l===void 0?void 0:{search:{...W(t),before:l},to:`/native-builds`},previous:u===void 0?void 0:{search:{...W(t),...u},to:`/native-builds`}})]})}var We={data:void 0,isError:!1,isPending:!0,isPlaceholderData:!1,refetch:()=>void 0};function Ge({search:e,onSearchChange:t}){let n=ie(),i=n.data?.map(({name:e})=>e)??[],o=ee(e,n.data&&i),s=o===void 0,c=s&&n.isError,{channel:l,before:u,after:d}=o??e,f=T(o??{},{enabled:!s}),m=s?We:f,h=e=>t(e===void 0?{channels:`all`}:{channel:e});return(0,R.jsxs)(`div`,{className:`flex h-svh min-h-0 min-w-0 flex-col`,children:[(0,R.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,R.jsx)(a,{className:`-ml-1 size-11 lg:size-7`}),(0,R.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,R.jsx)(p,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,R.jsx)(`h1`,{className:`text-sm font-medium`,children:`Native builds`})]}),(0,R.jsx)(`p`,{className:`basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`Store and test builds, each the built-in bundle its OTAs patch from.`})]}),(0,R.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col gap-4 bg-muted/5 p-3 sm:p-6`,children:[(0,R.jsx)(je,{current:`builds`}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,R.jsx)(he,{allChannels:!0,className:`max-sm:min-w-0 max-sm:basis-full`,onValueChange:h,pending:s,value:l}),(0,R.jsx)(`div`,{className:`ml-auto`,children:(0,R.jsx)(Fe,{})}),(0,R.jsx)(r,{"aria-label":`Refresh native builds`,className:`size-11 sm:size-7`,disabled:m.isPending,onClick:()=>void m.refetch(),size:`icon-sm`,variant:`ghost`,children:(0,R.jsx)(y,{"aria-hidden":`true`})})]}),c?(0,R.jsxs)(S,{variant:`destructive`,children:[(0,R.jsx)(C,{}),(0,R.jsx)(b,{children:`Channels couldn't be loaded`}),(0,R.jsx)(x,{children:`Native builds show once the channels load.`}),(0,R.jsx)(w,{children:(0,R.jsxs)(r,{className:`min-h-11 sm:min-h-7`,onClick:()=>void n.refetch(),size:`xs`,variant:`outline`,children:[(0,R.jsx)(y,{"data-icon":`inline-start`}),`Retry`]})})]}):(0,R.jsx)(Ue,{builds:m,channel:l,onChannel:h,paged:u!==void 0||d!==void 0})]})]})}function Ke(){let e=E.useSearch(),t=E.useNavigate();return(0,R.jsx)(Ge,{onSearchChange:e=>void t({search:e}),search:e})}export{Ke as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vr as e}from"./sidebar-BmzmPGuv.js";import{h as t,m as n}from"./constants-C5gi7fdZ.js";var r=e(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),i=e=>/^[\w@%+=:,./-]+$/.test(e)?e:`'${e.replaceAll(`'`,`'\\''`)}'`,a={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`}},o=e=>e===`ios`?`iOS`:`Android`,s=e=>{let t=e.submitted_version??[e.app_version??e.native_app_version??null,e.build_number===null?null:`(${e.build_number})`].filter(e=>e!==null).join(` `);return t===``?null:`${o(e.platform)} ${t}`},c=e=>`/api/native-builds/${encodeURIComponent(e)}/download`,l=(e,t,n)=>`${e.origin}${u(e,t)}${c(t)}?t=${encodeURIComponent(n)}`,u=(e,t)=>{let n=p(t);return e.pathname.endsWith(n)?e.pathname.slice(0,-n.length):``},d=(e,t)=>{let n=e.pathname.replace(/\/$/u,``),r=t.replace(/\/$/u,``);return n.endsWith(r)?n.slice(0,n.length-r.length):``},f=e=>{let t=e.pathname.lastIndexOf(`/native-builds`);return t<0?``:e.pathname.slice(0,t)},p=e=>`/native-builds/${encodeURIComponent(e)}`,m=3600*1e3,h=`hot-updater-ios-udid`,g=`hot-updater-ios-device-receipt`,_=`hot-updater-ios-device-pending-receipt`,v=e=>{try{let t=e.split(`.`)[0].replaceAll(`-`,`+`).replaceAll(`_`,`/`),n=JSON.parse(atob(t)).x;return typeof n==`number`?n:0}catch{return 0}},y=e=>{try{let t=JSON.parse(window.sessionStorage.getItem(`hot-updater-ios-device-pending-receipt`)??`null`);return typeof t?.receipt==`string`?v(t.receipt)<=Date.now()?(window.sessionStorage.removeItem(_),null):e!==null&&t.udid===e?t.receipt:null:null}catch{return null}},b=(e,t)=>{try{window.sessionStorage.setItem(_,JSON.stringify({udid:e,receipt:t}))}catch{}},x=e=>{try{JSON.parse(window.sessionStorage.getItem(`hot-updater-ios-device-pending-receipt`)??`null`)?.receipt===e&&window.sessionStorage.removeItem(_)}catch{}},S=/^(?:[0-9a-f]{40}|[0-9a-f]{8}-[0-9a-f]{16})$/iu,C=`/native-builds/devices`,w=`/_hot-updater/devices/device.mobileconfig`,T=(e,t)=>`${e}${w}?t=${encodeURIComponent(t)}`,E=`npx hot-updater native-build devices add`,D=e=>`…${e.slice(-6)}`,O=e=>`/_hot-updater/native-builds/${encodeURIComponent(e)}/manifest.plist`,k=(e,t,n)=>{let r=`${e.origin}${u(e,t)}${O(t)}?t=${encodeURIComponent(n)}`;return`itms-services://?action=download-manifest&url=${encodeURIComponent(r)}`},A=e=>t(e.channel_id.slice(8)),j=`Deploys make no patches from a sandbox build's built-in bundle.`,M=e=>{if(e.fingerprintHash!==null)return{platform:e.platform,channel:e.channel,fingerprintHash:e.fingerprintHash,appVersion:null};let t=e.targetAppVersion;return t===null||n(t)!==t?null:{platform:e.platform,channel:e.channel,fingerprintHash:null,appVersion:t}},N=e=>{let t=(e.artifact_storage_uri.split(/[?#]/,1)[0]??``).split(`/`).at(-1)??``;try{return decodeURIComponent(t)}catch{return t}},P=[`B`,`KB`,`MB`,`GB`],F=e=>{let t=e,n=0;for(;t>=1024&&n<P.length-1;)t/=1024,n+=1;return`${n===0?t:t.toFixed(1)} ${P[n]}`},I=e=>`npx hot-updater native-build install ${i(e.id)}`;export{o as C,i as D,x as E,r as O,l as S,M as T,c as _,h as a,k as b,d as c,F as d,b as f,A as g,a as h,S as i,u as l,D as m,C as n,m as o,T as p,g as r,j as s,E as t,f as u,N as v,y as w,s as x,I as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Di as t,Ri as n,Vi as r,Vr as i,_r as a,gr as o,p as s}from"./sidebar-BmzmPGuv.js";import{t as c}from"./link-CRMwpc7-.js";import{t as l}from"./arrow-up-right-C_1ALUCD.js";import{a as u,i as d,n as f,r as p,t as ee}from"./TargetDisplay-DMZHMgWk.js";import{t as m}from"./chevron-right-RAuPv9r1.js";import{n as te,t as h}from"./native-builds_._buildId-Dza7vEcy.js";import{t as ne}from"./download-CgpaZb23.js";import{t as re}from"./git-branch-BGatQV8Q.js";import{o as ie}from"./-native-builds-search-qeto9-fq.js";import{t as ae}from"./history-Ci4dhphE.js";import{C as g,D as _,S as oe,_ as v,d as y,h as b,m as se,s as x,v as S,x as ce,y as C}from"./native-builds-uKuvmyXZ.js";import{n as w,r as T}from"./dist-BEmib-ZM.js";import{t as le}from"./smartphone-Dy13ukaU.js";import{a as E,i as D,n as O,o as k,r as ue,t as A}from"./badge-zMibJGR5.js";import{a as j,n as M,o as N,t as P}from"./card-pYZSDIxg.js";import{a as de}from"./constants-zSb7FXDh.js";import{n as fe}from"./relativeTime-Dbefsycs.js";import{a as pe,d as me,f as he,h as ge,l as _e,u as ve}from"./api-tJRzijjy.js";import{a as ye,m as be,n as xe}from"./IosInstall-CgNa8B4v.js";import{a as F,i as I,n as L,o as R,r as z,t as B}from"./empty-Bwao2ztZ.js";import{t as Se}from"./PlatformIcon-DYsYaYt6.js";import{a as V,i as H,n as U,o as W,r as G,t as K}from"./table-Bo1jU9-v.js";import{t as Ce}from"./BundleIdDisplay-BKaGARD1.js";import{t as we}from"./ChannelBadge-CPc1M44L.js";import{n as Te,r as q,t as Ee}from"./RolloutPercentageBadge-Cd1UNLL0.js";import{n as De,r as J,t as Oe}from"./SandboxBadge-CqGX5DiH.js";import{t as Y}from"./QrCode-BSNEn_M-.js";var ke=i(`circle-slash`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]),Ae=i(`package-open`,[[`path`,{d:`M12 22v-9`,key:`x3hkom`}],[`path`,{d:`M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z`,key:`2ntwy6`}],[`path`,{d:`M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13`,key:`1pmm1c`}],[`path`,{d:`M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z`,key:`12ttoo`}]]),X=t();function Z({value:e,length:t,shown:n=e.slice(0,t),label:r}){let i=async()=>{try{await navigator.clipboard.writeText(e),w.success(`Copied to clipboard`,{description:e})}catch{w.error(`Could not copy the ${r}`)}};return(0,X.jsx)(`button`,{"aria-label":`Copy the ${r} ${e}`,className:`relative cursor-copy rounded-sm font-mono after:absolute after:-inset-x-2 after:-inset-y-4 sm:after:hidden text-xs whitespace-nowrap tabular-nums underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none`,onClick:e=>{e.stopPropagation(),i()},title:e,translate:`no`,type:`button`,children:n})}function je({hash:e}){let t=pe();if(e===null)return(0,X.jsx)(f,{});let n=Te(t.data?.console.gitUrl,e);return n===null?(0,X.jsx)(Z,{label:`commit`,length:7,value:e}):(0,X.jsx)(`a`,{className:`relative font-mono text-xs whitespace-nowrap underline-offset-4 after:absolute after:-inset-x-2 after:-inset-y-4 hover:underline sm:after:hidden`,href:n,onClick:e=>e.stopPropagation(),rel:`noreferrer`,target:`_blank`,title:e,translate:`no`,children:e.slice(0,7)})}function Q({label:e,children:t}){return(0,X.jsxs)(`div`,{className:`grid gap-1 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4`,children:[(0,X.jsx)(`dt`,{className:`text-xs font-medium text-muted-foreground`,children:e}),(0,X.jsx)(`dd`,{className:`min-w-0 text-sm`,children:t})]})}function Me({detail:e}){let{build:t}=e,n=_e();if(t.is_sandbox)return null;let r=!t.is_store_build;return(0,X.jsx)(o,{className:`min-h-11 shrink-0 sm:min-h-8`,disabled:n.isPending,onClick:()=>n.mutate({id:t.id,storeBuild:r},{onSuccess:()=>{w.success(r?`Marked as the store build`:`Mark cleared`)},onError:e=>{w.error(`Could not change the mark`,{description:e.message})}}),size:`sm`,type:`button`,variant:`outline`,children:r?`Mark as store build`:`Clear mark`})}function Ne({detail:e}){let{build:t,newestInScope:n,storeBuildInScope:r}=e;if(t.is_sandbox)return(0,X.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border bg-muted/40 p-3 text-xs`,children:[(0,X.jsx)(ke,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground`}),(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`No patch base.`}),` `,x]})]});let i=r??n;if(i===null)return null;let a=i.id===t.id;return(0,X.jsxs)(`div`,{className:`flex flex-col gap-3 rounded-md border bg-muted/40 p-3 text-xs sm:flex-row sm:items-center sm:justify-between`,children:[(0,X.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,X.jsx)(a?te:ae,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground`}),r?.id===t.id?(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`Store build.`}),` New deploys to this scope patch from this build.`]}):a?(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`Current baseline.`}),` The newest build, and no store build is marked. New deploys to this scope patch from this build.`]}):(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`Not the base.`}),` New deploys patch from`,` `,(0,X.jsxs)(c,{className:`inline-flex items-center gap-0.5 font-medium underline underline-offset-4`,params:{buildId:i.id},to:`/native-builds/$buildId`,children:[ce(i)??(0,X.jsxs)(X.Fragment,{children:[g(i.platform),` `,b[i.artifact_kind].label,` ·`,` `,(0,X.jsx)(q,{uuid:i.id})]}),(0,X.jsx)(l,{"aria-hidden":`true`,className:`size-3`})]}),`, so this one gets no new patches.`]})]}),(0,X.jsx)(Me,{detail:e})]})}function Pe({detail:e}){let{build:t,builtInBundle:n,channel:r}=e,i=n?.childCount??0;return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(j,{className:`border-b px-4 py-3`,children:(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Built-in bundle`})})}),(0,X.jsxs)(M,{className:`flex flex-col gap-4 p-4 sm:p-6`,children:[(0,X.jsxs)(`dl`,{className:`flex flex-col gap-3`,children:[(0,X.jsx)(Q,{label:`Bundle ID`,children:(0,X.jsx)(Ce,{bundleId:t.min_bundle_id})}),(0,X.jsx)(Q,{label:`OTAs patching from it`,children:(0,X.jsx)(`span`,{className:`tabular-nums`,children:i===1?`1 bundle`:`${i} bundles`})}),(0,X.jsx)(Q,{label:`Scope`,children:(0,X.jsxs)(`span`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,X.jsx)(c,{"aria-label":`Show the builds that embed ${r}`,className:`relative rounded-md after:absolute after:-inset-x-1 after:-inset-y-[11px] sm:after:hidden`,search:{channel:r},to:`/native-builds`,children:(0,X.jsx)(we,{channel:r})}),(0,X.jsx)(`span`,{className:`text-xs`,children:g(t.platform)})]})}),(0,X.jsx)(Q,{label:`Target`,children:(0,X.jsx)(`span`,{className:`text-xs`,children:(0,X.jsx)(p,{appVersion:t.app_version,fingerprintHash:t.fingerprint_hash,nativeAppVersion:t.native_app_version})})}),(0,X.jsx)(Q,{label:`Build key`,children:(0,X.jsx)(`span`,{className:`text-xs`,children:(0,X.jsx)(ee,{value:t.build_key})})}),t.build_number?(0,X.jsx)(Q,{label:`Build`,children:(0,X.jsx)(`span`,{className:`font-mono text-xs tabular-nums`,translate:`no`,children:t.build_number})}):null,(0,X.jsx)(Q,{label:`Commit`,children:(0,X.jsx)(je,{hash:t.git_commit_hash})}),(0,X.jsx)(Q,{label:`Created`,children:(0,X.jsx)(q,{format:`both`,uuid:t.id})})]}),(0,X.jsx)(Ne,{detail:e}),(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.is_sandbox?`An install of this build runs this bundle until it opens an OTA.`:`A store or test install of this build runs this bundle until its first OTA. That OTA downloads as a patch from this bundle when one exists, and as the full bundle otherwise.`})]})]})}var Fe=r(fe(),1),$=r(n(),1),Ie=`The .ipa installs only on devices its signing profile allows (development or ad hoc)`,Le=e=>{switch(e.artifact_kind){case`ipa`:return e.is_sandbox?`${Ie}.`:`${Ie}; an App Store export reaches testers through TestFlight.`;case`aab`:return`The .aab installs through Google Play or bundletool, not from the file.`;default:return}},Re=e=>{switch(e.artifact_kind){case`apk`:return`Scan with an Android phone's camera, then open the APK to install it.`;case`app`:return`Scan to download the .app.zip on a Mac.`;default:return`Scan to download. ${Le(e)}`}};function ze(){let{origin:e,pathname:t}=window.location;return(0,X.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,X.jsx)(Y,{className:`size-48`,label:`Open this page on an iPhone`,value:`${e}${t}`}),(0,X.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:`Scan with an iPhone to install this build from here. The phone signs in to the Console first.`})]})}function Be({build:e,url:t,note:n}){return(0,X.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,X.jsx)(Y,{className:`size-48`,label:`Download ${S(e)}`,value:t}),(0,X.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:Re(e)}),n?(0,X.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:n}):null]})}function Ve({message:e}){return(0,X.jsxs)(O,{variant:`destructive`,children:[(0,X.jsx)(k,{}),(0,X.jsx)(E,{children:`The download link couldn't be created`}),(0,X.jsx)(D,{children:e})]})}function He({build:t}){let n=he(t.id),r=n.data?.url;if(r===null){let e=Le(t);return(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,X.jsx)(`p`,{children:`This storage gives no download link a phone can open without signing in, so there is no QR code. Download the build here, or open this page on the phone signed in to the console.`}),e?(0,X.jsx)(`p`,{children:e}):null]})}return r===void 0?n.isError?(0,X.jsx)(Ve,{message:n.error.message}):(0,X.jsx)(e,{className:`size-48`}):(0,X.jsx)(Be,{build:t,note:`This link expires. If the download fails, reload this page.`,url:r})}function Ue({build:e,href:t}){return(0,X.jsxs)(`a`,{className:a({className:`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,variant:e.artifact_kind===`ipa`?`ghost`:`outline`}),download:!0,href:t,children:[(0,X.jsx)(ne,{"data-icon":`inline-start`}),(0,X.jsxs)(`span`,{className:`text-left [overflow-wrap:anywhere]`,children:[`Download `,S(e)]})]})}function We({build:e}){return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(j,{className:`border-b px-4 py-3`,children:(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Install`})})}),(0,X.jsxs)(M,{className:`flex min-w-0 flex-col gap-4 p-4 sm:p-6`,children:[(0,X.jsx)(De,{build:e,withTime:!0}),(0,X.jsx)(Ge,{build:e}),(0,X.jsx)(Ue,{build:e,href:v(e.id)})]})]})}function Ge({build:e}){switch(e.artifact_kind){case`apk`:return(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Your browser needs the "Install unknown apps" permission.`}),e.is_sandbox?(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Its .sandbox ID installs it beside a Play copy.`}):(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`If this package is already installed with another signing key, such as a Play copy, the install fails. Uninstall that copy first, or build with sandbox: true, whose .sandbox ID installs beside it.`}),(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`On an emulator or a phone over USB, install and open it from your project:`}),(0,X.jsx)(d,{label:`the install command`,value:C(e)})]});case`app`:return(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`It runs only in the iOS Simulator. In your project, install and open it on the booted one:`}),(0,X.jsx)(d,{label:`the install command`,value:C(e)})]});case`aab`:return J(e)?(0,X.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[e.submitted_to===`play-production`?`Users`:`Testers`,` get it once its release is rolled out; on an app Play Console hasn't published, the release is a draft you roll out in Play Console.`]}):(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`For testers, build and release to internal testing:`}),(0,X.jsx)(d,{label:`the Google Play command`,value:`npx hot-updater google-play upload`})]});case`ipa`:return J(e)?(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Internal testers install it from the TestFlight app once App Store Connect has processed it.`}):(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Over USB, Xcode or Apple Configurator installs it.`})}}function Ke({link:e,url:t}){return e?.status===`no-secret`?(0,X.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,e.secretName,` on the Console to create links.`]}):e?.status!==`issued`||t===null?null:(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(d,{label:`the download link`,value:t}),(0,X.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Anyone with this link can download this build until`,` `,(0,X.jsxs)(`span`,{className:`whitespace-nowrap`,children:[(0,Fe.default)(e.expiresAt).format(`YYYY-MM-DD`),`.`]})]})]})}function qe({build:e}){return J(e)&&(e.artifact_kind===`ipa`||e.artifact_kind===`aab`)?(0,X.jsx)(We,{build:e}):(0,X.jsx)(Ye,{build:e})}function Je({children:e}){let[t,n]=(0,$.useState)(!1),r=(0,$.useId)();return(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3 border-t pt-3`,children:[(0,X.jsxs)(`button`,{"aria-controls":r,"aria-expanded":t,className:`group/other -mx-1 flex min-h-11 items-center gap-1.5 self-start rounded-md px-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:min-h-8`,onClick:()=>n(e=>!e),type:`button`,children:[(0,X.jsx)(m,{"aria-hidden":`true`,className:`size-3.5 shrink-0 transition-transform group-aria-expanded/other:rotate-90 motion-reduce:transition-none`}),`Other ways to install`]}),(0,X.jsx)(`div`,{hidden:!t,id:r,children:e})]})}function Ye({build:t}){let n=me(t.id),r=n.data?.status===`issued`?oe(window.location,t.id,n.data.token):null,i=ye(),a=t.artifact_kind===`ipa`,o=a&&i?.ios===!0,s=(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,X.jsx)(Ge,{build:t}),(0,X.jsx)(Ue,{build:t,href:r??v(t.id)}),(0,X.jsx)(Ke,{link:n.data,url:r})]});return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(j,{className:`border-b px-4 py-3`,children:(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Install`})})}),o?(0,X.jsxs)(M,{className:`flex min-w-0 flex-col gap-4 p-4 sm:p-6`,children:[(0,X.jsx)(xe,{build:t,device:i}),(0,X.jsx)(Je,{children:s})]}):(0,X.jsxs)(M,{className:`grid gap-6 p-4 sm:grid-cols-[12rem_minmax(0,1fr)] sm:p-6`,children:[a&&r!==null?(0,X.jsx)(ze,{}):r===null?n.data===void 0?n.isError?(0,X.jsx)(Ve,{message:n.error.message}):(0,X.jsx)(e,{className:`size-48`}):(0,X.jsx)(He,{build:t}):(0,X.jsx)(Be,{build:t,url:r}),s]})]})}function Xe({build:t}){let n=be(t.id),r=n.data;if(r?.status===`store`||r?.status===`enterprise`)return null;let i=r?.status===`listed`?r.devices:null;return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsxs)(j,{className:`flex flex-row items-center gap-2 border-b px-4 py-3`,children:[(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Devices in this build`})}),i===null?null:(0,X.jsx)(`span`,{className:`text-xs tabular-nums text-muted-foreground`,children:i.length}),(0,X.jsx)(c,{className:a({className:`ml-auto h-11 sm:h-7`,size:`sm`,variant:`ghost`}),to:`/native-builds/devices`,children:`iOS devices`})]}),(0,X.jsx)(M,{className:`p-0`,children:n.isPending?(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`Reading this IPA's devices`}),(0,X.jsx)(e,{className:`h-8 w-full`}),(0,X.jsx)(e,{className:`h-8 w-full`})]}):n.isError||r?.status===`unavailable`?(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 p-4 text-xs text-muted-foreground`,children:[(0,X.jsx)(`p`,{className:`min-w-0 flex-1`,children:`The Console couldn't read this IPA's devices from storage.`}),(0,X.jsxs)(o,{className:`h-11 sm:h-7`,onClick:()=>void n.refetch(),size:`sm`,variant:`outline`,children:[(0,X.jsx)(T,{"data-icon":`inline-start`}),`Retry`]})]}):i?.length===0?(0,X.jsx)(`p`,{className:`p-4 text-xs text-muted-foreground`,children:`This IPA lists no devices.`}):(0,X.jsx)(`ul`,{"aria-label":`Devices in this build`,className:`divide-y`,children:i?.map(e=>(0,X.jsxs)(`li`,{className:`flex min-h-11 min-w-0 items-center gap-3 px-4 py-2 text-sm`,children:[(0,X.jsx)(le,{"aria-hidden":`true`,className:`size-4 shrink-0 text-muted-foreground`}),(0,X.jsxs)(`span`,{className:`flex min-w-0 flex-col items-start`,children:[(0,X.jsx)(`span`,{className:e.name===null?`truncate text-muted-foreground`:`truncate`,children:e.name??`Unknown device`}),(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:(0,X.jsx)(Z,{label:`UDID`,shown:se(e.udid),value:e.udid})})]})]},e.udid))})})]})}var Ze=`https://hot-updater.dev/docs/guides/bundle-diffing#first-ota-update`;function Qe({detail:t,page:n,onPage:r}){let i=n.before!==void 0||n.after!==void 0,s=ge(t.build.min_bundle_id,n,i),d=i?s.data:t.patches,{next:f,previous:p}=d??{};return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,id:`patches`,children:[(0,X.jsx)(j,{className:`border-b px-4 py-3`,children:(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Patches from this build`})})}),(0,X.jsxs)(M,{className:`p-0`,children:[i&&s.isError?(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsxs)(O,{variant:`destructive`,children:[(0,X.jsx)(k,{}),(0,X.jsx)(E,{children:`Patches couldn't be loaded`}),(0,X.jsx)(D,{children:s.error.message}),(0,X.jsx)(ue,{children:(0,X.jsxs)(o,{onClick:()=>void s.refetch(),size:`xs`,variant:`outline`,children:[(0,X.jsx)(T,{"data-icon":`inline-start`}),`Retry`]})})]})}):d===void 0?(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`Loading patches`}),(0,X.jsx)(e,{className:`h-4 w-full`}),(0,X.jsx)(e,{className:`h-4 w-2/3`})]}):d.data.length===0?i?(0,X.jsxs)(B,{className:`py-10`,children:[(0,X.jsx)(I,{children:(0,X.jsx)(R,{children:`No more patches`})}),(0,X.jsx)(o,{className:`min-h-11 sm:min-h-8`,onClick:()=>r({}),variant:`outline`,children:`Show the newest patches`})]}):(0,X.jsxs)(B,{className:`py-10`,children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{variant:`icon`,children:(0,X.jsx)(re,{})}),(0,X.jsx)(R,{children:`No patches from this build`}),(0,X.jsx)(z,{children:t.build.is_sandbox?x:(0,X.jsxs)(X.Fragment,{children:[`A deploy adds a patch from this build's bundle while it is its scope's store build, or its newest build with none marked, and the deploy config turns patches on, with`,` `,(0,X.jsx)(`code`,{className:`font-mono`,children:`patch`}),` in`,` `,(0,X.jsx)(`code`,{className:`font-mono`,children:`hot-updater.config.ts`}),`.`]})})]}),t.build.is_sandbox?null:(0,X.jsx)(L,{children:(0,X.jsxs)(`a`,{className:a({className:`min-h-11 sm:min-h-8`,variant:`outline`}),href:Ze,rel:`noreferrer`,target:`_blank`,children:[`Bundle diffing guide`,(0,X.jsx)(l,{"data-icon":`inline-end`})]})})]}):(0,X.jsxs)(K,{"aria-busy":i&&s.isPlaceholderData,"aria-label":`Patches from this build`,className:`table-fixed`,children:[(0,X.jsx)(V,{children:(0,X.jsxs)(W,{children:[(0,X.jsx)(H,{children:`Target bundle`}),(0,X.jsx)(H,{className:`w-28`,children:`Patch size`}),(0,X.jsx)(H,{className:`hidden w-32 sm:table-cell`,children:`Created`})]})}),(0,X.jsx)(U,{children:d.data.map(e=>(0,X.jsxs)(W,{children:[(0,X.jsx)(G,{className:`py-3 whitespace-normal`,children:(0,X.jsx)(c,{className:`block font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline`,search:{bundleId:e.bundleId},title:e.bundleId,to:`/`,translate:`no`,children:e.bundleId})}),(0,X.jsx)(G,{className:`text-xs tabular-nums`,children:y(e.byteSize)}),(0,X.jsx)(G,{className:`hidden sm:table-cell`,children:(0,X.jsx)(q,{uuid:e.bundleId})})]},e.bundleId))})]}),f!==void 0||p!==void 0?(0,X.jsxs)(`nav`,{"aria-label":`Patch pages`,className:`flex items-center justify-end gap-2 border-t px-4 py-2`,children:[(0,X.jsxs)(o,{className:`min-h-11 sm:min-h-7`,disabled:p===void 0||i&&s.isPlaceholderData,onClick:()=>r({after:p}),size:`sm`,variant:`ghost`,children:[(0,X.jsx)(u,{"data-icon":`inline-start`}),`Newer`]}),(0,X.jsxs)(o,{className:`min-h-11 sm:min-h-7`,disabled:f===void 0||i&&s.isPlaceholderData,onClick:()=>r({before:f}),size:`sm`,variant:`ghost`,children:[`Older`,(0,X.jsx)(m,{"data-icon":`inline-end`})]})]}):null]})]})}var $e=(e,t)=>{let n=e.data.find(e=>e.bundleId===t);if(n!==void 0)return{kind:`patch`,byteSize:n.byteSize};let r=e.data.at(-1)?.bundleId;return e.next!==void 0&&r!==void 0&&t<r?{kind:`unknown`}:{kind:`full`}};function et({download:e}){switch(e.kind){case`patch`:return(0,X.jsxs)(`span`,{className:`text-xs`,children:[`Patch`,` `,(0,X.jsxs)(`span`,{className:`text-muted-foreground tabular-nums`,children:[`(`,y(e.byteSize),`)`]})]});case`full`:return(0,X.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Full bundle`});case`unknown`:return(0,X.jsx)(`a`,{className:`text-xs underline-offset-4 hover:underline`,href:`#patches`,children:`See patches`})}}function tt({detail:e}){let{build:t,channel:n,servedNow:r,patches:i,catalogScopeKey:o}=e,s=r.find(({rolloutCohortCount:e,targetCohorts:t})=>e>0||t.length>0)?.bundleId,u=t.is_store_build&&s!=null&&$e(i,s).kind===`full`?[`npx hot-updater patch`,`-p ${t.platform}`,`-c ${_(n)}`,`-b ${_(s)}`,`--base-artifact-id ${_(t.min_bundle_id)}`].join(` `):null,f=(0,X.jsxs)(c,{className:`inline-flex items-center gap-0.5 underline-offset-4 hover:underline`,search:{scopeKey:o},to:`/`,children:[`All releases in this scope`,(0,X.jsx)(l,{"aria-hidden":`true`,className:`size-3`})]});return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(j,{className:`border-b px-4 py-3`,children:(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Served now`})})}),(0,X.jsx)(M,{className:`p-0`,children:r.length===0?(0,X.jsxs)(B,{className:`py-10`,children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{variant:`icon`,children:(0,X.jsx)(Ae,{})}),(0,X.jsx)(R,{children:`No OTA for this build yet`}),(0,X.jsxs)(z,{children:[`No release in this build's scope is newer than its built-in bundle. Deploy one with`,` `,(0,X.jsx)(`code`,{className:`font-mono`,children:`hot-updater deploy`}),`, and it shows here.`]})]}),(0,X.jsx)(L,{children:(0,X.jsx)(c,{className:a({className:`min-h-11 sm:min-h-8`,variant:`outline`}),search:{scopeKey:o},to:`/`,children:`All releases in this scope`})})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(K,{"aria-label":`Served now`,className:`table-fixed`,children:[(0,X.jsx)(V,{children:(0,X.jsxs)(W,{children:[(0,X.jsx)(H,{children:`Bundle`}),(0,X.jsx)(H,{className:`hidden w-40 md:table-cell`,children:`Rollout`}),(0,X.jsx)(H,{className:`hidden w-32 sm:table-cell`,children:`Created`}),(0,X.jsx)(H,{className:`w-32`,children:`First OTA download`})]})}),(0,X.jsx)(U,{children:r.map(e=>{let t=e.bundleId,n=e.rolloutCohortCount/de*100;return(0,X.jsxs)(W,{children:[(0,X.jsx)(G,{className:`py-3 whitespace-normal`,children:(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,X.jsx)(c,{className:`font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline`,search:{releaseId:e.releaseId},title:t,to:`/`,translate:`no`,children:t}),e.message?(0,X.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.message}):null]})}),(0,X.jsx)(G,{className:`hidden md:table-cell`,children:(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[e.targetCohorts.length>0?(0,X.jsx)(A,{variant:`secondary`,children:e.targetCohorts.length===1?`1 cohort`:`${e.targetCohorts.length} cohorts`}):(0,X.jsx)(Ee,{percentage:n}),e.shouldForceUpdate?(0,X.jsx)(A,{variant:`outline`,children:`Forced`}):null]})}),(0,X.jsx)(G,{className:`hidden sm:table-cell`,children:(0,X.jsx)(q,{uuid:t})}),(0,X.jsx)(G,{children:(0,X.jsx)(et,{download:$e(i,t)})})]},e.releaseId)})})]}),u===null?null:(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 border-t px-4 py-3 text-xs`,children:[(0,X.jsx)(`p`,{children:`The OTA fresh installs get first has no patch from this store build, so they download all of it. Add one from your project:`}),(0,X.jsx)(d,{label:`the patch command`,value:u})]}),(0,X.jsxs)(`p`,{className:`border-t px-4 py-3 text-xs text-muted-foreground`,children:[`What the update check serves an install of this build now, newest first: not the history. `,f]})]})})]})}function nt({buildId:t,search:n,onSearchChange:r}){let i=ve(t),l=i.data,d={...n.patchesBefore===void 0?{}:{before:n.patchesBefore},...n.patchesAfter===void 0?{}:{after:n.patchesAfter}};return(0,X.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,X.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 items-center gap-x-2 border-b bg-background px-3 py-3 sm:min-h-12 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,X.jsx)(s,{className:`-ml-1 size-11 lg:size-7`}),(0,X.jsxs)(c,{className:a({className:`min-h-11 sm:min-h-7`,size:`sm`,variant:`ghost`}),search:l?{channel:l.channel}:{channels:`all`},to:`/native-builds`,children:[(0,X.jsx)(u,{"data-icon":`inline-start`}),`Native builds`]}),l?(0,X.jsxs)(`h1`,{className:`flex min-w-0 items-center gap-1.5 text-sm font-medium`,children:[(0,X.jsx)(Se,{className:`size-3.5 shrink-0 text-muted-foreground`,platform:l.build.platform}),(0,X.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5`,children:[(0,X.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 whitespace-nowrap`,children:[(0,X.jsxs)(`span`,{className:`sr-only`,children:[g(l.build.platform),` `]}),b[l.build.artifact_kind].label,(0,X.jsx)(Oe,{build:l.build})]}),(0,X.jsxs)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:[`· `,(0,X.jsx)(`span`,{translate:`no`,children:l.channel})]})]}),(0,X.jsx)(`span`,{className:`hidden text-xs font-normal text-muted-foreground tabular-nums sm:inline`,children:y(l.build.byte_size)})]}):(0,X.jsx)(`h1`,{className:`sr-only`,children:`Native build`})]}),(0,X.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,X.jsx)(`div`,{className:`mx-auto flex w-full max-w-5xl flex-col gap-4 sm:gap-6`,children:i.isError?(0,X.jsxs)(O,{variant:`destructive`,children:[(0,X.jsx)(k,{}),(0,X.jsx)(E,{children:`The native build couldn't be loaded`}),(0,X.jsx)(D,{children:i.error.message}),(0,X.jsx)(ue,{children:(0,X.jsxs)(o,{onClick:()=>void i.refetch(),size:`xs`,variant:`outline`,children:[(0,X.jsx)(T,{"data-icon":`inline-start`}),`Retry`]})})]}):l===void 0?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`Loading the native build`}),(0,X.jsx)(e,{className:`h-56 w-full rounded-xl`}),(0,X.jsx)(e,{className:`h-64 w-full rounded-xl`})]}):l===null?(0,X.jsxs)(B,{className:`border py-16`,children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{variant:`icon`,children:(0,X.jsx)(ie,{})}),(0,X.jsx)(R,{children:`Native build not found`}),(0,X.jsx)(z,{children:`No native build has this ID. It may have been deleted, or be from another console.`})]}),(0,X.jsx)(L,{children:(0,X.jsx)(c,{className:a({className:`min-h-11 sm:min-h-8`,variant:`outline`}),search:{channels:`all`},to:`/native-builds`,children:`Show all native builds`})})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(qe,{build:l.build}),l.build.artifact_kind===`ipa`&&!J(l.build)?(0,X.jsx)(Xe,{build:l.build}):null,(0,X.jsx)(Pe,{detail:l}),(0,X.jsx)(tt,{detail:l}),(0,X.jsx)(Qe,{detail:l,onPage:e=>r({...e.before===void 0?{}:{patchesBefore:e.before},...e.after===void 0?{}:{patchesAfter:e.after}}),page:d})]})})})]})}function rt(){let{buildId:e}=h.useParams(),t=h.useSearch(),n=h.useNavigate();return(0,X.jsx)(nt,{buildId:e,onSearchChange:e=>void n({search:e,replace:!0}),search:t})}export{rt as component};
|
|
1
|
+
import{$ as e,Di as t,Ri as n,Vi as r,Vr as i,_r as a,gr as o,p as s}from"./sidebar-BmzmPGuv.js";import{t as c}from"./link-CRMwpc7-.js";import{t as l}from"./arrow-up-right-C_1ALUCD.js";import{a as u,i as d,n as f,r as p,t as ee}from"./TargetDisplay-DG_I3qln.js";import{t as m}from"./chevron-right-RAuPv9r1.js";import{n as te,t as h}from"./native-builds_._buildId-DymsEZlO.js";import{t as ne}from"./download-CgpaZb23.js";import{t as re}from"./git-branch-BGatQV8Q.js";import{o as ie}from"./-native-builds-search-BFcW2mlI.js";import{t as ae}from"./history-Ci4dhphE.js";import{C as g,D as _,S as oe,_ as v,d as y,h as b,m as se,s as x,v as S,x as ce,y as C}from"./native-builds-zwqucwx2.js";import{n as w,r as T}from"./dist-BEmib-ZM.js";import{t as le}from"./smartphone-Dy13ukaU.js";import{a as E,i as D,n as O,o as k,r as ue,t as A}from"./badge-zMibJGR5.js";import{a as j,n as M,o as N,t as P}from"./card-BAs80yql.js";import{a as de}from"./constants-C5gi7fdZ.js";import{n as fe}from"./relativeTime-RUNbaMyO.js";import{a as pe,d as me,f as he,h as ge,l as _e,u as ve}from"./api-eO-sq3Jd.js";import{a as ye,m as be,n as xe}from"./IosInstall-B5IdjCP2.js";import{a as F,i as I,n as L,o as R,r as z,t as B}from"./empty-C5GqArX9.js";import{t as Se}from"./PlatformIcon-D4KPXCHL.js";import{a as V,i as H,n as U,o as W,r as G,t as K}from"./table-DbZPkzdz.js";import{t as Ce}from"./BundleIdDisplay-C0X-k49t.js";import{t as we}from"./ChannelBadge-BgVCJfJs.js";import{n as Te,r as q,t as Ee}from"./RolloutPercentageBadge-DCtG7c1o.js";import{n as De,r as J,t as Oe}from"./SandboxBadge-PM92jCk6.js";import{t as Y}from"./QrCode-BFSCkbPj.js";var ke=i(`circle-slash`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`9`,x2:`15`,y1:`15`,y2:`9`,key:`1dfufj`}]]),Ae=i(`package-open`,[[`path`,{d:`M12 22v-9`,key:`x3hkom`}],[`path`,{d:`M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z`,key:`2ntwy6`}],[`path`,{d:`M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13`,key:`1pmm1c`}],[`path`,{d:`M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z`,key:`12ttoo`}]]),X=t();function Z({value:e,length:t,shown:n=e.slice(0,t),label:r}){let i=async()=>{try{await navigator.clipboard.writeText(e),w.success(`Copied to clipboard`,{description:e})}catch{w.error(`Could not copy the ${r}`)}};return(0,X.jsx)(`button`,{"aria-label":`Copy the ${r} ${e}`,className:`relative cursor-copy rounded-sm font-mono after:absolute after:-inset-x-2 after:-inset-y-4 sm:after:hidden text-xs whitespace-nowrap tabular-nums underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none`,onClick:e=>{e.stopPropagation(),i()},title:e,translate:`no`,type:`button`,children:n})}function je({hash:e}){let t=pe();if(e===null)return(0,X.jsx)(f,{});let n=Te(t.data?.console.gitUrl,e);return n===null?(0,X.jsx)(Z,{label:`commit`,length:7,value:e}):(0,X.jsx)(`a`,{className:`relative font-mono text-xs whitespace-nowrap underline-offset-4 after:absolute after:-inset-x-2 after:-inset-y-4 hover:underline sm:after:hidden`,href:n,onClick:e=>e.stopPropagation(),rel:`noreferrer`,target:`_blank`,title:e,translate:`no`,children:e.slice(0,7)})}function Q({label:e,children:t}){return(0,X.jsxs)(`div`,{className:`grid gap-1 sm:grid-cols-[10rem_minmax(0,1fr)] sm:gap-4`,children:[(0,X.jsx)(`dt`,{className:`text-xs font-medium text-muted-foreground`,children:e}),(0,X.jsx)(`dd`,{className:`min-w-0 text-sm`,children:t})]})}function Me({detail:e}){let{build:t}=e,n=_e();if(t.is_sandbox)return null;let r=!t.is_store_build;return(0,X.jsx)(o,{className:`min-h-11 shrink-0 sm:min-h-8`,disabled:n.isPending,onClick:()=>n.mutate({id:t.id,storeBuild:r},{onSuccess:()=>{w.success(r?`Marked as the store build`:`Mark cleared`)},onError:e=>{w.error(`Could not change the mark`,{description:e.message})}}),size:`sm`,type:`button`,variant:`outline`,children:r?`Mark as store build`:`Clear mark`})}function Ne({detail:e}){let{build:t,newestInScope:n,storeBuildInScope:r}=e;if(t.is_sandbox)return(0,X.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border bg-muted/40 p-3 text-xs`,children:[(0,X.jsx)(ke,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground`}),(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`No patch base.`}),` `,x]})]});let i=r??n;if(i===null)return null;let a=i.id===t.id;return(0,X.jsxs)(`div`,{className:`flex flex-col gap-3 rounded-md border bg-muted/40 p-3 text-xs sm:flex-row sm:items-center sm:justify-between`,children:[(0,X.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,X.jsx)(a?te:ae,{"aria-hidden":`true`,className:`mt-0.5 size-3.5 shrink-0 text-muted-foreground`}),r?.id===t.id?(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`Store build.`}),` New deploys to this scope patch from this build.`]}):a?(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`Current baseline.`}),` The newest build, and no store build is marked. New deploys to this scope patch from this build.`]}):(0,X.jsxs)(`p`,{children:[(0,X.jsx)(`span`,{className:`font-medium`,children:`Not the base.`}),` New deploys patch from`,` `,(0,X.jsxs)(c,{className:`inline-flex items-center gap-0.5 font-medium underline underline-offset-4`,params:{buildId:i.id},to:`/native-builds/$buildId`,children:[ce(i)??(0,X.jsxs)(X.Fragment,{children:[g(i.platform),` `,b[i.artifact_kind].label,` ·`,` `,(0,X.jsx)(q,{uuid:i.id})]}),(0,X.jsx)(l,{"aria-hidden":`true`,className:`size-3`})]}),`, so this one gets no new patches.`]})]}),(0,X.jsx)(Me,{detail:e})]})}function Pe({detail:e}){let{build:t,builtInBundle:n,channel:r}=e,i=n?.childCount??0;return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(j,{className:`border-b px-4 py-3`,children:(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Built-in bundle`})})}),(0,X.jsxs)(M,{className:`flex flex-col gap-4 p-4 sm:p-6`,children:[(0,X.jsxs)(`dl`,{className:`flex flex-col gap-3`,children:[(0,X.jsx)(Q,{label:`Bundle ID`,children:(0,X.jsx)(Ce,{bundleId:t.min_bundle_id})}),(0,X.jsx)(Q,{label:`OTAs patching from it`,children:(0,X.jsx)(`span`,{className:`tabular-nums`,children:i===1?`1 bundle`:`${i} bundles`})}),(0,X.jsx)(Q,{label:`Scope`,children:(0,X.jsxs)(`span`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,X.jsx)(c,{"aria-label":`Show the builds that embed ${r}`,className:`relative rounded-md after:absolute after:-inset-x-1 after:-inset-y-[11px] sm:after:hidden`,search:{channel:r},to:`/native-builds`,children:(0,X.jsx)(we,{channel:r})}),(0,X.jsx)(`span`,{className:`text-xs`,children:g(t.platform)})]})}),(0,X.jsx)(Q,{label:`Target`,children:(0,X.jsx)(`span`,{className:`text-xs`,children:(0,X.jsx)(p,{appVersion:t.app_version,fingerprintHash:t.fingerprint_hash,nativeAppVersion:t.native_app_version})})}),(0,X.jsx)(Q,{label:`Build key`,children:(0,X.jsx)(`span`,{className:`text-xs`,children:(0,X.jsx)(ee,{value:t.build_key})})}),t.build_number?(0,X.jsx)(Q,{label:`Build`,children:(0,X.jsx)(`span`,{className:`font-mono text-xs tabular-nums`,translate:`no`,children:t.build_number})}):null,(0,X.jsx)(Q,{label:`Commit`,children:(0,X.jsx)(je,{hash:t.git_commit_hash})}),(0,X.jsx)(Q,{label:`Created`,children:(0,X.jsx)(q,{format:`both`,uuid:t.id})})]}),(0,X.jsx)(Ne,{detail:e}),(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.is_sandbox?`An install of this build runs this bundle until it opens an OTA.`:`A store or test install of this build runs this bundle until its first OTA. That OTA downloads as a patch from this bundle when one exists, and as the full bundle otherwise.`})]})]})}var Fe=r(fe(),1),$=r(n(),1),Ie=`The .ipa installs only on devices its signing profile allows (development or ad hoc)`,Le=e=>{switch(e.artifact_kind){case`ipa`:return e.is_sandbox?`${Ie}.`:`${Ie}; an App Store export reaches testers through TestFlight.`;case`aab`:return`The .aab installs through Google Play or bundletool, not from the file.`;default:return}},Re=e=>{switch(e.artifact_kind){case`apk`:return`Scan with an Android phone's camera, then open the APK to install it.`;case`app`:return`Scan to download the .app.zip on a Mac.`;default:return`Scan to download. ${Le(e)}`}};function ze(){let{origin:e,pathname:t}=window.location;return(0,X.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,X.jsx)(Y,{className:`size-48`,label:`Open this page on an iPhone`,value:`${e}${t}`}),(0,X.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:`Scan with an iPhone to install this build from here. The phone signs in to the Console first.`})]})}function Be({build:e,url:t,note:n}){return(0,X.jsxs)(`div`,{className:`flex flex-col items-center gap-2`,children:[(0,X.jsx)(Y,{className:`size-48`,label:`Download ${S(e)}`,value:t}),(0,X.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:Re(e)}),n?(0,X.jsx)(`p`,{className:`max-w-56 text-center text-xs text-muted-foreground`,children:n}):null]})}function Ve({message:e}){return(0,X.jsxs)(O,{variant:`destructive`,children:[(0,X.jsx)(k,{}),(0,X.jsx)(E,{children:`The download link couldn't be created`}),(0,X.jsx)(D,{children:e})]})}function He({build:t}){let n=he(t.id),r=n.data?.url;if(r===null){let e=Le(t);return(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 text-xs text-muted-foreground`,children:[(0,X.jsx)(`p`,{children:`This storage gives no download link a phone can open without signing in, so there is no QR code. Download the build here, or open this page on the phone signed in to the console.`}),e?(0,X.jsx)(`p`,{children:e}):null]})}return r===void 0?n.isError?(0,X.jsx)(Ve,{message:n.error.message}):(0,X.jsx)(e,{className:`size-48`}):(0,X.jsx)(Be,{build:t,note:`This link expires. If the download fails, reload this page.`,url:r})}function Ue({build:e,href:t}){return(0,X.jsxs)(`a`,{className:a({className:`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,variant:e.artifact_kind===`ipa`?`ghost`:`outline`}),download:!0,href:t,children:[(0,X.jsx)(ne,{"data-icon":`inline-start`}),(0,X.jsxs)(`span`,{className:`text-left [overflow-wrap:anywhere]`,children:[`Download `,S(e)]})]})}function We({build:e}){return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(j,{className:`border-b px-4 py-3`,children:(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Install`})})}),(0,X.jsxs)(M,{className:`flex min-w-0 flex-col gap-4 p-4 sm:p-6`,children:[(0,X.jsx)(De,{build:e,withTime:!0}),(0,X.jsx)(Ge,{build:e}),(0,X.jsx)(Ue,{build:e,href:v(e.id)})]})]})}function Ge({build:e}){switch(e.artifact_kind){case`apk`:return(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Your browser needs the "Install unknown apps" permission.`}),e.is_sandbox?(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Its .sandbox ID installs it beside a Play copy.`}):(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`If this package is already installed with another signing key, such as a Play copy, the install fails. Uninstall that copy first, or build with sandbox: true, whose .sandbox ID installs beside it.`}),(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`On an emulator or a phone over USB, install and open it from your project:`}),(0,X.jsx)(d,{label:`the install command`,value:C(e)})]});case`app`:return(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`It runs only in the iOS Simulator. In your project, install and open it on the booted one:`}),(0,X.jsx)(d,{label:`the install command`,value:C(e)})]});case`aab`:return J(e)?(0,X.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[e.submitted_to===`play-production`?`Users`:`Testers`,` get it once its release is rolled out; on an app Play Console hasn't published, the release is a draft you roll out in Play Console.`]}):(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`For testers, build and release to internal testing:`}),(0,X.jsx)(d,{label:`the Google Play command`,value:`npx hot-updater google-play upload`})]});case`ipa`:return J(e)?(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Internal testers install it from the TestFlight app once App Store Connect has processed it.`}):(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Over USB, Xcode or Apple Configurator installs it.`})}}function Ke({link:e,url:t}){return e?.status===`no-secret`?(0,X.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,e.secretName,` on the Console to create links.`]}):e?.status!==`issued`||t===null?null:(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,X.jsx)(d,{label:`the download link`,value:t}),(0,X.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Anyone with this link can download this build until`,` `,(0,X.jsxs)(`span`,{className:`whitespace-nowrap`,children:[(0,Fe.default)(e.expiresAt).format(`YYYY-MM-DD`),`.`]})]})]})}function qe({build:e}){return J(e)&&(e.artifact_kind===`ipa`||e.artifact_kind===`aab`)?(0,X.jsx)(We,{build:e}):(0,X.jsx)(Ye,{build:e})}function Je({children:e}){let[t,n]=(0,$.useState)(!1),r=(0,$.useId)();return(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3 border-t pt-3`,children:[(0,X.jsxs)(`button`,{"aria-controls":r,"aria-expanded":t,className:`group/other -mx-1 flex min-h-11 items-center gap-1.5 self-start rounded-md px-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:min-h-8`,onClick:()=>n(e=>!e),type:`button`,children:[(0,X.jsx)(m,{"aria-hidden":`true`,className:`size-3.5 shrink-0 transition-transform group-aria-expanded/other:rotate-90 motion-reduce:transition-none`}),`Other ways to install`]}),(0,X.jsx)(`div`,{hidden:!t,id:r,children:e})]})}function Ye({build:t}){let n=me(t.id),r=n.data?.status===`issued`?oe(window.location,t.id,n.data.token):null,i=ye(),a=t.artifact_kind===`ipa`,o=a&&i?.ios===!0,s=(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,X.jsx)(Ge,{build:t}),(0,X.jsx)(Ue,{build:t,href:r??v(t.id)}),(0,X.jsx)(Ke,{link:n.data,url:r})]});return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(j,{className:`border-b px-4 py-3`,children:(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Install`})})}),o?(0,X.jsxs)(M,{className:`flex min-w-0 flex-col gap-4 p-4 sm:p-6`,children:[(0,X.jsx)(xe,{build:t,device:i}),(0,X.jsx)(Je,{children:s})]}):(0,X.jsxs)(M,{className:`grid gap-6 p-4 sm:grid-cols-[12rem_minmax(0,1fr)] sm:p-6`,children:[a&&r!==null?(0,X.jsx)(ze,{}):r===null?n.data===void 0?n.isError?(0,X.jsx)(Ve,{message:n.error.message}):(0,X.jsx)(e,{className:`size-48`}):(0,X.jsx)(He,{build:t}):(0,X.jsx)(Be,{build:t,url:r}),s]})]})}function Xe({build:t}){let n=be(t.id),r=n.data;if(r?.status===`store`||r?.status===`enterprise`)return null;let i=r?.status===`listed`?r.devices:null;return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsxs)(j,{className:`flex flex-row items-center gap-2 border-b px-4 py-3`,children:[(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Devices in this build`})}),i===null?null:(0,X.jsx)(`span`,{className:`text-xs tabular-nums text-muted-foreground`,children:i.length}),(0,X.jsx)(c,{className:a({className:`ml-auto h-11 sm:h-7`,size:`sm`,variant:`ghost`}),to:`/native-builds/devices`,children:`iOS devices`})]}),(0,X.jsx)(M,{className:`p-0`,children:n.isPending?(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`Reading this IPA's devices`}),(0,X.jsx)(e,{className:`h-8 w-full`}),(0,X.jsx)(e,{className:`h-8 w-full`})]}):n.isError||r?.status===`unavailable`?(0,X.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 p-4 text-xs text-muted-foreground`,children:[(0,X.jsx)(`p`,{className:`min-w-0 flex-1`,children:`The Console couldn't read this IPA's devices from storage.`}),(0,X.jsxs)(o,{className:`h-11 sm:h-7`,onClick:()=>void n.refetch(),size:`sm`,variant:`outline`,children:[(0,X.jsx)(T,{"data-icon":`inline-start`}),`Retry`]})]}):i?.length===0?(0,X.jsx)(`p`,{className:`p-4 text-xs text-muted-foreground`,children:`This IPA lists no devices.`}):(0,X.jsx)(`ul`,{"aria-label":`Devices in this build`,className:`divide-y`,children:i?.map(e=>(0,X.jsxs)(`li`,{className:`flex min-h-11 min-w-0 items-center gap-3 px-4 py-2 text-sm`,children:[(0,X.jsx)(le,{"aria-hidden":`true`,className:`size-4 shrink-0 text-muted-foreground`}),(0,X.jsxs)(`span`,{className:`flex min-w-0 flex-col items-start`,children:[(0,X.jsx)(`span`,{className:e.name===null?`truncate text-muted-foreground`:`truncate`,children:e.name??`Unknown device`}),(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:(0,X.jsx)(Z,{label:`UDID`,shown:se(e.udid),value:e.udid})})]})]},e.udid))})})]})}var Ze=`https://hot-updater.dev/docs/guides/bundle-diffing#first-ota-update`;function Qe({detail:t,page:n,onPage:r}){let i=n.before!==void 0||n.after!==void 0,s=ge(t.build.min_bundle_id,n,i),d=i?s.data:t.patches,{next:f,previous:p}=d??{};return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,id:`patches`,children:[(0,X.jsx)(j,{className:`border-b px-4 py-3`,children:(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Patches from this build`})})}),(0,X.jsxs)(M,{className:`p-0`,children:[i&&s.isError?(0,X.jsx)(`div`,{className:`p-4`,children:(0,X.jsxs)(O,{variant:`destructive`,children:[(0,X.jsx)(k,{}),(0,X.jsx)(E,{children:`Patches couldn't be loaded`}),(0,X.jsx)(D,{children:s.error.message}),(0,X.jsx)(ue,{children:(0,X.jsxs)(o,{onClick:()=>void s.refetch(),size:`xs`,variant:`outline`,children:[(0,X.jsx)(T,{"data-icon":`inline-start`}),`Retry`]})})]})}):d===void 0?(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 p-4`,children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`Loading patches`}),(0,X.jsx)(e,{className:`h-4 w-full`}),(0,X.jsx)(e,{className:`h-4 w-2/3`})]}):d.data.length===0?i?(0,X.jsxs)(B,{className:`py-10`,children:[(0,X.jsx)(I,{children:(0,X.jsx)(R,{children:`No more patches`})}),(0,X.jsx)(o,{className:`min-h-11 sm:min-h-8`,onClick:()=>r({}),variant:`outline`,children:`Show the newest patches`})]}):(0,X.jsxs)(B,{className:`py-10`,children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{variant:`icon`,children:(0,X.jsx)(re,{})}),(0,X.jsx)(R,{children:`No patches from this build`}),(0,X.jsx)(z,{children:t.build.is_sandbox?x:(0,X.jsxs)(X.Fragment,{children:[`A deploy adds a patch from this build's bundle while it is its scope's store build, or its newest build with none marked, and the deploy config turns patches on, with`,` `,(0,X.jsx)(`code`,{className:`font-mono`,children:`patch`}),` in`,` `,(0,X.jsx)(`code`,{className:`font-mono`,children:`hot-updater.config.ts`}),`.`]})})]}),t.build.is_sandbox?null:(0,X.jsx)(L,{children:(0,X.jsxs)(`a`,{className:a({className:`min-h-11 sm:min-h-8`,variant:`outline`}),href:Ze,rel:`noreferrer`,target:`_blank`,children:[`Bundle diffing guide`,(0,X.jsx)(l,{"data-icon":`inline-end`})]})})]}):(0,X.jsxs)(K,{"aria-busy":i&&s.isPlaceholderData,"aria-label":`Patches from this build`,className:`table-fixed`,children:[(0,X.jsx)(V,{children:(0,X.jsxs)(W,{children:[(0,X.jsx)(H,{children:`Target bundle`}),(0,X.jsx)(H,{className:`w-28`,children:`Patch size`}),(0,X.jsx)(H,{className:`hidden w-32 sm:table-cell`,children:`Created`})]})}),(0,X.jsx)(U,{children:d.data.map(e=>(0,X.jsxs)(W,{children:[(0,X.jsx)(G,{className:`py-3 whitespace-normal`,children:(0,X.jsx)(c,{className:`block font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline`,search:{bundleId:e.bundleId},title:e.bundleId,to:`/`,translate:`no`,children:e.bundleId})}),(0,X.jsx)(G,{className:`text-xs tabular-nums`,children:y(e.byteSize)}),(0,X.jsx)(G,{className:`hidden sm:table-cell`,children:(0,X.jsx)(q,{uuid:e.bundleId})})]},e.bundleId))})]}),f!==void 0||p!==void 0?(0,X.jsxs)(`nav`,{"aria-label":`Patch pages`,className:`flex items-center justify-end gap-2 border-t px-4 py-2`,children:[(0,X.jsxs)(o,{className:`min-h-11 sm:min-h-7`,disabled:p===void 0||i&&s.isPlaceholderData,onClick:()=>r({after:p}),size:`sm`,variant:`ghost`,children:[(0,X.jsx)(u,{"data-icon":`inline-start`}),`Newer`]}),(0,X.jsxs)(o,{className:`min-h-11 sm:min-h-7`,disabled:f===void 0||i&&s.isPlaceholderData,onClick:()=>r({before:f}),size:`sm`,variant:`ghost`,children:[`Older`,(0,X.jsx)(m,{"data-icon":`inline-end`})]})]}):null]})]})}var $e=(e,t)=>{let n=e.data.find(e=>e.bundleId===t);if(n!==void 0)return{kind:`patch`,byteSize:n.byteSize};let r=e.data.at(-1)?.bundleId;return e.next!==void 0&&r!==void 0&&t<r?{kind:`unknown`}:{kind:`full`}};function et({download:e}){switch(e.kind){case`patch`:return(0,X.jsxs)(`span`,{className:`text-xs`,children:[`Patch`,` `,(0,X.jsxs)(`span`,{className:`text-muted-foreground tabular-nums`,children:[`(`,y(e.byteSize),`)`]})]});case`full`:return(0,X.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Full bundle`});case`unknown`:return(0,X.jsx)(`a`,{className:`text-xs underline-offset-4 hover:underline`,href:`#patches`,children:`See patches`})}}function tt({detail:e}){let{build:t,channel:n,servedNow:r,patches:i,catalogScopeKey:o}=e,s=r.find(({rolloutCohortCount:e,targetCohorts:t})=>e>0||t.length>0)?.bundleId,u=t.is_store_build&&s!=null&&$e(i,s).kind===`full`?[`npx hot-updater patch`,`-p ${t.platform}`,`-c ${_(n)}`,`-b ${_(s)}`,`--base-artifact-id ${_(t.min_bundle_id)}`].join(` `):null,f=(0,X.jsxs)(c,{className:`inline-flex items-center gap-0.5 underline-offset-4 hover:underline`,search:{scopeKey:o},to:`/`,children:[`All releases in this scope`,(0,X.jsx)(l,{"aria-hidden":`true`,className:`size-3`})]});return(0,X.jsxs)(P,{className:`overflow-hidden shadow-sm`,children:[(0,X.jsx)(j,{className:`border-b px-4 py-3`,children:(0,X.jsx)(N,{className:`text-sm`,children:(0,X.jsx)(`h2`,{children:`Served now`})})}),(0,X.jsx)(M,{className:`p-0`,children:r.length===0?(0,X.jsxs)(B,{className:`py-10`,children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{variant:`icon`,children:(0,X.jsx)(Ae,{})}),(0,X.jsx)(R,{children:`No OTA for this build yet`}),(0,X.jsxs)(z,{children:[`No release in this build's scope is newer than its built-in bundle. Deploy one with`,` `,(0,X.jsx)(`code`,{className:`font-mono`,children:`hot-updater deploy`}),`, and it shows here.`]})]}),(0,X.jsx)(L,{children:(0,X.jsx)(c,{className:a({className:`min-h-11 sm:min-h-8`,variant:`outline`}),search:{scopeKey:o},to:`/`,children:`All releases in this scope`})})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(K,{"aria-label":`Served now`,className:`table-fixed`,children:[(0,X.jsx)(V,{children:(0,X.jsxs)(W,{children:[(0,X.jsx)(H,{children:`Bundle`}),(0,X.jsx)(H,{className:`hidden w-40 md:table-cell`,children:`Rollout`}),(0,X.jsx)(H,{className:`hidden w-32 sm:table-cell`,children:`Created`}),(0,X.jsx)(H,{className:`w-32`,children:`First OTA download`})]})}),(0,X.jsx)(U,{children:r.map(e=>{let t=e.bundleId,n=e.rolloutCohortCount/de*100;return(0,X.jsxs)(W,{children:[(0,X.jsx)(G,{className:`py-3 whitespace-normal`,children:(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,X.jsx)(c,{className:`font-mono text-xs [overflow-wrap:anywhere] underline-offset-4 hover:underline`,search:{releaseId:e.releaseId},title:t,to:`/`,translate:`no`,children:t}),e.message?(0,X.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.message}):null]})}),(0,X.jsx)(G,{className:`hidden md:table-cell`,children:(0,X.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[e.targetCohorts.length>0?(0,X.jsx)(A,{variant:`secondary`,children:e.targetCohorts.length===1?`1 cohort`:`${e.targetCohorts.length} cohorts`}):(0,X.jsx)(Ee,{percentage:n}),e.shouldForceUpdate?(0,X.jsx)(A,{variant:`outline`,children:`Forced`}):null]})}),(0,X.jsx)(G,{className:`hidden sm:table-cell`,children:(0,X.jsx)(q,{uuid:t})}),(0,X.jsx)(G,{children:(0,X.jsx)(et,{download:$e(i,t)})})]},e.releaseId)})})]}),u===null?null:(0,X.jsxs)(`div`,{className:`flex flex-col gap-2 border-t px-4 py-3 text-xs`,children:[(0,X.jsx)(`p`,{children:`The OTA fresh installs get first has no patch from this store build, so they download all of it. Add one from your project:`}),(0,X.jsx)(d,{label:`the patch command`,value:u})]}),(0,X.jsxs)(`p`,{className:`border-t px-4 py-3 text-xs text-muted-foreground`,children:[`What the update check serves an install of this build now, newest first: not the history. `,f]})]})})]})}function nt({buildId:t,search:n,onSearchChange:r}){let i=ve(t),l=i.data,d={...n.patchesBefore===void 0?{}:{before:n.patchesBefore},...n.patchesAfter===void 0?{}:{after:n.patchesAfter}};return(0,X.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,X.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 items-center gap-x-2 border-b bg-background px-3 py-3 sm:min-h-12 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,X.jsx)(s,{className:`-ml-1 size-11 lg:size-7`}),(0,X.jsxs)(c,{className:a({className:`min-h-11 sm:min-h-7`,size:`sm`,variant:`ghost`}),search:l?{channel:l.channel}:{channels:`all`},to:`/native-builds`,children:[(0,X.jsx)(u,{"data-icon":`inline-start`}),`Native builds`]}),l?(0,X.jsxs)(`h1`,{className:`flex min-w-0 items-center gap-1.5 text-sm font-medium`,children:[(0,X.jsx)(Se,{className:`size-3.5 shrink-0 text-muted-foreground`,platform:l.build.platform}),(0,X.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5`,children:[(0,X.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 whitespace-nowrap`,children:[(0,X.jsxs)(`span`,{className:`sr-only`,children:[g(l.build.platform),` `]}),b[l.build.artifact_kind].label,(0,X.jsx)(Oe,{build:l.build})]}),(0,X.jsxs)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,children:[`· `,(0,X.jsx)(`span`,{translate:`no`,children:l.channel})]})]}),(0,X.jsx)(`span`,{className:`hidden text-xs font-normal text-muted-foreground tabular-nums sm:inline`,children:y(l.build.byte_size)})]}):(0,X.jsx)(`h1`,{className:`sr-only`,children:`Native build`})]}),(0,X.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,X.jsx)(`div`,{className:`mx-auto flex w-full max-w-5xl flex-col gap-4 sm:gap-6`,children:i.isError?(0,X.jsxs)(O,{variant:`destructive`,children:[(0,X.jsx)(k,{}),(0,X.jsx)(E,{children:`The native build couldn't be loaded`}),(0,X.jsx)(D,{children:i.error.message}),(0,X.jsx)(ue,{children:(0,X.jsxs)(o,{onClick:()=>void i.refetch(),size:`xs`,variant:`outline`,children:[(0,X.jsx)(T,{"data-icon":`inline-start`}),`Retry`]})})]}):l===void 0?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`span`,{className:`sr-only`,children:`Loading the native build`}),(0,X.jsx)(e,{className:`h-56 w-full rounded-xl`}),(0,X.jsx)(e,{className:`h-64 w-full rounded-xl`})]}):l===null?(0,X.jsxs)(B,{className:`border py-16`,children:[(0,X.jsxs)(I,{children:[(0,X.jsx)(F,{variant:`icon`,children:(0,X.jsx)(ie,{})}),(0,X.jsx)(R,{children:`Native build not found`}),(0,X.jsx)(z,{children:`No native build has this ID. It may have been deleted, or be from another console.`})]}),(0,X.jsx)(L,{children:(0,X.jsx)(c,{className:a({className:`min-h-11 sm:min-h-8`,variant:`outline`}),search:{channels:`all`},to:`/native-builds`,children:`Show all native builds`})})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(qe,{build:l.build}),l.build.artifact_kind===`ipa`&&!J(l.build)?(0,X.jsx)(Xe,{build:l.build}):null,(0,X.jsx)(Pe,{detail:l}),(0,X.jsx)(tt,{detail:l}),(0,X.jsx)(Qe,{detail:l,onPage:e=>r({...e.before===void 0?{}:{patchesBefore:e.before},...e.after===void 0?{}:{patchesAfter:e.after}}),page:d})]})})})]})}function rt(){let{buildId:e}=h.useParams(),t=h.useSearch(),n=h.useNavigate();return(0,X.jsx)(nt,{buildId:e,onSearchChange:e=>void n({search:e,replace:!0}),search:t})}export{rt as component};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-builds_._buildId-CXx2xjoI.js","assets/sidebar-BmzmPGuv.js","assets/link-CRMwpc7-.js","assets/relativeTime-RUNbaMyO.js","assets/arrow-up-right-C_1ALUCD.js","assets/TargetDisplay-DG_I3qln.js","assets/copy-BjVLMKbo.js","assets/key-round-BkeLvA1m.js","assets/native-builds-zwqucwx2.js","assets/constants-C5gi7fdZ.js","assets/dist-BEmib-ZM.js","assets/HashValueDisplay-DvwvQchI.js","assets/chevron-right-RAuPv9r1.js","assets/download-CgpaZb23.js","assets/git-branch-BGatQV8Q.js","assets/-native-builds-search-BFcW2mlI.js","assets/history-Ci4dhphE.js","assets/smartphone-Dy13ukaU.js","assets/badge-zMibJGR5.js","assets/QrCode-BFSCkbPj.js","assets/BundleIdDisplay-C0X-k49t.js","assets/ChannelBadge-BgVCJfJs.js","assets/PlatformIcon-D4KPXCHL.js","assets/RolloutPercentageBadge-DCtG7c1o.js","assets/IosInstall-B5IdjCP2.js","assets/useMutation-D7IuoOLE.js","assets/loader-circle-8lunBReu.js","assets/field-DInLQ5oV.js","assets/api-eO-sq3Jd.js","assets/preload-helper-CE9OukVC.js","assets/SandboxBadge-PM92jCk6.js","assets/card-BAs80yql.js","assets/empty-C5GqArX9.js","assets/table-DbZPkzdz.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{Vr as e}from"./sidebar-BmzmPGuv.js";import{i as t,r as n,t as r}from"./preload-helper-CE9OukVC.js";import{r as i}from"./-native-builds-search-BFcW2mlI.js";var a=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),o=t(`/native-builds_/$buildId`)({component:n(()=>r(()=>import(`./native-builds_._buildId-CXx2xjoI.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])),`component`),validateSearch:i});export{a as n,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,A as t,An as n,Ar as r,At as i,Bt as a,C as o,Cr as s,Ct as c,Di as l,Dt as u,Er as d,Et as f,Ft as p,Gt as m,Hn as h,Ht as g,In as _,Jt as v,Kt as ee,L as te,Li as y,Lr as b,Mr as ne,Mt as x,Nr as S,Or as C,Ot as w,Pr as T,Pt as re,Q as E,Qn as D,Qt as O,Ri as ie,Rr as k,Rt as A,Si as j,Sn as M,Sr as N,St as P,Tr as F,Tt as ae,Ut as oe,Vi as I,Vr as L,Vt as se,Wt as ce,Xt as le,Yt as R,Zt as z,_r as B,_t as ue,ct as V,dt as de,en as H,fr as fe,ft as U,gr as W,gt as pe,h as me,hn as he,hr as G,jn as ge,jr as _e,kr as K,kt as q,lt as J,mr as ve,mt as ye,nn as be,ot as Y,p as xe,pr as Se,pt as Ce,qt as X,rn as we,st as Te,tn as Ee,tt as De,ur as Oe,ut as ke,vn as Ae,vr as je,vt as Me,wn as Ne,wt as Pe,xr as Fe,xt as Ie,yt as Le}from"./sidebar-BmzmPGuv.js";import{t as Re}from"./link-CRMwpc7-.js";import{t as ze}from"./check-C3VCvMOV.js";import{n as Be,r as Ve}from"./useCompositeListItem-Cbk_weKW.js";import{i as He,n as Ue}from"./TargetDisplay-DG_I3qln.js";import{a as We,i as Ge,n as Ke,o as qe,r as Je,s as Ye,t as Xe}from"./select-Bk52fOVX.js";import{o as Ze}from"./-native-builds-search-BFcW2mlI.js";import{t as Qe}from"./loader-circle-8lunBReu.js";import{l as $e,m as et,n as tt,p as nt,t as rt}from"./native-builds-zwqucwx2.js";import{n as it,t as at}from"./CompositeItem-B7uxFM46.js";import{r as ot}from"./dist-BEmib-ZM.js";import{t as st}from"./smartphone-Dy13ukaU.js";import{t as ct}from"./trash-2-DI0biNI-.js";import{a as lt,i as ut,n as dt,o as ft,r as pt,t as mt}from"./badge-zMibJGR5.js";import{E as ht,T as gt,n as _t,t as vt}from"./useAnchoredPopupScrollLock-Cvx6CdPD.js";import{a as yt,n as bt,o as xt,t as St}from"./card-BAs80yql.js";import{r as Ct}from"./constants-C5gi7fdZ.js";import{n as wt}from"./relativeTime-RUNbaMyO.js";import{a as Tt,i as Et,n as Dt,r as Ot,t as kt}from"./field-DInLQ5oV.js";import{_ as At,a as jt,c as Mt,d as Nt,f as Pt,g as Ft,h as It,i as Lt,l as Rt,p as zt,s as Bt,t as Vt,u as Ht}from"./IosInstall-B5IdjCP2.js";import{a as Ut,i as Wt,l as Gt,n as Kt,o as qt,r as Jt,s as Yt,t as Xt}from"./alert-dialog-DGPqJBCk.js";import{a as Zt,i as Qt,n as $t,o as en,r as tn,t as nn}from"./dialog-BvZDZzdQ.js";import{t as rn}from"./native-builds_.devices-QToUV8FB.js";import{i as Z,o as an,r as on}from"./table-DbZPkzdz.js";import{a as sn,c as cn,f as ln,i as un,l as dn,n as fn,r as pn,s as mn,t as hn}from"./RelativeTime-5ZP9WlQ6.js";import{t as gn}from"./NativeBuildsNav-BKdnlKMN.js";import{t as _n}from"./QrCode-BFSCkbPj.js";var vn=L(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),Q=I(ie()),yn=Q.createContext(void 0);function bn(e=!0){let t=Q.useContext(yn);if(t===void 0&&!e)throw Error(K(25));return t}var xn=Q.createContext(void 0);function Sn(e){let t=Q.useContext(xn);if(t===void 0&&!e)throw Error(K(33));return t}var Cn=Q.createContext(void 0);function wn(e){let t=Q.useContext(Cn);if(t===void 0&&!e)throw Error(K(36));return t}function Tn(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,{events:l}=a.useState(`floatingTreeRoot`),u=bn(!0),d=u!==void 0;return Q.useMemo(()=>({id:r,role:`menuitem`,tabIndex:n?0:-1,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&l.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&l.emit(`close`,{domEvent:e,reason:_})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,d&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||d&&!Oe&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!d||e.button===2)&&(!c||c.type===`regular-item`)&&s.current.click()}}),[t,n,r,l,i,a,o,s,u,d,c])}var En={type:`regular-item`};function Dn(e){let{closeOnClick:t,disabled:n=!1,highlighted:i,id:a,store:o,typingRef:s=o.context.typingRef,nativeButton:c,itemMetadata:l,nodeId:u}=e,f=Q.useRef(null),{getButtonProps:p,buttonRef:m}=d({disabled:n,focusableWhenDisabled:!0,native:c,composite:!0}),h=Tn({closeOnClick:t,highlighted:i,id:a,nodeId:u,store:o,typingRef:s,itemRef:f,itemMetadata:l}),g=Q.useCallback(e=>r(h,{onMouseEnter(){l.type===`submenu-trigger`&&l.setActive()}},e,p),[h,p,l]),_=F(f,m);return Q.useMemo(()=>({getItemProps:g,itemRef:_}),[g,_])}var On=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,d=Be({label:a}),f=Sn(!0),p=U(i),{store:m}=wn(),h=m.useState(`isActive`,d.index),g=m.useState(`itemProps`),{getItemProps:_,itemRef:v}=Dn({closeOnClick:c,disabled:s,highlighted:h,id:p,store:m,nativeButton:o,nodeId:f?.context.nodeId,itemMetadata:En});return Fe(`div`,e,{state:{disabled:s,highlighted:h},props:[g,u,_],ref:[v,t,d.ref]})}),$=l(),kn={...Ce,...x},An=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s}=wn(),{side:c,align:l}=Sn(),u=Ye(!0)!=null,d=s.useState(`open`),f=s.useState(`transitionStatus`),p=s.useState(`popupProps`),m=s.useState(`mounted`),h=s.useState(`instantType`),_=s.useState(`activeTriggerElement`),v=s.useState(`parent`),ee=s.useState(`lastOpenChangeReason`),y=s.useState(`rootId`),b=s.useState(`floatingRootContext`),ne=s.useState(`floatingTreeRoot`),x=s.useState(`closeDelay`),S=s.useState(`activeTriggerElement`),C=s.useState(`hoverEnabled`),w=s.useState(`disabled`),T=v.type===`context-menu`;q({open:d,ref:s.context.popupRef,onComplete(){d&&s.context.onOpenChangeComplete?.(!0)}}),Q.useEffect(()=>{function e(e){s.setOpen(!1,M(e.reason,e.domEvent))}return ne.events.on(`close`,e),()=>{ne.events.off(`close`,e)}},[ne.events,s]),Me(b,{enabled:C&&!w&&!T&&v.type!==`menubar`,closeDelay:x});let re=Q.useCallback(e=>{s.set(`popupElement`,e)},[s]),E=Fe(`div`,e,{state:{transitionStatus:f,side:c,align:l,open:d,nested:v.type===`menu`,instant:h},ref:[t,s.context.popupRef,re],stateAttributesMapping:kn,props:[p,{onKeyDown(e){u&&te.has(e.key)&&e.stopPropagation()}},V(f),o,{"data-rootownerid":y}]}),D=v.type===void 0||T;return(_||v.type===`menubar`&&ee!==`outside-press`)&&(D=!0),(0,$.jsx)(g,{context:b,modal:T,disabled:!m,returnFocus:a===void 0?D:a,initialFocus:v.type!==`menu`,restoreFocus:!0,externalTree:v.type===`menubar`?void 0:ne,previousFocusableElement:S,nextFocusableElement:v.type===void 0?s.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:v.type===void 0?s.context.beforeContentFocusGuardRef:void 0,children:E})}),jn=Q.createContext(void 0);function Mn(){let e=Q.useContext(jn);if(e===void 0)throw Error(K(32));return e}var Nn=Q.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=wn();return i.useState(`mounted`)||n?(0,$.jsx)(jn.Provider,{value:n,children:(0,$.jsx)(R,{ref:t,...r})}):null}),Pn=Q.forwardRef(function(e,n){let{anchor:r,positionMethod:a=`absolute`,className:o,render:s,side:c,align:l,sideOffset:u=0,alignOffset:d=0,collisionBoundary:f=`clipping-ancestors`,collisionPadding:p=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:_=!1,collisionAvoidance:v=le,style:ee,...te}=e,{store:y}=wn(),b=Mn(),ne=bn(!0),x=y.useState(`parent`),S=y.useState(`floatingRootContext`),C=y.useState(`floatingTreeRoot`),w=y.useState(`mounted`),T=y.useState(`open`),re=y.useState(`modal`),E=y.useState(`openMethod`),D=y.useState(`activeTriggerElement`),O=y.useState(`transitionStatus`),ie=y.useState(`positionerElement`),k=y.useState(`instantType`),A=y.useState(`hasViewport`),j=y.useState(`lastOpenChangeReason`),N=y.useState(`floatingNodeId`),P=y.useState(`floatingParentNodeId`),F=S.useState(`domReferenceElement`),ae=Q.useRef(null),I=i(ie,!1,!1),L=r,se=u,ce=d,R=l,B=v;x.type===`context-menu`&&(L=r??x.context?.anchor,R??=`start`,!c&&R!==`center`&&(ce=e.alignOffset??2,se=e.sideOffset??-5));let ue=c,V=R;x.type===`menu`?(ue??=`inline-end`,V??=`start`,B=e.collisionAvoidance??z):x.type===`menubar`&&(ue??=`bottom`,V??=`start`);let de=x.type===`context-menu`,H=J({anchor:L,floatingRootContext:S,positionMethod:ne?`fixed`:a,mounted:w,side:ue,sideOffset:se,align:V,alignOffset:ce,arrowPadding:de?0:m,collisionBoundary:f,collisionPadding:p,sticky:g,nodeId:N,keepMounted:b,disableAnchorTracking:_,collisionAvoidance:B,shiftCrossAxis:de&&!(`side`in B&&B.side===`flip`),externalTree:C,adaptiveOrigin:A?ke:void 0});Q.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===N&&y.set(`hoverEnabled`,!1),e.nodeId!==N&&e.parentNodeId===y.select(`floatingParentNodeId`)&&y.setOpen(!1,M(h)))}return C.events.on(`menuopenchange`,e),()=>{C.events.off(`menuopenchange`,e)}},[y,C.events,N]),Q.useEffect(()=>{if(y.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==y.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;y.setOpen(!1,M(t))}return C.events.on(`menuopenchange`,e),()=>{C.events.off(`menuopenchange`,e)}},[C.events,y]);let U=fe();Q.useEffect(()=>{T||U.clear()},[T,U]),Q.useEffect(()=>{function e(e){if(!(!T||e.nodeId!==y.select(`floatingParentNodeId`)))if(e.target&&D&&D!==e.target){let e=y.select(`closeDelay`);e>0?U.isStarted()||U.start(e,()=>{y.setOpen(!1,M(h))}):y.setOpen(!1,M(h))}else U.clear()}return C.events.on(`itemhover`,e),()=>{C.events.off(`itemhover`,e)}},[C.events,T,D,y,U]),Q.useEffect(()=>{let e={open:T,nodeId:N,parentNodeId:P,reason:y.select(`lastOpenChangeReason`)};C.events.emit(`menuopenchange`,e)},[C.events,T,y,N,P]),_e(()=>{let e=F,t=ae.current;if(e&&(ae.current=e),t&&e&&e!==t){y.set(`instantType`,void 0);let e=new AbortController;return I(()=>{y.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[F,I,y]);let W={open:T,side:H.side,align:H.align,anchorHidden:H.anchorHidden,nested:x.type===`menu`,instant:k},pe=x.type===`menubar`&&x.context.modal;vt(T&&(pe||re&&j!==`trigger-hover`),E===`touch`,ie,D);let me=Te(e,W,{styles:H.positionerStyles,transitionStatus:O,props:te,refs:[n,y.useStateSetter(`positionerElement`)],hidden:!w,inert:!T}),he=w&&x.type!==`menu`&&(x.type!==`menubar`&&re&&j!==`trigger-hover`||x.type===`menubar`&&x.context.modal),G=null;return x.type===`menubar`?G=x.context.contentElement:x.type===void 0&&(G=D),(0,$.jsxs)(xn.Provider,{value:H,children:[he&&(0,$.jsx)(t,{ref:x.type===`context-menu`||x.type===`nested-context-menu`?x.context.internalBackdropRef:null,inert:Y(!T),cutout:G}),(0,$.jsx)(oe,{id:N,children:(0,$.jsx)(Ve,{elementsRef:y.context.itemDomElements,labelsRef:y.context.itemLabels,children:me})})]})}),Fn=Q.createContext(null);function In(e){let t=Q.useContext(Fn);if(t===null&&!e)throw Error(K(5));return t}var Ln={...P,disabled:A(e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled),modal:A(e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0)),openMethod:A(e=>e.openMethod),allowMouseEnter:A(e=>e.allowMouseEnter),stickIfOpen:A(e=>e.stickIfOpen),parent:A(e=>e.parent),rootId:A(e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId),activeIndex:A(e=>e.activeIndex),isActive:A((e,t)=>e.activeIndex===t),hoverEnabled:A(e=>e.hoverEnabled),instantType:A(e=>e.instantType),lastOpenChangeReason:A(e=>e.openChangeReason),floatingTreeRoot:A(e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot),floatingNodeId:A(e=>e.floatingNodeId),floatingParentNodeId:A(e=>e.floatingParentNodeId),itemProps:A(e=>e.itemProps),closeDelay:A(e=>e.closeDelay),hasViewport:A(e=>e.hasViewport),keyboardEventRelay:A(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)})},Rn=class e extends p{constructor(e){super({...zn(),...e},{positionerRef:Q.createRef(),popupRef:Q.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:Q.createRef(),beforeContentFocusGuardRef:Q.createRef(),onOpenChangeComplete:void 0,triggerElements:new c},Ln),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);t===i&&n===a&&r===o||(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}static useStore(t,n){let r=S(()=>new e(n)).current;return t??r}unsubscribeParentListener=null};function zn(){return{...Ie(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new v,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:s,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}var Bn=Q.createContext(void 0);function Vn(){return Q.useContext(Bn)}var Hn=ve(function(e){let{children:t,open:n,onOpenChange:i,onOpenChangeComplete:c,defaultOpen:l=!1,disabled:d=!1,modal:p,loopFocus:h=!0,orientation:g=`vertical`,actionsRef:_,closeParentOnEsc:v=!1,handle:te,triggerId:y,defaultTriggerId:b=null,highlightItemOnHover:x=!0}=e,S=bn(!0),C=wn(!0),w=In(!0),T=Vn(),E=Q.useMemo(()=>T&&C?{type:`menu`,store:C.store}:w?{type:`menubar`,context:w}:S&&!C?{type:`context-menu`,context:S}:{type:void 0},[S,C,w,T]),D=Rn.useStore(te?.store,{open:l,openProp:n,activeTriggerId:b,triggerIdProp:y,parent:E});Se(()=>{n===void 0&&D.state.open===!1&&l===!0&&D.update({open:!0,activeTriggerId:b})}),D.useControlledProp(`openProp`,n),D.useControlledProp(`triggerIdProp`,y),D.useContextCallback(`onOpenChangeComplete`,c);let ie=O(),k=O(),A=D.useState(`floatingTreeRoot`),j=m(A),P=ee(),F=D.useState(`open`),oe=D.useState(`activeTriggerElement`),I=D.useState(`positionerElement`),L=D.useState(`hoverEnabled`),se=D.useState(`disabled`),le=D.useState(`lastOpenChangeReason`),R=D.useState(`parent`),z=D.useState(`activeIndex`),B=D.useState(`payload`),ue=D.useState(`floatingParentNodeId`),V=Q.useRef(null),H=Q.useRef(R.type!==`context-menu`),U=fe(),W=Q.useRef(!0),pe=fe(),me=ue!=null,{openMethod:he,triggerProps:G}=o(F);D.useSyncedValues({disabled:d,modal:R.type===void 0?p:void 0,openMethod:he,rootId:ie}),ae(D);let{forceUnmount:K}=f(F,D,()=>{D.update({allowMouseEnter:!1,stickIfOpen:!0})});_e(()=>{S&&!C?D.update({parent:{type:`context-menu`,context:S},floatingNodeId:j,floatingParentNodeId:P}):C&&D.update({floatingNodeId:j,floatingParentNodeId:P})},[S,C,j,P,D]),Q.useEffect(()=>{if(F||(V.current=null),R.type===`context-menu`){if(!F){U.clear(),H.current=!1;return}U.start(500,()=>{H.current=!0})}},[U,F,R.type]),_e(()=>{!F&&!L&&D.set(`hoverEnabled`,!0)},[F,L,D]);let q=ne((e,t)=>{let n=t.reason;if(F===e&&t.trigger===oe&&le===n||(t.preventUnmountOnClose=()=>{D.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&(t.trigger=oe??void 0),i?.(e,t),t.isCanceled))return;D.state.floatingRootContext.dispatchOpenChange(e,t);let r=t.event;if(e===!1&&r?.type===`click`&&r.pointerType===`touch`&&!W.current)return;if(!e&&z!==null){let e=D.context.itemDomElements.current[z];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}e&&n===`trigger-focus`?(W.current=!1,pe.start(300,()=>{W.current=!0})):(W.current=!0,pe.clear());let a=(n===`trigger-press`||n===`item-press`)&&r.detail===0&&r?.isTrusted,o=!e&&(n===`escape-key`||n==null),s={open:e,openChangeReason:n};V.current=t.event??null;let c=t.trigger?.id??null;(c||e)&&(s.activeTriggerId=c,s.activeTriggerElement=t.trigger??null),D.update(s),R.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?D.set(`instantType`,`group`):a||o?D.set(`instantType`,a?`click`:`dismiss`):D.set(`instantType`,void 0)}),J=re({popupStore:D,floatingId:k,nested:P!=null,onOpenChange:q}),ve=J.context.events;Q.useEffect(()=>{let e=({open:e,eventDetails:t})=>q(e,t);return ve.on(`setOpen`,e),()=>{ve?.off(`setOpen`,e)}},[ve,q]);let ye=Q.useCallback(()=>{D.setOpen(!1,M(ge))},[D]);Q.useImperativeHandle(_,()=>({unmount:K,close:ye}),[K,ye]);let be;R.type===`context-menu`&&(be=R.context),Q.useImperativeHandle(be?.positionerRef,()=>I,[I]),Q.useImperativeHandle(be?.actionsRef,()=>({setOpen:q}),[q]);let Y=a(J,{enabled:!se,bubbles:{escapeKey:v&&R.type===`menu`},outsidePress(){return R.type!==`context-menu`||V.current?.type===`contextmenu`?!0:H.current},externalTree:me?A:void 0}),xe=de(),Ce=Q.useCallback(e=>{D.select(`activeIndex`)!==e&&D.set(`activeIndex`,e)},[D]),X=ht(J,{enabled:!se,listRef:D.context.itemDomElements,activeIndex:z,nested:R.type!==void 0,loopFocus:h,orientation:g,parentOrientation:R.type===`menubar`?R.context.orientation:void 0,rtl:xe===`rtl`,disabledIndices:N,onNavigate:Ce,openOnArrowKeyDown:R.type!==`context-menu`,externalTree:me?A:void 0,focusItemOnHover:x}),we=Q.useCallback(e=>{D.context.typingRef.current=e},[D]),Te=gt(J,{listRef:D.context.itemLabels,elementsRef:D.context.itemDomElements,activeIndex:z,resetMs:500,onMatch:e=>{F&&e!==z&&D.set(`activeIndex`,e)},onTyping:we});u(D,{floatingRootContext:J,activeTriggerProps:Q.useMemo(()=>{let e=r(Te.reference,X.reference,Y.reference,{onMouseMove(){D.set(`allowMouseEnter`,!0)}},G);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=F,e},[D,Te.reference,X.reference,Y.reference,G,F]),inactiveTriggerProps:Q.useMemo(()=>{let e=r(X.trigger,Y.trigger,G);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[X.trigger,Y.trigger,G]),popupProps:Q.useMemo(()=>r(Pe,{id:k,role:`menu`,"aria-labelledby":oe?.id,onMouseMove(){D.set(`allowMouseEnter`,!0),R.type===`menu`&&D.set(`hoverEnabled`,!1)},onClick(){D.select(`hoverEnabled`)&&D.set(`hoverEnabled`,!1)},onKeyDown(e){let t=D.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},Te.floating,X.floating,Y.floating),[oe,k,R.type,D,Te.floating,X.floating,Y.floating]),itemProps:X.item??s});let Ee=Q.useMemo(()=>({store:D,parent:E}),[D,E]),De=(0,$.jsx)(Cn.Provider,{value:Ee,children:typeof t==`function`?t({payload:B}):t});return R.type===void 0||R.type===`context-menu`?(0,$.jsx)(ce,{externalTree:A,children:De}):De});function Un(e){if(b(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`)??void 0;if(!k(e))return Un(T(e))}var Wn=I(y());function Gn(e,t){let r=Q.useRef(null);function i(t){Wn.flushSync(()=>{e.setOpen(!1,M(n,t.nativeEvent,t.currentTarget))}),be(r.current)?.focus()}function a(r){let i=e.select(`positionerElement`);if(i&&we(r,i))e.context.beforeContentFocusGuardRef.current?.focus();else{Wn.flushSync(()=>{e.setOpen(!1,M(n,r.nativeEvent,r.currentTarget))});let a=Ee(e.context.triggerFocusTargetRef.current||t.current);for(;a!==null&&D(i,a);){let e=a;if(a=H(a),a===e)break}a?.focus()}}return{preFocusGuardRef:r,handlePreFocusGuardFocus:i,handleFocusTargetFocus:a}}function Kn(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=Q.useRef(!1);return Q.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,Ae(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:s,[t,n,r])}var qn=2,Jn=G(function(e,t){let{render:n,className:i,style:a,disabled:o=!1,nativeButton:c=!0,id:l,openOnHover:u,delay:f=100,closeDelay:p=0,handle:h,payload:g,..._}=e,te=wn(!0),y=h?.store??te?.store;if(!y)throw Error(K(85));let b=U(l),x=y.useState(`isTriggerActive`,b),S=y.useState(`floatingRootContext`),T=y.useState(`isOpenedByTrigger`,b),re=y.useState(`triggerPopupId`,b),E=Q.useRef(null),O=Xn(),ie=C(!0),k=X(),A=Q.useMemo(()=>k??new v,[k]),{registerTrigger:j,isMountedByThisTrigger:M}=w(b,E,y,{payload:g,closeDelay:p,parent:O,floatingTreeRoot:A,floatingNodeId:m(A),floatingParentNodeId:ee(),keyboardEventRelay:ie?.relayKeyboardEvent}),N=O.type===`menubar`,P=y.useState(`disabled`),F=o||P||N&&O.context.disabled,{getButtonProps:ae,buttonRef:oe}=d({disabled:F,native:c});Q.useEffect(()=>{!T&&O.type===void 0&&(y.context.allowMouseUpTriggerRef.current=!1)},[y,T,O.type]);let I=Q.useRef(null),L=fe(),ce=ne(e=>{if(!I.current)return;L.clear(),y.context.allowMouseUpTriggerRef.current=!1;let t=e.target;if(D(I.current,t)||D(y.select(`positionerElement`),t)||t===I.current||t!=null&&Un(t)===y.select(`rootId`))return;let n=_t(I.current);e.clientX>=n.left-qn&&e.clientX<=n.right+qn&&e.clientY>=n.top-qn&&e.clientY<=n.bottom+qn||A.events.emit(`close`,{domEvent:e,reason:Ne})});Q.useEffect(()=>{T&&y.select(`lastOpenChangeReason`)===`trigger-hover`&&Ae(I.current).addEventListener(`mouseup`,ce,{once:!0})},[T,ce,y]);let le=N&&O.context.hasSubmenuOpen,R=ue(S,{enabled:(u??le)&&!F&&O.type!==`context-menu`&&(!N||le&&!M),handleClose:pe({blockPointerEvents:!N}),mouseOnly:!0,move:!1,restMs:O.type===void 0?f:void 0,delay:{close:p},triggerElementRef:E,externalTree:A,isActiveTrigger:x,isClosing:()=>y.select(`transitionStatus`)===`ending`}),z=Yn(T,y.select(`lastOpenChangeReason`)),B=se(S,{enabled:!F&&O.type!==`context-menu`,event:T&&N?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:O.type===void 0?z:!1}),V=Le(S,{enabled:!F&&le}),de=Kn({open:T,enabled:N,mouseDownAction:`open`}),H=Q.useMemo(()=>r(V.reference,B.reference),[V.reference,B.reference]),W=y.useState(`triggerProps`,M),{preFocusGuardRef:me,handlePreFocusGuardFocus:G,handleFocusTargetFocus:ge}=Gn(y,E),_e={disabled:F,open:T},q=[I,t,oe,j,E],J=[H,R??s,W,{"aria-haspopup":`menu`,"aria-controls":re,id:b,onMouseDown:e=>{y.select(`open`)||(L.start(200,()=>{y.context.allowMouseUpTriggerRef.current=!0}),Ae(e.currentTarget).addEventListener(`mouseup`,ce,{once:!0}))}},N?{role:`menuitem`}:{},de,_,ae],ve=Fe(`button`,e,{enabled:!N,stateAttributesMapping:ye,state:_e,ref:q,props:J});return N?(0,$.jsx)(at,{tag:`button`,render:n,className:i,style:a,state:_e,refs:q,props:J,stateAttributesMapping:ye}):T?(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsx)(he,{ref:me,onFocus:G},`${b}-pre-focus-guard`),(0,$.jsx)(Q.Fragment,{children:ve},b),(0,$.jsx)(he,{ref:y.context.triggerFocusTargetRef,onFocus:ge},`${b}-post-focus-guard`)]}):(0,$.jsx)(Q.Fragment,{children:ve},b)});function Yn(e,t){let n=fe(),[r,i]=Q.useState(!1);return _e(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function Xn(){let e=bn(!0),t=wn(!0),n=In(!0);return Q.useMemo(()=>n?{type:`menubar`,context:n}:e&&!t?{type:`context-menu`,context:e}:{type:void 0},[e,t,n])}var Zn=I(wt(),1);function Qn({...e}){return(0,$.jsx)(Hn,{"data-slot":`dropdown-menu`,...e})}function $n({...e}){return(0,$.jsx)(Jn,{"data-slot":`dropdown-menu-trigger`,...e})}function er({align:e=`start`,alignOffset:t=0,side:n=`bottom`,sideOffset:r=4,className:i,...a}){return(0,$.jsx)(Nn,{children:(0,$.jsx)(Pn,{className:`isolate z-50 outline-none`,align:e,alignOffset:t,side:n,sideOffset:r,children:(0,$.jsx)(An,{"data-slot":`dropdown-menu-content`,className:je(`dark z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95`,i),...a})})})}function tr({className:e,inset:t,variant:n=`default`,...r}){return(0,$.jsx)(On,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:je(`group/dropdown-menu-item relative flex min-h-7 cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 data-[variant=destructive]:*:[svg]:text-destructive`,e),...r})}function nr({className:e,...t}){return(0,$.jsx)(De,{"data-slot":`dropdown-menu-separator`,className:je(`-mx-1 my-1 h-px bg-border/50`,e),...t})}var rr={pending:`Requested`,approved:`Approved`,registered:`Registered`},ir={pending:`warning`,approved:`secondary`,registered:`muted`},ar=`all`,or=6,sr=()=>window.location.pathname.endsWith(`/native-builds/devices`)?window.location.pathname.slice(0,-tt.length):$e(window.location,``),cr=(e,t)=>({approve:t.canApprove&&e.status===`pending`,rename:t.canApprove,remove:t.canApprove,withdraw:!t.canApprove&&e.status===`pending`&&e.requested_by===t.email}),lr=e=>e.status===`approved`&&e.apple_error!==null,ur=e=>e.requested_by??`Added from a terminal`;function dr({device:e,inTable:t=!1}){return e.apple_error===null?null:t?(0,$.jsx)(`span`,{className:`line-clamp-2 max-w-48 text-xs whitespace-normal text-muted-foreground`,title:e.apple_error,children:e.apple_error}):(0,$.jsx)(`span`,{className:`max-w-64 text-xs whitespace-normal text-muted-foreground`,children:e.apple_error})}function fr({device:e,withError:t=!0}){return(0,$.jsxs)(`div`,{className:`flex min-w-0 shrink-0 flex-col items-start gap-1`,children:[lr(e)?(0,$.jsx)(mt,{variant:`warning`,children:`Apple refused`}):(0,$.jsx)(mt,{variant:ir[e.status],children:rr[e.status]}),t?(0,$.jsx)(dr,{device:e,inTable:!0}):null]})}function pr({device:e}){if(e.build_id===null)return(0,$.jsx)(Ue,{});let t=`A build`;try{t=`Build of ${(0,Zn.default)(Ct(e.build_id)).format(`MMM D`)}`}catch{}return(0,$.jsx)(Re,{className:`text-xs font-medium underline-offset-4 hover:underline`,params:{buildId:e.build_id},to:`/native-builds/$buildId`,children:t})}function mr({device:e,viewer:t,onOpen:n}){let r=cr(e,t);return!r.approve&&!r.rename&&!r.remove&&!r.withdraw?null:(0,$.jsxs)(`div`,{className:`flex items-center justify-end gap-1`,children:[r.approve?(0,$.jsxs)(W,{className:`h-11 sm:h-8`,onClick:()=>n({kind:`approve`,device:e}),size:`sm`,children:[(0,$.jsx)(ze,{"data-icon":`inline-start`}),`Approve`]}):null,r.withdraw?(0,$.jsx)(W,{className:`h-11 sm:h-8`,onClick:()=>n({kind:`remove`,device:e}),size:`sm`,variant:`outline`,children:`Withdraw`}):null,r.rename||r.remove?(0,$.jsxs)(Qn,{children:[(0,$.jsx)($n,{render:(0,$.jsx)(W,{"aria-label":`More actions for ${e.name}`,className:`size-11 sm:size-8`,size:`icon-sm`,variant:`ghost`}),children:(0,$.jsx)(vn,{"aria-hidden":`true`})}),(0,$.jsxs)(er,{align:`end`,children:[(0,$.jsxs)(tr,{onClick:()=>n({kind:`rename`,device:e}),children:[(0,$.jsx)(it,{"aria-hidden":`true`}),`Rename`]}),(0,$.jsx)(nr,{}),(0,$.jsxs)(tr,{onClick:()=>n({kind:`remove`,device:e}),variant:`destructive`,children:[(0,$.jsx)(ct,{"aria-hidden":`true`}),e.status===`pending`?`Decline`:`Remove`]})]})]}):null]})}function hr(){return(0,$.jsx)(mt,{className:`shrink-0 px-1.5`,variant:`muted`,children:`This iPhone`})}function gr({device:e,viewer:t,onOpen:n,isThisIphone:r}){return(0,$.jsxs)(an,{children:[(0,$.jsx)(on,{className:`font-medium`,children:(0,$.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[e.name,r?(0,$.jsx)(hr,{}):null]})}),(0,$.jsx)(on,{children:(0,$.jsx)(`span`,{className:`font-mono text-xs`,title:e.udid,translate:`no`,children:et(e.udid)})}),(0,$.jsx)(on,{className:`text-xs`,children:e.requested_by??(0,$.jsx)(`span`,{className:`text-muted-foreground`,children:ur(e)})}),(0,$.jsx)(on,{children:(0,$.jsx)(fr,{device:e})}),(0,$.jsx)(on,{className:`text-xs`,children:(0,$.jsx)(hn,{ms:e.created_at_ms})}),(0,$.jsx)(on,{children:(0,$.jsx)(pr,{device:e})}),(0,$.jsx)(on,{className:`text-right`,children:(0,$.jsx)(mr,{device:e,onOpen:n,viewer:t})})]})}function _r({device:e,viewer:t,onOpen:n,isThisIphone:r}){return(0,$.jsxs)(fn,{className:`cursor-default gap-3`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,$.jsxs)(`p`,{className:`flex min-w-0 items-center gap-1.5 text-sm font-medium`,children:[(0,$.jsx)(`span`,{className:`truncate`,children:e.name}),r?(0,$.jsx)(hr,{}):null]}),(0,$.jsx)(`p`,{className:`font-mono text-xs text-muted-foreground`,translate:`no`,children:et(e.udid)})]}),(0,$.jsx)(fr,{device:e,withError:!1})]}),(0,$.jsx)(dr,{device:e}),(0,$.jsxs)(`p`,{className:`flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground`,children:[(0,$.jsx)(`span`,{children:ur(e)}),(0,$.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,$.jsx)(hn,{ms:e.created_at_ms}),e.build_id===null?null:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,$.jsx)(pr,{device:e})]})]}),(0,$.jsx)(mr,{device:e,onOpen:n,viewer:t})]})}function vr({target:e,onClose:t}){let n=Rt(),r=Ft(),i=e.kind===`approve`?n:r,[a,o]=(0,Q.useState)(e.device.name),s=a.trim();return(0,$.jsx)(nn,{onOpenChange:e=>e?null:t(),open:!0,children:(0,$.jsxs)($t,{children:[(0,$.jsxs)(Zt,{children:[(0,$.jsx)(en,{children:e.kind===`approve`?`Approve ${e.device.name}?`:`Rename ${e.device.name}`}),(0,$.jsx)(tn,{children:e.kind===`approve`?`The next ad hoc build registers this iPhone with your Apple account. Each new iPhone uses one of the account's 100 a year, and removing it never gives the slot back.`:`The registry shows this name. The next ad hoc build doesn't rename it at Apple.`})]}),(0,$.jsxs)(`form`,{onSubmit:n=>{n.preventDefault(),s!==``&&i.mutate({id:e.device.id,name:s},{onSuccess:t})},children:[(0,$.jsxs)(Et,{children:[e.kind===`approve`?(0,$.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] gap-x-4 gap-y-1 text-sm`,children:[(0,$.jsx)(`dt`,{className:`text-muted-foreground`,children:`Requested by`}),(0,$.jsx)(`dd`,{className:`truncate`,children:e.device.requested_by??`Terminal (CLI)`}),(0,$.jsx)(`dt`,{className:`text-muted-foreground`,children:`UDID`}),(0,$.jsx)(`dd`,{className:`font-mono text-xs break-all select-all`,translate:`no`,children:e.device.udid})]}):null,(0,$.jsxs)(kt,{"data-invalid":i.isError||void 0,children:[(0,$.jsx)(Tt,{htmlFor:`ios-device-dialog-name`,children:`Name`}),(0,$.jsx)(E,{autoComplete:`off`,id:`ios-device-dialog-name`,maxLength:100,onChange:e=>o(e.target.value),value:a}),e.kind===`approve`?(0,$.jsx)(Dt,{children:`The iPhone's ID comes from the person who asked. Approve devices you recognize.`}):null,(0,$.jsx)(Ot,{children:i.isError?`Couldn't ${e.kind===`approve`?`approve`:`rename`} ${e.device.name}. Check your connection and try again.`:null})]})]}),(0,$.jsx)(Qt,{className:`mt-4`,children:(0,$.jsxs)(W,{className:`h-11 sm:h-8`,disabled:s===``||i.isPending,type:`submit`,children:[i.isPending?(0,$.jsx)(Qe,{className:`animate-spin motion-reduce:animate-none`,"data-icon":`inline-start`}):(0,$.jsx)(ze,{"data-icon":`inline-start`}),e.kind===`approve`?`Approve`:`Rename`]})})]})]})})}function yr({device:e,viewer:t,onClose:n}){let r=It(),i=!t.canApprove,a=e.status===`pending`;return(0,$.jsx)(Xt,{onOpenChange:e=>e?null:n(),open:!0,children:(0,$.jsxs)(Wt,{children:[(0,$.jsxs)(Yt,{children:[(0,$.jsx)(Gt,{children:i?`Withdraw ${e.name}?`:a?`Decline ${e.name}?`:`Remove ${e.name}?`}),(0,$.jsx)(Ut,{children:a?`It leaves the list. Its owner can request it again.`:`It leaves the list. New ad hoc builds keep it until it's disabled at Apple.`})]}),r.isError?(0,$.jsxs)(`p`,{className:`text-xs text-destructive`,role:`alert`,children:[`Couldn't `,i?`withdraw`:a?`decline`:`remove`,` `,e.name,`. Check your connection and try again.`]}):null,(0,$.jsxs)(qt,{children:[(0,$.jsx)(Jt,{disabled:r.isPending,children:`Cancel`}),(0,$.jsxs)(Kt,{disabled:r.isPending,onClick:t=>{t.preventDefault(),r.mutate({udid:e.udid},{onSuccess:n})},variant:`destructive`,children:[r.isPending?(0,$.jsx)(Qe,{className:`animate-spin motion-reduce:animate-none`,"data-icon":`inline-start`}):null,i?`Withdraw`:a?`Decline`:`Remove`]})]})]})})}function br({device:e,viewer:t}){let n=t?.canApprove===!0;return e.apple_error===null?(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 items-start justify-between gap-3`,children:[(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-0.5`,children:[(0,$.jsx)(`p`,{className:`truncate text-sm font-medium`,children:e.name}),(0,$.jsx)(`p`,{className:`font-mono text-xs text-muted-foreground`,translate:`no`,children:et(e.udid)})]}),(0,$.jsx)(fr,{device:e,withError:!1})]}),(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:e.status===`pending`?n?`Approve it below, and it joins the next ad hoc build.`:`A maintainer approves it next.`:e.status===`approved`?`It joins the next ad hoc build.`:`New ad hoc builds install on it.`})]}):(0,$.jsx)(Vt,{canApprove:n,device:e,onDevicesPage:!0})}function xr({status:e,secretName:t}){return(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:e===`local-console`?`iPhones register through your hosted Console: an iPhone can't reach this computer's.`:`Set ${t} on this Console to register iPhones.`})}function Sr({view:t,phone:n}){let[r,i]=(0,Q.useState)(null),a=r??t?.defaultName??``,[o,s]=(0,Q.useState)(a);(0,Q.useEffect)(()=>{let e=setTimeout(()=>s(a.trim()),400);return()=>clearTimeout(e)},[a]);let c=n?.ios===!0,l=Ht({mode:`register`,name:o||`iPhone`},c&&t?.registration===`ready`),u=n===null||window.location.protocol===`https:`,d=c?n.udid:null,f=Nt(d),p=n?.answers??0,{refetch:m}=f,h=(0,Q.useRef)({udid:d,answers:p});(0,Q.useEffect)(()=>{let e=h.current;h.current={udid:d,answers:p},d!==null&&d===e.udid&&p>e.answers&&m()},[d,p,m]);let g=n===null?``:sr(),_=zt(g,n?.receipt??null,c&&t?.registration===`ready`&&(d===null||n.receipt!==null||f.data===null));Lt(n,_.data?.udid);let v=At(g),ee=c&&Mt(_.data?.udid,n.udid),te=(()=>{if(n===null||c&&n.udid!==null&&f.isPending)return(0,$.jsx)(e,{"aria-label":`Loading`,className:`h-36 w-full`});if(c&&f.data)return(0,$.jsx)(br,{device:f.data,viewer:t?.viewer});if(t!==void 0&&(t.registration===`local-console`||t.registration===`no-secret`))return(0,$.jsx)(xr,{secretName:t.secretName,status:t.registration});if(!c)return(0,$.jsxs)(`div`,{className:`flex flex-col items-start gap-4 sm:flex-row sm:items-center`,children:[(0,$.jsx)(_n,{className:`size-36 shrink-0`,label:`Open this page on an iPhone`,value:`${window.location.origin}${sr()}${tt}`}),(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,$.jsx)(`p`,{className:`text-sm font-medium`,children:`Open this page on the iPhone, in Safari.`}),(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`It installs a profile that reads the iPhone's ID, then lists the iPhone here as requested. Nothing stays installed.`})]})]});if(!u)return(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:`iPhones need this Console on HTTPS.`});if(f.data===null&&_.isFetching&&!ee)return(0,$.jsx)(e,{"aria-label":`Loading`,className:`h-36 w-full`});if(ee){let e=a.trim();return(0,$.jsxs)(`form`,{className:`flex min-w-0 flex-col gap-3`,onSubmit:t=>{t.preventDefault(),e!==``&&v.mutate({name:e,receipt:n.receipt})},children:[(0,$.jsxs)(kt,{"data-invalid":v.isError||void 0,children:[(0,$.jsx)(Tt,{htmlFor:`ios-device-register-name`,children:`This iPhone's name`}),(0,$.jsx)(E,{autoComplete:`off`,className:`h-11`,id:`ios-device-register-name`,maxLength:100,onChange:e=>i(e.target.value),value:a}),(0,$.jsx)(Dt,{children:`This Safari checked it before, so no profile is needed.`}),(0,$.jsx)(Ot,{children:v.isError?`The request didn't go through. Try again.`:null})]}),(0,$.jsxs)(W,{className:`h-11 w-full`,disabled:e===``||v.isPending,type:`submit`,children:[v.isPending?(0,$.jsx)(Qe,{className:`animate-spin motion-reduce:animate-none`,"data-icon":`inline-start`}):(0,$.jsx)(st,{"data-icon":`inline-start`}),`Request this iPhone`]})]})}return l.data?.status===`local-console`?(0,$.jsx)(xr,{status:`local-console`}):l.data?.status===`no-secret`?(0,$.jsx)(xr,{secretName:l.data.secretName,status:`no-secret`}):(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,$.jsxs)(kt,{children:[(0,$.jsx)(Tt,{htmlFor:`ios-device-register-name`,children:`This iPhone's name`}),(0,$.jsx)(E,{autoComplete:`off`,className:`h-11`,id:`ios-device-register-name`,maxLength:100,onChange:e=>i(e.target.value),value:a})]}),l.data?.status===`issued`&&o===a.trim()?(0,$.jsxs)(`a`,{className:B({className:`h-auto min-h-11 w-full whitespace-normal`}),href:nt(sr(),l.data.token),children:[(0,$.jsx)(st,{"data-icon":`inline-start`}),`Install profile`]}):(0,$.jsx)(e,{"aria-label":`Preparing the profile`,className:`h-11 w-full`}),(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Safari only. Allow the download, then install it in Settings, where iOS calls it not signed. Safari comes back here, and nothing stays installed.`})]})})();return(0,$.jsxs)(St,{className:`shadow-sm`,children:[(0,$.jsx)(yt,{className:`border-b px-4 py-3`,children:(0,$.jsx)(xt,{className:`text-sm`,children:(0,$.jsx)(`h2`,{children:`Register an iPhone`})})}),(0,$.jsx)(bt,{className:`p-4 sm:p-6`,children:te})]})}function Cr({search:e,onSearchChange:t}){let n=me(),r=Pt(e.status),i=r.data,a=i?.devices,o=j(),s=()=>void o.invalidateQueries({queryKey:Bt.all}),[c,l]=(0,Q.useState)(null),u=jt(),d=u?.ios===!0?u.udid?.toLowerCase()??null:null,f=()=>l(null),p=(0,$.jsx)(mn,{icon:st,title:e.status===void 0?`No iPhones yet`:`No ${rr[e.status].toLowerCase()} iPhones`,children:e.status===void 0?(0,$.jsx)(`p`,{children:`Open this page on an iPhone to register it.`}):(0,$.jsx)(W,{className:`h-11 sm:h-8`,onClick:()=>t({}),size:`sm`,variant:`outline`,children:`Show all`})});return(0,$.jsxs)(`div`,{className:`flex h-svh min-h-0 min-w-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)(xe,{className:`-ml-1 size-11 lg:size-7`}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(Ze,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,$.jsx)(`h1`,{className:`text-sm font-medium`,children:`Native builds`})]}),(0,$.jsx)(`p`,{className:`basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`The iPhones and iPads ad hoc builds install on. Android needs none.`})]}),(0,$.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col gap-4 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:[(0,$.jsx)(gn,{current:`devices`}),(0,$.jsx)(Sr,{phone:u,view:i}),i!==void 0&&!i.viewer.approversConfigured?(0,$.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5 text-xs text-muted-foreground`,children:[(0,$.jsx)(`p`,{children:`Nobody approves in this Console. Approve from a terminal:`}),(0,$.jsx)(He,{label:`the approve command`,value:rt})]}):null,(0,$.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,$.jsxs)(Xe,{items:[{label:`All statuses`,value:ar},...Object.keys(rr).map(e=>({label:rr[e],value:e}))],onValueChange:e=>t(e===null||e===ar?{}:{status:e}),value:e.status??ar,children:[(0,$.jsx)(We,{"aria-label":`Status`,className:`min-w-0 flex-1 text-xs data-[size=default]:h-11 sm:w-44 sm:flex-none sm:data-[size=default]:h-8`,children:(0,$.jsx)(qe,{})}),(0,$.jsx)(Ke,{children:(0,$.jsxs)(Je,{children:[(0,$.jsx)(Ge,{value:ar,children:`All statuses`}),Object.keys(rr).map(e=>(0,$.jsx)(Ge,{value:e,children:rr[e]},e))]})})]}),(0,$.jsx)(W,{"aria-label":`Refresh iOS devices`,className:`ml-auto size-11 sm:size-7`,disabled:r.isFetching,onClick:s,size:`icon-sm`,variant:`ghost`,children:(0,$.jsx)(ot,{"aria-hidden":`true`})})]}),r.isError?(0,$.jsxs)(dt,{variant:`destructive`,children:[(0,$.jsx)(ft,{}),(0,$.jsx)(lt,{children:`iOS devices couldn't be loaded`}),(0,$.jsx)(ut,{children:`Check your connection and try again.`}),(0,$.jsx)(pt,{children:(0,$.jsxs)(W,{onClick:s,size:`xs`,variant:`outline`,children:[(0,$.jsx)(ot,{"data-icon":`inline-start`}),`Retry`]})})]}):(0,$.jsx)(cn,{className:`flex-none`,children:n?(0,$.jsx)(`div`,{"aria-busy":r.isPlaceholderData,"aria-label":`iOS devices`,className:`aria-busy:opacity-60`,role:`list`,children:r.isLoading?(0,$.jsx)(pn,{label:`Loading iOS devices`}):a?.length===0?(0,$.jsx)(un,{children:p}):a?.map(e=>(0,$.jsx)(`div`,{className:`border-b last:border-b-0`,role:`listitem`,children:(0,$.jsx)(_r,{device:e,isThisIphone:e.udid===d,onOpen:l,viewer:i.viewer})},e.id))}):(0,$.jsx)(sn,{"aria-busy":r.isPlaceholderData,"aria-label":`iOS devices`,className:`aria-busy:opacity-60`,header:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Z,{children:`Name`}),(0,$.jsx)(Z,{children:`UDID`}),(0,$.jsx)(Z,{children:`Requested by`}),(0,$.jsx)(Z,{children:`Status`}),(0,$.jsx)(Z,{children:`Added`}),(0,$.jsx)(Z,{children:`Build`}),(0,$.jsx)(Z,{className:`text-right`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]}),children:r.isLoading?(0,$.jsx)(ln,{columns:or+1,label:`Loading iOS devices`}):a?.length===0?(0,$.jsx)(dn,{columns:or+1,children:p}):a?.map(e=>(0,$.jsx)(gr,{device:e,isThisIphone:e.udid===d,onOpen:l,viewer:i.viewer},e.id))})})]}),c!==null&&c.kind!==`remove`?(0,$.jsx)(vr,{onClose:f,target:c},c.device.id):null,c?.kind===`remove`&&i!==void 0?(0,$.jsx)(yr,{device:c.device,onClose:f,viewer:i.viewer},c.device.id):null]})}function wr(){let e=rn.useSearch(),t=rn.useNavigate();return(0,$.jsx)(Cr,{onSearchChange:e=>void t({search:e,replace:!0}),search:e})}export{wr as component};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-builds_.devices-DF3g--dt.js","assets/sidebar-BmzmPGuv.js","assets/alert-dialog-DGPqJBCk.js","assets/useAnchoredPopupScrollLock-Cvx6CdPD.js","assets/select-Bk52fOVX.js","assets/useCompositeListItem-Cbk_weKW.js","assets/check-C3VCvMOV.js","assets/CompositeItem-B7uxFM46.js","assets/tabs-BnpNC0zf.js","assets/link-CRMwpc7-.js","assets/relativeTime-RUNbaMyO.js","assets/TargetDisplay-DG_I3qln.js","assets/copy-BjVLMKbo.js","assets/key-round-BkeLvA1m.js","assets/native-builds-zwqucwx2.js","assets/constants-C5gi7fdZ.js","assets/dist-BEmib-ZM.js","assets/HashValueDisplay-DvwvQchI.js","assets/-native-builds-search-BFcW2mlI.js","assets/loader-circle-8lunBReu.js","assets/smartphone-Dy13ukaU.js","assets/trash-2-DI0biNI-.js","assets/badge-zMibJGR5.js","assets/QrCode-BFSCkbPj.js","assets/RelativeTime-5ZP9WlQ6.js","assets/chevron-right-RAuPv9r1.js","assets/table-DbZPkzdz.js","assets/IosInstall-B5IdjCP2.js","assets/useMutation-D7IuoOLE.js","assets/field-DInLQ5oV.js","assets/api-eO-sq3Jd.js","assets/preload-helper-CE9OukVC.js","assets/NativeBuildsNav-BKdnlKMN.js","assets/card-BAs80yql.js","assets/dialog-BvZDZzdQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,r as t,t as n}from"./preload-helper-CE9OukVC.js";import{n as r}from"./-native-builds-search-BFcW2mlI.js";var i=e(`/native-builds_/devices`)({component:t(()=>n(()=>import(`./native-builds_.devices-DF3g--dt.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`),validateSearch:r});export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./ConsoleFeatureUnavailable-B3VCINom.js";var t=e;export{t as notFoundComponent};
|