Sync build v0.9.286

Automated sync from private repository.
Commit: fad7f9633de61427bfc2c672b7ddecaa0952d717
This commit is contained in:
GitHub Actions Bot
2026-02-27 07:48:08 +00:00
parent bbd0bbbb61
commit c8c3f164ee
43 changed files with 49 additions and 49 deletions

View File

@@ -1 +1 @@
0.9.285
0.9.286

View File

@@ -1 +1 @@
import{r as e,j as s}from"./vendor-react-alRNW2nb.js";import{a as r}from"./vendor-motion-DNp0Qg4F.js";import{a$ as o,b0 as t}from"./index-D7i6lQrq.js";const a=e.memo(function({value:a,format:i,prefix:n,suffix:f,className:m,priority:c="medium"}){const[u,d]=e.useState(!1),[l,p]=e.useState(a);e.useEffect(()=>o(()=>{d(!0),p(0)},c),[c]),e.useEffect(()=>{u&&p(a)},[u,a]);const x=`${n??""}${a.toLocaleString(void 0,i)}${f??""}`;return u?s.jsx(r,{className:`${m??""} overflow-hidden`,format:i,prefix:n,suffix:f,transition:t.numberTicker,children:l}):s.jsx("span",{className:m,children:x})});export{a as A};
import{r as e,j as s}from"./vendor-react-alRNW2nb.js";import{a as r}from"./vendor-motion-DNp0Qg4F.js";import{a$ as o,b0 as t}from"./index-CkRTgHHA.js";const a=e.memo(function({value:a,format:i,prefix:n,suffix:f,className:m,priority:c="medium"}){const[u,d]=e.useState(!1),[l,p]=e.useState(a);e.useEffect(()=>o(()=>{d(!0),p(0)},c),[c]),e.useEffect(()=>{u&&p(a)},[u,a]);const x=`${n??""}${a.toLocaleString(void 0,i)}${f??""}`;return u?s.jsx(r,{className:`${m??""} overflow-hidden`,format:i,prefix:n,suffix:f,transition:t.numberTicker,children:l}):s.jsx("span",{className:m,children:x})});export{a as A};

View File

