@hot-updater/console 1.2.0-rc.31 → 1.2.0-rc.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/-native-builds-search-BvCftqF2.js +1 -0
- package/.output/public/assets/{BundleIdDisplay-CTBdtFQ8.js → BundleIdDisplay-D8oR8mcP.js} +1 -1
- package/.output/public/assets/{ChannelBadge-CEabmopB.js → ChannelBadge-Do-lWsLM.js} +1 -1
- package/.output/public/assets/{CompositeItem-KUM5yQVr.js → CompositeItem-CyQoQkYs.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-Be-0iTww.js → ConsoleFeatureUnavailable-C0iDIboF.js} +1 -1
- package/.output/public/assets/{EventDetails-bDOYte1z.js → EventDetails-DFWS-HcW.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-D2f0HmyU.js → HashValueDisplay-DKziWjEg.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-Cj2ROSQO.js → InsightsPageHeader-BATHTZWn.js} +1 -1
- package/.output/public/assets/IosInstall-DsKczesK.js +1 -0
- package/.output/public/assets/NativeBuildsNav-D3FIlSu0.js +1 -0
- package/.output/public/assets/{NotFoundPage-CVBtl68B.js → NotFoundPage-CijSy63W.js} +1 -1
- package/.output/public/assets/{PlatformIcon-DVnzzGqM.js → PlatformIcon-Kq3q98tU.js} +1 -1
- package/.output/public/assets/QrCode-D3-Vuudy.js +1 -0
- package/.output/public/assets/{RelativeTime-Dz25a2yJ.js → RelativeTime-CP7nosYx.js} +1 -1
- package/.output/public/assets/{RolloutPercentageBadge-D_I0Raj2.js → RolloutPercentageBadge-DnmU8XbU.js} +1 -1
- package/.output/public/assets/{RowReason-CAkj76WL.js → RowReason-D7TZ2xwW.js} +1 -1
- package/.output/public/assets/SandboxBadge-BPf2uve4.js +1 -0
- package/.output/public/assets/TargetDisplay-DzSkf5yP.js +1 -0
- package/.output/public/assets/alert-dialog-Dihztkem.js +1 -0
- package/.output/public/assets/{api-C1OPeiG1.js → api-B1z_XXrQ.js} +1 -1
- package/.output/public/assets/api-keys-C_u_ZmPS.js +1 -0
- package/.output/public/assets/api-keys-DPuPM7ag.js +1 -0
- package/.output/public/assets/arrow-left-CxxDwBQs.js +1 -0
- package/.output/public/assets/arrow-right-jHG0fJt7.js +1 -0
- package/.output/public/assets/arrow-up-right-BPRe5soE.js +1 -0
- package/.output/public/assets/{badge-FZMD5vvS.js → badge-D4Tiwei-.js} +1 -1
- package/.output/public/assets/{card-CyHYmHue.js → card-BfeRlTvj.js} +1 -1
- package/.output/public/assets/check-Dz_5aNwx.js +1 -0
- package/.output/public/assets/chevron-right-CuYrscDY.js +1 -0
- package/.output/public/assets/{circle-off-BCkZpskJ.js → circle-off-BZFOMb8J.js} +1 -1
- package/.output/public/assets/{clipboard-DZrZK5gR.js → clipboard-D8uvj6FN.js} +1 -1
- package/.output/public/assets/{console-features-api-BO5V64P3.js → console-features-api-De6tXQnd.js} +1 -1
- package/.output/public/assets/{copy-CH1__JAW.js → copy-BxI24-g-.js} +1 -1
- package/.output/public/assets/dialog-e9AF5T6h.js +1 -0
- package/.output/public/assets/{dist-DAM__Tdz.js → dist-BEIz5ojx.js} +1 -1
- package/.output/public/assets/{download-B2GjTySo.js → download-ekENI2Sw.js} +1 -1
- package/.output/public/assets/{empty--YaE5Z4p.js → empty-DpSPWLc2.js} +1 -1
- package/.output/public/assets/{field-CdhSgWhI.js → field-PkdRPD3A.js} +1 -1
- package/.output/public/assets/{git-branch-DG1VDaKq.js → git-branch-BWrvONjc.js} +1 -1
- package/.output/public/assets/{history-C0wv4htz.js → history-DwdBLzJP.js} +1 -1
- package/.output/public/assets/index-BZVWufH3.js +10 -0
- package/.output/public/assets/input-group-DNfVeeYZ.js +1 -0
- package/.output/public/assets/{insights-_j_ieOyh.js → insights-Bm4Kua5R.js} +2 -2
- package/.output/public/assets/insights-CpnFoyo5.js +2 -0
- package/.output/public/assets/insights-MQrx_wbP.js +1 -0
- package/.output/public/assets/{insights-api-B6Gj74n5.js → insights-api-CXXCRZhF.js} +1 -1
- package/.output/public/assets/{insights-search-Bgvg6wSP.js → insights-search-CtEcj6lz.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-BUCinjSN.js → insights-usage-rpc-DdmD1Nuy.js} +1 -1
- package/.output/public/assets/{insights_.distribution-CRkGNelG.js → insights_.distribution-Bjo0aQE4.js} +1 -1
- package/.output/public/assets/insights_.distribution-Dd2mYz8D.js +2 -0
- package/.output/public/assets/insights_.distribution-REbBAqgL.js +1 -0
- package/.output/public/assets/{installations-BsD6LgNc.js → installations-DYT2mSjX.js} +2 -2
- package/.output/public/assets/installations-Di02gX_V.js +1 -0
- package/.output/public/assets/{installations-CYTzndfP.js → installations-iqDa8KPW.js} +1 -1
- package/.output/public/assets/{key-round-D7UgdXyA.js → key-round-B-vaAsR7.js} +1 -1
- package/.output/public/assets/{link-CN3iHC4A.js → link-D95E0fwF.js} +1 -1
- package/.output/public/assets/{list-Bm-CfN5g.js → list-Dq40Mmoj.js} +1 -1
- package/.output/public/assets/loader-circle-C26cZDSM.js +1 -0
- package/.output/public/assets/native-builds-7sC78eTq.js +1 -0
- package/.output/public/assets/native-builds-BOSmoLed.js +1 -0
- package/.output/public/assets/native-builds-CXDwW54k.js +2 -0
- package/.output/public/assets/native-builds_._buildId-C7-yUwvH.js +2 -0
- package/.output/public/assets/native-builds_._buildId-u5dG7ej5.js +1 -0
- package/.output/public/assets/native-builds_.devices-CQ_tB3SO.js +1 -0
- package/.output/public/assets/native-builds_.devices-C_YZoRxB.js +2 -0
- package/.output/public/assets/plus-Bp6IqwOH.js +1 -0
- package/.output/public/assets/{preload-helper-CRQjUQaZ.js → preload-helper-52zhjEsw.js} +1 -1
- package/.output/public/assets/{refresh-cw-BHhBYjS8.js → refresh-cw-CpCxPYma.js} +1 -1
- package/.output/public/assets/{relativeTime-BYRt19mj.js → relativeTime-D_aYJRc7.js} +1 -1
- package/.output/public/assets/remote-config-BbiN7bGR.js +6 -0
- package/.output/public/assets/remote-config-BhdrBpLM.js +1 -0
- package/.output/public/assets/remote-config-Dmuqm9xx.js +1 -0
- package/.output/public/assets/{rotate-cw-Ba-slJea.js → rotate-cw-Bn3fIWmY.js} +1 -1
- package/.output/public/assets/routes-C4MTDNA3.js +2 -0
- package/.output/public/assets/routes-Cjjfwbs_.js +1 -0
- package/.output/public/assets/search-DeKSyo9Q.js +1 -0
- package/.output/public/assets/{select-CA8r-UUe.js → select-BAd2hAoW.js} +1 -1
- package/.output/public/assets/{sidebar-yC7KdImc.js → sidebar-UnsNYOry.js} +1 -1
- package/.output/public/assets/smartphone-lSZWrqxx.js +1 -0
- package/.output/public/assets/styles-CQNxu86i.css +2 -0
- package/.output/public/assets/{switch-BsV3d4km.js → switch-C_s67MO4.js} +1 -1
- package/.output/public/assets/{table-D8YjT_ht.js → table-r_sYqKTQ.js} +1 -1
- package/.output/public/assets/{tabs-RdhEl9sE.js → tabs-BBfg-c0h.js} +1 -1
- package/.output/public/assets/{trash-2-B5KIvrXy.js → trash-2-BPH7ydek.js} +1 -1
- package/.output/public/assets/{undo-2-CFcU9dIB.js → undo-2-CGeTBZjC.js} +1 -1
- package/.output/public/assets/{useCompositeListItem-lAmUsXcc.js → useCompositeListItem-B9ONn9qn.js} +1 -1
- package/.output/public/assets/{useMutation-w3qYaU2L.js → useMutation-BWX97JX2.js} +1 -1
- package/.output/server/{__23tanstack-start-server-fn-resolver-CPVg1lWP.mjs → __23tanstack-start-server-fn-resolver-DBw1tYEH.mjs} +58 -62
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{-native-builds-search-DD7wilC0.mjs → -native-builds-search-OJ8XmaBa.mjs} +1 -1
- package/.output/server/_ssr/{BundleIdDisplay-CHwdLSxI.mjs → BundleIdDisplay-DsNg19E8.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-DdrhdvMM.mjs → ChannelBadge-DWQcxohs.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-DPX24kXX.mjs → ConsoleFeatureUnavailable-CfcFJ4k4.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-6jBbGcbN.mjs → EventDetails-DJYShaIG.mjs} +6 -6
- package/.output/server/_ssr/{HashValueDisplay-B4--TU87.mjs → HashValueDisplay-B7FFJcIK.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-CuJ8N3TQ.mjs → InsightsPageHeader-CaceslcD.mjs} +6 -6
- package/.output/server/_ssr/{IosInstall-CHC-d6NT.mjs → IosInstall-gEVi9PFl.mjs} +164 -72
- package/.output/server/_ssr/{NativeBuildsNav-C69l7uNo.mjs → NativeBuildsNav-DoB6DGO2.mjs} +5 -5
- package/.output/server/_ssr/{NotFoundPage-ZsHGzoLS.mjs → NotFoundPage-Bu3yot-M.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-BXcpYcrO.mjs → PlatformIcon-X18AN8Yp.mjs} +1 -1
- package/.output/server/_ssr/QrCode-DkmvYkKS.mjs +50 -0
- package/.output/server/_ssr/{RelativeTime-7vOoIT4P.mjs → RelativeTime-Dg47Cmmt.mjs} +3 -3
- package/.output/server/_ssr/{RolloutPercentageBadge--MojdSYZ.mjs → RolloutPercentageBadge-CcEZuUxL.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-CIaGuzr1.mjs → RowReason-CbKEYA9N.mjs} +4 -4
- package/.output/server/_ssr/{SandboxBadge-BqBSRE2-.mjs → SandboxBadge-CuTOlGaF.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-CLn4k3f5.mjs → TargetDisplay-DkRZwhNW.mjs} +3 -3
- package/.output/server/_ssr/{alert-dialog-DihcZr0y.mjs → alert-dialog-Ckdomw6e.mjs} +3 -3
- package/.output/server/_ssr/{api-nFsUxTG1.mjs → api-BIDpAoY0.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-DExjZkdx.mjs → api-keys-BStTPcTe.mjs} +11 -9
- package/.output/server/_ssr/{api-keys-CN5wpM3R.mjs → api-keys-MdcfK9Zw.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-CClIn3D8.mjs → api-keys-rpc-FwkHHfJL.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-DLRzLoop.mjs → api-rpc-DI164kWO.mjs} +13 -13
- package/.output/server/_ssr/{auth-rpc-U46OWsbS.mjs → auth-rpc-DOONC4Xw.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-iIXxFs8t.mjs → auth.server-MkFb8t-c.mjs} +2 -2
- package/.output/server/_ssr/{badge-jnl4Ajh1.mjs → badge-MGJQ5WNb.mjs} +1 -1
- package/.output/server/_ssr/{card-BEfQk5Ei.mjs → card-st1F0w5g.mjs} +1 -1
- package/.output/server/_ssr/{config.server-Ig1eUxaf.mjs → config.server-A4yZxfTn.mjs} +4 -4
- package/.output/server/_ssr/{console-access-BOTh4-fO.mjs → console-access-Cj95NxRZ.mjs} +2 -2
- package/.output/server/_ssr/{console-features-CzhqrCcX.mjs → console-features-DTYyXrWO.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-Dk02j_6v.mjs → console-features-api-WvvE114Q.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-B_V68MjF.mjs → console-features-rpc-DxhmScBd.mjs} +3 -3
- package/.output/server/_ssr/{deviceProfileToken-BbLKmrUb.mjs → deviceProfileToken-xzDLfE0T.mjs} +21 -5
- package/.output/server/_ssr/{dialog-DuyJ0HsU.mjs → dialog-jxN7lCij.mjs} +4 -4
- package/.output/server/_ssr/{empty-BDBZwsuM.mjs → empty-Dfmlc-7_.mjs} +2 -2
- package/.output/server/_ssr/{field-CX6srGIn.mjs → field-BrPlhj0S.mjs} +2 -2
- package/.output/server/_ssr/{input-group-CV_H0YX7.mjs → input-group-Ckaa4ML0.mjs} +2 -2
- package/.output/server/_ssr/{insights-CBoiq6pK.mjs → insights-BX9okQmy.mjs} +2 -2
- package/.output/server/_ssr/{insights-DQmsr9I4.mjs → insights-CmbOo4Er.mjs} +29 -24
- package/.output/server/_ssr/{insights-Td2VtKJZ.mjs → insights-DHvN6knB.mjs} +5 -5
- package/.output/server/_ssr/{insights-api-G8ZOyKKA.mjs → insights-api-t8rcSzVu.mjs} +3 -3
- package/.output/server/_ssr/{insights-failures-rpc-Ba4YSjbA.mjs → insights-failures-rpc-DadwsaxJ.mjs} +7 -7
- package/.output/server/_ssr/{insights-recovery-rpc-LKbOLo-_.mjs → insights-recovery-rpc-BK-RELe9.mjs} +4 -4
- package/.output/server/_ssr/{insights-rpc-TkflAi0Z.mjs → insights-rpc-BmDuFOYA.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-aCzmEqnq.mjs → insights-search-CQ0aMRHX.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-rpc-Cbk3jKjA.mjs → insights-usage-rpc-CkeNir2v.mjs} +4 -4
- package/.output/server/_ssr/{insights-usage-rpc-NoT-iWyp.mjs → insights-usage-rpc-JhBWMZfn.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-Bo1WRLKV.mjs → insights_.distribution-BtGiM-F8.mjs} +15 -15
- package/.output/server/_ssr/{insights_.distribution-Vt7W1Xw7.mjs → insights_.distribution-CEldmJz1.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-Y3uFkJMX.mjs → insights_.distribution-DlBTOrjk.mjs} +5 -5
- package/.output/server/_ssr/{installations-BEUOlOQs.mjs → installations-3fgKUnRv.mjs} +11 -11
- package/.output/server/_ssr/{installations-BpcY3NSj.mjs → installations-DHbd6gfU.mjs} +2 -2
- package/.output/server/_ssr/{installations-DClqNAQn.mjs → installations-oBJc0TH1.mjs} +4 -4
- package/.output/server/_ssr/{ios-devices-rpc-DmjO2Cbe.mjs → ios-devices-rpc-DjlS64L9.mjs} +9 -21
- package/.output/server/_ssr/iosDeviceCookie-Ccxr1MR8.mjs +155 -0
- package/.output/server/_ssr/{iosDeviceProfile-CseUPyC3.mjs → iosDeviceProfile-nEW-zQnl.mjs} +13 -14
- package/.output/server/_ssr/{iosDevices-BcM0YdL8.mjs → iosDevices-gG7HCnCL.mjs} +4 -20
- package/.output/server/_ssr/{native-artifact-C-jGiTjz.mjs → native-artifact-BRNP_q-y.mjs} +1 -1
- package/.output/server/_ssr/{native-builds-CwdDL-ag.mjs → native-builds-Be2Ga-eY.mjs} +17 -17
- package/.output/server/_ssr/{native-builds-B31AnQ0z.mjs → native-builds-mq_fr3k0.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-DjoHvBQf.mjs → native-builds-nRuXKypG.mjs} +63 -2
- package/.output/server/_ssr/{native-builds_._buildId-Dew-f4Ox.mjs → native-builds_._buildId-Cq-3MWHV.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-xNxhulXv.mjs → native-builds_._buildId-Du028raJ.mjs} +20 -27
- package/.output/server/_ssr/{native-builds_.devices-BBWNnbAj.mjs → native-builds_.devices-CWOFxrsg.mjs} +120 -68
- package/.output/server/_ssr/{native-builds_.devices-DpYGqdjz.mjs → native-builds_.devices-DVBT3gKp.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildDownloadLink-CMo_0eeE.mjs → nativeBuildDownloadLink-BXFMIxJ8.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-BlT6X49f.mjs → nativeBuildInstall-CjG3sJmP.mjs} +8 -7
- package/.output/server/_ssr/{nativeBuilds-DnIRDijn.mjs → nativeBuilds-DaF-TcfO.mjs} +2 -2
- package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
- package/.output/server/_ssr/{publicConsoleBase-CBG0Pv8f.mjs → publicConsoleBase-wTKw3_iB.mjs} +2 -14
- package/.output/server/_ssr/{release-adoption-rpc-CNwUfrya.mjs → release-adoption-rpc-BiUppdo3.mjs} +7 -7
- package/.output/server/_ssr/{releaseAdoption-COlUf2W5.mjs → releaseAdoption-DfEYq7I4.mjs} +1 -1
- package/.output/server/_ssr/{remote-config-D1X_UwRB.mjs → remote-config-8SDPC3Ex.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-7NN5w0OC.mjs → remote-config-CKjwym6Y.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DdcrliiZ.mjs → remote-config-MgYpLVNI.mjs} +19 -19
- package/.output/server/_ssr/{remote-config-rpc-oR3e-Ixt.mjs → remote-config-rpc-RoH5hIma.mjs} +3 -3
- package/.output/server/_ssr/{router-DxsgaBqH.mjs → router-DaSGo-53.mjs} +101 -61
- package/.output/server/_ssr/{routes-BXne94ak.mjs → routes-2wXfjE3q.mjs} +37 -33
- package/.output/server/_ssr/{routes-DdZw0VC5.mjs → routes-Y7SrNegl.mjs} +11 -10
- package/.output/server/_ssr/{runtime.server-DImJAltO.mjs → runtime.server-BUbb281Z.mjs} +2 -2
- package/.output/server/_ssr/{schema-migration-rpc-BZueLWKW.mjs → schema-migration-rpc-C302GUdI.mjs} +3 -3
- package/.output/server/_ssr/{select-DcWzmCb3.mjs → select-DsWMUB9T.mjs} +1 -1
- package/.output/server/_ssr/{server-DA_rB8Ch.mjs → server-Bx_Shfka.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-BsFYs26D.mjs → sidebar-S1E-7aSS.mjs} +6 -6
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-Ds6WPOwH.mjs → start-BaUpXI0L.mjs} +1 -1
- package/.output/server/_ssr/{switch-CByCMAau.mjs → switch-DMCgvrFu.mjs} +3 -3
- package/.output/server/_ssr/{table-SLiL-w8T.mjs → table-BN3AmMyY.mjs} +1 -1
- package/.output/server/_ssr/{tabs-BCG8AAvJ.mjs → tabs-D3tzMdsj.mjs} +3 -3
- package/.output/server/_ssr/{updateFailures-Cl1Fxj4J.mjs → updateFailures-BwDwIoNu.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-DcKFR9bk.mjs +225 -0
- package/.output/server/index.mjs +431 -431
- package/package.json +7 -7
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +4 -2
- package/src/components/features/bundles/BundleMetadata.tsx +1 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +6 -2
- package/src/components/features/insights/FailureReports.tsx +3 -2
- package/src/components/features/insights/InsightsOverview.tsx +7 -1
- package/src/components/features/insights/ReleaseActivity.tsx +5 -1
- package/src/components/features/insights/ReleaseCombobox.tsx +1 -1
- package/src/components/features/insights/UpdateFailures.tsx +1 -0
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +1 -1
- package/src/components/features/native-builds/IosDevicesPage.tsx +120 -34
- package/src/components/features/native-builds/IosInstall.tsx +85 -27
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +1 -2
- package/src/components/features/native-builds/NativeBuildsNav.tsx +2 -2
- package/src/components/features/native-builds/NativeBuildsTable.tsx +1 -1
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +1 -1
- package/src/components/features/releases/ReleaseEditorSheet.tsx +6 -5
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/dialog.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/lib/ios-devices-api.ts +170 -5
- package/src/lib/ios-devices-rpc.ts +0 -12
- package/src/lib/native-builds.ts +88 -0
- package/src/lib/server/deviceProfileToken.ts +37 -3
- package/src/lib/server/iosDeviceCookie.ts +239 -0
- package/src/lib/server/iosDeviceProfile.ts +4 -2
- package/src/lib/server/iosDevices.ts +0 -30
- package/src/routeTree.gen.ts +44 -0
- package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
- package/src/routes/[_]hot-updater/devices/request.ts +28 -0
- package/.output/public/assets/-native-builds-search-DdHwfe4q.js +0 -1
- package/.output/public/assets/IosInstall-B-Yt7DUj.js +0 -1
- package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +0 -1
- package/.output/public/assets/SandboxBadge-BVxHg_HF.js +0 -1
- package/.output/public/assets/TargetDisplay-B_dqT5iw.js +0 -1
- package/.output/public/assets/alert-dialog-Ch0QxRsa.js +0 -1
- package/.output/public/assets/api-keys-DLC8jjaM.js +0 -1
- package/.output/public/assets/api-keys-eDnzgFAf.js +0 -1
- package/.output/public/assets/arrow-left-DQjHJAnT.js +0 -1
- package/.output/public/assets/arrow-right-CXp_K3xK.js +0 -1
- package/.output/public/assets/arrow-up-right-BFafIOrq.js +0 -1
- package/.output/public/assets/check-CqWNyG93.js +0 -1
- package/.output/public/assets/chevron-right-DNbYTBX1.js +0 -1
- package/.output/public/assets/dialog-BLj71-Nf.js +0 -1
- package/.output/public/assets/index-IK43LiLE.js +0 -10
- package/.output/public/assets/input-group-XKLcUGoa.js +0 -1
- package/.output/public/assets/insights-C94CdeAA.js +0 -1
- package/.output/public/assets/insights-DILMVpk8.js +0 -2
- package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +0 -2
- package/.output/public/assets/insights_.distribution-CyAu3RN3.js +0 -1
- package/.output/public/assets/installations-BA01mqJE.js +0 -1
- package/.output/public/assets/loader-circle-iMqC-8ZE.js +0 -1
- package/.output/public/assets/native-builds-C-Dayo63.js +0 -2
- package/.output/public/assets/native-builds-_3SRMVOS.js +0 -1
- package/.output/public/assets/native-builds_._buildId-BPJzn5LY.js +0 -2
- package/.output/public/assets/native-builds_._buildId-DJWMBKQQ.js +0 -1
- package/.output/public/assets/native-builds_.devices-BbE0s2il.js +0 -1
- package/.output/public/assets/native-builds_.devices-BiXjrMS-.js +0 -2
- package/.output/public/assets/package-BmfoZ5Zj.js +0 -1
- package/.output/public/assets/plus-Db0KxLZp.js +0 -1
- package/.output/public/assets/remote-config-Cxkr7_BP.js +0 -1
- package/.output/public/assets/remote-config-DAOyn5xL.js +0 -1
- package/.output/public/assets/remote-config-DXv25LX1.js +0 -6
- package/.output/public/assets/routes-CH42g1N9.js +0 -1
- package/.output/public/assets/routes-_QhVAS_l.js +0 -2
- package/.output/public/assets/search-dJG2BYmx.js +0 -1
- package/.output/public/assets/send-DuMOCzbD.js +0 -1
- package/.output/public/assets/smartphone-D1C6BRd_.js +0 -1
- package/.output/public/assets/styles-BYO5PJYg.css +0 -2
- package/.output/server/_tanstack-start-manifest_v-BoMD43wU.mjs +0 -225
- /package/.output/public/assets/{uuidv7-DAoOOpz9.js → uuidv7-DgXZ1zRR.js} +0 -0
package/.output/nitro.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";import{d as t}from"./uuidv7-DgXZ1zRR.js";var n=e(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),r=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),i=e=>typeof e==`string`&&e.length>0?e:void 0,a=e=>{let n=i(e);if(n!==void 0)try{return t(n),n}catch{return}},o=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),s=e=>{let t=i(e.before);return o({channel:a(e.channel),before:t,after:t===void 0?i(e.after):void 0})},c=e=>{let t=i(e.patchesBefore);return o({patchesBefore:t,patchesAfter:t===void 0?i(e.patchesAfter):void 0})},l=[`pending`,`approved`,`registered`],u=e=>typeof e.status==`string`&&l.includes(e.status)?{status:e.status}:{};export{n as a,r as i,c as n,s as r,u as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,vr as t}from"./sidebar-
|
|
1
|
+
import{Di as e,vr as t}from"./sidebar-UnsNYOry.js";var n=e();function r({bundleId:e,className:r}){return(0,n.jsx)(`span`,{translate:`no`,className:t(`break-all font-mono text-xs tabular-nums`,r),children:e})}export{r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,vr as t}from"./sidebar-
|
|
1
|
+
import{Di as e,vr as t}from"./sidebar-UnsNYOry.js";import{t as n}from"./badge-D4Tiwei-.js";var r=e(),i=new Set([`production`,`staging`,`dev`]);function a({channel:e,className:a}){let o=e.toLowerCase();return(0,r.jsx)(n,{variant:`outline`,translate:`no`,"data-channel":i.has(o)?o:void 0,className:t(`border-channel-other/20 bg-channel-other/10 text-channel-other`,`data-[channel=production]:border-channel-production/20 data-[channel=production]:bg-channel-production/10 data-[channel=production]:text-channel-production`,`data-[channel=staging]:border-channel-staging/20 data-[channel=staging]:bg-channel-staging/10 data-[channel=staging]:text-channel-staging`,`data-[channel=dev]:border-channel-dev/20 data-[channel=dev]:bg-channel-dev/10 data-[channel=dev]:text-channel-dev`,a),children:e})}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Cr as e,Sr as t,Vr as n,xr as r}from"./sidebar-
|
|
1
|
+
import{Cr as e,Sr as t,Vr as n,xr as r}from"./sidebar-UnsNYOry.js";import{s as i}from"./tabs-BBfg-c0h.js";var a=n(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]);function o(n){let{render:a,className:o,style:s,state:c=e,props:l=t,refs:u=t,metadata:d,stateAttributesMapping:f,tag:p=`div`,...m}=n,{compositeProps:h,compositeRef:g}=i({metadata:d});return r(p,n,{state:c,ref:[...u,g],props:[h,...l,m],stateAttributesMapping:f})}export{a as n,o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,_r as t,p as n}from"./sidebar-
|
|
1
|
+
import{Di as e,_r as t,p as n}from"./sidebar-UnsNYOry.js";import{a as r,c as i,n as a,o}from"./console-features-api-De6tXQnd.js";import{t as s}from"./arrow-up-right-BPRe5soE.js";import{t as c}from"./NotFoundPage-CijSy63W.js";import{i as l,n as u,o as d,r as f,t as p}from"./empty-DpSPWLc2.js";var m=e(),h=`https://hot-updater.dev/docs/guides/console-deployment`;function g({data:e}){let g=a(e),_=r().data?.remote===!0;if(g===void 0)return(0,m.jsx)(c,{});let{label:v,plugin:y}=o[g],b=(0,m.jsx)(`code`,{className:`font-mono`,children:`${y}()`});return(0,m.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,m.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 items-center gap-3 border-b bg-background px-3 py-3 sm:min-h-12 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,m.jsx)(n,{className:`-ml-1`}),(0,m.jsx)(`h1`,{className:`text-sm font-medium`,children:v})]}),(0,m.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,m.jsxs)(p,{children:[(0,m.jsx)(l,{children:i(g,{remote:_})===`remote`?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(d,{children:`Needs the server's database`}),(0,m.jsx)(f,{children:`This console reaches a self-hosted server through its admin API, which does not serve this page. Configure the console with the database the server uses.`})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(d,{children:[v,` not installed`]}),(0,m.jsxs)(f,{children:[`Add `,b,` to `,(0,m.jsx)(`code`,{className:`font-mono`,children:`plugins`}),` `,`where you create the server and in the console config.`]})]})}),(0,m.jsx)(u,{children:(0,m.jsxs)(`a`,{className:t({variant:`outline`}),href:h,rel:`noreferrer`,target:`_blank`,children:[`Console setup guide`,(0,m.jsx)(s,{"aria-hidden":`true`,"data-icon":`inline-end`})]})})]})})]})}export{g as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,Ri as t,Vi as n,Vr as r,_ as i,b as a,g as o,gr as s,v as c,x as l,y as u}from"./sidebar-yC7KdImc.js";import{f as d}from"./insights-api-B6Gj74n5.js";import{t as f}from"./check-CqWNyG93.js";import{a as p}from"./useCompositeListItem-lAmUsXcc.js";import{t as m}from"./copy-CH1__JAW.js";import{t as h}from"./download-B2GjTySo.js";import{s as g}from"./input-group-XKLcUGoa.js";import{t as _}from"./smartphone-D1C6BRd_.js";import{t as v}from"./badge-FZMD5vvS.js";import{n as y}from"./dist-DAM__Tdz.js";import{i as b,o as x,r as S,t as C}from"./empty--YaE5Z4p.js";import{t as w}from"./HashValueDisplay-D2f0HmyU.js";import{n as T,r as E}from"./InsightsPageHeader-Cj2ROSQO.js";var D=r(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),O=r(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),k=r(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),A=r(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),j=n(t(),1),M=e(),N={UPDATE_DOWNLOADED:{label:`Downloaded`,description:`Downloaded. It launches when the app restarts.`,variant:`default`,icon:h},UPDATE_APPLIED:{label:`Launched`,description:`The app restarted into the downloaded bundle.`,variant:`success`,icon:f},RECOVERED:{label:`Crashed`,description:`Crashed on the bundle and rolled back.`,variant:`warning`,icon:g},UPDATE_FAILED:{label:`Update failed`,description:`An update check, download, or install failed.`,variant:`destructive`,icon:k},UNCHANGED:{label:`Launch`,description:`The app launched; the report changed nothing.`,variant:`secondary`,icon:D}},P=e=>{let{kinds:t=[],previous:n}=e.change??{};return t.includes(`first_seen`)?{label:`First seen`,description:`The installation's first report to this server.`,variant:`secondary`,icon:A}:t.includes(`app_version`)||t.includes(`native_build`)?{label:`App updated`,description:n&&n.appVersion!==e.appVersion?`From app ${n.appVersion} to ${e.appVersion}.`:`A new build of the same app version.`,variant:`secondary`,icon:_}:t.includes(`bundle`)?{label:`Launched`,description:`Seen running this bundle; the report of the restart into it never arrived.`,variant:`success`,icon:f}:t.includes(`release`)?{label:`Release adopted`,description:`The bundle it runs now ships under another release.`,variant:`secondary`,icon:O}:t.includes(`channel`)?{label:`Channel changed`,description:n?`From ${n.channel} to ${e.channel}.`:`It reports on another channel.`,variant:`secondary`,icon:O}:N.UNCHANGED},F=e=>e.type===`UNCHANGED`&&e.change?P({change:e.change,appVersion:e.appVersion??``,channel:e.channel??``}):N[e.type];function I(){let[e,t]=(0,j.useState)(`UTC`);return(0,j.useEffect)(()=>{t(Intl.DateTimeFormat().resolvedOptions().timeZone)},[]),new Intl.DateTimeFormat(`en`,{timeZone:e,timeZoneName:`shortOffset`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`})}function L(e,t){let n=Object.fromEntries(t.formatToParts(new Date(e)).map(({type:e,value:t})=>[e,t])),r=n.timeZoneName===`GMT`?`GMT+0`:n.timeZoneName;return`${n.year}/${n.month}/${n.day} ${n.hour}:${n.minute}:${n.second} ${r}`}function R({value:e,formatter:t,touch:n=!1}){let r=new Date(e),i=L(e,t);return(0,M.jsxs)(`details`,{className:`group/time`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring/30 [&::-webkit-details-marker]:hidden ${n?`flex min-h-11 items-center`:``}`,children:(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,M.jsx)(`time`,{dateTime:r.toISOString(),className:`whitespace-nowrap`,children:i}),(0,M.jsx)(p,{"aria-hidden":`true`,className:`size-3 text-muted-foreground group-open/time:rotate-180`})]})}),(0,M.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:r.toISOString().replace(`T`,` `).replace(`Z`,` UTC`)})]})}var z={patch:`A patch delivered it.`,manifest:`Only the changed files were downloaded.`,archive:`The full archive was downloaded.`},B=e=>{if(e.late)return`Counted nothing: the installation had already downloaded or run this bundle.`;if(e.impliedDownload)return`Its download report never arrived; the download counted with it.`;if(e.type===`UPDATE_FAILED`&&e.failure)return d(e.failure);if(e.type===`UPDATE_DOWNLOADED`&&e.delivery){let t=z[e.delivery]??null;return e.patchFallback?`The patch failed. ${t??``}`.trim():t}return null};function V({response:e}){let t=async()=>{try{await navigator.clipboard.writeText(e.body),y.success(`Response body copied`)}catch{y.error(`Could not copy the response body`)}};return(0,M.jsxs)(`section`,{"aria-label":`Response body`,className:`flex min-w-0 flex-col gap-3`,children:[(0,M.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response body`}),(0,M.jsxs)(s,{variant:`outline`,className:`min-h-11`,disabled:e.body===null||e.body===``,onClick:()=>void t(),children:[(0,M.jsx)(m,{"aria-hidden":`true`,"data-icon":`inline-start`}),` Copy body`]})]}),e.bodyTruncated?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Truncated to the 4 KiB reporting limit. Copy includes only the stored text.`}):null,e.body?(0,M.jsx)(`pre`,{className:`rounded-md border bg-muted/30 p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:e.body}):(0,M.jsx)(C,{children:(0,M.jsxs)(b,{children:[(0,M.jsx)(x,{children:e.body===null?`Response body unavailable`:`Empty response body`}),(0,M.jsx)(S,{children:e.body===null?`The client received the HTTP status but could not read the body.`:e.status===304?`The server returned no body. The client can reuse its cached catalog.`:`The server returned no text in this response.`})]})})]})}function H({event:e}){let t=e.httpResponse,n=I(),r=t.status===304?`Not modified`:t.status>=500?`Server error`:t.status>=400?`Request error`:t.status>=300?`Redirect`:`Success`,d=t.resource===`catalog`?`Catalog`:`Artifact`,f=[[`App`,e.platform&&`${e.platform===`ios`?`iOS`:`Android`} ${e.appVersion}`],[`Channel`,e.channel],[`SDK`,e.sdkVersion],[`Installation`,e.installId]].filter(([,e])=>e!=null);return(0,M.jsxs)(o,{children:[(0,M.jsxs)(l,{"aria-label":`View ${d.toLowerCase()} response: HTTP ${t.status}`,render:(0,M.jsx)(s,{variant:`ghost`,className:`-ml-2 h-auto min-h-11 justify-start`}),children:[(0,M.jsxs)(v,{variant:t.status>=400?`destructive`:`secondary`,children:[`HTTP `,t.status]}),(0,M.jsxs)(`span`,{children:[d,` response`]})]}),(0,M.jsxs)(i,{className:`data-[side=right]:w-full data-[side=right]:sm:max-w-2xl`,children:[(0,M.jsxs)(u,{className:`border-b pr-14`,children:[(0,M.jsx)(a,{children:`HTTP response`}),(0,M.jsxs)(c,{children:[d,` · HTTP `,t.status,` · `,r,`. Most recent response available when this report was created.`]})]}),(0,M.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-6`,children:[(0,M.jsxs)(`section`,{"aria-label":`Request`,className:`flex min-w-0 flex-col gap-2`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Request`}),(0,M.jsxs)(`p`,{className:`font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:[`GET `,t.path]}),t.receivedAtMs==null?null:(0,M.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[`Response received`,` `,(0,M.jsx)(R,{value:t.receivedAtMs,formatter:n})]})]}),(0,M.jsx)(V,{response:t}),f.length?(0,M.jsxs)(`section`,{"aria-label":`Response context`,className:`flex flex-col gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response context`}),(0,M.jsx)(`dl`,{className:`grid grid-cols-2 gap-x-6 gap-y-4`,children:f.map(([e,t])=>(0,M.jsxs)(`div`,{className:`min-w-0`,children:[(0,M.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,M.jsx)(`dd`,{className:`mt-1 text-sm wrap-anywhere`,children:t})]},e))})]}):null]})]})]})}function U({event:e}){let t=F(e),n=t.icon,r=B(e);return(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2`,children:[(0,M.jsxs)(v,{variant:t.variant,className:`gap-1 whitespace-nowrap [&_svg]:size-3`,children:[(0,M.jsx)(n,{"aria-hidden":`true`}),t.label]}),(0,M.jsx)(`p`,{className:`max-w-56 whitespace-pre-wrap wrap-anywhere text-xs text-muted-foreground`,children:e.type===`UPDATE_FAILED`&&r?r:t.description}),e.httpResponse?(0,M.jsx)(H,{event:e}):null,e.type===`UPDATE_FAILED`&&e.failure?.errorStack?(0,M.jsxs)(`details`,{className:`w-full max-w-56 text-xs`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:`Stack trace`}),(0,M.jsx)(`pre`,{className:`mt-2 max-h-64 overflow-auto whitespace-pre-wrap wrap-anywhere font-mono`,children:e.failure.errorStack})]}):null,e.type!==`UPDATE_FAILED`&&r?(0,M.jsx)(`p`,{className:`max-w-56 whitespace-normal text-xs text-muted-foreground`,children:r}):null]})}function W({event:e,touch:t=!1}){let n=e.type===`UPDATE_DOWNLOADED`,r=e.type===`UPDATE_FAILED`,i=!r||e.failure?.stage!==`check`,a=e.type===`UNCHANGED`&&e.change?.kinds.includes(`bundle`)===!0&&e.change.previous!==void 0,o=a?e.change.previous.bundleId:e.fromBundleId,s=n||r||a||e.type===`UPDATE_APPLIED`||e.type===`RECOVERED`;return(0,M.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-2 gap-y-2`,children:[o&&s?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n||r?`Running`:`From`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(w,{value:o,buttonClassName:t?`min-h-11 px-3`:void 0}),E(o,a?e.change.previous.minBundleId:e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null,i?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n?`Pending`:r?`Target`:s?`To`:`Current`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(w,{value:e.toBundleId,buttonClassName:t?`min-h-11 px-3`:void 0}),E(e.toBundleId,e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null]})}export{H as a,V as i,R as n,I as o,U as r,W as t};
|
|
1
|
+
import{Di as e,Ri as t,Vi as n,Vr as r,_ as i,b as a,g as o,gr as s,v as c,x as l,y as u}from"./sidebar-UnsNYOry.js";import{f as d}from"./insights-api-CXXCRZhF.js";import{t as f}from"./check-Dz_5aNwx.js";import{a as p}from"./useCompositeListItem-B9ONn9qn.js";import{t as m}from"./copy-BxI24-g-.js";import{t as h}from"./download-ekENI2Sw.js";import{s as g}from"./input-group-DNfVeeYZ.js";import{t as _}from"./smartphone-lSZWrqxx.js";import{t as v}from"./badge-D4Tiwei-.js";import{n as y}from"./dist-BEIz5ojx.js";import{i as b,o as x,r as S,t as C}from"./empty-DpSPWLc2.js";import{t as w}from"./HashValueDisplay-DKziWjEg.js";import{n as T,r as E}from"./InsightsPageHeader-BATHTZWn.js";var D=r(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),O=r(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),k=r(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),A=r(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),j=n(t(),1),M=e(),N={UPDATE_DOWNLOADED:{label:`Downloaded`,description:`Downloaded. It launches when the app restarts.`,variant:`default`,icon:h},UPDATE_APPLIED:{label:`Launched`,description:`The app restarted into the downloaded bundle.`,variant:`success`,icon:f},RECOVERED:{label:`Crashed`,description:`Crashed on the bundle and rolled back.`,variant:`warning`,icon:g},UPDATE_FAILED:{label:`Update failed`,description:`An update check, download, or install failed.`,variant:`destructive`,icon:k},UNCHANGED:{label:`Launch`,description:`The app launched; the report changed nothing.`,variant:`secondary`,icon:D}},P=e=>{let{kinds:t=[],previous:n}=e.change??{};return t.includes(`first_seen`)?{label:`First seen`,description:`The installation's first report to this server.`,variant:`secondary`,icon:A}:t.includes(`app_version`)||t.includes(`native_build`)?{label:`App updated`,description:n&&n.appVersion!==e.appVersion?`From app ${n.appVersion} to ${e.appVersion}.`:`A new build of the same app version.`,variant:`secondary`,icon:_}:t.includes(`bundle`)?{label:`Launched`,description:`Seen running this bundle; the report of the restart into it never arrived.`,variant:`success`,icon:f}:t.includes(`release`)?{label:`Release adopted`,description:`The bundle it runs now ships under another release.`,variant:`secondary`,icon:O}:t.includes(`channel`)?{label:`Channel changed`,description:n?`From ${n.channel} to ${e.channel}.`:`It reports on another channel.`,variant:`secondary`,icon:O}:N.UNCHANGED},F=e=>e.type===`UNCHANGED`&&e.change?P({change:e.change,appVersion:e.appVersion??``,channel:e.channel??``}):N[e.type];function I(){let[e,t]=(0,j.useState)(`UTC`);return(0,j.useEffect)(()=>{t(Intl.DateTimeFormat().resolvedOptions().timeZone)},[]),new Intl.DateTimeFormat(`en`,{timeZone:e,timeZoneName:`shortOffset`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`})}function L(e,t){let n=Object.fromEntries(t.formatToParts(new Date(e)).map(({type:e,value:t})=>[e,t])),r=n.timeZoneName===`GMT`?`GMT+0`:n.timeZoneName;return`${n.year}/${n.month}/${n.day} ${n.hour}:${n.minute}:${n.second} ${r}`}function R({value:e,formatter:t,touch:n=!1}){let r=new Date(e),i=L(e,t);return(0,M.jsxs)(`details`,{className:`group/time`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring/30 [&::-webkit-details-marker]:hidden ${n?`flex min-h-11 items-center`:``}`,children:(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,M.jsx)(`time`,{dateTime:r.toISOString(),className:`whitespace-nowrap`,children:i}),(0,M.jsx)(p,{"aria-hidden":`true`,className:`size-3 text-muted-foreground group-open/time:rotate-180`})]})}),(0,M.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:r.toISOString().replace(`T`,` `).replace(`Z`,` UTC`)})]})}var z={patch:`A patch delivered it.`,manifest:`Only the changed files were downloaded.`,archive:`The full archive was downloaded.`},B=e=>{if(e.late)return`Counted nothing: the installation had already downloaded or run this bundle.`;if(e.impliedDownload)return`Its download report never arrived; the download counted with it.`;if(e.type===`UPDATE_FAILED`&&e.failure)return d(e.failure);if(e.type===`UPDATE_DOWNLOADED`&&e.delivery){let t=z[e.delivery]??null;return e.patchFallback?`The patch failed. ${t??``}`.trim():t}return null};function V({response:e}){let t=async()=>{try{await navigator.clipboard.writeText(e.body),y.success(`Response body copied`)}catch{y.error(`Could not copy the response body`)}};return(0,M.jsxs)(`section`,{"aria-label":`Response body`,className:`flex min-w-0 flex-col gap-3`,children:[(0,M.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response body`}),(0,M.jsxs)(s,{variant:`outline`,className:`min-h-11`,disabled:e.body===null||e.body===``,onClick:()=>void t(),children:[(0,M.jsx)(m,{"aria-hidden":`true`,"data-icon":`inline-start`}),` Copy body`]})]}),e.bodyTruncated?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Truncated to the 4 KiB reporting limit. Copy includes only the stored text.`}):null,e.body?(0,M.jsx)(`pre`,{className:`rounded-md border bg-muted/30 p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:e.body}):(0,M.jsx)(C,{children:(0,M.jsxs)(b,{children:[(0,M.jsx)(x,{children:e.body===null?`Response body unavailable`:`Empty response body`}),(0,M.jsx)(S,{children:e.body===null?`The client received the HTTP status but could not read the body.`:e.status===304?`The server returned no body. The client can reuse its cached catalog.`:`The server returned no text in this response.`})]})})]})}function H({event:e}){let t=e.httpResponse,n=I(),r=t.status===304?`Not modified`:t.status>=500?`Server error`:t.status>=400?`Request error`:t.status>=300?`Redirect`:`Success`,d=t.resource===`catalog`?`Catalog`:`Artifact`,f=[[`App`,e.platform&&`${e.platform===`ios`?`iOS`:`Android`} ${e.appVersion}`],[`Channel`,e.channel],[`SDK`,e.sdkVersion],[`Installation`,e.installId]].filter(([,e])=>e!=null);return(0,M.jsxs)(o,{children:[(0,M.jsxs)(l,{"aria-label":`View ${d.toLowerCase()} response: HTTP ${t.status}`,render:(0,M.jsx)(s,{variant:`ghost`,className:`-ml-2 h-auto min-h-11 justify-start`}),children:[(0,M.jsxs)(v,{variant:t.status>=400?`destructive`:`secondary`,children:[`HTTP `,t.status]}),(0,M.jsxs)(`span`,{children:[d,` response`]})]}),(0,M.jsxs)(i,{className:`data-[side=right]:w-full data-[side=right]:sm:max-w-2xl`,children:[(0,M.jsxs)(u,{className:`border-b pr-14`,children:[(0,M.jsx)(a,{children:`HTTP response`}),(0,M.jsxs)(c,{children:[d,` · HTTP `,t.status,` · `,r,`. Most recent response available when this report was created.`]})]}),(0,M.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-6`,children:[(0,M.jsxs)(`section`,{"aria-label":`Request`,className:`flex min-w-0 flex-col gap-2`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Request`}),(0,M.jsxs)(`p`,{className:`font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:[`GET `,t.path]}),t.receivedAtMs==null?null:(0,M.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[`Response received`,` `,(0,M.jsx)(R,{value:t.receivedAtMs,formatter:n})]})]}),(0,M.jsx)(V,{response:t}),f.length?(0,M.jsxs)(`section`,{"aria-label":`Response context`,className:`flex flex-col gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response context`}),(0,M.jsx)(`dl`,{className:`grid grid-cols-2 gap-x-6 gap-y-4`,children:f.map(([e,t])=>(0,M.jsxs)(`div`,{className:`min-w-0`,children:[(0,M.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,M.jsx)(`dd`,{className:`mt-1 text-sm wrap-anywhere`,children:t})]},e))})]}):null]})]})]})}function U({event:e}){let t=F(e),n=t.icon,r=B(e);return(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2`,children:[(0,M.jsxs)(v,{variant:t.variant,className:`gap-1 whitespace-nowrap [&_svg]:size-3`,children:[(0,M.jsx)(n,{"aria-hidden":`true`}),t.label]}),(0,M.jsx)(`p`,{className:`max-w-56 whitespace-pre-wrap wrap-anywhere text-xs text-muted-foreground`,children:e.type===`UPDATE_FAILED`&&r?r:t.description}),e.httpResponse?(0,M.jsx)(H,{event:e}):null,e.type===`UPDATE_FAILED`&&e.failure?.errorStack?(0,M.jsxs)(`details`,{className:`w-full max-w-56 text-xs`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:`Stack trace`}),(0,M.jsx)(`pre`,{className:`mt-2 max-h-64 overflow-auto whitespace-pre-wrap wrap-anywhere font-mono`,children:e.failure.errorStack})]}):null,e.type!==`UPDATE_FAILED`&&r?(0,M.jsx)(`p`,{className:`max-w-56 whitespace-normal text-xs text-muted-foreground`,children:r}):null]})}function W({event:e,touch:t=!1}){let n=e.type===`UPDATE_DOWNLOADED`,r=e.type===`UPDATE_FAILED`,i=!r||e.failure?.stage!==`check`,a=e.type===`UNCHANGED`&&e.change?.kinds.includes(`bundle`)===!0&&e.change.previous!==void 0,o=a?e.change.previous.bundleId:e.fromBundleId,s=n||r||a||e.type===`UPDATE_APPLIED`||e.type===`RECOVERED`;return(0,M.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-2 gap-y-2`,children:[o&&s?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n||r?`Running`:`From`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(w,{value:o,buttonClassName:t?`min-h-11 px-3`:void 0}),E(o,a?e.change.previous.minBundleId:e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null,i?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n?`Pending`:r?`Target`:s?`To`:`Current`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(w,{value:e.toBundleId,buttonClassName:t?`min-h-11 px-3`:void 0}),E(e.toBundleId,e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null]})}export{H as a,V as i,R as n,I as o,U as r,W as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,at as t,nt as n,rt as r,vr as i}from"./sidebar-
|
|
1
|
+
import{Di as e,at as t,nt as n,rt as r,vr as i}from"./sidebar-UnsNYOry.js";import{n as a}from"./dist-BEIz5ojx.js";var o=e(),s=(e,t=12)=>e.length>t?`${e.slice(0,Math.max(1,t-4))}…${e.slice(-4)}`:e;function c({value:e,display:c=e,maxLength:l=12,className:u,buttonClassName:d}){let f=c!==e||c.length>l,p=s(c,l),m=async()=>{try{await navigator.clipboard.writeText(e),a.success(`Copied to clipboard`,{description:e})}catch{a.error(`Failed to copy value`)}},h=e=>{e.preventDefault(),e.stopPropagation(),m()},g=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),m())},_=(0,o.jsx)(`span`,{translate:`no`,className:i(`font-mono text-xs tabular-nums whitespace-nowrap`,u),children:p});return(0,o.jsxs)(n,{children:[(0,o.jsx)(t,{render:(0,o.jsx)(`button`,{type:`button`,"aria-label":`Copy full value: ${e}`,translate:`no`,className:i(`ring-ring/30 bg-muted/40 border-border/70 relative inline-flex min-w-0 after:absolute after:inset-x-0 after:-inset-y-3 sm:after:hidden max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]`,`hover:bg-muted/70 active:scale-[0.98] active:bg-muted/85 focus-visible:ring-[2px]`,`touch-manipulation select-none motion-reduce:transition-none motion-reduce:active:scale-100`,!f&&`cursor-copy`,d),onClick:h,onKeyDown:g}),children:_}),(0,o.jsx)(r,{hidden:!f,children:(0,o.jsx)(`p`,{translate:`no`,className:`break-all font-mono text-xs tabular-nums`,children:e})})]})}export{s as n,c as t};
|
package/.output/public/assets/{InsightsPageHeader-Cj2ROSQO.js → InsightsPageHeader-BATHTZWn.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,_r as t,p as n,vr as r}from"./sidebar-
|
|
1
|
+
import{Di as e,_r as t,p as n,vr as r}from"./sidebar-UnsNYOry.js";import{t as i}from"./link-D95E0fwF.js";import{i as a,s as o}from"./console-features-api-De6tXQnd.js";import{b as s,x as c}from"./insights-api-CXXCRZhF.js";import{t as l}from"./list-Dq40Mmoj.js";import{a as u,i as d,n as f,o as p,t as m}from"./badge-D4Tiwei-.js";import{i as h,r as g,t as _}from"./tabs-BBfg-c0h.js";var v=e();function y({error:e,fallbackTitle:t}){return o(e)?(0,v.jsxs)(f,{children:[(0,v.jsx)(s,{"aria-hidden":`true`}),(0,v.jsx)(u,{children:`Insights not installed`}),(0,v.jsx)(d,{children:e.message})]}):(0,v.jsxs)(f,{variant:`destructive`,children:[(0,v.jsx)(p,{"aria-hidden":`true`}),(0,v.jsx)(u,{children:t}),(0,v.jsx)(d,{children:`Refresh to try again. If this keeps happening, check your Insights provider connection.`})]})}var b={"24h":{label:`DAU`,period:`24 hours`,interval:`hour`},"7d":{label:`WAU`,period:`7 days`,interval:`6 hours`},"30d":{label:`MAU`,period:`30 days`,interval:`day`},"12m":{label:`YAU`,period:`12 months`,interval:`week`}};function x({label:e,onPeriodChange:t,period:n,periods:r}){return(0,v.jsx)(_,{value:n,onValueChange:e=>{let n=r.find(t=>t.value===e);n&&t(n.value)},children:(0,v.jsx)(g,{"aria-label":e,className:`min-h-11 sm:min-h-9`,children:r.map(({value:e,name:t})=>(0,v.jsx)(h,{value:e,"aria-label":t,className:`min-w-12 px-3`,children:e},e))})})}var S=[`24h`,`7d`,`30d`].map(e=>({value:e,name:b[e].period})),C=Object.keys(b).map(e=>({value:e,name:b[e].period}));function w({window:e,onWindowChange:t}){return(0,v.jsx)(x,{label:`Reporting period`,onPeriodChange:t,period:e,periods:S})}function T({window:e,onWindowChange:t,twelveMonths:n=!0}){return(0,v.jsx)(x,{label:`Reporting period`,onPeriodChange:t,period:e,periods:C.filter(({value:e})=>n||e!==`12m`)})}var E=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-7000-8000-(?:000000000000|0[12][0-9a-f]{10})|00000000-0000-0000-0000-000000000000)$/iu,D=(e,t)=>e!=null&&(e===t||E.test(e));function O(){return(0,v.jsx)(m,{className:`shrink-0 font-sans font-normal`,title:`The bundle the native build shipped`,variant:`secondary`,children:`Built-in bundle`})}function k({view:e,overviewSearch:o}){let s=a(`insightsAnalytics`);return(0,v.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-3 border-b bg-background px-3 py-3 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,v.jsx)(n,{className:`-ml-1 size-11 lg:size-7`}),(0,v.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(c,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,v.jsx)(`h1`,{className:`text-sm font-medium`,children:`Insights`})]}),(0,v.jsxs)(`nav`,{"aria-label":`Insights views`,className:`ml-auto flex gap-2`,children:[s?(0,v.jsx)(i,{"aria-current":e===`overview`?`page`:void 0,className:r(t({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:e===`overview`?`secondary`:`ghost`})),search:o,to:`/insights`,children:`Overview`}):null,(0,v.jsxs)(i,{"aria-current":e===`events`?`page`:void 0,className:r(t({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:e===`events`?`secondary`:`ghost`})),to:`/installations`,children:[(0,v.jsx)(l,{"aria-hidden":`true`,"data-icon":`inline-start`}),`All events`]})]})]})}export{x as a,y as c,w as i,O as n,T as o,D as r,b as s,k as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,Di as t,Hr as n,Oi as r,Q as i,Ri as a,Si as o,Vi as s,_r as c,di as l,gr as u,wi as d,zr as f}from"./sidebar-UnsNYOry.js";import{t as p}from"./link-D95E0fwF.js";import{t as m}from"./useMutation-BWX97JX2.js";import{i as ee}from"./-native-builds-search-BvCftqF2.js";import{t as te}from"./loader-circle-C26cZDSM.js";import{C as h,T as g,a as _,c as v,d as y,f as b,i as x,l as S,o as C,r as ne,y as re}from"./native-builds-BOSmoLed.js";import{t as ie}from"./refresh-cw-CpCxPYma.js";import{t as ae}from"./smartphone-lSZWrqxx.js";import{a as w,i as T,n as E,o as D}from"./badge-D4Tiwei-.js";import{n as oe}from"./relativeTime-D_aYJRc7.js";import{a as se,n as ce,r as le,t as ue}from"./field-PkdRPD3A.js";import{m as de}from"./api-B1z_XXrQ.js";var O=s(a(),1),k=s(oe(),1),fe=d({method:`GET`}).middleware([f]).handler(r(`3a62744a539db57f5a29f39cec7fb03fd2817703b40d98e6da69e2f5e7ae6f3d`)),pe=d({method:`POST`}).middleware([f]).handler(r(`7138a71df2ede8dd2c3db732d8d0ae10c56b85a8177dcdacf4e747b8087177c6`)),me=d({method:`POST`}).middleware([f]).handler(r(`4b173c2b2f5ea074a1f10862282308f11f5a043c044d64b6f63e6a29d571ec64`)),he=d({method:`POST`}).middleware([f]).handler(r(`7908c24ccc2674ce07a553a645b8f4790889975a80f424a05d71a9fb8ab49787`)),ge=d({method:`POST`}).middleware([f]).handler(r(`4c92dfeae76a6fc898d6f38941eeedaec1f3d118f51a6f31ebf0bb1cea3fcea4`)),_e=d({method:`POST`}).middleware([f]).handler(r(`8e37ec67413ceba554adb2d4b15e53682595a089d4b431ba7965d4347fb500fc`)),ve=d({method:`GET`}).middleware([f]).handler(r(`a11cb4014e6b23528f76382c43684798b0e84a6936aaba02c918e8f4e216e282`)),A={all:[`ios-devices`],list:e=>[`ios-devices`,e??`all`],device:e=>[`ios-devices`,`device`,e],kept:e=>[`ios-devices`,`kept`,e??``],ipa:e=>[`native-build-ipa-devices`,e]},j=600*1e3;function ye(e){return n({queryKey:A.list(e),queryFn:()=>fe({data:e===void 0?{}:{status:e}}),placeholderData:l})}function be(e){return n({queryKey:A.device(e??``),queryFn:()=>pe({data:{udid:e}}),enabled:e!==null})}function M(e,t=!0){return n({queryKey:[`ios-device-profile-link`,e],queryFn:()=>me({data:e}),enabled:t,staleTime:j,refetchInterval:j})}function N(e){return n({queryKey:A.ipa(e),queryFn:()=>ve({data:{id:e}})})}var P=e=>{let t=o();return m({mutationFn:e,onSettled:async()=>{await Promise.all([t.invalidateQueries({queryKey:A.all}),t.invalidateQueries({queryKey:[`native-build-install-eligibility`]})])}})},xe=()=>P(e=>he({data:e})),Se=()=>P(e=>ge({data:e})),Ce=()=>P(e=>_e({data:e})),F=(e,t)=>`${e}/_hot-updater/devices/${t}`,I=async(e,t={})=>{let{json:n,...r}=t,i=await fetch(e,{credentials:`same-origin`,...r,...n===void 0?{}:{headers:{"content-type":`application/json`},body:JSON.stringify(n)}}),a=await i.json().catch(()=>null);if(!i.ok||a===null)throw Error(a?.error??`Request failed (${i.status}).`);return a},L=`hot-updater-ios-device-kept`,R=`hot-updater-ios-device-kept`,z=new Map,B=(e,t)=>{let n=z.get(t);return n===void 0&&(n=I(F(e,`receipt`),{method:`POST`,json:{receipt:t}}).then(e=>{g(t),window.dispatchEvent(new Event(L));try{window.localStorage.setItem(R,String(Date.now()))}catch{}return e},e=>{throw z.delete(t),e}),z.set(t,n)),n};function V(e,t,r){let i=o();return(0,O.useEffect)(()=>{let e=()=>void i.invalidateQueries({queryKey:A.kept(null),exact:!0}),t=t=>{t.key===R&&e()};return window.addEventListener(L,e),window.addEventListener(`storage`,t),()=>{window.removeEventListener(L,e),window.removeEventListener(`storage`,t)}},[i]),n({queryKey:A.kept(t),queryFn:async()=>{let n=null;t!==null&&await B(e,t).catch(e=>{n=e});let r=await I(F(e,`receipt`));if(n!==null&&r.udid===null)throw n;return r},enabled:r,retry:!1,staleTime:1/0})}var we=async e=>{await I(F(e,`receipt`),{method:`DELETE`}).catch(()=>void 0)},H=e=>P(t=>I(F(e,`request`),{method:`POST`,json:t.receipt===null?{name:t.name}:{name:t.name,receipt:t.receipt}})),U=(e,t)=>e!=null&&t!==null&&e.toLowerCase()===t.toLowerCase(),W=t(),Te=`With the same bundle ID, this install replaces the App Store's copy of the app on this iPhone.`,G=`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,K=e=>/iPhone|iPod|iPad/u.test(e.userAgent)||/Macintosh/u.test(e.userAgent)&&e.maxTouchPoints>1,q=()=>{if(typeof window>`u`)return{udid:null,receipt:null,requested:!1};let e=new URLSearchParams(window.location.hash.slice(1)),t=e.get(`udid`),n=t!==null&&x.test(t)?t:null;return{udid:n,receipt:n===null?null:e.get(`r`),requested:n!==null&&e.get(`requested`)===`1`}},Ee=e=>{try{return window.localStorage.getItem(e)}catch{return null}},J=(e,t)=>{try{window.localStorage.setItem(e,t)}catch{}},Y=`hot-updater-ios-device-adopted`,X=(e,t)=>{let n=e?.ios===!0&&e.udid===null&&t!=null&&x.test(t)?t:null;(0,O.useEffect)(()=>{n!==null&&(J(_,n),window.dispatchEvent(new Event(Y)))},[n])},De=()=>{let[e,t]=(0,O.useState)(null),[n]=(0,O.useState)(q);return(0,O.useEffect)(()=>{let e=e=>e!=null&&x.test(e)?e:null,r=n,i=0,a=e=>{let t=e.receipt!==null||e.requested;e.udid!==null&&t&&(i+=1,J(_,e.udid),e.receipt!==null&&(y(e.udid,e.receipt),B(S(window.location),e.receipt).catch(()=>void 0))),e.udid!==null&&window.location.hash!==``&&window.history.replaceState(window.history.state,``,`${window.location.pathname}${window.location.search}`)};a(n);try{window.localStorage.removeItem(ne)}catch{}let o=()=>{let n=e(Ee(`hot-updater-ios-udid`))??r.udid,a=(r.udid===n?r.receipt:null)??h(n),o=r.requested,s=i;t(e=>e!==null&&e.udid===n&&e.receipt===a&&e.requested===o&&e.answers===s?e:{ios:K(navigator),udid:n,receipt:a,requested:o,answers:s})};o();let s=e=>{(e.key===null||e.key===`hot-updater-ios-udid`)&&o()},c=()=>{let e=q();e.udid!==null&&(r=e,a(e)),o()};return window.addEventListener(`storage`,s),window.addEventListener(Y,o),window.addEventListener(`hashchange`,c),window.addEventListener(`pageshow`,c),document.addEventListener(`visibilitychange`,c),()=>{window.removeEventListener(`storage`,s),window.removeEventListener(Y,o),window.removeEventListener(`hashchange`,c),window.removeEventListener(`pageshow`,c),document.removeEventListener(`visibilitychange`,c)}},[n]),e},Oe=300*1e3,Z=(e,t)=>{let[,n]=(0,O.useReducer)(e=>e+1,0),r=e+C-Oe;return(0,O.useEffect)(()=>{if(!t)return;let e=setTimeout(n,Math.max(0,r-Date.now()));return document.addEventListener(`visibilitychange`,n),window.addEventListener(`pageshow`,n),()=>{clearTimeout(e),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`pageshow`,n)}},[r,t]),t&&Date.now()>=r};function ke({fetching:e,onRenew:t}){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`This install link has expired.`,e?` Getting a new one.`:``]}),e?null:(0,W.jsx)(u,{className:G,onClick:t,variant:`outline`,children:`Get a new link`})]})}function Ae({build:e,token:t}){return(0,W.jsx)(`a`,{className:c({className:G}),href:re(window.location,e.id,t),children:`Install`})}function je(){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`On iOS 16 or later, the app opens only with Developer Mode on: Settings, Privacy & Security, Developer Mode.`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Te})]})}function Q({build:t,again:n=!1}){let r=M({mode:`identify`,buildId:t.id});return r.data?.status===`no-secret`?(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,r.data.secretName,` on the Console to check iPhones from this page.`]}):r.data?.status===`issued`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`a`,{className:c({className:G,variant:n?`secondary`:`default`}),href:b(v(window.location,t.id),r.data.token),children:[(0,W.jsx)(ae,{"data-icon":`inline-start`}),n?`Check this iPhone again`:`Check this iPhone`]}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Allow the download, then install it in Settings, where iOS calls it not signed. Nothing stays installed.`})]}):r.isError?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(E,{variant:`destructive`,children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`The check couldn't start`}),(0,W.jsx)(T,{children:`Check your connection and try again.`})]}),(0,W.jsxs)(u,{className:G,disabled:r.isFetching,onClick:()=>void r.refetch(),variant:`outline`,children:[(0,W.jsx)(ie,{"data-icon":`inline-start`}),`Reload`]})]}):(0,W.jsx)(e,{"aria-label":`Preparing the check`,className:`h-11 w-full`})}var Me=e=>(0,k.default)(e).format(`MMM D`);function $({device:e,canApprove:t,onDevicesPage:n=!1}){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsxs)(E,{children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`Apple didn't register this iPhone`}),(0,W.jsx)(T,{children:e.apple_error})]}),t?n?null:(0,W.jsx)(p,{className:c({className:G,variant:`outline`}),to:`/native-builds/devices`,children:`iOS devices`}):(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.status===`approved`?`Ask a maintainer to free a device slot.`:`Ask a maintainer to check it on the iOS devices page.`})]})}function Ne({build:t,device:n,registry:r,newerBuild:a,canApprove:o,registryReadAt:s}){let l=v(window.location,t.id),d=H(l),f=V(l,n.receipt,n.ios&&n.udid!==null&&r===null),m=n.receipt!==null||U(f.data?.udid,n.udid),[h,g]=(0,O.useState)(``),[_,y]=(0,O.useState)(null),b=_!==null&&s<=_.readBefore,x=b?_.device:r,S=(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`Not in this build`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA was signed without this iPhone, and iOS won't install it here.`})]});if(x!==null){let e=b?null:a;return x.apple_error!==null&&e===null?(0,W.jsx)($,{canApprove:o,device:x}):(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[S,(0,W.jsx)(`p`,{className:`text-sm`,role:`status`,children:x.status===`pending`?`${x.name} was requested on ${Me(x.created_at_ms)}. A maintainer approves it next.`:e===null?`${x.name} is ${x.status}. It joins the next ad hoc build.`:`A newer build has ${x.name}.`}),e===null?null:(0,W.jsx)(p,{className:c({className:G}),params:{buildId:e},to:`/native-builds/$buildId`,children:`Open the newer build`})]})}if(!m&&f.isPending&&n.udid!==null)return(0,W.jsx)(e,{"aria-label":`Reading this iPhone`,className:`h-11 w-full`});if(!m)return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[S,(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Check this iPhone once more to request it for the next ad hoc build.`}),(0,W.jsx)(Q,{build:t,again:!0})]});let C=h.trim();return(0,W.jsxs)(`form`,{className:`flex min-w-0 flex-col gap-3`,onSubmit:e=>{if(e.preventDefault(),C===``)return;let t=s;d.mutate({receipt:n.receipt,name:C},{onSuccess:({device:e})=>y({device:e,readBefore:t})})},children:[S,(0,W.jsxs)(ue,{"data-invalid":d.isError||void 0,children:[(0,W.jsx)(se,{htmlFor:`ios-device-name`,children:`This iPhone's name`}),(0,W.jsx)(i,{autoComplete:`off`,className:`h-11 sm:h-8`,id:`ios-device-name`,maxLength:100,onChange:e=>g(e.target.value),placeholder:`Kim's iPhone`,value:h}),(0,W.jsx)(ce,{children:`A maintainer approves it, and it joins the next ad hoc build.`}),(0,W.jsx)(le,{children:d.isError?`The request didn't go through. Check this iPhone again, then try once more.`:null})]}),(0,W.jsxs)(u,{className:G,disabled:C===``||d.isPending,type:`submit`,children:[d.isPending?(0,W.jsx)(te,{className:`animate-spin motion-reduce:animate-none`,"data-icon":`inline-start`}):(0,W.jsx)(ee,{"data-icon":`inline-start`}),`Request access`]}),d.isError?(0,W.jsx)(Q,{again:!0,build:t}):null]})}function Pe({build:t,device:n}){X(n,V(v(window.location,t.id),n.receipt,n.ios&&n.udid===null).data?.udid);let{udid:r}=n,i=de(t.id,r),{refetch:a}=i,o=Z(i.dataUpdatedAt,i.data?.status===`installable`&&i.data.device===`included`);if((0,O.useEffect)(()=>{o&&a()},[o,a]),i.isPending)return(0,W.jsx)(e,{"aria-label":`Reading this IPA`,className:`h-11 w-full`});let s=i.data;if(s===void 0||s.status===`unavailable`)return(0,W.jsxs)(E,{children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`Installation details unavailable`}),(0,W.jsx)(T,{children:`The Console couldn't read this IPA from storage in parts, which takes an HTTPS download link that answers Range requests. Other ways to install still work from a computer.`})]});if(s.status===`store`)return(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA is an App Store export, which installs through TestFlight, not from this page.`});if(s.status===`expired`)return(0,W.jsxs)(E,{variant:`destructive`,children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`This build's profile has expired`}),(0,W.jsxs)(T,{children:[`It expired on `,(0,k.default)(s.expiresAt).format(`YYYY-MM-DD`),`. A maintainer rebuilds it to install again.`]})]});let c=s.link.status===`issued`?s.link.token:null;return s.link.status===`no-secret`?(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,s.link.secretName,` on the Console to install from this page.`]}):c===null?null:s.device===`included`?(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`In this build`}),o?(0,W.jsx)(ke,{fetching:i.isFetching,onRenew:()=>void a()}):(0,W.jsx)(Ae,{build:t,token:c}),(0,W.jsx)(je,{})]}):s.device===`not-included`?(0,W.jsx)(Ne,{build:t,device:n,registry:s.registry,newerBuild:s.newerBuild,canApprove:s.canApprove,registryReadAt:i.dataUpdatedAt}):(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`Check this iPhone first`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`iOS installs this IPA only on the devices it lists. A profile reads this iPhone's ID, then Safari comes back here.`})]}),(0,W.jsx)(Q,{build:t})]})}export{H as _,De as a,U as c,be as d,ye as f,Se as g,Ce as h,X as i,xe as l,N as m,Pe as n,we as o,V as p,K as r,A as s,$ as t,M as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Di as e,vr as t}from"./sidebar-UnsNYOry.js";import{t as n}from"./link-D95E0fwF.js";import{a as r}from"./tabs-BBfg-c0h.js";var i=e(),a=`relative inline-flex h-full min-h-11 items-center justify-center rounded-md border border-transparent px-3 text-xs font-medium whitespace-nowrap text-foreground/60 transition-colors hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none aria-[current=page]:bg-background aria-[current=page]:text-foreground aria-[current=page]:shadow-sm dark:text-muted-foreground dark:hover:text-foreground dark:aria-[current=page]:border-input dark:aria-[current=page]:bg-input/30 dark:aria-[current=page]:text-foreground`;function o({current:e}){return(0,i.jsxs)(`nav`,{"aria-label":`Native builds views`,className:t(r(),`h-auto min-h-11 sm:h-8 sm:min-h-0 [&>a]:min-h-11 sm:[&>a]:min-h-0`),children:[(0,i.jsx)(n,{activeOptions:{exact:!0,includeSearch:!1},"aria-current":e===`builds`?`page`:void 0,className:a,to:`/native-builds`,children:`Builds`}),(0,i.jsx)(n,{activeOptions:{exact:!0,includeSearch:!1},"aria-current":e===`devices`?`page`:void 0,className:a,to:`/native-builds/devices`,children:`iOS devices`})]})}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,_r as t}from"./sidebar-
|
|
1
|
+
import{Di as e,_r as t}from"./sidebar-UnsNYOry.js";import{t as n}from"./link-D95E0fwF.js";var r=e(),i={afterReleaseId:void 0,beforeReleaseId:void 0,bundleId:void 0,channelId:void 0,enabled:void 0,platform:void 0,releaseId:void 0,scopeKey:void 0};function a(){return(0,r.jsx)(`div`,{className:`flex min-h-svh flex-1 items-center justify-center px-6 py-10`,children:(0,r.jsxs)(`section`,{className:`flex max-w-md flex-col items-center text-center`,children:[(0,r.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Page not found`}),(0,r.jsx)(n,{className:t({className:`mt-6`,size:`lg`}),to:`/`,search:i,children:`Go to home`})]})})}export{a as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e}from"./sidebar-
|
|
1
|
+
import{Di as e}from"./sidebar-UnsNYOry.js";var t=e();function n({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701`})})}function r({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M18.4395 5.5586c-.675 1.1664-1.352 2.3318-2.0274 3.498-.0366-.0155-.0742-.0286-.1113-.043-1.8249-.6957-3.484-.8-4.42-.787-1.8551.0185-3.3544.4643-4.2597.8203-.084-.1494-1.7526-3.021-2.0215-3.4864a1.1451 1.1451 0 0 0-.1406-.1914c-.3312-.364-.9054-.4859-1.379-.203-.475.282-.7136.9361-.3886 1.5019 1.9466 3.3696-.0966-.2158 1.9473 3.3593.0172.031-.4946.2642-1.3926 1.0177C2.8987 12.176.452 14.772 0 18.9902h24c-.119-1.1108-.3686-2.099-.7461-3.0683-.7438-1.9118-1.8435-3.2928-2.7402-4.1836a12.1048 12.1048 0 0 0-2.1309-1.6875c.6594-1.122 1.312-2.2559 1.9649-3.3848.2077-.3615.1886-.7956-.0079-1.1191a1.1001 1.1001 0 0 0-.8515-.5332c-.5225-.0536-.9392.3128-1.0488.5449zm-.0391 8.461c.3944.5926.324 1.3306-.1563 1.6503-.4799.3197-1.188.0985-1.582-.4941-.3944-.5927-.324-1.3307.1563-1.6504.4727-.315 1.1812-.1086 1.582.4941zM7.207 13.5273c.4803.3197.5506 1.0577.1563 1.6504-.394.5926-1.1038.8138-1.584.4941-.48-.3197-.5503-1.0577-.1563-1.6504.4008-.6021 1.1087-.8106 1.584-.4941z`})})}function i({platform:e,className:i}){return e===`ios`?(0,t.jsx)(n,{className:i}):(0,t.jsx)(r,{className:i})}function a({platform:e}){return(0,t.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,t.jsx)(i,{className:`size-4`,platform:e}),e===`ios`?`iOS`:`Android`]})}export{a as n,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Di as e,Ri as t,Vi as n,vr as r}from"./sidebar-UnsNYOry.js";var i=n(t(),1),a=(e=>(e[e.Border=-1]=`Border`,e[e.Data=0]=`Data`,e[e.Function=1]=`Function`,e[e.Position=2]=`Position`,e[e.Timing=3]=`Timing`,e[e.Alignment=4]=`Alignment`,e))(a||{}),o=[0,1],s=[1,0],c=[2,3],l=[3,2],u={L:o,M:s,Q:c,H:l},d=/^\d*$/,f=/^[A-Z0-9 $%*+./:-]*$/,p=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`,m=1,h=40,g=3,_=3,v=40,y=10,b=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],x=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],S=class{constructor(e,t,n,r){if(this.version=e,this.ecc=t,e<m||e>h)throw RangeError(`Version value out of range`);if(r<-1||r>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let i=Array.from({length:this.size}).fill(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let a=this.addEccAndInterleave(n);if(this.drawCodewords(a),r===-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(r=t,e=n),this.applyMask(t)}}this.mask=r,this.applyMask(r),this.drawFormatBits(r)}size;mask;modules=[];types=[];getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,a.Timing),this.setFunctionModule(e,6,e%2==0,a.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n===0&&r===0||n===0&&r===t-1||n===t-1&&r===0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.ecc[1]<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,w(r,e));this.setFunctionModule(8,7,w(r,6)),this.setFunctionModule(8,8,w(r,7)),this.setFunctionModule(7,8,w(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,w(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,w(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,w(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=w(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),o=e+r,s=t+n;o>=0&&o<this.size&&s>=0&&s<this.size&&this.setFunctionModule(o,s,i!==2&&i!==4,a.Position)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!==1,a.Alignment)}setFunctionModule(e,t,n,r=a.Function){this.modules[t][e]=n,this.types[t][e]=r}addEccAndInterleave(e){let t=this.version,n=this.ecc;if(e.length!==z(t,n))throw RangeError(`Invalid argument`);let r=x[n[0]][t],i=b[n[0]][t],a=Math.floor(R(t)/8),o=r-a%r,s=Math.floor(a/r),c=[],l=B(i);for(let t=0,n=0;t<r;t++){let r=e.slice(n,n+s-i+(t<o?0:1));n+=r.length;let a=V(r,l);t<o&&r.push(0),c.push(r.concat(a))}let u=[];for(let e=0;e<c[0].length;e++)c.forEach((t,n)=>{(e!==s-i||n>=o)&&u.push(t[e])});return u}drawCodewords(e){if(e.length!==Math.floor(R(this.version)/8))throw RangeError(`Invalid argument`);let t=0;for(let n=this.size-1;n>=1;n-=2){n===6&&(n=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let a=n-i,o=n+1&2?r:this.size-1-r;!this.types[o][a]&&t<e.length*8&&(this.modules[o][a]=w(e[t>>>3],7-(t&7)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.types[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[t][a]===n?(r++,r===5?e+=g:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*v),n=this.modules[t][a],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*v}for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][t]===n?(r++,r===5?e+=g:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*v),n=this.modules[a][t],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*v}for(let t=0;t<this.size-1;t++)for(let n=0;n<this.size-1;n++){let r=this.modules[t][n];r===this.modules[t][n+1]&&r===this.modules[t+1][n]&&r===this.modules[t+1][n+1]&&(e+=_)}let t=0;for(let e of this.modules)t=e.reduce((e,t)=>e+ +!!t,t);let n=this.size*this.size,r=Math.ceil(Math.abs(t*20-n*10)/n)-1;return e+=r*y,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}};function C(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function w(e,t){return(e>>>t&1)!=0}var T=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}getData(){return this.bitData.slice()}},E=[1,10,12,14],D=[2,9,11,13],O=[4,8,16,16];function k(e,t){return e[Math.floor((t+7)/17)+1]}function A(e){let t=[];for(let n of e)C(n,8,t);return new T(O,e.length,t)}function j(e){if(!P(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let n=0;n<e.length;){let r=Math.min(e.length-n,3);C(Number.parseInt(e.substring(n,n+r),10),r*3+1,t),n+=r}return new T(E,e.length,t)}function M(e){if(!F(e))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let t=[],n;for(n=0;n+2<=e.length;n+=2){let r=p.indexOf(e.charAt(n))*45;r+=p.indexOf(e.charAt(n+1)),C(r,11,t)}return n<e.length&&C(p.indexOf(e.charAt(n)),6,t),new T(D,e.length,t)}function N(e){return e===``?[]:P(e)?[j(e)]:F(e)?[M(e)]:[A(L(e))]}function P(e){return d.test(e)}function F(e){return f.test(e)}function I(e,t){let n=0;for(let r of e){let e=k(r.mode,t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}function L(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)===`%`?(t.push(Number.parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}function R(e){if(e<m||e>h)throw RangeError(`Version number out of range`);let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function z(e,t){return Math.floor(R(e)/8)-b[t[0]][e]*x[t[0]][e]}function B(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let t=[];for(let n=0;n<e-1;n++)t.push(0);t.push(1);let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=H(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=H(n,2)}return t}function V(e,t){let n=t.map(e=>0);for(let r of e){let e=r^n.shift();n.push(0),t.forEach((t,r)=>n[r]^=H(t,e))}return n}function H(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}function U(e,t,n=1,r=40,i=-1,a=!0){if(!(m<=n&&n<=r&&r<=h)||i<-1||i>7)throw RangeError(`Invalid value`);let o,u;for(o=n;;o++){let n=z(o,t)*8,i=I(e,o);if(i<=n){u=i;break}if(o>=r)throw RangeError(`Data too long`)}for(let e of[s,c,l])a&&u<=z(o,e)*8&&(t=e);let d=[];for(let t of e){C(t.mode[0],4,d),C(t.numChars,k(t.mode,o),d);for(let e of t.getData())d.push(e)}let f=z(o,t)*8;C(0,Math.min(4,f-d.length),d),C(0,(8-d.length%8)%8,d);for(let e=236;d.length<f;e^=253)C(e,8,d);let p=Array.from({length:Math.ceil(d.length/8)},()=>0);return d.forEach((e,t)=>p[t>>>3]|=e<<7-(t&7)),new S(o,t,p,i)}function W(e,t){let{ecc:n=`L`,boostEcc:r=!1,minVersion:i=1,maxVersion:a=40,maskPattern:o=-1,border:s=1}=t||{},c=typeof e==`string`?N(e):Array.isArray(e)?[A(e)]:void 0;if(!c)throw Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let l=U(c,u[n],i,a,o,r),d=G({version:l.version,maskPattern:l.mask,size:l.size,data:l.modules,types:l.types},s);return t?.invert&&(d.data=d.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(d),d}function G(e,t=1){if(!t)return e;let{size:n}=e,r=n+t*2;e.size=r,e.data.forEach(e=>{for(let n=0;n<t;n++)e.unshift(!1),e.push(!1)});for(let n=0;n<t;n++)e.data.unshift(Array.from({length:r},e=>!1)),e.data.push(Array.from({length:r},e=>!1));let i=a.Border;e.types.forEach(e=>{for(let n=0;n<t;n++)e.unshift(i),e.push(i)});for(let n=0;n<t;n++)e.types.unshift(Array.from({length:r},e=>i)),e.types.push(Array.from({length:r},e=>i));return e}var K=e=>{let{data:t,size:n}=W(e,{ecc:`M`,border:4}),r=``;return t.forEach((e,t)=>e.forEach((e,n)=>{e&&(r+=`M${n} ${t}h1v1h-1z`)})),{size:n,path:r}},q=e();function J({value:e,label:t,className:n}){let{size:a,path:o}=(0,i.useMemo)(()=>K(e),[e]);return(0,q.jsxs)(`svg`,{"aria-label":t,className:r(`aspect-square rounded-md`,n),role:`img`,shapeRendering:`crispEdges`,viewBox:`0 0 ${a} ${a}`,children:[(0,q.jsx)(`rect`,{fill:`#fff`,height:a,width:a}),(0,q.jsx)(`path`,{d:o,fill:`#000`})]})}export{J as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Di as t,Vi as n,_r as r,gr as i,vr as a}from"./sidebar-
|
|
1
|
+
import{$ as e,Di as t,Vi as n,_r as r,gr as i,vr as a}from"./sidebar-UnsNYOry.js";import{t as o}from"./link-D95E0fwF.js";import{a as s}from"./TargetDisplay-DzSkf5yP.js";import{t as c}from"./chevron-right-CuYrscDY.js";import{n as l,t as u}from"./relativeTime-D_aYJRc7.js";import{a as d,n as f,o as p,r as m,t as h}from"./table-r_sYqKTQ.js";var g=t();function _({children:e,className:t}){return(0,g.jsx)(`div`,{className:a(`min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm [&_[data-slot=table-container]]:h-full [&_[data-slot=table-container]]:overflow-auto`,t),children:e})}function v({header:e,children:t,className:n,rowGroups:r=!1,...i}){return(0,g.jsxs)(h,{className:a(`min-w-max`,n),...i,children:[(0,g.jsx)(d,{className:`bg-muted/40`,children:(0,g.jsx)(p,{className:`border-b border-border/60 hover:bg-transparent [&>th]:h-10 [&>th]:text-xs [&>th]:font-semibold [&>th]:uppercase [&>th]:text-muted-foreground`,children:e})}),r?t:(0,g.jsx)(f,{children:t})]})}function y({className:e,...t}){return(0,g.jsx)(f,{className:a(`[&_tr:last-child]:border-b`,e),...t})}var b=e=>t=>{t.target instanceof Element&&t.target.closest(`button, a, input, select, textarea`)||e()};function x({className:e,onOpen:t,...n}){return(0,g.jsx)(p,{onClick:b(t),onKeyDown:e=>{e.target!==e.currentTarget||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),t())},tabIndex:0,className:a(`cursor-pointer transition-[background-color,filter] hover:bg-muted/10 focus-within:bg-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none data-[state=selected]:bg-muted/15 [&>td]:py-3`,e),...n})}function S({columns:t,label:n}){return Array.from({length:7},(r,i)=>(0,g.jsx)(p,{children:(0,g.jsxs)(m,{colSpan:t,children:[i===0&&n?(0,g.jsx)(`span`,{className:`sr-only`,children:n}):null,(0,g.jsx)(e,{className:`h-8 w-full`})]})},i))}function C({columns:e,className:t,children:n}){return(0,g.jsx)(p,{children:(0,g.jsx)(m,{className:a(`h-44 text-center text-muted-foreground`,t),colSpan:e,children:n})})}function w({icon:e,title:t,children:n}){return(0,g.jsxs)(`div`,{className:`mx-auto flex max-w-sm flex-col items-center gap-2 whitespace-normal text-center text-sm text-muted-foreground`,children:[(0,g.jsx)(e,{"aria-hidden":`true`,className:`size-5`}),(0,g.jsx)(`p`,{className:`font-medium text-foreground`,children:t}),n]})}function T({children:e}){return(0,g.jsx)(`div`,{className:`p-8`,children:e})}function E({label:t}){return(0,g.jsxs)(`div`,{className:`flex flex-col gap-3 p-4`,children:[t?(0,g.jsx)(`span`,{className:`sr-only`,children:t}):null,Array.from({length:5},(t,n)=>(0,g.jsx)(e,{className:`h-44 w-full`},n))]})}function D({className:e,...t}){return(0,g.jsx)(`article`,{className:a(`flex cursor-pointer touch-manipulation flex-col gap-4 border-b p-4 transition-[background-color,filter] last:border-b-0 hover:bg-muted/10 active:bg-muted/20 motion-reduce:transition-none data-[state=selected]:bg-muted/15`,e),...t})}function O({count:e,noun:t,folded:n,label:a,pending:l=!1,newest:u,previous:d,next:f}){return(0,g.jsxs)(`nav`,{"aria-label":a,className:`flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between`,children:[(0,g.jsxs)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:[(0,g.jsx)(`span`,{className:`text-foreground`,children:e}),` `,e===1?t[0]:t[1],`, newest first`,n===void 0||n.count===0?null:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(`span`,{"aria-hidden":`true`,children:` · `}),(0,g.jsx)(`span`,{className:`sr-only`,children:`, `}),(0,g.jsxs)(`span`,{className:`text-foreground`,children:[n.count,n.more?`+`:``]}),` `,n.label,` folded`]})]}),(0,g.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 sm:justify-end`,children:[u&&!l?(0,g.jsx)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`ghost`}),search:u.search,to:u.to,children:`Newest`}):null,d&&!l?(0,g.jsxs)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:d.search,to:d.to,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}):(0,g.jsxs)(i,{className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}),f&&!l?(0,g.jsxs)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:f.search,to:f.to,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]}):(0,g.jsxs)(i,{className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]})]})]})}var k=n(l(),1),A=n(u(),1);k.default.extend(A.default);function j({ms:e,withDate:t=!1}){let n=(0,k.default)(e),r=n.format(`YYYY-MM-DD HH:mm:ss`);return(0,g.jsxs)(`time`,{className:`flex flex-col whitespace-nowrap tabular-nums`,dateTime:n.toISOString(),title:r,children:[(0,g.jsx)(`span`,{children:n.fromNow()}),t?(0,g.jsx)(`span`,{className:`text-muted-foreground`,children:r}):null]})}export{v as a,_ as c,x as d,S as f,T as i,C as l,D as n,y as o,b as p,E as r,w as s,j as t,O as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,Vi as t,Vr as n,vr as r}from"./sidebar-
|
|
1
|
+
import{Di as e,Vi as t,Vr as n,vr as r}from"./sidebar-UnsNYOry.js";import{o as i,t as a}from"./badge-D4Tiwei-.js";import{t as o}from"./uuidv7-DgXZ1zRR.js";import{n as s,t as c}from"./relativeTime-D_aYJRc7.js";var l=n(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),u=t(s(),1),d=t(c(),1),f=e();u.default.extend(d.default);function p({uuid:e,format:t=`relative`}){let n=(0,u.default)(o(e));return t===`relative`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,f.jsxs)(`div`,{className:`flex flex-col`,children:[(0,f.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,f.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}var m=e=>{let t=e.trim();if(t.startsWith(`git@`)){let e=t.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(e)return`https://${e[1]}/${e[2]}`}if(t.startsWith(`ssh://`))try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`.replace(/\/+$/,``).replace(/\.git$/,``)}catch{return t.replace(/\/+$/,``).replace(/\.git$/,``)}return t.replace(/\/+$/,``).replace(/\.git$/,``)},h=(e,t)=>{if(!e?.trim())return null;let n=m(e);try{let{hostname:e}=new URL(n);if(e.includes(`gitlab`))return`${n}/-/commit/${t}`;if(e.includes(`bitbucket`))return`${n}/commits/${t}`}catch{}return`${n}/commit/${t}`};function g({percentage:e,className:t}){let n=e<100,o=e.toFixed(1);return(0,f.jsxs)(a,{className:r(`gap-1`,t),variant:n?`secondary`:`default`,children:[n?(0,f.jsx)(i,{className:`h-3 w-3`}):null,o,`%`]})}export{l as i,h as n,p as r,g as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Di as t,Ri as n,Vi as r,at as i,gr as a,nt as o,rt as s}from"./sidebar-
|
|
1
|
+
import{$ as e,Di as t,Ri as n,Vi as r,at as i,gr as a,nt as o,rt as s}from"./sidebar-UnsNYOry.js";import{t as c}from"./chevron-right-CuYrscDY.js";import{o as l,r as u}from"./table-r_sYqKTQ.js";import{o as d}from"./RelativeTime-CP7nosYx.js";var f=r(n(),1),p=t(),m=e=>e.from??``,h=(e,t)=>`${e.count}${e.more?`+`:``} ${e.count===1&&!e.more?t.one:t.other}`,g=e=>{let t=[];for(let n of e){let e=t.at(-1);n.kind===`fold`?t.push({kind:`fold`,fold:n}):e?.kind===`rows`?e.rows.push(n.row):t.push({kind:`rows`,rows:[n.row]})}return t};function _(){let[e,t]=(0,f.useState)(()=>new Set);return{isOpen:t=>e.has(t),set:(e,n)=>t(t=>{if(t.has(e)===n)return t;let r=new Set(t);return n?r.add(e):r.delete(e),r})}}function v({label:e,open:t,onOpenChange:n,panelId:r}){return(0,p.jsxs)(`button`,{"aria-controls":r,"aria-expanded":t,className:`group/fold flex min-h-11 w-full items-center gap-2 px-4 text-left text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/30 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-inset motion-reduce:transition-none sm:min-h-9 sm:px-3`,onClick:()=>n(!t),type:`button`,children:[(0,p.jsx)(c,{"aria-hidden":`true`,className:`size-3.5 shrink-0 transition-transform group-aria-expanded/fold:rotate-90 motion-reduce:transition-none`}),e]})}function y({columns:e,children:t,...n}){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(d,{children:(0,p.jsx)(l,{className:`bg-muted/20 hover:bg-muted/20`,children:(0,p.jsx)(u,{className:`p-0`,colSpan:e,children:(0,p.jsx)(v,{...n})})})}),(0,p.jsx)(d,{hidden:!n.open,id:n.panelId,children:n.open?t:null})]})}function b({children:e,inList:t=!1,...n}){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`div`,{className:`border-b bg-muted/20`,role:t?`listitem`:void 0,children:(0,p.jsx)(v,{...n})}),(0,p.jsx)(`div`,{hidden:!n.open,id:n.panelId,children:n.open?e:null})]})}function x({state:t,label:n,onMore:r,onRetry:i,columns:o}){let s=t===`loading`?(0,p.jsxs)(`div`,{"aria-live":`polite`,className:`flex flex-col gap-2 p-3`,children:[(0,p.jsx)(`span`,{className:`sr-only`,children:n}),(0,p.jsx)(e,{className:`h-8 w-full`}),(0,p.jsx)(e,{className:`h-8 w-full`})]}):(0,p.jsxs)(`div`,{className:`flex items-center gap-3 px-4 py-2 sm:px-3`,children:[t===`error`?(0,p.jsxs)(`span`,{className:`text-xs text-muted-foreground`,role:`status`,children:[n,` couldn't be loaded.`]}):null,(0,p.jsx)(a,{className:`h-11 px-3 text-xs sm:h-8`,onClick:t===`error`?i:r,size:`sm`,variant:`ghost`,children:t===`error`?`Retry`:`Show more`})]});return o===void 0?(0,p.jsx)(`div`,{className:`border-b`,children:s}):(0,p.jsx)(l,{className:`hover:bg-transparent`,children:(0,p.jsx)(u,{className:`p-0`,colSpan:o,children:s})})}var S=e=>{let t=0,n=!1;for(let r of e)r.kind===`fold`&&(t+=r.count,n||=r.more);return{count:t,more:n}};function C({icon:e,children:t,label:n,reason:r}){let a=(0,f.useId)(),[c,l]=(0,f.useState)(!1);return(0,p.jsxs)(o,{onOpenChange:l,open:c,triggerId:a,children:[(0,p.jsxs)(i,{"aria-describedby":c?`${a}-reason`:void 0,"aria-label":n,className:`relative inline-flex shrink-0 items-center gap-1 rounded-sm text-xs text-muted-foreground transition-colors after:absolute after:-inset-x-2 after:-inset-y-3.5 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:after:hidden`,closeOnClick:!1,id:a,onClick:()=>l(e=>!e),type:`button`,children:[(0,p.jsx)(e,{"aria-hidden":`true`,className:`size-3.5`}),t]}),(0,p.jsx)(s,{className:`max-w-64`,id:`${a}-reason`,role:`tooltip`,side:`bottom`,children:r})]})}export{m as a,g as c,x as i,_ as l,b as n,h as o,y as r,S as s,C as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Di as e,Vi as t}from"./sidebar-UnsNYOry.js";import{i as n}from"./-native-builds-search-BvCftqF2.js";import{t as r}from"./badge-D4Tiwei-.js";import{n as i,t as a}from"./relativeTime-D_aYJRc7.js";var o=t(i(),1),s=t(a(),1),c={"play-internal":{label:`Play internal`,name:`Google Play internal testing`},"play-closed":{label:`Play closed`,name:`Google Play closed testing`},"play-open":{label:`Play open`,name:`Google Play open testing`},"play-production":{label:`Play production`,name:`Google Play production`}},l=e();o.default.extend(s.default);var u={testflight:`TestFlight`,...Object.fromEntries(Object.entries(c).map(([e,t])=>[e,t.label]))},d=e=>e.submitted_to!==null&&e.submitted_to!==void 0;function f({ms:e}){if(e===null)return null;let t=(0,o.default)(e);return(0,l.jsx)(`time`,{className:`text-xs text-muted-foreground`,dateTime:t.toISOString(),title:t.format(`YYYY-MM-DD HH:mm:ss`),children:t.fromNow()})}var p=e=>{let t=`Submitted to ${u[e.submitted_to]}`;if(e.submitted_at_ms===null)return t;let n=(0,o.default)(e.submitted_at_ms);return`${t} ${n.fromNow()}, ${n.format(`YYYY-MM-DD HH:mm:ss`)}`};function m({build:e,withTime:t=!1}){return d(e)?(0,l.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-1.5`,children:[(0,l.jsxs)(r,{className:`gap-1`,title:p(e),variant:`muted`,children:[(0,l.jsx)(n,{"aria-hidden":`true`,className:`size-3`}),u[e.submitted_to],e.submitted_version?(0,l.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.submitted_version}):null]}),t?(0,l.jsx)(f,{ms:e.submitted_at_ms}):null]}):null}function h({build:e}){return e.is_sandbox?(0,l.jsx)(r,{className:`px-1.5`,variant:`muted`,children:`Sandbox`}):null}export{c as a,u as i,m as n,d as r,h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Di as e,Vr as t,gr as n}from"./sidebar-UnsNYOry.js";import{t as r}from"./copy-BxI24-g-.js";import{t as i}from"./key-round-B-vaAsR7.js";import{D as a}from"./native-builds-BOSmoLed.js";import{n as o}from"./dist-BEIz5ojx.js";import{t as s}from"./HashValueDisplay-DKziWjEg.js";var c=t(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),l=t(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),u=e();function d({label:e,value:t,wrap:i=!1}){let a=async()=>{try{await navigator.clipboard.writeText(t),o.success(`Copied to clipboard`)}catch{o.error(`Could not copy ${e}`)}};return(0,u.jsxs)(`div`,{className:`flex w-full min-w-0 items-center gap-2 rounded-md border bg-muted/40 py-1 pr-1 pl-3`,children:[(0,u.jsx)(`code`,{className:i?`min-w-0 flex-1 text-left font-mono text-xs whitespace-normal sm:whitespace-nowrap`:`min-w-0 flex-1 overflow-x-auto text-left font-mono text-xs whitespace-nowrap`,children:t}),(0,u.jsx)(n,{"aria-label":`Copy ${e}`,className:`size-11 sm:size-7`,onClick:()=>void a(),size:`icon-sm`,variant:`ghost`,children:(0,u.jsx)(r,{"aria-hidden":`true`})})]})}function f({icon:e,value:t,display:n}){return(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(e,{className:`size-4 shrink-0 text-muted-foreground`}),(0,u.jsx)(s,{display:n,maxLength:12,value:t})]})}function p(){return(0,u.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}function m({value:e}){return(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(a,{className:`size-4 shrink-0 text-muted-foreground`}),(0,u.jsx)(`span`,{className:`font-medium`,children:e})]})}function h({appVersion:e,fingerprintHash:t,nativeAppVersion:n}){if(e)return(0,u.jsx)(m,{value:e});if(t){let e=(0,u.jsx)(f,{icon:l,value:t});return n?(0,u.jsxs)(`span`,{className:`flex flex-col items-start gap-3 sm:gap-1`,"data-target-display":``,children:[(0,u.jsxs)(`span`,{title:`The app version this build reports`,children:[(0,u.jsx)(`span`,{className:`sr-only`,children:`App version `}),(0,u.jsx)(m,{value:n})]}),e]}):e}return(0,u.jsx)(p,{})}function g({value:e}){return e?(0,u.jsx)(f,{display:e.replace(/^nbk1:/,``),icon:i,value:e}):(0,u.jsx)(p,{})}export{c as a,d as i,p as n,h as r,g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as e,Di as t,J as n,Ri as r,S as i,T as a,X as o,Y as s,gr as c,j as l,k as u,vr as d}from"./sidebar-UnsNYOry.js";function f(t){return e(t,`alert-dialog`)}var p=i;r();var m=t();function h({...e}){return(0,m.jsx)(f,{"data-slot":`alert-dialog`,...e})}function g({...e}){return(0,m.jsx)(p,{"data-slot":`alert-dialog-trigger`,...e})}function _({...e}){return(0,m.jsx)(u,{"data-slot":`alert-dialog-portal`,...e})}function v({className:e,...t}){return(0,m.jsx)(o,{"data-slot":`alert-dialog-overlay`,className:d(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function y({className:e,size:t=`default`,...n}){return(0,m.jsxs)(_,{children:[(0,m.jsx)(v,{}),(0,m.jsx)(l,{"data-slot":`alert-dialog-content`,"data-size":t,className:d(`group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none max-h-[calc(100dvh-2rem)] overflow-y-auto data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...n})]})}function b({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:d(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...t})}function x({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:d(`flex flex-col-reverse gap-2 max-sm:*:min-h-11 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...t})}function S({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`alert-dialog-media`,className:d(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,e),...t})}function C({className:e,...t}){return(0,m.jsx)(a,{"data-slot":`alert-dialog-title`,className:d(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...t})}function w({className:e,...t}){return(0,m.jsx)(n,{"data-slot":`alert-dialog-description`,className:d(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function T({className:e,...t}){return(0,m.jsx)(c,{"data-slot":`alert-dialog-action`,className:d(e),...t})}function E({className:e,variant:t=`outline`,size:n=`default`,...r}){return(0,m.jsx)(s,{"data-slot":`alert-dialog-cancel`,className:d(e),render:(0,m.jsx)(c,{variant:t,size:n}),...r})}export{w as a,S as c,y as i,C as l,T as n,x as o,E as r,b as s,h as t,g as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Hr as e,Oi as t,Si as n,wi as r,zr as i}from"./sidebar-
|
|
1
|
+
import{Hr as e,Oi as t,Si as n,wi as r,zr as i}from"./sidebar-UnsNYOry.js";import{n as a}from"./preload-helper-52zhjEsw.js";import{t as o}from"./useMutation-BWX97JX2.js";var s=r({method:`GET`}).middleware([i]).handler(t(`206547cb1526f961070a989818ca7b9e34f6b2b0e4ab851698c3807fe9fb5e0c`)),c=r({method:`GET`}).middleware([i]).handler(t(`b30a0e32e3e84050037368e4405bfc34507fda8891a64faefe1a7acd019e9f3c`)),ee=r({method:`GET`}).middleware([i]).handler(t(`a6f23116eeaf76166d405e28a95213123025613c6603030894e519015bf48032`)),l=r({method:`POST`}).middleware([i]).handler(t(`7ea0186f19f9f2bc2ca4b26e3c59636891cf046957f84287b6783f8d88bd8cb7`)),u=r({method:`POST`}).middleware([i]).handler(t(`b46c95dba95a6a3e8fa5c9d100e3622fa5ae7af4f38e10fb1ed2fa48289a3a8f`)),d=r({method:`POST`}).middleware([i]).handler(t(`d5b58722ce514e3b63a377f736b4823c2011782495442ae4870ed547e392c70b`)),f=r({method:`POST`}).middleware([i]).handler(t(`956539a300d79a7efa191c1cc2d529d62fc4bfd940442548fdbc1404e0d53078`)),p=r({method:`GET`}).middleware([i]).handler(t(`e8c24b7247936f045a145ffd5c177fd0e3df3b52769d67dfbd8d1de491d66396`)),m=r().middleware([i]).handler(t(`51a34c05479a893c7d320bd4cd1604427289d667698c48b9f30a01aabf8a5e68`)),h=r().middleware([i]).handler(t(`79ada05964de8f2123bfcd62b10097d59bf8fd689ef5c7161031e5871d8396c5`)),g=r({method:`POST`}).middleware([i]).handler(t(`2b9b8d1f49f79a511589617d8d4bfc6094a3acf5264f33651b9569ba66d3f321`)),_=r({method:`POST`}).middleware([i]).handler(t(`52756dde414919a906bfe83d1ab6d29910c63bcafdb47653d6f1df562d958920`)),v=r({method:`GET`}).middleware([i]).handler(t(`1bd85c2a50e24785cb6abb023a247a9f048f37ddfa85cbb1c57e579563bad013`)),y=r({method:`GET`}).middleware([i]).handler(t(`4370f1bf70b91f1168d85379d3008449a1bedb915e9878ca4ef89d5f3a80fa7f`)),b=r({method:`GET`}).middleware([i]).handler(t(`4ca367070b00f58179a572f0bb8196a4ccdd3881e9b1dbfe33deee0cb6e1f549`)),x=r({method:`GET`}).middleware([i]).handler(t(`17a54fe7c5ad6ca53457914b1d02b3d6887811aa6b5fa6598a1ee107796ce8f0`)),S=r({method:`GET`}).middleware([i]).handler(t(`1fc98b1499df6f62eeb3e84712ff4bd12e428d2ddd08880d541463d24ccd0233`)),C=r({method:`GET`}).middleware([i]).handler(t(`c101ad0315790cf226f182906274176b64a93b9bf5b410cacec5067208c70a04`)),w=r({method:`GET`}).middleware([i]).handler(t(`2e3fab89483b2e4fea0c2f996071b2dbb15b8bc072e7dae78c75a9a9d854d5b9`)),T=r({method:`GET`}).middleware([i]).handler(t(`868ce85f0b63ad138a1f82a573d1d6b12f80c7ca44aefec3dadf01b5fa7db86c`)),E=r({method:`POST`}).middleware([i]).handler(t(`a6c8cfa907e2f75bf69aa90044bd52a3ee684d1a0462d23781161a1a3531aa33`)),D=r({method:`GET`}).middleware([i]).handler(t(`936ef8582ff49d97077d1d80e8403d0b4106831c955591c5c471a88f96007fe9`)),O=r({method:`POST`}).middleware([i]).handler(t(`c6ff40bd8faad0b2d7aba3e94179c18e02a918a76bff25849d771ff31f688208`)),k=r({method:`POST`}).middleware([i]).handler(t(`67cea9f69773d83e69e68e20b81116a2bee9ee4ab3e378698ff74149f1d59ad0`)),A=[`releases`],j={config:[`config`],channels:[`channels`],releases:{all:A,list:e=>[...A,e??{}],fold:(e,t)=>[...A,`fold`,e??{},t]},release:e=>[`release`,e],releaseCatalog:e=>[`release-catalog`,e],bundleChildren:{all:[`bundle-children`],list:e=>[`bundle-children`,e],counts:e=>[`bundle-children`,`counts`,...e]},bundle:e=>[`bundle`,e],nativeBuilds:{all:[`native-builds`],list:e=>[`native-builds`,e],fold:(e,t)=>[`native-builds`,`fold`,e??null,t]},nativeBuild:e=>[`native-build`,e],nativeBuildPatches:(e,t)=>[`native-build-patches`,e,t],nativeBuildDownloadUrl:e=>[`native-build-download-url`,e],nativeBuildDownloadLink:e=>[`native-build-download-link`,e],nativeBuildInstallEligibility:(e,t)=>[`native-build-install-eligibility`,e,t],releaseNativeBuild:e=>[`release-native-build`,e]},M=6e4,N=1440*60*1e3,P=1800*1e3;function F(){return e({queryKey:j.config,queryFn:()=>m(),staleTime:1/0})}function I(){return e({queryKey:j.channels,queryFn:()=>h(),staleTime:1/0})}function L(t){return e({queryKey:j.releases.list(t),queryFn:()=>s({data:t}),placeholderData:e=>e})}function R(e,t,n){return a({queryKey:j.releases.fold(e,t),queryFn:({pageParam:n})=>c({data:{...t,...e===void 0?{}:{filter:e},...n===void 0?{}:{after:n}}}),initialPageParam:void 0,getNextPageParam:e=>e.next,enabled:n})}function z(t){return e({enabled:t.length>0,queryFn:()=>ee({data:{releaseId:t}}),queryKey:j.release(t)})}function B(t){return e({enabled:t.length>0,queryFn:()=>p({data:{scopeKey:t}}),queryKey:j.releaseCatalog(t)})}function V(t){return e({queryKey:j.bundle(t),queryFn:()=>v({data:{bundleId:t}}),staleTime:1/0,enabled:!!t})}function H(t){return e({queryKey:j.bundleChildren.list(t),queryFn:()=>y({data:{baseBundleId:t}}),staleTime:1/0,enabled:!!t})}function U(t){let n=[...t].sort((e,t)=>e.localeCompare(t));return e({queryKey:j.bundleChildren.counts(n),queryFn:()=>b({data:{bundleIds:n}}),staleTime:1/0,enabled:n.length>0})}function W(e,t,n){return a({queryKey:j.nativeBuilds.fold(e,t),queryFn:({pageParam:n})=>S({data:{...t,...e===void 0?{}:{channel:e},...n===void 0?{}:{after:n}}}),initialPageParam:void 0,getNextPageParam:e=>e.next,enabled:n,staleTime:6e4})}function G(t){return e({queryKey:j.nativeBuilds.list(t),queryFn:()=>x({data:t}),placeholderData:e=>e,staleTime:6e4})}function K(t){return e({queryKey:j.nativeBuild(t),queryFn:()=>C({data:{id:t}}),enabled:t.length>0})}function q(t,n,r){return e({queryKey:j.nativeBuildPatches(t,n),queryFn:()=>w({data:{minBundleId:t,...n}}),enabled:r&&t.length>0,placeholderData:e=>e})}function J(t){return e({queryKey:j.releaseNativeBuild(t??{platform:`ios`,channel:``,fingerprintHash:null,targetAppVersion:null}),queryFn:()=>T({data:t}),enabled:t!==null,staleTime:6e4})}function Y(t){return e({queryKey:j.nativeBuildDownloadLink(t),queryFn:()=>O({data:{id:t}}),staleTime:N})}function X(t,n){return e({queryKey:j.nativeBuildInstallEligibility(t,n),queryFn:()=>k({data:{id:t,...n===null?{}:{udid:n}}}),staleTime:P,refetchInterval:P})}function Z(t){return e({queryKey:j.nativeBuildDownloadUrl(t),queryFn:()=>D({data:{id:t}}),staleTime:M})}function Q(){let e=n();return o({mutationFn:e=>g({data:e}).then(e=>e.data),onSuccess:async()=>{await e.invalidateQueries({queryKey:j.channels})}})}function $(){let e=n();return o({mutationFn:e=>_({data:e}).then(e=>e.data),onSettled:async()=>{await e.invalidateQueries({queryKey:j.channels})}})}function te(){let e=n();return o({mutationFn:e=>E({data:e}),onSettled:async()=>{await Promise.all([e.invalidateQueries({queryKey:[`native-build`]}),e.invalidateQueries({queryKey:j.nativeBuilds.all}),e.invalidateQueries({queryKey:[`release-native-build`]})])}})}function ne(){let e=n();return o({mutationFn:e=>l({data:e}),onSuccess:async(t,n)=>{await Promise.all([e.invalidateQueries({queryKey:j.releases.all}),e.invalidateQueries({queryKey:j.release(n.releaseId)}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:j.channels})])}})}function re(){return o({mutationFn:e=>u({data:e})})}function ie(){let e=n();return o({mutationFn:e=>d({data:e}),onSuccess:async(t,n)=>{e.removeQueries({queryKey:j.release(n.releaseId)}),await Promise.all([e.invalidateQueries({queryKey:j.releases.all}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:j.channels}),e.invalidateQueries({queryKey:[`bundle`]}),e.invalidateQueries({queryKey:j.bundleChildren.all})])}})}function ae(){let e=n();return o({mutationFn:e=>f({data:e}),onSuccess:async()=>{await Promise.all([e.invalidateQueries({queryKey:j.releases.all}),e.invalidateQueries({queryKey:[`release`]}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:j.channels})])}})}export{L as C,z as S,re as _,F as a,R as b,ie as c,Y as d,Z as f,G as g,q as h,I as i,te as l,X as m,H as n,Q as o,W as p,V as r,$ as s,U as t,K as u,ae as v,ne as w,J as x,B as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,Di as t,Hr as n,Oi as r,Q as i,Ri as a,Si as o,Vi as s,Vr as c,gr as l,p as u,wi as d,zr as f}from"./sidebar-UnsNYOry.js";import{t as p}from"./useMutation-BWX97JX2.js";import{t as ee}from"./check-Dz_5aNwx.js";import{t as te}from"./clipboard-D8uvj6FN.js";import{t as m}from"./key-round-B-vaAsR7.js";import{t as ne}from"./loader-circle-C26cZDSM.js";import{t as h}from"./plus-Bp6IqwOH.js";import{t as g}from"./refresh-cw-CpCxPYma.js";import{a as re,i as _,n as v,o as y,r as b,t as x}from"./badge-D4Tiwei-.js";import{n as S}from"./dist-BEIz5ojx.js";import{a as ie,n as ae,o as C,t as w}from"./card-BfeRlTvj.js";import{a as T,i as E,n as D,r as O,t as k}from"./field-PkdRPD3A.js";import{a as A,c as j,i as M,l as N,n as P,o as F,r as I,s as L,t as R,u as z}from"./alert-dialog-Dihztkem.js";import{a as B,i as V,n as oe,o as H,r as U,t as W}from"./dialog-e9AF5T6h.js";import{a as G,i as K,n as q,o as J,r as Y,t as se}from"./table-r_sYqKTQ.js";var X=c(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),Z=s(a(),1),ce=d({method:`GET`}).middleware([f]).handler(r(`2c7f3cdb9bd3cab2c026a48abdc84c362db0362924a08679052a325640aec56b`)),le=d({method:`POST`}).middleware([f]).handler(r(`68a2d94ee016be64936401f5eba60ab08a47ff373e1cf9de48e4413336e6034b`)),ue=d({method:`POST`}).middleware([f]).handler(r(`a1cb80b19ca72a64fb631ca28ebb9b6941db245983de082d5dd3203ec2eef795`)),Q={list:[`api-keys`,`list`]},de=()=>n({queryKey:Q.list,queryFn:()=>ce()}),fe=()=>{let e=o();return p({mutationFn:e=>le({data:{name:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Q.list})}})},pe=()=>{let e=o();return p({mutationFn:e=>ue({data:{id:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Q.list})}})},$=t(),me=e=>new Date(e).toISOString().slice(0,10);function he(){let[e,t]=(0,Z.useState)(!1),[n,r]=(0,Z.useState)(``),[a,o]=(0,Z.useState)(null),s=fe(),c=n.trim(),u=c.length>64?`Name must be 64 characters or fewer.`:null,d=()=>{r(``),o(null),s.reset()},f=e=>{t(e),e||d()};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(l,{className:`max-md:h-11`,onClick:()=>t(!0),children:[(0,$.jsx)(h,{"data-icon":`inline-start`}),`Create API key`]}),(0,$.jsx)(W,{open:e,onOpenChange:f,children:(0,$.jsxs)(oe,{showCloseButton:a===null,children:[(0,$.jsxs)(B,{children:[(0,$.jsx)(H,{children:a===null?`Create API key`:`Save your API key`}),(0,$.jsx)(U,{children:a===null?`Name the app or environment that will use this key.`:`This key is shown once. Store it securely before closing.`})]}),a===null?(0,$.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!(c.length===0||u!==null))try{o((await s.mutateAsync(c)).apiKey),S.success(`API key created`)}catch(e){S.error(e instanceof Error?e.message:`Unable to create API key`)}},children:[(0,$.jsx)(E,{children:(0,$.jsxs)(k,{"data-invalid":u!==null||void 0,children:[(0,$.jsx)(T,{htmlFor:`api-key-name`,children:`Name`}),(0,$.jsx)(i,{id:`api-key-name`,autoComplete:`off`,maxLength:65,onChange:e=>r(e.target.value),placeholder:`Production app`,value:n}),(0,$.jsx)(D,{children:`Use a name you can identify before revoking the key.`}),(0,$.jsx)(O,{children:u})]})}),(0,$.jsx)(V,{className:`mt-4`,children:(0,$.jsxs)(l,{disabled:s.isPending||c.length===0||u!==null,type:`submit`,children:[s.isPending?(0,$.jsx)(ne,{"data-icon":`inline-start`,className:`animate-spin motion-reduce:animate-none`}):(0,$.jsx)(m,{"data-icon":`inline-start`}),`Create API key`]})})]}):(0,$.jsxs)(E,{children:[(0,$.jsxs)(k,{children:[(0,$.jsx)(T,{htmlFor:`created-api-key`,children:`API key`}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(i,{id:`created-api-key`,className:`font-mono`,readOnly:!0,value:a}),(0,$.jsxs)(l,{onClick:async()=>{if(a!==null)try{await navigator.clipboard.writeText(a),S.success(`API key copied`)}catch{S.error(`Unable to copy API key`)}},type:`button`,variant:`outline`,children:[(0,$.jsx)(te,{"data-icon":`inline-start`}),`Copy`]})]})]}),(0,$.jsx)(V,{children:(0,$.jsxs)(l,{onClick:()=>f(!1),children:[(0,$.jsx)(ee,{"data-icon":`inline-start`}),`Done`]})})]})]})})]})}function ge({record:e}){let[t,n]=(0,Z.useState)(!1),r=pe(),i=async t=>{t.preventDefault();try{await r.mutateAsync(e.id),n(!1),S.success(`API key revoked`)}catch(e){S.error(e instanceof Error?e.message:`Unable to revoke API key`)}};return(0,$.jsxs)(R,{open:t,onOpenChange:e=>{r.isPending||n(e)},children:[(0,$.jsxs)(z,{render:(0,$.jsx)(l,{className:`max-md:h-11`,size:`sm`,variant:`ghost`}),children:[(0,$.jsx)(X,{"data-icon":`inline-start`}),`Revoke`]}),(0,$.jsxs)(M,{children:[(0,$.jsxs)(L,{children:[(0,$.jsx)(j,{children:(0,$.jsx)(X,{})}),(0,$.jsxs)(N,{children:[`Revoke `,e.name,`?`]}),(0,$.jsxs)(A,{children:[`Apps using `,e.prefix,`… will immediately lose OTA update and insights access. This action cannot be undone.`]})]}),(0,$.jsxs)(F,{children:[(0,$.jsx)(I,{disabled:r.isPending,children:`Cancel`}),(0,$.jsx)(P,{disabled:r.isPending,onClick:e=>void i(e),variant:`destructive`,children:`Revoke API key`})]})]})]})}function _e(){let t=de();return(0,$.jsxs)(w,{className:`overflow-hidden shadow-sm`,children:[(0,$.jsxs)(ie,{className:`flex-row items-center justify-between space-y-0 border-b px-4 py-3`,children:[(0,$.jsx)(C,{className:`text-sm`,children:(0,$.jsx)(`h2`,{children:`API keys`})}),(0,$.jsx)(he,{})]}),(0,$.jsx)(ae,{className:`p-0`,children:t.isError?(0,$.jsx)(`div`,{className:`p-4`,children:(0,$.jsxs)(v,{variant:`destructive`,children:[(0,$.jsx)(y,{}),(0,$.jsx)(re,{children:`API keys couldn't be loaded`}),(0,$.jsx)(_,{children:`Check your connection and try again.`}),(0,$.jsx)(b,{children:(0,$.jsxs)(l,{onClick:()=>void t.refetch(),size:`xs`,variant:`outline`,children:[(0,$.jsx)(g,{"data-icon":`inline-start`}),`Retry`]})})]})}):(0,$.jsxs)(se,{"aria-label":`API keys`,className:`table-fixed`,children:[(0,$.jsx)(G,{children:(0,$.jsxs)(J,{children:[(0,$.jsx)(K,{children:`Key`}),(0,$.jsx)(K,{className:`w-32`,children:`Created`}),(0,$.jsx)(K,{className:`w-24 text-right`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(q,{children:t.isLoading?Array.from({length:3},(t,n)=>(0,$.jsxs)(J,{children:[(0,$.jsxs)(Y,{className:`space-y-2 py-3`,children:[n===0?(0,$.jsx)(`span`,{className:`sr-only`,children:`Loading API keys`}):null,(0,$.jsx)(e,{className:`h-3.5 w-32`}),(0,$.jsx)(e,{className:`h-3 w-20`})]}),(0,$.jsx)(Y,{children:(0,$.jsx)(e,{className:`h-3.5 w-20`})}),(0,$.jsx)(Y,{children:(0,$.jsx)(e,{className:`ml-auto h-6 w-16`})})]},n)):t.data?.length===0?(0,$.jsx)(J,{children:(0,$.jsx)(Y,{colSpan:3,className:`h-40 text-center text-muted-foreground`,children:(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-xs flex-col items-center gap-2`,children:[(0,$.jsx)(m,{className:`size-5`}),(0,$.jsx)(`p`,{className:`font-medium text-foreground`,children:`No API keys`}),(0,$.jsx)(`p`,{children:`Create an API key to connect an app.`})]})})}):t.data?.map(e=>(0,$.jsxs)(J,{className:e.revoked_at_ms===null?void 0:`text-muted-foreground`,children:[(0,$.jsx)(Y,{className:`whitespace-normal py-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`p`,{className:`break-words font-medium text-foreground`,children:e.name}),(0,$.jsxs)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:[e.prefix,`…`]})]})}),(0,$.jsx)(Y,{className:`text-xs text-muted-foreground`,children:(0,$.jsx)(`time`,{dateTime:new Date(e.created_at_ms).toISOString(),children:me(e.created_at_ms)})}),(0,$.jsx)(Y,{className:`text-right`,children:e.revoked_at_ms===null?(0,$.jsx)(ge,{record:e}):(0,$.jsx)(x,{variant:`outline`,children:`Revoked`})})]},e.id))})]})})]})}function ve(){return(0,$.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,$.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,$.jsx)(u,{className:`-ml-1`}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(m,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,$.jsx)(`h1`,{className:`text-sm font-medium`,children:`API keys`})]}),(0,$.jsx)(`p`,{className:`basis-full pl-9 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`API keys can download OTA updates and submit insights only.`})]}),(0,$.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,$.jsx)(`div`,{className:`mx-auto w-full max-w-5xl`,children:(0,$.jsx)(_e,{})})})]})}export{ve as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./ConsoleFeatureUnavailable-C0iDIboF.js";var t=e;export{t as notFoundComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ar as e,Di as t,
|
|
1
|
+
import{Ar as e,Di as t,Ri as n,Vr as r,Z as i,vr as a,yr as o}from"./sidebar-UnsNYOry.js";var s=r(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);n();var c=t(),l=o(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function u({className:e,variant:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:a(l({variant:t}),e),...n})}function d({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`alert-title`,className:a(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,e),...t})}function f({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`alert-description`,className:a(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,e),...t})}function p({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`alert-action`,className:a(`absolute top-1.5 right-2`,e),...t})}var m=o(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,success:`border-success/20 bg-success/10 text-success`,warning:`border-warning/20 bg-warning/10 text-warning`,muted:`border-badge-muted/20 bg-badge-muted/10 font-medium text-badge-muted`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function h({className:t,variant:n=`default`,render:r,...o}){return i({defaultTagName:`span`,props:e({className:a(m({variant:n}),t)},o),render:r,state:{slot:`badge`,variant:n}})}export{d as a,f as i,u as n,s as o,p as r,h as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,Ri as t,vr as n}from"./sidebar-
|
|
1
|
+
import{Di as e,Ri as t,vr as n}from"./sidebar-UnsNYOry.js";t();var r=e();function i({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card`,className:n(`rounded-xl border bg-card text-card-foreground shadow`,e),...t})}function a({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:n(`flex flex-col gap-1.5 p-6`,e),...t})}function o({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-title`,className:n(`font-semibold leading-none tracking-tight`,e),...t})}function s({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:n(`text-sm text-muted-foreground`,e),...t})}function c({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:n(`p-6 pt-0`,e),...t})}function l({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:n(`flex items-center p-6 pt-0`,e),...t})}export{a,l as i,c as n,o,s as r,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`circle-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.35 2.69A10 10 0 0 1 21.3 15.65`,key:`1pfsoa`}],[`path`,{d:`M19.08 19.08A10 10 0 1 1 4.92 4.92`,key:`1ablyi`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]);export{t};
|
package/.output/public/assets/{console-features-api-BO5V64P3.js → console-features-api-De6tXQnd.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Fi as e,Hr as t,Oi as n,wi as r,zr as i}from"./sidebar-
|
|
1
|
+
import{Fi as e,Hr as t,Oi as n,wi as r,zr as i}from"./sidebar-UnsNYOry.js";function a(e){return e}var o={insights:{plugin:`insights`,label:`Insights`,remote:!0},insightsAnalytics:{plugin:`insights`,label:`Insights`,remote:!1},remoteConfig:{plugin:`remoteConfig`,label:`Remote Config`,remote:!0},apiKeys:{plugin:`apiKeys`,label:`API keys`,remote:!1}},s=Object.keys(o),c=(e,{remote:t})=>t&&!o[e].remote?`remote`:`plugin`,l=e=>e instanceof Error&&e.name===`ConsoleFeatureUnavailableError`&&s.includes(Reflect.get(e,`feature`)),u=r({method:`GET`}).middleware([i]).handler(n(`82ec3500e57f9e81dac6d3f3a7bd9e34915da3121429beec87b7ad153dc6eafe`)),d=[`console`,`features`],f=()=>a({queryKey:d,queryFn:()=>u(),staleTime:1/0}),p=()=>t(f()),m=e=>p().data?.features[e]===!0,h=e=>{let t=typeof e==`object`&&e?Reflect.get(e,`feature`):void 0;return typeof t==`string`&&Object.hasOwn(o,t)?t:void 0},g=async(t,n)=>{let r=await t.ensureQueryData(f()).catch(()=>{t.removeQueries({queryKey:d,exact:!0})});if(r!==void 0&&!r.features[n])throw e({data:{feature:n}})};export{p as a,c,m as i,a as l,h as n,o,g as r,l as s,f as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Br as e,Di as t,E as n,J as r,Ri as i,S as a,T as o,X as s,Y as c,gr as l,j as u,k as d,vr as f}from"./sidebar-UnsNYOry.js";i();var p=t();function m({...e}){return(0,p.jsx)(n,{"data-slot":`dialog`,...e})}function h({...e}){return(0,p.jsx)(a,{"data-slot":`dialog-trigger`,...e})}function g({...e}){return(0,p.jsx)(d,{"data-slot":`dialog-portal`,...e})}function _({className:e,...t}){return(0,p.jsx)(s,{"data-slot":`dialog-overlay`,className:f(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function v({className:t,children:n,showCloseButton:r=!0,...i}){return(0,p.jsxs)(g,{children:[(0,p.jsx)(_,{}),(0,p.jsxs)(u,{"data-slot":`dialog-content`,className:f(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-xs/relaxed ring-1 ring-foreground/10 duration-100 outline-none max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,t),...i,children:[n,r&&(0,p.jsxs)(c,{"data-slot":`dialog-close`,render:(0,p.jsx)(l,{variant:`ghost`,className:`absolute top-2 right-2 max-md:top-1 max-md:right-1 max-md:size-11`,size:`icon-sm`}),children:[(0,p.jsx)(e,{}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function y({className:e,...t}){return(0,p.jsx)(`div`,{"data-slot":`dialog-header`,className:f(`flex flex-col gap-1`,e),...t})}function b({className:e,showCloseButton:t=!1,children:n,...r}){return(0,p.jsxs)(`div`,{"data-slot":`dialog-footer`,className:f(`flex flex-col-reverse gap-2 max-sm:*:min-h-11 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,p.jsx)(c,{render:(0,p.jsx)(l,{variant:`outline`}),children:`Close`})]})}function x({className:e,...t}){return(0,p.jsx)(o,{"data-slot":`dialog-title`,className:f(`text-sm font-medium`,e),...t})}function S({className:e,...t}){return(0,p.jsx)(r,{"data-slot":`dialog-description`,className:f(`text-xs/relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}export{y as a,b as i,v as n,x as o,S as r,h as s,m as t};
|