1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2018],{3333:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(33308),s=t(94402);function a(e,r,t,l={}){let i={...l};t?.refreshInterval&&(i.refreshInterval=t.refreshInterval);let c=(0,s.$C)(e,r,t);""===r&&(c=null);let{data:d,error:u,mutate:h}=(0,n.u)(c,i);return{data:d,error:d?.error??u,mutate:h}}},82018:(e,r,t)=>{t.r(r),t.d(r,{default:()=>d});var n=t(15383),s=t(31912),a=t(87717),l=t(89651),i=t(3333);function c({title:e,clients:r,bitrate:t}){return(0,n.jsxs)("div",{className:"text-theme-700 dark:text-theme-200 relative h-5 rounded-md bg-theme-200/50 dark:bg-theme-900/20 m-1 px-1 flex",children:[(0,n.jsx)("div",{className:"text-xs z-10 self-center ml-2 relative h-4 grow mr-2",children:(0,n.jsxs)("div",{className:"absolute w-full whitespace-nowrap text-ellipsis overflow-hidden text-left",children:[e," - Clients: ",r]})}),(0,n.jsx)("div",{className:"self-center text-xs flex justify-end mr-1.5 pl-1 z-10 text-ellipsis overflow-hidden whitespace-nowrap",children:t})]})}function d({service:e}){let{t:r}=(0,s.Bd)(),{widget:t}=e,{data:u,error:h}=(0,i.A)(t,"channels"),{data:m,error:o}=(0,i.A)(t,"streams");return h||o?(0,n.jsx)(l.A,{service:e,error:h??o}):u&&m?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.A,{service:e,children:[(0,n.jsx)(a.A,{label:"dispatcharr.channels",value:r("common.number",{value:u?.length??0})}),(0,n.jsx)(a.A,{label:"dispatcharr.streams",value:r("common.number",{value:m?.count??0})})]}),t?.enableActiveStreams&&m?.channels&&m.channels.map(e=>(0,n.jsx)(c,{title:e.channel_name??e.stream_name,clients:e.clients.length,bitrate:e.avg_bitrate},e.channel_name??e.stream_name))]}):(0,n.jsxs)(l.A,{service:e,children:[(0,n.jsx)(a.A,{label:"dispatcharr.channels"}),(0,n.jsx)(a.A,{label:"dispatcharr.streams"})]})}},94402:(e,r,t)=>{function n(e,r=null){return null==e||""===e?r:"number"==typeof e?Number.isInteger(e)&&e>=0?e:r:"string"==typeof e&&/^\d+$/.test(e)?Number(e):r}function s(e,r){let t=new URLSearchParams({group:e.service_group,service:e.service_name,index:e.index});return r&&t.append("endpoint",r),t}function a(e,r,t){let n=s(e,r);return t&&n.append("query",JSON.stringify(t)),`/api/services/proxy?${n.toString()}`}t.d(r,{$C:()=>a,Sk:()=>n,_V:()=>s})}}]);
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.