From 7aa8a63a7f51415df6d54a41052ccaf4370583d5 Mon Sep 17 00:00:00 2001 From: PierreDillard <7gaspard77@gmail.com> Date: Fri, 27 Feb 2026 09:09:44 +0000 Subject: [PATCH] gpac_monitor: update to gpac_monitor@d633456 Release test: sync master-test into ci/test Notes: - Validate multiline merge message handling (PR body + GPAC commit) - Expect [noCI] at end of GPAC commit messageMerge branch 'master-test' into ci/test Merge branch 'master-test' into ci/test * master-test: feat: add new build in /release refactor: remove unnecessary comment in FilterManager for clarity feat:update github action o reuse the commit message [noCI] --- share/scripts/rmt/index.html | 108 +++++++++++++++++------------------ share/scripts/rmt/server.js | 2 +- 2 files changed, 55 insertions(+), 55 deletions(-) diff --git a/share/scripts/rmt/index.html b/share/scripts/rmt/index.html index bef9230e6c..8234b8a25a 100644 --- a/share/scripts/rmt/index.html +++ b/share/scripts/rmt/index.html @@ -10,7 +10,7 @@ - - + `,children:[h.jsxs("div",{className:"flex-1 text-left",children:[h.jsx("div",{className:"font-medium",children:f.name}),h.jsx("div",{className:"text-xs text-gray-500",children:f.address})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[(n==null?void 0:n.id)===f.id&&h.jsx(ht,{variant:"success",className:"text-[8px] px-1.5 py-0 h-4",children:"✓"}),h.jsx("span",{className:`w-2 h-2 rounded-full ${EX(f.status)}`})]})]},f.id))}),h.jsx("div",{className:"mt-2 pt-2 border-t border-monitor-line",children:h.jsx("button",{onClick:c,className:"w-full px-3 py-2 text-sm text-left text-gray-400 hover:text-white hover:bg-white/5 rounded-lg transition-colors",children:"Manage connections..."})})]}),h.jsx(XX,{isOpen:i,onClose:d})]})});ZX.displayName="ConnectionSelector";const QX=y.memo(({icon:e,title:t,count:n,colorClass:r,disabled:o,onClick:i})=>{const s=o??(n!=null?n<=0:!1);return h.jsxs("button",{onClick:i,disabled:s,title:t,"aria-label":t,className:`flex items-center gap-2 px-3 py-1.5 rounded-md font-ui text-sm transition-none ${s?"opacity-50 cursor-not-allowed":"hover:bg-gray-800/60 cursor-pointer"}`,children:[h.jsx(e,{className:`w-3.5 h-3.5 transition-none ${s?"text-gray-600":r}`}),n!=null&&h.jsx(hg,{value:n,className:`font-medium ${s?"text-gray-600":r}`})]})},(e,t)=>e.count===t.count&&e.disabled===t.disabled);QX.displayName="LogShortcutButton";const r6=["bg-blue-500/20 text-blue-300","bg-green-500/20 text-green-300","bg-yellow-500/20 text-yellow-300","bg-purple-500/20 text-purple-300","bg-pink-500/20 text-pink-300","bg-indigo-500/20 text-indigo-300","bg-cyan-500/20 text-cyan-300","bg-orange-500/20 text-orange-300"];function X3e(e){const t=String(e);let n=0;for(let r=0;re>>>0,JX=y.memo(()=>{const[e,t]=y.useState(!1),n=yI(),r=Xe(hxe),o=y.useCallback(a=>{n({filterKeys:[`t:${a}`]}),t(!1)},[n]);if(r.length===0)return null;const i=r.reduce((a,l)=>a+l.total,0),s=a=>a===100?"+100":String(a);return h.jsxs(wg,{open:e,onOpenChange:t,children:[h.jsx(Sg,{asChild:!0,children:h.jsxs("button",{className:"flex items-center gap-2 px-3 py-1.5 rounded-md font-ui text-sm hover:bg-gray-800/60 cursor-pointer transition-none",title:`${i} alert(s) across ${r.length} thread(s)`,"aria-label":"Filter logs by thread",children:[h.jsx(m_e,{className:"w-3.5 h-3.5 text-blue-400 transition-none"}),h.jsx(hg,{value:r.length,className:"font-medium text-blue-400"})]})}),h.jsxs(_g,{align:"end",className:"bg-monitor-panel border-gray-700 rounded-md shadow-lg z-50 min-w-[220px] max-h-[320px] overflow-hidden",children:[h.jsx("div",{className:"px-3 py-2 text-xs text-gray-400 border-b border-gray-700 font-semibold",children:"Threads with Alerts"}),h.jsx("div",{className:"max-h-[280px] overflow-y-auto",children:r.map(a=>{const l=Z3e(a.threadId),c=Q3e(a.threadId);return h.jsxs("button",{onClick:()=>o(a.threadId),className:"w-full px-3 py-2 flex items-center justify-between hover:bg-gray-800 text-left ",children:[h.jsx("div",{className:"flex items-center gap-2",children:h.jsxs("span",{className:`px-2 py-0.5 rounded text-xs font-mono transition-none ${l}`,children:["T",c]})}),h.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[a.errors>0&&h.jsxs("span",{className:"text-red-400 font-medium",children:[a.errors," err"]}),a.warnings>0&&h.jsxs("span",{className:"text-amber-400 font-medium transition-noney",children:[a.warnings," warn"]}),a.info!==void 0&&a.info>0&&h.jsxs("span",{className:"text-info font-medium transition-none",children:[s(a.info)," info"]})]})]},a.threadId)})})]})]})});JX.displayName="ThreadFilterDropdown";const J3e=[{key:"errors",title:"Show error logs",level:Mt.ERROR,icon:Tq,colorClass:"text-danger"},{key:"warnings",title:"Show warning logs",level:Mt.WARNING,icon:ZP,colorClass:"text-warning"},{key:"info",title:"Show info logs",level:Mt.INFO,icon:W0,colorClass:"text-info"}],eZ=y.memo(()=>{const e=Xe(fxe),t=yI(),n={errors:e.error,warnings:e.warning,info:e.info};return h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-xs font-medium text-muted uppercase tracking-wider",children:"Logs"}),J3e.map(r=>h.jsx(QX,{icon:r.icon,title:`${n[r.key]} - ${r.title}`,count:n[r.key],colorClass:r.colorClass,onClick:()=>t({levels:[r.level]})},r.key)),h.jsx("div",{className:"h-4 w-px bg-gray-700"}),h.jsx(JX,{})]})});eZ.displayName="LogCounters";const e4e=()=>{const e=Gn(),t=Xe(a=>a.layout.isSidebarOpen),[n,r]=y.useState(!1),[o,i]=y.useState(!1),s=y.useRef(null);return y.useEffect(()=>{const a=l=>{s.current&&!s.current.contains(l.target)&&r(!1)};return n&&document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[n]),h.jsxs("header",{className:"h-14 bg-monitor-app border-b border-white/10 px-4 text-white/80",children:[h.jsxs("div",{className:"h-full flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-6",children:[h.jsx("h1",{className:"text-xl font-semibold text-gray-200 font-ui",children:"GPAC Monitor"}),h.jsx("div",{className:"h-6 w-px bg-gray-700"}),h.jsx("button",{onClick:()=>window.location.reload(),className:"p-2 text-gray-400 hover:text-white rounded-lg hover:bg-gray-800 ",title:"Reload page","aria-label":"Reload page",children:h.jsx(F0e,{className:"w-4 h-4"})}),h.jsx("span",{"aria-label":"Connection selector",title:"Connection selector",children:h.jsx(ZX,{})}),h.jsx("span",{"aria-label":"Connection selector",title:"Connection selector"}),h.jsx("span",{"aria-label":"Widget selector",title:"Widget selector",children:h.jsx(I3e,{isOpen:o,onToggle:()=>i(!o),onClose:()=>i(!1),"aria-label":"Widget selector"})}),h.jsx("span",{"aria-label":"Log counters",title:"Log counters",children:h.jsx(eZ,{})})]}),h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsxs("button",{onClick:()=>e(ZEe()),className:"flex items-center gap-2 px-3 py-2 text-gray-300 font-ui hover:text-white text-sm rounded-lg hover:bg-gray-800 ",title:t?"Close sidebar":"Open sidebar",children:[t?h.jsx(j0e,{className:"w-4 h-4"}):h.jsx(L0e,{className:"w-4 h-4"}),h.jsxs("span",{className:"hidden sm:inline",children:[t?"Hide":"Show"," Sidebar"]})]}),h.jsx("div",{className:"h-6 w-px bg-gray-700"}),h.jsxs("button",{onClick:()=>r(!n),className:"flex items-center gap-2 px-3 py-2 text-gray-300 font-ui hover:text-white text-sm rounded-lg hover:bg-gray-800 ",children:[h.jsx(_X,{className:"w-4 h-4"}),"Layouts"]})]})]}),n&&h.jsx("div",{ref:s,className:"absolute top-14 right-4 border border-gray-700 rounded-lg shadow-lg z-50 min-w-80",children:h.jsx(T3e,{})})]})};var bw="Switch",[t4e,C5e]=to(bw),[n4e,r4e]=t4e(bw),tZ=y.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:s,disabled:a,value:l="on",onCheckedChange:c,form:d,...f}=e,[p,g]=y.useState(null),v=kt(t,C=>g(C)),b=y.useRef(!1),_=p?d||!!p.closest("form"):!0,[x,w]=xs({prop:o,defaultProp:i??!1,onChange:c,caller:bw});return h.jsxs(n4e,{scope:n,checked:x,disabled:a,children:[h.jsx(Ze.button,{type:"button",role:"switch","aria-checked":x,"aria-required":s,"data-state":iZ(x),"data-disabled":a?"":void 0,disabled:a,value:l,...f,ref:v,onClick:yt(e.onClick,C=>{w(E=>!E),_&&(b.current=C.isPropagationStopped(),b.current||C.stopPropagation())})}),_&&h.jsx(oZ,{control:p,bubbles:!b.current,name:r,value:l,checked:x,required:s,disabled:a,form:d,style:{transform:"translateX(-100%)"}})]})});tZ.displayName=bw;var nZ="SwitchThumb",rZ=y.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=r4e(nZ,n);return h.jsx(Ze.span,{"data-state":iZ(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});rZ.displayName=nZ;var o4e="SwitchBubbleInput",oZ=y.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const s=y.useRef(null),a=kt(s,i),l=kq(n),c=db(t);return y.useEffect(()=>{const d=s.current;if(!d)return;const f=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});g.call(d,n),d.dispatchEvent(v)}},[l,n,r]),h.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});oZ.displayName=o4e;function iZ(e){return e?"checked":"unchecked"}var sZ=tZ,i4e=rZ;const aZ=y.forwardRef(({className:e,...t},n)=>h.jsx(sZ,{className:nt("peer inline-flex h-4 w-12 shrink-0 cursor-pointer items-center rounded-md transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-60 data-[state=checked]:bg-emerald-400/90 data-[state=unchecked]:bg-rose-600/50",e),...t,ref:n,children:h.jsx(i4e,{className:nt("pointer-events-none block h-5 w-5 rounded-md bg-slate-300 shadow-md ring-0 transition-transform duration-200 data-[state=checked]:translate-x-6 data-[state=unchecked]:translate-x-0.5")})}));aZ.displayName=sZ.displayName;function Qp({size:e="md",className:t,...n}){const r={sm:"h-4 w-4 border-2",md:"h-8 w-8 border-2",lg:"h-12 w-12 border-3"};return h.jsx("div",{className:nt("inline-block animate-spin rounded-full border-solid border-current border-r align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]",r[e],t),role:"status",style:{willChange:"transform",transform:"translateZ(0)"},...n,children:h.jsx("span",{className:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]",children:"Loading..."})})}const o6="h-7 text-xs bg-gray-800/60 border-gray-600/50 hover:bg-gray-700/50 focus:ring-1 focus:ring-blue-500/50 transition-colors",kM=({type:e,value:t,onChange:n,rules:r,debounce:o=!1,debounceMs:i=100,isPending:s=!1})=>{const[a,l]=y.useState(t??(e==="string"?"":e==="number"?null:!1)),c=HI();BI(()=>{!o||c||a===t||n(a)},i,[a]),y.useEffect(()=>{o&&l(t??(e==="string"?"":e==="number"?null:!1))},[t,e,o]);const d=p=>{l(p),o||n(p)};if(e==="boolean"){const p=(r==null?void 0:r.disabled)||s,v=o?!!a:typeof t=="string"?t==="true"||t==="1":!!t;return h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(aZ,{checked:v,onCheckedChange:d,disabled:p}),s&&h.jsx(Qp,{size:"sm",className:"text-blue-400"})]})}if(e==="number"){const p=(r==null?void 0:r.disabled)||s;return h.jsxs("div",{className:"flex items-center gap-2 w-full",children:[h.jsx(ol,{type:"number",value:String(o?a??"":t??""),onChange:g=>{const v=g.target.value===""?null:Number(g.target.value);d(v)},min:r==null?void 0:r.min,max:r==null?void 0:r.max,step:r==null?void 0:r.step,disabled:p,className:o6}),s&&h.jsx(Qp,{size:"sm",className:"text-blue-400"})]})}const f=(r==null?void 0:r.disabled)||s;return h.jsxs("div",{className:"flex items-center gap-2 w-full",children:[h.jsx(ol,{type:"text",value:o?a:t||"",onChange:p=>d(p.target.value||null),placeholder:r==null?void 0:r.placeholder,disabled:f,className:o6}),s&&h.jsx(Qp,{size:"sm",className:"text-blue-400"})]})},s4e=({value:e,onChange:t,rules:n,argName:r,isPending:o=!1})=>h.jsx(kM,{type:"boolean",value:e,onChange:t,rules:n,argName:r,isPending:o}),a4e=({value:e,onChange:t,rules:n,isPending:r=!1})=>h.jsx(kM,{type:"number",value:e,onChange:t,rules:n,isPending:r}),hN=({value:e,onChange:t,rules:n,enumOptions:r,isPending:o=!1})=>{const i=y.useMemo(()=>r?r.split("|").map(s=>{const a=s.trim();if(a.includes("=")){const[,l]=a.split("=");return l.trim()}return a}):[],[r]);if(r){const s=i.length>0?i[0]:void 0,a=e==null?s:String(e),l=(n==null?void 0:n.disabled)||o;return h.jsxs("div",{className:"flex items-center gap-2 w-full",children:[h.jsx("select",{value:a,onChange:c=>t(c.target.value),disabled:l,className:nt("w-full h-7 px-2 py-0 rounded text-xs","bg-gray-800/50 border border-gray-600/50","hover:bg-gray-700/50 transition-colors","focus:outline-none focus:ring-1 focus:ring-blue-500/50 focus:border-blue-500/50","disabled:opacity-50 disabled:cursor-not-allowed"),children:i.map((c,d)=>h.jsx("option",{value:c,children:c},d))}),o&&h.jsx(Qp,{size:"sm",className:"text-blue-400"})]})}return h.jsx(kM,{type:"string",value:Array.isArray(e)?e.join(","):e,onChange:t,rules:n,debounce:!0,isPending:o})},l4e=({value:e,onChange:t,rules:n,isPending:r=!1})=>{const o=c=>{if(c==null)return[0,1];if(typeof c=="number")return[c,1];if(typeof c=="string"){const d=c.split("/");if(d.length===2){const f=parseInt(d[0]),p=parseInt(d[1]);if(!isNaN(f)&&!isNaN(p)&&p!==0)return[f,p]}else if(d.length===1){const f=parseInt(d[0]);if(!isNaN(f))return[f,1]}}return[0,1]},[i,s]=y.useState(o(e)),a=HI();BI(()=>{a||`${i[0]}/${i[1]}`===e||(i[1]===0?t("0"):t(`${i[0]}/${i[1]}`))},1e3,[i]),y.useEffect(()=>{s(o(e))},[e]);const l=(n==null?void 0:n.disabled)||r;return h.jsxs("div",{className:"flex items-center gap-1.5 w-full",children:[h.jsx(ol,{type:"number",value:i[0],onChange:c=>{const d=parseInt(c.target.value);isNaN(d)||s([d,i[1]])},disabled:l,className:"h-7 w-16 text-xs bg-gray-800/60 border-gray-600/50 hover:bg-gray-700/50 focus:ring-1 focus:ring-blue-500/50 transition-colors"}),h.jsx("span",{className:"text-gray-500 text-xs",children:"/"}),h.jsx(ol,{type:"number",value:i[1],onChange:c=>{const d=parseInt(c.target.value);isNaN(d)||s([i[0],d])},disabled:l,className:"h-7 w-16 text-xs bg-gray-800/60 border-gray-600/50 hover:bg-gray-700/50 focus:ring-1 focus:ring-blue-500/50 transition-colors"}),r&&h.jsx(Qp,{size:"sm",className:"text-info"})]})},c4e=({argument:e,value:t,onChange:n,rules:r,standalone:o=!1,filterId:i,isPending:s=!1})=>{const[a,l]=y.useState(t),c=HI(),d=Gn();BI(()=>{if(!(c||a===t))try{const v=e.min_max_enum&&(e.min_max_enum.includes("|")||e.min_max_enum.includes("="));let b;v?b=String(a):b=Dz(a,e.type),n(b),e.update&&i&&!o&&d(sx({filterId:i,argName:e.name,argValue:b}))}catch(v){console.error("Error converting value:",v),l(t)}},1e3,[a,i,e.update,e.min_max_enum]),y.useEffect(()=>{l(t)},[t]);const f=v=>{l(v??void 0)},p=v=>{const b=e.min_max_enum&&(e.min_max_enum.includes("|")||e.min_max_enum.includes("="));let _;b?_=String(v):_=Dz(v,e.type),l(_),n(_),i&&e.update&&!o&&d(sx({filterId:i,argName:e.name,argValue:_}))},g=()=>{const v={value:a,onChange:i&&e.type==="bool"?p:f,rules:{...r,disabled:r==null?void 0:r.disabled},argument:e,isPending:s};switch(e.min_max_enum&&(e.min_max_enum.includes("|")||e.min_max_enum.includes("="))?"str":e.type){case"bool":return h.jsx(s4e,{...v,argName:e.name});case"uint":case"sint":case"luint":case"lsint":case"flt":case"dbl":return h.jsx(a4e,{...v});case"frac":case"lfrac":return h.jsx(l4e,{...v});case"v2di":case"v2d":case"v3di":case"v4di":return h.jsx(hN,{...v,value:typeof a=="object"&&a!==null?Object.values(a).join("x"):String(a||""),onChange:_=>{if(!_||Array.isArray(_)){f(null);return}const x=_.split("x").map(E=>parseFloat(E)||0),w=["x","y","z","w"],C=x.reduce((E,R,P)=>({...E,[w[P]]:R}),{});f(C)}});case"strl":case"uintl":case"sintl":case"4ccl":case"v2il":return h.jsx(hN,{...v,value:Array.isArray(a)?a.join(","):void 0,onChange:_=>{const x=Array.isArray(_)?_.join(","):_;f(x?x.split(",").filter(Boolean):null)}});case"str":default:return h.jsx(hN,{...v,enumOptions:e.min_max_enum})}};return o?g():h.jsx("div",{className:"w-full",children:g()})},u4e=e=>{const t=e==null?void 0:e.toLowerCase();return t==="expert"?"border-l-2 border-l-red-500":t==="advanced"?"border-l-2 border-l-orange-500":""},lZ=y.memo(({arg:e,updateStatus:t,onValueChange:n})=>{const r=e.type||typeof e.value,o=(t==null?void 0:t.status)==="pending",i=(t==null?void 0:t.status)==="success",s=!!e.update,a=y.useCallback(l=>{n(e.name,l)},[e.name,n]);return h.jsxs("div",{className:nt("py-2 px-3 duration-150","hover:bg-gray-800/30",u4e(e.hint),o&&"opacity-60"),children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx("h4",{className:nt("text-xs font-medium truncate flex-1",s?"text-info":"text-slate-300"),children:e.name}),e.desc&&h.jsx(KU,{delayDuration:150,children:h.jsxs(XU,{children:[h.jsx(ZU,{asChild:!0,children:h.jsx("div",{children:h.jsx(k3e,{className:nt("w-3 h-3 cursor-pointer transition-colors",s?"text-slate-300 hover:text-slate-200":"text-gray-500 hover:text-gray-400")})})}),h.jsxs(MP,{side:"left",sideOffset:8,className:"max-w-xs z-[100] rounded bg-gray-900 px-2 py-1 text-[10px] text-gray-200 border border-gray-700",children:[h.jsx("p",{children:e.desc}),h.jsx(QU,{className:"fill-gray-900"})]})]})}),h.jsx("div",{className:"flex gap-1 shrink-0 items-center",children:i&&h.jsx(ht,{variant:"success",className:"text-[8px] px-1.5 py-0 h-4",children:"✓"})})]}),h.jsx("div",{className:"text-xs",children:h.jsx(c4e,{argument:{name:e.name,type:r,desc:e.desc,hint:e.hint,default:e.default,min_max_enum:e.min_max_enum,update:!!e.update,update_sync:!!e.update_sync},value:(t==null?void 0:t.value)??e.value,onChange:a,rules:{disabled:!e.update||o,min:e.min,max:e.max,step:e.step},isPending:o})})]})});lZ.displayName="ArgumentItem";const d4e=({filterId:e,filterArgs:t,showExpert:n=!1,showAdvanced:r=!1,searchQuery:o=""})=>{const i=Gn(),s=y.useMemo(()=>dxe(),[]),a=Xe(f=>s(f,e.toString(),t)),l=y.useCallback((f,p)=>{const g=t.find(v=>v.name===f);g!=null&&g.update&&i(sx({filterId:e.toString(),argName:f,argValue:p}))},[i,e,t]),c=y.useMemo(()=>t.filter(f=>{var g;const p=(g=f.hint)==null?void 0:g.toLowerCase();return!(p==="expert"&&!n||p==="advanced"&&!r)}),[t,n,r]),d=eI(c,o,y.useCallback(f=>[f.name,f.desc||""],[]));return d.length===0&&o?h.jsx("div",{className:"text-center text-monitor-text-muted py-6 text-xs",children:"No arguments match your search."}):h.jsx("div",{className:"divide-y divide-monitor-divider bg-monitor-paneloverflow-y-auto",children:d.map(f=>h.jsx(lZ,{arg:f,updateStatus:a==null?void 0:a[f.name],onValueChange:l},f.name))})},cZ=y.memo(({property:e})=>h.jsx("div",{className:"px-3 py-2 hover:bg-monitor-hover transition-colors",children:h.jsxs("div",{className:"flex flex-col gap-1",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsx("div",{className:"text-xs font-cond text-monitor-text-primary",children:e.name}),h.jsx("div",{className:"text-xs text-monitor-text-muted",children:e.type})]}),h.jsx("div",{className:"text-xs text-info font-cond break-all max-h-32 overflow-y-auto",children:Nme(e.value,e.type)})]})}));cZ.displayName="PropertyItem";const uZ=y.memo(({properties:e,searchQuery:t=""})=>{const n=eI(e,t,y.useCallback(r=>[r.name,String(r.value??"")],[]));return!e||e.length===0?h.jsx("div",{className:"text-center text-monitor-text-muted py-6 text-xs",children:"Loading properties..."}):n.length===0&&t?h.jsx("div",{className:"text-center text-monitor-text-muted py-6 text-xs",children:"No properties match your search."}):h.jsx("div",{className:"divide-y divide-monitor-divider bg-monitor-panel overflow-y-auto",children:n.map(r=>h.jsx(cZ,{property:r},r.name))})});uZ.displayName="IPIDPropertiesContent";const ET=y.forwardRef(({className:e,...t},n)=>h.jsx(nh,{ref:n,className:nt("peer h-4 w-4 shrink-0 border border-gray-500 rounded-sm transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 disabled:cursor-not-allowed disabled:opacity-60 data-[state=checked]:bg-emerald-400/90 data-[state=checked]:border-emerald-400",e),...t,children:h.jsx(fg,{className:nt("flex items-center justify-center text-slate-900 font-bold"),children:h.jsx(SX,{className:"h-3 w-3"})})}));ET.displayName=nh.displayName;const i6=({filterName:e,streamType:t,onClose:n,showExpert:r=!1,showAdvanced:o=!1,onToggleExpert:i,onToggleAdvanced:s,mode:a="filter",onSearchChange:l})=>{const c=t?Mme(t):"#4CC9F0";return h.jsxs("div",{className:"bg-monitor-surface border-b border-monitor-line",children:[h.jsxs("div",{className:"px-3 pt-3 pb-2 flex items-center justify-between",children:[h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h3",{className:"text-sm font-semibold text-monitor-active-filter truncate pb-1 border-b-2 inline-block",style:{borderBottomColor:c},children:e}),t&&h.jsxs("p",{className:"text-xs text-monitor-text-muted mt-0.5",children:["(",t,")"]}),h.jsx("div",{className:"flex gap-2 mt-1 text-xs text-monitor-text-muted",children:h.jsx("p",{children:a==="ipid"?"IPID Properties":"Filter Options"})})]}),h.jsx("button",{onClick:n,className:"p-1 hover:bg-white/5 rounded shrink-0","aria-label":"Close panel",children:h.jsx(f_e,{className:"w-4 h-4 text-monitor-text-secondary"})})]}),a==="filter"&&s&&i&&h.jsxs("div",{className:"px-3 pb-3 flex gap-4 text-xs",children:[h.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[h.jsx(ET,{checked:o,onCheckedChange:s}),h.jsx("span",{className:"text-amber-400",children:"Advanced"})]}),h.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[h.jsx(ET,{checked:r,onCheckedChange:i}),h.jsx("span",{className:"text-amber-600",children:"Expert"})]})]}),l&&h.jsx("div",{className:"px-3 pb-3",children:h.jsx(Rq,{onSearchChange:l,placeholder:a==="ipid"?"Filter properties...":"Filter arguments...",debounceMs:150})})]})},s6=[],f4e=(e,t)=>{const{stats:n}=tY(e,e!==void 0),r=y.useRef(s6);return y.useMemo(()=>{if(!(n!=null&&n.ipids)||t===void 0)return s6;const o=Object.values(n.ipids)[t];if(!(o!=null&&o.properties))return r.current;const i=Object.values(o.properties);return i.length===r.current.length&&i.every((s,a)=>{var l;return s.value===((l=r.current[a])==null?void 0:l.value)})?r.current:(r.current=i,i)},[n==null?void 0:n.ipids,t])},h4e=e=>{const t=sh(),[n,r]=y.useState([]);return y.useEffect(()=>{if(e===void 0){r([]);return}return t.getFilterArgsHandler().subscribeToFilterArgsDetails(e,i=>{r(i)})},[e,t]),n},p4e=()=>{const{sidebarContent:e,closeSidebar:t}=jb(),n=Xe(_=>_.graph.filters),r=y.useMemo(()=>e?jme(n,e.filterIdx):null,[n,e]),[o,i]=y.useState(!1),[s,a]=y.useState(!1),[l,c]=y.useState(""),d=(e==null?void 0:e.type)==="pid-props"?e.filterIdx:void 0,f=(e==null?void 0:e.type)==="pid-props"?e.ipidIdx:void 0,p=(e==null?void 0:e.type)==="filter-args"?e.filterIdx:void 0,g=f4e(d,f),v=h4e(p);y.useEffect(()=>{c("")},[e]);const b=y.useCallback(_=>{c(_)},[]);return e?h.jsxs("div",{className:"flex flex-col mt-4 flex-1 bg-monitor-surface border border-monitor-line",children:[h.jsx("div",{className:"sticky top-0 z-20 bg-monitor-surface border-b border-monitor-line",children:e.type==="pid-props"?h.jsx(i6,{filterName:`${(r==null?void 0:r.name)||"Filter"} IPIDs`,filterIdx:e.filterIdx,streamType:r==null?void 0:r.streamType,mode:"ipid",onClose:t,onSearchChange:b}):e.type==="filter-args"?h.jsx(i6,{filterName:e.filterName,filterIdx:e.filterIdx,streamType:r==null?void 0:r.streamType,mode:"filter",showExpert:o,showAdvanced:s,onToggleExpert:i,onToggleAdvanced:a,onClose:t,onSearchChange:b}):null}),h.jsx("div",{className:"flex-1 overflow-y-auto",children:e.type==="pid-props"?h.jsx(uZ,{properties:g,searchQuery:l}):e.type==="filter-args"?Array.isArray(v)&&v.length>0?h.jsx(d4e,{filterId:e.filterIdx,filterArgs:v,showExpert:o,showAdvanced:s,searchQuery:l}):h.jsx("div",{className:"text-center text-monitor-text-muted py-6 text-xs",children:"Loading arguments..."}):null})]}):h.jsxs("div",{className:"flex flex-col bg-monitor-panel items-center justify-center p-4 text-center ring-1 ring-monitor-line rounded-xl mt-4",children:[h.jsx(R3e,{className:"w-12 h-12 text-monitor-text-muted mb-3"}),h.jsx("h3",{className:"text-sm font-medium text-monitor-text-secondary mb-1",children:"No selection"}),h.jsx("p",{className:"text-xs text-monitor-text-muted",children:"Click on a filter settings to see properties"})]})},m4e=()=>h.jsx("aside",{className:"w-72 bg-monitor-app border-gray-800 h-full flex flex-col bg-opacity-90",role:"complementary","aria-label":"Dashboard widgets sidebar",children:h.jsx("div",{className:"flex-1 overflow-y-auto px-4 pb-4",children:h.jsx(p4e,{})})}),g4e="group fixed left-52 top-12 z-20 will-change-transform rounded-full border border-slate-700/40 ring-1 ring-slate-700/50 shadow-lg bg-slate-800/80 hover:bg-slate-700/80 backdrop-blur-sm focus:outline-none focus-visible:ring-2 focus-visible:ring-violet-400/60 motion-safe:transition-[transform,background-color] motion-safe:duration-200 active:scale-[0.98]",v4e="absolute inset-0 rounded-full bg-gradient-to-b from-slate-700/70 to-slate-900/70 border border-slate-600/40",y4e="pointer-events-none absolute inset-0 rounded-full ring-2 ring-violet-500/15 group-hover:ring-violet-400/25 motion-safe:transition",x4e="relative h-5 w-5 text-slate-200 transform group-hover:-translate-x-0.5 motion-safe:transition-transform",dZ=y.memo(({onClose:e})=>{const t=y.useRef(e);y.useEffect(()=>{t.current=e},[e]),y.useEffect(()=>{const r=o=>{var s;(o.metaKey||o.ctrlKey)&&o.key.toLowerCase()==="b"&&(o.preventDefault(),(s=t.current)==null||s.call(t))};return window.addEventListener("keydown",r,{capture:!1}),()=>window.removeEventListener("keydown",r)},[]);const n=y.useMemo(()=>h.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:x4e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:h.jsx("path",{d:"M15 18l-6-6 6-6"})}),[]);return h.jsx("button",{onClick:()=>{var r;return(r=t.current)==null?void 0:r.call(t)},className:g4e,"aria-label":"Close sidebar",title:"Close sidebar • Ctrl/⌘ + B","aria-controls":"app-sidebar","aria-expanded":!0,children:h.jsxs("div",{className:"relative h-9 w-9 grid place-items-center rounded-full select-none",children:[h.jsx("div",{className:v4e}),h.jsx("span",{className:y4e}),n]})})});dZ.displayName="SidebarCloseButton";const b4e=t6.WidthProvider(t6.Responsive),w4e=()=>{const e=Gn(),t=Xe(l=>l.widgets.activeWidgets),n=Xe(l=>l.widgets.configs),r=Xe(l=>l.layout.isSidebarOpen),o=y.useRef(!1),i=y.useMemo(()=>{const l=window.innerHeight-64;return Math.floor(l/14.8)},[]),s=y.useMemo(()=>({lg:t.map(l=>({i:l.id,x:l.x,y:l.y,w:l.w,h:l.h,minW:2,minH:2}))}),[t]),a=y.useCallback(l=>{const c=pLe(l.type);if(!c)return console.warn(`No definition found for widget type: ${l.type}`),null;const d=c.component;return h.jsx("div",{children:h.jsx(d,{id:l.id,config:n[l.id]||{isMaximized:!1,isMinimized:!1,settings:{}},isDetached:l.isDetached,detachedFilterIdx:l.detachedFilterIdx})},l.id)},[n]);return h.jsxs("div",{className:"h-screen bg-main",children:[h.jsx("div",{className:"fixed top-0 left-0 right-0 h-16 z-20",children:h.jsx(e4e,{})}),h.jsxs("div",{className:"flex pt-8 h-[calc(100vh-4rem)]",children:[h.jsx("div",{id:"app-sidebar",className:"fixed top-16 bottom-0 left-0 w-72 z-10 bg-slate-800/95 transition-transform duration-300 ease-in-out will-change-transform",style:{transform:r?"translateX(0)":"translateX(-100%)"},children:h.jsx(m4e,{})}),r&&h.jsx(dZ,{onClose:()=>e(xI())}),h.jsx("main",{className:"flex-1 h-full pb-4 pt-4 pl-0 transition-transform duration-300 will-change-transform",style:{transform:r?"translateX(256px)":"translateX(0)",paddingRight:r?"272px":"16px",opacity:o.current?.2:1},children:h.jsx(b4e,{className:"layout h-full",layouts:s,breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:24,md:24,sm:12,xs:6,xxs:2},rowHeight:i,onDragStart:()=>{o.current=!0},onDragStop:(l,c,d)=>{o.current=!1,e(Fz({id:d.i,x:d.x,y:d.y,w:d.w,h:d.h}))},onResizeStart:()=>{o.current=!0},onResizeStop:(l,c,d)=>{o.current=!1,e(Fz({id:d.i,x:d.x,y:d.y,w:d.w,h:d.h}))},isDraggable:!0,isResizable:!0,margin:[16,16],containerPadding:[16,16],draggableCancel:".no-drag",useCSSTransforms:!0,children:t.map(a)})})]})]})};var PM="ToastProvider",[IM,S4e,_4e]=gb("Toast"),[fZ,E5e]=to("Toast",[_4e]),[C4e,ww]=fZ(PM),hZ=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,l]=y.useState(null),[c,d]=y.useState(0),f=y.useRef(!1),p=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${PM}\`. Expected non-empty \`string\`.`),h.jsx(IM.Provider,{scope:t,children:h.jsx(C4e,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:y.useCallback(()=>d(g=>g+1),[]),onToastRemove:y.useCallback(()=>d(g=>g-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:s})})};hZ.displayName=PM;var pZ="ToastViewport",E4e=["F8"],NT="toast.viewportPause",RT="toast.viewportResume",mZ=y.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=E4e,label:o="Notifications ({hotkey})",...i}=e,s=ww(pZ,n),a=S4e(n),l=y.useRef(null),c=y.useRef(null),d=y.useRef(null),f=y.useRef(null),p=kt(t,f,s.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=s.toastCount>0;y.useEffect(()=>{const _=x=>{var C;r.length!==0&&r.every(E=>x[E]||x.code===E)&&((C=f.current)==null||C.focus())};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[r]),y.useEffect(()=>{const _=l.current,x=f.current;if(v&&_&&x){const w=()=>{if(!s.isClosePausedRef.current){const P=new CustomEvent(NT);x.dispatchEvent(P),s.isClosePausedRef.current=!0}},C=()=>{if(s.isClosePausedRef.current){const P=new CustomEvent(RT);x.dispatchEvent(P),s.isClosePausedRef.current=!1}},E=P=>{!_.contains(P.relatedTarget)&&C()},R=()=>{_.contains(document.activeElement)||C()};return _.addEventListener("focusin",w),_.addEventListener("focusout",E),_.addEventListener("pointermove",w),_.addEventListener("pointerleave",R),window.addEventListener("blur",w),window.addEventListener("focus",C),()=>{_.removeEventListener("focusin",w),_.removeEventListener("focusout",E),_.removeEventListener("pointermove",w),_.removeEventListener("pointerleave",R),window.removeEventListener("blur",w),window.removeEventListener("focus",C)}}},[v,s.isClosePausedRef]);const b=y.useCallback(({tabbingDirection:_})=>{const w=a().map(C=>{const E=C.ref.current,R=[E,...F4e(E)];return _==="forwards"?R:R.reverse()});return(_==="forwards"?w.reverse():w).flat()},[a]);return y.useEffect(()=>{const _=f.current;if(_){const x=w=>{var R,P,N;const C=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!C){const k=document.activeElement,I=w.shiftKey;if(w.target===_&&I){(R=c.current)==null||R.focus();return}const z=b({tabbingDirection:I?"backwards":"forwards"}),q=z.findIndex(A=>A===k);pN(z.slice(q+1))?w.preventDefault():I?(P=c.current)==null||P.focus():(N=d.current)==null||N.focus()}};return _.addEventListener("keydown",x),()=>_.removeEventListener("keydown",x)}},[a,b]),h.jsxs(zxe,{ref:l,role:"region","aria-label":o.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&h.jsx(TT,{ref:c,onFocusFromOutsideViewport:()=>{const _=b({tabbingDirection:"forwards"});pN(_)}}),h.jsx(IM.Slot,{scope:n,children:h.jsx(Ze.ol,{tabIndex:-1,...i,ref:p})}),v&&h.jsx(TT,{ref:d,onFocusFromOutsideViewport:()=>{const _=b({tabbingDirection:"backwards"});pN(_)}})]})});mZ.displayName=pZ;var gZ="ToastFocusProxy",TT=y.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=ww(gZ,n);return h.jsx(fb,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var c;const a=s.relatedTarget;!((c=i.viewport)!=null&&c.contains(a))&&r()}})});TT.displayName=gZ;var Rg="Toast",N4e="toast.swipeStart",R4e="toast.swipeMove",T4e="toast.swipeCancel",k4e="toast.swipeEnd",vZ=y.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,l]=xs({prop:r,defaultProp:o??!0,onChange:i,caller:Rg});return h.jsx(ys,{present:n||a,children:h.jsx(M4e,{open:a,...s,ref:t,onClose:()=>l(!1),onPause:En(e.onPause),onResume:En(e.onResume),onSwipeStart:yt(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:yt(e.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:yt(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:yt(e.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});vZ.displayName=Rg;var[P4e,I4e]=fZ(Rg,{onClose(){}}),M4e=y.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:p,onSwipeEnd:g,...v}=e,b=ww(Rg,n),[_,x]=y.useState(null),w=kt(t,A=>x(A)),C=y.useRef(null),E=y.useRef(null),R=o||b.duration,P=y.useRef(0),N=y.useRef(R),k=y.useRef(0),{onToastAdd:I,onToastRemove:L}=b,j=En(()=>{var W;(_==null?void 0:_.contains(document.activeElement))&&((W=b.viewport)==null||W.focus()),s()}),z=y.useCallback(A=>{!A||A===1/0||(window.clearTimeout(k.current),P.current=new Date().getTime(),k.current=window.setTimeout(j,A))},[j]);y.useEffect(()=>{const A=b.viewport;if(A){const W=()=>{z(N.current),c==null||c()},$=()=>{const H=new Date().getTime()-P.current;N.current=N.current-H,window.clearTimeout(k.current),l==null||l()};return A.addEventListener(NT,$),A.addEventListener(RT,W),()=>{A.removeEventListener(NT,$),A.removeEventListener(RT,W)}}},[b.viewport,R,l,c,z]),y.useEffect(()=>{i&&!b.isClosePausedRef.current&&z(R)},[i,R,b.isClosePausedRef,z]),y.useEffect(()=>(I(),()=>L()),[I,L]);const q=y.useMemo(()=>_?CZ(_):null,[_]);return b.viewport?h.jsxs(h.Fragment,{children:[q&&h.jsx(A4e,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:q}),h.jsx(P4e,{scope:n,onClose:j,children:al.createPortal(h.jsx(IM.ItemSlot,{scope:n,children:h.jsx($xe,{asChild:!0,onEscapeKeyDown:yt(a,()=>{b.isFocusedToastEscapeKeyDownRef.current||j(),b.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(Ze.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":b.swipeDirection,...v,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:yt(e.onKeyDown,A=>{A.key==="Escape"&&(a==null||a(A.nativeEvent),A.nativeEvent.defaultPrevented||(b.isFocusedToastEscapeKeyDownRef.current=!0,j()))}),onPointerDown:yt(e.onPointerDown,A=>{A.button===0&&(C.current={x:A.clientX,y:A.clientY})}),onPointerMove:yt(e.onPointerMove,A=>{if(!C.current)return;const W=A.clientX-C.current.x,$=A.clientY-C.current.y,H=!!E.current,V=["left","right"].includes(b.swipeDirection),B=["left","up"].includes(b.swipeDirection)?Math.min:Math.max,K=V?B(0,W):0,Z=V?0:B(0,$),ne=A.pointerType==="touch"?10:2,ae={x:K,y:Z},ue={originalEvent:A,delta:ae};H?(E.current=ae,p0(R4e,f,ue,{discrete:!1})):a6(ae,b.swipeDirection,ne)?(E.current=ae,p0(N4e,d,ue,{discrete:!1}),A.target.setPointerCapture(A.pointerId)):(Math.abs(W)>ne||Math.abs($)>ne)&&(C.current=null)}),onPointerUp:yt(e.onPointerUp,A=>{const W=E.current,$=A.target;if($.hasPointerCapture(A.pointerId)&&$.releasePointerCapture(A.pointerId),E.current=null,C.current=null,W){const H=A.currentTarget,V={originalEvent:A,delta:W};a6(W,b.swipeDirection,b.swipeThreshold)?p0(k4e,g,V,{discrete:!0}):p0(T4e,p,V,{discrete:!0}),H.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),b.viewport)})]}):null}),A4e=e=>{const{__scopeToast:t,children:n,...r}=e,o=ww(Rg,t),[i,s]=y.useState(!1),[a,l]=y.useState(!1);return O4e(()=>s(!0)),y.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:h.jsx(ig,{asChild:!0,children:h.jsx(fb,{...r,children:i&&h.jsxs(h.Fragment,{children:[o.label," ",n]})})})},j4e="ToastTitle",yZ=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(Ze.div,{...r,ref:t})});yZ.displayName=j4e;var L4e="ToastDescription",xZ=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(Ze.div,{...r,ref:t})});xZ.displayName=L4e;var bZ="ToastAction",wZ=y.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?h.jsx(_Z,{altText:n,asChild:!0,children:h.jsx(MM,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${bZ}\`. Expected non-empty \`string\`.`),null)});wZ.displayName=bZ;var SZ="ToastClose",MM=y.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=I4e(SZ,n);return h.jsx(_Z,{asChild:!0,children:h.jsx(Ze.button,{type:"button",...r,ref:t,onClick:yt(e.onClick,o.onClose)})})});MM.displayName=SZ;var _Z=y.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return h.jsx(Ze.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function CZ(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),D4e(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...CZ(r))}}),t}function p0(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sb(o,i):o.dispatchEvent(i)}var a6=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function O4e(e=()=>{}){const t=En(e);jo(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function D4e(e){return e.nodeType===e.ELEMENT_NODE}function F4e(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function pN(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var $4e=hZ,EZ=mZ,NZ=vZ,RZ=yZ,TZ=xZ,kZ=wZ,PZ=MM;const l6=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,c6=R9,z4e=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return c6(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],f=i==null?void 0:i[c];if(d===null)return null;const p=l6(d)||l6(f);return o[c][p]}),a=n&&Object.entries(n).reduce((c,d)=>{let[f,p]=d;return p===void 0||(c[f]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:p,...g}=d;return Object.entries(g).every(v=>{let[b,_]=v;return Array.isArray(_)?_.includes({...i,...a}[b]):{...i,...a}[b]===_})?[...c,f,p]:c},[]);return c6(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)},H4e=$4e,IZ=y.forwardRef(({className:e,...t},n)=>h.jsx(EZ,{ref:n,className:nt("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));IZ.displayName=EZ.displayName;const B4e=z4e("group pointer-events-auto relative flex w-1/2 items-center justify-between space-x-2 overflow-hidden rounded-md border p-3 pr-4 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-slate-950 text-foreground",destructive:"destructive group border-destructive bg-red-900 text-gray-950 text-destructive-foreground"}},defaultVariants:{variant:"default"}}),MZ=y.forwardRef(({className:e,variant:t,...n},r)=>h.jsx(NZ,{ref:r,className:nt(B4e({variant:t}),e),...n}));MZ.displayName=NZ.displayName;const W4e=y.forwardRef(({className:e,...t},n)=>h.jsx(kZ,{ref:n,className:nt("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));W4e.displayName=kZ.displayName;const AZ=y.forwardRef(({className:e,...t},n)=>h.jsx(PZ,{ref:n,className:nt("absolute right-2 top-2 rounded-md p-1 text-gray-800 opacity-0 transition-opacity hover:text-gray-950 focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:h.jsx(eb,{className:"h-4 w-4"})}));AZ.displayName=PZ.displayName;const jZ=y.forwardRef(({className:e,...t},n)=>h.jsx(RZ,{ref:n,className:nt("text-sm font-semibold",e),...t}));jZ.displayName=RZ.displayName;const LZ=y.forwardRef(({className:e,...t},n)=>h.jsx(TZ,{ref:n,className:nt("text-sm opacity-90",e),...t}));LZ.displayName=TZ.displayName;function U4e(){const{toasts:e}=F9();return h.jsxs(H4e,{children:[e.map(function({id:t,title:n,description:r,type:o,...i}){return h.jsxs(MZ,{type:o,...i,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(jZ,{children:n}),r&&h.jsx(LZ,{children:r})]}),h.jsx(AZ,{})]},t)}),h.jsx(IZ,{})]})}const q4e=()=>h.jsx(upe,{store:Yo,children:h.jsxs("div",{className:" bg-gray-950 text-white",children:[h.jsx(w4e,{}),h.jsx(U4e,{})]})});mN.createRoot(document.getElementById("root")).render(h.jsx(y.StrictMode,{children:h.jsx(aW,{children:h.jsx(q4e,{})})})); +
diff --git a/share/scripts/rmt/server.js b/share/scripts/rmt/server.js index df4cdf056a..4b3a9c47f4 100644 --- a/share/scripts/rmt/server.js +++ b/share/scripts/rmt/server.js @@ -737,7 +737,7 @@ import { Sys as sys3 } from "gpaccore"; function LogManager(client) { this.client = client; this.isSubscribed = false; - this.logLevel = "all@quiet"; + this.logLevel = "all@warning"; this.originalLogConfig = null; this.pendingLogs = []; this.batchTimer = null;