openc3-cosmos-tool-cmdsender 5.10.1 → 5.11.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/186.js +43 -0
- data/tools/cmdsender/js/186.js.map +1 -0
- data/tools/cmdsender/js/388.js +1 -1
- data/tools/cmdsender/js/388.js.map +1 -1
- data/tools/cmdsender/js/816.js +2 -0
- data/tools/cmdsender/js/816.js.map +1 -0
- data/tools/cmdsender/js/app.js +1 -1
- data/tools/cmdsender/js/app.js.map +1 -1
- metadata +6 -6
- data/tools/cmdsender/js/560.js +0 -43
- data/tools/cmdsender/js/560.js.map +0 -1
- data/tools/cmdsender/js/912.js +0 -2
- data/tools/cmdsender/js/912.js.map +0 -1
data/tools/cmdsender/js/912.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_cmdsender"]=self["webpackChunk_openc3_cosmos_tool_cmdsender"]||[]).push([[912],{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;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 i="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(i+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&t.data&&(i+="".concat(e.response.config.data," ")),null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&l.message)i+="".concat(e.response.data.message);else if(null!==(a=e.response)&&void 0!==a&&null!==(a=a.data)&&void 0!==a&&a.exception)i+="".concat(e.response.data.exception);else if(null!==(o=e.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&null!==(o=o.error)&&void 0!==o&&o.message)e.response.data.error.class&&(i+="".concat(e.response.data.error.class," ")),i+="".concat(e.response.data.error.message);else{var c;i+="".concat(null===(c=e.response)||void 0===c?void 0:c.data)}throw s.$notify&&s.$notify.serious({title:"Network error",body:i}),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(2994),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(2529),t(6943),t(9224),t(1157),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,d=arguments;return(0,a.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=d.length>2&&void 0!==d[2]?d[2]:{},s=d.length>3&&void 0!==d[3]?d[3]:{},i=d.length>4&&void 0!==d[4]?d[4]:6e4,e.prev=3,e.next=6,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 6:c=e.sent,c&&OpenC3Auth.setTokens(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),OpenC3Auth.login();case 13:return this.id=this.id+1,e.prev=14,l["scope"]=window.openc3Scope,e.next=18,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),timeout:i});case 18:return r=e.sent,e.abrupt("return",r.data.result);case 22:throw e.prev=22,e.t1=e["catch"](14),m=new Error,e.t1.response?(m.name=e.t1.response.data.error.data.class,m.message=e.t1.response.data.error.data.message):e.t1.request?(m.name="Request error",m.message="Request error, no response received"):m.name="Unknown error",m;case 27:case"end":return e.stop()}}),e,this,[[3,10],[14,22]])})));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_target_names",value:function(){return this.exec("get_target_names",[])}},{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},{},1e4);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:"build_command",value:function(e,n,t){return void 0===n?this.exec("build_command",e):this._cmd("build_command",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},5912:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});t(7950),t(4908);function l(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",n="4a700b24f6ab7e046308ca75402433cdb45e4424",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:4935}},4:{start:{line:1,column:412},end:{line:1,column:445}},5:{start:{line:1,column:472},end:{line:1,column:499}},6:{start:{line:1,column:756},end:{line:1,column:770}},7:{start:{line:1,column:1095},end:{line:1,column:1309}},8:{start:{line:1,column:1234},end:{line:1,column:1271}},9:{start:{line:1,column:1887},end:{line:1,column:1911}},10:{start:{line:1,column:2011},end:{line:1,column:2202}},11:{start:{line:1,column:2075},end:{line:1,column:2100}},12:{start:{line:1,column:2100},end:{line:1,column:2141}},13:{start:{line:1,column:2399},end:{line:1,column:2418}},14:{start:{line:1,column:2552},end:{line:1,column:2578}},15:{start:{line:1,column:2999},end:{line:1,column:3029}},16:{start:{line:1,column:3175},end:{line:1,column:3203}},17:{start:{line:1,column:3930},end:{line:1,column:3952}},18:{start:{line:1,column:4402},end:{line:1,column:4427}},19:{start:{line:1,column:4619},end:{line:1,column:4654}},20:{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:395},end:{line:1,column:396}},loc:{start:{line:1,column:411},end:{line:1,column:446}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:455},end:{line:1,column:456}},loc:{start:{line:1,column:471},end:{line:1,column:500}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:740},end:{line:1,column:741}},loc:{start:{line:1,column:755},end:{line:1,column:771}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1076},end:{line:1,column:1077}},loc:{start:{line:1,column:1094},end:{line:1,column:1310}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1218},end:{line:1,column:1219}},loc:{start:{line:1,column:1233},end:{line:1,column:1272}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1871},end:{line:1,column:1872}},loc:{start:{line:1,column:1886},end:{line:1,column:1912}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1990},end:{line:1,column:1991}},loc:{start:{line:1,column:2010},end:{line:1,column:2203}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2058},end:{line:1,column:2059}},loc:{start:{line:1,column:2074},end:{line:1,column:2142}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2383},end:{line:1,column:2384}},loc:{start:{line:1,column:2398},end:{line:1,column:2419}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2536},end:{line:1,column:2537}},loc:{start:{line:1,column:2551},end:{line:1,column:2579}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2982},end:{line:1,column:2983}},loc:{start:{line:1,column:2998},end:{line:1,column:3030}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:3159},end:{line:1,column:3160}},loc:{start:{line:1,column:3174},end:{line:1,column:3204}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:3914},end:{line:1,column:3915}},loc:{start:{line:1,column:3929},end:{line:1,column:3953}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4386},end:{line:1,column:4387}},loc:{start:{line:1,column:4401},end:{line:1,column:4428}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:4602},end:{line:1,column:4603}},loc:{start:{line:1,column:4618},end:{line:1,column:4655}},line:1}},branchMap:{0:{loc:{start:{line:1,column:504},end:{line:1,column:1350}},type:"cond-expr",locations:[{start:{line:1,column:528},end:{line:1,column:1341}},{start:{line:1,column:1342},end:{line:1,column:1350}}],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},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},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4a700b24f6ab7e046308ca75402433cdb45e4424"},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("v-card",{staticStyle:{padding:"10px"}},[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))])],1),n("div",{staticStyle:{height:"15px"}}),n("v-card",{staticClass:"pb-2"},[n("v-card-subtitle",[e._v(" Editable Command History: (Pressing Enter on the line re-executes the command) ")]),n("v-row",{staticClass:"mb-2"},[n("pre",{ref:"editor",staticClass:"editor",attrs:{"data-test":"sender-history"}})])],1),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){l().f[6]++,l().s[9]++,e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,a){return l().f[7]++,l().s[10]++,n("v-list-item",{key:a,on:{click:function(e){return l().f[8]++,l().s[11]++,e.stopPropagation(),l().s[12]++,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[9]++,l().s[13]++,e.viewDetails=n},expression:"viewDetails"}}),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displayErrorDialog,callback:function(n){l().f[10]++,l().s[14]++,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[11]++,l().s[15]++,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[12]++,l().s[16]++,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[13]++,l().s[17]++,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[14]++,l().s[18]++,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[15]++,l().s[19]++,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[20]++,[]),s=t(7163),i=s.Z,c=(t(1959),t(3483)),r=(0,c.Z)(i,a,o,!1,null,"4b5a3476",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},2309: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_names().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.selectedPacketName=null,this.selectedItemName=null,this.updatePackets()}},methods:{updatePackets:function(){var e=this;if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;var 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.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(9841),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},9366: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,".editor[data-v-4b5a3476]{margin-left:30px;height:50px;width:95%;position:relative;font-size:16px}",""]),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},4882: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__),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(5794),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_18__),ace_builds__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(5095),ace_builds__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(ace_builds__WEBPACK_IMPORTED_MODULE_19__),ace_builds_src_min_noconflict_mode_ruby__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1411),ace_builds_src_min_noconflict_mode_ruby__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(ace_builds_src_min_noconflict_mode_ruby__WEBPACK_IMPORTED_MODULE_20__),ace_builds_src_min_noconflict_theme_twilight__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(419),ace_builds_src_min_noconflict_theme_twilight__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(ace_builds_src_min_noconflict_theme_twilight__WEBPACK_IMPORTED_MODULE_21__),_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(6129),_openc3_tool_common_src_components_TargetPacketItemChooser__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(2309),_tools_CommandSender_CommandParameterEditor__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(7663),_tools_CommandSender_utilities__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(8367),_openc3_tool_common_src_services_openc3_api__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(8392),_openc3_tool_common_src_components_DetailsDialog__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(3964),_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(7119),sprintf_js__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__(131),sprintf_js__WEBPACK_IMPORTED_MODULE_29___default=__webpack_require__.n(sprintf_js__WEBPACK_IMPORTED_MODULE_29__);function cov_16daumg2kr(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",n="015307293e4b71893a93e8bf55e06ec6066863e0",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:23,column:4},end:{line:121,column:5}},1:{start:{line:66,column:12},end:{line:66,column:41}},2:{start:{line:67,column:12},end:{line:67,column:35}},3:{start:{line:91,column:16},end:{line:91,column:64}},4:{start:{line:98,column:16},end:{line:98,column:52}},5:{start:{line:105,column:16},end:{line:105,column:64}},6:{start:{line:108,column:16},end:{line:108,column:38}},7:{start:{line:115,column:16},end:{line:115,column:42}},8:{start:{line:124,column:4},end:{line:126,column:6}},9:{start:{line:125,column:6},end:{line:125,column:44}},10:{start:{line:127,column:4},end:{line:127,column:30}},11:{start:{line:129,column:4},end:{line:134,column:5}},12:{start:{line:130,column:6},end:{line:133,column:8}},13:{start:{line:137,column:4},end:{line:137,column:45}},14:{start:{line:138,column:4},end:{line:138,column:46}},15:{start:{line:139,column:4},end:{line:139,column:48}},16:{start:{line:140,column:4},end:{line:140,column:37}},17:{start:{line:141,column:4},end:{line:141,column:44}},18:{start:{line:142,column:4},end:{line:142,column:45}},19:{start:{line:143,column:4},end:{line:143,column:28}},20:{start:{line:144,column:4},end:{line:144,column:32}},21:{start:{line:145,column:4},end:{line:145,column:23}},22:{start:{line:146,column:4},end:{line:146,column:49}},23:{start:{line:147,column:4},end:{line:147,column:41}},24:{start:{line:148,column:4},end:{line:148,column:40}},25:{start:{line:149,column:4},end:{line:165,column:6}},26:{start:{line:150,column:6},end:{line:164,column:7}},27:{start:{line:151,column:8},end:{line:151,column:26}},28:{start:{line:152,column:22},end:{line:154,column:9}},29:{start:{line:156,column:8},end:{line:158,column:9}},30:{start:{line:157,column:10},end:{line:157,column:16}},31:{start:{line:160,column:25},end:{line:160,column:45}},32:{start:{line:161,column:24},end:{line:161,column:48}},33:{start:{line:162,column:8},end:{line:162,column:76}},34:{start:{line:163,column:8},end:{line:163,column:29}},35:{start:{line:168,column:4},end:{line:168,column:25}},36:{start:{line:169,column:4},end:{line:169,column:34}},37:{start:{line:173,column:6},end:{line:173,column:24}},38:{start:{line:174,column:6},end:{line:174,column:50}},39:{start:{line:175,column:6},end:{line:175,column:35}},40:{start:{line:176,column:6},end:{line:176,column:24}},41:{start:{line:177,column:6},end:{line:177,column:24}},42:{start:{line:178,column:6},end:{line:180,column:8}},43:{start:{line:179,column:8},end:{line:179,column:36}},44:{start:{line:183,column:6},end:{line:189,column:7}},45:{start:{line:188,column:8},end:{line:188,column:56}},46:{start:{line:190,column:6},end:{line:192,column:7}},47:{start:{line:191,column:8},end:{line:191,column:39}},48:{start:{line:194,column:16},end:{line:194,column:40}},49:{start:{line:195,column:26},end:{line:195,column:48}},50:{start:{line:196,column:6},end:{line:231,column:7}},51:{start:{line:197,column:24},end:{line:197,column:41}},52:{start:{line:198,column:8},end:{line:228,column:9}},53:{start:{line:202,column:23},end:{line:202,column:41}},54:{start:{line:203,column:10},end:{line:205,column:11}},55:{start:{line:204,column:12},end:{line:204,column:33}},56:{start:{line:206,column:21},end:{line:206,column:54}},57:{start:{line:207,column:10},end:{line:210,column:11}},58:{start:{line:207,column:23},end:{line:207,column:24}},59:{start:{line:208,column:25},end:{line:208,column:64}},60:{start:{line:209,column:12},end:{line:209,column:47}},61:{start:{line:211,column:10},end:{line:211,column:21}},62:{start:{line:213,column:10},end:{line:227,column:11}},63:{start:{line:214,column:12},end:{line:214,column:27}},64:{start:{line:215,column:17},end:{line:227,column:11}},65:{start:{line:216,column:12},end:{line:216,column:28}},66:{start:{line:217,column:17},end:{line:227,column:11}},67:{start:{line:218,column:12},end:{line:218,column:22}},68:{start:{line:219,column:17},end:{line:227,column:11}},69:{start:{line:220,column:12},end:{line:220,column:34}},70:{start:{line:221,column:17},end:{line:227,column:11}},71:{start:{line:222,column:12},end:{line:222,column:32}},72:{start:{line:223,column:17},end:{line:227,column:11}},73:{start:{line:224,column:12},end:{line:224,column:28}},74:{start:{line:226,column:12},end:{line:226,column:22}},75:{start:{line:230,column:8},end:{line:230,column:28}},76:{start:{line:235,column:6},end:{line:255,column:7}},77:{start:{line:239,column:8},end:{line:239,column:42}},78:{start:{line:240,column:8},end:{line:240,column:43}},79:{start:{line:242,column:8},end:{line:244,column:9}},80:{start:{line:243,column:10},end:{line:243,column:32}},81:{start:{line:245,column:8},end:{line:254,column:29}},82:{start:{line:259,column:6},end:{line:259,column:30}},83:{start:{line:260,column:6},end:{line:260,column:29}},84:{start:{line:261,column:6},end:{line:261,column:20}},85:{start:{line:262,column:6},end:{line:333,column:9}},86:{start:{line:266,column:12},end:{line:266,column:58}},87:{start:{line:267,column:12},end:{line:267,column:74}},88:{start:{line:270,column:12},end:{line:270,column:66}},89:{start:{line:275,column:12},end:{line:326,column:14}},90:{start:{line:276,column:14},end:{line:276,column:73}},91:{start:{line:276,column:67},end:{line:276,column:73}},92:{start:{line:277,column:14},end:{line:325,column:15}},93:{start:{line:281,column:26},end:{line:281,column:43}},94:{start:{line:286,column:16},end:{line:292,column:17}},95:{start:{line:291,column:18},end:{line:291,column:34}},96:{start:{line:293,column:16},end:{line:295,column:17}},97:{start:{line:294,column:18},end:{line:294,column:26}},98:{start:{line:296,column:16},end:{line:298,column:17}},99:{start:{line:297,column:18},end:{line:297,column:75}},100:{start:{line:299,column:28},end:{line:299,column:33}},101:{start:{line:301,column:16},end:{line:313,column:17}},102:{start:{line:302,column:18},end:{line:311,column:19}},103:{start:{line:305,column:20},end:{line:307,column:21}},104:{start:{line:306,column:22},end:{line:306,column:76}},105:{start:{line:308,column:20},end:{line:310,column:21}},106:{start:{line:309,column:22},end:{line:309,column:76}},107:{start:{line:312,column:18},end:{line:312,column:70}},108:{start:{line:314,column:16},end:{line:324,column:18}},109:{start:{line:327,column:12},end:{line:327,column:37}},110:{start:{line:328,column:12},end:{line:328,column:28}},111:{start:{line:331,column:12},end:{line:331,column:66}},112:{start:{line:337,column:22},end:{line:337,column:24}},113:{start:{line:338,column:6},end:{line:342,column:7}},114:{start:{line:338,column:19},end:{line:338,column:20}},115:{start:{line:339,column:8},end:{line:341,column:9}},116:{start:{line:343,column:6},end:{line:343,column:22}},117:{start:{line:347,column:6},end:{line:347,column:77}},118:{start:{line:356,column:6},end:{line:356,column:38}},119:{start:{line:357,column:6},end:{line:357,column:40}},120:{start:{line:358,column:6},end:{line:358,column:36}},121:{start:{line:360,column:6},end:{line:360,column:30}},122:{start:{line:361,column:22},end:{line:361,column:27}},123:{start:{line:362,column:16},end:{line:362,column:18}},124:{start:{line:363,column:6},end:{line:427,column:7}},125:{start:{line:365,column:10},end:{line:365,column:30}},126:{start:{line:367,column:10},end:{line:422,column:11}},127:{start:{line:369,column:12},end:{line:376,column:13}},128:{start:{line:370,column:14},end:{line:373,column:26}},129:{start:{line:375,column:14},end:{line:375,column:68}},130:{start:{line:377,column:12},end:{line:377,column:44}},131:{start:{line:380,column:12},end:{line:412,column:13}},132:{start:{line:381,column:14},end:{line:395,column:15}},133:{start:{line:382,column:16},end:{line:382,column:46}},134:{start:{line:383,column:16},end:{line:387,column:17}},135:{start:{line:389,column:16},end:{line:389,column:31}},136:{start:{line:390,column:16},end:{line:394,column:18}},137:{start:{line:397,column:14},end:{line:411,column:15}},138:{start:{line:398,column:16},end:{line:398,column:42}},139:{start:{line:399,column:16},end:{line:403,column:17}},140:{start:{line:405,column:16},end:{line:405,column:27}},141:{start:{line:406,column:16},end:{line:410,column:18}},142:{start:{line:414,column:12},end:{line:421,column:13}},143:{start:{line:416,column:16},end:{line:416,column:54}},144:{start:{line:419,column:16},end:{line:419,column:53}},145:{start:{line:425,column:10},end:{line:425,column:47}},146:{start:{line:431,column:6},end:{line:431,column:39}},147:{start:{line:432,column:16},end:{line:432,column:18}},148:{start:{line:433,column:16},end:{line:433,column:18}},149:{start:{line:434,column:6},end:{line:476,column:7}},150:{start:{line:435,column:8},end:{line:454,column:9}},151:{start:{line:436,column:10},end:{line:436,column:40}},152:{start:{line:437,column:10},end:{line:441,column:11}},153:{start:{line:443,column:10},end:{line:443,column:25}},154:{start:{line:444,column:10},end:{line:453,column:11}},155:{start:{line:456,column:8},end:{line:475,column:9}},156:{start:{line:457,column:10},end:{line:457,column:36}},157:{start:{line:458,column:10},end:{line:462,column:11}},158:{start:{line:464,column:10},end:{line:464,column:21}},159:{start:{line:465,column:10},end:{line:474,column:11}},160:{start:{line:478,column:6},end:{line:485,column:7}},161:{start:{line:480,column:10},end:{line:480,column:48}},162:{start:{line:483,column:10},end:{line:483,column:47}},163:{start:{line:489,column:6},end:{line:489,column:39}},164:{start:{line:490,column:6},end:{line:490,column:48}},165:{start:{line:491,column:6},end:{line:491,column:31}},166:{start:{line:495,column:16},end:{line:495,column:18}},167:{start:{line:496,column:6},end:{line:538,column:7}},168:{start:{line:497,column:8},end:{line:497,column:58}},169:{start:{line:498,column:19},end:{line:498,column:43}},170:{start:{line:499,column:8},end:{line:517,column:9}},171:{start:{line:500,column:10},end:{line:500,column:25}},172:{start:{line:501,column:10},end:{line:516,column:11}},173:{start:{line:501,column:23},end:{line:501,column:24}},174:{start:{line:502,column:22},end:{line:502,column:29}},175:{start:{line:503,column:24},end:{line:503,column:62}},176:{start:{line:505,column:12},end:{line:511,column:13}},177:{start:{line:510,column:14},end:{line:510,column:34}},178:{start:{line:512,column:12},end:{line:512,column:36}},179:{start:{line:513,column:12},end:{line:515,column:13}},180:{start:{line:514,column:14},end:{line:514,column:25}},181:{start:{line:518,column:8},end:{line:518,column:19}},182:{start:{line:519,column:8},end:{line:522,column:9}},183:{start:{line:520,column:10},end:{line:520,column:57}},184:{start:{line:521,column:10},end:{line:521,column:40}},185:{start:{line:523,column:8},end:{line:523,column:23}},186:{start:{line:525,column:8},end:{line:533,column:9}},187:{start:{line:526,column:22},end:{line:526,column:48}},188:{start:{line:527,column:10},end:{line:532,column:11}},189:{start:{line:528,column:22},end:{line:528,column:77}},190:{start:{line:529,column:12},end:{line:529,column:56}},191:{start:{line:531,column:12},end:{line:531,column:25}},192:{start:{line:534,column:8},end:{line:534,column:25}},193:{start:{line:536,column:22},end:{line:536,column:75}},194:{start:{line:537,column:8},end:{line:537,column:50}},195:{start:{line:540,column:6},end:{line:540,column:50}},196:{start:{line:541,column:6},end:{line:541,column:31}},197:{start:{line:545,column:6},end:{line:545,column:59}},198:{start:{line:546,column:6},end:{line:549,column:7}},199:{start:{line:547,column:8},end:{line:547,column:27}},200:{start:{line:548,column:8},end:{line:548,column:36}},201:{start:{line:550,column:6},end:{line:552,column:7}},202:{start:{line:551,column:8},end:{line:551,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:9},end:{line:122,column:3}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:65,column:18},end:{line:65,column:19}},loc:{start:{line:65,column:24},end:{line:68,column:11}},line:65},2:{name:"(anonymous_2)",decl:{start:{line:90,column:23},end:{line:90,column:24}},loc:{start:{line:90,column:29},end:{line:92,column:15}},line:90},3:{name:"(anonymous_3)",decl:{start:{line:97,column:23},end:{line:97,column:24}},loc:{start:{line:97,column:29},end:{line:99,column:15}},line:97},4:{name:"(anonymous_4)",decl:{start:{line:104,column:23},end:{line:104,column:24}},loc:{start:{line:104,column:29},end:{line:109,column:15}},line:104},5:{name:"(anonymous_5)",decl:{start:{line:114,column:23},end:{line:114,column:24}},loc:{start:{line:114,column:29},end:{line:116,column:15}},line:114},6:{name:"(anonymous_6)",decl:{start:{line:123,column:2},end:{line:123,column:3}},loc:{start:{line:123,column:12},end:{line:135,column:3}},line:123},7:{name:"(anonymous_7)",decl:{start:{line:124,column:65},end:{line:124,column:66}},loc:{start:{line:124,column:79},end:{line:126,column:5}},line:124},8:{name:"(anonymous_8)",decl:{start:{line:136,column:2},end:{line:136,column:3}},loc:{start:{line:136,column:12},end:{line:166,column:3}},line:136},9:{name:"(anonymous_9)",decl:{start:{line:149,column:54},end:{line:149,column:55}},loc:{start:{line:149,column:61},end:{line:165,column:5}},line:149},10:{name:"(anonymous_10)",decl:{start:{line:167,column:2},end:{line:167,column:3}},loc:{start:{line:167,column:18},end:{line:170,column:3}},line:167},11:{name:"(anonymous_11)",decl:{start:{line:172,column:4},end:{line:172,column:5}},loc:{start:{line:172,column:28},end:{line:181,column:5}},line:172},12:{name:"(anonymous_12)",decl:{start:{line:178,column:21},end:{line:178,column:22}},loc:{start:{line:178,column:27},end:{line:180,column:7}},line:178},13:{name:"(anonymous_13)",decl:{start:{line:182,column:4},end:{line:182,column:5}},loc:{start:{line:182,column:26},end:{line:232,column:5}},line:182},14:{name:"(anonymous_14)",decl:{start:{line:234,column:4},end:{line:234,column:5}},loc:{start:{line:234,column:26},end:{line:256,column:5}},line:234},15:{name:"(anonymous_15)",decl:{start:{line:254,column:17},end:{line:254,column:18}},loc:{start:{line:254,column:26},end:{line:254,column:28}},line:254},16:{name:"(anonymous_16)",decl:{start:{line:258,column:4},end:{line:258,column:5}},loc:{start:{line:258,column:22},end:{line:334,column:5}},line:258},17:{name:"(anonymous_17)",decl:{start:{line:265,column:10},end:{line:265,column:11}},loc:{start:{line:265,column:22},end:{line:268,column:11}},line:265},18:{name:"(anonymous_18)",decl:{start:{line:269,column:10},end:{line:269,column:11}},loc:{start:{line:269,column:21},end:{line:271,column:11}},line:269},19:{name:"(anonymous_19)",decl:{start:{line:274,column:10},end:{line:274,column:11}},loc:{start:{line:274,column:23},end:{line:329,column:11}},line:274},20:{name:"(anonymous_20)",decl:{start:{line:275,column:34},end:{line:275,column:35}},loc:{start:{line:275,column:49},end:{line:326,column:13}},line:275},21:{name:"(anonymous_21)",decl:{start:{line:330,column:10},end:{line:330,column:11}},loc:{start:{line:330,column:21},end:{line:332,column:11}},line:330},22:{name:"(anonymous_22)",decl:{start:{line:336,column:4},end:{line:336,column:5}},loc:{start:{line:336,column:22},end:{line:344,column:5}},line:336},23:{name:"(anonymous_23)",decl:{start:{line:346,column:4},end:{line:346,column:5}},loc:{start:{line:346,column:15},end:{line:348,column:5}},line:346},24:{name:"(anonymous_24)",decl:{start:{line:354,column:4},end:{line:354,column:5}},loc:{start:{line:354,column:48},end:{line:428,column:5}},line:354},25:{name:"(anonymous_25)",decl:{start:{line:364,column:8},end:{line:364,column:9}},loc:{start:{line:364,column:22},end:{line:423,column:9}},line:364},26:{name:"(anonymous_26)",decl:{start:{line:415,column:14},end:{line:415,column:15}},loc:{start:{line:415,column:28},end:{line:417,column:15}},line:415},27:{name:"(anonymous_27)",decl:{start:{line:418,column:14},end:{line:418,column:15}},loc:{start:{line:418,column:25},end:{line:420,column:15}},line:418},28:{name:"(anonymous_28)",decl:{start:{line:424,column:8},end:{line:424,column:9}},loc:{start:{line:424,column:19},end:{line:426,column:9}},line:424},29:{name:"(anonymous_29)",decl:{start:{line:430,column:4},end:{line:430,column:5}},loc:{start:{line:430,column:23},end:{line:486,column:5}},line:430},30:{name:"(anonymous_30)",decl:{start:{line:479,column:8},end:{line:479,column:9}},loc:{start:{line:479,column:22},end:{line:481,column:9}},line:479},31:{name:"(anonymous_31)",decl:{start:{line:482,column:8},end:{line:482,column:9}},loc:{start:{line:482,column:19},end:{line:484,column:9}},line:482},32:{name:"(anonymous_32)",decl:{start:{line:488,column:4},end:{line:488,column:5}},loc:{start:{line:488,column:25},end:{line:492,column:5}},line:488},33:{name:"(anonymous_33)",decl:{start:{line:494,column:4},end:{line:494,column:5}},loc:{start:{line:494,column:43},end:{line:542,column:5}},line:494},34:{name:"(anonymous_34)",decl:{start:{line:544,column:4},end:{line:544,column:5}},loc:{start:{line:544,column:53},end:{line:553,column:5}},line:544}},branchMap:{0:{loc:{start:{line:129,column:4},end:{line:134,column:5}},type:"if",locations:[{start:{line:129,column:4},end:{line:134,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:129},1:{loc:{start:{line:129,column:8},end:{line:129,column:62}},type:"binary-expr",locations:[{start:{line:129,column:8},end:{line:129,column:33}},{start:{line:129,column:37},end:{line:129,column:62}}],line:129},2:{loc:{start:{line:150,column:6},end:{line:164,column:7}},type:"if",locations:[{start:{line:150,column:6},end:{line:164,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:150},3:{loc:{start:{line:156,column:8},end:{line:158,column:9}},type:"if",locations:[{start:{line:156,column:8},end:{line:158,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:156},4:{loc:{start:{line:183,column:6},end:{line:189,column:7}},type:"if",locations:[{start:{line:183,column:6},end:{line:189,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:183},5:{loc:{start:{line:184,column:8},end:{line:186,column:29}},type:"binary-expr",locations:[{start:{line:184,column:8},end:{line:184,column:52}},{start:{line:185,column:8},end:{line:185,column:66}},{start:{line:186,column:8},end:{line:186,column:29}}],line:184},6:{loc:{start:{line:190,column:6},end:{line:192,column:7}},type:"if",locations:[{start:{line:190,column:6},end:{line:192,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:190},7:{loc:{start:{line:196,column:6},end:{line:231,column:7}},type:"if",locations:[{start:{line:196,column:6},end:{line:231,column:7}},{start:{line:229,column:13},end:{line:231,column:7}}],line:196},8:{loc:{start:{line:198,column:8},end:{line:228,column:9}},type:"if",locations:[{start:{line:198,column:8},end:{line:228,column:9}},{start:{line:212,column:15},end:{line:228,column:9}}],line:198},9:{loc:{start:{line:199,column:10},end:{line:200,column:36}},type:"binary-expr",locations:[{start:{line:199,column:11},end:{line:199,column:34}},{start:{line:199,column:38},end:{line:199,column:60}},{start:{line:200,column:10},end:{line:200,column:36}}],line:199},10:{loc:{start:{line:203,column:10},end:{line:205,column:11}},type:"if",locations:[{start:{line:203,column:10},end:{line:205,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:203},11:{loc:{start:{line:213,column:10},end:{line:227,column:11}},type:"if",locations:[{start:{line:213,column:10},end:{line:227,column:11}},{start:{line:215,column:17},end:{line:227,column:11}}],line:213},12:{loc:{start:{line:215,column:17},end:{line:227,column:11}},type:"if",locations:[{start:{line:215,column:17},end:{line:227,column:11}},{start:{line:217,column:17},end:{line:227,column:11}}],line:215},13:{loc:{start:{line:217,column:17},end:{line:227,column:11}},type:"if",locations:[{start:{line:217,column:17},end:{line:227,column:11}},{start:{line:219,column:17},end:{line:227,column:11}}],line:217},14:{loc:{start:{line:219,column:17},end:{line:227,column:11}},type:"if",locations:[{start:{line:219,column:17},end:{line:227,column:11}},{start:{line:221,column:17},end:{line:227,column:11}}],line:219},15:{loc:{start:{line:221,column:17},end:{line:227,column:11}},type:"if",locations:[{start:{line:221,column:17},end:{line:227,column:11}},{start:{line:223,column:17},end:{line:227,column:11}}],line:221},16:{loc:{start:{line:223,column:17},end:{line:227,column:11}},type:"if",locations:[{start:{line:223,column:17},end:{line:227,column:11}},{start:{line:225,column:17},end:{line:227,column:11}}],line:223},17:{loc:{start:{line:235,column:6},end:{line:255,column:7}},type:"if",locations:[{start:{line:235,column:6},end:{line:255,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:235},18:{loc:{start:{line:236,column:8},end:{line:237,column:45}},type:"binary-expr",locations:[{start:{line:236,column:8},end:{line:236,column:44}},{start:{line:237,column:8},end:{line:237,column:45}}],line:236},19:{loc:{start:{line:242,column:8},end:{line:244,column:9}},type:"if",locations:[{start:{line:242,column:8},end:{line:244,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:242},20:{loc:{start:{line:276,column:14},end:{line:276,column:73}},type:"if",locations:[{start:{line:276,column:14},end:{line:276,column:73}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:276},21:{loc:{start:{line:277,column:14},end:{line:325,column:15}},type:"if",locations:[{start:{line:277,column:14},end:{line:325,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:277},22:{loc:{start:{line:278,column:16},end:{line:279,column:38}},type:"binary-expr",locations:[{start:{line:278,column:16},end:{line:278,column:60}},{start:{line:279,column:16},end:{line:279,column:38}}],line:278},23:{loc:{start:{line:286,column:16},end:{line:292,column:17}},type:"if",locations:[{start:{line:286,column:16},end:{line:292,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:286},24:{loc:{start:{line:287,column:18},end:{line:289,column:55}},type:"binary-expr",locations:[{start:{line:287,column:18},end:{line:287,column:35}},{start:{line:288,column:18},end:{line:288,column:50}},{start:{line:289,column:18},end:{line:289,column:55}}],line:287},25:{loc:{start:{line:293,column:16},end:{line:295,column:17}},type:"if",locations:[{start:{line:293,column:16},end:{line:295,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:293},26:{loc:{start:{line:296,column:16},end:{line:298,column:17}},type:"if",locations:[{start:{line:296,column:16},end:{line:298,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:296},27:{loc:{start:{line:301,column:16},end:{line:313,column:17}},type:"if",locations:[{start:{line:301,column:16},end:{line:313,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:301},28:{loc:{start:{line:301,column:20},end:{line:301,column:74}},type:"binary-expr",locations:[{start:{line:301,column:20},end:{line:301,column:45}},{start:{line:301,column:49},end:{line:301,column:74}}],line:301},29:{loc:{start:{line:302,column:18},end:{line:311,column:19}},type:"if",locations:[{start:{line:302,column:18},end:{line:311,column:19}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:302},30:{loc:{start:{line:305,column:20},end:{line:307,column:21}},type:"if",locations:[{start:{line:305,column:20},end:{line:307,column:21}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:305},31:{loc:{start:{line:308,column:20},end:{line:310,column:21}},type:"if",locations:[{start:{line:308,column:20},end:{line:310,column:21}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:308},32:{loc:{start:{line:367,column:10},end:{line:422,column:11}},type:"if",locations:[{start:{line:367,column:10},end:{line:422,column:11}},{start:{line:378,column:17},end:{line:422,column:11}}],line:367},33:{loc:{start:{line:369,column:12},end:{line:376,column:13}},type:"if",locations:[{start:{line:369,column:12},end:{line:376,column:13}},{start:{line:374,column:19},end:{line:376,column:13}}],line:369},34:{loc:{start:{line:380,column:12},end:{line:412,column:13}},type:"if",locations:[{start:{line:380,column:12},end:{line:412,column:13}},{start:{line:396,column:19},end:{line:412,column:13}}],line:380},35:{loc:{start:{line:381,column:14},end:{line:395,column:15}},type:"if",locations:[{start:{line:381,column:14},end:{line:395,column:15}},{start:{line:388,column:21},end:{line:395,column:15}}],line:381},36:{loc:{start:{line:397,column:14},end:{line:411,column:15}},type:"if",locations:[{start:{line:397,column:14},end:{line:411,column:15}},{start:{line:404,column:21},end:{line:411,column:15}}],line:397},37:{loc:{start:{line:434,column:6},end:{line:476,column:7}},type:"if",locations:[{start:{line:434,column:6},end:{line:476,column:7}},{start:{line:455,column:13},end:{line:476,column:7}}],line:434},38:{loc:{start:{line:435,column:8},end:{line:454,column:9}},type:"if",locations:[{start:{line:435,column:8},end:{line:454,column:9}},{start:{line:442,column:15},end:{line:454,column:9}}],line:435},39:{loc:{start:{line:456,column:8},end:{line:475,column:9}},type:"if",locations:[{start:{line:456,column:8},end:{line:475,column:9}},{start:{line:463,column:15},end:{line:475,column:9}}],line:456},40:{loc:{start:{line:496,column:6},end:{line:538,column:7}},type:"if",locations:[{start:{line:496,column:6},end:{line:538,column:7}},{start:{line:535,column:13},end:{line:538,column:7}}],line:496},41:{loc:{start:{line:499,column:8},end:{line:517,column:9}},type:"if",locations:[{start:{line:499,column:8},end:{line:517,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:499},42:{loc:{start:{line:505,column:12},end:{line:511,column:13}},type:"if",locations:[{start:{line:505,column:12},end:{line:511,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:505},43:{loc:{start:{line:506,column:14},end:{line:508,column:37}},type:"binary-expr",locations:[{start:{line:506,column:14},end:{line:506,column:50}},{start:{line:507,column:14},end:{line:507,column:37}},{start:{line:508,column:14},end:{line:508,column:37}}],line:506},44:{loc:{start:{line:513,column:12},end:{line:515,column:13}},type:"if",locations:[{start:{line:513,column:12},end:{line:515,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:513},45:{loc:{start:{line:519,column:8},end:{line:522,column:9}},type:"if",locations:[{start:{line:519,column:8},end:{line:522,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:519},46:{loc:{start:{line:525,column:8},end:{line:533,column:9}},type:"if",locations:[{start:{line:525,column:8},end:{line:533,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:525},47:{loc:{start:{line:527,column:10},end:{line:532,column:11}},type:"if",locations:[{start:{line:527,column:10},end:{line:532,column:11}},{start:{line:530,column:17},end:{line:532,column:11}}],line:527},48:{loc:{start:{line:544,column:33},end:{line:544,column:51}},type:"default-arg",locations:[{start:{line:544,column:46},end:{line:544,column:51}}],line:544},49:{loc:{start:{line:546,column:6},end:{line:549,column:7}},type:"if",locations:[{start:{line:546,column:6},end:{line:549,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:546},50:{loc:{start:{line:546,column:10},end:{line:546,column:47}},type:"binary-expr",locations:[{start:{line:546,column:10},end:{line:546,column:23}},{start:{line:546,column:27},end:{line:546,column:47}}],line:546},51:{loc:{start:{line:550,column:6},end:{line:552,column:7}},type:"if",locations:[{start:{line:550,column:6},end:{line:552,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:550}},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,190:0,191:0,192:0,193:0,194:0,195:0,196:0,197:0,198:0,199:0,200:0,201:0,202:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,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],24:[0,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],43:[0,0,0],44:[0,0],45:[0,0],46:[0,0],47:[0,0],48:[0],49:[0,0],50:[0,0],51:[0,0]},inputSourceMap:{version:3,sources:["CommandSender.vue"],names:[],mappings:";AAwNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;;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;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 <v-card style=\"padding: 10px\">\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 </v-card>\n <div style=\"height: 15px\" />\n <v-card class=\"pb-2\">\n <v-card-subtitle>\n Editable Command History: (Pressing Enter on the line re-executes the\n command)\n </v-card-subtitle>\n <v-row class=\"mb-2\">\n <pre ref=\"editor\" class=\"editor\" data-test=\"sender-history\"></pre>\n </v-row>\n </v-card>\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 * as ace from 'ace-builds'\nimport 'ace-builds/src-min-noconflict/mode-ruby'\nimport 'ace-builds/src-min-noconflict/theme-twilight'\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 mounted() {\n this.editor = ace.edit(this.$refs.editor)\n this.editor.setTheme('ace/theme/twilight')\n this.editor.session.setMode('ace/mode/ruby')\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.setHighlightActiveLine(false)\n this.editor.setValue('')\n this.editor.clearSelection()\n this.editor.focus()\n this.editor.setAutoScrollEditorIntoView(true)\n this.editor.setOption('maxLines', 30)\n this.editor.setOption('minLines', 1)\n this.editor.container.addEventListener('keydown', (e) => {\n if (e.key === 'Enter') {\n e.preventDefault()\n let command = this.editor.session.getLine(\n this.editor.getCursorPosition().row\n )\n // Blank commands can happen if typing return on a blank line\n if (command === '') {\n return\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 },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n methods: {\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 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.editor.setValue(`${msg}\\n${this.history}`)\n this.editor.moveCursorTo(0, 0)\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 // Make a copy of the history\n this.history = this.editor.getValue().trim()\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.editor {\n margin-left: 30px;\n height: 50px;\n width: 95%;\n position: relative;\n font-size: 16px;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"015307293e4b71893a93e8bf55e06ec6066863e0"},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_25__.Z],components:{DetailsDialog:_openc3_tool_common_src_components_DetailsDialog__WEBPACK_IMPORTED_MODULE_27__.Z,TargetPacketItemChooser:_openc3_tool_common_src_components_TargetPacketItemChooser__WEBPACK_IMPORTED_MODULE_23__.Z,CommandParameterEditor:_tools_CommandSender_CommandParameterEditor__WEBPACK_IMPORTED_MODULE_24__.Z,TopBar:_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_28__.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_22__.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_26__.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]++},mounted:function(){var e=this;cov_16daumg2kr().f[8]++,cov_16daumg2kr().s[13]++,this.editor=ace_builds__WEBPACK_IMPORTED_MODULE_19__.edit(this.$refs.editor),cov_16daumg2kr().s[14]++,this.editor.setTheme("ace/theme/twilight"),cov_16daumg2kr().s[15]++,this.editor.session.setMode("ace/mode/ruby"),cov_16daumg2kr().s[16]++,this.editor.session.setTabSize(2),cov_16daumg2kr().s[17]++,this.editor.session.setUseWrapMode(!0),cov_16daumg2kr().s[18]++,this.editor.setHighlightActiveLine(!1),cov_16daumg2kr().s[19]++,this.editor.setValue(""),cov_16daumg2kr().s[20]++,this.editor.clearSelection(),cov_16daumg2kr().s[21]++,this.editor.focus(),cov_16daumg2kr().s[22]++,this.editor.setAutoScrollEditorIntoView(!0),cov_16daumg2kr().s[23]++,this.editor.setOption("maxLines",30),cov_16daumg2kr().s[24]++,this.editor.setOption("minLines",1),cov_16daumg2kr().s[25]++,this.editor.container.addEventListener("keydown",(function(n){if(cov_16daumg2kr().f[9]++,cov_16daumg2kr().s[26]++,"Enter"===n.key){cov_16daumg2kr().b[2][0]++,cov_16daumg2kr().s[27]++,n.preventDefault();var t=(cov_16daumg2kr().s[28]++,e.editor.session.getLine(e.editor.getCursorPosition().row));if(cov_16daumg2kr().s[29]++,""===t)return cov_16daumg2kr().b[3][0]++,void cov_16daumg2kr().s[30]++;cov_16daumg2kr().b[3][1]++;var l=(cov_16daumg2kr().s[31]++,t.indexOf('"')),a=(cov_16daumg2kr().s[32]++,t.lastIndexOf('"'));cov_16daumg2kr().s[33]++,t=t.substr(l+1,a-l-1),cov_16daumg2kr().s[34]++,e.sendCmd(t)}else cov_16daumg2kr().b[2][1]++}))},beforeDestroy:function(){cov_16daumg2kr().f[10]++,cov_16daumg2kr().s[35]++,this.editor.destroy(),cov_16daumg2kr().s[36]++,this.editor.container.remove()},methods:{showContextMenu:function(e,n){var t=this;cov_16daumg2kr().f[11]++,cov_16daumg2kr().s[37]++,e.preventDefault(),cov_16daumg2kr().s[38]++,this.parameterName=n.item.parameter_name,cov_16daumg2kr().s[39]++,this.contextMenuShown=!1,cov_16daumg2kr().s[40]++,this.x=e.clientX,cov_16daumg2kr().s[41]++,this.y=e.clientY,cov_16daumg2kr().s[42]++,this.$nextTick((function(){cov_16daumg2kr().f[12]++,cov_16daumg2kr().s[43]++,t.contextMenuShown=!0}))},convertToValue:function convertToValue(param){if(cov_16daumg2kr().f[13]++,cov_16daumg2kr().s[44]++,cov_16daumg2kr().b[5][0]++,null!==param.val_and_states.selected_state&&(cov_16daumg2kr().b[5][1]++,"MANUALLY ENTERED"!==param.val_and_states.selected_state)&&(cov_16daumg2kr().b[5][2]++,!1===this.cmdRaw))return cov_16daumg2kr().b[4][0]++,cov_16daumg2kr().s[45]++,param.val_and_states.selected_state_label;if(cov_16daumg2kr().b[4][1]++,cov_16daumg2kr().s[46]++,"string"!==typeof param.val_and_states.val)return cov_16daumg2kr().b[6][0]++,cov_16daumg2kr().s[47]++,param.val_and_states.val;cov_16daumg2kr().b[6][1]++;var str=(cov_16daumg2kr().s[48]++,param.val_and_states.val),quotesRemoved=(cov_16daumg2kr().s[49]++,this.removeQuotes(str));if(cov_16daumg2kr().s[50]++,str===quotesRemoved){cov_16daumg2kr().b[7][0]++;var upcaseStr=(cov_16daumg2kr().s[51]++,str.toUpperCase());if(cov_16daumg2kr().s[52]++,cov_16daumg2kr().b[9][0]++,"STRING"!==param.type&&(cov_16daumg2kr().b[9][1]++,"BLOCK"!==param.type)||(cov_16daumg2kr().b[9][2]++,!upcaseStr.startsWith("0X")))return cov_16daumg2kr().b[8][1]++,cov_16daumg2kr().s[62]++,"INFINITY"===upcaseStr?(cov_16daumg2kr().b[11][0]++,cov_16daumg2kr().s[63]++,1/0):(cov_16daumg2kr().b[11][1]++,cov_16daumg2kr().s[64]++,"-INFINITY"===upcaseStr?(cov_16daumg2kr().b[12][0]++,cov_16daumg2kr().s[65]++,-1/0):(cov_16daumg2kr().b[12][1]++,cov_16daumg2kr().s[66]++,"NAN"===upcaseStr?(cov_16daumg2kr().b[13][0]++,cov_16daumg2kr().s[67]++,NaN):(cov_16daumg2kr().b[13][1]++,cov_16daumg2kr().s[68]++,this.isFloat(str)?(cov_16daumg2kr().b[14][0]++,cov_16daumg2kr().s[69]++,parseFloat(str)):(cov_16daumg2kr().b[14][1]++,cov_16daumg2kr().s[70]++,this.isInt(str)?(cov_16daumg2kr().b[15][0]++,cov_16daumg2kr().s[71]++,parseInt(str)):(cov_16daumg2kr().b[15][1]++,cov_16daumg2kr().s[72]++,this.isArray(str)?(cov_16daumg2kr().b[16][0]++,cov_16daumg2kr().s[73]++,eval(str)):(cov_16daumg2kr().b[16][1]++,cov_16daumg2kr().s[74]++,str))))));cov_16daumg2kr().b[8][0]++;var hexStr=(cov_16daumg2kr().s[53]++,upcaseStr.slice(2));cov_16daumg2kr().s[54]++,hexStr.length%2!==0?(cov_16daumg2kr().b[10][0]++,cov_16daumg2kr().s[55]++,hexStr="0"+hexStr):cov_16daumg2kr().b[10][1]++;var jstr=(cov_16daumg2kr().s[56]++,{json_class:"String",raw:[]});cov_16daumg2kr().s[57]++;for(var i=(cov_16daumg2kr().s[58]++,0);i<hexStr.length;i+=2){var nibble=(cov_16daumg2kr().s[59]++,hexStr.charAt(i)+hexStr.charAt(i+1));cov_16daumg2kr().s[60]++,jstr.raw.push(parseInt(nibble,16))}return cov_16daumg2kr().s[61]++,jstr}return cov_16daumg2kr().b[7][1]++,cov_16daumg2kr().s[75]++,quotesRemoved},commandChanged:function(e){cov_16daumg2kr().f[14]++,cov_16daumg2kr().s[76]++,cov_16daumg2kr().b[18][0]++,this.targetName!==e.targetName||(cov_16daumg2kr().b[18][1]++,this.commandName!==e.packetName)?(cov_16daumg2kr().b[17][0]++,cov_16daumg2kr().s[77]++,this.targetName=e.targetName,cov_16daumg2kr().s[78]++,this.commandName=e.packetName,cov_16daumg2kr().s[79]++,!1===this.sendDisabled?(cov_16daumg2kr().b[19][0]++,cov_16daumg2kr().s[80]++,this.updateCmdParams()):cov_16daumg2kr().b[19][1]++,cov_16daumg2kr().s[81]++,this.$router.replace({name:"CommandSender",params:{target:this.targetName,packet:this.commandName}}).catch((function(e){cov_16daumg2kr().f[15]++}))):cov_16daumg2kr().b[17][1]++},updateCmdParams:function(){var e=this;cov_16daumg2kr().f[16]++,cov_16daumg2kr().s[82]++,this.sendDisabled=!0,cov_16daumg2kr().s[83]++,this.ignoredParams=[],cov_16daumg2kr().s[84]++,this.rows=[],cov_16daumg2kr().s[85]++,this.api.get_target(this.targetName).then((function(n){return cov_16daumg2kr().f[17]++,cov_16daumg2kr().s[86]++,e.ignoredParams=n.ignored_parameters,cov_16daumg2kr().s[87]++,e.api.get_command(e.targetName,e.commandName)}),(function(n){cov_16daumg2kr().f[18]++,cov_16daumg2kr().s[88]++,e.displayError("getting ignored parameters",n)})).then((function(n){cov_16daumg2kr().f[19]++,cov_16daumg2kr().s[89]++,n.items.forEach((function(n){if(cov_16daumg2kr().f[20]++,cov_16daumg2kr().s[90]++,e.reservedItemNames.includes(n.name))return cov_16daumg2kr().b[20][0]++,void cov_16daumg2kr().s[91]++;if(cov_16daumg2kr().b[20][1]++,cov_16daumg2kr().s[92]++,cov_16daumg2kr().b[22][0]++,!e.ignoredParams.includes(n.name)||(cov_16daumg2kr().b[22][1]++,e.showIgnoredParams)){cov_16daumg2kr().b[21][0]++;var t=(cov_16daumg2kr().s[93]++,n.default);cov_16daumg2kr().s[94]++,cov_16daumg2kr().b[24][0]++,n.states||(cov_16daumg2kr().b[24][1]++,"STRING"!==n.data_type)||(cov_16daumg2kr().b[24][2]++,"string"!==typeof n.default)?cov_16daumg2kr().b[23][1]++:(cov_16daumg2kr().b[23][0]++,cov_16daumg2kr().s[95]++,t="'".concat(t,"'")),cov_16daumg2kr().s[96]++,n.required?(cov_16daumg2kr().b[25][0]++,cov_16daumg2kr().s[97]++,t=""):cov_16daumg2kr().b[25][1]++,cov_16daumg2kr().s[98]++,n.format_string?(cov_16daumg2kr().b[26][0]++,cov_16daumg2kr().s[99]++,t=sprintf(n.format_string,n.default)):cov_16daumg2kr().b[26][1]++;var l=(cov_16daumg2kr().s[100]++,"N/A");cov_16daumg2kr().s[101]++,cov_16daumg2kr().b[28][0]++,null!=n.minimum&&(cov_16daumg2kr().b[28][1]++,null!=n.maximum)?(cov_16daumg2kr().b[27][0]++,cov_16daumg2kr().s[102]++,"FLOAT"===n.data_type?(cov_16daumg2kr().b[29][0]++,cov_16daumg2kr().s[103]++,n.minimum<-1e6?(cov_16daumg2kr().b[30][0]++,cov_16daumg2kr().s[104]++,n.minimum=n.minimum.toExponential(3)):cov_16daumg2kr().b[30][1]++,cov_16daumg2kr().s[105]++,n.maximum>1e6?(cov_16daumg2kr().b[31][0]++,cov_16daumg2kr().s[106]++,n.maximum=n.maximum.toExponential(3)):cov_16daumg2kr().b[31][1]++):cov_16daumg2kr().b[29][1]++,cov_16daumg2kr().s[107]++,l="".concat(n.minimum,"..").concat(n.maximum)):cov_16daumg2kr().b[27][1]++,cov_16daumg2kr().s[108]++,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[21][1]++})),cov_16daumg2kr().s[109]++,e.sendDisabled=!1,cov_16daumg2kr().s[110]++,e.status=""}),(function(n){cov_16daumg2kr().f[21]++,cov_16daumg2kr().s[111]++,e.displayError("getting command parameters",n)}))},createParamList:function(){cov_16daumg2kr().f[22]++;var e=(cov_16daumg2kr().s[112]++,{});cov_16daumg2kr().s[113]++;for(var n=(cov_16daumg2kr().s[114]++,0);n<this.rows.length;n++)cov_16daumg2kr().s[115]++,e[this.rows[n].parameter_name]=this.convertToValue(this.rows[n]);return cov_16daumg2kr().s[116]++,e},buildCmd:function(){cov_16daumg2kr().f[23]++,cov_16daumg2kr().s[117]++,this.sendCmd(this.targetName,this.commandName,this.createParamList())},sendCmd:function(e,n,t){var l=this;cov_16daumg2kr().f[24]++,cov_16daumg2kr().s[118]++,this.lastTargetName=e,cov_16daumg2kr().s[119]++,this.lastCommandName=n,cov_16daumg2kr().s[120]++,this.lastParamList=t,cov_16daumg2kr().s[121]++,this.sendDisabled=!0;var a=(cov_16daumg2kr().s[122]++,!1),o=(cov_16daumg2kr().s[123]++,"");cov_16daumg2kr().s[124]++,this.api.get_cmd_hazardous(e,n,t).then((function(s){var i;(cov_16daumg2kr().f[25]++,cov_16daumg2kr().s[125]++,a=s,cov_16daumg2kr().s[126]++,a)?(cov_16daumg2kr().b[32][0]++,cov_16daumg2kr().s[127]++,void 0===n?(cov_16daumg2kr().b[33][0]++,cov_16daumg2kr().s[128]++,l.hazardousCommand=e.split(" ").slice(0,2).join(" ")):(cov_16daumg2kr().b[33][1]++,cov_16daumg2kr().s[129]++,l.hazardousCommand="".concat(e," ").concat(n)),cov_16daumg2kr().s[130]++,l.displaySendHazardous=!0):(cov_16daumg2kr().b[32][1]++,cov_16daumg2kr().s[131]++,l.cmdRaw?(cov_16daumg2kr().b[34][0]++,cov_16daumg2kr().s[132]++,l.ignoreRangeChecks?(cov_16daumg2kr().b[35][0]++,cov_16daumg2kr().s[133]++,o="cmd_raw_no_range_check",cov_16daumg2kr().s[134]++,i=l.api.cmd_raw_no_range_check(e,n,t)):(cov_16daumg2kr().b[35][1]++,cov_16daumg2kr().s[135]++,o="cmd_raw",cov_16daumg2kr().s[136]++,i=l.api.cmd_raw(e,n,t,{"Ignore-Errors":"500"}))):(cov_16daumg2kr().b[34][1]++,cov_16daumg2kr().s[137]++,l.ignoreRangeChecks?(cov_16daumg2kr().b[36][0]++,cov_16daumg2kr().s[138]++,o="cmd_no_range_check",cov_16daumg2kr().s[139]++,i=l.api.cmd_no_range_check(e,n,t)):(cov_16daumg2kr().b[36][1]++,cov_16daumg2kr().s[140]++,o="cmd",cov_16daumg2kr().s[141]++,i=l.api.cmd(e,n,t,{"Ignore-Errors":"500"}))),cov_16daumg2kr().s[142]++,i.then((function(e){cov_16daumg2kr().f[26]++,cov_16daumg2kr().s[143]++,l.processCmdResponse(o,e)}),(function(e){cov_16daumg2kr().f[27]++,cov_16daumg2kr().s[144]++,l.processCmdResponse(!1,e)})))}),(function(e){cov_16daumg2kr().f[28]++,cov_16daumg2kr().s[145]++,l.processCmdResponse(!1,e)}))},sendHazardousCmd:function(){var e=this;cov_16daumg2kr().f[29]++,cov_16daumg2kr().s[146]++,this.displaySendHazardous=!1;var n=(cov_16daumg2kr().s[147]++,""),t=(cov_16daumg2kr().s[148]++,"");cov_16daumg2kr().s[149]++,this.cmdRaw?(cov_16daumg2kr().b[37][0]++,cov_16daumg2kr().s[150]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[38][0]++,cov_16daumg2kr().s[151]++,t="cmd_raw_no_range_check",cov_16daumg2kr().s[152]++,n=this.api.cmd_raw_no_checks(this.lastTargetName,this.lastCommandName,this.lastParamList)):(cov_16daumg2kr().b[38][1]++,cov_16daumg2kr().s[153]++,t="cmd_raw",cov_16daumg2kr().s[154]++,n=this.api.cmd_raw_no_hazardous_check(this.lastTargetName,this.lastCommandName,this.lastParamList,{"Ignore-Errors":"500"}))):(cov_16daumg2kr().b[37][1]++,cov_16daumg2kr().s[155]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[39][0]++,cov_16daumg2kr().s[156]++,t="cmd_no_range_check",cov_16daumg2kr().s[157]++,n=this.api.cmd_no_checks(this.lastTargetName,this.lastCommandName,this.lastParamList)):(cov_16daumg2kr().b[39][1]++,cov_16daumg2kr().s[158]++,t="cmd",cov_16daumg2kr().s[159]++,n=this.api.cmd_no_hazardous_check(this.lastTargetName,this.lastCommandName,this.lastParamList,{"Ignore-Errors":"500"}))),cov_16daumg2kr().s[160]++,n.then((function(n){cov_16daumg2kr().f[30]++,cov_16daumg2kr().s[161]++,e.processCmdResponse(t,n)}),(function(n){cov_16daumg2kr().f[31]++,cov_16daumg2kr().s[162]++,e.processCmdResponse(!1,n)}))},cancelHazardousCmd:function(){cov_16daumg2kr().f[32]++,cov_16daumg2kr().s[163]++,this.displaySendHazardous=!1,cov_16daumg2kr().s[164]++,this.status="Hazardous command not sent",cov_16daumg2kr().s[165]++,this.sendDisabled=!1},processCmdResponse:function(e,n){cov_16daumg2kr().f[33]++;var t=(cov_16daumg2kr().s[166]++,"");if(cov_16daumg2kr().s[167]++,e){cov_16daumg2kr().b[40][0]++,cov_16daumg2kr().s[168]++,t="".concat(e,'("').concat(n[0]," ").concat(n[1]);var l=(cov_16daumg2kr().s[169]++,Object.keys(n[2]));if(cov_16daumg2kr().s[170]++,l.length>0){cov_16daumg2kr().b[41][0]++,cov_16daumg2kr().s[171]++,t+=" with ",cov_16daumg2kr().s[172]++;for(var a=(cov_16daumg2kr().s[173]++,0);a<l.length;a++){var o=(cov_16daumg2kr().s[174]++,l[a]),s=(cov_16daumg2kr().s[175]++,this.convertToString(n[2][o]));cov_16daumg2kr().s[176]++,cov_16daumg2kr().b[43][0]++,"string"===typeof n[2][o]&&(cov_16daumg2kr().b[43][1]++,"'"!==s.charAt(0))&&(cov_16daumg2kr().b[43][2]++,'"'!==s.charAt(0))?(cov_16daumg2kr().b[42][0]++,cov_16daumg2kr().s[177]++,s="'".concat(s,"'")):cov_16daumg2kr().b[42][1]++,cov_16daumg2kr().s[178]++,t+=o+" "+s,cov_16daumg2kr().s[179]++,a<l.length-1?(cov_16daumg2kr().b[44][0]++,cov_16daumg2kr().s[180]++,t+=", "):cov_16daumg2kr().b[44][1]++}}else cov_16daumg2kr().b[41][1]++;if(cov_16daumg2kr().s[181]++,t+='")',cov_16daumg2kr().s[182]++,this.history.includes(t)?cov_16daumg2kr().b[45][1]++:(cov_16daumg2kr().b[45][0]++,cov_16daumg2kr().s[183]++,this.editor.setValue("".concat(t,"\n").concat(this.history)),cov_16daumg2kr().s[184]++,this.editor.moveCursorTo(0,0)),cov_16daumg2kr().s[185]++,t+=" sent.",cov_16daumg2kr().s[186]++,this.status.includes(t)){cov_16daumg2kr().b[46][0]++;var i=(cov_16daumg2kr().s[187]++,this.status.split("sent."));if(cov_16daumg2kr().s[188]++,i[1].includes("(")){cov_16daumg2kr().b[47][0]++;var c=(cov_16daumg2kr().s[189]++,parseInt(i[1].substr(2,i[1].indexOf(")")-2)));cov_16daumg2kr().s[190]++,t=i[0]+"sent. ("+(c+1)+")"}else cov_16daumg2kr().b[47][1]++,cov_16daumg2kr().s[191]++,t+=" (2)"}else cov_16daumg2kr().b[46][1]++;cov_16daumg2kr().s[192]++,this.status=t}else{cov_16daumg2kr().b[40][1]++;var r=(cov_16daumg2kr().s[193]++,"sending "+this.targetName+" "+this.commandName);cov_16daumg2kr().s[194]++,this.displayError(r,n,!0)}cov_16daumg2kr().s[195]++,this.history=this.editor.getValue().trim(),cov_16daumg2kr().s[196]++,this.sendDisabled=!1},displayError:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(cov_16daumg2kr().b[48][0]++,!1);cov_16daumg2kr().f[34]++,cov_16daumg2kr().s[197]++,this.status="Error ".concat(e," due to ").concat(n.name),cov_16daumg2kr().s[198]++,cov_16daumg2kr().b[50][0]++,n.message&&(cov_16daumg2kr().b[50][1]++,""!==n.message)?(cov_16daumg2kr().b[49][0]++,cov_16daumg2kr().s[199]++,this.status+=": ",cov_16daumg2kr().s[200]++,this.status+=n.message):cov_16daumg2kr().b[49][1]++,cov_16daumg2kr().s[201]++,t?(cov_16daumg2kr().b[51][0]++,cov_16daumg2kr().s[202]++,this.displayErrorDialog=!0):cov_16daumg2kr().b[51][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})},1959:function(e,n,t){var l=t(9366);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var a=t(3514).Z;a("51f64f12",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})},9841:function(e,n,t){var l=t(4882);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var a=t(3514).Z;a("4a9152b5",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=912.js.map
|