1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8896],{18896:(e,r,t)=>{t.r(r),t.d(r,{default:()=>i});var n=t(23798),l=t(50797),a=t(45515),u=t(84802),o=t(82413);function i(e){let{service:r}=e,{t}=(0,u.Bd)(),{widget:i}=r,{data:s,error:c}=(0,o.A)(i);if(c)return(0,n.jsx)(a.A,{service:r,error:c});if(!s)return(0,n.jsxs)(a.A,{service:r,children:[(0,n.jsx)(l.A,{label:"opendtu.yieldDay"}),(0,n.jsx)(l.A,{label:"opendtu.relativePower"}),(0,n.jsx)(l.A,{label:"opendtu.absolutePower"}),(0,n.jsx)(l.A,{label:"opendtu.limit"})]});let d=s.total.YieldDay.v,v=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:r,children:[(0,n.jsx)(l.A,{label:"opendtu.yieldDay",value:"".concat(t("common.number",{value:Math.round(d),style:"unit"})).concat(v)}),(0,n.jsx)(l.A,{label:"opendtu.relativePower",value:t("common.number",{value:Math.round(p/b*100),style:"unit",unit:"percent"})}),(0,n.jsx)(l.A,{label:"opendtu.absolutePower",value:"".concat(t("common.number",{value:Math.round(p),style:"unit"})).concat(m)}),(0,n.jsx)(l.A,{label:"opendtu.limit",value:"".concat(t("common.number",{value:Math.round(b),style:"unit"})).concat("W")})]})}},82413:(e,r,t)=>{t.d(r,{A:()=>a});var n=t(59650),l=t(84826);function a(e){for(var r,t,a=arguments.length,u=Array(a>1?a-1:0),o=1;o<a;o++)u[o-1]=arguments[o];let i={};u&&(null==(r=u[1])?void 0:r.refreshInterval)&&(i.refreshInterval=u[1].refreshInterval);let s=(0,l.$C)(e,...u);""===u[0]&&(s=null);let{data:c,error:d,mutate:v}=(0,n.Ay)(s,i);return{data:c,error:null!=(t=null==c?void 0:c.error)?t:d,mutate:v}}},84826:(e,r,t)=>{function n(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 l(e,r,t){let l=n(e,r);return t&&l.append("query",JSON.stringify(t)),"/api/services/proxy?".concat(l.toString())}t.d(r,{$C:()=>l,_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.