From 16067c18e4ee3652d3c4ae6c10e6c50a0587a530 Mon Sep 17 00:00:00 2001 From: LKuemmel Date: Tue, 9 Apr 2024 13:48:10 +0200 Subject: [PATCH] build UI --- .../assets/{ChargeLog-0a448a61.js => ChargeLog-1dfc425d.js} | 2 +- ...allation-32d350a6.js => ChargePointInstallation-55566d4b.js} | 2 +- web/settings/assets/{Chart-a72a188e.js => Chart-d72eedd8.js} | 2 +- .../assets/{CloudConfig-a56b87bb.js => CloudConfig-3268436a.js} | 2 +- .../{DataManagement-61982555.js => DataManagement-8e2c3130.js} | 2 +- .../assets/{DebugConfig-877c59ca.js => DebugConfig-f54b7485.js} | 2 +- ...ChargeConfig-e9c2cec0.js => GeneralChargeConfig-14d5c022.js} | 2 +- .../{GeneralConfig-125226d5.js => GeneralConfig-0a74292a.js} | 2 +- ...nstallation-45a8a8a9.js => HardwareInstallation-2c3ff39f.js} | 2 +- ...ChargeConfig-9d5d9336.js => InstantChargeConfig-d8d2493f.js} | 2 +- .../{LegalSettings-c7b706ad.js => LegalSettings-f4f5e3b6.js} | 2 +- ...ementConfig-02298433.js => LoadManagementConfig-b98691c6.js} | 2 +- ...qttBridgeConfig-11cde72e.js => MqttBridgeConfig-b088a569.js} | 2 +- ...nalComponents-7d9ac58f.js => OptionalComponents-4217fc43.js} | 2 +- .../{PVChargeConfig-846573d7.js => PVChargeConfig-c04b99ec.js} | 2 +- ...argeConfig-ef3aaafb.js => ScheduledChargeConfig-8d88bd9d.js} | 2 +- web/settings/assets/Status-0312a8dd.js | 1 - web/settings/assets/Status-252073e6.js | 1 + .../assets/{Support-c863d745.js => Support-9c1ef3b0.js} | 2 +- web/settings/assets/{System-d1bd783a.js => System-e5a75c6d.js} | 2 +- .../{TestingStore-73de07d0.js => TestingStore-f5d92bd1.js} | 2 +- ...imeChargeConfig-5b14d231.js => TimeChargeConfig-06feae4e.js} | 2 +- .../{VehicleConfig-dcfebc91.js => VehicleConfig-4efd6c86.js} | 2 +- web/settings/assets/{index-b8f06cb8.js => index-720fb9ac.js} | 2 +- .../assets/{vehicle-2c609f87.js => vehicle-7140c23d.js} | 2 +- web/settings/index.html | 2 +- 26 files changed, 25 insertions(+), 25 deletions(-) rename web/settings/assets/{ChargeLog-0a448a61.js => ChargeLog-1dfc425d.js} (99%) rename web/settings/assets/{ChargePointInstallation-32d350a6.js => ChargePointInstallation-55566d4b.js} (99%) rename web/settings/assets/{Chart-a72a188e.js => Chart-d72eedd8.js} (99%) rename web/settings/assets/{CloudConfig-a56b87bb.js => CloudConfig-3268436a.js} (99%) rename web/settings/assets/{DataManagement-61982555.js => DataManagement-8e2c3130.js} (99%) rename web/settings/assets/{DebugConfig-877c59ca.js => DebugConfig-f54b7485.js} (98%) rename web/settings/assets/{GeneralChargeConfig-e9c2cec0.js => GeneralChargeConfig-14d5c022.js} (99%) rename web/settings/assets/{GeneralConfig-125226d5.js => GeneralConfig-0a74292a.js} (99%) rename web/settings/assets/{HardwareInstallation-45a8a8a9.js => HardwareInstallation-2c3ff39f.js} (99%) rename web/settings/assets/{InstantChargeConfig-9d5d9336.js => InstantChargeConfig-d8d2493f.js} (96%) rename web/settings/assets/{LegalSettings-c7b706ad.js => LegalSettings-f4f5e3b6.js} (97%) rename web/settings/assets/{LoadManagementConfig-02298433.js => LoadManagementConfig-b98691c6.js} (99%) rename web/settings/assets/{MqttBridgeConfig-11cde72e.js => MqttBridgeConfig-b088a569.js} (99%) rename web/settings/assets/{OptionalComponents-7d9ac58f.js => OptionalComponents-4217fc43.js} (99%) rename web/settings/assets/{PVChargeConfig-846573d7.js => PVChargeConfig-c04b99ec.js} (99%) rename web/settings/assets/{ScheduledChargeConfig-ef3aaafb.js => ScheduledChargeConfig-8d88bd9d.js} (97%) delete mode 100644 web/settings/assets/Status-0312a8dd.js create mode 100644 web/settings/assets/Status-252073e6.js rename web/settings/assets/{Support-c863d745.js => Support-9c1ef3b0.js} (98%) rename web/settings/assets/{System-d1bd783a.js => System-e5a75c6d.js} (98%) rename web/settings/assets/{TestingStore-73de07d0.js => TestingStore-f5d92bd1.js} (99%) rename web/settings/assets/{TimeChargeConfig-5b14d231.js => TimeChargeConfig-06feae4e.js} (96%) rename web/settings/assets/{VehicleConfig-dcfebc91.js => VehicleConfig-4efd6c86.js} (99%) rename web/settings/assets/{index-b8f06cb8.js => index-720fb9ac.js} (96%) rename web/settings/assets/{vehicle-2c609f87.js => vehicle-7140c23d.js} (97%) diff --git a/web/settings/assets/ChargeLog-0a448a61.js b/web/settings/assets/ChargeLog-1dfc425d.js similarity index 99% rename from web/settings/assets/ChargeLog-0a448a61.js rename to web/settings/assets/ChargeLog-1dfc425d.js index 755ca18865..23e3ccc9e8 100644 --- a/web/settings/assets/ChargeLog-0a448a61.js +++ b/web/settings/assets/ChargeLog-1dfc425d.js @@ -1,2 +1,2 @@ -import{l as C,T as q,U as R,F as k}from"./vendor-fortawesome-9fdc06a9.js";import{_ as x,a0 as E,q as l,k as h,l as m,u as g,B as o,M as s,z as V,A as y,x as d,y as F,R as B,S as T}from"./vendor-f0f38b48.js";import{C as I}from"./index-b8f06cb8.js";import"./vendor-sortablejs-cbf37f8f.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";C.add(q,R);const S={name:"OpenwbChargeLog",components:{Vue3TableLite:E,FontAwesomeIcon:k},mixins:[I],emits:["sendCommand"],data(){return{dateTimeFormat:new Intl.DateTimeFormat("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentMonth:"",chargeLogRequestData:{month:"",year:"",filter:{chargepoint:{id:[]},vehicle:{id:[],rfid:[],chargemode:[],prio:void 0}}},downloadFile:null,table:{messages:{pagingInfo:"Einträge {0}-{1} von {2}",pageSizeChangeLabel:"Einträge:",gotoPageLabel:" Gehe zu:",noDataAvailable:"Keine Einträge gefunden."},pageOptions:[{value:5,text:"5"},{value:10,text:"10"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"}],columns:[{label:"Beginn",field:"time_begin",sortable:!0},{label:"Ende",field:"time_end",sortable:!0},{label:"Fahrzeug",field:"vehicle_name",sortable:!0},{label:"Dauer",field:"time_time_charged",sortable:!0,display:e=>this.alignEnd(e.time_time_charged)},{label:"Energie",field:"data_imported_since_mode_switch",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_imported_since_mode_switch/1e3,2)+" kWh / "+this.formatNumber(e.data_range_charged,0)+" km")},{label:"Kosten",field:"data_costs",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_costs,2)+" €")},{label:"Lademodus",field:"vehicle_chargemode",sortable:!0,display:e=>'
'+e.vehicle_chargemode+"
"},{label:"Ladepunkt",field:"chargepoint_name",sortable:!0},{label:"Priorität",field:"vehicle_prio",display:e=>this.translateBool(e.vehicle_prio)},{label:"ID-Tag",field:"vehicle_rfid",sortable:!0}],sortable:{order:"timestamp_begin",sort:"asc"}},totals:{columns:[{label:"Dauer",field:"time_charged",sortable:!1,display:e=>this.alignEnd(e.time_charged)},{label:"Energie",field:"imported_since_mode_switch",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.imported_since_mode_switch/1e3,2)+" kWh")},{label:"Reichweite",field:"range_charged",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.range_charged,0)+" km")},{label:"Kosten",field:"costs",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.costs,2)+" €")}]}}},computed:{downloadUrl(){const e=parseInt(location.port)||(location.protocol=="https:"?443:80);return`${location.protocol}//${location.hostname}:${e}/openWB/web/settings/downloadChargeLog.php`+`?year=${this.chargeLogRequestData.year}&month=${this.chargeLogRequestData.month}`},chargeLogDate:{get(){return this.chargeLogRequestData.year+"-"+this.chargeLogRequestData.month},set(e){let t=e.split("-");this.chargeLogRequestData.year=t[0],this.chargeLogRequestData.month=t[1]}},chargeLogTotals(){return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"]?[this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].totals]:[]},chargeLogDataset:{get(){try{return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].entries.map(e=>{var t=Date.parse(e.time.begin),n=Date.parse(e.time.end);return{chargepoint_id:e.chargepoint.id,chargepoint_name:e.chargepoint.name,vehicle_id:e.vehicle.id,vehicle_name:e.vehicle.name,vehicle_chargemode:this.translateChargeMode(e.vehicle.chargemode),vehicle_rfid:e.vehicle.rfid,vehicle_prio:e.vehicle.prio,timestamp_begin:t/1e3,time_begin:this.dateTimeFormat.format(new Date(t)),timestamp_end:n/1e3,time_end:this.dateTimeFormat.format(new Date(n)),time_time_charged:e.time.time_charged,data_power:e.data.power,data_range_charged:e.data.range_charged,data_costs:e.data.costs,data_imported_since_plugged:e.data.imported_since_plugged,data_imported_since_mode_switch:e.data.imported_since_mode_switch}})}catch{return[]}}},chargeLogCsv:{get(){return[["Ladepunkt-ID","Ladepunkt","Fahrzeug-ID","Fahrzeug","Lademodus","Priorität","ID-Tag","Beginn","Ende","Zeitstempel Beginn","Zeitstempel Ende","Dauer","Leistung","Energie","Reichweite","Kosten"],...this.chargeLogDataset.map(t=>[t.chargepoint_id,'"'+t.chargepoint_name+'"',t.vehicle_id,'"'+t.vehicle_name+'"','"'+t.vehicle_chargemode+'"','"'+this.translateBool(t.vehicle_prio,!1)+'"','"'+t.vehicle_rfid+'"','"'+t.time_begin+'"','"'+t.time_end+'"','"'+t.timestamp_begin+'"','"'+t.timestamp_end+'"','"'+t.time_time_charged+'"',this.formatNumber(t.data_power/1e3,3),this.formatNumber(t.data_imported_since_mode_switch/1e3,2),this.formatNumber(t.data_range_charged,0),this.formatNumber(t.data_costs,2)])].map(t=>t.join(";")).join(` +import{l as C,T as q,U as R,F as k}from"./vendor-fortawesome-9fdc06a9.js";import{_ as x,a0 as E,q as l,k as h,l as m,u as g,B as o,M as s,z as V,A as y,x as d,y as F,R as B,S as T}from"./vendor-f0f38b48.js";import{C as I}from"./index-720fb9ac.js";import"./vendor-sortablejs-cbf37f8f.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";C.add(q,R);const S={name:"OpenwbChargeLog",components:{Vue3TableLite:E,FontAwesomeIcon:k},mixins:[I],emits:["sendCommand"],data(){return{dateTimeFormat:new Intl.DateTimeFormat("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentMonth:"",chargeLogRequestData:{month:"",year:"",filter:{chargepoint:{id:[]},vehicle:{id:[],rfid:[],chargemode:[],prio:void 0}}},downloadFile:null,table:{messages:{pagingInfo:"Einträge {0}-{1} von {2}",pageSizeChangeLabel:"Einträge:",gotoPageLabel:" Gehe zu:",noDataAvailable:"Keine Einträge gefunden."},pageOptions:[{value:5,text:"5"},{value:10,text:"10"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"}],columns:[{label:"Beginn",field:"time_begin",sortable:!0},{label:"Ende",field:"time_end",sortable:!0},{label:"Fahrzeug",field:"vehicle_name",sortable:!0},{label:"Dauer",field:"time_time_charged",sortable:!0,display:e=>this.alignEnd(e.time_time_charged)},{label:"Energie",field:"data_imported_since_mode_switch",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_imported_since_mode_switch/1e3,2)+" kWh / "+this.formatNumber(e.data_range_charged,0)+" km")},{label:"Kosten",field:"data_costs",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_costs,2)+" €")},{label:"Lademodus",field:"vehicle_chargemode",sortable:!0,display:e=>'
'+e.vehicle_chargemode+"
"},{label:"Ladepunkt",field:"chargepoint_name",sortable:!0},{label:"Priorität",field:"vehicle_prio",display:e=>this.translateBool(e.vehicle_prio)},{label:"ID-Tag",field:"vehicle_rfid",sortable:!0}],sortable:{order:"timestamp_begin",sort:"asc"}},totals:{columns:[{label:"Dauer",field:"time_charged",sortable:!1,display:e=>this.alignEnd(e.time_charged)},{label:"Energie",field:"imported_since_mode_switch",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.imported_since_mode_switch/1e3,2)+" kWh")},{label:"Reichweite",field:"range_charged",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.range_charged,0)+" km")},{label:"Kosten",field:"costs",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.costs,2)+" €")}]}}},computed:{downloadUrl(){const e=parseInt(location.port)||(location.protocol=="https:"?443:80);return`${location.protocol}//${location.hostname}:${e}/openWB/web/settings/downloadChargeLog.php`+`?year=${this.chargeLogRequestData.year}&month=${this.chargeLogRequestData.month}`},chargeLogDate:{get(){return this.chargeLogRequestData.year+"-"+this.chargeLogRequestData.month},set(e){let t=e.split("-");this.chargeLogRequestData.year=t[0],this.chargeLogRequestData.month=t[1]}},chargeLogTotals(){return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"]?[this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].totals]:[]},chargeLogDataset:{get(){try{return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].entries.map(e=>{var t=Date.parse(e.time.begin),n=Date.parse(e.time.end);return{chargepoint_id:e.chargepoint.id,chargepoint_name:e.chargepoint.name,vehicle_id:e.vehicle.id,vehicle_name:e.vehicle.name,vehicle_chargemode:this.translateChargeMode(e.vehicle.chargemode),vehicle_rfid:e.vehicle.rfid,vehicle_prio:e.vehicle.prio,timestamp_begin:t/1e3,time_begin:this.dateTimeFormat.format(new Date(t)),timestamp_end:n/1e3,time_end:this.dateTimeFormat.format(new Date(n)),time_time_charged:e.time.time_charged,data_power:e.data.power,data_range_charged:e.data.range_charged,data_costs:e.data.costs,data_imported_since_plugged:e.data.imported_since_plugged,data_imported_since_mode_switch:e.data.imported_since_mode_switch}})}catch{return[]}}},chargeLogCsv:{get(){return[["Ladepunkt-ID","Ladepunkt","Fahrzeug-ID","Fahrzeug","Lademodus","Priorität","ID-Tag","Beginn","Ende","Zeitstempel Beginn","Zeitstempel Ende","Dauer","Leistung","Energie","Reichweite","Kosten"],...this.chargeLogDataset.map(t=>[t.chargepoint_id,'"'+t.chargepoint_name+'"',t.vehicle_id,'"'+t.vehicle_name+'"','"'+t.vehicle_chargemode+'"','"'+this.translateBool(t.vehicle_prio,!1)+'"','"'+t.vehicle_rfid+'"','"'+t.time_begin+'"','"'+t.time_end+'"','"'+t.timestamp_begin+'"','"'+t.timestamp_end+'"','"'+t.time_time_charged+'"',this.formatNumber(t.data_power/1e3,3),this.formatNumber(t.data_imported_since_mode_switch/1e3,2),this.formatNumber(t.data_range_charged,0),this.formatNumber(t.data_costs,2)])].map(t=>t.join(";")).join(` `)}},chargeLogRead:{get(){return this.chargeLogDataset!=null}},chargeLogHasEntries:{get(){return this.chargeLogDataset==null?!1:this.chargeLogDataset.length>0}},totalRecordCount(){return this.chargeLogDataset.length},chargeModeList(){let e=this.chargeModes.map(t=>({value:t,text:this.translateChargeMode(t)}));return e.unshift({value:void 0,text:"Alle"}),e},chargePointList(){let e=this.getWildcardTopics("openWB/chargepoint/+/config");var t=[{value:void 0,text:"Alle"}];for(const[,n]of Object.entries(e))t.push({value:n.id,text:n.name});return t},vehicleList(){let e=this.getWildcardTopics("openWB/vehicle/+/name");var t=[{value:void 0,text:"Alle"}];for(const[n,c]of Object.entries(e)){let i=parseInt(n.match(/\/([0-9]+)\/name$/)[1]);t.push({value:i,text:c})}return t}},methods:{cleanRequestData(){"id"in this.chargeLogRequestData.filter.chargepoint&&(this.chargeLogRequestData.filter.chargepoint.id=this.chargeLogRequestData.filter.chargepoint.id.filter(e=>e!=null)),"chargemode"in this.chargeLogRequestData.filter.vehicle&&(this.chargeLogRequestData.filter.vehicle.chargemode=this.chargeLogRequestData.filter.vehicle.chargemode.filter(e=>e!=null)),"id"in this.chargeLogRequestData.filter.vehicle&&(this.chargeLogRequestData.filter.vehicle.id=this.chargeLogRequestData.filter.vehicle.id.filter(e=>e!=null))},requestChargeLog(){if(document.forms.chargeLogForm.reportValidity())this.cleanRequestData(),this.$emit("sendCommand",{command:"getChargeLog",data:this.chargeLogRequestData});else{console.warn("form invalid");return}},makeTextFile(e){var t=new Blob([e],{type:"text/csv"});return this.downloadFile!==null&&window.URL.revokeObjectURL(this.downloadFile),this.downloadFile=window.URL.createObjectURL(t),this.downloadFile},downloadChargeLog(){this.$refs.downloadChargeLogLink.setAttribute("download","Ladeprotokoll-"+this.chargeLogDate+".csv"),this.$refs.downloadChargeLogLink.href=this.makeTextFile(this.chargeLogCsv),this.$refs.downloadChargeLogLink.dispatchEvent(new MouseEvent("click"))},alignEnd(e){return'
'+e+"
"},alignCenter(e){return'
'+e+"
"},translateBool(e,t=!0){let n="Nein",c="bg-danger";return e&&(n="Ja",c="bg-success"),t?'
'+n+"
":n},getChargeModeClass(e){switch(e){case"Sofort":return"bg-danger";case"PV":return"bg-success";case"Zielladen":return"bg-primary";case"Zeitladen":return"bg-warning";case"Standby":return"bg-secondary";case"Stop":return"bg-dark";default:return console.warn("unknown charge mode:",e),"bg-light"}},translateHeading(e){switch(e){case"time_charged":return"Dauer";case"range_charged":return"Reichweite";case"imported_since_mode_switch":return"Energie im Lademodus";case"imported_since_plugged":return"Energie seit Anstecken";case"power":return"Leistung";case"costs":return"Kosten";default:return console.warn("unknown heading:",e),e}}},mounted(){const e=new Date;this.currentMonth=this.chargeLogDate=e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0"),this.requestChargeLog()}},U=e=>(B("data-v-8607e7e7"),e=e(),T(),e),N={class:"chargeLog"},M={name:"chargeLogForm"},W=["href"],A={key:1},O={key:0},P={class:"row justify-content-center"},j={class:"hide",ref:"downloadChargeLogLink"},z=U(()=>g("div",{class:"row"},[g("div",{class:"col"},[g("h2",null,"Summe")])],-1));function K(e,t,n,c,i,a){const L=l("openwb-base-text-input"),p=l("font-awesome-icon"),v=l("openwb-base-button-group-input"),u=l("openwb-base-select-input"),w=l("openwb-base-array-input"),_=l("openwb-base-card"),b=l("openwb-base-alert"),f=l("vue3-table-lite"),D=l("openwb-base-click-button");return h(),m("div",N,[g("form",M,[o(_,{title:"Filter"},{default:s(()=>[o(L,{title:"Zeitraum",subtype:"month",min:"2018-01",showQuickButtons:!0,max:i.currentMonth,modelValue:a.chargeLogDate,"onUpdate:modelValue":[t[0]||(t[0]=r=>a.chargeLogDate=r),t[1]||(t[1]=r=>a.requestChargeLog())]},null,8,["max","modelValue"]),o(_,{title:"Erweiterte Optionen",collapsible:!0,collapsed:!0},{header:s(()=>[o(p,{"fixed-width":"",icon:["fas","filter"]}),d(" Erweiterte Optionen ")]),default:s(()=>[o(v,{title:"Priorität",buttons:[{buttonValue:void 0,text:"Alle"},{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:i.chargeLogRequestData.filter.vehicle.prio,"onUpdate:modelValue":[t[2]||(t[2]=r=>i.chargeLogRequestData.filter.vehicle.prio=r),t[3]||(t[3]=r=>a.requestChargeLog())]},null,8,["modelValue"]),o(u,{title:"Lademodus",multiple:"",options:a.chargeModeList,modelValue:i.chargeLogRequestData.filter.vehicle.chargemode,"onUpdate:modelValue":[t[4]||(t[4]=r=>i.chargeLogRequestData.filter.vehicle.chargemode=r),t[5]||(t[5]=r=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"]),o(u,{title:"Ladepunkt",multiple:"",options:a.chargePointList,modelValue:i.chargeLogRequestData.filter.chargepoint.id,"onUpdate:modelValue":[t[6]||(t[6]=r=>i.chargeLogRequestData.filter.chargepoint.id=r),t[7]||(t[7]=r=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"]),o(u,{title:"Fahrzeug",multiple:"",options:a.vehicleList,modelValue:i.chargeLogRequestData.filter.vehicle.id,"onUpdate:modelValue":[t[8]||(t[8]=r=>i.chargeLogRequestData.filter.vehicle.id=r),t[9]||(t[9]=r=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"]),o(w,{title:"ID-Tags",modelValue:i.chargeLogRequestData.filter.vehicle.tag,"onUpdate:modelValue":[t[10]||(t[10]=r=>i.chargeLogRequestData.filter.vehicle.tag=r),t[11]||(t[11]=r=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Tags als Filter verwendet werden. ")]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(b,{subtype:"info"},{default:s(()=>[d(" Das komplette Ladeprotokoll kann automatisiert über folgende URL abgerufen werden: "),g("a",{href:a.downloadUrl},F(a.downloadUrl),9,W)]),_:1}),a.chargeLogRead?(h(),m("div",A,[o(f,{class:"charge-log-table","is-static-mode":!0,columns:i.table.columns,rows:a.chargeLogDataset,total:a.totalRecordCount,sortable:i.table.sortable,messages:i.table.messages,"page-options":i.table.pageOptions,limit:25},null,8,["columns","rows","total","sortable","messages","page-options"]),a.totalRecordCount>0?(h(),m("div",O,[g("div",P,[o(D,{class:"col-4 btn-success",onButtonClicked:t[12]||(t[12]=r=>a.downloadChargeLog())},{default:s(()=>[d(" Als CSV exportieren "),o(p,{"fixed-width":"",icon:["fas","download"]})]),_:1}),g("a",j,null,512)]),z,o(f,{class:"charge-log-totals","is-static-mode":!0,"is-hide-paging":!0,columns:i.totals.columns,rows:a.chargeLogTotals,total:1},null,8,["columns","rows"])])):y("",!0)])):(h(),V(b,{key:0,subtype:"info"},{default:s(()=>[d(" Es wurden noch keine Daten abgerufen. ")]),_:1}))])])}const $=x(S,[["render",K],["__scopeId","data-v-8607e7e7"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargeLog.vue"]]);export{$ as default}; diff --git a/web/settings/assets/ChargePointInstallation-32d350a6.js b/web/settings/assets/ChargePointInstallation-55566d4b.js similarity index 99% rename from web/settings/assets/ChargePointInstallation-32d350a6.js rename to web/settings/assets/ChargePointInstallation-55566d4b.js index a9d5e7f043..b5a523f490 100644 --- a/web/settings/assets/ChargePointInstallation-32d350a6.js +++ b/web/settings/assets/ChargePointInstallation-55566d4b.js @@ -1 +1 @@ -import{l as H,d as G,_ as Q,A as X,$ as Y,a0 as K,K as ee,a1 as te,F as ne,I as ae}from"./vendor-fortawesome-9fdc06a9.js";import{_ as T,C as oe}from"./index-b8f06cb8.js";import{_ as E}from"./dynamic-import-helper-be004503.js";import{_ as x,q as g,k as l,l as c,z as v,M as o,x as i,y as k,B as n,u as d,a1 as D,a2 as F,I as S,J as A,A as w,p as M,a3 as O,O as ie,R as le,S as se}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const re={name:"ChargePointConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String},methods:{updateConfiguration(e,a=void 0){this.$emit("update:configuration",{value:e,object:a})}}},ue={class:"device-fallback"},de={key:1};function pe(e,a,u,P,m,p){const C=g("openwb-base-alert"),f=g("openwb-base-textarea");return l(),c("div",ue,[Object.keys(u.configuration).length==0?(l(),v(C,{key:0,subtype:"info"},{default:o(()=>[i(' Der Ladepunkt-Typ "'+k(u.chargePointType)+'" bietet keine Einstellungen. ',1)]),_:1})):(l(),c("div",de,[n(C,{subtype:"warning"},{default:o(()=>[i(' Es wurde keine Konfigurationsseite für den Ladepunkt-Typ "'+k(u.chargePointType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(f,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":a[0]||(a[0]=L=>p.updateConfiguration(L,"configuration"))},{help:o(()=>[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(C,{subtype:"info"},{default:o(()=>[d("pre",null,k(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})]))])}const me=x(re,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointConfigFallback.vue"]]),ce={name:"ChargePointCommandsFallback",props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String}},ge={class:"charge-point-commands-fallback"};function he(e,a,u,P,m,p){const C=g("openwb-base-alert");return l(),c("div",ge,[n(C,{subtype:"secondary"},{default:o(()=>[i(' Der Ladepunkt-Typ "'+k(u.chargePointType)+'" bietet keine Befehle an. ',1)]),_:1})])}const fe=x(ce,[["render",he],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointCommandsFallback.vue"]]),be={name:"OpenwbChargePointProxy",emits:["update:configuration"],props:{chargePointId:{required:!0},chargePointType:{type:String,required:!0},configuration:{type:Object,required:!0},moduleName:{type:String,required:!1,default:void 0}},computed:{myChargePointSettingsComponent(){return console.debug(`loading charge point settings: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./external_openwb/chargePoint.vue":()=>T(()=>import("./chargePoint-7f675b57.js"),["assets/chargePoint-7f675b57.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./internal_openwb/chargePoint.vue":()=>T(()=>import("./chargePoint-aec7a368.js"),["assets/chargePoint-aec7a368.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/chargePoint.vue":()=>T(()=>import("./chargePoint-3b7886f2.js"),["assets/chargePoint-3b7886f2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_pro/chargePoint.vue":()=>T(()=>import("./chargePoint-1fa33c24.js"),["assets/chargePoint-1fa33c24.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_series2_satellit/chargePoint.vue":()=>T(()=>import("./chargePoint-f8eca554.js"),["assets/chargePoint-f8eca554.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smartwb/chargePoint.vue":()=>T(()=>import("./chargePoint-fd2d17a4.js"),["assets/chargePoint-fd2d17a4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.chargePointType}/chargePoint.vue`),errorComponent:me})},myChargePointCommandsComponent(){return console.debug(`loading charge point commands: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./openwb_pro/commands.vue":()=>T(()=>import("./commands-02fea48b.js"),["assets/commands-02fea48b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.chargePointType}/commands.vue`),errorComponent:fe})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}},_e=d("hr",null,null,-1);function we(e,a,u,P,m,p){const C=g("openwb-base-heading");return l(),c(S,null,[n(C,null,{default:o(()=>[i(" Einstellungen für Ladepunkt "+k(u.moduleName),1)]),_:1}),(l(),v(F(p.myChargePointSettingsComponent),{configuration:u.configuration,chargePointId:u.chargePointId,chargePointType:u.chargePointType,"onUpdate:configuration":a[0]||(a[0]=f=>p.updateConfiguration(f))},null,40,["configuration","chargePointId","chargePointType"])),_e,n(C,null,{default:o(()=>[i(" Befehle für Ladepunkt "+k(u.moduleName),1)]),_:1}),(l(),v(F(p.myChargePointCommandsComponent),{configuration:u.configuration,chargePointId:u.chargePointId,chargePointType:u.chargePointType},null,8,["configuration","chargePointId","chargePointType"]))],64)}const ke=x(be,[["render",we],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointProxy.vue"]]);H.add(G,Q,X,Y,K,ee,te);const ve={name:"OpenwbChargePointInstallation",mixins:[oe],emits:["sendCommand"],components:{FontAwesomeIcon:ne,FontAwesomeLayers:ae,OpenwbChargePointProxy:ke},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/rfid/active","openWB/chargepoint/+/config","openWB/chargepoint/template/+","openWB/chargepoint/template/+/autolock/+","openWB/system/configurable/chargepoints","openWB/system/configurable/chargepoints_internal"],chargePointToAdd:void 0,showChargePointModal:!1,modalChargePointIndex:void 0,showChargePointTemplateModal:!1,modalChargePointTemplateIndex:void 0,showChargePointTemplateAutolockPlanModal:!1,modalChargePointTemplateAutolockPlanIndex:void 0}},computed:{installedChargePoints:{get(){let e=this.getWildcardTopics("openWB/chargepoint/+/config"),a={};for(const[u,P]of Object.entries(e))(P.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(a[u]=P);return a}},chargePointTemplates:{get(){return this.getWildcardTopics("openWB/chargepoint/template/+")}},chargePointTemplateList:{get(){let e=[];return Object.keys(this.chargePointTemplates).forEach(a=>{let u=parseInt(a.match(/([0-9]+)/g)[0]),P=this.$store.state.mqtt["openWB/chargepoint/template/"+u].name;e.push({value:u,text:P})}),e}}},methods:{addChargePoint(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepoint",data:{type:this.chargePointToAdd}})},removeChargePointModal(e,a){a.stopPropagation(),this.modalChargePointIndex=parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showChargePointModal=!0},removeChargePoint(e,a){this.showChargePointModal=!1,a=="confirm"&&(console.debug("request removal of charge point '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepoint",data:{id:e}}))},getChargePointList(){return this.$store.state.mqtt["openWB/general/extern"]===!1?this.$store.state.mqtt["openWB/system/configurable/chargepoints"]:this.$store.state.mqtt["openWB/system/configurable/chargepoints_internal"]},getChargePointName(e){return this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"].name:"Ladepunkt "+e},getChargePointTemplateName(e){return this.$store.state.mqtt["openWB/chargepoint/template/"+e]?this.$store.state.mqtt["openWB/chargepoint/template/"+e].name:"Profil "+e},addChargePointTemplate(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepointTemplate",data:{}})},getChargePointTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargePointTemplateModal(e,a){a.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.showChargePointTemplateModal=!0},removeChargePointTemplate(e,a){this.showChargePointTemplateModal=!1,a=="confirm"&&(console.debug("request removal of chargePoint template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepointTemplate",data:{id:e}}))},addChargePointTemplateAutolockPlan(e,a){a.stopPropagation(),console.info("requesting new charge point template autolock plan...");let u=this.getChargePointTemplateIndex(e);this.$emit("sendCommand",{command:"addAutolockPlan",data:{template:u}})},removeChargePointTemplateAutolockPlanModal(e,a,u){u.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.modalChargePointTemplateAutolockPlanIndex=parseInt(a.match(/([^/]+)$/)[0]),this.showChargePointTemplateAutolockPlanModal=!0},removeChargePointTemplateAutolockPlan(e,a,u){this.showChargePointTemplateAutolockPlanModal=!1,u=="confirm"&&(console.debug("request removal of chargePoint template '"+e+"' autolock plan '"+a+"'"),this.$emit("sendCommand",{command:"removeAutolockPlan",data:{template:e,plan:a}}))},getChargePointTemplateAutolockPlanName(e,a){return this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a]?this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a].name:"Autolock Zeitplan "+e+"/"+a},getChargePointTemplateAutolockPlans(e){let a=this.getChargePointTemplateIndex(e);return this.getWildcardTopics("openWB/chargepoint/template/"+a+"/autolock/+")},updateConfiguration(e,a){console.debug("updateConfiguration",e,a),this.updateState(e,a.value,a.object)}}},b=e=>(le("data-v-75fe5743"),e=e(),se(),e),Ce={class:"chargePointInstallation"},ye={name:"chargePointInstallationForm"},Pe={key:0},Ve=b(()=>d("hr",null,null,-1)),Le={key:1},Te=b(()=>d("hr",null,null,-1)),We=b(()=>d("br",null,null,-1)),Be=b(()=>d("br",null,null,-1)),Se=b(()=>d("br",null,null,-1)),Ie=b(()=>d("br",null,null,-1)),Ae={key:0},xe={class:"col-1"},Ue=b(()=>d("br",null,null,-1)),ze=b(()=>d("ul",null,[d("li",null," Interne openWB - wenn diese openWB über einen verbauten Ladepunkt mit Regelcontroller verfügt (z.B. Standard(+), Custom, Duo, Buchse, NICHT Standalone); ansonsten immer anlegen, egal ob diese openWB steuert = primary oder ferngesteuert wird = secondary "),d("li",null," Externe openWB - wenn diese openWB (primary) die Fernsteuerung von externen openWB (secondary) übernimmt "),d("li",null," MQTT-Ladepunkt - nur zur Nutzung des openWB-Simulators zugelassen "),d("li",null," openWB Pro - wenn diese openWB (primary) die Fernsteuerung einer openWB Pro (secondary) übernimmt "),d("li",null," openWB series2 Satellit/Satellit Duo - wenn diese openWB (primary) die Fernsteuerung einer openWB series2 Satellit/Satellit Duo (secondary) übernimmt "),d("li",null," smartWB/EVSE-Wifi - wenn diese openWB (primary) die Fernsteuerung einer smartWB/EVSE-Wifi übernimmt ")],-1)),qe=b(()=>d("hr",{class:"border-secondary"},null,-1)),Ee={key:0},De={key:1},Fe=b(()=>d("hr",null,null,-1)),Me={key:0},Oe=b(()=>d("br",null,null,-1)),Ne=["innerHTML"],Ze=b(()=>d("hr",null,null,-1)),Re=b(()=>d("br",null,null,-1)),je=b(()=>d("br",null,null,-1)),$e=b(()=>d("a",{href:"https://github.com/openWB/core/wiki/Lastmanagement-und-kaskadierte-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"},"Wiki zum Lastmanagement",-1)),Je=b(()=>d("hr",null,null,-1)),He=["onClick"],Ge={key:0},Qe={key:1},Xe={key:2},Ye={key:2};function Ke(e,a,u,P,m,p){const C=g("openwb-base-modal-dialog"),f=g("font-awesome-icon"),L=g("openwb-base-avatar"),V=g("openwb-base-text-input"),U=g("openwb-base-select-input"),N=g("openwb-charge-point-proxy"),W=g("openwb-base-heading"),y=g("openwb-base-button-group-input"),I=g("openwb-base-card"),Z=g("openwb-base-click-button"),R=g("font-awesome-layers"),z=g("openwb-base-alert"),j=g("openwb-base-array-input"),q=g("openwb-base-range-input"),$=g("openwb-base-submit-buttons");return l(),c(S,null,[n(C,{show:m.showChargePointModal,title:"Ladepunkt löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[0]||(a[0]=s=>p.removeChargePoint(m.modalChargePointIndex,s))},{default:o(()=>[i(' Wollen Sie den Ladepunkt "'+k(p.getChargePointName(m.modalChargePointIndex))+'" (ID: '+k(m.modalChargePointIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:m.showChargePointTemplateModal,title:"Ladepunkt-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[1]||(a[1]=s=>p.removeChargePointTemplate(m.modalChargePointTemplateIndex,s))},{default:o(()=>[i(' Wollen Sie das Ladepunkt-Profil "'+k(p.getChargePointTemplateName(m.modalChargePointTemplateIndex))+'" (ID: '+k(m.modalChargePointTemplateIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:m.showChargePointTemplateAutolockPlanModal,title:"Autolock Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[2]||(a[2]=s=>p.removeChargePointTemplateAutolockPlan(m.modalChargePointTemplateIndex,m.modalChargePointTemplateAutolockPlanIndex,s))},{default:o(()=>[i(' Wollen Sie den Autolock Zeitplan "'+k(p.getChargePointTemplateAutolockPlanName(m.modalChargePointTemplateIndex,m.modalChargePointTemplateAutolockPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),d("div",Ce,[d("form",ye,[n(I,{title:"Ladepunkte",subtype:"primary",collapsible:!0,collapsed:!0},{header:o(()=>[n(f,{"fixed-width":"",icon:["fas","charging-station"]}),i(" Ladepunkte ")]),default:o(()=>[(l(!0),c(S,null,A(p.installedChargePoints,(s,r)=>(l(),v(I,{key:r,title:s.name+" (ID: "+s.id+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(t=>[t.collapsed?w("",!0):(l(),v(L,{key:0,class:"bg-danger clickable",onClick:_=>p.removeChargePointModal(r,_)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":s.name,"onUpdate:modelValue":t=>e.updateState(r,t,"name")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":e.$store.state.mqtt[r].type},null,8,["model-value"]),s.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),c("span",Pe,[n(U,{title:"Ladepunkt-Profil",options:p.chargePointTemplateList,"model-value":e.$store.state.mqtt[r].template,"onUpdate:modelValue":t=>e.updateState(r,t,"template")},null,8,["options","model-value","onUpdate:modelValue"])])):w("",!0),Ve,n(N,{chargePointId:s.id,chargePointType:e.$store.state.mqtt[r].type,moduleName:e.$store.state.mqtt[r].name,configuration:s.configuration,"onUpdate:configuration":t=>p.updateConfiguration(r,t)},null,8,["chargePointId","chargePointType","moduleName","configuration","onUpdate:configuration"]),s.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),c("div",Le,[Te,n(W,null,{default:o(()=>[i("Hardware-Optionen")]),_:1}),n(y,{title:"automatische Phasenumschaltung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.auto_phase_switch_hw,"onUpdate:modelValue":t=>e.updateState(r,t,"auto_phase_switch_hw")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Control-Pilot-Unterbrechung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.control_pilot_interruption_hw,"onUpdate:modelValue":t=>e.updateState(r,t,"control_pilot_interruption_hw")},{help:o(()=>[i(' Die Control-Pilot-Leitung ist im Ladekabel integriert und dient der Steuerung der Fahrzeugladung (An/Aus/Stromvorgaben). Bei einigen Fahrzeugen können durch die Regelung erzwungene, längere Ladestopps (z.B. beim PV-Laden) zu unerwünschten "Einschlaf"-Effekten des Fahrzeuges führen. Mit diesem feature, welches hardwareseitig verbaut sein muss, kann ein Abstecken des Ladesteckers simuliert werden, um ein Aufwecken des Fahrzeuges zu ermöglichen. Die Funktion hängt immer auch vom Fahrzeugtyp ab. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(W,null,{default:o(()=>[i(" Elektrischer Anschluss ")]),_:1}),n(y,{title:"Anzahl angeschlossener Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":s.connected_phases,"onUpdate:modelValue":t=>e.updateState(r,t,"connected_phases")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Phase 1 des Ladekabels",buttons:[{buttonValue:0,text:"unbekannt",class:"btn-outline-danger"},{buttonValue:1,text:"EVU L1",class:"btn-outline-success"},{buttonValue:2,text:"EVU L2",class:"btn-outline-success"},{buttonValue:3,text:"EVU L3",class:"btn-outline-success"}],"model-value":s.phase_1,"onUpdate:modelValue":t=>e.updateState(r,t,"phase_1")},{help:o(()=>[i(" Hier ist anzugeben, an welcher Phase des Hausanschlusses (EVU-Punkt) die Phase 1 dieses Ladepunktes angeschlossen ist. Diese Information wird für das Lastmanagement benötigt, um bei einer Schieflast gezielt einzelne Ladepunkte zu drosseln."),We,i(' Bei mehreren Ladepunkten macht es Sinn, die Phasen der LP rotierend anzuschließen, damit mehrere "nicht-dreiphasig" ladende Fahrzeuge mit optimaler Leistung laden können, bevor das Lastmanagement eingreift.'),Be,i(" Es wird vorausgesetzt, dass das Drehfeld innerhalb der Installation gleich bleibt. Wenn z.B. L1 des Ladepunktes auf EVU-L2 liegt, muss L2 des Ladepunktes auf EVU-L3 aufgelegt sein (und L3 des Ladepunktes auf EVU-L1)."),Se,i(" Eine Möglichkeit, die zur Ladepunktphase L1 zugehörige EVU-Phase zu ermitteln, ist eine einphasige Ladung zu starten und die Phasenströme am EVU-Zähler zu beobachten. Mit einem zweiphasig ladenden Fahrzeug kann danach auch der Anschluss von L2 ermittelt und so das Drehfeld kontrolliert werden."),Ie,i(" Im Zweifel bitte das Drehfeld von einer Fachkraft prüfen und korrigieren lassen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])])):w("",!0)]),_:2},1032,["title"]))),128)),Object.keys(p.installedChargePoints).length>0?(l(),c("hr",Ae)):w("",!0),n(U,{class:"mb-2",title:"Verfügbare Ladepunkte",notSelected:"Bitte auswählen",options:p.getChargePointList(),"model-value":m.chargePointToAdd,"onUpdate:modelValue":a[3]||(a[3]=s=>m.chargePointToAdd=s)},{append:o(()=>[d("span",xe,[n(Z,{class:M(m.chargePointToAdd===void 0?"btn-outline-success":"btn-success"),disabled:m.chargePointToAdd===void 0,onButtonClicked:p.addChargePoint},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:o(()=>[i(" Bitte einen Ladepunkt auswählen, der der openWB-Regelung hinzugefügt werden soll."),Ue,ze]),_:1},8,["options","model-value"])]),_:1}),qe,n(I,{title:"Ladepunkt-Profile",collapsible:!0,collapsed:!0},{header:o(()=>[n(R,{"fixed-width":"",class:"fa-lg"},{default:o(()=>[n(f,{"fixed-width":"",icon:["far","file"]}),n(f,{"fixed-width":"",icon:["fas","charging-station"],transform:"shrink-8"})]),_:1}),i(" Ladepunkt-Profile ")]),actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),v(L,{key:0,class:"bg-success clickable",onClick:p.addChargePointTemplate},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):w("",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),c("div",Ee,[n(z,{subtype:"info"},{default:o(()=>[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),c("div",De,[(l(!0),c(S,null,A(p.chargePointTemplates,(s,r)=>(l(),v(I,{key:r,title:s.name+" (ID: "+p.getChargePointTemplateIndex(r)+")",collapsible:!0,collapsed:!0},O({default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":s.name,"onUpdate:modelValue":t=>e.updateState(r,t,"name"),disabled:r.endsWith("/0")},O({_:2},[r.endsWith("/0")?{name:"help",fn:o(()=>[i(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),Fe,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(l(),c("div",Me,[n(W,null,{default:o(()=>[i(" Zugangskontrolle ")]),_:1}),n(y,{title:"Freigabe durch ID-Tags",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.rfid_enabling,"onUpdate:modelValue":t=>e.updateState(r,t,"rfid_enabling")},null,8,["model-value","onUpdate:modelValue"]),n(j,{title:"Zugeordnete ID-Tags",noElementsMessage:"Keine ID-Tags zugeordnet.","model-value":s.valid_tags,"onUpdate:modelValue":t=>e.updateState(r,t,"valid_tags")},{help:o(()=>[i(" Wenn hier Tags eingetragen werden, können nur die eingetragenen Tags zur Fahrzeug-Zuordnung genutzt werden. Sind keine Tags eingetragen, wird nur die Zuordnung zum Fahrzeug geprüft. In diesem Fall können alle Fahrzeuge diesen Ladepunkt nutzen. "),Oe,d("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Ne)]),_:2},1032,["model-value","onUpdate:modelValue"]),Ze])):w("",!0),n(W,null,{default:o(()=>[i(" Angaben zum konfigurierten Ladestrom der openWB ")]),_:1}),n(z,{subtype:"info"},{default:o(()=>[i(" Hier werden die maximalen Ladeströme entsprechend der in dem zugeordneten Ladepunkt genutzten Phasen eingestellt."),Re,i(" Generell gilt, dass diese Werte in Übereinstimmung mit der Ausführung des Ladepunktes und des elektrischen Anschlusses bzw. der Absicherung zu wählen sind. Bei einer openWB mit 22kW Maximalleistung sind hier jeweils 32A einzustellen. Ist die openWB beispielsweise auf 11kW begrenzt (KfW-Förderung oder die Zuleitung ist mit 16A abgesichert), dann sind hier jeweils 16A einzustellen."),je,i(" Komplexere Installationen mit mehreren Ladepunkten werden im "),$e,i(" beschrieben. ")]),_:1}),n(q,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":s.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(r,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),n(q,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":s.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(r,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),Je,n(W,null,{default:o(()=>[i("Automatische Sperre")]),_:1}),n(y,{title:"Automatische Sperre aktiv",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.autolock.active,"onUpdate:modelValue":t=>e.updateState(r,t,"autolock.active")},{help:o(()=>[i(" Wird die automatische Sperre aktiviert, können Fahrzeugladungen mittels Zeitplan auf gewünschte Zeitbereiche eingeschränkt werden. Dies kann z.B. bei Zugänglichkeiten zu Ladepunkten in öffentlichen oder halb-öffentlichen Bereichen sinnvoll sein. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(y,{title:"Erst nach Ladeende sperren",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.autolock.wait_for_charging_end,"onUpdate:modelValue":t=>e.updateState(r,t,"autolock.wait_for_charging_end")},{help:o(()=>[i(' Wenn ein Zeitplan die automatische Sperre aktiviert, werden alle Ladepunkte direkt gesperrt und laufende Ladevorgänge beendet. Wird hier "Ja" ausgewählt, dann werden laufende Ladevorgänge NICHT beendet und diese Ladepunkte erst nach abgeschlossener Ladung gesperrt. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(W,null,{actions:o(()=>[n(L,{class:"bg-success clickable",onClick:t=>p.addChargePointTemplateAutolockPlan(r,t)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),default:o(()=>[i(" Zeitpläne für die automatische Sperre ")]),_:2},1024),(l(!0),c(S,null,A(p.getChargePointTemplateAutolockPlans(r),(t,_)=>(l(),v(I,{key:_,title:t.name,collapsible:!0,collapsed:!0},{actions:o(h=>[h.collapsed==!0?(l(),c("span",{key:0,onClick:ie(B=>e.updateState(_,!t.active,"active"),["stop"]),class:M(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[n(f,{"fixed-width":"",icon:["fas","clock"]}),i(" "+k(t.time[0])+" - "+k(t.time[1])+" ",1),t.frequency.selected=="once"?(l(),c("span",Ge,[n(f,{"fixed-width":"",icon:["fas","calendar-day"]}),i(" "+k(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):w("",!0),t.frequency.selected=="daily"?(l(),c("span",Qe,[n(f,{"fixed-width":"",icon:["fas","calendar-week"]})])):w("",!0),t.frequency.selected=="weekly"?(l(),c("span",Xe,[n(f,{"fixed-width":"",icon:["fas","calendar-alt"]})])):w("",!0)],10,He)):w("",!0),h.collapsed==!1?(l(),v(L,{key:1,class:"bg-danger clickable",onClick:B=>p.removeChargePointTemplateAutolockPlanModal(r,_,B)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):w("",!0)]),default:o(()=>[n(V,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":h=>e.updateState(_,h,"name")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":h=>e.updateState(_,h,"active")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Sperren um",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":h=>e.updateState(_,h,"time.0")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Freigeben um",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":h=>e.updateState(_,h,"time.1")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(l(),v(V,{key:0,title:"Sperren ab ...",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):w("",!0),t.frequency.selected=="once"?(l(),v(V,{key:1,title:"... bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):w("",!0),t.frequency.selected=="weekly"?(l(),c("div",Ye,[(l(!0),c(S,null,A(e.weekdays,(h,B)=>(l(),v(y,{key:B,title:h,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[B],"onUpdate:modelValue":J=>e.updateState(_,J,"frequency.weekly."+B)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):w("",!0)]),_:2},1032,["title"]))),128))]),_:2},[r.endsWith("/0")?void 0:{name:"actions",fn:o(t=>[t.collapsed?w("",!0):(l(),v(L,{key:0,class:"bg-danger clickable",onClick:_=>p.removeChargePointTemplateModal(r,_)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),n($,{formName:"chargePointInstallationForm",onSave:a[4]||(a[4]=s=>e.$emit("save")),onReset:a[5]||(a[5]=s=>e.$emit("reset")),onDefaults:a[6]||(a[6]=s=>e.$emit("defaults"))})])])],64)}const rt=x(ve,[["render",Ke],["__scopeId","data-v-75fe5743"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargePointInstallation.vue"]]);export{rt as default}; +import{l as H,d as G,_ as Q,A as X,$ as Y,a0 as K,K as ee,a1 as te,F as ne,I as ae}from"./vendor-fortawesome-9fdc06a9.js";import{_ as T,C as oe}from"./index-720fb9ac.js";import{_ as E}from"./dynamic-import-helper-be004503.js";import{_ as x,q as g,k as l,l as c,z as v,M as o,x as i,y as k,B as n,u as d,a1 as D,a2 as F,I as S,J as A,A as w,p as M,a3 as O,O as ie,R as le,S as se}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const re={name:"ChargePointConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String},methods:{updateConfiguration(e,a=void 0){this.$emit("update:configuration",{value:e,object:a})}}},ue={class:"device-fallback"},de={key:1};function pe(e,a,u,P,m,p){const C=g("openwb-base-alert"),f=g("openwb-base-textarea");return l(),c("div",ue,[Object.keys(u.configuration).length==0?(l(),v(C,{key:0,subtype:"info"},{default:o(()=>[i(' Der Ladepunkt-Typ "'+k(u.chargePointType)+'" bietet keine Einstellungen. ',1)]),_:1})):(l(),c("div",de,[n(C,{subtype:"warning"},{default:o(()=>[i(' Es wurde keine Konfigurationsseite für den Ladepunkt-Typ "'+k(u.chargePointType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(f,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":a[0]||(a[0]=L=>p.updateConfiguration(L,"configuration"))},{help:o(()=>[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(C,{subtype:"info"},{default:o(()=>[d("pre",null,k(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})]))])}const me=x(re,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointConfigFallback.vue"]]),ce={name:"ChargePointCommandsFallback",props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String}},ge={class:"charge-point-commands-fallback"};function he(e,a,u,P,m,p){const C=g("openwb-base-alert");return l(),c("div",ge,[n(C,{subtype:"secondary"},{default:o(()=>[i(' Der Ladepunkt-Typ "'+k(u.chargePointType)+'" bietet keine Befehle an. ',1)]),_:1})])}const fe=x(ce,[["render",he],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointCommandsFallback.vue"]]),be={name:"OpenwbChargePointProxy",emits:["update:configuration"],props:{chargePointId:{required:!0},chargePointType:{type:String,required:!0},configuration:{type:Object,required:!0},moduleName:{type:String,required:!1,default:void 0}},computed:{myChargePointSettingsComponent(){return console.debug(`loading charge point settings: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./external_openwb/chargePoint.vue":()=>T(()=>import("./chargePoint-7f675b57.js"),["assets/chargePoint-7f675b57.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./internal_openwb/chargePoint.vue":()=>T(()=>import("./chargePoint-aec7a368.js"),["assets/chargePoint-aec7a368.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/chargePoint.vue":()=>T(()=>import("./chargePoint-3b7886f2.js"),["assets/chargePoint-3b7886f2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_pro/chargePoint.vue":()=>T(()=>import("./chargePoint-1fa33c24.js"),["assets/chargePoint-1fa33c24.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_series2_satellit/chargePoint.vue":()=>T(()=>import("./chargePoint-f8eca554.js"),["assets/chargePoint-f8eca554.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smartwb/chargePoint.vue":()=>T(()=>import("./chargePoint-fd2d17a4.js"),["assets/chargePoint-fd2d17a4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.chargePointType}/chargePoint.vue`),errorComponent:me})},myChargePointCommandsComponent(){return console.debug(`loading charge point commands: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./openwb_pro/commands.vue":()=>T(()=>import("./commands-02fea48b.js"),["assets/commands-02fea48b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.chargePointType}/commands.vue`),errorComponent:fe})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}},_e=d("hr",null,null,-1);function we(e,a,u,P,m,p){const C=g("openwb-base-heading");return l(),c(S,null,[n(C,null,{default:o(()=>[i(" Einstellungen für Ladepunkt "+k(u.moduleName),1)]),_:1}),(l(),v(F(p.myChargePointSettingsComponent),{configuration:u.configuration,chargePointId:u.chargePointId,chargePointType:u.chargePointType,"onUpdate:configuration":a[0]||(a[0]=f=>p.updateConfiguration(f))},null,40,["configuration","chargePointId","chargePointType"])),_e,n(C,null,{default:o(()=>[i(" Befehle für Ladepunkt "+k(u.moduleName),1)]),_:1}),(l(),v(F(p.myChargePointCommandsComponent),{configuration:u.configuration,chargePointId:u.chargePointId,chargePointType:u.chargePointType},null,8,["configuration","chargePointId","chargePointType"]))],64)}const ke=x(be,[["render",we],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointProxy.vue"]]);H.add(G,Q,X,Y,K,ee,te);const ve={name:"OpenwbChargePointInstallation",mixins:[oe],emits:["sendCommand"],components:{FontAwesomeIcon:ne,FontAwesomeLayers:ae,OpenwbChargePointProxy:ke},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/rfid/active","openWB/chargepoint/+/config","openWB/chargepoint/template/+","openWB/chargepoint/template/+/autolock/+","openWB/system/configurable/chargepoints","openWB/system/configurable/chargepoints_internal"],chargePointToAdd:void 0,showChargePointModal:!1,modalChargePointIndex:void 0,showChargePointTemplateModal:!1,modalChargePointTemplateIndex:void 0,showChargePointTemplateAutolockPlanModal:!1,modalChargePointTemplateAutolockPlanIndex:void 0}},computed:{installedChargePoints:{get(){let e=this.getWildcardTopics("openWB/chargepoint/+/config"),a={};for(const[u,P]of Object.entries(e))(P.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(a[u]=P);return a}},chargePointTemplates:{get(){return this.getWildcardTopics("openWB/chargepoint/template/+")}},chargePointTemplateList:{get(){let e=[];return Object.keys(this.chargePointTemplates).forEach(a=>{let u=parseInt(a.match(/([0-9]+)/g)[0]),P=this.$store.state.mqtt["openWB/chargepoint/template/"+u].name;e.push({value:u,text:P})}),e}}},methods:{addChargePoint(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepoint",data:{type:this.chargePointToAdd}})},removeChargePointModal(e,a){a.stopPropagation(),this.modalChargePointIndex=parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showChargePointModal=!0},removeChargePoint(e,a){this.showChargePointModal=!1,a=="confirm"&&(console.debug("request removal of charge point '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepoint",data:{id:e}}))},getChargePointList(){return this.$store.state.mqtt["openWB/general/extern"]===!1?this.$store.state.mqtt["openWB/system/configurable/chargepoints"]:this.$store.state.mqtt["openWB/system/configurable/chargepoints_internal"]},getChargePointName(e){return this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"].name:"Ladepunkt "+e},getChargePointTemplateName(e){return this.$store.state.mqtt["openWB/chargepoint/template/"+e]?this.$store.state.mqtt["openWB/chargepoint/template/"+e].name:"Profil "+e},addChargePointTemplate(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepointTemplate",data:{}})},getChargePointTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargePointTemplateModal(e,a){a.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.showChargePointTemplateModal=!0},removeChargePointTemplate(e,a){this.showChargePointTemplateModal=!1,a=="confirm"&&(console.debug("request removal of chargePoint template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepointTemplate",data:{id:e}}))},addChargePointTemplateAutolockPlan(e,a){a.stopPropagation(),console.info("requesting new charge point template autolock plan...");let u=this.getChargePointTemplateIndex(e);this.$emit("sendCommand",{command:"addAutolockPlan",data:{template:u}})},removeChargePointTemplateAutolockPlanModal(e,a,u){u.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.modalChargePointTemplateAutolockPlanIndex=parseInt(a.match(/([^/]+)$/)[0]),this.showChargePointTemplateAutolockPlanModal=!0},removeChargePointTemplateAutolockPlan(e,a,u){this.showChargePointTemplateAutolockPlanModal=!1,u=="confirm"&&(console.debug("request removal of chargePoint template '"+e+"' autolock plan '"+a+"'"),this.$emit("sendCommand",{command:"removeAutolockPlan",data:{template:e,plan:a}}))},getChargePointTemplateAutolockPlanName(e,a){return this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a]?this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a].name:"Autolock Zeitplan "+e+"/"+a},getChargePointTemplateAutolockPlans(e){let a=this.getChargePointTemplateIndex(e);return this.getWildcardTopics("openWB/chargepoint/template/"+a+"/autolock/+")},updateConfiguration(e,a){console.debug("updateConfiguration",e,a),this.updateState(e,a.value,a.object)}}},b=e=>(le("data-v-75fe5743"),e=e(),se(),e),Ce={class:"chargePointInstallation"},ye={name:"chargePointInstallationForm"},Pe={key:0},Ve=b(()=>d("hr",null,null,-1)),Le={key:1},Te=b(()=>d("hr",null,null,-1)),We=b(()=>d("br",null,null,-1)),Be=b(()=>d("br",null,null,-1)),Se=b(()=>d("br",null,null,-1)),Ie=b(()=>d("br",null,null,-1)),Ae={key:0},xe={class:"col-1"},Ue=b(()=>d("br",null,null,-1)),ze=b(()=>d("ul",null,[d("li",null," Interne openWB - wenn diese openWB über einen verbauten Ladepunkt mit Regelcontroller verfügt (z.B. Standard(+), Custom, Duo, Buchse, NICHT Standalone); ansonsten immer anlegen, egal ob diese openWB steuert = primary oder ferngesteuert wird = secondary "),d("li",null," Externe openWB - wenn diese openWB (primary) die Fernsteuerung von externen openWB (secondary) übernimmt "),d("li",null," MQTT-Ladepunkt - nur zur Nutzung des openWB-Simulators zugelassen "),d("li",null," openWB Pro - wenn diese openWB (primary) die Fernsteuerung einer openWB Pro (secondary) übernimmt "),d("li",null," openWB series2 Satellit/Satellit Duo - wenn diese openWB (primary) die Fernsteuerung einer openWB series2 Satellit/Satellit Duo (secondary) übernimmt "),d("li",null," smartWB/EVSE-Wifi - wenn diese openWB (primary) die Fernsteuerung einer smartWB/EVSE-Wifi übernimmt ")],-1)),qe=b(()=>d("hr",{class:"border-secondary"},null,-1)),Ee={key:0},De={key:1},Fe=b(()=>d("hr",null,null,-1)),Me={key:0},Oe=b(()=>d("br",null,null,-1)),Ne=["innerHTML"],Ze=b(()=>d("hr",null,null,-1)),Re=b(()=>d("br",null,null,-1)),je=b(()=>d("br",null,null,-1)),$e=b(()=>d("a",{href:"https://github.com/openWB/core/wiki/Lastmanagement-und-kaskadierte-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"},"Wiki zum Lastmanagement",-1)),Je=b(()=>d("hr",null,null,-1)),He=["onClick"],Ge={key:0},Qe={key:1},Xe={key:2},Ye={key:2};function Ke(e,a,u,P,m,p){const C=g("openwb-base-modal-dialog"),f=g("font-awesome-icon"),L=g("openwb-base-avatar"),V=g("openwb-base-text-input"),U=g("openwb-base-select-input"),N=g("openwb-charge-point-proxy"),W=g("openwb-base-heading"),y=g("openwb-base-button-group-input"),I=g("openwb-base-card"),Z=g("openwb-base-click-button"),R=g("font-awesome-layers"),z=g("openwb-base-alert"),j=g("openwb-base-array-input"),q=g("openwb-base-range-input"),$=g("openwb-base-submit-buttons");return l(),c(S,null,[n(C,{show:m.showChargePointModal,title:"Ladepunkt löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[0]||(a[0]=s=>p.removeChargePoint(m.modalChargePointIndex,s))},{default:o(()=>[i(' Wollen Sie den Ladepunkt "'+k(p.getChargePointName(m.modalChargePointIndex))+'" (ID: '+k(m.modalChargePointIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:m.showChargePointTemplateModal,title:"Ladepunkt-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[1]||(a[1]=s=>p.removeChargePointTemplate(m.modalChargePointTemplateIndex,s))},{default:o(()=>[i(' Wollen Sie das Ladepunkt-Profil "'+k(p.getChargePointTemplateName(m.modalChargePointTemplateIndex))+'" (ID: '+k(m.modalChargePointTemplateIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:m.showChargePointTemplateAutolockPlanModal,title:"Autolock Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[2]||(a[2]=s=>p.removeChargePointTemplateAutolockPlan(m.modalChargePointTemplateIndex,m.modalChargePointTemplateAutolockPlanIndex,s))},{default:o(()=>[i(' Wollen Sie den Autolock Zeitplan "'+k(p.getChargePointTemplateAutolockPlanName(m.modalChargePointTemplateIndex,m.modalChargePointTemplateAutolockPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),d("div",Ce,[d("form",ye,[n(I,{title:"Ladepunkte",subtype:"primary",collapsible:!0,collapsed:!0},{header:o(()=>[n(f,{"fixed-width":"",icon:["fas","charging-station"]}),i(" Ladepunkte ")]),default:o(()=>[(l(!0),c(S,null,A(p.installedChargePoints,(s,r)=>(l(),v(I,{key:r,title:s.name+" (ID: "+s.id+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(t=>[t.collapsed?w("",!0):(l(),v(L,{key:0,class:"bg-danger clickable",onClick:_=>p.removeChargePointModal(r,_)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":s.name,"onUpdate:modelValue":t=>e.updateState(r,t,"name")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":e.$store.state.mqtt[r].type},null,8,["model-value"]),s.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),c("span",Pe,[n(U,{title:"Ladepunkt-Profil",options:p.chargePointTemplateList,"model-value":e.$store.state.mqtt[r].template,"onUpdate:modelValue":t=>e.updateState(r,t,"template")},null,8,["options","model-value","onUpdate:modelValue"])])):w("",!0),Ve,n(N,{chargePointId:s.id,chargePointType:e.$store.state.mqtt[r].type,moduleName:e.$store.state.mqtt[r].name,configuration:s.configuration,"onUpdate:configuration":t=>p.updateConfiguration(r,t)},null,8,["chargePointId","chargePointType","moduleName","configuration","onUpdate:configuration"]),s.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),c("div",Le,[Te,n(W,null,{default:o(()=>[i("Hardware-Optionen")]),_:1}),n(y,{title:"automatische Phasenumschaltung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.auto_phase_switch_hw,"onUpdate:modelValue":t=>e.updateState(r,t,"auto_phase_switch_hw")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Control-Pilot-Unterbrechung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.control_pilot_interruption_hw,"onUpdate:modelValue":t=>e.updateState(r,t,"control_pilot_interruption_hw")},{help:o(()=>[i(' Die Control-Pilot-Leitung ist im Ladekabel integriert und dient der Steuerung der Fahrzeugladung (An/Aus/Stromvorgaben). Bei einigen Fahrzeugen können durch die Regelung erzwungene, längere Ladestopps (z.B. beim PV-Laden) zu unerwünschten "Einschlaf"-Effekten des Fahrzeuges führen. Mit diesem feature, welches hardwareseitig verbaut sein muss, kann ein Abstecken des Ladesteckers simuliert werden, um ein Aufwecken des Fahrzeuges zu ermöglichen. Die Funktion hängt immer auch vom Fahrzeugtyp ab. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(W,null,{default:o(()=>[i(" Elektrischer Anschluss ")]),_:1}),n(y,{title:"Anzahl angeschlossener Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":s.connected_phases,"onUpdate:modelValue":t=>e.updateState(r,t,"connected_phases")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Phase 1 des Ladekabels",buttons:[{buttonValue:0,text:"unbekannt",class:"btn-outline-danger"},{buttonValue:1,text:"EVU L1",class:"btn-outline-success"},{buttonValue:2,text:"EVU L2",class:"btn-outline-success"},{buttonValue:3,text:"EVU L3",class:"btn-outline-success"}],"model-value":s.phase_1,"onUpdate:modelValue":t=>e.updateState(r,t,"phase_1")},{help:o(()=>[i(" Hier ist anzugeben, an welcher Phase des Hausanschlusses (EVU-Punkt) die Phase 1 dieses Ladepunktes angeschlossen ist. Diese Information wird für das Lastmanagement benötigt, um bei einer Schieflast gezielt einzelne Ladepunkte zu drosseln."),We,i(' Bei mehreren Ladepunkten macht es Sinn, die Phasen der LP rotierend anzuschließen, damit mehrere "nicht-dreiphasig" ladende Fahrzeuge mit optimaler Leistung laden können, bevor das Lastmanagement eingreift.'),Be,i(" Es wird vorausgesetzt, dass das Drehfeld innerhalb der Installation gleich bleibt. Wenn z.B. L1 des Ladepunktes auf EVU-L2 liegt, muss L2 des Ladepunktes auf EVU-L3 aufgelegt sein (und L3 des Ladepunktes auf EVU-L1)."),Se,i(" Eine Möglichkeit, die zur Ladepunktphase L1 zugehörige EVU-Phase zu ermitteln, ist eine einphasige Ladung zu starten und die Phasenströme am EVU-Zähler zu beobachten. Mit einem zweiphasig ladenden Fahrzeug kann danach auch der Anschluss von L2 ermittelt und so das Drehfeld kontrolliert werden."),Ie,i(" Im Zweifel bitte das Drehfeld von einer Fachkraft prüfen und korrigieren lassen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])])):w("",!0)]),_:2},1032,["title"]))),128)),Object.keys(p.installedChargePoints).length>0?(l(),c("hr",Ae)):w("",!0),n(U,{class:"mb-2",title:"Verfügbare Ladepunkte",notSelected:"Bitte auswählen",options:p.getChargePointList(),"model-value":m.chargePointToAdd,"onUpdate:modelValue":a[3]||(a[3]=s=>m.chargePointToAdd=s)},{append:o(()=>[d("span",xe,[n(Z,{class:M(m.chargePointToAdd===void 0?"btn-outline-success":"btn-success"),disabled:m.chargePointToAdd===void 0,onButtonClicked:p.addChargePoint},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:o(()=>[i(" Bitte einen Ladepunkt auswählen, der der openWB-Regelung hinzugefügt werden soll."),Ue,ze]),_:1},8,["options","model-value"])]),_:1}),qe,n(I,{title:"Ladepunkt-Profile",collapsible:!0,collapsed:!0},{header:o(()=>[n(R,{"fixed-width":"",class:"fa-lg"},{default:o(()=>[n(f,{"fixed-width":"",icon:["far","file"]}),n(f,{"fixed-width":"",icon:["fas","charging-station"],transform:"shrink-8"})]),_:1}),i(" Ladepunkt-Profile ")]),actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),v(L,{key:0,class:"bg-success clickable",onClick:p.addChargePointTemplate},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):w("",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),c("div",Ee,[n(z,{subtype:"info"},{default:o(()=>[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),c("div",De,[(l(!0),c(S,null,A(p.chargePointTemplates,(s,r)=>(l(),v(I,{key:r,title:s.name+" (ID: "+p.getChargePointTemplateIndex(r)+")",collapsible:!0,collapsed:!0},O({default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":s.name,"onUpdate:modelValue":t=>e.updateState(r,t,"name"),disabled:r.endsWith("/0")},O({_:2},[r.endsWith("/0")?{name:"help",fn:o(()=>[i(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),Fe,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(l(),c("div",Me,[n(W,null,{default:o(()=>[i(" Zugangskontrolle ")]),_:1}),n(y,{title:"Freigabe durch ID-Tags",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.rfid_enabling,"onUpdate:modelValue":t=>e.updateState(r,t,"rfid_enabling")},null,8,["model-value","onUpdate:modelValue"]),n(j,{title:"Zugeordnete ID-Tags",noElementsMessage:"Keine ID-Tags zugeordnet.","model-value":s.valid_tags,"onUpdate:modelValue":t=>e.updateState(r,t,"valid_tags")},{help:o(()=>[i(" Wenn hier Tags eingetragen werden, können nur die eingetragenen Tags zur Fahrzeug-Zuordnung genutzt werden. Sind keine Tags eingetragen, wird nur die Zuordnung zum Fahrzeug geprüft. In diesem Fall können alle Fahrzeuge diesen Ladepunkt nutzen. "),Oe,d("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Ne)]),_:2},1032,["model-value","onUpdate:modelValue"]),Ze])):w("",!0),n(W,null,{default:o(()=>[i(" Angaben zum konfigurierten Ladestrom der openWB ")]),_:1}),n(z,{subtype:"info"},{default:o(()=>[i(" Hier werden die maximalen Ladeströme entsprechend der in dem zugeordneten Ladepunkt genutzten Phasen eingestellt."),Re,i(" Generell gilt, dass diese Werte in Übereinstimmung mit der Ausführung des Ladepunktes und des elektrischen Anschlusses bzw. der Absicherung zu wählen sind. Bei einer openWB mit 22kW Maximalleistung sind hier jeweils 32A einzustellen. Ist die openWB beispielsweise auf 11kW begrenzt (KfW-Förderung oder die Zuleitung ist mit 16A abgesichert), dann sind hier jeweils 16A einzustellen."),je,i(" Komplexere Installationen mit mehreren Ladepunkten werden im "),$e,i(" beschrieben. ")]),_:1}),n(q,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":s.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(r,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),n(q,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":s.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(r,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),Je,n(W,null,{default:o(()=>[i("Automatische Sperre")]),_:1}),n(y,{title:"Automatische Sperre aktiv",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.autolock.active,"onUpdate:modelValue":t=>e.updateState(r,t,"autolock.active")},{help:o(()=>[i(" Wird die automatische Sperre aktiviert, können Fahrzeugladungen mittels Zeitplan auf gewünschte Zeitbereiche eingeschränkt werden. Dies kann z.B. bei Zugänglichkeiten zu Ladepunkten in öffentlichen oder halb-öffentlichen Bereichen sinnvoll sein. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(y,{title:"Erst nach Ladeende sperren",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":s.autolock.wait_for_charging_end,"onUpdate:modelValue":t=>e.updateState(r,t,"autolock.wait_for_charging_end")},{help:o(()=>[i(' Wenn ein Zeitplan die automatische Sperre aktiviert, werden alle Ladepunkte direkt gesperrt und laufende Ladevorgänge beendet. Wird hier "Ja" ausgewählt, dann werden laufende Ladevorgänge NICHT beendet und diese Ladepunkte erst nach abgeschlossener Ladung gesperrt. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(W,null,{actions:o(()=>[n(L,{class:"bg-success clickable",onClick:t=>p.addChargePointTemplateAutolockPlan(r,t)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),default:o(()=>[i(" Zeitpläne für die automatische Sperre ")]),_:2},1024),(l(!0),c(S,null,A(p.getChargePointTemplateAutolockPlans(r),(t,_)=>(l(),v(I,{key:_,title:t.name,collapsible:!0,collapsed:!0},{actions:o(h=>[h.collapsed==!0?(l(),c("span",{key:0,onClick:ie(B=>e.updateState(_,!t.active,"active"),["stop"]),class:M(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[n(f,{"fixed-width":"",icon:["fas","clock"]}),i(" "+k(t.time[0])+" - "+k(t.time[1])+" ",1),t.frequency.selected=="once"?(l(),c("span",Ge,[n(f,{"fixed-width":"",icon:["fas","calendar-day"]}),i(" "+k(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):w("",!0),t.frequency.selected=="daily"?(l(),c("span",Qe,[n(f,{"fixed-width":"",icon:["fas","calendar-week"]})])):w("",!0),t.frequency.selected=="weekly"?(l(),c("span",Xe,[n(f,{"fixed-width":"",icon:["fas","calendar-alt"]})])):w("",!0)],10,He)):w("",!0),h.collapsed==!1?(l(),v(L,{key:1,class:"bg-danger clickable",onClick:B=>p.removeChargePointTemplateAutolockPlanModal(r,_,B)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):w("",!0)]),default:o(()=>[n(V,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":h=>e.updateState(_,h,"name")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":h=>e.updateState(_,h,"active")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Sperren um",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":h=>e.updateState(_,h,"time.0")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Freigeben um",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":h=>e.updateState(_,h,"time.1")},null,8,["model-value","onUpdate:modelValue"]),n(y,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(l(),v(V,{key:0,title:"Sperren ab ...",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):w("",!0),t.frequency.selected=="once"?(l(),v(V,{key:1,title:"... bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":h=>e.updateState(_,h,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):w("",!0),t.frequency.selected=="weekly"?(l(),c("div",Ye,[(l(!0),c(S,null,A(e.weekdays,(h,B)=>(l(),v(y,{key:B,title:h,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[B],"onUpdate:modelValue":J=>e.updateState(_,J,"frequency.weekly."+B)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):w("",!0)]),_:2},1032,["title"]))),128))]),_:2},[r.endsWith("/0")?void 0:{name:"actions",fn:o(t=>[t.collapsed?w("",!0):(l(),v(L,{key:0,class:"bg-danger clickable",onClick:_=>p.removeChargePointTemplateModal(r,_)},{default:o(()=>[n(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),n($,{formName:"chargePointInstallationForm",onSave:a[4]||(a[4]=s=>e.$emit("save")),onReset:a[5]||(a[5]=s=>e.$emit("reset")),onDefaults:a[6]||(a[6]=s=>e.$emit("defaults"))})])])],64)}const rt=x(ve,[["render",Ke],["__scopeId","data-v-75fe5743"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargePointInstallation.vue"]]);export{rt as default}; diff --git a/web/settings/assets/Chart-a72a188e.js b/web/settings/assets/Chart-d72eedd8.js similarity index 99% rename from web/settings/assets/Chart-a72a188e.js rename to web/settings/assets/Chart-d72eedd8.js index 6d53967ae2..5ee9cc79d4 100644 --- a/web/settings/assets/Chart-a72a188e.js +++ b/web/settings/assets/Chart-d72eedd8.js @@ -1 +1 @@ -import{l as L,K as H,P as T,O as j,N as q,V as O,W as M,F as V}from"./vendor-fortawesome-9fdc06a9.js";import{C as z}from"./index-b8f06cb8.js";import{C as E,p as K,a as P,L as B,b as N,B as F,f as J,P as $,c as X,T as Z,i as G,d as U,e as Y,g as Q}from"./vendor-chartjs-3e4a7d38.js";import{_ as ee,q as h,k as s,l as o,u as v,B as c,M as d,z as g,x as m,I as k,J as x,y as A,A as C}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";import"./vendor-luxon-78deadb9.js";L.add(H,T,j,q,O,M);E.register(K,P,B,N,F,J,$,X,Z,G,U);const te={name:"OpenwbChart",components:{ChartjsLine:Y,FontAwesomeIcon:V},mixins:[z],emits:["sendCommand"],props:{initialChartRange:{type:String,required:!1,validator:function(e){return["day","month","year"].indexOf(e)!==-1},default:"day"},initialDate:{type:String,required:!1,validator:function(e){return e.match(/^(([0-9]{4})(-[0-9]{2}(-[0-9]{2})?)?)?$/g)},default:""}},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/log/daily/#","openWB/log/monthly/#","openWB/log/yearly/#","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentDate:"",chartRange:"day",blockChartInit:!1,chartRequestDate:{day:"",month:"",year:""},datasetTemplates:{"counter-power_average":{label:"Zähler",unit:"kW",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_exported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 255, 105, 0.7)",backgroundColor:"rgba(0, 255, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-power_exported":{label:"PV",unit:"kW",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"inverter-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-energy_exported":{label:"PV",unit:"kWh",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"inverter-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-power_average":{label:"Speicher",unit:"kW",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"battery-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_imported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_exported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-soc":{label:"Speicher SoC",unit:"%",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-power_average":{label:"Ladepunkt",unit:"kW",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"charge-point-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported":{label:"Ladepunkt",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"charge-point-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_grid":{label:"Ladepunkt (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_pv":{label:"Ladepunkt (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_bat":{label:"Ladepunkt (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"ev-soc":{label:"Fahrzeug SoC",unit:"%",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-power_average":{label:"SmartHome",unit:"kW",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_imported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_exported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-power_imported":{label:"Hausverbrauch",unit:"kW",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported":{label:"Hausverbrauch",unit:"kWh",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_grid":{label:"Hausverbrauch (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_pv":{label:"Hausverbrauch (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_bat":{label:"Hausverbrauch (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}}},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0,callbacks:{label:e=>`${e.dataset.label}: ${e.formattedValue} ${e.dataset.unit}`}},legend:{display:!0},zoom:{pan:{enabled:!0,mode:"x",threshold:5},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"",tooltipFormat:""},display:!0,title:{display:!0,text:""},ticks:{source:"timestamp",font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Leistung [kW]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y2:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Energie [kWh]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y3:{position:"right",type:"linear",display:"auto",suggestedMin:0,suggestedMax:100,title:{font:{size:12},display:!0,text:"SoC [%]"},grid:{display:!1},ticks:{font:{size:12},stepSize:10,maxTicksLimit:11}}}},chartDatasets:{datasets:[]}}},computed:{dateInput(){var e={title:"Datum",type:"date",min:"2018-01-01"};switch(this.chartRange){case"month":e={title:"Monat",type:"month",min:"2018-01"};break;case"year":e={title:"Jahr",type:"year",min:"2018"};break}return e},chartDate:{get(){var e=this.chartRequestDate.year;return this.chartRange!="year"&&(e=e+"-"+this.chartRequestDate.month),this.chartRange=="day"&&(e=e+"-"+this.chartRequestDate.day),e},set(e){let a=e.split("-");this.chartRequestDate.year=a[0],a.length>1?this.chartRequestDate.month=a[1]:this.chartRequestDate.month="",a.length>2?this.chartRequestDate.day=a[2]:this.chartRequestDate.day=""}},chartScaleX(){var e={unit:"minute",tooltipFormat:"DD T",text:"Zeit",maxTicksLimit:24};switch(this.chartRange){case"month":e={unit:"day",tooltipFormat:"DD",text:"Tag",maxTicksLimit:31};break;case"year":e={unit:"month",tooltipFormat:"LLLL yyyy",text:"Monat",maxTicksLimit:12};break}return e},commandData(){var e={date:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day,day:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day};switch(this.chartRange){case"month":e={date:this.chartRequestDate.year+this.chartRequestDate.month,month:this.chartRequestDate.year+this.chartRequestDate.month};break;case"year":e={date:this.chartRequestDate.year,year:this.chartRequestDate.year};break}return e},baseTopic(){var e="openWB/log/";switch(this.chartRange){case"day":e=e+"daily/";break;case"month":e=e+"monthly/";break;case"year":e=e+"yearly/";break}return e},chartDataRead(){return this.chartDataObject!=null},chartDataHasEntries(){return this.chartDataObject?this.chartDataObject.length>0:!1},chartTotals(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"totals")){var e=JSON.parse(JSON.stringify(this.$store.state.mqtt[this.baseTopic+this.commandData.date].totals));return delete e.energy_source,Object.keys(e.counter).forEach(a=>{Object.prototype.hasOwnProperty.call(e.counter[a],"grid")&&delete e.counter[a].grid}),e}},chartDataObject(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]){var e=this.$store.state.mqtt[this.baseTopic+this.commandData.date];Object.prototype.hasOwnProperty.call(e,"entries")&&(e=e.entries);var a=JSON.parse(JSON.stringify(e)).map(r=>(r.timestamp=r.timestamp*1e3,r));return a}},chartData(){if(this.chartDataObject){var e=["pv","counter","bat","cp","sh","ev","hc"];const a=this.chartDataObject[this.chartDataObject.length-1];return a&&e.forEach(r=>{Object.prototype.hasOwnProperty.call(a,r)&&Object.entries(a[r]).forEach(([n,i])=>{Object.keys(i).forEach(t=>{this.initDataset(r,n,t)})})}),this.chartDatasets}}},methods:{handleChartClick(e){if(this.chartRange=="day")return;const a=this.$refs.myChart.chart;if(!a)return;const r=Q(a,e);if(!r.length)return;const{datasetIndex:n,index:i}=r[0],t=this.chartData.datasets[n].data[i].date;var l="",b="";switch(this.chartRange){case"month":l=t.substring(0,4)+"-"+t.substring(4,6)+"-"+t.substring(6),b="day";break;case"year":l=t.substring(0,4)+"-"+t.substring(4,6),b="month";break}this.blockChartInit=!0,this.chartDate=l,this.chartRange=b},getCardSubtype(e){switch(e){case"bat":return"warning";case"counter":return"danger";case"cp":return"primary";case"pv":return"success";case"sh":return"pink";default:return"secondary"}},getCardIcon(e){switch(e){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"pv":return["fas","solar-panel"];case"sh":return["fas","house-signal"];case"hc":return["fas","house"];default:return}},getDatasetHidden(e,a){return console.debug("getDatasetHidden",e,a),!1},getTotalsLabel(e,a=void 0,r=void 0){var n="*test*";if(!a&&!r){switch(e){case"bat":return"Speicher";case"counter":return"Zähler";case"pv":return"Wechselrichter";case"cp":return"Ladepunkte";case"sh":return"SmartHome-Geräte";case"hc":return"Hausverbrauch";default:console.warn("unknown group key:",e)}return"*"+e+"*"}if(a&&!r){if(a=="all")return"Summe";if(Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]}if(a&&r){switch(e){case"bat":case"cp":switch(r){case"imported":case"energy_imported":return"Ladung";case"exported":case"energy_exported":return"Entladung";case"energy_imported_grid":return"Ladung (Netz-Anteil)";case"energy_imported_pv":return"Ladung (PV-Anteil)";case"energy_imported_bat":return"Ladung (Speicher-Anteil)";case"energy_imported_cp":return"Ladung (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,r)}break;case"counter":switch(r){case"imported":case"energy_imported":return"Bezug/Verbrauch";case"exported":case"energy_exported":return"Einspeisung/Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"pv":switch(r){case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"sh":switch(r){case"imported":case"energy_imported":return"Verbrauch";case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"hc":switch(r){case"imported":case"energy_imported":return"Verbrauch";case"energy_imported_grid":return"Verbrauch (Netz-Anteil)";case"energy_imported_pv":return"Verbrauch (PV-Anteil)";case"energy_imported_bat":return"Verbrauch (Speicher-Anteil)";case"energy_imported_cp":return"Verbrauch (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,r)}break;default:console.warn("unknown group key:",e)}return"*"+e+"+"+a+"+"+r+"*"}return n},getDatasetLabel(e,a,r,n){var i=["*"+n],t=[];if(a=="all")switch(e!=="hc"&&t.push("Summe"),e){case"pv":i=["PV"];break;case"bat":switch(i=["Speicher"],r){case"soc":i.push("SoC");break}break;case"cp":i=["Ladepunkte"];break;case"hc":i=["Hausverbrauch"]}else Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names")&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date].names,a)&&(i=[this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]]);switch(e){case"bat":case"ev":case"cp":switch(r){case"soc":t.push("SoC");break;case"energy_imported":t.push("Ladung");break;case"energy_exported":t.push("Entladung");break;case"energy_imported_grid":t.push("Netz-Anteil");break;case"energy_imported_pv":t.push("PV-Anteil");break;case"energy_imported_bat":t.push("Speicher-Anteil");break;case"energy_imported_cp":t.push("Ladepunkt-Anteil");break}break;case"counter":switch(r){case"energy_imported":t.push("Bezug/Verbrauch");break;case"energy_exported":t.push("Einspeisung/Erzeugung");break}break;case"sh":switch(r){case"energy_imported":t.push("Verbrauch");break;case"energy_exported":t.push("Erzeugung");break}break;case"hc":switch(r){case"energy_imported_grid":t.push("Netz-Anteil");break;case"energy_imported_pv":t.push("PV-Anteil");break;case"energy_imported_bat":t.push("Speicher-Anteil");break;case"energy_imported_cp":t.push("Ladepunkt-Anteil");break}break}return`${i.join(" ")}${t.length?" ("+t.join(", ")+")":""}`},getDatasetIndex(e){let a=this.chartDatasets.datasets.findIndex(r=>r.jsonKey==e);if(a!=-1)return a},addDataset(e,a,r,n){var i=e+"-"+r;if(this.datasetTemplates[i]){var t=JSON.parse(JSON.stringify(this.datasetTemplates[i]));return t.parsing.yAxisKey=n,t.jsonKey=n,t.data=this.chartDataObject,t.label=this.getDatasetLabel(e,a,r,n),t.labelSuffix!=null&&(t.label=t.label+t.labelSuffix),a=="all"&&(["grid","pv","bat","cp"].includes(r.split("_").slice(-1)[0])||(t.hidden=!1,delete t.stack)),this.chartDatasets.datasets.push(t)-1}else console.warn("no matching template found for: "+n+" with template: "+i)},initDataset(e,a,r){var n=[];this.chartRange=="day"?n={counter:["power_average"],pv:["power_exported"],bat:["power_average","soc"],cp:["power_average"],sh:["power_average"],ev:["soc"],hc:["power_imported"]}:n={counter:["energy_imported","energy_exported"],pv:["energy_exported"],bat:["energy_imported","energy_exported"],cp:["energy_imported","energy_imported_grid","energy_imported_pv","energy_imported_bat"],sh:["energy_imported","energy_exported"],ev:[],hc:["energy_imported","energy_imported_grid","energy_imported_pv","energy_imported_bat"]};const i=e+"."+a+"."+r;if(n[e].includes(r)){var t=this.getDatasetIndex(i);const l=this.getDatasetHidden(e,a);t==null&&!l&&(t=this.addDataset(e,a,r,i)),t!=null&&l&&this.chartDatasets.datasets.splice(t,1)}else console.debug("skipping dataset:",i)},setupScaleX(){this.chartOptions.scales.x.time.unit=this.chartScaleX.unit,this.chartOptions.scales.x.time.tooltipFormat=this.chartScaleX.tooltipFormat,this.chartOptions.scales.x.title.text=this.chartScaleX.text,this.chartOptions.scales.x.ticks.maxTicksLimit=this.chartScaleX.maxTicksLimit},requestChart(){if(document.forms.chartForm.reportValidity()){this.setupScaleX(),this.chartDatasets.datasets=[];var a="";switch(this.chartRange){case"day":a="getDailyLog";break;case"month":a="getMonthlyLog";break;case"year":a="getYearlyLog";break}this.$emit("sendCommand",{command:a,data:this.commandData})}else{console.warn("form invalid");return}},clearChartData(){this.getWildcardIndexList(this.baseTopic+"+").forEach(e=>{this.$store.commit("removeTopic",`${this.baseTopic}${e}`)})},updateChart(){this.clearChartData(),this.requestChart()},init(){const e=new Date;this.currentDate=String(e.getFullYear()),this.chartRange!="year"&&(this.currentDate=this.currentDate+"-"+String(e.getMonth()+1).padStart(2,"0")),this.chartRange=="day"&&(this.currentDate=this.currentDate+"-"+String(e.getDate()).padStart(2,"0")),this.blockChartInit?this.blockChartInit=!1:this.initialDate==null||this.initialDate==""?this.chartDate=this.currentDate:this.chartDate=this.initialDate,this.updateChart()}},watch:{chartRange(){this.init()}},mounted(){this.init()}},ae={class:"chart"},re={name:"chartForm"},ie={key:1},ne={key:1},se={class:"openwb-chart"};function oe(e,a,r,n,i,t){const l=h("openwb-base-select-input"),b=h("openwb-base-text-input"),y=h("openwb-base-card"),_=h("openwb-base-alert"),R=h("chartjs-line"),S=h("font-awesome-icon"),w=h("openwb-base-heading");return s(),o("div",ae,[v("form",re,[c(y,{title:"Filter",collapsible:!0,collapsed:!1},{default:d(()=>[c(l,{title:"Zeitraum",modelValue:i.chartRange,"onUpdate:modelValue":a[0]||(a[0]=u=>i.chartRange=u),options:[{value:"day",text:"Tag"},{value:"month",text:"Monat"},{value:"year",text:"Jahr"}]},null,8,["modelValue"]),c(b,{title:t.dateInput.title,subtype:t.dateInput.type,min:t.dateInput.min,max:i.currentDate,showQuickButtons:!0,modelValue:t.chartDate,"onUpdate:modelValue":[a[1]||(a[1]=u=>t.chartDate=u),a[2]||(a[2]=u=>t.updateChart())]},null,8,["title","subtype","min","max","modelValue"])]),_:1}),t.chartDataRead?(s(),o("div",ie,[t.chartDataHasEntries?(s(),o("div",ne,[c(y,{title:"Diagramm",collapsible:!0,collapsed:!1},{default:d(()=>[v("div",se,[c(R,{ref:"myChart",data:t.chartData,options:i.chartOptions,onClick:t.handleChartClick},null,8,["data","options","onClick"])])]),_:1}),c(y,{title:"Summen",collapsible:!0,collapsed:!0},{default:d(()=>[(s(!0),o(k,null,x(t.chartTotals,(u,p)=>(s(),o("div",{key:p},[Object.keys(u).length>0?(s(),g(y,{key:0,collapsible:!0,collapsed:!0,subtype:t.getCardSubtype(p)},{header:d(()=>[c(S,{"fixed-width":"",icon:t.getCardIcon(p)},null,8,["icon"]),m(" "+A(t.getTotalsLabel(p)),1)]),default:d(()=>[(s(!0),o(k,null,x(u,(I,f)=>(s(),o("div",{key:f},[p!=="hc"?(s(),g(w,{key:0},{default:d(()=>[m(A(t.getTotalsLabel(p,f)),1)]),_:2},1024)):C("",!0),(s(!0),o(k,null,x(I,(W,D)=>(s(),o("div",{key:D},[c(b,{title:t.getTotalsLabel(p,f,D),readonly:"",class:"text-right",unit:"kWh","model-value":e.formatNumber(W/1e3,3)},null,8,["title","model-value"])]))),128))]))),128))]),_:2},1032,["subtype"])):C("",!0)]))),128))]),_:1})])):(s(),g(_,{key:0,subtype:"info"},{default:d(()=>[m(" Es konnten keine Daten für diesen Zeitraum gefunden werden. ")]),_:1}))])):(s(),g(_,{key:0,subtype:"info"},{default:d(()=>[m(" Es wurden noch keine Daten abgerufen. ")]),_:1}))])])}const me=ee(te,[["render",oe],["__scopeId","data-v-e00a7cd5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Chart.vue"]]);export{me as default}; +import{l as L,K as H,P as T,O as j,N as q,V as O,W as M,F as V}from"./vendor-fortawesome-9fdc06a9.js";import{C as z}from"./index-720fb9ac.js";import{C as E,p as K,a as P,L as B,b as N,B as F,f as J,P as $,c as X,T as Z,i as G,d as U,e as Y,g as Q}from"./vendor-chartjs-3e4a7d38.js";import{_ as ee,q as h,k as s,l as o,u as v,B as c,M as d,z as g,x as m,I as k,J as x,y as A,A as C}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";import"./vendor-luxon-78deadb9.js";L.add(H,T,j,q,O,M);E.register(K,P,B,N,F,J,$,X,Z,G,U);const te={name:"OpenwbChart",components:{ChartjsLine:Y,FontAwesomeIcon:V},mixins:[z],emits:["sendCommand"],props:{initialChartRange:{type:String,required:!1,validator:function(e){return["day","month","year"].indexOf(e)!==-1},default:"day"},initialDate:{type:String,required:!1,validator:function(e){return e.match(/^(([0-9]{4})(-[0-9]{2}(-[0-9]{2})?)?)?$/g)},default:""}},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/log/daily/#","openWB/log/monthly/#","openWB/log/yearly/#","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentDate:"",chartRange:"day",blockChartInit:!1,chartRequestDate:{day:"",month:"",year:""},datasetTemplates:{"counter-power_average":{label:"Zähler",unit:"kW",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_exported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 255, 105, 0.7)",backgroundColor:"rgba(0, 255, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-power_exported":{label:"PV",unit:"kW",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"inverter-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-energy_exported":{label:"PV",unit:"kWh",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"inverter-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-power_average":{label:"Speicher",unit:"kW",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"battery-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_imported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_exported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-soc":{label:"Speicher SoC",unit:"%",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-power_average":{label:"Ladepunkt",unit:"kW",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"charge-point-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported":{label:"Ladepunkt",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"charge-point-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_grid":{label:"Ladepunkt (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_pv":{label:"Ladepunkt (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported_bat":{label:"Ladepunkt (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"charge-point-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"ev-soc":{label:"Fahrzeug SoC",unit:"%",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-power_average":{label:"SmartHome",unit:"kW",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_imported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_exported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-power_imported":{label:"Hausverbrauch",unit:"kW",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported":{label:"Hausverbrauch",unit:"kWh",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_grid":{label:"Hausverbrauch (Netzanteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_pv":{label:"Hausverbrauch (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported_bat":{label:"Hausverbrauch (PV-Anteil)",unit:"kWh",type:"bar",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:3,data:null,yAxisID:"y2",stack:"hc-energy-imported-source",parsing:{xAxisKey:"timestamp",yAxisKey:null}}},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0,callbacks:{label:e=>`${e.dataset.label}: ${e.formattedValue} ${e.dataset.unit}`}},legend:{display:!0},zoom:{pan:{enabled:!0,mode:"x",threshold:5},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"",tooltipFormat:""},display:!0,title:{display:!0,text:""},ticks:{source:"timestamp",font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Leistung [kW]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y2:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Energie [kWh]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y3:{position:"right",type:"linear",display:"auto",suggestedMin:0,suggestedMax:100,title:{font:{size:12},display:!0,text:"SoC [%]"},grid:{display:!1},ticks:{font:{size:12},stepSize:10,maxTicksLimit:11}}}},chartDatasets:{datasets:[]}}},computed:{dateInput(){var e={title:"Datum",type:"date",min:"2018-01-01"};switch(this.chartRange){case"month":e={title:"Monat",type:"month",min:"2018-01"};break;case"year":e={title:"Jahr",type:"year",min:"2018"};break}return e},chartDate:{get(){var e=this.chartRequestDate.year;return this.chartRange!="year"&&(e=e+"-"+this.chartRequestDate.month),this.chartRange=="day"&&(e=e+"-"+this.chartRequestDate.day),e},set(e){let a=e.split("-");this.chartRequestDate.year=a[0],a.length>1?this.chartRequestDate.month=a[1]:this.chartRequestDate.month="",a.length>2?this.chartRequestDate.day=a[2]:this.chartRequestDate.day=""}},chartScaleX(){var e={unit:"minute",tooltipFormat:"DD T",text:"Zeit",maxTicksLimit:24};switch(this.chartRange){case"month":e={unit:"day",tooltipFormat:"DD",text:"Tag",maxTicksLimit:31};break;case"year":e={unit:"month",tooltipFormat:"LLLL yyyy",text:"Monat",maxTicksLimit:12};break}return e},commandData(){var e={date:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day,day:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day};switch(this.chartRange){case"month":e={date:this.chartRequestDate.year+this.chartRequestDate.month,month:this.chartRequestDate.year+this.chartRequestDate.month};break;case"year":e={date:this.chartRequestDate.year,year:this.chartRequestDate.year};break}return e},baseTopic(){var e="openWB/log/";switch(this.chartRange){case"day":e=e+"daily/";break;case"month":e=e+"monthly/";break;case"year":e=e+"yearly/";break}return e},chartDataRead(){return this.chartDataObject!=null},chartDataHasEntries(){return this.chartDataObject?this.chartDataObject.length>0:!1},chartTotals(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"totals")){var e=JSON.parse(JSON.stringify(this.$store.state.mqtt[this.baseTopic+this.commandData.date].totals));return delete e.energy_source,Object.keys(e.counter).forEach(a=>{Object.prototype.hasOwnProperty.call(e.counter[a],"grid")&&delete e.counter[a].grid}),e}},chartDataObject(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]){var e=this.$store.state.mqtt[this.baseTopic+this.commandData.date];Object.prototype.hasOwnProperty.call(e,"entries")&&(e=e.entries);var a=JSON.parse(JSON.stringify(e)).map(r=>(r.timestamp=r.timestamp*1e3,r));return a}},chartData(){if(this.chartDataObject){var e=["pv","counter","bat","cp","sh","ev","hc"];const a=this.chartDataObject[this.chartDataObject.length-1];return a&&e.forEach(r=>{Object.prototype.hasOwnProperty.call(a,r)&&Object.entries(a[r]).forEach(([n,i])=>{Object.keys(i).forEach(t=>{this.initDataset(r,n,t)})})}),this.chartDatasets}}},methods:{handleChartClick(e){if(this.chartRange=="day")return;const a=this.$refs.myChart.chart;if(!a)return;const r=Q(a,e);if(!r.length)return;const{datasetIndex:n,index:i}=r[0],t=this.chartData.datasets[n].data[i].date;var l="",b="";switch(this.chartRange){case"month":l=t.substring(0,4)+"-"+t.substring(4,6)+"-"+t.substring(6),b="day";break;case"year":l=t.substring(0,4)+"-"+t.substring(4,6),b="month";break}this.blockChartInit=!0,this.chartDate=l,this.chartRange=b},getCardSubtype(e){switch(e){case"bat":return"warning";case"counter":return"danger";case"cp":return"primary";case"pv":return"success";case"sh":return"pink";default:return"secondary"}},getCardIcon(e){switch(e){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"pv":return["fas","solar-panel"];case"sh":return["fas","house-signal"];case"hc":return["fas","house"];default:return}},getDatasetHidden(e,a){return console.debug("getDatasetHidden",e,a),!1},getTotalsLabel(e,a=void 0,r=void 0){var n="*test*";if(!a&&!r){switch(e){case"bat":return"Speicher";case"counter":return"Zähler";case"pv":return"Wechselrichter";case"cp":return"Ladepunkte";case"sh":return"SmartHome-Geräte";case"hc":return"Hausverbrauch";default:console.warn("unknown group key:",e)}return"*"+e+"*"}if(a&&!r){if(a=="all")return"Summe";if(Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]}if(a&&r){switch(e){case"bat":case"cp":switch(r){case"imported":case"energy_imported":return"Ladung";case"exported":case"energy_exported":return"Entladung";case"energy_imported_grid":return"Ladung (Netz-Anteil)";case"energy_imported_pv":return"Ladung (PV-Anteil)";case"energy_imported_bat":return"Ladung (Speicher-Anteil)";case"energy_imported_cp":return"Ladung (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,r)}break;case"counter":switch(r){case"imported":case"energy_imported":return"Bezug/Verbrauch";case"exported":case"energy_exported":return"Einspeisung/Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"pv":switch(r){case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"sh":switch(r){case"imported":case"energy_imported":return"Verbrauch";case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"hc":switch(r){case"imported":case"energy_imported":return"Verbrauch";case"energy_imported_grid":return"Verbrauch (Netz-Anteil)";case"energy_imported_pv":return"Verbrauch (PV-Anteil)";case"energy_imported_bat":return"Verbrauch (Speicher-Anteil)";case"energy_imported_cp":return"Verbrauch (Ladepunkt-Anteil)";default:console.warn("unknown measurement key:",e,r)}break;default:console.warn("unknown group key:",e)}return"*"+e+"+"+a+"+"+r+"*"}return n},getDatasetLabel(e,a,r,n){var i=["*"+n],t=[];if(a=="all")switch(e!=="hc"&&t.push("Summe"),e){case"pv":i=["PV"];break;case"bat":switch(i=["Speicher"],r){case"soc":i.push("SoC");break}break;case"cp":i=["Ladepunkte"];break;case"hc":i=["Hausverbrauch"]}else Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names")&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date].names,a)&&(i=[this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]]);switch(e){case"bat":case"ev":case"cp":switch(r){case"soc":t.push("SoC");break;case"energy_imported":t.push("Ladung");break;case"energy_exported":t.push("Entladung");break;case"energy_imported_grid":t.push("Netz-Anteil");break;case"energy_imported_pv":t.push("PV-Anteil");break;case"energy_imported_bat":t.push("Speicher-Anteil");break;case"energy_imported_cp":t.push("Ladepunkt-Anteil");break}break;case"counter":switch(r){case"energy_imported":t.push("Bezug/Verbrauch");break;case"energy_exported":t.push("Einspeisung/Erzeugung");break}break;case"sh":switch(r){case"energy_imported":t.push("Verbrauch");break;case"energy_exported":t.push("Erzeugung");break}break;case"hc":switch(r){case"energy_imported_grid":t.push("Netz-Anteil");break;case"energy_imported_pv":t.push("PV-Anteil");break;case"energy_imported_bat":t.push("Speicher-Anteil");break;case"energy_imported_cp":t.push("Ladepunkt-Anteil");break}break}return`${i.join(" ")}${t.length?" ("+t.join(", ")+")":""}`},getDatasetIndex(e){let a=this.chartDatasets.datasets.findIndex(r=>r.jsonKey==e);if(a!=-1)return a},addDataset(e,a,r,n){var i=e+"-"+r;if(this.datasetTemplates[i]){var t=JSON.parse(JSON.stringify(this.datasetTemplates[i]));return t.parsing.yAxisKey=n,t.jsonKey=n,t.data=this.chartDataObject,t.label=this.getDatasetLabel(e,a,r,n),t.labelSuffix!=null&&(t.label=t.label+t.labelSuffix),a=="all"&&(["grid","pv","bat","cp"].includes(r.split("_").slice(-1)[0])||(t.hidden=!1,delete t.stack)),this.chartDatasets.datasets.push(t)-1}else console.warn("no matching template found for: "+n+" with template: "+i)},initDataset(e,a,r){var n=[];this.chartRange=="day"?n={counter:["power_average"],pv:["power_exported"],bat:["power_average","soc"],cp:["power_average"],sh:["power_average"],ev:["soc"],hc:["power_imported"]}:n={counter:["energy_imported","energy_exported"],pv:["energy_exported"],bat:["energy_imported","energy_exported"],cp:["energy_imported","energy_imported_grid","energy_imported_pv","energy_imported_bat"],sh:["energy_imported","energy_exported"],ev:[],hc:["energy_imported","energy_imported_grid","energy_imported_pv","energy_imported_bat"]};const i=e+"."+a+"."+r;if(n[e].includes(r)){var t=this.getDatasetIndex(i);const l=this.getDatasetHidden(e,a);t==null&&!l&&(t=this.addDataset(e,a,r,i)),t!=null&&l&&this.chartDatasets.datasets.splice(t,1)}else console.debug("skipping dataset:",i)},setupScaleX(){this.chartOptions.scales.x.time.unit=this.chartScaleX.unit,this.chartOptions.scales.x.time.tooltipFormat=this.chartScaleX.tooltipFormat,this.chartOptions.scales.x.title.text=this.chartScaleX.text,this.chartOptions.scales.x.ticks.maxTicksLimit=this.chartScaleX.maxTicksLimit},requestChart(){if(document.forms.chartForm.reportValidity()){this.setupScaleX(),this.chartDatasets.datasets=[];var a="";switch(this.chartRange){case"day":a="getDailyLog";break;case"month":a="getMonthlyLog";break;case"year":a="getYearlyLog";break}this.$emit("sendCommand",{command:a,data:this.commandData})}else{console.warn("form invalid");return}},clearChartData(){this.getWildcardIndexList(this.baseTopic+"+").forEach(e=>{this.$store.commit("removeTopic",`${this.baseTopic}${e}`)})},updateChart(){this.clearChartData(),this.requestChart()},init(){const e=new Date;this.currentDate=String(e.getFullYear()),this.chartRange!="year"&&(this.currentDate=this.currentDate+"-"+String(e.getMonth()+1).padStart(2,"0")),this.chartRange=="day"&&(this.currentDate=this.currentDate+"-"+String(e.getDate()).padStart(2,"0")),this.blockChartInit?this.blockChartInit=!1:this.initialDate==null||this.initialDate==""?this.chartDate=this.currentDate:this.chartDate=this.initialDate,this.updateChart()}},watch:{chartRange(){this.init()}},mounted(){this.init()}},ae={class:"chart"},re={name:"chartForm"},ie={key:1},ne={key:1},se={class:"openwb-chart"};function oe(e,a,r,n,i,t){const l=h("openwb-base-select-input"),b=h("openwb-base-text-input"),y=h("openwb-base-card"),_=h("openwb-base-alert"),R=h("chartjs-line"),S=h("font-awesome-icon"),w=h("openwb-base-heading");return s(),o("div",ae,[v("form",re,[c(y,{title:"Filter",collapsible:!0,collapsed:!1},{default:d(()=>[c(l,{title:"Zeitraum",modelValue:i.chartRange,"onUpdate:modelValue":a[0]||(a[0]=u=>i.chartRange=u),options:[{value:"day",text:"Tag"},{value:"month",text:"Monat"},{value:"year",text:"Jahr"}]},null,8,["modelValue"]),c(b,{title:t.dateInput.title,subtype:t.dateInput.type,min:t.dateInput.min,max:i.currentDate,showQuickButtons:!0,modelValue:t.chartDate,"onUpdate:modelValue":[a[1]||(a[1]=u=>t.chartDate=u),a[2]||(a[2]=u=>t.updateChart())]},null,8,["title","subtype","min","max","modelValue"])]),_:1}),t.chartDataRead?(s(),o("div",ie,[t.chartDataHasEntries?(s(),o("div",ne,[c(y,{title:"Diagramm",collapsible:!0,collapsed:!1},{default:d(()=>[v("div",se,[c(R,{ref:"myChart",data:t.chartData,options:i.chartOptions,onClick:t.handleChartClick},null,8,["data","options","onClick"])])]),_:1}),c(y,{title:"Summen",collapsible:!0,collapsed:!0},{default:d(()=>[(s(!0),o(k,null,x(t.chartTotals,(u,p)=>(s(),o("div",{key:p},[Object.keys(u).length>0?(s(),g(y,{key:0,collapsible:!0,collapsed:!0,subtype:t.getCardSubtype(p)},{header:d(()=>[c(S,{"fixed-width":"",icon:t.getCardIcon(p)},null,8,["icon"]),m(" "+A(t.getTotalsLabel(p)),1)]),default:d(()=>[(s(!0),o(k,null,x(u,(I,f)=>(s(),o("div",{key:f},[p!=="hc"?(s(),g(w,{key:0},{default:d(()=>[m(A(t.getTotalsLabel(p,f)),1)]),_:2},1024)):C("",!0),(s(!0),o(k,null,x(I,(W,D)=>(s(),o("div",{key:D},[c(b,{title:t.getTotalsLabel(p,f,D),readonly:"",class:"text-right",unit:"kWh","model-value":e.formatNumber(W/1e3,3)},null,8,["title","model-value"])]))),128))]))),128))]),_:2},1032,["subtype"])):C("",!0)]))),128))]),_:1})])):(s(),g(_,{key:0,subtype:"info"},{default:d(()=>[m(" Es konnten keine Daten für diesen Zeitraum gefunden werden. ")]),_:1}))])):(s(),g(_,{key:0,subtype:"info"},{default:d(()=>[m(" Es wurden noch keine Daten abgerufen. ")]),_:1}))])])}const me=ee(te,[["render",oe],["__scopeId","data-v-e00a7cd5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Chart.vue"]]);export{me as default}; diff --git a/web/settings/assets/CloudConfig-a56b87bb.js b/web/settings/assets/CloudConfig-3268436a.js similarity index 99% rename from web/settings/assets/CloudConfig-a56b87bb.js rename to web/settings/assets/CloudConfig-3268436a.js index de4d381e4a..e527a8c74b 100644 --- a/web/settings/assets/CloudConfig-a56b87bb.js +++ b/web/settings/assets/CloudConfig-3268436a.js @@ -1 +1 @@ -import{l as S,a4 as q,F as P}from"./vendor-fortawesome-9fdc06a9.js";import{C as z}from"./index-b8f06cb8.js";import{_ as Z,q as l,k as u,l as m,B as r,M as t,u as c,z as g,A as i,a3 as v,I,x as a,p as k}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";S.add(q);const M={name:"OpenwbCloudConfig",mixins:[z],emits:["sendCommand"],components:{FontAwesomeIcon:P},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged","openWB/system/mqtt/bridge/+","openWB/system/mqtt/valid_partner_ids"],enableNewCloudButton:!0,newCloudData:{email:"",username:"",partner:!1},enableCloudConnectButton:!0,connectCloudData:{username:"",password:"",partner:!1},enableRemoveCloudButton:!0,showCloudRemoveModal:!1}},computed:{cloudBridge:{get(){let o=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[e,y]of Object.entries(o))y.remote.is_openwb_cloud||delete o[e];return o}},cloudBridgeKey:{get(){for(const[o,e]of Object.entries(this.cloudBridge))if(e.remote.is_openwb_cloud)return o}},cloudSettings:{get(){return{username:this.cloudBridge[this.cloudBridgeKey].remote.username,password:this.cloudBridge[this.cloudBridgeKey].remote.password,partner:this.cloudBridge[this.cloudBridgeKey].access?this.cloudBridge[this.cloudBridgeKey].access.partner:!1}}}},methods:{getMqttBridgeIndex(o){return parseInt(o.match(/(?:\/)(\d+)$/)[1])},createCloud(){document.forms.cloudConfigCreateForm.reportValidity()&&(this.$emit("save"),this.$emit("sendCommand",{command:"initCloud",data:this.newCloudData}),this.enableNewCloudButton=!1)},connectCloud(){document.forms.cloudConfigConnectForm.reportValidity()&&(this.$emit("save"),this.$emit("sendCommand",{command:"connectCloud",data:this.connectCloudData}),this.enableCloudConnectButton=!1)},removeCloudModal(o){o.stopPropagation(),this.showCloudRemoveModal=!0},removeCloud(o){this.showCloudRemoveModal=!1,o=="confirm"&&(console.info("request removal of cloud"),this.updateState("openWB/system/mqtt/valid_partner_ids",[]),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:this.getMqttBridgeIndex(this.cloudBridgeKey)}}),this.enableCloudConnectButton=!0)}}},x={class:"cloud-config"},K={key:1},U={key:1,name:"cloudConfigCreateForm"},A=c("a",{href:"mailto:support@openwb.de",subject:"Cloud Zugangsdaten"}," support@openwb.de ",-1),N={key:0},R={key:1},F={class:"row justify-content-center"},j={key:2,name:"cloudConfigConnectForm"},E={key:0},G={key:1},T={class:"row justify-content-center"},L={key:3,name:"cloudConfigured"},O=c("span",null,[a(" Mit diesen Zugangsdaten können Sie sich in der "),c("a",{href:"https://remote.openwb.de/",target:"_blank",rel:"noopener noreferrer"}," openWB Cloud "),a(" anmelden. ")],-1),H=c("hr",null,null,-1),J={class:"row justify-content-center"};function Q(o,e,y,X,s,d){const D=l("openwb-base-modal-dialog"),h=l("router-link"),p=l("openwb-base-alert"),b=l("openwb-base-text-input"),w=l("openwb-base-button-group-input"),f=l("font-awesome-icon"),B=l("openwb-base-array-input"),C=l("openwb-base-click-button"),_=l("openwb-base-card"),W=l("openwb-base-heading"),V=l("openwb-base-submit-buttons");return u(),m(I,null,[r(D,{show:s.showCloudRemoveModal,title:"Cloud Zugang löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=n=>d.removeCloud(n))},{default:t(()=>[a(" Wollen Sie den vorhandenen Cloud Zugang wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ")]),_:1},8,["show"]),c("div",x,[o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(u(),g(p,{key:0,subtype:"danger"},{default:t(()=>[a(" Sie müssen der "),r(h,{to:"/System/LegalSettings"},{default:t(()=>[a(" Datenschutzerklärung ")]),_:1}),a(" zustimmen, um die openWB Cloud nutzen zu können. ")]),_:1})):(u(),m("div",K,[r(p,{subtype:"success"},{default:t(()=>[a(" Sie haben der "),r(h,{to:"/System/LegalSettings"},{default:t(()=>[a(" Datenschutzerklärung ")]),_:1}),a(" zugestimmt und können die openWB Cloud nutzen. ")]),_:1}),s.enableRemoveCloudButton?i("",!0):(u(),g(p,{key:0,subtype:"warning"},{default:t(()=>[a(" Der Zugang wurde entfernt. Bitte starten Sie die openWB neu, um die Änderungen anzuwenden! ")]),_:1})),d.cloudBridgeKey?i("",!0):(u(),m("form",U,[r(_,{title:"Neuen Zugang erstellen"},v({default:t(()=>[r(p,{subtype:"warning"},{default:t(()=>[a(" Derzeit können keine neuen Zugänge für die openWB Cloud angelegt werden. Bitte nutzen Sie die in/an der openWB notierten Zugangsdaten im unteren Bereich dieser Seite. Wenn bei einer gekauften openWB keine Zugangsdaten vorhanden sind, schreiben Sie bitte eine Mail unter Angabe der Bestell- und/oder Seriennummer an "),A,a(" . ")]),_:1}),o.$store.state.mqtt["openWB/general/extern"]===!0?(u(),m("div",N,[r(p,{subtype:"info"},{default:t(()=>[a(' Diese openWB befindet sich im Steuerungsmodus "secondary". Bitte richten Sie die openWB Cloud auf der übergeordneten primary openWB ein. ')]),_:1})])):(u(),m("div",R,[r(b,{title:"Benutzername",required:"",subtype:"user",pattern:"[a-zA-Z]+",modelValue:s.newCloudData.username,"onUpdate:modelValue":e[1]||(e[1]=n=>s.newCloudData.username=n),disabled:""},null,8,["modelValue"]),r(b,{title:"E-Mail",required:"",subtype:"email",modelValue:s.newCloudData.email,"onUpdate:modelValue":e[2]||(e[2]=n=>s.newCloudData.email=n),disabled:""},null,8,["modelValue"]),r(w,{disabled:"",title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],modelValue:s.newCloudData.partner,"onUpdate:modelValue":e[3]||(e[3]=n=>s.newCloudData.partner=n)},{help:t(()=>[a(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["modelValue"]),s.newCloudData.partner?(u(),g(B,{key:0,title:"Gültige Partner-IDs",noElementsMessage:"Keine Partner-ID zugeordnet.","model-value":o.$store.state.mqtt["openWB/system/mqtt/valid_partner_ids"],"onUpdate:modelValue":e[4]||(e[4]=n=>o.updateState("openWB/system/mqtt/valid_partner_ids",n))},{"input-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),"element-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),help:t(()=>[a(" Die Partner-ID erhältst Du von Deinem Installateur. Ist hier keine Partner-ID eingetragen, dann kann auch niemand - trotz aktiviertem Zugang für Partner - über das Partner-Portal auf diese openWB zugreifen! ")]),_:1},8,["model-value"])):i("",!0)]))]),_:2},[o.$store.state.mqtt["openWB/general/extern"]===!1&&o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[c("div",F,[r(C,{class:"col-4 btn-outline-success",disabled:""},{default:t(()=>[a(" Zugang erstellen ")]),_:1})])]),key:"0"}:void 0]),1024),s.enableNewCloudButton?i("",!0):(u(),g(p,{key:0,subtype:"info",class:"mb-2"},{default:t(()=>[a(" Der neue Zugang wird eingerichtet. Dieser Vorgang kann bis zu einer Minute dauern. Bitte warten. ")]),_:1}))])),d.cloudBridgeKey?i("",!0):(u(),m("form",j,[r(_,{title:"Vorhandenen Zugang einrichten"},v({default:t(()=>[o.$store.state.mqtt["openWB/general/extern"]===!0?(u(),m("div",E,[r(p,{subtype:"info"},{default:t(()=>[a(' Diese openWB befindet sich im Steuerungsmodus "secondary". Bitte richten Sie die openWB Cloud auf der übergeordneten primary openWB ein. ')]),_:1})])):(u(),m("div",G,[r(b,{title:"Benutzername",required:"",subtype:"user",modelValue:s.connectCloudData.username,"onUpdate:modelValue":e[5]||(e[5]=n=>s.connectCloudData.username=n)},null,8,["modelValue"]),r(b,{title:"Passwort",required:"",subtype:"password",modelValue:s.connectCloudData.password,"onUpdate:modelValue":e[6]||(e[6]=n=>s.connectCloudData.password=n)},null,8,["modelValue"]),r(w,{title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],modelValue:s.connectCloudData.partner,"onUpdate:modelValue":e[7]||(e[7]=n=>s.connectCloudData.partner=n)},{help:t(()=>[a(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["modelValue"]),s.connectCloudData.partner?(u(),g(B,{key:0,title:"Gültige Partner-IDs",noElementsMessage:"Keine Partner-ID zugeordnet.","model-value":o.$store.state.mqtt["openWB/system/mqtt/valid_partner_ids"],"onUpdate:modelValue":e[8]||(e[8]=n=>o.updateState("openWB/system/mqtt/valid_partner_ids",n))},{"input-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),"element-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),help:t(()=>[a(" Die Partner-ID erhältst Du von Deinem Installateur. Ist hier keine Partner-ID eingetragen, dann kann auch niemand - trotz aktiviertem Zugang für Partner - über das Partner-Portal auf diese openWB zugreifen! ")]),_:1},8,["model-value"])):i("",!0)]))]),_:2},[o.$store.state.mqtt["openWB/general/extern"]===!1&&o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[c("div",T,[r(C,{class:k(["col-4",s.enableCloudConnectButton?"btn-success":"btn-outline-success"]),disabled:!s.enableCloudConnectButton,onButtonClicked:d.connectCloud},{default:t(()=>[a(" Mit Cloud verbinden ")]),_:1},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024)])),d.cloudBridgeKey?(u(),m("form",L,[!s.enableCloudConnectButton||!s.enableNewCloudButton?(u(),g(p,{key:0,subtype:"warning"},{default:t(()=>[a(" Der Zugang wurde eingerichtet. Bitte starten Sie die openWB neu, um die Änderungen anzuwenden! ")]),_:1})):i("",!0),r(_,{title:"Vorhandener Cloud Zugang"},{footer:t(()=>[c("div",J,[r(C,{class:k(["col-4",s.enableRemoveCloudButton?"btn-danger":"btn-outline-danger"]),disabled:!s.enableRemoveCloudButton,onButtonClicked:e[13]||(e[13]=n=>d.removeCloudModal(n))},{default:t(()=>[a(" Zugang löschen ")]),_:1},8,["class","disabled"])])]),default:t(()=>[r(W,null,{default:t(()=>[O]),_:1}),r(b,{title:"Benutzername",required:"",subtype:"user",modelValue:d.cloudSettings.username,"onUpdate:modelValue":e[9]||(e[9]=n=>d.cloudSettings.username=n),disabled:""},null,8,["modelValue"]),r(b,{title:"Passwort",required:"",subtype:"password",modelValue:d.cloudSettings.password,"onUpdate:modelValue":e[10]||(e[10]=n=>d.cloudSettings.password=n),disabled:""},null,8,["modelValue"]),H,r(w,{title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":d.cloudSettings.partner,"onUpdate:modelValue":e[11]||(e[11]=n=>o.updateState(d.cloudBridgeKey,n,"access.partner"))},{help:t(()=>[a(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["model-value"]),d.cloudSettings.partner?(u(),g(B,{key:0,title:"Gültige Partner-IDs",noElementsMessage:"Keine Partner-ID zugeordnet.","model-value":o.$store.state.mqtt["openWB/system/mqtt/valid_partner_ids"],"onUpdate:modelValue":e[12]||(e[12]=n=>o.updateState("openWB/system/mqtt/valid_partner_ids",n))},{"input-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),"element-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),help:t(()=>[a(" Die Partner-ID erhältst Du von Deinem Installateur. Ist hier keine Partner-ID eingetragen, dann kann auch niemand - trotz aktiviertem Zugang für Partner - über das Partner-Portal auf diese openWB zugreifen! ")]),_:1},8,["model-value"])):i("",!0)]),_:1})])):i("",!0),d.cloudBridgeKey?(u(),g(V,{key:4,formName:"cloudConfigured",onSave:e[14]||(e[14]=n=>o.$emit("save")),onReset:e[15]||(e[15]=n=>o.$emit("reset")),onDefaults:e[16]||(e[16]=n=>o.$emit("defaults"))})):i("",!0)]))])],64)}const ae=Z(M,[["render",Q],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/CloudConfig.vue"]]);export{ae as default}; +import{l as S,a4 as q,F as P}from"./vendor-fortawesome-9fdc06a9.js";import{C as z}from"./index-720fb9ac.js";import{_ as Z,q as l,k as u,l as m,B as r,M as t,u as c,z as g,A as i,a3 as v,I,x as a,p as k}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";S.add(q);const M={name:"OpenwbCloudConfig",mixins:[z],emits:["sendCommand"],components:{FontAwesomeIcon:P},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged","openWB/system/mqtt/bridge/+","openWB/system/mqtt/valid_partner_ids"],enableNewCloudButton:!0,newCloudData:{email:"",username:"",partner:!1},enableCloudConnectButton:!0,connectCloudData:{username:"",password:"",partner:!1},enableRemoveCloudButton:!0,showCloudRemoveModal:!1}},computed:{cloudBridge:{get(){let o=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[e,y]of Object.entries(o))y.remote.is_openwb_cloud||delete o[e];return o}},cloudBridgeKey:{get(){for(const[o,e]of Object.entries(this.cloudBridge))if(e.remote.is_openwb_cloud)return o}},cloudSettings:{get(){return{username:this.cloudBridge[this.cloudBridgeKey].remote.username,password:this.cloudBridge[this.cloudBridgeKey].remote.password,partner:this.cloudBridge[this.cloudBridgeKey].access?this.cloudBridge[this.cloudBridgeKey].access.partner:!1}}}},methods:{getMqttBridgeIndex(o){return parseInt(o.match(/(?:\/)(\d+)$/)[1])},createCloud(){document.forms.cloudConfigCreateForm.reportValidity()&&(this.$emit("save"),this.$emit("sendCommand",{command:"initCloud",data:this.newCloudData}),this.enableNewCloudButton=!1)},connectCloud(){document.forms.cloudConfigConnectForm.reportValidity()&&(this.$emit("save"),this.$emit("sendCommand",{command:"connectCloud",data:this.connectCloudData}),this.enableCloudConnectButton=!1)},removeCloudModal(o){o.stopPropagation(),this.showCloudRemoveModal=!0},removeCloud(o){this.showCloudRemoveModal=!1,o=="confirm"&&(console.info("request removal of cloud"),this.updateState("openWB/system/mqtt/valid_partner_ids",[]),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:this.getMqttBridgeIndex(this.cloudBridgeKey)}}),this.enableCloudConnectButton=!0)}}},x={class:"cloud-config"},K={key:1},U={key:1,name:"cloudConfigCreateForm"},A=c("a",{href:"mailto:support@openwb.de",subject:"Cloud Zugangsdaten"}," support@openwb.de ",-1),N={key:0},R={key:1},F={class:"row justify-content-center"},j={key:2,name:"cloudConfigConnectForm"},E={key:0},G={key:1},T={class:"row justify-content-center"},L={key:3,name:"cloudConfigured"},O=c("span",null,[a(" Mit diesen Zugangsdaten können Sie sich in der "),c("a",{href:"https://remote.openwb.de/",target:"_blank",rel:"noopener noreferrer"}," openWB Cloud "),a(" anmelden. ")],-1),H=c("hr",null,null,-1),J={class:"row justify-content-center"};function Q(o,e,y,X,s,d){const D=l("openwb-base-modal-dialog"),h=l("router-link"),p=l("openwb-base-alert"),b=l("openwb-base-text-input"),w=l("openwb-base-button-group-input"),f=l("font-awesome-icon"),B=l("openwb-base-array-input"),C=l("openwb-base-click-button"),_=l("openwb-base-card"),W=l("openwb-base-heading"),V=l("openwb-base-submit-buttons");return u(),m(I,null,[r(D,{show:s.showCloudRemoveModal,title:"Cloud Zugang löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=n=>d.removeCloud(n))},{default:t(()=>[a(" Wollen Sie den vorhandenen Cloud Zugang wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ")]),_:1},8,["show"]),c("div",x,[o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(u(),g(p,{key:0,subtype:"danger"},{default:t(()=>[a(" Sie müssen der "),r(h,{to:"/System/LegalSettings"},{default:t(()=>[a(" Datenschutzerklärung ")]),_:1}),a(" zustimmen, um die openWB Cloud nutzen zu können. ")]),_:1})):(u(),m("div",K,[r(p,{subtype:"success"},{default:t(()=>[a(" Sie haben der "),r(h,{to:"/System/LegalSettings"},{default:t(()=>[a(" Datenschutzerklärung ")]),_:1}),a(" zugestimmt und können die openWB Cloud nutzen. ")]),_:1}),s.enableRemoveCloudButton?i("",!0):(u(),g(p,{key:0,subtype:"warning"},{default:t(()=>[a(" Der Zugang wurde entfernt. Bitte starten Sie die openWB neu, um die Änderungen anzuwenden! ")]),_:1})),d.cloudBridgeKey?i("",!0):(u(),m("form",U,[r(_,{title:"Neuen Zugang erstellen"},v({default:t(()=>[r(p,{subtype:"warning"},{default:t(()=>[a(" Derzeit können keine neuen Zugänge für die openWB Cloud angelegt werden. Bitte nutzen Sie die in/an der openWB notierten Zugangsdaten im unteren Bereich dieser Seite. Wenn bei einer gekauften openWB keine Zugangsdaten vorhanden sind, schreiben Sie bitte eine Mail unter Angabe der Bestell- und/oder Seriennummer an "),A,a(" . ")]),_:1}),o.$store.state.mqtt["openWB/general/extern"]===!0?(u(),m("div",N,[r(p,{subtype:"info"},{default:t(()=>[a(' Diese openWB befindet sich im Steuerungsmodus "secondary". Bitte richten Sie die openWB Cloud auf der übergeordneten primary openWB ein. ')]),_:1})])):(u(),m("div",R,[r(b,{title:"Benutzername",required:"",subtype:"user",pattern:"[a-zA-Z]+",modelValue:s.newCloudData.username,"onUpdate:modelValue":e[1]||(e[1]=n=>s.newCloudData.username=n),disabled:""},null,8,["modelValue"]),r(b,{title:"E-Mail",required:"",subtype:"email",modelValue:s.newCloudData.email,"onUpdate:modelValue":e[2]||(e[2]=n=>s.newCloudData.email=n),disabled:""},null,8,["modelValue"]),r(w,{disabled:"",title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],modelValue:s.newCloudData.partner,"onUpdate:modelValue":e[3]||(e[3]=n=>s.newCloudData.partner=n)},{help:t(()=>[a(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["modelValue"]),s.newCloudData.partner?(u(),g(B,{key:0,title:"Gültige Partner-IDs",noElementsMessage:"Keine Partner-ID zugeordnet.","model-value":o.$store.state.mqtt["openWB/system/mqtt/valid_partner_ids"],"onUpdate:modelValue":e[4]||(e[4]=n=>o.updateState("openWB/system/mqtt/valid_partner_ids",n))},{"input-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),"element-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),help:t(()=>[a(" Die Partner-ID erhältst Du von Deinem Installateur. Ist hier keine Partner-ID eingetragen, dann kann auch niemand - trotz aktiviertem Zugang für Partner - über das Partner-Portal auf diese openWB zugreifen! ")]),_:1},8,["model-value"])):i("",!0)]))]),_:2},[o.$store.state.mqtt["openWB/general/extern"]===!1&&o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[c("div",F,[r(C,{class:"col-4 btn-outline-success",disabled:""},{default:t(()=>[a(" Zugang erstellen ")]),_:1})])]),key:"0"}:void 0]),1024),s.enableNewCloudButton?i("",!0):(u(),g(p,{key:0,subtype:"info",class:"mb-2"},{default:t(()=>[a(" Der neue Zugang wird eingerichtet. Dieser Vorgang kann bis zu einer Minute dauern. Bitte warten. ")]),_:1}))])),d.cloudBridgeKey?i("",!0):(u(),m("form",j,[r(_,{title:"Vorhandenen Zugang einrichten"},v({default:t(()=>[o.$store.state.mqtt["openWB/general/extern"]===!0?(u(),m("div",E,[r(p,{subtype:"info"},{default:t(()=>[a(' Diese openWB befindet sich im Steuerungsmodus "secondary". Bitte richten Sie die openWB Cloud auf der übergeordneten primary openWB ein. ')]),_:1})])):(u(),m("div",G,[r(b,{title:"Benutzername",required:"",subtype:"user",modelValue:s.connectCloudData.username,"onUpdate:modelValue":e[5]||(e[5]=n=>s.connectCloudData.username=n)},null,8,["modelValue"]),r(b,{title:"Passwort",required:"",subtype:"password",modelValue:s.connectCloudData.password,"onUpdate:modelValue":e[6]||(e[6]=n=>s.connectCloudData.password=n)},null,8,["modelValue"]),r(w,{title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],modelValue:s.connectCloudData.partner,"onUpdate:modelValue":e[7]||(e[7]=n=>s.connectCloudData.partner=n)},{help:t(()=>[a(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["modelValue"]),s.connectCloudData.partner?(u(),g(B,{key:0,title:"Gültige Partner-IDs",noElementsMessage:"Keine Partner-ID zugeordnet.","model-value":o.$store.state.mqtt["openWB/system/mqtt/valid_partner_ids"],"onUpdate:modelValue":e[8]||(e[8]=n=>o.updateState("openWB/system/mqtt/valid_partner_ids",n))},{"input-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),"element-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),help:t(()=>[a(" Die Partner-ID erhältst Du von Deinem Installateur. Ist hier keine Partner-ID eingetragen, dann kann auch niemand - trotz aktiviertem Zugang für Partner - über das Partner-Portal auf diese openWB zugreifen! ")]),_:1},8,["model-value"])):i("",!0)]))]),_:2},[o.$store.state.mqtt["openWB/general/extern"]===!1&&o.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[c("div",T,[r(C,{class:k(["col-4",s.enableCloudConnectButton?"btn-success":"btn-outline-success"]),disabled:!s.enableCloudConnectButton,onButtonClicked:d.connectCloud},{default:t(()=>[a(" Mit Cloud verbinden ")]),_:1},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024)])),d.cloudBridgeKey?(u(),m("form",L,[!s.enableCloudConnectButton||!s.enableNewCloudButton?(u(),g(p,{key:0,subtype:"warning"},{default:t(()=>[a(" Der Zugang wurde eingerichtet. Bitte starten Sie die openWB neu, um die Änderungen anzuwenden! ")]),_:1})):i("",!0),r(_,{title:"Vorhandener Cloud Zugang"},{footer:t(()=>[c("div",J,[r(C,{class:k(["col-4",s.enableRemoveCloudButton?"btn-danger":"btn-outline-danger"]),disabled:!s.enableRemoveCloudButton,onButtonClicked:e[13]||(e[13]=n=>d.removeCloudModal(n))},{default:t(()=>[a(" Zugang löschen ")]),_:1},8,["class","disabled"])])]),default:t(()=>[r(W,null,{default:t(()=>[O]),_:1}),r(b,{title:"Benutzername",required:"",subtype:"user",modelValue:d.cloudSettings.username,"onUpdate:modelValue":e[9]||(e[9]=n=>d.cloudSettings.username=n),disabled:""},null,8,["modelValue"]),r(b,{title:"Passwort",required:"",subtype:"password",modelValue:d.cloudSettings.password,"onUpdate:modelValue":e[10]||(e[10]=n=>d.cloudSettings.password=n),disabled:""},null,8,["modelValue"]),H,r(w,{title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":d.cloudSettings.partner,"onUpdate:modelValue":e[11]||(e[11]=n=>o.updateState(d.cloudBridgeKey,n,"access.partner"))},{help:t(()=>[a(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["model-value"]),d.cloudSettings.partner?(u(),g(B,{key:0,title:"Gültige Partner-IDs",noElementsMessage:"Keine Partner-ID zugeordnet.","model-value":o.$store.state.mqtt["openWB/system/mqtt/valid_partner_ids"],"onUpdate:modelValue":e[12]||(e[12]=n=>o.updateState("openWB/system/mqtt/valid_partner_ids",n))},{"input-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),"element-prefix":t(()=>[r(f,{"fixed-width":"",icon:["fas","user-gear"]})]),help:t(()=>[a(" Die Partner-ID erhältst Du von Deinem Installateur. Ist hier keine Partner-ID eingetragen, dann kann auch niemand - trotz aktiviertem Zugang für Partner - über das Partner-Portal auf diese openWB zugreifen! ")]),_:1},8,["model-value"])):i("",!0)]),_:1})])):i("",!0),d.cloudBridgeKey?(u(),g(V,{key:4,formName:"cloudConfigured",onSave:e[14]||(e[14]=n=>o.$emit("save")),onReset:e[15]||(e[15]=n=>o.$emit("reset")),onDefaults:e[16]||(e[16]=n=>o.$emit("defaults"))})):i("",!0)]))])],64)}const ae=Z(M,[["render",Q],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/CloudConfig.vue"]]);export{ae as default}; diff --git a/web/settings/assets/DataManagement-61982555.js b/web/settings/assets/DataManagement-8e2c3130.js similarity index 99% rename from web/settings/assets/DataManagement-61982555.js rename to web/settings/assets/DataManagement-8e2c3130.js index 490183323d..71fd633d45 100644 --- a/web/settings/assets/DataManagement-61982555.js +++ b/web/settings/assets/DataManagement-8e2c3130.js @@ -1 +1 @@ -import{l as V,a9 as z,aa as A,ab as R,ac as j,ad as H,F as P}from"./vendor-fortawesome-9fdc06a9.js";import{_ as v,C as E}from"./index-b8f06cb8.js";import{_ as N}from"./dynamic-import-helper-be004503.js";import{_ as D,q as c,k as m,l as f,z as S,M as u,x as i,y as g,B as o,u as n,a1 as U,a2 as q,I as B,A as W,p as C,J as F,a3 as I}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const G={name:"BackupCloudConfigFallback",emits:["update:configuration"],props:{backupCloud:{type:Object,required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},J={class:"backup-cloud-fallback"},Z={key:1};function K(t,e,d,b,l,s){const p=c("openwb-base-alert"),r=c("openwb-base-textarea");return m(),f("div",J,[Object.keys(d.backupCloud.configuration).length==0?(m(),S(p,{key:0,subtype:"info"},{default:u(()=>[i(' Die Backup-Cloud "'+g(d.backupCloud.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(m(),f("div",Z,[o(p,{subtype:"warning"},{default:u(()=>[i(' Es wurde keine Konfigurationsseite für die Backup-Cloud "'+g(d.backupCloud.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),o(r,{title:"Konfiguration",subtype:"json","model-value":d.backupCloud.configuration,"onUpdate:modelValue":e[0]||(e[0]=_=>s.updateConfiguration(_,"configuration"))},{help:u(()=>[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),o(p,{subtype:"info"},{default:u(()=>[n("pre",null,g(JSON.stringify(d.backupCloud.configuration,void 0,2)),1)]),_:1})]))])}const $=D(G,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudConfigFallback.vue"]]),Q={name:"OpenwbBackupCloudProxy",emits:["update:configuration","sendCommand"],props:{backupCloud:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading backup cloud: ${this.backupCloud.type}`),U({loader:()=>N(Object.assign({"./nextcloud/backup_cloud.vue":()=>v(()=>import("./backup_cloud-9f2fcfd9.js"),["assets/backup_cloud-9f2fcfd9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./nfs/backup_cloud.vue":()=>v(()=>import("./backup_cloud-bd2a7ae2.js"),["assets/backup_cloud-bd2a7ae2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./onedrive/backup_cloud.vue":()=>v(()=>import("./backup_cloud-879a1fbe.js"),["assets/backup_cloud-879a1fbe.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./samba/backup_cloud.vue":()=>v(()=>import("./backup_cloud-56c2247a.js"),["assets/backup_cloud-56c2247a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.backupCloud.type}/backup_cloud.vue`),errorComponent:$})}},methods:{updateConfiguration(t){this.$emit("update:configuration",t)},sendCommand(t){this.$emit("sendCommand",t)}}};function X(t,e,d,b,l,s){const p=c("openwb-base-heading");return m(),f(B,null,[o(p,null,{default:u(()=>[i(' Einstellungen für Backup-Cloud Modul "'+g(d.backupCloud.name)+'" ',1)]),_:1}),(m(),S(q(s.myComponent),{backupCloud:d.backupCloud,"onUpdate:configuration":e[0]||(e[0]=r=>s.updateConfiguration(r)),onSendCommand:e[1]||(e[1]=r=>s.sendCommand(r))},null,40,["backupCloud"]))],64)}const Y=D(Q,[["render",X],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudProxy.vue"]]);V.add(z,A,R,j,H);const ee={name:"OpenwbSystem",mixins:[E],emits:["sendCommand"],components:{FontAwesomeIcon:P,OpenwbBackupCloudProxy:Y},data(){return{mqttTopicsToSubscribe:["openWB/system/configurable/backup_clouds","openWB/system/backup_cloud/config","openWB/system/backup_cloud/backup_before_update","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name","openWB/LegacySmartHome/config/get/Devices/+/device_configured","openWB/LegacySmartHome/config/get/Devices/+/device_name"],warningAcknowledged:!1,selectedRestoreFile:void 0,restoreUploadDone:!1,selectedDataMigrationFile:void 0,dataMigrationUploadDone:!1,dataMigrationConfig:[{sectionName:"Ladepunkte",sectionComponents:[{key:"cp1",label:"Ladepunkt 1",validTypes:["chargePoint"]},{key:"cp2",label:"Ladepunkt 2",validTypes:["chargePoint"]},{key:"cp3",label:"Ladepunkt 3",validTypes:["chargePoint"]},{key:"cp4",label:"Ladepunkt 4",validTypes:["chargePoint"]},{key:"cp5",label:"Ladepunkt 5",validTypes:["chargePoint"]},{key:"cp6",label:"Ladepunkt 6",validTypes:["chargePoint"]},{key:"cp7",label:"Ladepunkt 7",validTypes:["chargePoint"]},{key:"cp8",label:"Ladepunkt 8",validTypes:["chargePoint"]}]},{sectionName:"Zähler",sectionComponents:[{key:"evu",label:"EVU",validTypes:["counter"]},{key:"consumer1",label:"Verbraucher 1",validTypes:["counter"]},{key:"consumer2",label:"Verbraucher 2",validTypes:["counter"]},{key:"consumer3",label:"Verbraucher 3",validTypes:["counter"]}]},{sectionName:"Wechselrichter",sectionComponents:[{key:"pvAll",label:"Wechselrichter (Summe)",validTypes:["inverter"],help:"Die 1.9er Version von openWB speichert lediglich die Summen-Leistung aller Wechselrichter."}]},{sectionName:"Batteriespeicher",sectionComponents:[{key:"bat",label:"Speicher 1",validTypes:["battery"]}]},{sectionName:"Fahrzeuge",sectionComponents:[{key:"ev1",label:"Fahrzeug von Ladepunkt 1",validTypes:["vehicle"]},{key:"ev2",label:"Fahrzeug von Ladepunkt 2",validTypes:["vehicle"]}]},{sectionName:"SmartHome 2.0",sectionComponents:[{key:"sh1",label:"Gerät 1",validTypes:["smartHome"]},{key:"sh2",label:"Gerät 2",validTypes:["smartHome"]},{key:"sh3",label:"Gerät 3",validTypes:["smartHome"]},{key:"sh4",label:"Gerät 4",validTypes:["smartHome"]},{key:"sh5",label:"Gerät 5",validTypes:["smartHome"]},{key:"sh6",label:"Gerät 6",validTypes:["smartHome"]},{key:"sh7",label:"Gerät 7",validTypes:["smartHome"]},{key:"sh8",label:"Gerät 8",validTypes:["smartHome"]},{key:"sh9",label:"Gerät 9",validTypes:["smartHome"]},{key:"sh10",label:"Gerät 10",validTypes:["smartHome"]}]}],dataMigrationMapping:{cp1:void 0,cp2:void 0,cp3:void 0,cp4:void 0,cp5:void 0,cp6:void 0,cp7:void 0,cp8:void 0,evu:void 0,pvAll:void 0,bat:void 0,consumer1:void 0,consumer2:void 0,consumer3:void 0,sh1:void 0,sh2:void 0,sh3:void 0,sh4:void 0,sh5:void 0,sh6:void 0,sh7:void 0,sh8:void 0,sh9:void 0,sh10:void 0,ev1:void 0,ev2:void 0}}},computed:{backupCloudList(){return this.$store.state.mqtt["openWB/system/configurable/backup_clouds"]},componentConfigurations(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")},chargePointOptions(){let t=this.getWildcardTopics("openWB/chargepoint/+/config");var e=[];for(const d of Object.values(t))e.push({value:d.id,text:d.name});return e},counterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"counter")&&t.push({value:e.id,text:e.name});return t},inverterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"inverter")&&t.push({value:e.id,text:e.name});return t},batteryOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"bat")&&t.push({value:e.id,text:e.name});return t},vehicleOptions(){let t=this.getWildcardTopics("openWB/vehicle/+/name");var e=[];for(const[d,b]of Object.entries(t)){let l=parseInt(d.match(/\/(\d\d?)\//)[1]);e.push({value:l,text:b})}return e},smartHomeOptions(){let t=this.getWildcardTopics("openWB/LegacySmartHome/config/get/Devices/+/device_configured");var e=[];for(const[d,b]of Object.entries(t))if(b==1){let l=parseInt(d.match(/\/(\d\d?)\//)[1]);e.push({value:l,text:this.$store.state.mqtt[`openWB/LegacySmartHome/config/get/Devices/${l}/device_name`]})}return e}},methods:{isComponentType(t,e){return t.split("_").includes(e)},getBackupCloudDefaultConfiguration(t){const e=this.backupCloudList.find(d=>d.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for backup cloud type!",t),{})},sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getMigrationOptions(t){var e=[{value:void 0,text:"-- nicht übernehmen --"}];return t.includes("chargePoint")&&e.push(...this.chargePointOptions),t.includes("counter")&&e.push(...this.counterOptions),t.includes("inverter")&&e.push(...this.inverterOptions),t.includes("battery")&&e.push(...this.batteryOptions),t.includes("vehicle")&&e.push(...this.vehicleOptions),t.includes("smartHome")&&e.push(...this.smartHomeOptions),e},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)},updateSelectedBackupCloud(t){this.updateState("openWB/system/backup_cloud/config",t,"type"),this.updateState("openWB/system/backup_cloud/config",this.getBackupCloudDefaultConfiguration(t))},updateSelectedRestoreFile(t){this.selectedRestoreFile=t.target.files[0]},updateSelectedDataMigrationFile(t){this.selectedDataMigrationFile=t.target.files[0]},uploadFile(t,e,d){return new Promise(b=>{if(e!==void 0){let l=new FormData;l.append("file",e),l.append("target",t),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/uploadFile.php",l,{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{this.$root.postClientMessage(d,"success"),b(!0)}).catch(s=>{if(s.response){console.error(s.response.status,s.response.data);var p="Hochladen der Datei fehlgeschlagen!
"+s.response.status+": "+s.response.data}else s.request?(console.error(s.request),p+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",s.message),p+="Es ist ein unbekannter Fehler aufgetreten.");this.$root.postClientMessage(p,"danger"),b(!1)})}else console.error("no file selected for upload"),b(!1)})},async uploadRestoreFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können die Wiederherstellung jetzt starten.";this.restoreUploadDone=await this.uploadFile("restore",this.selectedRestoreFile,t)},async uploadDataMigrationFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können den Import jetzt starten.";this.dataMigrationUploadDone=await this.uploadFile("migrate",this.selectedDataMigrationFile,t)},restoreBackup(){this.sendSystemCommand("restoreBackup"),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})},dataMigration(){this.sendSystemCommand("dataMigration",this.dataMigrationMapping)},factoryReset(){this.sendSystemCommand("factoryReset",{}),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})}}},te={class:"system"},ne=n("h2",null,"Achtung!",-1),oe=n("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1),se={key:0},ie={name:"backupForm"},ae=n("a",{href:"/openWB/data/backup/",target:"_blank"},"hier",-1),le={class:"row justify-content-center"},ue={class:"col-md-4 d-flex py-1 justify-content-center"},de=n("hr",null,null,-1),re={name:"restoreForm"},ce=n("br",null,null,-1),pe={class:"input-group"},me={class:"input-group-prepend"},be={class:"input-group-text"},he={class:"custom-file"},fe={id:"input-file-label",class:"custom-file-label",for:"input-file","data-browse":"Suchen"},ge={class:"input-group-append"},_e=["disabled"],ke={class:"row justify-content-center"},ye={class:"col-md-4 d-flex py-1 justify-content-center"},ve=n("hr",null,null,-1),Ce={name:"cloudBackupForm"},we=n("br",null,null,-1),Be=n("a",{href:"https://github.com/openWB/core/wiki/Cloud-Sicherung",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),De={key:0},Se={name:"dataMigrationForm"},Oe=n("br",null,null,-1),We=n("br",null,null,-1),Fe={class:"input-group"},Me={class:"input-group-prepend"},xe={class:"input-group-text"},Te={class:"custom-file"},Le={id:"data-migration-file-label",class:"custom-file-label",for:"data-migration-file","data-browse":"Suchen"},Ve={class:"input-group-append"},ze=["disabled"],Ae={class:"row justify-content-center"},Re={class:"col-md-4 d-flex py-1 justify-content-center"},je={name:"resetForm"},He={class:"row justify-content-center"},Pe={class:"col-md-4 d-flex py-1 justify-content-center"};function Ee(t,e,d,b,l,s){const p=c("openwb-base-button-group-input"),r=c("openwb-base-alert"),_=c("openwb-base-heading"),h=c("font-awesome-icon"),y=c("openwb-base-click-button"),O=c("openwb-base-select-input"),M=c("openwb-base-button-input"),x=c("openwb-backup-cloud-proxy"),T=c("openwb-base-submit-buttons"),w=c("openwb-base-card");return m(),f("div",te,[o(r,{subtype:"danger"},{default:u(()=>[ne,oe,o(p,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=a=>this.warningAcknowledged=a)},null,8,["modelValue"])]),_:1}),l.warningAcknowledged?(m(),f("div",se,[o(w,{title:"Sicherung / Wiederherstellung",subtype:"success",collapsible:!0,collapsed:!0},{default:u(()=>[n("form",ie,[o(_,null,{default:u(()=>[i("Sicherung")]),_:1}),o(r,{subtype:"danger"},{default:u(()=>[i(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),o(r,{subtype:"info"},{default:u(()=>[i(" Nachdem die Sicherung abgeschlossen ist, kann die erstellte Datei über den Link in der Benachrichtigung oder "),ae,i(" heruntergeladen werden. ")]),_:1}),n("div",le,[n("div",ue,[o(y,{class:"btn-success clickable",onButtonClicked:e[1]||(e[1]=a=>s.sendSystemCommand("createBackup",{use_extended_filename:!0}))},{default:u(()=>[i(" Sicherung erstellen "),o(h,{"fixed-width":"",icon:["fas","archive"]})]),_:1})])])]),de,n("form",re,[o(_,null,{default:u(()=>[i("Wiederherstellung")]),_:1}),o(r,{subtype:"danger"},{default:u(()=>[i(" Für die Wiederherstellung wird eine aktive Internetverbindung benötigt."),ce,i(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),n("div",pe,[n("div",me,[n("div",be,[o(h,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",he,[n("input",{id:"input-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[2]||(e[2]=a=>s.updateSelectedRestoreFile(a))},null,32),n("label",fe,g(l.selectedRestoreFile?l.selectedRestoreFile.name:"Bitte eine Datei auswählen"),1)]),n("div",ge,[n("button",{class:C(["btn",l.selectedRestoreFile?"btn-success clickable":"btn-outline-success"]),disabled:!l.selectedRestoreFile,type:"button",onClick:e[3]||(e[3]=a=>s.uploadRestoreFile())},[i(" Hochladen "),o(h,{"fixed-width":"",icon:["fas","upload"]})],10,_e)])]),n("div",ke,[n("div",ye,[o(y,{class:C(l.restoreUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!l.restoreUploadDone,onButtonClicked:e[4]||(e[4]=a=>s.restoreBackup())},{default:u(()=>[i(" Wiederherstellung starten "),o(h,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])]),ve,n("form",Ce,[o(_,null,{default:u(()=>[i(" Automatische Sicherung in einen Cloud-Dienst ")]),_:1}),o(r,{subtype:"info"},{default:u(()=>[i(" Zwischen Mitternacht und 5:00 Uhr wird automatisch eine Sicherung erstellt und in den angegebenen Cloud-Dienst (nicht openWB Cloud!) hochgeladen. Ist kein Cloud-Dienst konfiguriert, wird keine automatische Sicherung erstellt. Die automatische Sicherung kann unabhängig von der openWB Cloud genutzt werden."),we,i(" Die Anleitung zur Konfiguration des Cloud-Dienstes findest Du "),Be,i(" . ")]),_:1}),o(O,{class:"mb-2",title:"Backup-Cloud",options:s.backupCloudList,"model-value":t.$store.state.mqtt["openWB/system/backup_cloud/config"].type,"onUpdate:modelValue":e[5]||(e[5]=a=>s.updateSelectedBackupCloud(a))},null,8,["options","model-value"]),t.$store.state.mqtt["openWB/system/backup_cloud/config"].type?(m(),f("div",De,[o(p,{title:"Option Sicherung vor System Update",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/backup_cloud/backup_before_update"],"onUpdate:modelValue":e[6]||(e[6]=a=>t.updateState("openWB/system/backup_cloud/backup_before_update",a))},null,8,["model-value"]),o(M,{title:"Manuelle Cloud-Sicherung",buttonText:"Sicherung erstellen und hochladen",subtype:"success",onButtonClicked:e[7]||(e[7]=a=>s.sendSystemCommand("createCloudBackup",{}))}),o(x,{backupCloud:t.$store.state.mqtt["openWB/system/backup_cloud/config"],"onUpdate:configuration":e[8]||(e[8]=a=>s.updateConfiguration("openWB/system/backup_cloud/config",a)),onSendCommand:e[9]||(e[9]=a=>s.sendSystemCommand(a.command,a.args))},null,8,["backupCloud"])])):W("",!0),o(T,{formName:"cloudBackupForm",hideReset:!0,hideDefaults:!0,onSave:e[10]||(e[10]=a=>t.$emit("save")),onReset:e[11]||(e[11]=a=>t.$emit("reset")),onDefaults:e[12]||(e[12]=a=>t.$emit("defaults"))})])]),_:1}),o(w,{title:"Datenübernahme",subtype:"success",collapsible:!0,collapsed:!0},{default:u(()=>[n("form",Se,[o(r,{subtype:"info"},{default:u(()=>[i(" Hier kann die Sicherung einer älteren 1.9er Version hochgeladen werden, um vorhandene historische Daten (Diagramme und Ladeprotokolle) sowie Cloud-Daten und Seriennummer in diese Installation zu importieren. Die Zuordnung zwischen den alten und neuen Komponenten muss manuell durchgeführt werden. ")]),_:1}),o(r,{subtype:"danger"},{default:u(()=>[i(" Die Portierung kann bei vielen historischen Daten von mehreren Jahren durchaus bis zu 30 Minuten dauern. Die openWB in dieser Zeit bitte nicht herunterfahren! Du erhältst eine Meldung, wenn die Datenübernahme abgeschlossen ist."),Oe,i(" Vor der Datenübernahme unbedingt eine Sicherung erstellen."),We,i(" Die Datenübernahme kann nur durch Einspielen einer Sicherung rückgängig gemacht werden! ")]),_:1}),n("div",Fe,[n("div",Me,[n("div",xe,[o(h,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",Te,[n("input",{id:"data-migration-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[13]||(e[13]=a=>s.updateSelectedDataMigrationFile(a))},null,32),n("label",Le,g(l.selectedDataMigrationFile?l.selectedDataMigrationFile.name:"Bitte eine Datei auswählen"),1)]),n("div",Ve,[n("button",{class:C(["btn",l.selectedDataMigrationFile?"btn-success clickable":"btn-outline-success"]),disabled:!l.selectedDataMigrationFile,type:"button",onClick:e[14]||(e[14]=a=>s.uploadDataMigrationFile())},[i(" Hochladen "),o(h,{"fixed-width":"",icon:["fas","upload"]})],10,ze)])]),o(_,null,{default:u(()=>[i("Zuordnung der Komponenten")]),_:1}),(m(!0),f(B,null,F(l.dataMigrationConfig,a=>(m(),f("div",{key:a.sectionName},[o(_,null,{default:u(()=>[i(g(a.sectionName),1)]),_:2},1024),(m(!0),f(B,null,F(a.sectionComponents,k=>(m(),S(O,{key:k.key,title:k.label,options:s.getMigrationOptions(k.validTypes),modelValue:l.dataMigrationMapping[k.key],"onUpdate:modelValue":L=>l.dataMigrationMapping[k.key]=L},I({_:2},[k.help?{name:"help",fn:u(()=>[i(g(k.help),1)]),key:"0"}:void 0]),1032,["title","options","modelValue","onUpdate:modelValue"]))),128))]))),128)),n("div",Ae,[n("div",Re,[o(y,{class:C(l.dataMigrationUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!l.dataMigrationUploadDone,onButtonClicked:e[15]||(e[15]=a=>s.dataMigration())},{default:u(()=>[i(" Datenübernahme starten "),o(h,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])])]),_:1}),n("form",je,[o(w,{title:"Zurücksetzen",subtype:"danger",collapsible:!0,collapsed:!0},{footer:u(()=>[n("div",He,[n("div",Pe,[o(y,{class:"btn-danger clickable",onButtonClicked:e[16]||(e[16]=a=>s.factoryReset())},{default:u(()=>[o(h,{"fixed-width":"",icon:["fas","skull-crossbones"]}),i(" Zurücksetzen "),o(h,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1})])])]),default:u(()=>[o(r,{subtype:"danger"},{default:u(()=>[i(" Alle Einstellungen, angelegte Geräte/Komponenten, Ladepunkte und Fahrzeuge, etc, Tages-, Monats- und Jahresauswertungen sowie das Ladeprotokoll werden unwiederbringlich gelöscht. Auch die Vorkonfiguration im Auslieferungszustand wird gelöscht. Die openWB muss danach komplett neu eingerichtet werden. Die openWB wird hierfür automatisch neu gestartet. Bitte erstelle vor dem Zurücksetzen eine Sicherung! ")]),_:1})]),_:1})])])):W("",!0)])}const $e=D(ee,[["render",Ee],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DataManagement.vue"]]);export{$e as default}; +import{l as V,a9 as z,aa as A,ab as R,ac as j,ad as H,F as P}from"./vendor-fortawesome-9fdc06a9.js";import{_ as v,C as E}from"./index-720fb9ac.js";import{_ as N}from"./dynamic-import-helper-be004503.js";import{_ as D,q as c,k as m,l as f,z as S,M as u,x as i,y as g,B as o,u as n,a1 as U,a2 as q,I as B,A as W,p as C,J as F,a3 as I}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const G={name:"BackupCloudConfigFallback",emits:["update:configuration"],props:{backupCloud:{type:Object,required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},J={class:"backup-cloud-fallback"},Z={key:1};function K(t,e,d,b,l,s){const p=c("openwb-base-alert"),r=c("openwb-base-textarea");return m(),f("div",J,[Object.keys(d.backupCloud.configuration).length==0?(m(),S(p,{key:0,subtype:"info"},{default:u(()=>[i(' Die Backup-Cloud "'+g(d.backupCloud.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(m(),f("div",Z,[o(p,{subtype:"warning"},{default:u(()=>[i(' Es wurde keine Konfigurationsseite für die Backup-Cloud "'+g(d.backupCloud.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),o(r,{title:"Konfiguration",subtype:"json","model-value":d.backupCloud.configuration,"onUpdate:modelValue":e[0]||(e[0]=_=>s.updateConfiguration(_,"configuration"))},{help:u(()=>[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),o(p,{subtype:"info"},{default:u(()=>[n("pre",null,g(JSON.stringify(d.backupCloud.configuration,void 0,2)),1)]),_:1})]))])}const $=D(G,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudConfigFallback.vue"]]),Q={name:"OpenwbBackupCloudProxy",emits:["update:configuration","sendCommand"],props:{backupCloud:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading backup cloud: ${this.backupCloud.type}`),U({loader:()=>N(Object.assign({"./nextcloud/backup_cloud.vue":()=>v(()=>import("./backup_cloud-9f2fcfd9.js"),["assets/backup_cloud-9f2fcfd9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./nfs/backup_cloud.vue":()=>v(()=>import("./backup_cloud-bd2a7ae2.js"),["assets/backup_cloud-bd2a7ae2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./onedrive/backup_cloud.vue":()=>v(()=>import("./backup_cloud-879a1fbe.js"),["assets/backup_cloud-879a1fbe.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./samba/backup_cloud.vue":()=>v(()=>import("./backup_cloud-56c2247a.js"),["assets/backup_cloud-56c2247a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.backupCloud.type}/backup_cloud.vue`),errorComponent:$})}},methods:{updateConfiguration(t){this.$emit("update:configuration",t)},sendCommand(t){this.$emit("sendCommand",t)}}};function X(t,e,d,b,l,s){const p=c("openwb-base-heading");return m(),f(B,null,[o(p,null,{default:u(()=>[i(' Einstellungen für Backup-Cloud Modul "'+g(d.backupCloud.name)+'" ',1)]),_:1}),(m(),S(q(s.myComponent),{backupCloud:d.backupCloud,"onUpdate:configuration":e[0]||(e[0]=r=>s.updateConfiguration(r)),onSendCommand:e[1]||(e[1]=r=>s.sendCommand(r))},null,40,["backupCloud"]))],64)}const Y=D(Q,[["render",X],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudProxy.vue"]]);V.add(z,A,R,j,H);const ee={name:"OpenwbSystem",mixins:[E],emits:["sendCommand"],components:{FontAwesomeIcon:P,OpenwbBackupCloudProxy:Y},data(){return{mqttTopicsToSubscribe:["openWB/system/configurable/backup_clouds","openWB/system/backup_cloud/config","openWB/system/backup_cloud/backup_before_update","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name","openWB/LegacySmartHome/config/get/Devices/+/device_configured","openWB/LegacySmartHome/config/get/Devices/+/device_name"],warningAcknowledged:!1,selectedRestoreFile:void 0,restoreUploadDone:!1,selectedDataMigrationFile:void 0,dataMigrationUploadDone:!1,dataMigrationConfig:[{sectionName:"Ladepunkte",sectionComponents:[{key:"cp1",label:"Ladepunkt 1",validTypes:["chargePoint"]},{key:"cp2",label:"Ladepunkt 2",validTypes:["chargePoint"]},{key:"cp3",label:"Ladepunkt 3",validTypes:["chargePoint"]},{key:"cp4",label:"Ladepunkt 4",validTypes:["chargePoint"]},{key:"cp5",label:"Ladepunkt 5",validTypes:["chargePoint"]},{key:"cp6",label:"Ladepunkt 6",validTypes:["chargePoint"]},{key:"cp7",label:"Ladepunkt 7",validTypes:["chargePoint"]},{key:"cp8",label:"Ladepunkt 8",validTypes:["chargePoint"]}]},{sectionName:"Zähler",sectionComponents:[{key:"evu",label:"EVU",validTypes:["counter"]},{key:"consumer1",label:"Verbraucher 1",validTypes:["counter"]},{key:"consumer2",label:"Verbraucher 2",validTypes:["counter"]},{key:"consumer3",label:"Verbraucher 3",validTypes:["counter"]}]},{sectionName:"Wechselrichter",sectionComponents:[{key:"pvAll",label:"Wechselrichter (Summe)",validTypes:["inverter"],help:"Die 1.9er Version von openWB speichert lediglich die Summen-Leistung aller Wechselrichter."}]},{sectionName:"Batteriespeicher",sectionComponents:[{key:"bat",label:"Speicher 1",validTypes:["battery"]}]},{sectionName:"Fahrzeuge",sectionComponents:[{key:"ev1",label:"Fahrzeug von Ladepunkt 1",validTypes:["vehicle"]},{key:"ev2",label:"Fahrzeug von Ladepunkt 2",validTypes:["vehicle"]}]},{sectionName:"SmartHome 2.0",sectionComponents:[{key:"sh1",label:"Gerät 1",validTypes:["smartHome"]},{key:"sh2",label:"Gerät 2",validTypes:["smartHome"]},{key:"sh3",label:"Gerät 3",validTypes:["smartHome"]},{key:"sh4",label:"Gerät 4",validTypes:["smartHome"]},{key:"sh5",label:"Gerät 5",validTypes:["smartHome"]},{key:"sh6",label:"Gerät 6",validTypes:["smartHome"]},{key:"sh7",label:"Gerät 7",validTypes:["smartHome"]},{key:"sh8",label:"Gerät 8",validTypes:["smartHome"]},{key:"sh9",label:"Gerät 9",validTypes:["smartHome"]},{key:"sh10",label:"Gerät 10",validTypes:["smartHome"]}]}],dataMigrationMapping:{cp1:void 0,cp2:void 0,cp3:void 0,cp4:void 0,cp5:void 0,cp6:void 0,cp7:void 0,cp8:void 0,evu:void 0,pvAll:void 0,bat:void 0,consumer1:void 0,consumer2:void 0,consumer3:void 0,sh1:void 0,sh2:void 0,sh3:void 0,sh4:void 0,sh5:void 0,sh6:void 0,sh7:void 0,sh8:void 0,sh9:void 0,sh10:void 0,ev1:void 0,ev2:void 0}}},computed:{backupCloudList(){return this.$store.state.mqtt["openWB/system/configurable/backup_clouds"]},componentConfigurations(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")},chargePointOptions(){let t=this.getWildcardTopics("openWB/chargepoint/+/config");var e=[];for(const d of Object.values(t))e.push({value:d.id,text:d.name});return e},counterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"counter")&&t.push({value:e.id,text:e.name});return t},inverterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"inverter")&&t.push({value:e.id,text:e.name});return t},batteryOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"bat")&&t.push({value:e.id,text:e.name});return t},vehicleOptions(){let t=this.getWildcardTopics("openWB/vehicle/+/name");var e=[];for(const[d,b]of Object.entries(t)){let l=parseInt(d.match(/\/(\d\d?)\//)[1]);e.push({value:l,text:b})}return e},smartHomeOptions(){let t=this.getWildcardTopics("openWB/LegacySmartHome/config/get/Devices/+/device_configured");var e=[];for(const[d,b]of Object.entries(t))if(b==1){let l=parseInt(d.match(/\/(\d\d?)\//)[1]);e.push({value:l,text:this.$store.state.mqtt[`openWB/LegacySmartHome/config/get/Devices/${l}/device_name`]})}return e}},methods:{isComponentType(t,e){return t.split("_").includes(e)},getBackupCloudDefaultConfiguration(t){const e=this.backupCloudList.find(d=>d.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...JSON.parse(JSON.stringify(e.defaults))}:(console.warn("no default configuration found for backup cloud type!",t),{})},sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getMigrationOptions(t){var e=[{value:void 0,text:"-- nicht übernehmen --"}];return t.includes("chargePoint")&&e.push(...this.chargePointOptions),t.includes("counter")&&e.push(...this.counterOptions),t.includes("inverter")&&e.push(...this.inverterOptions),t.includes("battery")&&e.push(...this.batteryOptions),t.includes("vehicle")&&e.push(...this.vehicleOptions),t.includes("smartHome")&&e.push(...this.smartHomeOptions),e},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)},updateSelectedBackupCloud(t){this.updateState("openWB/system/backup_cloud/config",t,"type"),this.updateState("openWB/system/backup_cloud/config",this.getBackupCloudDefaultConfiguration(t))},updateSelectedRestoreFile(t){this.selectedRestoreFile=t.target.files[0]},updateSelectedDataMigrationFile(t){this.selectedDataMigrationFile=t.target.files[0]},uploadFile(t,e,d){return new Promise(b=>{if(e!==void 0){let l=new FormData;l.append("file",e),l.append("target",t),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/uploadFile.php",l,{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{this.$root.postClientMessage(d,"success"),b(!0)}).catch(s=>{if(s.response){console.error(s.response.status,s.response.data);var p="Hochladen der Datei fehlgeschlagen!
"+s.response.status+": "+s.response.data}else s.request?(console.error(s.request),p+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",s.message),p+="Es ist ein unbekannter Fehler aufgetreten.");this.$root.postClientMessage(p,"danger"),b(!1)})}else console.error("no file selected for upload"),b(!1)})},async uploadRestoreFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können die Wiederherstellung jetzt starten.";this.restoreUploadDone=await this.uploadFile("restore",this.selectedRestoreFile,t)},async uploadDataMigrationFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können den Import jetzt starten.";this.dataMigrationUploadDone=await this.uploadFile("migrate",this.selectedDataMigrationFile,t)},restoreBackup(){this.sendSystemCommand("restoreBackup"),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})},dataMigration(){this.sendSystemCommand("dataMigration",this.dataMigrationMapping)},factoryReset(){this.sendSystemCommand("factoryReset",{}),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})}}},te={class:"system"},ne=n("h2",null,"Achtung!",-1),oe=n("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1),se={key:0},ie={name:"backupForm"},ae=n("a",{href:"/openWB/data/backup/",target:"_blank"},"hier",-1),le={class:"row justify-content-center"},ue={class:"col-md-4 d-flex py-1 justify-content-center"},de=n("hr",null,null,-1),re={name:"restoreForm"},ce=n("br",null,null,-1),pe={class:"input-group"},me={class:"input-group-prepend"},be={class:"input-group-text"},he={class:"custom-file"},fe={id:"input-file-label",class:"custom-file-label",for:"input-file","data-browse":"Suchen"},ge={class:"input-group-append"},_e=["disabled"],ke={class:"row justify-content-center"},ye={class:"col-md-4 d-flex py-1 justify-content-center"},ve=n("hr",null,null,-1),Ce={name:"cloudBackupForm"},we=n("br",null,null,-1),Be=n("a",{href:"https://github.com/openWB/core/wiki/Cloud-Sicherung",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),De={key:0},Se={name:"dataMigrationForm"},Oe=n("br",null,null,-1),We=n("br",null,null,-1),Fe={class:"input-group"},Me={class:"input-group-prepend"},xe={class:"input-group-text"},Te={class:"custom-file"},Le={id:"data-migration-file-label",class:"custom-file-label",for:"data-migration-file","data-browse":"Suchen"},Ve={class:"input-group-append"},ze=["disabled"],Ae={class:"row justify-content-center"},Re={class:"col-md-4 d-flex py-1 justify-content-center"},je={name:"resetForm"},He={class:"row justify-content-center"},Pe={class:"col-md-4 d-flex py-1 justify-content-center"};function Ee(t,e,d,b,l,s){const p=c("openwb-base-button-group-input"),r=c("openwb-base-alert"),_=c("openwb-base-heading"),h=c("font-awesome-icon"),y=c("openwb-base-click-button"),O=c("openwb-base-select-input"),M=c("openwb-base-button-input"),x=c("openwb-backup-cloud-proxy"),T=c("openwb-base-submit-buttons"),w=c("openwb-base-card");return m(),f("div",te,[o(r,{subtype:"danger"},{default:u(()=>[ne,oe,o(p,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=a=>this.warningAcknowledged=a)},null,8,["modelValue"])]),_:1}),l.warningAcknowledged?(m(),f("div",se,[o(w,{title:"Sicherung / Wiederherstellung",subtype:"success",collapsible:!0,collapsed:!0},{default:u(()=>[n("form",ie,[o(_,null,{default:u(()=>[i("Sicherung")]),_:1}),o(r,{subtype:"danger"},{default:u(()=>[i(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),o(r,{subtype:"info"},{default:u(()=>[i(" Nachdem die Sicherung abgeschlossen ist, kann die erstellte Datei über den Link in der Benachrichtigung oder "),ae,i(" heruntergeladen werden. ")]),_:1}),n("div",le,[n("div",ue,[o(y,{class:"btn-success clickable",onButtonClicked:e[1]||(e[1]=a=>s.sendSystemCommand("createBackup",{use_extended_filename:!0}))},{default:u(()=>[i(" Sicherung erstellen "),o(h,{"fixed-width":"",icon:["fas","archive"]})]),_:1})])])]),de,n("form",re,[o(_,null,{default:u(()=>[i("Wiederherstellung")]),_:1}),o(r,{subtype:"danger"},{default:u(()=>[i(" Für die Wiederherstellung wird eine aktive Internetverbindung benötigt."),ce,i(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),n("div",pe,[n("div",me,[n("div",be,[o(h,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",he,[n("input",{id:"input-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[2]||(e[2]=a=>s.updateSelectedRestoreFile(a))},null,32),n("label",fe,g(l.selectedRestoreFile?l.selectedRestoreFile.name:"Bitte eine Datei auswählen"),1)]),n("div",ge,[n("button",{class:C(["btn",l.selectedRestoreFile?"btn-success clickable":"btn-outline-success"]),disabled:!l.selectedRestoreFile,type:"button",onClick:e[3]||(e[3]=a=>s.uploadRestoreFile())},[i(" Hochladen "),o(h,{"fixed-width":"",icon:["fas","upload"]})],10,_e)])]),n("div",ke,[n("div",ye,[o(y,{class:C(l.restoreUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!l.restoreUploadDone,onButtonClicked:e[4]||(e[4]=a=>s.restoreBackup())},{default:u(()=>[i(" Wiederherstellung starten "),o(h,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])]),ve,n("form",Ce,[o(_,null,{default:u(()=>[i(" Automatische Sicherung in einen Cloud-Dienst ")]),_:1}),o(r,{subtype:"info"},{default:u(()=>[i(" Zwischen Mitternacht und 5:00 Uhr wird automatisch eine Sicherung erstellt und in den angegebenen Cloud-Dienst (nicht openWB Cloud!) hochgeladen. Ist kein Cloud-Dienst konfiguriert, wird keine automatische Sicherung erstellt. Die automatische Sicherung kann unabhängig von der openWB Cloud genutzt werden."),we,i(" Die Anleitung zur Konfiguration des Cloud-Dienstes findest Du "),Be,i(" . ")]),_:1}),o(O,{class:"mb-2",title:"Backup-Cloud",options:s.backupCloudList,"model-value":t.$store.state.mqtt["openWB/system/backup_cloud/config"].type,"onUpdate:modelValue":e[5]||(e[5]=a=>s.updateSelectedBackupCloud(a))},null,8,["options","model-value"]),t.$store.state.mqtt["openWB/system/backup_cloud/config"].type?(m(),f("div",De,[o(p,{title:"Option Sicherung vor System Update",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/backup_cloud/backup_before_update"],"onUpdate:modelValue":e[6]||(e[6]=a=>t.updateState("openWB/system/backup_cloud/backup_before_update",a))},null,8,["model-value"]),o(M,{title:"Manuelle Cloud-Sicherung",buttonText:"Sicherung erstellen und hochladen",subtype:"success",onButtonClicked:e[7]||(e[7]=a=>s.sendSystemCommand("createCloudBackup",{}))}),o(x,{backupCloud:t.$store.state.mqtt["openWB/system/backup_cloud/config"],"onUpdate:configuration":e[8]||(e[8]=a=>s.updateConfiguration("openWB/system/backup_cloud/config",a)),onSendCommand:e[9]||(e[9]=a=>s.sendSystemCommand(a.command,a.args))},null,8,["backupCloud"])])):W("",!0),o(T,{formName:"cloudBackupForm",hideReset:!0,hideDefaults:!0,onSave:e[10]||(e[10]=a=>t.$emit("save")),onReset:e[11]||(e[11]=a=>t.$emit("reset")),onDefaults:e[12]||(e[12]=a=>t.$emit("defaults"))})])]),_:1}),o(w,{title:"Datenübernahme",subtype:"success",collapsible:!0,collapsed:!0},{default:u(()=>[n("form",Se,[o(r,{subtype:"info"},{default:u(()=>[i(" Hier kann die Sicherung einer älteren 1.9er Version hochgeladen werden, um vorhandene historische Daten (Diagramme und Ladeprotokolle) sowie Cloud-Daten und Seriennummer in diese Installation zu importieren. Die Zuordnung zwischen den alten und neuen Komponenten muss manuell durchgeführt werden. ")]),_:1}),o(r,{subtype:"danger"},{default:u(()=>[i(" Die Portierung kann bei vielen historischen Daten von mehreren Jahren durchaus bis zu 30 Minuten dauern. Die openWB in dieser Zeit bitte nicht herunterfahren! Du erhältst eine Meldung, wenn die Datenübernahme abgeschlossen ist."),Oe,i(" Vor der Datenübernahme unbedingt eine Sicherung erstellen."),We,i(" Die Datenübernahme kann nur durch Einspielen einer Sicherung rückgängig gemacht werden! ")]),_:1}),n("div",Fe,[n("div",Me,[n("div",xe,[o(h,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",Te,[n("input",{id:"data-migration-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[13]||(e[13]=a=>s.updateSelectedDataMigrationFile(a))},null,32),n("label",Le,g(l.selectedDataMigrationFile?l.selectedDataMigrationFile.name:"Bitte eine Datei auswählen"),1)]),n("div",Ve,[n("button",{class:C(["btn",l.selectedDataMigrationFile?"btn-success clickable":"btn-outline-success"]),disabled:!l.selectedDataMigrationFile,type:"button",onClick:e[14]||(e[14]=a=>s.uploadDataMigrationFile())},[i(" Hochladen "),o(h,{"fixed-width":"",icon:["fas","upload"]})],10,ze)])]),o(_,null,{default:u(()=>[i("Zuordnung der Komponenten")]),_:1}),(m(!0),f(B,null,F(l.dataMigrationConfig,a=>(m(),f("div",{key:a.sectionName},[o(_,null,{default:u(()=>[i(g(a.sectionName),1)]),_:2},1024),(m(!0),f(B,null,F(a.sectionComponents,k=>(m(),S(O,{key:k.key,title:k.label,options:s.getMigrationOptions(k.validTypes),modelValue:l.dataMigrationMapping[k.key],"onUpdate:modelValue":L=>l.dataMigrationMapping[k.key]=L},I({_:2},[k.help?{name:"help",fn:u(()=>[i(g(k.help),1)]),key:"0"}:void 0]),1032,["title","options","modelValue","onUpdate:modelValue"]))),128))]))),128)),n("div",Ae,[n("div",Re,[o(y,{class:C(l.dataMigrationUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!l.dataMigrationUploadDone,onButtonClicked:e[15]||(e[15]=a=>s.dataMigration())},{default:u(()=>[i(" Datenübernahme starten "),o(h,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])])]),_:1}),n("form",je,[o(w,{title:"Zurücksetzen",subtype:"danger",collapsible:!0,collapsed:!0},{footer:u(()=>[n("div",He,[n("div",Pe,[o(y,{class:"btn-danger clickable",onButtonClicked:e[16]||(e[16]=a=>s.factoryReset())},{default:u(()=>[o(h,{"fixed-width":"",icon:["fas","skull-crossbones"]}),i(" Zurücksetzen "),o(h,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1})])])]),default:u(()=>[o(r,{subtype:"danger"},{default:u(()=>[i(" Alle Einstellungen, angelegte Geräte/Komponenten, Ladepunkte und Fahrzeuge, etc, Tages-, Monats- und Jahresauswertungen sowie das Ladeprotokoll werden unwiederbringlich gelöscht. Auch die Vorkonfiguration im Auslieferungszustand wird gelöscht. Die openWB muss danach komplett neu eingerichtet werden. Die openWB wird hierfür automatisch neu gestartet. Bitte erstelle vor dem Zurücksetzen eine Sicherung! ")]),_:1})]),_:1})])])):W("",!0)])}const $e=D(ee,[["render",Ee],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DataManagement.vue"]]);export{$e as default}; diff --git a/web/settings/assets/DebugConfig-877c59ca.js b/web/settings/assets/DebugConfig-f54b7485.js similarity index 98% rename from web/settings/assets/DebugConfig-877c59ca.js rename to web/settings/assets/DebugConfig-f54b7485.js index 1f790bec80..8b04be29e8 100644 --- a/web/settings/assets/DebugConfig-877c59ca.js +++ b/web/settings/assets/DebugConfig-f54b7485.js @@ -1,2 +1,2 @@ -import{C as k}from"./index-b8f06cb8.js";import{l as B,a5 as D,a6 as L,F as W}from"./vendor-fortawesome-9fdc06a9.js";import{_ as f,q as s,k as r,z as w,M as i,B as a,p as C,O as x,u as v,y as F,l as _,I as y,J as N,x as b}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";B.add(D,L);const $={name:"OpenwbLogCard",components:{FontAwesomeIcon:W},props:{title:{type:String,required:!0},logFile:{type:String,required:!0}},data(){return{logData:"-- noch nicht geladen --",loading:!1}},methods:{async getFilePromise(n,e=!1){return this.axios.get(location.protocol+"//"+location.host+n).then(t=>t.data).catch(t=>t.response?t.response.status==404&&e?"":`A 404 is expected if running node.js dev server! +import{C as k}from"./index-720fb9ac.js";import{l as B,a5 as D,a6 as L,F as W}from"./vendor-fortawesome-9fdc06a9.js";import{_ as f,q as s,k as r,z as w,M as i,B as a,p as C,O as x,u as v,y as F,l as _,I as y,J as N,x as b}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";B.add(D,L);const $={name:"OpenwbLogCard",components:{FontAwesomeIcon:W},props:{title:{type:String,required:!0},logFile:{type:String,required:!0}},data(){return{logData:"-- noch nicht geladen --",loading:!1}},methods:{async getFilePromise(n,e=!1){return this.axios.get(location.protocol+"//"+location.host+n).then(t=>t.data).catch(t=>t.response?t.response.status==404&&e?"":`A 404 is expected if running node.js dev server! `+t.response.status+" "+t.response.statusText+": "+t.response.request.responseURL:t.request?t.request:t.message)},loadLog(n){this.logData="wird aktualisiert...",this.loading=!0;var e="";this.getFilePromise(n+".1",!0).then(t=>{e=t,this.getFilePromise(n).then(d=>{e+=d,this.logData=e,this.loading=!1})})}}},S={class:"log-data mb-0"};function I(n,e,t,d,l,g){const u=s("font-awesome-icon"),p=s("openwb-base-avatar"),m=s("openwb-base-card");return r(),w(m,{title:t.title,class:"log-card mt-3",collapsible:!0,collapsed:!0},{actions:i(()=>[a(p,{class:"bg-success clickable",onClick:e[0]||(e[0]=x(c=>g.loadLog(t.logFile),["stop"]))},{default:i(()=>[a(u,{"fixed-width":"",class:C(l.loading?"fa-spin-pulse":""),icon:l.loading?["fas","spinner"]:["fas","file-download"]},null,8,["class","icon"])]),_:1})]),default:i(()=>[v("pre",S,F(l.logData),1)]),_:1},8,["title"])}const P=f($,[["render",I],["__scopeId","data-v-a320c3d6"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/debug_config/LogCard.vue"]]),q={name:"OpenwbDebugging",mixins:[k],components:{OpenwbLogCard:P},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/debug_level"],logFiles:[{title:"Main-Log",fileName:"/openWB/ramdisk/main.log"},{title:"Log des internen Ladepunktes",fileName:"/openWB/ramdisk/internal_chargepoint.log"},{title:"MQTT-Log",fileName:"/openWB/ramdisk/mqtt.log"},{title:"SoC-Log",fileName:"/openWB/ramdisk/soc.log"},{title:"Protokoll des letzten Updates",fileName:"/openWB/data/log/update.log"},{title:"Protokoll des Remote-Dienstes",fileName:"/openWB/ramdisk/remote_support.log"},{title:"Protokoll des SmartHome Dienstes",fileName:"/openWB/ramdisk/smarthome.log"},{title:"Protokoll der Datenmigration",fileName:"/openWB/data/log/data_migration.log"}]}}},z={class:"debugging"},V={name:"debugConfigForm"};function T(n,e,t,d,l,g){const u=s("openwb-base-button-group-input"),p=s("openwb-base-alert"),m=s("openwb-base-card"),c=s("openwb-base-submit-buttons"),h=s("openwb-log-card");return r(),_("div",z,[v("form",V,[a(m,{title:"Protokollierung"},{default:i(()=>[a(u,{title:"Debug Level",buttons:[{buttonValue:30,text:"Warnungen und Fehler"},{buttonValue:20,text:"Info"},{buttonValue:10,text:"Details"}],"model-value":n.$store.state.mqtt["openWB/system/debug_level"],"onUpdate:modelValue":e[0]||(e[0]=o=>n.updateState("openWB/system/debug_level",o))},{help:i(()=>[b(' Wenn der Debug Level auf "Info" oder "Details" gesetzt wird, werden mehr Informationen in die Logdateien geschrieben. Im normalen Betrieb sollte immer "Warnungen und Fehler" gewählt werden, um die Schreibvorgänge auf der SD-Karte zu reduzieren. ')]),_:1},8,["model-value"]),a(p,{subtype:"warning"},{default:i(()=>[b(' Achtung! In den Einstellungen "Info" und "Details" können in den Logdateien sensible Daten wie Benutzernamen und Kennwörter enthalten sein. Diese sollten vor dem Veröffentlichen z.B. im Forum unkenntlich gemacht werden. Private IP-Adressen (z.B. 192.168.x.x) müssen nicht maskiert werden, da diese nicht über das Internet erreichbar sind. ')]),_:1})]),_:1}),a(c,{formName:"debugConfigForm",onSave:e[1]||(e[1]=o=>n.$emit("save")),onReset:e[2]||(e[2]=o=>n.$emit("reset")),onDefaults:e[3]||(e[3]=o=>n.$emit("defaults"))})]),(r(!0),_(y,null,N(l.logFiles,o=>(r(),w(h,{key:o.fileName,title:o.title,"log-file":o.fileName},null,8,["title","log-file"]))),128))])}const j=f(q,[["render",T],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DebugConfig.vue"]]);export{j as default}; diff --git a/web/settings/assets/GeneralChargeConfig-e9c2cec0.js b/web/settings/assets/GeneralChargeConfig-14d5c022.js similarity index 99% rename from web/settings/assets/GeneralChargeConfig-e9c2cec0.js rename to web/settings/assets/GeneralChargeConfig-14d5c022.js index 60f3b3bac9..a33161a3bf 100644 --- a/web/settings/assets/GeneralChargeConfig-e9c2cec0.js +++ b/web/settings/assets/GeneralChargeConfig-14d5c022.js @@ -1 +1 @@ -import{_ as b,C as T}from"./index-b8f06cb8.js";import{_ as $}from"./dynamic-import-helper-be004503.js";import{_ as h,q as a,k as s,l as p,B as n,M as o,x as r,y as _,u as c,a1 as E,z as k,a2 as V,I as P,A as W}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const q={name:"ElectricityTariffConfigFallback",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},A={class:"backup-cloud-fallback"};function O(e,t,l,y,v,d){const u=a("openwb-base-alert"),f=a("openwb-base-textarea");return s(),p("div",A,[n(u,{subtype:"warning"},{default:o(()=>[r(' Es wurde keine Konfigurationsseite für den Anbieter "'+_(l.electricityTariff.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(f,{title:"Konfiguration",subtype:"json","model-value":l.electricityTariff.configuration,"onUpdate:modelValue":t[0]||(t[0]=g=>d.updateConfiguration(g,"configuration"))},{help:o(()=>[r(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(u,{subtype:"info"},{default:o(()=>[c("pre",null,_(JSON.stringify(l.electricityTariff.configuration,void 0,2)),1)]),_:1})])}const F=h(q,[["render",O],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffConfigFallback.vue"]]),L={name:"OpenwbElectricityTariffProxy",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading electricity tariff cloud: ${this.electricityTariff.type}`),E({loader:()=>$(Object.assign({"./awattar/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-e64977a9.js"),["assets/electricity_tariff-e64977a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tibber/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-2d8221f1.js"),["assets/electricity_tariff-2d8221f1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./voltego/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-9689c403.js"),["assets/electricity_tariff-9689c403.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.electricityTariff.type}/electricity_tariff.vue`),errorComponent:F})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function N(e,t,l,y,v,d){const u=a("openwb-base-heading");return s(),p(P,null,[n(u,null,{default:o(()=>[r(' Einstellungen für Modul "'+_(l.electricityTariff.name)+'" ',1)]),_:1}),(s(),k(V(d.myComponent),{electricityTariff:l.electricityTariff,"onUpdate:configuration":t[0]||(t[0]=f=>d.updateConfiguration(f))},null,40,["electricityTariff"]))],64)}const D=h(L,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffProxy.vue"]]),U={name:"OpenwbGeneralChargeConfig",mixins:[T],components:{OpenwbElectricityTariffProxy:D},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/retry_failed_phase_switches","openWB/general/chargemode_config/unbalanced_load","openWB/general/chargemode_config/unbalanced_load_limit","openWB/general/prices/bat","openWB/general/prices/grid","openWB/general/prices/pv","openWB/optional/et/provider","openWB/system/configurable/electricity_tariffs"]}},computed:{electricityTariffList(){return this.$store.state.mqtt["openWB/system/configurable/electricity_tariffs"]}},methods:{getElectricityTariffDefaultConfiguration(e){const t=this.electricityTariffList.find(l=>l.value==e);return Object.prototype.hasOwnProperty.call(t,"defaults")?{...t.defaults}:(console.warn("no default configuration found for electricity tariff type!",e),{})},updateSelectedElectricityTariff(e){this.updateState("openWB/optional/et/provider",e,"type"),this.updateState("openWB/optional/et/provider",this.getElectricityTariffDefaultConfiguration(e))},updateConfiguration(e,t){console.debug("updateConfiguration",e,t),this.updateState(e,t.value,t.object)}}},Z={class:"generalChargeConfig"},j={name:"generalChargeConfigForm"},I={key:0},R={key:1},x=c("br",null,null,-1),G=c("br",null,null,-1),J=c("hr",null,null,-1),K=c("br",null,null,-1),H={key:0},M={key:1},Q=c("br",null,null,-1),X={key:0};function Y(e,t,l,y,v,d){const u=a("openwb-base-alert"),f=a("openwb-base-button-group-input"),g=a("openwb-base-range-input"),w=a("openwb-base-heading"),m=a("openwb-base-number-input"),B=a("openwb-base-card"),S=a("openwb-base-select-input"),z=a("openwb-electricity-tariff-proxy"),C=a("openwb-base-submit-buttons");return s(),p("div",Z,[c("form",j,[n(B,{title:"Allgemein"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",I,[n(u,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",R,[n(f,{title:"Begrenzung der Schieflast",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"],"onUpdate:modelValue":t[0]||(t[0]=i=>e.updateState("openWB/general/chargemode_config/unbalanced_load",i))},{help:o(()=>[r(" Wenn diese Option aktiviert ist, werden nicht-dreiphasige Ladevorgänge so geregelt, dass am Netzanschlusspunkt (EVU-Zähler) die eingestellte Grenze für die Schieflast nicht überschritten wird. Hierfür muss der EVU-Zähler einzelne Phasenströme bereitstellen!"),x,r(' Weiterhin müssen bei den Ladepunkten sowie Fahrzeugen sämtliche Angaben zur Anzahl angeschlossener/unterstützter Phasen und der Phasenrotation hinterlegt werden, damit der Regelung bekannt ist, welcher Ladevorgang welche Phase am Netzanschluss beeinflusst. siehe "Konfiguration - Ladepunkte -> elektrischer Anschluss - Phase 1" und "Konfiguration - Fahrzeuge -> Fahrzeug-Profile" ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"]?(s(),k(g,{key:0,title:"Erlaubte Schieflast",min:10,max:32,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load_limit"],"onUpdate:modelValue":t[1]||(t[1]=i=>e.updateState("openWB/general/chargemode_config/unbalanced_load_limit",i))},{help:o(()=>[r(" Hiermit wird festgelegt, welche Schieflast am Netzanschlusspunkt erlaubt ist. Bei Überschreitung werden gezielt einzelne Ladevorgänge in der Leistung begrenzt. ")]),_:1},8,["model-value"])):W("",!0),n(f,{title:"Phasenumschaltung wiederholt anstoßen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/retry_failed_phase_switches"],"onUpdate:modelValue":t[2]||(t[2]=i=>e.updateState("openWB/general/chargemode_config/retry_failed_phase_switches",i))},{help:o(()=>[r(" Wenn diese Option aktiviert ist, werden bis zu drei Umschaltversuche vorgenommen, wenn die vorgegebene und genutzte Phasenzahl nicht übereinstimmen. Wird die Option deaktiviert, wird nur eine Umschaltung durchgeführt."),G,r(" Die gezählten Fehlversuche werden mit dem Abstecken zurückgesetzt. ")]),_:1},8,["model-value"]),J,n(w,null,{help:o(()=>[r(" Zur Berechnung der Ladekosten im Lade-Log werden stundenweise die Anteile der Stromquellen (Speicher, Netz, PV) berechnet und mit den hier angegebenen Preisen multipliziert."),K,r(" Ist die Abrechnung über das Ladeprotokoll, z.B. mit dem Arbeitgeber, vereinbart, ist bei allen drei Feldern der vereinbarte Preis einzutragen. ")]),default:o(()=>[r(" Berechnung der Ladekosten ")]),_:1}),n(m,{title:"Preis für Netzbezug",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/grid"]*1e5,"onUpdate:modelValue":t[3]||(t[3]=i=>e.updateState("openWB/general/prices/grid",parseFloat((i/1e5).toFixed(7))))},{help:o(()=>[r(" Ist ein Anbieter für variable Stromtarife konfiguriert, wird statt des hier angegebenen Netzpreises der dynamische Strompreis des Anbieters verwendet (stündliche Aktualisierung durch den Anbieter). ")]),_:1},8,["model-value"]),n(m,{title:"Preis für Speicherentladung",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/bat"]*1e5,"onUpdate:modelValue":t[4]||(t[4]=i=>e.updateState("openWB/general/prices/bat",parseFloat((i/1e5).toFixed(7))))},null,8,["model-value"]),n(m,{title:"Preis für PV-Strom",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/pv"]*1e5,"onUpdate:modelValue":t[5]||(t[5]=i=>e.updateState("openWB/general/prices/pv",parseFloat((i/1e5).toFixed(7))))},null,8,["model-value"])]))]),_:1}),n(B,{title:"Optional"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",H,[n(u,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",M,[n(w,null,{default:o(()=>[r(" Variable Stromtarife ")]),_:1}),n(u,{subtype:"info"},{default:o(()=>[r(" Bei Sofort- und Zeitladen wird nur geladen, wenn der Strompreis unter dem maximalen angegeben Strompreis liegt. Für Zielladen wird die Ladedauer ermittelt und dann zu den günstigsten Stunden geladen."),Q,r(" Wenn keine Preise abgefragt werden können, wird bei Sofort- und Zeitladen immer geladen und bei Zielladen zunächst mit PV-Überschuss und zum Erreichen des Zieltermins mit Netzstrom. ")]),_:1}),n(S,{class:"mb-2",title:"Anbieter",options:d.electricityTariffList,"model-value":e.$store.state.mqtt["openWB/optional/et/provider"]?e.$store.state.mqtt["openWB/optional/et/provider"].type:"","onUpdate:modelValue":t[6]||(t[6]=i=>d.updateSelectedElectricityTariff(i))},null,8,["options","model-value"]),e.$store.state.mqtt["openWB/optional/et/provider"]&&e.$store.state.mqtt["openWB/optional/et/provider"].type?(s(),p("div",X,[n(z,{electricityTariff:e.$store.state.mqtt["openWB/optional/et/provider"],"onUpdate:configuration":t[7]||(t[7]=i=>d.updateConfiguration("openWB/optional/et/provider",i))},null,8,["electricityTariff"])])):W("",!0)]))]),_:1}),n(C,{formName:"generalChargeConfigForm",onSave:t[8]||(t[8]=i=>e.$emit("save")),onReset:t[9]||(t[9]=i=>e.$emit("reset")),onDefaults:t[10]||(t[10]=i=>e.$emit("defaults"))})])])}const le=h(U,[["render",Y],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralChargeConfig.vue"]]);export{le as default}; +import{_ as b,C as T}from"./index-720fb9ac.js";import{_ as $}from"./dynamic-import-helper-be004503.js";import{_ as h,q as a,k as s,l as p,B as n,M as o,x as r,y as _,u as c,a1 as E,z as k,a2 as V,I as P,A as W}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const q={name:"ElectricityTariffConfigFallback",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},A={class:"backup-cloud-fallback"};function O(e,t,l,y,v,d){const u=a("openwb-base-alert"),f=a("openwb-base-textarea");return s(),p("div",A,[n(u,{subtype:"warning"},{default:o(()=>[r(' Es wurde keine Konfigurationsseite für den Anbieter "'+_(l.electricityTariff.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(f,{title:"Konfiguration",subtype:"json","model-value":l.electricityTariff.configuration,"onUpdate:modelValue":t[0]||(t[0]=g=>d.updateConfiguration(g,"configuration"))},{help:o(()=>[r(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(u,{subtype:"info"},{default:o(()=>[c("pre",null,_(JSON.stringify(l.electricityTariff.configuration,void 0,2)),1)]),_:1})])}const F=h(q,[["render",O],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffConfigFallback.vue"]]),L={name:"OpenwbElectricityTariffProxy",emits:["update:configuration"],props:{electricityTariff:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading electricity tariff cloud: ${this.electricityTariff.type}`),E({loader:()=>$(Object.assign({"./awattar/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-e64977a9.js"),["assets/electricity_tariff-e64977a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tibber/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-2d8221f1.js"),["assets/electricity_tariff-2d8221f1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./voltego/electricity_tariff.vue":()=>b(()=>import("./electricity_tariff-9689c403.js"),["assets/electricity_tariff-9689c403.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.electricityTariff.type}/electricity_tariff.vue`),errorComponent:F})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function N(e,t,l,y,v,d){const u=a("openwb-base-heading");return s(),p(P,null,[n(u,null,{default:o(()=>[r(' Einstellungen für Modul "'+_(l.electricityTariff.name)+'" ',1)]),_:1}),(s(),k(V(d.myComponent),{electricityTariff:l.electricityTariff,"onUpdate:configuration":t[0]||(t[0]=f=>d.updateConfiguration(f))},null,40,["electricityTariff"]))],64)}const D=h(L,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/electricity_tariffs/OpenwbElectricityTariffProxy.vue"]]),U={name:"OpenwbGeneralChargeConfig",mixins:[T],components:{OpenwbElectricityTariffProxy:D},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/retry_failed_phase_switches","openWB/general/chargemode_config/unbalanced_load","openWB/general/chargemode_config/unbalanced_load_limit","openWB/general/prices/bat","openWB/general/prices/grid","openWB/general/prices/pv","openWB/optional/et/provider","openWB/system/configurable/electricity_tariffs"]}},computed:{electricityTariffList(){return this.$store.state.mqtt["openWB/system/configurable/electricity_tariffs"]}},methods:{getElectricityTariffDefaultConfiguration(e){const t=this.electricityTariffList.find(l=>l.value==e);return Object.prototype.hasOwnProperty.call(t,"defaults")?{...t.defaults}:(console.warn("no default configuration found for electricity tariff type!",e),{})},updateSelectedElectricityTariff(e){this.updateState("openWB/optional/et/provider",e,"type"),this.updateState("openWB/optional/et/provider",this.getElectricityTariffDefaultConfiguration(e))},updateConfiguration(e,t){console.debug("updateConfiguration",e,t),this.updateState(e,t.value,t.object)}}},Z={class:"generalChargeConfig"},j={name:"generalChargeConfigForm"},I={key:0},R={key:1},x=c("br",null,null,-1),G=c("br",null,null,-1),J=c("hr",null,null,-1),K=c("br",null,null,-1),H={key:0},M={key:1},Q=c("br",null,null,-1),X={key:0};function Y(e,t,l,y,v,d){const u=a("openwb-base-alert"),f=a("openwb-base-button-group-input"),g=a("openwb-base-range-input"),w=a("openwb-base-heading"),m=a("openwb-base-number-input"),B=a("openwb-base-card"),S=a("openwb-base-select-input"),z=a("openwb-electricity-tariff-proxy"),C=a("openwb-base-submit-buttons");return s(),p("div",Z,[c("form",j,[n(B,{title:"Allgemein"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",I,[n(u,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",R,[n(f,{title:"Begrenzung der Schieflast",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"],"onUpdate:modelValue":t[0]||(t[0]=i=>e.updateState("openWB/general/chargemode_config/unbalanced_load",i))},{help:o(()=>[r(" Wenn diese Option aktiviert ist, werden nicht-dreiphasige Ladevorgänge so geregelt, dass am Netzanschlusspunkt (EVU-Zähler) die eingestellte Grenze für die Schieflast nicht überschritten wird. Hierfür muss der EVU-Zähler einzelne Phasenströme bereitstellen!"),x,r(' Weiterhin müssen bei den Ladepunkten sowie Fahrzeugen sämtliche Angaben zur Anzahl angeschlossener/unterstützter Phasen und der Phasenrotation hinterlegt werden, damit der Regelung bekannt ist, welcher Ladevorgang welche Phase am Netzanschluss beeinflusst. siehe "Konfiguration - Ladepunkte -> elektrischer Anschluss - Phase 1" und "Konfiguration - Fahrzeuge -> Fahrzeug-Profile" ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"]?(s(),k(g,{key:0,title:"Erlaubte Schieflast",min:10,max:32,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load_limit"],"onUpdate:modelValue":t[1]||(t[1]=i=>e.updateState("openWB/general/chargemode_config/unbalanced_load_limit",i))},{help:o(()=>[r(" Hiermit wird festgelegt, welche Schieflast am Netzanschlusspunkt erlaubt ist. Bei Überschreitung werden gezielt einzelne Ladevorgänge in der Leistung begrenzt. ")]),_:1},8,["model-value"])):W("",!0),n(f,{title:"Phasenumschaltung wiederholt anstoßen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/retry_failed_phase_switches"],"onUpdate:modelValue":t[2]||(t[2]=i=>e.updateState("openWB/general/chargemode_config/retry_failed_phase_switches",i))},{help:o(()=>[r(" Wenn diese Option aktiviert ist, werden bis zu drei Umschaltversuche vorgenommen, wenn die vorgegebene und genutzte Phasenzahl nicht übereinstimmen. Wird die Option deaktiviert, wird nur eine Umschaltung durchgeführt."),G,r(" Die gezählten Fehlversuche werden mit dem Abstecken zurückgesetzt. ")]),_:1},8,["model-value"]),J,n(w,null,{help:o(()=>[r(" Zur Berechnung der Ladekosten im Lade-Log werden stundenweise die Anteile der Stromquellen (Speicher, Netz, PV) berechnet und mit den hier angegebenen Preisen multipliziert."),K,r(" Ist die Abrechnung über das Ladeprotokoll, z.B. mit dem Arbeitgeber, vereinbart, ist bei allen drei Feldern der vereinbarte Preis einzutragen. ")]),default:o(()=>[r(" Berechnung der Ladekosten ")]),_:1}),n(m,{title:"Preis für Netzbezug",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/grid"]*1e5,"onUpdate:modelValue":t[3]||(t[3]=i=>e.updateState("openWB/general/prices/grid",parseFloat((i/1e5).toFixed(7))))},{help:o(()=>[r(" Ist ein Anbieter für variable Stromtarife konfiguriert, wird statt des hier angegebenen Netzpreises der dynamische Strompreis des Anbieters verwendet (stündliche Aktualisierung durch den Anbieter). ")]),_:1},8,["model-value"]),n(m,{title:"Preis für Speicherentladung",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/bat"]*1e5,"onUpdate:modelValue":t[4]||(t[4]=i=>e.updateState("openWB/general/prices/bat",parseFloat((i/1e5).toFixed(7))))},null,8,["model-value"]),n(m,{title:"Preis für PV-Strom",step:.001,precision:3,unit:"ct/kWh","model-value":e.$store.state.mqtt["openWB/general/prices/pv"]*1e5,"onUpdate:modelValue":t[5]||(t[5]=i=>e.updateState("openWB/general/prices/pv",parseFloat((i/1e5).toFixed(7))))},null,8,["model-value"])]))]),_:1}),n(B,{title:"Optional"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(s(),p("div",H,[n(u,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(s(),p("div",M,[n(w,null,{default:o(()=>[r(" Variable Stromtarife ")]),_:1}),n(u,{subtype:"info"},{default:o(()=>[r(" Bei Sofort- und Zeitladen wird nur geladen, wenn der Strompreis unter dem maximalen angegeben Strompreis liegt. Für Zielladen wird die Ladedauer ermittelt und dann zu den günstigsten Stunden geladen."),Q,r(" Wenn keine Preise abgefragt werden können, wird bei Sofort- und Zeitladen immer geladen und bei Zielladen zunächst mit PV-Überschuss und zum Erreichen des Zieltermins mit Netzstrom. ")]),_:1}),n(S,{class:"mb-2",title:"Anbieter",options:d.electricityTariffList,"model-value":e.$store.state.mqtt["openWB/optional/et/provider"]?e.$store.state.mqtt["openWB/optional/et/provider"].type:"","onUpdate:modelValue":t[6]||(t[6]=i=>d.updateSelectedElectricityTariff(i))},null,8,["options","model-value"]),e.$store.state.mqtt["openWB/optional/et/provider"]&&e.$store.state.mqtt["openWB/optional/et/provider"].type?(s(),p("div",X,[n(z,{electricityTariff:e.$store.state.mqtt["openWB/optional/et/provider"],"onUpdate:configuration":t[7]||(t[7]=i=>d.updateConfiguration("openWB/optional/et/provider",i))},null,8,["electricityTariff"])])):W("",!0)]))]),_:1}),n(C,{formName:"generalChargeConfigForm",onSave:t[8]||(t[8]=i=>e.$emit("save")),onReset:t[9]||(t[9]=i=>e.$emit("reset")),onDefaults:t[10]||(t[10]=i=>e.$emit("defaults"))})])])}const le=h(U,[["render",Y],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralChargeConfig.vue"]]);export{le as default}; diff --git a/web/settings/assets/GeneralConfig-125226d5.js b/web/settings/assets/GeneralConfig-0a74292a.js similarity index 99% rename from web/settings/assets/GeneralConfig-125226d5.js rename to web/settings/assets/GeneralConfig-0a74292a.js index 9ccfdc2e66..416163ba62 100644 --- a/web/settings/assets/GeneralConfig-125226d5.js +++ b/web/settings/assets/GeneralConfig-0a74292a.js @@ -1 +1 @@ -import{_ as B,C as E}from"./index-b8f06cb8.js";import{_ as C}from"./dynamic-import-helper-be004503.js";import{l as D,X as O,Y as V,F as q}from"./vendor-fortawesome-9fdc06a9.js";import{_ as w,q as p,k as a,l as m,z as f,M as o,x as r,y as c,B as t,u as b,a1 as k,a2 as S,I as R,A as h}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const L={name:"WebThemeFallback",emits:["update:configuration"],props:{webTheme:{type:Object,required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},x={class:"web-theme-fallback"},P={key:1};function N(e,n,i,v,W,u){const s=p("openwb-base-alert"),d=p("openwb-base-textarea");return a(),m("div",x,[Object.keys(i.webTheme.configuration).length==0?(a(),f(s,{key:0,subtype:"info"},{default:o(()=>[r(' Das Web Theme "'+c(i.webTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(a(),m("div",P,[t(s,{subtype:"warning"},{default:o(()=>[r(' Es wurde keine Konfigurationsseite für das Web Theme "'+c(i.webTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(d,{title:"Theme Konfiguration",subtype:"json","model-value":i.webTheme.configuration,"onUpdate:modelValue":n[0]||(n[0]=g=>u.updateConfiguration(g,"configuration"))},{help:o(()=>[r(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),t(s,{subtype:"info"},{default:o(()=>[b("pre",null,c(JSON.stringify(i.webTheme.configuration,void 0,2)),1)]),_:1})]))])}const A=w(L,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeFallback.vue"]]);D.add(O,V);const F={name:"OpenwbWebThemeProxy",emits:["update:configuration"],props:{webTheme:{type:Object,required:!0}},components:{FontAwesomeIcon:q},computed:{myComponent(){return console.debug(`loading web theme: ${this.webTheme.name}`),k({loader:()=>C(Object.assign({}),`./${this.webTheme.type}/webTheme.vue`),errorComponent:A})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function U(e,n,i,v,W,u){const s=p("font-awesome-icon"),d=p("openwb-base-alert"),g=p("openwb-base-heading");return a(),m(R,null,[i.webTheme.official?(a(),f(d,{key:0,subtype:"success"},{default:o(()=>[t(s,{"fixed-width":"",icon:["fas","certificate"]}),r(' Das ausgewählte Web Theme "'+c(i.webTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(a(),f(d,{key:1,subtype:"info"},{default:o(()=>[t(s,{"fixed-width":"",icon:["fas","people-group"]}),r(" Das ausgewählte Theme wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ")]),_:1})),t(g,null,{default:o(()=>[r(' Einstellungen für Web Theme "'+c(i.webTheme.name)+'" ',1)]),_:1}),(a(),f(S(u.myComponent),{webTheme:i.webTheme,"onUpdate:configuration":n[0]||(n[0]=_=>u.updateConfiguration(_))},null,40,["webTheme"]))],64)}const j=w(F,[["render",U],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeProxy.vue"]]),M={name:"RippleControlReceiverConfigFallback",emits:["update:configuration"],props:{rippleControlReceiver:{type:Object,required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},G={class:"ripple-control-receiver-fallback"},I={key:1};function K(e,n,i,v,W,u){const s=p("openwb-base-alert"),d=p("openwb-base-textarea");return a(),m("div",G,[Object.keys(i.rippleControlReceiver.configuration).length==0?(a(),f(s,{key:0,subtype:"info"},{default:o(()=>[r(' Das RSE-Modul "'+c(i.rippleControlReceiver.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(a(),m("div",I,[t(s,{subtype:"warning"},{default:o(()=>[r(' Es wurde keine Konfigurationsseite für das RSE-Modul "'+c(i.rippleControlReceiver.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(d,{title:"Konfiguration",subtype:"json","model-value":i.rippleControlReceiver.configuration,"onUpdate:modelValue":n[0]||(n[0]=g=>u.updateConfiguration(g,"configuration"))},{help:o(()=>[r(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),t(s,{subtype:"info"},{default:o(()=>[b("pre",null,c(JSON.stringify(i.rippleControlReceiver.configuration,void 0,2)),1)]),_:1})]))])}const H=w(M,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/ripple_control_receivers/OpenwbRippleControlReceiverConfigFallback.vue"]]),J={name:"OpenwbRippleControlReceiverProxy",emits:["update:configuration","sendCommand"],props:{rippleControlReceiver:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading backup cloud: ${this.rippleControlReceiver.type}`),k({loader:()=>C(Object.assign({"./dimm_kit/ripple_control_receiver.vue":()=>B(()=>import("./ripple_control_receiver-fb934dec.js"),["assets/ripple_control_receiver-fb934dec.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./gpio/ripple_control_receiver.vue":()=>B(()=>import("./ripple_control_receiver-8b8f9ef4.js"),["assets/ripple_control_receiver-8b8f9ef4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.rippleControlReceiver.type}/ripple_control_receiver.vue`),errorComponent:H})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)},sendCommand(e){this.$emit("sendCommand",e)}}};function Z(e,n,i,v,W,u){const s=p("openwb-base-heading");return a(),m(R,null,[t(s,null,{default:o(()=>[r(' Einstellungen für RSE-Modul "'+c(i.rippleControlReceiver.name)+'" ',1)]),_:1}),(a(),f(S(u.myComponent),{rippleControlReceiver:i.rippleControlReceiver,"onUpdate:configuration":n[0]||(n[0]=d=>u.updateConfiguration(d)),onSendCommand:n[1]||(n[1]=d=>u.sendCommand(d))},null,40,["rippleControlReceiver"]))],64)}const X=w(J,[["render",Z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/ripple_control_receivers/OpenwbRippleControlReceiverProxy.vue"]]),Y={name:"OpenwbGeneralConfig",mixins:[E],components:{OpenwbWebThemeProxy:j,OpenwbRippleControlReceiverProxy:X},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/control_interval","openWB/general/grid_protection_configured","openWB/general/external_buttons_hw","openWB/general/modbus_control","openWB/general/notifications/selected","openWB/general/notifications/configuration","openWB/general/notifications/start_charging","openWB/general/notifications/stop_charging","openWB/general/notifications/plug","openWB/general/notifications/smart_home","openWB/general/price_kwh","openWB/general/range_unit","openWB/general/ripple_control_receiver/module","openWB/general/web_theme","openWB/system/configurable/ripple_control_receivers","openWB/system/configurable/web_themes"]}},computed:{webThemeList:{get(){return this.$store.state.mqtt["openWB/system/configurable/web_themes"]}},webThemeGroupList:{get(){let e=[{label:"openWB",options:[]},{label:"Community",options:[]}];return this.webThemeList.forEach(n=>{n.official===!0?e[0].options.push(n):e[1].options.push(n)}),e}},rippleControlReceiverList(){return this.$store.state.mqtt["openWB/system/configurable/ripple_control_receivers"]}},methods:{getWebThemeDefaults(e){const n=this.webThemeList.find(i=>i.value==e);return Object.prototype.hasOwnProperty.call(n,"defaults")?{...JSON.parse(JSON.stringify(n.defaults))}:(console.warn("no default configuration found for web theme type!",e),{})},updateSelectedWebTheme(e){this.updateState("openWB/general/web_theme",this.getWebThemeDefaults(e))},updateConfiguration(e,n){console.debug("updateConfiguration",e,n),this.updateState(e,n.value,n.object)},getRippleControlReceiverDefaultConfiguration(e){const n=this.rippleControlReceiverList.find(i=>i.value==e);return Object.prototype.hasOwnProperty.call(n,"defaults")?{...n.defaults}:(console.warn("no default configuration found for electricity tariff type!",e),{})},updateSelectedRippleControlReceiverModule(e){this.updateState("openWB/general/ripple_control_receiver/module",e,"type"),this.updateState("openWB/general/ripple_control_receiver/module",this.getRippleControlReceiverDefaultConfiguration(e))}}},Q={class:"generalConfig"},ee={name:"generalConfigForm"},ne=b("br",null,null,-1),te=b("br",null,null,-1),oe=b("br",null,null,-1),re=b("a",{href:"https://openwb.de/main/?page_id=1025",target:"_blank",rel:"noopener noreferrer"}," Homepage ",-1),ie=b("a",{href:"https://openwb.de/main/wp-content/uploads/2023/10/ModbusTCP-openWB-series2-Pro-1.pdf",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),ae={key:1},le={key:0},se={key:1},ue=b("br",null,null,-1),de=b("span",{class:"text-danger"},' Nicht nur die Regelung der PV geführten Ladung, sondern auch die Ladestromänderung, beispielsweise “Stop“ etc., werden dann nur noch in diesem Intervall ausgeführt. Die Regelung wird insgesamt träger. Solange es keinen triftigen Grund gibt, sollte "Normal" gewählt werden. ',-1),pe=b("br",null,null,-1),me=b("span",{class:"text-danger"}," Die Option ist nur aktiv, wenn der EVU-Zähler die Frequenz übermittelt. ",-1),be=b("hr",null,null,-1),ge={key:2},ce={key:0},fe={key:1},_e={key:0},he=b("hr",null,null,-1);function we(e,n,i,v,W,u){const s=p("openwb-base-alert"),d=p("openwb-base-button-group-input"),g=p("openwb-base-card"),_=p("openwb-base-heading"),y=p("openwb-base-select-input"),T=p("openwb-ripple-control-receiver-proxy"),$=p("openwb-web-theme-proxy"),z=p("openwb-base-submit-buttons");return a(),m("div",Q,[b("form",ee,[t(g,{title:"Steuerungsmodus"},{default:o(()=>[t(s,{subtype:"info"},{default:o(()=>[r(' Wird für den Steuerungsmodus "primary" gewählt, übernimmt diese openWB die alleinige Regelung und steuert ggf. vorhandene weitere openWB (z.B. externe openWB im Steuermodus secondary, openWB Pro, Satellit u.a.) fern. Sie werden in den Ladepunkt-Einstellungen der primary-openWB hinzugefügt. '),ne,te,r(' Wird für den Steuerungsmodus "secondary" gewählt, übernimmt diese openWB keine Regelung und muss von einer anderen primary openWB ferngesteuert werden. Wichtig ist, dass in der secondary-openWB eine "interne openWB" mit der korrekten Bauart (= openWB-Hardwarevariante z.B. "Custom, Standard, Standard+, Duo, Buchse") konfiguriert ist. Bei einer Duo sind zwei "interne openWB" zu konfigurieren. Im "secondary"-Modus bleiben alle ausgeblendeten Einstellungen unbeachtet.'),oe,r(" Eine bebilderte Anleitung zur Konfiguration der Ladepunkte findest Du auf der "),re,r(". ")]),_:1}),t(d,{title:"Steuerungsmodus",buttons:[{buttonValue:!1,text:"primary",class:"btn-outline-danger"},{buttonValue:!0,text:"secondary",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/extern"],"onUpdate:modelValue":n[0]||(n[0]=l=>e.updateState("openWB/general/extern",l))},null,8,["model-value"]),e.$store.state.mqtt["openWB/general/extern"]===!0?(a(),f(d,{key:0,title:"Steuerung über Modbus als secondary",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/modbus_control"],"onUpdate:modelValue":n[1]||(n[1]=l=>e.updateState("openWB/general/modbus_control",l))},{help:o(()=>[r(" Im secondary-Modus kann die openWB über die Modbus-Schnittstelle gesteuert werden. Die Register sind "),ie,r(" dokumentiert. Bei aktivierter Modbus-Schnittstelle darf die openWB nicht von einer primary-openWB gesteuert werden. ")]),_:1},8,["model-value"])):h("",!0),e.$store.state.mqtt["openWB/general/extern"]===!0&&e.$store.state.mqtt["openWB/general/modbus_control"]!==!0?(a(),m("div",ae,[t(s,{subtype:"info"},{default:o(()=>[r(' Wenn die Steuerung über Modbus auf "Aus" geändert wird, muss danach ein Neustart durchgeführt werden! ')]),_:1})])):h("",!0)]),_:1}),t(g,{title:"Hardware"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(a(),m("div",le,[t(s,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),m("div",se,[t(d,{title:"Geschwindigkeit Regelintervall",buttons:[{buttonValue:10,text:"Normal",class:"btn-outline-success"},{buttonValue:20,text:"Langsam",class:"btn-outline-warning"},{buttonValue:60,text:"Sehr Langsam",class:"btn-outline-danger"}],"model-value":e.$store.state.mqtt["openWB/general/control_interval"],"onUpdate:modelValue":n[2]||(n[2]=l=>e.updateState("openWB/general/control_interval",l))},{help:o(()=>[r(' Sollten Probleme oder Fehlermeldungen auftauchen, stelle bitte zunächst das Regelintervall auf "Normal". Werden Module genutzt, welche z.B. eine Online-API zur Abfrage nutzen (höhere Latenzzeiten) oder möchte man weniger Regeleingriffe, so kann man das Regelintervall auf "Langsam" (20 Sekunden) herabsetzen. Die Einstellung „Sehr Langsam“ führt zu einer Regelzeit von 60 Sekunden.'),ue,de]),_:1},8,["model-value"]),t(d,{title:"Netzschutz",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/grid_protection_configured"],"onUpdate:modelValue":n[3]||(n[3]=l=>e.updateState("openWB/general/grid_protection_configured",l))},{help:o(()=>[r(' Diese Option ist standardmäßig aktiviert und sollte so belassen werden. Bei Unterschreitung einer kritischen Frequenz des Stromnetzes wird die Ladung nach einer zufälligen Zeit zwischen 1 und 90 Sekunden pausiert. Der Lademodus wechselt auf "Stop". Sobald die Frequenz wieder in einem normalen Bereich ist wird automatisch der zuletzt gewählte Lademodus wieder aktiviert. Ebenso wird die Ladung bei Überschreiten von 51,8 Hz unterbrochen. Dies ist dann der Fall, wenn der Energieversorger Wartungsarbeiten am (Teil-)Netz durchführt und auf einen vorübergehenden Generator-Betrieb umschaltet. Die Erhöhung der Frequenz wird durchgeführt, um die PV Anlagen abzuschalten.'),pe,me]),_:1},8,["model-value"])])),be,t(_,{class:"mt-0"},{default:o(()=>[r(" Steuerbare Verbrauchseinrichtung ")]),_:1}),t(s,{sub_type:"info"},{default:o(()=>[r(' Aktuell unterstützt openWB die eingehende Steuerung als "Steuerbare Verbrauchseinrichtung" nur über potentialfreie Kontakte (Rundsteuerempfänger, RSE). Ebenfalls können derzeit bei Auslösung des RSE nur alle Ladevorgänge komplett beendet werden. Die Unterstützung von "Dimmung" im Sinne von §14a EnWG wird umgesetzt, sobald wir weitere Informationen von den Netzbetreibern erhalten, wie die Ansteuerung technisch umgesetzt wird. ')]),_:1}),t(y,{class:"mb-2",title:"Anbindung RSE-Kontakt",options:u.rippleControlReceiverList,"model-value":e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"]?e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"].type:"","onUpdate:modelValue":n[4]||(n[4]=l=>u.updateSelectedRippleControlReceiverModule(l))},null,8,["options","model-value"]),e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"]&&e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"].type?(a(),m("div",ge,[t(T,{rippleControlReceiver:e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"],"onUpdate:configuration":n[5]||(n[5]=l=>u.updateConfiguration("openWB/general/ripple_control_receiver/module",l))},null,8,["rippleControlReceiver"])])):h("",!0)]),_:1}),t(g,{title:"Darstellung"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(a(),m("div",ce,[t(s,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),m("div",fe,[t(_,{class:"mt-0"},{default:o(()=>[r(" Hauptseite ")]),_:1}),e.$store.state.mqtt["openWB/general/web_theme"]!==void 0?(a(),m("div",_e,[t(y,{class:"mb-2",title:"Theme",groups:u.webThemeGroupList,"model-value":e.$store.state.mqtt["openWB/general/web_theme"].type,"onUpdate:modelValue":n[6]||(n[6]=l=>u.updateSelectedWebTheme(l))},null,8,["groups","model-value"]),e.$store.state.mqtt["openWB/general/web_theme"].type?(a(),f($,{key:0,webTheme:e.$store.state.mqtt["openWB/general/web_theme"],"onUpdate:configuration":n[7]||(n[7]=l=>u.updateConfiguration("openWB/general/web_theme",l))},null,8,["webTheme"])):h("",!0)])):h("",!0),he,t(_,null,{default:o(()=>[r(" Lade-Log ")]),_:1}),t(d,{title:"Einheit für Entfernungen","model-value":e.$store.state.mqtt["openWB/general/range_unit"],"onUpdate:modelValue":n[8]||(n[8]=l=>e.updateState("openWB/general/range_unit",l)),buttons:[{buttonValue:"km",text:"Kilometer"},{buttonValue:"mi",text:"Meilen"}]},null,8,["model-value"])]))]),_:1}),t(z,{formName:"generalConfigForm",onSave:n[9]||(n[9]=l=>e.$emit("save")),onReset:n[10]||(n[10]=l=>e.$emit("reset")),onDefaults:n[11]||(n[11]=l=>e.$emit("defaults"))})])])}const Te=w(Y,[["render",we],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralConfig.vue"]]);export{Te as default}; +import{_ as B,C as E}from"./index-720fb9ac.js";import{_ as C}from"./dynamic-import-helper-be004503.js";import{l as D,X as O,Y as V,F as q}from"./vendor-fortawesome-9fdc06a9.js";import{_ as w,q as p,k as a,l as m,z as f,M as o,x as r,y as c,B as t,u as b,a1 as k,a2 as S,I as R,A as h}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const L={name:"WebThemeFallback",emits:["update:configuration"],props:{webTheme:{type:Object,required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},x={class:"web-theme-fallback"},P={key:1};function N(e,n,i,v,W,u){const s=p("openwb-base-alert"),d=p("openwb-base-textarea");return a(),m("div",x,[Object.keys(i.webTheme.configuration).length==0?(a(),f(s,{key:0,subtype:"info"},{default:o(()=>[r(' Das Web Theme "'+c(i.webTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(a(),m("div",P,[t(s,{subtype:"warning"},{default:o(()=>[r(' Es wurde keine Konfigurationsseite für das Web Theme "'+c(i.webTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(d,{title:"Theme Konfiguration",subtype:"json","model-value":i.webTheme.configuration,"onUpdate:modelValue":n[0]||(n[0]=g=>u.updateConfiguration(g,"configuration"))},{help:o(()=>[r(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),t(s,{subtype:"info"},{default:o(()=>[b("pre",null,c(JSON.stringify(i.webTheme.configuration,void 0,2)),1)]),_:1})]))])}const A=w(L,[["render",N],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeFallback.vue"]]);D.add(O,V);const F={name:"OpenwbWebThemeProxy",emits:["update:configuration"],props:{webTheme:{type:Object,required:!0}},components:{FontAwesomeIcon:q},computed:{myComponent(){return console.debug(`loading web theme: ${this.webTheme.name}`),k({loader:()=>C(Object.assign({}),`./${this.webTheme.type}/webTheme.vue`),errorComponent:A})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function U(e,n,i,v,W,u){const s=p("font-awesome-icon"),d=p("openwb-base-alert"),g=p("openwb-base-heading");return a(),m(R,null,[i.webTheme.official?(a(),f(d,{key:0,subtype:"success"},{default:o(()=>[t(s,{"fixed-width":"",icon:["fas","certificate"]}),r(' Das ausgewählte Web Theme "'+c(i.webTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(a(),f(d,{key:1,subtype:"info"},{default:o(()=>[t(s,{"fixed-width":"",icon:["fas","people-group"]}),r(" Das ausgewählte Theme wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ")]),_:1})),t(g,null,{default:o(()=>[r(' Einstellungen für Web Theme "'+c(i.webTheme.name)+'" ',1)]),_:1}),(a(),f(S(u.myComponent),{webTheme:i.webTheme,"onUpdate:configuration":n[0]||(n[0]=_=>u.updateConfiguration(_))},null,40,["webTheme"]))],64)}const j=w(F,[["render",U],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/web_themes/OpenwbWebThemeProxy.vue"]]),M={name:"RippleControlReceiverConfigFallback",emits:["update:configuration"],props:{rippleControlReceiver:{type:Object,required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},G={class:"ripple-control-receiver-fallback"},I={key:1};function K(e,n,i,v,W,u){const s=p("openwb-base-alert"),d=p("openwb-base-textarea");return a(),m("div",G,[Object.keys(i.rippleControlReceiver.configuration).length==0?(a(),f(s,{key:0,subtype:"info"},{default:o(()=>[r(' Das RSE-Modul "'+c(i.rippleControlReceiver.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(a(),m("div",I,[t(s,{subtype:"warning"},{default:o(()=>[r(' Es wurde keine Konfigurationsseite für das RSE-Modul "'+c(i.rippleControlReceiver.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),t(d,{title:"Konfiguration",subtype:"json","model-value":i.rippleControlReceiver.configuration,"onUpdate:modelValue":n[0]||(n[0]=g=>u.updateConfiguration(g,"configuration"))},{help:o(()=>[r(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),t(s,{subtype:"info"},{default:o(()=>[b("pre",null,c(JSON.stringify(i.rippleControlReceiver.configuration,void 0,2)),1)]),_:1})]))])}const H=w(M,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/ripple_control_receivers/OpenwbRippleControlReceiverConfigFallback.vue"]]),J={name:"OpenwbRippleControlReceiverProxy",emits:["update:configuration","sendCommand"],props:{rippleControlReceiver:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading backup cloud: ${this.rippleControlReceiver.type}`),k({loader:()=>C(Object.assign({"./dimm_kit/ripple_control_receiver.vue":()=>B(()=>import("./ripple_control_receiver-fb934dec.js"),["assets/ripple_control_receiver-fb934dec.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./gpio/ripple_control_receiver.vue":()=>B(()=>import("./ripple_control_receiver-8b8f9ef4.js"),["assets/ripple_control_receiver-8b8f9ef4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.rippleControlReceiver.type}/ripple_control_receiver.vue`),errorComponent:H})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)},sendCommand(e){this.$emit("sendCommand",e)}}};function Z(e,n,i,v,W,u){const s=p("openwb-base-heading");return a(),m(R,null,[t(s,null,{default:o(()=>[r(' Einstellungen für RSE-Modul "'+c(i.rippleControlReceiver.name)+'" ',1)]),_:1}),(a(),f(S(u.myComponent),{rippleControlReceiver:i.rippleControlReceiver,"onUpdate:configuration":n[0]||(n[0]=d=>u.updateConfiguration(d)),onSendCommand:n[1]||(n[1]=d=>u.sendCommand(d))},null,40,["rippleControlReceiver"]))],64)}const X=w(J,[["render",Z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/ripple_control_receivers/OpenwbRippleControlReceiverProxy.vue"]]),Y={name:"OpenwbGeneralConfig",mixins:[E],components:{OpenwbWebThemeProxy:j,OpenwbRippleControlReceiverProxy:X},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/control_interval","openWB/general/grid_protection_configured","openWB/general/external_buttons_hw","openWB/general/modbus_control","openWB/general/notifications/selected","openWB/general/notifications/configuration","openWB/general/notifications/start_charging","openWB/general/notifications/stop_charging","openWB/general/notifications/plug","openWB/general/notifications/smart_home","openWB/general/price_kwh","openWB/general/range_unit","openWB/general/ripple_control_receiver/module","openWB/general/web_theme","openWB/system/configurable/ripple_control_receivers","openWB/system/configurable/web_themes"]}},computed:{webThemeList:{get(){return this.$store.state.mqtt["openWB/system/configurable/web_themes"]}},webThemeGroupList:{get(){let e=[{label:"openWB",options:[]},{label:"Community",options:[]}];return this.webThemeList.forEach(n=>{n.official===!0?e[0].options.push(n):e[1].options.push(n)}),e}},rippleControlReceiverList(){return this.$store.state.mqtt["openWB/system/configurable/ripple_control_receivers"]}},methods:{getWebThemeDefaults(e){const n=this.webThemeList.find(i=>i.value==e);return Object.prototype.hasOwnProperty.call(n,"defaults")?{...JSON.parse(JSON.stringify(n.defaults))}:(console.warn("no default configuration found for web theme type!",e),{})},updateSelectedWebTheme(e){this.updateState("openWB/general/web_theme",this.getWebThemeDefaults(e))},updateConfiguration(e,n){console.debug("updateConfiguration",e,n),this.updateState(e,n.value,n.object)},getRippleControlReceiverDefaultConfiguration(e){const n=this.rippleControlReceiverList.find(i=>i.value==e);return Object.prototype.hasOwnProperty.call(n,"defaults")?{...n.defaults}:(console.warn("no default configuration found for electricity tariff type!",e),{})},updateSelectedRippleControlReceiverModule(e){this.updateState("openWB/general/ripple_control_receiver/module",e,"type"),this.updateState("openWB/general/ripple_control_receiver/module",this.getRippleControlReceiverDefaultConfiguration(e))}}},Q={class:"generalConfig"},ee={name:"generalConfigForm"},ne=b("br",null,null,-1),te=b("br",null,null,-1),oe=b("br",null,null,-1),re=b("a",{href:"https://openwb.de/main/?page_id=1025",target:"_blank",rel:"noopener noreferrer"}," Homepage ",-1),ie=b("a",{href:"https://openwb.de/main/wp-content/uploads/2023/10/ModbusTCP-openWB-series2-Pro-1.pdf",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),ae={key:1},le={key:0},se={key:1},ue=b("br",null,null,-1),de=b("span",{class:"text-danger"},' Nicht nur die Regelung der PV geführten Ladung, sondern auch die Ladestromänderung, beispielsweise “Stop“ etc., werden dann nur noch in diesem Intervall ausgeführt. Die Regelung wird insgesamt träger. Solange es keinen triftigen Grund gibt, sollte "Normal" gewählt werden. ',-1),pe=b("br",null,null,-1),me=b("span",{class:"text-danger"}," Die Option ist nur aktiv, wenn der EVU-Zähler die Frequenz übermittelt. ",-1),be=b("hr",null,null,-1),ge={key:2},ce={key:0},fe={key:1},_e={key:0},he=b("hr",null,null,-1);function we(e,n,i,v,W,u){const s=p("openwb-base-alert"),d=p("openwb-base-button-group-input"),g=p("openwb-base-card"),_=p("openwb-base-heading"),y=p("openwb-base-select-input"),T=p("openwb-ripple-control-receiver-proxy"),$=p("openwb-web-theme-proxy"),z=p("openwb-base-submit-buttons");return a(),m("div",Q,[b("form",ee,[t(g,{title:"Steuerungsmodus"},{default:o(()=>[t(s,{subtype:"info"},{default:o(()=>[r(' Wird für den Steuerungsmodus "primary" gewählt, übernimmt diese openWB die alleinige Regelung und steuert ggf. vorhandene weitere openWB (z.B. externe openWB im Steuermodus secondary, openWB Pro, Satellit u.a.) fern. Sie werden in den Ladepunkt-Einstellungen der primary-openWB hinzugefügt. '),ne,te,r(' Wird für den Steuerungsmodus "secondary" gewählt, übernimmt diese openWB keine Regelung und muss von einer anderen primary openWB ferngesteuert werden. Wichtig ist, dass in der secondary-openWB eine "interne openWB" mit der korrekten Bauart (= openWB-Hardwarevariante z.B. "Custom, Standard, Standard+, Duo, Buchse") konfiguriert ist. Bei einer Duo sind zwei "interne openWB" zu konfigurieren. Im "secondary"-Modus bleiben alle ausgeblendeten Einstellungen unbeachtet.'),oe,r(" Eine bebilderte Anleitung zur Konfiguration der Ladepunkte findest Du auf der "),re,r(". ")]),_:1}),t(d,{title:"Steuerungsmodus",buttons:[{buttonValue:!1,text:"primary",class:"btn-outline-danger"},{buttonValue:!0,text:"secondary",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/extern"],"onUpdate:modelValue":n[0]||(n[0]=l=>e.updateState("openWB/general/extern",l))},null,8,["model-value"]),e.$store.state.mqtt["openWB/general/extern"]===!0?(a(),f(d,{key:0,title:"Steuerung über Modbus als secondary",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/modbus_control"],"onUpdate:modelValue":n[1]||(n[1]=l=>e.updateState("openWB/general/modbus_control",l))},{help:o(()=>[r(" Im secondary-Modus kann die openWB über die Modbus-Schnittstelle gesteuert werden. Die Register sind "),ie,r(" dokumentiert. Bei aktivierter Modbus-Schnittstelle darf die openWB nicht von einer primary-openWB gesteuert werden. ")]),_:1},8,["model-value"])):h("",!0),e.$store.state.mqtt["openWB/general/extern"]===!0&&e.$store.state.mqtt["openWB/general/modbus_control"]!==!0?(a(),m("div",ae,[t(s,{subtype:"info"},{default:o(()=>[r(' Wenn die Steuerung über Modbus auf "Aus" geändert wird, muss danach ein Neustart durchgeführt werden! ')]),_:1})])):h("",!0)]),_:1}),t(g,{title:"Hardware"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(a(),m("div",le,[t(s,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),m("div",se,[t(d,{title:"Geschwindigkeit Regelintervall",buttons:[{buttonValue:10,text:"Normal",class:"btn-outline-success"},{buttonValue:20,text:"Langsam",class:"btn-outline-warning"},{buttonValue:60,text:"Sehr Langsam",class:"btn-outline-danger"}],"model-value":e.$store.state.mqtt["openWB/general/control_interval"],"onUpdate:modelValue":n[2]||(n[2]=l=>e.updateState("openWB/general/control_interval",l))},{help:o(()=>[r(' Sollten Probleme oder Fehlermeldungen auftauchen, stelle bitte zunächst das Regelintervall auf "Normal". Werden Module genutzt, welche z.B. eine Online-API zur Abfrage nutzen (höhere Latenzzeiten) oder möchte man weniger Regeleingriffe, so kann man das Regelintervall auf "Langsam" (20 Sekunden) herabsetzen. Die Einstellung „Sehr Langsam“ führt zu einer Regelzeit von 60 Sekunden.'),ue,de]),_:1},8,["model-value"]),t(d,{title:"Netzschutz",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/grid_protection_configured"],"onUpdate:modelValue":n[3]||(n[3]=l=>e.updateState("openWB/general/grid_protection_configured",l))},{help:o(()=>[r(' Diese Option ist standardmäßig aktiviert und sollte so belassen werden. Bei Unterschreitung einer kritischen Frequenz des Stromnetzes wird die Ladung nach einer zufälligen Zeit zwischen 1 und 90 Sekunden pausiert. Der Lademodus wechselt auf "Stop". Sobald die Frequenz wieder in einem normalen Bereich ist wird automatisch der zuletzt gewählte Lademodus wieder aktiviert. Ebenso wird die Ladung bei Überschreiten von 51,8 Hz unterbrochen. Dies ist dann der Fall, wenn der Energieversorger Wartungsarbeiten am (Teil-)Netz durchführt und auf einen vorübergehenden Generator-Betrieb umschaltet. Die Erhöhung der Frequenz wird durchgeführt, um die PV Anlagen abzuschalten.'),pe,me]),_:1},8,["model-value"])])),be,t(_,{class:"mt-0"},{default:o(()=>[r(" Steuerbare Verbrauchseinrichtung ")]),_:1}),t(s,{sub_type:"info"},{default:o(()=>[r(' Aktuell unterstützt openWB die eingehende Steuerung als "Steuerbare Verbrauchseinrichtung" nur über potentialfreie Kontakte (Rundsteuerempfänger, RSE). Ebenfalls können derzeit bei Auslösung des RSE nur alle Ladevorgänge komplett beendet werden. Die Unterstützung von "Dimmung" im Sinne von §14a EnWG wird umgesetzt, sobald wir weitere Informationen von den Netzbetreibern erhalten, wie die Ansteuerung technisch umgesetzt wird. ')]),_:1}),t(y,{class:"mb-2",title:"Anbindung RSE-Kontakt",options:u.rippleControlReceiverList,"model-value":e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"]?e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"].type:"","onUpdate:modelValue":n[4]||(n[4]=l=>u.updateSelectedRippleControlReceiverModule(l))},null,8,["options","model-value"]),e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"]&&e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"].type?(a(),m("div",ge,[t(T,{rippleControlReceiver:e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"],"onUpdate:configuration":n[5]||(n[5]=l=>u.updateConfiguration("openWB/general/ripple_control_receiver/module",l))},null,8,["rippleControlReceiver"])])):h("",!0)]),_:1}),t(g,{title:"Darstellung"},{default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(a(),m("div",ce,[t(s,{subtype:"info"},{default:o(()=>[r(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),m("div",fe,[t(_,{class:"mt-0"},{default:o(()=>[r(" Hauptseite ")]),_:1}),e.$store.state.mqtt["openWB/general/web_theme"]!==void 0?(a(),m("div",_e,[t(y,{class:"mb-2",title:"Theme",groups:u.webThemeGroupList,"model-value":e.$store.state.mqtt["openWB/general/web_theme"].type,"onUpdate:modelValue":n[6]||(n[6]=l=>u.updateSelectedWebTheme(l))},null,8,["groups","model-value"]),e.$store.state.mqtt["openWB/general/web_theme"].type?(a(),f($,{key:0,webTheme:e.$store.state.mqtt["openWB/general/web_theme"],"onUpdate:configuration":n[7]||(n[7]=l=>u.updateConfiguration("openWB/general/web_theme",l))},null,8,["webTheme"])):h("",!0)])):h("",!0),he,t(_,null,{default:o(()=>[r(" Lade-Log ")]),_:1}),t(d,{title:"Einheit für Entfernungen","model-value":e.$store.state.mqtt["openWB/general/range_unit"],"onUpdate:modelValue":n[8]||(n[8]=l=>e.updateState("openWB/general/range_unit",l)),buttons:[{buttonValue:"km",text:"Kilometer"},{buttonValue:"mi",text:"Meilen"}]},null,8,["model-value"])]))]),_:1}),t(z,{formName:"generalConfigForm",onSave:n[9]||(n[9]=l=>e.$emit("save")),onReset:n[10]||(n[10]=l=>e.$emit("reset")),onDefaults:n[11]||(n[11]=l=>e.$emit("defaults"))})])])}const Te=w(Y,[["render",we],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralConfig.vue"]]);export{Te as default}; diff --git a/web/settings/assets/HardwareInstallation-45a8a8a9.js b/web/settings/assets/HardwareInstallation-2c3ff39f.js similarity index 99% rename from web/settings/assets/HardwareInstallation-45a8a8a9.js rename to web/settings/assets/HardwareInstallation-2c3ff39f.js index 7e2c121d86..79a769335b 100644 --- a/web/settings/assets/HardwareInstallation-45a8a8a9.js +++ b/web/settings/assets/HardwareInstallation-2c3ff39f.js @@ -1 +1 @@ -import{l as N,d as U,t as G,Z as F,_ as H,P as J,O as Z,N as Q,F as X}from"./vendor-fortawesome-9fdc06a9.js";import{_ as e,C as Y}from"./index-b8f06cb8.js";import{_ as M}from"./dynamic-import-helper-be004503.js";import{_ as y,q as p,k as d,l as c,z as E,M as o,y as T,x as v,B as n,u as m,a1 as W,a2 as $,I as O,J as f,p as h,A as w,R as ee,S as _e}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const te={name:"DeviceFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},deviceType:String,componentId:{default:void 0},componentType:String},methods:{updateConfiguration(_,i=void 0){this.$emit("update:configuration",{value:_,object:i})}}},oe={class:"device-fallback"},ie={key:0},re={key:1},ne={key:1},ue={key:0},de={key:1};function ve(_,i,u,P,s,r){const I=p("openwb-base-alert"),L=p("openwb-base-textarea");return d(),c("div",oe,[Object.keys(u.configuration).length==0?(d(),E(I,{key:0,subtype:"info"},{default:o(()=>[u.componentType?(d(),c("span",ie,' Der Komponenten-Typ "'+T(u.componentType)+'" ',1)):(d(),c("span",re,'Der Gerät-Typ "'+T(u.deviceType)+'"',1)),v(" bietet keine Einstellungen. ")]),_:1})):(d(),c("div",ne,[n(I,{subtype:"warning"},{default:o(()=>[v(" Es wurde keine Konfigurationsseite für den "),u.componentType?(d(),c("span",ue,' Komponenten-Typ "'+T(u.componentType)+'" ',1)):(d(),c("span",de,'Geräte-Typ "'+T(u.deviceType)+'"',1)),v(" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ")]),_:1}),n(L,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":i[0]||(i[0]=A=>r.updateConfiguration(A,"configuration"))},{help:o(()=>[v(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(I,{subtype:"info"},{default:o(()=>[m("pre",null,T(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})]))])}const S=y(te,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbDeviceConfigFallback.vue"]]),ae={name:"OpenwbConfigProxy",emits:["update:configuration"],props:{deviceId:{required:!0},deviceType:{type:String,required:!0},componentId:{default:void 0},componentType:{type:String,default:void 0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading component: ${this.deviceType} / ${this.componentType}`),this.componentType!==void 0?W({loader:()=>M(Object.assign({"./alpha_ess/bat.vue":()=>e(()=>import("./bat-ec26cfad.js"),["assets/bat-ec26cfad.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./alpha_ess/counter.vue":()=>e(()=>import("./counter-5777261a.js"),["assets/counter-5777261a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./alpha_ess/device.vue":()=>e(()=>import("./device-422dcf91.js"),["assets/device-422dcf91.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./alpha_ess/inverter.vue":()=>e(()=>import("./inverter-13a811f8.js"),["assets/inverter-13a811f8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/bat.vue":()=>e(()=>import("./bat-7eb3e707.js"),["assets/bat-7eb3e707.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/counter.vue":()=>e(()=>import("./counter-be5c0579.js"),["assets/counter-be5c0579.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/device.vue":()=>e(()=>import("./device-e48fc6eb.js"),["assets/device-e48fc6eb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/external_inverter.vue":()=>e(()=>import("./external_inverter-a403039d.js"),["assets/external_inverter-a403039d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/inverter.vue":()=>e(()=>import("./inverter-918c88a8.js"),["assets/inverter-918c88a8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./benning/device.vue":()=>e(()=>import("./device-bb77aac5.js"),["assets/device-bb77aac5.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./benning/inverter.vue":()=>e(()=>import("./inverter-5f14ad8a.js"),["assets/inverter-5f14ad8a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./byd/bat.vue":()=>e(()=>import("./bat-f26e2844.js"),["assets/bat-f26e2844.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./byd/device.vue":()=>e(()=>import("./device-83d0d1d2.js"),["assets/device-83d0d1d2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./carlo_gavazzi/counter.vue":()=>e(()=>import("./counter-3d38653d.js"),["assets/counter-3d38653d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-efd97f38.js"),["assets/device-efd97f38.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./deye/bat.vue":()=>e(()=>import("./bat-5c1727b9.js"),["assets/bat-5c1727b9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./deye/counter.vue":()=>e(()=>import("./counter-ac1660a7.js"),["assets/counter-ac1660a7.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./deye/device.vue":()=>e(()=>import("./device-b2ed509d.js"),["assets/device-b2ed509d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./deye/inverter.vue":()=>e(()=>import("./inverter-5944e46d.js"),["assets/inverter-5944e46d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./discovergy/counter.vue":()=>e(()=>import("./counter-84d4687e.js"),["assets/counter-84d4687e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-d91608b1.js"),["assets/device-d91608b1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./discovergy/inverter.vue":()=>e(()=>import("./inverter-3c461e89.js"),["assets/inverter-3c461e89.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/bat.vue":()=>e(()=>import("./bat-c11283be.js"),["assets/bat-c11283be.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/counter.vue":()=>e(()=>import("./counter-bdd28188.js"),["assets/counter-bdd28188.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-a451e048.js"),["assets/device-a451e048.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/external_inverter.vue":()=>e(()=>import("./external_inverter-7c122784.js"),["assets/external_inverter-7c122784.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/inverter.vue":()=>e(()=>import("./inverter-63d3d5dd.js"),["assets/inverter-63d3d5dd.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./enphase/counter.vue":()=>e(()=>import("./counter-0ee0503f.js"),["assets/counter-0ee0503f.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./enphase/device.vue":()=>e(()=>import("./device-fa4ff080.js"),["assets/device-fa4ff080.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./enphase/inverter.vue":()=>e(()=>import("./inverter-cb6725eb.js"),["assets/inverter-cb6725eb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fems/bat.vue":()=>e(()=>import("./bat-9251ec29.js"),["assets/bat-9251ec29.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fems/counter.vue":()=>e(()=>import("./counter-3e31db9a.js"),["assets/counter-3e31db9a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fems/device.vue":()=>e(()=>import("./device-eb8d7119.js"),["assets/device-eb8d7119.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fems/inverter.vue":()=>e(()=>import("./inverter-0fedac4e.js"),["assets/inverter-0fedac4e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/bat.vue":()=>e(()=>import("./bat-1cd49cd6.js"),["assets/bat-1cd49cd6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/counter_s0.vue":()=>e(()=>import("./counter_s0-3aa644a5.js"),["assets/counter_s0-3aa644a5.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/counter_sm.vue":()=>e(()=>import("./counter_sm-9d608119.js"),["assets/counter_sm-9d608119.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/device.vue":()=>e(()=>import("./device-a0c2d57b.js"),["assets/device-a0c2d57b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/inverter.vue":()=>e(()=>import("./inverter-9bf3268a.js"),["assets/inverter-9bf3268a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/inverter_secondary.vue":()=>e(()=>import("./inverter_secondary-60af9f4d.js"),["assets/inverter_secondary-60af9f4d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./good_we/bat.vue":()=>e(()=>import("./bat-2263d450.js"),["assets/bat-2263d450.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./good_we/counter.vue":()=>e(()=>import("./counter-0ff1e2e2.js"),["assets/counter-0ff1e2e2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./good_we/device.vue":()=>e(()=>import("./device-4c06c2b2.js"),["assets/device-4c06c2b2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./good_we/inverter.vue":()=>e(()=>import("./inverter-ef42391b.js"),["assets/inverter-ef42391b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/bat.vue":()=>e(()=>import("./bat-aea1d8d1.js"),["assets/bat-aea1d8d1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/counter.vue":()=>e(()=>import("./counter-23ee69bc.js"),["assets/counter-23ee69bc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/device.vue":()=>e(()=>import("./device-94e477af.js"),["assets/device-94e477af.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/inverter.vue":()=>e(()=>import("./inverter-46fef3f8.js"),["assets/inverter-46fef3f8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei/bat.vue":()=>e(()=>import("./bat-70966508.js"),["assets/bat-70966508.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei/counter.vue":()=>e(()=>import("./counter-7434d2c1.js"),["assets/counter-7434d2c1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei/device.vue":()=>e(()=>import("./device-2ea31ec7.js"),["assets/device-2ea31ec7.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei/inverter.vue":()=>e(()=>import("./inverter-10120033.js"),["assets/inverter-10120033.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei_smartlogger/bat.vue":()=>e(()=>import("./bat-c2f21fa1.js"),["assets/bat-c2f21fa1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei_smartlogger/counter.vue":()=>e(()=>import("./counter-71272ccc.js"),["assets/counter-71272ccc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-05f612f2.js"),["assets/device-05f612f2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei_smartlogger/inverter.vue":()=>e(()=>import("./inverter-48159805.js"),["assets/inverter-48159805.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./janitza/counter.vue":()=>e(()=>import("./counter-0299bd85.js"),["assets/counter-0299bd85.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./janitza/device.vue":()=>e(()=>import("./device-f3eb75a3.js"),["assets/device-f3eb75a3.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./json/bat.vue":()=>e(()=>import("./bat-085ab9b8.js"),["assets/bat-085ab9b8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./json/counter.vue":()=>e(()=>import("./counter-a35d1907.js"),["assets/counter-a35d1907.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./json/device.vue":()=>e(()=>import("./device-3f06f01a.js"),["assets/device-3f06f01a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./json/inverter.vue":()=>e(()=>import("./inverter-23476c16.js"),["assets/inverter-23476c16.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko/counter.vue":()=>e(()=>import("./counter-0310470c.js"),["assets/counter-0310470c.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-ed3f1885.js"),["assets/device-ed3f1885.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko/inverter.vue":()=>e(()=>import("./inverter-66489b96.js"),["assets/inverter-66489b96.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-b31c67e4.js"),["assets/device-b31c67e4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko_old/inverter.vue":()=>e(()=>import("./inverter-424a738b.js"),["assets/inverter-424a738b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_plenticore/bat.vue":()=>e(()=>import("./bat-7b5aee06.js"),["assets/bat-7b5aee06.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_plenticore/counter.vue":()=>e(()=>import("./counter-0b44e253.js"),["assets/counter-0b44e253.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-77a56e1d.js"),["assets/device-77a56e1d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_plenticore/inverter.vue":()=>e(()=>import("./inverter-7e6e2822.js"),["assets/inverter-7e6e2822.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_sem/counter.vue":()=>e(()=>import("./counter-d398c1c5.js"),["assets/counter-d398c1c5.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-146e5f9d.js"),["assets/device-146e5f9d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-b80c9dca.js"),["assets/device-b80c9dca.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_steca/inverter.vue":()=>e(()=>import("./inverter-a067ba39.js"),["assets/inverter-a067ba39.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./lg/bat.vue":()=>e(()=>import("./bat-714247d6.js"),["assets/bat-714247d6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./lg/counter.vue":()=>e(()=>import("./counter-c3bfa028.js"),["assets/counter-c3bfa028.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./lg/device.vue":()=>e(()=>import("./device-2ff10261.js"),["assets/device-2ff10261.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./lg/inverter.vue":()=>e(()=>import("./inverter-738c2377.js"),["assets/inverter-738c2377.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/bat.vue":()=>e(()=>import("./bat-c7a57eab.js"),["assets/bat-c7a57eab.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/counter.vue":()=>e(()=>import("./counter-6adeeedb.js"),["assets/counter-6adeeedb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-4a2b6383.js"),["assets/device-4a2b6383.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/inverter.vue":()=>e(()=>import("./inverter-60cb8900.js"),["assets/inverter-60cb8900.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./opendtu/device.vue":()=>e(()=>import("./device-ba3ffbd6.js"),["assets/device-ba3ffbd6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./opendtu/inverter.vue":()=>e(()=>import("./inverter-cd521c2b.js"),["assets/inverter-cd521c2b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_bat_kit/bat.vue":()=>e(()=>import("./bat-78c6d9b1.js"),["assets/bat-78c6d9b1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-0bbdcef0.js"),["assets/device-0bbdcef0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_evu_kit/bat.vue":()=>e(()=>import("./bat-bd30d1ab.js"),["assets/bat-bd30d1ab.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_evu_kit/counter.vue":()=>e(()=>import("./counter-156bc096.js"),["assets/counter-156bc096.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-a8567774.js"),["assets/device-a8567774.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_evu_kit/inverter.vue":()=>e(()=>import("./inverter-9ffa5522.js"),["assets/inverter-9ffa5522.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/bat.vue":()=>e(()=>import("./bat-9eb1485f.js"),["assets/bat-9eb1485f.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/consumption_counter.vue":()=>e(()=>import("./consumption_counter-b488867d.js"),["assets/consumption_counter-b488867d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/counter.vue":()=>e(()=>import("./counter-fc067156.js"),["assets/counter-fc067156.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-31d96f27.js"),["assets/device-31d96f27.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/inverter.vue":()=>e(()=>import("./inverter-e8664868.js"),["assets/inverter-e8664868.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-89ec12b4.js"),["assets/device-89ec12b4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_pv_kit/inverter.vue":()=>e(()=>import("./inverter-6afc80ff.js"),["assets/inverter-6afc80ff.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerdog/counter.vue":()=>e(()=>import("./counter-dbaea7b9.js"),["assets/counter-dbaea7b9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-f32c8a87.js"),["assets/device-f32c8a87.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerdog/inverter.vue":()=>e(()=>import("./inverter-ae7c14c3.js"),["assets/inverter-ae7c14c3.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerfox/counter.vue":()=>e(()=>import("./counter-48fdf220.js"),["assets/counter-48fdf220.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-46a3ff2e.js"),["assets/device-46a3ff2e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerfox/inverter.vue":()=>e(()=>import("./inverter-f4907df2.js"),["assets/inverter-f4907df2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./qcells/bat.vue":()=>e(()=>import("./bat-e0a28cb6.js"),["assets/bat-e0a28cb6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./qcells/counter.vue":()=>e(()=>import("./counter-14e57094.js"),["assets/counter-14e57094.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./qcells/device.vue":()=>e(()=>import("./device-e729de90.js"),["assets/device-e729de90.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./qcells/inverter.vue":()=>e(()=>import("./inverter-25e387df.js"),["assets/inverter-25e387df.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./rct/bat.vue":()=>e(()=>import("./bat-c6b79b0c.js"),["assets/bat-c6b79b0c.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./rct/counter.vue":()=>e(()=>import("./counter-371e2843.js"),["assets/counter-371e2843.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./rct/device.vue":()=>e(()=>import("./device-a88cf134.js"),["assets/device-a88cf134.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./rct/inverter.vue":()=>e(()=>import("./inverter-e356b3e7.js"),["assets/inverter-e356b3e7.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./saxpower/bat.vue":()=>e(()=>import("./bat-f27df809.js"),["assets/bat-f27df809.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-3fca2c08.js"),["assets/device-3fca2c08.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./shelly/device.vue":()=>e(()=>import("./device-af91cf00.js"),["assets/device-af91cf00.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./shelly/inverter.vue":()=>e(()=>import("./inverter-87ffebcd.js"),["assets/inverter-87ffebcd.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens/bat.vue":()=>e(()=>import("./bat-5b52affc.js"),["assets/bat-5b52affc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens/counter.vue":()=>e(()=>import("./counter-1f95e587.js"),["assets/counter-1f95e587.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens/device.vue":()=>e(()=>import("./device-fbac7aa9.js"),["assets/device-fbac7aa9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens/inverter.vue":()=>e(()=>import("./inverter-d7f6f892.js"),["assets/inverter-d7f6f892.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens_sentron/counter.vue":()=>e(()=>import("./counter-002a725b.js"),["assets/counter-002a725b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-bdcb209b.js"),["assets/device-bdcb209b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_shm/counter.vue":()=>e(()=>import("./counter-c530aaa3.js"),["assets/counter-c530aaa3.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-c032eaff.js"),["assets/device-c032eaff.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_shm/inverter.vue":()=>e(()=>import("./inverter-8d241330.js"),["assets/inverter-8d241330.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/bat.vue":()=>e(()=>import("./bat-b7b803c1.js"),["assets/bat-b7b803c1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/bat_smart_energy.vue":()=>e(()=>import("./bat_smart_energy-931a9518.js"),["assets/bat_smart_energy-931a9518.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/counter.vue":()=>e(()=>import("./counter-c100fb23.js"),["assets/counter-c100fb23.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-3a743e8e.js"),["assets/device-3a743e8e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/inverter.vue":()=>e(()=>import("./inverter-ed134c21.js"),["assets/inverter-ed134c21.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_island/bat.vue":()=>e(()=>import("./bat-2ac58cf4.js"),["assets/bat-2ac58cf4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-68558272.js"),["assets/device-68558272.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-95a82c98.js"),["assets/device-95a82c98.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_webbox/inverter.vue":()=>e(()=>import("./inverter-3ab3ab70.js"),["assets/inverter-3ab3ab70.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smart_me/counter.vue":()=>e(()=>import("./counter-88510cfb.js"),["assets/counter-88510cfb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-4016ebdc.js"),["assets/device-4016ebdc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smart_me/inverter.vue":()=>e(()=>import("./inverter-a9abe721.js"),["assets/inverter-a9abe721.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smartfox/counter.vue":()=>e(()=>import("./counter-b9fabe58.js"),["assets/counter-b9fabe58.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-c5f12afe.js"),["assets/device-c5f12afe.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_log/counter.vue":()=>e(()=>import("./counter-f6dc958d.js"),["assets/counter-f6dc958d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-a98bdda8.js"),["assets/device-a98bdda8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_log/inverter.vue":()=>e(()=>import("./inverter-0662361d.js"),["assets/inverter-0662361d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_view/counter.vue":()=>e(()=>import("./counter-d45f5fed.js"),["assets/counter-d45f5fed.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-66142994.js"),["assets/device-66142994.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_view/inverter.vue":()=>e(()=>import("./inverter-c305f2a2.js"),["assets/inverter-c305f2a2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_watt/bat.vue":()=>e(()=>import("./bat-406ce36d.js"),["assets/bat-406ce36d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_watt/counter.vue":()=>e(()=>import("./counter-e1c0cfad.js"),["assets/counter-e1c0cfad.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-bdb190b0.js"),["assets/device-bdb190b0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_watt/inverter.vue":()=>e(()=>import("./inverter-826d3567.js"),["assets/inverter-826d3567.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_world/counter.vue":()=>e(()=>import("./counter-b74471a1.js"),["assets/counter-b74471a1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-4ee21df6.js"),["assets/device-4ee21df6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_world/inverter.vue":()=>e(()=>import("./inverter-7d38470e.js"),["assets/inverter-7d38470e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/bat.vue":()=>e(()=>import("./bat-60fe1dbc.js"),["assets/bat-60fe1dbc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/counter.vue":()=>e(()=>import("./counter-6242b0ba.js"),["assets/counter-6242b0ba.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-2212b92d.js"),["assets/device-2212b92d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/external_inverter.vue":()=>e(()=>import("./external_inverter-b26af4c0.js"),["assets/external_inverter-b26af4c0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/inverter.vue":()=>e(()=>import("./inverter-79051db9.js"),["assets/inverter-79051db9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solarmax/bat.vue":()=>e(()=>import("./bat-8f4443b8.js"),["assets/bat-8f4443b8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-eca45af0.js"),["assets/device-eca45af0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solarmax/inverter.vue":()=>e(()=>import("./inverter-876f842a.js"),["assets/inverter-876f842a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solax/bat.vue":()=>e(()=>import("./bat-6421a339.js"),["assets/bat-6421a339.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solax/counter.vue":()=>e(()=>import("./counter-9e849157.js"),["assets/counter-9e849157.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solax/device.vue":()=>e(()=>import("./device-68c42e56.js"),["assets/device-68c42e56.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solax/inverter.vue":()=>e(()=>import("./inverter-50052a1a.js"),["assets/inverter-50052a1a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sonnenbatterie/bat.vue":()=>e(()=>import("./bat-596429dc.js"),["assets/bat-596429dc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sonnenbatterie/counter.vue":()=>e(()=>import("./counter-7c07de2b.js"),["assets/counter-7c07de2b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-9e5b2984.js"),["assets/device-9e5b2984.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sonnenbatterie/inverter.vue":()=>e(()=>import("./inverter-bfb4fba6.js"),["assets/inverter-bfb4fba6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./studer/bat.vue":()=>e(()=>import("./bat-52a3046b.js"),["assets/bat-52a3046b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./studer/device.vue":()=>e(()=>import("./device-fc31f82d.js"),["assets/device-fc31f82d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./studer/inverter.vue":()=>e(()=>import("./inverter-16975675.js"),["assets/inverter-16975675.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sungrow/bat.vue":()=>e(()=>import("./bat-0bf32e7f.js"),["assets/bat-0bf32e7f.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sungrow/counter.vue":()=>e(()=>import("./counter-2ac9f769.js"),["assets/counter-2ac9f769.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-2b056108.js"),["assets/device-2b056108.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sungrow/inverter.vue":()=>e(()=>import("./inverter-6bded09b.js"),["assets/inverter-6bded09b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sunways/device.vue":()=>e(()=>import("./device-974644de.js"),["assets/device-974644de.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sunways/inverter.vue":()=>e(()=>import("./inverter-ecc53d83.js"),["assets/inverter-ecc53d83.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/bat.vue":()=>e(()=>import("./bat-d8eea41d.js"),["assets/bat-d8eea41d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/counter.vue":()=>e(()=>import("./counter-732beb55.js"),["assets/counter-732beb55.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/device.vue":()=>e(()=>import("./device-103ad9f6.js"),["assets/device-103ad9f6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/inverter.vue":()=>e(()=>import("./inverter-6635a557.js"),["assets/inverter-6635a557.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./varta/bat_api.vue":()=>e(()=>import("./bat_api-f12964ea.js"),["assets/bat_api-f12964ea.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./varta/bat_modbus.vue":()=>e(()=>import("./bat_modbus-91e4bbfe.js"),["assets/bat_modbus-91e4bbfe.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./varta/counter.vue":()=>e(()=>import("./counter-deeb6d82.js"),["assets/counter-deeb6d82.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./varta/device.vue":()=>e(()=>import("./device-7f54ce45.js"),["assets/device-7f54ce45.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./victron/bat.vue":()=>e(()=>import("./bat-d1272cbb.js"),["assets/bat-d1272cbb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./victron/counter.vue":()=>e(()=>import("./counter-a53703ba.js"),["assets/counter-a53703ba.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./victron/device.vue":()=>e(()=>import("./device-d2c1b1df.js"),["assets/device-d2c1b1df.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./victron/inverter.vue":()=>e(()=>import("./inverter-ddbd9ec1.js"),["assets/inverter-ddbd9ec1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./virtual/counter.vue":()=>e(()=>import("./counter-afb523c3.js"),["assets/counter-afb523c3.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./virtual/device.vue":()=>e(()=>import("./device-3f08eba4.js"),["assets/device-3f08eba4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./vzlogger/counter.vue":()=>e(()=>import("./counter-e7b0c237.js"),["assets/counter-e7b0c237.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-1eddf414.js"),["assets/device-1eddf414.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./vzlogger/inverter.vue":()=>e(()=>import("./inverter-7b2ee5a1.js"),["assets/inverter-7b2ee5a1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./youless/device.vue":()=>e(()=>import("./device-76988bf6.js"),["assets/device-76988bf6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./youless/inverter.vue":()=>e(()=>import("./inverter-ffe5a718.js"),["assets/inverter-ffe5a718.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.deviceType}/${this.componentType}.vue`),errorComponent:S}):W({loader:()=>M(Object.assign({"./alpha_ess/device.vue":()=>e(()=>import("./device-422dcf91.js"),["assets/device-422dcf91.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/device.vue":()=>e(()=>import("./device-e48fc6eb.js"),["assets/device-e48fc6eb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./benning/device.vue":()=>e(()=>import("./device-bb77aac5.js"),["assets/device-bb77aac5.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./byd/device.vue":()=>e(()=>import("./device-83d0d1d2.js"),["assets/device-83d0d1d2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-efd97f38.js"),["assets/device-efd97f38.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./deye/device.vue":()=>e(()=>import("./device-b2ed509d.js"),["assets/device-b2ed509d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-d91608b1.js"),["assets/device-d91608b1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-a451e048.js"),["assets/device-a451e048.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./enphase/device.vue":()=>e(()=>import("./device-fa4ff080.js"),["assets/device-fa4ff080.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fems/device.vue":()=>e(()=>import("./device-eb8d7119.js"),["assets/device-eb8d7119.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/device.vue":()=>e(()=>import("./device-a0c2d57b.js"),["assets/device-a0c2d57b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./good_we/device.vue":()=>e(()=>import("./device-4c06c2b2.js"),["assets/device-4c06c2b2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/device.vue":()=>e(()=>import("./device-94e477af.js"),["assets/device-94e477af.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei/device.vue":()=>e(()=>import("./device-2ea31ec7.js"),["assets/device-2ea31ec7.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-05f612f2.js"),["assets/device-05f612f2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./janitza/device.vue":()=>e(()=>import("./device-f3eb75a3.js"),["assets/device-f3eb75a3.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./json/device.vue":()=>e(()=>import("./device-3f06f01a.js"),["assets/device-3f06f01a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-ed3f1885.js"),["assets/device-ed3f1885.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-b31c67e4.js"),["assets/device-b31c67e4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-77a56e1d.js"),["assets/device-77a56e1d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-146e5f9d.js"),["assets/device-146e5f9d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-b80c9dca.js"),["assets/device-b80c9dca.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./lg/device.vue":()=>e(()=>import("./device-2ff10261.js"),["assets/device-2ff10261.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-4a2b6383.js"),["assets/device-4a2b6383.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./opendtu/device.vue":()=>e(()=>import("./device-ba3ffbd6.js"),["assets/device-ba3ffbd6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-0bbdcef0.js"),["assets/device-0bbdcef0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-a8567774.js"),["assets/device-a8567774.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-31d96f27.js"),["assets/device-31d96f27.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-89ec12b4.js"),["assets/device-89ec12b4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-f32c8a87.js"),["assets/device-f32c8a87.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-46a3ff2e.js"),["assets/device-46a3ff2e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./qcells/device.vue":()=>e(()=>import("./device-e729de90.js"),["assets/device-e729de90.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./rct/device.vue":()=>e(()=>import("./device-a88cf134.js"),["assets/device-a88cf134.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-3fca2c08.js"),["assets/device-3fca2c08.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./shelly/device.vue":()=>e(()=>import("./device-af91cf00.js"),["assets/device-af91cf00.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens/device.vue":()=>e(()=>import("./device-fbac7aa9.js"),["assets/device-fbac7aa9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-bdcb209b.js"),["assets/device-bdcb209b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-c032eaff.js"),["assets/device-c032eaff.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-3a743e8e.js"),["assets/device-3a743e8e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-68558272.js"),["assets/device-68558272.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-95a82c98.js"),["assets/device-95a82c98.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-4016ebdc.js"),["assets/device-4016ebdc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-c5f12afe.js"),["assets/device-c5f12afe.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-a98bdda8.js"),["assets/device-a98bdda8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-66142994.js"),["assets/device-66142994.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-bdb190b0.js"),["assets/device-bdb190b0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-4ee21df6.js"),["assets/device-4ee21df6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-2212b92d.js"),["assets/device-2212b92d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-eca45af0.js"),["assets/device-eca45af0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solax/device.vue":()=>e(()=>import("./device-68c42e56.js"),["assets/device-68c42e56.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-9e5b2984.js"),["assets/device-9e5b2984.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./studer/device.vue":()=>e(()=>import("./device-fc31f82d.js"),["assets/device-fc31f82d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-2b056108.js"),["assets/device-2b056108.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sunways/device.vue":()=>e(()=>import("./device-974644de.js"),["assets/device-974644de.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/device.vue":()=>e(()=>import("./device-103ad9f6.js"),["assets/device-103ad9f6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./varta/device.vue":()=>e(()=>import("./device-7f54ce45.js"),["assets/device-7f54ce45.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./victron/device.vue":()=>e(()=>import("./device-d2c1b1df.js"),["assets/device-d2c1b1df.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./virtual/device.vue":()=>e(()=>import("./device-3f08eba4.js"),["assets/device-3f08eba4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-1eddf414.js"),["assets/device-1eddf414.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./youless/device.vue":()=>e(()=>import("./device-76988bf6.js"),["assets/device-76988bf6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.deviceType}/device.vue`),errorComponent:S})}},methods:{updateConfiguration(_){this.$emit("update:configuration",_)}}};function se(_,i,u,P,s,r){return d(),E($(r.myComponent),{configuration:u.configuration,deviceId:u.deviceId,deviceType:u.deviceType,componentId:u.componentId,componentType:u.componentType,"onUpdate:configuration":i[0]||(i[0]=I=>r.updateConfiguration(I))},null,40,["configuration","deviceId","deviceType","componentId","componentType"])}const me=y(ae,[["render",se],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbConfigProxy.vue"]]);N.add(U,G,F,H,J,Z,Q);const pe={name:"OpenwbHardwareInstallation",mixins:[Y],emits:["sendCommand"],components:{FontAwesomeIcon:X,OpenwbConfigProxy:me},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/get/hierarchy","openWB/system/device/+/config","openWB/system/device/+/component/+/config","openWB/system/configurable/devices_components"],deviceToAdd:void 0,showDeviceRemoveModal:!1,modalDevice:void 0,modalDeviceName:"",componentToAdd:[],showComponentRemoveModal:!1,modalComponent:void 0,modalComponentName:""}},computed:{installedDevices:{get(){return this.getWildcardTopics("openWB/system/device/+/config")}},installedComponents:{get(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")}}},methods:{getComponentTypeClass(_){return _.match(/^(.+_)?counter(_.+)?$/)?"danger":_.match(/^(.+_)?inverter(_.+)?$/)?"success":_.match(/^(.+_)?bat(_.+)?$/)?"warning":"dark"},getComponentTypeIcon(_){return _.match(/^(.+_)?counter(_.+)?$/)?["fas","fa-gauge-high"]:_.match(/^(.+_)?inverter(_.+)?$/)?["fas","fa-solar-panel"]:_.match(/^(.+_)?bat(_.+)?$/)?["fas","fa-car-battery"]:["fas","fa-microchip"]},getMyInstalledComponents(_){return this.getWildcardTopics("openWB/system/device/"+_+"/component/+/config")},deviceHasConfiguredComponents(_){return Object.keys(this.getMyInstalledComponents(_)).length>0},addDevice(){this.$emit("sendCommand",{command:"addDevice",data:{type:this.deviceToAdd}})},removeDeviceModal(_,i,u){u.stopPropagation(),this.modalDevice=_,this.modalDeviceName=i,this.showDeviceRemoveModal=!0},removeDevice(_){this.showDeviceRemoveModal=!1,_=="confirm"&&(console.info("request removal of device '"+this.modalDevice+"'"),this.$emit("sendCommand",{command:"removeDevice",data:{id:this.modalDevice}}))},getDeviceList(){return this.$store.state.mqtt["openWB/system/configurable/devices_components"]},addComponent(_,i,u){this.$emit("sendCommand",{command:"addComponent",data:{deviceId:_,deviceType:i,type:u}})},removeComponentModal(_,i,u,P,s){s.stopPropagation(),this.modalComponent={deviceId:_,id:i,type:u},this.modalComponentName=P,this.showComponentRemoveModal=!0},removeComponent(_){this.showComponentRemoveModal=!1,_=="confirm"&&(console.info("request removal of component '"+this.modalComponent.id+"' from device '"+this.modalComponent.deviceId+"' type '"+this.modalComponent.type+"'"),this.$emit("sendCommand",{command:"removeComponent",data:this.modalComponent}))},getComponentList(_){return _===void 0?[]:(console.debug("finding components for '"+_+"'"),this.$store.state.mqtt["openWB/system/configurable/devices_components"].find(u=>u.value===_).component)},updateConfiguration(_,i){console.debug("updateConfiguration",_,i),this.updateState(_,i.value,i.object)}}},l=_=>(ee("data-v-8595d6ae"),_=_(),_e(),_),ce={class:"hardwareInstallation"},Ee={name:"hardwareInstallationForm"},le={key:0},Te={key:1},Ie={key:1},Ve=l(()=>m("hr",null,null,-1)),De=l(()=>m("hr",null,null,-1)),Ae=l(()=>m("hr",null,null,-1)),Re=l(()=>m("hr",null,null,-1)),Pe={class:"col-1"},Oe={key:0},Le={class:"col-1"},ge=l(()=>m("br",null,null,-1)),be=l(()=>m("br",null,null,-1)),fe=l(()=>m("br",null,null,-1)),he=l(()=>m("br",null,null,-1)),we=l(()=>m("br",null,null,-1)),ye=l(()=>m("br",null,null,-1));function ke(_,i,u,P,s,r){const I=p("openwb-base-modal-dialog"),L=p("router-link"),A=p("openwb-base-alert"),D=p("font-awesome-icon"),g=p("openwb-base-avatar"),k=p("openwb-base-text-input"),C=p("openwb-config-proxy"),j=p("openwb-base-heading"),b=p("openwb-base-card"),x=p("openwb-base-click-button"),B=p("openwb-base-select-input"),q=p("openwb-base-submit-buttons");return d(),c(O,null,[n(I,{show:s.showDeviceRemoveModal,title:"Gerät löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeDevice},{default:o(()=>[v(' Wollen Sie das Gerät "'+T(s.modalDeviceName)+'" inklusive aller Komponenten wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),n(I,{show:s.showComponentRemoveModal,title:"Komponente löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeComponent},{default:o(()=>[v(' Wollen Sie die Komponente "'+T(s.modalComponentName)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),m("div",ce,[m("form",Ee,[n(A,{subtype:"info"},{default:o(()=>[v(" Wenn neue Komponenten - insbesondere Zähler - konfiguriert wurden, ist auch das "),n(L,{to:"/LoadManagementConfiguration"},{default:o(()=>[v(" Lastmanagement ")]),_:1}),v(" zu prüfen! ")]),_:1}),n(b,{title:"Geräte und Komponenten"},{default:o(()=>[_.$store.state.mqtt["openWB/general/extern"]===!0?(d(),c("div",le,[n(A,{subtype:"info"},{default:o(()=>[v(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),c("div",Te,[(d(!0),c(O,null,f(r.installedDevices,(t,z)=>(d(),E(b,{key:t.id,collapsible:!0,collapsed:!0,subtype:"dark"},{header:o(()=>[n(D,{"fixed-width":"",icon:["fas","network-wired"]}),v(" "+T(t.name),1)]),actions:o(a=>[a.collapsed?(d(),c("div",Ie,[(d(!0),c(O,null,f(r.getMyInstalledComponents(t.id),V=>(d(),E(g,{key:V.id,class:h("ml-1 bg-"+r.getComponentTypeClass(V.type))},{default:o(()=>[n(D,{"fixed-width":"",icon:r.getComponentTypeIcon(V.type)},null,8,["icon"])]),_:2},1032,["class"]))),128))])):(d(),E(g,{key:0,class:"bg-danger clickable",onClick:V=>r.removeDeviceModal(t.id,t.name,V)},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":t.name,"onUpdate:modelValue":a=>_.updateState(z,a,"name")},null,8,["model-value","onUpdate:modelValue"]),Ve,n(C,{deviceId:t.id,deviceType:t.type,configuration:t.configuration,"onUpdate:configuration":a=>r.updateConfiguration(z,a)},null,8,["deviceId","deviceType","configuration","onUpdate:configuration"]),De,n(j,null,{default:o(()=>[v("Komponenten")]),_:1}),r.deviceHasConfiguredComponents(t.id)?w("",!0):(d(),E(A,{key:0,subtype:"warning"},{default:o(()=>[v(" Es wurden noch keine Komponenten zu diesem Gerät angelegt. ")]),_:1})),(d(!0),c(O,null,f(r.getMyInstalledComponents(t.id),(a,V)=>(d(),E(b,{key:a.id,collapsible:!0,collapsed:!0,subtype:r.getComponentTypeClass(a.type)},{header:o(()=>[n(D,{"fixed-width":"",icon:r.getComponentTypeIcon(a.type)},null,8,["icon"]),v(" "+T(a.name),1)]),actions:o(R=>[R.collapsed?w("",!0):(d(),E(g,{key:0,class:"bg-danger clickable",onClick:K=>r.removeComponentModal(t.id,a.id,a.type,a.name,K)},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":a.name,"onUpdate:modelValue":R=>_.updateState(V,R,"name")},null,8,["model-value","onUpdate:modelValue"]),Ae,n(C,{deviceId:t.id,deviceType:t.type,componentId:a.id,componentType:a.type,configuration:a.configuration,"onUpdate:configuration":R=>r.updateConfiguration(V,R)},null,8,["deviceId","deviceType","componentId","componentType","configuration","onUpdate:configuration"])]),_:2},1032,["subtype"]))),128)),Re,r.getComponentList(t.type).length?(d(),E(B,{key:1,class:"mb-2",title:"Verfügbare Komponenten",notSelected:"Bitte auswählen",options:r.getComponentList(t.type),"model-value":s.componentToAdd[t.id],"onUpdate:modelValue":a=>s.componentToAdd[t.id]=a},{append:o(()=>[m("span",Pe,[n(x,{class:h(s.componentToAdd[t.id]===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.componentToAdd[t.id]===void 0,onButtonClicked:a=>r.addComponent(t.id,t.type,s.componentToAdd[t.id])},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["class","disabled","onButtonClicked"])])]),help:o(()=>[v(" Bitte eine Komponente auswählen, die hinzugefügt werden soll. Für jeden Datensatz, z.B. Wechselrichter- und Batteriedaten, muss eine Wechselrichter- und eine Batteriekomponente hinzugefügt werden. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"])):(d(),E(A,{key:2,subtype:"info"},{default:o(()=>[v(" Dieses System bietet keine Komponenten zur Installation an. ")]),_:1}))]),_:2},1024))),128)),Object.keys(r.installedDevices).length>0?(d(),c("hr",Oe)):w("",!0),n(B,{class:"mb-2",title:"Verfügbare Geräte",notSelected:"Bitte auswählen",options:r.getDeviceList(),"model-value":s.deviceToAdd,"onUpdate:modelValue":i[0]||(i[0]=t=>s.deviceToAdd=t)},{append:o(()=>[m("span",Le,[n(x,{class:h(s.deviceToAdd===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.deviceToAdd===void 0,onButtonClicked:r.addDevice},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:o(()=>[v(' Die openWB-Regelung ist auf Werte von MESSPUNKTEN (Zähler, Energy Meter usw.) angewiesen. Hierfür werden "Geräte" und "Komponenten" verwendet.'),ge,v(' Ein "Gerät" wird hierbei durch seine IP-Adresse spezifiziert (häufig durch manuelle Eingabe oder manchmal automatisch ermittelt) und kann über mehrere untergeordnete "Komponenten" verfügen, z.B. einen Messpunkt für PV-Erzeugung, einen Messpunkt für Netzeinspeisung/-bezug am EVU-Punkt usw.. Ein "Gerät" bedingt somit immer mindestens eine zugehörige "Komponente".'),be,fe,v(' Bsp: Werden die Werte von verschiedenen Messpunkten (z.B. PV und EVU) über die gleiche IP-Adresse abgefragt, wird dafür ein "Gerät" mit zwei "Komponenten" für PV- und EVU- Messpunkt angelegt.'),he,v(' Verfügt dagegen jeder Messpunkt über eine eigene IP-Adresse, wird jeder Messpunkt als eigenes "Gerät" mit nur einer "Komponente" angelegt.'),we,ye,v(' Das "Gerät" wird in der dropdown-Liste ausgewählt und mit "+" der Regelung hinzugefügt. Im Anschluss erfolgt die Konfiguration des "Gerätes" innerhalb des schwarzen "Geräte"-Reiters. ')]),_:1},8,["options","model-value"])]))]),_:1}),n(q,{formName:"hardwareInstallationForm",onSave:i[1]||(i[1]=t=>_.$emit("save")),onReset:i[2]||(i[2]=t=>_.$emit("reset")),onDefaults:i[3]||(i[3]=t=>_.$emit("defaults"))})])])],64)}const qe=y(pe,[["render",ke],["__scopeId","data-v-8595d6ae"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/HardwareInstallation.vue"]]);export{qe as default}; +import{l as N,d as U,t as G,Z as F,_ as H,P as J,O as Z,N as Q,F as X}from"./vendor-fortawesome-9fdc06a9.js";import{_ as e,C as Y}from"./index-720fb9ac.js";import{_ as M}from"./dynamic-import-helper-be004503.js";import{_ as y,q as p,k as d,l as c,z as E,M as o,y as T,x as v,B as n,u as m,a1 as W,a2 as $,I as O,J as f,p as h,A as w,R as ee,S as _e}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const te={name:"DeviceFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},deviceType:String,componentId:{default:void 0},componentType:String},methods:{updateConfiguration(_,i=void 0){this.$emit("update:configuration",{value:_,object:i})}}},oe={class:"device-fallback"},ie={key:0},re={key:1},ne={key:1},ue={key:0},de={key:1};function ve(_,i,u,P,s,r){const I=p("openwb-base-alert"),L=p("openwb-base-textarea");return d(),c("div",oe,[Object.keys(u.configuration).length==0?(d(),E(I,{key:0,subtype:"info"},{default:o(()=>[u.componentType?(d(),c("span",ie,' Der Komponenten-Typ "'+T(u.componentType)+'" ',1)):(d(),c("span",re,'Der Gerät-Typ "'+T(u.deviceType)+'"',1)),v(" bietet keine Einstellungen. ")]),_:1})):(d(),c("div",ne,[n(I,{subtype:"warning"},{default:o(()=>[v(" Es wurde keine Konfigurationsseite für den "),u.componentType?(d(),c("span",ue,' Komponenten-Typ "'+T(u.componentType)+'" ',1)):(d(),c("span",de,'Geräte-Typ "'+T(u.deviceType)+'"',1)),v(" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ")]),_:1}),n(L,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":i[0]||(i[0]=A=>r.updateConfiguration(A,"configuration"))},{help:o(()=>[v(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(I,{subtype:"info"},{default:o(()=>[m("pre",null,T(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})]))])}const S=y(te,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbDeviceConfigFallback.vue"]]),ae={name:"OpenwbConfigProxy",emits:["update:configuration"],props:{deviceId:{required:!0},deviceType:{type:String,required:!0},componentId:{default:void 0},componentType:{type:String,default:void 0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading component: ${this.deviceType} / ${this.componentType}`),this.componentType!==void 0?W({loader:()=>M(Object.assign({"./alpha_ess/bat.vue":()=>e(()=>import("./bat-ec26cfad.js"),["assets/bat-ec26cfad.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./alpha_ess/counter.vue":()=>e(()=>import("./counter-5777261a.js"),["assets/counter-5777261a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./alpha_ess/device.vue":()=>e(()=>import("./device-422dcf91.js"),["assets/device-422dcf91.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./alpha_ess/inverter.vue":()=>e(()=>import("./inverter-13a811f8.js"),["assets/inverter-13a811f8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/bat.vue":()=>e(()=>import("./bat-7eb3e707.js"),["assets/bat-7eb3e707.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/counter.vue":()=>e(()=>import("./counter-be5c0579.js"),["assets/counter-be5c0579.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/device.vue":()=>e(()=>import("./device-e48fc6eb.js"),["assets/device-e48fc6eb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/external_inverter.vue":()=>e(()=>import("./external_inverter-a403039d.js"),["assets/external_inverter-a403039d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/inverter.vue":()=>e(()=>import("./inverter-918c88a8.js"),["assets/inverter-918c88a8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./benning/device.vue":()=>e(()=>import("./device-bb77aac5.js"),["assets/device-bb77aac5.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./benning/inverter.vue":()=>e(()=>import("./inverter-5f14ad8a.js"),["assets/inverter-5f14ad8a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./byd/bat.vue":()=>e(()=>import("./bat-f26e2844.js"),["assets/bat-f26e2844.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./byd/device.vue":()=>e(()=>import("./device-83d0d1d2.js"),["assets/device-83d0d1d2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./carlo_gavazzi/counter.vue":()=>e(()=>import("./counter-3d38653d.js"),["assets/counter-3d38653d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-efd97f38.js"),["assets/device-efd97f38.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./deye/bat.vue":()=>e(()=>import("./bat-5c1727b9.js"),["assets/bat-5c1727b9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./deye/counter.vue":()=>e(()=>import("./counter-ac1660a7.js"),["assets/counter-ac1660a7.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./deye/device.vue":()=>e(()=>import("./device-b2ed509d.js"),["assets/device-b2ed509d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./deye/inverter.vue":()=>e(()=>import("./inverter-5944e46d.js"),["assets/inverter-5944e46d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./discovergy/counter.vue":()=>e(()=>import("./counter-84d4687e.js"),["assets/counter-84d4687e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-d91608b1.js"),["assets/device-d91608b1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./discovergy/inverter.vue":()=>e(()=>import("./inverter-3c461e89.js"),["assets/inverter-3c461e89.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/bat.vue":()=>e(()=>import("./bat-c11283be.js"),["assets/bat-c11283be.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/counter.vue":()=>e(()=>import("./counter-bdd28188.js"),["assets/counter-bdd28188.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-a451e048.js"),["assets/device-a451e048.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/external_inverter.vue":()=>e(()=>import("./external_inverter-7c122784.js"),["assets/external_inverter-7c122784.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/inverter.vue":()=>e(()=>import("./inverter-63d3d5dd.js"),["assets/inverter-63d3d5dd.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./enphase/counter.vue":()=>e(()=>import("./counter-0ee0503f.js"),["assets/counter-0ee0503f.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./enphase/device.vue":()=>e(()=>import("./device-fa4ff080.js"),["assets/device-fa4ff080.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./enphase/inverter.vue":()=>e(()=>import("./inverter-cb6725eb.js"),["assets/inverter-cb6725eb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fems/bat.vue":()=>e(()=>import("./bat-9251ec29.js"),["assets/bat-9251ec29.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fems/counter.vue":()=>e(()=>import("./counter-3e31db9a.js"),["assets/counter-3e31db9a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fems/device.vue":()=>e(()=>import("./device-eb8d7119.js"),["assets/device-eb8d7119.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fems/inverter.vue":()=>e(()=>import("./inverter-0fedac4e.js"),["assets/inverter-0fedac4e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/bat.vue":()=>e(()=>import("./bat-1cd49cd6.js"),["assets/bat-1cd49cd6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/counter_s0.vue":()=>e(()=>import("./counter_s0-3aa644a5.js"),["assets/counter_s0-3aa644a5.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/counter_sm.vue":()=>e(()=>import("./counter_sm-9d608119.js"),["assets/counter_sm-9d608119.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/device.vue":()=>e(()=>import("./device-a0c2d57b.js"),["assets/device-a0c2d57b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/inverter.vue":()=>e(()=>import("./inverter-9bf3268a.js"),["assets/inverter-9bf3268a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/inverter_secondary.vue":()=>e(()=>import("./inverter_secondary-60af9f4d.js"),["assets/inverter_secondary-60af9f4d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./good_we/bat.vue":()=>e(()=>import("./bat-2263d450.js"),["assets/bat-2263d450.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./good_we/counter.vue":()=>e(()=>import("./counter-0ff1e2e2.js"),["assets/counter-0ff1e2e2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./good_we/device.vue":()=>e(()=>import("./device-4c06c2b2.js"),["assets/device-4c06c2b2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./good_we/inverter.vue":()=>e(()=>import("./inverter-ef42391b.js"),["assets/inverter-ef42391b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/bat.vue":()=>e(()=>import("./bat-aea1d8d1.js"),["assets/bat-aea1d8d1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/counter.vue":()=>e(()=>import("./counter-23ee69bc.js"),["assets/counter-23ee69bc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/device.vue":()=>e(()=>import("./device-94e477af.js"),["assets/device-94e477af.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/inverter.vue":()=>e(()=>import("./inverter-46fef3f8.js"),["assets/inverter-46fef3f8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei/bat.vue":()=>e(()=>import("./bat-70966508.js"),["assets/bat-70966508.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei/counter.vue":()=>e(()=>import("./counter-7434d2c1.js"),["assets/counter-7434d2c1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei/device.vue":()=>e(()=>import("./device-2ea31ec7.js"),["assets/device-2ea31ec7.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei/inverter.vue":()=>e(()=>import("./inverter-10120033.js"),["assets/inverter-10120033.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei_smartlogger/bat.vue":()=>e(()=>import("./bat-c2f21fa1.js"),["assets/bat-c2f21fa1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei_smartlogger/counter.vue":()=>e(()=>import("./counter-71272ccc.js"),["assets/counter-71272ccc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-05f612f2.js"),["assets/device-05f612f2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei_smartlogger/inverter.vue":()=>e(()=>import("./inverter-48159805.js"),["assets/inverter-48159805.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./janitza/counter.vue":()=>e(()=>import("./counter-0299bd85.js"),["assets/counter-0299bd85.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./janitza/device.vue":()=>e(()=>import("./device-f3eb75a3.js"),["assets/device-f3eb75a3.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./json/bat.vue":()=>e(()=>import("./bat-085ab9b8.js"),["assets/bat-085ab9b8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./json/counter.vue":()=>e(()=>import("./counter-a35d1907.js"),["assets/counter-a35d1907.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./json/device.vue":()=>e(()=>import("./device-3f06f01a.js"),["assets/device-3f06f01a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./json/inverter.vue":()=>e(()=>import("./inverter-23476c16.js"),["assets/inverter-23476c16.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko/counter.vue":()=>e(()=>import("./counter-0310470c.js"),["assets/counter-0310470c.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-ed3f1885.js"),["assets/device-ed3f1885.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko/inverter.vue":()=>e(()=>import("./inverter-66489b96.js"),["assets/inverter-66489b96.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-b31c67e4.js"),["assets/device-b31c67e4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko_old/inverter.vue":()=>e(()=>import("./inverter-424a738b.js"),["assets/inverter-424a738b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_plenticore/bat.vue":()=>e(()=>import("./bat-7b5aee06.js"),["assets/bat-7b5aee06.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_plenticore/counter.vue":()=>e(()=>import("./counter-0b44e253.js"),["assets/counter-0b44e253.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-77a56e1d.js"),["assets/device-77a56e1d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_plenticore/inverter.vue":()=>e(()=>import("./inverter-7e6e2822.js"),["assets/inverter-7e6e2822.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_sem/counter.vue":()=>e(()=>import("./counter-d398c1c5.js"),["assets/counter-d398c1c5.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-146e5f9d.js"),["assets/device-146e5f9d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-b80c9dca.js"),["assets/device-b80c9dca.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_steca/inverter.vue":()=>e(()=>import("./inverter-a067ba39.js"),["assets/inverter-a067ba39.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./lg/bat.vue":()=>e(()=>import("./bat-714247d6.js"),["assets/bat-714247d6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./lg/counter.vue":()=>e(()=>import("./counter-c3bfa028.js"),["assets/counter-c3bfa028.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./lg/device.vue":()=>e(()=>import("./device-2ff10261.js"),["assets/device-2ff10261.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./lg/inverter.vue":()=>e(()=>import("./inverter-738c2377.js"),["assets/inverter-738c2377.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/bat.vue":()=>e(()=>import("./bat-c7a57eab.js"),["assets/bat-c7a57eab.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/counter.vue":()=>e(()=>import("./counter-6adeeedb.js"),["assets/counter-6adeeedb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-4a2b6383.js"),["assets/device-4a2b6383.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/inverter.vue":()=>e(()=>import("./inverter-60cb8900.js"),["assets/inverter-60cb8900.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./opendtu/device.vue":()=>e(()=>import("./device-ba3ffbd6.js"),["assets/device-ba3ffbd6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./opendtu/inverter.vue":()=>e(()=>import("./inverter-cd521c2b.js"),["assets/inverter-cd521c2b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_bat_kit/bat.vue":()=>e(()=>import("./bat-78c6d9b1.js"),["assets/bat-78c6d9b1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-0bbdcef0.js"),["assets/device-0bbdcef0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_evu_kit/bat.vue":()=>e(()=>import("./bat-bd30d1ab.js"),["assets/bat-bd30d1ab.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_evu_kit/counter.vue":()=>e(()=>import("./counter-156bc096.js"),["assets/counter-156bc096.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-a8567774.js"),["assets/device-a8567774.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_evu_kit/inverter.vue":()=>e(()=>import("./inverter-9ffa5522.js"),["assets/inverter-9ffa5522.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/bat.vue":()=>e(()=>import("./bat-9eb1485f.js"),["assets/bat-9eb1485f.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/consumption_counter.vue":()=>e(()=>import("./consumption_counter-b488867d.js"),["assets/consumption_counter-b488867d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/counter.vue":()=>e(()=>import("./counter-fc067156.js"),["assets/counter-fc067156.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-31d96f27.js"),["assets/device-31d96f27.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/inverter.vue":()=>e(()=>import("./inverter-e8664868.js"),["assets/inverter-e8664868.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-89ec12b4.js"),["assets/device-89ec12b4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_pv_kit/inverter.vue":()=>e(()=>import("./inverter-6afc80ff.js"),["assets/inverter-6afc80ff.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerdog/counter.vue":()=>e(()=>import("./counter-dbaea7b9.js"),["assets/counter-dbaea7b9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-f32c8a87.js"),["assets/device-f32c8a87.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerdog/inverter.vue":()=>e(()=>import("./inverter-ae7c14c3.js"),["assets/inverter-ae7c14c3.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerfox/counter.vue":()=>e(()=>import("./counter-48fdf220.js"),["assets/counter-48fdf220.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-46a3ff2e.js"),["assets/device-46a3ff2e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerfox/inverter.vue":()=>e(()=>import("./inverter-f4907df2.js"),["assets/inverter-f4907df2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./qcells/bat.vue":()=>e(()=>import("./bat-e0a28cb6.js"),["assets/bat-e0a28cb6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./qcells/counter.vue":()=>e(()=>import("./counter-14e57094.js"),["assets/counter-14e57094.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./qcells/device.vue":()=>e(()=>import("./device-e729de90.js"),["assets/device-e729de90.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./qcells/inverter.vue":()=>e(()=>import("./inverter-25e387df.js"),["assets/inverter-25e387df.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./rct/bat.vue":()=>e(()=>import("./bat-c6b79b0c.js"),["assets/bat-c6b79b0c.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./rct/counter.vue":()=>e(()=>import("./counter-371e2843.js"),["assets/counter-371e2843.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./rct/device.vue":()=>e(()=>import("./device-a88cf134.js"),["assets/device-a88cf134.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./rct/inverter.vue":()=>e(()=>import("./inverter-e356b3e7.js"),["assets/inverter-e356b3e7.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./saxpower/bat.vue":()=>e(()=>import("./bat-f27df809.js"),["assets/bat-f27df809.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-3fca2c08.js"),["assets/device-3fca2c08.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./shelly/device.vue":()=>e(()=>import("./device-af91cf00.js"),["assets/device-af91cf00.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./shelly/inverter.vue":()=>e(()=>import("./inverter-87ffebcd.js"),["assets/inverter-87ffebcd.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens/bat.vue":()=>e(()=>import("./bat-5b52affc.js"),["assets/bat-5b52affc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens/counter.vue":()=>e(()=>import("./counter-1f95e587.js"),["assets/counter-1f95e587.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens/device.vue":()=>e(()=>import("./device-fbac7aa9.js"),["assets/device-fbac7aa9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens/inverter.vue":()=>e(()=>import("./inverter-d7f6f892.js"),["assets/inverter-d7f6f892.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens_sentron/counter.vue":()=>e(()=>import("./counter-002a725b.js"),["assets/counter-002a725b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-bdcb209b.js"),["assets/device-bdcb209b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_shm/counter.vue":()=>e(()=>import("./counter-c530aaa3.js"),["assets/counter-c530aaa3.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-c032eaff.js"),["assets/device-c032eaff.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_shm/inverter.vue":()=>e(()=>import("./inverter-8d241330.js"),["assets/inverter-8d241330.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/bat.vue":()=>e(()=>import("./bat-b7b803c1.js"),["assets/bat-b7b803c1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/bat_smart_energy.vue":()=>e(()=>import("./bat_smart_energy-931a9518.js"),["assets/bat_smart_energy-931a9518.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/counter.vue":()=>e(()=>import("./counter-c100fb23.js"),["assets/counter-c100fb23.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-3a743e8e.js"),["assets/device-3a743e8e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/inverter.vue":()=>e(()=>import("./inverter-ed134c21.js"),["assets/inverter-ed134c21.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_island/bat.vue":()=>e(()=>import("./bat-2ac58cf4.js"),["assets/bat-2ac58cf4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-68558272.js"),["assets/device-68558272.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-95a82c98.js"),["assets/device-95a82c98.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_webbox/inverter.vue":()=>e(()=>import("./inverter-3ab3ab70.js"),["assets/inverter-3ab3ab70.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smart_me/counter.vue":()=>e(()=>import("./counter-88510cfb.js"),["assets/counter-88510cfb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-4016ebdc.js"),["assets/device-4016ebdc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smart_me/inverter.vue":()=>e(()=>import("./inverter-a9abe721.js"),["assets/inverter-a9abe721.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smartfox/counter.vue":()=>e(()=>import("./counter-b9fabe58.js"),["assets/counter-b9fabe58.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-c5f12afe.js"),["assets/device-c5f12afe.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_log/counter.vue":()=>e(()=>import("./counter-f6dc958d.js"),["assets/counter-f6dc958d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-a98bdda8.js"),["assets/device-a98bdda8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_log/inverter.vue":()=>e(()=>import("./inverter-0662361d.js"),["assets/inverter-0662361d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_view/counter.vue":()=>e(()=>import("./counter-d45f5fed.js"),["assets/counter-d45f5fed.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-66142994.js"),["assets/device-66142994.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_view/inverter.vue":()=>e(()=>import("./inverter-c305f2a2.js"),["assets/inverter-c305f2a2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_watt/bat.vue":()=>e(()=>import("./bat-406ce36d.js"),["assets/bat-406ce36d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_watt/counter.vue":()=>e(()=>import("./counter-e1c0cfad.js"),["assets/counter-e1c0cfad.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-bdb190b0.js"),["assets/device-bdb190b0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_watt/inverter.vue":()=>e(()=>import("./inverter-826d3567.js"),["assets/inverter-826d3567.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_world/counter.vue":()=>e(()=>import("./counter-b74471a1.js"),["assets/counter-b74471a1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-4ee21df6.js"),["assets/device-4ee21df6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_world/inverter.vue":()=>e(()=>import("./inverter-7d38470e.js"),["assets/inverter-7d38470e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/bat.vue":()=>e(()=>import("./bat-60fe1dbc.js"),["assets/bat-60fe1dbc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/counter.vue":()=>e(()=>import("./counter-6242b0ba.js"),["assets/counter-6242b0ba.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-2212b92d.js"),["assets/device-2212b92d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/external_inverter.vue":()=>e(()=>import("./external_inverter-b26af4c0.js"),["assets/external_inverter-b26af4c0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/inverter.vue":()=>e(()=>import("./inverter-79051db9.js"),["assets/inverter-79051db9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solarmax/bat.vue":()=>e(()=>import("./bat-8f4443b8.js"),["assets/bat-8f4443b8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-eca45af0.js"),["assets/device-eca45af0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solarmax/inverter.vue":()=>e(()=>import("./inverter-876f842a.js"),["assets/inverter-876f842a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solax/bat.vue":()=>e(()=>import("./bat-6421a339.js"),["assets/bat-6421a339.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solax/counter.vue":()=>e(()=>import("./counter-9e849157.js"),["assets/counter-9e849157.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solax/device.vue":()=>e(()=>import("./device-68c42e56.js"),["assets/device-68c42e56.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solax/inverter.vue":()=>e(()=>import("./inverter-50052a1a.js"),["assets/inverter-50052a1a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sonnenbatterie/bat.vue":()=>e(()=>import("./bat-596429dc.js"),["assets/bat-596429dc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sonnenbatterie/counter.vue":()=>e(()=>import("./counter-7c07de2b.js"),["assets/counter-7c07de2b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-9e5b2984.js"),["assets/device-9e5b2984.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sonnenbatterie/inverter.vue":()=>e(()=>import("./inverter-bfb4fba6.js"),["assets/inverter-bfb4fba6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./studer/bat.vue":()=>e(()=>import("./bat-52a3046b.js"),["assets/bat-52a3046b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./studer/device.vue":()=>e(()=>import("./device-fc31f82d.js"),["assets/device-fc31f82d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./studer/inverter.vue":()=>e(()=>import("./inverter-16975675.js"),["assets/inverter-16975675.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sungrow/bat.vue":()=>e(()=>import("./bat-0bf32e7f.js"),["assets/bat-0bf32e7f.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sungrow/counter.vue":()=>e(()=>import("./counter-2ac9f769.js"),["assets/counter-2ac9f769.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-2b056108.js"),["assets/device-2b056108.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sungrow/inverter.vue":()=>e(()=>import("./inverter-6bded09b.js"),["assets/inverter-6bded09b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sunways/device.vue":()=>e(()=>import("./device-974644de.js"),["assets/device-974644de.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sunways/inverter.vue":()=>e(()=>import("./inverter-ecc53d83.js"),["assets/inverter-ecc53d83.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/bat.vue":()=>e(()=>import("./bat-d8eea41d.js"),["assets/bat-d8eea41d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/counter.vue":()=>e(()=>import("./counter-732beb55.js"),["assets/counter-732beb55.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/device.vue":()=>e(()=>import("./device-103ad9f6.js"),["assets/device-103ad9f6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/inverter.vue":()=>e(()=>import("./inverter-6635a557.js"),["assets/inverter-6635a557.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./varta/bat_api.vue":()=>e(()=>import("./bat_api-f12964ea.js"),["assets/bat_api-f12964ea.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./varta/bat_modbus.vue":()=>e(()=>import("./bat_modbus-91e4bbfe.js"),["assets/bat_modbus-91e4bbfe.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./varta/counter.vue":()=>e(()=>import("./counter-deeb6d82.js"),["assets/counter-deeb6d82.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./varta/device.vue":()=>e(()=>import("./device-7f54ce45.js"),["assets/device-7f54ce45.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./victron/bat.vue":()=>e(()=>import("./bat-d1272cbb.js"),["assets/bat-d1272cbb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./victron/counter.vue":()=>e(()=>import("./counter-a53703ba.js"),["assets/counter-a53703ba.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./victron/device.vue":()=>e(()=>import("./device-d2c1b1df.js"),["assets/device-d2c1b1df.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./victron/inverter.vue":()=>e(()=>import("./inverter-ddbd9ec1.js"),["assets/inverter-ddbd9ec1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./virtual/counter.vue":()=>e(()=>import("./counter-afb523c3.js"),["assets/counter-afb523c3.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./virtual/device.vue":()=>e(()=>import("./device-3f08eba4.js"),["assets/device-3f08eba4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./vzlogger/counter.vue":()=>e(()=>import("./counter-e7b0c237.js"),["assets/counter-e7b0c237.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-1eddf414.js"),["assets/device-1eddf414.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./vzlogger/inverter.vue":()=>e(()=>import("./inverter-7b2ee5a1.js"),["assets/inverter-7b2ee5a1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./youless/device.vue":()=>e(()=>import("./device-76988bf6.js"),["assets/device-76988bf6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./youless/inverter.vue":()=>e(()=>import("./inverter-ffe5a718.js"),["assets/inverter-ffe5a718.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.deviceType}/${this.componentType}.vue`),errorComponent:S}):W({loader:()=>M(Object.assign({"./alpha_ess/device.vue":()=>e(()=>import("./device-422dcf91.js"),["assets/device-422dcf91.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./batterx/device.vue":()=>e(()=>import("./device-e48fc6eb.js"),["assets/device-e48fc6eb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./benning/device.vue":()=>e(()=>import("./device-bb77aac5.js"),["assets/device-bb77aac5.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./byd/device.vue":()=>e(()=>import("./device-83d0d1d2.js"),["assets/device-83d0d1d2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-efd97f38.js"),["assets/device-efd97f38.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./deye/device.vue":()=>e(()=>import("./device-b2ed509d.js"),["assets/device-b2ed509d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-d91608b1.js"),["assets/device-d91608b1.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-a451e048.js"),["assets/device-a451e048.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./enphase/device.vue":()=>e(()=>import("./device-fa4ff080.js"),["assets/device-fa4ff080.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fems/device.vue":()=>e(()=>import("./device-eb8d7119.js"),["assets/device-eb8d7119.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./fronius/device.vue":()=>e(()=>import("./device-a0c2d57b.js"),["assets/device-a0c2d57b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./good_we/device.vue":()=>e(()=>import("./device-4c06c2b2.js"),["assets/device-4c06c2b2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/device.vue":()=>e(()=>import("./device-94e477af.js"),["assets/device-94e477af.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei/device.vue":()=>e(()=>import("./device-2ea31ec7.js"),["assets/device-2ea31ec7.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-05f612f2.js"),["assets/device-05f612f2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./janitza/device.vue":()=>e(()=>import("./device-f3eb75a3.js"),["assets/device-f3eb75a3.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./json/device.vue":()=>e(()=>import("./device-3f06f01a.js"),["assets/device-3f06f01a.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-ed3f1885.js"),["assets/device-ed3f1885.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-b31c67e4.js"),["assets/device-b31c67e4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-77a56e1d.js"),["assets/device-77a56e1d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-146e5f9d.js"),["assets/device-146e5f9d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-b80c9dca.js"),["assets/device-b80c9dca.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./lg/device.vue":()=>e(()=>import("./device-2ff10261.js"),["assets/device-2ff10261.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-4a2b6383.js"),["assets/device-4a2b6383.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./opendtu/device.vue":()=>e(()=>import("./device-ba3ffbd6.js"),["assets/device-ba3ffbd6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-0bbdcef0.js"),["assets/device-0bbdcef0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-a8567774.js"),["assets/device-a8567774.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-31d96f27.js"),["assets/device-31d96f27.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-89ec12b4.js"),["assets/device-89ec12b4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-f32c8a87.js"),["assets/device-f32c8a87.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-46a3ff2e.js"),["assets/device-46a3ff2e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./qcells/device.vue":()=>e(()=>import("./device-e729de90.js"),["assets/device-e729de90.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./rct/device.vue":()=>e(()=>import("./device-a88cf134.js"),["assets/device-a88cf134.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-3fca2c08.js"),["assets/device-3fca2c08.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./shelly/device.vue":()=>e(()=>import("./device-af91cf00.js"),["assets/device-af91cf00.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens/device.vue":()=>e(()=>import("./device-fbac7aa9.js"),["assets/device-fbac7aa9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-bdcb209b.js"),["assets/device-bdcb209b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-c032eaff.js"),["assets/device-c032eaff.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-3a743e8e.js"),["assets/device-3a743e8e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-68558272.js"),["assets/device-68558272.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-95a82c98.js"),["assets/device-95a82c98.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-4016ebdc.js"),["assets/device-4016ebdc.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-c5f12afe.js"),["assets/device-c5f12afe.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-a98bdda8.js"),["assets/device-a98bdda8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-66142994.js"),["assets/device-66142994.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-bdb190b0.js"),["assets/device-bdb190b0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-4ee21df6.js"),["assets/device-4ee21df6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-2212b92d.js"),["assets/device-2212b92d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-eca45af0.js"),["assets/device-eca45af0.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./solax/device.vue":()=>e(()=>import("./device-68c42e56.js"),["assets/device-68c42e56.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-9e5b2984.js"),["assets/device-9e5b2984.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./studer/device.vue":()=>e(()=>import("./device-fc31f82d.js"),["assets/device-fc31f82d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-2b056108.js"),["assets/device-2b056108.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./sunways/device.vue":()=>e(()=>import("./device-974644de.js"),["assets/device-974644de.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/device.vue":()=>e(()=>import("./device-103ad9f6.js"),["assets/device-103ad9f6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./varta/device.vue":()=>e(()=>import("./device-7f54ce45.js"),["assets/device-7f54ce45.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./victron/device.vue":()=>e(()=>import("./device-d2c1b1df.js"),["assets/device-d2c1b1df.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./virtual/device.vue":()=>e(()=>import("./device-3f08eba4.js"),["assets/device-3f08eba4.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-1eddf414.js"),["assets/device-1eddf414.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./youless/device.vue":()=>e(()=>import("./device-76988bf6.js"),["assets/device-76988bf6.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.deviceType}/device.vue`),errorComponent:S})}},methods:{updateConfiguration(_){this.$emit("update:configuration",_)}}};function se(_,i,u,P,s,r){return d(),E($(r.myComponent),{configuration:u.configuration,deviceId:u.deviceId,deviceType:u.deviceType,componentId:u.componentId,componentType:u.componentType,"onUpdate:configuration":i[0]||(i[0]=I=>r.updateConfiguration(I))},null,40,["configuration","deviceId","deviceType","componentId","componentType"])}const me=y(ae,[["render",se],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbConfigProxy.vue"]]);N.add(U,G,F,H,J,Z,Q);const pe={name:"OpenwbHardwareInstallation",mixins:[Y],emits:["sendCommand"],components:{FontAwesomeIcon:X,OpenwbConfigProxy:me},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/get/hierarchy","openWB/system/device/+/config","openWB/system/device/+/component/+/config","openWB/system/configurable/devices_components"],deviceToAdd:void 0,showDeviceRemoveModal:!1,modalDevice:void 0,modalDeviceName:"",componentToAdd:[],showComponentRemoveModal:!1,modalComponent:void 0,modalComponentName:""}},computed:{installedDevices:{get(){return this.getWildcardTopics("openWB/system/device/+/config")}},installedComponents:{get(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")}}},methods:{getComponentTypeClass(_){return _.match(/^(.+_)?counter(_.+)?$/)?"danger":_.match(/^(.+_)?inverter(_.+)?$/)?"success":_.match(/^(.+_)?bat(_.+)?$/)?"warning":"dark"},getComponentTypeIcon(_){return _.match(/^(.+_)?counter(_.+)?$/)?["fas","fa-gauge-high"]:_.match(/^(.+_)?inverter(_.+)?$/)?["fas","fa-solar-panel"]:_.match(/^(.+_)?bat(_.+)?$/)?["fas","fa-car-battery"]:["fas","fa-microchip"]},getMyInstalledComponents(_){return this.getWildcardTopics("openWB/system/device/"+_+"/component/+/config")},deviceHasConfiguredComponents(_){return Object.keys(this.getMyInstalledComponents(_)).length>0},addDevice(){this.$emit("sendCommand",{command:"addDevice",data:{type:this.deviceToAdd}})},removeDeviceModal(_,i,u){u.stopPropagation(),this.modalDevice=_,this.modalDeviceName=i,this.showDeviceRemoveModal=!0},removeDevice(_){this.showDeviceRemoveModal=!1,_=="confirm"&&(console.info("request removal of device '"+this.modalDevice+"'"),this.$emit("sendCommand",{command:"removeDevice",data:{id:this.modalDevice}}))},getDeviceList(){return this.$store.state.mqtt["openWB/system/configurable/devices_components"]},addComponent(_,i,u){this.$emit("sendCommand",{command:"addComponent",data:{deviceId:_,deviceType:i,type:u}})},removeComponentModal(_,i,u,P,s){s.stopPropagation(),this.modalComponent={deviceId:_,id:i,type:u},this.modalComponentName=P,this.showComponentRemoveModal=!0},removeComponent(_){this.showComponentRemoveModal=!1,_=="confirm"&&(console.info("request removal of component '"+this.modalComponent.id+"' from device '"+this.modalComponent.deviceId+"' type '"+this.modalComponent.type+"'"),this.$emit("sendCommand",{command:"removeComponent",data:this.modalComponent}))},getComponentList(_){return _===void 0?[]:(console.debug("finding components for '"+_+"'"),this.$store.state.mqtt["openWB/system/configurable/devices_components"].find(u=>u.value===_).component)},updateConfiguration(_,i){console.debug("updateConfiguration",_,i),this.updateState(_,i.value,i.object)}}},l=_=>(ee("data-v-8595d6ae"),_=_(),_e(),_),ce={class:"hardwareInstallation"},Ee={name:"hardwareInstallationForm"},le={key:0},Te={key:1},Ie={key:1},Ve=l(()=>m("hr",null,null,-1)),De=l(()=>m("hr",null,null,-1)),Ae=l(()=>m("hr",null,null,-1)),Re=l(()=>m("hr",null,null,-1)),Pe={class:"col-1"},Oe={key:0},Le={class:"col-1"},ge=l(()=>m("br",null,null,-1)),be=l(()=>m("br",null,null,-1)),fe=l(()=>m("br",null,null,-1)),he=l(()=>m("br",null,null,-1)),we=l(()=>m("br",null,null,-1)),ye=l(()=>m("br",null,null,-1));function ke(_,i,u,P,s,r){const I=p("openwb-base-modal-dialog"),L=p("router-link"),A=p("openwb-base-alert"),D=p("font-awesome-icon"),g=p("openwb-base-avatar"),k=p("openwb-base-text-input"),C=p("openwb-config-proxy"),j=p("openwb-base-heading"),b=p("openwb-base-card"),x=p("openwb-base-click-button"),B=p("openwb-base-select-input"),q=p("openwb-base-submit-buttons");return d(),c(O,null,[n(I,{show:s.showDeviceRemoveModal,title:"Gerät löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeDevice},{default:o(()=>[v(' Wollen Sie das Gerät "'+T(s.modalDeviceName)+'" inklusive aller Komponenten wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),n(I,{show:s.showComponentRemoveModal,title:"Komponente löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeComponent},{default:o(()=>[v(' Wollen Sie die Komponente "'+T(s.modalComponentName)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),m("div",ce,[m("form",Ee,[n(A,{subtype:"info"},{default:o(()=>[v(" Wenn neue Komponenten - insbesondere Zähler - konfiguriert wurden, ist auch das "),n(L,{to:"/LoadManagementConfiguration"},{default:o(()=>[v(" Lastmanagement ")]),_:1}),v(" zu prüfen! ")]),_:1}),n(b,{title:"Geräte und Komponenten"},{default:o(()=>[_.$store.state.mqtt["openWB/general/extern"]===!0?(d(),c("div",le,[n(A,{subtype:"info"},{default:o(()=>[v(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),c("div",Te,[(d(!0),c(O,null,f(r.installedDevices,(t,z)=>(d(),E(b,{key:t.id,collapsible:!0,collapsed:!0,subtype:"dark"},{header:o(()=>[n(D,{"fixed-width":"",icon:["fas","network-wired"]}),v(" "+T(t.name),1)]),actions:o(a=>[a.collapsed?(d(),c("div",Ie,[(d(!0),c(O,null,f(r.getMyInstalledComponents(t.id),V=>(d(),E(g,{key:V.id,class:h("ml-1 bg-"+r.getComponentTypeClass(V.type))},{default:o(()=>[n(D,{"fixed-width":"",icon:r.getComponentTypeIcon(V.type)},null,8,["icon"])]),_:2},1032,["class"]))),128))])):(d(),E(g,{key:0,class:"bg-danger clickable",onClick:V=>r.removeDeviceModal(t.id,t.name,V)},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":t.name,"onUpdate:modelValue":a=>_.updateState(z,a,"name")},null,8,["model-value","onUpdate:modelValue"]),Ve,n(C,{deviceId:t.id,deviceType:t.type,configuration:t.configuration,"onUpdate:configuration":a=>r.updateConfiguration(z,a)},null,8,["deviceId","deviceType","configuration","onUpdate:configuration"]),De,n(j,null,{default:o(()=>[v("Komponenten")]),_:1}),r.deviceHasConfiguredComponents(t.id)?w("",!0):(d(),E(A,{key:0,subtype:"warning"},{default:o(()=>[v(" Es wurden noch keine Komponenten zu diesem Gerät angelegt. ")]),_:1})),(d(!0),c(O,null,f(r.getMyInstalledComponents(t.id),(a,V)=>(d(),E(b,{key:a.id,collapsible:!0,collapsed:!0,subtype:r.getComponentTypeClass(a.type)},{header:o(()=>[n(D,{"fixed-width":"",icon:r.getComponentTypeIcon(a.type)},null,8,["icon"]),v(" "+T(a.name),1)]),actions:o(R=>[R.collapsed?w("",!0):(d(),E(g,{key:0,class:"bg-danger clickable",onClick:K=>r.removeComponentModal(t.id,a.id,a.type,a.name,K)},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":a.name,"onUpdate:modelValue":R=>_.updateState(V,R,"name")},null,8,["model-value","onUpdate:modelValue"]),Ae,n(C,{deviceId:t.id,deviceType:t.type,componentId:a.id,componentType:a.type,configuration:a.configuration,"onUpdate:configuration":R=>r.updateConfiguration(V,R)},null,8,["deviceId","deviceType","componentId","componentType","configuration","onUpdate:configuration"])]),_:2},1032,["subtype"]))),128)),Re,r.getComponentList(t.type).length?(d(),E(B,{key:1,class:"mb-2",title:"Verfügbare Komponenten",notSelected:"Bitte auswählen",options:r.getComponentList(t.type),"model-value":s.componentToAdd[t.id],"onUpdate:modelValue":a=>s.componentToAdd[t.id]=a},{append:o(()=>[m("span",Pe,[n(x,{class:h(s.componentToAdd[t.id]===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.componentToAdd[t.id]===void 0,onButtonClicked:a=>r.addComponent(t.id,t.type,s.componentToAdd[t.id])},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["class","disabled","onButtonClicked"])])]),help:o(()=>[v(" Bitte eine Komponente auswählen, die hinzugefügt werden soll. Für jeden Datensatz, z.B. Wechselrichter- und Batteriedaten, muss eine Wechselrichter- und eine Batteriekomponente hinzugefügt werden. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"])):(d(),E(A,{key:2,subtype:"info"},{default:o(()=>[v(" Dieses System bietet keine Komponenten zur Installation an. ")]),_:1}))]),_:2},1024))),128)),Object.keys(r.installedDevices).length>0?(d(),c("hr",Oe)):w("",!0),n(B,{class:"mb-2",title:"Verfügbare Geräte",notSelected:"Bitte auswählen",options:r.getDeviceList(),"model-value":s.deviceToAdd,"onUpdate:modelValue":i[0]||(i[0]=t=>s.deviceToAdd=t)},{append:o(()=>[m("span",Le,[n(x,{class:h(s.deviceToAdd===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.deviceToAdd===void 0,onButtonClicked:r.addDevice},{default:o(()=>[n(D,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:o(()=>[v(' Die openWB-Regelung ist auf Werte von MESSPUNKTEN (Zähler, Energy Meter usw.) angewiesen. Hierfür werden "Geräte" und "Komponenten" verwendet.'),ge,v(' Ein "Gerät" wird hierbei durch seine IP-Adresse spezifiziert (häufig durch manuelle Eingabe oder manchmal automatisch ermittelt) und kann über mehrere untergeordnete "Komponenten" verfügen, z.B. einen Messpunkt für PV-Erzeugung, einen Messpunkt für Netzeinspeisung/-bezug am EVU-Punkt usw.. Ein "Gerät" bedingt somit immer mindestens eine zugehörige "Komponente".'),be,fe,v(' Bsp: Werden die Werte von verschiedenen Messpunkten (z.B. PV und EVU) über die gleiche IP-Adresse abgefragt, wird dafür ein "Gerät" mit zwei "Komponenten" für PV- und EVU- Messpunkt angelegt.'),he,v(' Verfügt dagegen jeder Messpunkt über eine eigene IP-Adresse, wird jeder Messpunkt als eigenes "Gerät" mit nur einer "Komponente" angelegt.'),we,ye,v(' Das "Gerät" wird in der dropdown-Liste ausgewählt und mit "+" der Regelung hinzugefügt. Im Anschluss erfolgt die Konfiguration des "Gerätes" innerhalb des schwarzen "Geräte"-Reiters. ')]),_:1},8,["options","model-value"])]))]),_:1}),n(q,{formName:"hardwareInstallationForm",onSave:i[1]||(i[1]=t=>_.$emit("save")),onReset:i[2]||(i[2]=t=>_.$emit("reset")),onDefaults:i[3]||(i[3]=t=>_.$emit("defaults"))})])])],64)}const qe=y(pe,[["render",ke],["__scopeId","data-v-8595d6ae"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/HardwareInstallation.vue"]]);export{qe as default}; diff --git a/web/settings/assets/InstantChargeConfig-9d5d9336.js b/web/settings/assets/InstantChargeConfig-d8d2493f.js similarity index 96% rename from web/settings/assets/InstantChargeConfig-9d5d9336.js rename to web/settings/assets/InstantChargeConfig-d8d2493f.js index 6e5dd48a40..d833475aa7 100644 --- a/web/settings/assets/InstantChargeConfig-9d5d9336.js +++ b/web/settings/assets/InstantChargeConfig-d8d2493f.js @@ -1 +1 @@ -import{C as l}from"./index-b8f06cb8.js";import{_,q as o,k as a,l as i,u as b,B as s,M as r,x as u}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const h={name:"OpenwbInstantChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/instant_charging/phases_to_use"]}}},c={class:"instantChargeConfig"},f={name:"instantChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const p=o("openwb-base-alert"),m=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(p,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/instant_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/instant_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Sofortladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"instantChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const N=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/InstantChargeConfig.vue"]]);export{N as default}; +import{C as l}from"./index-720fb9ac.js";import{_,q as o,k as a,l as i,u as b,B as s,M as r,x as u}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const h={name:"OpenwbInstantChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/instant_charging/phases_to_use"]}}},c={class:"instantChargeConfig"},f={name:"instantChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const p=o("openwb-base-alert"),m=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(p,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/instant_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/instant_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Sofortladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"instantChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const N=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/InstantChargeConfig.vue"]]);export{N as default}; diff --git a/web/settings/assets/LegalSettings-c7b706ad.js b/web/settings/assets/LegalSettings-f4f5e3b6.js similarity index 97% rename from web/settings/assets/LegalSettings-c7b706ad.js rename to web/settings/assets/LegalSettings-f4f5e3b6.js index 6cb4db70f5..de928ff550 100644 --- a/web/settings/assets/LegalSettings-c7b706ad.js +++ b/web/settings/assets/LegalSettings-f4f5e3b6.js @@ -1 +1 @@ -import{l as f,a7 as k,F as h}from"./vendor-fortawesome-9fdc06a9.js";import{C as y}from"./index-b8f06cb8.js";import{_ as v,q as n,k as r,l as B,u as i,B as o,M as a,z as m,x as d,A as c}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";f.add(k);const z={name:"OpenwbDataProtection",components:{FontAwesomeIcon:h},mixins:[y],emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/system/dataprotection_acknowledged"]}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})}}},S={class:"dataProtection"},$={name:"dataProtectionForm"},C=i("iframe",{src:"dataProtection-usageTerms.html",width:"100%",height:"400px",class:"bg-light"},null,-1),V=i("hr",null,null,-1),W={class:"row justify-content-center"},N={class:"col-md-4 d-flex justify-content-center"};function x(t,e,A,q,P,p){const u=n("openwb-base-button-group-input"),b=n("font-awesome-icon"),_=n("openwb-base-click-button"),l=n("openwb-base-alert"),g=n("openwb-base-submit-buttons"),w=n("openwb-base-card");return r(),B("div",S,[i("form",$,[o(w,{title:"Nutzungsbedingungen & Datenschutzerklärung"},{footer:a(()=>[o(g,{formName:"dataProtectionForm",hideReset:!0,hideDefaults:!0,onSave:e[3]||(e[3]=s=>t.$emit("save"))})]),default:a(()=>[C,V,o(u,{title:"Nutzungsbedingungen",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"],"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateState("openWB/system/usage_terms_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"]?c("",!0):(r(),m(l,{key:0,subtype:"danger",class:"mb-1"},{default:a(()=>[d(" Sie müssen die Nutzungsbedingungen akzeptieren, bevor openWB eingesetzt werden kann. "),i("div",W,[i("div",N,[o(_,{class:"btn-danger",onButtonClicked:e[1]||(e[1]=s=>p.sendSystemCommand("systemShutdown"))},{default:a(()=>[d(" Nicht akzeptieren und ausschalten "),o(b,{"fixed-width":"",icon:["fas","power-off"]})]),_:1})])])]),_:1})),o(u,{title:"Datenschutzerklärung",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"],"onUpdate:modelValue":e[2]||(e[2]=s=>t.updateState("openWB/system/dataprotection_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]?c("",!0):(r(),m(l,{key:1,subtype:"warning"},{default:a(()=>[d(" Wenn sie nicht einwilligen, wird eine ggf. konfigurierte Cloud Anbindung gelöscht. Die openWB arbeitet autark wie gewohnt weiter. Fernzugriff und Remote Support sind dann nicht mehr möglich! ")]),_:1}))]),_:1})])])}const U=v(z,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LegalSettings.vue"]]);export{U as default}; +import{l as f,a7 as k,F as h}from"./vendor-fortawesome-9fdc06a9.js";import{C as y}from"./index-720fb9ac.js";import{_ as v,q as n,k as r,l as B,u as i,B as o,M as a,z as m,x as d,A as c}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";f.add(k);const z={name:"OpenwbDataProtection",components:{FontAwesomeIcon:h},mixins:[y],emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/system/dataprotection_acknowledged"]}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})}}},S={class:"dataProtection"},$={name:"dataProtectionForm"},C=i("iframe",{src:"dataProtection-usageTerms.html",width:"100%",height:"400px",class:"bg-light"},null,-1),V=i("hr",null,null,-1),W={class:"row justify-content-center"},N={class:"col-md-4 d-flex justify-content-center"};function x(t,e,A,q,P,p){const u=n("openwb-base-button-group-input"),b=n("font-awesome-icon"),_=n("openwb-base-click-button"),l=n("openwb-base-alert"),g=n("openwb-base-submit-buttons"),w=n("openwb-base-card");return r(),B("div",S,[i("form",$,[o(w,{title:"Nutzungsbedingungen & Datenschutzerklärung"},{footer:a(()=>[o(g,{formName:"dataProtectionForm",hideReset:!0,hideDefaults:!0,onSave:e[3]||(e[3]=s=>t.$emit("save"))})]),default:a(()=>[C,V,o(u,{title:"Nutzungsbedingungen",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"],"onUpdate:modelValue":e[0]||(e[0]=s=>t.updateState("openWB/system/usage_terms_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/usage_terms_acknowledged"]?c("",!0):(r(),m(l,{key:0,subtype:"danger",class:"mb-1"},{default:a(()=>[d(" Sie müssen die Nutzungsbedingungen akzeptieren, bevor openWB eingesetzt werden kann. "),i("div",W,[i("div",N,[o(_,{class:"btn-danger",onButtonClicked:e[1]||(e[1]=s=>p.sendSystemCommand("systemShutdown"))},{default:a(()=>[d(" Nicht akzeptieren und ausschalten "),o(b,{"fixed-width":"",icon:["fas","power-off"]})]),_:1})])])]),_:1})),o(u,{title:"Datenschutzerklärung",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"],"onUpdate:modelValue":e[2]||(e[2]=s=>t.updateState("openWB/system/dataprotection_acknowledged",s))},null,8,["model-value"]),t.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]?c("",!0):(r(),m(l,{key:1,subtype:"warning"},{default:a(()=>[d(" Wenn sie nicht einwilligen, wird eine ggf. konfigurierte Cloud Anbindung gelöscht. Die openWB arbeitet autark wie gewohnt weiter. Fernzugriff und Remote Support sind dann nicht mehr möglich! ")]),_:1}))]),_:1})])])}const U=v(z,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LegalSettings.vue"]]);export{U as default}; diff --git a/web/settings/assets/LoadManagementConfig-02298433.js b/web/settings/assets/LoadManagementConfig-b98691c6.js similarity index 99% rename from web/settings/assets/LoadManagementConfig-02298433.js rename to web/settings/assets/LoadManagementConfig-b98691c6.js index 3b637cf63b..1b6ace681a 100644 --- a/web/settings/assets/LoadManagementConfig-02298433.js +++ b/web/settings/assets/LoadManagementConfig-b98691c6.js @@ -1 +1 @@ -import{l as z,O as S,N as C,F as L}from"./vendor-fortawesome-9fdc06a9.js";import{C as $}from"./index-b8f06cb8.js";import{S as x}from"./OpenwbSortableList-e04fc271.js";import{_ as V,q as u,k as l,l as m,u as d,B as s,M as r,x as o,I as _,J as v,z as w,y as k}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";z.add(S,C);const M={name:"OpenwbLoadManagementConfig",mixins:[$],emits:["sendCommand"],components:{SortableList:x,FontAwesomeIcon:L},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/config/reserve_for_not_charging","openWB/counter/get/hierarchy","openWB/system/device/+/component/+/config","openWB/counter/+/config/max_currents","openWB/counter/+/config/max_total_power","openWB/pv/+/config/max_ac_out","openWB/chargepoint/+/config"]}},computed:{counterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("counter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},inverterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("inverter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},hierarchyLabels:{get(){let e={};for(const t of Object.values(this.$store.state.mqtt["openWB/counter/get/hierarchy"]))e={...e,...this.getElementTreeNames(t)};return e}}},methods:{getElementTreeNames(e){let t={};if(e.type=="cp"){let i=this.getChargePoint(e.id);i&&(t[e.id]=i.name)}else{let i=this.getComponent(e.id);i&&(t[e.id]=i.name)}return e.children.forEach(i=>{t={...t,...this.getElementTreeNames(i)}}),t},getComponent(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/system/device/[0-9]+/component/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t},getChargePoint(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/chargepoint/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t}}},q={class:"loadManagementConfig"},Z={name:"loadManagementConfigForm"},E={key:0},F={key:1},U=d("br",null,null,-1),A=d("br",null,null,-1),D=d("br",null,null,-1),N=d("br",null,null,-1),P=d("br",null,null,-1),T={key:0},O={key:1},j=d("br",null,null,-1),R=d("br",null,null,-1),G=d("br",null,null,-1);function K(e,t,i,H,I,g){const h=u("openwb-base-alert"),W=u("openwb-base-button-group-input"),f=u("openwb-base-heading"),b=u("font-awesome-icon"),c=u("openwb-base-number-input"),p=u("openwb-base-card"),B=u("sortable-list"),y=u("openwb-base-submit-buttons");return l(),m("div",q,[d("form",Z,[s(p,{title:"Einstellungen",collapsible:!0,collapsed:!1},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",E,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",F,[s(W,{title:"Nicht-ladende Fahrzeuge",buttons:[{buttonValue:!1,text:"nicht berücksichtigen",class:"btn-outline-danger"},{buttonValue:!0,text:"berücksichtigen",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/counter/config/reserve_for_not_charging"],"onUpdate:modelValue":t[0]||(t[0]=n=>e.updateState("openWB/counter/config/reserve_for_not_charging",n))},{help:r(()=>[o(" Wenn angesteckte Fahrzeuge, die nicht laden, im Lastmanagement berücksichtigt werden, wird für diese der Fahrzeug-Mindeststrom bei vorliegender Ladefreigabe reserviert. Dadurch können bei Eingreifen des Lastmanagements andere Fahrzeuge möglicherweise nur mit reduzierter Stromstärke laden und der reservierte Strom wird nicht genutzt."),U,o(" Wenn die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, nutzen sie den für sie reservierten Strom."),A,D,o(" Wenn angesteckte Fahrzeuge, die nicht laden, nicht im Lastmanagement berücksichtigt werden, wird für diese auch kein Strom bei vorliegender Ladefreigabe reserviert. Andere Fahrzeuge können dadurch mit höherer Stromstärke laden."),N,o(" Wenn die maximalen Lastmanagement-Grenzen fast erreicht sind und die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, kann es zu einer kurzzeitigen Überschreitung der Lastmanagement-Grenzen kommen, bis im nächsten Zyklus die Stromstärken ALLER Ladepunkte an die neue Situation angepasst wurden."),P,o(" Das kurzzeitige Überschreiten der Maximal-Werte stellt für die Sicherungen in der Regel kein Problem dar. ")]),_:1},8,["model-value"]),s(f,null,{default:r(()=>[o(" Vorhandene Zählermodule ")]),_:1}),s(h,{subtype:"info"},{default:r(()=>[o(" Die maximale Leistung wird nur für den EVU-Zähler berücksichtigt. Bei Zwischenzählern begrenzt das Lastmanagement rein anhand der maximalen Phasenströme. ")]),_:1}),(l(!0),m(_,null,v(g.counterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"danger"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","gauge-high"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Leistung",min:1,step:1,unit:"kW","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_total_power"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_total_power",a*1e3)},{help:r(()=>[o(" Maximal zulässige Leistung für diesen (Zwischen-)Zähler. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L1",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][0],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"0")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 1 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L2",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][1],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"1")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 2 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L3",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][2],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"2")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 3 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128)),s(f,null,{default:r(()=>[o(" Vorhandene Wechselrichtermodule ")]),_:1}),(l(!0),m(_,null,v(g.inverterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"success"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","solar-panel"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Ausgangsleistung des Wechselrichters",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/pv/"+n.id+"/config/max_ac_out"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/pv/"+n.id+"/config/max_ac_out",a*1e3)},{help:r(()=>[o(" Relevant bei Hybrid-Systemen mit DC-Speicher. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128))]))]),_:1}),s(p,{title:"Struktur",collapsible:!0,collapsed:!0},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",T,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",O,[s(B,{title:"Anordnung der Komponenten","model-value":e.$store.state.mqtt["openWB/counter/get/hierarchy"],"onUpdate:modelValue":t[1]||(t[1]=n=>e.updateState("openWB/counter/get/hierarchy",n)),labels:g.hierarchyLabels},{help:r(()=>[o(" Durch die Anordnung der Komponenten werden Abhängigkeiten abgebildet."),j,o(" An erster Stelle muss eine Zählerkomponente stehen, die den Netzanschlusspunkt erfasst. Dafür kann auch ein virtueller Zähler genutzt werden."),R,o(" Die weiteren Komponenten müssen hierarchisch so angeordnet werden, wie sie auch physisch im Stromnetz angeschlossen werden."),G,o(" Bei DC-gekoppelten Speichern sind diese hinter dem zugehörigen Wechselrichter zu platzieren, damit die Abhängigkeit in der Regelung berücksichtigt werden kann. ")]),_:1},8,["model-value","labels"])]))]),_:1}),s(y,{formName:"loadManagementConfigForm",onSave:t[2]||(t[2]=n=>e.$emit("save")),onReset:t[3]||(t[3]=n=>e.$emit("reset")),onDefaults:t[4]||(t[4]=n=>e.$emit("defaults"))})])])}const ie=V(M,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LoadManagementConfig.vue"]]);export{ie as default}; +import{l as z,O as S,N as C,F as L}from"./vendor-fortawesome-9fdc06a9.js";import{C as $}from"./index-720fb9ac.js";import{S as x}from"./OpenwbSortableList-e04fc271.js";import{_ as V,q as u,k as l,l as m,u as d,B as s,M as r,x as o,I as _,J as v,z as w,y as k}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";z.add(S,C);const M={name:"OpenwbLoadManagementConfig",mixins:[$],emits:["sendCommand"],components:{SortableList:x,FontAwesomeIcon:L},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/config/reserve_for_not_charging","openWB/counter/get/hierarchy","openWB/system/device/+/component/+/config","openWB/counter/+/config/max_currents","openWB/counter/+/config/max_total_power","openWB/pv/+/config/max_ac_out","openWB/chargepoint/+/config"]}},computed:{counterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("counter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},inverterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("inverter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},hierarchyLabels:{get(){let e={};for(const t of Object.values(this.$store.state.mqtt["openWB/counter/get/hierarchy"]))e={...e,...this.getElementTreeNames(t)};return e}}},methods:{getElementTreeNames(e){let t={};if(e.type=="cp"){let i=this.getChargePoint(e.id);i&&(t[e.id]=i.name)}else{let i=this.getComponent(e.id);i&&(t[e.id]=i.name)}return e.children.forEach(i=>{t={...t,...this.getElementTreeNames(i)}}),t},getComponent(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/system/device/[0-9]+/component/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t},getChargePoint(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/chargepoint/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t}}},q={class:"loadManagementConfig"},Z={name:"loadManagementConfigForm"},E={key:0},F={key:1},U=d("br",null,null,-1),A=d("br",null,null,-1),D=d("br",null,null,-1),N=d("br",null,null,-1),P=d("br",null,null,-1),T={key:0},O={key:1},j=d("br",null,null,-1),R=d("br",null,null,-1),G=d("br",null,null,-1);function K(e,t,i,H,I,g){const h=u("openwb-base-alert"),W=u("openwb-base-button-group-input"),f=u("openwb-base-heading"),b=u("font-awesome-icon"),c=u("openwb-base-number-input"),p=u("openwb-base-card"),B=u("sortable-list"),y=u("openwb-base-submit-buttons");return l(),m("div",q,[d("form",Z,[s(p,{title:"Einstellungen",collapsible:!0,collapsed:!1},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",E,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",F,[s(W,{title:"Nicht-ladende Fahrzeuge",buttons:[{buttonValue:!1,text:"nicht berücksichtigen",class:"btn-outline-danger"},{buttonValue:!0,text:"berücksichtigen",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/counter/config/reserve_for_not_charging"],"onUpdate:modelValue":t[0]||(t[0]=n=>e.updateState("openWB/counter/config/reserve_for_not_charging",n))},{help:r(()=>[o(" Wenn angesteckte Fahrzeuge, die nicht laden, im Lastmanagement berücksichtigt werden, wird für diese der Fahrzeug-Mindeststrom bei vorliegender Ladefreigabe reserviert. Dadurch können bei Eingreifen des Lastmanagements andere Fahrzeuge möglicherweise nur mit reduzierter Stromstärke laden und der reservierte Strom wird nicht genutzt."),U,o(" Wenn die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, nutzen sie den für sie reservierten Strom."),A,D,o(" Wenn angesteckte Fahrzeuge, die nicht laden, nicht im Lastmanagement berücksichtigt werden, wird für diese auch kein Strom bei vorliegender Ladefreigabe reserviert. Andere Fahrzeuge können dadurch mit höherer Stromstärke laden."),N,o(" Wenn die maximalen Lastmanagement-Grenzen fast erreicht sind und die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, kann es zu einer kurzzeitigen Überschreitung der Lastmanagement-Grenzen kommen, bis im nächsten Zyklus die Stromstärken ALLER Ladepunkte an die neue Situation angepasst wurden."),P,o(" Das kurzzeitige Überschreiten der Maximal-Werte stellt für die Sicherungen in der Regel kein Problem dar. ")]),_:1},8,["model-value"]),s(f,null,{default:r(()=>[o(" Vorhandene Zählermodule ")]),_:1}),s(h,{subtype:"info"},{default:r(()=>[o(" Die maximale Leistung wird nur für den EVU-Zähler berücksichtigt. Bei Zwischenzählern begrenzt das Lastmanagement rein anhand der maximalen Phasenströme. ")]),_:1}),(l(!0),m(_,null,v(g.counterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"danger"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","gauge-high"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Leistung",min:1,step:1,unit:"kW","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_total_power"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_total_power",a*1e3)},{help:r(()=>[o(" Maximal zulässige Leistung für diesen (Zwischen-)Zähler. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L1",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][0],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"0")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 1 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L2",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][1],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"1")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 2 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L3",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][2],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"2")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 3 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128)),s(f,null,{default:r(()=>[o(" Vorhandene Wechselrichtermodule ")]),_:1}),(l(!0),m(_,null,v(g.inverterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"success"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","solar-panel"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Ausgangsleistung des Wechselrichters",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/pv/"+n.id+"/config/max_ac_out"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/pv/"+n.id+"/config/max_ac_out",a*1e3)},{help:r(()=>[o(" Relevant bei Hybrid-Systemen mit DC-Speicher. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128))]))]),_:1}),s(p,{title:"Struktur",collapsible:!0,collapsed:!0},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",T,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",O,[s(B,{title:"Anordnung der Komponenten","model-value":e.$store.state.mqtt["openWB/counter/get/hierarchy"],"onUpdate:modelValue":t[1]||(t[1]=n=>e.updateState("openWB/counter/get/hierarchy",n)),labels:g.hierarchyLabels},{help:r(()=>[o(" Durch die Anordnung der Komponenten werden Abhängigkeiten abgebildet."),j,o(" An erster Stelle muss eine Zählerkomponente stehen, die den Netzanschlusspunkt erfasst. Dafür kann auch ein virtueller Zähler genutzt werden."),R,o(" Die weiteren Komponenten müssen hierarchisch so angeordnet werden, wie sie auch physisch im Stromnetz angeschlossen werden."),G,o(" Bei DC-gekoppelten Speichern sind diese hinter dem zugehörigen Wechselrichter zu platzieren, damit die Abhängigkeit in der Regelung berücksichtigt werden kann. ")]),_:1},8,["model-value","labels"])]))]),_:1}),s(y,{formName:"loadManagementConfigForm",onSave:t[2]||(t[2]=n=>e.$emit("save")),onReset:t[3]||(t[3]=n=>e.$emit("reset")),onDefaults:t[4]||(t[4]=n=>e.$emit("defaults"))})])])}const ie=V(M,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LoadManagementConfig.vue"]]);export{ie as default}; diff --git a/web/settings/assets/MqttBridgeConfig-11cde72e.js b/web/settings/assets/MqttBridgeConfig-b088a569.js similarity index 99% rename from web/settings/assets/MqttBridgeConfig-11cde72e.js rename to web/settings/assets/MqttBridgeConfig-b088a569.js index cbe0604571..5a5938b166 100644 --- a/web/settings/assets/MqttBridgeConfig-11cde72e.js +++ b/web/settings/assets/MqttBridgeConfig-b088a569.js @@ -1 +1 @@ -import{l as C,d as q,_ as A,F as z}from"./vendor-fortawesome-9fdc06a9.js";import{C as D}from"./index-b8f06cb8.js";import{_ as I,q as r,k as m,l as c,B as n,M as o,u as b,I as k,x as s,y,z as T,A as S,J as W,R as E,S as N}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";C.add(q,A);const P={name:"OpenwbMqttBridgeConfiguration",mixins:[D],emits:["sendCommand"],components:{FontAwesomeIcon:z},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/mqtt/bridge/+"],showMqttBridgeModal:!1,modalMqttBridgeIndex:void 0}},computed:{configuredMqttBridges:{get(){let e=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[u,g]of Object.entries(e))g.remote.is_openwb_cloud&&delete e[u];return e}}},methods:{addMqttBridge(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addMqttBridge",data:{}})},getMqttBridgeIndex(e){return parseInt(e.match(/(?:\/)(\d+)$/)[1])},removeMqttBridgeModal(e,u){u.stopPropagation(),this.modalMqttBridgeIndex=this.getMqttBridgeIndex(e),this.showMqttBridgeModal=!0},removeMqttBridge(e,u){this.showMqttBridgeModal=!1,u=="confirm"&&(console.info("request removal of mqtt bridge '"+e+"'"),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:e}}))},getMqttBridgeName(e){return this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e]?this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e].name:e}}},_=e=>(E("data-v-1ec2f2f5"),e=e(),N(),e),Q={class:"mqttBridgeConfiguration"},Z=_(()=>b("br",null,null,-1)),F={key:0},L={key:1},$=["name"],O=_(()=>b("hr",null,null,-1)),R=_(()=>b("hr",null,null,-1));function j(e,u,g,J,f,i){const U=r("openwb-base-modal-dialog"),h=r("openwb-base-alert"),v=r("font-awesome-icon"),w=r("openwb-base-avatar"),p=r("openwb-base-text-input"),d=r("openwb-base-button-group-input"),V=r("openwb-base-heading"),B=r("openwb-base-number-input"),x=r("openwb-base-submit-buttons"),M=r("openwb-base-card");return m(),c(k,null,[n(U,{show:f.showMqttBridgeModal,title:"MQTT-Brücke löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:u[0]||(u[0]=l=>i.removeMqttBridge(f.modalMqttBridgeIndex,l))},{default:o(()=>[s(' Wollen Sie die MQTT-Brücke "'+y(i.getMqttBridgeName(f.modalMqttBridgeIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),b("div",Q,[n(h,{subtype:"danger"},{default:o(()=>[s(" ACHTUNG: Die Konfiguration einer MQTT-Brücke erlaubt allen Nutzern mit Zugang zum entfernten MQTT-Server alle weitergeleiteten Daten dieser openWB einzusehen!"),Z,s(' Es wird dringend empfohlen, dies nur für nicht-öffentliche MQTT-Server unter Verwendung starker Transport-Verschlüsselung (TLS) mit persönlichem Login und strenger Zugriffskontrolle (zumindest für die MQTT-Thema unterhalb von "Entfernter Präfix") zu aktivieren! ')]),_:1}),n(M,{title:"Konfigurierte MQTT-Brücken"},{actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(m(),T(w,{key:0,class:"bg-success clickable",onClick:i.addMqttBridge},{default:o(()=>[n(v,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):S("",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(m(),c("div",F,[n(h,{subtype:"info"},{default:o(()=>[s(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(m(),c("div",L,[Object.keys(i.configuredMqttBridges).length===0?(m(),T(h,{key:0,subtype:"info"},{default:o(()=>[s(" Es wurde noch keine MQTT Brücke konfiguriert. ")]),_:1})):S("",!0),(m(!0),c(k,null,W(i.configuredMqttBridges,(l,a)=>(m(),c("form",{key:a,name:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a)},[n(M,{title:l.name,collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(()=>[n(w,{class:"bg-danger clickable",onClick:t=>i.removeMqttBridgeModal(a,t)},{default:o(()=>[n(v,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])]),footer:o(()=>[n(x,{formName:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a),hideDefaults:!0,onSave:t=>e.$emit("save",[a]),onReset:t=>e.$emit("reset",[a])},null,8,["formName","onSave","onReset"])]),default:o(()=>[n(p,{title:"Bezeichnung",subtype:"text",required:"",pattern:"[A-Za-z0-9]+","model-value":l.name,"onUpdate:modelValue":t=>e.updateState(a,t,"name")},{help:o(()=>[s(" Die Bezeichnung darf nur aus Buchstaben ohne Umlaute und Zahlen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke aktivieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":l.active,"onUpdate:modelValue":t=>e.updateState(a,t,"active")},null,8,["model-value","onUpdate:modelValue"]),O,n(V,null,{default:o(()=>[s(" Einstellungen zur Verbindung ")]),_:1}),n(p,{title:"Entfernter Server",subtype:"host",required:"","model-value":l.remote.host,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.host")},null,8,["model-value","onUpdate:modelValue"]),n(B,{title:"Entfernter Port",required:"",min:1,max:65535,"model-value":l.remote.port,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.port")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Benutzername",subtype:"user",required:"",pattern:"[a-zA-Z0-9_\\-+.]+","model-value":l.remote.username,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.username")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Passwort",subtype:"password",required:"","model-value":l.remote.password,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.password")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Präfix",subtype:"text",pattern:"[A-Za-z0-9_\\-]+(\\/[A-Za-z0-9_\\-]+)?\\/","model-value":l.remote.prefix,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.prefix")},{help:o(()=>[s(' Das Präfix darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. Optional kann mit einem Schrägstrich "/" eine Topic-Struktur abgebildet werden. Am Ende des Präfix muss ein Schrägstrich "/" stehen. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(p,{title:"Client ID",subtype:"text",required:"",pattern:"[A-Za-z0-9_\\-]+","model-value":l.remote.client_id,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.client_id")},{help:o(()=>[s(" Die Client ID darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"MQTT Protokoll",required:"required",buttons:[{buttonValue:"mqttv31",text:"v3.1"},{buttonValue:"mqttv311",text:"v3.1.1"}],"model-value":l.remote.protocol,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.protocol")},null,8,["model-value","onUpdate:modelValue"]),n(d,{title:"TLS Version",buttons:[{buttonValue:"auto",text:"Automatisch",class:"btn-outline-success"},{buttonValue:"tlsv1.0",text:"v1.0",class:"btn-outline-warning"},{buttonValue:"tlsv1.1",text:"v1.1",class:"btn-outline-warning"},{buttonValue:"tlsv1.2",text:"v1.2"}],"model-value":l.remote.tls_version,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.tls_version")},{help:o(()=>[s(' In der Einstellung "Automatisch" wird die Version zwischen Client und Server ausgehandelt. Wenn erforderlich, kann eine spezielle Version erzwungen werden. Versionen kleiner 1.2 gelten als veraltet und sollten nicht mehr verwendet werden. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke signalisieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.remote.try_private,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.try_private")},{help:o(()=>[s(" Aktiviert eine proprietäre Protokoll-Erweiterung des Mosquitto Brokers, welche dem entfernten Broker signalisiert dass es sich um eine MQTT Brücke handelt. Ergibt bessere Leistung mit Mosquitto-Brokern, ist jedoch inkompatibel mit vielen anderen MQTT-Brokern. Daher bitte nur aktivieren, wenn der Ziel-Broker sicher ein Mosquitto-Broker ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),R,n(V,null,{default:o(()=>[s("Datenübertragung")]),_:1}),n(d,{title:"Alle Statusdaten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.status,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.status")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Datenserien für Diagramme",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.graph,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.graph")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Fernkonfiguration ermöglichen",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.configuration,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.configuration")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1032,["title"])],8,$))),128))]))]),_:1})])],64)}const ne=I(P,[["render",j],["__scopeId","data-v-1ec2f2f5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/MqttBridgeConfig.vue"]]);export{ne as default}; +import{l as C,d as q,_ as A,F as z}from"./vendor-fortawesome-9fdc06a9.js";import{C as D}from"./index-720fb9ac.js";import{_ as I,q as r,k as m,l as c,B as n,M as o,u as b,I as k,x as s,y,z as T,A as S,J as W,R as E,S as N}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";C.add(q,A);const P={name:"OpenwbMqttBridgeConfiguration",mixins:[D],emits:["sendCommand"],components:{FontAwesomeIcon:z},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/mqtt/bridge/+"],showMqttBridgeModal:!1,modalMqttBridgeIndex:void 0}},computed:{configuredMqttBridges:{get(){let e=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[u,g]of Object.entries(e))g.remote.is_openwb_cloud&&delete e[u];return e}}},methods:{addMqttBridge(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addMqttBridge",data:{}})},getMqttBridgeIndex(e){return parseInt(e.match(/(?:\/)(\d+)$/)[1])},removeMqttBridgeModal(e,u){u.stopPropagation(),this.modalMqttBridgeIndex=this.getMqttBridgeIndex(e),this.showMqttBridgeModal=!0},removeMqttBridge(e,u){this.showMqttBridgeModal=!1,u=="confirm"&&(console.info("request removal of mqtt bridge '"+e+"'"),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:e}}))},getMqttBridgeName(e){return this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e]?this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e].name:e}}},_=e=>(E("data-v-1ec2f2f5"),e=e(),N(),e),Q={class:"mqttBridgeConfiguration"},Z=_(()=>b("br",null,null,-1)),F={key:0},L={key:1},$=["name"],O=_(()=>b("hr",null,null,-1)),R=_(()=>b("hr",null,null,-1));function j(e,u,g,J,f,i){const U=r("openwb-base-modal-dialog"),h=r("openwb-base-alert"),v=r("font-awesome-icon"),w=r("openwb-base-avatar"),p=r("openwb-base-text-input"),d=r("openwb-base-button-group-input"),V=r("openwb-base-heading"),B=r("openwb-base-number-input"),x=r("openwb-base-submit-buttons"),M=r("openwb-base-card");return m(),c(k,null,[n(U,{show:f.showMqttBridgeModal,title:"MQTT-Brücke löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:u[0]||(u[0]=l=>i.removeMqttBridge(f.modalMqttBridgeIndex,l))},{default:o(()=>[s(' Wollen Sie die MQTT-Brücke "'+y(i.getMqttBridgeName(f.modalMqttBridgeIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),b("div",Q,[n(h,{subtype:"danger"},{default:o(()=>[s(" ACHTUNG: Die Konfiguration einer MQTT-Brücke erlaubt allen Nutzern mit Zugang zum entfernten MQTT-Server alle weitergeleiteten Daten dieser openWB einzusehen!"),Z,s(' Es wird dringend empfohlen, dies nur für nicht-öffentliche MQTT-Server unter Verwendung starker Transport-Verschlüsselung (TLS) mit persönlichem Login und strenger Zugriffskontrolle (zumindest für die MQTT-Thema unterhalb von "Entfernter Präfix") zu aktivieren! ')]),_:1}),n(M,{title:"Konfigurierte MQTT-Brücken"},{actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(m(),T(w,{key:0,class:"bg-success clickable",onClick:i.addMqttBridge},{default:o(()=>[n(v,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):S("",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(m(),c("div",F,[n(h,{subtype:"info"},{default:o(()=>[s(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(m(),c("div",L,[Object.keys(i.configuredMqttBridges).length===0?(m(),T(h,{key:0,subtype:"info"},{default:o(()=>[s(" Es wurde noch keine MQTT Brücke konfiguriert. ")]),_:1})):S("",!0),(m(!0),c(k,null,W(i.configuredMqttBridges,(l,a)=>(m(),c("form",{key:a,name:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a)},[n(M,{title:l.name,collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(()=>[n(w,{class:"bg-danger clickable",onClick:t=>i.removeMqttBridgeModal(a,t)},{default:o(()=>[n(v,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])]),footer:o(()=>[n(x,{formName:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a),hideDefaults:!0,onSave:t=>e.$emit("save",[a]),onReset:t=>e.$emit("reset",[a])},null,8,["formName","onSave","onReset"])]),default:o(()=>[n(p,{title:"Bezeichnung",subtype:"text",required:"",pattern:"[A-Za-z0-9]+","model-value":l.name,"onUpdate:modelValue":t=>e.updateState(a,t,"name")},{help:o(()=>[s(" Die Bezeichnung darf nur aus Buchstaben ohne Umlaute und Zahlen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke aktivieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":l.active,"onUpdate:modelValue":t=>e.updateState(a,t,"active")},null,8,["model-value","onUpdate:modelValue"]),O,n(V,null,{default:o(()=>[s(" Einstellungen zur Verbindung ")]),_:1}),n(p,{title:"Entfernter Server",subtype:"host",required:"","model-value":l.remote.host,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.host")},null,8,["model-value","onUpdate:modelValue"]),n(B,{title:"Entfernter Port",required:"",min:1,max:65535,"model-value":l.remote.port,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.port")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Benutzername",subtype:"user",required:"",pattern:"[a-zA-Z0-9_\\-+.]+","model-value":l.remote.username,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.username")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Passwort",subtype:"password",required:"","model-value":l.remote.password,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.password")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Präfix",subtype:"text",pattern:"[A-Za-z0-9_\\-]+(\\/[A-Za-z0-9_\\-]+)?\\/","model-value":l.remote.prefix,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.prefix")},{help:o(()=>[s(' Das Präfix darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. Optional kann mit einem Schrägstrich "/" eine Topic-Struktur abgebildet werden. Am Ende des Präfix muss ein Schrägstrich "/" stehen. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(p,{title:"Client ID",subtype:"text",required:"",pattern:"[A-Za-z0-9_\\-]+","model-value":l.remote.client_id,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.client_id")},{help:o(()=>[s(" Die Client ID darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"MQTT Protokoll",required:"required",buttons:[{buttonValue:"mqttv31",text:"v3.1"},{buttonValue:"mqttv311",text:"v3.1.1"}],"model-value":l.remote.protocol,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.protocol")},null,8,["model-value","onUpdate:modelValue"]),n(d,{title:"TLS Version",buttons:[{buttonValue:"auto",text:"Automatisch",class:"btn-outline-success"},{buttonValue:"tlsv1.0",text:"v1.0",class:"btn-outline-warning"},{buttonValue:"tlsv1.1",text:"v1.1",class:"btn-outline-warning"},{buttonValue:"tlsv1.2",text:"v1.2"}],"model-value":l.remote.tls_version,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.tls_version")},{help:o(()=>[s(' In der Einstellung "Automatisch" wird die Version zwischen Client und Server ausgehandelt. Wenn erforderlich, kann eine spezielle Version erzwungen werden. Versionen kleiner 1.2 gelten als veraltet und sollten nicht mehr verwendet werden. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke signalisieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.remote.try_private,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.try_private")},{help:o(()=>[s(" Aktiviert eine proprietäre Protokoll-Erweiterung des Mosquitto Brokers, welche dem entfernten Broker signalisiert dass es sich um eine MQTT Brücke handelt. Ergibt bessere Leistung mit Mosquitto-Brokern, ist jedoch inkompatibel mit vielen anderen MQTT-Brokern. Daher bitte nur aktivieren, wenn der Ziel-Broker sicher ein Mosquitto-Broker ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),R,n(V,null,{default:o(()=>[s("Datenübertragung")]),_:1}),n(d,{title:"Alle Statusdaten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.status,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.status")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Datenserien für Diagramme",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.graph,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.graph")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Fernkonfiguration ermöglichen",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.configuration,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.configuration")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1032,["title"])],8,$))),128))]))]),_:1})])],64)}const ne=I(P,[["render",j],["__scopeId","data-v-1ec2f2f5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/MqttBridgeConfig.vue"]]);export{ne as default}; diff --git a/web/settings/assets/OptionalComponents-7d9ac58f.js b/web/settings/assets/OptionalComponents-4217fc43.js similarity index 99% rename from web/settings/assets/OptionalComponents-7d9ac58f.js rename to web/settings/assets/OptionalComponents-4217fc43.js index f1cc0b67e3..4b573f0209 100644 --- a/web/settings/assets/OptionalComponents-7d9ac58f.js +++ b/web/settings/assets/OptionalComponents-4217fc43.js @@ -1,2 +1,2 @@ -import{_ as $,C}from"./index-b8f06cb8.js";import{_ as I}from"./dynamic-import-helper-be004503.js";import{l as L,X as O,Y as S,F as V}from"./vendor-fortawesome-9fdc06a9.js";import{_ as y,q as l,k as p,l as m,z as h,M as o,x as a,y as c,B as n,u as r,a1 as z,a2 as q,I as E,A as f}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const F={name:"DisplayThemeFallback",emits:["update:configuration"],props:{displayTheme:{type:Object,required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},x={class:"display-theme-fallback"},N={key:1};function j(e,t,s,v,w,u){const d=l("openwb-base-alert"),b=l("openwb-base-textarea");return p(),m("div",x,[Object.keys(s.displayTheme.configuration).length==0?(p(),h(d,{key:0,subtype:"info"},{default:o(()=>[a(' Das Display-Theme "'+c(s.displayTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(p(),m("div",N,[n(d,{subtype:"warning"},{default:o(()=>[a(' Es wurde keine Konfigurationsseite für das Display-Theme "'+c(s.displayTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":s.displayTheme.configuration,"onUpdate:modelValue":t[0]||(t[0]=g=>u.updateConfiguration(g,"configuration"))},{help:o(()=>[a(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(d,{subtype:"info"},{default:o(()=>[r("pre",null,c(JSON.stringify(s.displayTheme.configuration,void 0,2)),1)]),_:1})]))])}const A=y(F,[["render",j],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeFallback.vue"]]);L.add(O,S);const M={name:"OpenwbDisplayThemeProxy",emits:["update:configuration"],props:{displayTheme:{type:Object,required:!0}},components:{FontAwesomeIcon:V},computed:{myComponent(){return console.debug(`loading display theme: ${this.displayTheme.type}`),z({loader:()=>I(Object.assign({"./cards/displayTheme.vue":()=>$(()=>import("./displayTheme-7a496adb.js"),["assets/displayTheme-7a496adb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.displayTheme.type}/displayTheme.vue`),errorComponent:A})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function P(e,t,s,v,w,u){const d=l("font-awesome-icon"),b=l("openwb-base-alert"),g=l("openwb-base-heading");return p(),m(E,null,[s.displayTheme.official?(p(),h(b,{key:0,subtype:"success"},{default:o(()=>[n(d,{"fixed-width":"",icon:["fas","certificate"]}),a(' Das ausgewählte Display Theme "'+c(s.displayTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(p(),h(b,{key:1,subtype:"info"},{default:o(()=>[n(d,{"fixed-width":"",icon:["fas","people-group"]}),a(' Das ausgewählte Display Theme "'+c(s.displayTheme.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),n(g,null,{default:o(()=>[a(' Einstellungen für Display Theme "'+c(s.displayTheme.name)+'" ',1)]),_:1}),(p(),h(q(u.myComponent),{displayTheme:s.displayTheme,"onUpdate:configuration":t[0]||(t[0]=_=>u.updateConfiguration(_))},null,40,["displayTheme"]))],64)}const U=y(M,[["render",P],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeProxy.vue"]]),H={name:"OpenwbOptionalComponents",mixins:[C],components:{OpenwbDisplayThemeProxy:U},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/chargepoint/+/get/rfid","openWB/chargepoint/+/get/rfid_timestamp","openWB/chargepoint/+/set/rfid","openWB/optional/rfid/active","openWB/optional/led/active","ToDo/optional/led/instant_blocked","ToDo/optional/led/pv_blocked","ToDo/optional/led/scheduled_blocked","ToDo/optional/led/standby_blocked","ToDo/optional/led/stop_blocked","ToDo/optional/led/instant","ToDo/optional/led/pv","ToDo/optional/led/scheduled","ToDo/optional/led/standby","ToDo/optional/led/stop","openWB/optional/int_display/active","openWB/optional/int_display/standby","openWB/optional/int_display/rotation","openWB/optional/int_display/on_if_plugged_in","openWB/optional/int_display/pin_active","openWB/optional/int_display/pin_code","openWB/optional/int_display/theme","openWB/optional/int_display/only_local_charge_points","openWB/system/configurable/display_themes","openWB/optional/et/active","openWB/optional/et/config/provider","openWB/optional/et/config/max_price"],tempIdTagList:{}}},computed:{idTagList(){return Object.values(this.updateIdTagList())},displayThemeList(){return this.$store.state.mqtt["openWB/system/configurable/display_themes"]},displayThemeGroupList(){let e=[{label:"openWB",options:[]},{label:"Community",options:[]}];return this.displayThemeList.forEach(t=>{t.official===!0?e[0].options.push(t):e[1].options.push(t)}),e}},methods:{getIdFromTopic(e){return e.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,"")},updateIdTagList(){return Object.entries(this.getWildcardTopics("^openWB/chargepoint/[^+/]+/[gs]et/rfid$",!0)).forEach(e=>{e[1]!==null&&(this.tempIdTagList[e[1]]=`${e[1]} (${e[0].includes("/set/")?"zugewiesen":"erfasst"} an ${this.getChargePointName(this.getIdFromTopic(e[0]))})`)}),this.tempIdTagList},getChargePointName(e){return this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"].name:"Ladepunkt "+e},getDisplayThemeDefaults(e){const t=this.displayThemeList.find(s=>s.value==e);return Object.prototype.hasOwnProperty.call(t,"defaults")?{...JSON.parse(JSON.stringify(t.defaults))}:(console.warn("no default configuration found for display theme type!",e),{})},updateSelectedDisplayTheme(e){this.updateState("openWB/optional/int_display/theme",this.getDisplayThemeDefaults(e))},updateConfiguration(e,t){console.debug("updateConfiguration",e,t),this.updateState(e,t.value,t.object)}}},R={class:"optionalComponents"},J={name:"optionalComponentsForm"},G=r("ul",null,[r("li",null," Über einen in der openWB verbauten RFID-Reader (optional, z.B. anhand des Lieferscheins prüfen). "),r("li",null," Durch die automatische Erkennung an einer openWB Pro (muss in den Einstellungen aktiviert werden). "),r("li",null," Durch manuelle Eingabe einer ID am Display einer openWB. ")],-1),K={key:0},X=r("br",null,null,-1),Y=r("br",null,null,-1),Z=["innerHTML"],Q={key:0},ee=r("br",null,null,-1),te=r("hr",null,null,-1),ne={key:1},oe=r("hr",null,null,-1),ae={key:2},ie=r("hr",null,null,-1),se=r("hr",null,null,-1),le={key:0};function pe(e,t,s,v,w,u){const d=l("openwb-base-button-group-input"),b=l("openwb-base-alert"),g=l("openwb-base-textarea"),_=l("openwb-base-card"),T=l("openwb-base-heading"),B=l("openwb-base-range-input"),D=l("openwb-base-select-input"),W=l("openwb-display-theme-proxy"),k=l("openwb-base-submit-buttons");return p(),m("div",R,[r("form",J,[n(_,{title:"Identifikation von Fahrzeugen"},{default:o(()=>[n(d,{title:"Identifikation aktivieren","model-value":e.$store.state.mqtt["openWB/optional/rfid/active"],"onUpdate:modelValue":t[0]||(t[0]=i=>e.updateState("openWB/optional/rfid/active",i)),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},{help:o(()=>[a(" Die Identifikation von Fahrzeugen kann auf mehreren Wegen erfolgen: "),G]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(p(),m("div",K,[n(b,{subtype:"info",class:"mb-1"},{default:o(()=>[a(" Die ID-Tags, die an dem jeweiligen Ladepunkt gültig sind, müssen in dem Ladepunkt-Profil hinterlegt werden. Die ID-Tags müssen auch in den Einstellungen der Fahrzeuge diesen zugeordnet werden."),X,a(" Es kann zuerst das Fahrzeug angesteckt und dann der ID-Tag erfasst werden oder anders herum. Im letzten Fall muss innerhalb von 5 Minuten ein Fahrzeug angesteckt werden, sonst wird der ID-Tag verworfen. Das Fahrzeug wird erst nach dem Anstecken zugeordnet."),Y,r("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Z)]),_:1}),n(g,{title:"Erkannte ID-Tags",readonly:"",disabled:"","model-value":u.idTagList.join(` +import{_ as $,C}from"./index-720fb9ac.js";import{_ as I}from"./dynamic-import-helper-be004503.js";import{l as L,X as O,Y as S,F as V}from"./vendor-fortawesome-9fdc06a9.js";import{_ as y,q as l,k as p,l as m,z as h,M as o,x as a,y as c,B as n,u as r,a1 as z,a2 as q,I as E,A as f}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const F={name:"DisplayThemeFallback",emits:["update:configuration"],props:{displayTheme:{type:Object,required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},x={class:"display-theme-fallback"},N={key:1};function j(e,t,s,v,w,u){const d=l("openwb-base-alert"),b=l("openwb-base-textarea");return p(),m("div",x,[Object.keys(s.displayTheme.configuration).length==0?(p(),h(d,{key:0,subtype:"info"},{default:o(()=>[a(' Das Display-Theme "'+c(s.displayTheme.name)+'" bietet keine Einstellungen. ',1)]),_:1})):(p(),m("div",N,[n(d,{subtype:"warning"},{default:o(()=>[a(' Es wurde keine Konfigurationsseite für das Display-Theme "'+c(s.displayTheme.name)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":s.displayTheme.configuration,"onUpdate:modelValue":t[0]||(t[0]=g=>u.updateConfiguration(g,"configuration"))},{help:o(()=>[a(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(d,{subtype:"info"},{default:o(()=>[r("pre",null,c(JSON.stringify(s.displayTheme.configuration,void 0,2)),1)]),_:1})]))])}const A=y(F,[["render",j],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeFallback.vue"]]);L.add(O,S);const M={name:"OpenwbDisplayThemeProxy",emits:["update:configuration"],props:{displayTheme:{type:Object,required:!0}},components:{FontAwesomeIcon:V},computed:{myComponent(){return console.debug(`loading display theme: ${this.displayTheme.type}`),z({loader:()=>I(Object.assign({"./cards/displayTheme.vue":()=>$(()=>import("./displayTheme-7a496adb.js"),["assets/displayTheme-7a496adb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.displayTheme.type}/displayTheme.vue`),errorComponent:A})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function P(e,t,s,v,w,u){const d=l("font-awesome-icon"),b=l("openwb-base-alert"),g=l("openwb-base-heading");return p(),m(E,null,[s.displayTheme.official?(p(),h(b,{key:0,subtype:"success"},{default:o(()=>[n(d,{"fixed-width":"",icon:["fas","certificate"]}),a(' Das ausgewählte Display Theme "'+c(s.displayTheme.name)+'" wird von openWB gepflegt. ',1)]),_:1})):(p(),h(b,{key:1,subtype:"info"},{default:o(()=>[n(d,{"fixed-width":"",icon:["fas","people-group"]}),a(' Das ausgewählte Display Theme "'+c(s.displayTheme.name)+'" wird in unserer Community gepflegt. Rückfragen oder Probleme bitte im Forum diskutieren. ',1)]),_:1})),n(g,null,{default:o(()=>[a(' Einstellungen für Display Theme "'+c(s.displayTheme.name)+'" ',1)]),_:1}),(p(),h(q(u.myComponent),{displayTheme:s.displayTheme,"onUpdate:configuration":t[0]||(t[0]=_=>u.updateConfiguration(_))},null,40,["displayTheme"]))],64)}const U=y(M,[["render",P],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeProxy.vue"]]),H={name:"OpenwbOptionalComponents",mixins:[C],components:{OpenwbDisplayThemeProxy:U},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/chargepoint/+/get/rfid","openWB/chargepoint/+/get/rfid_timestamp","openWB/chargepoint/+/set/rfid","openWB/optional/rfid/active","openWB/optional/led/active","ToDo/optional/led/instant_blocked","ToDo/optional/led/pv_blocked","ToDo/optional/led/scheduled_blocked","ToDo/optional/led/standby_blocked","ToDo/optional/led/stop_blocked","ToDo/optional/led/instant","ToDo/optional/led/pv","ToDo/optional/led/scheduled","ToDo/optional/led/standby","ToDo/optional/led/stop","openWB/optional/int_display/active","openWB/optional/int_display/standby","openWB/optional/int_display/rotation","openWB/optional/int_display/on_if_plugged_in","openWB/optional/int_display/pin_active","openWB/optional/int_display/pin_code","openWB/optional/int_display/theme","openWB/optional/int_display/only_local_charge_points","openWB/system/configurable/display_themes","openWB/optional/et/active","openWB/optional/et/config/provider","openWB/optional/et/config/max_price"],tempIdTagList:{}}},computed:{idTagList(){return Object.values(this.updateIdTagList())},displayThemeList(){return this.$store.state.mqtt["openWB/system/configurable/display_themes"]},displayThemeGroupList(){let e=[{label:"openWB",options:[]},{label:"Community",options:[]}];return this.displayThemeList.forEach(t=>{t.official===!0?e[0].options.push(t):e[1].options.push(t)}),e}},methods:{getIdFromTopic(e){return e.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,"")},updateIdTagList(){return Object.entries(this.getWildcardTopics("^openWB/chargepoint/[^+/]+/[gs]et/rfid$",!0)).forEach(e=>{e[1]!==null&&(this.tempIdTagList[e[1]]=`${e[1]} (${e[0].includes("/set/")?"zugewiesen":"erfasst"} an ${this.getChargePointName(this.getIdFromTopic(e[0]))})`)}),this.tempIdTagList},getChargePointName(e){return this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"].name:"Ladepunkt "+e},getDisplayThemeDefaults(e){const t=this.displayThemeList.find(s=>s.value==e);return Object.prototype.hasOwnProperty.call(t,"defaults")?{...JSON.parse(JSON.stringify(t.defaults))}:(console.warn("no default configuration found for display theme type!",e),{})},updateSelectedDisplayTheme(e){this.updateState("openWB/optional/int_display/theme",this.getDisplayThemeDefaults(e))},updateConfiguration(e,t){console.debug("updateConfiguration",e,t),this.updateState(e,t.value,t.object)}}},R={class:"optionalComponents"},J={name:"optionalComponentsForm"},G=r("ul",null,[r("li",null," Über einen in der openWB verbauten RFID-Reader (optional, z.B. anhand des Lieferscheins prüfen). "),r("li",null," Durch die automatische Erkennung an einer openWB Pro (muss in den Einstellungen aktiviert werden). "),r("li",null," Durch manuelle Eingabe einer ID am Display einer openWB. ")],-1),K={key:0},X=r("br",null,null,-1),Y=r("br",null,null,-1),Z=["innerHTML"],Q={key:0},ee=r("br",null,null,-1),te=r("hr",null,null,-1),ne={key:1},oe=r("hr",null,null,-1),ae={key:2},ie=r("hr",null,null,-1),se=r("hr",null,null,-1),le={key:0};function pe(e,t,s,v,w,u){const d=l("openwb-base-button-group-input"),b=l("openwb-base-alert"),g=l("openwb-base-textarea"),_=l("openwb-base-card"),T=l("openwb-base-heading"),B=l("openwb-base-range-input"),D=l("openwb-base-select-input"),W=l("openwb-display-theme-proxy"),k=l("openwb-base-submit-buttons");return p(),m("div",R,[r("form",J,[n(_,{title:"Identifikation von Fahrzeugen"},{default:o(()=>[n(d,{title:"Identifikation aktivieren","model-value":e.$store.state.mqtt["openWB/optional/rfid/active"],"onUpdate:modelValue":t[0]||(t[0]=i=>e.updateState("openWB/optional/rfid/active",i)),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},{help:o(()=>[a(" Die Identifikation von Fahrzeugen kann auf mehreren Wegen erfolgen: "),G]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(p(),m("div",K,[n(b,{subtype:"info",class:"mb-1"},{default:o(()=>[a(" Die ID-Tags, die an dem jeweiligen Ladepunkt gültig sind, müssen in dem Ladepunkt-Profil hinterlegt werden. Die ID-Tags müssen auch in den Einstellungen der Fahrzeuge diesen zugeordnet werden."),X,a(" Es kann zuerst das Fahrzeug angesteckt und dann der ID-Tag erfasst werden oder anders herum. Im letzten Fall muss innerhalb von 5 Minuten ein Fahrzeug angesteckt werden, sonst wird der ID-Tag verworfen. Das Fahrzeug wird erst nach dem Anstecken zugeordnet."),Y,r("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Z)]),_:1}),n(g,{title:"Erkannte ID-Tags",readonly:"",disabled:"","model-value":u.idTagList.join(` `)},{help:o(()=>[a(" Solange diese Seite geöffnet ist, werden alle erfassten ID-Tags in dieser Liste aufgeführt. ")]),_:1},8,["model-value"])])):f("",!0)]),_:1}),n(_,{title:"Display (intern oder extern)"},{default:o(()=>[n(d,{title:"Integriertes Display","model-value":e.$store.state.mqtt["openWB/optional/int_display/active"],"onUpdate:modelValue":t[1]||(t[1]=i=>e.updateState("openWB/optional/int_display/active",i)),buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}]},{help:o(()=>[a(' Je nach Bestellung kann die openWB mit oder ohne Display geliefert worden sein. Auch die Variante "Standalone" bietet beide Optionen. Bitte prüfe zuerst die Hardwareausstattung deiner openWB (z.B. Lieferschein). ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/optional/int_display/active"]==!0?(p(),m("div",Q,[n(d,{title:"Orientierung","model-value":e.$store.state.mqtt["openWB/optional/int_display/rotation"],"onUpdate:modelValue":t[2]||(t[2]=i=>e.updateState("openWB/optional/int_display/rotation",i)),buttons:[{buttonValue:0,text:"0°"},{buttonValue:90,text:"90°"},{buttonValue:180,text:"180°"},{buttonValue:270,text:"270°"}]},{help:o(()=>[a(" Mit dieser Einstellung kann das Display im Uhrzeigersinn gedreht werden, falls erforderlich. Nach einer Änderung ist ein Neustart erforderlich!"),ee,a(" Diese Einstellung erfordert ein Raspberry Pi Display. Anzeigen, welche über HDMI angeschlossen sind, werden nicht unterstützt. ")]),_:1},8,["model-value"]),te,n(T,null,{default:o(()=>[a(" Display Standby ")]),_:1}),n(B,{title:"Ausschaltzeit",min:0,max:12,step:1,"model-value":e.$store.state.mqtt["openWB/optional/int_display/standby"],"onUpdate:modelValue":t[3]||(t[3]=i=>e.updateState("openWB/optional/int_display/standby",i)),unit:"Sek",labels:[{label:"Immer an",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:30,value:30},{label:45,value:45},{label:"1 Min",value:60},{label:"1,5 Min",value:90},{label:"2 Min",value:120},{label:"3 Min",value:180},{label:"4 Min",value:240},{label:"5 Min",value:300},{label:"10 Min",value:600}]},{help:o(()=>[a(" Hier kann eine Zeitspanne angegeben werden, nach der das Display ausgeschaltet wird. ")]),_:1},8,["model-value"])])):f("",!0),e.$store.state.mqtt["openWB/general/extern"]===!0?(p(),m("div",ne,[oe,n(b,{subtype:"info"},{default:o(()=>[a(' Weitere Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(p(),m("div",ae,[ie,n(d,{title:"Ladepunkte auf externen openWB","model-value":e.$store.state.mqtt["openWB/optional/int_display/only_local_charge_points"],"onUpdate:modelValue":t[4]||(t[4]=i=>e.updateState("openWB/optional/int_display/only_local_charge_points",i)),buttons:[{buttonValue:!1,text:"Alle",class:"btn-outline-danger"},{buttonValue:!0,text:"Nur Lokale",class:"btn-outline-success"}]},{help:o(()=>[a(" Hiermit kann festgelegt werden, ob an angebundenen externen openWB alle oder nur die jeweils lokalen Ladepunkte angezeigt werden sollen. ")]),_:1},8,["model-value"]),se,e.$store.state.mqtt["openWB/optional/int_display/theme"]!==void 0?(p(),m("div",le,[n(D,{class:"mb-2",title:"Theme des Displays",groups:u.displayThemeGroupList,"model-value":e.$store.state.mqtt["openWB/optional/int_display/theme"].type,"onUpdate:modelValue":t[5]||(t[5]=i=>u.updateSelectedDisplayTheme(i))},{help:o(()=>[a(" Hier können unterschiedliche Display-Anzeigen, s.g. Themes, ausgewählt werden. Die Anzahl der Themes wird sich mit zukünftigen Releases erhöhen. ")]),_:1},8,["groups","model-value"]),e.$store.state.mqtt["openWB/optional/int_display/theme"].type?(p(),h(W,{key:0,displayTheme:e.$store.state.mqtt["openWB/optional/int_display/theme"],"onUpdate:configuration":t[6]||(t[6]=i=>u.updateConfiguration("openWB/optional/int_display/theme",i))},null,8,["displayTheme"])):f("",!0)])):f("",!0)]))]),_:1}),n(k,{formName:"optionalComponentsForm",onSave:t[7]||(t[7]=i=>e.$emit("save")),onReset:t[8]||(t[8]=i=>e.$emit("reset")),onDefaults:t[9]||(t[9]=i=>e.$emit("defaults"))})])])}const _e=y(H,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/OptionalComponents.vue"]]);export{_e as default}; diff --git a/web/settings/assets/PVChargeConfig-846573d7.js b/web/settings/assets/PVChargeConfig-c04b99ec.js similarity index 99% rename from web/settings/assets/PVChargeConfig-846573d7.js rename to web/settings/assets/PVChargeConfig-c04b99ec.js index 0618d618ce..8832e8ba2a 100644 --- a/web/settings/assets/PVChargeConfig-846573d7.js +++ b/web/settings/assets/PVChargeConfig-c04b99ec.js @@ -1 +1 @@ -import{C as f}from"./index-b8f06cb8.js";import{_ as w,q as g,k as d,l as u,u as r,B as i,M as l,x as a,z as W,A as B}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const S={name:"OpenwbPVChargeConfig",mixins:[f],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/pv_charging/control_range","openWB/general/chargemode_config/pv_charging/feed_in_yield","openWB/general/chargemode_config/pv_charging/switch_on_threshold","openWB/general/chargemode_config/pv_charging/switch_on_delay","openWB/general/chargemode_config/pv_charging/switch_off_threshold","openWB/general/chargemode_config/pv_charging/switch_off_delay","openWB/general/chargemode_config/pv_charging/phases_to_use","openWB/general/chargemode_config/pv_charging/phase_switch_delay","openWB/general/chargemode_config/pv_charging/bat_prio","openWB/general/chargemode_config/pv_charging/switch_on_soc","openWB/general/chargemode_config/pv_charging/switch_off_soc","openWB/general/chargemode_config/pv_charging/charging_power_reserve","openWB/general/chargemode_config/pv_charging/rundown_power","openWB/general/chargemode_config/pv_charging/rundown_soc"],calculatedControlMode:void 0}},computed:{controlMode:{get(){if(this.calculatedControlMode!==void 0)return this.calculatedControlMode;const e="openWB/general/chargemode_config/pv_charging/control_range";let n=this.$store.state.mqtt[e];var h="individual";return typeof n<"u"&&(n[0]===-230&&n[1]===0?h="export":n[0]===0&&n[1]===230?h="import":n[0]===-115&&n[1]===115?h="balanced":h="individual"),h},set(e){const n="openWB/general/chargemode_config/pv_charging/control_range";switch(this.calculatedControlMode=e,e){case"export":this.updateState(n,[-230,0]);break;case"import":this.updateState(n,[0,230]);break;case"balanced":this.updateState(n,[-115,115]);break}}}},methods:{updateBatterySwitchOnSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e),e<=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",Math.max(0,e-5))},updateBatterySwitchOffSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",e),e>=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e+5)}},watch:{controlMode(e){this.calculatedControlMode=e}}},z={class:"pvChargeConfig"},V={name:"pvChargeConfigForm"},k={key:0},E={key:1},C=r("br",null,null,-1),L=r("br",null,null,-1),y=r("hr",null,null,-1),M=r("br",null,null,-1),P=r("br",null,null,-1),A=r("hr",null,null,-1),R=r("br",null,null,-1),U=r("br",null,null,-1),q=r("hr",null,null,-1),$=r("br",null,null,-1),D=r("br",null,null,-1),I=r("br",null,null,-1),F=r("br",null,null,-1),N={key:0},O={key:1},Z={key:0},T={key:1},H=r("br",null,null,-1),G=r("br",null,null,-1),K=r("br",null,null,-1),j=r("br",null,null,-1),J=r("br",null,null,-1),Q=r("br",null,null,-1),X=r("hr",null,null,-1);function Y(e,n,h,x,ee,s){const p=g("openwb-base-alert"),m=g("openwb-base-button-group-input"),o=g("openwb-base-number-input"),b=g("openwb-base-card"),c=g("openwb-base-range-input"),_=g("openwb-base-heading"),v=g("openwb-base-submit-buttons");return d(),u("div",z,[r("form",V,[i(b,{title:"Regelparameter"},{default:l(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",k,[i(p,{subtype:"info"},{default:l(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",E,[i(m,{title:"Regelmodus",buttons:[{buttonValue:"export",text:"Einspeisung"},{buttonValue:"import",text:"Bezug"},{buttonValue:"balanced",text:"Ausgewogen"},{buttonValue:"individual",text:"Individuell"}],modelValue:s.controlMode,"onUpdate:modelValue":n[0]||(n[0]=t=>s.controlMode=t)},{help:l(()=>[a(" Der Regelbereich wird auf den gesamten Überschuss angewendet, bevor die PV-Regelung durchgeführt wird. D.h. der Regelbereich wird auf alle Einstellungen für das PV-Laden angewendet und nur einmal unabhängig von der Anzahl der angesteckten Fahrzeuge. Liegt der Überschuss im vorgegebenen Regelbereich, wird nicht nachgeregelt. Liegt der Überschuss außerhalb des Regelbereichs, wird in die Mitte des Regelbereichs nachgeregelt."),C,a(' "Einspeisung" definiert einen Bereich mit minimaler Einspeisung (-230W, 0W), "Bezug" mit minimalem Netzbezug (0W, 230W), "Ausgewogen" mit ausgewogenem Netzbezug (-115W, 115W). Mit der Auswahl "individuell" kann ein eigener Regelbereich definiert werden.'),L,a(" Bei Speichervorrang erzeugt die Regelung bei Bedarf unabhängig vom eingestellten Regelmodus Einspeisung, damit der Speicher seine Ladeleistung erhöht. ")]),_:1},8,["modelValue"]),i(o,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Minimum",step:.005,unit:"kW","model-value":Array.isArray(e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][0]/1e3:void 0,"onUpdate:modelValue":n[1]||(n[1]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"0"))},{help:l(()=>[a(" Untere Grenze des Regelbereichs. ")]),_:1},8,["disabled","readonly","model-value"]),i(o,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Maximum",step:.005,unit:"kW","model-value":Array.isArray(e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][1]/1e3:void 0,"onUpdate:modelValue":n[2]||(n[2]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"1"))},{help:l(()=>[a("Obere Grenze des Regelbereichs.")]),_:1},8,["disabled","readonly","model-value"]),y,i(o,{title:"Einschaltschwelle",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_threshold"]/1e3,"onUpdate:modelValue":n[3]||(n[3]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_threshold",t*1e3))},{help:l(()=>[a(" Wird der Regelbereich in Richtung Einspeisung um diese Leistung überschritten, so wird der Ladevorgang gestartet."),M,a(" Dieser Wert wird pro Phase genutzt und ist daher immer für eine Phase anzugeben. ")]),_:1},8,["model-value"]),i(o,{title:"Einschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_delay"],"onUpdate:modelValue":n[4]||(n[4]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_delay",t))},{help:l(()=>[a(" Die Einschaltschwelle muss für die hier angegebene Zeit dauerhaft überschritten werden, bevor ein Ladevorgang gestartet wird."),P,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird weiter geladen, wenn die Abschaltschwelle nicht unterschritten wird. ")]),_:1},8,["model-value"]),A,i(o,{title:"Abschaltschwelle",step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]/1e3,"onUpdate:modelValue":n[5]||(n[5]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_threshold",t*1e3))},{help:l(()=>[a(" Wird der Regelbereich in Richtung Netzbezug um diese Leistung überschritten, so wird der Ladevorgang beendet."),R,a(" Dieser Wert ist unabhängig von der Anzahl genutzter Phasen. ")]),_:1},8,["model-value"]),i(o,{title:"Abschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_delay"],"onUpdate:modelValue":n[6]||(n[6]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_delay",t))},{help:l(()=>[a(" Die Abschaltschwelle muss für die hier angegebene Zeit dauerhaft unterschritten werden, bevor ein Ladevorgang beendet wird."),U,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird die Ladung sofort beendet, wenn die Abschaltschwelle unterschritten wird. ")]),_:1},8,["model-value"]),q,i(o,{title:"Regelpunkt Einspeisegrenze",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/feed_in_yield"]/1e3,"onUpdate:modelValue":n[7]||(n[7]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/feed_in_yield",t*1e3))},{help:l(()=>[a(" Ein Wert größer 0kW bewirkt, dass weniger PV-Leistung zum Laden benutzt wird."),$,a(" Die Nutzung dieser Option ergibt nur Sinn, wenn ein Wechselrichter mit separatem Smart-Meter am EVU-Punkt verbaut ist (nicht der originale Zähler des Versorgers!), welches eine dynamische Begrenzung der Einspeiseleistung am EVU-Punkt durch den PV-Wechselrichter bietet (bitte bei ev. Problemen immer vorab prüfen lassen)."),D,a(' Ist eine Einspeiseleistungsreduzierung verbaut (in vielen älteren, privaten Einspeiseverträgen z.B. als 70% Regelung bekannt), wird mit Eingabe des Wertes "Regelpunkt Einspeisegrenze" ein eigenverbrauchsoptimiertes Fahrzeugladen mit PV-Überschussenergie möglich, die sonst abgeregelt werden würde (Nutzung der PV-Peaks).'),I,a(' Wird in einem "Ladeprofil" die Option "Einspeisegrenze beachten" eingeschaltet, so wird der Regelpunkt auf diesen Wert verschoben und die Ladung startet erst, wenn der hinterlegte Wert "Regelpunkt Einspeisegrenze" überschritten wird.'),F,a(" Zur optimalen Eigenverbrauchssteuerung sollte der Wert einige hundert Watt UNTER der im Wechselrichter hinterlegten EVU-Einspeiseleistungsgrenze liegen, damit openWB die Ladung freigibt, BEVOR der Wechselrichter begrenzt wird. ")]),_:1},8,["model-value"])]))]),_:1}),i(b,{title:"Phasenumschaltung"},{default:l(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",N,[i(p,{subtype:"info"},{default:l(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",O,[i(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"],"onUpdate:modelValue":n[8]||(n[8]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phases_to_use",t))},{help:l(()=>[a(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "PV-Laden" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um den verfügbaren Überschuss in die Fahrzeuge zu laden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen einer und drei Phasen (s.g. 1p3p). ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"]==0?(d(),W(c,{key:0,title:"Verzögerung automat. Phasenumschaltung",min:1,max:15,step:1,unit:"Min.","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phase_switch_delay"],"onUpdate:modelValue":n[9]||(n[9]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phase_switch_delay",t))},{help:l(()=>[a(" Um zu viele Umschaltungen zu vermeiden, wird Anhand dieses Wertes definiert, wann die Umschaltung erfolgen soll. Ist für durchgehend x Minuten die Maximalstromstärke erreicht, wird auf mehrphasige Ladung umgestellt. Ist die Ladung nur für ein Intervall unterhalb der Maximalstromstärke, beginnt das Intervall für die Umschaltung erneut. Ist die Ladung im mehrphasigen Modus für 16 - x Minuten auf der Minimalstromstärke, wird wieder auf einphasige Ladung gewechselt. ")]),_:1},8,["model-value"])):B("",!0)]))]),_:1}),i(b,{title:"Speicher-Beachtung"},{default:l(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",Z,[i(p,{subtype:"info"},{default:l(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",T,[i(m,{title:"Priorisierung",buttons:[{buttonValue:!1,text:"Fahrzeuge"},{buttonValue:!0,text:"Speicher"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_prio"],"onUpdate:modelValue":n[10]||(n[10]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/bat_prio",t))},{help:l(()=>[a(' Sofern ein Hausstromspeicher (im Folgenden "Speicher" genannt) im Energiesystem verbaut ist, kann dieser beim Fahrzeugladen mit berücksichtigt werden. Dies erfolgt passiv über die Berücksichtigung der Speicherleistungswerte und des Speicher-SoC. Eine aktive Speichersteuerung durch openWB ist aktuell mangels Speicherschnittstelle nicht möglich.'),H,G,a(' Bei Priorisierung "Fahrzeuge" wird die gesamte PV-Leistung ABZÜGLICH der "reservierten Ladeleistung" des Speichers zum Fahrzeugladen verwendet.'),K,j,a(' Bei Priorisierung "Speicher" wird die gesamte PV-Leistung und ZUSÄTZLICH die "erlaubte Entladeleistung" des Speichers (bis zum Erreichen des "minimalen Entlade-SoC" des Speichers) zum Fahrzeugladen verwendet.'),J,Q,a(" Beide Modi lassen sich mit den zusätzlichen Einstellungen an die eigenen Bedürfnisse anpassen, so dass auch ein Mischbetrieb möglich ist. ")]),_:1},8,["model-value"]),i(o,{title:"Reservierte Ladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/charging_power_reserve"]/1e3,"onUpdate:modelValue":n[11]||(n[11]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/charging_power_reserve",t*1e3))},{help:l(()=>[a(' Die "reservierte Ladeleistung" des Speichers wird von der Regelung auch bei "Fahrzeuge"-Vorrang NICHT für das Fahrzeugladen verwendet und bleibt immer dem Speicher vorbehalten, sofern dieser nicht zu 100% geladen ist. ')]),_:1},8,["model-value"]),i(o,{title:"Erlaubte Entladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_power"]/1e3,"onUpdate:modelValue":n[12]||(n[12]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_power",t*1e3))},{help:l(()=>[a(' Die "erlaubte Entladeleistung" des Speichers wird von der Regelung bei "Speicher"-Vorrang ZUSÄTZLICH zur PV-Leistung für das Fahrzeugladen verwendet, solange der Speicher-SoC über dem "minimalen Entlade-SoC" liegt. ')]),_:1},8,["model-value"]),i(c,{title:"Minimaler Entlade-SoC",min:0,max:20,step:1,unit:"%",labels:[{label:0,value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:"Aus",value:100}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_soc"],"onUpdate:modelValue":n[13]||(n[13]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_soc",t))},{help:l(()=>[a(" Ein vorhandener Speicher wird im Modus PV-Laden mit der erlaubten Entladeleistung höchstens bis zu dem hier eingestellten Ladestand entladen. ")]),_:1},8,["model-value"]),X,i(_,null,{default:l(()=>[a(" Laden mit minimalem Dauerstrom ")]),_:1}),i(c,{title:"Einschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"],"onUpdate:modelValue":n[14]||(n[14]=t=>s.updateBatterySwitchOnSoc(t))},{help:l(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"]),i(c,{title:"Ausschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"],"onUpdate:modelValue":n[15]||(n[15]=t=>s.updateBatterySwitchOffSoc(t))},{help:l(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"])]))]),_:1}),i(v,{formName:"pvChargeConfigForm",onSave:n[16]||(n[16]=t=>e.$emit("save")),onReset:n[17]||(n[17]=t=>e.$emit("reset")),onDefaults:n[18]||(n[18]=t=>e.$emit("defaults"))})])])}const se=w(S,[["render",Y],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/PVChargeConfig.vue"]]);export{se as default}; +import{C as f}from"./index-720fb9ac.js";import{_ as w,q as g,k as d,l as u,u as r,B as i,M as l,x as a,z as W,A as B}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const S={name:"OpenwbPVChargeConfig",mixins:[f],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/pv_charging/control_range","openWB/general/chargemode_config/pv_charging/feed_in_yield","openWB/general/chargemode_config/pv_charging/switch_on_threshold","openWB/general/chargemode_config/pv_charging/switch_on_delay","openWB/general/chargemode_config/pv_charging/switch_off_threshold","openWB/general/chargemode_config/pv_charging/switch_off_delay","openWB/general/chargemode_config/pv_charging/phases_to_use","openWB/general/chargemode_config/pv_charging/phase_switch_delay","openWB/general/chargemode_config/pv_charging/bat_prio","openWB/general/chargemode_config/pv_charging/switch_on_soc","openWB/general/chargemode_config/pv_charging/switch_off_soc","openWB/general/chargemode_config/pv_charging/charging_power_reserve","openWB/general/chargemode_config/pv_charging/rundown_power","openWB/general/chargemode_config/pv_charging/rundown_soc"],calculatedControlMode:void 0}},computed:{controlMode:{get(){if(this.calculatedControlMode!==void 0)return this.calculatedControlMode;const e="openWB/general/chargemode_config/pv_charging/control_range";let n=this.$store.state.mqtt[e];var h="individual";return typeof n<"u"&&(n[0]===-230&&n[1]===0?h="export":n[0]===0&&n[1]===230?h="import":n[0]===-115&&n[1]===115?h="balanced":h="individual"),h},set(e){const n="openWB/general/chargemode_config/pv_charging/control_range";switch(this.calculatedControlMode=e,e){case"export":this.updateState(n,[-230,0]);break;case"import":this.updateState(n,[0,230]);break;case"balanced":this.updateState(n,[-115,115]);break}}}},methods:{updateBatterySwitchOnSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e),e<=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",Math.max(0,e-5))},updateBatterySwitchOffSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",e),e>=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e+5)}},watch:{controlMode(e){this.calculatedControlMode=e}}},z={class:"pvChargeConfig"},V={name:"pvChargeConfigForm"},k={key:0},E={key:1},C=r("br",null,null,-1),L=r("br",null,null,-1),y=r("hr",null,null,-1),M=r("br",null,null,-1),P=r("br",null,null,-1),A=r("hr",null,null,-1),R=r("br",null,null,-1),U=r("br",null,null,-1),q=r("hr",null,null,-1),$=r("br",null,null,-1),D=r("br",null,null,-1),I=r("br",null,null,-1),F=r("br",null,null,-1),N={key:0},O={key:1},Z={key:0},T={key:1},H=r("br",null,null,-1),G=r("br",null,null,-1),K=r("br",null,null,-1),j=r("br",null,null,-1),J=r("br",null,null,-1),Q=r("br",null,null,-1),X=r("hr",null,null,-1);function Y(e,n,h,x,ee,s){const p=g("openwb-base-alert"),m=g("openwb-base-button-group-input"),o=g("openwb-base-number-input"),b=g("openwb-base-card"),c=g("openwb-base-range-input"),_=g("openwb-base-heading"),v=g("openwb-base-submit-buttons");return d(),u("div",z,[r("form",V,[i(b,{title:"Regelparameter"},{default:l(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",k,[i(p,{subtype:"info"},{default:l(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",E,[i(m,{title:"Regelmodus",buttons:[{buttonValue:"export",text:"Einspeisung"},{buttonValue:"import",text:"Bezug"},{buttonValue:"balanced",text:"Ausgewogen"},{buttonValue:"individual",text:"Individuell"}],modelValue:s.controlMode,"onUpdate:modelValue":n[0]||(n[0]=t=>s.controlMode=t)},{help:l(()=>[a(" Der Regelbereich wird auf den gesamten Überschuss angewendet, bevor die PV-Regelung durchgeführt wird. D.h. der Regelbereich wird auf alle Einstellungen für das PV-Laden angewendet und nur einmal unabhängig von der Anzahl der angesteckten Fahrzeuge. Liegt der Überschuss im vorgegebenen Regelbereich, wird nicht nachgeregelt. Liegt der Überschuss außerhalb des Regelbereichs, wird in die Mitte des Regelbereichs nachgeregelt."),C,a(' "Einspeisung" definiert einen Bereich mit minimaler Einspeisung (-230W, 0W), "Bezug" mit minimalem Netzbezug (0W, 230W), "Ausgewogen" mit ausgewogenem Netzbezug (-115W, 115W). Mit der Auswahl "individuell" kann ein eigener Regelbereich definiert werden.'),L,a(" Bei Speichervorrang erzeugt die Regelung bei Bedarf unabhängig vom eingestellten Regelmodus Einspeisung, damit der Speicher seine Ladeleistung erhöht. ")]),_:1},8,["modelValue"]),i(o,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Minimum",step:.005,unit:"kW","model-value":Array.isArray(e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][0]/1e3:void 0,"onUpdate:modelValue":n[1]||(n[1]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"0"))},{help:l(()=>[a(" Untere Grenze des Regelbereichs. ")]),_:1},8,["disabled","readonly","model-value"]),i(o,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Maximum",step:.005,unit:"kW","model-value":Array.isArray(e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][1]/1e3:void 0,"onUpdate:modelValue":n[2]||(n[2]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"1"))},{help:l(()=>[a("Obere Grenze des Regelbereichs.")]),_:1},8,["disabled","readonly","model-value"]),y,i(o,{title:"Einschaltschwelle",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_threshold"]/1e3,"onUpdate:modelValue":n[3]||(n[3]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_threshold",t*1e3))},{help:l(()=>[a(" Wird der Regelbereich in Richtung Einspeisung um diese Leistung überschritten, so wird der Ladevorgang gestartet."),M,a(" Dieser Wert wird pro Phase genutzt und ist daher immer für eine Phase anzugeben. ")]),_:1},8,["model-value"]),i(o,{title:"Einschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_delay"],"onUpdate:modelValue":n[4]||(n[4]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_delay",t))},{help:l(()=>[a(" Die Einschaltschwelle muss für die hier angegebene Zeit dauerhaft überschritten werden, bevor ein Ladevorgang gestartet wird."),P,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird weiter geladen, wenn die Abschaltschwelle nicht unterschritten wird. ")]),_:1},8,["model-value"]),A,i(o,{title:"Abschaltschwelle",step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]/1e3,"onUpdate:modelValue":n[5]||(n[5]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_threshold",t*1e3))},{help:l(()=>[a(" Wird der Regelbereich in Richtung Netzbezug um diese Leistung überschritten, so wird der Ladevorgang beendet."),R,a(" Dieser Wert ist unabhängig von der Anzahl genutzter Phasen. ")]),_:1},8,["model-value"]),i(o,{title:"Abschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_delay"],"onUpdate:modelValue":n[6]||(n[6]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_delay",t))},{help:l(()=>[a(" Die Abschaltschwelle muss für die hier angegebene Zeit dauerhaft unterschritten werden, bevor ein Ladevorgang beendet wird."),U,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird die Ladung sofort beendet, wenn die Abschaltschwelle unterschritten wird. ")]),_:1},8,["model-value"]),q,i(o,{title:"Regelpunkt Einspeisegrenze",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/feed_in_yield"]/1e3,"onUpdate:modelValue":n[7]||(n[7]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/feed_in_yield",t*1e3))},{help:l(()=>[a(" Ein Wert größer 0kW bewirkt, dass weniger PV-Leistung zum Laden benutzt wird."),$,a(" Die Nutzung dieser Option ergibt nur Sinn, wenn ein Wechselrichter mit separatem Smart-Meter am EVU-Punkt verbaut ist (nicht der originale Zähler des Versorgers!), welches eine dynamische Begrenzung der Einspeiseleistung am EVU-Punkt durch den PV-Wechselrichter bietet (bitte bei ev. Problemen immer vorab prüfen lassen)."),D,a(' Ist eine Einspeiseleistungsreduzierung verbaut (in vielen älteren, privaten Einspeiseverträgen z.B. als 70% Regelung bekannt), wird mit Eingabe des Wertes "Regelpunkt Einspeisegrenze" ein eigenverbrauchsoptimiertes Fahrzeugladen mit PV-Überschussenergie möglich, die sonst abgeregelt werden würde (Nutzung der PV-Peaks).'),I,a(' Wird in einem "Ladeprofil" die Option "Einspeisegrenze beachten" eingeschaltet, so wird der Regelpunkt auf diesen Wert verschoben und die Ladung startet erst, wenn der hinterlegte Wert "Regelpunkt Einspeisegrenze" überschritten wird.'),F,a(" Zur optimalen Eigenverbrauchssteuerung sollte der Wert einige hundert Watt UNTER der im Wechselrichter hinterlegten EVU-Einspeiseleistungsgrenze liegen, damit openWB die Ladung freigibt, BEVOR der Wechselrichter begrenzt wird. ")]),_:1},8,["model-value"])]))]),_:1}),i(b,{title:"Phasenumschaltung"},{default:l(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",N,[i(p,{subtype:"info"},{default:l(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",O,[i(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"],"onUpdate:modelValue":n[8]||(n[8]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phases_to_use",t))},{help:l(()=>[a(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "PV-Laden" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um den verfügbaren Überschuss in die Fahrzeuge zu laden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen einer und drei Phasen (s.g. 1p3p). ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"]==0?(d(),W(c,{key:0,title:"Verzögerung automat. Phasenumschaltung",min:1,max:15,step:1,unit:"Min.","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phase_switch_delay"],"onUpdate:modelValue":n[9]||(n[9]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phase_switch_delay",t))},{help:l(()=>[a(" Um zu viele Umschaltungen zu vermeiden, wird Anhand dieses Wertes definiert, wann die Umschaltung erfolgen soll. Ist für durchgehend x Minuten die Maximalstromstärke erreicht, wird auf mehrphasige Ladung umgestellt. Ist die Ladung nur für ein Intervall unterhalb der Maximalstromstärke, beginnt das Intervall für die Umschaltung erneut. Ist die Ladung im mehrphasigen Modus für 16 - x Minuten auf der Minimalstromstärke, wird wieder auf einphasige Ladung gewechselt. ")]),_:1},8,["model-value"])):B("",!0)]))]),_:1}),i(b,{title:"Speicher-Beachtung"},{default:l(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",Z,[i(p,{subtype:"info"},{default:l(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",T,[i(m,{title:"Priorisierung",buttons:[{buttonValue:!1,text:"Fahrzeuge"},{buttonValue:!0,text:"Speicher"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_prio"],"onUpdate:modelValue":n[10]||(n[10]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/bat_prio",t))},{help:l(()=>[a(' Sofern ein Hausstromspeicher (im Folgenden "Speicher" genannt) im Energiesystem verbaut ist, kann dieser beim Fahrzeugladen mit berücksichtigt werden. Dies erfolgt passiv über die Berücksichtigung der Speicherleistungswerte und des Speicher-SoC. Eine aktive Speichersteuerung durch openWB ist aktuell mangels Speicherschnittstelle nicht möglich.'),H,G,a(' Bei Priorisierung "Fahrzeuge" wird die gesamte PV-Leistung ABZÜGLICH der "reservierten Ladeleistung" des Speichers zum Fahrzeugladen verwendet.'),K,j,a(' Bei Priorisierung "Speicher" wird die gesamte PV-Leistung und ZUSÄTZLICH die "erlaubte Entladeleistung" des Speichers (bis zum Erreichen des "minimalen Entlade-SoC" des Speichers) zum Fahrzeugladen verwendet.'),J,Q,a(" Beide Modi lassen sich mit den zusätzlichen Einstellungen an die eigenen Bedürfnisse anpassen, so dass auch ein Mischbetrieb möglich ist. ")]),_:1},8,["model-value"]),i(o,{title:"Reservierte Ladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/charging_power_reserve"]/1e3,"onUpdate:modelValue":n[11]||(n[11]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/charging_power_reserve",t*1e3))},{help:l(()=>[a(' Die "reservierte Ladeleistung" des Speichers wird von der Regelung auch bei "Fahrzeuge"-Vorrang NICHT für das Fahrzeugladen verwendet und bleibt immer dem Speicher vorbehalten, sofern dieser nicht zu 100% geladen ist. ')]),_:1},8,["model-value"]),i(o,{title:"Erlaubte Entladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_power"]/1e3,"onUpdate:modelValue":n[12]||(n[12]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_power",t*1e3))},{help:l(()=>[a(' Die "erlaubte Entladeleistung" des Speichers wird von der Regelung bei "Speicher"-Vorrang ZUSÄTZLICH zur PV-Leistung für das Fahrzeugladen verwendet, solange der Speicher-SoC über dem "minimalen Entlade-SoC" liegt. ')]),_:1},8,["model-value"]),i(c,{title:"Minimaler Entlade-SoC",min:0,max:20,step:1,unit:"%",labels:[{label:0,value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:"Aus",value:100}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_soc"],"onUpdate:modelValue":n[13]||(n[13]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_soc",t))},{help:l(()=>[a(" Ein vorhandener Speicher wird im Modus PV-Laden mit der erlaubten Entladeleistung höchstens bis zu dem hier eingestellten Ladestand entladen. ")]),_:1},8,["model-value"]),X,i(_,null,{default:l(()=>[a(" Laden mit minimalem Dauerstrom ")]),_:1}),i(c,{title:"Einschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"],"onUpdate:modelValue":n[14]||(n[14]=t=>s.updateBatterySwitchOnSoc(t))},{help:l(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"]),i(c,{title:"Ausschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"],"onUpdate:modelValue":n[15]||(n[15]=t=>s.updateBatterySwitchOffSoc(t))},{help:l(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"])]))]),_:1}),i(v,{formName:"pvChargeConfigForm",onSave:n[16]||(n[16]=t=>e.$emit("save")),onReset:n[17]||(n[17]=t=>e.$emit("reset")),onDefaults:n[18]||(n[18]=t=>e.$emit("defaults"))})])])}const se=w(S,[["render",Y],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/PVChargeConfig.vue"]]);export{se as default}; diff --git a/web/settings/assets/ScheduledChargeConfig-ef3aaafb.js b/web/settings/assets/ScheduledChargeConfig-8d88bd9d.js similarity index 97% rename from web/settings/assets/ScheduledChargeConfig-ef3aaafb.js rename to web/settings/assets/ScheduledChargeConfig-8d88bd9d.js index c89bc596b9..e625b99ea0 100644 --- a/web/settings/assets/ScheduledChargeConfig-ef3aaafb.js +++ b/web/settings/assets/ScheduledChargeConfig-8d88bd9d.js @@ -1 +1 @@ -import{C as p}from"./index-b8f06cb8.js";import{_ as h,q as o,k as a,l as i,u as c,B as s,M as r,x as u}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const _={name:"OpenwbScheduledChargeConfig",mixins:[p],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/scheduled_charging/phases_to_use"]}}},b={class:"scheduledChargeConfig"},f={name:"scheduledChargeConfigForm"},v={key:0},w={key:1};function C(t,e,$,k,B,V){const d=o("openwb-base-alert"),l=o("openwb-base-button-group-input"),m=o("openwb-base-card"),g=o("openwb-base-submit-buttons");return a(),i("div",b,[c("form",f,[s(m,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(d,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",w,[s(l,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/scheduled_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/scheduled_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(g,{formName:"scheduledChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const A=h(_,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ScheduledChargeConfig.vue"]]);export{A as default}; +import{C as p}from"./index-720fb9ac.js";import{_ as h,q as o,k as a,l as i,u as c,B as s,M as r,x as u}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const _={name:"OpenwbScheduledChargeConfig",mixins:[p],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/scheduled_charging/phases_to_use"]}}},b={class:"scheduledChargeConfig"},f={name:"scheduledChargeConfigForm"},v={key:0},w={key:1};function C(t,e,$,k,B,V){const d=o("openwb-base-alert"),l=o("openwb-base-button-group-input"),m=o("openwb-base-card"),g=o("openwb-base-submit-buttons");return a(),i("div",b,[c("form",f,[s(m,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(d,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",w,[s(l,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/scheduled_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/scheduled_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(g,{formName:"scheduledChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const A=h(_,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ScheduledChargeConfig.vue"]]);export{A as default}; diff --git a/web/settings/assets/Status-0312a8dd.js b/web/settings/assets/Status-0312a8dd.js deleted file mode 100644 index e5ef103eab..0000000000 --- a/web/settings/assets/Status-0312a8dd.js +++ /dev/null @@ -1 +0,0 @@ -import{C as v}from"./index-b8f06cb8.js";import{l as w,K as L,F as x,L as k,M as C,c as T,N as z,O as $,P as A,Q as E,R as M,S as V}from"./vendor-fortawesome-9fdc06a9.js";import{_ as y,q as n,k as r,z as l,M as u,B as t,x as c,y as _,u as W,A as q,R as H,S as Z,l as I,I as P,J as S}from"./vendor-f0f38b48.js";import{C as K,p as F,a as J,L as G,b as Q,P as U,c as X,T as Y,i as ee,d as te,e as ne}from"./vendor-chartjs-3e4a7d38.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";import"./vendor-luxon-78deadb9.js";w.add(L);const oe={name:"ChargePointSumCard",mixins:[v],components:{FontAwesomeIcon:x}};function ae(e,g,o,h,m,a){const i=n("font-awesome-icon"),d=n("openwb-base-text-input"),p=n("openwb-base-heading"),s=n("openwb-base-card");return r(),l(s,{subtype:"primary",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","charging-station"]}),c(" Alle Ladepunkte ")]),default:u(()=>[t(d,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/get/power",3,3,.001)},null,8,["model-value"]),t(d,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/imported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/exported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Historie")]),_:1}),t(d,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_exported",3,3,.001)},null,8,["model-value"])]),_:1})}const re=y(oe,[["render",ae],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointSumCard.vue"]]);w.add(k,C,T,L);const se={name:"ChargePointCard",mixins:[v],components:{FontAwesomeIcon:x},props:{installedChargePointKey:String,installedChargePoint:Object},data(){return{statusLevel:["success","warning","danger"]}},computed:{chargePointIndex:{get(){return parseInt(this.installedChargePointKey.match(/(?:\/)(\d+)(?=\/)/)[1])}}}},le=W("br",null,null,-1),ie=W("br",null,null,-1);function ce(e,g,o,h,m,a){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-checkbox-input"),s=n("openwb-base-text-input"),b=n("openwb-base-heading"),B=n("openwb-base-card");return r(),l(B,{subtype:"primary",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","charging-station"]}),c(" "+_(o.installedChargePoint.name)+" (ID: "+_(a.chargePointIndex)+") ",1)]),default:u(()=>[t(d,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/chargepoint/"+a.chargePointIndex+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/chargepoint/"+a.chargePointIndex+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/chargepoint/"+a.chargePointIndex+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),le,c(" "+_(e.$store.state.mqtt["openWB/chargepoint/"+a.chargePointIndex+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(d,{subtype:"info"},{default:u(()=>[c(" Statusmeldung:"),ie,c(" "+_(e.$store.state.mqtt["openWB/chargepoint/"+a.chargePointIndex+"/get/state_str"]),1)]),_:1}),t(p,{title:"Fahrzeug angesteckt",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+a.chargePointIndex+"/get/plug_state"]==1},null,8,["model-value"]),t(p,{title:"Ladevorgang aktiv",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+a.chargePointIndex+"/get/charge_state"]==1},null,8,["model-value"]),t(s,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/exported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/power",3,3,.001)},null,8,["model-value"]),t(s,{title:"Ladestromvorgabe",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"A","model-value":e.formatNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/set/current",2)},null,8,["model-value"]),t(s,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"Hz","model-value":e.formatNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/frequency",2)},null,8,["model-value"]),t(b,null,{default:u(()=>[c("Werte pro Phase")]),_:1}),t(s,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/voltages",1)},null,8,["model-value"]),t(s,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/currents",2)},null,8,["model-value"]),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/powers",3,3,.001)},null,8,["model-value"]),t(s,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/power_factors",2)},null,8,["model-value"]),t(b,null,{default:u(()=>[c("Phasen")]),_:1}),e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),l(s,{key:0,title:"Vorgabe",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/internal_chargepoint/"+a.chargePointIndex+"/data/phases_to_use")},null,8,["model-value"])):(r(),l(s,{key:1,title:"Vorgabe",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/set/phases_to_use")},null,8,["model-value"])),t(s,{title:"Aktuell",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+a.chargePointIndex+"/get/phases_in_use")},null,8,["model-value"])]),_:1})}const ue=y(se,[["render",ce],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointCard.vue"]]);w.add(k,C,T,z);const de={name:"CounterCard",mixins:[v],components:{FontAwesomeIcon:x},props:{counter:Object},data(){return{statusLevel:["success","warning","danger"]}}},pe=W("br",null,null,-1),me=W("br",null,null,-1);function ge(e,g,o,h,m,a){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-text-input"),b=n("openwb-base-card");return r(),l(b,{subtype:"danger",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","gauge-high"]}),c(" "+_(o.counter.name)+" (ID: "+_(o.counter.id)+") ",1)]),default:u(()=>[t(d,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),pe,c(" "+_(e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/state_str"]!=null?(r(),l(d,{key:0,subtype:"info"},{default:u(()=>[c(" Statusmeldung:"),me,c(" "+_(e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/state_str"]),1)]),_:1})):q("",!0),t(p,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(s,{title:"Export",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+o.counter.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Import",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+o.counter.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Saldierte Werte")]),_:1}),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/counter/"+o.counter.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(s,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"Hz","model-value":e.formatNumberTopic("openWB/counter/"+o.counter.id+"/get/frequency",3)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Werte pro Phase")]),_:1}),t(s,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+o.counter.id+"/get/voltages",1)},null,8,["model-value"]),t(s,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+o.counter.id+"/get/currents",2)},null,8,["model-value"]),t(s,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+o.counter.id+"/get/powers",3,3,.001)},null,8,["model-value"]),t(s,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+o.counter.id+"/get/power_factors",2)},null,8,["model-value"])]),_:1})}const _e=y(de,[["render",ge],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/CounterCard.vue"]]);w.add(k,C,T,$);const he={name:"InverterSumCard",mixins:[v],components:{FontAwesomeIcon:x}};function be(e,g,o,h,m,a){const i=n("font-awesome-icon"),d=n("openwb-base-text-input"),p=n("openwb-base-heading"),s=n("openwb-base-card");return r(),l(s,{subtype:"success",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","solar-panel"]}),c(" Alle Wechselrichter ")]),default:u(()=>[t(d,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/get/power",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Erträge")]),_:1}),t(d,{title:"Heute",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Dieser Monat",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/monthly_exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Dieses Jahr",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/yearly_exported",3,3,.001)},null,8,["model-value"])]),_:1})}const fe=y(he,[["render",be],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterSumCard.vue"]]);w.add(k,C,T,$);const ve={name:"InverterCard",mixins:[v],components:{FontAwesomeIcon:x},props:{inverter:Object},data(){return{statusLevel:["success","warning","danger"]}}},ye=W("br",null,null,-1);function We(e,g,o,h,m,a){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-text-input"),s=n("openwb-base-heading"),b=n("openwb-base-card");return r(),l(b,{subtype:"success",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","solar-panel"]}),c(" "+_(o.inverter.name)+" (ID: "+_(o.inverter.id)+") ",1)]),default:u(()=>[t(d,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/pv/"+o.inverter.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/pv/"+o.inverter.id+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/pv/"+o.inverter.id+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),ye,c(" "+_(e.$store.state.mqtt["openWB/pv/"+o.inverter.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+o.inverter.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(p,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/"+o.inverter.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(s,null,{default:u(()=>[c("Erträge")]),_:1}),t(p,{title:"Heute",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+o.inverter.id+"/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(p,{title:"Dieser Monat",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+o.inverter.id+"/get/monthly_exported",3,3,.001)},null,8,["model-value"]),t(p,{title:"Dieses Jahr",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+o.inverter.id+"/get/yearly_exported",3,3,.001)},null,8,["model-value"])]),_:1})}const we=y(ve,[["render",We],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterCard.vue"]]);w.add(k,C,T,A);const xe={name:"BatterySumCard",mixins:[v],components:{FontAwesomeIcon:x},data(){return{statusLevel:["success","warning","danger"]}}},Be=W("br",null,null,-1);function ke(e,g,o,h,m,a){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-text-input"),b=n("openwb-base-number-input"),B=n("openwb-base-card");return r(),l(B,{subtype:"warning",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","car-battery"]}),c(" Alle Speicher ")]),default:u(()=>[t(d,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/bat/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/bat/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/bat/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Be,c(" "+_(e.$store.state.mqtt["openWB/bat/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(s,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/exported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Tageswerte")]),_:1}),t(s,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Saldierte Werte")]),_:1}),t(s,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/get/power",3,3,.001)},null,8,["model-value"]),t(b,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/get/soc"]},null,8,["model-value"])]),_:1})}const Ce=y(xe,[["render",ke],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatterySumCard.vue"]]);w.add(k,C,T,A);const Te={name:"InverterCard",mixins:[v],components:{FontAwesomeIcon:x},props:{battery:Object},data(){return{statusLevel:["success","warning","danger"]}}},qe=W("br",null,null,-1);function Ie(e,g,o,h,m,a){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-text-input"),b=n("openwb-base-number-input"),B=n("openwb-base-card");return r(),l(B,{subtype:"warning",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","car-battery"]}),c(" "+_(o.battery.name)+" (ID: "+_(o.battery.id)+") ",1)]),default:u(()=>[t(d,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/bat/"+o.battery.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/bat/"+o.battery.id+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/bat/"+o.battery.id+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),qe,c(" "+_(e.$store.state.mqtt["openWB/bat/"+o.battery.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,null,{default:u(()=>[c("Aktuelle Werte")]),_:1}),t(s,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/"+o.battery.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(b,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/"+o.battery.id+"/get/soc"]},null,8,["model-value"]),t(p,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(s,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+o.battery.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(s,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+o.battery.id+"/get/exported",3,3,.001)},null,8,["model-value"])]),_:1})}const Ne=y(Te,[["render",Ie],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatteryCard.vue"]]);w.add(k,C,T,E);const Pe={name:"RippleControlReceiverCard",mixins:[v],components:{FontAwesomeIcon:x},data(){return{mqttTopicsToSubscribe:["openWB/general/ripple_control_receiver/get/fault_state","openWB/general/ripple_control_receiver/get/fault_str","openWB/general/ripple_control_receiver/get/override_value","openWB/general/ripple_control_receiver/module"],statusLevel:["success","warning","danger"]}}},Se=W("br",null,null,-1);function Le(e,g,o,h,m,a){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-text-input"),s=n("openwb-base-card");return e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"]&&e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"].type?(r(),l(s,{key:0,subtype:"secondary",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{icon:["fas","tower-broadcast"]}),c(" Steuerbare Verbrauchseinrichtung (RSE) ")]),default:u(()=>[t(d,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Se,c(" "+_(e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,{title:"Status",readonly:"","model-value":e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/override_value"]==0?"Laden gesperrt":"Laden erlaubt ("+e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/override_value"]+"%)"},null,8,["model-value"])]),_:1})):q("",!0)}const $e=y(Pe,[["render",Le],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/RippleControlReceiver.vue"]]);w.add(k,C,T,M);const Ae={name:"VehicleCard",mixins:[v],components:{FontAwesomeIcon:x},props:{vehicle:Object,vehicleKey:String,vehicleName:String},data(){return{statusLevel:["success","warning","danger"]}},computed:{vehicleIndex:{get(){return parseInt(this.vehicleKey.match(/(?:\/)(\d+)(?=\/)/)[1])}},socTimestamp:{get(){return this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/soc_timestamp"]!==void 0?new Date(this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/soc_timestamp"]*1e3).toLocaleString():"-"}},socRange:{get(){return this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/range"]!==void 0?Math.round(this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/range"]):0}}}},Oe=W("br",null,null,-1);function je(e,g,o,h,m,a){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-heading"),s=n("openwb-base-number-input"),b=n("openwb-base-text-input"),B=n("openwb-base-card");return r(),l(B,{subtype:"info",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","car"]}),c(" "+_(o.vehicleName)+" (ID: "+_(a.vehicleIndex)+") ",1)]),default:u(()=>[e.$store.state.mqtt["openWB/vehicle/"+a.vehicleIndex+"/get/fault_state"]!==void 0?(r(),l(d,{key:0,subtype:m.statusLevel[e.$store.state.mqtt["openWB/vehicle/"+a.vehicleIndex+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/vehicle/"+a.vehicleIndex+"/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/vehicle/"+a.vehicleIndex+"/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Oe,c(" "+_(e.$store.state.mqtt["openWB/vehicle/"+a.vehicleIndex+"/get/fault_str"]),1)]),_:1},8,["subtype"])):q("",!0),t(p,null,{default:u(()=>[c("Fahrzeugdaten")]),_:1}),t(s,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/vehicle/"+a.vehicleIndex+"/get/soc"]},null,8,["model-value"]),t(s,{title:"Reichweite",readonly:"",class:"text-right text-monospace",unit:"km","model-value":a.socRange},null,8,["model-value"]),t(b,{title:"Letzter Zeitstempel",readonly:"",class:"text-right text-monospace","model-value":a.socTimestamp},null,8,["model-value"])]),_:1})}const Re=y(Ae,[["render",je],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/VehicleCard.vue"]]);w.add(k,C,T,V);K.register(F,J,G,Q,U,X,Y,ee,te);const De={name:"ElectricityTariffCard",mixins:[v],components:{ChartjsLine:ne,FontAwesomeIcon:x},data(){return{mqttTopicsToSubscribe:["openWB/optional/et/provider","openWB/optional/et/get/fault_state","openWB/optional/et/get/fault_str","openWB/optional/et/get/prices"],statusLevel:["success","warning","danger"],chartDatasets:{datasets:[{label:"Stromtarif",unit:"ct/kWh",type:"line",stepped:!0,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:void 0,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:"price"}}]},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0},legend:{display:!1}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"hour",text:"Zeit",maxTicksLimit:24},display:!0,title:{display:!0,text:"Uhrzeit"},ticks:{font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",title:{font:{size:12},display:!0,text:"Preis [ct/kWh]"},grid:{},ticks:{font:{size:12},stepSize:.01,maxTicksLimit:11}}}}}},computed:{electricityTariffConfigured(){const e=this.$store.state.mqtt["openWB/optional/et/provider"];return e!==void 0?e.type!==null:!1},chartDataRead(){return this.chartDataObject.datasets[0].data!=null},chartDataObject(){if(this.$store.state.mqtt["openWB/optional/et/get/prices"]){var e=this.$store.state.mqtt["openWB/optional/et/get/prices"],g=[];for(const[m,a]of Object.entries(e))g.push({timestamp:m*1e3,price:a*1e5});const h=g.slice(-1)[0];g.push({timestamp:h.timestamp+(60*60-1)*1e3,price:h.price})}const o=this.chartDatasets;return o.datasets[0].data=g,o}}},ze=e=>(H("data-v-f4769d2f"),e=e(),Z(),e),Ee=ze(()=>W("br",null,null,-1)),Me={class:"openwb-chart"};function Ve(e,g,o,h,m,a){const i=n("font-awesome-icon"),d=n("openwb-base-alert"),p=n("openwb-base-text-input"),s=n("chartjs-line"),b=n("openwb-base-card");return a.electricityTariffConfigured?(r(),l(b,{key:0,subtype:"secondary",collapsible:!0,collapsed:!0},{header:u(()=>[t(i,{"fixed-width":"",icon:["fas","ranking-star"]}),c(" Variabler Stromtarif ")]),default:u(()=>[t(d,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/optional/et/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/optional/et/get/fault_state"]==1?(r(),l(i,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/optional/et/get/fault_state"]==2?(r(),l(i,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(r(),l(i,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Ee,c(" "+_(e.$store.state.mqtt["openWB/optional/et/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,{title:"Anbieter",readonly:"","model-value":e.$store.state.mqtt["openWB/optional/et/provider"].name},null,8,["model-value"]),W("div",Me,[a.chartDataRead?(r(),l(s,{key:0,ref:"myChart",data:a.chartDataObject,options:m.chartOptions},null,8,["data","options"])):q("",!0)])]),_:1})):q("",!0)}const He=y(De,[["render",Ve],["__scopeId","data-v-f4769d2f"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ElectricityTariffCard.vue"]]);const Ze={name:"OpenwbStatus",mixins:[v],components:{ChargePointSumCard:re,ChargePointCard:ue,CounterCard:_e,InverterSumCard:fe,InverterCard:we,BatterySumCard:Ce,BatteryCard:Ne,RippleControlReceiverCard:$e,VehicleCard:Re,ElectricityTariffCard:He},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/get/power","openWB/chargepoint/get/imported","openWB/chargepoint/get/exported","openWB/chargepoint/get/daily_imported","openWB/chargepoint/get/daily_exported","openWB/chargepoint/+/config","openWB/chargepoint/+/get/+","openWB/chargepoint/+/get/connected_vehicle/info","openWB/chargepoint/+/set/+","openWB/internal_chargepoint/+/data/phases_to_use","openWB/system/device/+/component/+/config","openWB/counter/+/get/+","openWB/pv/get/+","openWB/pv/+/get/+","openWB/bat/get/+","openWB/bat/+/get/+","openWB/vehicle/+/name","openWB/vehicle/+/get/+"]}},computed:{installedChargePoints:{get(){let e=this.getWildcardTopics("openWB/chargepoint/+/config"),g={};for(const[o,h]of Object.entries(e))(h.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(g[o]=h);return g}},numChargePointsInstalled:{get(){return Object.keys(this.installedChargePoints).length}},counterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"counter")}},numInvertersInstalled:{get(){return Object.keys(this.inverterConfigs).length}},inverterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"inverter")}},numBatteriesInstalled:{get(){return Object.keys(this.batteryConfigs).length}},batteryConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"bat")}},vehicleNames:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.getWildcardTopics("openWB/vehicle/+/name")}}},methods:{filterComponentsByType(e,g){return Object.keys(e).filter(o=>e[o].type.includes(g)).reduce((o,h)=>({...o,[h]:e[h]}),{})}}},Ke={class:"status"};function Fe(e,g,o,h,m,a){const i=n("charge-point-sum-card"),d=n("charge-point-card"),p=n("counter-card"),s=n("inverter-sum-card"),b=n("inverter-card"),B=n("battery-sum-card"),O=n("battery-card"),j=n("vehicle-card"),R=n("electricity-tariff-card"),D=n("ripple-control-receiver-card");return r(),I("div",Ke,[a.numChargePointsInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),l(i,{key:0})):q("",!0),(r(!0),I(P,null,S(a.installedChargePoints,(f,N)=>(r(),l(d,{key:N,installedChargePoint:f,installedChargePointKey:N},null,8,["installedChargePoint","installedChargePointKey"]))),128)),(r(!0),I(P,null,S(a.counterConfigs,f=>(r(),l(p,{key:f.id,counter:f},null,8,["counter"]))),128)),a.numInvertersInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),l(s,{key:1})):q("",!0),(r(!0),I(P,null,S(a.inverterConfigs,f=>(r(),l(b,{key:f.id,inverter:f},null,8,["inverter"]))),128)),a.numBatteriesInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),l(B,{key:2})):q("",!0),(r(!0),I(P,null,S(a.batteryConfigs,f=>(r(),l(O,{key:f.id,battery:f},null,8,["battery"]))),128)),(r(!0),I(P,null,S(a.vehicleNames,(f,N)=>(r(),l(j,{key:N,vehicleKey:N,vehicleName:f},null,8,["vehicleKey","vehicleName"]))),128)),t(R),t(D)])}const ot=y(Ze,[["render",Fe],["__scopeId","data-v-051028a3"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Status.vue"]]);export{ot as default}; diff --git a/web/settings/assets/Status-252073e6.js b/web/settings/assets/Status-252073e6.js new file mode 100644 index 0000000000..de3259efe2 --- /dev/null +++ b/web/settings/assets/Status-252073e6.js @@ -0,0 +1 @@ +import{C as y}from"./index-720fb9ac.js";import{l as w,K as L,F as x,L as k,M as C,c as T,N as z,O as S,P as A,Q as E,R as M,S as V}from"./vendor-fortawesome-9fdc06a9.js";import{_ as W,q as n,k as a,z as s,M as u,B as t,x as c,y as g,u as v,A as q,R as H,S as Z,l as I,I as P,J as $}from"./vendor-f0f38b48.js";import{C as K,p as F,a as J,L as G,b as Q,P as U,c as X,T as Y,i as ee,d as te,e as ne}from"./vendor-chartjs-3e4a7d38.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";import"./vendor-luxon-78deadb9.js";w.add(L);const oe={name:"ChargePointSumCard",mixins:[y],components:{FontAwesomeIcon:x}};function ae(e,_,o,h,m,r){const l=n("font-awesome-icon"),p=n("openwb-base-text-input"),d=n("openwb-base-heading"),i=n("openwb-base-card");return a(),s(i,{subtype:"primary",collapsible:!0,collapsed:!0},{header:u(()=>[t(l,{"fixed-width":"",icon:["fas","charging-station"]}),c(" Alle Ladepunkte ")]),default:u(()=>[t(p,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/get/power",3,3,.001)},null,8,["model-value"]),t(p,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/imported",3,3,.001)},null,8,["model-value"]),t(p,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/exported",3,3,.001)},null,8,["model-value"]),t(d,null,{default:u(()=>[c("Historie")]),_:1}),t(p,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(p,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_exported",3,3,.001)},null,8,["model-value"])]),_:1})}const re=W(oe,[["render",ae],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointSumCard.vue"]]);w.add(k,C,T,L);const se={name:"ChargePointCard",mixins:[y],components:{FontAwesomeIcon:x},props:{installedChargePointKey:String,installedChargePoint:Object},data(){return{statusLevel:["success","warning","danger"]}},computed:{chargePointIndex:{get(){return parseInt(this.installedChargePointKey.match(/(?:\/)(\d+)(?=\/)/)[1])}}}},le=v("br",null,null,-1),ie=v("br",null,null,-1);function ce(e,_,o,h,m,r){const l=n("font-awesome-icon"),p=n("openwb-base-alert"),d=n("openwb-base-checkbox-input"),i=n("openwb-base-text-input"),f=n("openwb-base-heading"),B=n("openwb-base-card");return a(),s(B,{subtype:"primary",collapsible:!0,collapsed:!0},{header:u(()=>[t(l,{"fixed-width":"",icon:["fas","charging-station"]}),c(" "+g(o.installedChargePoint.name)+" (ID: "+g(r.chargePointIndex)+") ",1)]),default:u(()=>[t(p,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/chargepoint/"+r.chargePointIndex+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/chargepoint/"+r.chargePointIndex+"/get/fault_state"]==1?(a(),s(l,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/chargepoint/"+r.chargePointIndex+"/get/fault_state"]==2?(a(),s(l,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(a(),s(l,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),le,c(" "+g(e.$store.state.mqtt["openWB/chargepoint/"+r.chargePointIndex+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(p,{subtype:"info"},{default:u(()=>[c(" Statusmeldung:"),ie,c(" "+g(e.$store.state.mqtt["openWB/chargepoint/"+r.chargePointIndex+"/get/state_str"]),1)]),_:1}),t(d,{title:"Fahrzeug angesteckt",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+r.chargePointIndex+"/get/plug_state"]==1},null,8,["model-value"]),t(d,{title:"Ladevorgang aktiv",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+r.chargePointIndex+"/get/charge_state"]==1},null,8,["model-value"]),t(i,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/imported",3,3,.001)},null,8,["model-value"]),t(i,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/exported",3,3,.001)},null,8,["model-value"]),t(i,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(i,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(i,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/power",3,3,.001)},null,8,["model-value"]),t(i,{title:"Ladestromvorgabe",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"A","model-value":e.formatNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/set/current",2)},null,8,["model-value"]),t(i,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"Hz","model-value":e.formatNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/frequency",2)},null,8,["model-value"]),t(f,null,{default:u(()=>[c("Werte pro Phase")]),_:1}),t(i,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/voltages",1)},null,8,["model-value"]),t(i,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/currents",2)},null,8,["model-value"]),t(i,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/powers",3,3,.001)},null,8,["model-value"]),t(i,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/power_factors",2)},null,8,["model-value"]),t(f,null,{default:u(()=>[c("Phasen")]),_:1}),e.$store.state.mqtt["openWB/general/extern"]===!0?(a(),s(i,{key:0,title:"Vorgabe",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/internal_chargepoint/"+r.chargePointIndex+"/data/phases_to_use")},null,8,["model-value"])):(a(),s(i,{key:1,title:"Vorgabe",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/set/phases_to_use")},null,8,["model-value"])),t(i,{title:"Aktuell",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+r.chargePointIndex+"/get/phases_in_use")},null,8,["model-value"])]),_:1})}const ue=W(se,[["render",ce],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ChargePointCard.vue"]]);w.add(k,C,T,z);const de={name:"CounterCard",mixins:[y],components:{FontAwesomeIcon:x},props:{counter:Object},data(){return{statusLevel:["success","warning","danger"]}}},pe=v("br",null,null,-1),me=v("br",null,null,-1);function ge(e,_,o,h,m,r){const l=n("font-awesome-icon"),p=n("openwb-base-alert"),d=n("openwb-base-heading"),i=n("openwb-base-text-input"),f=n("openwb-base-card");return a(),s(f,{subtype:"danger",collapsible:!0,collapsed:!0},{header:u(()=>[t(l,{"fixed-width":"",icon:["fas","gauge-high"]}),c(" "+g(o.counter.name)+" (ID: "+g(o.counter.id)+") ",1)]),default:u(()=>[t(p,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/fault_state"]==1?(a(),s(l,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/fault_state"]==2?(a(),s(l,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(a(),s(l,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),pe,c(" "+g(e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/state_str"]!=null?(a(),s(p,{key:0,subtype:"info"},{default:u(()=>[c(" Statusmeldung:"),me,c(" "+g(e.$store.state.mqtt["openWB/counter/"+o.counter.id+"/get/state_str"]),1)]),_:1})):q("",!0),t(d,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(i,{title:"Export",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+o.counter.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(i,{title:"Import",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+o.counter.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(d,null,{default:u(()=>[c("Saldierte Werte")]),_:1}),t(i,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/counter/"+o.counter.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(i,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"Hz","model-value":e.formatNumberTopic("openWB/counter/"+o.counter.id+"/get/frequency",3)},null,8,["model-value"]),t(d,null,{default:u(()=>[c("Werte pro Phase")]),_:1}),t(i,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+o.counter.id+"/get/voltages",1)},null,8,["model-value"]),t(i,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+o.counter.id+"/get/currents",2)},null,8,["model-value"]),t(i,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+o.counter.id+"/get/powers",3,3,.001)},null,8,["model-value"]),t(i,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+o.counter.id+"/get/power_factors",2)},null,8,["model-value"])]),_:1})}const _e=W(de,[["render",ge],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/CounterCard.vue"]]);w.add(k,C,T,S);const he={name:"InverterSumCard",mixins:[y],components:{FontAwesomeIcon:x},data(){return{statusLevel:["success","warning","danger"]}}},fe=v("br",null,null,-1);function be(e,_,o,h,m,r){const l=n("font-awesome-icon"),p=n("openwb-base-alert"),d=n("openwb-base-text-input"),i=n("openwb-base-heading"),f=n("openwb-base-card");return a(),s(f,{subtype:"success",collapsible:!0,collapsed:!0},{header:u(()=>[t(l,{"fixed-width":"",icon:["fas","solar-panel"]}),c(" Alle Wechselrichter ")]),default:u(()=>[t(p,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/pv/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/pv/get/fault_state"]==1?(a(),s(l,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/pv/get/fault_state"]==2?(a(),s(l,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(a(),s(l,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),fe,c(" "+g(e.$store.state.mqtt["openWB/pv/get/fault_str"]),1)]),_:1},8,["subtype"]),t(d,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/get/power",3,3,.001)},null,8,["model-value"]),t(i,null,{default:u(()=>[c("Erträge")]),_:1}),t(d,{title:"Heute",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Dieser Monat",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/monthly_exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Dieses Jahr",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/yearly_exported",3,3,.001)},null,8,["model-value"])]),_:1})}const ve=W(he,[["render",be],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterSumCard.vue"]]);w.add(k,C,T,S);const ye={name:"InverterCard",mixins:[y],components:{FontAwesomeIcon:x},props:{inverter:Object},data(){return{statusLevel:["success","warning","danger"]}}},We=v("br",null,null,-1);function we(e,_,o,h,m,r){const l=n("font-awesome-icon"),p=n("openwb-base-alert"),d=n("openwb-base-text-input"),i=n("openwb-base-heading"),f=n("openwb-base-card");return a(),s(f,{subtype:"success",collapsible:!0,collapsed:!0},{header:u(()=>[t(l,{"fixed-width":"",icon:["fas","solar-panel"]}),c(" "+g(o.inverter.name)+" (ID: "+g(o.inverter.id)+") ",1)]),default:u(()=>[t(p,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/pv/"+o.inverter.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/pv/"+o.inverter.id+"/get/fault_state"]==1?(a(),s(l,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/pv/"+o.inverter.id+"/get/fault_state"]==2?(a(),s(l,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(a(),s(l,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),We,c(" "+g(e.$store.state.mqtt["openWB/pv/"+o.inverter.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(d,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+o.inverter.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/"+o.inverter.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(i,null,{default:u(()=>[c("Erträge")]),_:1}),t(d,{title:"Heute",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+o.inverter.id+"/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Dieser Monat",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+o.inverter.id+"/get/monthly_exported",3,3,.001)},null,8,["model-value"]),t(d,{title:"Dieses Jahr",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+o.inverter.id+"/get/yearly_exported",3,3,.001)},null,8,["model-value"])]),_:1})}const xe=W(ye,[["render",we],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/InverterCard.vue"]]);w.add(k,C,T,A);const Be={name:"BatterySumCard",mixins:[y],components:{FontAwesomeIcon:x},data(){return{statusLevel:["success","warning","danger"]}}},ke=v("br",null,null,-1);function Ce(e,_,o,h,m,r){const l=n("font-awesome-icon"),p=n("openwb-base-alert"),d=n("openwb-base-heading"),i=n("openwb-base-text-input"),f=n("openwb-base-number-input"),B=n("openwb-base-card");return a(),s(B,{subtype:"warning",collapsible:!0,collapsed:!0},{header:u(()=>[t(l,{"fixed-width":"",icon:["fas","car-battery"]}),c(" Alle Speicher ")]),default:u(()=>[t(p,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/bat/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/bat/get/fault_state"]==1?(a(),s(l,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/bat/get/fault_state"]==2?(a(),s(l,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(a(),s(l,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),ke,c(" "+g(e.$store.state.mqtt["openWB/bat/get/fault_str"]),1)]),_:1},8,["subtype"]),t(d,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(i,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/imported",3,3,.001)},null,8,["model-value"]),t(i,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/exported",3,3,.001)},null,8,["model-value"]),t(d,null,{default:u(()=>[c("Tageswerte")]),_:1}),t(i,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(i,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(d,null,{default:u(()=>[c("Saldierte Werte")]),_:1}),t(i,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/get/power",3,3,.001)},null,8,["model-value"]),t(f,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/get/soc"]},null,8,["model-value"])]),_:1})}const Te=W(Be,[["render",Ce],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatterySumCard.vue"]]);w.add(k,C,T,A);const qe={name:"InverterCard",mixins:[y],components:{FontAwesomeIcon:x},props:{battery:Object},data(){return{statusLevel:["success","warning","danger"]}}},Ie=v("br",null,null,-1);function Ne(e,_,o,h,m,r){const l=n("font-awesome-icon"),p=n("openwb-base-alert"),d=n("openwb-base-heading"),i=n("openwb-base-text-input"),f=n("openwb-base-number-input"),B=n("openwb-base-card");return a(),s(B,{subtype:"warning",collapsible:!0,collapsed:!0},{header:u(()=>[t(l,{"fixed-width":"",icon:["fas","car-battery"]}),c(" "+g(o.battery.name)+" (ID: "+g(o.battery.id)+") ",1)]),default:u(()=>[t(p,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/bat/"+o.battery.id+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/bat/"+o.battery.id+"/get/fault_state"]==1?(a(),s(l,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/bat/"+o.battery.id+"/get/fault_state"]==2?(a(),s(l,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(a(),s(l,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Ie,c(" "+g(e.$store.state.mqtt["openWB/bat/"+o.battery.id+"/get/fault_str"]),1)]),_:1},8,["subtype"]),t(d,null,{default:u(()=>[c("Aktuelle Werte")]),_:1}),t(i,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/"+o.battery.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(f,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/"+o.battery.id+"/get/soc"]},null,8,["model-value"]),t(d,null,{default:u(()=>[c("Zählerstände")]),_:1}),t(i,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+o.battery.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(i,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+o.battery.id+"/get/exported",3,3,.001)},null,8,["model-value"])]),_:1})}const Pe=W(qe,[["render",Ne],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/BatteryCard.vue"]]);w.add(k,C,T,E);const $e={name:"RippleControlReceiverCard",mixins:[y],components:{FontAwesomeIcon:x},data(){return{mqttTopicsToSubscribe:["openWB/general/ripple_control_receiver/get/fault_state","openWB/general/ripple_control_receiver/get/fault_str","openWB/general/ripple_control_receiver/get/override_value","openWB/general/ripple_control_receiver/module"],statusLevel:["success","warning","danger"]}}},Le=v("br",null,null,-1);function Se(e,_,o,h,m,r){const l=n("font-awesome-icon"),p=n("openwb-base-alert"),d=n("openwb-base-text-input"),i=n("openwb-base-card");return e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"]&&e.$store.state.mqtt["openWB/general/ripple_control_receiver/module"].type?(a(),s(i,{key:0,subtype:"secondary",collapsible:!0,collapsed:!0},{header:u(()=>[t(l,{icon:["fas","tower-broadcast"]}),c(" Steuerbare Verbrauchseinrichtung (RSE) ")]),default:u(()=>[t(p,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/fault_state"]==1?(a(),s(l,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/fault_state"]==2?(a(),s(l,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(a(),s(l,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Le,c(" "+g(e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/fault_str"]),1)]),_:1},8,["subtype"]),t(d,{title:"Status",readonly:"","model-value":e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/override_value"]==0?"Laden gesperrt":"Laden erlaubt ("+e.$store.state.mqtt["openWB/general/ripple_control_receiver/get/override_value"]+"%)"},null,8,["model-value"])]),_:1})):q("",!0)}const Ae=W($e,[["render",Se],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/RippleControlReceiver.vue"]]);w.add(k,C,T,M);const Oe={name:"VehicleCard",mixins:[y],components:{FontAwesomeIcon:x},props:{vehicle:Object,vehicleKey:String,vehicleName:String},data(){return{statusLevel:["success","warning","danger"]}},computed:{vehicleIndex:{get(){return parseInt(this.vehicleKey.match(/(?:\/)(\d+)(?=\/)/)[1])}},socTimestamp:{get(){return this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/soc_timestamp"]!==void 0?new Date(this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/soc_timestamp"]*1e3).toLocaleString():"-"}},socRange:{get(){return this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/range"]!==void 0?Math.round(this.$store.state.mqtt["openWB/vehicle/"+this.vehicleIndex+"/get/range"]):0}}}},je=v("br",null,null,-1);function Re(e,_,o,h,m,r){const l=n("font-awesome-icon"),p=n("openwb-base-alert"),d=n("openwb-base-heading"),i=n("openwb-base-number-input"),f=n("openwb-base-text-input"),B=n("openwb-base-card");return a(),s(B,{subtype:"info",collapsible:!0,collapsed:!0},{header:u(()=>[t(l,{"fixed-width":"",icon:["fas","car"]}),c(" "+g(o.vehicleName)+" (ID: "+g(r.vehicleIndex)+") ",1)]),default:u(()=>[e.$store.state.mqtt["openWB/vehicle/"+r.vehicleIndex+"/get/fault_state"]!==void 0?(a(),s(p,{key:0,subtype:m.statusLevel[e.$store.state.mqtt["openWB/vehicle/"+r.vehicleIndex+"/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/vehicle/"+r.vehicleIndex+"/get/fault_state"]==1?(a(),s(l,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/vehicle/"+r.vehicleIndex+"/get/fault_state"]==2?(a(),s(l,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(a(),s(l,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),je,c(" "+g(e.$store.state.mqtt["openWB/vehicle/"+r.vehicleIndex+"/get/fault_str"]),1)]),_:1},8,["subtype"])):q("",!0),t(d,null,{default:u(()=>[c("Fahrzeugdaten")]),_:1}),t(i,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/vehicle/"+r.vehicleIndex+"/get/soc"]},null,8,["model-value"]),t(i,{title:"Reichweite",readonly:"",class:"text-right text-monospace",unit:"km","model-value":r.socRange},null,8,["model-value"]),t(f,{title:"Letzter Zeitstempel",readonly:"",class:"text-right text-monospace","model-value":r.socTimestamp},null,8,["model-value"])]),_:1})}const De=W(Oe,[["render",Re],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/VehicleCard.vue"]]);w.add(k,C,T,V);K.register(F,J,G,Q,U,X,Y,ee,te);const ze={name:"ElectricityTariffCard",mixins:[y],components:{ChartjsLine:ne,FontAwesomeIcon:x},data(){return{mqttTopicsToSubscribe:["openWB/optional/et/provider","openWB/optional/et/get/fault_state","openWB/optional/et/get/fault_str","openWB/optional/et/get/prices"],statusLevel:["success","warning","danger"],chartDatasets:{datasets:[{label:"Stromtarif",unit:"ct/kWh",type:"line",stepped:!0,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:void 0,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:"price"}}]},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0},legend:{display:!1}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"hour",text:"Zeit",maxTicksLimit:24},display:!0,title:{display:!0,text:"Uhrzeit"},ticks:{font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",title:{font:{size:12},display:!0,text:"Preis [ct/kWh]"},grid:{},ticks:{font:{size:12},stepSize:.01,maxTicksLimit:11}}}}}},computed:{electricityTariffConfigured(){const e=this.$store.state.mqtt["openWB/optional/et/provider"];return e!==void 0?e.type!==null:!1},chartDataRead(){return this.chartDataObject.datasets[0].data!=null},chartDataObject(){if(this.$store.state.mqtt["openWB/optional/et/get/prices"]){var e=this.$store.state.mqtt["openWB/optional/et/get/prices"],_=[];for(const[m,r]of Object.entries(e))_.push({timestamp:m*1e3,price:r*1e5});const h=_.slice(-1)[0];_.push({timestamp:h.timestamp+(60*60-1)*1e3,price:h.price})}const o=this.chartDatasets;return o.datasets[0].data=_,o}}},Ee=e=>(H("data-v-f4769d2f"),e=e(),Z(),e),Me=Ee(()=>v("br",null,null,-1)),Ve={class:"openwb-chart"};function He(e,_,o,h,m,r){const l=n("font-awesome-icon"),p=n("openwb-base-alert"),d=n("openwb-base-text-input"),i=n("chartjs-line"),f=n("openwb-base-card");return r.electricityTariffConfigured?(a(),s(f,{key:0,subtype:"secondary",collapsible:!0,collapsed:!0},{header:u(()=>[t(l,{"fixed-width":"",icon:["fas","ranking-star"]}),c(" Variabler Stromtarif ")]),default:u(()=>[t(p,{subtype:m.statusLevel[e.$store.state.mqtt["openWB/optional/et/get/fault_state"]]},{default:u(()=>[e.$store.state.mqtt["openWB/optional/et/get/fault_state"]==1?(a(),s(l,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/optional/et/get/fault_state"]==2?(a(),s(l,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(a(),s(l,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),c(" Modulmeldung:"),Me,c(" "+g(e.$store.state.mqtt["openWB/optional/et/get/fault_str"]),1)]),_:1},8,["subtype"]),t(d,{title:"Anbieter",readonly:"","model-value":e.$store.state.mqtt["openWB/optional/et/provider"].name},null,8,["model-value"]),v("div",Ve,[r.chartDataRead?(a(),s(i,{key:0,ref:"myChart",data:r.chartDataObject,options:m.chartOptions},null,8,["data","options"])):q("",!0)])]),_:1})):q("",!0)}const Ze=W(ze,[["render",He],["__scopeId","data-v-f4769d2f"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/status/ElectricityTariffCard.vue"]]);const Ke={name:"OpenwbStatus",mixins:[y],components:{ChargePointSumCard:re,ChargePointCard:ue,CounterCard:_e,InverterSumCard:ve,InverterCard:xe,BatterySumCard:Te,BatteryCard:Pe,RippleControlReceiverCard:Ae,VehicleCard:De,ElectricityTariffCard:Ze},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/get/power","openWB/chargepoint/get/imported","openWB/chargepoint/get/exported","openWB/chargepoint/get/daily_imported","openWB/chargepoint/get/daily_exported","openWB/chargepoint/+/config","openWB/chargepoint/+/get/+","openWB/chargepoint/+/get/connected_vehicle/info","openWB/chargepoint/+/set/+","openWB/internal_chargepoint/+/data/phases_to_use","openWB/system/device/+/component/+/config","openWB/counter/+/get/+","openWB/pv/get/+","openWB/pv/+/get/+","openWB/bat/get/+","openWB/bat/+/get/+","openWB/vehicle/+/name","openWB/vehicle/+/get/+"]}},computed:{installedChargePoints:{get(){let e=this.getWildcardTopics("openWB/chargepoint/+/config"),_={};for(const[o,h]of Object.entries(e))(h.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(_[o]=h);return _}},numChargePointsInstalled:{get(){return Object.keys(this.installedChargePoints).length}},counterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"counter")}},numInvertersInstalled:{get(){return Object.keys(this.inverterConfigs).length}},inverterConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"inverter")}},numBatteriesInstalled:{get(){return Object.keys(this.batteryConfigs).length}},batteryConfigs:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"bat")}},vehicleNames:{get(){return this.$store.state.mqtt["openWB/general/extern"]===!0?{}:this.getWildcardTopics("openWB/vehicle/+/name")}}},methods:{filterComponentsByType(e,_){return Object.keys(e).filter(o=>e[o].type.includes(_)).reduce((o,h)=>({...o,[h]:e[h]}),{})}}},Fe={class:"status"};function Je(e,_,o,h,m,r){const l=n("charge-point-sum-card"),p=n("charge-point-card"),d=n("counter-card"),i=n("inverter-sum-card"),f=n("inverter-card"),B=n("battery-sum-card"),O=n("battery-card"),j=n("vehicle-card"),R=n("electricity-tariff-card"),D=n("ripple-control-receiver-card");return a(),I("div",Fe,[r.numChargePointsInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(a(),s(l,{key:0})):q("",!0),(a(!0),I(P,null,$(r.installedChargePoints,(b,N)=>(a(),s(p,{key:N,installedChargePoint:b,installedChargePointKey:N},null,8,["installedChargePoint","installedChargePointKey"]))),128)),(a(!0),I(P,null,$(r.counterConfigs,b=>(a(),s(d,{key:b.id,counter:b},null,8,["counter"]))),128)),r.numInvertersInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(a(),s(i,{key:1})):q("",!0),(a(!0),I(P,null,$(r.inverterConfigs,b=>(a(),s(f,{key:b.id,inverter:b},null,8,["inverter"]))),128)),r.numBatteriesInstalled>1&&e.$store.state.mqtt["openWB/general/extern"]===!1?(a(),s(B,{key:2})):q("",!0),(a(!0),I(P,null,$(r.batteryConfigs,b=>(a(),s(O,{key:b.id,battery:b},null,8,["battery"]))),128)),(a(!0),I(P,null,$(r.vehicleNames,(b,N)=>(a(),s(j,{key:N,vehicleKey:N,vehicleName:b},null,8,["vehicleKey","vehicleName"]))),128)),t(R),t(D)])}const at=W(Ke,[["render",Je],["__scopeId","data-v-051028a3"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Status.vue"]]);export{at as default}; diff --git a/web/settings/assets/Support-c863d745.js b/web/settings/assets/Support-9c1ef3b0.js similarity index 98% rename from web/settings/assets/Support-c863d745.js rename to web/settings/assets/Support-9c1ef3b0.js index a8331e022c..95ed66fab1 100644 --- a/web/settings/assets/Support-c863d745.js +++ b/web/settings/assets/Support-9c1ef3b0.js @@ -1 +1 @@ -import{l as w,g as V,F as y}from"./vendor-fortawesome-9fdc06a9.js";import{C as B}from"./index-b8f06cb8.js";import{_ as v,q as a,k as r,l as c,u as l,z as h,M as s,B as n,a3 as z,A as g,x as t,p as F}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";w.add(V);const x={name:"OpenwbSupport",mixins:[B],emits:["sendCommand"],components:{FontAwesomeIcon:y},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged"],sendDebugData:{email:"",serialNumber:"",installedComponents:"",vehicles:"",message:""},enableSendDebugButton:!0}},methods:{sendDebugMessage(){if(document.forms.supportForm.reportValidity())this.$emit("sendCommand",{command:"sendDebug",data:this.sendDebugData}),this.enableSendDebugButton=!1;else{console.warn("form invalid");return}}}},C={class:"support"},q={name:"supportForm"},A={key:1},W={key:0},N=l("li",null,' Vergewissern Sie sich, dass mindestens die aktuelle "Release" Version installiert ist. ',-1),M=l("li",null," Stellen Sie beim Absenden des Berichtes die Fehlerkonditionen her. Lädt ein Fahrzeug nicht, sollte es angeschlossen und nicht voll geladen sein. Ist PV laden betroffen, sollte die Sonne auch scheinen. Der Systembericht muss dann versendet werden, wenn der Fehler aktuell vorliegt. ",-1),L=l("li",null," Stellen Sie sicher, dass der Lademodus korrekt gewählt ist und im Falle von nicht ladenden Fahrzeugen, dass der Ladepunkt auch entsperrt wurde. ",-1),U=l("li",null," Das Auslesen der Systemkonfiguration erfolgt direkt nach den Klick auf Absenden und kann einige Zeit in Anspruch nehmen. Sie erhalten ca. 15 bis 30 Minuten nach Versand des Systemberichtes von uns automatisch eine E-Mail mit der Ticketnummer unter der die Anfrage bei uns registriert wurde. Wir melden uns bei ihnen. Bitte kontrollieren Sie daher immer auch den Spam Ordner auf eingehende Nachrichten. Erhalten Sie trotzdem keine Ticketnummer, ist das Versenden des Systemberichtes fehlgeschlagen. ",-1),E={class:"row justify-content-center"};function G(d,o,T,H,e,_){const b=a("router-link"),u=a("openwb-base-alert"),f=a("FontAwesomeIcon"),p=a("openwb-base-text-input"),m=a("openwb-base-textarea"),S=a("openwb-base-click-button"),k=a("openwb-base-card"),D=a("font-awesome-icon");return r(),c("div",C,[l("form",q,[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(r(),h(u,{key:0,subtype:"danger"},{default:s(()=>[t(" Sie müssen der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zustimmen, um einen Systembericht senden zu können. ")]),_:1})):(r(),c("div",A,[n(u,{subtype:"success"},{default:s(()=>[t(" Sie haben der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zugestimmt und können Systemberichte senden. ")]),_:1}),n(k,{title:"Systembericht"},z({default:s(()=>[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?(r(),c("div",W,[n(u,{subtype:"info"},{default:s(()=>[l("ul",null,[l("li",null,[t(" Lesen Sie den Hilfetext, der durch Klick auf das "),n(f,{icon:["far","question-circle"]}),t(" angezeigt wird. Nehmen Sie das Wiki zur Hilfe. ")]),N,M,L,U])]),_:1}),n(p,{title:"E-Mail",required:"",subtype:"email",modelValue:e.sendDebugData.email,"onUpdate:modelValue":o[0]||(o[0]=i=>e.sendDebugData.email=i)},null,8,["modelValue"]),n(p,{title:"openWB Seriennummer",required:"",modelValue:e.sendDebugData.serialNumber,"onUpdate:modelValue":o[1]||(o[1]=i=>e.sendDebugData.serialNumber=i)},{help:s(()=>[t(" Die Seriennummer der openWB finden Sie außen am Gehäuse - bei Älteren innen im Gehäuse. Sie können uns aber auch eine Bestellnummer oder Rechnungsnummer übermitteln. Das Gehäuse muss nicht extra geöffnet werden! ")]),_:1},8,["modelValue"]),n(m,{title:"Verwendete Komponenten",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.installedComponents,"onUpdate:modelValue":o[2]||(o[2]=i=>e.sendDebugData.installedComponents=i)},{help:s(()=>[t(" Geben Sie hier möglichst detailliert an, welche Anlagenkomponenten (EVU, PV, Speicher) angebunden sind. ")]),_:1},8,["modelValue"]),n(m,{title:"Fahrzeuge",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.vehicles,"onUpdate:modelValue":o[3]||(o[3]=i=>e.sendDebugData.vehicles=i)},{help:s(()=>[t(" Geben Sie hier an, welche Fahrzeuge geladen werden (Hersteller, Modell, Baujahr). ")]),_:1},8,["modelValue"]),n(m,{title:"Problembeschreibung",required:"",minlength:"20",maxlength:"500",modelValue:e.sendDebugData.message,"onUpdate:modelValue":o[4]||(o[4]=i=>e.sendDebugData.message=i)},null,8,["modelValue"])])):g("",!0)]),_:2},[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:s(()=>[l("div",E,[n(S,{class:F(["col-4",e.enableSendDebugButton?"btn-success":"btn-outline-success"]),disabled:!e.enableSendDebugButton,onButtonClicked:_.sendDebugMessage},{default:s(()=>[t(" Absenden ")]),_:1},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024),e.enableSendDebugButton?g("",!0):(r(),h(u,{key:0,subtype:"success"},{default:s(()=>[t(" Die Daten für den Fehlerbericht werden im Hintergrund zusammengestellt. Sie können diese Seite jetzt verlassen. "),n(D,{"fixed-width":"",icon:["fas","check"]})]),_:1}))]))])])}const J=v(x,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Support.vue"]]);export{J as default}; +import{l as w,g as V,F as y}from"./vendor-fortawesome-9fdc06a9.js";import{C as B}from"./index-720fb9ac.js";import{_ as v,q as a,k as r,l as c,u as l,z as h,M as s,B as n,a3 as z,A as g,x as t,p as F}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";w.add(V);const x={name:"OpenwbSupport",mixins:[B],emits:["sendCommand"],components:{FontAwesomeIcon:y},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged"],sendDebugData:{email:"",serialNumber:"",installedComponents:"",vehicles:"",message:""},enableSendDebugButton:!0}},methods:{sendDebugMessage(){if(document.forms.supportForm.reportValidity())this.$emit("sendCommand",{command:"sendDebug",data:this.sendDebugData}),this.enableSendDebugButton=!1;else{console.warn("form invalid");return}}}},C={class:"support"},q={name:"supportForm"},A={key:1},W={key:0},N=l("li",null,' Vergewissern Sie sich, dass mindestens die aktuelle "Release" Version installiert ist. ',-1),M=l("li",null," Stellen Sie beim Absenden des Berichtes die Fehlerkonditionen her. Lädt ein Fahrzeug nicht, sollte es angeschlossen und nicht voll geladen sein. Ist PV laden betroffen, sollte die Sonne auch scheinen. Der Systembericht muss dann versendet werden, wenn der Fehler aktuell vorliegt. ",-1),L=l("li",null," Stellen Sie sicher, dass der Lademodus korrekt gewählt ist und im Falle von nicht ladenden Fahrzeugen, dass der Ladepunkt auch entsperrt wurde. ",-1),U=l("li",null," Das Auslesen der Systemkonfiguration erfolgt direkt nach den Klick auf Absenden und kann einige Zeit in Anspruch nehmen. Sie erhalten ca. 15 bis 30 Minuten nach Versand des Systemberichtes von uns automatisch eine E-Mail mit der Ticketnummer unter der die Anfrage bei uns registriert wurde. Wir melden uns bei ihnen. Bitte kontrollieren Sie daher immer auch den Spam Ordner auf eingehende Nachrichten. Erhalten Sie trotzdem keine Ticketnummer, ist das Versenden des Systemberichtes fehlgeschlagen. ",-1),E={class:"row justify-content-center"};function G(d,o,T,H,e,_){const b=a("router-link"),u=a("openwb-base-alert"),f=a("FontAwesomeIcon"),p=a("openwb-base-text-input"),m=a("openwb-base-textarea"),S=a("openwb-base-click-button"),k=a("openwb-base-card"),D=a("font-awesome-icon");return r(),c("div",C,[l("form",q,[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(r(),h(u,{key:0,subtype:"danger"},{default:s(()=>[t(" Sie müssen der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zustimmen, um einen Systembericht senden zu können. ")]),_:1})):(r(),c("div",A,[n(u,{subtype:"success"},{default:s(()=>[t(" Sie haben der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zugestimmt und können Systemberichte senden. ")]),_:1}),n(k,{title:"Systembericht"},z({default:s(()=>[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?(r(),c("div",W,[n(u,{subtype:"info"},{default:s(()=>[l("ul",null,[l("li",null,[t(" Lesen Sie den Hilfetext, der durch Klick auf das "),n(f,{icon:["far","question-circle"]}),t(" angezeigt wird. Nehmen Sie das Wiki zur Hilfe. ")]),N,M,L,U])]),_:1}),n(p,{title:"E-Mail",required:"",subtype:"email",modelValue:e.sendDebugData.email,"onUpdate:modelValue":o[0]||(o[0]=i=>e.sendDebugData.email=i)},null,8,["modelValue"]),n(p,{title:"openWB Seriennummer",required:"",modelValue:e.sendDebugData.serialNumber,"onUpdate:modelValue":o[1]||(o[1]=i=>e.sendDebugData.serialNumber=i)},{help:s(()=>[t(" Die Seriennummer der openWB finden Sie außen am Gehäuse - bei Älteren innen im Gehäuse. Sie können uns aber auch eine Bestellnummer oder Rechnungsnummer übermitteln. Das Gehäuse muss nicht extra geöffnet werden! ")]),_:1},8,["modelValue"]),n(m,{title:"Verwendete Komponenten",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.installedComponents,"onUpdate:modelValue":o[2]||(o[2]=i=>e.sendDebugData.installedComponents=i)},{help:s(()=>[t(" Geben Sie hier möglichst detailliert an, welche Anlagenkomponenten (EVU, PV, Speicher) angebunden sind. ")]),_:1},8,["modelValue"]),n(m,{title:"Fahrzeuge",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.vehicles,"onUpdate:modelValue":o[3]||(o[3]=i=>e.sendDebugData.vehicles=i)},{help:s(()=>[t(" Geben Sie hier an, welche Fahrzeuge geladen werden (Hersteller, Modell, Baujahr). ")]),_:1},8,["modelValue"]),n(m,{title:"Problembeschreibung",required:"",minlength:"20",maxlength:"500",modelValue:e.sendDebugData.message,"onUpdate:modelValue":o[4]||(o[4]=i=>e.sendDebugData.message=i)},null,8,["modelValue"])])):g("",!0)]),_:2},[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:s(()=>[l("div",E,[n(S,{class:F(["col-4",e.enableSendDebugButton?"btn-success":"btn-outline-success"]),disabled:!e.enableSendDebugButton,onButtonClicked:_.sendDebugMessage},{default:s(()=>[t(" Absenden ")]),_:1},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024),e.enableSendDebugButton?g("",!0):(r(),h(u,{key:0,subtype:"success"},{default:s(()=>[t(" Die Daten für den Fehlerbericht werden im Hintergrund zusammengestellt. Sie können diese Seite jetzt verlassen. "),n(D,{"fixed-width":"",icon:["fas","check"]})]),_:1}))]))])])}const J=v(x,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Support.vue"]]);export{J as default}; diff --git a/web/settings/assets/System-d1bd783a.js b/web/settings/assets/System-e5a75c6d.js similarity index 98% rename from web/settings/assets/System-d1bd783a.js rename to web/settings/assets/System-e5a75c6d.js index bfc4186050..672813bbe9 100644 --- a/web/settings/assets/System-d1bd783a.js +++ b/web/settings/assets/System-e5a75c6d.js @@ -1 +1 @@ -import{l as V,a8 as q,p as S,a7 as C,U as $,a9 as A,F as x}from"./vendor-fortawesome-9fdc06a9.js";import{C as U}from"./index-b8f06cb8.js";import{_ as z,q as c,k as g,l as y,B as s,M as o,u as a,A as k,x as d,p as v,z as E,I as F,J as j,y as T,R as I,S as D}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";V.add(q,S,C,$,A);const L={name:"OpenwbSystem",mixins:[U],emits:["sendCommand"],components:{FontAwesomeIcon:x},data(){return{mqttTopicsToSubscribe:["openWB/system/optionBackup","openWB/system/current_commit","openWB/system/current_branch_commit","openWB/system/current_missing_commits","openWB/system/available_branches","openWB/system/current_branch","openWB/system/version"],warningAcknowledged:!1,selectedTag:"*HEAD*"}},computed:{updateAvailable(){return this.$store.state.mqtt["openWB/system/current_branch_commit"]&&this.$store.state.mqtt["openWB/system/current_branch_commit"]!=this.$store.state.mqtt["openWB/system/current_commit"]},releaseChangeValid(){return this.$store.state.mqtt["openWB/system/current_branch"]in this.$store.state.mqtt["openWB/system/available_branches"]&&"tags"in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]]&&this.selectedTag in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]].tags}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getBranchGroups(){const t="Release",e="Beta",m="master",w=[t,e,m],p=(l,i)=>l.value==i.value?0:l.value==t?-1:i.value==t?1:l.value==e?-1:i.value==e?1:l.value==m?-1:i.value==m||l.value>i.value?1:l.value(I("data-v-059847f6"),t=t(),D(),t),N={class:"system"},O=f(()=>a("h2",null,"Achtung!",-1)),R=f(()=>a("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)),Z={key:0},P={name:"versionInfoForm"},G={class:"missing-commits"},J={class:"row justify-content-center"},H={class:"col-md-4 d-flex py-1 justify-content-center"},M={class:"col-md-4 d-flex py-1 justify-content-center"},K={name:"powerForm"},Q={class:"row justify-content-center"},X={class:"col-md-4 d-flex py-1 justify-content-center"},Y={class:"col-md-4 d-flex py-1 justify-content-center"},ee={name:"releaseChangeForm"},te=f(()=>a("br",null,null,-1)),se=f(()=>a("br",null,null,-1)),ne=f(()=>a("br",null,null,-1)),ae=f(()=>a("br",null,null,-1)),oe={class:"row justify-content-center"},re={class:"col-md-4 d-flex py-1 justify-content-center"};function le(t,e,m,w,p,r){const h=c("openwb-base-button-group-input"),u=c("openwb-base-alert"),l=c("openwb-base-text-input"),i=c("openwb-base-card"),b=c("font-awesome-icon"),_=c("openwb-base-click-button"),B=c("openwb-base-select-input");return g(),y("div",N,[s(u,{subtype:"danger"},{default:o(()=>[O,R,s(h,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=n=>this.warningAcknowledged=n)},null,8,["modelValue"])]),_:1}),p.warningAcknowledged?(g(),y("div",Z,[a("form",P,[s(i,{title:"Versions-Informationen / Aktualisierung",subtype:"success",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",J,[a("div",H,[s(_,{class:"btn-info",onButtonClicked:e[5]||(e[5]=n=>r.sendSystemCommand("systemFetchVersions"))},{default:o(()=>[d(" Informationen aktualisieren "),s(b,{"fixed-width":"",icon:["fas","download"]})]),_:1})]),a("div",M,[s(_,{class:v(r.updateAvailable?"btn-success clickable":"btn-outline-success"),disabled:!r.updateAvailable,onButtonClicked:e[6]||(e[6]=n=>r.systemUpdate())},{default:o(()=>[d(" Update "),s(b,{"fixed-width":"",icon:["fas","arrow-alt-circle-up"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(l,{title:"Entwicklungszweig",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[1]||(e[1]=n=>t.$store.state.mqtt["openWB/system/current_branch"]=n)},null,8,["modelValue"]),s(l,{title:"Bezeichnung",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/version"],"onUpdate:modelValue":e[2]||(e[2]=n=>t.$store.state.mqtt["openWB/system/version"]=n)},null,8,["modelValue"]),s(l,{title:"installierte Version",readonly:"",class:v(r.updateAvailable?"text-danger":"text-success"),modelValue:t.$store.state.mqtt["openWB/system/current_commit"],"onUpdate:modelValue":e[3]||(e[3]=n=>t.$store.state.mqtt["openWB/system/current_commit"]=n)},null,8,["class","modelValue"]),s(l,{title:"aktuellste Version",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch_commit"],"onUpdate:modelValue":e[4]||(e[4]=n=>t.$store.state.mqtt["openWB/system/current_branch_commit"]=n)},null,8,["modelValue"]),r.updateAvailable?(g(),E(i,{key:0,title:"Änderungen",subtype:"info",collapsible:!0,collapsed:!0},{default:o(()=>[a("ul",G,[(g(!0),y(F,null,j(t.$store.state.mqtt["openWB/system/current_missing_commits"],(n,W)=>(g(),y("li",{key:W},T(n),1))),128))])]),_:1})):k("",!0),s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Update wird die Ladestation direkt neu gestartet! Es werden alle eventuell vorhandenen lokalen Änderungen am Programmcode mit dem Update verworfen! ")]),_:1})]),_:1})]),a("form",K,[s(i,{title:"Betrieb",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",Q,[a("div",X,[s(_,{class:"btn-warning",onButtonClicked:e[7]||(e[7]=n=>r.sendSystemCommand("systemReboot"))},{default:o(()=>[d(" Neustart "),s(b,{"fixed-width":"",icon:["fas","undo"]})]),_:1})]),a("div",Y,[s(_,{class:"btn-danger",onButtonClicked:e[8]||(e[8]=n=>r.sendSystemCommand("systemShutdown"))},{default:o(()=>[d(" Ausschalten "),s(b,{"fixed-width":"",icon:["fas","power-off"]})]),_:1})])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Wenn die Ladestation ausgeschaltet wird, muss sie komplett spannungsfrei geschaltet werden. Erst beim erneuten Zuschalten der Spannung fährt das System wieder hoch. ")]),_:1})]),_:1})]),a("form",ee,[s(i,{title:"Entwicklungszweig",subtype:"danger",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",oe,[a("div",re,[s(_,{class:v(r.releaseChangeValid?"btn-danger clickable":"btn-outline-danger"),disabled:!r.releaseChangeValid,onButtonClicked:e[11]||(e[11]=n=>r.switchBranch())},{default:o(()=>[s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]}),d(" Branch und Tag wechseln "),s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Wechsel wird die Ladestation direkt neu gestartet! Es werden alle lokalen Änderungen mit dem Wechsel verworfen! ")]),_:1}),s(u,{subtype:"warning"},{default:o(()=>[d(" Bevor auf einen neuen Entwicklungszweig gewechselt wird sollte immer eine Sicherung erstellt werden! Es kann zwar wieder auf eine ältere Version gewechselt werden, jedoch ist nicht sichergestellt, dass es dabei keine Probleme gibt. Gerade wenn das Datenformat in der neuen Version angepasst wurde, wird eine ältere damit Fehler produzieren."),te,d(' Für den normalen Betrieb wird der Zweig "Release" empfohlen. Der Softwarestand wurde ausgiebig getestet, sodass ein Fehlverhalten relativ unwahrscheinlich ist.'),se,d(' Der "Beta" Zweig beinhaltet Vorabversionen, bei denen die Entwicklung soweit abgeschlossen ist. Die enthaltenen Anpassungen wurden rudimentär getestet, können aber durchaus noch Fehler enthalten.'),ne,d(' Die aktuelle Softwareentwicklung findet im Zweig "master" statt. Die enthaltenen Anpassungen sind teilweise noch nicht getestet und enthalten potentiell Fehler.'),ae,d(' Einträge, die mit "feature" beginnen, sind experimentelle Entwicklungszweige, die nicht für den allgemeinen Gebrauch gedacht sind. ')]),_:1}),s(B,{title:"Entwicklungszweig",groups:r.getBranchGroups(),"model-value":t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[9]||(e[9]=n=>t.updateState("openWB/system/current_branch",n))},null,8,["groups","model-value"]),s(B,{title:"Tag",options:r.getBranchTagOptions(),modelValue:p.selectedTag,"onUpdate:modelValue":e[10]||(e[10]=n=>p.selectedTag=n)},null,8,["options","modelValue"])]),_:1})])])):k("",!0)])}const be=z(L,[["render",le],["__scopeId","data-v-059847f6"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/System.vue"]]);export{be as default}; +import{l as V,a8 as q,p as S,a7 as C,U as $,a9 as A,F as x}from"./vendor-fortawesome-9fdc06a9.js";import{C as U}from"./index-720fb9ac.js";import{_ as z,q as c,k as g,l as y,B as s,M as o,u as a,A as k,x as d,p as v,z as E,I as F,J as j,y as T,R as I,S as D}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";V.add(q,S,C,$,A);const L={name:"OpenwbSystem",mixins:[U],emits:["sendCommand"],components:{FontAwesomeIcon:x},data(){return{mqttTopicsToSubscribe:["openWB/system/optionBackup","openWB/system/current_commit","openWB/system/current_branch_commit","openWB/system/current_missing_commits","openWB/system/available_branches","openWB/system/current_branch","openWB/system/version"],warningAcknowledged:!1,selectedTag:"*HEAD*"}},computed:{updateAvailable(){return this.$store.state.mqtt["openWB/system/current_branch_commit"]&&this.$store.state.mqtt["openWB/system/current_branch_commit"]!=this.$store.state.mqtt["openWB/system/current_commit"]},releaseChangeValid(){return this.$store.state.mqtt["openWB/system/current_branch"]in this.$store.state.mqtt["openWB/system/available_branches"]&&"tags"in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]]&&this.selectedTag in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]].tags}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getBranchGroups(){const t="Release",e="Beta",m="master",w=[t,e,m],p=(l,i)=>l.value==i.value?0:l.value==t?-1:i.value==t?1:l.value==e?-1:i.value==e?1:l.value==m?-1:i.value==m||l.value>i.value?1:l.value(I("data-v-059847f6"),t=t(),D(),t),N={class:"system"},O=f(()=>a("h2",null,"Achtung!",-1)),R=f(()=>a("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)),Z={key:0},P={name:"versionInfoForm"},G={class:"missing-commits"},J={class:"row justify-content-center"},H={class:"col-md-4 d-flex py-1 justify-content-center"},M={class:"col-md-4 d-flex py-1 justify-content-center"},K={name:"powerForm"},Q={class:"row justify-content-center"},X={class:"col-md-4 d-flex py-1 justify-content-center"},Y={class:"col-md-4 d-flex py-1 justify-content-center"},ee={name:"releaseChangeForm"},te=f(()=>a("br",null,null,-1)),se=f(()=>a("br",null,null,-1)),ne=f(()=>a("br",null,null,-1)),ae=f(()=>a("br",null,null,-1)),oe={class:"row justify-content-center"},re={class:"col-md-4 d-flex py-1 justify-content-center"};function le(t,e,m,w,p,r){const h=c("openwb-base-button-group-input"),u=c("openwb-base-alert"),l=c("openwb-base-text-input"),i=c("openwb-base-card"),b=c("font-awesome-icon"),_=c("openwb-base-click-button"),B=c("openwb-base-select-input");return g(),y("div",N,[s(u,{subtype:"danger"},{default:o(()=>[O,R,s(h,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=n=>this.warningAcknowledged=n)},null,8,["modelValue"])]),_:1}),p.warningAcknowledged?(g(),y("div",Z,[a("form",P,[s(i,{title:"Versions-Informationen / Aktualisierung",subtype:"success",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",J,[a("div",H,[s(_,{class:"btn-info",onButtonClicked:e[5]||(e[5]=n=>r.sendSystemCommand("systemFetchVersions"))},{default:o(()=>[d(" Informationen aktualisieren "),s(b,{"fixed-width":"",icon:["fas","download"]})]),_:1})]),a("div",M,[s(_,{class:v(r.updateAvailable?"btn-success clickable":"btn-outline-success"),disabled:!r.updateAvailable,onButtonClicked:e[6]||(e[6]=n=>r.systemUpdate())},{default:o(()=>[d(" Update "),s(b,{"fixed-width":"",icon:["fas","arrow-alt-circle-up"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(l,{title:"Entwicklungszweig",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[1]||(e[1]=n=>t.$store.state.mqtt["openWB/system/current_branch"]=n)},null,8,["modelValue"]),s(l,{title:"Bezeichnung",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/version"],"onUpdate:modelValue":e[2]||(e[2]=n=>t.$store.state.mqtt["openWB/system/version"]=n)},null,8,["modelValue"]),s(l,{title:"installierte Version",readonly:"",class:v(r.updateAvailable?"text-danger":"text-success"),modelValue:t.$store.state.mqtt["openWB/system/current_commit"],"onUpdate:modelValue":e[3]||(e[3]=n=>t.$store.state.mqtt["openWB/system/current_commit"]=n)},null,8,["class","modelValue"]),s(l,{title:"aktuellste Version",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch_commit"],"onUpdate:modelValue":e[4]||(e[4]=n=>t.$store.state.mqtt["openWB/system/current_branch_commit"]=n)},null,8,["modelValue"]),r.updateAvailable?(g(),E(i,{key:0,title:"Änderungen",subtype:"info",collapsible:!0,collapsed:!0},{default:o(()=>[a("ul",G,[(g(!0),y(F,null,j(t.$store.state.mqtt["openWB/system/current_missing_commits"],(n,W)=>(g(),y("li",{key:W},T(n),1))),128))])]),_:1})):k("",!0),s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Update wird die Ladestation direkt neu gestartet! Es werden alle eventuell vorhandenen lokalen Änderungen am Programmcode mit dem Update verworfen! ")]),_:1})]),_:1})]),a("form",K,[s(i,{title:"Betrieb",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",Q,[a("div",X,[s(_,{class:"btn-warning",onButtonClicked:e[7]||(e[7]=n=>r.sendSystemCommand("systemReboot"))},{default:o(()=>[d(" Neustart "),s(b,{"fixed-width":"",icon:["fas","undo"]})]),_:1})]),a("div",Y,[s(_,{class:"btn-danger",onButtonClicked:e[8]||(e[8]=n=>r.sendSystemCommand("systemShutdown"))},{default:o(()=>[d(" Ausschalten "),s(b,{"fixed-width":"",icon:["fas","power-off"]})]),_:1})])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Wenn die Ladestation ausgeschaltet wird, muss sie komplett spannungsfrei geschaltet werden. Erst beim erneuten Zuschalten der Spannung fährt das System wieder hoch. ")]),_:1})]),_:1})]),a("form",ee,[s(i,{title:"Entwicklungszweig",subtype:"danger",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",oe,[a("div",re,[s(_,{class:v(r.releaseChangeValid?"btn-danger clickable":"btn-outline-danger"),disabled:!r.releaseChangeValid,onButtonClicked:e[11]||(e[11]=n=>r.switchBranch())},{default:o(()=>[s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]}),d(" Branch und Tag wechseln "),s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Wechsel wird die Ladestation direkt neu gestartet! Es werden alle lokalen Änderungen mit dem Wechsel verworfen! ")]),_:1}),s(u,{subtype:"warning"},{default:o(()=>[d(" Bevor auf einen neuen Entwicklungszweig gewechselt wird sollte immer eine Sicherung erstellt werden! Es kann zwar wieder auf eine ältere Version gewechselt werden, jedoch ist nicht sichergestellt, dass es dabei keine Probleme gibt. Gerade wenn das Datenformat in der neuen Version angepasst wurde, wird eine ältere damit Fehler produzieren."),te,d(' Für den normalen Betrieb wird der Zweig "Release" empfohlen. Der Softwarestand wurde ausgiebig getestet, sodass ein Fehlverhalten relativ unwahrscheinlich ist.'),se,d(' Der "Beta" Zweig beinhaltet Vorabversionen, bei denen die Entwicklung soweit abgeschlossen ist. Die enthaltenen Anpassungen wurden rudimentär getestet, können aber durchaus noch Fehler enthalten.'),ne,d(' Die aktuelle Softwareentwicklung findet im Zweig "master" statt. Die enthaltenen Anpassungen sind teilweise noch nicht getestet und enthalten potentiell Fehler.'),ae,d(' Einträge, die mit "feature" beginnen, sind experimentelle Entwicklungszweige, die nicht für den allgemeinen Gebrauch gedacht sind. ')]),_:1}),s(B,{title:"Entwicklungszweig",groups:r.getBranchGroups(),"model-value":t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[9]||(e[9]=n=>t.updateState("openWB/system/current_branch",n))},null,8,["groups","model-value"]),s(B,{title:"Tag",options:r.getBranchTagOptions(),modelValue:p.selectedTag,"onUpdate:modelValue":e[10]||(e[10]=n=>p.selectedTag=n)},null,8,["options","modelValue"])]),_:1})])])):k("",!0)])}const be=z(L,[["render",le],["__scopeId","data-v-059847f6"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/System.vue"]]);export{be as default}; diff --git a/web/settings/assets/TestingStore-73de07d0.js b/web/settings/assets/TestingStore-f5d92bd1.js similarity index 99% rename from web/settings/assets/TestingStore-73de07d0.js rename to web/settings/assets/TestingStore-f5d92bd1.js index f5f209c0ee..21fd13a4d3 100644 --- a/web/settings/assets/TestingStore-73de07d0.js +++ b/web/settings/assets/TestingStore-f5d92bd1.js @@ -1 +1 @@ -import{C as V}from"./index-b8f06cb8.js";import{S as U}from"./OpenwbSortableList-e04fc271.js";import{_ as y,q as s,k as E,l as k,u,B as o,M as a,x as n,y as v}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const T={name:"OpenwbTestingStore",mixins:[V],components:{SortableList:U},data(){return{mqttTopicsToSubscribe:[]}}},_={class:"testingStore"},N={name:"testingStoreForm"},z=u("hr",null,null,-1),O=u("br",null,null,-1),Z=u("br",null,null,-1),j=u("hr",null,null,-1),B=u("hr",null,null,-1),D=u("hr",null,null,-1),J=u("hr",null,null,-1),L=u("span",{style:{"text-decoration":"underline","font-style":"italic"}},[n(" Styled "),u("span",{style:{"font-weight":"initial"}},"Header"),n(" Slot ")],-1);function W(e,t,G,R,H,A){const p=s("openwb-base-text-input"),m=s("openwb-base-number-input"),g=s("openwb-base-textarea"),i=s("openwb-base-card"),r=s("openwb-base-range-input"),b=s("openwb-base-select-input"),f=s("openwb-base-button-group-input"),S=s("openwb-base-checkbox-input"),h=s("openwb-base-array-input"),x=s("openwb-base-heading"),d=s("openwb-base-alert"),w=s("sortable-list"),$=s("openwb-base-submit-buttons");return E(),k("div",_,[u("form",N,[o(i,{title:"Einfache Eingabefelder"},{default:a(()=>[o(p,{title:"1. Text","model-value":e.$store.state.examples.text1,"onUpdate:modelValue":t[0]||(t[0]=l=>e.updateState("text1",l))},{help:a(()=>[n("Einfacher Text")]),_:1},8,["model-value"]),o(p,{title:"2. Text (E-Mail)",subtype:"email","model-value":e.$store.state.examples.text2,"onUpdate:modelValue":t[1]||(t[1]=l=>e.updateState("text2",l))},{help:a(()=>[n("Eingabefeld für E-Mailadressen")]),_:1},8,["model-value"]),o(p,{title:"3. Text (Host)",subtype:"host","model-value":e.$store.state.examples.text3,"onUpdate:modelValue":t[2]||(t[2]=l=>e.updateState("text3",l))},{help:a(()=>[n(" Eingabefeld für Hosts (IP oder Namen) ")]),_:1},8,["model-value"]),o(p,{title:"4. Text (URL)",subtype:"url","model-value":e.$store.state.examples.text4,"onUpdate:modelValue":t[3]||(t[3]=l=>e.updateState("text4",l))},{help:a(()=>[n("Eingabefeld für URLs")]),_:1},8,["model-value"]),o(p,{title:"5. Text (User)",subtype:"user","model-value":e.$store.state.examples.text5,"onUpdate:modelValue":t[4]||(t[4]=l=>e.updateState("text5",l))},{help:a(()=>[n("Eingabefeld für Benutzernamen")]),_:1},8,["model-value"]),o(p,{title:"6. Text (Time)",subtype:"time","model-value":e.$store.state.examples.text6,"onUpdate:modelValue":t[5]||(t[5]=l=>e.updateState("text6",l))},{help:a(()=>[n("Eingabefeld für Zeiten")]),_:1},8,["model-value"]),o(p,{title:"7. Text (Date)",subtype:"date","model-value":e.$store.state.examples.text7,"onUpdate:modelValue":t[6]||(t[6]=l=>e.updateState("text7",l))},{help:a(()=>[n("Eingabefeld für ein Datum")]),_:1},8,["model-value"]),z,o(m,{title:"1. Zahl",min:5,max:9,step:2,unit:"kW","model-value":e.$store.state.examples.number1,"onUpdate:modelValue":t[7]||(t[7]=l=>e.updateState("number1",l))},{help:a(()=>[n("Zahl mit Einheit")]),_:1},8,["model-value"]),o(m,{title:"2. Zahl",min:10,max:32,step:2,"model-value":e.$store.state.examples.number2,"onUpdate:modelValue":t[8]||(t[8]=l=>e.updateState("number2",l))},{help:a(()=>[n("Eingabefeld für Zahlen ohne Einheit")]),_:1},8,["model-value"]),o(m,{title:"3. Zahl",min:-30,max:30,step:.01,precision:2,unit:"ct/kWh","model-value":e.$store.state.examples.number3*1e5,"onUpdate:modelValue":t[9]||(t[9]=l=>e.updateState("number3",parseFloat((l/1e5).toFixed(7))))},{help:a(()=>[n(" Eingabefeld für Zahlen mit Einheit und Nachkommastellen"),O,n(' Zusätzlich zum optionalen Parameter "step" sollte immer auch "precision" gesetzt sein, um unvermeidbare Darstellungsfehler zu vermeiden.'),Z,n(" Wenn der dargestellte Wert eine andere Genauigkeit/Einheit als der Wert im Backend hat (z.B. €/Wh <-> ct/kWh), dann ist bei der Umrechnung darauf zu achten, dass es nicht erneut zu Ungenauigkeiten bei Dezimalzahlen kommt. ")]),_:1},8,["model-value"]),o(p,{title:"1. Passwort",subtype:"password","model-value":e.$store.state.examples.password1,"onUpdate:modelValue":t[10]||(t[10]=l=>e.updateState("password1",l))},{help:a(()=>[n(" Das Passwort kann per Klick auf das Auge angezeigt werden. ")]),_:1},8,["model-value"]),j,o(g,{title:"1. Textarea",maxlength:"50","model-value":e.$store.state.examples.textarea1,"onUpdate:modelValue":t[11]||(t[11]=l=>e.updateState("textarea1",l))},{help:a(()=>[n(" Textarea mit maximaler Länge von 50 Zeichen. ")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Spezielle Elemente"},{default:a(()=>[o(r,{title:"1. Range",min:6,max:32,step:1,unit:"A","model-value":e.$store.state.examples.range1,"onUpdate:modelValue":t[12]||(t[12]=l=>e.updateState("range1",l))},{help:a(()=>[n("Range ohne spezielle Labels")]),_:1},8,["model-value"]),o(r,{title:"2. Range",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":e.$store.state.examples.range2,"onUpdate:modelValue":t[13]||(t[13]=l=>e.updateState("range2",l))},{help:a(()=>[n("Range mit speziellen Labels")]),_:1},8,["model-value"]),B,o(b,{title:"1. Select",notSelected:"Bitte auswählen",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}],"model-value":e.$store.state.examples.select1,"onUpdate:modelValue":t[14]||(t[14]=l=>e.updateState("select1",l))},{help:a(()=>[n("Select mit einfachen Optionen")]),_:1},8,["model-value"]),o(b,{title:"2. Select",groups:[{label:"Gruppe 1 (Number)",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}]},{label:"Gruppe 2 (String)",options:[{value:"three",text:"Drei"},{value:"four",text:"Vier"}]}],"model-value":e.$store.state.examples.select2,"onUpdate:modelValue":t[15]||(t[15]=l=>e.updateState("select2",l))},{help:a(()=>[n("Select mit Gruppen")]),_:1},8,["groups","model-value"]),D,o(f,{title:"1. Button-Group",buttons:[{buttonValue:1,text:"Eins"},{buttonValue:2,text:"Zwei"}],"model-value":e.$store.state.examples.buttonGroup1,"onUpdate:modelValue":t[16]||(t[16]=l=>e.updateState("buttonGroup1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"]),J,o(S,{title:"1. Checkbox","model-value":e.$store.state.examples.checkbox1,"onUpdate:modelValue":t[17]||(t[17]=l=>e.updateState("checkbox1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"JSON Gruppe"},{default:a(()=>[o(p,{title:"JSON 1",subtype:"json","model-value":e.$store.state.examples.json1,"onUpdate:modelValue":t[18]||(t[18]=l=>e.updateState("json1",l))},{help:a(()=>[n("JSON Objekt")]),_:1},8,["model-value"]),o(p,{title:"JSON 1 Text","model-value":e.$store.state.examples.json1.text,"onUpdate:modelValue":t[19]||(t[19]=l=>e.updateState("json1",l,"text"))},{help:a(()=>[n("Text im JSON Objekt")]),_:1},8,["model-value"]),o(m,{title:"JSON 1 Zahl","model-value":e.$store.state.examples.json1.number,"onUpdate:modelValue":t[20]||(t[20]=l=>e.updateState("json1",l,"number"))},{help:a(()=>[n("Zahl im JSON Objekt")]),_:1},8,["model-value"]),o(h,{title:"Tag Array","model-value":e.$store.state.examples.tags,"onUpdate:modelValue":t[21]||(t[21]=l=>e.updateState("tags",l))},{help:a(()=>[u("pre",null,v(JSON.stringify(e.$store.state.examples.tags,void 0,2)),1)]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Meldungen"},{header:a(()=>[L]),default:a(()=>[o(x,null,{help:a(()=>[n(" Es sind auch Hilfetexte im #help Slot möglich. ")]),default:a(()=>[n(" Das ist eine Überschrift ")]),_:1}),o(d,null,{default:a(()=>[n(" Meldung ohne speziellen Subtype. ")]),_:1}),o(d,{subtype:"info"},{default:a(()=>[n("Infomeldung")]),_:1}),o(d,{subtype:"warning"},{default:a(()=>[n("Warnmeldung")]),_:1}),o(d,{subtype:"danger"},{default:a(()=>[n(" Fehlermeldung ")]),_:1})]),_:1}),o(i,{title:"Listen"},{default:a(()=>[o(w,{title:"Liste 1",modelValue:e.$store.state.examples.hierarchy1,"onUpdate:modelValue":t[22]||(t[22]=l=>e.$store.state.examples.hierarchy1=l),labels:e.$store.state.examples.hierarchy1Labels},{help:a(()=>[u("pre",null,v(JSON.stringify(e.$store.state.examples.hierarchy1,void 0,2)),1)]),_:1},8,["modelValue","labels"])]),_:1}),o($,{formName:"testingStoreForm",onSave:t[23]||(t[23]=l=>e.$emit("save")),onReset:t[24]||(t[24]=l=>e.$emit("reset")),onDefaults:t[25]||(t[25]=l=>e.$emit("defaults"))})])])}const X=y(T,[["render",W],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TestingStore.vue"]]);export{X as default}; +import{C as V}from"./index-720fb9ac.js";import{S as U}from"./OpenwbSortableList-e04fc271.js";import{_ as y,q as s,k as E,l as k,u,B as o,M as a,x as n,y as v}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const T={name:"OpenwbTestingStore",mixins:[V],components:{SortableList:U},data(){return{mqttTopicsToSubscribe:[]}}},_={class:"testingStore"},N={name:"testingStoreForm"},z=u("hr",null,null,-1),O=u("br",null,null,-1),Z=u("br",null,null,-1),j=u("hr",null,null,-1),B=u("hr",null,null,-1),D=u("hr",null,null,-1),J=u("hr",null,null,-1),L=u("span",{style:{"text-decoration":"underline","font-style":"italic"}},[n(" Styled "),u("span",{style:{"font-weight":"initial"}},"Header"),n(" Slot ")],-1);function W(e,t,G,R,H,A){const p=s("openwb-base-text-input"),m=s("openwb-base-number-input"),g=s("openwb-base-textarea"),i=s("openwb-base-card"),r=s("openwb-base-range-input"),b=s("openwb-base-select-input"),f=s("openwb-base-button-group-input"),S=s("openwb-base-checkbox-input"),h=s("openwb-base-array-input"),x=s("openwb-base-heading"),d=s("openwb-base-alert"),w=s("sortable-list"),$=s("openwb-base-submit-buttons");return E(),k("div",_,[u("form",N,[o(i,{title:"Einfache Eingabefelder"},{default:a(()=>[o(p,{title:"1. Text","model-value":e.$store.state.examples.text1,"onUpdate:modelValue":t[0]||(t[0]=l=>e.updateState("text1",l))},{help:a(()=>[n("Einfacher Text")]),_:1},8,["model-value"]),o(p,{title:"2. Text (E-Mail)",subtype:"email","model-value":e.$store.state.examples.text2,"onUpdate:modelValue":t[1]||(t[1]=l=>e.updateState("text2",l))},{help:a(()=>[n("Eingabefeld für E-Mailadressen")]),_:1},8,["model-value"]),o(p,{title:"3. Text (Host)",subtype:"host","model-value":e.$store.state.examples.text3,"onUpdate:modelValue":t[2]||(t[2]=l=>e.updateState("text3",l))},{help:a(()=>[n(" Eingabefeld für Hosts (IP oder Namen) ")]),_:1},8,["model-value"]),o(p,{title:"4. Text (URL)",subtype:"url","model-value":e.$store.state.examples.text4,"onUpdate:modelValue":t[3]||(t[3]=l=>e.updateState("text4",l))},{help:a(()=>[n("Eingabefeld für URLs")]),_:1},8,["model-value"]),o(p,{title:"5. Text (User)",subtype:"user","model-value":e.$store.state.examples.text5,"onUpdate:modelValue":t[4]||(t[4]=l=>e.updateState("text5",l))},{help:a(()=>[n("Eingabefeld für Benutzernamen")]),_:1},8,["model-value"]),o(p,{title:"6. Text (Time)",subtype:"time","model-value":e.$store.state.examples.text6,"onUpdate:modelValue":t[5]||(t[5]=l=>e.updateState("text6",l))},{help:a(()=>[n("Eingabefeld für Zeiten")]),_:1},8,["model-value"]),o(p,{title:"7. Text (Date)",subtype:"date","model-value":e.$store.state.examples.text7,"onUpdate:modelValue":t[6]||(t[6]=l=>e.updateState("text7",l))},{help:a(()=>[n("Eingabefeld für ein Datum")]),_:1},8,["model-value"]),z,o(m,{title:"1. Zahl",min:5,max:9,step:2,unit:"kW","model-value":e.$store.state.examples.number1,"onUpdate:modelValue":t[7]||(t[7]=l=>e.updateState("number1",l))},{help:a(()=>[n("Zahl mit Einheit")]),_:1},8,["model-value"]),o(m,{title:"2. Zahl",min:10,max:32,step:2,"model-value":e.$store.state.examples.number2,"onUpdate:modelValue":t[8]||(t[8]=l=>e.updateState("number2",l))},{help:a(()=>[n("Eingabefeld für Zahlen ohne Einheit")]),_:1},8,["model-value"]),o(m,{title:"3. Zahl",min:-30,max:30,step:.01,precision:2,unit:"ct/kWh","model-value":e.$store.state.examples.number3*1e5,"onUpdate:modelValue":t[9]||(t[9]=l=>e.updateState("number3",parseFloat((l/1e5).toFixed(7))))},{help:a(()=>[n(" Eingabefeld für Zahlen mit Einheit und Nachkommastellen"),O,n(' Zusätzlich zum optionalen Parameter "step" sollte immer auch "precision" gesetzt sein, um unvermeidbare Darstellungsfehler zu vermeiden.'),Z,n(" Wenn der dargestellte Wert eine andere Genauigkeit/Einheit als der Wert im Backend hat (z.B. €/Wh <-> ct/kWh), dann ist bei der Umrechnung darauf zu achten, dass es nicht erneut zu Ungenauigkeiten bei Dezimalzahlen kommt. ")]),_:1},8,["model-value"]),o(p,{title:"1. Passwort",subtype:"password","model-value":e.$store.state.examples.password1,"onUpdate:modelValue":t[10]||(t[10]=l=>e.updateState("password1",l))},{help:a(()=>[n(" Das Passwort kann per Klick auf das Auge angezeigt werden. ")]),_:1},8,["model-value"]),j,o(g,{title:"1. Textarea",maxlength:"50","model-value":e.$store.state.examples.textarea1,"onUpdate:modelValue":t[11]||(t[11]=l=>e.updateState("textarea1",l))},{help:a(()=>[n(" Textarea mit maximaler Länge von 50 Zeichen. ")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Spezielle Elemente"},{default:a(()=>[o(r,{title:"1. Range",min:6,max:32,step:1,unit:"A","model-value":e.$store.state.examples.range1,"onUpdate:modelValue":t[12]||(t[12]=l=>e.updateState("range1",l))},{help:a(()=>[n("Range ohne spezielle Labels")]),_:1},8,["model-value"]),o(r,{title:"2. Range",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":e.$store.state.examples.range2,"onUpdate:modelValue":t[13]||(t[13]=l=>e.updateState("range2",l))},{help:a(()=>[n("Range mit speziellen Labels")]),_:1},8,["model-value"]),B,o(b,{title:"1. Select",notSelected:"Bitte auswählen",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}],"model-value":e.$store.state.examples.select1,"onUpdate:modelValue":t[14]||(t[14]=l=>e.updateState("select1",l))},{help:a(()=>[n("Select mit einfachen Optionen")]),_:1},8,["model-value"]),o(b,{title:"2. Select",groups:[{label:"Gruppe 1 (Number)",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}]},{label:"Gruppe 2 (String)",options:[{value:"three",text:"Drei"},{value:"four",text:"Vier"}]}],"model-value":e.$store.state.examples.select2,"onUpdate:modelValue":t[15]||(t[15]=l=>e.updateState("select2",l))},{help:a(()=>[n("Select mit Gruppen")]),_:1},8,["groups","model-value"]),D,o(f,{title:"1. Button-Group",buttons:[{buttonValue:1,text:"Eins"},{buttonValue:2,text:"Zwei"}],"model-value":e.$store.state.examples.buttonGroup1,"onUpdate:modelValue":t[16]||(t[16]=l=>e.updateState("buttonGroup1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"]),J,o(S,{title:"1. Checkbox","model-value":e.$store.state.examples.checkbox1,"onUpdate:modelValue":t[17]||(t[17]=l=>e.updateState("checkbox1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"JSON Gruppe"},{default:a(()=>[o(p,{title:"JSON 1",subtype:"json","model-value":e.$store.state.examples.json1,"onUpdate:modelValue":t[18]||(t[18]=l=>e.updateState("json1",l))},{help:a(()=>[n("JSON Objekt")]),_:1},8,["model-value"]),o(p,{title:"JSON 1 Text","model-value":e.$store.state.examples.json1.text,"onUpdate:modelValue":t[19]||(t[19]=l=>e.updateState("json1",l,"text"))},{help:a(()=>[n("Text im JSON Objekt")]),_:1},8,["model-value"]),o(m,{title:"JSON 1 Zahl","model-value":e.$store.state.examples.json1.number,"onUpdate:modelValue":t[20]||(t[20]=l=>e.updateState("json1",l,"number"))},{help:a(()=>[n("Zahl im JSON Objekt")]),_:1},8,["model-value"]),o(h,{title:"Tag Array","model-value":e.$store.state.examples.tags,"onUpdate:modelValue":t[21]||(t[21]=l=>e.updateState("tags",l))},{help:a(()=>[u("pre",null,v(JSON.stringify(e.$store.state.examples.tags,void 0,2)),1)]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Meldungen"},{header:a(()=>[L]),default:a(()=>[o(x,null,{help:a(()=>[n(" Es sind auch Hilfetexte im #help Slot möglich. ")]),default:a(()=>[n(" Das ist eine Überschrift ")]),_:1}),o(d,null,{default:a(()=>[n(" Meldung ohne speziellen Subtype. ")]),_:1}),o(d,{subtype:"info"},{default:a(()=>[n("Infomeldung")]),_:1}),o(d,{subtype:"warning"},{default:a(()=>[n("Warnmeldung")]),_:1}),o(d,{subtype:"danger"},{default:a(()=>[n(" Fehlermeldung ")]),_:1})]),_:1}),o(i,{title:"Listen"},{default:a(()=>[o(w,{title:"Liste 1",modelValue:e.$store.state.examples.hierarchy1,"onUpdate:modelValue":t[22]||(t[22]=l=>e.$store.state.examples.hierarchy1=l),labels:e.$store.state.examples.hierarchy1Labels},{help:a(()=>[u("pre",null,v(JSON.stringify(e.$store.state.examples.hierarchy1,void 0,2)),1)]),_:1},8,["modelValue","labels"])]),_:1}),o($,{formName:"testingStoreForm",onSave:t[23]||(t[23]=l=>e.$emit("save")),onReset:t[24]||(t[24]=l=>e.$emit("reset")),onDefaults:t[25]||(t[25]=l=>e.$emit("defaults"))})])])}const X=y(T,[["render",W],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TestingStore.vue"]]);export{X as default}; diff --git a/web/settings/assets/TimeChargeConfig-5b14d231.js b/web/settings/assets/TimeChargeConfig-06feae4e.js similarity index 96% rename from web/settings/assets/TimeChargeConfig-5b14d231.js rename to web/settings/assets/TimeChargeConfig-06feae4e.js index 07d1e82554..9264915193 100644 --- a/web/settings/assets/TimeChargeConfig-5b14d231.js +++ b/web/settings/assets/TimeChargeConfig-06feae4e.js @@ -1 +1 @@ -import{C as l}from"./index-b8f06cb8.js";import{_,q as o,k as a,l as i,u as b,B as s,M as r,x as m}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const h={name:"OpenwbTimeChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/time_charging/phases_to_use"]}}},c={class:"timeChargeConfig"},f={name:"timeChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const u=o("openwb-base-alert"),p=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(u,{subtype:"info"},{default:r(()=>[m(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(p,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/time_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/time_charging/phases_to_use",n))},{help:r(()=>[m(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zeitladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"timeChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const M=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TimeChargeConfig.vue"]]);export{M as default}; +import{C as l}from"./index-720fb9ac.js";import{_,q as o,k as a,l as i,u as b,B as s,M as r,x as m}from"./vendor-f0f38b48.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const h={name:"OpenwbTimeChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/time_charging/phases_to_use"]}}},c={class:"timeChargeConfig"},f={name:"timeChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const u=o("openwb-base-alert"),p=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(u,{subtype:"info"},{default:r(()=>[m(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(p,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/time_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/time_charging/phases_to_use",n))},{help:r(()=>[m(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zeitladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"timeChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const M=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TimeChargeConfig.vue"]]);export{M as default}; diff --git a/web/settings/assets/VehicleConfig-dcfebc91.js b/web/settings/assets/VehicleConfig-4efd6c86.js similarity index 99% rename from web/settings/assets/VehicleConfig-dcfebc91.js rename to web/settings/assets/VehicleConfig-4efd6c86.js index 32d172a96b..03f754dfbb 100644 --- a/web/settings/assets/VehicleConfig-dcfebc91.js +++ b/web/settings/assets/VehicleConfig-4efd6c86.js @@ -1 +1 @@ -import{l as H,d as J,_ as j,A as G,$ as Q,a0 as X,z as Y,P as K,a2 as ee,R as te,a1 as ne,a3 as ae,F as le,I as ie}from"./vendor-fortawesome-9fdc06a9.js";import{_ as C,C as oe}from"./index-b8f06cb8.js";import{_ as de}from"./dynamic-import-helper-be004503.js";import{_ as x,q as k,k as r,l as h,z as f,M as a,x as l,y as V,B as n,u as s,a1 as re,a2 as ue,I as y,A as c,J as E,a3 as M,O as N,p as I,R as se,S as me}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const ce={name:"VehicleConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{default:void 0},vehicleType:String},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},he={class:"vehicle-fallback"},ge={key:1};function pe(e,o,g,q,w,m){const W=k("openwb-base-alert"),b=k("openwb-base-textarea");return r(),h("div",he,[Object.keys(g.configuration).length==0?(r(),f(W,{key:0,subtype:"info"},{default:a(()=>[l(' Der Fahrzeug-Typ "'+V(g.vehicleType)+'" bietet keine Einstellungen. ',1)]),_:1})):(r(),h("div",ge,[n(W,{subtype:"warning"},{default:a(()=>[l(' Es wurde keine Konfigurationsseite für den Fahrzeug-Typ "'+V(g.vehicleType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":g.configuration,"onUpdate:modelValue":o[0]||(o[0]=U=>m.updateConfiguration(U,"configuration"))},{help:a(()=>[l(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(W,{subtype:"info"},{default:a(()=>[s("pre",null,V(JSON.stringify(g.configuration,void 0,2)),1)]),_:1})]))])}const be=x(ce,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleConfigFallback.vue"]]),fe={name:"OpenwbVehicleProxy",emits:["update:configuration"],props:{vehicleId:{required:!0},vehicle:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading vehicle: ${this.vehicle.type}`),re({loader:()=>de(Object.assign({"./bmw/vehicle.vue":()=>C(()=>import("./vehicle-688baecd.js"),["assets/vehicle-688baecd.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./evcc/vehicle.vue":()=>C(()=>import("./vehicle-90519bcb.js"),["assets/vehicle-90519bcb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./evnotify/vehicle.vue":()=>C(()=>import("./vehicle-2eb1b3a8.js"),["assets/vehicle-2eb1b3a8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/vehicle.vue":()=>C(()=>import("./vehicle-13cc62fa.js"),["assets/vehicle-13cc62fa.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kia/vehicle.vue":()=>C(()=>import("./vehicle-6923685e.js"),["assets/vehicle-6923685e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./manual/vehicle.vue":()=>C(()=>import("./vehicle-f197ab7b.js"),["assets/vehicle-f197ab7b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mercedeseq/vehicle.vue":()=>C(()=>import("./vehicle-645f20ff.js"),["assets/vehicle-645f20ff.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/vehicle.vue":()=>C(()=>import("./vehicle-21c4a1de.js"),["assets/vehicle-21c4a1de.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./psa/vehicle.vue":()=>C(()=>import("./vehicle-fbd997cb.js"),["assets/vehicle-fbd997cb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./renault/vehicle.vue":()=>C(()=>import("./vehicle-6ad0ac99.js"),["assets/vehicle-6ad0ac99.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./skodaconnect/vehicle.vue":()=>C(()=>import("./vehicle-cec3e4fe.js"),["assets/vehicle-cec3e4fe.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smarteq/vehicle.vue":()=>C(()=>import("./vehicle-a5aedfc2.js"),["assets/vehicle-a5aedfc2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/vehicle.vue":()=>C(()=>import("./vehicle-2c609f87.js"),["assets/vehicle-2c609f87.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-axios-e59ef189.js","assets/index-b8f06cb8.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/index-b3227821.css"]),"./tronity/vehicle.vue":()=>C(()=>import("./vehicle-fff88f39.js"),["assets/vehicle-fff88f39.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./vwid/vehicle.vue":()=>C(()=>import("./vehicle-eda3e1da.js"),["assets/vehicle-eda3e1da.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.vehicle.type}/vehicle.vue`),errorComponent:be})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function ve(e,o,g,q,w,m){const W=k("openwb-base-heading");return r(),h(y,null,[n(W,null,{default:a(()=>[l(' Einstellungen für SoC-Modul "'+V(g.vehicle.name)+'" ',1)]),_:1}),(r(),f(ue(m.myComponent),{vehicleId:g.vehicleId,vehicle:g.vehicle,configuration:g.vehicle.configuration,vehicleType:g.vehicle.type,"onUpdate:configuration":o[0]||(o[0]=b=>m.updateConfiguration(b))},null,40,["vehicleId","vehicle","configuration","vehicleType"]))],64)}const _e=x(fe,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleProxy.vue"]]);H.add(J,j,G,Q,X,Y,K,ee,te,ne,ae);const we={name:"OpenwbVehicleConfig",mixins:[oe],emits:["sendCommand"],components:{FontAwesomeIcon:le,FontAwesomeLayers:ie,OpenwbVehicleProxy:_e},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/et/provider","openWB/optional/rfid/active","openWB/vehicle/template/ev_template/+","openWB/vehicle/template/charge_template/+","openWB/vehicle/template/charge_template/+/chargemode/scheduled_charging/plans/+","openWB/vehicle/template/charge_template/+/time_charging/plans/+","openWB/vehicle/+/name","openWB/vehicle/+/charge_template","openWB/vehicle/+/ev_template","openWB/vehicle/+/tag_id","openWB/system/configurable/soc_modules","openWB/vehicle/+/soc_module/general_config","openWB/vehicle/+/soc_module/config"],showVehicleModal:!1,modalVehicleIndex:void 0,showEvTemplateModal:!1,modalEvTemplateIndex:void 0,showChargeTemplateModal:!1,modalChargeTemplateIndex:void 0,showChargeTemplateSchedulePlanModal:!1,modalChargeTemplateSchedulePlanIndex:void 0,showChargeTemplateTimeChargingPlanModal:!1,modalChargeTemplateTimeChargingPlanIndex:void 0}},computed:{vehicleIndexes:{get(){return this.getWildcardIndexList("openWB/vehicle/+/name")}},evTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/ev_template/+")}},evTemplateList:{get(){let e=[];return Object.keys(this.evTemplates).forEach(o=>{let g=parseInt(o.match(/([0-9]+)$/g)[0]),q=this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+g].name;e.push({value:g,text:q})}),e}},chargeTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/charge_template/+")}},chargeTemplateList:{get(){let e=[];return Object.keys(this.chargeTemplates).forEach(o=>{let g=parseInt(o.match(/([0-9]+)$/g)[0]),q=this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+g].name;e.push({value:g,text:q})}),e}},socModuleList:{get(){return this.$store.state.mqtt["openWB/system/configurable/soc_modules"]}}},methods:{getChargeTemplateScheduledChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/chargemode/scheduled_charging/plans/+")},getChargeTemplateTimeChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/time_charging/plans/+")},addVehicle(e){e.stopPropagation(),console.info("requesting new vehicle..."),this.$emit("sendCommand",{command:"addVehicle",data:{}})},removeVehicleModal(e,o){o.stopPropagation(),this.modalVehicleIndex=e,this.showVehicleModal=!0},removeVehicle(e,o){this.showVehicleModal=!1,o=="confirm"&&(console.info("request removal of vehicle '"+e+"'"),this.$emit("sendCommand",{command:"removeVehicle",data:{id:e}}))},getVehicleName(e){return this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]?this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]:"Fahrzeug "+e},getSocDefaultConfiguration(e){const o=this.socModuleList.find(g=>g.value==e);return Object.prototype.hasOwnProperty.call(o,"defaults")?{...JSON.parse(JSON.stringify(o.defaults))}:(console.warn("no default configuration found for soc type!",e),{})},updateSelectedSocModule(e,o){this.updateState("openWB/vehicle/"+e+"/soc_module/config",o,"type"),this.updateState("openWB/vehicle/"+e+"/soc_module/config",this.getSocDefaultConfiguration(o))},updateConfiguration(e,o){console.debug("updateConfiguration",e,o),this.updateState(e,o.value,o.object)},addEvTemplate(e){e.stopPropagation(),console.info("requesting new ev template..."),this.$emit("sendCommand",{command:"addEvTemplate",data:{}})},removeEvTemplateModal(e,o){o.stopPropagation(),this.modalEvTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.showEvTemplateModal=!0},removeEvTemplate(e,o){this.showEvTemplateModal=!1,o=="confirm"&&(console.info("request removal of ev template '"+e+"'"),this.$emit("sendCommand",{command:"removeEvTemplate",data:{id:e}}))},getEvTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e].name:"Fahrzeug-Profil "+e},addChargeTemplate(e){e.stopPropagation(),console.info("requesting new charge template..."),this.$emit("sendCommand",{command:"addChargeTemplate",data:{}})},getChargeTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargeTemplateModal(e,o){o.stopPropagation(),this.modalChargeTemplateIndex=this.getChargeTemplateIndex(e),this.showChargeTemplateModal=!0},removeChargeTemplate(e,o){this.showChargeTemplateModal=!1,o=="confirm"&&(console.info("request removal of charge template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargeTemplate",data:{id:e}}))},getChargeTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e].name:"Lade-Profil "+e},getChargeTemplateSchedulePlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o].name:"Zielladen Zeitplan "+e+"/"+o},addChargeTemplateSchedulePlan(e,o){o.stopPropagation(),console.info("requesting new charge template schedule plan...");let g=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateSchedulePlan",data:{template:g}})},removeChargeTemplateSchedulePlanModal(e,o,g){g.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateSchedulePlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateSchedulePlanModal=!0},removeChargeTemplateSchedulePlan(e,o,g){this.showChargeTemplateSchedulePlanModal=!1,g=="confirm"&&(console.info("request removal of charge template '"+e+"' schedule plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateSchedulePlan",data:{template:e,plan:o}}))},getChargeTemplateTimeChargingPlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o].name:"Zeitladen Zeitplan "+e+"/"+o},addChargeTemplateTimeChargingPlan(e,o){o.stopPropagation(),console.info("requesting new charge template time charging plan...");let g=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateTimeChargingPlan",data:{template:g}})},removeChargeTemplateTimeChargingPlanModal(e,o,g){g.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateTimeChargingPlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateTimeChargingPlanModal=!0},removeChargeTemplateTimeChargingPlan(e,o,g){this.showChargeTemplateTimeChargingPlanModal=!1,g=="confirm"&&(console.info("request removal of charge template '"+e+"' time charging plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateTimeChargingPlan",data:{template:e,plan:o}}))}}},_=e=>(se("data-v-d7193cf0"),e=e(),me(),e),ke={class:"vehicleConfig"},Ve={name:"vehicleConfigForm"},Ce={key:0},Se={key:1},ze=_(()=>s("hr",null,null,-1)),Te={key:0},Ue=_(()=>s("br",null,null,-1)),We=["innerHTML"],Pe=_(()=>s("hr",null,null,-1)),Le=_(()=>s("br",null,null,-1)),ye=_(()=>s("br",null,null,-1)),Be=_(()=>s("br",null,null,-1)),Ae={key:1},Ee=_(()=>s("hr",{class:"border-secondary"},null,-1)),qe={key:0},Me={key:1},Fe=_(()=>s("br",null,null,-1)),De=_(()=>s("br",null,null,-1)),xe=_(()=>s("br",null,null,-1)),Ze=_(()=>s("br",null,null,-1)),Ne={key:0},Ie={key:1},Oe=_(()=>s("br",null,null,-1)),Re=_(()=>s("br",null,null,-1)),$e=_(()=>s("ol",null,[s("li",null," Zielladen (Sofortladen) mit Priorität "),s("li",null,"Zielladen (Sofortladen)"),s("li",null,"Zeitladen mit Priorität"),s("li",null,"Zeitladen"),s("li",null,"Sofortladen mit Priorität"),s("li",null,"Sofortladen"),s("li",null,"PV (Min-Anteil) mit Priorität"),s("li",null,"PV (Min-Anteil)"),s("li",null,"Zielladen (PV) mit Priorität"),s("li",null,"Zielladen (PV)"),s("li",null,"PV (PV-Anteil) mit Priorität"),s("li",null,"PV (PV-Anteil)")],-1)),He={key:0},Je={key:0},je=_(()=>s("hr",null,null,-1)),Ge=_(()=>s("hr",null,null,-1)),Qe=_(()=>s("br",null,null,-1)),Xe=_(()=>s("br",null,null,-1)),Ye=_(()=>s("hr",null,null,-1)),Ke=_(()=>s("br",null,null,-1)),et=_(()=>s("br",null,null,-1)),tt=["onClick"],nt={key:0},at={key:1},lt={key:2},it={key:3},ot={key:4},dt={key:4},rt=_(()=>s("hr",null,null,-1)),ut=["onClick"],st={key:0},mt={key:1},ct={key:2},ht={key:3},gt={key:4},pt={key:4};function bt(e,o,g,q,w,m){const W=k("openwb-base-modal-dialog"),b=k("font-awesome-icon"),U=k("openwb-base-avatar"),A=k("openwb-base-alert"),P=k("openwb-base-text-input"),F=k("openwb-base-select-input"),O=k("openwb-base-array-input"),v=k("openwb-base-button-group-input"),L=k("openwb-base-heading"),z=k("openwb-base-number-input"),R=k("openwb-vehicle-proxy"),B=k("openwb-base-card"),Z=k("font-awesome-layers"),S=k("openwb-base-range-input"),$=k("openwb-base-submit-buttons");return r(),h(y,null,[n(W,{show:w.showVehicleModal,title:"Fahrzeug löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[0]||(o[0]=i=>m.removeVehicle(w.modalVehicleIndex,i))},{default:a(()=>[l(' Wollen Sie das Fahrzeug "'+V(m.getVehicleName(w.modalVehicleIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showEvTemplateModal,title:"Fahrzeug-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[1]||(o[1]=i=>m.removeEvTemplate(w.modalEvTemplateIndex,i))},{default:a(()=>[l(' Wollen Sie das Fahrzeug-Profil "'+V(m.getEvTemplateName(w.modalEvTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateModal,title:"Lade-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[2]||(o[2]=i=>m.removeChargeTemplate(w.modalChargeTemplateIndex,i))},{default:a(()=>[l(' Wollen Sie das Lade-Profil "'+V(m.getChargeTemplateName(w.modalChargeTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateSchedulePlanModal,title:"Zielladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[3]||(o[3]=i=>m.removeChargeTemplateSchedulePlan(w.modalChargeTemplateIndex,w.modalChargeTemplateSchedulePlanIndex,i))},{default:a(()=>[l(' Wollen Sie den Zielladen Zeitplan "'+V(m.getChargeTemplateSchedulePlanName(w.modalChargeTemplateIndex,w.modalChargeTemplateSchedulePlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateTimeChargingPlanModal,title:"Zeitladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[4]||(o[4]=i=>m.removeChargeTemplateTimeChargingPlan(w.modalChargeTemplateIndex,w.modalChargeTemplateTimeChargingPlanIndex,i))},{default:a(()=>[l(' Wollen Sie den Zeitladen Zeitplan "'+V(m.getChargeTemplateTimeChargingPlanName(w.modalChargeTemplateIndex,w.modalChargeTemplateTimeChargingPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),s("div",ke,[s("form",Ve,[n(B,{subtype:"info",collapsible:!0,collapsed:e.$route.params.section!="vehicle"},{header:a(()=>[n(b,{"fixed-width":"",icon:["fas","car"]}),l(" Fahrzeuge ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addVehicle},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",Ce,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Se,[(r(!0),h(y,null,E(m.vehicleIndexes,i=>(r(),f(B,{key:i,title:m.getVehicleName(i),collapsible:!0,collapsed:!(e.$route.params.section=="vehicle"&&parseInt(e.$route.params.section_index)==i),subtype:"info"},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/name"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/name",d),disabled:i===0},M({_:2},[i===0?{name:"help",fn:a(()=>[l(" Das Standard-Fahrzeug kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(A,{subtype:"info"},{default:a(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),n(F,{title:"Fahrzeug-Profil",options:m.evTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/ev_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/ev_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),n(F,{title:"Lade-Profil",options:m.chargeTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/charge_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/charge_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),ze,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(r(),h("div",Te,[n(O,{title:"Zugeordnete ID-Tags","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/tag_id"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/tag_id",d)},null,8,["model-value","onUpdate:modelValue"]),n(A,{subtype:"info"},{default:a(()=>[l(" Die ID-Tags müssen auch in den Ladepunkt-Profil eingetragen werden, um zuzuordnen, an welchen Ladepunkten die ID-Tags verwendet werden dürfen."),Ue,s("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,We)]),_:1}),Pe])):c("",!0),n(F,{class:"mb-2",title:"SoC-Modul",options:m.socModuleList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type,"onUpdate:modelValue":d=>m.updateSelectedSocModule(i,d)},{help:a(()=>[l(" Mit einem SoC-Modul kann der Ladestand des Fahrzeugs ermittelt und geregelt werden. Z.B. lassen sich unabhängig vom Fahrzeug bestimmte SoC-Werte einstellen, um den Fahrzeugakku zu schonen. Aktuell werden die SoC-Werte mittels der App-Zugangsdaten aus dem Herstellerserver des Fahrzeuges ausgelesen. Zukünftig soll auch eine direkte SoC-Auslesung aus dem Fahrzeug möglich werden (openWB Pro)."),Le,l(" Die SoC-Abfrage erfolgt automatisch beim Anstecken des Fahrzeuges und zusätzlich über einstellbare Abfrageintervalle während des Ladens und Nichtladens. Die Abfrage kann auch manuell durch Klick auf den Reload-Pfeil auf der Hauptseite ausgelöst werden."),ye,l(" Wenn eine Abfrage fehlschlägt, wird noch drei weitere Male im Abstand von 5 Minuten versucht, den SoC abzufragen. Wenn dies nicht erfolgreich ist, wird der SoC auf 0% gesetzt um zu vermeiden, dass ein Auto beim SoC-basierten Laden nicht geladen wird. Die Abfrage erfolgt dann wieder in den oben genannten Intervallen."),Be,l(" Da aktuell die SoC-Abfragen über Onlineserver der Fahrzeughersteller laufen, ist infolge möglicher Umstellungen/Wartungen keine 100%-ig sichere SoC-Abfrage garantiert. Auch kann es zu SoC-Abweichungen infolge von zeitlicher Verzögerungen kommen. Hilfestellung erfolgt primär im openWB-Forum. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"]),e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type?(r(),h("div",Ae,[n(v,{title:"SoC aus Fahrzeug auslesen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].use_soc_from_cp,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d,"use_soc_from_cp")},{help:a(()=>[l(" Wenn Ladepunkt und Fahrzeug das Auslesen des SoCs unterstützen, wird nach dem Anstecken der SoC aus dem Fahrzeug ausgelesen und während der Ladung berechnet. Das Auslesen des SoC aus dem Fahrzeug ist aktuell nur mit einer openWB Pro möglich. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(L,null,{help:a(()=>[l(" Einige Hersteller begrenzen die möglichen Abfragen. Sobald ein gewisses Limit in einem Zeitraum überschritten wird, werden weitere Anfragen blockiert. Die Zeitintervalle sollten daher nicht zu klein gewählt werden. ")]),default:a(()=>[l(" Aktualisierung der Fahrzeugdaten ")]),_:1}),n(z,{title:"Während der Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_interval_charging/60,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d*60,"request_interval_charging")},{help:a(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird bei einem laufenden Ladevorgang in dem hier eingestellten Intervall in Minuten abgefragt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Ohne laufende Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_interval_not_charging/60,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d*60,"request_interval_not_charging")},{help:a(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird in dem hier eingestellten Intervall in Minuten abgefragt, falls kein Ladevorgang aktiv ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Nur aktualisieren wenn angesteckt",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_only_plugged,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d,"request_only_plugged")},{help:a(()=>[l(' Wird hier "Ja" ausgewählt, dann wird der Ladestand des Fahrzeugs nur abgefragt, wenn das Ladekabel angesteckt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(R,{vehicleId:i,vehicle:e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"],"onUpdate:configuration":d=>m.updateConfiguration("openWB/vehicle/"+i+"/soc_module/config",d)},null,8,["vehicleId","vehicle","onUpdate:configuration"])])):c("",!0)]),_:2},[i!==0?{name:"actions",fn:a(d=>[d.collapsed?c("",!0):(r(),f(U,{key:0,class:"bg-danger clickable",onClick:t=>m.removeVehicleModal(i,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}:void 0]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),Ee,n(L,null,{default:a(()=>[l("Profile")]),_:1}),n(B,{collapsible:!0,collapsed:!0},{header:a(()=>[n(Z,{"fixed-width":"",class:"fa-lg"},{default:a(()=>[n(b,{"fixed-width":"",icon:["far","file"]}),n(b,{"fixed-width":"",icon:["fas","car"],transform:"shrink-8"})]),_:1}),l(" Fahrzeug-Profile ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addEvTemplate},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",qe,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Me,[n(A,{subtype:"info"},{default:a(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),(r(!0),h(y,null,E(m.evTemplates,(i,d)=>(r(),f(B,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!0},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:a(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(L,null,{default:a(()=>[l(" Angaben zum Ladestrom ")]),_:1}),n(S,{title:"Mindeststrom",min:6,max:16,step:1,unit:"A","model-value":i.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"min_current")},null,8,["model-value","onUpdate:modelValue"]),n(S,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":i.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),n(S,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":i.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),n(z,{title:"Erlaubte Stromabweichung",step:.1,unit:"A","model-value":i.nominal_difference,"onUpdate:modelValue":t=>e.updateState(d,t,"nominal_difference")},{help:a(()=>[l(" In manchen Lademodi, z.B. bei der automatischen Phasenumschaltung, wird geprüft, ob das Fahrzeug mit der vorgegebenen Stromstärke lädt. Manche Fahrzeuge laden nicht exakt mit der vorgegebenen Stromstärke. Die erlaubte Abweichung kann hier eingestellt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(L,null,{default:a(()=>[l(" Angaben zur Batterie ")]),_:1}),n(z,{title:"Kapazität der Batterie",unit:"kWh",min:1,step:1,"model-value":i.battery_capacity/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"battery_capacity")},{help:a(()=>[l(" Angabe der Netto-Kapazität der Fahrzeugbatterie. Dient zur Berechnung des manuellen SoC und der geladenen Reichweite. Die Netto-Kapazität unterscheidet sich meist von den Angaben der Fahrzeughersteller. So besitzt ein Tesla Model S 90 z. B. nur ca. 83kWh und nicht die durch die Typenbezeichnung suggerierten 90kWh. Andere Hersteller begrenzen die nutzbare Kapazität absichtlich, um eine höhere Lebensdauer der Akkus zu erreichen. Gängig sind eine Drosselung auf 90% der angegebenen Brutto-Kapazität. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Wirkungsgrad der Ladeelektronik",unit:"%",required:"","model-value":i.efficiency,"onUpdate:modelValue":t=>e.updateState(d,t,"efficiency")},{help:a(()=>[l(" Durch Verluste in der Ladeelektronik (z. B. Umwandlung Wechselspannung in Gleichspannung) gelangt nicht die komplette Energie, welche durch den Zähler in der Wallbox gemessen wird, in den Akku des Fahrzeugs. Der anzugebende Wert liegt bei gängigen Fahrzeugen im Bereich 90-95%. Eine Ausnahme stellt der Zoe dar, dessen Chameleon-Lader je nach Modellversion und freigegebener Leistung der Wallbox teilweise nur auf ca. 50% kommt."),Fe,l(" Liegen die Angaben der Wallbox und des Fahrzeugs nach der Ladung mehrere Prozent auseinander, dann kann mit dieser Einstellung eine Feinabstimmung erfolgen: "),De,l(" SoC an der Wallbox zu hoch: Wirkungsgrad um ein paar Prozent reduzieren"),xe,l(" SoC an der Wallbox zu gering: Wirkungsgrad um ein paar Prozent erhöhen"),Ze]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Durchschnittsverbrauch",unit:"kWh / 100km",min:0,step:.1,"model-value":i.average_consump/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"average_consump")},null,8,["model-value","onUpdate:modelValue"]),n(L,null,{default:a(()=>[l(" Angaben zur Handhabung von Phasen ")]),_:1}),n(v,{title:"Unterstützte Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":i.max_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_phases")},{help:a(()=>[l(" Anzahl der Phasen, die der Fahrzeuglader (s.g. OBC - OnboardCharger) bereitstellt. Plugin-Hybride haben meist nur eine Phase, reine E-Autos meist 2 bis 3 Phasen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"CP-Unterbrechung",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.control_pilot_interruption,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption")},{help:a(()=>[l(' Erläuterung siehe "Konfiguration - Ladepunkte" -> Hardware-Optionen ')]),_:2},1032,["model-value","onUpdate:modelValue"]),i.control_pilot_interruption?(r(),f(z,{key:0,title:"Dauer der CP-Unterbrechung",min:4,step:1,unit:"s","model-value":i.control_pilot_interruption_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption_duration")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),n(v,{title:"Phasenumschaltung blockieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_phase_switch,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_phase_switch")},{help:a(()=>[l(' Erläuterung zu 1p3p siehe "Ladeeinstellungen" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Ladung aktiv halten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_charge_stop,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_charge_stop")},{help:a(()=>[l(" Der Ladevorgang wird in den Lademodi PV- und Zielladen nach Ladebeginn nicht unterbrochen, selbst wenn nicht mehr genug Überschuss vorhanden ist. Diese Einstellung sollte bei Fahrzeugen aktiviert werden, die nach einer Ladungsunterbrechung keine Ladung mehr starten. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Pause bei Phasenumschaltung",unit:"s",min:2,step:1,"model-value":i.phase_switch_pause,"onUpdate:modelValue":t=>e.updateState(d,t,"phase_switch_pause")},null,8,["model-value","onUpdate:modelValue"]),n(z,{title:"Mindestzeit zwischen Umschaltungen",unit:"s",min:2,step:1,"model-value":i.keep_charge_active_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"keep_charge_active_duration")},{help:a(()=>[l(" Manche Fahrzeuge benötigen nach der Umschaltung einige Zeit, bis sie mit der vorgegebenen Phasenzahl laden. In dieser Zeit wird keine neue Phasenumschaltung angestoßen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:a(t=>[e.$store.state.mqtt["openWB/general/extern"]===!1&&!t.collapsed?(r(),f(U,{key:0,class:"bg-danger clickable",onClick:p=>m.removeEvTemplateModal(d,p)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),n(B,{collapsible:!0,collapsed:e.$route.params.section!="charge_template"},{header:a(()=>[n(Z,{"fixed-width":"",class:"fa-lg"},{default:a(()=>[n(b,{"fixed-width":"",icon:["far","file"]}),n(b,{"fixed-width":"",icon:["fas","plug"],transform:"shrink-8"})]),_:1}),l(" Lade-Profile ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addChargeTemplate},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",Ne,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Ie,[(r(!0),h(y,null,E(m.chargeTemplates,(i,d)=>(r(),f(B,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!(e.$route.params.section=="charge_template"&&parseInt(e.$route.params.section_index)==m.getChargeTemplateIndex(d))},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:a(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(L,null,{default:a(()=>[l(" Allgemeine Optionen ")]),_:1}),n(v,{title:"Aktiver Lademodus",buttons:[{buttonValue:"instant_charging",text:"Sofortladen",class:"btn-outline-danger"},{buttonValue:"pv_charging",text:"PV",class:"btn-outline-success"},{buttonValue:"scheduled_charging",text:"Zielladen",class:"btn-outline-primary"},{buttonValue:"standby",text:"Standby",class:"btn-outline-secondary"},{buttonValue:"stop",text:"Stop",class:"btn-outline-dark"}],"model-value":i.chargemode.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.selected")},{help:a(()=>[l(" Diese Einstellung entspricht dem gewählten Lademodus auf der Hauptseite und ist aktiv, wenn ein zugehöriges Fahrzeug angesteckt ist."),Oe,l(" Die zur Verfügung stehende Leistung wird intern anhand folgender Prioritätenliste auf die Fahrzeuge bzw. Ladepunkte verteilt:"),Re,$e]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Priorität",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.prio,"onUpdate:modelValue":t=>e.updateState(d,t,"prio")},{help:a(()=>[l(" Die Ladefreigabe mit dem jeweils eingestellten Mindeststrom erfolgt für alle Fahrzeuge, soweit die verfügbare Leistung ausreicht. Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar. Erst wenn alle priorisierten Fahrzeuge die maximale Ladeleistung bekommen und noch zusätzlicher Überschuss vorhanden ist, wird auch für Fahrzeuge ohne Priorität mehr Leistung freigegeben. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitladen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.time_charging.active,"onUpdate:modelValue":t=>e.updateState(d,t,"time_charging.active")},{help:a(()=>[l(' Der Lademodus Zeitladen kann parallel zu einem der anderen Lademodi aktiviert werden. Die Auswahl des Lademodus, der in der Regelung genutzt wird, erfolgt anhand der Übersicht in der Hilfe bei "Aktiver Lademodus". Wenn kein Zeitplan aktiv ist oder das Limit des Zeitplans erreicht wurde, wird der Lademodus verwendet, der bei "Aktiver Lademodus" ausgewählt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Sperre nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.disable_after_unplug,"onUpdate:modelValue":t=>e.updateState(d,t,"disable_after_unplug")},{help:a(()=>[l(" Wird ein Fahrzeug mit diesem Profil abgesteckt, dann wird der betroffene Ladepunkt automatisch deaktiviert. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Standard nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.load_default,"onUpdate:modelValue":t=>e.updateState(d,t,"load_default")},{help:a(()=>[l(" Falls diese Option aktiviert ist, wird der betroffene Ladepunkt nach dem Abstecken auf das Standard Ladeprofil zurückgesetzt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Strompreisbasiert Laden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.et.active,"onUpdate:modelValue":t=>e.updateState(d,t,"et.active")},null,8,["model-value","onUpdate:modelValue"]),i.et.active==!0?(r(),h("div",He,[!e.$store.state.mqtt["openWB/optional/et/provider"]||!e.$store.state.mqtt["openWB/optional/et/provider"].type?(r(),h("div",Je,[n(A,{subtype:"danger"},{default:a(()=>[l(" Bitte in den übergreifenden Ladeeinstellungen einen Strompreis-Anbieter konfigurieren. ")]),_:1})])):c("",!0),n(z,{title:"Preisgrenze für Zeit- & Sofortladen",min:"-80",max:"80",step:"0.01",precision:2,unit:"ct/kWh","model-value":i.et.max_price*1e5,"onUpdate:modelValue":t=>e.updateState(d,parseFloat((t/1e5).toFixed(7)),"et.max_price")},{help:a(()=>[l(" Für Zielladen werden die günstigsten Stunden ermittelt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])])):c("",!0),je,n(L,null,{default:a(()=>[l("Sofortladen")]),_:1}),n(S,{title:"Soll-Ladestrom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.instant_charging.current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.current")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":i.chargemode.instant_charging.limit.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.selected")},{help:a(()=>[l(" Sofortladen kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(S,{title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":i.chargemode.instant_charging.limit.soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.soc")},{help:a(()=>[l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Energie-Limit",unit:"kWh",min:1,max:100,step:1,"model-value":i.chargemode.instant_charging.limit.amount/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"chargemode.instant_charging.limit.amount")},{help:a(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus oder nach dem Anstecken, wenn Sofortladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),Ge,n(L,null,{default:a(()=>[l("PV-Laden")]),_:1}),n(S,{title:"Minimaler Dauerstrom",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":i.chargemode.pv_charging.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_current")},{help:a(()=>[l(' Hier kann eine Stromstärke eingestellt werden, mit dem unabhängig vom vorhandenen Überschuss durchgeladen wird. Hierdurch wird z.B. an Tagen mit häufigem Sonne/Wolken-Wechsel oder mit nur wenig PV-Ertrag ein Laden ohne Unterbrechung ermöglicht. Folglich kann auch Netzbezug für das Fahrzeugladen entstehen, weshalb der niedrigste Stromwert empfohlen wird. Diese Einstellung entspricht weitestgehend dem Lademodus "Min+PV" der Version 1.x. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(S,{title:"SoC-Limit",min:0,max:20,step:1,unit:"%",labels:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:100,value:100},{label:"Aus",value:101}],"model-value":i.chargemode.pv_charging.max_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.max_soc")},{help:a(()=>[l(' Bei der Einstellung "100%" wird die Ladung sofort mit Erreichen der 100% beendet. Dadurch erfolgt KEIN Balancing der Batteriezellen. Ist dies gewünscht (sollte ab und an durchgeführt werden), muss hier "Aus" gewählt werden (Schieberegler ganz nach rechts stellen), um die Ladung MIT Balancing bis zur Beendigung durch das Fahrzeug weiterlaufen zu lassen.'),Qe,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(S,{title:"Mindest-SoC",min:0,max:19,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":i.chargemode.pv_charging.min_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc")},{help:a(()=>[l(' Liegt der Fahrzeug-Ladestand (SoC) unter dem hier eingestellten Wert, dann wird bis zum Erreichen dieses Wertes mit dem eingestellten "Mindest-SoC-Strom" geladen. Dies dient der Sicherstellung eines "Mindest-SoC" - z.B. für eine immer abzudeckende Fahrzeugreichweite - auch wenn kein oder zu wenig Überschuss verfügbar ist (=> Laden mit anteilig Netzstrom). Nach dem Erreichen des "Mindest-SoC" wird bei verfügbarem Überschuss geladen.'),Xe,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(S,{title:"Mindest-SoC-Strom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.pv_charging.min_soc_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc_current")},{help:a(()=>[l(' Wird der oben eingestellte "Mindest-SoC" des Fahrzeuges unterschritten, dann wird unabhängig vom Überschuss ein Ladevorgang mit dem hier festgelegten "Mindest-SoC-Strom" initiiert (ggf. mit anteilig Netzbezug). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Einspeisegrenze beachten",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.chargemode.pv_charging.feed_in_limit,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.feed_in_limit")},{help:a(()=>[l(' Erläuterung siehe "Ladeeinstellungen" -> "PV-Laden" -> "Regelparameter" -> "Regelpunkt Einspeisegrenze" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),Ye,n(L,null,{actions:a(()=>[n(U,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateSchedulePlan(d,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:a(()=>[l(' Im Lademodus "Zielladen" wird der Ladestrom so angepasst, dass das Fahrzeug zum angegebenen Zeitpunkt den eingestellten SoC bzw. die einzuladende Energiemenge erreicht. Anhand des vorgegebenen Ladestroms wird der Zeitpunkt berechnet, an dem die Ladung spätestens starten muss.'),Ke,l(' Ist der berechnete Zeitpunkt des Ladestarts noch nicht erreicht, wird mit Überschuss geladen. Auch nach Erreichen des Ziel-SoCs wird mit Überschuss geladen, solange bis das "SoC-Limit" erreicht wird.'),et,l(" Kann der Ziel-SoC bzw. die Energiemenge NICHT erreicht werden, z.B. weil das Auto zu spät angesteckt wurde oder das Lastmanagement eingegriffen hat, wird bis 20 Minuten nach dem angegebenen Termin mit der Maximalstromstärke geladen. Danach wird der Termin verworfen und mit Überschuss geladen. ")]),default:a(()=>[l(" Zielladen ")]),_:2},1024),(r(!0),h(y,null,E(m.getChargeTemplateScheduledChargingPlans(d),(t,p)=>(r(),f(B,{key:p,title:t.name,collapsible:!0,collapsed:!0},{actions:a(u=>[u.collapsed==!0?(r(),h("span",{key:0,onClick:N(T=>e.updateState(p,!t.active,"active"),["stop"]),class:I(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),h("span",nt,[n(b,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+V(t.limit.soc_scheduled)+"% ",1)])):c("",!0),t.limit.selected=="amount"?(r(),h("span",at,[n(b,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+V(t.limit.amount/1e3)+"kWh ",1)])):c("",!0),n(b,{"fixed-width":"",icon:["fas","clock"]}),l(" "+V(t.time)+" ",1),t.frequency.selected=="once"?(r(),h("span",lt,[n(b,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+V(e.formatDate(t.frequency.once)),1)])):c("",!0),t.frequency.selected=="daily"?(r(),h("span",it,[n(b,{"fixed-width":"",icon:["fas","calendar-week"]})])):c("",!0),t.frequency.selected=="weekly"?(r(),h("span",ot,[n(b,{"fixed-width":"",icon:["fas","calendar-alt"]})])):c("",!0)],10,tt)):c("",!0),u.collapsed==!1?(r(),f(U,{key:1,class:"bg-danger clickable",onClick:T=>m.removeChargeTemplateSchedulePlanModal(d,p,T)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),default:a(()=>[n(P,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(p,u,"name")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitpunkt aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(p,u,"active")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Ziel-Uhrzeit",subtype:"time","model-value":t.time,"onUpdate:modelValue":u=>e.updateState(p,u,"time")},{help:a(()=>[l(" Hier ist die gewünschte Uhrzeit einzustellen, zu welcher das Fahrzeug den gewünschten SoC bzw. die zu ladende Energiemenge BEREITS ERREICHT haben soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(S,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(p,u,"current")},{help:a(()=>[l(" Mit dieser Stromstärke wird der Zeitpunkt berechnet, wann die Ladung mit Netzbezug gestartet werden muss. Wird der Ziel-SoC nicht zum angegebenen Termin erreicht, weil z.B. das Auto erst später angesteckt wurde, wird auch mit einer höheren Stromstärke geladen. Um etwas Puffer zu haben, empfiehlt es sich, etwas weniger als die Maximalstromstärke des Fahrzeugs zu wählen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Ziel",buttons:[{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.selected")},{help:a(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),f(S,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_scheduled,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc_scheduled")},{help:a(()=>[l(" SoC, der zum angegebenen Zeitpunkt erreicht werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="soc"?(r(),f(S,{key:1,title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_limit,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc_limit")},{help:a(()=>[l(" Nach Erreichen des Ziel-SoCs wird mit Überschuss weiter geladen, bis das SoC-Limit erreicht wird. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="amount"?(r(),f(z,{key:2,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(p,u*1e3,"limit.amount")},{help:a(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zielladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),n(v,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),f(P,{key:3,title:"Datum",subtype:"date","model-value":t.frequency.once,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="weekly"?(r(),h("div",dt,[(r(!0),h(y,null,E(e.weekdays,(u,T)=>(r(),f(v,{key:T,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[T],"onUpdate:modelValue":D=>e.updateState(p,D,"frequency.weekly."+T)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):c("",!0)]),_:2},1032,["title"]))),128)),rt,n(L,null,{actions:a(()=>[n(U,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateTimeChargingPlan(d,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:a(()=>[l(" Mit einem Zeitplan kann ein klar abgegrenzter Zeitbereich zum Fahrzeugladen definiert werden. Dies wird häufig genutzt, um einem Fahrzeug kurz vor der Abfahrt Strom anzubieten, damit dessen Vorklimatisierung nicht aus dem Fahrzeugakku, sondern aus der openWB bezogen wird (Enteisung, Vorwärmung, Abkühlung). Nicht von der Vorklimatisierung benötigter Strom erhöht dabei den Fahrzeug-SoC. Um das Stromnetz am Morgen nicht unnötig zu strapazieren, sollte eine moderate Stromvorgabe und ein beschränkter Zeitbereich vorgegeben werden (z.B. max. 10A; 30min - in Übereinstimmung mit den Fahrzeug-App-Vorklimatisierungsvorgaben). ")]),default:a(()=>[l(" Laden nach Zeitplan ")]),_:2},1024),(r(!0),h(y,null,E(m.getChargeTemplateTimeChargingPlans(d),(t,p)=>(r(),f(B,{key:p,title:t.name,collapsible:!0,collapsed:!0},{actions:a(u=>[u.collapsed==!0?(r(),h("span",{key:0,onClick:N(T=>e.updateState(p,!t.active,"active"),["stop"]),class:I(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),h("span",st,[n(b,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+V(t.limit.soc)+"% ",1)])):c("",!0),t.limit.selected=="amount"?(r(),h("span",mt,[n(b,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+V(t.limit.amount/1e3)+"kWh ",1)])):c("",!0),n(b,{"fixed-width":"",icon:["fas","clock"]}),l(" "+V(t.time[0])+" - "+V(t.time[1])+" ",1),t.frequency.selected=="once"?(r(),h("span",ct,[n(b,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+V(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):c("",!0),t.frequency.selected=="daily"?(r(),h("span",ht,[n(b,{"fixed-width":"",icon:["fas","calendar-week"]})])):c("",!0),t.frequency.selected=="weekly"?(r(),h("span",gt,[n(b,{"fixed-width":"",icon:["fas","calendar-alt"]})])):c("",!0)],10,ut)):c("",!0),u.collapsed==!1?(r(),f(U,{key:1,class:"bg-danger clickable",onClick:T=>m.removeChargeTemplateTimeChargingPlanModal(d,p,T)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),default:a(()=>[n(P,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(p,u,"name")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(p,u,"active")},null,8,["model-value","onUpdate:modelValue"]),n(S,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(p,u,"current")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Ziel",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.selected")},{help:a(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),f(S,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc")},{help:a(()=>[l(" Ladestand des Akku (State of Charge, SoC), bis zu welchem maximal geladen werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="amount"?(r(),f(z,{key:1,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(p,u*1e3,"limit.amount")},{help:a(()=>[l(" Maximal zu ladende Energie innerhalb des Zeitfensters. Eignet sich immer dann wenn kein SoC zur Verfügung steht. Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zeitladen schon aktiv ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),n(P,{title:"Zeitpunkt des Ladebeginns",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":u=>e.updateState(p,u,"time.0")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Zeitpunkt des Ladeendes",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":u=>e.updateState(p,u,"time.1")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),f(P,{key:2,title:"Gültig ab",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="once"?(r(),f(P,{key:3,title:"Gültig bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="weekly"?(r(),h("div",pt,[(r(!0),h(y,null,E(e.weekdays,(u,T)=>(r(),f(v,{key:T,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[T],"onUpdate:modelValue":D=>e.updateState(p,D,"frequency.weekly."+T)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):c("",!0)]),_:2},1032,["title"]))),128))]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:a(t=>[t.collapsed?c("",!0):(r(),f(U,{key:0,class:"bg-danger clickable",onClick:p=>m.removeChargeTemplateModal(d,p)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),n($,{formName:"vehicleConfigForm",onSave:o[5]||(o[5]=i=>e.$emit("save")),onReset:o[6]||(o[6]=i=>e.$emit("reset")),onDefaults:o[7]||(o[7]=i=>e.$emit("defaults"))})])])],64)}const zt=x(we,[["render",bt],["__scopeId","data-v-d7193cf0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/VehicleConfig.vue"]]);export{zt as default}; +import{l as H,d as J,_ as j,A as G,$ as Q,a0 as X,z as Y,P as K,a2 as ee,R as te,a1 as ne,a3 as ae,F as le,I as ie}from"./vendor-fortawesome-9fdc06a9.js";import{_ as C,C as oe}from"./index-720fb9ac.js";import{_ as de}from"./dynamic-import-helper-be004503.js";import{_ as x,q as k,k as r,l as h,z as f,M as a,x as l,y as V,B as n,u as s,a1 as re,a2 as ue,I as y,A as c,J as E,a3 as M,O as N,p as I,R as se,S as me}from"./vendor-f0f38b48.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";import"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";const ce={name:"VehicleConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{default:void 0},vehicleType:String},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},he={class:"vehicle-fallback"},ge={key:1};function pe(e,o,g,q,w,m){const W=k("openwb-base-alert"),b=k("openwb-base-textarea");return r(),h("div",he,[Object.keys(g.configuration).length==0?(r(),f(W,{key:0,subtype:"info"},{default:a(()=>[l(' Der Fahrzeug-Typ "'+V(g.vehicleType)+'" bietet keine Einstellungen. ',1)]),_:1})):(r(),h("div",ge,[n(W,{subtype:"warning"},{default:a(()=>[l(' Es wurde keine Konfigurationsseite für den Fahrzeug-Typ "'+V(g.vehicleType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":g.configuration,"onUpdate:modelValue":o[0]||(o[0]=U=>m.updateConfiguration(U,"configuration"))},{help:a(()=>[l(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(W,{subtype:"info"},{default:a(()=>[s("pre",null,V(JSON.stringify(g.configuration,void 0,2)),1)]),_:1})]))])}const be=x(ce,[["render",pe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleConfigFallback.vue"]]),fe={name:"OpenwbVehicleProxy",emits:["update:configuration"],props:{vehicleId:{required:!0},vehicle:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading vehicle: ${this.vehicle.type}`),re({loader:()=>de(Object.assign({"./bmw/vehicle.vue":()=>C(()=>import("./vehicle-688baecd.js"),["assets/vehicle-688baecd.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./evcc/vehicle.vue":()=>C(()=>import("./vehicle-90519bcb.js"),["assets/vehicle-90519bcb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./evnotify/vehicle.vue":()=>C(()=>import("./vehicle-2eb1b3a8.js"),["assets/vehicle-2eb1b3a8.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./http/vehicle.vue":()=>C(()=>import("./vehicle-13cc62fa.js"),["assets/vehicle-13cc62fa.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./kia/vehicle.vue":()=>C(()=>import("./vehicle-6923685e.js"),["assets/vehicle-6923685e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./manual/vehicle.vue":()=>C(()=>import("./vehicle-f197ab7b.js"),["assets/vehicle-f197ab7b.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mercedeseq/vehicle.vue":()=>C(()=>import("./vehicle-645f20ff.js"),["assets/vehicle-645f20ff.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./mqtt/vehicle.vue":()=>C(()=>import("./vehicle-21c4a1de.js"),["assets/vehicle-21c4a1de.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./psa/vehicle.vue":()=>C(()=>import("./vehicle-fbd997cb.js"),["assets/vehicle-fbd997cb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./renault/vehicle.vue":()=>C(()=>import("./vehicle-6ad0ac99.js"),["assets/vehicle-6ad0ac99.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./skodaconnect/vehicle.vue":()=>C(()=>import("./vehicle-cec3e4fe.js"),["assets/vehicle-cec3e4fe.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./smarteq/vehicle.vue":()=>C(()=>import("./vehicle-a5aedfc2.js"),["assets/vehicle-a5aedfc2.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./tesla/vehicle.vue":()=>C(()=>import("./vehicle-7140c23d.js"),["assets/vehicle-7140c23d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-axios-e59ef189.js","assets/index-720fb9ac.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/index-b3227821.css"]),"./tronity/vehicle.vue":()=>C(()=>import("./vehicle-fff88f39.js"),["assets/vehicle-fff88f39.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"]),"./vwid/vehicle.vue":()=>C(()=>import("./vehicle-eda3e1da.js"),["assets/vehicle-eda3e1da.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css"])}),`./${this.vehicle.type}/vehicle.vue`),errorComponent:be})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function ve(e,o,g,q,w,m){const W=k("openwb-base-heading");return r(),h(y,null,[n(W,null,{default:a(()=>[l(' Einstellungen für SoC-Modul "'+V(g.vehicle.name)+'" ',1)]),_:1}),(r(),f(ue(m.myComponent),{vehicleId:g.vehicleId,vehicle:g.vehicle,configuration:g.vehicle.configuration,vehicleType:g.vehicle.type,"onUpdate:configuration":o[0]||(o[0]=b=>m.updateConfiguration(b))},null,40,["vehicleId","vehicle","configuration","vehicleType"]))],64)}const _e=x(fe,[["render",ve],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleProxy.vue"]]);H.add(J,j,G,Q,X,Y,K,ee,te,ne,ae);const we={name:"OpenwbVehicleConfig",mixins:[oe],emits:["sendCommand"],components:{FontAwesomeIcon:le,FontAwesomeLayers:ie,OpenwbVehicleProxy:_e},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/et/provider","openWB/optional/rfid/active","openWB/vehicle/template/ev_template/+","openWB/vehicle/template/charge_template/+","openWB/vehicle/template/charge_template/+/chargemode/scheduled_charging/plans/+","openWB/vehicle/template/charge_template/+/time_charging/plans/+","openWB/vehicle/+/name","openWB/vehicle/+/charge_template","openWB/vehicle/+/ev_template","openWB/vehicle/+/tag_id","openWB/system/configurable/soc_modules","openWB/vehicle/+/soc_module/general_config","openWB/vehicle/+/soc_module/config"],showVehicleModal:!1,modalVehicleIndex:void 0,showEvTemplateModal:!1,modalEvTemplateIndex:void 0,showChargeTemplateModal:!1,modalChargeTemplateIndex:void 0,showChargeTemplateSchedulePlanModal:!1,modalChargeTemplateSchedulePlanIndex:void 0,showChargeTemplateTimeChargingPlanModal:!1,modalChargeTemplateTimeChargingPlanIndex:void 0}},computed:{vehicleIndexes:{get(){return this.getWildcardIndexList("openWB/vehicle/+/name")}},evTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/ev_template/+")}},evTemplateList:{get(){let e=[];return Object.keys(this.evTemplates).forEach(o=>{let g=parseInt(o.match(/([0-9]+)$/g)[0]),q=this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+g].name;e.push({value:g,text:q})}),e}},chargeTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/charge_template/+")}},chargeTemplateList:{get(){let e=[];return Object.keys(this.chargeTemplates).forEach(o=>{let g=parseInt(o.match(/([0-9]+)$/g)[0]),q=this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+g].name;e.push({value:g,text:q})}),e}},socModuleList:{get(){return this.$store.state.mqtt["openWB/system/configurable/soc_modules"]}}},methods:{getChargeTemplateScheduledChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/chargemode/scheduled_charging/plans/+")},getChargeTemplateTimeChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/time_charging/plans/+")},addVehicle(e){e.stopPropagation(),console.info("requesting new vehicle..."),this.$emit("sendCommand",{command:"addVehicle",data:{}})},removeVehicleModal(e,o){o.stopPropagation(),this.modalVehicleIndex=e,this.showVehicleModal=!0},removeVehicle(e,o){this.showVehicleModal=!1,o=="confirm"&&(console.info("request removal of vehicle '"+e+"'"),this.$emit("sendCommand",{command:"removeVehicle",data:{id:e}}))},getVehicleName(e){return this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]?this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]:"Fahrzeug "+e},getSocDefaultConfiguration(e){const o=this.socModuleList.find(g=>g.value==e);return Object.prototype.hasOwnProperty.call(o,"defaults")?{...JSON.parse(JSON.stringify(o.defaults))}:(console.warn("no default configuration found for soc type!",e),{})},updateSelectedSocModule(e,o){this.updateState("openWB/vehicle/"+e+"/soc_module/config",o,"type"),this.updateState("openWB/vehicle/"+e+"/soc_module/config",this.getSocDefaultConfiguration(o))},updateConfiguration(e,o){console.debug("updateConfiguration",e,o),this.updateState(e,o.value,o.object)},addEvTemplate(e){e.stopPropagation(),console.info("requesting new ev template..."),this.$emit("sendCommand",{command:"addEvTemplate",data:{}})},removeEvTemplateModal(e,o){o.stopPropagation(),this.modalEvTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.showEvTemplateModal=!0},removeEvTemplate(e,o){this.showEvTemplateModal=!1,o=="confirm"&&(console.info("request removal of ev template '"+e+"'"),this.$emit("sendCommand",{command:"removeEvTemplate",data:{id:e}}))},getEvTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e].name:"Fahrzeug-Profil "+e},addChargeTemplate(e){e.stopPropagation(),console.info("requesting new charge template..."),this.$emit("sendCommand",{command:"addChargeTemplate",data:{}})},getChargeTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargeTemplateModal(e,o){o.stopPropagation(),this.modalChargeTemplateIndex=this.getChargeTemplateIndex(e),this.showChargeTemplateModal=!0},removeChargeTemplate(e,o){this.showChargeTemplateModal=!1,o=="confirm"&&(console.info("request removal of charge template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargeTemplate",data:{id:e}}))},getChargeTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e].name:"Lade-Profil "+e},getChargeTemplateSchedulePlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o].name:"Zielladen Zeitplan "+e+"/"+o},addChargeTemplateSchedulePlan(e,o){o.stopPropagation(),console.info("requesting new charge template schedule plan...");let g=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateSchedulePlan",data:{template:g}})},removeChargeTemplateSchedulePlanModal(e,o,g){g.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateSchedulePlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateSchedulePlanModal=!0},removeChargeTemplateSchedulePlan(e,o,g){this.showChargeTemplateSchedulePlanModal=!1,g=="confirm"&&(console.info("request removal of charge template '"+e+"' schedule plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateSchedulePlan",data:{template:e,plan:o}}))},getChargeTemplateTimeChargingPlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o].name:"Zeitladen Zeitplan "+e+"/"+o},addChargeTemplateTimeChargingPlan(e,o){o.stopPropagation(),console.info("requesting new charge template time charging plan...");let g=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateTimeChargingPlan",data:{template:g}})},removeChargeTemplateTimeChargingPlanModal(e,o,g){g.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateTimeChargingPlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateTimeChargingPlanModal=!0},removeChargeTemplateTimeChargingPlan(e,o,g){this.showChargeTemplateTimeChargingPlanModal=!1,g=="confirm"&&(console.info("request removal of charge template '"+e+"' time charging plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateTimeChargingPlan",data:{template:e,plan:o}}))}}},_=e=>(se("data-v-d7193cf0"),e=e(),me(),e),ke={class:"vehicleConfig"},Ve={name:"vehicleConfigForm"},Ce={key:0},Se={key:1},ze=_(()=>s("hr",null,null,-1)),Te={key:0},Ue=_(()=>s("br",null,null,-1)),We=["innerHTML"],Pe=_(()=>s("hr",null,null,-1)),Le=_(()=>s("br",null,null,-1)),ye=_(()=>s("br",null,null,-1)),Be=_(()=>s("br",null,null,-1)),Ae={key:1},Ee=_(()=>s("hr",{class:"border-secondary"},null,-1)),qe={key:0},Me={key:1},Fe=_(()=>s("br",null,null,-1)),De=_(()=>s("br",null,null,-1)),xe=_(()=>s("br",null,null,-1)),Ze=_(()=>s("br",null,null,-1)),Ne={key:0},Ie={key:1},Oe=_(()=>s("br",null,null,-1)),Re=_(()=>s("br",null,null,-1)),$e=_(()=>s("ol",null,[s("li",null," Zielladen (Sofortladen) mit Priorität "),s("li",null,"Zielladen (Sofortladen)"),s("li",null,"Zeitladen mit Priorität"),s("li",null,"Zeitladen"),s("li",null,"Sofortladen mit Priorität"),s("li",null,"Sofortladen"),s("li",null,"PV (Min-Anteil) mit Priorität"),s("li",null,"PV (Min-Anteil)"),s("li",null,"Zielladen (PV) mit Priorität"),s("li",null,"Zielladen (PV)"),s("li",null,"PV (PV-Anteil) mit Priorität"),s("li",null,"PV (PV-Anteil)")],-1)),He={key:0},Je={key:0},je=_(()=>s("hr",null,null,-1)),Ge=_(()=>s("hr",null,null,-1)),Qe=_(()=>s("br",null,null,-1)),Xe=_(()=>s("br",null,null,-1)),Ye=_(()=>s("hr",null,null,-1)),Ke=_(()=>s("br",null,null,-1)),et=_(()=>s("br",null,null,-1)),tt=["onClick"],nt={key:0},at={key:1},lt={key:2},it={key:3},ot={key:4},dt={key:4},rt=_(()=>s("hr",null,null,-1)),ut=["onClick"],st={key:0},mt={key:1},ct={key:2},ht={key:3},gt={key:4},pt={key:4};function bt(e,o,g,q,w,m){const W=k("openwb-base-modal-dialog"),b=k("font-awesome-icon"),U=k("openwb-base-avatar"),A=k("openwb-base-alert"),P=k("openwb-base-text-input"),F=k("openwb-base-select-input"),O=k("openwb-base-array-input"),v=k("openwb-base-button-group-input"),L=k("openwb-base-heading"),z=k("openwb-base-number-input"),R=k("openwb-vehicle-proxy"),B=k("openwb-base-card"),Z=k("font-awesome-layers"),S=k("openwb-base-range-input"),$=k("openwb-base-submit-buttons");return r(),h(y,null,[n(W,{show:w.showVehicleModal,title:"Fahrzeug löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[0]||(o[0]=i=>m.removeVehicle(w.modalVehicleIndex,i))},{default:a(()=>[l(' Wollen Sie das Fahrzeug "'+V(m.getVehicleName(w.modalVehicleIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showEvTemplateModal,title:"Fahrzeug-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[1]||(o[1]=i=>m.removeEvTemplate(w.modalEvTemplateIndex,i))},{default:a(()=>[l(' Wollen Sie das Fahrzeug-Profil "'+V(m.getEvTemplateName(w.modalEvTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateModal,title:"Lade-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[2]||(o[2]=i=>m.removeChargeTemplate(w.modalChargeTemplateIndex,i))},{default:a(()=>[l(' Wollen Sie das Lade-Profil "'+V(m.getChargeTemplateName(w.modalChargeTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateSchedulePlanModal,title:"Zielladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[3]||(o[3]=i=>m.removeChargeTemplateSchedulePlan(w.modalChargeTemplateIndex,w.modalChargeTemplateSchedulePlanIndex,i))},{default:a(()=>[l(' Wollen Sie den Zielladen Zeitplan "'+V(m.getChargeTemplateSchedulePlanName(w.modalChargeTemplateIndex,w.modalChargeTemplateSchedulePlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),n(W,{show:w.showChargeTemplateTimeChargingPlanModal,title:"Zeitladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[4]||(o[4]=i=>m.removeChargeTemplateTimeChargingPlan(w.modalChargeTemplateIndex,w.modalChargeTemplateTimeChargingPlanIndex,i))},{default:a(()=>[l(' Wollen Sie den Zeitladen Zeitplan "'+V(m.getChargeTemplateTimeChargingPlanName(w.modalChargeTemplateIndex,w.modalChargeTemplateTimeChargingPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),s("div",ke,[s("form",Ve,[n(B,{subtype:"info",collapsible:!0,collapsed:e.$route.params.section!="vehicle"},{header:a(()=>[n(b,{"fixed-width":"",icon:["fas","car"]}),l(" Fahrzeuge ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addVehicle},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",Ce,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Se,[(r(!0),h(y,null,E(m.vehicleIndexes,i=>(r(),f(B,{key:i,title:m.getVehicleName(i),collapsible:!0,collapsed:!(e.$route.params.section=="vehicle"&&parseInt(e.$route.params.section_index)==i),subtype:"info"},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/name"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/name",d),disabled:i===0},M({_:2},[i===0?{name:"help",fn:a(()=>[l(" Das Standard-Fahrzeug kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(A,{subtype:"info"},{default:a(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),n(F,{title:"Fahrzeug-Profil",options:m.evTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/ev_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/ev_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),n(F,{title:"Lade-Profil",options:m.chargeTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/charge_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/charge_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),ze,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(r(),h("div",Te,[n(O,{title:"Zugeordnete ID-Tags","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/tag_id"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/tag_id",d)},null,8,["model-value","onUpdate:modelValue"]),n(A,{subtype:"info"},{default:a(()=>[l(" Die ID-Tags müssen auch in den Ladepunkt-Profil eingetragen werden, um zuzuordnen, an welchen Ladepunkten die ID-Tags verwendet werden dürfen."),Ue,s("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,We)]),_:1}),Pe])):c("",!0),n(F,{class:"mb-2",title:"SoC-Modul",options:m.socModuleList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type,"onUpdate:modelValue":d=>m.updateSelectedSocModule(i,d)},{help:a(()=>[l(" Mit einem SoC-Modul kann der Ladestand des Fahrzeugs ermittelt und geregelt werden. Z.B. lassen sich unabhängig vom Fahrzeug bestimmte SoC-Werte einstellen, um den Fahrzeugakku zu schonen. Aktuell werden die SoC-Werte mittels der App-Zugangsdaten aus dem Herstellerserver des Fahrzeuges ausgelesen. Zukünftig soll auch eine direkte SoC-Auslesung aus dem Fahrzeug möglich werden (openWB Pro)."),Le,l(" Die SoC-Abfrage erfolgt automatisch beim Anstecken des Fahrzeuges und zusätzlich über einstellbare Abfrageintervalle während des Ladens und Nichtladens. Die Abfrage kann auch manuell durch Klick auf den Reload-Pfeil auf der Hauptseite ausgelöst werden."),ye,l(" Wenn eine Abfrage fehlschlägt, wird noch drei weitere Male im Abstand von 5 Minuten versucht, den SoC abzufragen. Wenn dies nicht erfolgreich ist, wird der SoC auf 0% gesetzt um zu vermeiden, dass ein Auto beim SoC-basierten Laden nicht geladen wird. Die Abfrage erfolgt dann wieder in den oben genannten Intervallen."),Be,l(" Da aktuell die SoC-Abfragen über Onlineserver der Fahrzeughersteller laufen, ist infolge möglicher Umstellungen/Wartungen keine 100%-ig sichere SoC-Abfrage garantiert. Auch kann es zu SoC-Abweichungen infolge von zeitlicher Verzögerungen kommen. Hilfestellung erfolgt primär im openWB-Forum. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"]),e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type?(r(),h("div",Ae,[n(v,{title:"SoC aus Fahrzeug auslesen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].use_soc_from_cp,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d,"use_soc_from_cp")},{help:a(()=>[l(" Wenn Ladepunkt und Fahrzeug das Auslesen des SoCs unterstützen, wird nach dem Anstecken der SoC aus dem Fahrzeug ausgelesen und während der Ladung berechnet. Das Auslesen des SoC aus dem Fahrzeug ist aktuell nur mit einer openWB Pro möglich. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(L,null,{help:a(()=>[l(" Einige Hersteller begrenzen die möglichen Abfragen. Sobald ein gewisses Limit in einem Zeitraum überschritten wird, werden weitere Anfragen blockiert. Die Zeitintervalle sollten daher nicht zu klein gewählt werden. ")]),default:a(()=>[l(" Aktualisierung der Fahrzeugdaten ")]),_:1}),n(z,{title:"Während der Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_interval_charging/60,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d*60,"request_interval_charging")},{help:a(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird bei einem laufenden Ladevorgang in dem hier eingestellten Intervall in Minuten abgefragt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Ohne laufende Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_interval_not_charging/60,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d*60,"request_interval_not_charging")},{help:a(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird in dem hier eingestellten Intervall in Minuten abgefragt, falls kein Ladevorgang aktiv ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Nur aktualisieren wenn angesteckt",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/general_config"].request_only_plugged,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/general_config",d,"request_only_plugged")},{help:a(()=>[l(' Wird hier "Ja" ausgewählt, dann wird der Ladestand des Fahrzeugs nur abgefragt, wenn das Ladekabel angesteckt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(R,{vehicleId:i,vehicle:e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"],"onUpdate:configuration":d=>m.updateConfiguration("openWB/vehicle/"+i+"/soc_module/config",d)},null,8,["vehicleId","vehicle","onUpdate:configuration"])])):c("",!0)]),_:2},[i!==0?{name:"actions",fn:a(d=>[d.collapsed?c("",!0):(r(),f(U,{key:0,class:"bg-danger clickable",onClick:t=>m.removeVehicleModal(i,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}:void 0]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),Ee,n(L,null,{default:a(()=>[l("Profile")]),_:1}),n(B,{collapsible:!0,collapsed:!0},{header:a(()=>[n(Z,{"fixed-width":"",class:"fa-lg"},{default:a(()=>[n(b,{"fixed-width":"",icon:["far","file"]}),n(b,{"fixed-width":"",icon:["fas","car"],transform:"shrink-8"})]),_:1}),l(" Fahrzeug-Profile ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addEvTemplate},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",qe,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Me,[n(A,{subtype:"info"},{default:a(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),(r(!0),h(y,null,E(m.evTemplates,(i,d)=>(r(),f(B,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!0},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:a(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(L,null,{default:a(()=>[l(" Angaben zum Ladestrom ")]),_:1}),n(S,{title:"Mindeststrom",min:6,max:16,step:1,unit:"A","model-value":i.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"min_current")},null,8,["model-value","onUpdate:modelValue"]),n(S,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":i.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),n(S,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":i.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),n(z,{title:"Erlaubte Stromabweichung",step:.1,unit:"A","model-value":i.nominal_difference,"onUpdate:modelValue":t=>e.updateState(d,t,"nominal_difference")},{help:a(()=>[l(" In manchen Lademodi, z.B. bei der automatischen Phasenumschaltung, wird geprüft, ob das Fahrzeug mit der vorgegebenen Stromstärke lädt. Manche Fahrzeuge laden nicht exakt mit der vorgegebenen Stromstärke. Die erlaubte Abweichung kann hier eingestellt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(L,null,{default:a(()=>[l(" Angaben zur Batterie ")]),_:1}),n(z,{title:"Kapazität der Batterie",unit:"kWh",min:1,step:1,"model-value":i.battery_capacity/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"battery_capacity")},{help:a(()=>[l(" Angabe der Netto-Kapazität der Fahrzeugbatterie. Dient zur Berechnung des manuellen SoC und der geladenen Reichweite. Die Netto-Kapazität unterscheidet sich meist von den Angaben der Fahrzeughersteller. So besitzt ein Tesla Model S 90 z. B. nur ca. 83kWh und nicht die durch die Typenbezeichnung suggerierten 90kWh. Andere Hersteller begrenzen die nutzbare Kapazität absichtlich, um eine höhere Lebensdauer der Akkus zu erreichen. Gängig sind eine Drosselung auf 90% der angegebenen Brutto-Kapazität. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Wirkungsgrad der Ladeelektronik",unit:"%",required:"","model-value":i.efficiency,"onUpdate:modelValue":t=>e.updateState(d,t,"efficiency")},{help:a(()=>[l(" Durch Verluste in der Ladeelektronik (z. B. Umwandlung Wechselspannung in Gleichspannung) gelangt nicht die komplette Energie, welche durch den Zähler in der Wallbox gemessen wird, in den Akku des Fahrzeugs. Der anzugebende Wert liegt bei gängigen Fahrzeugen im Bereich 90-95%. Eine Ausnahme stellt der Zoe dar, dessen Chameleon-Lader je nach Modellversion und freigegebener Leistung der Wallbox teilweise nur auf ca. 50% kommt."),Fe,l(" Liegen die Angaben der Wallbox und des Fahrzeugs nach der Ladung mehrere Prozent auseinander, dann kann mit dieser Einstellung eine Feinabstimmung erfolgen: "),De,l(" SoC an der Wallbox zu hoch: Wirkungsgrad um ein paar Prozent reduzieren"),xe,l(" SoC an der Wallbox zu gering: Wirkungsgrad um ein paar Prozent erhöhen"),Ze]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Durchschnittsverbrauch",unit:"kWh / 100km",min:0,step:.1,"model-value":i.average_consump/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"average_consump")},null,8,["model-value","onUpdate:modelValue"]),n(L,null,{default:a(()=>[l(" Angaben zur Handhabung von Phasen ")]),_:1}),n(v,{title:"Unterstützte Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":i.max_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_phases")},{help:a(()=>[l(" Anzahl der Phasen, die der Fahrzeuglader (s.g. OBC - OnboardCharger) bereitstellt. Plugin-Hybride haben meist nur eine Phase, reine E-Autos meist 2 bis 3 Phasen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"CP-Unterbrechung",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.control_pilot_interruption,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption")},{help:a(()=>[l(' Erläuterung siehe "Konfiguration - Ladepunkte" -> Hardware-Optionen ')]),_:2},1032,["model-value","onUpdate:modelValue"]),i.control_pilot_interruption?(r(),f(z,{key:0,title:"Dauer der CP-Unterbrechung",min:4,step:1,unit:"s","model-value":i.control_pilot_interruption_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption_duration")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),n(v,{title:"Phasenumschaltung blockieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_phase_switch,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_phase_switch")},{help:a(()=>[l(' Erläuterung zu 1p3p siehe "Ladeeinstellungen" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Ladung aktiv halten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_charge_stop,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_charge_stop")},{help:a(()=>[l(" Der Ladevorgang wird in den Lademodi PV- und Zielladen nach Ladebeginn nicht unterbrochen, selbst wenn nicht mehr genug Überschuss vorhanden ist. Diese Einstellung sollte bei Fahrzeugen aktiviert werden, die nach einer Ladungsunterbrechung keine Ladung mehr starten. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Pause bei Phasenumschaltung",unit:"s",min:2,step:1,"model-value":i.phase_switch_pause,"onUpdate:modelValue":t=>e.updateState(d,t,"phase_switch_pause")},null,8,["model-value","onUpdate:modelValue"]),n(z,{title:"Mindestzeit zwischen Umschaltungen",unit:"s",min:2,step:1,"model-value":i.keep_charge_active_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"keep_charge_active_duration")},{help:a(()=>[l(" Manche Fahrzeuge benötigen nach der Umschaltung einige Zeit, bis sie mit der vorgegebenen Phasenzahl laden. In dieser Zeit wird keine neue Phasenumschaltung angestoßen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:a(t=>[e.$store.state.mqtt["openWB/general/extern"]===!1&&!t.collapsed?(r(),f(U,{key:0,class:"bg-danger clickable",onClick:p=>m.removeEvTemplateModal(d,p)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),n(B,{collapsible:!0,collapsed:e.$route.params.section!="charge_template"},{header:a(()=>[n(Z,{"fixed-width":"",class:"fa-lg"},{default:a(()=>[n(b,{"fixed-width":"",icon:["far","file"]}),n(b,{"fixed-width":"",icon:["fas","plug"],transform:"shrink-8"})]),_:1}),l(" Lade-Profile ")]),actions:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),f(U,{key:0,class:"bg-success clickable",onClick:m.addChargeTemplate},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("",!0)]),default:a(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),h("div",Ne,[n(A,{subtype:"info"},{default:a(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),h("div",Ie,[(r(!0),h(y,null,E(m.chargeTemplates,(i,d)=>(r(),f(B,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!(e.$route.params.section=="charge_template"&&parseInt(e.$route.params.section_index)==m.getChargeTemplateIndex(d))},M({default:a(()=>[n(P,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:a(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),n(L,null,{default:a(()=>[l(" Allgemeine Optionen ")]),_:1}),n(v,{title:"Aktiver Lademodus",buttons:[{buttonValue:"instant_charging",text:"Sofortladen",class:"btn-outline-danger"},{buttonValue:"pv_charging",text:"PV",class:"btn-outline-success"},{buttonValue:"scheduled_charging",text:"Zielladen",class:"btn-outline-primary"},{buttonValue:"standby",text:"Standby",class:"btn-outline-secondary"},{buttonValue:"stop",text:"Stop",class:"btn-outline-dark"}],"model-value":i.chargemode.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.selected")},{help:a(()=>[l(" Diese Einstellung entspricht dem gewählten Lademodus auf der Hauptseite und ist aktiv, wenn ein zugehöriges Fahrzeug angesteckt ist."),Oe,l(" Die zur Verfügung stehende Leistung wird intern anhand folgender Prioritätenliste auf die Fahrzeuge bzw. Ladepunkte verteilt:"),Re,$e]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Priorität",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.prio,"onUpdate:modelValue":t=>e.updateState(d,t,"prio")},{help:a(()=>[l(" Die Ladefreigabe mit dem jeweils eingestellten Mindeststrom erfolgt für alle Fahrzeuge, soweit die verfügbare Leistung ausreicht. Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar. Erst wenn alle priorisierten Fahrzeuge die maximale Ladeleistung bekommen und noch zusätzlicher Überschuss vorhanden ist, wird auch für Fahrzeuge ohne Priorität mehr Leistung freigegeben. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitladen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.time_charging.active,"onUpdate:modelValue":t=>e.updateState(d,t,"time_charging.active")},{help:a(()=>[l(' Der Lademodus Zeitladen kann parallel zu einem der anderen Lademodi aktiviert werden. Die Auswahl des Lademodus, der in der Regelung genutzt wird, erfolgt anhand der Übersicht in der Hilfe bei "Aktiver Lademodus". Wenn kein Zeitplan aktiv ist oder das Limit des Zeitplans erreicht wurde, wird der Lademodus verwendet, der bei "Aktiver Lademodus" ausgewählt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Sperre nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.disable_after_unplug,"onUpdate:modelValue":t=>e.updateState(d,t,"disable_after_unplug")},{help:a(()=>[l(" Wird ein Fahrzeug mit diesem Profil abgesteckt, dann wird der betroffene Ladepunkt automatisch deaktiviert. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Standard nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.load_default,"onUpdate:modelValue":t=>e.updateState(d,t,"load_default")},{help:a(()=>[l(" Falls diese Option aktiviert ist, wird der betroffene Ladepunkt nach dem Abstecken auf das Standard Ladeprofil zurückgesetzt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Strompreisbasiert Laden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.et.active,"onUpdate:modelValue":t=>e.updateState(d,t,"et.active")},null,8,["model-value","onUpdate:modelValue"]),i.et.active==!0?(r(),h("div",He,[!e.$store.state.mqtt["openWB/optional/et/provider"]||!e.$store.state.mqtt["openWB/optional/et/provider"].type?(r(),h("div",Je,[n(A,{subtype:"danger"},{default:a(()=>[l(" Bitte in den übergreifenden Ladeeinstellungen einen Strompreis-Anbieter konfigurieren. ")]),_:1})])):c("",!0),n(z,{title:"Preisgrenze für Zeit- & Sofortladen",min:"-80",max:"80",step:"0.01",precision:2,unit:"ct/kWh","model-value":i.et.max_price*1e5,"onUpdate:modelValue":t=>e.updateState(d,parseFloat((t/1e5).toFixed(7)),"et.max_price")},{help:a(()=>[l(" Für Zielladen werden die günstigsten Stunden ermittelt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])])):c("",!0),je,n(L,null,{default:a(()=>[l("Sofortladen")]),_:1}),n(S,{title:"Soll-Ladestrom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.instant_charging.current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.current")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":i.chargemode.instant_charging.limit.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.selected")},{help:a(()=>[l(" Sofortladen kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(S,{title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":i.chargemode.instant_charging.limit.soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.soc")},{help:a(()=>[l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(z,{title:"Energie-Limit",unit:"kWh",min:1,max:100,step:1,"model-value":i.chargemode.instant_charging.limit.amount/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"chargemode.instant_charging.limit.amount")},{help:a(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus oder nach dem Anstecken, wenn Sofortladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),Ge,n(L,null,{default:a(()=>[l("PV-Laden")]),_:1}),n(S,{title:"Minimaler Dauerstrom",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":i.chargemode.pv_charging.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_current")},{help:a(()=>[l(' Hier kann eine Stromstärke eingestellt werden, mit dem unabhängig vom vorhandenen Überschuss durchgeladen wird. Hierdurch wird z.B. an Tagen mit häufigem Sonne/Wolken-Wechsel oder mit nur wenig PV-Ertrag ein Laden ohne Unterbrechung ermöglicht. Folglich kann auch Netzbezug für das Fahrzeugladen entstehen, weshalb der niedrigste Stromwert empfohlen wird. Diese Einstellung entspricht weitestgehend dem Lademodus "Min+PV" der Version 1.x. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(S,{title:"SoC-Limit",min:0,max:20,step:1,unit:"%",labels:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:100,value:100},{label:"Aus",value:101}],"model-value":i.chargemode.pv_charging.max_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.max_soc")},{help:a(()=>[l(' Bei der Einstellung "100%" wird die Ladung sofort mit Erreichen der 100% beendet. Dadurch erfolgt KEIN Balancing der Batteriezellen. Ist dies gewünscht (sollte ab und an durchgeführt werden), muss hier "Aus" gewählt werden (Schieberegler ganz nach rechts stellen), um die Ladung MIT Balancing bis zur Beendigung durch das Fahrzeug weiterlaufen zu lassen.'),Qe,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(S,{title:"Mindest-SoC",min:0,max:19,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":i.chargemode.pv_charging.min_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc")},{help:a(()=>[l(' Liegt der Fahrzeug-Ladestand (SoC) unter dem hier eingestellten Wert, dann wird bis zum Erreichen dieses Wertes mit dem eingestellten "Mindest-SoC-Strom" geladen. Dies dient der Sicherstellung eines "Mindest-SoC" - z.B. für eine immer abzudeckende Fahrzeugreichweite - auch wenn kein oder zu wenig Überschuss verfügbar ist (=> Laden mit anteilig Netzstrom). Nach dem Erreichen des "Mindest-SoC" wird bei verfügbarem Überschuss geladen.'),Xe,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(S,{title:"Mindest-SoC-Strom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.pv_charging.min_soc_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc_current")},{help:a(()=>[l(' Wird der oben eingestellte "Mindest-SoC" des Fahrzeuges unterschritten, dann wird unabhängig vom Überschuss ein Ladevorgang mit dem hier festgelegten "Mindest-SoC-Strom" initiiert (ggf. mit anteilig Netzbezug). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Einspeisegrenze beachten",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.chargemode.pv_charging.feed_in_limit,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.feed_in_limit")},{help:a(()=>[l(' Erläuterung siehe "Ladeeinstellungen" -> "PV-Laden" -> "Regelparameter" -> "Regelpunkt Einspeisegrenze" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),Ye,n(L,null,{actions:a(()=>[n(U,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateSchedulePlan(d,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:a(()=>[l(' Im Lademodus "Zielladen" wird der Ladestrom so angepasst, dass das Fahrzeug zum angegebenen Zeitpunkt den eingestellten SoC bzw. die einzuladende Energiemenge erreicht. Anhand des vorgegebenen Ladestroms wird der Zeitpunkt berechnet, an dem die Ladung spätestens starten muss.'),Ke,l(' Ist der berechnete Zeitpunkt des Ladestarts noch nicht erreicht, wird mit Überschuss geladen. Auch nach Erreichen des Ziel-SoCs wird mit Überschuss geladen, solange bis das "SoC-Limit" erreicht wird.'),et,l(" Kann der Ziel-SoC bzw. die Energiemenge NICHT erreicht werden, z.B. weil das Auto zu spät angesteckt wurde oder das Lastmanagement eingegriffen hat, wird bis 20 Minuten nach dem angegebenen Termin mit der Maximalstromstärke geladen. Danach wird der Termin verworfen und mit Überschuss geladen. ")]),default:a(()=>[l(" Zielladen ")]),_:2},1024),(r(!0),h(y,null,E(m.getChargeTemplateScheduledChargingPlans(d),(t,p)=>(r(),f(B,{key:p,title:t.name,collapsible:!0,collapsed:!0},{actions:a(u=>[u.collapsed==!0?(r(),h("span",{key:0,onClick:N(T=>e.updateState(p,!t.active,"active"),["stop"]),class:I(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),h("span",nt,[n(b,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+V(t.limit.soc_scheduled)+"% ",1)])):c("",!0),t.limit.selected=="amount"?(r(),h("span",at,[n(b,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+V(t.limit.amount/1e3)+"kWh ",1)])):c("",!0),n(b,{"fixed-width":"",icon:["fas","clock"]}),l(" "+V(t.time)+" ",1),t.frequency.selected=="once"?(r(),h("span",lt,[n(b,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+V(e.formatDate(t.frequency.once)),1)])):c("",!0),t.frequency.selected=="daily"?(r(),h("span",it,[n(b,{"fixed-width":"",icon:["fas","calendar-week"]})])):c("",!0),t.frequency.selected=="weekly"?(r(),h("span",ot,[n(b,{"fixed-width":"",icon:["fas","calendar-alt"]})])):c("",!0)],10,tt)):c("",!0),u.collapsed==!1?(r(),f(U,{key:1,class:"bg-danger clickable",onClick:T=>m.removeChargeTemplateSchedulePlanModal(d,p,T)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),default:a(()=>[n(P,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(p,u,"name")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitpunkt aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(p,u,"active")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Ziel-Uhrzeit",subtype:"time","model-value":t.time,"onUpdate:modelValue":u=>e.updateState(p,u,"time")},{help:a(()=>[l(" Hier ist die gewünschte Uhrzeit einzustellen, zu welcher das Fahrzeug den gewünschten SoC bzw. die zu ladende Energiemenge BEREITS ERREICHT haben soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(S,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(p,u,"current")},{help:a(()=>[l(" Mit dieser Stromstärke wird der Zeitpunkt berechnet, wann die Ladung mit Netzbezug gestartet werden muss. Wird der Ziel-SoC nicht zum angegebenen Termin erreicht, weil z.B. das Auto erst später angesteckt wurde, wird auch mit einer höheren Stromstärke geladen. Um etwas Puffer zu haben, empfiehlt es sich, etwas weniger als die Maximalstromstärke des Fahrzeugs zu wählen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(v,{title:"Ziel",buttons:[{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.selected")},{help:a(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),f(S,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_scheduled,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc_scheduled")},{help:a(()=>[l(" SoC, der zum angegebenen Zeitpunkt erreicht werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="soc"?(r(),f(S,{key:1,title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_limit,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc_limit")},{help:a(()=>[l(" Nach Erreichen des Ziel-SoCs wird mit Überschuss weiter geladen, bis das SoC-Limit erreicht wird. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="amount"?(r(),f(z,{key:2,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(p,u*1e3,"limit.amount")},{help:a(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zielladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),n(v,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),f(P,{key:3,title:"Datum",subtype:"date","model-value":t.frequency.once,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="weekly"?(r(),h("div",dt,[(r(!0),h(y,null,E(e.weekdays,(u,T)=>(r(),f(v,{key:T,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[T],"onUpdate:modelValue":D=>e.updateState(p,D,"frequency.weekly."+T)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):c("",!0)]),_:2},1032,["title"]))),128)),rt,n(L,null,{actions:a(()=>[n(U,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateTimeChargingPlan(d,t)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:a(()=>[l(" Mit einem Zeitplan kann ein klar abgegrenzter Zeitbereich zum Fahrzeugladen definiert werden. Dies wird häufig genutzt, um einem Fahrzeug kurz vor der Abfahrt Strom anzubieten, damit dessen Vorklimatisierung nicht aus dem Fahrzeugakku, sondern aus der openWB bezogen wird (Enteisung, Vorwärmung, Abkühlung). Nicht von der Vorklimatisierung benötigter Strom erhöht dabei den Fahrzeug-SoC. Um das Stromnetz am Morgen nicht unnötig zu strapazieren, sollte eine moderate Stromvorgabe und ein beschränkter Zeitbereich vorgegeben werden (z.B. max. 10A; 30min - in Übereinstimmung mit den Fahrzeug-App-Vorklimatisierungsvorgaben). ")]),default:a(()=>[l(" Laden nach Zeitplan ")]),_:2},1024),(r(!0),h(y,null,E(m.getChargeTemplateTimeChargingPlans(d),(t,p)=>(r(),f(B,{key:p,title:t.name,collapsible:!0,collapsed:!0},{actions:a(u=>[u.collapsed==!0?(r(),h("span",{key:0,onClick:N(T=>e.updateState(p,!t.active,"active"),["stop"]),class:I(["subheader pill clickable",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),h("span",st,[n(b,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+V(t.limit.soc)+"% ",1)])):c("",!0),t.limit.selected=="amount"?(r(),h("span",mt,[n(b,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+V(t.limit.amount/1e3)+"kWh ",1)])):c("",!0),n(b,{"fixed-width":"",icon:["fas","clock"]}),l(" "+V(t.time[0])+" - "+V(t.time[1])+" ",1),t.frequency.selected=="once"?(r(),h("span",ct,[n(b,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+V(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):c("",!0),t.frequency.selected=="daily"?(r(),h("span",ht,[n(b,{"fixed-width":"",icon:["fas","calendar-week"]})])):c("",!0),t.frequency.selected=="weekly"?(r(),h("span",gt,[n(b,{"fixed-width":"",icon:["fas","calendar-alt"]})])):c("",!0)],10,ut)):c("",!0),u.collapsed==!1?(r(),f(U,{key:1,class:"bg-danger clickable",onClick:T=>m.removeChargeTemplateTimeChargingPlanModal(d,p,T)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("",!0)]),default:a(()=>[n(P,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(p,u,"name")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(p,u,"active")},null,8,["model-value","onUpdate:modelValue"]),n(S,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(p,u,"current")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Ziel",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.selected")},{help:a(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),f(S,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc,"onUpdate:modelValue":u=>e.updateState(p,u,"limit.soc")},{help:a(()=>[l(" Ladestand des Akku (State of Charge, SoC), bis zu welchem maximal geladen werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),t.limit.selected=="amount"?(r(),f(z,{key:1,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(p,u*1e3,"limit.amount")},{help:a(()=>[l(" Maximal zu ladende Energie innerhalb des Zeitfensters. Eignet sich immer dann wenn kein SoC zur Verfügung steht. Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zeitladen schon aktiv ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):c("",!0),n(P,{title:"Zeitpunkt des Ladebeginns",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":u=>e.updateState(p,u,"time.0")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Zeitpunkt des Ladeendes",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":u=>e.updateState(p,u,"time.1")},null,8,["model-value","onUpdate:modelValue"]),n(v,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),f(P,{key:2,title:"Gültig ab",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="once"?(r(),f(P,{key:3,title:"Gültig bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":u=>e.updateState(p,u,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):c("",!0),t.frequency.selected=="weekly"?(r(),h("div",pt,[(r(!0),h(y,null,E(e.weekdays,(u,T)=>(r(),f(v,{key:T,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[T],"onUpdate:modelValue":D=>e.updateState(p,D,"frequency.weekly."+T)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):c("",!0)]),_:2},1032,["title"]))),128))]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:a(t=>[t.collapsed?c("",!0):(r(),f(U,{key:0,class:"bg-danger clickable",onClick:p=>m.removeChargeTemplateModal(d,p)},{default:a(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),n($,{formName:"vehicleConfigForm",onSave:o[5]||(o[5]=i=>e.$emit("save")),onReset:o[6]||(o[6]=i=>e.$emit("reset")),onDefaults:o[7]||(o[7]=i=>e.$emit("defaults"))})])])],64)}const zt=x(we,[["render",bt],["__scopeId","data-v-d7193cf0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/VehicleConfig.vue"]]);export{zt as default}; diff --git a/web/settings/assets/index-b8f06cb8.js b/web/settings/assets/index-720fb9ac.js similarity index 96% rename from web/settings/assets/index-b8f06cb8.js rename to web/settings/assets/index-720fb9ac.js index 76b3858c0b..57d1ed76d7 100644 --- a/web/settings/assets/index-b8f06cb8.js +++ b/web/settings/assets/index-720fb9ac.js @@ -1 +1 @@ -import{_ as w,k as r,l as d,m as v,p as y,q as _,u as o,x as p,y as g,z as f,A as u,B as m,D as C,E as I,F as S,G as Y,I as x,J as D,K as Z,L as X,M as h,N as ee,O as te,T as F,P as se,Q as R,R as L,S as q,U as ne,V as oe,W as ae,X as le,Y as ie,Z as re,$ as de}from"./vendor-f0f38b48.js";import{l as B,f as T,a as V,b as ce,c as ue,d as pe,e as me,F as O,g as E,h as _e,i as he,j as fe,k as ge,m as be,n as ve,o as we,p as ye,q as ke,r as Se,s as Ce,t as Be,u as Oe,v as $e,w as Ie,x as xe,y as Te,z as Ve,A as Me,B as Pe,C as He,D as Ae,E as De,G as Le,H as qe,I as Ee,J as je}from"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import{p as We,a as Re}from"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";import"./vendor-jquery-8576ed22.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))c(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&c(a)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function c(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();const Ne={name:"OpenwbAlert",props:{subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}}};function Fe(e,t,n,c,l,s){return r(),d("div",{class:y(["card-text alert","alert-"+n.subtype])},[v(e.$slots,"default")],2)}const Ue=w(Ne,[["render",Fe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAlert.vue"]]),ze=Object.freeze(Object.defineProperty({__proto__:null,default:Ue},Symbol.toStringTag,{value:"Module"}));B.add(T,V,ce,ue,pe,me);const Ge={name:"OpenwbArrayInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Array,default:()=>[]},noElementsMessage:{type:String,default:()=>"Keine Elemente zugeordnet."}},emits:["update:modelValue"],data(){return{newTag:"",showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},newTagValid:{get(){return this.newTag.length>0&&this.value.indexOf(this.newTag)==-1}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},addTag(){if(this.newTagValid){let e=this.value;e.push(this.newTag),e.sort(),this.value=e,this.newTag=""}this.$refs.tagInput.focus()},removeTag(e){let t=this.value;t.splice(e,1),this.value=t}},components:{FontAwesomeIcon:O}},Je={class:"form-row mb-1"},Ke={class:"col-md-8"},Qe={class:"form-row"},Ye={class:"input-group"},Ze={class:"input-group-prepend"},Xe={class:"input-group-text"},et={class:"input-group-append"},tt={class:"form-row tagList mt-1"},st={key:0,class:"noTag"},nt={key:0,class:"form-row alert alert-info my-1 small"};function ot(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Je,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Ke,[o("div",Qe,[o("div",Ye,[o("div",Ze,[o("div",Xe,[v(e.$slots,"input-prefix",{},()=>[m(a,{"fixed-width":"",icon:["fas","tag"]})],!0)])]),C(o("input",S({ref:"tagInput",type:"text",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>l.newTag=i)},e.$attrs,{onKeyup:t[2]||(t[2]=Y((...i)=>s.addTag&&s.addTag(...i),["enter"]))}),null,16),[[I,l.newTag]]),o("div",et,[o("div",{class:y(["input-group-text",s.newTagValid?"bg-success clickable":"notClickable"]),onClick:t[3]||(t[3]=(...i)=>s.addTag&&s.addTag(...i))},[v(e.$slots,"input-add",{},()=>[m(a,{"fixed-width":"",icon:["fas","plus"]})],!0)],2)])])]),o("div",tt,[s.value.length==0?(r(),d("span",st,[m(a,{icon:["fas","info-circle"]}),p(" "+g(n.noElementsMessage),1)])):u("",!0),(r(!0),d(x,null,D(s.value,(i,b)=>(r(),d("span",{class:"tag",key:b},[v(e.$slots,"element-prefix",{},()=>[m(a,{icon:["fas","tag"]})],!0),p(" "+g(i)+" ",1),m(a,{class:"clickable remove-element",icon:["fas","times-circle"],onClick:$=>s.removeTag(b)},null,8,["onClick"])]))),128))]),l.showHelp?(r(),d("span",nt,[v(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const at=w(Ge,[["render",ot],["__scopeId","data-v-9de93d37"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseArrayInput.vue"]]),lt=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"}));const it={name:"OpenwbAvatar"},rt={class:"avatar"};function dt(e,t,n,c,l,s){return r(),d("div",rt,[v(e.$slots,"default",{},()=>[p("?")],!0)])}const ct=w(it,[["render",dt],["__scopeId","data-v-06082a1a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAvatar.vue"]]),ut=Object.freeze(Object.defineProperty({__proto__:null,default:ct},Symbol.toStringTag,{value:"Module"}));B.add(T,V,E);const pt={name:"OpenwbButtonGroupInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Boolean]},buttons:Object},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},mt={class:"form-row mb-1"},_t={class:"col-md-8"},ht={class:"form-row"},ft={class:"btn-group btn-block btn-group-toggle"},gt=["value"],bt={key:0,class:"form-row alert alert-info my-1 small"};function vt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",mt,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",_t,[o("div",ht,[o("div",ft,[(r(!0),d(x,null,D(n.buttons,i=>(r(),d("label",{key:i.value,class:y(["btn",[s.value==i.buttonValue?"active":"",i.class?i.class:"btn-outline-info"]])},[C(o("input",S({type:"radio","onUpdate:modelValue":t[1]||(t[1]=b=>s.value=b),value:i.buttonValue},e.$attrs),null,16,gt),[[Z,s.value]]),p(" "+g(i.text)+" ",1),m(a,{icon:["fas","check"],style:X([s.value==i.buttonValue?"visibility: visible":"visibility: hidden"])},null,8,["style"])],2))),128))])]),l.showHelp?(r(),d("span",bt,[v(e.$slots,"help")])):u("",!0)])])}const wt=w(pt,[["render",vt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonGroupInput.vue"]]),yt=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"}));B.add(T,V);const kt={name:"OpenwbButtonInput",inheritAttrs:!1,props:{title:String,buttonText:String,disabled:{type:Boolean,default:!1},subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}},data(){return{showHelp:!1}},emits:["buttonClicked"],methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},handleClick(e){this.$emit("buttonClicked",e)}},components:{FontAwesomeIcon:O}},St={class:"form-row mb-1"},Ct={class:"col-md-8"},Bt={class:"form-row"},Ot={key:0,class:"form-row alert alert-info my-1 small"};function $t(e,t,n,c,l,s){const a=_("font-awesome-icon"),i=_("openwb-base-click-button");return r(),d("div",St,[o("label",{onClick:t[0]||(t[0]=(...b)=>s.toggleHelp&&s.toggleHelp(...b)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Ct,[o("div",Bt,[m(i,S({class:(n.disabled?"btn-outline-":"btn-")+n.subtype,disabled:n.disabled},e.$attrs,{onButtonClicked:s.handleClick}),{default:h(()=>[v(e.$slots,"default",{},()=>[p(g(n.buttonText),1)])]),_:3},16,["class","disabled","onButtonClicked"])]),l.showHelp?(r(),d("span",Ot,[v(e.$slots,"help")])):u("",!0)])])}const It=w(kt,[["render",$t],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonInput.vue"]]),xt=Object.freeze(Object.defineProperty({__proto__:null,default:It},Symbol.toStringTag,{value:"Module"}));B.add(_e,he);const Tt={name:"OpenwbCard",components:{FontAwesomeIcon:O},props:{title:{type:String,default:"# no title set #"},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark","pink"].indexOf(e)!==-1},default:"secondary"},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},data(){return{isCollapsed:this.collapsible&&this.collapsed}},methods:{toggleBody(){this.collapsible===!0&&(this.isCollapsed=!this.isCollapsed)}}},Vt={class:"form-group mb-0"},Mt={class:"form-row vaRow mb-0 py-2"},Pt={class:"col"},Ht={class:"card-actions ml-4"},At={key:0,class:"card-actions mr-4"},Dt={key:0,class:"card-body"},Lt={key:1,class:"card-footer"};function qt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",{class:y(["card","border-"+n.subtype])},[o("div",{class:y(["card-header py-1","bg-"+n.subtype]),onClick:t[0]||(t[0]=(...i)=>s.toggleBody&&s.toggleBody(...i))},[o("div",Vt,[o("div",Mt,[o("div",Pt,[v(e.$slots,"header",{collapsed:l.isCollapsed},()=>[p(g(n.title),1)])])])]),o("span",Ht,[e.$slots.actions?(r(),d("span",At,[v(e.$slots,"actions",{collapsed:l.isCollapsed})])):u("",!0),n.collapsible?(r(),f(a,{key:1,"fixed-width":"",icon:l.isCollapsed?["fas","chevron-right"]:["fas","chevron-down"]},null,8,["icon"])):u("",!0)])],2),l.isCollapsed===!1?(r(),d("div",Dt,[v(e.$slots,"default")])):u("",!0),e.$slots.footer&&l.isCollapsed===!1?(r(),d("div",Lt,[v(e.$slots,"footer")])):u("",!0)],2)}const Et=w(Tt,[["render",qt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCard.vue"]]),jt=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"}));B.add(T,V);const Wt={name:"OpenwbCheckboxInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Boolean}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Rt={class:"form-row mb-1"},Nt={class:"col-md-8"},Ft={class:"form-row"},Ut={key:0,class:"form-row alert alert-info my-1 small"};function zt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Rt,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Nt,[o("div",Ft,[C(o("input",S({class:"form-control",type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[ee,s.value]])]),l.showHelp?(r(),d("span",Ut,[v(e.$slots,"help")])):u("",!0)])])}const Gt=w(Wt,[["render",zt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCheckboxInput.vue"]]),Jt=Object.freeze(Object.defineProperty({__proto__:null,default:Gt},Symbol.toStringTag,{value:"Module"}));const Kt={name:"OpenwbClickButton",props:{title:String},emits:["buttonClicked"],methods:{click(e){this.$emit("buttonClicked",e)}}};function Qt(e,t,n,c,l,s){return r(),d("button",{type:"button",class:"btn btn-block",onClick:t[0]||(t[0]=te((...a)=>s.click&&s.click(...a),["prevent"]))},[v(e.$slots,"default",{},()=>[p(g(n.title),1)],!0)])}const Yt=w(Kt,[["render",Qt],["__scopeId","data-v-2e9c095b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseClickButton.vue"]]),Zt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"}));B.add(fe,ge);const Xt={name:"OpenwbCopyToClipboard",components:{FontAwesomeIcon:O},props:{tooltip:{type:String,default:"Wert kopieren"}},data(){return{clipboardApiAvailable:navigator.clipboard!=null,isCopied:!1}},methods:{click(){if(console.debug(this.$refs["slot-wrapper"].innerText),this.clipboardApiAvailable)navigator.clipboard.writeText(this.$refs["slot-wrapper"].innerText).then(()=>{this.isCopied=!0},()=>{console.error("copy to clipboard failed")});else{if(console.debug("clipboard api not supported/enabled, fallback to select"),window.getSelection){console.debug("using 'window.getSelection'");const e=window.getSelection(),t=document.createRange();t.selectNodeContents(this.$refs["slot-wrapper"]),e.removeAllRanges(),e.addRange(t);return}if(document.body.createTextRange){console.debug("using 'document.body.createTextRange'");const e=document.body.createTextRange();e.moveToElementText(this.$refs["slot-wrapper"]),e.select()}else console.warn("could not select text, unsupported browser")}}}},es=["title"];function ts(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("span",{ref:"slot-wrapper",title:n.tooltip,class:"copy-me",onClick:t[0]||(t[0]=(...i)=>s.click&&s.click(...i))},[v(e.$slots,"default",{},void 0,!0),m(a,{"fixed-width":"",icon:l.isCopied?["fas","clipboard-check"]:["fas","clipboard"]},null,8,["icon"])],8,es)}const ss=w(Xt,[["render",ts],["__scopeId","data-v-81826ebe"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCopyToClipboard.vue"]]),ns=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"}));B.add(T,V,E);const os={name:"OpenwbHeading",inheritAttrs:!1,components:{FontAwesomeIcon:O},data(){return{showHelp:!1}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},as={key:0,class:"actions"},ls={class:""},is={key:0,class:"form-row alert alert-info small"};function rs(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d(x,null,[o("div",S({class:"card-text card-text-heading"},e.$attrs),[o("div",{class:"heading-text",onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i))},[v(e.$slots,"default",{},void 0,!0),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),e.$slots.actions?(r(),d("span",as,[v(e.$slots,"actions",{},void 0,!0)])):u("",!0)],16),o("div",ls,[l.showHelp?(r(),d("span",is,[v(e.$slots,"help",{},void 0,!0)])):u("",!0)])],64)}const ds=w(os,[["render",rs],["__scopeId","data-v-cbe4e96e"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseHeading.vue"]]),cs=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),us={name:"OpenwbModalDialog",emits:["modal-result"],props:{title:String,subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},buttons:{type:Array,default:void 0},footerAlignment:{type:String,validator:function(e){return["around","between","center","end","start"].indexOf(e)!==-1},default:"end"},preventClose:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},computed:{myButtons(){var e=[];return this.buttons!==void 0&&(e=this.buttons),this.preventClose||e.push({text:"Schließen",event:"close"}),e}},methods:{handleClick(e){e.stopPropagation();let t=e.target.getAttribute("data-event");t===null&&(t="close"),(t!="close"||!this.preventClose)&&this.$emit("modal-result",t)}}},ps=o("div",{class:"modal-backdrop fade show"},null,-1),ms={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},_s={class:"modal-content"},hs={class:"modal-title"},fs={class:"modal-body"},gs=["data-event"];function bs(e,t,n,c,l,s){return n.show?(r(),f(F,{key:0,to:"body"},[ps,o("div",{class:"modal fade d-block show",role:"dialog",onClick:t[2]||(t[2]=(...a)=>s.handleClick&&s.handleClick(...a))},[o("div",ms,[o("div",_s,[o("div",{class:y(["modal-header","bg-"+n.subtype])},[o("h4",hs,g(n.title),1),n.preventClose?u("",!0):(r(),d("button",{key:0,type:"button",class:"close",onClick:t[0]||(t[0]=(...a)=>s.handleClick&&s.handleClick(...a))}," × "))],2),o("div",fs,[v(e.$slots,"default",{},()=>[p("# Body #")])]),s.myButtons.length>0?(r(),d("div",{key:0,class:y(["modal-footer d-flex","justify-content-"+n.footerAlignment])},[(r(!0),d(x,null,D(s.myButtons,a=>(r(),d("button",{key:a.text,type:"button",class:y(["btn",a.subtype?"btn-"+a.subtype:"btn-secondary"]),"data-dismiss":"modal","data-event":a.event?a.event:"close",onClick:t[1]||(t[1]=(...i)=>s.handleClick&&s.handleClick(...i))},g(a.text),11,gs))),128))],2)):u("",!0)])])])])):u("",!0)}const vs=w(us,[["render",bs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseModalDialog.vue"]]),ws=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"}));B.add(T,V,be);const ys={name:"OpenwbNumberInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,precision:{type:Number,default:void 0},emptyValue:{required:!1,default:null}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.precision!==void 0?parseFloat(Math.round(this.modelValue*Math.pow(10,this.precision))/Math.pow(10,this.precision)):this.modelValue},set(e){(isNaN(e)||typeof e!="number")&&(e=this.emptyValue),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},ks={class:"form-row mb-1"},Ss={class:"col-md-8"},Cs={class:"form-row"},Bs={class:"input-group"},Os={class:"input-group-prepend"},$s={class:"input-group-text"},Is={key:0,class:"input-group-append"},xs={class:"input-group-text"},Ts={key:0,class:"form-row alert alert-info my-1 small"};function Vs(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",ks,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Ss,[o("div",Cs,[o("div",Bs,[o("div",Os,[o("div",$s,[m(a,{"fixed-width":"",icon:["fas","calculator"]})])]),C(o("input",S({type:"number",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[I,s.value,void 0,{number:!0}]]),n.unit?(r(),d("div",Is,[o("div",xs,g(n.unit),1)])):u("",!0)])]),l.showHelp?(r(),d("span",Ts,[v(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const Ms=w(ys,[["render",Vs],["__scopeId","data-v-c2fb7eef"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseNumberInput.vue"]]),Ps=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"}));B.add(T,V,ve,we);const Hs={name:"OpenwbRangeInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},labels:{type:Array}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{label(){var e;return this.labels&&this.sliderValue!=null?this.sliderValues.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Ds,[o("div",Ls,[s.label?(r(),d("label",qs,g(s.label),1)):u("",!0),o("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[1]||(t[1]=(...i)=>s.decrement&&s.decrement(...i))},[m(a,{icon:["fas","step-backward"]})]),o("div",Es,[C(o("input",S({type:"range",class:"form-control-range rangeInput",min:n.min,max:n.max,step:n.step,"onUpdate:modelValue":t[2]||(t[2]=i=>s.sliderValue=i)},e.$attrs),null,16,js),[[I,s.sliderValue,void 0,{number:!0}]])]),o("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[3]||(t[3]=(...i)=>s.increment&&s.increment(...i))},[m(a,{icon:["fas","step-forward"]})])]),l.showHelp?(r(),d("div",Ws,[o("div",Rs,[v(e.$slots,"help",{},void 0,!0)])])):u("",!0)])])}const Fs=w(Hs,[["render",Ns],["__scopeId","data-v-449fb0a5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseRangeInput.vue"]]),Us=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"}));B.add(T,V);const zs={name:"OpenwbSelectInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Array]},groups:Object,options:Object,notSelected:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Gs={class:"form-row mb-1"},Js={class:"col-md-8"},Ks={class:"form-row"},Qs={key:0,value:void 0,disabled:""},Ys=["value"],Zs=["label"],Xs=["value"],en={key:0,class:"form-row alert alert-info my-1 small"};function tn(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Gs,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Js,[o("div",Ks,[C(o("select",S({class:"col form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),[n.notSelected!==void 0?(r(),d("option",Qs," -- "+g(n.notSelected)+" -- ",1)):u("",!0),(r(!0),d(x,null,D(n.options,i=>(r(),d("option",{key:i.value,value:i.value},g(i.text),9,Ys))),128)),(r(!0),d(x,null,D(n.groups,i=>(r(),d("optgroup",{key:i.label,label:i.label},[(r(!0),d(x,null,D(i.options,b=>(r(),d("option",{key:b.value,value:b.value},g(b.text),9,Xs))),128))],8,Zs))),128))],16),[[se,s.value]]),v(e.$slots,"append")]),l.showHelp?(r(),d("span",en,[v(e.$slots,"help")])):u("",!0)])])}const sn=w(zs,[["render",tn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSelectInput.vue"]]),nn=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"}));B.add(E,ye,ke);const on={name:"OpenwbSubmitButtons",components:{FontAwesomeIcon:O},props:{formName:{type:String,default:void 0},hideReset:{type:Boolean,default:!1},hideDefaults:{type:Boolean,default:!0}},data(){return{showModalReset:!1,showModalDefaults:!1}},emits:["reset","defaults","save"],computed:{showModalSave(){return this.$store.state.local.savingData}},methods:{showResetModal(){this.showModalReset=!0},handleModalReset(e){this.showModalReset=!1,e=="confirm"&&this.$emit("reset")},showDefaultsModal(){this.showModalDefaults=!0},handleModalDefaults(e){this.showModalDefaults=!1,e=="confirm"&&this.$emit("defaults")},saveSettings(){if(this.formName){if(!document.forms[this.formName].reportValidity()){console.debug("form invalid");return}}else console.debug("no form to validate");this.$emit("save")}}},an={class:"row justify-content-center mb-1"},ln={class:"col-md-4 d-flex py-1 justify-content-center"},rn={key:0,class:"col-md-4 d-flex py-1 justify-content-center"},dn={key:1,class:"col-md-4 d-flex py-1 justify-content-center"};function cn(e,t,n,c,l,s){const a=_("openwb-base-modal-dialog"),i=_("font-awesome-icon");return r(),d(x,null,[m(a,{show:s.showModalSave,title:"Speichern",subtype:"success",preventClose:!0},{default:h(()=>[p(" Einstellungen werden gespeichert... ")]),_:1},8,["show"]),m(a,{show:l.showModalReset,title:"Änderungen verwerfen",subtype:"warning",buttons:[{text:"Ok",event:"confirm",subtype:"warning"}],onModalResult:s.handleModalReset},{default:h(()=>[p(" Wollen Sie die nicht gespeicherten Änderungen wirklich verwerfen? ")]),_:1},8,["show","onModalResult"]),m(a,{show:l.showModalDefaults,title:"Werkseinstellungen",subtype:"danger",buttons:[{text:"Ok",event:"confirm",subtype:"danger"}],onModalResult:s.handleModalDefaults},{default:h(()=>[p(" Wollen Sie wirklich alle Werte dieser Seite auf die Werkseinstellungen zurücksetzen? ")]),_:1},8,["show","onModalResult"]),o("div",an,[o("div",ln,[o("button",{id:"saveSettingsBtn",type:"button",class:"btn btn-block btn-success",onClick:t[0]||(t[0]=(...b)=>s.saveSettings&&s.saveSettings(...b))},[p(" Speichern "),m(i,{"fixed-width":"",icon:["fas","check"]})])]),n.hideReset?u("",!0):(r(),d("div",rn,[o("button",{id:"modalResetBtn",type:"button",class:"btn btn-block btn-warning",onClick:t[1]||(t[1]=(...b)=>s.showResetModal&&s.showResetModal(...b))},[p(" Änderungen verwerfen "),m(i,{"fixed-width":"",icon:["fas","undo"]})])])),n.hideDefaults?u("",!0):(r(),d("div",dn,[o("button",{id:"modalDefaultsBtn",type:"button",class:"btn btn-block btn-danger",onClick:t[2]||(t[2]=(...b)=>s.showDefaultsModal&&s.showDefaultsModal(...b))},[p(" Werkseinstellungen "),m(i,{"fixed-width":"",icon:["fas","times"]})])]))])],64)}const un=w(on,[["render",cn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSubmitButtons.vue"]]),pn=Object.freeze(Object.defineProperty({__proto__:null,default:un},Symbol.toStringTag,{value:"Module"}));B.add(T,V,Se,Ce,Be,Oe,$e,Ie,xe,Te,Ve,Me,Pe,He);const mn={name:"OpenwbTextInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Object]},subtype:{validator:function(e){return["text","email","host","url","user","json","password","time","date","month","year"].indexOf(e)!==-1},default:"text"},pattern:String,unit:String,emptyValue:{required:!1,default:null},showQuickButtons:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{showHelp:!1,showPassword:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.warn("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.error("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else e==""&&(e=this.emptyValue),this.$emit("update:modelValue",e)}},inputRef(){switch(this.subtype){case"json":return this.$refs.jsonInput;case"password":return this.$refs.passwordInput;case"host":return this.$refs.hostInput;case"email":case"url":return this.$refs.urlInput;case"time":return this.$refs.timeInput;case"date":return this.$refs.dateInput;case"month":return this.$refs.monthInput;case"year":return this.$refs.yearInput}return this.$refs.textInput}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},togglePassword(){this.showPassword=!this.showPassword},modify(e){var t,n=new Date(this.modelValue);switch(this.subtype){case"date":n.setDate(n.getDate()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0")+"-"+String(n.getDate()).padStart(2,"0");break;case"month":n.setMonth(n.getMonth()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0");break;case"year":n.setYear(n.getFullYear()+e),t=String(n.getFullYear());break;default:console.warn(`cannot modify input of subtype '${this.subtype}'`);return}t>this.inputRef.max||t(L("data-v-6927d479"),e=e(),q(),e),_n={class:"form-row mb-1"},hn={class:"col-md-8"},fn={class:"form-row"},gn={class:"input-group"},bn={class:"input-group-prepend"},vn={class:"input-group-text"},wn=["pattern"],yn=["pattern"],kn=["type","pattern"],Sn=["type"],Cn={key:9,class:"input-group-append"},Bn={class:"input-group-text"},On={class:"input-group-text"},$n=U(()=>o("div",{class:"input-group-text"},"-",-1)),In=[$n],xn=U(()=>o("div",{class:"input-group-text"},"+",-1)),Tn=[xn],Vn={key:0,class:"form-row alert alert-info my-1 small"};function Mn(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",_n,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",hn,[o("div",fn,[o("div",gn,[o("div",bn,[o("div",vn,[n.subtype=="text"?(r(),f(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("",!0),n.subtype=="email"?(r(),f(a,{key:1,"fixed-width":"",icon:["fas","envelope"]})):u("",!0),n.subtype=="host"?(r(),f(a,{key:2,"fixed-width":"",icon:["fas","network-wired"]})):u("",!0),n.subtype=="url"?(r(),f(a,{key:3,"fixed-width":"",icon:["fas","globe"]})):u("",!0),n.subtype=="user"?(r(),f(a,{key:4,"fixed-width":"",icon:["fas","user"]})):u("",!0),n.subtype=="json"?(r(),f(a,{key:5,"fixed-width":"",icon:["fas","code"]})):u("",!0),n.subtype=="password"?(r(),f(a,{key:6,"fixed-width":"",icon:l.showPassword?["fas","unlock"]:["fas","lock"]},null,8,["icon"])):u("",!0),n.subtype=="time"?(r(),f(a,{key:7,"fixed-width":"",icon:["fas","clock"]})):u("",!0),n.subtype=="date"||n.subtype=="month"||n.subtype=="year"?(r(),f(a,{key:8,"fixed-width":"",icon:["fas","calendar-day"]})):u("",!0)])]),["text","user"].includes(n.subtype)?C((r(),d("input",S({key:0,ref:"textInput",type:"text",class:["form-control",{invalid:l.inputInvalid}],"onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,wn)),[[I,s.value]]):u("",!0),n.subtype=="json"?C((r(),d("input",S({key:1,ref:"jsonInput",type:"text",class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,yn)),[[I,s.value]]):u("",!0),n.subtype=="password"?C((r(),d("input",S({key:2,ref:"passwordInput",type:l.showPassword?"text":"password",class:"form-control","onUpdate:modelValue":t[3]||(t[3]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,kn)),[[R,s.value]]):u("",!0),n.subtype=="host"?C((r(),d("input",S({key:3,ref:"hostInput",type:"text",class:"form-control","onUpdate:modelValue":t[4]||(t[4]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]):u("",!0),["email","url"].includes(n.subtype)?C((r(),d("input",S({key:4,refs:"urlInput",type:n.subtype,class:"form-control","onUpdate:modelValue":t[5]||(t[5]=i=>s.value=i)},e.$attrs),null,16,Sn)),[[R,s.value]]):u("",!0),n.subtype=="time"?C((r(),d("input",S({key:5,ref:"timeInput",type:"time",class:"form-control","onUpdate:modelValue":t[6]||(t[6]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]):u("",!0),n.subtype=="date"?C((r(),d("input",S({key:6,type:"date",ref:"dateInput",class:"form-control","onUpdate:modelValue":t[7]||(t[7]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]):u("",!0),n.subtype=="month"?C((r(),d("input",S({key:7,type:"month",ref:"monthInput",class:"form-control","onUpdate:modelValue":t[8]||(t[8]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]):u("",!0),n.subtype=="year"?C((r(),d("input",S({key:8,type:"number",ref:"yearInput",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]):u("",!0),n.unit?(r(),d("div",Cn,[o("div",Bn,g(n.unit),1)])):u("",!0),n.subtype=="password"?(r(),d("div",{key:10,class:"input-group-append clickable",onClick:t[10]||(t[10]=(...i)=>s.togglePassword&&s.togglePassword(...i))},[o("div",On,[m(a,{"fixed-width":"",icon:l.showPassword?["far","eye"]:["far","eye-slash"]},null,8,["icon"])])])):u("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(r(),d("div",{key:11,class:"input-group-append clickable",onClick:t[11]||(t[11]=i=>s.modify(-1))},[...In])):u("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(r(),d("div",{key:12,class:"input-group-append clickable",onClick:t[12]||(t[12]=i=>s.modify(1))},[...Tn])):u("",!0)])]),l.showHelp?(r(),d("span",Vn,[v(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const Pn=w(mn,[["render",Mn],["__scopeId","data-v-6927d479"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextInput.vue"]]),Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"}));B.add(T,V);const An={name:"OpenwbTextareaInput",inheritAttrs:!1,props:{title:String,modelValue:{String,Object},subtype:{validator:function(e){return["text","json"].indexOf(e)!==-1},default:"text"}},emits:["update:modelValue"],data(){return{showHelp:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.debug("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue,void 0,2):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.warn("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else this.$emit("update:modelValue",e)}},length:{get(){return this.value!==void 0?this.value.length:0}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Dn={class:"form-row mb-1"},Ln={class:"col-md-8"},qn={class:"form-row"},En={class:"input-group"},jn={class:"input-group-prepend"},Wn={class:"input-group-text"},Rn={key:2,class:"input-group-append"},Nn={class:"input-group-text"},Fn={class:"form-text text-muted text-right"},Un={key:0,class:"form-row alert alert-info my-1 small"};function zn(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Dn,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Ln,[o("div",qn,[o("div",En,[o("div",jn,[o("div",Wn,[n.subtype=="text"?(r(),f(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("",!0),n.subtype=="json"?(r(),f(a,{key:1,"fixed-width":"",icon:["fas","code"]})):u("",!0)])]),n.subtype==="json"?C((r(),d("textarea",S({key:0,ref:"jsonInput",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value,void 0,{lazy:!0}]]):C((r(),d("textarea",S({key:1,class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]),e.$attrs.maxlength?(r(),d("div",Rn,[o("div",Nn,[o("small",Fn,g(s.length)+" / "+g(e.$attrs.maxlength),1)])])):u("",!0)])]),l.showHelp?(r(),d("span",Un,[v(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const Gn=w(An,[["render",zn],["__scopeId","data-v-3d93046b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextarea.vue"]]),Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"}));const Kn={name:"OpenwbToast",emits:["dismiss","hide"],props:{topic:{type:String,required:!0},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},source:{validator:function(e){return["system","client","command"].indexOf(e)!==-1}},timestamp:{type:Number}},data(){return{handle:void 0,relativeTime:void 0,hidden:!1}},methods:{dismiss(){this.$emit("dismiss",{topic:this.topic})},updateRelativeTime(){const e={year:31536e6,month:2628e6,day:864e5,hour:36e5,minute:6e4,second:1e3};var t=new Intl.RelativeTimeFormat("de",{numeric:"auto"});const c=new Date-this.timestamp*1e3;for(var l in e)if(Math.abs(c)>e[l]){this.relativeTime=t.format(Math.round(-c/e[l]),l);break}c>10*1e3&&!this.hidden&&(this.hidden=!0,this.$emit("hide",{topic:this.topic}))}},mounted(){this.handle=window.setInterval(this.updateRelativeTime,1e3)},unmounted(){window.clearInterval(this.handle)}},z=e=>(L("data-v-c51b5764"),e=e(),q(),e),Qn=z(()=>o("strong",{class:"pr-2 mr-auto"},"OpenWB",-1)),Yn={key:0,class:"time-diff"},Zn=z(()=>o("span",{"aria-hidden":"true"},"×",-1)),Xn=[Zn],eo={class:"toast-body"};function to(e,t,n,c,l,s){return r(),d("div",{class:y(["toast","border-"+n.subtype]),role:"alert"},[o("div",{class:y(["toast-header","bg-"+n.subtype])},[Qn,n.timestamp?(r(),d("small",Yn,g(l.relativeTime),1)):u("",!0),o("button",{type:"button",class:"ml-2 mb-1 close","data-dismiss":"toast","aria-label":"Close",onClick:t[0]||(t[0]=(...a)=>s.dismiss&&s.dismiss(...a))},[...Xn])],2),o("div",eo,[v(e.$slots,"default",{},void 0,!0)])],2)}const so=w(Kn,[["render",to],["__scopeId","data-v-c51b5764"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseToast.vue"]]),no=Object.freeze(Object.defineProperty({__proto__:null,default:so},Symbol.toStringTag,{value:"Module"}));B.add(Ae);const oo={name:"OpenwbNavBar",components:{FontAwesomeIcon:O},computed:{nodeEnv(){return"development"}},watch:{$route(){this.$refs.collapsibleNavbar.classList.remove("show"),this.$refs.navbarButton.classList.add("collapsed"),this.$refs.navbarButton.setAttribute("aria-expanded",!1)}}},P=e=>(L("data-v-e7a6d0c0"),e=e(),q(),e),ao={class:"navbar navbar-expand-lg bg-dark navbar-dark fixed-top"},lo=P(()=>o("a",{class:"navbar-brand",href:"/openWB/web/"},[o("span",null,"openWB")],-1)),io={class:"navbar-toggler mr-5",type:"button","data-toggle":"collapse","data-target":"#collapsibleNavbar",ref:"navbarButton"},ro=P(()=>o("span",{class:"navbar-toggler-icon"},null,-1)),co=[ro],uo={class:"collapse navbar-collapse navbar-nav-scroll",id:"collapsibleNavbar",ref:"collapsibleNavbar"},po={class:"navbar-nav"},mo={class:"nav-item"},_o={class:"nav-item dropdown nav-separator-after"},ho=P(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Auswertungen ",-1)),fo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},go={class:"nav-item dropdown"},bo=P(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Einstellungen ",-1)),vo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},wo={class:"nav-item dropdown"},yo=P(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Ladeeinstellungen ",-1)),ko={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},So={class:"nav-item dropdown"},Co=P(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Konfiguration ",-1)),Bo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},Oo=P(()=>o("div",{class:"dropdown-divider"},null,-1)),$o=P(()=>o("a",{href:"modules/legacy_smart_home/smarthomeconfig.php",class:"dropdown-item",target:"_blank"}," SmartHome ",-1)),Io={class:"nav-item dropdown"},xo=P(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," System ",-1)),To={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},Vo={class:"nav-item nav-separator-before"},Mo={class:"nav-link",href:"https://github.com/openWB/core/wiki",target:"_blank"};function Po(e,t,n,c,l,s){const a=_("router-link"),i=_("font-awesome-icon");return r(),d("nav",ao,[lo,o("button",io,[...co],512),o("div",uo,[o("ul",po,[o("li",mo,[m(a,{to:"/Status",class:"nav-link","active-class":"active disabled"},{default:h(()=>[p(" Status ")]),_:1})]),o("li",_o,[ho,o("div",fo,[m(a,{to:"/Logging/ChargeLog",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Ladeprotokoll ")]),_:1}),m(a,{to:"/Logging/Chart",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Diagramme ")]),_:1})])]),o("li",go,[bo,o("div",vo,[m(a,{to:"/GeneralConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Allgemein ")]),_:1}),m(a,{to:"/OptionalComponents",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Optionale Hardware ")]),_:1})])]),o("li",wo,[yo,o("div",ko,[m(a,{to:"/GeneralChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Übergreifendes ")]),_:1}),m(a,{to:"/InstantChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Sofortladen ")]),_:1}),m(a,{to:"/PVChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" PV-Laden ")]),_:1}),m(a,{to:"/TimeChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Zeitladen ")]),_:1}),m(a,{to:"/ScheduledChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Zielladen ")]),_:1})])]),o("li",So,[Co,o("div",Bo,[m(a,{to:"/HardwareInstallation",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Geräte und Komponenten ")]),_:1}),m(a,{to:"/LoadManagementConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Lastmanagement ")]),_:1}),m(a,{to:"/ChargePointInstallation",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Ladepunkte ")]),_:1}),m(a,{to:"/VehicleConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Fahrzeuge ")]),_:1}),Oo,$o])]),o("li",Io,[xo,o("div",To,[m(a,{to:"/System/CloudConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" openWB Cloud ")]),_:1}),m(a,{to:"/System/MqttBridgeConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" MQTT-Brücken ")]),_:1}),m(a,{to:"/System/DebugConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Fehlersuche ")]),_:1}),m(a,{to:"/System/Support",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Support ")]),_:1}),m(a,{to:"/System/DataManagement",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Datenverwaltung ")]),_:1}),m(a,{to:"/System/SystemConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" System ")]),_:1}),m(a,{to:"/System/LegalSettings",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Rechtliches ")]),_:1})])]),o("li",Vo,[o("a",Mo,[p(" Wiki "),m(i,{"fixed-width":"",icon:["fas","external-link-alt"]})])])])],512)])}const Ho=w(oo,[["render",Po],["__scopeId","data-v-e7a6d0c0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageNavbar.vue"]]);const Ao={name:"OpenwbPageFooter"},Do={id:"footer",class:"footer bg-dark text-light font-small"},Lo={class:"container text-center"};function qo(e,t,n,c,l,s){return r(),d("footer",Do,[o("div",Lo,[o("small",null," Sie befinden sich hier: Einstellungen / "+g(e.$route.meta.heading),1)])])}const Eo=w(Ao,[["render",qo],["__scopeId","data-v-3c9a239a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageFooter.vue"]]);B.add(De);const jo={name:"OpenwbDonationBanner",components:{FontAwesomeIcon:O}},Wo={class:"mt-3 alert alert-dark text-center"},Ro=o("br",null,null,-1),No=o("br",null,null,-1),Fo={action:"https://www.paypal.com/cgi-bin/webscr",method:"post",target:"_blank"},Uo=o("input",{type:"hidden",name:"cmd",value:"_s-xclick"},null,-1),zo=o("input",{type:"hidden",name:"hosted_button_id",value:"2K8C4Y2JTGH7U"},null,-1),Go={type:"submit",class:"btn btn-primary"};function Jo(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Wo,[p(" Open Source made with love!"),Ro,p(" Jede Spende hilft die Weiterentwicklung von openWB voranzutreiben"),No,o("form",Fo,[Uo,zo,o("button",Go,[p(" Spenden "),m(a,{icon:["fab","paypal"]})])])])}const Ko=w(jo,[["render",Jo],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageDonationBanner.vue"]]),Qo={name:"ComponentState",data(){return{mqttTopicsToSubscribe:[]}},emits:["reset","defaults","save"],computed:{weekdays(){return["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"]},chargeModes(){return["instant_charging","pv_charging","scheduled_charging","time_charging","standby","stop"]},mqttClientId(){return this.$root.mqttClientId}},methods:{updateState(e,t,n=void 0){console.debug("updateState:",e,t,n),this.$store.commit({type:"updateTopic",topic:e,objectPath:n,payload:t})},getWildcardIndexList(e,t=!1){let n=e;t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$");let c=Object.keys(this.$store.state.mqtt).filter(l=>l.match(n));return c.forEach((l,s,a)=>{a[s]=parseInt(l.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""))}),c},getWildcardTopics(e,t=!1){let n=e;return t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(this.$store.state.mqtt).filter(c=>c.match(n)).reduce((c,l)=>({...c,[l]:this.$store.state.mqtt[l]}),{})},formatDate(e,t={year:"numeric",month:"2-digit",day:"2-digit"}){return new Date(e).toLocaleDateString(void 0,t)},formatNumber(e,t=0,n=t,c=1){return(e*c).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:n})},formatNumberTopic(e,t=0,n=t,c=1){return this.$store.state.mqtt[e]?this.formatNumber(this.$store.state.mqtt[e],t,n,c):"-"},formatPhaseArrayNumberTopic(e,t=0,n=t,c=1){return this.$store.state.mqtt[e]?this.$store.state.mqtt[e].map(l=>this.formatNumber(l,t,n,c)).join(" / "):"- / - / -"},translateChargeMode(e){switch(e){case"instant_charging":return"Sofort";case"pv_charging":return"PV";case"scheduled_charging":return"Zielladen";case"time_charging":return"Zeitladen";case"standby":return"Standby";case"stop":return"Stop";default:return console.warn("unknown charge mode:",e),e}}},mounted(){`openWB/log/${this.mqttClientId}/data`in this.$store.state.mqtt||this.mqttTopicsToSubscribe.push("openWB/log/"+this.mqttClientId+"/data"),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?console.debug("skipping init of wildcard topic:",e):Object.keys(this.$store.state.mqtt).includes(e)?console.error("multiple subscriptions of topic!",e):this.$store.commit("addTopic",{topic:e,payload:void 0})}),this.$root.doSubscribe(this.mqttTopicsToSubscribe)},unmounted(){this.$root.doUnsubscribe(this.mqttTopicsToSubscribe),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?(console.debug("expanding wildcard topic:",e),Object.keys(this.getWildcardTopics(e)).forEach(t=>{console.debug("removing wildcardTopic:",t),this.$store.commit("removeTopic",t)})):this.$store.commit("removeTopic",e)})}},G=w(Qo,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/mixins/ComponentState.vue"]]);B.add(Le,qe);const Yo={name:"OpenwbPageMessages",mixins:[G],components:{FontAwesomeIcon:O,FontAwesomeLayers:Ee,FontAwesomeLayersText:je},data(){return{mqttTopicsToSubscribe:["openWB/system/messages/+","openWB/command/"+this.$root.mqttClientId+"/messages/+","openWB/command/"+this.$root.mqttClientId+"/error"],showAllMessages:!1,hiddenMessages:[]}},computed:{alertLevel(){return this.messages.reduce((t,n)=>((t=="light"&&["info","success","warning","danger"].includes(n.type)||t=="info"&&["success","warning","danger"].includes(n.type)||t=="success"&&["warning","danger"].includes(n.type)||t=="warning"&&n.type=="danger")&&(t=n.type),t),"light")},messages(){const e=[];return this.alertData&&e.push({topic:"openWB/command/"+this.$root.mqttClientId+"/error",source:"command",type:"danger",message:`Bei der Verarbeitung des Befehls '`+this.alertData.command+`' mit den Parametern '`+this.alertData.data+"' ist ein Fehler aufgetreten:
"+this.alertData.error+"
"}),this.systemMessages.forEach(t=>{e.push(t)}),this.clientMessages.forEach(t=>{e.push(t)}),e.sort(this.compareMessagesByTimestamp),e},recentMessages(){return this.showAllMessages?this.messages:this.messages.filter(e=>!this.hiddenMessages.includes(e.topic))},messageIndicatorClass(){return"text-"+this.alertLevel},alertData(){return this.$store.state.mqtt["openWB/command/"+this.$root.mqttClientId+"/error"]},systemMessages(){let e=this.getWildcardTopics("openWB/system/messages/+");var t=[];for(const[n,c]of Object.entries(e))t.push({topic:n,...c});return t},clientMessages(){let e=this.getWildcardTopics("openWB/command/"+this.$root.mqttClientId+"/messages/+");var t=[];for(const[n,c]of Object.entries(e))t.push({topic:n,...c});return t}},methods:{toggleAllMessages(){this.showAllMessages=!this.showAllMessages},compareMessagesByTimestamp(e,t){return t.timestamp-e.timestamp},clearTopic(e){this.$root.doPublish(e,void 0)},dismissError(){this.clearTopic("openWB/command/"+this.$root.mqttClientId+"/error")},dismissMessage(e){this.clearTopic(e.topic);var t=this.hiddenMessages.indexOf(e.topic);t>-1&&this.hiddenMessages.splice(t,1)},dismissAllMessages(){this.messages.forEach(e=>{this.clearTopic(e.topic)}),this.hiddenMessages=[],this.toggleAllMessages()},hideMessage(e){this.hiddenMessages.includes(e.topic)||this.hiddenMessages.push(e.topic)}}},Zo=["innerHTML"];function Xo(e,t,n,c,l,s){const a=_("font-awesome-icon"),i=_("font-awesome-layers-text"),b=_("font-awesome-layers"),$=_("openwb-base-alert"),M=_("openwb-base-click-button"),H=_("openwb-base-toast");return r(),d(x,null,[(r(),f(F,{to:"body"},[o("div",{id:"message-indicator",class:y(["text-light mt-1 p-2 mr-1 clickable",l.showAllMessages?"active":""]),onClick:t[0]||(t[0]=(...A)=>s.toggleAllMessages&&s.toggleAllMessages(...A))},[m(b,{"full-width":"",style:{"font-size":"175%"}},{default:h(()=>[m(a,{"fixed-width":"",icon:l.showAllMessages?["fas","bell"]:["far","bell"],class:y(s.messageIndicatorClass)},null,8,["icon","class"]),s.messages.length>0?(r(),f(i,{key:0,counter:"",value:s.messages.length,position:"top-right",class:"message-counter bg-light text-dark"},null,8,["value"])):u("",!0)]),_:1})],2)])),s.recentMessages.length>0||l.showAllMessages?(r(),d("div",{key:0,class:y(["openwb-toast-container",l.showAllMessages?"full-height":""])},[s.recentMessages.length==0?(r(),f($,{key:0,subtype:"info"},{default:h(()=>[p(" Keine Nachrichten vorhanden. ")]),_:1})):l.showAllMessages?(r(),f(M,{key:1,class:"btn-sm btn-secondary mb-1",onButtonClicked:s.dismissAllMessages},{default:h(()=>[p(" Alle Nachrichten löschen ")]),_:1},8,["onButtonClicked"])):u("",!0),(r(!0),d(x,null,D(s.recentMessages,A=>(r(),f(H,{key:A.topic,topic:A.topic,source:A.source,subtype:A.type,timestamp:A.timestamp,onDismiss:s.dismissMessage,onHide:s.hideMessage},{default:h(()=>[o("span",{innerHTML:A.message},null,8,Zo)]),_:2},1032,["topic","source","subtype","timestamp","onDismiss","onHide"]))),128))],2)):u("",!0)],64)}const ea=w(Yo,[["render",Xo],["__scopeId","data-v-2c25f0d0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageMessages.vue"]]),ta={name:"OpenwbPageBlocker",mixins:[G],data(){return{mqttTopicsToSubscribe:["openWB/system/boot_done","openWB/system/update_in_progress"]}},computed:{title(){return this.bootInProgress||this.updateInProgress?"openWB ist noch nicht bereit":this.reloadRequired?"Neues Laden der Seite erforderlich":"???"},myButtons(){return!(this.bootInProgress||this.updateInProgress)&&this.reloadRequired?[{text:"Jetzt neu laden",subtype:"success",event:"reload"}]:[]},bootInProgress(){return this.$store.state.mqtt["openWB/system/boot_done"]==null?!0:!this.$store.state.mqtt["openWB/system/boot_done"]},updateInProgress(){return this.$store.state.mqtt["openWB/system/update_in_progress"]==null?!1:this.$store.state.mqtt["openWB/system/update_in_progress"]},reloadRequired(){return this.$store.state.local.reloadRequired},showModalBlocker(){return this.bootInProgress||this.updateInProgress||this.reloadRequired}},methods:{handleModalResult(e){e=="reload"?location.reload():console.warn("unknown event",e)}}},sa={class:"openwb-blocker"},na={key:0},oa={key:1},aa={key:2},la={key:3};function ia(e,t,n,c,l,s){const a=_("openwb-base-modal-dialog");return r(),d("div",sa,[m(a,{show:s.showModalBlocker,title:s.title,subtype:"dark",preventClose:!0,buttons:s.myButtons,onModalResult:t[0]||(t[0]=i=>s.handleModalResult(i))},{default:h(()=>[s.bootInProgress?(r(),d("p",na," Der Systemstart ist noch nicht abgeschlossen. ")):u("",!0),s.updateInProgress?(r(),d("p",oa," Es wird eine Systemaktualisierung ausgeführt. ")):u("",!0),!(s.bootInProgress||s.updateInProgress)&&s.reloadRequired?(r(),d("p",aa," Bitte die Seite neu laden. ")):(r(),d("p",la,"Bitte warten..."))]),_:1},8,["show","title","buttons"])])}const ra=w(ta,[["render",ia],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageBlocker.vue"]]);const da={name:"settings-app",components:{NavBar:Ho,PageFooter:Eo,DonationBanner:Ko,Messages:ea,Blocker:ra},data(){return{client:{connected:!1},connection:{protocol:location.protocol=="https:"?"wss":"ws",host:location.hostname,port:parseInt(location.port)||(location.protocol=="https:"?443:80),endpoint:"/ws",connectTimeout:4e3,reconnectPeriod:4e3}}},computed:{mqttClientId(){try{return this.client.options.clientId}catch{return}},topicList(){return Object.keys(this.$store.state.mqtt)}},methods:{async saveValues(e=void 0){function t(c){return new Promise(l=>setTimeout(l,c))}console.debug("saving values..."),this.$store.state.local.savingData=!0;let n={};e===void 0?n=this.$store.state.mqtt:Array.isArray(e)?e.forEach(c=>{n[c]=this.$store.state.mqtt[c]}):console.error("expected array, got ",typeof e);for(const[c,l]of Object.entries(n)){let s=c.replace("openWB/","openWB/set/");console.debug("saving data:",s,l),this.doPublish(s,l),await t(100)}console.debug("done saving data"),this.$store.state.local.savingData=!1},resetValues(e=this.topicList){console.debug("resetting values..."),console.debug("topics: ",e),this.doUnsubscribe(e),this.doSubscribe(e)},setDefaultValues(){console.debug("setting default values... (ToDo)")},sendCommand(e){this.doPublish("openWB/set/command/"+this.client.options.clientId+"/todo",e,!1)},createConnection(){const{protocol:e,host:t,port:n,endpoint:c,...l}=this.connection,s=`${e}://${t}:${n}${c}`;console.debug("connecting to broker:",s);try{this.client=ne.connect(s,l)}catch(a){console.error("mqtt.connect error",a)}this.client.on("connect",()=>{console.debug("Connection succeeded! ClientId: ",this.client.options.clientId),this.doSubscribe(["openWB/system/usage_terms_acknowledged"])}),this.client.on("error",a=>{console.error("Connection failed",a)}),this.client.on("message",(a,i)=>{if(i.toString().length>0){let b;try{b=JSON.parse(i.toString())}catch{console.debug("Json parsing failed, fallback to string: ",a),b=i.toString()}this.$store.commit("addTopic",{topic:a,payload:b})}else this.$store.commit("removeTopic",a)})},doSubscribe(e){this.client.subscribe(e,{},t=>{if(t){console.error("Subscribe to topics error",t);return}})},doUnsubscribe(e){this.client.unsubscribe(e,t=>{t&&console.error("Unsubscribe error",t)})},doPublish(e,t,n=!0,c=2){let l={qos:c,retain:n};this.client.publish(e,JSON.stringify(t),l,s=>{s&&console.error("Publish error",s)})},postClientMessage(e,t="secondary"){console.debug("postMessage:",e,t);const n=Date.now(),c="openWB/command/"+this.mqttClientId+"/messages/"+n;this.$store.commit({type:"addTopic",topic:c,payload:{message:e,type:t,source:"client",timestamp:Math.floor(n/1e3)}})}},created(){this.createConnection()}},ca={role:"main",class:"container"},ua={id:"content"};function pa(e,t,n,c,l,s){const a=_("nav-bar"),i=_("router-view"),b=_("donation-banner"),$=_("page-footer"),M=_("messages"),H=_("blocker");return r(),d(x,null,[o("header",null,[m(a)]),o("div",ca,[o("div",ua,[o("h1",null,g(e.$route.meta.heading),1),m(i,{onSave:s.saveValues,onReset:s.resetValues,onDefaults:s.setDefaultValues,onSendCommand:s.sendCommand},null,8,["onSave","onReset","onDefaults","onSendCommand"])]),m(b)]),m($),m(M),m(H)],64)}const ma=w(da,[["render",pa],["__file","/opt/openWB-dev/openwb-ui-settings/src/App.vue"]]),_a="modulepreload",ha=function(e){return"/openWB/web/settings/"+e},N={},k=function(t,n,c){if(!n||n.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=ha(s),s in N)return;N[s]=!0;const a=s.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!c)for(let M=l.length-1;M>=0;M--){const H=l[M];if(H.href===s&&(!a||H.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const $=document.createElement("link");if($.rel=a?"stylesheet":_a,a||($.as="script",$.crossOrigin=""),$.href=s,document.head.appendChild($),a)return new Promise((M,H)=>{$.addEventListener("load",M),$.addEventListener("error",()=>H(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s})};let J={mqtt:{},local:{reloadRequired:!1,savingData:!1},text:{rfidWiki:'Bitte auch hiervon abhängige Einstellungen beachten. Eine Übersicht gibt es im Wiki.'}};J.examples={text1:"Text...",text2:"mail@domain.com",text3:"openwb.local",text4:"http://www.openwb.de",text5:"Benutzername",text6:"12:34",text7:"2021-10-31",number1:5,number2:10,number3:28e-5,password1:"GeHeiM!",textarea1:"Langer Text...",range1:6,range2:10,select1:1,select2:"three",buttonGroup1:1,checkbox1:!0,json1:{text:"Text",number:123},hierarchy1:[{id:0,type:"counter",children:[{id:3,type:"inverter",children:[]},{id:4,type:"bat",children:[]},{id:1,type:"cp",children:[]},{id:2,type:"cp",children:[]}]}],hierarchy1Labels:{0:"EVU",1:"Ladepunkt 1",2:"Ladepunkt 2",3:"Wechselrichter",4:"Batteriespeicher"},tags:["1234","2345","3456"]};const K=oe({state:J,mutations:{storeLocal(e,t){e.local[t.name]=t.value},addTopic(e,t){e.mqtt[t.topic]=t.payload},removeTopic(e,t){delete e.mqtt[t]},updateTopic(e,t){const n=(c,l,s)=>l.split(".").reduce((a,i,b)=>a[i]=l.split(".").length===++b?s:a[i]||{},c);t.topic in e.mqtt?t.objectPath!=null?n(e.mqtt[t.topic],t.objectPath,t.payload):e.mqtt[t.topic]=t.payload:(console.debug("topic not found in state.mqtt: ",t.topic),t.topic in e.examples?t.objectPath!=null?n(e.examples[t.topic],t.objectPath,t.payload):e.examples[t.topic]=t.payload:console.warn("topic not found in state: ",t.topic," giving up"))}},actions:{},modules:{},getters:{usageTermsAcknowledged(e){return new Promise(t=>{if(e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0)t(e.mqtt["openWB/system/usage_terms_acknowledged"]);else{var n,c;n=setTimeout(()=>{clearInterval(c),t(!1)},5e3),c=setInterval(()=>{e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0&&(clearTimeout(n),clearInterval(c),t(e.mqtt["openWB/system/usage_terms_acknowledged"]))},100)}})}}}),Q=[{path:"/",redirect:"/GeneralConfig"},{path:"/Status",name:"Status",meta:{heading:"Status"},component:()=>k(()=>import("./Status-0312a8dd.js"),["assets/Status-0312a8dd.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-chartjs-3e4a7d38.js","assets/vendor-luxon-78deadb9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/Status-6557de7c.css"])},{path:"/Logging/ChargeLog",name:"ChargeLog",meta:{heading:"Auswertungen - Ladeprotokoll"},component:()=>k(()=>import("./ChargeLog-0a448a61.js"),["assets/ChargeLog-0a448a61.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/ChargeLog-298377e5.css"])},{path:"/Logging/Chart/:chartRange?/:initialDate?",name:"DailyChart",meta:{heading:"Auswertungen - Diagramme"},component:()=>k(()=>import("./Chart-a72a188e.js"),["assets/Chart-a72a188e.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-chartjs-3e4a7d38.js","assets/vendor-luxon-78deadb9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/Chart-e20451b4.css"])},{path:"/GeneralConfig",name:"GeneralConfig",meta:{heading:"Einstellungen - Allgemein"},component:()=>k(()=>import("./GeneralConfig-125226d5.js"),["assets/GeneralConfig-125226d5.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/OptionalComponents",name:"OptionalComponents",meta:{heading:"Einstellungen - Optionale Hardware"},component:()=>k(()=>import("./OptionalComponents-7d9ac58f.js"),["assets/OptionalComponents-7d9ac58f.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/GeneralChargeConfig",name:"GeneralChargeConfig",meta:{heading:"Ladeeinstellungen - Übergreifendes"},component:()=>k(()=>import("./GeneralChargeConfig-e9c2cec0.js"),["assets/GeneralChargeConfig-e9c2cec0.js","assets/dynamic-import-helper-be004503.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/InstantChargeConfig",name:"InstantChargeConfig",meta:{heading:"Ladeeinstellungen - Sofortladen"},component:()=>k(()=>import("./InstantChargeConfig-9d5d9336.js"),["assets/InstantChargeConfig-9d5d9336.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/PVChargeConfig",name:"PVChargeConfig",meta:{heading:"Ladeeinstellungen - PV-Laden"},component:()=>k(()=>import("./PVChargeConfig-846573d7.js"),["assets/PVChargeConfig-846573d7.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/TimeChargeConfig",name:"TimeChargeConfig",meta:{heading:"Ladeeinstellungen - Zeitladen"},component:()=>k(()=>import("./TimeChargeConfig-5b14d231.js"),["assets/TimeChargeConfig-5b14d231.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/ScheduledChargeConfig",name:"ScheduledChargeConfig",meta:{heading:"Ladeeinstellungen - Zielladen"},component:()=>k(()=>import("./ScheduledChargeConfig-ef3aaafb.js"),["assets/ScheduledChargeConfig-ef3aaafb.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/HardwareInstallation",name:"HardwareInstallation",meta:{heading:"Konfiguration - Geräte und Komponenten"},component:()=>k(()=>import("./HardwareInstallation-45a8a8a9.js"),["assets/HardwareInstallation-45a8a8a9.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/HardwareInstallation-1ee9693f.css"])},{path:"/LoadManagementConfiguration",name:"LoadManagementConfiguration",meta:{heading:"Konfiguration - Lastmanagement"},component:()=>k(()=>import("./LoadManagementConfig-02298433.js"),["assets/LoadManagementConfig-02298433.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/OpenwbSortableList-e04fc271.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/ChargePointInstallation",name:"ChargePointInstallation",meta:{heading:"Konfiguration - Ladepunkte"},component:()=>k(()=>import("./ChargePointInstallation-32d350a6.js"),["assets/ChargePointInstallation-32d350a6.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/ChargePointInstallation-ed6a5c7e.css"])},{path:"/VehicleConfiguration/:section?/:section_index?/:section_part?/:action?",name:"VehicleConfiguration",meta:{heading:"Konfiguration - Fahrzeuge"},component:()=>k(()=>import("./VehicleConfig-dcfebc91.js"),["assets/VehicleConfig-dcfebc91.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/VehicleConfig-4aeda6ca.css"])},{path:"/System/CloudConfiguration",name:"CloudConfig",meta:{heading:"System - openWB Cloud"},component:()=>k(()=>import("./CloudConfig-a56b87bb.js"),["assets/CloudConfig-a56b87bb.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/System/MqttBridgeConfiguration",name:"MqttBridgeConfig",meta:{heading:"System - MQTT-Brücken"},component:()=>k(()=>import("./MqttBridgeConfig-11cde72e.js"),["assets/MqttBridgeConfig-11cde72e.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/MqttBridgeConfig-3471079a.css"])},{path:"/System/DebugConfiguration",name:"Debugging",meta:{heading:"System - Fehlersuche"},component:()=>k(()=>import("./DebugConfig-877c59ca.js"),["assets/DebugConfig-877c59ca.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/DebugConfig-e21ab72c.css"])},{path:"/System/Support",name:"Support",meta:{heading:"System - Support"},component:()=>k(()=>import("./Support-c863d745.js"),["assets/Support-c863d745.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/System/LegalSettings",name:"LegalSettings",meta:{heading:"System - Rechtliches"},component:()=>k(()=>import("./LegalSettings-c7b706ad.js"),["assets/LegalSettings-c7b706ad.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/System/SystemConfiguration",name:"SystemConfig",meta:{heading:"System - System"},component:()=>k(()=>import("./System-d1bd783a.js"),["assets/System-d1bd783a.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/System-0f1d217b.css"])},{path:"/System/DataManagement",name:"DataManagement",meta:{heading:"System - Datenverwaltung"},component:()=>k(()=>import("./DataManagement-61982555.js"),["assets/DataManagement-61982555.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])}];Q.push({path:"/TestingStore",name:"VUEX Store",meta:{heading:"Beispiele - VUEX Store"},component:()=>k(()=>import("./TestingStore-73de07d0.js"),["assets/TestingStore-73de07d0.js","assets/OpenwbSortableList-e04fc271.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])});const j=ae({history:le(),routes:Q});j.beforeEach(async e=>{if(e.name!=="LegalSettings"&&!await K.getters.usageTermsAcknowledged)return{name:"LegalSettings"}});j.afterEach(e=>{e.meta.heading?document.title="openWB | "+e.meta.heading:document.title="openWB"});const W=ie(ma);W.use(K).use(j).use(We,Re);const fa=Object.assign({"./components/OpenwbBaseAlert.vue":ze,"./components/OpenwbBaseArrayInput.vue":lt,"./components/OpenwbBaseAvatar.vue":ut,"./components/OpenwbBaseButtonGroupInput.vue":yt,"./components/OpenwbBaseButtonInput.vue":xt,"./components/OpenwbBaseCard.vue":jt,"./components/OpenwbBaseCheckboxInput.vue":Jt,"./components/OpenwbBaseClickButton.vue":Zt,"./components/OpenwbBaseCopyToClipboard.vue":ns,"./components/OpenwbBaseHeading.vue":cs,"./components/OpenwbBaseModalDialog.vue":ws,"./components/OpenwbBaseNumberInput.vue":Ps,"./components/OpenwbBaseRangeInput.vue":Us,"./components/OpenwbBaseSelectInput.vue":nn,"./components/OpenwbBaseSubmitButtons.vue":pn,"./components/OpenwbBaseTextInput.vue":Hn,"./components/OpenwbBaseTextarea.vue":Jn,"./components/OpenwbBaseToast.vue":no});Object.entries(fa).forEach(([e,t])=>{const n=re(de(e.split("/").pop().replace(/\.\w+$/,"")));W.component(n,t.default)});W.mount("#app");export{G as C,k as _}; +import{_ as w,k as r,l as d,m as v,p as y,q as _,u as o,x as p,y as g,z as f,A as u,B as m,D as C,E as I,F as S,G as Y,I as x,J as D,K as Z,L as X,M as h,N as ee,O as te,T as F,P as se,Q as R,R as L,S as q,U as ne,V as oe,W as ae,X as le,Y as ie,Z as re,$ as de}from"./vendor-f0f38b48.js";import{l as B,f as T,a as V,b as ce,c as ue,d as pe,e as me,F as O,g as E,h as _e,i as he,j as fe,k as ge,m as be,n as ve,o as we,p as ye,q as ke,r as Se,s as Ce,t as Be,u as Oe,v as $e,w as Ie,x as xe,y as Te,z as Ve,A as Me,B as Pe,C as He,D as Ae,E as De,G as Le,H as qe,I as Ee,J as je}from"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import{p as We,a as Re}from"./vendor-axios-e59ef189.js";import"./vendor-sortablejs-cbf37f8f.js";import"./vendor-jquery-8576ed22.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))c(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&c(a)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function c(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();const Ne={name:"OpenwbAlert",props:{subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}}};function Fe(e,t,n,c,l,s){return r(),d("div",{class:y(["card-text alert","alert-"+n.subtype])},[v(e.$slots,"default")],2)}const Ue=w(Ne,[["render",Fe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAlert.vue"]]),ze=Object.freeze(Object.defineProperty({__proto__:null,default:Ue},Symbol.toStringTag,{value:"Module"}));B.add(T,V,ce,ue,pe,me);const Ge={name:"OpenwbArrayInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Array,default:()=>[]},noElementsMessage:{type:String,default:()=>"Keine Elemente zugeordnet."}},emits:["update:modelValue"],data(){return{newTag:"",showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},newTagValid:{get(){return this.newTag.length>0&&this.value.indexOf(this.newTag)==-1}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},addTag(){if(this.newTagValid){let e=this.value;e.push(this.newTag),e.sort(),this.value=e,this.newTag=""}this.$refs.tagInput.focus()},removeTag(e){let t=this.value;t.splice(e,1),this.value=t}},components:{FontAwesomeIcon:O}},Je={class:"form-row mb-1"},Ke={class:"col-md-8"},Qe={class:"form-row"},Ye={class:"input-group"},Ze={class:"input-group-prepend"},Xe={class:"input-group-text"},et={class:"input-group-append"},tt={class:"form-row tagList mt-1"},st={key:0,class:"noTag"},nt={key:0,class:"form-row alert alert-info my-1 small"};function ot(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Je,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Ke,[o("div",Qe,[o("div",Ye,[o("div",Ze,[o("div",Xe,[v(e.$slots,"input-prefix",{},()=>[m(a,{"fixed-width":"",icon:["fas","tag"]})],!0)])]),C(o("input",S({ref:"tagInput",type:"text",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>l.newTag=i)},e.$attrs,{onKeyup:t[2]||(t[2]=Y((...i)=>s.addTag&&s.addTag(...i),["enter"]))}),null,16),[[I,l.newTag]]),o("div",et,[o("div",{class:y(["input-group-text",s.newTagValid?"bg-success clickable":"notClickable"]),onClick:t[3]||(t[3]=(...i)=>s.addTag&&s.addTag(...i))},[v(e.$slots,"input-add",{},()=>[m(a,{"fixed-width":"",icon:["fas","plus"]})],!0)],2)])])]),o("div",tt,[s.value.length==0?(r(),d("span",st,[m(a,{icon:["fas","info-circle"]}),p(" "+g(n.noElementsMessage),1)])):u("",!0),(r(!0),d(x,null,D(s.value,(i,b)=>(r(),d("span",{class:"tag",key:b},[v(e.$slots,"element-prefix",{},()=>[m(a,{icon:["fas","tag"]})],!0),p(" "+g(i)+" ",1),m(a,{class:"clickable remove-element",icon:["fas","times-circle"],onClick:$=>s.removeTag(b)},null,8,["onClick"])]))),128))]),l.showHelp?(r(),d("span",nt,[v(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const at=w(Ge,[["render",ot],["__scopeId","data-v-9de93d37"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseArrayInput.vue"]]),lt=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"}));const it={name:"OpenwbAvatar"},rt={class:"avatar"};function dt(e,t,n,c,l,s){return r(),d("div",rt,[v(e.$slots,"default",{},()=>[p("?")],!0)])}const ct=w(it,[["render",dt],["__scopeId","data-v-06082a1a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAvatar.vue"]]),ut=Object.freeze(Object.defineProperty({__proto__:null,default:ct},Symbol.toStringTag,{value:"Module"}));B.add(T,V,E);const pt={name:"OpenwbButtonGroupInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Boolean]},buttons:Object},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},mt={class:"form-row mb-1"},_t={class:"col-md-8"},ht={class:"form-row"},ft={class:"btn-group btn-block btn-group-toggle"},gt=["value"],bt={key:0,class:"form-row alert alert-info my-1 small"};function vt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",mt,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",_t,[o("div",ht,[o("div",ft,[(r(!0),d(x,null,D(n.buttons,i=>(r(),d("label",{key:i.value,class:y(["btn",[s.value==i.buttonValue?"active":"",i.class?i.class:"btn-outline-info"]])},[C(o("input",S({type:"radio","onUpdate:modelValue":t[1]||(t[1]=b=>s.value=b),value:i.buttonValue},e.$attrs),null,16,gt),[[Z,s.value]]),p(" "+g(i.text)+" ",1),m(a,{icon:["fas","check"],style:X([s.value==i.buttonValue?"visibility: visible":"visibility: hidden"])},null,8,["style"])],2))),128))])]),l.showHelp?(r(),d("span",bt,[v(e.$slots,"help")])):u("",!0)])])}const wt=w(pt,[["render",vt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonGroupInput.vue"]]),yt=Object.freeze(Object.defineProperty({__proto__:null,default:wt},Symbol.toStringTag,{value:"Module"}));B.add(T,V);const kt={name:"OpenwbButtonInput",inheritAttrs:!1,props:{title:String,buttonText:String,disabled:{type:Boolean,default:!1},subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}},data(){return{showHelp:!1}},emits:["buttonClicked"],methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},handleClick(e){this.$emit("buttonClicked",e)}},components:{FontAwesomeIcon:O}},St={class:"form-row mb-1"},Ct={class:"col-md-8"},Bt={class:"form-row"},Ot={key:0,class:"form-row alert alert-info my-1 small"};function $t(e,t,n,c,l,s){const a=_("font-awesome-icon"),i=_("openwb-base-click-button");return r(),d("div",St,[o("label",{onClick:t[0]||(t[0]=(...b)=>s.toggleHelp&&s.toggleHelp(...b)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Ct,[o("div",Bt,[m(i,S({class:(n.disabled?"btn-outline-":"btn-")+n.subtype,disabled:n.disabled},e.$attrs,{onButtonClicked:s.handleClick}),{default:h(()=>[v(e.$slots,"default",{},()=>[p(g(n.buttonText),1)])]),_:3},16,["class","disabled","onButtonClicked"])]),l.showHelp?(r(),d("span",Ot,[v(e.$slots,"help")])):u("",!0)])])}const It=w(kt,[["render",$t],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonInput.vue"]]),xt=Object.freeze(Object.defineProperty({__proto__:null,default:It},Symbol.toStringTag,{value:"Module"}));B.add(_e,he);const Tt={name:"OpenwbCard",components:{FontAwesomeIcon:O},props:{title:{type:String,default:"# no title set #"},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark","pink"].indexOf(e)!==-1},default:"secondary"},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},data(){return{isCollapsed:this.collapsible&&this.collapsed}},methods:{toggleBody(){this.collapsible===!0&&(this.isCollapsed=!this.isCollapsed)}}},Vt={class:"form-group mb-0"},Mt={class:"form-row vaRow mb-0 py-2"},Pt={class:"col"},Ht={class:"card-actions ml-4"},At={key:0,class:"card-actions mr-4"},Dt={key:0,class:"card-body"},Lt={key:1,class:"card-footer"};function qt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",{class:y(["card","border-"+n.subtype])},[o("div",{class:y(["card-header py-1","bg-"+n.subtype]),onClick:t[0]||(t[0]=(...i)=>s.toggleBody&&s.toggleBody(...i))},[o("div",Vt,[o("div",Mt,[o("div",Pt,[v(e.$slots,"header",{collapsed:l.isCollapsed},()=>[p(g(n.title),1)])])])]),o("span",Ht,[e.$slots.actions?(r(),d("span",At,[v(e.$slots,"actions",{collapsed:l.isCollapsed})])):u("",!0),n.collapsible?(r(),f(a,{key:1,"fixed-width":"",icon:l.isCollapsed?["fas","chevron-right"]:["fas","chevron-down"]},null,8,["icon"])):u("",!0)])],2),l.isCollapsed===!1?(r(),d("div",Dt,[v(e.$slots,"default")])):u("",!0),e.$slots.footer&&l.isCollapsed===!1?(r(),d("div",Lt,[v(e.$slots,"footer")])):u("",!0)],2)}const Et=w(Tt,[["render",qt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCard.vue"]]),jt=Object.freeze(Object.defineProperty({__proto__:null,default:Et},Symbol.toStringTag,{value:"Module"}));B.add(T,V);const Wt={name:"OpenwbCheckboxInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Boolean}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Rt={class:"form-row mb-1"},Nt={class:"col-md-8"},Ft={class:"form-row"},Ut={key:0,class:"form-row alert alert-info my-1 small"};function zt(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Rt,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Nt,[o("div",Ft,[C(o("input",S({class:"form-control",type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[ee,s.value]])]),l.showHelp?(r(),d("span",Ut,[v(e.$slots,"help")])):u("",!0)])])}const Gt=w(Wt,[["render",zt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCheckboxInput.vue"]]),Jt=Object.freeze(Object.defineProperty({__proto__:null,default:Gt},Symbol.toStringTag,{value:"Module"}));const Kt={name:"OpenwbClickButton",props:{title:String},emits:["buttonClicked"],methods:{click(e){this.$emit("buttonClicked",e)}}};function Qt(e,t,n,c,l,s){return r(),d("button",{type:"button",class:"btn btn-block",onClick:t[0]||(t[0]=te((...a)=>s.click&&s.click(...a),["prevent"]))},[v(e.$slots,"default",{},()=>[p(g(n.title),1)],!0)])}const Yt=w(Kt,[["render",Qt],["__scopeId","data-v-2e9c095b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseClickButton.vue"]]),Zt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"}));B.add(fe,ge);const Xt={name:"OpenwbCopyToClipboard",components:{FontAwesomeIcon:O},props:{tooltip:{type:String,default:"Wert kopieren"}},data(){return{clipboardApiAvailable:navigator.clipboard!=null,isCopied:!1}},methods:{click(){if(console.debug(this.$refs["slot-wrapper"].innerText),this.clipboardApiAvailable)navigator.clipboard.writeText(this.$refs["slot-wrapper"].innerText).then(()=>{this.isCopied=!0},()=>{console.error("copy to clipboard failed")});else{if(console.debug("clipboard api not supported/enabled, fallback to select"),window.getSelection){console.debug("using 'window.getSelection'");const e=window.getSelection(),t=document.createRange();t.selectNodeContents(this.$refs["slot-wrapper"]),e.removeAllRanges(),e.addRange(t);return}if(document.body.createTextRange){console.debug("using 'document.body.createTextRange'");const e=document.body.createTextRange();e.moveToElementText(this.$refs["slot-wrapper"]),e.select()}else console.warn("could not select text, unsupported browser")}}}},es=["title"];function ts(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("span",{ref:"slot-wrapper",title:n.tooltip,class:"copy-me",onClick:t[0]||(t[0]=(...i)=>s.click&&s.click(...i))},[v(e.$slots,"default",{},void 0,!0),m(a,{"fixed-width":"",icon:l.isCopied?["fas","clipboard-check"]:["fas","clipboard"]},null,8,["icon"])],8,es)}const ss=w(Xt,[["render",ts],["__scopeId","data-v-81826ebe"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCopyToClipboard.vue"]]),ns=Object.freeze(Object.defineProperty({__proto__:null,default:ss},Symbol.toStringTag,{value:"Module"}));B.add(T,V,E);const os={name:"OpenwbHeading",inheritAttrs:!1,components:{FontAwesomeIcon:O},data(){return{showHelp:!1}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},as={key:0,class:"actions"},ls={class:""},is={key:0,class:"form-row alert alert-info small"};function rs(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d(x,null,[o("div",S({class:"card-text card-text-heading"},e.$attrs),[o("div",{class:"heading-text",onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i))},[v(e.$slots,"default",{},void 0,!0),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),e.$slots.actions?(r(),d("span",as,[v(e.$slots,"actions",{},void 0,!0)])):u("",!0)],16),o("div",ls,[l.showHelp?(r(),d("span",is,[v(e.$slots,"help",{},void 0,!0)])):u("",!0)])],64)}const ds=w(os,[["render",rs],["__scopeId","data-v-cbe4e96e"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseHeading.vue"]]),cs=Object.freeze(Object.defineProperty({__proto__:null,default:ds},Symbol.toStringTag,{value:"Module"})),us={name:"OpenwbModalDialog",emits:["modal-result"],props:{title:String,subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},buttons:{type:Array,default:void 0},footerAlignment:{type:String,validator:function(e){return["around","between","center","end","start"].indexOf(e)!==-1},default:"end"},preventClose:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},computed:{myButtons(){var e=[];return this.buttons!==void 0&&(e=this.buttons),this.preventClose||e.push({text:"Schließen",event:"close"}),e}},methods:{handleClick(e){e.stopPropagation();let t=e.target.getAttribute("data-event");t===null&&(t="close"),(t!="close"||!this.preventClose)&&this.$emit("modal-result",t)}}},ps=o("div",{class:"modal-backdrop fade show"},null,-1),ms={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},_s={class:"modal-content"},hs={class:"modal-title"},fs={class:"modal-body"},gs=["data-event"];function bs(e,t,n,c,l,s){return n.show?(r(),f(F,{key:0,to:"body"},[ps,o("div",{class:"modal fade d-block show",role:"dialog",onClick:t[2]||(t[2]=(...a)=>s.handleClick&&s.handleClick(...a))},[o("div",ms,[o("div",_s,[o("div",{class:y(["modal-header","bg-"+n.subtype])},[o("h4",hs,g(n.title),1),n.preventClose?u("",!0):(r(),d("button",{key:0,type:"button",class:"close",onClick:t[0]||(t[0]=(...a)=>s.handleClick&&s.handleClick(...a))}," × "))],2),o("div",fs,[v(e.$slots,"default",{},()=>[p("# Body #")])]),s.myButtons.length>0?(r(),d("div",{key:0,class:y(["modal-footer d-flex","justify-content-"+n.footerAlignment])},[(r(!0),d(x,null,D(s.myButtons,a=>(r(),d("button",{key:a.text,type:"button",class:y(["btn",a.subtype?"btn-"+a.subtype:"btn-secondary"]),"data-dismiss":"modal","data-event":a.event?a.event:"close",onClick:t[1]||(t[1]=(...i)=>s.handleClick&&s.handleClick(...i))},g(a.text),11,gs))),128))],2)):u("",!0)])])])])):u("",!0)}const vs=w(us,[["render",bs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseModalDialog.vue"]]),ws=Object.freeze(Object.defineProperty({__proto__:null,default:vs},Symbol.toStringTag,{value:"Module"}));B.add(T,V,be);const ys={name:"OpenwbNumberInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,precision:{type:Number,default:void 0},emptyValue:{required:!1,default:null}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.precision!==void 0?parseFloat(Math.round(this.modelValue*Math.pow(10,this.precision))/Math.pow(10,this.precision)):this.modelValue},set(e){(isNaN(e)||typeof e!="number")&&(e=this.emptyValue),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},ks={class:"form-row mb-1"},Ss={class:"col-md-8"},Cs={class:"form-row"},Bs={class:"input-group"},Os={class:"input-group-prepend"},$s={class:"input-group-text"},Is={key:0,class:"input-group-append"},xs={class:"input-group-text"},Ts={key:0,class:"form-row alert alert-info my-1 small"};function Vs(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",ks,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Ss,[o("div",Cs,[o("div",Bs,[o("div",Os,[o("div",$s,[m(a,{"fixed-width":"",icon:["fas","calculator"]})])]),C(o("input",S({type:"number",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[I,s.value,void 0,{number:!0}]]),n.unit?(r(),d("div",Is,[o("div",xs,g(n.unit),1)])):u("",!0)])]),l.showHelp?(r(),d("span",Ts,[v(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const Ms=w(ys,[["render",Vs],["__scopeId","data-v-c2fb7eef"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseNumberInput.vue"]]),Ps=Object.freeze(Object.defineProperty({__proto__:null,default:Ms},Symbol.toStringTag,{value:"Module"}));B.add(T,V,ve,we);const Hs={name:"OpenwbRangeInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},labels:{type:Array}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{label(){var e;return this.labels&&this.sliderValue!=null?this.sliderValues.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Ds,[o("div",Ls,[s.label?(r(),d("label",qs,g(s.label),1)):u("",!0),o("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[1]||(t[1]=(...i)=>s.decrement&&s.decrement(...i))},[m(a,{icon:["fas","step-backward"]})]),o("div",Es,[C(o("input",S({type:"range",class:"form-control-range rangeInput",min:n.min,max:n.max,step:n.step,"onUpdate:modelValue":t[2]||(t[2]=i=>s.sliderValue=i)},e.$attrs),null,16,js),[[I,s.sliderValue,void 0,{number:!0}]])]),o("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[3]||(t[3]=(...i)=>s.increment&&s.increment(...i))},[m(a,{icon:["fas","step-forward"]})])]),l.showHelp?(r(),d("div",Ws,[o("div",Rs,[v(e.$slots,"help",{},void 0,!0)])])):u("",!0)])])}const Fs=w(Hs,[["render",Ns],["__scopeId","data-v-449fb0a5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseRangeInput.vue"]]),Us=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"}));B.add(T,V);const zs={name:"OpenwbSelectInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Array]},groups:Object,options:Object,notSelected:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Gs={class:"form-row mb-1"},Js={class:"col-md-8"},Ks={class:"form-row"},Qs={key:0,value:void 0,disabled:""},Ys=["value"],Zs=["label"],Xs=["value"],en={key:0,class:"form-row alert alert-info my-1 small"};function tn(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Gs,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Js,[o("div",Ks,[C(o("select",S({class:"col form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),[n.notSelected!==void 0?(r(),d("option",Qs," -- "+g(n.notSelected)+" -- ",1)):u("",!0),(r(!0),d(x,null,D(n.options,i=>(r(),d("option",{key:i.value,value:i.value},g(i.text),9,Ys))),128)),(r(!0),d(x,null,D(n.groups,i=>(r(),d("optgroup",{key:i.label,label:i.label},[(r(!0),d(x,null,D(i.options,b=>(r(),d("option",{key:b.value,value:b.value},g(b.text),9,Xs))),128))],8,Zs))),128))],16),[[se,s.value]]),v(e.$slots,"append")]),l.showHelp?(r(),d("span",en,[v(e.$slots,"help")])):u("",!0)])])}const sn=w(zs,[["render",tn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSelectInput.vue"]]),nn=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"}));B.add(E,ye,ke);const on={name:"OpenwbSubmitButtons",components:{FontAwesomeIcon:O},props:{formName:{type:String,default:void 0},hideReset:{type:Boolean,default:!1},hideDefaults:{type:Boolean,default:!0}},data(){return{showModalReset:!1,showModalDefaults:!1}},emits:["reset","defaults","save"],computed:{showModalSave(){return this.$store.state.local.savingData}},methods:{showResetModal(){this.showModalReset=!0},handleModalReset(e){this.showModalReset=!1,e=="confirm"&&this.$emit("reset")},showDefaultsModal(){this.showModalDefaults=!0},handleModalDefaults(e){this.showModalDefaults=!1,e=="confirm"&&this.$emit("defaults")},saveSettings(){if(this.formName){if(!document.forms[this.formName].reportValidity()){console.debug("form invalid");return}}else console.debug("no form to validate");this.$emit("save")}}},an={class:"row justify-content-center mb-1"},ln={class:"col-md-4 d-flex py-1 justify-content-center"},rn={key:0,class:"col-md-4 d-flex py-1 justify-content-center"},dn={key:1,class:"col-md-4 d-flex py-1 justify-content-center"};function cn(e,t,n,c,l,s){const a=_("openwb-base-modal-dialog"),i=_("font-awesome-icon");return r(),d(x,null,[m(a,{show:s.showModalSave,title:"Speichern",subtype:"success",preventClose:!0},{default:h(()=>[p(" Einstellungen werden gespeichert... ")]),_:1},8,["show"]),m(a,{show:l.showModalReset,title:"Änderungen verwerfen",subtype:"warning",buttons:[{text:"Ok",event:"confirm",subtype:"warning"}],onModalResult:s.handleModalReset},{default:h(()=>[p(" Wollen Sie die nicht gespeicherten Änderungen wirklich verwerfen? ")]),_:1},8,["show","onModalResult"]),m(a,{show:l.showModalDefaults,title:"Werkseinstellungen",subtype:"danger",buttons:[{text:"Ok",event:"confirm",subtype:"danger"}],onModalResult:s.handleModalDefaults},{default:h(()=>[p(" Wollen Sie wirklich alle Werte dieser Seite auf die Werkseinstellungen zurücksetzen? ")]),_:1},8,["show","onModalResult"]),o("div",an,[o("div",ln,[o("button",{id:"saveSettingsBtn",type:"button",class:"btn btn-block btn-success",onClick:t[0]||(t[0]=(...b)=>s.saveSettings&&s.saveSettings(...b))},[p(" Speichern "),m(i,{"fixed-width":"",icon:["fas","check"]})])]),n.hideReset?u("",!0):(r(),d("div",rn,[o("button",{id:"modalResetBtn",type:"button",class:"btn btn-block btn-warning",onClick:t[1]||(t[1]=(...b)=>s.showResetModal&&s.showResetModal(...b))},[p(" Änderungen verwerfen "),m(i,{"fixed-width":"",icon:["fas","undo"]})])])),n.hideDefaults?u("",!0):(r(),d("div",dn,[o("button",{id:"modalDefaultsBtn",type:"button",class:"btn btn-block btn-danger",onClick:t[2]||(t[2]=(...b)=>s.showDefaultsModal&&s.showDefaultsModal(...b))},[p(" Werkseinstellungen "),m(i,{"fixed-width":"",icon:["fas","times"]})])]))])],64)}const un=w(on,[["render",cn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSubmitButtons.vue"]]),pn=Object.freeze(Object.defineProperty({__proto__:null,default:un},Symbol.toStringTag,{value:"Module"}));B.add(T,V,Se,Ce,Be,Oe,$e,Ie,xe,Te,Ve,Me,Pe,He);const mn={name:"OpenwbTextInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Object]},subtype:{validator:function(e){return["text","email","host","url","user","json","password","time","date","month","year"].indexOf(e)!==-1},default:"text"},pattern:String,unit:String,emptyValue:{required:!1,default:null},showQuickButtons:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{showHelp:!1,showPassword:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.warn("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.error("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else e==""&&(e=this.emptyValue),this.$emit("update:modelValue",e)}},inputRef(){switch(this.subtype){case"json":return this.$refs.jsonInput;case"password":return this.$refs.passwordInput;case"host":return this.$refs.hostInput;case"email":case"url":return this.$refs.urlInput;case"time":return this.$refs.timeInput;case"date":return this.$refs.dateInput;case"month":return this.$refs.monthInput;case"year":return this.$refs.yearInput}return this.$refs.textInput}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},togglePassword(){this.showPassword=!this.showPassword},modify(e){var t,n=new Date(this.modelValue);switch(this.subtype){case"date":n.setDate(n.getDate()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0")+"-"+String(n.getDate()).padStart(2,"0");break;case"month":n.setMonth(n.getMonth()+e),t=String(n.getFullYear())+"-"+String(n.getMonth()+1).padStart(2,"0");break;case"year":n.setYear(n.getFullYear()+e),t=String(n.getFullYear());break;default:console.warn(`cannot modify input of subtype '${this.subtype}'`);return}t>this.inputRef.max||t(L("data-v-6927d479"),e=e(),q(),e),_n={class:"form-row mb-1"},hn={class:"col-md-8"},fn={class:"form-row"},gn={class:"input-group"},bn={class:"input-group-prepend"},vn={class:"input-group-text"},wn=["pattern"],yn=["pattern"],kn=["type","pattern"],Sn=["type"],Cn={key:9,class:"input-group-append"},Bn={class:"input-group-text"},On={class:"input-group-text"},$n=U(()=>o("div",{class:"input-group-text"},"-",-1)),In=[$n],xn=U(()=>o("div",{class:"input-group-text"},"+",-1)),Tn=[xn],Vn={key:0,class:"form-row alert alert-info my-1 small"};function Mn(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",_n,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",hn,[o("div",fn,[o("div",gn,[o("div",bn,[o("div",vn,[n.subtype=="text"?(r(),f(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("",!0),n.subtype=="email"?(r(),f(a,{key:1,"fixed-width":"",icon:["fas","envelope"]})):u("",!0),n.subtype=="host"?(r(),f(a,{key:2,"fixed-width":"",icon:["fas","network-wired"]})):u("",!0),n.subtype=="url"?(r(),f(a,{key:3,"fixed-width":"",icon:["fas","globe"]})):u("",!0),n.subtype=="user"?(r(),f(a,{key:4,"fixed-width":"",icon:["fas","user"]})):u("",!0),n.subtype=="json"?(r(),f(a,{key:5,"fixed-width":"",icon:["fas","code"]})):u("",!0),n.subtype=="password"?(r(),f(a,{key:6,"fixed-width":"",icon:l.showPassword?["fas","unlock"]:["fas","lock"]},null,8,["icon"])):u("",!0),n.subtype=="time"?(r(),f(a,{key:7,"fixed-width":"",icon:["fas","clock"]})):u("",!0),n.subtype=="date"||n.subtype=="month"||n.subtype=="year"?(r(),f(a,{key:8,"fixed-width":"",icon:["fas","calendar-day"]})):u("",!0)])]),["text","user"].includes(n.subtype)?C((r(),d("input",S({key:0,ref:"textInput",type:"text",class:["form-control",{invalid:l.inputInvalid}],"onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,wn)),[[I,s.value]]):u("",!0),n.subtype=="json"?C((r(),d("input",S({key:1,ref:"jsonInput",type:"text",class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,yn)),[[I,s.value]]):u("",!0),n.subtype=="password"?C((r(),d("input",S({key:2,ref:"passwordInput",type:l.showPassword?"text":"password",class:"form-control","onUpdate:modelValue":t[3]||(t[3]=i=>s.value=i)},e.$attrs,{pattern:n.pattern}),null,16,kn)),[[R,s.value]]):u("",!0),n.subtype=="host"?C((r(),d("input",S({key:3,ref:"hostInput",type:"text",class:"form-control","onUpdate:modelValue":t[4]||(t[4]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]):u("",!0),["email","url"].includes(n.subtype)?C((r(),d("input",S({key:4,refs:"urlInput",type:n.subtype,class:"form-control","onUpdate:modelValue":t[5]||(t[5]=i=>s.value=i)},e.$attrs),null,16,Sn)),[[R,s.value]]):u("",!0),n.subtype=="time"?C((r(),d("input",S({key:5,ref:"timeInput",type:"time",class:"form-control","onUpdate:modelValue":t[6]||(t[6]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]):u("",!0),n.subtype=="date"?C((r(),d("input",S({key:6,type:"date",ref:"dateInput",class:"form-control","onUpdate:modelValue":t[7]||(t[7]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]):u("",!0),n.subtype=="month"?C((r(),d("input",S({key:7,type:"month",ref:"monthInput",class:"form-control","onUpdate:modelValue":t[8]||(t[8]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]):u("",!0),n.subtype=="year"?C((r(),d("input",S({key:8,type:"number",ref:"yearInput",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]):u("",!0),n.unit?(r(),d("div",Cn,[o("div",Bn,g(n.unit),1)])):u("",!0),n.subtype=="password"?(r(),d("div",{key:10,class:"input-group-append clickable",onClick:t[10]||(t[10]=(...i)=>s.togglePassword&&s.togglePassword(...i))},[o("div",On,[m(a,{"fixed-width":"",icon:l.showPassword?["far","eye"]:["far","eye-slash"]},null,8,["icon"])])])):u("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(r(),d("div",{key:11,class:"input-group-append clickable",onClick:t[11]||(t[11]=i=>s.modify(-1))},[...In])):u("",!0),n.showQuickButtons&&(n.subtype=="date"||n.subtype=="month"||n.subtype=="year")?(r(),d("div",{key:12,class:"input-group-append clickable",onClick:t[12]||(t[12]=i=>s.modify(1))},[...Tn])):u("",!0)])]),l.showHelp?(r(),d("span",Vn,[v(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const Pn=w(mn,[["render",Mn],["__scopeId","data-v-6927d479"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextInput.vue"]]),Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"}));B.add(T,V);const An={name:"OpenwbTextareaInput",inheritAttrs:!1,props:{title:String,modelValue:{String,Object},subtype:{validator:function(e){return["text","json"].indexOf(e)!==-1},default:"text"}},emits:["update:modelValue"],data(){return{showHelp:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.debug("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue,void 0,2):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.warn("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else this.$emit("update:modelValue",e)}},length:{get(){return this.value!==void 0?this.value.length:0}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Dn={class:"form-row mb-1"},Ln={class:"col-md-8"},qn={class:"form-row"},En={class:"input-group"},jn={class:"input-group-prepend"},Wn={class:"input-group-text"},Rn={key:2,class:"input-group-append"},Nn={class:"input-group-text"},Fn={class:"form-text text-muted text-right"},Un={key:0,class:"form-row alert alert-info my-1 small"};function zn(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Dn,[o("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(g(n.title)+" ",1),e.$slots.help?(r(),f(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:y(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("",!0)]),o("div",Ln,[o("div",qn,[o("div",En,[o("div",jn,[o("div",Wn,[n.subtype=="text"?(r(),f(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("",!0),n.subtype=="json"?(r(),f(a,{key:1,"fixed-width":"",icon:["fas","code"]})):u("",!0)])]),n.subtype==="json"?C((r(),d("textarea",S({key:0,ref:"jsonInput",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value,void 0,{lazy:!0}]]):C((r(),d("textarea",S({key:1,class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs),null,16)),[[I,s.value]]),e.$attrs.maxlength?(r(),d("div",Rn,[o("div",Nn,[o("small",Fn,g(s.length)+" / "+g(e.$attrs.maxlength),1)])])):u("",!0)])]),l.showHelp?(r(),d("span",Un,[v(e.$slots,"help",{},void 0,!0)])):u("",!0)])])}const Gn=w(An,[["render",zn],["__scopeId","data-v-3d93046b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextarea.vue"]]),Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"}));const Kn={name:"OpenwbToast",emits:["dismiss","hide"],props:{topic:{type:String,required:!0},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},source:{validator:function(e){return["system","client","command"].indexOf(e)!==-1}},timestamp:{type:Number}},data(){return{handle:void 0,relativeTime:void 0,hidden:!1}},methods:{dismiss(){this.$emit("dismiss",{topic:this.topic})},updateRelativeTime(){const e={year:31536e6,month:2628e6,day:864e5,hour:36e5,minute:6e4,second:1e3};var t=new Intl.RelativeTimeFormat("de",{numeric:"auto"});const c=new Date-this.timestamp*1e3;for(var l in e)if(Math.abs(c)>e[l]){this.relativeTime=t.format(Math.round(-c/e[l]),l);break}c>10*1e3&&!this.hidden&&(this.hidden=!0,this.$emit("hide",{topic:this.topic}))}},mounted(){this.handle=window.setInterval(this.updateRelativeTime,1e3)},unmounted(){window.clearInterval(this.handle)}},z=e=>(L("data-v-c51b5764"),e=e(),q(),e),Qn=z(()=>o("strong",{class:"pr-2 mr-auto"},"OpenWB",-1)),Yn={key:0,class:"time-diff"},Zn=z(()=>o("span",{"aria-hidden":"true"},"×",-1)),Xn=[Zn],eo={class:"toast-body"};function to(e,t,n,c,l,s){return r(),d("div",{class:y(["toast","border-"+n.subtype]),role:"alert"},[o("div",{class:y(["toast-header","bg-"+n.subtype])},[Qn,n.timestamp?(r(),d("small",Yn,g(l.relativeTime),1)):u("",!0),o("button",{type:"button",class:"ml-2 mb-1 close","data-dismiss":"toast","aria-label":"Close",onClick:t[0]||(t[0]=(...a)=>s.dismiss&&s.dismiss(...a))},[...Xn])],2),o("div",eo,[v(e.$slots,"default",{},void 0,!0)])],2)}const so=w(Kn,[["render",to],["__scopeId","data-v-c51b5764"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseToast.vue"]]),no=Object.freeze(Object.defineProperty({__proto__:null,default:so},Symbol.toStringTag,{value:"Module"}));B.add(Ae);const oo={name:"OpenwbNavBar",components:{FontAwesomeIcon:O},computed:{nodeEnv(){return"development"}},watch:{$route(){this.$refs.collapsibleNavbar.classList.remove("show"),this.$refs.navbarButton.classList.add("collapsed"),this.$refs.navbarButton.setAttribute("aria-expanded",!1)}}},P=e=>(L("data-v-e7a6d0c0"),e=e(),q(),e),ao={class:"navbar navbar-expand-lg bg-dark navbar-dark fixed-top"},lo=P(()=>o("a",{class:"navbar-brand",href:"/openWB/web/"},[o("span",null,"openWB")],-1)),io={class:"navbar-toggler mr-5",type:"button","data-toggle":"collapse","data-target":"#collapsibleNavbar",ref:"navbarButton"},ro=P(()=>o("span",{class:"navbar-toggler-icon"},null,-1)),co=[ro],uo={class:"collapse navbar-collapse navbar-nav-scroll",id:"collapsibleNavbar",ref:"collapsibleNavbar"},po={class:"navbar-nav"},mo={class:"nav-item"},_o={class:"nav-item dropdown nav-separator-after"},ho=P(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Auswertungen ",-1)),fo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},go={class:"nav-item dropdown"},bo=P(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Einstellungen ",-1)),vo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},wo={class:"nav-item dropdown"},yo=P(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Ladeeinstellungen ",-1)),ko={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},So={class:"nav-item dropdown"},Co=P(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Konfiguration ",-1)),Bo={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},Oo=P(()=>o("div",{class:"dropdown-divider"},null,-1)),$o=P(()=>o("a",{href:"modules/legacy_smart_home/smarthomeconfig.php",class:"dropdown-item",target:"_blank"}," SmartHome ",-1)),Io={class:"nav-item dropdown"},xo=P(()=>o("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," System ",-1)),To={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},Vo={class:"nav-item nav-separator-before"},Mo={class:"nav-link",href:"https://github.com/openWB/core/wiki",target:"_blank"};function Po(e,t,n,c,l,s){const a=_("router-link"),i=_("font-awesome-icon");return r(),d("nav",ao,[lo,o("button",io,[...co],512),o("div",uo,[o("ul",po,[o("li",mo,[m(a,{to:"/Status",class:"nav-link","active-class":"active disabled"},{default:h(()=>[p(" Status ")]),_:1})]),o("li",_o,[ho,o("div",fo,[m(a,{to:"/Logging/ChargeLog",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Ladeprotokoll ")]),_:1}),m(a,{to:"/Logging/Chart",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Diagramme ")]),_:1})])]),o("li",go,[bo,o("div",vo,[m(a,{to:"/GeneralConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Allgemein ")]),_:1}),m(a,{to:"/OptionalComponents",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Optionale Hardware ")]),_:1})])]),o("li",wo,[yo,o("div",ko,[m(a,{to:"/GeneralChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Übergreifendes ")]),_:1}),m(a,{to:"/InstantChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Sofortladen ")]),_:1}),m(a,{to:"/PVChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" PV-Laden ")]),_:1}),m(a,{to:"/TimeChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Zeitladen ")]),_:1}),m(a,{to:"/ScheduledChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Zielladen ")]),_:1})])]),o("li",So,[Co,o("div",Bo,[m(a,{to:"/HardwareInstallation",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Geräte und Komponenten ")]),_:1}),m(a,{to:"/LoadManagementConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Lastmanagement ")]),_:1}),m(a,{to:"/ChargePointInstallation",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Ladepunkte ")]),_:1}),m(a,{to:"/VehicleConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Fahrzeuge ")]),_:1}),Oo,$o])]),o("li",Io,[xo,o("div",To,[m(a,{to:"/System/CloudConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" openWB Cloud ")]),_:1}),m(a,{to:"/System/MqttBridgeConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" MQTT-Brücken ")]),_:1}),m(a,{to:"/System/DebugConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Fehlersuche ")]),_:1}),m(a,{to:"/System/Support",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Support ")]),_:1}),m(a,{to:"/System/DataManagement",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Datenverwaltung ")]),_:1}),m(a,{to:"/System/SystemConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" System ")]),_:1}),m(a,{to:"/System/LegalSettings",class:"dropdown-item","active-class":"active disabled"},{default:h(()=>[p(" Rechtliches ")]),_:1})])]),o("li",Vo,[o("a",Mo,[p(" Wiki "),m(i,{"fixed-width":"",icon:["fas","external-link-alt"]})])])])],512)])}const Ho=w(oo,[["render",Po],["__scopeId","data-v-e7a6d0c0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageNavbar.vue"]]);const Ao={name:"OpenwbPageFooter"},Do={id:"footer",class:"footer bg-dark text-light font-small"},Lo={class:"container text-center"};function qo(e,t,n,c,l,s){return r(),d("footer",Do,[o("div",Lo,[o("small",null," Sie befinden sich hier: Einstellungen / "+g(e.$route.meta.heading),1)])])}const Eo=w(Ao,[["render",qo],["__scopeId","data-v-3c9a239a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageFooter.vue"]]);B.add(De);const jo={name:"OpenwbDonationBanner",components:{FontAwesomeIcon:O}},Wo={class:"mt-3 alert alert-dark text-center"},Ro=o("br",null,null,-1),No=o("br",null,null,-1),Fo={action:"https://www.paypal.com/cgi-bin/webscr",method:"post",target:"_blank"},Uo=o("input",{type:"hidden",name:"cmd",value:"_s-xclick"},null,-1),zo=o("input",{type:"hidden",name:"hosted_button_id",value:"2K8C4Y2JTGH7U"},null,-1),Go={type:"submit",class:"btn btn-primary"};function Jo(e,t,n,c,l,s){const a=_("font-awesome-icon");return r(),d("div",Wo,[p(" Open Source made with love!"),Ro,p(" Jede Spende hilft die Weiterentwicklung von openWB voranzutreiben"),No,o("form",Fo,[Uo,zo,o("button",Go,[p(" Spenden "),m(a,{icon:["fab","paypal"]})])])])}const Ko=w(jo,[["render",Jo],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageDonationBanner.vue"]]),Qo={name:"ComponentState",data(){return{mqttTopicsToSubscribe:[]}},emits:["reset","defaults","save"],computed:{weekdays(){return["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"]},chargeModes(){return["instant_charging","pv_charging","scheduled_charging","time_charging","standby","stop"]},mqttClientId(){return this.$root.mqttClientId}},methods:{updateState(e,t,n=void 0){console.debug("updateState:",e,t,n),this.$store.commit({type:"updateTopic",topic:e,objectPath:n,payload:t})},getWildcardIndexList(e,t=!1){let n=e;t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$");let c=Object.keys(this.$store.state.mqtt).filter(l=>l.match(n));return c.forEach((l,s,a)=>{a[s]=parseInt(l.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""))}),c},getWildcardTopics(e,t=!1){let n=e;return t||(n="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(this.$store.state.mqtt).filter(c=>c.match(n)).reduce((c,l)=>({...c,[l]:this.$store.state.mqtt[l]}),{})},formatDate(e,t={year:"numeric",month:"2-digit",day:"2-digit"}){return new Date(e).toLocaleDateString(void 0,t)},formatNumber(e,t=0,n=t,c=1){return(e*c).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:n})},formatNumberTopic(e,t=0,n=t,c=1){return this.$store.state.mqtt[e]?this.formatNumber(this.$store.state.mqtt[e],t,n,c):"-"},formatPhaseArrayNumberTopic(e,t=0,n=t,c=1){return this.$store.state.mqtt[e]?this.$store.state.mqtt[e].map(l=>this.formatNumber(l,t,n,c)).join(" / "):"- / - / -"},translateChargeMode(e){switch(e){case"instant_charging":return"Sofort";case"pv_charging":return"PV";case"scheduled_charging":return"Zielladen";case"time_charging":return"Zeitladen";case"standby":return"Standby";case"stop":return"Stop";default:return console.warn("unknown charge mode:",e),e}}},mounted(){`openWB/log/${this.mqttClientId}/data`in this.$store.state.mqtt||this.mqttTopicsToSubscribe.push("openWB/log/"+this.mqttClientId+"/data"),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?console.debug("skipping init of wildcard topic:",e):Object.keys(this.$store.state.mqtt).includes(e)?console.error("multiple subscriptions of topic!",e):this.$store.commit("addTopic",{topic:e,payload:void 0})}),this.$root.doSubscribe(this.mqttTopicsToSubscribe)},unmounted(){this.$root.doUnsubscribe(this.mqttTopicsToSubscribe),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?(console.debug("expanding wildcard topic:",e),Object.keys(this.getWildcardTopics(e)).forEach(t=>{console.debug("removing wildcardTopic:",t),this.$store.commit("removeTopic",t)})):this.$store.commit("removeTopic",e)})}},G=w(Qo,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/mixins/ComponentState.vue"]]);B.add(Le,qe);const Yo={name:"OpenwbPageMessages",mixins:[G],components:{FontAwesomeIcon:O,FontAwesomeLayers:Ee,FontAwesomeLayersText:je},data(){return{mqttTopicsToSubscribe:["openWB/system/messages/+","openWB/command/"+this.$root.mqttClientId+"/messages/+","openWB/command/"+this.$root.mqttClientId+"/error"],showAllMessages:!1,hiddenMessages:[]}},computed:{alertLevel(){return this.messages.reduce((t,n)=>((t=="light"&&["info","success","warning","danger"].includes(n.type)||t=="info"&&["success","warning","danger"].includes(n.type)||t=="success"&&["warning","danger"].includes(n.type)||t=="warning"&&n.type=="danger")&&(t=n.type),t),"light")},messages(){const e=[];return this.alertData&&e.push({topic:"openWB/command/"+this.$root.mqttClientId+"/error",source:"command",type:"danger",message:`Bei der Verarbeitung des Befehls '`+this.alertData.command+`' mit den Parametern '`+this.alertData.data+"' ist ein Fehler aufgetreten:
"+this.alertData.error+"
"}),this.systemMessages.forEach(t=>{e.push(t)}),this.clientMessages.forEach(t=>{e.push(t)}),e.sort(this.compareMessagesByTimestamp),e},recentMessages(){return this.showAllMessages?this.messages:this.messages.filter(e=>!this.hiddenMessages.includes(e.topic))},messageIndicatorClass(){return"text-"+this.alertLevel},alertData(){return this.$store.state.mqtt["openWB/command/"+this.$root.mqttClientId+"/error"]},systemMessages(){let e=this.getWildcardTopics("openWB/system/messages/+");var t=[];for(const[n,c]of Object.entries(e))t.push({topic:n,...c});return t},clientMessages(){let e=this.getWildcardTopics("openWB/command/"+this.$root.mqttClientId+"/messages/+");var t=[];for(const[n,c]of Object.entries(e))t.push({topic:n,...c});return t}},methods:{toggleAllMessages(){this.showAllMessages=!this.showAllMessages},compareMessagesByTimestamp(e,t){return t.timestamp-e.timestamp},clearTopic(e){this.$root.doPublish(e,void 0)},dismissError(){this.clearTopic("openWB/command/"+this.$root.mqttClientId+"/error")},dismissMessage(e){this.clearTopic(e.topic);var t=this.hiddenMessages.indexOf(e.topic);t>-1&&this.hiddenMessages.splice(t,1)},dismissAllMessages(){this.messages.forEach(e=>{this.clearTopic(e.topic)}),this.hiddenMessages=[],this.toggleAllMessages()},hideMessage(e){this.hiddenMessages.includes(e.topic)||this.hiddenMessages.push(e.topic)}}},Zo=["innerHTML"];function Xo(e,t,n,c,l,s){const a=_("font-awesome-icon"),i=_("font-awesome-layers-text"),b=_("font-awesome-layers"),$=_("openwb-base-alert"),M=_("openwb-base-click-button"),H=_("openwb-base-toast");return r(),d(x,null,[(r(),f(F,{to:"body"},[o("div",{id:"message-indicator",class:y(["text-light mt-1 p-2 mr-1 clickable",l.showAllMessages?"active":""]),onClick:t[0]||(t[0]=(...A)=>s.toggleAllMessages&&s.toggleAllMessages(...A))},[m(b,{"full-width":"",style:{"font-size":"175%"}},{default:h(()=>[m(a,{"fixed-width":"",icon:l.showAllMessages?["fas","bell"]:["far","bell"],class:y(s.messageIndicatorClass)},null,8,["icon","class"]),s.messages.length>0?(r(),f(i,{key:0,counter:"",value:s.messages.length,position:"top-right",class:"message-counter bg-light text-dark"},null,8,["value"])):u("",!0)]),_:1})],2)])),s.recentMessages.length>0||l.showAllMessages?(r(),d("div",{key:0,class:y(["openwb-toast-container",l.showAllMessages?"full-height":""])},[s.recentMessages.length==0?(r(),f($,{key:0,subtype:"info"},{default:h(()=>[p(" Keine Nachrichten vorhanden. ")]),_:1})):l.showAllMessages?(r(),f(M,{key:1,class:"btn-sm btn-secondary mb-1",onButtonClicked:s.dismissAllMessages},{default:h(()=>[p(" Alle Nachrichten löschen ")]),_:1},8,["onButtonClicked"])):u("",!0),(r(!0),d(x,null,D(s.recentMessages,A=>(r(),f(H,{key:A.topic,topic:A.topic,source:A.source,subtype:A.type,timestamp:A.timestamp,onDismiss:s.dismissMessage,onHide:s.hideMessage},{default:h(()=>[o("span",{innerHTML:A.message},null,8,Zo)]),_:2},1032,["topic","source","subtype","timestamp","onDismiss","onHide"]))),128))],2)):u("",!0)],64)}const ea=w(Yo,[["render",Xo],["__scopeId","data-v-2c25f0d0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageMessages.vue"]]),ta={name:"OpenwbPageBlocker",mixins:[G],data(){return{mqttTopicsToSubscribe:["openWB/system/boot_done","openWB/system/update_in_progress"]}},computed:{title(){return this.bootInProgress||this.updateInProgress?"openWB ist noch nicht bereit":this.reloadRequired?"Neues Laden der Seite erforderlich":"???"},myButtons(){return!(this.bootInProgress||this.updateInProgress)&&this.reloadRequired?[{text:"Jetzt neu laden",subtype:"success",event:"reload"}]:[]},bootInProgress(){return this.$store.state.mqtt["openWB/system/boot_done"]==null?!0:!this.$store.state.mqtt["openWB/system/boot_done"]},updateInProgress(){return this.$store.state.mqtt["openWB/system/update_in_progress"]==null?!1:this.$store.state.mqtt["openWB/system/update_in_progress"]},reloadRequired(){return this.$store.state.local.reloadRequired},showModalBlocker(){return this.bootInProgress||this.updateInProgress||this.reloadRequired}},methods:{handleModalResult(e){e=="reload"?location.reload():console.warn("unknown event",e)}}},sa={class:"openwb-blocker"},na={key:0},oa={key:1},aa={key:2},la={key:3};function ia(e,t,n,c,l,s){const a=_("openwb-base-modal-dialog");return r(),d("div",sa,[m(a,{show:s.showModalBlocker,title:s.title,subtype:"dark",preventClose:!0,buttons:s.myButtons,onModalResult:t[0]||(t[0]=i=>s.handleModalResult(i))},{default:h(()=>[s.bootInProgress?(r(),d("p",na," Der Systemstart ist noch nicht abgeschlossen. ")):u("",!0),s.updateInProgress?(r(),d("p",oa," Es wird eine Systemaktualisierung ausgeführt. ")):u("",!0),!(s.bootInProgress||s.updateInProgress)&&s.reloadRequired?(r(),d("p",aa," Bitte die Seite neu laden. ")):(r(),d("p",la,"Bitte warten..."))]),_:1},8,["show","title","buttons"])])}const ra=w(ta,[["render",ia],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageBlocker.vue"]]);const da={name:"settings-app",components:{NavBar:Ho,PageFooter:Eo,DonationBanner:Ko,Messages:ea,Blocker:ra},data(){return{client:{connected:!1},connection:{protocol:location.protocol=="https:"?"wss":"ws",host:location.hostname,port:parseInt(location.port)||(location.protocol=="https:"?443:80),endpoint:"/ws",connectTimeout:4e3,reconnectPeriod:4e3}}},computed:{mqttClientId(){try{return this.client.options.clientId}catch{return}},topicList(){return Object.keys(this.$store.state.mqtt)}},methods:{async saveValues(e=void 0){function t(c){return new Promise(l=>setTimeout(l,c))}console.debug("saving values..."),this.$store.state.local.savingData=!0;let n={};e===void 0?n=this.$store.state.mqtt:Array.isArray(e)?e.forEach(c=>{n[c]=this.$store.state.mqtt[c]}):console.error("expected array, got ",typeof e);for(const[c,l]of Object.entries(n)){let s=c.replace("openWB/","openWB/set/");console.debug("saving data:",s,l),this.doPublish(s,l),await t(100)}console.debug("done saving data"),this.$store.state.local.savingData=!1},resetValues(e=this.topicList){console.debug("resetting values..."),console.debug("topics: ",e),this.doUnsubscribe(e),this.doSubscribe(e)},setDefaultValues(){console.debug("setting default values... (ToDo)")},sendCommand(e){this.doPublish("openWB/set/command/"+this.client.options.clientId+"/todo",e,!1)},createConnection(){const{protocol:e,host:t,port:n,endpoint:c,...l}=this.connection,s=`${e}://${t}:${n}${c}`;console.debug("connecting to broker:",s);try{this.client=ne.connect(s,l)}catch(a){console.error("mqtt.connect error",a)}this.client.on("connect",()=>{console.debug("Connection succeeded! ClientId: ",this.client.options.clientId),this.doSubscribe(["openWB/system/usage_terms_acknowledged"])}),this.client.on("error",a=>{console.error("Connection failed",a)}),this.client.on("message",(a,i)=>{if(i.toString().length>0){let b;try{b=JSON.parse(i.toString())}catch{console.debug("Json parsing failed, fallback to string: ",a),b=i.toString()}this.$store.commit("addTopic",{topic:a,payload:b})}else this.$store.commit("removeTopic",a)})},doSubscribe(e){this.client.subscribe(e,{},t=>{if(t){console.error("Subscribe to topics error",t);return}})},doUnsubscribe(e){this.client.unsubscribe(e,t=>{t&&console.error("Unsubscribe error",t)})},doPublish(e,t,n=!0,c=2){let l={qos:c,retain:n};this.client.publish(e,JSON.stringify(t),l,s=>{s&&console.error("Publish error",s)})},postClientMessage(e,t="secondary"){console.debug("postMessage:",e,t);const n=Date.now(),c="openWB/command/"+this.mqttClientId+"/messages/"+n;this.$store.commit({type:"addTopic",topic:c,payload:{message:e,type:t,source:"client",timestamp:Math.floor(n/1e3)}})}},created(){this.createConnection()}},ca={role:"main",class:"container"},ua={id:"content"};function pa(e,t,n,c,l,s){const a=_("nav-bar"),i=_("router-view"),b=_("donation-banner"),$=_("page-footer"),M=_("messages"),H=_("blocker");return r(),d(x,null,[o("header",null,[m(a)]),o("div",ca,[o("div",ua,[o("h1",null,g(e.$route.meta.heading),1),m(i,{onSave:s.saveValues,onReset:s.resetValues,onDefaults:s.setDefaultValues,onSendCommand:s.sendCommand},null,8,["onSave","onReset","onDefaults","onSendCommand"])]),m(b)]),m($),m(M),m(H)],64)}const ma=w(da,[["render",pa],["__file","/opt/openWB-dev/openwb-ui-settings/src/App.vue"]]),_a="modulepreload",ha=function(e){return"/openWB/web/settings/"+e},N={},k=function(t,n,c){if(!n||n.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=ha(s),s in N)return;N[s]=!0;const a=s.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!c)for(let M=l.length-1;M>=0;M--){const H=l[M];if(H.href===s&&(!a||H.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const $=document.createElement("link");if($.rel=a?"stylesheet":_a,a||($.as="script",$.crossOrigin=""),$.href=s,document.head.appendChild($),a)return new Promise((M,H)=>{$.addEventListener("load",M),$.addEventListener("error",()=>H(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s})};let J={mqtt:{},local:{reloadRequired:!1,savingData:!1},text:{rfidWiki:'Bitte auch hiervon abhängige Einstellungen beachten. Eine Übersicht gibt es im Wiki.'}};J.examples={text1:"Text...",text2:"mail@domain.com",text3:"openwb.local",text4:"http://www.openwb.de",text5:"Benutzername",text6:"12:34",text7:"2021-10-31",number1:5,number2:10,number3:28e-5,password1:"GeHeiM!",textarea1:"Langer Text...",range1:6,range2:10,select1:1,select2:"three",buttonGroup1:1,checkbox1:!0,json1:{text:"Text",number:123},hierarchy1:[{id:0,type:"counter",children:[{id:3,type:"inverter",children:[]},{id:4,type:"bat",children:[]},{id:1,type:"cp",children:[]},{id:2,type:"cp",children:[]}]}],hierarchy1Labels:{0:"EVU",1:"Ladepunkt 1",2:"Ladepunkt 2",3:"Wechselrichter",4:"Batteriespeicher"},tags:["1234","2345","3456"]};const K=oe({state:J,mutations:{storeLocal(e,t){e.local[t.name]=t.value},addTopic(e,t){e.mqtt[t.topic]=t.payload},removeTopic(e,t){delete e.mqtt[t]},updateTopic(e,t){const n=(c,l,s)=>l.split(".").reduce((a,i,b)=>a[i]=l.split(".").length===++b?s:a[i]||{},c);t.topic in e.mqtt?t.objectPath!=null?n(e.mqtt[t.topic],t.objectPath,t.payload):e.mqtt[t.topic]=t.payload:(console.debug("topic not found in state.mqtt: ",t.topic),t.topic in e.examples?t.objectPath!=null?n(e.examples[t.topic],t.objectPath,t.payload):e.examples[t.topic]=t.payload:console.warn("topic not found in state: ",t.topic," giving up"))}},actions:{},modules:{},getters:{usageTermsAcknowledged(e){return new Promise(t=>{if(e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0)t(e.mqtt["openWB/system/usage_terms_acknowledged"]);else{var n,c;n=setTimeout(()=>{clearInterval(c),t(!1)},5e3),c=setInterval(()=>{e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0&&(clearTimeout(n),clearInterval(c),t(e.mqtt["openWB/system/usage_terms_acknowledged"]))},100)}})}}}),Q=[{path:"/",redirect:"/GeneralConfig"},{path:"/Status",name:"Status",meta:{heading:"Status"},component:()=>k(()=>import("./Status-252073e6.js"),["assets/Status-252073e6.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-chartjs-3e4a7d38.js","assets/vendor-luxon-78deadb9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/Status-6557de7c.css"])},{path:"/Logging/ChargeLog",name:"ChargeLog",meta:{heading:"Auswertungen - Ladeprotokoll"},component:()=>k(()=>import("./ChargeLog-1dfc425d.js"),["assets/ChargeLog-1dfc425d.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/ChargeLog-298377e5.css"])},{path:"/Logging/Chart/:chartRange?/:initialDate?",name:"DailyChart",meta:{heading:"Auswertungen - Diagramme"},component:()=>k(()=>import("./Chart-d72eedd8.js"),["assets/Chart-d72eedd8.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-chartjs-3e4a7d38.js","assets/vendor-luxon-78deadb9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/Chart-e20451b4.css"])},{path:"/GeneralConfig",name:"GeneralConfig",meta:{heading:"Einstellungen - Allgemein"},component:()=>k(()=>import("./GeneralConfig-0a74292a.js"),["assets/GeneralConfig-0a74292a.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/OptionalComponents",name:"OptionalComponents",meta:{heading:"Einstellungen - Optionale Hardware"},component:()=>k(()=>import("./OptionalComponents-4217fc43.js"),["assets/OptionalComponents-4217fc43.js","assets/dynamic-import-helper-be004503.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/GeneralChargeConfig",name:"GeneralChargeConfig",meta:{heading:"Ladeeinstellungen - Übergreifendes"},component:()=>k(()=>import("./GeneralChargeConfig-14d5c022.js"),["assets/GeneralChargeConfig-14d5c022.js","assets/dynamic-import-helper-be004503.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/InstantChargeConfig",name:"InstantChargeConfig",meta:{heading:"Ladeeinstellungen - Sofortladen"},component:()=>k(()=>import("./InstantChargeConfig-d8d2493f.js"),["assets/InstantChargeConfig-d8d2493f.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/PVChargeConfig",name:"PVChargeConfig",meta:{heading:"Ladeeinstellungen - PV-Laden"},component:()=>k(()=>import("./PVChargeConfig-c04b99ec.js"),["assets/PVChargeConfig-c04b99ec.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/TimeChargeConfig",name:"TimeChargeConfig",meta:{heading:"Ladeeinstellungen - Zeitladen"},component:()=>k(()=>import("./TimeChargeConfig-06feae4e.js"),["assets/TimeChargeConfig-06feae4e.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/ScheduledChargeConfig",name:"ScheduledChargeConfig",meta:{heading:"Ladeeinstellungen - Zielladen"},component:()=>k(()=>import("./ScheduledChargeConfig-8d88bd9d.js"),["assets/ScheduledChargeConfig-8d88bd9d.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/HardwareInstallation",name:"HardwareInstallation",meta:{heading:"Konfiguration - Geräte und Komponenten"},component:()=>k(()=>import("./HardwareInstallation-2c3ff39f.js"),["assets/HardwareInstallation-2c3ff39f.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/HardwareInstallation-1ee9693f.css"])},{path:"/LoadManagementConfiguration",name:"LoadManagementConfiguration",meta:{heading:"Konfiguration - Lastmanagement"},component:()=>k(()=>import("./LoadManagementConfig-b98691c6.js"),["assets/LoadManagementConfig-b98691c6.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/OpenwbSortableList-e04fc271.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/ChargePointInstallation",name:"ChargePointInstallation",meta:{heading:"Konfiguration - Ladepunkte"},component:()=>k(()=>import("./ChargePointInstallation-55566d4b.js"),["assets/ChargePointInstallation-55566d4b.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/ChargePointInstallation-ed6a5c7e.css"])},{path:"/VehicleConfiguration/:section?/:section_index?/:section_part?/:action?",name:"VehicleConfiguration",meta:{heading:"Konfiguration - Fahrzeuge"},component:()=>k(()=>import("./VehicleConfig-4efd6c86.js"),["assets/VehicleConfig-4efd6c86.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/VehicleConfig-4aeda6ca.css"])},{path:"/System/CloudConfiguration",name:"CloudConfig",meta:{heading:"System - openWB Cloud"},component:()=>k(()=>import("./CloudConfig-3268436a.js"),["assets/CloudConfig-3268436a.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/System/MqttBridgeConfiguration",name:"MqttBridgeConfig",meta:{heading:"System - MQTT-Brücken"},component:()=>k(()=>import("./MqttBridgeConfig-b088a569.js"),["assets/MqttBridgeConfig-b088a569.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/MqttBridgeConfig-3471079a.css"])},{path:"/System/DebugConfiguration",name:"Debugging",meta:{heading:"System - Fehlersuche"},component:()=>k(()=>import("./DebugConfig-f54b7485.js"),["assets/DebugConfig-f54b7485.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/DebugConfig-e21ab72c.css"])},{path:"/System/Support",name:"Support",meta:{heading:"System - Support"},component:()=>k(()=>import("./Support-9c1ef3b0.js"),["assets/Support-9c1ef3b0.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/System/LegalSettings",name:"LegalSettings",meta:{heading:"System - Rechtliches"},component:()=>k(()=>import("./LegalSettings-f4f5e3b6.js"),["assets/LegalSettings-f4f5e3b6.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])},{path:"/System/SystemConfiguration",name:"SystemConfig",meta:{heading:"System - System"},component:()=>k(()=>import("./System-e5a75c6d.js"),["assets/System-e5a75c6d.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js","assets/System-0f1d217b.css"])},{path:"/System/DataManagement",name:"DataManagement",meta:{heading:"System - Datenverwaltung"},component:()=>k(()=>import("./DataManagement-8e2c3130.js"),["assets/DataManagement-8e2c3130.js","assets/vendor-fortawesome-9fdc06a9.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])}];Q.push({path:"/TestingStore",name:"VUEX Store",meta:{heading:"Beispiele - VUEX Store"},component:()=>k(()=>import("./TestingStore-f5d92bd1.js"),["assets/TestingStore-f5d92bd1.js","assets/OpenwbSortableList-e04fc271.js","assets/vendor-f0f38b48.js","assets/vendor-sortablejs-cbf37f8f.js","assets/vendor-867a85e2.css","assets/vendor-fortawesome-9fdc06a9.js","assets/OpenwbSortableList-7ba533e4.css","assets/vendor-bootstrap-384bc385.js","assets/vendor-jquery-8576ed22.js","assets/vendor-bootstrap-c4951098.css","assets/vendor-axios-e59ef189.js"])});const j=ae({history:le(),routes:Q});j.beforeEach(async e=>{if(e.name!=="LegalSettings"&&!await K.getters.usageTermsAcknowledged)return{name:"LegalSettings"}});j.afterEach(e=>{e.meta.heading?document.title="openWB | "+e.meta.heading:document.title="openWB"});const W=ie(ma);W.use(K).use(j).use(We,Re);const fa=Object.assign({"./components/OpenwbBaseAlert.vue":ze,"./components/OpenwbBaseArrayInput.vue":lt,"./components/OpenwbBaseAvatar.vue":ut,"./components/OpenwbBaseButtonGroupInput.vue":yt,"./components/OpenwbBaseButtonInput.vue":xt,"./components/OpenwbBaseCard.vue":jt,"./components/OpenwbBaseCheckboxInput.vue":Jt,"./components/OpenwbBaseClickButton.vue":Zt,"./components/OpenwbBaseCopyToClipboard.vue":ns,"./components/OpenwbBaseHeading.vue":cs,"./components/OpenwbBaseModalDialog.vue":ws,"./components/OpenwbBaseNumberInput.vue":Ps,"./components/OpenwbBaseRangeInput.vue":Us,"./components/OpenwbBaseSelectInput.vue":nn,"./components/OpenwbBaseSubmitButtons.vue":pn,"./components/OpenwbBaseTextInput.vue":Hn,"./components/OpenwbBaseTextarea.vue":Jn,"./components/OpenwbBaseToast.vue":no});Object.entries(fa).forEach(([e,t])=>{const n=re(de(e.split("/").pop().replace(/\.\w+$/,"")));W.component(n,t.default)});W.mount("#app");export{G as C,k as _}; diff --git a/web/settings/assets/vehicle-2c609f87.js b/web/settings/assets/vehicle-7140c23d.js similarity index 97% rename from web/settings/assets/vehicle-2c609f87.js rename to web/settings/assets/vehicle-7140c23d.js index ddceceb2da..7a55c8cbb1 100644 --- a/web/settings/assets/vehicle-2c609f87.js +++ b/web/settings/assets/vehicle-7140c23d.js @@ -1 +1 @@ -import{_ as m,a5 as p,a6 as g,a7 as f,q as l,k as b,l as k,B as a,M as s,x as r,u as v}from"./vendor-f0f38b48.js";import{a as w}from"./vendor-axios-e59ef189.js";import{C as y}from"./index-b8f06cb8.js";import"./vendor-sortablejs-cbf37f8f.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";const C={name:"VehicleSocTesla",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{tesla_api_oauth2:"https://auth.tesla.com/oauth2/v3",tesla_api_redirect:"https://auth.tesla.com/void/callback",tesla_api_owners:"https://owner-api.teslamotors.com/oauth/token",user_agent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",code_challenge:null,code_verifier:null,page_not_found_url:null}},mixins:[y],methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})},tesla_login_window(){this.tesla_gen_challenge();var e=window.open(this.tesla_gen_url(),"TeslaLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");e.focus()},tesla_gen_challenge(){this.code_verifier=p.encode(g.randomBytes(86)).replace(/[^a-zA-Z0-9]/gi,"").substring(0,86);const e=g.createHash("sha256").update(this.code_verifier).digest();this.code_challenge=p.encode(e),console.debug(this.code_verifier,this.code_verifier.length,this.code_challenge,this.code_challenge.length)},tesla_gen_url(){const e=new URL(this.tesla_api_oauth2+"/authorize/");return e.searchParams.append("client_id","ownerapi"),e.searchParams.append("code_challenge",this.code_challenge),e.searchParams.append("code_challenge_method","S256"),e.searchParams.append("redirect_uri",this.tesla_api_redirect),e.searchParams.append("response_type","code"),e.searchParams.append("scope","openid email offline_access"),e.searchParams.append("state","myteslaapp"),e},async tesla_login(){const e=f.parse(this.page_not_found_url,!0).query;if(console.debug("queryObject",e),!e.code){console.error("Something is wrong... Code does not exist in URL"),this.$root.postClientMessage("Die eingegebene URL ist ungültig.","danger");return}const n={url:this.tesla_api_owners,user_agent:this.user_agent,data:{grant_type:"authorization_code",client_id:"ownerapi",code:e.code,code_verifier:this.code_verifier,redirect_uri:this.tesla_api_redirect}};try{const t=await w.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/vehicles/tesla/tesla.php",JSON.parse(JSON.stringify(n)),{headers:{"Content-Type":"application/json",Accept:"application/json"}});console.debug("response",t),this.updateConfiguration({access_token:t.data.access_token,refresh_token:t.data.refresh_token,created_at:t.data.created_at,expires_in:t.data.expires_in},"configuration.token"),this.$root.postClientMessage("Token erfolgreich abgerufen.","success")}catch(t){console.error(t),this.$root.postClientMessage("Beim Abruf der Token ist ein Fehler aufgetreten!
"+t+"
","danger")}}}},T={class:"vehicle-soc-tesla"},x=v("hr",null,null,-1);function B(e,n,t,U,u,i){const d=l("openwb-base-number-input"),h=l("openwb-base-heading"),_=l("openwb-base-button-input"),c=l("openwb-base-text-input");return b(),k("div",T,[a(d,{title:"Fahrzeug-ID",required:"",min:0,"model-value":t.vehicle.configuration.tesla_ev_num,"onUpdate:modelValue":n[0]||(n[0]=o=>i.updateConfiguration(o,"configuration.tesla_ev_num"))},{help:s(()=>[r(' Die ID des Fahrzeugs bei Tesla. Normalerweise "0" bei nur einem Fahrzeug im Konto. ')]),_:1},8,["model-value"]),a(h,null,{default:s(()=>[r("Token abrufen oder eingeben")]),_:1}),a(_,{title:"1. Anmelden",buttonText:"Bei Tesla Anmelden",subtype:"success",onButtonClicked:i.tesla_login_window},{help:s(()=>[r(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Tesla mit Ihren Zugangsdaten anmelden können. ")]),_:1},8,["onButtonClicked"]),a(c,{title:"2. URL kopieren und einfügen",subtype:"url",emptyValue:null,modelValue:u.page_not_found_url,"onUpdate:modelValue":n[1]||(n[1]=o=>u.page_not_found_url=o)},{help:s(()=>[r(' Hier die komplette URL (Text in der Adresszeile) aus dem geöffneten Browserfenster einfügen, wenn dort "Page Not Found" angezeigt wird. ')]),_:1},8,["modelValue"]),a(_,{title:"3. Token abrufen",buttonText:"Jetzt abrufen",subtype:"success",disabled:u.page_not_found_url===null,onButtonClicked:i.tesla_login},{help:s(()=>[r(" Der in der eingegebenen URL enthaltene Code wird genutzt, um ein Anmeldetoken bei Tesla abzurufen. Ist dies erfolgreich, so werden die Daten des Token in den weiteren Feldern automatisch eingegeben. ")]),_:1},8,["disabled","onButtonClicked"]),x,a(c,{title:"Access Token",pattern:"^(ey).*",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.access_token:"","onUpdate:modelValue":n[2]||(n[2]=o=>i.updateConfiguration(o,"configuration.token.access_token"))},null,8,["model-value"]),a(c,{title:"Refresh Token",pattern:"^(ey).*",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.refresh_token:"","onUpdate:modelValue":n[3]||(n[3]=o=>i.updateConfiguration(o,"configuration.token.refresh_token"))},null,8,["model-value"]),a(d,{title:"Erstellt um",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.created_at:0,"onUpdate:modelValue":n[4]||(n[4]=o=>i.updateConfiguration(o,"configuration.token.created_at"))},{help:s(()=>[r(" Unix Timestamp des Zeitpunktes, an dem das Token erzeugt wurde. ")]),_:1},8,["model-value"]),a(d,{title:"Ungültig in",unit:"s",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.expires_in:0,"onUpdate:modelValue":n[5]||(n[5]=o=>i.updateConfiguration(o,"configuration.token.expires_in"))},{help:s(()=>[r(" Zeitspanne in Sekunden, nach der das Token ungültig wird. ")]),_:1},8,["model-value"])])}const M=m(C,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tesla/vehicle.vue"]]);export{M as default}; +import{_ as m,a5 as p,a6 as g,a7 as f,q as l,k as b,l as k,B as a,M as s,x as r,u as v}from"./vendor-f0f38b48.js";import{a as w}from"./vendor-axios-e59ef189.js";import{C as y}from"./index-720fb9ac.js";import"./vendor-sortablejs-cbf37f8f.js";import"./vendor-fortawesome-9fdc06a9.js";import"./vendor-bootstrap-384bc385.js";import"./vendor-jquery-8576ed22.js";const C={name:"VehicleSocTesla",emits:["update:configuration"],props:{vehicleId:{required:!0,type:Number},vehicle:{required:!0,type:Object}},data(){return{tesla_api_oauth2:"https://auth.tesla.com/oauth2/v3",tesla_api_redirect:"https://auth.tesla.com/void/callback",tesla_api_owners:"https://owner-api.teslamotors.com/oauth/token",user_agent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",code_challenge:null,code_verifier:null,page_not_found_url:null}},mixins:[y],methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})},tesla_login_window(){this.tesla_gen_challenge();var e=window.open(this.tesla_gen_url(),"TeslaLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");e.focus()},tesla_gen_challenge(){this.code_verifier=p.encode(g.randomBytes(86)).replace(/[^a-zA-Z0-9]/gi,"").substring(0,86);const e=g.createHash("sha256").update(this.code_verifier).digest();this.code_challenge=p.encode(e),console.debug(this.code_verifier,this.code_verifier.length,this.code_challenge,this.code_challenge.length)},tesla_gen_url(){const e=new URL(this.tesla_api_oauth2+"/authorize/");return e.searchParams.append("client_id","ownerapi"),e.searchParams.append("code_challenge",this.code_challenge),e.searchParams.append("code_challenge_method","S256"),e.searchParams.append("redirect_uri",this.tesla_api_redirect),e.searchParams.append("response_type","code"),e.searchParams.append("scope","openid email offline_access"),e.searchParams.append("state","myteslaapp"),e},async tesla_login(){const e=f.parse(this.page_not_found_url,!0).query;if(console.debug("queryObject",e),!e.code){console.error("Something is wrong... Code does not exist in URL"),this.$root.postClientMessage("Die eingegebene URL ist ungültig.","danger");return}const n={url:this.tesla_api_owners,user_agent:this.user_agent,data:{grant_type:"authorization_code",client_id:"ownerapi",code:e.code,code_verifier:this.code_verifier,redirect_uri:this.tesla_api_redirect}};try{const t=await w.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/vehicles/tesla/tesla.php",JSON.parse(JSON.stringify(n)),{headers:{"Content-Type":"application/json",Accept:"application/json"}});console.debug("response",t),this.updateConfiguration({access_token:t.data.access_token,refresh_token:t.data.refresh_token,created_at:t.data.created_at,expires_in:t.data.expires_in},"configuration.token"),this.$root.postClientMessage("Token erfolgreich abgerufen.","success")}catch(t){console.error(t),this.$root.postClientMessage("Beim Abruf der Token ist ein Fehler aufgetreten!
"+t+"
","danger")}}}},T={class:"vehicle-soc-tesla"},x=v("hr",null,null,-1);function B(e,n,t,U,u,i){const d=l("openwb-base-number-input"),h=l("openwb-base-heading"),_=l("openwb-base-button-input"),c=l("openwb-base-text-input");return b(),k("div",T,[a(d,{title:"Fahrzeug-ID",required:"",min:0,"model-value":t.vehicle.configuration.tesla_ev_num,"onUpdate:modelValue":n[0]||(n[0]=o=>i.updateConfiguration(o,"configuration.tesla_ev_num"))},{help:s(()=>[r(' Die ID des Fahrzeugs bei Tesla. Normalerweise "0" bei nur einem Fahrzeug im Konto. ')]),_:1},8,["model-value"]),a(h,null,{default:s(()=>[r("Token abrufen oder eingeben")]),_:1}),a(_,{title:"1. Anmelden",buttonText:"Bei Tesla Anmelden",subtype:"success",onButtonClicked:i.tesla_login_window},{help:s(()=>[r(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Tesla mit Ihren Zugangsdaten anmelden können. ")]),_:1},8,["onButtonClicked"]),a(c,{title:"2. URL kopieren und einfügen",subtype:"url",emptyValue:null,modelValue:u.page_not_found_url,"onUpdate:modelValue":n[1]||(n[1]=o=>u.page_not_found_url=o)},{help:s(()=>[r(' Hier die komplette URL (Text in der Adresszeile) aus dem geöffneten Browserfenster einfügen, wenn dort "Page Not Found" angezeigt wird. ')]),_:1},8,["modelValue"]),a(_,{title:"3. Token abrufen",buttonText:"Jetzt abrufen",subtype:"success",disabled:u.page_not_found_url===null,onButtonClicked:i.tesla_login},{help:s(()=>[r(" Der in der eingegebenen URL enthaltene Code wird genutzt, um ein Anmeldetoken bei Tesla abzurufen. Ist dies erfolgreich, so werden die Daten des Token in den weiteren Feldern automatisch eingegeben. ")]),_:1},8,["disabled","onButtonClicked"]),x,a(c,{title:"Access Token",pattern:"^(ey).*",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.access_token:"","onUpdate:modelValue":n[2]||(n[2]=o=>i.updateConfiguration(o,"configuration.token.access_token"))},null,8,["model-value"]),a(c,{title:"Refresh Token",pattern:"^(ey).*",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.refresh_token:"","onUpdate:modelValue":n[3]||(n[3]=o=>i.updateConfiguration(o,"configuration.token.refresh_token"))},null,8,["model-value"]),a(d,{title:"Erstellt um",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.created_at:0,"onUpdate:modelValue":n[4]||(n[4]=o=>i.updateConfiguration(o,"configuration.token.created_at"))},{help:s(()=>[r(" Unix Timestamp des Zeitpunktes, an dem das Token erzeugt wurde. ")]),_:1},8,["model-value"]),a(d,{title:"Ungültig in",unit:"s",required:"","model-value":t.vehicle.configuration.token?t.vehicle.configuration.token.expires_in:0,"onUpdate:modelValue":n[5]||(n[5]=o=>i.updateConfiguration(o,"configuration.token.expires_in"))},{help:s(()=>[r(" Zeitspanne in Sekunden, nach der das Token ungültig wird. ")]),_:1},8,["model-value"])])}const M=m(C,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tesla/vehicle.vue"]]);export{M as default}; diff --git a/web/settings/index.html b/web/settings/index.html index a8ac53c153..cc137108b7 100644 --- a/web/settings/index.html +++ b/web/settings/index.html @@ -7,7 +7,7 @@ openWB - +