@hot-updater/console 1.2.0-rc.35 → 1.2.0-rc.36
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-DNupPw5R.js +1 -0
- package/.output/public/assets/{CompositeItem-CyQoQkYs.js → CompositeItem-CcgQyrSU.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-C0iDIboF.js → ConsoleFeatureUnavailable-P2up1IkX.js} +1 -1
- package/.output/public/assets/{EventDetails-DFWS-HcW.js → EventDetails-BYZUOYsT.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-DKziWjEg.js → HashValueDisplay-N89T2mVj.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-BATHTZWn.js → InsightsPageHeader-DhOT-Tmn.js} +1 -1
- package/.output/public/assets/IosInstall-BkjuGzx0.js +1 -0
- package/.output/public/assets/{NativeBuildsNav-D3FIlSu0.js → NativeBuildsNav-CivF1UpI.js} +1 -1
- package/.output/public/assets/{RelativeTime-BvgGWfXM.js → RelativeTime-CAIee8Fr.js} +1 -1
- package/.output/public/assets/RolloutPercentageBadge-BmtfOGOm.js +1 -0
- package/.output/public/assets/{RowReason-7dIWPxhy.js → RowReason-Cuf4SbKm.js} +1 -1
- package/.output/public/assets/{SandboxBadge-BPf2uve4.js → SandboxBadge-Cn1mlvQg.js} +1 -1
- package/.output/public/assets/{TargetDisplay-CiU6ZsDl.js → TargetDisplay-DeKn2_3n.js} +1 -1
- package/.output/public/assets/api-USY_IWMu.js +1 -0
- package/.output/public/assets/api-keys-Bjv4olzj.js +1 -0
- package/.output/public/assets/api-keys-CrrBMw2x.js +1 -0
- package/.output/public/assets/{uuidv7-DgXZ1zRR.js → constants-CNrAvpew.js} +1 -1
- package/.output/public/assets/dist-BDfiL2Qz.js +1 -0
- package/.output/public/assets/{index-CQDGK7Fg.js → index-DHcRzryp.js} +3 -3
- package/.output/public/assets/insights-9CSkLhLx.js +2 -0
- package/.output/public/assets/{insights-Bm4Kua5R.js → insights-BGMOFCgn.js} +2 -2
- package/.output/public/assets/insights-QaHXTgmd.js +1 -0
- package/.output/public/assets/insights-search-Bax3nNBz.js +1 -0
- package/.output/public/assets/{insights-usage-rpc-DdmD1Nuy.js → insights-usage-rpc-BG7EOn2n.js} +1 -1
- package/.output/public/assets/insights_.distribution-BfEb7XIX.js +1 -0
- package/.output/public/assets/insights_.distribution-Ce5y7hIU.js +2 -0
- package/.output/public/assets/insights_.distribution-gCONJgiU.js +1 -0
- package/.output/public/assets/installations-BKAdFmTM.js +1 -0
- package/.output/public/assets/{installations-DYT2mSjX.js → installations-BfbwP-Ub.js} +2 -2
- package/.output/public/assets/installations-D5bvOxlY.js +1 -0
- package/.output/public/assets/native-builds-CrRx3_wN.js +1 -0
- package/.output/public/assets/native-builds-FBNFjP4d.js +1 -0
- package/.output/public/assets/native-builds-FpedinKi.js +2 -0
- package/.output/public/assets/native-builds_._buildId-D0Y_qtSu.js +2 -0
- package/.output/public/assets/native-builds_._buildId-UU2Ja88v.js +1 -0
- package/.output/public/assets/native-builds_.devices-B0GrWGwS.js +2 -0
- package/.output/public/assets/native-builds_.devices-DossOQcr.js +1 -0
- package/.output/public/assets/remote-config-9h5s5yCy.js +1 -0
- package/.output/public/assets/{remote-config-D1EMK2er.js → remote-config-BbLyVNLo.js} +1 -1
- package/.output/public/assets/remote-config-CqFs9CSU.js +6 -0
- package/.output/public/assets/routes-BV7VD8Tr.js +1 -0
- package/.output/public/assets/routes-COOKrhya.js +2 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-BkmGm73S.mjs → __23tanstack-start-server-fn-resolver-DEsK7hJ-.mjs} +58 -58
- 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-OJ8XmaBa.mjs → -native-builds-search-woFrbAdI.mjs} +19 -7
- package/.output/server/_ssr/{BundleIdDisplay-B90reloJ.mjs → BundleIdDisplay-BLXpHocZ.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-Dbmjpe-k.mjs → ChannelBadge-CWIc9tmb.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BX6uKVMH.mjs → ConsoleFeatureUnavailable-B4w26Z-l.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-DiO0Njqj.mjs → EventDetails-CnAKWnvZ.mjs} +6 -6
- package/.output/server/_ssr/{HashValueDisplay-CicukMPP.mjs → HashValueDisplay-DbMfscEm.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-Bu88jQMD.mjs → InsightsPageHeader-CGB3vsS1.mjs} +6 -6
- package/.output/server/_ssr/{IosInstall-qOwrZE2v.mjs → IosInstall-D9zJGmaC.mjs} +7 -7
- package/.output/server/_ssr/{NativeBuildsNav-D20VrrNx.mjs → NativeBuildsNav-CEKiVJZ2.mjs} +3 -3
- package/.output/server/_ssr/{NotFoundPage-_rXA1M7U.mjs → NotFoundPage-DZ6L0Lix.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-X18AN8Yp.mjs → PlatformIcon-C22qEcwo.mjs} +1 -1
- package/.output/server/_ssr/{QrCode-DmEsrduv.mjs → QrCode-Be-7de3s.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-nw54zYAf.mjs → RelativeTime-B2N63vu0.mjs} +3 -3
- package/.output/server/_ssr/{RolloutPercentageBadge-DlRrxKdg.mjs → RolloutPercentageBadge-DgyHwvnj.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-D46cFeQO.mjs → RowReason-DOCMSWpB.mjs} +4 -4
- package/.output/server/_ssr/{SandboxBadge-DXM9RKlS.mjs → SandboxBadge-DVOkxy3O.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-CIU-9UqJ.mjs → TargetDisplay-DcY84JrG.mjs} +3 -3
- package/.output/server/_ssr/{alert-dialog-CAb_7ZLL.mjs → alert-dialog-Bj6jW5-Q.mjs} +1 -1
- package/.output/server/_ssr/{api-v-mDt0z9.mjs → api-BYa88in2.mjs} +9 -7
- package/.output/server/_ssr/{api-keys-DY3XY8gz.mjs → api-keys-C3gWr3Qj.mjs} +9 -9
- package/.output/server/_ssr/{api-keys-CebW6Olm.mjs → api-keys-CIB4jF6t.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-D0rQ5vvV.mjs → api-keys-rpc-CtMsJx1w.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-OTsF60lZ.mjs → api-rpc-sxif8D9h.mjs} +7 -7
- package/.output/server/_ssr/{auth-rpc-Cga9IGo3.mjs → auth-rpc-DYXg2d-s.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-BVqW4FSJ.mjs → auth.server-BCtkdsmT.mjs} +2 -2
- package/.output/server/_ssr/{badge-Cy4z0pH1.mjs → badge-DVmF0rbO.mjs} +1 -1
- package/.output/server/_ssr/{card-UaEWfeRI.mjs → card-C7gkmtDR.mjs} +1 -1
- package/.output/server/_ssr/{config.server-OJdvjs7r.mjs → config.server-D5yjc-Hm.mjs} +3 -3
- package/.output/server/_ssr/{console-access-BM4TLI4g.mjs → console-access-MNaEuKXy.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-BmiP0aaD.mjs → console-features-api-B8PfM6k1.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-DPcZcHSW.mjs → console-features-rpc-Dl1bAdxy.mjs} +3 -3
- package/.output/server/_ssr/constants-B8b1IliD.mjs +8 -0
- package/.output/server/_ssr/{dialog-DWlZVg5y.mjs → dialog-COs-Oov4.mjs} +1 -1
- package/.output/server/_ssr/{empty-BPB71w6i.mjs → empty-BCi8eUlp.mjs} +2 -2
- package/.output/server/_ssr/{field-Bx8FKYuu.mjs → field-D7na2Ch2.mjs} +2 -2
- package/.output/server/_ssr/{input-group-BzfbjZEj.mjs → input-group-B64ZFSYp.mjs} +1 -1
- package/.output/server/_ssr/{insights-DaGJDccC.mjs → insights-B9kdn-hT.mjs} +23 -22
- package/.output/server/_ssr/{insights-CBOTZToQ.mjs → insights-DaaYBkr3.mjs} +5 -5
- package/.output/server/_ssr/{insights-CFbpYpMy.mjs → insights-Do0mUArh.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-b2wrxjFK.mjs → insights-api-C6hqqqUk.mjs} +3 -3
- package/.output/server/_ssr/{insights-failures-rpc-DLo_DEAi.mjs → insights-failures-rpc-k6uyvIeh.mjs} +4 -4
- package/.output/server/_ssr/{insights-recovery-rpc-rpNu1Y8O.mjs → insights-recovery-rpc-DPW8WjEX.mjs} +3 -3
- package/.output/server/_ssr/{insights-rpc-C2u-cHw2.mjs → insights-rpc-DDLtqUqS.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-BBOEGM68.mjs → insights-search-BxLGFC2Y.mjs} +3 -5
- package/.output/server/_ssr/{insights-usage-rpc-6VNQ-ZVG.mjs → insights-usage-rpc-_3iuUmaJ.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-rpc-BOfXGKaq.mjs → insights-usage-rpc-a9HwsRB_.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-a1c7v5MP.mjs → insights_.distribution-BjWQk0tw.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-DrY2XK92.mjs → insights_.distribution-CCCQgeXp.mjs} +15 -15
- package/.output/server/_ssr/{insights_.distribution-kX-VlU6s.mjs → insights_.distribution-DTvhOF_Z.mjs} +5 -5
- package/.output/server/_ssr/{installations-BG3Mf569.mjs → installations-BgKaxLj8.mjs} +2 -2
- package/.output/server/_ssr/{installations-uML6v5Uo.mjs → installations-DZoaae-j.mjs} +11 -11
- package/.output/server/_ssr/{installations-B5-uJU9A.mjs → installations-IiZ1O2zJ.mjs} +4 -4
- package/.output/server/_ssr/{ios-devices-rpc-DqTNHbdN.mjs → ios-devices-rpc-mzVC4RTM.mjs} +7 -7
- package/.output/server/_ssr/{iosDeviceCookie-DNXjIPeF.mjs → iosDeviceCookie-LOJ7WfKJ.mjs} +3 -3
- package/.output/server/_ssr/{iosDeviceProfile-Cl32eCmk.mjs → iosDeviceProfile-DtTmTG9a.mjs} +2 -2
- package/.output/server/_ssr/{iosDevices-BQ0RaNWs.mjs → iosDevices-DC-DR7X-.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-BBOmHVsH.mjs → native-builds-DBVS616m.mjs} +61 -30
- package/.output/server/_ssr/{native-builds-BuYIAi2p.mjs → native-builds-uMIPDSmT.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-BUdWhQaH.mjs → native-builds_._buildId-BmB6oLsi.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-DZSLPTef.mjs → native-builds_._buildId-CfYzRkoT.mjs} +18 -17
- package/.output/server/_ssr/{native-builds_.devices-phkJgI1w.mjs → native-builds_.devices-CBoAFcVA.mjs} +16 -16
- package/.output/server/_ssr/{native-builds_.devices-QK5Z4ACD.mjs → native-builds_.devices-PvBuqXp0.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildDownloadLink-BVtopV-4.mjs → nativeBuildDownloadLink-B-Slw1_O.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-CVQLkYrX.mjs → nativeBuildInstall-_vrEhN0E.mjs} +3 -3
- package/.output/server/_ssr/{release-adoption-rpc-DSlOL5v7.mjs → release-adoption-rpc-BsUYFCSo.mjs} +5 -5
- package/.output/server/_ssr/{remote-config-C4PKU5_z.mjs → remote-config-D-8SQ4po.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DPHJyAHV.mjs → remote-config-DQzpUpwK.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-9VJWDosm.mjs → remote-config-ZObJS2_F.mjs} +19 -19
- package/.output/server/_ssr/{remote-config-rpc-DxQ0jW52.mjs → remote-config-rpc-COjwhaa3.mjs} +3 -3
- package/.output/server/_ssr/{router-C1FV3SPc.mjs → router-DFO8ezEY.mjs} +33 -33
- package/.output/server/_ssr/{routes-DDzrfaZr.mjs → routes-B0kFLck5.mjs} +95 -43
- package/.output/server/_ssr/{routes-Dg1cG9-d.mjs → routes-DLdhFkXy.mjs} +45 -11
- package/.output/server/_ssr/{schema-migration-rpc-DdijfSjx.mjs → schema-migration-rpc-BTlEpk00.mjs} +3 -3
- package/.output/server/_ssr/{select-CQvxbdec.mjs → select-l3hYdF9p.mjs} +1 -1
- package/.output/server/_ssr/{server-CGStUbwn.mjs → server-Dsb2hUyp.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-zjbq02-o.mjs → sidebar-DU3F2THA.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BaUpXI0L.mjs → start-BXlykDIg.mjs} +1 -1
- package/.output/server/_ssr/{switch-_XoBaA1s.mjs → switch-B_NczfZN.mjs} +2 -2
- package/.output/server/_ssr/{table-FoAc6s3r.mjs → table-DScwmE5W.mjs} +1 -1
- package/.output/server/_ssr/{tabs-BgUZHny1.mjs → tabs-DodX8IAE.mjs} +2 -2
- package/.output/server/{_tanstack-start-manifest_v-wLJ-tAN0.mjs → _tanstack-start-manifest_v-D4QtfwLE.mjs} +94 -95
- package/.output/server/index.mjs +300 -307
- package/package.json +7 -7
- package/src/components/features/insights/AppUsage.tsx +3 -5
- package/src/components/features/insights/InsightsControls.tsx +2 -2
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +2 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +79 -21
- package/src/components/features/native-builds/NativeBuildsTable.tsx +8 -6
- package/src/lib/api.ts +10 -2
- package/src/lib/constants.ts +12 -0
- package/src/lib/insights-search.ts +0 -3
- package/src/routes/-native-builds-search.ts +32 -4
- package/src/routes/-releases-search.ts +63 -2
- package/src/routes/index.tsx +113 -29
- package/src/routes/insights.tsx +3 -5
- package/src/routes/insights_.distribution.tsx +2 -2
- package/.output/public/assets/-native-builds-search-BvCftqF2.js +0 -1
- package/.output/public/assets/IosInstall-CyBFeLGv.js +0 -1
- package/.output/public/assets/RolloutPercentageBadge-DnmU8XbU.js +0 -1
- package/.output/public/assets/api-B1z_XXrQ.js +0 -1
- package/.output/public/assets/api-keys-C_u_ZmPS.js +0 -1
- package/.output/public/assets/api-keys-DPuPM7ag.js +0 -1
- package/.output/public/assets/dist-BEIz5ojx.js +0 -1
- package/.output/public/assets/insights-CpnFoyo5.js +0 -2
- package/.output/public/assets/insights-MQrx_wbP.js +0 -1
- package/.output/public/assets/insights-search-CtEcj6lz.js +0 -1
- package/.output/public/assets/insights_.distribution-Bjo0aQE4.js +0 -1
- package/.output/public/assets/insights_.distribution-Dd2mYz8D.js +0 -2
- package/.output/public/assets/insights_.distribution-REbBAqgL.js +0 -1
- package/.output/public/assets/installations-Di02gX_V.js +0 -1
- package/.output/public/assets/installations-iqDa8KPW.js +0 -1
- package/.output/public/assets/native-builds-CkaoQZVh.js +0 -2
- package/.output/public/assets/native-builds-CtqBGw8a.js +0 -1
- package/.output/public/assets/native-builds-hOC_V15R.js +0 -1
- package/.output/public/assets/native-builds_._buildId-CAnF7xPa.js +0 -2
- package/.output/public/assets/native-builds_._buildId-DSbzVVI5.js +0 -1
- package/.output/public/assets/native-builds_.devices-CCmLAkXG.js +0 -1
- package/.output/public/assets/native-builds_.devices-D-8DVNRB.js +0 -2
- package/.output/public/assets/refresh-cw-CpCxPYma.js +0 -1
- package/.output/public/assets/remote-config-CD50k2u7.js +0 -6
- package/.output/public/assets/remote-config-Dmuqm9xx.js +0 -1
- package/.output/public/assets/routes-BMbT1Qdm.js +0 -2
- package/.output/public/assets/routes-D8reVBSx.js +0 -1
- /package/.output/public/assets/{BundleIdDisplay-D8oR8mcP.js → BundleIdDisplay-Bm85NZma.js} +0 -0
- /package/.output/public/assets/{ChannelBadge-Do-lWsLM.js → ChannelBadge-B04sTjw5.js} +0 -0
- /package/.output/public/assets/{NotFoundPage-CijSy63W.js → NotFoundPage-DUWkihqx.js} +0 -0
- /package/.output/public/assets/{PlatformIcon-Kq3q98tU.js → PlatformIcon-CZjIJt0C.js} +0 -0
- /package/.output/public/assets/{QrCode-D3-Vuudy.js → QrCode-DJ5leikY.js} +0 -0
- /package/.output/public/assets/{alert-dialog-Dihztkem.js → alert-dialog-ndHfUqUh.js} +0 -0
- /package/.output/public/assets/{card-BfeRlTvj.js → card-VtWYErXu.js} +0 -0
- /package/.output/public/assets/{dialog-e9AF5T6h.js → dialog-Dx9gstou.js} +0 -0
- /package/.output/public/assets/{empty-DpSPWLc2.js → empty-Cdfs8tuN.js} +0 -0
- /package/.output/public/assets/{field-PkdRPD3A.js → field-CubHQ_EM.js} +0 -0
- /package/.output/public/assets/{relativeTime-D_aYJRc7.js → relativeTime-Wk64dka-.js} +0 -0
- /package/.output/public/assets/{table-r_sYqKTQ.js → table-DtcLx8yw.js} +0 -0
- /package/.output/public/assets/{tabs-BBfg-c0h.js → tabs-DYlO8l4M.js} +0 -0
- /package/.output/public/assets/{valueToPercent-Bn8p2lng.js → valueToPercent-Db73Kirz.js} +0 -0
package/src/routes/index.tsx
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
CircleOff,
|
|
8
8
|
Filter,
|
|
9
9
|
Package,
|
|
10
|
+
RefreshCw,
|
|
10
11
|
RotateCcw,
|
|
11
12
|
Tags,
|
|
12
13
|
X,
|
|
@@ -51,7 +52,12 @@ import { RelativeTime } from "@/components/RelativeTime";
|
|
|
51
52
|
import { RolloutPercentageBadge } from "@/components/RolloutPercentageBadge";
|
|
52
53
|
import { RowReason } from "@/components/RowReason";
|
|
53
54
|
import { TargetDisplay } from "@/components/TargetDisplay";
|
|
54
|
-
import {
|
|
55
|
+
import {
|
|
56
|
+
Alert,
|
|
57
|
+
AlertAction,
|
|
58
|
+
AlertDescription,
|
|
59
|
+
AlertTitle,
|
|
60
|
+
} from "@/components/ui/alert";
|
|
55
61
|
import { Badge } from "@/components/ui/badge";
|
|
56
62
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
57
63
|
import {
|
|
@@ -74,6 +80,7 @@ import {
|
|
|
74
80
|
useReleaseFoldQuery,
|
|
75
81
|
useReleasesQuery,
|
|
76
82
|
} from "@/lib/api";
|
|
83
|
+
import { ALL_CHANNELS } from "@/lib/constants";
|
|
77
84
|
import type { Fold } from "@/lib/server/foldedPage";
|
|
78
85
|
import type { ReleaseListRow } from "@/lib/server/releaseReachability";
|
|
79
86
|
import { cn } from "@/lib/utils";
|
|
@@ -81,11 +88,22 @@ import { cn } from "@/lib/utils";
|
|
|
81
88
|
import {
|
|
82
89
|
hasReleaseFilters,
|
|
83
90
|
releaseFilterOf,
|
|
91
|
+
resolveReleaseSearch,
|
|
84
92
|
type ReleaseSearch,
|
|
93
|
+
showsDefaultReleases,
|
|
85
94
|
updateReleaseFilters,
|
|
86
95
|
validateReleaseSearch,
|
|
87
96
|
} from "./-releases-search";
|
|
88
97
|
|
|
98
|
+
/** The list while its channel is unknown: loading, whatever the cache holds. */
|
|
99
|
+
const PENDING_RELEASES = {
|
|
100
|
+
data: undefined,
|
|
101
|
+
error: null,
|
|
102
|
+
isError: false,
|
|
103
|
+
isPending: true,
|
|
104
|
+
isPlaceholderData: false,
|
|
105
|
+
} as const;
|
|
106
|
+
|
|
89
107
|
/** A fold of unreachable bundles: "1 unreachable bundle", "2 …". */
|
|
90
108
|
const UNREACHABLE_BUNDLES = {
|
|
91
109
|
one: "unreachable bundle",
|
|
@@ -107,18 +125,23 @@ export const Route = createFileRoute("/")({
|
|
|
107
125
|
|
|
108
126
|
function BundleFilterToolbar({
|
|
109
127
|
channels,
|
|
128
|
+
clearable,
|
|
110
129
|
onChange,
|
|
111
130
|
onClear,
|
|
112
131
|
onManageChannels,
|
|
132
|
+
pending,
|
|
113
133
|
search,
|
|
114
134
|
}: {
|
|
115
135
|
channels: readonly ChannelRow[];
|
|
136
|
+
/** Whether the list shows other than what it opens on. */
|
|
137
|
+
clearable: boolean;
|
|
116
138
|
onChange: (filters: Partial<ReleaseSearch>) => void;
|
|
117
139
|
onClear: () => void;
|
|
118
140
|
onManageChannels: () => void;
|
|
141
|
+
/** Whether the channel the list opens on is still unknown. */
|
|
142
|
+
pending: boolean;
|
|
119
143
|
search: ReleaseSearch;
|
|
120
144
|
}) {
|
|
121
|
-
const hasFilters = hasReleaseFilters(search);
|
|
122
145
|
// Releases list by channel and platform together: the index serves that pair.
|
|
123
146
|
const channelSelected = search.channelId !== undefined;
|
|
124
147
|
const channelFilterItems = [
|
|
@@ -138,13 +161,16 @@ function BundleFilterToolbar({
|
|
|
138
161
|
<span className="text-xs font-medium">Filters</span>
|
|
139
162
|
</div>
|
|
140
163
|
<Select
|
|
164
|
+
disabled={pending}
|
|
141
165
|
items={channelFilterItems}
|
|
142
166
|
onValueChange={(value) =>
|
|
143
|
-
onChange(
|
|
144
|
-
|
|
145
|
-
|
|
167
|
+
onChange(
|
|
168
|
+
value === null || value === "all"
|
|
169
|
+
? { channelId: undefined, channels: ALL_CHANNELS }
|
|
170
|
+
: { channelId: value },
|
|
171
|
+
)
|
|
146
172
|
}
|
|
147
|
-
value={search.channelId ?? "all"}
|
|
173
|
+
value={pending ? null : (search.channelId ?? "all")}
|
|
148
174
|
>
|
|
149
175
|
<SelectTrigger
|
|
150
176
|
aria-label="Channel"
|
|
@@ -256,7 +282,7 @@ function BundleFilterToolbar({
|
|
|
256
282
|
</button>
|
|
257
283
|
</Badge>
|
|
258
284
|
) : null}
|
|
259
|
-
{
|
|
285
|
+
{clearable ? (
|
|
260
286
|
<Button
|
|
261
287
|
className="h-11 px-2 text-xs text-muted-foreground hover:text-foreground max-sm:order-3 sm:ml-auto sm:h-8"
|
|
262
288
|
onClick={onClear}
|
|
@@ -530,30 +556,46 @@ function UnreachableBundlesFold({
|
|
|
530
556
|
}
|
|
531
557
|
|
|
532
558
|
function BundlesPage() {
|
|
533
|
-
const
|
|
559
|
+
const urlSearch = Route.useSearch();
|
|
534
560
|
const navigate = Route.useNavigate();
|
|
535
561
|
const isMobile = useIsMobile();
|
|
536
562
|
const [channelsOpen, setChannelsOpen] = useState(false);
|
|
537
563
|
const [expandedReleaseId, setExpandedReleaseId] = useState<string>();
|
|
538
564
|
const folds = useOpenFolds();
|
|
539
|
-
const filter = releaseFilterOf(search);
|
|
540
|
-
const releasesQuery = useReleasesQuery({
|
|
541
|
-
afterReleaseId: search.afterReleaseId,
|
|
542
|
-
beforeReleaseId: search.beforeReleaseId,
|
|
543
|
-
filter,
|
|
544
|
-
// The selected release never folds, so a link to it shows its row.
|
|
545
|
-
releaseId: search.releaseId,
|
|
546
|
-
});
|
|
547
565
|
const channelsQuery = useChannelsQuery();
|
|
548
566
|
const channels = channelsQuery.data ?? [];
|
|
549
|
-
|
|
567
|
+
// The list the page shows: a URL without a channel opens on the default
|
|
568
|
+
// one, known once the channel list arrives. A loaded list outlives a failed
|
|
569
|
+
// refresh; without one, the default list waits, and nothing reads every
|
|
570
|
+
// channel in its place.
|
|
571
|
+
const channelRows = channelsQuery.data;
|
|
572
|
+
const resolved = resolveReleaseSearch(urlSearch, channelRows);
|
|
573
|
+
const channelsFailed = resolved === undefined && channelsQuery.isError;
|
|
574
|
+
const search = resolved ?? urlSearch;
|
|
575
|
+
const filter = releaseFilterOf(search);
|
|
576
|
+
const releasesQuery = useReleasesQuery(
|
|
577
|
+
{
|
|
578
|
+
afterReleaseId: search.afterReleaseId,
|
|
579
|
+
beforeReleaseId: search.beforeReleaseId,
|
|
580
|
+
filter,
|
|
581
|
+
// The selected release never folds, so a link to it shows its row.
|
|
582
|
+
releaseId: search.releaseId,
|
|
583
|
+
},
|
|
584
|
+
// Nothing reads every channel's list on the way to the default one.
|
|
585
|
+
{ enabled: resolved !== undefined },
|
|
586
|
+
);
|
|
587
|
+
const clearable = !showsDefaultReleases(urlSearch, channelRows);
|
|
588
|
+
// Until the channel is known, the list shows nothing the cache holds: a
|
|
589
|
+
// cached page of every channel, or a fold that would read more of it.
|
|
590
|
+
const list = resolved === undefined ? PENDING_RELEASES : releasesQuery;
|
|
591
|
+
const entries = list.data?.entries ?? [];
|
|
550
592
|
// The page's reachable releases (and the selected one), outside its folds.
|
|
551
593
|
const releases = entries.flatMap((entry) =>
|
|
552
594
|
entry.kind === "row" ? [entry.row] : [],
|
|
553
595
|
);
|
|
554
596
|
const pageContext = useRowContext(releases, channels);
|
|
555
|
-
const nextCursor =
|
|
556
|
-
const previousCursor =
|
|
597
|
+
const nextCursor = list.data?.next;
|
|
598
|
+
const previousCursor = list.data?.previous;
|
|
557
599
|
// Features add columns, such as release activity where the console reads it.
|
|
558
600
|
const featureColumns = useReleaseColumns();
|
|
559
601
|
const columnCount = 10 + featureColumns.length;
|
|
@@ -848,6 +890,15 @@ function BundlesPage() {
|
|
|
848
890
|
render={render}
|
|
849
891
|
/>
|
|
850
892
|
);
|
|
893
|
+
// The list it opens on, when that channel has no bundle for the platform.
|
|
894
|
+
const openingTitle = (
|
|
895
|
+
<>
|
|
896
|
+
No {search.platform === "android" ? "Android" : "iOS"} bundles in{" "}
|
|
897
|
+
<span translate="no">
|
|
898
|
+
{channelNames.get(search.channelId ?? "") ?? search.channelId}
|
|
899
|
+
</span>
|
|
900
|
+
</>
|
|
901
|
+
);
|
|
851
902
|
// A page of unreachable bundles alone: one fold under the empty state.
|
|
852
903
|
const foldedOnly = releases.length === 0 && entries.length > 0;
|
|
853
904
|
const empty = (
|
|
@@ -858,9 +909,11 @@ function BundlesPage() {
|
|
|
858
909
|
? "No device gets the bundles here"
|
|
859
910
|
: onLaterPage
|
|
860
911
|
? "No more bundles"
|
|
861
|
-
: hasReleaseFilters(search)
|
|
862
|
-
? "No bundles
|
|
863
|
-
:
|
|
912
|
+
: !hasReleaseFilters(search)
|
|
913
|
+
? "No bundles yet"
|
|
914
|
+
: clearable
|
|
915
|
+
? "No bundles match these filters"
|
|
916
|
+
: openingTitle
|
|
864
917
|
}
|
|
865
918
|
>
|
|
866
919
|
{onLaterPage ? (
|
|
@@ -874,7 +927,7 @@ function BundlesPage() {
|
|
|
874
927
|
>
|
|
875
928
|
Show the newest bundles
|
|
876
929
|
</Link>
|
|
877
|
-
) :
|
|
930
|
+
) : clearable ? (
|
|
878
931
|
<Button
|
|
879
932
|
className="mt-1 min-h-11 sm:min-h-8"
|
|
880
933
|
onClick={() => go({})}
|
|
@@ -882,6 +935,16 @@ function BundlesPage() {
|
|
|
882
935
|
>
|
|
883
936
|
Clear filters
|
|
884
937
|
</Button>
|
|
938
|
+
) : hasReleaseFilters(search) ? (
|
|
939
|
+
<Button
|
|
940
|
+
className="mt-1 min-h-11 sm:min-h-8"
|
|
941
|
+
onClick={() =>
|
|
942
|
+
changeFilters({ channelId: undefined, channels: ALL_CHANNELS })
|
|
943
|
+
}
|
|
944
|
+
variant="outline"
|
|
945
|
+
>
|
|
946
|
+
Show all channels
|
|
947
|
+
</Button>
|
|
885
948
|
) : (
|
|
886
949
|
<>
|
|
887
950
|
<p>Deploy one from your app's project:</p>
|
|
@@ -901,24 +964,45 @@ function BundlesPage() {
|
|
|
901
964
|
<div className="flex h-svh min-h-0 min-w-0 flex-col">
|
|
902
965
|
<BundleFilterToolbar
|
|
903
966
|
channels={channels}
|
|
967
|
+
clearable={clearable}
|
|
904
968
|
onChange={changeFilters}
|
|
905
969
|
onClear={() => go({})}
|
|
906
970
|
onManageChannels={() => setChannelsOpen(true)}
|
|
971
|
+
pending={resolved === undefined}
|
|
907
972
|
search={search}
|
|
908
973
|
/>
|
|
909
974
|
|
|
910
975
|
<div className="flex min-h-0 min-w-0 flex-1 flex-col gap-6 bg-muted/5 p-3 sm:p-6">
|
|
911
|
-
{
|
|
976
|
+
{channelsFailed ? (
|
|
977
|
+
<Alert variant="destructive">
|
|
978
|
+
<AlertTriangle />
|
|
979
|
+
<AlertTitle>Channels couldn't be loaded</AlertTitle>
|
|
980
|
+
<AlertDescription>
|
|
981
|
+
Bundles show once the channels load.
|
|
982
|
+
</AlertDescription>
|
|
983
|
+
<AlertAction>
|
|
984
|
+
<Button
|
|
985
|
+
className="min-h-11 sm:min-h-7"
|
|
986
|
+
onClick={() => void channelsQuery.refetch()}
|
|
987
|
+
size="xs"
|
|
988
|
+
variant="outline"
|
|
989
|
+
>
|
|
990
|
+
<RefreshCw data-icon="inline-start" />
|
|
991
|
+
Retry
|
|
992
|
+
</Button>
|
|
993
|
+
</AlertAction>
|
|
994
|
+
</Alert>
|
|
995
|
+
) : list.isError ? (
|
|
912
996
|
<Alert variant="destructive">
|
|
913
997
|
<AlertTriangle />
|
|
914
998
|
<AlertTitle>Bundles could not be loaded</AlertTitle>
|
|
915
|
-
<AlertDescription>{
|
|
999
|
+
<AlertDescription>{list.error?.message}</AlertDescription>
|
|
916
1000
|
</Alert>
|
|
917
1001
|
) : (
|
|
918
1002
|
<DataTableFrame>
|
|
919
1003
|
{isMobile ? (
|
|
920
1004
|
<div className="h-full overflow-y-auto">
|
|
921
|
-
{
|
|
1005
|
+
{list.isPending ? (
|
|
922
1006
|
<DataCardSkeletons />
|
|
923
1007
|
) : (
|
|
924
1008
|
<>
|
|
@@ -954,7 +1038,7 @@ function BundlesPage() {
|
|
|
954
1038
|
</>
|
|
955
1039
|
}
|
|
956
1040
|
>
|
|
957
|
-
{
|
|
1041
|
+
{list.isPending ? (
|
|
958
1042
|
<DataTableBody>
|
|
959
1043
|
<DataTableSkeletonRows columns={columnCount} />
|
|
960
1044
|
</DataTableBody>
|
|
@@ -985,13 +1069,13 @@ function BundlesPage() {
|
|
|
985
1069
|
</DataTableFrame>
|
|
986
1070
|
)}
|
|
987
1071
|
|
|
988
|
-
{!
|
|
1072
|
+
{!channelsFailed && !list.isError && !list.isPending ? (
|
|
989
1073
|
<DataTablePagination
|
|
990
1074
|
count={releases.length}
|
|
991
1075
|
folded={{ ...foldedTotal(entries), label: "unreachable" }}
|
|
992
1076
|
label="Bundle pagination"
|
|
993
1077
|
noun={["bundle", "bundles"]}
|
|
994
|
-
pending={
|
|
1078
|
+
pending={list.isPlaceholderData}
|
|
995
1079
|
newest={onLaterPage ? { search: newestSearch, to: "/" } : undefined}
|
|
996
1080
|
next={nextSearch ? { search: nextSearch, to: "/" } : undefined}
|
|
997
1081
|
previous={
|
package/src/routes/insights.tsx
CHANGED
|
@@ -11,13 +11,13 @@ import { InsightsScope } from "@/components/features/insights/InsightsScope";
|
|
|
11
11
|
import { UpdateFailures } from "@/components/features/insights/UpdateFailures";
|
|
12
12
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
13
13
|
import { requireConsoleFeature } from "@/lib/console-features-api";
|
|
14
|
+
import { DEFAULT_CHANNEL } from "@/lib/constants";
|
|
14
15
|
import {
|
|
15
16
|
useInsightsRetention,
|
|
16
17
|
useUpdateFailuresQuery,
|
|
17
18
|
} from "@/lib/insights-api";
|
|
18
19
|
import {
|
|
19
20
|
comparedBundleIds,
|
|
20
|
-
DEFAULT_INSIGHTS_CHANNEL,
|
|
21
21
|
validateInsightsSearch,
|
|
22
22
|
} from "@/lib/insights-search";
|
|
23
23
|
import type { AppUsageScope, UsageWindow } from "@/lib/insights-usage";
|
|
@@ -39,7 +39,7 @@ function InsightsPage() {
|
|
|
39
39
|
const retention = useInsightsRetention();
|
|
40
40
|
const usageWindow = search.window ?? "24h";
|
|
41
41
|
const bundleWindow = search.bundleWindow ?? "24h";
|
|
42
|
-
const channel = search.channel ??
|
|
42
|
+
const channel = search.channel ?? DEFAULT_CHANNEL;
|
|
43
43
|
const platform = search.platform ?? "all";
|
|
44
44
|
const scope: AppUsageScope = {
|
|
45
45
|
platform,
|
|
@@ -89,9 +89,7 @@ function InsightsPage() {
|
|
|
89
89
|
...next,
|
|
90
90
|
// Defaults stay out of the URL.
|
|
91
91
|
channel:
|
|
92
|
-
next.channel ===
|
|
93
|
-
? undefined
|
|
94
|
-
: next.channel,
|
|
92
|
+
next.channel === DEFAULT_CHANNEL ? undefined : next.channel,
|
|
95
93
|
platform: next.platform === "all" ? undefined : next.platform,
|
|
96
94
|
// A release and bundles chosen in another channel or platform
|
|
97
95
|
// do not carry over; a new focus picks its own bundles.
|
|
@@ -38,10 +38,10 @@ import {
|
|
|
38
38
|
} from "@/components/ui/select";
|
|
39
39
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
40
40
|
import { requireConsoleFeature } from "@/lib/console-features-api";
|
|
41
|
+
import { DEFAULT_CHANNEL } from "@/lib/constants";
|
|
41
42
|
import { useInsightsRetention } from "@/lib/insights-api";
|
|
42
43
|
import { keepsTwelveMonths } from "@/lib/insights-retention";
|
|
43
44
|
import {
|
|
44
|
-
DEFAULT_INSIGHTS_CHANNEL,
|
|
45
45
|
validateDistributionSearch,
|
|
46
46
|
validateInsightsSearch,
|
|
47
47
|
} from "@/lib/insights-search";
|
|
@@ -86,7 +86,7 @@ function DistributionPage() {
|
|
|
86
86
|
const navigate = Route.useNavigate();
|
|
87
87
|
const input = {
|
|
88
88
|
platform: search.platform ?? "all",
|
|
89
|
-
channel: search.channel ??
|
|
89
|
+
channel: search.channel ?? DEFAULT_CHANNEL,
|
|
90
90
|
appVersion: search.appVersion,
|
|
91
91
|
window: search.window ?? "24h",
|
|
92
92
|
};
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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{E as h,a as g,b as _,f as v,i as y,l as b,o as x,p as S,r as C,u as ne,w as re}from"./native-builds-hOC_V15R.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=>{h(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&&y.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&&y.test(t)?t:null;(0,O.useEffect)(()=>{n!==null&&(J(g,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&&y.test(e)?e:null,r=n,i=0,a=e=>{let t=e.receipt!==null||e.requested;e.udid!==null&&t&&(i+=1,J(g,e.udid),e.receipt!==null&&(v(e.udid,e.receipt),B(ne(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(C)}catch{}let o=()=>{let n=e(Ee(`hot-updater-ios-udid`))??r.udid,a=(r.udid===n?r.receipt:null)??re(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,ke=(e,t)=>{let[,n]=(0,O.useReducer)(e=>e+1,0),r=e+x-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 Z({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:_(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:S(b(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=b(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)(``),[_,v]=(0,O.useState)(null),y=_!==null&&s<=_.readBefore,x=y?_.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=y?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})=>v({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(b(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=ke(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:t.is_sandbox?`This IPA is an App Store export, which doesn't install from this page.`:`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)(Z,{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};
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ConsoleFeatureUnavailable-C0iDIboF.js";var t=e;export{t as notFoundComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Li as e,Ri as t,Vi as n}from"./sidebar-UnsNYOry.js";var r=n(t(),1),i=n(e(),1);function a(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var o=e=>{switch(e){case`success`:return l;case`info`:return d;case`warning`:return u;case`error`:return f;default:return null}},s=Array(12).fill(0),c=({visible:e,className:t})=>r.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},r.createElement(`div`,{className:`sonner-spinner`},s.map((e,t)=>r.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),l=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),u=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),d=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),f=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},r.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),p=r.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},r.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),r.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ee=()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},m=1,h=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:m++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let i=Promise.resolve(e instanceof Function?e():e),a=n!==void 0,o,s=i.then(async e=>{if(o=[`resolve`,e],r.isValidElement(e))a=!1,this.create({id:n,type:`default`,message:e});else if(_(e)&&!e.ok){a=!1;let i=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,o=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}else if(e instanceof Error){a=!1;let i=typeof t.error==`function`?await t.error(e):t.error,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}else if(t.success!==void 0){a=!1;let i=typeof t.success==`function`?await t.success(e):t.success,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`success`,description:o,...s})}}).catch(async e=>{if(o=[`reject`,e],t.error!==void 0){a=!1;let i=typeof t.error==`function`?await t.error(e):t.error,o=typeof t.description==`function`?await t.description(e):t.description,s=typeof i==`object`&&!r.isValidElement(i)?i:{message:i};this.create({id:n,type:`error`,description:o,...s})}}).finally(()=>{a&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),c=()=>new Promise((e,t)=>s.then(()=>o[0]===`reject`?t(o[1]):e(o[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:c}:Object.assign(n,{unwrap:c})},this.custom=(e,t)=>{let n=t?.id||m++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},g=(e,t)=>{let n=t?.id||m++;return h.addToast({title:e,...t,id:n}),n},_=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,v=Object.assign(g,{success:h.success,info:h.info,warning:h.warning,error:h.error,custom:h.custom,message:h.message,promise:h.promise,dismiss:h.dismiss,loading:h.loading},{getHistory:()=>h.toasts,getToasts:()=>h.getActiveToasts()});a(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function y(e){return e.label!==void 0}var te=3,b=`24px`,x=`16px`,S=4e3,C=356,w=14,T=45,E=200;function D(...e){return e.filter(Boolean).join(` `)}function ne(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var O=e=>{let{invert:t,toast:n,unstyled:i,interacting:a,setHeights:s,visibleToasts:l,heights:u,index:d,toasts:f,expanded:m,removeToast:h,defaultRichColors:g,closeButton:_,style:v,cancelButtonStyle:te,actionButtonStyle:b,className:x=``,descriptionClassName:C=``,duration:w,position:O,gap:k,expandByDefault:A,classNames:j,icons:M,closeButtonAriaLabel:re=`Close toast`}=e,[N,P]=r.useState(null),[F,ie]=r.useState(null),[I,L]=r.useState(!1),[R,z]=r.useState(!1),[B,V]=r.useState(!1),[ae,oe]=r.useState(!1),[se,ce]=r.useState(!1),[le,H]=r.useState(0),[ue,U]=r.useState(0),W=r.useRef(n.duration||w||S),de=r.useRef(null),G=r.useRef(null),fe=d===0,pe=d+1<=l,K=n.type,q=n.dismissible!==!1,me=n.className||``,he=n.descriptionClassName||``,J=r.useMemo(()=>u.findIndex(e=>e.toastId===n.id)||0,[u,n.id]),ge=r.useMemo(()=>n.closeButton??_,[n.closeButton,_]),_e=r.useMemo(()=>n.duration||w||S,[n.duration,w]),Y=r.useRef(0),X=r.useRef(0),ve=r.useRef(0),Z=r.useRef(null),[ye,be]=O.split(`-`),xe=r.useMemo(()=>u.reduce((e,t,n)=>n>=J?e:e+t.height,0),[u,J]),Se=ee(),Ce=n.invert||t,Q=K===`loading`;X.current=r.useMemo(()=>J*k+xe,[J,xe]),r.useEffect(()=>{W.current=_e},[_e]),r.useEffect(()=>{L(!0)},[]),r.useEffect(()=>{let e=G.current;if(e){let t=e.getBoundingClientRect().height;return U(t),s(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>s(e=>e.filter(e=>e.toastId!==n.id))}},[s,n.id]),r.useLayoutEffect(()=>{if(!I)return;let e=G.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,U(r),s(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[I,n.title,n.description,s,n.id,n.jsx,n.action,n.cancel]);let $=r.useCallback(()=>{z(!0),H(X.current),s(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{h(n)},E)},[n,h,s,X]);r.useEffect(()=>{if(n.promise&&K===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return m||a||Se?(()=>{if(ve.current<Y.current){let e=new Date().getTime()-Y.current;W.current-=e}ve.current=new Date().getTime()})():W.current!==1/0&&(Y.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),$()},W.current)),()=>clearTimeout(e)},[m,a,n,K,Se,$]),r.useEffect(()=>{n.delete&&($(),n.onDismiss==null||n.onDismiss.call(n,n))},[$,n.delete]);function we(){return M?.loading?r.createElement(`div`,{className:D(j?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":K===`loading`},M.loading):r.createElement(c,{className:D(j?.loader,n?.classNames?.loader),visible:K===`loading`})}let Te=n.icon||M?.[K]||o(K);return r.createElement(`li`,{tabIndex:0,ref:G,className:D(x,me,j?.toast,n?.classNames?.toast,j?.default,j?.[K],n?.classNames?.[K]),"data-sonner-toast":``,"data-rich-colors":n.richColors??g,"data-styled":!(n.jsx||n.unstyled||i),"data-mounted":I,"data-promise":!!n.promise,"data-swiped":se,"data-removed":R,"data-visible":pe,"data-y-position":ye,"data-x-position":be,"data-index":d,"data-front":fe,"data-swiping":B,"data-dismissible":q,"data-type":K,"data-invert":Ce,"data-swipe-out":ae,"data-swipe-direction":F,"data-expanded":!!(m||A&&I),"data-testid":n.testId,style:{"--index":d,"--toasts-before":d,"--z-index":f.length-d,"--offset":`${R?le:X.current}px`,"--initial-height":A?`auto`:`${ue}px`,...v,...n.style},onDragEnd:()=>{V(!1),P(null),Z.current=null},onPointerDown:e=>{e.button!==2&&(Q||!q||(de.current=new Date,H(X.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(V(!0),Z.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(ae||!q)return;Z.current=null;let e=Number(G.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(G.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-de.current?.getTime(),i=N===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=T||a>.11){H(X.current),n.onDismiss==null||n.onDismiss.call(n,n),ie(N===`x`?e>0?`right`:`left`:t>0?`down`:`up`),$(),oe(!0);return}else{var o,s;(o=G.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=G.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`)}ce(!1),V(!1),P(null)},onPointerMove:t=>{var n,r;if(!Z.current||!q||window.getSelection()?.toString().length>0)return;let i=t.clientY-Z.current.y,a=t.clientX-Z.current.x,o=e.swipeDirections??ne(O);!N&&(Math.abs(a)>1||Math.abs(i)>1)&&P(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(N===`y`){if(o.includes(`top`)||o.includes(`bottom`))if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if(N===`x`&&(o.includes(`left`)||o.includes(`right`)))if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&ce(!0),(n=G.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=G.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},ge&&!n.jsx&&K!==`loading`?r.createElement(`button`,{"aria-label":re,"data-disabled":Q,"data-close-button":!0,onClick:Q||!q?()=>{}:()=>{$(),n.onDismiss==null||n.onDismiss.call(n,n)},className:D(j?.closeButton,n?.classNames?.closeButton)},M?.close??p):null,(K||n.icon||n.promise)&&n.icon!==null&&(M?.[K]!==null||n.icon)?r.createElement(`div`,{"data-icon":``,className:D(j?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||we():null,n.type===`loading`?null:Te):null,r.createElement(`div`,{"data-content":``,className:D(j?.content,n?.classNames?.content)},r.createElement(`div`,{"data-title":``,className:D(j?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?r.createElement(`div`,{"data-description":``,className:D(C,he,j?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),r.isValidElement(n.cancel)?n.cancel:n.cancel&&y(n.cancel)?r.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||te,onClick:e=>{y(n.cancel)&&q&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),$())},className:D(j?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,r.isValidElement(n.action)?n.action:n.action&&y(n.action)?r.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||b,onClick:e=>{y(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&$())},className:D(j?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function k(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function A(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?x:b;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var j=r.forwardRef(function(e,t){let{id:n,invert:a,position:o=`bottom-right`,hotkey:s=[`altKey`,`KeyT`],expand:c,closeButton:l,className:u,offset:d,mobileOffset:f,theme:p=`light`,richColors:ee,duration:m,style:g,visibleToasts:_=te,toastOptions:v,dir:y=k(),gap:b=w,icons:x,containerAriaLabel:S=`Notifications`}=e,[T,E]=r.useState([]),D=r.useMemo(()=>n?T.filter(e=>e.toasterId===n):T.filter(e=>!e.toasterId),[T,n]),ne=r.useMemo(()=>Array.from(new Set([o].concat(D.filter(e=>e.position).map(e=>e.position)))),[D,o]),[j,M]=r.useState([]),[re,N]=r.useState(!1),[P,F]=r.useState(!1),[ie,I]=r.useState(p===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:p),L=r.useRef(null),R=s.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),z=r.useRef(null),B=r.useRef(!1),V=r.useCallback(e=>{E(t=>(t.find(t=>t.id===e.id)?.delete||h.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return r.useEffect(()=>h.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{E(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{i.flushSync(()=>{E(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[T]),r.useEffect(()=>{if(p!==`system`){I(p);return}if(p===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?I(`dark`):I(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{I(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{I(e?`dark`:`light`)}catch(e){console.error(e)}})}},[p]),r.useEffect(()=>{T.length<=1&&N(!1)},[T]),r.useEffect(()=>{let e=e=>{if(s.every(t=>e[t]||e.code===t)){var t;N(!0),(t=L.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===L.current||L.current?.contains(document.activeElement))&&N(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[s]),r.useEffect(()=>{if(L.current)return()=>{z.current&&(z.current.focus({preventScroll:!0}),z.current=null,B.current=!1)}},[L.current]),r.createElement(`section`,{ref:t,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},ne.map((t,n)=>{let[i,o]=t.split(`-`);return D.length?r.createElement(`ol`,{key:t,dir:y===`auto`?k():y,tabIndex:-1,ref:L,className:u,"data-sonner-toaster":!0,"data-sonner-theme":ie,"data-y-position":i,"data-x-position":o,style:{"--front-toast-height":`${j[0]?.height||0}px`,"--width":`${C}px`,"--gap":`${b}px`,...g,...A(d,f)},onBlur:e=>{B.current&&!e.currentTarget.contains(e.relatedTarget)&&(B.current=!1,z.current&&=(z.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||B.current||(B.current=!0,z.current=e.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{P||N(!1)},onDragEnd:()=>N(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||F(!0)},onPointerUp:()=>F(!1)},D.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>r.createElement(O,{key:n.id,icons:x,index:i,toast:n,defaultRichColors:ee,duration:v?.duration??m,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:a,visibleToasts:_,closeButton:v?.closeButton??l,interacting:P,position:t,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:V,toasts:D.filter(e=>e.position==n.position),heights:j.filter(e=>e.position==n.position),setHeights:M,expandByDefault:c,gap:b,expanded:re,swipeDirections:e.swipeDirections}))):null}))});export{v as n,j as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights-MQrx_wbP.js","assets/ConsoleFeatureUnavailable-C0iDIboF.js","assets/sidebar-UnsNYOry.js","assets/console-features-api-De6tXQnd.js","assets/arrow-up-right-BPRe5soE.js","assets/NotFoundPage-CijSy63W.js","assets/link-D95E0fwF.js","assets/empty-DpSPWLc2.js","assets/insights-Bm4Kua5R.js","assets/alert-dialog-Dihztkem.js","assets/select-BAd2hAoW.js","assets/useCompositeListItem-B9ONn9qn.js","assets/check-Dz_5aNwx.js","assets/tabs-BBfg-c0h.js","assets/insights-usage-rpc-DdmD1Nuy.js","assets/valueToPercent-Bn8p2lng.js","assets/EventDetails-DFWS-HcW.js","assets/insights-api-CXXCRZhF.js","assets/preload-helper-52zhjEsw.js","assets/copy-BxI24-g-.js","assets/download-ekENI2Sw.js","assets/input-group-DNfVeeYZ.js","assets/smartphone-lSZWrqxx.js","assets/badge-D4Tiwei-.js","assets/dist-BEIz5ojx.js","assets/HashValueDisplay-DKziWjEg.js","assets/InsightsPageHeader-BATHTZWn.js","assets/list-Dq40Mmoj.js","assets/arrow-right-jHG0fJt7.js","assets/chevron-right-CuYrscDY.js","assets/circle-off-BZFOMb8J.js","assets/refresh-cw-CpCxPYma.js","assets/rotate-cw-Bn3fIWmY.js","assets/undo-2-CGeTBZjC.js","assets/BundleIdDisplay-D8oR8mcP.js","assets/insights-search-CtEcj6lz.js","assets/uuidv7-DgXZ1zRR.js","assets/PlatformIcon-Kq3q98tU.js","assets/card-BfeRlTvj.js","assets/table-r_sYqKTQ.js","assets/api-B1z_XXrQ.js","assets/useMutation-BWX97JX2.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{i as e,r as t,t as n}from"./preload-helper-52zhjEsw.js";import{r}from"./console-features-api-De6tXQnd.js";import{a as i}from"./insights-search-CtEcj6lz.js";var a=e(`/insights`)({beforeLoad:({context:e})=>r(e.queryClient,`insightsAnalytics`),notFoundComponent:t(()=>n(()=>import(`./insights-MQrx_wbP.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:t(()=>n(()=>import(`./insights-Bm4Kua5R.js`),__vite__mapDeps([8,2,9,10,11,12,13,14,15,6,16,17,18,19,20,21,22,23,24,25,26,3,27,7,28,4,29,30,31,32,33,34,35,36,37,38,39,40,41])),`component`),validateSearch:i});export{a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ConsoleFeatureUnavailable-C0iDIboF.js";var t=e;export{t as notFoundComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Di as e,Ri as t,Vi as n,at as r,gr as i,nt as a,rt as o}from"./sidebar-UnsNYOry.js";import{b as s}from"./insights-api-CXXCRZhF.js";import{m as c,t as l}from"./uuidv7-DgXZ1zRR.js";var u=n(t(),1),d=e();function f({label:e,children:t}){let n=(0,u.useId)(),[c,l]=(0,u.useState)(!1);return(0,d.jsxs)(a,{open:c,onOpenChange:l,triggerId:n,children:[(0,d.jsx)(r,{id:n,"aria-describedby":c?`${n}-description`:void 0,closeOnClick:!1,onClick:()=>l(e=>!e),render:(0,d.jsx)(i,{"aria-label":e,className:`size-11 sm:size-7`,size:`icon`,variant:`ghost`}),children:(0,d.jsx)(s,{})}),(0,d.jsx)(o,{id:`${n}-description`,role:`tooltip`,className:`max-w-64`,side:`bottom`,children:t})]})}var p=e=>typeof e==`string`&&e.trim().length>0&&e.length<=1024?e:void 0,m=e=>e===`24h`||e===`7d`||e===`30d`?e:void 0,h=e=>e===`adoption`||e===`crashes`?e:void 0,g=e=>e===`12m`?e:m(e),_=`production`,v=e=>e===`all`||e===`ios`||e===`android`?e:void 0;function y(e){return{platform:v(e.platform),channel:p(e.channel),appVersion:p(e.appVersion),window:g(e.window),bundleWindow:m(e.bundleWindow),releaseId:p(e.releaseId),healthChart:h(e.healthChart),bundles:p(e.bundles)}}function b(e){return{...y(e),version:p(e.version),page:typeof e.page==`number`&&Number.isSafeInteger(e.page)&&e.page>0?e.page:void 0}}function x(e,t=Date.now()){if(!c(e))return`7d`;let n=t-l(e);return n<=864e5?`24h`:n<=7*864e5?`7d`:`30d`}var S=e=>e===void 0?void 0:[...new Set(e.split(`,`).filter(e=>e.length>0))];export{y as a,b as i,x as n,f as o,S as r,_ as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,Di as t,Hr as n,_r as r,gr as i}from"./sidebar-UnsNYOry.js";import{t as a}from"./link-D95E0fwF.js";import{t as o}from"./arrow-left-CxxDwBQs.js";import{t as s}from"./arrow-up-right-BPRe5soE.js";import{o as c,u as ee}from"./insights-api-CXXCRZhF.js";import{a as l,i as u,n as d,o as f,r as p,t as m}from"./select-BAd2hAoW.js";import{t as h}from"./rotate-cw-Bn3fIWmY.js";import{a as g,i as _,n as v,t as y}from"./badge-D4Tiwei-.js";import{a as te,o as ne}from"./insights-search-CtEcj6lz.js";import{a as re,i as b,n as x,o as S,t as C}from"./card-BfeRlTvj.js";import{a as w,t as T}from"./field-PkdRPD3A.js";import{i as E,o as D,r as O,t as k}from"./empty-DpSPWLc2.js";import{t as A}from"./PlatformIcon-Kq3q98tU.js";import{t as j}from"./insights_.distribution-Dd2mYz8D.js";import{t as M}from"./BundleIdDisplay-D8oR8mcP.js";import{n as N,t as P}from"./insights-usage-rpc-DdmD1Nuy.js";import{c as ie,n as F,o as I,t as L}from"./InsightsPageHeader-BATHTZWn.js";var R=t(),z=20,B=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`,timeZone:`UTC`}),V=e=>e.releaseId??(e.builtinBundleId?`Built-in bundle ${e.builtinBundleId}`:`Unknown bundle`);function H({bundleId:e}){return(0,R.jsxs)(`div`,{className:`flex min-h-11 min-w-0 flex-wrap items-center gap-2 md:min-h-9`,children:[(0,R.jsx)(F,{}),(0,R.jsx)(M,{bundleId:e,className:`text-muted-foreground`})]})}function U(){let t=j.useSearch(),M=c(),F=j.useNavigate(),U={platform:t.platform??`all`,channel:t.channel??`production`,appVersion:t.appVersion,window:t.window??`24h`},W=n({queryKey:[`insights`,`app-usage`,U],queryFn:()=>P({data:U}),staleTime:3e4}),G=W.error?void 0:W.data,K=G?`since ${B.format(G.distributionSinceMs)}, 00:00 UTC`:`in this period`,q=(G?.bundleDistribution??[]).filter(e=>!t.version||e.appVersion===t.version),J=q.reduce((e,t)=>e+t.installations,0),Y=Math.max(1,Math.ceil(q.length/z)),X=Math.min(t.page??1,Y),Z=[...new Set([...G?.versions.map(e=>e.name)??[],...t.version?[t.version]:[]])],Q=te(t),$=e=>void F({search:{...t,page:void 0,...e}});return(0,R.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,R.jsx)(L,{view:`distribution`,overviewSearch:Q}),(0,R.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 px-4 py-6 sm:p-8`,children:(0,R.jsxs)(`div`,{className:`mx-auto flex w-full max-w-6xl flex-col gap-6`,children:[(0,R.jsxs)(a,{to:`/insights`,search:Q,className:r({variant:`ghost`,className:`h-11 w-fit sm:h-9`}),children:[(0,R.jsx)(o,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Back to overview`]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-4`,children:[(0,R.jsx)(`h2`,{className:`text-2xl font-semibold tracking-tight`,children:`Distribution`}),(0,R.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,R.jsx)(I,{twelveMonths:ee(M),window:U.window,onWindowChange:e=>$({window:e})}),(0,R.jsx)(i,{"aria-label":`Refresh distribution`,variant:`ghost`,size:`icon`,className:`size-11 sm:size-9`,disabled:W.isFetching,onClick:()=>void W.refetch(),children:(0,R.jsx)(h,{"aria-hidden":`true`})})]})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-4`,children:[(0,R.jsxs)(T,{className:`w-full sm:w-64`,children:[(0,R.jsx)(w,{htmlFor:`distribution-version`,children:`App version`}),(0,R.jsxs)(m,{items:Object.fromEntries([[`all`,`All versions`],...Z.map(e=>[`version:${e}`,e])]),value:t.version?`version:${t.version}`:`all`,onValueChange:e=>{e!==null&&$({version:e===`all`?void 0:e.slice(8)})},children:[(0,R.jsx)(l,{id:`distribution-version`,className:`min-h-11 w-full sm:min-h-9`,children:(0,R.jsx)(f,{})}),(0,R.jsx)(d,{children:(0,R.jsxs)(p,{children:[(0,R.jsx)(u,{value:`all`,children:`All versions`}),Z.map(e=>(0,R.jsx)(u,{value:`version:${e}`,children:e},e))]})})]})]}),(0,R.jsxs)(`div`,{className:`flex min-h-9 flex-wrap items-center gap-2`,"aria-label":`Distribution scope`,children:[(0,R.jsxs)(y,{variant:`outline`,className:`gap-1.5`,children:[U.platform===`all`?null:(0,R.jsx)(A,{platform:U.platform,className:`size-3.5`}),U.platform===`all`?`All platforms`:U.platform===`ios`?`iOS`:`Android`]}),(0,R.jsx)(y,{variant:`outline`,children:U.channel}),U.appVersion?(0,R.jsxs)(y,{variant:`outline`,children:[`Reports from `,U.appVersion]}):null]})]}),(0,R.jsxs)(C,{"aria-label":`Bundles by app version`,role:`region`,className:`min-w-0`,children:[(0,R.jsxs)(re,{className:`flex flex-col gap-3`,children:[(0,R.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,R.jsx)(S,{children:`Bundles by app version`}),(0,R.jsxs)(ne,{label:`How bundle distribution is counted`,children:[`Each installation counts once, by its latest report`,` `,K,`. Shares are within each app version. Built-in bundle: the bundle the native build shipped, by its ID. Unknown bundle: no deployment and no built-in bundle ID.`]})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-1`,children:[W.isPending?(0,R.jsx)(e,{className:`h-9 w-16`}):(0,R.jsx)(`p`,{className:`text-3xl font-semibold tabular-nums`,children:G?`${G.truncated?`≥`:``}${J.toLocaleString()}`:`—`}),(0,R.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Reporting installations`})]})]}),(0,R.jsxs)(x,{className:`flex min-w-0 flex-col gap-4`,children:[G?.truncated?(0,R.jsxs)(v,{children:[(0,R.jsx)(g,{children:`Partial history`}),(0,R.jsxs)(_,{children:[`Counts and shares reflect reports since`,` `,new Date(G.sinceMs).toLocaleString(`en`,{timeZone:`UTC`}),` `,`UTC. Choose a shorter period for a more complete view.`]})]}):null,W.isPending?(0,R.jsx)(e,{"aria-label":`Loading bundle distribution`,className:`h-64`}):W.error?(0,R.jsxs)(`div`,{className:`flex flex-col items-start gap-4`,children:[(0,R.jsx)(ie,{error:W.error,fallbackTitle:`Distribution unavailable`}),(0,R.jsx)(i,{variant:`outline`,onClick:()=>void W.refetch(),children:`Retry distribution`})]}):q.length===0?(0,R.jsxs)(k,{children:[(0,R.jsxs)(E,{children:[(0,R.jsx)(D,{children:`No bundles reported`}),(0,R.jsx)(O,{children:`Choose another version or period, or change the filters in the overview.`})]}),(0,R.jsx)(i,{variant:`outline`,onClick:()=>$({version:void 0}),children:`Show all versions`})]}):(0,R.jsxs)(`div`,{className:`min-w-0`,children:[(0,R.jsxs)(`div`,{"aria-hidden":`true`,className:`hidden grid-cols-[8rem_minmax(0,1fr)_7rem_7rem] gap-4 border-b px-3 pb-3 text-xs text-muted-foreground md:grid`,children:[(0,R.jsx)(`span`,{children:`App version`}),(0,R.jsx)(`span`,{children:`Bundle ID`}),(0,R.jsx)(`span`,{className:`text-right`,children:`Active installations`}),(0,R.jsx)(`span`,{className:`text-right`,children:`Version share`})]}),(0,R.jsx)(`ul`,{"aria-label":`Bundle distribution`,className:`divide-y`,children:q.slice((X-1)*z,X*z).map(e=>{let t=G?.versions.find(t=>t.name===e.appVersion)?.installations??0,n=t>0?e.installations/t*100:0;return(0,R.jsxs)(`li`,{className:`grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-4 gap-y-3 px-1 py-4 md:grid-cols-[8rem_minmax(0,1fr)_7rem_7rem] md:px-3`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`truncate text-sm font-medium`,title:e.appVersion,children:e.appVersion}),(0,R.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs text-muted-foreground`,children:[(0,R.jsx)(A,{platform:e.platform,className:`size-3.5`}),e.platform===`ios`?`iOS`:`Android`]})]}),(0,R.jsxs)(`div`,{className:`col-span-2 row-start-2 min-w-0 md:col-span-1 md:row-auto`,children:[e.releaseId?(0,R.jsxs)(a,{to:`/`,search:{releaseId:e.releaseId},"aria-label":`Review bundle ${e.releaseId} for app version ${e.appVersion}`,className:`flex min-h-11 min-w-0 items-center gap-2 text-xs underline-offset-4 hover:underline md:min-h-9`,children:[(0,R.jsx)(`span`,{className:`break-all font-mono`,children:e.releaseId}),(0,R.jsx)(s,{"aria-hidden":`true`,className:`size-3.5 shrink-0`})]}):e.builtinBundleId?null:(0,R.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Unknown bundle`}),e.builtinBundleId?(0,R.jsx)(H,{bundleId:e.builtinBundleId}):null]}),(0,R.jsxs)(`div`,{className:`col-start-2 row-start-1 text-right md:col-auto md:row-auto`,children:[(0,R.jsx)(`span`,{className:`text-sm font-medium tabular-nums`,children:e.installations.toLocaleString()}),(0,R.jsx)(`span`,{className:`ml-1 text-xs text-muted-foreground md:sr-only`,children:`active`}),(0,R.jsxs)(`p`,{className:`mt-1 text-xs tabular-nums text-muted-foreground md:hidden`,children:[n.toFixed(1),`% of version`]})]}),(0,R.jsxs)(`div`,{className:`hidden flex-col gap-2 md:flex`,children:[(0,R.jsxs)(`span`,{className:`text-right text-sm tabular-nums`,children:[n.toFixed(1),`%`]}),(0,R.jsx)(N,{"aria-label":`${V(e)} share in ${e.appVersion} on ${e.platform}`,value:n})]})]},JSON.stringify([e.appVersion,e.platform,e.releaseId,e.builtinBundleId]))})})]})]}),G&&q.length>0?(0,R.jsxs)(b,{className:`flex flex-wrap items-center justify-between gap-3 border-t pt-4`,children:[(0,R.jsxs)(`p`,{className:`text-xs tabular-nums text-muted-foreground`,children:[(X-1)*z+1,`–`,Math.min(X*z,q.length),` of `,q.length]}),(0,R.jsxs)(`nav`,{"aria-label":`Distribution pages`,className:`flex gap-2`,children:[(0,R.jsx)(i,{variant:`outline`,className:`h-11 sm:h-9`,disabled:X<=1,onClick:()=>$({page:X-1}),children:`Previous`}),(0,R.jsx)(i,{variant:`outline`,className:`h-11 sm:h-9`,disabled:X>=Y,onClick:()=>$({page:X+1}),children:`Next`})]})]}):null]})]})})]})}export{U as component};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights_.distribution-REbBAqgL.js","assets/ConsoleFeatureUnavailable-C0iDIboF.js","assets/sidebar-UnsNYOry.js","assets/console-features-api-De6tXQnd.js","assets/arrow-up-right-BPRe5soE.js","assets/NotFoundPage-CijSy63W.js","assets/link-D95E0fwF.js","assets/empty-DpSPWLc2.js","assets/insights_.distribution-Bjo0aQE4.js","assets/select-BAd2hAoW.js","assets/useCompositeListItem-B9ONn9qn.js","assets/check-Dz_5aNwx.js","assets/insights-usage-rpc-DdmD1Nuy.js","assets/valueToPercent-Bn8p2lng.js","assets/arrow-left-CxxDwBQs.js","assets/insights-api-CXXCRZhF.js","assets/preload-helper-52zhjEsw.js","assets/rotate-cw-Bn3fIWmY.js","assets/badge-D4Tiwei-.js","assets/BundleIdDisplay-D8oR8mcP.js","assets/insights-search-CtEcj6lz.js","assets/uuidv7-DgXZ1zRR.js","assets/PlatformIcon-Kq3q98tU.js","assets/InsightsPageHeader-BATHTZWn.js","assets/tabs-BBfg-c0h.js","assets/list-Dq40Mmoj.js","assets/card-BfeRlTvj.js","assets/field-PkdRPD3A.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{i as e,r as t,t as n}from"./preload-helper-52zhjEsw.js";import{r}from"./console-features-api-De6tXQnd.js";import{i}from"./insights-search-CtEcj6lz.js";var a=e(`/insights_/distribution`)({beforeLoad:({context:e})=>r(e.queryClient,`insightsAnalytics`),notFoundComponent:t(()=>n(()=>import(`./insights_.distribution-REbBAqgL.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:t(()=>n(()=>import(`./insights_.distribution-Bjo0aQE4.js`),__vite__mapDeps([8,2,9,10,11,12,13,6,14,4,15,16,17,18,19,20,21,22,23,24,3,25,26,7,27])),`component`),validateSearch:i});export{a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ConsoleFeatureUnavailable-C0iDIboF.js";var t=e;export{t as notFoundComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ConsoleFeatureUnavailable-C0iDIboF.js";var t=e;export{t as notFoundComponent};
|