openc3-tool-tlmgrapher 5.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,28 @@
1
+ ## OpenC3 Tool Tlm Grapher Plugin
2
+
3
+ [Documentation](https://openc3.com)
4
+
5
+ This plugin provides the Tlm Grapher user interface
6
+
7
+ ## Getting Started
8
+
9
+ 1. At the OpenC3 Admin - Plugins, upload the openc3-tool-tlmgrapher.gem file
10
+
11
+ ## Contributing
12
+
13
+ We encourage you to contribute to OpenC3!
14
+
15
+ Contributing is easy.
16
+
17
+ 1. Fork the project
18
+ 2. Create a feature branch
19
+ 3. Make your changes
20
+ 4. Submit a pull request
21
+
22
+ Before any contributions can be incorporated we do require all contributors to agree to a Contributor License Agreement
23
+
24
+ This protects both you and us and you retain full rights to any code you write.
25
+
26
+ ## License
27
+
28
+ This OpenC3 plugin is released under the AGPLv3.0 with a few addendums. See [LICENSE.txt](LICENSE.txt)
data/Rakefile ADDED
@@ -0,0 +1,40 @@
1
+ # encoding: ascii-8bit
2
+
3
+ # Copyright 2022 Ball Aerospace & Technologies Corp.
4
+ # All Rights Reserved.
5
+ #
6
+ # This program is free software; you can modify and/or redistribute it
7
+ # under the terms of the GNU Affero General Public License
8
+ # as published by the Free Software Foundation; version 3 with
9
+ # attribution addendums as found in the LICENSE.txt
10
+ #
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ # GNU Affero General Public License for more details.
15
+
16
+ # Modified by OpenC3, Inc.
17
+ # All changes Copyright 2022, OpenC3, Inc.
18
+ # All Rights Reserved
19
+
20
+ PLUGIN_NAME = Dir['*.gemspec'][0].split('.')[0..-2].join('.')
21
+
22
+ task :require_version do
23
+ if ENV['VERSION']
24
+ if ENV['VERSION'] =~ /-/
25
+ # Add Timestamp to prerelease versions
26
+ ENV['VERSION'] = ENV['VERSION'] + "." + Time.now.utc.strftime("%Y%m%d%H%M%S")
27
+ end
28
+ else
29
+ puts "VERSION is required: rake <task> VERSION=X.X.X"
30
+ exit 1
31
+ end
32
+ end
33
+
34
+ task :build => [:require_version] do
35
+ _, platform, *_ = RUBY_PLATFORM.split("-")
36
+ if platform == 'mswin32' or platform == 'mingw32'
37
+ puts "Warning: Building gem on Windows will lose file permissions"
38
+ end
39
+ system("gem build #{PLUGIN_NAME}")
40
+ end
data/plugin.txt ADDED
@@ -0,0 +1,3 @@
1
+ TOOL tlmgrapher "Telemetry Grapher"
2
+ INLINE_URL js/app.js
3
+ ICON mdi-chart-line
@@ -0,0 +1,4 @@
1
+ <!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Vue App</title><main><h1>Your Microfrontend is not here</h1><p>The @openc3/tool-tlmgrapher microfrontend is running in "integrated" mode, since standalone-single-spa-webpack-plugin is disabled. This means that it does not work as a standalone application without changing configuration.</p><h2>How do I develop this microfrontend?</h2><p>To develop this microfrontend, try the following steps:</p><ol><li>Copy the following URL to your clipboard: <a target="_blank" rel="noopener" id="mf-url"></a></li><li>In a new browser tab, go to the your single-spa web app. This is where your "root config" is running. You do not have to run the root config locally if it is already running on a deployed environment - go to the deployed environment directly.</li><li>In the browser console, run <code>localStorage.setItem('devtools', true);</code> Refresh the page.</li><li>A yellowish rectangle should appear at the bottom right of your screen. Click on it. Find the name @openc3/tool-tlmgrapher and click on it. If it is not present, click on Add New Module.</li><li>Paste the URL above into the input that appears. Refresh the page.</li><li>Congrats, your local code is now being used!</li></ol><p></p><p>For further information about "integrated" mode, see the following links:</p><ul><li><a target="_blank" rel="noopener" href="https://single-spa.js.org/docs/recommended-setup#local-development">Local Development Overview</a></li><li><a target="_blank" rel="noopener" href="https://github.com/joeldenning/import-map-overrides">Import Map Overrides Documentation</a></li></ul><p></p><h2>If you prefer Standalone mode</h2><p>To run this microfrontend in "standalone" mode, the standalone-single-spa-webpack-plugin must not be disabled. In some cases, this is done by running <code>npm run start:standalone</code>. Alternatively, you can add <code>--env standalone</code> to your package.json start script if you are using webpack-config-single-spa.</p>If neither of those work for you, see more details about enabling standalone mode at <a target="_blank" rel="noopener" href="https://github.com/single-spa/standalone-single-spa-webpack-plugin">Standalone Plugin Documentation</a>.<p></p><script>const mfLink = document.getElementById('mf-url');
2
+ const fullSrc = new URL('/tools/tlmgrapher//tools/tlmgrapher/js/app.js', window.location.href);
3
+ mfLink.href = fullSrc;
4
+ mfLink.textContent = fullSrc;</script></main></head><body><div id="app"></div></body></html>
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_openc3_tool_tlmgrapher"]=self["webpackChunk_openc3_tool_tlmgrapher"]||[]).push([[226],{2226:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Te}});var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),n("div",[n("v-snackbar",{attrs:{top:"",type:e.alertType,icon:e.alertType,timeout:5e3},scopedSlots:e._u([{key:"action",fn:function(t){var i=t.attrs;return[n("v-btn",e._b({attrs:{text:""},on:{click:function(){e.showAlert=!1}}},"v-btn",i,!1),[e._v(" Close ")])]}}]),model:{value:e.showAlert,callback:function(t){e.showAlert=t},expression:"showAlert"}},[n("v-icon",[e._v(" mdi-"+e._s(e.alertType)+" ")]),e._v(" "+e._s(e.alert)+" ")],1),n("div",{directives:[{name:"show",rawName:"v-show",value:null===this.selectedGraphId,expression:"this.selectedGraphId === null"}]},[n("v-row",{staticClass:"my-5"},[n("v-spacer"),n("span",[e._v(" Add a graph from the menu bar or select an existing graph to continue ")]),n("v-spacer")],1)],1),n("v-row",{directives:[{name:"show",rawName:"v-show",value:null!==this.selectedGraphId,expression:"this.selectedGraphId !== null"}],staticClass:"px-1",attrs:{justify:"space-between"}},[n("v-col",{attrs:{cols:"11"}},[n("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":""},on:{click:e.addItem}})],1),n("v-col",{attrs:{cols:"1"}},[n("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(){e.state="start"}}},[n("v-icon",{attrs:{large:""}},[e._v("mdi-play")])],1),n("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(){e.state="pause"}}},[n("v-icon",{attrs:{large:""}},[e._v("mdi-pause")])],1)],1)],1),n("div",{staticClass:"grid"},e._l(e.graphs,(function(t){return n("div",{key:t,ref:"gridItem"+t,refInFor:!0,staticClass:"item",attrs:{id:"gridItem"+t}},[n("div",{staticClass:"item-content"},[n("graph",{ref:"graph"+t,refInFor:!0,attrs:{id:t,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},on:{"close-graph":function(){return e.closeGraph(t)},"min-max-graph":function(){return e.minMaxGraph(t)},resize:function(){return e.resize()},click:function(){return e.graphSelected(t)},started:e.graphStarted}})],1)])})),0)],1),e.showOpenConfig?n("open-config-dialog",{attrs:{tool:e.toolName},on:{success:e.openConfiguration},model:{value:e.showOpenConfig,callback:function(t){e.showOpenConfig=t},expression:"showOpenConfig"}}):e._e(),e.showSaveConfig?n("save-config-dialog",{attrs:{tool:e.toolName},on:{success:e.saveConfiguration},model:{value:e.showSaveConfig,callback:function(t){e.showSaveConfig=t},expression:"showSaveConfig"}}):e._e(),n("settings-dialog",{directives:[{name:"show",rawName:"v-show",value:e.showSettingsDialog,expression:"showSettingsDialog"}],attrs:{settings:e.settings},model:{value:e.showSettingsDialog,callback:function(t){e.showSettingsDialog=t},expression:"showSettingsDialog"}})],1)},a=[],s=n(6625),o=n(1150),l=n(5627),r=n(5060),c=(n(9805),n(4083),n(3450),n(6710),n(8178),n(8188),n(1939),n(8816)),u=n(578),d=n(7105),m=n(6455),h=n(1901),p=(n(1372),n(1245),n(7950),n(3675),n(4898),n(5825),n(7170),n(8857),n(8329),n(6279),n(427),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(1700),n(315),n(556),n(9224),n(6297),n(8882),n(7233),n(8673),n(5734),n(8233),n(9644)),v=n.n(p),g=n(4091),A=new g["default"],f=v().create({baseURL:location.origin,timeout:6e4,params:{}});f.interceptors.response.use((function(e){return e}),(function(e){if(e.response){if(401===e.response.status)delete localStorage.openc3Token,OpenC3Auth.login(location.href);else{var t,n,i,a,s,o,l,r,c,u;if(localStorage.axiosIgnoreResponse===e.response.status.toString())return Promise.reject(e);var d="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(d+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(i=n.config)&&void 0!==i&&i.data&&(d+="".concat(e.response.config.data," ")),null!==(a=e.response)&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&s.message)d+="".concat(e.response.data.message);else if(null!==(o=e.response)&&void 0!==o&&null!==(l=o.data)&&void 0!==l&&l.exception)d+="".concat(e.response.data.exception);else if(null!==(r=e.response)&&void 0!==r&&null!==(c=r.data)&&void 0!==c&&null!==(u=c.error)&&void 0!==u&&u.message)e.response.data.error.class&&(d+="".concat(e.response.data.error.class," ")),d+="".concat(e.response.data.error.message);else{var m;d+="".concat(null===(m=e.response)||void 0===m?void 0:m.data)}A.$notify.serious({title:"Network error",body:d})}throw e}throw e}));var _=f,C=function(){function e(){(0,d.Z)(this,e),(0,h.Z)(this,"id",1)}return(0,m.Z)(e,[{key:"exec",value:function(){var e=(0,l.Z)((0,s.Z)().mark((function e(t,n){var i,a,o,l=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=l.length>2&&void 0!==l[2]?l[2]:{},e.prev=1,e.next=4,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e["catch"](1),OpenC3Auth.login();case 9:return this.id=this.id+1,e.prev=10,i["scope"]=localStorage.scope,e.next=14,_.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"}});case 14:return a=e.sent,e.abrupt("return",a.data.result);case 18:throw e.prev=18,e.t1=e["catch"](10),o=new Error,e.t1.response?(o.name=e.t1.response.data.error.data.class,o.message=e.t1.response.data.error.data.message):e.t1.request?(o.name="Request error",o.message="Request error, no response received"):o.name="Unknown error",o;case 23:case"end":return e.stop()}}),e,this,[[1,6],[10,18]])})));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:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"connect_interface",value:function(e){return 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_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_oldest_logfile",value:function(){return this.exec("get_oldest_logfile",[])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,t){return this.exec("get_telemetry",[e,t])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,l.Z)((0,s.Z)().mark((function e(t,n,i){var a,o,l,r;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_packet",[t,n],{type:i});case 2:if(a=e.sent,null!=a)for(o=a.length,l=null,r=0;r<o;r++)l=this.decode_openc3_type(a[r][1]),null!==l&&(a[r][1]=l);return e.abrupt("return",a);case 5: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,l.Z)((0,s.Z)().mark((function e(t){var n,i,a,o;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_values",[t]);case 2:for(n=e.sent,i=n[0].length,a=null,o=0;o<i;o++)a=this.decode_openc3_type(n[0][o]),null!==a&&(n[0][o]=a);return e.abrupt("return",n);case 7: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,l.Z)((0,s.Z)().mark((function e(t,n,i){var a,o;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("tlm",[t,n,i]);case 2:return a=e.sent,o=this.decode_openc3_type(a),null!==o&&(0,c.Z)("data"),e.abrupt("return",a);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{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){var a=null;for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(a=this.encode_openc3_type(i[s]),null!==a&&(i[s]=a));return this.exec(e,[t,n,i])}},{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){return void 0===t?this.exec("cmd",e):this._cmd("cmd",e,t,n)}},{key:"cmd_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}},{key:"cmd_raw",value:function(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}},{key:"cmd_raw_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}},{key:"cmd_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}},{key:"cmd_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}},{key:"cmd_raw_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}},{key:"cmd_raw_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,t){return this.exec("send_raw",[e,t])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,t){return this.exec("load_config",[e,t])}},{key:"save_config",value:function(e,t,n){return this.exec("save_config",[e,t,n])}},{key:"delete_config",value:function(e,t){return this.exec("delete_config",[e,t])}},{key:"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:"hashString",value:function(){var e=(0,l.Z)((0,s.Z)().mark((function e(t){var n,i,a;return(0,s.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}(),y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-card",{nativeOn:{click:function(t){return e.$emit("click")}}},[n("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[n("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[n("span",[e._v("Errors")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(t){e.editGraph=!0}}},[e._v(" mdi-pencil ")])],1)]}}])},[n("span",[e._v(" Edit ")])]),n("v-spacer"),n("span",[e._v(e._s(e.title))]),n("v-spacer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("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 ")]),n("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)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("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 ")]),n("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)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("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 ")]),n("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)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("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 ")]),n("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)]}}])},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var i=t.on,a=t.attrs;return[n("div",e._g(e._b({},"div",a,!1),i),[n("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(t){return e.$emit("close-graph")}}},[e._v(" mdi-close-box ")])],1)]}}])},[n("span",[e._v(" Close ")])])],1),n("v-expand-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[n("div",{attrs:{id:"chart"+e.id}}),n("div",{attrs:{id:"betweenCharts"}}),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.hideOverview,expression:"!hideOverview"}],attrs:{id:"overview"+e.id}})])])],1),n("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"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Edit Graph")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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),n("v-card-text",{staticClass:"pa-0"},[e._v(" Select a start date/time for the graph. Leave blank for start now. ")]),n("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time"},on:{"date-time":function(t){e.graphStartDateTime=t}}}),n("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),n("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time"},on:{"date-time":function(t){e.graphEndDateTime=t}}}),n("v-row",{attrs:{dense:""}},[n("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),n("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),n("v-row",{attrs:{dense:""}},[n("v-col",{staticClass:"px-2"},[n("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),n("v-col",{staticClass:"px-2"},[n("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),n("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(t){var i=t.item;return[n("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(t){var a=t.on,s=t.attrs;return[n("div",e._g(e._b({},"div",s,!1),a),[n("v-btn",{attrs:{icon:"","data-test":"delete-item-icon"+i.itemId},on:{click:function(){return e.removeItems([i])}}},[n("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[n("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[n("span",[e._v("Currently no items on this graph")])]},proxy:!0}])}),n("v-card-actions",[n("v-btn",{attrs:{color:"primary"},on:{click:function(t){return e.editGraphClose()}}},[e._v(" Ok ")])],1)],1)],1),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Errors")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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),n("v-row",{staticClass:"my-3"},[n("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),n("v-row",[n("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e.editGraphMenu?n("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"}},[n("v-list",[n("v-list-item",{on:{click:function(t){e.editGraph=!0}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.title)+" ")])],1)],1)],1):e._e(),e.editItem?n("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.editItem=!1}},model:{value:e.editItem,callback:function(t){e.editItem=t},expression:"editItem"}},[n("v-card",{staticClass:"pa-3"},[n("v-card-title",{staticClass:"headline"},[e._v("Edit Item")]),n("v-select",{attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.currentType,callback:function(t){e.currentType=t},expression:"currentType"}}),n("v-card-actions",[n("v-btn",{attrs:{color:"primary"},on:{click:function(t){return e.closeEditItem()}}},[e._v("Ok")])],1)],1)],1):e._e(),e.itemMenu?n("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"}},[n("v-list",[n("v-list-item",{on:{click:function(t){return e.openEditItem()}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Edit "+e._s(e.selectedItem.itemName)+" ")])],1),n("v-list-item",{on:{click:function(t){return e.removeItems([e.selectedItem])}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v(" Delete "+e._s(e.selectedItem.itemName)+" ")])],1)],1)],1):e._e(),e.legendMenu?n("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"}},[n("v-list",[n("v-list-item",{on:{click:function(t){return e.moveLegend("top")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),n("v-list-item",{on:{click:function(t){return e.moveLegend("bottom")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),n("v-list-item",{on:{click:function(t){return e.moveLegend("left")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),n("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[n("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},b=[],x=n(6533),w=n(8378),k=(n(6886),n(3108),n(2501),n(3489),n(5883),n(9529),n(1235),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("v-row",[n("v-col",[n("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(t){var i=t.on;return[n("v-text-field",e._g({attrs:{label:e.dateLabel,name:"date"+Date.now(),rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}},i))]}}])})],1),n("v-col",[n("v-text-field",{attrs:{label:e.timeLabel,name:"time"+Date.now(),rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1)],1)}),N=[],S=n(1200),I=n(6192),T={props:{required:{type:Boolean,default:!0},initialDate:{type:Date,default:null},initialTime:{type:Date,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,S.Z)((0,I.Z)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:function(e){if(!e)return!0;try{return(0,S.Z)((0,I.Z)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules:function(){var e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules:function(){var e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},M=T,G=n(3287),D=(0,G.Z)(M,k,N,!1,null,null,null),E=D.exports,O=n(8197),L=n(6522),z=n.n(L),$=n(3053),P=n(6700),R=n(3492);R.ConnectionMonitor.staleThreshold=60;var Z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,d.Z)(this,e),this._cable=R.createConsumer(t)}return(0,m.Z)(e,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){return n._cable.subscriptions.create((0,w.Z)({channel:e,scope:t,token:localStorage.openc3Token},a),i)}))}}]),e}();n(6461);var H={components:{DateTimeChooser:E},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},hideSystemBar:{type:Boolean,default:!1},hideOverview:{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}],valueTypes:["CONVERTED","RAW"],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,currentType:null,title:"",overview:null,data:[[]],graphMinY:"",graphMaxY:"",graphStartDateTime:this.startTime,graphEndDateTime:null,indexes:{},items:this.initialItems||[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new Z,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colors:["blue","red","green","darkorange","purple","cornflowerblue","lime","gold","hotpink","tan","cyan","peru","maroon","coral","navy","teal","brown","crimson","lightblue","black"]}},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,w.Z)((0,w.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,o.Z)(this.items.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,x.Z)(e.value,2),i=n[0],a=n[1];this.data.push([]),this.indexes[this.subscriptionKey(a)]=i+1}}catch(s){t.e(s)}finally{t.f()}},mounted:function(){var e=this,t=this.items.reduce((function(t,n){var i={spanGaps:!0,stroke:e.colors.shift()};return t.chartSeries.push((0,w.Z)((0,w.Z)({},i),{},{item:n,label:n.itemName,value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(2)}})),t.overviewSeries.push((0,w.Z)({},i)),t}),{chartSeries:[],overviewSeries:[]}),n=t.chartSeries,i=t.overviewSeries,a=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},this.getSize("chart")),this.getScales()),this.getAxes("chart")),{},{series:[{label:"Time",value:function(e,t){return null==t?"--":(0,$.Z)((0,P.Z)(1e3*t),"yyyy-MM-dd HH:mm:ss")}}].concat((0,r.Z)(n)),cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"}},hooks:{setScale:[function(t,n){if("x"==n&&!e.zoomOverview&&e.overview){e.zoomChart=!0;var i=Math.round(e.overview.valToPos(t.scales.x.min,"x")),a=Math.round(e.overview.valToPos(t.scales.x.max,"x"));e.overview.setSelect({left:i,width:a-i}),e.zoomChart=!1}}],ready:[function(t){var n=t.root.querySelector(".u-over");n.addEventListener("contextmenu",(function(t){t.preventDefault(),e.itemMenu=!1,e.legendMenu=!1,e.editGraphMenuX=t.clientX,e.editGraphMenuY=t.clientY,e.editGraphMenu=!0})),n.addEventListener("mouseenter",(function(t){e.$emit("resize")})),n.addEventListener("mouseleave",(function(t){e.$emit("resize")}));var i=t.root.querySelector(".u-legend");i.addEventListener("contextmenu",(function(n){n.preventDefault(),e.editGraphMenu=!1,e.legendMenu=!1,e.itemMenuX=n.clientX,e.itemMenuY=n.clientY;var a=n.target.closest(".u-series"),s=Array.prototype.slice.call(i.childNodes).indexOf(a),o=t.series[s];o.item?(e.selectedItem=o.item,e.itemMenu=!0):(e.itemMenu=!1,e.legendMenuX=n.clientX,e.legendMenuY=n.clientY,e.legendMenu=!0)}))}]}});this.graph=new O.Z(a,this.data,document.getElementById("chart".concat(this.id)));var s=(0,w.Z)((0,w.Z)((0,w.Z)((0,w.Z)({},this.getSize("overview")),this.getScales()),this.getAxes("overview")),{},{series:(0,r.Z)(i),cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[function(t){if(!e.zoomChart){e.zoomOverview=!0;var n=t.posToVal(t.select.left,"x"),i=t.posToVal(t.select.left+t.select.width,"x");e.graph.setScale("x",{min:n,max:i}),e.zoomOverview=!1}}]}});this.overview=new O.Z(s,this.data,document.getElementById("overview".concat(this.id))),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize),"stop"!==this.state&&this.subscribe()},beforeDestroy:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,t){switch(e){case"start":"stop"===t&&this.subscribe();break;case"stop":this.subscription.unsubscribe(),this.subscription=null;break}},data:function(e,t){if("pause"!==this.state){this.graph.setData(e),this.overview.setData(e);var n=e[0][e[0].length-1],i=e[0][e[0].length-this.pointsGraphed],a=e[0][0];a<n-this.secondsGraphed&&(a=n-this.secondsGraphed),i>a&&(a=i),this.graph.setScale("x",{min:a,max:n})}},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){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){this.editGraph=!1,this.needToUpdate&&(this.removeItemsFromSubscription(),this.addItemsToSubscription(),this.needToUpdate=!1),this.moveLegend(this.legendPosition)},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),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 o=a;return(e.graphMaxY||0===e.graphMaxY)&&(o=e.graphMaxY),O.Z.rangeNum(s,o,t,!0)}},subscribe:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.cable.createSubscription("StreamingChannel",localStorage.scope,{received:function(t){return e.received(t)},connected:function(){e.addItemsToSubscription(e.items,t)},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,o=Math.max(document.documentElement.clientHeight,window.innerHeight||0),l=document.getElementsByClassName("c-chooser")[0],r=100;"overview"===e?this.hideOverview=!this.fullHeight:l&&(r=o-l.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]:O.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:70,stroke:n,grid:{show:"overview"!==e,stroke:t,width:2}}]}},openEditItem:function(){this.currentType=this.selectedItem.valueType,this.editItem=!0},closeEditItem:function(){this.editItem=!1,this.selectedItem.valueType!==this.currentType&&this.changeType()},changeType:function(){this.removeItems([this.selectedItem]),this.selectedItem.valueType=this.currentType,this.addItems([this.selectedItem])},addItems:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CONVERTED",i=(0,o.Z)(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.valueType||(a.valueType=n),this.items.push(a);var s=this.data.length,l=this.colors.shift();this.graph.addSeries({spanGaps:!0,item:a,label:a.itemName,stroke:l,value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null===t?"--":t.toFixed(2)}},s),this.overview.addSeries({spanGaps:!0,stroke:l},s);var r=Array(this.data[0].length);this.data.splice(s,0,r),this.indexes[this.subscriptionKey(a)]=s}}catch(c){i.e(c)}finally{i.f()}this.addItemsToSubscription(e)},addItemsToSubscription:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.graphEndDateTime;this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(){e.subscription.perform("add",{scope:localStorage.scope,mode:"DECOM",token:localStorage.openc3Token,items:t.map(e.subscriptionKey),start_time:e.graphStartDateTime,end_time:n})}))},removeItems:function(e){this.removeItemsFromSubscription(e);var t,n=(0,o.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.overview.delSeries(a),this.graph.setData(this.data),this.overview.setData(this.data)}}catch(s){n.e(s)}finally{n.f()}},removeItemsFromSubscription:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items;this.subscription&&this.subscription.perform("remove",{scope:localStorage.scope,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){for(var t=JSON.parse(e),n=0;n<t.length;n++){var i=t[n].time/1e9,a=t[0].length;if(0==a||i>t[0][a-1]){for(var s=0;s<this.data.length;s++)this.data[s].push(null);this.set_data_at_index(this.data[0].length-1,i,t[n])}else{var o=z()(this.data[0],i,this.bs_comparator);if(o>=0)this.set_data_at_index(o,i,t[n]);else{for(var l=-o-1,r=0;r<this.data.length;r++)this.data[r].splice(l,0,null);this.set_data_at_index(l,i,t[n])}}}null===this.startTime&&(this.graphStartDateTime=1e9*this.data[0][0],this.$emit("started",this.graphStartDateTime))},bs_comparator:function(e,t){return e-t},set_data_at_index:function(e,t,n){this.data[0][e]=t;for(var i=0,a=Object.entries(n);i<a.length;i++){var s=(0,x.Z)(a[i],2),l=s[0],r=s[1];if("time"!=l){var c=this.indexes[l];if(c){var u=this.data[c];if(r.raw)u[e]=null;else if("string"===typeof r){if(u[e]=null,!l.includes("__RAW")){var d,m=(0,o.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.currentType="RAW",this.changeType()}}else u[e]=r}}}},subscriptionKey:function(e){return"TLM__".concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType)}}},Y=H,F=(n(680),n(6146),(0,G.Z)(Y,y,b,!1,null,"335d365e",null)),W=F.exports,U=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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"}},[n("v-card",[n("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Open Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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),n("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(t){var i=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(i)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),n("v-row",[n("v-btn",{attrs:{type:"submit",color:"success","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")]),n("v-spacer"),n("v-btn",{attrs:{color:"primary","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")])],1)],1)])],1)])],1)},B=[],X=(n(4908),{props:{tool:String,value:Boolean},data:function(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new C).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to OpenC3. ".concat(t))}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.selectedItem.config===e.config&&(t.selectedItem=null),t.configs.splice(t.configs.indexOf(e),1),(new C).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}}),q=X,j=(0,G.Z)(q,U,B,!1,null,"db42aa32",null),K=j.exports,V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("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"}},[n("v-card",[n("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("Save Configuration")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"pa-3"},[n("v-row",{attrs:{dense:""}},[n("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),n("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(t){var i=t.item;return[n("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(i)}}},[n("v-icon",[e._v("mdi-delete")])],1)]}}])}),n("v-row",{attrs:{dense:""}},[n("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),n("v-row",{attrs:{dense:""}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),n("v-row",[n("v-spacer"),n("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)])],1)},J=[],Q={props:{tool:String,value:Boolean},data:function(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new C).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to OpenC3. ".concat(t))}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.configName===e.config&&(t.selectedItem=null,t.configName=""),t.configs.splice(t.configs.indexOf(e.config),1),(new C).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}},ee=Q,te=(0,G.Z)(ee,V,J,!1,null,null,null),ne=te.exports,ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-container",{staticClass:"c-chooser px-0"},[n("v-row",[n("v-col",{attrs:{cols:e.colSize,"data-test":"select-target"}},[n("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),n("v-col",{attrs:{cols:e.colSize,"data-test":"select-packet"}},[n("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?n("v-col",{attrs:{cols:e.colSize,"data-test":"select-item"}},[n("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?n("v-col",{attrs:{cols:e.colSize}},[n("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),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description))])],1)],1)},ae=[],se=(n(4115),n(634),n(9228),{props:{allowAll:{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:""},mode:{type:String,default:"tlm",validator:function(e){return["cmd","tlm"].includes(e)}},reduced:{type:String,default:"DECOM",validator:function(e){return["REDUCED_DAY","REDUCED_HOUR","REDUCED_MINUTE","DECOM"].includes(e)}},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data:function(){var e,t,n;return{targetNames:[],packetNames:[],itemNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),selectedPacketName:null===(t=this.initialPacketName)||void 0===t?void 0:t.toUpperCase(),selectedItemName:null===(n=this.initialItemName)||void 0===n?void 0:n.toUpperCase(),description:"",internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created:function(){var e=this;this.internalDisabled=!0,this.api=new C,this.api.get_target_list().then((function(t){e.targetNames=t.map((function(e){return{label:e,value:e}})),e.selectedTargetName||(e.selectedTargetName=e.targetNames[0].value,e.targetNameChanged(e.selectedTargetName)),e.updatePackets(),e.unknown&&e.targetNames.push(e.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},targetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"49%",float:"left"}},packetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"50%",float:"right"}},colSize:function(){return!!this.vertical&&12}},watch:{mode:function(e,t){this.updatePackets(),this.itemNames=[]},reduced:function(e,t){this.updateItems()}},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");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(t){return"DECOM"===e.reduced?[{label:t.name,value:t.name,description:t.description}]:e.makeReducedItems(t)})).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,reduced:e.reduced})}))}},makeReducedItems:function(e){var t=!e.array_size&&!e.states;return t&&["UINT","INT","FLOAT"].includes(e.data_type)?["MIN","MAX","AVG","STDDEV"].map((function(t){return{label:"".concat(e.name,"_").concat(t),value:"".concat(e.name,"_").concat(t),description:"".concat(t," ").concat(e.description)}})):[]},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}))}this.chooseItem?(this.selectedItemName="",this.updateItems()):this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,reduced:this.reduced})},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,reduced:this.reduced})},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,reduced:this.reduced}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,reduced:this.reduced})},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"],reduced:e.reduced})}))}))}}))},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,reduced:e.reduced})}))}}}),oe=se,le=(0,G.Z)(oe,ie,ae,!1,null,null,null),re=le.exports,ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(t,i){return n("v-menu",{key:i,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(i){var a=i.on,s=i.attrs;return[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT(e.title+" "+t.label)}},"v-btn",s,!1),a),[n("span",{domProps:{textContent:e._s(t.label)}}),n("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[n("v-list",[n("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:t.radioGroup,"hide-details":"",dense:""}},[e._l(t.items,(function(i,a){return[i.divider?n("v-divider"):n("v-list-item",{key:a,attrs:{disabled:i.disabled,"data-test":e.formatDT(e.title+" "+t.label+" "+i.label)},on:{click:i.command}},[i.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:i.label,value:i.label},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})],1):e._e(),i.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),i.radio||i.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),n("v-spacer"),n("v-toolbar-title",[e._v(e._s(e.title))]),n("v-spacer")],2)])},ue=[],de=(n(5940),n(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}}}),me=de,he=(n(5741),(0,G.Z)(me,ce,ue,!1,null,"3237297b",null)),pe=he.exports,ve=n(7955),ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("v-system-bar",[n("v-spacer"),n("span",[e._v("TlmGrapher Settings")]),n("v-spacer")],1),n("v-card",{staticClass:"pa-3"},[n("v-card-text",[e._l(e.settings,(function(t){return n("div",{key:t.title},[n("v-row",{staticClass:"my-5"},[n("v-text-field",{attrs:{"hide-details":"auto",type:"number",rules:t.rules,label:t.title},model:{value:t.value,callback:function(n){e.$set(t,"value",e._n(n))},expression:"item.value"}})],1)],1)})),n("v-row",[n("span",{staticClass:"red--text"},[e._v(" Increasing these values may cause issues ")])])],2)],1)],1)},Ae=[],fe={Accept:"application/json"};(0,w.Z)((0,w.Z)({},fe),{},{"Content-Type":"application/json"});function _e(){var e="/openc3/plugins/packages/openc3-tool-tlmgrapher/src/tools/TlmGrapher/SettingsDialog.vue",t="bf0beb222ea0a31ca9df34d35bff4c2bfde33b86",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmgrapher/src/tools/TlmGrapher/SettingsDialog.vue",statementMap:{0:{start:{line:62,column:4},end:{line:62,column:13}},1:{start:{line:67,column:8},end:{line:67,column:25}},2:{start:{line:70,column:8},end:{line:70,column:34}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:61,column:2},end:{line:61,column:3}},loc:{start:{line:61,column:9},end:{line:63,column:3}},line:61},1:{name:"(anonymous_1)",decl:{start:{line:66,column:6},end:{line:66,column:7}},loc:{start:{line:66,column:12},end:{line:68,column:7}},line:66},2:{name:"(anonymous_2)",decl:{start:{line:69,column:6},end:{line:69,column:7}},loc:{start:{line:69,column:17},end:{line:71,column:7}},line:69}},branchMap:{},s:{0:0,1:0,2:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,sources:["SettingsDialog.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA;;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--\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:"bf0beb222ea0a31ca9df34d35bff4c2bfde33b86"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var o=s[e];return _e=function(){return o},o}_e();var Ce={props:{settings:{type:Object,required:!0},value:Boolean},data:function(){return _e().f[0]++,_e().s[0]++,{}},computed:{show:{get:function(){return _e().f[1]++,_e().s[1]++,this.value},set:function(e){_e().f[2]++,_e().s[2]++,this.$emit("input",e)}}},methods:{}},ye=Ce,be=(0,G.Z)(ye,ge,Ae,!1,null,null,null),xe=be.exports;function we(){var e="/openc3/plugins/packages/openc3-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",t="09f0e14d881f7a31e79c5dadad1907f91ad30fa6",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-tlmgrapher/src/tools/TlmGrapher/TlmGrapher.vue",statementMap:{0:{start:{line:167,column:27},end:{line:167,column:30}},1:{start:{line:178,column:4},end:{line:278,column:5}},2:{start:{line:202,column:16},end:{line:202,column:42}},3:{start:{line:209,column:16},end:{line:209,column:42}},4:{start:{line:221,column:16},end:{line:221,column:31}},5:{start:{line:231,column:16},end:{line:231,column:36}},6:{start:{line:238,column:16},end:{line:238,column:36}},7:{start:{line:245,column:16},end:{line:245,column:35}},8:{start:{line:255,column:16},end:{line:255,column:46}},9:{start:{line:265,column:29},end:{line:265,column:50}},10:{start:{line:270,column:29},end:{line:270,column:50}},11:{start:{line:275,column:29},end:{line:275,column:50}},12:{start:{line:281,column:4},end:{line:286,column:6}},13:{start:{line:289,column:4},end:{line:291,column:6}},14:{start:{line:290,column:6},end:{line:290,column:39}},15:{start:{line:292,column:27},end:{line:292,column:55}},16:{start:{line:294,column:4},end:{line:306,column:5}},17:{start:{line:299,column:6},end:{line:303,column:8}},18:{start:{line:304,column:11},end:{line:306,column:5}},19:{start:{line:305,column:6},end:{line:305,column:44}},20:{start:{line:310,column:6},end:{line:310,column:29}},21:{start:{line:311,column:6},end:{line:311,column:33}},22:{start:{line:312,column:6},end:{line:312,column:27}},23:{start:{line:315,column:6},end:{line:315,column:59}},24:{start:{line:318,column:6},end:{line:318,column:58}},25:{start:{line:321,column:6},end:{line:321,column:31}},26:{start:{line:324,column:6},end:{line:324,column:68}},27:{start:{line:325,column:6},end:{line:327,column:7}},28:{start:{line:326,column:8},end:{line:326,column:28}},29:{start:{line:330,column:17},end:{line:330,column:29}},30:{start:{line:331,column:6},end:{line:331,column:26}},31:{start:{line:332,column:6},end:{line:332,column:23}},32:{start:{line:333,column:6},end:{line:342,column:8}},33:{start:{line:334,column:20},end:{line:336,column:10}},34:{start:{line:337,column:8},end:{line:337,column:29}},35:{start:{line:338,column:8},end:{line:338,column:33}},36:{start:{line:339,column:8},end:{line:341,column:30}},37:{start:{line:340,column:10},end:{line:340,column:43}},38:{start:{line:345,column:18},end:{line:345,column:80}},39:{start:{line:346,column:6},end:{line:346,column:29}},40:{start:{line:347,column:6},end:{line:347,column:52}},41:{start:{line:348,column:6},end:{line:348,column:33}},42:{start:{line:352,column:6},end:{line:354,column:7}},43:{start:{line:353,column:8},end:{line:353,column:30}},44:{start:{line:355,column:6},end:{line:355,column:22}},45:{start:{line:358,column:6},end:{line:358,column:31}},46:{start:{line:359,column:6},end:{line:364,column:7}},47:{start:{line:361,column:10},end:{line:361,column:43}},48:{start:{line:367,column:6},end:{line:372,column:7}},49:{start:{line:369,column:10},end:{line:369,column:43}},50:{start:{line:377,column:6},end:{line:379,column:7}},51:{start:{line:378,column:8},end:{line:378,column:29}},52:{start:{line:382,column:21},end:{line:395,column:8}},53:{start:{line:384,column:24},end:{line:384,column:67}},54:{start:{line:385,column:25},end:{line:385,column:47}},55:{start:{line:386,column:8},end:{line:394,column:9}},56:{start:{line:396,column:6},end:{line:412,column:10}},57:{start:{line:399,column:10},end:{line:399,column:42}},58:{start:{line:400,column:10},end:{line:403,column:12}},59:{start:{line:406,column:10},end:{line:411,column:11}},60:{start:{line:407,column:12},end:{line:410,column:14}},61:{start:{line:415,column:6},end:{line:415,column:38}},62:{start:{line:416,column:6},end:{line:431,column:10}},63:{start:{line:419,column:10},end:{line:421,column:11}},64:{start:{line:420,column:12},end:{line:420,column:44}},65:{start:{line:424,column:10},end:{line:430,column:11}},66:{start:{line:425,column:12},end:{line:428,column:14}},67:{start:{line:429,column:12},end:{line:429,column:44}},68:{start:{line:434,column:6},end:{line:434,column:27}},69:{start:{line:435,column:6},end:{line:435,column:28}},70:{start:{line:436,column:21},end:{line:436,column:42}},71:{start:{line:437,column:6},end:{line:439,column:7}},72:{start:{line:438,column:8},end:{line:438,column:23}},73:{start:{line:440,column:6},end:{line:440,column:28}},74:{start:{line:441,column:19},end:{line:441,column:23}},75:{start:{line:442,column:6},end:{line:451,column:8}},76:{start:{line:443,column:23},end:{line:443,column:49}},77:{start:{line:444,column:8},end:{line:444,column:36}},78:{start:{line:445,column:8},end:{line:445,column:44}},79:{start:{line:446,column:8},end:{line:446,column:46}},80:{start:{line:447,column:8},end:{line:447,column:44}},81:{start:{line:448,column:8},end:{line:448,column:44}},82:{start:{line:449,column:8},end:{line:449,column:49}},83:{start:{line:450,column:8},end:{line:450,column:43}},84:{start:{line:452,column:6},end:{line:452,column:26}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:177,column:2},end:{line:177,column:3}},loc:{start:{line:177,column:9},end:{line:279,column:3}},line:177},1:{name:"(anonymous_1)",decl:{start:{line:201,column:23},end:{line:201,column:24}},loc:{start:{line:201,column:29},end:{line:203,column:15}},line:201},2:{name:"(anonymous_2)",decl:{start:{line:208,column:23},end:{line:208,column:24}},loc:{start:{line:208,column:29},end:{line:210,column:15}},line:208},3:{name:"(anonymous_3)",decl:{start:{line:220,column:23},end:{line:220,column:24}},loc:{start:{line:220,column:29},end:{line:222,column:15}},line:220},4:{name:"(anonymous_4)",decl:{start:{line:230,column:23},end:{line:230,column:24}},loc:{start:{line:230,column:29},end:{line:232,column:15}},line:230},5:{name:"(anonymous_5)",decl:{start:{line:237,column:23},end:{line:237,column:24}},loc:{start:{line:237,column:29},end:{line:239,column:15}},line:237},6:{name:"(anonymous_6)",decl:{start:{line:244,column:23},end:{line:244,column:24}},loc:{start:{line:244,column:29},end:{line:246,column:15}},line:244},7:{name:"(anonymous_7)",decl:{start:{line:254,column:23},end:{line:254,column:24}},loc:{start:{line:254,column:29},end:{line:256,column:15}},line:254},8:{name:"(anonymous_8)",decl:{start:{line:265,column:18},end:{line:265,column:19}},loc:{start:{line:265,column:29},end:{line:265,column:50}},line:265},9:{name:"(anonymous_9)",decl:{start:{line:270,column:18},end:{line:270,column:19}},loc:{start:{line:270,column:29},end:{line:270,column:50}},line:270},10:{name:"(anonymous_10)",decl:{start:{line:275,column:18},end:{line:275,column:19}},loc:{start:{line:275,column:29},end:{line:275,column:50}},line:275},11:{name:"(anonymous_11)",decl:{start:{line:280,column:11},end:{line:280,column:12}},loc:{start:{line:280,column:23},end:{line:307,column:3}},line:280},12:{name:"(anonymous_12)",decl:{start:{line:289,column:25},end:{line:289,column:26}},loc:{start:{line:289,column:41},end:{line:291,column:5}},line:289},13:{name:"(anonymous_13)",decl:{start:{line:309,column:18},end:{line:309,column:19}},loc:{start:{line:309,column:35},end:{line:313,column:5}},line:309},14:{name:"(anonymous_14)",decl:{start:{line:314,column:27},end:{line:314,column:28}},loc:{start:{line:314,column:44},end:{line:316,column:5}},line:314},15:{name:"(anonymous_15)",decl:{start:{line:317,column:27},end:{line:317,column:28}},loc:{start:{line:317,column:39},end:{line:319,column:5}},line:317},16:{name:"(anonymous_16)",decl:{start:{line:320,column:19},end:{line:320,column:20}},loc:{start:{line:320,column:33},end:{line:322,column:5}},line:320},17:{name:"(anonymous_17)",decl:{start:{line:323,column:13},end:{line:323,column:14}},loc:{start:{line:323,column:51},end:{line:328,column:5}},line:323},18:{name:"(anonymous_18)",decl:{start:{line:329,column:14},end:{line:329,column:15}},loc:{start:{line:329,column:26},end:{line:343,column:5}},line:329},19:{name:"(anonymous_19)",decl:{start:{line:333,column:21},end:{line:333,column:22}},loc:{start:{line:333,column:33},end:{line:342,column:7}},line:333},20:{name:"(anonymous_20)",decl:{start:{line:339,column:19},end:{line:339,column:20}},loc:{start:{line:339,column:25},end:{line:341,column:9}},line:339},21:{name:"(anonymous_21)",decl:{start:{line:344,column:16},end:{line:344,column:17}},loc:{start:{line:344,column:30},end:{line:349,column:5}},line:344},22:{name:"(anonymous_22)",decl:{start:{line:350,column:20},end:{line:350,column:21}},loc:{start:{line:350,column:32},end:{line:356,column:5}},line:350},23:{name:"(anonymous_23)",decl:{start:{line:357,column:17},end:{line:357,column:18}},loc:{start:{line:357,column:31},end:{line:365,column:5}},line:357},24:{name:"(anonymous_24)",decl:{start:{line:360,column:8},end:{line:360,column:9}},loc:{start:{line:360,column:14},end:{line:362,column:9}},line:360},25:{name:"(anonymous_25)",decl:{start:{line:366,column:12},end:{line:366,column:13}},loc:{start:{line:366,column:24},end:{line:373,column:5}},line:366},26:{name:"(anonymous_26)",decl:{start:{line:368,column:8},end:{line:368,column:9}},loc:{start:{line:368,column:14},end:{line:370,column:9}},line:368},27:{name:"(anonymous_27)",decl:{start:{line:374,column:18},end:{line:374,column:19}},loc:{start:{line:374,column:34},end:{line:380,column:5}},line:374},28:{name:"(anonymous_28)",decl:{start:{line:381,column:23},end:{line:381,column:24}},loc:{start:{line:381,column:39},end:{line:413,column:5}},line:381},29:{name:"(anonymous_29)",decl:{start:{line:382,column:46},end:{line:382,column:47}},loc:{start:{line:382,column:56},end:{line:395,column:7}},line:382},30:{name:"(anonymous_30)",decl:{start:{line:398,column:14},end:{line:398,column:15}},loc:{start:{line:398,column:28},end:{line:404,column:9}},line:398},31:{name:"(anonymous_31)",decl:{start:{line:405,column:15},end:{line:405,column:16}},loc:{start:{line:405,column:26},end:{line:412,column:9}},line:405},32:{name:"(anonymous_32)",decl:{start:{line:414,column:23},end:{line:414,column:24}},loc:{start:{line:414,column:39},end:{line:432,column:5}},line:414},33:{name:"(anonymous_33)",decl:{start:{line:418,column:14},end:{line:418,column:15}},loc:{start:{line:418,column:28},end:{line:422,column:9}},line:418},34:{name:"(anonymous_34)",decl:{start:{line:423,column:15},end:{line:423,column:16}},loc:{start:{line:423,column:26},end:{line:431,column:9}},line:423},35:{name:"(anonymous_35)",decl:{start:{line:433,column:4},end:{line:433,column:5}},loc:{start:{line:433,column:39},end:{line:453,column:5}},line:433},36:{name:"(anonymous_36)",decl:{start:{line:442,column:21},end:{line:442,column:22}},loc:{start:{line:442,column:41},end:{line:451,column:7}},line:442}},branchMap:{0:{loc:{start:{line:265,column:29},end:{line:265,column:50}},type:"binary-expr",locations:[{start:{line:265,column:29},end:{line:265,column:36}},{start:{line:265,column:40},end:{line:265,column:50}}],line:265},1:{loc:{start:{line:270,column:29},end:{line:270,column:50}},type:"binary-expr",locations:[{start:{line:270,column:29},end:{line:270,column:36}},{start:{line:270,column:40},end:{line:270,column:50}}],line:270},2:{loc:{start:{line:275,column:29},end:{line:275,column:50}},type:"binary-expr",locations:[{start:{line:275,column:29},end:{line:275,column:36}},{start:{line:275,column:40},end:{line:275,column:50}}],line:275},3:{loc:{start:{line:294,column:4},end:{line:306,column:5}},type:"if",locations:[{start:{line:294,column:4},end:{line:306,column:5}},{start:{line:304,column:11},end:{line:306,column:5}}],line:294},4:{loc:{start:{line:295,column:6},end:{line:297,column:29}},type:"binary-expr",locations:[{start:{line:295,column:6},end:{line:295,column:31}},{start:{line:296,column:6},end:{line:296,column:31}},{start:{line:297,column:6},end:{line:297,column:29}}],line:295},5:{loc:{start:{line:304,column:11},end:{line:306,column:5}},type:"if",locations:[{start:{line:304,column:11},end:{line:306,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:304},6:{loc:{start:{line:323,column:29},end:{line:323,column:49}},type:"default-arg",locations:[{start:{line:323,column:45},end:{line:323,column:49}}],line:323},7:{loc:{start:{line:325,column:6},end:{line:327,column:7}},type:"if",locations:[{start:{line:325,column:6},end:{line:327,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:325},8:{loc:{start:{line:377,column:6},end:{line:379,column:7}},type:"if",locations:[{start:{line:377,column:6},end:{line:379,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:377},9:{loc:{start:{line:406,column:10},end:{line:411,column:11}},type:"if",locations:[{start:{line:406,column:10},end:{line:411,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:406},10:{loc:{start:{line:419,column:10},end:{line:421,column:11}},type:"if",locations:[{start:{line:419,column:10},end:{line:421,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:419},11:{loc:{start:{line:424,column:10},end:{line:430,column:11}},type:"if",locations:[{start:{line:424,column:10},end:{line:430,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:424}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0,0],5:[0,0],6:[0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0]},inputSourceMap:{version:3,sources:["TlmGrapher.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4JA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",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--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <div>\n <v-snackbar\n v-model="showAlert"\n top\n :type="alertType"\n :icon="alertType"\n :timeout="5000"\n >\n <v-icon> mdi-{{ alertType }} </v-icon>\n {{ alert }}\n <template v-slot:action="{ attrs }">\n <v-btn\n text\n v-bind="attrs"\n @click="\n () => {\n showAlert = false\n }\n "\n >\n Close\n </v-btn>\n </template>\n </v-snackbar>\n\n <div v-show="this.selectedGraphId === null">\n <v-row class="my-5">\n <v-spacer />\n <span>\n Add a graph from the menu bar or select an existing graph to\n continue\n </span>\n <v-spacer />\n </v-row>\n </div>\n\n <v-row\n class="px-1"\n justify="space-between"\n v-show="this.selectedGraphId !== null"\n >\n <v-col cols="11">\n <target-packet-item-chooser\n :initial-target-name="this.$route.params.target"\n :initial-packet-name="this.$route.params.packet"\n :initial-item-name="this.$route.params.item"\n @click="addItem"\n button-text="Add Item"\n choose-item\n />\n </v-col>\n <v-col cols="1">\n <v-btn\n v-show="state === \'pause\'"\n class="pulse"\n v-on:click="\n () => {\n state = \'start\'\n }\n "\n color="primary"\n fab\n data-test="start-graph"\n >\n <v-icon large>mdi-play</v-icon>\n </v-btn>\n <v-btn\n v-show="state === \'start\'"\n v-on:click="\n () => {\n state = \'pause\'\n }\n "\n color="primary"\n fab\n data-test="pause-graph"\n >\n <v-icon large>mdi-pause</v-icon>\n </v-btn>\n </v-col>\n </v-row>\n\n <div class="grid">\n <div\n class="item"\n v-for="graph in graphs"\n :key="graph"\n :id="`gridItem${graph}`"\n :ref="`gridItem${graph}`"\n >\n <div class="item-content">\n <graph\n :ref="`graph${graph}`"\n :id="graph"\n :state="state"\n :start-time="startTime"\n :selected-graph-id="selectedGraphId"\n :seconds-graphed="settings.secondsGraphed.value"\n :points-saved="settings.pointsSaved.value"\n :points-graphed="settings.pointsGraphed.value"\n @close-graph="() => closeGraph(graph)"\n @min-max-graph="() => minMaxGraph(graph)"\n @resize="() => resize()"\n @click="() => graphSelected(graph)"\n @started="graphStarted"\n />\n </div>\n </div>\n </div>\n </div>\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <open-config-dialog\n v-if="showOpenConfig"\n v-model="showOpenConfig"\n :tool="toolName"\n @success="openConfiguration"\n />\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <save-config-dialog\n v-if="showSaveConfig"\n v-model="showSaveConfig"\n :tool="toolName"\n @success="saveConfiguration"\n />\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <settings-dialog\n v-show="showSettingsDialog"\n v-model="showSettingsDialog"\n :settings="settings"\n />\n </div>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport Graph from \'@openc3/tool-common/src/components/Graph.vue\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/SaveConfigDialog\'\nimport TargetPacketItemChooser from \'@openc3/tool-common/src/components/TargetPacketItemChooser\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\nimport Muuri from \'muuri\'\n\nimport SettingsDialog from \'@/tools/TlmGrapher/SettingsDialog\'\n\nconst MURRI_REFRESH_TIME = 250\nexport default {\n components: {\n Graph,\n OpenConfigDialog,\n SaveConfigDialog,\n SettingsDialog,\n TargetPacketItemChooser,\n TopBar,\n },\n data() {\n return {\n alert: \'\',\n alertType: \'success\',\n showAlert: false,\n title: \'Telemetry Grapher\',\n toolName: \'telemetry-grapher\',\n showOpenConfig: false,\n showSaveConfig: false,\n showSettingsDialog: false,\n grid: null,\n state: \'stop\', // Valid: stop, start, pause\n startTime: null, // Start time in nanoseconds\n // Setup defaults to show an initial graph\n graphs: [0],\n selectedGraphId: 0,\n counter: 1,\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.showOpenConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.showSaveConfig = true\n },\n },\n ],\n },\n {\n label: \'Graph\',\n items: [\n {\n label: \'Add Graph\',\n icon: \'mdi-plus\',\n command: () => {\n this.addGraph()\n },\n },\n {\n divider: true,\n },\n {\n label: \'Start / Resume\',\n icon: \'mdi-play\',\n command: () => {\n this.state = \'start\'\n },\n },\n {\n label: \'Pause\',\n icon: \'mdi-pause\',\n command: () => {\n this.state = \'pause\'\n },\n },\n {\n label: \'Stop\',\n icon: \'mdi-stop\',\n command: () => {\n this.state = \'stop\'\n },\n },\n {\n divider: true,\n },\n {\n label: \'Settings\',\n icon: \'mdi-cog\',\n command: () => {\n this.showSettingsDialog = true\n },\n },\n ],\n },\n ],\n settings: {\n secondsGraphed: {\n title: \'Seconds Graphed\',\n value: 1000,\n rules: [(value) => !!value || \'Required\'],\n },\n pointsSaved: {\n title: \'Points Saved\',\n value: 1000000,\n rules: [(value) => !!value || \'Required\'],\n },\n pointsGraphed: {\n title: \'Points Graphed\',\n value: 1000,\n rules: [(value) => !!value || \'Required\'],\n },\n },\n }\n },\n mounted: function () {\n this.grid = new Muuri(\'.grid\', {\n dragEnabled: true,\n layoutOnResize: true,\n // Only allow drags starting from the v-system-bar title\n dragHandle: \'.v-system-bar\',\n })\n // Sometimes when we move graphs, other graphs become non-interactive\n // This seems to fix that issue\n this.grid.on(\'move\', function (data) {\n data.item.getGrid().synchronize()\n })\n const previousConfig = this.getLocalStorageConfig()\n // If we\'re passed in the route then manually addItem\n if (\n this.$route.params.target &&\n this.$route.params.packet &&\n this.$route.params.item\n ) {\n this.addItem({\n targetName: this.$route.params.target.toUpperCase(),\n packetName: this.$route.params.packet.toUpperCase(),\n itemName: this.$route.params.item.toUpperCase(),\n })\n } else if (previousConfig) {\n this.openConfiguration(previousConfig)\n }\n },\n methods: {\n alertHandler: function (event) {\n this.alert = event.text\n this.alertType = event.type\n this.showAlert = true\n },\n setLocalStorageConfig: function (value) {\n localStorage[\'lastconfig__telemetry_grapher\'] = value\n },\n getLocalStorageConfig: function () {\n return localStorage[\'lastconfig__telemetry_grapher\']\n },\n graphSelected: function (id) {\n this.selectedGraphId = id\n },\n addItem: function (item, startGraphing = true) {\n this.$refs[`graph${this.selectedGraphId}`][0].addItems([item])\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 },\n closeAllGraphs: function () {\n // Make a copy of this.graphs to iterate on since closeGraph modifies in place\n for (let graph of [...this.graphs]) {\n this.closeGraph(graph)\n }\n this.counter = 0\n },\n minMaxGraph: function (id) {\n this.selectedGraphId = id\n setTimeout(\n () => {\n this.grid.refreshItems().layout()\n },\n MURRI_REFRESH_TIME * 2 // Double the time since there is more animation\n )\n },\n resize: function () {\n setTimeout(\n () => {\n this.grid.refreshItems().layout()\n },\n MURRI_REFRESH_TIME * 2 // Double the time since there is more animation\n )\n },\n graphStarted: function (time) {\n // Only set startTime once when notified by the first graph to start\n // This allows us to have a uniform start time on all graphs\n if (this.startTime === null) {\n this.startTime = time\n }\n },\n saveConfiguration: function (name) {\n const config = this.grid.getItems().map((item) => {\n // Map the gridItem id to the graph id\n const graphId = `graph${item.getElement().id.substring(8)}`\n const vueGraph = this.$refs[graphId][0]\n return {\n items: vueGraph.items,\n title: vueGraph.title,\n fullWidth: vueGraph.fullWidth,\n fullHeight: vueGraph.fullHeight,\n graphMinX: vueGraph.graphMinX,\n graphMaxX: vueGraph.graphMaxX,\n legendPosition: vueGraph.legendPosition,\n }\n })\n new OpenC3Api()\n .save_config(this.toolName, name, JSON.stringify(config))\n .then((response) => {\n this.setLocalStorageConfig(name)\n this.alertHandler({\n text: `Saved configuration: ${name}`,\n type: \'success\',\n })\n })\n .catch((error) => {\n if (error) {\n this.alertHandler({\n text: `Failed to save configuration: ${name}. ${error}`,\n type: \'error\',\n })\n }\n })\n },\n openConfiguration: function (name) {\n this.setLocalStorageConfig(name)\n new OpenC3Api()\n .load_config(this.toolName, name)\n .then((response) => {\n if (response) {\n this.loadConfiguration(response)\n }\n })\n .catch((error) => {\n if (error) {\n this.alertHandler({\n text: `Failed to open configuration: ${name}. ${error}`,\n type: \'error\',\n })\n this.setLocalStorageConfig(null)\n }\n })\n },\n async loadConfiguration(configStr) {\n this.closeAllGraphs()\n await this.$nextTick()\n const config = JSON.parse(configStr)\n for (let graph of config) {\n this.addGraph()\n }\n await this.$nextTick()\n const that = this\n config.forEach(function (graph, i) {\n let vueGraph = that.$refs[`graph${i}`][0]\n vueGraph.title = graph.title\n vueGraph.fullWidth = graph.fullWidth\n vueGraph.fullHeight = graph.fullHeight\n vueGraph.graphMinX = graph.graphMinX\n vueGraph.graphMaxX = graph.graphMaxX\n vueGraph.moveLegend(graph.legendPosition)\n vueGraph.addItems([...graph.items])\n })\n this.state = \'start\'\n },\n },\n}\n<\/script>\n\n<style lang="scss" scoped>\n.v-navigation-drawer {\n z-index: 2;\n}\n.theme--dark.v-navigation-drawer {\n background-color: var(--v-primary-darken2);\n}\n.grid {\n position: relative;\n}\n.item {\n position: absolute;\n z-index: 1;\n}\n.item.muuri-item-dragging {\n z-index: 3;\n}\n.item.muuri-item-releasing {\n z-index: 2;\n}\n.item.muuri-item-hidden {\n z-index: 0;\n}\n.item-content {\n position: relative;\n cursor: pointer;\n border-radius: 6px;\n margin: 5px;\n}\n\n.pulse {\n animation: pulse 1s infinite;\n}\n\n@keyframes pulse {\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.5;\n }\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"09f0e14d881f7a31e79c5dadad1907f91ad30fa6"},s=n[i]||(n[i]={});s[e]&&s[e].hash===t||(s[e]=a);var o=s[e];return we=function(){return o},o}we();var ke=(we().s[0]++,250),Ne={components:{Graph:W,OpenConfigDialog:K,SaveConfigDialog:ne,SettingsDialog:xe,TargetPacketItemChooser:re,TopBar:pe},data:function(){var e=this;return we().f[0]++,we().s[1]++,{alert:"",alertType:"success",showAlert:!1,title:"Telemetry Grapher",toolName:"telemetry-grapher",showOpenConfig:!1,showSaveConfig:!1,showSettingsDialog:!1,grid:null,state:"stop",startTime:null,graphs:[0],selectedGraphId:0,counter:1,menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){we().f[1]++,we().s[2]++,e.showOpenConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){we().f[2]++,we().s[3]++,e.showSaveConfig=!0}}]},{label:"Graph",items:[{label:"Add Graph",icon:"mdi-plus",command:function(){we().f[3]++,we().s[4]++,e.addGraph()}},{divider:!0},{label:"Start / Resume",icon:"mdi-play",command:function(){we().f[4]++,we().s[5]++,e.state="start"}},{label:"Pause",icon:"mdi-pause",command:function(){we().f[5]++,we().s[6]++,e.state="pause"}},{label:"Stop",icon:"mdi-stop",command:function(){we().f[6]++,we().s[7]++,e.state="stop"}},{divider:!0},{label:"Settings",icon:"mdi-cog",command:function(){we().f[7]++,we().s[8]++,e.showSettingsDialog=!0}}]}],settings:{secondsGraphed:{title:"Seconds Graphed",value:1e3,rules:[function(e){return we().f[8]++,we().s[9]++,we().b[0][0]++,!!e||(we().b[0][1]++,"Required")}]},pointsSaved:{title:"Points Saved",value:1e6,rules:[function(e){return we().f[9]++,we().s[10]++,we().b[1][0]++,!!e||(we().b[1][1]++,"Required")}]},pointsGraphed:{title:"Points Graphed",value:1e3,rules:[function(e){return we().f[10]++,we().s[11]++,we().b[2][0]++,!!e||(we().b[2][1]++,"Required")}]}}}},mounted:function(){we().f[11]++,we().s[12]++,this.grid=new ve.Z(".grid",{dragEnabled:!0,layoutOnResize:!0,dragHandle:".v-system-bar"}),we().s[13]++,this.grid.on("move",(function(e){we().f[12]++,we().s[14]++,e.item.getGrid().synchronize()}));var e=(we().s[15]++,this.getLocalStorageConfig());we().s[16]++,we().b[4][0]++,this.$route.params.target&&(we().b[4][1]++,this.$route.params.packet)&&(we().b[4][2]++,this.$route.params.item)?(we().b[3][0]++,we().s[17]++,this.addItem({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase(),itemName:this.$route.params.item.toUpperCase()})):(we().b[3][1]++,we().s[18]++,e?(we().b[5][0]++,we().s[19]++,this.openConfiguration(e)):we().b[5][1]++)},methods:{alertHandler:function(e){we().f[13]++,we().s[20]++,this.alert=e.text,we().s[21]++,this.alertType=e.type,we().s[22]++,this.showAlert=!0},setLocalStorageConfig:function(e){we().f[14]++,we().s[23]++,localStorage["lastconfig__telemetry_grapher"]=e},getLocalStorageConfig:function(){return we().f[15]++,we().s[24]++,localStorage["lastconfig__telemetry_grapher"]},graphSelected:function(e){we().f[16]++,we().s[25]++,this.selectedGraphId=e},addItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(we().b[6][0]++,!0);we().f[17]++,we().s[26]++,this.$refs["graph".concat(this.selectedGraphId)][0].addItems([e]),we().s[27]++,!0===t?(we().b[7][0]++,we().s[28]++,this.state="start"):we().b[7][1]++},addGraph:function(){we().f[18]++;var e=(we().s[29]++,this.counter);we().s[30]++,this.graphs.push(e),we().s[31]++,this.counter+=1,we().s[32]++,this.$nextTick((function(){var t=this;we().f[19]++;var n=(we().s[33]++,this.grid.add(this.$refs["gridItem".concat(e)],{active:!1}));we().s[34]++,this.grid.show(n),we().s[35]++,this.selectedGraphId=e,we().s[36]++,setTimeout((function(){we().f[20]++,we().s[37]++,t.grid.refreshItems().layout()}),ke)}))},closeGraph:function(e){we().f[21]++;var t=(we().s[38]++,this.grid.getItems([document.getElementById("gridItem".concat(e))]));we().s[39]++,this.grid.remove(t),we().s[40]++,this.graphs.splice(this.graphs.indexOf(e),1),we().s[41]++,this.selectedGraphId=null},closeAllGraphs:function(){we().f[22]++,we().s[42]++;for(var e=0,t=(0,r.Z)(this.graphs);e<t.length;e++){var n=t[e];we().s[43]++,this.closeGraph(n)}we().s[44]++,this.counter=0},minMaxGraph:function(e){var t=this;we().f[23]++,we().s[45]++,this.selectedGraphId=e,we().s[46]++,setTimeout((function(){we().f[24]++,we().s[47]++,t.grid.refreshItems().layout()}),2*ke)},resize:function(){var e=this;we().f[25]++,we().s[48]++,setTimeout((function(){we().f[26]++,we().s[49]++,e.grid.refreshItems().layout()}),2*ke)},graphStarted:function(e){we().f[27]++,we().s[50]++,null===this.startTime?(we().b[8][0]++,we().s[51]++,this.startTime=e):we().b[8][1]++},saveConfiguration:function(e){var t=this;we().f[28]++;var n=(we().s[52]++,this.grid.getItems().map((function(e){we().f[29]++;var n=(we().s[53]++,"graph".concat(e.getElement().id.substring(8))),i=(we().s[54]++,t.$refs[n][0]);return we().s[55]++,{items:i.items,title:i.title,fullWidth:i.fullWidth,fullHeight:i.fullHeight,graphMinX:i.graphMinX,graphMaxX:i.graphMaxX,legendPosition:i.legendPosition}})));we().s[56]++,(new C).save_config(this.toolName,e,JSON.stringify(n)).then((function(n){we().f[30]++,we().s[57]++,t.setLocalStorageConfig(e),we().s[58]++,t.alertHandler({text:"Saved configuration: ".concat(e),type:"success"})})).catch((function(n){we().f[31]++,we().s[59]++,n?(we().b[9][0]++,we().s[60]++,t.alertHandler({text:"Failed to save configuration: ".concat(e,". ").concat(n),type:"error"})):we().b[9][1]++}))},openConfiguration:function(e){var t=this;we().f[32]++,we().s[61]++,this.setLocalStorageConfig(e),we().s[62]++,(new C).load_config(this.toolName,e).then((function(e){we().f[33]++,we().s[63]++,e?(we().b[10][0]++,we().s[64]++,t.loadConfiguration(e)):we().b[10][1]++})).catch((function(n){we().f[34]++,we().s[65]++,n?(we().b[11][0]++,we().s[66]++,t.alertHandler({text:"Failed to open configuration: ".concat(e,". ").concat(n),type:"error"}),we().s[67]++,t.setLocalStorageConfig(null)):we().b[11][1]++}))},loadConfiguration:function(e){var t=this;return(0,l.Z)((0,s.Z)().mark((function n(){var i,a,l,c;return(0,s.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return we().f[35]++,we().s[68]++,t.closeAllGraphs(),we().s[69]++,n.next=6,t.$nextTick();case 6:we().s[70]++,i=JSON.parse(e),we().s[71]++,a=(0,o.Z)(i);try{for(a.s();!(l=a.n()).done;)l.value,we().s[72]++,t.addGraph()}catch(s){a.e(s)}finally{a.f()}return we().s[73]++,n.next=13,t.$nextTick();case 13:we().s[74]++,c=t,we().s[75]++,i.forEach((function(e,t){we().f[36]++;var n=(we().s[76]++,c.$refs["graph".concat(t)][0]);we().s[77]++,n.title=e.title,we().s[78]++,n.fullWidth=e.fullWidth,we().s[79]++,n.fullHeight=e.fullHeight,we().s[80]++,n.graphMinX=e.graphMinX,we().s[81]++,n.graphMaxX=e.graphMaxX,we().s[82]++,n.moveLegend(e.legendPosition),we().s[83]++,n.addItems((0,r.Z)(e.items))})),we().s[84]++,t.state="start";case 18:case"end":return n.stop()}}),n)})))()}}},Se=Ne,Ie=(n(4200),(0,G.Z)(Se,i,a,!1,null,"a295d204",null)),Te=Ie.exports},9829:function(e,t,n){"use strict";n.r(t);var i=n(3467),a=n.n(i),s=n(8715),o=n.n(s),l=o()(a());l.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"]=l},7249:function(e,t,n){"use strict";n.r(t);var i=n(3467),a=n.n(i),s=n(8715),o=n.n(s),l=o()(a());l.push([e.id,"#chart[data-v-335d365e]{background-color:var(--v-tertiary-darken2)}#chart[data-v-335d365e] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),t["default"]=l},7764:function(e,t,n){"use strict";n.r(t);var i=n(3467),a=n.n(i),s=n(8715),o=n.n(s),l=o()(a());l.push([e.id,".v-list[data-v-3237297b] .v-label{margin-left:5px}.v-list-item__icon[data-v-3237297b]{margin-right:15px!important}.v-list-item__title[data-v-3237297b]{color:#fff}",""]),t["default"]=l},9273:function(e,t,n){"use strict";n.r(t);var i=n(3467),a=n.n(i),s=n(8715),o=n.n(s),l=o()(a());l.push([e.id,".v-navigation-drawer[data-v-a295d204]{z-index:2}.theme--dark.v-navigation-drawer[data-v-a295d204]{background-color:var(--v-primary-darken2)}.grid[data-v-a295d204]{position:relative}.item[data-v-a295d204]{position:absolute;z-index:1}.item.muuri-item-dragging[data-v-a295d204]{z-index:3}.item.muuri-item-releasing[data-v-a295d204]{z-index:2}.item.muuri-item-hidden[data-v-a295d204]{z-index:0}.item-content[data-v-a295d204]{position:relative;cursor:pointer;border-radius:6px;margin:5px}.pulse[data-v-a295d204]{-webkit-animation:pulse-data-v-a295d204 1s infinite;animation:pulse-data-v-a295d204 1s infinite}@-webkit-keyframes pulse-data-v-a295d204{0%{opacity:1}50%{opacity:.5}}@keyframes pulse-data-v-a295d204{0%{opacity:1}50%{opacity:.5}}",""]),t["default"]=l},680:function(e,t,n){var i=n(9829);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("4d874f9a",i,!0,{sourceMap:!1,shadowMode:!1})},6146:function(e,t,n){var i=n(7249);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("b50c2682",i,!0,{sourceMap:!1,shadowMode:!1})},5741:function(e,t,n){var i=n(7764);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("9f637652",i,!0,{sourceMap:!1,shadowMode:!1})},4200:function(e,t,n){var i=n(9273);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(3514).Z;a("29069048",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=226.js.map