openc3-cosmos-tool-cmdsender 5.17.1 → 5.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/cmdsender/js/729.js +1 -1
- data/tools/cmdsender/js/729.js.map +1 -1
- data/tools/cmdsender/js/905.js +18 -0
- data/tools/cmdsender/js/905.js.map +1 -0
- data/tools/cmdsender/js/app.js +1 -1
- data/tools/cmdsender/js/app.js.map +1 -1
- metadata +4 -4
- data/tools/cmdsender/js/477.js +0 -18
- data/tools/cmdsender/js/477.js.map +0 -1
data/tools/cmdsender/js/729.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_cmdsender"]=self["webpackChunk_openc3_cosmos_tool_cmdsender"]||[]).push([[729],{7448:(e,t,n)=>{var s={"./ArrayWidget.vue":8687,"./BlockWidget.vue":171,"./ButtonWidget.vue":4814,"./CanvasWidget.vue":2430,"./CanvasdotWidget.vue":6614,"./CanvasimageWidget.vue":8239,"./CanvasimagevalueWidget.vue":4653,"./CanvaslabelWidget.vue":6631,"./CanvaslabelvalueWidget.vue":8211,"./CanvaslineWidget.vue":4352,"./CanvaslinevalueWidget.vue":4291,"./CheckbuttonWidget.vue":5733,"./ComboboxWidget.vue":3835,"./DynamicWidget.vue":3634,"./FormatvalueWidget.vue":2656,"./HorizontalWidget.vue":2907,"./HorizontalboxWidget.vue":4812,"./HorizontallineWidget.vue":9646,"./IframeWidget.vue":527,"./ImageviewerWidget.vue":1404,"./LabelWidget.vue":4858,"./LabelledWidget.vue":9830,"./LabelprogressbarWidget.vue":2503,"./LabelsparklineWidget.vue":2194,"./LabelvalueWidget.vue":1921,"./LabelvaluedescWidget.vue":974,"./LabelvaluelimitsbarWidget.vue":2171,"./LabelvaluelimitscolumnWidget.vue":8981,"./LabelvaluerangebarWidget.vue":9124,"./LedWidget.vue":6507,"./LimitsbarWidget.vue":1057,"./LimitscolorWidget.vue":8518,"./LimitscolumnWidget.vue":6992,"./LinegraphWidget.vue":2653,"./MatrixbycolumnsWidget.vue":5043,"./ProgressbarWidget.vue":6825,"./RadiobuttonWidget.vue":5993,"./RadiogroupWidget.vue":5758,"./RangebarWidget.vue":5736,"./RollupWidget.vue":9517,"./ScrollwindowWidget.vue":9769,"./SectionheaderWidget.vue":2959,"./SpacerWidget.vue":6637,"./SparklineWidget.vue":6115,"./TabbookWidget.vue":2926,"./TextboxWidget.vue":2128,"./TextfieldWidget.vue":7540,"./TitleWidget.vue":6525,"./ValueWidget.vue":4348,"./ValuelimitsbarWidget.vue":440,"./ValuelimitscolumnWidget.vue":6931,"./ValuerangebarWidget.vue":5918,"./VerticalWidget.vue":1629,"./VerticalboxWidget.vue":5757};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}i.keys=function(){return Object.keys(s)},i.resolve=a,e.exports=i,i.id=7448},3345:(e,t,n)=>{"use strict";function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/utilities.js",t="f90e29509e2bb76b4e2ed03c5a37c30beb30d512",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/utilities.js",statementMap:{0:{start:{line:27,column:6},end:{line:29,column:7}},1:{start:{line:28,column:8},end:{line:28,column:19}},2:{start:{line:31,column:6},end:{line:33,column:7}},3:{start:{line:32,column:8},end:{line:32,column:19}},4:{start:{line:34,column:6},end:{line:34,column:18}},5:{start:{line:39,column:6},end:{line:41,column:7}},6:{start:{line:40,column:8},end:{line:40,column:19}},7:{start:{line:44,column:6},end:{line:46,column:7}},8:{start:{line:45,column:8},end:{line:45,column:19}},9:{start:{line:47,column:6},end:{line:47,column:18}},10:{start:{line:52,column:6},end:{line:54,column:7}},11:{start:{line:53,column:8},end:{line:53,column:19}},12:{start:{line:55,column:6},end:{line:55,column:18}},13:{start:{line:60,column:6},end:{line:62,column:7}},14:{start:{line:61,column:8},end:{line:61,column:18}},15:{start:{line:63,column:22},end:{line:63,column:35}},16:{start:{line:64,column:6},end:{line:66,column:7}},17:{start:{line:65,column:8},end:{line:65,column:18}},18:{start:{line:67,column:21},end:{line:67,column:47}},19:{start:{line:68,column:6},end:{line:70,column:7}},20:{start:{line:69,column:8},end:{line:69,column:18}},21:{start:{line:71,column:6},end:{line:71,column:29}},22:{start:{line:75,column:14},end:{line:75,column:15}},23:{start:{line:76,column:24},end:{line:76,column:26}},24:{start:{line:77,column:6},end:{line:111,column:7}},25:{start:{line:78,column:26},end:{line:78,column:38}},26:{start:{line:79,column:8},end:{line:79,column:26}},27:{start:{line:80,column:8},end:{line:91,column:9}},28:{start:{line:81,column:10},end:{line:87,column:11}},29:{start:{line:84,column:12},end:{line:84,column:47}},30:{start:{line:86,column:12},end:{line:86,column:35}},31:{start:{line:88,column:10},end:{line:90,column:11}},32:{start:{line:89,column:12},end:{line:89,column:31}},33:{start:{line:92,column:8},end:{line:92,column:27}},34:{start:{line:93,column:13},end:{line:111,column:7}},35:{start:{line:96,column:8},end:{line:108,column:9}},36:{start:{line:98,column:10},end:{line:98,column:28}},37:{start:{line:99,column:10},end:{line:105,column:11}},38:{start:{line:100,column:25},end:{line:100,column:64}},39:{start:{line:101,column:12},end:{line:103,column:13}},40:{start:{line:102,column:14},end:{line:102,column:35}},41:{start:{line:104,column:12},end:{line:104,column:33}},42:{start:{line:106,column:15},end:{line:108,column:9}},43:{start:{line:107,column:10},end:{line:107,column:33}},44:{start:{line:110,column:8},end:{line:110,column:35}},45:{start:{line:112,column:6},end:{line:112,column:24}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:4},end:{line:25,column:5}},loc:{start:{line:25,column:17},end:{line:35,column:5}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:37,column:4},end:{line:37,column:5}},loc:{start:{line:37,column:15},end:{line:48,column:5}},line:37},2:{name:"(anonymous_2)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:17},end:{line:56,column:5}},line:50},3:{name:"(anonymous_3)",decl:{start:{line:58,column:4},end:{line:58,column:5}},loc:{start:{line:58,column:22},end:{line:72,column:5}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:27},end:{line:113,column:5}},line:74}},branchMap:{0:{loc:{start:{line:27,column:6},end:{line:29,column:7}},type:"if",locations:[{start:{line:27,column:6},end:{line:29,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:27},1:{loc:{start:{line:31,column:6},end:{line:33,column:7}},type:"if",locations:[{start:{line:31,column:6},end:{line:33,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:31},2:{loc:{start:{line:39,column:6},end:{line:41,column:7}},type:"if",locations:[{start:{line:39,column:6},end:{line:41,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:39},3:{loc:{start:{line:44,column:6},end:{line:46,column:7}},type:"if",locations:[{start:{line:44,column:6},end:{line:46,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},4:{loc:{start:{line:52,column:6},end:{line:54,column:7}},type:"if",locations:[{start:{line:52,column:6},end:{line:54,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:52},5:{loc:{start:{line:60,column:6},end:{line:62,column:7}},type:"if",locations:[{start:{line:60,column:6},end:{line:62,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:60},6:{loc:{start:{line:64,column:6},end:{line:66,column:7}},type:"if",locations:[{start:{line:64,column:6},end:{line:66,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:64},7:{loc:{start:{line:64,column:10},end:{line:64,column:48}},type:"binary-expr",locations:[{start:{line:64,column:10},end:{line:64,column:27}},{start:{line:64,column:31},end:{line:64,column:48}}],line:64},8:{loc:{start:{line:68,column:6},end:{line:70,column:7}},type:"if",locations:[{start:{line:68,column:6},end:{line:70,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:68},9:{loc:{start:{line:77,column:6},end:{line:111,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:111,column:7}},{start:{line:93,column:13},end:{line:111,column:7}}],line:77},10:{loc:{start:{line:81,column:10},end:{line:87,column:11}},type:"if",locations:[{start:{line:81,column:10},end:{line:87,column:11}},{start:{line:85,column:17},end:{line:87,column:11}}],line:81},11:{loc:{start:{line:88,column:10},end:{line:90,column:11}},type:"if",locations:[{start:{line:88,column:10},end:{line:90,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:88},12:{loc:{start:{line:93,column:13},end:{line:111,column:7}},type:"if",locations:[{start:{line:93,column:13},end:{line:111,column:7}},{start:{line:109,column:13},end:{line:111,column:7}}],line:93},13:{loc:{start:{line:96,column:8},end:{line:108,column:9}},type:"if",locations:[{start:{line:96,column:8},end:{line:108,column:9}},{start:{line:106,column:15},end:{line:108,column:9}}],line:96},14:{loc:{start:{line:96,column:12},end:{line:96,column:54}},type:"binary-expr",locations:[{start:{line:96,column:12},end:{line:96,column:41}},{start:{line:96,column:45},end:{line:96,column:54}}],line:96},15:{loc:{start:{line:101,column:12},end:{line:103,column:13}},type:"if",locations:[{start:{line:101,column:12},end:{line:103,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:101},16:{loc:{start:{line:106,column:15},end:{line:108,column:9}},type:"if",locations:[{start:{line:106,column:15},end:{line:108,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:106},17:{loc:{start:{line:106,column:19},end:{line:106,column:60}},type:"binary-expr",locations:[{start:{line:106,column:19},end:{line:106,column:47}},{start:{line:106,column:51},end:{line:106,column:60}}],line:106}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f90e29509e2bb76b4e2ed03c5a37c30beb30d512"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=a);var r=l[e];return s=function(){return r},r}n.d(t,{A:()=>i}),s();const i={methods:{isFloat(e){return s().f[0]++,s().s[0]++,/^\s*[-+]?\d*\.\d+\s*$/.test(e)?(s().b[0][0]++,s().s[1]++,!0):(s().b[0][1]++,s().s[2]++,/^\s*[-+]?(\d+((\.\d+)?)|(\.\d+))[eE][-+]?\d+\s*$/.test(e)?(s().b[1][0]++,s().s[3]++,!0):(s().b[1][1]++,s().s[4]++,!1))},isInt(e){return s().f[1]++,s().s[5]++,/^\s*[-+]?\d+\s*$/.test(e)?(s().b[2][0]++,s().s[6]++,!0):(s().b[2][1]++,s().s[7]++,/^\s*0[xX][\dabcdefABCDEF]+\s*$/.test(e)?(s().b[3][0]++,s().s[8]++,!0):(s().b[3][1]++,s().s[9]++,!1))},isArray(e){return s().f[2]++,s().s[10]++,/^\s*\[.*\]\s*$/.test(e)?(s().b[4][0]++,s().s[11]++,!0):(s().b[4][1]++,s().s[12]++,!1)},removeQuotes(e){if(s().f[3]++,s().s[13]++,e.length<2)return s().b[5][0]++,s().s[14]++,e;s().b[5][1]++;var t=(s().s[15]++,e.charAt(0));if(s().s[16]++,s().b[7][0]++,'"'!==t&&(s().b[7][1]++,"'"!==t))return s().b[6][0]++,s().s[17]++,e;s().b[6][1]++;var n=(s().s[18]++,e.charAt(e.length-1));return s().s[19]++,t!==n?(s().b[8][0]++,s().s[20]++,e):(s().b[8][1]++,s().s[21]++,e.slice(1,-1))},convertToString(e){s().f[4]++;var t=(s().s[22]++,0),n=(s().s[23]++,"");if(s().s[24]++,"Array"===Object.prototype.toString.call(e).slice(8,-1)){s().b[9][0]++;var i=(s().s[25]++,e.length);for(s().s[26]++,n="[ ",s().s[27]++,t=0;t<i;t++)s().s[28]++,"String"===Object.prototype.toString.call(e[t]).slice(8,-1)?(s().b[10][0]++,s().s[29]++,n+='"'+e[t]+'"'):(s().b[10][1]++,s().s[30]++,n+=e[t]),s().s[31]++,t!==i-1?(s().b[11][0]++,s().s[32]++,n+=", "):s().b[11][1]++;s().s[33]++,n+=" ]"}else if(s().b[9][1]++,s().s[34]++,"Object"===Object.prototype.toString.call(e).slice(8,-1))if(s().b[12][0]++,s().s[35]++,s().b[14][0]++,"String"===e.json_class&&(s().b[14][1]++,e.raw))for(s().b[13][0]++,s().s[36]++,n="0x",s().s[37]++,t=0;t<e.raw.length;t++){var a=(s().s[38]++,e.raw[t].toString(16).toUpperCase());s().s[39]++,a.length<2?(s().b[15][0]++,s().s[40]++,a="0"+a):s().b[15][1]++,s().s[41]++,n+=a}else s().b[13][1]++,s().s[42]++,s().b[17][0]++,"Float"===e.json_class&&(s().b[17][1]++,e.raw)?(s().b[16][0]++,s().s[43]++,n=e.raw):s().b[16][1]++;else s().b[12][1]++,s().s[44]++,n=String(e);return s().s[45]++,n}}}},1033:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});n(7107),n(9375);var s=n(4554),i=n(6444),a=n(9729);const l={mixins:[a.A],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.settings.forEach((e=>{switch(e[0]){case"ITEM":this.items.push({targetName:e[1],packetName:e[2],itemName:e[3],valueType:e[4]||"CONVERTED",reduced:e[5]||"DECOM",reducedType:e[6]||null});case"STARTTIME":let t=(0,s.qg)(e[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=1e6*t.getTime();break;case"HISTORY":let n=parseInt(e[1].slice(0,e[1].length-1)),a=null,l=1;switch(e[1][e[1].length-1]){case"d":a="days",l=86400;break;case"h":a="hours",l=3600;break;case"m":a="minutes",l=60;break;case"s":a="seconds";break;default:throw new Error(`Unknown time suffix: ${e[1]}!`)}let r={};r[a]=n,this.startTime=1e6*(0,i.j)(new Date,r).getTime(),n*l>this.secondsGraphed&&(this.secondsGraphed=n*l),n*l>this.pointsSaved&&(this.pointsSaved=n*l),n*l>this.pointsGraphed&&(this.pointsGraphed=n*l);break;case"SECONDSGRAPHED":this.secondsGraphed=parseInt(e[1]);break;case"POINTSSAVED":this.pointsSaved=parseInt(e[1]);break;case"POINTSGRAPHED":this.pointsGraphed=parseInt(e[1]);break;case"SIZE":this.size.width=parseInt(e[1]),this.size.height=parseInt(e[2]);break}})),this.screen&&this.items.map((e=>this.screen.addItem(`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`)))},destroyed(){this.screen&&this.items.map((e=>this.screen.deleteItem(`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`)))}}},7163:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var s=n(2795);const i={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(e){var t="targets_modified";await s.A.get(`/openc3-api/storage/exists/${encodeURIComponent(`${window.openc3Scope}/${t}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).catch((e=>{t="targets"}));var n=await s.A.get(`/openc3-api/storage/download/${encodeURIComponent(`${window.openc3Scope}/${t}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`);return n.data.url}}}},9843:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var s=n(9729);const i={mixins:[s.A],props:{widgets:{type:Array,default:()=>[]}}}},2967:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(4293);var s=n(9729);n(9471);const i={mixins:[s.A],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data(){return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+this.parameters[0]+"/"+this.parameters[1]+"/"+this.parameters[2],"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(null!==this.arrayIndex&&this.screen.screenValues[this.valueId][0]?this.curValue=this.screen.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroIcon(){switch(this.limitsColor){case"green":return"$vuetify.icons.astro-status-normal";case"yellow":return"$vuetify.icons.astro-status-caution";case"red":return"$vuetify.icons.astro-status-critical";case"blue":return"$vuetify.icons.astro-status-standby";default:return null}},limitsColor(){let e=this._limitsState;if(null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(null!=e){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created(){if(null===this.value||null===this.limitsState){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.screen&&this.screen.addItem(this.valueId)}},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){let t=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(t+="..."),t}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){let t="[";for(let n=0;n<e.length;n++)"String"===Object.prototype.toString.call(e[n]).slice(8,-1)?t+='"'+e[n]+'"':t+=e[n],n!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((()=>{this.contextMenuShown=!0}))}}}},9729:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(9375),n(7534);var s=n(3069);const i={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{screen:null}},computed:{computedStyle(){let e={};return this.settings.forEach((t=>{const n=parseInt(t[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==n)return;t=t.slice(1)}this.applySetting(e,t)})),void 0===e["width"]&&(e["flex"]="0 10 100%"),e}},created(){this.settings.forEach((e=>{"__SCREEN__"===e[0]&&(this.screen=e[1])}))},methods:{applySetting(e,t){switch(t[0]){case"TEXTALIGN":e["text-align"]=t[1].toLowerCase()+" !important",e["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),e["padding"]=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),e["margin"]=t[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),e["width"]=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),e["height"]=t[1]+" !important";break;case"RAW":e[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(e,t,n,i=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(var l=1;l<=t;l++)if(void 0===this.parameters[l-1])throw new s.o(a,`Not enough parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration");if(null!==n&&this.parameters.length>n)throw new s.o(a,`Too many parameters for ${e}.`,i,"https://docs.openc3.com/docs/configuration")},setWidth(e,t="px",n="120"){let s=null;if(s=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"WIDTH"===e[1])):this.settings.find((e=>"WIDTH"===e[0])),s)return s["WIDTH"];if(e){let n=["WIDTH",`${e}${t}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(e)}{let e=["WIDTH",`${n}${t}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(n)}},setHeight(e,t="px",n="20"){let s=null;if(s=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"HEIGHT"===e[1])):this.settings.find((e=>"HEIGHT"===e[0])),s)return s["HEIGHT"];if(e){let n=["HEIGHT",`${e}${t}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(e)}{let e=["HEIGHT",`${n}${t}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(n)}},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}}}}},2795:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(2673);const i=async function(e,t,{data:n,params:i={},headers:a,noAuth:l=!1,noScope:r=!1,onUploadProgress:o={}}={}){if(!l){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(c){OpenC3Auth.login()}a["Authorization"]=localStorage.openc3Token}return r||i["scope"]||(i["scope"]=window.openc3Scope),(0,s.A)({method:e,url:t,data:n,params:i,headers:a,onUploadProgress:o})},a={Accept:"application/json"},l={...a,"Content-Type":"application/json"},r={get:function(e,{params:t,headers:n=a,noScope:s,noAuth:l,onUploadProgress:r}={}){return i("get",e,{params:t,headers:n,noScope:s,noAuth:l,onUploadProgress:r})},put:function(e,{data:t,params:n,headers:s=l,noScope:a,noAuth:r,onUploadProgress:o}={}){return i("put",e,{data:t,params:n,headers:s,noScope:a,noAuth:r,onUploadProgress:o})},post:function(e,{data:t,params:n,headers:s=l,noScope:a,noAuth:r,onUploadProgress:o}={}){return i("post",e,{data:t,params:n,headers:s,noScope:a,noAuth:r,onUploadProgress:o})},delete:function(e,{params:t,headers:n=a,noScope:s,noAuth:l,onUploadProgress:r}={}){return i("delete",e,{params:t,headers:n,noScope:s,noAuth:l,onUploadProgress:r})}}},2673:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(3816),i=n(1649);const a=new i["default"],l=s.A.create({baseURL:location.origin,timeout:6e4,params:{}});l.interceptors.response.use((e=>e),(e=>{if(e.response){var t,n,s,i,l;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let o=`HTTP ${e.response.status} - `;if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(o+=`${e.response.statusText} `),null!==(n=e.response)&&void 0!==n&&null!==(n=n.config)&&void 0!==n&&n.data&&(o+=`${e.response.config.data} `),null!==(s=e.response)&&void 0!==s&&null!==(s=s.data)&&void 0!==s&&s.message)o+=`${e.response.data.message}`;else if(null!==(i=e.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&i.exception)o+=`${e.response.data.exception}`;else if(null!==(l=e.response)&&void 0!==l&&null!==(l=l.data)&&void 0!==l&&null!==(l=l.error)&&void 0!==l&&l.message)e.response.data.error.class&&(o+=`${e.response.data.error.class} `),o+=`${e.response.data.error.message}`;else{var r;o+=`${null===(r=e.response)||void 0===r?void 0:r.data}`}throw a.$notify&&a.$notify.serious({title:"Network error",body:o}),e}throw e}));const r=l},2702:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var s=n(7752);s.D$.staleThreshold=10;class i{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,t,n={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((t=>{if(t&&OpenC3Auth.setTokens(),null==this._cable){let e=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=s.Be(e)}return this._cable.subscriptions.create({channel:e,...i},n)}))}recordPing(){this._cable.connection.monitor.recordPing()}}},3069:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,o:()=>i});var s=n(814);n(9375),n(4293);class i{constructor(e,t,n="",s=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=t,this.usage=n,this.url=s}}class a{constructor(){(0,s.A)(this,"keyword",null),(0,s.A)(this,"parameters",[]),(0,s.A)(this,"filename",""),(0,s.A)(this,"line",""),(0,s.A)(this,"lineNumber",0),(0,s.A)(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(e,t,n=""){for(let s=1;s<=e;s++)if(void 0===this.parameters[s-1])throw new i(this,`Not enough parameters for ${this.keyword}.`,n,this.url);if(t&&void 0!==this.parameters[t])throw new i(this,`Too many parameters for ${this.keyword}.`,n,this.url)}remove_quotes(e){if(e.length<2)return e;let t=e.charAt(0);if('"'!==t&&"'"!==t)return e;let n=e.charAt(e.length-1);return t!==n?e:e.substring(1,e.length-1)}scan_string(e,t){if(!t.global)throw"rx must have 'global' flag set";let n=[];return e.replace(t,(function(e){return n.push(e),e})),n}parse_string(e,t,n,s,i){let a=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=t;let l=e.split("\n"),r=l.length;for(let o=0;o<r;o++){this.lineNumber=o+1;let e=l[o].trim();if(0===e.length)continue;if(!0===a){if("#"===e[0])continue;e=e.substring(1,e.length)}let t=e.charAt(e.length-1),r=!1;switch(t){case"+":r=!0;case"\\":let t=e.substring(0,e.length-1).trim();this.line+=t.substring(0,t.length-1),r&&(this.line+="\n"),a=!0;continue;case"&":this.line+=e.substring(0,e.length-1);continue;default:this.line+=e}a=!1;let c=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,d=this.scan_string(this.line,c),u="";if(d.length>0&&(u+=d[0]),0===u.length||"#"===u.charAt(0)?this.keyword=null:this.keyword=u.toUpperCase(),this.parameters=[],null===this.keyword){n&&i(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let m=d.length;if(m>1)for(let n=1;n<m;n++){let e=d[n];if(e.length>0&&"#"===e.charAt(0))break;s?this.parameters.push(this.remove_quotes(e)):this.parameters.push(e)}i(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}},4364:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var s=n(814),i=(n(7107),n(2482),n(7067),n(4147),n(2682),n(785),n(8357),n(6196),n(821),n(6554),n(8472),n(7404),n(5803),n(3912),n(7010),n(2673));class a{constructor(){(0,s.A)(this,"id",1)}async exec(e,t,n={},s={},a=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(r){OpenC3Auth.login()}this.id=this.id+1;try{n["scope"]=window.openc3Scope;const l=await i.A.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:a});return l.data.result}catch(r){var l=new Error;throw r.response?(l.name=r.response.data.error.data.class,l.message=r.response.data.error.data.message):r.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(null!==e&&"object"===typeof 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}encode_openc3_type(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}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,t,...n){return this.exec("interface_cmd",[e,t,...n])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,n){return this.exec("get_item",[e,t,n])}get_param(e,t,n){return this.exec("get_param",[e,t,n])}get_parameter(e,t,n){return this.exec("get_parameter",[e,t,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_telemetry",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,t,n,s=30){const i=await this.exec("get_tlm_packet",[e,t],{type:n,stale_time:s});if(null!=i)for(var a=i.length,l=null,r=0;r<a;r++)l=this.decode_openc3_type(i[r][1]),null!==l&&(i[r][1]=l);return i}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30,n=null){let s={stale_time:t};null!==n&&(s["cache_timeout"]=n);const i=await this.exec("get_tlm_values",[e],s,{},1e4);for(var a=i[0].length,l=null,r=0;r<a;r++)l=this.decode_openc3_type(i[0][r]),null!==l&&(i[0][r]=l);return i}get_limits(e,t,n){return this.exec("get_limits",[e,t,n])}async tlm(e,t,n,s="CONVERTED"){let i=null;if(void 0===t)i=await this.exec("tlm",[e]);else if(void 0===n){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){var a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,a}i=await this.exec("tlm",[e],{type:t})}else i=await this.exec("tlm",[e,t,n],{type:s});var l=this.decode_openc3_type(i);return null!==l&&(i=l),i}async inject_tlm(e,t,n=null,s="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:s})}set_tlm(e,t,n,s){return this.exec("set_tlm",[e,t,n],{type:s})}override_tlm(e,t,n,s){return this.exec("override_tlm",[e,t,n],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,s){return this.exec("normalize_tlm",[e,t,n],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_command",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,n,s="CONVERTED"){return this.exec("get_cmd_value",[e,t,n,s])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,n,s,i){var a=null;for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(a=this.encode_openc3_type(s[l]),null!==a&&(s[l]=a));return this.exec(e,[t,n,s],{},i)}get_cmd_hazardous(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}cmd(e,t,n,s={}){return void 0===t?this.exec("cmd",e,{},s):this._cmd("cmd",e,t,n,s)}cmd_no_range_check(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}cmd_raw(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}cmd_raw_no_range_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}cmd_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}cmd_no_checks(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}cmd_raw_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}cmd_raw_no_checks(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}build_cmd(e,t,n){return void 0===t?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,n)}build_command(e,t,n){return void 0===t?this.exec("build_command",e):this._cmd("build_command",e,t,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,n){return this.exec("save_config",[e,t,n])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,n){return this.exec("enable_limits",[e,t,n])}disable_limits(e,t,n){return this.exec("disable_limits",[e,t,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}save_setting(e,t){return this.exec("save_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),s=new Uint8Array(n);return Array.from(s).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}},880:(e,t,n)=>{"use strict";function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",t="e5a35cbc5e9a0832f31495c1d4eb1662295ebd3f",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:875}},4:{start:{line:1,column:609},end:{line:1,column:651}},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:593},end:{line:1,column:594}},loc:{start:{line:1,column:608},end:{line:1,column:652}},line:1}},branchMap:{0:{loc:{start:{line:1,column:77},end:{line:1,column:871}},type:"cond-expr",locations:[{start:{line:1,column:99},end:{line:1,column:244}},{start:{line:1,column:245},end:{line:1,column:871}}],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:"e5a35cbc5e9a0832f31495c1d4eb1662295ebd3f"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=a);var r=l[e];return s=function(){return r},r}n.d(t,{A:()=>m}),s(),s().s[0]++;var i=function(){s().f[0]++;var e=(s().s[1]++,this),t=(s().s[2]++,e._self._c);return s().s[3]++,t("div",[null===e.states?(s().b[0][0]++,t("v-text-field",{attrs:{value:e.textfieldValue,"hide-details":"",dense:"","data-test":"cmd-param-value"},on:{change:e.handleChange}})):(s().b[0][1]++,t("v-container",[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",[t("v-select",{class:e.stateClass(),staticStyle:{},attrs:{items:e.states,"item-text":"label","item-value":"value","hide-details":"",dense:"",outlined:"","data-test":"cmd-param-select"},on:{change:e.handleStateChange},model:{value:e.value.selected_state,callback:function(t){s().f[1]++,s().s[4]++,e.$set(e.value,"selected_state",t)},expression:"value.selected_state"}})],1),e._v(" "),t("v-col",[t("v-text-field",{attrs:{value:e.stateValue,"hide-details":"",dense:"","data-test":"cmd-param-value"},on:{change:e.handleChange}})],1)],1)],1))],1)},a=(s().s[5]++,[]),l=(n(9375),n(7010),n(3345));function r(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",t="56907c28c85924033340a74f2515cc92bde8a313",n=new Function("return this")(),s="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",statementMap:{0:{start:{line:17,column:22},end:{line:24,column:7}},1:{start:{line:28,column:4},end:{line:30,column:5}},2:{start:{line:33,column:4},end:{line:33,column:37}},3:{start:{line:37,column:6},end:{line:37,column:49}},4:{start:{line:40,column:6},end:{line:44,column:7}},5:{start:{line:41,column:8},end:{line:41,column:49}},6:{start:{line:43,column:8},end:{line:43,column:29}},7:{start:{line:48,column:6},end:{line:70,column:7}},8:{start:{line:49,column:25},end:{line:49,column:27}},9:{start:{line:50,column:8},end:{line:59,column:9}},10:{start:{line:51,column:10},end:{line:58,column:11}},11:{start:{line:52,column:12},end:{line:57,column:14}},12:{start:{line:60,column:8},end:{line:64,column:10}},13:{start:{line:67,column:8},end:{line:67,column:25}},14:{start:{line:69,column:8},end:{line:69,column:19}},15:{start:{line:75,column:6},end:{line:75,column:61}},16:{start:{line:78,column:6},end:{line:78,column:28}},17:{start:{line:79,column:6},end:{line:79,column:37}},18:{start:{line:80,column:6},end:{line:111,column:7}},19:{start:{line:81,column:29},end:{line:81,column:47}},20:{start:{line:82,column:35},end:{line:82,column:53}},21:{start:{line:83,column:8},end:{line:106,column:9}},22:{start:{line:84,column:10},end:{line:105,column:11}},23:{start:{line:85,column:12},end:{line:85,column:44}},24:{start:{line:86,column:12},end:{line:86,column:46}},25:{start:{line:87,column:12},end:{line:91,column:13}},26:{start:{line:88,column:14},end:{line:88,column:42}},27:{start:{line:90,column:14},end:{line:90,column:41}},28:{start:{line:92,column:12},end:{line:92,column:17}},29:{start:{line:94,column:17},end:{line:105,column:11}},30:{start:{line:95,column:12},end:{line:95,column:34}},31:{start:{line:96,column:12},end:{line:96,column:46}},32:{start:{line:97,column:12},end:{line:101,column:13}},33:{start:{line:98,column:14},end:{line:98,column:42}},34:{start:{line:100,column:14},end:{line:100,column:41}},35:{start:{line:102,column:12},end:{line:102,column:17}},36:{start:{line:104,column:12},end:{line:104,column:40}},37:{start:{line:107,column:8},end:{line:107,column:50}},38:{start:{line:108,column:8},end:{line:108,column:62}},39:{start:{line:110,column:8},end:{line:110,column:40}},40:{start:{line:112,column:6},end:{line:112,column:37}},41:{start:{line:116,column:33},end:{line:116,column:37}},42:{start:{line:117,column:27},end:{line:117,column:31}},43:{start:{line:118,column:6},end:{line:129,column:7}},44:{start:{line:118,column:23},end:{line:118,column:24}},45:{start:{line:119,column:8},end:{line:128,column:9}},46:{start:{line:120,column:10},end:{line:124,column:11}},47:{start:{line:121,column:12},end:{line:121,column:40}},48:{start:{line:123,column:12},end:{line:123,column:39}},49:{start:{line:125,column:10},end:{line:125,column:57}},50:{start:{line:126,column:10},end:{line:126,column:32}},51:{start:{line:127,column:10},end:{line:127,column:15}},52:{start:{line:130,column:6},end:{line:130,column:60}},53:{start:{line:131,column:6},end:{line:140,column:7}},54:{start:{line:132,column:8},end:{line:132,column:36}},55:{start:{line:133,column:8},end:{line:133,column:48}},56:{start:{line:138,column:8},end:{line:138,column:39}},57:{start:{line:139,column:8},end:{line:139,column:39}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:17,column:15},end:{line:17,column:16}},loc:{start:{line:17,column:22},end:{line:24,column:7}},line:17},1:{name:"(anonymous_1)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:9},end:{line:31,column:3}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:32,column:2},end:{line:32,column:3}},loc:{start:{line:32,column:12},end:{line:34,column:3}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:36,column:4},end:{line:36,column:5}},loc:{start:{line:36,column:21},end:{line:38,column:5}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:39,column:4},end:{line:39,column:5}},loc:{start:{line:39,column:17},end:{line:45,column:5}},line:39},5:{name:"(anonymous_5)",decl:{start:{line:46,column:4},end:{line:46,column:5}},loc:{start:{line:46,column:13},end:{line:71,column:5}},line:46},6:{name:"(anonymous_6)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:17},end:{line:76,column:5}},line:74},7:{name:"(anonymous_7)",decl:{start:{line:77,column:4},end:{line:77,column:5}},loc:{start:{line:77,column:24},end:{line:113,column:5}},line:77},8:{name:"(anonymous_8)",decl:{start:{line:115,column:4},end:{line:115,column:5}},loc:{start:{line:115,column:29},end:{line:141,column:5}},line:115}},branchMap:{0:{loc:{start:{line:40,column:6},end:{line:44,column:7}},type:"if",locations:[{start:{line:40,column:6},end:{line:44,column:7}},{start:{line:42,column:13},end:{line:44,column:7}}],line:40},1:{loc:{start:{line:48,column:6},end:{line:70,column:7}},type:"if",locations:[{start:{line:48,column:6},end:{line:70,column:7}},{start:{line:68,column:13},end:{line:70,column:7}}],line:48},2:{loc:{start:{line:51,column:10},end:{line:58,column:11}},type:"if",locations:[{start:{line:51,column:10},end:{line:58,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:51},3:{loc:{start:{line:75,column:13},end:{line:75,column:61}},type:"cond-expr",locations:[{start:{line:75,column:36},end:{line:75,column:52}},{start:{line:75,column:55},end:{line:75,column:61}}],line:75},4:{loc:{start:{line:80,column:6},end:{line:111,column:7}},type:"if",locations:[{start:{line:80,column:6},end:{line:111,column:7}},{start:{line:109,column:13},end:{line:111,column:7}}],line:80},5:{loc:{start:{line:84,column:10},end:{line:105,column:11}},type:"if",locations:[{start:{line:84,column:10},end:{line:105,column:11}},{start:{line:94,column:17},end:{line:105,column:11}}],line:84},6:{loc:{start:{line:87,column:12},end:{line:91,column:13}},type:"if",locations:[{start:{line:87,column:12},end:{line:91,column:13}},{start:{line:89,column:19},end:{line:91,column:13}}],line:87},7:{loc:{start:{line:94,column:17},end:{line:105,column:11}},type:"if",locations:[{start:{line:94,column:17},end:{line:105,column:11}},{start:{line:103,column:17},end:{line:105,column:11}}],line:94},8:{loc:{start:{line:97,column:12},end:{line:101,column:13}},type:"if",locations:[{start:{line:97,column:12},end:{line:101,column:13}},{start:{line:99,column:19},end:{line:101,column:13}}],line:97},9:{loc:{start:{line:119,column:8},end:{line:128,column:9}},type:"if",locations:[{start:{line:119,column:8},end:{line:128,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:119},10:{loc:{start:{line:120,column:10},end:{line:124,column:11}},type:"if",locations:[{start:{line:120,column:10},end:{line:124,column:11}},{start:{line:122,column:17},end:{line:124,column:11}}],line:120},11:{loc:{start:{line:131,column:6},end:{line:140,column:7}},type:"if",locations:[{start:{line:131,column:6},end:{line:140,column:7}},{start:{line:137,column:13},end:{line:140,column:7}}],line:131}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0]},inputSourceMap:{version:3,sources:["CommandParameterEditor.vue"],names:[],mappings:";AAgEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"CommandParameterEditor.vue",sourceRoot:"src/tools/CommandSender",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-text-field\n v-if=\"states === null\"\n :value=\"textfieldValue\"\n hide-details\n dense\n @change=\"handleChange\"\n data-test=\"cmd-param-value\"\n />\n <v-container v-else>\n <v-row no-gutters>\n <v-col>\n <v-select\n :items=\"states\"\n v-model=\"value.selected_state\"\n @change=\"handleStateChange\"\n item-text=\"label\"\n item-value=\"value\"\n style=\"primary\"\n :class=\"stateClass()\"\n hide-details\n dense\n outlined\n data-test=\"cmd-param-select\"\n />\n </v-col>\n <v-col>\n <v-text-field\n :value=\"stateValue\"\n @change=\"handleChange\"\n hide-details\n dense\n data-test=\"cmd-param-value\"\n />\n </v-col>\n </v-row>\n </v-container>\n </div>\n</template>\n\n<script>\nimport Utilities from '@/tools/CommandSender/utilities'\n\nexport default {\n mixins: [Utilities],\n model: {\n prop: 'initialValue',\n event: 'input',\n },\n props: {\n statesInHex: {\n type: Boolean,\n default: false,\n },\n initialValue: {\n type: Object,\n default: () => ({\n val: '',\n states: null,\n selected_state: null,\n selected_state_label: '',\n manual_value: null,\n hazardous: false,\n }),\n },\n },\n data() {\n return {\n value: this.initialValue,\n }\n },\n created() {\n this.handleChange(this.value.val)\n },\n computed: {\n textfieldValue() {\n return this.convertToString(this.value.val)\n },\n stateValue() {\n if (this.statesInHex) {\n return '0x' + this.value.val.toString(16)\n } else {\n return this.value.val\n }\n },\n states() {\n // check using != because compare with null\n if (this.value.states != null) {\n var calcStates = []\n for (var key in this.value.states) {\n if (Object.prototype.hasOwnProperty.call(this.value.states, key)) {\n calcStates.push({\n label: key,\n value: this.value.states[key].value,\n // states which are not hazardous don't have this property set so they are undefined\n hazardous: this.value.states[key].hazardous,\n })\n }\n }\n calcStates.push({\n label: 'MANUALLY ENTERED',\n value: 'MANUALLY ENTERED',\n hazardous: undefined, // see above\n })\n\n // TBD pick default better (use actual default instead of just first item in list)\n return calcStates\n } else {\n return null\n }\n },\n },\n methods: {\n stateClass() {\n return this.value.hazardous ? 'hazardous mr-4' : 'mr-4'\n },\n handleChange(value) {\n this.value.val = value\n this.value.manual_value = value\n if (this.value.states) {\n var selected_state = 'MANUALLY ENTERED'\n var selected_state_label = 'MANUALLY_ENTERED'\n for (const state of this.states) {\n if (state.value === parseInt(value)) {\n selected_state = parseInt(value)\n selected_state_label = state.label\n if (state.hazardous === undefined) {\n this.value.hazardous = false\n } else {\n this.value.hazardous = true\n }\n break\n // If they have ascii states the value might match the state value\n } else if (state.value === value) {\n selected_state = value\n selected_state_label = state.label\n if (state.hazardous === undefined) {\n this.value.hazardous = false\n } else {\n this.value.hazardous = true\n }\n break\n } else {\n this.value.hazardous = false\n }\n }\n this.value.selected_state = selected_state\n this.value.selected_state_label = selected_state_label\n } else {\n this.value.selected_state = null\n }\n this.$emit('input', this.value)\n },\n\n handleStateChange(value) {\n var selected_state_label = null\n var selected_state = null\n for (var index = 0; index < this.states.length; index++) {\n if (value === this.states[index].value) {\n if (this.states[index].hazardous === undefined) {\n this.value.hazardous = false\n } else {\n this.value.hazardous = true\n }\n selected_state_label = this.states[index].label\n selected_state = value\n break\n }\n }\n this.value.selected_state_label = selected_state_label\n if (selected_state_label === 'MANUALLY ENTERED') {\n this.value.hazardous = false\n this.value.val = this.value.manual_value\n // Stop propagation of the click event so the editor stays active\n // to let the operator enter a manual value.\n // event.originalEvent.stopPropagation()\n } else {\n this.value.val = selected_state\n this.$emit('input', this.value)\n }\n },\n },\n}\n<\/script>\n<style scoped>\n/* This allows Value or State selection to be wider and show state names */\n.container :deep(.v-select__selections) {\n width: auto;\n}\n.v-overflow-btn {\n margin-top: 0px;\n}\n.container {\n padding: 0px;\n}\n.hazardous :deep(.v-select__selection) {\n color: rgb(255, 220, 0);\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"56907c28c85924033340a74f2515cc92bde8a313"},a=n[s]||(n[s]={});a[e]&&a[e].hash===t||(a[e]=i);var l=a[e];return r=function(){return l},l}r();const o={mixins:[l.A],model:{prop:"initialValue",event:"input"},props:{statesInHex:{type:Boolean,default:!1},initialValue:{type:Object,default:()=>(r().f[0]++,r().s[0]++,{val:"",states:null,selected_state:null,selected_state_label:"",manual_value:null,hazardous:!1})}},data(){return r().f[1]++,r().s[1]++,{value:this.initialValue}},created(){r().f[2]++,r().s[2]++,this.handleChange(this.value.val)},computed:{textfieldValue(){return r().f[3]++,r().s[3]++,this.convertToString(this.value.val)},stateValue(){return r().f[4]++,r().s[4]++,this.statesInHex?(r().b[0][0]++,r().s[5]++,"0x"+this.value.val.toString(16)):(r().b[0][1]++,r().s[6]++,this.value.val)},states(){if(r().f[5]++,r().s[7]++,null!=this.value.states){r().b[1][0]++;var e=(r().s[8]++,[]);for(var t in r().s[9]++,this.value.states)r().s[10]++,Object.prototype.hasOwnProperty.call(this.value.states,t)?(r().b[2][0]++,r().s[11]++,e.push({label:t,value:this.value.states[t].value,hazardous:this.value.states[t].hazardous})):r().b[2][1]++;return r().s[12]++,e.push({label:"MANUALLY ENTERED",value:"MANUALLY ENTERED",hazardous:void 0}),r().s[13]++,e}return r().b[1][1]++,r().s[14]++,null}},methods:{stateClass(){return r().f[6]++,r().s[15]++,this.value.hazardous?(r().b[3][0]++,"hazardous mr-4"):(r().b[3][1]++,"mr-4")},handleChange(e){if(r().f[7]++,r().s[16]++,this.value.val=e,r().s[17]++,this.value.manual_value=e,r().s[18]++,this.value.states){r().b[4][0]++;var t=(r().s[19]++,"MANUALLY ENTERED"),n=(r().s[20]++,"MANUALLY_ENTERED");r().s[21]++;for(const s of this.states){if(r().s[22]++,s.value===parseInt(e)){r().b[5][0]++,r().s[23]++,t=parseInt(e),r().s[24]++,n=s.label,r().s[25]++,void 0===s.hazardous?(r().b[6][0]++,r().s[26]++,this.value.hazardous=!1):(r().b[6][1]++,r().s[27]++,this.value.hazardous=!0),r().s[28]++;break}if(r().b[5][1]++,r().s[29]++,s.value===e){r().b[7][0]++,r().s[30]++,t=e,r().s[31]++,n=s.label,r().s[32]++,void 0===s.hazardous?(r().b[8][0]++,r().s[33]++,this.value.hazardous=!1):(r().b[8][1]++,r().s[34]++,this.value.hazardous=!0),r().s[35]++;break}r().b[7][1]++,r().s[36]++,this.value.hazardous=!1}r().s[37]++,this.value.selected_state=t,r().s[38]++,this.value.selected_state_label=n}else r().b[4][1]++,r().s[39]++,this.value.selected_state=null;r().s[40]++,this.$emit("input",this.value)},handleStateChange(e){r().f[8]++;var t=(r().s[41]++,null),n=(r().s[42]++,null);r().s[43]++;for(var s=(r().s[44]++,0);s<this.states.length;s++){if(r().s[45]++,e===this.states[s].value){r().b[9][0]++,r().s[46]++,void 0===this.states[s].hazardous?(r().b[10][0]++,r().s[47]++,this.value.hazardous=!1):(r().b[10][1]++,r().s[48]++,this.value.hazardous=!0),r().s[49]++,t=this.states[s].label,r().s[50]++,n=e,r().s[51]++;break}r().b[9][1]++}r().s[52]++,this.value.selected_state_label=t,r().s[53]++,"MANUALLY ENTERED"===t?(r().b[11][0]++,r().s[54]++,this.value.hazardous=!1,r().s[55]++,this.value.val=this.value.manual_value):(r().b[11][1]++,r().s[56]++,this.value.val=n,r().s[57]++,this.$emit("input",this.value))}}},c=o;n(9685);var d=n(2401),u=(0,d.A)(c,i,a,!1,null,"2ffd785b",null);const m=u.exports},6729:(e,t,n)=>{"use strict";function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",t="b49231d91924460812fdca0530b07caa84150a1e",n=new Function("return this")(),i="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:6451}},4:{start:{line:1,column:434},end:{line:1,column:467}},5:{start:{line:1,column:494},end:{line:1,column:521}},6:{start:{line:1,column:892},end:{line:1,column:906}},7:{start:{line:1,column:1243},end:{line:1,column:1457}},8:{start:{line:1,column:1382},end:{line:1,column:1419}},9:{start:{line:1,column:1763},end:{line:1,column:1789}},10:{start:{line:1,column:2101},end:{line:1,column:2320}},11:{start:{line:1,column:3043},end:{line:1,column:3067}},12:{start:{line:1,column:3167},end:{line:1,column:3358}},13:{start:{line:1,column:3231},end:{line:1,column:3256}},14:{start:{line:1,column:3256},end:{line:1,column:3297}},15:{start:{line:1,column:3567},end:{line:1,column:3586}},16:{start:{line:1,column:3732},end:{line:1,column:3758}},17:{start:{line:1,column:4239},end:{line:1,column:4269}},18:{start:{line:1,column:4455},end:{line:1,column:4483}},19:{start:{line:1,column:5282},end:{line:1,column:5304}},20:{start:{line:1,column:5802},end:{line:1,column:5827}},21:{start:{line:1,column:6043},end:{line:1,column:6078}},22:{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:417},end:{line:1,column:418}},loc:{start:{line:1,column:433},end:{line:1,column:468}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:477},end:{line:1,column:478}},loc:{start:{line:1,column:493},end:{line:1,column:522}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:876},end:{line:1,column:877}},loc:{start:{line:1,column:891},end:{line:1,column:907}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1224},end:{line:1,column:1225}},loc:{start:{line:1,column:1242},end:{line:1,column:1458}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1366},end:{line:1,column:1367}},loc:{start:{line:1,column:1381},end:{line:1,column:1420}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1746},end:{line:1,column:1747}},loc:{start:{line:1,column:1762},end:{line:1,column:1790}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2077},end:{line:1,column:2078}},loc:{start:{line:1,column:2100},end:{line:1,column:2321}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:3027},end:{line:1,column:3028}},loc:{start:{line:1,column:3042},end:{line:1,column:3068}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:3146},end:{line:1,column:3147}},loc:{start:{line:1,column:3166},end:{line:1,column:3359}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3214},end:{line:1,column:3215}},loc:{start:{line:1,column:3230},end:{line:1,column:3298}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3551},end:{line:1,column:3552}},loc:{start:{line:1,column:3566},end:{line:1,column:3587}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:3716},end:{line:1,column:3717}},loc:{start:{line:1,column:3731},end:{line:1,column:3759}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:4222},end:{line:1,column:4223}},loc:{start:{line:1,column:4238},end:{line:1,column:4270}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4439},end:{line:1,column:4440}},loc:{start:{line:1,column:4454},end:{line:1,column:4484}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:5266},end:{line:1,column:5267}},loc:{start:{line:1,column:5281},end:{line:1,column:5305}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:5786},end:{line:1,column:5787}},loc:{start:{line:1,column:5801},end:{line:1,column:5828}},line:1},17:{name:"(anonymous_17)",decl:{start:{line:1,column:6026},end:{line:1,column:6027}},loc:{start:{line:1,column:6042},end:{line:1,column:6079}},line:1}},branchMap:{0:{loc:{start:{line:1,column:542},end:{line:1,column:1498}},type:"cond-expr",locations:[{start:{line:1,column:566},end:{line:1,column:1489}},{start:{line:1,column:1490},end:{line:1,column:1498}}],line:1},1:{loc:{start:{line:1,column:2539},end:{line:1,column:2820}},type:"cond-expr",locations:[{start:{line:1,column:2562},end:{line:1,column:2811}},{start:{line:1,column:2812},end:{line:1,column:2820}}],line:1},2:{loc:{start:{line:1,column:2596},end:{line:1,column:2807}},type:"cond-expr",locations:[{start:{line:1,column:2619},end:{line:1,column:2798}},{start:{line:1,column:2799},end:{line:1,column:2807}}],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},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},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b49231d91924460812fdca0530b07caa84150a1e"},l=n[i]||(n[i]={});l[e]&&l[e].hash===t||(l[e]=a);var r=l[e];return s=function(){return r},r}n.r(t),n.d(t,{default:()=>d}),s(),s().s[0]++;var i=function(){s().f[0]++;var e=(s().s[1]++,this),t=(s().s[2]++,e._self._c);return s().s[3]++,t("div",[t("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),t("v-card",[t("div",{staticStyle:{padding:"10px"}},[t("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(t){return s().f[1]++,s().s[4]++,e.commandChanged(t)},click:function(t){return s().f[2]++,s().s[5]++,e.buildCmd(t)}}})],1),e._v(" "),0!==e.rows.length?(s().b[0][0]++,t("v-card",[t("v-card-title",[e._v("\n Parameters\n "),t("v-spacer"),e._v(" "),t("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){s().f[3]++,s().s[6]++,e.search=t},expression:"search"}})],1),e._v(" "),t("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({item:n}){return s().f[4]++,s().s[7]++,[t("command-parameter-editor",{attrs:{"states-in-hex":e.statesInHex},model:{value:n.val_and_states,callback:function(t){s().f[5]++,s().s[8]++,e.$set(n,"val_and_states",t)},expression:"item.val_and_states"}})]}}],null,!1,1123654540)})],1)):(s().b[0][1]++,e._e()),e._v(" "),t("div",{staticClass:"pa-3"},[e._v("Status: "+e._s(e.status))])],1),e._v(" "),t("div",{staticStyle:{height:"15px"}}),e._v(" "),t("multipane",{staticClass:"horizontal-panes",attrs:{layout:"horizontal"},on:{paneResize:function(t){return s().f[6]++,s().s[9]++,e.editor.resize()}}},[t("v-row",[t("v-col",[t("v-card",{staticClass:"pb-2"},[t("v-card-subtitle",[e._v("\n Editable Command History: (Pressing Enter on the line re-executes\n the command)\n "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return s().f[7]++,s().s[10]++,[t("div",e._g(e._b({staticClass:"float-right"},"div",i,!1),n),[t("v-btn",{attrs:{icon:"","data-test":"clear-history"},on:{click:e.clearHistory}},[t("v-icon",[e._v(" mdi-delete ")])],1)],1)]}}])},[e._v(" "),t("span",[e._v(" Clear History ")])])],1),e._v(" "),t("v-row",{staticClass:"mt-2 mb-2"},[t("pre",{ref:"editor",staticClass:"editor",attrs:{"data-test":"sender-history"}})])],1)],1),e._v(" "),e.screenDefinition?(s().b[1][0]++,t("v-col",{attrs:{md:"auto"}},[e.screenDefinition?(s().b[2][0]++,t("openc3-screen",{attrs:{target:e.screenTarget,screen:e.screenName,definition:e.screenDefinition,keywords:e.keywords,count:e.screenCount,showClose:!1}})):(s().b[2][1]++,e._e())],1)):(s().b[1][1]++,e._e())],1)],1),e._v(" "),t("div",{staticStyle:{height:"15px"}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){s().f[8]++,s().s[11]++,e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,i){return s().f[9]++,s().s[12]++,t("v-list-item",{key:i,on:{click:function(e){return s().f[10]++,s().s[13]++,e.stopPropagation(),s().s[14]++,n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.targetName,"packet-name":e.commandName,"item-name":e.parameterName,type:"cmd"},model:{value:e.viewDetails,callback:function(t){s().f[11]++,s().s[15]++,e.viewDetails=t},expression:"viewDetails"}}),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displayErrorDialog,callback:function(t){s().f[12]++,s().s[16]++,e.displayErrorDialog=t},expression:"displayErrorDialog"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Error ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"mx-1"},[t("v-row",{staticClass:"my-2"},[t("v-card-text",[t("span",{domProps:{textContent:e._s(e.status)}})])],1),e._v(" "),t("v-row",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{color:"primary","data-test":"error-dialog-ok"},on:{click:function(t){s().f[13]++,s().s[17]++,e.displayErrorDialog=!1}}},[e._v("\n Ok\n ")])],1)],1)])],1)],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displaySendHazardous,callback:function(t){s().f[14]++,s().s[18]++,e.displaySendHazardous=t},expression:"displaySendHazardous"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Hazardous Warning ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"mx-1"},[t("v-row",{staticClass:"my-2"},[t("span",[e._v("\n Warning: Command "+e._s(e.hazardousCommand)+" is Hazardous. Send?\n ")])]),e._v(" "),t("v-row",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{outlined:""},on:{click:e.cancelHazardousCmd}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"primary mx-1",on:{click:e.sendHazardousCmd}},[e._v("\n Send\n ")])],1)],1)])],1)],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displaySendRaw,callback:function(t){s().f[15]++,s().s[19]++,e.displaySendRaw=t},expression:"displaySendRaw"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Send Raw ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"mx-1"},[t("v-row",{staticClass:"my-2"},[t("v-col",[e._v("Interface:")]),e._v(" "),t("v-col",[t("v-select",{attrs:{solo:"","hide-details":"",dense:"",items:e.interfaces,"item-text":"label","item-value":"value"},model:{value:e.selectedInterface,callback:function(t){s().f[16]++,s().s[20]++,e.selectedInterface=t},expression:"selectedInterface"}})],1)],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",[e._v("Filename:")]),e._v(" "),t("v-col",[t("input",{attrs:{type:"file"},on:{change:function(t){return s().f[17]++,s().s[21]++,e.selectRawCmdFile(t)}}})])],1),e._v(" "),t("v-row",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{outlined:"","data-test":"raw-cancel"},on:{click:e.cancelRawCmd}},[e._v("\n Cancel\n ")]),e._v(" "),t("v-btn",{staticClass:"primary",attrs:{"data-test":"raw-ok"},on:{click:e.sendRawCmd}},[e._v("\n Ok\n ")])],1)],1)])],1)],1)],1)},a=(s().s[22]++,[]),l=n(5771);const r=l.A;n(3617);var o=n(2401),c=(0,o.A)(r,i,a,!1,null,"4d775f22",null);const d=c.exports},9821:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Details ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-title",[e._v("\n "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+"\n ")]),e._v(" "),t("v-card-subtitle",[e._v(e._s(e.details.description))]),e._v(" "),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),e._v(" "),t("v-col",[e._v(e._s(e.rawValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.convertedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.formattedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),e._v(" "),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e._v(" "),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),e._v(" "),t("v-col",[e._v(e._s(e.details.data_type))])],1),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),e._v(" "),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),e._v(" "),t("v-col",[e._v(e._s(e.details.format_string))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e._v(" "),e.details.read_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.read_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.read_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e._v(" "),e.details.write_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.write_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.write_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),e._v(" "),t("v-col",[e._v(e._s(e.details.id_value))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units_full))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),e._v(" "),t("v-col",[e._v(e._s(e.details.endianness))])],1),e._v(" "),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,s){return t("v-row",{key:s,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(s))]),e._v(" "),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,s){return t("v-row",{key:s,attrs:{"no-gutters":""}},["enabled"===s?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===s?t("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(t){e.$set(e.details.limits,"enabled",t)},expression:"details.limits.enabled"}}):e._e(),e._v(" "),"enabled"!==s?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(s))]):e._e(),e._v(" "),"enabled"!==s?t("div",[e._v(e._s(e.formatLimit(n)))]):e._e(),e._v(" "),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,s){return t("v-row",{key:s,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(s))]),e._v(" "),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},i=[],a=n(4364);const l={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},created(){this.api=new a.x},beforeDestroy(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then((e=>{for(var t=0;t<e.length;t++){let n=null;if("String"===e[t][0]["json_class"]&&void 0!==e[t][0]["raw"]?n=e[t][0]["raw"]:"BLOCK"===this.details.data_type&&(n=e[t][0]),null!==n){n=n.slice(0,parseInt(this.details.bit_size)/8);let s=!1;n.length>64&&(s=!0),e[t][0]=Array.from(n.slice(0,64),(function(e){return" "===e?"20":("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),s&&(e[t][0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${e[0][0]} (0x${e[0][0].toString(16).toUpperCase()})`:this.rawValue=e[0][0],this.convertedValue=e[1][0],this.formattedValue=e[2][0],this.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{async requestDetails(){"tlm"===this.type?await this.api.get_item(this.targetName,this.packetName,this.itemName).then((e=>{if(this.details=e,0===Object.keys(e.limits).length)this.details.limits=null;else{let t=!1;e.limits.enabled&&(t=!0,delete e.limits.enabled),this.details.limits={enabled:t,...e.limits}}})):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((e=>{this.details=e}))},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(e){return e.hasOwnProperty("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.hasOwnProperty("red_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},r=l;n(1727);var o=n(2401),c=(0,o.A)(r,s,i,!1,null,"6659f972",null);const d=c.exports},2056:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var s=function(){var e=this,t=e._self._c;return t("div",[t("v-card",{nativeOn:{click:function(t){return e.$emit("click")}}},[t("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[e._v(" "),t("span",[e._v("Errors")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(t){e.editGraph=!0}}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Edit ")])]),e._v(" "),t("v-spacer"),e._v(" "),t("span",[e._v(e._s(e.title))]),e._v(" "),t("v-spacer"),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v("\n mdi-arrow-collapse\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v("\n mdi-arrow-expand\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v("\n mdi-arrow-collapse-horizontal\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v("\n mdi-arrow-expand-horizontal\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v("\n mdi-arrow-collapse-vertical\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v("\n mdi-arrow-expand-vertical\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(t){return e.$emit("close-graph")}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Close ")])])],1),e._v(" "),t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[t("div",{attrs:{id:`chart${e.id}`}}),e._v(" "),t("div",{attrs:{id:"betweenCharts"}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:`overview${e.id}`}})])])],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"700"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("input")},input:function(t){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(t){e.editGraph=t},expression:"editGraph"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Edit Graph")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",{staticClass:"pa-3"},[t("v-tabs",{staticClass:"ml-3",model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("v-tab",{key:0},[e._v(" Settings ")]),e._v(" "),t("v-tab",{key:1},[e._v(" Scale / Lines ")]),e._v(" "),t("v-tab",{key:1},[e._v(" Items ")])],1),e._v(" "),t("v-tabs-items",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("v-tab-item",{key:0,staticClass:"tab",attrs:{eager:"true"}},[t("div",{staticClass:"edit-box"},[t("v-row",[t("v-col",[t("v-card-text",{staticClass:"pa-0"},[t("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1)],1),e._v(" "),t("v-col",{staticStyle:{}},[t("v-select",{staticStyle:{"max-width":"280px"},attrs:{label:"Legend Position",dense:"",outlined:"","hide-details":"",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(t){e.legendPosition=t},expression:"legendPosition"}})],1)],1)],1),e._v(" "),t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a start date/time for the graph. Leave blank for start\n now.\n ")]),e._v(" "),t("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time","date-time":e.graphStartDateTime},on:{"date-time":function(t){e.graphStartDateTime=t}}}),e._v(" "),t("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a end date/time for the graph. Leave blank for continuous\n real-time graphing.\n ")]),e._v(" "),t("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(t){e.graphEndDateTime=t}}})],1)]),e._v(" "),t("v-tab-item",{key:1,staticClass:"tab",attrs:{eager:"true"}},[t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("\n Set a min or max Y value to override automatic scaling\n ")]),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y Axis (Optional)",type:"number","data-test":"edit-graph-min-y"},model:{value:e.graphMinY,callback:function(t){e.graphMinY=t},expression:"graphMinY"}})],1),e._v(" "),t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Max Y Axis (Optional)",type:"number","data-test":"edit-graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1)],1),e._v(" "),t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("Add horizontal lines to the graph")]),e._v(" "),t("v-data-table",{attrs:{"item-key":"lineId","data-test":"edit-graph-lines",headers:e.lineHeaders,items:e.lines,"items-per-page":5,"footer-props":{itemsPerPageOptions:[5]}},scopedSlots:e._u([{key:"item.yValue",fn:function(n){return[t("v-edit-dialog",{attrs:{"return-value":n.item.yValue},on:{"update:returnValue":function(t){return e.$set(n.item,"yValue",t)},"update:return-value":function(t){return e.$set(n.item,"yValue",t)}},scopedSlots:e._u([{key:"input",fn:function(){return[t("v-text-field",{attrs:{label:"Edit","single-line":"",counter:""},model:{value:n.item.yValue,callback:function(t){e.$set(n.item,"yValue",t)},expression:"props.item.yValue"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.item.yValue)+"\n ")])]}},{key:"item.color",fn:function(n){return[t("v-edit-dialog",{attrs:{"return-value":n.item.color},on:{"update:returnValue":function(t){return e.$set(n.item,"color",t)},"update:return-value":function(t){return e.$set(n.item,"color",t)}},scopedSlots:e._u([{key:"input",fn:function(){return[t("v-select",{attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},model:{value:n.item.color,callback:function(t){e.$set(n.item,"color",t)},expression:"props.item.color"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.item.color)+"\n ")])]}},{key:"footer.prepend",fn:function(){return[t("v-btn",{staticStyle:{"margin-top":"3px"},attrs:{small:""},on:{click:e.addLine}},[e._v("\n New Horizontal Line\n ")]),e._v("\n Click to edit values, Enter to save\n "),t("v-spacer")]},proxy:!0},{key:"item.actions",fn:function({item:n}){return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),s),[t("v-btn",{attrs:{icon:"","data-test":`delete-line-icon${n.lineId}`},on:{click:()=>e.removeLine(n)}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no horizontal lines on this graph")])]},proxy:!0}])})],1)]),e._v(" "),t("v-tab-item",{key:2,staticClass:"tab",attrs:{eager:"true"}},[t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId","data-test":"edit-graph-items",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:i}){return[t("div",e._g(e._b({},"div",i,!1),s),[t("v-btn",{attrs:{icon:"","data-test":`delete-item-icon${n.itemId}`},on:{click:()=>e.removeItems([n])}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no items on this graph")])]},proxy:!0}])})],1)],1),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Errors")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),e._v(" "),t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),e._v(" "),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e._v(" "),e.editGraphMenu?t("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(t){e.editGraphMenu=t},expression:"editGraphMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){e.editGraph=!0}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("\n Edit "+e._s(e.title)+"\n ")])],1)],1)],1):e._e(),e._v(" "),e.editItem?t("graph-edit-item-dialog",{attrs:{colors:e.colors,item:e.selectedItem},on:{changeColor:e.changeColor,changeLimits:e.changeLimits,cancel:function(t){e.editItem=!1},close:e.closeEditItem},model:{value:e.editItem,callback:function(t){e.editItem=t},expression:"editItem"}}):e._e(),e._v(" "),e.itemMenu?t("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(t){e.itemMenu=t},expression:"itemMenu"}},[t("v-list",{attrs:{nav:"",dense:""}},[t("v-subheader",[e._v("\n "+e._s(e.selectedItem.targetName)+"\n "+e._s(e.selectedItem.packetName)+"\n "+e._s(e.selectedItem.itemName)+"\n ")]),e._v(" "),t("v-list-item",{on:{click:function(t){e.editItem=!0}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-pencil")])],1),e._v(" "),t("v-list-item-content",[t("v-list-item-title",[e._v(" Edit ")])],1)],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.removeItems([e.selectedItem])}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-delete")])],1),e._v(" "),t("v-list-item-content",[t("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e._v(" "),e.legendMenu?t("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(t){e.legendMenu=t},expression:"legendMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){return e.moveLegend("top")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("bottom")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("left")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},i=[],a=(n(9375),n(8605),n(7010),function(){var e=this,t=e._self._c;return t("div",[t("v-row",[t("v-col",[t("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("v-text-field",e._g({attrs:{label:e.dateLabel,name:`date${Date.now()}`,rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}},n))]}}])})],1),e._v(" "),t("v-col",[t("v-text-field",{attrs:{label:e.timeLabel,name:`time${Date.now()}`,rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1)],1)}),l=[],r=n(6375),o=n(4554),c=n(2509),d=n(3769);const u={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data(){return{date:null,time:null,rules:{required:e=>!!e||"Required",date:e=>{if(!e)return!0;try{return(0,r.f)((0,o.qg)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:e=>{if(!e)return!0;try{return(0,r.f)((0,o.qg)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules(){let e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules(){let e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created(){if(this.dateTime){let e=(0,c.a)(this.dateTime/1e6);this.date=(0,d.GP)(e,"yyyy-MM-dd"),this.time=(0,d.GP)(e,"HH:mm:ss")}},methods:{onChange(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},m=u;var h=n(2401),p=(0,h.A)(m,a,l,!1,null,null,null);const v=p.exports;var _=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"400"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-card-title",{staticClass:"mb-2"},[e._v("Edit Item")]),e._v(" "),t("v-card-text",[t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.editItem.valueType,callback:function(t){e.$set(e.editItem,"valueType",t)},expression:"editItem.valueType"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduction",items:e.reduction},model:{value:e.editItem.reduced,callback:function(t){e.$set(e.editItem,"reduced",t)},expression:"editItem.reduced"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:"DECOM"===e.currentReduced},model:{value:e.editItem.reducedType,callback:function(t){e.$set(e.editItem,"reducedType",t)},expression:"editItem.reducedType"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},on:{change:function(t){return e.$emit("changeColor",t)}},model:{value:e.editItem.color,callback:function(t){e.$set(e.editItem,"color",t)},expression:"editItem.color"}}),e._v(" "),e.limitsNames.length>1?t("div",[t("v-select",{attrs:{outlined:"","hide-details":"",label:"Display Limits",items:e.limitsNames},on:{change:function(t){return e.$emit("changeLimits",e.limits[e.limitsName])}},model:{value:e.limitsName,callback:function(t){e.limitsName=t},expression:"limitsName"}}),e._v(" "),t("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e()],1),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(t){return e.$emit("cancel")}}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(t){return e.$emit("close",e.editItem)}}},[e._v("\n Ok\n ")])],1)],1)],1)},A=[],g=n(4364);const f={props:{value:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},await this.api,this.api=(new g.x).get_item(this.item.targetName,this.item.packetName,this.item.itemName).then((e=>{for(const[t,n]of Object.entries(e.limits))Object.keys(n).includes("red_low")&&this.$set(this.limits,t,Object.values(n));this.limitsName=Object.keys(this.limits).find((e=>this.limits[e]+""===this.editItem.limits+""))}))}},b=f;var C=(0,h.A)(b,_,A,!1,null,null,null);const y=C.exports;var w=n(458),x=n(5914),k=n.n(x),N=n(2702);n(9037);const S={components:{DateTimeChooser:v,GraphEditItemDialog:y},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data(){return{tab:0,itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],lines:[],lineHeaders:[{text:"Y Value",value:"yValue"},{text:"Color",value:"color"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new N.A,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];let e=0;return this.items.map((t=>(e+=1,{...t,itemId:e})))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[e,t]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(t)]=e+1,void 0===t.color&&(t.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:e,overviewSeries:t}=this.items.reduce(((e,t)=>{const n={spanGaps:!0};return e.chartSeries.push({...n,item:t,label:this.formatLabel(t),stroke:(e,t)=>this.items[t-1].color,width:2,value:(e,t)=>"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(3)}),e.overviewSeries.push({...n}),e}),{chartSeries:[],overviewSeries:[]});let n={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,n={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new w.A(n,this.data,document.getElementById(`chart${this.id}`));else{n={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],series:[{label:"Time",value:(e,t)=>null==t?"--":(0,d.GP)((0,c.a)(1e3*t),"yyyy-MM-dd HH:mm:ss")},...e],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(e,t,n)=>t=>{"pause"===this.state&&0===e.select.width&&this.$emit("start"),n(t)}}},hooks:{setScale:[(e,t)=>{if("x"===t&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let t=Math.round(this.overview.valToPos(e.scales.x.min,"x")),n=Math.round(this.overview.valToPos(e.scales.x.max,"x"));this.overview.setSelect({left:t,width:n-t}),this.zoomChart=!1}}],setSelect:[e=>{"start"===this.state&&e.select.width>0&&this.$emit("pause")}],ready:[e=>{let t=e.root.querySelector(".u-over");t.addEventListener("contextmenu",(e=>{e.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=e.clientX,this.editGraphMenuY=e.clientY,this.editGraphMenu=!0})),t.addEventListener("mouseenter",(e=>{this.$emit("resize")})),t.addEventListener("mouseleave",(e=>{this.$emit("resize")}));let n=e.root.querySelector(".u-legend");n.addEventListener("contextmenu",(t=>{t.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=t.clientX,this.itemMenuY=t.clientY;let s=t.target.closest(".u-series"),i=Array.prototype.slice.call(n.childNodes[0].childNodes).indexOf(s),a=e.series[i];a.item?(this.selectedItem=a.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=t.clientX,this.legendMenuY=t.clientY,this.legendMenu=!0)}))}]}},this.graph=new w.A(n,this.data,document.getElementById(`chart${this.id}`));const s={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),series:[...t],cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[e=>{if(!this.zoomChart){"start"===this.state&&e.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let t=e.posToVal(e.select.left,"x"),n=e.posToVal(e.select.left+e.select.width,"x");this.graph.setScale("x",{min:t,max:n}),this.zoomOverview=!1}}]}};this.overview=new w.A(s,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,t){switch(e){case"start":"stop"===t&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,t){this.dataChanged=!0},graphMinY:function(e,t){let n=parseFloat(e);isNaN(n)||(this.graphMinY=n),this.setGraphRange()},graphMaxY:function(e,t){let n=parseFloat(e);isNaN(n)||(this.graphMaxY=n),this.setGraphRange()},graphStartDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"===this.state||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let e=this.data[0][this.data[0].length-1],t=this.data[0][this.data[0].length-this.pointsGraphed],n=this.data[0][0];n<e-this.secondsGraphed&&(n=e-this.secondsGraphed),t>n&&(n=t),this.graph.setScale("x",{min:n,max:e}),this.dataChanged=!1},addLine(){this.lines.push({yValue:0,color:"white"})},removeLine(e){let t=this.lines.indexOf(e);this.lines.splice(t,1)},formatLabel(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;{let t="";return"CONVERTED"!==e.valueType&&(t+=e.valueType),"DECOM"!==e.reduced&&(""!==t&&(t+=" "),t+=`${e.reduced.split("_")[1]} ${e.reducedType}`),`${e.itemName} (${t})`}},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){if(this.editGraph=!1,this.needToUpdate){if(null==this.subscription)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout((()=>{this.addItems(e)}),0)}this.needToUpdate=!1}this.moveLegend(this.legendPosition),this.$emit("edit")},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let e=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(e=0),this.graph.scales.y.range=(t,n,s)=>{let i=n;(this.graphMinY||0===this.graphMinY)&&(i=this.graphMinY);let a=s;return(this.graphMaxY||0===this.graphMaxY)&&(a=this.graphMaxY),w.A.rangeNum(i,a,e,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((e=>{this.subscription=e}))},getSize:function(e){const t=document.getElementById("openc3-nav-drawer"),n=t.classList.contains("v-navigation-drawer--open")?t.clientWidth:0;let s=0;if("right"===this.legendPosition||"left"===this.legendPosition){const e=document.getElementsByClassName("u-legend")[0];s=e.clientWidth}const i=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-n-s,a=Math.max(document.documentElement.clientHeight,window.innerHeight||0),l=document.getElementsByClassName("tgt-pkt-item-chooser")[0];let r=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:l&&(r=a-l.clientHeight-r-250,this.fullHeight||(r=r/2+10));let o=i-62;return this.fullWidth||(o=o/2-10),{width:this.width||o,height:this.height||r}},getScales:function(){return{scales:{x:{range(e,t,n){return null==t?[1566453600,1566497660]:[t,n]}},y:{range(e,t,n){return null==t?[-100,100]:w.A.rangeNum(t,n,.1,!0)}}}}},getAxes:function(e){let t="rgba(0, 0, 0, .1)",n="black";return this.$vuetify.theme.dark&&(t="rgba(255, 255, 255, .1)",n="white"),{axes:[{stroke:n,grid:{show:!0,stroke:t,width:2}},{size:80,stroke:n,grid:{show:"overview"!==e,stroke:t,width:2},values(e,t){return(t.some((e=>e>=1e7))||t.every((e=>e<.01)))&&(t=t.map((e=>e.toExponential(3)))),t}}]}},closeEditItem:function(e){this.editItem=!1,(null!==this.graphEndDateTime&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){let t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[n].style.borderColor=e},changeLimits:function(e){let t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){return{hooks:{draw:e=>{const{ctx:t,bbox:n}=e,s=e.valToPos(e.scales.y.min,"y",!0),i=e.valToPos(e.scales.y.max,"y",!0),a=e.valToPos(this.limitsValues[0],"y",!0),l=e.valToPos(this.limitsValues[1],"y",!0),r=e.valToPos(this.limitsValues[2],"y",!0),o=e.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach((s=>{e.scales.y.min<=s.yValue&&s.yValue<=e.scales.y.max&&(t.save(),t.beginPath(),t.strokeStyle=s.color,t.lineWidth=2,t.moveTo(n.left,e.valToPos(s.yValue,"y",!0)),t.lineTo(n.left+n.width,e.valToPos(s.yValue,"y",!0)),t.stroke(),t.restore())})),t.save(),t.beginPath(),t.fillStyle="rgba(255,0,0,0.15)",e.scales.y.min<this.limitsValues[0]){let e=a<i?i:a;t.fillRect(n.left,a,n.width,s-e)}if(e.scales.y.max>this.limitsValues[3]){let e=s<o?s:o;t.fillRect(n.left,i,n.width,e-i)}if(t.fillStyle="rgba(255,255,0,0.15)",e.scales.y.min<this.limitsValues[1]&&e.scales.y.max>this.limitsValues[0]){let e=l<i?i:l;t.fillRect(n.left,e,n.width,a-e)}if(e.scales.y.max>this.limitsValues[2]&&e.scales.y.min<this.limitsValues[3]){let e=s<o?s:o,i=s<r?s:r;t.fillRect(n.left,e,n.width,i-e)}if(t.fillStyle="rgba(0,255,0,0.15)",4===this.limitsValues.length){if(e.scales.y.min<this.limitsValues[2]&&e.scales.y.max>this.limitsValues[1]){let e=r<i?i:r,a=s<l?s:l;t.fillRect(n.left,e,n.width,a-e)}}else{const a=e.valToPos(this.limitsValues[4],"y",!0),o=e.valToPos(this.limitsValues[5],"y",!0);if(e.scales.y.min<this.limitsValues[4]&&e.scales.y.max>this.limitsValues[1]){let e=a<i?i:a;t.fillRect(n.left,e,n.width,l-e)}if(e.scales.y.max>this.limitsValues[5]&&e.scales.y.min<this.limitsValues[2]){let e=s<r?s:r,i=s<o?s:o;t.fillRect(n.left,e,n.width,i-e)}t.fillStyle="rgba(0,0,255,0.15)";let c=o<i?i:o,d=s<a?s:a;t.fillRect(n.left,c,n.width,d-c)}t.stroke(),t.restore()}}}},changeItem:function(e){this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((()=>{this.addItems([this.selectedItem])}),0)},addItems:function(e,t="CONVERTED"){for(const s of e){s.valueType||(s.valueType=t),void 0===s.color&&(s.color=this.colors[this.colorIndex]),void 0===s.limits?s.limits=[]:s.limits.length>0&&(this.limitsValues=s.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(s);const e=this.data.length;this.graph.addSeries({spanGaps:!0,item:s,label:this.formatLabel(s),stroke:(e,t)=>this.items[t-1].color,width:2,value:(e,t)=>"string"===typeof t||isNaN(t)?"NaN":null==t?"--":Math.abs(t)<.01||Math.abs(t)>=1e7?t.toExponential(6):t.toFixed(6)},e),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:(e,t)=>this.items[t-1].color},e);let n=Array(this.data[0].length);this.data.splice(e,0,n),this.indexes[this.subscriptionKey(s)]=e}let n=this.colors.indexOf(e[e.length-1].color);n&&(this.colorIndex=n+1),this.addItemsToSubscription(e),this.$emit("edit")},addItemsToSubscription:function(e=this.items){let t=this.startTime;this.graphStartDateTime&&(t=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((n=>{n&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey),start_time:t,end_time:this.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);for(const t of e.map(this.subscriptionKey)){const e=this.reorderIndexes(t);this.items.splice(e-1,1),this.data.splice(e,1),this.graph.delSeries(e),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(e),this.overview.setData(this.data))}1===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("edit")},removeItemsFromSubscription:function(e=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){let t=this.indexes[e];for(var n in delete this.indexes[e],this.indexes)this.indexes[n]>t&&(this.indexes[n]-=1);return t},received:function(e){this.cable.recordPing();for(let t=0;t<e.length;t++){let n=e[t].__time/1e9,s=e[0].length;if(0===s||n>e[0][s-1]){for(let e=0;e<this.data.length;e++)this.data[e].push(null);this.set_data_at_index(this.data[0].length-1,n,e[t])}else{let s=k()(this.data[0],n,this.bs_comparator);if(s>=0)this.set_data_at_index(s,n,e[t]);else{let i=-s-1;for(let e=0;e<this.data.length;e++)this.data[e].splice(i,0,null);this.set_data_at_index(i,n,e[t])}}}if(null==this.startTime&&this.data[0][0]){let e=1e9*this.data[0][0];this.$emit("started",e)}this.dataChanged=!0},bs_comparator:function(e,t){return e-t},set_data_at_index:function(e,t,n){this.data[0][e]=t;for(const[s,i]of Object.entries(n)){if("time"===s)continue;let t=this.indexes[s];if(t){let n=this.data[t];if(null!==i&&void 0!==i&&i.raw)n[e]=null;else if("string"===typeof i){if(n[e]=null,!s.includes("__RAW")){for(let e of this.items)if(this.subscriptionKey(e)===s){this.selectedItem=e;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else n[e]=i}}},subscriptionKey:function(e){let t=`${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(t+=`__${e.reducedType}`),t}}},E=S;n(6738),n(7346);var I=(0,h.A)(E,s,i,!1,null,"5efb6623",null);const T=I.exports},5181:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"bar",style:e.computedStyle},[t("v-card",{attrs:{"min-height":e.height,"min-width":e.width}},[t("v-system-bar",[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("\n mdi-alert\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Errors ")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Edit Screen ")])]),e._v(" "),e.fixFloated?e._e():t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"float-screen-icon"},on:{click:e.floatScreen}},[e._v("\n "+e._s(e.floated?"mdi-balloon":"mdi-view-grid-outline")+"\n ")])],1)]}}],null,!1,4011884781)},[e._v(" "),t("span",[e._v(" "+e._s(e.floated?"Unfloat Screen":"Float Screen")+" ")])]),e._v(" "),e.floated?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"up-screen-icon"},on:{click:e.upScreen}},[e._v("\n mdi-arrow-up\n ")])],1)]}}],null,!1,3296657168)},[e._v(" "),t("span",[e._v(" Move Screen Up ")])]):e._e(),e._v(" "),e.floated&&e.zIndex>e.minZ?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"down-screen-icon"},on:{click:e.downScreen}},[e._v("\n mdi-arrow-down\n ")])],1)]}}],null,!1,1167902535)},[e._v(" "),t("span",[e._v(" Move Screen Down ")])]):e._e(),e._v(" "),t("v-spacer"),e._v(" "),t("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),e._v(" "),t("v-spacer"),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),e._v(" "),e.showClose?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(t){return e.$emit("close-screen")}}},[e._v("\n mdi-close-box\n ")])],1)]}}],null,!1,1921143701)},[e._v(" "),t("span",[e._v(" Close Screen ")])]):e._e()],1),e._v(" "),e.editDialog?e._e():t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1",staticStyle:{position:"relative"}},[t("v-overlay",{staticStyle:{"pointer-events":"none"},attrs:{value:0!==e.errors.length,opacity:"0.8",absolute:""}}),e._v(" "),t("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),e._v(" "),e.editDialog?t("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,keywords:e.keywords,errors:e.errors},on:{save:function(t){return e.saveEdit(t)},cancel:function(t){return e.cancelEdit()},delete:function(t){return e.deleteScreen()}},model:{value:e.editDialog,callback:function(t){e.editDialog=t},expression:"editDialog"}}):e._e(),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",[t("v-textarea",{staticClass:"errors",attrs:{readonly:"",rows:"13",value:e.error}})],1)],1)],1)},i=[],a=(n(9375),n(4293),n(5100),n(7162),n(6403),n(4154),n(4777),n(8846),n(2896),n(7010),n(2795)),l=n(3069),r=n(4364),o=n(1649),c=n(5485),d=n.n(c),u=n(9677),m=n.n(u),h=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{persistent:"",width:"75vw"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v("\n mdi-delete\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Delete Screen ")])])],1),e._v(" "),t("v-spacer"),e._v(" "),t("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),e._v(" "),t("v-spacer"),e._v(" "),t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v("\n mdi-download\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Download Screen ")])])],1)],1),e._v(" "),t("v-card-text",[t("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),e._v(" "),t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.file,color:"primary","data-test":"edit-screen-load"},on:{click:e.loadFile}},[e._v("\n Load\n ")]),e._v(" "),t("v-file-input",{attrs:{"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}})],1),e._v(" "),t("v-row",{staticClass:"mb-2"},[e._v(" Edit the screen definition. ")]),e._v(" "),t("v-row",{staticClass:"mb-2"},[t("pre",{ref:"editor",staticClass:"editor",on:{contextmenu:function(t){return t.preventDefault(),e.showContextMenu.apply(null,arguments)}}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.menuX,"position-y":e.menuY,absolute:"","offset-y":""},model:{value:e.contextMenu,callback:function(t){e.contextMenu=t},expression:"contextMenu"}},[t("v-list",[t("v-list-item",{attrs:{link:""}},[t("v-list-item-title",{on:{click:e.openDocumentation}},[e._v("\n "+e._s(e.docsKeyword)+" documentation\n ")])],1)],1)],1)],1),e._v(" "),e._l(e.editErrors,(function(n,s){return t("v-row",{key:s,staticClass:"my-3"},[t("span",{staticClass:"red--text",domProps:{textContent:e._s(n)}})])})),e._v(" "),t("v-row",[t("span",[e._v("Ctrl-space brings up autocomplete. Right click keywords for\n documentation.")]),e._v(" "),t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(t){return e.$emit("cancel")}}},[e._v("\n Cancel\n ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"edit-screen-save"},on:{click:function(t){e.$emit("save",e.editor.getValue())}}},[e._v("\n Save\n ")])],1)],2)],1)],1)},p=[],v=(n(3165),n(4541),n(4397),n(1412),n(1883),n(7905),n(1841)),_=(n(1136),n(5617),n(6717),n(9946),n(814));n(8605);class A{constructor(){(0,_.A)(this,"getCompletions",(async function(e,t,n,s,i){var a=t.getLine(n.row),l=a.slice(0,n.column),r=l.trimStart().split(/ (?![^<]*>)/),o=this.autocompleteData;r.length>1&&(o=o.find((e=>e.caption===r[0])));var c={},d=!0;if(o&&o["params"]){o["params"].length==r.length-1&&(d=!1);var u=o["params"][r.length-2];if(u["Target name"]){var m=await this.api.get_target_names();o=m.reduce(((e,t)=>(e[t]=1,e)),{})}else if(u["Packet name"]){var h=r[r.length-2],p=await this.api.get_all_tlm(h);o=p.reduce(((e,t)=>(e[t.packet_name]=t.description,e)),{})}else if(u["Item name"]){h=r[r.length-3];var v=r[r.length-2];v=await this.api.get_tlm(h,v);o=v.items.reduce(((e,t)=>(e[t.name]=t.description,e)),{})}else o=u;c=Object.keys(o||{}).map((e=>{var t={value:e+(d?" ":""),command:d&&"startAutocomplete"};return"string"===typeof o[e]&&(t["meta"]=o[e]),t}))}else c=o;i(null,c)})),a.A.get("/openc3-api/autocomplete/data/screen").then((e=>{this.autocompleteData=e.data})),this.api=new r.x}}const g={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},errors:{type:Array,default:()=>[]}},data(){return{file:null,docsKeyword:"",contextMenu:!1,menuX:0,menuY:0}},computed:{editErrors:function(){if(""===this.definition&&!this.file)return["Input can not be blank."];if(0!==this.errors.length){let e=new Set,t=[];for(const n of this.errors){if(e.has(n.message))continue;let s=`At ${n.lineNumber}: (${n.line}) ${n.message}.`;n.usage&&(s+=` Usage: ${n.usage}`),t.push(s),e.add(n.message)}return t}return[]},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted:function(){this.editor=v.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");const e=this.buildScreenMode();this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setOption("enableBasicAutocompletion",!0),this.editor.setOption("enableLiveAutocompletion",!0),this.editor.completers=[new A],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeDestroy(){this.editor.destroy(),this.editor.container.remove()},methods:{showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;var t=this.editor.getCursorPosition(),n=this.editor.session.getTokenAt(t.row,t.column);if(n){var s=n.value.trim();s.includes(" ")?this.docsKeyword=s.split(" ")[0]:this.docsKeyword=s,this.contextMenu=!0}},openDocumentation(){window.open(`${window.location.origin}/tools/staticdocs/docs/configuration/telemetry-screens#${this.docsKeyword.toLowerCase()}`,"_blank")},buildScreenMode(){var e=v.require("ace/lib/oop"),t=v.require("ace/mode/text_highlight_rules").TextHighlightRules;let n=this.keywords.join("|");var s=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp(`^\\s*(${n})\\b`)}]},this.normalizeRules()};e.inherits(s,t);var i=function(){this.HighlightRules=s},a=v.require("ace/mode/text").Mode;return e.inherits(i,a),function(){this.$id="ace/mode/openc3"}.call(i.prototype),i},downloadScreen:function(){const e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.screen.toLowerCase()}.txt`),t.click()},loadFile:function(){const e=new FileReader;e.readAsText(this.file);const t=this;e.onload=function(){t.editor.setValue(e.result),t.file=null}},deleteScreen:function(){this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((e=>{this.$emit("delete")}))}}},f=g;n(2605),n(7613);var b=n(2401),C=(0,b.A)(f,h,p,!1,null,"2f59da98",null);const y=C.exports,w=20,x=n(7448);x.keys().forEach((e=>{const t=x(e),n=d()(m()(e.split("/").pop().replace(/\.\w+$/,"")));o["default"].component(n,t.default||t)}));const k={components:{EditScreenDialog:y},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},initialFloated:{type:Boolean,default:!1},initialTop:{type:Number,default:0},initialLeft:{type:Number,default:0},initialZ:{type:Number,default:0},minZ:{type:Number,default:0},fixFloated:{type:Boolean,default:!1},count:{type:Number,default:0},showClose:{type:Boolean,default:!0}},data(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,configError:!1,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,cacheTimeout:.1,globalSettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null,dragX:0,dragY:0,floated:this.initialFloated,top:this.initialTop,left:this.initialLeft,zIndex:this.initialZ,changeCounter:0,screenItems:[],screenValues:{},updateCounter:0}},watch:{count:{handler(e,t){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){let e=new Set,t="";for(const n of this.errors){if(e.has(n.message))continue;let s=`${n.time}: (${n.type}) ${n.message}\n`;t+=s,e.add(n.message)}return t}return null},computedStyle(){let e={};return this.floated&&(e["position"]="absolute",e["top"]=this.top+"px",e["left"]=this.left+"px"),e}},errorCaptured(e,t,n){return this.errors.length<w&&(e.usage?this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()}):this.errors.push({type:"error",message:e,time:(new Date).getTime()}),this.configError=!0),!1},created(){this.api=new r.x,this.configParser=new l.R,this.parseDefinition(),this.screenKey=Math.floor(1e6*Math.random())},mounted(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},destroyed(){null!=this.updater&&(clearInterval(this.updater),this.updater=null)},methods:{open(e,t){this.$parent.showScreen(e,t)},close(e,t){this.$parent.closeScreenByName(e,t)},closeAll(){this.$parent.closeAll()},clearErrors:function(){this.errors=[],this.configError=!1},updateRefreshInterval:function(){let e=1e3*this.pollingPeriod;this.updater&&clearInterval(this.updater),this.updater=setInterval((()=>{this.update()}),e)},parseDefinition:function(){if(this.clearErrors(),this.namedWidgets={},this.layoutStack=[],this.dynamicWidgets=[],this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),this.currentLayout=this.layoutStack[this.layoutStack.length-1],this.configParser.parse_string(this.currentDefinition,"",!1,!0,((e,t,n,s)=>{var i;if(e)switch(e){case"SCREEN":this.configParser.verify_num_parameters(3,4,`${e} <Width or AUTO> <Height or AUTO> <Polling Period>`),this.width=parseInt(t[0]),this.height=parseInt(t[1]),this.pollingPeriod=parseFloat(t[2]);break;case"END":this.configParser.verify_num_parameters(0,0,`${e}`),this.layoutStack.pop(),this.currentLayout=this.layoutStack[this.layoutStack.length-1];break;case"STALE_TIME":this.configParser.verify_num_parameters(1,1,`${e} <Time (s)>`),this.staleTime=parseInt(t[0]);break;case"SETTING":case"SUBSETTING":const a=null!==(i=this.currentLayout.widgets[this.currentLayout.widgets.length-1])&&void 0!==i?i:this.currentLayout;a.settings.push(t);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":this.globalSettings.push(t);break;default:this.processWidget(e,t,n,s);break}})),"undefined"===typeof this.layoutStack[0]){let e=[],t=[];for(const n of this.dynamicWidgets)e.push(n.name),t.push(n.lineNumber);this.errors.length<w&&(this.errors.push({type:"usage",message:`Unknown widget! Are these widgets: ${e.join(",")}?`,lineNumber:t.join(","),time:(new Date).getTime()}),this.configError=!0),this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return this.namedWidgets[e]},get_named_widget:function(e){return this.namedWidgets[e]},setNamedWidget:function(e,t){this.namedWidgets[e]=t},openEdit:function(){this.backup=this.currentDefinition.repeat(1),this.editDialog=!0},upScreen:function(){this.zIndex+=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},downScreen:function(){this.zIndex>this.minZ&&(this.zIndex-=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex]))},floatScreen:function(){if(this.floated)this.$refs.bar.onmousedown=null,this.$refs.bar.parentElement.parentElement.style="z-index: 0",this.floated=!1,this.$emit("unfloat-screen",[this.floated,this.top,this.left,this.zIndex]);else{let e=this.$refs.bar.parentElement.parentElement.parentElement.getBoundingClientRect(),t=this.$refs.bar.getBoundingClientRect();this.top=t.top-e.top-5,this.left=t.left-e.left-5,this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.floated=!0,this.$emit("float-screen",[this.floated,this.top,this.left,this.zIndex])}},dragMouseDown:function(e){e=e||window.event,e.preventDefault(),this.dragX=e.clientX,this.dragY=e.clientY,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag:function(e){e=e||window.event,e.preventDefault();let t=this.dragX-e.clientX,n=this.dragY-e.clientY;this.dragX=e.clientX,this.dragY=e.clientY,this.top=this.$refs.bar.offsetTop-n,this.left=this.$refs.bar.offsetLeft-t,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},closeDragElement:function(){document.onmouseup=null,document.onmousemove=null},rerender:function(){this.parseDefinition(),this.updateRefreshInterval(),this.screenKey=Math.floor(1e6*Math.random()),this.$nextTick((function(){this.clearErrors(),this.$emit("edit-screen")}))},cancelEdit:function(){this.file=null,this.editDialog=!1,this.currentDefinition=this.backup,this.rerender()},saveEdit:function(e){this.editDialog=!1,this.currentDefinition=e,this.rerender(),this.$nextTick((function(){a.A.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)}))},deleteScreen:function(){this.editDialog=!1,a.A.delete(`/openc3-api/screen/${this.target}/${this.screen}`).then((e=>{this.$emit("delete-screen")}))},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-screen")},processWidget:function(e,t,n,s){var i=null;"NAMED_WIDGET"===e&&(this.configParser.verify_num_parameters(2,null,`${e} <Widget Name> <Widget Type> <Widget Settings... (optional)>`),i=t[0].toUpperCase(),e=t[1].toUpperCase(),t=t.slice(2,t.length));const a=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget";let l=[];if(null!==i&&l.push(["NAMED_WIDGET",i,this]),"VERTICAL"===e||"VERTICALBOX"===e||"HORIZONTAL"===e||"HORIZONTALBOX"===e||"MATRIXBYCOLUMNS"===e||"TABBOOK"===e||"TABITEM"===e||"CANVAS"===e||"RADIOGROUP"===e||"SCROLLWINDOW"===e){const e={type:a,parameters:t,settings:l,widgets:[]};this.layoutStack.push(e),this.currentLayout.widgets.push(e),this.currentLayout=e}else if(l.push(["__SCREEN__",this]),o["default"].options.components[a])this.currentLayout.widgets.push({type:a,target:this.target,parameters:t,settings:l,line:n,lineNumber:s});else{let e={type:"DynamicWidget",target:this.target,parameters:t,settings:l,name:a,line:n,lineNumber:s};this.currentLayout.widgets.push(e),this.dynamicWidgets.push(e)}},applyGlobalSettings:function(e){e.forEach((e=>{this.globalSettings.forEach((t=>{e.type.toLowerCase()===t[0].toLowerCase()+"widget"&&e.settings.push(t.slice(1))})),e.widgets&&this.applyGlobalSettings(e.widgets)}))},update:function(){0!==this.screenItems.length&&!1===this.configError&&this.api.get_tlm_values(this.screenItems,this.staleTime,this.cacheTimeout).then((e=>{this.clearErrors(),this.updateValues(e)})).catch((e=>{let t=JSON.stringify(e,null,2);t.includes("no response received")||(this.configError=!0),this.errors.find((e=>e.message===t))||this.errors.length<w&&this.errors.push({type:"error",message:t,time:(new Date).getTime()})}))},updateValues:function(e){this.updateCounter+=1;for(let t=0;t<e.length;t++)e[t].push(this.updateCounter),o["default"].set(this.screenValues,this.screenItems[t],e[t])},addItem:function(e){this.screenItems.push(e),o["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){let t=this.screenItems.indexOf(e);this.screenItems.splice(t,1)}}},N=k;n(308);var S=(0,b.A)(N,s,i,!1,null,"ff31ea44",null);const E=S.exports},6339:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pt-4 tgt-pkt-item-chooser"},[t("v-row",[t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-target"}},[t("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",outlined:"",items:e.targetNames,"item-text":"label","item-value":"value"},on:{change:e.targetNameChanged},model:{value:e.selectedTargetName,callback:function(t){e.selectedTargetName=t},expression:"selectedTargetName"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-packet"}},[t("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",outlined:"",disabled:e.packetsDisabled||e.buttonDisabled,items:e.packetNames,"item-text":"label","item-value":"value"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(t){e.selectedPacketName=t},expression:"selectedPacketName"}})],1),e._v(" "),e.chooseItem&&!e.buttonDisabled?t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-item"}},[t("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",outlined:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.itemNames,"item-text":"label","item-value":"value"},on:{change:function(t){return e.itemNameChanged(t)}},model:{value:e.selectedItemName,callback:function(t){e.selectedItemName=t},expression:"selectedItemName"}})],1):e._e(),e._v(" "),e.itemIsArray()?t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"array-index"}},[t("v-combobox",{attrs:{label:"Array Index","hide-details":"",dense:"",outlined:"",disabled:e.itemsDisabled||e.buttonDisabled,items:e.arrayIndexes(),"item-text":"label","item-value":"value"},on:{change:function(t){return e.indexChanged(t)}},model:{value:e.selectedArrayIndex,callback:function(t){e.selectedArrayIndex=t},expression:"selectedArrayIndex"}})],1):e._e(),e._v(" "),e.buttonText?t("v-col",{staticStyle:{"max-width":"0px"},attrs:{cols:e.colSize}},[t("v-btn",{attrs:{disabled:e.buttonDisabled,block:"",color:"primary","data-test":"select-send"},on:{click:e.buttonPressed}},[e._v("\n "+e._s(e.actualButtonText)+"\n ")])],1):e._e()],1),e._v(" "),e.selectTypes?t("v-row",[t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"data-type"}},[t("v-autocomplete",{attrs:{label:"Value Type","hide-details":"",dense:"",outlined:"",items:e.valueTypes},model:{value:e.selectedValueType,callback:function(t){e.selectedValueType=t},expression:"selectedValueType"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"reduced"}},[t("v-autocomplete",{attrs:{label:"Reduced","hide-details":"",dense:"",outlined:"",items:e.reductionModes},model:{value:e.selectedReduced,callback:function(t){e.selectedReduced=t},expression:"selectedReduced"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"reduced-type"}},[t("v-autocomplete",{attrs:{label:"Reduced Type","hide-details":"",dense:"",outlined:"",disabled:"DECOM"===e.selectedReduced,items:e.reducedTypes},model:{value:e.selectedReducedType,callback:function(t){e.selectedReducedType=t},expression:"selectedReducedType"}})],1),e._v(" "),t("v-col",{staticStyle:{"max-width":"0px"},attrs:{cols:e.colSize}})],1):e._e(),e._v(" "),t("v-row",{staticClass:"pt-1",attrs:{"no-gutters":""}},[e.hazardous?t("v-col",{staticClass:"openc3-yellow",attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" (HAZARDOUS)")]):t("v-col",{attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" ")])],1)],1)},i=[],a=(n(9375),n(8605),n(8752),n(7534),n(7010),n(4364));const l={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:e=>["cmd","tlm"].includes(e)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data(){var e,t,n;return{targetNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),packetNames:[],selectedPacketName:null===(t=this.initialPacketName)||void 0===t?void 0:t.toUpperCase(),itemNames:[],selectedItemName:null===(n=this.initialItemName)||void 0===n?void 0:n.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedArrayIndex:null,selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created(){this.internalDisabled=!0,this.api=new a.x,this.api.get_target_names().then((e=>{this.targetNames=e.flatMap((e=>"UNKNOWN"==e?[]:{label:e,value:e})),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName||(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.updatePackets(),this.unknown&&this.targetNames.push(this.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},colSize:function(){return!!this.vertical&&12},selectedItemNameWIndex:function(){return null!==this.selectedArrayIndex&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName}},watch:{mode:function(e,t){this.selectedPacketName=null,this.selectedItemName=null,this.updatePackets()}},methods:{updatePackets:function(){if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;const e="tlm"===this.mode?"get_all_tlm_names":"get_all_cmd_names";this.api[e](this.selectedTargetName).then((e=>{this.packetNames=e.map((e=>({label:e,value:e}))),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value),this.updatePacketDetails(this.selectedPacketName);const t=this.packetNames.find((e=>e.value===this.selectedPacketName));t&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1}))},updateItems:function(){if("ALL"===this.selectedPacketName)return;this.internalDisabled=!0;const e="tlm"===this.mode?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then((e=>{this.itemNames=e.items.map((e=>{let t=e.name;return"DERIVED"==e.data_type&&(t+=" *"),[{label:t,value:e.name,description:e.description,array:e.array_size/e.bit_size}]})).reduce(((e,t)=>e.concat(t)),[]),this.itemNames.sort(((e,t)=>e.label>t.label?1:-1)),this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.itemIsArray(),this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}),this.internalDisabled=!1}))},itemIsArray:function(){let e=this.itemNames.findIndex((e=>e.value===this.selectedItemName));return-1===e||isNaN(this.itemNames[e].array)?(this.selectedArrayIndex=null,!1):(null===this.selectedArrayIndex&&(this.selectedArrayIndex=0),!0)},arrayIndexes:function(){let e=this.itemNames.findIndex((e=>e.value===this.selectedItemName)),t=[...Array(this.itemNames[e].array).keys()];return this.allowAll&&t.unshift(this.ALL.label),t},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){this.selectedItemName="",this.updatePacketDetails(e)},updatePacketDetails:function(e){if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;const t=this.packetNames.find((t=>e===t.value));if(t){this.selectedPacketName=t.value;const e="tlm"===this.mode?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then((e=>{this.description=e.description,this.hazardous=e.hazardous}))}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(e){const t=this.itemNames.find((t=>e===t.value));t&&(this.itemIsArray(),this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}))},indexChanged:function(e){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){"ALL"===this.selectedPacketName?this.allTargetPacketItems():"ALL"===this.selectedItemName?this.allPacketItems():this.chooseItem?this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){this.packetNames.forEach((e=>{if(e===this.ALL)return;const t="tlm"===this.mode?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,e.value).then((t=>{t.items.forEach((t=>{this.$emit("click",{targetName:this.selectedTargetName,packetName:e.value,itemName:t["name"],valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))}))}))},allPacketItems:function(){this.itemNames.forEach((e=>{e!==this.ALL&&this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:e.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))}}},r=l;n(6769);var o=n(2401),c=(0,o.A)(r,s,i,!1,null,"36062eb2",null);const d=c.exports},5751:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{"align-self":"end"}},[t("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),t("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(n,s){return t("v-menu",{key:s,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:i}){return[t("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${n.label}`)}},"v-btn",i,!1),s),[t("span",{domProps:{textContent:e._s(n.label)}}),e._v(" "),t("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(s,i){return[s.divider?t("v-divider",{key:i}):s.subMenu&&s.subMenu.length>0?t("div",{key:i},[t("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:a}){return[t("v-list-item",e._g(e._b({key:i,attrs:{disabled:s.disabled}},"v-list-item",a,!1),n),[s.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:s.disabled}},[e._v(e._s(s.icon))])],1):e._e(),e._v(" "),s.radio||s.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(s.disabled?"opacity: 0.2":"")},[e._v(e._s(s.label)+"\n ")]),e._v(" "),t("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",e._l(s.subMenu,(function(n,s){return t("v-list-item",{key:s,on:{click:function(t){return e.subMenuClick(n)}}},[n.icon?t("v-list-item-icon",[t("v-icon",[e._v(e._s(n.icon))])],1):e._e(),e._v(" "),t("v-list-item-title",[e._v(e._s(n.label))])],1)})),1)],1)],1):t("v-list-item",{key:i,attrs:{disabled:s.disabled,"data-test":e.formatDT(`${e.title} ${n.label} ${s.label}`)},on:{click:function(e){return s.command(s)}}},[s.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:s.label,value:s.label}})],1):e._e(),e._v(" "),s.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:s.label},model:{value:s.checked,callback:function(t){e.$set(s,"checked",t)},expression:"option.checked"}})],1):e._e(),e._v(" "),s.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:s.disabled}},[e._v(e._s(s.icon))])],1):e._e(),e._v(" "),s.radio||s.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(s.disabled?"opacity: 0.2":"")},[e._v(e._s(s.label))])],1)]}))],2)],1)],1)})),1)],1)},i=[];n(4293),n(8715);const a={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},l=a;n(1e3);var r=n(2401),o=(0,r.A)(l,s,i,!1,null,"57d4fdd2",null);const c=o.exports},8687:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"array-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,s){return t("v-list-item",{key:s,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},i=[],a=(n(7010),n(2967)),l=n(9821);n(9471);const r={components:{DetailsDialog:l.A},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[a.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var t="",n=" ",s="\n",i=0;if(Array.isArray(e)){for(const l of e){var a;this.formatter&&"nil"!==(null===(a=this.formatter)||void 0===a?void 0:a.toLowerCase())?t+=sprintf(this.formatter,l):t+=l,i+=1,i%this.itemsPerRow===0?(i=0,t+=s):t+=n}return t.trim()}return e}}},o=r;n(8644);var c=n(2401),d=(0,c.A)(o,s,i,!1,null,"5cd86706",null);const u=d.exports},171:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"block-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","no-resize":"","hide-details":"",placeholder:"Value",width:e.width,height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,s){return t("v-list-item",{key:s,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},i=[],a=(n(7010),n(2967)),l=n(9821);n(9471);const r={components:{DetailsDialog:l.A},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[a.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){var e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){var t="";if(e&&e.raw){var n=" ",s="\n",i=0,a=0;const l=this.bytesPerWord*this.wordsPerRow;for(const r of e.raw)this.addrFormat&&0===i&&(t+=sprintf(this.addrFormat,a),a+=l),t+=sprintf(this.formatter,r),i+=1,i%l===0?(i=0,t+=s):i%this.bytesPerWord===0&&(t+=n)}else t=e;return t}}},o=r;n(8827);var c=n(2401),d=(0,c.A)(o,s,i,!1,null,"0872fd0e",null);const u=d.exports},4814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var s=function(){var e=this,t=e._self._c;return t("div",[t("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v("\n "+e._s(e.buttonText)+"\n ")]),e._v(" "),t("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(t){e.displaySendHazardous=t},expression:"displaySendHazardous"}},[t("v-card",[t("v-card-title",[e._v("Hazardous")]),e._v(" "),t("v-card-text",[t("div",{staticClass:"mx-1"},[t("v-row",{staticClass:"my-2"},[t("span",[e._v(" Warning: Command is Hazardous. Send? ")])]),e._v(" "),t("v-row",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{outlined:""},on:{click:e.cancelHazardousCmd}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"primary mx-1",on:{click:e.sendHazardousCmd}},[e._v("\n Send\n ")])],1)],1)])],1)],1)],1)},i=[],a=n(47);const l=a.A;var r=n(2401),o=(0,r.A)(l,s,i,!1,null,null,null);const c=o.exports},2430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(n,s){return t(n.type,e._g({key:s,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},i=[],a=n(9843);const l={mixins:[a.A],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},r=l;n(1497);var o=n(2401),c=(0,o.A)(r,s,i,!1,null,"17947dc7",null);const d=c.exports},6614:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},i=[],a=n(9729);const l={mixins:[a.A]},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},8239:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return e.imageUrl?t("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height},on:{click:e.clickHandler}}):e._e()},i=[],a=n(9729),l=n(7163);const r={mixins:[a.A,l.A],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"}},created:function(){this.settings.forEach((e=>{"SCREEN"===e[0]&&(this.screenTarget=e[1],this.screenName=e[2])})),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((e=>{this.imageUrl=e}))},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},o=r;var c=n(2401),d=(0,c.A)(o,s,i,!1,null,null,null);const u=d.exports},4653:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("g",[e._l(e.images,(function(n){return t("image",{directives:[{name:"show",rawName:"v-show",value:n.value==e.selectedValue,expression:"image.value == selectedValue"}],key:n.value,attrs:{href:n.url,x:n.x,y:n.y,width:n.width,height:n.height},on:{click:e.clickHandler}})})),e._v(" "),e.defaultImage?t("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height},on:{click:e.clickHandler}}):e._e()],2)},i=[],a=(n(7010),n(9729)),l=n(7163);const r={mixins:[a.A,l.A],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screen&&this.screen.screenValues[this.valueId]?this.screen.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some((e=>e.value==this.selectedValue))}},created:function(){this.settings.forEach((e=>{"SCREEN"===e[0]&&(this.screenTarget=e[1],this.screenName=e[2])})),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.screen&&this.screen.addItem(this.valueId);const e=this.settings.filter((e=>"IMAGE"===e[0])).map((async e=>{let t=e[2];return t.startsWith("http")||(t=await this.getPresignedUrl(t)),{url:t,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}}));if(Promise.all(e).then((e=>{this.images=e})),this.parameters[4]){const e={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let t=this.parameters[4];t.startsWith("http")?this.defaultImage={...e,url:t}:this.getPresignedUrl(t).then((t=>{this.defaultImage={...e,url:t}}))}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},o=r;var c=n(2401),d=(0,c.A)(o,s,i,!1,null,null,null);const u=d.exports},6631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v("\n "+e._s(e.parameters[2])+"\n")])},i=[],a=n(9729);const l={mixins:[a.A],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},8211:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v("\n "+e._s(e._value)+"\n")])},i=[],a=n(9729);const l={mixins:[a.A],data(){return{valueId:null}},computed:{_value(){return this.screen?this.screen.screenValues[this.valueId][0]:null},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},4352:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},i=[],a=n(9729);const l={mixins:[a.A],computed:{calcStyle(){let e="black";this.parameters[4]&&(e=this.parameters[4]);let t=1;return this.parameters[5]&&(t=this.parameters[5]),"stroke:"+e+";stroke-width:"+t}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},4291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},i=[],a=n(9729);const l={mixins:[a.A],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screen&&this.screen.screenValues[this.valueId]&&(e=this.valueMap[this.screen.screenValues[this.valueId][0]]);let t=1;return this.parameters[7]&&(t=this.parameters[7]),"stroke:"+e+";stroke-width:"+t}},created(){this.settings.forEach((e=>{"VALUE_EQ"===e[0]&&(this.valueMap[e[1]]=e[2])}));let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},5733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},i=[],a=n(9729);const l={mixins:[a.A],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.label=this.parameters[0]},methods:{checked(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},3835:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",outlined:"",items:e.items},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},i=[],a=n(9729);const l={mixins:[a.A],data(){return{items:[],value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},3634:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var s=function(){var e=this,t=e._self._c;return t(e.widgetType,e._b({tag:"component"},"component",{...e.$props,...e.$attrs},!1))},i=[];n(7107);const a={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch(e){throw new Error(`Unknown widget: ${this.name}`)}}},l=a;var r=n(2401),o=(0,r.A)(l,s,i,!1,null,null,null);const c=o.exports},2656:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},i=[],a=n(9729),l=n(4348);const r={mixins:[a.A],components:{ValueWidget:l["default"]},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}},o=r;var c=n(2401),d=(0,c.A)(o,s,i,!1,null,null,null);const u=d.exports},2907:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},e._l(e.widgets,(function(n,s){return t(n.type,e._g({key:s,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},i=[],a=(n(9375),n(9843));const l={mixins:[a.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},4812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{staticClass:"boxbanner",style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),e._v(" "),t("horizontal-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},i=[],a=n(2907),l=n(9843);const r={mixins:[l.A],components:{HorizontalWidget:a["default"]}},o=r;n(6395);var c=n(2401),d=(0,c.A)(o,s,i,!1,null,"7935dee2",null);const u=d.exports},9646:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=function(){var e=this,t=e._self._c;return t("hr")},i=[],a=n(2401),l={},r=(0,a.A)(l,s,i,!1,null,null,null);const o=r.exports},527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("iframe",{style:e.computedStyle,attrs:{title:"IFrameWidget",src:e.parameters[0],width:e.width,height:e.height}})},i=[],a=n(9729);const l={mixins:[a.A],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},1404:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("img",{style:e.computedStyle,attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},i=[],a=n(4364),l=n(9729),r=n(2702);const o={mixins:[l.A],data:function(){return{api:new a.x,cable:new r.A,subscription:null,imageData:""}},computed:{src:function(){return`data:image/${this.parameters[3]};base64, ${this.imageData}`},itemFullName:function(){return`TLM__${this.targetName}__${this.packetName}__${this.itemName}__${this.valueType}`},targetName:function(){return this.parameters[0]},packetName:function(){return this.parameters[1]},itemName:function(){return this.parameters[2]},valueType:function(){return"CONVERTED"}},created:function(){this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType).then((e=>{const t=null===e||void 0===e?void 0:e.find((e=>e[0]===this.itemName));t&&(this.imageData=t[1])})).finally((()=>{this.subscribe()}))},destroyed:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{received:function(e){if(this.cable.recordPing(),e["error"])this.$notify.serious({body:e["error"]});else if(e.length){const t=e[e.length-1];this.imageData=t[this.itemFullName]}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:[this.itemFullName]})},disconnected:()=>{this.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:()=>{this.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((e=>{this.subscription=e}))}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},4858:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v("\n "+e._s(e.labelText)+"\n")])},i=[],a=n(9729);const l={mixins:[a.A],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},r=l;n(6074);var o=n(2401),c=(0,o.A)(r,s,i,!1,null,"19db816e",null);const d=c.exports},9830:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("led-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],a=n(9729),l=n(4858),r=n(6507);const o={mixins:[a.A],components:{LabelWidget:l["default"],LedWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},2503:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],a=n(9729),l=n(4858),r=n(6825);const o={mixins:[a.A],components:{LabelWidget:l["default"],ProgressbarWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},2194:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),t("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],a=n(9729),l=n(4858),r=n(6115);const o={mixins:[a.A],components:{LabelWidget:l["default"],SparklineWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},1921:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),t("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},i=[],a=(n(4293),n(9729)),l=n(4858),r=n(4348);const o={mixins:[a.A],components:{LabelWidget:l["default"],ValueWidget:r["default"]},computed:{labelName(){let e=this.parameters[2];return e.includes("[[")&&(e=e.replace("[[","[").replace("]]","]")),[e+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},974:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),t("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},i=[],a=(n(9375),n(9729)),l=n(4858),r=n(4348),o=n(4364);const c={mixins:[a.A],data(){return{description:"",valueParameters:[]}},components:{LabelWidget:l["default"],ValueWidget:r["default"]},computed:{labelName(){return[this.description]}},created(){this.valueParameters=this.parameters.slice(0,3),void 0!=this.parameters[4]&&this.valueParameters.push(this.parameters[4]),void 0!=this.parameters[5]&&this.valueParameters.push(this.parameters[5]),this.parameters.length>3?this.description=this.parameters[3]:(new o.x).get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.description=e["description"]}))}},d=c;var u=n(2401),m=(0,u.A)(d,s,i,!1,null,null,null);const h=m.exports},2171:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.labelValueSettings}}),e._v(" "),t("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:[...e.settings],"widget-index":2}})],1)},i=[],a=n(1921),l=n(1057),r=n(9729);const o={mixins:[r.A],components:{LabelvalueWidget:a["default"],LimitsbarWidget:l["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},limitsBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},8981:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[t("label-widget",{attrs:{parameters:[e.parameters[2]],settings:[...e.settings],"widget-index":0}}),e._v(" "),t("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:[...e.settings],"widget-index":1}}),e._v(" "),t("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":2}})],1)},i=[],a=n(4858),l=n(4348),r=n(6992),o=n(9729);const c={mixins:[o.A],components:{LabelWidget:a["default"],ValueWidget:l["default"],LimitscolumnWidget:r["default"]},computed:{limitsColumnParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},d=c;var u=n(2401),m=(0,u.A)(d,s,i,!1,null,null,null);const h=m.exports},9124:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("labelvalue-widget",{attrs:{parameters:e.labelValueParameters,settings:e.labelValueSettings}}),e._v(" "),t("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:[...e.settings],"widget-index":2}})],1)},i=[],a=n(1921),l=n(5736),r=n(9729);const o={mixins:[r.A],components:{LabelvalueWidget:a["default"],RangebarWidget:l["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},6507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"led mt-1",style:e.cssProps})},i=[],a=n(9729);const l={mixins:[a.A],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let t=this.colors[e];return t||(t=this.colors.ANY),t||(t="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":t}}},created(){this.settings.forEach((e=>{switch(e[0]){case"LED_COLOR":this.colors[e[1]]=e[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;n(4572);var o=n(2401),c=(0,o.A)(r,s,i,!1,null,"4e68ef1f",null);const d=c.exports},1057:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),e._v(" "),t("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),t("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__blue"}),e._v(" "),t("div",{staticClass:"limitsbar__line"}),e._v(" "),t("div",{staticClass:"limitsbar__arrow"})])}],a=n(9729),l=n(4364);const r="DEFAULT",o={mixins:[a.A],data(){return{width:160,height:22,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:r,currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:r}},created(){this.api=new l.x,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.limitsSettings=e})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((e=>{"MIN_VALUE"===e[0]&&(this.minValue=parseInt(e[1])),"MAX_VALUE"===e[0]&&(this.maxValue=parseInt(e[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);let e="CONVERTED";this.parameters[3]&&(e=this.parameters[3]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(e){this.redLow=10,this.redHigh=10,this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);let t=80;return 0==this.redLow&&(t+=10),0==this.redHigh&&(t+=10),this.scale=(e[3]-e[0])/t,e},calcPosition(e,t){if(null==e||!t)return;let n=t[0]-10*this.scale;this.minValue&&this.minValue==t[0]&&(n=t[0]);let s=t[3]-10*this.scale;if(this.maxValue&&this.maxValue==t[3]&&(s=t[3]),e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const t=parseInt((e-n)/this.scale);return t>100?100:t<0?0:t}},calcLimits(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then((e=>{this.currentLimitsSet=e}))}}},c=o;n(6619);var d=n(2401),u=(0,d.A)(c,s,i,!1,null,"344f6330",null);const m=u.exports},8518:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("div",{staticClass:"led align-self-center",style:e.cssProps}),e._v(" "),t("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},i=[],a=n(2967);const l={mixins:[a.A],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){let e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},r=l;n(8490);var o=n(2401),c=(0,o.A)(r,s,i,!1,null,"47f390ae",null);const d=c.exports},6992:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),e._v(" "),t("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),t("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__blue"}),e._v(" "),t("div",{staticClass:"limitsbar__line"}),e._v(" "),t("div",{staticClass:"limitsbar__arrow"})])}],a=n(9729),l=n(4364);const r="DEFAULT",o={mixins:[a.A],data(){return{width:20,height:100,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:r,currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),this.calcLimits(this.limitsSettings[this.selectedLimitsSet]),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,this.limitsSettings[this.selectedLimitsSet])+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:r}},created(){this.api=new l.x,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.limitsSettings=e})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);let e="CONVERTED";this.parameters[3]&&(e=this.parameters[3]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{calcPosition(e,t){if(!e||!t)return;let n=.8;t[0]===t[1]&&(n+=.1),t[2]===t[3]&&(n+=.1);const s=(t[3]-t[0])/n,i=t[0]-.1*s;t[3];if(e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const t=parseInt((e-i)/s*100);return t>100?100:t<0?0:t}},calcLimits(e){if(!e)return;let t=80;e[0]===e[1]?(this.redLow=0,t+=10):this.redLow=10,e[2]===e[3]?(this.redHigh=0,t+=10):this.redHigh=10;const n=1*(e[3]-e[0]);this.yellowLow=Math.round((e[1]-e[0])/n*t),this.yellowHigh=Math.round((e[3]-e[2])/n*t),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/n*t),this.greenHigh=Math.round((e[2]-e[5])/n*t),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0)},getCurrentLimitsSet:function(){this.api.get_limits_set().then((e=>{this.currentLimitsSet=e}))}}},c=o;n(2846);var d=n(2401),u=(0,d.A)(c,s,i,!1,null,"0e4c2263",null);const m=u.exports},2653:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,"hide-system-bar":"","hide-overview":""},on:{pause:()=>e.state="pause",start:()=>e.state="start"}})},i=[],a=n(1033),l=n(2056);const r={components:{Graph:l.A},mixins:[a.A]},o=r;var c=n(2401),d=(0,c.A)(o,s,i,!1,null,null,null);const u=d.exports},5043:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("table",{style:e.computedStyle,attrs:{role:"presentation"}},e._l(e.widgetChunks,(function(n,s){return t("tr",{key:"r"+s},e._l(n,(function(n,s){return t("td",{key:"c"+s},[t(n.type,e._g({tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))],1)})),0)})),0)},i=[],a=(n(9375),n(9843)),l=n(5250),r=n.n(l);const o={mixins:[a.A],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return r().chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let e=this.parameters[1];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},6825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("rux-progress",{staticClass:"progress",style:e.computedStyle,attrs:{value:e._value}})},i=[],a=n(9729);const l={mixins:[a.A],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let e=this.value;return null===e&&this.screen&&(e=this.screen.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;n(3519);var o=n(2401),c=(0,o.A)(r,s,i,!1,null,"e34552b0",null);const d=c.exports},5993:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},i=[],a=n(9729);const l={props:{value:{type:Number}},mixins:[a.A],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},5758:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-radio-group",{style:e.computedStyle,attrs:{"hide-details":"",dense:""},model:{value:e.selectedIndex,callback:function(t){e.selectedIndex=t},expression:"selectedIndex"}},e._l(e.widgets,(function(n,s){return t(n.type,e._g({key:s,tag:"component",attrs:{value:s,target:n.target,parameters:n.parameters,settings:n.settings,name:n.name}},e.$listeners))})),1)},i=[],a=n(9843);const l={mixins:[a.A],data(){return{selectedIndex:0}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},5736:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},i=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar__container"},[t("div",{staticClass:"rangebar__line"}),e._v(" "),t("div",{staticClass:"rangebar__arrow"})])}],a=n(9729);const l={mixins:[a.A],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{calcPosition(){let e=null;if(this.screen&&(e=this.screen.screenValues[this.valueId][0]),!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;const t=(e-this.min)/this.range*100;return t>100?100:t<0?0:t}}},r=l;n(519);var o=n(2401),c=(0,o.A)(r,s,i,!1,null,"f50bb458",null);const d=c.exports},9517:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("rux-monitoring-icon",e._g(e._b({staticClass:"rux-icon",attrs:{icon:e.icon,status:e.status,label:e.label,sublabel:e.subLabel},on:{click:e.clickHandler}},"rux-monitoring-icon",e.attrs,!1),e.on))},i=[],a=(n(9375),n(7010),n(9729));const l={mixins:[a.A],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[]}},computed:{status:function(){let e="off";if(this.screen)for(const t of this.items){let n=this.screen.screenValues[t][1];n&&((n.includes("BLUE")||n.includes("GREEN"))&&"caution"!=e&&"critical"!=e&&(e="normal"),n.includes("YELLOW")&&"critical"!=e&&(e="caution"),n.includes("RED")&&(e="critical"))}else e="off";return e}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.settings.forEach((e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let t="CONVERTED";e[4]&&(t=e[4]);let n=`${e[1]}__${e[2]}__${e[3]}__${t}`;this.items.push(n),this.screen&&this.screen.addItem(n);break}}))},destroyed:function(){this.screen&&this.items.forEach((e=>{this.screen.deleteItem(e)}))},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},9769:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("vertical-widget",e._g({staticClass:"overflow-y-auto",style:e.computedStyle,attrs:{settings:e.settings,parameters:e.parameters.slice(1),widgets:e.widgets}},e.$listeners))},i=[],a=n(9843),l=n(1629);const r={mixins:[a.A],components:{VerticalWidget:l["default"]},created:function(){this.setHeight(this.parameters[0],"px",200)}},o=r;var c=n(2401),d=(0,c.A)(o,s,i,!1,null,null,null);const u=d.exports},2959:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},i=[],a=n(9729);const l={mixins:[a.A],computed:{labelText(){return this.parameters[0]}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},6637:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{style:e.style})},i=[],a=n(9729);const l={mixins:[a.A],computed:{style:function(){return[`width: ${this.parameters[0]}px;`,`height: ${this.parameters[1]}px;`].join("")}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},6115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,sparkline:""}})},i=[],a=n(1033),l=n(2056);const r={components:{Graph:l.A},mixins:[a.A],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}},o=r;var c=n(2401),d=(0,c.A)(o,s,i,!1,null,null,null);const u=d.exports},2926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",[t("v-tabs",{style:e.computedStyle,model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(n,s){return t("v-tab",{key:s},[e._v("\n "+e._s(n.parameters[0])+"\n ")])})),1),e._v(" "),t("v-tabs-items",{model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(n,s){return t("v-tab-item",{key:s},e._l(n.widgets,(function(n,i){return t(n.type,e._g({key:`${s}-${i}`,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)})),1)],1)},i=[],a=n(9843);const l={mixins:[a.A],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},2128:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"textbox-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,s){return t("v-list-item",{key:s,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},i=[],a=n(2967),l=n(9821);n(9471);const r={components:{DetailsDialog:l.A},data:function(){return{width:200,height:200}},mixins:[a.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}},o=r;n(1552);var c=n(2401),d=(0,c.A)(o,s,i,!1,null,"0b5bfdc6",null);const u=d.exports},7540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},i=[],a=n(9729);const l={mixins:[a.A],data(){return{value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},6525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v("\n "+e._s(e.labelText)+"\n")])},i=[],a=(n(7107),n(9729));const l={mixins:[a.A],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},4348:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"prepend-inner-icon":e.astroIcon,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",s,!1),n))]}}])},[e._v(" "),t("span",[e._v(e._s(e.fullName))])]),e._v(" "),t("v-menu",{staticStyle:{"z-index":"10"},attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,s){return t("v-list-item",{key:s,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},i=[],a=n(2967),l=n(9821);const r=4,o={components:{DetailsDialog:l.A},mixins:[a.A],data:function(){return{width:12+r}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+r,"ch",this.width)}},c=o;n(8087);var d=n(2401),u=(0,d.A)(c,s,i,!1,null,"f6adf1e0",null);const m=u.exports},440:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("limitsbar-widget",{attrs:{parameters:e.parameters.slice(0,4),settings:[...e.settings],"widget-index":1}})],1)},i=[],a=n(4348),l=n(1057),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:a["default"],LimitsbarWidget:l["default"]},computed:{limitsBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3]]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},6931:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[t("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],a=n(4348),l=n(6992),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:a["default"],LimitscolumnWidget:l["default"]},computed:{limitsColumnParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},5918:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});n(7010);var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:[...e.settings],"widget-index":1}})],1)},i=[],a=n(4348),l=n(5736),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:a["default"],RangebarWidget:l["default"]},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,i,!1,null,null,null);const m=u.exports},1629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},e._l(e.widgets,(function(n,s){return t(n.type,e._g({key:s,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},i=[],a=(n(9375),n(9843));const l={mixins:[a.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},r=l;var o=n(2401),c=(0,o.A)(r,s,i,!1,null,null,null);const d=c.exports},5757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{staticClass:"boxbanner",style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),e._v(" "),t("vertical-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},i=[],a=n(1629),l=n(9843);const r={mixins:[l.A],components:{VerticalWidget:a["default"]}},o=r;n(1241);var c=n(2401),d=(0,c.A)(o,s,i,!1,null,"e0b00b10",null);const u=d.exports},6573:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".container[data-v-2ffd785b] .v-select__selections{width:auto}.v-overflow-btn[data-v-2ffd785b]{margin-top:0}.container[data-v-2ffd785b]{padding:0}.hazardous[data-v-2ffd785b] .v-select__selection{color:#ffdc00}",""]);const o=r},9305:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".editor[data-v-4d775f22]{margin-left:30px;height:50px;width:95%;position:relative;font-size:16px}",""]);const o=r},3076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".label[data-v-6659f972]{font-weight:700;text-transform:capitalize}[data-v-6659f972] .v-input--selection-controls{padding:0;margin:0}",""]);const o=r},7589:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".ace_autocomplete{width:60vw!important}",""]);const o=r},1365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".editor[data-v-2f59da98]{height:50vh;width:75vw;position:relative;font-size:16px}.v-textarea[data-v-2f59da98] textarea{padding:5px}",""]);const o=r},8730:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".edit-box,.v-window-item{background-color:var(--color-background-surface-default)}.edit-box{color:hsla(0,0%,100%,.7);padding:10px;margin-top:10px}.v-small-dialog__content{background-color:var(--color-background-surface-selected);padding:5px 5px}.uplot.side-legend{display:flex;width:auto}.uplot.side-legend .u-wrap{flex:none}.uplot.side-legend .u-legend{text-align:left;margin-left:0;width:220px}.uplot.side-legend .u-legend,.uplot.side-legend .u-legend td,.uplot.side-legend .u-legend th,.uplot.side-legend .u-legend tr{display:revert}.uplot.left-legend .u-legend{order:-1}.uplot.top-legend{display:flex;flex-direction:column}.uplot.top-legend .u-legend{order:-1}",""]);const o=r},9530:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,"#chart[data-v-5efb6623] .u-select{background-color:hsla(0,0%,100%,.07)}",""]);const o=r},1340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".errors[data-v-ff31ea44]{padding-top:0;margin-top:0}.v-textarea[data-v-ff31ea44] textarea{padding:5px}",""]);const o=r},9433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".button[data-v-36062eb2]{padding:4px}.select[data-v-36062eb2]{max-width:300px}.row+.row[data-v-36062eb2]{margin-top:0}",""]);const o=r},9808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const o=r},2604:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".array-widget-container[data-v-5cd86706] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-5cd86706] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-5cd86706] input{color:#00c800}.openc3-yellow[data-v-5cd86706] input{color:#ffdc00}.openc3-red[data-v-5cd86706] input{color:#ff2d2d}.openc3-blue[data-v-5cd86706] input{color:#09f}.openc3-purple[data-v-5cd86706] input{color:#c800c8}.openc3-black[data-v-5cd86706] input{color:#000}.openc3-white[data-v-5cd86706] input{color:#fff}",""]);const o=r},1651:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".block-widget-container[data-v-0872fd0e] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-0872fd0e] textarea{font-family:Courier New,Courier,monospace}.value[data-v-0872fd0e] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0872fd0e] input{color:#00c800}.openc3-yellow[data-v-0872fd0e] input{color:#ffdc00}.openc3-red[data-v-0872fd0e] input{color:#ff2d2d}.openc3-blue[data-v-0872fd0e] input{color:#09f}.openc3-purple[data-v-0872fd0e] input{color:#c800c8}.openc3-black[data-v-0872fd0e] input{color:#000}.openc3-white[data-v-0872fd0e] input{color:#fff}",""]);const o=r},8784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".boxbanner[data-v-7935dee2] .v-banner__wrapper{padding:4px!important}.boxbanner[data-v-7935dee2] .v-banner__text{font-weight:600;font-size:16px}",""]);const o=r},2498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".label[data-v-19db816e]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]);const o=r},9316:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".led[data-v-4e68ef1f]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]);const o=r},9058:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".led[data-v-47f390ae]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]);const o=r},6552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".textbox-widget-container[data-v-0b5bfdc6] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-0b5bfdc6] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0b5bfdc6] input{color:#00c800}.openc3-yellow[data-v-0b5bfdc6] input{color:#ffdc00}.openc3-red[data-v-0b5bfdc6] input{color:#ff2d2d}.openc3-blue[data-v-0b5bfdc6] input{color:#09f}.openc3-purple[data-v-0b5bfdc6] input{color:#c800c8}.openc3-black[data-v-0b5bfdc6] input{color:#000}.openc3-white[data-v-0b5bfdc6] input{color:#fff}",""]);const o=r},3425:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".boxbanner[data-v-e0b00b10] .v-banner__wrapper{padding:4px!important}.boxbanner[data-v-e0b00b10] .v-banner__text{font-weight:600;font-size:16px}",""]);const o=r},3224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]);const o=r},8452:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".limitsbar[data-v-344f6330]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-344f6330]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-344f6330]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-344f6330],.limitsbar__redlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-344f6330]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-344f6330]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-344f6330],.limitsbar__yellowlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-344f6330]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-344f6330]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-344f6330],.limitsbar__greenlow[data-v-344f6330]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-344f6330]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-344f6330]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-344f6330],.limitsbar__line[data-v-344f6330]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-344f6330]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-344f6330]{position:absolute;top:-5px;left:var(--position);width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const o=r},5895:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".limitsbar[data-v-0e4c2263]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-0e4c2263]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-0e4c2263]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-0e4c2263],.limitsbar__redlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-0e4c2263]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-0e4c2263]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-0e4c2263],.limitsbar__yellowlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-0e4c2263]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-0e4c2263],.limitsbar__greenlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-0e4c2263]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-0e4c2263],.limitsbar__line[data-v-0e4c2263]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-0e4c2263]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-0e4c2263]{position:absolute;bottom:var(--position);left:var(--container-width);width:0;height:0;transform:translateY(5px);border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid gray}",""]);const o=r},3160:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".progress[data-v-e34552b0]{margin:5px;flex:auto!important}",""]);const o=r},2574:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".rangebar[data-v-f50bb458]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.rangebar__container[data-v-f50bb458]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-f50bb458]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-f50bb458],.rangebar__line[data-v-f50bb458]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-f50bb458]{top:-5px;width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const o=r},3200:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),i=n.n(s),a=n(935),l=n.n(a),r=l()(i());r.push([e.id,".value-widget-container[data-v-f6adf1e0]{min-height:34px}.value-widget-container[data-v-f6adf1e0] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-f6adf1e0] input{text-align:var(--text-align)!important}[data-v-f6adf1e0] .v-input__slot:has(.v-icon){padding-left:2px!important}.value-widget-container[data-v-f6adf1e0] .v-icon{margin-top:9px}.value[data-v-f6adf1e0] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-f6adf1e0] input{color:#00c800}.openc3-yellow[data-v-f6adf1e0] input{color:#ffdc00}.openc3-red[data-v-f6adf1e0] input{color:#ff2d2d}.openc3-blue[data-v-f6adf1e0] input{color:#09f}.openc3-purple[data-v-f6adf1e0] input{color:#c800c8}.openc3-black[data-v-f6adf1e0] input{color:#000}.openc3-white[data-v-f6adf1e0] input{color:#fff}",""]);const o=r},5771:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9375),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4293),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__),ace_builds__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1841),ace_builds__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(ace_builds__WEBPACK_IMPORTED_MODULE_2__),ace_builds_src_min_noconflict_mode_ruby__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2739),ace_builds_src_min_noconflict_mode_ruby__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(ace_builds_src_min_noconflict_mode_ruby__WEBPACK_IMPORTED_MODULE_3__),ace_builds_src_min_noconflict_theme_twilight__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5617),ace_builds_src_min_noconflict_theme_twilight__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(ace_builds_src_min_noconflict_theme_twilight__WEBPACK_IMPORTED_MODULE_4__),_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2795),_openc3_tool_common_src_components_TargetPacketItemChooser__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6339),_tools_CommandSender_CommandParameterEditor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(880),_tools_CommandSender_utilities__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3345),_openc3_tool_common_src_services_openc3_api__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4364),_openc3_tool_common_src_components_DetailsDialog__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9821),_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5751),_openc3_tool_common_src_components_Openc3Screen__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5181),sprintf_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(9471),sprintf_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(sprintf_js__WEBPACK_IMPORTED_MODULE_13__);function cov_16daumg2kr(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",t="1b6cf9f98caad56e81571987501eadf177439d37",n=new Function("return this")(),s="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",statementMap:{0:{start:{line:25,column:4},end:{line:129,column:5}},1:{start:{line:69,column:12},end:{line:69,column:41}},2:{start:{line:70,column:12},end:{line:70,column:35}},3:{start:{line:99,column:16},end:{line:99,column:64}},4:{start:{line:106,column:16},end:{line:106,column:52}},5:{start:{line:113,column:16},end:{line:113,column:64}},6:{start:{line:116,column:16},end:{line:116,column:38}},7:{start:{line:123,column:16},end:{line:123,column:42}},8:{start:{line:132,column:4},end:{line:134,column:6}},9:{start:{line:133,column:6},end:{line:133,column:44}},10:{start:{line:135,column:4},end:{line:135,column:30}},11:{start:{line:137,column:4},end:{line:142,column:5}},12:{start:{line:138,column:6},end:{line:141,column:8}},13:{start:{line:143,column:4},end:{line:145,column:6}},14:{start:{line:144,column:6},end:{line:144,column:35}},15:{start:{line:148,column:4},end:{line:148,column:45}},16:{start:{line:149,column:4},end:{line:149,column:46}},17:{start:{line:150,column:4},end:{line:150,column:48}},18:{start:{line:151,column:4},end:{line:151,column:37}},19:{start:{line:152,column:4},end:{line:152,column:44}},20:{start:{line:153,column:4},end:{line:153,column:45}},21:{start:{line:154,column:4},end:{line:154,column:65}},22:{start:{line:155,column:4},end:{line:155,column:48}},23:{start:{line:156,column:4},end:{line:156,column:32}},24:{start:{line:157,column:4},end:{line:157,column:23}},25:{start:{line:158,column:4},end:{line:158,column:49}},26:{start:{line:160,column:4},end:{line:160,column:41}},27:{start:{line:161,column:4},end:{line:161,column:40}},28:{start:{line:162,column:4},end:{line:178,column:6}},29:{start:{line:163,column:6},end:{line:177,column:7}},30:{start:{line:164,column:8},end:{line:164,column:26}},31:{start:{line:165,column:22},end:{line:167,column:9}},32:{start:{line:169,column:8},end:{line:171,column:9}},33:{start:{line:170,column:10},end:{line:170,column:16}},34:{start:{line:173,column:25},end:{line:173,column:45}},35:{start:{line:174,column:24},end:{line:174,column:48}},36:{start:{line:175,column:8},end:{line:175,column:76}},37:{start:{line:176,column:8},end:{line:176,column:29}},38:{start:{line:181,column:4},end:{line:181,column:25}},39:{start:{line:182,column:4},end:{line:182,column:34}},40:{start:{line:186,column:6},end:{line:186,column:24}},41:{start:{line:187,column:6},end:{line:187,column:50}},42:{start:{line:188,column:6},end:{line:188,column:35}},43:{start:{line:189,column:6},end:{line:189,column:24}},44:{start:{line:190,column:6},end:{line:190,column:24}},45:{start:{line:191,column:6},end:{line:193,column:8}},46:{start:{line:192,column:8},end:{line:192,column:36}},47:{start:{line:196,column:6},end:{line:202,column:7}},48:{start:{line:201,column:8},end:{line:201,column:56}},49:{start:{line:203,column:6},end:{line:205,column:7}},50:{start:{line:204,column:8},end:{line:204,column:39}},51:{start:{line:207,column:16},end:{line:207,column:40}},52:{start:{line:208,column:26},end:{line:208,column:48}},53:{start:{line:209,column:6},end:{line:244,column:7}},54:{start:{line:210,column:24},end:{line:210,column:41}},55:{start:{line:211,column:8},end:{line:241,column:9}},56:{start:{line:215,column:23},end:{line:215,column:41}},57:{start:{line:216,column:10},end:{line:218,column:11}},58:{start:{line:217,column:12},end:{line:217,column:33}},59:{start:{line:219,column:21},end:{line:219,column:54}},60:{start:{line:220,column:10},end:{line:223,column:11}},61:{start:{line:220,column:23},end:{line:220,column:24}},62:{start:{line:221,column:25},end:{line:221,column:64}},63:{start:{line:222,column:12},end:{line:222,column:47}},64:{start:{line:224,column:10},end:{line:224,column:21}},65:{start:{line:226,column:10},end:{line:240,column:11}},66:{start:{line:227,column:12},end:{line:227,column:27}},67:{start:{line:228,column:17},end:{line:240,column:11}},68:{start:{line:229,column:12},end:{line:229,column:28}},69:{start:{line:230,column:17},end:{line:240,column:11}},70:{start:{line:231,column:12},end:{line:231,column:22}},71:{start:{line:232,column:17},end:{line:240,column:11}},72:{start:{line:233,column:12},end:{line:233,column:34}},73:{start:{line:234,column:17},end:{line:240,column:11}},74:{start:{line:235,column:12},end:{line:235,column:32}},75:{start:{line:236,column:17},end:{line:240,column:11}},76:{start:{line:237,column:12},end:{line:237,column:28}},77:{start:{line:239,column:12},end:{line:239,column:22}},78:{start:{line:243,column:8},end:{line:243,column:28}},79:{start:{line:248,column:6},end:{line:268,column:7}},80:{start:{line:252,column:8},end:{line:252,column:42}},81:{start:{line:253,column:8},end:{line:253,column:43}},82:{start:{line:255,column:8},end:{line:257,column:9}},83:{start:{line:256,column:10},end:{line:256,column:32}},84:{start:{line:258,column:8},end:{line:267,column:29}},85:{start:{line:272,column:6},end:{line:272,column:30}},86:{start:{line:273,column:6},end:{line:273,column:29}},87:{start:{line:274,column:6},end:{line:274,column:20}},88:{start:{line:275,column:6},end:{line:373,column:9}},89:{start:{line:279,column:12},end:{line:279,column:58}},90:{start:{line:280,column:12},end:{line:280,column:70}},91:{start:{line:283,column:12},end:{line:283,column:66}},92:{start:{line:284,column:12},end:{line:284,column:37}},93:{start:{line:289,column:12},end:{line:340,column:14}},94:{start:{line:290,column:14},end:{line:290,column:73}},95:{start:{line:290,column:67},end:{line:290,column:73}},96:{start:{line:291,column:14},end:{line:339,column:15}},97:{start:{line:295,column:26},end:{line:295,column:43}},98:{start:{line:300,column:16},end:{line:306,column:17}},99:{start:{line:305,column:18},end:{line:305,column:34}},100:{start:{line:307,column:16},end:{line:309,column:17}},101:{start:{line:308,column:18},end:{line:308,column:26}},102:{start:{line:310,column:16},end:{line:312,column:17}},103:{start:{line:311,column:18},end:{line:311,column:75}},104:{start:{line:313,column:28},end:{line:313,column:33}},105:{start:{line:315,column:16},end:{line:327,column:17}},106:{start:{line:316,column:18},end:{line:325,column:19}},107:{start:{line:319,column:20},end:{line:321,column:21}},108:{start:{line:320,column:22},end:{line:320,column:76}},109:{start:{line:322,column:20},end:{line:324,column:21}},110:{start:{line:323,column:22},end:{line:323,column:76}},111:{start:{line:326,column:18},end:{line:326,column:70}},112:{start:{line:328,column:16},end:{line:338,column:18}},113:{start:{line:341,column:12},end:{line:365,column:13}},114:{start:{line:342,column:14},end:{line:349,column:15}},115:{start:{line:344,column:18},end:{line:344,column:55}},116:{start:{line:345,column:18},end:{line:345,column:53}},117:{start:{line:346,column:18},end:{line:346,column:55}},118:{start:{line:347,column:18},end:{line:347,column:39}},119:{start:{line:351,column:14},end:{line:363,column:15}},120:{start:{line:352,column:16},end:{line:352,column:43}},121:{start:{line:353,column:16},end:{line:353,column:45}},122:{start:{line:354,column:39},end:{line:354,column:63}},123:{start:{line:355,column:16},end:{line:357,column:17}},124:{start:{line:355,column:29},end:{line:355,column:30}},125:{start:{line:356,column:18},end:{line:356,column:165}},126:{start:{line:358,column:16},end:{line:358,column:56}},127:{start:{line:360,column:16},end:{line:360,column:40}},128:{start:{line:361,column:16},end:{line:361,column:38}},129:{start:{line:362,column:16},end:{line:362,column:44}},130:{start:{line:364,column:14},end:{line:364,column:35}},131:{start:{line:366,column:12},end:{line:366,column:37}},132:{start:{line:367,column:12},end:{line:367,column:28}},133:{start:{line:370,column:12},end:{line:370,column:66}},134:{start:{line:371,column:12},end:{line:371,column:37}},135:{start:{line:377,column:22},end:{line:377,column:24}},136:{start:{line:378,column:6},end:{line:382,column:7}},137:{start:{line:378,column:19},end:{line:378,column:20}},138:{start:{line:379,column:8},end:{line:381,column:9}},139:{start:{line:383,column:6},end:{line:383,column:22}},140:{start:{line:387,column:6},end:{line:387,column:77}},141:{start:{line:396,column:6},end:{line:396,column:38}},142:{start:{line:397,column:6},end:{line:397,column:40}},143:{start:{line:398,column:6},end:{line:398,column:36}},144:{start:{line:400,column:6},end:{line:400,column:30}},145:{start:{line:401,column:22},end:{line:401,column:27}},146:{start:{line:402,column:16},end:{line:402,column:18}},147:{start:{line:403,column:6},end:{line:467,column:7}},148:{start:{line:405,column:10},end:{line:405,column:30}},149:{start:{line:407,column:10},end:{line:462,column:11}},150:{start:{line:409,column:12},end:{line:416,column:13}},151:{start:{line:410,column:14},end:{line:413,column:26}},152:{start:{line:415,column:14},end:{line:415,column:68}},153:{start:{line:417,column:12},end:{line:417,column:44}},154:{start:{line:420,column:12},end:{line:452,column:13}},155:{start:{line:421,column:14},end:{line:435,column:15}},156:{start:{line:422,column:16},end:{line:422,column:46}},157:{start:{line:423,column:16},end:{line:427,column:17}},158:{start:{line:429,column:16},end:{line:429,column:31}},159:{start:{line:430,column:16},end:{line:434,column:18}},160:{start:{line:437,column:14},end:{line:451,column:15}},161:{start:{line:438,column:16},end:{line:438,column:42}},162:{start:{line:439,column:16},end:{line:443,column:17}},163:{start:{line:445,column:16},end:{line:445,column:27}},164:{start:{line:446,column:16},end:{line:450,column:18}},165:{start:{line:454,column:12},end:{line:461,column:13}},166:{start:{line:456,column:16},end:{line:456,column:54}},167:{start:{line:459,column:16},end:{line:459,column:53}},168:{start:{line:465,column:10},end:{line:465,column:47}},169:{start:{line:471,column:6},end:{line:471,column:39}},170:{start:{line:472,column:16},end:{line:472,column:18}},171:{start:{line:473,column:16},end:{line:473,column:18}},172:{start:{line:474,column:6},end:{line:516,column:7}},173:{start:{line:475,column:8},end:{line:494,column:9}},174:{start:{line:476,column:10},end:{line:476,column:40}},175:{start:{line:477,column:10},end:{line:481,column:11}},176:{start:{line:483,column:10},end:{line:483,column:25}},177:{start:{line:484,column:10},end:{line:493,column:11}},178:{start:{line:496,column:8},end:{line:515,column:9}},179:{start:{line:497,column:10},end:{line:497,column:36}},180:{start:{line:498,column:10},end:{line:502,column:11}},181:{start:{line:504,column:10},end:{line:504,column:21}},182:{start:{line:505,column:10},end:{line:514,column:11}},183:{start:{line:518,column:6},end:{line:525,column:7}},184:{start:{line:520,column:10},end:{line:520,column:48}},185:{start:{line:523,column:10},end:{line:523,column:47}},186:{start:{line:529,column:6},end:{line:529,column:39}},187:{start:{line:530,column:6},end:{line:530,column:48}},188:{start:{line:531,column:6},end:{line:531,column:31}},189:{start:{line:535,column:16},end:{line:535,column:18}},190:{start:{line:536,column:6},end:{line:582,column:7}},191:{start:{line:537,column:8},end:{line:537,column:58}},192:{start:{line:538,column:19},end:{line:538,column:43}},193:{start:{line:539,column:8},end:{line:557,column:9}},194:{start:{line:540,column:10},end:{line:540,column:25}},195:{start:{line:541,column:10},end:{line:556,column:11}},196:{start:{line:541,column:23},end:{line:541,column:24}},197:{start:{line:542,column:22},end:{line:542,column:29}},198:{start:{line:543,column:24},end:{line:543,column:62}},199:{start:{line:545,column:12},end:{line:551,column:13}},200:{start:{line:550,column:14},end:{line:550,column:34}},201:{start:{line:552,column:12},end:{line:552,column:36}},202:{start:{line:553,column:12},end:{line:555,column:13}},203:{start:{line:554,column:14},end:{line:554,column:25}},204:{start:{line:558,column:8},end:{line:558,column:19}},205:{start:{line:559,column:8},end:{line:566,column:9}},206:{start:{line:560,column:10},end:{line:560,column:21}},207:{start:{line:561,column:10},end:{line:563,column:11}},208:{start:{line:562,column:12},end:{line:562,column:40}},209:{start:{line:564,column:10},end:{line:564,column:37}},210:{start:{line:565,column:10},end:{line:565,column:40}},211:{start:{line:567,column:8},end:{line:567,column:23}},212:{start:{line:569,column:8},end:{line:577,column:9}},213:{start:{line:570,column:22},end:{line:570,column:48}},214:{start:{line:571,column:10},end:{line:576,column:11}},215:{start:{line:572,column:22},end:{line:572,column:77}},216:{start:{line:573,column:12},end:{line:573,column:56}},217:{start:{line:575,column:12},end:{line:575,column:25}},218:{start:{line:578,column:8},end:{line:578,column:25}},219:{start:{line:580,column:22},end:{line:580,column:75}},220:{start:{line:581,column:8},end:{line:581,column:50}},221:{start:{line:584,column:6},end:{line:584,column:43}},222:{start:{line:585,column:6},end:{line:585,column:70}},223:{start:{line:586,column:6},end:{line:586,column:31}},224:{start:{line:590,column:6},end:{line:590,column:30}},225:{start:{line:591,column:6},end:{line:591,column:23}},226:{start:{line:592,column:6},end:{line:592,column:56}},227:{start:{line:596,column:6},end:{line:596,column:59}},228:{start:{line:597,column:6},end:{line:600,column:7}},229:{start:{line:598,column:8},end:{line:598,column:27}},230:{start:{line:599,column:8},end:{line:599,column:36}},231:{start:{line:601,column:6},end:{line:603,column:7}},232:{start:{line:602,column:8},end:{line:602,column:38}},233:{start:{line:607,column:6},end:{line:611,column:8}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:24,column:2},end:{line:24,column:3}},loc:{start:{line:24,column:9},end:{line:130,column:3}},line:24},1:{name:"(anonymous_1)",decl:{start:{line:68,column:18},end:{line:68,column:19}},loc:{start:{line:68,column:24},end:{line:71,column:11}},line:68},2:{name:"(anonymous_2)",decl:{start:{line:98,column:23},end:{line:98,column:24}},loc:{start:{line:98,column:29},end:{line:100,column:15}},line:98},3:{name:"(anonymous_3)",decl:{start:{line:105,column:23},end:{line:105,column:24}},loc:{start:{line:105,column:29},end:{line:107,column:15}},line:105},4:{name:"(anonymous_4)",decl:{start:{line:112,column:23},end:{line:112,column:24}},loc:{start:{line:112,column:29},end:{line:117,column:15}},line:112},5:{name:"(anonymous_5)",decl:{start:{line:122,column:23},end:{line:122,column:24}},loc:{start:{line:122,column:29},end:{line:124,column:15}},line:122},6:{name:"(anonymous_6)",decl:{start:{line:131,column:2},end:{line:131,column:3}},loc:{start:{line:131,column:12},end:{line:146,column:3}},line:131},7:{name:"(anonymous_7)",decl:{start:{line:132,column:65},end:{line:132,column:66}},loc:{start:{line:132,column:79},end:{line:134,column:5}},line:132},8:{name:"(anonymous_8)",decl:{start:{line:143,column:61},end:{line:143,column:62}},loc:{start:{line:143,column:75},end:{line:145,column:5}},line:143},9:{name:"(anonymous_9)",decl:{start:{line:147,column:2},end:{line:147,column:3}},loc:{start:{line:147,column:12},end:{line:179,column:3}},line:147},10:{name:"(anonymous_10)",decl:{start:{line:162,column:54},end:{line:162,column:55}},loc:{start:{line:162,column:61},end:{line:178,column:5}},line:162},11:{name:"(anonymous_11)",decl:{start:{line:180,column:2},end:{line:180,column:3}},loc:{start:{line:180,column:18},end:{line:183,column:3}},line:180},12:{name:"(anonymous_12)",decl:{start:{line:185,column:4},end:{line:185,column:5}},loc:{start:{line:185,column:28},end:{line:194,column:5}},line:185},13:{name:"(anonymous_13)",decl:{start:{line:191,column:21},end:{line:191,column:22}},loc:{start:{line:191,column:27},end:{line:193,column:7}},line:191},14:{name:"(anonymous_14)",decl:{start:{line:195,column:4},end:{line:195,column:5}},loc:{start:{line:195,column:26},end:{line:245,column:5}},line:195},15:{name:"(anonymous_15)",decl:{start:{line:247,column:4},end:{line:247,column:5}},loc:{start:{line:247,column:26},end:{line:269,column:5}},line:247},16:{name:"(anonymous_16)",decl:{start:{line:267,column:17},end:{line:267,column:18}},loc:{start:{line:267,column:26},end:{line:267,column:28}},line:267},17:{name:"(anonymous_17)",decl:{start:{line:271,column:4},end:{line:271,column:5}},loc:{start:{line:271,column:22},end:{line:374,column:5}},line:271},18:{name:"(anonymous_18)",decl:{start:{line:278,column:10},end:{line:278,column:11}},loc:{start:{line:278,column:22},end:{line:281,column:11}},line:278},19:{name:"(anonymous_19)",decl:{start:{line:282,column:10},end:{line:282,column:11}},loc:{start:{line:282,column:21},end:{line:285,column:11}},line:282},20:{name:"(anonymous_20)",decl:{start:{line:288,column:10},end:{line:288,column:11}},loc:{start:{line:288,column:23},end:{line:368,column:11}},line:288},21:{name:"(anonymous_21)",decl:{start:{line:289,column:34},end:{line:289,column:35}},loc:{start:{line:289,column:49},end:{line:340,column:13}},line:289},22:{name:"(anonymous_22)",decl:{start:{line:343,column:16},end:{line:343,column:17}},loc:{start:{line:343,column:30},end:{line:348,column:17}},line:343},23:{name:"(anonymous_23)",decl:{start:{line:369,column:10},end:{line:369,column:11}},loc:{start:{line:369,column:21},end:{line:372,column:11}},line:369},24:{name:"(anonymous_24)",decl:{start:{line:376,column:4},end:{line:376,column:5}},loc:{start:{line:376,column:22},end:{line:384,column:5}},line:376},25:{name:"(anonymous_25)",decl:{start:{line:386,column:4},end:{line:386,column:5}},loc:{start:{line:386,column:15},end:{line:388,column:5}},line:386},26:{name:"(anonymous_26)",decl:{start:{line:394,column:4},end:{line:394,column:5}},loc:{start:{line:394,column:48},end:{line:468,column:5}},line:394},27:{name:"(anonymous_27)",decl:{start:{line:404,column:8},end:{line:404,column:9}},loc:{start:{line:404,column:22},end:{line:463,column:9}},line:404},28:{name:"(anonymous_28)",decl:{start:{line:455,column:14},end:{line:455,column:15}},loc:{start:{line:455,column:28},end:{line:457,column:15}},line:455},29:{name:"(anonymous_29)",decl:{start:{line:458,column:14},end:{line:458,column:15}},loc:{start:{line:458,column:25},end:{line:460,column:15}},line:458},30:{name:"(anonymous_30)",decl:{start:{line:464,column:8},end:{line:464,column:9}},loc:{start:{line:464,column:19},end:{line:466,column:9}},line:464},31:{name:"(anonymous_31)",decl:{start:{line:470,column:4},end:{line:470,column:5}},loc:{start:{line:470,column:23},end:{line:526,column:5}},line:470},32:{name:"(anonymous_32)",decl:{start:{line:519,column:8},end:{line:519,column:9}},loc:{start:{line:519,column:22},end:{line:521,column:9}},line:519},33:{name:"(anonymous_33)",decl:{start:{line:522,column:8},end:{line:522,column:9}},loc:{start:{line:522,column:19},end:{line:524,column:9}},line:522},34:{name:"(anonymous_34)",decl:{start:{line:528,column:4},end:{line:528,column:5}},loc:{start:{line:528,column:25},end:{line:532,column:5}},line:528},35:{name:"(anonymous_35)",decl:{start:{line:534,column:4},end:{line:534,column:5}},loc:{start:{line:534,column:43},end:{line:587,column:5}},line:534},36:{name:"(anonymous_36)",decl:{start:{line:589,column:4},end:{line:589,column:5}},loc:{start:{line:589,column:19},end:{line:593,column:5}},line:589},37:{name:"(anonymous_37)",decl:{start:{line:595,column:4},end:{line:595,column:5}},loc:{start:{line:595,column:53},end:{line:604,column:5}},line:595},38:{name:"(anonymous_38)",decl:{start:{line:606,column:4},end:{line:606,column:5}},loc:{start:{line:606,column:31},end:{line:612,column:5}},line:606}},branchMap:{0:{loc:{start:{line:137,column:4},end:{line:142,column:5}},type:"if",locations:[{start:{line:137,column:4},end:{line:142,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:137},1:{loc:{start:{line:137,column:8},end:{line:137,column:62}},type:"binary-expr",locations:[{start:{line:137,column:8},end:{line:137,column:33}},{start:{line:137,column:37},end:{line:137,column:62}}],line:137},2:{loc:{start:{line:163,column:6},end:{line:177,column:7}},type:"if",locations:[{start:{line:163,column:6},end:{line:177,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:163},3:{loc:{start:{line:169,column:8},end:{line:171,column:9}},type:"if",locations:[{start:{line:169,column:8},end:{line:171,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:169},4:{loc:{start:{line:196,column:6},end:{line:202,column:7}},type:"if",locations:[{start:{line:196,column:6},end:{line:202,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:196},5:{loc:{start:{line:197,column:8},end:{line:199,column:29}},type:"binary-expr",locations:[{start:{line:197,column:8},end:{line:197,column:52}},{start:{line:198,column:8},end:{line:198,column:66}},{start:{line:199,column:8},end:{line:199,column:29}}],line:197},6:{loc:{start:{line:203,column:6},end:{line:205,column:7}},type:"if",locations:[{start:{line:203,column:6},end:{line:205,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:203},7:{loc:{start:{line:209,column:6},end:{line:244,column:7}},type:"if",locations:[{start:{line:209,column:6},end:{line:244,column:7}},{start:{line:242,column:13},end:{line:244,column:7}}],line:209},8:{loc:{start:{line:211,column:8},end:{line:241,column:9}},type:"if",locations:[{start:{line:211,column:8},end:{line:241,column:9}},{start:{line:225,column:15},end:{line:241,column:9}}],line:211},9:{loc:{start:{line:212,column:10},end:{line:213,column:36}},type:"binary-expr",locations:[{start:{line:212,column:11},end:{line:212,column:34}},{start:{line:212,column:38},end:{line:212,column:60}},{start:{line:213,column:10},end:{line:213,column:36}}],line:212},10:{loc:{start:{line:216,column:10},end:{line:218,column:11}},type:"if",locations:[{start:{line:216,column:10},end:{line:218,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:216},11:{loc:{start:{line:226,column:10},end:{line:240,column:11}},type:"if",locations:[{start:{line:226,column:10},end:{line:240,column:11}},{start:{line:228,column:17},end:{line:240,column:11}}],line:226},12:{loc:{start:{line:228,column:17},end:{line:240,column:11}},type:"if",locations:[{start:{line:228,column:17},end:{line:240,column:11}},{start:{line:230,column:17},end:{line:240,column:11}}],line:228},13:{loc:{start:{line:230,column:17},end:{line:240,column:11}},type:"if",locations:[{start:{line:230,column:17},end:{line:240,column:11}},{start:{line:232,column:17},end:{line:240,column:11}}],line:230},14:{loc:{start:{line:232,column:17},end:{line:240,column:11}},type:"if",locations:[{start:{line:232,column:17},end:{line:240,column:11}},{start:{line:234,column:17},end:{line:240,column:11}}],line:232},15:{loc:{start:{line:234,column:17},end:{line:240,column:11}},type:"if",locations:[{start:{line:234,column:17},end:{line:240,column:11}},{start:{line:236,column:17},end:{line:240,column:11}}],line:234},16:{loc:{start:{line:236,column:17},end:{line:240,column:11}},type:"if",locations:[{start:{line:236,column:17},end:{line:240,column:11}},{start:{line:238,column:17},end:{line:240,column:11}}],line:236},17:{loc:{start:{line:248,column:6},end:{line:268,column:7}},type:"if",locations:[{start:{line:248,column:6},end:{line:268,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:248},18:{loc:{start:{line:249,column:8},end:{line:250,column:45}},type:"binary-expr",locations:[{start:{line:249,column:8},end:{line:249,column:44}},{start:{line:250,column:8},end:{line:250,column:45}}],line:249},19:{loc:{start:{line:255,column:8},end:{line:257,column:9}},type:"if",locations:[{start:{line:255,column:8},end:{line:257,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:255},20:{loc:{start:{line:290,column:14},end:{line:290,column:73}},type:"if",locations:[{start:{line:290,column:14},end:{line:290,column:73}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:290},21:{loc:{start:{line:291,column:14},end:{line:339,column:15}},type:"if",locations:[{start:{line:291,column:14},end:{line:339,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:291},22:{loc:{start:{line:292,column:16},end:{line:293,column:38}},type:"binary-expr",locations:[{start:{line:292,column:16},end:{line:292,column:60}},{start:{line:293,column:16},end:{line:293,column:38}}],line:292},23:{loc:{start:{line:300,column:16},end:{line:306,column:17}},type:"if",locations:[{start:{line:300,column:16},end:{line:306,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:300},24:{loc:{start:{line:301,column:18},end:{line:303,column:55}},type:"binary-expr",locations:[{start:{line:301,column:18},end:{line:301,column:35}},{start:{line:302,column:18},end:{line:302,column:50}},{start:{line:303,column:18},end:{line:303,column:55}}],line:301},25:{loc:{start:{line:307,column:16},end:{line:309,column:17}},type:"if",locations:[{start:{line:307,column:16},end:{line:309,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:307},26:{loc:{start:{line:310,column:16},end:{line:312,column:17}},type:"if",locations:[{start:{line:310,column:16},end:{line:312,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:310},27:{loc:{start:{line:315,column:16},end:{line:327,column:17}},type:"if",locations:[{start:{line:315,column:16},end:{line:327,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:315},28:{loc:{start:{line:315,column:20},end:{line:315,column:74}},type:"binary-expr",locations:[{start:{line:315,column:20},end:{line:315,column:45}},{start:{line:315,column:49},end:{line:315,column:74}}],line:315},29:{loc:{start:{line:316,column:18},end:{line:325,column:19}},type:"if",locations:[{start:{line:316,column:18},end:{line:325,column:19}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:316},30:{loc:{start:{line:319,column:20},end:{line:321,column:21}},type:"if",locations:[{start:{line:319,column:20},end:{line:321,column:21}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:319},31:{loc:{start:{line:322,column:20},end:{line:324,column:21}},type:"if",locations:[{start:{line:322,column:20},end:{line:324,column:21}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:322},32:{loc:{start:{line:341,column:12},end:{line:365,column:13}},type:"if",locations:[{start:{line:341,column:12},end:{line:365,column:13}},{start:{line:350,column:19},end:{line:365,column:13}}],line:341},33:{loc:{start:{line:351,column:14},end:{line:363,column:15}},type:"if",locations:[{start:{line:351,column:14},end:{line:363,column:15}},{start:{line:359,column:21},end:{line:363,column:15}}],line:351},34:{loc:{start:{line:407,column:10},end:{line:462,column:11}},type:"if",locations:[{start:{line:407,column:10},end:{line:462,column:11}},{start:{line:418,column:17},end:{line:462,column:11}}],line:407},35:{loc:{start:{line:409,column:12},end:{line:416,column:13}},type:"if",locations:[{start:{line:409,column:12},end:{line:416,column:13}},{start:{line:414,column:19},end:{line:416,column:13}}],line:409},36:{loc:{start:{line:420,column:12},end:{line:452,column:13}},type:"if",locations:[{start:{line:420,column:12},end:{line:452,column:13}},{start:{line:436,column:19},end:{line:452,column:13}}],line:420},37:{loc:{start:{line:421,column:14},end:{line:435,column:15}},type:"if",locations:[{start:{line:421,column:14},end:{line:435,column:15}},{start:{line:428,column:21},end:{line:435,column:15}}],line:421},38:{loc:{start:{line:437,column:14},end:{line:451,column:15}},type:"if",locations:[{start:{line:437,column:14},end:{line:451,column:15}},{start:{line:444,column:21},end:{line:451,column:15}}],line:437},39:{loc:{start:{line:474,column:6},end:{line:516,column:7}},type:"if",locations:[{start:{line:474,column:6},end:{line:516,column:7}},{start:{line:495,column:13},end:{line:516,column:7}}],line:474},40:{loc:{start:{line:475,column:8},end:{line:494,column:9}},type:"if",locations:[{start:{line:475,column:8},end:{line:494,column:9}},{start:{line:482,column:15},end:{line:494,column:9}}],line:475},41:{loc:{start:{line:496,column:8},end:{line:515,column:9}},type:"if",locations:[{start:{line:496,column:8},end:{line:515,column:9}},{start:{line:503,column:15},end:{line:515,column:9}}],line:496},42:{loc:{start:{line:536,column:6},end:{line:582,column:7}},type:"if",locations:[{start:{line:536,column:6},end:{line:582,column:7}},{start:{line:579,column:13},end:{line:582,column:7}}],line:536},43:{loc:{start:{line:539,column:8},end:{line:557,column:9}},type:"if",locations:[{start:{line:539,column:8},end:{line:557,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:539},44:{loc:{start:{line:545,column:12},end:{line:551,column:13}},type:"if",locations:[{start:{line:545,column:12},end:{line:551,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:545},45:{loc:{start:{line:546,column:14},end:{line:548,column:37}},type:"binary-expr",locations:[{start:{line:546,column:14},end:{line:546,column:50}},{start:{line:547,column:14},end:{line:547,column:37}},{start:{line:548,column:14},end:{line:548,column:37}}],line:546},46:{loc:{start:{line:553,column:12},end:{line:555,column:13}},type:"if",locations:[{start:{line:553,column:12},end:{line:555,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:553},47:{loc:{start:{line:559,column:8},end:{line:566,column:9}},type:"if",locations:[{start:{line:559,column:8},end:{line:566,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:559},48:{loc:{start:{line:561,column:10},end:{line:563,column:11}},type:"if",locations:[{start:{line:561,column:10},end:{line:563,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:561},49:{loc:{start:{line:569,column:8},end:{line:577,column:9}},type:"if",locations:[{start:{line:569,column:8},end:{line:577,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:569},50:{loc:{start:{line:571,column:10},end:{line:576,column:11}},type:"if",locations:[{start:{line:571,column:10},end:{line:576,column:11}},{start:{line:574,column:17},end:{line:576,column:11}}],line:571},51:{loc:{start:{line:595,column:33},end:{line:595,column:51}},type:"default-arg",locations:[{start:{line:595,column:46},end:{line:595,column:51}}],line:595},52:{loc:{start:{line:597,column:6},end:{line:600,column:7}},type:"if",locations:[{start:{line:597,column:6},end:{line:600,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:597},53:{loc:{start:{line:597,column:10},end:{line:597,column:47}},type:"binary-expr",locations:[{start:{line:597,column:10},end:{line:597,column:23}},{start:{line:597,column:27},end:{line:597,column:47}}],line:597},54:{loc:{start:{line:601,column:6},end:{line:603,column:7}},type:"if",locations:[{start:{line:601,column:6},end:{line:603,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:601}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0,174:0,175:0,176:0,177:0,178:0,179:0,180:0,181:0,182:0,183:0,184:0,185:0,186:0,187:0,188:0,189:0,190:0,191:0,192:0,193:0,194:0,195:0,196:0,197:0,198:0,199:0,200:0,201:0,202:0,203:0,204:0,205:0,206:0,207:0,208:0,209:0,210:0,211:0,212:0,213:0,214:0,215:0,216:0,217:0,218:0,219:0,220:0,221:0,222:0,223:0,224:0,225:0,226:0,227:0,228:0,229:0,230:0,231:0,232:0,233:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0,0],45:[0,0,0],46:[0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0],51:[0],52:[0,0],53:[0,0],54:[0,0]},inputSourceMap:{version:3,sources:["CommandSender.vue"],names:[],mappings:";AAoPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;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 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus=\"menus\" :title=\"title\" />\n <v-card\n ><div style=\"padding: 10px\">\n <target-packet-item-chooser\n :initial-target-name=\"this.$route.params.target\"\n :initial-packet-name=\"this.$route.params.packet\"\n @on-set=\"commandChanged($event)\"\n @click=\"buildCmd($event)\"\n :disabled=\"sendDisabled\"\n button-text=\"Send\"\n mode=\"cmd\"\n />\n </div>\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 label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\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=\"pa-3\">Status: {{ status }}</div>\n </v-card>\n <div style=\"height: 15px\" />\n <multipane\n class=\"horizontal-panes\"\n layout=\"horizontal\"\n @paneResize=\"editor.resize()\"\n >\n <v-row>\n <v-col>\n <v-card class=\"pb-2\">\n <v-card-subtitle>\n Editable Command History: (Pressing Enter on the line re-executes\n the command)\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\" class=\"float-right\">\n <v-btn icon data-test=\"clear-history\" @click=\"clearHistory\">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Clear History </span>\n </v-tooltip>\n </v-card-subtitle>\n <v-row class=\"mt-2 mb-2\">\n <pre ref=\"editor\" class=\"editor\" data-test=\"sender-history\"></pre>\n </v-row>\n </v-card>\n </v-col>\n <v-col v-if=\"screenDefinition\" md=\"auto\">\n <openc3-screen\n v-if=\"screenDefinition\"\n :target=\"screenTarget\"\n :screen=\"screenName\"\n :definition=\"screenDefinition\"\n :keywords=\"keywords\"\n :count=\"screenCount\"\n :showClose=\"false\"\n />\n </v-col>\n </v-row>\n </multipane>\n <div style=\"height: 15px\" />\n\n <v-menu\n v-model=\"contextMenuShown\"\n :position-x=\"x\"\n :position-y=\"y\"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for=\"(item, index) in contextMenuOptions\"\n :key=\"index\"\n @click.stop=\"item.action\"\n >\n <v-list-item-title>{{ item.title }}</v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n <details-dialog\n :target-name=\"targetName\"\n :packet-name=\"commandName\"\n :item-name=\"parameterName\"\n :type=\"'cmd'\"\n v-model=\"viewDetails\"\n />\n\n <v-dialog v-model=\"displayErrorDialog\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Error </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <v-card-text>\n <span v-text=\"status\" />\n </v-card-text>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn\n @click=\"displayErrorDialog = false\"\n color=\"primary\"\n data-test=\"error-dialog-ok\"\n >\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n\n <v-dialog v-model=\"displaySendHazardous\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Hazardous Warning </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <span>\n Warning: Command {{ hazardousCommand }} is Hazardous. Send?\n </span>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn @click=\"cancelHazardousCmd\" outlined> Cancel </v-btn>\n <v-btn @click=\"sendHazardousCmd\" class=\"primary mx-1\">\n Send\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n\n <v-dialog v-model=\"displaySendRaw\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Send Raw </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <v-col>Interface:</v-col>\n <v-col>\n <v-select\n solo\n hide-details\n dense\n :items=\"interfaces\"\n item-text=\"label\"\n item-value=\"value\"\n v-model=\"selectedInterface\"\n />\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col>Filename:</v-col>\n <v-col>\n <input type=\"file\" @change=\"selectRawCmdFile($event)\" />\n </v-col>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn @click=\"cancelRawCmd\" outlined data-test=\"raw-cancel\">\n Cancel\n </v-btn>\n <v-btn @click=\"sendRawCmd\" class=\"primary\" data-test=\"raw-ok\">\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport * as ace from 'ace-builds'\nimport 'ace-builds/src-min-noconflict/mode-ruby'\nimport 'ace-builds/src-min-noconflict/theme-twilight'\nimport Api from '@openc3/tool-common/src/services/api'\nimport TargetPacketItemChooser from '@openc3/tool-common/src/components/TargetPacketItemChooser'\nimport CommandParameterEditor from '@/tools/CommandSender/CommandParameterEditor'\nimport Utilities from '@/tools/CommandSender/utilities'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\nimport DetailsDialog from '@openc3/tool-common/src/components/DetailsDialog'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport Openc3Screen from '@openc3/tool-common/src/components/Openc3Screen'\nimport 'sprintf-js'\n\nexport default {\n mixins: [Utilities],\n components: {\n DetailsDialog,\n TargetPacketItemChooser,\n CommandParameterEditor,\n TopBar,\n Openc3Screen,\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: 'Range', value: 'range' },\n { text: 'Description', value: 'description' },\n ],\n editor: null,\n targetName: '',\n commandName: '',\n paramList: '',\n lastTargetName: '',\n lastCommandName: '',\n lastParamList: '',\n ignoreRangeChecks: false,\n statesInHex: false,\n showIgnoredParams: false,\n cmdRaw: false,\n ignoredParams: [],\n rows: [],\n interfaces: [],\n selectedInterface: '',\n rawCmdFile: null,\n status: '',\n history: '',\n hazardousCommand: '',\n displaySendHazardous: false,\n displayErrorDialog: false,\n displaySendRaw: false,\n sendDisabled: false,\n api: null,\n viewDetails: false,\n contextMenuShown: false,\n parameterName: '',\n reservedItemNames: [],\n x: 0,\n y: 0,\n contextMenuOptions: [\n {\n title: 'Details',\n action: () => {\n this.contextMenuShown = false\n this.viewDetails = true\n },\n },\n ],\n keywords: [],\n screenTarget: null,\n screenName: null,\n screenDefinition: null,\n screenCount: 0,\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 Api.get('/openc3-api/autocomplete/keywords/screen').then((response) => {\n this.keywords = response.data\n })\n },\n mounted() {\n this.editor = ace.edit(this.$refs.editor)\n this.editor.setTheme('ace/theme/twilight')\n this.editor.session.setMode('ace/mode/ruby')\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.setHighlightActiveLine(false)\n this.editor.setValue(localStorage['command_sender__history'])\n this.history = this.editor.getValue().trim()\n this.editor.clearSelection()\n this.editor.focus()\n this.editor.setAutoScrollEditorIntoView(true)\n // This only limits the displayed lines, history can grow in a scrollable window\n this.editor.setOption('maxLines', 30)\n this.editor.setOption('minLines', 1)\n this.editor.container.addEventListener('keydown', (e) => {\n if (e.key === 'Enter') {\n e.preventDefault()\n let command = this.editor.session.getLine(\n this.editor.getCursorPosition().row,\n )\n // Blank commands can happen if typing return on a blank line\n if (command === '') {\n return\n }\n // Remove the cmd(\"\") wrapper\n let firstQuote = command.indexOf('\"')\n let lastQuote = command.lastIndexOf('\"')\n command = command.substr(firstQuote + 1, lastQuote - firstQuote - 1)\n this.sendCmd(command)\n }\n })\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n methods: {\n showContextMenu(e, row) {\n e.preventDefault()\n this.parameterName = row.item.parameter_name\n this.contextMenuShown = false\n this.x = e.clientX\n this.y = e.clientY\n this.$nextTick(() => {\n this.contextMenuShown = true\n })\n },\n convertToValue(param) {\n if (\n param.val_and_states.selected_state !== null &&\n param.val_and_states.selected_state !== 'MANUALLY ENTERED' &&\n this.cmdRaw === false\n ) {\n return param.val_and_states.selected_state_label\n }\n if (typeof param.val_and_states.val !== 'string') {\n return param.val_and_states.val\n }\n\n var str = param.val_and_states.val\n var quotesRemoved = this.removeQuotes(str)\n if (str === quotesRemoved) {\n var upcaseStr = str.toUpperCase()\n if (\n (param.type === 'STRING' || param.type === 'BLOCK') &&\n upcaseStr.startsWith('0X')\n ) {\n var hexStr = upcaseStr.slice(2)\n if (hexStr.length % 2 !== 0) {\n hexStr = '0' + hexStr\n }\n var jstr = { json_class: 'String', raw: [] }\n for (var i = 0; i < hexStr.length; i += 2) {\n var nibble = hexStr.charAt(i) + hexStr.charAt(i + 1)\n jstr.raw.push(parseInt(nibble, 16))\n }\n return jstr\n } else {\n if (upcaseStr === 'INFINITY') {\n return Infinity\n } else if (upcaseStr === '-INFINITY') {\n return -Infinity\n } else if (upcaseStr === 'NAN') {\n return NaN\n } else if (this.isFloat(str)) {\n return parseFloat(str)\n } else if (this.isInt(str)) {\n return parseInt(str)\n } else if (this.isArray(str)) {\n return eval(str)\n } else {\n return str\n }\n }\n } else {\n return quotesRemoved\n }\n },\n\n commandChanged(event) {\n if (\n this.targetName !== event.targetName ||\n this.commandName !== event.packetName\n ) {\n this.targetName = event.targetName\n this.commandName = event.packetName\n // Only updateCmdParams if we're not already in the middle of an update\n if (this.sendDisabled === false) {\n this.updateCmdParams()\n }\n this.$router\n .replace({\n name: 'CommandSender',\n params: {\n target: this.targetName,\n packet: this.commandName,\n },\n })\n // catch the error in case we route to where we already are\n .catch((err) => {})\n }\n },\n\n updateCmdParams() {\n this.sendDisabled = true\n this.ignoredParams = []\n this.rows = []\n this.api\n .get_target(this.targetName)\n .then(\n (target) => {\n this.ignoredParams = target.ignored_parameters\n return this.api.get_cmd(this.targetName, this.commandName)\n },\n (error) => {\n this.displayError('getting ignored parameters', error)\n this.sendDisabled = false\n },\n )\n .then(\n (command) => {\n command.items.forEach((parameter) => {\n if (this.reservedItemNames.includes(parameter.name)) return\n if (\n !this.ignoredParams.includes(parameter.name) ||\n this.showIgnoredParams\n ) {\n let val = parameter.default\n // If the parameter is a string and the default is a string\n // (rather than object for binary) then we quote the string\n // However we don't do this is the parameter has states\n // because that messes up the state selection logic\n if (\n !parameter.states &&\n parameter.data_type === 'STRING' &&\n typeof parameter.default === 'string'\n ) {\n val = `'${val}'`\n }\n if (parameter.required) {\n val = ''\n }\n if (parameter.format_string) {\n val = sprintf(parameter.format_string, parameter.default)\n }\n let range = 'N/A'\n // check using != because compare with null\n if (parameter.minimum != null && parameter.maximum != null) {\n if (parameter.data_type === 'FLOAT') {\n // This is basically to handle the FLOAT MIN and MAX so they\n // don't print out the huge exponential\n if (parameter.minimum < -1e6) {\n parameter.minimum = parameter.minimum.toExponential(3)\n }\n if (parameter.maximum > 1e6) {\n parameter.maximum = parameter.maximum.toExponential(3)\n }\n }\n range = `${parameter.minimum}..${parameter.maximum}`\n }\n this.rows.push({\n parameter_name: parameter.name,\n val_and_states: {\n val: val,\n states: parameter.states,\n },\n description: parameter.description,\n range: range,\n units: parameter.units,\n type: parameter.data_type,\n })\n }\n })\n if (command.screen) {\n this.loadScreen(command.screen[0], command.screen[1]).then(\n (response) => {\n this.screenTarget = command.screen[0]\n this.screenName = command.screen[1]\n this.screenDefinition = response.data\n this.screenCount += 1\n },\n )\n } else {\n if (command.related_items) {\n this.screenTarget = 'LOCAL'\n this.screenName = 'CMDSENDER'\n let screenDefinition = 'SCREEN AUTO AUTO 1.0\\n'\n for (var i = 0; i < command.related_items.length; i++) {\n screenDefinition += `LABELVALUE '${command.related_items[i][0]}' '${command.related_items[i][1]}' '${command.related_items[i][2]}' WITH_UNITS 20\\n`\n }\n this.screenDefinition = screenDefinition\n } else {\n this.screenTarget = null\n this.screenName = null\n this.screenDefinition = null\n }\n this.screenCount += 1\n }\n this.sendDisabled = false\n this.status = ''\n },\n (error) => {\n this.displayError('getting command parameters', error)\n this.sendDisabled = false\n },\n )\n },\n\n createParamList() {\n let paramList = {}\n for (var i = 0; i < this.rows.length; i++) {\n paramList[this.rows[i].parameter_name] = this.convertToValue(\n this.rows[i],\n )\n }\n return paramList\n },\n\n buildCmd() {\n this.sendCmd(this.targetName, this.commandName, this.createParamList())\n },\n\n // Note targetName can also be the entire command to send, e.g. \"INST ABORT\" or\n // \"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 10\" when being\n // sent from the history. In that case commandName and paramList are undefined\n // and the api calls handle that.\n sendCmd(targetName, commandName, paramList) {\n // Store what was actually sent for use in resending hazardous commands\n this.lastTargetName = targetName\n this.lastCommandName = commandName\n this.lastParamList = paramList\n\n this.sendDisabled = true\n let hazardous = false\n let cmd = ''\n this.api.get_cmd_hazardous(targetName, commandName, paramList).then(\n (response) => {\n hazardous = response\n\n if (hazardous) {\n // If it was sent from history it's all in targetName\n if (commandName === undefined) {\n this.hazardousCommand = targetName\n .split(' ')\n .slice(0, 2)\n .join(' ')\n } else {\n this.hazardousCommand = `${targetName} ${commandName}`\n }\n this.displaySendHazardous = true\n } else {\n let obs\n if (this.cmdRaw) {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_raw_no_range_check'\n obs = this.api.cmd_raw_no_range_check(\n targetName,\n commandName,\n paramList,\n )\n } else {\n cmd = 'cmd_raw'\n obs = this.api.cmd_raw(targetName, commandName, paramList, {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n })\n }\n } else {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_no_range_check'\n obs = this.api.cmd_no_range_check(\n targetName,\n commandName,\n paramList,\n )\n } else {\n cmd = 'cmd'\n obs = this.api.cmd(targetName, commandName, paramList, {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n })\n }\n }\n\n obs.then(\n (response) => {\n this.processCmdResponse(cmd, response)\n },\n (error) => {\n this.processCmdResponse(false, error)\n },\n )\n }\n },\n (error) => {\n this.processCmdResponse(false, error)\n },\n )\n },\n\n sendHazardousCmd() {\n this.displaySendHazardous = false\n let obs = ''\n let cmd = ''\n if (this.cmdRaw) {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_raw_no_range_check'\n obs = this.api.cmd_raw_no_checks(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList,\n )\n } else {\n cmd = 'cmd_raw'\n obs = this.api.cmd_raw_no_hazardous_check(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList,\n {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n },\n )\n }\n } else {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_no_range_check'\n obs = this.api.cmd_no_checks(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList,\n )\n } else {\n cmd = 'cmd'\n obs = this.api.cmd_no_hazardous_check(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList,\n {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n },\n )\n }\n }\n\n obs.then(\n (response) => {\n this.processCmdResponse(cmd, response)\n },\n (error) => {\n this.processCmdResponse(false, error)\n },\n )\n },\n\n cancelHazardousCmd() {\n this.displaySendHazardous = false\n this.status = 'Hazardous command not sent'\n this.sendDisabled = false\n },\n\n processCmdResponse(cmd_sent, response) {\n var msg = ''\n if (cmd_sent) {\n msg = `${cmd_sent}(\"${response[0]} ${response[1]}`\n var keys = Object.keys(response[2])\n if (keys.length > 0) {\n msg += ' with '\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i]\n var value = this.convertToString(response[2][key])\n // If the response has unquoted string data we add quotes\n if (\n typeof response[2][key] === 'string' &&\n value.charAt(0) !== \"'\" &&\n value.charAt(0) !== '\"'\n ) {\n value = `'${value}'`\n }\n msg += key + ' ' + value\n if (i < keys.length - 1) {\n msg += ', '\n }\n }\n }\n msg += '\")'\n if (!this.history.includes(msg)) {\n value = msg\n if (this.history.length !== 0) {\n value += `\\n${this.history}`\n }\n this.editor.setValue(value)\n this.editor.moveCursorTo(0, 0)\n }\n msg += ' sent.'\n // Add the number of commands sent to the status message\n if (this.status.includes(msg)) {\n let parts = this.status.split('sent.')\n if (parts[1].includes('(')) {\n let num = parseInt(parts[1].substr(2, parts[1].indexOf(')') - 2))\n msg = parts[0] + 'sent. (' + (num + 1) + ')'\n } else {\n msg += ' (2)'\n }\n }\n this.status = msg\n } else {\n var context = 'sending ' + this.targetName + ' ' + this.commandName\n this.displayError(context, response, true)\n }\n // Make a copy of the history\n this.history = this.editor.getValue()\n localStorage['command_sender__history'] = this.editor.getValue()\n this.sendDisabled = false\n },\n\n clearHistory() {\n this.editor.setValue('')\n this.history = ''\n localStorage.removeItem('command_sender__history')\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 loadScreen(target, screen) {\n return Api.get('/openc3-api/screen/' + target + '/' + screen, {\n headers: {\n Accept: 'text/plain',\n },\n })\n },\n\n // setupRawCmd() {\n // this.api.get_interface_names().then(\n // (response) => {\n // var interfaces = []\n // for (var i = 0; i < response.length; i++) {\n // interfaces.push({ label: response[i], value: response[i] })\n // }\n // this.interfaces = interfaces\n // this.selectedInterface = interfaces[0].value\n // this.displaySendRaw = true\n // },\n // (error) => {\n // this.displaySendRaw = false\n // this.displayError('getting interface names', error, true)\n // }\n // )\n // },\n\n // selectRawCmdFile(event) {\n // this.rawCmdFile = event.target.files[0]\n // },\n\n // onLoad(event) {\n // var bufView = new Uint8Array(event.target.result)\n // var jstr = { json_class: 'String', raw: [] }\n // for (var i = 0; i < bufView.length; i++) {\n // jstr.raw.push(bufView[i])\n // }\n\n // this.api.send_raw(this.selectedInterface, jstr).then(\n // () => {\n // this.displaySendRaw = false\n // this.status =\n // 'Sent ' +\n // bufView.length +\n // ' bytes to interface ' +\n // this.selectedInterface\n // },\n // (error) => {\n // this.displaySendRaw = false\n // this.displayError('sending raw data', error, true)\n // }\n // )\n // },\n\n // sendRawCmd() {\n // var self = this\n // var reader = new FileReader()\n // reader.onload = function (e) {\n // self.onLoad(e)\n // }\n // reader.onerror = function (e) {\n // self.displaySendRaw = false\n // var target = e.target\n // self.displayError('sending raw data', target.error, true)\n // }\n // // TBD - use the other event handlers to implement a progress bar for the\n // // file upload. Handle abort as well?\n // //reader.onloadstart = function(e) {}\n // //reader.onprogress = function(e) {}\n // //reader.onloadend = function(e) {}\n // //reader.onabort = function(e) {}\n\n // reader.readAsArrayBuffer(this.rawCmdFile)\n // },\n\n // cancelRawCmd() {\n // this.displaySendRaw = false\n // this.status = 'Raw command not sent'\n // },\n },\n}\n<\/script>\n<style scoped>\n.editor {\n margin-left: 30px;\n height: 50px;\n width: 95%;\n position: relative;\n font-size: 16px;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1b6cf9f98caad56e81571987501eadf177439d37"},a=n[s]||(n[s]={});a[e]&&a[e].hash===t||(a[e]=i);var l=a[e];return cov_16daumg2kr=function(){return l},l}cov_16daumg2kr();const __WEBPACK_DEFAULT_EXPORT__={mixins:[_tools_CommandSender_utilities__WEBPACK_IMPORTED_MODULE_8__.A],components:{DetailsDialog:_openc3_tool_common_src_components_DetailsDialog__WEBPACK_IMPORTED_MODULE_10__.A,TargetPacketItemChooser:_openc3_tool_common_src_components_TargetPacketItemChooser__WEBPACK_IMPORTED_MODULE_6__.A,CommandParameterEditor:_tools_CommandSender_CommandParameterEditor__WEBPACK_IMPORTED_MODULE_7__.A,TopBar:_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_11__.A,Openc3Screen:_openc3_tool_common_src_components_Openc3Screen__WEBPACK_IMPORTED_MODULE_12__.A},data(){return cov_16daumg2kr().f[0]++,cov_16daumg2kr().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:"Range",value:"range"},{text:"Description",value:"description"}],editor:null,targetName:"",commandName:"",paramList:"",lastTargetName:"",lastCommandName:"",lastParamList:"",ignoreRangeChecks:!1,statesInHex:!1,showIgnoredParams:!1,cmdRaw:!1,ignoredParams:[],rows:[],interfaces:[],selectedInterface:"",rawCmdFile:null,status:"",history:"",hazardousCommand:"",displaySendHazardous:!1,displayErrorDialog:!1,displaySendRaw:!1,sendDisabled:!1,api:null,viewDetails:!1,contextMenuShown:!1,parameterName:"",reservedItemNames:[],x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{cov_16daumg2kr().f[1]++,cov_16daumg2kr().s[1]++,this.contextMenuShown=!1,cov_16daumg2kr().s[2]++,this.viewDetails=!0}}],keywords:[],screenTarget:null,screenName:null,screenDefinition:null,screenCount:0,menus:[{label:"Mode",items:[{label:"Ignore Range Checks",checkbox:!0,command:()=>{cov_16daumg2kr().f[2]++,cov_16daumg2kr().s[3]++,this.ignoreRangeChecks=!this.ignoreRangeChecks}},{label:"Display State Values in Hex",checkbox:!0,command:()=>{cov_16daumg2kr().f[3]++,cov_16daumg2kr().s[4]++,this.statesInHex=!this.statesInHex}},{label:"Show Ignored Parameters",checkbox:!0,command:()=>{cov_16daumg2kr().f[4]++,cov_16daumg2kr().s[5]++,this.showIgnoredParams=!this.showIgnoredParams,cov_16daumg2kr().s[6]++,this.updateCmdParams()}},{label:"Disable Parameter Conversions",checkbox:!0,command:()=>{cov_16daumg2kr().f[5]++,cov_16daumg2kr().s[7]++,this.cmdRaw=!this.cmdRaw}}]}]}},created(){cov_16daumg2kr().f[6]++,cov_16daumg2kr().s[8]++,_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_5__.A.get("/openc3-api/autocomplete/reserved-item-names").then((e=>{cov_16daumg2kr().f[7]++,cov_16daumg2kr().s[9]++,this.reservedItemNames=e.data})),cov_16daumg2kr().s[10]++,this.api=new _openc3_tool_common_src_services_openc3_api__WEBPACK_IMPORTED_MODULE_9__.x,cov_16daumg2kr().s[11]++,cov_16daumg2kr().b[1][0]++,this.$route.params.target&&(cov_16daumg2kr().b[1][1]++,this.$route.params.packet)?(cov_16daumg2kr().b[0][0]++,cov_16daumg2kr().s[12]++,this.commandChanged({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase()})):cov_16daumg2kr().b[0][1]++,cov_16daumg2kr().s[13]++,_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_5__.A.get("/openc3-api/autocomplete/keywords/screen").then((e=>{cov_16daumg2kr().f[8]++,cov_16daumg2kr().s[14]++,this.keywords=e.data}))},mounted(){cov_16daumg2kr().f[9]++,cov_16daumg2kr().s[15]++,this.editor=ace_builds__WEBPACK_IMPORTED_MODULE_2__.edit(this.$refs.editor),cov_16daumg2kr().s[16]++,this.editor.setTheme("ace/theme/twilight"),cov_16daumg2kr().s[17]++,this.editor.session.setMode("ace/mode/ruby"),cov_16daumg2kr().s[18]++,this.editor.session.setTabSize(2),cov_16daumg2kr().s[19]++,this.editor.session.setUseWrapMode(!0),cov_16daumg2kr().s[20]++,this.editor.setHighlightActiveLine(!1),cov_16daumg2kr().s[21]++,this.editor.setValue(localStorage["command_sender__history"]),cov_16daumg2kr().s[22]++,this.history=this.editor.getValue().trim(),cov_16daumg2kr().s[23]++,this.editor.clearSelection(),cov_16daumg2kr().s[24]++,this.editor.focus(),cov_16daumg2kr().s[25]++,this.editor.setAutoScrollEditorIntoView(!0),cov_16daumg2kr().s[26]++,this.editor.setOption("maxLines",30),cov_16daumg2kr().s[27]++,this.editor.setOption("minLines",1),cov_16daumg2kr().s[28]++,this.editor.container.addEventListener("keydown",(e=>{if(cov_16daumg2kr().f[10]++,cov_16daumg2kr().s[29]++,"Enter"===e.key){cov_16daumg2kr().b[2][0]++,cov_16daumg2kr().s[30]++,e.preventDefault();let t=(cov_16daumg2kr().s[31]++,this.editor.session.getLine(this.editor.getCursorPosition().row));if(cov_16daumg2kr().s[32]++,""===t)return cov_16daumg2kr().b[3][0]++,void cov_16daumg2kr().s[33]++;cov_16daumg2kr().b[3][1]++;let n=(cov_16daumg2kr().s[34]++,t.indexOf('"')),s=(cov_16daumg2kr().s[35]++,t.lastIndexOf('"'));cov_16daumg2kr().s[36]++,t=t.substr(n+1,s-n-1),cov_16daumg2kr().s[37]++,this.sendCmd(t)}else cov_16daumg2kr().b[2][1]++}))},beforeDestroy(){cov_16daumg2kr().f[11]++,cov_16daumg2kr().s[38]++,this.editor.destroy(),cov_16daumg2kr().s[39]++,this.editor.container.remove()},methods:{showContextMenu(e,t){cov_16daumg2kr().f[12]++,cov_16daumg2kr().s[40]++,e.preventDefault(),cov_16daumg2kr().s[41]++,this.parameterName=t.item.parameter_name,cov_16daumg2kr().s[42]++,this.contextMenuShown=!1,cov_16daumg2kr().s[43]++,this.x=e.clientX,cov_16daumg2kr().s[44]++,this.y=e.clientY,cov_16daumg2kr().s[45]++,this.$nextTick((()=>{cov_16daumg2kr().f[13]++,cov_16daumg2kr().s[46]++,this.contextMenuShown=!0}))},convertToValue(param){if(cov_16daumg2kr().f[14]++,cov_16daumg2kr().s[47]++,cov_16daumg2kr().b[5][0]++,null!==param.val_and_states.selected_state&&(cov_16daumg2kr().b[5][1]++,"MANUALLY ENTERED"!==param.val_and_states.selected_state)&&(cov_16daumg2kr().b[5][2]++,!1===this.cmdRaw))return cov_16daumg2kr().b[4][0]++,cov_16daumg2kr().s[48]++,param.val_and_states.selected_state_label;if(cov_16daumg2kr().b[4][1]++,cov_16daumg2kr().s[49]++,"string"!==typeof param.val_and_states.val)return cov_16daumg2kr().b[6][0]++,cov_16daumg2kr().s[50]++,param.val_and_states.val;cov_16daumg2kr().b[6][1]++;var str=(cov_16daumg2kr().s[51]++,param.val_and_states.val),quotesRemoved=(cov_16daumg2kr().s[52]++,this.removeQuotes(str));if(cov_16daumg2kr().s[53]++,str===quotesRemoved){cov_16daumg2kr().b[7][0]++;var upcaseStr=(cov_16daumg2kr().s[54]++,str.toUpperCase());if(cov_16daumg2kr().s[55]++,cov_16daumg2kr().b[9][0]++,"STRING"!==param.type&&(cov_16daumg2kr().b[9][1]++,"BLOCK"!==param.type)||(cov_16daumg2kr().b[9][2]++,!upcaseStr.startsWith("0X")))return cov_16daumg2kr().b[8][1]++,cov_16daumg2kr().s[65]++,"INFINITY"===upcaseStr?(cov_16daumg2kr().b[11][0]++,cov_16daumg2kr().s[66]++,1/0):(cov_16daumg2kr().b[11][1]++,cov_16daumg2kr().s[67]++,"-INFINITY"===upcaseStr?(cov_16daumg2kr().b[12][0]++,cov_16daumg2kr().s[68]++,-1/0):(cov_16daumg2kr().b[12][1]++,cov_16daumg2kr().s[69]++,"NAN"===upcaseStr?(cov_16daumg2kr().b[13][0]++,cov_16daumg2kr().s[70]++,NaN):(cov_16daumg2kr().b[13][1]++,cov_16daumg2kr().s[71]++,this.isFloat(str)?(cov_16daumg2kr().b[14][0]++,cov_16daumg2kr().s[72]++,parseFloat(str)):(cov_16daumg2kr().b[14][1]++,cov_16daumg2kr().s[73]++,this.isInt(str)?(cov_16daumg2kr().b[15][0]++,cov_16daumg2kr().s[74]++,parseInt(str)):(cov_16daumg2kr().b[15][1]++,cov_16daumg2kr().s[75]++,this.isArray(str)?(cov_16daumg2kr().b[16][0]++,cov_16daumg2kr().s[76]++,eval(str)):(cov_16daumg2kr().b[16][1]++,cov_16daumg2kr().s[77]++,str))))));cov_16daumg2kr().b[8][0]++;var hexStr=(cov_16daumg2kr().s[56]++,upcaseStr.slice(2));cov_16daumg2kr().s[57]++,hexStr.length%2!==0?(cov_16daumg2kr().b[10][0]++,cov_16daumg2kr().s[58]++,hexStr="0"+hexStr):cov_16daumg2kr().b[10][1]++;var jstr=(cov_16daumg2kr().s[59]++,{json_class:"String",raw:[]});cov_16daumg2kr().s[60]++;for(var i=(cov_16daumg2kr().s[61]++,0);i<hexStr.length;i+=2){var nibble=(cov_16daumg2kr().s[62]++,hexStr.charAt(i)+hexStr.charAt(i+1));cov_16daumg2kr().s[63]++,jstr.raw.push(parseInt(nibble,16))}return cov_16daumg2kr().s[64]++,jstr}return cov_16daumg2kr().b[7][1]++,cov_16daumg2kr().s[78]++,quotesRemoved},commandChanged(e){cov_16daumg2kr().f[15]++,cov_16daumg2kr().s[79]++,cov_16daumg2kr().b[18][0]++,this.targetName!==e.targetName||(cov_16daumg2kr().b[18][1]++,this.commandName!==e.packetName)?(cov_16daumg2kr().b[17][0]++,cov_16daumg2kr().s[80]++,this.targetName=e.targetName,cov_16daumg2kr().s[81]++,this.commandName=e.packetName,cov_16daumg2kr().s[82]++,!1===this.sendDisabled?(cov_16daumg2kr().b[19][0]++,cov_16daumg2kr().s[83]++,this.updateCmdParams()):cov_16daumg2kr().b[19][1]++,cov_16daumg2kr().s[84]++,this.$router.replace({name:"CommandSender",params:{target:this.targetName,packet:this.commandName}}).catch((e=>{cov_16daumg2kr().f[16]++}))):cov_16daumg2kr().b[17][1]++},updateCmdParams(){cov_16daumg2kr().f[17]++,cov_16daumg2kr().s[85]++,this.sendDisabled=!0,cov_16daumg2kr().s[86]++,this.ignoredParams=[],cov_16daumg2kr().s[87]++,this.rows=[],cov_16daumg2kr().s[88]++,this.api.get_target(this.targetName).then((e=>(cov_16daumg2kr().f[18]++,cov_16daumg2kr().s[89]++,this.ignoredParams=e.ignored_parameters,cov_16daumg2kr().s[90]++,this.api.get_cmd(this.targetName,this.commandName))),(e=>{cov_16daumg2kr().f[19]++,cov_16daumg2kr().s[91]++,this.displayError("getting ignored parameters",e),cov_16daumg2kr().s[92]++,this.sendDisabled=!1})).then((e=>{if(cov_16daumg2kr().f[20]++,cov_16daumg2kr().s[93]++,e.items.forEach((e=>{if(cov_16daumg2kr().f[21]++,cov_16daumg2kr().s[94]++,this.reservedItemNames.includes(e.name))return cov_16daumg2kr().b[20][0]++,void cov_16daumg2kr().s[95]++;if(cov_16daumg2kr().b[20][1]++,cov_16daumg2kr().s[96]++,cov_16daumg2kr().b[22][0]++,!this.ignoredParams.includes(e.name)||(cov_16daumg2kr().b[22][1]++,this.showIgnoredParams)){cov_16daumg2kr().b[21][0]++;let t=(cov_16daumg2kr().s[97]++,e.default);cov_16daumg2kr().s[98]++,cov_16daumg2kr().b[24][0]++,e.states||(cov_16daumg2kr().b[24][1]++,"STRING"!==e.data_type)||(cov_16daumg2kr().b[24][2]++,"string"!==typeof e.default)?cov_16daumg2kr().b[23][1]++:(cov_16daumg2kr().b[23][0]++,cov_16daumg2kr().s[99]++,t=`'${t}'`),cov_16daumg2kr().s[100]++,e.required?(cov_16daumg2kr().b[25][0]++,cov_16daumg2kr().s[101]++,t=""):cov_16daumg2kr().b[25][1]++,cov_16daumg2kr().s[102]++,e.format_string?(cov_16daumg2kr().b[26][0]++,cov_16daumg2kr().s[103]++,t=sprintf(e.format_string,e.default)):cov_16daumg2kr().b[26][1]++;let n=(cov_16daumg2kr().s[104]++,"N/A");cov_16daumg2kr().s[105]++,cov_16daumg2kr().b[28][0]++,null!=e.minimum&&(cov_16daumg2kr().b[28][1]++,null!=e.maximum)?(cov_16daumg2kr().b[27][0]++,cov_16daumg2kr().s[106]++,"FLOAT"===e.data_type?(cov_16daumg2kr().b[29][0]++,cov_16daumg2kr().s[107]++,e.minimum<-1e6?(cov_16daumg2kr().b[30][0]++,cov_16daumg2kr().s[108]++,e.minimum=e.minimum.toExponential(3)):cov_16daumg2kr().b[30][1]++,cov_16daumg2kr().s[109]++,e.maximum>1e6?(cov_16daumg2kr().b[31][0]++,cov_16daumg2kr().s[110]++,e.maximum=e.maximum.toExponential(3)):cov_16daumg2kr().b[31][1]++):cov_16daumg2kr().b[29][1]++,cov_16daumg2kr().s[111]++,n=`${e.minimum}..${e.maximum}`):cov_16daumg2kr().b[27][1]++,cov_16daumg2kr().s[112]++,this.rows.push({parameter_name:e.name,val_and_states:{val:t,states:e.states},description:e.description,range:n,units:e.units,type:e.data_type})}else cov_16daumg2kr().b[21][1]++})),cov_16daumg2kr().s[113]++,e.screen)cov_16daumg2kr().b[32][0]++,cov_16daumg2kr().s[114]++,this.loadScreen(e.screen[0],e.screen[1]).then((t=>{cov_16daumg2kr().f[22]++,cov_16daumg2kr().s[115]++,this.screenTarget=e.screen[0],cov_16daumg2kr().s[116]++,this.screenName=e.screen[1],cov_16daumg2kr().s[117]++,this.screenDefinition=t.data,cov_16daumg2kr().s[118]++,this.screenCount+=1}));else{if(cov_16daumg2kr().b[32][1]++,cov_16daumg2kr().s[119]++,e.related_items){cov_16daumg2kr().b[33][0]++,cov_16daumg2kr().s[120]++,this.screenTarget="LOCAL",cov_16daumg2kr().s[121]++,this.screenName="CMDSENDER";let n=(cov_16daumg2kr().s[122]++,"SCREEN AUTO AUTO 1.0\n");cov_16daumg2kr().s[123]++;for(var t=(cov_16daumg2kr().s[124]++,0);t<e.related_items.length;t++)cov_16daumg2kr().s[125]++,n+=`LABELVALUE '${e.related_items[t][0]}' '${e.related_items[t][1]}' '${e.related_items[t][2]}' WITH_UNITS 20\n`;cov_16daumg2kr().s[126]++,this.screenDefinition=n}else cov_16daumg2kr().b[33][1]++,cov_16daumg2kr().s[127]++,this.screenTarget=null,cov_16daumg2kr().s[128]++,this.screenName=null,cov_16daumg2kr().s[129]++,this.screenDefinition=null;cov_16daumg2kr().s[130]++,this.screenCount+=1}cov_16daumg2kr().s[131]++,this.sendDisabled=!1,cov_16daumg2kr().s[132]++,this.status=""}),(e=>{cov_16daumg2kr().f[23]++,cov_16daumg2kr().s[133]++,this.displayError("getting command parameters",e),cov_16daumg2kr().s[134]++,this.sendDisabled=!1}))},createParamList(){cov_16daumg2kr().f[24]++;let e=(cov_16daumg2kr().s[135]++,{});cov_16daumg2kr().s[136]++;for(var t=(cov_16daumg2kr().s[137]++,0);t<this.rows.length;t++)cov_16daumg2kr().s[138]++,e[this.rows[t].parameter_name]=this.convertToValue(this.rows[t]);return cov_16daumg2kr().s[139]++,e},buildCmd(){cov_16daumg2kr().f[25]++,cov_16daumg2kr().s[140]++,this.sendCmd(this.targetName,this.commandName,this.createParamList())},sendCmd(e,t,n){cov_16daumg2kr().f[26]++,cov_16daumg2kr().s[141]++,this.lastTargetName=e,cov_16daumg2kr().s[142]++,this.lastCommandName=t,cov_16daumg2kr().s[143]++,this.lastParamList=n,cov_16daumg2kr().s[144]++,this.sendDisabled=!0;let s=(cov_16daumg2kr().s[145]++,!1),i=(cov_16daumg2kr().s[146]++,"");cov_16daumg2kr().s[147]++,this.api.get_cmd_hazardous(e,t,n).then((a=>{if(cov_16daumg2kr().f[27]++,cov_16daumg2kr().s[148]++,s=a,cov_16daumg2kr().s[149]++,s)cov_16daumg2kr().b[34][0]++,cov_16daumg2kr().s[150]++,void 0===t?(cov_16daumg2kr().b[35][0]++,cov_16daumg2kr().s[151]++,this.hazardousCommand=e.split(" ").slice(0,2).join(" ")):(cov_16daumg2kr().b[35][1]++,cov_16daumg2kr().s[152]++,this.hazardousCommand=`${e} ${t}`),cov_16daumg2kr().s[153]++,this.displaySendHazardous=!0;else{let s;cov_16daumg2kr().b[34][1]++,cov_16daumg2kr().s[154]++,this.cmdRaw?(cov_16daumg2kr().b[36][0]++,cov_16daumg2kr().s[155]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[37][0]++,cov_16daumg2kr().s[156]++,i="cmd_raw_no_range_check",cov_16daumg2kr().s[157]++,s=this.api.cmd_raw_no_range_check(e,t,n)):(cov_16daumg2kr().b[37][1]++,cov_16daumg2kr().s[158]++,i="cmd_raw",cov_16daumg2kr().s[159]++,s=this.api.cmd_raw(e,t,n,{"Ignore-Errors":"500"}))):(cov_16daumg2kr().b[36][1]++,cov_16daumg2kr().s[160]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[38][0]++,cov_16daumg2kr().s[161]++,i="cmd_no_range_check",cov_16daumg2kr().s[162]++,s=this.api.cmd_no_range_check(e,t,n)):(cov_16daumg2kr().b[38][1]++,cov_16daumg2kr().s[163]++,i="cmd",cov_16daumg2kr().s[164]++,s=this.api.cmd(e,t,n,{"Ignore-Errors":"500"}))),cov_16daumg2kr().s[165]++,s.then((e=>{cov_16daumg2kr().f[28]++,cov_16daumg2kr().s[166]++,this.processCmdResponse(i,e)}),(e=>{cov_16daumg2kr().f[29]++,cov_16daumg2kr().s[167]++,this.processCmdResponse(!1,e)}))}}),(e=>{cov_16daumg2kr().f[30]++,cov_16daumg2kr().s[168]++,this.processCmdResponse(!1,e)}))},sendHazardousCmd(){cov_16daumg2kr().f[31]++,cov_16daumg2kr().s[169]++,this.displaySendHazardous=!1;let e=(cov_16daumg2kr().s[170]++,""),t=(cov_16daumg2kr().s[171]++,"");cov_16daumg2kr().s[172]++,this.cmdRaw?(cov_16daumg2kr().b[39][0]++,cov_16daumg2kr().s[173]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[40][0]++,cov_16daumg2kr().s[174]++,t="cmd_raw_no_range_check",cov_16daumg2kr().s[175]++,e=this.api.cmd_raw_no_checks(this.lastTargetName,this.lastCommandName,this.lastParamList)):(cov_16daumg2kr().b[40][1]++,cov_16daumg2kr().s[176]++,t="cmd_raw",cov_16daumg2kr().s[177]++,e=this.api.cmd_raw_no_hazardous_check(this.lastTargetName,this.lastCommandName,this.lastParamList,{"Ignore-Errors":"500"}))):(cov_16daumg2kr().b[39][1]++,cov_16daumg2kr().s[178]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[41][0]++,cov_16daumg2kr().s[179]++,t="cmd_no_range_check",cov_16daumg2kr().s[180]++,e=this.api.cmd_no_checks(this.lastTargetName,this.lastCommandName,this.lastParamList)):(cov_16daumg2kr().b[41][1]++,cov_16daumg2kr().s[181]++,t="cmd",cov_16daumg2kr().s[182]++,e=this.api.cmd_no_hazardous_check(this.lastTargetName,this.lastCommandName,this.lastParamList,{"Ignore-Errors":"500"}))),cov_16daumg2kr().s[183]++,e.then((e=>{cov_16daumg2kr().f[32]++,cov_16daumg2kr().s[184]++,this.processCmdResponse(t,e)}),(e=>{cov_16daumg2kr().f[33]++,cov_16daumg2kr().s[185]++,this.processCmdResponse(!1,e)}))},cancelHazardousCmd(){cov_16daumg2kr().f[34]++,cov_16daumg2kr().s[186]++,this.displaySendHazardous=!1,cov_16daumg2kr().s[187]++,this.status="Hazardous command not sent",cov_16daumg2kr().s[188]++,this.sendDisabled=!1},processCmdResponse(e,t){cov_16daumg2kr().f[35]++;var n=(cov_16daumg2kr().s[189]++,"");if(cov_16daumg2kr().s[190]++,e){cov_16daumg2kr().b[42][0]++,cov_16daumg2kr().s[191]++,n=`${e}("${t[0]} ${t[1]}`;var s=(cov_16daumg2kr().s[192]++,Object.keys(t[2]));if(cov_16daumg2kr().s[193]++,s.length>0){cov_16daumg2kr().b[43][0]++,cov_16daumg2kr().s[194]++,n+=" with ",cov_16daumg2kr().s[195]++;for(var i=(cov_16daumg2kr().s[196]++,0);i<s.length;i++){var a=(cov_16daumg2kr().s[197]++,s[i]),l=(cov_16daumg2kr().s[198]++,this.convertToString(t[2][a]));cov_16daumg2kr().s[199]++,cov_16daumg2kr().b[45][0]++,"string"===typeof t[2][a]&&(cov_16daumg2kr().b[45][1]++,"'"!==l.charAt(0))&&(cov_16daumg2kr().b[45][2]++,'"'!==l.charAt(0))?(cov_16daumg2kr().b[44][0]++,cov_16daumg2kr().s[200]++,l=`'${l}'`):cov_16daumg2kr().b[44][1]++,cov_16daumg2kr().s[201]++,n+=a+" "+l,cov_16daumg2kr().s[202]++,i<s.length-1?(cov_16daumg2kr().b[46][0]++,cov_16daumg2kr().s[203]++,n+=", "):cov_16daumg2kr().b[46][1]++}}else cov_16daumg2kr().b[43][1]++;if(cov_16daumg2kr().s[204]++,n+='")',cov_16daumg2kr().s[205]++,this.history.includes(n)?cov_16daumg2kr().b[47][1]++:(cov_16daumg2kr().b[47][0]++,cov_16daumg2kr().s[206]++,l=n,cov_16daumg2kr().s[207]++,0!==this.history.length?(cov_16daumg2kr().b[48][0]++,cov_16daumg2kr().s[208]++,l+=`\n${this.history}`):cov_16daumg2kr().b[48][1]++,cov_16daumg2kr().s[209]++,this.editor.setValue(l),cov_16daumg2kr().s[210]++,this.editor.moveCursorTo(0,0)),cov_16daumg2kr().s[211]++,n+=" sent.",cov_16daumg2kr().s[212]++,this.status.includes(n)){cov_16daumg2kr().b[49][0]++;let e=(cov_16daumg2kr().s[213]++,this.status.split("sent."));if(cov_16daumg2kr().s[214]++,e[1].includes("(")){cov_16daumg2kr().b[50][0]++;let t=(cov_16daumg2kr().s[215]++,parseInt(e[1].substr(2,e[1].indexOf(")")-2)));cov_16daumg2kr().s[216]++,n=e[0]+"sent. ("+(t+1)+")"}else cov_16daumg2kr().b[50][1]++,cov_16daumg2kr().s[217]++,n+=" (2)"}else cov_16daumg2kr().b[49][1]++;cov_16daumg2kr().s[218]++,this.status=n}else{cov_16daumg2kr().b[42][1]++;var r=(cov_16daumg2kr().s[219]++,"sending "+this.targetName+" "+this.commandName);cov_16daumg2kr().s[220]++,this.displayError(r,t,!0)}cov_16daumg2kr().s[221]++,this.history=this.editor.getValue(),cov_16daumg2kr().s[222]++,localStorage["command_sender__history"]=this.editor.getValue(),cov_16daumg2kr().s[223]++,this.sendDisabled=!1},clearHistory(){cov_16daumg2kr().f[36]++,cov_16daumg2kr().s[224]++,this.editor.setValue(""),cov_16daumg2kr().s[225]++,this.history="",cov_16daumg2kr().s[226]++,localStorage.removeItem("command_sender__history")},displayError(e,t,n=(cov_16daumg2kr().b[51][0]++,!1)){cov_16daumg2kr().f[37]++,cov_16daumg2kr().s[227]++,this.status=`Error ${e} due to ${t.name}`,cov_16daumg2kr().s[228]++,cov_16daumg2kr().b[53][0]++,t.message&&(cov_16daumg2kr().b[53][1]++,""!==t.message)?(cov_16daumg2kr().b[52][0]++,cov_16daumg2kr().s[229]++,this.status+=": ",cov_16daumg2kr().s[230]++,this.status+=t.message):cov_16daumg2kr().b[52][1]++,cov_16daumg2kr().s[231]++,n?(cov_16daumg2kr().b[54][0]++,cov_16daumg2kr().s[232]++,this.displayErrorDialog=!0):cov_16daumg2kr().b[54][1]++},loadScreen(e,t){return cov_16daumg2kr().f[38]++,cov_16daumg2kr().s[233]++,_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_5__.A.get("/openc3-api/screen/"+e+"/"+t,{headers:{Accept:"text/plain"}})}}}},47:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9375),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4293),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4364),_services_api__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2795),_Widget__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9729);const __WEBPACK_DEFAULT_EXPORT__={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_4__.A],data(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_2__.x},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,api=this.api,run_script=this.runScript,runScript=this.runScript;for(let i=0;i<lines.length;i++){const result=eval(lines[i].trim());if(result instanceof Promise)try{await result}catch(err){if(err.message.includes("is Hazardous")){this.lastCmd=err.message.split("\n").pop(),this.displaySendHazardous=!0;while(this.displaySendHazardous)await new Promise((e=>setTimeout(e,500)))}}}},sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,t=!0,n={}){let s=[];for(const i in n)s.push({key:i,value:n[i],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_3__.A.post(`/script-api/scripts/${e}/run`,{data:{environment:s}}).then((e=>{t&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")}))}}}},9685:(e,t,n)=>{var s=n(6573);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("6163af6a",s,!0,{sourceMap:!1,shadowMode:!1})},3617:(e,t,n)=>{var s=n(9305);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("75a67860",s,!0,{sourceMap:!1,shadowMode:!1})},1727:(e,t,n)=>{var s=n(3076);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("2d4e5d43",s,!0,{sourceMap:!1,shadowMode:!1})},2605:(e,t,n)=>{var s=n(7589);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("28ee4c72",s,!0,{sourceMap:!1,shadowMode:!1})},7613:(e,t,n)=>{var s=n(1365);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("4d90f07e",s,!0,{sourceMap:!1,shadowMode:!1})},6738:(e,t,n)=>{var s=n(8730);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("16d623ca",s,!0,{sourceMap:!1,shadowMode:!1})},7346:(e,t,n)=>{var s=n(9530);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("1f8d080f",s,!0,{sourceMap:!1,shadowMode:!1})},308:(e,t,n)=>{var s=n(1340);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("277cddc3",s,!0,{sourceMap:!1,shadowMode:!1})},6769:(e,t,n)=>{var s=n(9433);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("78fb16f3",s,!0,{sourceMap:!1,shadowMode:!1})},1e3:(e,t,n)=>{var s=n(9808);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("7de62207",s,!0,{sourceMap:!1,shadowMode:!1})},8644:(e,t,n)=>{var s=n(2604);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("509098ba",s,!0,{sourceMap:!1,shadowMode:!1})},8827:(e,t,n)=>{var s=n(1651);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("9c784b84",s,!0,{sourceMap:!1,shadowMode:!1})},6395:(e,t,n)=>{var s=n(8784);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("0e86fc54",s,!0,{sourceMap:!1,shadowMode:!1})},6074:(e,t,n)=>{var s=n(2498);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("24c3e658",s,!0,{sourceMap:!1,shadowMode:!1})},4572:(e,t,n)=>{var s=n(9316);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("588b24c7",s,!0,{sourceMap:!1,shadowMode:!1})},8490:(e,t,n)=>{var s=n(9058);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("8aaadfb6",s,!0,{sourceMap:!1,shadowMode:!1})},1552:(e,t,n)=>{var s=n(6552);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("560bdaf4",s,!0,{sourceMap:!1,shadowMode:!1})},1241:(e,t,n)=>{var s=n(3425);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("6529934c",s,!0,{sourceMap:!1,shadowMode:!1})},1497:(e,t,n)=>{var s=n(3224);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("0138eb9a",s,!0,{sourceMap:!1,shadowMode:!1})},6619:(e,t,n)=>{var s=n(8452);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("1dc714dc",s,!0,{sourceMap:!1,shadowMode:!1})},2846:(e,t,n)=>{var s=n(5895);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("18e03660",s,!0,{sourceMap:!1,shadowMode:!1})},3519:(e,t,n)=>{var s=n(3160);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("2af1c7e9",s,!0,{sourceMap:!1,shadowMode:!1})},519:(e,t,n)=>{var s=n(2574);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("df7a598a",s,!0,{sourceMap:!1,shadowMode:!1})},8087:(e,t,n)=>{var s=n(3200);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var i=n(4825).A;i("01cd6850",s,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_cmdsender"]=self["webpackChunk_openc3_cosmos_tool_cmdsender"]||[]).push([[729],{7448:(e,t,n)=>{var s={"./ArrayWidget.vue":1951,"./BlockWidget.vue":6931,"./ButtonWidget.vue":4814,"./CanvasWidget.vue":2430,"./CanvasdotWidget.vue":6614,"./CanvasimageWidget.vue":8239,"./CanvasimagevalueWidget.vue":4653,"./CanvaslabelWidget.vue":6631,"./CanvaslabelvalueWidget.vue":8211,"./CanvaslineWidget.vue":4352,"./CanvaslinevalueWidget.vue":4291,"./CheckbuttonWidget.vue":5733,"./ComboboxWidget.vue":3835,"./DynamicWidget.vue":3634,"./FormatvalueWidget.vue":2656,"./HorizontalWidget.vue":2907,"./HorizontalboxWidget.vue":4812,"./HorizontallineWidget.vue":9646,"./IframeWidget.vue":527,"./ImageviewerWidget.vue":4259,"./LabelWidget.vue":4858,"./LabelledWidget.vue":8195,"./LabelprogressbarWidget.vue":8207,"./LabelsparklineWidget.vue":5162,"./LabelvalueWidget.vue":6543,"./LabelvaluedescWidget.vue":7623,"./LabelvaluelimitsbarWidget.vue":1852,"./LabelvaluelimitscolumnWidget.vue":2766,"./LabelvaluerangebarWidget.vue":8756,"./LedWidget.vue":6507,"./LimitsbarWidget.vue":2835,"./LimitscolorWidget.vue":8518,"./LimitscolumnWidget.vue":9178,"./LinegraphWidget.vue":2653,"./MatrixbycolumnsWidget.vue":5043,"./ProgressbarWidget.vue":6825,"./RadiobuttonWidget.vue":5993,"./RadiogroupWidget.vue":5758,"./RangebarWidget.vue":5736,"./RollupWidget.vue":9517,"./ScrollwindowWidget.vue":9769,"./SectionheaderWidget.vue":2959,"./SignalWidget.vue":1533,"./SpacerWidget.vue":6637,"./SparklineWidget.vue":6115,"./TabbookWidget.vue":2926,"./TextboxWidget.vue":7462,"./TextfieldWidget.vue":7540,"./TitleWidget.vue":6525,"./ValueWidget.vue":2932,"./ValuelimitsbarWidget.vue":3660,"./ValuelimitscolumnWidget.vue":4428,"./ValuerangebarWidget.vue":1616,"./VerticalWidget.vue":1629,"./VerticalboxWidget.vue":5757};function a(e){var t=i(e);return n(t)}function i(e){if(!n.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}a.keys=function(){return Object.keys(s)},a.resolve=i,e.exports=a,a.id=7448},3345:(e,t,n)=>{"use strict";function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/utilities.js",t="f90e29509e2bb76b4e2ed03c5a37c30beb30d512",n=new Function("return this")(),a="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/utilities.js",statementMap:{0:{start:{line:27,column:6},end:{line:29,column:7}},1:{start:{line:28,column:8},end:{line:28,column:19}},2:{start:{line:31,column:6},end:{line:33,column:7}},3:{start:{line:32,column:8},end:{line:32,column:19}},4:{start:{line:34,column:6},end:{line:34,column:18}},5:{start:{line:39,column:6},end:{line:41,column:7}},6:{start:{line:40,column:8},end:{line:40,column:19}},7:{start:{line:44,column:6},end:{line:46,column:7}},8:{start:{line:45,column:8},end:{line:45,column:19}},9:{start:{line:47,column:6},end:{line:47,column:18}},10:{start:{line:52,column:6},end:{line:54,column:7}},11:{start:{line:53,column:8},end:{line:53,column:19}},12:{start:{line:55,column:6},end:{line:55,column:18}},13:{start:{line:60,column:6},end:{line:62,column:7}},14:{start:{line:61,column:8},end:{line:61,column:18}},15:{start:{line:63,column:22},end:{line:63,column:35}},16:{start:{line:64,column:6},end:{line:66,column:7}},17:{start:{line:65,column:8},end:{line:65,column:18}},18:{start:{line:67,column:21},end:{line:67,column:47}},19:{start:{line:68,column:6},end:{line:70,column:7}},20:{start:{line:69,column:8},end:{line:69,column:18}},21:{start:{line:71,column:6},end:{line:71,column:29}},22:{start:{line:75,column:14},end:{line:75,column:15}},23:{start:{line:76,column:24},end:{line:76,column:26}},24:{start:{line:77,column:6},end:{line:111,column:7}},25:{start:{line:78,column:26},end:{line:78,column:38}},26:{start:{line:79,column:8},end:{line:79,column:26}},27:{start:{line:80,column:8},end:{line:91,column:9}},28:{start:{line:81,column:10},end:{line:87,column:11}},29:{start:{line:84,column:12},end:{line:84,column:47}},30:{start:{line:86,column:12},end:{line:86,column:35}},31:{start:{line:88,column:10},end:{line:90,column:11}},32:{start:{line:89,column:12},end:{line:89,column:31}},33:{start:{line:92,column:8},end:{line:92,column:27}},34:{start:{line:93,column:13},end:{line:111,column:7}},35:{start:{line:96,column:8},end:{line:108,column:9}},36:{start:{line:98,column:10},end:{line:98,column:28}},37:{start:{line:99,column:10},end:{line:105,column:11}},38:{start:{line:100,column:25},end:{line:100,column:64}},39:{start:{line:101,column:12},end:{line:103,column:13}},40:{start:{line:102,column:14},end:{line:102,column:35}},41:{start:{line:104,column:12},end:{line:104,column:33}},42:{start:{line:106,column:15},end:{line:108,column:9}},43:{start:{line:107,column:10},end:{line:107,column:33}},44:{start:{line:110,column:8},end:{line:110,column:35}},45:{start:{line:112,column:6},end:{line:112,column:24}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:25,column:4},end:{line:25,column:5}},loc:{start:{line:25,column:17},end:{line:35,column:5}},line:25},1:{name:"(anonymous_1)",decl:{start:{line:37,column:4},end:{line:37,column:5}},loc:{start:{line:37,column:15},end:{line:48,column:5}},line:37},2:{name:"(anonymous_2)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:17},end:{line:56,column:5}},line:50},3:{name:"(anonymous_3)",decl:{start:{line:58,column:4},end:{line:58,column:5}},loc:{start:{line:58,column:22},end:{line:72,column:5}},line:58},4:{name:"(anonymous_4)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:27},end:{line:113,column:5}},line:74}},branchMap:{0:{loc:{start:{line:27,column:6},end:{line:29,column:7}},type:"if",locations:[{start:{line:27,column:6},end:{line:29,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:27},1:{loc:{start:{line:31,column:6},end:{line:33,column:7}},type:"if",locations:[{start:{line:31,column:6},end:{line:33,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:31},2:{loc:{start:{line:39,column:6},end:{line:41,column:7}},type:"if",locations:[{start:{line:39,column:6},end:{line:41,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:39},3:{loc:{start:{line:44,column:6},end:{line:46,column:7}},type:"if",locations:[{start:{line:44,column:6},end:{line:46,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},4:{loc:{start:{line:52,column:6},end:{line:54,column:7}},type:"if",locations:[{start:{line:52,column:6},end:{line:54,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:52},5:{loc:{start:{line:60,column:6},end:{line:62,column:7}},type:"if",locations:[{start:{line:60,column:6},end:{line:62,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:60},6:{loc:{start:{line:64,column:6},end:{line:66,column:7}},type:"if",locations:[{start:{line:64,column:6},end:{line:66,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:64},7:{loc:{start:{line:64,column:10},end:{line:64,column:48}},type:"binary-expr",locations:[{start:{line:64,column:10},end:{line:64,column:27}},{start:{line:64,column:31},end:{line:64,column:48}}],line:64},8:{loc:{start:{line:68,column:6},end:{line:70,column:7}},type:"if",locations:[{start:{line:68,column:6},end:{line:70,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:68},9:{loc:{start:{line:77,column:6},end:{line:111,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:111,column:7}},{start:{line:93,column:13},end:{line:111,column:7}}],line:77},10:{loc:{start:{line:81,column:10},end:{line:87,column:11}},type:"if",locations:[{start:{line:81,column:10},end:{line:87,column:11}},{start:{line:85,column:17},end:{line:87,column:11}}],line:81},11:{loc:{start:{line:88,column:10},end:{line:90,column:11}},type:"if",locations:[{start:{line:88,column:10},end:{line:90,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:88},12:{loc:{start:{line:93,column:13},end:{line:111,column:7}},type:"if",locations:[{start:{line:93,column:13},end:{line:111,column:7}},{start:{line:109,column:13},end:{line:111,column:7}}],line:93},13:{loc:{start:{line:96,column:8},end:{line:108,column:9}},type:"if",locations:[{start:{line:96,column:8},end:{line:108,column:9}},{start:{line:106,column:15},end:{line:108,column:9}}],line:96},14:{loc:{start:{line:96,column:12},end:{line:96,column:54}},type:"binary-expr",locations:[{start:{line:96,column:12},end:{line:96,column:41}},{start:{line:96,column:45},end:{line:96,column:54}}],line:96},15:{loc:{start:{line:101,column:12},end:{line:103,column:13}},type:"if",locations:[{start:{line:101,column:12},end:{line:103,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:101},16:{loc:{start:{line:106,column:15},end:{line:108,column:9}},type:"if",locations:[{start:{line:106,column:15},end:{line:108,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:106},17:{loc:{start:{line:106,column:19},end:{line:106,column:60}},type:"binary-expr",locations:[{start:{line:106,column:19},end:{line:106,column:47}},{start:{line:106,column:51},end:{line:106,column:60}}],line:106}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f90e29509e2bb76b4e2ed03c5a37c30beb30d512"},l=n[a]||(n[a]={});l[e]&&l[e].hash===t||(l[e]=i);var r=l[e];return s=function(){return r},r}n.d(t,{A:()=>a}),s();const a={methods:{isFloat(e){return s().f[0]++,s().s[0]++,/^\s*[-+]?\d*\.\d+\s*$/.test(e)?(s().b[0][0]++,s().s[1]++,!0):(s().b[0][1]++,s().s[2]++,/^\s*[-+]?(\d+((\.\d+)?)|(\.\d+))[eE][-+]?\d+\s*$/.test(e)?(s().b[1][0]++,s().s[3]++,!0):(s().b[1][1]++,s().s[4]++,!1))},isInt(e){return s().f[1]++,s().s[5]++,/^\s*[-+]?\d+\s*$/.test(e)?(s().b[2][0]++,s().s[6]++,!0):(s().b[2][1]++,s().s[7]++,/^\s*0[xX][\dabcdefABCDEF]+\s*$/.test(e)?(s().b[3][0]++,s().s[8]++,!0):(s().b[3][1]++,s().s[9]++,!1))},isArray(e){return s().f[2]++,s().s[10]++,/^\s*\[.*\]\s*$/.test(e)?(s().b[4][0]++,s().s[11]++,!0):(s().b[4][1]++,s().s[12]++,!1)},removeQuotes(e){if(s().f[3]++,s().s[13]++,e.length<2)return s().b[5][0]++,s().s[14]++,e;s().b[5][1]++;var t=(s().s[15]++,e.charAt(0));if(s().s[16]++,s().b[7][0]++,'"'!==t&&(s().b[7][1]++,"'"!==t))return s().b[6][0]++,s().s[17]++,e;s().b[6][1]++;var n=(s().s[18]++,e.charAt(e.length-1));return s().s[19]++,t!==n?(s().b[8][0]++,s().s[20]++,e):(s().b[8][1]++,s().s[21]++,e.slice(1,-1))},convertToString(e){s().f[4]++;var t=(s().s[22]++,0),n=(s().s[23]++,"");if(s().s[24]++,"Array"===Object.prototype.toString.call(e).slice(8,-1)){s().b[9][0]++;var a=(s().s[25]++,e.length);for(s().s[26]++,n="[ ",s().s[27]++,t=0;t<a;t++)s().s[28]++,"String"===Object.prototype.toString.call(e[t]).slice(8,-1)?(s().b[10][0]++,s().s[29]++,n+='"'+e[t]+'"'):(s().b[10][1]++,s().s[30]++,n+=e[t]),s().s[31]++,t!==a-1?(s().b[11][0]++,s().s[32]++,n+=", "):s().b[11][1]++;s().s[33]++,n+=" ]"}else if(s().b[9][1]++,s().s[34]++,"Object"===Object.prototype.toString.call(e).slice(8,-1))if(s().b[12][0]++,s().s[35]++,s().b[14][0]++,"String"===e.json_class&&(s().b[14][1]++,e.raw))for(s().b[13][0]++,s().s[36]++,n="0x",s().s[37]++,t=0;t<e.raw.length;t++){var i=(s().s[38]++,e.raw[t].toString(16).toUpperCase());s().s[39]++,i.length<2?(s().b[15][0]++,s().s[40]++,i="0"+i):s().b[15][1]++,s().s[41]++,n+=i}else s().b[13][1]++,s().s[42]++,s().b[17][0]++,"Float"===e.json_class&&(s().b[17][1]++,e.raw)?(s().b[16][0]++,s().s[43]++,n=e.raw):s().b[16][1]++;else s().b[12][1]++,s().s[44]++,n=String(e);return s().s[45]++,n}}}},2754:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var s=n(9729),a=n(4364);const i={mixins:[s.A],data(){return{minValue:null,maxValue:null,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:"DEFAULT",currentSetRefreshInterval:null}},computed:{cssProps:function(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-width":this.redLow+"%","--redhigh-width":this.redHigh+"%","--yellowlow-width":this.yellowLow+"%","--yellowhigh-width":this.yellowHigh+"%","--greenlow-width":this.greenLow+"%","--greenhigh-width":this.greenHigh+"%","--blue-width":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:"DEFAULT"}},created(){this.api=new a.x,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.limitsSettings=e})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((e=>{"MIN_VALUE"===e[0]&&(this.minValue=parseInt(e[1])),"MAX_VALUE"===e[0]&&(this.maxValue=parseInt(e[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits(e){this.redLow=10,this.redHigh=10,null!==this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),null!==this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.yellowLow=0),e[2]==e[3]&&(this.yellowHigh=0);let t=80;return 0==this.redLow&&(t+=10),0==this.redHigh&&(t+=10),this.scale=(e[3]-e[0])/t,e},calcPosition(e,t){if(!e||!t)return;let n=t[0]-10*this.scale;this.minValue&&this.minValue==t[0]&&(n=t[0]);let s=t[3]-10*this.scale;if(this.maxValue&&this.maxValue==t[3]&&(s=t[3]),e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;{const t=parseInt((e-n)/this.scale);return t>100?100:t<0?0:t}},calcLimits(e){e&&(this.yellowLow=Math.round((e[1]-e[0])/this.scale),this.yellowHigh=Math.round((e[3]-e[2])/this.scale),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/this.scale),this.greenHigh=Math.round((e[2]-e[5])/this.scale),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0))},getCurrentLimitsSet:function(){this.api.get_limits_set().then((e=>{this.currentLimitsSet=e}))}}}},1033:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});n(7107),n(9375),n(4293);var s=n(4554),a=n(6444),i=n(9729);const l={mixins:[i.A],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.settings.forEach((e=>{switch(e[0]){case"ITEM":this.items.push({targetName:e[1],packetName:e[2],itemName:e[3],valueType:e[4]||"CONVERTED",reduced:e[5]||"DECOM",reducedType:e[6]||null});case"STARTTIME":let t=(0,s.qg)(e[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=1e6*t.getTime();break;case"HISTORY":let n=parseInt(e[1].slice(0,e[1].length-1)),i=null,l=1;switch(e[1][e[1].length-1]){case"d":i="days",l=86400;break;case"h":i="hours",l=3600;break;case"m":i="minutes",l=60;break;case"s":i="seconds";break;default:throw new Error(`Unknown time suffix: ${e[1]}!`)}let r={};r[i]=n,this.startTime=1e6*(0,a.j)(new Date,r).getTime(),n*l>this.secondsGraphed&&(this.secondsGraphed=n*l),n*l>this.pointsSaved&&(this.pointsSaved=n*l),n*l>this.pointsGraphed&&(this.pointsGraphed=n*l);break;case"SECONDSGRAPHED":this.secondsGraphed=parseInt(e[1]);break;case"POINTSSAVED":this.pointsSaved=parseInt(e[1]);break;case"POINTSGRAPHED":this.pointsGraphed=parseInt(e[1]);break;case"SIZE":this.size.width=parseInt(e[1]),this.size.height=parseInt(e[2]);break}})),this.screen&&(this.items=this.items.map((e=>{let t=e.itemName;if(e.itemName.includes("[["))e.itemName=e.itemName.replace("[[","[").replace("]]","]"),t=e.itemName;else if(e.itemName.includes("[")){let n=e.itemName.match(/\[(\d+)\]/);this.arrayIndex=parseInt(n[1]),t=e.itemName.replace(n[0],"")}return this.screen.addItem(`${e.targetName}__${e.packetName}__${t}__${e.valueType}`,!0),e})))},destroyed(){this.screen&&this.items.map((e=>this.screen.deleteItem(`${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`)))}}},7163:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var s=n(2795);const a={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(e){var t="targets_modified";await s.A.get(`/openc3-api/storage/exists/${encodeURIComponent(`${window.openc3Scope}/${t}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`,{headers:{Accept:"application/json","Ignore-Errors":"404"}}).catch((e=>{t="targets"}));var n=await s.A.get(`/openc3-api/storage/download/${encodeURIComponent(`${window.openc3Scope}/${t}/${this.target}/public/${e}`)}?bucket=OPENC3_CONFIG_BUCKET`);return n.data.url}}}},9843:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var s=n(9729);const a={mixins:[s.A],props:{widgets:{type:Array,default:()=>[]}}}},2967:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(4293);var s=n(9729);n(9471);const a={mixins:[s.A],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data(){return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+this.parameters[0]+"/"+this.parameters[1]+"/"+this.parameters[2],"_blank")}}]}},watch:{_counter:function(e,t){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,null===this.curValue&&(this.screen?this.screen.screenValues[this.valueId]&&(null!==this.arrayIndex&&this.screen.screenValues[this.valueId][0]?this.curValue=this.screen.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let e=this.limitsState;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),e},_counter:function(){let e=this.counter;return null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][2]):e=null),e},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroIcon(){switch(this.limitsColor){case"green":return"$vuetify.icons.astro-status-normal";case"yellow":return"$vuetify.icons.astro-status-caution";case"red":return"$vuetify.icons.astro-status-critical";case"blue":return"$vuetify.icons.astro-status-standby";default:return null}},limitsColor(){let e=this._limitsState;if(null!=e)switch(e){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let e=this._limitsState;if(null!=e){let t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created(){if(null===this.value||null===this.limitsState){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let e=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(e[1]),this.parameters[2]=this.parameters[2].replace(e[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.screen&&this.screen.addItem(this.valueId)}},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){let t=Array.from(e["raw"].slice(0,32),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase();return e["raw"].length>32&&(t+="..."),t}if("Array"===Object.prototype.toString.call(e).slice(8,-1)){let t="[";for(let n=0;n<e.length;n++)"String"===Object.prototype.toString.call(e[n]).slice(8,-1)?t+='"'+e[n]+'"':t+=e[n],n!=e.length-1&&(t+=", ");return t+="]",t}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu(e){e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((()=>{this.contextMenuShown=!0}))}}}},9729:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(9375),n(7534);var s=n(3069);const a={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{screen:null,style:{}}},computed:{computedStyle(){return this.settings.forEach((e=>{const t=parseInt(e[0]);if(null!==this.widgetIndex){if(this.widgetIndex!==t)return;e=e.slice(1)}this.applySetting(this.style,e)})),void 0===this.style["width"]&&(this.style["flex"]="0 10 100%"),this.style}},created(){this.settings.forEach((e=>{"__SCREEN__"===e[0]&&(this.screen=e[1])})),this.settings=this.settings.map((e=>{const t=parseInt(e[0]);return isNaN(t)||null===this.widgetIndex?e:this.widgetIndex===t?e.slice(1):void 0})).filter((e=>void 0!==e))},methods:{applySetting(e,t){switch(t[0]){case"TEXTALIGN":e["text-align"]=t[1].toLowerCase()+" !important",e["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),e["padding"]=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),e["margin"]=t[1]+" !important";break;case"BACKCOLOR":e["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":e["color"]=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":e["border-width"]="1px!important",e["border-style"]="solid!important",e["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),e["width"]=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),e["height"]=t[1]+" !important";break;case"RAW":e[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(e,t,n,a=""){let i={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters};for(var l=1;l<=t;l++)if(void 0===this.parameters[l-1])throw new s.o(i,`Not enough parameters for ${e}.`,a,"https://docs.openc3.com/docs/configuration");if(null!==n&&this.parameters.length>n)throw new s.o(i,`Too many parameters for ${e}.`,a,"https://docs.openc3.com/docs/configuration")},setWidth(e,t="px",n="120"){let s=null;if(s=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"WIDTH"===e[1])):this.settings.find((e=>"WIDTH"===e[0])),s)return s["WIDTH"];if(e){let n=["WIDTH",`${e}${t}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(e)}{let e=["WIDTH",`${n}${t}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(n)}},setHeight(e,t="px",n="20"){let s=null;if(s=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"HEIGHT"===e[1])):this.settings.find((e=>"HEIGHT"===e[0])),s)return s["HEIGHT"];if(e){let n=["HEIGHT",`${e}${t}`];return null!==this.widgetIndex&&n.unshift(this.widgetIndex),this.settings.push(n),parseInt(e)}{let e=["HEIGHT",`${n}${t}`];return null!==this.widgetIndex&&e.unshift(this.widgetIndex),this.settings.push(e),parseInt(n)}},getColor(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return`rgb(${e[0]},${e[1]},${e[2]})`}}}}},2795:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(2673);const a=async function(e,t,{data:n,params:a={},headers:i,noAuth:l=!1,noScope:r=!1,onUploadProgress:o=!1}={}){if(!l){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(c){OpenC3Auth.login()}i["Authorization"]=localStorage.openc3Token}return i["manual"]=!0,r||a["scope"]||(a["scope"]=window.openc3Scope),(0,s.A)({method:e,url:t,data:n,params:a,headers:i,onUploadProgress:o})},i={Accept:"application/json"},l={...i,"Content-Type":"application/json"},r={get:function(e,{params:t,headers:n=i,noScope:s,noAuth:l,onUploadProgress:r}={}){return a("get",e,{params:t,headers:n,noScope:s,noAuth:l,onUploadProgress:r})},put:function(e,{data:t,params:n,headers:s=l,noScope:i,noAuth:r,onUploadProgress:o}={}){return a("put",e,{data:t,params:n,headers:s,noScope:i,noAuth:r,onUploadProgress:o})},post:function(e,{data:t,params:n,headers:s=l,noScope:i,noAuth:r,onUploadProgress:o}={}){return a("post",e,{data:t,params:n,headers:s,noScope:i,noAuth:r,onUploadProgress:o})},delete:function(e,{params:t,headers:n=i,noScope:s,noAuth:l,onUploadProgress:r}={}){return a("delete",e,{params:t,headers:n,noScope:s,noAuth:l,onUploadProgress:r})}}},2673:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(3816),a=n(1649);const i=new a["default"],l=s.A.create({baseURL:location.origin,timeout:6e4,params:{}});l.interceptors.response.use((e=>e),(e=>{if(e.response){if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.config.headers["Ignore-Errors"]&&e.response.config.headers["Ignore-Errors"].includes(e.response.status.toString()))return Promise.reject(e);let t=`HTTP ${e.response.status} - `;throw e.response?.statusText&&(t+=`${e.response.statusText} `),e.response?.config?.data&&(t+=`${e.response.config.data} `),e.response?.data?.message?t+=`${e.response.data.message}`:e.response?.data?.exception?t+=`${e.response.data.exception}`:e.response?.data?.error?.message?(e.response.data.error.class&&(t+=`${e.response.data.error.class} `),t+=`${e.response.data.error.message}`):t+=`${e.response?.data}`,i.$notify&&i.$notify.serious({title:"Network error",body:t}),e}throw e}));const r=l},3069:(e,t,n)=>{"use strict";n.d(t,{R:()=>i,o:()=>a});var s=n(814);n(9375),n(4293);class a{constructor(e,t,n="",s=""){this.keyword=e.keyword,this.parameters=e.parameters,this.filename=e.filename,this.line=e.line,this.lineNumber=e.lineNumber,this.message=t,this.usage=n,this.url=s}}class i{constructor(){(0,s.A)(this,"keyword",null),(0,s.A)(this,"parameters",[]),(0,s.A)(this,"filename",""),(0,s.A)(this,"line",""),(0,s.A)(this,"lineNumber",0),(0,s.A)(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(e,t,n=""){for(let s=1;s<=e;s++)if(void 0===this.parameters[s-1])throw new a(this,`Not enough parameters for ${this.keyword}.`,n,this.url);if(t&&void 0!==this.parameters[t])throw new a(this,`Too many parameters for ${this.keyword}.`,n,this.url)}remove_quotes(e){if(e.length<2)return e;let t=e.charAt(0);if('"'!==t&&"'"!==t)return e;let n=e.charAt(e.length-1);return t!==n?e:e.substring(1,e.length-1)}scan_string(e,t){if(!t.global)throw"rx must have 'global' flag set";let n=[];return e.replace(t,(function(e){return n.push(e),e})),n}parse_string(e,t,n,s,a){let i=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=t;let l=e.split("\n"),r=l.length;for(let o=0;o<r;o++){this.lineNumber=o+1;let e=l[o].trim();if(0===e.length)continue;if(!0===i){if("#"===e[0])continue;e=e.substring(1,e.length)}let t=e.charAt(e.length-1),r=!1;switch(t){case"+":r=!0;case"\\":let t=e.substring(0,e.length-1).trim();this.line+=t.substring(0,t.length-1),r&&(this.line+="\n"),i=!0;continue;case"&":this.line+=e.substring(0,e.length-1);continue;default:this.line+=e}i=!1;let c=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,d=this.scan_string(this.line,c),u="";if(d.length>0&&(u+=d[0]),0===u.length||"#"===u.charAt(0)?this.keyword=null:this.keyword=u.toUpperCase(),this.parameters=[],null===this.keyword){n&&a(this.keyword,this.parameters,this.line,this.lineNumber),this.line="";continue}let m=d.length;if(m>1)for(let n=1;n<m;n++){let e=d[n];if(e.length>0&&"#"===e.charAt(0))break;s?this.parameters.push(this.remove_quotes(e)):this.parameters.push(e)}a(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}},4364:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var s=n(814),a=(n(7107),n(2482),n(7067),n(4147),n(2682),n(785),n(8357),n(6196),n(821),n(6554),n(8472),n(7404),n(5803),n(3912),n(2673));class i{constructor(){(0,s.A)(this,"id",1)}async exec(e,t,n={},s={},i=6e4){try{let e=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);e&&OpenC3Auth.setTokens()}catch(r){OpenC3Auth.login()}this.id=this.id+1;try{n["scope"]=window.openc3Scope,s["manual"]=!0;const l=await a.A.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:t,id:this.id,keyword_params:n},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:i});return l.data.result}catch(r){var l=new Error;throw r.response?(l.name=r.response.data.error.data.class,l.message=r.response.data.error.data.message):r.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(null!==e&&"object"===typeof 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}encode_openc3_type(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}ensure_offline_access(){this.offline_access_needed().then((e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then((()=>{delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,t){return this.exec("map_target_to_interface",[e,t])}connect_interface(e,...t){return t.length>0?this.exec("connect_interface",[e,...t]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,t,...n){return this.exec("interface_cmd",[e,t,...n])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_all_target_info(){return this.exec("get_all_target_info",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,t,n){return this.exec("get_item",[e,t,n])}get_param(e,t,n){return this.exec("get_param",[e,t,n])}get_parameter(e,t,n){return this.exec("get_parameter",[e,t,n])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_list",[])}get_tlm(e,t){return this.exec("get_tlm",[e,t])}get_telemetry(e,t){return this.exec("get_telemetry",[e,t])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_telemetry",[e])}get_all_tlm_names(e){return this.exec("get_all_tlm_names",[e])}get_all_telemetry_names(e){return this.exec("get_all_telemetry_names",[e])}async get_tlm_packet(e,t,n,s=30){const a=await this.exec("get_tlm_packet",[e,t],{type:n,stale_time:s});if(null!=a)for(var i=a.length,l=null,r=0;r<i;r++)l=this.decode_openc3_type(a[r][1]),null!==l&&(a[r][1]=l);return a}get_packet_derived_items(e,t){return this.exec("get_packet_derived_items",[e,t])}get_tlm_buffer(e,t){return this.exec("get_tlm_buffer",[e,t])}async get_tlm_values(e,t=30,n=null){let s={stale_time:t};null!==n&&(s["cache_timeout"]=n);const a=await this.exec("get_tlm_values",[e],s,{},1e4);for(var i=a[0].length,l=null,r=0;r<i;r++)l=this.decode_openc3_type(a[0][r]),null!==l&&(a[0][r]=l);return a}get_limits(e,t,n){return this.exec("get_limits",[e,t,n])}async tlm(e,t,n,s="CONVERTED"){let a=null;if(void 0===t)a=await this.exec("tlm",[e]);else if(void 0===n){if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(t)){var i=new Error;throw i.name="TypeError",i.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,i}a=await this.exec("tlm",[e],{type:t})}else a=await this.exec("tlm",[e,t,n],{type:s});var l=this.decode_openc3_type(a);return null!==l&&(a=l),a}async inject_tlm(e,t,n=null,s="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:s})}set_tlm(e,t,n,s){return this.exec("set_tlm",[e,t,n],{type:s})}override_tlm(e,t,n,s){return this.exec("override_tlm",[e,t,n],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,s){return this.exec("normalize_tlm",[e,t,n],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_commands",[e])}get_all_cmd_names(e){return this.exec("get_all_cmd_names",[e])}get_all_command_names(e){return this.exec("get_all_command_names",[e])}get_cmd(e,t){return this.exec("get_cmd",[e,t])}get_command(e,t){return this.exec("get_command",[e,t])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,t,n,s="CONVERTED"){return this.exec("get_cmd_value",[e,t,n,s])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,n,s,a){var i=null;for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i=this.encode_openc3_type(s[l]),null!==i&&(s[l]=i));return this.exec(e,[t,n,s],{},a)}get_cmd_hazardous(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}cmd(e,t,n,s={}){return void 0===t?this.exec("cmd",e,{},s):this._cmd("cmd",e,t,n,s)}cmd_no_range_check(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}cmd_raw(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}cmd_raw_no_range_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}cmd_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}cmd_no_checks(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}cmd_raw_no_hazardous_check(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}cmd_raw_no_checks(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}build_cmd(e,t,n){return void 0===t?this.exec("build_cmd",e):this._cmd("build_cmd",e,t,n)}build_command(e,t,n){return void 0===t?this.exec("build_command",e):this._cmd("build_command",e,t,n)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,t){return this.exec("send_raw",[e,t])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,t){return this.exec("load_config",[e,t])}save_config(e,t,n){return this.exec("save_config",[e,t,n])}delete_config(e,t){return this.exec("delete_config",[e,t])}enable_limits(e,t,n){return this.exec("enable_limits",[e,t,n])}disable_limits(e,t,n){return this.exec("disable_limits",[e,t,n])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,t){return this.exec("set_setting",[e,t])}save_setting(e,t){return this.exec("save_setting",[e,t])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),s=new Uint8Array(n);return Array.from(s).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}},880:(e,t,n)=>{"use strict";function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",t="e5a35cbc5e9a0832f31495c1d4eb1662295ebd3f",n=new Function("return this")(),a="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:875}},4:{start:{line:1,column:609},end:{line:1,column:651}},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:593},end:{line:1,column:594}},loc:{start:{line:1,column:608},end:{line:1,column:652}},line:1}},branchMap:{0:{loc:{start:{line:1,column:77},end:{line:1,column:871}},type:"cond-expr",locations:[{start:{line:1,column:99},end:{line:1,column:244}},{start:{line:1,column:245},end:{line:1,column:871}}],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:"e5a35cbc5e9a0832f31495c1d4eb1662295ebd3f"},l=n[a]||(n[a]={});l[e]&&l[e].hash===t||(l[e]=i);var r=l[e];return s=function(){return r},r}n.d(t,{A:()=>m}),s(),s().s[0]++;var a=function(){s().f[0]++;var e=(s().s[1]++,this),t=(s().s[2]++,e._self._c);return s().s[3]++,t("div",[null===e.states?(s().b[0][0]++,t("v-text-field",{attrs:{value:e.textfieldValue,"hide-details":"",dense:"","data-test":"cmd-param-value"},on:{change:e.handleChange}})):(s().b[0][1]++,t("v-container",[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",[t("v-select",{class:e.stateClass(),staticStyle:{},attrs:{items:e.states,"item-text":"label","item-value":"value","hide-details":"",dense:"",outlined:"","data-test":"cmd-param-select"},on:{change:e.handleStateChange},model:{value:e.value.selected_state,callback:function(t){s().f[1]++,s().s[4]++,e.$set(e.value,"selected_state",t)},expression:"value.selected_state"}})],1),e._v(" "),t("v-col",[t("v-text-field",{attrs:{value:e.stateValue,"hide-details":"",dense:"","data-test":"cmd-param-value"},on:{change:e.handleChange}})],1)],1)],1))],1)},i=(s().s[5]++,[]),l=(n(9375),n(3345));function r(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",t="56907c28c85924033340a74f2515cc92bde8a313",n=new Function("return this")(),s="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandParameterEditor.vue",statementMap:{0:{start:{line:17,column:22},end:{line:24,column:7}},1:{start:{line:28,column:4},end:{line:30,column:5}},2:{start:{line:33,column:4},end:{line:33,column:37}},3:{start:{line:37,column:6},end:{line:37,column:49}},4:{start:{line:40,column:6},end:{line:44,column:7}},5:{start:{line:41,column:8},end:{line:41,column:49}},6:{start:{line:43,column:8},end:{line:43,column:29}},7:{start:{line:48,column:6},end:{line:70,column:7}},8:{start:{line:49,column:25},end:{line:49,column:27}},9:{start:{line:50,column:8},end:{line:59,column:9}},10:{start:{line:51,column:10},end:{line:58,column:11}},11:{start:{line:52,column:12},end:{line:57,column:14}},12:{start:{line:60,column:8},end:{line:64,column:10}},13:{start:{line:67,column:8},end:{line:67,column:25}},14:{start:{line:69,column:8},end:{line:69,column:19}},15:{start:{line:75,column:6},end:{line:75,column:61}},16:{start:{line:78,column:6},end:{line:78,column:28}},17:{start:{line:79,column:6},end:{line:79,column:37}},18:{start:{line:80,column:6},end:{line:111,column:7}},19:{start:{line:81,column:29},end:{line:81,column:47}},20:{start:{line:82,column:35},end:{line:82,column:53}},21:{start:{line:83,column:8},end:{line:106,column:9}},22:{start:{line:84,column:10},end:{line:105,column:11}},23:{start:{line:85,column:12},end:{line:85,column:44}},24:{start:{line:86,column:12},end:{line:86,column:46}},25:{start:{line:87,column:12},end:{line:91,column:13}},26:{start:{line:88,column:14},end:{line:88,column:42}},27:{start:{line:90,column:14},end:{line:90,column:41}},28:{start:{line:92,column:12},end:{line:92,column:17}},29:{start:{line:94,column:17},end:{line:105,column:11}},30:{start:{line:95,column:12},end:{line:95,column:34}},31:{start:{line:96,column:12},end:{line:96,column:46}},32:{start:{line:97,column:12},end:{line:101,column:13}},33:{start:{line:98,column:14},end:{line:98,column:42}},34:{start:{line:100,column:14},end:{line:100,column:41}},35:{start:{line:102,column:12},end:{line:102,column:17}},36:{start:{line:104,column:12},end:{line:104,column:40}},37:{start:{line:107,column:8},end:{line:107,column:50}},38:{start:{line:108,column:8},end:{line:108,column:62}},39:{start:{line:110,column:8},end:{line:110,column:40}},40:{start:{line:112,column:6},end:{line:112,column:37}},41:{start:{line:116,column:33},end:{line:116,column:37}},42:{start:{line:117,column:27},end:{line:117,column:31}},43:{start:{line:118,column:6},end:{line:129,column:7}},44:{start:{line:118,column:23},end:{line:118,column:24}},45:{start:{line:119,column:8},end:{line:128,column:9}},46:{start:{line:120,column:10},end:{line:124,column:11}},47:{start:{line:121,column:12},end:{line:121,column:40}},48:{start:{line:123,column:12},end:{line:123,column:39}},49:{start:{line:125,column:10},end:{line:125,column:57}},50:{start:{line:126,column:10},end:{line:126,column:32}},51:{start:{line:127,column:10},end:{line:127,column:15}},52:{start:{line:130,column:6},end:{line:130,column:60}},53:{start:{line:131,column:6},end:{line:140,column:7}},54:{start:{line:132,column:8},end:{line:132,column:36}},55:{start:{line:133,column:8},end:{line:133,column:48}},56:{start:{line:138,column:8},end:{line:138,column:39}},57:{start:{line:139,column:8},end:{line:139,column:39}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:17,column:15},end:{line:17,column:16}},loc:{start:{line:17,column:22},end:{line:24,column:7}},line:17},1:{name:"(anonymous_1)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:9},end:{line:31,column:3}},line:27},2:{name:"(anonymous_2)",decl:{start:{line:32,column:2},end:{line:32,column:3}},loc:{start:{line:32,column:12},end:{line:34,column:3}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:36,column:4},end:{line:36,column:5}},loc:{start:{line:36,column:21},end:{line:38,column:5}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:39,column:4},end:{line:39,column:5}},loc:{start:{line:39,column:17},end:{line:45,column:5}},line:39},5:{name:"(anonymous_5)",decl:{start:{line:46,column:4},end:{line:46,column:5}},loc:{start:{line:46,column:13},end:{line:71,column:5}},line:46},6:{name:"(anonymous_6)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:17},end:{line:76,column:5}},line:74},7:{name:"(anonymous_7)",decl:{start:{line:77,column:4},end:{line:77,column:5}},loc:{start:{line:77,column:24},end:{line:113,column:5}},line:77},8:{name:"(anonymous_8)",decl:{start:{line:115,column:4},end:{line:115,column:5}},loc:{start:{line:115,column:29},end:{line:141,column:5}},line:115}},branchMap:{0:{loc:{start:{line:40,column:6},end:{line:44,column:7}},type:"if",locations:[{start:{line:40,column:6},end:{line:44,column:7}},{start:{line:42,column:13},end:{line:44,column:7}}],line:40},1:{loc:{start:{line:48,column:6},end:{line:70,column:7}},type:"if",locations:[{start:{line:48,column:6},end:{line:70,column:7}},{start:{line:68,column:13},end:{line:70,column:7}}],line:48},2:{loc:{start:{line:51,column:10},end:{line:58,column:11}},type:"if",locations:[{start:{line:51,column:10},end:{line:58,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:51},3:{loc:{start:{line:75,column:13},end:{line:75,column:61}},type:"cond-expr",locations:[{start:{line:75,column:36},end:{line:75,column:52}},{start:{line:75,column:55},end:{line:75,column:61}}],line:75},4:{loc:{start:{line:80,column:6},end:{line:111,column:7}},type:"if",locations:[{start:{line:80,column:6},end:{line:111,column:7}},{start:{line:109,column:13},end:{line:111,column:7}}],line:80},5:{loc:{start:{line:84,column:10},end:{line:105,column:11}},type:"if",locations:[{start:{line:84,column:10},end:{line:105,column:11}},{start:{line:94,column:17},end:{line:105,column:11}}],line:84},6:{loc:{start:{line:87,column:12},end:{line:91,column:13}},type:"if",locations:[{start:{line:87,column:12},end:{line:91,column:13}},{start:{line:89,column:19},end:{line:91,column:13}}],line:87},7:{loc:{start:{line:94,column:17},end:{line:105,column:11}},type:"if",locations:[{start:{line:94,column:17},end:{line:105,column:11}},{start:{line:103,column:17},end:{line:105,column:11}}],line:94},8:{loc:{start:{line:97,column:12},end:{line:101,column:13}},type:"if",locations:[{start:{line:97,column:12},end:{line:101,column:13}},{start:{line:99,column:19},end:{line:101,column:13}}],line:97},9:{loc:{start:{line:119,column:8},end:{line:128,column:9}},type:"if",locations:[{start:{line:119,column:8},end:{line:128,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:119},10:{loc:{start:{line:120,column:10},end:{line:124,column:11}},type:"if",locations:[{start:{line:120,column:10},end:{line:124,column:11}},{start:{line:122,column:17},end:{line:124,column:11}}],line:120},11:{loc:{start:{line:131,column:6},end:{line:140,column:7}},type:"if",locations:[{start:{line:131,column:6},end:{line:140,column:7}},{start:{line:137,column:13},end:{line:140,column:7}}],line:131}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0]},inputSourceMap:{version:3,sources:["CommandParameterEditor.vue"],names:[],mappings:";AAgEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"CommandParameterEditor.vue",sourceRoot:"src/tools/CommandSender",sourcesContent:["\x3c!--\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2023, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <v-text-field\n v-if=\"states === null\"\n :value=\"textfieldValue\"\n hide-details\n dense\n @change=\"handleChange\"\n data-test=\"cmd-param-value\"\n />\n <v-container v-else>\n <v-row no-gutters>\n <v-col>\n <v-select\n :items=\"states\"\n v-model=\"value.selected_state\"\n @change=\"handleStateChange\"\n item-text=\"label\"\n item-value=\"value\"\n style=\"primary\"\n :class=\"stateClass()\"\n hide-details\n dense\n outlined\n data-test=\"cmd-param-select\"\n />\n </v-col>\n <v-col>\n <v-text-field\n :value=\"stateValue\"\n @change=\"handleChange\"\n hide-details\n dense\n data-test=\"cmd-param-value\"\n />\n </v-col>\n </v-row>\n </v-container>\n </div>\n</template>\n\n<script>\nimport Utilities from '@/tools/CommandSender/utilities'\n\nexport default {\n mixins: [Utilities],\n model: {\n prop: 'initialValue',\n event: 'input',\n },\n props: {\n statesInHex: {\n type: Boolean,\n default: false,\n },\n initialValue: {\n type: Object,\n default: () => ({\n val: '',\n states: null,\n selected_state: null,\n selected_state_label: '',\n manual_value: null,\n hazardous: false,\n }),\n },\n },\n data() {\n return {\n value: this.initialValue,\n }\n },\n created() {\n this.handleChange(this.value.val)\n },\n computed: {\n textfieldValue() {\n return this.convertToString(this.value.val)\n },\n stateValue() {\n if (this.statesInHex) {\n return '0x' + this.value.val.toString(16)\n } else {\n return this.value.val\n }\n },\n states() {\n // check using != because compare with null\n if (this.value.states != null) {\n var calcStates = []\n for (var key in this.value.states) {\n if (Object.prototype.hasOwnProperty.call(this.value.states, key)) {\n calcStates.push({\n label: key,\n value: this.value.states[key].value,\n // states which are not hazardous don't have this property set so they are undefined\n hazardous: this.value.states[key].hazardous,\n })\n }\n }\n calcStates.push({\n label: 'MANUALLY ENTERED',\n value: 'MANUALLY ENTERED',\n hazardous: undefined, // see above\n })\n\n // TBD pick default better (use actual default instead of just first item in list)\n return calcStates\n } else {\n return null\n }\n },\n },\n methods: {\n stateClass() {\n return this.value.hazardous ? 'hazardous mr-4' : 'mr-4'\n },\n handleChange(value) {\n this.value.val = value\n this.value.manual_value = value\n if (this.value.states) {\n var selected_state = 'MANUALLY ENTERED'\n var selected_state_label = 'MANUALLY_ENTERED'\n for (const state of this.states) {\n if (state.value === parseInt(value)) {\n selected_state = parseInt(value)\n selected_state_label = state.label\n if (state.hazardous === undefined) {\n this.value.hazardous = false\n } else {\n this.value.hazardous = true\n }\n break\n // If they have ascii states the value might match the state value\n } else if (state.value === value) {\n selected_state = value\n selected_state_label = state.label\n if (state.hazardous === undefined) {\n this.value.hazardous = false\n } else {\n this.value.hazardous = true\n }\n break\n } else {\n this.value.hazardous = false\n }\n }\n this.value.selected_state = selected_state\n this.value.selected_state_label = selected_state_label\n } else {\n this.value.selected_state = null\n }\n this.$emit('input', this.value)\n },\n\n handleStateChange(value) {\n var selected_state_label = null\n var selected_state = null\n for (var index = 0; index < this.states.length; index++) {\n if (value === this.states[index].value) {\n if (this.states[index].hazardous === undefined) {\n this.value.hazardous = false\n } else {\n this.value.hazardous = true\n }\n selected_state_label = this.states[index].label\n selected_state = value\n break\n }\n }\n this.value.selected_state_label = selected_state_label\n if (selected_state_label === 'MANUALLY ENTERED') {\n this.value.hazardous = false\n this.value.val = this.value.manual_value\n // Stop propagation of the click event so the editor stays active\n // to let the operator enter a manual value.\n // event.originalEvent.stopPropagation()\n } else {\n this.value.val = selected_state\n this.$emit('input', this.value)\n }\n },\n },\n}\n<\/script>\n<style scoped>\n/* This allows Value or State selection to be wider and show state names */\n.container :deep(.v-select__selections) {\n width: auto;\n}\n.v-overflow-btn {\n margin-top: 0px;\n}\n.container {\n padding: 0px;\n}\n.hazardous :deep(.v-select__selection) {\n color: rgb(255, 220, 0);\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"56907c28c85924033340a74f2515cc92bde8a313"},i=n[s]||(n[s]={});i[e]&&i[e].hash===t||(i[e]=a);var l=i[e];return r=function(){return l},l}r();const o={mixins:[l.A],model:{prop:"initialValue",event:"input"},props:{statesInHex:{type:Boolean,default:!1},initialValue:{type:Object,default:()=>(r().f[0]++,r().s[0]++,{val:"",states:null,selected_state:null,selected_state_label:"",manual_value:null,hazardous:!1})}},data(){return r().f[1]++,r().s[1]++,{value:this.initialValue}},created(){r().f[2]++,r().s[2]++,this.handleChange(this.value.val)},computed:{textfieldValue(){return r().f[3]++,r().s[3]++,this.convertToString(this.value.val)},stateValue(){return r().f[4]++,r().s[4]++,this.statesInHex?(r().b[0][0]++,r().s[5]++,"0x"+this.value.val.toString(16)):(r().b[0][1]++,r().s[6]++,this.value.val)},states(){if(r().f[5]++,r().s[7]++,null!=this.value.states){r().b[1][0]++;var e=(r().s[8]++,[]);for(var t in r().s[9]++,this.value.states)r().s[10]++,Object.prototype.hasOwnProperty.call(this.value.states,t)?(r().b[2][0]++,r().s[11]++,e.push({label:t,value:this.value.states[t].value,hazardous:this.value.states[t].hazardous})):r().b[2][1]++;return r().s[12]++,e.push({label:"MANUALLY ENTERED",value:"MANUALLY ENTERED",hazardous:void 0}),r().s[13]++,e}return r().b[1][1]++,r().s[14]++,null}},methods:{stateClass(){return r().f[6]++,r().s[15]++,this.value.hazardous?(r().b[3][0]++,"hazardous mr-4"):(r().b[3][1]++,"mr-4")},handleChange(e){if(r().f[7]++,r().s[16]++,this.value.val=e,r().s[17]++,this.value.manual_value=e,r().s[18]++,this.value.states){r().b[4][0]++;var t=(r().s[19]++,"MANUALLY ENTERED"),n=(r().s[20]++,"MANUALLY_ENTERED");r().s[21]++;for(const s of this.states){if(r().s[22]++,s.value===parseInt(e)){r().b[5][0]++,r().s[23]++,t=parseInt(e),r().s[24]++,n=s.label,r().s[25]++,void 0===s.hazardous?(r().b[6][0]++,r().s[26]++,this.value.hazardous=!1):(r().b[6][1]++,r().s[27]++,this.value.hazardous=!0),r().s[28]++;break}if(r().b[5][1]++,r().s[29]++,s.value===e){r().b[7][0]++,r().s[30]++,t=e,r().s[31]++,n=s.label,r().s[32]++,void 0===s.hazardous?(r().b[8][0]++,r().s[33]++,this.value.hazardous=!1):(r().b[8][1]++,r().s[34]++,this.value.hazardous=!0),r().s[35]++;break}r().b[7][1]++,r().s[36]++,this.value.hazardous=!1}r().s[37]++,this.value.selected_state=t,r().s[38]++,this.value.selected_state_label=n}else r().b[4][1]++,r().s[39]++,this.value.selected_state=null;r().s[40]++,this.$emit("input",this.value)},handleStateChange(e){r().f[8]++;var t=(r().s[41]++,null),n=(r().s[42]++,null);r().s[43]++;for(var s=(r().s[44]++,0);s<this.states.length;s++){if(r().s[45]++,e===this.states[s].value){r().b[9][0]++,r().s[46]++,void 0===this.states[s].hazardous?(r().b[10][0]++,r().s[47]++,this.value.hazardous=!1):(r().b[10][1]++,r().s[48]++,this.value.hazardous=!0),r().s[49]++,t=this.states[s].label,r().s[50]++,n=e,r().s[51]++;break}r().b[9][1]++}r().s[52]++,this.value.selected_state_label=t,r().s[53]++,"MANUALLY ENTERED"===t?(r().b[11][0]++,r().s[54]++,this.value.hazardous=!1,r().s[55]++,this.value.val=this.value.manual_value):(r().b[11][1]++,r().s[56]++,this.value.val=n,r().s[57]++,this.$emit("input",this.value))}}},c=o;n(9685);var d=n(2401),u=(0,d.A)(c,a,i,!1,null,"2ffd785b",null);const m=u.exports},6729:(e,t,n)=>{"use strict";function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",t="b49231d91924460812fdca0530b07caa84150a1e",n=new Function("return this")(),a="__coverage__",i={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",statementMap:{0:{start:{line:1,column:13},end:{line:2,column:1}},1:{start:{line:1,column:39},end:{line:1,column:43}},2:{start:{line:1,column:47},end:{line:1,column:59}},3:{start:{line:1,column:60},end:{line:1,column:6451}},4:{start:{line:1,column:434},end:{line:1,column:467}},5:{start:{line:1,column:494},end:{line:1,column:521}},6:{start:{line:1,column:892},end:{line:1,column:906}},7:{start:{line:1,column:1243},end:{line:1,column:1457}},8:{start:{line:1,column:1382},end:{line:1,column:1419}},9:{start:{line:1,column:1763},end:{line:1,column:1789}},10:{start:{line:1,column:2101},end:{line:1,column:2320}},11:{start:{line:1,column:3043},end:{line:1,column:3067}},12:{start:{line:1,column:3167},end:{line:1,column:3358}},13:{start:{line:1,column:3231},end:{line:1,column:3256}},14:{start:{line:1,column:3256},end:{line:1,column:3297}},15:{start:{line:1,column:3567},end:{line:1,column:3586}},16:{start:{line:1,column:3732},end:{line:1,column:3758}},17:{start:{line:1,column:4239},end:{line:1,column:4269}},18:{start:{line:1,column:4455},end:{line:1,column:4483}},19:{start:{line:1,column:5282},end:{line:1,column:5304}},20:{start:{line:1,column:5802},end:{line:1,column:5827}},21:{start:{line:1,column:6043},end:{line:1,column:6078}},22:{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:417},end:{line:1,column:418}},loc:{start:{line:1,column:433},end:{line:1,column:468}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:477},end:{line:1,column:478}},loc:{start:{line:1,column:493},end:{line:1,column:522}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:876},end:{line:1,column:877}},loc:{start:{line:1,column:891},end:{line:1,column:907}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1224},end:{line:1,column:1225}},loc:{start:{line:1,column:1242},end:{line:1,column:1458}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1366},end:{line:1,column:1367}},loc:{start:{line:1,column:1381},end:{line:1,column:1420}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1746},end:{line:1,column:1747}},loc:{start:{line:1,column:1762},end:{line:1,column:1790}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2077},end:{line:1,column:2078}},loc:{start:{line:1,column:2100},end:{line:1,column:2321}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:3027},end:{line:1,column:3028}},loc:{start:{line:1,column:3042},end:{line:1,column:3068}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:3146},end:{line:1,column:3147}},loc:{start:{line:1,column:3166},end:{line:1,column:3359}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:3214},end:{line:1,column:3215}},loc:{start:{line:1,column:3230},end:{line:1,column:3298}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:3551},end:{line:1,column:3552}},loc:{start:{line:1,column:3566},end:{line:1,column:3587}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:3716},end:{line:1,column:3717}},loc:{start:{line:1,column:3731},end:{line:1,column:3759}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:4222},end:{line:1,column:4223}},loc:{start:{line:1,column:4238},end:{line:1,column:4270}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4439},end:{line:1,column:4440}},loc:{start:{line:1,column:4454},end:{line:1,column:4484}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:5266},end:{line:1,column:5267}},loc:{start:{line:1,column:5281},end:{line:1,column:5305}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:5786},end:{line:1,column:5787}},loc:{start:{line:1,column:5801},end:{line:1,column:5828}},line:1},17:{name:"(anonymous_17)",decl:{start:{line:1,column:6026},end:{line:1,column:6027}},loc:{start:{line:1,column:6042},end:{line:1,column:6079}},line:1}},branchMap:{0:{loc:{start:{line:1,column:542},end:{line:1,column:1498}},type:"cond-expr",locations:[{start:{line:1,column:566},end:{line:1,column:1489}},{start:{line:1,column:1490},end:{line:1,column:1498}}],line:1},1:{loc:{start:{line:1,column:2539},end:{line:1,column:2820}},type:"cond-expr",locations:[{start:{line:1,column:2562},end:{line:1,column:2811}},{start:{line:1,column:2812},end:{line:1,column:2820}}],line:1},2:{loc:{start:{line:1,column:2596},end:{line:1,column:2807}},type:"cond-expr",locations:[{start:{line:1,column:2619},end:{line:1,column:2798}},{start:{line:1,column:2799},end:{line:1,column:2807}}],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},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},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b49231d91924460812fdca0530b07caa84150a1e"},l=n[a]||(n[a]={});l[e]&&l[e].hash===t||(l[e]=i);var r=l[e];return s=function(){return r},r}n.r(t),n.d(t,{default:()=>d}),s(),s().s[0]++;var a=function(){s().f[0]++;var e=(s().s[1]++,this),t=(s().s[2]++,e._self._c);return s().s[3]++,t("div",[t("top-bar",{attrs:{menus:e.menus,title:e.title}}),e._v(" "),t("v-card",[t("div",{staticStyle:{padding:"10px"}},[t("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(t){return s().f[1]++,s().s[4]++,e.commandChanged(t)},click:function(t){return s().f[2]++,s().s[5]++,e.buildCmd(t)}}})],1),e._v(" "),0!==e.rows.length?(s().b[0][0]++,t("v-card",[t("v-card-title",[e._v("\n Parameters\n "),t("v-spacer"),e._v(" "),t("v-text-field",{staticClass:"search",attrs:{label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){s().f[3]++,s().s[6]++,e.search=t},expression:"search"}})],1),e._v(" "),t("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({item:n}){return s().f[4]++,s().s[7]++,[t("command-parameter-editor",{attrs:{"states-in-hex":e.statesInHex},model:{value:n.val_and_states,callback:function(t){s().f[5]++,s().s[8]++,e.$set(n,"val_and_states",t)},expression:"item.val_and_states"}})]}}],null,!1,1123654540)})],1)):(s().b[0][1]++,e._e()),e._v(" "),t("div",{staticClass:"pa-3"},[e._v("Status: "+e._s(e.status))])],1),e._v(" "),t("div",{staticStyle:{height:"15px"}}),e._v(" "),t("multipane",{staticClass:"horizontal-panes",attrs:{layout:"horizontal"},on:{paneResize:function(t){return s().f[6]++,s().s[9]++,e.editor.resize()}}},[t("v-row",[t("v-col",[t("v-card",{staticClass:"pb-2"},[t("v-card-subtitle",[e._v("\n Editable Command History: (Pressing Enter on the line re-executes\n the command)\n "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:a}){return s().f[7]++,s().s[10]++,[t("div",e._g(e._b({staticClass:"float-right"},"div",a,!1),n),[t("v-btn",{attrs:{icon:"","data-test":"clear-history"},on:{click:e.clearHistory}},[t("v-icon",[e._v(" mdi-delete ")])],1)],1)]}}])},[e._v(" "),t("span",[e._v(" Clear History ")])])],1),e._v(" "),t("v-row",{staticClass:"mt-2 mb-2"},[t("pre",{ref:"editor",staticClass:"editor",attrs:{"data-test":"sender-history"}})])],1)],1),e._v(" "),e.screenDefinition?(s().b[1][0]++,t("v-col",{attrs:{md:"auto"}},[e.screenDefinition?(s().b[2][0]++,t("openc3-screen",{attrs:{target:e.screenTarget,screen:e.screenName,definition:e.screenDefinition,keywords:e.keywords,count:e.screenCount,showClose:!1}})):(s().b[2][1]++,e._e())],1)):(s().b[1][1]++,e._e())],1)],1),e._v(" "),t("div",{staticStyle:{height:"15px"}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){s().f[8]++,s().s[11]++,e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,a){return s().f[9]++,s().s[12]++,t("v-list-item",{key:a,on:{click:function(e){return s().f[10]++,s().s[13]++,e.stopPropagation(),s().s[14]++,n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.targetName,"packet-name":e.commandName,"item-name":e.parameterName,type:"cmd"},model:{value:e.viewDetails,callback:function(t){s().f[11]++,s().s[15]++,e.viewDetails=t},expression:"viewDetails"}}),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displayErrorDialog,callback:function(t){s().f[12]++,s().s[16]++,e.displayErrorDialog=t},expression:"displayErrorDialog"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Error ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"mx-1"},[t("v-row",{staticClass:"my-2"},[t("v-card-text",[t("span",{domProps:{textContent:e._s(e.status)}})])],1),e._v(" "),t("v-row",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{color:"primary","data-test":"error-dialog-ok"},on:{click:function(t){s().f[13]++,s().s[17]++,e.displayErrorDialog=!1}}},[e._v("\n Ok\n ")])],1)],1)])],1)],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displaySendHazardous,callback:function(t){s().f[14]++,s().s[18]++,e.displaySendHazardous=t},expression:"displaySendHazardous"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Hazardous Warning ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"mx-1"},[t("v-row",{staticClass:"my-2"},[t("span",[e._v("\n Warning: Command "+e._s(e.hazardousCommand)+" is Hazardous. Send?\n ")])]),e._v(" "),t("v-row",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{outlined:""},on:{click:e.cancelHazardousCmd}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"primary mx-1",on:{click:e.sendHazardousCmd}},[e._v("\n Send\n ")])],1)],1)])],1)],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displaySendRaw,callback:function(t){s().f[15]++,s().s[19]++,e.displaySendRaw=t},expression:"displaySendRaw"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Send Raw ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"mx-1"},[t("v-row",{staticClass:"my-2"},[t("v-col",[e._v("Interface:")]),e._v(" "),t("v-col",[t("v-select",{attrs:{solo:"","hide-details":"",dense:"",items:e.interfaces,"item-text":"label","item-value":"value"},model:{value:e.selectedInterface,callback:function(t){s().f[16]++,s().s[20]++,e.selectedInterface=t},expression:"selectedInterface"}})],1)],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",[e._v("Filename:")]),e._v(" "),t("v-col",[t("input",{attrs:{type:"file"},on:{change:function(t){return s().f[17]++,s().s[21]++,e.selectRawCmdFile(t)}}})])],1),e._v(" "),t("v-row",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{outlined:"","data-test":"raw-cancel"},on:{click:e.cancelRawCmd}},[e._v("\n Cancel\n ")]),e._v(" "),t("v-btn",{staticClass:"primary",attrs:{"data-test":"raw-ok"},on:{click:e.sendRawCmd}},[e._v("\n Ok\n ")])],1)],1)])],1)],1)],1)},i=(s().s[22]++,[]),l=n(5771);const r=l.A;n(3617);var o=n(2401),c=(0,o.A)(r,a,i,!1,null,"4d775f22",null);const d=c.exports},9821:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Details ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-title",[e._v("\n "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+"\n ")]),e._v(" "),t("v-card-subtitle",[e._v(e._s(e.details.description))]),e._v(" "),t("v-card-text",[t("v-container",{attrs:{fluid:""}},["tlm"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Item Values")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Raw Value")]),e._v(" "),t("v-col",[e._v(e._s(e.rawValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.convertedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),e._v(" "),t("v-col",[e._v(e._s(e.formattedValue))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),e._v(" "),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e._v(" "),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),e._v(" "),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),e._v(" "),t("v-col",[e._v(e._s(e.details.data_type))])],1),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),e._v(" "),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),e._v(" "),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),e._v(" "),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),e._v(" "),t("v-col",[e._v(e._s(e.details.format_string))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e._v(" "),e.details.read_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.read_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.read_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e._v(" "),e.details.write_conversion?t("v-col",[e._v("\n Class: "+e._s(e.details.write_conversion.class)+"\n "),t("br"),e._v("\n Params:\n "+e._s(e.details.write_conversion.params)+"\n ")]):t("v-col")],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),e._v(" "),t("v-col",[e._v(e._s(e.details.id_value))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units_full))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),e._v(" "),t("v-col",[e._v(e._s(e.details.units))])],1),e._v(" "),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),e._v(" "),t("v-col",[e._v(e._s(e.details.endianness))])],1),e._v(" "),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.states,(function(n,s){return t("v-row",{key:s,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(s))]),e._v(" "),t("v-col",[e._v(e._s(n.value))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.limits,(function(n,s){return t("v-row",{key:s,attrs:{"no-gutters":""}},["enabled"===s?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===s?t("v-switch",{attrs:{dense:"","hide-details":""},on:{change:e.changeLimitsEnabled},model:{value:e.details.limits.enabled,callback:function(t){e.$set(e.details.limits,"enabled",t)},expression:"details.limits.enabled"}}):e._e(),e._v(" "),"enabled"!==s?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(s))]):e._e(),e._v(" "),"enabled"!==s?t("div",[e._v(e._s(e.formatLimit(n)))]):e._e(),e._v(" "),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),e._v(" "),t("v-col",[e._v("None")])],1),e._v(" "),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col"),e._v(" "),t("v-container",{staticClass:"ml-5 pa-0",attrs:{fluid:""}},e._l(e.details.meta,(function(n,s){return t("v-row",{key:s,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(s))]),e._v(" "),t("v-col",[e._v(e._s(n))])],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),e._v(" "),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},a=[],i=n(4364);const l={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},created(){this.api=new i.x},beforeDestroy(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then((e=>{for(var t=0;t<e.length;t++){let n=null;if("String"===e[t][0]["json_class"]&&void 0!==e[t][0]["raw"]?n=e[t][0]["raw"]:"BLOCK"===this.details.data_type&&(n=e[t][0]),null!==n){n=n.slice(0,parseInt(this.details.bit_size)/8);let s=!1;n.length>64&&(s=!0),e[t][0]=Array.from(n.slice(0,64),(function(e){return" "===e?"20":("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),s&&(e[t][0]+="...")}}this.details.data_type.includes("INT")&&!this.details.array_size?this.rawValue=`${e[0][0]} (0x${e[0][0].toString(16).toUpperCase()})`:this.rawValue=e[0][0],this.convertedValue=e[1][0],this.formattedValue=e[2][0],this.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{async requestDetails(){"tlm"===this.type?await this.api.get_item(this.targetName,this.packetName,this.itemName).then((e=>{if(this.details=e,0===Object.keys(e.limits).length)this.details.limits=null;else{let t=!1;e.limits.enabled&&(t=!0,delete e.limits.enabled),this.details.limits={enabled:t,...e.limits}}})):await this.api.get_parameter(this.targetName,this.packetName,this.itemName).then((e=>{this.details=e}))},async changeLimitsEnabled(){this.details.limits.enabled?await this.api.enable_limits(this.targetName,this.packetName,this.itemName):await this.api.disable_limits(this.targetName,this.packetName,this.itemName)},formatLimit(e){return e.hasOwnProperty("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.hasOwnProperty("red_low")?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},r=l;n(1727);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"6659f972",null);const d=c.exports},9410:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var s=function(){var e=this,t=e._self._c;return t("div",[t("v-card",{nativeOn:{click:function(t){return e.$emit("click")}}},[t("v-system-bar",{directives:[{name:"show",rawName:"v-show",value:!e.hideSystemBar,expression:"!hideSystemBar"}],class:e.selectedGraphId===e.id?"active":"inactive"},[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}],staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[e._v(" "),t("span",[e._v("Errors")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(t){e.editGraph=!0}}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Edit ")])]),e._v(" "),t("v-spacer"),e._v(" "),t("span",[e._v(e._s(e.title))]),e._v(" "),t("v-spacer"),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}],attrs:{"data-test":"collapse-all"},on:{click:e.collapseAll}},[e._v("\n mdi-arrow-collapse\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}],attrs:{"data-test":"expand-all"},on:{click:e.expandAll}},[e._v("\n mdi-arrow-expand\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}],attrs:{"data-test":"collapse-width"},on:{click:e.collapseWidth}},[e._v("\n mdi-arrow-collapse-horizontal\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}],attrs:{"data-test":"expand-width"},on:{click:e.expandWidth}},[e._v("\n mdi-arrow-expand-horizontal\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}],attrs:{"data-test":"collapse-height"},on:{click:e.collapseHeight}},[e._v("\n mdi-arrow-collapse-vertical\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}],attrs:{"data-test":"expand-height"},on:{click:e.expandHeight}},[e._v("\n mdi-arrow-expand-vertical\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(t){return e.$emit("close-graph")}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Close ")])])],1),e._v(" "),t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"chart",staticClass:"pa-1",attrs:{id:"chart"}},[t("div",{attrs:{id:`chart${e.id}`}}),e._v(" "),t("div",{attrs:{id:"betweenCharts"}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:`overview${e.id}`}})])])],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"700"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("input")},input:function(t){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(t){e.editGraph=t},expression:"editGraph"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Edit Graph")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",{staticClass:"pa-3"},[t("v-tabs",{staticClass:"ml-3",model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("v-tab",{key:0},[e._v(" Settings ")]),e._v(" "),t("v-tab",{key:1},[e._v(" Scale / Lines ")]),e._v(" "),t("v-tab",{key:1},[e._v(" Items ")])],1),e._v(" "),t("v-tabs-items",{model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("v-tab-item",{key:0,staticClass:"tab",attrs:{eager:"true"}},[t("div",{staticClass:"edit-box"},[t("v-row",[t("v-col",[t("v-card-text",{staticClass:"pa-0"},[t("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1)],1),e._v(" "),t("v-col",{staticStyle:{}},[t("v-select",{staticStyle:{"max-width":"280px"},attrs:{label:"Legend Position",dense:"",outlined:"","hide-details":"",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(t){e.legendPosition=t},expression:"legendPosition"}})],1)],1)],1),e._v(" "),t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a start date/time for the graph. Leave blank for start\n now.\n ")]),e._v(" "),t("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time","date-time":e.graphStartDateTime},on:{"date-time":function(t){e.graphStartDateTime=t}}}),e._v(" "),t("v-card-text",{staticClass:"pa-0"},[e._v("\n Select a end date/time for the graph. Leave blank for continuous\n real-time graphing.\n ")]),e._v(" "),t("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(t){e.graphEndDateTime=t}}})],1)]),e._v(" "),t("v-tab-item",{key:1,staticClass:"tab",attrs:{eager:"true"}},[t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("\n Set a min or max Y value to override automatic scaling\n ")]),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y Axis (Optional)",type:"number","data-test":"edit-graph-min-y"},model:{value:e.graphMinY,callback:function(t){e.graphMinY=t},expression:"graphMinY"}})],1),e._v(" "),t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Max Y Axis (Optional)",type:"number","data-test":"edit-graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1)],1),e._v(" "),t("div",{staticClass:"edit-box"},[t("v-card-text",{staticClass:"pa-0"},[e._v("Add horizontal lines to the graph")]),e._v(" "),t("v-data-table",{attrs:{"item-key":"lineId","data-test":"edit-graph-lines",headers:e.lineHeaders,items:e.lines,"items-per-page":5,"footer-props":{itemsPerPageOptions:[5]}},scopedSlots:e._u([{key:"item.yValue",fn:function(n){return[t("v-edit-dialog",{attrs:{"return-value":n.item.yValue},on:{"update:returnValue":function(t){return e.$set(n.item,"yValue",t)},"update:return-value":function(t){return e.$set(n.item,"yValue",t)}},scopedSlots:e._u([{key:"input",fn:function(){return[t("v-text-field",{attrs:{label:"Edit","single-line":"",counter:""},model:{value:n.item.yValue,callback:function(t){e.$set(n.item,"yValue",t)},expression:"props.item.yValue"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.item.yValue)+"\n ")])]}},{key:"item.color",fn:function(n){return[t("v-edit-dialog",{attrs:{"return-value":n.item.color},on:{"update:returnValue":function(t){return e.$set(n.item,"color",t)},"update:return-value":function(t){return e.$set(n.item,"color",t)}},scopedSlots:e._u([{key:"input",fn:function(){return[t("v-select",{attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},model:{value:n.item.color,callback:function(t){e.$set(n.item,"color",t)},expression:"props.item.color"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.item.color)+"\n ")])]}},{key:"footer.prepend",fn:function(){return[t("v-btn",{staticStyle:{"margin-top":"3px"},attrs:{small:""},on:{click:e.addLine}},[e._v("\n New Horizontal Line\n ")]),e._v("\n Click to edit values, Enter to save\n "),t("v-spacer")]},proxy:!0},{key:"item.actions",fn:function({item:n}){return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:a}){return[t("div",e._g(e._b({},"div",a,!1),s),[t("v-btn",{attrs:{icon:"","data-test":`delete-line-icon${n.lineId}`},on:{click:()=>e.removeLine(n)}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no horizontal lines on this graph")])]},proxy:!0}])})],1)]),e._v(" "),t("v-tab-item",{key:2,staticClass:"tab",attrs:{eager:"true"}},[t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId","data-test":"edit-graph-items",headers:e.itemHeaders,items:e.editItems,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:a}){return[t("div",e._g(e._b({},"div",a,!1),s),[t("v-btn",{attrs:{icon:"","data-test":`delete-item-icon${n.itemId}`},on:{click:()=>e.removeItems([n])}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[e._v(" "),t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no items on this graph")])]},proxy:!0}])})],1)],1),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Errors")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{staticClass:"pb-2",attrs:{readonly:"","hide-details":"",label:"Graph Title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),e._v(" "),t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),e._v(" "),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),e._v(" "),e.editGraphMenu?t("v-menu",{attrs:{"position-x":e.editGraphMenuX,"position-y":e.editGraphMenuY,absolute:"","offset-y":""},model:{value:e.editGraphMenu,callback:function(t){e.editGraphMenu=t},expression:"editGraphMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){e.editGraph=!0}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("\n Edit "+e._s(e.title)+"\n ")])],1)],1)],1):e._e(),e._v(" "),e.editItem?t("graph-edit-item-dialog",{attrs:{colors:e.colors,item:e.selectedItem},on:{changeColor:e.changeColor,changeLimits:e.changeLimits,cancel:function(t){e.editItem=!1},close:e.closeEditItem},model:{value:e.editItem,callback:function(t){e.editItem=t},expression:"editItem"}}):e._e(),e._v(" "),e.itemMenu?t("v-menu",{attrs:{"position-x":e.itemMenuX,"position-y":e.itemMenuY,absolute:"","offset-y":""},model:{value:e.itemMenu,callback:function(t){e.itemMenu=t},expression:"itemMenu"}},[t("v-list",{attrs:{nav:"",dense:""}},[t("v-subheader",[e._v("\n "+e._s(e.selectedItem.targetName)+"\n "+e._s(e.selectedItem.packetName)+"\n "+e._s(e.selectedItem.itemName)+"\n ")]),e._v(" "),t("v-list-item",{on:{click:function(t){e.editItem=!0}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-pencil")])],1),e._v(" "),t("v-list-item-content",[t("v-list-item-title",[e._v(" Edit ")])],1)],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.removeItems([e.selectedItem])}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-delete")])],1),e._v(" "),t("v-list-item-content",[t("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),e._v(" "),e.legendMenu?t("v-menu",{attrs:{"position-x":e.legendMenuX,"position-y":e.legendMenuY,absolute:"","offset-y":""},model:{value:e.legendMenu,callback:function(t){e.legendMenu=t},expression:"legendMenu"}},[t("v-list",[t("v-list-item",{on:{click:function(t){return e.moveLegend("top")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Top")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("bottom")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Bottom")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("left")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend Left")])],1),e._v(" "),t("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},a=[],i=(n(9375),n(8605),function(){var e=this,t=e._self._c;return t("div",[t("v-row",[t("v-col",[t("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("v-text-field",e._g({attrs:{label:e.dateLabel,name:`date${Date.now()}`,rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}},n))]}}])})],1),e._v(" "),t("v-col",[t("v-text-field",{attrs:{label:e.timeLabel,name:`time${Date.now()}`,rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1)],1)}),l=[],r=n(6375),o=n(4554),c=n(2509),d=n(3769);const u={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data(){return{date:null,time:null,rules:{required:e=>!!e||"Required",date:e=>{if(!e)return!0;try{return(0,r.f)((0,o.qg)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:e=>{if(!e)return!0;try{return(0,r.f)((0,o.qg)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules(){let e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules(){let e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created(){if(this.dateTime){let e=(0,c.a)(this.dateTime/1e6);this.date=(0,d.GP)(e,"yyyy-MM-dd"),this.time=(0,d.GP)(e,"HH:mm:ss")}},methods:{onChange(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},m=u;var h=n(2401),p=(0,h.A)(m,i,l,!1,null,null,null);const v=p.exports;var _=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"400"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-card-title",{staticClass:"mb-2"},[e._v("Edit Item")]),e._v(" "),t("v-card-text",[t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Value Type",items:e.valueTypes},model:{value:e.editItem.valueType,callback:function(t){e.$set(e.editItem,"valueType",t)},expression:"editItem.valueType"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduction",items:e.reduction},model:{value:e.editItem.reduced,callback:function(t){e.$set(e.editItem,"reduced",t)},expression:"editItem.reduced"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Reduced Type",items:e.reducedTypes,disabled:"DECOM"===e.currentReduced},model:{value:e.editItem.reducedType,callback:function(t){e.$set(e.editItem,"reducedType",t)},expression:"editItem.reducedType"}}),e._v(" "),t("v-select",{staticClass:"mb-2",attrs:{outlined:"","hide-details":"",label:"Color",items:e.colors},on:{change:function(t){return e.$emit("changeColor",t)}},model:{value:e.editItem.color,callback:function(t){e.$set(e.editItem,"color",t)},expression:"editItem.color"}}),e._v(" "),e.limitsNames.length>1?t("div",[t("v-select",{attrs:{outlined:"","hide-details":"",label:"Display Limits",items:e.limitsNames},on:{change:function(t){return e.$emit("changeLimits",e.limits[e.limitsName])}},model:{value:e.limitsName,callback:function(t){e.limitsName=t},expression:"limitsName"}}),e._v(" "),t("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e()],1),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(t){return e.$emit("cancel")}}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(t){return e.$emit("close",e.editItem)}}},[e._v("\n Ok\n ")])],1)],1)],1)},A=[],g=n(4364);const f={props:{value:Boolean,item:{type:Object,required:!0},colors:{type:Array,required:!0}},data:function(){return{editItem:null,limitsName:"NONE",limits:{NONE:[]},valueTypes:["CONVERTED","RAW"],reduction:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],reducedTypes:["MIN","MAX","AVG","STDDEV"]}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},limitsNames(){return Object.keys(this.limits)}},async created(){this.editItem={...this.item},await this.api,this.api=(new g.x).get_item(this.item.targetName,this.item.packetName,this.item.itemName).then((e=>{for(const[t,n]of Object.entries(e.limits))Object.keys(n).includes("red_low")&&this.$set(this.limits,t,Object.values(n));this.limitsName=Object.keys(this.limits).find((e=>this.limits[e]+""===this.editItem.limits+""))}))}},b=f;var C=(0,h.A)(b,_,A,!1,null,null,null);const y=C.exports;var w=n(458),x=n(5914),k=n.n(x),N=n(7752);N.D$.staleThreshold=10;class E{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,t,n={},s={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((t=>{if(t&&OpenC3Auth.setTokens(),null==this._cable){let e=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=N.Be(e)}return this._cable.subscriptions.create({channel:e,...s},n)}))}recordPing(){this._cable.connection.monitor.recordPing()}}n(9037);const I={components:{DateTimeChooser:v,GraphEditItemDialog:y},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data(){return{tab:0,itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],lines:[],lineHeaders:[{text:"Y Value",value:"yValue"},{text:"Color",value:"color"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new E,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["#00c7cb","#938bdb","#4dacff","lime","darkorange","red","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white","black"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];let e=0;return this.items.map((t=>(e+=1,{...t,itemId:e})))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created(){this.title=`Graph ${this.id}`;for(const[e,t]of this.items.entries())this.data.push([]),this.indexes[this.subscriptionKey(t)]=e+1,void 0===t.color&&(t.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)},mounted(){const{chartSeries:e,overviewSeries:t}=this.items.reduce(((e,t)=>{const n={spanGaps:!0};return e.chartSeries.push({...n,item:t,label:this.formatLabel(t),stroke:(e,t)=>this.items[t-1].color,width:2,value:(e,t)=>"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(3)}),e.overviewSeries.push({...n}),e}),{chartSeries:[],overviewSeries:[]});let n={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,n={width:this.width,height:this.height,pxAlign:!1,cursor:{show:!1},select:{show:!1},legend:{show:!1},scales:{x:{time:!1}},axes:[{show:!1},{show:!1}],series:[{},{stroke:"white"}]},this.graph=new w.A(n,this.data,document.getElementById(`chart${this.id}`));else{n={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],series:[{label:"Time",value:(e,t)=>null==t?"--":(0,d.GP)((0,c.a)(1e3*t),"yyyy-MM-dd HH:mm:ss")},...e],cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:(e,t,n)=>t=>{"pause"===this.state&&0===e.select.width&&this.$emit("start"),n(t)}}},hooks:{setScale:[(e,t)=>{if("x"===t&&!this.zoomOverview&&this.overview){this.zoomChart=!0;let t=Math.round(this.overview.valToPos(e.scales.x.min,"x")),n=Math.round(this.overview.valToPos(e.scales.x.max,"x"));this.overview.setSelect({left:t,width:n-t}),this.zoomChart=!1}}],setSelect:[e=>{"start"===this.state&&e.select.width>0&&this.$emit("pause")}],ready:[e=>{let t=e.root.querySelector(".u-over");t.addEventListener("contextmenu",(e=>{e.preventDefault(),this.itemMenu=!1,this.legendMenu=!1,this.editGraphMenuX=e.clientX,this.editGraphMenuY=e.clientY,this.editGraphMenu=!0})),t.addEventListener("mouseenter",(e=>{this.$emit("resize")})),t.addEventListener("mouseleave",(e=>{this.$emit("resize")}));let n=e.root.querySelector(".u-legend");n.addEventListener("contextmenu",(t=>{t.preventDefault(),this.editGraphMenu=!1,this.legendMenu=!1,this.itemMenuX=t.clientX,this.itemMenuY=t.clientY;let s=t.target.closest(".u-series"),a=Array.prototype.slice.call(n.childNodes[0].childNodes).indexOf(s),i=e.series[a];i.item?(this.selectedItem=i.item,this.itemMenu=!0):(this.itemMenu=!1,this.legendMenuX=t.clientX,this.legendMenuY=t.clientY,this.legendMenu=!0)}))}]}},this.graph=new w.A(n,this.data,document.getElementById(`chart${this.id}`));const s={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),series:[...t],cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[e=>{if(!this.zoomChart){"start"===this.state&&e.select.width>0&&this.$emit("pause"),this.zoomOverview=!0;let t=e.posToVal(e.select.left,"x"),n=e.posToVal(e.select.left+e.select.width,"x");this.graph.setScale("x",{min:t,max:n}),this.zoomOverview=!1}}]}};this.overview=new w.A(s,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,t){switch(e){case"start":"stop"===t&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,t){this.dataChanged=!0},graphMinY:function(e,t){let n=parseFloat(e);isNaN(n)||(this.graphMinY=n),this.setGraphRange()},graphMaxY:function(e,t){let n=parseFloat(e);isNaN(n)||(this.graphMaxY=n),this.setGraphRange()},graphStartDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){this.subscribe(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){this.updateGraphData(),this.timeout=setTimeout((()=>{this.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"===this.state||!this.dataChanged)return;this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);let e=this.data[0][this.data[0].length-1],t=this.data[0][this.data[0].length-this.pointsGraphed],n=this.data[0][0];n<e-this.secondsGraphed&&(n=e-this.secondsGraphed),t>n&&(n=t),this.graph.setScale("x",{min:n,max:e}),this.dataChanged=!1},addLine(){this.lines.push({yValue:0,color:"white"})},removeLine(e){let t=this.lines.indexOf(e);this.lines.splice(t,1)},formatLabel(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;{let t="";return"CONVERTED"!==e.valueType&&(t+=e.valueType),"DECOM"!==e.reduced&&(""!==t&&(t+=" "),t+=`${e.reduced.split("_")[1]} ${e.reducedType}`),`${e.itemName} (${t})`}},moveLegend:function(e){switch(e){case"bottom":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.remove("top-legend");break;case"top":this.graph.root.classList.remove("side-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("top-legend");break;case"left":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.add("side-legend"),this.graph.root.classList.add("left-legend");break;case"right":this.graph.root.classList.remove("top-legend"),this.graph.root.classList.remove("left-legend"),this.graph.root.classList.add("side-legend");break}this.legendPosition=e,this.resize()},clearErrors:function(){this.errors=[]},editGraphClose:function(){if(this.editGraph=!1,this.needToUpdate){if(null==this.subscription)this.startGraph();else{let e=JSON.parse(JSON.stringify(this.items));this.removeItems(e),setTimeout((()=>{this.addItems(e)}),0)}this.needToUpdate=!1}this.moveLegend(this.legendPosition),this.$emit("edit")},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){let e=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(e=0),this.graph.scales.y.range=(t,n,s)=>{let a=n;(this.graphMinY||0===this.graphMinY)&&(a=this.graphMinY);let i=s;return(this.graphMaxY||0===this.graphMaxY)&&(i=this.graphMaxY),w.A.rangeNum(a,i,e,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((e=>{this.subscription=e}))},getSize:function(e){let t=0;const n=document.getElementById("openc3-nav-drawer");n&&(t=n.classList.contains("v-navigation-drawer--open")?n.clientWidth:0);let s=0;if("right"===this.legendPosition||"left"===this.legendPosition){const e=document.getElementsByClassName("u-legend")[0];s=e.clientWidth}const a=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-t-s,i=Math.max(document.documentElement.clientHeight,window.innerHeight||0),l=document.getElementsByClassName("tgt-pkt-item-chooser")[0];let r=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:l&&(r=i-l.clientHeight-r-250,this.fullHeight||(r=r/2+10));let o=a-62;return this.fullWidth||(o=o/2-10),{width:this.width||o,height:this.height||r}},getScales:function(){return{scales:{x:{range(e,t,n){return null==t?[1566453600,1566497660]:[t,n]}},y:{range(e,t,n){return null==t?[-100,100]:w.A.rangeNum(t,n,.1,!0)}}}}},getAxes:function(e){let t="rgba(0, 0, 0, .1)",n="black";return this.$vuetify.theme.dark&&(t="rgba(255, 255, 255, .1)",n="white"),{axes:[{stroke:n,grid:{show:!0,stroke:t,width:2}},{size:80,stroke:n,grid:{show:"overview"!==e,stroke:t,width:2},values(e,t){return(t.some((e=>e>=1e7))||t.every((e=>e<.01)))&&(t=t.map((e=>e.toExponential(3)))),t}}]}},closeEditItem:function(e){this.editItem=!1,(null!==this.graphEndDateTime&&this.selectedItem!==e||this.selectedItem.valueType!==e.valueType||this.selectedItem.reduced!==e.reduced||this.selectedItem.reducedType!==e.reducedType)&&this.changeItem(e)},changeColor:function(e){let t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].color=e,this.selectedItem.color=e,this.graph.root.querySelectorAll(".u-marker")[n].style.borderColor=e},changeLimits:function(e){let t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){return{hooks:{draw:e=>{const{ctx:t,bbox:n}=e,s=e.valToPos(e.scales.y.min,"y",!0),a=e.valToPos(e.scales.y.max,"y",!0),i=e.valToPos(this.limitsValues[0],"y",!0),l=e.valToPos(this.limitsValues[1],"y",!0),r=e.valToPos(this.limitsValues[2],"y",!0),o=e.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach((s=>{e.scales.y.min<=s.yValue&&s.yValue<=e.scales.y.max&&(t.save(),t.beginPath(),t.strokeStyle=s.color,t.lineWidth=2,t.moveTo(n.left,e.valToPos(s.yValue,"y",!0)),t.lineTo(n.left+n.width,e.valToPos(s.yValue,"y",!0)),t.stroke(),t.restore())})),t.save(),t.beginPath(),t.fillStyle="rgba(255,0,0,0.15)",e.scales.y.min<this.limitsValues[0]){let e=i<a?a:i;t.fillRect(n.left,i,n.width,s-e)}if(e.scales.y.max>this.limitsValues[3]){let e=s<o?s:o;t.fillRect(n.left,a,n.width,e-a)}if(t.fillStyle="rgba(255,255,0,0.15)",e.scales.y.min<this.limitsValues[1]&&e.scales.y.max>this.limitsValues[0]){let e=l<a?a:l;t.fillRect(n.left,e,n.width,i-e)}if(e.scales.y.max>this.limitsValues[2]&&e.scales.y.min<this.limitsValues[3]){let e=s<o?s:o,a=s<r?s:r;t.fillRect(n.left,e,n.width,a-e)}if(t.fillStyle="rgba(0,255,0,0.15)",4===this.limitsValues.length){if(e.scales.y.min<this.limitsValues[2]&&e.scales.y.max>this.limitsValues[1]){let e=r<a?a:r,i=s<l?s:l;t.fillRect(n.left,e,n.width,i-e)}}else{const i=e.valToPos(this.limitsValues[4],"y",!0),o=e.valToPos(this.limitsValues[5],"y",!0);if(e.scales.y.min<this.limitsValues[4]&&e.scales.y.max>this.limitsValues[1]){let e=i<a?a:i;t.fillRect(n.left,e,n.width,l-e)}if(e.scales.y.max>this.limitsValues[5]&&e.scales.y.min<this.limitsValues[2]){let e=s<r?s:r,a=s<o?s:o;t.fillRect(n.left,e,n.width,a-e)}t.fillStyle="rgba(0,0,255,0.15)";let c=o<a?a:o,d=s<i?s:i;t.fillRect(n.left,c,n.width,d-c)}t.stroke(),t.restore()}}}},changeItem:function(e){this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((()=>{this.addItems([this.selectedItem])}),0)},addItems:function(e,t="CONVERTED"){for(const s of e){s.valueType||(s.valueType=t),void 0===s.color&&(s.color=this.colors[this.colorIndex]),void 0===s.limits?s.limits=[]:s.limits.length>0&&(this.limitsValues=s.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(s);const e=this.data.length;this.graph.addSeries({spanGaps:!0,item:s,label:this.formatLabel(s),stroke:(e,t)=>this.items[t-1].color,width:2,value:(e,t)=>"string"===typeof t||isNaN(t)?"NaN":null==t?"--":Math.abs(t)<.01||Math.abs(t)>=1e7?t.toExponential(6):t.toFixed(6)},e),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:(e,t)=>this.items[t-1].color},e);let n=Array(this.data[0].length);this.data.splice(e,0,n),this.indexes[this.subscriptionKey(s)]=e}let n=this.colors.indexOf(e[e.length-1].color);n&&(this.colorIndex=n+1),this.addItemsToSubscription(e),this.$emit("edit")},addItemsToSubscription:function(e=this.items){let t=this.startTime;this.graphStartDateTime&&(t=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((n=>{n&&OpenC3Auth.setTokens(),this.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey),start_time:t,end_time:this.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);for(const t of e.map(this.subscriptionKey)){const e=this.reorderIndexes(t);this.items.splice(e-1,1),this.data.splice(e,1),this.graph.delSeries(e),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(e),this.overview.setData(this.data))}1===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data)),this.$emit("edit")},removeItemsFromSubscription:function(e=this.items){this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){let t=this.indexes[e];for(var n in delete this.indexes[e],this.indexes)this.indexes[n]>t&&(this.indexes[n]-=1);return t},received:function(e){this.cable.recordPing();for(let t=0;t<e.length;t++){let n=e[t].__time/1e9,s=e[0].length;if(0===s||n>e[0][s-1]){for(let e=0;e<this.data.length;e++)this.data[e].push(null);this.set_data_at_index(this.data[0].length-1,n,e[t])}else{let s=k()(this.data[0],n,this.bs_comparator);if(s>=0)this.set_data_at_index(s,n,e[t]);else{let a=-s-1;for(let e=0;e<this.data.length;e++)this.data[e].splice(a,0,null);this.set_data_at_index(a,n,e[t])}}}if(null==this.startTime&&this.data[0][0]){let e=1e9*this.data[0][0];this.$emit("started",e)}this.dataChanged=!0},bs_comparator:function(e,t){return e-t},set_data_at_index:function(e,t,n){this.data[0][e]=t;for(const[s,a]of Object.entries(n)){if("time"===s)continue;let t=this.indexes[s];if(t){let n=this.data[t];if(a?.raw)n[e]=null;else if("string"===typeof a){if(n[e]=null,!s.includes("__RAW")){for(let e of this.items)if(this.subscriptionKey(e)===s){this.selectedItem=e;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else n[e]=a}}},subscriptionKey:function(e){let t=`${e.reduced}__TLM__${e.targetName}__${e.packetName}__${e.itemName}__${e.valueType}`;return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(t+=`__${e.reducedType}`),t}}},S=I;n(9690),n(8358);var T=(0,h.A)(S,s,a,!1,null,"997d7a84",null);const D=T.exports},5181:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"bar",style:e.computedStyle},[t("v-card",{attrs:{"min-height":e.height,"min-width":e.width}},[t("v-system-bar",[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("\n mdi-alert\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Errors ")])])],1),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v("\n mdi-pencil\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Edit Screen ")])]),e._v(" "),e.fixFloated?e._e():t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"float-screen-icon"},on:{click:e.floatScreen}},[e._v("\n "+e._s(e.floated?"mdi-balloon":"mdi-view-grid-outline")+"\n ")])],1)]}}],null,!1,4011884781)},[e._v(" "),t("span",[e._v(" "+e._s(e.floated?"Unfloat Screen":"Float Screen")+" ")])]),e._v(" "),e.floated?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"up-screen-icon"},on:{click:e.upScreen}},[e._v("\n mdi-arrow-up\n ")])],1)]}}],null,!1,3296657168)},[e._v(" "),t("span",[e._v(" Move Screen Up ")])]):e._e(),e._v(" "),e.floated&&e.zIndex>e.minZ?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"down-screen-icon"},on:{click:e.downScreen}},[e._v("\n mdi-arrow-down\n ")])],1)]}}],null,!1,1167902535)},[e._v(" "),t("span",[e._v(" Move Screen Down ")])]):e._e(),e._v(" "),t("v-spacer"),e._v(" "),t("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),e._v(" "),t("v-spacer"),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],attrs:{"data-test":"minimize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-minimize\n ")]),e._v(" "),t("v-icon",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}],attrs:{"data-test":"maximize-screen-icon"},on:{click:e.minMaxTransition}},[e._v("\n mdi-window-maximize\n ")])],1)]}}])},[e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),e._v(" "),e.showClose?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(t){return e.$emit("close-screen")}}},[e._v("\n mdi-close-box\n ")])],1)]}}],null,!1,1921143701)},[e._v(" "),t("span",[e._v(" Close Screen ")])]):e._e()],1),e._v(" "),e.editDialog?e._e():t("v-expand-transition",[t("div",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}],ref:"screen",staticClass:"pa-1",staticStyle:{position:"relative"}},[t("v-overlay",{staticStyle:{"pointer-events":"none"},attrs:{value:0!==e.errors.length,opacity:"0.8",absolute:""}}),e._v(" "),t("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),e._v(" "),e.editDialog?t("edit-screen-dialog",{attrs:{target:e.target,screen:e.screen,definition:e.currentDefinition,keywords:e.keywords,errors:e.errors},on:{save:function(t){return e.saveEdit(t)},cancel:function(t){return e.cancelEdit()},delete:function(t){return e.deleteScreen()}},model:{value:e.editDialog,callback:function(t){e.editDialog=t},expression:"editDialog"}}):e._e(),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.errorDialog,callback:function(t){e.errorDialog=t},expression:"errorDialog"}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card",[t("v-textarea",{staticClass:"errors",attrs:{readonly:"",rows:"13",value:e.error}})],1)],1)],1)},a=[],i=(n(9375),n(9033),n(8903),n(1018),n(1415),n(4448),n(8871),n(6539),n(4293),n(2795)),l=n(3069),r=n(4364),o=n(1649),c=n(5485),d=n.n(c),u=n(9677),m=n.n(u),h=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{persistent:"",width:"75vw"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v("\n mdi-delete\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Delete Screen ")])])],1),e._v(" "),t("v-spacer"),e._v(" "),t("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),e._v(" "),t("v-spacer"),e._v(" "),t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),n),[t("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v("\n mdi-download\n ")])],1)]}}])},[e._v(" "),t("span",[e._v(" Download Screen ")])])],1)],1),e._v(" "),t("v-card-text",[t("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),e._v(" "),t("v-row",{attrs:{"no-gutters":"",align:"center"}},[t("v-btn",{staticClass:"mr-3",attrs:{disabled:!e.file,color:"primary","data-test":"edit-screen-load"},on:{click:e.loadFile}},[e._v("\n Load\n ")]),e._v(" "),t("v-file-input",{attrs:{"truncate-length":"15",accept:".txt",label:"Click to select .txt screen file."},model:{value:e.file,callback:function(t){e.file=t},expression:"file"}})],1),e._v(" "),t("v-row",{staticClass:"mb-2"},[e._v(" Edit the screen definition. ")]),e._v(" "),t("v-row",{staticClass:"mb-2"},[t("pre",{ref:"editor",staticClass:"editor",on:{contextmenu:function(t){return t.preventDefault(),e.showContextMenu.apply(null,arguments)}}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.menuX,"position-y":e.menuY,absolute:"","offset-y":""},model:{value:e.contextMenu,callback:function(t){e.contextMenu=t},expression:"contextMenu"}},[t("v-list",[t("v-list-item",{attrs:{link:""}},[t("v-list-item-title",{on:{click:e.openDocumentation}},[e._v("\n "+e._s(e.docsKeyword)+" documentation\n ")])],1)],1)],1)],1),e._v(" "),e._l(e.editErrors,(function(n,s){return t("v-row",{key:s,staticClass:"my-3"},[t("span",{staticClass:"red--text",domProps:{textContent:e._s(n)}})])})),e._v(" "),t("v-row",[t("span",[e._v("Ctrl-space brings up autocomplete. Right click keywords for\n documentation.")]),e._v(" "),t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(t){return e.$emit("cancel")}}},[e._v("\n Cancel\n ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"edit-screen-save"},on:{click:function(t){e.$emit("save",e.editor.getValue())}}},[e._v("\n Save\n ")])],1)],2)],1)],1)},p=[],v=(n(3165),n(4541),n(4397),n(1412),n(1883),n(7905),n(1841)),_=(n(1136),n(5617),n(6717),n(9946),n(814));n(8605);class A{constructor(){(0,_.A)(this,"getCompletions",(async function(e,t,n,s,a){var i=t.getLine(n.row),l=i.slice(0,n.column),r=l.trimStart().split(/ (?![^<]*>)/),o=this.autocompleteData;r.length>1&&(o=o.find((e=>e.caption===r[0])));var c={},d=!0;if(o&&o["params"]){o["params"].length==r.length-1&&(d=!1);var u=o["params"][r.length-2];if(u["Target name"]){var m=await this.api.get_target_names();o=m.reduce(((e,t)=>(e[t]=1,e)),{})}else if(u["Packet name"]){var h=r[r.length-2],p=await this.api.get_all_tlm(h);o=p.reduce(((e,t)=>(e[t.packet_name]=t.description,e)),{})}else if(u["Item name"]){h=r[r.length-3];var v=r[r.length-2];v=await this.api.get_tlm(h,v);o=v.items.reduce(((e,t)=>(e[t.name]=t.description,e)),{})}else o=u;c=Object.keys(o||{}).map((e=>{var t={value:e+(d?" ":""),command:d&&"startAutocomplete"};return"string"===typeof o[e]&&(t["meta"]=o[e]),t}))}else c=o;a(null,c)})),i.A.get("/openc3-api/autocomplete/data/screen").then((e=>{this.autocompleteData=e.data})),this.api=new r.x}}const g={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},errors:{type:Array,default:()=>[]}},data(){return{file:null,docsKeyword:"",contextMenu:!1,menuX:0,menuY:0}},computed:{editErrors:function(){if(""===this.definition&&!this.file)return["Input can not be blank."];if(0!==this.errors.length){let e=new Set,t=[];for(const n of this.errors){if(e.has(n.message))continue;let s=`At ${n.lineNumber}: (${n.line}) ${n.message}.`;n.usage&&(s+=` Usage: ${n.usage}`),t.push(s),e.add(n.message)}return t}return[]},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted:function(){this.editor=v.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");const e=this.buildScreenMode();this.editor.session.setMode(new e),this.editor.session.setTabSize(2),this.editor.session.setUseWrapMode(!0),this.editor.$blockScrolling=1/0,this.editor.setOption("enableBasicAutocompletion",!0),this.editor.setOption("enableLiveAutocompletion",!0),this.editor.completers=[new A],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeDestroy(){this.editor.destroy(),this.editor.container.remove()},methods:{showContextMenu:function(e){this.menuX=e.pageX,this.menuY=e.pageY;var t=this.editor.getCursorPosition(),n=this.editor.session.getTokenAt(t.row,t.column);if(n){var s=n.value.trim();s.includes(" ")?this.docsKeyword=s.split(" ")[0]:this.docsKeyword=s,this.contextMenu=!0}},openDocumentation(){window.open(`${window.location.origin}/tools/staticdocs/docs/configuration/telemetry-screens#${this.docsKeyword.toLowerCase()}`,"_blank")},buildScreenMode(){var e=v.require("ace/lib/oop"),t=v.require("ace/mode/text_highlight_rules").TextHighlightRules;let n=this.keywords.join("|");var s=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"constant.numeric",regex:"\\b\\d+(?:\\.\\d+)?\\b"},{token:"keyword",regex:new RegExp(`^\\s*(${n})\\b`)}]},this.normalizeRules()};e.inherits(s,t);var a=function(){this.HighlightRules=s},i=v.require("ace/mode/text").Mode;return e.inherits(a,i),function(){this.$id="ace/mode/openc3"}.call(a.prototype),a},downloadScreen:function(){const e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download",`${this.screen.toLowerCase()}.txt`),t.click()},loadFile:function(){const e=new FileReader;e.readAsText(this.file);const t=this;e.onload=function(){t.editor.setValue(e.result),t.file=null}},deleteScreen:function(){this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((e=>{this.$emit("delete")}))}}},f=g;n(2605),n(7613);var b=n(2401),C=(0,b.A)(f,h,p,!1,null,"2f59da98",null);const y=C.exports,w=20,x=n(7448);x.keys().forEach((e=>{const t=x(e),n=d()(m()(e.split("/").pop().replace(/\.\w+$/,"")));o["default"].component(n,t.default||t)}));const k={components:{EditScreenDialog:y},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:()=>[]},initialFloated:{type:Boolean,default:!1},initialTop:{type:Number,default:0},initialLeft:{type:Number,default:0},initialZ:{type:Number,default:0},minZ:{type:Number,default:0},fixFloated:{type:Boolean,default:!1},count:{type:Number,default:0},showClose:{type:Boolean,default:!0}},data(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,configError:!1,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,cacheTimeout:.1,globalSettings:[],substitute:!1,original_target_name:null,force_substitute:!1,pollingPeriod:1,errors:[],errorDialog:!1,screenKey:null,dragX:0,dragY:0,floated:this.initialFloated,top:this.initialTop,left:this.initialLeft,zIndex:this.initialZ,changeCounter:0,screenItems:[],screenValues:{},updateCounter:0}},watch:{count:{handler(e,t){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){let e=new Set,t="";for(const n of this.errors){if(e.has(n.message))continue;let s=`${n.time}: (${n.type}) ${n.message}\n`;t+=s,e.add(n.message)}return t}return null},computedStyle(){let e={};return this.floated&&(e["position"]="absolute",e["top"]=this.top+"px",e["left"]=this.left+"px"),e}},errorCaptured(e,t,n){return this.errors.length<w&&(e.usage?this.errors.push({type:"usage",message:e.message,usage:e.usage,line:e.line,lineNumber:e.lineNumber,time:(new Date).getTime()}):this.errors.push({type:"error",message:e,time:(new Date).getTime()}),this.configError=!0),!1},created(){this.api=new r.x,this.configParser=new l.R,this.parseDefinition(),this.screenKey=Math.floor(1e6*Math.random())},mounted(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},destroyed(){null!=this.updater&&(clearInterval(this.updater),this.updater=null)},methods:{open(e,t){this.$parent.showScreen(e,t)},close(e,t){this.$parent.closeScreenByName(e,t)},closeAll(){this.$parent.closeAll()},clearErrors:function(){this.errors=[],this.configError=!1},updateRefreshInterval:function(){let e=1e3*this.pollingPeriod;this.updater&&clearInterval(this.updater),this.updater=setInterval((()=>{this.update()}),e)},parseDefinition:function(){if(this.clearErrors(),this.namedWidgets={},this.layoutStack=[],this.dynamicWidgets=[],this.layoutStack.push({type:"VerticalWidget",parameters:[],widgets:[]}),this.currentLayout=this.layoutStack[this.layoutStack.length-1],this.configParser.parse_string(this.currentDefinition,"",!1,!0,((e,t,n,s)=>{if(e)switch(e){case"SCREEN":this.configParser.verify_num_parameters(3,4,`${e} <Width or AUTO> <Height or AUTO> <Polling Period>`),this.width=parseInt(t[0]),this.height=parseInt(t[1]),this.pollingPeriod=parseFloat(t[2]);break;case"END":this.configParser.verify_num_parameters(0,0,`${e}`),this.layoutStack.pop(),this.currentLayout=this.layoutStack[this.layoutStack.length-1];break;case"STALE_TIME":this.configParser.verify_num_parameters(1,1,`${e} <Time (s)>`),this.staleTime=parseInt(t[0]);break;case"SETTING":case"SUBSETTING":const a=this.currentLayout.widgets[this.currentLayout.widgets.length-1]??this.currentLayout;a.settings.push(t);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":this.globalSettings.push(t);break;default:this.processWidget(e,t,n,s);break}})),"undefined"===typeof this.layoutStack[0]){let e=[],t=[];for(const n of this.dynamicWidgets)e.push(n.name),t.push(n.lineNumber);this.errors.length<w&&(this.errors.push({type:"usage",message:`Unknown widget! Are these widgets: ${e.join(",")}?`,lineNumber:t.join(","),time:(new Date).getTime()}),this.configError=!0),this.layoutStack[0]={type:"VerticalWidget",parameters:[],widgets:[]}}else this.applyGlobalSettings(this.layoutStack[0].widgets)},getNamedWidget:function(e){return this.namedWidgets[e]},get_named_widget:function(e){return this.namedWidgets[e]},setNamedWidget:function(e,t){this.namedWidgets[e]=t},openEdit:function(){this.backup=this.currentDefinition.repeat(1),this.editDialog=!0},upScreen:function(){this.zIndex+=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},downScreen:function(){this.zIndex>this.minZ&&(this.zIndex-=1,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex]))},floatScreen:function(){if(this.floated)this.$refs.bar.onmousedown=null,this.$refs.bar.parentElement.parentElement.style="z-index: 0",this.floated=!1,this.$emit("unfloat-screen",[this.floated,this.top,this.left,this.zIndex]);else{let e=this.$refs.bar.parentElement.parentElement.parentElement.getBoundingClientRect(),t=this.$refs.bar.getBoundingClientRect();this.top=t.top-e.top-5,this.left=t.left-e.left-5,this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex,this.floated=!0,this.$emit("float-screen",[this.floated,this.top,this.left,this.zIndex])}},dragMouseDown:function(e){e=e||window.event,e.preventDefault(),this.dragX=e.clientX,this.dragY=e.clientY,document.onmouseup=this.closeDragElement,document.onmousemove=this.elementDrag},elementDrag:function(e){e=e||window.event,e.preventDefault();let t=this.dragX-e.clientX,n=this.dragY-e.clientY;this.dragX=e.clientX,this.dragY=e.clientY,this.top=this.$refs.bar.offsetTop-n,this.left=this.$refs.bar.offsetLeft-t,this.$emit("drag-screen",[this.floated,this.top,this.left,this.zIndex])},closeDragElement:function(){document.onmouseup=null,document.onmousemove=null},rerender:function(){this.parseDefinition(),this.updateRefreshInterval(),this.screenKey=Math.floor(1e6*Math.random()),this.$nextTick((function(){this.clearErrors(),this.$emit("edit-screen")}))},cancelEdit:function(){this.file=null,this.editDialog=!1,this.currentDefinition=this.backup,this.rerender()},saveEdit:function(e){this.editDialog=!1,this.currentDefinition=e,this.rerender(),this.$nextTick((function(){i.A.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)}))},deleteScreen:function(){this.editDialog=!1,i.A.delete(`/openc3-api/screen/${this.target}/${this.screen}`).then((e=>{this.$emit("delete-screen")}))},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-screen")},processWidget:function(e,t,n,s){var a=null;"NAMED_WIDGET"===e&&(this.configParser.verify_num_parameters(2,null,`${e} <Widget Name> <Widget Type> <Widget Settings... (optional)>`),a=t[0].toUpperCase(),e=t[1].toUpperCase(),t=t.slice(2,t.length));const i=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget";let l=[];if(null!==a&&l.push(["NAMED_WIDGET",a,this]),"VERTICAL"===e||"VERTICALBOX"===e||"HORIZONTAL"===e||"HORIZONTALBOX"===e||"MATRIXBYCOLUMNS"===e||"TABBOOK"===e||"TABITEM"===e||"CANVAS"===e||"RADIOGROUP"===e||"SCROLLWINDOW"===e){const e={type:i,parameters:t,settings:l,widgets:[]};this.layoutStack.push(e),this.currentLayout.widgets.push(e),this.currentLayout=e}else if(l.push(["__SCREEN__",this]),o["default"].options.components[i])this.currentLayout.widgets.push({type:i,target:this.target,parameters:t,settings:l,line:n,lineNumber:s});else{let e={type:"DynamicWidget",target:this.target,parameters:t,settings:l,name:i,line:n,lineNumber:s};this.currentLayout.widgets.push(e),this.dynamicWidgets.push(e)}},applyGlobalSettings:function(e){e.forEach((e=>{this.globalSettings.forEach((t=>{e.type.toLowerCase()===t[0].toLowerCase()+"widget"&&e.settings.push(t.slice(1))})),e.widgets&&this.applyGlobalSettings(e.widgets)}))},update:function(){0!==this.screenItems.length&&!1===this.configError&&this.api.get_tlm_values(this.screenItems,this.staleTime,this.cacheTimeout).then((e=>{this.clearErrors(),this.updateValues(e)})).catch((e=>{let t=JSON.stringify(e,null,2);t.includes("no response received")||(this.configError=!0),this.errors.find((e=>e.message===t))||this.errors.length<w&&this.errors.push({type:"error",message:t,time:(new Date).getTime()})}))},updateValues:function(e){this.updateCounter+=1;for(let t=0;t<e.length;t++)e[t].push(this.updateCounter),o["default"].set(this.screenValues,this.screenItems[t],e[t])},addItem:function(e){this.screenItems.push(e),o["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){let t=this.screenItems.indexOf(e);this.screenItems.splice(t,1)}}},N=k;n(308);var E=(0,b.A)(N,s,a,!1,null,"ff31ea44",null);const I=E.exports},124:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pt-4 tgt-pkt-item-chooser"},[t("v-row",[t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-target"}},[t("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",outlined:"",items:e.targetNames,"item-text":"label","item-value":"value"},on:{change:e.targetNameChanged},model:{value:e.selectedTargetName,callback:function(t){e.selectedTargetName=t},expression:"selectedTargetName"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-packet"}},[t("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",outlined:"",disabled:e.packetsDisabled||e.autocompleteDisabled,items:e.packetNames,"item-text":"label","item-value":"value"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(t){e.selectedPacketName=t},expression:"selectedPacketName"}})],1),e._v(" "),e.chooseItem?t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"select-item"}},[t("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",outlined:"",disabled:e.itemsDisabled||e.autocompleteDisabled,items:e.itemNames,"item-text":"label","item-value":"value"},on:{change:function(t){return e.itemNameChanged(t)}},model:{value:e.selectedItemName,callback:function(t){e.selectedItemName=t},expression:"selectedItemName"}})],1):e._e(),e._v(" "),e.itemIsArray()?t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"array-index"}},[t("v-combobox",{attrs:{label:"Array Index","hide-details":"",dense:"",outlined:"",disabled:e.itemsDisabled||e.autocompleteDisabled,items:e.arrayIndexes(),"item-text":"label","item-value":"value"},on:{change:function(t){return e.indexChanged(t)}},model:{value:e.selectedArrayIndex,callback:function(t){e.selectedArrayIndex=t},expression:"selectedArrayIndex"}})],1):e._e(),e._v(" "),e.buttonText?t("v-col",{staticStyle:{"max-width":"0px"},attrs:{cols:e.colSize}},[t("v-btn",{attrs:{disabled:e.buttonDisabled,block:"",color:"primary","data-test":"select-send"},on:{click:e.buttonPressed}},[e._v("\n "+e._s(e.actualButtonText)+"\n ")])],1):e._e()],1),e._v(" "),e.selectTypes?t("v-row",[t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"data-type"}},[t("v-autocomplete",{attrs:{label:"Value Type","hide-details":"",dense:"",outlined:"",items:e.valueTypes},model:{value:e.selectedValueType,callback:function(t){e.selectedValueType=t},expression:"selectedValueType"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"reduced"}},[t("v-autocomplete",{attrs:{label:"Reduced","hide-details":"",dense:"",outlined:"",items:e.reductionModes},model:{value:e.selectedReduced,callback:function(t){e.selectedReduced=t},expression:"selectedReduced"}})],1),e._v(" "),t("v-col",{staticClass:"select",attrs:{cols:e.colSize,"data-test":"reduced-type"}},[t("v-autocomplete",{attrs:{label:"Reduced Type","hide-details":"",dense:"",outlined:"",disabled:"DECOM"===e.selectedReduced,items:e.reducedTypes},model:{value:e.selectedReducedType,callback:function(t){e.selectedReducedType=t},expression:"selectedReducedType"}})],1),e._v(" "),t("v-col",{staticStyle:{"max-width":"0px"},attrs:{cols:e.colSize}})],1):e._e(),e._v(" "),t("v-row",{staticClass:"pt-1",attrs:{"no-gutters":""}},[e.hazardous?t("v-col",{staticClass:"openc3-yellow",attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" (HAZARDOUS)")]):t("v-col",{attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description)+" ")])],1)],1)},a=[],i=(n(9375),n(8605),n(7534),n(4364));const l={props:{allowAll:{type:Boolean,default:!1},allowAllTargets:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},selectTypes:{type:Boolean,default:!1},mode:{type:String,default:"tlm",validator:e=>["cmd","tlm"].includes(e)},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data(){return{targetNames:[],selectedTargetName:this.initialTargetName?.toUpperCase(),packetNames:[],selectedPacketName:this.initialPacketName?.toUpperCase(),itemNames:[],selectedItemName:this.initialItemName?.toUpperCase(),valueTypes:["CONVERTED","RAW"],selectedValueType:"CONVERTED",reductionModes:[{text:"NONE",value:"DECOM"},{text:"REDUCED_MINUTE",value:"REDUCED_MINUTE"},{text:"REDUCED_HOUR",value:"REDUCED_HOUR"},{text:"REDUCED_DAY",value:"REDUCED_DAY"}],selectedArrayIndex:null,selectedReduced:"DECOM",reducedTypes:["MIN","MAX","AVG","STDDEV"],selectedReducedType:"AVG",description:"",hazardous:!1,internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created(){this.internalDisabled=!0,this.api=new i.x,this.api.get_target_names().then((e=>{this.targetNames=e.flatMap((e=>"UNKNOWN"==e?[]:{label:e,value:e})),this.allowAllTargets&&this.targetNames.unshift(this.ALL),this.selectedTargetName||(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),this.updatePackets(),this.unknown&&this.targetNames.push(this.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},autocompleteDisabled:function(){return this.disabled||this.internalDisabled},buttonDisabled:function(){return this.disabled||this.internalDisabled||null===this.selectedTargetName||null===this.selectedPacketName||null===this.selectedItemNameWIndex},colSize:function(){return!!this.vertical&&12},selectedItemNameWIndex:function(){return null!==this.selectedArrayIndex&&this.selectedArrayIndex!==this.ALL.label?`${this.selectedItemName}[${this.selectedArrayIndex}]`:this.selectedItemName}},watch:{mode:function(e,t){this.selectedPacketName=null,this.selectedItemName=null,this.updatePackets()}},methods:{updatePackets:function(){if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.UNKNOWN.value),void(this.description="UNKNOWN");if("ALL"===this.selectedTargetName)return this.packetNames=[this.ALL],this.selectedPacketName=this.packetNames[0].value,this.updatePacketDetails(this.ALL.value),void(this.description="ALL");this.internalDisabled=!0;const e="tlm"===this.mode?"get_all_tlm_names":"get_all_cmd_names";this.api[e](this.selectedTargetName).then((e=>{this.packetNames=e.map((e=>({label:e,value:e}))),this.allowAll&&this.packetNames.unshift(this.ALL),this.selectedPacketName||(this.selectedPacketName=this.packetNames[0].value),this.updatePacketDetails(this.selectedPacketName);const t=this.packetNames.find((e=>e.value===this.selectedPacketName));t&&this.chooseItem&&this.updateItems(),this.internalDisabled=!1}))},updateItems:function(){if("ALL"===this.selectedPacketName)return;this.internalDisabled=!0;const e="tlm"===this.mode?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then((e=>{this.itemNames=e.items.map((e=>{let t=e.name;return"DERIVED"==e.data_type&&(t+=" *"),[{label:t,value:e.name,description:e.description,array:e.array_size/e.bit_size}]})).reduce(((e,t)=>e.concat(t)),[]),this.itemNames.sort(((e,t)=>e.label>t.label?1:-1)),this.allowAll&&this.itemNames.unshift(this.ALL),this.selectedItemName||(this.selectedItemName=this.itemNames[0].value),this.description=this.itemNames[0].description,this.itemIsArray(),this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}),this.internalDisabled=!1}))},itemIsArray:function(){let e=this.itemNames.findIndex((e=>e.value===this.selectedItemName));return-1===e||isNaN(this.itemNames[e].array)?(this.selectedArrayIndex=null,!1):(null===this.selectedArrayIndex&&(this.selectedArrayIndex=0),!0)},arrayIndexes:function(){let e=this.itemNames.findIndex((e=>e.value===this.selectedItemName)),t=[...Array(this.itemNames[e].array).keys()];return this.allowAll&&t.unshift(this.ALL.label),t},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",null!==e&&this.updatePackets()},packetNameChanged:function(e){this.selectedItemName="",null!==e&&this.updatePacketDetails(e)},updatePacketDetails:function(e){if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;const t=this.packetNames.find((t=>e===t.value));if(t){this.selectedPacketName=t.value;const e="tlm"===this.mode?"get_tlm":"get_cmd";this.api[e](this.selectedTargetName,this.selectedPacketName).then((e=>{this.description=e.description,this.hazardous=e.hazardous}))}}this.chooseItem?this.updateItems():this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},itemNameChanged:function(e){const t=this.itemNames.find((t=>e===t.value));t&&(this.itemIsArray(),this.selectedItemName=t.value,this.description=t.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}))},indexChanged:function(e){this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},buttonPressed:function(){"ALL"===this.selectedPacketName?this.allTargetPacketItems():"ALL"===this.selectedItemName?this.allPacketItems():this.chooseItem?this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemNameWIndex,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})},allTargetPacketItems:function(){this.packetNames.forEach((e=>{if(e===this.ALL)return;const t="tlm"===this.mode?"get_tlm":"get_cmd";this.api[t](this.selectedTargetName,e.value).then((t=>{t.items.forEach((t=>{this.$emit("click",{targetName:this.selectedTargetName,packetName:e.value,itemName:t["name"],valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))}))}))},allPacketItems:function(){this.itemNames.forEach((e=>{e!==this.ALL&&this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:e.value,valueType:this.selectedValueType,reduced:this.selectedReduced,reducedType:this.selectedReducedType})}))}}},r=l;n(8205);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"9797b8ec",null);const d=c.exports},5751:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var s=function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{"align-self":"end"}},[t("span",{staticClass:"app-title mr-2"},[e._v(e._s(e.title))])])],1),e._v(" "),t("v-row",{staticClass:"flex-nowrap",attrs:{dense:""}},e._l(e.menus,(function(n,s){return t("v-menu",{key:s,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:a}){return[t("v-btn",e._g(e._b({staticClass:"mx-1 menu-button",attrs:{outlined:"","data-test":e.formatDT(`${e.title} ${n.label}`)}},"v-btn",a,!1),s),[t("span",{domProps:{textContent:e._s(n.label)}}),e._v(" "),t("v-icon",{staticClass:"myicon",attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(s,a){return[s.divider?t("v-divider",{key:a}):s.subMenu&&s.subMenu.length>0?t("div",{key:a},[t("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("v-list-item",e._g(e._b({key:a,attrs:{disabled:s.disabled}},"v-list-item",i,!1),n),[s.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:s.disabled}},[e._v(e._s(s.icon))])],1):e._e(),e._v(" "),s.radio||s.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(s.disabled?"opacity: 0.2":"")},[e._v(e._s(s.label)+"\n ")]),e._v(" "),t("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",e._l(s.subMenu,(function(n,s){return t("v-list-item",{key:s,on:{click:function(t){return e.subMenuClick(n)}}},[n.icon?t("v-list-item-icon",[t("v-icon",[e._v(e._s(n.icon))])],1):e._e(),e._v(" "),t("v-list-item-title",[e._v(e._s(n.label))])],1)})),1)],1)],1):t("v-list-item",{key:a,attrs:{disabled:s.disabled,"data-test":e.formatDT(`${e.title} ${n.label} ${s.label}`)},on:{click:function(e){return s.command(s)}}},[s.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:s.label,value:s.label}})],1):e._e(),e._v(" "),s.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:s.label},model:{value:s.checked,callback:function(t){e.$set(s,"checked",t)},expression:"option.checked"}})],1):e._e(),e._v(" "),s.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:s.disabled}},[e._v(e._s(s.icon))])],1):e._e(),e._v(" "),s.radio||s.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(s.disabled?"opacity: 0.2":"")},[e._v(e._s(s.label))])],1)]}))],2)],1)],1)})),1)],1)},a=[];n(4293),n(8715);const i={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()},subMenuClick(e){e.command(e),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},l=i;n(1e3);var r=n(2401),o=(0,r.A)(l,s,a,!1,null,"57d4fdd2",null);const c=o.exports},1951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"array-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,s){return t("v-list-item",{key:s,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],i=n(2967),l=n(9821);n(9471);const r={components:{DetailsDialog:l.A},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[i.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var t="",n=" ",s="\n",a=0;if(Array.isArray(e)){for(const i of e)this.formatter&&"nil"!==this.formatter?.toLowerCase()?t+=sprintf(this.formatter,i):t+=i,a+=1,a%this.itemsPerRow===0?(a=0,t+=s):t+=n;return t.trim()}return e}}},o=r;n(6251);var c=n(2401),d=(0,c.A)(o,s,a,!1,null,"4c83f4c3",null);const u=d.exports},6931:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"block-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","no-resize":"","hide-details":"",width:e.width,height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,s){return t("v-list-item",{key:s,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],i=n(2967),l=n(9821);n(9471);const r={components:{DetailsDialog:l.A},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[i.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){var e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){var t="";if(e&&e.raw){var n=" ",s="\n",a=0,i=0;const l=this.bytesPerWord*this.wordsPerRow;for(const r of e.raw)this.addrFormat&&0===a&&(t+=sprintf(this.addrFormat,i),i+=l),t+=sprintf(this.formatter,r),a+=1,a%l===0?(a=0,t+=s):a%this.bytesPerWord===0&&(t+=n)}else t=e;return t}}},o=r;n(2272);var c=n(2401),d=(0,c.A)(o,s,a,!1,null,"42f141dc",null);const u=d.exports},4814:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var s=function(){var e=this,t=e._self._c;return t("div",[t("v-btn",{staticClass:"ma-1",style:e.computedStyle,attrs:{color:"primary"},on:{click:e.onClick}},[e._v("\n "+e._s(e.buttonText)+"\n ")]),e._v(" "),t("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(t){e.displaySendHazardous=t},expression:"displaySendHazardous"}},[t("v-card",[t("v-card-title",[e._v("Hazardous")]),e._v(" "),t("v-card-text",[t("div",{staticClass:"mx-1"},[t("v-row",{staticClass:"my-2"},[t("span",[e._v(" Warning: Command is Hazardous. Send? ")])]),e._v(" "),t("v-row",[t("v-spacer"),e._v(" "),t("v-btn",{attrs:{outlined:""},on:{click:e.cancelHazardousCmd}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"primary mx-1",on:{click:e.sendHazardousCmd}},[e._v("\n Send\n ")])],1)],1)])],1)],1)],1)},a=[],i=n(47);const l=i.A;var r=n(2401),o=(0,r.A)(l,s,a,!1,null,null,null);const c=o.exports},2430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("svg",{attrs:{id:"canvas",width:e.width,height:e.height}},e._l(e.widgets,(function(n,s){return t(n.type,e._g({key:s,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},a=[],i=n(9843);const l={mixins:[i.A],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},r=l;n(1497);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"17947dc7",null);const d=c.exports},6614:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("circle",{attrs:{cx:e.parameters[0],cy:e.parameters[1],r:e.parameters[3],fill:e.parameters[2]}})},a=[],i=n(9729);const l={mixins:[i.A]},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},8239:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return e.imageUrl?t("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height},on:{click:e.clickHandler}}):e._e()},a=[],i=n(9729),l=n(7163);const r={mixins:[i.A,l.A],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"}},created:function(){this.settings.forEach((e=>{"SCREEN"===e[0]&&(this.screenTarget=e[1],this.screenName=e[2])})),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((e=>{this.imageUrl=e}))},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},o=r;var c=n(2401),d=(0,c.A)(o,s,a,!1,null,null,null);const u=d.exports},4653:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("g",[e._l(e.images,(function(n){return t("image",{directives:[{name:"show",rawName:"v-show",value:n.value==e.selectedValue,expression:"image.value == selectedValue"}],key:n.value,attrs:{href:n.url,x:n.x,y:n.y,width:n.width,height:n.height},on:{click:e.clickHandler}})})),e._v(" "),e.defaultImage?t("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height},on:{click:e.clickHandler}}):e._e()],2)},a=[],i=n(9729),l=n(7163);const r={mixins:[i.A,l.A],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screen&&this.screen.screenValues[this.valueId]?this.screen.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some((e=>e.value==this.selectedValue))}},created:function(){this.settings.forEach((e=>{"SCREEN"===e[0]&&(this.screenTarget=e[1],this.screenName=e[2])})),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]||"RAW"}`,this.screen&&this.screen.addItem(this.valueId);const e=this.settings.filter((e=>"IMAGE"===e[0])).map((async e=>{let t=e[2];return t.startsWith("http")||(t=await this.getPresignedUrl(t)),{url:t,value:e[1],x:e[3],y:e[4],width:e[5],height:e[6]}}));if(Promise.all(e).then((e=>{this.images=e})),this.parameters[4]){const e={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?`${this.parameters[7]}px`:"100%",height:this.parameters[8]?`${this.parameters[8]}px`:"100%"};let t=this.parameters[4];t.startsWith("http")?this.defaultImage={...e,url:t}:this.getPresignedUrl(t).then((t=>{this.defaultImage={...e,url:t}}))}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},o=r;var c=n(2401),d=(0,c.A)(o,s,a,!1,null,null,null);const u=d.exports},6631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("text",{attrs:{x:e.parameters[0],y:e.parameters[1],fill:e.fillColor}},[e._v("\n "+e._s(e.parameters[2])+"\n")])},a=[],i=n(9729);const l={mixins:[i.A],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},8211:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("text",{attrs:{x:e.parameters[3],y:e.parameters[4],"font-size":e.fontSize,fill:e.fillColor}},[e._v("\n "+e._s(e._value)+"\n")])},a=[],i=n(9729);const l={mixins:[i.A],data(){return{valueId:null}},computed:{_value(){return this.screen?this.screen.screenValues[this.valueId][0]:null},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},4352:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("line",{style:e.calcStyle,attrs:{x1:e.parameters[0],y1:e.parameters[1],x2:e.parameters[2],y2:e.parameters[3]}})},a=[],i=n(9729);const l={mixins:[i.A],computed:{calcStyle(){let e="black";this.parameters[4]&&(e=this.parameters[4]);let t=1;return this.parameters[5]&&(t=this.parameters[5]),"stroke:"+e+";stroke-width:"+t}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},4291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("line",{style:e.calcStyle,attrs:{x1:e.parameters[3],y1:e.parameters[4],x2:e.parameters[5],y2:e.parameters[6]}})},a=[],i=n(9729);const l={mixins:[i.A],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screen&&this.screen.screenValues[this.valueId]&&(e=this.valueMap[this.screen.screenValues[this.valueId][0]]);let t=1;return this.parameters[7]&&(t=this.parameters[7]),"stroke:"+e+";stroke-width:"+t}},created(){this.settings.forEach((e=>{"VALUE_EQ"===e[0]&&(this.valueMap[e[1]]=e[2])}));let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},5733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-checkbox",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},a=[],i=n(9729);const l={mixins:[i.A],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.label=this.parameters[0]},methods:{checked(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},3835:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",outlined:"",items:e.items},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},a=[],i=n(9729);const l={mixins:[i.A],data(){return{items:[],value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},3634:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var s=function(){var e=this,t=e._self._c;return t(e.widgetType,e._b({tag:"component"},"component",{...e.$props,...e.$attrs},!1))},a=[];n(7107);const i={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch(e){throw new Error(`Unknown widget: ${this.name}`)}}},l=i;var r=n(2401),o=(0,r.A)(l,s,a,!1,null,null,null);const c=o.exports},2656:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},a=[],i=n(9729),l=n(2932);const r={mixins:[i.A],components:{ValueWidget:l["default"]},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}},o=r;var c=n(2401),d=(0,c.A)(o,s,a,!1,null,null,null);const u=d.exports},2907:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},e._l(e.widgets,(function(n,s){return t(n.type,e._g({key:s,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},a=[],i=(n(9375),n(9843));const l={mixins:[i.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},4812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{staticClass:"boxbanner",style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),e._v(" "),t("horizontal-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},a=[],i=n(2907),l=n(9843);const r={mixins:[l.A],components:{HorizontalWidget:i["default"]}},o=r;n(6395);var c=n(2401),d=(0,c.A)(o,s,a,!1,null,"7935dee2",null);const u=d.exports},9646:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=function(){var e=this,t=e._self._c;return t("hr")},a=[],i=n(2401),l={},r=(0,i.A)(l,s,a,!1,null,null,null);const o=r.exports},527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("iframe",{style:e.computedStyle,attrs:{title:"IFrameWidget",src:e.parameters[0],width:e.width,height:e.height}})},a=[],i=n(9729);const l={mixins:[i.A],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},4259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("img",{style:e.computedStyle,attrs:{src:e.src,alt:e.itemFullName,width:e.parameters[4],height:e.parameters[5]}})},a=[],i=n(9729);const l={mixins:[i.A],data:function(){return{valueId:null,imageData:""}},computed:{src:function(){return`data:image/${this.parameters[3]};base64, ${this.screen.screenValues[this.valueId][0]}`}},created:function(){this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__CONVERTED`,this.screen.addItem(this.valueId)},destroyed:function(){this.screen.deleteItem(this.valueId)}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},4858:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v("\n "+e._s(e.labelText)+"\n")])},a=[],i=n(9729);const l={mixins:[i.A],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},r=l;n(6074);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"19db816e",null);const d=c.exports},8195:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("led-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},a=[],i=n(9729),l=n(4858),r=n(6507);const o={mixins:[i.A],components:{LabelWidget:l["default"],LedWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,a,!1,null,null,null);const m=u.exports},8207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},a=[],i=n(9729),l=n(4858),r=n(6825);const o={mixins:[i.A],components:{LabelWidget:l["default"],ProgressbarWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,a,!1,null,null,null);const m=u.exports},5162:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),t("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},a=[],i=n(9729),l=n(4858),r=n(6115);const o={mixins:[i.A],components:{LabelWidget:l["default"],SparklineWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,a,!1,null,null,null);const m=u.exports},6543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),t("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},a=[],i=(n(4293),n(9729)),l=n(4858),r=n(2932);const o={mixins:[i.A],components:{LabelWidget:l["default"],ValueWidget:r["default"]},computed:{labelName(){let e=this.parameters[2];return e.includes("[[")&&(e=e.replace("[[","[").replace("]]","]")),[e+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,a,!1,null,null,null);const m=u.exports},7623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),e._v(" "),t("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},a=[],i=(n(9375),n(9729)),l=n(4858),r=n(2932),o=n(4364);const c={mixins:[i.A],data(){return{description:"",valueParameters:[]}},components:{LabelWidget:l["default"],ValueWidget:r["default"]},computed:{labelName(){return[this.description]}},created(){this.valueParameters=this.parameters.slice(0,3),void 0!=this.parameters[4]&&this.valueParameters.push(this.parameters[4]),void 0!=this.parameters[5]&&this.valueParameters.push(this.parameters[5]),this.parameters.length>3?this.description=this.parameters[3]:(new o.x).get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.description=e["description"]}))}},d=c;var u=n(2401),m=(0,u.A)(d,s,a,!1,null,null,null);const h=m.exports},1852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.labelValueSettings}}),e._v(" "),t("limitsbar-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":2}})],1)},a=[],i=n(6543),l=n(2835),r=n(9729);const o={mixins:[r.A],components:{LabelvalueWidget:i["default"],LimitsbarWidget:l["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,a,!1,null,null,null);const m=u.exports},2766:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",style:e.computedStyle},[t("label-widget",{attrs:{parameters:[e.parameters[2]],settings:[...e.settings],"widget-index":0}}),e._v(" "),t("limitscolumn-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":2}}),e._v(" "),t("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},a=[],i=n(4858),l=n(2932),r=n(9178),o=n(9729);const c={mixins:[o.A],components:{LabelWidget:i["default"],ValueWidget:l["default"],LimitscolumnWidget:r["default"]}},d=c;var u=n(2401),m=(0,u.A)(d,s,a,!1,null,null,null);const h=m.exports},8756:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("labelvalue-widget",{attrs:{parameters:e.labelValueParameters,settings:e.labelValueSettings}}),e._v(" "),t("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:[...e.settings],"widget-index":2}})],1)},a=[],i=n(6543),l=n(5736),r=n(9729);const o={mixins:[r.A],components:{LabelvalueWidget:i["default"],RangebarWidget:l["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,a,!1,null,null,null);const m=u.exports},6507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"led mt-1",style:e.cssProps})},a=[],i=n(9729);const l={mixins:[i.A],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let t=this.colors[e];return t||(t=this.colors.ANY),t||(t="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":t}}},created(){this.settings.forEach((e=>{switch(e[0]){case"LED_COLOR":this.colors[e[1]]=e[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;n(4572);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"4e68ef1f",null);const d=c.exports},2835:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),e._v(" "),t("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),t("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__blue"}),e._v(" "),t("div",{staticClass:"limitsbar__line"}),e._v(" "),t("div",{staticClass:"limitsbar__arrow"})])}],i=n(2754);const l={mixins:[i.A],data(){return{width:160,height:22}}},r=l;n(9851);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"4b85d27c",null);const d=c.exports},8518:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("div",{staticClass:"led align-self-center",style:e.cssProps}),e._v(" "),t("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},a=[],i=n(2967);const l={mixins:[i.A],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){let e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},r=l;n(8490);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"47f390ae",null);const d=c.exports},9178:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),e._v(" "),t("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),t("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__blue"}),e._v(" "),t("div",{staticClass:"limitsbar__line"}),e._v(" "),t("div",{staticClass:"limitsbar__arrow"})])}],i=n(2754);const l={mixins:[i.A],data(){return{width:22,height:120}},computed:{cssProps:function(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}}}},r=l;n(1723);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"5a19801c",null);const d=c.exports},2653:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,"hide-system-bar":"","hide-overview":""},on:{pause:()=>e.state="pause",start:()=>e.state="start"}})},a=[],i=n(1033),l=n(9410);const r={components:{Graph:l.A},mixins:[i.A]},o=r;var c=n(2401),d=(0,c.A)(o,s,a,!1,null,null,null);const u=d.exports},5043:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("table",{style:e.computedStyle,attrs:{role:"presentation"}},e._l(e.widgetChunks,(function(n,s){return t("tr",{key:"r"+s},e._l(n,(function(n,s){return t("td",{key:"c"+s},[t(n.type,e._g({tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))],1)})),0)})),0)},a=[],i=(n(9375),n(9843)),l=n(5250),r=n.n(l);const o={mixins:[i.A],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return r().chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let e=this.parameters[1];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},c=o;var d=n(2401),u=(0,d.A)(c,s,a,!1,null,null,null);const m=u.exports},6825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("rux-progress",{staticClass:"progress",style:e.computedStyle,attrs:{value:e._value}})},a=[],i=n(9729);const l={mixins:[i.A],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let e=this.value;return null===e&&this.screen&&(e=this.screen.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;n(3519);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"e34552b0",null);const d=c.exports},5993:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-radio",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",label:e.label,value:e.value}})},a=[],i=n(9729);const l={props:{value:{type:Number}},mixins:[i.A],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},5758:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-radio-group",{style:e.computedStyle,attrs:{"hide-details":"",dense:""},model:{value:e.selectedIndex,callback:function(t){e.selectedIndex=t},expression:"selectedIndex"}},e._l(e.widgets,(function(n,s){return t(n.type,e._g({key:s,tag:"component",attrs:{value:s,target:n.target,parameters:n.parameters,settings:n.settings,name:n.name}},e.$listeners))})),1)},a=[],i=n(9843);const l={mixins:[i.A],data(){return{selectedIndex:0}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},5736:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},a=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar__container"},[t("div",{staticClass:"rangebar__line"}),e._v(" "),t("div",{staticClass:"rangebar__arrow"})])}],i=n(9729);const l={mixins:[i.A],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{calcPosition(){let e=null;if(this.screen&&(e=this.screen.screenValues[this.valueId][0]),!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;const t=(e-this.min)/this.range*100;return t>100?100:t<0?0:t}}},r=l;n(519);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"f50bb458",null);const d=c.exports},9517:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("rux-monitoring-icon",e._g(e._b({staticClass:"rux-icon",attrs:{icon:e.icon,status:e.status,label:e.label,sublabel:e.subLabel},on:{click:e.clickHandler}},"rux-monitoring-icon",e.attrs,!1),e.on))},a=[],i=(n(9375),n(9729));const l={mixins:[i.A],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[]}},computed:{status:function(){let e="off";if(this.screen)for(const t of this.items){let n=this.screen.screenValues[t][1];n&&((n.includes("BLUE")||n.includes("GREEN"))&&"caution"!=e&&"critical"!=e&&(e="normal"),n.includes("YELLOW")&&"critical"!=e&&(e="caution"),n.includes("RED")&&(e="critical"))}else e="off";return e}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.settings.forEach((e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let t="CONVERTED";e[4]&&(t=e[4]);let n=`${e[1]}__${e[2]}__${e[3]}__${t}`;this.items.push(n),this.screen&&this.screen.addItem(n);break}}))},destroyed:function(){this.screen&&this.items.forEach((e=>{this.screen.deleteItem(e)}))},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},9769:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("vertical-widget",e._g({staticClass:"overflow-y-auto",style:e.computedStyle,attrs:{settings:e.settings,parameters:e.parameters.slice(1),widgets:e.widgets}},e.$listeners))},a=[],i=n(9843),l=n(1629);const r={mixins:[i.A],components:{VerticalWidget:l["default"]},created:function(){this.setHeight(this.parameters[0],"px",200)}},o=r;var c=n(2401),d=(0,c.A)(o,s,a,!1,null,null,null);const u=d.exports},2959:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},a=[],i=n(9729);const l={mixins:[i.A],computed:{labelText(){return this.parameters[0]}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},1533:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-icon",{on:{click:e.clickHandler}},[e._v(" "+e._s(e.displayedIcon)+" ")])},a=[],i=n(2967);const l={mixins:[i.A],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.settings.forEach((e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}}))},methods:{getType(){var e="CONVERTED";return"RAW"==this.parameters[3]&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},6637:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{style:e.style})},a=[],i=n(9729);const l={mixins:[i.A],computed:{style:function(){return[`width: ${this.parameters[0]}px;`,`height: ${this.parameters[1]}px;`].join("")}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},6115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("graph",{ref:"graph"+e.id,style:e.computedStyle,attrs:{id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,sparkline:""}})},a=[],i=n(1033),l=n(9410);const r={components:{Graph:l.A},mixins:[i.A],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}},o=r;var c=n(2401),d=(0,c.A)(o,s,a,!1,null,null,null);const u=d.exports},2926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",[t("v-tabs",{style:e.computedStyle,model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(n,s){return t("v-tab",{key:s},[e._v("\n "+e._s(n.parameters[0])+"\n ")])})),1),e._v(" "),t("v-tabs-items",{model:{value:e.curTab,callback:function(t){e.curTab=t},expression:"curTab"}},e._l(e.widgets,(function(n,s){return t("v-tab-item",{key:s},e._l(n.widgets,(function(n,a){return t(n.type,e._g({key:`${s}-${a}`,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)})),1)],1)},a=[],i=n(9843);const l={mixins:[i.A],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},7462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"textbox-widget-container"},[t("v-textarea",{class:e.valueClass,style:[e.computedStyle,e.aging],attrs:{solo:"",dense:"",readonly:"","hide-details":"",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),e._v(" "),t("v-menu",{attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,s){return t("v-list-item",{key:s,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],i=n(2967),l=n(9821);n(9471);const r={components:{DetailsDialog:l.A},data:function(){return{width:200,height:200}},mixins:[i.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}},o=r;n(6616);var c=n(2401),d=(0,c.A)(o,s,a,!1,null,"4cca914c",null);const u=d.exports},7540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("v-text-field",{style:e.computedStyle,attrs:{solo:"",dense:"","single-line":"","hide-no-data":"","hide-details":""},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},a=[],i=n(9729);const l={mixins:[i.A],data(){return{value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},6525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("span",{staticClass:"text-h5 text-center pa-1 mt-1 label",style:e.computedStyle},[e._v("\n "+e._s(e.labelText)+"\n")])},a=[],i=(n(7107),n(9729));const l={mixins:[i.A],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},2932:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"value-widget-container",style:[e.computedStyle,e.aging]},[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",value:e._value,"prepend-inner-icon":e.astroIcon,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",s,!1),n))]}}])},[e._v(" "),t("span",[e._v(e._s(e.fullName))])]),e._v(" "),t("v-menu",{staticStyle:{"z-index":"10"},attrs:{"position-x":e.x,"position-y":e.y,absolute:"","offset-y":""},model:{value:e.contextMenuShown,callback:function(t){e.contextMenuShown=t},expression:"contextMenuShown"}},[t("v-list",e._l(e.contextMenuOptions,(function(n,s){return t("v-list-item",{key:s,on:{click:function(e){return e.stopPropagation(),n.action.apply(null,arguments)}}},[t("v-list-item-title",[e._v(e._s(n.title))])],1)})),1)],1),e._v(" "),t("details-dialog",{attrs:{"target-name":e.parameters[0],"packet-name":e.parameters[1],"item-name":e.parameters[2]},model:{value:e.viewDetails,callback:function(t){e.viewDetails=t},expression:"viewDetails"}})],1)},a=[],i=n(2967),l=n(9821);const r=4,o={components:{DetailsDialog:l.A},mixins:[i.A],data:function(){return{width:12+r}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+r,"ch",this.width)}},c=o;n(8299);var d=n(2401),u=(0,d.A)(c,s,a,!1,null,"21febbc3",null);const m=u.exports},3660:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("limitsbar-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}})],1)},a=[],i=n(2932),l=n(2835),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:i["default"],LimitsbarWidget:l["default"]}},c=o;var d=n(2401),u=(0,d.A)(c,s,a,!1,null,null,null);const m=u.exports},4428:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",style:e.computedStyle},[t("limitscolumn-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":1}}),e._v(" "),t("value-widget",{attrs:{parameters:e.parameters,settings:[...e.settings],"widget-index":0}})],1)},a=[],i=n(2932),l=n(9178),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:i["default"],LimitscolumnWidget:l["default"]}},c=o;var d=n(2401),u=(0,d.A)(c,s,a,!1,null,null,null);const m=u.exports},1616:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.valueParameters,settings:[...e.settings],"widget-index":0}}),e._v(" "),t("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:[...e.settings],"widget-index":1}})],1)},a=[],i=n(2932),l=n(5736),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:i["default"],RangebarWidget:l["default"]},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=o;var d=n(2401),u=(0,d.A)(c,s,a,!1,null,null,null);const m=u.exports},1629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},e._l(e.widgets,(function(n,s){return t(n.type,e._g({key:s,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},a=[],i=(n(9375),n(9843));const l={mixins:[i.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},r=l;var o=n(2401),c=(0,o.A)(r,s,a,!1,null,null,null);const d=c.exports},5757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var s=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{staticClass:"boxbanner",style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),e._v(" "),t("vertical-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},a=[],i=n(1629),l=n(9843);const r={mixins:[l.A],components:{VerticalWidget:i["default"]}},o=r;n(1241);var c=n(2401),d=(0,c.A)(o,s,a,!1,null,"e0b00b10",null);const u=d.exports},6573:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".container[data-v-2ffd785b] .v-select__selections{width:auto}.v-overflow-btn[data-v-2ffd785b]{margin-top:0}.container[data-v-2ffd785b]{padding:0}.hazardous[data-v-2ffd785b] .v-select__selection{color:#ffdc00}",""]);const o=r},9305:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".editor[data-v-4d775f22]{margin-left:30px;height:50px;width:95%;position:relative;font-size:16px}",""]);const o=r},3076:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".label[data-v-6659f972]{font-weight:700;text-transform:capitalize}[data-v-6659f972] .v-input--selection-controls{padding:0;margin:0}",""]);const o=r},7589:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".ace_autocomplete{width:60vw!important}",""]);const o=r},1365:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".editor[data-v-2f59da98]{height:50vh;width:75vw;position:relative;font-size:16px}.v-textarea[data-v-2f59da98] textarea{padding:5px}",""]);const o=r},2386:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".edit-box,.v-window-item{background-color:var(--color-background-surface-default)}.edit-box{color:hsla(0,0%,100%,.7);padding:10px;margin-top:10px}.v-small-dialog__content{background-color:var(--color-background-surface-selected);padding:5px 5px}.uplot.side-legend{display:flex;width:auto}.uplot.side-legend .u-wrap{flex:none}.uplot.side-legend .u-legend{text-align:left;margin-left:0;width:220px}.uplot.side-legend .u-legend,.uplot.side-legend .u-legend td,.uplot.side-legend .u-legend th,.uplot.side-legend .u-legend tr{display:revert}.uplot.left-legend .u-legend{order:-1}.uplot.top-legend{display:flex;flex-direction:column}.uplot.top-legend .u-legend{order:-1}",""]);const o=r},5454:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,"#chart[data-v-997d7a84] .u-select{background-color:hsla(0,0%,100%,.07)}",""]);const o=r},1340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".errors[data-v-ff31ea44]{padding-top:0;margin-top:0}.v-textarea[data-v-ff31ea44] textarea{padding:5px}",""]);const o=r},1381:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".button[data-v-9797b8ec]{padding:4px}.select[data-v-9797b8ec]{max-width:300px}.row+.row[data-v-9797b8ec]{margin-top:0}",""]);const o=r},9808:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".app-title[data-v-57d4fdd2]{font-size:2rem}.menu-button[data-v-57d4fdd2]{border-color:var(--color-border-interactive-muted)!important;background-color:var(--color-background-base-default)!important;padding-right:3px!important}span.v-btn__content span[data-v-57d4fdd2]{padding-right:5px}.myicon[data-v-57d4fdd2]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-57d4fdd2] .v-label{margin-left:5px}.v-list-item__icon[data-v-57d4fdd2]{margin-right:15px!important}.v-list-item__title[data-v-57d4fdd2]{color:#fff}",""]);const o=r},8963:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".array-widget-container[data-v-4c83f4c3] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-4c83f4c3] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-4c83f4c3] input{color:#00c800}.openc3-yellow[data-v-4c83f4c3] input{color:#ffdc00}.openc3-red[data-v-4c83f4c3] input{color:#ff2d2d}.openc3-blue[data-v-4c83f4c3] input{color:#09f}.openc3-purple[data-v-4c83f4c3] input{color:#c800c8}.openc3-black[data-v-4c83f4c3] input{color:#000}.openc3-white[data-v-4c83f4c3] input{color:#fff}",""]);const o=r},4088:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".block-widget-container[data-v-42f141dc] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-42f141dc] textarea{font-family:Courier New,Courier,monospace}.value[data-v-42f141dc] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-42f141dc] input{color:#00c800}.openc3-yellow[data-v-42f141dc] input{color:#ffdc00}.openc3-red[data-v-42f141dc] input{color:#ff2d2d}.openc3-blue[data-v-42f141dc] input{color:#09f}.openc3-purple[data-v-42f141dc] input{color:#c800c8}.openc3-black[data-v-42f141dc] input{color:#000}.openc3-white[data-v-42f141dc] input{color:#fff}",""]);const o=r},6403:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".boxbanner[data-v-7935dee2] .v-banner__wrapper{padding:4px!important}.boxbanner[data-v-7935dee2] .v-banner__text{font-weight:600;font-size:16px}",""]);const o=r},2498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".label[data-v-19db816e]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]);const o=r},9316:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".led[data-v-4e68ef1f]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]);const o=r},9058:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".led[data-v-47f390ae]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]);const o=r},9824:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".textbox-widget-container[data-v-4cca914c] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-4cca914c] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-4cca914c] input{color:#00c800}.openc3-yellow[data-v-4cca914c] input{color:#ffdc00}.openc3-red[data-v-4cca914c] input{color:#ff2d2d}.openc3-blue[data-v-4cca914c] input{color:#09f}.openc3-purple[data-v-4cca914c] input{color:#c800c8}.openc3-black[data-v-4cca914c] input{color:#000}.openc3-white[data-v-4cca914c] input{color:#fff}",""]);const o=r},3425:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".boxbanner[data-v-e0b00b10] .v-banner__wrapper{padding:4px!important}.boxbanner[data-v-e0b00b10] .v-banner__text{font-weight:600;font-size:16px}",""]);const o=r},3224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]);const o=r},9784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".limitsbar[data-v-4b85d27c]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-4b85d27c]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-4b85d27c]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-4b85d27c],.limitsbar__redlow[data-v-4b85d27c]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-4b85d27c]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-4b85d27c]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-4b85d27c],.limitsbar__yellowlow[data-v-4b85d27c]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-4b85d27c]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-4b85d27c]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-4b85d27c],.limitsbar__greenlow[data-v-4b85d27c]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-4b85d27c]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-4b85d27c]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-4b85d27c],.limitsbar__line[data-v-4b85d27c]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-4b85d27c]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-4b85d27c]{position:absolute;top:-5px;left:var(--position);width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const o=r},3666:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".limitsbar[data-v-5a19801c]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-5a19801c]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-5a19801c]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-5a19801c],.limitsbar__redlow[data-v-5a19801c]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-5a19801c]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-5a19801c]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-5a19801c],.limitsbar__yellowlow[data-v-5a19801c]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-5a19801c]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-5a19801c]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-5a19801c],.limitsbar__greenlow[data-v-5a19801c]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-5a19801c]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-5a19801c]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-5a19801c],.limitsbar__line[data-v-5a19801c]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-5a19801c]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-5a19801c]{position:absolute;bottom:var(--position);left:var(--container-width);width:0;height:0;transform:translateY(5px);border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid gray}",""]);const o=r},3160:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".progress[data-v-e34552b0]{margin:5px;flex:auto!important}",""]);const o=r},2574:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".rangebar[data-v-f50bb458]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.rangebar__container[data-v-f50bb458]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.rangebar__line[data-v-f50bb458]{width:1px;height:var(--container-height);background-color:gray}.rangebar__arrow[data-v-f50bb458],.rangebar__line[data-v-f50bb458]{position:absolute;left:var(--position)}.rangebar__arrow[data-v-f50bb458]{top:-5px;width:0;height:0;transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]);const o=r},1923:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var s=n(6758),a=n.n(s),i=n(935),l=n.n(i),r=l()(a());r.push([e.id,".value-widget-container[data-v-21febbc3]{min-height:34px}.value-widget-container[data-v-21febbc3] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value-widget-container[data-v-21febbc3] input{text-align:var(--text-align)!important}[data-v-21febbc3] .v-input__slot:has(.v-icon){padding-left:2px!important}.value-widget-container[data-v-21febbc3] .v-icon{margin-top:9px}.value[data-v-21febbc3] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-21febbc3] input{color:#00c800}.openc3-yellow[data-v-21febbc3] input{color:#ffdc00}.openc3-red[data-v-21febbc3] input{color:#ff2d2d}.openc3-blue[data-v-21febbc3] input{color:#09f}.openc3-purple[data-v-21febbc3] input{color:#c800c8}.openc3-black[data-v-21febbc3] input{color:#000}.openc3-white[data-v-21febbc3] input{color:#fff}",""]);const o=r},5771:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9375),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4293),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__),ace_builds__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1841),ace_builds__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(ace_builds__WEBPACK_IMPORTED_MODULE_2__),ace_builds_src_min_noconflict_mode_ruby__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2739),ace_builds_src_min_noconflict_mode_ruby__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(ace_builds_src_min_noconflict_mode_ruby__WEBPACK_IMPORTED_MODULE_3__),ace_builds_src_min_noconflict_theme_twilight__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5617),ace_builds_src_min_noconflict_theme_twilight__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(ace_builds_src_min_noconflict_theme_twilight__WEBPACK_IMPORTED_MODULE_4__),_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2795),_openc3_tool_common_src_components_TargetPacketItemChooser__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(124),_tools_CommandSender_CommandParameterEditor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(880),_tools_CommandSender_utilities__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3345),_openc3_tool_common_src_services_openc3_api__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4364),_openc3_tool_common_src_components_DetailsDialog__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9821),_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5751),_openc3_tool_common_src_components_Openc3Screen__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5181),sprintf_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(9471),sprintf_js__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(sprintf_js__WEBPACK_IMPORTED_MODULE_13__);function cov_16daumg2kr(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",t="1b6cf9f98caad56e81571987501eadf177439d37",n=new Function("return this")(),s="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",statementMap:{0:{start:{line:25,column:4},end:{line:129,column:5}},1:{start:{line:69,column:12},end:{line:69,column:41}},2:{start:{line:70,column:12},end:{line:70,column:35}},3:{start:{line:99,column:16},end:{line:99,column:64}},4:{start:{line:106,column:16},end:{line:106,column:52}},5:{start:{line:113,column:16},end:{line:113,column:64}},6:{start:{line:116,column:16},end:{line:116,column:38}},7:{start:{line:123,column:16},end:{line:123,column:42}},8:{start:{line:132,column:4},end:{line:134,column:6}},9:{start:{line:133,column:6},end:{line:133,column:44}},10:{start:{line:135,column:4},end:{line:135,column:30}},11:{start:{line:137,column:4},end:{line:142,column:5}},12:{start:{line:138,column:6},end:{line:141,column:8}},13:{start:{line:143,column:4},end:{line:145,column:6}},14:{start:{line:144,column:6},end:{line:144,column:35}},15:{start:{line:148,column:4},end:{line:148,column:45}},16:{start:{line:149,column:4},end:{line:149,column:46}},17:{start:{line:150,column:4},end:{line:150,column:48}},18:{start:{line:151,column:4},end:{line:151,column:37}},19:{start:{line:152,column:4},end:{line:152,column:44}},20:{start:{line:153,column:4},end:{line:153,column:45}},21:{start:{line:154,column:4},end:{line:154,column:65}},22:{start:{line:155,column:4},end:{line:155,column:48}},23:{start:{line:156,column:4},end:{line:156,column:32}},24:{start:{line:157,column:4},end:{line:157,column:23}},25:{start:{line:158,column:4},end:{line:158,column:49}},26:{start:{line:160,column:4},end:{line:160,column:41}},27:{start:{line:161,column:4},end:{line:161,column:40}},28:{start:{line:162,column:4},end:{line:178,column:6}},29:{start:{line:163,column:6},end:{line:177,column:7}},30:{start:{line:164,column:8},end:{line:164,column:26}},31:{start:{line:165,column:22},end:{line:167,column:9}},32:{start:{line:169,column:8},end:{line:171,column:9}},33:{start:{line:170,column:10},end:{line:170,column:16}},34:{start:{line:173,column:25},end:{line:173,column:45}},35:{start:{line:174,column:24},end:{line:174,column:48}},36:{start:{line:175,column:8},end:{line:175,column:76}},37:{start:{line:176,column:8},end:{line:176,column:29}},38:{start:{line:181,column:4},end:{line:181,column:25}},39:{start:{line:182,column:4},end:{line:182,column:34}},40:{start:{line:186,column:6},end:{line:186,column:24}},41:{start:{line:187,column:6},end:{line:187,column:50}},42:{start:{line:188,column:6},end:{line:188,column:35}},43:{start:{line:189,column:6},end:{line:189,column:24}},44:{start:{line:190,column:6},end:{line:190,column:24}},45:{start:{line:191,column:6},end:{line:193,column:8}},46:{start:{line:192,column:8},end:{line:192,column:36}},47:{start:{line:196,column:6},end:{line:202,column:7}},48:{start:{line:201,column:8},end:{line:201,column:56}},49:{start:{line:203,column:6},end:{line:205,column:7}},50:{start:{line:204,column:8},end:{line:204,column:39}},51:{start:{line:207,column:16},end:{line:207,column:40}},52:{start:{line:208,column:26},end:{line:208,column:48}},53:{start:{line:209,column:6},end:{line:244,column:7}},54:{start:{line:210,column:24},end:{line:210,column:41}},55:{start:{line:211,column:8},end:{line:241,column:9}},56:{start:{line:215,column:23},end:{line:215,column:41}},57:{start:{line:216,column:10},end:{line:218,column:11}},58:{start:{line:217,column:12},end:{line:217,column:33}},59:{start:{line:219,column:21},end:{line:219,column:54}},60:{start:{line:220,column:10},end:{line:223,column:11}},61:{start:{line:220,column:23},end:{line:220,column:24}},62:{start:{line:221,column:25},end:{line:221,column:64}},63:{start:{line:222,column:12},end:{line:222,column:47}},64:{start:{line:224,column:10},end:{line:224,column:21}},65:{start:{line:226,column:10},end:{line:240,column:11}},66:{start:{line:227,column:12},end:{line:227,column:27}},67:{start:{line:228,column:17},end:{line:240,column:11}},68:{start:{line:229,column:12},end:{line:229,column:28}},69:{start:{line:230,column:17},end:{line:240,column:11}},70:{start:{line:231,column:12},end:{line:231,column:22}},71:{start:{line:232,column:17},end:{line:240,column:11}},72:{start:{line:233,column:12},end:{line:233,column:34}},73:{start:{line:234,column:17},end:{line:240,column:11}},74:{start:{line:235,column:12},end:{line:235,column:32}},75:{start:{line:236,column:17},end:{line:240,column:11}},76:{start:{line:237,column:12},end:{line:237,column:28}},77:{start:{line:239,column:12},end:{line:239,column:22}},78:{start:{line:243,column:8},end:{line:243,column:28}},79:{start:{line:248,column:6},end:{line:268,column:7}},80:{start:{line:252,column:8},end:{line:252,column:42}},81:{start:{line:253,column:8},end:{line:253,column:43}},82:{start:{line:255,column:8},end:{line:257,column:9}},83:{start:{line:256,column:10},end:{line:256,column:32}},84:{start:{line:258,column:8},end:{line:267,column:29}},85:{start:{line:272,column:6},end:{line:272,column:30}},86:{start:{line:273,column:6},end:{line:273,column:29}},87:{start:{line:274,column:6},end:{line:274,column:20}},88:{start:{line:275,column:6},end:{line:373,column:9}},89:{start:{line:279,column:12},end:{line:279,column:58}},90:{start:{line:280,column:12},end:{line:280,column:70}},91:{start:{line:283,column:12},end:{line:283,column:66}},92:{start:{line:284,column:12},end:{line:284,column:37}},93:{start:{line:289,column:12},end:{line:340,column:14}},94:{start:{line:290,column:14},end:{line:290,column:73}},95:{start:{line:290,column:67},end:{line:290,column:73}},96:{start:{line:291,column:14},end:{line:339,column:15}},97:{start:{line:295,column:26},end:{line:295,column:43}},98:{start:{line:300,column:16},end:{line:306,column:17}},99:{start:{line:305,column:18},end:{line:305,column:34}},100:{start:{line:307,column:16},end:{line:309,column:17}},101:{start:{line:308,column:18},end:{line:308,column:26}},102:{start:{line:310,column:16},end:{line:312,column:17}},103:{start:{line:311,column:18},end:{line:311,column:75}},104:{start:{line:313,column:28},end:{line:313,column:33}},105:{start:{line:315,column:16},end:{line:327,column:17}},106:{start:{line:316,column:18},end:{line:325,column:19}},107:{start:{line:319,column:20},end:{line:321,column:21}},108:{start:{line:320,column:22},end:{line:320,column:76}},109:{start:{line:322,column:20},end:{line:324,column:21}},110:{start:{line:323,column:22},end:{line:323,column:76}},111:{start:{line:326,column:18},end:{line:326,column:70}},112:{start:{line:328,column:16},end:{line:338,column:18}},113:{start:{line:341,column:12},end:{line:365,column:13}},114:{start:{line:342,column:14},end:{line:349,column:15}},115:{start:{line:344,column:18},end:{line:344,column:55}},116:{start:{line:345,column:18},end:{line:345,column:53}},117:{start:{line:346,column:18},end:{line:346,column:55}},118:{start:{line:347,column:18},end:{line:347,column:39}},119:{start:{line:351,column:14},end:{line:363,column:15}},120:{start:{line:352,column:16},end:{line:352,column:43}},121:{start:{line:353,column:16},end:{line:353,column:45}},122:{start:{line:354,column:39},end:{line:354,column:63}},123:{start:{line:355,column:16},end:{line:357,column:17}},124:{start:{line:355,column:29},end:{line:355,column:30}},125:{start:{line:356,column:18},end:{line:356,column:165}},126:{start:{line:358,column:16},end:{line:358,column:56}},127:{start:{line:360,column:16},end:{line:360,column:40}},128:{start:{line:361,column:16},end:{line:361,column:38}},129:{start:{line:362,column:16},end:{line:362,column:44}},130:{start:{line:364,column:14},end:{line:364,column:35}},131:{start:{line:366,column:12},end:{line:366,column:37}},132:{start:{line:367,column:12},end:{line:367,column:28}},133:{start:{line:370,column:12},end:{line:370,column:66}},134:{start:{line:371,column:12},end:{line:371,column:37}},135:{start:{line:377,column:22},end:{line:377,column:24}},136:{start:{line:378,column:6},end:{line:382,column:7}},137:{start:{line:378,column:19},end:{line:378,column:20}},138:{start:{line:379,column:8},end:{line:381,column:9}},139:{start:{line:383,column:6},end:{line:383,column:22}},140:{start:{line:387,column:6},end:{line:387,column:77}},141:{start:{line:396,column:6},end:{line:396,column:38}},142:{start:{line:397,column:6},end:{line:397,column:40}},143:{start:{line:398,column:6},end:{line:398,column:36}},144:{start:{line:400,column:6},end:{line:400,column:30}},145:{start:{line:401,column:22},end:{line:401,column:27}},146:{start:{line:402,column:16},end:{line:402,column:18}},147:{start:{line:403,column:6},end:{line:467,column:7}},148:{start:{line:405,column:10},end:{line:405,column:30}},149:{start:{line:407,column:10},end:{line:462,column:11}},150:{start:{line:409,column:12},end:{line:416,column:13}},151:{start:{line:410,column:14},end:{line:413,column:26}},152:{start:{line:415,column:14},end:{line:415,column:68}},153:{start:{line:417,column:12},end:{line:417,column:44}},154:{start:{line:420,column:12},end:{line:452,column:13}},155:{start:{line:421,column:14},end:{line:435,column:15}},156:{start:{line:422,column:16},end:{line:422,column:46}},157:{start:{line:423,column:16},end:{line:427,column:17}},158:{start:{line:429,column:16},end:{line:429,column:31}},159:{start:{line:430,column:16},end:{line:434,column:18}},160:{start:{line:437,column:14},end:{line:451,column:15}},161:{start:{line:438,column:16},end:{line:438,column:42}},162:{start:{line:439,column:16},end:{line:443,column:17}},163:{start:{line:445,column:16},end:{line:445,column:27}},164:{start:{line:446,column:16},end:{line:450,column:18}},165:{start:{line:454,column:12},end:{line:461,column:13}},166:{start:{line:456,column:16},end:{line:456,column:54}},167:{start:{line:459,column:16},end:{line:459,column:53}},168:{start:{line:465,column:10},end:{line:465,column:47}},169:{start:{line:471,column:6},end:{line:471,column:39}},170:{start:{line:472,column:16},end:{line:472,column:18}},171:{start:{line:473,column:16},end:{line:473,column:18}},172:{start:{line:474,column:6},end:{line:516,column:7}},173:{start:{line:475,column:8},end:{line:494,column:9}},174:{start:{line:476,column:10},end:{line:476,column:40}},175:{start:{line:477,column:10},end:{line:481,column:11}},176:{start:{line:483,column:10},end:{line:483,column:25}},177:{start:{line:484,column:10},end:{line:493,column:11}},178:{start:{line:496,column:8},end:{line:515,column:9}},179:{start:{line:497,column:10},end:{line:497,column:36}},180:{start:{line:498,column:10},end:{line:502,column:11}},181:{start:{line:504,column:10},end:{line:504,column:21}},182:{start:{line:505,column:10},end:{line:514,column:11}},183:{start:{line:518,column:6},end:{line:525,column:7}},184:{start:{line:520,column:10},end:{line:520,column:48}},185:{start:{line:523,column:10},end:{line:523,column:47}},186:{start:{line:529,column:6},end:{line:529,column:39}},187:{start:{line:530,column:6},end:{line:530,column:48}},188:{start:{line:531,column:6},end:{line:531,column:31}},189:{start:{line:535,column:16},end:{line:535,column:18}},190:{start:{line:536,column:6},end:{line:582,column:7}},191:{start:{line:537,column:8},end:{line:537,column:58}},192:{start:{line:538,column:19},end:{line:538,column:43}},193:{start:{line:539,column:8},end:{line:557,column:9}},194:{start:{line:540,column:10},end:{line:540,column:25}},195:{start:{line:541,column:10},end:{line:556,column:11}},196:{start:{line:541,column:23},end:{line:541,column:24}},197:{start:{line:542,column:22},end:{line:542,column:29}},198:{start:{line:543,column:24},end:{line:543,column:62}},199:{start:{line:545,column:12},end:{line:551,column:13}},200:{start:{line:550,column:14},end:{line:550,column:34}},201:{start:{line:552,column:12},end:{line:552,column:36}},202:{start:{line:553,column:12},end:{line:555,column:13}},203:{start:{line:554,column:14},end:{line:554,column:25}},204:{start:{line:558,column:8},end:{line:558,column:19}},205:{start:{line:559,column:8},end:{line:566,column:9}},206:{start:{line:560,column:10},end:{line:560,column:21}},207:{start:{line:561,column:10},end:{line:563,column:11}},208:{start:{line:562,column:12},end:{line:562,column:40}},209:{start:{line:564,column:10},end:{line:564,column:37}},210:{start:{line:565,column:10},end:{line:565,column:40}},211:{start:{line:567,column:8},end:{line:567,column:23}},212:{start:{line:569,column:8},end:{line:577,column:9}},213:{start:{line:570,column:22},end:{line:570,column:48}},214:{start:{line:571,column:10},end:{line:576,column:11}},215:{start:{line:572,column:22},end:{line:572,column:77}},216:{start:{line:573,column:12},end:{line:573,column:56}},217:{start:{line:575,column:12},end:{line:575,column:25}},218:{start:{line:578,column:8},end:{line:578,column:25}},219:{start:{line:580,column:22},end:{line:580,column:75}},220:{start:{line:581,column:8},end:{line:581,column:50}},221:{start:{line:584,column:6},end:{line:584,column:43}},222:{start:{line:585,column:6},end:{line:585,column:70}},223:{start:{line:586,column:6},end:{line:586,column:31}},224:{start:{line:590,column:6},end:{line:590,column:30}},225:{start:{line:591,column:6},end:{line:591,column:23}},226:{start:{line:592,column:6},end:{line:592,column:56}},227:{start:{line:596,column:6},end:{line:596,column:59}},228:{start:{line:597,column:6},end:{line:600,column:7}},229:{start:{line:598,column:8},end:{line:598,column:27}},230:{start:{line:599,column:8},end:{line:599,column:36}},231:{start:{line:601,column:6},end:{line:603,column:7}},232:{start:{line:602,column:8},end:{line:602,column:38}},233:{start:{line:607,column:6},end:{line:611,column:8}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:24,column:2},end:{line:24,column:3}},loc:{start:{line:24,column:9},end:{line:130,column:3}},line:24},1:{name:"(anonymous_1)",decl:{start:{line:68,column:18},end:{line:68,column:19}},loc:{start:{line:68,column:24},end:{line:71,column:11}},line:68},2:{name:"(anonymous_2)",decl:{start:{line:98,column:23},end:{line:98,column:24}},loc:{start:{line:98,column:29},end:{line:100,column:15}},line:98},3:{name:"(anonymous_3)",decl:{start:{line:105,column:23},end:{line:105,column:24}},loc:{start:{line:105,column:29},end:{line:107,column:15}},line:105},4:{name:"(anonymous_4)",decl:{start:{line:112,column:23},end:{line:112,column:24}},loc:{start:{line:112,column:29},end:{line:117,column:15}},line:112},5:{name:"(anonymous_5)",decl:{start:{line:122,column:23},end:{line:122,column:24}},loc:{start:{line:122,column:29},end:{line:124,column:15}},line:122},6:{name:"(anonymous_6)",decl:{start:{line:131,column:2},end:{line:131,column:3}},loc:{start:{line:131,column:12},end:{line:146,column:3}},line:131},7:{name:"(anonymous_7)",decl:{start:{line:132,column:65},end:{line:132,column:66}},loc:{start:{line:132,column:79},end:{line:134,column:5}},line:132},8:{name:"(anonymous_8)",decl:{start:{line:143,column:61},end:{line:143,column:62}},loc:{start:{line:143,column:75},end:{line:145,column:5}},line:143},9:{name:"(anonymous_9)",decl:{start:{line:147,column:2},end:{line:147,column:3}},loc:{start:{line:147,column:12},end:{line:179,column:3}},line:147},10:{name:"(anonymous_10)",decl:{start:{line:162,column:54},end:{line:162,column:55}},loc:{start:{line:162,column:61},end:{line:178,column:5}},line:162},11:{name:"(anonymous_11)",decl:{start:{line:180,column:2},end:{line:180,column:3}},loc:{start:{line:180,column:18},end:{line:183,column:3}},line:180},12:{name:"(anonymous_12)",decl:{start:{line:185,column:4},end:{line:185,column:5}},loc:{start:{line:185,column:28},end:{line:194,column:5}},line:185},13:{name:"(anonymous_13)",decl:{start:{line:191,column:21},end:{line:191,column:22}},loc:{start:{line:191,column:27},end:{line:193,column:7}},line:191},14:{name:"(anonymous_14)",decl:{start:{line:195,column:4},end:{line:195,column:5}},loc:{start:{line:195,column:26},end:{line:245,column:5}},line:195},15:{name:"(anonymous_15)",decl:{start:{line:247,column:4},end:{line:247,column:5}},loc:{start:{line:247,column:26},end:{line:269,column:5}},line:247},16:{name:"(anonymous_16)",decl:{start:{line:267,column:17},end:{line:267,column:18}},loc:{start:{line:267,column:26},end:{line:267,column:28}},line:267},17:{name:"(anonymous_17)",decl:{start:{line:271,column:4},end:{line:271,column:5}},loc:{start:{line:271,column:22},end:{line:374,column:5}},line:271},18:{name:"(anonymous_18)",decl:{start:{line:278,column:10},end:{line:278,column:11}},loc:{start:{line:278,column:22},end:{line:281,column:11}},line:278},19:{name:"(anonymous_19)",decl:{start:{line:282,column:10},end:{line:282,column:11}},loc:{start:{line:282,column:21},end:{line:285,column:11}},line:282},20:{name:"(anonymous_20)",decl:{start:{line:288,column:10},end:{line:288,column:11}},loc:{start:{line:288,column:23},end:{line:368,column:11}},line:288},21:{name:"(anonymous_21)",decl:{start:{line:289,column:34},end:{line:289,column:35}},loc:{start:{line:289,column:49},end:{line:340,column:13}},line:289},22:{name:"(anonymous_22)",decl:{start:{line:343,column:16},end:{line:343,column:17}},loc:{start:{line:343,column:30},end:{line:348,column:17}},line:343},23:{name:"(anonymous_23)",decl:{start:{line:369,column:10},end:{line:369,column:11}},loc:{start:{line:369,column:21},end:{line:372,column:11}},line:369},24:{name:"(anonymous_24)",decl:{start:{line:376,column:4},end:{line:376,column:5}},loc:{start:{line:376,column:22},end:{line:384,column:5}},line:376},25:{name:"(anonymous_25)",decl:{start:{line:386,column:4},end:{line:386,column:5}},loc:{start:{line:386,column:15},end:{line:388,column:5}},line:386},26:{name:"(anonymous_26)",decl:{start:{line:394,column:4},end:{line:394,column:5}},loc:{start:{line:394,column:48},end:{line:468,column:5}},line:394},27:{name:"(anonymous_27)",decl:{start:{line:404,column:8},end:{line:404,column:9}},loc:{start:{line:404,column:22},end:{line:463,column:9}},line:404},28:{name:"(anonymous_28)",decl:{start:{line:455,column:14},end:{line:455,column:15}},loc:{start:{line:455,column:28},end:{line:457,column:15}},line:455},29:{name:"(anonymous_29)",decl:{start:{line:458,column:14},end:{line:458,column:15}},loc:{start:{line:458,column:25},end:{line:460,column:15}},line:458},30:{name:"(anonymous_30)",decl:{start:{line:464,column:8},end:{line:464,column:9}},loc:{start:{line:464,column:19},end:{line:466,column:9}},line:464},31:{name:"(anonymous_31)",decl:{start:{line:470,column:4},end:{line:470,column:5}},loc:{start:{line:470,column:23},end:{line:526,column:5}},line:470},32:{name:"(anonymous_32)",decl:{start:{line:519,column:8},end:{line:519,column:9}},loc:{start:{line:519,column:22},end:{line:521,column:9}},line:519},33:{name:"(anonymous_33)",decl:{start:{line:522,column:8},end:{line:522,column:9}},loc:{start:{line:522,column:19},end:{line:524,column:9}},line:522},34:{name:"(anonymous_34)",decl:{start:{line:528,column:4},end:{line:528,column:5}},loc:{start:{line:528,column:25},end:{line:532,column:5}},line:528},35:{name:"(anonymous_35)",decl:{start:{line:534,column:4},end:{line:534,column:5}},loc:{start:{line:534,column:43},end:{line:587,column:5}},line:534},36:{name:"(anonymous_36)",decl:{start:{line:589,column:4},end:{line:589,column:5}},loc:{start:{line:589,column:19},end:{line:593,column:5}},line:589},37:{name:"(anonymous_37)",decl:{start:{line:595,column:4},end:{line:595,column:5}},loc:{start:{line:595,column:53},end:{line:604,column:5}},line:595},38:{name:"(anonymous_38)",decl:{start:{line:606,column:4},end:{line:606,column:5}},loc:{start:{line:606,column:31},end:{line:612,column:5}},line:606}},branchMap:{0:{loc:{start:{line:137,column:4},end:{line:142,column:5}},type:"if",locations:[{start:{line:137,column:4},end:{line:142,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:137},1:{loc:{start:{line:137,column:8},end:{line:137,column:62}},type:"binary-expr",locations:[{start:{line:137,column:8},end:{line:137,column:33}},{start:{line:137,column:37},end:{line:137,column:62}}],line:137},2:{loc:{start:{line:163,column:6},end:{line:177,column:7}},type:"if",locations:[{start:{line:163,column:6},end:{line:177,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:163},3:{loc:{start:{line:169,column:8},end:{line:171,column:9}},type:"if",locations:[{start:{line:169,column:8},end:{line:171,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:169},4:{loc:{start:{line:196,column:6},end:{line:202,column:7}},type:"if",locations:[{start:{line:196,column:6},end:{line:202,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:196},5:{loc:{start:{line:197,column:8},end:{line:199,column:29}},type:"binary-expr",locations:[{start:{line:197,column:8},end:{line:197,column:52}},{start:{line:198,column:8},end:{line:198,column:66}},{start:{line:199,column:8},end:{line:199,column:29}}],line:197},6:{loc:{start:{line:203,column:6},end:{line:205,column:7}},type:"if",locations:[{start:{line:203,column:6},end:{line:205,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:203},7:{loc:{start:{line:209,column:6},end:{line:244,column:7}},type:"if",locations:[{start:{line:209,column:6},end:{line:244,column:7}},{start:{line:242,column:13},end:{line:244,column:7}}],line:209},8:{loc:{start:{line:211,column:8},end:{line:241,column:9}},type:"if",locations:[{start:{line:211,column:8},end:{line:241,column:9}},{start:{line:225,column:15},end:{line:241,column:9}}],line:211},9:{loc:{start:{line:212,column:10},end:{line:213,column:36}},type:"binary-expr",locations:[{start:{line:212,column:11},end:{line:212,column:34}},{start:{line:212,column:38},end:{line:212,column:60}},{start:{line:213,column:10},end:{line:213,column:36}}],line:212},10:{loc:{start:{line:216,column:10},end:{line:218,column:11}},type:"if",locations:[{start:{line:216,column:10},end:{line:218,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:216},11:{loc:{start:{line:226,column:10},end:{line:240,column:11}},type:"if",locations:[{start:{line:226,column:10},end:{line:240,column:11}},{start:{line:228,column:17},end:{line:240,column:11}}],line:226},12:{loc:{start:{line:228,column:17},end:{line:240,column:11}},type:"if",locations:[{start:{line:228,column:17},end:{line:240,column:11}},{start:{line:230,column:17},end:{line:240,column:11}}],line:228},13:{loc:{start:{line:230,column:17},end:{line:240,column:11}},type:"if",locations:[{start:{line:230,column:17},end:{line:240,column:11}},{start:{line:232,column:17},end:{line:240,column:11}}],line:230},14:{loc:{start:{line:232,column:17},end:{line:240,column:11}},type:"if",locations:[{start:{line:232,column:17},end:{line:240,column:11}},{start:{line:234,column:17},end:{line:240,column:11}}],line:232},15:{loc:{start:{line:234,column:17},end:{line:240,column:11}},type:"if",locations:[{start:{line:234,column:17},end:{line:240,column:11}},{start:{line:236,column:17},end:{line:240,column:11}}],line:234},16:{loc:{start:{line:236,column:17},end:{line:240,column:11}},type:"if",locations:[{start:{line:236,column:17},end:{line:240,column:11}},{start:{line:238,column:17},end:{line:240,column:11}}],line:236},17:{loc:{start:{line:248,column:6},end:{line:268,column:7}},type:"if",locations:[{start:{line:248,column:6},end:{line:268,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:248},18:{loc:{start:{line:249,column:8},end:{line:250,column:45}},type:"binary-expr",locations:[{start:{line:249,column:8},end:{line:249,column:44}},{start:{line:250,column:8},end:{line:250,column:45}}],line:249},19:{loc:{start:{line:255,column:8},end:{line:257,column:9}},type:"if",locations:[{start:{line:255,column:8},end:{line:257,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:255},20:{loc:{start:{line:290,column:14},end:{line:290,column:73}},type:"if",locations:[{start:{line:290,column:14},end:{line:290,column:73}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:290},21:{loc:{start:{line:291,column:14},end:{line:339,column:15}},type:"if",locations:[{start:{line:291,column:14},end:{line:339,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:291},22:{loc:{start:{line:292,column:16},end:{line:293,column:38}},type:"binary-expr",locations:[{start:{line:292,column:16},end:{line:292,column:60}},{start:{line:293,column:16},end:{line:293,column:38}}],line:292},23:{loc:{start:{line:300,column:16},end:{line:306,column:17}},type:"if",locations:[{start:{line:300,column:16},end:{line:306,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:300},24:{loc:{start:{line:301,column:18},end:{line:303,column:55}},type:"binary-expr",locations:[{start:{line:301,column:18},end:{line:301,column:35}},{start:{line:302,column:18},end:{line:302,column:50}},{start:{line:303,column:18},end:{line:303,column:55}}],line:301},25:{loc:{start:{line:307,column:16},end:{line:309,column:17}},type:"if",locations:[{start:{line:307,column:16},end:{line:309,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:307},26:{loc:{start:{line:310,column:16},end:{line:312,column:17}},type:"if",locations:[{start:{line:310,column:16},end:{line:312,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:310},27:{loc:{start:{line:315,column:16},end:{line:327,column:17}},type:"if",locations:[{start:{line:315,column:16},end:{line:327,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:315},28:{loc:{start:{line:315,column:20},end:{line:315,column:74}},type:"binary-expr",locations:[{start:{line:315,column:20},end:{line:315,column:45}},{start:{line:315,column:49},end:{line:315,column:74}}],line:315},29:{loc:{start:{line:316,column:18},end:{line:325,column:19}},type:"if",locations:[{start:{line:316,column:18},end:{line:325,column:19}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:316},30:{loc:{start:{line:319,column:20},end:{line:321,column:21}},type:"if",locations:[{start:{line:319,column:20},end:{line:321,column:21}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:319},31:{loc:{start:{line:322,column:20},end:{line:324,column:21}},type:"if",locations:[{start:{line:322,column:20},end:{line:324,column:21}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:322},32:{loc:{start:{line:341,column:12},end:{line:365,column:13}},type:"if",locations:[{start:{line:341,column:12},end:{line:365,column:13}},{start:{line:350,column:19},end:{line:365,column:13}}],line:341},33:{loc:{start:{line:351,column:14},end:{line:363,column:15}},type:"if",locations:[{start:{line:351,column:14},end:{line:363,column:15}},{start:{line:359,column:21},end:{line:363,column:15}}],line:351},34:{loc:{start:{line:407,column:10},end:{line:462,column:11}},type:"if",locations:[{start:{line:407,column:10},end:{line:462,column:11}},{start:{line:418,column:17},end:{line:462,column:11}}],line:407},35:{loc:{start:{line:409,column:12},end:{line:416,column:13}},type:"if",locations:[{start:{line:409,column:12},end:{line:416,column:13}},{start:{line:414,column:19},end:{line:416,column:13}}],line:409},36:{loc:{start:{line:420,column:12},end:{line:452,column:13}},type:"if",locations:[{start:{line:420,column:12},end:{line:452,column:13}},{start:{line:436,column:19},end:{line:452,column:13}}],line:420},37:{loc:{start:{line:421,column:14},end:{line:435,column:15}},type:"if",locations:[{start:{line:421,column:14},end:{line:435,column:15}},{start:{line:428,column:21},end:{line:435,column:15}}],line:421},38:{loc:{start:{line:437,column:14},end:{line:451,column:15}},type:"if",locations:[{start:{line:437,column:14},end:{line:451,column:15}},{start:{line:444,column:21},end:{line:451,column:15}}],line:437},39:{loc:{start:{line:474,column:6},end:{line:516,column:7}},type:"if",locations:[{start:{line:474,column:6},end:{line:516,column:7}},{start:{line:495,column:13},end:{line:516,column:7}}],line:474},40:{loc:{start:{line:475,column:8},end:{line:494,column:9}},type:"if",locations:[{start:{line:475,column:8},end:{line:494,column:9}},{start:{line:482,column:15},end:{line:494,column:9}}],line:475},41:{loc:{start:{line:496,column:8},end:{line:515,column:9}},type:"if",locations:[{start:{line:496,column:8},end:{line:515,column:9}},{start:{line:503,column:15},end:{line:515,column:9}}],line:496},42:{loc:{start:{line:536,column:6},end:{line:582,column:7}},type:"if",locations:[{start:{line:536,column:6},end:{line:582,column:7}},{start:{line:579,column:13},end:{line:582,column:7}}],line:536},43:{loc:{start:{line:539,column:8},end:{line:557,column:9}},type:"if",locations:[{start:{line:539,column:8},end:{line:557,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:539},44:{loc:{start:{line:545,column:12},end:{line:551,column:13}},type:"if",locations:[{start:{line:545,column:12},end:{line:551,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:545},45:{loc:{start:{line:546,column:14},end:{line:548,column:37}},type:"binary-expr",locations:[{start:{line:546,column:14},end:{line:546,column:50}},{start:{line:547,column:14},end:{line:547,column:37}},{start:{line:548,column:14},end:{line:548,column:37}}],line:546},46:{loc:{start:{line:553,column:12},end:{line:555,column:13}},type:"if",locations:[{start:{line:553,column:12},end:{line:555,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:553},47:{loc:{start:{line:559,column:8},end:{line:566,column:9}},type:"if",locations:[{start:{line:559,column:8},end:{line:566,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:559},48:{loc:{start:{line:561,column:10},end:{line:563,column:11}},type:"if",locations:[{start:{line:561,column:10},end:{line:563,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:561},49:{loc:{start:{line:569,column:8},end:{line:577,column:9}},type:"if",locations:[{start:{line:569,column:8},end:{line:577,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:569},50:{loc:{start:{line:571,column:10},end:{line:576,column:11}},type:"if",locations:[{start:{line:571,column:10},end:{line:576,column:11}},{start:{line:574,column:17},end:{line:576,column:11}}],line:571},51:{loc:{start:{line:595,column:33},end:{line:595,column:51}},type:"default-arg",locations:[{start:{line:595,column:46},end:{line:595,column:51}}],line:595},52:{loc:{start:{line:597,column:6},end:{line:600,column:7}},type:"if",locations:[{start:{line:597,column:6},end:{line:600,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:597},53:{loc:{start:{line:597,column:10},end:{line:597,column:47}},type:"binary-expr",locations:[{start:{line:597,column:10},end:{line:597,column:23}},{start:{line:597,column:27},end:{line:597,column:47}}],line:597},54:{loc:{start:{line:601,column:6},end:{line:603,column:7}},type:"if",locations:[{start:{line:601,column:6},end:{line:603,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:601}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0,106:0,107:0,108:0,109:0,110:0,111:0,112:0,113:0,114:0,115:0,116:0,117:0,118:0,119:0,120:0,121:0,122:0,123:0,124:0,125:0,126:0,127:0,128:0,129:0,130:0,131:0,132:0,133:0,134:0,135:0,136:0,137:0,138:0,139:0,140:0,141:0,142:0,143:0,144:0,145:0,146:0,147:0,148:0,149:0,150:0,151:0,152:0,153:0,154:0,155:0,156:0,157:0,158:0,159:0,160:0,161:0,162:0,163:0,164:0,165:0,166:0,167:0,168:0,169:0,170:0,171:0,172:0,173:0,174:0,175:0,176:0,177:0,178:0,179:0,180:0,181:0,182:0,183:0,184:0,185:0,186:0,187:0,188:0,189:0,190:0,191:0,192:0,193:0,194:0,195:0,196:0,197:0,198:0,199:0,200:0,201:0,202:0,203:0,204:0,205:0,206:0,207:0,208:0,209:0,210:0,211:0,212:0,213:0,214:0,215:0,216:0,217:0,218:0,219:0,220:0,221:0,222:0,223:0,224:0,225:0,226:0,227:0,228:0,229:0,230:0,231:0,232:0,233:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0,0],42:[0,0],43:[0,0],44:[0,0],45:[0,0,0],46:[0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0],51:[0],52:[0,0],53:[0,0],54:[0,0]},inputSourceMap:{version:3,sources:["CommandSender.vue"],names:[],mappings:";AAoPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;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 2024, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :menus=\"menus\" :title=\"title\" />\n <v-card\n ><div style=\"padding: 10px\">\n <target-packet-item-chooser\n :initial-target-name=\"this.$route.params.target\"\n :initial-packet-name=\"this.$route.params.packet\"\n @on-set=\"commandChanged($event)\"\n @click=\"buildCmd($event)\"\n :disabled=\"sendDisabled\"\n button-text=\"Send\"\n mode=\"cmd\"\n />\n </div>\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 label=\"Search\"\n prepend-inner-icon=\"mdi-magnify\"\n clearable\n outlined\n dense\n single-line\n hide-details\n class=\"search\"\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=\"pa-3\">Status: {{ status }}</div>\n </v-card>\n <div style=\"height: 15px\" />\n <multipane\n class=\"horizontal-panes\"\n layout=\"horizontal\"\n @paneResize=\"editor.resize()\"\n >\n <v-row>\n <v-col>\n <v-card class=\"pb-2\">\n <v-card-subtitle>\n Editable Command History: (Pressing Enter on the line re-executes\n the command)\n <v-tooltip top>\n <template v-slot:activator=\"{ on, attrs }\">\n <div v-on=\"on\" v-bind=\"attrs\" class=\"float-right\">\n <v-btn icon data-test=\"clear-history\" @click=\"clearHistory\">\n <v-icon> mdi-delete </v-icon>\n </v-btn>\n </div>\n </template>\n <span> Clear History </span>\n </v-tooltip>\n </v-card-subtitle>\n <v-row class=\"mt-2 mb-2\">\n <pre ref=\"editor\" class=\"editor\" data-test=\"sender-history\"></pre>\n </v-row>\n </v-card>\n </v-col>\n <v-col v-if=\"screenDefinition\" md=\"auto\">\n <openc3-screen\n v-if=\"screenDefinition\"\n :target=\"screenTarget\"\n :screen=\"screenName\"\n :definition=\"screenDefinition\"\n :keywords=\"keywords\"\n :count=\"screenCount\"\n :showClose=\"false\"\n />\n </v-col>\n </v-row>\n </multipane>\n <div style=\"height: 15px\" />\n\n <v-menu\n v-model=\"contextMenuShown\"\n :position-x=\"x\"\n :position-y=\"y\"\n absolute\n offset-y\n >\n <v-list>\n <v-list-item\n v-for=\"(item, index) in contextMenuOptions\"\n :key=\"index\"\n @click.stop=\"item.action\"\n >\n <v-list-item-title>{{ item.title }}</v-list-item-title>\n </v-list-item>\n </v-list>\n </v-menu>\n <details-dialog\n :target-name=\"targetName\"\n :packet-name=\"commandName\"\n :item-name=\"parameterName\"\n :type=\"'cmd'\"\n v-model=\"viewDetails\"\n />\n\n <v-dialog v-model=\"displayErrorDialog\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Error </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <v-card-text>\n <span v-text=\"status\" />\n </v-card-text>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn\n @click=\"displayErrorDialog = false\"\n color=\"primary\"\n data-test=\"error-dialog-ok\"\n >\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n\n <v-dialog v-model=\"displaySendHazardous\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Hazardous Warning </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <span>\n Warning: Command {{ hazardousCommand }} is Hazardous. Send?\n </span>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn @click=\"cancelHazardousCmd\" outlined> Cancel </v-btn>\n <v-btn @click=\"sendHazardousCmd\" class=\"primary mx-1\">\n Send\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n\n <v-dialog v-model=\"displaySendRaw\" max-width=\"600\">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> Send Raw </span>\n <v-spacer />\n </v-system-bar>\n <v-card-text>\n <div class=\"mx-1\">\n <v-row class=\"my-2\">\n <v-col>Interface:</v-col>\n <v-col>\n <v-select\n solo\n hide-details\n dense\n :items=\"interfaces\"\n item-text=\"label\"\n item-value=\"value\"\n v-model=\"selectedInterface\"\n />\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col>Filename:</v-col>\n <v-col>\n <input type=\"file\" @change=\"selectRawCmdFile($event)\" />\n </v-col>\n </v-row>\n <v-row>\n <v-spacer />\n <v-btn @click=\"cancelRawCmd\" outlined data-test=\"raw-cancel\">\n Cancel\n </v-btn>\n <v-btn @click=\"sendRawCmd\" class=\"primary\" data-test=\"raw-ok\">\n Ok\n </v-btn>\n </v-row>\n </div>\n </v-card-text>\n </v-card>\n </v-dialog>\n </div>\n</template>\n\n<script>\nimport * as ace from 'ace-builds'\nimport 'ace-builds/src-min-noconflict/mode-ruby'\nimport 'ace-builds/src-min-noconflict/theme-twilight'\nimport Api from '@openc3/tool-common/src/services/api'\nimport TargetPacketItemChooser from '@openc3/tool-common/src/components/TargetPacketItemChooser'\nimport CommandParameterEditor from '@/tools/CommandSender/CommandParameterEditor'\nimport Utilities from '@/tools/CommandSender/utilities'\nimport { OpenC3Api } from '@openc3/tool-common/src/services/openc3-api'\nimport DetailsDialog from '@openc3/tool-common/src/components/DetailsDialog'\nimport TopBar from '@openc3/tool-common/src/components/TopBar'\nimport Openc3Screen from '@openc3/tool-common/src/components/Openc3Screen'\nimport 'sprintf-js'\n\nexport default {\n mixins: [Utilities],\n components: {\n DetailsDialog,\n TargetPacketItemChooser,\n CommandParameterEditor,\n TopBar,\n Openc3Screen,\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: 'Range', value: 'range' },\n { text: 'Description', value: 'description' },\n ],\n editor: null,\n targetName: '',\n commandName: '',\n paramList: '',\n lastTargetName: '',\n lastCommandName: '',\n lastParamList: '',\n ignoreRangeChecks: false,\n statesInHex: false,\n showIgnoredParams: false,\n cmdRaw: false,\n ignoredParams: [],\n rows: [],\n interfaces: [],\n selectedInterface: '',\n rawCmdFile: null,\n status: '',\n history: '',\n hazardousCommand: '',\n displaySendHazardous: false,\n displayErrorDialog: false,\n displaySendRaw: false,\n sendDisabled: false,\n api: null,\n viewDetails: false,\n contextMenuShown: false,\n parameterName: '',\n reservedItemNames: [],\n x: 0,\n y: 0,\n contextMenuOptions: [\n {\n title: 'Details',\n action: () => {\n this.contextMenuShown = false\n this.viewDetails = true\n },\n },\n ],\n keywords: [],\n screenTarget: null,\n screenName: null,\n screenDefinition: null,\n screenCount: 0,\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 Api.get('/openc3-api/autocomplete/keywords/screen').then((response) => {\n this.keywords = response.data\n })\n },\n mounted() {\n this.editor = ace.edit(this.$refs.editor)\n this.editor.setTheme('ace/theme/twilight')\n this.editor.session.setMode('ace/mode/ruby')\n this.editor.session.setTabSize(2)\n this.editor.session.setUseWrapMode(true)\n this.editor.setHighlightActiveLine(false)\n this.editor.setValue(localStorage['command_sender__history'])\n this.history = this.editor.getValue().trim()\n this.editor.clearSelection()\n this.editor.focus()\n this.editor.setAutoScrollEditorIntoView(true)\n // This only limits the displayed lines, history can grow in a scrollable window\n this.editor.setOption('maxLines', 30)\n this.editor.setOption('minLines', 1)\n this.editor.container.addEventListener('keydown', (e) => {\n if (e.key === 'Enter') {\n e.preventDefault()\n let command = this.editor.session.getLine(\n this.editor.getCursorPosition().row,\n )\n // Blank commands can happen if typing return on a blank line\n if (command === '') {\n return\n }\n // Remove the cmd(\"\") wrapper\n let firstQuote = command.indexOf('\"')\n let lastQuote = command.lastIndexOf('\"')\n command = command.substr(firstQuote + 1, lastQuote - firstQuote - 1)\n this.sendCmd(command)\n }\n })\n },\n beforeDestroy() {\n this.editor.destroy()\n this.editor.container.remove()\n },\n methods: {\n showContextMenu(e, row) {\n e.preventDefault()\n this.parameterName = row.item.parameter_name\n this.contextMenuShown = false\n this.x = e.clientX\n this.y = e.clientY\n this.$nextTick(() => {\n this.contextMenuShown = true\n })\n },\n convertToValue(param) {\n if (\n param.val_and_states.selected_state !== null &&\n param.val_and_states.selected_state !== 'MANUALLY ENTERED' &&\n this.cmdRaw === false\n ) {\n return param.val_and_states.selected_state_label\n }\n if (typeof param.val_and_states.val !== 'string') {\n return param.val_and_states.val\n }\n\n var str = param.val_and_states.val\n var quotesRemoved = this.removeQuotes(str)\n if (str === quotesRemoved) {\n var upcaseStr = str.toUpperCase()\n if (\n (param.type === 'STRING' || param.type === 'BLOCK') &&\n upcaseStr.startsWith('0X')\n ) {\n var hexStr = upcaseStr.slice(2)\n if (hexStr.length % 2 !== 0) {\n hexStr = '0' + hexStr\n }\n var jstr = { json_class: 'String', raw: [] }\n for (var i = 0; i < hexStr.length; i += 2) {\n var nibble = hexStr.charAt(i) + hexStr.charAt(i + 1)\n jstr.raw.push(parseInt(nibble, 16))\n }\n return jstr\n } else {\n if (upcaseStr === 'INFINITY') {\n return Infinity\n } else if (upcaseStr === '-INFINITY') {\n return -Infinity\n } else if (upcaseStr === 'NAN') {\n return NaN\n } else if (this.isFloat(str)) {\n return parseFloat(str)\n } else if (this.isInt(str)) {\n return parseInt(str)\n } else if (this.isArray(str)) {\n return eval(str)\n } else {\n return str\n }\n }\n } else {\n return quotesRemoved\n }\n },\n\n commandChanged(event) {\n if (\n this.targetName !== event.targetName ||\n this.commandName !== event.packetName\n ) {\n this.targetName = event.targetName\n this.commandName = event.packetName\n // Only updateCmdParams if we're not already in the middle of an update\n if (this.sendDisabled === false) {\n this.updateCmdParams()\n }\n this.$router\n .replace({\n name: 'CommandSender',\n params: {\n target: this.targetName,\n packet: this.commandName,\n },\n })\n // catch the error in case we route to where we already are\n .catch((err) => {})\n }\n },\n\n updateCmdParams() {\n this.sendDisabled = true\n this.ignoredParams = []\n this.rows = []\n this.api\n .get_target(this.targetName)\n .then(\n (target) => {\n this.ignoredParams = target.ignored_parameters\n return this.api.get_cmd(this.targetName, this.commandName)\n },\n (error) => {\n this.displayError('getting ignored parameters', error)\n this.sendDisabled = false\n },\n )\n .then(\n (command) => {\n command.items.forEach((parameter) => {\n if (this.reservedItemNames.includes(parameter.name)) return\n if (\n !this.ignoredParams.includes(parameter.name) ||\n this.showIgnoredParams\n ) {\n let val = parameter.default\n // If the parameter is a string and the default is a string\n // (rather than object for binary) then we quote the string\n // However we don't do this is the parameter has states\n // because that messes up the state selection logic\n if (\n !parameter.states &&\n parameter.data_type === 'STRING' &&\n typeof parameter.default === 'string'\n ) {\n val = `'${val}'`\n }\n if (parameter.required) {\n val = ''\n }\n if (parameter.format_string) {\n val = sprintf(parameter.format_string, parameter.default)\n }\n let range = 'N/A'\n // check using != because compare with null\n if (parameter.minimum != null && parameter.maximum != null) {\n if (parameter.data_type === 'FLOAT') {\n // This is basically to handle the FLOAT MIN and MAX so they\n // don't print out the huge exponential\n if (parameter.minimum < -1e6) {\n parameter.minimum = parameter.minimum.toExponential(3)\n }\n if (parameter.maximum > 1e6) {\n parameter.maximum = parameter.maximum.toExponential(3)\n }\n }\n range = `${parameter.minimum}..${parameter.maximum}`\n }\n this.rows.push({\n parameter_name: parameter.name,\n val_and_states: {\n val: val,\n states: parameter.states,\n },\n description: parameter.description,\n range: range,\n units: parameter.units,\n type: parameter.data_type,\n })\n }\n })\n if (command.screen) {\n this.loadScreen(command.screen[0], command.screen[1]).then(\n (response) => {\n this.screenTarget = command.screen[0]\n this.screenName = command.screen[1]\n this.screenDefinition = response.data\n this.screenCount += 1\n },\n )\n } else {\n if (command.related_items) {\n this.screenTarget = 'LOCAL'\n this.screenName = 'CMDSENDER'\n let screenDefinition = 'SCREEN AUTO AUTO 1.0\\n'\n for (var i = 0; i < command.related_items.length; i++) {\n screenDefinition += `LABELVALUE '${command.related_items[i][0]}' '${command.related_items[i][1]}' '${command.related_items[i][2]}' WITH_UNITS 20\\n`\n }\n this.screenDefinition = screenDefinition\n } else {\n this.screenTarget = null\n this.screenName = null\n this.screenDefinition = null\n }\n this.screenCount += 1\n }\n this.sendDisabled = false\n this.status = ''\n },\n (error) => {\n this.displayError('getting command parameters', error)\n this.sendDisabled = false\n },\n )\n },\n\n createParamList() {\n let paramList = {}\n for (var i = 0; i < this.rows.length; i++) {\n paramList[this.rows[i].parameter_name] = this.convertToValue(\n this.rows[i],\n )\n }\n return paramList\n },\n\n buildCmd() {\n this.sendCmd(this.targetName, this.commandName, this.createParamList())\n },\n\n // Note targetName can also be the entire command to send, e.g. \"INST ABORT\" or\n // \"INST COLLECT with TYPE 0, DURATION 1, OPCODE 171, TEMP 10\" when being\n // sent from the history. In that case commandName and paramList are undefined\n // and the api calls handle that.\n sendCmd(targetName, commandName, paramList) {\n // Store what was actually sent for use in resending hazardous commands\n this.lastTargetName = targetName\n this.lastCommandName = commandName\n this.lastParamList = paramList\n\n this.sendDisabled = true\n let hazardous = false\n let cmd = ''\n this.api.get_cmd_hazardous(targetName, commandName, paramList).then(\n (response) => {\n hazardous = response\n\n if (hazardous) {\n // If it was sent from history it's all in targetName\n if (commandName === undefined) {\n this.hazardousCommand = targetName\n .split(' ')\n .slice(0, 2)\n .join(' ')\n } else {\n this.hazardousCommand = `${targetName} ${commandName}`\n }\n this.displaySendHazardous = true\n } else {\n let obs\n if (this.cmdRaw) {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_raw_no_range_check'\n obs = this.api.cmd_raw_no_range_check(\n targetName,\n commandName,\n paramList,\n )\n } else {\n cmd = 'cmd_raw'\n obs = this.api.cmd_raw(targetName, commandName, paramList, {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n })\n }\n } else {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_no_range_check'\n obs = this.api.cmd_no_range_check(\n targetName,\n commandName,\n paramList,\n )\n } else {\n cmd = 'cmd'\n obs = this.api.cmd(targetName, commandName, paramList, {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n })\n }\n }\n\n obs.then(\n (response) => {\n this.processCmdResponse(cmd, response)\n },\n (error) => {\n this.processCmdResponse(false, error)\n },\n )\n }\n },\n (error) => {\n this.processCmdResponse(false, error)\n },\n )\n },\n\n sendHazardousCmd() {\n this.displaySendHazardous = false\n let obs = ''\n let cmd = ''\n if (this.cmdRaw) {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_raw_no_range_check'\n obs = this.api.cmd_raw_no_checks(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList,\n )\n } else {\n cmd = 'cmd_raw'\n obs = this.api.cmd_raw_no_hazardous_check(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList,\n {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n },\n )\n }\n } else {\n if (this.ignoreRangeChecks) {\n cmd = 'cmd_no_range_check'\n obs = this.api.cmd_no_checks(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList,\n )\n } else {\n cmd = 'cmd'\n obs = this.api.cmd_no_hazardous_check(\n this.lastTargetName,\n this.lastCommandName,\n this.lastParamList,\n {\n // This request could be denied due to out of range but since\n // we're explicitly handling it we don't want the interceptor to fire\n 'Ignore-Errors': '500',\n },\n )\n }\n }\n\n obs.then(\n (response) => {\n this.processCmdResponse(cmd, response)\n },\n (error) => {\n this.processCmdResponse(false, error)\n },\n )\n },\n\n cancelHazardousCmd() {\n this.displaySendHazardous = false\n this.status = 'Hazardous command not sent'\n this.sendDisabled = false\n },\n\n processCmdResponse(cmd_sent, response) {\n var msg = ''\n if (cmd_sent) {\n msg = `${cmd_sent}(\"${response[0]} ${response[1]}`\n var keys = Object.keys(response[2])\n if (keys.length > 0) {\n msg += ' with '\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i]\n var value = this.convertToString(response[2][key])\n // If the response has unquoted string data we add quotes\n if (\n typeof response[2][key] === 'string' &&\n value.charAt(0) !== \"'\" &&\n value.charAt(0) !== '\"'\n ) {\n value = `'${value}'`\n }\n msg += key + ' ' + value\n if (i < keys.length - 1) {\n msg += ', '\n }\n }\n }\n msg += '\")'\n if (!this.history.includes(msg)) {\n value = msg\n if (this.history.length !== 0) {\n value += `\\n${this.history}`\n }\n this.editor.setValue(value)\n this.editor.moveCursorTo(0, 0)\n }\n msg += ' sent.'\n // Add the number of commands sent to the status message\n if (this.status.includes(msg)) {\n let parts = this.status.split('sent.')\n if (parts[1].includes('(')) {\n let num = parseInt(parts[1].substr(2, parts[1].indexOf(')') - 2))\n msg = parts[0] + 'sent. (' + (num + 1) + ')'\n } else {\n msg += ' (2)'\n }\n }\n this.status = msg\n } else {\n var context = 'sending ' + this.targetName + ' ' + this.commandName\n this.displayError(context, response, true)\n }\n // Make a copy of the history\n this.history = this.editor.getValue()\n localStorage['command_sender__history'] = this.editor.getValue()\n this.sendDisabled = false\n },\n\n clearHistory() {\n this.editor.setValue('')\n this.history = ''\n localStorage.removeItem('command_sender__history')\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 loadScreen(target, screen) {\n return Api.get('/openc3-api/screen/' + target + '/' + screen, {\n headers: {\n Accept: 'text/plain',\n },\n })\n },\n\n // setupRawCmd() {\n // this.api.get_interface_names().then(\n // (response) => {\n // var interfaces = []\n // for (var i = 0; i < response.length; i++) {\n // interfaces.push({ label: response[i], value: response[i] })\n // }\n // this.interfaces = interfaces\n // this.selectedInterface = interfaces[0].value\n // this.displaySendRaw = true\n // },\n // (error) => {\n // this.displaySendRaw = false\n // this.displayError('getting interface names', error, true)\n // }\n // )\n // },\n\n // selectRawCmdFile(event) {\n // this.rawCmdFile = event.target.files[0]\n // },\n\n // onLoad(event) {\n // var bufView = new Uint8Array(event.target.result)\n // var jstr = { json_class: 'String', raw: [] }\n // for (var i = 0; i < bufView.length; i++) {\n // jstr.raw.push(bufView[i])\n // }\n\n // this.api.send_raw(this.selectedInterface, jstr).then(\n // () => {\n // this.displaySendRaw = false\n // this.status =\n // 'Sent ' +\n // bufView.length +\n // ' bytes to interface ' +\n // this.selectedInterface\n // },\n // (error) => {\n // this.displaySendRaw = false\n // this.displayError('sending raw data', error, true)\n // }\n // )\n // },\n\n // sendRawCmd() {\n // var self = this\n // var reader = new FileReader()\n // reader.onload = function (e) {\n // self.onLoad(e)\n // }\n // reader.onerror = function (e) {\n // self.displaySendRaw = false\n // var target = e.target\n // self.displayError('sending raw data', target.error, true)\n // }\n // // TBD - use the other event handlers to implement a progress bar for the\n // // file upload. Handle abort as well?\n // //reader.onloadstart = function(e) {}\n // //reader.onprogress = function(e) {}\n // //reader.onloadend = function(e) {}\n // //reader.onabort = function(e) {}\n\n // reader.readAsArrayBuffer(this.rawCmdFile)\n // },\n\n // cancelRawCmd() {\n // this.displaySendRaw = false\n // this.status = 'Raw command not sent'\n // },\n },\n}\n<\/script>\n<style scoped>\n.editor {\n margin-left: 30px;\n height: 50px;\n width: 95%;\n position: relative;\n font-size: 16px;\n}\n</style>\n"]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1b6cf9f98caad56e81571987501eadf177439d37"},i=n[s]||(n[s]={});i[e]&&i[e].hash===t||(i[e]=a);var l=i[e];return cov_16daumg2kr=function(){return l},l}cov_16daumg2kr();const __WEBPACK_DEFAULT_EXPORT__={mixins:[_tools_CommandSender_utilities__WEBPACK_IMPORTED_MODULE_8__.A],components:{DetailsDialog:_openc3_tool_common_src_components_DetailsDialog__WEBPACK_IMPORTED_MODULE_10__.A,TargetPacketItemChooser:_openc3_tool_common_src_components_TargetPacketItemChooser__WEBPACK_IMPORTED_MODULE_6__.A,CommandParameterEditor:_tools_CommandSender_CommandParameterEditor__WEBPACK_IMPORTED_MODULE_7__.A,TopBar:_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_11__.A,Openc3Screen:_openc3_tool_common_src_components_Openc3Screen__WEBPACK_IMPORTED_MODULE_12__.A},data(){return cov_16daumg2kr().f[0]++,cov_16daumg2kr().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:"Range",value:"range"},{text:"Description",value:"description"}],editor:null,targetName:"",commandName:"",paramList:"",lastTargetName:"",lastCommandName:"",lastParamList:"",ignoreRangeChecks:!1,statesInHex:!1,showIgnoredParams:!1,cmdRaw:!1,ignoredParams:[],rows:[],interfaces:[],selectedInterface:"",rawCmdFile:null,status:"",history:"",hazardousCommand:"",displaySendHazardous:!1,displayErrorDialog:!1,displaySendRaw:!1,sendDisabled:!1,api:null,viewDetails:!1,contextMenuShown:!1,parameterName:"",reservedItemNames:[],x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{cov_16daumg2kr().f[1]++,cov_16daumg2kr().s[1]++,this.contextMenuShown=!1,cov_16daumg2kr().s[2]++,this.viewDetails=!0}}],keywords:[],screenTarget:null,screenName:null,screenDefinition:null,screenCount:0,menus:[{label:"Mode",items:[{label:"Ignore Range Checks",checkbox:!0,command:()=>{cov_16daumg2kr().f[2]++,cov_16daumg2kr().s[3]++,this.ignoreRangeChecks=!this.ignoreRangeChecks}},{label:"Display State Values in Hex",checkbox:!0,command:()=>{cov_16daumg2kr().f[3]++,cov_16daumg2kr().s[4]++,this.statesInHex=!this.statesInHex}},{label:"Show Ignored Parameters",checkbox:!0,command:()=>{cov_16daumg2kr().f[4]++,cov_16daumg2kr().s[5]++,this.showIgnoredParams=!this.showIgnoredParams,cov_16daumg2kr().s[6]++,this.updateCmdParams()}},{label:"Disable Parameter Conversions",checkbox:!0,command:()=>{cov_16daumg2kr().f[5]++,cov_16daumg2kr().s[7]++,this.cmdRaw=!this.cmdRaw}}]}]}},created(){cov_16daumg2kr().f[6]++,cov_16daumg2kr().s[8]++,_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_5__.A.get("/openc3-api/autocomplete/reserved-item-names").then((e=>{cov_16daumg2kr().f[7]++,cov_16daumg2kr().s[9]++,this.reservedItemNames=e.data})),cov_16daumg2kr().s[10]++,this.api=new _openc3_tool_common_src_services_openc3_api__WEBPACK_IMPORTED_MODULE_9__.x,cov_16daumg2kr().s[11]++,cov_16daumg2kr().b[1][0]++,this.$route.params.target&&(cov_16daumg2kr().b[1][1]++,this.$route.params.packet)?(cov_16daumg2kr().b[0][0]++,cov_16daumg2kr().s[12]++,this.commandChanged({targetName:this.$route.params.target.toUpperCase(),packetName:this.$route.params.packet.toUpperCase()})):cov_16daumg2kr().b[0][1]++,cov_16daumg2kr().s[13]++,_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_5__.A.get("/openc3-api/autocomplete/keywords/screen").then((e=>{cov_16daumg2kr().f[8]++,cov_16daumg2kr().s[14]++,this.keywords=e.data}))},mounted(){cov_16daumg2kr().f[9]++,cov_16daumg2kr().s[15]++,this.editor=ace_builds__WEBPACK_IMPORTED_MODULE_2__.edit(this.$refs.editor),cov_16daumg2kr().s[16]++,this.editor.setTheme("ace/theme/twilight"),cov_16daumg2kr().s[17]++,this.editor.session.setMode("ace/mode/ruby"),cov_16daumg2kr().s[18]++,this.editor.session.setTabSize(2),cov_16daumg2kr().s[19]++,this.editor.session.setUseWrapMode(!0),cov_16daumg2kr().s[20]++,this.editor.setHighlightActiveLine(!1),cov_16daumg2kr().s[21]++,this.editor.setValue(localStorage["command_sender__history"]),cov_16daumg2kr().s[22]++,this.history=this.editor.getValue().trim(),cov_16daumg2kr().s[23]++,this.editor.clearSelection(),cov_16daumg2kr().s[24]++,this.editor.focus(),cov_16daumg2kr().s[25]++,this.editor.setAutoScrollEditorIntoView(!0),cov_16daumg2kr().s[26]++,this.editor.setOption("maxLines",30),cov_16daumg2kr().s[27]++,this.editor.setOption("minLines",1),cov_16daumg2kr().s[28]++,this.editor.container.addEventListener("keydown",(e=>{if(cov_16daumg2kr().f[10]++,cov_16daumg2kr().s[29]++,"Enter"===e.key){cov_16daumg2kr().b[2][0]++,cov_16daumg2kr().s[30]++,e.preventDefault();let t=(cov_16daumg2kr().s[31]++,this.editor.session.getLine(this.editor.getCursorPosition().row));if(cov_16daumg2kr().s[32]++,""===t)return cov_16daumg2kr().b[3][0]++,void cov_16daumg2kr().s[33]++;cov_16daumg2kr().b[3][1]++;let n=(cov_16daumg2kr().s[34]++,t.indexOf('"')),s=(cov_16daumg2kr().s[35]++,t.lastIndexOf('"'));cov_16daumg2kr().s[36]++,t=t.substr(n+1,s-n-1),cov_16daumg2kr().s[37]++,this.sendCmd(t)}else cov_16daumg2kr().b[2][1]++}))},beforeDestroy(){cov_16daumg2kr().f[11]++,cov_16daumg2kr().s[38]++,this.editor.destroy(),cov_16daumg2kr().s[39]++,this.editor.container.remove()},methods:{showContextMenu(e,t){cov_16daumg2kr().f[12]++,cov_16daumg2kr().s[40]++,e.preventDefault(),cov_16daumg2kr().s[41]++,this.parameterName=t.item.parameter_name,cov_16daumg2kr().s[42]++,this.contextMenuShown=!1,cov_16daumg2kr().s[43]++,this.x=e.clientX,cov_16daumg2kr().s[44]++,this.y=e.clientY,cov_16daumg2kr().s[45]++,this.$nextTick((()=>{cov_16daumg2kr().f[13]++,cov_16daumg2kr().s[46]++,this.contextMenuShown=!0}))},convertToValue(param){if(cov_16daumg2kr().f[14]++,cov_16daumg2kr().s[47]++,cov_16daumg2kr().b[5][0]++,null!==param.val_and_states.selected_state&&(cov_16daumg2kr().b[5][1]++,"MANUALLY ENTERED"!==param.val_and_states.selected_state)&&(cov_16daumg2kr().b[5][2]++,!1===this.cmdRaw))return cov_16daumg2kr().b[4][0]++,cov_16daumg2kr().s[48]++,param.val_and_states.selected_state_label;if(cov_16daumg2kr().b[4][1]++,cov_16daumg2kr().s[49]++,"string"!==typeof param.val_and_states.val)return cov_16daumg2kr().b[6][0]++,cov_16daumg2kr().s[50]++,param.val_and_states.val;cov_16daumg2kr().b[6][1]++;var str=(cov_16daumg2kr().s[51]++,param.val_and_states.val),quotesRemoved=(cov_16daumg2kr().s[52]++,this.removeQuotes(str));if(cov_16daumg2kr().s[53]++,str===quotesRemoved){cov_16daumg2kr().b[7][0]++;var upcaseStr=(cov_16daumg2kr().s[54]++,str.toUpperCase());if(cov_16daumg2kr().s[55]++,cov_16daumg2kr().b[9][0]++,"STRING"!==param.type&&(cov_16daumg2kr().b[9][1]++,"BLOCK"!==param.type)||(cov_16daumg2kr().b[9][2]++,!upcaseStr.startsWith("0X")))return cov_16daumg2kr().b[8][1]++,cov_16daumg2kr().s[65]++,"INFINITY"===upcaseStr?(cov_16daumg2kr().b[11][0]++,cov_16daumg2kr().s[66]++,1/0):(cov_16daumg2kr().b[11][1]++,cov_16daumg2kr().s[67]++,"-INFINITY"===upcaseStr?(cov_16daumg2kr().b[12][0]++,cov_16daumg2kr().s[68]++,-1/0):(cov_16daumg2kr().b[12][1]++,cov_16daumg2kr().s[69]++,"NAN"===upcaseStr?(cov_16daumg2kr().b[13][0]++,cov_16daumg2kr().s[70]++,NaN):(cov_16daumg2kr().b[13][1]++,cov_16daumg2kr().s[71]++,this.isFloat(str)?(cov_16daumg2kr().b[14][0]++,cov_16daumg2kr().s[72]++,parseFloat(str)):(cov_16daumg2kr().b[14][1]++,cov_16daumg2kr().s[73]++,this.isInt(str)?(cov_16daumg2kr().b[15][0]++,cov_16daumg2kr().s[74]++,parseInt(str)):(cov_16daumg2kr().b[15][1]++,cov_16daumg2kr().s[75]++,this.isArray(str)?(cov_16daumg2kr().b[16][0]++,cov_16daumg2kr().s[76]++,eval(str)):(cov_16daumg2kr().b[16][1]++,cov_16daumg2kr().s[77]++,str))))));cov_16daumg2kr().b[8][0]++;var hexStr=(cov_16daumg2kr().s[56]++,upcaseStr.slice(2));cov_16daumg2kr().s[57]++,hexStr.length%2!==0?(cov_16daumg2kr().b[10][0]++,cov_16daumg2kr().s[58]++,hexStr="0"+hexStr):cov_16daumg2kr().b[10][1]++;var jstr=(cov_16daumg2kr().s[59]++,{json_class:"String",raw:[]});cov_16daumg2kr().s[60]++;for(var i=(cov_16daumg2kr().s[61]++,0);i<hexStr.length;i+=2){var nibble=(cov_16daumg2kr().s[62]++,hexStr.charAt(i)+hexStr.charAt(i+1));cov_16daumg2kr().s[63]++,jstr.raw.push(parseInt(nibble,16))}return cov_16daumg2kr().s[64]++,jstr}return cov_16daumg2kr().b[7][1]++,cov_16daumg2kr().s[78]++,quotesRemoved},commandChanged(e){cov_16daumg2kr().f[15]++,cov_16daumg2kr().s[79]++,cov_16daumg2kr().b[18][0]++,this.targetName!==e.targetName||(cov_16daumg2kr().b[18][1]++,this.commandName!==e.packetName)?(cov_16daumg2kr().b[17][0]++,cov_16daumg2kr().s[80]++,this.targetName=e.targetName,cov_16daumg2kr().s[81]++,this.commandName=e.packetName,cov_16daumg2kr().s[82]++,!1===this.sendDisabled?(cov_16daumg2kr().b[19][0]++,cov_16daumg2kr().s[83]++,this.updateCmdParams()):cov_16daumg2kr().b[19][1]++,cov_16daumg2kr().s[84]++,this.$router.replace({name:"CommandSender",params:{target:this.targetName,packet:this.commandName}}).catch((e=>{cov_16daumg2kr().f[16]++}))):cov_16daumg2kr().b[17][1]++},updateCmdParams(){cov_16daumg2kr().f[17]++,cov_16daumg2kr().s[85]++,this.sendDisabled=!0,cov_16daumg2kr().s[86]++,this.ignoredParams=[],cov_16daumg2kr().s[87]++,this.rows=[],cov_16daumg2kr().s[88]++,this.api.get_target(this.targetName).then((e=>(cov_16daumg2kr().f[18]++,cov_16daumg2kr().s[89]++,this.ignoredParams=e.ignored_parameters,cov_16daumg2kr().s[90]++,this.api.get_cmd(this.targetName,this.commandName))),(e=>{cov_16daumg2kr().f[19]++,cov_16daumg2kr().s[91]++,this.displayError("getting ignored parameters",e),cov_16daumg2kr().s[92]++,this.sendDisabled=!1})).then((e=>{if(cov_16daumg2kr().f[20]++,cov_16daumg2kr().s[93]++,e.items.forEach((e=>{if(cov_16daumg2kr().f[21]++,cov_16daumg2kr().s[94]++,this.reservedItemNames.includes(e.name))return cov_16daumg2kr().b[20][0]++,void cov_16daumg2kr().s[95]++;if(cov_16daumg2kr().b[20][1]++,cov_16daumg2kr().s[96]++,cov_16daumg2kr().b[22][0]++,!this.ignoredParams.includes(e.name)||(cov_16daumg2kr().b[22][1]++,this.showIgnoredParams)){cov_16daumg2kr().b[21][0]++;let t=(cov_16daumg2kr().s[97]++,e.default);cov_16daumg2kr().s[98]++,cov_16daumg2kr().b[24][0]++,e.states||(cov_16daumg2kr().b[24][1]++,"STRING"!==e.data_type)||(cov_16daumg2kr().b[24][2]++,"string"!==typeof e.default)?cov_16daumg2kr().b[23][1]++:(cov_16daumg2kr().b[23][0]++,cov_16daumg2kr().s[99]++,t=`'${t}'`),cov_16daumg2kr().s[100]++,e.required?(cov_16daumg2kr().b[25][0]++,cov_16daumg2kr().s[101]++,t=""):cov_16daumg2kr().b[25][1]++,cov_16daumg2kr().s[102]++,e.format_string?(cov_16daumg2kr().b[26][0]++,cov_16daumg2kr().s[103]++,t=sprintf(e.format_string,e.default)):cov_16daumg2kr().b[26][1]++;let n=(cov_16daumg2kr().s[104]++,"N/A");cov_16daumg2kr().s[105]++,cov_16daumg2kr().b[28][0]++,null!=e.minimum&&(cov_16daumg2kr().b[28][1]++,null!=e.maximum)?(cov_16daumg2kr().b[27][0]++,cov_16daumg2kr().s[106]++,"FLOAT"===e.data_type?(cov_16daumg2kr().b[29][0]++,cov_16daumg2kr().s[107]++,e.minimum<-1e6?(cov_16daumg2kr().b[30][0]++,cov_16daumg2kr().s[108]++,e.minimum=e.minimum.toExponential(3)):cov_16daumg2kr().b[30][1]++,cov_16daumg2kr().s[109]++,e.maximum>1e6?(cov_16daumg2kr().b[31][0]++,cov_16daumg2kr().s[110]++,e.maximum=e.maximum.toExponential(3)):cov_16daumg2kr().b[31][1]++):cov_16daumg2kr().b[29][1]++,cov_16daumg2kr().s[111]++,n=`${e.minimum}..${e.maximum}`):cov_16daumg2kr().b[27][1]++,cov_16daumg2kr().s[112]++,this.rows.push({parameter_name:e.name,val_and_states:{val:t,states:e.states},description:e.description,range:n,units:e.units,type:e.data_type})}else cov_16daumg2kr().b[21][1]++})),cov_16daumg2kr().s[113]++,e.screen)cov_16daumg2kr().b[32][0]++,cov_16daumg2kr().s[114]++,this.loadScreen(e.screen[0],e.screen[1]).then((t=>{cov_16daumg2kr().f[22]++,cov_16daumg2kr().s[115]++,this.screenTarget=e.screen[0],cov_16daumg2kr().s[116]++,this.screenName=e.screen[1],cov_16daumg2kr().s[117]++,this.screenDefinition=t.data,cov_16daumg2kr().s[118]++,this.screenCount+=1}));else{if(cov_16daumg2kr().b[32][1]++,cov_16daumg2kr().s[119]++,e.related_items){cov_16daumg2kr().b[33][0]++,cov_16daumg2kr().s[120]++,this.screenTarget="LOCAL",cov_16daumg2kr().s[121]++,this.screenName="CMDSENDER";let n=(cov_16daumg2kr().s[122]++,"SCREEN AUTO AUTO 1.0\n");cov_16daumg2kr().s[123]++;for(var t=(cov_16daumg2kr().s[124]++,0);t<e.related_items.length;t++)cov_16daumg2kr().s[125]++,n+=`LABELVALUE '${e.related_items[t][0]}' '${e.related_items[t][1]}' '${e.related_items[t][2]}' WITH_UNITS 20\n`;cov_16daumg2kr().s[126]++,this.screenDefinition=n}else cov_16daumg2kr().b[33][1]++,cov_16daumg2kr().s[127]++,this.screenTarget=null,cov_16daumg2kr().s[128]++,this.screenName=null,cov_16daumg2kr().s[129]++,this.screenDefinition=null;cov_16daumg2kr().s[130]++,this.screenCount+=1}cov_16daumg2kr().s[131]++,this.sendDisabled=!1,cov_16daumg2kr().s[132]++,this.status=""}),(e=>{cov_16daumg2kr().f[23]++,cov_16daumg2kr().s[133]++,this.displayError("getting command parameters",e),cov_16daumg2kr().s[134]++,this.sendDisabled=!1}))},createParamList(){cov_16daumg2kr().f[24]++;let e=(cov_16daumg2kr().s[135]++,{});cov_16daumg2kr().s[136]++;for(var t=(cov_16daumg2kr().s[137]++,0);t<this.rows.length;t++)cov_16daumg2kr().s[138]++,e[this.rows[t].parameter_name]=this.convertToValue(this.rows[t]);return cov_16daumg2kr().s[139]++,e},buildCmd(){cov_16daumg2kr().f[25]++,cov_16daumg2kr().s[140]++,this.sendCmd(this.targetName,this.commandName,this.createParamList())},sendCmd(e,t,n){cov_16daumg2kr().f[26]++,cov_16daumg2kr().s[141]++,this.lastTargetName=e,cov_16daumg2kr().s[142]++,this.lastCommandName=t,cov_16daumg2kr().s[143]++,this.lastParamList=n,cov_16daumg2kr().s[144]++,this.sendDisabled=!0;let s=(cov_16daumg2kr().s[145]++,!1),a=(cov_16daumg2kr().s[146]++,"");cov_16daumg2kr().s[147]++,this.api.get_cmd_hazardous(e,t,n).then((i=>{if(cov_16daumg2kr().f[27]++,cov_16daumg2kr().s[148]++,s=i,cov_16daumg2kr().s[149]++,s)cov_16daumg2kr().b[34][0]++,cov_16daumg2kr().s[150]++,void 0===t?(cov_16daumg2kr().b[35][0]++,cov_16daumg2kr().s[151]++,this.hazardousCommand=e.split(" ").slice(0,2).join(" ")):(cov_16daumg2kr().b[35][1]++,cov_16daumg2kr().s[152]++,this.hazardousCommand=`${e} ${t}`),cov_16daumg2kr().s[153]++,this.displaySendHazardous=!0;else{let s;cov_16daumg2kr().b[34][1]++,cov_16daumg2kr().s[154]++,this.cmdRaw?(cov_16daumg2kr().b[36][0]++,cov_16daumg2kr().s[155]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[37][0]++,cov_16daumg2kr().s[156]++,a="cmd_raw_no_range_check",cov_16daumg2kr().s[157]++,s=this.api.cmd_raw_no_range_check(e,t,n)):(cov_16daumg2kr().b[37][1]++,cov_16daumg2kr().s[158]++,a="cmd_raw",cov_16daumg2kr().s[159]++,s=this.api.cmd_raw(e,t,n,{"Ignore-Errors":"500"}))):(cov_16daumg2kr().b[36][1]++,cov_16daumg2kr().s[160]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[38][0]++,cov_16daumg2kr().s[161]++,a="cmd_no_range_check",cov_16daumg2kr().s[162]++,s=this.api.cmd_no_range_check(e,t,n)):(cov_16daumg2kr().b[38][1]++,cov_16daumg2kr().s[163]++,a="cmd",cov_16daumg2kr().s[164]++,s=this.api.cmd(e,t,n,{"Ignore-Errors":"500"}))),cov_16daumg2kr().s[165]++,s.then((e=>{cov_16daumg2kr().f[28]++,cov_16daumg2kr().s[166]++,this.processCmdResponse(a,e)}),(e=>{cov_16daumg2kr().f[29]++,cov_16daumg2kr().s[167]++,this.processCmdResponse(!1,e)}))}}),(e=>{cov_16daumg2kr().f[30]++,cov_16daumg2kr().s[168]++,this.processCmdResponse(!1,e)}))},sendHazardousCmd(){cov_16daumg2kr().f[31]++,cov_16daumg2kr().s[169]++,this.displaySendHazardous=!1;let e=(cov_16daumg2kr().s[170]++,""),t=(cov_16daumg2kr().s[171]++,"");cov_16daumg2kr().s[172]++,this.cmdRaw?(cov_16daumg2kr().b[39][0]++,cov_16daumg2kr().s[173]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[40][0]++,cov_16daumg2kr().s[174]++,t="cmd_raw_no_range_check",cov_16daumg2kr().s[175]++,e=this.api.cmd_raw_no_checks(this.lastTargetName,this.lastCommandName,this.lastParamList)):(cov_16daumg2kr().b[40][1]++,cov_16daumg2kr().s[176]++,t="cmd_raw",cov_16daumg2kr().s[177]++,e=this.api.cmd_raw_no_hazardous_check(this.lastTargetName,this.lastCommandName,this.lastParamList,{"Ignore-Errors":"500"}))):(cov_16daumg2kr().b[39][1]++,cov_16daumg2kr().s[178]++,this.ignoreRangeChecks?(cov_16daumg2kr().b[41][0]++,cov_16daumg2kr().s[179]++,t="cmd_no_range_check",cov_16daumg2kr().s[180]++,e=this.api.cmd_no_checks(this.lastTargetName,this.lastCommandName,this.lastParamList)):(cov_16daumg2kr().b[41][1]++,cov_16daumg2kr().s[181]++,t="cmd",cov_16daumg2kr().s[182]++,e=this.api.cmd_no_hazardous_check(this.lastTargetName,this.lastCommandName,this.lastParamList,{"Ignore-Errors":"500"}))),cov_16daumg2kr().s[183]++,e.then((e=>{cov_16daumg2kr().f[32]++,cov_16daumg2kr().s[184]++,this.processCmdResponse(t,e)}),(e=>{cov_16daumg2kr().f[33]++,cov_16daumg2kr().s[185]++,this.processCmdResponse(!1,e)}))},cancelHazardousCmd(){cov_16daumg2kr().f[34]++,cov_16daumg2kr().s[186]++,this.displaySendHazardous=!1,cov_16daumg2kr().s[187]++,this.status="Hazardous command not sent",cov_16daumg2kr().s[188]++,this.sendDisabled=!1},processCmdResponse(e,t){cov_16daumg2kr().f[35]++;var n=(cov_16daumg2kr().s[189]++,"");if(cov_16daumg2kr().s[190]++,e){cov_16daumg2kr().b[42][0]++,cov_16daumg2kr().s[191]++,n=`${e}("${t[0]} ${t[1]}`;var s=(cov_16daumg2kr().s[192]++,Object.keys(t[2]));if(cov_16daumg2kr().s[193]++,s.length>0){cov_16daumg2kr().b[43][0]++,cov_16daumg2kr().s[194]++,n+=" with ",cov_16daumg2kr().s[195]++;for(var a=(cov_16daumg2kr().s[196]++,0);a<s.length;a++){var i=(cov_16daumg2kr().s[197]++,s[a]),l=(cov_16daumg2kr().s[198]++,this.convertToString(t[2][i]));cov_16daumg2kr().s[199]++,cov_16daumg2kr().b[45][0]++,"string"===typeof t[2][i]&&(cov_16daumg2kr().b[45][1]++,"'"!==l.charAt(0))&&(cov_16daumg2kr().b[45][2]++,'"'!==l.charAt(0))?(cov_16daumg2kr().b[44][0]++,cov_16daumg2kr().s[200]++,l=`'${l}'`):cov_16daumg2kr().b[44][1]++,cov_16daumg2kr().s[201]++,n+=i+" "+l,cov_16daumg2kr().s[202]++,a<s.length-1?(cov_16daumg2kr().b[46][0]++,cov_16daumg2kr().s[203]++,n+=", "):cov_16daumg2kr().b[46][1]++}}else cov_16daumg2kr().b[43][1]++;if(cov_16daumg2kr().s[204]++,n+='")',cov_16daumg2kr().s[205]++,this.history.includes(n)?cov_16daumg2kr().b[47][1]++:(cov_16daumg2kr().b[47][0]++,cov_16daumg2kr().s[206]++,l=n,cov_16daumg2kr().s[207]++,0!==this.history.length?(cov_16daumg2kr().b[48][0]++,cov_16daumg2kr().s[208]++,l+=`\n${this.history}`):cov_16daumg2kr().b[48][1]++,cov_16daumg2kr().s[209]++,this.editor.setValue(l),cov_16daumg2kr().s[210]++,this.editor.moveCursorTo(0,0)),cov_16daumg2kr().s[211]++,n+=" sent.",cov_16daumg2kr().s[212]++,this.status.includes(n)){cov_16daumg2kr().b[49][0]++;let e=(cov_16daumg2kr().s[213]++,this.status.split("sent."));if(cov_16daumg2kr().s[214]++,e[1].includes("(")){cov_16daumg2kr().b[50][0]++;let t=(cov_16daumg2kr().s[215]++,parseInt(e[1].substr(2,e[1].indexOf(")")-2)));cov_16daumg2kr().s[216]++,n=e[0]+"sent. ("+(t+1)+")"}else cov_16daumg2kr().b[50][1]++,cov_16daumg2kr().s[217]++,n+=" (2)"}else cov_16daumg2kr().b[49][1]++;cov_16daumg2kr().s[218]++,this.status=n}else{cov_16daumg2kr().b[42][1]++;var r=(cov_16daumg2kr().s[219]++,"sending "+this.targetName+" "+this.commandName);cov_16daumg2kr().s[220]++,this.displayError(r,t,!0)}cov_16daumg2kr().s[221]++,this.history=this.editor.getValue(),cov_16daumg2kr().s[222]++,localStorage["command_sender__history"]=this.editor.getValue(),cov_16daumg2kr().s[223]++,this.sendDisabled=!1},clearHistory(){cov_16daumg2kr().f[36]++,cov_16daumg2kr().s[224]++,this.editor.setValue(""),cov_16daumg2kr().s[225]++,this.history="",cov_16daumg2kr().s[226]++,localStorage.removeItem("command_sender__history")},displayError(e,t,n=(cov_16daumg2kr().b[51][0]++,!1)){cov_16daumg2kr().f[37]++,cov_16daumg2kr().s[227]++,this.status=`Error ${e} due to ${t.name}`,cov_16daumg2kr().s[228]++,cov_16daumg2kr().b[53][0]++,t.message&&(cov_16daumg2kr().b[53][1]++,""!==t.message)?(cov_16daumg2kr().b[52][0]++,cov_16daumg2kr().s[229]++,this.status+=": ",cov_16daumg2kr().s[230]++,this.status+=t.message):cov_16daumg2kr().b[52][1]++,cov_16daumg2kr().s[231]++,n?(cov_16daumg2kr().b[54][0]++,cov_16daumg2kr().s[232]++,this.displayErrorDialog=!0):cov_16daumg2kr().b[54][1]++},loadScreen(e,t){return cov_16daumg2kr().f[38]++,cov_16daumg2kr().s[233]++,_openc3_tool_common_src_services_api__WEBPACK_IMPORTED_MODULE_5__.A.get("/openc3-api/screen/"+e+"/"+t,{headers:{Accept:"text/plain"}})}}}},47:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9375),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4293),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_1__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(4364),_services_api__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2795),_Widget__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(9729);const __WEBPACK_DEFAULT_EXPORT__={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_4__.A],data(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText(){return this.parameters[0]},eval(){return this.parameters[1]}},created(){this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_2__.x},methods:{async onClick(){const lines=this.eval.split(";;"),self=this,screen=this.screen,api=this.api,run_script=this.runScript,runScript=this.runScript;for(let i=0;i<lines.length;i++){const result=eval(lines[i].trim());if(result instanceof Promise)try{await result}catch(err){if(err.message.includes("is Hazardous")){this.lastCmd=err.message.split("\n").pop(),this.displaySendHazardous=!0;while(this.displaySendHazardous)await new Promise((e=>setTimeout(e,500)))}}}},sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd(){this.displaySendHazardous=!1},runScript(e,t=!0,n={}){let s=[];for(const a in n)s.push({key:a,value:n[a],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_3__.A.post(`/script-api/scripts/${e}/run`,{data:{environment:s}}).then((e=>{t&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")}))}}}},9685:(e,t,n)=>{var s=n(6573);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("6163af6a",s,!0,{sourceMap:!1,shadowMode:!1})},3617:(e,t,n)=>{var s=n(9305);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("75a67860",s,!0,{sourceMap:!1,shadowMode:!1})},1727:(e,t,n)=>{var s=n(3076);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("2d4e5d43",s,!0,{sourceMap:!1,shadowMode:!1})},2605:(e,t,n)=>{var s=n(7589);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("28ee4c72",s,!0,{sourceMap:!1,shadowMode:!1})},7613:(e,t,n)=>{var s=n(1365);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("4d90f07e",s,!0,{sourceMap:!1,shadowMode:!1})},9690:(e,t,n)=>{var s=n(2386);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("c5421796",s,!0,{sourceMap:!1,shadowMode:!1})},8358:(e,t,n)=>{var s=n(5454);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("34ccb729",s,!0,{sourceMap:!1,shadowMode:!1})},308:(e,t,n)=>{var s=n(1340);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("277cddc3",s,!0,{sourceMap:!1,shadowMode:!1})},8205:(e,t,n)=>{var s=n(1381);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("04d6f36f",s,!0,{sourceMap:!1,shadowMode:!1})},1e3:(e,t,n)=>{var s=n(9808);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("7de62207",s,!0,{sourceMap:!1,shadowMode:!1})},6251:(e,t,n)=>{var s=n(8963);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("0aeba444",s,!0,{sourceMap:!1,shadowMode:!1})},2272:(e,t,n)=>{var s=n(4088);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("2ed149ef",s,!0,{sourceMap:!1,shadowMode:!1})},6395:(e,t,n)=>{var s=n(6403);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("0e86fc54",s,!0,{sourceMap:!1,shadowMode:!1})},6074:(e,t,n)=>{var s=n(2498);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("24c3e658",s,!0,{sourceMap:!1,shadowMode:!1})},4572:(e,t,n)=>{var s=n(9316);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("588b24c7",s,!0,{sourceMap:!1,shadowMode:!1})},8490:(e,t,n)=>{var s=n(9058);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("8aaadfb6",s,!0,{sourceMap:!1,shadowMode:!1})},6616:(e,t,n)=>{var s=n(9824);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("32eeeee2",s,!0,{sourceMap:!1,shadowMode:!1})},1241:(e,t,n)=>{var s=n(3425);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("6529934c",s,!0,{sourceMap:!1,shadowMode:!1})},1497:(e,t,n)=>{var s=n(3224);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("0138eb9a",s,!0,{sourceMap:!1,shadowMode:!1})},9851:(e,t,n)=>{var s=n(9784);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("3ee48f98",s,!0,{sourceMap:!1,shadowMode:!1})},1723:(e,t,n)=>{var s=n(3666);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("4dd7fda3",s,!0,{sourceMap:!1,shadowMode:!1})},3519:(e,t,n)=>{var s=n(3160);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("2af1c7e9",s,!0,{sourceMap:!1,shadowMode:!1})},519:(e,t,n)=>{var s=n(2574);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("df7a598a",s,!0,{sourceMap:!1,shadowMode:!1})},8299:(e,t,n)=>{var s=n(1923);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("dbafcec6",s,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
2
|
//# sourceMappingURL=729.js.map
|