openc3-tool-cmdsender 5.0.8 → 5.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ (self["webpackChunk_openc3_tool_cmdsender"]=self["webpackChunk_openc3_tool_cmdsender"]||[]).push([[780],{2676:function(e,n,t){"use strict";function l(){var e="/openc3/plugins/packages/openc3-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",n="b082912ce45457ca48f748886f291b20074c9647",t=new Function("return this")(),o="__coverage__",a={path:"/openc3/plugins/packages/openc3-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:"b082912ce45457ca48f748886f291b20074c9647"},s=t[o]||(t[o]={});s[e]&&s[e].hash===n||(s[e]=a);var i=s[e];return l=function(){return i},i}t.d(n,{Z:function(){return _}}),l(),l().s[0]++;var o=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)},a=(l().s[5]++,[]),s=t(4282),i=(t(8188),t(8233),t(8995),t(6451));function c(){var e="/openc3/plugins/packages/openc3-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",n="c7a935151d963389691d9b17af87068da3e225dc",t=new Function("return this")(),l="__coverage__",o={path:"/openc3/plugins/packages/openc3-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:34,column:6},end:{line:34,column:49}},3:{start:{line:37,column:6},end:{line:41,column:7}},4:{start:{line:38,column:8},end:{line:38,column:49}},5:{start:{line:40,column:8},end:{line:40,column:29}},6:{start:{line:45,column:6},end:{line:67,column:7}},7:{start:{line:46,column:25},end:{line:46,column:27}},8:{start:{line:47,column:8},end:{line:56,column:9}},9:{start:{line:48,column:10},end:{line:55,column:11}},10:{start:{line:49,column:12},end:{line:54,column:14}},11:{start:{line:57,column:8},end:{line:61,column:10}},12:{start:{line:64,column:8},end:{line:64,column:25}},13:{start:{line:66,column:8},end:{line:66,column:19}},14:{start:{line:72,column:6},end:{line:72,column:61}},15:{start:{line:75,column:6},end:{line:75,column:28}},16:{start:{line:76,column:6},end:{line:76,column:37}},17:{start:{line:77,column:6},end:{line:108,column:7}},18:{start:{line:78,column:29},end:{line:78,column:47}},19:{start:{line:79,column:35},end:{line:79,column:53}},20:{start:{line:80,column:8},end:{line:103,column:9}},21:{start:{line:81,column:10},end:{line:102,column:11}},22:{start:{line:82,column:12},end:{line:82,column:44}},23:{start:{line:83,column:12},end:{line:83,column:46}},24:{start:{line:84,column:12},end:{line:88,column:13}},25:{start:{line:85,column:14},end:{line:85,column:42}},26:{start:{line:87,column:14},end:{line:87,column:41}},27:{start:{line:89,column:12},end:{line:89,column:17}},28:{start:{line:91,column:17},end:{line:102,column:11}},29:{start:{line:92,column:12},end:{line:92,column:34}},30:{start:{line:93,column:12},end:{line:93,column:46}},31:{start:{line:94,column:12},end:{line:98,column:13}},32:{start:{line:95,column:14},end:{line:95,column:42}},33:{start:{line:97,column:14},end:{line:97,column:41}},34:{start:{line:99,column:12},end:{line:99,column:17}},35:{start:{line:101,column:12},end:{line:101,column:40}},36:{start:{line:104,column:8},end:{line:104,column:50}},37:{start:{line:105,column:8},end:{line:105,column:62}},38:{start:{line:107,column:8},end:{line:107,column:40}},39:{start:{line:109,column:6},end:{line:109,column:37}},40:{start:{line:113,column:33},end:{line:113,column:37}},41:{start:{line:114,column:27},end:{line:114,column:31}},42:{start:{line:115,column:6},end:{line:126,column:7}},43:{start:{line:115,column:23},end:{line:115,column:24}},44:{start:{line:116,column:8},end:{line:125,column:9}},45:{start:{line:117,column:10},end:{line:121,column:11}},46:{start:{line:118,column:12},end:{line:118,column:40}},47:{start:{line:120,column:12},end:{line:120,column:39}},48:{start:{line:122,column:10},end:{line:122,column:57}},49:{start:{line:123,column:10},end:{line:123,column:32}},50:{start:{line:124,column:10},end:{line:124,column:15}},51:{start:{line:127,column:6},end:{line:127,column:60}},52:{start:{line:128,column:6},end:{line:137,column:7}},53:{start:{line:129,column:8},end:{line:129,column:36}},54:{start:{line:130,column:8},end:{line:130,column:48}},55:{start:{line:135,column:8},end:{line:135,column:39}},56:{start:{line:136,column:8},end:{line:136,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:33,column:4},end:{line:33,column:5}},loc:{start:{line:33,column:21},end:{line:35,column:5}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:36,column:4},end:{line:36,column:5}},loc:{start:{line:36,column:17},end:{line:42,column:5}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:43,column:4},end:{line:43,column:5}},loc:{start:{line:43,column:13},end:{line:68,column:5}},line:43},5:{name:"(anonymous_5)",decl:{start:{line:71,column:4},end:{line:71,column:5}},loc:{start:{line:71,column:17},end:{line:73,column:5}},line:71},6:{name:"(anonymous_6)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:24},end:{line:110,column:5}},line:74},7:{name:"(anonymous_7)",decl:{start:{line:112,column:4},end:{line:112,column:5}},loc:{start:{line:112,column:29},end:{line:138,column:5}},line:112}},branchMap:{0:{loc:{start:{line:37,column:6},end:{line:41,column:7}},type:"if",locations:[{start:{line:37,column:6},end:{line:41,column:7}},{start:{line:39,column:13},end:{line:41,column:7}}],line:37},1:{loc:{start:{line:45,column:6},end:{line:67,column:7}},type:"if",locations:[{start:{line:45,column:6},end:{line:67,column:7}},{start:{line:65,column:13},end:{line:67,column:7}}],line:45},2:{loc:{start:{line:48,column:10},end:{line:55,column:11}},type:"if",locations:[{start:{line:48,column:10},end:{line:55,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:48},3:{loc:{start:{line:72,column:13},end:{line:72,column:61}},type:"cond-expr",locations:[{start:{line:72,column:36},end:{line:72,column:52}},{start:{line:72,column:55},end:{line:72,column:61}}],line:72},4:{loc:{start:{line:77,column:6},end:{line:108,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:108,column:7}},{start:{line:106,column:13},end:{line:108,column:7}}],line:77},5:{loc:{start:{line:81,column:10},end:{line:102,column:11}},type:"if",locations:[{start:{line:81,column:10},end:{line:102,column:11}},{start:{line:91,column:17},end:{line:102,column:11}}],line:81},6:{loc:{start:{line:84,column:12},end:{line:88,column:13}},type:"if",locations:[{start:{line:84,column:12},end:{line:88,column:13}},{start:{line:86,column:19},end:{line:88,column:13}}],line:84},7:{loc:{start:{line:91,column:17},end:{line:102,column:11}},type:"if",locations:[{start:{line:91,column:17},end:{line:102,column:11}},{start:{line:100,column:17},end:{line:102,column:11}}],line:91},8:{loc:{start:{line:94,column:12},end:{line:98,column:13}},type:"if",locations:[{start:{line:94,column:12},end:{line:98,column:13}},{start:{line:96,column:19},end:{line:98,column:13}}],line:94},9:{loc:{start:{line:116,column:8},end:{line:125,column:9}},type:"if",locations:[{start:{line:116,column:8},end:{line:125,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:116},10:{loc:{start:{line:117,column:10},end:{line:121,column:11}},type:"if",locations:[{start:{line:117,column:10},end:{line:121,column:11}},{start:{line:119,column:17},end:{line:121,column:11}}],line:117},11:{loc:{start:{line:128,column:6},end:{line:137,column:7}},type:"if",locations:[{start:{line:128,column:6},end:{line:137,column:7}},{start:{line:134,column:13},end:{line:137,column:7}}],line:128}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7: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:";AA6DA;;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;;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--\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 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:"c7a935151d963389691d9b17af87068da3e225dc"},a=t[l]||(t[l]={});a[e]&&a[e].hash===n||(a[e]=o);var s=a[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}},computed:{textfieldValue:function(){return c().f[2]++,c().s[2]++,this.convertToString(this.value.val)},stateValue:function(){return c().f[3]++,c().s[3]++,this.statesInHex?(c().b[0][0]++,c().s[4]++,"0x"+this.value.val.toString(16)):(c().b[0][1]++,c().s[5]++,this.value.val)},states:function(){if(c().f[4]++,c().s[6]++,null!=this.value.states){c().b[1][0]++;var e=(c().s[7]++,[]);for(var n in c().s[8]++,this.value.states)c().s[9]++,Object.prototype.hasOwnProperty.call(this.value.states,n)?(c().b[2][0]++,c().s[10]++,e.push({label:n,value:this.value.states[n].value,hazardous:this.value.states[n].hazardous})):c().b[2][1]++;return c().s[11]++,e.push({label:"MANUALLY ENTERED",value:"MANUALLY ENTERED",hazardous:void 0}),c().s[12]++,e}return c().b[1][1]++,c().s[13]++,null}},methods:{stateClass:function(){return c().f[5]++,c().s[14]++,this.value.hazardous?(c().b[3][0]++,"hazardous mr-4"):(c().b[3][1]++,"mr-4")},handleChange:function(e){if(c().f[6]++,c().s[15]++,this.value.val=e,c().s[16]++,this.value.manual_value=e,c().s[17]++,this.value.states){c().b[4][0]++;var n=(c().s[18]++,"MANUALLY ENTERED"),t=(c().s[19]++,"MANUALLY_ENTERED");c().s[20]++;var l,o=(0,s.Z)(this.states);try{for(o.s();!(l=o.n()).done;){var a=l.value;if(c().s[21]++,a.value===parseInt(e)){c().b[5][0]++,c().s[22]++,n=parseInt(e),c().s[23]++,t=a.label,c().s[24]++,void 0===a.hazardous?(c().b[6][0]++,c().s[25]++,this.value.hazardous=!1):(c().b[6][1]++,c().s[26]++,this.value.hazardous=!0),c().s[27]++;break}if(c().b[5][1]++,c().s[28]++,a.value===e){c().b[7][0]++,c().s[29]++,n=e,c().s[30]++,t=a.label,c().s[31]++,void 0===a.hazardous?(c().b[8][0]++,c().s[32]++,this.value.hazardous=!1):(c().b[8][1]++,c().s[33]++,this.value.hazardous=!0),c().s[34]++;break}c().b[7][1]++,c().s[35]++,this.value.hazardous=!1}}catch(i){o.e(i)}finally{o.f()}c().s[36]++,this.value.selected_state=n,c().s[37]++,this.value.selected_state_label=t}else c().b[4][1]++,c().s[38]++,this.value.selected_state=null;c().s[39]++,this.$emit("input",this.value)},handleStateChange:function(e){c().f[7]++;var n=(c().s[40]++,null),t=(c().s[41]++,null);c().s[42]++;for(var l=(c().s[43]++,0);l<this.states.length;l++){if(c().s[44]++,e===this.states[l].value){c().b[9][0]++,c().s[45]++,void 0===this.states[l].hazardous?(c().b[10][0]++,c().s[46]++,this.value.hazardous=!1):(c().b[10][1]++,c().s[47]++,this.value.hazardous=!0),c().s[48]++,n=this.states[l].label,c().s[49]++,t=e,c().s[50]++;break}c().b[9][1]++}c().s[51]++,this.value.selected_state_label=n,c().s[52]++,"MANUALLY ENTERED"===n?(c().b[11][0]++,c().s[53]++,this.value.hazardous=!1,c().s[54]++,this.value.val=this.value.manual_value):(c().b[11][1]++,c().s[55]++,this.value.val=t,c().s[56]++,this.$emit("input",this.value))}}},u=r,m=(t(8157),t(3483)),d=(0,m.Z)(u,o,a,!1,null,"f74ed796",null),_=d.exports},4780:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});t(7950),t(4908),t(4083);function l(){var e="/openc3/plugins/packages/openc3-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",n="230f992a187da41d21ec4ad87ed5db823708b42f",t=new Function("return this")(),o="__coverage__",a={path:"/openc3/plugins/packages/openc3-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:5044}},4:{start:{line:1,column:366},end:{line:1,column:399}},5:{start:{line:1,column:426},end:{line:1,column:453}},6:{start:{line:1,column:710},end:{line:1,column:724}},7:{start:{line:1,column:1049},end:{line:1,column:1263}},8:{start:{line:1,column:1188},end:{line:1,column:1225}},9:{start:{line:1,column:1693},end:{line:1,column:1790}},10:{start:{line:1,column:1778},end:{line:1,column:1790}},11:{start:{line:1,column:1790},end:{line:1,column:1821}},12:{start:{line:1,column:1974},end:{line:1,column:1998}},13:{start:{line:1,column:2098},end:{line:1,column:2289}},14:{start:{line:1,column:2162},end:{line:1,column:2187}},15:{start:{line:1,column:2187},end:{line:1,column:2228}},16:{start:{line:1,column:2486},end:{line:1,column:2505}},17:{start:{line:1,column:2639},end:{line:1,column:2665}},18:{start:{line:1,column:3086},end:{line:1,column:3116}},19:{start:{line:1,column:3262},end:{line:1,column:3290}},20:{start:{line:1,column:4039},end:{line:1,column:4061}},21:{start:{line:1,column:4511},end:{line:1,column:4536}},22:{start:{line:1,column:4728},end:{line:1,column:4763}},23:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:349},end:{line:1,column:350}},loc:{start:{line:1,column:365},end:{line:1,column:400}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:409},end:{line:1,column:410}},loc:{start:{line:1,column:425},end:{line:1,column:454}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:694},end:{line:1,column:695}},loc:{start:{line:1,column:709},end:{line:1,column:725}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1030},end:{line:1,column:1031}},loc:{start:{line:1,column:1048},end:{line:1,column:1264}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1172},end:{line:1,column:1173}},loc:{start:{line:1,column:1187},end:{line:1,column:1226}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1676},end:{line:1,column:1677}},loc:{start:{line:1,column:1692},end:{line:1,column:1822}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1958},end:{line:1,column:1959}},loc:{start:{line:1,column:1973},end:{line:1,column:1999}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2077},end:{line:1,column:2078}},loc:{start:{line:1,column:2097},end:{line:1,column:2290}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2145},end:{line:1,column:2146}},loc:{start:{line:1,column:2161},end:{line:1,column:2229}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2470},end:{line:1,column:2471}},loc:{start:{line:1,column:2485},end:{line:1,column:2506}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2623},end:{line:1,column:2624}},loc:{start:{line:1,column:2638},end:{line:1,column:2666}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:3069},end:{line:1,column:3070}},loc:{start:{line:1,column:3085},end:{line:1,column:3117}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:3246},end:{line:1,column:3247}},loc:{start:{line:1,column:3261},end:{line:1,column:3291}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4023},end:{line:1,column:4024}},loc:{start:{line:1,column:4038},end:{line:1,column:4062}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:4495},end:{line:1,column:4496}},loc:{start:{line:1,column:4510},end:{line:1,column:4537}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:4711},end:{line:1,column:4712}},loc:{start:{line:1,column:4727},end:{line:1,column:4764}},line:1}},branchMap:{0:{loc:{start:{line:1,column:458},end:{line:1,column:1304}},type:"cond-expr",locations:[{start:{line:1,column:482},end:{line:1,column:1295}},{start:{line:1,column:1296},end:{line:1,column:1304}}],line:1},1:{loc:{start:{line:1,column:1693},end:{line:1,column:1790}},type:"if",locations:[{start:{line:1,column:1693},end:{line:1,column:1790}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:1},2:{loc:{start:{line:1,column:1696},end:{line:1,column:1777}},type:"binary-expr",locations:[{start:{line:1,column:1696},end:{line:1,column:1723}},{start:{line:1,column:1725},end:{line:1,column:1777}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"230f992a187da41d21ec4ad87ed5db823708b42f"},s=t[o]||(t[o]={});s[e]&&s[e].hash===n||(s[e]=a);var i=s[e];return l=function(){return i},i}l(),l().s[0]++;var o=function(){l().f[0]++;var e=(l().s[1]++,this),n=(l().s[2]++,e._self._c);return l().s[3]++,n("div",[n("top-bar",{attrs:{menus:e.menus,title:e.title}}),n("target-packet-item-chooser",{attrs:{"initial-target-name":this.$route.params.target,"initial-packet-name":this.$route.params.packet,disabled:e.sendDisabled,"button-text":"Send",mode:"cmd"},on:{"on-set":function(n){return l().f[1]++,l().s[4]++,e.commandChanged(n)},click:function(n){return l().f[2]++,l().s[5]++,e.buildCmd(n)}}}),0!==e.rows.length?(l().b[0][0]++,n("v-card",[n("v-card-title",[e._v(" Parameters "),n("v-spacer"),n("v-text-field",{attrs:{"append-icon":"mdi-magnify",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){l().f[3]++,l().s[6]++,e.search=n},expression:"search"}})],1),n("v-data-table",{attrs:{headers:e.headers,items:e.rows,search:e.search,"calculate-widths":"","disable-pagination":"","hide-default-footer":"","multi-sort":"",dense:""},on:{"contextmenu:row":e.showContextMenu},scopedSlots:e._u([{key:"item.val_and_states",fn:function(t){var o=t.item;return l().f[4]++,l().s[7]++,[n("command-parameter-editor",{attrs:{"states-in-hex":e.statesInHex},model:{value:o.val_and_states,callback:function(n){l().f[5]++,l().s[8]++,e.$set(o,"val_and_states",n)},expression:"item.val_and_states"}})]}}],null,!1,1123654540)})],1)):(l().b[0][1]++,e._e()),n("div",{staticClass:"ma-3"},[e._v("Status: "+e._s(e.status))]),n("div",{staticClass:"mt-3"},[e._v(" Command History: (Pressing Enter on the line re-executes the command) ")]),n("v-textarea",{ref:"history",attrs:{value:e.history,solo:"",dense:"","hide-details":"","data-test":"sender-history","background-color":e.getBackgroundColor()},on:{keydown:function(n){return l().f[6]++,l().s[9]++,l().b[2][0]++,!n.type.indexOf("key")&&(l().b[2][1]++,e._k(n.keyCode,"enter",13,n.key,"Enter"))?(l().b[1][0]++,l().s[10]++,null):(l().b[1][1]++,l().s[11]++,e.historyEnter(n))}}}),n("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(n){l().f[7]++,l().s[12]++,e.contextMenuShown=n},expression:"contextMenuShown"}},[n("v-list",e._l(e.contextMenuOptions,(function(t,o){return l().f[8]++,l().s[13]++,n("v-list-item",{key:o,on:{click:function(e){return l().f[9]++,l().s[14]++,e.stopPropagation(),l().s[15]++,t.action.apply(null,arguments)}}},[n("v-list-item-title",[e._v(e._s(t.title))])],1)})),1)],1),n("details-dialog",{attrs:{"target-name":e.targetName,"packet-name":e.commandName,"item-name":e.parameterName,type:"cmd"},model:{value:e.viewDetails,callback:function(n){l().f[10]++,l().s[16]++,e.viewDetails=n},expression:"viewDetails"}}),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displayErrorDialog,callback:function(n){l().f[11]++,l().s[17]++,e.displayErrorDialog=n},expression:"displayErrorDialog"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Error ")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"mx-1"},[n("v-row",{staticClass:"my-2"},[n("v-card-text",[n("span",{domProps:{textContent:e._s(e.status)}})])],1),n("v-row",[n("v-spacer"),n("v-btn",{attrs:{color:"primary","data-test":"error-dialog-ok"},on:{click:function(n){l().f[12]++,l().s[18]++,e.displayErrorDialog=!1}}},[e._v(" Ok ")])],1)],1)])],1)],1),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displaySendHazardous,callback:function(n){l().f[13]++,l().s[19]++,e.displaySendHazardous=n},expression:"displaySendHazardous"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Hazardous Warning ")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"mx-1"},[n("v-row",{staticClass:"my-2"},[n("span",[e._v(" Warning: Command "+e._s(e.targetName)+" "+e._s(e.commandName)+" is Hazardous. Send? ")])]),n("v-row",[n("v-spacer"),n("v-btn",{attrs:{outlined:"","data-test":"send-hazardous-no"},on:{click:e.cancelHazardousCmd}},[e._v(" No ")]),n("v-btn",{staticClass:"primary mx-1",attrs:{"data-test":"send-hazardous-yes"},on:{click:e.sendHazardousCmd}},[e._v(" Yes ")])],1)],1)])],1)],1),n("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displaySendRaw,callback:function(n){l().f[14]++,l().s[20]++,e.displaySendRaw=n},expression:"displaySendRaw"}},[n("v-card",[n("v-system-bar",[n("v-spacer"),n("span",[e._v(" Send Raw ")]),n("v-spacer")],1),n("v-card-text",[n("div",{staticClass:"mx-1"},[n("v-row",{staticClass:"my-2"},[n("v-col",[e._v("Interface:")]),n("v-col",[n("v-select",{attrs:{solo:"","hide-details":"",dense:"",items:e.interfaces,"item-text":"label","item-value":"value"},model:{value:e.selectedInterface,callback:function(n){l().f[15]++,l().s[21]++,e.selectedInterface=n},expression:"selectedInterface"}})],1)],1),n("v-row",{attrs:{"no-gutters":""}},[n("v-col",[e._v("Filename:")]),n("v-col",[n("input",{attrs:{type:"file"},on:{change:function(n){return l().f[16]++,l().s[22]++,e.selectRawCmdFile(n)}}})])],1),n("v-row",[n("v-spacer"),n("v-btn",{attrs:{outlined:"","data-test":"raw-cancel"},on:{click:e.cancelRawCmd}},[e._v(" Cancel ")]),n("v-btn",{staticClass:"primary",attrs:{"data-test":"raw-ok"},on:{click:e.sendRawCmd}},[e._v(" Ok ")])],1)],1)])],1)],1)],1)},a=(l().s[23]++,[]),s=t(8193),i=s.Z,c=t(3483),r=(0,c.Z)(i,o,a,!1,null,null,null),u=r.exports},3169: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-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":""}},[n("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(l))]),e._v(" "+e._s(e.formatLimit(t))+" "),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)},o=[],a=(t(4083),t(8178),t(4008)),s={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 a.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){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;"tlm"===this.type?this.api.get_item(this.targetName,this.packetName,this.itemName).then((function(n){e.details=n})):this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((function(n){e.details=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}}},i=s,c=(t(6649),t(3483)),r=(0,c.Z)(i,l,o,!1,null,"2d350830",null),u=r.exports},7401: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),n("v-row",{attrs:{"no-gutters":""}},[e.hazardous?n("v-col",{staticClass:"openc3-yellow",attrs:{cols:e.colSize}},[n("astro-badge",{attrs:{status:"caution",inline:""}},[e._v(" Description: "+e._s(e.description)+" (HAZARDOUS) ")])],1):n("v-col",{attrs:{cols:e.colSize}},[e._v(" Description: "+e._s(e.description)+" ")])],1)],1)},o=[],a=(t(9529),t(3450),t(9228),t(8188),t(3108),t(8178),t(1939),t(4008)),s={props:{allowAll:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},mode:{type:String,default:"tlm",validator:function(e){return["cmd","tlm"].includes(e)}},reduced:{type:String,default:"DECOM",validator:function(e){return["REDUCED_DAY","REDUCED_HOUR","REDUCED_MINUTE","DECOM"].includes(e)}},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data:function(){var e,n,t;return{targetNames:[],packetNames:[],itemNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),selectedPacketName:null===(n=this.initialPacketName)||void 0===n?void 0:n.toUpperCase(),selectedItemName:null===(t=this.initialItemName)||void 0===t?void 0:t.toUpperCase(),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 a.k,this.api.get_target_list().then((function(n){e.targetNames=n.map((function(e){return{label:e,value:e}})),e.selectedTargetName||(e.selectedTargetName=e.targetNames[0].value,e.targetNameChanged(e.selectedTargetName)),e.updatePackets(),e.unknown&&e.targetNames.push(e.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},targetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"49%",float:"left"}},packetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"50%",float:"right"}},colSize:function(){return!!this.vertical&&12}},watch:{mode:function(e,n){this.updatePackets(),this.itemNames=[]},reduced:function(e,n){this.updateItems()}},methods:{updatePackets:function(){var e=this;if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.UNKNOWN.value),void(this.description="UNKNOWN");this.internalDisabled=!0;var 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(n){return"DECOM"===e.reduced?[{label:n.name,value:n.name,description:n.description}]:e.makeReducedItems(n)})).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,reduced:e.reduced})}))}},makeReducedItems:function(e){var n=!e.array_size&&!e.states;return n&&["UINT","INT","FLOAT"].includes(e.data_type)?["MIN","MAX","AVG","STDDEV"].map((function(n){return{label:"".concat(e.name,"_").concat(n),value:"".concat(e.name,"_").concat(n),description:"".concat(n," ").concat(e.description)}})):[]},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){var n=this;if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;var t=this.packetNames.find((function(n){return e===n.value}));this.selectedPacketName=t.value;var l="tlm"===this.mode?"get_telemetry":"get_command";this.api[l](this.selectedTargetName,this.selectedPacketName).then((function(e){n.description=e.description,n.hazardous=e.hazardous}))}this.chooseItem?(this.selectedItemName="",this.updateItems()):this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,reduced:this.reduced})},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,reduced:this.reduced})},buttonPressed:function(){"ALL"===this.selectedPacketName?this.allTargetPacketItems():"ALL"===this.selectedItemName?this.allPacketItems():this.chooseItem?this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,reduced:this.reduced}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,reduced:this.reduced})},allTargetPacketItems:function(){var e=this;this.packetNames.forEach((function(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"],reduced:e.reduced})}))}))}}))},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,reduced:e.reduced})}))}}},i=s,c=(t(6957),t(3483)),r=(0,c.Z)(i,l,o,!1,null,null,null),u=r.exports},9302: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 o=l.on,a=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",a,!1),o),[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,o){return[l.divider?n("v-divider"):n("v-list-item",{key:o,attrs:{disabled:l.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(t.label," ").concat(l.label))},on:{click:l.command}},[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,value:l.label},model:{value:e.checked,callback:function(n){e.checked=n},expression:"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)])},o=[],a=(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(){document.title=this.title}}),s=a,i=(t(9824),t(3483)),c=(0,i.Z)(s,l,o,!1,null,"5fb8d7fb",null),r=c.exports},6539:function(e,n,t){"use strict";t.r(n);var l=t(9601),o=t.n(l),a=t(2609),s=t.n(a),i=s()(o());i.push([e.id,".container[data-v-f74ed796] .v-select__selections{width:auto}.v-overflow-btn[data-v-f74ed796]{margin-top:0}.container[data-v-f74ed796]{padding:0}.hazardous[data-v-f74ed796] .v-select__selection{color:#ffdc00}",""]),n["default"]=i},5728:function(e,n,t){"use strict";t.r(n);var l=t(9601),o=t.n(l),a=t(2609),s=t.n(a),i=s()(o());i.push([e.id,".label[data-v-2d350830]{font-weight:700;text-transform:capitalize}",""]),n["default"]=i},3200:function(e,n,t){"use strict";t.r(n);var l=t(9601),o=t.n(l),a=t(2609),s=t.n(a),i=s()(o());i.push([e.id,".v-badge__badge{height:auto;padding:0}",""]),n["default"]=i},363:function(e,n,t){"use strict";t.r(n);var l=t(9601),o=t.n(l),a=t(2609),s=t.n(a),i=s()(o());i.push([e.id,".v-list[data-v-5fb8d7fb] .v-label{margin-left:5px}.v-list-item__icon[data-v-5fb8d7fb]{margin-right:15px!important}.v-list-item__title[data-v-5fb8d7fb]{color:#fff}",""]),n["default"]=i},8193: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_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7950),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8319),core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4660),core_js_modules_es_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4112),core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2501),core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(8995),core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_parse_float_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3489),core_js_modules_es_parse_float_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_parse_float_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_symbol_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(4115),core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_13__),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(634),core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_14__),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(8178),core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_15__),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(4769),core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_16__),_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6291),_openc3_tool_common_src_components_TargetPacketItemChooser__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(7401),_tools_CommandSender_CommandParameterEditor__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(2676),_tools_CommandSender_utilities__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6451),_openc3_tool_common_src_services_openc3_api__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(4008),_openc3_tool_common_src_components_DetailsDialog__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(3169),_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(9302),sprintf_js__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(131),sprintf_js__WEBPACK_IMPORTED_MODULE_24___default=__webpack_require__.n(sprintf_js__WEBPACK_IMPORTED_MODULE_24__);function cov_1weo8er85e(){var e="/openc3/plugins/packages/openc3-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",n="39a0be59d800e01f462ce6f1d7e03b4488cd609b",t=new Function("return this")(),l="__coverage__",o={path:"/openc3/plugins/packages/openc3-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",statementMap:{0:{start:{line:20,column:4},end:{line:112,column:5}},1:{start:{line:57,column:12},end:{line:57,column:41}},2:{start:{line:58,column:12},end:{line:58,column:35}},3:{start:{line:82,column:16},end:{line:82,column:64}},4:{start:{line:89,column:16},end:{line:89,column:52}},5:{start:{line:96,column:16},end:{line:96,column:64}},6:{start:{line:99,column:16},end:{line:99,column:38}},7:{start:{line:106,column:16},end:{line:106,column:42}},8:{start:{line:115,column:4},end:{line:117,column:6}},9:{start:{line:116,column:6},end:{line:116,column:44}},10:{start:{line:118,column:4},end:{line:118,column:30}},11:{start:{line:120,column:4},end:{line:125,column:5}},12:{start:{line:121,column:6},end:{line:124,column:8}},13:{start:{line:129,column:6},end:{line:129,column:61}},14:{start:{line:133,column:6},end:{line:133,column:28}},15:{start:{line:134,column:23},end:{line:134,column:53}},16:{start:{line:135,column:16},end:{line:135,column:39}},17:{start:{line:137,column:24},end:{line:137,column:57}},18:{start:{line:139,column:20},end:{line:139,column:69}},19:{start:{line:140,column:20},end:{line:140,column:43}},20:{start:{line:142,column:6},end:{line:144,column:7}},21:{start:{line:143,column:8},end:{line:143,column:14}},22:{start:{line:147,column:23},end:{line:147,column:43}},23:{start:{line:148,column:22},end:{line:148,column:46}},24:{start:{line:149,column:6},end:{line:149,column:74}},25:{start:{line:150,column:6},end:{line:150,column:27}},26:{start:{line:154,column:6},end:{line:154,column:24}},27:{start:{line:155,column:6},end:{line:155,column:50}},28:{start:{line:156,column:6},end:{line:156,column:35}},29:{start:{line:157,column:6},end:{line:157,column:24}},30:{start:{line:158,column:6},end:{line:158,column:24}},31:{start:{line:159,column:6},end:{line:161,column:8}},32:{start:{line:160,column:8},end:{line:160,column:36}},33:{start:{line:165,column:6},end:{line:170,column:7}},34:{start:{line:169,column:8},end:{line:169,column:56}},35:{start:{line:171,column:6},end:{line:173,column:7}},36:{start:{line:172,column:8},end:{line:172,column:39}},37:{start:{line:175,column:16},end:{line:175,column:40}},38:{start:{line:176,column:26},end:{line:176,column:48}},39:{start:{line:177,column:6},end:{line:212,column:7}},40:{start:{line:178,column:24},end:{line:178,column:41}},41:{start:{line:179,column:8},end:{line:209,column:9}},42:{start:{line:183,column:23},end:{line:183,column:41}},43:{start:{line:184,column:10},end:{line:186,column:11}},44:{start:{line:185,column:12},end:{line:185,column:33}},45:{start:{line:187,column:21},end:{line:187,column:54}},46:{start:{line:188,column:10},end:{line:191,column:11}},47:{start:{line:188,column:23},end:{line:188,column:24}},48:{start:{line:189,column:25},end:{line:189,column:64}},49:{start:{line:190,column:12},end:{line:190,column:47}},50:{start:{line:192,column:10},end:{line:192,column:21}},51:{start:{line:194,column:10},end:{line:208,column:11}},52:{start:{line:195,column:12},end:{line:195,column:27}},53:{start:{line:196,column:17},end:{line:208,column:11}},54:{start:{line:197,column:12},end:{line:197,column:28}},55:{start:{line:198,column:17},end:{line:208,column:11}},56:{start:{line:199,column:12},end:{line:199,column:22}},57:{start:{line:200,column:17},end:{line:208,column:11}},58:{start:{line:201,column:12},end:{line:201,column:34}},59:{start:{line:202,column:17},end:{line:208,column:11}},60:{start:{line:203,column:12},end:{line:203,column:32}},61:{start:{line:204,column:17},end:{line:208,column:11}},62:{start:{line:205,column:12},end:{line:205,column:28}},63:{start:{line:207,column:12},end:{line:207,column:22}},64:{start:{line:211,column:8},end:{line:211,column:28}},65:{start:{line:216,column:6},end:{line:236,column:7}},66:{start:{line:220,column:8},end:{line:220,column:42}},67:{start:{line:221,column:8},end:{line:221,column:43}},68:{start:{line:223,column:8},end:{line:225,column:9}},69:{start:{line:224,column:10},end:{line:224,column:32}},70:{start:{line:226,column:8},end:{line:235,column:29}},71:{start:{line:240,column:6},end:{line:240,column:30}},72:{start:{line:241,column:6},end:{line:241,column:29}},73:{start:{line:242,column:6},end:{line:242,column:20}},74:{start:{line:243,column:6},end:{line:298,column:9}},75:{start:{line:247,column:12},end:{line:247,column:58}},76:{start:{line:248,column:12},end:{line:248,column:74}},77:{start:{line:251,column:12},end:{line:251,column:66}},78:{start:{line:256,column:12},end:{line:291,column:14}},79:{start:{line:257,column:14},end:{line:257,column:73}},80:{start:{line:257,column:67},end:{line:257,column:73}},81:{start:{line:258,column:14},end:{line:290,column:15}},82:{start:{line:262,column:26},end:{line:262,column:43}},83:{start:{line:265,column:16},end:{line:270,column:17}},84:{start:{line:269,column:18},end:{line:269,column:34}},85:{start:{line:271,column:16},end:{line:273,column:17}},86:{start:{line:272,column:18},end:{line:272,column:26}},87:{start:{line:274,column:16},end:{line:276,column:17}},88:{start:{line:275,column:18},end:{line:275,column:75}},89:{start:{line:277,column:16},end:{line:289,column:18}},90:{start:{line:292,column:12},end:{line:292,column:37}},91:{start:{line:293,column:12},end:{line:293,column:28}},92:{start:{line:296,column:12},end:{line:296,column:66}},93:{start:{line:302,column:22},end:{line:302,column:24}},94:{start:{line:303,column:6},end:{line:307,column:7}},95:{start:{line:303,column:19},end:{line:303,column:20}},96:{start:{line:304,column:8},end:{line:306,column:9}},97:{start:{line:308,column:6},end:{line:308,column:22}},98:{start:{line:312,column:6},end:{line:312,column:77}},99:{start:{line:320,column:6},end:{line:320,column:30}},100:{start:{line:321,column:22},end:{line:321,column:27}},101:{start:{line:322,column:16},end:{line:322,column:18}},102:{start:{line:323,column:6},end:{line:378,column:7}},103:{start:{line:325,column:10},end:{line:325,column:30}},104:{start:{line:327,column:10},end:{line:373,column:11}},105:{start:{line:328,column:12},end:{line:328,column:44}},106:{start:{line:331,column:12},end:{line:363,column:13}},107:{start:{line:332,column:14},end:{line:346,column:15}},108:{start:{line:333,column:16},end:{line:333,column:46}},109:{start:{line:334,column:16},end:{line:338,column:17}},110:{start:{line:340,column:16},end:{line:340,column:31}},111:{start:{line:341,column:16},end:{line:345,column:18}},112:{start:{line:348,column:14},end:{line:362,column:15}},113:{start:{line:349,column:16},end:{line:349,column:42}},114:{start:{line:350,column:16},end:{line:354,column:17}},115:{start:{line:356,column:16},end:{line:356,column:27}},116:{start:{line:357,column:16},end:{line:361,column:18}},117:{start:{line:365,column:12},end:{line:372,column:13}},118:{start:{line:367,column:16},end:{line:367,column:54}},119:{start:{line:370,column:16},end:{line:370,column:53}},120:{start:{line:376,column:10},end:{line:376,column:47}},121:{start:{line:382,column:6},end:{line:382,column:39}},122:{start:{line:383,column:24},end:{line:383,column:46}},123:{start:{line:384,column:16},end:{line:384,column:18}},124:{start:{line:385,column:16},end:{line:385,column:18}},125:{start:{line:386,column:6},end:{line:428,column:7}},126:{start:{line:387,column:8},end:{line:406,column:9}},127:{start:{line:388,column:10},end:{line:388,column:35}},128:{start:{line:389,column:10},end:{line:393,column:11}},129:{start:{line:395,column:10},end:{line:395,column:44}},130:{start:{line:396,column:10},end:{line:405,column:11}},131:{start:{line:408,column:8},end:{line:427,column:9}},132:{start:{line:409,column:10},end:{line:409,column:31}},133:{start:{line:410,column:10},end:{line:414,column:11}},134:{start:{line:416,column:10},end:{line:416,column:40}},135:{start:{line:417,column:10},end:{line:426,column:11}},136:{start:{line:430,column:6},end:{line:437,column:7}},137:{start:{line:432,column:10},end:{line:432,column:48}},138:{start:{line:435,column:10},end:{line:435,column:47}},139:{start:{line:441,column:6},end:{line:441,column:39}},140:{start:{line:442,column:6},end:{line:442,column:48}},141:{start:{line:443,column:6},end:{line:443,column:31}},142:{start:{line:447,column:16},end:{line:447,column:18}},143:{start:{line:448,column:6},end:{line:489,column:7}},144:{start:{line:449,column:8},end:{line:449,column:58}},145:{start:{line:450,column:19},end:{line:450,column:43}},146:{start:{line:451,column:8},end:{line:469,column:9}},147:{start:{line:452,column:10},end:{line:452,column:25}},148:{start:{line:453,column:10},end:{line:468,column:11}},149:{start:{line:453,column:23},end:{line:453,column:24}},150:{start:{line:454,column:22},end:{line:454,column:29}},151:{start:{line:455,column:24},end:{line:455,column:62}},152:{start:{line:457,column:12},end:{line:463,column:13}},153:{start:{line:462,column:14},end:{line:462,column:34}},154:{start:{line:464,column:12},end:{line:464,column:36}},155:{start:{line:465,column:12},end:{line:467,column:13}},156:{start:{line:466,column:14},end:{line:466,column:25}},157:{start:{line:470,column:8},end:{line:470,column:19}},158:{start:{line:471,column:8},end:{line:473,column:9}},159:{start:{line:472,column:10},end:{line:472,column:36}},160:{start:{line:474,column:8},end:{line:474,column:23}},161:{start:{line:476,column:8},end:{line:484,column:9}},162:{start:{line:477,column:22},end:{line:477,column:48}},163:{start:{line:478,column:10},end:{line:483,column:11}},164:{start:{line:479,column:22},end:{line:479,column:77}},165:{start:{line:480,column:12},end:{line:480,column:56}},166:{start:{line:482,column:12},end:{line:482,column:25}},167:{start:{line:485,column:8},end:{line:485,column:25}},168:{start:{line:487,column:22},end:{line:487,column:75}},169:{start:{line:488,column:8},end:{line:488,column:50}},170:{start:{line:490,column:6},end:{line:490,column:31}},171:{start:{line:494,column:6},end:{line:494,column:59}},172:{start:{line:495,column:6},end:{line:498,column:7}},173:{start:{line:496,column:8},end:{line:496,column:27}},174:{start:{line:497,column:8},end:{line:497,column:36}},175:{start:{line:499,column:6},end:{line:501,column:7}},176:{start:{line:500,column:8},end:{line:500,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:2},end:{line:19,column:3}},loc:{start:{line:19,column:9},end:{line:113,column:3}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:56,column:18},end:{line:56,column:19}},loc:{start:{line:56,column:24},end:{line:59,column:11}},line:56},2:{name:"(anonymous_2)",decl:{start:{line:81,column:23},end:{line:81,column:24}},loc:{start:{line:81,column:29},end:{line:83,column:15}},line:81},3:{name:"(anonymous_3)",decl:{start:{line:88,column:23},end:{line:88,column:24}},loc:{start:{line:88,column:29},end:{line:90,column:15}},line:88},4:{name:"(anonymous_4)",decl:{start:{line:95,column:23},end:{line:95,column:24}},loc:{start:{line:95,column:29},end:{line:100,column:15}},line:95},5:{name:"(anonymous_5)",decl:{start:{line:105,column:23},end:{line:105,column:24}},loc:{start:{line:105,column:29},end:{line:107,column:15}},line:105},6:{name:"(anonymous_6)",decl:{start:{line:114,column:2},end:{line:114,column:3}},loc:{start:{line:114,column:12},end:{line:126,column:3}},line:114},7:{name:"(anonymous_7)",decl:{start:{line:115,column:65},end:{line:115,column:66}},loc:{start:{line:115,column:79},end:{line:117,column:5}},line:115},8:{name:"(anonymous_8)",decl:{start:{line:128,column:4},end:{line:128,column:5}},loc:{start:{line:128,column:25},end:{line:130,column:5}},line:128},9:{name:"(anonymous_9)",decl:{start:{line:131,column:4},end:{line:131,column:5}},loc:{start:{line:131,column:24},end:{line:151,column:5}},line:131},10:{name:"(anonymous_10)",decl:{start:{line:153,column:4},end:{line:153,column:5}},loc:{start:{line:153,column:28},end:{line:162,column:5}},line:153},11:{name:"(anonymous_11)",decl:{start:{line:159,column:21},end:{line:159,column:22}},loc:{start:{line:159,column:27},end:{line:161,column:7}},line:159},12:{name:"(anonymous_12)",decl:{start:{line:164,column:4},end:{line:164,column:5}},loc:{start:{line:164,column:26},end:{line:213,column:5}},line:164},13:{name:"(anonymous_13)",decl:{start:{line:215,column:4},end:{line:215,column:5}},loc:{start:{line:215,column:26},end:{line:237,column:5}},line:215},14:{name:"(anonymous_14)",decl:{start:{line:235,column:17},end:{line:235,column:18}},loc:{start:{line:235,column:26},end:{line:235,column:28}},line:235},15:{name:"(anonymous_15)",decl:{start:{line:239,column:4},end:{line:239,column:5}},loc:{start:{line:239,column:22},end:{line:299,column:5}},line:239},16:{name:"(anonymous_16)",decl:{start:{line:246,column:10},end:{line:246,column:11}},loc:{start:{line:246,column:22},end:{line:249,column:11}},line:246},17:{name:"(anonymous_17)",decl:{start:{line:250,column:10},end:{line:250,column:11}},loc:{start:{line:250,column:21},end:{line:252,column:11}},line:250},18:{name:"(anonymous_18)",decl:{start:{line:255,column:10},end:{line:255,column:11}},loc:{start:{line:255,column:23},end:{line:294,column:11}},line:255},19:{name:"(anonymous_19)",decl:{start:{line:256,column:34},end:{line:256,column:35}},loc:{start:{line:256,column:49},end:{line:291,column:13}},line:256},20:{name:"(anonymous_20)",decl:{start:{line:295,column:10},end:{line:295,column:11}},loc:{start:{line:295,column:21},end:{line:297,column:11}},line:295},21:{name:"(anonymous_21)",decl:{start:{line:301,column:4},end:{line:301,column:5}},loc:{start:{line:301,column:22},end:{line:309,column:5}},line:301},22:{name:"(anonymous_22)",decl:{start:{line:311,column:4},end:{line:311,column:5}},loc:{start:{line:311,column:15},end:{line:313,column:5}},line:311},23:{name:"(anonymous_23)",decl:{start:{line:319,column:4},end:{line:319,column:5}},loc:{start:{line:319,column:48},end:{line:379,column:5}},line:319},24:{name:"(anonymous_24)",decl:{start:{line:324,column:8},end:{line:324,column:9}},loc:{start:{line:324,column:22},end:{line:374,column:9}},line:324},25:{name:"(anonymous_25)",decl:{start:{line:366,column:14},end:{line:366,column:15}},loc:{start:{line:366,column:28},end:{line:368,column:15}},line:366},26:{name:"(anonymous_26)",decl:{start:{line:369,column:14},end:{line:369,column:15}},loc:{start:{line:369,column:25},end:{line:371,column:15}},line:369},27:{name:"(anonymous_27)",decl:{start:{line:375,column:8},end:{line:375,column:9}},loc:{start:{line:375,column:19},end:{line:377,column:9}},line:375},28:{name:"(anonymous_28)",decl:{start:{line:381,column:4},end:{line:381,column:5}},loc:{start:{line:381,column:23},end:{line:438,column:5}},line:381},29:{name:"(anonymous_29)",decl:{start:{line:431,column:8},end:{line:431,column:9}},loc:{start:{line:431,column:22},end:{line:433,column:9}},line:431},30:{name:"(anonymous_30)",decl:{start:{line:434,column:8},end:{line:434,column:9}},loc:{start:{line:434,column:19},end:{line:436,column:9}},line:434},31:{name:"(anonymous_31)",decl:{start:{line:440,column:4},end:{line:440,column:5}},loc:{start:{line:440,column:25},end:{line:444,column:5}},line:440},32:{name:"(anonymous_32)",decl:{start:{line:446,column:4},end:{line:446,column:5}},loc:{start:{line:446,column:43},end:{line:491,column:5}},line:446},33:{name:"(anonymous_33)",decl:{start:{line:493,column:4},end:{line:493,column:5}},loc:{start:{line:493,column:53},end:{line:502,column:5}},line:493}},branchMap:{0:{loc:{start:{line:120,column:4},end:{line:125,column:5}},type:"if",locations:[{start:{line:120,column:4},end:{line:125,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:120},1:{loc:{start:{line:120,column:8},end:{line:120,column:62}},type:"binary-expr",locations:[{start:{line:120,column:8},end:{line:120,column:33}},{start:{line:120,column:37},end:{line:120,column:62}}],line:120},2:{loc:{start:{line:142,column:6},end:{line:144,column:7}},type:"if",locations:[{start:{line:142,column:6},end:{line:144,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:142},3:{loc:{start:{line:165,column:6},end:{line:170,column:7}},type:"if",locations:[{start:{line:165,column:6},end:{line:170,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:165},4:{loc:{start:{line:166,column:8},end:{line:167,column:66}},type:"binary-expr",locations:[{start:{line:166,column:8},end:{line:166,column:52}},{start:{line:167,column:8},end:{line:167,column:66}}],line:166},5:{loc:{start:{line:171,column:6},end:{line:173,column:7}},type:"if",locations:[{start:{line:171,column:6},end:{line:173,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:171},6:{loc:{start:{line:177,column:6},end:{line:212,column:7}},type:"if",locations:[{start:{line:177,column:6},end:{line:212,column:7}},{start:{line:210,column:13},end:{line:212,column:7}}],line:177},7:{loc:{start:{line:179,column:8},end:{line:209,column:9}},type:"if",locations:[{start:{line:179,column:8},end:{line:209,column:9}},{start:{line:193,column:15},end:{line:209,column:9}}],line:179},8:{loc:{start:{line:180,column:10},end:{line:181,column:36}},type:"binary-expr",locations:[{start:{line:180,column:11},end:{line:180,column:34}},{start:{line:180,column:38},end:{line:180,column:60}},{start:{line:181,column:10},end:{line:181,column:36}}],line:180},9:{loc:{start:{line:184,column:10},end:{line:186,column:11}},type:"if",locations:[{start:{line:184,column:10},end:{line:186,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:184},10:{loc:{start:{line:194,column:10},end:{line:208,column:11}},type:"if",locations:[{start:{line:194,column:10},end:{line:208,column:11}},{start:{line:196,column:17},end:{line:208,column:11}}],line:194},11:{loc:{start:{line:196,column:17},end:{line:208,column:11}},type:"if",locations:[{start:{line:196,column:17},end:{line:208,column:11}},{start:{line:198,column:17},end:{line:208,column:11}}],line:196},12:{loc:{start:{line:198,column:17},end:{line:208,column:11}},type:"if",locations:[{start:{line:198,column:17},end:{line:208,column:11}},{start:{line:200,column:17},end:{line:208,column:11}}],line:198},13:{loc:{start:{line:200,column:17},end:{line:208,column:11}},type:"if",locations:[{start:{line:200,column:17},end:{line:208,column:11}},{start:{line:202,column:17},end:{line:208,column:11}}],line:200},14:{loc:{start:{line:202,column:17},end:{line:208,column:11}},type:"if",locations:[{start:{line:202,column:17},end:{line:208,column:11}},{start:{line:204,column:17},end:{line:208,column:11}}],line:202},15:{loc:{start:{line:204,column:17},end:{line:208,column:11}},type:"if",locations:[{start:{line:204,column:17},end:{line:208,column:11}},{start:{line:206,column:17},end:{line:208,column:11}}],line:204},16:{loc:{start:{line:216,column:6},end:{line:236,column:7}},type:"if",locations:[{start:{line:216,column:6},end:{line:236,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:216},17:{loc:{start:{line:217,column:8},end:{line:218,column:45}},type:"binary-expr",locations:[{start:{line:217,column:8},end:{line:217,column:44}},{start:{line:218,column:8},end:{line:218,column:45}}],line:217},18:{loc:{start:{line:223,column:8},end:{line:225,column:9}},type:"if",locations:[{start:{line:223,column:8},end:{line:225,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:223},19:{loc:{start:{line:257,column:14},end:{line:257,column:73}},type:"if",locations:[{start:{line:257,column:14},end:{line:257,column:73}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:257},20:{loc:{start:{line:258,column:14},end:{line:290,column:15}},type:"if",locations:[{start:{line:258,column:14},end:{line:290,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:258},21:{loc:{start:{line:259,column:16},end:{line:260,column:38}},type:"binary-expr",locations:[{start:{line:259,column:16},end:{line:259,column:60}},{start:{line:260,column:16},end:{line:260,column:38}}],line:259},22:{loc:{start:{line:265,column:16},end:{line:270,column:17}},type:"if",locations:[{start:{line:265,column:16},end:{line:270,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:265},23:{loc:{start:{line:266,column:18},end:{line:267,column:55}},type:"binary-expr",locations:[{start:{line:266,column:18},end:{line:266,column:50}},{start:{line:267,column:18},end:{line:267,column:55}}],line:266},24:{loc:{start:{line:271,column:16},end:{line:273,column:17}},type:"if",locations:[{start:{line:271,column:16},end:{line:273,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:271},25:{loc:{start:{line:274,column:16},end:{line:276,column:17}},type:"if",locations:[{start:{line:274,column:16},end:{line:276,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:274},26:{loc:{start:{line:327,column:10},end:{line:373,column:11}},type:"if",locations:[{start:{line:327,column:10},end:{line:373,column:11}},{start:{line:329,column:17},end:{line:373,column:11}}],line:327},27:{loc:{start:{line:331,column:12},end:{line:363,column:13}},type:"if",locations:[{start:{line:331,column:12},end:{line:363,column:13}},{start:{line:347,column:19},end:{line:363,column:13}}],line:331},28:{loc:{start:{line:332,column:14},end:{line:346,column:15}},type:"if",locations:[{start:{line:332,column:14},end:{line:346,column:15}},{start:{line:339,column:21},end:{line:346,column:15}}],line:332},29:{loc:{start:{line:348,column:14},end:{line:362,column:15}},type:"if",locations:[{start:{line:348,column:14},end:{line:362,column:15}},{start:{line:355,column:21},end:{line:362,column:15}}],line:348},30:{loc:{start:{line:386,column:6},end:{line:428,column:7}},type:"if",locations:[{start:{line:386,column:6},end:{line:428,column:7}},{start:{line:407,column:13},end:{line:428,column:7}}],line:386},31:{loc:{start:{line:387,column:8},end:{line:406,column:9}},type:"if",locations:[{start:{line:387,column:8},end:{line:406,column:9}},{start:{line:394,column:15},end:{line:406,column:9}}],line:387},32:{loc:{start:{line:408,column:8},end:{line:427,column:9}},type:"if",locations:[{start:{line:408,column:8},end:{line:427,column:9}},{start:{line:415,column:15},end:{line:427,column:9}}],line:408},33:{loc:{start:{line:448,column:6},end:{line:489,column:7}},type:"if",locations:[{start:{line:448,column:6},end:{line:489,column:7}},{start:{line:486,column:13},end:{line:489,column:7}}],line:448},34:{loc:{start:{line:451,column:8},end:{line:469,column:9}},type:"if",locations:[{start:{line:451,column:8},end:{line:469,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:451},35:{loc:{start:{line:457,column:12},end:{line:463,column:13}},type:"if",locations:[{start:{line:457,column:12},end:{line:463,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:457},36:{loc:{start:{line:458,column:14},end:{line:460,column:37}},type:"binary-expr",locations:[{start:{line:458,column:14},end:{line:458,column:50}},{start:{line:459,column:14},end:{line:459,column:37}},{start:{line:460,column:14},end:{line:460,column:37}}],line:458},37:{loc:{start:{line:465,column:12},end:{line:467,column:13}},type:"if",locations:[{start:{line:465,column:12},end:{line:467,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:465},38:{loc:{start:{line:471,column:8},end:{line:473,column:9}},type:"if",locations:[{start:{line:471,column:8},end:{line:473,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:471},39:{loc:{start:{line:476,column:8},end:{line:484,column:9}},type:"if",locations:[{start:{line:476,column:8},end:{line:484,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:476},40:{loc:{start:{line:478,column:10},end:{line:483,column:11}},type:"if",locations:[{start:{line:478,column:10},end:{line:483,column:11}},{start:{line:481,column:17},end:{line:483,column:11}}],line:478},41:{loc:{start:{line:493,column:33},end:{line:493,column:51}},type:"default-arg",locations:[{start:{line:493,column:46},end:{line:493,column:51}}],line:493},42:{loc:{start:{line:495,column:6},end:{line:498,column:7}},type:"if",locations:[{start:{line:495,column:6},end:{line:498,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:495},43:{loc:{start:{line:495,column:10},end:{line:495,column:47}},type:"binary-expr",locations:[{start:{line:495,column:10},end:{line:495,column:23}},{start:{line:495,column:27},end:{line:495,column:47}}],line:495},44:{loc:{start:{line:499,column:6},end:{line:501,column:7}},type:"if",locations:[{start:{line:499,column:6},end:{line:501,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:499}},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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0],42:[0,0],43:[0,0],44:[0,0]},inputSourceMap:{version:3,sources:["CommandSender.vue"],names:[],mappings:";AAwNA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;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;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA",file:"CommandSender.vue",sourceRoot:"src/tools/CommandSender",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n--\x3e\n\n<template>\n <div>\n <top-bar :menus=\"menus\" :title=\"title\" />\n\n <target-packet-item-chooser\n :initial-target-name=\"this.$route.params.target\"\n :initial-packet-name=\"this.$route.params.packet\"\n @on-set=\"commandChanged($event)\"\n @click=\"buildCmd($event)\"\n :disabled=\"sendDisabled\"\n button-text=\"Send\"\n mode=\"cmd\"\n />\n\n <v-card v-if=\"rows.length !== 0\">\n <v-card-title>\n Parameters\n <v-spacer />\n <v-text-field\n v-model=\"search\"\n append-icon=\"mdi-magnify\"\n label=\"Search\"\n single-line\n hide-details\n />\n </v-card-title>\n <v-data-table\n :headers=\"headers\"\n :items=\"rows\"\n :search=\"search\"\n calculate-widths\n disable-pagination\n hide-default-footer\n multi-sort\n dense\n @contextmenu:row=\"showContextMenu\"\n >\n <template v-slot:item.val_and_states=\"{ item }\">\n <command-parameter-editor\n v-model=\"item.val_and_states\"\n :states-in-hex=\"statesInHex\"\n />\n </template>\n </v-data-table>\n </v-card>\n <div class=\"ma-3\">Status: {{ status }}</div>\n <div class=\"mt-3\">\n Command History: (Pressing Enter on the line re-executes the command)\n </div>\n <v-textarea\n ref=\"history\"\n :value=\"history\"\n solo\n dense\n hide-details\n data-test=\"sender-history\"\n @keydown.enter=\"historyEnter($event)\"\n :background-color=\"getBackgroundColor()\"\n />\n\n <v-menu\n v-model=\"contextMenuShown\"\n :position-x=\"x\"\n :position-y=\"y\"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for=\"(item, index) in contextMenuOptions\"\n :key=\"index\"\n @click.stop=\"item.action\"\n >\n <v-list-item-title>{{ item.title }}</v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n <details-dialog\n :target-name=\"targetName\"\n :packet-name=\"commandName\"\n :item-name=\"parameterName\"\n :type=\"'cmd'\"\n v-model=\"viewDetails\"\n />\n\n <v-dialog v-model=\"displayErrorDialog\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Error </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <v-card-text>\n <span v-text=\"status\" />\n </v-card-text>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn\n @click=\"displayErrorDialog = false\"\n color=\"primary\"\n data-test=\"error-dialog-ok\"\n >\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n\n <v-dialog v-model=\"displaySendHazardous\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Hazardous Warning </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <span>\n Warning: Command {{ targetName }} {{ commandName }} is\n Hazardous. Send?\n </span>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn\n @click=\"cancelHazardousCmd\"\n outlined\n data-test=\"send-hazardous-no\"\n >\n No\n </v-btn>\n <v-btn\n @click=\"sendHazardousCmd\"\n class=\"primary mx-1\"\n data-test=\"send-hazardous-yes\"\n >\n Yes\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n\n <v-dialog v-model=\"displaySendRaw\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Send Raw </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <v-col>Interface:</v-col>\n <v-col>\n <v-select\n solo\n hide-details\n dense\n :items=\"interfaces\"\n item-text=\"label\"\n item-value=\"value\"\n v-model=\"selectedInterface\"\n />\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col>Filename:</v-col>\n <v-col>\n <input type=\"file\" @change=\"selectRawCmdFile($event)\" />\n </v-col>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn @click=\"cancelRawCmd\" outlined data-test=\"raw-cancel\">\n Cancel\n </v-btn>\n <v-btn @click=\"sendRawCmd\" class=\"primary\" data-test=\"raw-ok\">\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport Api from '@openc3/tool-common/src/services/api'\nimport TargetPacketItemChooser from '@openc3/tool-common/src/components/TargetPacketItemChooser'\nimport CommandParameterEditor from '@/tools/CommandSender/CommandParameterEditor'\nimport Utilities from '@/tools/CommandSender/utilities'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\nimport DetailsDialog from '@openc3/tool-common/src/components/DetailsDialog'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport 'sprintf-js'\n\nexport default {\n mixins: [Utilities],\n components: {\n DetailsDialog,\n TargetPacketItemChooser,\n CommandParameterEditor,\n TopBar,\n },\n data() {\n return {\n title: '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: 'Description', value: 'description' },\n ],\n targetName: '',\n commandName: '',\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 displaySendHazardous: false,\n displayErrorDialog: false,\n displaySendRaw: false,\n sendDisabled: false,\n api: null,\n viewDetails: false,\n contextMenuShown: false,\n parameterName: '',\n reservedItemNames: [],\n x: 0,\n y: 0,\n contextMenuOptions: [\n {\n title: 'Details',\n action: () => {\n this.contextMenuShown = false\n this.viewDetails = true\n },\n },\n ],\n menus: [\n // TODO: Implement send raw\n // {\n // label: 'File',\n // items: [\n // {\n // label: 'Send Raw',\n // command: () => {\n // this.setupRawCmd()\n // }\n // }\n // ]\n // },\n {\n label: 'Mode',\n items: [\n {\n label: 'Ignore Range Checks',\n checkbox: true,\n command: () => {\n this.ignoreRangeChecks = !this.ignoreRangeChecks\n },\n },\n {\n label: 'Display State Values in Hex',\n checkbox: true,\n command: () => {\n this.statesInHex = !this.statesInHex\n },\n },\n {\n label: 'Show Ignored Parameters',\n checkbox: true,\n command: () => {\n this.showIgnoredParams = !this.showIgnoredParams\n // TODO: Maybe we don't need to do this if the data-table\n // can render the whole thing and we just display with v-if\n this.updateCmdParams()\n },\n },\n {\n label: 'Disable Parameter Conversions',\n checkbox: true,\n command: () => {\n this.cmdRaw = !this.cmdRaw\n },\n },\n ],\n },\n ],\n }\n },\n created() {\n Api.get(`/openc3-api/autocomplete/reserved-item-names`).then((response) => {\n this.reservedItemNames = response.data\n })\n this.api = new OpenC3Api()\n // If we're passed in the route then manually call commandChanged to update\n if (this.$route.params.target && this.$route.params.packet) {\n this.commandChanged({\n targetName: this.$route.params.target.toUpperCase(),\n packetName: this.$route.params.packet.toUpperCase(),\n })\n }\n },\n methods: {\n getBackgroundColor() {\n return this.$vuetify.theme.parsedTheme.tertiary.darken2\n },\n historyEnter(event) {\n // Prevent the enter key from actually causing a newline\n event.preventDefault()\n const textarea = this.$refs.history.$refs.input\n let pos = textarea.selectionStart\n // Find the newline after the cursor position\n let nextNewline = textarea.value.indexOf('\\n', pos)\n // Get everything up to the next newline and split on newlines\n const lines = textarea.value.substr(0, nextNewline).split('\\n')\n let command = lines[lines.length - 1]\n // Blank commands can happen if typing return on a blank line\n if (command === '') {\n return\n }\n\n // Remove the cmd(\"\") wrapper\n let firstQuote = command.indexOf('\"')\n let lastQuote = command.lastIndexOf('\"')\n command = command.substr(firstQuote + 1, lastQuote - firstQuote - 1)\n this.sendCmd(command)\n },\n\n showContextMenu(e, row) {\n e.preventDefault()\n this.parameterName = row.item.parameter_name\n this.contextMenuShown = false\n this.x = e.clientX\n this.y = e.clientY\n this.$nextTick(() => {\n this.contextMenuShown = true\n })\n },\n\n convertToValue(param) {\n if (\n param.val_and_states.selected_state !== null &&\n param.val_and_states.selected_state !== 'MANUALLY ENTERED'\n ) {\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 if (\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 this.rows.push({\n parameter_name: parameter.name,\n val_and_states: {\n val: val,\n states: parameter.states,\n selected_state: null,\n selected_state_label: '',\n manual_value: null,\n },\n description: parameter.description,\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 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 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 const paramList = this.createParamList()\n let obs = ''\n let cmd = ''\n if (this.cmdRaw) {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_raw_no_checks'\n obs = this.api.cmd_raw_no_checks(\n this.targetName,\n this.commandName,\n paramList\n )\n } else {\n cmd = 'cmd_raw_no_hazardous_check'\n obs = this.api.cmd_raw_no_hazardous_check(\n this.targetName,\n this.commandName,\n paramList,\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_checks'\n obs = this.api.cmd_no_checks(\n this.targetName,\n this.commandName,\n paramList\n )\n } else {\n cmd = 'cmd_no_hazardous_check'\n obs = this.api.cmd_no_hazardous_check(\n this.targetName,\n this.commandName,\n paramList,\n {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n }\n )\n }\n }\n\n obs.then(\n (response) => {\n this.processCmdResponse(cmd, response)\n },\n (error) => {\n this.processCmdResponse(false, error)\n }\n )\n },\n\n cancelHazardousCmd() {\n this.displaySendHazardous = false\n this.status = 'Hazardous command not sent'\n this.sendDisabled = false\n },\n\n processCmdResponse(cmd_sent, response) {\n var msg = ''\n if (cmd_sent) {\n msg = `${cmd_sent}(\"${response[0]} ${response[1]}`\n var keys = Object.keys(response[2])\n if (keys.length > 0) {\n msg += ' with '\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i]\n var value = this.convertToString(response[2][key])\n // If the response has unquoted string data we add quotes\n if (\n typeof response[2][key] === 'string' &&\n value.charAt(0) !== \"'\" &&\n value.charAt(0) !== '\"'\n ) {\n value = `'${value}'`\n }\n msg += key + ' ' + value\n if (i < keys.length - 1) {\n msg += ', '\n }\n }\n }\n msg += '\")'\n if (!this.history.includes(msg)) {\n this.history += msg + '\\n'\n }\n msg += ' sent.'\n // Add the number of commands sent to the status message\n if (this.status.includes(msg)) {\n let parts = this.status.split('sent.')\n if (parts[1].includes('(')) {\n let num = parseInt(parts[1].substr(2, parts[1].indexOf(')') - 2))\n msg = parts[0] + 'sent. (' + (num + 1) + ')'\n } else {\n msg += ' (2)'\n }\n }\n this.status = msg\n } else {\n var context = 'sending ' + this.targetName + ' ' + this.commandName\n this.displayError(context, response, true)\n }\n this.sendDisabled = false\n },\n\n displayError(context, error, showDialog = false) {\n this.status = `Error ${context} due to ${error.name}`\n if (error.message && error.message !== '') {\n this.status += ': '\n this.status += error.message\n }\n if (showDialog) {\n this.displayErrorDialog = true\n }\n },\n\n // setupRawCmd() {\n // this.api.get_interface_names().then(\n // (response) => {\n // var interfaces = []\n // for (var i = 0; i < response.length; i++) {\n // interfaces.push({ label: response[i], value: response[i] })\n // }\n // this.interfaces = interfaces\n // this.selectedInterface = interfaces[0].value\n // this.displaySendRaw = true\n // },\n // (error) => {\n // this.displaySendRaw = false\n // this.displayError('getting interface names', error, true)\n // }\n // )\n // },\n\n // selectRawCmdFile(event) {\n // this.rawCmdFile = event.target.files[0]\n // },\n\n // onLoad(event) {\n // var bufView = new Uint8Array(event.target.result)\n // var jstr = { json_class: 'String', raw: [] }\n // for (var i = 0; i < bufView.length; i++) {\n // jstr.raw.push(bufView[i])\n // }\n\n // this.api.send_raw(this.selectedInterface, jstr).then(\n // () => {\n // this.displaySendRaw = false\n // this.status =\n // 'Sent ' +\n // bufView.length +\n // ' bytes to interface ' +\n // this.selectedInterface\n // },\n // (error) => {\n // this.displaySendRaw = false\n // this.displayError('sending raw data', error, true)\n // }\n // )\n // },\n\n // sendRawCmd() {\n // var self = this\n // var reader = new FileReader()\n // reader.onload = function (e) {\n // self.onLoad(e)\n // }\n // reader.onerror = function (e) {\n // self.displaySendRaw = false\n // var target = e.target\n // self.displayError('sending raw data', target.error, true)\n // }\n // // TBD - use the other event handlers to implement a progress bar for the\n // // file upload. Handle abort as well?\n // //reader.onloadstart = function(e) {}\n // //reader.onprogress = function(e) {}\n // //reader.onloadend = function(e) {}\n // //reader.onabort = function(e) {}\n\n // reader.readAsArrayBuffer(this.rawCmdFile)\n // },\n\n // cancelRawCmd() {\n // this.displaySendRaw = false\n // this.status = 'Raw command not sent'\n // },\n },\n}\n<\/script>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"39a0be59d800e01f462ce6f1d7e03b4488cd609b"},a=t[l]||(t[l]={});a[e]&&a[e].hash===n||(a[e]=o);var s=a[e];return cov_1weo8er85e=function(){return s},s}cov_1weo8er85e(),__webpack_exports__["Z"]={mixins:[_tools_CommandSender_utilities__WEBPACK_IMPORTED_MODULE_20__.Z],components:{DetailsDialog:_openc3_tool_common_src_components_DetailsDialog__WEBPACK_IMPORTED_MODULE_22__.Z,TargetPacketItemChooser:_openc3_tool_common_src_components_TargetPacketItemChooser__WEBPACK_IMPORTED_MODULE_18__.Z,CommandParameterEditor:_tools_CommandSender_CommandParameterEditor__WEBPACK_IMPORTED_MODULE_19__.Z,TopBar:_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_23__.Z},data:function(){var e=this;return cov_1weo8er85e().f[0]++,cov_1weo8er85e().s[0]++,{title:"Command Sender",search:"",headers:[{text:"Name",value:"parameter_name"},{text:"Value or State",value:"val_and_states"},{text:"Units",value:"units"},{text:"Description",value:"description"}],targetName:"",commandName:"",ignoreRangeChecks:!1,statesInHex:!1,showIgnoredParams:!1,cmdRaw:!1,ignoredParams:[],rows:[],interfaces:[],selectedInterface:"",rawCmdFile:null,status:"",history:"",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_1weo8er85e().f[1]++,cov_1weo8er85e().s[1]++,e.contextMenuShown=!1,cov_1weo8er85e().s[2]++,e.viewDetails=!0}}],menus:[{label:"Mode",items:[{label:"Ignore Range Checks",checkbox:!0,command:function(){cov_1weo8er85e().f[2]++,cov_1weo8er85e().s[3]++,e.ignoreRangeChecks=!e.ignoreRangeChecks}},{label:"Display State Values in Hex",checkbox:!0,command:function(){cov_1weo8er85e().f[3]++,cov_1weo8er85e().s[4]++,e.statesInHex=!e.statesInHex}},{label:"Show Ignored Parameters",checkbox:!0,command:function(){cov_1weo8er85e().f[4]++,cov_1weo8er85e().s[5]++,e.showIgnoredParams=!e.showIgnoredParams,cov_1weo8er85e().s[6]++,e.updateCmdParams()}},{label:"Disable Parameter Conversions",checkbox:!0,command:function(){cov_1weo8er85e().f[5]++,cov_1weo8er85e().s[7]++,e.cmdRaw=!e.cmdRaw}}]}]}},created:function(){var e=this;cov_1weo8er85e().f[6]++,cov_1weo8er85e().s[8]++,_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_17__.Z.get("/openc3-api/autocomplete/reserved-item-names").then((function(n){cov_1weo8er85e().f[7]++,cov_1weo8er85e().s[9]++,e.reservedItemNames=n.data})),cov_1weo8er85e().s[10]++,this.api=new _openc3_tool_common_src_services_openc3_api__WEBPACK_IMPORTED_MODULE_21__.k,cov_1weo8er85e().s[11]++,cov_1weo8er85e().b[1][0]++,this.$route.params.target&&(cov_1weo8er85e().b[1][1]++,this.$route.params.packet)?(cov_1weo8er85e().b[0][0]++,cov_1weo8er85e().s[12]++,this.commandChanged({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase()})):cov_1weo8er85e().b[0][1]++},methods:{getBackgroundColor:function(){return cov_1weo8er85e().f[8]++,cov_1weo8er85e().s[13]++,this.$vuetify.theme.parsedTheme.tertiary.darken2},historyEnter:function(e){cov_1weo8er85e().f[9]++,cov_1weo8er85e().s[14]++,e.preventDefault();var n=(cov_1weo8er85e().s[15]++,this.$refs.history.$refs.input),t=(cov_1weo8er85e().s[16]++,n.selectionStart),l=(cov_1weo8er85e().s[17]++,n.value.indexOf("\n",t)),o=(cov_1weo8er85e().s[18]++,n.value.substr(0,l).split("\n")),a=(cov_1weo8er85e().s[19]++,o[o.length-1]);if(cov_1weo8er85e().s[20]++,""===a)return cov_1weo8er85e().b[2][0]++,void cov_1weo8er85e().s[21]++;cov_1weo8er85e().b[2][1]++;var s=(cov_1weo8er85e().s[22]++,a.indexOf('"')),i=(cov_1weo8er85e().s[23]++,a.lastIndexOf('"'));cov_1weo8er85e().s[24]++,a=a.substr(s+1,i-s-1),cov_1weo8er85e().s[25]++,this.sendCmd(a)},showContextMenu:function(e,n){var t=this;cov_1weo8er85e().f[10]++,cov_1weo8er85e().s[26]++,e.preventDefault(),cov_1weo8er85e().s[27]++,this.parameterName=n.item.parameter_name,cov_1weo8er85e().s[28]++,this.contextMenuShown=!1,cov_1weo8er85e().s[29]++,this.x=e.clientX,cov_1weo8er85e().s[30]++,this.y=e.clientY,cov_1weo8er85e().s[31]++,this.$nextTick((function(){cov_1weo8er85e().f[11]++,cov_1weo8er85e().s[32]++,t.contextMenuShown=!0}))},convertToValue:function convertToValue(param){if(cov_1weo8er85e().f[12]++,cov_1weo8er85e().s[33]++,cov_1weo8er85e().b[4][0]++,null!==param.val_and_states.selected_state&&(cov_1weo8er85e().b[4][1]++,"MANUALLY ENTERED"!==param.val_and_states.selected_state))return cov_1weo8er85e().b[3][0]++,cov_1weo8er85e().s[34]++,param.val_and_states.selected_state_label;if(cov_1weo8er85e().b[3][1]++,cov_1weo8er85e().s[35]++,"string"!==typeof param.val_and_states.val)return cov_1weo8er85e().b[5][0]++,cov_1weo8er85e().s[36]++,param.val_and_states.val;cov_1weo8er85e().b[5][1]++;var str=(cov_1weo8er85e().s[37]++,param.val_and_states.val),quotesRemoved=(cov_1weo8er85e().s[38]++,this.removeQuotes(str));if(cov_1weo8er85e().s[39]++,str===quotesRemoved){cov_1weo8er85e().b[6][0]++;var upcaseStr=(cov_1weo8er85e().s[40]++,str.toUpperCase());if(cov_1weo8er85e().s[41]++,cov_1weo8er85e().b[8][0]++,"STRING"!==param.type&&(cov_1weo8er85e().b[8][1]++,"BLOCK"!==param.type)||(cov_1weo8er85e().b[8][2]++,!upcaseStr.startsWith("0X")))return cov_1weo8er85e().b[7][1]++,cov_1weo8er85e().s[51]++,"INFINITY"===upcaseStr?(cov_1weo8er85e().b[10][0]++,cov_1weo8er85e().s[52]++,1/0):(cov_1weo8er85e().b[10][1]++,cov_1weo8er85e().s[53]++,"-INFINITY"===upcaseStr?(cov_1weo8er85e().b[11][0]++,cov_1weo8er85e().s[54]++,-1/0):(cov_1weo8er85e().b[11][1]++,cov_1weo8er85e().s[55]++,"NAN"===upcaseStr?(cov_1weo8er85e().b[12][0]++,cov_1weo8er85e().s[56]++,NaN):(cov_1weo8er85e().b[12][1]++,cov_1weo8er85e().s[57]++,this.isFloat(str)?(cov_1weo8er85e().b[13][0]++,cov_1weo8er85e().s[58]++,parseFloat(str)):(cov_1weo8er85e().b[13][1]++,cov_1weo8er85e().s[59]++,this.isInt(str)?(cov_1weo8er85e().b[14][0]++,cov_1weo8er85e().s[60]++,parseInt(str)):(cov_1weo8er85e().b[14][1]++,cov_1weo8er85e().s[61]++,this.isArray(str)?(cov_1weo8er85e().b[15][0]++,cov_1weo8er85e().s[62]++,eval(str)):(cov_1weo8er85e().b[15][1]++,cov_1weo8er85e().s[63]++,str))))));cov_1weo8er85e().b[7][0]++;var hexStr=(cov_1weo8er85e().s[42]++,upcaseStr.slice(2));cov_1weo8er85e().s[43]++,hexStr.length%2!==0?(cov_1weo8er85e().b[9][0]++,cov_1weo8er85e().s[44]++,hexStr="0"+hexStr):cov_1weo8er85e().b[9][1]++;var jstr=(cov_1weo8er85e().s[45]++,{json_class:"String",raw:[]});cov_1weo8er85e().s[46]++;for(var i=(cov_1weo8er85e().s[47]++,0);i<hexStr.length;i+=2){var nibble=(cov_1weo8er85e().s[48]++,hexStr.charAt(i)+hexStr.charAt(i+1));cov_1weo8er85e().s[49]++,jstr.raw.push(parseInt(nibble,16))}return cov_1weo8er85e().s[50]++,jstr}return cov_1weo8er85e().b[6][1]++,cov_1weo8er85e().s[64]++,quotesRemoved},commandChanged:function(e){cov_1weo8er85e().f[13]++,cov_1weo8er85e().s[65]++,cov_1weo8er85e().b[17][0]++,this.targetName!==e.targetName||(cov_1weo8er85e().b[17][1]++,this.commandName!==e.packetName)?(cov_1weo8er85e().b[16][0]++,cov_1weo8er85e().s[66]++,this.targetName=e.targetName,cov_1weo8er85e().s[67]++,this.commandName=e.packetName,cov_1weo8er85e().s[68]++,!1===this.sendDisabled?(cov_1weo8er85e().b[18][0]++,cov_1weo8er85e().s[69]++,this.updateCmdParams()):cov_1weo8er85e().b[18][1]++,cov_1weo8er85e().s[70]++,this.$router.replace({name:"CommandSender",params:{target:this.targetName,packet:this.commandName}}).catch((function(e){cov_1weo8er85e().f[14]++}))):cov_1weo8er85e().b[16][1]++},updateCmdParams:function(){var e=this;cov_1weo8er85e().f[15]++,cov_1weo8er85e().s[71]++,this.sendDisabled=!0,cov_1weo8er85e().s[72]++,this.ignoredParams=[],cov_1weo8er85e().s[73]++,this.rows=[],cov_1weo8er85e().s[74]++,this.api.get_target(this.targetName).then((function(n){return cov_1weo8er85e().f[16]++,cov_1weo8er85e().s[75]++,e.ignoredParams=n.ignored_parameters,cov_1weo8er85e().s[76]++,e.api.get_command(e.targetName,e.commandName)}),(function(n){cov_1weo8er85e().f[17]++,cov_1weo8er85e().s[77]++,e.displayError("getting ignored parameters",n)})).then((function(n){cov_1weo8er85e().f[18]++,cov_1weo8er85e().s[78]++,n.items.forEach((function(n){if(cov_1weo8er85e().f[19]++,cov_1weo8er85e().s[79]++,e.reservedItemNames.includes(n.name))return cov_1weo8er85e().b[19][0]++,void cov_1weo8er85e().s[80]++;if(cov_1weo8er85e().b[19][1]++,cov_1weo8er85e().s[81]++,cov_1weo8er85e().b[21][0]++,!e.ignoredParams.includes(n.name)||(cov_1weo8er85e().b[21][1]++,e.showIgnoredParams)){cov_1weo8er85e().b[20][0]++;var t=(cov_1weo8er85e().s[82]++,n.default);cov_1weo8er85e().s[83]++,cov_1weo8er85e().b[23][0]++,"STRING"===n.data_type&&(cov_1weo8er85e().b[23][1]++,"string"===typeof n.default)?(cov_1weo8er85e().b[22][0]++,cov_1weo8er85e().s[84]++,t="'".concat(t,"'")):cov_1weo8er85e().b[22][1]++,cov_1weo8er85e().s[85]++,n.required?(cov_1weo8er85e().b[24][0]++,cov_1weo8er85e().s[86]++,t=""):cov_1weo8er85e().b[24][1]++,cov_1weo8er85e().s[87]++,n.format_string?(cov_1weo8er85e().b[25][0]++,cov_1weo8er85e().s[88]++,t=sprintf(n.format_string,n.default)):cov_1weo8er85e().b[25][1]++,cov_1weo8er85e().s[89]++,e.rows.push({parameter_name:n.name,val_and_states:{val:t,states:n.states,selected_state:null,selected_state_label:"",manual_value:null},description:n.description,units:n.units,type:n.data_type})}else cov_1weo8er85e().b[20][1]++})),cov_1weo8er85e().s[90]++,e.sendDisabled=!1,cov_1weo8er85e().s[91]++,e.status=""}),(function(n){cov_1weo8er85e().f[20]++,cov_1weo8er85e().s[92]++,e.displayError("getting command parameters",n)}))},createParamList:function(){cov_1weo8er85e().f[21]++;var e=(cov_1weo8er85e().s[93]++,{});cov_1weo8er85e().s[94]++;for(var n=(cov_1weo8er85e().s[95]++,0);n<this.rows.length;n++)cov_1weo8er85e().s[96]++,e[this.rows[n].parameter_name]=this.convertToValue(this.rows[n]);return cov_1weo8er85e().s[97]++,e},buildCmd:function(){cov_1weo8er85e().f[22]++,cov_1weo8er85e().s[98]++,this.sendCmd(this.targetName,this.commandName,this.createParamList())},sendCmd:function(e,n,t){var l=this;cov_1weo8er85e().f[23]++,cov_1weo8er85e().s[99]++,this.sendDisabled=!0;var o=(cov_1weo8er85e().s[100]++,!1),a=(cov_1weo8er85e().s[101]++,"");cov_1weo8er85e().s[102]++,this.api.get_cmd_hazardous(e,n,t).then((function(s){var i;(cov_1weo8er85e().f[24]++,cov_1weo8er85e().s[103]++,o=s,cov_1weo8er85e().s[104]++,o)?(cov_1weo8er85e().b[26][0]++,cov_1weo8er85e().s[105]++,l.displaySendHazardous=!0):(cov_1weo8er85e().b[26][1]++,cov_1weo8er85e().s[106]++,l.cmdRaw?(cov_1weo8er85e().b[27][0]++,cov_1weo8er85e().s[107]++,l.ignoreRangeChecks?(cov_1weo8er85e().b[28][0]++,cov_1weo8er85e().s[108]++,a="cmd_raw_no_range_check",cov_1weo8er85e().s[109]++,i=l.api.cmd_raw_no_range_check(e,n,t)):(cov_1weo8er85e().b[28][1]++,cov_1weo8er85e().s[110]++,a="cmd_raw",cov_1weo8er85e().s[111]++,i=l.api.cmd_raw(e,n,t,{"Ignore-Errors":"500"}))):(cov_1weo8er85e().b[27][1]++,cov_1weo8er85e().s[112]++,l.ignoreRangeChecks?(cov_1weo8er85e().b[29][0]++,cov_1weo8er85e().s[113]++,a="cmd_no_range_check",cov_1weo8er85e().s[114]++,i=l.api.cmd_no_range_check(e,n,t)):(cov_1weo8er85e().b[29][1]++,cov_1weo8er85e().s[115]++,a="cmd",cov_1weo8er85e().s[116]++,i=l.api.cmd(e,n,t,{"Ignore-Errors":"500"}))),cov_1weo8er85e().s[117]++,i.then((function(e){cov_1weo8er85e().f[25]++,cov_1weo8er85e().s[118]++,l.processCmdResponse(a,e)}),(function(e){cov_1weo8er85e().f[26]++,cov_1weo8er85e().s[119]++,l.processCmdResponse(!1,e)})))}),(function(e){cov_1weo8er85e().f[27]++,cov_1weo8er85e().s[120]++,l.processCmdResponse(!1,e)}))},sendHazardousCmd:function(){var e=this;cov_1weo8er85e().f[28]++,cov_1weo8er85e().s[121]++,this.displaySendHazardous=!1;var n=(cov_1weo8er85e().s[122]++,this.createParamList()),t=(cov_1weo8er85e().s[123]++,""),l=(cov_1weo8er85e().s[124]++,"");cov_1weo8er85e().s[125]++,this.cmdRaw?(cov_1weo8er85e().b[30][0]++,cov_1weo8er85e().s[126]++,this.ignoreRangeChecks?(cov_1weo8er85e().b[31][0]++,cov_1weo8er85e().s[127]++,l="cmd_raw_no_checks",cov_1weo8er85e().s[128]++,t=this.api.cmd_raw_no_checks(this.targetName,this.commandName,n)):(cov_1weo8er85e().b[31][1]++,cov_1weo8er85e().s[129]++,l="cmd_raw_no_hazardous_check",cov_1weo8er85e().s[130]++,t=this.api.cmd_raw_no_hazardous_check(this.targetName,this.commandName,n,{"Ignore-Errors":"500"}))):(cov_1weo8er85e().b[30][1]++,cov_1weo8er85e().s[131]++,this.ignoreRangeChecks?(cov_1weo8er85e().b[32][0]++,cov_1weo8er85e().s[132]++,l="cmd_no_checks",cov_1weo8er85e().s[133]++,t=this.api.cmd_no_checks(this.targetName,this.commandName,n)):(cov_1weo8er85e().b[32][1]++,cov_1weo8er85e().s[134]++,l="cmd_no_hazardous_check",cov_1weo8er85e().s[135]++,t=this.api.cmd_no_hazardous_check(this.targetName,this.commandName,n,{"Ignore-Errors":"500"}))),cov_1weo8er85e().s[136]++,t.then((function(n){cov_1weo8er85e().f[29]++,cov_1weo8er85e().s[137]++,e.processCmdResponse(l,n)}),(function(n){cov_1weo8er85e().f[30]++,cov_1weo8er85e().s[138]++,e.processCmdResponse(!1,n)}))},cancelHazardousCmd:function(){cov_1weo8er85e().f[31]++,cov_1weo8er85e().s[139]++,this.displaySendHazardous=!1,cov_1weo8er85e().s[140]++,this.status="Hazardous command not sent",cov_1weo8er85e().s[141]++,this.sendDisabled=!1},processCmdResponse:function(e,n){cov_1weo8er85e().f[32]++;var t=(cov_1weo8er85e().s[142]++,"");if(cov_1weo8er85e().s[143]++,e){cov_1weo8er85e().b[33][0]++,cov_1weo8er85e().s[144]++,t="".concat(e,'("').concat(n[0]," ").concat(n[1]);var l=(cov_1weo8er85e().s[145]++,Object.keys(n[2]));if(cov_1weo8er85e().s[146]++,l.length>0){cov_1weo8er85e().b[34][0]++,cov_1weo8er85e().s[147]++,t+=" with ",cov_1weo8er85e().s[148]++;for(var o=(cov_1weo8er85e().s[149]++,0);o<l.length;o++){var a=(cov_1weo8er85e().s[150]++,l[o]),s=(cov_1weo8er85e().s[151]++,this.convertToString(n[2][a]));cov_1weo8er85e().s[152]++,cov_1weo8er85e().b[36][0]++,"string"===typeof n[2][a]&&(cov_1weo8er85e().b[36][1]++,"'"!==s.charAt(0))&&(cov_1weo8er85e().b[36][2]++,'"'!==s.charAt(0))?(cov_1weo8er85e().b[35][0]++,cov_1weo8er85e().s[153]++,s="'".concat(s,"'")):cov_1weo8er85e().b[35][1]++,cov_1weo8er85e().s[154]++,t+=a+" "+s,cov_1weo8er85e().s[155]++,o<l.length-1?(cov_1weo8er85e().b[37][0]++,cov_1weo8er85e().s[156]++,t+=", "):cov_1weo8er85e().b[37][1]++}}else cov_1weo8er85e().b[34][1]++;if(cov_1weo8er85e().s[157]++,t+='")',cov_1weo8er85e().s[158]++,this.history.includes(t)?cov_1weo8er85e().b[38][1]++:(cov_1weo8er85e().b[38][0]++,cov_1weo8er85e().s[159]++,this.history+=t+"\n"),cov_1weo8er85e().s[160]++,t+=" sent.",cov_1weo8er85e().s[161]++,this.status.includes(t)){cov_1weo8er85e().b[39][0]++;var i=(cov_1weo8er85e().s[162]++,this.status.split("sent."));if(cov_1weo8er85e().s[163]++,i[1].includes("(")){cov_1weo8er85e().b[40][0]++;var c=(cov_1weo8er85e().s[164]++,parseInt(i[1].substr(2,i[1].indexOf(")")-2)));cov_1weo8er85e().s[165]++,t=i[0]+"sent. ("+(c+1)+")"}else cov_1weo8er85e().b[40][1]++,cov_1weo8er85e().s[166]++,t+=" (2)"}else cov_1weo8er85e().b[39][1]++;cov_1weo8er85e().s[167]++,this.status=t}else{cov_1weo8er85e().b[33][1]++;var r=(cov_1weo8er85e().s[168]++,"sending "+this.targetName+" "+this.commandName);cov_1weo8er85e().s[169]++,this.displayError(r,n,!0)}cov_1weo8er85e().s[170]++,this.sendDisabled=!1},displayError:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(cov_1weo8er85e().b[41][0]++,!1);cov_1weo8er85e().f[33]++,cov_1weo8er85e().s[171]++,this.status="Error ".concat(e," due to ").concat(n.name),cov_1weo8er85e().s[172]++,cov_1weo8er85e().b[43][0]++,n.message&&(cov_1weo8er85e().b[43][1]++,""!==n.message)?(cov_1weo8er85e().b[42][0]++,cov_1weo8er85e().s[173]++,this.status+=": ",cov_1weo8er85e().s[174]++,this.status+=n.message):cov_1weo8er85e().b[42][1]++,cov_1weo8er85e().s[175]++,t?(cov_1weo8er85e().b[44][0]++,cov_1weo8er85e().s[176]++,this.displayErrorDialog=!0):cov_1weo8er85e().b[44][1]++}}}},6451:function(e,n,t){"use strict";t(7950),t(1850),t(2501),t(8188),t(8233);function l(){var e="/openc3/plugins/packages/openc3-tool-cmdsender/src/tools/CommandSender/utilities.js",n="3d8a0035ac087a8e334cfad139e5758edeb86c8a",t=new Function("return this")(),o="__coverage__",a={path:"/openc3/plugins/packages/openc3-tool-cmdsender/src/tools/CommandSender/utilities.js",statementMap:{0:{start:{line:24,column:6},end:{line:26,column:7}},1:{start:{line:25,column:8},end:{line:25,column:19}},2:{start:{line:28,column:6},end:{line:30,column:7}},3:{start:{line:29,column:8},end:{line:29,column:19}},4:{start:{line:31,column:6},end:{line:31,column:18}},5:{start:{line:36,column:6},end:{line:38,column:7}},6:{start:{line:37,column:8},end:{line:37,column:19}},7:{start:{line:41,column:6},end:{line:43,column:7}},8:{start:{line:42,column:8},end:{line:42,column:19}},9:{start:{line:44,column:6},end:{line:44,column:18}},10:{start:{line:49,column:6},end:{line:51,column:7}},11:{start:{line:50,column:8},end:{line:50,column:19}},12:{start:{line:52,column:6},end:{line:52,column:18}},13:{start:{line:57,column:6},end:{line:59,column:7}},14:{start:{line:58,column:8},end:{line:58,column:18}},15:{start:{line:60,column:22},end:{line:60,column:35}},16:{start:{line:61,column:6},end:{line:63,column:7}},17:{start:{line:62,column:8},end:{line:62,column:18}},18:{start:{line:64,column:21},end:{line:64,column:47}},19:{start:{line:65,column:6},end:{line:67,column:7}},20:{start:{line:66,column:8},end:{line:66,column:18}},21:{start:{line:68,column:6},end:{line:68,column:29}},22:{start:{line:72,column:14},end:{line:72,column:15}},23:{start:{line:73,column:24},end:{line:73,column:26}},24:{start:{line:74,column:6},end:{line:108,column:7}},25:{start:{line:75,column:26},end:{line:75,column:38}},26:{start:{line:76,column:8},end:{line:76,column:26}},27:{start:{line:77,column:8},end:{line:88,column:9}},28:{start:{line:78,column:10},end:{line:84,column:11}},29:{start:{line:81,column:12},end:{line:81,column:47}},30:{start:{line:83,column:12},end:{line:83,column:35}},31:{start:{line:85,column:10},end:{line:87,column:11}},32:{start:{line:86,column:12},end:{line:86,column:31}},33:{start:{line:89,column:8},end:{line:89,column:27}},34:{start:{line:90,column:13},end:{line:108,column:7}},35:{start:{line:93,column:8},end:{line:105,column:9}},36:{start:{line:95,column:10},end:{line:95,column:28}},37:{start:{line:96,column:10},end:{line:102,column:11}},38:{start:{line:97,column:25},end:{line:97,column:64}},39:{start:{line:98,column:12},end:{line:100,column:13}},40:{start:{line:99,column:14},end:{line:99,column:35}},41:{start:{line:101,column:12},end:{line:101,column:33}},42:{start:{line:103,column:15},end:{line:105,column:9}},43:{start:{line:104,column:10},end:{line:104,column:33}},44:{start:{line:107,column:8},end:{line:107,column:35}},45:{start:{line:109,column:6},end:{line:109,column:24}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:4},end:{line:22,column:5}},loc:{start:{line:22,column:17},end:{line:32,column:5}},line:22},1:{name:"(anonymous_1)",decl:{start:{line:34,column:4},end:{line:34,column:5}},loc:{start:{line:34,column:15},end:{line:45,column:5}},line:34},2:{name:"(anonymous_2)",decl:{start:{line:47,column:4},end:{line:47,column:5}},loc:{start:{line:47,column:17},end:{line:53,column:5}},line:47},3:{name:"(anonymous_3)",decl:{start:{line:55,column:4},end:{line:55,column:5}},loc:{start:{line:55,column:22},end:{line:69,column:5}},line:55},4:{name:"(anonymous_4)",decl:{start:{line:71,column:4},end:{line:71,column:5}},loc:{start:{line:71,column:27},end:{line:110,column:5}},line:71}},branchMap:{0:{loc:{start:{line:24,column:6},end:{line:26,column:7}},type:"if",locations:[{start:{line:24,column:6},end:{line:26,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:24},1:{loc:{start:{line:28,column:6},end:{line:30,column:7}},type:"if",locations:[{start:{line:28,column:6},end:{line:30,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:28},2:{loc:{start:{line:36,column:6},end:{line:38,column:7}},type:"if",locations:[{start:{line:36,column:6},end:{line:38,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:36},3:{loc:{start:{line:41,column:6},end:{line:43,column:7}},type:"if",locations:[{start:{line:41,column:6},end:{line:43,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:41},4:{loc:{start:{line:49,column:6},end:{line:51,column:7}},type:"if",locations:[{start:{line:49,column:6},end:{line:51,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:49},5:{loc:{start:{line:57,column:6},end:{line:59,column:7}},type:"if",locations:[{start:{line:57,column:6},end:{line:59,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:57},6:{loc:{start:{line:61,column:6},end:{line:63,column:7}},type:"if",locations:[{start:{line:61,column:6},end:{line:63,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:61},7:{loc:{start:{line:61,column:10},end:{line:61,column:48}},type:"binary-expr",locations:[{start:{line:61,column:10},end:{line:61,column:27}},{start:{line:61,column:31},end:{line:61,column:48}}],line:61},8:{loc:{start:{line:65,column:6},end:{line:67,column:7}},type:"if",locations:[{start:{line:65,column:6},end:{line:67,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:65},9:{loc:{start:{line:74,column:6},end:{line:108,column:7}},type:"if",locations:[{start:{line:74,column:6},end:{line:108,column:7}},{start:{line:90,column:13},end:{line:108,column:7}}],line:74},10:{loc:{start:{line:78,column:10},end:{line:84,column:11}},type:"if",locations:[{start:{line:78,column:10},end:{line:84,column:11}},{start:{line:82,column:17},end:{line:84,column:11}}],line:78},11:{loc:{start:{line:85,column:10},end:{line:87,column:11}},type:"if",locations:[{start:{line:85,column:10},end:{line:87,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:85},12:{loc:{start:{line:90,column:13},end:{line:108,column:7}},type:"if",locations:[{start:{line:90,column:13},end:{line:108,column:7}},{start:{line:106,column:13},end:{line:108,column:7}}],line:90},13:{loc:{start:{line:93,column:8},end:{line:105,column:9}},type:"if",locations:[{start:{line:93,column:8},end:{line:105,column:9}},{start:{line:103,column:15},end:{line:105,column:9}}],line:93},14:{loc:{start:{line:93,column:12},end:{line:93,column:54}},type:"binary-expr",locations:[{start:{line:93,column:12},end:{line:93,column:41}},{start:{line:93,column:45},end:{line:93,column:54}}],line:93},15:{loc:{start:{line:98,column:12},end:{line:100,column:13}},type:"if",locations:[{start:{line:98,column:12},end:{line:100,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:98},16:{loc:{start:{line:103,column:15},end:{line:105,column:9}},type:"if",locations:[{start:{line:103,column:15},end:{line:105,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:103},17:{loc:{start:{line:103,column:19},end:{line:103,column:60}},type:"binary-expr",locations:[{start:{line:103,column:19},end:{line:103,column:47}},{start:{line:103,column:51},end:{line:103,column:60}}],line:103}},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:"3d8a0035ac087a8e334cfad139e5758edeb86c8a"},s=t[o]||(t[o]={});s[e]&&s[e].hash===n||(s[e]=a);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 o=(l().s[25]++,e.length);for(l().s[26]++,t="[ ",l().s[27]++,n=0;n<o;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!==o-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 a=(l().s[38]++,e.raw[n].toString(16).toUpperCase());l().s[39]++,a.length<2?(l().b[15][0]++,l().s[40]++,a="0"+a):l().b[15][1]++,l().s[41]++,t+=a}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}}}},6291:function(e,n,t){"use strict";var l=t(4948),o=t(21),a=t(6706),s=t(2256),i=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n,t){var l,a,i,c,r,u,m,d,_,A=arguments;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l=A.length>2&&void 0!==A[2]?A[2]:{},a=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=11;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](2),OpenC3Auth.login();case 10:r["Authorization"]=localStorage.openc3Token;case 11:return _||c["scope"]||(c["scope"]=window.openc3Scope),e.abrupt("return",(0,s.Z)({method:n,url:t,data:a,params:c,headers:r}));case 13:case"end":return e.stop()}}),e,null,[[2,7]])})));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,o=void 0===l?c:l,a=n.noScope,s=n.noAuth;return i("get",e,{params:t,headers:o,noScope:a,noAuth:s})},put:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,l=n.params,o=n.headers,a=void 0===o?r:o,s=n.noScope,c=n.noAuth;return i("put",e,{data:t,params:l,headers:a,noScope:s,noAuth:c})},post:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.data,l=n.params,o=n.headers,a=void 0===o?r:o,s=n.noScope,c=n.noAuth;return i("post",e,{data:t,params:l,headers:a,noScope:s,noAuth:c})},delete:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.params,l=n.headers,o=void 0===l?c:l,a=n.noScope,s=n.noAuth;return i("delete",e,{params:t,headers:o,noScope:a,noAuth:s})}}},2256:function(e,n,t){"use strict";t(9529),t(1235),t(8188),t(8233);var l=t(9644),o=t.n(l),a=t(4091),s=new a["default"],i=o().create({baseURL:location.origin,timeout:6e4,params:{}});i.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var n,t,l,o,a,i,c,r,u,m;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var d="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(d+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(l=t.config)&&void 0!==l&&l.data&&(d+="".concat(e.response.config.data," ")),null!==(o=e.response)&&void 0!==o&&null!==(a=o.data)&&void 0!==a&&a.message)d+="".concat(e.response.data.message);else if(null!==(i=e.response)&&void 0!==i&&null!==(c=i.data)&&void 0!==c&&c.exception)d+="".concat(e.response.data.exception);else if(null!==(r=e.response)&&void 0!==r&&null!==(u=r.data)&&void 0!==u&&null!==(m=u.error)&&void 0!==m&&m.message)e.response.data.error.class&&(d+="".concat(e.response.data.error.class," ")),d+="".concat(e.response.data.error.message);else{var _;d+="".concat(null===(_=e.response)||void 0===_?void 0:_.data)}throw s.$notify.serious({title:"Network error",body:d}),e}throw e})),n["Z"]=i},4008:function(e,n,t){"use strict";t.d(n,{k:function(){return m}});var l=t(6632),o=t(21),a=t(4948),s=t(6706),i=t(4567),c=t(6812),r=t(6274),u=(t(1372),t(1245),t(7950),t(9529),t(8188),t(3675),t(4898),t(5825),t(7170),t(8857),t(8329),t(6279),t(427),t(1159),t(2516),t(4349),t(5273),t(6729),t(1801),t(574),t(5787),t(9271),t(3160),t(5688),t(3157),t(3333),t(315),t(556),t(9224),t(6297),t(8882),t(3450),t(7233),t(8673),t(5734),t(8233),t(2256)),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,o.Z)().mark((function e(n,t){var l,s,i,c,r=arguments;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=r.length>2&&void 0!==r[2]?r[2]:{},s=r.length>3&&void 0!==r[3]?r[3]:{},e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](2),OpenC3Auth.login();case 10:return this.id=this.id+1,e.prev=11,l["scope"]=window.openc3Scope,e.next=15,u.Z.post("/openc3-api/api",{jsonrpc:"2.0",method:n,params:t,id:this.id,keyword_params:l},{headers:(0,a.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},s)});case 15:return i=e.sent,e.abrupt("return",i.data.result);case 19:throw e.prev=19,e.t1=e["catch"](11),c=new Error,e.t1.response?(c.name=e.t1.response.data.error.data.class,c.message=e.t1.response.data.error.data.message):e.t1.request?(c.name="Request error",c.message="Request error, no response received"):c.name="Unknown error",c;case 24:case"end":return e.stop()}}),e,this,[[2,7],[11,19]])})));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:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"connect_interface",value:function(e){return this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,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_oldest_logfile",value:function(){return this.exec("get_oldest_logfile",[])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,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,o.Z)().mark((function e(n,t,l){var a,s,i,c;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_packet",[n,t],{type:l});case 2:if(a=e.sent,null!=a)for(s=a.length,i=null,c=0;c<s;c++)i=this.decode_openc3_type(a[c][1]),null!==i&&(a[c][1]=i);return e.abrupt("return",a);case 5: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,o.Z)().mark((function e(n){var t,l,a,s;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_values",[n]);case 2:for(t=e.sent,l=t[0].length,a=null,s=0;s<l;s++)a=this.decode_openc3_type(t[0][s]),null!==a&&(t[0][s]=a);return e.abrupt("return",t);case 7: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,o.Z)().mark((function e(n,t,l){var a,s,i,c,r=arguments;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=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:a});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:"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,o){var a=null;for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&(a=this.encode_openc3_type(l[s]),null!==a&&(l[s]=a));return this.exec(e,[n,t,l],{},o)}},{key:"get_cmd_hazardous",value:function(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}},{key:"cmd",value:function(e,n,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===n?this.exec("cmd",e,{},l):this._cmd("cmd",e,n,t,l)}},{key:"cmd_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}},{key:"cmd_raw",value:function(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}},{key:"cmd_raw_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}},{key:"cmd_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}},{key:"cmd_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}},{key:"cmd_raw_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}},{key:"cmd_raw_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,n){return this.exec("send_raw",[e,n])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,n){return this.exec("load_config",[e,n])}},{key:"save_config",value:function(e,n,t){return this.exec("save_config",[e,n,t])}},{key:"delete_config",value:function(e,n){return this.exec("delete_config",[e,n])}},{key:"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:"hashString",value:function(){var e=(0,s.Z)((0,o.Z)().mark((function e(n){var t,l,a;return(0,o.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,a=new Uint8Array(l),e.abrupt("return",Array.from(a).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}()}]),e}()},8157:function(e,n,t){var l=t(6539);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var o=t(3514).Z;o("48c87bfc",l,!0,{sourceMap:!1,shadowMode:!1})},6649:function(e,n,t){var l=t(5728);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var o=t(3514).Z;o("7965124a",l,!0,{sourceMap:!1,shadowMode:!1})},6957:function(e,n,t){var l=t(3200);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var o=t(3514).Z;o("6c0e906e",l,!0,{sourceMap:!1,shadowMode:!1})},9824:function(e,n,t){var l=t(363);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var o=t(3514).Z;o("7bc1978b",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
2
+ //# sourceMappingURL=780.js.map