1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7161],{3333:(e,s,a)=>{a.d(s,{A:()=>r});var l=a(33308),n=a(94402);function r(e,s,a,t={}){let i={...t};a?.refreshInterval&&(i.refreshInterval=a.refreshInterval);let u=(0,n.$C)(e,s,a);""===s&&(u=null);let{data:d,error:f,mutate:p}=(0,l.u)(u,i);return{data:d,error:d?.error??f,mutate:p}}},94402:(e,s,a)=>{function l(e,s=null){return null==e||""===e?s:"number"==typeof e?Number.isInteger(e)&&e>=0?e:s:"string"==typeof e&&/^\d+$/.test(e)?Number(e):s}function n(e,s){let a=new URLSearchParams({group:e.service_group,service:e.service_name,index:e.index});return s&&a.append("endpoint",s),a}function r(e,s,a){let l=n(e,s);return a&&l.append("query",JSON.stringify(a)),`/api/services/proxy?${l.toString()}`}a.d(s,{$C:()=>r,Sk:()=>l,_V:()=>n})},97161:(e,s,a)=>{a.r(s),a.d(s,{default:()=>u});var l=a(15383),n=a(31912),r=a(87717),t=a(89651),i=a(3333);function u({service:e}){let{t:s}=(0,n.Bd)(),{widget:a}=e,d=a.version??1,{data:f,error:p}=(0,i.A)(a,1===d?"system":"systemv2"),{data:o,error:c}=(0,i.A)(a,1===d?"interface":"interfacev2"),v=a.fields?.filter(e=>"wanIP"!==e).length<=4&&a.fields?.includes("wanIP"),m=a.fields?.filter(e=>"disk"!==e).length<=4&&a.fields?.includes("disk");if(p||c)return(0,l.jsx)(t.A,{service:e,error:p??c});if(!f||!o)return(0,l.jsxs)(t.A,{service:e,children:[(0,l.jsx)(r.A,{label:"pfsense.load"}),(0,l.jsx)(r.A,{label:"pfsense.memory"}),(0,l.jsx)(r.A,{label:"pfsense.temp"}),(0,l.jsx)(r.A,{label:"pfsense.wanStatus"}),v&&(0,l.jsx)(r.A,{label:"pfsense.wanIP"}),m&&(0,l.jsx)(r.A,{label:"pfsense.disk"})]});let h=o.data.filter(e=>e.hwif===a.wan)[0],x=f?.data.mem_usage,b=f.data.disk_usage;return 1===d&&(x*=100,b*=100),(0,l.jsxs)(t.A,{service:e,children:[(0,l.jsx)(r.A,{label:"pfsense.load",value:1===d?f.data.load_avg[0]:f.data.cpu_load_avg[0]}),(0,l.jsx)(r.A,{label:"pfsense.memory",value:s("common.percent",{value:x.toFixed(2)}),highlightValue:x}),(0,l.jsx)(r.A,{label:"pfsense.temp",value:s("common.number",{value:f.data.temp_c,style:"unit",unit:"celsius"}),highlightValue:f.data.temp_c}),(0,l.jsx)(r.A,{label:"pfsense.wanStatus",value:s("up"===h.status?"pfsense.up":"pfsense.down")}),v&&(0,l.jsx)(r.A,{label:"pfsense.wanIP",value:h.ipaddr}),m&&(0,l.jsx)(r.A,{label:"pfsense.disk",value:s("common.percent",{value:b.toFixed(2)}),highlightValue:b})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.