@hot-updater/console 1.2.0-rc.38 → 1.2.0-rc.39
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-BJPSRi4t.js → -native-builds-search-CRhUT348.js} +1 -1
- package/.output/public/assets/{ChannelBadge-B04sTjw5.js → ChannelBadge-B7DxBTj3.js} +1 -1
- package/.output/public/assets/{CompositeItem-CcgQyrSU.js → CompositeItem-AJPwCjWh.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-P2up1IkX.js → ConsoleFeatureUnavailable-PXmQqkJQ.js} +1 -1
- package/.output/public/assets/{EventDetails-BYZUOYsT.js → EventDetails-C7rnoh47.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-N89T2mVj.js → HashValueDisplay-DDz2Ecy7.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-DhOT-Tmn.js → InsightsPageHeader-C7BMHQtN.js} +1 -1
- package/.output/public/assets/{IosInstall-ChFnQISV.js → IosInstall-CJ0427uA.js} +1 -1
- package/.output/public/assets/{NativeBuildsNav-CivF1UpI.js → NativeBuildsNav-CZSaxAYo.js} +1 -1
- package/.output/public/assets/{RelativeTime-CAwDWRiM.js → RelativeTime-DxYXSuC4.js} +1 -1
- package/.output/public/assets/RolloutPercentageBadge-Di_Ca_ss.js +1 -0
- package/.output/public/assets/{RowReason-CRPq0CHS.js → RowReason-BvjPxMrd.js} +1 -1
- package/.output/public/assets/SandboxBadge-B_edulK_.js +1 -0
- package/.output/public/assets/{TargetDisplay-C6ofsnLc.js → TargetDisplay-CyBWoX-f.js} +1 -1
- package/.output/public/assets/api-keys-BhEu-4kH.js +1 -0
- package/.output/public/assets/{api-keys-Bjv4olzj.js → api-keys-D3TC5aQy.js} +1 -1
- package/.output/public/assets/{index-DzRyUcWR.js → index-MllyLAwb.js} +3 -3
- package/.output/public/assets/insights-Cl7F_W3G.js +1 -0
- package/.output/public/assets/{insights-B1yw5HMS.js → insights-DvMY7nq6.js} +1 -1
- package/.output/public/assets/insights-Z2S8xvnR.js +2 -0
- package/.output/public/assets/{insights-search-DmxDGWAA.js → insights-search-BCR_lahU.js} +1 -1
- package/.output/public/assets/insights_.distribution-BYakpdgY.js +2 -0
- package/.output/public/assets/insights_.distribution-D9yFYdru.js +1 -0
- package/.output/public/assets/{insights_.distribution-vyjSwP0f.js → insights_.distribution-QzaOKttT.js} +1 -1
- package/.output/public/assets/{installations-BfbwP-Ub.js → installations-BryK0NqR.js} +2 -2
- package/.output/public/assets/{installations-BKAdFmTM.js → installations-CzsM7ZGi.js} +1 -1
- package/.output/public/assets/installations-D758kWNf.js +1 -0
- package/.output/public/assets/{native-builds-DYvuFp4w.js → native-builds-3qvP-53q.js} +1 -1
- package/.output/public/assets/native-builds-BYQ8bQGN.js +1 -0
- package/.output/public/assets/native-builds-CnaQgVq6.js +2 -0
- package/.output/public/assets/native-builds_._buildId-D-eAGzXZ.js +2 -0
- package/.output/public/assets/native-builds_._buildId-D2-0EtFr.js +1 -0
- package/.output/public/assets/native-builds_.devices-D8CsVAuR.js +2 -0
- package/.output/public/assets/{native-builds_.devices-CjmuLWk7.js → native-builds_.devices-OQV8P5Hf.js} +1 -1
- package/.output/public/assets/remote-config-Bt6V_XHg.js +1 -0
- package/.output/public/assets/{remote-config-BopBV_qe.js → remote-config-CSJSQdOv.js} +1 -1
- package/.output/public/assets/{remote-config-FiUamvQE.js → remote-config-DNSdmvmp.js} +3 -3
- package/.output/public/assets/routes-DgbtNsWJ.js +1 -0
- package/.output/public/assets/{routes-DVuMMuc5.js → routes-DkzFq9jv.js} +2 -2
- package/.output/server/{__23tanstack-start-server-fn-resolver-BtWTR3K6.mjs → __23tanstack-start-server-fn-resolver-D-ox_XZH.mjs} +58 -58
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{BundleIdDisplay-CoG9Vh6a.mjs → BundleIdDisplay-Dobgd7p0.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-OzIjNKqL.mjs → ChannelBadge-Dp9lOdkW.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-jSQbtBgK.mjs → ConsoleFeatureUnavailable-sMoqvehk.mjs} +5 -5
- package/.output/server/_ssr/{EventDetails-CJrDHxsT.mjs → EventDetails-B2lRHRhs.mjs} +6 -6
- package/.output/server/_ssr/{HashValueDisplay-DcC8Slj7.mjs → HashValueDisplay-DgOVBPz-.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-BNH5TKN9.mjs → InsightsPageHeader-CFrO8ZhS.mjs} +5 -5
- package/.output/server/_ssr/{IosInstall-CuSgvhg-.mjs → IosInstall-COL13Y9Q.mjs} +6 -6
- package/.output/server/_ssr/{NativeBuildsNav-DAXCwIoa.mjs → NativeBuildsNav-DADiCA79.mjs} +3 -3
- package/.output/server/_ssr/{NotFoundPage-DffajSyb.mjs → NotFoundPage-C6fy3EQE.mjs} +2 -2
- package/.output/server/_ssr/{QrCode-DwBVEOIh.mjs → QrCode-pjBmMRNW.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-CH0r_O2c.mjs → RelativeTime-ybh_YpRa.mjs} +3 -3
- package/.output/server/_ssr/{RolloutPercentageBadge-Bwn0TagX.mjs → RolloutPercentageBadge-Ck1Qz_u9.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-DWr8eiRr.mjs → RowReason-DrDg86zk.mjs} +4 -4
- package/.output/server/_ssr/{SandboxBadge-D5ecaKjw.mjs → SandboxBadge-BVLfk_MI.mjs} +7 -19
- package/.output/server/_ssr/{TargetDisplay-sdzBTzVV.mjs → TargetDisplay-CcNoERcA.mjs} +3 -3
- package/.output/server/_ssr/{alert-dialog-BmbeXMVA.mjs → alert-dialog-Cneyp4SL.mjs} +1 -1
- package/.output/server/_ssr/{api-BHKgmaIU.mjs → api-D1iTDB8X.mjs} +3 -3
- package/.output/server/_ssr/{api-keys-BOVrv884.mjs → api-keys-BmByedx3.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-BsnJI325.mjs → api-keys-L22cEsbx.mjs} +9 -9
- package/.output/server/_ssr/{api-keys-rpc-BLJiZe-7.mjs → api-keys-rpc-De0gejNE.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-CozVGcH5.mjs → api-rpc-CLUkjEzc.mjs} +7 -7
- package/.output/server/_ssr/{auth-rpc-DRY2e35e.mjs → auth-rpc-BR35Xq9A.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-BMzf25uQ.mjs → auth.server-DGB_iSU1.mjs} +2 -2
- package/.output/server/_ssr/{badge-COm_alG-.mjs → badge-Cr_XmvdA.mjs} +1 -1
- package/.output/server/_ssr/{card-BFTQ_XzK.mjs → card-DmZaoqKT.mjs} +1 -1
- package/.output/server/_ssr/{config.server-Bv6DoXn5.mjs → config.server-B5Dghtv-.mjs} +3 -3
- package/.output/server/_ssr/{console-access-DEJ5MJE4.mjs → console-access-GUnQkD3j.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-BpiwpG_6.mjs → console-features-api-rDUY2XrP.mjs} +3 -3
- package/.output/server/_ssr/{console-features-rpc-VIMnfCAY.mjs → console-features-rpc-BJrkm9dz.mjs} +3 -3
- package/.output/server/_ssr/{dialog-BI3i27S5.mjs → dialog-BvTfEtqZ.mjs} +1 -1
- package/.output/server/_ssr/{empty-BFtyXzTb.mjs → empty-DD6BahGF.mjs} +2 -2
- package/.output/server/_ssr/{field-CrIyg_Pu.mjs → field-BTahddUR.mjs} +2 -2
- package/.output/server/_ssr/{input-group-CaQYmdpl.mjs → input-group-DtCeEJ9x.mjs} +1 -1
- package/.output/server/_ssr/{insights-BWhfhoIe.mjs → insights-BKG9fP-a.mjs} +5 -5
- package/.output/server/_ssr/{insights-BUS6BNcb.mjs → insights-ChiX0NMe.mjs} +19 -19
- package/.output/server/_ssr/{insights-D3FBuhNP.mjs → insights-DMnvHO-N.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-Dp_g14ew.mjs → insights-api-Cpr7F9Zq.mjs} +3 -3
- package/.output/server/_ssr/{insights-failures-rpc-B9HE0jaG.mjs → insights-failures-rpc-ClIZ5YAr.mjs} +4 -4
- package/.output/server/_ssr/{insights-recovery-rpc-CItLuIvv.mjs → insights-recovery-rpc-9vTxL0b9.mjs} +3 -3
- package/.output/server/_ssr/{insights-rpc-BK9yCwTo.mjs → insights-rpc-ntVL4dMr.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-C3zfHoQH.mjs → insights-search-BDC6qL_N.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-rpc-D5DLPj5-.mjs → insights-usage-rpc-B3tWIvs7.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-rpc-BgMHF87M.mjs → insights-usage-rpc-D1AH4wIp.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-Cn0HJH9g.mjs → insights_.distribution-16p6uw87.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-93_mA2-l.mjs → insights_.distribution-BQyY6j-B.mjs} +13 -13
- package/.output/server/_ssr/{insights_.distribution-CP9GZanc.mjs → insights_.distribution-Bs9C7zLO.mjs} +5 -5
- package/.output/server/_ssr/{installations-ysHMBT1s.mjs → installations-BjPcHbsA.mjs} +4 -4
- package/.output/server/_ssr/{installations-CY_qlCNv.mjs → installations-DD36dmtY.mjs} +2 -2
- package/.output/server/_ssr/{installations-CvmlbSO9.mjs → installations-DkAGd1RB.mjs} +11 -11
- package/.output/server/_ssr/{ios-devices-rpc-Dux6IEq9.mjs → ios-devices-rpc-CUe5hM5d.mjs} +7 -7
- package/.output/server/_ssr/{iosDeviceCookie-C8I4QNd8.mjs → iosDeviceCookie-DeLAGIDy.mjs} +3 -3
- package/.output/server/_ssr/{iosDeviceProfile-htlFx2Iz.mjs → iosDeviceProfile-DEhxhqB1.mjs} +2 -2
- package/.output/server/_ssr/{iosDevices-Bm5YmQne.mjs → iosDevices-DC6OSIpz.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-DokuKdcX.mjs → native-builds-83NqyJmR.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-DSDdaywn.mjs → native-builds-BVCLjZy3.mjs} +27 -54
- package/.output/server/_ssr/{native-builds_._buildId-xRldfNoO.mjs → native-builds_._buildId-CW246wU-.mjs} +55 -94
- package/.output/server/_ssr/{native-builds_._buildId-Dah2sUhQ.mjs → native-builds_._buildId-Dz3ZOBO4.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_.devices-ObbbZTA2.mjs → native-builds_.devices-BcgwCDYe.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_.devices-CC2uVmMy.mjs → native-builds_.devices-Cb1j7l0p.mjs} +15 -15
- package/.output/server/_ssr/{nativeBuildDownloadLink-D_Lc8Kdl.mjs → nativeBuildDownloadLink-S98Fp4EL.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-D-zJgIjg.mjs → nativeBuildInstall-CGx9_h9k.mjs} +3 -3
- package/.output/server/_ssr/{release-adoption-rpc-BmBnPwgL.mjs → release-adoption-rpc-CH1S7Q72.mjs} +5 -5
- package/.output/server/_ssr/{remote-config-Bj3_Vy5J.mjs → remote-config-B37Kf8E_.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-Cc61LMhc.mjs → remote-config-Bt9nmY6h.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-Dzb-so_N.mjs → remote-config-D5eSR-Oj.mjs} +17 -17
- package/.output/server/_ssr/{remote-config-rpc-D1bl95E9.mjs → remote-config-rpc-C47nnyek.mjs} +3 -3
- package/.output/server/_ssr/{router-B9WYJ0i8.mjs → router-CHveNRca.mjs} +32 -32
- package/.output/server/_ssr/{routes-CupMWrld.mjs → routes-Dfa8uOh-.mjs} +8 -8
- package/.output/server/_ssr/{routes-Cf4GSQVG.mjs → routes-t2IGGOuQ.mjs} +21 -21
- package/.output/server/_ssr/{schema-migration-rpc-BJfLrS5u.mjs → schema-migration-rpc-LvcWmZNf.mjs} +3 -3
- package/.output/server/_ssr/{select-BhlTavBg.mjs → select-BM4VyXJ2.mjs} +1 -1
- package/.output/server/_ssr/{server-CO04rHE0.mjs → server-ChOocPzQ.mjs} +3 -3
- package/.output/server/_ssr/{sidebar-kS1dkq7c.mjs → sidebar-DaVgRP2d.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{switch-Up7u760a.mjs → switch-BSixbqb5.mjs} +2 -2
- package/.output/server/_ssr/{table-BVS2P58k.mjs → table-DIgStkYT.mjs} +1 -1
- package/.output/server/_ssr/{tabs-B-w3F332.mjs → tabs-BcBESH4i.mjs} +2 -2
- package/.output/server/_tanstack-start-manifest_v-CR_uX94i.mjs +223 -0
- package/.output/server/index.mjs +307 -307
- package/package.json +7 -7
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +0 -6
- package/src/components/features/native-builds/InstallCard.tsx +48 -74
- package/src/components/features/native-builds/NativeBuildsTable.tsx +10 -40
- package/src/components/features/native-builds/playTracks.ts +4 -16
- package/.output/public/assets/RolloutPercentageBadge-DlaDqnOs.js +0 -1
- package/.output/public/assets/SandboxBadge-BpJoP3BG.js +0 -1
- package/.output/public/assets/api-keys-CrrBMw2x.js +0 -1
- package/.output/public/assets/insights-DuQ160fy.js +0 -2
- package/.output/public/assets/insights-QaHXTgmd.js +0 -1
- package/.output/public/assets/insights_.distribution-D2BkPvdk.js +0 -2
- package/.output/public/assets/insights_.distribution-gCONJgiU.js +0 -1
- package/.output/public/assets/installations-D5bvOxlY.js +0 -1
- package/.output/public/assets/native-builds-BqfRi0ou.js +0 -1
- package/.output/public/assets/native-builds-urjkBbVZ.js +0 -2
- package/.output/public/assets/native-builds_._buildId-Cy_v6FQF.js +0 -1
- package/.output/public/assets/native-builds_._buildId-EnQK17U1.js +0 -2
- package/.output/public/assets/native-builds_.devices-B6hLe0uI.js +0 -2
- package/.output/public/assets/remote-config-9h5s5yCy.js +0 -1
- package/.output/public/assets/routes-CMsRlxFp.js +0 -1
- package/.output/server/_tanstack-start-manifest_v-CGhBxSt1.mjs +0 -224
- /package/.output/public/assets/{BundleIdDisplay-Bm85NZma.js → BundleIdDisplay-Cz5MehaS.js} +0 -0
- /package/.output/public/assets/{NotFoundPage-DUWkihqx.js → NotFoundPage-DIwHXtYM.js} +0 -0
- /package/.output/public/assets/{PlatformIcon-CZjIJt0C.js → PlatformIcon-DjcYGkV6.js} +0 -0
- /package/.output/public/assets/{alert-dialog-ndHfUqUh.js → alert-dialog-C6K18pl_.js} +0 -0
- /package/.output/public/assets/{api-USY_IWMu.js → api-sTvbSydX.js} +0 -0
- /package/.output/public/assets/{badge-D4Tiwei-.js → badge-Cf3eoJjl.js} +0 -0
- /package/.output/public/assets/{card-VtWYErXu.js → card-CHIqYgB7.js} +0 -0
- /package/.output/public/assets/{constants-C5gi7fdZ.js → constants-zSb7FXDh.js} +0 -0
- /package/.output/public/assets/{dialog-Dx9gstou.js → dialog-ZrH3ul9A.js} +0 -0
- /package/.output/public/assets/{dist-BDfiL2Qz.js → dist-Dh2hrHKj.js} +0 -0
- /package/.output/public/assets/{empty-Cdfs8tuN.js → empty-Oq7fhUu4.js} +0 -0
- /package/.output/public/assets/{field-CubHQ_EM.js → field-BHPxgJmr.js} +0 -0
- /package/.output/public/assets/{git-branch-BWrvONjc.js → git-branch-BOz43vpU.js} +0 -0
- /package/.output/public/assets/{history-DwdBLzJP.js → history-Bz8IgNln.js} +0 -0
- /package/.output/public/assets/{input-group-DNfVeeYZ.js → input-group-cEQZv88S.js} +0 -0
- /package/.output/public/assets/{key-round-B-vaAsR7.js → key-round-Dy3paJP6.js} +0 -0
- /package/.output/public/assets/{list-Dq40Mmoj.js → list-ClzEOP6k.js} +0 -0
- /package/.output/public/assets/{loader-circle-C26cZDSM.js → loader-circle-BUfUHW-o.js} +0 -0
- /package/.output/public/assets/{plus-Bp6IqwOH.js → plus-CNhNPLpx.js} +0 -0
- /package/.output/public/assets/{relativeTime-Wk64dka-.js → relativeTime-CdKwnwWK.js} +0 -0
- /package/.output/public/assets/{rotate-cw-Bn3fIWmY.js → rotate-cw-CyYMmYDu.js} +0 -0
- /package/.output/public/assets/{search-DeKSyo9Q.js → search-C9QXSW-Z.js} +0 -0
- /package/.output/public/assets/{smartphone-lSZWrqxx.js → smartphone-NAD6OBaK.js} +0 -0
- /package/.output/public/assets/{switch-7xIPmzJp.js → switch-Bvelc7zQ.js} +0 -0
- /package/.output/public/assets/{table-DtcLx8yw.js → table-tm9RvUbS.js} +0 -0
- /package/.output/public/assets/{tabs-DYlO8l4M.js → tabs-TD0mdxc_.js} +0 -0
- /package/.output/public/assets/{trash-2-BPH7ydek.js → trash-2-SV8_CRNk.js} +0 -0
- /package/.output/public/assets/{undo-2-CGeTBZjC.js → undo-2-K3gpHMd2.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
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 O,Zn as te,_ as ne,_r as re,b as ie,bn as ae,dt as oe,et as se,ft as ce,g as le,gn as ue,gr as k,h as A,jr as de,kr as fe,p as pe,v as j,vn as M,vr as N,w as me,wr as P,xn as F,xr as he,y as I,yn as L}from"./sidebar-UnsNYOry.js";import{t as R}from"./link-D95E0fwF.js";import{t as z}from"./arrow-right-jHG0fJt7.js";import{t as ge}from"./arrow-up-right-BPRe5soE.js";import{a as _e,i as ve,l as ye,n as be,o as xe,r as Se,s as Ce,t as B}from"./routes-DVuMMuc5.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-C6ofsnLc.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-DSZKLAHH.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-DlaDqnOs.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-DYvuFp4w.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-7xIPmzJp.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-DmxDGWAA.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,f as Et,i as Dt,l as Ot,o as kt,s as At,t as jt,u as Mt}from"./constants-C5gi7fdZ.js";import{a as Nt,c as Pt,i as Ft,n as It,r as Lt,t as Rt}from"./field-CubHQ_EM.js";import{C as zt,S as Bt,_ as Vt,a as Ht,b as Ut,c as Wt,i as Gt,n as Kt,o as qt,r as Jt,s as Yt,t as Xt,v as Zt,w as Qt,x as $t,y as en}from"./api-USY_IWMu.js";import{a as tn,i as nn,l as rn,n as an,o as on,r as sn,s as cn,t as ln}from"./alert-dialog-ndHfUqUh.js";import{n as un,t as dn}from"./PlatformIcon-CZjIJt0C.js";import{a as fn,i as pn,n as mn,o as hn,r as gn,s as _n,t as vn}from"./dialog-Dx9gstou.js";import{a as yn,i as J,n as bn,o as xn,r as Y,t as Sn}from"./table-DtcLx8yw.js";import{t as Cn}from"./BundleIdDisplay-Bm85NZma.js";import{t as wn}from"./ChannelBadge-B04sTjw5.js";import{a as Tn,c as En,d as Dn,f as On,i as kn,l as An,n as jn,o as Mn,p as Nn,r as Pn,s as Fn,t as In,u as Ln}from"./RelativeTime-CAwDWRiM.js";import{t as Rn}from"./HashValueDisplay-N89T2mVj.js";import{n as zn,t as Bn}from"./valueToPercent-Db73Kirz.js";import{a as Vn,c as Hn,i as Un,l as Wn,n as Gn,o as Kn,r as qn,s as Jn,t as Yn}from"./RowReason-CRPq0CHS.js";var Xn=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`}]]),Zn=D(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Qn=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`}]]),$n=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`}]]),er=o();function tr(){return P}function nr(){return!1}function rr(){return!0}function ir(){return(0,er.useSyncExternalStore)(tr,nr,rr)}var X=E(S(),1),Z=a();function ar({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:N(`h-4 w-4`,a??`text-green-600 dark:text-green-400`,t)}):n===`minus`?(0,Z.jsx)(Zn,{className:N(`h-4 w-4`,a??`text-muted-foreground`,t)}):(0,Z.jsx)(r,{className:N(`h-4 w-4`,a??`text-red-600 dark:text-red-400`,t)})}function or({panelId:t,bundle:n,bundles:r,loading:i,onDetailClick:a}){let o=A();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)(Cn,{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)(Cn,{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)(Cn,{bundleId:n.id,fullOnMobile:!0,maxLength:12}),(0,Z.jsx)(z,{className:`size-4 rotate-90 text-muted-foreground`}),(0,Z.jsx)(Cn,{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)(k,{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)(Sn,{className:`min-w-max`,children:[(0,Z.jsx)(yn,{children:(0,Z.jsxs)(xn,{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)(bn,{children:r.map(e=>(0,Z.jsxs)(xn,{children:[(0,Z.jsx)(Y,{children:(0,Z.jsx)(Cn,{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)(Cn,{bundleId:n.id,fullOnMobile:!0,maxLength:12}),(0,Z.jsx)(z,{className:`size-4 shrink-0 rotate-90 text-muted-foreground sm:rotate-0`}),(0,Z.jsx)(Cn,{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)(k,{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 sr({open:e,onOpenChange:t}){let[n,r]=(0,X.useState)(``),[i,a]=(0,X.useState)(null),o=lt(i),{data:s=[],isPending:c}=Gt(),l=qt(),u=Yt(),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)(vn,{open:e,onOpenChange:t,children:(0,Z.jsxs)(mn,{className:`sm:max-w-lg`,children:[(0,Z.jsxs)(fn,{children:[(0,Z.jsxs)(hn,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(Qn,{className:`size-4 text-muted-foreground`}),`Channels`]}),(0,Z.jsx)(gn,{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)(Ft,{className:`gap-2`,children:(0,Z.jsxs)(Rt,{orientation:`horizontal`,children:[(0,Z.jsx)(Nt,{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)(k,{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)(k,{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)(ln,{open:i!==null,onOpenChange:e=>{!e&&!u.isPending&&a(null)},children:(0,Z.jsxs)(nn,{children:[(0,Z.jsxs)(cn,{children:[(0,Z.jsxs)(rn,{children:[`Delete `,o?.name,`?`]}),(0,Z.jsx)(tn,{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)(on,{children:[(0,Z.jsx)(sn,{disabled:u.isPending,children:`Cancel`}),(0,Z.jsx)(an,{variant:`destructive`,disabled:u.isPending,onClick:e=>{e.preventDefault(),p()},children:u.isPending?`Deleting...`:`Delete channel`})]})]})})]})}var cr=`[a-zA-Z0-9-]`,lr=String.raw`0|[1-9]\d*`,ur=String.raw`\d+`,dr=String.raw`\d*[a-zA-Z-]${cr}*`,fr=String.raw`(${lr})\.(${lr})\.(${lr})`,pr=String.raw`(${ur})\.(${ur})\.(${ur})`,mr=`(?:${dr}|${lr})`,hr=`(?:${dr}|${ur})`,gr=String.raw`(?:-(${mr}(?:\.${mr})*))`,_r=String.raw`(?:-?(${hr}(?:\.${hr})*))`,vr=`${cr}+`,yr=String.raw`(?:\+(${vr}(?:\.${vr})*))`,br=`v?${fr}${gr}?${yr}?`,xr=String.raw`[v=\s]*${pr}${_r}?${yr}?`,Sr=`((?:<|>)?=?)`,Cr=String.raw`${lr}|x|X|\*`,wr=String.raw`${ur}|x|X|\*`,Tr=String.raw`[v=\s]*(${Cr})(?:\.(${Cr})(?:\.(${Cr})(?:${gr})?${yr}?)?)?`,Er=String.raw`[v=\s]*(${wr})(?:\.(${wr})(?:\.(${wr})(?:${_r})?${yr}?)?)?`,Dr=`(?:~>?)`,Or=String.raw`(?:\^)`,kr=String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`;String.raw`${kr}(?:$|[^\d])`,String.raw`${kr}(?:${gr})?(?:${yr})?(?:$|[^\d])`;function Ar(e){let t=[[String.raw`\s`,1],[String.raw`\d`,256],[cr,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(Ar(e),t)}var jr=Q(`^${br}$`),Mr=Q(`^${xr}$`),Nr=/^\d+$/;function Pr(e){let t=`${e.major}.${e.minor}.${e.patch}`;return e.prerelease?.length?`${t}-${e.prerelease.join(`.`)}`:t}function Fr(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?Mr:jr);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(Nr.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 Ir=Q(String.raw`^${Sr}\s*(${br})$|^$`),Lr=Q(String.raw`^${Sr}\s*(${xr})$|^$`);function Rr(e){return e.version?`${e.operator}${Pr(e.version)}`:``}function zr(e,t={}){if(typeof e!=`string`)return e;let n=e.trim().replaceAll(/\s+/g,` `),r=n.match(t.loose?Lr:Ir);if(!r)throw TypeError(`Invalid comparator: ${n}`);let i=r[1]===`=`?``:r[1]||``,a=r[2]?Fr(r[2],t):null;return{operator:i,options:t,value:a?`${i}${Pr(a)}`:``,version:a}}function Br(e){return e.sets.map(e=>e.map(Rr).join(` `)).join(`||`)}var Vr=new RegExp(yr,`g`),Hr=Q(yr),Ur=Q(String.raw`^\s*(${Tr})\s+-\s+(${Tr})\s*$`),Wr=Q(String.raw`^\s*(${Er})\s+-\s+(${Er})\s*$`),Gr=Q(String.raw`(\s*)${Sr}\s*(${xr}|${Tr})`,`g`),Kr=Q(String.raw`(\s*)${Dr}\s+`,`g`),qr=Q(String.raw`(\s*)${Or}\s+`,`g`),Jr=Q(`^${Dr}${Tr}$`),Yr=Q(`^${Dr}${Er}$`),Xr=Q(`^${Or}${Tr}$`),Zr=Q(`^${Or}${Er}$`),Qr=Q(String.raw`^${Sr}\s*${Tr}$`),$r=Q(String.raw`^${Sr}\s*${Er}$`),ei=Q(String.raw`(<|>)?=?\s*\*`),ti=/^\s*>=\s*0\.0\.0\s*$/,ni=/^\s*>=\s*0\.0\.0-0\s*$/,ri=Q(String.raw`^${Sr}\s*(${xr})$|^$`);function $(e){return!e||String(e).toLowerCase()===`x`||String(e)===`*`}function ii(e,t,n){return $(e)&&!$(t)||$(t)&&!!n&&!$(n)}function ai(e,t){let n=t.loose?Yr:Jr,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 oi(e,t){return e.trim().split(/\s+/).map(e=>ai(e,t)).join(` `)}function si(e,t){let n=t.loose?Zr:Xr,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 ci(e,t){return e.trim().split(/\s+/).map(e=>si(e,t)).join(` `)}function li(e,t){let n=t.loose?$r:Qr;return e.trim().replace(n,(n,r,i,a,o)=>{let s=r,c=i,l=a,u=o;if(ii(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 ui(e,t){return e.split(/\s+/).map(e=>li(e,t)).join(` `)}function di(e,t){let n=t.loose?Wr:Ur;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 fi(e,t){return ui(oi(ci(e.replace(Hr,``),t),t),t).trim().replace(ei,``)}function pi(e,t){let n=di(e.replace(Vr,``),t).replace(Gr,`$1$2$3`).replace(Kr,`$1~`).replace(qr,`$1^`).split(` `).map(e=>fi(e,t)).join(` `).split(/\s+/).map(e=>e.trim().replace(t.includePrerelease?ni:ti,``));t.loose&&(n=n.filter(e=>ri.test(e)));let r=new Map;for(let e of n.map(e=>zr(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 mi(e,t={}){if(typeof e!=`string`)return e;let n={...t},r=e.trim().replaceAll(/\s+/g,` `),i=r.split(`||`).map(e=>pi(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 hi(e,t={}){try{return mi(e,t)}catch{return null}}function gi(e,t={}){let n=hi(e,t);return n?Br(n)||`*`:null}function _i({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 vi({bundle:e,release:t}){let{data:n,isFetched:r}=Ht(),i=e?Ot(e):null,a=e?wt(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)(_i,{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)(_i,{label:`Git commit`,value:(0,Z.jsxs)(`div`,{className:`flex items-center justify-start gap-1 sm:justify-end`,children:[(0,Z.jsx)(Rn,{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)(_i,{label:`Manifest hash`,value:(0,Z.jsx)(Rn,{maxLength:16,value:e.manifestFileHash})}):null,a?(0,Z.jsx)(_i,{label:`Base hash`,value:(0,Z.jsx)(Rn,{maxLength:16,value:a})}):null,i?(0,Z.jsx)(_i,{label:`Patch hash`,value:(0,Z.jsx)(Rn,{maxLength:16,value:i})}):null]})})]}):null}var yi=Array.from({length:Ct},(e,t)=>t+1);function bi({releaseId:e,rolloutCohortCount:t,targetCohorts:n}){let r=Et(t),i=n??[],a=i.length>0,o=r>0&&r<1e3,s=r===Ct,c=A(),l=s?yi:o?yi.filter(t=>kt(e,t)<r):[],u=(r/10).toFixed(1),d=s?Ct:l.length,f=Ct-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)(vn,{children:[(0,Z.jsxs)(_n,{render:(0,Z.jsx)(k,{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)(mn,{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)(fn,{className:`shrink-0 border-b border-border/70 px-4 py-4`,children:[(0,Z.jsx)(hn,{children:`Rolled out cohorts`}),(0,Z.jsxs)(gn,{children:[u,`% includes `,d,` of`,` `,Ct,` 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)(pn,{className:`shrink-0 border-t border-border/70 px-4 py-3`,showCloseButton:!0})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(fn,{children:[(0,Z.jsx)(hn,{children:`Rolled out cohorts`}),(0,Z.jsxs)(gn,{children:[u,`% includes `,d,` of`,` `,Ct,` numeric cohorts.`,a?` Additional cohorts are always included.`:``]})]}),p,(0,Z.jsx)(pn,{showCloseButton:!0})]})})]})}function xi({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=$t(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)(R,{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)(ge,{"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)(R,{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 Si(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function Ci(e,t){return e-t}function wi(e,t,n){let r=e.slice();return r[t]=n,r.sort(Ci)}function Ti(e,t,n,r,i,a){let o=e;return o=U(o,n,r),i&&(o=wi(a,t,U(o,a[t-1]||-1/0,a[t+1]||1/0))),o}function Ei(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 Di={activeThumbIndex:()=>null,max:()=>null,min:()=>null,minStepsBetweenValues:()=>null,step:()=>null,values:()=>null,...Pe},Oi=X.createContext(void 0);function ki(){let e=X.useContext(Oi);if(e===void 0)throw Error(fe(62));return e}function Ai(e){return`key`in e?p:g}function ji(e,t){return typeof e==`number`&&typeof t==`number`?e===t:Array.isArray(e)&&Array.isArray(t)?Si(e,t):!1}var Mi=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,O=ce(s),ne=Re(O),re=h(v),ie=h(y),{clearErrors:oe}=Be(),{state:se,disabled:le,name:ue,setTouched:k,setDirty:A,validityData:fe,shouldValidateOnChange:pe,validation:j}=je(),{labelId:N}=Ne(),[P,F]=X.useState(),I=n??ze(N,P),L=le||o,R=ue??_,[z,ge]=Te({controlled:ee,default:a??p,name:`Slider`}),_e=X.useRef(null),ve=X.useRef(null),ye=X.useRef([]),be=X.useRef(null),xe=X.useRef(null),Se=X.useRef(-1),Ce=X.useRef(null),B=X.useRef(null),V=X.useRef(`none`),we=ae(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(ve,O,z),me(z,()=>{oe(R),pe()?j.commit(z):j.commit(z,!0);let e=fe.initialValue,t;t=Array.isArray(z)&&Array.isArray(e)?!Si(z,e):z!==e,A(t)});let He=h(e=>{e&&(ve.current=e)}),G=Array.isArray(z),Ue=X.useMemo(()=>G?z.slice().sort(Ci):[U(z,p,f)],[f,p,G,z]),We=h((e,t)=>{if(Number.isNaN(e)||ji(e,z))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:R}}),n.event=i,B.current=e,re(e,n),!n.isCanceled&&ge(e)}),Ge=h((e,t,n)=>{let r=Ti(e,t,p,f,G,Ue);if(Ei(r,S,m)){let e=Ai(n);We(r,C(e,n.nativeEvent,void 0,{activeThumbIndex:t})),k(!0),ie(B.current??r,i(e,n.nativeEvent))}});de(()=>{let e=te(M(_e.current));L&&b(_e.current,e)&&e.blur()},[L]),L&&Ee!==-1&&W(-1);let Ke=X.useMemo(()=>({...se,activeThumbIndex:Ee,disabled:L,dragging:Pe,orientation:x,max:f,min:p,minStepsBetweenValues:m,step:S,values:Ue}),[se,Ee,L,Pe,f,p,m,x,S,Ue]),qe=X.useMemo(()=>({active:Ee,controlRef:ve,disabled:L,dragging:Pe,validation:j,formatOptionsRef:we,handleInputChange:Ge,indicatorPosition:H,inset:T!==`center`,labelId:I,rootLabelId:ne,largeStep:l,lastUsedThumbIndex:ke,lastChangedValueRef:B,lastChangeReasonRef:V,form:g,locale:u,max:f,min:p,minStepsBetweenValues:m,name:R,onValueCommitted:ie,orientation:x,pressedInputRef:be,pressedThumbCenterOffsetRef:xe,pressedThumbIndexRef:Se,pressedValuesRef:Ce,registerFieldControlRef:He,renderBeforeHydration:T===`edge`,setActive:W,setDragging:Fe,setIndicatorPosition:Ve,setLabelId:F,setValue:We,state:Ke,step:S,thumbCollisionBehavior:w,thumbMap:Ie,thumbRefs:ye,values:Ue}),[Ee,ve,I,ne,L,Pe,j,we,Ge,H,l,ke,B,V,g,u,f,p,m,R,ie,x,be,xe,Se,Ce,He,W,Fe,Ve,F,We,Ke,S,w,T,Ie,ye,Ue]),Je=he(`div`,e,{state:Ke,ref:[t,_e],props:[{"aria-labelledby":I,id:O,role:`group`},j.getValidationProps,D],stateAttributesMapping:Di});return(0,Z.jsx)(Oi.Provider,{value:qe,children:(0,Z.jsx)(De,{elementsRef:ye,onMapChange:Le,children:Je})})});function Ni(e){let t=e.getBoundingClientRect();return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function Pi(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 Fi(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Math.max(Pi(t),Pi(n))))}function Ii({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 Li({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=Ii({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:Ii({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 Ri=2;function zi(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 Bi(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 Vi=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:O,renderBeforeHydration:ne,setActive:re,setDragging:ie,setValue:se,state:ce,step:le,thumbCollisionBehavior:ue,thumbRefs:k,values:A}=ki(),de=oe(),fe=A.length>1,pe=S===`vertical`,j=X.useRef(null),N=X.useRef(null),me=h(e=>{e&&N.current==null&&(N.current=c(e).getComputedStyle(e))}),P=X.useRef(null),I=X.useRef(0),R=X.useRef(0),z=ae(A);function ge(e){E.current!==e&&(E.current=e);let t=k.current[e];if(!t){T.current=null,w.current=null;return}w.current=t.querySelector(`input[type="range"]`)}function _e(e){let t=j.current;if(!t)return null;let{width:n,height:r,bottom:i,left:a,right:o}=t.getBoundingClientRect(),s=zi(N.current,pe),c=R.current,l=(pe?r:n)-s.start-s.end-c*2,u=T.current??0,d=e.x-u,f=e.y-u,p=U(((pe?i-f-s.end:(de===`rtl`?o-d:d-a)-s.start)-c)/l,0,1),m=(g-v)*p+v;if(m=Fi(m,le,v),m=U(m,v,g),!fe)return{value:m,thumbIndex:0,didSwap:!1};let h=E.current;if(h<0)return null;let _=Li({behavior:ue,values:A,currentValues:z.current??A,initialValues:D.current,pressedIndex:h,nextValue:m,min:v,max:g,step:le,minStepsBetweenValues:y});return ue===`swap`&&_.didSwap?ge(_.thumbIndex):E.current=_.thumbIndex,_}function ve(e){D.current=fe?A.slice():null,z.current=A;let t=E.current,n=t;if(t>-1&&t<A.length){if(A[t]===g){let e=t;for(;e>0&&A[e-1]===g;)--e;n=e}}else{let t=pe?`y`:`x`,r;n=-1;for(let i=0;i<k.current.length;i+=1){let a=k.current[i];if(d(a)){let o=Ni(a),s=Math.abs(e[t]-o[t]);(r===void 0||s<=r)&&(n=i,r=s)}}}if(n>-1&&n!==t&&ge(n),f){let e=k.current[n];d(e)&&(R.current=e.getBoundingClientRect()[pe?`height`:`width`]/2)}}function ye(e){let t=k.current?.[e]?.querySelector(`input[type="range"]`);t&&t.focus({preventScroll:!0,focusVisible:!1})}let be=h(e=>{let t=Bi(e,P);if(t==null)return;if(I.current+=1,e.type===`pointermove`&&e.buttons===0){xe(e);return}let n=_e(t);n!=null&&Ei(n.value,le,y)&&(!u&&I.current>Ri&&ie(!0),se(n.value,C(_,e,void 0,{activeThumbIndex:n.thumbIndex})),z.current=Array.isArray(n.value)?n.value:[n.value],n.didSwap&&ye(n.thumbIndex))});function xe(e){re(-1),ie(!1),w.current=null,T.current=null;let t=Bi(e,P),n=t==null?null:_e(t);if(n!=null){let t=m.current;x(p.current??n.value,i(t,e))}`pointerType`in e&&j.current?.hasPointerCapture(e.pointerId)&&j.current?.releasePointerCapture(e.pointerId),E.current=-1,P.current=null,D.current=null,Ce()}let Se=h(e=>{if(l)return;let t=e.changedTouches[0];t!=null&&(P.current=t.identifier);let n=Bi(e,P);if(n!=null){ve(n);let t=_e(n);if(t==null)return;ye(t.thumbIndex),se(t.value,C(ee,e,void 0,{activeThumbIndex:t.thumbIndex})),z.current=Array.isArray(t.value)?t.value:[t.value],t.didSwap&&ye(t.thumbIndex)}I.current=0;let r=M(j.current);r.addEventListener(`touchmove`,be,{passive:!0}),r.addEventListener(`touchend`,xe,{passive:!0})}),Ce=h(()=>{let e=M(j.current);e.removeEventListener(`pointermove`,be),e.removeEventListener(`pointerup`,xe),e.removeEventListener(`touchmove`,be),e.removeEventListener(`touchend`,xe),D.current=null}),B=L();return X.useEffect(()=>{let e=j.current;if(!e)return()=>Ce();let t=F(e,`touchstart`,Se,{passive:!0});return()=>{t(),B.cancel(),Ce()}},[Ce,Se,j,B]),X.useEffect(()=>{l&&Ce()},[l,Ce]),he(`div`,e,{state:ce,ref:[n,O,j,me],props:[{"data-base-ui-slider-control":ne?``:void 0,onPointerDown(e){let n=j.current,r=t(e.nativeEvent);if(!n||l||e.defaultPrevented||!d(r)||e.button!==0)return;let i=Bi(e,P);if(i!=null){ve(i);let t=_e(i);if(t==null)return;b(k.current[t.thumbIndex],te(M(n)))?e.preventDefault():B.request(()=>{ye(t.thumbIndex)}),ie(!0),T.current??(se(t.value,C(ee,e.nativeEvent,void 0,{activeThumbIndex:t.thumbIndex})),z.current=Array.isArray(t.value)?t.value:[t.value],t.didSwap&&ye(t.thumbIndex))}e.nativeEvent.pointerId&&n.setPointerCapture(e.nativeEvent.pointerId),I.current=0;let a=M(j.current);a.addEventListener(`pointermove`,be,{passive:!0}),a.addEventListener(`pointerup`,xe,{once:!0})}},s],stateAttributesMapping:Di})}),Hi=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=ki();return he(`div`,e,{state:o,ref:t,props:[{style:{position:`relative`}},a],stateAttributesMapping:Di})}),Ui=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}({}),Wi=new Set([...f,T,l]);function Gi(e,t,n,r){if(!(t<0))return e.length===2?t===0?`${zn(e[t],r,n)} start range`:`${zn(e[t],r,n)} end range`:n?zn(e[t],r,n):void 0}function Ki(e,t,n,r,i){let a=n===1?e+t:e-t;return U(Number(a.toFixed(Math.max(Pi(e),Pi(t),Pi(r)))),r,i)}var qi=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:te,style:ne,...re}=e,{nonce:ie}=Fe(),ae=ce(b),{active:se,lastUsedThumbIndex:le,controlRef:k,disabled:A,validation:fe,formatOptionsRef:pe,handleInputChange:j,inset:M,labelId:N,largeStep:me,locale:P,max:F,min:I,minStepsBetweenValues:L,form:R,name:z,orientation:ge,pressedInputRef:_e,pressedThumbCenterOffsetRef:ve,pressedThumbIndexRef:ye,renderBeforeHydration:be,setActive:xe,setIndicatorPosition:Se,state:Ce,step:B,values:V}=ki(),we=oe(),Te=g||A,De=V.length>1,Oe=ge===`vertical`,ke=we===`rtl`,{setTouched:Ae,setFocused:Me,validationMode:Ne}=je(),Pe=X.useRef(null),Le=X.useRef(null),Re=X.useRef(!1),ze=ce(),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=Bn(G,I,F),[We,Ge]=X.useState(),Ke=ir(),qe=le>=0&&le<V.length?le:-1,Je=h(()=>{let e=k.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])});de(()=>{M&&queueMicrotask(Je)},[Je,M]),de(()=>{M&&Je()},[Je,M,Ue]),de(()=>{if(!M)return;let e=k.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()}},[k,Je,M]);let Ye=Oe?`bottom`:`insetInlineStart`,Xe=Oe?`left`:`top`,Ze;De?se===W?Ze=2:qe===W&&(Ze=1):se===W&&(Ze=1);let Qe;Qe=M?{"--position":`${We??0}%`,visibility:be&&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}:ue;let $e;ge===`vertical`&&($e=ke?`vertical-rl`:`vertical-lr`);let et=typeof _==`function`?_(W):d,tt=n({"aria-label":et,"aria-labelledby":p??(et==null?N:void 0),"aria-describedby":o,"aria-orientation":ge,"aria-valuenow":G,"aria-valuetext":typeof y==`function`?y(zn(G,P,pe.current??void 0),G,W):Gi(V,W,pe.current??void 0,P),disabled:Te,form:R,id:H,max:F,min:I,name:z,onChange(e){j(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`&&fe.commit(Ti(G,W,I,F,De,V)))},onKeyDown(e){if(!Wi.has(e.key))return;f.has(e.key)&&e.stopPropagation();let t=null,n=Fi(G,B,I);switch(e.key){case u:t=Ki(n,e.shiftKey?me:B,1,I,F);break;case s:t=Ki(n,e.shiftKey?me:B,ke?-1:1,I,F);break;case m:t=Ki(n,e.shiftKey?me:B,-1,I,F);break;case v:t=Ki(n,e.shiftKey?me:B,ke?1:-1,I,F);break;case T:t=Ki(n,me,1,I,F);break;case l:t=Ki(n,me,-1,I,F);break;case`End`:t=F,De&&(t=Number.isFinite(V[W+1])?V[W+1]-B*L:F);break;case x:t=I,De&&(t=Number.isFinite(V[W-1])?V[W-1]+B*L:I);break;default:break}if(t!==null){let n=e.currentTarget;O(n)||(Re.current=!0,n.blur(),n.focus({preventScroll:!0,focusVisible:!0})),j(t,W,e),e.preventDefault()}},step:B,style:{...ue,width:`100%`,height:`100%`,writingMode:$e},tabIndex:te??void 0,type:`range`,value:G??``},fe.getInputValidationProps),K=w(Le,fe.inputRef,C);return he(`div`,e,{state:Ce,ref:[t,U,Pe],props:[{[Ui.index]:W,children:(0,Z.jsxs)(X.Fragment,{children:[i,(0,Z.jsx)(`input`,{ref:K,...tt,suppressHydrationWarning:!0}),M&&Ke&&be&&He&&(0,Z.jsx)(`script`,{nonce:ie,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:ae,onBlur:ee,onFocus:E,onPointerDown(e){if(ye.current=W,Pe.current!=null){let t=ge===`horizontal`?`x`:`y`,n=Ni(Pe.current);ve.current=(ge===`horizontal`?e.clientX:e.clientY)-n[t]}Le.current!=null&&_e.current!==Le.current&&(_e.current=Le.current)},style:Qe,suppressHydrationWarning:be||void 0},re],stateAttributesMapping:Di})});function Ji(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 Yi(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 Xi=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}=ki(),m=ir(),h=u===`vertical`,g=p.length>1,_=s?Ji(h,g,o[0],o[1],d,m):Yi(h,g,Bn(p[0],l,c),Bn(p[p.length-1],l,c));return he(`div`,e,{state:f,ref:t,props:[{"data-base-ui-slider-indicator":d?``:void 0,style:_,suppressHydrationWarning:d||void 0},a],stateAttributesMapping:Di})});function Zi({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)(Mi,{className:N(`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)(Vi,{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)(Hi,{"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)(Xi,{"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)(qi,{"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 Qi=[{label:`Move bundle`,value:`move`},{label:`Copy bundle`,value:`copy`}],$i=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]}),ea=(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}),ta=e=>(e/10).toFixed(1),na=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},ra=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?Math.min(1e3,Math.max(0,Math.trunc(t*10))):null};function ia({value:e,onChange:t}){let[n,r]=(0,X.useState)(ta(e)),[i,a]=(0,X.useState)(!1);return(0,X.useEffect)(()=>{i||r(ta(e))},[i,e]),(0,Z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,Z.jsx)(Zi,{"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=ra(n)??e;a(!1),r(ta(i)),t(i)},onChange:e=>{let n=na(e.target.value);r(n);let i=ra(n);i!==null&&t(i)},onFocus:()=>a(!0),value:n}),(0,Z.jsx)(at,{align:`inline-end`,children:(0,Z.jsx)(rt,{children:`%`})})]})]})}function aa({channels:t,onOpenChange:n,onShowScope:i,open:a,releaseId:o}){let s=Bt(o),c=s.data,l=Jt(c?.bundle_id??``),u=l.data,d=u?At(u):null,f=en(c?.scope_key??``),p=Qt(),m=Vt(),h=Wt(),g=Zt(),[_,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,O]=(0,X.useState)(!1),[te,re]=(0,X.useState)(``),[ae,oe]=(0,X.useState)(`move`);(0,X.useEffect)(()=>{v(c?$i(c):null),C(``)},[c]);let ce=c?$i(c):null,ue=_!==null&&ce!==null&&JSON.stringify(_)!==JSON.stringify(ce),A=m.isPending||p.isPending||h.isPending||g.isPending,de=()=>{if(!A){if(ue){T(!0);return}n(!1)}},fe=()=>{if(!_)return;let e=Tt(b);if(!Mt(e)){C(Dt);return}v({..._,targetCohorts:Array.from(new Set([..._.targetCohorts,e]))}),x(``),C(``)},pe=async()=>{if(!c||!_)return;let e=_.targetCohorts.map(Tt);if(e.some(e=>!Mt(e))){C(Dt);return}if(c.strategy===`APP_VERSION`&&!gi(_.targetAppVersion.trim())){C(`Enter a valid target app version range.`);return}let t={expectedRevision:c.revision,patch:ea(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.`)}},M=t.find(e=>e.id===c?.channel_id)?.name??c?.channel_id,N=t.filter(e=>e.id!==c?.channel_id),me=N.map(e=>({label:e.name,value:e.name})),P=te.trim(),F=ae===`copy`,he=_?gi(_.targetAppVersion.trim()):null,L=()=>{re(``),oe(`move`)},R=e=>{!e&&g.isPending||(O(e),e||L())};return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(le,{onOpenChange:e=>e?void 0:de(),open:a,children:(0,Z.jsxs)(ne,{className:`min-w-0 overflow-hidden data-[side=right]:w-full sm:max-w-[600px]`,children:[(0,Z.jsxs)(I,{className:`shrink-0 pr-12`,children:[(0,Z.jsx)(ie,{children:`Bundle Detail`}),(0,Z.jsx)(j,{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)(dn,{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)(Cn,{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:M})]}),M?(0,Z.jsx)(xi,{bundle:u,channel:M,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:[M?(0,Z.jsx)(Ce,{release:{platform:c.platform,channel:M,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)(Ft,{className:`gap-6`,children:[(0,Z.jsxs)(Rt,{children:[(0,Z.jsx)(Nt,{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)(Rt,{children:[(0,Z.jsx)(Nt,{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}),he?(0,Z.jsx)(It,{children:he}):null]}):null,(0,Z.jsx)(Rt,{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)(Nt,{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)(Rt,{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)(Nt,{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)(Rt,{children:[(0,Z.jsx)(Nt,{htmlFor:`release-rollout-percentage`,children:`Rollout percentage`}),(0,Z.jsx)(ia,{onChange:e=>v({..._,rolloutCohortCount:e}),value:_.rolloutCohortCount})]}),(0,Z.jsxs)(Rt,{children:[(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,Z.jsx)(Nt,{htmlFor:`release-cohort`,children:`Additional cohorts (optional)`}),(0,Z.jsx)(bi,{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(),fe())},placeholder:`e.g. qa-team…`,value:b}),(0,Z.jsx)(k,{"aria-label":`Add cohort`,className:`max-md:size-11`,disabled:!b.trim(),onClick:fe,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)(It,{children:`Public names—no IDs or secrets.`})]})]}),S?(0,Z.jsx)(Lt,{children:S}):null,(0,Z.jsx)(k,{className:`w-full max-md:h-11`,disabled:!ue||A,onClick:pe,size:`lg`,children:m.isPending||p.isPending?`Saving…`:`Save changes`})]}),(0,Z.jsx)(se,{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)(k,{className:`w-full max-md:h-11`,disabled:!c.bundle_id||A,onClick:()=>O(!0),size:`sm`,variant:`outline`,children:`Promote to channel`}),c.bundle_id?(0,Z.jsxs)(k,{className:`w-full max-md:h-11`,disabled:A,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)(k,{className:`w-full max-md:h-11`,disabled:c.enabled||A,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)(vi,{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)(k,{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)(ln,{onOpenChange:T,open:w,children:(0,Z.jsxs)(nn,{children:[(0,Z.jsxs)(cn,{children:[(0,Z.jsx)(rn,{children:`Discard unsaved changes?`}),(0,Z.jsx)(tn,{children:`Your Bundle changes will be lost.`})]}),(0,Z.jsxs)(on,{children:[(0,Z.jsx)(sn,{children:`Keep editing`}),(0,Z.jsx)(an,{onClick:()=>{T(!1),n(!1)},variant:`destructive`,children:`Discard changes`})]})]})}),(0,Z.jsx)(ln,{onOpenChange:E,open:ee,children:(0,Z.jsxs)(nn,{children:[(0,Z.jsxs)(cn,{children:[(0,Z.jsxs)(rn,{children:[`Remove this Bundle from `,M??`the channel`,`?`]}),(0,Z.jsx)(tn,{children:`The uploaded artifact stays available. This only removes the Bundle from the channel.`})]}),(0,Z.jsxs)(on,{children:[(0,Z.jsx)(sn,{children:`Cancel`}),(0,Z.jsx)(an,{onClick:async()=>{if(c)try{await h.mutateAsync({expectedRevision:c.revision,releaseId:c.id}),K.success(`Bundle removed from ${M??`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)(vn,{onOpenChange:R,open:D,children:(0,Z.jsxs)(mn,{showCloseButton:!g.isPending,children:[(0,Z.jsxs)(fn,{children:[(0,Z.jsx)(hn,{children:`Promote to Channel`}),(0,Z.jsx)(gn,{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)(Pt,{htmlFor:`promote-action`,children:`Action`}),(0,Z.jsxs)(G,{disabled:g.isPending,items:Qi,onValueChange:e=>oe(e),value:ae,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:F?`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)(Pt,{htmlFor:`target-channel`,children:`Target Channel`}),(0,Z.jsxs)(G,{disabled:g.isPending,items:me,onValueChange:e=>re(e??``),value:te||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:`md:max-h-64`,children:(0,Z.jsx)(He,{children:N.map(e=>(0,Z.jsx)(H,{value:e.name,children:e.name},e.id))})})]})]})]}),(0,Z.jsxs)(pn,{children:[(0,Z.jsx)(k,{disabled:g.isPending,onClick:()=>R(!1),variant:`outline`,children:`Cancel`}),(0,Z.jsx)(k,{disabled:!P||g.isPending,onClick:async()=>{if(c)try{await g.mutateAsync({action:ae,expectedRevision:c.revision,releaseId:c.id,targetChannel:P}),R(!1),K.success(F?`Bundle copied to ${P}`:`Bundle moved to ${P}`)}catch(e){K.error(e instanceof Error?e.message:`Bundle could not be promoted.`)}},children:g.isPending?F?`Copying…`:`Moving…`:F?`Copy`:`Move`})]})]})})]})}function oa({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 sa={data:void 0,error:null,isError:!1,isPending:!0,isPlaceholderData:!1},ca={one:`unreachable bundle`,other:`unreachable bundles`},la=[{label:`iOS`,value:`ios`},{label:`Android`,value:`android`}],ua=[{label:`Any Status`,value:`all`},{label:`Enabled`,value:`enabled`},{label:`Disabled`,value:`disabled`}];function da({channels:e,clearable:t,onChange:n,onClear:i,onManageChannels:a,pending:o,search:s}){let c=s.channelId!==void 0,l=[{label:jt,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)(pe,{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)(Xn,{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:jt}),e.map(e=>(0,Z.jsx)(H,{value:e.id,children:e.name},e.id))]})})]}),(0,Z.jsxs)(G,{disabled:!c,items:la,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:ua,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)(k,{"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)($n,{})}),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)(k,{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 fa({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)(k,{"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)(Cn,{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)(Yn,{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 pa({onDetailClick:t,panelId:n,release:r}){let i=r.bundle_id??``,a=Jt(i),o=Kt(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)(or,{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 ma(e,t){return{patchCounts:Xt(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 ha=(e,t)=>t>=e.to&&(e.from===void 0||t<e.from);function ga({fold:e,filter:t,channels:n,columns:r,isMobile:i,open:a,onOpenChange:o,render:s}){let c=Ut(t,{...e.from===void 0?{}:{from:e.from},to:e.to},a),l=c.data?.pages.flatMap(e=>e.rows)??[],u=ma(l,n),d=i?void 0:r,f=c.isError?(0,Z.jsx)(Un,{columns:d,label:`Unreachable bundles`,onRetry:()=>void c.refetch(),state:`error`}):c.isPending||c.isFetchingNextPage?(0,Z.jsx)(Un,{columns:d,label:`Loading unreachable bundles`,state:`loading`}):c.hasNextPage?(0,Z.jsx)(Un,{columns:d,label:`Unreachable bundles`,onMore:()=>void c.fetchNextPage(),state:`more`}):null,p={label:Kn(e,ca),open:a,onOpenChange:o,panelId:`bundle-fold-${e.to}`};return i?(0,Z.jsxs)(Gn,{...p,children:[l.map(e=>s(e,u)),f]}):(0,Z.jsxs)(qn,{...p,columns:r,children:[l.map(e=>s(e,u)),f]})}function _a(){let e=B.useSearch(),t=B.useNavigate(),n=A(),[r,i]=(0,X.useState)(!1),[a,o]=(0,X.useState)(),s=Wn(),c=Gt(),l=c.data??[],u=c.data,d=ve(e,u),f=d===void 0&&c.isError,p=d??e,m=Se(p),h=zt({afterReleaseId:p.afterReleaseId,beforeReleaseId:p.beforeReleaseId,filter:m,releaseId:p.releaseId},{enabled:d!==void 0}),g=!_e(e,u),_=d===void 0?sa:h,v=_.data?.entries??[],y=v.flatMap(e=>e.kind===`row`?[e.row]:[]),b=ma(y,l),x=_.data?.next,S=_.data?.previous,C=ye(),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(Vn(t))&&ha(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)),O=e=>{y.some(({id:t})=>t===e.id)||s.set(e.id,!0),E({...p,releaseId:e.id},!1)},te=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})},ne=p.afterReleaseId!==void 0||p.beforeReleaseId!==void 0,ie=S?{...p,afterReleaseId:`after`in S?S.after:void 0,beforeReleaseId:`before`in S?S.before:void 0,releaseId:void 0}:null,ae=x?{...p,afterReleaseId:void 0,beforeReleaseId:x,releaseId:void 0}:null,oe={...p,afterReleaseId:void 0,beforeReleaseId:void 0,releaseId:void 0},se=(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)(jn,{"aria-label":`Bundle ${e.id}`,className:N(`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:Nn(()=>O(e)),children:[(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsx)(fa,{expanded:i,onOpen:()=>O(e),onToggleExpand:()=>o(i?void 0:e.id),release:e}),(0,Z.jsx)(wn,{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)(dn,{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)(In,{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)(oa,{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)(pa,{onDetailClick:te,panelId:s,release:e}):null]},e.id)},ce=(e,t)=>{let n=ee&&a===e.id,r=`bundle-lineage-panel-${e.id}`;return(0,Z.jsxs)(X.Fragment,{children:[(0,Z.jsxs)(Dn,{"aria-label":`Open bundle ${e.id}`,className:N(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:()=>O(e),children:[(0,Z.jsx)(Y,{children:(0,Z.jsx)(fa,{expanded:n,onOpen:()=>O(e),onToggleExpand:()=>o(n?void 0:e.id),release:e})}),(0,Z.jsx)(Y,{children:(0,Z.jsx)(wn,{channel:T.get(e.channel_id)??e.channel_id})}),(0,Z.jsx)(Y,{className:`whitespace-nowrap`,children:(0,Z.jsx)(un,{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)(ar,{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)(ar,{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)(In,{ms:e.created_at_ms})})]}),n&&e.bundle_id?(0,Z.jsx)(xn,{className:`hover:bg-transparent`,children:(0,Z.jsx)(Y,{className:`border-t-0 p-0`,colSpan:w,children:(0,Z.jsx)(pa,{onDetailClick:te,panelId:r,release:e})})}):null]},e.id)},le=(e,t)=>(0,Z.jsx)(ga,{channels:l,columns:w,filter:m,fold:e,isMobile:n,onOpenChange:t=>s.set(Vn(e),t),open:s.isOpen(Vn(e)),render:t},`fold-${e.to}`),ue=(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})]}),de=(0,Z.jsx)(Fn,{icon:Qe,title:y.length===0&&v.length>0?`No device gets the bundles here`:ne?`No more bundles`:be(p)?g?`No bundles match these filters`:ue:`No bundles yet`,children:ne?(0,Z.jsx)(R,{className:re({className:`mt-1 min-h-11 sm:min-h-8`,variant:`outline`}),search:oe,to:`/`,children:`Show the newest bundles`}):g?(0,Z.jsx)(k,{className:`mt-1 min-h-11 sm:min-h-8`,onClick:()=>E({}),variant:`outline`,children:`Clear filters`}):be(p)?(0,Z.jsx)(k,{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)(da,{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)(k,{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)(En,{children:n?(0,Z.jsx)(`div`,{className:`h-full overflow-y-auto`,children:_.isPending?(0,Z.jsx)(Pn,{}):(0,Z.jsxs)(Z.Fragment,{children:[y.length===0?(0,Z.jsx)(kn,{children:de}):null,v.map(e=>e.kind===`row`?se(e.row,b):le(e,se))]})}):(0,Z.jsx)(Tn,{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)(Mn,{children:(0,Z.jsx)(On,{columns:w})}):(0,Z.jsxs)(Z.Fragment,{children:[y.length===0?(0,Z.jsx)(Mn,{children:(0,Z.jsx)(An,{columns:w,children:de})}):null,Hn(v).map(e=>e.kind===`fold`?le(e.fold,ce):(0,Z.jsx)(Mn,{children:e.rows.map(e=>ce(e,b))},`rows-${e.rows[0].id}`))]})})}),!f&&!_.isError&&!_.isPending?(0,Z.jsx)(Ln,{count:y.length,folded:{...Jn(v),label:`unreachable`},label:`Bundle pagination`,noun:[`bundle`,`bundles`],pending:_.isPlaceholderData,newest:ne?{search:oe,to:`/`}:void 0,next:ae?{search:ae,to:`/`}:void 0,previous:ie?{search:ie,to:`/`}:void 0}):null]}),(0,Z.jsx)(aa,{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)(sr,{onOpenChange:i,open:r})]})}export{_a as component};
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-CGhBxSt1.js
|
|
2
|
-
var tsrStartManifest = () => ({ routes: {
|
|
3
|
-
__root__: {
|
|
4
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/__root.tsx",
|
|
5
|
-
children: [
|
|
6
|
-
"/",
|
|
7
|
-
"/api-keys",
|
|
8
|
-
"/insights",
|
|
9
|
-
"/installations",
|
|
10
|
-
"/native-builds",
|
|
11
|
-
"/remote-config",
|
|
12
|
-
"/insights_/distribution",
|
|
13
|
-
"/native-builds_/$buildId",
|
|
14
|
-
"/native-builds_/devices",
|
|
15
|
-
"/_hot-updater/devices/device-response",
|
|
16
|
-
"/_hot-updater/devices/device.mobileconfig",
|
|
17
|
-
"/_hot-updater/devices/receipt",
|
|
18
|
-
"/_hot-updater/devices/request",
|
|
19
|
-
"/api/auth/$",
|
|
20
|
-
"/_hot-updater/native-builds/$buildId/manifest.plist",
|
|
21
|
-
"/api/bundles/$bundleId/download",
|
|
22
|
-
"/api/native-builds/$buildId/download"
|
|
23
|
-
],
|
|
24
|
-
preloads: [
|
|
25
|
-
"/assets/index-DzRyUcWR.js",
|
|
26
|
-
"/assets/sidebar-UnsNYOry.js",
|
|
27
|
-
"/assets/preload-helper-52zhjEsw.js",
|
|
28
|
-
"/assets/link-D95E0fwF.js",
|
|
29
|
-
"/assets/remote-config-FiUamvQE.js",
|
|
30
|
-
"/assets/alert-dialog-ndHfUqUh.js",
|
|
31
|
-
"/assets/select-DSZKLAHH.js",
|
|
32
|
-
"/assets/useCompositeListItem-B9ONn9qn.js",
|
|
33
|
-
"/assets/check-Dz_5aNwx.js",
|
|
34
|
-
"/assets/tabs-DYlO8l4M.js",
|
|
35
|
-
"/assets/CompositeItem-CcgQyrSU.js",
|
|
36
|
-
"/assets/switch-7xIPmzJp.js",
|
|
37
|
-
"/assets/useMutation-BWX97JX2.js",
|
|
38
|
-
"/assets/console-features-api-De6tXQnd.js",
|
|
39
|
-
"/assets/relativeTime-Wk64dka-.js",
|
|
40
|
-
"/assets/arrow-right-jHG0fJt7.js",
|
|
41
|
-
"/assets/clipboard-D8uvj6FN.js",
|
|
42
|
-
"/assets/git-branch-BWrvONjc.js",
|
|
43
|
-
"/assets/history-DwdBLzJP.js",
|
|
44
|
-
"/assets/loader-circle-C26cZDSM.js",
|
|
45
|
-
"/assets/plus-Bp6IqwOH.js",
|
|
46
|
-
"/assets/dist-BDfiL2Qz.js",
|
|
47
|
-
"/assets/input-group-DNfVeeYZ.js",
|
|
48
|
-
"/assets/search-DeKSyo9Q.js",
|
|
49
|
-
"/assets/smartphone-lSZWrqxx.js",
|
|
50
|
-
"/assets/trash-2-BPH7ydek.js",
|
|
51
|
-
"/assets/badge-D4Tiwei-.js",
|
|
52
|
-
"/assets/undo-2-CGeTBZjC.js",
|
|
53
|
-
"/assets/PlatformIcon-CZjIJt0C.js",
|
|
54
|
-
"/assets/card-VtWYErXu.js",
|
|
55
|
-
"/assets/dialog-Dx9gstou.js",
|
|
56
|
-
"/assets/empty-Cdfs8tuN.js",
|
|
57
|
-
"/assets/field-CubHQ_EM.js",
|
|
58
|
-
"/assets/api-USY_IWMu.js",
|
|
59
|
-
"/assets/arrow-up-right-BPRe5soE.js",
|
|
60
|
-
"/assets/routes-DVuMMuc5.js",
|
|
61
|
-
"/assets/insights-api-CXXCRZhF.js",
|
|
62
|
-
"/assets/key-round-B-vaAsR7.js",
|
|
63
|
-
"/assets/insights-search-DmxDGWAA.js",
|
|
64
|
-
"/assets/constants-C5gi7fdZ.js",
|
|
65
|
-
"/assets/native-builds_._buildId-EnQK17U1.js",
|
|
66
|
-
"/assets/-native-builds-search-BJPSRi4t.js",
|
|
67
|
-
"/assets/copy-BxI24-g-.js",
|
|
68
|
-
"/assets/native-builds-DYvuFp4w.js",
|
|
69
|
-
"/assets/rotate-cw-Bn3fIWmY.js",
|
|
70
|
-
"/assets/NotFoundPage-DUWkihqx.js",
|
|
71
|
-
"/assets/IosInstall-ChFnQISV.js",
|
|
72
|
-
"/assets/installations-BfbwP-Ub.js",
|
|
73
|
-
"/assets/insights-DuQ160fy.js",
|
|
74
|
-
"/assets/insights_.distribution-D2BkPvdk.js",
|
|
75
|
-
"/assets/native-builds-urjkBbVZ.js",
|
|
76
|
-
"/assets/native-builds_.devices-B6hLe0uI.js"
|
|
77
|
-
],
|
|
78
|
-
scripts: [{ attrs: {
|
|
79
|
-
type: "module",
|
|
80
|
-
async: !0,
|
|
81
|
-
src: "/assets/index-DzRyUcWR.js"
|
|
82
|
-
} }]
|
|
83
|
-
},
|
|
84
|
-
"/": {
|
|
85
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/index.tsx",
|
|
86
|
-
children: void 0,
|
|
87
|
-
preloads: [
|
|
88
|
-
"/assets/routes-CMsRlxFp.js",
|
|
89
|
-
"/assets/valueToPercent-Db73Kirz.js",
|
|
90
|
-
"/assets/TargetDisplay-C6ofsnLc.js",
|
|
91
|
-
"/assets/HashValueDisplay-N89T2mVj.js",
|
|
92
|
-
"/assets/chevron-right-CuYrscDY.js",
|
|
93
|
-
"/assets/circle-off-BZFOMb8J.js",
|
|
94
|
-
"/assets/download-ekENI2Sw.js",
|
|
95
|
-
"/assets/RolloutPercentageBadge-DlaDqnOs.js",
|
|
96
|
-
"/assets/list-Dq40Mmoj.js",
|
|
97
|
-
"/assets/BundleIdDisplay-Bm85NZma.js",
|
|
98
|
-
"/assets/ChannelBadge-B04sTjw5.js",
|
|
99
|
-
"/assets/RelativeTime-CAwDWRiM.js",
|
|
100
|
-
"/assets/table-DtcLx8yw.js",
|
|
101
|
-
"/assets/RowReason-CRPq0CHS.js"
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
"/api-keys": {
|
|
105
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/api-keys.tsx",
|
|
106
|
-
children: void 0,
|
|
107
|
-
preloads: [
|
|
108
|
-
"/assets/api-keys-Bjv4olzj.js",
|
|
109
|
-
"/assets/table-DtcLx8yw.js",
|
|
110
|
-
"/assets/api-keys-CrrBMw2x.js",
|
|
111
|
-
"/assets/ConsoleFeatureUnavailable-P2up1IkX.js"
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
"/insights": {
|
|
115
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/insights.tsx",
|
|
116
|
-
children: void 0,
|
|
117
|
-
preloads: [
|
|
118
|
-
"/assets/insights-B1yw5HMS.js",
|
|
119
|
-
"/assets/insights-usage-rpc-BG7EOn2n.js",
|
|
120
|
-
"/assets/valueToPercent-Db73Kirz.js",
|
|
121
|
-
"/assets/EventDetails-BYZUOYsT.js",
|
|
122
|
-
"/assets/download-ekENI2Sw.js",
|
|
123
|
-
"/assets/HashValueDisplay-N89T2mVj.js",
|
|
124
|
-
"/assets/InsightsPageHeader-DhOT-Tmn.js",
|
|
125
|
-
"/assets/list-Dq40Mmoj.js",
|
|
126
|
-
"/assets/chevron-right-CuYrscDY.js",
|
|
127
|
-
"/assets/circle-off-BZFOMb8J.js",
|
|
128
|
-
"/assets/BundleIdDisplay-Bm85NZma.js",
|
|
129
|
-
"/assets/table-DtcLx8yw.js",
|
|
130
|
-
"/assets/insights-QaHXTgmd.js",
|
|
131
|
-
"/assets/ConsoleFeatureUnavailable-P2up1IkX.js"
|
|
132
|
-
]
|
|
133
|
-
},
|
|
134
|
-
"/installations": {
|
|
135
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/installations.tsx",
|
|
136
|
-
children: void 0,
|
|
137
|
-
preloads: [
|
|
138
|
-
"/assets/installations-BKAdFmTM.js",
|
|
139
|
-
"/assets/EventDetails-BYZUOYsT.js",
|
|
140
|
-
"/assets/download-ekENI2Sw.js",
|
|
141
|
-
"/assets/HashValueDisplay-N89T2mVj.js",
|
|
142
|
-
"/assets/InsightsPageHeader-DhOT-Tmn.js",
|
|
143
|
-
"/assets/list-Dq40Mmoj.js",
|
|
144
|
-
"/assets/arrow-left-CxxDwBQs.js",
|
|
145
|
-
"/assets/table-DtcLx8yw.js",
|
|
146
|
-
"/assets/installations-D5bvOxlY.js",
|
|
147
|
-
"/assets/ConsoleFeatureUnavailable-P2up1IkX.js"
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
|
-
"/native-builds": {
|
|
151
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/native-builds.tsx",
|
|
152
|
-
children: void 0,
|
|
153
|
-
preloads: [
|
|
154
|
-
"/assets/native-builds-BqfRi0ou.js",
|
|
155
|
-
"/assets/TargetDisplay-C6ofsnLc.js",
|
|
156
|
-
"/assets/HashValueDisplay-N89T2mVj.js",
|
|
157
|
-
"/assets/download-ekENI2Sw.js",
|
|
158
|
-
"/assets/ChannelBadge-B04sTjw5.js",
|
|
159
|
-
"/assets/RelativeTime-CAwDWRiM.js",
|
|
160
|
-
"/assets/chevron-right-CuYrscDY.js",
|
|
161
|
-
"/assets/table-DtcLx8yw.js",
|
|
162
|
-
"/assets/RowReason-CRPq0CHS.js",
|
|
163
|
-
"/assets/NativeBuildsNav-CivF1UpI.js",
|
|
164
|
-
"/assets/SandboxBadge-BpJoP3BG.js"
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
"/remote-config": {
|
|
168
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/remote-config.tsx",
|
|
169
|
-
children: void 0,
|
|
170
|
-
preloads: [
|
|
171
|
-
"/assets/remote-config-9h5s5yCy.js",
|
|
172
|
-
"/assets/ConsoleFeatureUnavailable-P2up1IkX.js",
|
|
173
|
-
"/assets/remote-config-BopBV_qe.js"
|
|
174
|
-
]
|
|
175
|
-
},
|
|
176
|
-
"/insights_/distribution": {
|
|
177
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/insights_.distribution.tsx",
|
|
178
|
-
children: void 0,
|
|
179
|
-
preloads: [
|
|
180
|
-
"/assets/insights_.distribution-gCONJgiU.js",
|
|
181
|
-
"/assets/ConsoleFeatureUnavailable-P2up1IkX.js",
|
|
182
|
-
"/assets/insights_.distribution-vyjSwP0f.js",
|
|
183
|
-
"/assets/insights-usage-rpc-BG7EOn2n.js",
|
|
184
|
-
"/assets/valueToPercent-Db73Kirz.js",
|
|
185
|
-
"/assets/arrow-left-CxxDwBQs.js",
|
|
186
|
-
"/assets/BundleIdDisplay-Bm85NZma.js",
|
|
187
|
-
"/assets/InsightsPageHeader-DhOT-Tmn.js",
|
|
188
|
-
"/assets/list-Dq40Mmoj.js"
|
|
189
|
-
]
|
|
190
|
-
},
|
|
191
|
-
"/native-builds_/$buildId": {
|
|
192
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/native-builds_.$buildId.tsx",
|
|
193
|
-
children: void 0,
|
|
194
|
-
preloads: [
|
|
195
|
-
"/assets/native-builds_._buildId-Cy_v6FQF.js",
|
|
196
|
-
"/assets/TargetDisplay-C6ofsnLc.js",
|
|
197
|
-
"/assets/HashValueDisplay-N89T2mVj.js",
|
|
198
|
-
"/assets/chevron-right-CuYrscDY.js",
|
|
199
|
-
"/assets/download-ekENI2Sw.js",
|
|
200
|
-
"/assets/RolloutPercentageBadge-DlaDqnOs.js",
|
|
201
|
-
"/assets/QrCode-DJ5leikY.js",
|
|
202
|
-
"/assets/BundleIdDisplay-Bm85NZma.js",
|
|
203
|
-
"/assets/ChannelBadge-B04sTjw5.js",
|
|
204
|
-
"/assets/SandboxBadge-BpJoP3BG.js",
|
|
205
|
-
"/assets/table-DtcLx8yw.js"
|
|
206
|
-
]
|
|
207
|
-
},
|
|
208
|
-
"/native-builds_/devices": {
|
|
209
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/native-builds_.devices.tsx",
|
|
210
|
-
children: void 0,
|
|
211
|
-
preloads: [
|
|
212
|
-
"/assets/native-builds_.devices-CjmuLWk7.js",
|
|
213
|
-
"/assets/TargetDisplay-C6ofsnLc.js",
|
|
214
|
-
"/assets/HashValueDisplay-N89T2mVj.js",
|
|
215
|
-
"/assets/QrCode-DJ5leikY.js",
|
|
216
|
-
"/assets/RelativeTime-CAwDWRiM.js",
|
|
217
|
-
"/assets/chevron-right-CuYrscDY.js",
|
|
218
|
-
"/assets/table-DtcLx8yw.js",
|
|
219
|
-
"/assets/NativeBuildsNav-CivF1UpI.js"
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
} });
|
|
223
|
-
//#endregion
|
|
224
|
-
export { tsrStartManifest };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|