openc3-cosmos-tool-tlmviewer 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 +1 -1
- data/tools/tlmviewer/ArrayWidget-By62tXtU-da6455843547f2822954.js +2 -0
- data/tools/tlmviewer/BarColumn-Dm3D1Lhp-3944f3ea23fcf45995de.js +1 -0
- data/tools/tlmviewer/BlockWidget-CrT45ode-7c695d7f907f0744925d.js +2 -0
- data/tools/tlmviewer/ButtonWidget-CKyBBv6m-77a95c792f6532f0c34d.js +2 -0
- data/tools/tlmviewer/CanvasWidget-PqkppHC7-49183e79ed29ad2c4adc.js +1 -0
- data/tools/tlmviewer/CanvasdotWidget-BUbJgM2d-d11a64637ea7ca1293a4.js +1 -0
- data/tools/tlmviewer/CanvasimageWidget-DPVBY7mi-8ef775cfe62498c3d3dc.js +1 -0
- data/tools/tlmviewer/CanvasimagevalueWidget-GX37zzNc-f371d393ed72f2166595.js +1 -0
- data/tools/tlmviewer/CanvaslabelWidget-P2_Y6Edw-575e4e0525f787bdcd4c.js +1 -0
- data/tools/tlmviewer/CanvaslabelvalueWidget-Cuas1i9P-4ea25a3def6e23e294ab.js +1 -0
- data/tools/tlmviewer/CanvaslineWidget-BYOYgPya-908a4d464175fb4b448c.js +1 -0
- data/tools/tlmviewer/CanvaslinevalueWidget-3cVJMFo7-4b815f4a6a2d0d109e8b.js +1 -0
- data/tools/tlmviewer/CheckbuttonWidget-B3wgSMuB-ea80fa606ce6b52e912c.js +1 -0
- data/tools/tlmviewer/ComboboxWidget-Dzr4Scvf-3b58c39fee88394ec2e1.js +1 -0
- data/tools/tlmviewer/DateWidget-BWh76Ibb-ac074aeaea4ae28b932b.js +1 -0
- data/tools/tlmviewer/DetailsDialog-EWjtBjle-d4dd05092c5bc49f1782.js +1 -0
- data/tools/tlmviewer/DynamicWidget-m9EliUR2-8d85e78ca04879befa40.js +1 -0
- data/tools/tlmviewer/FormatvalueWidget-Rk0_eeIm-f77175bb6b0d8cfbba7e.js +1 -0
- data/tools/tlmviewer/GraphWidget-LqekkNDr-7971589abb6302bb8823.js +1 -0
- data/tools/tlmviewer/HorizontalWidget-BcfJ24Zn-8771030e5745a2560de7.js +1 -0
- data/tools/tlmviewer/HorizontalboxWidget-CQy1Hv9E-7114346abc91f32fa880.js +1 -0
- data/tools/tlmviewer/HorizontallineWidget-BdlNB951-b9d9866775aa55ae2654.js +1 -0
- data/tools/tlmviewer/IframeWidget-BBaDrRLo-fa4214902c4fe6b319c1.js +1 -0
- data/tools/tlmviewer/ImageLoader-CDLQopxJ-c125f3deddaad3cf247d.js +1 -0
- data/tools/tlmviewer/ImageviewerWidget-BgO3Pq6I-6af3f71d8c28cb3c41d8.js +1 -0
- data/tools/tlmviewer/LabelWidget-B_C6lKOE-212ff7523aaeb0ded1d3.js +1 -0
- data/tools/tlmviewer/LabelledWidget-B_UGivhr-581ade2f0e939f082d68.js +1 -0
- data/tools/tlmviewer/LabelprogressbarWidget-BJWCmsYC-dc1cef355de3bbabc41a.js +1 -0
- data/tools/tlmviewer/LabelsparklineWidget-DILCIh3q-1562dee0d3d149ac13d9.js +1 -0
- data/tools/tlmviewer/LabelvalueWidget-CCZd1NXE-a39b518d0e70487c4a9d.js +1 -0
- data/tools/tlmviewer/LabelvaluedescWidget-Bsllq8W6-1692d44fadc6c78e736f.js +1 -0
- data/tools/tlmviewer/LabelvaluelimitsbarWidget-BV-cfaD--932c2c5b926860dc521e.js +1 -0
- data/tools/tlmviewer/LabelvaluelimitscolumnWidget-DwA0eRBw-8bd7d2f9a56643e14379.js +1 -0
- data/tools/tlmviewer/LabelvaluerangebarWidget-3GDJz3dj-6484ea43c377813f8ee3.js +1 -0
- data/tools/tlmviewer/Layout-klOVw-YN-58a465e2b690da632156.js +1 -0
- data/tools/tlmviewer/LedWidget-BAt02s0J-4426442b78327779dcc9.js +1 -0
- data/tools/tlmviewer/LimitsbarWidget-JJiyzZjb-44bfbec44112c4c0ff3e.js +1 -0
- data/tools/tlmviewer/LimitscolorWidget-CYzXKbYd-1cf1e703ce108859dc8e.js +1 -0
- data/tools/tlmviewer/LimitscolumnWidget-Cd76tBo7-8f9b96f21044a65781d7.js +1 -0
- data/tools/tlmviewer/LinegraphWidget-DWRtO6Ej-309c37b3543e9d3fa22b.js +1 -0
- data/tools/tlmviewer/MatrixbycolumnsWidget-cwsyjNV2-1fb49a3d873b4eb75b02.js +1 -0
- data/tools/tlmviewer/ProgressbarWidget-CYDziFej-c9b58d7be2332196a738.js +1 -0
- data/tools/tlmviewer/RadiobuttonWidget-U6jcQZoD-15b518dbf21a26a0fcaf.js +1 -0
- data/tools/tlmviewer/RadiogroupWidget-HTPJnsB0-c5f89e48214a128f2f4a.js +1 -0
- data/tools/tlmviewer/RangebarWidget-DW0FJK6y-a2d26324c158d8b3ce07.js +1 -0
- data/tools/tlmviewer/RollupWidget-B2qrx55f-4d4a3b3b78abc53cf763.js +1 -0
- data/tools/tlmviewer/ScrollwindowWidget-CwIDxgO6-2603bddcf4abb5f4555b.js +1 -0
- data/tools/tlmviewer/SignalWidget-Bosa3AbW-521d8ee03db614baa71c.js +1 -0
- data/tools/tlmviewer/SpacerWidget-DYAlt5mt-9808c7e09040836757c8.js +1 -0
- data/tools/tlmviewer/SparklineWidget-CDrVXOFV-5f3422e8f1d2cfbce347.js +1 -0
- data/tools/tlmviewer/TabbookWidget-DDdlzCkv-4cb9d3be58ce6f05d747.js +1 -0
- data/tools/tlmviewer/TextboxWidget-5euFelEq-2482450d5c931c1113a3.js +1 -0
- data/tools/tlmviewer/TextfieldWidget-BFripYeh-b1bd68f07ac3ef77882c.js +1 -0
- data/tools/tlmviewer/TimeWidget-BBSbsUYJ-5d4c1d86c386dbbf905c.js +1 -0
- data/tools/tlmviewer/TitleWidget-p8cjo-Bs-a7af9988df0b05b80d65.js +1 -0
- data/tools/tlmviewer/TlmViewer-6e14e0d918ebe0bcfccf.js +33 -0
- data/tools/tlmviewer/VWidget-Dmqf_jKM-b217d0a6c05ea8cc2b27.js +1 -0
- data/tools/tlmviewer/ValueWidget-CZh7JWwT-e746b019c8958e7e1580.js +1 -0
- data/tools/tlmviewer/ValuelimitsbarWidget-DU7ybswC-9de33cdfa854288acf1a.js +1 -0
- data/tools/tlmviewer/ValuelimitscolumnWidget-DMw-h5jM-e29749888e7c8a7aeffd.js +1 -0
- data/tools/tlmviewer/ValuerangebarWidget-DPpofDpA-6da22682997bff6feac1.js +1 -0
- data/tools/tlmviewer/VerticalWidget-Ch7VAEmz-5cbb8bc65a48a0198b23.js +1 -0
- data/tools/tlmviewer/VerticalboxWidget-DYx-TFT4-39b8213ffe9e052b0d6a.js +1 -0
- data/tools/tlmviewer/Widget-orNSvnOh-b2a9201f5a2da2b98a95.js +1 -0
- data/tools/tlmviewer/main-ba9a9a82c5555f5fd208.js +1423 -0
- data/tools/tlmviewer/main.js +1 -0
- metadata +68 -11
- data/tools/tlmviewer/index.html +0 -4
- data/tools/tlmviewer/js/272.js +0 -2
- data/tools/tlmviewer/js/272.js.map +0 -1
- data/tools/tlmviewer/js/299.js +0 -2
- data/tools/tlmviewer/js/299.js.map +0 -1
- data/tools/tlmviewer/js/79.js +0 -39
- data/tools/tlmviewer/js/79.js.map +0 -1
- data/tools/tlmviewer/js/app.js +0 -2
- data/tools/tlmviewer/js/app.js.map +0 -1
data/tools/tlmviewer/js/299.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_tlmviewer"]=self["webpackChunk_openc3_cosmos_tool_tlmviewer"]||[]).push([[299],{7448:(e,t,n)=>{var i={"./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 s(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}s.keys=function(){return Object.keys(i)},s.resolve=a,e.exports=s,s.id=7448},2754:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(9729),s=n(4364);const a={mixins:[i.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 s.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 i=t[3]-10*this.scale;if(this.maxValue&&this.maxValue==t[3]&&(i=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 i=n(6484),s=n(6070),a=n(9729);const l={mixins:[a.A],data:function(){return{id:Math.floor(1e11*Math.random()),state:"start",items:[{targetName:this.parameters[0],packetName:this.parameters[1],itemName:this.parameters[2],valueType:this.parameters[3]||"CONVERTED",reduced:this.parameters[4]||"DECOM",reducedType:this.parameters[5]||null}],startTime:null,secondsGraphed:3600,pointsSaved:3600,pointsGraphed:3600,size:{height:300,width:400}}},created:function(){this.settings.forEach((e=>{switch(e[0]){case"ITEM":this.items.push({targetName:e[1],packetName:e[2],itemName:e[3],valueType:e[4]||"CONVERTED",reduced:e[5]||"DECOM",reducedType:e[6]||null});case"STARTTIME":let t=(0,i.qg)(e[1],"yyyy/MM/dd HH:mm:ss",new Date);this.startTime=1e6*t.getTime();break;case"HISTORY":let n=parseInt(e[1].slice(0,e[1].length-1)),a=null,l=1;switch(e[1][e[1].length-1]){case"d":a="days",l=86400;break;case"h":a="hours",l=3600;break;case"m":a="minutes",l=60;break;case"s":a="seconds";break;default:throw new Error(`Unknown time suffix: ${e[1]}!`)}let r={};r[a]=n,this.startTime=1e6*(0,s.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:()=>s});var i=n(2795);const s={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:async function(e){let t="targets_modified";await i.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 i.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:()=>s});var i=n(9729);const s={mixins:[i.A],props:{widgets:{type:Array,default:()=>[]}}}},2967:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});n(4293),n(8715);var i=n(7903),s=n(9729);n(9471);const a={mixins:[s.A,i.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:()=>s});n(9375),n(7534);var i=n(3069);const s={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,s=""){let a={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 i.o(a,`Not enough parameters for ${e}.`,s,"https://docs.openc3.com/docs/configuration");if(null!==n&&this.parameters.length>n)throw new i.o(a,`Too many parameters for ${e}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(e,t="px",n="120"){let i=null;if(i=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"WIDTH"===e[1])):this.settings.find((e=>"WIDTH"===e[0])),i)return i["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 i=null;if(i=null!==this.widgetIndex?this.settings.find((e=>parseInt(e[0])===this.widgetIndex&&"HEIGHT"===e[1])):this.settings.find((e=>"HEIGHT"===e[0])),i)return i["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 i=n(2673);const s=async function(e,t,{data:n,params:s={},headers:a,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()}a["Authorization"]=localStorage.openc3Token}return a["manual"]=!0,r||s["scope"]||(s["scope"]=window.openc3Scope),(0,i.A)({method:e,url:t,data:n,params:s,headers:a,onUploadProgress:o})},a={Accept:"application/json"},l={...a,"Content-Type":"application/json"},r={get:function(e,{params:t,headers:n=a,noScope:i,noAuth:l,onUploadProgress:r}={}){return s("get",e,{params:t,headers:n,noScope:i,noAuth:l,onUploadProgress:r})},put:function(e,{data:t,params:n,headers:i=l,noScope:a,noAuth:r,onUploadProgress:o}={}){return s("put",e,{data:t,params:n,headers:i,noScope:a,noAuth:r,onUploadProgress:o})},post:function(e,{data:t,params:n,headers:i=l,noScope:a,noAuth:r,onUploadProgress:o}={}){return s("post",e,{data:t,params:n,headers:i,noScope:a,noAuth:r,onUploadProgress:o})},delete:function(e,{params:t,headers:n=a,noScope:i,noAuth:l,onUploadProgress:r}={}){return s("delete",e,{params:t,headers:n,noScope:i,noAuth:l,onUploadProgress:r})}}},2673:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(3816),s=n(1649);const a=new s["default"],l=i.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}`,a.$notify&&a.$notify.serious({title:"Network error",body:t}),e}throw e}));const r=l},3069:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,o:()=>s});var i=n(814);n(9375),n(4293);class s{constructor(e,t,n="",i=""){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=i}}class a{constructor(){(0,i.A)(this,"keyword",null),(0,i.A)(this,"parameters",[]),(0,i.A)(this,"filename",""),(0,i.A)(this,"line",""),(0,i.A)(this,"lineNumber",0),(0,i.A)(this,"url","https://docs.openc3.com/docs/configuration")}verify_num_parameters(e,t,n=""){for(let i=1;i<=e;i++)if(void 0===this.parameters[i-1])throw new s(this,`Not enough parameters for ${this.keyword}.`,n,this.url);if(t&&void 0!==this.parameters[t])throw new s(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,i,s){let a=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=t;let l=e.split("\n"),r=l.length;for(let o=0;o<r;o++){this.lineNumber=o+1;let e=l[o].trim();if(0===e.length)continue;if(!0===a){if("#"===e[0])continue;e=e.substring(1,e.length)}let t=e.charAt(e.length-1),r=!1;switch(t){case"+":r=!0;case"\\":let t=e.substring(0,e.length-1).trim();this.line+=t.substring(0,t.length-1),r&&(this.line+="\n"),a=!0;continue;case"&":this.line+=e.substring(0,e.length-1);continue;default:this.line+=e}a=!1;let c=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,d=this.scan_string(this.line,c),u="";if(d.length>0&&(u+=d[0]),0===u.length||"#"===u.charAt(0)?this.keyword=null:this.keyword=u.toUpperCase(),this.parameters=[],null===this.keyword){n&&s(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;i?this.parameters.push(this.remove_quotes(e)):this.parameters.push(e)}s(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}},4364:(e,t,n)=>{"use strict";n.d(t,{x:()=>a});var i=n(814),s=(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 a{constructor(){(0,i.A)(this,"id",1)}async exec(e,t,n={},i={},a=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,i["manual"]=!0;const l=await s.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",...i},timeout:a});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,i=30){const s=await this.exec("get_tlm_packet",[e,t],{type:n,stale_time:i});if(null!=s){let e=s.length,t=null;for(let n=0;n<e;n++)t=this.decode_openc3_type(s[n][1]),null!==t&&(s[n][1]=t)}return s}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 i={stale_time:t};null!==n&&(i["cache_timeout"]=n);const s=await this.exec("get_tlm_values",[e],i,{},1e4);let a=s[0].length,l=null;for(let r=0;r<a;r++)l=this.decode_openc3_type(s[0][r]),null!==l&&(s[0][r]=l);return s}get_limits(e,t,n){return this.exec("get_limits",[e,t,n])}async tlm(e,t,n,i="CONVERTED"){let s=null;if(void 0===t)s=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}s=await this.exec("tlm",[e],{type:t})}else s=await this.exec("tlm",[e,t,n],{type:i});let a=this.decode_openc3_type(s);return null!==a&&(s=a),s}async inject_tlm(e,t,n=null,i="CONVERTED"){data=await this.exec("inject_tlm",[e,t,n],{type:i})}set_tlm(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}override_tlm(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}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,i="CONVERTED"){return this.exec("get_cmd_value",[e,t,n,i])}get_cmd_buffer(e,t){return this.exec("get_cmd_buffer",[e,t])}_cmd(e,t,n,i,s){let a=null;for(let l in i)Object.prototype.hasOwnProperty.call(i,l)&&(a=this.encode_openc3_type(i[l]),null!==a&&(i[l]=a));return this.exec(e,[t,n,i],{},s)}get_cmd_hazardous(e,t,n,i={}){return void 0===t?this.exec("get_cmd_hazardous",e,{},i):this._cmd("get_cmd_hazardous",e,t,n,i)}cmd(e,t,n,i={}){return void 0===t?this.exec("cmd",e,{},i):this._cmd("cmd",e,t,n,i)}cmd_no_range_check(e,t,n,i={}){return void 0===t?this.exec("cmd_no_range_check",e,{},i):this._cmd("cmd_no_range_check",e,t,n,i)}cmd_raw(e,t,n,i={}){return void 0===t?this.exec("cmd_raw",e,{},i):this._cmd("cmd_raw",e,t,n,i)}cmd_raw_no_range_check(e,t,n,i={}){return void 0===t?this.exec("cmd_raw_no_range_check",e,{},i):this._cmd("cmd_raw_no_range_check",e,t,n,i)}cmd_no_hazardous_check(e,t,n,i={}){return void 0===t?this.exec("cmd_no_hazardous_check",e,{},i):this._cmd("cmd_no_hazardous_check",e,t,n,i)}cmd_no_checks(e,t,n,i={}){return void 0===t?this.exec("cmd_no_checks",e,{},i):this._cmd("cmd_no_checks",e,t,n,i)}cmd_raw_no_hazardous_check(e,t,n,i={}){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e,{},i):this._cmd("cmd_raw_no_hazardous_check",e,t,n,i)}cmd_raw_no_checks(e,t,n,i={}){return void 0===t?this.exec("cmd_raw_no_checks",e,{},i):this._cmd("cmd_raw_no_checks",e,t,n,i)}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),i=new Uint8Array(n);return Array.from(i).map((e=>e.toString(16).padStart(2,"0"))).join("")}}}},7903:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});n(4293);var i=n(686),s=n(5475),a=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,i.GP)(e,d):(0,i.GP)((0,s.Y)(e,e.getTimezoneOffset()),d)},formatDateTime(e,t){return t&&"local"!==t?(0,l.qD)(e,t,d):(0,i.GP)(e,d)},formatDate:function(e,t){return t&&"local"!==t?(0,l.qD)(e,this.timeZone,r):(0,i.GP)(e,r)},formatTime:function(e,t,n=o){return t&&"local"!==t?(0,l.qD)(e,this.timeZone,n):(0,i.GP)(e,n)},formatTimeHMS:function(e,t){return this.formatTime(e,t,c)},formatTimestamp(e,t){return this.formatDateTime((0,a.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)}}}},299:(e,t,n)=>{"use strict";function i(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="0f53a0706d41a6b6fb3ac644275964ffeb210bc4",n=new Function("return this")(),s="__coverage__",a={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.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:3363}},4:{start:{line:1,column:260},end:{line:1,column:273}},5:{start:{line:1,column:766},end:{line:1,column:788}},6:{start:{line:1,column:1111},end:{line:1,column:1133}},7:{start:{line:1,column:1300},end:{line:1,column:1354}},8:{start:{line:1,column:1502},end:{line:1,column:1535}},9:{start:{line:1,column:1737},end:{line:1,column:2607}},10:{start:{line:1,column:2164},end:{line:1,column:2194}},11:{start:{line:1,column:2260},end:{line:1,column:2285}},12:{start:{line:1,column:2319},end:{line:1,column:2347}},13:{start:{line:1,column:2381},end:{line:1,column:2419}},14:{start:{line:1,column:2455},end:{line:1,column:2495}},15:{start:{line:1,column:2528},end:{line:1,column:2565}},16:{start:{line:1,column:2793},end:{line:1,column:2811}},17:{start:{line:1,column:3029},end:{line:1,column:3047}},18:{start:{line:1,column:3294},end:{line:1,column:3317}},19:{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:244},end:{line:1,column:245}},loc:{start:{line:1,column:259},end:{line:1,column:274}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:750},end:{line:1,column:751}},loc:{start:{line:1,column:765},end:{line:1,column:789}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:1095},end:{line:1,column:1096}},loc:{start:{line:1,column:1110},end:{line:1,column:1134}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1294},end:{line:1,column:1295}},loc:{start:{line:1,column:1300},end:{line:1,column:1354}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1496},end:{line:1,column:1497}},loc:{start:{line:1,column:1502},end:{line:1,column:1535}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1723},end:{line:1,column:1724}},loc:{start:{line:1,column:1736},end:{line:1,column:2608}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2147},end:{line:1,column:2148}},loc:{start:{line:1,column:2163},end:{line:1,column:2195}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2248},end:{line:1,column:2249}},loc:{start:{line:1,column:2260},end:{line:1,column:2285}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2302},end:{line:1,column:2303}},loc:{start:{line:1,column:2318},end:{line:1,column:2348}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:2364},end:{line:1,column:2365}},loc:{start:{line:1,column:2380},end:{line:1,column:2420}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:2438},end:{line:1,column:2439}},loc:{start:{line:1,column:2454},end:{line:1,column:2496}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:2511},end:{line:1,column:2512}},loc:{start:{line:1,column:2527},end:{line:1,column:2566}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:2777},end:{line:1,column:2778}},loc:{start:{line:1,column:2792},end:{line:1,column:2812}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:3013},end:{line:1,column:3014}},loc:{start:{line:1,column:3028},end:{line:1,column:3048}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:3278},end:{line:1,column:3279}},loc:{start:{line:1,column:3293},end:{line:1,column:3318}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2625},end:{line:1,column:2848}},type:"cond-expr",locations:[{start:{line:1,column:2642},end:{line:1,column:2839}},{start:{line:1,column:2840},end:{line:1,column:2848}}],line:1},1:{loc:{start:{line:1,column:2861},end:{line:1,column:3084}},type:"cond-expr",locations:[{start:{line:1,column:2878},end:{line:1,column:3075}},{start:{line:1,column:3076},end:{line:1,column:3084}}],line:1},2:{loc:{start:{line:1,column:3097},end:{line:1,column:3359}},type:"cond-expr",locations:[{start:{line:1,column:3119},end:{line:1,column:3350}},{start:{line:1,column:3351},end:{line:1,column:3359}}],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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"0f53a0706d41a6b6fb3ac644275964ffeb210bc4"},l=n[s]||(n[s]={});l[e]&&l[e].hash===t||(l[e]=a);var r=l[e];return i=function(){return r},r}n.r(t),n.d(t,{default:()=>de}),i(),i().s[0]++;var s=function(){i().f[0]++;var e=(i().s[1]++,this),t=(i().s[2]++,e._self._c);return i().s[3]++,t("div",[t("top-bar",{attrs:{title:e.title,menus:e.menus}}),e._v(" "),t("v-expansion-panels",{staticStyle:{"margin-bottom":"5px"},model:{value:e.panel,callback:function(t){i().f[1]++,i().s[4]++,e.panel=t},expression:"panel"}},[t("v-expansion-panel",[t("v-expansion-panel-header"),e._v(" "),t("v-expansion-panel-content",[t("v-container",[t("v-row",{staticClass:"pt-3"},[t("v-select",{staticClass:"pa-0 mr-4",staticStyle:{"max-width":"300px"},attrs:{dense:"","hide-details":"",outlined:"",label:"Select Target",items:Object.keys(e.screens).sort(),"item-text":"label","item-value":"value"},on:{change:e.targetSelect},model:{value:e.selectedTarget,callback:function(t){i().f[2]++,i().s[5]++,e.selectedTarget=t},expression:"selectedTarget"}}),e._v(" "),t("v-select",{staticClass:"pa-0 mr-4",staticStyle:{"max-width":"300px"},attrs:{dense:"","hide-details":"",outlined:"",label:"Select Screen",items:e.screens[e.selectedTarget]},on:{change:e.screenSelect},model:{value:e.selectedScreen,callback:function(t){i().f[3]++,i().s[6]++,e.selectedScreen=t},expression:"selectedScreen"}}),e._v(" "),t("v-btn",{staticClass:"primary mr-2",attrs:{disabled:!e.selectedScreen,"data-test":"show-screen"},on:{click:()=>(i().f[4]++,i().s[7]++,e.showScreen(e.selectedTarget,e.selectedScreen))}},[e._v("\n Show\n ")]),e._v(" "),t("v-btn",{staticClass:"primary",attrs:{"data-test":"new-screen"},on:{click:()=>(i().f[5]++,i().s[8]++,e.newScreen(e.selectedTarget))}},[e._v("\n New Screen\n "),t("v-icon",[e._v(" mdi-file-plus")])],1)],1)],1)],1)],1)],1),e._v(" "),t("div",{staticClass:"grid"},e._l(e.definitions,(function(n){return i().f[6]++,i().s[9]++,t("div",{key:n.id,ref:"gridItem",refInFor:!0,staticClass:"item",attrs:{id:e.screenId(n.id)}},[t("div",{staticClass:"item-content"},[t("openc3-screen",{attrs:{target:n.target,screen:n.screen,definition:n.definition,keywords:e.keywords,initialFloated:n.floated,initialTop:n.top,initialLeft:n.left,initialZ:n.zIndex,"time-zone":e.timeZone},on:{"close-screen":function(t){return i().f[7]++,i().s[10]++,e.closeScreen(n.id)},"min-max-screen":e.refreshLayout,"add-new-screen":t=>(i().f[8]++,i().s[11]++,e.showScreen(...t)),"delete-screen":function(t){return i().f[9]++,i().s[12]++,e.deleteScreen(n)},"float-screen":function(t){return i().f[10]++,i().s[13]++,e.floatScreen(n,...t)},"unfloat-screen":function(t){return i().f[11]++,i().s[14]++,e.unfloatScreen(n,...t)},"drag-screen":function(t){return i().f[12]++,i().s[15]++,e.dragScreen(n,...t)},"edit-screen":e.refreshLayout}})],1)])})),0),e._v(" "),e.openConfig?(i().b[0][0]++,t("open-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.openConfiguration},model:{value:e.openConfig,callback:function(t){i().f[13]++,i().s[16]++,e.openConfig=t},expression:"openConfig"}})):(i().b[0][1]++,e._e()),e._v(" "),e.saveConfig?(i().b[1][0]++,t("save-config-dialog",{attrs:{configKey:e.configKey},on:{success:e.saveConfiguration},model:{value:e.saveConfig,callback:function(t){i().f[14]++,i().s[17]++,e.saveConfig=t},expression:"saveConfig"}})):(i().b[1][1]++,e._e()),e._v(" "),e.newScreenDialog?(i().b[2][0]++,t("new-screen-dialog",{attrs:{target:e.selectedTarget,screens:e.screens},on:{success:e.saveNewScreen},model:{value:e.newScreenDialog,callback:function(t){i().f[15]++,i().s[18]++,e.newScreenDialog=t},expression:"newScreenDialog"}})):(i().b[2][1]++,e._e())],1)},a=(i().s[19]++,[]),l=(n(9375),n(2795)),r=(n(4293),n(4364));const o={data:{configKey:"",dontSaveDefaultConfig:!1},methods:{loadDefaultConfig:function(){return localStorage[`${this.configKey}__default`]?JSON.parse(localStorage[`${this.configKey}__default`]):{}},saveDefaultConfig:function(e){!0!==this.dontSaveDefaultConfig&&(localStorage[`${this.configKey}__default`]=JSON.stringify(e))},openConfigBase:function(e,t=!1,n=null){(new r.x).load_config(this.configKey,e).then((i=>{i?(this.$notify.normal({title:"Loading configuration",body:e}),n&&n(JSON.parse(i)),t||this.$router.currentRoute.fullPath.includes(e)||this.$router.push({query:{config:e}})):this.$notify.caution({title:"Unknown configuration",body:e})})).catch((t=>{t&&this.$notify.serious({title:`Error opening configuration: ${e}`,body:t})}))},saveConfigBase:function(e,t){(new r.x).save_config(this.configKey,e,JSON.stringify(t)).then((()=>{this.$notify.normal({title:"Saved configuration",body:e})})).catch((t=>{t&&this.$notify.serious({title:`Error saving configuration: ${e}`,body:t})}))},resetConfigBase:function(){localStorage.removeItem(`${this.configKey}__default`),"/"!==this.$router.currentRoute.fullPath&&(this.$router.replace(this.$router.currentRoute.path),this.$router.go())}}};var c=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,i){return t("v-menu",{key:i,ref:"topmenu",refInFor:!0,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:s}){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",s,!1),i),[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(i,s){return[i.divider?t("v-divider",{key:s}):i.subMenu&&i.subMenu.length>0?t("div",{key:s},[t("v-menu",{key:e.k,attrs:{"open-on-hover":"","offset-x":"",bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:a}){return[t("v-list-item",e._g(e._b({key:s,attrs:{disabled:i.disabled}},"v-list-item",a,!1),n),[i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label)+"\n ")]),e._v(" "),t("v-icon",[e._v(" mdi-chevron-right ")])],1)]}}],null,!0)},[e._v(" "),t("v-list",e._l(i.subMenu,(function(n,i){return t("v-list-item",{key:i,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:s,attrs:{disabled:i.disabled,"data-test":e.formatDT(`${e.title} ${n.label} ${i.label}`)},on:{click:function(e){return i.command(i)}}},[i.radio?t("v-list-item-action",{staticClass:"list-action"},[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),e._v(" "),i.checkbox?t("v-list-item-action",{staticClass:"list-action"},[t("v-checkbox",{attrs:{color:"secondary",label:i.label},model:{value:i.checked,callback:function(t){e.$set(i,"checked",t)},expression:"option.checked"}})],1):e._e(),e._v(" "),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),e._v(" "),i.radio||i.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(i.disabled?"opacity: 0.2":"")},[e._v(e._s(i.label))])],1)]}))],2)],1)],1)})),1)],1)},d=[];n(8715);const u={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}},m=u;n(5699);var h=n(2401),p=(0,h.A)(m,c,d,!1,null,"0af23388",null);const v=p.exports;var g=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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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)},f=[],_=(n(9033),n(8903),n(1018),n(1415),n(4448),n(8871),n(6539),n(3069)),A=n(1649),w=n(5485),b=n.n(w),y=n(9677),x=n.n(y),C=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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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,i){return t("v-row",{key:i,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)},S=[],k=(n(3165),n(4541),n(4397),n(1412),n(1883),n(7905),n(1841)),T=(n(1136),n(5617),n(6717),n(9946),n(814));n(8605);class I{constructor(){(0,T.A)(this,"getCompletions",(async function(e,t,n,i,s){var a=t.getLine(n.row),l=a.slice(0,n.column),r=l.trimStart().split(/ (?![^<]*>)/),o=this.autocompleteData;r.length>1&&(o=o.find((e=>e.caption===r[0])));var c={},d=!0;if(o&&o["params"]){o["params"].length==r.length-1&&(d=!1);var u=o["params"][r.length-2];if(u["Target name"]){var m=await this.api.get_target_names();o=m.reduce(((e,t)=>(e[t]=1,e)),{})}else if(u["Packet name"]){var h=r[r.length-2],p=await this.api.get_all_tlm(h);o=p.reduce(((e,t)=>(e[t.packet_name]=t.description,e)),{})}else if(u["Item name"]){h=r[r.length-3];var v=r[r.length-2];v=await this.api.get_tlm(h,v);o=v.items.reduce(((e,t)=>(e[t.name]=t.description,e)),{})}else o=u;c=Object.keys(o||{}).map((e=>{var t={value:e+(d?" ":""),command:d&&"startAutocomplete"};return"string"===typeof o[e]&&(t["meta"]=o[e]),t}))}else c=o;s(null,c)})),l.A.get("/openc3-api/autocomplete/data/screen").then((e=>{this.autocompleteData=e.data})),this.api=new r.x}}const N={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 i=`At ${n.lineNumber}: (${n.line}) ${n.message}.`;n.usage&&(i+=` Usage: ${n.usage}`),t.push(i),e.add(n.message)}return t}return[]},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted:function(){this.editor=k.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 I],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 i=n.value.trim();i.includes(" ")?this.docsKeyword=i.split(" ")[0]:this.docsKeyword=i,this.contextMenu=!0}},openDocumentation(){window.open(`${window.location.origin}/tools/staticdocs/docs/configuration/telemetry-screens#${this.docsKeyword.toLowerCase()}`,"_blank")},buildScreenMode(){var e=k.require("ace/lib/oop"),t=k.require("ace/mode/text_highlight_rules").TextHighlightRules;let n=this.keywords.join("|");var i=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(i,t);var s=function(){this.HighlightRules=i},a=k.require("ace/mode/text").Mode;return e.inherits(s,a),function(){this.$id="ace/mode/openc3"}.call(s.prototype),s},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")}))}}},E=N;n(2605),n(7613);var D=(0,h.A)(E,C,S,!1,null,"2f59da98",null);const M=D.exports,$=20,L=n(7448);L.keys().forEach((e=>{const t=L(e),n=b()(x()(e.split("/").pop().replace(/\.\w+$/,"")));A["default"].component(n,t.default||t)}));const O={components:{EditScreenDialog:M},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 i=`${n.time}: (${n.type}) ${n.message}\n`;t+=i,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<$&&(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 _.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,i)=>{if(e)switch(e){case"SCREEN":this.configParser.verify_num_parameters(3,4,`${e} <Width or AUTO> <Height or AUTO> <Polling Period>`),this.width=parseInt(t[0]),this.height=parseInt(t[1]),this.pollingPeriod=parseFloat(t[2]);break;case"END":this.configParser.verify_num_parameters(0,0,`${e}`),this.layoutStack.pop(),this.currentLayout=this.layoutStack[this.layoutStack.length-1];break;case"STALE_TIME":this.configParser.verify_num_parameters(1,1,`${e} <Time (s)>`),this.staleTime=parseInt(t[0]);break;case"SETTING":case"SUBSETTING":const s=this.currentLayout.widgets[this.currentLayout.widgets.length-1]??this.currentLayout;s.settings.push(t);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":this.globalSettings.push(t);break;default:this.processWidget(e,t,n,i);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<$&&(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(){l.A.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)}))},deleteScreen:function(){this.editDialog=!1,l.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,i){var s=null;"NAMED_WIDGET"===e&&(this.configParser.verify_num_parameters(2,null,`${e} <Widget Name> <Widget Type> <Widget Settings... (optional)>`),s=t[0].toUpperCase(),e=t[1].toUpperCase(),t=t.slice(2,t.length));const a=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget";let l=[];if(null!==s&&l.push(["NAMED_WIDGET",s,this]),"VERTICAL"===e||"VERTICALBOX"===e||"HORIZONTAL"===e||"HORIZONTALBOX"===e||"MATRIXBYCOLUMNS"===e||"TABBOOK"===e||"TABITEM"===e||"CANVAS"===e||"RADIOGROUP"===e||"SCROLLWINDOW"===e){const e={type:a,parameters:t,settings:l,widgets:[]};this.layoutStack.push(e),this.currentLayout.widgets.push(e),this.currentLayout=e}else if(l.push(["__SCREEN__",this]),A["default"].options.components[a])this.currentLayout.widgets.push({type:a,target:this.target,parameters:t,settings:l,line:n,lineNumber:i});else{let e={type:"DynamicWidget",target:this.target,parameters:t,settings:l,name:a,line:n,lineNumber:i};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<$&&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),A["default"].set(this.screenValues,this.screenItems[t],e[t])},addItem:function(e){this.screenItems.push(e),A["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){let t=this.screenItems.indexOf(e);this.screenItems.splice(t,1)}}},V=O;n(7324);var W=(0,h.A)(V,g,f,!1,null,"fae32f12",null);const R=W.exports;function P(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="b27cb2709ef0cdd29c88c3d70f8724cd6355e35f",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.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:3179}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:424},end:{line:1,column:649}},6:{start:{line:1,column:568},end:{line:1,column:584}},7:{start:{line:1,column:863},end:{line:1,column:891}},8:{start:{line:1,column:1406},end:{line:1,column:1428}},9:{start:{line:1,column:2189},end:{line:1,column:2215}},10:{start:{line:1,column:2509},end:{line:1,column:2542}},11:{start:{line:1,column:2603},end:{line:1,column:2624}},12:{start:{line:1,column:2989},end:{line:1,column:3005}},13:{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:137},end:{line:1,column:138}},loc:{start:{line:1,column:152},end:{line:1,column:166}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:400},end:{line:1,column:401}},loc:{start:{line:1,column:423},end:{line:1,column:650}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:551},end:{line:1,column:552}},loc:{start:{line:1,column:567},end:{line:1,column:585}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:847},end:{line:1,column:848}},loc:{start:{line:1,column:862},end:{line:1,column:892}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1390},end:{line:1,column:1391}},loc:{start:{line:1,column:1405},end:{line:1,column:1429}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:2173},end:{line:1,column:2174}},loc:{start:{line:1,column:2188},end:{line:1,column:2216}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:2492},end:{line:1,column:2493}},loc:{start:{line:1,column:2508},end:{line:1,column:2543}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2587},end:{line:1,column:2588}},loc:{start:{line:1,column:2602},end:{line:1,column:2625}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2972},end:{line:1,column:2973}},loc:{start:{line:1,column:2988},end:{line:1,column:3006}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2668},end:{line:1,column:2806}},type:"cond-expr",locations:[{start:{line:1,column:2690},end:{line:1,column:2797}},{start:{line:1,column:2798},end:{line:1,column:2806}}],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},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b27cb2709ef0cdd29c88c3d70f8724cd6355e35f"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var l=a[e];return P=function(){return l},l}P(),P().s[0]++;var z=function(){P().f[0]++;var e=(P().s[1]++,this),t=(P().s[2]++,e._self._c);return P().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){P().f[1]++,P().s[4]++,e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Create New Screen")]),e._v(" "),t("v-spacer"),e._v(" "),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return P().f[2]++,P().s[5]++,[t("div",e._g(e._b({},"div",i,!1),n),[t("v-icon",{attrs:{"data-test":"new-screen-close-icon"},on:{click:function(t){P().f[3]++,P().s[6]++,e.show=!1}}},[e._v("\n mdi-close-box\n ")])],1)]}}])},[e._v(" "),t("span",[e._v("Close")])])],1),e._v(" "),t("v-card-text",[t("v-alert",{attrs:{type:"error",dismissible:"",dense:""},model:{value:e.duplicateScreenAlert,callback:function(t){P().f[4]++,P().s[7]++,e.duplicateScreenAlert=t},expression:"duplicateScreenAlert"}},[e._v("\n Screen "+e._s(e.newScreenName.toUpperCase())+" already exists!\n ")]),e._v(" "),t("v-row",{staticClass:"pt-3"},[t("v-col",[e._v(" Screens must belong to a target. Select a target:")])],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",[t("v-select",{attrs:{label:"Select Target",items:e.targets,"item-text":"label","item-value":"value"},on:{change:e.targetSelect},model:{value:e.selectedTarget,callback:function(t){P().f[5]++,P().s[8]++,e.selectedTarget=t},expression:"selectedTarget"}})],1)],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",[e._v("Screens can be auto-generated based on an existing Packet. This\n creates a LABELVALUE line for every item in the packet. The screen\n can then be edited and customized.")])],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",[e._v("Leave this blank to start with a blank screen.")])],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",[t("v-autocomplete",{attrs:{label:"New screen packet","hide-details":"",dense:"",items:e.packetNames,"item-text":"label","item-value":"value","data-test":"new-screen-packet"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(t){P().f[6]++,P().s[9]++,e.selectedPacketName=t},expression:"selectedPacketName"}})],1)],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-col",[t("v-text-field",{attrs:{flat:"",autofocus:"",clearable:"",label:"Screen Name (without .txt)",rules:[e.rules.required],"data-test":"new-screen-name"},on:{keyup:function(t){return P().f[7]++,P().s[10]++,e.newScreenKeyup(t)}},model:{value:e.newScreenName,callback:function(t){P().f[8]++,P().s[11]++,e.newScreenName=t},expression:"newScreenName"}}),e._v(" "),e.newScreenSaving?(P().b[0][0]++,t("div",{staticClass:"pl-2"},[t("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1)):(P().b[0][1]++,e._e())],1)],1)],1),e._v(" "),t("v-divider"),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(t){P().f[9]++,P().s[12]++,e.show=!1}}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:e.saveNewScreen}},[e._v("\n Save\n ")])],1)],1)],1)},U=(P().s[13]++,[]);n(7534);function H(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="da6b3531dd2b4a41f07244bbf8e8c45a58aba1fa",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",statementMap:{0:{start:{line:15,column:4},end:{line:27,column:5}},1:{start:{line:25,column:29},end:{line:25,column:51}},2:{start:{line:30,column:4},end:{line:30,column:30}},3:{start:{line:31,column:4},end:{line:31,column:37}},4:{start:{line:32,column:4},end:{line:32,column:32}},5:{start:{line:33,column:4},end:{line:33,column:37}},6:{start:{line:34,column:4},end:{line:38,column:8}},7:{start:{line:37,column:8},end:{line:37,column:67}},8:{start:{line:37,column:48},end:{line:37,column:66}},9:{start:{line:39,column:4},end:{line:39,column:42}},10:{start:{line:44,column:8},end:{line:44,column:25}},11:{start:{line:47,column:8},end:{line:47,column:34}},12:{start:{line:51,column:6},end:{line:55,column:7}},13:{start:{line:52,column:8},end:{line:52,column:59}},14:{start:{line:54,column:8},end:{line:54,column:21}},15:{start:{line:60,column:6},end:{line:60,column:34}},16:{start:{line:61,column:6},end:{line:72,column:8}},17:{start:{line:62,column:8},end:{line:67,column:10}},18:{start:{line:63,column:10},end:{line:66,column:11}},19:{start:{line:68,column:8},end:{line:71,column:10}},20:{start:{line:75,column:6},end:{line:90,column:7}},21:{start:{line:76,column:8},end:{line:76,column:31}},22:{start:{line:77,column:8},end:{line:77,column:41}},23:{start:{line:79,column:8},end:{line:79,column:48}},24:{start:{line:80,column:8},end:{line:89,column:9}},25:{start:{line:86,column:10},end:{line:86,column:42}},26:{start:{line:88,column:10},end:{line:88,column:43}},27:{start:{line:93,column:6},end:{line:105,column:7}},28:{start:{line:99,column:8},end:{line:99,column:40}},29:{start:{line:101,column:8},end:{line:101,column:41}},30:{start:{line:102,column:8},end:{line:104,column:9}},31:{start:{line:103,column:10},end:{line:103,column:30}},32:{start:{line:108,column:6},end:{line:110,column:7}},33:{start:{line:109,column:8},end:{line:109,column:14}},34:{start:{line:111,column:6},end:{line:111,column:33}},35:{start:{line:112,column:6},end:{line:117,column:7}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:9},end:{line:28,column:3}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:25,column:18},end:{line:25,column:19}},loc:{start:{line:25,column:29},end:{line:25,column:51}},line:25},2:{name:"(anonymous_2)",decl:{start:{line:29,column:2},end:{line:29,column:3}},loc:{start:{line:29,column:12},end:{line:40,column:3}},line:29},3:{name:"(anonymous_3)",decl:{start:{line:36,column:12},end:{line:36,column:13}},loc:{start:{line:36,column:25},end:{line:38,column:7}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:37,column:38},end:{line:37,column:39}},loc:{start:{line:37,column:48},end:{line:37,column:66}},line:37},5:{name:"(anonymous_5)",decl:{start:{line:43,column:6},end:{line:43,column:7}},loc:{start:{line:43,column:12},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:46,column:6},end:{line:46,column:7}},loc:{start:{line:46,column:17},end:{line:48,column:7}},line:46},7:{name:"(anonymous_7)",decl:{start:{line:50,column:4},end:{line:50,column:5}},loc:{start:{line:50,column:22},end:{line:56,column:5}},line:50},8:{name:"(anonymous_8)",decl:{start:{line:59,column:4},end:{line:59,column:5}},loc:{start:{line:59,column:25},end:{line:73,column:5}},line:59},9:{name:"(anonymous_9)",decl:{start:{line:61,column:59},end:{line:61,column:60}},loc:{start:{line:61,column:70},end:{line:72,column:7}},line:61},10:{name:"(anonymous_10)",decl:{start:{line:62,column:37},end:{line:62,column:38}},loc:{start:{line:62,column:47},end:{line:67,column:9}},line:62},11:{name:"(anonymous_11)",decl:{start:{line:74,column:4},end:{line:74,column:5}},loc:{start:{line:74,column:29},end:{line:91,column:5}},line:74},12:{name:"(anonymous_12)",decl:{start:{line:92,column:4},end:{line:92,column:5}},loc:{start:{line:92,column:26},end:{line:106,column:5}},line:92},13:{name:"(anonymous_13)",decl:{start:{line:107,column:4},end:{line:107,column:5}},loc:{start:{line:107,column:20},end:{line:118,column:5}},line:107}},branchMap:{0:{loc:{start:{line:25,column:29},end:{line:25,column:51}},type:"binary-expr",locations:[{start:{line:25,column:29},end:{line:25,column:36}},{start:{line:25,column:40},end:{line:25,column:51}}],line:25},1:{loc:{start:{line:51,column:6},end:{line:55,column:7}},type:"if",locations:[{start:{line:51,column:6},end:{line:55,column:7}},{start:{line:53,column:13},end:{line:55,column:7}}],line:51},2:{loc:{start:{line:75,column:6},end:{line:90,column:7}},type:"if",locations:[{start:{line:75,column:6},end:{line:90,column:7}},{start:{line:78,column:13},end:{line:90,column:7}}],line:75},3:{loc:{start:{line:80,column:8},end:{line:89,column:9}},type:"if",locations:[{start:{line:80,column:8},end:{line:89,column:9}},{start:{line:87,column:15},end:{line:89,column:9}}],line:80},4:{loc:{start:{line:81,column:10},end:{line:84,column:18}},type:"binary-expr",locations:[{start:{line:81,column:10},end:{line:81,column:43}},{start:{line:82,column:10},end:{line:84,column:18}}],line:81},5:{loc:{start:{line:93,column:6},end:{line:105,column:7}},type:"if",locations:[{start:{line:93,column:6},end:{line:105,column:7}},{start:{line:100,column:13},end:{line:105,column:7}}],line:93},6:{loc:{start:{line:94,column:8},end:{line:97,column:16}},type:"binary-expr",locations:[{start:{line:94,column:8},end:{line:94,column:41}},{start:{line:95,column:8},end:{line:97,column:16}}],line:94},7:{loc:{start:{line:102,column:8},end:{line:104,column:9}},type:"if",locations:[{start:{line:102,column:8},end:{line:104,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:102},8:{loc:{start:{line:108,column:6},end:{line:110,column:7}},type:"if",locations:[{start:{line:108,column:6},end:{line:110,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:108},9:{loc:{start:{line:108,column:10},end:{line:108,column:64}},type:"binary-expr",locations:[{start:{line:108,column:10},end:{line:108,column:35}},{start:{line:108,column:39},end:{line:108,column:64}}],line:108}},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},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},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]},inputSourceMap:{version:3,sources:["NewScreenDialog.vue"],names:[],mappings:";AA4GA;;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",file:"NewScreenDialog.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2023 OpenC3, Inc.\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# 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 \x3c!-- Dialog for creating new screen --\x3e\n <v-dialog v-model="show" width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span>Create New Screen</span>\n <v-spacer />\n <v-tooltip top>\n <template v-slot:activator="{ on, attrs }">\n <div v-on="on" v-bind="attrs">\n <v-icon data-test="new-screen-close-icon" @click="show = false">\n mdi-close-box\n </v-icon>\n </div>\n </template>\n <span>Close</span>\n </v-tooltip>\n </v-system-bar>\n <v-card-text>\n <v-alert v-model="duplicateScreenAlert" type="error" dismissible dense>\n Screen {{ newScreenName.toUpperCase() }} already exists!\n </v-alert>\n <v-row class="pt-3">\n <v-col> Screens must belong to a target. Select a target:</v-col>\n </v-row>\n <v-row dense\n ><v-col>\n <v-select\n label="Select Target"\n :items="targets"\n item-text="label"\n item-value="value"\n v-model="selectedTarget"\n @change="targetSelect" /></v-col\n ></v-row>\n\n <v-row dense>\n <v-col\n >Screens can be auto-generated based on an existing Packet. This\n creates a LABELVALUE line for every item in the packet. The screen\n can then be edited and customized.</v-col\n >\n </v-row>\n <v-row dense>\n <v-col>Leave this blank to start with a blank screen.</v-col>\n </v-row>\n <v-row dense>\n <v-col>\n <v-autocomplete\n label="New screen packet"\n hide-details\n dense\n @change="packetNameChanged"\n :items="packetNames"\n item-text="label"\n item-value="value"\n v-model="selectedPacketName"\n data-test="new-screen-packet"\n /></v-col>\n </v-row>\n <v-row dense>\n <v-col>\n <v-text-field\n v-model="newScreenName"\n flat\n autofocus\n clearable\n label="Screen Name (without .txt)"\n :rules="[rules.required]"\n data-test="new-screen-name"\n @keyup="newScreenKeyup($event)" />\n <div class="pl-2" v-if="newScreenSaving">\n <v-progress-circular indeterminate color="primary" /></div\n ></v-col>\n </v-row>\n </v-card-text>\n <v-divider />\n <v-card-actions>\n <v-spacer />\n <v-btn outlined class="mx-2" @click="show = false"> Cancel </v-btn>\n <v-btn color="primary" class="mx-2" @click="saveNewScreen">\n Save\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n</template>\n\n<script>\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\n\nexport default {\n props: {\n value: Boolean, // value is the default prop when using v-model\n target: {\n type: String,\n },\n screens: {\n type: Object,\n },\n },\n data() {\n return {\n api: null,\n targets: [],\n newScreenSaving: false,\n newScreenName: \'\',\n duplicateScreenAlert: false,\n packetNames: [],\n selectedTarget: \'\',\n selectedPacketName: \'\',\n rules: {\n required: (value) => !!value || \'Required.\',\n },\n }\n },\n created() {\n this.api = new OpenC3Api()\n this.duplicateScreenAlert = false\n this.newScreenSaving = false\n this.selectedTarget = this.target\n this.api\n .get_target_names({ params: { scope: window.openc3Scope } })\n .then((targets) => {\n this.targets = targets.filter((item) => item !== \'UNKNOWN\')\n })\n this.targetSelect(this.selectedTarget)\n },\n computed: {\n show: {\n get() {\n return this.value\n },\n set(value) {\n this.$emit(\'input\', value) // input is the default event when using v-model\n },\n },\n existingScreens() {\n if (this.screens[this.selectedTarget]) {\n return this.screens[this.selectedTarget].join(\', \')\n } else {\n return \'None\'\n }\n },\n },\n methods: {\n targetSelect(target) {\n this.selectedTarget = target\n this.api.get_all_tlm_names(this.selectedTarget).then((names) => {\n this.packetNames = names.map((name) => {\n return {\n label: name,\n value: name,\n }\n })\n this.packetNames.unshift({\n label: \'[ BLANK ]\',\n value: \'BLANK\',\n })\n })\n },\n packetNameChanged(value) {\n if (value === \'BLANK\') {\n this.newScreenName = \'\'\n this.duplicateScreenAlert = false\n } else {\n this.newScreenName = value.toLowerCase()\n if (\n this.screens[this.selectedTarget] &&\n this.screens[this.selectedTarget].indexOf(\n this.newScreenName.toUpperCase(),\n ) !== -1\n ) {\n this.duplicateScreenAlert = true\n } else {\n this.duplicateScreenAlert = false\n }\n }\n },\n newScreenKeyup(event) {\n if (\n this.screens[this.selectedTarget] &&\n this.screens[this.selectedTarget].indexOf(\n this.newScreenName.toUpperCase(),\n ) !== -1\n ) {\n this.duplicateScreenAlert = true\n } else {\n this.duplicateScreenAlert = false\n if (event.key === \'Enter\') {\n this.saveNewScreen()\n }\n }\n },\n saveNewScreen() {\n if (this.duplicateScreenAlert || this.newScreenName === \'\') {\n return\n }\n this.newScreenSaving = true\n this.$emit(\n \'success\',\n this.newScreenName.toUpperCase(),\n this.selectedPacketName,\n this.selectedTarget,\n )\n },\n },\n}\n<\/script>\n\n<style scoped>\n.v-alert {\n margin-bottom: 0px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"da6b3531dd2b4a41f07244bbf8e8c45a58aba1fa"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var l=a[e];return H=function(){return l},l}H();const G={props:{value:Boolean,target:{type:String},screens:{type:Object}},data(){return H().f[0]++,H().s[0]++,{api:null,targets:[],newScreenSaving:!1,newScreenName:"",duplicateScreenAlert:!1,packetNames:[],selectedTarget:"",selectedPacketName:"",rules:{required:e=>(H().f[1]++,H().s[1]++,H().b[0][0]++,!!e||(H().b[0][1]++,"Required."))}}},created(){H().f[2]++,H().s[2]++,this.api=new r.x,H().s[3]++,this.duplicateScreenAlert=!1,H().s[4]++,this.newScreenSaving=!1,H().s[5]++,this.selectedTarget=this.target,H().s[6]++,this.api.get_target_names({params:{scope:window.openc3Scope}}).then((e=>{H().f[3]++,H().s[7]++,this.targets=e.filter((e=>(H().f[4]++,H().s[8]++,"UNKNOWN"!==e)))})),H().s[9]++,this.targetSelect(this.selectedTarget)},computed:{show:{get(){return H().f[5]++,H().s[10]++,this.value},set(e){H().f[6]++,H().s[11]++,this.$emit("input",e)}},existingScreens(){return H().f[7]++,H().s[12]++,this.screens[this.selectedTarget]?(H().b[1][0]++,H().s[13]++,this.screens[this.selectedTarget].join(", ")):(H().b[1][1]++,H().s[14]++,"None")}},methods:{targetSelect(e){H().f[8]++,H().s[15]++,this.selectedTarget=e,H().s[16]++,this.api.get_all_tlm_names(this.selectedTarget).then((e=>{H().f[9]++,H().s[17]++,this.packetNames=e.map((e=>(H().f[10]++,H().s[18]++,{label:e,value:e}))),H().s[19]++,this.packetNames.unshift({label:"[ BLANK ]",value:"BLANK"})}))},packetNameChanged(e){H().f[11]++,H().s[20]++,"BLANK"===e?(H().b[2][0]++,H().s[21]++,this.newScreenName="",H().s[22]++,this.duplicateScreenAlert=!1):(H().b[2][1]++,H().s[23]++,this.newScreenName=e.toLowerCase(),H().s[24]++,H().b[4][0]++,this.screens[this.selectedTarget]&&(H().b[4][1]++,-1!==this.screens[this.selectedTarget].indexOf(this.newScreenName.toUpperCase()))?(H().b[3][0]++,H().s[25]++,this.duplicateScreenAlert=!0):(H().b[3][1]++,H().s[26]++,this.duplicateScreenAlert=!1))},newScreenKeyup(e){H().f[12]++,H().s[27]++,H().b[6][0]++,this.screens[this.selectedTarget]&&(H().b[6][1]++,-1!==this.screens[this.selectedTarget].indexOf(this.newScreenName.toUpperCase()))?(H().b[5][0]++,H().s[28]++,this.duplicateScreenAlert=!0):(H().b[5][1]++,H().s[29]++,this.duplicateScreenAlert=!1,H().s[30]++,"Enter"===e.key?(H().b[7][0]++,H().s[31]++,this.saveNewScreen()):H().b[7][1]++)},saveNewScreen(){if(H().f[13]++,H().s[32]++,H().b[9][0]++,this.duplicateScreenAlert||(H().b[9][1]++,""===this.newScreenName))return H().b[8][0]++,void H().s[33]++;H().b[8][1]++,H().s[34]++,this.newScreenSaving=!0,H().s[35]++,this.$emit("success",this.newScreenName.toUpperCase(),this.selectedPacketName,this.selectedTarget)}}},B=G;n(1148);var Y=(0,h.A)(B,z,U,!1,null,"77161074",null);const F=Y.exports;var j=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Open Configuration")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":"","data-test":"search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":(e,t)=>t.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(n)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v("\n Cancel\n ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},K=[];const q={props:{configKey:String,value:Boolean},data(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){let e=-1;(new r.x).list_configs(this.configKey).then((t=>{this.configs=t.map((t=>(e+=1,{configId:e,config:t})))})).catch((e=>{this.$emit("warning",`Failed to connect to OpenC3. ${e}`)}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.config}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>{this.selectedItem.config===e.config&&(this.selectedItem=null),this.configs.splice(this.configs.indexOf(e),1),(new r.x).delete_config(this.configKey,e.config)})).catch((t=>{!0!==t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},Z=q;var X=(0,h.A)(Z,j,K,!1,null,null,null);const J=X.exports;var Q=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),e._v(" "),t("span",[e._v("Save Configuration")]),e._v(" "),t("v-spacer")],1),e._v(" "),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","prepend-inner-icon":"mdi-magnify",clearable:"",outlined:"",dense:"","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":"","data-test":"search"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":(e,t)=>t.select(e)},scopedSlots:e._u([{key:"item.actions",fn:function({item:n}){return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(n)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),e._v(" "),t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(t){e.configName=t},expression:"configName"}})],1),e._v(" "),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})])],1)]),e._v(" "),t("v-card-actions",[t("v-spacer"),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),e._v(" "),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(t){return t.preventDefault(),e.success.apply(null,arguments)}}},[e._v("\n Ok\n ")])],1)],1)])],1)},ee=[];const te={props:{configKey:String,value:Boolean},data(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get(){return this.value},set(e){this.$emit("input",e)}}},mounted(){let e=-1;(new r.x).list_configs(this.configKey).then((t=>{this.configs=t.map((t=>(e+=1,{configId:e,config:t})))})).catch((e=>{this.$emit("warning",`Failed to connect to OpenC3. ${e}`)}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){this.$dialog.confirm(`Are you sure you want to delete: ${e.config}`,{okText:"Delete",cancelText:"Cancel"}).then((t=>{this.configName===e.config&&(this.selectedItem=null,this.configName=""),this.configs.splice(this.configs.indexOf(e.config),1),(new r.x).delete_config(this.configKey,e.config)})).catch((t=>{!0!==t&&this.$emit("warning",`Failed to delete config ${e.config} Error: ${t}`)}))}}},ne=te;var ie=(0,h.A)(ne,Q,ee,!1,null,null,null);const se=ie.exports;var ae=n(8893);function le(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="8c6ccc54c0810657dee0870d639cd26d86a5bcd3",n=new Function("return this")(),i="__coverage__",s={path:"/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",statementMap:{0:{start:{line:22,column:4},end:{line:67,column:5}},1:{start:{line:42,column:16},end:{line:42,column:38}},2:{start:{line:49,column:16},end:{line:49,column:38}},3:{start:{line:56,column:16},end:{line:56,column:30}},4:{start:{line:57,column:16},end:{line:57,column:31}},5:{start:{line:58,column:16},end:{line:58,column:38}},6:{start:{line:72,column:8},end:{line:72,column:50}},7:{start:{line:79,column:6},end:{line:88,column:8}},8:{start:{line:80,column:8},end:{line:87,column:9}},9:{start:{line:93,column:4},end:{line:93,column:30}},10:{start:{line:94,column:4},end:{line:94,column:36}},11:{start:{line:95,column:4},end:{line:104,column:8}},12:{start:{line:98,column:8},end:{line:100,column:9}},13:{start:{line:99,column:10},end:{line:99,column:34}},14:{start:{line:105,column:4},end:{line:132,column:6}},15:{start:{line:106,column:6},end:{line:113,column:8}},16:{start:{line:107,column:20},end:{line:107,column:39}},17:{start:{line:108,column:8},end:{line:111,column:9}},18:{start:{line:110,column:10},end:{line:110,column:47}},19:{start:{line:112,column:8},end:{line:112,column:73}},20:{start:{line:115,column:6},end:{line:115,column:56}},21:{start:{line:116,column:6},end:{line:116,column:64}},22:{start:{line:119,column:6},end:{line:131,column:7}},23:{start:{line:120,column:8},end:{line:120,column:62}},24:{start:{line:121,column:13},end:{line:131,column:7}},25:{start:{line:123,column:8},end:{line:123,column:66}},26:{start:{line:124,column:8},end:{line:124,column:66}},27:{start:{line:126,column:21},end:{line:126,column:45}},28:{start:{line:128,column:8},end:{line:130,column:9}},29:{start:{line:129,column:10},end:{line:129,column:52}},30:{start:{line:133,column:4},end:{line:135,column:6}},31:{start:{line:134,column:6},end:{line:134,column:35}},32:{start:{line:138,column:4},end:{line:142,column:6}},33:{start:{line:143,column:4},end:{line:143,column:47}},34:{start:{line:147,column:6},end:{line:147,column:34}},35:{start:{line:148,column:6},end:{line:148,column:51}},36:{start:{line:151,column:6},end:{line:151,column:34}},37:{start:{line:152,column:6},end:{line:152,column:63}},38:{start:{line:155,column:6},end:{line:155,column:33}},39:{start:{line:158,column:17},end:{line:158,column:41}},40:{start:{line:159,column:6},end:{line:169,column:7}},41:{start:{line:160,column:8},end:{line:160,column:30}},42:{start:{line:161,column:8},end:{line:166,column:10}},43:{start:{line:162,column:10},end:{line:164,column:12}},44:{start:{line:163,column:12},end:{line:163,column:77}},45:{start:{line:165,column:10},end:{line:165,column:25}},46:{start:{line:168,column:8},end:{line:168,column:31}},47:{start:{line:170,column:6},end:{line:188,column:8}},48:{start:{line:178,column:8},end:{line:178,column:36}},49:{start:{line:179,column:8},end:{line:182,column:9}},50:{start:{line:181,column:10},end:{line:181,column:49}},51:{start:{line:183,column:8},end:{line:183,column:49}},52:{start:{line:184,column:8},end:{line:184,column:39}},53:{start:{line:185,column:8},end:{line:185,column:40}},54:{start:{line:186,column:8},end:{line:186,column:40}},55:{start:{line:187,column:8},end:{line:187,column:47}},56:{start:{line:191,column:18},end:{line:193,column:7}},57:{start:{line:192,column:17},end:{line:192,column:61}},58:{start:{line:194,column:6},end:{line:207,column:7}},59:{start:{line:195,column:8},end:{line:206,column:10}},60:{start:{line:196,column:10},end:{line:205,column:12}},61:{start:{line:210,column:6},end:{line:214,column:8}},62:{start:{line:217,column:6},end:{line:217,column:39}},63:{start:{line:218,column:6},end:{line:229,column:8}},64:{start:{line:219,column:8},end:{line:228,column:9}},65:{start:{line:220,column:22},end:{line:225,column:11}},66:{start:{line:226,column:10},end:{line:226,column:31}},67:{start:{line:227,column:10},end:{line:227,column:43}},68:{start:{line:232,column:18},end:{line:234,column:7}},69:{start:{line:233,column:17},end:{line:233,column:61}},70:{start:{line:235,column:6},end:{line:237,column:7}},71:{start:{line:236,column:8},end:{line:236,column:32}},72:{start:{line:240,column:6},end:{line:242,column:7}},73:{start:{line:241,column:8},end:{line:241,column:32}},74:{start:{line:245,column:18},end:{line:247,column:8}},75:{start:{line:248,column:6},end:{line:248,column:29}},76:{start:{line:249,column:6},end:{line:249,column:39}},77:{start:{line:250,column:6},end:{line:252,column:8}},78:{start:{line:251,column:8},end:{line:251,column:29}},79:{start:{line:255,column:6},end:{line:255,column:30}},80:{start:{line:256,column:18},end:{line:256,column:62}},81:{start:{line:257,column:6},end:{line:263,column:7}},82:{start:{line:258,column:8},end:{line:258,column:49}},83:{start:{line:259,column:8},end:{line:262,column:9}},84:{start:{line:261,column:10},end:{line:261,column:48}},85:{start:{line:266,column:6},end:{line:266,column:34}},86:{start:{line:267,column:6},end:{line:267,column:26}},87:{start:{line:268,column:6},end:{line:268,column:28}},88:{start:{line:269,column:6},end:{line:269,column:32}},89:{start:{line:270,column:18},end:{line:272,column:8}},90:{start:{line:273,column:6},end:{line:273,column:29}},91:{start:{line:274,column:6},end:{line:274,column:39}},92:{start:{line:277,column:6},end:{line:277,column:34}},93:{start:{line:278,column:6},end:{line:278,column:26}},94:{start:{line:279,column:6},end:{line:279,column:28}},95:{start:{line:280,column:6},end:{line:280,column:32}},96:{start:{line:281,column:18},end:{line:281,column:73}},97:{start:{line:282,column:6},end:{line:282,column:26}},98:{start:{line:283,column:6},end:{line:283,column:39}},99:{start:{line:286,column:6},end:{line:286,column:34}},100:{start:{line:287,column:6},end:{line:287,column:26}},101:{start:{line:288,column:6},end:{line:288,column:28}},102:{start:{line:289,column:6},end:{line:289,column:32}},103:{start:{line:292,column:6},end:{line:294,column:13}},104:{start:{line:293,column:8},end:{line:293,column:41}},105:{start:{line:297,column:6},end:{line:297,column:35}},106:{start:{line:301,column:6},end:{line:329,column:10}},107:{start:{line:304,column:10},end:{line:325,column:12}},108:{start:{line:305,column:29},end:{line:305,column:45}},109:{start:{line:306,column:12},end:{line:324,column:17}},110:{start:{line:307,column:28},end:{line:307,column:46}},111:{start:{line:308,column:14},end:{line:310,column:15}},112:{start:{line:309,column:16},end:{line:309,column:31}},113:{start:{line:311,column:24},end:{line:311,column:43}},114:{start:{line:312,column:25},end:{line:312,column:45}},115:{start:{line:313,column:27},end:{line:313,column:49}},116:{start:{line:314,column:14},end:{line:323,column:16}},117:{start:{line:328,column:10},end:{line:328,column:43}},118:{start:{line:332,column:6},end:{line:332,column:22}},119:{start:{line:333,column:6},end:{line:333,column:27}},120:{start:{line:335,column:29},end:{line:337,column:8}},121:{start:{line:336,column:8},end:{line:336,column:68}},122:{start:{line:338,column:6},end:{line:338,column:42}},123:{start:{line:341,column:6},end:{line:346,column:8}},124:{start:{line:342,column:8},end:{line:342,column:32}},125:{start:{line:347,column:6},end:{line:347,column:23}},126:{start:{line:350,column:6},end:{line:350,column:51}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:21,column:2},end:{line:21,column:3}},loc:{start:{line:21,column:9},end:{line:68,column:3}},line:21},1:{name:"(anonymous_1)",decl:{start:{line:41,column:23},end:{line:41,column:24}},loc:{start:{line:41,column:29},end:{line:43,column:15}},line:41},2:{name:"(anonymous_2)",decl:{start:{line:48,column:23},end:{line:48,column:24}},loc:{start:{line:48,column:29},end:{line:50,column:15}},line:48},3:{name:"(anonymous_3)",decl:{start:{line:55,column:23},end:{line:55,column:24}},loc:{start:{line:55,column:29},end:{line:59,column:15}},line:55},4:{name:"(anonymous_4)",decl:{start:{line:71,column:15},end:{line:71,column:16}},loc:{start:{line:71,column:27},end:{line:73,column:7}},line:71},5:{name:"(anonymous_5)",decl:{start:{line:78,column:19},end:{line:78,column:20}},loc:{start:{line:78,column:31},end:{line:89,column:5}},line:78},6:{name:"(anonymous_6)",decl:{start:{line:79,column:34},end:{line:79,column:35}},loc:{start:{line:79,column:43},end:{line:88,column:7}},line:79},7:{name:"(anonymous_7)",decl:{start:{line:91,column:2},end:{line:91,column:3}},loc:{start:{line:91,column:12},end:{line:136,column:3}},line:91},8:{name:"(anonymous_8)",decl:{start:{line:97,column:12},end:{line:97,column:13}},loc:{start:{line:97,column:26},end:{line:101,column:7}},line:97},9:{name:"(anonymous_9)",decl:{start:{line:102,column:13},end:{line:102,column:14}},loc:{start:{line:102,column:24},end:{line:104,column:7}},line:102},10:{name:"(anonymous_10)",decl:{start:{line:105,column:40},end:{line:105,column:41}},loc:{start:{line:105,column:54},end:{line:132,column:5}},line:105},11:{name:"(anonymous_11)",decl:{start:{line:106,column:28},end:{line:106,column:29}},loc:{start:{line:106,column:42},end:{line:113,column:7}},line:106},12:{name:"(anonymous_12)",decl:{start:{line:133,column:61},end:{line:133,column:62}},loc:{start:{line:133,column:75},end:{line:135,column:5}},line:133},13:{name:"(anonymous_13)",decl:{start:{line:137,column:2},end:{line:137,column:3}},loc:{start:{line:137,column:12},end:{line:144,column:3}},line:137},14:{name:"(anonymous_14)",decl:{start:{line:146,column:4},end:{line:146,column:5}},loc:{start:{line:146,column:25},end:{line:149,column:5}},line:146},15:{name:"(anonymous_15)",decl:{start:{line:150,column:4},end:{line:150,column:5}},loc:{start:{line:150,column:25},end:{line:153,column:5}},line:150},16:{name:"(anonymous_16)",decl:{start:{line:154,column:4},end:{line:154,column:5}},loc:{start:{line:154,column:16},end:{line:156,column:5}},line:154},17:{name:"(anonymous_17)",decl:{start:{line:157,column:4},end:{line:157,column:5}},loc:{start:{line:157,column:60},end:{line:189,column:5}},line:157},18:{name:"(anonymous_18)",decl:{start:{line:161,column:60},end:{line:161,column:61}},loc:{start:{line:161,column:72},end:{line:166,column:9}},line:161},19:{name:"(anonymous_19)",decl:{start:{line:162,column:31},end:{line:162,column:32}},loc:{start:{line:162,column:41},end:{line:164,column:11}},line:162},20:{name:"(anonymous_20)",decl:{start:{line:177,column:14},end:{line:177,column:15}},loc:{start:{line:177,column:28},end:{line:188,column:7}},line:177},21:{name:"(anonymous_21)",decl:{start:{line:190,column:4},end:{line:190,column:5}},loc:{start:{line:190,column:31},end:{line:208,column:5}},line:190},22:{name:"(anonymous_22)",decl:{start:{line:192,column:8},end:{line:192,column:9}},loc:{start:{line:192,column:17},end:{line:192,column:61}},line:192},23:{name:"(anonymous_23)",decl:{start:{line:195,column:45},end:{line:195,column:46}},loc:{start:{line:195,column:59},end:{line:206,column:9}},line:195},24:{name:"(anonymous_24)",decl:{start:{line:209,column:4},end:{line:209,column:5}},loc:{start:{line:209,column:31},end:{line:215,column:5}},line:209},25:{name:"(anonymous_25)",decl:{start:{line:216,column:4},end:{line:216,column:5}},loc:{start:{line:216,column:27},end:{line:230,column:5}},line:216},26:{name:"(anonymous_26)",decl:{start:{line:218,column:21},end:{line:218,column:22}},loc:{start:{line:218,column:33},end:{line:229,column:7}},line:218},27:{name:"(anonymous_27)",decl:{start:{line:231,column:4},end:{line:231,column:5}},loc:{start:{line:231,column:38},end:{line:238,column:5}},line:231},28:{name:"(anonymous_28)",decl:{start:{line:233,column:8},end:{line:233,column:9}},loc:{start:{line:233,column:17},end:{line:233,column:61}},line:233},29:{name:"(anonymous_29)",decl:{start:{line:239,column:4},end:{line:239,column:5}},loc:{start:{line:239,column:15},end:{line:243,column:5}},line:239},30:{name:"(anonymous_30)",decl:{start:{line:244,column:4},end:{line:244,column:5}},loc:{start:{line:244,column:20},end:{line:253,column:5}},line:244},31:{name:"(anonymous_31)",decl:{start:{line:250,column:49},end:{line:250,column:50}},loc:{start:{line:250,column:72},end:{line:252,column:7}},line:250},32:{name:"(anonymous_32)",decl:{start:{line:254,column:4},end:{line:254,column:5}},loc:{start:{line:254,column:22},end:{line:264,column:5}},line:254},33:{name:"(anonymous_33)",decl:{start:{line:265,column:4},end:{line:265,column:5}},loc:{start:{line:265,column:56},end:{line:275,column:5}},line:265},34:{name:"(anonymous_34)",decl:{start:{line:276,column:4},end:{line:276,column:5}},loc:{start:{line:276,column:58},end:{line:284,column:5}},line:276},35:{name:"(anonymous_35)",decl:{start:{line:285,column:4},end:{line:285,column:5}},loc:{start:{line:285,column:55},end:{line:290,column:5}},line:285},36:{name:"(anonymous_36)",decl:{start:{line:291,column:4},end:{line:291,column:5}},loc:{start:{line:291,column:20},end:{line:295,column:5}},line:291},37:{name:"(anonymous_37)",decl:{start:{line:292,column:17},end:{line:292,column:18}},loc:{start:{line:292,column:23},end:{line:294,column:7}},line:292},38:{name:"(anonymous_38)",decl:{start:{line:296,column:4},end:{line:296,column:5}},loc:{start:{line:296,column:17},end:{line:298,column:5}},line:296},39:{name:"(anonymous_39)",decl:{start:{line:299,column:4},end:{line:299,column:5}},loc:{start:{line:299,column:30},end:{line:330,column:5}},line:299},40:{name:"(anonymous_40)",decl:{start:{line:302,column:14},end:{line:302,column:15}},loc:{start:{line:302,column:29},end:{line:326,column:9}},line:302},41:{name:"(anonymous_41)",decl:{start:{line:304,column:25},end:{line:304,column:26}},loc:{start:{line:304,column:48},end:{line:325,column:11}},line:304},42:{name:"(anonymous_42)",decl:{start:{line:306,column:23},end:{line:306,column:24}},loc:{start:{line:306,column:29},end:{line:324,column:13}},line:306},43:{name:"(anonymous_43)",decl:{start:{line:327,column:14},end:{line:327,column:15}},loc:{start:{line:327,column:20},end:{line:329,column:9}},line:327},44:{name:"(anonymous_44)",decl:{start:{line:331,column:17},end:{line:331,column:18}},loc:{start:{line:331,column:35},end:{line:339,column:5}},line:331},45:{name:"(anonymous_45)",decl:{start:{line:335,column:40},end:{line:335,column:41}},loc:{start:{line:335,column:56},end:{line:337,column:7}},line:335},46:{name:"(anonymous_46)",decl:{start:{line:340,column:23},end:{line:340,column:24}},loc:{start:{line:340,column:55},end:{line:348,column:5}},line:340},47:{name:"(anonymous_47)",decl:{start:{line:341,column:40},end:{line:341,column:41}},loc:{start:{line:341,column:52},end:{line:346,column:7}},line:341},48:{name:"(anonymous_48)",decl:{start:{line:349,column:23},end:{line:349,column:24}},loc:{start:{line:349,column:39},end:{line:351,column:5}},line:349}},branchMap:{0:{loc:{start:{line:98,column:8},end:{line:100,column:9}},type:"if",locations:[{start:{line:98,column:8},end:{line:100,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:98},1:{loc:{start:{line:108,column:8},end:{line:111,column:9}},type:"if",locations:[{start:{line:108,column:8},end:{line:111,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:108},2:{loc:{start:{line:119,column:6},end:{line:131,column:7}},type:"if",locations:[{start:{line:119,column:6},end:{line:131,column:7}},{start:{line:121,column:13},end:{line:131,column:7}}],line:119},3:{loc:{start:{line:119,column:10},end:{line:119,column:55}},type:"binary-expr",locations:[{start:{line:119,column:10},end:{line:119,column:27}},{start:{line:119,column:31},end:{line:119,column:55}}],line:119},4:{loc:{start:{line:121,column:13},end:{line:131,column:7}},type:"if",locations:[{start:{line:121,column:13},end:{line:131,column:7}},{start:{line:125,column:13},end:{line:131,column:7}}],line:121},5:{loc:{start:{line:121,column:17},end:{line:121,column:71}},type:"binary-expr",locations:[{start:{line:121,column:17},end:{line:121,column:42}},{start:{line:121,column:46},end:{line:121,column:71}}],line:121},6:{loc:{start:{line:128,column:8},end:{line:130,column:9}},type:"if",locations:[{start:{line:128,column:8},end:{line:130,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:128},7:{loc:{start:{line:159,column:6},end:{line:169,column:7}},type:"if",locations:[{start:{line:159,column:6},end:{line:169,column:7}},{start:{line:167,column:13},end:{line:169,column:7}}],line:159},8:{loc:{start:{line:159,column:10},end:{line:159,column:46}},type:"binary-expr",locations:[{start:{line:159,column:10},end:{line:159,column:20}},{start:{line:159,column:24},end:{line:159,column:46}}],line:159},9:{loc:{start:{line:179,column:8},end:{line:182,column:9}},type:"if",locations:[{start:{line:179,column:8},end:{line:182,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:179},10:{loc:{start:{line:192,column:17},end:{line:192,column:61}},type:"binary-expr",locations:[{start:{line:192,column:17},end:{line:192,column:37}},{start:{line:192,column:41},end:{line:192,column:61}}],line:192},11:{loc:{start:{line:194,column:6},end:{line:207,column:7}},type:"if",locations:[{start:{line:194,column:6},end:{line:207,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:194},12:{loc:{start:{line:219,column:8},end:{line:228,column:9}},type:"if",locations:[{start:{line:219,column:8},end:{line:228,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:219},13:{loc:{start:{line:233,column:17},end:{line:233,column:61}},type:"binary-expr",locations:[{start:{line:233,column:17},end:{line:233,column:37}},{start:{line:233,column:41},end:{line:233,column:61}}],line:233},14:{loc:{start:{line:235,column:6},end:{line:237,column:7}},type:"if",locations:[{start:{line:235,column:6},end:{line:237,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:235},15:{loc:{start:{line:257,column:6},end:{line:263,column:7}},type:"if",locations:[{start:{line:257,column:6},end:{line:263,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:257},16:{loc:{start:{line:259,column:8},end:{line:262,column:9}},type:"if",locations:[{start:{line:259,column:8},end:{line:262,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:259},17:{loc:{start:{line:308,column:14},end:{line:310,column:15}},type:"if",locations:[{start:{line:308,column:14},end:{line:310,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:308},18:{loc:{start:{line:311,column:24},end:{line:311,column:43}},type:"binary-expr",locations:[{start:{line:311,column:24},end:{line:311,column:38}},{start:{line:311,column:42},end:{line:311,column:43}}],line:311},19:{loc:{start:{line:312,column:25},end:{line:312,column:45}},type:"binary-expr",locations:[{start:{line:312,column:25},end:{line:312,column:40}},{start:{line:312,column:44},end:{line:312,column:45}}],line:312},20:{loc:{start:{line:313,column:27},end:{line:313,column:49}},type:"binary-expr",locations:[{start:{line:313,column:27},end:{line:313,column:44}},{start:{line:313,column:48},end:{line:313,column:49}}],line:313},21:{loc:{start:{line:340,column:39},end:{line:340,column:53}},type:"default-arg",locations:[{start:{line:340,column:48},end:{line:340,column:53}}],line:340}},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},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,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48: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],18:[0,0],19:[0,0],20:[0,0],21:[0]},inputSourceMap:{version:3,sources:["TlmViewer.vue"],names:[],mappings:";AAmIA;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;;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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:"TlmViewer.vue",sourceRoot:"src/tools/TlmViewer",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 :title="title" :menus="menus" />\n <v-expansion-panels v-model="panel" style="margin-bottom: 5px">\n <v-expansion-panel>\n <v-expansion-panel-header></v-expansion-panel-header>\n <v-expansion-panel-content>\n <v-container>\n <v-row class="pt-3">\n <v-select\n class="pa-0 mr-4"\n dense\n hide-details\n outlined\n label="Select Target"\n :items="Object.keys(screens).sort()"\n item-text="label"\n item-value="value"\n v-model="selectedTarget"\n @change="targetSelect"\n style="max-width: 300px"\n />\n <v-select\n class="pa-0 mr-4"\n dense\n hide-details\n outlined\n label="Select Screen"\n :items="screens[selectedTarget]"\n v-model="selectedScreen"\n @change="screenSelect"\n style="max-width: 300px"\n />\n <v-btn\n class="primary mr-2"\n :disabled="!selectedScreen"\n @click="() => showScreen(selectedTarget, selectedScreen)"\n data-test="show-screen"\n >\n Show\n </v-btn>\n <v-btn\n class="primary"\n @click="() => newScreen(selectedTarget)"\n data-test="new-screen"\n >\n New Screen\n <v-icon> mdi-file-plus</v-icon>\n </v-btn>\n </v-row>\n </v-container>\n </v-expansion-panel-content>\n </v-expansion-panel>\n </v-expansion-panels>\n <div class="grid">\n <div\n class="item"\n v-for="def in definitions"\n :key="def.id"\n :id="screenId(def.id)"\n ref="gridItem"\n >\n <div class="item-content">\n <openc3-screen\n :target="def.target"\n :screen="def.screen"\n :definition="def.definition"\n :keywords="keywords"\n :initialFloated="def.floated"\n :initialTop="def.top"\n :initialLeft="def.left"\n :initialZ="def.zIndex"\n :time-zone="timeZone"\n @close-screen="closeScreen(def.id)"\n @min-max-screen="refreshLayout"\n @add-new-screen="($event) => showScreen(...$event)"\n @delete-screen="deleteScreen(def)"\n @float-screen="floatScreen(def, ...$event)"\n @unfloat-screen="unfloatScreen(def, ...$event)"\n @drag-screen="dragScreen(def, ...$event)"\n @edit-screen="refreshLayout"\n />\n </div>\n </div>\n </div>\n \x3c!-- Dialogs for opening and saving configs --\x3e\n <open-config-dialog\n v-if="openConfig"\n v-model="openConfig"\n :configKey="configKey"\n @success="openConfiguration"\n />\n <save-config-dialog\n v-if="saveConfig"\n v-model="saveConfig"\n :configKey="configKey"\n @success="saveConfiguration"\n />\n <new-screen-dialog\n v-if="newScreenDialog"\n v-model="newScreenDialog"\n :target="selectedTarget"\n :screens="screens"\n @success="saveNewScreen"\n />\n </div>\n</template>\n\n<script>\nimport Api from \'@openc3/tool-common/src/services/api\'\nimport Config from \'@openc3/tool-common/src/components/config/Config\'\nimport { OpenC3Api } from \'@openc3/tool-common/src/services/openc3-api\'\nimport TopBar from \'@openc3/tool-common/src/components/TopBar\'\nimport Openc3Screen from \'@openc3/tool-common/src/components/Openc3Screen\'\nimport NewScreenDialog from \'./NewScreenDialog\'\nimport OpenConfigDialog from \'@openc3/tool-common/src/components/config/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/config/SaveConfigDialog\'\nimport Muuri from \'muuri\'\n\nexport default {\n components: {\n TopBar,\n Openc3Screen,\n NewScreenDialog,\n OpenConfigDialog,\n SaveConfigDialog,\n },\n mixins: [Config],\n data() {\n return {\n title: \'Telemetry Viewer\',\n panel: 0,\n counter: 0,\n definitions: [],\n screens: {},\n selectedTarget: \'\',\n selectedScreen: \'\',\n newScreenDialog: false,\n grid: null,\n api: null,\n keywords: [],\n menus: [\n {\n label: \'File\',\n items: [\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.openConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.saveConfig = true\n },\n },\n {\n label: \'Reset Configuration\',\n icon: \'mdi-monitor-shimmer\',\n command: () => {\n this.panel = 0 // Expand the expansion panel\n this.closeAll()\n this.resetConfigBase()\n },\n },\n ],\n },\n ],\n configKey: \'telemetry_viewer\',\n openConfig: false,\n saveConfig: false,\n }\n },\n watch: {\n definitions: {\n handler: function () {\n this.saveDefaultConfig(this.currentConfig)\n },\n deep: true,\n },\n },\n computed: {\n currentConfig: function () {\n return this.definitions.map((def) => {\n return {\n screen: def.screen,\n target: def.target,\n floated: def.floated,\n top: def.top,\n left: def.left,\n zIndex: def.zIndex,\n }\n })\n },\n },\n created() {\n // Ensure Offline Access Is Setup For the Current User\n this.api = new OpenC3Api()\n this.api.ensure_offline_access()\n this.api\n .get_setting(\'time_zone\')\n .then((response) => {\n if (response) {\n this.timeZone = response\n }\n })\n .catch((error) => {\n // Do nothing\n })\n Api.get(\'/openc3-api/screens\').then((response) => {\n response.data.forEach((filename) => {\n let parts = filename.split(\'/\')\n if (this.screens[parts[0]] === undefined) {\n // Must call this.$set to allow Vue to make the screen arrays reactive\n this.$set(this.screens, parts[0], [])\n }\n this.screens[parts[0]].push(parts[2].split(\'.\')[0].toUpperCase())\n })\n // Select the first target and screen as an optimization\n this.selectedTarget = Object.keys(this.screens)[0]\n this.selectedScreen = this.screens[this.selectedTarget][0]\n\n // Called like /tools/tlmviewer?config=ground\n if (this.$route.query && this.$route.query.config) {\n this.openConfiguration(this.$route.query.config, true) // routed\n } else if (this.$route.params.target && this.$route.params.screen) {\n // If we\'re passed in a target / packet as part of the route\n this.targetSelect(this.$route.params.target.toUpperCase())\n this.screenSelect(this.$route.params.screen.toUpperCase())\n } else {\n let config = this.loadDefaultConfig()\n // Only apply the config if it\'s not an empty object (config does not exist)\n if (JSON.stringify(config) !== \'{}\') {\n this.applyConfig(this.loadDefaultConfig())\n }\n }\n })\n Api.get(\'/openc3-api/autocomplete/keywords/screen\').then((response) => {\n this.keywords = response.data\n })\n },\n mounted() {\n this.grid = new Muuri(\'.grid\', {\n dragEnabled: true,\n // Only allow drags starting from the v-system-bar title\n dragHandle: \'.v-system-bar\',\n })\n this.grid.on(\'dragEnd\', this.refreshLayout)\n },\n methods: {\n targetSelect(target) {\n this.selectedTarget = target\n this.selectedScreen = this.screens[target][0]\n },\n screenSelect(screen) {\n this.selectedScreen = screen\n this.showScreen(this.selectedTarget, this.selectedScreen)\n },\n newScreen() {\n this.newScreenDialog = true\n },\n async saveNewScreen(screenName, packetName, targetName) {\n let text = \'SCREEN AUTO AUTO 1.0\\n\'\n if (packetName && packetName !== \'BLANK\') {\n text += \'\\nVERTICAL\\n\'\n await this.api.get_tlm(targetName, packetName).then((packet) => {\n packet.items.forEach((item) => {\n text += ` LABELVALUE ${targetName} ${packetName} ${item.name}\\n`\n })\n text += \'END\\n\'\n })\n } else {\n text += \'\\nLABEL NEW\\n\'\n }\n Api.post(\'/openc3-api/screen/\', {\n data: {\n scope: window.openc3Scope,\n target: targetName,\n screen: screenName,\n text: text,\n },\n }).then((response) => {\n this.newScreenDialog = false\n if (this.screens[targetName] === undefined) {\n // Must call this.$set to allow Vue to make the screen arrays reactive\n this.$set(this.screens, targetName, [])\n }\n this.screens[targetName].push(screenName)\n this.screens[targetName].sort()\n this.selectedTarget = targetName\n this.selectedScreen = screenName\n this.showScreen(targetName, screenName)\n })\n },\n showScreen(target, screen) {\n const def = this.definitions.find(\n (def) => def.target == target && def.screen == screen,\n )\n if (!def) {\n this.loadScreen(target, screen).then((response) => {\n this.pushScreen({\n id: this.counter++,\n target: target,\n screen: screen,\n definition: response.data,\n floated: false,\n top: 0,\n left: 0,\n zIndex: 0,\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 pushScreen(definition) {\n this.definitions.push(definition)\n this.$nextTick(function () {\n if (!definition.floated) {\n var items = this.grid.add(\n this.$refs.gridItem[this.$refs.gridItem.length - 1],\n {\n active: false,\n },\n )\n this.grid.show(items)\n this.grid.refreshItems().layout()\n }\n })\n },\n closeScreenByName(target, screen) {\n const def = this.definitions.find(\n (def) => def.target == target && def.screen == screen,\n )\n if (def) {\n this.closeScreen(def.id)\n }\n },\n closeAll() {\n for (const def of this.definitions) {\n this.closeScreen(def.id)\n }\n },\n closeScreen(id) {\n var items = this.grid.getItems([\n document.getElementById(this.screenId(id)),\n ])\n this.grid.remove(items)\n this.grid.refreshItems().layout()\n this.definitions = this.definitions.filter((value, index, arr) => {\n return value.id != id\n })\n },\n deleteScreen(def) {\n this.closeScreen(def.id)\n var index = this.screens[def.target].indexOf(def.screen)\n if (index !== -1) {\n this.screens[def.target].splice(index, 1)\n if (this.screens[def.target].length === 0) {\n // Must call this.$delete to notify Vue of property deletion\n this.$delete(this.screens, def.target)\n }\n }\n },\n floatScreen(definition, floated, top, left, zIndex) {\n definition.floated = floated\n definition.top = top\n definition.left = left\n definition.zIndex = zIndex\n var items = this.grid.getItems([\n document.getElementById(this.screenId(definition.id)),\n ])\n this.grid.remove(items)\n this.grid.refreshItems().layout()\n },\n unfloatScreen(definition, floated, top, left, zIndex) {\n definition.floated = floated\n definition.top = top\n definition.left = left\n definition.zIndex = zIndex\n var items = [document.getElementById(this.screenId(definition.id))]\n this.grid.add(items)\n this.grid.refreshItems().layout()\n },\n dragScreen(definition, floated, top, left, zIndex) {\n definition.floated = floated\n definition.top = top\n definition.left = left\n definition.zIndex = zIndex\n },\n refreshLayout() {\n setTimeout(() => {\n this.grid.refreshItems().layout()\n }, 600) // TODO: Is 600ms ok for all screens?\n },\n screenId(id) {\n return \'tlmViewerScreen\' + id\n },\n loadAll(config, promises) {\n // Wait until they\'re all loaded\n Promise.all(promises)\n .then((responses) => {\n // Then add all the screens in order\n config.forEach((definition, index) => {\n const response = responses[index]\n setTimeout(() => {\n let floated = definition.floated\n if (!floated) {\n floated = false\n }\n let top = definition.top || 0\n let left = definition.left || 0\n let zIndex = definition.zIndex || 0\n this.pushScreen({\n id: this.counter++,\n target: definition.target,\n screen: definition.screen,\n definition: response.data,\n floated: floated,\n top: top,\n left: left,\n zIndex: zIndex,\n })\n }, 0) // I don\'t even know... but Muuri complains if this isn\'t in a setTimeout\n })\n })\n .then(() => {\n setTimeout(this.refreshLayout, 0) // Muuri probably stacked some, so refresh that\n })\n },\n applyConfig: function (config) {\n this.counter = 0\n this.definitions = []\n // Load all the screen definitions from the API at once\n const screenPromises = config.map((definition) => {\n return this.loadScreen(definition.target, definition.screen)\n })\n this.loadAll(config, screenPromises)\n },\n openConfiguration: function (name, routed = false) {\n this.openConfigBase(name, routed, (config) => {\n this.applyConfig(config)\n // No need to this.saveDefaultConfig(config)\n // because applyConfig calls loadAll which calls pushScreen\n // which does a this.saveDefaultConfig(this.currentConfig)\n })\n this.panel = null // Minimize the expansion panel\n },\n saveConfiguration: function (name) {\n this.saveConfigBase(name, this.currentConfig)\n },\n },\n}\n<\/script>\n\n<style>\n/* Flash the chevron icon 3 times to let the user know they can minimize the controls */\ni.v-icon.mdi-chevron-down {\n animation: pulse 2s 3;\n}\n@keyframes pulse {\n 0% {\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);\n }\n 70% {\n -webkit-box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);\n }\n 100% {\n -webkit-box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);\n }\n}\n</style>\n<style scoped>\n.v-expansion-panel-content {\n .container {\n margin: 0px;\n }\n}\n.v-expansion-panel-header {\n min-height: 10px;\n padding: 5px;\n}\n.grid {\n position: relative;\n}\n.item {\n position: absolute;\n display: block;\n margin: 5px;\n z-index: 1;\n}\n.item.muuri-item-dragging {\n z-index: 3;\n}\n.item.muuri-item-releasing {\n z-index: 2;\n}\n.item.muuri-item-hidden {\n z-index: 0;\n}\n.item-content {\n position: relative;\n cursor: pointer;\n border-radius: 6px;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8c6ccc54c0810657dee0870d639cd26d86a5bcd3"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var l=a[e];return le=function(){return l},l}le();const re={components:{TopBar:v,Openc3Screen:R,NewScreenDialog:F,OpenConfigDialog:J,SaveConfigDialog:se},mixins:[o],data(){return le().f[0]++,le().s[0]++,{title:"Telemetry Viewer",panel:0,counter:0,definitions:[],screens:{},selectedTarget:"",selectedScreen:"",newScreenDialog:!1,grid:null,api:null,keywords:[],menus:[{label:"File",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{le().f[1]++,le().s[1]++,this.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{le().f[2]++,le().s[2]++,this.saveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{le().f[3]++,le().s[3]++,this.panel=0,le().s[4]++,this.closeAll(),le().s[5]++,this.resetConfigBase()}}]}],configKey:"telemetry_viewer",openConfig:!1,saveConfig:!1}},watch:{definitions:{handler:function(){le().f[4]++,le().s[6]++,this.saveDefaultConfig(this.currentConfig)},deep:!0}},computed:{currentConfig:function(){return le().f[5]++,le().s[7]++,this.definitions.map((e=>(le().f[6]++,le().s[8]++,{screen:e.screen,target:e.target,floated:e.floated,top:e.top,left:e.left,zIndex:e.zIndex})))}},created(){le().f[7]++,le().s[9]++,this.api=new r.x,le().s[10]++,this.api.ensure_offline_access(),le().s[11]++,this.api.get_setting("time_zone").then((e=>{le().f[8]++,le().s[12]++,e?(le().b[0][0]++,le().s[13]++,this.timeZone=e):le().b[0][1]++})).catch((e=>{le().f[9]++})),le().s[14]++,l.A.get("/openc3-api/screens").then((e=>{if(le().f[10]++,le().s[15]++,e.data.forEach((e=>{le().f[11]++;let t=(le().s[16]++,e.split("/"));le().s[17]++,void 0===this.screens[t[0]]?(le().b[1][0]++,le().s[18]++,this.$set(this.screens,t[0],[])):le().b[1][1]++,le().s[19]++,this.screens[t[0]].push(t[2].split(".")[0].toUpperCase())})),le().s[20]++,this.selectedTarget=Object.keys(this.screens)[0],le().s[21]++,this.selectedScreen=this.screens[this.selectedTarget][0],le().s[22]++,le().b[3][0]++,this.$route.query&&(le().b[3][1]++,this.$route.query.config))le().b[2][0]++,le().s[23]++,this.openConfiguration(this.$route.query.config,!0);else if(le().b[2][1]++,le().s[24]++,le().b[5][0]++,this.$route.params.target&&(le().b[5][1]++,this.$route.params.screen))le().b[4][0]++,le().s[25]++,this.targetSelect(this.$route.params.target.toUpperCase()),le().s[26]++,this.screenSelect(this.$route.params.screen.toUpperCase());else{le().b[4][1]++;let e=(le().s[27]++,this.loadDefaultConfig());le().s[28]++,"{}"!==JSON.stringify(e)?(le().b[6][0]++,le().s[29]++,this.applyConfig(this.loadDefaultConfig())):le().b[6][1]++}})),le().s[30]++,l.A.get("/openc3-api/autocomplete/keywords/screen").then((e=>{le().f[12]++,le().s[31]++,this.keywords=e.data}))},mounted(){le().f[13]++,le().s[32]++,this.grid=new ae.A(".grid",{dragEnabled:!0,dragHandle:".v-system-bar"}),le().s[33]++,this.grid.on("dragEnd",this.refreshLayout)},methods:{targetSelect(e){le().f[14]++,le().s[34]++,this.selectedTarget=e,le().s[35]++,this.selectedScreen=this.screens[e][0]},screenSelect(e){le().f[15]++,le().s[36]++,this.selectedScreen=e,le().s[37]++,this.showScreen(this.selectedTarget,this.selectedScreen)},newScreen(){le().f[16]++,le().s[38]++,this.newScreenDialog=!0},async saveNewScreen(e,t,n){le().f[17]++;let i=(le().s[39]++,"SCREEN AUTO AUTO 1.0\n");le().s[40]++,le().b[8][0]++,t&&(le().b[8][1]++,"BLANK"!==t)?(le().b[7][0]++,le().s[41]++,i+="\nVERTICAL\n",le().s[42]++,await this.api.get_tlm(n,t).then((e=>{le().f[18]++,le().s[43]++,e.items.forEach((e=>{le().f[19]++,le().s[44]++,i+=` LABELVALUE ${n} ${t} ${e.name}\n`})),le().s[45]++,i+="END\n"}))):(le().b[7][1]++,le().s[46]++,i+="\nLABEL NEW\n"),le().s[47]++,l.A.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:n,screen:e,text:i}}).then((t=>{le().f[20]++,le().s[48]++,this.newScreenDialog=!1,le().s[49]++,void 0===this.screens[n]?(le().b[9][0]++,le().s[50]++,this.$set(this.screens,n,[])):le().b[9][1]++,le().s[51]++,this.screens[n].push(e),le().s[52]++,this.screens[n].sort(),le().s[53]++,this.selectedTarget=n,le().s[54]++,this.selectedScreen=e,le().s[55]++,this.showScreen(n,e)}))},showScreen(e,t){le().f[21]++;const n=(le().s[56]++,this.definitions.find((n=>(le().f[22]++,le().s[57]++,le().b[10][0]++,n.target==e&&(le().b[10][1]++,n.screen==t)))));le().s[58]++,n?le().b[11][1]++:(le().b[11][0]++,le().s[59]++,this.loadScreen(e,t).then((n=>{le().f[23]++,le().s[60]++,this.pushScreen({id:this.counter++,target:e,screen:t,definition:n.data,floated:!1,top:0,left:0,zIndex:0})})))},loadScreen(e,t){return le().f[24]++,le().s[61]++,l.A.get("/openc3-api/screen/"+e+"/"+t,{headers:{Accept:"text/plain"}})},pushScreen(e){le().f[25]++,le().s[62]++,this.definitions.push(e),le().s[63]++,this.$nextTick((function(){if(le().f[26]++,le().s[64]++,e.floated)le().b[12][1]++;else{le().b[12][0]++;var t=(le().s[65]++,this.grid.add(this.$refs.gridItem[this.$refs.gridItem.length-1],{active:!1}));le().s[66]++,this.grid.show(t),le().s[67]++,this.grid.refreshItems().layout()}}))},closeScreenByName(e,t){le().f[27]++;const n=(le().s[68]++,this.definitions.find((n=>(le().f[28]++,le().s[69]++,le().b[13][0]++,n.target==e&&(le().b[13][1]++,n.screen==t)))));le().s[70]++,n?(le().b[14][0]++,le().s[71]++,this.closeScreen(n.id)):le().b[14][1]++},closeAll(){le().f[29]++,le().s[72]++;for(const e of this.definitions)le().s[73]++,this.closeScreen(e.id)},closeScreen(e){le().f[30]++;var t=(le().s[74]++,this.grid.getItems([document.getElementById(this.screenId(e))]));le().s[75]++,this.grid.remove(t),le().s[76]++,this.grid.refreshItems().layout(),le().s[77]++,this.definitions=this.definitions.filter(((t,n,i)=>(le().f[31]++,le().s[78]++,t.id!=e)))},deleteScreen(e){le().f[32]++,le().s[79]++,this.closeScreen(e.id);var t=(le().s[80]++,this.screens[e.target].indexOf(e.screen));le().s[81]++,-1!==t?(le().b[15][0]++,le().s[82]++,this.screens[e.target].splice(t,1),le().s[83]++,0===this.screens[e.target].length?(le().b[16][0]++,le().s[84]++,this.$delete(this.screens,e.target)):le().b[16][1]++):le().b[15][1]++},floatScreen(e,t,n,i,s){le().f[33]++,le().s[85]++,e.floated=t,le().s[86]++,e.top=n,le().s[87]++,e.left=i,le().s[88]++,e.zIndex=s;var a=(le().s[89]++,this.grid.getItems([document.getElementById(this.screenId(e.id))]));le().s[90]++,this.grid.remove(a),le().s[91]++,this.grid.refreshItems().layout()},unfloatScreen(e,t,n,i,s){le().f[34]++,le().s[92]++,e.floated=t,le().s[93]++,e.top=n,le().s[94]++,e.left=i,le().s[95]++,e.zIndex=s;var a=(le().s[96]++,[document.getElementById(this.screenId(e.id))]);le().s[97]++,this.grid.add(a),le().s[98]++,this.grid.refreshItems().layout()},dragScreen(e,t,n,i,s){le().f[35]++,le().s[99]++,e.floated=t,le().s[100]++,e.top=n,le().s[101]++,e.left=i,le().s[102]++,e.zIndex=s},refreshLayout(){le().f[36]++,le().s[103]++,setTimeout((()=>{le().f[37]++,le().s[104]++,this.grid.refreshItems().layout()}),600)},screenId(e){return le().f[38]++,le().s[105]++,"tlmViewerScreen"+e},loadAll(e,t){le().f[39]++,le().s[106]++,Promise.all(t).then((t=>{le().f[40]++,le().s[107]++,e.forEach(((e,n)=>{le().f[41]++;const i=(le().s[108]++,t[n]);le().s[109]++,setTimeout((()=>{le().f[42]++;let t=(le().s[110]++,e.floated);le().s[111]++,t?le().b[17][1]++:(le().b[17][0]++,le().s[112]++,t=!1);let n=(le().s[113]++,le().b[18][0]++,e.top||(le().b[18][1]++,0)),s=(le().s[114]++,le().b[19][0]++,e.left||(le().b[19][1]++,0)),a=(le().s[115]++,le().b[20][0]++,e.zIndex||(le().b[20][1]++,0));le().s[116]++,this.pushScreen({id:this.counter++,target:e.target,screen:e.screen,definition:i.data,floated:t,top:n,left:s,zIndex:a})}),0)}))})).then((()=>{le().f[43]++,le().s[117]++,setTimeout(this.refreshLayout,0)}))},applyConfig:function(e){le().f[44]++,le().s[118]++,this.counter=0,le().s[119]++,this.definitions=[];const t=(le().s[120]++,e.map((e=>(le().f[45]++,le().s[121]++,this.loadScreen(e.target,e.screen)))));le().s[122]++,this.loadAll(e,t)},openConfiguration:function(e,t=(le().b[21][0]++,!1)){le().f[46]++,le().s[123]++,this.openConfigBase(e,t,(e=>{le().f[47]++,le().s[124]++,this.applyConfig(e)})),le().s[125]++,this.panel=null},saveConfiguration:function(e){le().f[48]++,le().s[126]++,this.saveConfigBase(e,this.currentConfig)}}},oe=re;n(8539),n(2327);var ce=(0,h.A)(oe,s,a,!1,null,"e3a6f2c4",null);const de=ce.exports},7203:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=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)},s=[],a=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();a.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 a.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 a.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,i,s,!1,null,"3c8984fe",null);const u=d.exports},3720:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=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,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),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,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},["enabled"===i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Enabled")]):e._e(),e._v(" "),"enabled"===i?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"!==i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),e._v(" "),"enabled"!==i?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,i){return t("v-row",{key:i,attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]),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)},s=[],a=n(4364);const l={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get(){return this.value},set(e){this.$emit("input",e)}}},created(){this.api=new a.x},beforeDestroy(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((()=>{this.api.get_tlm_values([`${this.targetName}__${this.packetName}__${this.itemName}__RAW`,`${this.targetName}__${this.packetName}__${this.itemName}__CONVERTED`,`${this.targetName}__${this.packetName}__${this.itemName}__FORMATTED`,`${this.targetName}__${this.packetName}__${this.itemName}__WITH_UNITS`]).then((e=>{for(var t=0;t<e.length;t++){let n=null;if("String"===e[t][0]["json_class"]&&void 0!==e[t][0]["raw"]?n=e[t][0]["raw"]:"BLOCK"===this.details.data_type&&(n=e[t][0]),null!==n){n=n.slice(0,parseInt(this.details.bit_size)/8);let i=!1;n.length>64&&(i=!0),e[t][0]=Array.from(n.slice(0,64),(function(e){return" "===e?"20":("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),i&&(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,i,s,!1,null,"18fc7350",null);const d=c.exports},2110:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var i=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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("div",e._g(e._b({},"div",i,!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:i}){return[t("v-icon",e._g(e._b({staticClass:"info-tooltip"},"v-icon",i,!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)},s=[],a=(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:i,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),i),[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:i,attrs:s}){return[t("div",e._g(e._b({},"div",s,!1),i),[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,a,l,!1,null,null,null);const v=p.exports;var g=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)},f=[],_=n(4364);const A={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 _.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+""))}))}},w=A;var b=(0,h.A)(w,g,f,!1,null,null,null);const y=b.exports;var x=n(2132),C=n(5914),S=n.n(C),k=n(7752);k.D$.staleThreshold=10;class T{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,t,n={},i={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((t=>{if(t&&OpenC3Auth.setTokens(),null==this._cable){let e=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=k.Be(e)}return this._cable.subscriptions.create({channel:e,...i},n)}))}recordPing(){this._cable.connection.monitor.recordPing()}}n(9037);const I={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 T,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 x.A(n,this.data,document.getElementById(`chart${this.id}`));else{let i=Intl.DateTimeFormat().resolvedOptions().timeZone;this.timeZone&&"local"!==this.timeZone&&(i=this.timeZone),n={...this.getSize("chart"),...this.getScales(),...this.getAxes("chart"),plugins:[this.linesPlugin()],tzDate:e=>x.A.tzDate(new Date(1e3*e),i),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 i=t.target.closest(".u-series"),s=Array.prototype.slice.call(n.childNodes[0].childNodes).indexOf(i),a=e.series[s];a.item?(this.selectedItem=a.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 x.A(n,this.data,document.getElementById(`chart${this.id}`));const s={...this.getSize("overview"),...this.getScales(),...this.getAxes("overview"),tzDate:e=>x.A.tzDate(new Date(1e3*e),i),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 x.A(s,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,i)=>{let s=n;(this.graphMinY||0===this.graphMinY)&&(s=this.graphMinY);let a=i;return(this.graphMaxY||0===this.graphMaxY)&&(a=this.graphMaxY),x.A.rangeNum(s,a,e,!0)}},subscribe:function(){this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:e=>this.received(e),connected:()=>{this.addItemsToSubscription(this.items)},disconnected:()=>{this.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:()=>{this.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((e=>{this.subscription=e}))},getSize:function(e){let t=0;const n=document.getElementById("openc3-nav-drawer");n&&(t=n.classList.contains("v-navigation-drawer--open")?n.clientWidth:0);let i=0;if("right"===this.legendPosition||"left"===this.legendPosition){const e=document.getElementsByClassName("u-legend")[0];i=e.clientWidth}const s=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-t-i,a=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=a-l.clientHeight-r-250,this.fullHeight||(r=r/2+10));let o=s-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]:x.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,i=e.valToPos(e.scales.y.min,"y",!0),s=e.valToPos(e.scales.y.max,"y",!0),a=e.valToPos(this.limitsValues[0],"y",!0),l=e.valToPos(this.limitsValues[1],"y",!0),r=e.valToPos(this.limitsValues[2],"y",!0),o=e.valToPos(this.limitsValues[3],"y",!0);if(this.lines.forEach((i=>{e.scales.y.min<=i.yValue&&i.yValue<=e.scales.y.max&&(t.save(),t.beginPath(),t.strokeStyle=i.color,t.lineWidth=2,t.moveTo(n.left,e.valToPos(i.yValue,"y",!0)),t.lineTo(n.left+n.width,e.valToPos(i.yValue,"y",!0)),t.stroke(),t.restore())})),t.save(),t.beginPath(),t.fillStyle="rgba(255,0,0,0.15)",e.scales.y.min<this.limitsValues[0]){let e=a<s?s:a;t.fillRect(n.left,a,n.width,i-e)}if(e.scales.y.max>this.limitsValues[3]){let e=i<o?i:o;t.fillRect(n.left,s,n.width,e-s)}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<s?s:l;t.fillRect(n.left,e,n.width,a-e)}if(e.scales.y.max>this.limitsValues[2]&&e.scales.y.min<this.limitsValues[3]){let e=i<o?i:o,s=i<r?i:r;t.fillRect(n.left,e,n.width,s-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<s?s:r,a=i<l?i:l;t.fillRect(n.left,e,n.width,a-e)}}else{const a=e.valToPos(this.limitsValues[4],"y",!0),o=e.valToPos(this.limitsValues[5],"y",!0);if(e.scales.y.min<this.limitsValues[4]&&e.scales.y.max>this.limitsValues[1]){let e=a<s?s:a;t.fillRect(n.left,e,n.width,l-e)}if(e.scales.y.max>this.limitsValues[5]&&e.scales.y.min<this.limitsValues[2]){let e=i<r?i:r,s=i<o?i:o;t.fillRect(n.left,e,n.width,s-e)}t.fillStyle="rgba(0,0,255,0.15)";let c=o<s?s:o,d=i<a?i:a;t.fillRect(n.left,c,n.width,d-c)}t.stroke(),t.restore()}}}},changeItem:function(e){this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((()=>{this.addItems([this.selectedItem])}),0)},addItems:function(e,t="CONVERTED"){for(const i of e){i.valueType||(i.valueType=t),void 0===i.color&&(i.color=this.colors[this.colorIndex]),void 0===i.limits?i.limits=[]:i.limits.length>0&&(this.limitsValues=i.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(i);const e=this.data.length;this.graph.addSeries({spanGaps:!0,item:i,label:this.formatLabel(i),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(i)]=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,i=e[0].length;if(0===i||n>e[0][i-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 i=S()(this.data[0],n,this.bs_comparator);if(i>=0)this.set_data_at_index(i,n,e[t]);else{let s=-i-1;for(let e=0;e<this.data.length;e++)this.data[e].splice(s,0,null);this.set_data_at_index(s,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[i,s]of Object.entries(n)){if("time"===i)continue;let t=this.indexes[i];if(t){let n=this.data[t];if(s?.raw)n[e]=null;else if("string"===typeof s){if(n[e]=null,!i.includes("__RAW")){for(let e of this.items)if(this.subscriptionKey(e)===i){this.selectedItem=e;break}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else n[e]=s}}},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}}},N=I;n(5212),n(6496);var E=(0,h.A)(N,i,s,!1,null,"6eced92a",null);const D=E.exports},1951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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,i){return t("v-list-item",{key:i,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)},s=[],a=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:[a.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.itemsPerRow=parseInt(this.parameters[6]))},methods:{getType:function(){var e="CONVERTED";return this.parameters[7]&&(e=this.parameters[7]),e},formatValue:function(e){var t="",n=" ",i="\n",s=0;if(Array.isArray(e)){for(const a of e)this.formatter&&"nil"!==this.formatter?.toLowerCase()?t+=sprintf(this.formatter,a):t+=a,s+=1,s%this.itemsPerRow===0?(s=0,t+=i):t+=n;return t.trim()}return e}}},o=r;n(6251);var c=n(2401),d=(0,c.A)(o,i,s,!1,null,"4c83f4c3",null);const u=d.exports},6931:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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,i){return t("v-list-item",{key:i,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)},s=[],a=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:[a.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height),this.parameters[5]&&(this.formatter=this.parameters[5]),this.parameters[6]&&(this.bytesPerWord=parseInt(this.parameters[6])),this.parameters[7]&&(this.wordsPerRow=parseInt(this.parameters[7])),this.parameters[8]&&(this.addrFormat=this.parameters[8])},methods:{getType:function(){var e="RAW";return this.parameters[9]&&(e=this.parameters[9]),e},formatValue:function(e){var t="";if(e&&e.raw){var n=" ",i="\n",s=0,a=0;const l=this.bytesPerWord*this.wordsPerRow;for(const r of e.raw)this.addrFormat&&0===s&&(t+=sprintf(this.addrFormat,a),a+=l),t+=sprintf(this.formatter,r),s+=1,s%l===0?(s=0,t+=i):s%this.bytesPerWord===0&&(t+=n)}else t=e;return t}}},o=r;n(2272);var c=n(2401),d=(0,c.A)(o,i,s,!1,null,"42f141dc",null);const u=d.exports},9021:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=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)},s=[],a=n(47);const l=a.A;var r=n(2401),o=(0,r.A)(l,i,s,!1,null,null,null);const c=o.exports},2430:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},s=[],a=n(9843);const l={mixins:[a.A],computed:{width(){return this.parameters[0]+"px"},height(){return this.parameters[1]+"px"}}},r=l;n(1497);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"17947dc7",null);const d=c.exports},6614:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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]}})},s=[],a=n(9729);const l={mixins:[a.A]},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},3732:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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()},s=[],a=n(9729),l=n(7163);const r={mixins:[a.A,l.A],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?`${this.parameters[3]}px`:"100%"},height:function(){return this.parameters[4]?`${this.parameters[4]}px`:"100%"},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,i,s,!1,null,null,null);const u=d.exports},3511:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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)},s=[],a=n(9729),l=n(7163);const r={mixins:[a.A,l.A],data:function(){return{images:[],defaultImage:null,screenTarget:null,screenName:null}},computed:{selectedValue:function(){return this.screen&&this.screen.screenValues[this.valueId]?this.screen.screenValues[this.valueId][0]:null},showDefault:function(){return!this.images.some((e=>e.value==this.selectedValue))},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,i,s,!1,null,null,null);const u=d.exports},6631:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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")])},s=[],a=n(9729);const l={mixins:[a.A],computed:{fillColor(){return this.parameters[3]?this.parameters[3]:"black"}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},8211:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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")])},s=[],a=n(9729);const l={mixins:[a.A],data(){return{valueId:null}},computed:{_value(){return this.screen?this.screen.screenValues[this.valueId][0]:null},fontSize(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor(){return this.parameters[6]?this.parameters[6]:"black"}},created(){let e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},4352:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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]}})},s=[],a=n(9729);const l={mixins:[a.A],computed:{calcStyle(){let e="black";this.parameters[4]&&(e=this.parameters[4]);let t=1;return this.parameters[5]&&(t=this.parameters[5]),"stroke:"+e+";stroke-width:"+t}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},4291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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]}})},s=[],a=n(9729);const l={mixins:[a.A],data(){return{valueId:0,valueMap:{}}},computed:{calcStyle(){let e="black";this.screen&&this.screen.screenValues[this.valueId]&&(e=this.valueMap[this.screen.screenValues[this.valueId][0]]);let t=1;return this.parameters[7]&&(t=this.parameters[7]),"stroke:"+e+";stroke-width:"+t}},created(){this.settings.forEach((e=>{"VALUE_EQ"===e[0]&&(this.valueMap[e[1]]=e[2])}));let e="CONVERTED";this.parameters[8]&&(e=this.parameters[8]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},5733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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"}})},s=[],a=n(9729);const l={mixins:[a.A],data(){return{items:[],label:"Checkbox",value:!1}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.label=this.parameters[0]},methods:{checked(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},3835:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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"}})},s=[],a=n(9729);const l={mixins:[a.A],data(){return{items:[],value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.value=this.parameters[0],this.items=this.parameters},methods:{text(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},5192:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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"}})},s=[],a=n(9729),l=n(7903);const r={mixins:[a.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,i,s,!1,null,null,null);const u=d.exports},3634:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=function(){var e=this,t=e._self._c;return t(e.widgetType,e._b({tag:"component"},"component",{...e.$props,...e.$attrs},!1))},s=[];n(7107);const a={data(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return`${window.location.origin}/tools/widgets/${this.name}/${this.name}.umd.min.js`}},async mounted(){try{this.widgetType=await System.import(this.url)}catch(e){throw new Error(`Unknown widget: ${this.name}`)}}},l=a;var r=n(2401),o=(0,r.A)(l,i,s,!1,null,null,null);const c=o.exports},2656:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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)},s=[],a=n(9729),l=n(2932);const r={mixins:[a.A],components:{ValueWidget:l["default"]},computed:{getParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created(){this.setWidth(this.parameters[5],"ch",12)}},o=r;var c=n(2401),d=(0,c.A)(o,i,s,!1,null,null,null);const u=d.exports},2907:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},s=[],a=(n(9375),n(9843));const l={mixins:[a.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},4812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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)},s=[],a=n(2907),l=n(9843);const r={mixins:[l.A],components:{HorizontalWidget:a["default"]}},o=r;n(6395);var c=n(2401),d=(0,c.A)(o,i,s,!1,null,"7935dee2",null);const u=d.exports},9646:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=function(){var e=this,t=e._self._c;return t("hr")},s=[],a=n(2401),l={},r=(0,a.A)(l,i,s,!1,null,null,null);const o=r.exports},527:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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}})},s=[],a=n(9729);const l={mixins:[a.A],data:function(){return{width:800,height:600}},created:function(){this.setWidth(this.parameters[1],"px",this.width),this.setHeight(this.parameters[2],"px",this.height)}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},4259:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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]}})},s=[],a=n(9729);const l={mixins:[a.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,i,s,!1,null,null,null);const d=c.exports},4858:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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")])},s=[],a=n(9729);const l={mixins:[a.A],data(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText(){return this.parameters[0]},cssProps(){var e=null;return this.fontSize&&(e=this.fontSize+"px"),{"--font-family":this.fontFamily,"--font-size":e,"--font-weight":this.fontWeight,"--font-style":this.fontStyle}}},created(){this.verifyNumParams("LABEL",1,5,"LABEL <Text> <Font Family> <Font Size> <Font Weight> <Font Style>"),this.parameters[1]&&(this.fontFamily=this.parameters[1]),this.parameters[2]&&(this.fontSize=this.parameters[2]),this.parameters[3]&&(this.fontWeight=this.parameters[3]),this.parameters[4]&&(this.fontStyle=this.parameters[4])}},r=l;n(6074);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"19db816e",null);const d=c.exports},8195:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=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)},s=[],a=n(9729),l=n(4858),r=n(1570);const o={mixins:[a.A],components:{LabelWidget:l["default"],LedWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},8207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=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)},s=[],a=n(9729),l=n(4858),r=n(6825);const o={mixins:[a.A],components:{LabelWidget:l["default"],ProgressbarWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},5162:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=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)},s=[],a=n(9729),l=n(4858),r=n(6115);const o={mixins:[a.A],components:{LabelWidget:l["default"],SparklineWidget:r["default"]},computed:{labelName(){return[this.parameters[2]+":"]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},6543:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=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)},s=[],a=(n(4293),n(9729)),l=n(4858),r=n(2932);const o={mixins:[a.A],components:{LabelWidget:l["default"],ValueWidget:r["default"]},computed:{labelName(){let e=this.parameters[2];return e.includes("[[")&&(e=e.replace("[[","[").replace("]]","]")),[e+":"]},valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4]]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},7623:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=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)},s=[],a=(n(9375),n(9729)),l=n(4858),r=n(2932),o=n(4364);const c={mixins:[a.A],data(){return{description:"",valueParameters:[]}},components:{LabelWidget:l["default"],ValueWidget:r["default"]},computed:{labelName(){return[this.description]}},created(){this.valueParameters=this.parameters.slice(0,3),void 0!=this.parameters[4]&&this.valueParameters.push(this.parameters[4]),void 0!=this.parameters[5]&&this.valueParameters.push(this.parameters[5]),this.parameters.length>3?this.description=this.parameters[3]:(new o.x).get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((e=>{this.description=e["description"]}))}},d=c;var u=n(2401),m=(0,u.A)(d,i,s,!1,null,null,null);const h=m.exports},1852:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=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)},s=[],a=n(6543),l=n(6198),r=n(9729);const o={mixins:[r.A],components:{LabelvalueWidget:a["default"],LimitsbarWidget:l["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},2766:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=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)},s=[],a=n(4858),l=n(2932),r=n(9178),o=n(9729);const c={mixins:[o.A],components:{LabelWidget:a["default"],ValueWidget:l["default"],LimitscolumnWidget:r["default"]}},d=c;var u=n(2401),m=(0,u.A)(d,i,s,!1,null,null,null);const h=m.exports},8756:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=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)},s=[],a=n(6543),l=n(5736),r=n(9729);const o={mixins:[r.A],components:{LabelvalueWidget:a["default"],RangebarWidget:l["default"]},computed:{labelValueSettings(){return[...this.settings.filter((e=>"__SCREEN__"===e[0])),...this.settings.filter((e=>0===parseInt(e[0])||1===parseInt(e[0])))]},labelValueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},1570:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({staticClass:"led mt-1",style:e.cssProps},"div",i,!1),n))]}}])},[e._v(" "),t("span",[e._v(e._s(e.fullName))])])},s=[],a=n(9729);const l={mixins:[a.A],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);let t=this.colors[e];return t||(t=this.colors.ANY),t||(t="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":t}},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,i,s,!1,null,"549fe176",null);const d=c.exports},6198:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("div",e._g(e._b({staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},"div",i,!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))])])},s=[],a=n(2754);const l={mixins:[a.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,i,s,!1,null,"79bcb6e7",null);const d=c.exports},8518:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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)},s=[],a=n(2967);const l={mixins:[a.A],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){let e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},r=l;n(8490);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"47f390ae",null);const d=c.exports},9178:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"limitsbar__container"},[t("div",{staticClass:"limitsbar__redlow"}),e._v(" "),t("div",{staticClass:"limitsbar__redhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowlow"}),e._v(" "),t("div",{staticClass:"limitsbar__yellowhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__greenlow"}),e._v(" "),t("div",{staticClass:"limitsbar__greenhigh"}),e._v(" "),t("div",{staticClass:"limitsbar__blue"}),e._v(" "),t("div",{staticClass:"limitsbar__line"}),e._v(" "),t("div",{staticClass:"limitsbar__arrow"})])}],a=n(2754);const l={mixins:[a.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,i,s,!1,null,"5a19801c",null);const d=c.exports},3458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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"}})},s=[],a=n(1033),l=n(2110);const r={components:{Graph:l.A},mixins:[a.A]},o=r;var c=n(2401),d=(0,c.A)(o,i,s,!1,null,null,null);const u=d.exports},5043:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=function(){var e=this,t=e._self._c;return t("table",{style:e.computedStyle,attrs:{role:"presentation"}},e._l(e.widgetChunks,(function(n,i){return t("tr",{key:"r"+i},e._l(n,(function(n,i){return t("td",{key:"c"+i},[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)},s=[],a=(n(9375),n(9843)),l=n(5250),r=n.n(l);const o={mixins:[a.A],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return r().chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let e=this.parameters[1];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},6825:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("rux-progress",{staticClass:"progress",style:e.computedStyle,attrs:{value:e._value}})},s=[],a=n(9729);const l={mixins:[a.A],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let e=this.value;return null===e&&this.screen&&(e=this.screen.screenValues[this.valueId][0]),parseInt(parseFloat(e)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),null===this.value){var e="CONVERTED";this.parameters[5]&&(e=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId)}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},r=l;n(3519);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"e34552b0",null);const d=c.exports},5993:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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}})},s=[],a=n(9729);const l={props:{value:{type:Number}},mixins:[a.A],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},5758:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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,i){return t(n.type,e._g({key:i,tag:"component",attrs:{value:i,target:n.target,parameters:n.parameters,settings:n.settings,name:n.name}},e.$listeners))})),1)},s=[],a=n(9843);const l={mixins:[a.A],data(){return{selectedIndex:0}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},5736:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar",style:[e.cssProps,e.computedStyle]},[e._m(0)])},s=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"rangebar__container"},[t("div",{staticClass:"rangebar__line"}),e._v(" "),t("div",{staticClass:"rangebar__arrow"})])}],a=n(9729);const l={mixins:[a.A],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.screen&&this.screen.addItem(this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},destroyed(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{calcPosition(){let e=null;if(this.screen&&(e=this.screen.screenValues[this.valueId][0]),!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;const t=(e-this.min)/this.range*100;return t>100?100:t<0?0:t}}},r=l;n(519);var o=n(2401),c=(0,o.A)(r,i,s,!1,null,"f50bb458",null);const d=c.exports},1783:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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))},s=[],a=(n(9375),n(9729));const l={mixins:[a.A],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[]}},computed:{status:function(){let e="off";if(this.screen)for(const t of this.items){let n=this.screen.screenValues[t][1];n&&((n.includes("BLUE")||n.includes("GREEN"))&&"caution"!=e&&"critical"!=e&&(e="normal"),n.includes("YELLOW")&&"critical"!=e&&(e="caution"),n.includes("RED")&&(e="critical"))}else e="off";return e},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,i,s,!1,null,null,null);const d=c.exports},9769:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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))},s=[],a=n(9843),l=n(1629);const r={mixins:[a.A],components:{VerticalWidget:l["default"]},created:function(){this.setHeight(this.parameters[0],"px",200)}},o=r;var c=n(2401),d=(0,c.A)(o,i,s,!1,null,null,null);const u=d.exports},2959:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.labelText))])},s=[],a=n(9729);const l={mixins:[a.A],computed:{labelText(){return this.parameters[0]}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},1533:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("v-icon",{on:{click:e.clickHandler}},[e._v(" "+e._s(e.displayedIcon)+" ")])},s=[],a=n(2967);const l={mixins:[a.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,i,s,!1,null,null,null);const d=c.exports},773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=function(){var e=this,t=e._self._c;return t("div",{style:e.computedStyle})},s=[],a=(n(9375),n(9729));const l={mixins:[a.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,i,s,!1,null,null,null);const d=c.exports},6115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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:""}})},s=[],a=n(1033),l=n(2110);const r={components:{Graph:l.A},mixins:[a.A],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}},o=r;var c=n(2401),d=(0,c.A)(o,i,s,!1,null,null,null);const u=d.exports},2926:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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,i){return t("v-tab",{key:i},[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,i){return t("v-tab-item",{key:i},e._l(n.widgets,(function(n,s){return t(n.type,e._g({key:`${i}-${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)})),1)],1)},s=[],a=n(9843);const l={mixins:[a.A],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},7462:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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,i){return t("v-list-item",{key:i,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)},s=[],a=n(2967),l=n(3720);n(9471);const r={components:{DetailsDialog:l.A},data:function(){return{width:200,height:200}},mixins:[a.A],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){var e="CONVERTED";return this.parameters[5]&&(e=this.parameters[5]),e}}},o=r;n(6616);var c=n(2401),d=(0,c.A)(o,i,s,!1,null,"4cca914c",null);const u=d.exports},7540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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"}})},s=[],a=n(9729);const l={mixins:[a.A],data(){return{value:null}},created(){this.settings.forEach((e=>{"NAMED_WIDGET"===e[0]&&e[2].setNamedWidget(e[1],this)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},3660:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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"}})},s=[],a=n(9729),l=n(7903);const r={mixins:[a.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,i,s,!1,null,null,null);const u=d.exports},6525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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")])},s=[],a=(n(7107),n(9729));const l={mixins:[a.A],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},2932:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=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:i}){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",i,!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,i){return t("v-list-item",{key:i,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)},s=[],a=n(2967),l=n(3720);const r=4,o={components:{DetailsDialog:l.A},mixins:[a.A],data:function(){return{width:12+r}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+r,"ch",this.width)}},c=o;n(8299);var d=n(2401),u=(0,d.A)(c,i,s,!1,null,"21febbc3",null);const m=u.exports},1279:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=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)},s=[],a=n(2932),l=n(6198),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:a["default"],LimitsbarWidget:l["default"]}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},4428:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=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)},s=[],a=n(2932),l=n(9178),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:a["default"],LimitscolumnWidget:l["default"]}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},1616:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var i=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)},s=[],a=n(2932),l=n(5736),r=n(9729);const o={mixins:[r.A],components:{ValueWidget:a["default"],RangebarWidget:l["default"]},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}},c=o;var d=n(2401),u=(0,d.A)(c,i,s,!1,null,null,null);const m=u.exports},1629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=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,i){return t(n.type,e._g({key:i,tag:"component",attrs:{target:n.target,parameters:n.parameters,settings:n.settings,widgets:n.widgets,name:n.name,line:n.line,lineNumber:n.lineNumber}},e.$listeners))})),1)},s=[],a=(n(9375),n(9843));const l={mixins:[a.A],created:function(){if(this.parameters[0]){let e=this.parameters[0];this.widgets.forEach((t=>{const n=t.settings.find((e=>"MARGIN"===e[0]||"RAW"===e[0]&&e[1].toUpperCase().includes("MARGIN")));void 0===n&&t.settings.push(["MARGIN",e])}))}}},r=l;var o=n(2401),c=(0,o.A)(r,i,s,!1,null,null,null);const d=c.exports},5757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=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)},s=[],a=n(1629),l=n(9843);const r={mixins:[l.A],components:{VerticalWidget:a["default"]}},o=r;n(1241);var c=n(2401),d=(0,c.A)(o,i,s,!1,null,"e0b00b10",null);const u=d.exports},1972:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".v-alert[data-v-77161074]{margin-bottom:0}",""]);const o=r},5843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,"i.v-icon.mdi-chevron-down{animation:pulse 2s 3}@keyframes pulse{0%{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,.4)}70%{-webkit-box-shadow:0 0 0 10px hsla(0,0%,100%,0)}to{-webkit-box-shadow:0 0 0 0 hsla(0,0%,100%,0)}}",""]);const o=r},3103:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());r.push([e.id,".v-expansion-panel-content[data-v-e3a6f2c4]{.container[data-v-e3a6f2c4]{margin:0}}.v-expansion-panel-header[data-v-e3a6f2c4]{min-height:10px;padding:5px}.grid[data-v-e3a6f2c4]{position:relative}.item[data-v-e3a6f2c4]{position:absolute;display:block;margin:5px;z-index:1}.item.muuri-item-dragging[data-v-e3a6f2c4]{z-index:3}.item.muuri-item-releasing[data-v-e3a6f2c4]{z-index:2}.item.muuri-item-hidden[data-v-e3a6f2c4]{z-index:0}.item-content[data-v-e3a6f2c4]{position:relative;cursor:pointer;border-radius:6px}",""]);const o=r},1447:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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},4203:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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 i=n(6758),s=n.n(i),a=n(935),l=n.n(a),r=l()(s());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},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 i=[];for(const s in n)i.push({key:s,value:n[s],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_3__.A.post(`/script-api/scripts/${e}/run`,{data:{environment:i}}).then((e=>{t&&window.open(`/tools/scriptrunner/${e.data}`,"_blank")}))}}}},1148:(e,t,n)=>{var i=n(1972);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7a4525c2",i,!0,{sourceMap:!1,shadowMode:!1})},8539:(e,t,n)=>{var i=n(5843);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("07e5a6d3",i,!0,{sourceMap:!1,shadowMode:!1})},2327:(e,t,n)=>{var i=n(3103);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("22f12a42",i,!0,{sourceMap:!1,shadowMode:!1})},4815:(e,t,n)=>{var i=n(1447);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("0acef07b",i,!0,{sourceMap:!1,shadowMode:!1})},4849:(e,t,n)=>{var i=n(6857);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7adc6a5a",i,!0,{sourceMap:!1,shadowMode:!1})},2605:(e,t,n)=>{var i=n(7589);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("28ee4c72",i,!0,{sourceMap:!1,shadowMode:!1})},7613:(e,t,n)=>{var i=n(1365);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("4d90f07e",i,!0,{sourceMap:!1,shadowMode:!1})},5212:(e,t,n)=>{var i=n(8388);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("9376cdda",i,!0,{sourceMap:!1,shadowMode:!1})},6496:(e,t,n)=>{var i=n(6584);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("380801f2",i,!0,{sourceMap:!1,shadowMode:!1})},8474:(e,t,n)=>{var i=n(2114);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("e66c0642",i,!0,{sourceMap:!1,shadowMode:!1})},7324:(e,t,n)=>{var i=n(3956);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("ad1badf2",i,!0,{sourceMap:!1,shadowMode:!1})},5699:(e,t,n)=>{var i=n(4203);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("7f447726",i,!0,{sourceMap:!1,shadowMode:!1})},6251:(e,t,n)=>{var i=n(8963);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("0aeba444",i,!0,{sourceMap:!1,shadowMode:!1})},2272:(e,t,n)=>{var i=n(4088);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("2ed149ef",i,!0,{sourceMap:!1,shadowMode:!1})},6395:(e,t,n)=>{var i=n(6403);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("0e86fc54",i,!0,{sourceMap:!1,shadowMode:!1})},6074:(e,t,n)=>{var i=n(2498);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("24c3e658",i,!0,{sourceMap:!1,shadowMode:!1})},4636:(e,t,n)=>{var i=n(9444);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("64bdbc79",i,!0,{sourceMap:!1,shadowMode:!1})},8490:(e,t,n)=>{var i=n(9058);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("8aaadfb6",i,!0,{sourceMap:!1,shadowMode:!1})},6616:(e,t,n)=>{var i=n(9824);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("32eeeee2",i,!0,{sourceMap:!1,shadowMode:!1})},1241:(e,t,n)=>{var i=n(3425);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("6529934c",i,!0,{sourceMap:!1,shadowMode:!1})},1497:(e,t,n)=>{var i=n(3224);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("0138eb9a",i,!0,{sourceMap:!1,shadowMode:!1})},8461:(e,t,n)=>{var i=n(3846);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("707f9c58",i,!0,{sourceMap:!1,shadowMode:!1})},1723:(e,t,n)=>{var i=n(3666);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("4dd7fda3",i,!0,{sourceMap:!1,shadowMode:!1})},3519:(e,t,n)=>{var i=n(3160);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("2af1c7e9",i,!0,{sourceMap:!1,shadowMode:!1})},519:(e,t,n)=>{var i=n(2574);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("df7a598a",i,!0,{sourceMap:!1,shadowMode:!1})},8299:(e,t,n)=>{var i=n(1923);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(4825).A;s("dbafcec6",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
-
//# sourceMappingURL=299.js.map
|