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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7b45f1ff4a29f4677c08024b386c748e5e1288690af058100dbcd90a12d92e8
4
- data.tar.gz: 070f365bd170550d9c0b310a104baee9bd6bc83f40dfd61edc870020cb46671f
3
+ metadata.gz: 1713c83cb79c76a3fd7889cf69f3400a18f363eec3d591d1257dcd556807c3a7
4
+ data.tar.gz: a6e43f1563cc44adac81a6fd64f1cfaac9da816bd91c12d014ee7d1753ee8300
5
5
  SHA512:
6
- metadata.gz: 0a593993a23a8e705e45061373583039e7bd9452d17d00bcfadaa2238d2fe6b72e05533eb982a4abf06ed5d416ff11dcdba5544534845ac81c47cb82c7a91a4e
7
- data.tar.gz: f875aa6295ffef883b2bd02c93f1822992b176d8dd2b408d0054262efabd55d16ed6205fcbfde47cefacfba58393021d1e3baddab0ee1078d71df1c0cf54c224
6
+ metadata.gz: 973de27ca650e2d257e7499ea9c99e8228e0379cff51791d9f0311a986d6fdbd3b362b83044b9844257b33ab81bc1309138c156c9519a673d9df4bc897b6bcba
7
+ data.tar.gz: d30a42e1f32b91ee903d1cf51164e4e26f59c262e5c12af8b719f8c8c287a6cf3f5e42cc495c75d1ac5aa7075e752452443e9bfbe8783702794b1e1ca39c0bac
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]=self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]||[]).push([[118],{6118:(e,t,n)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",t="1047416408b01a2271a0f91d16fa1476095bd9ec",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:2035}},4:{start:{line:1,column:260},end:{line:1,column:273}},5:{start:{line:2,column:18},end:{line:2,column:37}},6:{start:{line:4,column:18},end:{line:4,column:37}},7:{start:{line:5,column:345},end:{line:5,column:1221}},8:{start:{line:5,column:907},end:{line:5,column:928}},9:{start:{line:5,column:951},end:{line:5,column:973}},10:{start:{line:5,column:989},end:{line:5,column:1001}},11:{start:{line:5,column:1017},end:{line:5,column:1036}},12:{start:{line:5,column:1053},end:{line:5,column:1072}},13:{start:{line:5,column:1088},end:{line:5,column:1112}},14:{start:{line:5,column:1137},end:{line:5,column:1184}},15:{start:{line:5,column:1417},end:{line:5,column:1439}},16:{start:{line:5,column:1669},end:{line:5,column:1691}},17:{start:{line:5,column:1969},end:{line:5,column:1995}},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:1530},end:{line:1,column:1531}},loc:{start:{line:1,column:1536},end:{line:3,column:17}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:3,column:282},end:{line:3,column:283}},loc:{start:{line:3,column:288},end:{line:5,column:17}},line:3},4:{name:"(anonymous_4)",decl:{start:{line:5,column:329},end:{line:5,column:330}},loc:{start:{line:5,column:344},end:{line:5,column:1222}},line:5},5:{name:"(anonymous_5)",decl:{start:{line:5,column:901},end:{line:5,column:902}},loc:{start:{line:5,column:907},end:{line:5,column:928}},line:5},6:{name:"(anonymous_6)",decl:{start:{line:5,column:945},end:{line:5,column:946}},loc:{start:{line:5,column:951},end:{line:5,column:973}},line:5},7:{name:"(anonymous_7)",decl:{start:{line:5,column:983},end:{line:5,column:984}},loc:{start:{line:5,column:989},end:{line:5,column:1001}},line:5},8:{name:"(anonymous_8)",decl:{start:{line:5,column:1010},end:{line:5,column:1011}},loc:{start:{line:5,column:1017},end:{line:5,column:1036}},line:5},9:{name:"(anonymous_9)",decl:{start:{line:5,column:1046},end:{line:5,column:1047}},loc:{start:{line:5,column:1053},end:{line:5,column:1072}},line:5},10:{name:"(anonymous_10)",decl:{start:{line:5,column:1082},end:{line:5,column:1083}},loc:{start:{line:5,column:1088},end:{line:5,column:1112}},line:5},11:{name:"(anonymous_11)",decl:{start:{line:5,column:1120},end:{line:5,column:1121}},loc:{start:{line:5,column:1136},end:{line:5,column:1185}},line:5},12:{name:"(anonymous_12)",decl:{start:{line:5,column:1401},end:{line:5,column:1402}},loc:{start:{line:5,column:1416},end:{line:5,column:1440}},line:5},13:{name:"(anonymous_13)",decl:{start:{line:5,column:1653},end:{line:5,column:1654}},loc:{start:{line:5,column:1668},end:{line:5,column:1692}},line:5},14:{name:"(anonymous_14)",decl:{start:{line:5,column:1953},end:{line:5,column:1954}},loc:{start:{line:5,column:1968},end:{line:5,column:1996}},line:5}},branchMap:{0:{loc:{start:{line:5,column:1241},end:{line:5,column:1480}},type:"cond-expr",locations:[{start:{line:5,column:1262},end:{line:5,column:1471}},{start:{line:5,column:1472},end:{line:5,column:1480}}],line:5},1:{loc:{start:{line:5,column:1493},end:{line:5,column:1732}},type:"cond-expr",locations:[{start:{line:5,column:1514},end:{line:5,column:1723}},{start:{line:5,column:1724},end:{line:5,column:1732}}],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:"1047416408b01a2271a0f91d16fa1476095bd9ec"},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:()=>Oe}),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("div",{staticClass:"grapher-info"},[t("v-btn",{directives:[{name:"show",rawName:"v-show",value:"pause"===e.state,expression:"state === 'pause'"}],staticClass:"pulse",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'"}],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:"grapher-info-text"},[e._v("\n Click item name in Legend to toggle. Right click to edit.\n ")])],1)],1)],1)],1)],1),e._v(" "),t("div",[t("div",{staticClass:"grid"},e._l(e.graphs,(function(n){return i().f[4]++,i().s[7]++,t("div",{key:n,ref:`gridItem${n}`,refInFor:!0,staticClass:"item",attrs:{id:`gridItem${n}`}},[t("div",{staticClass:"item-content"},[t("graph",{ref:`graph${n}`,refInFor:!0,attrs:{id:n,state:e.state,"start-time":e.startTime,"selected-graph-id":e.selectedGraphId,"seconds-graphed":e.settings.secondsGraphed.value,"points-saved":e.settings.pointsSaved.value,"points-graphed":e.settings.pointsGraphed.value,"refresh-interval-ms":e.settings.refreshIntervalMs.value,"time-zone":e.timeZone},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(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(a){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(a){let e=new Error;throw a.response?(e.name=a.response.data.error.data.class,e.message=a.response.data.error.data.message):a.request?(e.name="Request error",e.message="Request error, no response received"):e.name="Unknown error",e}}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,t=!1){return this.exec("get_all_tlm_names",[e],{hidden:t})}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){let e=s.length,t=null;for(let n=0;n<e;n++)t=this.decode_openc3_type(s[n][1]),null!==t&&(s[n][1]=t)}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);let a=s[0].length,l=null;for(let 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)){let e=new Error;throw e.name="TypeError",e.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,e}s=await this.exec("tlm",[e],{type:t})}else s=await this.exec("tlm",[e,t,n],{type:i});let a=this.decode_openc3_type(s);return null!==a&&(s=a),s}async inject_tlm(e,t,n=null,i="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:i})}set_tlm(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}override_tlm(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e,t=!1){return this.exec("get_all_cmd_names",[e],{hidden:t})}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){let a=null;for(let 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("")}}}n(4293);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(" "),e.editGraph?t("graph-edit-dialog",{attrs:{title:e.title,"legend-position":e.legendPosition,items:e.items,"graph-min-y":e.graphMinY,"graph-max-y":e.graphMaxY,lines:e.lines,colors:e.colors,"start-date-time":e.graphStartDateTime,"end-date-time":e.graphEndDateTime,"time-zone":e.timeZone},on:{remove:function(t){return e.removeItems([t])},ok:e.editGraphClose,cancel:function(t){e.editGraph=!1}},model:{value:e.editGraph,callback:function(t){e.editGraph=t},expression:"editGraph"}}):e._e(),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.clearData([e.selectedItem])}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-eraser")])],1),e._v(" "),t("v-list-item-content",[t("v-list-item-title",[e._v(" Clear ")])],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)},A=[],v=(n(8605),function(){var e=this,t=e._self._c;return 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("cancel")}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[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.graph.title,callback:function(t){e.$set(e.graph,"title",t)},expression:"graph.title"}})],1)],1),e._v(" "),t("v-col",[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.graph.legendPosition,callback:function(t){e.$set(e.graph,"legendPosition",t)},expression:"graph.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 now.\n ")]),e._v(" "),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:"Start Date",name:`date${Date.now()}`,rules:[e.rules.date],type:"date"},model:{value:e.startDate,callback:function(t){e.startDate=t},expression:"startDate"}},n))]}}])})],1),e._v(" "),t("v-col",[t("v-text-field",{attrs:{label:"Start Time",name:`time${Date.now()}`,rules:[e.rules.time],type:"time",step:"1"},model:{value:e.startTime,callback:function(t){e.startTime=t},expression:"startTime"}})],1)],1),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("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:"End Date",name:`date${Date.now()}`,rules:[e.rules.date],type:"date"},model:{value:e.endDate,callback:function(t){e.endDate=t},expression:"endDate"}},n))]}}])})],1),e._v(" "),t("v-col",[t("v-text-field",{attrs:{label:"End Time",name:`time${Date.now()}`,rules:[e.rules.time],type:"time",step:"1"},model:{value:e.endTime,callback:function(t){e.endTime=t},expression:"endTime"}})],1)],1)],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.graph.graphMinY,callback:function(t){e.$set(e.graph,"graphMinY",t)},expression:"graph.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.graph.graphMaxY,callback:function(t){e.$set(e.graph,"graphMaxY",t)},expression:"graph.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.graph.lines,"items-per-page":5,"footer-props":{itemsPerPageOptions:[5]}},scopedSlots:e._u([{key:"item.yValue",fn:function({item:n}){return[t("v-edit-dialog",{attrs:{"return-value":n.yValue},on:{"update:returnValue":function(t){return e.$set(n,"yValue",t)},"update:return-value":function(t){return e.$set(n,"yValue",t)}},scopedSlots:e._u([{key:"input",fn:function(){return[t("v-text-field",{attrs:{label:"Edit","single-line":"",counter:""},model:{value:n.yValue,callback:function(t){e.$set(n,"yValue",t)},expression:"item.yValue"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.yValue)+"\n ")])]}},{key:"item.color",fn:function({item:n}){return[t("v-edit-dialog",{attrs:{"return-value":n.color},on:{"update:returnValue":function(t){return e.$set(n,"color",t)},"update:return-value":function(t){return e.$set(n,"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.color,callback:function(t){e.$set(n,"color",t)},expression:"item.color"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.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.$emit("remove",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",{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:e.closeOk}},[e._v(" Ok ")])],1)],1)],1)}),g=[],f=n(686),_=n(5475),C=n(5179),y=n(2378);const b="yyyy-MM-dd",x="HH:mm:ss.SSS",w="HH:mm:ss",k=`${b} ${x}`,T={methods:{formatUtcToLocal(e,t){return t&&"local"!==t?(0,f.GP)(e,k):(0,f.GP)((0,_.Y)(e,e.getTimezoneOffset()),k)},formatDateTime(e,t){return t&&"local"!==t?(0,y.qD)(e,t,k):(0,f.GP)(e,k)},formatDate:function(e,t){return t&&"local"!==t?(0,y.qD)(e,this.timeZone,b):(0,f.GP)(e,b)},formatTime:function(e,t,n=x){return t&&"local"!==t?(0,y.qD)(e,this.timeZone,n):(0,f.GP)(e,n)},formatTimeHMS:function(e,t){return this.formatTime(e,t,w)},formatTimestamp(e,t){return this.formatDateTime((0,C.H)(e),t)},formatSeconds(e,t){return this.formatDateTime(new Date(1e3*e),t)},formatNanoseconds(e,t){return this.formatDateTime(new Date(parseInt(e)/1e6),t)}}};var N=n(3221),I=n(7456),D=n(8494);const S={props:{value:Boolean,title:{type:String,required:!0},legendPosition:{type:String,required:!0},items:{type:Array,required:!0},graphMinY:{type:Number,required:!0},graphMaxY:{type:Number,required:!0},lines:{type:Array,required:!0},colors:{type:Array,required:!0},startDateTime:{type:Number,required:!0},endDateTime:{type:Number,required:!0},timeZone:{type:String,required:!0}},mixins:[T],data:function(){return{tab:0,graph:{},legendPositions:["top","bottom","left","right"],startDate:null,startTime:null,endDate:null,endTime:null,lineHeaders:[{text:"Y Value",value:"yValue"},{text:"Color",value:"color"},{text:"Actions",value:"actions",sortable:!1}],itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],rules:{date:e=>{if(!e)return!0;try{return(0,N.f)((0,I.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,N.f)((0,I.qg)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},editItems:function(){if(!this.items)return[];let e=0;return this.items.map((t=>(e+=1,{...t,itemId:e})))}},created(){if(this.graph={title:this.title,legendPosition:this.legendPosition,items:this.items,graphMinY:this.graphMinY,graphMaxY:this.graphMaxY,lines:[...this.lines]},this.startDateTime){let e=(0,D.a)(this.startDateTime/1e6);this.startDate=this.formatDate(e,this.timeZone),this.startTime=this.formatTimeHMS(e,this.timeZone)}else{let e=new Date-36e5;this.startDate=this.formatDate(e,this.timeZone),this.startTime=this.formatTimeHMS(e,this.timeZone)}if(this.endDateTime){let e=(0,D.a)(this.endDateTime/1e6);this.endDate=this.formatDate(e,this.timeZone),this.endTime=this.formatTimeHMS(e,this.timeZone)}},methods:{closeOk(){this.startDate&&this.startTime?this.graph.startDateTime=this.startDate+" "+this.startTime:this.graph.startDateTime=null,this.endDate&&this.endTime?this.graph.endDateTime=this.endDate+" "+this.endTime:this.graph.endDateTime=null,this.$emit("ok",this.graph)},addLine(){this.graph.lines.push({yValue:0,color:"white"})},removeLine(e){let t=this.lines.indexOf(e);this.graph.lines.splice(t,1)}}},M=S;n(9883);var $=n(2401),G=(0,$.A)(M,v,g,!1,null,null,null);const E=G.exports;var O=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)},R=[];const P={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+""))}))}},z=P;var L=(0,$.A)(z,O,R,!1,null,null,null);const V=L.exports;var H=n(2132),U=n(5914),Y=n.n(U),W=n(7752);W.D$.staleThreshold=10;class B{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=W.Be(e)}return this._cable.subscriptions.create({channel:e,...i},n)}))}recordPing(){this._cable.connection.monitor.recordPing()}}n(9037);const F={components:{GraphEditDialog:E,GraphEditItemDialog:V},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},timeZone:{type:String,default:"local"}},mixins:[T],data(){return{lines:[],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",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 B,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},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 H.A(n,this.data,document.getElementById(`chart${this.id}`));else{let i=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&"local"!==this.timeZone&&(i=this.timeZone),n={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:e=>H.A.tzDate(new Date(1e3*e),i),series:[{label:"Time",value:(e,t)=>null==t?"--":this.formatSeconds(t,this.timeZone)},...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 H.A(n,this.data,document.getElementById(`chart${this.id}`));const s={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:e=>H.A.tzDate(new Date(1e3*e),i),series:[...t],cursor:{y:!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 H.A(s,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){e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime(),this.graphStartDateTime!==t&&(this.needToUpdate=!0))},graphEndDateTime:function(e,t){e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime(),this.graphEndDateTime!==t&&(this.needToUpdate=!0))}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"===this.state||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let e=this.data[0][this.data[0].length-1],t=this.data[0][this.data[0].length-this.pointsGraphed],n=this.data[0][0];n<e-this.secondsGraphed&&(n=e-this.secondsGraphed),t>n&&(n=t),this.graph.setScale("x",{min:n,max:e}),this.dataChanged=!1},formatLabel(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;{let t="";return"CONVERTED"!==e.valueType&&(t+=e.valueType),"DECOM"!==e.reduced&&(""!==t&&(t+=" "),t+=`${e.reduced.split("_")[1]} ${e.reducedType}`),`${e.itemName} (${t})`}},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(e){this.editGraph=!1,this.title=e.title,this.legendPosition=e.legendPosition,this.graphMinY=e.graphMinY,this.graphMaxY=e.graphMaxY,this.lines=[...e.lines],this.graphStartDateTime=e.startDateTime,this.graphEndDateTime=e.endDateTime,this.$nextTick((()=>{if(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),H.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]:H.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})}))},clearAllData:function(){this.data[0]=[],this.clearData(this.items)},clearData:function(e){for(const t of e.map(this.subscriptionKey)){let e=this.indexes[t];this.data[e]=Array(this.data[0].length).fill(null),this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)}2===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},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=Y()(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}}},q=F;n(3046),n(6470);var K=(0,$.A)(q,p,A,!1,null,"0369d26c",null);const X=K.exports;var Z=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)},j=[];const J={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=>{!0!==t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},Q=J;var ee=(0,$.A)(Q,Z,j,!1,null,null,null);const te=ee.exports;var ne=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)},ie=[];const se={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=>{!0!==t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},ae=se;var le=(0,$.A)(ae,ne,ie,!1,null,null,null);const oe=le.exports;var re=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:"1","data-test":"array-index"}},[t("v-combobox",{attrs:{label:"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":"140px"},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":"140px"},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)},ce=[];n(7534);const de={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},hidden:{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,this.hidden).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})}))}}},ue=de;n(1335);var me=(0,$.A)(ue,re,ce,!1,null,"3e1063ee",null);const he=me.exports;var pe=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",{staticClass:"list-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",{staticClass:"list-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)},Ae=[];n(8715);const ve={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}},ge=ve;n(5699);var fe=(0,$.A)(ge,pe,Ae,!1,null,"0af23388",null);const _e=fe.exports;var Ce=n(8893);function ye(){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 ye=function(){return l},l}ye(),ye().s[0]++;var be=function(){ye().f[0]++;var e=(ye().s[1]++,this),t=(ye().s[2]++,e._self._c);return ye().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){ye().f[1]++,ye().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 ye().f[2]++,ye().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){ye().f[3]++,ye().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)},xe=(ye().s[7]++,[]);const we={Accept:"application/json"};function ke(){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 ke=function(){return l},l}ke();const Te={props:{settings:{type:Object,required:!0},value:Boolean},data(){return ke().f[0]++,ke().s[0]++,{}},computed:{show:{get(){return ke().f[1]++,ke().s[1]++,this.value},set(e){ke().f[2]++,ke().s[2]++,this.$emit("input",e)}}},methods:{}},Ne=Te;var Ie=(0,$.A)(Ne,be,xe,!1,null,null,null);const De=Ie.exports;function Se(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",t="768d6e91a8d5dc0c6e8d5e35b0c4742bdae0125c",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:13,column:27},end:{line:13,column:30}},1:{start:{line:25,column:4},end:{line:147,column:5}},2:{start:{line:50,column:16},end:{line:50,column:42}},3:{start:{line:57,column:16},end:{line:57,column:42}},4:{start:{line:64,column:16},end:{line:64,column:30}},5:{start:{line:65,column:16},end:{line:65,column:37}},6:{start:{line:66,column:16},end:{line:66,column:38}},7:{start:{line:78,column:16},end:{line:78,column:31}},8:{start:{line:88,column:16},end:{line:88,column:36}},9:{start:{line:95,column:16},end:{line:95,column:36}},10:{start:{line:102,column:16},end:{line:102,column:35}},11:{start:{line:112,column:16},end:{line:112,column:35}},12:{start:{line:119,column:16},end:{line:119,column:46}},13:{start:{line:129,column:29},end:{line:129,column:50}},14:{start:{line:134,column:29},end:{line:134,column:50}},15:{start:{line:139,column:29},end:{line:139,column:50}},16:{start:{line:144,column:29},end:{line:144,column:50}},17:{start:{line:152,column:8},end:{line:152,column:50}},18:{start:{line:159,column:6},end:{line:189,column:7}},19:{start:{line:168,column:26},end:{line:168,column:69}},20:{start:{line:169,column:27},end:{line:169,column:49}},21:{start:{line:170,column:23},end:{line:179,column:11}},22:{start:{line:183,column:10},end:{line:186,column:11}},23:{start:{line:184,column:12},end:{line:184,column:67}},24:{start:{line:185,column:12},end:{line:185,column:63}},25:{start:{line:187,column:10},end:{line:187,column:23}},26:{start:{line:193,column:4},end:{line:193,column:30}},27:{start:{line:194,column:4},end:{line:203,column:8}},28:{start:{line:197,column:8},end:{line:199,column:9}},29:{start:{line:198,column:10},end:{line:198,column:34}},30:{start:{line:206,column:4},end:{line:211,column:6}},31:{start:{line:214,column:4},end:{line:216,column:6}},32:{start:{line:215,column:6},end:{line:215,column:39}},33:{start:{line:219,column:4},end:{line:241,column:5}},34:{start:{line:220,column:6},end:{line:220,column:60}},35:{start:{line:223,column:9},end:{line:241,column:5}},36:{start:{line:228,column:6},end:{line:234,column:8}},37:{start:{line:236,column:19},end:{line:236,column:43}},38:{start:{line:238,column:6},end:{line:240,column:7}},39:{start:{line:239,column:8},end:{line:239,column:32}},40:{start:{line:245,column:6},end:{line:245,column:31}},41:{start:{line:248,column:6},end:{line:265,column:7}},42:{start:{line:249,column:8},end:{line:264,column:9}},43:{start:{line:257,column:10},end:{line:262,column:12}},44:{start:{line:263,column:10},end:{line:263,column:16}},45:{start:{line:266,column:6},end:{line:266,column:71}},46:{start:{line:267,column:6},end:{line:269,column:7}},47:{start:{line:268,column:8},end:{line:268,column:28}},48:{start:{line:270,column:6},end:{line:270,column:48}},49:{start:{line:273,column:17},end:{line:273,column:29}},50:{start:{line:274,column:22},end:{line:274,column:27}},51:{start:{line:275,column:23},end:{line:275,column:28}},52:{start:{line:277,column:6},end:{line:284,column:7}},53:{start:{line:278,column:8},end:{line:280,column:9}},54:{start:{line:279,column:10},end:{line:279,column:26}},55:{start:{line:281,column:8},end:{line:283,column:9}},56:{start:{line:282,column:10},end:{line:282,column:27}},57:{start:{line:285,column:6},end:{line:285,column:26}},58:{start:{line:286,column:6},end:{line:286,column:23}},59:{start:{line:287,column:6},end:{line:303,column:8}},60:{start:{line:288,column:20},end:{line:290,column:10}},61:{start:{line:291,column:8},end:{line:291,column:29}},62:{start:{line:292,column:8},end:{line:292,column:33}},63:{start:{line:294,column:8},end:{line:296,column:9}},64:{start:{line:295,column:10},end:{line:295,column:53}},65:{start:{line:297,column:8},end:{line:299,column:9}},66:{start:{line:298,column:10},end:{line:298,column:54}},67:{start:{line:300,column:8},end:{line:302,column:30}},68:{start:{line:301,column:10},end:{line:301,column:43}},69:{start:{line:304,column:6},end:{line:304,column:48}},70:{start:{line:307,column:18},end:{line:307,column:80}},71:{start:{line:308,column:6},end:{line:308,column:29}},72:{start:{line:309,column:6},end:{line:309,column:52}},73:{start:{line:311,column:6},end:{line:316,column:7}},74:{start:{line:312,column:8},end:{line:312,column:29}},75:{start:{line:313,column:8},end:{line:313,column:35}},76:{start:{line:315,column:8},end:{line:315,column:45}},77:{start:{line:317,column:6},end:{line:317,column:48}},78:{start:{line:321,column:6},end:{line:323,column:7}},79:{start:{line:322,column:8},end:{line:322,column:30}},80:{start:{line:324,column:6},end:{line:324,column:22}},81:{start:{line:327,column:6},end:{line:329,column:7}},82:{start:{line:328,column:8},end:{line:328,column:53}},83:{start:{line:332,column:6},end:{line:332,column:31}},84:{start:{line:333,column:6},end:{line:338,column:7}},85:{start:{line:335,column:10},end:{line:335,column:43}},86:{start:{line:339,column:6},end:{line:339,column:48}},87:{start:{line:342,column:6},end:{line:347,column:7}},88:{start:{line:344,column:10},end:{line:344,column:43}},89:{start:{line:352,column:6},end:{line:354,column:7}},90:{start:{line:353,column:8},end:{line:353,column:29}},91:{start:{line:359,column:6},end:{line:370,column:7}},92:{start:{line:360,column:8},end:{line:369,column:12}},93:{start:{line:363,column:12},end:{line:365,column:13}},94:{start:{line:364,column:14},end:{line:364,column:38}},95:{start:{line:373,column:6},end:{line:373,column:39}},96:{start:{line:374,column:6},end:{line:374,column:27}},97:{start:{line:375,column:6},end:{line:375,column:28}},98:{start:{line:377,column:6},end:{line:377,column:73}},99:{start:{line:378,column:6},end:{line:378,column:67}},100:{start:{line:379,column:6},end:{line:379,column:71}},101:{start:{line:380,column:6},end:{line:380,column:79}},102:{start:{line:382,column:19},end:{line:382,column:32}},103:{start:{line:383,column:6},end:{line:385,column:7}},104:{start:{line:384,column:8},end:{line:384,column:28}},105:{start:{line:386,column:6},end:{line:386,column:28}},106:{start:{line:387,column:19},end:{line:387,column:23}},107:{start:{line:388,column:6},end:{line:400,column:8}},108:{start:{line:389,column:23},end:{line:389,column:49}},109:{start:{line:390,column:8},end:{line:390,column:36}},110:{start:{line:391,column:8},end:{line:391,column:44}},111:{start:{line:392,column:8},end:{line:392,column:46}},112:{start:{line:393,column:8},end:{line:393,column:44}},113:{start:{line:394,column:8},end:{line:394,column:44}},114:{start:{line:395,column:8},end:{line:395,column:62}},115:{start:{line:396,column:8},end:{line:396,column:58}},116:{start:{line:397,column:8},end:{line:397,column:49}},117:{start:{line:398,column:8},end:{line:398,column:43}},118:{start:{line:399,column:8},end:{line:399,column:36}},119:{start:{line:401,column:6},end:{line:401,column:26}},120:{start:{line:402,column:6},end:{line:402,column:40}},121:{start:{line:405,column:6},end:{line:408,column:8}},122:{start:{line:406,column:8},end:{line:406,column:38}},123:{start:{line:407,column:8},end:{line:407,column:38}},124:{start:{line:409,column:6},end:{line:409,column:23}},125:{start:{line:412,column:6},end:{line:412,column:51}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:24,column:2},end:{line:24,column:3}},loc:{start:{line:24,column:9},end:{line:148,column:3}},line:24},1:{name:"(anonymous_1)",decl:{start:{line:49,column:23},end:{line:49,column:24}},loc:{start:{line:49,column:29},end:{line:51,column:15}},line:49},2:{name:"(anonymous_2)",decl:{start:{line:56,column:23},end:{line:56,column:24}},loc:{start:{line:56,column:29},end:{line:58,column:15}},line:56},3:{name:"(anonymous_3)",decl:{start:{line:63,column:23},end:{line:63,column:24}},loc:{start:{line:63,column:29},end:{line:67,column:15}},line:63},4:{name:"(anonymous_4)",decl:{start:{line:77,column:23},end:{line:77,column:24}},loc:{start:{line:77,column:29},end:{line:79,column:15}},line:77},5:{name:"(anonymous_5)",decl:{start:{line:87,column:23},end:{line:87,column:24}},loc:{start:{line:87,column:29},end:{line:89,column:15}},line:87},6:{name:"(anonymous_6)",decl:{start:{line:94,column:23},end:{line:94,column:24}},loc:{start:{line:94,column:29},end:{line:96,column:15}},line:94},7:{name:"(anonymous_7)",decl:{start:{line:101,column:23},end:{line:101,column:24}},loc:{start:{line:101,column:29},end:{line:103,column:15}},line:101},8:{name:"(anonymous_8)",decl:{start:{line:111,column:23},end:{line:111,column:24}},loc:{start:{line:111,column:29},end:{line:113,column:15}},line:111},9:{name:"(anonymous_9)",decl:{start:{line:118,column:23},end:{line:118,column:24}},loc:{start:{line:118,column:29},end:{line:120,column:15}},line:118},10:{name:"(anonymous_10)",decl:{start:{line:129,column:18},end:{line:129,column:19}},loc:{start:{line:129,column:29},end:{line:129,column:50}},line:129},11:{name:"(anonymous_11)",decl:{start:{line:134,column:18},end:{line:134,column:19}},loc:{start:{line:134,column:29},end:{line:134,column:50}},line:134},12:{name:"(anonymous_12)",decl:{start:{line:139,column:18},end:{line:139,column:19}},loc:{start:{line:139,column:29},end:{line:139,column:50}},line:139},13:{name:"(anonymous_13)",decl:{start:{line:144,column:18},end:{line:144,column:19}},loc:{start:{line:144,column:29},end:{line:144,column:50}},line:144},14:{name:"(anonymous_14)",decl:{start:{line:151,column:15},end:{line:151,column:16}},loc:{start:{line:151,column:27},end:{line:153,column:7}},line:151},15:{name:"(anonymous_15)",decl:{start:{line:158,column:19},end:{line:158,column:20}},loc:{start:{line:158,column:31},end:{line:190,column:5}},line:158},16:{name:"(anonymous_16)",decl:{start:{line:166,column:41},end:{line:166,column:42}},loc:{start:{line:166,column:51},end:{line:188,column:9}},line:166},17:{name:"(anonymous_17)",decl:{start:{line:192,column:2},end:{line:192,column:3}},loc:{start:{line:192,column:12},end:{line:204,column:3}},line:192},18:{name:"(anonymous_18)",decl:{start:{line:196,column:12},end:{line:196,column:13}},loc:{start:{line:196,column:26},end:{line:200,column:7}},line:196},19:{name:"(anonymous_19)",decl:{start:{line:201,column:13},end:{line:201,column:14}},loc:{start:{line:201,column:24},end:{line:203,column:7}},line:201},20:{name:"(anonymous_20)",decl:{start:{line:205,column:11},end:{line:205,column:12}},loc:{start:{line:205,column:23},end:{line:242,column:3}},line:205},21:{name:"(anonymous_21)",decl:{start:{line:214,column:25},end:{line:214,column:26}},loc:{start:{line:214,column:41},end:{line:216,column:5}},line:214},22:{name:"(anonymous_22)",decl:{start:{line:244,column:19},end:{line:244,column:20}},loc:{start:{line:244,column:33},end:{line:246,column:5}},line:244},23:{name:"(anonymous_23)",decl:{start:{line:247,column:13},end:{line:247,column:14}},loc:{start:{line:247,column:54},end:{line:271,column:5}},line:247},24:{name:"(anonymous_24)",decl:{start:{line:272,column:14},end:{line:272,column:15}},loc:{start:{line:272,column:46},end:{line:305,column:5}},line:272},25:{name:"(anonymous_25)",decl:{start:{line:287,column:21},end:{line:287,column:22}},loc:{start:{line:287,column:33},end:{line:303,column:7}},line:287},26:{name:"(anonymous_26)",decl:{start:{line:300,column:19},end:{line:300,column:20}},loc:{start:{line:300,column:25},end:{line:302,column:9}},line:300},27:{name:"(anonymous_27)",decl:{start:{line:306,column:16},end:{line:306,column:17}},loc:{start:{line:306,column:30},end:{line:318,column:5}},line:306},28:{name:"(anonymous_28)",decl:{start:{line:319,column:20},end:{line:319,column:21}},loc:{start:{line:319,column:32},end:{line:325,column:5}},line:319},29:{name:"(anonymous_29)",decl:{start:{line:326,column:18},end:{line:326,column:19}},loc:{start:{line:326,column:30},end:{line:330,column:5}},line:326},30:{name:"(anonymous_30)",decl:{start:{line:331,column:17},end:{line:331,column:18}},loc:{start:{line:331,column:31},end:{line:340,column:5}},line:331},31:{name:"(anonymous_31)",decl:{start:{line:334,column:8},end:{line:334,column:9}},loc:{start:{line:334,column:14},end:{line:336,column:9}},line:334},32:{name:"(anonymous_32)",decl:{start:{line:341,column:12},end:{line:341,column:13}},loc:{start:{line:341,column:24},end:{line:348,column:5}},line:341},33:{name:"(anonymous_33)",decl:{start:{line:343,column:8},end:{line:343,column:9}},loc:{start:{line:343,column:14},end:{line:345,column:9}},line:343},34:{name:"(anonymous_34)",decl:{start:{line:349,column:18},end:{line:349,column:19}},loc:{start:{line:349,column:34},end:{line:355,column:5}},line:349},35:{name:"(anonymous_35)",decl:{start:{line:356,column:17},end:{line:356,column:18}},loc:{start:{line:356,column:41},end:{line:403,column:5}},line:356},36:{name:"(anonymous_36)",decl:{start:{line:362,column:16},end:{line:362,column:17}},loc:{start:{line:362,column:30},end:{line:366,column:11}},line:362},37:{name:"(anonymous_37)",decl:{start:{line:367,column:17},end:{line:367,column:18}},loc:{start:{line:367,column:28},end:{line:369,column:11}},line:367},38:{name:"(anonymous_38)",decl:{start:{line:388,column:21},end:{line:388,column:22}},loc:{start:{line:388,column:41},end:{line:400,column:7}},line:388},39:{name:"(anonymous_39)",decl:{start:{line:404,column:23},end:{line:404,column:24}},loc:{start:{line:404,column:55},end:{line:410,column:5}},line:404},40:{name:"(anonymous_40)",decl:{start:{line:405,column:40},end:{line:405,column:41}},loc:{start:{line:405,column:58},end:{line:408,column:7}},line:405},41:{name:"(anonymous_41)",decl:{start:{line:411,column:23},end:{line:411,column:24}},loc:{start:{line:411,column:39},end:{line:413,column:5}},line:411}},branchMap:{0:{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},1:{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},2:{loc:{start:{line:139,column:29},end:{line:139,column:50}},type:"binary-expr",locations:[{start:{line:139,column:29},end:{line:139,column:36}},{start:{line:139,column:40},end:{line:139,column:50}}],line:139},3:{loc:{start:{line:144,column:29},end:{line:144,column:50}},type:"binary-expr",locations:[{start:{line:144,column:29},end:{line:144,column:36}},{start:{line:144,column:40},end:{line:144,column:50}}],line:144},4:{loc:{start:{line:183,column:10},end:{line:186,column:11}},type:"if",locations:[{start:{line:183,column:10},end:{line:186,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:183},5:{loc:{start:{line:183,column:14},end:{line:183,column:70}},type:"binary-expr",locations:[{start:{line:183,column:14},end:{line:183,column:41}},{start:{line:183,column:45},end:{line:183,column:70}}],line:183},6:{loc:{start:{line:197,column:8},end:{line:199,column:9}},type:"if",locations:[{start:{line:197,column:8},end:{line:199,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:197},7:{loc:{start:{line:219,column:4},end:{line:241,column:5}},type:"if",locations:[{start:{line:219,column:4},end:{line:241,column:5}},{start:{line:223,column:9},end:{line:241,column:5}}],line:219},8:{loc:{start:{line:219,column:8},end:{line:219,column:53}},type:"binary-expr",locations:[{start:{line:219,column:8},end:{line:219,column:25}},{start:{line:219,column:29},end:{line:219,column:53}}],line:219},9:{loc:{start:{line:223,column:9},end:{line:241,column:5}},type:"if",locations:[{start:{line:223,column:9},end:{line:241,column:5}},{start:{line:235,column:11},end:{line:241,column:5}}],line:223},10:{loc:{start:{line:224,column:6},end:{line:226,column:29}},type:"binary-expr",locations:[{start:{line:224,column:6},end:{line:224,column:31}},{start:{line:225,column:6},end:{line:225,column:31}},{start:{line:226,column:6},end:{line:226,column:29}}],line:224},11:{loc:{start:{line:238,column:6},end:{line:240,column:7}},type:"if",locations:[{start:{line:238,column:6},end:{line:240,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:238},12:{loc:{start:{line:247,column:32},end:{line:247,column:52}},type:"default-arg",locations:[{start:{line:247,column:48},end:{line:247,column:52}}],line:247},13:{loc:{start:{line:249,column:8},end:{line:264,column:9}},type:"if",locations:[{start:{line:249,column:8},end:{line:264,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:249},14:{loc:{start:{line:250,column:10},end:{line:255,column:50}},type:"binary-expr",locations:[{start:{line:250,column:10},end:{line:250,column:48}},{start:{line:251,column:10},end:{line:251,column:48}},{start:{line:252,column:10},end:{line:252,column:44}},{start:{line:253,column:10},end:{line:253,column:46}},{start:{line:254,column:10},end:{line:254,column:42}},{start:{line:255,column:10},end:{line:255,column:50}}],line:250},15:{loc:{start:{line:267,column:6},end:{line:269,column:7}},type:"if",locations:[{start:{line:267,column:6},end:{line:269,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:267},16:{loc:{start:{line:272,column:24},end:{line:272,column:44}},type:"default-arg",locations:[{start:{line:272,column:40},end:{line:272,column:44}}],line:272},17:{loc:{start:{line:277,column:6},end:{line:284,column:7}},type:"if",locations:[{start:{line:277,column:6},end:{line:284,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:277},18:{loc:{start:{line:277,column:10},end:{line:277,column:50}},type:"binary-expr",locations:[{start:{line:277,column:10},end:{line:277,column:23}},{start:{line:277,column:27},end:{line:277,column:50}}],line:277},19:{loc:{start:{line:278,column:8},end:{line:280,column:9}},type:"if",locations:[{start:{line:278,column:8},end:{line:280,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:278},20:{loc:{start:{line:281,column:8},end:{line:283,column:9}},type:"if",locations:[{start:{line:281,column:8},end:{line:283,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:281},21:{loc:{start:{line:294,column:8},end:{line:296,column:9}},type:"if",locations:[{start:{line:294,column:8},end:{line:296,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:294},22:{loc:{start:{line:297,column:8},end:{line:299,column:9}},type:"if",locations:[{start:{line:297,column:8},end:{line:299,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:297},23:{loc:{start:{line:311,column:6},end:{line:316,column:7}},type:"if",locations:[{start:{line:311,column:6},end:{line:316,column:7}},{start:{line:314,column:13},end:{line:316,column:7}}],line:311},24:{loc:{start:{line:352,column:6},end:{line:354,column:7}},type:"if",locations:[{start:{line:352,column:6},end:{line:354,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:352},25:{loc:{start:{line:359,column:6},end:{line:370,column:7}},type:"if",locations:[{start:{line:359,column:6},end:{line:370,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:359},26:{loc:{start:{line:363,column:12},end:{line:365,column:13}},type:"if",locations:[{start:{line:363,column:12},end:{line:365,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:363},27:{loc:{start:{line:404,column:39},end:{line:404,column:53}},type:"default-arg",locations:[{start:{line:404,column:48},end:{line:404,column:53}}],line:404}},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,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125: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,35:0,36:0,37:0,38:0,39:0,40:0,41: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],10:[0,0,0],11:[0,0],12:[0],13:[0,0],14:[0,0,0,0,0,0],15:[0,0],16:[0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0]},inputSourceMap:{version:3,sources:["TlmGrapher.vue"],names:[],mappings:";AAoJA;AACA;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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;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 <div class=\"grapher-info\">\n <v-btn\n v-show=\"state === 'pause'\"\n class=\"pulse\"\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 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=\"grapher-info-text\">\n Click item name in Legend to toggle. Right click to edit.\n </div>\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 :time-zone=\"timeZone\"\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 { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\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 api: null,\n timeZone: null, // deliberately null so we know when it is set\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: 'Clear All Data',\n icon: 'mdi-eraser',\n command: () => {\n this.clearAllData()\n },\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 created() {\n this.api = new OpenC3Api()\n this.api\n .get_setting('time_zone')\n .then((response) => {\n if (response) {\n this.timeZone = response\n }\n })\n .catch((error) => {\n // Do nothing\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 clearAllData: function () {\n for (let graph of this.graphs) {\n this.$refs[`graph${graph}`][0].clearAllData()\n }\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 // Grab the timeZone if we haven't already\n // This ensures we're waiting for it and pass it to the graphs\n if (this.timeZone === null) {\n await this.api\n .get_setting('time_zone')\n .then((response) => {\n if (response) {\n this.timeZone = response\n }\n })\n .catch((error) => {\n // Do nothing\n })\n }\n\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.grapher-info {\n position: relative;\n margin-top: 60px;\n left: -120px;\n height: 50px;\n}\n.grapher-info-text {\n position: relative;\n top: -55px;\n left: 70px;\n width: 140px;\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:"768d6e91a8d5dc0c6e8d5e35b0c4742bdae0125c"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var l=a[e];return Se=function(){return l},l}Se();const Me=(Se().s[0]++,250),$e={components:{Graph:X,OpenConfigDialog:te,SaveConfigDialog:oe,SettingsDialog:De,TargetPacketItemChooser:he,TopBar:_e},mixins:[h],data(){return Se().f[0]++,Se().s[1]++,{title:"Telemetry Grapher",configKey:"telemetry_grapher",showOpenConfig:!1,showSaveConfig:!1,showSettingsDialog:!1,api:null,timeZone:null,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:()=>{Se().f[1]++,Se().s[2]++,this.showOpenConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{Se().f[2]++,Se().s[3]++,this.showSaveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{Se().f[3]++,Se().s[4]++,this.panel=0,Se().s[5]++,this.closeAllGraphs(),Se().s[6]++,this.resetConfigBase()}}]},{label:"Graph",items:[{label:"Add Graph",icon:"mdi-plus",command:()=>{Se().f[4]++,Se().s[7]++,this.addGraph()}},{divider:!0},{label:"Start / Resume",icon:"mdi-play",command:()=>{Se().f[5]++,Se().s[8]++,this.state="start"}},{label:"Pause",icon:"mdi-pause",command:()=>{Se().f[6]++,Se().s[9]++,this.state="pause"}},{label:"Stop",icon:"mdi-stop",command:()=>{Se().f[7]++,Se().s[10]++,this.state="stop"}},{divider:!0},{label:"Clear All Data",icon:"mdi-eraser",command:()=>{Se().f[8]++,Se().s[11]++,this.clearAllData()}},{label:"Settings",icon:"mdi-cog",command:()=>{Se().f[9]++,Se().s[12]++,this.showSettingsDialog=!0}}]}],settings:{secondsGraphed:{title:"Seconds Graphed",value:1e3,rules:[e=>(Se().f[10]++,Se().s[13]++,Se().b[0][0]++,!!e||(Se().b[0][1]++,"Required"))]},pointsSaved:{title:"Points Saved",value:1e6,rules:[e=>(Se().f[11]++,Se().s[14]++,Se().b[1][0]++,!!e||(Se().b[1][1]++,"Required"))]},pointsGraphed:{title:"Points Graphed",value:1e3,rules:[e=>(Se().f[12]++,Se().s[15]++,Se().b[2][0]++,!!e||(Se().b[2][1]++,"Required"))]},refreshIntervalMs:{title:"Refresh Interval Ms",value:100,rules:[e=>(Se().f[13]++,Se().s[16]++,Se().b[3][0]++,!!e||(Se().b[3][1]++,"Required"))]}}}},watch:{settings:{handler:function(){Se().f[14]++,Se().s[17]++,this.saveDefaultConfig(this.currentConfig)},deep:!0}},computed:{currentConfig:function(){return Se().f[15]++,Se().s[18]++,{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=>{Se().f[16]++;const t=(Se().s[19]++,`graph${e.getElement().id.substring(8)}`),n=(Se().s[20]++,this.$refs[t][0]);let i=(Se().s[21]++,{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 Se().s[22]++,Se().b[5][0]++,n.graphStartDateTime&&(Se().b[5][1]++,n.graphEndDateTime)?(Se().b[4][0]++,Se().s[23]++,i.graphStartDateTime=n.graphStartDateTime,Se().s[24]++,i.graphEndDateTime=n.graphEndDateTime):Se().b[4][1]++,Se().s[25]++,i}))}}},created(){Se().f[17]++,Se().s[26]++,this.api=new m,Se().s[27]++,this.api.get_setting("time_zone").then((e=>{Se().f[18]++,Se().s[28]++,e?(Se().b[6][0]++,Se().s[29]++,this.timeZone=e):Se().b[6][1]++})).catch((e=>{Se().f[19]++}))},mounted:function(){if(Se().f[20]++,Se().s[30]++,this.grid=new Ce.A(".grid",{dragEnabled:!0,layoutOnResize:!0,dragHandle:".v-system-bar"}),Se().s[31]++,this.grid.on("move",(function(e){Se().f[21]++,Se().s[32]++,e.item.getGrid().synchronize()})),Se().s[33]++,Se().b[8][0]++,this.$route.query&&(Se().b[8][1]++,this.$route.query.config))Se().b[7][0]++,Se().s[34]++,this.openConfiguration(this.$route.query.config,!0);else if(Se().b[7][1]++,Se().s[35]++,Se().b[10][0]++,this.$route.params.target&&(Se().b[10][1]++,this.$route.params.packet)&&(Se().b[10][2]++,this.$route.params.item))Se().b[9][0]++,Se().s[36]++,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{Se().b[9][1]++;let e=(Se().s[37]++,this.loadDefaultConfig());Se().s[38]++,"{}"!==JSON.stringify(e)?(Se().b[11][0]++,Se().s[39]++,this.applyConfig(e)):Se().b[11][1]++}},methods:{graphSelected:function(e){Se().f[22]++,Se().s[40]++,this.selectedGraphId=e},addItem:function(e,t=(Se().b[12][0]++,!0)){Se().f[23]++,Se().s[41]++;for(const n of this.$refs[`graph${this.selectedGraphId}`][0].items){if(Se().s[42]++,Se().b[14][0]++,e.targetName===n.targetName&&(Se().b[14][1]++,e.packetName===n.packetName)&&(Se().b[14][2]++,e.itemName===n.itemName)&&(Se().b[14][3]++,e.valueType===n.valueType)&&(Se().b[14][4]++,e.reduced===n.reduced)&&(Se().b[14][5]++,e.reducedType===n.reducedType))return Se().b[13][0]++,Se().s[43]++,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 Se().s[44]++;Se().b[13][1]++}Se().s[45]++,this.$refs[`graph${this.selectedGraphId}`][0].addItems([e]),Se().s[46]++,!0===t?(Se().b[15][0]++,Se().s[47]++,this.state="start"):Se().b[15][1]++,Se().s[48]++,this.saveDefaultConfig(this.currentConfig)},addGraph:function(e=(Se().b[16][0]++,!0)){Se().f[24]++;const t=(Se().s[49]++,this.counter);let n=(Se().s[50]++,!1),i=(Se().s[51]++,!1);Se().s[52]++,Se().b[18][0]++,e&&(Se().b[18][1]++,0!=this.graphs.length)?(Se().b[17][0]++,Se().s[53]++,!1===this.$refs[`graph${this.graphs[0]}`][0].fullWidth?(Se().b[19][0]++,Se().s[54]++,n=!0):Se().b[19][1]++,Se().s[55]++,!1===this.$refs[`graph${this.graphs[0]}`][0].fullHeight?(Se().b[20][0]++,Se().s[56]++,i=!0):Se().b[20][1]++):Se().b[17][1]++,Se().s[57]++,this.graphs.push(t),Se().s[58]++,this.counter+=1,Se().s[59]++,this.$nextTick((function(){Se().f[25]++;var e=(Se().s[60]++,this.grid.add(this.$refs[`gridItem${t}`],{active:!1}));Se().s[61]++,this.grid.show(e),Se().s[62]++,this.selectedGraphId=t,Se().s[63]++,n?(Se().b[21][0]++,Se().s[64]++,this.$refs[`graph${t}`][0].collapseWidth()):Se().b[21][1]++,Se().s[65]++,i?(Se().b[22][0]++,Se().s[66]++,this.$refs[`graph${t}`][0].collapseHeight()):Se().b[22][1]++,Se().s[67]++,setTimeout((()=>{Se().f[26]++,Se().s[68]++,this.grid.refreshItems().layout()}),Me)})),Se().s[69]++,this.saveDefaultConfig(this.currentConfig)},closeGraph:function(e){Se().f[27]++;var t=(Se().s[70]++,this.grid.getItems([document.getElementById(`gridItem${e}`)]));Se().s[71]++,this.grid.remove(t),Se().s[72]++,this.graphs.splice(this.graphs.indexOf(e),1),Se().s[73]++,0===this.graphs.length?(Se().b[23][0]++,Se().s[74]++,this.startTime=null,Se().s[75]++,this.selectedGraphId=null):(Se().b[23][1]++,Se().s[76]++,this.selectedGraphId=this.graphs[0]),Se().s[77]++,this.saveDefaultConfig(this.currentConfig)},closeAllGraphs:function(){Se().f[28]++,Se().s[78]++;for(let e of[...this.graphs])Se().s[79]++,this.closeGraph(e);Se().s[80]++,this.counter=0},clearAllData:function(){Se().f[29]++,Se().s[81]++;for(let e of this.graphs)Se().s[82]++,this.$refs[`graph${e}`][0].clearAllData()},minMaxGraph:function(e){Se().f[30]++,Se().s[83]++,this.selectedGraphId=e,Se().s[84]++,setTimeout((()=>{Se().f[31]++,Se().s[85]++,this.grid.refreshItems().layout()}),2*Me),Se().s[86]++,this.saveDefaultConfig(this.currentConfig)},resize:function(){Se().f[32]++,Se().s[87]++,setTimeout((()=>{Se().f[33]++,Se().s[88]++,this.grid.refreshItems().layout()}),2*Me)},graphStarted:function(e){Se().f[34]++,Se().s[89]++,null===this.startTime?(Se().b[24][0]++,Se().s[90]++,this.startTime=e):Se().b[24][1]++},applyConfig:async function(e){Se().f[35]++,Se().s[91]++,null===this.timeZone?(Se().b[25][0]++,Se().s[92]++,await this.api.get_setting("time_zone").then((e=>{Se().f[36]++,Se().s[93]++,e?(Se().b[26][0]++,Se().s[94]++,this.timeZone=e):Se().b[26][1]++})).catch((e=>{Se().f[37]++}))):Se().b[25][1]++,Se().s[95]++,this.dontSaveDefaultConfig=!0,Se().s[96]++,this.closeAllGraphs(),Se().s[97]++,await this.$nextTick(),Se().s[98]++,this.settings.secondsGraphed.value=e.settings.secondsGraphed,Se().s[99]++,this.settings.pointsSaved.value=e.settings.pointsSaved,Se().s[100]++,this.settings.pointsGraphed.value=e.settings.pointsGraphed,Se().s[101]++,this.settings.refreshIntervalMs.value=e.settings.refreshIntervalMs;let t=(Se().s[102]++,e.graphs);Se().s[103]++;for(let i of t)Se().s[104]++,this.addGraph(!1);Se().s[105]++,await this.$nextTick();const n=(Se().s[106]++,this);Se().s[107]++,t.forEach((function(e,t){Se().f[38]++;let i=(Se().s[108]++,n.$refs[`graph${t}`][0]);Se().s[109]++,i.title=e.title,Se().s[110]++,i.fullWidth=e.fullWidth,Se().s[111]++,i.fullHeight=e.fullHeight,Se().s[112]++,i.graphMinX=e.graphMinX,Se().s[113]++,i.graphMaxX=e.graphMaxX,Se().s[114]++,i.graphStartDateTime=e.graphStartDateTime,Se().s[115]++,i.graphEndDateTime=e.graphEndDateTime,Se().s[116]++,i.moveLegend(e.legendPosition),Se().s[117]++,i.addItems([...e.items]),Se().s[118]++,i.lines=e.lines})),Se().s[119]++,this.state="start",Se().s[120]++,this.dontSaveDefaultConfig=!1},openConfiguration:function(e,t=(Se().b[27][0]++,!1)){Se().f[39]++,Se().s[121]++,this.openConfigBase(e,t,(async e=>{Se().f[40]++,Se().s[122]++,await this.applyConfig(e),Se().s[123]++,this.saveDefaultConfig(e)})),Se().s[124]++,this.panel=null},saveConfiguration:function(e){Se().f[41]++,Se().s[125]++,this.saveConfigBase(e,this.currentConfig)}}},Ge=$e;n(8406),n(3609);var Ee=(0,$.A)(Ge,s,a,!1,null,"840d4c66",null);const Oe=Ee.exports},558:(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},6030:(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,".v-window-item{background-color:var(--color-background-surface-default)}.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},1790:(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-0369d26c] .u-select{background-color:hsla(0,0%,100%,.07)}",""]);const r=o},9811:(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{color:hsla(0,0%,100%,.7);background-color:var(--color-background-surface-default);padding:10px;margin-top:10px}.v-small-dialog__content{background-color:var(--color-background-surface-selected);padding:5px 5px}",""]);const r=o},6271:(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-3e1063ee]{padding:4px}.select[data-v-3e1063ee]{max-width:300px}.row+.row[data-v-3e1063ee]{margin-top:0}",""]);const r=o},4203:(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-0af23388]{font-size:2rem}.menu-button[data-v-0af23388]{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-0af23388]{padding-right:5px}.list-action[data-v-0af23388] label{color:#fff;padding-left:10px}.myicon[data-v-0af23388]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-0af23388] .v-label{margin-left:5px}.v-list-item__icon[data-v-0af23388]{margin-right:15px!important}.v-list-item__title[data-v-0af23388]{color:#fff}",""]);const r=o},5924:(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,".grapher-info[data-v-840d4c66]{position:relative;margin-top:60px;left:-120px;height:50px}.grapher-info-text[data-v-840d4c66]{position:relative;top:-55px;left:70px;width:140px}.v-expansion-panel-content .container[data-v-840d4c66]{margin:0}.v-expansion-panel-header[data-v-840d4c66]{min-height:10px;padding:5px}.v-navigation-drawer[data-v-840d4c66]{z-index:2}.grid[data-v-840d4c66]{position:relative}.item[data-v-840d4c66]{position:absolute;z-index:1}.item.muuri-item-dragging[data-v-840d4c66]{z-index:3}.item.muuri-item-releasing[data-v-840d4c66]{z-index:2}.item.muuri-item-hidden[data-v-840d4c66]{z-index:0}.item-content[data-v-840d4c66]{position:relative;cursor:pointer;border-radius:6px;margin:5px}.pulse[data-v-840d4c66]{animation:pulse-840d4c66 1s infinite}@keyframes pulse-840d4c66{0%{opacity:1}50%{opacity:.5}}",""]);const r=o},8406:(e,t,n)=>{var i=n(558);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("76e7e180",i,!0,{sourceMap:!1,shadowMode:!1})},3046:(e,t,n)=>{var i=n(6030);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7f1d7b32",i,!0,{sourceMap:!1,shadowMode:!1})},6470:(e,t,n)=>{var i=n(1790);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("631d6b4a",i,!0,{sourceMap:!1,shadowMode:!1})},9883:(e,t,n)=>{var i=n(9811);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("1b7c2aaa",i,!0,{sourceMap:!1,shadowMode:!1})},1335:(e,t,n)=>{var i=n(6271);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7d1749d1",i,!0,{sourceMap:!1,shadowMode:!1})},5699:(e,t,n)=>{var i=n(4203);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7f447726",i,!0,{sourceMap:!1,shadowMode:!1})},3609:(e,t,n)=>{var i=n(5924);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("59a8ad45",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=118.js.map