openc3-cosmos-tool-tlmgrapher 5.8.1 → 5.9.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/js/388.js +2 -0
- data/tools/tlmgrapher/js/388.js.map +1 -0
- data/tools/tlmgrapher/js/731.js +2 -0
- data/tools/tlmgrapher/js/731.js.map +1 -0
- data/tools/tlmgrapher/js/739.js +1 -1
- data/tools/tlmgrapher/js/739.js.map +1 -1
- data/tools/tlmgrapher/js/app.js +1 -1
- data/tools/tlmgrapher/js/app.js.map +1 -1
- metadata +6 -4
- data/tools/tlmgrapher/js/35.js +0 -2
- data/tools/tlmgrapher/js/35.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: c89170f6480a3dc2d6fb9609f2400bb0ad44b775f8a65ae571c2ebc30d79c048
|
4
|
+
data.tar.gz: 001fbbc5d5b6c2eeae6d1a0cbc903745fe991025e42f1636c0e1b17e7bb3ff9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a33506fe5a41ee24f3a07b8171446b993c6534da04440dbb5586ef9e5e40d4be26159c729eaf0a285783cb190be5245f9c3a751d11557b57c081b9a99cc4ac3
|
7
|
+
data.tar.gz: 17fd07f6071aabeb2225c830e08dd970e7af5f086b69e0bffddeae942785c6f4b3b2939630f788e2199d90898396bf5c9c853fcbdb8f7e5dfe3585ec07db99c6
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";(self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]=self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]||[]).push([[388],{8388:function(t,e,r){r.r(e),r.d(e,{default:function(){return s}});var o=function(){var t=this,e=t._self._c;return e("v-card",[e("v-card-title",[t._v("404 Not Found Error")]),e("v-card-text",[t._v("The requested URL "),e("code",[t._v(t._s(t.$route.fullPath))]),t._v(" was not routable.")])],1)},l=[],u=r(3483),n={},c=(0,u.Z)(n,o,l,!1,null,null,null),s=c.exports}}]);
|
2
|
+
//# sourceMappingURL=388.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"js/388.js","mappings":"wMAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,SAAS,CAACA,EAAG,eAAe,CAACF,EAAII,GAAG,yBAAyBF,EAAG,cAAc,CAACF,EAAII,GAAG,sBAAsBF,EAAG,OAAO,CAACF,EAAII,GAAGJ,EAAIK,GAAGL,EAAIM,OAAOC,aAAaP,EAAII,GAAG,yBAAyB,EACnQ,EACII,EAAkB,G,UCDlBC,EAAS,CAAC,EAKVC,GAAY,OACdD,EACAV,EACAS,GACA,EACA,KACA,KACA,MAIF,EAAeE,EAAiB,O","sources":["webpack://@openc3/cosmos-tool-tlmgrapher/../openc3-tool-common/src/components/NotFound.vue","webpack://@openc3/cosmos-tool-tlmgrapher/../openc3-tool-common/src/components/NotFound.vue?4849"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-card',[_c('v-card-title',[_vm._v(\"404 Not Found Error\")]),_c('v-card-text',[_vm._v(\"The requested URL \"),_c('code',[_vm._v(_vm._s(_vm.$route.fullPath))]),_vm._v(\" was not routable.\")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./NotFound.vue?vue&type=template&id=163f57b0&\"\nvar script = {}\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","_v","_s","$route","fullPath","staticRenderFns","script","component"],"sourceRoot":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]=self["webpackChunk_openc3_cosmos_tool_tlmgrapher"]||[]).push([[731],{4731:function(e,t,n){"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",t="10be7d76f8413562d6d0ab43e6415eb83fe4b88e",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:6,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:5,column:1739}},4:{start:{line:1,column:248},end:{line:1,column:261}},5:{start:{line:2,column:20},end:{line:2,column:39}},6:{start:{line:4,column:20},end:{line:4,column:39}},7:{start:{line:5,column:183},end:{line:5,column:961}},8:{start:{line:5,column:720},end:{line:5,column:741}},9:{start:{line:5,column:764},end:{line:5,column:786}},10:{start:{line:5,column:802},end:{line:5,column:814}},11:{start:{line:5,column:830},end:{line:5,column:849}},12:{start:{line:5,column:866},end:{line:5,column:885}},13:{start:{line:5,column:901},end:{line:5,column:925}},14:{start:{line:5,column:1145},end:{line:5,column:1167}},15:{start:{line:5,column:1385},end:{line:5,column:1407}},16:{start:{line:5,column:1673},end:{line:5,column:1699}},17:{start:{line:7,column:22},end:{line:7,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:6,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:232},end:{line:1,column:233}},loc:{start:{line:1,column:247},end:{line:1,column:262}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:1496},end:{line:1,column:1497}},loc:{start:{line:1,column:1502},end:{line:3,column:19}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:3,column:272},end:{line:3,column:273}},loc:{start:{line:3,column:278},end:{line:5,column:19}},line:3},4:{name:"(anonymous_4)",decl:{start:{line:5,column:167},end:{line:5,column:168}},loc:{start:{line:5,column:182},end:{line:5,column:962}},line:5},5:{name:"(anonymous_5)",decl:{start:{line:5,column:714},end:{line:5,column:715}},loc:{start:{line:5,column:720},end:{line:5,column:741}},line:5},6:{name:"(anonymous_6)",decl:{start:{line:5,column:758},end:{line:5,column:759}},loc:{start:{line:5,column:764},end:{line:5,column:786}},line:5},7:{name:"(anonymous_7)",decl:{start:{line:5,column:796},end:{line:5,column:797}},loc:{start:{line:5,column:802},end:{line:5,column:814}},line:5},8:{name:"(anonymous_8)",decl:{start:{line:5,column:823},end:{line:5,column:824}},loc:{start:{line:5,column:830},end:{line:5,column:849}},line:5},9:{name:"(anonymous_9)",decl:{start:{line:5,column:859},end:{line:5,column:860}},loc:{start:{line:5,column:866},end:{line:5,column:885}},line:5},10:{name:"(anonymous_10)",decl:{start:{line:5,column:895},end:{line:5,column:896}},loc:{start:{line:5,column:901},end:{line:5,column:925}},line:5},11:{name:"(anonymous_11)",decl:{start:{line:5,column:1129},end:{line:5,column:1130}},loc:{start:{line:5,column:1144},end:{line:5,column:1168}},line:5},12:{name:"(anonymous_12)",decl:{start:{line:5,column:1369},end:{line:5,column:1370}},loc:{start:{line:5,column:1384},end:{line:5,column:1408}},line:5},13:{name:"(anonymous_13)",decl:{start:{line:5,column:1657},end:{line:5,column:1658}},loc:{start:{line:5,column:1672},end:{line:5,column:1700}},line:5}},branchMap:{0:{loc:{start:{line:5,column:969},end:{line:5,column:1208}},type:"cond-expr",locations:[{start:{line:5,column:990},end:{line:5,column:1199}},{start:{line:5,column:1200},end:{line:5,column:1208}}],line:5},1:{loc:{start:{line:5,column:1209},end:{line:5,column:1448}},type:"cond-expr",locations:[{start:{line:5,column:1230},end:{line:5,column:1439}},{start:{line:5,column:1440},end:{line:5,column:1448}}],line:5}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},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:"10be7d76f8413562d6d0ab43e6415eb83fe4b88e"},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 ze}}),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("v-expansion-panels",{staticStyle:{"margin-bottom":"5px"},model:{value:e.panel,callback:function(t){i().f[1]++,i().s[4]++,e.panel=t},expression:"panel"}},[t("v-expansion-panel",[t("v-expansion-panel-header",{staticStyle:{"z-index":"1"}}),t("v-expansion-panel-content",[t("v-card",[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",{staticStyle:{"padding-bottom":"0px"},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[2]++,i().s[5]++,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[3]++,i().s[6]++,e.state="pause"}}},[t("v-icon",{attrs:{large:""}},[e._v("mdi-pause")])],1)],1)],1)],1)],1)],1)],1),t("div",[t("div",{staticClass:"grid"},e._l(e.graphs,(function(n){return i().f[4]++,i().s[7]++,t("div",{key:n,ref:"gridItem".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[5]++,i().s[8]++,e.closeGraph(n)},"min-max-graph":function(){return i().f[6]++,i().s[9]++,e.minMaxGraph(n)},resize:function(){return i().f[7]++,i().s[10]++,e.resize()},pause:function(){return i().f[8]++,i().s[11]++,e.state="pause"},start:function(){return i().f[9]++,i().s[12]++,e.state="start"},click:function(){return i().f[10]++,i().s[13]++,e.graphSelected(n)},started:e.graphStarted}})],1)])})),0)]),e.showOpenConfig?(i().b[0][0]++,t("open-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.openConfiguration},model:{value:e.showOpenConfig,callback:function(t){i().f[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:{configKey:e.configKey},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(8188),n(1939),n(3450),n(4769),n(9529),n(1235),n(6710),n(7950),n(5940),n(6259)),d=n(6964),m=n(426),h=n(7871),p=n(2261),v=(n(1372),n(1245),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(2529),n(6943),n(9224),n(1157),n(7233),n(8673),n(5734),n(8233),n(9644)),f=n.n(v),g=n(4091),A=new g["default"],y=f().create({baseURL:location.origin,timeout:6e4,params:{}});y.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,i,a,s;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 l="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(l+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(l+="".concat(e.response.config.data," ")),null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.message)l+="".concat(e.response.data.message);else if(null!==(a=e.response)&&void 0!==a&&null!==(a=a.data)&&void 0!==a&&a.exception)l+="".concat(e.response.data.exception);else if(null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&null!==(s=s.error)&&void 0!==s&&s.message)e.response.data.error.class&&(l+="".concat(e.response.data.error.class," ")),l+="".concat(e.response.data.error.message);else{var o;l+="".concat(null===(o=e.response)||void 0===o?void 0:o.data)}throw A.$notify&&A.$notify.serious({title:"Network error",body:l}),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,u=arguments;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=u.length>2&&void 0!==u[2]?u[2]:{},a=u.length>3&&void 0!==u[3]?u[3]:{},s=u.length>4&&void 0!==u[4]?u[4]:6e4,e.prev=3,e.next=6,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 6:o=e.sent,o&&OpenC3Auth.setTokens(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),OpenC3Auth.login();case 13:return this.id=this.id+1,e.prev=14,i["scope"]=window.openc3Scope,e.next=18,_.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),timeout:s});case 18:return r=e.sent,e.abrupt("return",r.data.result);case 22:throw e.prev=22,e.t1=e["catch"](14),c=new Error,e.t1.response?(c.name=e.t1.response.data.error.data.class,c.message=e.t1.response.data.error.data.message):e.t1.request?(c.name="Request error",c.message="Request error, no response received"):c.name="Unknown error",c;case 27:case"end":return e.stop()}}),e,this,[[3,10],[14,22]])})));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_target_names",value:function(){return this.exec("get_target_names",[])}},{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},{},1e4);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:"build_command",value:function(e,t,n){return void 0===t?this.exec("build_command",e):this._cmd("build_command",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={data:{configKey:""},methods:{openConfigBase:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;localStorage["lastconfig__".concat(this.configKey)]=e,(new C).load_config(this.configKey,e).then((function(a){a?(t.$notify.normal({title:"Loading configuration",body:e}),i&&i(JSON.parse(a)),n||t.$router.currentRoute.fullPath.includes(e)||t.$router.push({query:{config:e}}),localStorage["lastconfig__".concat(t.configKey)]=e):(t.$notify.caution({title:"Unknown configuration",body:e}),localStorage.removeItem("lastconfig__".concat(t.configKey)))})).catch((function(n){n&&t.$notify.serious({title:"Error opening configuration: ".concat(e),body:n}),localStorage.removeItem("lastconfig__".concat(t.configKey))}))},saveConfigBase:function(e,t){var n=this;(new C).save_config(this.configKey,e,JSON.stringify(t)).then((function(){n.$notify.normal({title:"Saved configuration",body:e}),localStorage["lastconfig__".concat(n.configKey)]=e})).catch((function(t){t&&n.$notify.serious({title:"Error saving configuration: ".concat(e),body:t}),localStorage.removeItem("lastconfig__".concat(n.configKey))}))},resetConfigBase:function(){localStorage.removeItem("lastconfig__".concat(this.configKey)),"/"!==this.$router.currentRoute.fullPath&&this.$router.replace(this.$router.currentRoute.path),this.$router.go()}}},x=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=[],k=n(7302),T=(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)}),N=[],I=n(1200),S=n(247),M=n(6700),D=n(3053),E={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,I.Z)((0,S.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,I.Z)((0,S.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,M.Z)(this.dateTime/1e6);this.date=(0,D.Z)(e,"yyyy-MM-dd"),this.time=(0,D.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)}}},G=E,R=n(3483),O=(0,R.Z)(G,T,N,!1,null,null,null),$=O.exports,z=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"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)},P=[],L=(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,k.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)})))()}}),Z=L,U=(0,R.Z)(Z,z,P,!1,null,null,null),H=U.exports,V=n(5685),Y=n(6522),W=n.n(Y),K=n(7146);K.ju.staleThreshold=10;var B=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&&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=K.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(8514);var F={components:{DateTimeChooser:$,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 B,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,k.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 V.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,D.Z)((0,M.Z)(1e3*t),"yyyy-MM-dd HH:mm:ss")}}].concat((0,r.Z)(n)),cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:function(t,n,i){return function(n){"pause"===e.state&&0===t.select.width&&e.$emit("start"),i(n)}}}},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}}],setSelect:[function(t){"start"===e.state&&t.select.width>0&&e.$emit("pause")}],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 V.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){"start"===e.state&&t.select.width>0&&e.$emit("pause"),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 V.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(){var e=this;if(this.editGraph=!1,this.needToUpdate){if(null==this.subscription)this.startGraph();else{var t=JSON.parse(JSON.stringify(this.items));this.removeItems(t),setTimeout((function(){e.addItems(t)}),0)}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),V.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]:V.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 g=t.valToPos(e.limitsValues[4],"y",!0),A=t.valToPos(e.limitsValues[5],"y",!0);if(t.scales.y.min<e.limitsValues[4]&&t.scales.y.max>e.limitsValues[1]){var y=g<s?s:g;n.fillRect(i.left,y,i.width,o-y)}if(t.scales.y.max>e.limitsValues[5]&&t.scales.y.min<e.limitsValues[2]){var _=a<r?a:r,C=a<A?a:A;n.fillRect(i.left,_,i.width,C-_)}n.fillStyle="rgba(0,0,255,0.15)";var b=A<s?s:A,x=a<g?a:g;n.fillRect(i.left,b,i.width,x-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()}1===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},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=W()(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,k.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=F,X=(n(4492),n(3647),(0,R.Z)(q,x,w,!1,null,"59b314de",null)),j=X.exports,J=(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)}})])],1)]),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)}),Q=[],ee={props:{configKey: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.configKey).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.configKey,e.config),localStorage["lastconfig__".concat(t.configKey)]===e.config&&localStorage.removeItem("lastconfig__".concat(t.configKey))})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}},te=ee,ne=(0,R.Z)(te,J,Q,!1,null,null,null),ie=ne.exports,ae=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)}})])],1)]),t("v-card-actions",[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)},se=[],le={props:{configKey: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.configKey).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.configKey,e.config),localStorage["lastconfig__".concat(t.configKey)]===e.config&&localStorage.removeItem("lastconfig__".concat(t.configKey))})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}},oe=le,re=(0,R.Z)(oe,ae,se,!1,null,null,null),ce=re.exports,ue=(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)}),de=[],me=(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_names().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.selectedPacketName=null,this.selectedItemName=null,this.updatePackets()}},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.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})}))}}}),he=me,pe=(n(9841),(0,R.Z)(he,ue,de,!1,null,null,null)),ve=pe.exports,fe=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)])},ge=[],Ae=(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}}),ye=Ae,_e=(n(4888),(0,R.Z)(ye,fe,ge,!1,null,"2eb37f67",null)),Ce=_e.exports,be=n(7955);function xe(){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 xe=function(){return l},l}xe(),xe().s[0]++;var we=function(){xe().f[0]++;var e=(xe().s[1]++,this),t=(xe().s[2]++,e._self._c);return xe().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){xe().f[1]++,xe().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 xe().f[2]++,xe().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){xe().f[3]++,xe().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)},ke=(xe().s[7]++,[]),Te={Accept:"application/json"};(0,d.Z)((0,d.Z)({},Te),{},{"Content-Type":"application/json"});function Ne(){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 Ne=function(){return l},l}Ne();var Ie={props:{settings:{type:Object,required:!0},value:Boolean},data:function(){return Ne().f[0]++,Ne().s[0]++,{}},computed:{show:{get:function(){return Ne().f[1]++,Ne().s[1]++,this.value},set:function(e){Ne().f[2]++,Ne().s[2]++,this.$emit("input",e)}}},methods:{}},Se=Ie,Me=(0,R.Z)(Se,we,ke,!1,null,null,null),De=Me.exports;function Ee(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",t="7eb93bf4f9837a9a1d2dac1aae856d7e1dadcf67",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:24,column:4},end:{line:134,column:5}},2:{start:{line:46,column:16},end:{line:46,column:42}},3:{start:{line:53,column:16},end:{line:53,column:42}},4:{start:{line:60,column:16},end:{line:60,column:38}},5:{start:{line:72,column:16},end:{line:72,column:31}},6:{start:{line:82,column:16},end:{line:82,column:36}},7:{start:{line:89,column:16},end:{line:89,column:36}},8:{start:{line:96,column:16},end:{line:96,column:35}},9:{start:{line:106,column:16},end:{line:106,column:46}},10:{start:{line:116,column:29},end:{line:116,column:50}},11:{start:{line:121,column:29},end:{line:121,column:50}},12:{start:{line:126,column:29},end:{line:126,column:50}},13:{start:{line:131,column:29},end:{line:131,column:50}},14:{start:{line:137,column:4},end:{line:142,column:6}},15:{start:{line:145,column:4},end:{line:147,column:6}},16:{start:{line:146,column:6},end:{line:146,column:39}},17:{start:{line:148,column:27},end:{line:148,column:72}},18:{start:{line:150,column:4},end:{line:168,column:5}},19:{start:{line:151,column:6},end:{line:151,column:60}},20:{start:{line:154,column:9},end:{line:168,column:5}},21:{start:{line:159,column:6},end:{line:165,column:8}},22:{start:{line:166,column:11},end:{line:168,column:5}},23:{start:{line:167,column:6},end:{line:167,column:44}},24:{start:{line:172,column:6},end:{line:172,column:31}},25:{start:{line:175,column:6},end:{line:192,column:7}},26:{start:{line:176,column:8},end:{line:191,column:9}},27:{start:{line:184,column:10},end:{line:189,column:12}},28:{start:{line:190,column:10},end:{line:190,column:16}},29:{start:{line:193,column:6},end:{line:193,column:71}},30:{start:{line:194,column:6},end:{line:196,column:7}},31:{start:{line:195,column:8},end:{line:195,column:28}},32:{start:{line:199,column:17},end:{line:199,column:29}},33:{start:{line:200,column:6},end:{line:200,column:26}},34:{start:{line:201,column:6},end:{line:201,column:23}},35:{start:{line:202,column:6},end:{line:211,column:8}},36:{start:{line:203,column:20},end:{line:205,column:10}},37:{start:{line:206,column:8},end:{line:206,column:29}},38:{start:{line:207,column:8},end:{line:207,column:33}},39:{start:{line:208,column:8},end:{line:210,column:30}},40:{start:{line:209,column:10},end:{line:209,column:43}},41:{start:{line:214,column:18},end:{line:214,column:80}},42:{start:{line:215,column:6},end:{line:215,column:29}},43:{start:{line:216,column:6},end:{line:216,column:52}},44:{start:{line:217,column:6},end:{line:217,column:33}},45:{start:{line:219,column:6},end:{line:221,column:7}},46:{start:{line:220,column:8},end:{line:220,column:29}},47:{start:{line:225,column:6},end:{line:227,column:7}},48:{start:{line:226,column:8},end:{line:226,column:30}},49:{start:{line:228,column:6},end:{line:228,column:22}},50:{start:{line:231,column:6},end:{line:231,column:31}},51:{start:{line:232,column:6},end:{line:237,column:7}},52:{start:{line:234,column:10},end:{line:234,column:43}},53:{start:{line:240,column:6},end:{line:245,column:7}},54:{start:{line:242,column:10},end:{line:242,column:43}},55:{start:{line:250,column:6},end:{line:252,column:7}},56:{start:{line:251,column:8},end:{line:251,column:29}},57:{start:{line:255,column:6},end:{line:277,column:8}},58:{start:{line:256,column:8},end:{line:256,column:29}},59:{start:{line:257,column:8},end:{line:257,column:30}},60:{start:{line:258,column:8},end:{line:260,column:9}},61:{start:{line:259,column:10},end:{line:259,column:25}},62:{start:{line:261,column:8},end:{line:261,column:30}},63:{start:{line:262,column:21},end:{line:262,column:25}},64:{start:{line:263,column:8},end:{line:274,column:10}},65:{start:{line:264,column:25},end:{line:264,column:51}},66:{start:{line:265,column:10},end:{line:265,column:38}},67:{start:{line:266,column:10},end:{line:266,column:46}},68:{start:{line:267,column:10},end:{line:267,column:48}},69:{start:{line:268,column:10},end:{line:268,column:46}},70:{start:{line:269,column:10},end:{line:269,column:46}},71:{start:{line:270,column:10},end:{line:270,column:64}},72:{start:{line:271,column:10},end:{line:271,column:60}},73:{start:{line:272,column:10},end:{line:272,column:51}},74:{start:{line:273,column:10},end:{line:273,column:45}},75:{start:{line:275,column:8},end:{line:275,column:28}},76:{start:{line:276,column:8},end:{line:276,column:25}},77:{start:{line:280,column:21},end:{line:295,column:8}},78:{start:{line:282,column:24},end:{line:282,column:67}},79:{start:{line:283,column:25},end:{line:283,column:47}},80:{start:{line:284,column:8},end:{line:294,column:9}},81:{start:{line:296,column:6},end:{line:296,column:39}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:23,column:2},end:{line:23,column:3}},loc:{start:{line:23,column:9},end:{line:135,column:3}},line:23},1:{name:"(anonymous_1)",decl:{start:{line:45,column:23},end:{line:45,column:24}},loc:{start:{line:45,column:29},end:{line:47,column:15}},line:45},2:{name:"(anonymous_2)",decl:{start:{line:52,column:23},end:{line:52,column:24}},loc:{start:{line:52,column:29},end:{line:54,column:15}},line:52},3:{name:"(anonymous_3)",decl:{start:{line:59,column:23},end:{line:59,column:24}},loc:{start:{line:59,column:29},end:{line:61,column:15}},line:59},4:{name:"(anonymous_4)",decl:{start:{line:71,column:23},end:{line:71,column:24}},loc:{start:{line:71,column:29},end:{line:73,column:15}},line:71},5:{name:"(anonymous_5)",decl:{start:{line:81,column:23},end:{line:81,column:24}},loc:{start:{line:81,column:29},end:{line:83,column:15}},line:81},6:{name:"(anonymous_6)",decl:{start:{line:88,column:23},end:{line:88,column:24}},loc:{start:{line:88,column:29},end:{line:90,column:15}},line:88},7:{name:"(anonymous_7)",decl:{start:{line:95,column:23},end:{line:95,column:24}},loc:{start:{line:95,column:29},end:{line:97,column:15}},line:95},8:{name:"(anonymous_8)",decl:{start:{line:105,column:23},end:{line:105,column:24}},loc:{start:{line:105,column:29},end:{line:107,column:15}},line:105},9:{name:"(anonymous_9)",decl:{start:{line:116,column:18},end:{line:116,column:19}},loc:{start:{line:116,column:29},end:{line:116,column:50}},line:116},10:{name:"(anonymous_10)",decl:{start:{line:121,column:18},end:{line:121,column:19}},loc:{start:{line:121,column:29},end:{line:121,column:50}},line:121},11:{name:"(anonymous_11)",decl:{start:{line:126,column:18},end:{line:126,column:19}},loc:{start:{line:126,column:29},end:{line:126,column:50}},line:126},12:{name:"(anonymous_12)",decl:{start:{line:131,column:18},end:{line:131,column:19}},loc:{start:{line:131,column:29},end:{line:131,column:50}},line:131},13:{name:"(anonymous_13)",decl:{start:{line:136,column:11},end:{line:136,column:12}},loc:{start:{line:136,column:23},end:{line:169,column:3}},line:136},14:{name:"(anonymous_14)",decl:{start:{line:145,column:25},end:{line:145,column:26}},loc:{start:{line:145,column:41},end:{line:147,column:5}},line:145},15:{name:"(anonymous_15)",decl:{start:{line:171,column:19},end:{line:171,column:20}},loc:{start:{line:171,column:33},end:{line:173,column:5}},line:171},16:{name:"(anonymous_16)",decl:{start:{line:174,column:13},end:{line:174,column:14}},loc:{start:{line:174,column:54},end:{line:197,column:5}},line:174},17:{name:"(anonymous_17)",decl:{start:{line:198,column:14},end:{line:198,column:15}},loc:{start:{line:198,column:26},end:{line:212,column:5}},line:198},18:{name:"(anonymous_18)",decl:{start:{line:202,column:21},end:{line:202,column:22}},loc:{start:{line:202,column:33},end:{line:211,column:7}},line:202},19:{name:"(anonymous_19)",decl:{start:{line:208,column:19},end:{line:208,column:20}},loc:{start:{line:208,column:25},end:{line:210,column:9}},line:208},20:{name:"(anonymous_20)",decl:{start:{line:213,column:16},end:{line:213,column:17}},loc:{start:{line:213,column:30},end:{line:222,column:5}},line:213},21:{name:"(anonymous_21)",decl:{start:{line:223,column:20},end:{line:223,column:21}},loc:{start:{line:223,column:32},end:{line:229,column:5}},line:223},22:{name:"(anonymous_22)",decl:{start:{line:230,column:17},end:{line:230,column:18}},loc:{start:{line:230,column:31},end:{line:238,column:5}},line:230},23:{name:"(anonymous_23)",decl:{start:{line:233,column:8},end:{line:233,column:9}},loc:{start:{line:233,column:14},end:{line:235,column:9}},line:233},24:{name:"(anonymous_24)",decl:{start:{line:239,column:12},end:{line:239,column:13}},loc:{start:{line:239,column:24},end:{line:246,column:5}},line:239},25:{name:"(anonymous_25)",decl:{start:{line:241,column:8},end:{line:241,column:9}},loc:{start:{line:241,column:14},end:{line:243,column:9}},line:241},26:{name:"(anonymous_26)",decl:{start:{line:247,column:18},end:{line:247,column:19}},loc:{start:{line:247,column:34},end:{line:253,column:5}},line:247},27:{name:"(anonymous_27)",decl:{start:{line:254,column:23},end:{line:254,column:24}},loc:{start:{line:254,column:55},end:{line:278,column:5}},line:254},28:{name:"(anonymous_28)",decl:{start:{line:255,column:40},end:{line:255,column:41}},loc:{start:{line:255,column:58},end:{line:277,column:7}},line:255},29:{name:"(anonymous_29)",decl:{start:{line:263,column:23},end:{line:263,column:24}},loc:{start:{line:263,column:43},end:{line:274,column:9}},line:263},30:{name:"(anonymous_30)",decl:{start:{line:279,column:23},end:{line:279,column:24}},loc:{start:{line:279,column:39},end:{line:297,column:5}},line:279},31:{name:"(anonymous_31)",decl:{start:{line:280,column:46},end:{line:280,column:47}},loc:{start:{line:280,column:56},end:{line:295,column:7}},line:280}},branchMap:{0:{loc:{start:{line:116,column:29},end:{line:116,column:50}},type:"binary-expr",locations:[{start:{line:116,column:29},end:{line:116,column:36}},{start:{line:116,column:40},end:{line:116,column:50}}],line:116},1:{loc:{start:{line:121,column:29},end:{line:121,column:50}},type:"binary-expr",locations:[{start:{line:121,column:29},end:{line:121,column:36}},{start:{line:121,column:40},end:{line:121,column:50}}],line:121},2:{loc:{start:{line:126,column:29},end:{line:126,column:50}},type:"binary-expr",locations:[{start:{line:126,column:29},end:{line:126,column:36}},{start:{line:126,column:40},end:{line:126,column:50}}],line:126},3:{loc:{start:{line:131,column:29},end:{line:131,column:50}},type:"binary-expr",locations:[{start:{line:131,column:29},end:{line:131,column:36}},{start:{line:131,column:40},end:{line:131,column:50}}],line:131},4:{loc:{start:{line:150,column:4},end:{line:168,column:5}},type:"if",locations:[{start:{line:150,column:4},end:{line:168,column:5}},{start:{line:154,column:9},end:{line:168,column:5}}],line:150},5:{loc:{start:{line:150,column:8},end:{line:150,column:53}},type:"binary-expr",locations:[{start:{line:150,column:8},end:{line:150,column:25}},{start:{line:150,column:29},end:{line:150,column:53}}],line:150},6:{loc:{start:{line:154,column:9},end:{line:168,column:5}},type:"if",locations:[{start:{line:154,column:9},end:{line:168,column:5}},{start:{line:166,column:11},end:{line:168,column:5}}],line:154},7:{loc:{start:{line:155,column:6},end:{line:157,column:29}},type:"binary-expr",locations:[{start:{line:155,column:6},end:{line:155,column:31}},{start:{line:156,column:6},end:{line:156,column:31}},{start:{line:157,column:6},end:{line:157,column:29}}],line:155},8:{loc:{start:{line:166,column:11},end:{line:168,column:5}},type:"if",locations:[{start:{line:166,column:11},end:{line:168,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:166},9:{loc:{start:{line:174,column:32},end:{line:174,column:52}},type:"default-arg",locations:[{start:{line:174,column:48},end:{line:174,column:52}}],line:174},10:{loc:{start:{line:176,column:8},end:{line:191,column:9}},type:"if",locations:[{start:{line:176,column:8},end:{line:191,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:176},11:{loc:{start:{line:177,column:10},end:{line:182,column:50}},type:"binary-expr",locations:[{start:{line:177,column:10},end:{line:177,column:48}},{start:{line:178,column:10},end:{line:178,column:48}},{start:{line:179,column:10},end:{line:179,column:44}},{start:{line:180,column:10},end:{line:180,column:46}},{start:{line:181,column:10},end:{line:181,column:42}},{start:{line:182,column:10},end:{line:182,column:50}}],line:177},12:{loc:{start:{line:194,column:6},end:{line:196,column:7}},type:"if",locations:[{start:{line:194,column:6},end:{line:196,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:194},13:{loc:{start:{line:219,column:6},end:{line:221,column:7}},type:"if",locations:[{start:{line:219,column:6},end:{line:221,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:219},14:{loc:{start:{line:250,column:6},end:{line:252,column:7}},type:"if",locations:[{start:{line:250,column:6},end:{line:252,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:250},15:{loc:{start:{line:254,column:39},end:{line:254,column:53}},type:"default-arg",locations:[{start:{line:254,column:48},end:{line:254,column:53}}],line:254}},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},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0,0],8:[0,0],9:[0],10:[0,0],11:[0,0,0,0,0,0],12:[0,0],13:[0,0],14:[0,0],15:[0]},inputSourceMap:{version:3,sources:["TlmGrapher.vue"],names:[],mappings:";AAmJA;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",file:"TlmGrapher.vue",sourceRoot:"src/tools/TlmGrapher",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <v-expansion-panels v-model="panel" style="margin-bottom: 5px">\n <v-expansion-panel>\n <v-expansion-panel-header style="z-index: 1"></v-expansion-panel-header>\n <v-expansion-panel-content>\n <v-card>\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" style="padding-bottom: 0px">\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 </v-card>\n </v-expansion-panel-content>\n </v-expansion-panel>\n </v-expansion-panels>\n <div>\n <div class="grid">\n <div\n class="item"\n v-for="graph in graphs"\n :key="graph"\n :id="`gridItem${graph}`"\n :ref="`gridItem${graph}`"\n >\n <div class="item-content">\n <graph\n :ref="`graph${graph}`"\n :id="graph"\n :state="state"\n :start-time="startTime"\n :selected-graph-id="selectedGraphId"\n :seconds-graphed="settings.secondsGraphed.value"\n :points-saved="settings.pointsSaved.value"\n :points-graphed="settings.pointsGraphed.value"\n :refresh-interval-ms="settings.refreshIntervalMs.value"\n @close-graph="() => closeGraph(graph)"\n @min-max-graph="() => minMaxGraph(graph)"\n @resize="() => resize()"\n @pause="() => (state = \'pause\')"\n @start="() => (state = \'start\')"\n @click="() => graphSelected(graph)"\n @started="graphStarted"\n />\n </div>\n </div>\n </div>\n </div>\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <open-config-dialog\n v-if="showOpenConfig"\n v-model="showOpenConfig"\n :configKey="configKey"\n @success="openConfiguration"\n />\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <save-config-dialog\n v-if="showSaveConfig"\n v-model="showSaveConfig"\n :configKey="configKey"\n @success="saveConfiguration"\n />\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <settings-dialog\n v-show="showSettingsDialog"\n v-model="showSettingsDialog"\n :settings="settings"\n />\n </div>\n</template>\n\n<script>\nimport Config from \'@openc3/tool-common/src/components/config/Config\'\nimport Graph from \'@openc3/tool-common/src/components/Graph.vue\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/config/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/config/SaveConfigDialog\'\nimport TargetPacketItemChooser from \'@openc3/tool-common/src/components/TargetPacketItemChooser\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\nimport Muuri from \'muuri\'\n\nimport SettingsDialog from \'@/tools/TlmGrapher/SettingsDialog\'\n\nconst MURRI_REFRESH_TIME = 250\nexport default {\n components: {\n Graph,\n OpenConfigDialog,\n SaveConfigDialog,\n SettingsDialog,\n TargetPacketItemChooser,\n TopBar,\n },\n mixins: [Config],\n data() {\n return {\n title: \'COSMOS Telemetry Grapher\',\n configKey: \'telemetry_grapher\',\n showOpenConfig: false,\n showSaveConfig: false,\n showSettingsDialog: false,\n grid: null,\n panel: 0,\n state: \'stop\', // Valid: stop, start, pause\n startTime: null, // Start time in nanoseconds\n // Setup defaults to show an initial graph\n graphs: [0],\n selectedGraphId: 0,\n counter: 1,\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.showOpenConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.showSaveConfig = true\n },\n },\n {\n label: \'Reset Configuration\',\n icon: \'mdi-monitor-shimmer\',\n command: () => {\n this.resetConfigBase()\n },\n },\n ],\n },\n {\n label: \'Graph\',\n items: [\n {\n label: \'Add Graph\',\n icon: \'mdi-plus\',\n command: () => {\n this.addGraph()\n },\n },\n {\n divider: true,\n },\n {\n label: \'Start / Resume\',\n icon: \'mdi-play\',\n command: () => {\n this.state = \'start\'\n },\n },\n {\n label: \'Pause\',\n icon: \'mdi-pause\',\n command: () => {\n this.state = \'pause\'\n },\n },\n {\n label: \'Stop\',\n icon: \'mdi-stop\',\n command: () => {\n this.state = \'stop\'\n },\n },\n {\n divider: true,\n },\n {\n label: \'Settings\',\n icon: \'mdi-cog\',\n command: () => {\n this.showSettingsDialog = true\n },\n },\n ],\n },\n ],\n settings: {\n secondsGraphed: {\n title: \'Seconds Graphed\',\n value: 1000,\n rules: [(value) => !!value || \'Required\'],\n },\n pointsSaved: {\n title: \'Points Saved\',\n value: 1000000,\n rules: [(value) => !!value || \'Required\'],\n },\n pointsGraphed: {\n title: \'Points Graphed\',\n value: 1000,\n rules: [(value) => !!value || \'Required\'],\n },\n refreshIntervalMs: {\n title: \'Refresh Interval Ms\',\n value: 100,\n rules: [(value) => !!value || \'Required\'],\n },\n },\n }\n },\n 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 = localStorage[`lastconfig__${this.configKey}`]\n // Called like /tools/tlmgrapher?config=temps\n if (this.$route.query && this.$route.query.config) {\n this.openConfiguration(this.$route.query.config, true) // routed\n }\n // If we\'re passed in the route then manually addItem\n else if (\n this.$route.params.target &&\n this.$route.params.packet &&\n this.$route.params.item\n ) {\n this.addItem({\n targetName: this.$route.params.target.toUpperCase(),\n packetName: this.$route.params.packet.toUpperCase(),\n itemName: this.$route.params.item.toUpperCase(),\n valueType: \'CONVERTED\',\n reduced: \'DECOM\',\n })\n } else if (previousConfig) {\n this.openConfiguration(previousConfig)\n }\n },\n methods: {\n graphSelected: function (id) {\n this.selectedGraphId = id\n },\n addItem: function (newItem, startGraphing = true) {\n for (const item of this.$refs[`graph${this.selectedGraphId}`][0].items) {\n if (\n newItem.targetName === item.targetName &&\n newItem.packetName === item.packetName &&\n newItem.itemName === item.itemName &&\n newItem.valueType === item.valueType &&\n newItem.reduced === item.reduced &&\n newItem.reducedType === item.reducedType\n ) {\n this.$notify.caution({\n title: \'Item Already Exists\',\n body:\n `Item ${newItem.targetName} ${newItem.packetName} ${newItem.itemName} ` +\n `with ${newItem.valueType} ${newItem.reduced} ${newItem.reducedType} already exists!`,\n })\n return\n }\n }\n this.$refs[`graph${this.selectedGraphId}`][0].addItems([newItem])\n if (startGraphing === true) {\n this.state = \'start\'\n }\n },\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 openConfiguration: function (name, routed = false) {\n this.openConfigBase(name, routed, async (config) => {\n this.closeAllGraphs()\n await this.$nextTick()\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 this.panel = null // Minimize the expansion panel\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 this.saveConfigBase(name, config)\n },\n },\n}\n<\/script>\n\n<style>\n/* Flash the chevron icon 3 times to let the user know they can minimize the controls */\ni.v-icon.mdi-chevron-down {\n animation: pulse 2s 3;\n}\n@keyframes pulse {\n 0% {\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);\n }\n 70% {\n -webkit-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);\n }\n 100% {\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);\n }\n}\n</style>\n<style lang="scss" scoped>\n.v-expansion-panel-content {\n background-color: var(--v-tertiary-darken2);\n .container {\n margin: 0px;\n }\n}\n.v-expansion-panel-header {\n min-height: 10px;\n padding: 5px;\n background-color: var(--v-tertiary-darken2);\n}\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:"7eb93bf4f9837a9a1d2dac1aae856d7e1dadcf67"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var l=s[e];return Ee=function(){return l},l}Ee();var Ge=(Ee().s[0]++,250),Re={components:{Graph:j,OpenConfigDialog:ie,SaveConfigDialog:ce,SettingsDialog:De,TargetPacketItemChooser:ve,TopBar:Ce},mixins:[b],data:function(){var e=this;return Ee().f[0]++,Ee().s[1]++,{title:"COSMOS Telemetry Grapher",configKey:"telemetry_grapher",showOpenConfig:!1,showSaveConfig:!1,showSettingsDialog:!1,grid:null,panel:0,state:"stop",startTime:null,graphs:[0],selectedGraphId:0,counter:1,menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){Ee().f[1]++,Ee().s[2]++,e.showOpenConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){Ee().f[2]++,Ee().s[3]++,e.showSaveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:function(){Ee().f[3]++,Ee().s[4]++,e.resetConfigBase()}}]},{label:"Graph",items:[{label:"Add Graph",icon:"mdi-plus",command:function(){Ee().f[4]++,Ee().s[5]++,e.addGraph()}},{divider:!0},{label:"Start / Resume",icon:"mdi-play",command:function(){Ee().f[5]++,Ee().s[6]++,e.state="start"}},{label:"Pause",icon:"mdi-pause",command:function(){Ee().f[6]++,Ee().s[7]++,e.state="pause"}},{label:"Stop",icon:"mdi-stop",command:function(){Ee().f[7]++,Ee().s[8]++,e.state="stop"}},{divider:!0},{label:"Settings",icon:"mdi-cog",command:function(){Ee().f[8]++,Ee().s[9]++,e.showSettingsDialog=!0}}]}],settings:{secondsGraphed:{title:"Seconds Graphed",value:1e3,rules:[function(e){return Ee().f[9]++,Ee().s[10]++,Ee().b[0][0]++,!!e||(Ee().b[0][1]++,"Required")}]},pointsSaved:{title:"Points Saved",value:1e6,rules:[function(e){return Ee().f[10]++,Ee().s[11]++,Ee().b[1][0]++,!!e||(Ee().b[1][1]++,"Required")}]},pointsGraphed:{title:"Points Graphed",value:1e3,rules:[function(e){return Ee().f[11]++,Ee().s[12]++,Ee().b[2][0]++,!!e||(Ee().b[2][1]++,"Required")}]},refreshIntervalMs:{title:"Refresh Interval Ms",value:100,rules:[function(e){return Ee().f[12]++,Ee().s[13]++,Ee().b[3][0]++,!!e||(Ee().b[3][1]++,"Required")}]}}}},mounted:function(){Ee().f[13]++,Ee().s[14]++,this.grid=new be.Z(".grid",{dragEnabled:!0,layoutOnResize:!0,dragHandle:".v-system-bar"}),Ee().s[15]++,this.grid.on("move",(function(e){Ee().f[14]++,Ee().s[16]++,e.item.getGrid().synchronize()}));var e=(Ee().s[17]++,localStorage["lastconfig__".concat(this.configKey)]);Ee().s[18]++,Ee().b[5][0]++,this.$route.query&&(Ee().b[5][1]++,this.$route.query.config)?(Ee().b[4][0]++,Ee().s[19]++,this.openConfiguration(this.$route.query.config,!0)):(Ee().b[4][1]++,Ee().s[20]++,Ee().b[7][0]++,this.$route.params.target&&(Ee().b[7][1]++,this.$route.params.packet)&&(Ee().b[7][2]++,this.$route.params.item)?(Ee().b[6][0]++,Ee().s[21]++,this.addItem({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase(),itemName:this.$route.params.item.toUpperCase(),valueType:"CONVERTED",reduced:"DECOM"})):(Ee().b[6][1]++,Ee().s[22]++,e?(Ee().b[8][0]++,Ee().s[23]++,this.openConfiguration(e)):Ee().b[8][1]++))},methods:{graphSelected:function(e){Ee().f[15]++,Ee().s[24]++,this.selectedGraphId=e},addItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ee().b[9][0]++,!0);Ee().f[16]++,Ee().s[25]++;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(Ee().s[26]++,Ee().b[11][0]++,e.targetName===a.targetName&&(Ee().b[11][1]++,e.packetName===a.packetName)&&(Ee().b[11][2]++,e.itemName===a.itemName)&&(Ee().b[11][3]++,e.valueType===a.valueType)&&(Ee().b[11][4]++,e.reduced===a.reduced)&&(Ee().b[11][5]++,e.reducedType===a.reducedType))return Ee().b[10][0]++,Ee().s[27]++,this.$notify.caution({title:"Item Already Exists",body:"Item ".concat(e.targetName," ").concat(e.packetName," ").concat(e.itemName," ")+"with ".concat(e.valueType," ").concat(e.reduced," ").concat(e.reducedType," already exists!")}),void Ee().s[28]++;Ee().b[10][1]++}}catch(s){i.e(s)}finally{i.f()}Ee().s[29]++,this.$refs["graph".concat(this.selectedGraphId)][0].addItems([e]),Ee().s[30]++,!0===t?(Ee().b[12][0]++,Ee().s[31]++,this.state="start"):Ee().b[12][1]++},addGraph:function(){Ee().f[17]++;var e=(Ee().s[32]++,this.counter);Ee().s[33]++,this.graphs.push(e),Ee().s[34]++,this.counter+=1,Ee().s[35]++,this.$nextTick((function(){var t=this;Ee().f[18]++;var n=(Ee().s[36]++,this.grid.add(this.$refs["gridItem".concat(e)],{active:!1}));Ee().s[37]++,this.grid.show(n),Ee().s[38]++,this.selectedGraphId=e,Ee().s[39]++,setTimeout((function(){Ee().f[19]++,Ee().s[40]++,t.grid.refreshItems().layout()}),Ge)}))},closeGraph:function(e){Ee().f[20]++;var t=(Ee().s[41]++,this.grid.getItems([document.getElementById("gridItem".concat(e))]));Ee().s[42]++,this.grid.remove(t),Ee().s[43]++,this.graphs.splice(this.graphs.indexOf(e),1),Ee().s[44]++,this.selectedGraphId=null,Ee().s[45]++,0===this.graphs.length?(Ee().b[13][0]++,Ee().s[46]++,this.startTime=null):Ee().b[13][1]++},closeAllGraphs:function(){Ee().f[21]++,Ee().s[47]++;for(var e=0,t=(0,r.Z)(this.graphs);e<t.length;e++){var n=t[e];Ee().s[48]++,this.closeGraph(n)}Ee().s[49]++,this.counter=0},minMaxGraph:function(e){var t=this;Ee().f[22]++,Ee().s[50]++,this.selectedGraphId=e,Ee().s[51]++,setTimeout((function(){Ee().f[23]++,Ee().s[52]++,t.grid.refreshItems().layout()}),2*Ge)},resize:function(){var e=this;Ee().f[24]++,Ee().s[53]++,setTimeout((function(){Ee().f[25]++,Ee().s[54]++,e.grid.refreshItems().layout()}),2*Ge)},graphStarted:function(e){Ee().f[26]++,Ee().s[55]++,null===this.startTime?(Ee().b[14][0]++,Ee().s[56]++,this.startTime=e):Ee().b[14][1]++},openConfiguration:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(Ee().b[15][0]++,!1);Ee().f[27]++,Ee().s[57]++,this.openConfigBase(e,n,function(){var e=(0,o.Z)((0,l.Z)().mark((function e(n){var i,a,s;return(0,l.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Ee().f[28]++,Ee().s[58]++,t.closeAllGraphs(),Ee().s[59]++,e.next=6,t.$nextTick();case 6:Ee().s[60]++,i=(0,c.Z)(n);try{for(i.s();!(a=i.n()).done;)a.value,Ee().s[61]++,t.addGraph()}catch(l){i.e(l)}finally{i.f()}return Ee().s[62]++,e.next=12,t.$nextTick();case 12:Ee().s[63]++,s=t,Ee().s[64]++,n.forEach((function(e,t){Ee().f[29]++;var n=(Ee().s[65]++,s.$refs["graph".concat(t)][0]);Ee().s[66]++,n.title=e.title,Ee().s[67]++,n.fullWidth=e.fullWidth,Ee().s[68]++,n.fullHeight=e.fullHeight,Ee().s[69]++,n.graphMinX=e.graphMinX,Ee().s[70]++,n.graphMaxX=e.graphMaxX,Ee().s[71]++,n.graphStartDateTime=e.graphStartDateTime,Ee().s[72]++,n.graphEndDateTime=e.graphEndDateTime,Ee().s[73]++,n.moveLegend(e.legendPosition),Ee().s[74]++,n.addItems((0,r.Z)(e.items))})),Ee().s[75]++,t.state="start",Ee().s[76]++,t.panel=null;case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},saveConfiguration:function(e){var t=this;Ee().f[30]++;var n=(Ee().s[77]++,this.grid.getItems().map((function(e){Ee().f[31]++;var n=(Ee().s[78]++,"graph".concat(e.getElement().id.substring(8))),i=(Ee().s[79]++,t.$refs[n][0]);return Ee().s[80]++,{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}})));Ee().s[81]++,this.saveConfigBase(e,n)}}},Oe=Re,$e=(n(4166),n(5618),(0,R.Z)(Oe,a,s,!1,null,"43ae038e",null)),ze=$e.exports},9967:function(e,t,n){"use strict";n.r(t);var i=n(9601),a=n.n(i),s=n(2609),l=n.n(s),o=l()(a());o.push([e.id,"i.v-icon.mdi-chevron-down{-webkit-animation:pulse 2s 3;animation:pulse 2s 3}@-webkit-keyframes pulse{0%{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,.4)}70%{-webkit-box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}@keyframes pulse{0%{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,.4)}70%{-webkit-box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}",""]),t["default"]=o},816:function(e,t,n){"use strict";n.r(t);var i=n(9601),a=n.n(i),s=n(2609),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},2881:function(e,t,n){"use strict";n.r(t);var i=n(9601),a=n.n(i),s=n(2609),l=n.n(s),o=l()(a());o.push([e.id,"#chart[data-v-59b314de]{background-color:var(--v-tertiary-darken2)}#chart[data-v-59b314de] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),t["default"]=o},4882:function(e,t,n){"use strict";n.r(t);var i=n(9601),a=n.n(i),s=n(2609),l=n.n(s),o=l()(a());o.push([e.id,".row+.row{margin-top:0}",""]),t["default"]=o},6294:function(e,t,n){"use strict";n.r(t);var i=n(9601),a=n.n(i),s=n(2609),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},4861:function(e,t,n){"use strict";n.r(t);var i=n(9601),a=n.n(i),s=n(2609),l=n.n(s),o=l()(a());o.push([e.id,".v-expansion-panel-content[data-v-43ae038e]{background-color:var(--v-tertiary-darken2)}.v-expansion-panel-content .container[data-v-43ae038e]{margin:0}.v-expansion-panel-header[data-v-43ae038e]{min-height:10px;padding:5px;background-color:var(--v-tertiary-darken2)}.v-navigation-drawer[data-v-43ae038e]{z-index:2}.theme--dark.v-navigation-drawer[data-v-43ae038e]{background-color:var(--v-primary-darken2)}.grid[data-v-43ae038e]{position:relative}.item[data-v-43ae038e]{position:absolute;z-index:1}.item.muuri-item-dragging[data-v-43ae038e]{z-index:3}.item.muuri-item-releasing[data-v-43ae038e]{z-index:2}.item.muuri-item-hidden[data-v-43ae038e]{z-index:0}.item-content[data-v-43ae038e]{position:relative;cursor:pointer;border-radius:6px;margin:5px}.pulse[data-v-43ae038e]{-webkit-animation:pulse-43ae038e 1s infinite;animation:pulse-43ae038e 1s infinite}@-webkit-keyframes pulse-43ae038e{0%{opacity:1}50%{opacity:.5}}@keyframes pulse-43ae038e{0%{opacity:1}50%{opacity:.5}}",""]),t["default"]=o},4166:function(e,t,n){var i=n(9967);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("42428556",i,!0,{sourceMap:!1,shadowMode:!1})},4492:function(e,t,n){var i=n(816);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("00db6f5f",i,!0,{sourceMap:!1,shadowMode:!1})},3647:function(e,t,n){var i=n(2881);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("1ab3a1eb",i,!0,{sourceMap:!1,shadowMode:!1})},9841:function(e,t,n){var i=n(4882);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("4a9152b5",i,!0,{sourceMap:!1,shadowMode:!1})},4888:function(e,t,n){var i=n(6294);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("706a3f6d",i,!0,{sourceMap:!1,shadowMode:!1})},5618:function(e,t,n){var i=n(4861);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("72b92089",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=731.js.map
|