@@ -1 +1 @@
import{r as e,j as s}from"./vendor-react-alRNW2nb.js";import{c as t}from"./vendor-core-FtpmsTnh.js";import{e as a,g as l,a as r,b as i,f as n}from"./chat-utils-DbM_TyxC.js";const c=e.memo(function({senderName:e,text:c,timestamp:d,nameAccessory:m,bubbleAccessory:x,className:o}){const{emoji:u,cleanName:f}=a(e),p=l(f),g=r(e);return s.jsxs("div",{className:t("group flex items-start gap-3 w-full",o),children:[s.jsxs("div",{className:"flex-shrink-0 w-9 flex flex-col items-center gap-1",children:[s.jsx("div",{className:t("w-9 h-9 rounded-full flex items-center justify-center","shadow-md ring-1 ring-edge-subtle",u?"text-lg":"text-white text-[13px] font-bold tracking-tight"),style:{backgroundColor:p},children:u||g}),s.jsx("span",{className:"text-xs text-fg-muted tabular-nums h-4 leading-4",children:i(d)})]}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 h-5 mb-1",children:[s.jsx("span",{className:"text-[13px] font-medium truncate",style:{color:p,lineHeight:"20px"},children:f}),m]}),s.jsxs("div",{className:"flex items-end gap-1.5",children:[s.jsx("div",{className:t("inline-block px-3.5 py-2.5 max-w-full","rounded-2xl rounded-tl-md","bg-[#007AFF]"),children:s.jsx("p",{className:"text-sm text-white leading-relaxed tracking-wide whitespace-pre-wrap break-words",children:n(c)})}),x]})]})]})});function d({text:e}){return s.jsx("div",{className:"flex justify-center my-1",children:s.jsx("span",{className:t("px-3 py-1 rounded-full","bg-subtle-fill text-[11px] text-fg-muted/80 font-medium","ring-1 ring-edge-subtle"),children:e})})}export{c as C,d as S};
import{r as e,j as s}from"./vendor-react-alRNW2nb.js";import{c as t}from"./vendor-core-FtpmsTnh.js";import{e as a,g as l,a as r,b as i,f as n}from"./chat-utils-mqGCinix.js";const c=e.memo(function({senderName:e,text:c,timestamp:d,nameAccessory:m,bubbleAccessory:x,className:o}){const{emoji:u,cleanName:f}=a(e),p=l(f),g=r(e);return s.jsxs("div",{className:t("group flex items-start gap-3 w-full",o),children:[s.jsxs("div",{className:"flex-shrink-0 w-9 flex flex-col items-center gap-1",children:[s.jsx("div",{className:t("w-9 h-9 rounded-full flex items-center justify-center","shadow-md ring-1 ring-edge-subtle",u?"text-lg":"text-white text-[13px] font-bold tracking-tight"),style:{backgroundColor:p},children:u||g}),s.jsx("span",{className:"text-xs text-fg-muted tabular-nums h-4 leading-4",children:i(d)})]}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2 h-5 mb-1",children:[s.jsx("span",{className:"text-[13px] font-medium truncate",style:{color:p,lineHeight:"20px"},children:f}),m]}),s.jsxs("div",{className:"flex items-end gap-1.5",children:[s.jsx("div",{className:t("inline-block px-3.5 py-2.5 max-w-full","rounded-2xl rounded-tl-md","bg-[#007AFF]"),children:s.jsx("p",{className:"text-sm text-white leading-relaxed tracking-wide whitespace-pre-wrap break-words",children:n(c)})}),x]})]})]})});function d({text:e}){return s.jsx("div",{className:"flex justify-center my-1",children:s.jsx("span",{className:t("px-3 py-1 rounded-full","bg-subtle-fill text-[11px] text-fg-muted/80 font-medium","ring-1 ring-edge-subtle"),children:e})})}export{c as C,d as S};

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{r as e,j as s}from"./vendor-react-alRNW2nb.js";import{c as n}from"./vendor-core-FtpmsTnh.js";import{Y as a,bG as r,_ as o,bT as i,B as l}from"./index-D7i6lQrq.js";import{a3 as t}from"./vendor-icons-TO0PZKGR.js";const c={danger:"text-sys-red",warning:"text-sys-indigo",default:"text-sys-blue"},m={danger:"danger",warning:"warning",default:"primary"},d=e.memo(function({isOpen:e,title:d="Confirm",message:x,confirmLabel:f="Confirm",cancelLabel:j="Cancel",variant:C="default",onConfirm:g,onCancel:p}){return s.jsxs(a,{open:e,onClose:p,size:"sm",children:[s.jsx(r,{icon:s.jsx(t,{className:n("w-5 h-5",c[C])}),title:d,onClose:p}),s.jsx(o,{children:s.jsx("p",{className:"text-sm text-fg-secondary",children:x})}),s.jsxs(i,{children:[s.jsx(l,{color:"muted",onClick:p,className:"flex-1",children:j}),s.jsx(l,{color:m[C],onClick:g,className:"flex-1",children:f})]})]})});export{d as C};
import{r as e,j as s}from"./vendor-react-alRNW2nb.js";import{c as n}from"./vendor-core-FtpmsTnh.js";import{Y as a,bG as r,_ as o,bT as i,B as l}from"./index-CkRTgHHA.js";import{a3 as t}from"./vendor-icons-TO0PZKGR.js";const c={danger:"text-sys-red",warning:"text-sys-indigo",default:"text-sys-blue"},m={danger:"danger",warning:"warning",default:"primary"},d=e.memo(function({isOpen:e,title:d="Confirm",message:x,confirmLabel:f="Confirm",cancelLabel:j="Cancel",variant:C="default",onConfirm:g,onCancel:p}){return s.jsxs(a,{open:e,onClose:p,size:"sm",children:[s.jsx(r,{icon:s.jsx(t,{className:n("w-5 h-5",c[C])}),title:d,onClose:p}),s.jsx(o,{children:s.jsx("p",{className:"text-sm text-fg-secondary",children:x})}),s.jsxs(i,{children:[s.jsx(l,{color:"muted",onClick:p,className:"flex-1",children:j}),s.jsx(l,{color:m[C],onClick:g,className:"flex-1",children:f})]})]})});export{d as C};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{r as e,j as a}from"./vendor-react-alRNW2nb.js";import{b as c,c as s}from"./keycap-sfx-Bpx9zhkt.js";import{Z as n}from"./index-D7i6lQrq.js";const d={a:"24,3 76,3 83,7 76,11 24,11 17,7",b:"88,22 93,27 93,71 88,76 83,71 83,27",c:"88,106 93,111 93,155 88,160 83,155 83,111",d:"24,171 76,171 83,175 76,179 24,179 17,175",e:"12,106 17,111 17,155 12,160 7,155 7,111",f:"12,22 17,27 17,71 12,76 7,71 7,27",g:"24,86 76,86 83,91 76,96 24,96 17,91"},t=Object.keys(d),r={0:"abcdef",1:"bc",2:"abdeg",3:"abcdg",4:"bcfg",5:"acdfg",6:"acdefg",7:"abc",8:"abcdefg",9:"abcdfg",A:"abcefg",B:"cdefg",C:"adef",D:"bcdeg",E:"adefg",F:"aefg",G:"acdef",H:"bcefg",I:"ef",J:"bcde",L:"def",M:"abcefg",N:"ceg",O:"abcdef",P:"abefg",Q:"abcfg",R:"eg",S:"acdfg",T:"defg",U:"bcdef",V:"cde",Y:"bcdfg",Z:"abdeg",a:"abcefg",b:"cdefg",c:"deg",d:"bcdeg",e:"adefg",f:"aefg",g:"abcdfg",h:"cefg",i:"c",j:"bcde",l:"def",m:"abcef",n:"ceg",o:"cdeg",p:"abefg",r:"eg",s:"acdfg",t:"defg",u:"cde",v:"cde",y:"bcdfg"," ":"",_:"d","-":"g","=":"dg","°":"abfg",'"':"bf","'":"f","(":"adef",")":"abcd","[":"adef","]":"abcd","!":"bc",".":"d"};function l(e,a){const c=Array.from(e).map(e=>r[e.toUpperCase()]??r[e]??""),s=Math.max(0,(a??0)-e.length);for(let n=0;n<s;n++)c.push("");return c}function i({text:c,color:s="currentColor",size:n=18,minChars:r,noCycle:i=!1,className:o}){const g=Math.round(n*(100/182)),f="light"===document.documentElement.dataset.mode?.08:.16,[b,u]=e.useState(null);e.useEffect(()=>{if(i)return;const e=l(c,r),a=6+2*(e.length-1);let s,n=0,d=!1;const o=()=>{d||(n++,n>=a?u(null):(u(e.map((e,a)=>n>=6+2*a?e:t.filter(()=>Math.random()>.45).join(""))),s=setTimeout(o,56)))};return o(),()=>{d=!0,clearTimeout(s)}},[c,r,i]);const m=l(c,r),p=b??m;return a.jsxs("span",{className:"seven-seg"+(o?` ${o}`:""),children:[p.map((e,c)=>((e,c)=>a.jsx("svg",{viewBox:"0 0 100 182",width:g,height:n,className:"seven-seg__char","aria-hidden":"true",children:t.map(c=>a.jsx("polygon",{points:d[c],fill:s,stroke:s,strokeWidth:4,strokeLinejoin:"round",opacity:e.includes(c)?1:f},c))},c))(e,`${c}-${e}`)),a.jsx("span",{className:"sr-only",children:c})]})}const o={grey:"/assets/keycap.svg",red:"/assets/keycap-red.svg"},g=n[900];function f({icon:n,variant:d="grey",onClick:t,onPress:r,sentDuration:l=2e3,title:i,disabled:f=!1,className:b,iconColor:u=g,iconActiveColor:m="#FFDEB0",indicators:p}){const h=!!r,[y,k]=e.useState("idle"),[j,v]=e.useState(!1),x=e.useRef(),N=h?"held"===y:j,C=h&&("sending"===y||"sent"===y),_=h?"held"===y||"sending"===y:j;e.useEffect(()=>()=>clearTimeout(x.current),[]);const $=e.useCallback(()=>{f||C||(c(),h?k("held"):v(!0))},[f,C,h]),T=e.useCallback(async()=>{if(h){if("held"!==y)return;s(),k("sending");const e=await r();k(e?"sent":"idle"),e&&(x.current=setTimeout(()=>k("idle"),l))}else{if(!j)return;v(!1),s(),null==t||t()}},[h,y,r,l,j,t]),M=e.useCallback(()=>{h?"held"===y&&(s(),k("idle")):(j&&s(),v(!1))},[h,y,j]),E=a.jsx("button",{onMouseDown:$,onMouseUp:T,onMouseLeave:M,onTouchStart:$,onTouchEnd:T,onTouchCancel:M,disabled:f||C,className:`keycap-btn${"red"===d?" keycap-btn--red-cap":""}${_?" keycap-btn--pressed":""}${b&&!p?` ${b}`:""}`,title:i,children:a.jsxs("div",{className:"keycap-wrap",children:[a.jsx("img",{src:o[d],alt:"",className:"keycap-btn__img",draggable:!1}),a.jsx("span",{className:"keycap-icon-overlay",style:{color:N||"sending"===y?m:u},children:n})]})});return(null==p?void 0:p.length)?a.jsxs("div",{className:"keycap-group"+(b?` ${b}`:""),children:[E,a.jsx("div",{className:"indicator-key-pair",children:p.map(e=>{const c=e.trackPress?y:e.active?"active":"idle";return a.jsxs("div",{className:"indicator-key"+("idle"!==c?` indicator-key--${c}`:""),children:[a.jsx("span",{className:"indicator-key__label",children:e.label}),a.jsx("span",{className:"indicator-key__led"})]},e.label)})})]}):E}export{f as K,i as S};
import{r as e,j as a}from"./vendor-react-alRNW2nb.js";import{b as c,c as s}from"./keycap-sfx-Bpx9zhkt.js";import{Z as n}from"./index-CkRTgHHA.js";const d={a:"24,3 76,3 83,7 76,11 24,11 17,7",b:"88,22 93,27 93,71 88,76 83,71 83,27",c:"88,106 93,111 93,155 88,160 83,155 83,111",d:"24,171 76,171 83,175 76,179 24,179 17,175",e:"12,106 17,111 17,155 12,160 7,155 7,111",f:"12,22 17,27 17,71 12,76 7,71 7,27",g:"24,86 76,86 83,91 76,96 24,96 17,91"},t=Object.keys(d),r={0:"abcdef",1:"bc",2:"abdeg",3:"abcdg",4:"bcfg",5:"acdfg",6:"acdefg",7:"abc",8:"abcdefg",9:"abcdfg",A:"abcefg",B:"cdefg",C:"adef",D:"bcdeg",E:"adefg",F:"aefg",G:"acdef",H:"bcefg",I:"ef",J:"bcde",L:"def",M:"abcefg",N:"ceg",O:"abcdef",P:"abefg",Q:"abcfg",R:"eg",S:"acdfg",T:"defg",U:"bcdef",V:"cde",Y:"bcdfg",Z:"abdeg",a:"abcefg",b:"cdefg",c:"deg",d:"bcdeg",e:"adefg",f:"aefg",g:"abcdfg",h:"cefg",i:"c",j:"bcde",l:"def",m:"abcef",n:"ceg",o:"cdeg",p:"abefg",r:"eg",s:"acdfg",t:"defg",u:"cde",v:"cde",y:"bcdfg"," ":"",_:"d","-":"g","=":"dg","°":"abfg",'"':"bf","'":"f","(":"adef",")":"abcd","[":"adef","]":"abcd","!":"bc",".":"d"};function l(e,a){const c=Array.from(e).map(e=>r[e.toUpperCase()]??r[e]??""),s=Math.max(0,(a??0)-e.length);for(let n=0;n<s;n++)c.push("");return c}function i({text:c,color:s="currentColor",size:n=18,minChars:r,noCycle:i=!1,className:o}){const g=Math.round(n*(100/182)),f="light"===document.documentElement.dataset.mode?.08:.16,[b,u]=e.useState(null);e.useEffect(()=>{if(i)return;const e=l(c,r),a=6+2*(e.length-1);let s,n=0,d=!1;const o=()=>{d||(n++,n>=a?u(null):(u(e.map((e,a)=>n>=6+2*a?e:t.filter(()=>Math.random()>.45).join(""))),s=setTimeout(o,56)))};return o(),()=>{d=!0,clearTimeout(s)}},[c,r,i]);const m=l(c,r),p=b??m;return a.jsxs("span",{className:"seven-seg"+(o?` ${o}`:""),children:[p.map((e,c)=>((e,c)=>a.jsx("svg",{viewBox:"0 0 100 182",width:g,height:n,className:"seven-seg__char","aria-hidden":"true",children:t.map(c=>a.jsx("polygon",{points:d[c],fill:s,stroke:s,strokeWidth:4,strokeLinejoin:"round",opacity:e.includes(c)?1:f},c))},c))(e,`${c}-${e}`)),a.jsx("span",{className:"sr-only",children:c})]})}const o={grey:"/assets/keycap.svg",red:"/assets/keycap-red.svg"},g=n[900];function f({icon:n,variant:d="grey",onClick:t,onPress:r,sentDuration:l=2e3,title:i,disabled:f=!1,className:b,iconColor:u=g,iconActiveColor:m="#FFDEB0",indicators:p}){const h=!!r,[y,k]=e.useState("idle"),[j,v]=e.useState(!1),x=e.useRef(),N=h?"held"===y:j,C=h&&("sending"===y||"sent"===y),_=h?"held"===y||"sending"===y:j;e.useEffect(()=>()=>clearTimeout(x.current),[]);const $=e.useCallback(()=>{f||C||(c(),h?k("held"):v(!0))},[f,C,h]),T=e.useCallback(async()=>{if(h){if("held"!==y)return;s(),k("sending");const e=await r();k(e?"sent":"idle"),e&&(x.current=setTimeout(()=>k("idle"),l))}else{if(!j)return;v(!1),s(),null==t||t()}},[h,y,r,l,j,t]),M=e.useCallback(()=>{h?"held"===y&&(s(),k("idle")):(j&&s(),v(!1))},[h,y,j]),E=a.jsx("button",{onMouseDown:$,onMouseUp:T,onMouseLeave:M,onTouchStart:$,onTouchEnd:T,onTouchCancel:M,disabled:f||C,className:`keycap-btn${"red"===d?" keycap-btn--red-cap":""}${_?" keycap-btn--pressed":""}${b&&!p?` ${b}`:""}`,title:i,children:a.jsxs("div",{className:"keycap-wrap",children:[a.jsx("img",{src:o[d],alt:"",className:"keycap-btn__img",draggable:!1}),a.jsx("span",{className:"keycap-icon-overlay",style:{color:N||"sending"===y?m:u},children:n})]})});return(null==p?void 0:p.length)?a.jsxs("div",{className:"keycap-group"+(b?` ${b}`:""),children:[E,a.jsx("div",{className:"indicator-key-pair",children:p.map(e=>{const c=e.trackPress?y:e.active?"active":"idle";return a.jsxs("div",{className:"indicator-key"+("idle"!==c?` indicator-key--${c}`:""),children:[a.jsx("span",{className:"indicator-key__label",children:e.label}),a.jsx("span",{className:"indicator-key__led"})]},e.label)})})]}):E}export{f as K,i as S};

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{r as s,j as e}from"./vendor-react-alRNW2nb.js";import{c as a}from"./vendor-core-FtpmsTnh.js";import{bn as t,bo as r,o as n,bp as o,bq as i,br as l,q as c,B as m,bs as d,bd as p,bt as x}from"./index-D7i6lQrq.js";import{P as h,a as j,B as g,C as u}from"./PageLayout-QhCLxU34.js";import{F as f,aZ as v,a_ as b}from"./vendor-icons-TO0PZKGR.js";import{m as y}from"./vendor-motion-DNp0Qg4F.js";import"./vendor-virt-BytWoLhu.js";import"./cosmograph-DqYT4sUA.js";import"./vendor-charts-C916_-gs.js";import"./vendor-fonts-CRZaZSFf.js";const N=s.memo(function({log:s}){return e.jsx(y.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.15,ease:"easeOut"},className:"p-3 bg-subtle-fill/80 radius-inner depth-stroke-raised hover:bg-subtle-fill-strong transition-base",children:e.jsxs("div",{className:"flex items-baseline gap-3",children:[e.jsx("span",{className:a("type-data-sm w-14 shrink-0",x(s.level)),children:s.level}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"type-data-sm text-fg-primary break-words whitespace-pre-wrap",children:s.message}),e.jsx("p",{className:"type-data-xs text-fg-muted mt-1",children:new Date(s.timestamp).toLocaleString()})]})]})})});function w({showDebug:s,onToggle:t}){return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:a("type-data-sm",s?"text-sys-orange":"text-sys-cyan"),children:s?"DEBUG":"INFO"}),e.jsx(p,{enabled:s,onChange:t,size:"sm"})]})}function k(){const p=t(),x=r(),y=n(),k=o(),D=i(),[B,C]=s.useState(!1),E=s.useCallback(()=>{C(s=>!s)},[]),L=B?p:p.filter(s=>"DEBUG"!==s.level),P=s.useRef(k);return P.current=k,s.useEffect(()=>{if(!y)return;P.current();const s=setInterval(()=>P.current(),l.logs);return()=>clearInterval(s)},[y]),e.jsxs(h,{children:[e.jsx(j,{title:"System Logs",icon:e.jsx(f,{}),controls:e.jsx(w,{showDebug:B,onToggle:E})}),e.jsx(g,{children:e.jsxs(u,{neomorphic:!0,noPadding:!0,children:[e.jsx(c,{listHeader:!0,icon:e.jsx(f,{className:"icon-sm"}),title:"Log Entries",actions:e.jsx(m,{plain:!0,color:y?"danger":"primary",onClick:()=>D(!y),title:y?"Pause":"Resume",className:a(!y&&"animate-pulse-slow"),children:y?e.jsx(v,{"data-slot":"icon",className:"!w-5 !h-5"}):e.jsx(b,{"data-slot":"icon",className:"!w-5 !h-5"})})}),e.jsx("div",{className:"space-y-2 max-h-[calc(100dvh-226px)] sm:max-h-[calc(100dvh-234px)] lg:max-h-[calc(100vh-194px)] overflow-y-auto p-4",children:x&&0===p.length?e.jsx(d,{count:10}):0===L.length?e.jsx("div",{className:"text-center py-12 text-fg-muted",children:0===p.length?"No logs available":"No logs match selected filters"}):L.map((s,a)=>e.jsx(N,{log:s},`${s.timestamp}-${a}`))})]})})]})}export{k as default};
import{r as s,j as e}from"./vendor-react-alRNW2nb.js";import{c as a}from"./vendor-core-FtpmsTnh.js";import{bn as t,bo as r,o as n,bp as o,bq as i,br as l,q as c,B as m,bs as d,bd as p,bt as x}from"./index-CkRTgHHA.js";import{P as h,a as j,B as g,C as u}from"./PageLayout-BWMUVZgC.js";import{F as f,aZ as v,a_ as b}from"./vendor-icons-TO0PZKGR.js";import{m as y}from"./vendor-motion-DNp0Qg4F.js";import"./vendor-virt-BytWoLhu.js";import"./cosmograph-DqYT4sUA.js";import"./vendor-charts-C916_-gs.js";import"./vendor-fonts-CRZaZSFf.js";const N=s.memo(function({log:s}){return e.jsx(y.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.15,ease:"easeOut"},className:"p-3 bg-subtle-fill/80 radius-inner depth-stroke-raised hover:bg-subtle-fill-strong transition-base",children:e.jsxs("div",{className:"flex items-baseline gap-3",children:[e.jsx("span",{className:a("type-data-sm w-14 shrink-0",x(s.level)),children:s.level}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"type-data-sm text-fg-primary break-words whitespace-pre-wrap",children:s.message}),e.jsx("p",{className:"type-data-xs text-fg-muted mt-1",children:new Date(s.timestamp).toLocaleString()})]})]})})});function w({showDebug:s,onToggle:t}){return e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:a("type-data-sm",s?"text-sys-orange":"text-sys-cyan"),children:s?"DEBUG":"INFO"}),e.jsx(p,{enabled:s,onChange:t,size:"sm"})]})}function k(){const p=t(),x=r(),y=n(),k=o(),D=i(),[B,C]=s.useState(!1),E=s.useCallback(()=>{C(s=>!s)},[]),L=B?p:p.filter(s=>"DEBUG"!==s.level),P=s.useRef(k);return P.current=k,s.useEffect(()=>{if(!y)return;P.current();const s=setInterval(()=>P.current(),l.logs);return()=>clearInterval(s)},[y]),e.jsxs(h,{children:[e.jsx(j,{title:"System Logs",icon:e.jsx(f,{}),controls:e.jsx(w,{showDebug:B,onToggle:E})}),e.jsx(g,{children:e.jsxs(u,{neomorphic:!0,noPadding:!0,children:[e.jsx(c,{listHeader:!0,icon:e.jsx(f,{className:"icon-sm"}),title:"Log Entries",actions:e.jsx(m,{plain:!0,color:y?"danger":"primary",onClick:()=>D(!y),title:y?"Pause":"Resume",className:a(!y&&"animate-pulse-slow"),children:y?e.jsx(v,{"data-slot":"icon",className:"!w-5 !h-5"}):e.jsx(b,{"data-slot":"icon",className:"!w-5 !h-5"})})}),e.jsx("div",{className:"space-y-2 max-h-[calc(100dvh-226px)] sm:max-h-[calc(100dvh-234px)] lg:max-h-[calc(100vh-194px)] overflow-y-auto p-4",children:x&&0===p.length?e.jsx(d,{count:10}):0===L.length?e.jsx("div",{className:"text-center py-12 text-fg-muted",children:0===p.length?"No logs available":"No logs match selected filters"}):L.map((s,a)=>e.jsx(N,{log:s},`${s.timestamp}-${a}`))})]})})]})}export{k as default};

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{j as s}from"./vendor-react-alRNW2nb.js";import{C as e}from"./PageLayout-QhCLxU34.js";import{D as a}from"./DataBox-DpDXI-WX.js";import{q as t,b1 as r}from"./index-D7i6lQrq.js";import{R as c}from"./vendor-icons-TO0PZKGR.js";function l({nodeName:l,repeaterVersion:m,coreVersion:i,localHash:n,publicKey:d}){return s.jsxs(e,{neomorphic:!0,children:[s.jsx(t,{icon:s.jsx(c,{}),title:"Node Information"}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 sm:gap-4",children:[s.jsxs("div",{className:"min-w-0 col-span-2 sm:col-span-1",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Node Name"}),s.jsx("p",{className:"type-body text-fg-primary mt-0.5 sm:mt-1 truncate",title:l,children:l})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Repeater"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${m}`,children:["v",m]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Core"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${i}`,children:["v",i]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Console"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${r}`,children:["v",r]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Local Hash"}),s.jsx("div",{className:"mt-0.5 sm:mt-1",children:n?s.jsx(a,{copy:!0,size:"compact",children:n}):s.jsx("span",{className:"type-data-sm text-fg-secondary",children:"N/A"})})]})]}),d&&s.jsxs("div",{className:"mt-3 sm:mt-4 pt-3 sm:pt-4 border-t border-edge-subtle",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Public Key"}),s.jsx("div",{className:"mt-0.5 sm:mt-1",children:s.jsx(a,{copy:!0,size:"responsive",children:d})})]})]})}export{l as N};
import{j as s}from"./vendor-react-alRNW2nb.js";import{C as e}from"./PageLayout-BWMUVZgC.js";import{D as a}from"./DataBox-DpDXI-WX.js";import{q as t,b1 as r}from"./index-CkRTgHHA.js";import{R as c}from"./vendor-icons-TO0PZKGR.js";function l({nodeName:l,repeaterVersion:m,coreVersion:i,localHash:n,publicKey:d}){return s.jsxs(e,{neomorphic:!0,children:[s.jsx(t,{icon:s.jsx(c,{}),title:"Node Information"}),s.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 sm:gap-4",children:[s.jsxs("div",{className:"min-w-0 col-span-2 sm:col-span-1",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Node Name"}),s.jsx("p",{className:"type-body text-fg-primary mt-0.5 sm:mt-1 truncate",title:l,children:l})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Repeater"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${m}`,children:["v",m]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Core"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${i}`,children:["v",i]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Console"}),s.jsxs("p",{className:"type-data text-fg-primary mt-0.5 sm:mt-1 truncate",title:`v${r}`,children:["v",r]})]}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Local Hash"}),s.jsx("div",{className:"mt-0.5 sm:mt-1",children:n?s.jsx(a,{copy:!0,size:"compact",children:n}):s.jsx("span",{className:"type-data-sm text-fg-secondary",children:"N/A"})})]})]}),d&&s.jsxs("div",{className:"mt-3 sm:mt-4 pt-3 sm:pt-4 border-t border-edge-subtle",children:[s.jsx("span",{className:"type-label text-fg-secondary",children:"Public Key"}),s.jsx("div",{className:"mt-0.5 sm:mt-1",children:s.jsx(a,{copy:!0,size:"responsive",children:d})})]})]})}export{l as N};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{j as e}from"./vendor-react-alRNW2nb.js";import{c as s}from"./vendor-core-FtpmsTnh.js";import{e as i}from"./index-D7i6lQrq.js";function n({children:i,className:n}){return e.jsx("div",{className:s("section-gap",n),children:i})}function a({children:i,className:n}){return e.jsx("div",{className:s("bento-section",n),children:i})}function t({title:s,icon:i,controls:n,subtitle:a}){return e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 min-h-9",children:[e.jsxs("h1",{className:"type-title text-fg-primary flex items-baseline gap-2 sm:gap-3 min-w-0",children:[i&&e.jsx("span",{className:"text-icon-page-title flex-shrink-0 translate-y-[0.1em] [&>svg]:h-[1em] [&>svg]:w-[1em] [&>svg]:stroke-[1.5]",children:i}),e.jsx("span",{className:"truncate",children:s})]}),n&&e.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:n})]}),a&&e.jsx("div",{children:a})]})}function r({size:s,...n}){return e.jsx(i,{...n})}export{a as B,r as C,n as P,t as a};
import{j as e}from"./vendor-react-alRNW2nb.js";import{c as s}from"./vendor-core-FtpmsTnh.js";import{e as i}from"./index-CkRTgHHA.js";function n({children:i,className:n}){return e.jsx("div",{className:s("section-gap",n),children:i})}function a({children:i,className:n}){return e.jsx("div",{className:s("bento-section",n),children:i})}function t({title:s,icon:i,controls:n,subtitle:a}){return e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 min-h-9",children:[e.jsxs("h1",{className:"type-title text-fg-primary flex items-baseline gap-2 sm:gap-3 min-w-0",children:[i&&e.jsx("span",{className:"text-icon-page-title flex-shrink-0 translate-y-[0.1em] [&>svg]:h-[1em] [&>svg]:w-[1em] [&>svg]:stroke-[1.5]",children:i}),e.jsx("span",{className:"truncate",children:s})]}),n&&e.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:n})]}),a&&e.jsx("div",{children:a})]})}function r({size:s,...n}){return e.jsx(i,{...n})}export{a as B,r as C,n as P,t as a};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{r as e,j as r}from"./vendor-react-alRNW2nb.js";import{c as a}from"./vendor-core-FtpmsTnh.js";import{aE as t,aF as s,aG as n}from"./index-D7i6lQrq.js";import{ax as o,ay as c,az as i,aA as l,ab as d}from"./vendor-icons-TO0PZKGR.js";const x={excellent:"color(display-p3 0.00 1.00 0.00)",good:"color(display-p3 0.55 0.90 0.15)",fair:"color(display-p3 1.00 0.85 0.00)",weak:"color(display-p3 1.00 0.55 0.15)",poor:"color(display-p3 1.00 0.20 0.20)"},p={excellent:"#4ADE80",good:"#A3E635",fair:"#FACC15",weak:"#FB923C",poor:"#EF4444"};function u(e){return e>=-90?"excellent":e>=-100?"good":e>=-110?"fair":e>=-120?"weak":"poor"}function f(e,r,a=!0){return r?a?{backgroundColor:p[e],"--p3-color":x[e]}:{backgroundColor:"rgba(255, 255, 255, 0.25)"}:{backgroundColor:"rgba(255, 255, 255, 0.1)"}}function g(e,r=!0){return e&&r?"signal-bar-active":""}function m({rssi:e,className:t="w-4 h-4"}){const s=u(e),n=function(e){switch(e){case"excellent":return"text-signal-excellent";case"good":return"text-signal-good";case"fair":return"text-signal-fair";case"weak":return"text-signal-poor";case"poor":return"text-signal-critical";default:return"text-fg-muted"}}(s),x=a(n,t);switch(s){case"excellent":return r.jsx(d,{className:x});case"good":return r.jsx(l,{className:x});case"fair":return r.jsx(i,{className:x});case"weak":return r.jsx(c,{className:x});default:return r.jsx(o,{className:x})}}const h=e.memo(function({rssi:e,snr:t,compact:s=!1,showValues:o=!0,radioConfig:c,nfPenalty:i=0,validated:l=!0}){const d=void 0!==t?function(e,r,a,t=0){const s=n(r,e,a,t);return s?function(e){switch(e){case"excellent":return"excellent";case"good":return"good";case"fair":return"fair";case"poor":return"weak";case"critical":return"poor"}}(s.finalGrade):u(e)}(e,t,c,i):u(e),x={excellent:4,good:3,fair:2,weak:1,poor:0}[d];return s?r.jsxs("div",{className:"flex items-center gap-1.5",children:[o&&r.jsx("span",{className:a("type-data-xs w-[32px] text-left",l?"text-fg-secondary":"text-fg-muted"),children:e}),r.jsx("div",{className:"flex items-center gap-[2px] h-3 w-[14px]",children:Array.from({length:4}).map((e,t)=>r.jsx("div",{className:a("w-[3px] h-full rounded-[1px] transition-colors",g(t<x,l)),style:f(d,t<x,l)},t))})]}):r.jsxs("div",{className:"flex items-center gap-2",children:[o&&r.jsxs("div",{className:"flex flex-col items-start w-[52px]",children:[r.jsxs("span",{className:a("type-data-xs leading-tight",l?"text-fg-secondary":"text-fg-muted"),children:[e," dBm"]}),void 0!==t&&r.jsxs("span",{className:"type-data-xs text-fg-muted leading-tight",children:[t.toFixed(1)," dB"]})]}),r.jsx("div",{className:"flex items-center gap-[2px] h-3.5 w-[14px]",children:Array.from({length:4}).map((e,t)=>r.jsx("div",{className:a("w-[3px] h-full rounded-[1px] transition-colors",g(t<x,l)),style:f(d,t<x,l)},t))})]})});function y(e){const r=u(e);return r.charAt(0).toUpperCase()+r.slice(1)}function j(e){return"tx_local"!==e.packet_origin&&"tx_forward"!==e.packet_origin&&(null!=e._isZeroHop?e._isZeroHop:function(e){const r=function(e){if(Array.isArray(e))return e;if("string"==typeof e&&e.startsWith("["))try{const r=JSON.parse(e);return Array.isArray(r)?r:[]}catch{return[]}return[]}(e.original_path),a=e.route??e.route_type;return t(a)?0===r.length:s(a)?r.length<=1:0===r.length}(e))}export{h as S,m as a,y as g,j as i};
import{r as e,j as r}from"./vendor-react-alRNW2nb.js";import{c as a}from"./vendor-core-FtpmsTnh.js";import{aE as t,aF as s,aG as n}from"./index-CkRTgHHA.js";import{ax as o,ay as c,az as i,aA as l,ab as d}from"./vendor-icons-TO0PZKGR.js";const x={excellent:"color(display-p3 0.00 1.00 0.00)",good:"color(display-p3 0.55 0.90 0.15)",fair:"color(display-p3 1.00 0.85 0.00)",weak:"color(display-p3 1.00 0.55 0.15)",poor:"color(display-p3 1.00 0.20 0.20)"},p={excellent:"#4ADE80",good:"#A3E635",fair:"#FACC15",weak:"#FB923C",poor:"#EF4444"};function u(e){return e>=-90?"excellent":e>=-100?"good":e>=-110?"fair":e>=-120?"weak":"poor"}function f(e,r,a=!0){return r?a?{backgroundColor:p[e],"--p3-color":x[e]}:{backgroundColor:"rgba(255, 255, 255, 0.25)"}:{backgroundColor:"rgba(255, 255, 255, 0.1)"}}function g(e,r=!0){return e&&r?"signal-bar-active":""}function m({rssi:e,className:t="w-4 h-4"}){const s=u(e),n=function(e){switch(e){case"excellent":return"text-signal-excellent";case"good":return"text-signal-good";case"fair":return"text-signal-fair";case"weak":return"text-signal-poor";case"poor":return"text-signal-critical";default:return"text-fg-muted"}}(s),x=a(n,t);switch(s){case"excellent":return r.jsx(d,{className:x});case"good":return r.jsx(l,{className:x});case"fair":return r.jsx(i,{className:x});case"weak":return r.jsx(c,{className:x});default:return r.jsx(o,{className:x})}}const h=e.memo(function({rssi:e,snr:t,compact:s=!1,showValues:o=!0,radioConfig:c,nfPenalty:i=0,validated:l=!0}){const d=void 0!==t?function(e,r,a,t=0){const s=n(r,e,a,t);return s?function(e){switch(e){case"excellent":return"excellent";case"good":return"good";case"fair":return"fair";case"poor":return"weak";case"critical":return"poor"}}(s.finalGrade):u(e)}(e,t,c,i):u(e),x={excellent:4,good:3,fair:2,weak:1,poor:0}[d];return s?r.jsxs("div",{className:"flex items-center gap-1.5",children:[o&&r.jsx("span",{className:a("type-data-xs w-[32px] text-left",l?"text-fg-secondary":"text-fg-muted"),children:e}),r.jsx("div",{className:"flex items-center gap-[2px] h-3 w-[14px]",children:Array.from({length:4}).map((e,t)=>r.jsx("div",{className:a("w-[3px] h-full rounded-[1px] transition-colors",g(t<x,l)),style:f(d,t<x,l)},t))})]}):r.jsxs("div",{className:"flex items-center gap-2",children:[o&&r.jsxs("div",{className:"flex flex-col items-start w-[52px]",children:[r.jsxs("span",{className:a("type-data-xs leading-tight",l?"text-fg-secondary":"text-fg-muted"),children:[e," dBm"]}),void 0!==t&&r.jsxs("span",{className:"type-data-xs text-fg-muted leading-tight",children:[t.toFixed(1)," dB"]})]}),r.jsx("div",{className:"flex items-center gap-[2px] h-3.5 w-[14px]",children:Array.from({length:4}).map((e,t)=>r.jsx("div",{className:a("w-[3px] h-full rounded-[1px] transition-colors",g(t<x,l)),style:f(d,t<x,l)},t))})]})});function y(e){const r=u(e);return r.charAt(0).toUpperCase()+r.slice(1)}function j(e){return"tx_local"!==e.packet_origin&&"tx_forward"!==e.packet_origin&&(null!=e._isZeroHop?e._isZeroHop:function(e){const r=function(e){if(Array.isArray(e))return e;if("string"==typeof e&&e.startsWith("["))try{const r=JSON.parse(e);return Array.isArray(r)?r:[]}catch{return[]}return[]}(e.original_path),a=e.route??e.route_type;return t(a)?0===r.length:s(a)?r.length<=1:0===r.length}(e))}export{h as S,m as a,y as g,j as i};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{r as e,j as t,v as a,D as s,g as n}from"./vendor-react-alRNW2nb.js";import{b0 as r}from"./index-D7i6lQrq.js";import{c as i}from"./vendor-core-FtpmsTnh.js";import{af as o,D as l}from"./vendor-icons-TO0PZKGR.js";import{A as c,m as d}from"./vendor-motion-DNp0Qg4F.js";const m=e.memo(function({ranges:m,selectedIndex:u,onSelect:p,isPending:x,size:f="default"}){var h;const y=e.useRef(null),b=u>0,v=u<m.length-1,g=(null==(h=m[u])?void 0:h.label)??"—",j="sm"===f,w=(e,t)=>{var a;const s="left"===e?6:-6;null==(a=y.current)||a.animate([{opacity:1,transform:"translateX(0)"},{opacity:0,transform:`translateX(${s}px)`}],{duration:80,easing:"ease-out"}),setTimeout(()=>{var e;t(),null==(e=y.current)||e.animate([{opacity:0,transform:`translateX(${-s}px)`},{opacity:1,transform:"translateX(0)"}],{duration:80,easing:"ease-out"})},80)},N=()=>b&&w("left",()=>p(u-1)),_=()=>v&&w("right",()=>p(u+1));return t.jsx(a,{className:"relative inline-flex",children:({open:e,close:a})=>t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:i("inline-flex items-center rounded-full bg-surface","shadow-[var(--neo-outer-sm)]",j?"gap-0.5 p-0.5":"gap-0.5 p-1",x&&"opacity-70"),children:[t.jsx("button",{type:"button",onClick:N,disabled:!b,"aria-label":"Previous",className:i("flex items-center justify-center rounded-full transition-all duration-100","text-fg-muted hover:text-fg-primary active:scale-90","disabled:opacity-25 disabled:pointer-events-none",j?"w-5 h-5":"w-6 h-6"),children:t.jsx(o,{className:j?"w-3 h-3":"w-3.5 h-3.5"})}),t.jsx(s,{className:i("rounded-full cursor-pointer transition-all","bg-surface shadow-[inset_0_0_0_1.5px_var(--sys-blue)]",j?"px-2.5 py-1":"px-3 py-1.5"),children:t.jsx("span",{ref:y,className:i("block font-semibold text-fg-primary tabular-nums select-none",j?"min-w-[1.5rem] text-[11px]":"min-w-[2rem] text-xs","text-center"),children:g})}),t.jsx("button",{type:"button",onClick:_,disabled:!v,"aria-label":"Next",className:i("flex items-center justify-center rounded-full transition-all duration-100","text-fg-muted hover:text-fg-primary active:scale-90","disabled:opacity-25 disabled:pointer-events-none",j?"w-5 h-5":"w-6 h-6"),children:t.jsx(l,{className:j?"w-3 h-3":"w-3.5 h-3.5"})})]}),t.jsx(c,{children:e&&t.jsx(n,{static:!0,anchor:"bottom",className:"z-50 mt-2",children:t.jsx(d.div,{initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:r.dropdown,className:i("surface-elevated radius-inset p-1","shadow-[var(--neo-outer)]"),children:t.jsx("div",{className:"grid grid-cols-4 gap-0.5",children:m.map((e,s)=>t.jsx("button",{type:"button",onClick:()=>{s!==u&&p(s),a()},className:i("px-2.5 py-1.5 radius-control text-xs font-medium transition-colors",s===u?"shadow-[inset_0_0_0_1.5px_var(--sys-blue)] text-fg-primary":"text-fg-secondary hover:bg-overlay-soft"),children:e.label},e.label))})})})})]})})});export{m as T};
import{r as e,j as t,v as a,D as s,g as n}from"./vendor-react-alRNW2nb.js";import{b0 as r}from"./index-CkRTgHHA.js";import{c as i}from"./vendor-core-FtpmsTnh.js";import{af as o,D as l}from"./vendor-icons-TO0PZKGR.js";import{A as c,m as d}from"./vendor-motion-DNp0Qg4F.js";const m=e.memo(function({ranges:m,selectedIndex:u,onSelect:p,isPending:x,size:f="default"}){var h;const y=e.useRef(null),b=u>0,v=u<m.length-1,g=(null==(h=m[u])?void 0:h.label)??"—",j="sm"===f,w=(e,t)=>{var a;const s="left"===e?6:-6;null==(a=y.current)||a.animate([{opacity:1,transform:"translateX(0)"},{opacity:0,transform:`translateX(${s}px)`}],{duration:80,easing:"ease-out"}),setTimeout(()=>{var e;t(),null==(e=y.current)||e.animate([{opacity:0,transform:`translateX(${-s}px)`},{opacity:1,transform:"translateX(0)"}],{duration:80,easing:"ease-out"})},80)},N=()=>b&&w("left",()=>p(u-1)),_=()=>v&&w("right",()=>p(u+1));return t.jsx(a,{className:"relative inline-flex",children:({open:e,close:a})=>t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:i("inline-flex items-center rounded-full bg-surface","shadow-[var(--neo-outer-sm)]",j?"gap-0.5 p-0.5":"gap-0.5 p-1",x&&"opacity-70"),children:[t.jsx("button",{type:"button",onClick:N,disabled:!b,"aria-label":"Previous",className:i("flex items-center justify-center rounded-full transition-all duration-100","text-fg-muted hover:text-fg-primary active:scale-90","disabled:opacity-25 disabled:pointer-events-none",j?"w-5 h-5":"w-6 h-6"),children:t.jsx(o,{className:j?"w-3 h-3":"w-3.5 h-3.5"})}),t.jsx(s,{className:i("rounded-full cursor-pointer transition-all","bg-surface shadow-[inset_0_0_0_1.5px_var(--sys-blue)]",j?"px-2.5 py-1":"px-3 py-1.5"),children:t.jsx("span",{ref:y,className:i("block font-semibold text-fg-primary tabular-nums select-none",j?"min-w-[1.5rem] text-[11px]":"min-w-[2rem] text-xs","text-center"),children:g})}),t.jsx("button",{type:"button",onClick:_,disabled:!v,"aria-label":"Next",className:i("flex items-center justify-center rounded-full transition-all duration-100","text-fg-muted hover:text-fg-primary active:scale-90","disabled:opacity-25 disabled:pointer-events-none",j?"w-5 h-5":"w-6 h-6"),children:t.jsx(l,{className:j?"w-3 h-3":"w-3.5 h-3.5"})})]}),t.jsx(c,{children:e&&t.jsx(n,{static:!0,anchor:"bottom",className:"z-50 mt-2",children:t.jsx(d.div,{initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:r.dropdown,className:i("surface-elevated radius-inset p-1","shadow-[var(--neo-outer)]"),children:t.jsx("div",{className:"grid grid-cols-4 gap-0.5",children:m.map((e,s)=>t.jsx("button",{type:"button",onClick:()=>{s!==u&&p(s),a()},className:i("px-2.5 py-1.5 radius-control text-xs font-medium transition-colors",s===u?"shadow-[inset_0_0_0_1.5px_var(--sys-blue)] text-fg-primary":"text-fg-secondary hover:bg-overlay-soft"),children:e.label},e.label))})})})})]})})});export{m as T};

View File

@@ -1 +1 @@
import{r as e}from"./vendor-react-alRNW2nb.js";import{bb as n}from"./index-D7i6lQrq.js";const t=[n.green,n.blue,n.amber,n.pink,n.purple,n.cyan,n.orange,n.teal];function r(e){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return t[Math.abs(n)%t.length]}const o=new RegExp("(?:\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F)","gu");function a(e){const n=e.match(o);return n&&n.length>0?{emoji:n[0],cleanName:e.replace(o,"").trim()||e}:{emoji:null,cleanName:e}}function i(e){const{cleanName:n}=a(e),t=n.split(/[\s-_]+/).filter(Boolean);return t.length>=2?((Array.from(t[0])[0]||"")+(Array.from(t[1])[0]||"")).toUpperCase():Array.from(n).slice(0,2).join("").toUpperCase()}function l(e){return new Date(1e3*e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}function s(n){const t=/@\[([^\]]+)\]/g,r=[];let o,a=0;for(;null!==(o=t.exec(n));)o.index>a&&r.push(n.slice(a,o.index)),r.push(e.createElement("span",{key:o.index,className:"font-extrabold text-white"},o[1])),a=o.index+o[0].length;return a<n.length&&r.push(n.slice(a)),r.length>0?r:n}export{i as a,l as b,a as e,s as f,r as g};
import{r as e}from"./vendor-react-alRNW2nb.js";import{bb as n}from"./index-CkRTgHHA.js";const t=[n.green,n.blue,n.amber,n.pink,n.purple,n.cyan,n.orange,n.teal];function r(e){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return t[Math.abs(n)%t.length]}const o=new RegExp("(?:\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F)","gu");function a(e){const n=e.match(o);return n&&n.length>0?{emoji:n[0],cleanName:e.replace(o,"").trim()||e}:{emoji:null,cleanName:e}}function i(e){const{cleanName:n}=a(e),t=n.split(/[\s-_]+/).filter(Boolean);return t.length>=2?((Array.from(t[0])[0]||"")+(Array.from(t[1])[0]||"")).toUpperCase():Array.from(n).slice(0,2).join("").toUpperCase()}function l(e){return new Date(1e3*e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}function s(n){const t=/@\[([^\]]+)\]/g,r=[];let o,a=0;for(;null!==(o=t.exec(n));)o.index>a&&r.push(n.slice(a,o.index)),r.push(e.createElement("span",{key:o.index,className:"font-extrabold text-white"},o[1])),a=o.index+o[0].length;return a<n.length&&r.push(n.slice(a)),r.length>0?r:n}export{i as a,l as b,a as e,s as f,r as g};

View File

@@ -1 +1 @@
import{Q as t}from"./index-D7i6lQrq.js";import{r as a}from"./vendor-react-alRNW2nb.js";const e=a=>(a.type??a.payload_type)===t.ADVERT,n=a=>(a.type??a.payload_type)===t.TRACE,o=a=>(a.type??a.payload_type)===t.TXT_MSG,s=a=>(a.type??a.payload_type)===t.PATH,r=a=>(a.type??a.payload_type)===t.ACK,p=a=>{const e=a.type??a.payload_type;return e===t.GRP_TXT||e===t.GRP_DATA},y=t=>(t.path_length??(Array.isArray(t.original_path)?t.original_path.length:0))>0,f=t=>!!t.src_hash,c=t=>null!=t.airtime_ms,i=new Set,_=new Map;function l(t,a){return`${t}|${a}`}function d(t,a){const e=l(t,a);_.set(e,(_.get(e)??0)+1)}function u(t,a){const e=l(t,a),n=_.get(e)??0;n>1?_.set(e,n-1):_.delete(e)}function g(t){for(const a of t){const t=l(a.target,a.fn);i.has(t)||i.add(t)}}function h(t){a.useEffect(()=>{for(const a of t)d(a.target,a.fn);return()=>{for(const a of t)u(a.target,a.fn)}},[t])}export{y as a,f as b,o as c,r as d,e,n as f,s as g,c as h,p as i,g as r,h as u};
import{Q as t}from"./index-CkRTgHHA.js";import{r as a}from"./vendor-react-alRNW2nb.js";const e=a=>(a.type??a.payload_type)===t.ADVERT,n=a=>(a.type??a.payload_type)===t.TRACE,o=a=>(a.type??a.payload_type)===t.TXT_MSG,s=a=>(a.type??a.payload_type)===t.PATH,r=a=>(a.type??a.payload_type)===t.ACK,p=a=>{const e=a.type??a.payload_type;return e===t.GRP_TXT||e===t.GRP_DATA},y=t=>(t.path_length??(Array.isArray(t.original_path)?t.original_path.length:0))>0,f=t=>!!t.src_hash,c=t=>null!=t.airtime_ms,i=new Set,_=new Map;function l(t,a){return`${t}|${a}`}function d(t,a){const e=l(t,a);_.set(e,(_.get(e)??0)+1)}function u(t,a){const e=l(t,a),n=_.get(e)??0;n>1?_.set(e,n-1):_.delete(e)}function g(t){for(const a of t){const t=l(a.target,a.fn);i.has(t)||i.add(t)}}function h(t){a.useEffect(()=>{for(const a of t)d(a.target,a.fn);return()=>{for(const a of t)u(a.target,a.fn)}},[t])}export{y as a,f as b,o as c,r as d,e,n as f,s as g,c as h,p as i,g as r,h as u};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{H as t,aF as e,bb as n}from"./index-D7i6lQrq.js";function o(t){if(Array.isArray(t))return t;if("string"==typeof t&&t.startsWith("["))try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}return[]}function r(n,r,s){const a=new Map;for(const e of r){const n=t(e);a.has(n)||a.set(n,e)}const c=new Map,i=new Map;for(const t of n){const n=t.route??t.route_type;if(!e(n))continue;const r=o(t.original_path);if(0===r.length)continue;const f=r.map(t=>t.toUpperCase());if(!t.transmitted&&f.length>=2){const t=f[f.length-2];if(t){const e=a.get(t);e&&i.set(e,(i.get(e)??0)+1)}}if(f.includes(s))for(const t of f){if(t===s)continue;const e=a.get(t);e&&c.set(e,(c.get(e)??0)+1)}}let f=0,u=0;for(const t of r)f=Math.max(f,c.get(t)??0),u=Math.max(u,i.get(t)??0);const h=new Map;let g=0,d=0,l=0;for(const t of r){const e=c.get(t)??0,n=i.get(t)??0,o=f>0?Math.round(e/f*100):0,r=u>0?Math.round(n/u*100):0,s=o+r;h.set(t,{hash:t,listenerCount:e,loudCount:n,listenerScore:o,loudScore:r,blendedScore:s}),g=Math.max(g,o),d=Math.max(d,r),l=Math.max(l,s)}return{scores:h,maxListenerScore:g,maxLoudScore:d,maxBlendedScore:l}}const s={YELLOW:n.amber,GREEN:n.green,RED:n.red,GRAY:"#505050"};export{s as L,r as c};
import{H as t,aF as e,bb as n}from"./index-CkRTgHHA.js";function o(t){if(Array.isArray(t))return t;if("string"==typeof t&&t.startsWith("["))try{const e=JSON.parse(t);return Array.isArray(e)?e:[]}catch{return[]}return[]}function r(n,r,s){const a=new Map;for(const e of r){const n=t(e);a.has(n)||a.set(n,e)}const c=new Map,i=new Map;for(const t of n){const n=t.route??t.route_type;if(!e(n))continue;const r=o(t.original_path);if(0===r.length)continue;const f=r.map(t=>t.toUpperCase());if(!t.transmitted&&f.length>=2){const t=f[f.length-2];if(t){const e=a.get(t);e&&i.set(e,(i.get(e)??0)+1)}}if(f.includes(s))for(const t of f){if(t===s)continue;const e=a.get(t);e&&c.set(e,(c.get(e)??0)+1)}}let f=0,u=0;for(const t of r)f=Math.max(f,c.get(t)??0),u=Math.max(u,i.get(t)??0);const h=new Map;let g=0,d=0,l=0;for(const t of r){const e=c.get(t)??0,n=i.get(t)??0,o=f>0?Math.round(e/f*100):0,r=u>0?Math.round(n/u*100):0,s=o+r;h.set(t,{hash:t,listenerCount:e,loudCount:n,listenerScore:o,loudScore:r,blendedScore:s}),g=Math.max(g,o),d=Math.max(d,r),l=Math.max(l,s)}return{scores:h,maxListenerScore:g,maxLoudScore:d,maxBlendedScore:l}}const s={YELLOW:n.amber,GREEN:n.green,RED:n.red,GRAY:"#505050"};export{s as L,r as c};

View File

@@ -1 +1 @@
import{j as e,i as s,l as a,n as t,o as r,I as n,r as o}from"./vendor-react-alRNW2nb.js";import{c as i}from"./vendor-core-FtpmsTnh.js";import{b0 as l}from"./index-D7i6lQrq.js";import{C as c,a as d}from"./vendor-icons-TO0PZKGR.js";import{A as m,m as u}from"./vendor-motion-DNp0Qg4F.js";function p({value:n,onChange:o,className:d,placeholder:p,disabled:x,"aria-label":b,children:f}){return e.jsx(s,{value:n,onChange:o,disabled:x,children:({open:s})=>e.jsxs("div",{className:i("relative",d),children:[e.jsxs(a,{"aria-label":b,className:i(["relative flex w-full items-center justify-between gap-2","radius-inner px-3 py-2","text-left text-sm text-fg-primary","bg-input-bg border border-input-border","ring-focus-inset","hover:border-edge-strong","disabled:opacity-40 disabled:pointer-events-none disabled:cursor-not-allowed","transition-colors"]),children:[e.jsx(t,{as:"span",options:f,placeholder:p&&e.jsx("span",{className:"text-fg-muted",children:p}),className:"block truncate"}),e.jsx(c,{className:i("w-4 h-4 text-fg-muted transition-transform duration-200",s&&"rotate-180")})]}),e.jsx(m,{children:s&&e.jsx(u.div,{initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:l.dropdown,className:"absolute z-50 mt-1",children:e.jsx(r,{static:!0,anchor:"bottom start",className:i(["w-[var(--button-width)] min-w-[180px]","max-h-60 overflow-y-auto overscroll-contain scroll-py-1","radius-inset p-1","surface-elevated","focus:outline-none"]),children:f})})})]})})}function x({value:s,disabled:a,className:t,children:r}){return e.jsx(n,{as:o.Fragment,value:s,disabled:a,children:({selected:s,focus:n})=>e.jsxs("div",{className:i("flex items-center gap-2 px-3 py-2 radius-control cursor-default","text-sm",n&&"bg-sys-blue text-white",!n&&"text-fg-primary",s&&!n&&"text-sys-blue",a&&"opacity-50 cursor-not-allowed",t),children:[e.jsx("span",{className:"w-4 flex-shrink-0",children:s&&e.jsx(d,{className:"w-4 h-4"})}),e.jsx("span",{className:"truncate",children:r})]})})}function b({className:s,...a}){return e.jsx("span",{...a,className:i("truncate",s)})}export{p as L,x as a,b};
import{j as e,i as s,l as a,n as t,o as r,I as n,r as o}from"./vendor-react-alRNW2nb.js";import{c as i}from"./vendor-core-FtpmsTnh.js";import{b0 as l}from"./index-CkRTgHHA.js";import{C as c,a as d}from"./vendor-icons-TO0PZKGR.js";import{A as m,m as u}from"./vendor-motion-DNp0Qg4F.js";function p({value:n,onChange:o,className:d,placeholder:p,disabled:x,"aria-label":b,children:f}){return e.jsx(s,{value:n,onChange:o,disabled:x,children:({open:s})=>e.jsxs("div",{className:i("relative",d),children:[e.jsxs(a,{"aria-label":b,className:i(["relative flex w-full items-center justify-between gap-2","radius-inner px-3 py-2","text-left text-sm text-fg-primary","bg-input-bg border border-input-border","ring-focus-inset","hover:border-edge-strong","disabled:opacity-40 disabled:pointer-events-none disabled:cursor-not-allowed","transition-colors"]),children:[e.jsx(t,{as:"span",options:f,placeholder:p&&e.jsx("span",{className:"text-fg-muted",children:p}),className:"block truncate"}),e.jsx(c,{className:i("w-4 h-4 text-fg-muted transition-transform duration-200",s&&"rotate-180")})]}),e.jsx(m,{children:s&&e.jsx(u.div,{initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:l.dropdown,className:"absolute z-50 mt-1",children:e.jsx(r,{static:!0,anchor:"bottom start",className:i(["w-[var(--button-width)] min-w-[180px]","max-h-60 overflow-y-auto overscroll-contain scroll-py-1","radius-inset p-1","surface-elevated","focus:outline-none"]),children:f})})})]})})}function x({value:s,disabled:a,className:t,children:r}){return e.jsx(n,{as:o.Fragment,value:s,disabled:a,children:({selected:s,focus:n})=>e.jsxs("div",{className:i("flex items-center gap-2 px-3 py-2 radius-control cursor-default","text-sm",n&&"bg-sys-blue text-white",!n&&"text-fg-primary",s&&!n&&"text-sys-blue",a&&"opacity-50 cursor-not-allowed",t),children:[e.jsx("span",{className:"w-4 flex-shrink-0",children:s&&e.jsx(d,{className:"w-4 h-4"})}),e.jsx("span",{className:"truncate",children:r})]})})}function b({className:s,...a}){return e.jsx("span",{...a,className:i("truncate",s)})}export{p as L,x as a,b};

View File

@@ -1 +1 @@
import{ar as e}from"./index-D7i6lQrq.js";function r(e){var r;const o=(null==(r=e.contact_type)?void 0:r.toLowerCase())??"";return"room server"===o||"room_server"===o||"room"===o||"server"===o?{type:"room_server",isRepeater:!0===e.is_repeater,isCompanion:!1,isRoomServer:!0,isClient:!1,label:"Room Server",badgeText:"ROOM"}:"companion"===o||"chat node"===o||"chat_node"===o||"chat"===o?{type:"companion",isRepeater:!1,isCompanion:!0,isRoomServer:!1,isClient:!1,label:"Companion",badgeText:"COMP"}:"client"===o||"cli"===o?{type:"companion",isRepeater:!1,isCompanion:!1,isRoomServer:!1,isClient:!0,label:"Client",badgeText:"CLI"}:"repeater"===o||"rep"===o||!0===e.is_repeater?{type:"repeater",isRepeater:!0,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Repeater",badgeText:"RPT"}:{type:"unknown",isRepeater:!1,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Unknown",badgeText:""}}function o(r){switch(r){case e.GRP_TXT:case e.TXT_MSG:case e.REQ:case e.ANON_REQ:return"companion";case e.TRACE:case e.PATH:return"repeater";case e.GRP_DATA:return"room_server";default:return"unknown"}}function n(e){switch(e){case 1:return"companion";case 2:return"repeater";case 3:return"room_server";default:return"unknown"}}export{r as c,o as i,n as m};
import{ar as e}from"./index-CkRTgHHA.js";function r(e){var r;const o=(null==(r=e.contact_type)?void 0:r.toLowerCase())??"";return"room server"===o||"room_server"===o||"room"===o||"server"===o?{type:"room_server",isRepeater:!0===e.is_repeater,isCompanion:!1,isRoomServer:!0,isClient:!1,label:"Room Server",badgeText:"ROOM"}:"companion"===o||"chat node"===o||"chat_node"===o||"chat"===o?{type:"companion",isRepeater:!1,isCompanion:!0,isRoomServer:!1,isClient:!1,label:"Companion",badgeText:"COMP"}:"client"===o||"cli"===o?{type:"companion",isRepeater:!1,isCompanion:!1,isRoomServer:!1,isClient:!0,label:"Client",badgeText:"CLI"}:"repeater"===o||"rep"===o||!0===e.is_repeater?{type:"repeater",isRepeater:!0,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Repeater",badgeText:"RPT"}:{type:"unknown",isRepeater:!1,isCompanion:!1,isRoomServer:!1,isClient:!1,label:"Unknown",badgeText:""}}function o(r){switch(r){case e.GRP_TXT:case e.TXT_MSG:case e.REQ:case e.ANON_REQ:return"companion";case e.TRACE:case e.PATH:return"repeater";case e.GRP_DATA:return"room_server";default:return"unknown"}}function n(e){switch(e){case 1:return"companion";case 2:return"repeater";case 3:return"room_server";default:return"unknown"}}export{r as c,o as i,n as m};

View File

@@ -1 +1 @@
import{bM as t}from"./index-D7i6lQrq.js";async function e(e,r=10){return t("/api/ping_neighbor",{method:"POST",body:JSON.stringify({target_id:e,timeout:r})})}const r=["Chat Node","Repeater","Room Server","Hybrid Node","Unknown"];async function s(s,o=10){if(o<1||o>60)return{success:!1,error:"Timeout must be 1-60 seconds"};let n;const a=s.match(/^(0x)?([0-9a-fA-F]{1,2})$/);if(a)n=`0x${a[2].padStart(2,"0")}`;else{const e=await async function(e){const s=e.toLowerCase();for(const o of r)try{const e=await t(`/api/adverts_by_contact_type?contact_type=${encodeURIComponent(o)}&hours=168`),r=e.success&&e.data?e.data:e,n=(Array.isArray(r)?r:[]).find(t=>t.node_name&&t.node_name.toLowerCase()===s);if(n&&n.pubkey)return`0x${n.pubkey.substring(0,2)}`}catch{continue}return null}(s);if(!e)return{success:!1,error:`Node '${s}' not found`};n=e}const c=await e(n,o);if(!c.success||!c.data)return{success:!1,error:c.error||"Ping failed"};const i=(u=c.data).rtt_ms>500||u.rssi<-120?"Poor":u.rtt_ms>250||u.rssi<-100?"Fair":u.rtt_ms>100||u.rssi<-80?"Good":"Excellent";var u;return{success:!0,data:{...c.data,quality:i}}}export{s as a,e as p};
import{bM as t}from"./index-CkRTgHHA.js";async function e(e,r=10){return t("/api/ping_neighbor",{method:"POST",body:JSON.stringify({target_id:e,timeout:r})})}const r=["Chat Node","Repeater","Room Server","Hybrid Node","Unknown"];async function s(s,o=10){if(o<1||o>60)return{success:!1,error:"Timeout must be 1-60 seconds"};let n;const a=s.match(/^(0x)?([0-9a-fA-F]{1,2})$/);if(a)n=`0x${a[2].padStart(2,"0")}`;else{const e=await async function(e){const s=e.toLowerCase();for(const o of r)try{const e=await t(`/api/adverts_by_contact_type?contact_type=${encodeURIComponent(o)}&hours=168`),r=e.success&&e.data?e.data:e,n=(Array.isArray(r)?r:[]).find(t=>t.node_name&&t.node_name.toLowerCase()===s);if(n&&n.pubkey)return`0x${n.pubkey.substring(0,2)}`}catch{continue}return null}(s);if(!e)return{success:!1,error:`Node '${s}' not found`};n=e}const c=await e(n,o);if(!c.success||!c.data)return{success:!1,error:c.error||"Ping failed"};const i=(u=c.data).rtt_ms>500||u.rssi<-120?"Poor":u.rtt_ms>250||u.rssi<-100?"Fair":u.rtt_ms>100||u.rssi<-80?"Good":"Excellent";var u;return{success:!0,data:{...c.data,quality:i}}}export{s as a,e as p};

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
import{bM as n}from"./index-D7i6lQrq.js";async function o(){return n("/api/transport_keys")}async function a(o){return n("/api/transport_keys",{method:"POST",body:JSON.stringify(o)})}async function t(o,a){return n(`/api/transport_key/${o}`,{method:"PUT",body:JSON.stringify(a)})}async function r(o){return n(`/api/transport_key/${o}`,{method:"DELETE"})}async function s(){return n("/api/global_flood_policy")}async function i(o){return n("/api/global_flood_policy",{method:"POST",body:JSON.stringify({global_flood_allow:o})})}async function c(o){return n("/api/restart_service",{method:"POST",body:"{}",signal:o})}async function e(){return n("/api/check_pymc_console")}export{s as a,a as b,e as c,r as d,o as g,c as r,i as s,t as u};
import{bM as n}from"./index-CkRTgHHA.js";async function o(){return n("/api/transport_keys")}async function a(o){return n("/api/transport_keys",{method:"POST",body:JSON.stringify(o)})}async function t(o,a){return n(`/api/transport_key/${o}`,{method:"PUT",body:JSON.stringify(a)})}async function r(o){return n(`/api/transport_key/${o}`,{method:"DELETE"})}async function s(){return n("/api/global_flood_policy")}async function i(o){return n("/api/global_flood_policy",{method:"POST",body:JSON.stringify({global_flood_allow:o})})}async function c(o){return n("/api/restart_service",{method:"POST",body:"{}",signal:o})}async function e(){return n("/api/check_pymc_console")}export{s as a,a as b,e as c,r as d,o as g,c as r,i as s,t as u};

View File

@@ -1 +1 @@
import{r as e,j as t}from"./vendor-react-alRNW2nb.js";import{a}from"./vendor-motion-DNp0Qg4F.js";import{b0 as s}from"./index-D7i6lQrq.js";import{a as o,p as n}from"./vendor-core-FtpmsTnh.js";function r({value:o,format:n,prefix:r,className:l,style:i}){const[d,g]=e.useState("waiting");if(e.useEffect(()=>{const e=setTimeout(()=>g("mounted"),400);return()=>clearTimeout(e)},[]),e.useEffect(()=>{if("mounted"===d){const e=requestAnimationFrame(()=>g("animating"));return()=>cancelAnimationFrame(e)}},[d]),"waiting"===d){const e=(0).toLocaleString(void 0,n);return t.jsxs("span",{className:l,style:i,children:[r,e]})}return t.jsx(a,{className:l,style:i,format:n,prefix:r,transition:s.numberReveal,children:"animating"===d?o:0})}const l=["repeater","companion","room_server","hubs","direct"],i={showTopology:!1,showNeighborLines:!0,show3DTerrain:!1,showMinCut:!1,showLinkQuality:!1,nodeFilters:[...l]},d=o()(n(e=>({viewState:null,setViewState:t=>e({viewState:t,lastSavedAt:Date.now()}),toggles:i,setToggle:(t,a)=>e(e=>({toggles:{...e.toggles,[t]:a},lastSavedAt:Date.now()})),setToggles:t=>e(e=>({toggles:{...e.toggles,...t},lastSavedAt:Date.now()})),hasAnalyzed:!1,setHasAnalyzed:t=>e({hasAnalyzed:t,lastSavedAt:Date.now()}),modalMapOpen:!1,setModalMapOpen:t=>e({modalMapOpen:t}),lastSavedAt:null,reset:()=>e({viewState:null,toggles:i,hasAnalyzed:!1,lastSavedAt:null})}),{name:"pymc-map-view",version:2,migrate:(e,t)=>{const a=e,s=a.toggles??{};if(0===t){const e=s.nodeFilter;let t=[...l];return"hubs"===e?t=["hubs"]:"direct"===e&&(t=["direct"]),{...a,toggles:{...s,nodeFilters:t,nodeFilter:void 0}}}if(1===t){const e=s.nodeFilters,t=e&&e.length>0?e:[...l];return{...a,toggles:{...s,nodeFilters:t}}}return e},partialize:e=>({viewState:e.viewState,toggles:e.toggles,hasAnalyzed:e.hasAnalyzed,lastSavedAt:e.lastSavedAt})}));export{l as A,r as D,d as u};
import{r as e,j as t}from"./vendor-react-alRNW2nb.js";import{a}from"./vendor-motion-DNp0Qg4F.js";import{b0 as s}from"./index-CkRTgHHA.js";import{a as o,p as n}from"./vendor-core-FtpmsTnh.js";function r({value:o,format:n,prefix:r,className:l,style:i}){const[d,g]=e.useState("waiting");if(e.useEffect(()=>{const e=setTimeout(()=>g("mounted"),400);return()=>clearTimeout(e)},[]),e.useEffect(()=>{if("mounted"===d){const e=requestAnimationFrame(()=>g("animating"));return()=>cancelAnimationFrame(e)}},[d]),"waiting"===d){const e=(0).toLocaleString(void 0,n);return t.jsxs("span",{className:l,style:i,children:[r,e]})}return t.jsx(a,{className:l,style:i,format:n,prefix:r,transition:s.numberReveal,children:"animating"===d?o:0})}const l=["repeater","companion","room_server","hubs","direct"],i={showTopology:!1,showNeighborLines:!0,show3DTerrain:!1,showMinCut:!1,showLinkQuality:!1,nodeFilters:[...l]},d=o()(n(e=>({viewState:null,setViewState:t=>e({viewState:t,lastSavedAt:Date.now()}),toggles:i,setToggle:(t,a)=>e(e=>({toggles:{...e.toggles,[t]:a},lastSavedAt:Date.now()})),setToggles:t=>e(e=>({toggles:{...e.toggles,...t},lastSavedAt:Date.now()})),hasAnalyzed:!1,setHasAnalyzed:t=>e({hasAnalyzed:t,lastSavedAt:Date.now()}),modalMapOpen:!1,setModalMapOpen:t=>e({modalMapOpen:t}),lastSavedAt:null,reset:()=>e({viewState:null,toggles:i,hasAnalyzed:!1,lastSavedAt:null})}),{name:"pymc-map-view",version:2,migrate:(e,t)=>{const a=e,s=a.toggles??{};if(0===t){const e=s.nodeFilter;let t=[...l];return"hubs"===e?t=["hubs"]:"direct"===e&&(t=["direct"]),{...a,toggles:{...s,nodeFilters:t,nodeFilter:void 0}}}if(1===t){const e=s.nodeFilters,t=e&&e.length>0?e:[...l];return{...a,toggles:{...s,nodeFilters:t}}}return e},partialize:e=>({viewState:e.viewState,toggles:e.toggles,hasAnalyzed:e.hasAnalyzed,lastSavedAt:e.lastSavedAt})}));export{l as A,r as D,d as u};

View File

@@ -39,12 +39,12 @@
--font-data: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
}
</style>
<script type="module" crossorigin src="/assets/index-D7i6lQrq.js"></script>
<script type="module" crossorigin src="/assets/index-CkRTgHHA.js"></script>
<link rel="modulepreload" crossorigin href="/assets/vendor-react-alRNW2nb.js">
<link rel="modulepreload" crossorigin href="/assets/vendor-core-FtpmsTnh.js">
<link rel="stylesheet" crossorigin href="/assets/vendor-charts-D1GxaB_c.css">
<link rel="stylesheet" crossorigin href="/assets/vendor-fonts-hkYiuhFD.css">
<link rel="stylesheet" crossorigin href="/assets/index-B2A_8ldG.css">
<link rel="stylesheet" crossorigin href="/assets/index-BawBpZYt.css">
</head>
<body>
<div id="root"></div>

View File

@@ -1,6 +1,6 @@
{
"name": "pymc_console",
"version": "0.9.285",
"version": "0.9.286",
"description": "Vite + React Dashboard for pyMC_Repeater",
"private": true,
"type": "module",