1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4650],{34650:(e,r,l)=>{l.r(r),l.d(r,{default:()=>u});var n=l(23798),t=l(50797),a=l(45515),s=l(82413);function u(e){let{service:r}=e,{widget:l}=r,{data:u,error:i}=(0,s.A)(l,"nodes");if(i)return(0,n.jsx)(a.A,{service:r,error:i});if(!u)return(0,n.jsxs)(a.A,{service:r,children:[(0,n.jsx)(t.A,{label:"pterodactyl.nodes"}),(0,n.jsx)(t.A,{label:"pterodactyl.servers"})]});let d=u.data.reduce((e,r)=>{var l,n,t,a,s;return(null!=(s=null==(a=r.attributes)||null==(t=a.relationships)||null==(n=t.servers)||null==(l=n.data)?void 0:l.length)?s:0)+e},0);return(0,n.jsxs)(a.A,{service:r,children:[(0,n.jsx)(t.A,{label:"pterodactyl.nodes",value:u.data.length}),(0,n.jsx)(t.A,{label:"pterodactyl.servers",value:d})]})}},82413:(e,r,l)=>{l.d(r,{A:()=>a});var n=l(59650),t=l(84826);function a(e){for(var r,l,a=arguments.length,s=Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];let i={};s&&(null==(r=s[1])?void 0:r.refreshInterval)&&(i.refreshInterval=s[1].refreshInterval);let d=(0,t.$C)(e,...s);""===s[0]&&(d=null);let{data:o,error:c,mutate:v}=(0,n.Ay)(d,i);return{data:o,error:null!=(l=null==o?void 0:o.error)?l:c,mutate:v}}},84826:(e,r,l)=>{function n(e,r){let l=new URLSearchParams({group:e.service_group,service:e.service_name,index:e.index});return r&&l.append("endpoint",r),l}function t(e,r,l){let t=n(e,r);return l&&t.append("query",JSON.stringify(l)),"/api/services/proxy?".concat(t.toString())}l.d(r,{$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.