openc3-cosmos-tool-tlmgrapher 5.5.2 → 5.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/tlmgrapher/index.html +1 -4
- data/tools/tlmgrapher/js/408.js +2 -0
- data/tools/tlmgrapher/js/408.js.map +1 -0
- data/tools/tlmgrapher/js/909.js +1 -1
- data/tools/tlmgrapher/js/909.js.map +1 -1
- data/tools/tlmgrapher/js/app.js +1 -1
- data/tools/tlmgrapher/js/app.js.map +1 -1
- metadata +4 -4
- data/tools/tlmgrapher/js/206.js +0 -2
- data/tools/tlmgrapher/js/206.js.map +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d0269806d3d656effba70b42269eb35db9b3ab75da2a3630b921e75929e7d47
|
4
|
+
data.tar.gz: f38bb9ea81a398d66e2dc885a7d290fc8f597fd4b2ed8dbc2badc7ea58e4fddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 788e04d767eab6742a75a222dff1e8924a1dcb7f68b1bfbb3f033ed2fb7c1d99e2302781d2232a4c5b6750ca4e114f990bc5960adfc37b0b23630e5b01c827bf
|
7
|
+
data.tar.gz: 7af4a66c70b6ed7408868940075aed9fb64227df76ab4a3b33017eaaa8ff797259c73e32b187600fcdb9738afdcf4fd5b65723c70500fe3cac5019b10f7d6523
|
data/tools/tlmgrapher/index.html
CHANGED
@@ -1,4 +1 @@
|
|
1
|
-
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><
|
2
|
-
const fullSrc = new URL('/tools/tlmgrapher//tools/tlmgrapher/js/app.js', window.location.href);
|
3
|
-
mfLink.href = fullSrc;
|
4
|
-
mfLink.textContent = fullSrc;</script></main></head><body><div id="app"></div></body></html>
|
1
|
+
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><script defer="defer" src="/tools/tlmgrapher/js/app.js"></script></head><body><div id="app"></div></body></html>
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]=self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]||[]).push([[408],{6408:function(e,t,n){"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",t="d774e83253b4cae15b2255a9985306d9634729ca",n=new Function("return this")(),a="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",statementMap:{0:{start:{line:1,column:13},end:{line:8,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:7,column:1625}},4:{start:{line:1,column:295},end:{line:3,column:58}},5:{start:{line:2,column:14},end:{line:2,column:35}},6:{start:{line:3,column:117},end:{line:3,column:134}},7:{start:{line:4,column:14},end:{line:4,column:33}},8:{start:{line:6,column:14},end:{line:6,column:33}},9:{start:{line:7,column:151},end:{line:7,column:857}},10:{start:{line:7,column:688},end:{line:7,column:709}},11:{start:{line:7,column:732},end:{line:7,column:754}},12:{start:{line:7,column:770},end:{line:7,column:782}},13:{start:{line:7,column:797},end:{line:7,column:821}},14:{start:{line:7,column:1037},end:{line:7,column:1059}},15:{start:{line:7,column:1271},end:{line:7,column:1293}},16:{start:{line:7,column:1559},end:{line:7,column:1585}},17:{start:{line:9,column:22},end:{line:9,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:8,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:275},end:{line:1,column:276}},loc:{start:{line:1,column:294},end:{line:3,column:59}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:352},end:{line:1,column:353}},loc:{start:{line:1,column:358},end:{line:3,column:13}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:3,column:101},end:{line:3,column:102}},loc:{start:{line:3,column:116},end:{line:3,column:135}},line:3},4:{name:"(anonymous_4)",decl:{start:{line:3,column:1301},end:{line:3,column:1302}},loc:{start:{line:3,column:1307},end:{line:5,column:13}},line:3},5:{name:"(anonymous_5)",decl:{start:{line:5,column:266},end:{line:5,column:267}},loc:{start:{line:5,column:272},end:{line:7,column:13}},line:5},6:{name:"(anonymous_6)",decl:{start:{line:7,column:135},end:{line:7,column:136}},loc:{start:{line:7,column:150},end:{line:7,column:858}},line:7},7:{name:"(anonymous_7)",decl:{start:{line:7,column:682},end:{line:7,column:683}},loc:{start:{line:7,column:688},end:{line:7,column:709}},line:7},8:{name:"(anonymous_8)",decl:{start:{line:7,column:726},end:{line:7,column:727}},loc:{start:{line:7,column:732},end:{line:7,column:754}},line:7},9:{name:"(anonymous_9)",decl:{start:{line:7,column:764},end:{line:7,column:765}},loc:{start:{line:7,column:770},end:{line:7,column:782}},line:7},10:{name:"(anonymous_10)",decl:{start:{line:7,column:791},end:{line:7,column:792}},loc:{start:{line:7,column:797},end:{line:7,column:821}},line:7},11:{name:"(anonymous_11)",decl:{start:{line:7,column:1021},end:{line:7,column:1022}},loc:{start:{line:7,column:1036},end:{line:7,column:1060}},line:7},12:{name:"(anonymous_12)",decl:{start:{line:7,column:1255},end:{line:7,column:1256}},loc:{start:{line:7,column:1270},end:{line:7,column:1294}},line:7},13:{name:"(anonymous_13)",decl:{start:{line:7,column:1543},end:{line:7,column:1544}},loc:{start:{line:7,column:1558},end:{line:7,column:1586}},line:7}},branchMap:{0:{loc:{start:{line:7,column:867},end:{line:7,column:1100}},type:"cond-expr",locations:[{start:{line:7,column:888},end:{line:7,column:1091}},{start:{line:7,column:1092},end:{line:7,column:1100}}],line:7},1:{loc:{start:{line:7,column:1101},end:{line:7,column:1334}},type:"cond-expr",locations:[{start:{line:7,column:1122},end:{line:7,column:1325}},{start:{line:7,column:1326},end:{line:7,column:1334}}],line:7}},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},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},b:{0:[0,0],1:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d774e83253b4cae15b2255a9985306d9634729ca"},l=n[a]||(n[a]={});l[e]&&l[e].hash===t||(l[e]=s);var o=l[e];return i=function(){return o},o}n.r(t),n.d(t,{default:function(){return Le}}),i(),i().s[0]++;var a=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}}),t("div",[t("v-snackbar",{attrs:{top:"",type:e.alertType,icon:e.alertType,timeout:5e3},scopedSlots:e._u([{key:"action",fn:function(n){var a=n.attrs;return i().f[1]++,i().s[4]++,[t("v-btn",e._b({attrs:{text:""},on:{click:function(){i().f[2]++,i().s[5]++,e.showAlert=!1}}},"v-btn",a,!1),[e._v(" Close ")])]}}]),model:{value:e.showAlert,callback:function(t){i().f[3]++,i().s[6]++,e.showAlert=t},expression:"showAlert"}},[t("v-icon",[e._v(" mdi-"+e._s(e.alertType)+" ")]),e._v(" "+e._s(e.alert)+" ")],1),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"),t("span",[e._v(" Add a graph from the menu bar or select an existing graph to continue ")]),t("v-spacer")],1)],1),t("v-row",{directives:[{name:"show",rawName:"v-show",value:null!==this.selectedGraphId,expression:"this.selectedGraphId !== null"}],staticClass:"px-1",attrs:{justify:"space-between"}},[t("v-col",{attrs:{cols:"11"}},[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}})],1),t("v-col",{attrs:{cols:"1"}},[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:function(){i().f[4]++,i().s[7]++,e.state="start"}}},[t("v-icon",{attrs:{large:""}},[e._v("mdi-play")])],1),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:function(){i().f[5]++,i().s[8]++,e.state="pause"}}},[t("v-icon",{attrs:{large:""}},[e._v("mdi-pause")])],1)],1)],1),t("div",{staticClass:"grid"},e._l(e.graphs,(function(n){return i().f[6]++,i().s[9]++,t("div",{key:n,ref:"gridItem".concat(n),refInFor:!0,staticClass:"item",attrs:{id:"gridItem".concat(n)}},[t("div",{staticClass:"item-content"},[t("graph",{ref:"graph".concat(n),refInFor:!0,attrs:{id:n,state:e.state,"start-time":e.startTime,"selected-graph-id":e.selectedGraphId,"seconds-graphed":e.settings.secondsGraphed.value,"points-saved":e.settings.pointsSaved.value,"points-graphed":e.settings.pointsGraphed.value,"refresh-interval-ms":e.settings.refreshIntervalMs.value},on:{"close-graph":function(){return i().f[7]++,i().s[10]++,e.closeGraph(n)},"min-max-graph":function(){return i().f[8]++,i().s[11]++,e.minMaxGraph(n)},resize:function(){return i().f[9]++,i().s[12]++,e.resize()},click:function(){return i().f[10]++,i().s[13]++,e.graphSelected(n)},started:e.graphStarted}})],1)])})),0)],1),e.showOpenConfig?(i().b[0][0]++,t("open-config-dialog",{attrs:{tool:e.toolName},on:{success:e.openConfiguration},model:{value:e.showOpenConfig,callback:function(t){i().f[11]++,i().s[14]++,e.showOpenConfig=t},expression:"showOpenConfig"}})):(i().b[0][1]++,e._e()),e.showSaveConfig?(i().b[1][0]++,t("save-config-dialog",{attrs:{tool:e.toolName},on:{success:e.saveConfiguration},model:{value:e.showSaveConfig,callback:function(t){i().f[12]++,i().s[15]++,e.showSaveConfig=t},expression:"showSaveConfig"}})):(i().b[1][1]++,e._e()),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[13]++,i().s[16]++,e.showSettingsDialog=t},expression:"showSettingsDialog"}})],1)},s=(i().s[17]++,[]),l=n(5789),o=n(9502),r=n(615),c=n(8081),u=(n(8178),n(6728),n(9805),n(4083),n(3450),n(6710),n(8188),n(1939),n(6259)),d=n(6964),m=n(426),h=n(7871),p=n(2261),v=(n(1372),n(1245),n(7950),n(9529),n(3675),n(4898),n(5825),n(7170),n(8857),n(8329),n(6279),n(427),n(171),n(7093),n(1159),n(2516),n(4349),n(5273),n(6729),n(1801),n(574),n(5787),n(9271),n(3160),n(5688),n(3157),n(3333),n(315),n(556),n(9224),n(2649),n(14),n(1996),n(7233),n(8673),n(5734),n(8233),n(1235),n(9644)),f=n.n(v),A=n(4091),g=new A["default"],_=f().create({baseURL:location.origin,timeout:6e4,params:{}});_.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,i,a,s,l,o,r,c,u;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var d="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(d+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(i=n.config)&&void 0!==i&&i.data&&(d+="".concat(e.response.config.data," ")),null!==(a=e.response)&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&s.message)d+="".concat(e.response.data.message);else if(null!==(l=e.response)&&void 0!==l&&null!==(o=l.data)&&void 0!==o&&o.exception)d+="".concat(e.response.data.exception);else if(null!==(r=e.response)&&void 0!==r&&null!==(c=r.data)&&void 0!==c&&null!==(u=c.error)&&void 0!==u&&u.message)e.response.data.error.class&&(d+="".concat(e.response.data.error.class," ")),d+="".concat(e.response.data.error.message);else{var m;d+="".concat(null===(m=e.response)||void 0===m?void 0:m.data)}throw g.$notify&&g.$notify.serious({title:"Network error",body:d}),e}throw e}));var y=_,C=function(){function e(){(0,m.Z)(this,e),(0,p.Z)(this,"id",1)}return(0,h.Z)(e,[{key:"exec",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(t,n){var i,a,s,o,r,c=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=c.length>2&&void 0!==c[2]?c[2]:{},a=c.length>3&&void 0!==c[3]?c[3]:{},e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:s=e.sent,s&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:return this.id=this.id+1,e.prev=13,i["scope"]=window.openc3Scope,e.next=17,y.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:i},{headers:(0,d.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},a)});case 17:return o=e.sent,e.abrupt("return",o.data.result);case 21:throw e.prev=21,e.t1=e["catch"](13),r=new Error,e.t1.response?(r.name=e.t1.response.data.error.data.class,r.message=e.t1.response.data.error.data.message):e.t1.request?(r.name="Request error",r.message="Request error, no response received"):r.name="Unknown error",r;case 26:case"end":return e.stop()}}),e,this,[[2,9],[13,21]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,u.Z)(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}},{key:"encode_openc3_type",value:function(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}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(t){t&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,t){return this.exec("map_target_to_interface",[e,t])}},{key:"connect_interface",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length>0?this.exec("connect_interface",[e].concat(n)):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,t,n){return this.exec("get_item",[e,t,n])}},{key:"get_parameter",value:function(e,t,n){return this.exec("get_parameter",[e,t,n])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,t){return this.exec("get_telemetry",[e,t])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(t,n,i){var a,s,o,r,c,u=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.length>3&&void 0!==u[3]?u[3]:30,e.next=3,this.exec("get_tlm_packet",[t,n],{type:i,stale_time:a});case 3:if(s=e.sent,null!=s)for(o=s.length,r=null,c=0;c<o;c++)r=this.decode_openc3_type(s[c][1]),null!==r&&(s[c][1]=r);return e.abrupt("return",s);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"get_packet_derived_items",value:function(e,t){return this.exec("get_packet_derived_items",[e,t])}},{key:"get_tlm_buffer",value:function(e,t){return this.exec("get_tlm_buffer",[e,t])}},{key:"get_tlm_values",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(t){var n,i,a,s,o,r=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:30,e.next=3,this.exec("get_tlm_values",[t],{stale_time:n});case 3:for(i=e.sent,a=i[0].length,s=null,o=0;o<a;o++)s=this.decode_openc3_type(i[0][o]),null!==s&&(i[0][o]=s);return e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"get_limits",value:function(e,t,n){return this.exec("get_limits",[e,t,n])}},{key:"tlm",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(t,n,i){var a,s,o,r,c=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=c.length>3&&void 0!==c[3]?c[3]:"CONVERTED",s=null,void 0!==n){e.next=8;break}return e.next=5,this.exec("tlm",[t]);case 5:s=e.sent,e.next=24;break;case 8:if(void 0!==i){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){e.next=15;break}return e.next=12,this.exec("tlm",[t],{type:n});case 12:s=e.sent,e.next=19;break;case 15:throw o=new Error,o.name="TypeError",o.message="Invalid data type ".concat(n,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),o;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[t,n,i],{type:a});case 23:s=e.sent;case 24:return r=this.decode_openc3_type(s),null!==r&&(s=r),e.abrupt("return",s);case 27:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"inject_tlm",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(t,n){var i,a,s=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=s.length>2&&void 0!==s[2]?s[2]:null,a=s.length>3&&void 0!==s[3]?s[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[t,n,i],{type:a});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"set_tlm",value:function(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}},{key:"override_tlm",value:function(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,t){return this.exec("get_command",[e,t])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,t,n,i])}},{key:"get_cmd_buffer",value:function(e,t){return this.exec("get_cmd_buffer",[e,t])}},{key:"_cmd",value:function(e,t,n,i,a){var s=null;for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(s=this.encode_openc3_type(i[l]),null!==s&&(i[l]=s));return this.exec(e,[t,n,i],{},a)}},{key:"get_cmd_hazardous",value:function(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}},{key:"cmd",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===t?this.exec("cmd",e,{},i):this._cmd("cmd",e,t,n,i)}},{key:"cmd_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}},{key:"cmd_raw",value:function(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}},{key:"cmd_raw_no_range_check",value:function(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)}},{key:"cmd_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}},{key:"cmd_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}},{key:"cmd_raw_no_hazardous_check",value:function(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)}},{key:"cmd_raw_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,t){return this.exec("send_raw",[e,t])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,t){return this.exec("load_config",[e,t])}},{key:"save_config",value:function(e,t,n){return this.exec("save_config",[e,t,n])}},{key:"delete_config",value:function(e,t){return this.exec("delete_config",[e,t])}},{key:"enable_limits",value:function(e,t,n){return this.exec("enable_limits",[e,t,n])}},{key:"disable_limits",value:function(e,t,n){return this.exec("disable_limits",[e,t,n])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,t){return this.exec("save_setting",[e,t])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,o.Z)((0,l.Z)().mark((function e(t){var n,i,a;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return n=(new TextEncoder).encode(t),e.next=4,crypto.subtle.digest("SHA-256",n);case 4:return i=e.sent,a=new Uint8Array(i),e.abrupt("return",Array.from(a).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}(),b=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(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[t("span",[e._v("Errors")])])],1),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(t){e.editGraph=!0}}},[e._v(" mdi-pencil ")])],1)]}}])},[t("span",[e._v(" Edit ")])]),t("v-spacer"),t("span",[e._v(e._s(e.title))]),t("v-spacer"),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(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[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(" mdi-arrow-collapse ")]),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(" mdi-arrow-expand ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),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(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[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(" mdi-arrow-collapse-horizontal ")]),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(" mdi-arrow-expand-horizontal ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),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(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[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(" mdi-arrow-collapse-vertical ")]),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(" mdi-arrow-expand-vertical ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[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(" mdi-window-minimize ")]),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(" mdi-window-maximize ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),i),[t("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(t){return e.$emit("close-graph")}}},[e._v(" mdi-close-box ")])],1)]}}])},[t("span",[e._v(" Close ")])])],1),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".concat(e.id)}}),t("div",{attrs:{id:"betweenCharts"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:"overview".concat(e.id)}})])])],1),t("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("input")},input:function(t){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(t){e.editGraph=t},expression:"editGraph"}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Edit Graph")]),t("v-spacer")],1),t("v-card",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),t("v-card-text",{staticClass:"pa-0"},[e._v(" Select a start date/time for the graph. Leave blank for start now. ")]),t("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time","date-time":e.graphStartDateTime},on:{"date-time":function(t){e.graphStartDateTime=t}}}),t("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),t("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(t){e.graphEndDateTime=t}}}),t("v-row",{attrs:{dense:""}},[t("v-select",{attrs:{label:"Legend Position",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(t){e.legendPosition=t},expression:"legendPosition"}})],1),t("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y",type:"number","data-test":"graph-min-y"},model:{value:e.graphMinY,callback:function(t){e.graphMinY=t},expression:"graphMinY"}})],1),t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Max Y",type:"number","data-test":"graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1),t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var a=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),a),[t("v-btn",{attrs:{icon:"","data-test":"delete-item-icon".concat(i.itemId)},on:{click:function(){return e.removeItems([i])}}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no items on this graph")])]},proxy:!0}])}),t("v-card-actions",[t("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),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"),t("span",[e._v("Errors")]),t("v-spacer")],1),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),t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),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(" Edit "+e._s(e.title)+" ")])],1)],1)],1):e._e(),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.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(" "+e._s(e.selectedItem.targetName)+" "+e._s(e.selectedItem.packetName)+" "+e._s(e.selectedItem.itemName)+" ")]),t("v-list-item",{on:{click:function(t){e.editItem=!0}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-pencil")])],1),t("v-list-item-content",[t("v-list-item-title",[e._v(" Edit ")])],1)],1),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),t("v-list-item-content",[t("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),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),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),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),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)},w=[],x=n(7302),k=(n(6886),n(3108),n(2501),n(3489),n(1951),n(5883),function(){var e=this,t=e._self._c;return t("div",[t("v-row",[t("v-col",[t("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on;return[t("v-text-field",e._g({attrs:{label:e.dateLabel,name:"date".concat(Date.now()),rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}},i))]}}])})],1),t("v-col",[t("v-text-field",{attrs:{label:e.timeLabel,name:"time".concat(Date.now()),rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1)],1)}),T=[],N=n(1200),I=n(247),S=n(6700),M=n(3053),D={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data:function(){return{date:null,time:null,rules:{required:function(e){return!!e||"Required"},date:function(e){if(!e)return!0;try{return(0,N.Z)((0,I.Z)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:function(e){if(!e)return!0;try{return(0,N.Z)((0,I.Z)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules:function(){var e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules:function(){var e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created:function(){if(this.dateTime){var e=(0,S.Z)(this.dateTime/1e6);this.date=(0,M.Z)(e,"yyyy-MM-dd"),this.time=(0,M.Z)(e,"HH:mm:ss")}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},E=D,G=n(3287),O=(0,G.Z)(E,k,T,!1,null,null,null),R=O.exports,L=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,"enter",13,t.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",{staticClass:"pa-3"},[t("v-card-title",{staticClass:"headline"},[e._v("Edit Item")]),t("v-select",{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"}}),t("v-select",{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"}}),t("v-select",{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"}}),t("v-select",{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.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"}}),t("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e(),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(t){return e.$emit("cancel")}}},[e._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(t){return e.$emit("close",e.editItem)}}},[e._v(" Ok ")])],1)],1)],1)},z=[],P=(n(4769),n(7890),n(9228),{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:function(){return this.value},set:function(e){this.$emit("input",e)}},limitsNames:function(){return Object.keys(this.limits)}},created:function(){var e=this;return(0,o.Z)((0,l.Z)().mark((function t(){return(0,l.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.editItem=(0,d.Z)({},e.item),t.next=3,e.api;case 3:e.api=(new C).get_item(e.item.targetName,e.item.packetName,e.item.itemName).then((function(t){for(var n=0,i=Object.entries(t.limits);n<i.length;n++){var a=(0,x.Z)(i[n],2),s=a[0],l=a[1];Object.keys(l).includes("red_low")&&e.$set(e.limits,s,Object.values(l))}e.limitsName=Object.keys(e.limits).find((function(t){return e.limits[t]+""===e.editItem.limits+""}))}));case 4:case"end":return t.stop()}}),t)})))()}}),$=P,Z=(0,G.Z)($,L,z,!1,null,null,null),H=Z.exports,U=n(5685),V=n(6522),Y=n.n(V),W=n(7146);W.ju.staleThreshold=10;var F=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,m.Z)(this,e),this._cable=null,this._url=t}return(0,h.Z)(e,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(t){if(t&&OpenC3Auth.setTokens(),null==n._cable){var s=n._url+"?scope="+window.openc3Scope+"&authorization="+localStorage.openc3Token;n._cable=W.zD(s)}return n._cable.subscriptions.create((0,d.Z)({channel:e},a),i)}))}},{key:"recordPing",value:function(){this._cable.connection.monitor.recordPing()}}]),e}();n(6461);var B={components:{DateTimeChooser:R,GraphEditItemDialog:H},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data:function(){return{itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new F,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["cornflowerblue","red","lime","darkorange","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];var e=0;return this.items.map((function(t){return e+=1,(0,d.Z)((0,d.Z)({},t),{},{itemId:e})}))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created:function(){this.title="Graph ".concat(this.id);var e,t=(0,c.Z)(this.items.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,x.Z)(e.value,2),i=n[0],a=n[1];this.data.push([]),this.indexes[this.subscriptionKey(a)]=i+1,void 0===a.color&&(a.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)}}catch(s){t.e(s)}finally{t.f()}},mounted:function(){var e=this,t=this.items.reduce((function(t,n){var i={spanGaps:!0};return t.chartSeries.push((0,d.Z)((0,d.Z)({},i),{},{item:n,label:e.formatLabel(n),stroke:function(t,n){return e.items[n-1].color},value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(2)}})),t.overviewSeries.push((0,d.Z)({},i)),t}),{chartSeries:[],overviewSeries:[]}),n=t.chartSeries,i=t.overviewSeries,a={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,a={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 U.Z(a,this.data,document.getElementById("chart".concat(this.id)));else{a=(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},this.getSize("chart")),this.getScales()),this.getAxes("chart")),{},{plugins:[this.linesPlugin()],series:[{label:"Time",value:function(e,t){return null==t?"--":(0,M.Z)((0,S.Z)(1e3*t),"yyyy-MM-dd HH:mm:ss")}}].concat((0,r.Z)(n)),cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"}},hooks:{setScale:[function(t,n){if("x"==n&&!e.zoomOverview&&e.overview){e.zoomChart=!0;var i=Math.round(e.overview.valToPos(t.scales.x.min,"x")),a=Math.round(e.overview.valToPos(t.scales.x.max,"x"));e.overview.setSelect({left:i,width:a-i}),e.zoomChart=!1}}],ready:[function(t){var n=t.root.querySelector(".u-over");n.addEventListener("contextmenu",(function(t){t.preventDefault(),e.itemMenu=!1,e.legendMenu=!1,e.editGraphMenuX=t.clientX,e.editGraphMenuY=t.clientY,e.editGraphMenu=!0})),n.addEventListener("mouseenter",(function(t){e.$emit("resize")})),n.addEventListener("mouseleave",(function(t){e.$emit("resize")}));var i=t.root.querySelector(".u-legend");i.addEventListener("contextmenu",(function(n){n.preventDefault(),e.editGraphMenu=!1,e.legendMenu=!1,e.itemMenuX=n.clientX,e.itemMenuY=n.clientY;var a=n.target.closest(".u-series"),s=Array.prototype.slice.call(i.childNodes).indexOf(a),l=t.series[s];l.item?(e.selectedItem=l.item,e.itemMenu=!0):(e.itemMenu=!1,e.legendMenuX=n.clientX,e.legendMenuY=n.clientY,e.legendMenu=!0)}))}]}}),this.graph=new U.Z(a,this.data,document.getElementById("chart".concat(this.id)));var s=(0,d.Z)((0,d.Z)((0,d.Z)((0,d.Z)({},this.getSize("overview")),this.getScales()),this.getAxes("overview")),{},{series:(0,r.Z)(i),cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[function(t){if(!e.zoomChart){e.zoomOverview=!0;var n=t.posToVal(t.select.left,"x"),i=t.posToVal(t.select.left+t.select.width,"x");e.graph.setScale("x",{min:n,max:i}),e.zoomOverview=!1}}]}});this.overview=new U.Z(s,this.data,document.getElementById("overview".concat(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){var n=parseFloat(e);isNaN(n)||(this.graphMinY=n),this.setGraphRange()},graphMaxY:function(e,t){var n=parseFloat(e);isNaN(n)||(this.graphMaxY=n),this.setGraphRange()},graphStartDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){var e=this;this.subscribe(),this.timeout=setTimeout((function(){e.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){var e=this;this.updateGraphData(),this.timeout=setTimeout((function(){e.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"!==this.state&&this.dataChanged){this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);var 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:function(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;var t="";return"CONVERTED"!==e.valueType&&(t+=e.valueType),"DECOM"!==e.reduced&&(""!==t&&(t+=" "),t+="".concat(e.reduced.split("_")[1]," ").concat(e.reducedType)),"".concat(e.itemName," (").concat(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(){this.editGraph=!1,this.needToUpdate&&(null===this.subscription?this.startGraph():(this.removeItemsFromSubscription(),this.addItemsToSubscription()),this.needToUpdate=!1),this.moveLegend(this.legendPosition)},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(){var e=this,t=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(t=0),this.graph.scales.y.range=function(n,i,a){var s=i;(e.graphMinY||0===e.graphMinY)&&(s=e.graphMinY);var l=a;return(e.graphMaxY||0===e.graphMaxY)&&(l=e.graphMaxY),U.Z.rangeNum(s,l,t,!0)}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(t){return e.received(t)},connected:function(){e.addItemsToSubscription(e.items)},disconnected:function(){e.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:function(){e.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((function(t){e.subscription=t}))},getSize:function(e){var t=document.getElementById("openc3-nav-drawer"),n=t.classList.contains("v-navigation-drawer--open")?t.clientWidth:0,i=0;if("right"===this.legendPosition||"left"===this.legendPosition){var a=document.getElementsByClassName("u-legend")[0];i=a.clientWidth}var s=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-n-i,l=Math.max(document.documentElement.clientHeight,window.innerHeight||0),o=document.getElementsByClassName("c-chooser")[0],r=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:o&&(r=l-o.clientHeight-r-190,this.fullHeight||(r=r/2+10));var c=s-60;return this.fullWidth||(c=c/2-10),{width:this.width||c,height:this.height||r}},getScales:function(){return{scales:{x:{range:function(e,t,n){return null==t?[1566453600,1566497660]:[t,n]}},y:{range:function(e,t,n){return null==t?[-100,100]:U.Z.rangeNum(t,n,.1,!0)}}}}},getAxes:function(e){var t="rgba(0, 0, 0, .1)",n="black";return this.$vuetify.theme.dark&&(t="rgba(255, 255, 255, .1)",n="white"),{axes:[{stroke:n,grid:{show:!0,stroke:t,width:2}},{size:80,stroke:n,grid:{show:"overview"!==e,stroke:t,width:2}}]}},closeEditItem:function(e){this.editItem=!1,(null!==this.graphEndDateTime&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){var 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){var t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){var e=this;return{hooks:{draw:function(t){var n=t.ctx,i=t.bbox,a=t.valToPos(t.scales.y.min,"y",!0),s=t.valToPos(t.scales.y.max,"y",!0),l=t.valToPos(e.limitsValues[0],"y",!0),o=t.valToPos(e.limitsValues[1],"y",!0),r=t.valToPos(e.limitsValues[2],"y",!0),c=t.valToPos(e.limitsValues[3],"y",!0);if(n.save(),n.beginPath(),n.fillStyle="rgba(255,0,0,0.15)",t.scales.y.min<e.limitsValues[0]){var u=l<s?s:l;n.fillRect(i.left,l,i.width,a-u)}if(t.scales.y.max>e.limitsValues[3]){var d=a<c?a:c;n.fillRect(i.left,s,i.width,d-s)}if(n.fillStyle="rgba(255,255,0,0.15)",t.scales.y.min<e.limitsValues[1]&&t.scales.y.max>e.limitsValues[0]){var m=o<s?s:o;n.fillRect(i.left,m,i.width,l-m)}if(t.scales.y.max>e.limitsValues[2]&&t.scales.y.min<e.limitsValues[3]){var h=a<c?a:c,p=a<r?a:r;n.fillRect(i.left,h,i.width,p-h)}if(n.fillStyle="rgba(0,255,0,0.15)",4==e.limitsValues.length){if(t.scales.y.min<e.limitsValues[2]&&t.scales.y.max>e.limitsValues[1]){var v=r<s?s:r,f=a<o?a:o;n.fillRect(i.left,v,i.width,f-v)}}else{var A=t.valToPos(e.limitsValues[4],"y",!0),g=t.valToPos(e.limitsValues[5],"y",!0);if(t.scales.y.min<e.limitsValues[4]&&t.scales.y.max>e.limitsValues[1]){var _=A<s?s:A;n.fillRect(i.left,_,i.width,o-_)}if(t.scales.y.max>e.limitsValues[5]&&t.scales.y.min<e.limitsValues[2]){var y=a<r?a:r,C=a<g?a:g;n.fillRect(i.left,y,i.width,C-y)}n.fillStyle="rgba(0,0,255,0.15)";var b=g<s?s:g,w=a<A?a:A;n.fillRect(i.left,b,i.width,w-b)}n.stroke(),n.restore()}}}},changeItem:function(e){var t=this;this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((function(){t.addItems([t.selectedItem])}))},addItems:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CONVERTED",a=(0,c.Z)(e);try{for(a.s();!(t=a.n()).done;){var s=t.value;s.valueType||(s.valueType=i),void 0===s.color&&(s.color=this.colors[this.colorIndex]),void 0===s.limits?s.limits=[]:s.limits.length>0&&(this.limitsValues=s.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(s);var l=this.data.length;this.graph.addSeries({spanGaps:!0,item:s,label:this.formatLabel(s),stroke:function(e,t){return n.items[t-1].color},value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null===t?"--":t.toFixed(2)}},l),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:function(e,t){return n.items[t-1].color}},l);var o=Array(this.data[0].length);this.data.splice(l,0,o),this.indexes[this.subscriptionKey(s)]=l}}catch(r){a.e(r)}finally{a.f()}this.addItemsToSubscription(e)},addItemsToSubscription:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items,n=this.startTime;this.graphStartDateTime&&(n=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(i){i&&OpenC3Auth.setTokens(),e.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t.map(e.subscriptionKey),start_time:n,end_time:e.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);var t,n=(0,c.Z)(e.map(this.subscriptionKey));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=this.reorderIndexes(i);this.colors.unshift(this.graph.series[a].stroke),this.items.splice(a-1,1),this.data.splice(a,1),this.graph.delSeries(a),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(a),this.overview.setData(this.data))}}catch(s){n.e(s)}finally{n.f()}},removeItemsFromSubscription:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items;this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){var 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(var t=0;t<e.length;t++){var n=e[t].__time/1e9,i=e[0].length;if(0==i||n>e[0][i-1]){for(var a=0;a<this.data.length;a++)this.data[a].push(null);this.set_data_at_index(this.data[0].length-1,n,e[t])}else{var s=Y()(this.data[0],n,this.bs_comparator);if(s>=0)this.set_data_at_index(s,n,e[t]);else{for(var l=-s-1,o=0;o<this.data.length;o++)this.data[o].splice(l,0,null);this.set_data_at_index(l,n,e[t])}}}if(null===this.startTime){var r=1e9*this.data[0][0];this.$emit("started",r)}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(var i=0,a=Object.entries(n);i<a.length;i++){var s=(0,x.Z)(a[i],2),l=s[0],o=s[1];if("time"!=l){var r=this.indexes[l];if(r){var u=this.data[r];if(o.raw)u[e]=null;else if("string"===typeof o){if(u[e]=null,!l.includes("__RAW")){var d,m=(0,c.Z)(this.items);try{for(m.s();!(d=m.n()).done;){var h=d.value;if(this.subscriptionKey(h)===l){this.selectedItem=h;break}}}catch(p){m.e(p)}finally{m.f()}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else u[e]=o}}}},subscriptionKey:function(e){var t="".concat(e.reduced,"__TLM__").concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType);return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(t+="__".concat(e.reducedType)),t}}},q=B,X=(n(6622),n(1541),(0,G.Z)(q,b,w,!1,null,"aeb903fe",null)),j=X.exports,K=(n(4908),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"),t("span",[e._v("Open Configuration")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),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":function(e,t){return t.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(i)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),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)}})]),t("v-row",[t("v-btn",{attrs:{type:"submit",color:"success","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")]),t("v-spacer"),t("v-btn",{attrs:{color:"primary","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")])],1)],1)])],1)])],1)}),J=[],Q={props:{tool:String,value:Boolean},data:function(){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:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new C).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to OpenC3. ".concat(t))}))},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){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.selectedItem.config===e.config&&(t.selectedItem=null),t.configs.splice(t.configs.indexOf(e),1),(new C).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}},ee=Q,te=(0,G.Z)(ee,K,J,!1,null,"88421d46",null),ne=te.exports,ie=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"),t("span",[e._v("Save Configuration")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),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":function(e,t){return t.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(i)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),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),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)}})]),t("v-row",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),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(" Ok ")])],1)],1)])],1)])],1)},ae=[],se={props:{tool:String,value:Boolean},data:function(){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:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new C).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to OpenC3. ".concat(t))}))},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){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.configName===e.config&&(t.selectedItem=null,t.configName=""),t.configs.splice(t.configs.indexOf(e.config),1),(new C).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}},le=se,oe=(0,G.Z)(le,ie,ae,!1,null,null,null),re=oe.exports,ce=(n(4115),n(634),function(){var e=this,t=e._self._c;return t("v-container",{staticClass:"c-chooser px-0"},[t("v-row",[t("v-col",{attrs:{cols:e.colSize,"data-test":"select-target"}},[t("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",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),t("v-col",{attrs:{cols:e.colSize,"data-test":"select-packet"}},[t("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",disabled:e.packetsDisabled||e.buttonDisabled,items:e.packetNames,"item-text":"label","item-value":"value"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(t){e.selectedPacketName=t},expression:"selectedPacketName"}})],1),e.chooseItem&&!e.buttonDisabled?t("v-col",{attrs:{cols:e.colSize,"data-test":"select-item"}},[t("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.itemNames,"item-text":"label","item-value":"value"},on:{change:function(t){return e.itemNameChanged(t)}},model:{value:e.selectedItemName,callback:function(t){e.selectedItemName=t},expression:"selectedItemName"}})],1):e._e(),e.buttonText?t("v-col",{attrs:{cols:e.colSize}},[t("v-btn",{attrs:{disabled:e.buttonDisabled,block:"",color:"primary","data-test":"select-send"},on:{click:e.buttonPressed}},[e._v(" "+e._s(e.actualButtonText)+" ")])],1):e._e()],1),e.selectTypes?t("v-row",[t("v-col",{attrs:{cols:e.colSize,"data-test":"data-type"}},[t("v-autocomplete",{attrs:{label:"Value Type","hide-details":"",dense:"",items:e.valueTypes},model:{value:e.selectedValueType,callback:function(t){e.selectedValueType=t},expression:"selectedValueType"}})],1),t("v-col",{attrs:{cols:e.colSize,"data-test":"reduced"}},[t("v-autocomplete",{attrs:{label:"Reduced","hide-details":"",dense:"",items:e.reductionModes},model:{value:e.selectedReduced,callback:function(t){e.selectedReduced=t},expression:"selectedReduced"}})],1),t("v-col",{attrs:{cols:e.colSize,"data-test":"reduced-type"}},[t("v-autocomplete",{attrs:{label:"Reduced Type","hide-details":"",dense:"",disabled:"DECOM"===e.selectedReduced,items:e.reducedTypes},model:{value:e.selectedReducedType,callback:function(t){e.selectedReducedType=t},expression:"selectedReducedType"}})],1),t("v-col",{attrs:{cols:e.colSize}})],1):e._e(),t("v-row",{staticClass:"pt-1",attrs:{"no-gutters":""}},[e.hazardous?t("v-col",{staticClass:"openc3-yellow",staticStyle:{"white-space":"pre"},attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" (HAZARDOUS)")]):t("v-col",{staticStyle:{"white-space":"pre"},attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" ")])],1)],1)}),ue=[],de=(n(4870),n(3985),{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:function(e){return["cmd","tlm"].includes(e)}},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data:function(){var e,t,n;return{targetNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),packetNames:[],selectedPacketName:null===(t=this.initialPacketName)||void 0===t?void 0:t.toUpperCase(),itemNames:[],selectedItemName:null===(n=this.initialItemName)||void 0===n?void 0:n.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],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:function(){var e=this;this.internalDisabled=!0,this.api=new C,this.api.get_target_list().then((function(t){e.targetNames=t.flatMap((function(e){return"UNKNOWN"==e?[]:{label:e,value:e}})),e.allowAllTargets&&e.targetNames.unshift(e.ALL),e.selectedTargetName||(e.selectedTargetName=e.targetNames[0].value,e.targetNameChanged(e.selectedTargetName)),e.updatePackets(),e.unknown&&e.targetNames.push(e.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},targetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"49%",float:"left"}},packetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"50%",float:"right"}},colSize:function(){return!!this.vertical&&12}},watch:{mode:function(e,t){this.updatePackets(),this.itemNames=[]}},methods:{updatePackets:function(){var e=this;if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;var t="tlm"===this.mode?"get_all_telemetry_names":"get_all_command_names";this.api[t](this.selectedTargetName).then((function(t){e.packetNames=t.map((function(e){return{label:e,value:e}})),e.allowAll&&e.packetNames.unshift(e.ALL),e.selectedPacketName||(e.selectedPacketName=e.packetNames[0].value),e.packetNameChanged(e.selectedPacketName);e.packetNames.find((function(t){return t.value===e.selectedPacketName}));e.chooseItem&&e.updateItems(),e.internalDisabled=!1}))},updateItems:function(){var e=this;if("ALL"!==this.selectedPacketName){this.internalDisabled=!0;var t="tlm"===this.mode?"get_telemetry":"get_command";this.api[t](this.selectedTargetName,this.selectedPacketName).then((function(t){e.itemNames=t.items.map((function(e){return[{label:e.name,value:e.name,description:e.description}]})).reduce((function(e,t){return e.concat(t)}),[]),e.allowAll&&e.itemNames.unshift(e.ALL),e.selectedItemName||(e.selectedItemName=e.itemNames[0].value),e.description=e.itemNames[0].description,e.internalDisabled=!1,e.$emit("on-set",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:e.selectedItemName,valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){var t=this;if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;var n=this.packetNames.find((function(t){return e===t.value}));this.selectedPacketName=n.value;var i="tlm"===this.mode?"get_telemetry":"get_command";this.api[i](this.selectedTargetName,this.selectedPacketName).then((function(e){t.description=e.description,t.hazardous=e.hazardous}))}this.chooseItem?(this.selectedItemName="",this.updateItems()):this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(e){var t=this.itemNames.find((function(t){return e===t.value}));this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,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.selectedItemName,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(){var e=this;this.packetNames.forEach((function(t){if(t!==e.ALL){var n="tlm"===e.mode?"get_telemetry":"get_command";e.api[n](e.selectedTargetName,t.value).then((function(n){n.items.forEach((function(n){e.$emit("click",{targetName:e.selectedTargetName,packetName:t.value,itemName:n["name"],valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}))}}))},allPacketItems:function(){var e=this;this.itemNames.forEach((function(t){t!==e.ALL&&e.$emit("click",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:t.value,valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}}}),me=de,he=(n(6319),(0,G.Z)(me,ce,ue,!1,null,null,null)),pe=he.exports,ve=function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(n,i){return t("v-menu",{key:i,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(i){var a=i.on,s=i.attrs;return[t("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(n.label))}},"v-btn",s,!1),a),[t("span",{domProps:{textContent:e._s(n.label)}}),t("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[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,a){return[i.divider?t("v-divider"):t("v-list-item",{key:a,attrs:{disabled:i.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(n.label," ").concat(i.label))},on:{click:function(e){return i.command(i)}}},[i.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(t){e.$set(i,"checked",t)},expression:"option.checked"}})],1):e._e(),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),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)})),t("v-spacer"),t("v-toolbar-title",[e._v(e._s(e.title))]),t("v-spacer")],2)])},fe=[],Ae=(n(5940),n(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),ge=Ae,_e=(n(2916),(0,G.Z)(ge,ve,fe,!1,null,"2eb37f67",null)),ye=_e.exports,Ce=n(7955);function be(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/SettingsDialog.vue",t="70dfbad085f72194b9c723e79dc598ea30d6067c",n=new Function("return this")(),i="__coverage__",a={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:786}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:373},end:{line:1,column:666}},6:{start:{line:1,column:594},end:{line:1,column:630}},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:358},end:{line:1,column:359}},loc:{start:{line:1,column:372},end:{line:1,column:667}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:578},end:{line:1,column:579}},loc:{start:{line:1,column:593},end:{line:1,column:631}},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:"70dfbad085f72194b9c723e79dc598ea30d6067c"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return be=function(){return l},l}be(),be().s[0]++;var we=function(){be().f[0]++;var e=(be().s[1]++,this),t=(be().s[2]++,e._self._c);return be().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){be().f[1]++,be().s[4]++,e.show=t},expression:"show"}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("TlmGrapher Settings")]),t("v-spacer")],1),t("v-card",{staticClass:"pa-3"},[t("v-card-text",[e._l(e.settings,(function(n){return be().f[2]++,be().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){be().f[3]++,be().s[6]++,e.$set(n,"value",e._n(t))},expression:"item.value"}})],1)],1)})),t("v-row",[t("span",{staticClass:"red--text"},[e._v(" Increasing these values may cause issues ")])])],2)],1)],1)},xe=(be().s[7]++,[]),ke={Accept:"application/json"};(0,d.Z)((0,d.Z)({},ke),{},{"Content-Type":"application/json"});function Te(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/SettingsDialog.vue",t="2a6a925ee2a8659c7b7094fc9861b9d4a25006e7",n=new Function("return this")(),i="__coverage__",a={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"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return Te=function(){return l},l}Te();var Ne={props:{settings:{type:Object,required:!0},value:Boolean},data:function(){return Te().f[0]++,Te().s[0]++,{}},computed:{show:{get:function(){return Te().f[1]++,Te().s[1]++,this.value},set:function(e){Te().f[2]++,Te().s[2]++,this.$emit("input",e)}}},methods:{}},Ie=Ne,Se=(0,G.Z)(Ie,we,xe,!1,null,null,null),Me=Se.exports;function De(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",t="c091bc76f62ddcee81efb4a5f8dbb06e756208e0",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",statementMap:{0:{start:{line:12,column:27},end:{line:12,column:30}},1:{start:{line:23,column:4},end:{line:128,column:5}},2:{start:{line:47,column:16},end:{line:47,column:42}},3:{start:{line:54,column:16},end:{line:54,column:42}},4:{start:{line:66,column:16},end:{line:66,column:31}},5:{start:{line:76,column:16},end:{line:76,column:36}},6:{start:{line:83,column:16},end:{line:83,column:36}},7:{start:{line:90,column:16},end:{line:90,column:35}},8:{start:{line:100,column:16},end:{line:100,column:46}},9:{start:{line:110,column:29},end:{line:110,column:50}},10:{start:{line:115,column:29},end:{line:115,column:50}},11:{start:{line:120,column:29},end:{line:120,column:50}},12:{start:{line:125,column:29},end:{line:125,column:50}},13:{start:{line:131,column:4},end:{line:136,column:6}},14:{start:{line:139,column:4},end:{line:141,column:6}},15:{start:{line:140,column:6},end:{line:140,column:39}},16:{start:{line:142,column:27},end:{line:142,column:55}},17:{start:{line:144,column:4},end:{line:158,column:5}},18:{start:{line:149,column:6},end:{line:155,column:8}},19:{start:{line:156,column:11},end:{line:158,column:5}},20:{start:{line:157,column:6},end:{line:157,column:44}},21:{start:{line:162,column:6},end:{line:162,column:29}},22:{start:{line:163,column:6},end:{line:163,column:33}},23:{start:{line:164,column:6},end:{line:164,column:27}},24:{start:{line:167,column:6},end:{line:167,column:59}},25:{start:{line:170,column:6},end:{line:170,column:58}},26:{start:{line:173,column:6},end:{line:173,column:31}},27:{start:{line:176,column:6},end:{line:193,column:7}},28:{start:{line:177,column:8},end:{line:192,column:9}},29:{start:{line:185,column:10},end:{line:190,column:12}},30:{start:{line:191,column:10},end:{line:191,column:16}},31:{start:{line:194,column:6},end:{line:194,column:71}},32:{start:{line:195,column:6},end:{line:197,column:7}},33:{start:{line:196,column:8},end:{line:196,column:28}},34:{start:{line:200,column:17},end:{line:200,column:29}},35:{start:{line:201,column:6},end:{line:201,column:26}},36:{start:{line:202,column:6},end:{line:202,column:23}},37:{start:{line:203,column:6},end:{line:212,column:8}},38:{start:{line:204,column:20},end:{line:206,column:10}},39:{start:{line:207,column:8},end:{line:207,column:29}},40:{start:{line:208,column:8},end:{line:208,column:33}},41:{start:{line:209,column:8},end:{line:211,column:30}},42:{start:{line:210,column:10},end:{line:210,column:43}},43:{start:{line:215,column:18},end:{line:215,column:80}},44:{start:{line:216,column:6},end:{line:216,column:29}},45:{start:{line:217,column:6},end:{line:217,column:52}},46:{start:{line:218,column:6},end:{line:218,column:33}},47:{start:{line:220,column:6},end:{line:222,column:7}},48:{start:{line:221,column:8},end:{line:221,column:29}},49:{start:{line:226,column:6},end:{line:228,column:7}},50:{start:{line:227,column:8},end:{line:227,column:30}},51:{start:{line:229,column:6},end:{line:229,column:22}},52:{start:{line:232,column:6},end:{line:232,column:31}},53:{start:{line:233,column:6},end:{line:238,column:7}},54:{start:{line:235,column:10},end:{line:235,column:43}},55:{start:{line:241,column:6},end:{line:246,column:7}},56:{start:{line:243,column:10},end:{line:243,column:43}},57:{start:{line:251,column:6},end:{line:253,column:7}},58:{start:{line:252,column:8},end:{line:252,column:29}},59:{start:{line:256,column:21},end:{line:271,column:8}},60:{start:{line:258,column:24},end:{line:258,column:67}},61:{start:{line:259,column:25},end:{line:259,column:47}},62:{start:{line:260,column:8},end:{line:270,column:9}},63:{start:{line:272,column:6},end:{line:288,column:10}},64:{start:{line:275,column:10},end:{line:275,column:42}},65:{start:{line:276,column:10},end:{line:279,column:12}},66:{start:{line:282,column:10},end:{line:287,column:11}},67:{start:{line:283,column:12},end:{line:286,column:14}},68:{start:{line:291,column:6},end:{line:291,column:38}},69:{start:{line:292,column:6},end:{line:307,column:10}},70:{start:{line:295,column:10},end:{line:297,column:11}},71:{start:{line:296,column:12},end:{line:296,column:44}},72:{start:{line:300,column:10},end:{line:306,column:11}},73:{start:{line:301,column:12},end:{line:304,column:14}},74:{start:{line:305,column:12},end:{line:305,column:44}},75:{start:{line:310,column:6},end:{line:310,column:27}},76:{start:{line:311,column:6},end:{line:311,column:28}},77:{start:{line:312,column:21},end:{line:312,column:42}},78:{start:{line:313,column:6},end:{line:315,column:7}},79:{start:{line:314,column:8},end:{line:314,column:23}},80:{start:{line:316,column:6},end:{line:316,column:28}},81:{start:{line:317,column:19},end:{line:317,column:23}},82:{start:{line:318,column:6},end:{line:329,column:8}},83:{start:{line:319,column:23},end:{line:319,column:49}},84:{start:{line:320,column:8},end:{line:320,column:36}},85:{start:{line:321,column:8},end:{line:321,column:44}},86:{start:{line:322,column:8},end:{line:322,column:46}},87:{start:{line:323,column:8},end:{line:323,column:44}},88:{start:{line:324,column:8},end:{line:324,column:44}},89:{start:{line:325,column:8},end:{line:325,column:62}},90:{start:{line:326,column:8},end:{line:326,column:58}},91:{start:{line:327,column:8},end:{line:327,column:49}},92:{start:{line:328,column:8},end:{line:328,column:43}},93:{start:{line:330,column:6},end:{line:330,column:26}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:129,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:46,column:23},end:{line:46,column:24}},loc:{start:{line:46,column:29},end:{line:48,column:15}},line:46},2:{name:"(anonymous_2)",decl:{start:{line:53,column:23},end:{line:53,column:24}},loc:{start:{line:53,column:29},end:{line:55,column:15}},line:53},3:{name:"(anonymous_3)",decl:{start:{line:65,column:23},end:{line:65,column:24}},loc:{start:{line:65,column:29},end:{line:67,column:15}},line:65},4:{name:"(anonymous_4)",decl:{start:{line:75,column:23},end:{line:75,column:24}},loc:{start:{line:75,column:29},end:{line:77,column:15}},line:75},5:{name:"(anonymous_5)",decl:{start:{line:82,column:23},end:{line:82,column:24}},loc:{start:{line:82,column:29},end:{line:84,column:15}},line:82},6:{name:"(anonymous_6)",decl:{start:{line:89,column:23},end:{line:89,column:24}},loc:{start:{line:89,column:29},end:{line:91,column:15}},line:89},7:{name:"(anonymous_7)",decl:{start:{line:99,column:23},end:{line:99,column:24}},loc:{start:{line:99,column:29},end:{line:101,column:15}},line:99},8:{name:"(anonymous_8)",decl:{start:{line:110,column:18},end:{line:110,column:19}},loc:{start:{line:110,column:29},end:{line:110,column:50}},line:110},9:{name:"(anonymous_9)",decl:{start:{line:115,column:18},end:{line:115,column:19}},loc:{start:{line:115,column:29},end:{line:115,column:50}},line:115},10:{name:"(anonymous_10)",decl:{start:{line:120,column:18},end:{line:120,column:19}},loc:{start:{line:120,column:29},end:{line:120,column:50}},line:120},11:{name:"(anonymous_11)",decl:{start:{line:125,column:18},end:{line:125,column:19}},loc:{start:{line:125,column:29},end:{line:125,column:50}},line:125},12:{name:"(anonymous_12)",decl:{start:{line:130,column:11},end:{line:130,column:12}},loc:{start:{line:130,column:23},end:{line:159,column:3}},line:130},13:{name:"(anonymous_13)",decl:{start:{line:139,column:25},end:{line:139,column:26}},loc:{start:{line:139,column:41},end:{line:141,column:5}},line:139},14:{name:"(anonymous_14)",decl:{start:{line:161,column:18},end:{line:161,column:19}},loc:{start:{line:161,column:35},end:{line:165,column:5}},line:161},15:{name:"(anonymous_15)",decl:{start:{line:166,column:27},end:{line:166,column:28}},loc:{start:{line:166,column:44},end:{line:168,column:5}},line:166},16:{name:"(anonymous_16)",decl:{start:{line:169,column:27},end:{line:169,column:28}},loc:{start:{line:169,column:39},end:{line:171,column:5}},line:169},17:{name:"(anonymous_17)",decl:{start:{line:172,column:19},end:{line:172,column:20}},loc:{start:{line:172,column:33},end:{line:174,column:5}},line:172},18:{name:"(anonymous_18)",decl:{start:{line:175,column:13},end:{line:175,column:14}},loc:{start:{line:175,column:54},end:{line:198,column:5}},line:175},19:{name:"(anonymous_19)",decl:{start:{line:199,column:14},end:{line:199,column:15}},loc:{start:{line:199,column:26},end:{line:213,column:5}},line:199},20:{name:"(anonymous_20)",decl:{start:{line:203,column:21},end:{line:203,column:22}},loc:{start:{line:203,column:33},end:{line:212,column:7}},line:203},21:{name:"(anonymous_21)",decl:{start:{line:209,column:19},end:{line:209,column:20}},loc:{start:{line:209,column:25},end:{line:211,column:9}},line:209},22:{name:"(anonymous_22)",decl:{start:{line:214,column:16},end:{line:214,column:17}},loc:{start:{line:214,column:30},end:{line:223,column:5}},line:214},23:{name:"(anonymous_23)",decl:{start:{line:224,column:20},end:{line:224,column:21}},loc:{start:{line:224,column:32},end:{line:230,column:5}},line:224},24:{name:"(anonymous_24)",decl:{start:{line:231,column:17},end:{line:231,column:18}},loc:{start:{line:231,column:31},end:{line:239,column:5}},line:231},25:{name:"(anonymous_25)",decl:{start:{line:234,column:8},end:{line:234,column:9}},loc:{start:{line:234,column:14},end:{line:236,column:9}},line:234},26:{name:"(anonymous_26)",decl:{start:{line:240,column:12},end:{line:240,column:13}},loc:{start:{line:240,column:24},end:{line:247,column:5}},line:240},27:{name:"(anonymous_27)",decl:{start:{line:242,column:8},end:{line:242,column:9}},loc:{start:{line:242,column:14},end:{line:244,column:9}},line:242},28:{name:"(anonymous_28)",decl:{start:{line:248,column:18},end:{line:248,column:19}},loc:{start:{line:248,column:34},end:{line:254,column:5}},line:248},29:{name:"(anonymous_29)",decl:{start:{line:255,column:23},end:{line:255,column:24}},loc:{start:{line:255,column:39},end:{line:289,column:5}},line:255},30:{name:"(anonymous_30)",decl:{start:{line:256,column:46},end:{line:256,column:47}},loc:{start:{line:256,column:56},end:{line:271,column:7}},line:256},31:{name:"(anonymous_31)",decl:{start:{line:274,column:14},end:{line:274,column:15}},loc:{start:{line:274,column:28},end:{line:280,column:9}},line:274},32:{name:"(anonymous_32)",decl:{start:{line:281,column:15},end:{line:281,column:16}},loc:{start:{line:281,column:26},end:{line:288,column:9}},line:281},33:{name:"(anonymous_33)",decl:{start:{line:290,column:23},end:{line:290,column:24}},loc:{start:{line:290,column:39},end:{line:308,column:5}},line:290},34:{name:"(anonymous_34)",decl:{start:{line:294,column:14},end:{line:294,column:15}},loc:{start:{line:294,column:28},end:{line:298,column:9}},line:294},35:{name:"(anonymous_35)",decl:{start:{line:299,column:15},end:{line:299,column:16}},loc:{start:{line:299,column:26},end:{line:307,column:9}},line:299},36:{name:"(anonymous_36)",decl:{start:{line:309,column:4},end:{line:309,column:5}},loc:{start:{line:309,column:39},end:{line:331,column:5}},line:309},37:{name:"(anonymous_37)",decl:{start:{line:318,column:21},end:{line:318,column:22}},loc:{start:{line:318,column:41},end:{line:329,column:7}},line:318}},branchMap:{0:{loc:{start:{line:110,column:29},end:{line:110,column:50}},type:"binary-expr",locations:[{start:{line:110,column:29},end:{line:110,column:36}},{start:{line:110,column:40},end:{line:110,column:50}}],line:110},1:{loc:{start:{line:115,column:29},end:{line:115,column:50}},type:"binary-expr",locations:[{start:{line:115,column:29},end:{line:115,column:36}},{start:{line:115,column:40},end:{line:115,column:50}}],line:115},2:{loc:{start:{line:120,column:29},end:{line:120,column:50}},type:"binary-expr",locations:[{start:{line:120,column:29},end:{line:120,column:36}},{start:{line:120,column:40},end:{line:120,column:50}}],line:120},3:{loc:{start:{line:125,column:29},end:{line:125,column:50}},type:"binary-expr",locations:[{start:{line:125,column:29},end:{line:125,column:36}},{start:{line:125,column:40},end:{line:125,column:50}}],line:125},4:{loc:{start:{line:144,column:4},end:{line:158,column:5}},type:"if",locations:[{start:{line:144,column:4},end:{line:158,column:5}},{start:{line:156,column:11},end:{line:158,column:5}}],line:144},5:{loc:{start:{line:145,column:6},end:{line:147,column:29}},type:"binary-expr",locations:[{start:{line:145,column:6},end:{line:145,column:31}},{start:{line:146,column:6},end:{line:146,column:31}},{start:{line:147,column:6},end:{line:147,column:29}}],line:145},6:{loc:{start:{line:156,column:11},end:{line:158,column:5}},type:"if",locations:[{start:{line:156,column:11},end:{line:158,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:156},7:{loc:{start:{line:175,column:32},end:{line:175,column:52}},type:"default-arg",locations:[{start:{line:175,column:48},end:{line:175,column:52}}],line:175},8:{loc:{start:{line:177,column:8},end:{line:192,column:9}},type:"if",locations:[{start:{line:177,column:8},end:{line:192,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:177},9:{loc:{start:{line:178,column:10},end:{line:183,column:50}},type:"binary-expr",locations:[{start:{line:178,column:10},end:{line:178,column:48}},{start:{line:179,column:10},end:{line:179,column:48}},{start:{line:180,column:10},end:{line:180,column:44}},{start:{line:181,column:10},end:{line:181,column:46}},{start:{line:182,column:10},end:{line:182,column:42}},{start:{line:183,column:10},end:{line:183,column:50}}],line:178},10:{loc:{start:{line:195,column:6},end:{line:197,column:7}},type:"if",locations:[{start:{line:195,column:6},end:{line:197,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:195},11:{loc:{start:{line:220,column:6},end:{line:222,column:7}},type:"if",locations:[{start:{line:220,column:6},end:{line:222,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:220},12:{loc:{start:{line:251,column:6},end:{line:253,column:7}},type:"if",locations:[{start:{line:251,column:6},end:{line:253,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:251},13:{loc:{start:{line:282,column:10},end:{line:287,column:11}},type:"if",locations:[{start:{line:282,column:10},end:{line:287,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:282},14:{loc:{start:{line:295,column:10},end:{line:297,column:11}},type:"if",locations:[{start:{line:295,column:10},end:{line:297,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:295},15:{loc:{start:{line:300,column:10},end:{line:306,column:11}},type:"if",locations:[{start:{line:300,column:10},end:{line:306,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:300}},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},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0,0],6:[0,0],7:[0],8:[0,0],9:[0,0,0,0,0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0]},inputSourceMap:{version:3,sources:["TlmGrapher.vue"],names:[],mappings:";AAiKA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"TlmGrapher.vue",sourceRoot:"src/tools/TlmGrapher",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <div>\n <v-snackbar\n v-model="showAlert"\n top\n :type="alertType"\n :icon="alertType"\n :timeout="5000"\n >\n <v-icon> mdi-{{ alertType }} </v-icon>\n {{ alert }}\n <template v-slot:action="{ attrs }">\n <v-btn\n text\n v-bind="attrs"\n @click="\n () => {\n showAlert = false\n }\n "\n >\n Close\n </v-btn>\n </template>\n </v-snackbar>\n\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 class="px-1"\n justify="space-between"\n v-show="this.selectedGraphId !== null"\n >\n <v-col cols="11">\n <target-packet-item-chooser\n :initial-target-name="this.$route.params.target"\n :initial-packet-name="this.$route.params.packet"\n :initial-item-name="this.$route.params.item"\n @click="addItem"\n button-text="Add Item"\n choose-item\n select-types\n />\n </v-col>\n <v-col cols="1">\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 </v-col>\n </v-row>\n\n <div class="grid">\n <div\n class="item"\n v-for="graph in graphs"\n :key="graph"\n :id="`gridItem${graph}`"\n :ref="`gridItem${graph}`"\n >\n <div class="item-content">\n <graph\n :ref="`graph${graph}`"\n :id="graph"\n :state="state"\n :start-time="startTime"\n :selected-graph-id="selectedGraphId"\n :seconds-graphed="settings.secondsGraphed.value"\n :points-saved="settings.pointsSaved.value"\n :points-graphed="settings.pointsGraphed.value"\n :refresh-interval-ms="settings.refreshIntervalMs.value"\n @close-graph="() => closeGraph(graph)"\n @min-max-graph="() => minMaxGraph(graph)"\n @resize="() => resize()"\n @click="() => graphSelected(graph)"\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 :tool="toolName"\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 :tool="toolName"\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 Graph from \'@openc3/tool-common/src/components/Graph.vue\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/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 data() {\n return {\n alert: \'\',\n alertType: \'success\',\n showAlert: false,\n title: \'COSMOS Telemetry Grapher\',\n toolName: \'telemetry-grapher\',\n showOpenConfig: false,\n showSaveConfig: false,\n showSettingsDialog: false,\n grid: null,\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 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 },\n {\n label: \'Graph\',\n items: [\n {\n label: \'Add Graph\',\n icon: \'mdi-plus\',\n command: () => {\n this.addGraph()\n },\n },\n {\n divider: true,\n },\n {\n label: \'Start / Resume\',\n icon: \'mdi-play\',\n command: () => {\n this.state = \'start\'\n },\n },\n {\n label: \'Pause\',\n icon: \'mdi-pause\',\n command: () => {\n this.state = \'pause\'\n },\n },\n {\n label: \'Stop\',\n icon: \'mdi-stop\',\n command: () => {\n this.state = \'stop\'\n },\n },\n {\n divider: true,\n },\n {\n label: \'Settings\',\n icon: \'mdi-cog\',\n command: () => {\n this.showSettingsDialog = true\n },\n },\n ],\n },\n ],\n settings: {\n secondsGraphed: {\n title: \'Seconds Graphed\',\n value: 1000,\n rules: [(value) => !!value || \'Required\'],\n },\n pointsSaved: {\n title: \'Points Saved\',\n value: 1000000,\n rules: [(value) => !!value || \'Required\'],\n },\n pointsGraphed: {\n title: \'Points Graphed\',\n value: 1000,\n rules: [(value) => !!value || \'Required\'],\n },\n refreshIntervalMs: {\n title: \'Refresh Interval Ms\',\n value: 100,\n rules: [(value) => !!value || \'Required\'],\n },\n },\n }\n },\n 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 const previousConfig = this.getLocalStorageConfig()\n // If we\'re passed in the route then manually addItem\n 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 if (previousConfig) {\n this.openConfiguration(previousConfig)\n }\n },\n methods: {\n alertHandler: function (event) {\n this.alert = event.text\n this.alertType = event.type\n this.showAlert = true\n },\n setLocalStorageConfig: function (value) {\n localStorage[\'lastconfig__telemetry_grapher\'] = value\n },\n getLocalStorageConfig: function () {\n return localStorage[\'lastconfig__telemetry_grapher\']\n },\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.alertHandler({\n text:\n `Item ${newItem.targetName} ${newItem.packetName} ${newItem.itemName} ` +\n `with ${newItem.valueType} ${newItem.reduced} ${newItem.reducedType} already exists!`,\n type: \'error\',\n })\n return\n }\n }\n this.$refs[`graph${this.selectedGraphId}`][0].addItems([newItem])\n if (startGraphing === true) {\n this.state = \'start\'\n }\n },\n addGraph: function () {\n const id = this.counter\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 setTimeout(() => {\n this.grid.refreshItems().layout()\n }, MURRI_REFRESH_TIME)\n })\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 this.selectedGraphId = null\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 }\n },\n closeAllGraphs: function () {\n // Make a copy of this.graphs to iterate on since closeGraph modifies in place\n for (let graph of [...this.graphs]) {\n this.closeGraph(graph)\n }\n this.counter = 0\n },\n minMaxGraph: function (id) {\n this.selectedGraphId = id\n setTimeout(\n () => {\n this.grid.refreshItems().layout()\n },\n MURRI_REFRESH_TIME * 2 // Double the time since there is more animation\n )\n },\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 saveConfiguration: function (name) {\n const config = 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 return {\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 graphStartDateTime: vueGraph.graphStartDateTime,\n graphEndDateTime: vueGraph.graphEndDateTime,\n }\n })\n new OpenC3Api()\n .save_config(this.toolName, name, JSON.stringify(config))\n .then((response) => {\n this.setLocalStorageConfig(name)\n this.alertHandler({\n text: `Saved configuration: ${name}`,\n type: \'success\',\n })\n })\n .catch((error) => {\n if (error) {\n this.alertHandler({\n text: `Failed to save configuration: ${name}. ${error}`,\n type: \'error\',\n })\n }\n })\n },\n openConfiguration: function (name) {\n this.setLocalStorageConfig(name)\n new OpenC3Api()\n .load_config(this.toolName, name)\n .then((response) => {\n if (response) {\n this.loadConfiguration(response)\n }\n })\n .catch((error) => {\n if (error) {\n this.alertHandler({\n text: `Failed to open configuration: ${name}. ${error}`,\n type: \'error\',\n })\n this.setLocalStorageConfig(null)\n }\n })\n },\n async loadConfiguration(configStr) {\n this.closeAllGraphs()\n await this.$nextTick()\n const config = JSON.parse(configStr)\n for (let graph of config) {\n this.addGraph()\n }\n await this.$nextTick()\n const that = this\n config.forEach(function (graph, i) {\n let vueGraph = that.$refs[`graph${i}`][0]\n vueGraph.title = graph.title\n vueGraph.fullWidth = graph.fullWidth\n vueGraph.fullHeight = graph.fullHeight\n vueGraph.graphMinX = graph.graphMinX\n vueGraph.graphMaxX = graph.graphMaxX\n vueGraph.graphStartDateTime = graph.graphStartDateTime\n vueGraph.graphEndDateTime = graph.graphEndDateTime\n vueGraph.moveLegend(graph.legendPosition)\n vueGraph.addItems([...graph.items])\n })\n this.state = \'start\'\n },\n },\n}\n<\/script>\n\n<style lang="scss" scoped>\n.v-navigation-drawer {\n z-index: 2;\n}\n.theme--dark.v-navigation-drawer {\n background-color: var(--v-primary-darken2);\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:"c091bc76f62ddcee81efb4a5f8dbb06e756208e0"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return De=function(){return l},l}De();var Ee=(De().s[0]++,250),Ge={components:{Graph:j,OpenConfigDialog:ne,SaveConfigDialog:re,SettingsDialog:Me,TargetPacketItemChooser:pe,TopBar:ye},data:function(){var e=this;return De().f[0]++,De().s[1]++,{alert:"",alertType:"success",showAlert:!1,title:"COSMOS Telemetry Grapher",toolName:"telemetry-grapher",showOpenConfig:!1,showSaveConfig:!1,showSettingsDialog:!1,grid:null,state:"stop",startTime:null,graphs:[0],selectedGraphId:0,counter:1,menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){De().f[1]++,De().s[2]++,e.showOpenConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){De().f[2]++,De().s[3]++,e.showSaveConfig=!0}}]},{label:"Graph",items:[{label:"Add Graph",icon:"mdi-plus",command:function(){De().f[3]++,De().s[4]++,e.addGraph()}},{divider:!0},{label:"Start / Resume",icon:"mdi-play",command:function(){De().f[4]++,De().s[5]++,e.state="start"}},{label:"Pause",icon:"mdi-pause",command:function(){De().f[5]++,De().s[6]++,e.state="pause"}},{label:"Stop",icon:"mdi-stop",command:function(){De().f[6]++,De().s[7]++,e.state="stop"}},{divider:!0},{label:"Settings",icon:"mdi-cog",command:function(){De().f[7]++,De().s[8]++,e.showSettingsDialog=!0}}]}],settings:{secondsGraphed:{title:"Seconds Graphed",value:1e3,rules:[function(e){return De().f[8]++,De().s[9]++,De().b[0][0]++,!!e||(De().b[0][1]++,"Required")}]},pointsSaved:{title:"Points Saved",value:1e6,rules:[function(e){return De().f[9]++,De().s[10]++,De().b[1][0]++,!!e||(De().b[1][1]++,"Required")}]},pointsGraphed:{title:"Points Graphed",value:1e3,rules:[function(e){return De().f[10]++,De().s[11]++,De().b[2][0]++,!!e||(De().b[2][1]++,"Required")}]},refreshIntervalMs:{title:"Refresh Interval Ms",value:100,rules:[function(e){return De().f[11]++,De().s[12]++,De().b[3][0]++,!!e||(De().b[3][1]++,"Required")}]}}}},mounted:function(){De().f[12]++,De().s[13]++,this.grid=new Ce.Z(".grid",{dragEnabled:!0,layoutOnResize:!0,dragHandle:".v-system-bar"}),De().s[14]++,this.grid.on("move",(function(e){De().f[13]++,De().s[15]++,e.item.getGrid().synchronize()}));var e=(De().s[16]++,this.getLocalStorageConfig());De().s[17]++,De().b[5][0]++,this.$route.params.target&&(De().b[5][1]++,this.$route.params.packet)&&(De().b[5][2]++,this.$route.params.item)?(De().b[4][0]++,De().s[18]++,this.addItem({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase(),itemName:this.$route.params.item.toUpperCase(),valueType:"CONVERTED",reduced:"DECOM"})):(De().b[4][1]++,De().s[19]++,e?(De().b[6][0]++,De().s[20]++,this.openConfiguration(e)):De().b[6][1]++)},methods:{alertHandler:function(e){De().f[14]++,De().s[21]++,this.alert=e.text,De().s[22]++,this.alertType=e.type,De().s[23]++,this.showAlert=!0},setLocalStorageConfig:function(e){De().f[15]++,De().s[24]++,localStorage["lastconfig__telemetry_grapher"]=e},getLocalStorageConfig:function(){return De().f[16]++,De().s[25]++,localStorage["lastconfig__telemetry_grapher"]},graphSelected:function(e){De().f[17]++,De().s[26]++,this.selectedGraphId=e},addItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(De().b[7][0]++,!0);De().f[18]++,De().s[27]++;var n,i=(0,c.Z)(this.$refs["graph".concat(this.selectedGraphId)][0].items);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(De().s[28]++,De().b[9][0]++,e.targetName===a.targetName&&(De().b[9][1]++,e.packetName===a.packetName)&&(De().b[9][2]++,e.itemName===a.itemName)&&(De().b[9][3]++,e.valueType===a.valueType)&&(De().b[9][4]++,e.reduced===a.reduced)&&(De().b[9][5]++,e.reducedType===a.reducedType))return De().b[8][0]++,De().s[29]++,this.alertHandler({text:"Item ".concat(e.targetName," ").concat(e.packetName," ").concat(e.itemName," ")+"with ".concat(e.valueType," ").concat(e.reduced," ").concat(e.reducedType," already exists!"),type:"error"}),void De().s[30]++;De().b[8][1]++}}catch(s){i.e(s)}finally{i.f()}De().s[31]++,this.$refs["graph".concat(this.selectedGraphId)][0].addItems([e]),De().s[32]++,!0===t?(De().b[10][0]++,De().s[33]++,this.state="start"):De().b[10][1]++},addGraph:function(){De().f[19]++;var e=(De().s[34]++,this.counter);De().s[35]++,this.graphs.push(e),De().s[36]++,this.counter+=1,De().s[37]++,this.$nextTick((function(){var t=this;De().f[20]++;var n=(De().s[38]++,this.grid.add(this.$refs["gridItem".concat(e)],{active:!1}));De().s[39]++,this.grid.show(n),De().s[40]++,this.selectedGraphId=e,De().s[41]++,setTimeout((function(){De().f[21]++,De().s[42]++,t.grid.refreshItems().layout()}),Ee)}))},closeGraph:function(e){De().f[22]++;var t=(De().s[43]++,this.grid.getItems([document.getElementById("gridItem".concat(e))]));De().s[44]++,this.grid.remove(t),De().s[45]++,this.graphs.splice(this.graphs.indexOf(e),1),De().s[46]++,this.selectedGraphId=null,De().s[47]++,0===this.graphs.length?(De().b[11][0]++,De().s[48]++,this.startTime=null):De().b[11][1]++},closeAllGraphs:function(){De().f[23]++,De().s[49]++;for(var e=0,t=(0,r.Z)(this.graphs);e<t.length;e++){var n=t[e];De().s[50]++,this.closeGraph(n)}De().s[51]++,this.counter=0},minMaxGraph:function(e){var t=this;De().f[24]++,De().s[52]++,this.selectedGraphId=e,De().s[53]++,setTimeout((function(){De().f[25]++,De().s[54]++,t.grid.refreshItems().layout()}),2*Ee)},resize:function(){var e=this;De().f[26]++,De().s[55]++,setTimeout((function(){De().f[27]++,De().s[56]++,e.grid.refreshItems().layout()}),2*Ee)},graphStarted:function(e){De().f[28]++,De().s[57]++,null===this.startTime?(De().b[12][0]++,De().s[58]++,this.startTime=e):De().b[12][1]++},saveConfiguration:function(e){var t=this;De().f[29]++;var n=(De().s[59]++,this.grid.getItems().map((function(e){De().f[30]++;var n=(De().s[60]++,"graph".concat(e.getElement().id.substring(8))),i=(De().s[61]++,t.$refs[n][0]);return De().s[62]++,{items:i.items,title:i.title,fullWidth:i.fullWidth,fullHeight:i.fullHeight,graphMinX:i.graphMinX,graphMaxX:i.graphMaxX,legendPosition:i.legendPosition,graphStartDateTime:i.graphStartDateTime,graphEndDateTime:i.graphEndDateTime}})));De().s[63]++,(new C).save_config(this.toolName,e,JSON.stringify(n)).then((function(n){De().f[31]++,De().s[64]++,t.setLocalStorageConfig(e),De().s[65]++,t.alertHandler({text:"Saved configuration: ".concat(e),type:"success"})})).catch((function(n){De().f[32]++,De().s[66]++,n?(De().b[13][0]++,De().s[67]++,t.alertHandler({text:"Failed to save configuration: ".concat(e,". ").concat(n),type:"error"})):De().b[13][1]++}))},openConfiguration:function(e){var t=this;De().f[33]++,De().s[68]++,this.setLocalStorageConfig(e),De().s[69]++,(new C).load_config(this.toolName,e).then((function(e){De().f[34]++,De().s[70]++,e?(De().b[14][0]++,De().s[71]++,t.loadConfiguration(e)):De().b[14][1]++})).catch((function(n){De().f[35]++,De().s[72]++,n?(De().b[15][0]++,De().s[73]++,t.alertHandler({text:"Failed to open configuration: ".concat(e,". ").concat(n),type:"error"}),De().s[74]++,t.setLocalStorageConfig(null)):De().b[15][1]++}))},loadConfiguration:function(e){var t=this;return(0,o.Z)((0,l.Z)().mark((function n(){var i,a,s,o;return(0,l.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return De().f[36]++,De().s[75]++,t.closeAllGraphs(),De().s[76]++,n.next=6,t.$nextTick();case 6:De().s[77]++,i=JSON.parse(e),De().s[78]++,a=(0,c.Z)(i);try{for(a.s();!(s=a.n()).done;)s.value,De().s[79]++,t.addGraph()}catch(l){a.e(l)}finally{a.f()}return De().s[80]++,n.next=13,t.$nextTick();case 13:De().s[81]++,o=t,De().s[82]++,i.forEach((function(e,t){De().f[37]++;var n=(De().s[83]++,o.$refs["graph".concat(t)][0]);De().s[84]++,n.title=e.title,De().s[85]++,n.fullWidth=e.fullWidth,De().s[86]++,n.fullHeight=e.fullHeight,De().s[87]++,n.graphMinX=e.graphMinX,De().s[88]++,n.graphMaxX=e.graphMaxX,De().s[89]++,n.graphStartDateTime=e.graphStartDateTime,De().s[90]++,n.graphEndDateTime=e.graphEndDateTime,De().s[91]++,n.moveLegend(e.legendPosition),De().s[92]++,n.addItems((0,r.Z)(e.items))})),De().s[93]++,t.state="start";case 18:case"end":return n.stop()}}),n)})))()}}},Oe=Ge,Re=(n(7753),(0,G.Z)(Oe,a,s,!1,null,"6c76d08a",null)),Le=Re.exports},5413:function(e,t,n){"use strict";n.r(t);var i=n(3467),a=n.n(i),s=n(8715),l=n.n(s),o=l()(a());o.push([e.id,".uplot.side-legend{display:flex;width:auto}.uplot.side-legend .u-wrap{flex:none}.uplot.side-legend .u-legend{text-align:left;margin-left:0;width:220px}.uplot.side-legend .u-legend,.uplot.side-legend .u-legend td,.uplot.side-legend .u-legend th,.uplot.side-legend .u-legend tr{display:revert}.uplot.left-legend .u-legend{order:-1}.uplot.top-legend{display:flex;flex-direction:column}.uplot.top-legend .u-legend{order:-1}",""]),t["default"]=o},5874:function(e,t,n){"use strict";n.r(t);var i=n(3467),a=n.n(i),s=n(8715),l=n.n(s),o=l()(a());o.push([e.id,"#chart[data-v-aeb903fe]{background-color:var(--v-tertiary-darken2)}#chart[data-v-aeb903fe] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),t["default"]=o},2695:function(e,t,n){"use strict";n.r(t);var i=n(3467),a=n.n(i),s=n(8715),l=n.n(s),o=l()(a());o.push([e.id,".row+.row{margin-top:0}",""]),t["default"]=o},3535:function(e,t,n){"use strict";n.r(t);var i=n(3467),a=n.n(i),s=n(8715),l=n.n(s),o=l()(a());o.push([e.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),t["default"]=o},6730:function(e,t,n){"use strict";n.r(t);var i=n(3467),a=n.n(i),s=n(8715),l=n.n(s),o=l()(a());o.push([e.id,".v-navigation-drawer[data-v-6c76d08a]{z-index:2}.theme--dark.v-navigation-drawer[data-v-6c76d08a]{background-color:var(--v-primary-darken2)}.grid[data-v-6c76d08a]{position:relative}.item[data-v-6c76d08a]{position:absolute;z-index:1}.item.muuri-item-dragging[data-v-6c76d08a]{z-index:3}.item.muuri-item-releasing[data-v-6c76d08a]{z-index:2}.item.muuri-item-hidden[data-v-6c76d08a]{z-index:0}.item-content[data-v-6c76d08a]{position:relative;cursor:pointer;border-radius:6px;margin:5px}.pulse[data-v-6c76d08a]{-webkit-animation:pulse-6c76d08a 1s infinite;animation:pulse-6c76d08a 1s infinite}@-webkit-keyframes pulse-6c76d08a{0%{opacity:1}50%{opacity:.5}}@keyframes pulse-6c76d08a{0%{opacity:1}50%{opacity:.5}}",""]),t["default"]=o},6622:function(e,t,n){var i=n(5413);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("3dbb5c0e",i,!0,{sourceMap:!1,shadowMode:!1})},1541:function(e,t,n){var i=n(5874);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("52b9ffcc",i,!0,{sourceMap:!1,shadowMode:!1})},6319:function(e,t,n){var i=n(2695);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("9e0561c2",i,!0,{sourceMap:!1,shadowMode:!1})},2916:function(e,t,n){var i=n(3535);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("5f049f38",i,!0,{sourceMap:!1,shadowMode:!1})},7753:function(e,t,n){var i=n(6730);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("504010f2",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=408.js.map
|