openc3-cosmos-tool-tlmgrapher 5.14.1 → 5.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/tlmgrapher/js/{540.js → 508.js} +2 -2
- data/tools/tlmgrapher/js/{540.js.map → 508.js.map} +1 -1
- data/tools/tlmgrapher/js/516.js +2 -0
- data/tools/tlmgrapher/js/516.js.map +1 -0
- data/tools/tlmgrapher/js/860.js +23 -0
- data/tools/tlmgrapher/js/860.js.map +1 -0
- data/tools/tlmgrapher/js/app.js +1 -1
- data/tools/tlmgrapher/js/app.js.map +1 -1
- metadata +8 -8
- data/tools/tlmgrapher/js/595.js +0 -2
- data/tools/tlmgrapher/js/595.js.map +0 -1
- data/tools/tlmgrapher/js/77.js +0 -23
- data/tools/tlmgrapher/js/77.js.map +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f661c5e601bce0602dffdfb8aa305beb165e4551505656179ea112d2c07aaadf
|
4
|
+
data.tar.gz: dda037cd35b1788a1cc1bf452b22bc9be983d9dffece9d95cb5d600ab8332e97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 591ec0d020983d9ac9e9d82c5aee0fed713e0f995f6bf75a30409b666563d02e7e89b99cec88524d85a02994cab5667ebfdf1184c033655e2d37beec3d14b2fa
|
7
|
+
data.tar.gz: b16b23d8e883c7c9d27d33f16bae02b745b569c9b533f5e25ed6af63ed9f9405d8dd84d078be7b3d3a9f596f1ce35b4230a29e21a0a94e3177755f8bd93201fa
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";(self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]=self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]||[]).push([[
|
2
|
-
//# sourceMappingURL=
|
1
|
+
"use strict";(self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]=self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]||[]).push([[508],{4508:(e,t,o)=>{o.r(t),o.d(t,{default:()=>u});var r=function(){var e=this,t=e._self._c;return t("v-card",[t("v-card-title",[e._v("404 Not Found Error")]),e._v(" "),t("v-card-text",[e._v("The requested URL "),t("code",[e._v(e._s(e.$route.fullPath))]),e._v(" was not\n routable.")])],1)},l=[],s=o(3552),_={},c=(0,s.c)(_,r,l,!1,null,null,null);const u=c.exports}}]);
|
2
|
+
//# sourceMappingURL=508.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"js/
|
1
|
+
{"version":3,"file":"js/508.js","mappings":"mLAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,SAAS,CAACA,EAAG,eAAe,CAACF,EAAII,GAAG,yBAAyBJ,EAAII,GAAG,KAAKF,EAAG,cAAc,CAACF,EAAII,GAAG,sBAAsBF,EAAG,OAAO,CAACF,EAAII,GAAGJ,EAAIK,GAAGL,EAAIM,OAAOC,aAAaP,EAAII,GAAG,8BAA8B,EACpR,EACII,EAAkB,G,UCDlBC,EAAS,CAAC,EAKVC,GAAY,OACdD,EACAV,EACAS,GACA,EACA,KACA,KACA,MAIF,QAAeE,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-tlmgrapher/../openc3-tool-common/src/components/NotFound.vue","webpack://@openc3/cosmos-tool-tlmgrapher/../openc3-tool-common/src/components/NotFound.vue?4849"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-card',[_c('v-card-title',[_vm._v(\"404 Not Found Error\")]),_vm._v(\" \"),_c('v-card-text',[_vm._v(\"The requested URL \"),_c('code',[_vm._v(_vm._s(_vm.$route.fullPath))]),_vm._v(\" was not\\n routable.\")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./NotFound.vue?vue&type=template&id=163f57b0\"\nvar script = {}\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","_v","_s","$route","fullPath","staticRenderFns","script","component"],"sourceRoot":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]=self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]||[]).push([[516],{9516:(e,t,n)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",t="56eaf5983bdbf60036c94ce0f9dfccbffc54742c",n=new Function("return this")(),s="__coverage__",l={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",statementMap:{0:{start:{line:1,column:13},end:{line:6,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:5,column:1848}},4:{start:{line:1,column:260},end:{line:1,column:273}},5:{start:{line:2,column:16},end:{line:2,column:35}},6:{start:{line:4,column:16},end:{line:4,column:35}},7:{start:{line:5,column:183},end:{line:5,column:1034}},8:{start:{line:5,column:720},end:{line:5,column:741}},9:{start:{line:5,column:764},end:{line:5,column:786}},10:{start:{line:5,column:802},end:{line:5,column:814}},11:{start:{line:5,column:830},end:{line:5,column:849}},12:{start:{line:5,column:866},end:{line:5,column:885}},13:{start:{line:5,column:901},end:{line:5,column:925}},14:{start:{line:5,column:950},end:{line:5,column:997}},15:{start:{line:5,column:1230},end:{line:5,column:1252}},16:{start:{line:5,column:1482},end:{line:5,column:1504}},17:{start:{line:5,column:1782},end:{line:5,column:1808}},18:{start:{line:7,column:22},end:{line:7,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:244},end:{line:1,column:245}},loc:{start:{line:1,column:259},end:{line:1,column:274}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:1464},end:{line:1,column:1465}},loc:{start:{line:1,column:1470},end:{line:3,column:15}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:3,column:302},end:{line:3,column:303}},loc:{start:{line:3,column:308},end:{line:5,column:15}},line:3},4:{name:"(anonymous_4)",decl:{start:{line:5,column:167},end:{line:5,column:168}},loc:{start:{line:5,column:182},end:{line:5,column:1035}},line:5},5:{name:"(anonymous_5)",decl:{start:{line:5,column:714},end:{line:5,column:715}},loc:{start:{line:5,column:720},end:{line:5,column:741}},line:5},6:{name:"(anonymous_6)",decl:{start:{line:5,column:758},end:{line:5,column:759}},loc:{start:{line:5,column:764},end:{line:5,column:786}},line:5},7:{name:"(anonymous_7)",decl:{start:{line:5,column:796},end:{line:5,column:797}},loc:{start:{line:5,column:802},end:{line:5,column:814}},line:5},8:{name:"(anonymous_8)",decl:{start:{line:5,column:823},end:{line:5,column:824}},loc:{start:{line:5,column:830},end:{line:5,column:849}},line:5},9:{name:"(anonymous_9)",decl:{start:{line:5,column:859},end:{line:5,column:860}},loc:{start:{line:5,column:866},end:{line:5,column:885}},line:5},10:{name:"(anonymous_10)",decl:{start:{line:5,column:895},end:{line:5,column:896}},loc:{start:{line:5,column:901},end:{line:5,column:925}},line:5},11:{name:"(anonymous_11)",decl:{start:{line:5,column:933},end:{line:5,column:934}},loc:{start:{line:5,column:949},end:{line:5,column:998}},line:5},12:{name:"(anonymous_12)",decl:{start:{line:5,column:1214},end:{line:5,column:1215}},loc:{start:{line:5,column:1229},end:{line:5,column:1253}},line:5},13:{name:"(anonymous_13)",decl:{start:{line:5,column:1466},end:{line:5,column:1467}},loc:{start:{line:5,column:1481},end:{line:5,column:1505}},line:5},14:{name:"(anonymous_14)",decl:{start:{line:5,column:1766},end:{line:5,column:1767}},loc:{start:{line:5,column:1781},end:{line:5,column:1809}},line:5}},branchMap:{0:{loc:{start:{line:5,column:1054},end:{line:5,column:1293}},type:"cond-expr",locations:[{start:{line:5,column:1075},end:{line:5,column:1284}},{start:{line:5,column:1285},end:{line:5,column:1293}}],line:5},1:{loc:{start:{line:5,column:1306},end:{line:5,column:1545}},type:"cond-expr",locations:[{start:{line:5,column:1327},end:{line:5,column:1536}},{start:{line:5,column:1537},end:{line:5,column:1545}}],line:5}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"56eaf5983bdbf60036c94ce0f9dfccbffc54742c"},a=n[s]||(n[s]={});a[e]&&a[e].hash===t||(a[e]=l);var o=a[e];return i=function(){return o},o}n.r(t),n.d(t,{default:()=>Te}),i(),i().s[0]++;var s=function(){i().f[0]++;var e=(i().s[1]++,this),t=(i().s[2]++,e._self._c);return i().s[3]++,t("div",[t("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),t("v-expansion-panels",{staticStyle:{"margin-bottom":"5px"},model:{value:e.panel,callback:function(t){i().f[1]++,i().s[4]++,e.panel=t},expression:"panel"}},[t("v-expansion-panel",[t("v-expansion-panel-header",{staticStyle:{"z-index":"1"}}),e._v(" "),t("v-expansion-panel-content",[t("div",{directives:[{name:"show",rawName:"v-show",value:null===this.selectedGraphId,expression:"this.selectedGraphId === null"}]},[t("v-row",{staticClass:"my-5"},[t("v-spacer"),e._v(" "),t("span",[e._v("\n Add a graph from the menu bar or select an existing graph to\n continue\n ")]),e._v(" "),t("v-spacer")],1)],1),e._v(" "),t("v-row",{directives:[{name:"show",rawName:"v-show",value:null!==this.selectedGraphId,expression:"this.selectedGraphId !== null"}],staticClass:"ma-1"},[t("target-packet-item-chooser",{attrs:{"initial-target-name":this.$route.params.target,"initial-packet-name":this.$route.params.packet,"initial-item-name":this.$route.params.item,"button-text":"Add Item","choose-item":"","select-types":""},on:{click:e.addItem}}),e._v(" "),t("v-btn",{directives:[{name:"show",rawName:"v-show",value:"pause"===e.state,expression:"state === 'pause'"}],staticClass:"pulse control",attrs:{color:"primary",fab:"","data-test":"start-graph"},on:{click:()=>{i().f[2]++,i().s[5]++,e.state="start"}}},[t("v-icon",{attrs:{large:""}},[e._v("mdi-play")])],1),e._v(" "),t("v-btn",{directives:[{name:"show",rawName:"v-show",value:"start"===e.state,expression:"state === 'start'"}],staticClass:"control",attrs:{color:"primary",fab:"","data-test":"pause-graph"},on:{click:()=>{i().f[3]++,i().s[6]++,e.state="pause"}}},[t("v-icon",{attrs:{large:""}},[e._v("mdi-pause")])],1)],1)],1)],1)],1),e._v(" "),t("div",[t("div",{staticClass:"grid"},e._l(e.graphs,(function(n){return i().f[4]++,i().s[7]++,t("div",{key:n,ref:`gridItem${n}`,refInFor:!0,staticClass:"item",attrs:{id:`gridItem${n}`}},[t("div",{staticClass:"item-content"},[t("graph",{ref:`graph${n}`,refInFor:!0,attrs:{id:n,state:e.state,"start-time":e.startTime,"selected-graph-id":e.selectedGraphId,"seconds-graphed":e.settings.secondsGraphed.value,"points-saved":e.settings.pointsSaved.value,"points-graphed":e.settings.pointsGraphed.value,"refresh-interval-ms":e.settings.refreshIntervalMs.value},on:{"close-graph":()=>(i().f[5]++,i().s[8]++,e.closeGraph(n)),"min-max-graph":()=>(i().f[6]++,i().s[9]++,e.minMaxGraph(n)),resize:()=>(i().f[7]++,i().s[10]++,e.resize()),pause:()=>(i().f[8]++,i().s[11]++,e.state="pause"),start:()=>(i().f[9]++,i().s[12]++,e.state="start"),click:()=>(i().f[10]++,i().s[13]++,e.graphSelected(n)),edit:function(t){return i().f[11]++,i().s[14]++,e.saveDefaultConfig(e.currentConfig)},started:e.graphStarted}})],1)])})),0)]),e._v(" "),e.showOpenConfig?(i().b[0][0]++,t("open-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.openConfiguration},model:{value:e.showOpenConfig,callback:function(t){i().f[12]++,i().s[15]++,e.showOpenConfig=t},expression:"showOpenConfig"}})):(i().b[0][1]++,e._e()),e._v(" "),e.showSaveConfig?(i().b[1][0]++,t("save-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.saveConfiguration},model:{value:e.showSaveConfig,callback:function(t){i().f[13]++,i().s[16]++,e.showSaveConfig=t},expression:"showSaveConfig"}})):(i().b[1][1]++,e._e()),e._v(" "),t("settings-dialog",{directives:[{name:"show",rawName:"v-show",value:e.showSettingsDialog,expression:"showSettingsDialog"}],attrs:{settings:e.settings},model:{value:e.showSettingsDialog,callback:function(t){i().f[14]++,i().s[17]++,e.showSettingsDialog=t},expression:"showSettingsDialog"}})],1)},l=(i().s[18]++,[]),a=(n(9344),n(2632),n(8032),n(2768)),o=(n(5872),n(284),n(5596),n(4016),n(7788),n(4788),n(6640),n(4096),n(6484),n(3152),n(5800),n(3700)),r=n(5852);const c=new r["default"],d=o.c.create({baseURL:location.origin,timeout:6e4,params:{}});d.interceptors.response.use((e=>e),(e=>{if(e.response){var t,n,i,s,l;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let o=`HTTP ${e.response.status} - `;if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(o+=`${e.response.statusText} `),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(o+=`${e.response.config.data} `),null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.message)o+=`${e.response.data.message}`;else if(null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&s.exception)o+=`${e.response.data.exception}`;else if(null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&null!==(l=l.error)&&void 0!==l&&l.message)e.response.data.error.class&&(o+=`${e.response.data.error.class} `),o+=`${e.response.data.error.message}`;else{var a;o+=`${null===(a=e.response)||void 0===a?void 0:a.data}`}throw c.$notify&&c.$notify.serious({title:"Network error",body:o}),e}throw e}));const u=d;class m{constructor(){(0,a.c)(this,"id",1)}async exec(e,t,n={},i={},s=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(a){OpenC3Auth.login()}this.id=this.id+1;try{n["scope"]=window.openc3Scope;const l=await u.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...i},timeout:s});return l.data.result}catch(a){var l=new Error;throw a.response?(l.name=a.response.data.error.data.class,l.message=a.response.data.error.data.message):a.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(null!==e&&"object"===typeof e&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,t,...n){return this.exec("interface_cmd",[e,t,...n])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,n){return this.exec("get_item",[e,t,n])}get_param(e,t,n){return this.exec("get_param",[e,t,n])}get_parameter(e,t,n){return this.exec("get_parameter",[e,t,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_telemetry",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,t,n,i=30){const s=await this.exec("get_tlm_packet",[e,t],{type:n,stale_time:i});if(null!=s)for(var l=s.length,a=null,o=0;o<l;o++)a=this.decode_openc3_type(s[o][1]),null!==a&&(s[o][1]=a);return s}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30,n=null){let i={stale_time:t};null!==n&&(i["cache_timeout"]=n);const s=await this.exec("get_tlm_values",[e],i,{},1e4);for(var l=s[0].length,a=null,o=0;o<l;o++)a=this.decode_openc3_type(s[0][o]),null!==a&&(s[0][o]=a);return s}get_limits(e,t,n){return this.exec("get_limits",[e,t,n])}async tlm(e,t,n,i="CONVERTED"){let s=null;if(void 0===t)s=await this.exec("tlm",[e]);else if(void 0===n){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){var l=new Error;throw l.name="TypeError",l.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,l}s=await this.exec("tlm",[e],{type:t})}else s=await this.exec("tlm",[e,t,n],{type:i});var a=this.decode_openc3_type(s);return null!==a&&(s=a),s}async inject_tlm(e,t,n=null,i="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:i})}set_tlm(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}override_tlm(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_command",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,n,i="CONVERTED"){return this.exec("get_cmd_value",[e,t,n,i])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,n,i,s){var l=null;for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(l=this.encode_openc3_type(i[a]),null!==l&&(i[a]=l));return this.exec(e,[t,n,i],{},s)}get_cmd_hazardous(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}cmd(e,t,n,i={}){return void 0===t?this.exec("cmd",e,{},i):this._cmd("cmd",e,t,n,i)}cmd_no_range_check(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}cmd_raw(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}cmd_raw_no_range_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}cmd_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}cmd_no_checks(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}cmd_raw_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}cmd_raw_no_checks(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}build_cmd(e,t,n){return void 0===t?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,n)}build_command(e,t,n){return void 0===t?this.exec("build_command",e):this._cmd("build_command",e,t,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,n){return this.exec("save_config",[e,t,n])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,n){return this.exec("enable_limits",[e,t,n])}disable_limits(e,t,n){return this.exec("disable_limits",[e,t,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}save_setting(e,t){return this.exec("save_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),i=new Uint8Array(n);return Array.from(i).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}const h={data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(e){!0!==this.dontSaveDefaultConfig&&(localStorage[`${this.configKey}__default`]=JSON.stringify(e))},openConfigBase:function(e,t=!1,n=null){(new m).load_config(this.configKey,e).then((i=>{i?(this.$notify.normal({title:"Loading configuration",body:e}),n&&n(JSON.parse(i)),t||this.$router.currentRoute.fullPath.includes(e)||this.$router.push({query:{config:e}})):this.$notify.caution({title:"Unknown configuration",body:e})})).catch((t=>{t&&this.$notify.serious({title:`Error opening configuration: ${e}`,body:t})}))},saveConfigBase:function(e,t){(new m).save_config(this.configKey,e,JSON.stringify(t)).then((()=>{this.$notify.normal({title:"Saved configuration",body:e})})).catch((t=>{t&&this.$notify.serious({title:`Error saving configuration: ${e}`,body:t})}))},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`),"/"!==this.$router.currentRoute.fullPath&&(this.$router.replace(this.$router.currentRoute.path),this.$router.go())}}};var p=function(){var e=this,t=e._self._c;return t("div",[t("v-card",{nativeOn:{click:function(t){return e.$emit("click")}}},[t("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[e._v(" "),t("span",[e._v("Errors")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(t){e.editGraph=!0}}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Edit ")])]),e._v(" "),t("v-spacer"),e._v(" "),t("span",[e._v(e._s(e.title))]),e._v(" "),t("v-spacer"),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v("\n mdi-arrow-collapse\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v("\n mdi-arrow-expand\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v("\n mdi-arrow-collapse-horizontal\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v("\n mdi-arrow-expand-horizontal\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v("\n mdi-arrow-collapse-vertical\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v("\n mdi-arrow-expand-vertical\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(t){return e.$emit("close-graph")}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Close ")])])],1),e._v(" "),t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[t("div",{attrs:{id:`chart${e.id}`}}),e._v(" "),t("div",{attrs:{id:"betweenCharts"}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:`overview${e.id}`}})])])],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("input")},input:function(t){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(t){e.editGraph=t},expression:"editGraph"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Edit Graph")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",{staticClass:"pa-3"},[t("v-card-text",{staticClass:"pa-0"},[t("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),e._v(" "),t("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a start date/time for the graph. Leave blank for start now.\n ")]),e._v(" "),t("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time","date-time":e.graphStartDateTime},on:{"date-time":function(t){e.graphStartDateTime=t}}}),e._v(" "),t("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a end date/time for the graph. Leave blank for continuous\n real-time graphing.\n ")]),e._v(" "),t("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(t){e.graphEndDateTime=t}}}),e._v(" "),t("v-row",{staticClass:"mb-2",attrs:{dense:""}},[t("v-select",{staticStyle:{"max-width":"280px"},attrs:{label:"Legend Position",dense:"",outlined:"","hide-details":"",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(t){e.legendPosition=t},expression:"legendPosition"}})],1),e._v(" "),t("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y",type:"number","data-test":"graph-min-y"},model:{value:e.graphMinY,callback:function(t){e.graphMinY=t},expression:"graphMinY"}})],1),e._v(" "),t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Max Y",type:"number","data-test":"graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1),e._v(" "),t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-btn",{attrs:{icon:"","data-test":`delete-item-icon${n.itemId}`},on:{click:()=>e.removeItems([n])}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no items on this graph")])]},proxy:!0}])}),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Errors")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),e._v(" "),t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),e._v(" "),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e._v(" "),e.editGraphMenu?t("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(t){e.editGraphMenu=t},expression:"editGraphMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){e.editGraph=!0}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("\n Edit "+e._s(e.title)+"\n ")])],1)],1)],1):e._e(),e._v(" "),e.editItem?t("graph-edit-item-dialog",{attrs:{colors:e.colors,item:e.selectedItem},on:{changeColor:e.changeColor,changeLimits:e.changeLimits,cancel:function(t){e.editItem=!1},close:e.closeEditItem},model:{value:e.editItem,callback:function(t){e.editItem=t},expression:"editItem"}}):e._e(),e._v(" "),e.itemMenu?t("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(t){e.itemMenu=t},expression:"itemMenu"}},[t("v-list",{attrs:{nav:"",dense:""}},[t("v-subheader",[e._v("\n "+e._s(e.selectedItem.targetName)+"\n "+e._s(e.selectedItem.packetName)+"\n "+e._s(e.selectedItem.itemName)+"\n ")]),e._v(" "),t("v-list-item",{on:{click:function(t){e.editItem=!0}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-pencil")])],1),e._v(" "),t("v-list-item-content",[t("v-list-item-title",[e._v(" Edit ")])],1)],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.removeItems([e.selectedItem])}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-delete")])],1),e._v(" "),t("v-list-item-content",[t("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e._v(" "),e.legendMenu?t("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(t){e.legendMenu=t},expression:"legendMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){return e.moveLegend("top")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("bottom")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("left")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},v=[],g=(n(3444),function(){var e=this,t=e._self._c;return t("div",[t("v-row",[t("v-col",[t("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("v-text-field",e._g({attrs:{label:e.dateLabel,name:`date${Date.now()}`,rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}},n))]}}])})],1),e._v(" "),t("v-col",[t("v-text-field",{attrs:{label:e.timeLabel,name:`time${Date.now()}`,rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1)],1)}),A=[],f=n(3388),_=n(7884),C=n(8544),y=n(3196);const b={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data(){return{date:null,time:null,rules:{required:e=>!!e||"Required",date:e=>{if(!e)return!0;try{return(0,f.c)((0,_.c)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:e=>{if(!e)return!0;try{return(0,f.c)((0,_.c)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules(){let e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules(){let e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created(){if(this.dateTime){let e=(0,C.c)(this.dateTime/1e6);this.date=(0,y.c)(e,"yyyy-MM-dd"),this.time=(0,y.c)(e,"HH:mm:ss")}},methods:{onChange(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},x=b;var w=n(3552),k=(0,w.c)(x,g,A,!1,null,null,null);const N=k.exports;var T=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"400"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-card-title",{staticClass:"mb-2"},[e._v("Edit Item")]),e._v(" "),t("v-card-text",[t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.editItem.valueType,callback:function(t){e.$set(e.editItem,"valueType",t)},expression:"editItem.valueType"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduction",items:e.reduction},model:{value:e.editItem.reduced,callback:function(t){e.$set(e.editItem,"reduced",t)},expression:"editItem.reduced"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:"DECOM"===e.currentReduced},model:{value:e.editItem.reducedType,callback:function(t){e.$set(e.editItem,"reducedType",t)},expression:"editItem.reducedType"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},on:{change:function(t){return e.$emit("changeColor",t)}},model:{value:e.editItem.color,callback:function(t){e.$set(e.editItem,"color",t)},expression:"editItem.color"}}),e._v(" "),e.limitsNames.length>1?t("div",[t("v-select",{attrs:{outlined:"","hide-details":"",label:"Display Limits",items:e.limitsNames},on:{change:function(t){return e.$emit("changeLimits",e.limits[e.limitsName])}},model:{value:e.limitsName,callback:function(t){e.limitsName=t},expression:"limitsName"}}),e._v(" "),t("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e()],1),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(t){return e.$emit("cancel")}}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(t){return e.$emit("close",e.editItem)}}},[e._v("\n Ok\n ")])],1)],1)],1)},I=[];const S={props:{value:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},await this.api,this.api=(new m).get_item(this.item.targetName,this.item.packetName,this.item.itemName).then((e=>{for(const[t,n]of Object.entries(e.limits))Object.keys(n).includes("red_low")&&this.$set(this.limits,t,Object.values(n));this.limitsName=Object.keys(this.limits).find((e=>this.limits[e]+""===this.editItem.limits+""))}))}},D=S;var M=(0,w.c)(D,T,I,!1,null,null,null);const $=M.exports;var E=n(2407),G=n(8584),R=n.n(G),O=n(9980);O.Eh.staleThreshold=10;class z{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,t,n={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((t=>{if(t&&OpenC3Auth.setTokens(),null==this._cable){let e=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=O.gF(e)}return this._cable.subscriptions.create({channel:e,...i},n)}))}recordPing(){this._cable.connection.monitor.recordPing()}}n(2759);const L={components:{DateTimeChooser:N,GraphEditItemDialog:$},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data(){return{itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new z,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];let e=0;return this.items.map((t=>(e+=1,{...t,itemId:e})))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[e,t]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(t)]=e+1,void 0===t.color&&(t.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:e,overviewSeries:t}=this.items.reduce(((e,t)=>{const n={spanGaps:!0};return e.chartSeries.push({...n,item:t,label:this.formatLabel(t),stroke:(e,t)=>this.items[t-1].color,width:2,value:(e,t)=>"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(2)}),e.overviewSeries.push({...n}),e}),{chartSeries:[],overviewSeries:[]});let n={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,n={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new E.c(n,this.data,document.getElementById(`chart${this.id}`));else{n={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],series:[{label:"Time",value:(e,t)=>null==t?"--":(0,y.c)((0,C.c)(1e3*t),"yyyy-MM-dd HH:mm:ss")},...e],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(e,t,n)=>t=>{"pause"===this.state&&0===e.select.width&&this.$emit("start"),n(t)}}},hooks:{setScale:[(e,t)=>{if("x"===t&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let t=Math.round(this.overview.valToPos(e.scales.x.min,"x")),n=Math.round(this.overview.valToPos(e.scales.x.max,"x"));this.overview.setSelect({left:t,width:n-t}),this.zoomChart=!1}}],setSelect:[e=>{"start"===this.state&&e.select.width>0&&this.$emit("pause")}],ready:[e=>{let t=e.root.querySelector(".u-over");t.addEventListener("contextmenu",(e=>{e.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=e.clientX,this.editGraphMenuY=e.clientY,this.editGraphMenu=!0})),t.addEventListener("mouseenter",(e=>{this.$emit("resize")})),t.addEventListener("mouseleave",(e=>{this.$emit("resize")}));let n=e.root.querySelector(".u-legend");n.addEventListener("contextmenu",(t=>{t.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=t.clientX,this.itemMenuY=t.clientY;let i=t.target.closest(".u-series"),s=Array.prototype.slice.call(n.childNodes[0].childNodes).indexOf(i),l=e.series[s];l.item?(this.selectedItem=l.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=t.clientX,this.legendMenuY=t.clientY,this.legendMenu=!0)}))}]}},this.graph=new E.c(n,this.data,document.getElementById(`chart${this.id}`));const i={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),series:[...t],cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[e=>{if(!this.zoomChart){"start"===this.state&&e.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let t=e.posToVal(e.select.left,"x"),n=e.posToVal(e.select.left+e.select.width,"x");this.graph.setScale("x",{min:t,max:n}),this.zoomOverview=!1}}]}};this.overview=new E.c(i,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,t){switch(e){case"start":"stop"===t&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,t){this.dataChanged=!0},graphMinY:function(e,t){let n=parseFloat(e);isNaN(n)||(this.graphMinY=n),this.setGraphRange()},graphMaxY:function(e,t){let n=parseFloat(e);isNaN(n)||(this.graphMaxY=n),this.setGraphRange()},graphStartDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"===this.state||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let e=this.data[0][this.data[0].length-1],t=this.data[0][this.data[0].length-this.pointsGraphed],n=this.data[0][0];n<e-this.secondsGraphed&&(n=e-this.secondsGraphed),t>n&&(n=t),this.graph.setScale("x",{min:n,max:e}),this.dataChanged=!1},formatLabel(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;{let t="";return"CONVERTED"!==e.valueType&&(t+=e.valueType),"DECOM"!==e.reduced&&(""!==t&&(t+=" "),t+=`${e.reduced.split("_")[1]} ${e.reducedType}`),`${e.itemName} (${t})`}},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){if(this.editGraph=!1,this.needToUpdate){if(null==this.subscription)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout((()=>{this.addItems(e)}),0)}this.needToUpdate=!1}this.moveLegend(this.legendPosition),this.$emit("edit")},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let e=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(e=0),this.graph.scales.y.range=(t,n,i)=>{let s=n;(this.graphMinY||0===this.graphMinY)&&(s=this.graphMinY);let l=i;return(this.graphMaxY||0===this.graphMaxY)&&(l=this.graphMaxY),E.c.rangeNum(s,l,e,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((e=>{this.subscription=e}))},getSize:function(e){const t=document.getElementById("openc3-nav-drawer"),n=t.classList.contains("v-navigation-drawer--open")?t.clientWidth:0;let i=0;if("right"===this.legendPosition||"left"===this.legendPosition){const e=document.getElementsByClassName("u-legend")[0];i=e.clientWidth}const s=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-n-i,l=Math.max(document.documentElement.clientHeight,window.innerHeight||0),a=document.getElementsByClassName("tgt-pkt-item-chooser")[0];let o=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:a&&(o=l-a.clientHeight-o-250,this.fullHeight||(o=o/2+10));let r=s-62;return this.fullWidth||(r=r/2-10),{width:this.width||r,height:this.height||o}},getScales:function(){return{scales:{x:{range(e,t,n){return null==t?[1566453600,1566497660]:[t,n]}},y:{range(e,t,n){return null==t?[-100,100]:E.c.rangeNum(t,n,.1,!0)}}}}},getAxes:function(e){let t="rgba(0, 0, 0, .1)",n="black";return this.$vuetify.theme.dark&&(t="rgba(255, 255, 255, .1)",n="white"),{axes:[{stroke:n,grid:{show:!0,stroke:t,width:2}},{size:80,stroke:n,grid:{show:"overview"!==e,stroke:t,width:2}}]}},closeEditItem:function(e){this.editItem=!1,(null!==this.graphEndDateTime&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){let t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[n].style.borderColor=e},changeLimits:function(e){let t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){return{hooks:{draw:e=>{const{ctx:t,bbox:n}=e,i=e.valToPos(e.scales.y.min,"y",!0),s=e.valToPos(e.scales.y.max,"y",!0),l=e.valToPos(this.limitsValues[0],"y",!0),a=e.valToPos(this.limitsValues[1],"y",!0),o=e.valToPos(this.limitsValues[2],"y",!0),r=e.valToPos(this.limitsValues[3],"y",!0);if(t.save(),t.beginPath(),t.fillStyle="rgba(255,0,0,0.15)",e.scales.y.min<this.limitsValues[0]){let e=l<s?s:l;t.fillRect(n.left,l,n.width,i-e)}if(e.scales.y.max>this.limitsValues[3]){let e=i<r?i:r;t.fillRect(n.left,s,n.width,e-s)}if(t.fillStyle="rgba(255,255,0,0.15)",e.scales.y.min<this.limitsValues[1]&&e.scales.y.max>this.limitsValues[0]){let e=a<s?s:a;t.fillRect(n.left,e,n.width,l-e)}if(e.scales.y.max>this.limitsValues[2]&&e.scales.y.min<this.limitsValues[3]){let e=i<r?i:r,s=i<o?i:o;t.fillRect(n.left,e,n.width,s-e)}if(t.fillStyle="rgba(0,255,0,0.15)",4===this.limitsValues.length){if(e.scales.y.min<this.limitsValues[2]&&e.scales.y.max>this.limitsValues[1]){let e=o<s?s:o,l=i<a?i:a;t.fillRect(n.left,e,n.width,l-e)}}else{const l=e.valToPos(this.limitsValues[4],"y",!0),r=e.valToPos(this.limitsValues[5],"y",!0);if(e.scales.y.min<this.limitsValues[4]&&e.scales.y.max>this.limitsValues[1]){let e=l<s?s:l;t.fillRect(n.left,e,n.width,a-e)}if(e.scales.y.max>this.limitsValues[5]&&e.scales.y.min<this.limitsValues[2]){let e=i<o?i:o,s=i<r?i:r;t.fillRect(n.left,e,n.width,s-e)}t.fillStyle="rgba(0,0,255,0.15)";let c=r<s?s:r,d=i<l?i:l;t.fillRect(n.left,c,n.width,d-c)}t.stroke(),t.restore()}}}},changeItem:function(e){this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((()=>{this.addItems([this.selectedItem])}),0)},addItems:function(e,t="CONVERTED"){for(const n of e){n.valueType||(n.valueType=t),void 0===n.color&&(n.color=this.colors[this.colorIndex]),void 0===n.limits?n.limits=[]:n.limits.length>0&&(this.limitsValues=n.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(n);const e=this.data.length;this.graph.addSeries({spanGaps:!0,item:n,label:this.formatLabel(n),stroke:(e,t)=>this.items[t-1].color,width:2,value:(e,t)=>"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(2)},e),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:(e,t)=>this.items[t-1].color},e);let i=Array(this.data[0].length);this.data.splice(e,0,i),this.indexes[this.subscriptionKey(n)]=e}this.addItemsToSubscription(e),this.$emit("edit")},addItemsToSubscription:function(e=this.items){let t=this.startTime;this.graphStartDateTime&&(t=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((n=>{n&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey),start_time:t,end_time:this.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);for(const t of e.map(this.subscriptionKey)){const e=this.reorderIndexes(t);this.items.splice(e-1,1),this.data.splice(e,1),this.graph.delSeries(e),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(e),this.overview.setData(this.data))}1===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},removeItemsFromSubscription:function(e=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){let t=this.indexes[e];for(var n in delete this.indexes[e],this.indexes)this.indexes[n]>t&&(this.indexes[n]-=1);return t},received:function(e){this.cable.recordPing();for(let t=0;t<e.length;t++){let n=e[t].__time/1e9,i=e[0].length;if(0===i||n>e[0][i-1]){for(let e=0;e<this.data.length;e++)this.data[e].push(null);this.set_data_at_index(this.data[0].length-1,n,e[t])}else{let i=R()(this.data[0],n,this.bs_comparator);if(i>=0)this.set_data_at_index(i,n,e[t]);else{let s=-i-1;for(let e=0;e<this.data.length;e++)this.data[e].splice(s,0,null);this.set_data_at_index(s,n,e[t])}}}if(null==this.startTime&&this.data[0][0]){let e=1e9*this.data[0][0];this.$emit("started",e)}this.dataChanged=!0},bs_comparator:function(e,t){return e-t},set_data_at_index:function(e,t,n){this.data[0][e]=t;for(const[i,s]of Object.entries(n)){if("time"===i)continue;let t=this.indexes[i];if(t){let n=this.data[t];if(null!==s&&void 0!==s&&s.raw)n[e]=null;else if("string"===typeof s){if(n[e]=null,!i.includes("__RAW")){for(let e of this.items)if(this.subscriptionKey(e)===i){this.selectedItem=e;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else n[e]=s}}},subscriptionKey:function(e){let t=`${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(t+=`__${e.reducedType}`),t}}},P=L;n(1015),n(7996);var H=(0,w.c)(P,p,v,!1,null,"c94bd35a",null);const U=H.exports;var W=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Open Configuration")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":"","data-test":"search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":(e,t)=>t.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(n)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v("\n Cancel\n ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},V=[];const Y={props:{configKey:String,value:Boolean},data(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){let e=-1;(new m).list_configs(this.configKey).then((t=>{this.configs=t.map((t=>(e+=1,{configId:e,config:t})))})).catch((e=>{this.$emit("warning",`Failed to connect to OpenC3. ${e}`)}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.config}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>{this.selectedItem.config===e.config&&(this.selectedItem=null),this.configs.splice(this.configs.indexOf(e),1),(new m).delete_config(this.configKey,e.config)})).catch((t=>{t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},F=Y;var B=(0,w.c)(F,W,V,!1,null,null,null);const K=B.exports;var q=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Save Configuration")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":"","data-test":"search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":(e,t)=>t.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(n)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(t){e.configName=t},expression:"configName"}})],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},X=[];const j={props:{configKey:String,value:Boolean},data(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){let e=-1;(new m).list_configs(this.configKey).then((t=>{this.configs=t.map((t=>(e+=1,{configId:e,config:t})))})).catch((e=>{this.$emit("warning",`Failed to connect to OpenC3. ${e}`)}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.config}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>{this.configName===e.config&&(this.selectedItem=null,this.configName=""),this.configs.splice(this.configs.indexOf(e.config),1),(new m).delete_config(this.configKey,e.config)})).catch((t=>{t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},J=j;var Z=(0,w.c)(J,q,X,!1,null,null,null);const Q=Z.exports;var ee=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pt-4 tgt-pkt-item-chooser"},[t("v-row",[t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-target"}},[t("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",outlined:"",items:e.targetNames,"item-text":"label","item-value":"value"},on:{change:e.targetNameChanged},model:{value:e.selectedTargetName,callback:function(t){e.selectedTargetName=t},expression:"selectedTargetName"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-packet"}},[t("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",outlined:"",disabled:e.packetsDisabled||e.buttonDisabled,items:e.packetNames,"item-text":"label","item-value":"value"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(t){e.selectedPacketName=t},expression:"selectedPacketName"}})],1),e._v(" "),e.chooseItem&&!e.buttonDisabled?t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-item"}},[t("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",outlined:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.itemNames,"item-text":"label","item-value":"value"},on:{change:function(t){return e.itemNameChanged(t)}},model:{value:e.selectedItemName,callback:function(t){e.selectedItemName=t},expression:"selectedItemName"}})],1):e._e(),e._v(" "),e.itemIsArray()?t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"array-index"}},[t("v-combobox",{attrs:{label:"Array Index","hide-details":"",dense:"",outlined:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.arrayIndexes(),"item-text":"label","item-value":"value"},model:{value:e.selectedArrayIndex,callback:function(t){e.selectedArrayIndex=t},expression:"selectedArrayIndex"}})],1):e._e(),e._v(" "),e.buttonText?t("v-col",{staticStyle:{"max-width":"0px"},attrs:{cols:e.colSize}},[t("v-btn",{attrs:{disabled:e.buttonDisabled,block:"",color:"primary","data-test":"select-send"},on:{click:e.buttonPressed}},[e._v("\n "+e._s(e.actualButtonText)+"\n ")])],1):e._e()],1),e._v(" "),e.selectTypes?t("v-row",[t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"data-type"}},[t("v-autocomplete",{attrs:{label:"Value Type","hide-details":"",dense:"",outlined:"",items:e.valueTypes},model:{value:e.selectedValueType,callback:function(t){e.selectedValueType=t},expression:"selectedValueType"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"reduced"}},[t("v-autocomplete",{attrs:{label:"Reduced","hide-details":"",dense:"",outlined:"",items:e.reductionModes},model:{value:e.selectedReduced,callback:function(t){e.selectedReduced=t},expression:"selectedReduced"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"reduced-type"}},[t("v-autocomplete",{attrs:{label:"Reduced Type","hide-details":"",dense:"",outlined:"",disabled:"DECOM"===e.selectedReduced,items:e.reducedTypes},model:{value:e.selectedReducedType,callback:function(t){e.selectedReducedType=t},expression:"selectedReducedType"}})],1),e._v(" "),t("v-col",{staticStyle:{"max-width":"0px"},attrs:{cols:e.colSize}})],1):e._e(),e._v(" "),t("v-row",{staticClass:"pt-1",attrs:{"no-gutters":""}},[e.hazardous?t("v-col",{staticClass:"openc3-yellow",attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" (HAZARDOUS)")]):t("v-col",{attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" ")])],1)],1)},te=[];n(2728),n(8888);const ne={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:e=>["cmd","tlm"].includes(e)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data(){var e,t,n;return{targetNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),packetNames:[],selectedPacketName:null===(t=this.initialPacketName)||void 0===t?void 0:t.toUpperCase(),itemNames:[],selectedItemName:null===(n=this.initialItemName)||void 0===n?void 0:n.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedArrayIndex:null,selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created(){this.internalDisabled=!0,this.api=new m,this.api.get_target_names().then((e=>{this.targetNames=e.flatMap((e=>"UNKNOWN"==e?[]:{label:e,value:e})),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName||(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.updatePackets(),this.unknown&&this.targetNames.push(this.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},colSize:function(){return!!this.vertical&&12},selectedItemNameWIndex:function(){return null!==this.selectedArrayIndex&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName}},watch:{mode:function(e,t){this.selectedPacketName=null,this.selectedItemName=null,this.updatePackets()}},methods:{updatePackets:function(){if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;const e="tlm"===this.mode?"get_all_tlm_names":"get_all_cmd_names";this.api[e](this.selectedTargetName).then((e=>{this.packetNames=e.map((e=>({label:e,value:e}))),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value),this.packetNameChanged(this.selectedPacketName);const t=this.packetNames.find((e=>e.value===this.selectedPacketName));t&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1}))},updateItems:function(){if("ALL"===this.selectedPacketName)return;this.internalDisabled=!0;const e="tlm"===this.mode?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then((e=>{this.itemNames=e.items.map((e=>[{label:e.name,value:e.name,description:e.description,array:e.array_size/e.bit_size}])).reduce(((e,t)=>e.concat(t)),[]),this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.internalDisabled=!1,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))},itemIsArray:function(){let e=this.itemNames.findIndex((e=>e.value===this.selectedItemName));return-1!==e&&(isNaN(this.itemNames[e].array)?(this.selectedArrayIndex=null,!1):(null===this.selectedArrayIndex&&(this.selectedArrayIndex=0),!0))},arrayIndexes:function(){let e=this.itemNames.findIndex((e=>e.value===this.selectedItemName)),t=[...Array(this.itemNames[e].array).keys()];return this.allowAll&&t.unshift(this.ALL.label),t},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;const t=this.packetNames.find((t=>e===t.value));if(t){this.selectedPacketName=t.value;const e="tlm"===this.mode?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then((e=>{this.description=e.description,this.hazardous=e.hazardous}))}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(e){const t=this.itemNames.find((t=>e===t.value));t&&(this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}))},buttonPressed:function(){"ALL"===this.selectedPacketName?this.allTargetPacketItems():"ALL"===this.selectedItemName?this.allPacketItems():this.chooseItem?this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){this.packetNames.forEach((e=>{if(e===this.ALL)return;const t="tlm"===this.mode?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,e.value).then((t=>{t.items.forEach((t=>{this.$emit("click",{targetName:this.selectedTargetName,packetName:e.value,itemName:t["name"],valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))}))}))},allPacketItems:function(){this.itemNames.forEach((e=>{e!==this.ALL&&this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:e.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))}}},ie=ne;n(9536);var se=(0,w.c)(ie,ee,te,!1,null,"4a855687",null);const le=se.exports;var ae=function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{"align-self":"end"}},[t("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),t("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(n,i){return t("v-menu",{key:i,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){return[t("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${n.label}`)}},"v-btn",s,!1),i),[t("span",{domProps:{textContent:e._s(n.label)}}),e._v(" "),t("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(i,s){return[i.divider?t("v-divider",{key:s}):i.subMenu&&i.subMenu.length>0?t("div",{key:s},[t("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:l}){return[t("v-list-item",e._g(e._b({key:s,attrs:{disabled:i.disabled}},"v-list-item",l,!1),n),[i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label)+"\n ")]),e._v(" "),t("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",e._l(i.subMenu,(function(n,i){return t("v-list-item",{key:i,on:{click:function(t){return e.subMenuClick(n)}}},[n.icon?t("v-list-item-icon",[t("v-icon",[e._v(e._s(n.icon))])],1):e._e(),e._v(" "),t("v-list-item-title",[e._v(e._s(n.label))])],1)})),1)],1)],1):t("v-list-item",{key:s,attrs:{disabled:i.disabled,"data-test":e.formatDT(`${e.title} ${n.label} ${i.label}`)},on:{click:function(e){return i.command(i)}}},[i.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),e._v(" "),i.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(t){e.$set(i,"checked",t)},expression:"option.checked"}})],1):e._e(),e._v(" "),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),1)],1)},oe=[];n(4144);const re={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},ce=re;n(4724);var de=(0,w.c)(ce,ae,oe,!1,null,"57d4fdd2",null);const ue=de.exports;var me=n(8920);function he(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/SettingsDialog.vue",t="643111a82a36afc079839ae910b8bec01c9b2dc9",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/SettingsDialog.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:854}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:409},end:{line:1,column:702}},6:{start:{line:1,column:630},end:{line:1,column:666}},7:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:394},end:{line:1,column:395}},loc:{start:{line:1,column:408},end:{line:1,column:703}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:614},end:{line:1,column:615}},loc:{start:{line:1,column:629},end:{line:1,column:667}},line:1}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0,3:0},b:{},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"643111a82a36afc079839ae910b8bec01c9b2dc9"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return he=function(){return a},a}he(),he().s[0]++;var pe=function(){he().f[0]++;var e=(he().s[1]++,this),t=(he().s[2]++,e._self._c);return he().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){he().f[1]++,he().s[4]++,e.show=t},expression:"show"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("TlmGrapher Settings")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",{staticClass:"pa-3"},[t("v-card-text",[e._l(e.settings,(function(n){return he().f[2]++,he().s[5]++,t("div",{key:n.title},[t("v-row",{staticClass:"my-5"},[t("v-text-field",{attrs:{"hide-details":"auto",type:"number",rules:n.rules,label:n.title},model:{value:n.value,callback:function(t){he().f[3]++,he().s[6]++,e.$set(n,"value",e._n(t))},expression:"item.value"}})],1)],1)})),e._v(" "),t("v-row",[t("span",{staticClass:"red--text"},[e._v("\n Increasing these values may cause issues\n ")])])],2)],1)],1)},ve=(he().s[7]++,[]);const ge={Accept:"application/json"};function Ae(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/SettingsDialog.vue",t="2a6a925ee2a8659c7b7094fc9861b9d4a25006e7",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/SettingsDialog.vue",statementMap:{0:{start:{line:13,column:4},end:{line:13,column:13}},1:{start:{line:18,column:8},end:{line:18,column:25}},2:{start:{line:21,column:8},end:{line:21,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:9},end:{line:14,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:17,column:6},end:{line:17,column:7}},loc:{start:{line:17,column:12},end:{line:19,column:7}},line:17},2:{name:"(anonymous_2)",decl:{start:{line:20,column:6},end:{line:20,column:7}},loc:{start:{line:20,column:17},end:{line:22,column:7}},line:20}},branchMap:{},s:{0:0,1:0,2:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,sources:["SettingsDialog.vue"],names:[],mappings:";AAqDA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"SettingsDialog.vue",sourceRoot:"src/tools/TlmGrapher",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <v-dialog v-model="show" width="600">\n <v-system-bar>\n <v-spacer />\n <span>TlmGrapher Settings</span>\n <v-spacer />\n </v-system-bar>\n <v-card class="pa-3">\n <v-card-text>\n <div v-for="item in settings" :key="item.title">\n <v-row class="my-5">\n <v-text-field\n hide-details="auto"\n type="number"\n :rules="item.rules"\n :label="item.title"\n v-model.number="item.value"\n />\n </v-row>\n </div>\n <v-row>\n <span class="red--text">\n Increasing these values may cause issues\n </span>\n </v-row>\n </v-card-text>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\n\nexport default {\n props: {\n settings: {\n type: Object,\n required: true,\n },\n value: Boolean, // value is the default prop when using v-model\n },\n data() {\n return {}\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n },\n methods: {},\n}\n<\/script>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2a6a925ee2a8659c7b7094fc9861b9d4a25006e7"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return Ae=function(){return a},a}Ae();const fe={props:{settings:{type:Object,required:!0},value:Boolean},data(){return Ae().f[0]++,Ae().s[0]++,{}},computed:{show:{get(){return Ae().f[1]++,Ae().s[1]++,this.value},set(e){Ae().f[2]++,Ae().s[2]++,this.$emit("input",e)}}},methods:{}},_e=fe;var Ce=(0,w.c)(_e,pe,ve,!1,null,null,null);const ye=Ce.exports;function be(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",t="f4e77b8789bf8af4a84f5dda9e1229aa88b32590",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",statementMap:{0:{start:{line:12,column:27},end:{line:12,column:30}},1:{start:{line:24,column:4},end:{line:137,column:5}},2:{start:{line:47,column:16},end:{line:47,column:42}},3:{start:{line:54,column:16},end:{line:54,column:42}},4:{start:{line:61,column:16},end:{line:61,column:30}},5:{start:{line:62,column:16},end:{line:62,column:37}},6:{start:{line:63,column:16},end:{line:63,column:38}},7:{start:{line:75,column:16},end:{line:75,column:31}},8:{start:{line:85,column:16},end:{line:85,column:36}},9:{start:{line:92,column:16},end:{line:92,column:36}},10:{start:{line:99,column:16},end:{line:99,column:35}},11:{start:{line:109,column:16},end:{line:109,column:46}},12:{start:{line:119,column:29},end:{line:119,column:50}},13:{start:{line:124,column:29},end:{line:124,column:50}},14:{start:{line:129,column:29},end:{line:129,column:50}},15:{start:{line:134,column:29},end:{line:134,column:50}},16:{start:{line:142,column:8},end:{line:142,column:50}},17:{start:{line:149,column:6},end:{line:178,column:7}},18:{start:{line:158,column:26},end:{line:158,column:69}},19:{start:{line:159,column:27},end:{line:159,column:49}},20:{start:{line:160,column:23},end:{line:168,column:11}},21:{start:{line:172,column:10},end:{line:175,column:11}},22:{start:{line:173,column:12},end:{line:173,column:67}},23:{start:{line:174,column:12},end:{line:174,column:63}},24:{start:{line:176,column:10},end:{line:176,column:23}},25:{start:{line:182,column:4},end:{line:187,column:6}},26:{start:{line:190,column:4},end:{line:192,column:6}},27:{start:{line:191,column:6},end:{line:191,column:39}},28:{start:{line:195,column:4},end:{line:217,column:5}},29:{start:{line:196,column:6},end:{line:196,column:60}},30:{start:{line:199,column:9},end:{line:217,column:5}},31:{start:{line:204,column:6},end:{line:210,column:8}},32:{start:{line:212,column:19},end:{line:212,column:43}},33:{start:{line:214,column:6},end:{line:216,column:7}},34:{start:{line:215,column:8},end:{line:215,column:32}},35:{start:{line:221,column:6},end:{line:221,column:31}},36:{start:{line:224,column:6},end:{line:241,column:7}},37:{start:{line:225,column:8},end:{line:240,column:9}},38:{start:{line:233,column:10},end:{line:238,column:12}},39:{start:{line:239,column:10},end:{line:239,column:16}},40:{start:{line:242,column:6},end:{line:242,column:71}},41:{start:{line:243,column:6},end:{line:245,column:7}},42:{start:{line:244,column:8},end:{line:244,column:28}},43:{start:{line:246,column:6},end:{line:246,column:48}},44:{start:{line:249,column:17},end:{line:249,column:29}},45:{start:{line:250,column:22},end:{line:250,column:27}},46:{start:{line:251,column:23},end:{line:251,column:28}},47:{start:{line:253,column:6},end:{line:260,column:7}},48:{start:{line:254,column:8},end:{line:256,column:9}},49:{start:{line:255,column:10},end:{line:255,column:26}},50:{start:{line:257,column:8},end:{line:259,column:9}},51:{start:{line:258,column:10},end:{line:258,column:27}},52:{start:{line:261,column:6},end:{line:261,column:26}},53:{start:{line:262,column:6},end:{line:262,column:23}},54:{start:{line:263,column:6},end:{line:279,column:8}},55:{start:{line:264,column:20},end:{line:266,column:10}},56:{start:{line:267,column:8},end:{line:267,column:29}},57:{start:{line:268,column:8},end:{line:268,column:33}},58:{start:{line:270,column:8},end:{line:272,column:9}},59:{start:{line:271,column:10},end:{line:271,column:53}},60:{start:{line:273,column:8},end:{line:275,column:9}},61:{start:{line:274,column:10},end:{line:274,column:54}},62:{start:{line:276,column:8},end:{line:278,column:30}},63:{start:{line:277,column:10},end:{line:277,column:43}},64:{start:{line:280,column:6},end:{line:280,column:48}},65:{start:{line:283,column:18},end:{line:283,column:80}},66:{start:{line:284,column:6},end:{line:284,column:29}},67:{start:{line:285,column:6},end:{line:285,column:52}},68:{start:{line:287,column:6},end:{line:292,column:7}},69:{start:{line:288,column:8},end:{line:288,column:29}},70:{start:{line:289,column:8},end:{line:289,column:35}},71:{start:{line:291,column:8},end:{line:291,column:45}},72:{start:{line:293,column:6},end:{line:293,column:48}},73:{start:{line:297,column:6},end:{line:299,column:7}},74:{start:{line:298,column:8},end:{line:298,column:30}},75:{start:{line:300,column:6},end:{line:300,column:22}},76:{start:{line:303,column:6},end:{line:303,column:31}},77:{start:{line:304,column:6},end:{line:309,column:7}},78:{start:{line:306,column:10},end:{line:306,column:43}},79:{start:{line:310,column:6},end:{line:310,column:48}},80:{start:{line:313,column:6},end:{line:318,column:7}},81:{start:{line:315,column:10},end:{line:315,column:43}},82:{start:{line:323,column:6},end:{line:325,column:7}},83:{start:{line:324,column:8},end:{line:324,column:29}},84:{start:{line:329,column:6},end:{line:329,column:39}},85:{start:{line:330,column:6},end:{line:330,column:27}},86:{start:{line:331,column:6},end:{line:331,column:28}},87:{start:{line:333,column:6},end:{line:333,column:73}},88:{start:{line:334,column:6},end:{line:334,column:67}},89:{start:{line:335,column:6},end:{line:335,column:71}},90:{start:{line:336,column:6},end:{line:336,column:79}},91:{start:{line:338,column:19},end:{line:338,column:32}},92:{start:{line:339,column:6},end:{line:341,column:7}},93:{start:{line:340,column:8},end:{line:340,column:28}},94:{start:{line:342,column:6},end:{line:342,column:28}},95:{start:{line:343,column:19},end:{line:343,column:23}},96:{start:{line:344,column:6},end:{line:355,column:8}},97:{start:{line:345,column:23},end:{line:345,column:49}},98:{start:{line:346,column:8},end:{line:346,column:36}},99:{start:{line:347,column:8},end:{line:347,column:44}},100:{start:{line:348,column:8},end:{line:348,column:46}},101:{start:{line:349,column:8},end:{line:349,column:44}},102:{start:{line:350,column:8},end:{line:350,column:44}},103:{start:{line:351,column:8},end:{line:351,column:62}},104:{start:{line:352,column:8},end:{line:352,column:58}},105:{start:{line:353,column:8},end:{line:353,column:49}},106:{start:{line:354,column:8},end:{line:354,column:43}},107:{start:{line:356,column:6},end:{line:356,column:26}},108:{start:{line:357,column:6},end:{line:357,column:40}},109:{start:{line:360,column:6},end:{line:363,column:8}},110:{start:{line:361,column:8},end:{line:361,column:38}},111:{start:{line:362,column:8},end:{line:362,column:38}},112:{start:{line:364,column:6},end:{line:364,column:23}},113:{start:{line:367,column:6},end:{line:367,column:51}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:2},end:{line:23,column:3}},loc:{start:{line:23,column:9},end:{line:138,column:3}},line:23},1:{name:"(anonymous_1)",decl:{start:{line:46,column:23},end:{line:46,column:24}},loc:{start:{line:46,column:29},end:{line:48,column:15}},line:46},2:{name:"(anonymous_2)",decl:{start:{line:53,column:23},end:{line:53,column:24}},loc:{start:{line:53,column:29},end:{line:55,column:15}},line:53},3:{name:"(anonymous_3)",decl:{start:{line:60,column:23},end:{line:60,column:24}},loc:{start:{line:60,column:29},end:{line:64,column:15}},line:60},4:{name:"(anonymous_4)",decl:{start:{line:74,column:23},end:{line:74,column:24}},loc:{start:{line:74,column:29},end:{line:76,column:15}},line:74},5:{name:"(anonymous_5)",decl:{start:{line:84,column:23},end:{line:84,column:24}},loc:{start:{line:84,column:29},end:{line:86,column:15}},line:84},6:{name:"(anonymous_6)",decl:{start:{line:91,column:23},end:{line:91,column:24}},loc:{start:{line:91,column:29},end:{line:93,column:15}},line:91},7:{name:"(anonymous_7)",decl:{start:{line:98,column:23},end:{line:98,column:24}},loc:{start:{line:98,column:29},end:{line:100,column:15}},line:98},8:{name:"(anonymous_8)",decl:{start:{line:108,column:23},end:{line:108,column:24}},loc:{start:{line:108,column:29},end:{line:110,column:15}},line:108},9:{name:"(anonymous_9)",decl:{start:{line:119,column:18},end:{line:119,column:19}},loc:{start:{line:119,column:29},end:{line:119,column:50}},line:119},10:{name:"(anonymous_10)",decl:{start:{line:124,column:18},end:{line:124,column:19}},loc:{start:{line:124,column:29},end:{line:124,column:50}},line:124},11:{name:"(anonymous_11)",decl:{start:{line:129,column:18},end:{line:129,column:19}},loc:{start:{line:129,column:29},end:{line:129,column:50}},line:129},12:{name:"(anonymous_12)",decl:{start:{line:134,column:18},end:{line:134,column:19}},loc:{start:{line:134,column:29},end:{line:134,column:50}},line:134},13:{name:"(anonymous_13)",decl:{start:{line:141,column:15},end:{line:141,column:16}},loc:{start:{line:141,column:27},end:{line:143,column:7}},line:141},14:{name:"(anonymous_14)",decl:{start:{line:148,column:19},end:{line:148,column:20}},loc:{start:{line:148,column:31},end:{line:179,column:5}},line:148},15:{name:"(anonymous_15)",decl:{start:{line:156,column:41},end:{line:156,column:42}},loc:{start:{line:156,column:51},end:{line:177,column:9}},line:156},16:{name:"(anonymous_16)",decl:{start:{line:181,column:11},end:{line:181,column:12}},loc:{start:{line:181,column:23},end:{line:218,column:3}},line:181},17:{name:"(anonymous_17)",decl:{start:{line:190,column:25},end:{line:190,column:26}},loc:{start:{line:190,column:41},end:{line:192,column:5}},line:190},18:{name:"(anonymous_18)",decl:{start:{line:220,column:19},end:{line:220,column:20}},loc:{start:{line:220,column:33},end:{line:222,column:5}},line:220},19:{name:"(anonymous_19)",decl:{start:{line:223,column:13},end:{line:223,column:14}},loc:{start:{line:223,column:54},end:{line:247,column:5}},line:223},20:{name:"(anonymous_20)",decl:{start:{line:248,column:14},end:{line:248,column:15}},loc:{start:{line:248,column:46},end:{line:281,column:5}},line:248},21:{name:"(anonymous_21)",decl:{start:{line:263,column:21},end:{line:263,column:22}},loc:{start:{line:263,column:33},end:{line:279,column:7}},line:263},22:{name:"(anonymous_22)",decl:{start:{line:276,column:19},end:{line:276,column:20}},loc:{start:{line:276,column:25},end:{line:278,column:9}},line:276},23:{name:"(anonymous_23)",decl:{start:{line:282,column:16},end:{line:282,column:17}},loc:{start:{line:282,column:30},end:{line:294,column:5}},line:282},24:{name:"(anonymous_24)",decl:{start:{line:295,column:20},end:{line:295,column:21}},loc:{start:{line:295,column:32},end:{line:301,column:5}},line:295},25:{name:"(anonymous_25)",decl:{start:{line:302,column:17},end:{line:302,column:18}},loc:{start:{line:302,column:31},end:{line:311,column:5}},line:302},26:{name:"(anonymous_26)",decl:{start:{line:305,column:8},end:{line:305,column:9}},loc:{start:{line:305,column:14},end:{line:307,column:9}},line:305},27:{name:"(anonymous_27)",decl:{start:{line:312,column:12},end:{line:312,column:13}},loc:{start:{line:312,column:24},end:{line:319,column:5}},line:312},28:{name:"(anonymous_28)",decl:{start:{line:314,column:8},end:{line:314,column:9}},loc:{start:{line:314,column:14},end:{line:316,column:9}},line:314},29:{name:"(anonymous_29)",decl:{start:{line:320,column:18},end:{line:320,column:19}},loc:{start:{line:320,column:34},end:{line:326,column:5}},line:320},30:{name:"(anonymous_30)",decl:{start:{line:327,column:17},end:{line:327,column:18}},loc:{start:{line:327,column:41},end:{line:358,column:5}},line:327},31:{name:"(anonymous_31)",decl:{start:{line:344,column:21},end:{line:344,column:22}},loc:{start:{line:344,column:41},end:{line:355,column:7}},line:344},32:{name:"(anonymous_32)",decl:{start:{line:359,column:23},end:{line:359,column:24}},loc:{start:{line:359,column:55},end:{line:365,column:5}},line:359},33:{name:"(anonymous_33)",decl:{start:{line:360,column:40},end:{line:360,column:41}},loc:{start:{line:360,column:58},end:{line:363,column:7}},line:360},34:{name:"(anonymous_34)",decl:{start:{line:366,column:23},end:{line:366,column:24}},loc:{start:{line:366,column:39},end:{line:368,column:5}},line:366}},branchMap:{0:{loc:{start:{line:119,column:29},end:{line:119,column:50}},type:"binary-expr",locations:[{start:{line:119,column:29},end:{line:119,column:36}},{start:{line:119,column:40},end:{line:119,column:50}}],line:119},1:{loc:{start:{line:124,column:29},end:{line:124,column:50}},type:"binary-expr",locations:[{start:{line:124,column:29},end:{line:124,column:36}},{start:{line:124,column:40},end:{line:124,column:50}}],line:124},2:{loc:{start:{line:129,column:29},end:{line:129,column:50}},type:"binary-expr",locations:[{start:{line:129,column:29},end:{line:129,column:36}},{start:{line:129,column:40},end:{line:129,column:50}}],line:129},3:{loc:{start:{line:134,column:29},end:{line:134,column:50}},type:"binary-expr",locations:[{start:{line:134,column:29},end:{line:134,column:36}},{start:{line:134,column:40},end:{line:134,column:50}}],line:134},4:{loc:{start:{line:172,column:10},end:{line:175,column:11}},type:"if",locations:[{start:{line:172,column:10},end:{line:175,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:172},5:{loc:{start:{line:172,column:14},end:{line:172,column:70}},type:"binary-expr",locations:[{start:{line:172,column:14},end:{line:172,column:41}},{start:{line:172,column:45},end:{line:172,column:70}}],line:172},6:{loc:{start:{line:195,column:4},end:{line:217,column:5}},type:"if",locations:[{start:{line:195,column:4},end:{line:217,column:5}},{start:{line:199,column:9},end:{line:217,column:5}}],line:195},7:{loc:{start:{line:195,column:8},end:{line:195,column:53}},type:"binary-expr",locations:[{start:{line:195,column:8},end:{line:195,column:25}},{start:{line:195,column:29},end:{line:195,column:53}}],line:195},8:{loc:{start:{line:199,column:9},end:{line:217,column:5}},type:"if",locations:[{start:{line:199,column:9},end:{line:217,column:5}},{start:{line:211,column:11},end:{line:217,column:5}}],line:199},9:{loc:{start:{line:200,column:6},end:{line:202,column:29}},type:"binary-expr",locations:[{start:{line:200,column:6},end:{line:200,column:31}},{start:{line:201,column:6},end:{line:201,column:31}},{start:{line:202,column:6},end:{line:202,column:29}}],line:200},10:{loc:{start:{line:214,column:6},end:{line:216,column:7}},type:"if",locations:[{start:{line:214,column:6},end:{line:216,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:214},11:{loc:{start:{line:223,column:32},end:{line:223,column:52}},type:"default-arg",locations:[{start:{line:223,column:48},end:{line:223,column:52}}],line:223},12:{loc:{start:{line:225,column:8},end:{line:240,column:9}},type:"if",locations:[{start:{line:225,column:8},end:{line:240,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:225},13:{loc:{start:{line:226,column:10},end:{line:231,column:50}},type:"binary-expr",locations:[{start:{line:226,column:10},end:{line:226,column:48}},{start:{line:227,column:10},end:{line:227,column:48}},{start:{line:228,column:10},end:{line:228,column:44}},{start:{line:229,column:10},end:{line:229,column:46}},{start:{line:230,column:10},end:{line:230,column:42}},{start:{line:231,column:10},end:{line:231,column:50}}],line:226},14:{loc:{start:{line:243,column:6},end:{line:245,column:7}},type:"if",locations:[{start:{line:243,column:6},end:{line:245,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:243},15:{loc:{start:{line:248,column:24},end:{line:248,column:44}},type:"default-arg",locations:[{start:{line:248,column:40},end:{line:248,column:44}}],line:248},16:{loc:{start:{line:253,column:6},end:{line:260,column:7}},type:"if",locations:[{start:{line:253,column:6},end:{line:260,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:253},17:{loc:{start:{line:253,column:10},end:{line:253,column:50}},type:"binary-expr",locations:[{start:{line:253,column:10},end:{line:253,column:23}},{start:{line:253,column:27},end:{line:253,column:50}}],line:253},18:{loc:{start:{line:254,column:8},end:{line:256,column:9}},type:"if",locations:[{start:{line:254,column:8},end:{line:256,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:254},19:{loc:{start:{line:257,column:8},end:{line:259,column:9}},type:"if",locations:[{start:{line:257,column:8},end:{line:259,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:257},20:{loc:{start:{line:270,column:8},end:{line:272,column:9}},type:"if",locations:[{start:{line:270,column:8},end:{line:272,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:270},21:{loc:{start:{line:273,column:8},end:{line:275,column:9}},type:"if",locations:[{start:{line:273,column:8},end:{line:275,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:273},22:{loc:{start:{line:287,column:6},end:{line:292,column:7}},type:"if",locations:[{start:{line:287,column:6},end:{line:292,column:7}},{start:{line:290,column:13},end:{line:292,column:7}}],line:287},23:{loc:{start:{line:323,column:6},end:{line:325,column:7}},type:"if",locations:[{start:{line:323,column:6},end:{line:325,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:323},24:{loc:{start:{line:359,column:39},end:{line:359,column:53}},type:"default-arg",locations:[{start:{line:359,column:48},end:{line:359,column:53}}],line:359}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0,0],10:[0,0],11:[0],12:[0,0],13:[0,0,0,0,0,0],14:[0,0],15:[0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0]},inputSourceMap:{version:3,sources:["TlmGrapher.vue"],names:[],mappings:";AA2IA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"TlmGrapher.vue",sourceRoot:"src/tools/TlmGrapher",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <v-expansion-panels v-model="panel" style="margin-bottom: 5px">\n <v-expansion-panel>\n <v-expansion-panel-header style="z-index: 1"></v-expansion-panel-header>\n <v-expansion-panel-content>\n <div v-show="this.selectedGraphId === null">\n <v-row class="my-5">\n <v-spacer />\n <span>\n Add a graph from the menu bar or select an existing graph to\n continue\n </span>\n <v-spacer />\n </v-row>\n </div>\n\n <v-row v-show="this.selectedGraphId !== null" class="ma-1">\n <target-packet-item-chooser\n :initial-target-name="this.$route.params.target"\n :initial-packet-name="this.$route.params.packet"\n :initial-item-name="this.$route.params.item"\n @click="addItem"\n button-text="Add Item"\n choose-item\n select-types\n />\n <v-btn\n v-show="state === \'pause\'"\n class="pulse control"\n v-on:click="\n () => {\n state = \'start\'\n }\n "\n color="primary"\n fab\n data-test="start-graph"\n >\n <v-icon large>mdi-play</v-icon>\n </v-btn>\n <v-btn\n v-show="state === \'start\'"\n class="control"\n v-on:click="\n () => {\n state = \'pause\'\n }\n "\n color="primary"\n fab\n data-test="pause-graph"\n >\n <v-icon large>mdi-pause</v-icon>\n </v-btn>\n </v-row>\n </v-expansion-panel-content>\n </v-expansion-panel>\n </v-expansion-panels>\n <div>\n <div class="grid">\n <div\n class="item"\n v-for="graph in graphs"\n :key="graph"\n :id="`gridItem${graph}`"\n :ref="`gridItem${graph}`"\n >\n <div class="item-content">\n <graph\n :ref="`graph${graph}`"\n :id="graph"\n :state="state"\n :start-time="startTime"\n :selected-graph-id="selectedGraphId"\n :seconds-graphed="settings.secondsGraphed.value"\n :points-saved="settings.pointsSaved.value"\n :points-graphed="settings.pointsGraphed.value"\n :refresh-interval-ms="settings.refreshIntervalMs.value"\n @close-graph="() => closeGraph(graph)"\n @min-max-graph="() => minMaxGraph(graph)"\n @resize="() => resize()"\n @pause="() => (state = \'pause\')"\n @start="() => (state = \'start\')"\n @click="() => graphSelected(graph)"\n @edit="saveDefaultConfig(currentConfig)"\n @started="graphStarted"\n />\n </div>\n </div>\n </div>\n </div>\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <open-config-dialog\n v-if="showOpenConfig"\n v-model="showOpenConfig"\n :configKey="configKey"\n @success="openConfiguration"\n />\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <save-config-dialog\n v-if="showSaveConfig"\n v-model="showSaveConfig"\n :configKey="configKey"\n @success="saveConfiguration"\n />\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <settings-dialog\n v-show="showSettingsDialog"\n v-model="showSettingsDialog"\n :settings="settings"\n />\n </div>\n</template>\n\n<script>\nimport Config from \'@openc3/tool-common/src/components/config/Config\'\nimport Graph from \'@openc3/tool-common/src/components/Graph.vue\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/config/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/config/SaveConfigDialog\'\nimport TargetPacketItemChooser from \'@openc3/tool-common/src/components/TargetPacketItemChooser\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\nimport Muuri from \'muuri\'\n\nimport SettingsDialog from \'@/tools/TlmGrapher/SettingsDialog\'\n\nconst MURRI_REFRESH_TIME = 250\nexport default {\n components: {\n Graph,\n OpenConfigDialog,\n SaveConfigDialog,\n SettingsDialog,\n TargetPacketItemChooser,\n TopBar,\n },\n mixins: [Config],\n data() {\n return {\n title: \'Telemetry Grapher\',\n configKey: \'telemetry_grapher\',\n showOpenConfig: false,\n showSaveConfig: false,\n showSettingsDialog: false,\n grid: null,\n panel: 0,\n state: \'stop\', // Valid: stop, start, pause\n startTime: null, // Start time in nanoseconds\n // Setup defaults to show an initial graph\n graphs: [0],\n selectedGraphId: 0,\n counter: 1,\n applyingConfig: false,\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.showOpenConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.showSaveConfig = true\n },\n },\n {\n label: \'Reset Configuration\',\n icon: \'mdi-monitor-shimmer\',\n command: () => {\n this.panel = 0 // Expand the expansion panel\n this.closeAllGraphs()\n this.resetConfigBase()\n },\n },\n ],\n },\n {\n label: \'Graph\',\n items: [\n {\n label: \'Add Graph\',\n icon: \'mdi-plus\',\n command: () => {\n this.addGraph()\n },\n },\n {\n divider: true,\n },\n {\n label: \'Start / Resume\',\n icon: \'mdi-play\',\n command: () => {\n this.state = \'start\'\n },\n },\n {\n label: \'Pause\',\n icon: \'mdi-pause\',\n command: () => {\n this.state = \'pause\'\n },\n },\n {\n label: \'Stop\',\n icon: \'mdi-stop\',\n command: () => {\n this.state = \'stop\'\n },\n },\n {\n divider: true,\n },\n {\n label: \'Settings\',\n icon: \'mdi-cog\',\n command: () => {\n this.showSettingsDialog = true\n },\n },\n ],\n },\n ],\n settings: {\n secondsGraphed: {\n title: \'Seconds Graphed\',\n value: 1000,\n rules: [(value) => !!value || \'Required\'],\n },\n pointsSaved: {\n title: \'Points Saved\',\n value: 1000000,\n rules: [(value) => !!value || \'Required\'],\n },\n pointsGraphed: {\n title: \'Points Graphed\',\n value: 1000,\n rules: [(value) => !!value || \'Required\'],\n },\n refreshIntervalMs: {\n title: \'Refresh Interval Ms\',\n value: 100,\n rules: [(value) => !!value || \'Required\'],\n },\n },\n }\n },\n watch: {\n settings: {\n handler: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n deep: true,\n },\n },\n computed: {\n currentConfig: function () {\n return {\n settings: {\n secondsGraphed: this.settings.secondsGraphed.value,\n pointsSaved: this.settings.pointsSaved.value,\n pointsGraphed: this.settings.pointsGraphed.value,\n refreshIntervalMs: this.settings.refreshIntervalMs.value,\n },\n graphs: this.grid.getItems().map((item) => {\n // Map the gridItem id to the graph id\n const graphId = `graph${item.getElement().id.substring(8)}`\n const vueGraph = this.$refs[graphId][0]\n let config = {\n items: vueGraph.items,\n title: vueGraph.title,\n fullWidth: vueGraph.fullWidth,\n fullHeight: vueGraph.fullHeight,\n graphMinX: vueGraph.graphMinX,\n graphMaxX: vueGraph.graphMaxX,\n legendPosition: vueGraph.legendPosition,\n }\n // Only add the start and end time if we have both\n // This prevents adding just the start time and having the graph\n // try to pull a LOT of data from some previously set date / time\n if (vueGraph.graphStartDateTime && vueGraph.graphEndDateTime) {\n config.graphStartDateTime = vueGraph.graphStartDateTime\n config.graphEndDateTime = vueGraph.graphEndDateTime\n }\n return config\n }),\n }\n },\n },\n mounted: function () {\n this.grid = new Muuri(\'.grid\', {\n dragEnabled: true,\n layoutOnResize: true,\n // Only allow drags starting from the v-system-bar title\n dragHandle: \'.v-system-bar\',\n })\n // Sometimes when we move graphs, other graphs become non-interactive\n // This seems to fix that issue\n this.grid.on(\'move\', function (data) {\n data.item.getGrid().synchronize()\n })\n\n // Called like /tools/tlmgrapher?config=temps\n if (this.$route.query && this.$route.query.config) {\n this.openConfiguration(this.$route.query.config, true) // routed\n }\n // If we\'re passed in the route then manually addItem\n else if (\n this.$route.params.target &&\n this.$route.params.packet &&\n this.$route.params.item\n ) {\n this.addItem({\n targetName: this.$route.params.target.toUpperCase(),\n packetName: this.$route.params.packet.toUpperCase(),\n itemName: this.$route.params.item.toUpperCase(),\n valueType: \'CONVERTED\',\n reduced: \'DECOM\',\n })\n } else {\n let config = this.loadDefaultConfig()\n // Only apply the config if it\'s not an empty object (config does not exist)\n if (JSON.stringify(config) !== \'{}\') {\n this.applyConfig(config)\n }\n }\n },\n methods: {\n graphSelected: function (id) {\n this.selectedGraphId = id\n },\n addItem: function (newItem, startGraphing = true) {\n for (const item of this.$refs[`graph${this.selectedGraphId}`][0].items) {\n if (\n newItem.targetName === item.targetName &&\n newItem.packetName === item.packetName &&\n newItem.itemName === item.itemName &&\n newItem.valueType === item.valueType &&\n newItem.reduced === item.reduced &&\n newItem.reducedType === item.reducedType\n ) {\n this.$notify.caution({\n title: \'Item Already Exists\',\n body:\n `Item ${newItem.targetName} ${newItem.packetName} ${newItem.itemName} ` +\n `with ${newItem.valueType} ${newItem.reduced} ${newItem.reducedType} already exists!`,\n })\n return\n }\n }\n this.$refs[`graph${this.selectedGraphId}`][0].addItems([newItem])\n if (startGraphing === true) {\n this.state = \'start\'\n }\n this.saveDefaultConfig(this.currentConfig)\n },\n addGraph: function (checkExisting = true) {\n const id = this.counter\n let halfWidth = false\n let halfHeight = false\n // If there are existing graphs figure out how the first one looks\n if (checkExisting && this.graphs.length != 0) {\n if (this.$refs[`graph${this.graphs[0]}`][0].fullWidth === false) {\n halfWidth = true\n }\n if (this.$refs[`graph${this.graphs[0]}`][0].fullHeight === false) {\n halfHeight = true\n }\n }\n this.graphs.push(id)\n this.counter += 1\n this.$nextTick(function () {\n var items = this.grid.add(this.$refs[`gridItem${id}`], {\n active: false,\n })\n this.grid.show(items)\n this.selectedGraphId = id\n // Make the new graph match the first one\n if (halfWidth) {\n this.$refs[`graph${id}`][0].collapseWidth()\n }\n if (halfHeight) {\n this.$refs[`graph${id}`][0].collapseHeight()\n }\n setTimeout(() => {\n this.grid.refreshItems().layout()\n }, MURRI_REFRESH_TIME)\n })\n this.saveDefaultConfig(this.currentConfig)\n },\n closeGraph: function (id) {\n var items = this.grid.getItems([document.getElementById(`gridItem${id}`)])\n this.grid.remove(items)\n this.graphs.splice(this.graphs.indexOf(id), 1)\n // Clear out the startTime if we close all the graphs ... we\'re starting over\n if (this.graphs.length === 0) {\n this.startTime = null\n this.selectedGraphId = null\n } else {\n this.selectedGraphId = this.graphs[0]\n }\n this.saveDefaultConfig(this.currentConfig)\n },\n closeAllGraphs: function () {\n // Make a copy of this.graphs to iterate on since closeGraph modifies in place\n for (let graph of [...this.graphs]) {\n this.closeGraph(graph)\n }\n this.counter = 0\n },\n minMaxGraph: function (id) {\n this.selectedGraphId = id\n setTimeout(\n () => {\n this.grid.refreshItems().layout()\n },\n MURRI_REFRESH_TIME * 2, // Double the time since there is more animation\n )\n this.saveDefaultConfig(this.currentConfig)\n },\n resize: function () {\n setTimeout(\n () => {\n this.grid.refreshItems().layout()\n },\n MURRI_REFRESH_TIME * 2, // Double the time since there is more animation\n )\n },\n graphStarted: function (time) {\n // Only set startTime once when notified by the first graph to start\n // This allows us to have a uniform start time on all graphs\n if (this.startTime === null) {\n this.startTime = time\n }\n },\n applyConfig: async function (config) {\n // Don\'t save the default config while we\'re applying new config\n this.dontSaveDefaultConfig = true\n this.closeAllGraphs()\n await this.$nextTick()\n\n this.settings.secondsGraphed.value = config.settings.secondsGraphed\n this.settings.pointsSaved.value = config.settings.pointsSaved\n this.settings.pointsGraphed.value = config.settings.pointsGraphed\n this.settings.refreshIntervalMs.value = config.settings.refreshIntervalMs\n\n let graphs = config.graphs\n for (let graph of graphs) {\n this.addGraph(false) // Don\'t check existing graphs\n }\n await this.$nextTick()\n const that = this\n graphs.forEach(function (graph, i) {\n let vueGraph = that.$refs[`graph${i}`][0]\n vueGraph.title = graph.title\n vueGraph.fullWidth = graph.fullWidth\n vueGraph.fullHeight = graph.fullHeight\n vueGraph.graphMinX = graph.graphMinX\n vueGraph.graphMaxX = graph.graphMaxX\n vueGraph.graphStartDateTime = graph.graphStartDateTime\n vueGraph.graphEndDateTime = graph.graphEndDateTime\n vueGraph.moveLegend(graph.legendPosition)\n vueGraph.addItems([...graph.items])\n })\n this.state = \'start\'\n this.dontSaveDefaultConfig = false\n },\n openConfiguration: function (name, routed = false) {\n this.openConfigBase(name, routed, async (config) => {\n await this.applyConfig(config)\n this.saveDefaultConfig(config)\n })\n this.panel = null // Minimize the expansion panel\n },\n saveConfiguration: function (name) {\n this.saveConfigBase(name, this.currentConfig)\n },\n },\n}\n<\/script>\n\n<style>\n/* Flash the chevron icon 3 times to let the user know they can minimize the controls */\ni.v-icon.mdi-chevron-down {\n animation: pulse 2s 3;\n}\n@keyframes pulse {\n 0% {\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);\n }\n 70% {\n -webkit-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);\n }\n 100% {\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);\n }\n}\n</style>\n<style lang="scss" scoped>\n.control {\n margin-top: 60px;\n}\n.v-expansion-panel-content {\n .container {\n margin: 0px;\n }\n}\n.v-expansion-panel-header {\n min-height: 10px;\n padding: 5px;\n}\n.v-navigation-drawer {\n z-index: 2;\n}\n.grid {\n position: relative;\n}\n.item {\n position: absolute;\n z-index: 1;\n}\n.item.muuri-item-dragging {\n z-index: 3;\n}\n.item.muuri-item-releasing {\n z-index: 2;\n}\n.item.muuri-item-hidden {\n z-index: 0;\n}\n.item-content {\n position: relative;\n cursor: pointer;\n border-radius: 6px;\n margin: 5px;\n}\n\n.pulse {\n animation: pulse 1s infinite;\n}\n\n@keyframes pulse {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.5;\n }\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f4e77b8789bf8af4a84f5dda9e1229aa88b32590"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=s);var a=l[e];return be=function(){return a},a}be();const xe=(be().s[0]++,250),we={components:{Graph:U,OpenConfigDialog:K,SaveConfigDialog:Q,SettingsDialog:ye,TargetPacketItemChooser:le,TopBar:ue},mixins:[h],data(){return be().f[0]++,be().s[1]++,{title:"Telemetry Grapher",configKey:"telemetry_grapher",showOpenConfig:!1,showSaveConfig:!1,showSettingsDialog:!1,grid:null,panel:0,state:"stop",startTime:null,graphs:[0],selectedGraphId:0,counter:1,applyingConfig:!1,menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{be().f[1]++,be().s[2]++,this.showOpenConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{be().f[2]++,be().s[3]++,this.showSaveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{be().f[3]++,be().s[4]++,this.panel=0,be().s[5]++,this.closeAllGraphs(),be().s[6]++,this.resetConfigBase()}}]},{label:"Graph",items:[{label:"Add Graph",icon:"mdi-plus",command:()=>{be().f[4]++,be().s[7]++,this.addGraph()}},{divider:!0},{label:"Start / Resume",icon:"mdi-play",command:()=>{be().f[5]++,be().s[8]++,this.state="start"}},{label:"Pause",icon:"mdi-pause",command:()=>{be().f[6]++,be().s[9]++,this.state="pause"}},{label:"Stop",icon:"mdi-stop",command:()=>{be().f[7]++,be().s[10]++,this.state="stop"}},{divider:!0},{label:"Settings",icon:"mdi-cog",command:()=>{be().f[8]++,be().s[11]++,this.showSettingsDialog=!0}}]}],settings:{secondsGraphed:{title:"Seconds Graphed",value:1e3,rules:[e=>(be().f[9]++,be().s[12]++,be().b[0][0]++,!!e||(be().b[0][1]++,"Required"))]},pointsSaved:{title:"Points Saved",value:1e6,rules:[e=>(be().f[10]++,be().s[13]++,be().b[1][0]++,!!e||(be().b[1][1]++,"Required"))]},pointsGraphed:{title:"Points Graphed",value:1e3,rules:[e=>(be().f[11]++,be().s[14]++,be().b[2][0]++,!!e||(be().b[2][1]++,"Required"))]},refreshIntervalMs:{title:"Refresh Interval Ms",value:100,rules:[e=>(be().f[12]++,be().s[15]++,be().b[3][0]++,!!e||(be().b[3][1]++,"Required"))]}}}},watch:{settings:{handler:function(){be().f[13]++,be().s[16]++,this.saveDefaultConfig(this.currentConfig)},deep:!0}},computed:{currentConfig:function(){return be().f[14]++,be().s[17]++,{settings:{secondsGraphed:this.settings.secondsGraphed.value,pointsSaved:this.settings.pointsSaved.value,pointsGraphed:this.settings.pointsGraphed.value,refreshIntervalMs:this.settings.refreshIntervalMs.value},graphs:this.grid.getItems().map((e=>{be().f[15]++;const t=(be().s[18]++,`graph${e.getElement().id.substring(8)}`),n=(be().s[19]++,this.$refs[t][0]);let i=(be().s[20]++,{items:n.items,title:n.title,fullWidth:n.fullWidth,fullHeight:n.fullHeight,graphMinX:n.graphMinX,graphMaxX:n.graphMaxX,legendPosition:n.legendPosition});return be().s[21]++,be().b[5][0]++,n.graphStartDateTime&&(be().b[5][1]++,n.graphEndDateTime)?(be().b[4][0]++,be().s[22]++,i.graphStartDateTime=n.graphStartDateTime,be().s[23]++,i.graphEndDateTime=n.graphEndDateTime):be().b[4][1]++,be().s[24]++,i}))}}},mounted:function(){if(be().f[16]++,be().s[25]++,this.grid=new me.c(".grid",{dragEnabled:!0,layoutOnResize:!0,dragHandle:".v-system-bar"}),be().s[26]++,this.grid.on("move",(function(e){be().f[17]++,be().s[27]++,e.item.getGrid().synchronize()})),be().s[28]++,be().b[7][0]++,this.$route.query&&(be().b[7][1]++,this.$route.query.config))be().b[6][0]++,be().s[29]++,this.openConfiguration(this.$route.query.config,!0);else if(be().b[6][1]++,be().s[30]++,be().b[9][0]++,this.$route.params.target&&(be().b[9][1]++,this.$route.params.packet)&&(be().b[9][2]++,this.$route.params.item))be().b[8][0]++,be().s[31]++,this.addItem({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase(),itemName:this.$route.params.item.toUpperCase(),valueType:"CONVERTED",reduced:"DECOM"});else{be().b[8][1]++;let e=(be().s[32]++,this.loadDefaultConfig());be().s[33]++,"{}"!==JSON.stringify(e)?(be().b[10][0]++,be().s[34]++,this.applyConfig(e)):be().b[10][1]++}},methods:{graphSelected:function(e){be().f[18]++,be().s[35]++,this.selectedGraphId=e},addItem:function(e,t=(be().b[11][0]++,!0)){be().f[19]++,be().s[36]++;for(const n of this.$refs[`graph${this.selectedGraphId}`][0].items){if(be().s[37]++,be().b[13][0]++,e.targetName===n.targetName&&(be().b[13][1]++,e.packetName===n.packetName)&&(be().b[13][2]++,e.itemName===n.itemName)&&(be().b[13][3]++,e.valueType===n.valueType)&&(be().b[13][4]++,e.reduced===n.reduced)&&(be().b[13][5]++,e.reducedType===n.reducedType))return be().b[12][0]++,be().s[38]++,this.$notify.caution({title:"Item Already Exists",body:`Item ${e.targetName} ${e.packetName} ${e.itemName} with ${e.valueType} ${e.reduced} ${e.reducedType} already exists!`}),void be().s[39]++;be().b[12][1]++}be().s[40]++,this.$refs[`graph${this.selectedGraphId}`][0].addItems([e]),be().s[41]++,!0===t?(be().b[14][0]++,be().s[42]++,this.state="start"):be().b[14][1]++,be().s[43]++,this.saveDefaultConfig(this.currentConfig)},addGraph:function(e=(be().b[15][0]++,!0)){be().f[20]++;const t=(be().s[44]++,this.counter);let n=(be().s[45]++,!1),i=(be().s[46]++,!1);be().s[47]++,be().b[17][0]++,e&&(be().b[17][1]++,0!=this.graphs.length)?(be().b[16][0]++,be().s[48]++,!1===this.$refs[`graph${this.graphs[0]}`][0].fullWidth?(be().b[18][0]++,be().s[49]++,n=!0):be().b[18][1]++,be().s[50]++,!1===this.$refs[`graph${this.graphs[0]}`][0].fullHeight?(be().b[19][0]++,be().s[51]++,i=!0):be().b[19][1]++):be().b[16][1]++,be().s[52]++,this.graphs.push(t),be().s[53]++,this.counter+=1,be().s[54]++,this.$nextTick((function(){be().f[21]++;var e=(be().s[55]++,this.grid.add(this.$refs[`gridItem${t}`],{active:!1}));be().s[56]++,this.grid.show(e),be().s[57]++,this.selectedGraphId=t,be().s[58]++,n?(be().b[20][0]++,be().s[59]++,this.$refs[`graph${t}`][0].collapseWidth()):be().b[20][1]++,be().s[60]++,i?(be().b[21][0]++,be().s[61]++,this.$refs[`graph${t}`][0].collapseHeight()):be().b[21][1]++,be().s[62]++,setTimeout((()=>{be().f[22]++,be().s[63]++,this.grid.refreshItems().layout()}),xe)})),be().s[64]++,this.saveDefaultConfig(this.currentConfig)},closeGraph:function(e){be().f[23]++;var t=(be().s[65]++,this.grid.getItems([document.getElementById(`gridItem${e}`)]));be().s[66]++,this.grid.remove(t),be().s[67]++,this.graphs.splice(this.graphs.indexOf(e),1),be().s[68]++,0===this.graphs.length?(be().b[22][0]++,be().s[69]++,this.startTime=null,be().s[70]++,this.selectedGraphId=null):(be().b[22][1]++,be().s[71]++,this.selectedGraphId=this.graphs[0]),be().s[72]++,this.saveDefaultConfig(this.currentConfig)},closeAllGraphs:function(){be().f[24]++,be().s[73]++;for(let e of[...this.graphs])be().s[74]++,this.closeGraph(e);be().s[75]++,this.counter=0},minMaxGraph:function(e){be().f[25]++,be().s[76]++,this.selectedGraphId=e,be().s[77]++,setTimeout((()=>{be().f[26]++,be().s[78]++,this.grid.refreshItems().layout()}),2*xe),be().s[79]++,this.saveDefaultConfig(this.currentConfig)},resize:function(){be().f[27]++,be().s[80]++,setTimeout((()=>{be().f[28]++,be().s[81]++,this.grid.refreshItems().layout()}),2*xe)},graphStarted:function(e){be().f[29]++,be().s[82]++,null===this.startTime?(be().b[23][0]++,be().s[83]++,this.startTime=e):be().b[23][1]++},applyConfig:async function(e){be().f[30]++,be().s[84]++,this.dontSaveDefaultConfig=!0,be().s[85]++,this.closeAllGraphs(),be().s[86]++,await this.$nextTick(),be().s[87]++,this.settings.secondsGraphed.value=e.settings.secondsGraphed,be().s[88]++,this.settings.pointsSaved.value=e.settings.pointsSaved,be().s[89]++,this.settings.pointsGraphed.value=e.settings.pointsGraphed,be().s[90]++,this.settings.refreshIntervalMs.value=e.settings.refreshIntervalMs;let t=(be().s[91]++,e.graphs);be().s[92]++;for(let i of t)be().s[93]++,this.addGraph(!1);be().s[94]++,await this.$nextTick();const n=(be().s[95]++,this);be().s[96]++,t.forEach((function(e,t){be().f[31]++;let i=(be().s[97]++,n.$refs[`graph${t}`][0]);be().s[98]++,i.title=e.title,be().s[99]++,i.fullWidth=e.fullWidth,be().s[100]++,i.fullHeight=e.fullHeight,be().s[101]++,i.graphMinX=e.graphMinX,be().s[102]++,i.graphMaxX=e.graphMaxX,be().s[103]++,i.graphStartDateTime=e.graphStartDateTime,be().s[104]++,i.graphEndDateTime=e.graphEndDateTime,be().s[105]++,i.moveLegend(e.legendPosition),be().s[106]++,i.addItems([...e.items])})),be().s[107]++,this.state="start",be().s[108]++,this.dontSaveDefaultConfig=!1},openConfiguration:function(e,t=(be().b[24][0]++,!1)){be().f[32]++,be().s[109]++,this.openConfigBase(e,t,(async e=>{be().f[33]++,be().s[110]++,await this.applyConfig(e),be().s[111]++,this.saveDefaultConfig(e)})),be().s[112]++,this.panel=null},saveConfiguration:function(e){be().f[34]++,be().s[113]++,this.saveConfigBase(e,this.currentConfig)}}},ke=we;n(6204),n(5056);var Ne=(0,w.c)(ke,s,l,!1,null,"01920f03",null);const Te=Ne.exports},1968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(8304),s=n.n(i),l=n(1849),a=n.n(l),o=a()(s());o.push([e.id,"i.v-icon.mdi-chevron-down{animation:pulse 2s 3}@keyframes pulse{0%{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,.4)}70%{-webkit-box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}",""]);const r=o},4280:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(8304),s=n.n(i),l=n(1849),a=n.n(l),o=a()(s());o.push([e.id,".uplot.side-legend{display:flex;width:auto}.uplot.side-legend .u-wrap{flex:none}.uplot.side-legend .u-legend{text-align:left;margin-left:0;width:220px}.uplot.side-legend .u-legend,.uplot.side-legend .u-legend td,.uplot.side-legend .u-legend th,.uplot.side-legend .u-legend tr{display:revert}.uplot.left-legend .u-legend{order:-1}.uplot.top-legend{display:flex;flex-direction:column}.uplot.top-legend .u-legend{order:-1}",""]);const r=o},3795:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(8304),s=n.n(i),l=n(1849),a=n.n(l),o=a()(s());o.push([e.id,"#chart[data-v-c94bd35a] .u-select{background-color:hsla(0,0%,100%,.07)}",""]);const r=o},292:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(8304),s=n.n(i),l=n(1849),a=n.n(l),o=a()(s());o.push([e.id,".button[data-v-4a855687]{padding:4px}.select[data-v-4a855687]{max-width:300px}.row+.row[data-v-4a855687]{margin-top:0}",""]);const r=o},4736:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(8304),s=n.n(i),l=n(1849),a=n.n(l),o=a()(s());o.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const r=o},7152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(8304),s=n.n(i),l=n(1849),a=n.n(l),o=a()(s());o.push([e.id,".control[data-v-01920f03]{margin-top:60px}.v-expansion-panel-content .container[data-v-01920f03]{margin:0}.v-expansion-panel-header[data-v-01920f03]{min-height:10px;padding:5px}.v-navigation-drawer[data-v-01920f03]{z-index:2}.grid[data-v-01920f03]{position:relative}.item[data-v-01920f03]{position:absolute;z-index:1}.item.muuri-item-dragging[data-v-01920f03]{z-index:3}.item.muuri-item-releasing[data-v-01920f03]{z-index:2}.item.muuri-item-hidden[data-v-01920f03]{z-index:0}.item-content[data-v-01920f03]{position:relative;cursor:pointer;border-radius:6px;margin:5px}.pulse[data-v-01920f03]{animation:pulse-01920f03 1s infinite}@keyframes pulse-01920f03{0%{opacity:1}50%{opacity:.5}}",""]);const r=o},6204:(e,t,n)=>{var i=n(1968);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3124).c;s("fe0a9be8",i,!0,{sourceMap:!1,shadowMode:!1})},1015:(e,t,n)=>{var i=n(4280);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3124).c;s("78bd2629",i,!0,{sourceMap:!1,shadowMode:!1})},7996:(e,t,n)=>{var i=n(3795);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3124).c;s("5c4b9b1d",i,!0,{sourceMap:!1,shadowMode:!1})},9536:(e,t,n)=>{var i=n(292);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3124).c;s("440dd355",i,!0,{sourceMap:!1,shadowMode:!1})},4724:(e,t,n)=>{var i=n(4736);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3124).c;s("7de62207",i,!0,{sourceMap:!1,shadowMode:!1})},5056:(e,t,n)=>{var i=n(7152);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3124).c;s("164df5f9",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=516.js.map
|