@hot-updater/console 1.2.0-rc.34 → 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-CP7nosYx.js → RelativeTime-CAIee8Fr.js} +1 -1
- package/.output/public/assets/RolloutPercentageBadge-BmtfOGOm.js +1 -0
- package/.output/public/assets/{RowReason-D7TZ2xwW.js → RowReason-Cuf4SbKm.js} +1 -1
- package/.output/public/assets/{SandboxBadge-BPf2uve4.js → SandboxBadge-Cn1mlvQg.js} +1 -1
- package/.output/public/assets/{TargetDisplay-DzSkf5yP.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-CccnEzaa.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-CUEijItf.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/_libs/lucide-react.mjs +13 -1
- package/.output/server/_ssr/{-native-builds-search-OJ8XmaBa.mjs → -native-builds-search-woFrbAdI.mjs} +19 -7
- package/.output/server/_ssr/{BundleIdDisplay-C2Yhau3H.mjs → BundleIdDisplay-BLXpHocZ.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-BTUSgvbr.mjs → ChannelBadge-CWIc9tmb.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BDSJSs7U.mjs → ConsoleFeatureUnavailable-B4w26Z-l.mjs} +7 -7
- package/.output/server/_ssr/{EventDetails-wqpPsSDt.mjs → EventDetails-CnAKWnvZ.mjs} +8 -8
- package/.output/server/_ssr/{HashValueDisplay-yosN9R32.mjs → HashValueDisplay-DbMfscEm.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-DUvHESff.mjs → InsightsPageHeader-CGB3vsS1.mjs} +8 -8
- package/.output/server/_ssr/{IosInstall-DAZxDeBB.mjs → IosInstall-D9zJGmaC.mjs} +9 -9
- package/.output/server/_ssr/{NativeBuildsNav-JvQo5YkG.mjs → NativeBuildsNav-CEKiVJZ2.mjs} +3 -3
- package/.output/server/_ssr/{NotFoundPage-Z48ip8aB.mjs → NotFoundPage-DZ6L0Lix.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-X18AN8Yp.mjs → PlatformIcon-C22qEcwo.mjs} +1 -1
- package/.output/server/_ssr/{QrCode-NrGOfAPX.mjs → QrCode-Be-7de3s.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-BiGH0j0S.mjs → RelativeTime-B2N63vu0.mjs} +4 -4
- package/.output/server/_ssr/{RolloutPercentageBadge-O0jbSRuI.mjs → RolloutPercentageBadge-DgyHwvnj.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-DneEz--P.mjs → RowReason-DOCMSWpB.mjs} +5 -5
- package/.output/server/_ssr/{SandboxBadge-ujAuQ6FN.mjs → SandboxBadge-DVOkxy3O.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-DFV5VpPn.mjs → TargetDisplay-DcY84JrG.mjs} +3 -3
- package/.output/server/_ssr/{alert-dialog-B2IG3q93.mjs → alert-dialog-Bj6jW5-Q.mjs} +1 -1
- package/.output/server/_ssr/{api-CHpFJ_c4.mjs → api-BYa88in2.mjs} +13 -10
- package/.output/server/_ssr/{api-keys-ZufcGzhb.mjs → api-keys-C3gWr3Qj.mjs} +10 -10
- package/.output/server/_ssr/{api-keys-DpSj11mK.mjs → api-keys-CIB4jF6t.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-N3V7gkvv.mjs → api-keys-rpc-CtMsJx1w.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-DXvqIbGs.mjs → api-rpc-sxif8D9h.mjs} +16 -16
- package/.output/server/_ssr/{auth-rpc-Cx72ajwL.mjs → auth-rpc-DYXg2d-s.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-DT4SuI6u.mjs → auth.server-BCtkdsmT.mjs} +25 -8
- package/.output/server/_ssr/{badge-DNrlMwwO.mjs → badge-DVmF0rbO.mjs} +1 -1
- package/.output/server/_ssr/{bundleActivity-a-pEDiqu.mjs → bundleActivity-CjE9yslP.mjs} +1 -1
- package/.output/server/_ssr/{card-BSFwWT9T.mjs → card-C7gkmtDR.mjs} +1 -1
- package/.output/server/_ssr/{config.server-BEg-Ln3t.mjs → config.server-D5yjc-Hm.mjs} +3 -3
- package/.output/server/_ssr/{console-access-CPYdc4mK.mjs → console-access-MNaEuKXy.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-D_KFX0JV.mjs → console-features-api-B8PfM6k1.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-CSogovr5.mjs → console-features-rpc-Dl1bAdxy.mjs} +3 -3
- package/.output/server/_ssr/constants-B8b1IliD.mjs +8 -0
- package/.output/server/_ssr/{deviceProfileToken-xzDLfE0T.mjs → deviceProfileToken-Eeltr-o0.mjs} +1 -1
- package/.output/server/_ssr/{dialog-BE-0BoPu.mjs → dialog-COs-Oov4.mjs} +1 -1
- package/.output/server/_ssr/{downloadBundle-C1KOnpiF.mjs → downloadBundle-DLkb7A7E.mjs} +1 -1
- package/.output/server/_ssr/{empty-DVeNY_6z.mjs → empty-BCi8eUlp.mjs} +2 -2
- package/.output/server/_ssr/{failureReports-BVufgM3l.mjs → failureReports-Bd7CaadE.mjs} +3 -3
- package/.output/server/_ssr/{field-C_NBjv_7.mjs → field-D7na2Ch2.mjs} +2 -2
- package/.output/server/_ssr/{foldedPage-CUjJqtlF.mjs → foldedPage-DrxWt5XS.mjs} +1 -1
- package/.output/server/_ssr/{getBundleChildren-CnOf4Frp.mjs → getBundleChildren-DA9zbUBD.mjs} +1 -1
- package/.output/server/_ssr/{input-group-CGiryg7I.mjs → input-group-B64ZFSYp.mjs} +1 -1
- package/.output/server/_ssr/{insights-hDsGL-yq.mjs → insights-B9kdn-hT.mjs} +29 -28
- package/.output/server/_ssr/{insights-DNNsxJlD.mjs → insights-DaaYBkr3.mjs} +5 -5
- package/.output/server/_ssr/{insights-ECnoz9jp.mjs → insights-Do0mUArh.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-DvbUK1vp.mjs → insights-api-C6hqqqUk.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-DwUaDs0Z.mjs → insights-errors-BrToSfI9.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-DGO2_3Vx.mjs → insights-failures-lmcxwKb3.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-DCu8iR4V.mjs → insights-failures-rpc-k6uyvIeh.mjs} +8 -8
- package/.output/server/_ssr/{insights-recovery-Cdg3Msrj.mjs → insights-recovery-Dhg3WGpC.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-Bla1PuCq.mjs → insights-recovery-rpc-DPW8WjEX.mjs} +5 -5
- package/.output/server/_ssr/{insights-rpc-ViJh0Q-s.mjs → insights-rpc-DDLtqUqS.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-DfEqsfAa.mjs → insights-search-BxLGFC2Y.mjs} +3 -5
- package/.output/server/_ssr/{insights-usage-BVm7CDw9.mjs → insights-usage-gW3T5N6N.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-DWSPBftd.mjs → insights-usage-rpc-_3iuUmaJ.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-CLsYlcnO.mjs → insights-usage-rpc-a9HwsRB_.mjs} +4 -4
- package/.output/server/_ssr/{insightsUsage-lPKyRC2o.mjs → insightsUsage-B_7pM9wp.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-6t26Hce4.mjs → insights_.distribution-BjWQk0tw.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-CbZmys6X.mjs → insights_.distribution-CCCQgeXp.mjs} +16 -16
- package/.output/server/_ssr/{insights_.distribution-Bj054JTo.mjs → insights_.distribution-DTvhOF_Z.mjs} +5 -5
- package/.output/server/_ssr/{installations-BOzetKfl.mjs → installations-BgKaxLj8.mjs} +2 -2
- package/.output/server/_ssr/{installations-ARFvJMie.mjs → installations-DZoaae-j.mjs} +12 -12
- package/.output/server/_ssr/{installations-CL-nVRbZ.mjs → installations-IiZ1O2zJ.mjs} +4 -4
- package/.output/server/_ssr/{ios-devices-rpc-Xln3pLFJ.mjs → ios-devices-rpc-mzVC4RTM.mjs} +8 -8
- package/.output/server/_ssr/{iosDeviceCookie-BG4X3Kbt.mjs → iosDeviceCookie-LOJ7WfKJ.mjs} +5 -5
- package/.output/server/_ssr/{iosDeviceProfile-C8NvflH9.mjs → iosDeviceProfile-DtTmTG9a.mjs} +6 -6
- package/.output/server/_ssr/{iosDevices-Ck5ko5IX.mjs → iosDevices-DC-DR7X-.mjs} +3 -3
- package/.output/server/_ssr/{listReleases-QF91GLE7.mjs → listReleases-B2Q9xwFv.mjs} +3 -3
- package/.output/server/_ssr/{native-artifact-BRNP_q-y.mjs → native-artifact-BurROe05.mjs} +43 -2
- package/.output/server/_ssr/{native-builds-nRuXKypG.mjs → native-builds-Bnx0fVWs.mjs} +10 -5
- package/.output/server/_ssr/{native-builds-B70NqL0z.mjs → native-builds-DBVS616m.mjs} +63 -32
- package/.output/server/_ssr/{native-builds-6Kq2Pamq.mjs → native-builds-uMIPDSmT.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-B4uQUP7t.mjs → native-builds_._buildId-BmB6oLsi.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-zbXBoGs8.mjs → native-builds_._buildId-CfYzRkoT.mjs} +61 -45
- package/.output/server/_ssr/{native-builds_.devices-OLR3gTfc.mjs → native-builds_.devices-CBoAFcVA.mjs} +18 -18
- package/.output/server/_ssr/{native-builds_.devices-DcgdiEiK.mjs → native-builds_.devices-PvBuqXp0.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildDownloadLink-DHsPiwsg.mjs → nativeBuildDownloadLink-B-Slw1_O.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-DnpC3dUR.mjs → nativeBuildInstall-_vrEhN0E.mjs} +8 -8
- package/.output/server/_ssr/{nativeBuilds-DaF-TcfO.mjs → nativeBuilds-WKdqgemR.mjs} +7 -7
- package/.output/server/_ssr/{publicConsoleBase-wTKw3_iB.mjs → publicConsoleBase-C3sNbafy.mjs} +1 -1
- package/.output/server/_ssr/{release-adoption-gfhE5tz5.mjs → release-adoption-D2719HVh.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-C8oj79w3.mjs → release-adoption-rpc-BsUYFCSo.mjs} +7 -7
- package/.output/server/_ssr/{releaseAdoption-DfEYq7I4.mjs → releaseAdoption-CxGKmUXx.mjs} +4 -4
- package/.output/server/_ssr/{releaseReachability-Ch1JpJkY.mjs → releaseReachability-sWr0bLRk.mjs} +1 -1
- package/.output/server/_ssr/{remote-config-DOinV02U.mjs → remote-config-D-8SQ4po.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-MEFtxtmM.mjs → remote-config-DQzpUpwK.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-ClsnMl5Y.mjs → remote-config-ZObJS2_F.mjs} +20 -20
- package/.output/server/_ssr/{remote-config-rpc-CCPIk5TC.mjs → remote-config-rpc-COjwhaa3.mjs} +3 -3
- package/.output/server/_ssr/{router-jomm2ZkW.mjs → router-DFO8ezEY.mjs} +37 -37
- package/.output/server/_ssr/{routes-D0sAXxvj.mjs → routes-B0kFLck5.mjs} +96 -44
- package/.output/server/_ssr/{routes-YuEmTB66.mjs → routes-DLdhFkXy.mjs} +48 -14
- package/.output/server/_ssr/{schema-migration-rpc-CzOI4qIc.mjs → schema-migration-rpc-BTlEpk00.mjs} +3 -3
- package/.output/server/_ssr/{select-jxef2GHj.mjs → select-l3hYdF9p.mjs} +2 -2
- package/.output/server/_ssr/{server-DowlVz8B.mjs → server-Dsb2hUyp.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-DbK9IOE6.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-PuW4wKem.mjs → switch-B_NczfZN.mjs} +2 -2
- package/.output/server/_ssr/{table-CTjtU7u0.mjs → table-DScwmE5W.mjs} +1 -1
- package/.output/server/_ssr/{tabs-CYGM4B-P.mjs → tabs-DodX8IAE.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-BwDwIoNu.mjs → updateFailures-DGuFoK6A.mjs} +3 -3
- package/.output/server/{_tanstack-start-manifest_v-Dzfgn9EO.mjs → _tanstack-start-manifest_v-D4QtfwLE.mjs} +94 -95
- package/.output/server/index.mjs +311 -318
- 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/BuiltInBundleCard.tsx +21 -5
- package/src/components/features/native-builds/InstallCard.tsx +32 -24
- package/src/components/features/native-builds/IosInstall.tsx +3 -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/components/features/native-builds/PatchesCard.tsx +28 -20
- package/src/lib/api-rpc.ts +2 -1
- package/src/lib/api.ts +10 -2
- package/src/lib/constants.ts +12 -0
- package/src/lib/insights-search.ts +0 -3
- package/src/lib/native-builds.ts +10 -3
- package/src/lib/server/nativeBuildInstall.ts +3 -1
- package/src/lib/server/nativeBuilds.ts +15 -8
- 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-DsKczesK.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-7sC78eTq.js +0 -1
- package/.output/public/assets/native-builds-BOSmoLed.js +0 -1
- package/.output/public/assets/native-builds-CXDwW54k.js +0 -2
- package/.output/public/assets/native-builds_._buildId-C7-yUwvH.js +0 -2
- package/.output/public/assets/native-builds_._buildId-u5dG7ej5.js +0 -1
- package/.output/public/assets/native-builds_.devices-CQ_tB3SO.js +0 -1
- package/.output/public/assets/native-builds_.devices-C_YZoRxB.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-Dj_ukxU_.js +0 -2
- package/.output/public/assets/routes-DvCD6Kib.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,$n as t,Ar as n,Br as r,Cn as i,Di as a,Ei as o,F as s,Fr as c,H as l,I as u,Ir as d,L as f,Ln as p,M as m,Mr as h,Nn as g,On as _,P as v,Q as y,Qn as b,R as x,Ri as S,Sn as C,Tr as w,U as T,Un as ee,Vi as E,Vr as D,Xn as te,Zn as ne,_ as re,_r as ie,b as ae,bn as oe,dt as se,et as ce,ft as le,g as ue,gn as de,gr as O,h as k,jr as fe,kr as pe,p as me,v as A,vn as j,vr as M,w as he,wr as N,xn as P,xr as ge,y as F,yn as I}from"./sidebar-UnsNYOry.js";import{t as L}from"./link-D95E0fwF.js";import{t as R}from"./arrow-right-jHG0fJt7.js";import{t as _e}from"./arrow-up-right-BPRe5soE.js";import{a as ve,i as ye,l as be,n as z,o as xe,r as Se,s as Ce,t as B}from"./routes-COOKrhya.js";import{t as V}from"./check-Dz_5aNwx.js";import{a as we,i as Te,n as Ee,r as De}from"./useCompositeListItem-B9ONn9qn.js";import{i as Oe,r as ke}from"./TargetDisplay-DeKn2_3n.js";import{t as Ae}from"./chevron-right-CuYrscDY.js";import{A as je,D as Me,E as Ne,M as Pe,N as Fe,T as Ie,a as Le,d as Re,f as ze,h as Be,i as H,m as U,n as Ve,o as W,r as He,t as G}from"./select-BAd2hAoW.js";import{t as Ue}from"./circle-off-BZFOMb8J.js";import{t as We}from"./download-ekENI2Sw.js";import{i as Ge,n as Ke,r as qe,t as Je}from"./RolloutPercentageBadge-BmtfOGOm.js";import{t as Ye}from"./list-Dq40Mmoj.js";import{t as Xe}from"./loader-circle-C26cZDSM.js";import{C as Ze,O as Qe,T as $e,h as et}from"./native-builds-FBNFjP4d.js";import{t as tt}from"./plus-Bp6IqwOH.js";import{n as K,r as nt}from"./dist-BDfiL2Qz.js";import{a as rt,i as it,n as at,o as ot,s as st,t as ct}from"./input-group-DNfVeeYZ.js";import{n as lt,t as ut}from"./switch-DNa3Cz9K.js";import{t as dt}from"./trash-2-BPH7ydek.js";import{a as ft,i as pt,n as mt,o as ht,r as gt,t as q}from"./badge-D4Tiwei-.js";import{a as _t}from"./insights-search-Bax3nNBz.js";import{a as vt,n as yt,o as bt,r as xt,t as St}from"./card-VtWYErXu.js";import{a as Ct,c as wt,d as Tt,i as Et,l as Dt,o as Ot,r as kt,s as At,u as jt}from"./constants-CNrAvpew.js";import{a as Mt,c as Nt,i as Pt,n as Ft,r as It,t as Lt}from"./field-CubHQ_EM.js";import{C as Rt,S as zt,_ as Bt,a as Vt,b as Ht,c as Ut,i as Wt,n as Gt,o as Kt,r as qt,s as Jt,t as Yt,v as Xt,w as Zt,x as Qt,y as $t}from"./api-USY_IWMu.js";import{a as en,i as tn,l as nn,n as rn,o as an,r as on,s as sn,t as cn}from"./alert-dialog-ndHfUqUh.js";import{n as ln,t as un}from"./PlatformIcon-CZjIJt0C.js";import{a as dn,i as fn,n as pn,o as mn,r as hn,s as gn,t as _n}from"./dialog-Dx9gstou.js";import{a as vn,i as J,n as yn,o as bn,r as Y,t as xn}from"./table-DtcLx8yw.js";import{t as Sn}from"./BundleIdDisplay-Bm85NZma.js";import{t as Cn}from"./ChannelBadge-B04sTjw5.js";import{a as wn,c as Tn,d as En,f as Dn,i as On,l as kn,n as An,o as jn,p as Mn,r as Nn,s as Pn,t as Fn,u as In}from"./RelativeTime-CAIee8Fr.js";import{t as Ln}from"./HashValueDisplay-N89T2mVj.js";import{n as Rn,t as zn}from"./valueToPercent-Db73Kirz.js";import{a as Bn,c as Vn,i as Hn,l as Un,n as Wn,o as Gn,r as Kn,s as qn,t as Jn}from"./RowReason-Cuf4SbKm.js";var Yn=D(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),Xn=D(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Zn=D(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),Qn=D(`tags`,[[`path`,{d:`M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z`,key:`16rjxf`}],[`path`,{d:`M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193`,key:`178nd4`}],[`circle`,{cx:`10.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`12ikhr`}]]),$n=o();function er(){return N}function tr(){return!1}function nr(){return!0}function rr(){return(0,$n.useSyncExternalStore)(er,tr,nr)}var X=E(S(),1),Z=a();function ir({enabled:e,className:t,falseIcon:n=`x`,colorMode:i=`semantic`}){let a=i===`inherit`?`text-current`:void 0;return e?(0,Z.jsx)(V,{className:M(`h-4 w-4`,a??`text-green-600 dark:text-green-400`,t)}):n===`minus`?(0,Z.jsx)(Xn,{className:M(`h-4 w-4`,a??`text-muted-foreground`,t)}):(0,Z.jsx)(r,{className:M(`h-4 w-4`,a??`text-red-600 dark:text-red-400`,t)})}function ar({panelId:t,bundle:n,bundles:r,loading:i,onDetailClick:a}){let o=k();return(0,Z.jsx)(`div`,{"aria-live":`polite`,className:`border-t bg-muted/10 p-3 sm:p-4`,id:t,children:(0,Z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,Z.jsx)(`h3`,{className:`text-sm font-medium`,children:`Advanced artifact diagnostics`}),(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,Z.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2 text-sm sm:items-center`,children:[(0,Z.jsx)(`span`,{className:`text-muted-foreground`,children:`Base artifact ID`}),(0,Z.jsx)(Sn,{bundleId:n.id,fullOnMobile:!0,maxLength:18})]}),(0,Z.jsxs)(q,{variant:`outline`,children:[r.length,` `,r.length===1?`patch`:`patches`]})]}),i?(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Z.jsx)(e,{className:`h-10 w-full`}),(0,Z.jsx)(e,{className:`h-10 w-full`})]}):r.length>0?(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Z.jsx)(`div`,{className:`text-xs font-semibold uppercase text-muted-foreground/70`,children:`Patch artifacts from this base`}),o?(0,Z.jsx)(`div`,{className:`flex flex-col gap-2`,children:r.map(e=>(0,Z.jsx)(`div`,{className:`rounded-md border bg-background p-3`,children:(0,Z.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,Z.jsxs)(`div`,{className:`space-y-1`,children:[(0,Z.jsx)(`div`,{className:`text-[11px] font-medium uppercase text-muted-foreground/70`,children:`Target artifact ID`}),(0,Z.jsx)(Sn,{bundleId:e.id,fullOnMobile:!0,maxLength:18})]}),(0,Z.jsxs)(`div`,{className:`space-y-1`,children:[(0,Z.jsx)(`div`,{className:`text-[11px] font-medium uppercase text-muted-foreground/70`,children:`Relation`}),(0,Z.jsxs)(`div`,{className:`flex flex-col items-start gap-1 text-sm`,children:[(0,Z.jsx)(Sn,{bundleId:n.id,fullOnMobile:!0,maxLength:12}),(0,Z.jsx)(R,{className:`size-4 rotate-90 text-muted-foreground`}),(0,Z.jsx)(Sn,{bundleId:e.id,fullOnMobile:!0,maxLength:12})]})]}),(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,Z.jsxs)(`div`,{className:`space-y-1`,children:[(0,Z.jsx)(`div`,{className:`text-[11px] font-medium uppercase text-muted-foreground/70`,children:`Artifact`}),(0,Z.jsx)(q,{variant:`secondary`,children:`bsdiff`})]}),(0,Z.jsxs)(`div`,{className:`space-y-1 text-right`,children:[(0,Z.jsx)(`div`,{className:`text-[11px] font-medium uppercase text-muted-foreground/70`,children:`Created`}),(0,Z.jsx)(`div`,{className:`text-xs tabular-nums text-foreground`,children:(0,Z.jsx)(qe,{uuid:e.id})})]})]}),(0,Z.jsx)(O,{className:`w-full`,onClick:()=>a(e),size:`sm`,type:`button`,variant:`outline`,children:`Detail`})]})},e.id))}):(0,Z.jsx)(`div`,{className:`overflow-x-auto rounded-md border bg-background`,children:(0,Z.jsxs)(xn,{className:`min-w-max`,children:[(0,Z.jsx)(vn,{children:(0,Z.jsxs)(bn,{className:`hover:bg-transparent`,children:[(0,Z.jsx)(J,{children:`Target artifact ID`}),(0,Z.jsx)(J,{children:`Relation`}),(0,Z.jsx)(J,{children:`Artifact`}),(0,Z.jsx)(J,{children:`Created`}),(0,Z.jsx)(J,{className:`w-24 text-right`,children:`Detail`})]})}),(0,Z.jsx)(yn,{children:r.map(e=>(0,Z.jsxs)(bn,{children:[(0,Z.jsx)(Y,{children:(0,Z.jsx)(Sn,{bundleId:e.id,fullOnMobile:!0,maxLength:18})}),(0,Z.jsx)(Y,{children:(0,Z.jsxs)(`div`,{className:`flex min-w-[280px] flex-col items-start gap-1 sm:flex-row sm:items-center sm:gap-2`,children:[(0,Z.jsx)(Sn,{bundleId:n.id,fullOnMobile:!0,maxLength:12}),(0,Z.jsx)(R,{className:`size-4 shrink-0 rotate-90 text-muted-foreground sm:rotate-0`}),(0,Z.jsx)(Sn,{bundleId:e.id,fullOnMobile:!0,maxLength:12})]})}),(0,Z.jsx)(Y,{children:(0,Z.jsx)(q,{variant:`secondary`,children:`bsdiff`})}),(0,Z.jsx)(Y,{className:`tabular-nums`,children:(0,Z.jsx)(qe,{uuid:e.id})}),(0,Z.jsx)(Y,{className:`text-right`,children:(0,Z.jsx)(O,{onClick:()=>a(e),size:`sm`,type:`button`,variant:`outline`,children:`Detail`})})]},e.id))})]})})]}):(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Z.jsx)(`div`,{className:`text-xs font-semibold uppercase text-muted-foreground/70`,children:`Patch artifacts from this base`}),(0,Z.jsx)(`div`,{className:`rounded-md border bg-background p-3 text-sm text-muted-foreground`,children:`No direct patch artifacts.`})]})]})})}function or({open:e,onOpenChange:t}){let[n,r]=(0,X.useState)(``),[i,a]=(0,X.useState)(null),o=lt(i),{data:s=[],isPending:c}=Wt(),l=Kt(),u=Jt(),d=n.trim(),f=async e=>{if(e.preventDefault(),!(!d||l.isPending))try{let e=await l.mutateAsync({name:d});r(``),e.inserted?K.success(`Channel ${e.row.name} created`):K.info(`Channel ${e.row.name} already exists`)}catch(e){K.error(`Failed to create channel`),console.error(e)}},p=async()=>{if(!(!i||u.isPending))try{let e=await u.mutateAsync({id:i.id});e.deleted?K.success(`Channel ${i.name} deleted`):e.reason===`not_empty`?K.error(`Channel ${i.name} is still in use and cannot be deleted`):K.error(`Channel ${i.name} no longer exists`),a(null)}catch(e){K.error(`Failed to delete channel`),console.error(e)}};return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(_n,{open:e,onOpenChange:t,children:(0,Z.jsxs)(pn,{className:`sm:max-w-lg`,children:[(0,Z.jsxs)(dn,{children:[(0,Z.jsxs)(mn,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(Zn,{className:`size-4 text-muted-foreground`}),`Channels`]}),(0,Z.jsx)(hn,{children:`Create deployment channels and remove them when no bundle uses them. Empty channels remain available until you delete them.`})]}),(0,Z.jsx)(`form`,{onSubmit:f,children:(0,Z.jsx)(Pt,{className:`gap-2`,children:(0,Z.jsxs)(Lt,{orientation:`horizontal`,children:[(0,Z.jsx)(Mt,{htmlFor:`channel-name`,className:`sr-only`,children:`Channel name`}),(0,Z.jsx)(y,{id:`channel-name`,value:n,onChange:e=>r(e.target.value),placeholder:`Channel name`,autoComplete:`off`,disabled:l.isPending}),(0,Z.jsxs)(O,{className:`max-md:h-11`,type:`submit`,disabled:!d||l.isPending,children:[l.isPending?(0,Z.jsx)(Xe,{"data-icon":`inline-start`,className:`animate-spin motion-reduce:animate-none`}):(0,Z.jsx)(tt,{"data-icon":`inline-start`}),`Create`]})]})})}),(0,Z.jsx)(`div`,{className:`max-h-72 overflow-y-auto rounded-lg border`,children:c?(0,Z.jsxs)(`div`,{className:`flex h-20 items-center justify-center text-muted-foreground`,children:[(0,Z.jsx)(Xe,{className:`mr-2 size-3.5 animate-spin motion-reduce:animate-none`}),`Loading channels`]}):s.length===0?(0,Z.jsx)(`div`,{className:`flex h-20 items-center justify-center text-muted-foreground`,children:`No channels yet`}):(0,Z.jsx)(`ul`,{className:`divide-y`,children:s.map(e=>(0,Z.jsxs)(`li`,{className:`flex min-h-12 items-center gap-3 px-3 py-2`,children:[(0,Z.jsx)(`p`,{className:`min-w-0 flex-1 truncate text-xs font-medium`,title:e.name,children:e.name}),(0,Z.jsx)(O,{type:`button`,variant:`ghost`,size:`icon-sm`,"aria-label":`Delete ${e.name}`,title:`Delete ${e.name}`,disabled:u.isPending,onClick:()=>a(e),className:`text-muted-foreground hover:text-destructive max-md:size-11`,children:(0,Z.jsx)(dt,{"data-icon":`inline-start`})})]},e.id))})})]})}),(0,Z.jsx)(cn,{open:i!==null,onOpenChange:e=>{!e&&!u.isPending&&a(null)},children:(0,Z.jsxs)(tn,{children:[(0,Z.jsxs)(sn,{children:[(0,Z.jsxs)(nn,{children:[`Delete `,o?.name,`?`]}),(0,Z.jsx)(en,{children:`Only empty channels can be removed. The server checks this when you delete it, and the channel can be created again later with a new ID.`})]}),(0,Z.jsxs)(an,{children:[(0,Z.jsx)(on,{disabled:u.isPending,children:`Cancel`}),(0,Z.jsx)(rn,{variant:`destructive`,disabled:u.isPending,onClick:e=>{e.preventDefault(),p()},children:u.isPending?`Deleting...`:`Delete channel`})]})]})})]})}var sr=`[a-zA-Z0-9-]`,cr=String.raw`0|[1-9]\d*`,lr=String.raw`\d+`,ur=String.raw`\d*[a-zA-Z-]${sr}*`,dr=String.raw`(${cr})\.(${cr})\.(${cr})`,fr=String.raw`(${lr})\.(${lr})\.(${lr})`,pr=`(?:${ur}|${cr})`,mr=`(?:${ur}|${lr})`,hr=String.raw`(?:-(${pr}(?:\.${pr})*))`,gr=String.raw`(?:-?(${mr}(?:\.${mr})*))`,_r=`${sr}+`,vr=String.raw`(?:\+(${_r}(?:\.${_r})*))`,yr=`v?${dr}${hr}?${vr}?`,br=String.raw`[v=\s]*${fr}${gr}?${vr}?`,xr=`((?:<|>)?=?)`,Sr=String.raw`${cr}|x|X|\*`,Cr=String.raw`${lr}|x|X|\*`,wr=String.raw`[v=\s]*(${Sr})(?:\.(${Sr})(?:\.(${Sr})(?:${hr})?${vr}?)?)?`,Tr=String.raw`[v=\s]*(${Cr})(?:\.(${Cr})(?:\.(${Cr})(?:${gr})?${vr}?)?)?`,Er=`(?:~>?)`,Dr=String.raw`(?:\^)`,Or=String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`;String.raw`${Or}(?:$|[^\d])`,String.raw`${Or}(?:${hr})?(?:${vr})?(?:$|[^\d])`;function kr(e){let t=[[String.raw`\s`,1],[String.raw`\d`,256],[sr,250]];for(let[n,r]of t)e=e.split(`${n}*`).join(`${n}{0,${r}}`).split(`${n}+`).join(`${n}{1,${r}}`);return e}function Q(e,t){return new RegExp(kr(e),t)}var Ar=Q(`^${yr}$`),jr=Q(`^${br}$`),Mr=/^\d+$/;function Nr(e){let t=`${e.major}.${e.minor}.${e.patch}`;return e.prerelease?.length?`${t}-${e.prerelease.join(`.`)}`:t}function Pr(e,t={}){if(typeof e!=`string`)return e;if(e.length>256)throw TypeError(`Version exceeds the maximum length of 256 characters`);let n=e.trim().match(t.loose?jr:Ar);if(!n)throw TypeError(`Invalid version syntax: ${e}`);let r=Number(n[1]),i=Number(n[2]),a=Number(n[3]);if(r>2**53-1||r<0)throw TypeError(`Invalid major version: ${n[1]}`);if(i>2**53-1||i<0)throw TypeError(`Invalid minor version: ${n[2]}`);if(a>2**53-1||a<0)throw TypeError(`Invalid patch version: ${n[3]}`);let o=n[4]?n[4].split(`.`).map(e=>{if(Mr.test(e)){let t=Number(e);if(t>=0&&t<2**53-1)return t}return e}):void 0;return{build:n[5]?.split(`.`),major:r,minor:i,patch:a,prerelease:o}}var Fr=Q(String.raw`^${xr}\s*(${yr})$|^$`),Ir=Q(String.raw`^${xr}\s*(${br})$|^$`);function Lr(e){return e.version?`${e.operator}${Nr(e.version)}`:``}function Rr(e,t={}){if(typeof e!=`string`)return e;let n=e.trim().replaceAll(/\s+/g,` `),r=n.match(t.loose?Ir:Fr);if(!r)throw TypeError(`Invalid comparator: ${n}`);let i=r[1]===`=`?``:r[1]||``,a=r[2]?Pr(r[2],t):null;return{operator:i,options:t,value:a?`${i}${Nr(a)}`:``,version:a}}function zr(e){return e.sets.map(e=>e.map(Lr).join(` `)).join(`||`)}var Br=new RegExp(vr,`g`),Vr=Q(vr),Hr=Q(String.raw`^\s*(${wr})\s+-\s+(${wr})\s*$`),Ur=Q(String.raw`^\s*(${Tr})\s+-\s+(${Tr})\s*$`),Wr=Q(String.raw`(\s*)${xr}\s*(${br}|${wr})`,`g`),Gr=Q(String.raw`(\s*)${Er}\s+`,`g`),Kr=Q(String.raw`(\s*)${Dr}\s+`,`g`),qr=Q(`^${Er}${wr}$`),Jr=Q(`^${Er}${Tr}$`),Yr=Q(`^${Dr}${wr}$`),Xr=Q(`^${Dr}${Tr}$`),Zr=Q(String.raw`^${xr}\s*${wr}$`),Qr=Q(String.raw`^${xr}\s*${Tr}$`),$r=Q(String.raw`(<|>)?=?\s*\*`),ei=/^\s*>=\s*0\.0\.0\s*$/,ti=/^\s*>=\s*0\.0\.0-0\s*$/,ni=Q(String.raw`^${xr}\s*(${br})$|^$`);function $(e){return!e||String(e).toLowerCase()===`x`||String(e)===`*`}function ri(e,t,n){return $(e)&&!$(t)||$(t)&&!!n&&!$(n)}function ii(e,t){let n=t.loose?Jr:qr,r=t.includePrerelease?`-0`:``;return e.replace(n,(e,t,n,i,a)=>$(t)?``:$(n)?`>=${t}.0.0${r} <${Number(t)+1}.0.0-0`:$(i)?`>=${t}.${n}.0${r} <${t}.${Number(n)+1}.0-0`:a?`>=${t}.${n}.${i}-${a} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${i} <${t}.${Number(n)+1}.0-0`)}function ai(e,t){return e.trim().split(/\s+/).map(e=>ii(e,t)).join(` `)}function oi(e,t){let n=t.loose?Xr:Yr,r=t.includePrerelease?`-0`:``;return e.replace(n,(e,t,n,i,a)=>$(t)?``:$(n)?`>=${t}.0.0${r} <${Number(t)+1}.0.0-0`:$(i)?t===`0`?`>=${t}.${n}.0${r} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.0${r} <${Number(t)+1}.0.0-0`:a?t===`0`?n===`0`?`>=${t}.${n}.${i}-${a} <${t}.${n}.${Number(i)+1}-0`:`>=${t}.${n}.${i}-${a} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${i}-${a} <${Number(t)+1}.0.0-0`:t===`0`?n===`0`?`>=${t}.${n}.${i} <${t}.${n}.${Number(i)+1}-0`:`>=${t}.${n}.${i} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${i} <${Number(t)+1}.0.0-0`)}function si(e,t){return e.trim().split(/\s+/).map(e=>oi(e,t)).join(` `)}function ci(e,t){let n=t.loose?Qr:Zr;return e.trim().replace(n,(n,r,i,a,o)=>{let s=r,c=i,l=a,u=o;if(ri(String(c),l===void 0?void 0:String(l),u===void 0?void 0:String(u)))return e;let d=$(c),f=d||$(l),p=f||$(u);if(s===`=`&&p&&(s=``),d)return s===`>`||s===`<`?`<0.0.0-0`:`*`;let m=t.includePrerelease?`-0`:``;return s&&p?(f&&(l=0),u=0,s===`>`?(s=`>=`,f?(c=Number(c)+1,l=0):l=Number(l)+1):s===`<=`&&(s=`<`,f?c=Number(c)+1:l=Number(l)+1),s===`<`&&(m=`-0`),`${s}${c}.${l}.${u}${m}`):f?`>=${c}.0.0${m} <${Number(c)+1}.0.0-0`:p?`>=${c}.${l}.0${m} <${c}.${Number(l)+1}.0-0`:n})}function li(e,t){return e.split(/\s+/).map(e=>ci(e,t)).join(` `)}function ui(e,t){let n=t.loose?Ur:Hr;return e.replace(n,(e,n,r,i,a,o,s,c,l,u,d,f)=>{let p=n,m=c;return p=$(r)?``:$(i)?`>=${r}.0.0${t.includePrerelease?`-0`:``}`:$(a)?`>=${r}.${i}.0${t.includePrerelease?`-0`:``}`:o?`>=${p}`:`>=${p}${t.includePrerelease?`-0`:``}`,m=$(l)?``:$(u)?`<${Number(l)+1}.0.0-0`:$(d)?`<${l}.${Number(u)+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:t.includePrerelease?`<${l}.${u}.${Number(d)+1}-0`:`<=${m}`,`${p} ${m}`.trim()})}function di(e,t){return li(ai(si(e.replace(Vr,``),t),t),t).trim().replace($r,``)}function fi(e,t){let n=ui(e.replace(Br,``),t).replace(Wr,`$1$2$3`).replace(Gr,`$1~`).replace(Kr,`$1^`).split(` `).map(e=>di(e,t)).join(` `).split(/\s+/).map(e=>e.trim().replace(t.includePrerelease?ti:ei,``));t.loose&&(n=n.filter(e=>ni.test(e)));let r=new Map;for(let e of n.map(e=>Rr(e,t))){if(e.value===`<0.0.0-0`)return[e];r.set(e.value,e)}return r.size>1&&r.delete(``),[...r.values()]}function pi(e,t={}){if(typeof e!=`string`)return e;let n={...t},r=e.trim().replaceAll(/\s+/g,` `),i=r.split(`||`).map(e=>fi(e.trim(),n)).filter(e=>e.length);if(!i.length)throw TypeError(`Range contains no valid comparator sets: ${r}`);if(i.length>1){let e=i[0];if(i=i.filter(e=>e[0]?.value!==`<0.0.0-0`),!i.length)i=[e];else if(i.length>1){let e=i.find(e=>e.length===1&&e[0]?.value===``);e&&(i=[e])}}return{options:n,sets:i}}function mi(e,t={}){try{return pi(e,t)}catch{return null}}function hi(e,t={}){let n=mi(e,t);return n?zr(n)||`*`:null}function gi({label:e,value:t}){return(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1.5 sm:flex-row sm:items-start sm:justify-between sm:gap-4`,children:[(0,Z.jsx)(`dt`,{className:`text-muted-foreground`,children:e}),(0,Z.jsx)(`dd`,{className:`min-w-0 text-left text-sm sm:text-right`,children:t})]})}function _i({bundle:e,release:t}){let{data:n,isFetched:r}=Vt(),i=e?wt(e):null,a=e?At(e):null,o=e?.gitCommitHash&&r?Ke(n?.console.gitUrl,e.gitCommitHash):null,s=t.strategy===`APP_VERSION`?t.target_app_version:t.fingerprint_hash;return s||e?.gitCommitHash||e?.manifestFileHash||a||i?(0,Z.jsxs)(St,{children:[(0,Z.jsx)(vt,{className:`p-4 pb-3`,children:(0,Z.jsx)(bt,{className:`text-sm font-medium`,children:`Metadata`})}),(0,Z.jsx)(yt,{className:`px-4 pb-4`,children:(0,Z.jsxs)(`dl`,{className:`flex flex-col gap-3 text-sm`,children:[(0,Z.jsx)(gi,{label:t.strategy===`APP_VERSION`?`Target app version`:`Fingerprint target`,value:(0,Z.jsx)(`span`,{className:`break-all font-mono text-xs`,translate:`no`,children:s??`—`})}),e?.gitCommitHash?(0,Z.jsx)(gi,{label:`Git commit`,value:(0,Z.jsxs)(`div`,{className:`flex items-center justify-start gap-1 sm:justify-end`,children:[(0,Z.jsx)(Ln,{className:o?`text-primary`:void 0,maxLength:12,value:e.gitCommitHash}),o?(0,Z.jsx)(`a`,{"aria-label":`Open git commit`,className:`relative shrink-0 text-primary after:absolute after:-inset-2.5 hover:underline md:after:hidden`,href:o,rel:`noopener noreferrer`,target:`_blank`,children:(0,Z.jsx)(Ge,{"aria-hidden":`true`})}):null]})}):null,e?.manifestFileHash?(0,Z.jsx)(gi,{label:`Manifest hash`,value:(0,Z.jsx)(Ln,{maxLength:16,value:e.manifestFileHash})}):null,a?(0,Z.jsx)(gi,{label:`Base hash`,value:(0,Z.jsx)(Ln,{maxLength:16,value:a})}):null,i?(0,Z.jsx)(gi,{label:`Patch hash`,value:(0,Z.jsx)(Ln,{maxLength:16,value:i})}):null]})})]}):null}var vi=Array.from({length:Et},(e,t)=>t+1);function yi({releaseId:e,rolloutCohortCount:t,targetCohorts:n}){let r=Tt(t),i=n??[],a=i.length>0,o=r>0&&r<1e3,s=r===Et,c=k(),l=s?vi:o?vi.filter(t=>Ct(e,t)<r):[],u=(r/10).toFixed(1),d=s?Et:l.length,f=Et-d,p=(0,Z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,Z.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,Z.jsx)(St,{children:(0,Z.jsxs)(vt,{className:`p-4`,children:[(0,Z.jsx)(xt,{children:`Selected cohorts`}),(0,Z.jsx)(bt,{className:`font-mono text-2xl tabular-nums`,children:d})]})}),(0,Z.jsx)(St,{children:(0,Z.jsxs)(vt,{className:`p-4`,children:[(0,Z.jsx)(xt,{children:`Excluded cohorts`}),(0,Z.jsx)(bt,{className:`font-mono text-2xl tabular-nums`,children:f})]})})]}),a?(0,Z.jsxs)(St,{children:[(0,Z.jsxs)(vt,{className:`p-4 pb-3`,children:[(0,Z.jsx)(bt,{className:`text-sm`,children:`Additional cohorts`}),(0,Z.jsx)(xt,{children:`Always included in addition to the percentage rollout.`})]}),(0,Z.jsx)(yt,{className:`p-4 pt-0`,children:(0,Z.jsx)(`div`,{className:`flex flex-wrap gap-2 rounded-lg border bg-muted/20 p-3`,children:i.map(e=>(0,Z.jsx)(q,{className:`max-w-full font-mono`,variant:`secondary`,children:(0,Z.jsx)(`span`,{className:`truncate`,children:e})},e))})})]}):null,(0,Z.jsxs)(St,{children:[(0,Z.jsx)(vt,{className:`p-4 pb-3`,children:(0,Z.jsx)(bt,{className:`text-sm`,children:`Numeric cohorts`})}),(0,Z.jsx)(yt,{className:`p-4 pt-0`,children:(0,Z.jsx)(`div`,{className:`max-h-[50vh] overflow-y-auto overscroll-contain rounded-lg border bg-muted/20 p-3 sm:max-h-[45vh]`,children:l.length>0?(0,Z.jsx)(`div`,{"aria-label":`Included numeric cohorts`,className:`grid grid-cols-3 gap-2 sm:grid-cols-6 lg:grid-cols-8`,role:`list`,children:l.map(e=>(0,Z.jsx)(q,{className:`justify-center font-mono tabular-nums`,role:`listitem`,variant:`outline`,children:e},e))}):(0,Z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No numeric cohorts are included.`})})})]})]});return(0,Z.jsxs)(_n,{children:[(0,Z.jsxs)(gn,{render:(0,Z.jsx)(O,{className:`max-md:h-11`,size:`sm`,type:`button`,variant:`outline`}),children:[(0,Z.jsx)(Ye,{"data-icon":`inline-start`}),`Preview cohorts`]}),(0,Z.jsx)(pn,{className:c?`top-0 left-0 h-dvh max-w-none translate-x-0 translate-y-0 rounded-none border-0 p-0`:`sm:max-w-3xl`,children:c?(0,Z.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden`,children:[(0,Z.jsxs)(dn,{className:`shrink-0 border-b border-border/70 px-4 py-4`,children:[(0,Z.jsx)(mn,{children:`Rolled out cohorts`}),(0,Z.jsxs)(hn,{children:[u,`% includes `,d,` of`,` `,Et,` numeric cohorts.`,a?` Additional cohorts are always included.`:``]})]}),(0,Z.jsx)(`div`,{className:`flex-1 overflow-y-auto overscroll-contain px-4 py-4`,children:p}),(0,Z.jsx)(fn,{className:`shrink-0 border-t border-border/70 px-4 py-3`,showCloseButton:!0})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(dn,{children:[(0,Z.jsx)(mn,{children:`Rolled out cohorts`}),(0,Z.jsxs)(hn,{children:[u,`% includes `,d,` of`,` `,Et,` numeric cohorts.`,a?` Additional cohorts are always included.`:``]})]}),p,(0,Z.jsx)(fn,{showCloseButton:!0})]})})]})}function bi({release:t,channel:n,bundle:r}){let i=t.bundle_id===null?null:{platform:t.platform,channel:n,fingerprintHash:t.fingerprint_hash,targetAppVersion:t.target_app_version},a=i!==null&&$e(i)!==null,o=Qt(a?i:null);if(!a)return null;let s=o.data;return(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,Z.jsx)(`span`,{className:`font-medium text-muted-foreground`,children:`Native build`}),o.isPending?(0,Z.jsx)(e,{className:`h-4 w-40`}):s?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(L,{className:`inline-flex flex-wrap items-center gap-x-1 gap-y-0.5 text-xs text-foreground underline-offset-4 hover:underline`,params:{buildId:s.id},to:`/native-builds/$buildId`,children:[Ze(s.platform),` `,et[s.artifact_kind].label,` ·`,` `,(0,Z.jsx)(`span`,{className:`font-mono`,translate:`no`,children:s.min_bundle_id}),(0,Z.jsx)(_e,{"aria-hidden":`true`,className:`size-3`})]}),r?(0,Z.jsx)(q,{variant:`secondary`,children:(r.patches??[]).some(({baseBundleId:e})=>e===s.min_bundle_id)?`Patches from it`:`No patch from it`}):null]}):o.isError?(0,Z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`Couldn't load the scope's native build.`,` `,(0,Z.jsx)(`button`,{className:`underline underline-offset-4`,onClick:()=>void o.refetch(),type:`button`,children:`Retry`})]}):(0,Z.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`None tracked for this scope ·`,` `,(0,Z.jsx)(L,{className:`relative underline-offset-4 after:absolute after:-inset-x-2 after:-inset-y-4 hover:text-foreground hover:underline md:after:hidden`,search:{channel:n},to:`/native-builds`,children:`This channel's builds`})]})]})}function xi(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function Si(e,t){return e-t}function Ci(e,t,n){let r=e.slice();return r[t]=n,r.sort(Si)}function wi(e,t,n,r,i,a){let o=e;return o=U(o,n,r),i&&(o=Ci(a,t,U(o,a[t-1]||-1/0,a[t+1]||1/0))),o}function Ti(e,t,n){if(!Array.isArray(e))return!0;let r=e.reduce((e,t,n,r)=>(n===r.length-1||e.push(Math.abs(t-r[n+1])),e),[]);return Math.min(...r)>=t*n}var Ei={activeThumbIndex:()=>null,max:()=>null,min:()=>null,minStepsBetweenValues:()=>null,step:()=>null,values:()=>null,...Pe},Di=X.createContext(void 0);function Oi(){let e=X.useContext(Di);if(e===void 0)throw Error(pe(62));return e}function ki(e){return`key`in e?p:g}function Ai(e,t){return typeof e==`number`&&typeof t==`number`?e===t:Array.isArray(e)&&Array.isArray(t)?xi(e,t):!1}var ji=X.forwardRef(function(e,t){let{"aria-labelledby":n,className:r,defaultValue:a,disabled:o=!1,id:s,format:c,largeStep:l=10,locale:u,render:d,max:f=100,min:p=0,minStepsBetweenValues:m=0,form:g,name:_,onValueChange:v,onValueCommitted:y,orientation:x=`horizontal`,step:S=1,thumbCollisionBehavior:w=`push`,thumbAlignment:T=`center`,value:ee,style:E,...D}=e,te=le(s),re=Re(te),ie=h(v),ae=h(y),{clearErrors:se}=Be(),{state:ce,disabled:ue,name:de,setTouched:O,setDirty:k,validityData:pe,shouldValidateOnChange:me,validation:A}=je(),{labelId:M}=Ne(),[N,P]=X.useState(),F=n??ze(M,N),I=ue||o,L=de??_,[R,_e]=Te({controlled:ee,default:a??p,name:`Slider`}),ve=X.useRef(null),ye=X.useRef(null),be=X.useRef([]),z=X.useRef(null),xe=X.useRef(null),Se=X.useRef(-1),Ce=X.useRef(null),B=X.useRef(null),V=X.useRef(`none`),we=oe(c),[Ee,Oe]=X.useState(-1),[ke,Ae]=X.useState(-1),[Pe,Fe]=X.useState(!1),[Ie,Le]=X.useState(()=>new Map),[H,Ve]=X.useState([void 0,void 0]),W=h(e=>{Oe(e),e!==-1&&Ae(e)});Me(ye,te,R),he(R,()=>{se(L),me()?A.commit(R):A.commit(R,!0);let e=pe.initialValue,t;t=Array.isArray(R)&&Array.isArray(e)?!xi(R,e):R!==e,k(t)});let He=h(e=>{e&&(ye.current=e)}),G=Array.isArray(R),Ue=X.useMemo(()=>G?R.slice().sort(Si):[U(R,p,f)],[f,p,G,R]),We=h((e,t)=>{if(Number.isNaN(e)||Ai(e,R))return;let n=t??C(`none`,void 0,void 0,{activeThumbIndex:-1});V.current=n.reason;let r=n.event,i=new(r.constructor??Event)(r.type,r);Object.defineProperty(i,`target`,{writable:!0,value:{value:e,name:L}}),n.event=i,B.current=e,ie(e,n),!n.isCanceled&&_e(e)}),Ge=h((e,t,n)=>{let r=wi(e,t,p,f,G,Ue);if(Ti(r,S,m)){let e=ki(n);We(r,C(e,n.nativeEvent,void 0,{activeThumbIndex:t})),O(!0),ae(B.current??r,i(e,n.nativeEvent))}});fe(()=>{let e=ne(j(ve.current));I&&b(ve.current,e)&&e.blur()},[I]),I&&Ee!==-1&&W(-1);let Ke=X.useMemo(()=>({...ce,activeThumbIndex:Ee,disabled:I,dragging:Pe,orientation:x,max:f,min:p,minStepsBetweenValues:m,step:S,values:Ue}),[ce,Ee,I,Pe,f,p,m,x,S,Ue]),qe=X.useMemo(()=>({active:Ee,controlRef:ye,disabled:I,dragging:Pe,validation:A,formatOptionsRef:we,handleInputChange:Ge,indicatorPosition:H,inset:T!==`center`,labelId:F,rootLabelId:re,largeStep:l,lastUsedThumbIndex:ke,lastChangedValueRef:B,lastChangeReasonRef:V,form:g,locale:u,max:f,min:p,minStepsBetweenValues:m,name:L,onValueCommitted:ae,orientation:x,pressedInputRef:z,pressedThumbCenterOffsetRef:xe,pressedThumbIndexRef:Se,pressedValuesRef:Ce,registerFieldControlRef:He,renderBeforeHydration:T===`edge`,setActive:W,setDragging:Fe,setIndicatorPosition:Ve,setLabelId:P,setValue:We,state:Ke,step:S,thumbCollisionBehavior:w,thumbMap:Ie,thumbRefs:be,values:Ue}),[Ee,ye,F,re,I,Pe,A,we,Ge,H,l,ke,B,V,g,u,f,p,m,L,ae,x,z,xe,Se,Ce,He,W,Fe,Ve,P,We,Ke,S,w,T,Ie,be,Ue]),Je=ge(`div`,e,{state:Ke,ref:[t,ve],props:[{"aria-labelledby":F,id:te,role:`group`},A.getValidationProps,D],stateAttributesMapping:Ei});return(0,Z.jsx)(Di.Provider,{value:qe,children:(0,Z.jsx)(De,{elementsRef:be,onMapChange:Le,children:Je})})});function Mi(e){let t=e.getBoundingClientRect();return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function Ni(e){if(e===0)return 0;if(Math.abs(e)<1){let t=e.toExponential().split(`e-`),n=t[0].split(`.`)[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(`.`)[1];return t?t.length:0}function Pi(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Math.max(Ni(t),Ni(n))))}function Fi({values:e,index:t,nextValue:n,min:r,max:i,step:a,minStepsBetweenValues:o,initialValues:s}){if(e.length===0)return[];let c=e.slice(),l=a*o,u=c.length-1,d=s??e;c[t]=U(n,r+t*l,i-(u-t)*l);for(let e=t+1;e<=u;e+=1){let t=c[e-1]+l,n=i-(u-e)*l,r=d[e]??c[e],a=Math.max(c[e],t);r<a&&(a=Math.max(r,t)),c[e]=U(a,t,n)}for(let e=t-1;e>=0;--e){let t=c[e+1]-l,n=r+e*l,i=d[e]??c[e],a=Math.min(c[e],t);i>a&&(a=Math.min(i,t)),c[e]=U(a,n,t)}for(let e=0;e<=u;e+=1)c[e]=Number(c[e].toFixed(12));return c}function Ii({behavior:e,values:t,currentValues:n,initialValues:r,pressedIndex:i,nextValue:a,min:o,max:s,step:c,minStepsBetweenValues:l}){let u=n??t,d=r??t;if(!(u.length>1))return{value:a,thumbIndex:0,didSwap:!1};let f=c*l;switch(e){case`swap`:{let e=u[i],t=1e-7,n=u.slice(),r=n[i-1],p=n[i+1],m=U(a,r==null?o:r+f,p==null?s:p-f),h=Number(m.toFixed(12));n[i]=h;let g=a>e,_=a<e,v=g&&p!=null&&a>=p-t,y=_&&r!=null&&a<=r+t;if(!v&&!y)return{value:n,thumbIndex:i,didSwap:!1};let b=v?i+1:i-1,x=n.map((e,t)=>t===i?h:d[t]??u[t]),S=a;S=v?Math.max(a,n[b]):Math.min(a,n[b]);let C=Fi({values:n,index:b,nextValue:S,min:o,max:s,step:c,minStepsBetweenValues:l,initialValues:x}),w=v?b-1:b+1;if(w>=0&&w<C.length){let e=C[w-1],t=C[w+1],n=e==null?o:e+f;n=Math.max(n,o+w*f);let r=t==null?s:t-f;r=Math.min(r,s-(C.length-1-w)*f);let i=U(h,n,r);C[w]=Number(i.toFixed(12))}return{value:C,thumbIndex:b,didSwap:!0}}case`push`:return{value:Fi({values:u,index:i,nextValue:a,min:o,max:s,step:c,minStepsBetweenValues:l}),thumbIndex:i,didSwap:!1};default:{let e=u.slice(),t=e[i-1],n=e[i+1],r=U(a,t==null?o:t+f,n==null?s:n-f);return e[i]=Number(r.toFixed(12)),{value:e,thumbIndex:i,didSwap:!1}}}}var Li=2;function Ri(e,t){if(!e)return{start:0,end:0};function n(e){let t=e==null?0:parseFloat(e);return Number.isNaN(t)?0:t}let r=t?`Top`:`InlineStart`,i=t?`Bottom`:`InlineEnd`;return{start:n(e[`border${r}Width`])+n(e[`padding${r}`]),end:n(e[`border${i}Width`])+n(e[`padding${i}`])}}function zi(e,t){if(t.current!=null&&e.changedTouches){let n=e;for(let e=0;e<n.changedTouches.length;e+=1){let r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return null}return{x:e.clientX,y:e.clientY}}var Bi=X.forwardRef(function(e,n){let{render:r,className:a,style:o,...s}=e,{disabled:l,dragging:u,inset:f,lastChangedValueRef:p,lastChangeReasonRef:m,max:g,min:v,minStepsBetweenValues:y,onValueCommitted:x,orientation:S,pressedInputRef:w,pressedThumbCenterOffsetRef:T,pressedThumbIndexRef:E,pressedValuesRef:D,registerFieldControlRef:te,renderBeforeHydration:re,setActive:ie,setDragging:ae,setValue:ce,state:le,step:ue,thumbCollisionBehavior:de,thumbRefs:O,values:k}=Oi(),fe=se(),pe=k.length>1,me=S===`vertical`,A=X.useRef(null),M=X.useRef(null),he=h(e=>{e&&M.current==null&&(M.current=c(e).getComputedStyle(e))}),N=X.useRef(null),F=X.useRef(0),L=X.useRef(0),R=oe(k);function _e(e){E.current!==e&&(E.current=e);let t=O.current[e];if(!t){T.current=null,w.current=null;return}w.current=t.querySelector(`input[type="range"]`)}function ve(e){let t=A.current;if(!t)return null;let{width:n,height:r,bottom:i,left:a,right:o}=t.getBoundingClientRect(),s=Ri(M.current,me),c=L.current,l=(me?r:n)-s.start-s.end-c*2,u=T.current??0,d=e.x-u,f=e.y-u,p=U(((me?i-f-s.end:(fe===`rtl`?o-d:d-a)-s.start)-c)/l,0,1),m=(g-v)*p+v;if(m=Pi(m,ue,v),m=U(m,v,g),!pe)return{value:m,thumbIndex:0,didSwap:!1};let h=E.current;if(h<0)return null;let _=Ii({behavior:de,values:k,currentValues:R.current??k,initialValues:D.current,pressedIndex:h,nextValue:m,min:v,max:g,step:ue,minStepsBetweenValues:y});return de===`swap`&&_.didSwap?_e(_.thumbIndex):E.current=_.thumbIndex,_}function ye(e){D.current=pe?k.slice():null,R.current=k;let t=E.current,n=t;if(t>-1&&t<k.length){if(k[t]===g){let e=t;for(;e>0&&k[e-1]===g;)--e;n=e}}else{let t=me?`y`:`x`,r;n=-1;for(let i=0;i<O.current.length;i+=1){let a=O.current[i];if(d(a)){let o=Mi(a),s=Math.abs(e[t]-o[t]);(r===void 0||s<=r)&&(n=i,r=s)}}}if(n>-1&&n!==t&&_e(n),f){let e=O.current[n];d(e)&&(L.current=e.getBoundingClientRect()[me?`height`:`width`]/2)}}function be(e){let t=O.current?.[e]?.querySelector(`input[type="range"]`);t&&t.focus({preventScroll:!0,focusVisible:!1})}let z=h(e=>{let t=zi(e,N);if(t==null)return;if(F.current+=1,e.type===`pointermove`&&e.buttons===0){xe(e);return}let n=ve(t);n!=null&&Ti(n.value,ue,y)&&(!u&&F.current>Li&&ae(!0),ce(n.value,C(_,e,void 0,{activeThumbIndex:n.thumbIndex})),R.current=Array.isArray(n.value)?n.value:[n.value],n.didSwap&&be(n.thumbIndex))});function xe(e){ie(-1),ae(!1),w.current=null,T.current=null;let t=zi(e,N),n=t==null?null:ve(t);if(n!=null){let t=m.current;x(p.current??n.value,i(t,e))}`pointerType`in e&&A.current?.hasPointerCapture(e.pointerId)&&A.current?.releasePointerCapture(e.pointerId),E.current=-1,N.current=null,D.current=null,Ce()}let Se=h(e=>{if(l)return;let t=e.changedTouches[0];t!=null&&(N.current=t.identifier);let n=zi(e,N);if(n!=null){ye(n);let t=ve(n);if(t==null)return;be(t.thumbIndex),ce(t.value,C(ee,e,void 0,{activeThumbIndex:t.thumbIndex})),R.current=Array.isArray(t.value)?t.value:[t.value],t.didSwap&&be(t.thumbIndex)}F.current=0;let r=j(A.current);r.addEventListener(`touchmove`,z,{passive:!0}),r.addEventListener(`touchend`,xe,{passive:!0})}),Ce=h(()=>{let e=j(A.current);e.removeEventListener(`pointermove`,z),e.removeEventListener(`pointerup`,xe),e.removeEventListener(`touchmove`,z),e.removeEventListener(`touchend`,xe),D.current=null}),B=I();return X.useEffect(()=>{let e=A.current;if(!e)return()=>Ce();let t=P(e,`touchstart`,Se,{passive:!0});return()=>{t(),B.cancel(),Ce()}},[Ce,Se,A,B]),X.useEffect(()=>{l&&Ce()},[l,Ce]),ge(`div`,e,{state:le,ref:[n,te,A,he],props:[{"data-base-ui-slider-control":re?``:void 0,onPointerDown(e){let n=A.current,r=t(e.nativeEvent);if(!n||l||e.defaultPrevented||!d(r)||e.button!==0)return;let i=zi(e,N);if(i!=null){ye(i);let t=ve(i);if(t==null)return;b(O.current[t.thumbIndex],ne(j(n)))?e.preventDefault():B.request(()=>{be(t.thumbIndex)}),ae(!0),T.current??(ce(t.value,C(ee,e.nativeEvent,void 0,{activeThumbIndex:t.thumbIndex})),R.current=Array.isArray(t.value)?t.value:[t.value],t.didSwap&&be(t.thumbIndex))}e.nativeEvent.pointerId&&n.setPointerCapture(e.nativeEvent.pointerId),F.current=0;let a=j(A.current);a.addEventListener(`pointermove`,z,{passive:!0}),a.addEventListener(`pointerup`,xe,{once:!0})}},s],stateAttributesMapping:Ei})}),Vi=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=Oi();return ge(`div`,e,{state:o,ref:t,props:[{style:{position:`relative`}},a],stateAttributesMapping:Ei})}),Hi=function(e){return e.index=`data-index`,e.dragging=`data-dragging`,e.orientation=`data-orientation`,e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.focused=`data-focused`,e}({}),Ui=new Set([...f,T,l]);function Wi(e,t,n,r){if(!(t<0))return e.length===2?t===0?`${Rn(e[t],r,n)} start range`:`${Rn(e[t],r,n)} end range`:n?Rn(e[t],r,n):void 0}function Gi(e,t,n,r,i){let a=n===1?e+t:e-t;return U(Number(a.toFixed(Math.max(Ni(e),Ni(t),Ni(r)))),r,i)}var Ki=X.forwardRef(function(e,t){let{render:r,children:i,className:a,"aria-describedby":o,"aria-label":d,"aria-labelledby":p,disabled:g=!1,getAriaLabel:_,getAriaValueText:y,id:b,index:S,inputRef:C,onBlur:ee,onFocus:E,onKeyDown:D,tabIndex:ne,style:re,...ie}=e,{nonce:ae}=Fe(),oe=le(b),{active:ce,lastUsedThumbIndex:ue,controlRef:O,disabled:k,validation:pe,formatOptionsRef:me,handleInputChange:A,inset:j,labelId:M,largeStep:he,locale:N,max:P,min:F,minStepsBetweenValues:I,form:L,name:R,orientation:_e,pressedInputRef:ve,pressedThumbCenterOffsetRef:ye,pressedThumbIndexRef:be,renderBeforeHydration:z,setActive:xe,setIndicatorPosition:Se,state:Ce,step:B,values:V}=Oi(),we=se(),Te=g||k,De=V.length>1,Oe=_e===`vertical`,ke=we===`rtl`,{setTouched:Ae,setFocused:Me,validationMode:Ne}=je(),Pe=X.useRef(null),Le=X.useRef(null),Re=X.useRef(!1),ze=le(),Be=Ie(),H=De?ze:Be,{ref:U,index:Ve}=Ee({metadata:X.useMemo(()=>({inputId:H}),[H])}),W=De?S??Ve:0,He=W===V.length-1,G=V[W],Ue=zn(G,F,P),[We,Ge]=X.useState(),Ke=rr(),qe=ue>=0&&ue<V.length?ue:-1,Je=h(()=>{let e=O.current,t=Pe.current;if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=Oe?`height`:`width`,a=r[i]-n[i],o=(n[i]/2+a*Ue/100)/r[i]*100,s=Number.isFinite(o)?o:void 0;Ge(s),W===0?Se(e=>[s,e[1]]):He&&Se(e=>[e[0],s])});fe(()=>{j&&queueMicrotask(Je)},[Je,j]),fe(()=>{j&&Je()},[Je,j,Ue]),fe(()=>{if(!j)return;let e=O.current,t=Pe.current;if(!e||!t)return;let n=c(e).ResizeObserver;if(typeof n!=`function`)return;let r=new n(Je);return r.observe(e),r.observe(t),()=>{r.disconnect()}},[O,Je,j]);let Ye=Oe?`bottom`:`insetInlineStart`,Xe=Oe?`left`:`top`,Ze;De?ce===W?Ze=2:qe===W&&(Ze=1):ce===W&&(Ze=1);let Qe;Qe=j?{"--position":`${We??0}%`,visibility:z&&Ke||We===void 0?`hidden`:void 0,position:`absolute`,[Ye]:`var(--position)`,[Xe]:`50%`,translate:`${(Oe||!ke?-1:1)*50}% ${(Oe?1:-1)*50}%`,zIndex:Ze}:Number.isFinite(Ue)?{position:`absolute`,[Ye]:`${Ue}%`,[Xe]:`50%`,translate:`${(Oe||!ke?-1:1)*50}% ${(Oe?1:-1)*50}%`,zIndex:Ze}:de;let $e;_e===`vertical`&&($e=ke?`vertical-rl`:`vertical-lr`);let et=typeof _==`function`?_(W):d,tt=n({"aria-label":et,"aria-labelledby":p??(et==null?M:void 0),"aria-describedby":o,"aria-orientation":_e,"aria-valuenow":G,"aria-valuetext":typeof y==`function`?y(Rn(G,N,me.current??void 0),G,W):Wi(V,W,me.current??void 0,N),disabled:Te,form:L,id:H,max:P,min:F,name:R,onChange(e){A(e.currentTarget.valueAsNumber,W,e)},onFocus(e){let t=Re.current;Re.current=!1,xe(W),Me(!0),t&&e.stopPropagation()},onBlur(e){if(Re.current){e.stopPropagation();return}Pe.current&&(xe(-1),Ae(!0),Me(!1),Ne===`onBlur`&&pe.commit(wi(G,W,F,P,De,V)))},onKeyDown(e){if(!Ui.has(e.key))return;f.has(e.key)&&e.stopPropagation();let t=null,n=Pi(G,B,F);switch(e.key){case u:t=Gi(n,e.shiftKey?he:B,1,F,P);break;case s:t=Gi(n,e.shiftKey?he:B,ke?-1:1,F,P);break;case m:t=Gi(n,e.shiftKey?he:B,-1,F,P);break;case v:t=Gi(n,e.shiftKey?he:B,ke?1:-1,F,P);break;case T:t=Gi(n,he,1,F,P);break;case l:t=Gi(n,he,-1,F,P);break;case`End`:t=P,De&&(t=Number.isFinite(V[W+1])?V[W+1]-B*I:P);break;case x:t=F,De&&(t=Number.isFinite(V[W-1])?V[W-1]+B*I:F);break;default:break}if(t!==null){let n=e.currentTarget;te(n)||(Re.current=!0,n.blur(),n.focus({preventScroll:!0,focusVisible:!0})),A(t,W,e),e.preventDefault()}},step:B,style:{...de,width:`100%`,height:`100%`,writingMode:$e},tabIndex:ne??void 0,type:`range`,value:G??``},pe.getInputValidationProps),K=w(Le,pe.inputRef,C);return ge(`div`,e,{state:Ce,ref:[t,U,Pe],props:[{[Hi.index]:W,children:(0,Z.jsxs)(X.Fragment,{children:[i,(0,Z.jsx)(`input`,{ref:K,...tt,suppressHydrationWarning:!0}),j&&Ke&&z&&He&&(0,Z.jsx)(`script`,{nonce:ae,dangerouslySetInnerHTML:{__html:'!function(){const t=document.currentScript?.parentElement;if(!t)return;const e=t.closest("[data-base-ui-slider-control]");if(!e)return;const r=e.querySelector("[data-base-ui-slider-indicator]"),i=e.getBoundingClientRect(),n="vertical"===e.getAttribute("data-orientation")?"height":"width",o=e.querySelectorAll(\'input[type="range"]\'),l=o.length>1,s=o.length-1;let a=null,u=null;for(let t=0;t<o.length;t+=1){const e=o[t],y=parseFloat(e.getAttribute("value")??"");if(Number.isNaN(y))return;const c=e.parentElement;if(!c)return;const p=parseFloat(e.getAttribute("max")??"100"),g=parseFloat(e.getAttribute("min")??"0"),b=c?.getBoundingClientRect(),d=i[n]-b[n],m=100*(y-g)/(p-g),v=(b[n]/2+d*m/100)/i[n]*100;c.style.setProperty("--position",`${v}%`),Number.isFinite(v)&&(c.style.removeProperty("visibility"),r&&(0===t?(a=v,r.style.setProperty("--start-position",`${v}%`),l||r.style.removeProperty("visibility")):t===s&&(u=v-(a??0),r.style.setProperty("--end-position",`${v}%`),r.style.setProperty("--relative-size",`${u}%`),r.style.removeProperty("visibility"))))}}();'},suppressHydrationWarning:!0})]}),id:oe,onBlur:ee,onFocus:E,onPointerDown(e){if(be.current=W,Pe.current!=null){let t=_e===`horizontal`?`x`:`y`,n=Mi(Pe.current);ye.current=(_e===`horizontal`?e.clientX:e.clientY)-n[t]}Le.current!=null&&ve.current!==Le.current&&(ve.current=Le.current)},style:Qe,suppressHydrationWarning:z||void 0},ie],stateAttributesMapping:Ei})});function qi(e,t,n,r,i,a){let o=n===void 0||t&&r===void 0?`hidden`:void 0,s=e?`bottom`:`insetInlineStart`,c=e?`height`:`width`,l={visibility:i&&a?`hidden`:o,position:e?`absolute`:`relative`,[e?`width`:`height`]:`inherit`};return l[`--start-position`]=`${n??0}%`,t?(l[`--relative-size`]=`${(r??0)-(n??0)}%`,l[s]=`var(--start-position)`,l[c]=`var(--relative-size)`,l):(l[s]=0,l[c]=`var(--start-position)`,l)}function Ji(e,t,n,r){let i=e?`bottom`:`insetInlineStart`,a=e?`height`:`width`,o={position:e?`absolute`:`relative`,[e?`width`:`height`]:`inherit`};if(!t)return o[i]=0,o[a]=`${n}%`,o;let s=r-n;return o[i]=`${n}%`,o[a]=`${s}%`,o}var Yi=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{indicatorPosition:o,inset:s,max:c,min:l,orientation:u,renderBeforeHydration:d,state:f,values:p}=Oi(),m=rr(),h=u===`vertical`,g=p.length>1,_=s?qi(h,g,o[0],o[1],d,m):Ji(h,g,zn(p[0],l,c),zn(p[p.length-1],l,c));return ge(`div`,e,{state:f,ref:t,props:[{"data-base-ui-slider-indicator":d?``:void 0,style:_,suppressHydrationWarning:d||void 0},a],stateAttributesMapping:Ei})});function Xi({className:e,defaultValue:t,value:n,min:r=0,max:i=100,...a}){let o=Array.isArray(n)?n:n===void 0?Array.isArray(t)?t:t===void 0?[r]:[t]:[n];return(0,Z.jsx)(ji,{className:M(`data-horizontal:w-full data-vertical:h-full`,e),"data-slot":`slider`,defaultValue:t,value:n,min:r,max:i,thumbAlignment:`edge`,...a,children:(0,Z.jsxs)(Bi,{className:`relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-vertical:h-full data-vertical:min-h-40 data-vertical:w-auto data-vertical:flex-col`,children:[(0,Z.jsx)(Vi,{"data-slot":`slider-track`,className:`relative grow overflow-hidden rounded-full bg-primary/20 select-none data-horizontal:h-1.5 data-horizontal:w-full data-vertical:h-full data-vertical:w-1.5`,children:(0,Z.jsx)(Yi,{"data-slot":`slider-range`,className:`bg-primary select-none data-horizontal:h-full data-vertical:w-full`})}),Array.from({length:o.length},(e,t)=>(0,Z.jsx)(Ki,{"data-slot":`slider-thumb`,className:`relative block size-4 shrink-0 rounded-full border border-primary/50 bg-background shadow transition-colors select-none after:absolute after:-inset-2 max-md:after:-inset-3.5 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-disabled:pointer-events-none data-disabled:opacity-50`},t))]})})}var Zi=[{label:`Move bundle`,value:`move`},{label:`Copy bundle`,value:`copy`}],Qi=e=>({enabled:e.enabled,message:e.message??``,rolloutCohortCount:e.rollout_cohort_count,shouldForceUpdate:e.should_force_update,targetAppVersion:e.target_app_version??``,targetCohorts:[...e.target_cohorts]}),$i=(e,t)=>({enabled:t.enabled,message:t.message.trim()||null,rolloutCohortCount:t.rolloutCohortCount,shouldForceUpdate:t.shouldForceUpdate,...e.strategy===`APP_VERSION`?{targetAppVersion:t.targetAppVersion.trim()}:{},targetCohorts:t.targetCohorts}),ea=e=>(e/10).toFixed(1),ta=e=>{let t=e.replace(`,`,`.`),[n=``,...r]=t.split(`.`),i=n.replace(/\D/g,``).slice(0,3),a=r.join(``).replace(/\D/g,``).slice(0,1);return t.includes(`.`)?`${i}.${a}`:i},na=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?Math.min(1e3,Math.max(0,Math.trunc(t*10))):null};function ra({value:e,onChange:t}){let[n,r]=(0,X.useState)(ea(e)),[i,a]=(0,X.useState)(!1);return(0,X.useEffect)(()=>{i||r(ea(e))},[i,e]),(0,Z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,Z.jsx)(Xi,{"aria-label":`Rollout percentage`,max:1e3,min:0,onValueChange:n=>t(Array.isArray(n)?n[0]??e:n),step:1,value:e}),(0,Z.jsxs)(ct,{className:`w-24 shrink-0`,children:[(0,Z.jsx)(it,{"aria-label":`Rollout percentage`,autoComplete:`off`,className:`text-right tabular-nums`,id:`release-rollout-percentage`,inputMode:`decimal`,name:`rolloutPercentage`,onBlur:()=>{let i=na(n)??e;a(!1),r(ea(i)),t(i)},onChange:e=>{let n=ta(e.target.value);r(n);let i=na(n);i!==null&&t(i)},onFocus:()=>a(!0),value:n}),(0,Z.jsx)(at,{align:`inline-end`,children:(0,Z.jsx)(rt,{children:`%`})})]})]})}function ia({channels:t,onOpenChange:n,onShowScope:i,open:a,releaseId:o}){let s=zt(o),c=s.data,l=qt(c?.bundle_id??``),u=l.data,d=u?Ot(u):null,f=$t(c?.scope_key??``),p=Zt(),m=Bt(),h=Ut(),g=Xt(),[_,v]=(0,X.useState)(null),[b,x]=(0,X.useState)(``),[S,C]=(0,X.useState)(``),[w,T]=(0,X.useState)(!1),[ee,E]=(0,X.useState)(!1),[D,te]=(0,X.useState)(!1),[ne,ie]=(0,X.useState)(``),[oe,se]=(0,X.useState)(`move`);(0,X.useEffect)(()=>{v(c?Qi(c):null),C(``)},[c]);let le=c?Qi(c):null,de=_!==null&&le!==null&&JSON.stringify(_)!==JSON.stringify(le),k=m.isPending||p.isPending||h.isPending||g.isPending,fe=()=>{if(!k){if(de){T(!0);return}n(!1)}},pe=()=>{if(!_)return;let e=jt(b);if(!Dt(e)){C(kt);return}v({..._,targetCohorts:Array.from(new Set([..._.targetCohorts,e]))}),x(``),C(``)},me=async()=>{if(!c||!_)return;let e=_.targetCohorts.map(jt);if(e.some(e=>!Dt(e))){C(kt);return}if(c.strategy===`APP_VERSION`&&!hi(_.targetAppVersion.trim())){C(`Enter a valid target app version range.`);return}let t={expectedRevision:c.revision,patch:$i(c,{..._,targetCohorts:e}),releaseId:c.id};C(``);try{await m.mutateAsync(t),await p.mutateAsync(t),K.success(`Bundle settings saved`),n(!1)}catch(e){C(e instanceof Error?e.message:`Bundle settings could not be saved.`)}},j=t.find(e=>e.id===c?.channel_id)?.name??c?.channel_id,M=t.filter(e=>e.id!==c?.channel_id),he=M.map(e=>({label:e.name,value:e.name})),N=ne.trim(),P=oe===`copy`,ge=_?hi(_.targetAppVersion.trim()):null,I=()=>{ie(``),se(`move`)},L=e=>{!e&&g.isPending||(te(e),e||I())};return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ue,{onOpenChange:e=>e?void 0:fe(),open:a,children:(0,Z.jsxs)(re,{className:`min-w-0 overflow-hidden data-[side=right]:w-full sm:max-w-[600px]`,children:[(0,Z.jsxs)(F,{className:`shrink-0 pr-12`,children:[(0,Z.jsx)(ae,{children:`Bundle Detail`}),(0,Z.jsx)(A,{className:`sr-only`,children:`Edit bundle delivery settings.`}),c?(0,Z.jsxs)(`div`,{className:`mt-1 flex min-w-0 flex-col gap-3 text-sm`,children:[(0,Z.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(un,{className:`size-4`,platform:c.platform}),(0,Z.jsx)(`span`,{className:`font-medium`,children:c.platform===`ios`?`iOS`:`Android`})]})}),(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-start gap-2`,children:[(0,Z.jsx)(`span`,{className:`font-medium text-muted-foreground`,children:`ID`}),(0,Z.jsxs)(`span`,{className:`min-w-0 basis-full sm:basis-auto`,children:[(0,Z.jsx)(Sn,{bundleId:c.id,fullOnMobile:!0,maxLength:18}),c.bundle_id?null:(0,Z.jsx)(`span`,{className:`text-xs text-foreground`,children:`Built-in bundle`})]})]}),(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,Z.jsx)(`span`,{className:`font-medium text-muted-foreground`,children:`Channel`}),(0,Z.jsx)(`span`,{className:`text-xs text-foreground`,translate:`no`,children:j})]}),j?(0,Z.jsx)(bi,{bundle:u,channel:j,release:c}):null,(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,Z.jsx)(`span`,{className:`font-medium text-muted-foreground`,children:`Platform`}),(0,Z.jsx)(`span`,{className:`text-xs text-foreground`,children:c.platform===`ios`?`iOS`:`Android`})]})]}):(0,Z.jsx)(e,{className:`h-12 w-full`})]}),(0,Z.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-contain`,children:[s.isError?(0,Z.jsxs)(mt,{className:`m-4 sm:m-6`,variant:`destructive`,children:[(0,Z.jsx)(ht,{}),(0,Z.jsx)(ft,{children:`Bundle details could not be loaded`}),(0,Z.jsx)(pt,{children:s.error.message})]}):null,c&&_?(0,Z.jsxs)(`div`,{className:`flex flex-col gap-6 px-4 pb-4 sm:px-6 sm:pb-6`,children:[j?(0,Z.jsx)(Ce,{release:{platform:c.platform,channel:j,releaseId:c.id,builtIn:!c.bundle_id}}):null,(0,Z.jsxs)(`section`,{"aria-labelledby":`delivery-settings-heading`,className:`flex flex-col gap-4`,children:[(0,Z.jsx)(`h3`,{className:`text-sm font-medium`,id:`delivery-settings-heading`,children:`Delivery settings`}),(0,Z.jsxs)(Pt,{className:`gap-6`,children:[(0,Z.jsxs)(Lt,{children:[(0,Z.jsx)(Mt,{htmlFor:`release-message`,children:`Message`}),(0,Z.jsx)(ot,{autoComplete:`off`,id:`release-message`,name:`message`,onChange:e=>v({..._,message:e.target.value}),rows:3,value:_.message})]}),c.strategy===`APP_VERSION`?(0,Z.jsxs)(Lt,{children:[(0,Z.jsx)(Mt,{htmlFor:`release-target`,children:`Target app version`}),(0,Z.jsx)(y,{autoComplete:`off`,id:`release-target`,name:`targetAppVersion`,onChange:e=>v({..._,targetAppVersion:e.target.value}),value:_.targetAppVersion}),ge?(0,Z.jsx)(Ft,{children:ge}):null]}):null,(0,Z.jsx)(Lt,{children:(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,Z.jsx)(Mt,{htmlFor:`release-enabled`,children:`Enabled`}),(0,Z.jsx)(_t,{label:`About Enabled`,children:`Disabling rolls devices back to the previous enabled bundle on their next check, or to the built-in app when none remains.`})]}),(0,Z.jsx)(ut,{"aria-label":`Enabled`,checked:_.enabled,id:`release-enabled`,name:`enabled`,onCheckedChange:e=>v({..._,enabled:e})})]})}),(0,Z.jsx)(Lt,{children:(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,Z.jsx)(Mt,{htmlFor:`release-force-update`,children:`Force update`}),(0,Z.jsx)(_t,{label:`About Force update`,children:`Devices apply this bundle right away, and so do devices that skip it to update straight to a newer bundle.`})]}),(0,Z.jsx)(ut,{"aria-label":`Force update`,checked:_.shouldForceUpdate,id:`release-force-update`,name:`shouldForceUpdate`,onCheckedChange:e=>v({..._,shouldForceUpdate:e})})]})}),(0,Z.jsxs)(Lt,{children:[(0,Z.jsx)(Mt,{htmlFor:`release-rollout-percentage`,children:`Rollout percentage`}),(0,Z.jsx)(ra,{onChange:e=>v({..._,rolloutCohortCount:e}),value:_.rolloutCohortCount})]}),(0,Z.jsxs)(Lt,{children:[(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,Z.jsx)(Mt,{htmlFor:`release-cohort`,children:`Additional cohorts (optional)`}),(0,Z.jsx)(yi,{releaseId:c.id,rolloutCohortCount:_.rolloutCohortCount,targetCohorts:_.targetCohorts})]}),(0,Z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Z.jsx)(y,{autoComplete:`off`,id:`release-cohort`,name:`targetCohort`,onChange:e=>x(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),pe())},placeholder:`e.g. qa-team…`,value:b}),(0,Z.jsx)(O,{"aria-label":`Add cohort`,className:`max-md:size-11`,disabled:!b.trim(),onClick:pe,size:`icon`,type:`button`,variant:`outline`,children:(0,Z.jsx)(tt,{})})]}),_.targetCohorts.length?(0,Z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:_.targetCohorts.map(e=>(0,Z.jsxs)(q,{className:`gap-1 font-mono`,variant:`secondary`,children:[e,(0,Z.jsx)(`button`,{"aria-label":`Remove cohort ${e}`,className:`rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>v({..._,targetCohorts:_.targetCohorts.filter(t=>t!==e)}),type:`button`,children:(0,Z.jsx)(r,{className:`size-3`})})]},e))}):null,(0,Z.jsx)(Ft,{children:`Public names—no IDs or secrets.`})]})]}),S?(0,Z.jsx)(It,{children:S}):null,(0,Z.jsx)(O,{className:`w-full max-md:h-11`,disabled:!de||k,onClick:me,size:`lg`,children:m.isPending||p.isPending?`Saving…`:`Save changes`})]}),(0,Z.jsx)(ce,{className:`my-2`}),(0,Z.jsxs)(`section`,{className:`flex flex-col gap-4`,children:[(0,Z.jsx)(`h3`,{className:`text-sm font-medium`,children:`Actions`}),(0,Z.jsx)(O,{className:`w-full max-md:h-11`,disabled:!c.bundle_id||k,onClick:()=>te(!0),size:`sm`,variant:`outline`,children:`Promote to channel`}),c.bundle_id?(0,Z.jsxs)(O,{className:`w-full max-md:h-11`,disabled:k,onClick:()=>{window.open(`/api/bundles/${encodeURIComponent(c.bundle_id)}/download`,`_blank`,`noopener,noreferrer`),K.success(`Bundle download started`)},size:`sm`,variant:`outline`,children:[(0,Z.jsx)(We,{"data-icon":`inline-start`}),`Download manifest`]}):null,(0,Z.jsx)(O,{className:`w-full max-md:h-11`,disabled:c.enabled||k,onClick:()=>E(!0),size:`sm`,variant:`destructive`,children:`Remove from channel`})]}),c.bundle_id&&l.isPending?(0,Z.jsx)(e,{className:`h-40 w-full`}):null,c.bundle_id&&l.isError?(0,Z.jsxs)(mt,{variant:`destructive`,children:[(0,Z.jsx)(ht,{}),(0,Z.jsx)(ft,{children:`Build details are unavailable`}),(0,Z.jsx)(pt,{children:`Delivery settings are unaffected.`})]}):null,!c.bundle_id||!l.isPending?(0,Z.jsx)(_i,{bundle:u,release:c}):null,(0,Z.jsxs)(`details`,{className:`rounded-lg border bg-muted/10 p-4 text-xs`,children:[(0,Z.jsx)(`summary`,{className:`cursor-pointer font-medium`,children:`Advanced diagnostics`}),(0,Z.jsxs)(`dl`,{className:`mt-4 grid gap-3 text-muted-foreground sm:grid-cols-2`,children:[(0,Z.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,Z.jsx)(`dt`,{children:`Artifact ID`}),(0,Z.jsx)(`dd`,{className:`mt-1 break-all font-mono text-foreground`,children:c.bundle_id??`Built-in bundle`})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`dt`,{children:`Revision`}),(0,Z.jsx)(`dd`,{className:`mt-1 font-mono text-foreground`,children:c.revision})]}),d?(0,Z.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,Z.jsx)(`dt`,{children:`Patch base artifact ID`}),(0,Z.jsx)(`dd`,{className:`mt-1 break-all font-mono text-foreground`,children:d})]}):null,(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`dt`,{children:`Catalog generation`}),(0,Z.jsx)(`dd`,{className:`mt-1 font-mono text-foreground`,children:f.data?.generation??`—`})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`dt`,{children:`Catalog size`}),(0,Z.jsx)(`dd`,{className:`mt-1 font-mono text-foreground`,children:f.data?`${f.data.byte_size} bytes`:`—`})]}),(0,Z.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,Z.jsx)(`dt`,{children:`Scope key`}),(0,Z.jsx)(`dd`,{className:`mt-1 break-all font-mono text-foreground`,children:c.scope_key}),i?(0,Z.jsx)(O,{className:`mt-1 h-auto px-0 text-xs max-md:min-h-11`,onClick:()=>i(c.scope_key),size:`sm`,variant:`link`,children:`Show bundles for this target`}):null]})]}),f.isError?(0,Z.jsx)(`p`,{className:`mt-3 text-destructive`,children:`Diagnostics are unavailable. Bundle settings are unaffected.`}):null]})]}):null]})]})}),(0,Z.jsx)(cn,{onOpenChange:T,open:w,children:(0,Z.jsxs)(tn,{children:[(0,Z.jsxs)(sn,{children:[(0,Z.jsx)(nn,{children:`Discard unsaved changes?`}),(0,Z.jsx)(en,{children:`Your Bundle changes will be lost.`})]}),(0,Z.jsxs)(an,{children:[(0,Z.jsx)(on,{children:`Keep editing`}),(0,Z.jsx)(rn,{onClick:()=>{T(!1),n(!1)},variant:`destructive`,children:`Discard changes`})]})]})}),(0,Z.jsx)(cn,{onOpenChange:E,open:ee,children:(0,Z.jsxs)(tn,{children:[(0,Z.jsxs)(sn,{children:[(0,Z.jsxs)(nn,{children:[`Remove this Bundle from `,j??`the channel`,`?`]}),(0,Z.jsx)(en,{children:`The uploaded artifact stays available. This only removes the Bundle from the channel.`})]}),(0,Z.jsxs)(an,{children:[(0,Z.jsx)(on,{children:`Cancel`}),(0,Z.jsx)(rn,{onClick:async()=>{if(c)try{await h.mutateAsync({expectedRevision:c.revision,releaseId:c.id}),K.success(`Bundle removed from ${j??`the channel`}`),E(!1),n(!1)}catch(e){C(e instanceof Error?e.message:`Bundle could not be removed from the channel.`)}},variant:`destructive`,children:`Remove from channel`})]})]})}),(0,Z.jsx)(_n,{onOpenChange:L,open:D,children:(0,Z.jsxs)(pn,{showCloseButton:!g.isPending,children:[(0,Z.jsxs)(dn,{children:[(0,Z.jsx)(mn,{children:`Promote to Channel`}),(0,Z.jsx)(hn,{children:`Choose how to promote this Bundle, then select the target channel.`})]}),(0,Z.jsxs)(`div`,{className:`space-y-4 py-4`,children:[(0,Z.jsxs)(`div`,{className:`space-y-2`,children:[(0,Z.jsx)(Nt,{htmlFor:`promote-action`,children:`Action`}),(0,Z.jsxs)(G,{disabled:g.isPending,items:Zi,onValueChange:e=>se(e),value:oe,children:[(0,Z.jsx)(Le,{className:`w-full`,id:`promote-action`,children:(0,Z.jsx)(W,{placeholder:`Select an action`})}),(0,Z.jsx)(Ve,{children:(0,Z.jsxs)(He,{children:[(0,Z.jsx)(H,{value:`move`,children:`Move bundle`}),(0,Z.jsx)(H,{value:`copy`,children:`Copy bundle`})]})})]}),(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:P?`Make this Bundle available in the target channel and keep it in the current channel.`:`Move this Bundle to the target channel. Devices in the current channel may fall back to an earlier Bundle.`})]}),(0,Z.jsxs)(`div`,{className:`space-y-2`,children:[(0,Z.jsx)(Nt,{htmlFor:`target-channel`,children:`Target Channel`}),(0,Z.jsxs)(G,{disabled:g.isPending,items:he,onValueChange:e=>ie(e??``),value:ne||null,children:[(0,Z.jsx)(Le,{className:`w-full`,id:`target-channel`,children:(0,Z.jsx)(W,{placeholder:`Select a channel`})}),(0,Z.jsx)(Ve,{className:`max-h-64`,children:(0,Z.jsx)(He,{children:M.map(e=>(0,Z.jsx)(H,{value:e.name,children:e.name},e.id))})})]})]})]}),(0,Z.jsxs)(fn,{children:[(0,Z.jsx)(O,{disabled:g.isPending,onClick:()=>L(!1),variant:`outline`,children:`Cancel`}),(0,Z.jsx)(O,{disabled:!N||g.isPending,onClick:async()=>{if(c)try{await g.mutateAsync({action:oe,expectedRevision:c.revision,releaseId:c.id,targetChannel:N}),L(!1),K.success(P?`Bundle copied to ${N}`:`Bundle moved to ${N}`)}catch(e){K.error(e instanceof Error?e.message:`Bundle could not be promoted.`)}},children:g.isPending?P?`Copying…`:`Moving…`:P?`Copy`:`Move`})]})]})})]})}function aa({release:e}){return(0,Z.jsxs)(q,{className:`gap-1 font-normal text-muted-foreground`,variant:e.enabled?`outline`:`secondary`,children:[e.enabled?(0,Z.jsx)(V,{className:`size-3`}):(0,Z.jsx)(Ue,{className:`size-3`}),e.enabled?`Enabled`:`Disabled`]})}var oa={data:void 0,error:null,isError:!1,isPending:!0,isPlaceholderData:!1},sa={one:`unreachable bundle`,other:`unreachable bundles`},ca=[{label:`iOS`,value:`ios`},{label:`Android`,value:`android`}],la=[{label:`Any Status`,value:`all`},{label:`Enabled`,value:`enabled`},{label:`Disabled`,value:`disabled`}];function ua({channels:e,clearable:t,onChange:n,onClear:i,onManageChannels:a,pending:o,search:s}){let c=s.channelId!==void 0,l=[{label:`All Channels`,value:`all`},...e.map(e=>({label:e.name,value:e.id}))];return(0,Z.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-2 border-b bg-background px-3 py-3 sm:h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:py-0 sm:backdrop-blur-sm`,children:[(0,Z.jsx)(me,{className:`-ml-1 size-11 lg:size-7`}),(0,Z.jsx)(`h1`,{className:`sr-only`,children:`Bundles`}),(0,Z.jsxs)(`div`,{className:`ml-1 flex items-center gap-1.5 text-muted-foreground sm:ml-2`,children:[(0,Z.jsx)(Yn,{className:`size-3.5`}),(0,Z.jsx)(`span`,{className:`text-xs font-medium`,children:`Filters`})]}),(0,Z.jsxs)(G,{disabled:o,items:l,onValueChange:e=>n(e===null||e===`all`?{channelId:void 0,channels:`all`}:{channelId:e}),value:o?null:s.channelId??`all`,children:[(0,Z.jsx)(Le,{"aria-label":`Channel`,className:`w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 sm:w-[140px] sm:data-[size=default]:h-8`,children:(0,Z.jsx)(W,{})}),(0,Z.jsx)(Ve,{children:(0,Z.jsxs)(He,{children:[(0,Z.jsx)(H,{value:`all`,children:`All Channels`}),e.map(e=>(0,Z.jsx)(H,{value:e.id,children:e.name},e.id))]})})]}),(0,Z.jsxs)(G,{disabled:!c,items:ca,onValueChange:e=>n({platform:e===`android`?`android`:`ios`}),value:s.platform??`ios`,children:[(0,Z.jsx)(Le,{"aria-label":`Platform`,className:`w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:data-[size=default]:h-8`,title:c?void 0:`Choose a channel first`,children:(0,Z.jsx)(W,{})}),(0,Z.jsx)(Ve,{children:(0,Z.jsxs)(He,{children:[(0,Z.jsx)(H,{value:`ios`,children:`iOS`}),(0,Z.jsx)(H,{value:`android`,children:`Android`})]})})]}),(0,Z.jsxs)(G,{disabled:!c&&s.scopeKey===void 0,items:la,onValueChange:e=>n({enabled:e===`enabled`?!0:e===`disabled`?!1:void 0}),value:s.enabled===void 0?`all`:s.enabled?`enabled`:`disabled`,children:[(0,Z.jsx)(Le,{"aria-label":`Status`,className:`w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:data-[size=default]:h-8`,children:(0,Z.jsx)(W,{})}),(0,Z.jsx)(Ve,{children:(0,Z.jsxs)(He,{children:[(0,Z.jsx)(H,{value:`all`,children:`Any Status`}),(0,Z.jsx)(H,{value:`enabled`,children:`Enabled`}),(0,Z.jsx)(H,{value:`disabled`,children:`Disabled`})]})})]}),(0,Z.jsx)(O,{"aria-label":`Manage channels`,className:`size-11 max-sm:order-1 sm:size-7`,onClick:a,size:`icon-sm`,title:`Manage channels`,variant:`outline`,children:(0,Z.jsx)(Qn,{})}),s.bundleId?(0,Z.jsxs)(q,{className:`max-w-48 gap-1 max-sm:order-3`,variant:`secondary`,children:[`Artifact filter`,(0,Z.jsx)(`button`,{"aria-label":`Clear artifact filter`,className:`relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden`,onClick:()=>n({bundleId:void 0}),type:`button`,children:(0,Z.jsx)(r,{className:`size-3`})})]}):null,s.scopeKey?(0,Z.jsxs)(q,{className:`max-w-48 gap-1 max-sm:order-3`,variant:`secondary`,children:[`Target filter`,(0,Z.jsx)(`button`,{"aria-label":`Clear target filter`,className:`relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden`,onClick:()=>n({scopeKey:void 0}),type:`button`,children:(0,Z.jsx)(r,{className:`size-3`})})]}):null,t?(0,Z.jsxs)(O,{className:`h-11 px-2 text-xs text-muted-foreground hover:text-foreground max-sm:order-3 sm:ml-auto sm:h-8`,onClick:i,size:`sm`,variant:`ghost`,children:[(0,Z.jsx)(r,{"data-icon":`inline-start`}),`Clear`]}):null]})}function da({expanded:e,onOpen:t,onToggleExpand:n,release:r}){let i=r.operation===`PROMOTE`?`Promoted`:r.operation===`ROLLBACK`?`Rollback`:null;return(0,Z.jsxs)(`div`,{className:`flex min-w-[240px] items-center gap-3`,children:[r.bundle_id?(0,Z.jsx)(O,{"aria-controls":`bundle-lineage-panel-${r.id}`,"aria-expanded":e,"aria-label":e?`Hide advanced artifact diagnostics`:`Show advanced artifact diagnostics`,title:`Advanced artifact diagnostics`,className:`size-11 shrink-0 touch-manipulation sm:size-8`,onClick:n,size:`icon`,type:`button`,variant:`ghost`,children:e?(0,Z.jsx)(we,{}):(0,Z.jsx)(Ae,{})}):(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`size-11 shrink-0 sm:size-8`}),(0,Z.jsxs)(`button`,{"aria-label":`Open details for ID ${r.id}`,className:`min-w-0 rounded-sm text-left text-foreground transition-colors underline-offset-4 hover:text-primary hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:t,title:r.id,type:`button`,children:[(0,Z.jsx)(Sn,{bundleId:r.id,fullOnMobile:!0}),r.bundle_id?null:(0,Z.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-sm`,children:[(0,Z.jsx)(st,{className:`size-3.5`}),` Built-in bundle`]})]}),i?(0,Z.jsx)(q,{className:`shrink-0 font-normal`,variant:`secondary`,children:i}):null,r.currentlyUnreachable?(0,Z.jsx)(Jn,{icon:Ue,label:`Unreachable: no device gets this bundle with the current delivery settings.`,reason:`No device gets this bundle with the current delivery settings.`,children:`Unreachable`}):null]})}function fa({onDetailClick:t,panelId:n,release:r}){let i=r.bundle_id??``,a=qt(i),o=Gt(i);return a.isError||o.isError?(0,Z.jsx)(`div`,{"aria-live":`polite`,className:`border-t bg-muted/10 p-4 text-sm text-muted-foreground`,id:n,children:`Patch lineage could not be loaded.`}):a.isPending?(0,Z.jsxs)(`div`,{"aria-live":`polite`,className:`flex flex-col gap-2 border-t bg-muted/10 p-4`,id:n,children:[(0,Z.jsx)(e,{className:`h-10 w-full`}),(0,Z.jsx)(e,{className:`h-10 w-full`})]}):a.data?(0,Z.jsx)(ar,{bundle:a.data,bundles:o.data??[],loading:o.isPending,onDetailClick:t,panelId:n}):(0,Z.jsx)(`div`,{"aria-live":`polite`,className:`border-t bg-muted/10 p-4 text-sm text-muted-foreground`,id:n,children:`Bundle details are unavailable.`})}function pa(e,t){return{patchCounts:Yt(Array.from(new Set(e.flatMap(e=>e.bundle_id?[e.bundle_id]:[])))).data??{},slotReleases:e.flatMap(e=>{let n=t.find(t=>t.id===e.channel_id)?.name;return n?[{releaseId:e.id,platform:e.platform,channel:n,builtIn:!e.bundle_id}]:[]})}}var ma=(e,t)=>t>=e.to&&(e.from===void 0||t<e.from);function ha({fold:e,filter:t,channels:n,columns:r,isMobile:i,open:a,onOpenChange:o,render:s}){let c=Ht(t,{...e.from===void 0?{}:{from:e.from},to:e.to},a),l=c.data?.pages.flatMap(e=>e.rows)??[],u=pa(l,n),d=i?void 0:r,f=c.isError?(0,Z.jsx)(Hn,{columns:d,label:`Unreachable bundles`,onRetry:()=>void c.refetch(),state:`error`}):c.isPending||c.isFetchingNextPage?(0,Z.jsx)(Hn,{columns:d,label:`Loading unreachable bundles`,state:`loading`}):c.hasNextPage?(0,Z.jsx)(Hn,{columns:d,label:`Unreachable bundles`,onMore:()=>void c.fetchNextPage(),state:`more`}):null,p={label:Gn(e,sa),open:a,onOpenChange:o,panelId:`bundle-fold-${e.to}`};return i?(0,Z.jsxs)(Wn,{...p,children:[l.map(e=>s(e,u)),f]}):(0,Z.jsxs)(Kn,{...p,columns:r,children:[l.map(e=>s(e,u)),f]})}function ga(){let e=B.useSearch(),t=B.useNavigate(),n=k(),[r,i]=(0,X.useState)(!1),[a,o]=(0,X.useState)(),s=Un(),c=Wt(),l=c.data??[],u=c.data,d=ye(e,u),f=d===void 0&&c.isError,p=d??e,m=Se(p),h=Rt({afterReleaseId:p.afterReleaseId,beforeReleaseId:p.beforeReleaseId,filter:m,releaseId:p.releaseId},{enabled:d!==void 0}),g=!ve(e,u),_=d===void 0?oa:h,v=_.data?.entries??[],y=v.flatMap(e=>e.kind===`row`?[e.row]:[]),b=pa(y,l),x=_.data?.next,S=_.data?.previous,C=be(),w=10+C.length,T=new Map(l.map(e=>[e.id,e.name])),ee=a!==void 0&&(e=>y.some(t=>t.id===e)||v.some(t=>t.kind===`fold`&&s.isOpen(Bn(t))&&ma(t,e)))(a);(0,X.useEffect)(()=>{a!==void 0&&!ee&&o(void 0)},[a,ee]);let E=(e,n=!0)=>void t({resetScroll:n,search:e,to:`/`}),D=e=>E(xe(p,e)),te=e=>{y.some(({id:t})=>t===e.id)||s.set(e.id,!0),E({...p,releaseId:e.id},!1)},ne=e=>{let t=y.find(t=>t.bundle_id===e.id);if(o(void 0),t){E({...p,releaseId:t.id},!1);return}D({bundleId:e.id})},re=p.afterReleaseId!==void 0||p.beforeReleaseId!==void 0,ae=S?{...p,afterReleaseId:`after`in S?S.after:void 0,beforeReleaseId:`before`in S?S.before:void 0,releaseId:void 0}:null,oe=x?{...p,afterReleaseId:void 0,beforeReleaseId:x,releaseId:void 0}:null,se={...p,afterReleaseId:void 0,beforeReleaseId:void 0,releaseId:void 0},ce=(e,t)=>{let n=T.get(e.channel_id)??e.channel_id,r=e.bundle_id?t.patchCounts[e.bundle_id]:0,i=ee&&a===e.id,s=`bundle-lineage-panel-${e.id}`;return(0,Z.jsxs)(X.Fragment,{children:[(0,Z.jsxs)(An,{"aria-label":`Bundle ${e.id}`,className:M(`gap-3`,e.currentlyUnreachable&&`bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100`,i&&`border-b-0 bg-primary/5`),"data-state":p.releaseId===e.id?`selected`:void 0,onClick:Mn(()=>te(e)),children:[(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsx)(da,{expanded:i,onOpen:()=>te(e),onToggleExpand:()=>o(i?void 0:e.id),release:e}),(0,Z.jsx)(Cn,{channel:n,className:`shrink-0`})]}),(0,Z.jsxs)(`p`,{className:`flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground`,children:[(0,Z.jsxs)(`span`,{className:`flex items-center gap-1.5 text-foreground`,children:[(0,Z.jsx)(un,{className:`size-4`,platform:e.platform}),e.platform===`ios`?`iOS`:`Android`]}),r===void 0||r>0?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,Z.jsx)(`span`,{children:r===void 0?`Checking patches`:`${r} ${r===1?`patch`:`patches`}`})]}):null,(0,Z.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,Z.jsx)(Fn,{ms:e.created_at_ms})]}),(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-2 text-xs`,children:[(0,Z.jsx)(Je,{percentage:e.rollout_cohort_count/10}),(0,Z.jsx)(aa,{release:e}),e.should_force_update?(0,Z.jsx)(q,{variant:`secondary`,children:`Force update`}):null,(0,Z.jsxs)(`span`,{className:`flex items-center`,children:[(0,Z.jsx)(`span`,{className:`sr-only`,children:`Target `}),(0,Z.jsx)(ke,{appVersion:e.target_app_version,fingerprintHash:e.fingerprint_hash})]})]}),C.map(({Cell:n,feature:r,label:i})=>(0,Z.jsxs)(`div`,{className:`mt-3 text-xs`,children:[(0,Z.jsx)(`span`,{className:`sr-only`,children:i}),(0,Z.jsx)(n,{releaseId:e.id,releases:t.slotReleases})]},r)),e.message?(0,Z.jsx)(`p`,{className:`line-clamp-2 text-xs text-muted-foreground`,children:e.message}):null]}),i&&e.bundle_id?(0,Z.jsx)(fa,{onDetailClick:ne,panelId:s,release:e}):null]},e.id)},le=(e,t)=>{let n=ee&&a===e.id,r=`bundle-lineage-panel-${e.id}`;return(0,Z.jsxs)(X.Fragment,{children:[(0,Z.jsxs)(En,{"aria-label":`Open bundle ${e.id}`,className:M(e.currentlyUnreachable&&`bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100`,n&&`bg-primary/5`),"data-state":p.releaseId===e.id?`selected`:void 0,onOpen:()=>te(e),children:[(0,Z.jsx)(Y,{children:(0,Z.jsx)(da,{expanded:n,onOpen:()=>te(e),onToggleExpand:()=>o(n?void 0:e.id),release:e})}),(0,Z.jsx)(Y,{children:(0,Z.jsx)(Cn,{channel:T.get(e.channel_id)??e.channel_id})}),(0,Z.jsx)(Y,{className:`whitespace-nowrap`,children:(0,Z.jsx)(ln,{platform:e.platform})}),(0,Z.jsx)(Y,{children:e.bundle_id&&t.patchCounts[e.bundle_id]===void 0?(0,Z.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Checking`}):e.bundle_id&&t.patchCounts[e.bundle_id]>0?(0,Z.jsxs)(q,{variant:`secondary`,children:[t.patchCounts[e.bundle_id],` `,t.patchCounts[e.bundle_id]===1?`patch`:`patches`]}):(0,Z.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,Z.jsx)(Y,{children:(0,Z.jsx)(ke,{appVersion:e.target_app_version,fingerprintHash:e.fingerprint_hash})}),(0,Z.jsx)(Y,{children:(0,Z.jsxs)(`span`,{className:`flex items-center`,children:[(0,Z.jsx)(ir,{enabled:e.enabled}),(0,Z.jsx)(`span`,{className:`sr-only`,children:e.enabled?`Enabled`:`Disabled`})]})}),(0,Z.jsx)(Y,{children:(0,Z.jsxs)(`span`,{className:`flex items-center`,children:[(0,Z.jsx)(ir,{enabled:e.should_force_update,falseIcon:`minus`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:e.should_force_update?`Required`:`Optional`})]})}),(0,Z.jsx)(Y,{children:(0,Z.jsx)(Je,{percentage:e.rollout_cohort_count/10})}),C.map(({Cell:n,feature:r})=>(0,Z.jsx)(Y,{children:(0,Z.jsx)(n,{releaseId:e.id,releases:t.slotReleases})},r)),(0,Z.jsx)(Y,{className:`text-sm text-muted-foreground`,title:e.message??void 0,children:e.message||`-`}),(0,Z.jsx)(Y,{className:`text-xs text-muted-foreground`,children:(0,Z.jsx)(Fn,{ms:e.created_at_ms})})]}),n&&e.bundle_id?(0,Z.jsx)(bn,{className:`hover:bg-transparent`,children:(0,Z.jsx)(Y,{className:`border-t-0 p-0`,colSpan:w,children:(0,Z.jsx)(fa,{onDetailClick:ne,panelId:r,release:e})})}):null]},e.id)},ue=(e,t)=>(0,Z.jsx)(ha,{channels:l,columns:w,filter:m,fold:e,isMobile:n,onOpenChange:t=>s.set(Bn(e),t),open:s.isOpen(Bn(e)),render:t},`fold-${e.to}`),de=(0,Z.jsxs)(Z.Fragment,{children:[`No `,p.platform===`android`?`Android`:`iOS`,` bundles in`,` `,(0,Z.jsx)(`span`,{translate:`no`,children:T.get(p.channelId??``)??p.channelId})]}),fe=(0,Z.jsx)(Pn,{icon:Qe,title:y.length===0&&v.length>0?`No device gets the bundles here`:re?`No more bundles`:z(p)?g?`No bundles match these filters`:de:`No bundles yet`,children:re?(0,Z.jsx)(L,{className:ie({className:`mt-1 min-h-11 sm:min-h-8`,variant:`outline`}),search:se,to:`/`,children:`Show the newest bundles`}):g?(0,Z.jsx)(O,{className:`mt-1 min-h-11 sm:min-h-8`,onClick:()=>E({}),variant:`outline`,children:`Clear filters`}):z(p)?(0,Z.jsx)(O,{className:`mt-1 min-h-11 sm:min-h-8`,onClick:()=>D({channelId:void 0,channels:`all`}),variant:`outline`,children:`Show all channels`}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`p`,{children:`Deploy one from your app's project:`}),(0,Z.jsx)(`div`,{className:`w-full text-left`,children:(0,Z.jsx)(Oe,{label:`the deploy command`,value:`npx hot-updater deploy`,wrap:!0})})]})});return(0,Z.jsxs)(`div`,{className:`flex h-svh min-h-0 min-w-0 flex-col`,children:[(0,Z.jsx)(ua,{channels:l,clearable:g,onChange:D,onClear:()=>E({}),onManageChannels:()=>i(!0),pending:d===void 0,search:p}),(0,Z.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col gap-6 bg-muted/5 p-3 sm:p-6`,children:[f?(0,Z.jsxs)(mt,{variant:`destructive`,children:[(0,Z.jsx)(ht,{}),(0,Z.jsx)(ft,{children:`Channels couldn't be loaded`}),(0,Z.jsx)(pt,{children:`Bundles show once the channels load.`}),(0,Z.jsx)(gt,{children:(0,Z.jsxs)(O,{className:`min-h-11 sm:min-h-7`,onClick:()=>void c.refetch(),size:`xs`,variant:`outline`,children:[(0,Z.jsx)(nt,{"data-icon":`inline-start`}),`Retry`]})})]}):_.isError?(0,Z.jsxs)(mt,{variant:`destructive`,children:[(0,Z.jsx)(ht,{}),(0,Z.jsx)(ft,{children:`Bundles could not be loaded`}),(0,Z.jsx)(pt,{children:_.error?.message})]}):(0,Z.jsx)(Tn,{children:n?(0,Z.jsx)(`div`,{className:`h-full overflow-y-auto`,children:_.isPending?(0,Z.jsx)(Nn,{}):(0,Z.jsxs)(Z.Fragment,{children:[y.length===0?(0,Z.jsx)(On,{children:fe}):null,v.map(e=>e.kind===`row`?ce(e.row,b):ue(e,ce))]})}):(0,Z.jsx)(wn,{rowGroups:!0,header:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(J,{children:`ID`}),(0,Z.jsx)(J,{children:`Channel`}),(0,Z.jsx)(J,{children:`Platform`}),(0,Z.jsx)(J,{children:`Patches`}),(0,Z.jsx)(J,{children:`Target`}),(0,Z.jsx)(J,{children:`Enabled`}),(0,Z.jsx)(J,{children:`Force update`}),(0,Z.jsx)(J,{children:`Rollout`}),C.map(({feature:e,label:t})=>(0,Z.jsx)(J,{children:t},e)),(0,Z.jsx)(J,{children:`Message`}),(0,Z.jsx)(J,{children:`Created`})]}),children:_.isPending?(0,Z.jsx)(jn,{children:(0,Z.jsx)(Dn,{columns:w})}):(0,Z.jsxs)(Z.Fragment,{children:[y.length===0?(0,Z.jsx)(jn,{children:(0,Z.jsx)(kn,{columns:w,children:fe})}):null,Vn(v).map(e=>e.kind===`fold`?ue(e.fold,le):(0,Z.jsx)(jn,{children:e.rows.map(e=>le(e,b))},`rows-${e.rows[0].id}`))]})})}),!f&&!_.isError&&!_.isPending?(0,Z.jsx)(In,{count:y.length,folded:{...qn(v),label:`unreachable`},label:`Bundle pagination`,noun:[`bundle`,`bundles`],pending:_.isPlaceholderData,newest:re?{search:se,to:`/`}:void 0,next:oe?{search:oe,to:`/`}:void 0,previous:ae?{search:ae,to:`/`}:void 0}):null]}),(0,Z.jsx)(ia,{channels:l,onOpenChange:e=>!e&&E({...p,releaseId:void 0},!1),onShowScope:e=>D({scopeKey:e}),open:!!p.releaseId,releaseId:p.releaseId??``}),(0,Z.jsx)(or,{onOpenChange:i,open:r})]})}export{ga as component};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-BV7VD8Tr.js","assets/sidebar-UnsNYOry.js","assets/alert-dialog-ndHfUqUh.js","assets/select-BAd2hAoW.js","assets/useCompositeListItem-B9ONn9qn.js","assets/check-Dz_5aNwx.js","assets/switch-DNa3Cz9K.js","assets/valueToPercent-Db73Kirz.js","assets/link-D95E0fwF.js","assets/arrow-right-jHG0fJt7.js","assets/arrow-up-right-BPRe5soE.js","assets/TargetDisplay-DeKn2_3n.js","assets/copy-BxI24-g-.js","assets/key-round-B-vaAsR7.js","assets/native-builds-FBNFjP4d.js","assets/constants-CNrAvpew.js","assets/dist-BDfiL2Qz.js","assets/HashValueDisplay-N89T2mVj.js","assets/chevron-right-CuYrscDY.js","assets/circle-off-BZFOMb8J.js","assets/download-ekENI2Sw.js","assets/RolloutPercentageBadge-BmtfOGOm.js","assets/relativeTime-Wk64dka-.js","assets/badge-D4Tiwei-.js","assets/list-Dq40Mmoj.js","assets/loader-circle-C26cZDSM.js","assets/plus-Bp6IqwOH.js","assets/input-group-DNfVeeYZ.js","assets/trash-2-BPH7ydek.js","assets/BundleIdDisplay-Bm85NZma.js","assets/ChannelBadge-B04sTjw5.js","assets/RelativeTime-CAIee8Fr.js","assets/table-DtcLx8yw.js","assets/RowReason-Cuf4SbKm.js","assets/insights-search-Bax3nNBz.js","assets/insights-api-CXXCRZhF.js","assets/preload-helper-52zhjEsw.js","assets/PlatformIcon-CZjIJt0C.js","assets/card-VtWYErXu.js","assets/dialog-Dx9gstou.js","assets/field-CubHQ_EM.js","assets/api-USY_IWMu.js","assets/useMutation-BWX97JX2.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,Di as t,Hr as n,Oi as r,Vr as i,_r as a,et as o,vr as s,wi as c,zr as ee}from"./sidebar-UnsNYOry.js";import{t as l}from"./link-D95E0fwF.js";import{i as u,r as d,t as f}from"./preload-helper-52zhjEsw.js";import{a as p,i as te,o as m}from"./console-features-api-De6tXQnd.js";import{_ as h,m as g,s as _,x as v}from"./insights-api-CXXCRZhF.js";import{t as y}from"./key-round-B-vaAsR7.js";import{i as b}from"./switch-DNa3Cz9K.js";import{a as x,t as S}from"./insights-search-Bax3nNBz.js";import{a as C,i as w,n as T,o as E,t as D}from"./card-VtWYErXu.js";import{t as O}from"./constants-CNrAvpew.js";var k=i(`chart-line`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`m19 9-5 5-4-4-3 3`,key:`2osh9i`}]]),A=t(),j={apiKeys:{navigation:{icon:(0,A.jsx)(y,{}),paths:[`/api-keys`],link:({onClick:e})=>(0,A.jsx)(l,{to:`/api-keys`,onClick:e})}}},M=c({method:`GET`}).middleware([ee]).handler(r(`b4bf4c461903edcdc44eea52468c737b5b600a586f542138ff022dcbbe86c45c`));function N(e){let t=e.map(({releaseId:e,platform:t,channel:n})=>({releaseId:e,platform:t,channel:n})).sort((e,t)=>e.releaseId.localeCompare(t.releaseId));return n({queryKey:[`bundle-activity`,t],queryFn:()=>M({data:t}),enabled:t.length>0,staleTime:3e4})}var P=[{label:`Downloaded`,field:`downloads`,color:`text-primary/85`},{label:`Launched`,field:`launched`,color:`text-success/85`},{label:`Crashed`,field:`failedLaunches`,color:`text-warning/85`}],F=e=>{let t=e.launched+e.failedLaunches;return t===0?`—`:`${(e.failedLaunches/t*100).toFixed(2)}%`},I=e=>Math.max(0,e.downloads-e.launched-e.failedLaunches);function L(){return(0,A.jsx)(x,{label:`About release insight metrics`,children:`Downloaded: got this bundle. Launched: ran it. Crashed: crashed on it and rolled back. Once every installation restarts, Downloaded = Launched + Crashed.`})}function R({report:t,loading:n=!1,input:r,variant:i=`inline`}){if(!t)return n?(0,A.jsx)(e,{"aria-label":`Loading release insights`,className:i===`card`?`h-16 w-full`:`h-4 w-40`}):(0,A.jsx)(`span`,{"aria-label":`Release insights unavailable`,className:`text-sm text-muted-foreground`,children:`—`});let a=r?.builtIn===!0,o=a?0:I(t),c=(0,A.jsx)(`dl`,{className:s(i===`card`?`grid grid-cols-[1fr_1fr_auto] gap-4`:`flex min-w-[220px] flex-wrap items-baseline gap-x-3 gap-y-1`),children:P.map(({label:e,field:n,color:r})=>(0,A.jsxs)(`div`,{className:s(`flex`,i===`card`?`min-w-0 flex-col gap-1`:`items-baseline gap-1.5 whitespace-nowrap`),children:[(0,A.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,A.jsxs)(`dd`,{className:s(`flex flex-wrap items-baseline gap-x-1.5 tabular-nums`,i===`card`?`text-xl font-semibold`:`text-sm font-medium`,t[n]>0&&!(n===`downloads`&&a)?r:`text-muted-foreground`),children:[n===`downloads`&&a?(0,A.jsx)(`span`,{title:`The built-in bundle is never downloaded`,children:`—`}):t[n].toLocaleString(),n===`failedLaunches`?(0,A.jsxs)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:[`(`,F(t),`)`]}):null]})]},n))});return(0,A.jsxs)(`div`,{className:s(`flex`,i===`card`?`flex-col gap-2`:`items-center gap-1`),children:[r?(0,A.jsx)(l,{className:`relative min-w-0 rounded-sm after:absolute after:inset-x-0 after:-inset-y-3 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden`,to:`/insights`,search:{platform:r.platform,channel:r.channel,releaseId:r.releaseId,bundleWindow:S(r.releaseId)},children:c}):c,i===`card`&&o>0?(0,A.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[o.toLocaleString(),` downloaded but not launched yet: waiting for a restart, or passed over for a newer bundle.`]}):null,i===`inline`?(0,A.jsx)(L,{}):null]})}function z({input:t}){let n=_({platform:t.platform,channel:t.channel,releaseId:t.releaseId}),r=n.data;return(0,A.jsxs)(`div`,{className:`flex items-center gap-1`,children:[r?(0,A.jsx)(`dl`,{children:(0,A.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-1.5`,children:[(0,A.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Download failures`}),(0,A.jsxs)(`dd`,{className:s(`flex items-baseline gap-1.5 text-sm font-medium tabular-nums`,r.failedUpdates>0?`text-warning/85`:`text-muted-foreground`),children:[r.failedUpdates.toLocaleString(),(0,A.jsxs)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:[`(`,h(g(r)),`)`]})]})]})}):n.isPending?(0,A.jsx)(e,{"aria-label":`Loading download failures`,className:`h-4 w-40`}):(0,A.jsx)(`span`,{"aria-label":`Download failures unavailable`,className:`text-sm text-muted-foreground`,children:`—`}),(0,A.jsx)(x,{label:`About download failures`,children:`Failed downloads or installs of this bundle, at most one per installation a day. Rate = failures ÷ (failures + downloads).`})]})}function B({input:e}){let t=N([e]);return(0,A.jsxs)(D,{children:[(0,A.jsxs)(C,{className:`flex-row items-center justify-between px-4 pt-4 pb-3`,children:[(0,A.jsx)(E,{className:`text-sm font-medium`,children:`Insights`}),(0,A.jsx)(L,{})]}),(0,A.jsxs)(T,{className:`flex flex-col gap-3 px-4 pb-4`,children:[(0,A.jsx)(R,{variant:`card`,input:e,loading:t.isFetching,report:t.data?.[e.releaseId]}),(0,A.jsx)(o,{}),(0,A.jsx)(z,{input:e})]}),(0,A.jsx)(w,{className:`px-4 pb-4`,children:(0,A.jsxs)(l,{className:a({className:`max-md:h-11`,variant:`outline`,size:`sm`}),to:`/insights`,search:{platform:e.platform,channel:e.channel,releaseId:e.releaseId,bundleWindow:S(e.releaseId),healthChart:`adoption`},children:[(0,A.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),`View adoption`]})})]})}function V({input:e}){return te(`insightsAnalytics`)?null:(0,A.jsxs)(D,{children:[(0,A.jsx)(C,{className:`px-4 pt-4 pb-3`,children:(0,A.jsx)(E,{className:`text-sm font-medium`,children:`Insights`})}),(0,A.jsx)(T,{className:`px-4 pb-4`,children:(0,A.jsx)(z,{input:e})})]})}function ne({releaseId:e,releases:t}){let n=N(t);return(0,A.jsx)(R,{input:t.find(t=>t.releaseId===e),loading:n.isFetching,report:n.data?.[e]})}var H={Cell:ne},U={insights:{navigation:{icon:(0,A.jsx)(v,{}),paths:[`/insights`,`/insights/distribution`,`/installations`],link:({features:e,onClick:t})=>e.insightsAnalytics?(0,A.jsx)(l,{to:`/insights`,onClick:t}):(0,A.jsx)(l,{to:`/installations`,onClick:t})},releaseSection:({release:e})=>(0,A.jsx)(V,{input:e})},insightsAnalytics:{releaseColumn:H,releaseSection:({release:e})=>(0,A.jsx)(B,{input:e})}},W={remoteConfig:{navigation:{icon:(0,A.jsx)(b,{}),paths:[`/remote-config`],link:({onClick:e})=>(0,A.jsx)(l,{to:`/remote-config`,onClick:e})}}},G={...U,...j,...W},K=Object.keys(m),q=()=>{let e=p().data?.features;return e===void 0?[]:K.flatMap(t=>{let n=G[t];return n!==void 0&&e[t]?[{...n,feature:t,label:m[t].label,features:e}]:[]})},J=()=>q().flatMap(({feature:e,label:t,releaseColumn:n})=>n===void 0?[]:[{...n,feature:e,label:t}]);function Y({release:e}){return q().map(({feature:t,releaseSection:n})=>n===void 0?null:(0,A.jsx)(n,{release:e},t))}var X=e=>typeof e==`string`&&e.trim().length>0?e.trim():void 0;function Z(e){let t=X(e.beforeReleaseId),n=t?void 0:X(e.afterReleaseId),r=e.enabled===!0||e.enabled===`true`?!0:e.enabled===!1||e.enabled===`false`?!1:void 0,i=X(e.bundleId),a=i?void 0:X(e.scopeKey),o=i||a?void 0:X(e.channelId),s=o===void 0?void 0:e.platform===`android`?`android`:`ios`;return{afterReleaseId:n,beforeReleaseId:t,bundleId:i,channelId:o,channels:!i&&!a&&!o&&e.channels===`all`?`all`:void 0,enabled:a||o?r:void 0,platform:s,releaseId:X(e.releaseId),scopeKey:a}}function Q(e){let t=e.enabled===void 0?{}:{enabled:e.enabled};return e.bundleId?{kind:`bundle`,bundleId:e.bundleId}:e.scopeKey?{kind:`scope`,scopeKey:e.scopeKey,...t}:e.channelId&&e.platform?{kind:`channelPlatform`,channelId:e.channelId,platform:e.platform,...t}:{kind:`all`}}function re(e){return Q(e).kind!==`all`}function $(e,t){if(e.bundleId||e.scopeKey||e.channelId||e.channels===`all`)return e;if(e.releaseId)return{...e,channels:`all`};if(t===void 0)return;let n=t.find(({name:e})=>e===O);return n?Z({...e,channelId:n.id}):e}function ie(e,t){let n={...e,...t};return t.bundleId?Z({bundleId:n.bundleId}):t.scopeKey?Z({scopeKey:n.scopeKey,enabled:n.enabled}):`channelId`in t||`platform`in t?Z({channelId:n.channelId,channels:n.channels,enabled:n.enabled,platform:n.platform}):Z({bundleId:n.bundleId,channelId:n.channelId,channels:n.channels,enabled:n.enabled,platform:n.platform,scopeKey:n.scopeKey})}function ae(e,t){let n=$(e,t),r=$({},t);return n===void 0||r===void 0||JSON.stringify(Q(n))===JSON.stringify(Q(r))}var oe=u(`/`)({component:d(()=>f(()=>import(`./routes-BV7VD8Tr.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42])),`component`),validateSearch:Z});export{ae as a,q as c,$ as i,J as l,re as n,ie as o,Q as r,Y as s,oe as t};
|
|
@@ -1,232 +1,232 @@
|
|
|
1
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/__23tanstack-start-server-fn-resolver-
|
|
1
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/__23tanstack-start-server-fn-resolver-DEsK7hJ-.js
|
|
2
2
|
var manifest = {
|
|
3
3
|
"0ccfae64b399b03d820328fa98a38e2caa0b622d3da5a7ca633c5a0e8101e3f6": {
|
|
4
4
|
functionName: "getRemoteConfigRpc_createServerFn_handler",
|
|
5
|
-
importer: () => import("./_ssr/remote-config-rpc-
|
|
5
|
+
importer: () => import("./_ssr/remote-config-rpc-COjwhaa3.mjs")
|
|
6
6
|
},
|
|
7
7
|
"0d1dacdd1e5ee6b100e5c142fb9af03602b6f2c6fe6af79312b36c223d7f8f97": {
|
|
8
8
|
functionName: "getUpdateFailuresRpc_createServerFn_handler",
|
|
9
|
-
importer: () => import("./_ssr/insights-failures-rpc-
|
|
9
|
+
importer: () => import("./_ssr/insights-failures-rpc-k6uyvIeh.mjs")
|
|
10
10
|
},
|
|
11
11
|
"1371bff16085636e2c44b60a573ae434b556c63045c40a0a93a93ab69ec47999": {
|
|
12
12
|
functionName: "previewRemoteConfigRpc_createServerFn_handler",
|
|
13
|
-
importer: () => import("./_ssr/remote-config-rpc-
|
|
13
|
+
importer: () => import("./_ssr/remote-config-rpc-COjwhaa3.mjs")
|
|
14
14
|
},
|
|
15
15
|
"16e3be74610cddd54e5e894419dca16817a7b63c09a4eed15042cdac9c39e1e0": {
|
|
16
16
|
functionName: "getAdoptionReleaseRpc_createServerFn_handler",
|
|
17
|
-
importer: () => import("./_ssr/release-adoption-rpc-
|
|
17
|
+
importer: () => import("./_ssr/release-adoption-rpc-BsUYFCSo.mjs")
|
|
18
18
|
},
|
|
19
19
|
"17a54fe7c5ad6ca53457914b1d02b3d6887811aa6b5fa6598a1ee107796ce8f0": {
|
|
20
20
|
functionName: "getNativeBuilds_createServerFn_handler",
|
|
21
|
-
importer: () => import("./_ssr/api-rpc-
|
|
21
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
22
22
|
},
|
|
23
23
|
"1bd85c2a50e24785cb6abb023a247a9f048f37ddfa85cbb1c57e579563bad013": {
|
|
24
24
|
functionName: "getBundle_createServerFn_handler",
|
|
25
|
-
importer: () => import("./_ssr/api-rpc-
|
|
25
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
26
26
|
},
|
|
27
27
|
"1fc98b1499df6f62eeb3e84712ff4bd12e428d2ddd08880d541463d24ccd0233": {
|
|
28
28
|
functionName: "getNativeBuildFold_createServerFn_handler",
|
|
29
|
-
importer: () => import("./_ssr/api-rpc-
|
|
29
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
30
30
|
},
|
|
31
31
|
"206547cb1526f961070a989818ca7b9e34f6b2b0e4ab851698c3807fe9fb5e0c": {
|
|
32
32
|
functionName: "getReleases_createServerFn_handler",
|
|
33
|
-
importer: () => import("./_ssr/api-rpc-
|
|
33
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
34
34
|
},
|
|
35
35
|
"28ea8c9bdbeb67f80c776990bb5bcb5c990f5129520631f241faf074d90fea02": {
|
|
36
36
|
functionName: "getSchemaMigrationRpc_createServerFn_handler",
|
|
37
|
-
importer: () => import("./_ssr/schema-migration-rpc-
|
|
37
|
+
importer: () => import("./_ssr/schema-migration-rpc-BTlEpk00.mjs")
|
|
38
38
|
},
|
|
39
39
|
"2b9b8d1f49f79a511589617d8d4bfc6094a3acf5264f33651b9569ba66d3f321": {
|
|
40
40
|
functionName: "createChannel_createServerFn_handler",
|
|
41
|
-
importer: () => import("./_ssr/api-rpc-
|
|
41
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
42
42
|
},
|
|
43
43
|
"2c7f3cdb9bd3cab2c026a48abdc84c362db0362924a08679052a325640aec56b": {
|
|
44
44
|
functionName: "listApiKeysRpc_createServerFn_handler",
|
|
45
|
-
importer: () => import("./_ssr/api-keys-rpc-
|
|
45
|
+
importer: () => import("./_ssr/api-keys-rpc-CtMsJx1w.mjs")
|
|
46
46
|
},
|
|
47
47
|
"2e3fab89483b2e4fea0c2f996071b2dbb15b8bc072e7dae78c75a9a9d854d5b9": {
|
|
48
48
|
functionName: "getNativeBuildPatches_createServerFn_handler",
|
|
49
|
-
importer: () => import("./_ssr/api-rpc-
|
|
49
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
50
50
|
},
|
|
51
51
|
"3377db68b9d1d971971595469029c0466da0777a177b294d655cd0c039737f1a": {
|
|
52
52
|
functionName: "listRemoteConfigVersionsRpc_createServerFn_handler",
|
|
53
|
-
importer: () => import("./_ssr/remote-config-rpc-
|
|
53
|
+
importer: () => import("./_ssr/remote-config-rpc-COjwhaa3.mjs")
|
|
54
54
|
},
|
|
55
55
|
"3a62744a539db57f5a29f39cec7fb03fd2817703b40d98e6da69e2f5e7ae6f3d": {
|
|
56
56
|
functionName: "getIosDevices_createServerFn_handler",
|
|
57
|
-
importer: () => import("./_ssr/ios-devices-rpc-
|
|
57
|
+
importer: () => import("./_ssr/ios-devices-rpc-mzVC4RTM.mjs")
|
|
58
58
|
},
|
|
59
59
|
"3c04bc6624be6dfdd80cf96819f9c6d0455e59a7bb4c0374b6afb0162ffd15b0": {
|
|
60
60
|
functionName: "listInsightsInstallationEventsRpc_createServerFn_handler",
|
|
61
|
-
importer: () => import("./_ssr/insights-rpc-
|
|
61
|
+
importer: () => import("./_ssr/insights-rpc-DDLtqUqS.mjs")
|
|
62
62
|
},
|
|
63
63
|
"4182bf9ccbb675700638f30bc6122517ccd90b16a339a6823a0f5f6c808d70a6": {
|
|
64
64
|
functionName: "publishRemoteConfigRpc_createServerFn_handler",
|
|
65
|
-
importer: () => import("./_ssr/remote-config-rpc-
|
|
65
|
+
importer: () => import("./_ssr/remote-config-rpc-COjwhaa3.mjs")
|
|
66
66
|
},
|
|
67
67
|
"4370f1bf70b91f1168d85379d3008449a1bedb915e9878ca4ef89d5f3a80fa7f": {
|
|
68
68
|
functionName: "getBundleChildren_createServerFn_handler",
|
|
69
|
-
importer: () => import("./_ssr/api-rpc-
|
|
69
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
70
70
|
},
|
|
71
71
|
"4b173c2b2f5ea074a1f10862282308f11f5a043c044d64b6f63e6a29d571ec64": {
|
|
72
72
|
functionName: "createIosDeviceProfileLink_createServerFn_handler",
|
|
73
|
-
importer: () => import("./_ssr/ios-devices-rpc-
|
|
73
|
+
importer: () => import("./_ssr/ios-devices-rpc-mzVC4RTM.mjs")
|
|
74
74
|
},
|
|
75
75
|
"4c92dfeae76a6fc898d6f38941eeedaec1f3d118f51a6f31ebf0bb1cea3fcea4": {
|
|
76
76
|
functionName: "renameIosDevice_createServerFn_handler",
|
|
77
|
-
importer: () => import("./_ssr/ios-devices-rpc-
|
|
77
|
+
importer: () => import("./_ssr/ios-devices-rpc-mzVC4RTM.mjs")
|
|
78
78
|
},
|
|
79
79
|
"4ca367070b00f58179a572f0bb8196a4ccdd3881e9b1dbfe33deee0cb6e1f549": {
|
|
80
80
|
functionName: "getBundleChildCounts_createServerFn_handler",
|
|
81
|
-
importer: () => import("./_ssr/api-rpc-
|
|
81
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
82
82
|
},
|
|
83
83
|
"51a34c05479a893c7d320bd4cd1604427289d667698c48b9f30a01aabf8a5e68": {
|
|
84
84
|
functionName: "getConfig_createServerFn_handler",
|
|
85
|
-
importer: () => import("./_ssr/api-rpc-
|
|
85
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
86
86
|
},
|
|
87
87
|
"52756dde414919a906bfe83d1ab6d29910c63bcafdb47653d6f1df562d958920": {
|
|
88
88
|
functionName: "deleteChannel_createServerFn_handler",
|
|
89
|
-
importer: () => import("./_ssr/api-rpc-
|
|
89
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
90
90
|
},
|
|
91
91
|
"6726f1ed9eda1f0cb4c1f1ad1023faee435ddcfd0b7c55ef08ca7f2f7f577370": {
|
|
92
92
|
functionName: "getInsightsInstallationRpc_createServerFn_handler",
|
|
93
|
-
importer: () => import("./_ssr/insights-rpc-
|
|
93
|
+
importer: () => import("./_ssr/insights-rpc-DDLtqUqS.mjs")
|
|
94
94
|
},
|
|
95
95
|
"67cea9f69773d83e69e68e20b81116a2bee9ee4ab3e378698ff74149f1d59ad0": {
|
|
96
96
|
functionName: "getNativeBuildInstallEligibility_createServerFn_handler",
|
|
97
|
-
importer: () => import("./_ssr/api-rpc-
|
|
97
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
98
98
|
},
|
|
99
99
|
"68a2d94ee016be64936401f5eba60ab08a47ff373e1cf9de48e4413336e6034b": {
|
|
100
100
|
functionName: "createApiKeyRpc_createServerFn_handler",
|
|
101
|
-
importer: () => import("./_ssr/api-keys-rpc-
|
|
101
|
+
importer: () => import("./_ssr/api-keys-rpc-CtMsJx1w.mjs")
|
|
102
102
|
},
|
|
103
103
|
"7138a71df2ede8dd2c3db732d8d0ae10c56b85a8177dcdacf4e747b8087177c6": {
|
|
104
104
|
functionName: "getIosDevice_createServerFn_handler",
|
|
105
|
-
importer: () => import("./_ssr/ios-devices-rpc-
|
|
105
|
+
importer: () => import("./_ssr/ios-devices-rpc-mzVC4RTM.mjs")
|
|
106
106
|
},
|
|
107
107
|
"735c501f6d5ea81a445ff2b6b2ea6a1b589e3c6f63a465a881822c80ae71e7d1": {
|
|
108
108
|
functionName: "findInsightsInstallationsRpc_createServerFn_handler",
|
|
109
|
-
importer: () => import("./_ssr/insights-rpc-
|
|
109
|
+
importer: () => import("./_ssr/insights-rpc-DDLtqUqS.mjs")
|
|
110
110
|
},
|
|
111
111
|
"7908c24ccc2674ce07a553a645b8f4790889975a80f424a05d71a9fb8ab49787": {
|
|
112
112
|
functionName: "approveIosDevice_createServerFn_handler",
|
|
113
|
-
importer: () => import("./_ssr/ios-devices-rpc-
|
|
113
|
+
importer: () => import("./_ssr/ios-devices-rpc-mzVC4RTM.mjs")
|
|
114
114
|
},
|
|
115
115
|
"79ada05964de8f2123bfcd62b10097d59bf8fd689ef5c7161031e5871d8396c5": {
|
|
116
116
|
functionName: "getChannels_createServerFn_handler",
|
|
117
|
-
importer: () => import("./_ssr/api-rpc-
|
|
117
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
118
118
|
},
|
|
119
119
|
"7ea0186f19f9f2bc2ca4b26e3c59636891cf046957f84287b6783f8d88bd8cb7": {
|
|
120
120
|
functionName: "updateRelease_createServerFn_handler",
|
|
121
|
-
importer: () => import("./_ssr/api-rpc-
|
|
121
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
122
122
|
},
|
|
123
123
|
"82ec3500e57f9e81dac6d3f3a7bd9e34915da3121429beec87b7ad153dc6eafe": {
|
|
124
124
|
functionName: "getConsoleFeaturesRpc_createServerFn_handler",
|
|
125
|
-
importer: () => import("./_ssr/console-features-rpc-
|
|
125
|
+
importer: () => import("./_ssr/console-features-rpc-Dl1bAdxy.mjs")
|
|
126
126
|
},
|
|
127
127
|
"868ce85f0b63ad138a1f82a573d1d6b12f80c7ca44aefec3dadf01b5fa7db86c": {
|
|
128
128
|
functionName: "getReleaseNativeBuild_createServerFn_handler",
|
|
129
|
-
importer: () => import("./_ssr/api-rpc-
|
|
129
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
130
130
|
},
|
|
131
131
|
"8a98cd9c178e4a54185d62c25a95f09d3d59850c43d3f5baa1563e1614ad942e": {
|
|
132
132
|
functionName: "getAppUsageReportRpc_createServerFn_handler",
|
|
133
|
-
importer: () => import("./_ssr/insights-usage-rpc-
|
|
133
|
+
importer: () => import("./_ssr/insights-usage-rpc-_3iuUmaJ.mjs")
|
|
134
134
|
},
|
|
135
135
|
"8e37ec67413ceba554adb2d4b15e53682595a089d4b431ba7965d4347fb500fc": {
|
|
136
136
|
functionName: "removeIosDevice_createServerFn_handler",
|
|
137
|
-
importer: () => import("./_ssr/ios-devices-rpc-
|
|
137
|
+
importer: () => import("./_ssr/ios-devices-rpc-mzVC4RTM.mjs")
|
|
138
138
|
},
|
|
139
139
|
"936ef8582ff49d97077d1d80e8403d0b4106831c955591c5c471a88f96007fe9": {
|
|
140
140
|
functionName: "getNativeBuildDownloadUrl_createServerFn_handler",
|
|
141
|
-
importer: () => import("./_ssr/api-rpc-
|
|
141
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
142
142
|
},
|
|
143
143
|
"956539a300d79a7efa191c1cc2d529d62fc4bfd940442548fdbc1404e0d53078": {
|
|
144
144
|
functionName: "promoteRelease_createServerFn_handler",
|
|
145
|
-
importer: () => import("./_ssr/api-rpc-
|
|
145
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
146
146
|
},
|
|
147
147
|
"98c10bdc514eb4d3fe65af546be44452b492a81092cfe45625778a4c9f731727": {
|
|
148
148
|
functionName: "rollbackRemoteConfigRpc_createServerFn_handler",
|
|
149
|
-
importer: () => import("./_ssr/remote-config-rpc-
|
|
149
|
+
importer: () => import("./_ssr/remote-config-rpc-COjwhaa3.mjs")
|
|
150
150
|
},
|
|
151
151
|
"a11cb4014e6b23528f76382c43684798b0e84a6936aaba02c918e8f4e216e282": {
|
|
152
152
|
functionName: "getNativeBuildIpaDevices_createServerFn_handler",
|
|
153
|
-
importer: () => import("./_ssr/ios-devices-rpc-
|
|
153
|
+
importer: () => import("./_ssr/ios-devices-rpc-mzVC4RTM.mjs")
|
|
154
154
|
},
|
|
155
155
|
"a1cb80b19ca72a64fb631ca28ebb9b6941db245983de082d5dd3203ec2eef795": {
|
|
156
156
|
functionName: "revokeApiKeyRpc_createServerFn_handler",
|
|
157
|
-
importer: () => import("./_ssr/api-keys-rpc-
|
|
157
|
+
importer: () => import("./_ssr/api-keys-rpc-CtMsJx1w.mjs")
|
|
158
158
|
},
|
|
159
159
|
"a6c8cfa907e2f75bf69aa90044bd52a3ee684d1a0462d23781161a1a3531aa33": {
|
|
160
160
|
functionName: "markNativeBuild_createServerFn_handler",
|
|
161
|
-
importer: () => import("./_ssr/api-rpc-
|
|
161
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
162
162
|
},
|
|
163
163
|
"a6f23116eeaf76166d405e28a95213123025613c6603030894e519015bf48032": {
|
|
164
164
|
functionName: "getRelease_createServerFn_handler",
|
|
165
|
-
importer: () => import("./_ssr/api-rpc-
|
|
165
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
166
166
|
},
|
|
167
167
|
"af71e3c55a659ce46093e33b9d70e729359610eec7d576502e8f0e26c785b317": {
|
|
168
168
|
functionName: "getRemoteConfigVersionRpc_createServerFn_handler",
|
|
169
|
-
importer: () => import("./_ssr/remote-config-rpc-
|
|
169
|
+
importer: () => import("./_ssr/remote-config-rpc-COjwhaa3.mjs")
|
|
170
170
|
},
|
|
171
171
|
"b30a0e32e3e84050037368e4405bfc34507fda8891a64faefe1a7acd019e9f3c": {
|
|
172
172
|
functionName: "getReleaseFold_createServerFn_handler",
|
|
173
|
-
importer: () => import("./_ssr/api-rpc-
|
|
173
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
174
174
|
},
|
|
175
175
|
"b4388826a9b515fb4d2113270aa8ded1c50ba13d7f07ac2b268c41396e87d0a3": {
|
|
176
176
|
functionName: "listFailureReportsRpc_createServerFn_handler",
|
|
177
|
-
importer: () => import("./_ssr/insights-failures-rpc-
|
|
177
|
+
importer: () => import("./_ssr/insights-failures-rpc-k6uyvIeh.mjs")
|
|
178
178
|
},
|
|
179
179
|
"b46c95dba95a6a3e8fa5c9d100e3622fa5ae7af4f38e10fb1ed2fa48289a3a8f": {
|
|
180
180
|
functionName: "preflightRelease_createServerFn_handler",
|
|
181
|
-
importer: () => import("./_ssr/api-rpc-
|
|
181
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
182
182
|
},
|
|
183
183
|
"b4bf4c461903edcdc44eea52468c737b5b600a586f542138ff022dcbbe86c45c": {
|
|
184
184
|
functionName: "getBundleActivityRpc_createServerFn_handler",
|
|
185
|
-
importer: () => import("./_ssr/insights-recovery-rpc-
|
|
185
|
+
importer: () => import("./_ssr/insights-recovery-rpc-DPW8WjEX.mjs")
|
|
186
186
|
},
|
|
187
187
|
"bfcca2365dfef4d071bdcddf97538a2637482c77bb747969dbdcd6769ca98416": {
|
|
188
188
|
functionName: "getBundleEventsRpc_createServerFn_handler",
|
|
189
|
-
importer: () => import("./_ssr/release-adoption-rpc-
|
|
189
|
+
importer: () => import("./_ssr/release-adoption-rpc-BsUYFCSo.mjs")
|
|
190
190
|
},
|
|
191
191
|
"c101ad0315790cf226f182906274176b64a93b9bf5b410cacec5067208c70a04": {
|
|
192
192
|
functionName: "getNativeBuildDetail_createServerFn_handler",
|
|
193
|
-
importer: () => import("./_ssr/api-rpc-
|
|
193
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
194
194
|
},
|
|
195
195
|
"c504696e68ba764b48c48aa8a40275938640941e473cf9cfdd7b2322d99f9d13": {
|
|
196
196
|
functionName: "getConsoleAccessRpc_createServerFn_handler",
|
|
197
|
-
importer: () => import("./_ssr/auth-rpc-
|
|
197
|
+
importer: () => import("./_ssr/auth-rpc-DYXg2d-s.mjs")
|
|
198
198
|
},
|
|
199
199
|
"c6f18db42ac40385dbff247095197ee9f3fd3a97dc914efd368ce0ded1f098c6": {
|
|
200
200
|
functionName: "getInsightsRetentionRpc_createServerFn_handler",
|
|
201
|
-
importer: () => import("./_ssr/insights-rpc-
|
|
201
|
+
importer: () => import("./_ssr/insights-rpc-DDLtqUqS.mjs")
|
|
202
202
|
},
|
|
203
203
|
"c6ff40bd8faad0b2d7aba3e94179c18e02a918a76bff25849d771ff31f688208": {
|
|
204
204
|
functionName: "createNativeBuildDownloadLink_createServerFn_handler",
|
|
205
|
-
importer: () => import("./_ssr/api-rpc-
|
|
205
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
206
206
|
},
|
|
207
207
|
"d11a48f7251928b7819e2376aed4902fa66277bf6d30312d87ca53468332f256": {
|
|
208
208
|
functionName: "listAdoptionReleasesRpc_createServerFn_handler",
|
|
209
|
-
importer: () => import("./_ssr/release-adoption-rpc-
|
|
209
|
+
importer: () => import("./_ssr/release-adoption-rpc-BsUYFCSo.mjs")
|
|
210
210
|
},
|
|
211
211
|
"d4c50f40701055145f24873dc90f3c55a5494457a6a03a743339b2ac4545eb19": {
|
|
212
212
|
functionName: "listInsightsEventsRpc_createServerFn_handler",
|
|
213
|
-
importer: () => import("./_ssr/insights-rpc-
|
|
213
|
+
importer: () => import("./_ssr/insights-rpc-DDLtqUqS.mjs")
|
|
214
214
|
},
|
|
215
215
|
"d5b58722ce514e3b63a377f736b4823c2011782495442ae4870ed547e392c70b": {
|
|
216
216
|
functionName: "deleteRelease_createServerFn_handler",
|
|
217
|
-
importer: () => import("./_ssr/api-rpc-
|
|
217
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
218
218
|
},
|
|
219
219
|
"e8c24b7247936f045a145ffd5c177fd0e3df3b52769d67dfbd8d1de491d66396": {
|
|
220
220
|
functionName: "getReleaseCatalogDiagnostics_createServerFn_handler",
|
|
221
|
-
importer: () => import("./_ssr/api-rpc-
|
|
221
|
+
importer: () => import("./_ssr/api-rpc-sxif8D9h.mjs")
|
|
222
222
|
},
|
|
223
223
|
"fa8c48f0489d97c62b9b68fd0caf0a61b15bad25a42b3866ec36264b4b30bb74": {
|
|
224
224
|
functionName: "getConsoleAuthProvidersRpc_createServerFn_handler",
|
|
225
|
-
importer: () => import("./_ssr/auth-rpc-
|
|
225
|
+
importer: () => import("./_ssr/auth-rpc-DYXg2d-s.mjs")
|
|
226
226
|
},
|
|
227
227
|
"ff00311d412c8cdfa8ad5b0ba1eb6aa7471d0cc12170e6cc645deb91603d42dd": {
|
|
228
228
|
functionName: "getReportingInstallationsRpc_createServerFn_handler",
|
|
229
|
-
importer: () => import("./_ssr/insights-rpc-
|
|
229
|
+
importer: () => import("./_ssr/insights-rpc-DDLtqUqS.mjs")
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
async function getServerFnById(id, access) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as __toESM } from "../../_runtime.mjs";
|
|
2
2
|
import { Et as require_react, Tt as require_jsx_runtime } from "../@base-ui/react+[...].mjs";
|
|
3
|
-
import { _ as isRedirect } from "./react-router+[...].mjs";
|
|
4
3
|
import { o as QueryClientProvider } from "../tanstack__react-query.mjs";
|
|
5
4
|
import { c as hydrate, s as dehydrateQuery } from "../tanstack__query-core.mjs";
|
|
5
|
+
import { _ as isRedirect } from "./react-router+[...].mjs";
|
|
6
6
|
//#region ../../node_modules/.pnpm/@tanstack+router-ssr-query-core@1.169.3_@tanstack+query-core@5.104.0_@tanstack+router-core@1.171.37/node_modules/@tanstack/router-ssr-query-core/dist/esm/index.js
|
|
7
7
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
8
8
|
var shouldDehydrateAllQueries = () => true;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as server_exports } from "../_ssr/server-
|
|
1
|
+
import { a as server_exports } from "../_ssr/server-Dsb2hUyp.mjs";
|
|
2
2
|
export { server_exports as t };
|
|
@@ -271,6 +271,18 @@ var CircleOff = createLucideIcon("circle-off", [
|
|
|
271
271
|
key: "1ablyi"
|
|
272
272
|
}]
|
|
273
273
|
]);
|
|
274
|
+
var CircleSlash = createLucideIcon("circle-slash", [["circle", {
|
|
275
|
+
cx: "12",
|
|
276
|
+
cy: "12",
|
|
277
|
+
r: "10",
|
|
278
|
+
key: "1mglay"
|
|
279
|
+
}], ["line", {
|
|
280
|
+
x1: "9",
|
|
281
|
+
x2: "15",
|
|
282
|
+
y1: "15",
|
|
283
|
+
y2: "9",
|
|
284
|
+
key: "1dfufj"
|
|
285
|
+
}]]);
|
|
274
286
|
var Clipboard = createLucideIcon("clipboard", [["rect", {
|
|
275
287
|
width: "8",
|
|
276
288
|
height: "4",
|
|
@@ -879,4 +891,4 @@ var X = createLucideIcon("x", [["path", {
|
|
|
879
891
|
key: "d8bk6v"
|
|
880
892
|
}]]);
|
|
881
893
|
//#endregion
|
|
882
|
-
export {
|
|
894
|
+
export { ChartLine as $, Info as A, Download as B, OctagonX as C, LoaderCircle as D, LogOut as E, FingerprintPattern as F, CircleCheck as G, Clipboard as H, FileUp as I, ChevronRight as J, CircleAlert as K, Eye as L, HardDrive as M, GitBranch as N, List as O, Funnel as P, ChartNoAxesCombined as Q, ExternalLink as R, PackageOpen as S, Minus as T, CircleSlash as U, Copy as V, CircleOff as W, ChevronDown as X, ChevronLeft as Y, Check as Z, RefreshCw as _, Trash2 as a, ArrowLeft as at, PanelLeft as b, Sun as c, SlidersHorizontal as d, Braces as et, ShieldOff as f, RotateCcw as g, RotateCw as h, TriangleAlert as i, ArrowRightLeft as it, History as j, KeyRound as k, Sparkles as l, Search as m, Upload as n, ArrowUpRight as nt, Tags as o, ArrowDown as ot, Send as p, ChevronUp as q, Undo2 as r, ArrowRight as rt, Tag as s, Activity as st, X as t, ArrowUp as tt, Smartphone as u, Plus as v, Moon as w, Package as x, Pencil as y, Ellipsis as z };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { n as assertCanonicalChannelName } from "./uuid-kZvLA0Ly-DNL0qBSj.mjs";
|
|
2
|
-
|
|
2
|
+
import { t as DEFAULT_CHANNEL } from "./constants-B8b1IliD.mjs";
|
|
3
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/-native-builds-search-woFrbAdI.js
|
|
3
4
|
var text = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
|
|
4
5
|
/** A channel name a build can embed, or undefined. */
|
|
5
6
|
var channelName = (value) => {
|
|
@@ -13,18 +14,29 @@ var channelName = (value) => {
|
|
|
13
14
|
}
|
|
14
15
|
};
|
|
15
16
|
var defined = (values) => Object.fromEntries(Object.entries(values).filter(([, value]) => value !== void 0));
|
|
16
|
-
/**
|
|
17
|
-
* The native build list's URL: a channel the builds embed, and one keyset
|
|
18
|
-
* page. A page has one direction, so `before` wins over `after`.
|
|
19
|
-
*/
|
|
20
17
|
var validateNativeBuildsSearch = (search) => {
|
|
21
18
|
const before = text(search.before);
|
|
19
|
+
const channel = channelName(search.channel);
|
|
22
20
|
return defined({
|
|
23
|
-
channel
|
|
21
|
+
channel,
|
|
22
|
+
channels: channel === void 0 && search.channels === "all" ? "all" : void 0,
|
|
24
23
|
before,
|
|
25
24
|
after: before === void 0 ? text(search.after) : void 0
|
|
26
25
|
});
|
|
27
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* The page the list reads. A URL that names no channel opens on the default
|
|
29
|
+
* channel, or on every channel when the project has no such channel;
|
|
30
|
+
* undefined until the channel names, which the page reads anyway, arrive.
|
|
31
|
+
*/
|
|
32
|
+
var resolveNativeBuildsSearch = ({ channels, ...page }, channelNames) => {
|
|
33
|
+
if (page.channel !== void 0 || channels === "all") return page;
|
|
34
|
+
if (channelNames === void 0) return void 0;
|
|
35
|
+
return channelNames.includes("production") ? {
|
|
36
|
+
channel: DEFAULT_CHANNEL,
|
|
37
|
+
...page
|
|
38
|
+
} : page;
|
|
39
|
+
};
|
|
28
40
|
/** A native build page's URL: one page of the patches from it. */
|
|
29
41
|
var validateNativeBuildDetailSearch = (search) => {
|
|
30
42
|
const patchesBefore = text(search.patchesBefore);
|
|
@@ -40,4 +52,4 @@ var IOS_DEVICE_STATUSES = [
|
|
|
40
52
|
];
|
|
41
53
|
var validateIosDevicesSearch = (search) => typeof search.status === "string" && IOS_DEVICE_STATUSES.includes(search.status) ? { status: search.status } : {};
|
|
42
54
|
//#endregion
|
|
43
|
-
export {
|
|
55
|
+
export { validateNativeBuildsSearch as i, validateIosDevicesSearch as n, validateNativeBuildDetailSearch as r, resolveNativeBuildsSearch as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
2
|
-
import { k as cn } from "./sidebar-
|
|
3
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/BundleIdDisplay-
|
|
2
|
+
import { k as cn } from "./sidebar-DU3F2THA.mjs";
|
|
3
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/BundleIdDisplay-BLXpHocZ.js
|
|
4
4
|
var import_jsx_runtime = require_jsx_runtime();
|
|
5
5
|
function BundleIdDisplay({ bundleId, className }) {
|
|
6
6
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|