1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5320],{3333:(e,r,t)=>{t.d(r,{A:()=>u});var n=t(33308),l=t(94402);function u(e,r,t,a={}){let o={...a};t?.refreshInterval&&(o.refreshInterval=t.refreshInterval);let i=(0,l.$C)(e,r,t);""===r&&(i=null);let{data:s,error:d,mutate:v}=(0,n.u)(i,o);return{data:s,error:s?.error??d,mutate:v}}},45320:(e,r,t)=>{t.r(r),t.d(r,{default:()=>i});var n=t(15383),l=t(31912),u=t(87717),a=t(89651),o=t(3333);function i({service:e}){let{t:r}=(0,l.Bd)(),{widget:t}=e,{data:s,error:d}=(0,o.A)(t);if(d)return(0,n.jsx)(a.A,{service:e,error:d});if(!s)return(0,n.jsxs)(a.A,{service:e,children:[(0,n.jsx)(u.A,{label:"opendtu.yieldDay"}),(0,n.jsx)(u.A,{label:"opendtu.relativePower"}),(0,n.jsx)(u.A,{label:"opendtu.absolutePower"}),(0,n.jsx)(u.A,{label:"opendtu.limit"})]});let v=s.total.YieldDay.v,c=s.total.YieldDay.u,p=s.total.Power.v,m=s.total.Power.u,b=s.inverters.map(e=>e.limit_absolute).reduce((e,r)=>e+r);return(0,n.jsxs)(a.A,{service:e,children:[(0,n.jsx)(u.A,{label:"opendtu.yieldDay",value:`${r("common.number",{value:Math.round(v),style:"unit"})}${c}`}),(0,n.jsx)(u.A,{label:"opendtu.relativePower",value:r("common.number",{value:Math.round(p/b*100),style:"unit",unit:"percent"})}),(0,n.jsx)(u.A,{label:"opendtu.absolutePower",value:`${r("common.number",{value:Math.round(p),style:"unit"})}${m}`}),(0,n.jsx)(u.A,{label:"opendtu.limit",value:`${r("common.number",{value:Math.round(b),style:"unit"})}W`})]})}},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 l(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 u(e,r,t){let n=l(e,r);return t&&n.append("query",JSON.stringify(t)),`/api/services/proxy?${n.toString()}`}t.d(r,{$C:()=>u,Sk:()=>n,_V:()=>l})}}]);
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.