1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3798],{25935:(e,l,r)=>{r.d(l,{A:()=>o});var n=r(96638),t=r(97052);function o(e){for(var l,r,o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];let u={};s&&(null===(l=s[1])||void 0===l?void 0:l.refreshInterval)&&(u.refreshInterval=s[1].refreshInterval);let i=(0,t.$C)(e,...s);""===s[0]&&(i=null);let{data:c,error:m,mutate:v}=(0,n.Ay)(i,u);return{data:c,error:null!==(r=null==c?void 0:c.error)&&void 0!==r?r:m,mutate:v}}},73798:(e,l,r)=>{r.r(l),r.d(l,{default:()=>u});var n=r(23798),t=r(47435),o=r(97981),s=r(70989),a=r(25935);function u(e){let{service:l}=e,{t:r}=(0,s.Bd)(),{widget:u}=l,{data:i,error:c}=(0,a.A)(u);if(c)return(0,n.jsx)(o.A,{service:l,error:c});if(!i)return(0,n.jsxs)(o.A,{service:l,children:[(0,n.jsx)(t.A,{label:"esphome.online"}),(0,n.jsx)(t.A,{label:"esphome.offline"}),(0,n.jsx)(t.A,{label:"esphome.offline_alt"}),(0,n.jsx)(t.A,{label:"esphome.unknown"}),(0,n.jsx)(t.A,{label:"esphome.total"})]});let m=Object.keys(i).length,v=Object.entries(i).filter(e=>{let[,l]=e;return!0===l}).length,f=Object.entries(i).filter(e=>{let[,l]=e;return!0!==l}).length,h=Object.entries(i).filter(e=>{let[,l]=e;return!1===l}).length,b=Object.entries(i).filter(e=>{let[,l]=e;return null===l}).length;return(0,n.jsxs)(o.A,{service:l,children:[(0,n.jsx)(t.A,{label:"esphome.online",value:r("common.number",{value:v})}),(0,n.jsx)(t.A,{label:"esphome.offline",value:r("common.number",{value:h})}),(0,n.jsx)(t.A,{label:"esphome.offline_alt",value:r("common.number",{value:f})}),(0,n.jsx)(t.A,{label:"esphome.unknown",value:r("common.number",{value:b})}),(0,n.jsx)(t.A,{label:"esphome.total",value:r("common.number",{value:m})})]})}},97052:(e,l,r)=>{function n(e,l){let r=new URLSearchParams({group:e.service_group,service:e.service_name,index:e.index});return l&&r.append("endpoint",l),r}function t(e,l,r){let t=n(e,l);return r&&t.append("query",JSON.stringify(r)),"/api/services/proxy?".concat(t.toString())}r.d(l,{$C:()=>t,_V:()=>n})}}]);
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.