openc3-cosmos-tool-tlmgrapher 5.18.0 → 5.19.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openc3-cosmos-tool-tlmgrapher
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.18.0
4
+ version: 5.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Melton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-08-19 00:00:00.000000000 Z
12
+ date: 2024-10-01 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: " This plugin adds the OpenC3 COSMOS Tlm Grapher tool\n"
15
15
  email:
@@ -24,12 +24,12 @@ files:
24
24
  - Rakefile
25
25
  - plugin.txt
26
26
  - tools/tlmgrapher/index.html
27
+ - tools/tlmgrapher/js/118.js
28
+ - tools/tlmgrapher/js/118.js.map
27
29
  - tools/tlmgrapher/js/272.js
28
30
  - tools/tlmgrapher/js/272.js.map
29
- - tools/tlmgrapher/js/549.js
30
- - tools/tlmgrapher/js/549.js.map
31
- - tools/tlmgrapher/js/719.js
32
- - tools/tlmgrapher/js/719.js.map
31
+ - tools/tlmgrapher/js/581.js
32
+ - tools/tlmgrapher/js/581.js.map
33
33
  - tools/tlmgrapher/js/app.js
34
34
  - tools/tlmgrapher/js/app.js.map
35
35
  homepage: https://github.com/OpenC3/cosmos
