PageSourceSearch

https://miaenergia.repower.com/chunk-52SMSOHX.js

js repower.com collected 2026-09-24 17:13:12 UTC 1,496 bytes, 1 lines download raw bytes

1import{t as S,u as f}from"./chunk-JI5SUK7K.js";import{Ah as h,Bg as g,Lf as v,Ma as c,Na as d,Oa as p,T as i,Vb as o,Ya as u,Yb as s,da as a,wa as m,yg as r}from"./chunk-SCIFG7YC.js";var F=(()=>{class n{constructor(){this.tenantNameService=i(g),this.tenantSelectService=i(S),this.environment=i("environmentEnergyboard"),this.id=s(Math.random().toString()),this.tenants=s(),this.selectedTenant=a(this.tenantNameService.tenant()),this.selectOptions=s(f.defaultOptions),this.internalTenantOnly=o(()=>!this.selectOptions().name),this.selectorModel=o(()=>({items:this.mkOptions(),groups:[],selectedItem:mkSome(this.mkOption(this.selectedTenant())),id:this.id()})),this.mkOption=e=>({id:e.toString(),label:e.toString(),value:e,group:mkNone(),icons:[]}),this.mkOptions=o(()=>this.tenants()?.filter(e=>h.isLocalDev(this.environment)?!0:!r.isDevOnly(e)).map(this.mkOption)??[])}setTenant(e){let t=r.tenantFromString(e.value);t&&(this.internalTenantOnly()&&this.selectedTenant.set(t),this.tenantSelectService.setTenant(this.selectOptions(),t))}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=m({type:n,selectors:[["enb-tenant-selector"]],inputs:{id:[1,"id"],tenants:[1,"tenants"],selectOptions:[1,"selectOptions"]},decls:1,vars:1,consts:[[3,"itemSelected","model"]],template:function(t,l){t&1&&(d(0,"evu-single-select",0),u("itemSelected",function(O){return l.setTenant(O)}),p()),t&2&&c("model",l.selectorModel())},dependencies:[v],encapsulation:2})}}return n})();export{F as a};

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.