@hot-updater/console 1.1.5 → 1.1.7

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.
Files changed (65) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{index-DrkdiRIn.js → index-C83dZaQw.js} +1 -1
  3. package/.output/public/assets/routes-CdST5uVt.js +1 -0
  4. package/.output/public/assets/{routes-9rb9P5Y7.js → routes-D2PhnxCg.js} +2 -2
  5. package/.output/server/{__23tanstack-start-server-fn-resolver-BTRoM3ZK.mjs → __23tanstack-start-server-fn-resolver-CyXEKkH_.mjs} +40 -40
  6. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  7. package/.output/server/_ssr/{BundleIdDisplay-Cu_uxtLL.mjs → BundleIdDisplay-CfdWZaFQ.mjs} +2 -2
  8. package/.output/server/_ssr/{ConsoleFeatureUnavailable-De7nGook.mjs → ConsoleFeatureUnavailable-c-z7PSM1.mjs} +6 -6
  9. package/.output/server/_ssr/{EventDetails-B6qJU3Ho.mjs → EventDetails-CDLSQDcM.mjs} +6 -6
  10. package/.output/server/_ssr/{HashValueDisplay-Dk7gXwSZ.mjs → HashValueDisplay-Bq6n1UwX.mjs} +2 -2
  11. package/.output/server/_ssr/{InsightsPageHeader-BqNItX24.mjs → InsightsPageHeader-DwS2nzR4.mjs} +6 -6
  12. package/.output/server/_ssr/{NotFoundPage-O0Y4NQ5N.mjs → NotFoundPage-BU_eHAyW.mjs} +2 -2
  13. package/.output/server/_ssr/{alert-dialog-G7g_XzVI.mjs → alert-dialog-MZBTiG0I.mjs} +1 -1
  14. package/.output/server/_ssr/{api-BL3kC-5m.mjs → api-DUs6KXrr.mjs} +3 -3
  15. package/.output/server/_ssr/{api-keys-DdGuNGTn.mjs → api-keys-CDMX79N-.mjs} +8 -8
  16. package/.output/server/_ssr/{api-keys-CShII1tz.mjs → api-keys-gBRR-HdQ.mjs} +2 -2
  17. package/.output/server/_ssr/{api-keys-rpc-Dayd_DRM.mjs → api-keys-rpc-B_ND8xe4.mjs} +3 -3
  18. package/.output/server/_ssr/{api-rpc-Cf625HwX.mjs → api-rpc-CwIYvIod.mjs} +3 -3
  19. package/.output/server/_ssr/{auth-rpc-Bg9zjpz5.mjs → auth-rpc-GZIoEvmX.mjs} +4 -4
  20. package/.output/server/_ssr/{auth.server-BQjMW0uK.mjs → auth.server-BZM9osrs.mjs} +2 -2
  21. package/.output/server/_ssr/{badge-DN8fj73I.mjs → badge-DTvV4lbY.mjs} +1 -1
  22. package/.output/server/_ssr/{config.server-L7ll75x7.mjs → config.server-D2FVKR9E.mjs} +3 -3
  23. package/.output/server/_ssr/{console-access-DeVju1PF.mjs → console-access-Bf9WU0Bn.mjs} +2 -2
  24. package/.output/server/_ssr/{console-features-api-BY65aaIY.mjs → console-features-api-CGvuQ6H-.mjs} +5 -5
  25. package/.output/server/_ssr/{console-features-rpc-DsTaZWvl.mjs → console-features-rpc-BGZDcvMY.mjs} +3 -3
  26. package/.output/server/_ssr/{dialog-CfpXr88f.mjs → dialog-DvmMkw9T.mjs} +1 -1
  27. package/.output/server/_ssr/{empty-B2DK143D.mjs → empty-iekPcPWd.mjs} +2 -2
  28. package/.output/server/_ssr/{field-DvXxMlEZ.mjs → field-CSz64UJ9.mjs} +2 -2
  29. package/.output/server/_ssr/{input-group-DDXGLcxY.mjs → input-group-DB-on_da.mjs} +1 -1
  30. package/.output/server/_ssr/{insights-BeTm0qQ2.mjs → insights-B9aQzpOn.mjs} +19 -19
  31. package/.output/server/_ssr/{insights-BqC8tldt.mjs → insights-JgYddtzf.mjs} +2 -2
  32. package/.output/server/_ssr/{insights-api-BO700P1C.mjs → insights-api-S0zXeWv2.mjs} +3 -3
  33. package/.output/server/_ssr/{insights-CPSCgGN4.mjs → insights-ekmRmUa6.mjs} +5 -5
  34. package/.output/server/_ssr/{insights-failures-rpc-D6OK70Td.mjs → insights-failures-rpc-DSwMr2Wn.mjs} +4 -4
  35. package/.output/server/_ssr/{insights-recovery-rpc-Ir31GbY1.mjs → insights-recovery-rpc-DNZQ_Cfm.mjs} +3 -3
  36. package/.output/server/_ssr/{insights-rpc-BSJ2KM34.mjs → insights-rpc-BMaFJbZQ.mjs} +3 -3
  37. package/.output/server/_ssr/{insights-search-CkCpWvaA.mjs → insights-search-C-6b3yK2.mjs} +2 -2
  38. package/.output/server/_ssr/{insights-usage-rpc-DQBuGtPL.mjs → insights-usage-rpc-BHsbLUJD.mjs} +3 -3
  39. package/.output/server/_ssr/{insights-usage-rpc-CZ8sEK9v.mjs → insights-usage-rpc-DZQDgtcf.mjs} +3 -3
  40. package/.output/server/_ssr/{insights_.distribution-Dq_-XUJC.mjs → insights_.distribution-BNJVUb-M.mjs} +2 -2
  41. package/.output/server/_ssr/{insights_.distribution-Z6uZcuUP.mjs → insights_.distribution-BbzSsXv_.mjs} +5 -5
  42. package/.output/server/_ssr/{insights_.distribution-Coh7tQy7.mjs → insights_.distribution-ayHWSrzn.mjs} +13 -13
  43. package/.output/server/_ssr/{installations-7BMDB-Tp.mjs → installations-BrqawcIm.mjs} +4 -4
  44. package/.output/server/_ssr/{installations-CyPx28Vm.mjs → installations-CcCQ8VqP.mjs} +2 -2
  45. package/.output/server/_ssr/{installations-D8F2SIvA.mjs → installations-WXT1p3-2.mjs} +11 -11
  46. package/.output/server/_ssr/{release-adoption-rpc-CreGclHX.mjs → release-adoption-rpc-CfcRvkK0.mjs} +5 -5
  47. package/.output/server/_ssr/{remote-config-Btt6_RTm.mjs → remote-config-Bwg4mbjY.mjs} +2 -2
  48. package/.output/server/_ssr/{remote-config-BxGrsk5L.mjs → remote-config-CvYCUN53.mjs} +17 -17
  49. package/.output/server/_ssr/{remote-config-CPY9yuqw.mjs → remote-config-IFcYNcon.mjs} +2 -2
  50. package/.output/server/_ssr/{remote-config-rpc-Dd2ete-w.mjs → remote-config-rpc-DMIW8911.mjs} +3 -3
  51. package/.output/server/_ssr/{router-Vd7IPVAC.mjs → router-zXLn_-6l.mjs} +14 -14
  52. package/.output/server/_ssr/{routes-DdZKGKrM.mjs → routes-CIQI4MWb.mjs} +10 -10
  53. package/.output/server/_ssr/{routes-Cg0UP4L0.mjs → routes-zm2VuhSP.mjs} +19 -25
  54. package/.output/server/_ssr/{select-DfawnwAT.mjs → select-B_BzNMQD.mjs} +1 -1
  55. package/.output/server/_ssr/{server-C36LNk44.mjs → server-CNh0YxQi.mjs} +3 -3
  56. package/.output/server/_ssr/{sidebar-BNeODqno.mjs → sidebar-B7YP2fgJ.mjs} +2 -2
  57. package/.output/server/_ssr/ssr.mjs +1 -1
  58. package/.output/server/_ssr/{switch-Cpbv90X-.mjs → switch-Bngx5mhe.mjs} +2 -2
  59. package/.output/server/_ssr/{table-W02Ce9NY.mjs → table-BJxpZJjF.mjs} +1 -1
  60. package/.output/server/_ssr/{tabs-CTxsEjmq.mjs → tabs-CtTLuq5L.mjs} +2 -2
  61. package/.output/server/{_tanstack-start-manifest_v-_BY9hYTm.mjs → _tanstack-start-manifest_v-Ch7hhxra.mjs} +5 -5
  62. package/.output/server/index.mjs +118 -118
  63. package/package.json +7 -7
  64. package/src/components/features/channels/ChannelManagementDialog.tsx +3 -8
  65. package/.output/public/assets/routes-P7683vKQ.js +0 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-10-29T12:38:55.928Z",
