mirror of
https://github.com/dmduran12/pymc_console-dist.git
synced 2026-08-10 19:02:57 +02:00
Release v0.9.339
Automated sync from private repository. Built with obfuscation enabled.
This commit is contained in:
Vendored
+1
-1
@@ -1 +1 @@
|
||||
0.9.338
|
||||
0.9.339
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
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
+1
File diff suppressed because one or more lines are too long
-1
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
-81
File diff suppressed because one or more lines are too long
+81
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-27
File diff suppressed because one or more lines are too long
+32
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{r as x,j as s,ax as d,aG as m,bV as g,c as f,ay as C,eD as j,B as o}from"./index-BdFZD4tW.js";const u={danger:"text-sys-red",warning:"text-sys-indigo",default:"text-sys-blue"},p={danger:"danger",warning:"warning",default:"primary"};function N({isOpen:n,title:r="Confirm",message:l,confirmLabel:t="Confirm",cancelLabel:i="Cancel",variant:a="default",onConfirm:c,onCancel:e}){return s.jsxs(d,{open:n,onClose:e,size:"sm",children:[s.jsx(m,{icon:s.jsx(g,{className:f("w-5 h-5",u[a])}),title:r,onClose:e}),s.jsx(C,{children:s.jsx("p",{className:"text-sm text-fg-secondary",children:l})}),s.jsxs(j,{children:[s.jsx(o,{color:"muted",onClick:e,className:"flex-1",children:i}),s.jsx(o,{color:p[a],onClick:c,className:"flex-1",children:t})]})]})}const y=x.memo(N);export{y as C};
|
||||
import{r as d,j as s,aB as x,aL as m,b_ as g,c as C,aC as f,eU as j,B as o}from"./index-Ch85h29t.js";const u={danger:"text-sys-red",warning:"text-sys-indigo",default:"text-sys-blue"},p={danger:"danger",warning:"warning",default:"primary"};function N({isOpen:n,title:r="Confirm",message:l,confirmLabel:t="Confirm",cancelLabel:i="Cancel",variant:a="default",onConfirm:c,onCancel:e}){return s.jsxs(x,{open:n,onClose:e,size:"sm",children:[s.jsx(m,{icon:s.jsx(g,{className:C("w-5 h-5",u[a])}),title:r,onClose:e}),s.jsx(f,{children:s.jsx("p",{className:"text-sm text-fg-secondary",children:l})}),s.jsxs(j,{children:[s.jsx(o,{color:"muted",onClick:e,className:"flex-1",children:i}),s.jsx(o,{color:p[a],onClick:c,className:"flex-1",children:t})]})]})}const y=d.memo(N);export{y as C};
|
||||
-23
File diff suppressed because one or more lines are too long
+23
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
-59
File diff suppressed because one or more lines are too long
+59
File diff suppressed because one or more lines are too long
-6
@@ -1,6 +0,0 @@
|
||||
import{e as A,r as a,cT as x,j as i,cU as N}from"./index-BdFZD4tW.js";import{A as g}from"./index-CP2gQEIq.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const h=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M17 12h-2l-2 5-2-10-2 5H7",key:"15hlnc"}]],I=A("square-activity",h),b=a.memo(function({value:t,format:n,prefix:r,suffix:s,className:e,priority:m="medium"}){const[o,p]=a.useState(!1),[f,l]=a.useState(t);a.useEffect(()=>x(()=>{p(!0),l(0)},m),[m]),a.useEffect(()=>{o&&l(t)},[o,t]);const d=`${r??""}${t.toLocaleString(void 0,n)}${s??""}`;return o?i.jsx(g,{className:`${e??""} overflow-hidden`,format:n,prefix:r,suffix:s,transition:N.numberTicker,children:f}):i.jsx("span",{className:e,children:d})}),y={",":"punc",".":"punc-period",":":"punc-colon","/":"punc-slash"},u=/([,\.:\/])/g;function j(c){return c.split(u).map((n,r)=>{const s=y[n];return s?i.jsx("span",{className:s,children:n},r):n})}const U=a.memo(function({children:t,className:n="",as:r="span"}){const s=a.useMemo(()=>{let e;return typeof t=="number"?e=t.toLocaleString():Array.isArray(t)?e=t.join(""):e=String(t??""),u.test(e)?(u.lastIndex=0,j(e)):e},[t]);return i.jsx(r,{className:`data-tight ${n}`.trim(),children:s})});export{b as A,U as D,I as S};
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import{e as A,r as a,d1 as x,j as i,d2 as N}from"./index-Ch85h29t.js";import{A as g}from"./index-DT64AA0T.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const h=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M17 12h-2l-2 5-2-10-2 5H7",key:"15hlnc"}]],T=A("square-activity",h),b=a.memo(function({value:t,format:n,prefix:r,suffix:s,className:e,priority:m="medium"}){const[c,p]=a.useState(!1),[d,l]=a.useState(t);a.useEffect(()=>x(()=>{p(!0),l(0)},m),[m]),a.useEffect(()=>{c&&l(t)},[c,t]);const f=`${r??""}${t.toLocaleString(void 0,n)}${s??""}`;return c?i.jsx(g,{className:`${e??""} overflow-hidden`,format:n,prefix:r,suffix:s,transition:N.numberTicker,children:d}):i.jsx("span",{className:e,children:f})}),y={",":"punc",".":"punc-period",":":"punc-colon","/":"punc-slash"},u=/([,\.:\/])/g;function j(o){return o.split(u).map((n,r)=>{const s=y[n];return s?i.jsx("span",{className:s,children:n},r):n})}const V=a.memo(function({children:t,className:n="",as:r="span"}){const s=a.useMemo(()=>{let e;return typeof t=="number"?e=t.toLocaleString():Array.isArray(t)?e=t.join(""):e=String(t??""),u.test(e)?(u.lastIndex=0,j(e)):e},[t]);return i.jsx(r,{className:`data-tight ${n}`.trim(),children:s})});export{b as A,V as D,T as S};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{r as b,j as c,c as d}from"./index-BdFZD4tW.js";const g={hero:{mobile:12},"hero-tall":{mobile:12},"hero-auto":{mobile:12},panel:{mobile:12,md:6},feature:{mobile:12,md:6,lg:4},standard:{mobile:12,sm:6,lg:4,xl:3},compact:{mobile:6,lg:3},widget:{mobile:6,sm:4,md:3,lg:2},auto:{mobile:12}},p={hero:"bento-row-hero","hero-tall":"bento-row-hero-tall","hero-auto":"bento-row-hero-auto",panel:"bento-row-panel",feature:"bento-row-feature",standard:"bento-row-standard",compact:"bento-row-compact",widget:"bento-row-widget",auto:"bento-row-auto"};function w({template:o,children:r,className:e,gap:n}){const t=g[o],m=p[o],a=n==="none"?"gap-0":n==="sm"?"bento-gap-sm":n==="lg"?"bento-gap-lg":"bento-gap",i=b.Children.map(r,l=>!b.isValidElement(l)||l.type===u?l:c.jsx(u,{span:t.mobile,sm:t.sm,md:t.md,lg:t.lg,xl:t.xl,children:l}));return c.jsx("div",{className:d("bento-row",m,a,e),children:i})}function s(o,r=""){const e=r?`${r}:`:"";return o==="full"?`${e}col-span-full`:o==="auto"?`${e}col-auto`:o===1.5?`${e}bento-col-1-5`:`${e}bento-col-${o}`}function u({children:o,span:r,sm:e,md:n,lg:t,xl:m,ratio:a,className:i}){const l=d("bento-cell",s(r),e&&s(e,"sm"),n&&s(n,"md"),t&&s(t,"lg"),m&&s(m,"xl"),i);return c.jsx("div",{className:l,"data-ratio":a??void 0,style:a?{"--cell-ratio":a}:void 0,children:o})}export{u as C,w as R};
|
||||
import{r as b,j as c,c as d}from"./index-Ch85h29t.js";const g={hero:{mobile:12},"hero-tall":{mobile:12},"hero-auto":{mobile:12},panel:{mobile:12,md:6},feature:{mobile:12,md:6,lg:4},standard:{mobile:12,sm:6,lg:4,xl:3},compact:{mobile:6,lg:3},widget:{mobile:6,sm:4,md:3,lg:2},auto:{mobile:12}},p={hero:"bento-row-hero","hero-tall":"bento-row-hero-tall","hero-auto":"bento-row-hero-auto",panel:"bento-row-panel",feature:"bento-row-feature",standard:"bento-row-standard",compact:"bento-row-compact",widget:"bento-row-widget",auto:"bento-row-auto"};function w({template:o,children:r,className:e,gap:n}){const t=g[o],m=p[o],a=n==="none"?"gap-0":n==="sm"?"bento-gap-sm":n==="lg"?"bento-gap-lg":"bento-gap",i=b.Children.map(r,l=>!b.isValidElement(l)||l.type===u?l:c.jsx(u,{span:t.mobile,sm:t.sm,md:t.md,lg:t.lg,xl:t.xl,children:l}));return c.jsx("div",{className:d("bento-row",m,a,e),children:i})}function s(o,r=""){const e=r?`${r}:`:"";return o==="full"?`${e}col-span-full`:o==="auto"?`${e}col-auto`:o===1.5?`${e}bento-col-1-5`:`${e}bento-col-${o}`}function u({children:o,span:r,sm:e,md:n,lg:t,xl:m,ratio:a,className:i}){const l=d("bento-cell",s(r),e&&s(e,"sm"),n&&s(n,"md"),t&&s(t,"lg"),m&&s(m,"xl"),i);return c.jsx("div",{className:l,"data-ratio":a??void 0,style:a?{"--cell-ratio":a}:void 0,children:o})}export{u as C,w as R};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{r as l,j as t,Z as O}from"./index-BdFZD4tW.js";import{b as F,c as x}from"./keycap-sfx-ByZp-njj.js";const R={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"},w=Object.keys(R),N={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"},C=6,D=56,L=2;function B(){return w.filter(()=>Math.random()>.45).join("")}function $(r,i){const n=Array.from(r).map(a=>N[a.toUpperCase()]??N[a]??""),d=Math.max(0,(i??0)-r.length);for(let a=0;a<d;a++)n.push("");return n}function Y({text:r,color:i="currentColor",size:n=18,minChars:d,noCycle:a=!1,className:S}){const h=Math.round(n*.5494505494505495),M=document.documentElement.dataset.mode==="light"?.08:.16,[T,f]=l.useState(null);l.useEffect(()=>{if(a)return;const e=$(r,d),o=e.length,g=C+(o-1)*L;let y=0,b,E=!1;const k=()=>{if(!E){if(y++,y>=g){f(null);return}f(e.map((j,_)=>{const v=C+_*L;return y>=v?j:B()})),b=setTimeout(k,D)}};return k(),()=>{E=!0,clearTimeout(b)}},[r,d,a]);const c=(e,o)=>t.jsx("svg",{viewBox:"0 0 100 182",width:h,height:n,className:"seven-seg__char","aria-hidden":"true",children:w.map(g=>t.jsx("polygon",{points:R[g],fill:i,stroke:i,strokeWidth:4,strokeLinejoin:"round",opacity:e.includes(g)?1:M},g))},o),s=$(r,d),u=T??s;return t.jsxs("span",{className:`seven-seg${S?` ${S}`:""}`,children:[u.map((e,o)=>c(e,`${o}-${e}`)),t.jsx("span",{className:"sr-only",children:r})]})}const G={grey:"/assets/keycap.svg",red:"/assets/keycap-red.svg"},I=O[900],P="#FFDEB0";function Z({icon:r,variant:i="grey",onClick:n,onPress:d,sentDuration:a=2e3,title:S,disabled:h=!1,className:m,iconColor:M=I,iconActiveColor:T=P,indicators:f}){const c=!!d,[s,u]=l.useState("idle"),[e,o]=l.useState(!1),g=l.useRef(),y=c?s==="held":e,b=c&&(s==="sending"||s==="sent"),E=c?s==="held"||s==="sending":e;l.useEffect(()=>()=>clearTimeout(g.current),[]);const k=l.useCallback(()=>{h||b||(F(),c?u("held"):o(!0))},[h,b,c]),j=l.useCallback(async()=>{if(c){if(s!=="held")return;x(),u("sending");const p=await d();u(p?"sent":"idle"),p&&(g.current=setTimeout(()=>u("idle"),a))}else{if(!e)return;o(!1),x(),n==null||n()}},[c,s,d,a,e,n]),_=l.useCallback(()=>{c?s==="held"&&(x(),u("idle")):(e&&x(),o(!1))},[c,s,e]),v=t.jsx("button",{onMouseDown:k,onMouseUp:j,onMouseLeave:_,onTouchStart:k,onTouchEnd:j,onTouchCancel:_,disabled:h||b,className:`keycap-btn${i==="red"?" keycap-btn--red-cap":""}${E?" keycap-btn--pressed":""}${m&&!f?` ${m}`:""}`,title:S,children:t.jsxs("div",{className:"keycap-wrap",children:[t.jsx("img",{src:G[i],alt:"",className:"keycap-btn__img",draggable:!1}),t.jsx("span",{className:"keycap-icon-overlay",style:{color:y||s==="sending"?T:M},children:r})]})});return f!=null&&f.length?t.jsxs("div",{className:`keycap-group${m?` ${m}`:""}`,children:[v,t.jsx("div",{className:"indicator-key-pair",children:f.map(p=>{const A=p.trackPress?s:p.active?"active":"idle";return t.jsxs("div",{className:`indicator-key${A!=="idle"?` indicator-key--${A}`:""}`,children:[t.jsx("span",{className:"indicator-key__label",children:p.label}),t.jsx("span",{className:"indicator-key__led"})]},p.label)})})]}):v}export{Z as K,Y as S};
|
||||
import{r as l,j as t,Z as O}from"./index-Ch85h29t.js";import{b as F,c as x}from"./keycap-sfx-ByZp-njj.js";const R={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"},w=Object.keys(R),N={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"},C=6,D=56,L=2;function B(){return w.filter(()=>Math.random()>.45).join("")}function $(r,i){const n=Array.from(r).map(a=>N[a.toUpperCase()]??N[a]??""),d=Math.max(0,(i??0)-r.length);for(let a=0;a<d;a++)n.push("");return n}function Y({text:r,color:i="currentColor",size:n=18,minChars:d,noCycle:a=!1,className:S}){const h=Math.round(n*.5494505494505495),M=document.documentElement.dataset.mode==="light"?.08:.16,[T,f]=l.useState(null);l.useEffect(()=>{if(a)return;const e=$(r,d),o=e.length,g=C+(o-1)*L;let y=0,b,E=!1;const k=()=>{if(!E){if(y++,y>=g){f(null);return}f(e.map((j,_)=>{const v=C+_*L;return y>=v?j:B()})),b=setTimeout(k,D)}};return k(),()=>{E=!0,clearTimeout(b)}},[r,d,a]);const c=(e,o)=>t.jsx("svg",{viewBox:"0 0 100 182",width:h,height:n,className:"seven-seg__char","aria-hidden":"true",children:w.map(g=>t.jsx("polygon",{points:R[g],fill:i,stroke:i,strokeWidth:4,strokeLinejoin:"round",opacity:e.includes(g)?1:M},g))},o),s=$(r,d),u=T??s;return t.jsxs("span",{className:`seven-seg${S?` ${S}`:""}`,children:[u.map((e,o)=>c(e,`${o}-${e}`)),t.jsx("span",{className:"sr-only",children:r})]})}const G={grey:"/assets/keycap.svg",red:"/assets/keycap-red.svg"},I=O[900],P="#FFDEB0";function Z({icon:r,variant:i="grey",onClick:n,onPress:d,sentDuration:a=2e3,title:S,disabled:h=!1,className:m,iconColor:M=I,iconActiveColor:T=P,indicators:f}){const c=!!d,[s,u]=l.useState("idle"),[e,o]=l.useState(!1),g=l.useRef(),y=c?s==="held":e,b=c&&(s==="sending"||s==="sent"),E=c?s==="held"||s==="sending":e;l.useEffect(()=>()=>clearTimeout(g.current),[]);const k=l.useCallback(()=>{h||b||(F(),c?u("held"):o(!0))},[h,b,c]),j=l.useCallback(async()=>{if(c){if(s!=="held")return;x(),u("sending");const p=await d();u(p?"sent":"idle"),p&&(g.current=setTimeout(()=>u("idle"),a))}else{if(!e)return;o(!1),x(),n==null||n()}},[c,s,d,a,e,n]),_=l.useCallback(()=>{c?s==="held"&&(x(),u("idle")):(e&&x(),o(!1))},[c,s,e]),v=t.jsx("button",{onMouseDown:k,onMouseUp:j,onMouseLeave:_,onTouchStart:k,onTouchEnd:j,onTouchCancel:_,disabled:h||b,className:`keycap-btn${i==="red"?" keycap-btn--red-cap":""}${E?" keycap-btn--pressed":""}${m&&!f?` ${m}`:""}`,title:S,children:t.jsxs("div",{className:"keycap-wrap",children:[t.jsx("img",{src:G[i],alt:"",className:"keycap-btn__img",draggable:!1}),t.jsx("span",{className:"keycap-icon-overlay",style:{color:y||s==="sending"?T:M},children:r})]})});return f!=null&&f.length?t.jsxs("div",{className:`keycap-group${m?` ${m}`:""}`,children:[v,t.jsx("div",{className:"indicator-key-pair",children:f.map(p=>{const A=p.trackPress?s:p.active?"active":"idle";return t.jsxs("div",{className:`indicator-key${A!=="idle"?` indicator-key--${A}`:""}`,children:[t.jsx("span",{className:"indicator-key__label",children:p.label}),t.jsx("span",{className:"indicator-key__led"})]},p.label)})})]}):v}export{Z as K,Y as S};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{r as y,j as t}from"./index-BdFZD4tW.js";const m="var(--sys-cyan)",k="var(--sys-blue)",v="var(--sys-indigo)",I="var(--sparkline-critical)",g="var(--fg-muted)";function C(d,o,e,s=2){if(d.length<2)return"";const r=d.map(n=>n.count),u=Math.max(...r,1),p=Math.min(...r),l=u-p||1,j=o-s*2,a=e-s*2,i=r.map((n,c)=>({x:s+c/(r.length-1)*j,y:s+a-(n-p)/l*a}));let x=`M ${i[0].x.toFixed(1)} ${i[0].y.toFixed(1)}`;for(let n=1;n<i.length;n++){const c=i[n-1],f=i[n],$=(c.x+f.x)/2;x+=` Q ${$.toFixed(1)} ${c.y.toFixed(1)} ${f.x.toFixed(1)} ${f.y.toFixed(1)}`}return x}const L=y.memo(function({data:o,width:e=48,height:s=16,color:r,invertScale:u=!1,isLoading:p=!1,className:l=""}){const a=`sl-${y.useId().replace(/:/g,"")}`,i=y.useMemo(()=>C(o,e,s),[o,e,s]),x=!r&&o.length>=2,n=r??(x?`url(#${a})`:g),c=l.includes("w-");return p&&o.length<2?t.jsx("div",{className:`flex items-center justify-center ${l}`,style:c?{height:s}:{width:e,height:s},children:t.jsx("div",{className:"rounded animate-pulse bg-subtle-fill-hover",style:c?{width:"100%",height:s-6}:{width:e-8,height:s-6}})}):o.length<2?t.jsx("svg",{width:e,height:s,viewBox:`0 0 ${e} ${s}`,className:l,"aria-hidden":"true",children:t.jsx("line",{x1:4,y1:s/2,x2:e-4,y2:s/2,stroke:I,strokeWidth:1.5,strokeDasharray:"3,2"})}):t.jsxs("svg",{width:e,height:s,viewBox:`0 0 ${e} ${s}`,preserveAspectRatio:"none",className:l,"aria-hidden":"true",style:{maxWidth:"100%"},children:[x&&t.jsx("defs",{children:t.jsxs("linearGradient",{id:a,gradientUnits:"userSpaceOnUse",x1:0,y1:2,x2:0,y2:s-2,children:[t.jsx("stop",{offset:"0%",stopColor:u?v:m}),t.jsx("stop",{offset:"50%",stopColor:k}),t.jsx("stop",{offset:"100%",stopColor:u?m:v})]})}),t.jsx("path",{d:i,fill:"none",stroke:n,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]})});export{L};
|
||||
import{r as y,j as t}from"./index-Ch85h29t.js";const m="var(--sys-cyan)",k="var(--sys-blue)",v="var(--sys-indigo)",I="var(--sparkline-critical)",g="var(--fg-muted)";function C(d,o,e,s=2){if(d.length<2)return"";const r=d.map(n=>n.count),u=Math.max(...r,1),p=Math.min(...r),l=u-p||1,j=o-s*2,a=e-s*2,i=r.map((n,c)=>({x:s+c/(r.length-1)*j,y:s+a-(n-p)/l*a}));let x=`M ${i[0].x.toFixed(1)} ${i[0].y.toFixed(1)}`;for(let n=1;n<i.length;n++){const c=i[n-1],f=i[n],$=(c.x+f.x)/2;x+=` Q ${$.toFixed(1)} ${c.y.toFixed(1)} ${f.x.toFixed(1)} ${f.y.toFixed(1)}`}return x}const L=y.memo(function({data:o,width:e=48,height:s=16,color:r,invertScale:u=!1,isLoading:p=!1,className:l=""}){const a=`sl-${y.useId().replace(/:/g,"")}`,i=y.useMemo(()=>C(o,e,s),[o,e,s]),x=!r&&o.length>=2,n=r??(x?`url(#${a})`:g),c=l.includes("w-");return p&&o.length<2?t.jsx("div",{className:`flex items-center justify-center ${l}`,style:c?{height:s}:{width:e,height:s},children:t.jsx("div",{className:"rounded animate-pulse bg-subtle-fill-hover",style:c?{width:"100%",height:s-6}:{width:e-8,height:s-6}})}):o.length<2?t.jsx("svg",{width:e,height:s,viewBox:`0 0 ${e} ${s}`,className:l,"aria-hidden":"true",children:t.jsx("line",{x1:4,y1:s/2,x2:e-4,y2:s/2,stroke:I,strokeWidth:1.5,strokeDasharray:"3,2"})}):t.jsxs("svg",{width:e,height:s,viewBox:`0 0 ${e} ${s}`,preserveAspectRatio:"none",className:l,"aria-hidden":"true",style:{maxWidth:"100%"},children:[x&&t.jsx("defs",{children:t.jsxs("linearGradient",{id:a,gradientUnits:"userSpaceOnUse",x1:0,y1:2,x2:0,y2:s-2,children:[t.jsx("stop",{offset:"0%",stopColor:u?v:m}),t.jsx("stop",{offset:"50%",stopColor:k}),t.jsx("stop",{offset:"100%",stopColor:u?m:v})]})}),t.jsx("path",{d:i,fill:"none",stroke:n,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"})]})});export{L};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+6
File diff suppressed because one or more lines are too long
-6
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+109
-109
File diff suppressed because one or more lines are too long
+14
File diff suppressed because one or more lines are too long
-14
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
import{r as m,cX as x,u as d,j as s,c as i,$ as g,R as c}from"./index-BdFZD4tW.js";const j=m.memo(function({variant:r="inline",showChannel:l=!0,className:t}){const{active:u,iatas:e}=x(),a=d();if(!u)return null;const n=l&&e.length>0?e.length<=3?e.join(", "):`${e.slice(0,2).join(", ")} +${e.length-2}`:null,o=n?`MQTT · ${n}`:"MQTT";return r==="pill"?s.jsx("span",{onClick:()=>a("/configuration/sources"),className:i("cursor-pointer",t),children:s.jsxs(g,{color:"cyan",children:[s.jsx(c,{className:"w-3 h-3 mr-1"}),o]})}):s.jsxs("span",{className:i("inline-flex items-center gap-1 text-sys-cyan type-data-xs cursor-pointer","hover:text-sys-cyan/80 transition-colors",t),onClick:()=>a("/configuration/sources"),title:"MQTT mode active — click to manage",children:[s.jsx(c,{className:"w-3 h-3"}),s.jsx("span",{className:"font-medium",children:o})]})});export{j as M};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as d,d5 as m,u as x,j as s,c as i,a2 as g,R as c}from"./index-Ch85h29t.js";const j=d.memo(function({variant:r="inline",showChannel:l=!0,className:t}){const{active:u,iatas:e}=m(),a=x();if(!u)return null;const n=l&&e.length>0?e.length<=3?e.join(", "):`${e.slice(0,2).join(", ")} +${e.length-2}`:null,o=n?`MQTT · ${n}`:"MQTT";return r==="pill"?s.jsx("span",{onClick:()=>a("/configuration/sources"),className:i("cursor-pointer",t),children:s.jsxs(g,{color:"cyan",children:[s.jsx(c,{className:"w-3 h-3 mr-1"}),o]})}):s.jsxs("span",{className:i("inline-flex items-center gap-1 text-sys-cyan type-data-xs cursor-pointer","hover:text-sys-cyan/80 transition-colors",t),onClick:()=>a("/configuration/sources"),title:"MQTT mode active — click to manage",children:[s.jsx(c,{className:"w-3 h-3"}),s.jsx("span",{className:"font-medium",children:o})]})});export{j as M};
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+43
File diff suppressed because one or more lines are too long
-43
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
+6
File diff suppressed because one or more lines are too long
-6
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{j as e,c as u,r as t,aN as C,gu as y,a2 as A}from"./index-BdFZD4tW.js";import{a as R,C as S,W as w}from"./WorkspaceNav-DR8N-VVk.js";function L({children:c,className:a}){return e.jsx("div",{className:u("section-gap",a),children:c})}function P({children:c,className:a,ready:i}){const o=C(),l=i??o,[m,r]=t.useState(!1);return t.useEffect(()=>{if(!l){const f=window.setTimeout(()=>r(!1),0);return()=>window.clearTimeout(f)}let d=!1;return requestAnimationFrame(()=>{requestAnimationFrame(()=>{d||t.startTransition(()=>r(!0))})}),()=>{d=!0}},[l]),e.jsx(y.Provider,{value:l&&m,children:e.jsx("div",{className:u("bento-section",a),children:c})})}function W({title:c,icon:a,controls:i,leading:o,subtitle:l,mobileInlineControls:m=!1}){const r=t.useRef(null),[d,f]=t.useState(!1),[p,g]=t.useState(!1),h=t.useCallback(()=>{const s=r.current;if(!s)return;const n=s.scrollWidth-s.clientWidth;f(s.scrollLeft>6),g(n-s.scrollLeft>6)},[]);t.useEffect(()=>{const s=r.current;if(!s)return;const n=requestAnimationFrame(h),x=new ResizeObserver(h);return x.observe(s),Array.from(s.children).forEach(N=>x.observe(N)),s.addEventListener("scroll",h,{passive:!0}),()=>{cancelAnimationFrame(n),x.disconnect(),s.removeEventListener("scroll",h)}},[i,o,h]);const v=s=>{const n=r.current;n&&n.scrollBy({left:s*Math.max(144,n.clientWidth*.7),behavior:"smooth"})},j=!!(o||i),b=d||p;return e.jsxs("header",{className:u("page-header",m&&"mobile-inline-controls"),children:[e.jsxs("div",{className:"page-header-primary",children:[e.jsxs("h1",{className:"page-header-title type-title text-fg-primary",children:[a&&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:a}),e.jsx("span",{className:"truncate",children:c})]}),j&&e.jsxs("div",{className:u("page-header-actions-shell",b&&"is-overflowing"),children:[e.jsx("button",{type:"button",className:"page-header-actions-scroll page-header-actions-scroll-left",onClick:()=>v(-1),disabled:!d,"aria-label":"Previous page controls",tabIndex:d?0:-1,children:e.jsx(R,{"aria-hidden":"true"})}),e.jsxs("div",{ref:r,className:"page-header-actions",children:[o&&e.jsx("div",{className:"page-header-leading",children:o}),i&&e.jsx("div",{className:"page-header-controls",children:i})]}),e.jsx("button",{type:"button",className:"page-header-actions-scroll page-header-actions-scroll-right",onClick:()=>v(1),disabled:!p,"aria-label":"More page controls",tabIndex:p?0:-1,children:e.jsx(S,{"aria-hidden":"true"})})]})]}),l&&e.jsx("div",{className:"page-header-subtitle",children:l}),e.jsx(w,{})]})}function z({size:c,...a}){return e.jsx(A,{...a})}export{P as B,z as C,L as P,W as a};
|
||||
import{j as e,c as u,r as t,aS as C,gK as y,a5 as A}from"./index-Ch85h29t.js";import{a as R,C as S,W as w}from"./WorkspaceNav-ZTG5UTjF.js";function L({children:c,className:a}){return e.jsx("div",{className:u("section-gap",a),children:c})}function P({children:c,className:a,ready:i}){const o=C(),l=i??o,[m,r]=t.useState(!1);return t.useEffect(()=>{if(!l){const f=window.setTimeout(()=>r(!1),0);return()=>window.clearTimeout(f)}let d=!1;return requestAnimationFrame(()=>{requestAnimationFrame(()=>{d||t.startTransition(()=>r(!0))})}),()=>{d=!0}},[l]),e.jsx(y.Provider,{value:l&&m,children:e.jsx("div",{className:u("bento-section",a),children:c})})}function W({title:c,icon:a,controls:i,leading:o,subtitle:l,mobileInlineControls:m=!1}){const r=t.useRef(null),[d,f]=t.useState(!1),[p,g]=t.useState(!1),h=t.useCallback(()=>{const s=r.current;if(!s)return;const n=s.scrollWidth-s.clientWidth;f(s.scrollLeft>6),g(n-s.scrollLeft>6)},[]);t.useEffect(()=>{const s=r.current;if(!s)return;const n=requestAnimationFrame(h),x=new ResizeObserver(h);return x.observe(s),Array.from(s.children).forEach(N=>x.observe(N)),s.addEventListener("scroll",h,{passive:!0}),()=>{cancelAnimationFrame(n),x.disconnect(),s.removeEventListener("scroll",h)}},[i,o,h]);const v=s=>{const n=r.current;n&&n.scrollBy({left:s*Math.max(144,n.clientWidth*.7),behavior:"smooth"})},j=!!(o||i),b=d||p;return e.jsxs("header",{className:u("page-header",m&&"mobile-inline-controls"),children:[e.jsxs("div",{className:"page-header-primary",children:[e.jsxs("h1",{className:"page-header-title type-title text-fg-primary",children:[a&&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:a}),e.jsx("span",{className:"truncate",children:c})]}),j&&e.jsxs("div",{className:u("page-header-actions-shell",b&&"is-overflowing"),children:[e.jsx("button",{type:"button",className:"page-header-actions-scroll page-header-actions-scroll-left",onClick:()=>v(-1),disabled:!d,"aria-label":"Previous page controls",tabIndex:d?0:-1,children:e.jsx(R,{"aria-hidden":"true"})}),e.jsxs("div",{ref:r,className:"page-header-actions",children:[o&&e.jsx("div",{className:"page-header-leading",children:o}),i&&e.jsx("div",{className:"page-header-controls",children:i})]}),e.jsx("button",{type:"button",className:"page-header-actions-scroll page-header-actions-scroll-right",onClick:()=>v(1),disabled:!p,"aria-label":"More page controls",tabIndex:p?0:-1,children:e.jsx(S,{"aria-hidden":"true"})})]})]}),l&&e.jsx("div",{className:"page-header-subtitle",children:l}),e.jsx(w,{})]})}function z({size:c,...a}){return e.jsx(A,{...a})}export{P as B,z as C,L as P,W as a};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+21
File diff suppressed because one or more lines are too long
-21
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+21
File diff suppressed because one or more lines are too long
-21
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as q,r as a,j as e,f as P,R as A,B as M,h as z}from"./index-BdFZD4tW.js";import{P as I,a as Z,B as D,C as o}from"./PageLayout-CIUNh3-q.js";import{n as O,g as G,a as J,b as K,s as Q}from"./setup-Bj5by3EZ.js";import{W as V}from"./wrench-wNCT0Kep.js";import{R as f,C as m}from"./Grid-BkuFQpqe.js";import{S as X}from"./shield-check-DqZm2nm3.js";import{W as Y}from"./wifi-BYutYmlw.js";import"./WorkspaceNav-DR8N-VVk.js";/**
|
||||
import{e as q,r as a,j as e,f as P,R as A,B as M,h as z}from"./index-Ch85h29t.js";import{P as I,a as Z,B as D,C as o}from"./PageLayout-BB80XCAa.js";import{n as O,g as G,a as J,b as K,s as Q}from"./setup-BmP9ApFU.js";import{W as V}from"./wrench-CwAAn8Ca.js";import{R as f,C as m}from"./Grid-DKZX3hrI.js";import{S as X}from"./shield-check-DF8MawhL.js";import{W as Y}from"./wifi-N54J6ORS.js";import"./WorkspaceNav-ZTG5UTjF.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
Vendored
+6
-6
@@ -1,26 +1,26 @@
|
||||
import{e as l,r as m,c as i,j as r,gm as j,dB as _,e6 as k}from"./index-BdFZD4tW.js";/**
|
||||
import{e as i,r as m,c as l,j as r,gC as j,dO as _,el as k}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const N=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}]],v=l("signal-high",N);/**
|
||||
*/const N=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}]],v=i("signal-high",N);/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const S=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}]],w=l("signal-low",S);/**
|
||||
*/const S=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}]],w=i("signal-low",S);/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const M=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}]],A=l("signal-medium",M);/**
|
||||
*/const M=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}]],C=i("signal-medium",M);/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const C=[["path",{d:"M2 20h.01",key:"4haj6o"}]],b=l("signal-zero",C);/**
|
||||
*/const A=[["path",{d:"M2 20h.01",key:"4haj6o"}]],b=i("signal-zero",A);/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const B=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]],R=l("signal",B),L={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)"},E={excellent:"#4ADE80",good:"#A3E635",fair:"#FACC15",weak:"#FB923C",poor:"#EF4444"};function d(e){return e>=-90?"excellent":e>=-100?"good":e>=-110?"fair":e>=-120?"weak":"poor"}function F(e,t,a,s=0){const n=k(t,e,a,s);return n?I(n.finalGrade):d(e)}function I(e){switch(e){case"excellent":return"excellent";case"good":return"good";case"fair":return"fair";case"poor":return"weak";case"critical":return"poor"}}function O(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"}}function f(e,t,a=!0){return t?a?{backgroundColor:E[e],"--p3-color":L[e]}:{backgroundColor:"rgba(255, 255, 255, 0.25)"}:{backgroundColor:"rgba(255, 255, 255, 0.1)"}}function p(e,t=!0){return e&&t?"signal-bar-active":""}function G({rssi:e,className:t="w-4 h-4"}){const a=d(e),s=O(a),n=i(s,t);switch(a){case"excellent":return r.jsx(R,{className:n});case"good":return r.jsx(v,{className:n});case"fair":return r.jsx(A,{className:n});case"weak":return r.jsx(w,{className:n});case"poor":default:return r.jsx(b,{className:n})}}function $({rssi:e,snr:t,compact:a=!1,showValues:s=!0,radioConfig:n,nfPenalty:h=0,validated:c=!0}){const g=t!==void 0?F(e,t,n,h):d(e),x=4,u={excellent:4,good:3,fair:2,weak:1,poor:0}[g];return a?r.jsxs("div",{className:"flex items-center gap-1.5",children:[s&&r.jsx("span",{className:i("type-data-xs w-[32px] text-left",c?"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:x}).map((y,o)=>r.jsx("div",{className:i("w-[3px] h-full rounded-[1px] transition-colors",p(o<u,c)),style:f(g,o<u,c)},o))})]}):r.jsxs("div",{className:"flex items-center gap-2",children:[s&&r.jsxs("div",{className:"flex flex-col items-start w-[52px]",children:[r.jsxs("span",{className:i("type-data-xs leading-tight",c?"text-fg-secondary":"text-fg-muted"),children:[e," dBm"]}),t!==void 0&&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:x}).map((y,o)=>r.jsx("div",{className:i("w-[3px] h-full rounded-[1px] transition-colors",p(o<u,c)),style:f(g,o<u,c)},o))})]})}const P=m.memo($);function q(e){const t=d(e);return t.charAt(0).toUpperCase()+t.slice(1)}function D(e){if(Array.isArray(e))return e;if(typeof e=="string"&&e.startsWith("["))try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}return[]}function H(e){const t=D(e.original_path),a=e.route??e.route_type;return j(a)?t.length===0:_(a)?t.length<=1:t.length===0}function z(e){return e.packet_origin==="tx_local"||e.packet_origin==="tx_forward"?!1:e._isZeroHop!=null?e._isZeroHop:H(e)}export{P as S,R as a,G as b,d as c,q as g,z as i};
|
||||
*/const B=[["path",{d:"M2 20h.01",key:"4haj6o"}],["path",{d:"M7 20v-4",key:"j294jx"}],["path",{d:"M12 20v-8",key:"i3yub9"}],["path",{d:"M17 20V8",key:"1tkaf5"}],["path",{d:"M22 4v16",key:"sih9yq"}]],R=i("signal",B),L={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)"},O={excellent:"#4ADE80",good:"#A3E635",fair:"#FACC15",weak:"#FB923C",poor:"#EF4444"};function d(e){return e>=-90?"excellent":e>=-100?"good":e>=-110?"fair":e>=-120?"weak":"poor"}function E(e,t,a,s=0){const n=k(t,e,a,s);return n?F(n.finalGrade):d(e)}function F(e){switch(e){case"excellent":return"excellent";case"good":return"good";case"fair":return"fair";case"poor":return"weak";case"critical":return"poor"}}function I(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"}}function f(e,t,a=!0){return t?a?{backgroundColor:O[e],"--p3-color":L[e]}:{backgroundColor:"rgba(255, 255, 255, 0.25)"}:{backgroundColor:"rgba(255, 255, 255, 0.1)"}}function p(e,t=!0){return e&&t?"signal-bar-active":""}function G({rssi:e,className:t="w-4 h-4"}){const a=d(e),s=I(a),n=l(s,t);switch(a){case"excellent":return r.jsx(R,{className:n});case"good":return r.jsx(v,{className:n});case"fair":return r.jsx(C,{className:n});case"weak":return r.jsx(w,{className:n});case"poor":default:return r.jsx(b,{className:n})}}function $({rssi:e,snr:t,compact:a=!1,showValues:s=!0,radioConfig:n,nfPenalty:h=0,validated:c=!0}){const g=t!==void 0?E(e,t,n,h):d(e),x=4,u={excellent:4,good:3,fair:2,weak:1,poor:0}[g];return a?r.jsxs("div",{className:"flex items-center gap-1.5",children:[s&&r.jsx("span",{className:l("type-data-xs w-[32px] text-left",c?"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:x}).map((y,o)=>r.jsx("div",{className:l("w-[3px] h-full rounded-[1px] transition-colors",p(o<u,c)),style:f(g,o<u,c)},o))})]}):r.jsxs("div",{className:"flex items-center gap-2",children:[s&&r.jsxs("div",{className:"flex flex-col items-start w-[52px]",children:[r.jsxs("span",{className:l("type-data-xs leading-tight",c?"text-fg-secondary":"text-fg-muted"),children:[e," dBm"]}),t!==void 0&&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:x}).map((y,o)=>r.jsx("div",{className:l("w-[3px] h-full rounded-[1px] transition-colors",p(o<u,c)),style:f(g,o<u,c)},o))})]})}const P=m.memo($);function q(e){const t=d(e);return t.charAt(0).toUpperCase()+t.slice(1)}function D(e){if(Array.isArray(e))return e;if(typeof e=="string"&&e.startsWith("["))try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}return[]}function H(e){const t=D(e.original_path),a=e.route??e.route_type;return j(a)?t.length===0:_(a)?t.length<=1:t.length===0}function z(e){return e.packet_origin==="tx_local"||e.packet_origin==="tx_forward"?!1:e._isZeroHop!=null?e._isZeroHop:H(e)}export{P as S,R as a,G as b,d as c,q as g,z as i};
|
||||
+41
File diff suppressed because one or more lines are too long
-41
File diff suppressed because one or more lines are too long
+6
File diff suppressed because one or more lines are too long
-6
File diff suppressed because one or more lines are too long
+91
-91
File diff suppressed because one or more lines are too long
-12
File diff suppressed because one or more lines are too long
+12
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
-11
@@ -1,11 +0,0 @@
|
||||
import{e as v,gv as k,r as l,j as o,c as f,gw as x}from"./index-BdFZD4tW.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const w=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],W=v("chevron-left",w);/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const S=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],R=v("chevron-right",S),L=[{label:"Map views",match:e=>e.startsWith("/map"),items:[{label:"Map",to:"/map",match:e=>e==="/map"},{label:"GPS",to:"/map/gps"}]},{label:"Packet views",match:e=>e.startsWith("/packets"),items:[{label:"History",to:"/packets",match:e=>e==="/packets"},{label:"Wire Inspector",to:"/packets/raw"}]},{label:"Statistics views",match:e=>e.startsWith("/statistics"),items:[{label:"Summary",to:"/statistics",match:e=>e==="/statistics"},{label:"RF Health",to:"/statistics/rf-health"}]},{label:"Message views",match:e=>e.startsWith("/messages"),items:[{label:"Companion",to:"/messages/companion"},{label:"Room Server",to:"/messages/rooms"}]},{label:"Configuration views",match:e=>e.startsWith("/configuration"),items:[{label:"Repeater",to:"/configuration/repeater"},{label:"Radio Hardware",to:"/configuration/radio",match:e=>e.startsWith("/configuration/radio")},{label:"Routing & Policy",to:"/configuration/policy"},{label:"Observer",to:"/configuration/observer"},{label:"Client Access",to:"/configuration/access"}]},{label:"System views",match:e=>e.startsWith("/system"),items:[{label:"Resources",to:"/system/resources"},{label:"Sensors",to:"/system/sensors"},{label:"Logs",to:"/system/logs"},{label:"Storage",to:"/system/storage"},{label:"Recovery",to:"/system/recovery"},{label:"Diagnostics",to:"/system/memory",match:e=>e==="/system/diagnostics"||e==="/system/memory"},{label:"Terminal",to:"/system/terminal"}]}];function j(e,s){return e.match?e.match(s):s===e.to||s.startsWith(`${e.to}/`)}function N(){const{pathname:e}=k(),s=L.find(t=>t.match(e)),i=s==null?void 0:s.items.find(t=>j(t,e)),c=l.useRef(null),[n,p]=l.useState(!1),[m,g]=l.useState(!1),r=l.useCallback(()=>{const t=c.current;if(!t)return;const a=t.scrollWidth-t.clientWidth;p(t.scrollLeft>6),g(a-t.scrollLeft>6)},[]);if(l.useEffect(()=>{const t=c.current;if(!t||!s)return;const a=requestAnimationFrame(()=>{const h=t.querySelector('[aria-current="page"]');if(h&&t.scrollWidth>t.clientWidth){const d=s.items.indexOf(i),y=d===0?0:d===s.items.length-1?t.scrollWidth-t.clientWidth:h.offsetLeft-(t.clientWidth-h.offsetWidth)/2;t.scrollTo({left:Math.max(0,y),behavior:"auto"})}r()}),b=new ResizeObserver(r);return b.observe(t),t.addEventListener("scroll",r,{passive:!0}),()=>{cancelAnimationFrame(a),b.disconnect(),t.removeEventListener("scroll",r)}},[i,s,e,r]),!s)return null;const u=t=>{const a=c.current;a&&a.scrollBy({left:t*Math.max(160,a.clientWidth*.7),behavior:"smooth"})};return o.jsxs("div",{className:f("workspace-nav-shell",n&&"can-scroll-left",m&&"can-scroll-right"),children:[o.jsx("button",{type:"button",className:"workspace-nav-scroll workspace-nav-scroll-left",onClick:()=>u(-1),disabled:!n,"aria-label":`Previous ${s.label}`,tabIndex:n?0:-1,children:o.jsx(W,{"aria-hidden":"true"})}),o.jsx("nav",{ref:c,"aria-label":s.label,className:"workspace-nav",children:o.jsx("div",{className:"workspace-nav-track",children:s.items.map(t=>{const a=t===i;return o.jsx(x,{to:t.to,className:f("workspace-nav-item",a&&"active"),"aria-current":a?"page":void 0,children:o.jsx("span",{children:t.label})},t.to)})})}),o.jsx("button",{type:"button",className:"workspace-nav-scroll workspace-nav-scroll-right",onClick:()=>u(1),disabled:!m,"aria-label":`More ${s.label}`,tabIndex:m?0:-1,children:o.jsx(R,{"aria-hidden":"true"})})]})}export{R as C,N as W,W as a};
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import{e as v,gL as k,r as l,j as o,c as f,gM as x}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const W=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],w=v("chevron-left",W);/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
* See the LICENSE file in the root directory of this source tree.
|
||||
*/const S=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],L=v("chevron-right",S),R=[{label:"Map views",match:e=>e.startsWith("/map"),items:[{label:"Map",to:"/map",match:e=>e==="/map"},{label:"GPS",to:"/map/gps"}]},{label:"Packet views",match:e=>e.startsWith("/packets"),items:[{label:"History",to:"/packets",match:e=>e==="/packets"},{label:"Wire Inspector",to:"/packets/raw"}]},{label:"Statistics views",match:e=>e.startsWith("/statistics"),items:[{label:"Summary",to:"/statistics",match:e=>e==="/statistics"},{label:"RF Health",to:"/statistics/rf-health"}]},{label:"Message views",match:e=>e.startsWith("/messages"),items:[{label:"Companion",to:"/messages/companion"},{label:"Room Server",to:"/messages/rooms"}]},{label:"Configuration views",match:e=>e.startsWith("/configuration"),items:[{label:"General",to:"/configuration/repeater"},{label:"Radio Hardware",to:"/configuration/radio",match:e=>e.startsWith("/configuration/radio")},{label:"Routing & Policy",to:"/configuration/policy"},{label:"Observer",to:"/configuration/observer"},{label:"Client Access",to:"/configuration/access"}]},{label:"System views",match:e=>e.startsWith("/system"),items:[{label:"Resources",to:"/system/resources"},{label:"Sensors",to:"/system/sensors"},{label:"Logs",to:"/system/logs"},{label:"Storage",to:"/system/storage"},{label:"Recovery",to:"/system/recovery"},{label:"Diagnostics",to:"/system/memory",match:e=>e==="/system/diagnostics"||e==="/system/memory"},{label:"Terminal",to:"/system/terminal"}]}];function j(e,s){return e.match?e.match(s):s===e.to||s.startsWith(`${e.to}/`)}function N(){const{pathname:e}=k(),s=R.find(t=>t.match(e)),i=s==null?void 0:s.items.find(t=>j(t,e)),c=l.useRef(null),[n,p]=l.useState(!1),[m,g]=l.useState(!1),r=l.useCallback(()=>{const t=c.current;if(!t)return;const a=t.scrollWidth-t.clientWidth;p(t.scrollLeft>6),g(a-t.scrollLeft>6)},[]);if(l.useEffect(()=>{const t=c.current;if(!t||!s)return;const a=requestAnimationFrame(()=>{const h=t.querySelector('[aria-current="page"]');if(h&&t.scrollWidth>t.clientWidth){const d=s.items.indexOf(i),y=d===0?0:d===s.items.length-1?t.scrollWidth-t.clientWidth:h.offsetLeft-(t.clientWidth-h.offsetWidth)/2;t.scrollTo({left:Math.max(0,y),behavior:"auto"})}r()}),b=new ResizeObserver(r);return b.observe(t),t.addEventListener("scroll",r,{passive:!0}),()=>{cancelAnimationFrame(a),b.disconnect(),t.removeEventListener("scroll",r)}},[i,s,e,r]),!s)return null;const u=t=>{const a=c.current;a&&a.scrollBy({left:t*Math.max(160,a.clientWidth*.7),behavior:"smooth"})};return o.jsxs("div",{className:f("workspace-nav-shell",n&&"can-scroll-left",m&&"can-scroll-right"),children:[o.jsx("button",{type:"button",className:"workspace-nav-scroll workspace-nav-scroll-left",onClick:()=>u(-1),disabled:!n,"aria-label":`Previous ${s.label}`,tabIndex:n?0:-1,children:o.jsx(w,{"aria-hidden":"true"})}),o.jsx("nav",{ref:c,"aria-label":s.label,className:"workspace-nav",children:o.jsx("div",{className:"workspace-nav-track",children:s.items.map(t=>{const a=t===i;return o.jsx(x,{to:t.to,className:f("workspace-nav-item",a&&"active"),"aria-current":a?"page":void 0,children:o.jsx("span",{children:t.label})},t.to)})})}),o.jsx("button",{type:"button",className:"workspace-nav-scroll workspace-nav-scroll-right",onClick:()=>u(1),disabled:!m,"aria-label":`More ${s.label}`,tabIndex:m?0:-1,children:o.jsx(L,{"aria-hidden":"true"})})]})}export{L as C,N as W,w as a};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as t}from"./index-BdFZD4tW.js";/**
|
||||
import{e as t}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e}from"./index-BdFZD4tW.js";/**
|
||||
import{e}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as o}from"./index-BdFZD4tW.js";/**
|
||||
import{e as o}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as o}from"./index-BdFZD4tW.js";/**
|
||||
import{e as o}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as o}from"./index-BdFZD4tW.js";/**
|
||||
import{e as o}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{dy as i}from"./index-Ch85h29t.js";async function o(t=!1){return i(`/api/config_export${t?"?include_secrets=true":""}`)}async function r(t){return i("/api/config_import",{method:"POST",body:JSON.stringify({config:t})})}async function s(){return i("/api/identity_export")}export{s as a,o as e,r as i};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{dn as n}from"./index-BdFZD4tW.js";async function o(t=!1){return n(`/api/config_export${t?"?include_secrets=true":""}`)}async function r(t){return n("/api/config_import",{method:"POST",body:JSON.stringify({config:t})})}async function s(){return n("/api/identity_export")}export{s as a,o as e,r as i};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as c}from"./index-BdFZD4tW.js";/**
|
||||
import{e as c}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{r as g,Z as p,ej as d,Y as l,N as E}from"./index-Ch85h29t.js";function x(n){const e=parseInt(n.slice(1,3),16)/255,t=parseInt(n.slice(3,5),16)/255,r=parseInt(n.slice(5,7),16)/255,o=Math.max(e,t,r),s=Math.min(e,t,r),a=(o+s)/2;if(o===s)return[0,0,a];const i=o-s,u=a>.5?i/(2-o-s):i/(o+s);let c=0;return o===e?c=((t-r)/i+(t<r?6:0))/6:o===t?c=((r-e)/i+2)/6:c=((e-t)/i+4)/6,[c,u,a]}function C(n,e,t){if(e===0)return`#${Math.round(t*255).toString(16).padStart(2,"0").repeat(3)}`;const r=(i,u,c)=>(c<0&&(c+=1),c>1&&(c-=1),c<1/6?i+(u-i)*6*c:c<1/2?u:c<2/3?i+(u-i)*(2/3-c)*6:i),o=t<.5?t*(1+e):t+e-t*e,s=2*t-o,a=i=>Math.round(i*255).toString(16).padStart(2,"0");return`#${a(r(s,o,n+1/3))}${a(r(s,o,n))}${a(r(s,o,n-1/3))}`}function S(n,e,t){let r=e[0]-n[0];return r>.5&&(r-=1),r<-.5&&(r+=1),[(n[0]+r*t+1)%1,n[1]+(e[1]-n[1])*t,n[2]+(e[2]-n[2])*t]}const j=[l.red,l.orange,l.amber,l.green,l.teal,l.cyan,l.blue,l.indigo,l.purple,l.pink],h=4,m=[];{const n=j.map(x);for(let e=0;e<n.length;e++){const t=(e+1)%n.length;for(let r=0;r<h;r++){const[o,s,a]=S(n[e],n[t],r/h);m.push(C(o,s,a))}}}function b(n){let e=0;for(let t=0;t<n.length;t++)e=n.charCodeAt(t)+((e<<5)-e);return m[Math.abs(e)%m.length]}const f=new RegExp("(?:\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F)","gu");function M(n){const e=n.trim();if(!e)return 0;const t=e.match(f);return!t||t.length===0||t.length>3||e.replace(f,"").replace(/[\u200D\uFE0F\s]/g,"").length>0?0:t.length}function y(n){const e=n.match(f);if(e&&e.length>0){const t=e[0],r=n.replace(f,"").trim();return{emoji:t,cleanName:r||n}}return{emoji:null,cleanName:n}}function T(n){const{cleanName:e}=y(n),t=e.split(/[\s-_]+/).filter(Boolean);if(t.length>=2){const o=Array.from(t[0])[0]||"",s=Array.from(t[1])[0]||"";return(o+s).toUpperCase()}return Array.from(e).slice(0,2).join("").toUpperCase()}function I(n,e=d()){return E(new Date(n*1e3),e)}function A(n,e){const t=/@\[([^\]]+)\]/g,r=[];let o=0,s;const a=e!=null&&e.isOutgoing?p[200]:l.blue,i=e==null?void 0:e.onMentionClick;for(;(s=t.exec(n))!==null;){s.index>o&&r.push(n.slice(o,s.index));const u=s[1];r.push(g.createElement(i?"button":"span",{key:s.index,className:i?"font-bold hover:underline underline-offset-2 cursor-pointer":"font-bold",style:{color:a},...i&&{type:"button",onClick:c=>{c.stopPropagation(),i(u)}}},u)),o=s.index+s[0].length}return o<n.length&&r.push(n.slice(o)),r.length>0?r:n}export{T as a,I as b,M as c,y as e,A as f,b as g};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{r as g,Z as d,V as l}from"./index-BdFZD4tW.js";function p(e){const n=parseInt(e.slice(1,3),16)/255,t=parseInt(e.slice(3,5),16)/255,r=parseInt(e.slice(5,7),16)/255,o=Math.max(n,t,r),i=Math.min(n,t,r),a=(o+i)/2;if(o===i)return[0,0,a];const s=o-i,u=a>.5?s/(2-o-i):s/(o+i);let c=0;return o===n?c=((t-r)/s+(t<r?6:0))/6:o===t?c=((r-n)/s+2)/6:c=((n-t)/s+4)/6,[c,u,a]}function E(e,n,t){if(n===0)return`#${Math.round(t*255).toString(16).padStart(2,"0").repeat(3)}`;const r=(s,u,c)=>(c<0&&(c+=1),c>1&&(c-=1),c<1/6?s+(u-s)*6*c:c<1/2?u:c<2/3?s+(u-s)*(2/3-c)*6:s),o=t<.5?t*(1+n):t+n-t*n,i=2*t-o,a=s=>Math.round(s*255).toString(16).padStart(2,"0");return`#${a(r(i,o,e+1/3))}${a(r(i,o,e))}${a(r(i,o,e-1/3))}`}function S(e,n,t){let r=n[0]-e[0];return r>.5&&(r-=1),r<-.5&&(r+=1),[(e[0]+r*t+1)%1,e[1]+(n[1]-e[1])*t,e[2]+(n[2]-e[2])*t]}const x=[l.red,l.orange,l.amber,l.green,l.teal,l.cyan,l.blue,l.indigo,l.purple,l.pink],m=4,h=[];{const e=x.map(p);for(let n=0;n<e.length;n++){const t=(n+1)%e.length;for(let r=0;r<m;r++){const[o,i,a]=S(e[n],e[t],r/m);h.push(E(o,i,a))}}}function j(e){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return h[Math.abs(n)%h.length]}const f=new RegExp("(?:\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F)","gu");function N(e){const n=e.trim();if(!n)return 0;const t=n.match(f);return!t||t.length===0||t.length>3||n.replace(f,"").replace(/[\u200D\uFE0F\s]/g,"").length>0?0:t.length}function C(e){const n=e.match(f);if(n&&n.length>0){const t=n[0],r=e.replace(f,"").trim();return{emoji:t,cleanName:r||e}}return{emoji:null,cleanName:e}}function y(e){const{cleanName:n}=C(e),t=n.split(/[\s-_]+/).filter(Boolean);if(t.length>=2){const o=Array.from(t[0])[0]||"",i=Array.from(t[1])[0]||"";return(o+i).toUpperCase()}return Array.from(n).slice(0,2).join("").toUpperCase()}function M(e){return new Date(e*1e3).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1})}function T(e,n){const t=/@\[([^\]]+)\]/g,r=[];let o=0,i;const a=n!=null&&n.isOutgoing?d[200]:l.blue,s=n==null?void 0:n.onMentionClick;for(;(i=t.exec(e))!==null;){i.index>o&&r.push(e.slice(o,i.index));const u=i[1];r.push(g.createElement(s?"button":"span",{key:i.index,className:s?"font-bold hover:underline underline-offset-2 cursor-pointer":"font-bold",style:{color:a},...s&&{type:"button",onClick:c=>{c.stopPropagation(),s(u)}}},u)),o=i.index+i[0].length}return o<e.length&&r.push(e.slice(o)),r.length>0?r:e}export{y as a,M as b,N as c,C as e,T as f,j as g};
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e}from"./index-BdFZD4tW.js";/**
|
||||
import{e}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e}from"./index-BdFZD4tW.js";/**
|
||||
import{e}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as c}from"./index-BdFZD4tW.js";/**
|
||||
import{e as c}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as c}from"./index-BdFZD4tW.js";/**
|
||||
import{e as c}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as c}from"./index-BdFZD4tW.js";/**
|
||||
import{e as c}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as c}from"./index-BdFZD4tW.js";/**
|
||||
import{e as c}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{c2 as n,r as i}from"./index-BdFZD4tW.js";const p=t=>(t.type??t.payload_type)===n.ADVERT,l=t=>(t.type??t.payload_type)===n.TRACE,h=t=>(t.type??t.payload_type)===n.TXT_MSG,_=t=>(t.type??t.payload_type)===n.PATH,d=t=>(t.type??t.payload_type)===n.ACK,g=t=>{const e=t.type??t.payload_type;return e===n.GRP_TXT||e===n.GRP_DATA},m=t=>(t.path_length??(Array.isArray(t.original_path)?t.original_path.length:0))>0,A=t=>!!t.src_hash,T=t=>t.airtime_ms!=null,c=new Set,o=new Map;function a(t,e){return`${t}|${e}`}function u(t,e){const s=a(t,e);o.set(s,(o.get(s)??0)+1)}function y(t,e){const s=a(t,e),r=o.get(s)??0;r>1?o.set(s,r-1):o.delete(s)}function C(t){for(const e of t){const s=a(e.target,e.fn);c.has(s)||c.add(s)}}function P(t){i.useEffect(()=>{for(const e of t)u(e.target,e.fn);return()=>{for(const e of t)y(e.target,e.fn)}},[t])}export{m as a,A as b,h as c,d,p as e,l as f,_ as g,T as h,g as i,C as r,P as u};
|
||||
import{c7 as n,r as i}from"./index-Ch85h29t.js";const p=t=>(t.type??t.payload_type)===n.ADVERT,l=t=>(t.type??t.payload_type)===n.TRACE,h=t=>(t.type??t.payload_type)===n.TXT_MSG,_=t=>(t.type??t.payload_type)===n.PATH,d=t=>(t.type??t.payload_type)===n.ACK,g=t=>{const e=t.type??t.payload_type;return e===n.GRP_TXT||e===n.GRP_DATA},m=t=>(t.path_length??(Array.isArray(t.original_path)?t.original_path.length:0))>0,A=t=>!!t.src_hash,T=t=>t.airtime_ms!=null,c=new Set,o=new Map;function a(t,e){return`${t}|${e}`}function u(t,e){const s=a(t,e);o.set(s,(o.get(s)??0)+1)}function y(t,e){const s=a(t,e),r=o.get(s)??0;r>1?o.set(s,r-1):o.delete(s)}function C(t){for(const e of t){const s=a(e.target,e.fn);c.has(s)||c.add(s)}}function P(t){i.useEffect(()=>{for(const e of t)u(e.target,e.fn);return()=>{for(const e of t)y(e.target,e.fn)}},[t])}export{m as a,A as b,h as c,d,p as e,l as f,_ as g,T as h,g as i,C as r,P as u};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e}from"./index-BdFZD4tW.js";/**
|
||||
import{e}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{h1 as s}from"./index-BdFZD4tW.js";const e=s(.65,0,.35,1),t=s(.33,1,.68,1),c=s(.33,.67,.67,1),u=s(.76,0,.24,1);export{t as a,e as b,c,u as e};
|
||||
import{hi as s}from"./index-Ch85h29t.js";const e=s(.65,0,.35,1),t=s(.33,1,.68,1),c=s(.33,.67,.67,1),u=s(.76,0,.24,1);export{t as a,e as b,c,u as e};
|
||||
@@ -1 +0,0 @@
|
||||
import{r as s,aQ as p,d3 as v,gn as b,go as $,dj as m,bu as x}from"./index-BdFZD4tW.js";function y(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function D(e=y){return s.useCallback((t,n)=>{if(typeof e=="string"){let u=e;return(t==null?void 0:t[u])===(n==null?void 0:n[u])}return e(t,n)},[e])}var w=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(w||{});function M(e){let t=s.useRef(null),n=p(l=>{t.current=l.pointerType,!v(l.currentTarget)&&l.pointerType==="mouse"&&l.button===w.Left&&(l.preventDefault(),e(l))}),u=p(l=>{t.current!=="mouse"&&(v(l.currentTarget)||e(l))});return{onPointerDown:n,onClick:u}}var R=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(R||{});const j={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},I=200,h=5;function E(e,{trigger:t,action:n,close:u,select:l}){let r=s.useRef(null),i=s.useRef(null),c=s.useRef(null);b(e&&t!==null,"pointerdown",o=>{$(o==null?void 0:o.target)&&t!=null&&t.contains(o.target)&&(i.current=o.x,c.current=o.y,r.current=o.timeStamp)}),b(e&&t!==null,"pointerup",o=>{var a,d;let f=r.current;if(f===null||(r.current=null,!m(o.target))||Math.abs(o.x-((a=i.current)!=null?a:o.x))<h&&Math.abs(o.y-((d=c.current)!=null?d:o.y))<h)return;let g=n(o);switch(g.kind){case 0:return;case 1:{o.timeStamp-f>I&&(l(g.target),u());break}case 2:{u();break}}},{capture:!0})}function k(e){return[e.screenX,e.screenY]}function N(){let e=s.useRef([-1,-1]);return{wasMoved(t){let n=k(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=k(t)}}}function L(e){throw new Error("Unexpected object: "+e)}var S=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(S||{});function P(e,t){let n=t.resolveItems();if(n.length<=0)return null;let u=t.resolveActiveIndex(),l=u??-1;switch(e.focus){case 0:{for(let r=0;r<n.length;++r)if(!t.resolveDisabled(n[r],r,n))return r;return u}case 1:{l===-1&&(l=n.length);for(let r=l-1;r>=0;--r)if(!t.resolveDisabled(n[r],r,n))return r;return u}case 2:{for(let r=l+1;r<n.length;++r)if(!t.resolveDisabled(n[r],r,n))return r;return u}case 3:{for(let r=n.length-1;r>=0;--r)if(!t.resolveDisabled(n[r],r,n))return r;return u}case 4:{for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return u}case 5:return null;default:L(e)}}const z={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function T(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function F(e,t,n){let u=x();if(t.kind==="Tracked"){let l=function(){r!==T(e)&&(u.dispose(),n())},{position:r}=t,i=new ResizeObserver(l);i.observe(e),u.add(()=>i.disconnect()),u.addEventListener(window,"scroll",l,{passive:!0}),u.addEventListener(window,"resize",l)}return()=>u.dispose()}export{E as L,j as S,z as a,T as b,S as c,D as d,P as f,w as g,F as p,M as s,N as u};
|
||||
@@ -0,0 +1 @@
|
||||
import{r as c,aV as p,dd as v,gE as h,gF as m,du as x,bz as $}from"./index-Ch85h29t.js";var w=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(w||{});function D(e){let n=c.useRef(null),t=p(u=>{n.current=u.pointerType,!v(u.currentTarget)&&u.pointerType==="mouse"&&u.button===w.Left&&(u.preventDefault(),e(u))}),s=p(u=>{n.current!=="mouse"&&(v(u.currentTarget)||e(u))});return{onPointerDown:t,onClick:s}}var R=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(R||{});const M={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},I=200,b=5;function C(e,{trigger:n,action:t,close:s,select:u}){let r=c.useRef(null),o=c.useRef(null),i=c.useRef(null);h(e&&n!==null,"pointerdown",l=>{m(l==null?void 0:l.target)&&n!=null&&n.contains(l.target)&&(o.current=l.x,i.current=l.y,r.current=l.timeStamp)}),h(e&&n!==null,"pointerup",l=>{var a,d;let f=r.current;if(f===null||(r.current=null,!x(l.target))||Math.abs(l.x-((a=o.current)!=null?a:l.x))<b&&Math.abs(l.y-((d=i.current)!=null?d:l.y))<b)return;let g=t(l);switch(g.kind){case 0:return;case 1:{l.timeStamp-f>I&&(u(g.target),s());break}case 2:{s();break}}},{capture:!0})}function k(e){return[e.screenX,e.screenY]}function E(){let e=c.useRef([-1,-1]);return{wasMoved(n){let t=k(n);return e.current[0]===t[0]&&e.current[1]===t[1]?!1:(e.current=t,!0)},update(n){e.current=k(n)}}}function L(e){throw new Error("Unexpected object: "+e)}var S=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(S||{});function N(e,n){let t=n.resolveItems();if(t.length<=0)return null;let s=n.resolveActiveIndex(),u=s??-1;switch(e.focus){case 0:{for(let r=0;r<t.length;++r)if(!n.resolveDisabled(t[r],r,t))return r;return s}case 1:{u===-1&&(u=t.length);for(let r=u-1;r>=0;--r)if(!n.resolveDisabled(t[r],r,t))return r;return s}case 2:{for(let r=u+1;r<t.length;++r)if(!n.resolveDisabled(t[r],r,t))return r;return s}case 3:{for(let r=t.length-1;r>=0;--r)if(!n.resolveDisabled(t[r],r,t))return r;return s}case 4:{for(let r=0;r<t.length;++r)if(n.resolveId(t[r],r,t)===e.id)return r;return s}case 5:return null;default:L(e)}}const z={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function T(e){let n=e.getBoundingClientRect();return`${n.x},${n.y}`}function F(e,n,t){let s=$();if(n.kind==="Tracked"){let u=function(){r!==T(e)&&(s.dispose(),t())},{position:r}=n,o=new ResizeObserver(u);o.observe(e),s.add(()=>o.disconnect()),s.addEventListener(window,"scroll",u,{passive:!0}),s.addEventListener(window,"resize",u)}return()=>s.dispose()}export{C as L,M as S,z as a,T as b,S as c,N as f,w as g,F as p,D as s,E as u};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{e as c}from"./index-BdFZD4tW.js";/**
|
||||
import{e as c}from"./index-Ch85h29t.js";/**
|
||||
* @license lucide-react v0.559.0 - ISC
|
||||
*
|
||||
* This source code is licensed under the ISC license.
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{j as a,dZ as l,c as i,b4 as n,gD as c}from"./index-Ch85h29t.js";function x({disabled:e,className:s,children:t}){return a.jsx(l,{disabled:e,className:i("flex flex-col gap-2",s),children:t})}function m({required:e,className:s,children:t,...r}){return a.jsxs(n,{className:i("text-sm font-medium text-fg-primary select-none","data-[disabled]:opacity-50",r.title&&"cursor-help",s),...r,children:[t,e&&a.jsx("span",{className:"text-sys-red ml-0.5","aria-hidden":"true",children:"*"})]})}function o({className:e,children:s,...t}){return a.jsx(c,{className:i("text-sm text-fg-muted","data-[disabled]:opacity-50",e),...t,children:s})}export{o as D,x as F,m as L};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{j as t,dM as l,c as i,a$ as n,fC as c}from"./index-BdFZD4tW.js";function x({disabled:e,className:s,children:a}){return t.jsx(l,{disabled:e,className:i("flex flex-col gap-2",s),children:a})}function m({required:e,className:s,children:a,...r}){return t.jsxs(n,{className:i("text-sm font-medium text-fg-primary select-none","data-[disabled]:opacity-50",r.title&&"cursor-help",s),...r,children:[a,e&&t.jsx("span",{className:"text-sys-red ml-0.5","aria-hidden":"true",children:"*"})]})}function o({className:e,children:s,...a}){return t.jsx(c,{className:i("text-sm text-fg-muted","data-[disabled]:opacity-50",e),...a,children:s})}export{o as D,x as F,m as L};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user