openc3-cosmos-tool-cmdsender 5.20.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/plugin.txt +2 -2
- data/tools/cmdsender/ArrayWidget-By62tXtU-ef1b996df6e28e34c43b.js +2 -0
- data/tools/cmdsender/BarColumn-Dm3D1Lhp-61f707e75a11029c0e9b.js +1 -0
- data/tools/cmdsender/BlockWidget-CrT45ode-348c3ddc56416a2146ab.js +2 -0
- data/tools/cmdsender/ButtonWidget-CKyBBv6m-6364e961031fb424242e.js +2 -0
- data/tools/cmdsender/CanvasWidget-PqkppHC7-fd79bd4b7029026acc5c.js +1 -0
- data/tools/cmdsender/CanvasdotWidget-BUbJgM2d-fa194d6394bd024c8c98.js +1 -0
- data/tools/cmdsender/CanvasimageWidget-DPVBY7mi-f0142b21f0fd88139b85.js +1 -0
- data/tools/cmdsender/CanvasimagevalueWidget-GX37zzNc-62b424af2b9d98e27ca5.js +1 -0
- data/tools/cmdsender/CanvaslabelWidget-P2_Y6Edw-b1e977b4b7759d576b2f.js +1 -0
- data/tools/cmdsender/CanvaslabelvalueWidget-Cuas1i9P-1d3918f6f84adfff0120.js +1 -0
- data/tools/cmdsender/CanvaslineWidget-BYOYgPya-e27cccd187a4ac905e59.js +1 -0
- data/tools/cmdsender/CanvaslinevalueWidget-3cVJMFo7-3577f5c9be34f37ff633.js +1 -0
- data/tools/cmdsender/CheckbuttonWidget-B3wgSMuB-d628399d9f46a9124cf4.js +1 -0
- data/tools/cmdsender/ComboboxWidget-Dzr4Scvf-80abf76befb1d2223300.js +1 -0
- data/tools/cmdsender/CommandSender-da769df0c665acc1ae58.js +1109 -0
- data/tools/cmdsender/CriticalCmdDialog-BzoO1Mw_-7299829c5253b39104cb.js +1 -0
- data/tools/cmdsender/DateWidget-BWh76Ibb-c0656ca3fd2db9656784.js +1 -0
- data/tools/cmdsender/DetailsDialog-EWjtBjle-91cf88ec81aca5f7f102.js +1 -0
- data/tools/cmdsender/DynamicWidget-m9EliUR2-3ed383238855e9d89b65.js +1 -0
- data/tools/cmdsender/FormatvalueWidget-Rk0_eeIm-b88e60c978fbcb4abfc1.js +1 -0
- data/tools/cmdsender/GraphWidget-LqekkNDr-2595500f5dc44b5a1fd4.js +1 -0
- data/tools/cmdsender/HorizontalWidget-BcfJ24Zn-7df1a9c1a9406fee3bc4.js +1 -0
- data/tools/cmdsender/HorizontalboxWidget-CQy1Hv9E-cb7847c9da6a2eb1b325.js +1 -0
- data/tools/cmdsender/HorizontallineWidget-BdlNB951-13449b3286fb177db656.js +1 -0
- data/tools/cmdsender/IframeWidget-BBaDrRLo-205665c65325fc71e124.js +1 -0
- data/tools/cmdsender/ImageLoader-CDLQopxJ-4c3bf06f2394935888d1.js +1 -0
- data/tools/cmdsender/ImageviewerWidget-BgO3Pq6I-0883370ad21501128eb7.js +1 -0
- data/tools/cmdsender/LabelWidget-B_C6lKOE-19e071c13acf72487206.js +1 -0
- data/tools/cmdsender/LabelledWidget-B_UGivhr-69437ddf1d915a331241.js +1 -0
- data/tools/cmdsender/LabelprogressbarWidget-BJWCmsYC-302c84efb6e5b94e45ef.js +1 -0
- data/tools/cmdsender/LabelsparklineWidget-DILCIh3q-f175d1ebf16bcb26b559.js +1 -0
- data/tools/cmdsender/LabelvalueWidget-CCZd1NXE-1e7c14b0cd1e2f34caab.js +1 -0
- data/tools/cmdsender/LabelvaluedescWidget-Bsllq8W6-e24fb554e1c7f60256b2.js +1 -0
- data/tools/cmdsender/LabelvaluelimitsbarWidget-BV-cfaD--1b7c02f3f4a64d0b20fc.js +1 -0
- data/tools/cmdsender/LabelvaluelimitscolumnWidget-DwA0eRBw-a36c733c1a100b9ef2cb.js +1 -0
- data/tools/cmdsender/LabelvaluerangebarWidget-3GDJz3dj-5edf485853463cdd7bdc.js +1 -0
- data/tools/cmdsender/Layout-klOVw-YN-5258887ddded63d92c90.js +1 -0
- data/tools/cmdsender/LedWidget-BAt02s0J-ee955f5837eb08c8c5b8.js +1 -0
- data/tools/cmdsender/LimitsbarWidget-JJiyzZjb-deabf599a5f021fb6643.js +1 -0
- data/tools/cmdsender/LimitscolorWidget-CYzXKbYd-fc74784cfd9fbce0d9b0.js +1 -0
- data/tools/cmdsender/LimitscolumnWidget-Cd76tBo7-5899f502fe0a778ce00f.js +1 -0
- data/tools/cmdsender/LinegraphWidget-DWRtO6Ej-2886f1ae49e4fe604ab4.js +1 -0
- data/tools/cmdsender/MatrixbycolumnsWidget-cwsyjNV2-fa7489fb9bcce39d54b3.js +1 -0
- data/tools/cmdsender/ProgressbarWidget-CYDziFej-78fe983908f2d55b8506.js +1 -0
- data/tools/cmdsender/RadiobuttonWidget-U6jcQZoD-28e2f2e59de016f7a467.js +1 -0
- data/tools/cmdsender/RadiogroupWidget-HTPJnsB0-673ba05cc1221683c64a.js +1 -0
- data/tools/cmdsender/RangebarWidget-DW0FJK6y-15a1d235dab1f5389508.js +1 -0
- data/tools/cmdsender/RollupWidget-B2qrx55f-e7877648fd0f7ebeaea7.js +1 -0
- data/tools/cmdsender/ScrollwindowWidget-CwIDxgO6-22c14acbcc8ae1aed916.js +1 -0
- data/tools/cmdsender/SignalWidget-Bosa3AbW-b3cc82444c17e3494e4d.js +1 -0
- data/tools/cmdsender/SpacerWidget-DYAlt5mt-79646b208c68ad086279.js +1 -0
- data/tools/cmdsender/SparklineWidget-CDrVXOFV-a2a5cd9bc98f09e6f5c4.js +1 -0
- data/tools/cmdsender/TabbookWidget-DDdlzCkv-b28195cb05ace2609c5f.js +1 -0
- data/tools/cmdsender/TextboxWidget-5euFelEq-198962282d99de2627fa.js +1 -0
- data/tools/cmdsender/TextfieldWidget-BFripYeh-36195e3160240dab144f.js +1 -0
- data/tools/cmdsender/TimeWidget-BBSbsUYJ-b8771bc53294d10f60d5.js +1 -0
- data/tools/cmdsender/TitleWidget-p8cjo-Bs-2538cd241465b2ac8f9c.js +1 -0
- data/tools/cmdsender/VWidget-Dmqf_jKM-4eabf4760e3b6f5e10b6.js +1 -0
- data/tools/cmdsender/ValueWidget-CZh7JWwT-67ae55abc70e2d6939b1.js +1 -0
- data/tools/cmdsender/ValuelimitsbarWidget-DU7ybswC-fc8834eac88586459180.js +1 -0
- data/tools/cmdsender/ValuelimitscolumnWidget-DMw-h5jM-d23e707bc9df0603b509.js +1 -0
- data/tools/cmdsender/ValuerangebarWidget-DPpofDpA-6eac85aa54ece67d19f2.js +1 -0
- data/tools/cmdsender/VerticalWidget-Ch7VAEmz-eb59265f50227b17e04e.js +1 -0
- data/tools/cmdsender/VerticalboxWidget-DYx-TFT4-5edc625784a41f39e567.js +1 -0
- data/tools/cmdsender/Widget-orNSvnOh-d8c2fbf4a342bb2dc82a.js +1 -0
- data/tools/cmdsender/main-da5f80eb5643ef8690b1.js +1423 -0
- data/tools/cmdsender/main.js +1 -0
- metadata +69 -11
- data/tools/cmdsender/index.html +0 -4
- data/tools/cmdsender/js/241.js +0 -2
- data/tools/cmdsender/js/241.js.map +0 -1
- data/tools/cmdsender/js/272.js +0 -2
- data/tools/cmdsender/js/272.js.map +0 -1
- data/tools/cmdsender/js/592.js +0 -18
- data/tools/cmdsender/js/592.js.map +0 -1
- data/tools/cmdsender/js/app.js +0 -2
- data/tools/cmdsender/js/app.js.map +0 -1
data/tools/cmdsender/js/241.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_cmdsender"]=self["webpackChunk_openc3_cosmos_tool_cmdsender"]||[]).push([[241],{7448:(e,t,n)=>{var s={"./ArrayWidget.vue":1951,"./BlockWidget.vue":6931,"./ButtonWidget.vue":9021,"./CanvasWidget.vue":2430,"./CanvasdotWidget.vue":6614,"./CanvasimageWidget.vue":3732,"./CanvasimagevalueWidget.vue":3511,"./CanvaslabelWidget.vue":6631,"./CanvaslabelvalueWidget.vue":8211,"./CanvaslineWidget.vue":4352,"./CanvaslinevalueWidget.vue":4291,"./CheckbuttonWidget.vue":5733,"./ComboboxWidget.vue":3835,"./DateWidget.vue":5192,"./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":1570,"./LimitsbarWidget.vue":6198,"./LimitscolorWidget.vue":8518,"./LimitscolumnWidget.vue":9178,"./LinegraphWidget.vue":3458,"./MatrixbycolumnsWidget.vue":5043,"./ProgressbarWidget.vue":6825,"./RadiobuttonWidget.vue":5993,"./RadiogroupWidget.vue":5758,"./RangebarWidget.vue":5736,"./RollupWidget.vue":1783,"./ScrollwindowWidget.vue":9769,"./SectionheaderWidget.vue":2959,"./SignalWidget.vue":1533,"./SpacerWidget.vue":773,"./SparklineWidget.vue":6115,"./TabbookWidget.vue":2926,"./TextboxWidget.vue":7462,"./TextfieldWidget.vue":7540,"./TimeWidget.vue":3660,"./TitleWidget.vue":6525,"./ValueWidget.vue":2932,"./ValuelimitsbarWidget.vue":1279,"./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(6484),a=n(6070),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){let 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"}));let 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:()=>i});n(4293),n(8715);var s=n(7903),a=n(9729);n(9471);const i={mixins:[a.A,s.A],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},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),this.timeZone=this.screen.timeZone)}},destroyed(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType(){let e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue(e){if(e&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED")))return e=e.replaceAll("/","-"),this.formatUtcToLocal(new Date(e),this.timeZone);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(let 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(l){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(l){let e=new Error;throw l.response?(e.name=l.response.data.error.data.class,e.message=l.response.data.error.data.message,e.object=l.response.data.error):l.request?(e.name="Request error",e.message="Request error, no response received"):e.name="Unknown error",e}}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,t=!1){return this.exec("get_all_tlm_names",[e],{hidden:t})}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){let e=a.length,t=null;for(let n=0;n<e;n++)t=this.decode_openc3_type(a[n][1]),null!==t&&(a[n][1]=t)}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);let i=a[0].length,l=null;for(let 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)){let e=new Error;throw e.name="TypeError",e.message=`Invalid data type ${t}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,e}a=await this.exec("tlm",[e],{type:t})}else a=await this.exec("tlm",[e,t,n],{type:s});let i=this.decode_openc3_type(a);return null!==i&&(a=i),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,t=!1){return this.exec("get_all_cmd_names",[e],{hidden:t})}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){let i=null;for(let 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,s={}){return void 0===t?this.exec("get_cmd_hazardous",e,{},s):this._cmd("get_cmd_hazardous",e,t,n,s)}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,s={}){return void 0===t?this.exec("cmd_no_range_check",e,{},s):this._cmd("cmd_no_range_check",e,t,n,s)}cmd_raw(e,t,n,s={}){return void 0===t?this.exec("cmd_raw",e,{},s):this._cmd("cmd_raw",e,t,n,s)}cmd_raw_no_range_check(e,t,n,s={}){return void 0===t?this.exec("cmd_raw_no_range_check",e,{},s):this._cmd("cmd_raw_no_range_check",e,t,n,s)}cmd_no_hazardous_check(e,t,n,s={}){return void 0===t?this.exec("cmd_no_hazardous_check",e,{},s):this._cmd("cmd_no_hazardous_check",e,t,n,s)}cmd_no_checks(e,t,n,s={}){return void 0===t?this.exec("cmd_no_checks",e,{},s):this._cmd("cmd_no_checks",e,t,n,s)}cmd_raw_no_hazardous_check(e,t,n,s={}){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e,{},s):this._cmd("cmd_raw_no_hazardous_check",e,t,n,s)}cmd_raw_no_checks(e,t,n,s={}){return void 0===t?this.exec("cmd_raw_no_checks",e,{},s):this._cmd("cmd_raw_no_checks",e,t,n,s)}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("")}}}},7903:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(4293);var s=n(686),a=n(5475),i=n(5179),l=n(2378);const r="yyyy-MM-dd",o="HH:mm:ss.SSS",c="HH:mm:ss",d=`${r} ${o}`,u={methods:{parseDateTime(e,t){return e.includes(" ")&&(e=e.replace(" ","T")),t&&"UTC"===t&&(e+="Z"),Date.parse(e)},formatUtcToLocal(e,t){return t&&"local"!==t?(0,s.GP)(e,d):(0,s.GP)((0,a.Y)(e,e.getTimezoneOffset()),d)},formatDateTime(e,t){return t&&"local"!==t?(0,l.qD)(e,t,d):(0,s.GP)(e,d)},formatDate:function(e,t){return t&&"local"!==t?(0,l.qD)(e,this.timeZone,r):(0,s.GP)(e,r)},formatTime:function(e,t,n=o){return t&&"local"!==t?(0,l.qD)(e,this.timeZone,n):(0,s.GP)(e,n)},formatTimeHMS:function(e,t){return this.formatTime(e,t,c)},formatTimestamp(e,t){return this.formatDateTime((0,i.H)(e),t)},formatSeconds(e,t){return this.formatDateTime(new Date(1e3*e),t)},formatNanoseconds(e,t){return this.formatDateTime(new Date(parseInt(e)/1e6),t)}}}},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},1241:(e,t,n)=>{"use strict";function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",t="fa43a9ff7242f86aae24b9bc21d4d34d35fbaf0f",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:6714}},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:3816},end:{line:1,column:3842}},17:{start:{line:1,column:3995},end:{line:1,column:4021}},18:{start:{line:1,column:4502},end:{line:1,column:4532}},19:{start:{line:1,column:4718},end:{line:1,column:4746}},20:{start:{line:1,column:5545},end:{line:1,column:5567}},21:{start:{line:1,column:6065},end:{line:1,column:6090}},22:{start:{line:1,column:6306},end:{line:1,column:6341}},23:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column: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:3800},end:{line:1,column:3801}},loc:{start:{line:1,column:3815},end:{line:1,column:3843}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:3979},end:{line:1,column:3980}},loc:{start:{line:1,column:3994},end:{line:1,column:4022}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:4485},end:{line:1,column:4486}},loc:{start:{line:1,column:4501},end:{line:1,column:4533}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:4702},end:{line:1,column:4703}},loc:{start:{line:1,column:4717},end:{line:1,column:4747}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:5529},end:{line:1,column:5530}},loc:{start:{line:1,column:5544},end:{line:1,column:5568}},line:1},17:{name:"(anonymous_17)",decl:{start:{line:1,column:6049},end:{line:1,column:6050}},loc:{start:{line:1,column:6064},end:{line:1,column:6091}},line:1},18:{name:"(anonymous_18)",decl:{start:{line:1,column:6289},end:{line:1,column:6290}},loc:{start:{line:1,column:6305},end:{line:1,column:6342}},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,23:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fa43a9ff7242f86aae24b9bc21d4d34d35fbaf0f"},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("critical-cmd-dialog",{attrs:{uuid:e.criticalCmdUuid,cmdString:e.criticalCmdString,cmdUser:e.criticalCmdUser},model:{value:e.displayCriticalCmd,callback:function(t){s().f[12]++,s().s[16]++,e.displayCriticalCmd=t},expression:"displayCriticalCmd"}}),e._v(" "),t("v-dialog",{attrs:{"max-width":"600"},model:{value:e.displayErrorDialog,callback:function(t){s().f[13]++,s().s[17]++,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[14]++,s().s[18]++,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[15]++,s().s[19]++,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[16]++,s().s[20]++,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[17]++,s().s[21]++,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[18]++,s().s[22]++,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[23]++,[]),l=n(5771);const r=l.A;n(2194);var o=n(2401),c=(0,o.A)(r,a,i,!1,null,"77aad130",null);const d=c.exports},7203:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var s=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{persistent:e.persistent,width:"600"},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("v-toolbar",{attrs:{height:"24"}},[t("v-spacer"),e._v(" "),t("span",[e._v(" Waiting for Critical Command Approval ")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("v-container",{attrs:{fluid:""}},[t("v-alert",{attrs:{type:"error",dismissible:""},model:{value:e.error,callback:function(t){e.error=t},expression:"error"}},[e._v("\n "+e._s(e.errorText)+"\n ")]),e._v(" "),t("v-row",{staticClass:"pt-4",staticStyle:{color:"white"}},[e._v("User "+e._s(e.cmdUser)+" is waiting for approval to execute:\n ")]),e._v(" "),t("v-row",{staticClass:"pa-4",staticStyle:{color:"white"}},[e._v(e._s(e.cmdString))]),e._v(" "),t("v-row",{staticClass:"text-subtitle-2"},[e._v("UUID: "+e._s(e.uuid))]),e._v(" "),e.canApprove?e._e():t("v-row",[t("v-text-field",{attrs:{label:"Username","data-test":"username"},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),e._v(" "),e.canApprove?e._e():t("v-row",[t("v-text-field",{attrs:{type:"password",label:"Password","data-test":"password"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),e._v(" "),t("v-row",{staticClass:"pt-2"},[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"secondary",outlined:"",disabled:e.disableButtons,"data-test":"reject"},on:{click:function(t){return t.preventDefault(),e.reject.apply(null,arguments)}}},[e._v("\n Reject\n ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary",disabled:e.disableButtons,"data-test":"approve"},on:{click:function(t){return t.preventDefault(),e.approve.apply(null,arguments)}}},[e._v("\n Approve\n ")])],1)],1)],1)],1)],1)},a=[],i=n(3816),l=n(2795);const r={props:{uuid:String,cmdUser:String,cmdString:String,persistent:{type:Boolean,default:!1},value:Boolean},data(){return{updater:null,username:null,password:null,canApprove:!1,error:!1,errorText:""}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},formValid:function(){return!!this.password&&!!this.username},disableButtons:function(){return!this.formValid&&!this.canApprove}},beforeDestroy(){clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null},watch:{value:function(e,t){e?(l.A.get("/openc3-api/criticalcmd/canapprove/"+this.uuid).then((e=>{"ok"===e.data.status&&(this.canApprove=!0)})),this.updater=setInterval((()=>{this.uuid?l.A.get("/openc3-api/criticalcmd/status/"+this.uuid).then((e=>{"WAITING"!==e.data.status&&(this.$emit("status",e.data.status),this.show=!1)})):this.show=!1}),1e3)):(clearInterval(this.updater),this.updater=null,this.canApprove=!1,this.username=null,this.password=null)}},methods:{async approve(){if(this.canApprove)await l.A.post("/openc3-api/criticalcmd/approve/"+this.uuid,{}).then((e=>{200==e.status&&(this.$emit("status","APPROVED"),this.show=!1,this.error=!1)}));else{let e=await this.getKeycloakToken();i.A.post("/openc3-api/criticalcmd/approve/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3}).then((e=>{this.$emit("status","APPROVED"),this.show=!1,this.error=!1})).catch((e=>{this.error=!0,e.response?this.errorText=e.response.data.message:this.errorText=e.message}))}},async reject(){if(this.canApprove)await l.A.post("/openc3-api/criticalcmd/reject/"+this.uuid,{}).then((e=>{200==e.status&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)}));else{let e=await this.getKeycloakToken();const t=await i.A.post("/openc3-api/criticalcmd/reject/"+this.uuid,{},{headers:{Authorization:e,"Content-Type":"application/json"},params:{scope:window.openc3Scope},timeout:5e3});200==t.status&&(this.$emit("status","REJECTED"),this.show=!1,this.error=!1)}},async getKeycloakToken(){const e=await i.A.post(localStorage.keycloakUrl+"/realms/"+localStorage.keycloakRealm+"/protocol/openid-connect/token",{username:this.username,password:this.password,client_id:localStorage.keycloakClientId,grant_type:"password",scope:"openid"},{headers:{"Content-Type":"application/x-www-form-urlencoded"},timeout:5e3});return e.data.access_token}}},o=r;n(4815);var c=n(2401),d=(0,c.A)(o,s,a,!1,null,"3c8984fe",null);const u=d.exports},3720:(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(4849);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"18fc7350",null);const d=c.exports},2110:(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(" "),e.editGraph?t("graph-edit-dialog",{attrs:{title:e.title,"legend-position":e.legendPosition,items:e.items,"graph-min-y":e.graphMinY,"graph-max-y":e.graphMaxY,lines:e.lines,colors:e.colors,"start-date-time":e.graphStartDateTime,"end-date-time":e.graphEndDateTime,"time-zone":e.timeZone},on:{remove:function(t){return e.removeItems([t])},ok:e.editGraphClose,cancel:function(t){e.editGraph=!1}},model:{value:e.editGraph,callback:function(t){e.editGraph=t},expression:"editGraph"}}):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("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.clearData([e.selectedItem])}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-eraser")])],1),e._v(" "),t("v-list-item-content",[t("v-list-item-title",[e._v(" Clear ")])],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(),e._v(" "),t("tr",{ref:"info",staticClass:"u-series"},[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("v-icon",e._g(e._b({staticClass:"info-tooltip"},"v-icon",s,!1),n),[e._v("\n mdi-information-variant-circle\n ")])]}}])},[e._v(" "),t("span",[e._v("\n Click item to toggle"),t("br"),e._v("\n Right click to edit\n ")])])],1)],1)},a=[],i=(n(9375),n(8605),function(){var e=this,t=e._self._c;return 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("cancel")}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[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.graph.title,callback:function(t){e.$set(e.graph,"title",t)},expression:"graph.title"}})],1)],1),e._v(" "),t("v-col",[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.graph.legendPosition,callback:function(t){e.$set(e.graph,"legendPosition",t)},expression:"graph.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 now.\n ")]),e._v(" "),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:"Start Date",name:`date${Date.now()}`,rules:[e.rules.date],type:"date"},model:{value:e.startDate,callback:function(t){e.startDate=t},expression:"startDate"}},n))]}}])})],1),e._v(" "),t("v-col",[t("v-text-field",{attrs:{label:"Start Time",name:`time${Date.now()}`,rules:[e.rules.time],type:"time",step:"1"},model:{value:e.startTime,callback:function(t){e.startTime=t},expression:"startTime"}})],1)],1),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("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:"End Date",name:`date${Date.now()}`,rules:[e.rules.date],type:"date"},model:{value:e.endDate,callback:function(t){e.endDate=t},expression:"endDate"}},n))]}}])})],1),e._v(" "),t("v-col",[t("v-text-field",{attrs:{label:"End Time",name:`time${Date.now()}`,rules:[e.rules.time],type:"time",step:"1"},model:{value:e.endTime,callback:function(t){e.endTime=t},expression:"endTime"}})],1)],1)],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.graph.graphMinY,callback:function(t){e.$set(e.graph,"graphMinY",t)},expression:"graph.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.graph.graphMaxY,callback:function(t){e.$set(e.graph,"graphMaxY",t)},expression:"graph.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.graph.lines,"items-per-page":5,"footer-props":{itemsPerPageOptions:[5]}},scopedSlots:e._u([{key:"item.yValue",fn:function({item:n}){return[t("v-edit-dialog",{attrs:{"return-value":n.yValue},on:{"update:returnValue":function(t){return e.$set(n,"yValue",t)},"update:return-value":function(t){return e.$set(n,"yValue",t)}},scopedSlots:e._u([{key:"input",fn:function(){return[t("v-text-field",{attrs:{label:"Edit","single-line":"",counter:""},model:{value:n.yValue,callback:function(t){e.$set(n,"yValue",t)},expression:"item.yValue"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.yValue)+"\n ")])]}},{key:"item.color",fn:function({item:n}){return[t("v-edit-dialog",{attrs:{"return-value":n.color},on:{"update:returnValue":function(t){return e.$set(n,"color",t)},"update:return-value":function(t){return e.$set(n,"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.color,callback:function(t){e.$set(n,"color",t)},expression:"item.color"}})]},proxy:!0}],null,!0)},[e._v("\n "+e._s(n.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.$emit("remove",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",{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:e.closeOk}},[e._v(" Ok ")])],1)],1)],1)}),l=[],r=n(7903),o=n(3221),c=n(6484),d=n(8494);const u={props:{value:Boolean,title:{type:String,required:!0},legendPosition:{type:String,required:!0},items:{type:Array,required:!0},graphMinY:{type:Number,required:!0},graphMaxY:{type:Number,required:!0},lines:{type:Array,required:!0},colors:{type:Array,required:!0},startDateTime:{type:Number,required:!0},endDateTime:{type:Number,required:!0},timeZone:{type:String,required:!0}},mixins:[r.A],data:function(){return{tab:0,graph:{},legendPositions:["top","bottom","left","right"],startDate:null,startTime:null,endDate:null,endTime:null,lineHeaders:[{text:"Y Value",value:"yValue"},{text:"Color",value:"color"},{text:"Actions",value:"actions",sortable:!1}],itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],rules:{date:e=>{if(!e)return!0;try{return(0,o.f)((0,c.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,o.f)((0,c.qg)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}},editItems:function(){if(!this.items)return[];let e=0;return this.items.map((t=>(e+=1,{...t,itemId:e})))}},created(){if(this.graph={title:this.title,legendPosition:this.legendPosition,items:this.items,graphMinY:this.graphMinY,graphMaxY:this.graphMaxY,lines:[...this.lines]},this.startDateTime){let e=(0,d.a)(this.startDateTime/1e6);this.startDate=this.formatDate(e,this.timeZone),this.startTime=this.formatTimeHMS(e,this.timeZone)}else{let e=new Date-36e5;this.startDate=this.formatDate(e,this.timeZone),this.startTime=this.formatTimeHMS(e,this.timeZone)}if(this.endDateTime){let e=(0,d.a)(this.endDateTime/1e6);this.endDate=this.formatDate(e,this.timeZone),this.endTime=this.formatTimeHMS(e,this.timeZone)}},methods:{closeOk(){this.startDate&&this.startTime?this.graph.startDateTime=this.startDate+" "+this.startTime:this.graph.startDateTime=null,this.endDate&&this.endTime?this.graph.endDateTime=this.endDate+" "+this.endTime:this.graph.endDateTime=null,this.$emit("ok",this.graph)},addLine(){this.graph.lines.push({yValue:0,color:"white"})},removeLine(e){let t=this.graph.lines.indexOf(e);this.graph.lines.splice(t,1)}}},m=u;n(8474);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 T={components:{GraphEditDialog: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},timeZone:{type:String,default:"local"}},mixins:[r.A],data(){return{lines:[],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",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},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{let s=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&"local"!==this.timeZone&&(s=this.timeZone),n={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:e=>w.A.tzDate(new Date(1e3*e),s),series:[{label:"Time",value:(e,t)=>null==t?"--":this.formatSeconds(t,this.timeZone)},...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}));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)})),n.querySelector("tbody").appendChild(this.$refs.info)}]}},this.graph=new w.A(n,this.data,document.getElementById(`chart${this.id}`));const a={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:e=>w.A.tzDate(new Date(1e3*e),s),series:[...t],cursor:{y:!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(a,this.data,document.getElementById(`overview${this.id}`)),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.resize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.resize)},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){e&&"string"===typeof e?(this.graphStartDateTime=1e6*this.parseDateTime(this.graphStartDateTime,this.timeZone),this.graphStartDateTime!==t&&(this.needToUpdate=!0)):null===e&&t&&(this.graphStartDateTime=null,this.needToUpdate=!0)},graphEndDateTime:function(e,t){e&&"string"===typeof e?(this.graphEndDateTime=1e6*this.parseDateTime(this.graphEndDateTime,this.timeZone),this.graphEndDateTime!==t&&(this.needToUpdate=!0)):null===e&&t&&(this.graphEndDateTime=null,this.needToUpdate=!0)}},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},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(e){this.editGraph=!1,this.title=e.title,this.legendPosition=e.legendPosition,this.graphMinY=e.graphMinY,this.graphMaxY=e.graphMaxY,this.lines=[...e.lines],this.graphStartDateTime=e.startDateTime,this.graphEndDateTime=e.endDateTime,this.$nextTick((()=>{if(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")},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("expansion")[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-42;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&&0!==t||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("resize"),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})}))},clearAllData:function(){this.data[0]=[],this.clearData(this.items)},clearData:function(e){for(const t of e.map(this.subscriptionKey)){let e=this.indexes[t];this.data[e]=Array(this.data[0].length).fill(null),this.graph.setData(this.data),this.overview&&this.overview.setData(this.data)}2===this.data.length&&(this.data[0]=[],this.graph.setData(this.data),this.overview.setData(this.data))},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("resize"),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=T;n(5212),n(6496);var I=(0,h.A)(S,s,a,!1,null,"6eced92a",null);const D=I.exports},9221:(e,t,n)=>{"use strict";n.d(t,{A:()=>T});var s=function(){var e=this,t=e._self._c;return t("div",{ref:"bar",style:e.computedStyle},[t("v-card",{staticStyle:{cursor:"default"},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},timeZone:{type:String,default:"local"}},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(7324);var E=(0,b.A)(N,s,a,!1,null,"fae32f12",null);const T=E.exports},3103:(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.chooseItem&&e.itemIsArray()?t("v-col",{staticClass:"select",attrs:{cols:"1","data-test":"array-index"}},[t("v-combobox",{attrs:{label:"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":"140px"},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":"140px"},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},hidden:{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.updatePackets():(this.selectedTargetName=this.targetNames[0].value,this.targetNameChanged(this.selectedTargetName)),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.targetNameChanged(this.selectedTargetName)},chooseItem:function(e,t){e?this.updateItems():this.itemNames=[]}},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,this.hidden).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(8711);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"1ea03776",null);const d=c.exports},7294:(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",{staticClass:"list-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",{staticClass:"list-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(5699);var r=n(2401),o=(0,r.A)(l,s,a,!1,null,"0af23388",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(3720);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(3720);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},9021:(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),e._v(" "),t("critical-cmd-dialog",{attrs:{uuid:e.criticalCmdUuid,cmdString:e.criticalCmdString,cmdUser:e.criticalCmdUser},model:{value:e.displayCriticalCmd,callback:function(t){e.displayCriticalCmd=t},expression:"displayCriticalCmd"}})],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},3732:(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",{style:e.pointerStyle,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%"},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},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},3511:(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,style:e.pointerStyle,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"}],style:e.pointerStyle,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))},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},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},5192:(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("v-text-field",{style:e.computedStyle,attrs:{label:e.label,type:"date","hide-details":""},model:{value:e.dateValue,callback:function(t){e.dateValue=t},expression:"dateValue"}})},a=[],i=n(9729),l=n(7903);const r={mixins:[i.A,l.A],data(){return{label:"Date",dateValue:""}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.parameters[0]&&(this.label=this.parameters[0]),this.dateValue=this.formatDate(new Date,this.screen.timeZone)},methods:{text(){return this.dateValue},date(){return this.dateValue}}},o=r;var c=n(2401),d=(0,c.A)(o,s,a,!1,null,null,null);const u=d.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(1570);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(6198),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},1570:(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-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({staticClass:"led mt-1",style:e.cssProps},"div",s,!1),n))]}}])},[e._v(" "),t("span",[e._v(e._s(e.fullName))])])},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}},fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]}},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(4636);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"549fe176",null);const d=c.exports},6198:(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-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:s}){return[t("div",e._g(e._b({staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},"div",s,!1),n),[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"})])])]}}])},[e._v(" "),t("span",[e._v(e._s(e.limitsRange))])])},a=[],i=n(2754);const l={mixins:[i.A],data(){return{width:160,height:22}},computed:{limitsRange(){let e=this.limitsSettings[this.selectedLimitsSet];return 4===e.length?`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]}`:`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]} GL/${e[4]} GH/${e[5]}`}}},r=l;n(8461);var o=n(2401),c=(0,o.A)(r,s,a,!1,null,"79bcb6e7",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},3458:(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,"time-zone":this.screen.timeZone,"hide-system-bar":"","hide-overview":""},on:{pause:()=>e.state="pause",start:()=>e.state="start"}})},a=[],i=n(1033),l=n(2110);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},1783:(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",style:e.pointerStyle,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},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},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},773:(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.computedStyle})},a=[],i=(n(9375),n(9729));const l={mixins:[i.A],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}},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(2110);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(3720);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},3660:(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("v-text-field",{style:e.computedStyle,attrs:{label:e.label,type:"time","hide-details":""},model:{value:e.timeValue,callback:function(t){e.timeValue=t},expression:"timeValue"}})},a=[],i=n(9729),l=n(7903);const r={mixins:[i.A,l.A],data(){return{label:"Time",timeValue:""}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screen.timeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}},o=r;var c=n(2401),d=(0,c.A)(o,s,a,!1,null,null,null);const u=d.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(3720);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},1279:(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(6198),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(3622);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},3693:(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-77aad130]{margin-left:30px;height:50px;width:95%;position:relative;font-size:16px}",""]);const o=r},1447:(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-3c8984fe]{font-weight:700;text-transform:capitalize}[data-v-3c8984fe] .v-input--selection-controls{padding:0;margin:0}",""]);const o=r},6857:(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-18fc7350]{font-weight:700;text-transform:capitalize}[data-v-18fc7350] .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},8388:(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,".v-window-item{background-color:var(--color-background-surface-default)}.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}.u-legend.u-inline .u-series .u-value{width:105px}.u-legend.u-inline .u-series:first-child .u-value{width:185px}",""]);const o=r},6584:(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-6eced92a] .u-select{background-color:hsla(0,0%,100%,.07)}",""]);const o=r},2114:(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{color:hsla(0,0%,100%,.7);background-color:var(--color-background-surface-default);padding:10px;margin-top:10px}.v-small-dialog__content{background-color:var(--color-background-surface-selected);padding:5px 5px}",""]);const o=r},3956:(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-fae32f12]{padding-top:0;margin-top:0}.v-textarea[data-v-fae32f12] textarea{padding:5px}",""]);const o=r},9199:(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-1ea03776]{padding:4px}.select[data-v-1ea03776]{max-width:300px}.row+.row[data-v-1ea03776]{margin-top:0}",""]);const o=r},4203:(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-0af23388]{font-size:2rem}.menu-button[data-v-0af23388]{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-0af23388]{padding-right:5px}.list-action[data-v-0af23388] label{color:#fff;padding-left:10px}.myicon[data-v-0af23388]{background-color:var(--color-background-surface-selected);border:1px solid currentColor;border-radius:3px;height:36px!important;width:36px!important}.v-list[data-v-0af23388] .v-label{margin-left:5px}.v-list-item__icon[data-v-0af23388]{margin-right:15px!important}.v-list-item__title[data-v-0af23388]{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},9444:(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-549fe176]{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},3846:(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-79bcb6e7]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-79bcb6e7]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-79bcb6e7]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-79bcb6e7],.limitsbar__redlow[data-v-79bcb6e7]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-79bcb6e7]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-79bcb6e7]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-79bcb6e7],.limitsbar__yellowlow[data-v-79bcb6e7]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-79bcb6e7]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-79bcb6e7]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-79bcb6e7],.limitsbar__greenlow[data-v-79bcb6e7]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-79bcb6e7]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-79bcb6e7]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-79bcb6e7],.limitsbar__line[data-v-79bcb6e7]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-79bcb6e7]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-79bcb6e7]{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__(3103),_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__(3720),_openc3_tool_common_src_components_CriticalCmdDialog__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(7203),_openc3_tool_common_src_components_TopBar__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7294),_openc3_tool_common_src_components_Openc3Screen__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(9221),sprintf_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(9471),sprintf_js__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(sprintf_js__WEBPACK_IMPORTED_MODULE_14__);function cov_16daumg2kr(){var e="/openc3/plugins/packages/openc3-cosmos-tool-cmdsender/src/tools/CommandSender/CommandSender.vue",t="14a4e9ced017f29772769c057bdb2ee1a9dcf690",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:27,column:4},end:{line:132,column:5}},1:{start:{line:72,column:12},end:{line:72,column:41}},2:{start:{line:73,column:12},end:{line:73,column:35}},3:{start:{line:102,column:16},end:{line:102,column:64}},4:{start:{line:109,column:16},end:{line:109,column:52}},5:{start:{line:116,column:16},end:{line:116,column:64}},6:{start:{line:119,column:16},end:{line:119,column:38}},7:{start:{line:126,column:16},end:{line:126,column:42}},8:{start:{line:135,column:4},end:{line:137,column:6}},9:{start:{line:136,column:6},end:{line:136,column:44}},10:{start:{line:138,column:4},end:{line:138,column:30}},11:{start:{line:140,column:4},end:{line:145,column:5}},12:{start:{line:141,column:6},end:{line:144,column:8}},13:{start:{line:146,column:4},end:{line:148,column:6}},14:{start:{line:147,column:6},end:{line:147,column:35}},15:{start:{line:151,column:4},end:{line:151,column:45}},16:{start:{line:152,column:4},end:{line:152,column:46}},17:{start:{line:153,column:4},end:{line:153,column:48}},18:{start:{line:154,column:4},end:{line:154,column:37}},19:{start:{line:155,column:4},end:{line:155,column:44}},20:{start:{line:156,column:4},end:{line:156,column:45}},21:{start:{line:157,column:4},end:{line:157,column:65}},22:{start:{line:158,column:4},end:{line:158,column:48}},23:{start:{line:159,column:4},end:{line:159,column:32}},24:{start:{line:160,column:4},end:{line:160,column:23}},25:{start:{line:161,column:4},end:{line:161,column:49}},26:{start:{line:163,column:4},end:{line:163,column:41}},27:{start:{line:164,column:4},end:{line:164,column:40}},28:{start:{line:165,column:4},end:{line:181,column:6}},29:{start:{line:166,column:6},end:{line:180,column:7}},30:{start:{line:167,column:8},end:{line:167,column:26}},31:{start:{line:168,column:22},end:{line:170,column:9}},32:{start:{line:172,column:8},end:{line:174,column:9}},33:{start:{line:173,column:10},end:{line:173,column:16}},34:{start:{line:176,column:25},end:{line:176,column:45}},35:{start:{line:177,column:24},end:{line:177,column:48}},36:{start:{line:178,column:8},end:{line:178,column:76}},37:{start:{line:179,column:8},end:{line:179,column:29}},38:{start:{line:184,column:4},end:{line:184,column:25}},39:{start:{line:185,column:4},end:{line:185,column:34}},40:{start:{line:189,column:6},end:{line:189,column:24}},41:{start:{line:190,column:6},end:{line:190,column:50}},42:{start:{line:191,column:6},end:{line:191,column:35}},43:{start:{line:192,column:6},end:{line:192,column:24}},44:{start:{line:193,column:6},end:{line:193,column:24}},45:{start:{line:194,column:6},end:{line:196,column:8}},46:{start:{line:195,column:8},end:{line:195,column:36}},47:{start:{line:199,column:6},end:{line:205,column:7}},48:{start:{line:204,column:8},end:{line:204,column:56}},49:{start:{line:206,column:6},end:{line:208,column:7}},50:{start:{line:207,column:8},end:{line:207,column:39}},51:{start:{line:210,column:16},end:{line:210,column:40}},52:{start:{line:211,column:26},end:{line:211,column:48}},53:{start:{line:212,column:6},end:{line:247,column:7}},54:{start:{line:213,column:24},end:{line:213,column:41}},55:{start:{line:214,column:8},end:{line:244,column:9}},56:{start:{line:218,column:23},end:{line:218,column:41}},57:{start:{line:219,column:10},end:{line:221,column:11}},58:{start:{line:220,column:12},end:{line:220,column:33}},59:{start:{line:222,column:21},end:{line:222,column:54}},60:{start:{line:223,column:10},end:{line:226,column:11}},61:{start:{line:223,column:23},end:{line:223,column:24}},62:{start:{line:224,column:25},end:{line:224,column:64}},63:{start:{line:225,column:12},end:{line:225,column:47}},64:{start:{line:227,column:10},end:{line:227,column:21}},65:{start:{line:229,column:10},end:{line:243,column:11}},66:{start:{line:230,column:12},end:{line:230,column:27}},67:{start:{line:231,column:17},end:{line:243,column:11}},68:{start:{line:232,column:12},end:{line:232,column:28}},69:{start:{line:233,column:17},end:{line:243,column:11}},70:{start:{line:234,column:12},end:{line:234,column:22}},71:{start:{line:235,column:17},end:{line:243,column:11}},72:{start:{line:236,column:12},end:{line:236,column:34}},73:{start:{line:237,column:17},end:{line:243,column:11}},74:{start:{line:238,column:12},end:{line:238,column:32}},75:{start:{line:239,column:17},end:{line:243,column:11}},76:{start:{line:240,column:12},end:{line:240,column:28}},77:{start:{line:242,column:12},end:{line:242,column:22}},78:{start:{line:246,column:8},end:{line:246,column:28}},79:{start:{line:251,column:6},end:{line:271,column:7}},80:{start:{line:255,column:8},end:{line:255,column:42}},81:{start:{line:256,column:8},end:{line:256,column:43}},82:{start:{line:258,column:8},end:{line:260,column:9}},83:{start:{line:259,column:10},end:{line:259,column:32}},84:{start:{line:261,column:8},end:{line:270,column:29}},85:{start:{line:275,column:6},end:{line:275,column:30}},86:{start:{line:276,column:6},end:{line:276,column:29}},87:{start:{line:277,column:6},end:{line:277,column:20}},88:{start:{line:278,column:6},end:{line:376,column:9}},89:{start:{line:282,column:12},end:{line:282,column:58}},90:{start:{line:283,column:12},end:{line:283,column:70}},91:{start:{line:286,column:12},end:{line:286,column:66}},92:{start:{line:287,column:12},end:{line:287,column:37}},93:{start:{line:292,column:12},end:{line:343,column:14}},94:{start:{line:293,column:14},end:{line:293,column:73}},95:{start:{line:293,column:67},end:{line:293,column:73}},96:{start:{line:294,column:14},end:{line:342,column:15}},97:{start:{line:298,column:26},end:{line:298,column:43}},98:{start:{line:303,column:16},end:{line:309,column:17}},99:{start:{line:308,column:18},end:{line:308,column:34}},100:{start:{line:310,column:16},end:{line:312,column:17}},101:{start:{line:311,column:18},end:{line:311,column:26}},102:{start:{line:313,column:16},end:{line:315,column:17}},103:{start:{line:314,column:18},end:{line:314,column:75}},104:{start:{line:316,column:28},end:{line:316,column:33}},105:{start:{line:318,column:16},end:{line:330,column:17}},106:{start:{line:319,column:18},end:{line:328,column:19}},107:{start:{line:322,column:20},end:{line:324,column:21}},108:{start:{line:323,column:22},end:{line:323,column:76}},109:{start:{line:325,column:20},end:{line:327,column:21}},110:{start:{line:326,column:22},end:{line:326,column:76}},111:{start:{line:329,column:18},end:{line:329,column:70}},112:{start:{line:331,column:16},end:{line:341,column:18}},113:{start:{line:344,column:12},end:{line:368,column:13}},114:{start:{line:345,column:14},end:{line:352,column:15}},115:{start:{line:347,column:18},end:{line:347,column:55}},116:{start:{line:348,column:18},end:{line:348,column:53}},117:{start:{line:349,column:18},end:{line:349,column:55}},118:{start:{line:350,column:18},end:{line:350,column:39}},119:{start:{line:354,column:14},end:{line:366,column:15}},120:{start:{line:355,column:16},end:{line:355,column:43}},121:{start:{line:356,column:16},end:{line:356,column:45}},122:{start:{line:357,column:39},end:{line:357,column:63}},123:{start:{line:358,column:16},end:{line:360,column:17}},124:{start:{line:358,column:29},end:{line:358,column:30}},125:{start:{line:359,column:18},end:{line:359,column:165}},126:{start:{line:361,column:16},end:{line:361,column:56}},127:{start:{line:363,column:16},end:{line:363,column:40}},128:{start:{line:364,column:16},end:{line:364,column:38}},129:{start:{line:365,column:16},end:{line:365,column:44}},130:{start:{line:367,column:14},end:{line:367,column:35}},131:{start:{line:369,column:12},end:{line:369,column:37}},132:{start:{line:370,column:12},end:{line:370,column:28}},133:{start:{line:373,column:12},end:{line:373,column:66}},134:{start:{line:374,column:12},end:{line:374,column:37}},135:{start:{line:380,column:22},end:{line:380,column:24}},136:{start:{line:381,column:6},end:{line:385,column:7}},137:{start:{line:381,column:19},end:{line:381,column:20}},138:{start:{line:382,column:8},end:{line:384,column:9}},139:{start:{line:386,column:6},end:{line:386,column:22}},140:{start:{line:390,column:6},end:{line:390,column:77}},141:{start:{line:399,column:6},end:{line:399,column:38}},142:{start:{line:400,column:6},end:{line:400,column:40}},143:{start:{line:401,column:6},end:{line:401,column:36}},144:{start:{line:403,column:6},end:{line:403,column:30}},145:{start:{line:404,column:22},end:{line:404,column:27}},146:{start:{line:405,column:16},end:{line:405,column:18}},147:{start:{line:406,column:6},end:{line:488,column:7}},148:{start:{line:408,column:10},end:{line:408,column:30}},149:{start:{line:410,column:10},end:{line:483,column:11}},150:{start:{line:412,column:12},end:{line:419,column:13}},151:{start:{line:413,column:14},end:{line:416,column:26}},152:{start:{line:418,column:14},end:{line:418,column:68}},153:{start:{line:420,column:12},end:{line:420,column:44}},154:{start:{line:423,column:12},end:{line:461,column:13}},155:{start:{line:424,column:14},end:{line:441,column:15}},156:{start:{line:425,column:16},end:{line:425,column:46}},157:{start:{line:426,column:16},end:{line:433,column:17}},158:{start:{line:435,column:16},end:{line:435,column:31}},159:{start:{line:436,column:16},end:{line:440,column:18}},160:{start:{line:443,column:14},end:{line:460,column:15}},161:{start:{line:444,column:16},end:{line:444,column:42}},162:{start:{line:445,column:16},end:{line:452,column:17}},163:{start:{line:454,column:16},end:{line:454,column:27}},164:{start:{line:455,column:16},end:{line:459,column:18}},165:{start:{line:463,column:12},end:{line:482,column:13}},166:{start:{line:465,column:16},end:{line:471,column:17}},167:{start:{line:474,column:16},end:{line:480,column:17}},168:{start:{line:486,column:10},end:{line:486,column:77}},169:{start:{line:492,column:6},end:{line:492,column:39}},170:{start:{line:493,column:16},end:{line:493,column:18}},171:{start:{line:494,column:16},end:{line:494,column:18}},172:{start:{line:495,column:6},end:{line:543,column:7}},173:{start:{line:496,column:8},end:{line:518,column:9}},174:{start:{line:497,column:10},end:{line:497,column:40}},175:{start:{line:498,column:10},end:{line:505,column:11}},176:{start:{line:507,column:10},end:{line:507,column:25}},177:{start:{line:508,column:10},end:{line:517,column:11}},178:{start:{line:520,column:8},end:{line:542,column:9}},179:{start:{line:521,column:10},end:{line:521,column:36}},180:{start:{line:522,column:10},end:{line:529,column:11}},181:{start:{line:531,column:10},end:{line:531,column:21}},182:{start:{line:532,column:10},end:{line:541,column:11}},183:{start:{line:545,column:6},end:{line:564,column:7}},184:{start:{line:547,column:10},end:{line:553,column:11}},185:{start:{line:556,column:10},end:{line:562,column:11}},186:{start:{line:568,column:6},end:{line:568,column:39}},187:{start:{line:569,column:6},end:{line:569,column:48}},188:{start:{line:570,column:6},end:{line:570,column:31}},189:{start:{line:575,column:6},end:{line:577,column:7}},190:{start:{line:576,column:9},end:{line:576,column:70}},191:{start:{line:578,column:16},end:{line:578,column:18}},192:{start:{line:579,column:6},end:{line:625,column:7}},193:{start:{line:580,column:8},end:{line:580,column:58}},194:{start:{line:581,column:19},end:{line:581,column:43}},195:{start:{line:582,column:8},end:{line:600,column:9}},196:{start:{line:583,column:10},end:{line:583,column:25}},197:{start:{line:584,column:10},end:{line:599,column:11}},198:{start:{line:584,column:23},end:{line:584,column:24}},199:{start:{line:585,column:22},end:{line:585,column:29}},200:{start:{line:586,column:24},end:{line:586,column:62}},201:{start:{line:588,column:12},end:{line:594,column:13}},202:{start:{line:593,column:14},end:{line:593,column:34}},203:{start:{line:595,column:12},end:{line:595,column:36}},204:{start:{line:596,column:12},end:{line:598,column:13}},205:{start:{line:597,column:14},end:{line:597,column:25}},206:{start:{line:601,column:8},end:{line:601,column:19}},207:{start:{line:602,column:8},end:{line:609,column:9}},208:{start:{line:603,column:10},end:{line:603,column:21}},209:{start:{line:604,column:10},end:{line:606,column:11}},210:{start:{line:605,column:12},end:{line:605,column:40}},211:{start:{line:607,column:10},end:{line:607,column:37}},212:{start:{line:608,column:10},end:{line:608,column:40}},213:{start:{line:610,column:8},end:{line:610,column:23}},214:{start:{line:612,column:8},end:{line:620,column:9}},215:{start:{line:613,column:22},end:{line:613,column:48}},216:{start:{line:614,column:10},end:{line:619,column:11}},217:{start:{line:615,column:22},end:{line:615,column:77}},218:{start:{line:616,column:12},end:{line:616,column:56}},219:{start:{line:618,column:12},end:{line:618,column:25}},220:{start:{line:621,column:8},end:{line:621,column:25}},221:{start:{line:623,column:22},end:{line:623,column:65}},222:{start:{line:624,column:8},end:{line:624,column:50}},223:{start:{line:627,column:6},end:{line:627,column:43}},224:{start:{line:628,column:6},end:{line:628,column:70}},225:{start:{line:629,column:6},end:{line:629,column:31}},226:{start:{line:633,column:6},end:{line:633,column:30}},227:{start:{line:634,column:6},end:{line:634,column:23}},228:{start:{line:635,column:6},end:{line:635,column:56}},229:{start:{line:639,column:6},end:{line:639,column:59}},230:{start:{line:640,column:6},end:{line:643,column:7}},231:{start:{line:641,column:8},end:{line:641,column:27}},232:{start:{line:642,column:8},end:{line:642,column:36}},233:{start:{line:644,column:6},end:{line:646,column:7}},234:{start:{line:645,column:8},end:{line:645,column:60}},235:{start:{line:647,column:6},end:{line:658,column:7}},236:{start:{line:648,column:8},end:{line:657,column:9}},237:{start:{line:649,column:10},end:{line:649,column:78}},238:{start:{line:650,column:10},end:{line:651,column:63}},239:{start:{line:652,column:10},end:{line:653,column:61}},240:{start:{line:654,column:10},end:{line:654,column:40}},241:{start:{line:656,column:10},end:{line:656,column:40}},242:{start:{line:662,column:6},end:{line:666,column:8}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:9},end:{line:133,column:3}},line:26},1:{name:"(anonymous_1)",decl:{start:{line:71,column:18},end:{line:71,column:19}},loc:{start:{line:71,column:24},end:{line:74,column:11}},line:71},2:{name:"(anonymous_2)",decl:{start:{line:101,column:23},end:{line:101,column:24}},loc:{start:{line:101,column:29},end:{line:103,column:15}},line:101},3:{name:"(anonymous_3)",decl:{start:{line:108,column:23},end:{line:108,column:24}},loc:{start:{line:108,column:29},end:{line:110,column:15}},line:108},4:{name:"(anonymous_4)",decl:{start:{line:115,column:23},end:{line:115,column:24}},loc:{start:{line:115,column:29},end:{line:120,column:15}},line:115},5:{name:"(anonymous_5)",decl:{start:{line:125,column:23},end:{line:125,column:24}},loc:{start:{line:125,column:29},end:{line:127,column:15}},line:125},6:{name:"(anonymous_6)",decl:{start:{line:134,column:2},end:{line:134,column:3}},loc:{start:{line:134,column:12},end:{line:149,column:3}},line:134},7:{name:"(anonymous_7)",decl:{start:{line:135,column:65},end:{line:135,column:66}},loc:{start:{line:135,column:79},end:{line:137,column:5}},line:135},8:{name:"(anonymous_8)",decl:{start:{line:146,column:61},end:{line:146,column:62}},loc:{start:{line:146,column:75},end:{line:148,column:5}},line:146},9:{name:"(anonymous_9)",decl:{start:{line:150,column:2},end:{line:150,column:3}},loc:{start:{line:150,column:12},end:{line:182,column:3}},line:150},10:{name:"(anonymous_10)",decl:{start:{line:165,column:54},end:{line:165,column:55}},loc:{start:{line:165,column:61},end:{line:181,column:5}},line:165},11:{name:"(anonymous_11)",decl:{start:{line:183,column:2},end:{line:183,column:3}},loc:{start:{line:183,column:18},end:{line:186,column:3}},line:183},12:{name:"(anonymous_12)",decl:{start:{line:188,column:4},end:{line:188,column:5}},loc:{start:{line:188,column:28},end:{line:197,column:5}},line:188},13:{name:"(anonymous_13)",decl:{start:{line:194,column:21},end:{line:194,column:22}},loc:{start:{line:194,column:27},end:{line:196,column:7}},line:194},14:{name:"(anonymous_14)",decl:{start:{line:198,column:4},end:{line:198,column:5}},loc:{start:{line:198,column:26},end:{line:248,column:5}},line:198},15:{name:"(anonymous_15)",decl:{start:{line:250,column:4},end:{line:250,column:5}},loc:{start:{line:250,column:26},end:{line:272,column:5}},line:250},16:{name:"(anonymous_16)",decl:{start:{line:270,column:17},end:{line:270,column:18}},loc:{start:{line:270,column:26},end:{line:270,column:28}},line:270},17:{name:"(anonymous_17)",decl:{start:{line:274,column:4},end:{line:274,column:5}},loc:{start:{line:274,column:22},end:{line:377,column:5}},line:274},18:{name:"(anonymous_18)",decl:{start:{line:281,column:10},end:{line:281,column:11}},loc:{start:{line:281,column:22},end:{line:284,column:11}},line:281},19:{name:"(anonymous_19)",decl:{start:{line:285,column:10},end:{line:285,column:11}},loc:{start:{line:285,column:21},end:{line:288,column:11}},line:285},20:{name:"(anonymous_20)",decl:{start:{line:291,column:10},end:{line:291,column:11}},loc:{start:{line:291,column:23},end:{line:371,column:11}},line:291},21:{name:"(anonymous_21)",decl:{start:{line:292,column:34},end:{line:292,column:35}},loc:{start:{line:292,column:49},end:{line:343,column:13}},line:292},22:{name:"(anonymous_22)",decl:{start:{line:346,column:16},end:{line:346,column:17}},loc:{start:{line:346,column:30},end:{line:351,column:17}},line:346},23:{name:"(anonymous_23)",decl:{start:{line:372,column:10},end:{line:372,column:11}},loc:{start:{line:372,column:21},end:{line:375,column:11}},line:372},24:{name:"(anonymous_24)",decl:{start:{line:379,column:4},end:{line:379,column:5}},loc:{start:{line:379,column:22},end:{line:387,column:5}},line:379},25:{name:"(anonymous_25)",decl:{start:{line:389,column:4},end:{line:389,column:5}},loc:{start:{line:389,column:15},end:{line:391,column:5}},line:389},26:{name:"(anonymous_26)",decl:{start:{line:397,column:4},end:{line:397,column:5}},loc:{start:{line:397,column:48},end:{line:489,column:5}},line:397},27:{name:"(anonymous_27)",decl:{start:{line:407,column:8},end:{line:407,column:9}},loc:{start:{line:407,column:22},end:{line:484,column:9}},line:407},28:{name:"(anonymous_28)",decl:{start:{line:464,column:14},end:{line:464,column:15}},loc:{start:{line:464,column:28},end:{line:472,column:15}},line:464},29:{name:"(anonymous_29)",decl:{start:{line:473,column:14},end:{line:473,column:15}},loc:{start:{line:473,column:25},end:{line:481,column:15}},line:473},30:{name:"(anonymous_30)",decl:{start:{line:485,column:8},end:{line:485,column:9}},loc:{start:{line:485,column:19},end:{line:487,column:9}},line:485},31:{name:"(anonymous_31)",decl:{start:{line:491,column:4},end:{line:491,column:5}},loc:{start:{line:491,column:23},end:{line:565,column:5}},line:491},32:{name:"(anonymous_32)",decl:{start:{line:546,column:8},end:{line:546,column:9}},loc:{start:{line:546,column:22},end:{line:554,column:9}},line:546},33:{name:"(anonymous_33)",decl:{start:{line:555,column:8},end:{line:555,column:9}},loc:{start:{line:555,column:19},end:{line:563,column:9}},line:555},34:{name:"(anonymous_34)",decl:{start:{line:567,column:4},end:{line:567,column:5}},loc:{start:{line:567,column:25},end:{line:571,column:5}},line:567},35:{name:"(anonymous_35)",decl:{start:{line:573,column:4},end:{line:573,column:5}},loc:{start:{line:573,column:77},end:{line:630,column:5}},line:573},36:{name:"(anonymous_36)",decl:{start:{line:632,column:4},end:{line:632,column:5}},loc:{start:{line:632,column:19},end:{line:636,column:5}},line:632},37:{name:"(anonymous_37)",decl:{start:{line:638,column:4},end:{line:638,column:5}},loc:{start:{line:638,column:53},end:{line:659,column:5}},line:638},38:{name:"(anonymous_38)",decl:{start:{line:661,column:4},end:{line:661,column:5}},loc:{start:{line:661,column:31},end:{line:667,column:5}},line:661}},branchMap:{0:{loc:{start:{line:140,column:4},end:{line:145,column:5}},type:"if",locations:[{start:{line:140,column:4},end:{line:145,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:140},1:{loc:{start:{line:140,column:8},end:{line:140,column:62}},type:"binary-expr",locations:[{start:{line:140,column:8},end:{line:140,column:33}},{start:{line:140,column:37},end:{line:140,column:62}}],line:140},2:{loc:{start:{line:166,column:6},end:{line:180,column:7}},type:"if",locations:[{start:{line:166,column:6},end:{line:180,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:166},3:{loc:{start:{line:172,column:8},end:{line:174,column:9}},type:"if",locations:[{start:{line:172,column:8},end:{line:174,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:172},4:{loc:{start:{line:199,column:6},end:{line:205,column:7}},type:"if",locations:[{start:{line:199,column:6},end:{line:205,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:199},5:{loc:{start:{line:200,column:8},end:{line:202,column:29}},type:"binary-expr",locations:[{start:{line:200,column:8},end:{line:200,column:52}},{start:{line:201,column:8},end:{line:201,column:66}},{start:{line:202,column:8},end:{line:202,column:29}}],line:200},6:{loc:{start:{line:206,column:6},end:{line:208,column:7}},type:"if",locations:[{start:{line:206,column:6},end:{line:208,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:206},7:{loc:{start:{line:212,column:6},end:{line:247,column:7}},type:"if",locations:[{start:{line:212,column:6},end:{line:247,column:7}},{start:{line:245,column:13},end:{line:247,column:7}}],line:212},8:{loc:{start:{line:214,column:8},end:{line:244,column:9}},type:"if",locations:[{start:{line:214,column:8},end:{line:244,column:9}},{start:{line:228,column:15},end:{line:244,column:9}}],line:214},9:{loc:{start:{line:215,column:10},end:{line:216,column:36}},type:"binary-expr",locations:[{start:{line:215,column:11},end:{line:215,column:34}},{start:{line:215,column:38},end:{line:215,column:60}},{start:{line:216,column:10},end:{line:216,column:36}}],line:215},10:{loc:{start:{line:219,column:10},end:{line:221,column:11}},type:"if",locations:[{start:{line:219,column:10},end:{line:221,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:219},11:{loc:{start:{line:229,column:10},end:{line:243,column:11}},type:"if",locations:[{start:{line:229,column:10},end:{line:243,column:11}},{start:{line:231,column:17},end:{line:243,column:11}}],line:229},12:{loc:{start:{line:231,column:17},end:{line:243,column:11}},type:"if",locations:[{start:{line:231,column:17},end:{line:243,column:11}},{start:{line:233,column:17},end:{line:243,column:11}}],line:231},13:{loc:{start:{line:233,column:17},end:{line:243,column:11}},type:"if",locations:[{start:{line:233,column:17},end:{line:243,column:11}},{start:{line:235,column:17},end:{line:243,column:11}}],line:233},14:{loc:{start:{line:235,column:17},end:{line:243,column:11}},type:"if",locations:[{start:{line:235,column:17},end:{line:243,column:11}},{start:{line:237,column:17},end:{line:243,column:11}}],line:235},15:{loc:{start:{line:237,column:17},end:{line:243,column:11}},type:"if",locations:[{start:{line:237,column:17},end:{line:243,column:11}},{start:{line:239,column:17},end:{line:243,column:11}}],line:237},16:{loc:{start:{line:239,column:17},end:{line:243,column:11}},type:"if",locations:[{start:{line:239,column:17},end:{line:243,column:11}},{start:{line:241,column:17},end:{line:243,column:11}}],line:239},17:{loc:{start:{line:251,column:6},end:{line:271,column:7}},type:"if",locations:[{start:{line:251,column:6},end:{line:271,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:251},18:{loc:{start:{line:252,column:8},end:{line:253,column:45}},type:"binary-expr",locations:[{start:{line:252,column:8},end:{line:252,column:44}},{start:{line:253,column:8},end:{line:253,column:45}}],line:252},19:{loc:{start:{line:258,column:8},end:{line:260,column:9}},type:"if",locations:[{start:{line:258,column:8},end:{line:260,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:258},20:{loc:{start:{line:293,column:14},end:{line:293,column:73}},type:"if",locations:[{start:{line:293,column:14},end:{line:293,column:73}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:293},21:{loc:{start:{line:294,column:14},end:{line:342,column:15}},type:"if",locations:[{start:{line:294,column:14},end:{line:342,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:294},22:{loc:{start:{line:295,column:16},end:{line:296,column:38}},type:"binary-expr",locations:[{start:{line:295,column:16},end:{line:295,column:60}},{start:{line:296,column:16},end:{line:296,column:38}}],line:295},23:{loc:{start:{line:303,column:16},end:{line:309,column:17}},type:"if",locations:[{start:{line:303,column:16},end:{line:309,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:303},24:{loc:{start:{line:304,column:18},end:{line:306,column:55}},type:"binary-expr",locations:[{start:{line:304,column:18},end:{line:304,column:35}},{start:{line:305,column:18},end:{line:305,column:50}},{start:{line:306,column:18},end:{line:306,column:55}}],line:304},25:{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},26:{loc:{start:{line:313,column:16},end:{line:315,column:17}},type:"if",locations:[{start:{line:313,column:16},end:{line:315,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:313},27:{loc:{start:{line:318,column:16},end:{line:330,column:17}},type:"if",locations:[{start:{line:318,column:16},end:{line:330,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:318},28:{loc:{start:{line:318,column:20},end:{line:318,column:74}},type:"binary-expr",locations:[{start:{line:318,column:20},end:{line:318,column:45}},{start:{line:318,column:49},end:{line:318,column:74}}],line:318},29:{loc:{start:{line:319,column:18},end:{line:328,column:19}},type:"if",locations:[{start:{line:319,column:18},end:{line:328,column:19}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:319},30:{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},31:{loc:{start:{line:325,column:20},end:{line:327,column:21}},type:"if",locations:[{start:{line:325,column:20},end:{line:327,column:21}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:325},32:{loc:{start:{line:344,column:12},end:{line:368,column:13}},type:"if",locations:[{start:{line:344,column:12},end:{line:368,column:13}},{start:{line:353,column:19},end:{line:368,column:13}}],line:344},33:{loc:{start:{line:354,column:14},end:{line:366,column:15}},type:"if",locations:[{start:{line:354,column:14},end:{line:366,column:15}},{start:{line:362,column:21},end:{line:366,column:15}}],line:354},34:{loc:{start:{line:410,column:10},end:{line:483,column:11}},type:"if",locations:[{start:{line:410,column:10},end:{line:483,column:11}},{start:{line:421,column:17},end:{line:483,column:11}}],line:410},35:{loc:{start:{line:412,column:12},end:{line:419,column:13}},type:"if",locations:[{start:{line:412,column:12},end:{line:419,column:13}},{start:{line:417,column:19},end:{line:419,column:13}}],line:412},36:{loc:{start:{line:423,column:12},end:{line:461,column:13}},type:"if",locations:[{start:{line:423,column:12},end:{line:461,column:13}},{start:{line:442,column:19},end:{line:461,column:13}}],line:423},37:{loc:{start:{line:424,column:14},end:{line:441,column:15}},type:"if",locations:[{start:{line:424,column:14},end:{line:441,column:15}},{start:{line:434,column:21},end:{line:441,column:15}}],line:424},38:{loc:{start:{line:443,column:14},end:{line:460,column:15}},type:"if",locations:[{start:{line:443,column:14},end:{line:460,column:15}},{start:{line:453,column:21},end:{line:460,column:15}}],line:443},39:{loc:{start:{line:495,column:6},end:{line:543,column:7}},type:"if",locations:[{start:{line:495,column:6},end:{line:543,column:7}},{start:{line:519,column:13},end:{line:543,column:7}}],line:495},40:{loc:{start:{line:496,column:8},end:{line:518,column:9}},type:"if",locations:[{start:{line:496,column:8},end:{line:518,column:9}},{start:{line:506,column:15},end:{line:518,column:9}}],line:496},41:{loc:{start:{line:520,column:8},end:{line:542,column:9}},type:"if",locations:[{start:{line:520,column:8},end:{line:542,column:9}},{start:{line:530,column:15},end:{line:542,column:9}}],line:520},42:{loc:{start:{line:575,column:6},end:{line:577,column:7}},type:"if",locations:[{start:{line:575,column:6},end:{line:577,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:575},43:{loc:{start:{line:579,column:6},end:{line:625,column:7}},type:"if",locations:[{start:{line:579,column:6},end:{line:625,column:7}},{start:{line:622,column:13},end:{line:625,column:7}}],line:579},44:{loc:{start:{line:582,column:8},end:{line:600,column:9}},type:"if",locations:[{start:{line:582,column:8},end:{line:600,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:582},45:{loc:{start:{line:588,column:12},end:{line:594,column:13}},type:"if",locations:[{start:{line:588,column:12},end:{line:594,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:588},46:{loc:{start:{line:589,column:14},end:{line:591,column:37}},type:"binary-expr",locations:[{start:{line:589,column:14},end:{line:589,column:50}},{start:{line:590,column:14},end:{line:590,column:37}},{start:{line:591,column:14},end:{line:591,column:37}}],line:589},47:{loc:{start:{line:596,column:12},end:{line:598,column:13}},type:"if",locations:[{start:{line:596,column:12},end:{line:598,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:596},48:{loc:{start:{line:602,column:8},end:{line:609,column:9}},type:"if",locations:[{start:{line:602,column:8},end:{line:609,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:602},49:{loc:{start:{line:604,column:10},end:{line:606,column:11}},type:"if",locations:[{start:{line:604,column:10},end:{line:606,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:604},50:{loc:{start:{line:612,column:8},end:{line:620,column:9}},type:"if",locations:[{start:{line:612,column:8},end:{line:620,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:612},51:{loc:{start:{line:614,column:10},end:{line:619,column:11}},type:"if",locations:[{start:{line:614,column:10},end:{line:619,column:11}},{start:{line:617,column:17},end:{line:619,column:11}}],line:614},52:{loc:{start:{line:638,column:33},end:{line:638,column:51}},type:"default-arg",locations:[{start:{line:638,column:46},end:{line:638,column:51}}],line:638},53:{loc:{start:{line:640,column:6},end:{line:643,column:7}},type:"if",locations:[{start:{line:640,column:6},end:{line:643,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:640},54:{loc:{start:{line:640,column:10},end:{line:640,column:47}},type:"binary-expr",locations:[{start:{line:640,column:10},end:{line:640,column:23}},{start:{line:640,column:27},end:{line:640,column:47}}],line:640},55:{loc:{start:{line:644,column:6},end:{line:646,column:7}},type:"if",locations:[{start:{line:644,column:6},end:{line:646,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:644},56:{loc:{start:{line:647,column:6},end:{line:658,column:7}},type:"if",locations:[{start:{line:647,column:6},end:{line:658,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:647},57:{loc:{start:{line:648,column:8},end:{line:657,column:9}},type:"if",locations:[{start:{line:648,column:8},end:{line:657,column:9}},{start:{line:655,column:15},end:{line:657,column:9}}],line:648}},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,234:0,235:0,236:0,237:0,238:0,239:0,240:0,241:0,242: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],46:[0,0,0],47:[0,0],48:[0,0],49:[0,0],50:[0,0],51:[0,0],52:[0],53:[0,0],54:[0,0],55:[0,0],56:[0,0],57:[0,0]},inputSourceMap:{version:3,sources:["CommandSender.vue"],names:[],mappings:";AA0PA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;;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;;AAEA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;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 <critical-cmd-dialog\n :uuid=\"criticalCmdUuid\"\n :cmdString=\"criticalCmdString\"\n :cmdUser=\"criticalCmdUser\"\n v-model=\"displayCriticalCmd\"\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 CriticalCmdDialog from '@openc3/tool-common/src/components/CriticalCmdDialog'\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 CriticalCmdDialog,\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 displayCriticalCmd: 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 'Ignore-Errors': '428',\n },\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': '428 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 'Ignore-Errors': '428',\n },\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': '428 500',\n })\n }\n }\n\n obs.then(\n (response) => {\n this.processCmdResponse(\n true,\n targetName,\n commandName,\n cmd,\n response,\n )\n },\n (error) => {\n this.processCmdResponse(\n false,\n targetName,\n commandName,\n cmd,\n error,\n )\n },\n )\n }\n },\n (error) => {\n this.processCmdResponse(false, targetName, commandName, cmd, 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 'Ignore-Errors': '428',\n },\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': '428 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 'Ignore-Errors': '428',\n },\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': '428 500',\n },\n )\n }\n }\n\n obs.then(\n (response) => {\n this.processCmdResponse(\n true,\n this.lastTargetName,\n this.lastCommandName,\n cmd,\n response,\n )\n },\n (error) => {\n this.processCmdResponse(\n false,\n this.lastTargetName,\n this.lastCommandName,\n cmd,\n error,\n )\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(success, targetName, commandName, cmd_sent, response) {\n // If it was sent from history it's all in targetName, see sendCmd for details\n if (commandName === undefined) {\n ;[targetName, commandName] = targetName.split(' ').slice(0, 2)\n }\n var msg = ''\n if (success) {\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 ' + targetName + ' ' + 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 (this.status.includes('CriticalCmdError')) {\n this.status = `Critical Command Queued For Approval`\n }\n if (showDialog) {\n if (error.message.includes('CriticalCmdError')) {\n this.criticalCmdUuid = error.object.data.instance_variables['@uuid']\n this.criticalCmdString =\n error.object.data.instance_variables['@cmd_string']\n this.criticalCmdUser =\n error.object.data.instance_variables['@username']\n this.displayCriticalCmd = true\n } else {\n this.displayErrorDialog = true\n }\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:"14a4e9ced017f29772769c057bdb2ee1a9dcf690"},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,CriticalCmdDialog:_openc3_tool_common_src_components_CriticalCmdDialog__WEBPACK_IMPORTED_MODULE_11__.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_12__.A,Openc3Screen:_openc3_tool_common_src_components_Openc3Screen__WEBPACK_IMPORTED_MODULE_13__.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,displayCriticalCmd:!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,{"Ignore-Errors":"428"})):(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":"428 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,{"Ignore-Errors":"428"})):(cov_16daumg2kr().b[38][1]++,cov_16daumg2kr().s[163]++,a="cmd",cov_16daumg2kr().s[164]++,s=this.api.cmd(e,t,n,{"Ignore-Errors":"428 500"}))),cov_16daumg2kr().s[165]++,s.then((n=>{cov_16daumg2kr().f[28]++,cov_16daumg2kr().s[166]++,this.processCmdResponse(!0,e,t,a,n)}),(n=>{cov_16daumg2kr().f[29]++,cov_16daumg2kr().s[167]++,this.processCmdResponse(!1,e,t,a,n)}))}}),(n=>{cov_16daumg2kr().f[30]++,cov_16daumg2kr().s[168]++,this.processCmdResponse(!1,e,t,a,n)}))},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,{"Ignore-Errors":"428"})):(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":"428 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,{"Ignore-Errors":"428"})):(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":"428 500"}))),cov_16daumg2kr().s[183]++,e.then((e=>{cov_16daumg2kr().f[32]++,cov_16daumg2kr().s[184]++,this.processCmdResponse(!0,this.lastTargetName,this.lastCommandName,t,e)}),(e=>{cov_16daumg2kr().f[33]++,cov_16daumg2kr().s[185]++,this.processCmdResponse(!1,this.lastTargetName,this.lastCommandName,t,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,n,s,a){cov_16daumg2kr().f[35]++,cov_16daumg2kr().s[189]++,void 0===n?(cov_16daumg2kr().b[42][0]++,cov_16daumg2kr().s[190]++,[t,n]=t.split(" ").slice(0,2)):cov_16daumg2kr().b[42][1]++;var i=(cov_16daumg2kr().s[191]++,"");if(cov_16daumg2kr().s[192]++,e){cov_16daumg2kr().b[43][0]++,cov_16daumg2kr().s[193]++,i=`${s}("${a[0]} ${a[1]}`;var l=(cov_16daumg2kr().s[194]++,Object.keys(a[2]));if(cov_16daumg2kr().s[195]++,l.length>0){cov_16daumg2kr().b[44][0]++,cov_16daumg2kr().s[196]++,i+=" with ",cov_16daumg2kr().s[197]++;for(var r=(cov_16daumg2kr().s[198]++,0);r<l.length;r++){var o=(cov_16daumg2kr().s[199]++,l[r]),c=(cov_16daumg2kr().s[200]++,this.convertToString(a[2][o]));cov_16daumg2kr().s[201]++,cov_16daumg2kr().b[46][0]++,"string"===typeof a[2][o]&&(cov_16daumg2kr().b[46][1]++,"'"!==c.charAt(0))&&(cov_16daumg2kr().b[46][2]++,'"'!==c.charAt(0))?(cov_16daumg2kr().b[45][0]++,cov_16daumg2kr().s[202]++,c=`'${c}'`):cov_16daumg2kr().b[45][1]++,cov_16daumg2kr().s[203]++,i+=o+" "+c,cov_16daumg2kr().s[204]++,r<l.length-1?(cov_16daumg2kr().b[47][0]++,cov_16daumg2kr().s[205]++,i+=", "):cov_16daumg2kr().b[47][1]++}}else cov_16daumg2kr().b[44][1]++;if(cov_16daumg2kr().s[206]++,i+='")',cov_16daumg2kr().s[207]++,this.history.includes(i)?cov_16daumg2kr().b[48][1]++:(cov_16daumg2kr().b[48][0]++,cov_16daumg2kr().s[208]++,c=i,cov_16daumg2kr().s[209]++,0!==this.history.length?(cov_16daumg2kr().b[49][0]++,cov_16daumg2kr().s[210]++,c+=`\n${this.history}`):cov_16daumg2kr().b[49][1]++,cov_16daumg2kr().s[211]++,this.editor.setValue(c),cov_16daumg2kr().s[212]++,this.editor.moveCursorTo(0,0)),cov_16daumg2kr().s[213]++,i+=" sent.",cov_16daumg2kr().s[214]++,this.status.includes(i)){cov_16daumg2kr().b[50][0]++;let e=(cov_16daumg2kr().s[215]++,this.status.split("sent."));if(cov_16daumg2kr().s[216]++,e[1].includes("(")){cov_16daumg2kr().b[51][0]++;let t=(cov_16daumg2kr().s[217]++,parseInt(e[1].substr(2,e[1].indexOf(")")-2)));cov_16daumg2kr().s[218]++,i=e[0]+"sent. ("+(t+1)+")"}else cov_16daumg2kr().b[51][1]++,cov_16daumg2kr().s[219]++,i+=" (2)"}else cov_16daumg2kr().b[50][1]++;cov_16daumg2kr().s[220]++,this.status=i}else{cov_16daumg2kr().b[43][1]++;var d=(cov_16daumg2kr().s[221]++,"sending "+t+" "+n);cov_16daumg2kr().s[222]++,this.displayError(d,a,!0)}cov_16daumg2kr().s[223]++,this.history=this.editor.getValue(),cov_16daumg2kr().s[224]++,localStorage["command_sender__history"]=this.editor.getValue(),cov_16daumg2kr().s[225]++,this.sendDisabled=!1},clearHistory(){cov_16daumg2kr().f[36]++,cov_16daumg2kr().s[226]++,this.editor.setValue(""),cov_16daumg2kr().s[227]++,this.history="",cov_16daumg2kr().s[228]++,localStorage.removeItem("command_sender__history")},displayError(e,t,n=(cov_16daumg2kr().b[52][0]++,!1)){cov_16daumg2kr().f[37]++,cov_16daumg2kr().s[229]++,this.status=`Error ${e} due to ${t.name}`,cov_16daumg2kr().s[230]++,cov_16daumg2kr().b[54][0]++,t.message&&(cov_16daumg2kr().b[54][1]++,""!==t.message)?(cov_16daumg2kr().b[53][0]++,cov_16daumg2kr().s[231]++,this.status+=": ",cov_16daumg2kr().s[232]++,this.status+=t.message):cov_16daumg2kr().b[53][1]++,cov_16daumg2kr().s[233]++,this.status.includes("CriticalCmdError")?(cov_16daumg2kr().b[55][0]++,cov_16daumg2kr().s[234]++,this.status="Critical Command Queued For Approval"):cov_16daumg2kr().b[55][1]++,cov_16daumg2kr().s[235]++,n?(cov_16daumg2kr().b[56][0]++,cov_16daumg2kr().s[236]++,t.message.includes("CriticalCmdError")?(cov_16daumg2kr().b[57][0]++,cov_16daumg2kr().s[237]++,this.criticalCmdUuid=t.object.data.instance_variables["@uuid"],cov_16daumg2kr().s[238]++,this.criticalCmdString=t.object.data.instance_variables["@cmd_string"],cov_16daumg2kr().s[239]++,this.criticalCmdUser=t.object.data.instance_variables["@username"],cov_16daumg2kr().s[240]++,this.displayCriticalCmd=!0):(cov_16daumg2kr().b[57][1]++,cov_16daumg2kr().s[241]++,this.displayErrorDialog=!0)):cov_16daumg2kr().b[56][1]++},loadScreen(e,t){return cov_16daumg2kr().f[38]++,cov_16daumg2kr().s[242]++,_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),_openc3_tool_common_src_components_CriticalCmdDialog__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(7203);const __WEBPACK_DEFAULT_EXPORT__={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_4__.A],components:{CriticalCmdDialog:_openc3_tool_common_src_components_CriticalCmdDialog__WEBPACK_IMPORTED_MODULE_5__.A},data(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:"",criticalCmdUuid:null,criticalCmdString:null,criticalCmdUser:null,displayCriticalCmd:!1}},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++)try{const result=eval(lines[i].trim());result instanceof Promise&&await result}catch(error){if(error.message.includes("CriticalCmdError")&&(this.criticalCmdUuid=error.object.data.instance_variables["@uuid"],this.criticalCmdString=error.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=error.object.data.instance_variables["@username"],this.displayCriticalCmd=!0),error.message.includes("is Hazardous")){this.lastCmd=error.message.split("\n").pop(),this.displaySendHazardous=!0;while(this.displaySendHazardous)await new Promise((e=>setTimeout(e,500)))}}},async sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check(");try{const result=eval(this.lastCmd);result instanceof Promise&&await result}catch(error){error.message.includes("CriticalCmdError")&&(this.criticalCmdUuid=error.object.data.instance_variables["@uuid"],this.criticalCmdString=error.object.data.instance_variables["@cmd_string"],this.criticalCmdUser=error.object.data.instance_variables["@username"],this.displayCriticalCmd=!0)}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})},2194:(e,t,n)=>{var s=n(3693);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("79d33269",s,!0,{sourceMap:!1,shadowMode:!1})},4815:(e,t,n)=>{var s=n(1447);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("0acef07b",s,!0,{sourceMap:!1,shadowMode:!1})},4849:(e,t,n)=>{var s=n(6857);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("7adc6a5a",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})},5212:(e,t,n)=>{var s=n(8388);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("9376cdda",s,!0,{sourceMap:!1,shadowMode:!1})},6496:(e,t,n)=>{var s=n(6584);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("380801f2",s,!0,{sourceMap:!1,shadowMode:!1})},8474:(e,t,n)=>{var s=n(2114);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("e66c0642",s,!0,{sourceMap:!1,shadowMode:!1})},7324:(e,t,n)=>{var s=n(3956);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("ad1badf2",s,!0,{sourceMap:!1,shadowMode:!1})},8711:(e,t,n)=>{var s=n(9199);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("6b326ace",s,!0,{sourceMap:!1,shadowMode:!1})},5699:(e,t,n)=>{var s=n(4203);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("7f447726",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})},4636:(e,t,n)=>{var s=n(9444);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("64bdbc79",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})},3622:(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})},8461:(e,t,n)=>{var s=n(3846);s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.id,s,""]]),s.locals&&(e.exports=s.locals);var a=n(4825).A;a("707f9c58",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
|
-
//# sourceMappingURL=241.js.map
|