2
+ "date": "2026-11-03T14:13:24.537Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/api-keys-Dia6i8K1.js","assets/ConsoleFeatureUnavailable-C0KfsKWL.js","assets/sidebar-BqX460IW.js","assets/console-features-api-DPE4C06Y.js","assets/arrow-up-right-B5aM0F7f.js","assets/NotFoundPage-Cei6W2lm.js","assets/empty-Bf4DanOL.js","assets/api-keys-D81VHHNM.js","assets/alert-dialog-BtVg50WQ.js","assets/badge-Bqf3UDee.js","assets/clipboard-DTkrlIMn.js","assets/key-round-B4fI1psK.js","assets/dialog-CGKPxz3n.js","assets/refresh-cw-DjIKjmrS.js","assets/dist-dDj-R6uh.js","assets/field-GxF9SyUo.js","assets/table-ek1DmRHq.js"])))=>i.map(i=>d[i]);
2
- import{$r as e,Ar as t,Br as n,Dr as r,Er as i,Fn as a,Fr as o,Jr as s,Lr as c,Mr as l,Nr as u,Or as d,Pr as f,Qr as p,Tr as m,Ur as h,Vr as g,Wr as _,Xr as v,a as y,ar as b,c as x,d as ee,ei as te,f as ne,i as re,kr as ie,l as ae,m as oe,n as se,o as ce,r as le,ri as ue,rr as de,rt as fe,s as S,t as C,ti as pe,u as me,wr as he,yr as ge}from"./sidebar-BqX460IW.js";import{D as w,E as T,O as _e,_ as ve,d as ye,f as be,g as xe,h as Se,k as Ce,l as we,m as Te,p as Ee,r as De,t as Oe,v as ke,x as Ae}from"./console-features-api-DPE4C06Y.js";import{a as je,c as Me,d as Ne,f as Pe,l as Fe,p as Ie,s as Le,u as Re}from"./useCompositeListItem-B-UkrDlu.js";import{f as ze}from"./alert-dialog-BtVg50WQ.js";import{t as Be}from"./remote-config-D9X3NiwV.js";import{c as Ve,o as He,t as Ue}from"./routes-9rb9P5Y7.js";import{b as We}from"./insights-api-1ZjVu3Sb.js";import{f as Ge}from"./badge-Bqf3UDee.js";import{l as Ke}from"./dialog-CGKPxz3n.js";import{n as qe,t as Je}from"./dist-dDj-R6uh.js";import{t as Ye}from"./NotFoundPage-Cei6W2lm.js";import{t as Xe}from"./insights-C-5t8wh2.js";import{t as Ze}from"./installations-BskJ1xQr.js";import{t as Qe}from"./insights_.distribution-Bzl6RFBR.js";var $e=pe((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-re<ne)}function ae(){if(g=!1,ee){var t=e.unstable_now();re=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ne=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),et=pe(((e,t)=>{t.exports=$e()})),tt=pe((t=>{var n=et(),r=te(),i=e();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),ee=Symbol.for(`react.forward_ref`),ne=Symbol.for(`react.suspense`),re=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),ae=Symbol.for(`react.lazy`),oe=Symbol.for(`react.activity`),se=Symbol.for(`react.memo_cache_sentinel`),ce=Symbol.iterator;function le(e){return typeof e!=`object`||!e?null:(e=ce&&e[ce]||e[`@@iterator`],typeof e==`function`?e:null)}var ue=Symbol.for(`react.client.reference`);function de(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case ne:return`Suspense`;case re:return`SuspenseList`;case oe:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case ee:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return t=e.displayName||null,t===null?de(e.type)||`Memo`:t;case ae:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var fe=Array.isArray,S=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe={pending:!1,data:null,method:null,action:null},me=[],he=-1;function ge(e){return{current:e}}function w(e){0>he||(e.current=me[he],me[he]=null,he--)}function T(e,t){he++,me[he]=e.current,e.current=t}var _e=ge(null),ve=ge(null),ye=ge(null),be=ge(null);function xe(e,t){switch(T(ye,t),T(ve,e),T(_e,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(_e),T(_e,e)}function Se(){w(_e),w(ve),w(ye)}function Ce(e){e.memoizedState!==null&&T(be,e);var t=_e.current,n=Hd(t,e.type);t!==n&&(T(ve,e),T(_e,n))}function we(e){ve.current===e&&(w(_e),w(ve)),be.current===e&&(w(be),Qf._currentValue=pe)}var Te,Ee;function De(e){if(Te===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Te=t&&t[1]||``,Ee=-1<e.stack.indexOf(`
2
+ import{$r as e,Ar as t,Br as n,Dr as r,Er as i,Fn as a,Fr as o,Jr as s,Lr as c,Mr as l,Nr as u,Or as d,Pr as f,Qr as p,Tr as m,Ur as h,Vr as g,Wr as _,Xr as v,a as y,ar as b,c as x,d as ee,ei as te,f as ne,i as re,kr as ie,l as ae,m as oe,n as se,o as ce,r as le,ri as ue,rr as de,rt as fe,s as S,t as C,ti as pe,u as me,wr as he,yr as ge}from"./sidebar-BqX460IW.js";import{D as w,E as T,O as _e,_ as ve,d as ye,f as be,g as xe,h as Se,k as Ce,l as we,m as Te,p as Ee,r as De,t as Oe,v as ke,x as Ae}from"./console-features-api-DPE4C06Y.js";import{a as je,c as Me,d as Ne,f as Pe,l as Fe,p as Ie,s as Le,u as Re}from"./useCompositeListItem-B-UkrDlu.js";import{f as ze}from"./alert-dialog-BtVg50WQ.js";import{t as Be}from"./remote-config-D9X3NiwV.js";import{c as Ve,o as He,t as Ue}from"./routes-D2PhnxCg.js";import{b as We}from"./insights-api-1ZjVu3Sb.js";import{f as Ge}from"./badge-Bqf3UDee.js";import{l as Ke}from"./dialog-CGKPxz3n.js";import{n as qe,t as Je}from"./dist-dDj-R6uh.js";import{t as Ye}from"./NotFoundPage-Cei6W2lm.js";import{t as Xe}from"./insights-C-5t8wh2.js";import{t as Ze}from"./installations-BskJ1xQr.js";import{t as Qe}from"./insights_.distribution-Bzl6RFBR.js";var $e=pe((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-re<ne)}function ae(){if(g=!1,ee){var t=e.unstable_now();re=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ne=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),et=pe(((e,t)=>{t.exports=$e()})),tt=pe((t=>{var n=et(),r=te(),i=e();function a(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(a(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return u(i),e;if(o===r)return u(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var c=!1,l=i.child;l;){if(l===n){c=!0,n=i,r=o;break}if(l===r){c=!0,r=i,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=i;break}if(l===r){c=!0,r=o,n=i;break}l=l.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),ee=Symbol.for(`react.forward_ref`),ne=Symbol.for(`react.suspense`),re=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),ae=Symbol.for(`react.lazy`),oe=Symbol.for(`react.activity`),se=Symbol.for(`react.memo_cache_sentinel`),ce=Symbol.iterator;function le(e){return typeof e!=`object`||!e?null:(e=ce&&e[ce]||e[`@@iterator`],typeof e==`function`?e:null)}var ue=Symbol.for(`react.client.reference`);function de(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case ne:return`Suspense`;case re:return`SuspenseList`;case oe:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case ee:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return t=e.displayName||null,t===null?de(e.type)||`Memo`:t;case ae:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var fe=Array.isArray,S=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe={pending:!1,data:null,method:null,action:null},me=[],he=-1;function ge(e){return{current:e}}function w(e){0>he||(e.current=me[he],me[he]=null,he--)}function T(e,t){he++,me[he]=e.current,e.current=t}var _e=ge(null),ve=ge(null),ye=ge(null),be=ge(null);function xe(e,t){switch(T(ye,t),T(ve,e),T(_e,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}w(_e),T(_e,e)}function Se(){w(_e),w(ve),w(ye)}function Ce(e){e.memoizedState!==null&&T(be,e);var t=_e.current,n=Hd(t,e.type);t!==n&&(T(ve,e),T(_e,n))}function we(e){ve.current===e&&(w(_e),w(ve)),be.current===e&&(w(be),Qf._currentValue=pe)}var Te,Ee;function De(e){if(Te===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Te=t&&t[1]||``,Ee=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+Te+e+Ee}var Oe=!1;function ke(e,t){if(!e||Oe)return``;Oe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
5
  `),l=s.split(`
@@ -0,0 +1 @@
1
+ import{$ as e,$n as t,Bn as n,F as r,Fn as i,Gt as a,H as o,I as s,In as c,Jn as l,Jt as u,Kt as d,L as f,Ln as p,M as m,P as h,R as g,U as _,Un as v,Ur as y,Ut as b,Wn as x,Xn as S,Xt as C,Yn as w,Yt as ee,Z as T,Zn as E,_ as te,an as ne,ar as D,b as re,bn as ie,ei as ae,er as oe,et as se,g as ce,h as le,ir as O,ln as k,lt as ue,mn as de,p as fe,qt as pe,ri as me,sr as A,tn as he,ut as j,v as ge,vn as _e,w as M,xn as N,y as P,yn as ve}from"./sidebar-BqX460IW.js";import{l as F}from"./console-features-api-DPE4C06Y.js";import{i as ye,n as I,o as be,r as xe}from"./useCompositeListItem-B-UkrDlu.js";import{a as L,i as R,l as z,n as Se,o as B,r as Ce,s as V,t as H}from"./alert-dialog-BtVg50WQ.js";import{a as we,c as Te,d as U,f as Ee,h as De,i as Oe,l as ke,m as Ae,n as je,o as Me,p as Ne,r as Pe,s as Fe,t as Ie,u as Le}from"./api-DoicFJfd.js";import{a as Re,c as W,i as ze,n as G,r as Be,s as Ve,t as He}from"./routes-D2PhnxCg.js";import{a as Ue,c as We,d as Ge,f as Ke,i as qe,n as Je,o as Ye,p as Xe,s as Ze,t as K,u as Qe}from"./badge-Bqf3UDee.js";import{n as $e,t as et}from"./circle-off-BsbZQtsF.js";import{A as tt,D as nt,E as rt,M as it,N as at,P as ot,T as st,a as ct,d as lt,f as ut,h as dt,i as ft,m as q,n as pt,o as mt,r as ht,t as gt}from"./select-M3H2gxCc.js";import{r as _t,t as vt}from"./HashValueDisplay-BGkDPaYi.js";import{t as yt}from"./list-Dtj7TtzV.js";import{a as bt,c as xt,i as St,l as Ct,n as wt,o as Tt,r as Et,s as Dt,t as Ot}from"./dialog-CGKPxz3n.js";import{a as kt,i as At,n as jt,o as Mt,s as Nt,t as Pt}from"./input-group-B4nrqIh0.js";import{a as Ft,i as It,n as Lt,o as Rt,t as zt}from"./switch-By_vfm8I.js";import{n as Bt}from"./dist-dDj-R6uh.js";import{_ as Vt,c as Ht,d as Ut,f as Wt,g as Gt,h as Kt,l as qt,m as Jt,o as Yt,s as Xt,u as Zt}from"./insights-search-aT8BVCci.js";import{a as Qt,c as $t,i as en,n as tn,r as nn,t as rn}from"./field-GxF9SyUo.js";import{a as an,i as J,n as on,o as sn,r as Y,t as cn}from"./table-ek1DmRHq.js";import{i as ln,n as un,t as dn}from"./valueToPercent-B44vDssN.js";var fn=D(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),pn=D(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),mn=D(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),hn=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`}]]),gn=D(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),_n=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`}]]),vn=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`}]]),yn=A();function bn(){return v}function xn(){return!1}function Sn(){return!0}function Cn(){return(0,yn.useSyncExternalStore)(bn,xn,Sn)}var X=me(ae(),1),Z=y(),wn={production:`bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20`,dev:`bg-blue-500/10 text-blue-700 dark:text-blue-400 border-blue-500/20`,staging:`bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20`};function Tn({channel:e,className:t}){return(0,Z.jsx)(K,{variant:`outline`,className:p(wn[e.toLowerCase()]||`bg-gray-500/10 text-gray-700 dark:text-gray-400 border-gray-500/20`,t),children:e})}function En({enabled:e,className:t,falseIcon:n=`x`,colorMode:r=`semantic`}){let i=r===`inherit`?`text-current`:void 0;return e?(0,Z.jsx)(Xe,{className:p(`h-4 w-4`,i??`text-green-600 dark:text-green-400`,t)}):n===`minus`?(0,Z.jsx)(gn,{className:p(`h-4 w-4`,i??`text-muted-foreground`,t)}):(0,Z.jsx)(O,{className:p(`h-4 w-4`,i??`text-red-600 dark:text-red-400`,t)})}var Dn=me(Ft(),1),On=me(It(),1);Dn.default.extend(On.default);function kn({uuid:e,format:t=`relative`}){let n=(0,Dn.default)(Yt(e));return t===`relative`?(0,Z.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,Z.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,Z.jsxs)(`div`,{className:`flex flex-col`,children:[(0,Z.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,Z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}function An({panelId:t,bundle:n,bundles:r,loading:a,onDetailClick:o}){let s=le();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)(ln,{bundleId:n.id,fullOnMobile:!0,maxLength:18})]}),(0,Z.jsxs)(K,{variant:`outline`,children:[r.length,` `,r.length===1?`patch`:`patches`]})]}),a?(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`}),s?(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)(ln,{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)(ln,{bundleId:n.id,fullOnMobile:!0,maxLength:12}),(0,Z.jsx)(De,{className:`size-4 rotate-90 text-muted-foreground`}),(0,Z.jsx)(ln,{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)(K,{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)(kn,{uuid:e.id})})]})]}),(0,Z.jsx)(i,{className:`w-full`,onClick:()=>o(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)(cn,{className:`min-w-max`,children:[(0,Z.jsx)(an,{children:(0,Z.jsxs)(sn,{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)(on,{children:r.map(e=>(0,Z.jsxs)(sn,{children:[(0,Z.jsx)(Y,{children:(0,Z.jsx)(ln,{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)(ln,{bundleId:n.id,fullOnMobile:!0,maxLength:12}),(0,Z.jsx)(De,{className:`size-4 shrink-0 rotate-90 text-muted-foreground sm:rotate-0`}),(0,Z.jsx)(ln,{bundleId:e.id,fullOnMobile:!0,maxLength:12})]})}),(0,Z.jsx)(Y,{children:(0,Z.jsx)(K,{variant:`secondary`,children:`bsdiff`})}),(0,Z.jsx)(Y,{className:`tabular-nums`,children:(0,Z.jsx)(kn,{uuid:e.id})}),(0,Z.jsx)(Y,{className:`text-right`,children:(0,Z.jsx)(i,{onClick:()=>o(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 jn({open:e,onOpenChange:t}){let[n,r]=(0,X.useState)(``),[a,o]=(0,X.useState)(null),s=Lt(a),{data:c=[],isPending:l}=Oe(),u=Me(),d=Fe(),f=n.trim(),p=async e=>{if(e.preventDefault(),!(!f||u.isPending))try{let e=await u.mutateAsync({name:f});r(``),e.inserted?Bt.success(`Channel ${e.row.name} created`):Bt.info(`Channel ${e.row.name} already exists`)}catch(e){Bt.error(`Failed to create channel`),console.error(e)}},m=async()=>{if(!(!a||d.isPending))try{let e=await d.mutateAsync({id:a.id});e.deleted?Bt.success(`Channel ${a.name} deleted`):e.reason===`not_empty`?Bt.error(`Channel ${a.name} is still in use and cannot be deleted`):Bt.error(`Channel ${a.name} no longer exists`),o(null)}catch(e){Bt.error(`Failed to delete channel`),console.error(e)}};return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ot,{open:e,onOpenChange:t,children:(0,Z.jsxs)(wt,{className:`sm:max-w-lg`,children:[(0,Z.jsxs)(bt,{children:[(0,Z.jsxs)(Tt,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(_n,{className:`size-4 text-muted-foreground`}),`Channels`]}),(0,Z.jsx)(Et,{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:p,children:(0,Z.jsx)(en,{className:`gap-2`,children:(0,Z.jsxs)(rn,{orientation:`horizontal`,children:[(0,Z.jsx)(Qt,{htmlFor:`channel-name`,className:`sr-only`,children:`Channel name`}),(0,Z.jsx)(T,{id:`channel-name`,value:n,onChange:e=>r(e.target.value),placeholder:`Channel name`,autoComplete:`off`,disabled:u.isPending}),(0,Z.jsxs)(i,{type:`submit`,disabled:!f||u.isPending,children:[u.isPending?(0,Z.jsx)(Ct,{"data-icon":`inline-start`,className:`animate-spin`}):(0,Z.jsx)(xt,{"data-icon":`inline-start`}),`Create`]})]})})}),(0,Z.jsx)(`div`,{className:`max-h-72 overflow-y-auto rounded-lg border`,children:l?(0,Z.jsxs)(`div`,{className:`flex h-20 items-center justify-center text-muted-foreground`,children:[(0,Z.jsx)(Ct,{className:`mr-2 size-3.5 animate-spin`}),`Loading channels`]}):c.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:c.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`,children:e.name}),(0,Z.jsx)(i,{type:`button`,variant:`ghost`,size:`icon-sm`,"aria-label":`Delete ${e.name}`,title:`Delete ${e.name}`,disabled:d.isPending,onClick:()=>o(e),className:`text-muted-foreground hover:text-destructive`,children:(0,Z.jsx)(Rt,{"data-icon":`inline-start`})})]},e.id))})})]})}),(0,Z.jsx)(H,{open:a!==null,onOpenChange:e=>{!e&&!d.isPending&&o(null)},children:(0,Z.jsxs)(R,{children:[(0,Z.jsxs)(V,{children:[(0,Z.jsxs)(z,{children:[`Delete `,s?.name,`?`]}),(0,Z.jsx)(L,{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)(B,{children:[(0,Z.jsx)(Ce,{disabled:d.isPending,children:`Cancel`}),(0,Z.jsx)(Se,{variant:`destructive`,disabled:d.isPending,onClick:e=>{e.preventDefault(),m()},children:d.isPending?`Deleting...`:`Delete channel`})]})]})})]})}var Mn=`[a-zA-Z0-9-]`,Nn=String.raw`0|[1-9]\d*`,Pn=String.raw`\d+`,Fn=String.raw`\d*[a-zA-Z-]${Mn}*`,In=String.raw`(${Nn})\.(${Nn})\.(${Nn})`,Ln=String.raw`(${Pn})\.(${Pn})\.(${Pn})`,Rn=`(?:${Fn}|${Nn})`,zn=`(?:${Fn}|${Pn})`,Bn=String.raw`(?:-(${Rn}(?:\.${Rn})*))`,Vn=String.raw`(?:-?(${zn}(?:\.${zn})*))`,Hn=`${Mn}+`,Un=String.raw`(?:\+(${Hn}(?:\.${Hn})*))`,Wn=`v?${In}${Bn}?${Un}?`,Gn=String.raw`[v=\s]*${Ln}${Vn}?${Un}?`,Kn=`((?:<|>)?=?)`,qn=String.raw`${Nn}|x|X|\*`,Jn=String.raw`${Pn}|x|X|\*`,Yn=String.raw`[v=\s]*(${qn})(?:\.(${qn})(?:\.(${qn})(?:${Bn})?${Un}?)?)?`,Xn=String.raw`[v=\s]*(${Jn})(?:\.(${Jn})(?:\.(${Jn})(?:${Vn})?${Un}?)?)?`,Zn=`(?:~>?)`,Qn=String.raw`(?:\^)`,$n=String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`;String.raw`${$n}(?:$|[^\d])`,String.raw`${$n}(?:${Bn})?(?:${Un})?(?:$|[^\d])`;function er(e){let t=[[String.raw`\s`,1],[String.raw`\d`,256],[Mn,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(er(e),t)}var tr=Q(`^${Wn}$`),nr=Q(`^${Gn}$`),rr=/^\d+$/;function ir(e){let t=`${e.major}.${e.minor}.${e.patch}`;return e.prerelease?.length?`${t}-${e.prerelease.join(`.`)}`:t}function ar(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?nr:tr);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(rr.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 or=Q(String.raw`^${Kn}\s*(${Wn})$|^$`),sr=Q(String.raw`^${Kn}\s*(${Gn})$|^$`);function cr(e){return e.version?`${e.operator}${ir(e.version)}`:``}function lr(e,t={}){if(typeof e!=`string`)return e;let n=e.trim().replaceAll(/\s+/g,` `),r=n.match(t.loose?sr:or);if(!r)throw TypeError(`Invalid comparator: ${n}`);let i=r[1]===`=`?``:r[1]||``,a=r[2]?ar(r[2],t):null;return{operator:i,options:t,value:a?`${i}${ir(a)}`:``,version:a}}function ur(e){return e.sets.map(e=>e.map(cr).join(` `)).join(`||`)}var dr=new RegExp(Un,`g`),fr=Q(Un),pr=Q(String.raw`^\s*(${Yn})\s+-\s+(${Yn})\s*$`),mr=Q(String.raw`^\s*(${Xn})\s+-\s+(${Xn})\s*$`),hr=Q(String.raw`(\s*)${Kn}\s*(${Gn}|${Yn})`,`g`),gr=Q(String.raw`(\s*)${Zn}\s+`,`g`),_r=Q(String.raw`(\s*)${Qn}\s+`,`g`),vr=Q(`^${Zn}${Yn}$`),yr=Q(`^${Zn}${Xn}$`),br=Q(`^${Qn}${Yn}$`),xr=Q(`^${Qn}${Xn}$`),Sr=Q(String.raw`^${Kn}\s*${Yn}$`),Cr=Q(String.raw`^${Kn}\s*${Xn}$`),wr=Q(String.raw`(<|>)?=?\s*\*`),Tr=/^\s*>=\s*0\.0\.0\s*$/,Er=/^\s*>=\s*0\.0\.0-0\s*$/,Dr=Q(String.raw`^${Kn}\s*(${Gn})$|^$`);function $(e){return!e||String(e).toLowerCase()===`x`||String(e)===`*`}function Or(e,t,n){return $(e)&&!$(t)||$(t)&&!!n&&!$(n)}function kr(e,t){let n=t.loose?yr:vr,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 Ar(e,t){return e.trim().split(/\s+/).map(e=>kr(e,t)).join(` `)}function jr(e,t){let n=t.loose?xr:br,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 Mr(e,t){return e.trim().split(/\s+/).map(e=>jr(e,t)).join(` `)}function Nr(e,t){let n=t.loose?Cr:Sr;return e.trim().replace(n,(n,r,i,a,o)=>{let s=r,c=i,l=a,u=o;if(Or(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 Pr(e,t){return e.split(/\s+/).map(e=>Nr(e,t)).join(` `)}function Fr(e,t){let n=t.loose?mr:pr;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 Ir(e,t){return Pr(Ar(Mr(e.replace(fr,``),t),t),t).trim().replace(wr,``)}function Lr(e,t){let n=Fr(e.replace(dr,``),t).replace(hr,`$1$2$3`).replace(gr,`$1~`).replace(_r,`$1^`).split(` `).map(e=>Ir(e,t)).join(` `).split(/\s+/).map(e=>e.trim().replace(t.includePrerelease?Er:Tr,``));t.loose&&(n=n.filter(e=>Dr.test(e)));let r=new Map;for(let e of n.map(e=>lr(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 Rr(e,t={}){if(typeof e!=`string`)return e;let n={...t},r=e.trim().replaceAll(/\s+/g,` `),i=r.split(`||`).map(e=>Lr(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 zr(e,t={}){try{return Rr(e,t)}catch{return null}}function Br(e,t={}){let n=zr(e,t);return n?ur(n)||`*`:null}var Vr=e=>{let t=e.trim();if(t.startsWith(`git@`)){let e=t.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(e)return`https://${e[1]}/${e[2]}`}if(t.startsWith(`ssh://`))try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`.replace(/\/+$/,``).replace(/\.git$/,``)}catch{return t.replace(/\/+$/,``).replace(/\.git$/,``)}return t.replace(/\/+$/,``).replace(/\.git$/,``)},Hr=(e,t)=>{if(!e?.trim())return null;let n=Vr(e);try{let{hostname:e}=new URL(n);if(e.includes(`gitlab`))return`${n}/-/commit/${t}`;if(e.includes(`bitbucket`))return`${n}/commits/${t}`}catch{}return`${n}/commit/${t}`};function Ur({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 Wr({bundle:e,release:t}){let{data:n,isFetched:r}=we(),i=e?Wt(e):null,a=e?Ut(e):null,o=e?.gitCommitHash&&r?Hr(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)(Ye,{children:[(0,Z.jsx)(Qe,{className:`p-4 pb-3`,children:(0,Z.jsx)(Ge,{className:`text-sm font-medium`,children:`Metadata`})}),(0,Z.jsx)(Ze,{className:`px-4 pb-4`,children:(0,Z.jsxs)(`dl`,{className:`flex flex-col gap-3 text-sm`,children:[(0,Z.jsx)(Ur,{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)(Ur,{label:`Git commit`,value:(0,Z.jsxs)(`div`,{className:`flex items-center justify-start gap-1 sm:justify-end`,children:[(0,Z.jsx)(vt,{className:o?`text-primary`:void 0,maxLength:12,value:e.gitCommitHash}),o?(0,Z.jsx)(`a`,{"aria-label":`Open git commit`,className:`shrink-0 text-primary hover:underline`,href:o,rel:`noopener noreferrer`,target:`_blank`,children:(0,Z.jsx)(pn,{"aria-hidden":`true`})}):null]})}):null,e?.manifestFileHash?(0,Z.jsx)(Ur,{label:`Manifest hash`,value:(0,Z.jsx)(vt,{maxLength:16,value:e.manifestFileHash})}):null,a?(0,Z.jsx)(Ur,{label:`Base hash`,value:(0,Z.jsx)(vt,{maxLength:16,value:a})}):null,i?(0,Z.jsx)(Ur,{label:`Patch hash`,value:(0,Z.jsx)(vt,{maxLength:16,value:i})}):null]})})]}):null}var Gr=Array.from({length:Ht},(e,t)=>t+1);function Kr({releaseId:e,rolloutCohortCount:t,targetCohorts:n}){let r=Gt(t),a=n??[],o=a.length>0,s=r>0&&r<1e3,c=r===Ht,l=le(),u=c?Gr:s?Gr.filter(t=>qt(e,t)<r):[],d=(r/10).toFixed(1),f=c?Ht:u.length,p=Ht-f,m=(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)(Ye,{children:(0,Z.jsxs)(Qe,{className:`p-4`,children:[(0,Z.jsx)(We,{children:`Selected cohorts`}),(0,Z.jsx)(Ge,{className:`font-mono text-2xl tabular-nums`,children:f})]})}),(0,Z.jsx)(Ye,{children:(0,Z.jsxs)(Qe,{className:`p-4`,children:[(0,Z.jsx)(We,{children:`Excluded cohorts`}),(0,Z.jsx)(Ge,{className:`font-mono text-2xl tabular-nums`,children:p})]})})]}),o?(0,Z.jsxs)(Ye,{children:[(0,Z.jsxs)(Qe,{className:`p-4 pb-3`,children:[(0,Z.jsx)(Ge,{className:`text-sm`,children:`Additional cohorts`}),(0,Z.jsx)(We,{children:`Always included in addition to the percentage rollout.`})]}),(0,Z.jsx)(Ze,{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:a.map(e=>(0,Z.jsx)(K,{className:`max-w-full font-mono`,variant:`secondary`,children:(0,Z.jsx)(`span`,{className:`truncate`,children:e})},e))})})]}):null,(0,Z.jsxs)(Ye,{children:[(0,Z.jsx)(Qe,{className:`p-4 pb-3`,children:(0,Z.jsx)(Ge,{className:`text-sm`,children:`Numeric cohorts`})}),(0,Z.jsx)(Ze,{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:u.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:u.map(e=>(0,Z.jsx)(K,{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)(Ot,{children:[(0,Z.jsxs)(Dt,{render:(0,Z.jsx)(i,{size:`sm`,type:`button`,variant:`outline`}),children:[(0,Z.jsx)(yt,{"data-icon":`inline-start`}),`Preview cohorts`]}),(0,Z.jsx)(wt,{className:l?`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:l?(0,Z.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden`,children:[(0,Z.jsxs)(bt,{className:`shrink-0 border-b border-border/70 px-4 py-4`,children:[(0,Z.jsx)(Tt,{children:`Rolled out cohorts`}),(0,Z.jsxs)(Et,{children:[d,`% includes `,f,` of`,` `,Ht,` numeric cohorts.`,o?` Additional cohorts are always included.`:``]})]}),(0,Z.jsx)(`div`,{className:`flex-1 overflow-y-auto overscroll-contain px-4 py-4`,children:m}),(0,Z.jsx)(St,{className:`shrink-0 border-t border-border/70 px-4 py-3`,showCloseButton:!0})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(bt,{children:[(0,Z.jsx)(Tt,{children:`Rolled out cohorts`}),(0,Z.jsxs)(Et,{children:[d,`% includes `,f,` of`,` `,Ht,` numeric cohorts.`,o?` Additional cohorts are always included.`:``]})]}),m,(0,Z.jsx)(St,{showCloseButton:!0})]})})]})}function qr(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function Jr(e,t){return e-t}function Yr(e,t,n){let r=e.slice();return r[t]=n,r.sort(Jr)}function Xr(e,t,n,r,i,a){let o=e;return o=q(o,n,r),i&&(o=Yr(a,t,q(o,a[t-1]||-1/0,a[t+1]||1/0))),o}function Zr(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 Qr={activeThumbIndex:()=>null,max:()=>null,min:()=>null,minStepsBetweenValues:()=>null,step:()=>null,values:()=>null,...it},$r=X.createContext(void 0);function ei(){let e=X.useContext($r);if(e===void 0)throw Error(l(62));return e}function ti(e){return`key`in e?k:ne}function ni(e,t){return typeof e==`number`&&typeof t==`number`?e===t:Array.isArray(e)&&Array.isArray(t)?qr(e,t):!1}var ri=X.forwardRef(function(e,t){let{"aria-labelledby":r,className:i,defaultValue:o,disabled:s=!1,id:c,format:l,largeStep:u=10,locale:d,render:f,max:p=100,min:m=0,minStepsBetweenValues:h=0,form:g,name:_,onValueChange:v,onValueCommitted:y,orientation:b=`horizontal`,step:x=1,thumbCollisionBehavior:w=`push`,thumbAlignment:T=`center`,value:te,style:ne,...D}=e,re=j(c),ae=lt(re),oe=E(v),se=E(y),{clearErrors:ce}=dt(),{state:le,disabled:O,name:k,setTouched:ue,setDirty:de,validityData:fe,shouldValidateOnChange:me,validation:A}=tt(),{labelId:he}=rt(),[ge,_e]=X.useState(),N=r??ut(he,ge),P=O||s,F=k??_,[I,be]=ye({controlled:te,default:o??m,name:`Slider`}),L=X.useRef(null),R=X.useRef(null),z=X.useRef([]),Se=X.useRef(null),B=X.useRef(null),Ce=X.useRef(-1),V=X.useRef(null),H=X.useRef(null),we=X.useRef(`none`),Te=pe(l),[U,Ee]=X.useState(-1),[De,Oe]=X.useState(-1),[ke,Ae]=X.useState(!1),[je,Me]=X.useState(()=>new Map),[Ne,Pe]=X.useState([void 0,void 0]),Fe=E(e=>{Ee(e),e!==-1&&Oe(e)});nt(R,re,I),M(I,()=>{ce(F),me()?A.commit(I):A.commit(I,!0);let e=fe.initialValue,t;t=Array.isArray(I)&&Array.isArray(e)?!qr(I,e):I!==e,de(t)});let Ie=E(e=>{e&&(R.current=e)}),Le=Array.isArray(I),Re=X.useMemo(()=>Le?I.slice().sort(Jr):[q(I,m,p)],[p,m,Le,I]),W=E((e,t)=>{if(Number.isNaN(e)||ni(e,I))return;let n=t??ee(`none`,void 0,void 0,{activeThumbIndex:-1});we.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:F}}),n.event=i,H.current=e,oe(e,n),!n.isCanceled&&be(e)}),ze=E((e,t,n)=>{let r=Xr(e,t,m,p,Le,Re);if(Zr(r,x,h)){let e=ti(n);W(r,ee(e,n.nativeEvent,void 0,{activeThumbIndex:t})),ue(!0),se(H.current??r,C(e,n.nativeEvent))}});S(()=>{let e=ve(a(L.current));P&&ie(L.current,e)&&e.blur()},[P]),P&&U!==-1&&Fe(-1);let G=X.useMemo(()=>({...le,activeThumbIndex:U,disabled:P,dragging:ke,orientation:b,max:p,min:m,minStepsBetweenValues:h,step:x,values:Re}),[le,U,P,ke,p,m,h,b,x,Re]),Be=X.useMemo(()=>({active:U,controlRef:R,disabled:P,dragging:ke,validation:A,formatOptionsRef:Te,handleInputChange:ze,indicatorPosition:Ne,inset:T!==`center`,labelId:N,rootLabelId:ae,largeStep:u,lastUsedThumbIndex:De,lastChangedValueRef:H,lastChangeReasonRef:we,form:g,locale:d,max:p,min:m,minStepsBetweenValues:h,name:F,onValueCommitted:se,orientation:b,pressedInputRef:Se,pressedThumbCenterOffsetRef:B,pressedThumbIndexRef:Ce,pressedValuesRef:V,registerFieldControlRef:Ie,renderBeforeHydration:T===`edge`,setActive:Fe,setDragging:Ae,setIndicatorPosition:Pe,setLabelId:_e,setValue:W,state:G,step:x,thumbCollisionBehavior:w,thumbMap:je,thumbRefs:z,values:Re}),[U,R,N,ae,P,ke,A,Te,ze,Ne,u,De,H,we,g,d,p,m,h,F,se,b,Se,B,Ce,V,Ie,Fe,Ae,Pe,_e,W,G,x,w,T,je,z,Re]),Ve=n(`div`,e,{state:G,ref:[t,L],props:[{"aria-labelledby":N,id:re,role:`group`},A.getValidationProps,D],stateAttributesMapping:Qr});return(0,Z.jsx)($r.Provider,{value:Be,children:(0,Z.jsx)(xe,{elementsRef:z,onMapChange:Me,children:Ve})})});function ii(e){let t=e.getBoundingClientRect();return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function ai(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 oi(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Math.max(ai(t),ai(n))))}function si({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]=q(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]=q(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]=q(a,n,t)}for(let e=0;e<=u;e+=1)c[e]=Number(c[e].toFixed(12));return c}function ci({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=q(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=si({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=q(h,n,r);C[w]=Number(i.toFixed(12))}return{value:C,thumbIndex:b,didSwap:!0}}case`push`:return{value:si({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=q(a,t==null?o:t+f,n==null?s:n-f);return e[i]=Number(r.toFixed(12)),{value:e,thumbIndex:i,didSwap:!1}}}}var li=2;function ui(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 di(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 fi=X.forwardRef(function(e,r){let{render:i,className:o,style:s,...c}=e,{disabled:l,dragging:f,inset:p,lastChangedValueRef:m,lastChangeReasonRef:h,max:g,min:_,minStepsBetweenValues:v,onValueCommitted:y,orientation:b,pressedInputRef:x,pressedThumbCenterOffsetRef:S,pressedThumbIndexRef:w,pressedValuesRef:T,registerFieldControlRef:te,renderBeforeHydration:ne,setActive:D,setDragging:re,setValue:ae,state:se,step:ce,thumbCollisionBehavior:le,thumbRefs:O,values:k}=ei(),fe=ue(),me=k.length>1,A=b===`vertical`,j=X.useRef(null),ge=X.useRef(null),_e=E(e=>{e&&ge.current==null&&(ge.current=t(e).getComputedStyle(e))}),M=X.useRef(null),P=X.useRef(0),F=X.useRef(0),ye=pe(k);function I(e){w.current!==e&&(w.current=e);let t=O.current[e];if(!t){S.current=null,x.current=null;return}x.current=t.querySelector(`input[type="range"]`)}function be(e){let t=j.current;if(!t)return null;let{width:n,height:r,bottom:i,left:a,right:o}=t.getBoundingClientRect(),s=ui(ge.current,A),c=F.current,l=(A?r:n)-s.start-s.end-c*2,u=S.current??0,d=e.x-u,f=e.y-u,p=q(((A?i-f-s.end:(fe===`rtl`?o-d:d-a)-s.start)-c)/l,0,1),m=(g-_)*p+_;if(m=oi(m,ce,_),m=q(m,_,g),!me)return{value:m,thumbIndex:0,didSwap:!1};let h=w.current;if(h<0)return null;let y=ci({behavior:le,values:k,currentValues:ye.current??k,initialValues:T.current,pressedIndex:h,nextValue:m,min:_,max:g,step:ce,minStepsBetweenValues:v});return le===`swap`&&y.didSwap?I(y.thumbIndex):w.current=y.thumbIndex,y}function xe(e){T.current=me?k.slice():null,ye.current=k;let t=w.current,n=t;if(t>-1&&t<k.length){if(k[t]===g){let e=t;for(;e>0&&k[e-1]===g;)--e;n=e}}else{let t=A?`y`:`x`,r;n=-1;for(let i=0;i<O.current.length;i+=1){let a=O.current[i];if(oe(a)){let o=ii(a),s=Math.abs(e[t]-o[t]);(r===void 0||s<=r)&&(n=i,r=s)}}}if(n>-1&&n!==t&&I(n),p){let e=O.current[n];oe(e)&&(F.current=e.getBoundingClientRect()[A?`height`:`width`]/2)}}function L(e){let t=O.current?.[e]?.querySelector(`input[type="range"]`);t&&t.focus({preventScroll:!0,focusVisible:!1})}let R=E(e=>{let t=di(e,M);if(t==null)return;if(P.current+=1,e.type===`pointermove`&&e.buttons===0){z(e);return}let n=be(t);n!=null&&Zr(n.value,ce,v)&&(!f&&P.current>li&&re(!0),ae(n.value,ee(he,e,void 0,{activeThumbIndex:n.thumbIndex})),ye.current=Array.isArray(n.value)?n.value:[n.value],n.didSwap&&L(n.thumbIndex))});function z(e){D(-1),re(!1),x.current=null,S.current=null;let t=di(e,M),n=t==null?null:be(t);if(n!=null){let t=h.current;y(m.current??n.value,C(t,e))}`pointerType`in e&&j.current?.hasPointerCapture(e.pointerId)&&j.current?.releasePointerCapture(e.pointerId),w.current=-1,M.current=null,T.current=null,B()}let Se=E(e=>{if(l)return;let t=e.changedTouches[0];t!=null&&(M.current=t.identifier);let n=di(e,M);if(n!=null){xe(n);let t=be(n);if(t==null)return;L(t.thumbIndex),ae(t.value,ee(de,e,void 0,{activeThumbIndex:t.thumbIndex})),ye.current=Array.isArray(t.value)?t.value:[t.value],t.didSwap&&L(t.thumbIndex)}P.current=0;let r=a(j.current);r.addEventListener(`touchmove`,R,{passive:!0}),r.addEventListener(`touchend`,z,{passive:!0})}),B=E(()=>{let e=a(j.current);e.removeEventListener(`pointermove`,R),e.removeEventListener(`pointerup`,z),e.removeEventListener(`touchmove`,R),e.removeEventListener(`touchend`,z),T.current=null}),Ce=d();return X.useEffect(()=>{let e=j.current;if(!e)return()=>B();let t=u(e,`touchstart`,Se,{passive:!0});return()=>{t(),Ce.cancel(),B()}},[B,Se,j,Ce]),X.useEffect(()=>{l&&B()},[l,B]),n(`div`,e,{state:se,ref:[r,te,j,_e],props:[{"data-base-ui-slider-control":ne?``:void 0,onPointerDown(e){let t=j.current,n=N(e.nativeEvent);if(!t||l||e.defaultPrevented||!oe(n)||e.button!==0)return;let r=di(e,M);if(r!=null){xe(r);let n=be(r);if(n==null)return;ie(O.current[n.thumbIndex],ve(a(t)))?e.preventDefault():Ce.request(()=>{L(n.thumbIndex)}),re(!0),S.current??(ae(n.value,ee(de,e.nativeEvent,void 0,{activeThumbIndex:n.thumbIndex})),ye.current=Array.isArray(n.value)?n.value:[n.value],n.didSwap&&L(n.thumbIndex))}e.nativeEvent.pointerId&&t.setPointerCapture(e.nativeEvent.pointerId),P.current=0;let i=a(j.current);i.addEventListener(`pointermove`,R,{passive:!0}),i.addEventListener(`pointerup`,z,{once:!0})}},c],stateAttributesMapping:Qr})}),pi=X.forwardRef(function(e,t){let{render:r,className:i,style:a,...o}=e,{state:s}=ei();return n(`div`,e,{state:s,ref:t,props:[{style:{position:`relative`}},o],stateAttributesMapping:Qr})}),mi=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}({}),hi=new Set([...f,_,o]);function gi(e,t,n,r){if(!(t<0))return e.length===2?t===0?`${un(e[t],r,n)} start range`:`${un(e[t],r,n)} end range`:n?un(e[t],r,n):void 0}function _i(e,t,n,r,i){let a=n===1?e+t:e-t;return q(Number(a.toFixed(Math.max(ai(e),ai(t),ai(r)))),r,i)}var vi=X.forwardRef(function(e,i){let{render:a,children:c,className:l,"aria-describedby":u,"aria-label":d,"aria-labelledby":p,disabled:v=!1,getAriaLabel:y,getAriaValueText:C,id:ee,index:T,inputRef:te,onBlur:ne,onFocus:D,onKeyDown:re,tabIndex:ie,style:ae,...oe}=e,{nonce:se}=ot(),ce=j(ee),{active:le,lastUsedThumbIndex:O,controlRef:k,disabled:de,validation:fe,formatOptionsRef:pe,handleInputChange:me,inset:A,labelId:he,largeStep:ge,locale:M,max:N,min:P,minStepsBetweenValues:ve,form:F,name:ye,orientation:be,pressedInputRef:xe,pressedThumbCenterOffsetRef:L,pressedThumbIndexRef:R,renderBeforeHydration:z,setActive:Se,setIndicatorPosition:B,state:Ce,step:V,values:H}=ei(),we=ue(),Te=v||de,U=H.length>1,Ee=be===`vertical`,De=we===`rtl`,{setTouched:Oe,setFocused:ke,validationMode:Ae}=tt(),je=X.useRef(null),Me=X.useRef(null),Ne=X.useRef(!1),Pe=j(),Fe=st(),Ie=U?Pe:Fe,{ref:Le,index:Re}=I({metadata:X.useMemo(()=>({inputId:Ie}),[Ie])}),W=U?T??Re:0,ze=W===H.length-1,G=H[W],Be=dn(G,P,N),[Ve,He]=X.useState(),Ue=Cn(),We=O>=0&&O<H.length?O:-1,Ge=E(()=>{let e=k.current,t=je.current;if(!e||!t)return;let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=Ee?`height`:`width`,a=r[i]-n[i],o=(n[i]/2+a*Be/100)/r[i]*100,s=Number.isFinite(o)?o:void 0;He(s),W===0?B(e=>[s,e[1]]):ze&&B(e=>[e[0],s])});S(()=>{A&&queueMicrotask(Ge)},[Ge,A]),S(()=>{A&&Ge()},[Ge,A,Be]),S(()=>{if(!A)return;let e=k.current,n=je.current;if(!e||!n)return;let r=t(e).ResizeObserver;if(typeof r!=`function`)return;let i=new r(Ge);return i.observe(e),i.observe(n),()=>{i.disconnect()}},[k,Ge,A]);let Ke=Ee?`bottom`:`insetInlineStart`,qe=Ee?`left`:`top`,Je;U?le===W?Je=2:We===W&&(Je=1):le===W&&(Je=1);let Ye;Ye=A?{"--position":`${Ve??0}%`,visibility:z&&Ue||Ve===void 0?`hidden`:void 0,position:`absolute`,[Ke]:`var(--position)`,[qe]:`50%`,translate:`${(Ee||!De?-1:1)*50}% ${(Ee?1:-1)*50}%`,zIndex:Je}:Number.isFinite(Be)?{position:`absolute`,[Ke]:`${Be}%`,[qe]:`50%`,translate:`${(Ee||!De?-1:1)*50}% ${(Ee?1:-1)*50}%`,zIndex:Je}:b;let Xe;be===`vertical`&&(Xe=De?`vertical-rl`:`vertical-lr`);let Ze=typeof y==`function`?y(W):d,K=w({"aria-label":Ze,"aria-labelledby":p??(Ze==null?he:void 0),"aria-describedby":u,"aria-orientation":be,"aria-valuenow":G,"aria-valuetext":typeof C==`function`?C(un(G,M,pe.current??void 0),G,W):gi(H,W,pe.current??void 0,M),disabled:Te,form:F,id:Ie,max:N,min:P,name:ye,onChange(e){me(e.currentTarget.valueAsNumber,W,e)},onFocus(e){let t=Ne.current;Ne.current=!1,Se(W),ke(!0),t&&e.stopPropagation()},onBlur(e){if(Ne.current){e.stopPropagation();return}je.current&&(Se(-1),Oe(!0),ke(!1),Ae===`onBlur`&&fe.commit(Xr(G,W,P,N,U,H)))},onKeyDown(e){if(!hi.has(e.key))return;f.has(e.key)&&e.stopPropagation();let t=null,n=oi(G,V,P);switch(e.key){case s:t=_i(n,e.shiftKey?ge:V,1,P,N);break;case r:t=_i(n,e.shiftKey?ge:V,De?-1:1,P,N);break;case m:t=_i(n,e.shiftKey?ge:V,-1,P,N);break;case h:t=_i(n,e.shiftKey?ge:V,De?1:-1,P,N);break;case _:t=_i(n,ge,1,P,N);break;case o:t=_i(n,ge,-1,P,N);break;case`End`:t=N,U&&(t=Number.isFinite(H[W+1])?H[W+1]-V*ve:N);break;case g:t=P,U&&(t=Number.isFinite(H[W-1])?H[W-1]+V*ve:P);break;default:break}if(t!==null){let n=e.currentTarget;_e(n)||(Ne.current=!0,n.blur(),n.focus({preventScroll:!0,focusVisible:!0})),me(t,W,e),e.preventDefault()}},step:V,style:{...b,width:`100%`,height:`100%`,writingMode:Xe},tabIndex:ie??void 0,type:`range`,value:G??``},fe.getInputValidationProps),Qe=x(Me,fe.inputRef,te);return n(`div`,e,{state:Ce,ref:[i,Le,je],props:[{[mi.index]:W,children:(0,Z.jsxs)(X.Fragment,{children:[c,(0,Z.jsx)(`input`,{ref:Qe,...K,suppressHydrationWarning:!0}),A&&Ue&&z&&ze&&(0,Z.jsx)(`script`,{nonce:se,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:ce,onBlur:ne,onFocus:D,onPointerDown(e){if(R.current=W,je.current!=null){let t=be===`horizontal`?`x`:`y`,n=ii(je.current);L.current=(be===`horizontal`?e.clientX:e.clientY)-n[t]}Me.current!=null&&xe.current!==Me.current&&(xe.current=Me.current)},style:Ye,suppressHydrationWarning:z||void 0},oe],stateAttributesMapping:Qr})});function yi(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 bi(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:r,className:i,style:a,...o}=e,{indicatorPosition:s,inset:c,max:l,min:u,orientation:d,renderBeforeHydration:f,state:p,values:m}=ei(),h=Cn(),g=d===`vertical`,_=m.length>1,v=c?yi(g,_,s[0],s[1],f,h):bi(g,_,dn(m[0],u,l),dn(m[m.length-1],u,l));return n(`div`,e,{state:p,ref:t,props:[{"data-base-ui-slider-indicator":f?``:void 0,style:v,suppressHydrationWarning:f||void 0},o],stateAttributesMapping:Qr})});function Si({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)(ri,{className:p(`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)(fi,{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)(pi,{"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)(vi,{"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 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-disabled:pointer-events-none data-disabled:opacity-50`},t))]})})}var Ci=[{label:`Move bundle`,value:`move`},{label:`Copy bundle`,value:`copy`}],wi=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]}),Ti=(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}),Ei=e=>(e/10).toFixed(1),Di=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},Oi=e=>{let t=Number.parseFloat(e);return Number.isFinite(t)?Math.min(1e3,Math.max(0,Math.trunc(t*10))):null};function ki({value:e,onChange:t}){let[n,r]=(0,X.useState)(Ei(e)),[i,a]=(0,X.useState)(!1);return(0,X.useEffect)(()=>{i||r(Ei(e))},[i,e]),(0,Z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,Z.jsx)(Si,{"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)(Pt,{className:`w-24 shrink-0`,children:[(0,Z.jsx)(At,{"aria-label":`Rollout percentage`,autoComplete:`off`,className:`text-right tabular-nums`,id:`release-rollout-percentage`,inputMode:`decimal`,name:`rolloutPercentage`,onBlur:()=>{let i=Oi(n)??e;a(!1),r(Ei(i)),t(i)},onChange:e=>{let n=Di(e.target.value);r(n);let i=Oi(n);i!==null&&t(i)},onFocus:()=>a(!0),value:n}),(0,Z.jsx)(jt,{align:`inline-end`,children:(0,Z.jsx)(kt,{children:`%`})})]})]})}function Ai({channels:t,onOpenChange:n,onShowScope:r,open:a,releaseId:o}){let s=Ee(o),c=s.data,l=Pe(c?.bundle_id??``),u=l.data,d=u?Zt(u):null,f=U(c?.scope_key??``),p=Ae(),m=ke(),h=Te(),g=Le(),[_,v]=(0,X.useState)(null),[y,b]=(0,X.useState)(``),[x,S]=(0,X.useState)(``),[C,w]=(0,X.useState)(!1),[ee,E]=(0,X.useState)(!1),[ne,D]=(0,X.useState)(!1),[ie,ae]=(0,X.useState)(``),[oe,le]=(0,X.useState)(`move`);(0,X.useEffect)(()=>{v(c?wi(c):null),S(``)},[c]);let k=c?wi(c):null,ue=_!==null&&k!==null&&JSON.stringify(_)!==JSON.stringify(k),de=m.isPending||p.isPending||h.isPending||g.isPending,fe=()=>{if(!de){if(ue){w(!0);return}n(!1)}},pe=()=>{if(!_)return;let e=Kt(y);if(!Jt(e)){S(Xt);return}v({..._,targetCohorts:Array.from(new Set([..._.targetCohorts,e]))}),b(``),S(``)},me=async()=>{if(!c||!_)return;let e=_.targetCohorts.map(Kt);if(e.some(e=>!Jt(e))){S(Xt);return}if(c.strategy===`APP_VERSION`&&!Br(_.targetAppVersion.trim())){S(`Enter a valid target app version range.`);return}let t={expectedRevision:c.revision,patch:Ti(c,{..._,targetCohorts:e}),releaseId:c.id};S(``);try{await m.mutateAsync(t),await p.mutateAsync(t),Bt.success(`Bundle settings saved`),n(!1)}catch(e){S(e instanceof Error?e.message:`Bundle settings could not be saved.`)}},A=t.find(e=>e.id===c?.channel_id)?.name??c?.channel_id,he=t.filter(e=>e.id!==c?.channel_id),j=he.map(e=>({label:e.name,value:e.name})),_e=ie.trim(),M=oe===`copy`,N=_?Br(_.targetAppVersion.trim()):null,ve=()=>{ae(``),le(`move`)},F=e=>{!e&&g.isPending||(D(e),e||ve())};return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ce,{onOpenChange:e=>e?void 0:fe(),open:a,children:(0,Z.jsxs)(te,{className:`min-w-0 overflow-hidden data-[side=right]:w-full sm:max-w-[600px]`,children:[(0,Z.jsxs)(P,{className:`shrink-0 pr-12`,children:[(0,Z.jsx)(re,{children:`Bundle Detail`}),(0,Z.jsx)(ge,{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)(at,{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)(ln,{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:A})]}),(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)(Je,{className:`m-4 sm:m-6`,variant:`destructive`,children:[(0,Z.jsx)(Ke,{}),(0,Z.jsx)(Ue,{children:`Bundle details could not be loaded`}),(0,Z.jsx)(qe,{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:[A?(0,Z.jsx)(Re,{release:{platform:c.platform,channel:A,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)(en,{className:`gap-6`,children:[(0,Z.jsxs)(rn,{children:[(0,Z.jsx)(Qt,{htmlFor:`release-message`,children:`Message`}),(0,Z.jsx)(Mt,{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)(rn,{children:[(0,Z.jsx)(Qt,{htmlFor:`release-target`,children:`Target app version`}),(0,Z.jsx)(T,{autoComplete:`off`,id:`release-target`,name:`targetAppVersion`,onChange:e=>v({..._,targetAppVersion:e.target.value}),value:_.targetAppVersion}),N?(0,Z.jsx)(tn,{children:N}):null]}):null,(0,Z.jsx)(rn,{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)(Qt,{htmlFor:`release-enabled`,children:`Enabled`}),(0,Z.jsx)(Vt,{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)(zt,{"aria-label":`Enabled`,checked:_.enabled,id:`release-enabled`,name:`enabled`,onCheckedChange:e=>v({..._,enabled:e})})]})}),(0,Z.jsx)(rn,{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)(Qt,{htmlFor:`release-force-update`,children:`Force update`}),(0,Z.jsx)(Vt,{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)(zt,{"aria-label":`Force update`,checked:_.shouldForceUpdate,id:`release-force-update`,name:`shouldForceUpdate`,onCheckedChange:e=>v({..._,shouldForceUpdate:e})})]})}),(0,Z.jsxs)(rn,{children:[(0,Z.jsx)(Qt,{htmlFor:`release-rollout-percentage`,children:`Rollout percentage`}),(0,Z.jsx)(ki,{onChange:e=>v({..._,rolloutCohortCount:e}),value:_.rolloutCohortCount})]}),(0,Z.jsxs)(rn,{children:[(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,Z.jsx)(Qt,{htmlFor:`release-cohort`,children:`Additional cohorts (optional)`}),(0,Z.jsx)(Kr,{releaseId:c.id,rolloutCohortCount:_.rolloutCohortCount,targetCohorts:_.targetCohorts})]}),(0,Z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Z.jsx)(T,{autoComplete:`off`,id:`release-cohort`,name:`targetCohort`,onChange:e=>b(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),pe())},placeholder:`e.g. qa-team…`,value:y}),(0,Z.jsx)(i,{"aria-label":`Add cohort`,disabled:!y.trim(),onClick:pe,size:`icon`,type:`button`,variant:`outline`,children:(0,Z.jsx)(xt,{})})]}),_.targetCohorts.length?(0,Z.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:_.targetCohorts.map(e=>(0,Z.jsxs)(K,{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)(O,{className:`size-3`})})]},e))}):null,(0,Z.jsx)(tn,{children:`Public names—no IDs or secrets.`})]})]}),x?(0,Z.jsx)(nn,{children:x}):null,(0,Z.jsx)(i,{className:`w-full`,disabled:!ue||de,onClick:me,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)(i,{className:`w-full`,disabled:!c.bundle_id||de,onClick:()=>D(!0),size:`sm`,variant:`outline`,children:`Promote to channel`}),c.bundle_id?(0,Z.jsxs)(i,{className:`w-full`,disabled:de,onClick:()=>{window.open(`/api/bundles/${encodeURIComponent(c.bundle_id)}/download`,`_blank`,`noopener,noreferrer`),Bt.success(`Bundle download started`)},size:`sm`,variant:`outline`,children:[(0,Z.jsx)(_t,{"data-icon":`inline-start`}),`Download manifest`]}):null,(0,Z.jsx)(i,{className:`w-full`,disabled:c.enabled||de,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)(Je,{variant:`destructive`,children:[(0,Z.jsx)(Ke,{}),(0,Z.jsx)(Ue,{children:`Build details are unavailable`}),(0,Z.jsx)(qe,{children:`Delivery settings are unaffected.`})]}):null,!c.bundle_id||!l.isPending?(0,Z.jsx)(Wr,{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}),r?(0,Z.jsx)(i,{className:`mt-1 h-auto px-0 text-xs`,onClick:()=>r(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)(H,{onOpenChange:w,open:C,children:(0,Z.jsxs)(R,{children:[(0,Z.jsxs)(V,{children:[(0,Z.jsx)(z,{children:`Discard unsaved changes?`}),(0,Z.jsx)(L,{children:`Your Bundle changes will be lost.`})]}),(0,Z.jsxs)(B,{children:[(0,Z.jsx)(Ce,{children:`Keep editing`}),(0,Z.jsx)(Se,{onClick:()=>{w(!1),n(!1)},variant:`destructive`,children:`Discard changes`})]})]})}),(0,Z.jsx)(H,{onOpenChange:E,open:ee,children:(0,Z.jsxs)(R,{children:[(0,Z.jsxs)(V,{children:[(0,Z.jsxs)(z,{children:[`Remove this Bundle from `,A??`the channel`,`?`]}),(0,Z.jsx)(L,{children:`The uploaded artifact stays available. This only removes the Bundle from the channel.`})]}),(0,Z.jsxs)(B,{children:[(0,Z.jsx)(Ce,{children:`Cancel`}),(0,Z.jsx)(Se,{onClick:async()=>{if(c)try{await h.mutateAsync({expectedRevision:c.revision,releaseId:c.id}),Bt.success(`Bundle removed from ${A??`the channel`}`),E(!1),n(!1)}catch(e){S(e instanceof Error?e.message:`Bundle could not be removed from the channel.`)}},variant:`destructive`,children:`Remove from channel`})]})]})}),(0,Z.jsx)(Ot,{onOpenChange:F,open:ne,children:(0,Z.jsxs)(wt,{showCloseButton:!g.isPending,children:[(0,Z.jsxs)(bt,{children:[(0,Z.jsx)(Tt,{children:`Promote to Channel`}),(0,Z.jsx)(Et,{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)($t,{htmlFor:`promote-action`,children:`Action`}),(0,Z.jsxs)(gt,{disabled:g.isPending,items:Ci,onValueChange:e=>le(e),value:oe,children:[(0,Z.jsx)(ct,{className:`w-full`,id:`promote-action`,children:(0,Z.jsx)(mt,{placeholder:`Select an action`})}),(0,Z.jsx)(pt,{children:(0,Z.jsxs)(ht,{children:[(0,Z.jsx)(ft,{value:`move`,children:`Move bundle`}),(0,Z.jsx)(ft,{value:`copy`,children:`Copy bundle`})]})})]}),(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:M?`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)($t,{htmlFor:`target-channel`,children:`Target Channel`}),(0,Z.jsxs)(gt,{disabled:g.isPending,items:j,onValueChange:e=>ae(e??``),value:ie||null,children:[(0,Z.jsx)(ct,{className:`w-full`,id:`target-channel`,children:(0,Z.jsx)(mt,{placeholder:`Select a channel`})}),(0,Z.jsx)(pt,{className:`max-h-64`,children:(0,Z.jsx)(ht,{children:he.map(e=>(0,Z.jsx)(ft,{value:e.name,children:e.name},e.id))})})]})]})]}),(0,Z.jsxs)(St,{children:[(0,Z.jsx)(i,{disabled:g.isPending,onClick:()=>F(!1),variant:`outline`,children:`Cancel`}),(0,Z.jsx)(i,{disabled:!_e||g.isPending,onClick:async()=>{if(c)try{await g.mutateAsync({action:oe,expectedRevision:c.revision,releaseId:c.id,targetChannel:_e}),F(!1),Bt.success(M?`Bundle copied to ${_e}`:`Bundle moved to ${_e}`)}catch(e){Bt.error(e instanceof Error?e.message:`Bundle could not be promoted.`)}},children:g.isPending?M?`Copying…`:`Moving…`:M?`Copy`:`Move`})]})]})})]})}function ji({release:e}){return(0,Z.jsxs)(K,{className:`gap-1 font-normal text-muted-foreground`,variant:e.enabled?`outline`:`secondary`,children:[e.enabled?(0,Z.jsx)(Xe,{className:`size-3`}):(0,Z.jsx)(et,{className:`size-3`}),e.enabled?`Enabled`:`Disabled`]})}function Mi({percentage:e,className:t}){let n=e<100,r=e.toFixed(1);return(0,Z.jsxs)(K,{className:p(`gap-1`,t),variant:n?`secondary`:`default`,children:[n?(0,Z.jsx)(Ke,{className:`h-3 w-3`}):null,r,`%`]})}var Ni=20,Pi=[{label:`iOS`,value:`ios`},{label:`Android`,value:`android`}],Fi=[{label:`Any Status`,value:`all`},{label:`Enabled`,value:`enabled`},{label:`Disabled`,value:`disabled`}],Ii=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`}),Li=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`}),Ri=e=>t=>{t.target instanceof Element&&t.target.closest(`button, a, input, select, textarea`)||e()};function zi({channels:e,onChange:t,onClear:n,onManageChannels:r,search:a}){let o=G(a),s=a.channelId!==void 0,c=[{label:`All Channels`,value:`all`},...e.map(e=>({label:e.name,value:e.id}))];return(0,Z.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-2 border-b bg-background px-3 py-3 sm:h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:py-0 sm:backdrop-blur-sm`,children:[(0,Z.jsx)(fe,{className:`-ml-1`}),(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)(hn,{className:`size-3.5`}),(0,Z.jsx)(`span`,{className:`text-xs font-medium`,children:`Filters`})]}),(0,Z.jsxs)(gt,{items:c,onValueChange:e=>t({channelId:e===null||e===`all`?void 0:e}),value:a.channelId??`all`,children:[(0,Z.jsx)(ct,{"aria-label":`Channel`,className:`h-8 w-[calc(50%-0.25rem)] min-w-[132px] text-xs sm:w-[140px]`,children:(0,Z.jsx)(mt,{})}),(0,Z.jsx)(pt,{children:(0,Z.jsxs)(ht,{children:[(0,Z.jsx)(ft,{value:`all`,children:`All Channels`}),e.map(e=>(0,Z.jsx)(ft,{value:e.id,children:e.name},e.id))]})})]}),(0,Z.jsxs)(gt,{disabled:!s,items:Pi,onValueChange:e=>t({platform:e===`android`?`android`:`ios`}),value:a.platform??`ios`,children:[(0,Z.jsx)(ct,{"aria-label":`Platform`,className:`h-8 w-[calc(50%-0.25rem)] min-w-[132px] text-xs sm:w-[140px]`,title:s?void 0:`Choose a channel first`,children:(0,Z.jsx)(mt,{})}),(0,Z.jsx)(pt,{children:(0,Z.jsxs)(ht,{children:[(0,Z.jsx)(ft,{value:`ios`,children:`iOS`}),(0,Z.jsx)(ft,{value:`android`,children:`Android`})]})})]}),(0,Z.jsxs)(gt,{disabled:!s&&a.scopeKey===void 0,items:Fi,onValueChange:e=>t({enabled:e===`enabled`?!0:e===`disabled`?!1:void 0}),value:a.enabled===void 0?`all`:a.enabled?`enabled`:`disabled`,children:[(0,Z.jsx)(ct,{"aria-label":`Status`,className:`h-8 w-[calc(50%-0.25rem)] min-w-[132px] text-xs sm:w-[140px]`,children:(0,Z.jsx)(mt,{})}),(0,Z.jsx)(pt,{children:(0,Z.jsxs)(ht,{children:[(0,Z.jsx)(ft,{value:`all`,children:`Any Status`}),(0,Z.jsx)(ft,{value:`enabled`,children:`Enabled`}),(0,Z.jsx)(ft,{value:`disabled`,children:`Disabled`})]})})]}),(0,Z.jsx)(i,{"aria-label":`Manage channels`,onClick:r,size:`icon-sm`,title:`Manage channels`,variant:`outline`,children:(0,Z.jsx)(vn,{})}),a.bundleId?(0,Z.jsxs)(K,{className:`max-w-48 gap-1`,variant:`secondary`,children:[`Artifact filter`,(0,Z.jsx)(`button`,{"aria-label":`Clear artifact filter`,className:`rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>t({bundleId:void 0}),type:`button`,children:(0,Z.jsx)(O,{className:`size-3`})})]}):null,a.scopeKey?(0,Z.jsxs)(K,{className:`max-w-48 gap-1`,variant:`secondary`,children:[`Target filter`,(0,Z.jsx)(`button`,{"aria-label":`Clear target filter`,className:`rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>t({scopeKey:void 0}),type:`button`,children:(0,Z.jsx)(O,{className:`size-3`})})]}):null,o?(0,Z.jsxs)(i,{className:`h-8 px-2 text-xs text-muted-foreground hover:text-foreground sm:ml-auto`,onClick:n,size:`sm`,variant:`ghost`,children:[(0,Z.jsx)(O,{"data-icon":`inline-start`}),`Clear`]}):null]})}function Bi({expanded:e,onOpen:t,onToggleExpand:n,release:r}){let a=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)(i,{"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-8 shrink-0 touch-manipulation`,onClick:n,size:`icon`,type:`button`,variant:`ghost`,children:e?(0,Z.jsx)(be,{}):(0,Z.jsx)($e,{})}):(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`size-8 shrink-0`}),(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)(ln,{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)(Nt,{className:`size-3.5`}),` Built-in bundle`]})]}),a?(0,Z.jsx)(K,{className:`shrink-0 font-normal`,variant:`secondary`,children:a}):null,r.currentlyUnreachable?(0,Z.jsxs)(`span`,{"aria-label":`Unreachable: no device gets this bundle with the current delivery settings.`,className:`inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground`,title:`No device gets this bundle with the current delivery settings.`,children:[(0,Z.jsx)(et,{className:`size-3.5`}),`Unreachable`]}):null]})}function Vi({onDetailClick:t,panelId:n,release:r}){let i=r.bundle_id??``,a=Pe(i),o=je(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)(An,{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 Hi(){let t=He.useSearch(),n=He.useNavigate(),r=le(),[a,o]=(0,X.useState)(!1),[s,l]=(0,X.useState)(),u=Ne({afterReleaseId:t.afterReleaseId,beforeReleaseId:t.beforeReleaseId,filter:Be(t),limit:Ni}),d=Oe().data??[],f=u.data?.data??[],m=Ie(Array.from(new Set(f.flatMap(e=>e.bundle_id?[e.bundle_id]:[])))).data??{},h=u.data?.next,g=u.data?.previous,_=f.flatMap(e=>{let t=d.find(t=>t.id===e.channel_id)?.name;return t?[{releaseId:e.id,platform:e.platform,channel:t,builtIn:!e.bundle_id}]:[]}),v=Ve(),y=10+v.length,b=new Map(d.map(e=>[e.id,e.name]));(0,X.useEffect)(()=>{s&&!f.some(e=>e.id===s)&&l(void 0)},[s,f]);let x=(e,t=!0)=>void n({resetScroll:t,search:e,to:`/`}),S=e=>x(ze(t,e)),C=e=>{let n=f.find(t=>t.bundle_id===e.id);if(l(void 0),n){x({...t,releaseId:n.id},!1);return}S({bundleId:e.id})},w=t.afterReleaseId!==void 0||t.beforeReleaseId!==void 0,ee=g?{...t,afterReleaseId:g,beforeReleaseId:void 0,releaseId:void 0}:null,T=h?{...t,afterReleaseId:void 0,beforeReleaseId:h,releaseId:void 0}:null,E={...t,afterReleaseId:void 0,beforeReleaseId:void 0,releaseId:void 0};return(0,Z.jsxs)(`div`,{className:`flex h-svh min-h-0 min-w-0 flex-col`,children:[(0,Z.jsx)(zi,{channels:d,onChange:S,onClear:()=>x({}),onManageChannels:()=>o(!0),search:t}),(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:[u.isError?(0,Z.jsxs)(Je,{variant:`destructive`,children:[(0,Z.jsx)(Ke,{}),(0,Z.jsx)(Ue,{children:`Bundles could not be loaded`}),(0,Z.jsx)(qe,{children:u.error.message})]}):(0,Z.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm [&_[data-slot=table-container]]:h-full [&_[data-slot=table-container]]:overflow-auto`,children:r?(0,Z.jsx)(`div`,{className:`h-full overflow-y-auto`,children:u.isPending?(0,Z.jsx)(`div`,{className:`flex flex-col gap-3 p-4`,children:Array.from({length:5},(t,n)=>(0,Z.jsx)(e,{className:`h-44 w-full`},n))}):f.length?f.map(e=>{let n=b.get(e.channel_id)??e.channel_id,r=e.bundle_id?m[e.bundle_id]:0,i=s===e.id,a=`bundle-lineage-panel-${e.id}`;return(0,Z.jsxs)(X.Fragment,{children:[(0,Z.jsxs)(`article`,{"aria-label":`Bundle ${e.id}`,className:p(`flex cursor-pointer touch-manipulation flex-col gap-4 border-b p-4 transition-[background-color,filter] last:border-b-0 hover:bg-muted/10 active:bg-muted/20 motion-reduce:transition-none data-[state=selected]:bg-muted/15`,e.currentlyUnreachable&&`bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100`,i&&`border-b-0 bg-primary/5`),"data-state":t.releaseId===e.id?`selected`:void 0,onClick:Ri(()=>x({...t,releaseId:e.id},!1)),children:[(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsx)(Bi,{expanded:i,onOpen:()=>x({...t,releaseId:e.id},!1),onToggleExpand:()=>l(i?void 0:e.id),release:e}),(0,Z.jsx)(Tn,{channel:n,className:`shrink-0`})]}),(0,Z.jsxs)(`dl`,{className:`grid grid-cols-2 gap-3 text-xs`,children:[(0,Z.jsxs)(`div`,{className:`rounded-md bg-muted/40 p-3`,children:[(0,Z.jsx)(`dt`,{className:`text-muted-foreground`,children:`Platform`}),(0,Z.jsxs)(`dd`,{className:`mt-1 flex items-center gap-2 font-medium`,children:[(0,Z.jsx)(at,{className:`size-4`,platform:e.platform}),e.platform===`ios`?`iOS`:`Android`]})]}),(0,Z.jsxs)(`div`,{className:`rounded-md bg-muted/40 p-3`,children:[(0,Z.jsx)(`dt`,{className:`text-muted-foreground`,children:`Created`}),(0,Z.jsx)(`dd`,{className:`mt-1 tabular-nums`,children:Ii.format(e.created_at_ms)})]}),(0,Z.jsxs)(`div`,{className:`rounded-md bg-muted/40 p-3`,children:[(0,Z.jsx)(`dt`,{className:`text-muted-foreground`,children:`Rollout`}),(0,Z.jsx)(`dd`,{className:`mt-1`,children:(0,Z.jsx)(Mi,{percentage:e.rollout_cohort_count/10})})]}),(0,Z.jsxs)(`div`,{className:`rounded-md bg-muted/40 p-3`,children:[(0,Z.jsx)(`dt`,{className:`text-muted-foreground`,children:`Patches`}),(0,Z.jsx)(`dd`,{className:`mt-1`,children:r===void 0?`Checking`:r>0?`${r} ${r===1?`patch`:`patches`}`:`—`})]}),v.map(({Cell:t,feature:n,label:r})=>(0,Z.jsxs)(`div`,{className:`col-span-2 rounded-md bg-muted/40 p-3`,children:[(0,Z.jsx)(`dt`,{className:`mb-2 text-muted-foreground`,children:r}),(0,Z.jsx)(`dd`,{children:(0,Z.jsx)(t,{releaseId:e.id,releases:_})})]},n)),(0,Z.jsxs)(`div`,{className:`col-span-2 flex flex-wrap items-center gap-2 rounded-md bg-muted/40 p-3`,children:[(0,Z.jsx)(ji,{release:e}),e.should_force_update?(0,Z.jsx)(K,{variant:`secondary`,children:`Force update`}):null]}),(0,Z.jsxs)(`div`,{className:`col-span-2 grid grid-cols-1 gap-2 rounded-md border bg-background/80 p-3`,children:[(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsx)(`dt`,{className:`text-muted-foreground`,children:`Target`}),(0,Z.jsx)(`dd`,{className:`min-w-0 truncate text-right font-mono`,children:e.target_app_version??e.fingerprint_hash??`—`})]}),(0,Z.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsx)(`dt`,{className:`text-muted-foreground`,children:`Message`}),(0,Z.jsx)(`dd`,{className:`min-w-0 text-right text-foreground`,children:e.message||`—`})]})]})]})]}),i&&e.bundle_id?(0,Z.jsx)(Vi,{onDetailClick:C,panelId:a,release:e}):null]},e.id)}):(0,Z.jsx)(`p`,{className:`p-8 text-center text-sm text-muted-foreground`,children:w?`No more bundles on this side.`:G(t)?`No bundles match these filters.`:`No bundles yet. Deploy an update to see it here.`})}):(0,Z.jsxs)(cn,{className:`min-w-max`,children:[(0,Z.jsx)(an,{className:`bg-muted/40`,children:(0,Z.jsxs)(sn,{className:`border-b border-border/60 hover:bg-transparent [&>th]:h-10 [&>th]:text-xs [&>th]:font-semibold [&>th]:uppercase [&>th]:text-muted-foreground/70`,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`}),v.map(({feature:e,label:t})=>(0,Z.jsx)(J,{children:t},e)),(0,Z.jsx)(J,{children:`Message`}),(0,Z.jsx)(J,{children:`Created`})]})}),(0,Z.jsxs)(on,{children:[u.isPending?Array.from({length:7},(t,n)=>(0,Z.jsx)(sn,{children:(0,Z.jsx)(Y,{colSpan:y,children:(0,Z.jsx)(e,{className:`h-8 w-full`})})},n)):f.map(e=>{let n=s===e.id,r=`bundle-lineage-panel-${e.id}`;return(0,Z.jsxs)(X.Fragment,{children:[(0,Z.jsxs)(sn,{"aria-label":`Open bundle ${e.id}`,className:p(`cursor-pointer transition-[background-color,filter] hover:bg-muted/10 focus-within:bg-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none data-[state=selected]:bg-muted/15 [&>td]:py-3`,e.currentlyUnreachable&&`bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100`,n&&`bg-primary/5`),"data-state":t.releaseId===e.id?`selected`:void 0,onClick:Ri(()=>x({...t,releaseId:e.id},!1)),onKeyDown:n=>{n.target!==n.currentTarget||n.key!==`Enter`&&n.key!==` `||(n.preventDefault(),x({...t,releaseId:e.id},!1))},tabIndex:0,children:[(0,Z.jsx)(Y,{children:(0,Z.jsx)(Bi,{expanded:n,onOpen:()=>x({...t,releaseId:e.id},!1),onToggleExpand:()=>l(n?void 0:e.id),release:e})}),(0,Z.jsx)(Y,{children:(0,Z.jsx)(Tn,{channel:b.get(e.channel_id)??e.channel_id})}),(0,Z.jsx)(Y,{className:`whitespace-nowrap`,children:(0,Z.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(at,{className:`size-4`,platform:e.platform}),e.platform===`ios`?`iOS`:`Android`]})}),(0,Z.jsx)(Y,{children:e.bundle_id&&m[e.bundle_id]===void 0?(0,Z.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Checking`}):e.bundle_id&&m[e.bundle_id]>0?(0,Z.jsxs)(K,{variant:`secondary`,children:[m[e.bundle_id],` `,m[e.bundle_id]===1?`patch`:`patches`]}):(0,Z.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,Z.jsx)(Y,{children:e.target_app_version?(0,Z.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(W,{className:`size-4 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`font-medium`,children:e.target_app_version})]}):e.fingerprint_hash?(0,Z.jsxs)(`span`,{className:`flex min-w-[160px] items-center gap-2`,children:[(0,Z.jsx)(mn,{className:`size-4 shrink-0 text-muted-foreground`}),(0,Z.jsx)(vt,{maxLength:12,value:e.fingerprint_hash})]}):(0,Z.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}),(0,Z.jsx)(Y,{children:(0,Z.jsxs)(`span`,{className:`flex items-center`,children:[(0,Z.jsx)(En,{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)(En,{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)(Mi,{percentage:e.rollout_cohort_count/10})}),v.map(({Cell:t,feature:n})=>(0,Z.jsx)(Y,{children:(0,Z.jsx)(t,{releaseId:e.id,releases:_})},n)),(0,Z.jsx)(Y,{className:`text-sm text-muted-foreground`,title:e.message??void 0,children:e.message||`-`}),(0,Z.jsx)(Y,{className:`whitespace-nowrap text-xs text-muted-foreground`,title:Ii.format(e.created_at_ms),children:Li.format(e.created_at_ms)})]}),n&&e.bundle_id?(0,Z.jsx)(sn,{className:`hover:bg-transparent`,children:(0,Z.jsx)(Y,{className:`border-t-0 p-0`,colSpan:y,children:(0,Z.jsx)(Vi,{onDetailClick:C,panelId:r,release:e})})}):null]},e.id)}),!u.isPending&&f.length===0?(0,Z.jsx)(sn,{children:(0,Z.jsx)(Y,{className:`h-40 text-center text-muted-foreground`,colSpan:y,children:w?`No more bundles on this side.`:G(t)?`No bundles match these filters.`:`No bundles yet. Deploy an update to see it here.`})}):null]})]})}),!u.isError&&!u.isPending?(0,Z.jsxs)(`nav`,{"aria-label":`Bundle pagination`,className:`flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between`,children:[(0,Z.jsxs)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:[(0,Z.jsx)(`span`,{className:`text-foreground`,children:f.length}),` `,f.length===1?`entry`:`entries`,`, newest first`]}),(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 sm:justify-end`,children:[w?(0,Z.jsx)(F,{className:c({className:`h-8 flex-1 px-3 text-xs sm:flex-none`,size:`sm`,variant:`ghost`}),search:E,to:`/`,children:`Newest`}):null,ee?(0,Z.jsxs)(F,{className:c({className:`h-8 flex-1 px-3 text-xs sm:flex-none`,size:`sm`,variant:`outline`}),search:ee,to:`/`,children:[(0,Z.jsx)(fn,{"data-icon":`inline-start`}),`Previous`]}):(0,Z.jsxs)(i,{className:`h-8 flex-1 px-3 text-xs sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[(0,Z.jsx)(fn,{"data-icon":`inline-start`}),`Previous`]}),T?(0,Z.jsxs)(F,{className:c({className:`h-8 flex-1 px-3 text-xs sm:flex-none`,size:`sm`,variant:`outline`}),search:T,to:`/`,children:[`Next`,(0,Z.jsx)($e,{"data-icon":`inline-end`})]}):(0,Z.jsxs)(i,{className:`h-8 flex-1 px-3 text-xs sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[`Next`,(0,Z.jsx)($e,{"data-icon":`inline-end`})]})]})]}):null]}),(0,Z.jsx)(Ai,{channels:d,onOpenChange:e=>!e&&x({...t,releaseId:void 0},!1),onShowScope:e=>S({scopeKey:e}),open:!!t.releaseId,releaseId:t.releaseId??``}),(0,Z.jsx)(jn,{onOpenChange:o,open:a})]})}export{Hi as component};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-P7683vKQ.js","assets/sidebar-BqX460IW.js","assets/useCompositeListItem-B-UkrDlu.js","assets/console-features-api-DPE4C06Y.js","assets/alert-dialog-BtVg50WQ.js","assets/select-M3H2gxCc.js","assets/badge-Bqf3UDee.js","assets/switch-By_vfm8I.js","assets/valueToPercent-B44vDssN.js","assets/api-DoicFJfd.js","assets/circle-off-BsbZQtsF.js","assets/HashValueDisplay-BGkDPaYi.js","assets/dist-dDj-R6uh.js","assets/list-Dtj7TtzV.js","assets/dialog-CGKPxz3n.js","assets/input-group-B4nrqIh0.js","assets/insights-search-aT8BVCci.js","assets/insights-api-1ZjVu3Sb.js","assets/field-GxF9SyUo.js","assets/table-ek1DmRHq.js"])))=>i.map(i=>d[i]);
2
- import{$ as e,In as t,Ln as n,Ur as r,Wr as i,ar as a,cr as o,et as s,nr as c,rr as l}from"./sidebar-BqX460IW.js";import{a as u,i as d,l as f,o as p}from"./console-features-api-DPE4C06Y.js";import{a as ee,c as m,s as h}from"./useCompositeListItem-B-UkrDlu.js";import{_ as g,m as _,s as v,x as y}from"./insights-api-1ZjVu3Sb.js";import{d as b,l as x,o as S,s as C,u as w}from"./badge-Bqf3UDee.js";import{t as T}from"./key-round-B4fI1psK.js";import{s as te}from"./switch-By_vfm8I.js";import{_ as E,n as D}from"./insights-search-aT8BVCci.js";var O=a(`chart-line`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`m19 9-5 5-4-4-3 3`,key:`2osh9i`}]]),k=a(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),A=r(),j={apiKeys:{navigation:{icon:(0,A.jsx)(T,{}),paths:[`/api-keys`],link:({onClick:e})=>(0,A.jsx)(f,{to:`/api-keys`,onClick:e})}}},M=l({method:`GET`}).middleware([c]).handler(i(`b4bf4c461903edcdc44eea52468c737b5b600a586f542138ff022dcbbe86c45c`));function N(e){let t=e.map(({releaseId:e,platform:t,channel:n})=>({releaseId:e,platform:t,channel:n})).sort((e,t)=>e.releaseId.localeCompare(t.releaseId));return o({queryKey:[`bundle-activity`,t],queryFn:()=>M({data:t}),enabled:t.length>0,staleTime:3e4})}var P=[{label:`Downloaded`,field:`downloads`,color:`text-primary/85`},{label:`Launched`,field:`launched`,color:`text-success/85`},{label:`Crashed`,field:`failedLaunches`,color:`text-warning/85`}],F=e=>{let t=e.launched+e.failedLaunches;return t===0?`—`:`${(e.failedLaunches/t*100).toFixed(2)}%`},I=e=>Math.max(0,e.downloads-e.launched-e.failedLaunches);function L(){return(0,A.jsx)(E,{label:`About release insight metrics`,children:`Downloaded: got this bundle. Launched: ran it. Crashed: crashed on it and rolled back. Once every installation restarts, Downloaded = Launched + Crashed.`})}function R({report:t,loading:r=!1,input:i,variant:a=`inline`}){if(!t)return r?(0,A.jsx)(e,{"aria-label":`Loading release insights`,className:a===`card`?`h-16 w-full`:`h-4 w-40`}):(0,A.jsx)(`span`,{"aria-label":`Release insights unavailable`,className:`text-sm text-muted-foreground`,children:`—`});let o=i?.builtIn===!0,s=o?0:I(t),c=(0,A.jsx)(`dl`,{className:n(a===`card`?`grid grid-cols-[1fr_1fr_auto] gap-4`:`flex min-w-[220px] flex-wrap items-baseline gap-x-3 gap-y-1`),children:P.map(({label:e,field:r,color:i})=>(0,A.jsxs)(`div`,{className:n(`flex`,a===`card`?`min-w-0 flex-col gap-1`:`items-baseline gap-1.5 whitespace-nowrap`),children:[(0,A.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,A.jsxs)(`dd`,{className:n(`flex flex-wrap items-baseline gap-x-1.5 tabular-nums`,a===`card`?`text-xl font-semibold`:`text-sm font-medium`,t[r]>0&&!(r===`downloads`&&o)?i:`text-muted-foreground`),children:[r===`downloads`&&o?(0,A.jsx)(`span`,{title:`The built-in bundle is never downloaded`,children:`—`}):t[r].toLocaleString(),r===`failedLaunches`?(0,A.jsxs)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:[`(`,F(t),`)`]}):null]})]},r))});return(0,A.jsxs)(`div`,{className:n(`flex`,a===`card`?`flex-col gap-2`:`items-center gap-1`),children:[i?(0,A.jsx)(f,{className:`min-w-0 rounded-sm hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,to:`/insights`,search:{platform:i.platform,channel:i.channel,releaseId:i.releaseId,bundleWindow:D(i.releaseId)},children:c}):c,a===`card`&&s>0?(0,A.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[s.toLocaleString(),` downloaded but not launched yet: waiting for a restart, or passed over for a newer bundle.`]}):null,a===`inline`?(0,A.jsx)(L,{}):null]})}function z({input:t}){let r=v({platform:t.platform,channel:t.channel,releaseId:t.releaseId}),i=r.data;return(0,A.jsxs)(`div`,{className:`flex items-center gap-1`,children:[i?(0,A.jsx)(`dl`,{children:(0,A.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-1.5`,children:[(0,A.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Download failures`}),(0,A.jsxs)(`dd`,{className:n(`flex items-baseline gap-1.5 text-sm font-medium tabular-nums`,i.failedUpdates>0?`text-warning/85`:`text-muted-foreground`),children:[i.failedUpdates.toLocaleString(),(0,A.jsxs)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:[`(`,g(_(i)),`)`]})]})]})}):r.isPending?(0,A.jsx)(e,{"aria-label":`Loading download failures`,className:`h-4 w-40`}):(0,A.jsx)(`span`,{"aria-label":`Download failures unavailable`,className:`text-sm text-muted-foreground`,children:`—`}),(0,A.jsx)(E,{label:`About download failures`,children:`Failed downloads or installs of this bundle, at most one per installation a day. Rate = failures ÷ (failures + downloads).`})]})}function B({input:e}){let n=N([e]);return(0,A.jsxs)(S,{children:[(0,A.jsxs)(w,{className:`flex-row items-center justify-between px-4 pt-4 pb-3`,children:[(0,A.jsx)(b,{className:`text-sm font-medium`,children:`Insights`}),(0,A.jsx)(L,{})]}),(0,A.jsxs)(C,{className:`flex flex-col gap-3 px-4 pb-4`,children:[(0,A.jsx)(R,{variant:`card`,input:e,loading:n.isFetching,report:n.data?.[e.releaseId]}),(0,A.jsx)(s,{}),(0,A.jsx)(z,{input:e})]}),(0,A.jsx)(x,{className:`px-4 pb-4`,children:(0,A.jsxs)(f,{className:t({variant:`outline`,size:`sm`}),to:`/insights`,search:{platform:e.platform,channel:e.channel,releaseId:e.releaseId,bundleWindow:D(e.releaseId),healthChart:`adoption`},children:[(0,A.jsx)(O,{"aria-hidden":`true`,"data-icon":`inline-start`}),`View adoption`]})})]})}function V({input:e}){return d(`insightsAnalytics`)?null:(0,A.jsxs)(S,{children:[(0,A.jsx)(w,{className:`px-4 pt-4 pb-3`,children:(0,A.jsx)(b,{className:`text-sm font-medium`,children:`Insights`})}),(0,A.jsx)(C,{className:`px-4 pb-4`,children:(0,A.jsx)(z,{input:e})})]})}function H({releaseId:e,releases:t}){let n=N(t);return(0,A.jsx)(R,{input:t.find(t=>t.releaseId===e),loading:n.isFetching,report:n.data?.[e]})}var U={Cell:H},W={insights:{navigation:{icon:(0,A.jsx)(y,{}),paths:[`/insights`,`/insights/distribution`,`/installations`],link:({features:e,onClick:t})=>e.insightsAnalytics?(0,A.jsx)(f,{to:`/insights`,onClick:t}):(0,A.jsx)(f,{to:`/installations`,onClick:t})},releaseSection:({release:e})=>(0,A.jsx)(V,{input:e})},insightsAnalytics:{releaseColumn:U,releaseSection:({release:e})=>(0,A.jsx)(B,{input:e})}},G={remoteConfig:{navigation:{icon:(0,A.jsx)(te,{}),paths:[`/remote-config`],link:({onClick:e})=>(0,A.jsx)(f,{to:`/remote-config`,onClick:e})}}},K={...W,...j,...G},q=Object.keys(p),J=()=>{let e=u().data?.features;return e===void 0?[]:q.flatMap(t=>{let n=K[t];return n!==void 0&&e[t]?[{...n,feature:t,label:p[t].label,features:e}]:[]})},Y=()=>J().flatMap(({feature:e,label:t,releaseColumn:n})=>n===void 0?[]:[{...n,feature:e,label:t}]);function X({release:e}){return J().map(({feature:t,releaseSection:n})=>n===void 0?null:(0,A.jsx)(n,{release:e},t))}var Z=e=>typeof e==`string`&&e.trim().length>0?e.trim():void 0;function Q(e){let t=Z(e.beforeReleaseId),n=t?void 0:Z(e.afterReleaseId),r=e.enabled===!0||e.enabled===`true`?!0:e.enabled===!1||e.enabled===`false`?!1:void 0,i=Z(e.bundleId),a=i?void 0:Z(e.scopeKey),o=i||a?void 0:Z(e.channelId),s=o===void 0?void 0:e.platform===`android`?`android`:`ios`;return{afterReleaseId:n,beforeReleaseId:t,bundleId:i,channelId:o,enabled:a||o?r:void 0,platform:s,releaseId:Z(e.releaseId),scopeKey:a}}function $(e){let t=e.enabled===void 0?{}:{enabled:e.enabled};return e.bundleId?{kind:`bundle`,bundleId:e.bundleId}:e.scopeKey?{kind:`scope`,scopeKey:e.scopeKey,...t}:e.channelId&&e.platform?{kind:`channelPlatform`,channelId:e.channelId,platform:e.platform,...t}:{kind:`all`}}function ne(e){return $(e).kind!==`all`}function re(e,t){let n={...e,...t};return t.bundleId?Q({bundleId:n.bundleId}):t.scopeKey?Q({scopeKey:n.scopeKey,enabled:n.enabled}):`channelId`in t||`platform`in t?Q({channelId:n.channelId,enabled:n.enabled,platform:n.platform}):Q({bundleId:n.bundleId,channelId:n.channelId,enabled:n.enabled,platform:n.platform,scopeKey:n.scopeKey})}var ie=m(`/`)({component:h(()=>ee(()=>import(`./routes-P7683vKQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),`component`),validateSearch:Q});export{X as a,k as c,re as i,ne as n,J as o,$ as r,Y as s,ie as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-CdST5uVt.js","assets/sidebar-BqX460IW.js","assets/useCompositeListItem-B-UkrDlu.js","assets/console-features-api-DPE4C06Y.js","assets/alert-dialog-BtVg50WQ.js","assets/select-M3H2gxCc.js","assets/badge-Bqf3UDee.js","assets/switch-By_vfm8I.js","assets/valueToPercent-B44vDssN.js","assets/api-DoicFJfd.js","assets/circle-off-BsbZQtsF.js","assets/HashValueDisplay-BGkDPaYi.js","assets/dist-dDj-R6uh.js","assets/list-Dtj7TtzV.js","assets/dialog-CGKPxz3n.js","assets/input-group-B4nrqIh0.js","assets/insights-search-aT8BVCci.js","assets/insights-api-1ZjVu3Sb.js","assets/field-GxF9SyUo.js","assets/table-ek1DmRHq.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,In as t,Ln as n,Ur as r,Wr as i,ar as a,cr as o,et as s,nr as c,rr as l}from"./sidebar-BqX460IW.js";import{a as u,i as d,l as f,o as p}from"./console-features-api-DPE4C06Y.js";import{a as ee,c as m,s as h}from"./useCompositeListItem-B-UkrDlu.js";import{_ as g,m as _,s as v,x as y}from"./insights-api-1ZjVu3Sb.js";import{d as b,l as x,o as S,s as C,u as w}from"./badge-Bqf3UDee.js";import{t as T}from"./key-round-B4fI1psK.js";import{s as te}from"./switch-By_vfm8I.js";import{_ as E,n as D}from"./insights-search-aT8BVCci.js";var O=a(`chart-line`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`m19 9-5 5-4-4-3 3`,key:`2osh9i`}]]),k=a(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),A=r(),j={apiKeys:{navigation:{icon:(0,A.jsx)(T,{}),paths:[`/api-keys`],link:({onClick:e})=>(0,A.jsx)(f,{to:`/api-keys`,onClick:e})}}},M=l({method:`GET`}).middleware([c]).handler(i(`b4bf4c461903edcdc44eea52468c737b5b600a586f542138ff022dcbbe86c45c`));function N(e){let t=e.map(({releaseId:e,platform:t,channel:n})=>({releaseId:e,platform:t,channel:n})).sort((e,t)=>e.releaseId.localeCompare(t.releaseId));return o({queryKey:[`bundle-activity`,t],queryFn:()=>M({data:t}),enabled:t.length>0,staleTime:3e4})}var P=[{label:`Downloaded`,field:`downloads`,color:`text-primary/85`},{label:`Launched`,field:`launched`,color:`text-success/85`},{label:`Crashed`,field:`failedLaunches`,color:`text-warning/85`}],F=e=>{let t=e.launched+e.failedLaunches;return t===0?`—`:`${(e.failedLaunches/t*100).toFixed(2)}%`},I=e=>Math.max(0,e.downloads-e.launched-e.failedLaunches);function L(){return(0,A.jsx)(E,{label:`About release insight metrics`,children:`Downloaded: got this bundle. Launched: ran it. Crashed: crashed on it and rolled back. Once every installation restarts, Downloaded = Launched + Crashed.`})}function R({report:t,loading:r=!1,input:i,variant:a=`inline`}){if(!t)return r?(0,A.jsx)(e,{"aria-label":`Loading release insights`,className:a===`card`?`h-16 w-full`:`h-4 w-40`}):(0,A.jsx)(`span`,{"aria-label":`Release insights unavailable`,className:`text-sm text-muted-foreground`,children:`—`});let o=i?.builtIn===!0,s=o?0:I(t),c=(0,A.jsx)(`dl`,{className:n(a===`card`?`grid grid-cols-[1fr_1fr_auto] gap-4`:`flex min-w-[220px] flex-wrap items-baseline gap-x-3 gap-y-1`),children:P.map(({label:e,field:r,color:i})=>(0,A.jsxs)(`div`,{className:n(`flex`,a===`card`?`min-w-0 flex-col gap-1`:`items-baseline gap-1.5 whitespace-nowrap`),children:[(0,A.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,A.jsxs)(`dd`,{className:n(`flex flex-wrap items-baseline gap-x-1.5 tabular-nums`,a===`card`?`text-xl font-semibold`:`text-sm font-medium`,t[r]>0&&!(r===`downloads`&&o)?i:`text-muted-foreground`),children:[r===`downloads`&&o?(0,A.jsx)(`span`,{title:`The built-in bundle is never downloaded`,children:`—`}):t[r].toLocaleString(),r===`failedLaunches`?(0,A.jsxs)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:[`(`,F(t),`)`]}):null]})]},r))});return(0,A.jsxs)(`div`,{className:n(`flex`,a===`card`?`flex-col gap-2`:`items-center gap-1`),children:[i?(0,A.jsx)(f,{className:`min-w-0 rounded-sm hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,to:`/insights`,search:{platform:i.platform,channel:i.channel,releaseId:i.releaseId,bundleWindow:D(i.releaseId)},children:c}):c,a===`card`&&s>0?(0,A.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[s.toLocaleString(),` downloaded but not launched yet: waiting for a restart, or passed over for a newer bundle.`]}):null,a===`inline`?(0,A.jsx)(L,{}):null]})}function z({input:t}){let r=v({platform:t.platform,channel:t.channel,releaseId:t.releaseId}),i=r.data;return(0,A.jsxs)(`div`,{className:`flex items-center gap-1`,children:[i?(0,A.jsx)(`dl`,{children:(0,A.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-1.5`,children:[(0,A.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Download failures`}),(0,A.jsxs)(`dd`,{className:n(`flex items-baseline gap-1.5 text-sm font-medium tabular-nums`,i.failedUpdates>0?`text-warning/85`:`text-muted-foreground`),children:[i.failedUpdates.toLocaleString(),(0,A.jsxs)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:[`(`,g(_(i)),`)`]})]})]})}):r.isPending?(0,A.jsx)(e,{"aria-label":`Loading download failures`,className:`h-4 w-40`}):(0,A.jsx)(`span`,{"aria-label":`Download failures unavailable`,className:`text-sm text-muted-foreground`,children:`—`}),(0,A.jsx)(E,{label:`About download failures`,children:`Failed downloads or installs of this bundle, at most one per installation a day. Rate = failures ÷ (failures + downloads).`})]})}function B({input:e}){let n=N([e]);return(0,A.jsxs)(S,{children:[(0,A.jsxs)(w,{className:`flex-row items-center justify-between px-4 pt-4 pb-3`,children:[(0,A.jsx)(b,{className:`text-sm font-medium`,children:`Insights`}),(0,A.jsx)(L,{})]}),(0,A.jsxs)(C,{className:`flex flex-col gap-3 px-4 pb-4`,children:[(0,A.jsx)(R,{variant:`card`,input:e,loading:n.isFetching,report:n.data?.[e.releaseId]}),(0,A.jsx)(s,{}),(0,A.jsx)(z,{input:e})]}),(0,A.jsx)(x,{className:`px-4 pb-4`,children:(0,A.jsxs)(f,{className:t({variant:`outline`,size:`sm`}),to:`/insights`,search:{platform:e.platform,channel:e.channel,releaseId:e.releaseId,bundleWindow:D(e.releaseId),healthChart:`adoption`},children:[(0,A.jsx)(O,{"aria-hidden":`true`,"data-icon":`inline-start`}),`View adoption`]})})]})}function V({input:e}){return d(`insightsAnalytics`)?null:(0,A.jsxs)(S,{children:[(0,A.jsx)(w,{className:`px-4 pt-4 pb-3`,children:(0,A.jsx)(b,{className:`text-sm font-medium`,children:`Insights`})}),(0,A.jsx)(C,{className:`px-4 pb-4`,children:(0,A.jsx)(z,{input:e})})]})}function H({releaseId:e,releases:t}){let n=N(t);return(0,A.jsx)(R,{input:t.find(t=>t.releaseId===e),loading:n.isFetching,report:n.data?.[e]})}var U={Cell:H},W={insights:{navigation:{icon:(0,A.jsx)(y,{}),paths:[`/insights`,`/insights/distribution`,`/installations`],link:({features:e,onClick:t})=>e.insightsAnalytics?(0,A.jsx)(f,{to:`/insights`,onClick:t}):(0,A.jsx)(f,{to:`/installations`,onClick:t})},releaseSection:({release:e})=>(0,A.jsx)(V,{input:e})},insightsAnalytics:{releaseColumn:U,releaseSection:({release:e})=>(0,A.jsx)(B,{input:e})}},G={remoteConfig:{navigation:{icon:(0,A.jsx)(te,{}),paths:[`/remote-config`],link:({onClick:e})=>(0,A.jsx)(f,{to:`/remote-config`,onClick:e})}}},K={...W,...j,...G},q=Object.keys(p),J=()=>{let e=u().data?.features;return e===void 0?[]:q.flatMap(t=>{let n=K[t];return n!==void 0&&e[t]?[{...n,feature:t,label:p[t].label,features:e}]:[]})},Y=()=>J().flatMap(({feature:e,label:t,releaseColumn:n})=>n===void 0?[]:[{...n,feature:e,label:t}]);function X({release:e}){return J().map(({feature:t,releaseSection:n})=>n===void 0?null:(0,A.jsx)(n,{release:e},t))}var Z=e=>typeof e==`string`&&e.trim().length>0?e.trim():void 0;function Q(e){let t=Z(e.beforeReleaseId),n=t?void 0:Z(e.afterReleaseId),r=e.enabled===!0||e.enabled===`true`?!0:e.enabled===!1||e.enabled===`false`?!1:void 0,i=Z(e.bundleId),a=i?void 0:Z(e.scopeKey),o=i||a?void 0:Z(e.channelId),s=o===void 0?void 0:e.platform===`android`?`android`:`ios`;return{afterReleaseId:n,beforeReleaseId:t,bundleId:i,channelId:o,enabled:a||o?r:void 0,platform:s,releaseId:Z(e.releaseId),scopeKey:a}}function $(e){let t=e.enabled===void 0?{}:{enabled:e.enabled};return e.bundleId?{kind:`bundle`,bundleId:e.bundleId}:e.scopeKey?{kind:`scope`,scopeKey:e.scopeKey,...t}:e.channelId&&e.platform?{kind:`channelPlatform`,channelId:e.channelId,platform:e.platform,...t}:{kind:`all`}}function ne(e){return $(e).kind!==`all`}function re(e,t){let n={...e,...t};return t.bundleId?Q({bundleId:n.bundleId}):t.scopeKey?Q({scopeKey:n.scopeKey,enabled:n.enabled}):`channelId`in t||`platform`in t?Q({channelId:n.channelId,enabled:n.enabled,platform:n.platform}):Q({bundleId:n.bundleId,channelId:n.channelId,enabled:n.enabled,platform:n.platform,scopeKey:n.scopeKey})}var ie=m(`/`)({component:h(()=>ee(()=>import(`./routes-CdST5uVt.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])),`component`),validateSearch:Q});export{X as a,k as c,re as i,ne as n,J as o,$ as r,Y as s,ie as t};
@@ -1,160 +1,160 @@
1
- //#region node_modules/.nitro/vite/services/ssr/assets/__23tanstack-start-server-fn-resolver-BTRoM3ZK.js
1
+ //#region node_modules/.nitro/vite/services/ssr/assets/__23tanstack-start-server-fn-resolver-CyXEKkH_.js
2
2
  var manifest = {
3
3
  "0ccfae64b399b03d820328fa98a38e2caa0b622d3da5a7ca633c5a0e8101e3f6": {
4
4
  functionName: "getRemoteConfigRpc_createServerFn_handler",
5
- importer: () => import("./_ssr/remote-config-rpc-Dd2ete-w.mjs")
5
+ importer: () => import("./_ssr/remote-config-rpc-DMIW8911.mjs")
6
6
  },
7
7
  "0d1dacdd1e5ee6b100e5c142fb9af03602b6f2c6fe6af79312b36c223d7f8f97": {
8
8
  functionName: "getUpdateFailuresRpc_createServerFn_handler",
9
- importer: () => import("./_ssr/insights-failures-rpc-D6OK70Td.mjs")
9
+ importer: () => import("./_ssr/insights-failures-rpc-DSwMr2Wn.mjs")
10
10
  },
11
11
  "1371bff16085636e2c44b60a573ae434b556c63045c40a0a93a93ab69ec47999": {
12
12
  functionName: "previewRemoteConfigRpc_createServerFn_handler",
13
- importer: () => import("./_ssr/remote-config-rpc-Dd2ete-w.mjs")
13
+ importer: () => import("./_ssr/remote-config-rpc-DMIW8911.mjs")
14
14
  },
15
15
  "16e3be74610cddd54e5e894419dca16817a7b63c09a4eed15042cdac9c39e1e0": {
16
16
  functionName: "getAdoptionReleaseRpc_createServerFn_handler",
17
- importer: () => import("./_ssr/release-adoption-rpc-CreGclHX.mjs")
17
+ importer: () => import("./_ssr/release-adoption-rpc-CfcRvkK0.mjs")
18
18
  },
19
19
  "1bd85c2a50e24785cb6abb023a247a9f048f37ddfa85cbb1c57e579563bad013": {
20
20
  functionName: "getBundle_createServerFn_handler",
21
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
21
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
22
22
  },
23
23
  "206547cb1526f961070a989818ca7b9e34f6b2b0e4ab851698c3807fe9fb5e0c": {
24
24
  functionName: "getReleases_createServerFn_handler",
25
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
25
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
26
26
  },
27
27
  "2b9b8d1f49f79a511589617d8d4bfc6094a3acf5264f33651b9569ba66d3f321": {
28
28
  functionName: "createChannel_createServerFn_handler",
29
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
29
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
30
30
  },
31
31
  "2c7f3cdb9bd3cab2c026a48abdc84c362db0362924a08679052a325640aec56b": {
32
32
  functionName: "listApiKeysRpc_createServerFn_handler",
33
- importer: () => import("./_ssr/api-keys-rpc-Dayd_DRM.mjs")
33
+ importer: () => import("./_ssr/api-keys-rpc-B_ND8xe4.mjs")
34
34
  },
35
35
  "3377db68b9d1d971971595469029c0466da0777a177b294d655cd0c039737f1a": {
36
36
  functionName: "listRemoteConfigVersionsRpc_createServerFn_handler",
37
- importer: () => import("./_ssr/remote-config-rpc-Dd2ete-w.mjs")
37
+ importer: () => import("./_ssr/remote-config-rpc-DMIW8911.mjs")
38
38
  },
39
39
  "3c04bc6624be6dfdd80cf96819f9c6d0455e59a7bb4c0374b6afb0162ffd15b0": {
40
40
  functionName: "listInsightsInstallationEventsRpc_createServerFn_handler",
41
- importer: () => import("./_ssr/insights-rpc-BSJ2KM34.mjs")
41
+ importer: () => import("./_ssr/insights-rpc-BMaFJbZQ.mjs")
42
42
  },
43
43
  "4182bf9ccbb675700638f30bc6122517ccd90b16a339a6823a0f5f6c808d70a6": {
44
44
  functionName: "publishRemoteConfigRpc_createServerFn_handler",
45
- importer: () => import("./_ssr/remote-config-rpc-Dd2ete-w.mjs")
45
+ importer: () => import("./_ssr/remote-config-rpc-DMIW8911.mjs")
46
46
  },
47
47
  "4370f1bf70b91f1168d85379d3008449a1bedb915e9878ca4ef89d5f3a80fa7f": {
48
48
  functionName: "getBundleChildren_createServerFn_handler",
49
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
49
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
50
50
  },
51
51
  "4ca367070b00f58179a572f0bb8196a4ccdd3881e9b1dbfe33deee0cb6e1f549": {
52
52
  functionName: "getBundleChildCounts_createServerFn_handler",
53
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
53
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
54
54
  },
55
55
  "51a34c05479a893c7d320bd4cd1604427289d667698c48b9f30a01aabf8a5e68": {
56
56
  functionName: "getConfig_createServerFn_handler",
57
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
57
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
58
58
  },
59
59
  "52756dde414919a906bfe83d1ab6d29910c63bcafdb47653d6f1df562d958920": {
60
60
  functionName: "deleteChannel_createServerFn_handler",
61
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
61
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
62
62
  },
63
63
  "6726f1ed9eda1f0cb4c1f1ad1023faee435ddcfd0b7c55ef08ca7f2f7f577370": {
64
64
  functionName: "getInsightsInstallationRpc_createServerFn_handler",
65
- importer: () => import("./_ssr/insights-rpc-BSJ2KM34.mjs")
65
+ importer: () => import("./_ssr/insights-rpc-BMaFJbZQ.mjs")
66
66
  },
67
67
  "68a2d94ee016be64936401f5eba60ab08a47ff373e1cf9de48e4413336e6034b": {
68
68
  functionName: "createApiKeyRpc_createServerFn_handler",
69
- importer: () => import("./_ssr/api-keys-rpc-Dayd_DRM.mjs")
69
+ importer: () => import("./_ssr/api-keys-rpc-B_ND8xe4.mjs")
70
70
  },
71
71
  "735c501f6d5ea81a445ff2b6b2ea6a1b589e3c6f63a465a881822c80ae71e7d1": {
72
72
  functionName: "findInsightsInstallationsRpc_createServerFn_handler",
73
- importer: () => import("./_ssr/insights-rpc-BSJ2KM34.mjs")
73
+ importer: () => import("./_ssr/insights-rpc-BMaFJbZQ.mjs")
74
74
  },
75
75
  "79ada05964de8f2123bfcd62b10097d59bf8fd689ef5c7161031e5871d8396c5": {
76
76
  functionName: "getChannels_createServerFn_handler",
77
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
77
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
78
78
  },
79
79
  "7ea0186f19f9f2bc2ca4b26e3c59636891cf046957f84287b6783f8d88bd8cb7": {
80
80
  functionName: "updateRelease_createServerFn_handler",
81
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
81
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
82
82
  },
83
83
  "82ec3500e57f9e81dac6d3f3a7bd9e34915da3121429beec87b7ad153dc6eafe": {
84
84
  functionName: "getConsoleFeaturesRpc_createServerFn_handler",
85
- importer: () => import("./_ssr/console-features-rpc-DsTaZWvl.mjs")
85
+ importer: () => import("./_ssr/console-features-rpc-BGZDcvMY.mjs")
86
86
  },
87
87
  "8a98cd9c178e4a54185d62c25a95f09d3d59850c43d3f5baa1563e1614ad942e": {
88
88
  functionName: "getAppUsageReportRpc_createServerFn_handler",
89
- importer: () => import("./_ssr/insights-usage-rpc-CZ8sEK9v.mjs")
89
+ importer: () => import("./_ssr/insights-usage-rpc-DZQDgtcf.mjs")
90
90
  },
91
91
  "956539a300d79a7efa191c1cc2d529d62fc4bfd940442548fdbc1404e0d53078": {
92
92
  functionName: "promoteRelease_createServerFn_handler",
93
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
93
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
94
94
  },
95
95
  "98c10bdc514eb4d3fe65af546be44452b492a81092cfe45625778a4c9f731727": {
96
96
  functionName: "rollbackRemoteConfigRpc_createServerFn_handler",
97
- importer: () => import("./_ssr/remote-config-rpc-Dd2ete-w.mjs")
97
+ importer: () => import("./_ssr/remote-config-rpc-DMIW8911.mjs")
98
98
  },
99
99
  "a1cb80b19ca72a64fb631ca28ebb9b6941db245983de082d5dd3203ec2eef795": {
100
100
  functionName: "revokeApiKeyRpc_createServerFn_handler",
101
- importer: () => import("./_ssr/api-keys-rpc-Dayd_DRM.mjs")
101
+ importer: () => import("./_ssr/api-keys-rpc-B_ND8xe4.mjs")
102
102
  },
103
103
  "a6f23116eeaf76166d405e28a95213123025613c6603030894e519015bf48032": {
104
104
  functionName: "getRelease_createServerFn_handler",
105
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
105
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
106
106
  },
107
107
  "af71e3c55a659ce46093e33b9d70e729359610eec7d576502e8f0e26c785b317": {
108
108
  functionName: "getRemoteConfigVersionRpc_createServerFn_handler",
109
- importer: () => import("./_ssr/remote-config-rpc-Dd2ete-w.mjs")
109
+ importer: () => import("./_ssr/remote-config-rpc-DMIW8911.mjs")
110
110
  },
111
111
  "b4388826a9b515fb4d2113270aa8ded1c50ba13d7f07ac2b268c41396e87d0a3": {
112
112
  functionName: "listFailureReportsRpc_createServerFn_handler",
113
- importer: () => import("./_ssr/insights-failures-rpc-D6OK70Td.mjs")
113
+ importer: () => import("./_ssr/insights-failures-rpc-DSwMr2Wn.mjs")
114
114
  },
115
115
  "b46c95dba95a6a3e8fa5c9d100e3622fa5ae7af4f38e10fb1ed2fa48289a3a8f": {
116
116
  functionName: "preflightRelease_createServerFn_handler",
117
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
117
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
118
118
  },
119
119
  "b4bf4c461903edcdc44eea52468c737b5b600a586f542138ff022dcbbe86c45c": {
120
120
  functionName: "getBundleActivityRpc_createServerFn_handler",
121
- importer: () => import("./_ssr/insights-recovery-rpc-Ir31GbY1.mjs")
121
+ importer: () => import("./_ssr/insights-recovery-rpc-DNZQ_Cfm.mjs")
122
122
  },
123
123
  "bfcca2365dfef4d071bdcddf97538a2637482c77bb747969dbdcd6769ca98416": {
124
124
  functionName: "getBundleEventsRpc_createServerFn_handler",
125
- importer: () => import("./_ssr/release-adoption-rpc-CreGclHX.mjs")
125
+ importer: () => import("./_ssr/release-adoption-rpc-CfcRvkK0.mjs")
126
126
  },
127
127
  "c504696e68ba764b48c48aa8a40275938640941e473cf9cfdd7b2322d99f9d13": {
128
128
  functionName: "getConsoleAccessRpc_createServerFn_handler",
129
- importer: () => import("./_ssr/auth-rpc-Bg9zjpz5.mjs")
129
+ importer: () => import("./_ssr/auth-rpc-GZIoEvmX.mjs")
130
130
  },
131
131
  "c6f18db42ac40385dbff247095197ee9f3fd3a97dc914efd368ce0ded1f098c6": {
132
132
  functionName: "getInsightsRetentionRpc_createServerFn_handler",
133
- importer: () => import("./_ssr/insights-rpc-BSJ2KM34.mjs")
133
+ importer: () => import("./_ssr/insights-rpc-BMaFJbZQ.mjs")
134
134
  },
135
135
  "d11a48f7251928b7819e2376aed4902fa66277bf6d30312d87ca53468332f256": {
136
136
  functionName: "listAdoptionReleasesRpc_createServerFn_handler",
137
- importer: () => import("./_ssr/release-adoption-rpc-CreGclHX.mjs")
137
+ importer: () => import("./_ssr/release-adoption-rpc-CfcRvkK0.mjs")
138
138
  },
139
139
  "d4c50f40701055145f24873dc90f3c55a5494457a6a03a743339b2ac4545eb19": {
140
140
  functionName: "listInsightsEventsRpc_createServerFn_handler",
141
- importer: () => import("./_ssr/insights-rpc-BSJ2KM34.mjs")
141
+ importer: () => import("./_ssr/insights-rpc-BMaFJbZQ.mjs")
142
142
  },
143
143
  "d5b58722ce514e3b63a377f736b4823c2011782495442ae4870ed547e392c70b": {
144
144
  functionName: "deleteRelease_createServerFn_handler",
145
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
145
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
146
146
  },
147
147
  "e8c24b7247936f045a145ffd5c177fd0e3df3b52769d67dfbd8d1de491d66396": {
148
148
  functionName: "getReleaseCatalogDiagnostics_createServerFn_handler",
149
- importer: () => import("./_ssr/api-rpc-Cf625HwX.mjs")
149
+ importer: () => import("./_ssr/api-rpc-CwIYvIod.mjs")
150
150
  },
151
151
  "fa8c48f0489d97c62b9b68fd0caf0a61b15bad25a42b3866ec36264b4b30bb74": {
152
152
  functionName: "getConsoleAuthProvidersRpc_createServerFn_handler",
153
- importer: () => import("./_ssr/auth-rpc-Bg9zjpz5.mjs")
153
+ importer: () => import("./_ssr/auth-rpc-GZIoEvmX.mjs")
154
154
  },
155
155
  "ff00311d412c8cdfa8ad5b0ba1eb6aa7471d0cc12170e6cc645deb91603d42dd": {
156
156
  functionName: "getReportingInstallationsRpc_createServerFn_handler",
157
- importer: () => import("./_ssr/insights-rpc-BSJ2KM34.mjs")
157
+ importer: () => import("./_ssr/insights-rpc-BMaFJbZQ.mjs")
158
158
  }
159
159
  };
160
160
  async function getServerFnById(id, access) {
@@ -1,8 +1,8 @@
1
1
  import { i as __toESM } from "../../_runtime.mjs";
2
2
  import { bt as require_react, yt as require_jsx_runtime } from "../@base-ui/react+[...].mjs";
3
- import { g as isRedirect } from "./react-router+[...].mjs";
4
3
  import { o as QueryClientProvider } from "../tanstack__react-query.mjs";
5
4
  import { c as hydrate, s as dehydrateQuery } from "../tanstack__query-core.mjs";
5
+ import { g as isRedirect } from "./react-router+[...].mjs";
6
6
  //#region ../../node_modules/.pnpm/@tanstack+router-ssr-query-core@1.169.3_@tanstack+query-core@5.104.0_@tanstack+router-core@1.171.37/node_modules/@tanstack/router-ssr-query-core/dist/esm/index.js
7
7
  var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
8
8
  var shouldDehydrateAllQueries = () => true;
@@ -1,6 +1,6 @@
1
1
  import { yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
2
- import { k as cn } from "./sidebar-BNeODqno.mjs";
3
- //#region node_modules/.nitro/vite/services/ssr/assets/BundleIdDisplay-Cu_uxtLL.js
2
+ import { k as cn } from "./sidebar-B7YP2fgJ.mjs";
3
+ //#region node_modules/.nitro/vite/services/ssr/assets/BundleIdDisplay-CfdWZaFQ.js
4
4
  var import_jsx_runtime = require_jsx_runtime();
5
5
  function BundleIdDisplay({ bundleId, className }) {
6
6
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
@@ -1,11 +1,11 @@
1
- import { a as unavailableReason, n as consoleFeatures } from "./console-features-4xAGfZHw.mjs";
2
1
  import { yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
2
  import { X as ArrowUpRight } from "../_libs/lucide-react.mjs";
4
- import { O as buttonVariants, S as SidebarTrigger } from "./sidebar-BNeODqno.mjs";
5
- import { a as useConsoleFeatures, n as notFoundFeature } from "./console-features-api-BY65aaIY.mjs";
6
- import { t as NotFoundPage } from "./NotFoundPage-O0Y4NQ5N.mjs";
7
- import { i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-B2DK143D.mjs";
8
- //#region node_modules/.nitro/vite/services/ssr/assets/ConsoleFeatureUnavailable-De7nGook.js
3
+ import { O as buttonVariants, S as SidebarTrigger } from "./sidebar-B7YP2fgJ.mjs";
4
+ import { a as unavailableReason, n as consoleFeatures } from "./console-features-4xAGfZHw.mjs";
5
+ import { a as useConsoleFeatures, n as notFoundFeature } from "./console-features-api-CGvuQ6H-.mjs";
6
+ import { t as NotFoundPage } from "./NotFoundPage-BU_eHAyW.mjs";
7
+ import { i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-iekPcPWd.mjs";
8
+ //#region node_modules/.nitro/vite/services/ssr/assets/ConsoleFeatureUnavailable-c-z7PSM1.js
9
9
  var import_jsx_runtime = require_jsx_runtime();
10
10
  var CONSOLE_DEPLOYMENT_GUIDE_URL = "https://hot-updater.dev/docs/guides/console-deployment";
11
11
  /**
@@ -1,14 +1,14 @@
1
1
  import { i as __toESM } from "../_runtime.mjs";
2
2
  import { bt as require_react, yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
3
  import { B as CircleAlert, F as Download, G as Check, I as Copy, Q as ArrowRightLeft, W as ChevronDown, h as RotateCcw, l as Sparkles, tt as Activity, u as Smartphone } from "../_libs/lucide-react.mjs";
4
- import { a as SheetContent, c as SheetTitle, i as Sheet, l as SheetTrigger, o as SheetDescription, s as SheetHeader, t as Button$1 } from "./sidebar-BNeODqno.mjs";
5
- import { i as EmptyHeader, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-B2DK143D.mjs";
6
- import { a as Badge } from "./badge-DN8fj73I.mjs";
4
+ import { a as SheetContent, c as SheetTitle, i as Sheet, l as SheetTrigger, o as SheetDescription, s as SheetHeader, t as Button$1 } from "./sidebar-B7YP2fgJ.mjs";
5
+ import { a as Badge } from "./badge-DTvV4lbY.mjs";
7
6
  import { n as toast } from "../_libs/sonner.mjs";
7
+ import { i as EmptyHeader, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-iekPcPWd.mjs";
8
8
  import { n as describeFailure } from "./insights-failures-BJN3RfLu.mjs";
9
- import { s as isBuiltinBundle, t as BuiltinBundleBadge } from "./InsightsPageHeader-BqNItX24.mjs";
10
- import { t as HashValueDisplay } from "./HashValueDisplay-Dk7gXwSZ.mjs";
11
- //#region node_modules/.nitro/vite/services/ssr/assets/EventDetails-B6qJU3Ho.js
9
+ import { s as isBuiltinBundle, t as BuiltinBundleBadge } from "./InsightsPageHeader-DwS2nzR4.mjs";
10
+ import { t as HashValueDisplay } from "./HashValueDisplay-Bq6n1UwX.mjs";
11
+ //#region node_modules/.nitro/vite/services/ssr/assets/EventDetails-CDLSQDcM.js
12
12
  var import_react = /* @__PURE__ */ __toESM(require_react());
13
13
  var import_jsx_runtime = require_jsx_runtime();
14
14
  var eventTypes = {
@@ -1,7 +1,7 @@
1
1
  import { yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
2
- import { D as TooltipTrigger, T as TooltipContent, k as cn, w as Tooltip$1 } from "./sidebar-BNeODqno.mjs";
2
+ import { D as TooltipTrigger, T as TooltipContent, k as cn, w as Tooltip$1 } from "./sidebar-B7YP2fgJ.mjs";
3
3
  import { n as toast } from "../_libs/sonner.mjs";
4
- //#region node_modules/.nitro/vite/services/ssr/assets/HashValueDisplay-Dk7gXwSZ.js
4
+ //#region node_modules/.nitro/vite/services/ssr/assets/HashValueDisplay-Bq6n1UwX.js
5
5
  var import_jsx_runtime = require_jsx_runtime();
6
6
  var shortenIdentifier = (value, maxLength = 12) => value.length > maxLength ? `${value.slice(0, Math.max(1, maxLength - 4))}…${value.slice(-4)}` : value;
7
7
  function HashValueDisplay({ value, maxLength = 12, className, buttonClassName }) {
@@ -1,13 +1,13 @@
1
- import { r as isConsoleFeatureUnavailableError } from "./console-features-4xAGfZHw.mjs";
2
1
  import { yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
3
2
  import { E as List, K as ChartNoAxesCombined, O as Info, i as TriangleAlert } from "../_libs/lucide-react.mjs";
4
- import { O as buttonVariants, S as SidebarTrigger, k as cn } from "./sidebar-BNeODqno.mjs";
3
+ import { O as buttonVariants, S as SidebarTrigger, k as cn } from "./sidebar-B7YP2fgJ.mjs";
4
+ import { a as Badge, i as AlertTitle, r as AlertDescription, t as Alert } from "./badge-DTvV4lbY.mjs";
5
+ import { r as isConsoleFeatureUnavailableError } from "./console-features-4xAGfZHw.mjs";
5
6
  import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
6
- import { i as useConsoleFeature } from "./console-features-api-BY65aaIY.mjs";
7
- import { a as Badge, i as AlertTitle, r as AlertDescription, t as Alert } from "./badge-DN8fj73I.mjs";
7
+ import { i as useConsoleFeature } from "./console-features-api-CGvuQ6H-.mjs";
8
8
  import { n as usageMetrics } from "./insights-usage-CHqvtehH.mjs";
9
- import { i as TabsTrigger, r as TabsList, t as Tabs$1 } from "./tabs-CTxsEjmq.mjs";
10
- //#region node_modules/.nitro/vite/services/ssr/assets/InsightsPageHeader-BqNItX24.js
9
+ import { i as TabsTrigger, r as TabsList, t as Tabs$1 } from "./tabs-CtTLuq5L.mjs";
10
+ //#region node_modules/.nitro/vite/services/ssr/assets/InsightsPageHeader-DwS2nzR4.js
11
11
  var import_jsx_runtime = require_jsx_runtime();
12
12
  function InsightsErrorAlert({ error, fallbackTitle }) {
13
13
  if (isConsoleFeatureUnavailableError(error)) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, { children: [