openc3-cosmos-tool-cmdsender 5.6.0 → 5.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/cmdsender/js/135.js +2 -0
- data/tools/cmdsender/js/135.js.map +1 -0
- data/tools/cmdsender/js/app.js +1 -1
- data/tools/cmdsender/js/app.js.map +1 -1
- metadata +4 -4
- data/tools/cmdsender/js/892.js +0 -2
- data/tools/cmdsender/js/892.js.map +0 -1
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openc3-cosmos-tool-cmdsender
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.6.
|
4
|
+
version: 5.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Melton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-04-
|
12
|
+
date: 2023-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: " This plugin adds the OpenC3 COSMOS Command Sender tool\n"
|
15
15
|
email:
|
@@ -24,10 +24,10 @@ files:
|
|
24
24
|
- Rakefile
|
25
25
|
- plugin.txt
|
26
26
|
- tools/cmdsender/index.html
|
27
|
+
- tools/cmdsender/js/135.js
|
28
|
+
- tools/cmdsender/js/135.js.map
|
27
29
|
- tools/cmdsender/js/351.js
|
28
30
|
- tools/cmdsender/js/351.js.map
|
29
|
-
- tools/cmdsender/js/892.js
|
30
|
-
- tools/cmdsender/js/892.js.map
|
31
31
|
- tools/cmdsender/js/app.js
|
32
32
|
- tools/cmdsender/js/app.js.map
|
33
33
|
homepage: https://github.com/OpenC3/openc3
|
data/tools/cmdsender/js/892.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_cmdsender"]=self["webpackChunk_openc3_cosmos_tool_cmdsender"]||[]).push([[892],{8367:function(e,n,t){"use strict";t(7950),t(1850),t(2501),t(8188),t(8233);function l(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/utilities.js",n="f90e29509e2bb76b4e2ed03c5a37c30beb30d512",t=new Function("return this")(),a="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/utilities.js",statementMap:{0:{start:{line:27,column:6},end:{line:29,column:7}},1:{start:{line:28,column:8},end:{line:28,column:19}},2:{start:{line:31,column:6},end:{line:33,column:7}},3:{start:{line:32,column:8},end:{line:32,column:19}},4:{start:{line:34,column:6},end:{line:34,column:18}},5:{start:{line:39,column:6},end:{line:41,column:7}},6:{start:{line:40,column:8},end:{line:40,column:19}},7:{start:{line:44,column:6},end:{line:46,column:7}},8:{start:{line:45,column:8},end:{line:45,column:19}},9:{start:{line:47,column:6},end:{line:47,column:18}},10:{start:{line:52,column:6},end:{line:54,column:7}},11:{start:{line:53,column:8},end:{line:53,column:19}},12:{start:{line:55,column:6},end:{line:55,column:18}},13:{start:{line:60,column:6},end:{line:62,column:7}},14:{start:{line:61,column:8},end:{line:61,column:18}},15:{start:{line:63,column:22},end:{line:63,column:35}},16:{start:{line:64,column:6},end:{line:66,column:7}},17:{start:{line:65,column:8},end:{line:65,column:18}},18:{start:{line:67,column:21},end:{line:67,column:47}},19:{start:{line:68,column:6},end:{line:70,column:7}},20:{start:{line:69,column:8},end:{line:69,column:18}},21:{start:{line:71,column:6},end:{line:71,column:29}},22:{start:{line:75,column:14},end:{line:75,column:15}},23:{start:{line:76,column:24},end:{line:76,column:26}},24:{start:{line:77,column:6},end:{line:111,column:7}},25:{start:{line:78,column:26},end:{line:78,column:38}},26:{start:{line:79,column:8},end:{line:79,column:26}},27:{start:{line:80,column:8},end:{line:91,column:9}},28:{start:{line:81,column:10},end:{line:87,column:11}},29:{start:{line:84,column:12},end:{line:84,column:47}},30:{start:{line:86,column:12},end:{line:86,column:35}},31:{start:{line:88,column:10},end:{line:90,column:11}},32:{start:{line:89,column:12},end:{line:89,column:31}},33:{start:{line:92,column:8},end:{line:92,column:27}},34:{start:{line:93,column:13},end:{line:111,column:7}},35:{start:{line:96,column:8},end:{line:108,column:9}},36:{start:{line:98,column:10},end:{line:98,column:28}},37:{start:{line:99,column:10},end:{line:105,column:11}},38:{start:{line:100,column:25},end:{line:100,column:64}},39:{start:{line:101,column:12},end:{line:103,column:13}},40:{start:{line:102,column:14},end:{line:102,column:35}},41:{start:{line:104,column:12},end:{line:104,column:33}},42:{start:{line:106,column:15},end:{line:108,column:9}},43:{start:{line:107,column:10},end:{line:107,column:33}},44:{start:{line:110,column:8},end:{line:110,column:35}},45:{start:{line:112,column:6},end:{line:112,column:24}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:4},end:{line:25,column:5}},loc:{start:{line:25,column:17},end:{line:35,column:5}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:37,column:4},end:{line:37,column:5}},loc:{start:{line:37,column:15},end:{line:48,column:5}},line:37},2:{name:"(anonymous_2)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:17},end:{line:56,column:5}},line:50},3:{name:"(anonymous_3)",decl:{start:{line:58,column:4},end:{line:58,column:5}},loc:{start:{line:58,column:22},end:{line:72,column:5}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:27},end:{line:113,column:5}},line:74}},branchMap:{0:{loc:{start:{line:27,column:6},end:{line:29,column:7}},type:"if",locations:[{start:{line:27,column:6},end:{line:29,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:27},1:{loc:{start:{line:31,column:6},end:{line:33,column:7}},type:"if",locations:[{start:{line:31,column:6},end:{line:33,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:31},2:{loc:{start:{line:39,column:6},end:{line:41,column:7}},type:"if",locations:[{start:{line:39,column:6},end:{line:41,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:39},3:{loc:{start:{line:44,column:6},end:{line:46,column:7}},type:"if",locations:[{start:{line:44,column:6},end:{line:46,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},4:{loc:{start:{line:52,column:6},end:{line:54,column:7}},type:"if",locations:[{start:{line:52,column:6},end:{line:54,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:52},5:{loc:{start:{line:60,column:6},end:{line:62,column:7}},type:"if",locations:[{start:{line:60,column:6},end:{line:62,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:60},6:{loc:{start:{line:64,column:6},end:{line:66,column:7}},type:"if",locations:[{start:{line:64,column:6},end:{line:66,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:64},7:{loc:{start:{line:64,column:10},end:{line:64,column:48}},type:"binary-expr",locations:[{start:{line:64,column:10},end:{line:64,column:27}},{start:{line:64,column:31},end:{line:64,column:48}}],line:64},8:{loc:{start:{line:68,column:6},end:{line:70,column:7}},type:"if",locations:[{start:{line:68,column:6},end:{line:70,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:68},9:{loc:{start:{line:77,column:6},end:{line:111,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:111,column:7}},{start:{line:93,column:13},end:{line:111,column:7}}],line:77},10:{loc:{start:{line:81,column:10},end:{line:87,column:11}},type:"if",locations:[{start:{line:81,column:10},end:{line:87,column:11}},{start:{line:85,column:17},end:{line:87,column:11}}],line:81},11:{loc:{start:{line:88,column:10},end:{line:90,column:11}},type:"if",locations:[{start:{line:88,column:10},end:{line:90,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:88},12:{loc:{start:{line:93,column:13},end:{line:111,column:7}},type:"if",locations:[{start:{line:93,column:13},end:{line:111,column:7}},{start:{line:109,column:13},end:{line:111,column:7}}],line:93},13:{loc:{start:{line:96,column:8},end:{line:108,column:9}},type:"if",locations:[{start:{line:96,column:8},end:{line:108,column:9}},{start:{line:106,column:15},end:{line:108,column:9}}],line:96},14:{loc:{start:{line:96,column:12},end:{line:96,column:54}},type:"binary-expr",locations:[{start:{line:96,column:12},end:{line:96,column:41}},{start:{line:96,column:45},end:{line:96,column:54}}],line:96},15:{loc:{start:{line:101,column:12},end:{line:103,column:13}},type:"if",locations:[{start:{line:101,column:12},end:{line:103,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:101},16:{loc:{start:{line:106,column:15},end:{line:108,column:9}},type:"if",locations:[{start:{line:106,column:15},end:{line:108,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:106},17:{loc:{start:{line:106,column:19},end:{line:106,column:60}},type:"binary-expr",locations:[{start:{line:106,column:19},end:{line:106,column:47}},{start:{line:106,column:51},end:{line:106,column:60}}],line:106}},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},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f90e29509e2bb76b4e2ed03c5a37c30beb30d512"},s=t[a]||(t[a]={});s[e]&&s[e].hash===n||(s[e]=o);var i=s[e];return l=function(){return i},i}l(),n["Z"]={methods:{isFloat:function(e){return l().f[0]++,l().s[0]++,/^\s*[-+]?\d*\.\d+\s*$/.test(e)?(l().b[0][0]++,l().s[1]++,!0):(l().b[0][1]++,l().s[2]++,/^\s*[-+]?(\d+((\.\d+)?)|(\.\d+))[eE][-+]?\d+\s*$/.test(e)?(l().b[1][0]++,l().s[3]++,!0):(l().b[1][1]++,l().s[4]++,!1))},isInt:function(e){return l().f[1]++,l().s[5]++,/^\s*[-+]?\d+\s*$/.test(e)?(l().b[2][0]++,l().s[6]++,!0):(l().b[2][1]++,l().s[7]++,/^\s*0[xX][\dabcdefABCDEF]+\s*$/.test(e)?(l().b[3][0]++,l().s[8]++,!0):(l().b[3][1]++,l().s[9]++,!1))},isArray:function(e){return l().f[2]++,l().s[10]++,/^\s*\[.*\]\s*$/.test(e)?(l().b[4][0]++,l().s[11]++,!0):(l().b[4][1]++,l().s[12]++,!1)},removeQuotes:function(e){if(l().f[3]++,l().s[13]++,e.length<2)return l().b[5][0]++,l().s[14]++,e;l().b[5][1]++;var n=(l().s[15]++,e.charAt(0));if(l().s[16]++,l().b[7][0]++,'"'!==n&&(l().b[7][1]++,"'"!==n))return l().b[6][0]++,l().s[17]++,e;l().b[6][1]++;var t=(l().s[18]++,e.charAt(e.length-1));return l().s[19]++,n!==t?(l().b[8][0]++,l().s[20]++,e):(l().b[8][1]++,l().s[21]++,e.slice(1,-1))},convertToString:function(e){l().f[4]++;var n=(l().s[22]++,0),t=(l().s[23]++,"");if(l().s[24]++,"Array"===Object.prototype.toString.call(e).slice(8,-1)){l().b[9][0]++;var a=(l().s[25]++,e.length);for(l().s[26]++,t="[ ",l().s[27]++,n=0;n<a;n++)l().s[28]++,"String"===Object.prototype.toString.call(e[n]).slice(8,-1)?(l().b[10][0]++,l().s[29]++,t+='"'+e[n]+'"'):(l().b[10][1]++,l().s[30]++,t+=e[n]),l().s[31]++,n!==a-1?(l().b[11][0]++,l().s[32]++,t+=", "):l().b[11][1]++;l().s[33]++,t+=" ]"}else if(l().b[9][1]++,l().s[34]++,"Object"===Object.prototype.toString.call(e).slice(8,-1))if(l().b[12][0]++,l().s[35]++,l().b[14][0]++,"String"===e.json_class&&(l().b[14][1]++,e.raw))for(l().b[13][0]++,l().s[36]++,t="0x",l().s[37]++,n=0;n<e.raw.length;n++){var o=(l().s[38]++,e.raw[n].toString(16).toUpperCase());l().s[39]++,o.length<2?(l().b[15][0]++,l().s[40]++,o="0"+o):l().b[15][1]++,l().s[41]++,t+=o}else l().b[13][1]++,l().s[42]++,l().b[17][0]++,"Float"===e.json_class&&(l().b[17][1]++,e.raw)?(l().b[16][0]++,l().s[43]++,t=e.raw):l().b[16][1]++;else l().b[12][1]++,l().s[44]++,t=String(e);return l().s[45]++,t}}}},6129:function(e,n,t){"use strict";var l=t(6964),a=t(5789),o=t(9502),s=t(9373),i=function(){var e=(0,o.Z)((0,a.Z)().mark((function e(n,t){var l,o,i,c,r,u,m,d,_,A,v=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l=v.length>2&&void 0!==v[2]?v[2]:{},o=l.data,i=l.params,c=void 0===i?{}:i,r=l.headers,u=l.noAuth,m=void 0!==u&&u,d=l.noScope,_=void 0!==d&&d,m){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:A=e.sent,A&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:r["Authorization"]=localStorage.openc3Token;case 13:return _||c["scope"]||(c["scope"]=window.openc3Scope),e.abrupt("return",(0,s.Z)({method:n,url:t,data:o,params:c,headers:r}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(n,t){return e.apply(this,arguments)}}(),c={Accept:"application/json"},r=(0,l.Z)((0,l.Z)({},c),{},{"Content-Type":"application/json"});n["Z"]={get:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,l=n.headers,a=void 0===l?c:l,o=n.noScope,s=n.noAuth;return i("get",e,{params:t,headers:a,noScope:o,noAuth:s})},put:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,l=n.params,a=n.headers,o=void 0===a?r:a,s=n.noScope,c=n.noAuth;return i("put",e,{data:t,params:l,headers:o,noScope:s,noAuth:c})},post:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,l=n.params,a=n.headers,o=void 0===a?r:a,s=n.noScope,c=n.noAuth;return i("post",e,{data:t,params:l,headers:o,noScope:s,noAuth:c})},delete:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,l=n.headers,a=void 0===l?c:l,o=n.noScope,s=n.noAuth;return i("delete",e,{params:t,headers:a,noScope:o,noAuth:s})}}},9373:function(e,n,t){"use strict";t(9529),t(1235),t(8188),t(8233);var l=t(9644),a=t.n(l),o=t(4091),s=new o["default"],i=a().create({baseURL:location.origin,timeout:6e4,params:{}});i.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var n,t,l,a,o,i,c,r,u,m;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var d="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(d+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(l=t.config)&&void 0!==l&&l.data&&(d+="".concat(e.response.config.data," ")),null!==(a=e.response)&&void 0!==a&&null!==(o=a.data)&&void 0!==o&&o.message)d+="".concat(e.response.data.message);else if(null!==(i=e.response)&&void 0!==i&&null!==(c=i.data)&&void 0!==c&&c.exception)d+="".concat(e.response.data.exception);else if(null!==(r=e.response)&&void 0!==r&&null!==(u=r.data)&&void 0!==u&&null!==(m=u.error)&&void 0!==m&&m.message)e.response.data.error.class&&(d+="".concat(e.response.data.error.class," ")),d+="".concat(e.response.data.error.message);else{var _;d+="".concat(null===(_=e.response)||void 0===_?void 0:_.data)}throw s.$notify&&s.$notify.serious({title:"Network error",body:d}),e}throw e})),n["Z"]=i},8392:function(e,n,t){"use strict";t.d(n,{k:function(){return m}});var l=t(6259),a=t(5789),o=t(6964),s=t(9502),i=t(426),c=t(7871),r=t(2261),u=(t(1372),t(1245),t(7950),t(8178),t(9529),t(8188),t(3675),t(4898),t(5825),t(7170),t(8857),t(8329),t(6279),t(427),t(171),t(7093),t(1159),t(2516),t(4349),t(5273),t(6729),t(1801),t(574),t(5787),t(9271),t(3160),t(5688),t(3157),t(3333),t(315),t(556),t(9224),t(2649),t(14),t(1996),t(3450),t(7233),t(8673),t(5734),t(8233),t(9373)),m=function(){function e(){(0,i.Z)(this,e),(0,r.Z)(this,"id",1)}return(0,c.Z)(e,[{key:"exec",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t){var l,s,i,c,r,m=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=m.length>2&&void 0!==m[2]?m[2]:{},s=m.length>3&&void 0!==m[3]?m[3]:{},e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:i=e.sent,i&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:return this.id=this.id+1,e.prev=13,l["scope"]=window.openc3Scope,e.next=17,u.Z.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:t,id:this.id,keyword_params:l},{headers:(0,o.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},s)});case 17:return c=e.sent,e.abrupt("return",c.data.result);case 21:throw e.prev=21,e.t1=e["catch"](13),r=new Error,e.t1.response?(r.name=e.t1.response.data.error.data.class,r.message=e.t1.response.data.error.data.message):e.t1.request?(r.name="Request error",r.message="Request error, no response received"):r.name="Unknown error",r;case 26:case"end":return e.stop()}}),e,this,[[2,9],[13,21]])})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,l.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(n){n&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,n){return this.exec("map_target_to_interface",[e,n])}},{key:"connect_interface",value:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),l=1;l<n;l++)t[l-1]=arguments[l];return t.length>0?this.exec("connect_interface",[e].concat(t)):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,n,t){return this.exec("get_item",[e,n,t])}},{key:"get_parameter",value:function(e,n,t){return this.exec("get_parameter",[e,n,t])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,n){return this.exec("get_telemetry",[e,n])}},{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,s.Z)((0,a.Z)().mark((function e(n,t,l){var o,s,i,c,r,u=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:30,e.next=3,this.exec("get_tlm_packet",[n,t],{type:l,stale_time:o});case 3:if(s=e.sent,null!=s)for(i=s.length,c=null,r=0;r<i;r++)c=this.decode_openc3_type(s[r][1]),null!==c&&(s[r][1]=c);return e.abrupt("return",s);case 6:case"end":return e.stop()}}),e,this)})));function n(n,t,l){return e.apply(this,arguments)}return n}()},{key:"get_packet_derived_items",value:function(e,n){return this.exec("get_packet_derived_items",[e,n])}},{key:"get_tlm_buffer",value:function(e,n){return this.exec("get_tlm_buffer",[e,n])}},{key:"get_tlm_values",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var t,l,o,s,i,c=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>1&&void 0!==c[1]?c[1]:30,e.next=3,this.exec("get_tlm_values",[n],{stale_time:t});case 3:for(l=e.sent,o=l[0].length,s=null,i=0;i<o;i++)s=this.decode_openc3_type(l[0][i]),null!==s&&(l[0][i]=s);return e.abrupt("return",l);case 8:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()},{key:"get_limits",value:function(e,n,t){return this.exec("get_limits",[e,n,t])}},{key:"tlm",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t,l){var o,s,i,c,r=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=r.length>3&&void 0!==r[3]?r[3]:"CONVERTED",s=null,void 0!==t){e.next=8;break}return e.next=5,this.exec("tlm",[n]);case 5:s=e.sent,e.next=24;break;case 8:if(void 0!==l){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){e.next=15;break}return e.next=12,this.exec("tlm",[n],{type:t});case 12:s=e.sent,e.next=19;break;case 15:throw i=new Error,i.name="TypeError",i.message="Invalid data type ".concat(t,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),i;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[n,t,l],{type:o});case 23:s=e.sent;case 24:return c=this.decode_openc3_type(s),null!==c&&(s=c),e.abrupt("return",s);case 27:case"end":return e.stop()}}),e,this)})));function n(n,t,l){return e.apply(this,arguments)}return n}()},{key:"inject_tlm",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n,t){var l,o,s=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=s.length>2&&void 0!==s[2]?s[2]:null,o=s.length>3&&void 0!==s[3]?s[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[n,t,l],{type:o});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"set_tlm",value:function(e,n,t,l){return this.exec("set_tlm",[e,n,t],{type:l})}},{key:"override_tlm",value:function(e,n,t,l){return this.exec("override_tlm",[e,n,t],{type:l})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,n,t,l){return this.exec("normalize_tlm",[e,n,t],{type:l})}},{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,n){return this.exec("get_command",[e,n])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,n,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,n,t,l])}},{key:"get_cmd_buffer",value:function(e,n){return this.exec("get_cmd_buffer",[e,n])}},{key:"_cmd",value:function(e,n,t,l,a){var o=null;for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(o=this.encode_openc3_type(l[s]),null!==o&&(l[s]=o));return this.exec(e,[n,t,l],{},a)}},{key:"get_cmd_hazardous",value:function(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}},{key:"cmd",value:function(e,n,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===n?this.exec("cmd",e,{},l):this._cmd("cmd",e,n,t,l)}},{key:"cmd_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}},{key:"cmd_raw",value:function(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}},{key:"cmd_raw_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}},{key:"cmd_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}},{key:"cmd_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}},{key:"cmd_raw_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}},{key:"cmd_raw_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,n){return this.exec("send_raw",[e,n])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,n){return this.exec("load_config",[e,n])}},{key:"save_config",value:function(e,n,t){return this.exec("save_config",[e,n,t])}},{key:"delete_config",value:function(e,n){return this.exec("delete_config",[e,n])}},{key:"enable_limits",value:function(e,n,t){return this.exec("enable_limits",[e,n,t])}},{key:"disable_limits",value:function(e,n,t){return this.exec("disable_limits",[e,n,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,n){return this.exec("save_setting",[e,n])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,s.Z)((0,a.Z)().mark((function e(n){var t,l,o;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return t=(new TextEncoder).encode(n),e.next=4,crypto.subtle.digest("SHA-256",t);case 4:return l=e.sent,o=new Uint8Array(l),e.abrupt("return",Array.from(o).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}()}]),e}()},7663:function(e,n,t){"use strict";function l(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",n="b7759cb4d1c55b2a21307595f9f38a31317ad3b3",t=new Function("return this")(),a="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:871}},4:{start:{line:1,column:617},end:{line:1,column:659}},5:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:601},end:{line:1,column:602}},loc:{start:{line:1,column:616},end:{line:1,column:660}},line:1}},branchMap:{0:{loc:{start:{line:1,column:77},end:{line:1,column:867}},type:"cond-expr",locations:[{start:{line:1,column:99},end:{line:1,column:244}},{start:{line:1,column:245},end:{line:1,column:867}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b7759cb4d1c55b2a21307595f9f38a31317ad3b3"},s=t[a]||(t[a]={});s[e]&&s[e].hash===n||(s[e]=o);var i=s[e];return l=function(){return i},i}t.d(n,{Z:function(){return _}}),l(),l().s[0]++;var a=function(){l().f[0]++;var e=(l().s[1]++,this),n=(l().s[2]++,e._self._c);return l().s[3]++,n("div",[null===e.states?(l().b[0][0]++,n("v-text-field",{attrs:{value:e.textfieldValue,"hide-details":"",dense:"","data-test":"cmd-param-value"},on:{change:e.handleChange}})):(l().b[0][1]++,n("v-container",[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",[n("v-overflow-btn",{class:e.stateClass(),staticStyle:{},attrs:{items:e.states,"item-text":"label","item-value":"value",label:"State","hide-details":"",dense:"","data-test":"cmd-param-select"},on:{change:e.handleStateChange},model:{value:e.value.selected_state,callback:function(n){l().f[1]++,l().s[4]++,e.$set(e.value,"selected_state",n)},expression:"value.selected_state"}})],1),n("v-col",[n("v-text-field",{attrs:{value:e.stateValue,"hide-details":"",dense:"","data-test":"cmd-param-value"},on:{change:e.handleChange}})],1)],1)],1))],1)},o=(l().s[5]++,[]),s=t(8081),i=(t(8188),t(8233),t(6728),t(8995),t(8367));function c(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",n="adfef62a7e40b60133b655432b2e00d702653f8c",t=new Function("return this")(),l="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",statementMap:{0:{start:{line:17,column:22},end:{line:24,column:7}},1:{start:{line:28,column:4},end:{line:30,column:5}},2:{start:{line:33,column:4},end:{line:33,column:37}},3:{start:{line:37,column:6},end:{line:37,column:49}},4:{start:{line:40,column:6},end:{line:44,column:7}},5:{start:{line:41,column:8},end:{line:41,column:49}},6:{start:{line:43,column:8},end:{line:43,column:29}},7:{start:{line:48,column:6},end:{line:70,column:7}},8:{start:{line:49,column:25},end:{line:49,column:27}},9:{start:{line:50,column:8},end:{line:59,column:9}},10:{start:{line:51,column:10},end:{line:58,column:11}},11:{start:{line:52,column:12},end:{line:57,column:14}},12:{start:{line:60,column:8},end:{line:64,column:10}},13:{start:{line:67,column:8},end:{line:67,column:25}},14:{start:{line:69,column:8},end:{line:69,column:19}},15:{start:{line:75,column:6},end:{line:75,column:61}},16:{start:{line:78,column:6},end:{line:78,column:28}},17:{start:{line:79,column:6},end:{line:79,column:37}},18:{start:{line:80,column:6},end:{line:111,column:7}},19:{start:{line:81,column:29},end:{line:81,column:47}},20:{start:{line:82,column:35},end:{line:82,column:53}},21:{start:{line:83,column:8},end:{line:106,column:9}},22:{start:{line:84,column:10},end:{line:105,column:11}},23:{start:{line:85,column:12},end:{line:85,column:44}},24:{start:{line:86,column:12},end:{line:86,column:46}},25:{start:{line:87,column:12},end:{line:91,column:13}},26:{start:{line:88,column:14},end:{line:88,column:42}},27:{start:{line:90,column:14},end:{line:90,column:41}},28:{start:{line:92,column:12},end:{line:92,column:17}},29:{start:{line:94,column:17},end:{line:105,column:11}},30:{start:{line:95,column:12},end:{line:95,column:34}},31:{start:{line:96,column:12},end:{line:96,column:46}},32:{start:{line:97,column:12},end:{line:101,column:13}},33:{start:{line:98,column:14},end:{line:98,column:42}},34:{start:{line:100,column:14},end:{line:100,column:41}},35:{start:{line:102,column:12},end:{line:102,column:17}},36:{start:{line:104,column:12},end:{line:104,column:40}},37:{start:{line:107,column:8},end:{line:107,column:50}},38:{start:{line:108,column:8},end:{line:108,column:62}},39:{start:{line:110,column:8},end:{line:110,column:40}},40:{start:{line:112,column:6},end:{line:112,column:37}},41:{start:{line:116,column:33},end:{line:116,column:37}},42:{start:{line:117,column:27},end:{line:117,column:31}},43:{start:{line:118,column:6},end:{line:129,column:7}},44:{start:{line:118,column:23},end:{line:118,column:24}},45:{start:{line:119,column:8},end:{line:128,column:9}},46:{start:{line:120,column:10},end:{line:124,column:11}},47:{start:{line:121,column:12},end:{line:121,column:40}},48:{start:{line:123,column:12},end:{line:123,column:39}},49:{start:{line:125,column:10},end:{line:125,column:57}},50:{start:{line:126,column:10},end:{line:126,column:32}},51:{start:{line:127,column:10},end:{line:127,column:15}},52:{start:{line:130,column:6},end:{line:130,column:60}},53:{start:{line:131,column:6},end:{line:140,column:7}},54:{start:{line:132,column:8},end:{line:132,column:36}},55:{start:{line:133,column:8},end:{line:133,column:48}},56:{start:{line:138,column:8},end:{line:138,column:39}},57:{start:{line:139,column:8},end:{line:139,column:39}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:17,column:15},end:{line:17,column:16}},loc:{start:{line:17,column:22},end:{line:24,column:7}},line:17},1:{name:"(anonymous_1)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:9},end:{line:31,column:3}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:32,column:2},end:{line:32,column:3}},loc:{start:{line:32,column:12},end:{line:34,column:3}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:36,column:4},end:{line:36,column:5}},loc:{start:{line:36,column:21},end:{line:38,column:5}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:39,column:4},end:{line:39,column:5}},loc:{start:{line:39,column:17},end:{line:45,column:5}},line:39},5:{name:"(anonymous_5)",decl:{start:{line:46,column:4},end:{line:46,column:5}},loc:{start:{line:46,column:13},end:{line:71,column:5}},line:46},6:{name:"(anonymous_6)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:17},end:{line:76,column:5}},line:74},7:{name:"(anonymous_7)",decl:{start:{line:77,column:4},end:{line:77,column:5}},loc:{start:{line:77,column:24},end:{line:113,column:5}},line:77},8:{name:"(anonymous_8)",decl:{start:{line:115,column:4},end:{line:115,column:5}},loc:{start:{line:115,column:29},end:{line:141,column:5}},line:115}},branchMap:{0:{loc:{start:{line:40,column:6},end:{line:44,column:7}},type:"if",locations:[{start:{line:40,column:6},end:{line:44,column:7}},{start:{line:42,column:13},end:{line:44,column:7}}],line:40},1:{loc:{start:{line:48,column:6},end:{line:70,column:7}},type:"if",locations:[{start:{line:48,column:6},end:{line:70,column:7}},{start:{line:68,column:13},end:{line:70,column:7}}],line:48},2:{loc:{start:{line:51,column:10},end:{line:58,column:11}},type:"if",locations:[{start:{line:51,column:10},end:{line:58,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:51},3:{loc:{start:{line:75,column:13},end:{line:75,column:61}},type:"cond-expr",locations:[{start:{line:75,column:36},end:{line:75,column:52}},{start:{line:75,column:55},end:{line:75,column:61}}],line:75},4:{loc:{start:{line:80,column:6},end:{line:111,column:7}},type:"if",locations:[{start:{line:80,column:6},end:{line:111,column:7}},{start:{line:109,column:13},end:{line:111,column:7}}],line:80},5:{loc:{start:{line:84,column:10},end:{line:105,column:11}},type:"if",locations:[{start:{line:84,column:10},end:{line:105,column:11}},{start:{line:94,column:17},end:{line:105,column:11}}],line:84},6:{loc:{start:{line:87,column:12},end:{line:91,column:13}},type:"if",locations:[{start:{line:87,column:12},end:{line:91,column:13}},{start:{line:89,column:19},end:{line:91,column:13}}],line:87},7:{loc:{start:{line:94,column:17},end:{line:105,column:11}},type:"if",locations:[{start:{line:94,column:17},end:{line:105,column:11}},{start:{line:103,column:17},end:{line:105,column:11}}],line:94},8:{loc:{start:{line:97,column:12},end:{line:101,column:13}},type:"if",locations:[{start:{line:97,column:12},end:{line:101,column:13}},{start:{line:99,column:19},end:{line:101,column:13}}],line:97},9:{loc:{start:{line:119,column:8},end:{line:128,column:9}},type:"if",locations:[{start:{line:119,column:8},end:{line:128,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:119},10:{loc:{start:{line:120,column:10},end:{line:124,column:11}},type:"if",locations:[{start:{line:120,column:10},end:{line:124,column:11}},{start:{line:122,column:17},end:{line:124,column:11}}],line:120},11:{loc:{start:{line:131,column:6},end:{line:140,column:7}},type:"if",locations:[{start:{line:131,column:6},end:{line:140,column:7}},{start:{line:137,column:13},end:{line:140,column:7}}],line:131}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0]},inputSourceMap:{version:3,sources:["CommandParameterEditor.vue"],names:[],mappings:";AAgEA;;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;;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;;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",file:"CommandParameterEditor.vue",sourceRoot:"src/tools/CommandSender",sourcesContent:['\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-text-field\n v-if="states === null"\n :value="textfieldValue"\n hide-details\n dense\n @change="handleChange"\n data-test="cmd-param-value"\n />\n <v-container v-else>\n <v-row no-gutters>\n <v-col>\n <v-overflow-btn\n :items="states"\n v-model="value.selected_state"\n @change="handleStateChange"\n item-text="label"\n item-value="value"\n label="State"\n style="primary"\n :class="stateClass()"\n hide-details\n dense\n data-test="cmd-param-select"\n />\n </v-col>\n <v-col>\n <v-text-field\n :value="stateValue"\n @change="handleChange"\n hide-details\n dense\n data-test="cmd-param-value"\n />\n </v-col>\n </v-row>\n </v-container>\n </div>\n</template>\n\n<script>\nimport Utilities from \'@/tools/CommandSender/utilities\'\n\nexport default {\n mixins: [Utilities],\n model: {\n prop: \'initialValue\',\n event: \'input\',\n },\n props: {\n statesInHex: {\n type: Boolean,\n default: false,\n },\n initialValue: {\n type: Object,\n default: () => ({\n val: \'\',\n states: null,\n selected_state: null,\n selected_state_label: \'\',\n manual_value: null,\n hazardous: false,\n }),\n },\n },\n data() {\n return {\n value: this.initialValue,\n }\n },\n created() {\n this.handleChange(this.value.val)\n },\n computed: {\n textfieldValue() {\n return this.convertToString(this.value.val)\n },\n stateValue() {\n if (this.statesInHex) {\n return \'0x\' + this.value.val.toString(16)\n } else {\n return this.value.val\n }\n },\n states() {\n // check using != because compare with null\n if (this.value.states != null) {\n var calcStates = []\n for (var key in this.value.states) {\n if (Object.prototype.hasOwnProperty.call(this.value.states, key)) {\n calcStates.push({\n label: key,\n value: this.value.states[key].value,\n // states which are not hazardous don\'t have this property set so they are undefined\n hazardous: this.value.states[key].hazardous,\n })\n }\n }\n calcStates.push({\n label: \'MANUALLY ENTERED\',\n value: \'MANUALLY ENTERED\',\n hazardous: undefined, // see above\n })\n\n // TBD pick default better (use actual default instead of just first item in list)\n return calcStates\n } else {\n return null\n }\n },\n },\n methods: {\n stateClass() {\n return this.value.hazardous ? \'hazardous mr-4\' : \'mr-4\'\n },\n handleChange(value) {\n this.value.val = value\n this.value.manual_value = value\n if (this.value.states) {\n var selected_state = \'MANUALLY ENTERED\'\n var selected_state_label = \'MANUALLY_ENTERED\'\n for (const state of this.states) {\n if (state.value === parseInt(value)) {\n selected_state = parseInt(value)\n selected_state_label = state.label\n if (state.hazardous === undefined) {\n this.value.hazardous = false\n } else {\n this.value.hazardous = true\n }\n break\n // If they have ascii states the value might match the state value\n } else if (state.value === value) {\n selected_state = value\n selected_state_label = state.label\n if (state.hazardous === undefined) {\n this.value.hazardous = false\n } else {\n this.value.hazardous = true\n }\n break\n } else {\n this.value.hazardous = false\n }\n }\n this.value.selected_state = selected_state\n this.value.selected_state_label = selected_state_label\n } else {\n this.value.selected_state = null\n }\n this.$emit(\'input\', this.value)\n },\n\n handleStateChange(value) {\n var selected_state_label = null\n var selected_state = null\n for (var index = 0; index < this.states.length; index++) {\n if (value === this.states[index].value) {\n if (this.states[index].hazardous === undefined) {\n this.value.hazardous = false\n } else {\n this.value.hazardous = true\n }\n selected_state_label = this.states[index].label\n selected_state = value\n break\n }\n }\n this.value.selected_state_label = selected_state_label\n if (selected_state_label === \'MANUALLY ENTERED\') {\n this.value.hazardous = false\n this.value.val = this.value.manual_value\n // Stop propagation of the click event so the editor stays active\n // to let the operator enter a manual value.\n // event.originalEvent.stopPropagation()\n } else {\n this.value.val = selected_state\n this.$emit(\'input\', this.value)\n }\n },\n },\n}\n<\/script>\n<style scoped>\n/* This allows Value or State selection to be wider and show state names */\n.container :deep(.v-select__selections) {\n width: auto;\n}\n.v-overflow-btn {\n margin-top: 0px;\n}\n.container {\n padding: 0px;\n}\n.hazardous :deep(.v-select__selection) {\n color: rgb(255, 220, 0);\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"adfef62a7e40b60133b655432b2e00d702653f8c"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=a);var s=o[e];return c=function(){return s},s}c();var r={mixins:[i.Z],model:{prop:"initialValue",event:"input"},props:{statesInHex:{type:Boolean,default:!1},initialValue:{type:Object,default:function(){return c().f[0]++,c().s[0]++,{val:"",states:null,selected_state:null,selected_state_label:"",manual_value:null,hazardous:!1}}}},data:function(){return c().f[1]++,c().s[1]++,{value:this.initialValue}},created:function(){c().f[2]++,c().s[2]++,this.handleChange(this.value.val)},computed:{textfieldValue:function(){return c().f[3]++,c().s[3]++,this.convertToString(this.value.val)},stateValue:function(){return c().f[4]++,c().s[4]++,this.statesInHex?(c().b[0][0]++,c().s[5]++,"0x"+this.value.val.toString(16)):(c().b[0][1]++,c().s[6]++,this.value.val)},states:function(){if(c().f[5]++,c().s[7]++,null!=this.value.states){c().b[1][0]++;var e=(c().s[8]++,[]);for(var n in c().s[9]++,this.value.states)c().s[10]++,Object.prototype.hasOwnProperty.call(this.value.states,n)?(c().b[2][0]++,c().s[11]++,e.push({label:n,value:this.value.states[n].value,hazardous:this.value.states[n].hazardous})):c().b[2][1]++;return c().s[12]++,e.push({label:"MANUALLY ENTERED",value:"MANUALLY ENTERED",hazardous:void 0}),c().s[13]++,e}return c().b[1][1]++,c().s[14]++,null}},methods:{stateClass:function(){return c().f[6]++,c().s[15]++,this.value.hazardous?(c().b[3][0]++,"hazardous mr-4"):(c().b[3][1]++,"mr-4")},handleChange:function(e){if(c().f[7]++,c().s[16]++,this.value.val=e,c().s[17]++,this.value.manual_value=e,c().s[18]++,this.value.states){c().b[4][0]++;var n=(c().s[19]++,"MANUALLY ENTERED"),t=(c().s[20]++,"MANUALLY_ENTERED");c().s[21]++;var l,a=(0,s.Z)(this.states);try{for(a.s();!(l=a.n()).done;){var o=l.value;if(c().s[22]++,o.value===parseInt(e)){c().b[5][0]++,c().s[23]++,n=parseInt(e),c().s[24]++,t=o.label,c().s[25]++,void 0===o.hazardous?(c().b[6][0]++,c().s[26]++,this.value.hazardous=!1):(c().b[6][1]++,c().s[27]++,this.value.hazardous=!0),c().s[28]++;break}if(c().b[5][1]++,c().s[29]++,o.value===e){c().b[7][0]++,c().s[30]++,n=e,c().s[31]++,t=o.label,c().s[32]++,void 0===o.hazardous?(c().b[8][0]++,c().s[33]++,this.value.hazardous=!1):(c().b[8][1]++,c().s[34]++,this.value.hazardous=!0),c().s[35]++;break}c().b[7][1]++,c().s[36]++,this.value.hazardous=!1}}catch(i){a.e(i)}finally{a.f()}c().s[37]++,this.value.selected_state=n,c().s[38]++,this.value.selected_state_label=t}else c().b[4][1]++,c().s[39]++,this.value.selected_state=null;c().s[40]++,this.$emit("input",this.value)},handleStateChange:function(e){c().f[8]++;var n=(c().s[41]++,null),t=(c().s[42]++,null);c().s[43]++;for(var l=(c().s[44]++,0);l<this.states.length;l++){if(c().s[45]++,e===this.states[l].value){c().b[9][0]++,c().s[46]++,void 0===this.states[l].hazardous?(c().b[10][0]++,c().s[47]++,this.value.hazardous=!1):(c().b[10][1]++,c().s[48]++,this.value.hazardous=!0),c().s[49]++,n=this.states[l].label,c().s[50]++,t=e,c().s[51]++;break}c().b[9][1]++}c().s[52]++,this.value.selected_state_label=n,c().s[53]++,"MANUALLY ENTERED"===n?(c().b[11][0]++,c().s[54]++,this.value.hazardous=!1,c().s[55]++,this.value.val=this.value.manual_value):(c().b[11][1]++,c().s[56]++,this.value.val=t,c().s[57]++,this.$emit("input",this.value))}}},u=r,m=(t(8961),t(3483)),d=(0,m.Z)(u,a,o,!1,null,"3cbe2fa3",null),_=d.exports},8892:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});t(7950),t(4908),t(4083);function l(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",n="0d125c2aa67ac469f06ad119efa631db38e69d2e",t=new Function("return this")(),a="__coverage__",o={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:5068}},4:{start:{line:1,column:366},end:{line:1,column:399}},5:{start:{line:1,column:426},end:{line:1,column:453}},6:{start:{line:1,column:710},end:{line:1,column:724}},7:{start:{line:1,column:1049},end:{line:1,column:1263}},8:{start:{line:1,column:1188},end:{line:1,column:1225}},9:{start:{line:1,column:1739},end:{line:1,column:1836}},10:{start:{line:1,column:1824},end:{line:1,column:1836}},11:{start:{line:1,column:1836},end:{line:1,column:1867}},12:{start:{line:1,column:2020},end:{line:1,column:2044}},13:{start:{line:1,column:2144},end:{line:1,column:2335}},14:{start:{line:1,column:2208},end:{line:1,column:2233}},15:{start:{line:1,column:2233},end:{line:1,column:2274}},16:{start:{line:1,column:2532},end:{line:1,column:2551}},17:{start:{line:1,column:2685},end:{line:1,column:2711}},18:{start:{line:1,column:3132},end:{line:1,column:3162}},19:{start:{line:1,column:3308},end:{line:1,column:3336}},20:{start:{line:1,column:4063},end:{line:1,column:4085}},21:{start:{line:1,column:4535},end:{line:1,column:4560}},22:{start:{line:1,column:4752},end:{line:1,column:4787}},23:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:349},end:{line:1,column:350}},loc:{start:{line:1,column:365},end:{line:1,column:400}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:409},end:{line:1,column:410}},loc:{start:{line:1,column:425},end:{line:1,column:454}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:694},end:{line:1,column:695}},loc:{start:{line:1,column:709},end:{line:1,column:725}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1030},end:{line:1,column:1031}},loc:{start:{line:1,column:1048},end:{line:1,column:1264}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1172},end:{line:1,column:1173}},loc:{start:{line:1,column:1187},end:{line:1,column:1226}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1722},end:{line:1,column:1723}},loc:{start:{line:1,column:1738},end:{line:1,column:1868}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2004},end:{line:1,column:2005}},loc:{start:{line:1,column:2019},end:{line:1,column:2045}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2123},end:{line:1,column:2124}},loc:{start:{line:1,column:2143},end:{line:1,column:2336}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2191},end:{line:1,column:2192}},loc:{start:{line:1,column:2207},end:{line:1,column:2275}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2516},end:{line:1,column:2517}},loc:{start:{line:1,column:2531},end:{line:1,column:2552}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2669},end:{line:1,column:2670}},loc:{start:{line:1,column:2684},end:{line:1,column:2712}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:3115},end:{line:1,column:3116}},loc:{start:{line:1,column:3131},end:{line:1,column:3163}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:3292},end:{line:1,column:3293}},loc:{start:{line:1,column:3307},end:{line:1,column:3337}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4047},end:{line:1,column:4048}},loc:{start:{line:1,column:4062},end:{line:1,column:4086}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:4519},end:{line:1,column:4520}},loc:{start:{line:1,column:4534},end:{line:1,column:4561}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:4735},end:{line:1,column:4736}},loc:{start:{line:1,column:4751},end:{line:1,column:4788}},line:1}},branchMap:{0:{loc:{start:{line:1,column:458},end:{line:1,column:1304}},type:"cond-expr",locations:[{start:{line:1,column:482},end:{line:1,column:1295}},{start:{line:1,column:1296},end:{line:1,column:1304}}],line:1},1:{loc:{start:{line:1,column:1739},end:{line:1,column:1836}},type:"if",locations:[{start:{line:1,column:1739},end:{line:1,column:1836}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1},2:{loc:{start:{line:1,column:1742},end:{line:1,column:1823}},type:"binary-expr",locations:[{start:{line:1,column:1742},end:{line:1,column:1769}},{start:{line:1,column:1771},end:{line:1,column:1823}}],line:1}},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},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},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0d125c2aa67ac469f06ad119efa631db38e69d2e"},s=t[a]||(t[a]={});s[e]&&s[e].hash===n||(s[e]=o);var i=s[e];return l=function(){return i},i}l(),l().s[0]++;var a=function(){l().f[0]++;var e=(l().s[1]++,this),n=(l().s[2]++,e._self._c);return l().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),n("target-packet-item-chooser",{attrs:{"initial-target-name":this.$route.params.target,"initial-packet-name":this.$route.params.packet,disabled:e.sendDisabled,"button-text":"Send",mode:"cmd"},on:{"on-set":function(n){return l().f[1]++,l().s[4]++,e.commandChanged(n)},click:function(n){return l().f[2]++,l().s[5]++,e.buildCmd(n)}}}),0!==e.rows.length?(l().b[0][0]++,n("v-card",[n("v-card-title",[e._v(" Parameters "),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){l().f[3]++,l().s[6]++,e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.headers,items:e.rows,search:e.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"",dense:""},on:{"contextmenu:row":e.showContextMenu},scopedSlots:e._u([{key:"item.val_and_states",fn:function(t){var a=t.item;return l().f[4]++,l().s[7]++,[n("command-parameter-editor",{attrs:{"states-in-hex":e.statesInHex},model:{value:a.val_and_states,callback:function(n){l().f[5]++,l().s[8]++,e.$set(a,"val_and_states",n)},expression:"item.val_and_states"}})]}}],null,!1,1123654540)})],1)):(l().b[0][1]++,e._e()),n("div",{staticClass:"ma-3"},[e._v("Status: "+e._s(e.status))]),n("div",{staticClass:"mt-3"},[e._v(" Editable Command History: (Pressing Enter on the line re-executes the command) ")]),n("v-textarea",{ref:"history",staticClass:"history",attrs:{value:e.history,solo:"",dense:"","hide-details":"","auto-grow":"","data-test":"sender-history","background-color":e.getBackgroundColor()},on:{keydown:function(n){return l().f[6]++,l().s[9]++,l().b[2][0]++,!n.type.indexOf("key")&&(l().b[2][1]++,e._k(n.keyCode,"enter",13,n.key,"Enter"))?(l().b[1][0]++,l().s[10]++,null):(l().b[1][1]++,l().s[11]++,e.historyEnter(n))}}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){l().f[7]++,l().s[12]++,e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,a){return l().f[8]++,l().s[13]++,n("v-list-item",{key:a,on:{click:function(e){return l().f[9]++,l().s[14]++,e.stopPropagation(),l().s[15]++,t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.targetName,"packet-name":e.commandName,"item-name":e.parameterName,type:"cmd"},model:{value:e.viewDetails,callback:function(n){l().f[10]++,l().s[16]++,e.viewDetails=n},expression:"viewDetails"}}),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displayErrorDialog,callback:function(n){l().f[11]++,l().s[17]++,e.displayErrorDialog=n},expression:"displayErrorDialog"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Error ")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"mx-1"},[n("v-row",{staticClass:"my-2"},[n("v-card-text",[n("span",{domProps:{textContent:e._s(e.status)}})])],1),n("v-row",[n("v-spacer"),n("v-btn",{attrs:{color:"primary","data-test":"error-dialog-ok"},on:{click:function(n){l().f[12]++,l().s[18]++,e.displayErrorDialog=!1}}},[e._v(" Ok ")])],1)],1)])],1)],1),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displaySendHazardous,callback:function(n){l().f[13]++,l().s[19]++,e.displaySendHazardous=n},expression:"displaySendHazardous"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Hazardous Warning ")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"mx-1"},[n("v-row",{staticClass:"my-2"},[n("span",[e._v(" Warning: Command "+e._s(e.hazardousCommand)+" is Hazardous. Send? ")])]),n("v-row",[n("v-spacer"),n("v-btn",{attrs:{outlined:"","data-test":"send-hazardous-no"},on:{click:e.cancelHazardousCmd}},[e._v(" No ")]),n("v-btn",{staticClass:"primary mx-1",attrs:{"data-test":"send-hazardous-yes"},on:{click:e.sendHazardousCmd}},[e._v(" Yes ")])],1)],1)])],1)],1),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displaySendRaw,callback:function(n){l().f[14]++,l().s[20]++,e.displaySendRaw=n},expression:"displaySendRaw"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Send Raw ")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"mx-1"},[n("v-row",{staticClass:"my-2"},[n("v-col",[e._v("Interface:")]),n("v-col",[n("v-select",{attrs:{solo:"","hide-details":"",dense:"",items:e.interfaces,"item-text":"label","item-value":"value"},model:{value:e.selectedInterface,callback:function(n){l().f[15]++,l().s[21]++,e.selectedInterface=n},expression:"selectedInterface"}})],1)],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",[e._v("Filename:")]),n("v-col",[n("input",{attrs:{type:"file"},on:{change:function(n){return l().f[16]++,l().s[22]++,e.selectRawCmdFile(n)}}})])],1),n("v-row",[n("v-spacer"),n("v-btn",{attrs:{outlined:"","data-test":"raw-cancel"},on:{click:e.cancelRawCmd}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"primary",attrs:{"data-test":"raw-ok"},on:{click:e.sendRawCmd}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)},o=(l().s[23]++,[]),s=t(7163),i=s.Z,c=(t(801),t(3483)),r=(0,c.Z)(i,a,o,!1,null,"32867732",null),u=r.exports},3964:function(e,n,t){"use strict";t.d(n,{Z:function(){return _}});t(4115),t(634);var l=function(){var e=this,n=e._self._c;return n("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Details ")]),n("v-spacer")],1),n("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),n("v-card-subtitle",[e._v(e._s(e.details.description))]),n("v-card-text",[n("v-container",{attrs:{fluid:""}},["tlm"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),n("v-col",[e._v(e._s(e.rawValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),n("v-col",[e._v(e._s(e.convertedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),n("v-col",[e._v(e._s(e.formattedValue))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),n("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),n("v-col",[e._v(e._s(e.details.bit_offset))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),n("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),n("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),n("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),n("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),n("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),n("v-col",[e._v(e._s(e.details.default))])],1):e._e(),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),n("v-col",[e._v(e._s(e.details.format_string))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?n("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),n("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):n("v-col")],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),n("v-col",[e._v(e._s(e.details.id_value))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),n("v-col",[e._v(e._s(e.details.units_full))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),n("v-col",[e._v(e._s(e.details.units))])],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),n("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(t,l){return n("v-row",{key:l,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(l))]),n("v-col",[e._v(e._s(t.value))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),n("v-col",[e._v("None")])],1),e.details.limits?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(t,l){return n("v-row",{key:l,attrs:{"no-gutters":""}},["enabled"===l?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),"enabled"===l?n("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(n){e.$set(e.details.limits,"enabled",n)},expression:"details.limits.enabled"}}):e._e(),"enabled"!==l?n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(l))]):e._e(),"enabled"!==l?n("div",[e._v(e._s(e.formatLimit(t)))]):e._e(),n("v-col")],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),n("v-col",[e._v("None")])],1),e.details.meta?n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col"),n("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(t,l){return n("v-row",{key:l,attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(l))]),n("v-col",[e._v(e._s(t))])],1)})),1)],1):n("v-row",{attrs:{"no-gutters":""}},[n("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),n("v-col",[e._v("None")])],1)],1)],1)],1)],1)},a=[],o=t(5789),s=t(6964),i=t(9502),c=(t(4083),t(8178),t(2501),t(8995),t(7233),t(8673),t(8188),t(8233),t(8392)),r={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data:function(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){this.api=new c.k},beforeDestroy:function(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,n){var t=this;e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((function(){t.api.get_tlm_values(["".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__RAW"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__CONVERTED"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__FORMATTED"),"".concat(t.targetName,"__").concat(t.packetName,"__").concat(t.itemName,"__WITH_UNITS")]).then((function(e){for(var n=0;n<e.length;n++){var l=null;if("String"===e[n][0]["json_class"]&&void 0!==e[n][0]["raw"]?l=e[n][0]["raw"]:"BLOCK"===t.details.data_type&&(l=e[n][0]),null!==l){l=l.slice(0,parseInt(t.details.bit_size)/8);var a=!1;l.length>64&&(a=!0),e[n][0]=Array.from(l.slice(0,64),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),a&&(e[n][0]+="...")}}t.rawValue=e[0][0],t.convertedValue=e[1][0],t.formattedValue=e[2][0],t.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{requestDetails:function(){var e=this;return(0,i.Z)((0,o.Z)().mark((function n(){return(0,o.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if("tlm"!==e.type){n.next=5;break}return n.next=3,e.api.get_item(e.targetName,e.packetName,e.itemName).then((function(n){if(e.details=n,n.limits){var t=!1;n.limits.enabled&&(t=!0,delete n.limits.enabled),e.details.limits=(0,s.Z)({enabled:t},n.limits)}}));case 3:n.next=7;break;case 5:return n.next=7,e.api.get_parameter(e.targetName,e.packetName,e.itemName).then((function(n){e.details=n}));case 7:case"end":return n.stop()}}),n)})))()},changeLimitsEnabled:function(){var e=this;return(0,i.Z)((0,o.Z)().mark((function n(){return(0,o.Z)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.details.limits.enabled){n.next=5;break}return n.next=3,e.api.enable_limits(e.targetName,e.packetName,e.itemName);case 3:n.next=7;break;case 5:return n.next=7,e.api.disable_limits(e.targetName,e.packetName,e.itemName);case 7:case"end":return n.stop()}}),n)})))()},formatLimit:function(e){return e.green_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.red_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},u=r,m=(t(3270),t(3483)),d=(0,m.Z)(u,l,a,!1,null,"1e0f0ab0",null),_=d.exports},1412:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});t(4115),t(634);var l=function(){var e=this,n=e._self._c;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(n){e.selectedTargetName=n},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(n){e.selectedPacketName=n},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(n){return e.itemNameChanged(n)}},model:{value:e.selectedItemName,callback:function(n){e.selectedItemName=n},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),e.selectTypes?n("v-row",[n("v-col",{attrs:{cols:e.colSize,"data-test":"data-type"}},[n("v-autocomplete",{attrs:{label:"Value Type","hide-details":"",dense:"",items:e.valueTypes},model:{value:e.selectedValueType,callback:function(n){e.selectedValueType=n},expression:"selectedValueType"}})],1),n("v-col",{attrs:{cols:e.colSize,"data-test":"reduced"}},[n("v-autocomplete",{attrs:{label:"Reduced","hide-details":"",dense:"",items:e.reductionModes},model:{value:e.selectedReduced,callback:function(n){e.selectedReduced=n},expression:"selectedReduced"}})],1),n("v-col",{attrs:{cols:e.colSize,"data-test":"reduced-type"}},[n("v-autocomplete",{attrs:{label:"Reduced Type","hide-details":"",dense:"",disabled:"DECOM"===e.selectedReduced,items:e.reducedTypes},model:{value:e.selectedReducedType,callback:function(n){e.selectedReducedType=n},expression:"selectedReducedType"}})],1),n("v-col",{attrs:{cols:e.colSize}})],1):e._e(),n("v-row",{staticClass:"pt-1",attrs:{"no-gutters":""}},[e.hazardous?n("v-col",{staticClass:"openc3-yellow",staticStyle:{"white-space":"pre"},attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" (HAZARDOUS)")]):n("v-col",{staticStyle:{"white-space":"pre"},attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" ")])],1)],1)},a=[],o=(t(9529),t(4870),t(3985),t(8188),t(1951),t(6728),t(3450),t(9228),t(3108),t(8178),t(1939),t(8392)),s={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:function(e){return["cmd","tlm"].includes(e)}},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data:function(){var e,n,t;return{targetNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),packetNames:[],selectedPacketName:null===(n=this.initialPacketName)||void 0===n?void 0:n.toUpperCase(),itemNames:[],selectedItemName:null===(t=this.initialItemName)||void 0===t?void 0:t.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created:function(){var e=this;this.internalDisabled=!0,this.api=new o.k,this.api.get_target_list().then((function(n){e.targetNames=n.flatMap((function(e){return"UNKNOWN"==e?[]:{label:e,value:e}})),e.allowAllTargets&&e.targetNames.unshift(e.ALL),e.selectedTargetName||(e.selectedTargetName=e.targetNames[0].value,e.targetNameChanged(e.selectedTargetName)),e.updatePackets(),e.unknown&&e.targetNames.push(e.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},targetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"49%",float:"left"}},packetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"50%",float:"right"}},colSize:function(){return!!this.vertical&&12}},watch:{mode:function(e,n){this.updatePackets(),this.itemNames=[]}},methods:{updatePackets:function(){var e=this;if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;var n="tlm"===this.mode?"get_all_telemetry_names":"get_all_command_names";this.api[n](this.selectedTargetName).then((function(n){e.packetNames=n.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(n){return n.value===e.selectedPacketName}));e.chooseItem&&e.updateItems(),e.internalDisabled=!1}))},updateItems:function(){var e=this;if("ALL"!==this.selectedPacketName){this.internalDisabled=!0;var n="tlm"===this.mode?"get_telemetry":"get_command";this.api[n](this.selectedTargetName,this.selectedPacketName).then((function(n){e.itemNames=n.items.map((function(e){return[{label:e.name,value:e.name,description:e.description}]})).reduce((function(e,n){return e.concat(n)}),[]),e.allowAll&&e.itemNames.unshift(e.ALL),e.selectedItemName||(e.selectedItemName=e.itemNames[0].value),e.description=e.itemNames[0].description,e.internalDisabled=!1,e.$emit("on-set",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:e.selectedItemName,valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){var n=this;if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;var t=this.packetNames.find((function(n){return e===n.value}));this.selectedPacketName=t.value;var l="tlm"===this.mode?"get_telemetry":"get_command";this.api[l](this.selectedTargetName,this.selectedPacketName).then((function(e){n.description=e.description,n.hazardous=e.hazardous}))}this.chooseItem?(this.selectedItemName="",this.updateItems()):this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(e){var n=this.itemNames.find((function(n){return e===n.value}));this.selectedItemName=n.value,this.description=n.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){"ALL"===this.selectedPacketName?this.allTargetPacketItems():"ALL"===this.selectedItemName?this.allPacketItems():this.chooseItem?this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){var e=this;this.packetNames.forEach((function(n){if(n!==e.ALL){var t="tlm"===e.mode?"get_telemetry":"get_command";e.api[t](e.selectedTargetName,n.value).then((function(t){t.items.forEach((function(t){e.$emit("click",{targetName:e.selectedTargetName,packetName:n.value,itemName:t["name"],valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}))}}))},allPacketItems:function(){var e=this;this.itemNames.forEach((function(n){n!==e.ALL&&e.$emit("click",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:n.value,valueType:e.selectedValueType,reduced:e.selectedReduced,reducedType:e.selectedReducedType})}))}}},i=s,c=(t(6423),t(3483)),r=(0,c.Z)(i,l,a,!1,null,null,null),u=r.exports},7119:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});t(8178);var l=function(){var e=this,n=e._self._c;return n("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[n("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(t,l){return n("v-menu",{key:l,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(l){var a=l.on,o=l.attrs;return[n("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(t.label))}},"v-btn",o,!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(l,a){return[l.divider?n("v-divider"):n("v-list-item",{key:a,attrs:{disabled:l.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(t.label," ").concat(l.label))},on:{click:function(e){return l.command(l)}}},[l.radio?n("v-list-item-action",[n("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):e._e(),l.checkbox?n("v-list-item-action",[n("v-checkbox",{attrs:{color:"secondary",label:l.label},model:{value:l.checked,callback:function(n){e.$set(l,"checked",n)},expression:"option.checked"}})],1):e._e(),l.icon?n("v-list-item-icon",[n("v-icon",{attrs:{disabled:l.disabled}},[e._v(e._s(l.icon))])],1):e._e(),l.radio||l.checkbox?e._e():n("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":"")},[e._v(e._s(l.label))])],1)]}))],2)],1)],1)})),n("v-spacer"),n("v-toolbar-title",[e._v(e._s(e.title))]),n("v-spacer")],2)])},a=[],o=(t(7950),t(5940),t(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),s=o,i=(t(4888),t(3483)),c=(0,i.Z)(s,l,a,!1,null,"2eb37f67",null),r=c.exports},4179:function(e,n,t){"use strict";t.r(n);var l=t(9601),a=t.n(l),o=t(2609),s=t.n(o),i=s()(a());i.push([e.id,".container[data-v-3cbe2fa3] .v-select__selections{width:auto}.v-overflow-btn[data-v-3cbe2fa3]{margin-top:0}.container[data-v-3cbe2fa3]{padding:0}.hazardous[data-v-3cbe2fa3] .v-select__selection{color:#ffdc00}",""]),n["default"]=i},8566:function(e,n,t){"use strict";t.r(n);var l=t(9601),a=t.n(l),o=t(2609),s=t.n(o),i=s()(a());i.push([e.id,".history[data-v-32867732]{font-family:monospace}",""]),n["default"]=i},3208:function(e,n,t){"use strict";t.r(n);var l=t(9601),a=t.n(l),o=t(2609),s=t.n(o),i=s()(a());i.push([e.id,".label[data-v-1e0f0ab0]{font-weight:700;text-transform:capitalize}[data-v-1e0f0ab0] .v-input--selection-controls{padding:0;margin:0}",""]),n["default"]=i},6473:function(e,n,t){"use strict";t.r(n);var l=t(9601),a=t.n(l),o=t(2609),s=t.n(o),i=s()(a());i.push([e.id,".row+.row{margin-top:0}",""]),n["default"]=i},6294:function(e,n,t){"use strict";t.r(n);var l=t(9601),a=t.n(l),o=t(2609),s=t.n(o),i=s()(a());i.push([e.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),n["default"]=i},7163:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4083),core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4660),core_js_modules_es_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4112),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2501),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6728),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8995),core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_parse_float_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(3489),core_js_modules_es_parse_float_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_parse_float_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7950),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(5940),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8188),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(1939),core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9529),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_11__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(1235),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_12__),core_js_modules_es_number_to_exponential_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2310),core_js_modules_es_number_to_exponential_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_number_to_exponential_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(8178),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(4115),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(634),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_16__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(4769),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_17__),_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(6129),_openc3_tool_common_src_components_TargetPacketItemChooser__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(1412),_tools_CommandSender_CommandParameterEditor__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(7663),_tools_CommandSender_utilities__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(8367),_openc3_tool_common_src_services_openc3_api__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(8392),_openc3_tool_common_src_components_DetailsDialog__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(3964),_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(7119),sprintf_js__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(131),sprintf_js__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(sprintf_js__WEBPACK_IMPORTED_MODULE_25__);function cov_16daumg2kr(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",n="e840fb5d74f7bacc35d43567292e6722db94307d",t=new Function("return this")(),l="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",statementMap:{0:{start:{line:20,column:4},end:{line:118,column:5}},1:{start:{line:63,column:12},end:{line:63,column:41}},2:{start:{line:64,column:12},end:{line:64,column:35}},3:{start:{line:88,column:16},end:{line:88,column:64}},4:{start:{line:95,column:16},end:{line:95,column:52}},5:{start:{line:102,column:16},end:{line:102,column:64}},6:{start:{line:105,column:16},end:{line:105,column:38}},7:{start:{line:112,column:16},end:{line:112,column:42}},8:{start:{line:121,column:4},end:{line:123,column:6}},9:{start:{line:122,column:6},end:{line:122,column:44}},10:{start:{line:124,column:4},end:{line:124,column:30}},11:{start:{line:126,column:4},end:{line:131,column:5}},12:{start:{line:127,column:6},end:{line:130,column:8}},13:{start:{line:135,column:6},end:{line:135,column:61}},14:{start:{line:139,column:6},end:{line:139,column:28}},15:{start:{line:140,column:23},end:{line:140,column:53}},16:{start:{line:141,column:16},end:{line:141,column:39}},17:{start:{line:143,column:24},end:{line:143,column:57}},18:{start:{line:145,column:20},end:{line:145,column:69}},19:{start:{line:146,column:20},end:{line:146,column:43}},20:{start:{line:148,column:6},end:{line:150,column:7}},21:{start:{line:149,column:8},end:{line:149,column:14}},22:{start:{line:153,column:23},end:{line:153,column:43}},23:{start:{line:154,column:22},end:{line:154,column:46}},24:{start:{line:155,column:6},end:{line:155,column:74}},25:{start:{line:156,column:6},end:{line:156,column:27}},26:{start:{line:160,column:6},end:{line:160,column:24}},27:{start:{line:161,column:6},end:{line:161,column:50}},28:{start:{line:162,column:6},end:{line:162,column:35}},29:{start:{line:163,column:6},end:{line:163,column:24}},30:{start:{line:164,column:6},end:{line:164,column:24}},31:{start:{line:165,column:6},end:{line:167,column:8}},32:{start:{line:166,column:8},end:{line:166,column:36}},33:{start:{line:171,column:6},end:{line:177,column:7}},34:{start:{line:176,column:8},end:{line:176,column:56}},35:{start:{line:178,column:6},end:{line:180,column:7}},36:{start:{line:179,column:8},end:{line:179,column:39}},37:{start:{line:182,column:16},end:{line:182,column:40}},38:{start:{line:183,column:26},end:{line:183,column:48}},39:{start:{line:184,column:6},end:{line:219,column:7}},40:{start:{line:185,column:24},end:{line:185,column:41}},41:{start:{line:186,column:8},end:{line:216,column:9}},42:{start:{line:190,column:23},end:{line:190,column:41}},43:{start:{line:191,column:10},end:{line:193,column:11}},44:{start:{line:192,column:12},end:{line:192,column:33}},45:{start:{line:194,column:21},end:{line:194,column:54}},46:{start:{line:195,column:10},end:{line:198,column:11}},47:{start:{line:195,column:23},end:{line:195,column:24}},48:{start:{line:196,column:25},end:{line:196,column:64}},49:{start:{line:197,column:12},end:{line:197,column:47}},50:{start:{line:199,column:10},end:{line:199,column:21}},51:{start:{line:201,column:10},end:{line:215,column:11}},52:{start:{line:202,column:12},end:{line:202,column:27}},53:{start:{line:203,column:17},end:{line:215,column:11}},54:{start:{line:204,column:12},end:{line:204,column:28}},55:{start:{line:205,column:17},end:{line:215,column:11}},56:{start:{line:206,column:12},end:{line:206,column:22}},57:{start:{line:207,column:17},end:{line:215,column:11}},58:{start:{line:208,column:12},end:{line:208,column:34}},59:{start:{line:209,column:17},end:{line:215,column:11}},60:{start:{line:210,column:12},end:{line:210,column:32}},61:{start:{line:211,column:17},end:{line:215,column:11}},62:{start:{line:212,column:12},end:{line:212,column:28}},63:{start:{line:214,column:12},end:{line:214,column:22}},64:{start:{line:218,column:8},end:{line:218,column:28}},65:{start:{line:223,column:6},end:{line:243,column:7}},66:{start:{line:227,column:8},end:{line:227,column:42}},67:{start:{line:228,column:8},end:{line:228,column:43}},68:{start:{line:230,column:8},end:{line:232,column:9}},69:{start:{line:231,column:10},end:{line:231,column:32}},70:{start:{line:233,column:8},end:{line:242,column:29}},71:{start:{line:247,column:6},end:{line:247,column:30}},72:{start:{line:248,column:6},end:{line:248,column:29}},73:{start:{line:249,column:6},end:{line:249,column:20}},74:{start:{line:250,column:6},end:{line:321,column:9}},75:{start:{line:254,column:12},end:{line:254,column:58}},76:{start:{line:255,column:12},end:{line:255,column:74}},77:{start:{line:258,column:12},end:{line:258,column:66}},78:{start:{line:263,column:12},end:{line:314,column:14}},79:{start:{line:264,column:14},end:{line:264,column:73}},80:{start:{line:264,column:67},end:{line:264,column:73}},81:{start:{line:265,column:14},end:{line:313,column:15}},82:{start:{line:269,column:26},end:{line:269,column:43}},83:{start:{line:274,column:16},end:{line:280,column:17}},84:{start:{line:279,column:18},end:{line:279,column:34}},85:{start:{line:281,column:16},end:{line:283,column:17}},86:{start:{line:282,column:18},end:{line:282,column:26}},87:{start:{line:284,column:16},end:{line:286,column:17}},88:{start:{line:285,column:18},end:{line:285,column:75}},89:{start:{line:287,column:28},end:{line:287,column:33}},90:{start:{line:289,column:16},end:{line:301,column:17}},91:{start:{line:290,column:18},end:{line:299,column:19}},92:{start:{line:293,column:20},end:{line:295,column:21}},93:{start:{line:294,column:22},end:{line:294,column:76}},94:{start:{line:296,column:20},end:{line:298,column:21}},95:{start:{line:297,column:22},end:{line:297,column:76}},96:{start:{line:300,column:18},end:{line:300,column:70}},97:{start:{line:302,column:16},end:{line:312,column:18}},98:{start:{line:315,column:12},end:{line:315,column:37}},99:{start:{line:316,column:12},end:{line:316,column:28}},100:{start:{line:319,column:12},end:{line:319,column:66}},101:{start:{line:325,column:22},end:{line:325,column:24}},102:{start:{line:326,column:6},end:{line:330,column:7}},103:{start:{line:326,column:19},end:{line:326,column:20}},104:{start:{line:327,column:8},end:{line:329,column:9}},105:{start:{line:331,column:6},end:{line:331,column:22}},106:{start:{line:335,column:6},end:{line:335,column:77}},107:{start:{line:344,column:6},end:{line:344,column:38}},108:{start:{line:345,column:6},end:{line:345,column:40}},109:{start:{line:346,column:6},end:{line:346,column:36}},110:{start:{line:348,column:6},end:{line:348,column:30}},111:{start:{line:349,column:22},end:{line:349,column:27}},112:{start:{line:350,column:16},end:{line:350,column:18}},113:{start:{line:351,column:6},end:{line:415,column:7}},114:{start:{line:353,column:10},end:{line:353,column:30}},115:{start:{line:355,column:10},end:{line:410,column:11}},116:{start:{line:357,column:12},end:{line:364,column:13}},117:{start:{line:358,column:14},end:{line:361,column:26}},118:{start:{line:363,column:14},end:{line:363,column:68}},119:{start:{line:365,column:12},end:{line:365,column:44}},120:{start:{line:368,column:12},end:{line:400,column:13}},121:{start:{line:369,column:14},end:{line:383,column:15}},122:{start:{line:370,column:16},end:{line:370,column:46}},123:{start:{line:371,column:16},end:{line:375,column:17}},124:{start:{line:377,column:16},end:{line:377,column:31}},125:{start:{line:378,column:16},end:{line:382,column:18}},126:{start:{line:385,column:14},end:{line:399,column:15}},127:{start:{line:386,column:16},end:{line:386,column:42}},128:{start:{line:387,column:16},end:{line:391,column:17}},129:{start:{line:393,column:16},end:{line:393,column:27}},130:{start:{line:394,column:16},end:{line:398,column:18}},131:{start:{line:402,column:12},end:{line:409,column:13}},132:{start:{line:404,column:16},end:{line:404,column:54}},133:{start:{line:407,column:16},end:{line:407,column:53}},134:{start:{line:413,column:10},end:{line:413,column:47}},135:{start:{line:419,column:6},end:{line:419,column:39}},136:{start:{line:420,column:16},end:{line:420,column:18}},137:{start:{line:421,column:16},end:{line:421,column:18}},138:{start:{line:422,column:6},end:{line:464,column:7}},139:{start:{line:423,column:8},end:{line:442,column:9}},140:{start:{line:424,column:10},end:{line:424,column:40}},141:{start:{line:425,column:10},end:{line:429,column:11}},142:{start:{line:431,column:10},end:{line:431,column:25}},143:{start:{line:432,column:10},end:{line:441,column:11}},144:{start:{line:444,column:8},end:{line:463,column:9}},145:{start:{line:445,column:10},end:{line:445,column:36}},146:{start:{line:446,column:10},end:{line:450,column:11}},147:{start:{line:452,column:10},end:{line:452,column:21}},148:{start:{line:453,column:10},end:{line:462,column:11}},149:{start:{line:466,column:6},end:{line:473,column:7}},150:{start:{line:468,column:10},end:{line:468,column:48}},151:{start:{line:471,column:10},end:{line:471,column:47}},152:{start:{line:477,column:6},end:{line:477,column:39}},153:{start:{line:478,column:6},end:{line:478,column:48}},154:{start:{line:479,column:6},end:{line:479,column:31}},155:{start:{line:483,column:16},end:{line:483,column:18}},156:{start:{line:484,column:6},end:{line:525,column:7}},157:{start:{line:485,column:8},end:{line:485,column:58}},158:{start:{line:486,column:19},end:{line:486,column:43}},159:{start:{line:487,column:8},end:{line:505,column:9}},160:{start:{line:488,column:10},end:{line:488,column:25}},161:{start:{line:489,column:10},end:{line:504,column:11}},162:{start:{line:489,column:23},end:{line:489,column:24}},163:{start:{line:490,column:22},end:{line:490,column:29}},164:{start:{line:491,column:24},end:{line:491,column:62}},165:{start:{line:493,column:12},end:{line:499,column:13}},166:{start:{line:498,column:14},end:{line:498,column:34}},167:{start:{line:500,column:12},end:{line:500,column:36}},168:{start:{line:501,column:12},end:{line:503,column:13}},169:{start:{line:502,column:14},end:{line:502,column:25}},170:{start:{line:506,column:8},end:{line:506,column:19}},171:{start:{line:507,column:8},end:{line:509,column:9}},172:{start:{line:508,column:10},end:{line:508,column:36}},173:{start:{line:510,column:8},end:{line:510,column:23}},174:{start:{line:512,column:8},end:{line:520,column:9}},175:{start:{line:513,column:22},end:{line:513,column:48}},176:{start:{line:514,column:10},end:{line:519,column:11}},177:{start:{line:515,column:22},end:{line:515,column:77}},178:{start:{line:516,column:12},end:{line:516,column:56}},179:{start:{line:518,column:12},end:{line:518,column:25}},180:{start:{line:521,column:8},end:{line:521,column:25}},181:{start:{line:523,column:22},end:{line:523,column:75}},182:{start:{line:524,column:8},end:{line:524,column:50}},183:{start:{line:526,column:6},end:{line:526,column:31}},184:{start:{line:530,column:6},end:{line:530,column:59}},185:{start:{line:531,column:6},end:{line:534,column:7}},186:{start:{line:532,column:8},end:{line:532,column:27}},187:{start:{line:533,column:8},end:{line:533,column:36}},188:{start:{line:535,column:6},end:{line:537,column:7}},189:{start:{line:536,column:8},end:{line:536,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:2},end:{line:19,column:3}},loc:{start:{line:19,column:9},end:{line:119,column:3}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:62,column:18},end:{line:62,column:19}},loc:{start:{line:62,column:24},end:{line:65,column:11}},line:62},2:{name:"(anonymous_2)",decl:{start:{line:87,column:23},end:{line:87,column:24}},loc:{start:{line:87,column:29},end:{line:89,column:15}},line:87},3:{name:"(anonymous_3)",decl:{start:{line:94,column:23},end:{line:94,column:24}},loc:{start:{line:94,column:29},end:{line:96,column:15}},line:94},4:{name:"(anonymous_4)",decl:{start:{line:101,column:23},end:{line:101,column:24}},loc:{start:{line:101,column:29},end:{line:106,column:15}},line:101},5:{name:"(anonymous_5)",decl:{start:{line:111,column:23},end:{line:111,column:24}},loc:{start:{line:111,column:29},end:{line:113,column:15}},line:111},6:{name:"(anonymous_6)",decl:{start:{line:120,column:2},end:{line:120,column:3}},loc:{start:{line:120,column:12},end:{line:132,column:3}},line:120},7:{name:"(anonymous_7)",decl:{start:{line:121,column:65},end:{line:121,column:66}},loc:{start:{line:121,column:79},end:{line:123,column:5}},line:121},8:{name:"(anonymous_8)",decl:{start:{line:134,column:4},end:{line:134,column:5}},loc:{start:{line:134,column:25},end:{line:136,column:5}},line:134},9:{name:"(anonymous_9)",decl:{start:{line:137,column:4},end:{line:137,column:5}},loc:{start:{line:137,column:24},end:{line:157,column:5}},line:137},10:{name:"(anonymous_10)",decl:{start:{line:159,column:4},end:{line:159,column:5}},loc:{start:{line:159,column:28},end:{line:168,column:5}},line:159},11:{name:"(anonymous_11)",decl:{start:{line:165,column:21},end:{line:165,column:22}},loc:{start:{line:165,column:27},end:{line:167,column:7}},line:165},12:{name:"(anonymous_12)",decl:{start:{line:170,column:4},end:{line:170,column:5}},loc:{start:{line:170,column:26},end:{line:220,column:5}},line:170},13:{name:"(anonymous_13)",decl:{start:{line:222,column:4},end:{line:222,column:5}},loc:{start:{line:222,column:26},end:{line:244,column:5}},line:222},14:{name:"(anonymous_14)",decl:{start:{line:242,column:17},end:{line:242,column:18}},loc:{start:{line:242,column:26},end:{line:242,column:28}},line:242},15:{name:"(anonymous_15)",decl:{start:{line:246,column:4},end:{line:246,column:5}},loc:{start:{line:246,column:22},end:{line:322,column:5}},line:246},16:{name:"(anonymous_16)",decl:{start:{line:253,column:10},end:{line:253,column:11}},loc:{start:{line:253,column:22},end:{line:256,column:11}},line:253},17:{name:"(anonymous_17)",decl:{start:{line:257,column:10},end:{line:257,column:11}},loc:{start:{line:257,column:21},end:{line:259,column:11}},line:257},18:{name:"(anonymous_18)",decl:{start:{line:262,column:10},end:{line:262,column:11}},loc:{start:{line:262,column:23},end:{line:317,column:11}},line:262},19:{name:"(anonymous_19)",decl:{start:{line:263,column:34},end:{line:263,column:35}},loc:{start:{line:263,column:49},end:{line:314,column:13}},line:263},20:{name:"(anonymous_20)",decl:{start:{line:318,column:10},end:{line:318,column:11}},loc:{start:{line:318,column:21},end:{line:320,column:11}},line:318},21:{name:"(anonymous_21)",decl:{start:{line:324,column:4},end:{line:324,column:5}},loc:{start:{line:324,column:22},end:{line:332,column:5}},line:324},22:{name:"(anonymous_22)",decl:{start:{line:334,column:4},end:{line:334,column:5}},loc:{start:{line:334,column:15},end:{line:336,column:5}},line:334},23:{name:"(anonymous_23)",decl:{start:{line:342,column:4},end:{line:342,column:5}},loc:{start:{line:342,column:48},end:{line:416,column:5}},line:342},24:{name:"(anonymous_24)",decl:{start:{line:352,column:8},end:{line:352,column:9}},loc:{start:{line:352,column:22},end:{line:411,column:9}},line:352},25:{name:"(anonymous_25)",decl:{start:{line:403,column:14},end:{line:403,column:15}},loc:{start:{line:403,column:28},end:{line:405,column:15}},line:403},26:{name:"(anonymous_26)",decl:{start:{line:406,column:14},end:{line:406,column:15}},loc:{start:{line:406,column:25},end:{line:408,column:15}},line:406},27:{name:"(anonymous_27)",decl:{start:{line:412,column:8},end:{line:412,column:9}},loc:{start:{line:412,column:19},end:{line:414,column:9}},line:412},28:{name:"(anonymous_28)",decl:{start:{line:418,column:4},end:{line:418,column:5}},loc:{start:{line:418,column:23},end:{line:474,column:5}},line:418},29:{name:"(anonymous_29)",decl:{start:{line:467,column:8},end:{line:467,column:9}},loc:{start:{line:467,column:22},end:{line:469,column:9}},line:467},30:{name:"(anonymous_30)",decl:{start:{line:470,column:8},end:{line:470,column:9}},loc:{start:{line:470,column:19},end:{line:472,column:9}},line:470},31:{name:"(anonymous_31)",decl:{start:{line:476,column:4},end:{line:476,column:5}},loc:{start:{line:476,column:25},end:{line:480,column:5}},line:476},32:{name:"(anonymous_32)",decl:{start:{line:482,column:4},end:{line:482,column:5}},loc:{start:{line:482,column:43},end:{line:527,column:5}},line:482},33:{name:"(anonymous_33)",decl:{start:{line:529,column:4},end:{line:529,column:5}},loc:{start:{line:529,column:53},end:{line:538,column:5}},line:529}},branchMap:{0:{loc:{start:{line:126,column:4},end:{line:131,column:5}},type:"if",locations:[{start:{line:126,column:4},end:{line:131,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:126},1:{loc:{start:{line:126,column:8},end:{line:126,column:62}},type:"binary-expr",locations:[{start:{line:126,column:8},end:{line:126,column:33}},{start:{line:126,column:37},end:{line:126,column:62}}],line:126},2:{loc:{start:{line:148,column:6},end:{line:150,column:7}},type:"if",locations:[{start:{line:148,column:6},end:{line:150,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:148},3:{loc:{start:{line:171,column:6},end:{line:177,column:7}},type:"if",locations:[{start:{line:171,column:6},end:{line:177,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:171},4:{loc:{start:{line:172,column:8},end:{line:174,column:29}},type:"binary-expr",locations:[{start:{line:172,column:8},end:{line:172,column:52}},{start:{line:173,column:8},end:{line:173,column:66}},{start:{line:174,column:8},end:{line:174,column:29}}],line:172},5:{loc:{start:{line:178,column:6},end:{line:180,column:7}},type:"if",locations:[{start:{line:178,column:6},end:{line:180,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:178},6:{loc:{start:{line:184,column:6},end:{line:219,column:7}},type:"if",locations:[{start:{line:184,column:6},end:{line:219,column:7}},{start:{line:217,column:13},end:{line:219,column:7}}],line:184},7:{loc:{start:{line:186,column:8},end:{line:216,column:9}},type:"if",locations:[{start:{line:186,column:8},end:{line:216,column:9}},{start:{line:200,column:15},end:{line:216,column:9}}],line:186},8:{loc:{start:{line:187,column:10},end:{line:188,column:36}},type:"binary-expr",locations:[{start:{line:187,column:11},end:{line:187,column:34}},{start:{line:187,column:38},end:{line:187,column:60}},{start:{line:188,column:10},end:{line:188,column:36}}],line:187},9:{loc:{start:{line:191,column:10},end:{line:193,column:11}},type:"if",locations:[{start:{line:191,column:10},end:{line:193,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:191},10:{loc:{start:{line:201,column:10},end:{line:215,column:11}},type:"if",locations:[{start:{line:201,column:10},end:{line:215,column:11}},{start:{line:203,column:17},end:{line:215,column:11}}],line:201},11:{loc:{start:{line:203,column:17},end:{line:215,column:11}},type:"if",locations:[{start:{line:203,column:17},end:{line:215,column:11}},{start:{line:205,column:17},end:{line:215,column:11}}],line:203},12:{loc:{start:{line:205,column:17},end:{line:215,column:11}},type:"if",locations:[{start:{line:205,column:17},end:{line:215,column:11}},{start:{line:207,column:17},end:{line:215,column:11}}],line:205},13:{loc:{start:{line:207,column:17},end:{line:215,column:11}},type:"if",locations:[{start:{line:207,column:17},end:{line:215,column:11}},{start:{line:209,column:17},end:{line:215,column:11}}],line:207},14:{loc:{start:{line:209,column:17},end:{line:215,column:11}},type:"if",locations:[{start:{line:209,column:17},end:{line:215,column:11}},{start:{line:211,column:17},end:{line:215,column:11}}],line:209},15:{loc:{start:{line:211,column:17},end:{line:215,column:11}},type:"if",locations:[{start:{line:211,column:17},end:{line:215,column:11}},{start:{line:213,column:17},end:{line:215,column:11}}],line:211},16:{loc:{start:{line:223,column:6},end:{line:243,column:7}},type:"if",locations:[{start:{line:223,column:6},end:{line:243,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:223},17:{loc:{start:{line:224,column:8},end:{line:225,column:45}},type:"binary-expr",locations:[{start:{line:224,column:8},end:{line:224,column:44}},{start:{line:225,column:8},end:{line:225,column:45}}],line:224},18:{loc:{start:{line:230,column:8},end:{line:232,column:9}},type:"if",locations:[{start:{line:230,column:8},end:{line:232,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:230},19:{loc:{start:{line:264,column:14},end:{line:264,column:73}},type:"if",locations:[{start:{line:264,column:14},end:{line:264,column:73}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:264},20:{loc:{start:{line:265,column:14},end:{line:313,column:15}},type:"if",locations:[{start:{line:265,column:14},end:{line:313,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:265},21:{loc:{start:{line:266,column:16},end:{line:267,column:38}},type:"binary-expr",locations:[{start:{line:266,column:16},end:{line:266,column:60}},{start:{line:267,column:16},end:{line:267,column:38}}],line:266},22:{loc:{start:{line:274,column:16},end:{line:280,column:17}},type:"if",locations:[{start:{line:274,column:16},end:{line:280,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:274},23:{loc:{start:{line:275,column:18},end:{line:277,column:55}},type:"binary-expr",locations:[{start:{line:275,column:18},end:{line:275,column:35}},{start:{line:276,column:18},end:{line:276,column:50}},{start:{line:277,column:18},end:{line:277,column:55}}],line:275},24:{loc:{start:{line:281,column:16},end:{line:283,column:17}},type:"if",locations:[{start:{line:281,column:16},end:{line:283,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:281},25:{loc:{start:{line:284,column:16},end:{line:286,column:17}},type:"if",locations:[{start:{line:284,column:16},end:{line:286,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:284},26:{loc:{start:{line:289,column:16},end:{line:301,column:17}},type:"if",locations:[{start:{line:289,column:16},end:{line:301,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:289},27:{loc:{start:{line:289,column:20},end:{line:289,column:74}},type:"binary-expr",locations:[{start:{line:289,column:20},end:{line:289,column:45}},{start:{line:289,column:49},end:{line:289,column:74}}],line:289},28:{loc:{start:{line:290,column:18},end:{line:299,column:19}},type:"if",locations:[{start:{line:290,column:18},end:{line:299,column:19}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:290},29:{loc:{start:{line:293,column:20},end:{line:295,column:21}},type:"if",locations:[{start:{line:293,column:20},end:{line:295,column:21}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:293},30:{loc:{start:{line:296,column:20},end:{line:298,column:21}},type:"if",locations:[{start:{line:296,column:20},end:{line:298,column:21}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:296},31:{loc:{start:{line:355,column:10},end:{line:410,column:11}},type:"if",locations:[{start:{line:355,column:10},end:{line:410,column:11}},{start:{line:366,column:17},end:{line:410,column:11}}],line:355},32:{loc:{start:{line:357,column:12},end:{line:364,column:13}},type:"if",locations:[{start:{line:357,column:12},end:{line:364,column:13}},{start:{line:362,column:19},end:{line:364,column:13}}],line:357},33:{loc:{start:{line:368,column:12},end:{line:400,column:13}},type:"if",locations:[{start:{line:368,column:12},end:{line:400,column:13}},{start:{line:384,column:19},end:{line:400,column:13}}],line:368},34:{loc:{start:{line:369,column:14},end:{line:383,column:15}},type:"if",locations:[{start:{line:369,column:14},end:{line:383,column:15}},{start:{line:376,column:21},end:{line:383,column:15}}],line:369},35:{loc:{start:{line:385,column:14},end:{line:399,column:15}},type:"if",locations:[{start:{line:385,column:14},end:{line:399,column:15}},{start:{line:392,column:21},end:{line:399,column:15}}],line:385},36:{loc:{start:{line:422,column:6},end:{line:464,column:7}},type:"if",locations:[{start:{line:422,column:6},end:{line:464,column:7}},{start:{line:443,column:13},end:{line:464,column:7}}],line:422},37:{loc:{start:{line:423,column:8},end:{line:442,column:9}},type:"if",locations:[{start:{line:423,column:8},end:{line:442,column:9}},{start:{line:430,column:15},end:{line:442,column:9}}],line:423},38:{loc:{start:{line:444,column:8},end:{line:463,column:9}},type:"if",locations:[{start:{line:444,column:8},end:{line:463,column:9}},{start:{line:451,column:15},end:{line:463,column:9}}],line:444},39:{loc:{start:{line:484,column:6},end:{line:525,column:7}},type:"if",locations:[{start:{line:484,column:6},end:{line:525,column:7}},{start:{line:522,column:13},end:{line:525,column:7}}],line:484},40:{loc:{start:{line:487,column:8},end:{line:505,column:9}},type:"if",locations:[{start:{line:487,column:8},end:{line:505,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:487},41:{loc:{start:{line:493,column:12},end:{line:499,column:13}},type:"if",locations:[{start:{line:493,column:12},end:{line:499,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:493},42:{loc:{start:{line:494,column:14},end:{line:496,column:37}},type:"binary-expr",locations:[{start:{line:494,column:14},end:{line:494,column:50}},{start:{line:495,column:14},end:{line:495,column:37}},{start:{line:496,column:14},end:{line:496,column:37}}],line:494},43:{loc:{start:{line:501,column:12},end:{line:503,column:13}},type:"if",locations:[{start:{line:501,column:12},end:{line:503,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:501},44:{loc:{start:{line:507,column:8},end:{line:509,column:9}},type:"if",locations:[{start:{line:507,column:8},end:{line:509,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:507},45:{loc:{start:{line:512,column:8},end:{line:520,column:9}},type:"if",locations:[{start:{line:512,column:8},end:{line:520,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:512},46:{loc:{start:{line:514,column:10},end:{line:519,column:11}},type:"if",locations:[{start:{line:514,column:10},end:{line:519,column:11}},{start:{line:517,column:17},end:{line:519,column:11}}],line:514},47:{loc:{start:{line:529,column:33},end:{line:529,column:51}},type:"default-arg",locations:[{start:{line:529,column:46},end:{line:529,column:51}}],line:529},48:{loc:{start:{line:531,column:6},end:{line:534,column:7}},type:"if",locations:[{start:{line:531,column:6},end:{line:534,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:531},49:{loc:{start:{line:531,column:10},end:{line:531,column:47}},type:"binary-expr",locations:[{start:{line:531,column:10},end:{line:531,column:23}},{start:{line:531,column:27},end:{line:531,column:47}}],line:531},50:{loc:{start:{line:535,column:6},end:{line:537,column:7}},type:"if",locations:[{start:{line:535,column:6},end:{line:537,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:535}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0,174:0,175:0,176:0,177:0,178:0,179:0,180:0,181:0,182:0,183:0,184:0,185:0,186:0,187:0,188:0,189: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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0,0],42:[0,0,0],43:[0,0],44:[0,0],45:[0,0],46:[0,0],47:[0],48:[0,0],49:[0,0],50:[0,0]},inputSourceMap:{version:3,sources:["CommandSender.vue"],names:[],mappings:";AA6NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA",file:"CommandSender.vue",sourceRoot:"src/tools/CommandSender",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus=\"menus\" :title=\"title\" />\n\n <target-packet-item-chooser\n :initial-target-name=\"this.$route.params.target\"\n :initial-packet-name=\"this.$route.params.packet\"\n @on-set=\"commandChanged($event)\"\n @click=\"buildCmd($event)\"\n :disabled=\"sendDisabled\"\n button-text=\"Send\"\n mode=\"cmd\"\n />\n\n <v-card v-if=\"rows.length !== 0\">\n <v-card-title>\n Parameters\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n append-icon=\"mdi-magnify\"\n label=\"Search\"\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers=\"headers\"\n :items=\"rows\"\n :search=\"search\"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n dense\n @contextmenu:row=\"showContextMenu\"\n >\n <template v-slot:item.val_and_states=\"{ item }\">\n <command-parameter-editor\n v-model=\"item.val_and_states\"\n :states-in-hex=\"statesInHex\"\n />\n </template>\n </v-data-table>\n </v-card>\n <div class=\"ma-3\">Status: {{ status }}</div>\n <div class=\"mt-3\">\n Editable Command History: (Pressing Enter on the line re-executes the\n command)\n </div>\n <v-textarea\n ref=\"history\"\n class=\"history\"\n :value=\"history\"\n solo\n dense\n hide-details\n auto-grow\n data-test=\"sender-history\"\n @keydown.enter=\"historyEnter($event)\"\n :background-color=\"getBackgroundColor()\"\n />\n\n <v-menu\n v-model=\"contextMenuShown\"\n :position-x=\"x\"\n :position-y=\"y\"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for=\"(item, index) in contextMenuOptions\"\n :key=\"index\"\n @click.stop=\"item.action\"\n >\n <v-list-item-title>{{ item.title }}</v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n <details-dialog\n :target-name=\"targetName\"\n :packet-name=\"commandName\"\n :item-name=\"parameterName\"\n :type=\"'cmd'\"\n v-model=\"viewDetails\"\n />\n\n <v-dialog v-model=\"displayErrorDialog\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Error </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <v-card-text>\n <span v-text=\"status\" />\n </v-card-text>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn\n @click=\"displayErrorDialog = false\"\n color=\"primary\"\n data-test=\"error-dialog-ok\"\n >\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n\n <v-dialog v-model=\"displaySendHazardous\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Hazardous Warning </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <span>\n Warning: Command {{ hazardousCommand }} is Hazardous. Send?\n </span>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn\n @click=\"cancelHazardousCmd\"\n outlined\n data-test=\"send-hazardous-no\"\n >\n No\n </v-btn>\n <v-btn\n @click=\"sendHazardousCmd\"\n class=\"primary mx-1\"\n data-test=\"send-hazardous-yes\"\n >\n Yes\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n\n <v-dialog v-model=\"displaySendRaw\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Send Raw </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <v-col>Interface:</v-col>\n <v-col>\n <v-select\n solo\n hide-details\n dense\n :items=\"interfaces\"\n item-text=\"label\"\n item-value=\"value\"\n v-model=\"selectedInterface\"\n />\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col>Filename:</v-col>\n <v-col>\n <input type=\"file\" @change=\"selectRawCmdFile($event)\" />\n </v-col>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn @click=\"cancelRawCmd\" outlined data-test=\"raw-cancel\">\n Cancel\n </v-btn>\n <v-btn @click=\"sendRawCmd\" class=\"primary\" data-test=\"raw-ok\">\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport Api from '@openc3/tool-common/src/services/api'\nimport TargetPacketItemChooser from '@openc3/tool-common/src/components/TargetPacketItemChooser'\nimport CommandParameterEditor from '@/tools/CommandSender/CommandParameterEditor'\nimport Utilities from '@/tools/CommandSender/utilities'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\nimport DetailsDialog from '@openc3/tool-common/src/components/DetailsDialog'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport 'sprintf-js'\n\nexport default {\n mixins: [Utilities],\n components: {\n DetailsDialog,\n TargetPacketItemChooser,\n CommandParameterEditor,\n TopBar,\n },\n data() {\n return {\n title: 'COSMOS Command Sender',\n search: '',\n headers: [\n { text: 'Name', value: 'parameter_name' },\n { text: 'Value or State', value: 'val_and_states' },\n { text: 'Units', value: 'units' },\n { text: 'Range', value: 'range' },\n { text: 'Description', value: 'description' },\n ],\n targetName: '',\n commandName: '',\n paramList: '',\n lastTargetName: '',\n lastCommandName: '',\n lastParamList: '',\n ignoreRangeChecks: false,\n statesInHex: false,\n showIgnoredParams: false,\n cmdRaw: false,\n ignoredParams: [],\n rows: [],\n interfaces: [],\n selectedInterface: '',\n rawCmdFile: null,\n status: '',\n history: '',\n hazardousCommand: '',\n displaySendHazardous: false,\n displayErrorDialog: false,\n displaySendRaw: false,\n sendDisabled: false,\n api: null,\n viewDetails: false,\n contextMenuShown: false,\n parameterName: '',\n reservedItemNames: [],\n x: 0,\n y: 0,\n contextMenuOptions: [\n {\n title: 'Details',\n action: () => {\n this.contextMenuShown = false\n this.viewDetails = true\n },\n },\n ],\n menus: [\n // TODO: Implement send raw\n // {\n // label: 'File',\n // items: [\n // {\n // label: 'Send Raw',\n // command: () => {\n // this.setupRawCmd()\n // }\n // }\n // ]\n // },\n {\n label: 'Mode',\n items: [\n {\n label: 'Ignore Range Checks',\n checkbox: true,\n command: () => {\n this.ignoreRangeChecks = !this.ignoreRangeChecks\n },\n },\n {\n label: 'Display State Values in Hex',\n checkbox: true,\n command: () => {\n this.statesInHex = !this.statesInHex\n },\n },\n {\n label: 'Show Ignored Parameters',\n checkbox: true,\n command: () => {\n this.showIgnoredParams = !this.showIgnoredParams\n // TODO: Maybe we don't need to do this if the data-table\n // can render the whole thing and we just display with v-if\n this.updateCmdParams()\n },\n },\n {\n label: 'Disable Parameter Conversions',\n checkbox: true,\n command: () => {\n this.cmdRaw = !this.cmdRaw\n },\n },\n ],\n },\n ],\n }\n },\n created() {\n Api.get(`/openc3-api/autocomplete/reserved-item-names`).then((response) => {\n this.reservedItemNames = response.data\n })\n this.api = new OpenC3Api()\n // If we're passed in the route then manually call commandChanged to update\n if (this.$route.params.target && this.$route.params.packet) {\n this.commandChanged({\n targetName: this.$route.params.target.toUpperCase(),\n packetName: this.$route.params.packet.toUpperCase(),\n })\n }\n },\n methods: {\n getBackgroundColor() {\n return this.$vuetify.theme.parsedTheme.tertiary.darken2\n },\n historyEnter(event) {\n // Prevent the enter key from actually causing a newline\n event.preventDefault()\n const textarea = this.$refs.history.$refs.input\n let pos = textarea.selectionStart\n // Find the newline after the cursor position\n let nextNewLine = textarea.value.indexOf('\\n', pos)\n // Get everything up to the next newline and split on newlines\n const lines = textarea.value.substr(0, nextNewLine).split('\\n')\n let command = lines[lines.length - 1]\n // Blank commands can happen if typing return on a blank line\n if (command === '') {\n return\n }\n\n // Remove the cmd(\"\") wrapper\n let firstQuote = command.indexOf('\"')\n let lastQuote = command.lastIndexOf('\"')\n command = command.substr(firstQuote + 1, lastQuote - firstQuote - 1)\n this.sendCmd(command)\n },\n\n showContextMenu(e, row) {\n e.preventDefault()\n this.parameterName = row.item.parameter_name\n this.contextMenuShown = false\n this.x = e.clientX\n this.y = e.clientY\n this.$nextTick(() => {\n this.contextMenuShown = true\n })\n },\n\n convertToValue(param) {\n if (\n param.val_and_states.selected_state !== null &&\n param.val_and_states.selected_state !== 'MANUALLY ENTERED' &&\n this.cmdRaw === false\n ) {\n return param.val_and_states.selected_state_label\n }\n if (typeof param.val_and_states.val !== 'string') {\n return param.val_and_states.val\n }\n\n var str = param.val_and_states.val\n var quotesRemoved = this.removeQuotes(str)\n if (str === quotesRemoved) {\n var upcaseStr = str.toUpperCase()\n if (\n (param.type === 'STRING' || param.type === 'BLOCK') &&\n upcaseStr.startsWith('0X')\n ) {\n var hexStr = upcaseStr.slice(2)\n if (hexStr.length % 2 !== 0) {\n hexStr = '0' + hexStr\n }\n var jstr = { json_class: 'String', raw: [] }\n for (var i = 0; i < hexStr.length; i += 2) {\n var nibble = hexStr.charAt(i) + hexStr.charAt(i + 1)\n jstr.raw.push(parseInt(nibble, 16))\n }\n return jstr\n } else {\n if (upcaseStr === 'INFINITY') {\n return Infinity\n } else if (upcaseStr === '-INFINITY') {\n return -Infinity\n } else if (upcaseStr === 'NAN') {\n return NaN\n } else if (this.isFloat(str)) {\n return parseFloat(str)\n } else if (this.isInt(str)) {\n return parseInt(str)\n } else if (this.isArray(str)) {\n return eval(str)\n } else {\n return str\n }\n }\n } else {\n return quotesRemoved\n }\n },\n\n commandChanged(event) {\n if (\n this.targetName !== event.targetName ||\n this.commandName !== event.packetName\n ) {\n this.targetName = event.targetName\n this.commandName = event.packetName\n // Only updateCmdParams if we're not already in the middle of an update\n if (this.sendDisabled === false) {\n this.updateCmdParams()\n }\n this.$router\n .replace({\n name: 'CommandSender',\n params: {\n target: this.targetName,\n packet: this.commandName,\n },\n })\n // catch the error in case we route to where we already are\n .catch((err) => {})\n }\n },\n\n updateCmdParams() {\n this.sendDisabled = true\n this.ignoredParams = []\n this.rows = []\n this.api\n .get_target(this.targetName)\n .then(\n (target) => {\n this.ignoredParams = target.ignored_parameters\n return this.api.get_command(this.targetName, this.commandName)\n },\n (error) => {\n this.displayError('getting ignored parameters', error)\n }\n )\n .then(\n (command) => {\n command.items.forEach((parameter) => {\n if (this.reservedItemNames.includes(parameter.name)) return\n if (\n !this.ignoredParams.includes(parameter.name) ||\n this.showIgnoredParams\n ) {\n let val = parameter.default\n // If the parameter is a string and the default is a string\n // (rather than object for binary) then we quote the string\n // However we don't do this is the parameter has states\n // because that messes up the state selection logic\n if (\n !parameter.states &&\n parameter.data_type === 'STRING' &&\n typeof parameter.default === 'string'\n ) {\n val = `'${val}'`\n }\n if (parameter.required) {\n val = ''\n }\n if (parameter.format_string) {\n val = sprintf(parameter.format_string, parameter.default)\n }\n let range = 'N/A'\n // check using != because compare with null\n if (parameter.minimum != null && parameter.maximum != null) {\n if (parameter.data_type === 'FLOAT') {\n // This is basically to handle the FLOAT MIN and MAX so they\n // don't print out the huge exponential\n if (parameter.minimum < -1e6) {\n parameter.minimum = parameter.minimum.toExponential(3)\n }\n if (parameter.maximum > 1e6) {\n parameter.maximum = parameter.maximum.toExponential(3)\n }\n }\n range = `${parameter.minimum}..${parameter.maximum}`\n }\n this.rows.push({\n parameter_name: parameter.name,\n val_and_states: {\n val: val,\n states: parameter.states,\n },\n description: parameter.description,\n range: range,\n units: parameter.units,\n type: parameter.data_type,\n })\n }\n })\n this.sendDisabled = false\n this.status = ''\n },\n (error) => {\n this.displayError('getting command parameters', error)\n }\n )\n },\n\n createParamList() {\n let paramList = {}\n for (var i = 0; i < this.rows.length; i++) {\n paramList[this.rows[i].parameter_name] = this.convertToValue(\n this.rows[i]\n )\n }\n return paramList\n },\n\n buildCmd() {\n this.sendCmd(this.targetName, this.commandName, this.createParamList())\n },\n\n // Note targetName can also be the entire command to send, e.g. \"INST ABORT\" or\n // \"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 10\" when being\n // sent from the history. In that case commandName and paramList are undefined\n // and the api calls handle that.\n sendCmd(targetName, commandName, paramList) {\n // Store what was actually sent for use in resending hazardous commands\n this.lastTargetName = targetName\n this.lastCommandName = commandName\n this.lastParamList = paramList\n\n this.sendDisabled = true\n let hazardous = false\n let cmd = ''\n this.api.get_cmd_hazardous(targetName, commandName, paramList).then(\n (response) => {\n hazardous = response\n\n if (hazardous) {\n // If it was sent from history it's all in targetName\n if (commandName === undefined) {\n this.hazardousCommand = targetName\n .split(' ')\n .slice(0, 2)\n .join(' ')\n } else {\n this.hazardousCommand = `${targetName} ${commandName}`\n }\n this.displaySendHazardous = true\n } else {\n let obs\n if (this.cmdRaw) {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_raw_no_range_check'\n obs = this.api.cmd_raw_no_range_check(\n targetName,\n commandName,\n paramList\n )\n } else {\n cmd = 'cmd_raw'\n obs = this.api.cmd_raw(targetName, commandName, paramList, {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n })\n }\n } else {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_no_range_check'\n obs = this.api.cmd_no_range_check(\n targetName,\n commandName,\n paramList\n )\n } else {\n cmd = 'cmd'\n obs = this.api.cmd(targetName, commandName, paramList, {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n })\n }\n }\n\n obs.then(\n (response) => {\n this.processCmdResponse(cmd, response)\n },\n (error) => {\n this.processCmdResponse(false, error)\n }\n )\n }\n },\n (error) => {\n this.processCmdResponse(false, error)\n }\n )\n },\n\n sendHazardousCmd() {\n this.displaySendHazardous = false\n let obs = ''\n let cmd = ''\n if (this.cmdRaw) {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_raw_no_range_check'\n obs = this.api.cmd_raw_no_checks(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList\n )\n } else {\n cmd = 'cmd_raw'\n obs = this.api.cmd_raw_no_hazardous_check(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList,\n {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n }\n )\n }\n } else {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_no_range_check'\n obs = this.api.cmd_no_checks(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList\n )\n } else {\n cmd = 'cmd'\n obs = this.api.cmd_no_hazardous_check(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList,\n {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n }\n )\n }\n }\n\n obs.then(\n (response) => {\n this.processCmdResponse(cmd, response)\n },\n (error) => {\n this.processCmdResponse(false, error)\n }\n )\n },\n\n cancelHazardousCmd() {\n this.displaySendHazardous = false\n this.status = 'Hazardous command not sent'\n this.sendDisabled = false\n },\n\n processCmdResponse(cmd_sent, response) {\n var msg = ''\n if (cmd_sent) {\n msg = `${cmd_sent}(\"${response[0]} ${response[1]}`\n var keys = Object.keys(response[2])\n if (keys.length > 0) {\n msg += ' with '\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i]\n var value = this.convertToString(response[2][key])\n // If the response has unquoted string data we add quotes\n if (\n typeof response[2][key] === 'string' &&\n value.charAt(0) !== \"'\" &&\n value.charAt(0) !== '\"'\n ) {\n value = `'${value}'`\n }\n msg += key + ' ' + value\n if (i < keys.length - 1) {\n msg += ', '\n }\n }\n }\n msg += '\")'\n if (!this.history.includes(msg)) {\n this.history += msg + '\\n'\n }\n msg += ' sent.'\n // Add the number of commands sent to the status message\n if (this.status.includes(msg)) {\n let parts = this.status.split('sent.')\n if (parts[1].includes('(')) {\n let num = parseInt(parts[1].substr(2, parts[1].indexOf(')') - 2))\n msg = parts[0] + 'sent. (' + (num + 1) + ')'\n } else {\n msg += ' (2)'\n }\n }\n this.status = msg\n } else {\n var context = 'sending ' + this.targetName + ' ' + this.commandName\n this.displayError(context, response, true)\n }\n this.sendDisabled = false\n },\n\n displayError(context, error, showDialog = false) {\n this.status = `Error ${context} due to ${error.name}`\n if (error.message && error.message !== '') {\n this.status += ': '\n this.status += error.message\n }\n if (showDialog) {\n this.displayErrorDialog = true\n }\n },\n\n // setupRawCmd() {\n // this.api.get_interface_names().then(\n // (response) => {\n // var interfaces = []\n // for (var i = 0; i < response.length; i++) {\n // interfaces.push({ label: response[i], value: response[i] })\n // }\n // this.interfaces = interfaces\n // this.selectedInterface = interfaces[0].value\n // this.displaySendRaw = true\n // },\n // (error) => {\n // this.displaySendRaw = false\n // this.displayError('getting interface names', error, true)\n // }\n // )\n // },\n\n // selectRawCmdFile(event) {\n // this.rawCmdFile = event.target.files[0]\n // },\n\n // onLoad(event) {\n // var bufView = new Uint8Array(event.target.result)\n // var jstr = { json_class: 'String', raw: [] }\n // for (var i = 0; i < bufView.length; i++) {\n // jstr.raw.push(bufView[i])\n // }\n\n // this.api.send_raw(this.selectedInterface, jstr).then(\n // () => {\n // this.displaySendRaw = false\n // this.status =\n // 'Sent ' +\n // bufView.length +\n // ' bytes to interface ' +\n // this.selectedInterface\n // },\n // (error) => {\n // this.displaySendRaw = false\n // this.displayError('sending raw data', error, true)\n // }\n // )\n // },\n\n // sendRawCmd() {\n // var self = this\n // var reader = new FileReader()\n // reader.onload = function (e) {\n // self.onLoad(e)\n // }\n // reader.onerror = function (e) {\n // self.displaySendRaw = false\n // var target = e.target\n // self.displayError('sending raw data', target.error, true)\n // }\n // // TBD - use the other event handlers to implement a progress bar for the\n // // file upload. Handle abort as well?\n // //reader.onloadstart = function(e) {}\n // //reader.onprogress = function(e) {}\n // //reader.onloadend = function(e) {}\n // //reader.onabort = function(e) {}\n\n // reader.readAsArrayBuffer(this.rawCmdFile)\n // },\n\n // cancelRawCmd() {\n // this.displaySendRaw = false\n // this.status = 'Raw command not sent'\n // },\n },\n}\n<\/script>\n<style scoped>\n.history {\n font-family: monospace;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e840fb5d74f7bacc35d43567292e6722db94307d"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=a);var s=o[e];return cov_16daumg2kr=function(){return s},s}cov_16daumg2kr(),__webpack_exports__["Z"]={mixins:[_tools_CommandSender_utilities__WEBPACK_IMPORTED_MODULE_21__.Z],components:{DetailsDialog:_openc3_tool_common_src_components_DetailsDialog__WEBPACK_IMPORTED_MODULE_23__.Z,TargetPacketItemChooser:_openc3_tool_common_src_components_TargetPacketItemChooser__WEBPACK_IMPORTED_MODULE_19__.Z,CommandParameterEditor:_tools_CommandSender_CommandParameterEditor__WEBPACK_IMPORTED_MODULE_20__.Z,TopBar:_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_24__.Z},data:function(){var e=this;return cov_16daumg2kr().f[0]++,cov_16daumg2kr().s[0]++,{title:"COSMOS Command Sender",search:"",headers:[{text:"Name",value:"parameter_name"},{text:"Value or State",value:"val_and_states"},{text:"Units",value:"units"},{text:"Range",value:"range"},{text:"Description",value:"description"}],targetName:"",commandName:"",paramList:"",lastTargetName:"",lastCommandName:"",lastParamList:"",ignoreRangeChecks:!1,statesInHex:!1,showIgnoredParams:!1,cmdRaw:!1,ignoredParams:[],rows:[],interfaces:[],selectedInterface:"",rawCmdFile:null,status:"",history:"",hazardousCommand:"",displaySendHazardous:!1,displayErrorDialog:!1,displaySendRaw:!1,sendDisabled:!1,api:null,viewDetails:!1,contextMenuShown:!1,parameterName:"",reservedItemNames:[],x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){cov_16daumg2kr().f[1]++,cov_16daumg2kr().s[1]++,e.contextMenuShown=!1,cov_16daumg2kr().s[2]++,e.viewDetails=!0}}],menus:[{label:"Mode",items:[{label:"Ignore Range Checks",checkbox:!0,command:function(){cov_16daumg2kr().f[2]++,cov_16daumg2kr().s[3]++,e.ignoreRangeChecks=!e.ignoreRangeChecks}},{label:"Display State Values in Hex",checkbox:!0,command:function(){cov_16daumg2kr().f[3]++,cov_16daumg2kr().s[4]++,e.statesInHex=!e.statesInHex}},{label:"Show Ignored Parameters",checkbox:!0,command:function(){cov_16daumg2kr().f[4]++,cov_16daumg2kr().s[5]++,e.showIgnoredParams=!e.showIgnoredParams,cov_16daumg2kr().s[6]++,e.updateCmdParams()}},{label:"Disable Parameter Conversions",checkbox:!0,command:function(){cov_16daumg2kr().f[5]++,cov_16daumg2kr().s[7]++,e.cmdRaw=!e.cmdRaw}}]}]}},created:function(){var e=this;cov_16daumg2kr().f[6]++,cov_16daumg2kr().s[8]++,_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_18__.Z.get("/openc3-api/autocomplete/reserved-item-names").then((function(n){cov_16daumg2kr().f[7]++,cov_16daumg2kr().s[9]++,e.reservedItemNames=n.data})),cov_16daumg2kr().s[10]++,this.api=new _openc3_tool_common_src_services_openc3_api__WEBPACK_IMPORTED_MODULE_22__.k,cov_16daumg2kr().s[11]++,cov_16daumg2kr().b[1][0]++,this.$route.params.target&&(cov_16daumg2kr().b[1][1]++,this.$route.params.packet)?(cov_16daumg2kr().b[0][0]++,cov_16daumg2kr().s[12]++,this.commandChanged({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase()})):cov_16daumg2kr().b[0][1]++},methods:{getBackgroundColor:function(){return cov_16daumg2kr().f[8]++,cov_16daumg2kr().s[13]++,this.$vuetify.theme.parsedTheme.tertiary.darken2},historyEnter:function(e){cov_16daumg2kr().f[9]++,cov_16daumg2kr().s[14]++,e.preventDefault();var n=(cov_16daumg2kr().s[15]++,this.$refs.history.$refs.input),t=(cov_16daumg2kr().s[16]++,n.selectionStart),l=(cov_16daumg2kr().s[17]++,n.value.indexOf("\n",t)),a=(cov_16daumg2kr().s[18]++,n.value.substr(0,l).split("\n")),o=(cov_16daumg2kr().s[19]++,a[a.length-1]);if(cov_16daumg2kr().s[20]++,""===o)return cov_16daumg2kr().b[2][0]++,void cov_16daumg2kr().s[21]++;cov_16daumg2kr().b[2][1]++;var s=(cov_16daumg2kr().s[22]++,o.indexOf('"')),i=(cov_16daumg2kr().s[23]++,o.lastIndexOf('"'));cov_16daumg2kr().s[24]++,o=o.substr(s+1,i-s-1),cov_16daumg2kr().s[25]++,this.sendCmd(o)},showContextMenu:function(e,n){var t=this;cov_16daumg2kr().f[10]++,cov_16daumg2kr().s[26]++,e.preventDefault(),cov_16daumg2kr().s[27]++,this.parameterName=n.item.parameter_name,cov_16daumg2kr().s[28]++,this.contextMenuShown=!1,cov_16daumg2kr().s[29]++,this.x=e.clientX,cov_16daumg2kr().s[30]++,this.y=e.clientY,cov_16daumg2kr().s[31]++,this.$nextTick((function(){cov_16daumg2kr().f[11]++,cov_16daumg2kr().s[32]++,t.contextMenuShown=!0}))},convertToValue:function convertToValue(param){if(cov_16daumg2kr().f[12]++,cov_16daumg2kr().s[33]++,cov_16daumg2kr().b[4][0]++,null!==param.val_and_states.selected_state&&(cov_16daumg2kr().b[4][1]++,"MANUALLY ENTERED"!==param.val_and_states.selected_state)&&(cov_16daumg2kr().b[4][2]++,!1===this.cmdRaw))return cov_16daumg2kr().b[3][0]++,cov_16daumg2kr().s[34]++,param.val_and_states.selected_state_label;if(cov_16daumg2kr().b[3][1]++,cov_16daumg2kr().s[35]++,"string"!==typeof param.val_and_states.val)return cov_16daumg2kr().b[5][0]++,cov_16daumg2kr().s[36]++,param.val_and_states.val;cov_16daumg2kr().b[5][1]++;var str=(cov_16daumg2kr().s[37]++,param.val_and_states.val),quotesRemoved=(cov_16daumg2kr().s[38]++,this.removeQuotes(str));if(cov_16daumg2kr().s[39]++,str===quotesRemoved){cov_16daumg2kr().b[6][0]++;var upcaseStr=(cov_16daumg2kr().s[40]++,str.toUpperCase());if(cov_16daumg2kr().s[41]++,cov_16daumg2kr().b[8][0]++,"STRING"!==param.type&&(cov_16daumg2kr().b[8][1]++,"BLOCK"!==param.type)||(cov_16daumg2kr().b[8][2]++,!upcaseStr.startsWith("0X")))return cov_16daumg2kr().b[7][1]++,cov_16daumg2kr().s[51]++,"INFINITY"===upcaseStr?(cov_16daumg2kr().b[10][0]++,cov_16daumg2kr().s[52]++,1/0):(cov_16daumg2kr().b[10][1]++,cov_16daumg2kr().s[53]++,"-INFINITY"===upcaseStr?(cov_16daumg2kr().b[11][0]++,cov_16daumg2kr().s[54]++,-1/0):(cov_16daumg2kr().b[11][1]++,cov_16daumg2kr().s[55]++,"NAN"===upcaseStr?(cov_16daumg2kr().b[12][0]++,cov_16daumg2kr().s[56]++,NaN):(cov_16daumg2kr().b[12][1]++,cov_16daumg2kr().s[57]++,this.isFloat(str)?(cov_16daumg2kr().b[13][0]++,cov_16daumg2kr().s[58]++,parseFloat(str)):(cov_16daumg2kr().b[13][1]++,cov_16daumg2kr().s[59]++,this.isInt(str)?(cov_16daumg2kr().b[14][0]++,cov_16daumg2kr().s[60]++,parseInt(str)):(cov_16daumg2kr().b[14][1]++,cov_16daumg2kr().s[61]++,this.isArray(str)?(cov_16daumg2kr().b[15][0]++,cov_16daumg2kr().s[62]++,eval(str)):(cov_16daumg2kr().b[15][1]++,cov_16daumg2kr().s[63]++,str))))));cov_16daumg2kr().b[7][0]++;var hexStr=(cov_16daumg2kr().s[42]++,upcaseStr.slice(2));cov_16daumg2kr().s[43]++,hexStr.length%2!==0?(cov_16daumg2kr().b[9][0]++,cov_16daumg2kr().s[44]++,hexStr="0"+hexStr):cov_16daumg2kr().b[9][1]++;var jstr=(cov_16daumg2kr().s[45]++,{json_class:"String",raw:[]});cov_16daumg2kr().s[46]++;for(var i=(cov_16daumg2kr().s[47]++,0);i<hexStr.length;i+=2){var nibble=(cov_16daumg2kr().s[48]++,hexStr.charAt(i)+hexStr.charAt(i+1));cov_16daumg2kr().s[49]++,jstr.raw.push(parseInt(nibble,16))}return cov_16daumg2kr().s[50]++,jstr}return cov_16daumg2kr().b[6][1]++,cov_16daumg2kr().s[64]++,quotesRemoved},commandChanged:function(e){cov_16daumg2kr().f[13]++,cov_16daumg2kr().s[65]++,cov_16daumg2kr().b[17][0]++,this.targetName!==e.targetName||(cov_16daumg2kr().b[17][1]++,this.commandName!==e.packetName)?(cov_16daumg2kr().b[16][0]++,cov_16daumg2kr().s[66]++,this.targetName=e.targetName,cov_16daumg2kr().s[67]++,this.commandName=e.packetName,cov_16daumg2kr().s[68]++,!1===this.sendDisabled?(cov_16daumg2kr().b[18][0]++,cov_16daumg2kr().s[69]++,this.updateCmdParams()):cov_16daumg2kr().b[18][1]++,cov_16daumg2kr().s[70]++,this.$router.replace({name:"CommandSender",params:{target:this.targetName,packet:this.commandName}}).catch((function(e){cov_16daumg2kr().f[14]++}))):cov_16daumg2kr().b[16][1]++},updateCmdParams:function(){var e=this;cov_16daumg2kr().f[15]++,cov_16daumg2kr().s[71]++,this.sendDisabled=!0,cov_16daumg2kr().s[72]++,this.ignoredParams=[],cov_16daumg2kr().s[73]++,this.rows=[],cov_16daumg2kr().s[74]++,this.api.get_target(this.targetName).then((function(n){return cov_16daumg2kr().f[16]++,cov_16daumg2kr().s[75]++,e.ignoredParams=n.ignored_parameters,cov_16daumg2kr().s[76]++,e.api.get_command(e.targetName,e.commandName)}),(function(n){cov_16daumg2kr().f[17]++,cov_16daumg2kr().s[77]++,e.displayError("getting ignored parameters",n)})).then((function(n){cov_16daumg2kr().f[18]++,cov_16daumg2kr().s[78]++,n.items.forEach((function(n){if(cov_16daumg2kr().f[19]++,cov_16daumg2kr().s[79]++,e.reservedItemNames.includes(n.name))return cov_16daumg2kr().b[19][0]++,void cov_16daumg2kr().s[80]++;if(cov_16daumg2kr().b[19][1]++,cov_16daumg2kr().s[81]++,cov_16daumg2kr().b[21][0]++,!e.ignoredParams.includes(n.name)||(cov_16daumg2kr().b[21][1]++,e.showIgnoredParams)){cov_16daumg2kr().b[20][0]++;var t=(cov_16daumg2kr().s[82]++,n.default);cov_16daumg2kr().s[83]++,cov_16daumg2kr().b[23][0]++,n.states||(cov_16daumg2kr().b[23][1]++,"STRING"!==n.data_type)||(cov_16daumg2kr().b[23][2]++,"string"!==typeof n.default)?cov_16daumg2kr().b[22][1]++:(cov_16daumg2kr().b[22][0]++,cov_16daumg2kr().s[84]++,t="'".concat(t,"'")),cov_16daumg2kr().s[85]++,n.required?(cov_16daumg2kr().b[24][0]++,cov_16daumg2kr().s[86]++,t=""):cov_16daumg2kr().b[24][1]++,cov_16daumg2kr().s[87]++,n.format_string?(cov_16daumg2kr().b[25][0]++,cov_16daumg2kr().s[88]++,t=sprintf(n.format_string,n.default)):cov_16daumg2kr().b[25][1]++;var l=(cov_16daumg2kr().s[89]++,"N/A");cov_16daumg2kr().s[90]++,cov_16daumg2kr().b[27][0]++,null!=n.minimum&&(cov_16daumg2kr().b[27][1]++,null!=n.maximum)?(cov_16daumg2kr().b[26][0]++,cov_16daumg2kr().s[91]++,"FLOAT"===n.data_type?(cov_16daumg2kr().b[28][0]++,cov_16daumg2kr().s[92]++,n.minimum<-1e6?(cov_16daumg2kr().b[29][0]++,cov_16daumg2kr().s[93]++,n.minimum=n.minimum.toExponential(3)):cov_16daumg2kr().b[29][1]++,cov_16daumg2kr().s[94]++,n.maximum>1e6?(cov_16daumg2kr().b[30][0]++,cov_16daumg2kr().s[95]++,n.maximum=n.maximum.toExponential(3)):cov_16daumg2kr().b[30][1]++):cov_16daumg2kr().b[28][1]++,cov_16daumg2kr().s[96]++,l="".concat(n.minimum,"..").concat(n.maximum)):cov_16daumg2kr().b[26][1]++,cov_16daumg2kr().s[97]++,e.rows.push({parameter_name:n.name,val_and_states:{val:t,states:n.states},description:n.description,range:l,units:n.units,type:n.data_type})}else cov_16daumg2kr().b[20][1]++})),cov_16daumg2kr().s[98]++,e.sendDisabled=!1,cov_16daumg2kr().s[99]++,e.status=""}),(function(n){cov_16daumg2kr().f[20]++,cov_16daumg2kr().s[100]++,e.displayError("getting command parameters",n)}))},createParamList:function(){cov_16daumg2kr().f[21]++;var e=(cov_16daumg2kr().s[101]++,{});cov_16daumg2kr().s[102]++;for(var n=(cov_16daumg2kr().s[103]++,0);n<this.rows.length;n++)cov_16daumg2kr().s[104]++,e[this.rows[n].parameter_name]=this.convertToValue(this.rows[n]);return cov_16daumg2kr().s[105]++,e},buildCmd:function(){cov_16daumg2kr().f[22]++,cov_16daumg2kr().s[106]++,this.sendCmd(this.targetName,this.commandName,this.createParamList())},sendCmd:function(e,n,t){var l=this;cov_16daumg2kr().f[23]++,cov_16daumg2kr().s[107]++,this.lastTargetName=e,cov_16daumg2kr().s[108]++,this.lastCommandName=n,cov_16daumg2kr().s[109]++,this.lastParamList=t,cov_16daumg2kr().s[110]++,this.sendDisabled=!0;var a=(cov_16daumg2kr().s[111]++,!1),o=(cov_16daumg2kr().s[112]++,"");cov_16daumg2kr().s[113]++,this.api.get_cmd_hazardous(e,n,t).then((function(s){var i;(cov_16daumg2kr().f[24]++,cov_16daumg2kr().s[114]++,a=s,cov_16daumg2kr().s[115]++,a)?(cov_16daumg2kr().b[31][0]++,cov_16daumg2kr().s[116]++,void 0===n?(cov_16daumg2kr().b[32][0]++,cov_16daumg2kr().s[117]++,l.hazardousCommand=e.split(" ").slice(0,2).join(" ")):(cov_16daumg2kr().b[32][1]++,cov_16daumg2kr().s[118]++,l.hazardousCommand="".concat(e," ").concat(n)),cov_16daumg2kr().s[119]++,l.displaySendHazardous=!0):(cov_16daumg2kr().b[31][1]++,cov_16daumg2kr().s[120]++,l.cmdRaw?(cov_16daumg2kr().b[33][0]++,cov_16daumg2kr().s[121]++,l.ignoreRangeChecks?(cov_16daumg2kr().b[34][0]++,cov_16daumg2kr().s[122]++,o="cmd_raw_no_range_check",cov_16daumg2kr().s[123]++,i=l.api.cmd_raw_no_range_check(e,n,t)):(cov_16daumg2kr().b[34][1]++,cov_16daumg2kr().s[124]++,o="cmd_raw",cov_16daumg2kr().s[125]++,i=l.api.cmd_raw(e,n,t,{"Ignore-Errors":"500"}))):(cov_16daumg2kr().b[33][1]++,cov_16daumg2kr().s[126]++,l.ignoreRangeChecks?(cov_16daumg2kr().b[35][0]++,cov_16daumg2kr().s[127]++,o="cmd_no_range_check",cov_16daumg2kr().s[128]++,i=l.api.cmd_no_range_check(e,n,t)):(cov_16daumg2kr().b[35][1]++,cov_16daumg2kr().s[129]++,o="cmd",cov_16daumg2kr().s[130]++,i=l.api.cmd(e,n,t,{"Ignore-Errors":"500"}))),cov_16daumg2kr().s[131]++,i.then((function(e){cov_16daumg2kr().f[25]++,cov_16daumg2kr().s[132]++,l.processCmdResponse(o,e)}),(function(e){cov_16daumg2kr().f[26]++,cov_16daumg2kr().s[133]++,l.processCmdResponse(!1,e)})))}),(function(e){cov_16daumg2kr().f[27]++,cov_16daumg2kr().s[134]++,l.processCmdResponse(!1,e)}))},sendHazardousCmd:function(){var e=this;cov_16daumg2kr().f[28]++,cov_16daumg2kr().s[135]++,this.displaySendHazardous=!1;var n=(cov_16daumg2kr().s[136]++,""),t=(cov_16daumg2kr().s[137]++,"");cov_16daumg2kr().s[138]++,this.cmdRaw?(cov_16daumg2kr().b[36][0]++,cov_16daumg2kr().s[139]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[37][0]++,cov_16daumg2kr().s[140]++,t="cmd_raw_no_range_check",cov_16daumg2kr().s[141]++,n=this.api.cmd_raw_no_checks(this.lastTargetName,this.lastCommandName,this.lastParamList)):(cov_16daumg2kr().b[37][1]++,cov_16daumg2kr().s[142]++,t="cmd_raw",cov_16daumg2kr().s[143]++,n=this.api.cmd_raw_no_hazardous_check(this.lastTargetName,this.lastCommandName,this.lastParamList,{"Ignore-Errors":"500"}))):(cov_16daumg2kr().b[36][1]++,cov_16daumg2kr().s[144]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[38][0]++,cov_16daumg2kr().s[145]++,t="cmd_no_range_check",cov_16daumg2kr().s[146]++,n=this.api.cmd_no_checks(this.lastTargetName,this.lastCommandName,this.lastParamList)):(cov_16daumg2kr().b[38][1]++,cov_16daumg2kr().s[147]++,t="cmd",cov_16daumg2kr().s[148]++,n=this.api.cmd_no_hazardous_check(this.lastTargetName,this.lastCommandName,this.lastParamList,{"Ignore-Errors":"500"}))),cov_16daumg2kr().s[149]++,n.then((function(n){cov_16daumg2kr().f[29]++,cov_16daumg2kr().s[150]++,e.processCmdResponse(t,n)}),(function(n){cov_16daumg2kr().f[30]++,cov_16daumg2kr().s[151]++,e.processCmdResponse(!1,n)}))},cancelHazardousCmd:function(){cov_16daumg2kr().f[31]++,cov_16daumg2kr().s[152]++,this.displaySendHazardous=!1,cov_16daumg2kr().s[153]++,this.status="Hazardous command not sent",cov_16daumg2kr().s[154]++,this.sendDisabled=!1},processCmdResponse:function(e,n){cov_16daumg2kr().f[32]++;var t=(cov_16daumg2kr().s[155]++,"");if(cov_16daumg2kr().s[156]++,e){cov_16daumg2kr().b[39][0]++,cov_16daumg2kr().s[157]++,t="".concat(e,'("').concat(n[0]," ").concat(n[1]);var l=(cov_16daumg2kr().s[158]++,Object.keys(n[2]));if(cov_16daumg2kr().s[159]++,l.length>0){cov_16daumg2kr().b[40][0]++,cov_16daumg2kr().s[160]++,t+=" with ",cov_16daumg2kr().s[161]++;for(var a=(cov_16daumg2kr().s[162]++,0);a<l.length;a++){var o=(cov_16daumg2kr().s[163]++,l[a]),s=(cov_16daumg2kr().s[164]++,this.convertToString(n[2][o]));cov_16daumg2kr().s[165]++,cov_16daumg2kr().b[42][0]++,"string"===typeof n[2][o]&&(cov_16daumg2kr().b[42][1]++,"'"!==s.charAt(0))&&(cov_16daumg2kr().b[42][2]++,'"'!==s.charAt(0))?(cov_16daumg2kr().b[41][0]++,cov_16daumg2kr().s[166]++,s="'".concat(s,"'")):cov_16daumg2kr().b[41][1]++,cov_16daumg2kr().s[167]++,t+=o+" "+s,cov_16daumg2kr().s[168]++,a<l.length-1?(cov_16daumg2kr().b[43][0]++,cov_16daumg2kr().s[169]++,t+=", "):cov_16daumg2kr().b[43][1]++}}else cov_16daumg2kr().b[40][1]++;if(cov_16daumg2kr().s[170]++,t+='")',cov_16daumg2kr().s[171]++,this.history.includes(t)?cov_16daumg2kr().b[44][1]++:(cov_16daumg2kr().b[44][0]++,cov_16daumg2kr().s[172]++,this.history+=t+"\n"),cov_16daumg2kr().s[173]++,t+=" sent.",cov_16daumg2kr().s[174]++,this.status.includes(t)){cov_16daumg2kr().b[45][0]++;var i=(cov_16daumg2kr().s[175]++,this.status.split("sent."));if(cov_16daumg2kr().s[176]++,i[1].includes("(")){cov_16daumg2kr().b[46][0]++;var c=(cov_16daumg2kr().s[177]++,parseInt(i[1].substr(2,i[1].indexOf(")")-2)));cov_16daumg2kr().s[178]++,t=i[0]+"sent. ("+(c+1)+")"}else cov_16daumg2kr().b[46][1]++,cov_16daumg2kr().s[179]++,t+=" (2)"}else cov_16daumg2kr().b[45][1]++;cov_16daumg2kr().s[180]++,this.status=t}else{cov_16daumg2kr().b[39][1]++;var r=(cov_16daumg2kr().s[181]++,"sending "+this.targetName+" "+this.commandName);cov_16daumg2kr().s[182]++,this.displayError(r,n,!0)}cov_16daumg2kr().s[183]++,this.sendDisabled=!1},displayError:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(cov_16daumg2kr().b[47][0]++,!1);cov_16daumg2kr().f[33]++,cov_16daumg2kr().s[184]++,this.status="Error ".concat(e," due to ").concat(n.name),cov_16daumg2kr().s[185]++,cov_16daumg2kr().b[49][0]++,n.message&&(cov_16daumg2kr().b[49][1]++,""!==n.message)?(cov_16daumg2kr().b[48][0]++,cov_16daumg2kr().s[186]++,this.status+=": ",cov_16daumg2kr().s[187]++,this.status+=n.message):cov_16daumg2kr().b[48][1]++,cov_16daumg2kr().s[188]++,t?(cov_16daumg2kr().b[50][0]++,cov_16daumg2kr().s[189]++,this.displayErrorDialog=!0):cov_16daumg2kr().b[50][1]++}}}},8961:function(e,n,t){var l=t(4179);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var a=t(3514).Z;a("58ede6b4",l,!0,{sourceMap:!1,shadowMode:!1})},801:function(e,n,t){var l=t(8566);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var a=t(3514).Z;a("6a639655",l,!0,{sourceMap:!1,shadowMode:!1})},3270:function(e,n,t){var l=t(3208);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var a=t(3514).Z;a("c388abcc",l,!0,{sourceMap:!1,shadowMode:!1})},6423:function(e,n,t){var l=t(6473);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var a=t(3514).Z;a("56a0acd8",l,!0,{sourceMap:!1,shadowMode:!1})},4888:function(e,n,t){var l=t(6294);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var a=t(3514).Z;a("706a3f6d",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=892.js.map
|