@@ -1,2 +0,0 @@
1
- (self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]=self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]||[]).push([[549],{8549:(e,t,n)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",t="65c04633232899083447d09b030f4b67fa9e6d7c",n=new Function("return this")(),s="__coverage__",a={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:1993}},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:328},end:{line:5,column:1179}},8:{start:{line:5,column:865},end:{line:5,column:886}},9:{start:{line:5,column:909},end:{line:5,column:931}},10:{start:{line:5,column:947},end:{line:5,column:959}},11:{start:{line:5,column:975},end:{line:5,column:994}},12:{start:{line:5,column:1011},end:{line:5,column:1030}},13:{start:{line:5,column:1046},end:{line:5,column:1070}},14:{start:{line:5,column:1095},end:{line:5,column:1142}},15:{start:{line:5,column:1375},end:{line:5,column:1397}},16:{start:{line:5,column:1627},end:{line:5,column:1649}},17:{start:{line:5,column:1927},end:{line:5,column:1953}},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:1499},end:{line:1,column:1500}},loc:{start:{line:1,column:1505},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:312},end:{line:5,column:313}},loc:{start:{line:5,column:327},end:{line:5,column:1180}},line:5},5:{name:"(anonymous_5)",decl:{start:{line:5,column:859},end:{line:5,column:860}},loc:{start:{line:5,column:865},end:{line:5,column:886}},line:5},6:{name:"(anonymous_6)",decl:{start:{line:5,column:903},end:{line:5,column:904}},loc:{start:{line:5,column:909},end:{line:5,column:931}},line:5},7:{name:"(anonymous_7)",decl:{start:{line:5,column:941},end:{line:5,column:942}},loc:{start:{line:5,column:947},end:{line:5,column:959}},line:5},8:{name:"(anonymous_8)",decl:{start:{line:5,column:968},end:{line:5,column:969}},loc:{start:{line:5,column:975},end:{line:5,column:994}},line:5},9:{name:"(anonymous_9)",decl:{start:{line:5,column:1004},end:{line:5,column:1005}},loc:{start:{line:5,column:1011},end:{line:5,column:1030}},line:5},10:{name:"(anonymous_10)",decl:{start:{line:5,column:1040},end:{line:5,column:1041}},loc:{start:{line:5,column:1046},end:{line:5,column:1070}},line:5},11:{name:"(anonymous_11)",decl:{start:{line:5,column:1078},end:{line:5,column:1079}},loc:{start:{line:5,column:1094},end:{line:5,column:1143}},line:5},12:{name:"(anonymous_12)",decl:{start:{line:5,column:1359},end:{line:5,column:1360}},loc:{start:{line:5,column:1374},end:{line:5,column:1398}},line:5},13:{name:"(anonymous_13)",decl:{start:{line:5,column:1611},end:{line:5,column:1612}},loc:{start:{line:5,column:1626},end:{line:5,column:1650}},line:5},14:{name:"(anonymous_14)",decl:{start:{line:5,column:1911},end:{line:5,column:1912}},loc:{start:{line:5,column:1926},end:{line:5,column:1954}},line:5}},branchMap:{0:{loc:{start:{line:5,column:1199},end:{line:5,column:1438}},type:"cond-expr",locations:[{start:{line:5,column:1220},end:{line:5,column:1429}},{start:{line:5,column:1430},end:{line:5,column:1438}}],line:5},1:{loc:{start:{line:5,column:1451},end:{line:5,column:1690}},type:"cond-expr",locations:[{start:{line:5,column:1472},end:{line:5,column:1681}},{start:{line:5,column:1682},end:{line:5,column:1690}}],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:"65c04633232899083447d09b030f4b67fa9e6d7c"},l=n[s]||(n[s]={});l[e]&&l[e].hash===t||(l[e]=a);var o=l[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",staticStyle:{"flex-wrap":"nowrap"}},[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),e._v(" "),t("div",{staticClass:"graph-info"},[e._v("\n Click item name in Legend to toggle. Right click to edit.\n ")])],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)},a=(i().s[18]++,[]),l=(n(9375),n(4293),n(814)),o=(n(7107),n(2482),n(7067),n(4147),n(2682),n(785),n(8357),n(6196),n(821),n(6554),n(8472),n(7404),n(5803),n(3912),n(3816)),r=n(1649);const c=new r["default"],d=o.A.create({baseURL:location.origin,timeout:6e4,params:{}});d.interceptors.response.use((e=>e),(e=>{if(e.response){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 t=`HTTP ${e.response.status} - `;throw e.response?.statusText&&(t+=`${e.response.statusText} `),e.response?.config?.data&&(t+=`${e.response.config.data} `),e.response?.data?.message?t+=`${e.response.data.message}`:e.response?.data?.exception?t+=`${e.response.data.exception}`:e.response?.data?.error?.message?(e.response.data.error.class&&(t+=`${e.response.data.error.class} `),t+=`${e.response.data.error.message}`):t+=`${e.response?.data}`,c.$notify&&c.$notify.serious({title:"Network error",body:t}),e}throw e}));const u=d;class m{constructor(){(0,l.A)(this,"id",1)}async exec(e,t,n={},i={},s=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(l){OpenC3Auth.login()}this.id=this.id+1;try{n["scope"]=window.openc3Scope,i["manual"]=!0;const a=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 a.data.result}catch(l){var a=new Error;throw l.response?(a.name=l.response.data.error.data.class,a.message=l.response.data.error.data.message):l.request?(a.name="Request error",a.message="Request error, no response received"):a.name="Unknown error",a}}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 a=s.length,l=null,o=0;o<a;o++)l=this.decode_openc3_type(s[o][1]),null!==l&&(s[o][1]=l);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 a=s[0].length,l=null,o=0;o<a;o++)l=this.decode_openc3_type(s[0][o]),null!==l&&(s[0][o]=l);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 a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,a}s=await this.exec("tlm",[e],{type:t})}else s=await this.exec("tlm",[e,t,n],{type:i});var l=this.decode_openc3_type(s);return null!==l&&(s=l),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 a=null;for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a=this.encode_openc3_type(i[l]),null!==a&&(i[l]=a));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":"700"},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-tabs",{staticClass:"ml-3",model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("v-tab",{key:0},[e._v(" Settings ")]),e._v(" "),t("v-tab",{key:1},[e._v(" Scale / Lines ")]),e._v(" "),t("v-tab",{key:1},[e._v(" Items ")])],1),e._v(" "),t("v-tabs-items",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("v-tab-item",{key:0,staticClass:"tab",attrs:{eager:"true"}},[t("div",{staticClass:"edit-box"},[t("v-row",[t("v-col",[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)],1),e._v(" "),t("v-col",{staticStyle:{}},[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)],1)],1),e._v(" "),t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a start date/time for the graph. Leave blank for start\n 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}}})],1)]),e._v(" "),t("v-tab-item",{key:1,staticClass:"tab",attrs:{eager:"true"}},[t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("\n Set a min or max Y value to override automatic scaling\n ")]),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y Axis (Optional)",type:"number","data-test":"edit-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 Axis (Optional)",type:"number","data-test":"edit-graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1)],1),e._v(" "),t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("Add horizontal lines to the graph")]),e._v(" "),t("v-data-table",{attrs:{"item-key":"lineId","data-test":"edit-graph-lines",headers:e.lineHeaders,items:e.lines,"items-per-page":5,"footer-props":{itemsPerPageOptions:[5]}},scopedSlots:e._u([{key:"item.yValue",fn:function(n){return[t("v-edit-dialog",{attrs:{"return-value":n.item.yValue},on:{"update:returnValue":function(t){return e.$set(n.item,"yValue",t)},"update:return-value":function(t){return e.$set(n.item,"yValue",t)}},scopedSlots:e._u([{key:"input",fn:function(){return[t("v-text-field",{attrs:{label:"Edit","single-line":"",counter:""},model:{value:n.item.yValue,callback:function(t){e.$set(n.item,"yValue",t)},expression:"props.item.yValue"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.item.yValue)+"\n ")])]}},{key:"item.color",fn:function(n){return[t("v-edit-dialog",{attrs:{"return-value":n.item.color},on:{"update:returnValue":function(t){return e.$set(n.item,"color",t)},"update:return-value":function(t){return e.$set(n.item,"color",t)}},scopedSlots:e._u([{key:"input",fn:function(){return[t("v-select",{attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},model:{value:n.item.color,callback:function(t){e.$set(n.item,"color",t)},expression:"props.item.color"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.item.color)+"\n ")])]}},{key:"footer.prepend",fn:function(){return[t("v-btn",{staticStyle:{"margin-top":"3px"},attrs:{small:""},on:{click:e.addLine}},[e._v("\n New Horizontal Line\n ")]),e._v("\n   Click to edit values, Enter to save\n "),t("v-spacer")]},proxy:!0},{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-line-icon${n.lineId}`},on:{click:()=>e.removeLine(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 horizontal lines on this graph")])]},proxy:!0}])})],1)]),e._v(" "),t("v-tab-item",{key:2,staticClass:"tab",attrs:{eager:"true"}},[t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId","data-test":"edit-graph-items",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}])})],1)],1),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(8605),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(6375),_=n(1131),C=n(2509),y=n(3769);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.f)((0,_.qg)(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.f)((0,_.qg)(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.a)(this.dateTime/1e6);this.date=(0,y.GP)(e,"yyyy-MM-dd"),this.time=(0,y.GP)(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(2401),k=(0,w.A)(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.A)(D,T,I,!1,null,null,null);const $=M.exports;var E=n(2132),G=n(5914),R=n.n(G),O=n(7752);O.D$.staleThreshold=10;class P{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.Be(e)}return this._cable.subscriptions.create({channel:e,...i},n)}))}recordPing(){this._cable.connection.monitor.recordPing()}}n(9037);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{tab:0,itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],lines:[],lineHeaders:[{text:"Y Value",value:"yValue"},{text:"Color",value:"color"},{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 P,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","black"]}},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(3)}),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.A(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.GP)((0,C.a)(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),a=e.series[s];a.item?(this.selectedItem=a.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=t.clientX,this.legendMenuY=t.clientY,this.legendMenu=!0)}))}]}},this.graph=new E.A(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.A(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},addLine(){this.lines.push({yValue:0,color:"white"})},removeLine(e){let t=this.lines.indexOf(e);this.lines.splice(t,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 a=i;return(this.graphMaxY||0===this.graphMaxY)&&(a=this.graphMaxY),E.A.rangeNum(s,a,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){let t=0;const n=document.getElementById("openc3-nav-drawer");n&&(t=n.classList.contains("v-navigation-drawer--open")?n.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)-t-i,a=Math.max(document.documentElement.clientHeight,window.innerHeight||0),l=document.getElementsByClassName("tgt-pkt-item-chooser")[0];let o=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:l&&(o=a-l.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.A.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},values(e,t){return(t.some((e=>e>=1e7))||t.every((e=>e<.01)))&&(t=t.map((e=>e.toExponential(3)))),t}}]}},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),a=e.valToPos(this.limitsValues[0],"y",!0),l=e.valToPos(this.limitsValues[1],"y",!0),o=e.valToPos(this.limitsValues[2],"y",!0),r=e.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach((i=>{e.scales.y.min<=i.yValue&&i.yValue<=e.scales.y.max&&(t.save(),t.beginPath(),t.strokeStyle=i.color,t.lineWidth=2,t.moveTo(n.left,e.valToPos(i.yValue,"y",!0)),t.lineTo(n.left+n.width,e.valToPos(i.yValue,"y",!0)),t.stroke(),t.restore())})),t.save(),t.beginPath(),t.fillStyle="rgba(255,0,0,0.15)",e.scales.y.min<this.limitsValues[0]){let e=a<s?s:a;t.fillRect(n.left,a,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=l<s?s:l;t.fillRect(n.left,e,n.width,a-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,a=i<l?i:l;t.fillRect(n.left,e,n.width,a-e)}}else{const a=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=a<s?s:a;t.fillRect(n.left,e,n.width,l-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<a?i:a;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 i of e){i.valueType||(i.valueType=t),void 0===i.color&&(i.color=this.colors[this.colorIndex]),void 0===i.limits?i.limits=[]:i.limits.length>0&&(this.limitsValues=i.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(i);const e=this.data.length;this.graph.addSeries({spanGaps:!0,item:i,label:this.formatLabel(i),stroke:(e,t)=>this.items[t-1].color,width:2,value:(e,t)=>"string"===typeof t||isNaN(t)?"NaN":null==t?"--":Math.abs(t)<.01||Math.abs(t)>=1e7?t.toExponential(6):t.toFixed(6)},e),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:(e,t)=>this.items[t-1].color},e);let n=Array(this.data[0].length);this.data.splice(e,0,n),this.indexes[this.subscriptionKey(i)]=e}let n=this.colors.indexOf(e[e.length-1].color);n&&(this.colorIndex=n+1),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)),this.$emit("edit")},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(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}}},z=L;n(9690),n(8358);var V=(0,w.A)(z,p,v,!1,null,"997d7a84",null);const H=V.exports;var U=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)},W=[];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}`)}))}}},B=Y;var F=(0,w.A)(B,U,W,!1,null,null,null);const K=F.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.A)(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.autocompleteDisabled,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?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.autocompleteDisabled,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.autocompleteDisabled,items:e.arrayIndexes(),"item-text":"label","item-value":"value"},on:{change:function(t){return e.indexChanged(t)}},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(7534);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(){return{targetNames:[],selectedTargetName:this.initialTargetName?.toUpperCase(),packetNames:[],selectedPacketName:this.initialPacketName?.toUpperCase(),itemNames:[],selectedItemName:this.initialItemName?.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},autocompleteDisabled:function(){return this.disabled||this.internalDisabled},buttonDisabled:function(){return this.disabled||this.internalDisabled||null===this.selectedTargetName||null===this.selectedPacketName||null===this.selectedItemNameWIndex},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.updatePacketDetails(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(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.updatePacketDetails(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=>{let t=e.name;return"DERIVED"==e.data_type&&(t+=" *"),[{label:t,value:e.name,description:e.description,array:e.array_size/e.bit_size}]})).reduce(((e,t)=>e.concat(t)),[]),this.itemNames.sort(((e,t)=>e.label>t.label?1:-1)),this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.itemIsArray(),this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}),this.internalDisabled=!1}))},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="",null!==e&&this.updatePackets()},packetNameChanged:function(e){this.selectedItemName="",null!==e&&this.updatePacketDetails(e)},updatePacketDetails: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.itemIsArray(),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}))},indexChanged:function(e){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(8205);var se=(0,w.A)(ie,ee,te,!1,null,"9797b8ec",null);const ae=se.exports;var le=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:a}){return[t("v-list-item",e._g(e._b({key:s,attrs:{disabled:i.disabled}},"v-list-item",a,!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(8715);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(1e3);var de=(0,w.A)(ce,le,oe,!1,null,"57d4fdd2",null);const ue=de.exports;var me=n(8893);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"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var l=a[e];return he=function(){return l},l}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"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var l=a[e];return Ae=function(){return l},l}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.A)(_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="54de87e64eb6cb0c501704ea26eb8ac25929e387",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:179,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:169,column:11}},21:{start:{line:173,column:10},end:{line:176,column:11}},22:{start:{line:174,column:12},end:{line:174,column:67}},23:{start:{line:175,column:12},end:{line:175,column:63}},24:{start:{line:177,column:10},end:{line:177,column:23}},25:{start:{line:183,column:4},end:{line:188,column:6}},26:{start:{line:191,column:4},end:{line:193,column:6}},27:{start:{line:192,column:6},end:{line:192,column:39}},28:{start:{line:196,column:4},end:{line:218,column:5}},29:{start:{line:197,column:6},end:{line:197,column:60}},30:{start:{line:200,column:9},end:{line:218,column:5}},31:{start:{line:205,column:6},end:{line:211,column:8}},32:{start:{line:213,column:19},end:{line:213,column:43}},33:{start:{line:215,column:6},end:{line:217,column:7}},34:{start:{line:216,column:8},end:{line:216,column:32}},35:{start:{line:222,column:6},end:{line:222,column:31}},36:{start:{line:225,column:6},end:{line:242,column:7}},37:{start:{line:226,column:8},end:{line:241,column:9}},38:{start:{line:234,column:10},end:{line:239,column:12}},39:{start:{line:240,column:10},end:{line:240,column:16}},40:{start:{line:243,column:6},end:{line:243,column:71}},41:{start:{line:244,column:6},end:{line:246,column:7}},42:{start:{line:245,column:8},end:{line:245,column:28}},43:{start:{line:247,column:6},end:{line:247,column:48}},44:{start:{line:250,column:17},end:{line:250,column:29}},45:{start:{line:251,column:22},end:{line:251,column:27}},46:{start:{line:252,column:23},end:{line:252,column:28}},47:{start:{line:254,column:6},end:{line:261,column:7}},48:{start:{line:255,column:8},end:{line:257,column:9}},49:{start:{line:256,column:10},end:{line:256,column:26}},50:{start:{line:258,column:8},end:{line:260,column:9}},51:{start:{line:259,column:10},end:{line:259,column:27}},52:{start:{line:262,column:6},end:{line:262,column:26}},53:{start:{line:263,column:6},end:{line:263,column:23}},54:{start:{line:264,column:6},end:{line:280,column:8}},55:{start:{line:265,column:20},end:{line:267,column:10}},56:{start:{line:268,column:8},end:{line:268,column:29}},57:{start:{line:269,column:8},end:{line:269,column:33}},58:{start:{line:271,column:8},end:{line:273,column:9}},59:{start:{line:272,column:10},end:{line:272,column:53}},60:{start:{line:274,column:8},end:{line:276,column:9}},61:{start:{line:275,column:10},end:{line:275,column:54}},62:{start:{line:277,column:8},end:{line:279,column:30}},63:{start:{line:278,column:10},end:{line:278,column:43}},64:{start:{line:281,column:6},end:{line:281,column:48}},65:{start:{line:284,column:18},end:{line:284,column:80}},66:{start:{line:285,column:6},end:{line:285,column:29}},67:{start:{line:286,column:6},end:{line:286,column:52}},68:{start:{line:288,column:6},end:{line:293,column:7}},69:{start:{line:289,column:8},end:{line:289,column:29}},70:{start:{line:290,column:8},end:{line:290,column:35}},71:{start:{line:292,column:8},end:{line:292,column:45}},72:{start:{line:294,column:6},end:{line:294,column:48}},73:{start:{line:298,column:6},end:{line:300,column:7}},74:{start:{line:299,column:8},end:{line:299,column:30}},75:{start:{line:301,column:6},end:{line:301,column:22}},76:{start:{line:304,column:6},end:{line:304,column:31}},77:{start:{line:305,column:6},end:{line:310,column:7}},78:{start:{line:307,column:10},end:{line:307,column:43}},79:{start:{line:311,column:6},end:{line:311,column:48}},80:{start:{line:314,column:6},end:{line:319,column:7}},81:{start:{line:316,column:10},end:{line:316,column:43}},82:{start:{line:324,column:6},end:{line:326,column:7}},83:{start:{line:325,column:8},end:{line:325,column:29}},84:{start:{line:330,column:6},end:{line:330,column:39}},85:{start:{line:331,column:6},end:{line:331,column:27}},86:{start:{line:332,column:6},end:{line:332,column:28}},87:{start:{line:334,column:6},end:{line:334,column:73}},88:{start:{line:335,column:6},end:{line:335,column:67}},89:{start:{line:336,column:6},end:{line:336,column:71}},90:{start:{line:337,column:6},end:{line:337,column:79}},91:{start:{line:339,column:19},end:{line:339,column:32}},92:{start:{line:340,column:6},end:{line:342,column:7}},93:{start:{line:341,column:8},end:{line:341,column:28}},94:{start:{line:343,column:6},end:{line:343,column:28}},95:{start:{line:344,column:19},end:{line:344,column:23}},96:{start:{line:345,column:6},end:{line:357,column:8}},97:{start:{line:346,column:23},end:{line:346,column:49}},98:{start:{line:347,column:8},end:{line:347,column:36}},99:{start:{line:348,column:8},end:{line:348,column:44}},100:{start:{line:349,column:8},end:{line:349,column:46}},101:{start:{line:350,column:8},end:{line:350,column:44}},102:{start:{line:351,column:8},end:{line:351,column:44}},103:{start:{line:352,column:8},end:{line:352,column:62}},104:{start:{line:353,column:8},end:{line:353,column:58}},105:{start:{line:354,column:8},end:{line:354,column:49}},106:{start:{line:355,column:8},end:{line:355,column:43}},107:{start:{line:356,column:8},end:{line:356,column:36}},108:{start:{line:358,column:6},end:{line:358,column:26}},109:{start:{line:359,column:6},end:{line:359,column:40}},110:{start:{line:362,column:6},end:{line:365,column:8}},111:{start:{line:363,column:8},end:{line:363,column:38}},112:{start:{line:364,column:8},end:{line:364,column:38}},113:{start:{line:366,column:6},end:{line:366,column:23}},114:{start:{line:369,column:6},end:{line:369,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:180,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:178,column:9}},line:156},16:{name:"(anonymous_16)",decl:{start:{line:182,column:11},end:{line:182,column:12}},loc:{start:{line:182,column:23},end:{line:219,column:3}},line:182},17:{name:"(anonymous_17)",decl:{start:{line:191,column:25},end:{line:191,column:26}},loc:{start:{line:191,column:41},end:{line:193,column:5}},line:191},18:{name:"(anonymous_18)",decl:{start:{line:221,column:19},end:{line:221,column:20}},loc:{start:{line:221,column:33},end:{line:223,column:5}},line:221},19:{name:"(anonymous_19)",decl:{start:{line:224,column:13},end:{line:224,column:14}},loc:{start:{line:224,column:54},end:{line:248,column:5}},line:224},20:{name:"(anonymous_20)",decl:{start:{line:249,column:14},end:{line:249,column:15}},loc:{start:{line:249,column:46},end:{line:282,column:5}},line:249},21:{name:"(anonymous_21)",decl:{start:{line:264,column:21},end:{line:264,column:22}},loc:{start:{line:264,column:33},end:{line:280,column:7}},line:264},22:{name:"(anonymous_22)",decl:{start:{line:277,column:19},end:{line:277,column:20}},loc:{start:{line:277,column:25},end:{line:279,column:9}},line:277},23:{name:"(anonymous_23)",decl:{start:{line:283,column:16},end:{line:283,column:17}},loc:{start:{line:283,column:30},end:{line:295,column:5}},line:283},24:{name:"(anonymous_24)",decl:{start:{line:296,column:20},end:{line:296,column:21}},loc:{start:{line:296,column:32},end:{line:302,column:5}},line:296},25:{name:"(anonymous_25)",decl:{start:{line:303,column:17},end:{line:303,column:18}},loc:{start:{line:303,column:31},end:{line:312,column:5}},line:303},26:{name:"(anonymous_26)",decl:{start:{line:306,column:8},end:{line:306,column:9}},loc:{start:{line:306,column:14},end:{line:308,column:9}},line:306},27:{name:"(anonymous_27)",decl:{start:{line:313,column:12},end:{line:313,column:13}},loc:{start:{line:313,column:24},end:{line:320,column:5}},line:313},28:{name:"(anonymous_28)",decl:{start:{line:315,column:8},end:{line:315,column:9}},loc:{start:{line:315,column:14},end:{line:317,column:9}},line:315},29:{name:"(anonymous_29)",decl:{start:{line:321,column:18},end:{line:321,column:19}},loc:{start:{line:321,column:34},end:{line:327,column:5}},line:321},30:{name:"(anonymous_30)",decl:{start:{line:328,column:17},end:{line:328,column:18}},loc:{start:{line:328,column:41},end:{line:360,column:5}},line:328},31:{name:"(anonymous_31)",decl:{start:{line:345,column:21},end:{line:345,column:22}},loc:{start:{line:345,column:41},end:{line:357,column:7}},line:345},32:{name:"(anonymous_32)",decl:{start:{line:361,column:23},end:{line:361,column:24}},loc:{start:{line:361,column:55},end:{line:367,column:5}},line:361},33:{name:"(anonymous_33)",decl:{start:{line:362,column:40},end:{line:362,column:41}},loc:{start:{line:362,column:58},end:{line:365,column:7}},line:362},34:{name:"(anonymous_34)",decl:{start:{line:368,column:23},end:{line:368,column:24}},loc:{start:{line:368,column:39},end:{line:370,column:5}},line:368}},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:173,column:10},end:{line:176,column:11}},type:"if",locations:[{start:{line:173,column:10},end:{line:176,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:173},5:{loc:{start:{line:173,column:14},end:{line:173,column:70}},type:"binary-expr",locations:[{start:{line:173,column:14},end:{line:173,column:41}},{start:{line:173,column:45},end:{line:173,column:70}}],line:173},6:{loc:{start:{line:196,column:4},end:{line:218,column:5}},type:"if",locations:[{start:{line:196,column:4},end:{line:218,column:5}},{start:{line:200,column:9},end:{line:218,column:5}}],line:196},7:{loc:{start:{line:196,column:8},end:{line:196,column:53}},type:"binary-expr",locations:[{start:{line:196,column:8},end:{line:196,column:25}},{start:{line:196,column:29},end:{line:196,column:53}}],line:196},8:{loc:{start:{line:200,column:9},end:{line:218,column:5}},type:"if",locations:[{start:{line:200,column:9},end:{line:218,column:5}},{start:{line:212,column:11},end:{line:218,column:5}}],line:200},9:{loc:{start:{line:201,column:6},end:{line:203,column:29}},type:"binary-expr",locations:[{start:{line:201,column:6},end:{line:201,column:31}},{start:{line:202,column:6},end:{line:202,column:31}},{start:{line:203,column:6},end:{line:203,column:29}}],line:201},10:{loc:{start:{line:215,column:6},end:{line:217,column:7}},type:"if",locations:[{start:{line:215,column:6},end:{line:217,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:215},11:{loc:{start:{line:224,column:32},end:{line:224,column:52}},type:"default-arg",locations:[{start:{line:224,column:48},end:{line:224,column:52}}],line:224},12:{loc:{start:{line:226,column:8},end:{line:241,column:9}},type:"if",locations:[{start:{line:226,column:8},end:{line:241,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:226},13:{loc:{start:{line:227,column:10},end:{line:232,column:50}},type:"binary-expr",locations:[{start:{line:227,column:10},end:{line:227,column:48}},{start:{line:228,column:10},end:{line:228,column:48}},{start:{line:229,column:10},end:{line:229,column:44}},{start:{line:230,column:10},end:{line:230,column:46}},{start:{line:231,column:10},end:{line:231,column:42}},{start:{line:232,column:10},end:{line:232,column:50}}],line:227},14:{loc:{start:{line:244,column:6},end:{line:246,column:7}},type:"if",locations:[{start:{line:244,column:6},end:{line:246,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:244},15:{loc:{start:{line:249,column:24},end:{line:249,column:44}},type:"default-arg",locations:[{start:{line:249,column:40},end:{line:249,column:44}}],line:249},16:{loc:{start:{line:254,column:6},end:{line:261,column:7}},type:"if",locations:[{start:{line:254,column:6},end:{line:261,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:254},17:{loc:{start:{line:254,column:10},end:{line:254,column:50}},type:"binary-expr",locations:[{start:{line:254,column:10},end:{line:254,column:23}},{start:{line:254,column:27},end:{line:254,column:50}}],line:254},18:{loc:{start:{line:255,column:8},end:{line:257,column:9}},type:"if",locations:[{start:{line:255,column:8},end:{line:257,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:255},19:{loc:{start:{line:258,column:8},end:{line:260,column:9}},type:"if",locations:[{start:{line:258,column:8},end:{line:260,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:258},20:{loc:{start:{line:271,column:8},end:{line:273,column:9}},type:"if",locations:[{start:{line:271,column:8},end:{line:273,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:271},21:{loc:{start:{line:274,column:8},end:{line:276,column:9}},type:"if",locations:[{start:{line:274,column:8},end:{line:276,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:274},22:{loc:{start:{line:288,column:6},end:{line:293,column:7}},type:"if",locations:[{start:{line:288,column:6},end:{line:293,column:7}},{start:{line:291,column:13},end:{line:293,column:7}}],line:288},23:{loc:{start:{line:324,column:6},end:{line:326,column:7}},type:"if",locations:[{start:{line:324,column:6},end:{line:326,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:324},24:{loc:{start:{line:361,column:39},end:{line:361,column:53}},type:"default-arg",locations:[{start:{line:361,column:48},end:{line:361,column:53}}],line:361}},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,114: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:";AAkJA;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;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;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 2024, 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\n v-show="this.selectedGraphId !== null"\n class="ma-1"\n style="flex-wrap: nowrap"\n >\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 <div class="graph-info">\n Click item name in Legend to toggle. Right click to edit.\n </div>\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 lines: vueGraph.lines,\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 vueGraph.lines = graph.lines\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.graph-info {\n width: 140px;\n margin-left: 20px;\n margin-top: 65px;\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:"54de87e64eb6cb0c501704ea26eb8ac25929e387"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var l=a[e];return be=function(){return l},l}be();const xe=(be().s[0]++,250),we={components:{Graph:H,OpenConfigDialog:K,SaveConfigDialog:Q,SettingsDialog:ye,TargetPacketItemChooser:ae,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,lines:n.lines});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.A(".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]++,i.lines=e.lines})),be().s[108]++,this.state="start",be().s[109]++,this.dontSaveDefaultConfig=!1},openConfiguration:function(e,t=(be().b[24][0]++,!1)){be().f[32]++,be().s[110]++,this.openConfigBase(e,t,(async e=>{be().f[33]++,be().s[111]++,await this.applyConfig(e),be().s[112]++,this.saveDefaultConfig(e)})),be().s[113]++,this.panel=null},saveConfiguration:function(e){be().f[34]++,be().s[114]++,this.saveConfigBase(e,this.currentConfig)}}},ke=we;n(9496),n(7607);var Ne=(0,w.A)(ke,s,a,!1,null,"a7c727b0",null);const Te=Ne.exports},9120:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),o=l()(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},2386:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),o=l()(s());o.push([e.id,".edit-box,.v-window-item{background-color:var(--color-background-surface-default)}.edit-box{color:hsla(0,0%,100%,.7);padding:10px;margin-top:10px}.v-small-dialog__content{background-color:var(--color-background-surface-selected);padding:5px 5px}.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},5454:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),o=l()(s());o.push([e.id,"#chart[data-v-997d7a84] .u-select{background-color:hsla(0,0%,100%,.07)}",""]);const r=o},1381:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),o=l()(s());o.push([e.id,".button[data-v-9797b8ec]{padding:4px}.select[data-v-9797b8ec]{max-width:300px}.row+.row[data-v-9797b8ec]{margin-top:0}",""]);const r=o},9808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),o=l()(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},4558:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),o=l()(s());o.push([e.id,".control[data-v-a7c727b0]{margin-top:60px}.graph-info[data-v-a7c727b0]{width:140px;margin-left:20px;margin-top:65px}.v-expansion-panel-content .container[data-v-a7c727b0]{margin:0}.v-expansion-panel-header[data-v-a7c727b0]{min-height:10px;padding:5px}.v-navigation-drawer[data-v-a7c727b0]{z-index:2}.grid[data-v-a7c727b0]{position:relative}.item[data-v-a7c727b0]{position:absolute;z-index:1}.item.muuri-item-dragging[data-v-a7c727b0]{z-index:3}.item.muuri-item-releasing[data-v-a7c727b0]{z-index:2}.item.muuri-item-hidden[data-v-a7c727b0]{z-index:0}.item-content[data-v-a7c727b0]{position:relative;cursor:pointer;border-radius:6px;margin:5px}.pulse[data-v-a7c727b0]{animation:pulse-a7c727b0 1s infinite}@keyframes pulse-a7c727b0{0%{opacity:1}50%{opacity:.5}}",""]);const r=o},9496:(e,t,n)=>{var i=n(9120);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("a72576bc",i,!0,{sourceMap:!1,shadowMode:!1})},9690:(e,t,n)=>{var i=n(2386);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("c5421796",i,!0,{sourceMap:!1,shadowMode:!1})},8358:(e,t,n)=>{var i=n(5454);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("34ccb729",i,!0,{sourceMap:!1,shadowMode:!1})},8205:(e,t,n)=>{var i=n(1381);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("04d6f36f",i,!0,{sourceMap:!1,shadowMode:!1})},1e3:(e,t,n)=>{var i=n(9808);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7de62207",i,!0,{sourceMap:!1,shadowMode:!1})},7607:(e,t,n)=>{var i=n(4558);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("690cc723",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
- //# sourceMappingURL=549.js.map