openc3-cosmos-tool-tlmviewer 5.6.1 → 5.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/tlmviewer/index.html +4 -1
- data/tools/tlmviewer/js/387.js +2 -0
- data/tools/tlmviewer/js/387.js.map +1 -0
- data/tools/tlmviewer/js/792.js +6 -6
- data/tools/tlmviewer/js/792.js.map +1 -1
- data/tools/tlmviewer/js/app.js +1 -1
- data/tools/tlmviewer/js/app.js.map +1 -1
- metadata +4 -4
- data/tools/tlmviewer/js/409.js +0 -2
- data/tools/tlmviewer/js/409.js.map +0 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_tlmviewer"]=self["webpackChunk_openc3_cosmos_tool_tlmviewer"]||[]).push([[387],{84910:function(e,t,n){var i={"./ArrayWidget.vue":40636,"./BlockWidget.vue":71340,"./ButtonWidget.vue":68837,"./CanvasWidget.vue":75886,"./CanvasdotWidget.vue":8213,"./CanvasimageWidget.vue":9170,"./CanvasimagevalueWidget.vue":58961,"./CanvaslabelWidget.vue":66147,"./CanvaslabelvalueWidget.vue":3193,"./CanvaslineWidget.vue":52661,"./CanvaslinevalueWidget.vue":9434,"./CheckbuttonWidget.vue":23984,"./ComboboxWidget.vue":910,"./DynamicWidget.vue":76116,"./FormatvalueWidget.vue":61867,"./HorizontalWidget.vue":66410,"./HorizontalboxWidget.vue":75237,"./HorizontallineWidget.vue":11685,"./IframeWidget.vue":55526,"./ImageviewerWidget.vue":81241,"./LabelWidget.vue":3411,"./LabelledWidget.vue":85638,"./LabelprogressbarWidget.vue":44221,"./LabelsparklineWidget.vue":42155,"./LabelvalueWidget.vue":2378,"./LabelvaluedescWidget.vue":58444,"./LabelvaluelimitsbarWidget.vue":86414,"./LabelvaluelimitscolumnWidget.vue":36,"./LabelvaluerangebarWidget.vue":15690,"./LedWidget.vue":68301,"./LimitsbarWidget.vue":70230,"./LimitscolorWidget.vue":10618,"./LimitscolumnWidget.vue":40617,"./LinegraphWidget.vue":48538,"./MatrixbycolumnsWidget.vue":54423,"./ProgressbarWidget.vue":96714,"./RadiobuttonWidget.vue":65398,"./RadiogroupWidget.vue":12413,"./RangebarWidget.vue":87458,"./ScrollwindowWidget.vue":42701,"./SectionheaderWidget.vue":38664,"./SpacerWidget.vue":84224,"./SparklineWidget.vue":889,"./TabbookWidget.vue":40851,"./TextboxWidget.vue":7312,"./TextfieldWidget.vue":57451,"./TitleWidget.vue":94788,"./ValueWidget.vue":94471,"./ValuelimitsbarWidget.vue":91075,"./ValuelimitscolumnWidget.vue":80128,"./ValuerangebarWidget.vue":37193,"./VerticalWidget.vue":38519,"./VerticalboxWidget.vue":35133};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=84910},22841:function(e,t,n){"use strict";n(58188),n(1939),n(36728),n(68995),n(32501),n(71372);var i=n(10247),s=n(59800),a=n(92202);t["Z"]={mixins:[a.Z],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(){var e=this;this.settings.forEach((function(t){switch(t[0]){case"ITEM":e.items.push({targetName:t[1],packetName:t[2],itemName:t[3],valueType:t[4]||"CONVERTED",reduced:t[5]||"DECOM",reducedType:t[6]||null});case"STARTTIME":var n=(0,i.Z)(t[1],"yyyy/MM/dd HH:mm:ss",new Date);e.startTime=1e6*n.getTime();break;case"HISTORY":var a=parseInt(t[1].slice(0,t[1].length-1)),r=null,l=1;switch(t[1][t[1].length-1]){case"d":r="days",l=86400;break;case"h":r="hours",l=3600;break;case"m":r="minutes",l=60;break;case"s":r="seconds";break;default:throw new Error("Unknown time suffix: ".concat(t[1],"!"))}var o={};o[r]=a,e.startTime=1e6*(0,s.Z)(new Date,o).getTime(),a*l>e.secondsGraphed&&(e.secondsGraphed=a*l),a*l>e.pointsSaved&&(e.pointsSaved=a*l),a*l>e.pointsGraphed&&(e.pointsGraphed=a*l);break;case"SECONDSGRAPHED":e.secondsGraphed=parseInt(t[1]);break;case"POINTSSAVED":e.pointsSaved=parseInt(t[1]);break;case"POINTSGRAPHED":e.pointsGraphed=parseInt(t[1]);break;case"SIZE":e.size.width=parseInt(t[1]),e.size.height=parseInt(t[2]);break}}))}}},1716:function(e,t,n){"use strict";var i=n(15789),s=n(49502),a=(n(18178),n(16129));t["Z"]={props:{target:{type:String,require:!0}},methods:{getPresignedUrl:function(){var e=(0,s.Z)((0,i.Z)().mark((function e(t){var n;return(0,i.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,a.Z.get("/openc3-api/storage/download/".concat(encodeURIComponent("".concat(window.openc3Scope,"/targets/").concat(this.target,"/public/").concat(t)),"?bucket=OPENC3_CONFIG_BUCKET"));case 2:return n=e.sent,e.abrupt("return",n.data.url);case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}}},548:function(e,t,n){"use strict";var i=n(92202);t["Z"]={mixins:[i.Z],props:{widgets:{type:Array,default:function(){return[]}}}}},92318:function(e,t,n){"use strict";n(18178),n(96708),n(27233),n(28673),n(32501),n(58188),n(88233);var i=n(92202);n(80131);t["Z"]={mixins:[i.Z],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null},data:function(){var e=this;return{curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,colorBlind:!1,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:function(){e.contextMenuShown=!1,e.viewDetails=!0}},{title:"Graph",action:function(){window.open("/tools/tlmgrapher/"+e.parameters[0]+"/"+e.parameters[1]+"/"+e.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]&&(this.curValue=this.screen.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),"true"===localStorage.colorblindMode&&""!==this.limitsLetter?"".concat(this.curValue," (").concat(this.limitsLetter,")"):this.curValue},_counter:function(){var 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},limitsColor:function(){var e=this.limitsState;if(null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),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:function(){var e=this.limitsState;if(null===e&&(this.screen?this.screen.screenValues[this.valueId]&&(e=this.screen.screenValues[this.valueId][1]):e=null),null!=e){var t=e.charAt(0);return e.endsWith("_LOW")&&(t=t.toLowerCase()),t}return""}},created:function(){null!==this.value&&null!==this.limitsState||(this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.getType()),this.screen&&this.screen.addItem(this.valueId))},destroyed:function(){null!==this.value&&null!==this.limitsState||this.screen&&this.screen.deleteItem(this.valueId)},methods:{getType:function(){var e="WITH_UNITS";return this.parameters[3]&&(e=this.parameters[3]),e},formatValue:function(e){if(e&&"String"===e["json_class"]&&void 0!==e["raw"]){var 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)){for(var n="[",i=0;i<e.length;i++)"String"===Object.prototype.toString.call(e[i]).slice(8,-1)?n+='"'+e[i]+'"':n+=e[i],i!=e.length-1&&(n+=", ");return n+="]",n}return"Object"===Object.prototype.toString.call(e).slice(8,-1)?"":this.formatString&&e?sprintf(this.formatString,e):""+e},showContextMenu:function(e){var t=this;e.preventDefault(),this.contextMenuShown=!1,this.x=e.clientX,this.y=e.clientY,this.$nextTick((function(){t.contextMenuShown=!0}))}}}},92202:function(e,t,n){"use strict";n(71245),n(58188),n(1939),n(68995),n(32501),n(49228),n(18178),n(1951),n(36728);var i=n(63291);t["Z"]={props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:function(){return[]}},settings:{type:Array,default:function(){return[]}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data:function(){return{screen:null}},computed:{computedStyle:function(){var e=this,t={};return this.settings.forEach((function(n){var i=parseInt(n[0]);if(null!==e.widgetIndex){if(e.widgetIndex!==i)return;n=n.slice(1)}e.applySetting(t,n)})),void 0===t["width"]&&(t["flex"]="0 10 100%"),t}},created:function(){var e=this;this.settings.forEach((function(t){"__SCREEN__"===t[0]&&(e.screen=t[1])}))},methods:{applySetting:function(e,t){switch(t[0]){case"TEXTALIGN":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",e["border-style"]="solid",e["border-color"]=this.getColor(t.slice(1));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];break}},verifyNumParams:function(e,t,n){for(var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a={line:this.line,lineNumber:this.lineNumber,keyword:e,parameters:this.parameters},r=1;r<=t;r++)if(void 0===this.parameters[r-1])throw new i.y(a,"Not enough parameters for ".concat(e,"."),s,"https://openc3.com/docs/v5");if(n&&void 0===!this.parameters[n])throw new i.y(a,"Too many parameters for ".concat(e,"."),s,"https://openc3.com/docs/v5")},setWidth:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"120",s=null;if(s=null!==this.widgetIndex?this.settings.find((function(e){return parseInt(e[0])===t.widgetIndex&&"WIDTH"===e[1]})):this.settings.find((function(e){return"WIDTH"===e[0]})),s)return s["WIDTH"];if(e){var a=["WIDTH","".concat(e).concat(n)];return null!==this.widgetIndex&&a.unshift(this.widgetIndex),this.settings.push(a),parseInt(e)}var r=["WIDTH","".concat(i).concat(n)];return null!==this.widgetIndex&&r.unshift(this.widgetIndex),this.settings.push(r),parseInt(i)},setHeight:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"20",s=null;if(s=null!==this.widgetIndex?this.settings.find((function(e){return parseInt(e[0])===t.widgetIndex&&"HEIGHT"===e[1]})):this.settings.find((function(e){return"HEIGHT"===e[0]})),s)return s["HEIGHT"];if(e){var a=["HEIGHT","".concat(e).concat(n)];return null!==this.widgetIndex&&a.unshift(this.widgetIndex),this.settings.push(a),parseInt(e)}var r=["HEIGHT","".concat(i).concat(n)];return null!==this.widgetIndex&&r.unshift(this.widgetIndex),this.settings.push(r),parseInt(i)},getColor:function(e){switch(e.length){case 1:return e[0].toLowerCase();case 3:return"rgb(".concat(e[0],",").concat(e[1],",").concat(e[2],")")}}}}},16129:function(e,t,n){"use strict";var i=n(66964),s=n(15789),a=n(49502),r=n(89373),l=function(){var e=(0,a.Z)((0,s.Z)().mark((function e(t,n){var i,a,l,o,c,u,d,m,h,p,f=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=f.length>2&&void 0!==f[2]?f[2]:{},a=i.data,l=i.params,o=void 0===l?{}:l,c=i.headers,u=i.noAuth,d=void 0!==u&&u,m=i.noScope,h=void 0!==m&&m,d){e.next=13;break}return e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:p=e.sent,p&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:c["Authorization"]=localStorage.openc3Token;case 13:return h||o["scope"]||(o["scope"]=window.openc3Scope),e.abrupt("return",(0,r.Z)({method:t,url:n,data:a,params:o,headers:c}));case 15:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n){return e.apply(this,arguments)}}(),o={Accept:"application/json"},c=(0,i.Z)((0,i.Z)({},o),{},{"Content-Type":"application/json"});t["Z"]={get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,i=t.headers,s=void 0===i?o:i,a=t.noScope,r=t.noAuth;return l("get",e,{params:n,headers:s,noScope:a,noAuth:r})},put:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,i=t.params,s=t.headers,a=void 0===s?c:s,r=t.noScope,o=t.noAuth;return l("put",e,{data:n,params:i,headers:a,noScope:r,noAuth:o})},post:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,i=t.params,s=t.headers,a=void 0===s?c:s,r=t.noScope,o=t.noAuth;return l("post",e,{data:n,params:i,headers:a,noScope:r,noAuth:o})},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.params,i=t.headers,s=void 0===i?o:i,a=t.noScope,r=t.noAuth;return l("delete",e,{params:n,headers:s,noScope:a,noAuth:r})}}},89373:function(e,t,n){"use strict";n(39529),n(31235),n(58188),n(88233);var i=n(89644),s=n.n(i),a=n(44091),r=new a["default"],l=s().create({baseURL:location.origin,timeout:6e4,params:{}});l.interceptors.response.use((function(e){return e}),(function(e){if(e.response){var t,n,i,s,a,l,o,c,u,d;if(401===e.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(e){e&&OpenC3Auth.setTokens()})),e.response.headers["ignore-errors"]&&e.response.headers["ignore-errors"].includes(e.response.status.toString()))return Promise.reject(e);var m="HTTP ".concat(e.response.status," - ");if(null!==(t=e.response)&&void 0!==t&&t.statusText&&(m+="".concat(e.response.statusText," ")),null!==(n=e.response)&&void 0!==n&&null!==(i=n.config)&&void 0!==i&&i.data&&(m+="".concat(e.response.config.data," ")),null!==(s=e.response)&&void 0!==s&&null!==(a=s.data)&&void 0!==a&&a.message)m+="".concat(e.response.data.message);else if(null!==(l=e.response)&&void 0!==l&&null!==(o=l.data)&&void 0!==o&&o.exception)m+="".concat(e.response.data.exception);else if(null!==(c=e.response)&&void 0!==c&&null!==(u=c.data)&&void 0!==u&&null!==(d=u.error)&&void 0!==d&&d.message)e.response.data.error.class&&(m+="".concat(e.response.data.error.class," ")),m+="".concat(e.response.data.error.message);else{var h;m+="".concat(null===(h=e.response)||void 0===h?void 0:h.data)}throw r.$notify&&r.$notify.serious({title:"Network error",body:m}),e}throw e})),t["Z"]=l},59161:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(66964),s=n(50426),a=n(57871),r=n(47146);r.ju.staleThreshold=10;var l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/openc3-api/cable";(0,s.Z)(this,e),this._cable=null,this._url=t}return(0,a.Z)(e,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(e,t){var n=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(t){if(t&&OpenC3Auth.setTokens(),null==n._cable){var l=n._url+"?scope="+window.openc3Scope+"&authorization="+localStorage.openc3Token;n._cable=r.zD(l)}return n._cable.subscriptions.create((0,i.Z)({channel:e},a),s)}))}},{key:"recordPing",value:function(){this._cable.connection.monitor.recordPing()}}]),e}()},63291:function(e,t,n){"use strict";n.d(t,{p:function(){return l},y:function(){return r}});var i=n(52261),s=n(57871),a=n(50426),r=(n(77950),n(85940),n(36728),n(45794),(0,s.Z)((function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";(0,a.Z)(this,e),this.keyword=t.keyword,this.parameters=t.parameters,this.filename=t.filename,this.line=t.line,this.lineNumber=t.lineNumber,this.message=n,this.usage=i,this.url=s}))),l=function(){function e(){(0,a.Z)(this,e),(0,i.Z)(this,"keyword",null),(0,i.Z)(this,"parameters",[]),(0,i.Z)(this,"filename",""),(0,i.Z)(this,"line",""),(0,i.Z)(this,"lineNumber",0),(0,i.Z)(this,"url","https://openc3.com/docs/v5")}return(0,s.Z)(e,[{key:"verify_num_parameters",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=1;i<=e;i++)if(void 0===this.parameters[i-1])throw new r(this,"Not enough parameters for ".concat(this.keyword,"."),n,this.url);if(t&&void 0===!this.parameters[t])throw new r(this,"Too many parameters for ".concat(this.keyword,"."),n,this.url)}},{key:"remove_quotes",value:function(e){if(e.length<2)return e;var t=e.charAt(0);if('"'!==t&&"'"!==t)return e;var n=e.charAt(e.length-1);return t!==n?e:e.substring(1,e.length-1)}},{key:"scan_string",value:function(e,t){if(!t.global)throw"rx must have 'global' flag set";var n=[];return e.replace(t,(function(e){return n.push(e),e})),n}},{key:"parse_string",value:function(e,t,n,i,s){var a=!1;this.line="",this.keyword=null,this.parameters=[],this.filename=t;for(var r=e.split("\n"),l=r.length,o=0;o<l;o++){this.lineNumber=o+1;var c=r[o].trim();if(0!==c.length){if(!0===a){if("#"===c[0])continue;c=c.substring(1,c.length)}var u=c.charAt(c.length-1),d=!1;switch(u){case"+":d=!0;case"\\":var m=c.substring(0,c.length-1).trim();this.line+=m.substring(0,m.length-1),d&&(this.line+="\n"),a=!0;continue;case"&":this.line+=c.substring(0,c.length-1);continue;default:this.line+=c}a=!1;var h=/("([^\\"]|\\.)*")|('([^\\']|\\.)*')|\S+/g,p=this.scan_string(this.line,h),f="";if(p.length>0&&(f+=p[0]),0===f.length||"#"===f.charAt(0)?this.keyword=null:this.keyword=f.toUpperCase(),this.parameters=[],null!==this.keyword){var v=p.length;if(v>1)for(var g=1;g<v;g++){var _=p[g];if(_.length>0&&"#"===_.charAt(0))break;i?this.parameters.push(this.remove_quotes(_)):this.parameters.push(_)}s(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}else n&&s(this.keyword,this.parameters,this.line,this.lineNumber),this.line=""}}}}]),e}()},48392:function(e,t,n){"use strict";n.d(t,{k:function(){return d}});var i=n(26259),s=n(15789),a=n(66964),r=n(49502),l=n(50426),o=n(57871),c=n(52261),u=(n(71372),n(71245),n(77950),n(18178),n(39529),n(58188),n(13675),n(94898),n(5825),n(67170),n(38857),n(58329),n(76279),n(427),n(40171),n(57093),n(11159),n(42516),n(64349),n(15273),n(16729),n(41801),n(50574),n(5787),n(39271),n(73160),n(65688),n(93157),n(33333),n(70315),n(50556),n(29224),n(22649),n(80014),n(61996),n(43450),n(27233),n(28673),n(35734),n(88233),n(89373)),d=function(){function e(){(0,l.Z)(this,e),(0,c.Z)(this,"id",1)}return(0,o.Z)(e,[{key:"exec",value:function(){var e=(0,r.Z)((0,s.Z)().mark((function e(t,n){var i,r,l,o,c,d=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=d.length>2&&void 0!==d[2]?d[2]:{},r=d.length>3&&void 0!==d[3]?d[3]:{},e.prev=2,e.next=5,OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);case 5:l=e.sent,l&&OpenC3Auth.setTokens(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),OpenC3Auth.login();case 12:return this.id=this.id+1,e.prev=13,i["scope"]=window.openc3Scope,e.next=17,u.Z.post("/openc3-api/api",{jsonrpc:"2.0",method:t,params:n,id:this.id,keyword_params:i},{headers:(0,a.Z)({Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc"},r)});case 17:return o=e.sent,e.abrupt("return",o.data.result);case 21:throw e.prev=21,e.t1=e["catch"](13),c=new Error,e.t1.response?(c.name=e.t1.response.data.error.data.class,c.message=e.t1.response.data.error.data.message):e.t1.request?(c.name="Request error",c.message="Request error, no response received"):c.name="Unknown error",c;case 26:case"end":return e.stop()}}),e,this,[[2,9],[13,21]])})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"decode_openc3_type",value:function(e){if(null!==e&&"object"===(0,i.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_openc3_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"ensure_offline_access",value:function(){var e=this;this.offline_access_needed().then((function(t){t&&(localStorage.openc3OfflineToken?e.set_offline_access(localStorage.openc3OfflineToken).then((function(){delete localStorage.openc3OfflineToken})):OpenC3Auth.getOfflineAccess())}))}},{key:"offline_access_needed",value:function(){return this.exec("offline_access_needed",[])}},{key:"set_offline_access",value:function(e){return this.exec("set_offline_access",[e])}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"map_target_to_interface",value:function(e,t){return this.exec("map_target_to_interface",[e,t])}},{key:"connect_interface",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.length>0?this.exec("connect_interface",[e].concat(n)):this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_target_interfaces",value:function(){return this.exec("get_target_interfaces",[])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_tlm_cnts",value:function(e){return this.exec("get_tlm_cnts",[e])}},{key:"get_item",value:function(e,t,n){return this.exec("get_item",[e,t,n])}},{key:"get_parameter",value:function(e,t,n){return this.exec("get_parameter",[e,t,n])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,t){return this.exec("get_telemetry",[e,t])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_names",value:function(e){return this.exec("get_all_telemetry_names",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,r.Z)((0,s.Z)().mark((function e(t,n,i){var a,r,l,o,c,u=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=u.length>3&&void 0!==u[3]?u[3]:30,e.next=3,this.exec("get_tlm_packet",[t,n],{type:i,stale_time:a});case 3:if(r=e.sent,null!=r)for(l=r.length,o=null,c=0;c<l;c++)o=this.decode_openc3_type(r[c][1]),null!==o&&(r[c][1]=o);return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"get_packet_derived_items",value:function(e,t){return this.exec("get_packet_derived_items",[e,t])}},{key:"get_tlm_buffer",value:function(e,t){return this.exec("get_tlm_buffer",[e,t])}},{key:"get_tlm_values",value:function(){var e=(0,r.Z)((0,s.Z)().mark((function e(t){var n,i,a,r,l,o=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:30,e.next=3,this.exec("get_tlm_values",[t],{stale_time:n});case 3:for(i=e.sent,a=i[0].length,r=null,l=0;l<a;l++)r=this.decode_openc3_type(i[0][l]),null!==r&&(i[0][l]=r);return e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"get_limits",value:function(e,t,n){return this.exec("get_limits",[e,t,n])}},{key:"tlm",value:function(){var e=(0,r.Z)((0,s.Z)().mark((function e(t,n,i){var a,r,l,o,c=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=c.length>3&&void 0!==c[3]?c[3]:"CONVERTED",r=null,void 0!==n){e.next=8;break}return e.next=5,this.exec("tlm",[t]);case 5:r=e.sent,e.next=24;break;case 8:if(void 0!==i){e.next=21;break}if(!["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n)){e.next=15;break}return e.next=12,this.exec("tlm",[t],{type:n});case 12:r=e.sent,e.next=19;break;case 15:throw l=new Error,l.name="TypeError",l.message="Invalid data type ".concat(n,". Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS."),l;case 19:e.next=24;break;case 21:return e.next=23,this.exec("tlm",[t,n,i],{type:a});case 23:r=e.sent;case 24:return o=this.decode_openc3_type(r),null!==o&&(r=o),e.abrupt("return",r);case 27:case"end":return e.stop()}}),e,this)})));function t(t,n,i){return e.apply(this,arguments)}return t}()},{key:"inject_tlm",value:function(){var e=(0,r.Z)((0,s.Z)().mark((function e(t,n){var i,a,r=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=r.length>2&&void 0!==r[2]?r[2]:null,a=r.length>3&&void 0!==r[3]?r[3]:"CONVERTED",e.next=4,this.exec("inject_tlm",[t,n,i],{type:a});case 4:data=e.sent;case 5:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"set_tlm",value:function(e,t,n,i){return this.exec("set_tlm",[e,t,n],{type:i})}},{key:"override_tlm",value:function(e,t,n,i){return this.exec("override_tlm",[e,t,n],{type:i})}},{key:"get_overrides",value:function(){return this.exec("get_overrides")}},{key:"normalize_tlm",value:function(e,t,n,i){return this.exec("normalize_tlm",[e,t,n],{type:i})}},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_command_names",value:function(e){return this.exec("get_all_command_names",[e])}},{key:"get_command",value:function(e,t){return this.exec("get_command",[e,t])}},{key:"get_cmd_cnts",value:function(e){return this.exec("get_cmd_cnts",[e])}},{key:"get_cmd_value",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,t,n,i])}},{key:"get_cmd_buffer",value:function(e,t){return this.exec("get_cmd_buffer",[e,t])}},{key:"_cmd",value:function(e,t,n,i,s){var a=null;for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(a=this.encode_openc3_type(i[r]),null!==a&&(i[r]=a));return this.exec(e,[t,n,i],{},s)}},{key:"get_cmd_hazardous",value:function(e,t,n){return void 0===t?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,t,n)}},{key:"cmd",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return void 0===t?this.exec("cmd",e,{},i):this._cmd("cmd",e,t,n,i)}},{key:"cmd_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,t,n)}},{key:"cmd_raw",value:function(e,t,n){return void 0===t?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,t,n)}},{key:"cmd_raw_no_range_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,t,n)}},{key:"cmd_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,t,n)}},{key:"cmd_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,t,n)}},{key:"cmd_raw_no_hazardous_check",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,t,n)}},{key:"cmd_raw_no_checks",value:function(e,t,n){return void 0===t?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,t,n)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,t){return this.exec("send_raw",[e,t])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,t){return this.exec("load_config",[e,t])}},{key:"save_config",value:function(e,t,n){return this.exec("save_config",[e,t,n])}},{key:"delete_config",value:function(e,t){return this.exec("delete_config",[e,t])}},{key:"enable_limits",value:function(e,t,n){return this.exec("enable_limits",[e,t,n])}},{key:"disable_limits",value:function(e,t,n){return this.exec("disable_limits",[e,t,n])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,t){return this.exec("save_setting",[e,t])}},{key:"get_metrics",value:function(){return this.exec("get_metrics",[])}},{key:"hashString",value:function(){var e=(0,r.Z)((0,s.Z)().mark((function e(t){var n,i,a;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!window.isSecureContext){e.next=7;break}return n=(new TextEncoder).encode(t),e.next=4,crypto.subtle.digest("SHA-256",n);case 4:return i=e.sent,a=new Uint8Array(i),e.abrupt("return",Array.from(a).map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}()},96161:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(15789),_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(49502),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(45794),core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(58188),core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(39529),core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(31235),core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(77950),core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(85940),core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(36728),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_8__),_services_openc3_api__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(48392),_services_api__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16129),_Widget__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(92202);__webpack_exports__["Z"]={mixins:[_Widget__WEBPACK_IMPORTED_MODULE_11__.Z],data:function(){return{api:null,screen:null,displaySendHazardous:!1,lastCmd:""}},computed:{buttonText:function(){return this.parameters[0]},eval:function(){return this.parameters[1]}},created:function(){this.api=new _services_openc3_api__WEBPACK_IMPORTED_MODULE_9__.k},methods:{onClick:function onClick(){var _this=this;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.Z)((0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().mark((function _callee(){var lines,self,screen,api,run_script,runScript,i,result;return(0,_openc3_plugins_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__.Z)().wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:lines=_this.eval.split(";;"),self=_this,screen=_this.screen,api=_this.api,run_script=_this.runScript,runScript=_this.runScript,i=0;case 7:if(!(i<lines.length)){_context.next=28;break}if(result=eval(lines[i].trim()),!(result instanceof Promise)){_context.next=25;break}return _context.prev=10,_context.next=13,result;case 13:_context.next=25;break;case 15:if(_context.prev=15,_context.t0=_context["catch"](10),!_context.t0.message.includes("is Hazardous")){_context.next=25;break}_this.lastCmd=_context.t0.message.split("\n").pop(),_this.displaySendHazardous=!0;case 20:if(!_this.displaySendHazardous){_context.next=25;break}return _context.next=23,new Promise((function(e){return setTimeout(e,500)}));case 23:_context.next=20;break;case 25:i++,_context.next=7;break;case 28:case"end":return _context.stop()}}),_callee,null,[[10,15]])})))()},sendHazardousCmd:function sendHazardousCmd(){this.lastCmd=this.lastCmd.replace("cmd(","this.api.cmd_no_hazardous_check("),eval(this.lastCmd),this.displaySendHazardous=!1},cancelHazardousCmd:function(){this.displaySendHazardous=!1},runScript:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[];for(var s in n)i.push({key:s,value:n[s],readonly:!1});_services_api__WEBPACK_IMPORTED_MODULE_10__.Z.post("/script-api/scripts/".concat(e,"/run"),{data:{environment:i}}).then((function(e){t&&window.open("/tools/scriptrunner/".concat(e.data),"_blank")}))}}}},25387:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return pe}});var i=n(50615);n(43430),n(34769),n(18178);function s(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="9027b0858482cc45e66f3ac7400ed72c457eddff",n=new Function("return this")(),i="__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:2825}},4:{start:{line:1,column:430},end:{line:1,column:452}},5:{start:{line:1,column:686},end:{line:1,column:708}},6:{start:{line:1,column:863},end:{line:1,column:917}},7:{start:{line:1,column:1025},end:{line:1,column:1058}},8:{start:{line:1,column:1206},end:{line:1,column:2051}},9:{start:{line:1,column:1608},end:{line:1,column:1638}},10:{start:{line:1,column:1704},end:{line:1,column:1729}},11:{start:{line:1,column:1763},end:{line:1,column:1791}},12:{start:{line:1,column:1825},end:{line:1,column:1863}},13:{start:{line:1,column:1899},end:{line:1,column:1939}},14:{start:{line:1,column:1972},end:{line:1,column:2009}},15:{start:{line:1,column:2158},end:{line:1,column:2194}},16:{start:{line:1,column:2252},end:{line:1,column:2270}},17:{start:{line:1,column:2409},end:{line:1,column:2445}},18:{start:{line:1,column:2503},end:{line:1,column:2521}},19:{start:{line:1,column:2756},end:{line:1,column:2779}},20:{start:{line:3,column:22},end:{line:3,column:24}}},fnMap:{0:{name:"render",decl:{start:{line:1,column:22},end:{line:1,column:28}},loc:{start:{line:1,column:30},end:{line:2,column:1}},line:1},1:{name:"(anonymous_1)",decl:{start:{line:1,column:414},end:{line:1,column:415}},loc:{start:{line:1,column:429},end:{line:1,column:453}},line:1},2:{name:"(anonymous_2)",decl:{start:{line:1,column:670},end:{line:1,column:671}},loc:{start:{line:1,column:685},end:{line:1,column:709}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:857},end:{line:1,column:858}},loc:{start:{line:1,column:863},end:{line:1,column:917}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:1019},end:{line:1,column:1020}},loc:{start:{line:1,column:1025},end:{line:1,column:1058}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1192},end:{line:1,column:1193}},loc:{start:{line:1,column:1205},end:{line:1,column:2052}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1591},end:{line:1,column:1592}},loc:{start:{line:1,column:1607},end:{line:1,column:1639}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1692},end:{line:1,column:1693}},loc:{start:{line:1,column:1704},end:{line:1,column:1729}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:1746},end:{line:1,column:1747}},loc:{start:{line:1,column:1762},end:{line:1,column:1792}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:1808},end:{line:1,column:1809}},loc:{start:{line:1,column:1824},end:{line:1,column:1864}},line:1},10:{name:"(anonymous_10)",decl:{start:{line:1,column:1882},end:{line:1,column:1883}},loc:{start:{line:1,column:1898},end:{line:1,column:1940}},line:1},11:{name:"(anonymous_11)",decl:{start:{line:1,column:1955},end:{line:1,column:1956}},loc:{start:{line:1,column:1971},end:{line:1,column:2010}},line:1},12:{name:"(anonymous_12)",decl:{start:{line:1,column:2141},end:{line:1,column:2142}},loc:{start:{line:1,column:2157},end:{line:1,column:2195}},line:1},13:{name:"(anonymous_13)",decl:{start:{line:1,column:2236},end:{line:1,column:2237}},loc:{start:{line:1,column:2251},end:{line:1,column:2271}},line:1},14:{name:"(anonymous_14)",decl:{start:{line:1,column:2392},end:{line:1,column:2393}},loc:{start:{line:1,column:2408},end:{line:1,column:2446}},line:1},15:{name:"(anonymous_15)",decl:{start:{line:1,column:2487},end:{line:1,column:2488}},loc:{start:{line:1,column:2502},end:{line:1,column:2522}},line:1},16:{name:"(anonymous_16)",decl:{start:{line:1,column:2740},end:{line:1,column:2741}},loc:{start:{line:1,column:2755},end:{line:1,column:2780}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2057},end:{line:1,column:2307}},type:"cond-expr",locations:[{start:{line:1,column:2074},end:{line:1,column:2298}},{start:{line:1,column:2299},end:{line:1,column:2307}}],line:1},1:{loc:{start:{line:1,column:2308},end:{line:1,column:2558}},type:"cond-expr",locations:[{start:{line:1,column:2325},end:{line:1,column:2549}},{start:{line:1,column:2550},end:{line:1,column:2558}}],line:1},2:{loc:{start:{line:1,column:2559},end:{line:1,column:2821}},type:"cond-expr",locations:[{start:{line:1,column:2581},end:{line:1,column:2812}},{start:{line:1,column:2813},end:{line:1,column:2821}}],line:1}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},b:{0:[0,0],1:[0,0],2:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"9027b0858482cc45e66f3ac7400ed72c457eddff"},r=n[i]||(n[i]={});r[e]&&r[e].hash===t||(r[e]=a);var l=r[e];return s=function(){return l},l}s(),s().s[0]++;var a=function(){s().f[0]++;var e=(s().s[1]++,this),t=(s().s[2]++,e._self._c);return s().s[3]++,t("div",[t("top-bar",{attrs:{title:e.title,menus:e.menus}}),t("v-container",[t("v-row",{staticClass:"pt-1"},[t("v-select",{staticClass:"pa-0 mr-2",attrs:{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){s().f[1]++,s().s[4]++,e.selectedTarget=t},expression:"selectedTarget"}}),t("v-select",{staticClass:"pa-0 mr-3",attrs:{label:"Select Screen",items:e.screens[e.selectedTarget]},on:{change:e.screenSelect},model:{value:e.selectedScreen,callback:function(t){s().f[2]++,s().s[5]++,e.selectedScreen=t},expression:"selectedScreen"}}),t("v-btn",{staticClass:"primary mr-2",attrs:{disabled:!e.selectedScreen,"data-test":"show-screen"},on:{click:function(){return s().f[3]++,s().s[6]++,e.showScreen(e.selectedTarget,e.selectedScreen)}}},[e._v(" Show ")]),t("v-btn",{staticClass:"primary",attrs:{"data-test":"new-screen"},on:{click:function(){return s().f[4]++,s().s[7]++,e.newScreen(e.selectedTarget)}}},[e._v(" New Screen "),t("v-icon",[e._v(" mdi-file-plus")])],1)],1)],1),t("div",{staticClass:"grid"},e._l(e.definitions,(function(n){return s().f[5]++,s().s[8]++,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},on:{"close-screen":function(t){return s().f[6]++,s().s[9]++,e.closeScreen(n.id)},"min-max-screen":e.refreshLayout,"add-new-screen":function(t){return s().f[7]++,s().s[10]++,e.showScreen.apply(e,(0,i.Z)(t))},"delete-screen":function(t){return s().f[8]++,s().s[11]++,e.deleteScreen(n)},"float-screen":function(t){return s().f[9]++,s().s[12]++,e.floatScreen.apply(e,[n].concat((0,i.Z)(t)))},"unfloat-screen":function(t){return s().f[10]++,s().s[13]++,e.unfloatScreen.apply(e,[n].concat((0,i.Z)(t)))},"drag-screen":function(t){return s().f[11]++,s().s[14]++,e.dragScreen.apply(e,[n].concat((0,i.Z)(t)))},"edit-screen":e.refreshLayout}})],1)])})),0),e.openConfig?(s().b[0][0]++,t("open-config-dialog",{attrs:{tool:e.toolName},on:{success:function(t){return s().f[12]++,s().s[15]++,e.openConfiguration(t)}},model:{value:e.openConfig,callback:function(t){s().f[13]++,s().s[16]++,e.openConfig=t},expression:"openConfig"}})):(s().b[0][1]++,e._e()),e.saveConfig?(s().b[1][0]++,t("save-config-dialog",{attrs:{tool:e.toolName},on:{success:function(t){return s().f[14]++,s().s[17]++,e.saveConfiguration(t)}},model:{value:e.saveConfig,callback:function(t){s().f[15]++,s().s[18]++,e.saveConfig=t},expression:"saveConfig"}})):(s().b[1][1]++,e._e()),e.newScreenDialog?(s().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){s().f[16]++,s().s[19]++,e.newScreenDialog=t},expression:"newScreenDialog"}})):(s().b[2][1]++,e._e())],1)},r=(s().s[20]++,[]),l=n(78081),o=n(15789),c=n(49502),u=(n(58188),n(1939),n(36728),n(49228),n(95342),n(74083),n(99805),n(43450),n(28673),n(6886),n(6710),n(16129)),d=n(48392),m=function(){var e=this,t=e._self._c;return t("mounting-portal",{attrs:{"mount-to":"#openc3-menu",append:""}},[t("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(n,i){return t("v-menu",{key:i,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(i){var s=i.on,a=i.attrs;return[t("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT("".concat(e.title," ").concat(n.label))}},"v-btn",a,!1),s),[t("span",{domProps:{textContent:e._s(n.label)}}),t("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[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"):t("v-list-item",{key:s,attrs:{disabled:i.disabled,"data-test":e.formatDT("".concat(e.title," ").concat(n.label," ").concat(i.label))},on:{click:function(e){return i.command(i)}}},[i.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:i.label,value:i.label}})],1):e._e(),i.checkbox?t("v-list-item-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(),i.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:i.disabled}},[e._v(e._s(i.icon))])],1):e._e(),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)})),t("v-spacer"),t("v-toolbar-title",[e._v(e._s(e.title))]),t("v-spacer")],2)])},h=[],p=(n(77950),n(85940),n(71639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}},mounted:function(){"COSMOS "===this.title.substring(0,7)?document.title=this.title.substring(7):document.title=this.title}}),f=p,v=(n(12916),n(23287)),g=(0,v.Z)(f,m,h,!1,null,"2eb37f67",null),_=g.exports,A=function(){var e=this,t=e._self._c;return t("div",{ref:"bar",style:e.computedStyle},[t("v-card",{attrs:{"min-height":e.height,"min-width":e.width}},[t("v-system-bar",[t("div",{directives:[{name:"show",rawName:"v-show",value:0!==e.errors.length,expression:"errors.length !== 0"}]},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v(" mdi-alert ")])],1)]}}])},[t("span",[e._v(" Errors ")])])],1),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"edit-screen-icon"},on:{click:e.openEdit}},[e._v(" mdi-pencil ")])],1)]}}])},[t("span",[e._v(" Edit Screen ")])]),e.fixFloated?e._e():t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"float-screen-icon"},on:{click:e.floatScreen}},[e._v(" "+e._s(e.floated?"mdi-balloon":"mdi-view-grid-outline")+" ")])],1)]}}],null,!1,3870545613)},[t("span",[e._v(" "+e._s(e.floated?"Unfloat Screen":"Float Screen")+" ")])]),e.floated?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"up-screen-icon"},on:{click:e.upScreen}},[e._v(" mdi-arrow-up ")])],1)]}}],null,!1,4034340880)},[t("span",[e._v(" Move Screen Up ")])]):e._e(),e.floated&&e.zIndex>e.minZ?t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"down-screen-icon"},on:{click:e.downScreen}},[e._v(" mdi-arrow-down ")])],1)]}}],null,!1,3846940455)},[t("span",[e._v(" Move Screen Down ")])]):e._e(),t("v-spacer"),t("span",[e._v(e._s(e.target)+" "+e._s(e.screen))]),t("v-spacer"),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[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(" mdi-window-minimize ")]),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(" mdi-window-maximize ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize Screen ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize Screen ")])]),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"close-screen-icon"},on:{click:function(t){return e.$emit("close-screen")}}},[e._v(" mdi-close-box ")])],1)]}}])},[t("span",[e._v(" Close Screen ")])])],1),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"},[t("vertical-widget",e._g({key:e.screenKey,attrs:{widgets:e.layoutStack[0].widgets}},e.$listeners))],1)])],1),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(),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"),t("span",[e._v(" Screen: "+e._s(e.target)+" "+e._s(e.screen)+" Errors ")]),t("v-spacer")],1),t("v-card",{staticClass:"pa-3"},[t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"13",value:e.error}})],1),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1)],1)},w=[],b=(n(71245),n(93244),n(68995),n(13489),n(67789),n(32501),n(63291)),y=n(44091),x=n(23779),C=n.n(x),k=n(96009),S=n.n(k),I=function(){var e=this,t=e._self._c;return t("v-dialog",{attrs:{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(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"delete-screen-icon"},on:{click:e.deleteScreen}},[e._v(" mdi-delete ")])],1)]}}])},[t("span",[e._v(" Delete Screen ")])])],1),t("v-spacer"),t("span",[e._v(" Edit Screen: "+e._s(e.target)+" "+e._s(e.screen)+" ")]),t("v-spacer"),t("div",{staticClass:"mx-2"},[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"download-screen-icon"},on:{click:e.downloadScreen}},[e._v(" mdi-download ")])],1)]}}])},[t("span",[e._v(" Download Screen ")])])],1)],1),t("v-card-text",[t("v-row",{staticClass:"mt-3"},[e._v(" Upload a screen file. ")]),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(" Load ")]),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),t("v-row",[e._v(" Edit the screen definition. ")]),t("v-row",{staticClass:"mb-2"},[t("pre",{ref:"editor",staticClass:"editor"})]),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)}})])})),t("v-row",[t("span",[e._v("Ctrl-space brings up autocomplete")]),t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"edit-screen-cancel"},on:{click:function(t){return e.$emit("cancel")}}},[e._v(" Cancel ")]),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(" Save ")])],1)],2)],1)],1)},N=[],T=(n(17368),n(24471),n(51172),n(88233),n(14121),n(60523),n(95095)),E=(n(71747),n(40419),n(83923),n(72375),n(57871)),M=n(50426),D=n(52261),Z=(0,E.Z)((function e(){var t=this;(0,M.Z)(this,e),(0,D.Z)(this,"getCompletions",(function(e,t,n,s,a){a(null,(0,i.Z)(this.autocompleteData))})),u.Z.get("/openc3-api/autocomplete/data/screen").then((function(e){return t.autocompleteData=e.data}))})),L={props:{value:Boolean,target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return[]}},errors:{type:Array,default:function(){return[]}}},data:function(){return{file:null}},computed:{editErrors:function(){if(""===this.definition&&!this.file)return["Input can not be blank."];if(0!==this.errors.length){var e,t=new Set,n=[],i=(0,l.Z)(this.errors);try{for(i.s();!(e=i.n()).done;){var s=e.value;if(!t.has(s.message)){var a="At ".concat(s.lineNumber,": (").concat(s.line,") ").concat(s.message,".");s.usage&&(a+=" Usage: ".concat(s.usage)),n.push(a),t.add(s.message)}}}catch(r){i.e(r)}finally{i.f()}return n}return[]},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){this.editor=T.edit(this.$refs.editor),this.editor.setTheme("ace/theme/twilight");var 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 Z],this.editor.setHighlightActiveLine(!1),this.editor.setValue(this.definition),this.editor.clearSelection(),this.editor.focus()},beforeDestroy:function(){this.editor.destroy(),this.editor.container.remove()},methods:{buildScreenMode:function(){var e=T.require("ace/lib/oop"),t=T.require("ace/mode/text_highlight_rules").TextHighlightRules,n=this.keywords.join("|"),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*(".concat(n,")\\b"))}]},this.normalizeRules()};e.inherits(i,t);var s=function(){this.HighlightRules=i},a=T.require("ace/mode/text").Mode;return e.inherits(s,a),function(){this.$id="ace/mode/openc3"}.call(s.prototype),s},downloadScreen:function(){var e=new Blob([this.editor.getValue()],{type:"text/plain"}),t=document.createElement("a");t.href=URL.createObjectURL(e),t.setAttribute("download","".concat(this.target,"_").concat(this.screen,".txt")),t.click()},loadFile:function(){var e=new FileReader;e.readAsText(this.file);var t=this;e.onload=function(){t.editor.setValue(e.result),t.file=null}},deleteScreen:function(){var e=this;this.$dialog.confirm("Are you sure you want to delete this screen?!",{okText:"Delete",cancelText:"Cancel"}).then((function(t){e.$emit("delete")}))}}},O=L,W=(n(43290),n(15361),(0,v.Z)(O,I,N,!1,null,"47108c54",null)),V=W.exports,R=n(84910);R.keys().forEach((function(e){var t=R(e),n=C()(S()(e.split("/").pop().replace(/\.\w+$/,"")));y["default"].component(n,t.default||t)}));var P={components:{EditScreenDialog:V},props:{target:{type:String,default:""},screen:{type:String,default:""},definition:{type:String,default:""},keywords:{type:Array,default:function(){return[]}},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}},data:function(){return{api:null,backup:"",currentDefinition:this.definition,editDialog:!1,expand:!0,configParser:null,currentLayout:null,layoutStack:[],namedWidgets:{},dynamicWidgets:[],width:null,height:null,staleTime:30,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:function(e,t){this.currentDefinition=this.definition,this.rerender()}}},computed:{error:function(){if(this.errorDialog&&this.errors.length>0){var e,t=new Set,n="",i=(0,l.Z)(this.errors);try{for(i.s();!(e=i.n()).done;){var s=e.value;if(!t.has(s.message)){var a="".concat(s.time,": (").concat(s.type,") ").concat(s.message,"\n");n+=a,t.add(s.message)}}}catch(r){i.e(r)}finally{i.f()}return n}return null},computedStyle:function(){var e={};return this.floated&&(e["position"]="absolute",e["top"]=this.top+"px",e["left"]=this.left+"px"),e}},errorCaptured:function(e,t,n){return 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:"".concat(e),time:(new Date).getTime()}),!1},created:function(){this.api=new d.k,this.configParser=new b.p,this.parseDefinition(),this.screenKey=Math.floor(1e6*Math.random())},mounted:function(){this.updateRefreshInterval(),this.floated&&(this.$refs.bar.onmousedown=this.dragMouseDown,this.$refs.bar.parentElement.parentElement.style="z-index: "+this.zIndex)},destroyed:function(){null!=this.updater&&(clearInterval(this.updater),this.updater=null)},methods:{open:function(e,t){this.$parent.showScreen(e,t)},close:function(e,t){this.$parent.closeScreenByName(e,t)},closeAll:function(){this.$parent.closeAll()},clearErrors:function(){this.errors=[]},updateRefreshInterval:function(){var e=this,t=1e3*this.pollingPeriod;this.updater&&clearInterval(this.updater),this.updater=setInterval((function(){e.update()}),t)},parseDefinition:function(){var e=this;if(this.errors=[],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,(function(t,n,i,s){var a;if(t)switch(t){case"SCREEN":e.configParser.verify_num_parameters(3,4,"".concat(t," <Width or AUTO> <Height or AUTO> <Polling Period>")),e.width=parseInt(n[0]),e.height=parseInt(n[1]),e.pollingPeriod=parseFloat(n[2]);break;case"END":e.configParser.verify_num_parameters(0,0,"".concat(t)),e.layoutStack.pop(),e.currentLayout=e.layoutStack[e.layoutStack.length-1];break;case"STALE_TIME":e.configParser.verify_num_parameters(1,1,"".concat(t," <Time (s)>")),e.staleTime=parseInt(n[0]);break;case"SETTING":case"SUBSETTING":var r=null!==(a=e.currentLayout.widgets[e.currentLayout.widgets.length-1])&&void 0!==a?a:e.currentLayout;r.settings.push(n);break;case"GLOBAL_SETTING":case"GLOBAL_SUBSETTING":e.globalSettings.push(n);break;default:e.processWidget(t,n,i,s);break}})),"undefined"===typeof this.layoutStack[0]){var t,n=[],i=[],s=(0,l.Z)(this.dynamicWidgets);try{for(s.s();!(t=s.n()).done;){var a=t.value;n.push(a.name),i.push(a.lineNumber)}}catch(r){s.e(r)}finally{s.f()}this.errors.push({type:"usage",message:"Unknown widget! Are these widgets: ".concat(n.join(","),"?"),lineNumber:i.join(","),time:(new Date).getTime()}),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{var 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();var 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(){u.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:this.target,screen:this.screen,text:this.currentDefinition}},0)}))},deleteScreen:function(){var e=this;this.editDialog=!1,u.Z["delete"]("/openc3-api/screen/".concat(this.target,"/").concat(this.screen)).then((function(t){e.$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,"".concat(e," <Widget Name> <Widget Type> <Widget Settings... (optional)>")),s=t[0].toUpperCase(),e=t[1].toUpperCase(),t=t.slice(2,t.length));var a=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()+"Widget",r=[];if(null!==s&&r.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){var l={type:a,parameters:t,settings:r,widgets:[]};this.layoutStack.push(l),this.currentLayout.widgets.push(l),this.currentLayout=l}else if(r.push(["__SCREEN__",this]),y["default"].options.components[a])this.currentLayout.widgets.push({type:a,target:this.target,parameters:t,settings:r,line:n,lineNumber:i});else{var o={type:"DynamicWidget",target:this.target,parameters:t,settings:r,name:a,line:n,lineNumber:i};this.currentLayout.widgets.push(o),this.dynamicWidgets.push(o)}},applyGlobalSettings:function(e){var t=this;this.globalSettings.forEach((function(n){e.forEach((function(e){e.type.toLowerCase()===n[0].toLowerCase()+"widget"&&e.settings.push(n.slice(1)),e.widgets&&t.applyGlobalSettings(e.widgets)}))}))},update:function(){var e=this;0!==this.screenItems.length&&0===this.errors.length&&this.api.get_tlm_values(this.screenItems,this.staleTime).then((function(t){e.updateValues(t)})).catch((function(t){e.errors.push({type:"usage",message:t.message,time:(new Date).getTime()})}))},updateValues:function(e){this.updateCounter+=1;for(var t=0;t<e.length;t++)e[t].push(this.updateCounter),y["default"].set(this.screenValues,this.screenItems[t],e[t])},addItem:function(e){this.screenItems.push(e),y["default"].set(this.screenValues,e,[null,null,0])},deleteItem:function(e){var t=this.screenItems.indexOf(e);this.screenItems.splice(t,1)}}},z=P,H=(n(95692),(0,v.Z)(z,A,w,!1,null,"a491b21e",null)),U=H.exports;function G(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="e135ccf4af0072f972d2dc566276f9a92e5aa88a",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:2519}},4:{start:{line:1,column:153},end:{line:1,column:165}},5:{start:{line:1,column:388},end:{line:1,column:585}},6:{start:{line:1,column:532},end:{line:1,column:548}},7:{start:{line:1,column:806},end:{line:1,column:834}},8:{start:{line:1,column:1190},end:{line:1,column:1212}},9:{start:{line:1,column:1697},end:{line:1,column:1723}},10:{start:{line:1,column:1976},end:{line:1,column:2009}},11:{start:{line:1,column:2070},end:{line:1,column:2091}},12:{start:{line:1,column:2466},end:{line:1,column:2482}},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:364},end:{line:1,column:365}},loc:{start:{line:1,column:387},end:{line:1,column:586}},line:1},3:{name:"(anonymous_3)",decl:{start:{line:1,column:515},end:{line:1,column:516}},loc:{start:{line:1,column:531},end:{line:1,column:549}},line:1},4:{name:"(anonymous_4)",decl:{start:{line:1,column:790},end:{line:1,column:791}},loc:{start:{line:1,column:805},end:{line:1,column:835}},line:1},5:{name:"(anonymous_5)",decl:{start:{line:1,column:1174},end:{line:1,column:1175}},loc:{start:{line:1,column:1189},end:{line:1,column:1213}},line:1},6:{name:"(anonymous_6)",decl:{start:{line:1,column:1681},end:{line:1,column:1682}},loc:{start:{line:1,column:1696},end:{line:1,column:1724}},line:1},7:{name:"(anonymous_7)",decl:{start:{line:1,column:1959},end:{line:1,column:1960}},loc:{start:{line:1,column:1975},end:{line:1,column:2010}},line:1},8:{name:"(anonymous_8)",decl:{start:{line:1,column:2054},end:{line:1,column:2055}},loc:{start:{line:1,column:2069},end:{line:1,column:2092}},line:1},9:{name:"(anonymous_9)",decl:{start:{line:1,column:2449},end:{line:1,column:2450}},loc:{start:{line:1,column:2465},end:{line:1,column:2483}},line:1}},branchMap:{0:{loc:{start:{line:1,column:2123},end:{line:1,column:2261}},type:"cond-expr",locations:[{start:{line:1,column:2145},end:{line:1,column:2252}},{start:{line:1,column:2253},end:{line:1,column:2261}}],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:"e135ccf4af0072f972d2dc566276f9a92e5aa88a"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var r=a[e];return G=function(){return r},r}G(),G().s[0]++;var $=function(){G().f[0]++;var e=(G().s[1]++,this),t=(G().s[2]++,e._self._c);return G().s[3]++,t("v-dialog",{attrs:{width:"600"},model:{value:e.show,callback:function(t){G().f[1]++,G().s[4]++,e.show=t},expression:"show"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Create New Screen")]),t("v-spacer"),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return G().f[2]++,G().s[5]++,[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"new-screen-close-icon"},on:{click:function(t){G().f[3]++,G().s[6]++,e.show=!1}}},[e._v(" mdi-close-box ")])],1)]}}])},[t("span",[e._v("Close")])])],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-alert",{attrs:{type:"error",dismissible:"",dense:""},model:{value:e.duplicateScreenAlert,callback:function(t){G().f[4]++,G().s[7]++,e.duplicateScreenAlert=t},expression:"duplicateScreenAlert"}},[e._v(" Screen "+e._s(e.newScreenName.toUpperCase())+" already exists! ")]),t("v-row",{staticClass:"pt-2 pb-2"},[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){G().f[5]++,G().s[8]++,e.selectedTarget=t},expression:"selectedTarget"}})],1),t("v-row",{staticClass:"pt-2 pb-2"},[t("span",[e._v("Existing Screens: "+e._s(e.existingScreens))])]),t("v-row",{staticClass:"pt-2 pb-2"},[t("v-autocomplete",{attrs:{label:"Select to base new screen on 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){G().f[6]++,G().s[9]++,e.selectedPacketName=t},expression:"selectedPacketName"}})],1),t("v-row",[t("v-text-field",{attrs:{flat:"",autofocus:"","solo-inverted":"","hide-details":"",clearable:"",label:"Screen Name (without .txt)","data-test":"new-screen-name"},on:{keyup:function(t){return G().f[7]++,G().s[10]++,e.newScreenKeyup(t)}},model:{value:e.newScreenName,callback:function(t){G().f[8]++,G().s[11]++,e.newScreenName=t},expression:"newScreenName"}}),e.newScreenSaving?(G().b[0][0]++,t("div",{staticClass:"pl-2"},[t("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1)):(G().b[0][1]++,e._e())],1)],1)]),t("v-divider"),t("v-card-actions",[t("v-btn",{attrs:{color:"primary",text:""},on:{click:e.saveNewScreen}},[e._v(" Ok ")]),t("v-btn",{attrs:{text:""},on:{click:function(t){G().f[9]++,G().s[12]++,e.show=!1}}},[e._v(" Cancel ")])],1)],1)],1)},B=(G().s[13]++,[]);n(1951);function j(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/NewScreenDialog.vue",t="1f3afa5d8eab560fc402cbf25543bd1e397da152",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:24,column:5}},1:{start:{line:27,column:4},end:{line:27,column:30}},2:{start:{line:28,column:4},end:{line:28,column:37}},3:{start:{line:29,column:4},end:{line:29,column:32}},4:{start:{line:30,column:4},end:{line:30,column:37}},5:{start:{line:31,column:4},end:{line:35,column:8}},6:{start:{line:34,column:8},end:{line:34,column:67}},7:{start:{line:34,column:48},end:{line:34,column:66}},8:{start:{line:36,column:4},end:{line:36,column:42}},9:{start:{line:41,column:8},end:{line:41,column:25}},10:{start:{line:44,column:8},end:{line:44,column:34}},11:{start:{line:48,column:6},end:{line:52,column:7}},12:{start:{line:49,column:8},end:{line:49,column:59}},13:{start:{line:51,column:8},end:{line:51,column:21}},14:{start:{line:57,column:6},end:{line:57,column:34}},15:{start:{line:58,column:6},end:{line:69,column:8}},16:{start:{line:59,column:8},end:{line:64,column:10}},17:{start:{line:60,column:10},end:{line:63,column:11}},18:{start:{line:65,column:8},end:{line:68,column:10}},19:{start:{line:72,column:6},end:{line:87,column:7}},20:{start:{line:73,column:8},end:{line:73,column:31}},21:{start:{line:74,column:8},end:{line:74,column:41}},22:{start:{line:76,column:8},end:{line:76,column:48}},23:{start:{line:77,column:8},end:{line:86,column:9}},24:{start:{line:83,column:10},end:{line:83,column:42}},25:{start:{line:85,column:10},end:{line:85,column:43}},26:{start:{line:90,column:6},end:{line:102,column:7}},27:{start:{line:96,column:8},end:{line:96,column:40}},28:{start:{line:98,column:8},end:{line:98,column:41}},29:{start:{line:99,column:8},end:{line:101,column:9}},30:{start:{line:100,column:10},end:{line:100,column:30}},31:{start:{line:105,column:6},end:{line:105,column:33}},32:{start:{line:106,column:6},end:{line:111,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:25,column:3}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:12},end:{line:37,column:3}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:33,column:12},end:{line:33,column:13}},loc:{start:{line:33,column:25},end:{line:35,column:7}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:34,column:38},end:{line:34,column:39}},loc:{start:{line:34,column:48},end:{line:34,column:66}},line:34},4:{name:"(anonymous_4)",decl:{start:{line:40,column:6},end:{line:40,column:7}},loc:{start:{line:40,column:12},end:{line:42,column:7}},line:40},5:{name:"(anonymous_5)",decl:{start:{line:43,column:6},end:{line:43,column:7}},loc:{start:{line:43,column:17},end:{line:45,column:7}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:47,column:4},end:{line:47,column:5}},loc:{start:{line:47,column:22},end:{line:53,column:5}},line:47},7:{name:"(anonymous_7)",decl:{start:{line:56,column:4},end:{line:56,column:5}},loc:{start:{line:56,column:25},end:{line:70,column:5}},line:56},8:{name:"(anonymous_8)",decl:{start:{line:58,column:65},end:{line:58,column:66}},loc:{start:{line:58,column:76},end:{line:69,column:7}},line:58},9:{name:"(anonymous_9)",decl:{start:{line:59,column:37},end:{line:59,column:38}},loc:{start:{line:59,column:47},end:{line:64,column:9}},line:59},10:{name:"(anonymous_10)",decl:{start:{line:71,column:4},end:{line:71,column:5}},loc:{start:{line:71,column:29},end:{line:88,column:5}},line:71},11:{name:"(anonymous_11)",decl:{start:{line:89,column:4},end:{line:89,column:5}},loc:{start:{line:89,column:26},end:{line:103,column:5}},line:89},12:{name:"(anonymous_12)",decl:{start:{line:104,column:4},end:{line:104,column:5}},loc:{start:{line:104,column:20},end:{line:112,column:5}},line:104}},branchMap:{0:{loc:{start:{line:48,column:6},end:{line:52,column:7}},type:"if",locations:[{start:{line:48,column:6},end:{line:52,column:7}},{start:{line:50,column:13},end:{line:52,column:7}}],line:48},1:{loc:{start:{line:72,column:6},end:{line:87,column:7}},type:"if",locations:[{start:{line:72,column:6},end:{line:87,column:7}},{start:{line:75,column:13},end:{line:87,column:7}}],line:72},2:{loc:{start:{line:77,column:8},end:{line:86,column:9}},type:"if",locations:[{start:{line:77,column:8},end:{line:86,column:9}},{start:{line:84,column:15},end:{line:86,column:9}}],line:77},3:{loc:{start:{line:78,column:10},end:{line:81,column:18}},type:"binary-expr",locations:[{start:{line:78,column:10},end:{line:78,column:43}},{start:{line:79,column:10},end:{line:81,column:18}}],line:78},4:{loc:{start:{line:90,column:6},end:{line:102,column:7}},type:"if",locations:[{start:{line:90,column:6},end:{line:102,column:7}},{start:{line:97,column:13},end:{line:102,column:7}}],line:90},5:{loc:{start:{line:91,column:8},end:{line:94,column:16}},type:"binary-expr",locations:[{start:{line:91,column:8},end:{line:91,column:41}},{start:{line:92,column:8},end:{line:94,column:16}}],line:91},6:{loc:{start:{line:99,column:8},end:{line:101,column:9}},type:"if",locations:[{start:{line:99,column:8},end:{line:101,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:99}},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},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},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},inputSourceMap:{version:3,sources:["NewScreenDialog.vue"],names:[],mappings:";AAsGA;;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",file:"NewScreenDialog.vue",sourceRoot:"src/tools/TlmViewer",sourcesContent:['\x3c!--\n# Copyright 2022 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 \x3c!-- <v-card-title> Create New Screen </v-card-title> --\x3e\n <v-card-text>\n <div class="pa-3">\n <v-alert\n v-model="duplicateScreenAlert"\n type="error"\n dismissible\n dense\n >\n Screen {{ newScreenName.toUpperCase() }} already exists!\n </v-alert>\n <v-row class="pt-2 pb-2">\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"\n /></v-row>\n\n <v-row class="pt-2 pb-2">\n <span>Existing Screens: {{ existingScreens }}</span>\n </v-row>\n <v-row class="pt-2 pb-2">\n <v-autocomplete\n label="Select to base new screen on 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 />\n </v-row>\n <v-row>\n <v-text-field\n v-model="newScreenName"\n flat\n autofocus\n solo-inverted\n hide-details\n clearable\n label="Screen Name (without .txt)"\n data-test="new-screen-name"\n @keyup="newScreenKeyup($event)"\n />\n <div class="pl-2" v-if="newScreenSaving">\n <v-progress-circular indeterminate color="primary" />\n </div>\n </v-row>\n </div>\n </v-card-text>\n <v-divider />\n <v-card-actions>\n <v-btn color="primary" text @click="saveNewScreen"> Ok </v-btn>\n <v-btn text @click="show = false"> Cancel </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 }\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_list({ 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_telemetry_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 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']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1f3afa5d8eab560fc402cbf25543bd1e397da152"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var r=a[e];return j=function(){return r},r}j();var F={props:{value:Boolean,target:{type:String},screens:{type:Object}},data:function(){return j().f[0]++,j().s[0]++,{api:null,targets:[],newScreenSaving:!1,newScreenName:"",duplicateScreenAlert:!1,packetNames:[],selectedTarget:"",selectedPacketName:""}},created:function(){var e=this;j().f[1]++,j().s[1]++,this.api=new d.k,j().s[2]++,this.duplicateScreenAlert=!1,j().s[3]++,this.newScreenSaving=!1,j().s[4]++,this.selectedTarget=this.target,j().s[5]++,this.api.get_target_list({params:{scope:window.openc3Scope}}).then((function(t){j().f[2]++,j().s[6]++,e.targets=t.filter((function(e){return j().f[3]++,j().s[7]++,"UNKNOWN"!==e}))})),j().s[8]++,this.targetSelect(this.selectedTarget)},computed:{show:{get:function(){return j().f[4]++,j().s[9]++,this.value},set:function(e){j().f[5]++,j().s[10]++,this.$emit("input",e)}},existingScreens:function(){return j().f[6]++,j().s[11]++,this.screens[this.selectedTarget]?(j().b[0][0]++,j().s[12]++,this.screens[this.selectedTarget].join(", ")):(j().b[0][1]++,j().s[13]++,"None")}},methods:{targetSelect:function(e){var t=this;j().f[7]++,j().s[14]++,this.selectedTarget=e,j().s[15]++,this.api.get_all_telemetry_names(this.selectedTarget).then((function(e){j().f[8]++,j().s[16]++,t.packetNames=e.map((function(e){return j().f[9]++,j().s[17]++,{label:e,value:e}})),j().s[18]++,t.packetNames.unshift({label:"[ BLANK ]",value:"BLANK"})}))},packetNameChanged:function(e){j().f[10]++,j().s[19]++,"BLANK"===e?(j().b[1][0]++,j().s[20]++,this.newScreenName="",j().s[21]++,this.duplicateScreenAlert=!1):(j().b[1][1]++,j().s[22]++,this.newScreenName=e.toLowerCase(),j().s[23]++,j().b[3][0]++,this.screens[this.selectedTarget]&&(j().b[3][1]++,-1!==this.screens[this.selectedTarget].indexOf(this.newScreenName.toUpperCase()))?(j().b[2][0]++,j().s[24]++,this.duplicateScreenAlert=!0):(j().b[2][1]++,j().s[25]++,this.duplicateScreenAlert=!1))},newScreenKeyup:function(e){j().f[11]++,j().s[26]++,j().b[5][0]++,this.screens[this.selectedTarget]&&(j().b[5][1]++,-1!==this.screens[this.selectedTarget].indexOf(this.newScreenName.toUpperCase()))?(j().b[4][0]++,j().s[27]++,this.duplicateScreenAlert=!0):(j().b[4][1]++,j().s[28]++,this.duplicateScreenAlert=!1,j().s[29]++,"Enter"===e.key?(j().b[6][0]++,j().s[30]++,this.saveNewScreen()):j().b[6][1]++)},saveNewScreen:function(){j().f[12]++,j().s[31]++,this.newScreenSaving=!0,j().s[32]++,this.$emit("success",this.newScreenName.toUpperCase(),this.selectedPacketName,this.selectedTarget)}}},Y=F,K=(0,v.Z)(Y,$,B,!1,null,null,null),q=K.exports,X=(n(94908),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"),t("span",[e._v("Open Configuration")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),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":function(e,t){return t.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(t){return e.deleteConfig(i)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),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)]),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:"","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")]),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(" Ok ")])],1)],1)])],1)}),J=[],Q={props:{tool:String,value:Boolean},data:function(){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:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new d.k).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to OpenC3. ".concat(t))}))},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){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.selectedItem.config===e.config&&(t.selectedItem=null),t.configs.splice(t.configs.indexOf(e),1),(new d.k).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}},ee=Q,te=(0,v.Z)(ee,X,J,!1,null,"4e3dcaac",null),ne=te.exports,ie=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"),t("span",[e._v("Save Configuration")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),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":function(e,t){return t.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var i=n.item;return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(t){return e.deleteConfig(i)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),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),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)]),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),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(" Ok ")])],1)],1)])],1)},se=[],ae={props:{tool:String,value:Boolean},data:function(){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:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,t=-1;(new d.k).list_configs(this.tool).then((function(n){e.configs=n.map((function(e){return t+=1,{configId:t,config:e}}))})).catch((function(t){e.$emit("warning","Failed to connect to OpenC3. ".concat(t))}))},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){var t=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(n){t.configName===e.config&&(t.selectedItem=null,t.configName=""),t.configs.splice(t.configs.indexOf(e.config),1),(new d.k).delete_config(t.tool,e.config)})).catch((function(n){n&&t.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(n))}))}}},re=ae,le=(0,v.Z)(re,ie,se,!1,null,null,null),oe=le.exports,ce=n(87955);function ue(){var e="/openc3/plugins/packages/openc3-cosmos-tool-tlmviewer/src/tools/TlmViewer/TlmViewer.vue",t="0ffa1cbe36991c8f64a9cf8e0b168021901cdcf1",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:20,column:4},end:{line:55,column:5}},1:{start:{line:39,column:16},end:{line:39,column:38}},2:{start:{line:46,column:16},end:{line:46,column:38}},3:{start:{line:59,column:4},end:{line:59,column:30}},4:{start:{line:60,column:4},end:{line:60,column:36}},5:{start:{line:61,column:4},end:{line:73,column:6}},6:{start:{line:62,column:6},end:{line:69,column:8}},7:{start:{line:63,column:20},end:{line:63,column:39}},8:{start:{line:64,column:8},end:{line:67,column:9}},9:{start:{line:66,column:10},end:{line:66,column:47}},10:{start:{line:68,column:8},end:{line:68,column:73}},11:{start:{line:70,column:6},end:{line:72,column:7}},12:{start:{line:71,column:8},end:{line:71,column:58}},13:{start:{line:74,column:4},end:{line:76,column:6}},14:{start:{line:75,column:6},end:{line:75,column:35}},15:{start:{line:79,column:4},end:{line:83,column:6}},16:{start:{line:84,column:4},end:{line:84,column:47}},17:{start:{line:88,column:6},end:{line:88,column:34}},18:{start:{line:89,column:6},end:{line:89,column:30}},19:{start:{line:92,column:6},end:{line:92,column:34}},20:{start:{line:93,column:6},end:{line:93,column:63}},21:{start:{line:96,column:6},end:{line:96,column:33}},22:{start:{line:99,column:17},end:{line:99,column:41}},23:{start:{line:100,column:6},end:{line:110,column:7}},24:{start:{line:101,column:8},end:{line:101,column:30}},25:{start:{line:102,column:8},end:{line:107,column:10}},26:{start:{line:103,column:10},end:{line:105,column:12}},27:{start:{line:104,column:12},end:{line:104,column:77}},28:{start:{line:106,column:10},end:{line:106,column:25}},29:{start:{line:109,column:8},end:{line:109,column:31}},30:{start:{line:111,column:6},end:{line:129,column:8}},31:{start:{line:119,column:8},end:{line:119,column:36}},32:{start:{line:120,column:8},end:{line:123,column:9}},33:{start:{line:122,column:10},end:{line:122,column:49}},34:{start:{line:124,column:8},end:{line:124,column:49}},35:{start:{line:125,column:8},end:{line:125,column:39}},36:{start:{line:126,column:8},end:{line:126,column:40}},37:{start:{line:127,column:8},end:{line:127,column:40}},38:{start:{line:128,column:8},end:{line:128,column:47}},39:{start:{line:132,column:18},end:{line:134,column:7}},40:{start:{line:133,column:17},end:{line:133,column:61}},41:{start:{line:135,column:6},end:{line:148,column:7}},42:{start:{line:136,column:8},end:{line:147,column:10}},43:{start:{line:137,column:10},end:{line:146,column:12}},44:{start:{line:151,column:6},end:{line:155,column:8}},45:{start:{line:158,column:6},end:{line:158,column:39}},46:{start:{line:159,column:6},end:{line:170,column:8}},47:{start:{line:160,column:8},end:{line:169,column:9}},48:{start:{line:161,column:22},end:{line:166,column:11}},49:{start:{line:167,column:10},end:{line:167,column:31}},50:{start:{line:168,column:10},end:{line:168,column:43}},51:{start:{line:173,column:18},end:{line:175,column:7}},52:{start:{line:174,column:17},end:{line:174,column:61}},53:{start:{line:176,column:6},end:{line:178,column:7}},54:{start:{line:177,column:8},end:{line:177,column:32}},55:{start:{line:181,column:6},end:{line:183,column:7}},56:{start:{line:182,column:8},end:{line:182,column:32}},57:{start:{line:186,column:18},end:{line:188,column:8}},58:{start:{line:189,column:6},end:{line:189,column:29}},59:{start:{line:190,column:6},end:{line:190,column:39}},60:{start:{line:191,column:6},end:{line:193,column:8}},61:{start:{line:192,column:8},end:{line:192,column:29}},62:{start:{line:196,column:6},end:{line:196,column:30}},63:{start:{line:197,column:18},end:{line:197,column:62}},64:{start:{line:198,column:6},end:{line:204,column:7}},65:{start:{line:199,column:8},end:{line:199,column:49}},66:{start:{line:200,column:8},end:{line:203,column:9}},67:{start:{line:202,column:10},end:{line:202,column:48}},68:{start:{line:207,column:6},end:{line:207,column:34}},69:{start:{line:208,column:6},end:{line:208,column:26}},70:{start:{line:209,column:6},end:{line:209,column:28}},71:{start:{line:210,column:6},end:{line:210,column:32}},72:{start:{line:211,column:18},end:{line:213,column:8}},73:{start:{line:214,column:6},end:{line:214,column:29}},74:{start:{line:215,column:6},end:{line:215,column:39}},75:{start:{line:218,column:6},end:{line:218,column:34}},76:{start:{line:219,column:6},end:{line:219,column:26}},77:{start:{line:220,column:6},end:{line:220,column:28}},78:{start:{line:221,column:6},end:{line:221,column:32}},79:{start:{line:222,column:18},end:{line:222,column:73}},80:{start:{line:223,column:6},end:{line:223,column:26}},81:{start:{line:224,column:6},end:{line:224,column:39}},82:{start:{line:227,column:6},end:{line:227,column:34}},83:{start:{line:228,column:6},end:{line:228,column:26}},84:{start:{line:229,column:6},end:{line:229,column:28}},85:{start:{line:230,column:6},end:{line:230,column:32}},86:{start:{line:233,column:6},end:{line:235,column:13}},87:{start:{line:234,column:8},end:{line:234,column:41}},88:{start:{line:238,column:6},end:{line:238,column:35}},89:{start:{line:241,column:6},end:{line:241,column:22}},90:{start:{line:242,column:6},end:{line:242,column:27}},91:{start:{line:243,column:27},end:{line:243,column:74}},92:{start:{line:244,column:6},end:{line:280,column:7}},93:{start:{line:245,column:23},end:{line:245,column:49}},94:{start:{line:247,column:35},end:{line:249,column:10}},95:{start:{line:248,column:10},end:{line:248,column:70}},96:{start:{line:251,column:8},end:{line:279,column:12}},97:{start:{line:254,column:12},end:{line:275,column:14}},98:{start:{line:255,column:31},end:{line:255,column:47}},99:{start:{line:256,column:14},end:{line:274,column:19}},100:{start:{line:257,column:30},end:{line:257,column:48}},101:{start:{line:258,column:16},end:{line:260,column:17}},102:{start:{line:259,column:18},end:{line:259,column:33}},103:{start:{line:261,column:26},end:{line:261,column:45}},104:{start:{line:262,column:27},end:{line:262,column:47}},105:{start:{line:263,column:29},end:{line:263,column:51}},106:{start:{line:264,column:16},end:{line:273,column:18}},107:{start:{line:278,column:12},end:{line:278,column:45}},108:{start:{line:283,column:24},end:{line:283,column:80}},109:{start:{line:283,column:59},end:{line:283,column:79}},110:{start:{line:284,column:21},end:{line:301,column:10}},111:{start:{line:287,column:10},end:{line:290,column:15}},112:{start:{line:293,column:10},end:{line:300,column:11}},113:{start:{line:302,column:6},end:{line:302,column:71}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:19,column:2},end:{line:19,column:3}},loc:{start:{line:19,column:9},end:{line:56,column:3}},line:19},1:{name:"(anonymous_1)",decl:{start:{line:38,column:23},end:{line:38,column:24}},loc:{start:{line:38,column:29},end:{line:40,column:15}},line:38},2:{name:"(anonymous_2)",decl:{start:{line:45,column:23},end:{line:45,column:24}},loc:{start:{line:45,column:29},end:{line:47,column:15}},line:45},3:{name:"(anonymous_3)",decl:{start:{line:57,column:2},end:{line:57,column:3}},loc:{start:{line:57,column:12},end:{line:77,column:3}},line:57},4:{name:"(anonymous_4)",decl:{start:{line:61,column:40},end:{line:61,column:41}},loc:{start:{line:61,column:54},end:{line:73,column:5}},line:61},5:{name:"(anonymous_5)",decl:{start:{line:62,column:28},end:{line:62,column:29}},loc:{start:{line:62,column:42},end:{line:69,column:7}},line:62},6:{name:"(anonymous_6)",decl:{start:{line:74,column:61},end:{line:74,column:62}},loc:{start:{line:74,column:75},end:{line:76,column:5}},line:74},7:{name:"(anonymous_7)",decl:{start:{line:78,column:2},end:{line:78,column:3}},loc:{start:{line:78,column:12},end:{line:85,column:3}},line:78},8:{name:"(anonymous_8)",decl:{start:{line:87,column:4},end:{line:87,column:5}},loc:{start:{line:87,column:25},end:{line:90,column:5}},line:87},9:{name:"(anonymous_9)",decl:{start:{line:91,column:4},end:{line:91,column:5}},loc:{start:{line:91,column:25},end:{line:94,column:5}},line:91},10:{name:"(anonymous_10)",decl:{start:{line:95,column:4},end:{line:95,column:5}},loc:{start:{line:95,column:16},end:{line:97,column:5}},line:95},11:{name:"(anonymous_11)",decl:{start:{line:98,column:4},end:{line:98,column:5}},loc:{start:{line:98,column:60},end:{line:130,column:5}},line:98},12:{name:"(anonymous_12)",decl:{start:{line:102,column:66},end:{line:102,column:67}},loc:{start:{line:102,column:78},end:{line:107,column:9}},line:102},13:{name:"(anonymous_13)",decl:{start:{line:103,column:31},end:{line:103,column:32}},loc:{start:{line:103,column:41},end:{line:105,column:11}},line:103},14:{name:"(anonymous_14)",decl:{start:{line:118,column:14},end:{line:118,column:15}},loc:{start:{line:118,column:28},end:{line:129,column:7}},line:118},15:{name:"(anonymous_15)",decl:{start:{line:131,column:4},end:{line:131,column:5}},loc:{start:{line:131,column:31},end:{line:149,column:5}},line:131},16:{name:"(anonymous_16)",decl:{start:{line:133,column:8},end:{line:133,column:9}},loc:{start:{line:133,column:17},end:{line:133,column:61}},line:133},17:{name:"(anonymous_17)",decl:{start:{line:136,column:45},end:{line:136,column:46}},loc:{start:{line:136,column:59},end:{line:147,column:9}},line:136},18:{name:"(anonymous_18)",decl:{start:{line:150,column:4},end:{line:150,column:5}},loc:{start:{line:150,column:31},end:{line:156,column:5}},line:150},19:{name:"(anonymous_19)",decl:{start:{line:157,column:4},end:{line:157,column:5}},loc:{start:{line:157,column:27},end:{line:171,column:5}},line:157},20:{name:"(anonymous_20)",decl:{start:{line:159,column:21},end:{line:159,column:22}},loc:{start:{line:159,column:33},end:{line:170,column:7}},line:159},21:{name:"(anonymous_21)",decl:{start:{line:172,column:4},end:{line:172,column:5}},loc:{start:{line:172,column:38},end:{line:179,column:5}},line:172},22:{name:"(anonymous_22)",decl:{start:{line:174,column:8},end:{line:174,column:9}},loc:{start:{line:174,column:17},end:{line:174,column:61}},line:174},23:{name:"(anonymous_23)",decl:{start:{line:180,column:4},end:{line:180,column:5}},loc:{start:{line:180,column:15},end:{line:184,column:5}},line:180},24:{name:"(anonymous_24)",decl:{start:{line:185,column:4},end:{line:185,column:5}},loc:{start:{line:185,column:20},end:{line:194,column:5}},line:185},25:{name:"(anonymous_25)",decl:{start:{line:191,column:49},end:{line:191,column:50}},loc:{start:{line:191,column:72},end:{line:193,column:7}},line:191},26:{name:"(anonymous_26)",decl:{start:{line:195,column:4},end:{line:195,column:5}},loc:{start:{line:195,column:22},end:{line:205,column:5}},line:195},27:{name:"(anonymous_27)",decl:{start:{line:206,column:4},end:{line:206,column:5}},loc:{start:{line:206,column:56},end:{line:216,column:5}},line:206},28:{name:"(anonymous_28)",decl:{start:{line:217,column:4},end:{line:217,column:5}},loc:{start:{line:217,column:58},end:{line:225,column:5}},line:217},29:{name:"(anonymous_29)",decl:{start:{line:226,column:4},end:{line:226,column:5}},loc:{start:{line:226,column:55},end:{line:231,column:5}},line:226},30:{name:"(anonymous_30)",decl:{start:{line:232,column:4},end:{line:232,column:5}},loc:{start:{line:232,column:20},end:{line:236,column:5}},line:232},31:{name:"(anonymous_31)",decl:{start:{line:233,column:17},end:{line:233,column:18}},loc:{start:{line:233,column:23},end:{line:235,column:7}},line:233},32:{name:"(anonymous_32)",decl:{start:{line:237,column:4},end:{line:237,column:5}},loc:{start:{line:237,column:17},end:{line:239,column:5}},line:237},33:{name:"(anonymous_33)",decl:{start:{line:240,column:23},end:{line:240,column:24}},loc:{start:{line:240,column:45},end:{line:281,column:5}},line:240},34:{name:"(anonymous_34)",decl:{start:{line:247,column:46},end:{line:247,column:47}},loc:{start:{line:247,column:62},end:{line:249,column:9}},line:247},35:{name:"(anonymous_35)",decl:{start:{line:252,column:16},end:{line:252,column:17}},loc:{start:{line:252,column:31},end:{line:276,column:11}},line:252},36:{name:"(anonymous_36)",decl:{start:{line:254,column:27},end:{line:254,column:28}},loc:{start:{line:254,column:50},end:{line:275,column:13}},line:254},37:{name:"(anonymous_37)",decl:{start:{line:256,column:25},end:{line:256,column:26}},loc:{start:{line:256,column:31},end:{line:274,column:15}},line:256},38:{name:"(anonymous_38)",decl:{start:{line:277,column:16},end:{line:277,column:17}},loc:{start:{line:277,column:22},end:{line:279,column:11}},line:277},39:{name:"(anonymous_39)",decl:{start:{line:282,column:23},end:{line:282,column:24}},loc:{start:{line:282,column:39},end:{line:303,column:5}},line:282},40:{name:"(anonymous_40)",decl:{start:{line:283,column:49},end:{line:283,column:50}},loc:{start:{line:283,column:59},end:{line:283,column:79}},line:283},41:{name:"(anonymous_41)",decl:{start:{line:285,column:14},end:{line:285,column:15}},loc:{start:{line:285,column:24},end:{line:291,column:9}},line:285},42:{name:"(anonymous_42)",decl:{start:{line:292,column:13},end:{line:292,column:14}},loc:{start:{line:292,column:22},end:{line:301,column:9}},line:292}},branchMap:{0:{loc:{start:{line:64,column:8},end:{line:67,column:9}},type:"if",locations:[{start:{line:64,column:8},end:{line:67,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:64},1:{loc:{start:{line:70,column:6},end:{line:72,column:7}},type:"if",locations:[{start:{line:70,column:6},end:{line:72,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:70},2:{loc:{start:{line:100,column:6},end:{line:110,column:7}},type:"if",locations:[{start:{line:100,column:6},end:{line:110,column:7}},{start:{line:108,column:13},end:{line:110,column:7}}],line:100},3:{loc:{start:{line:100,column:10},end:{line:100,column:46}},type:"binary-expr",locations:[{start:{line:100,column:10},end:{line:100,column:20}},{start:{line:100,column:24},end:{line:100,column:46}}],line:100},4:{loc:{start:{line:120,column:8},end:{line:123,column:9}},type:"if",locations:[{start:{line:120,column:8},end:{line:123,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:120},5:{loc:{start:{line:133,column:17},end:{line:133,column:61}},type:"binary-expr",locations:[{start:{line:133,column:17},end:{line:133,column:37}},{start:{line:133,column:41},end:{line:133,column:61}}],line:133},6:{loc:{start:{line:135,column:6},end:{line:148,column:7}},type:"if",locations:[{start:{line:135,column:6},end:{line:148,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:135},7:{loc:{start:{line:160,column:8},end:{line:169,column:9}},type:"if",locations:[{start:{line:160,column:8},end:{line:169,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:160},8:{loc:{start:{line:174,column:17},end:{line:174,column:61}},type:"binary-expr",locations:[{start:{line:174,column:17},end:{line:174,column:37}},{start:{line:174,column:41},end:{line:174,column:61}}],line:174},9:{loc:{start:{line:176,column:6},end:{line:178,column:7}},type:"if",locations:[{start:{line:176,column:6},end:{line:178,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:176},10:{loc:{start:{line:198,column:6},end:{line:204,column:7}},type:"if",locations:[{start:{line:198,column:6},end:{line:204,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:198},11:{loc:{start:{line:200,column:8},end:{line:203,column:9}},type:"if",locations:[{start:{line:200,column:8},end:{line:203,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:200},12:{loc:{start:{line:244,column:6},end:{line:280,column:7}},type:"if",locations:[{start:{line:244,column:6},end:{line:280,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:244},13:{loc:{start:{line:258,column:16},end:{line:260,column:17}},type:"if",locations:[{start:{line:258,column:16},end:{line:260,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:258},14:{loc:{start:{line:261,column:26},end:{line:261,column:45}},type:"binary-expr",locations:[{start:{line:261,column:26},end:{line:261,column:40}},{start:{line:261,column:44},end:{line:261,column:45}}],line:261},15:{loc:{start:{line:262,column:27},end:{line:262,column:47}},type:"binary-expr",locations:[{start:{line:262,column:27},end:{line:262,column:42}},{start:{line:262,column:46},end:{line:262,column:47}}],line:262},16:{loc:{start:{line:263,column:29},end:{line:263,column:51}},type:"binary-expr",locations:[{start:{line:263,column:29},end:{line:263,column:46}},{start:{line:263,column:50},end:{line:263,column:51}}],line:263},17:{loc:{start:{line:287,column:17},end:{line:290,column:15}},type:"cond-expr",locations:[{start:{line:289,column:14},end:{line:289,column:16}},{start:{line:290,column:14},end:{line:290,column:15}}],line:287}},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},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},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]},inputSourceMap:{version:3,sources:["TlmViewer.vue"],names:[],mappings:";AAmHA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n--\x3e\n\n<template>\n <div>\n <top-bar :title="title" :menus="menus" />\n <v-container>\n <v-row class="pt-1">\n <v-select\n class="pa-0 mr-2"\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 />\n <v-select\n class="pa-0 mr-3"\n label="Select Screen"\n :items="screens[selectedTarget]"\n v-model="selectedScreen"\n @change="screenSelect"\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 <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 @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 :tool="toolName"\n @success="openConfiguration($event)"\n />\n <save-config-dialog\n v-if="saveConfig"\n v-model="saveConfig"\n :tool="toolName"\n @success="saveConfiguration($event)"\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 { 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/OpenConfigDialog\'\nimport SaveConfigDialog from \'@openc3/tool-common/src/components/SaveConfigDialog\'\nimport Muuri from \'muuri\'\n\nexport default {\n components: {\n TopBar,\n Openc3Screen,\n NewScreenDialog,\n OpenConfigDialog,\n SaveConfigDialog,\n },\n data() {\n return {\n title: \'COSMOS Telemetry Viewer\',\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 },\n ],\n toolName: \'tlm-viewer\',\n openConfig: false,\n saveConfig: false,\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 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 if (!this.selectedTarget) {\n this.selectedTarget = Object.keys(this.screens)[0]\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 = \'\'\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_telemetry(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 openConfiguration: async function (name) {\n this.counter = 0\n this.definitions = []\n let configResponse = await this.api.load_config(this.toolName, name)\n if (configResponse) {\n const config = JSON.parse(configResponse)\n // Load all the screen definitions from the API at once\n const loadScreenPromises = config.map((definition) => {\n return this.loadScreen(definition.target, definition.screen)\n })\n // Wait until they\'re all loaded\n Promise.all(loadScreenPromises)\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 },\n saveConfiguration: function (name) {\n const gridItems = this.grid.getItems().map((item) => item.getElement().id) // TODO: this order isn\'t reliable for some reason\n const config = this.definitions\n .sort((a, b) => {\n // Sort by their current position on the page\n return gridItems.indexOf(this.screenId(a)) >\n gridItems.indexOf(this.screenId(b))\n ? -1\n : 1\n })\n .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 this.api.save_config(this.toolName, name, JSON.stringify(config))\n },\n },\n}\n<\/script>\n\n<style scoped>\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:"0ffa1cbe36991c8f64a9cf8e0b168021901cdcf1"},a=n[i]||(n[i]={});a[e]&&a[e].hash===t||(a[e]=s);var r=a[e];return ue=function(){return r},r}ue();var de={components:{TopBar:_,Openc3Screen:U,NewScreenDialog:q,OpenConfigDialog:ne,SaveConfigDialog:oe},data:function(){var e=this;return ue().f[0]++,ue().s[0]++,{title:"COSMOS Telemetry Viewer",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:function(){ue().f[1]++,ue().s[1]++,e.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){ue().f[2]++,ue().s[2]++,e.saveConfig=!0}}]}],toolName:"tlm-viewer",openConfig:!1,saveConfig:!1}},created:function(){var e=this;ue().f[3]++,ue().s[3]++,this.api=new d.k,ue().s[4]++,this.api.ensure_offline_access(),ue().s[5]++,u.Z.get("/openc3-api/screens").then((function(t){ue().f[4]++,ue().s[6]++,t.data.forEach((function(t){ue().f[5]++;var n=(ue().s[7]++,t.split("/"));ue().s[8]++,void 0===e.screens[n[0]]?(ue().b[0][0]++,ue().s[9]++,e.$set(e.screens,n[0],[])):ue().b[0][1]++,ue().s[10]++,e.screens[n[0]].push(n[2].split(".")[0].toUpperCase())})),ue().s[11]++,e.selectedTarget?ue().b[1][1]++:(ue().b[1][0]++,ue().s[12]++,e.selectedTarget=Object.keys(e.screens)[0])})),ue().s[13]++,u.Z.get("/openc3-api/autocomplete/keywords/screen").then((function(t){ue().f[6]++,ue().s[14]++,e.keywords=t.data}))},mounted:function(){ue().f[7]++,ue().s[15]++,this.grid=new ce.Z(".grid",{dragEnabled:!0,dragHandle:".v-system-bar"}),ue().s[16]++,this.grid.on("dragEnd",this.refreshLayout)},methods:{targetSelect:function(e){ue().f[8]++,ue().s[17]++,this.selectedTarget=e,ue().s[18]++,this.selectedScreen=""},screenSelect:function(e){ue().f[9]++,ue().s[19]++,this.selectedScreen=e,ue().s[20]++,this.showScreen(this.selectedTarget,this.selectedScreen)},newScreen:function(){ue().f[10]++,ue().s[21]++,this.newScreenDialog=!0},saveNewScreen:function(e,t,n){var i=this;return(0,c.Z)((0,o.Z)().mark((function s(){var a;return(0,o.Z)().wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(ue().f[11]++,ue().s[22]++,a="SCREEN AUTO AUTO 1.0\n",ue().s[23]++,ue().b[3][0]++,!t||(ue().b[3][1]++,"BLANK"===t)){s.next=12;break}return ue().b[2][0]++,ue().s[24]++,a+="\nVERTICAL\n",ue().s[25]++,s.next=10,i.api.get_telemetry(n,t).then((function(e){ue().f[12]++,ue().s[26]++,e.items.forEach((function(e){ue().f[13]++,ue().s[27]++,a+=" LABELVALUE ".concat(n," ").concat(t," ").concat(e.name,"\n")})),ue().s[28]++,a+="END\n"}));case 10:s.next=15;break;case 12:ue().b[2][1]++,ue().s[29]++,a+="\nLABEL NEW\n";case 15:ue().s[30]++,u.Z.post("/openc3-api/screen/",{data:{scope:window.openc3Scope,target:n,screen:e,text:a}}).then((function(t){ue().f[14]++,ue().s[31]++,i.newScreenDialog=!1,ue().s[32]++,void 0===i.screens[n]?(ue().b[4][0]++,ue().s[33]++,i.$set(i.screens,n,[])):ue().b[4][1]++,ue().s[34]++,i.screens[n].push(e),ue().s[35]++,i.screens[n].sort(),ue().s[36]++,i.selectedTarget=n,ue().s[37]++,i.selectedScreen=e,ue().s[38]++,i.showScreen(n,e)}));case 17:case"end":return s.stop()}}),s)})))()},showScreen:function(e,t){var n=this;ue().f[15]++;var i=(ue().s[39]++,this.definitions.find((function(n){return ue().f[16]++,ue().s[40]++,ue().b[5][0]++,n.target==e&&(ue().b[5][1]++,n.screen==t)})));ue().s[41]++,i?ue().b[6][1]++:(ue().b[6][0]++,ue().s[42]++,this.loadScreen(e,t).then((function(i){ue().f[17]++,ue().s[43]++,n.pushScreen({id:n.counter++,target:e,screen:t,definition:i.data,floated:!1,top:0,left:0,zIndex:0})})))},loadScreen:function(e,t){return ue().f[18]++,ue().s[44]++,u.Z.get("/openc3-api/screen/"+e+"/"+t,{headers:{Accept:"text/plain"}})},pushScreen:function(e){ue().f[19]++,ue().s[45]++,this.definitions.push(e),ue().s[46]++,this.$nextTick((function(){if(ue().f[20]++,ue().s[47]++,e.floated)ue().b[7][1]++;else{ue().b[7][0]++;var t=(ue().s[48]++,this.grid.add(this.$refs.gridItem[this.$refs.gridItem.length-1],{active:!1}));ue().s[49]++,this.grid.show(t),ue().s[50]++,this.grid.refreshItems().layout()}}))},closeScreenByName:function(e,t){ue().f[21]++;var n=(ue().s[51]++,this.definitions.find((function(n){return ue().f[22]++,ue().s[52]++,ue().b[8][0]++,n.target==e&&(ue().b[8][1]++,n.screen==t)})));ue().s[53]++,n?(ue().b[9][0]++,ue().s[54]++,this.closeScreen(n.id)):ue().b[9][1]++},closeAll:function(){ue().f[23]++,ue().s[55]++;var e,t=(0,l.Z)(this.definitions);try{for(t.s();!(e=t.n()).done;){var n=e.value;ue().s[56]++,this.closeScreen(n.id)}}catch(i){t.e(i)}finally{t.f()}},closeScreen:function(e){ue().f[24]++;var t=(ue().s[57]++,this.grid.getItems([document.getElementById(this.screenId(e))]));ue().s[58]++,this.grid.remove(t),ue().s[59]++,this.grid.refreshItems().layout(),ue().s[60]++,this.definitions=this.definitions.filter((function(t,n,i){return ue().f[25]++,ue().s[61]++,t.id!=e}))},deleteScreen:function(e){ue().f[26]++,ue().s[62]++,this.closeScreen(e.id);var t=(ue().s[63]++,this.screens[e.target].indexOf(e.screen));ue().s[64]++,-1!==t?(ue().b[10][0]++,ue().s[65]++,this.screens[e.target].splice(t,1),ue().s[66]++,0===this.screens[e.target].length?(ue().b[11][0]++,ue().s[67]++,this.$delete(this.screens,e.target)):ue().b[11][1]++):ue().b[10][1]++},floatScreen:function(e,t,n,i,s){ue().f[27]++,ue().s[68]++,e.floated=t,ue().s[69]++,e.top=n,ue().s[70]++,e.left=i,ue().s[71]++,e.zIndex=s;var a=(ue().s[72]++,this.grid.getItems([document.getElementById(this.screenId(e.id))]));ue().s[73]++,this.grid.remove(a),ue().s[74]++,this.grid.refreshItems().layout()},unfloatScreen:function(e,t,n,i,s){ue().f[28]++,ue().s[75]++,e.floated=t,ue().s[76]++,e.top=n,ue().s[77]++,e.left=i,ue().s[78]++,e.zIndex=s;var a=(ue().s[79]++,[document.getElementById(this.screenId(e.id))]);ue().s[80]++,this.grid.add(a),ue().s[81]++,this.grid.refreshItems().layout()},dragScreen:function(e,t,n,i,s){ue().f[29]++,ue().s[82]++,e.floated=t,ue().s[83]++,e.top=n,ue().s[84]++,e.left=i,ue().s[85]++,e.zIndex=s},refreshLayout:function(){var e=this;ue().f[30]++,ue().s[86]++,setTimeout((function(){ue().f[31]++,ue().s[87]++,e.grid.refreshItems().layout()}),600)},screenId:function(e){return ue().f[32]++,ue().s[88]++,"tlmViewerScreen"+e},openConfiguration:function(){var e=(0,c.Z)((0,o.Z)().mark((function e(t){var n,i,s,a=this;return(0,o.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return ue().f[33]++,ue().s[89]++,this.counter=0,ue().s[90]++,this.definitions=[],ue().s[91]++,e.next=8,this.api.load_config(this.toolName,t);case 8:n=e.sent,ue().s[92]++,n?(ue().b[12][0]++,ue().s[93]++,i=JSON.parse(n),ue().s[94]++,s=i.map((function(e){return ue().f[34]++,ue().s[95]++,a.loadScreen(e.target,e.screen)})),ue().s[96]++,Promise.all(s).then((function(e){ue().f[35]++,ue().s[97]++,i.forEach((function(t,n){ue().f[36]++;var i=(ue().s[98]++,e[n]);ue().s[99]++,setTimeout((function(){ue().f[37]++;var e=(ue().s[100]++,t.floated);ue().s[101]++,e?ue().b[13][1]++:(ue().b[13][0]++,ue().s[102]++,e=!1);var n=(ue().s[103]++,ue().b[14][0]++,t.top||(ue().b[14][1]++,0)),s=(ue().s[104]++,ue().b[15][0]++,t.left||(ue().b[15][1]++,0)),r=(ue().s[105]++,ue().b[16][0]++,t.zIndex||(ue().b[16][1]++,0));ue().s[106]++,a.pushScreen({id:a.counter++,target:t.target,screen:t.screen,definition:i.data,floated:e,top:n,left:s,zIndex:r})}),0)}))})).then((function(){ue().f[38]++,ue().s[107]++,setTimeout(a.refreshLayout,0)}))):ue().b[12][1]++;case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),saveConfiguration:function(e){var t=this;ue().f[39]++;var n=(ue().s[108]++,this.grid.getItems().map((function(e){return ue().f[40]++,ue().s[109]++,e.getElement().id}))),i=(ue().s[110]++,this.definitions.sort((function(e,i){return ue().f[41]++,ue().s[111]++,n.indexOf(t.screenId(e))>n.indexOf(t.screenId(i))?(ue().b[17][0]++,-1):(ue().b[17][1]++,1)})).map((function(e){return ue().f[42]++,ue().s[112]++,{screen:e.screen,target:e.target,floated:e.floated,top:e.top,left:e.left,zIndex:e.zIndex}})));ue().s[113]++,this.api.save_config(this.toolName,e,JSON.stringify(i))}}},me=de,he=(n(56113),(0,v.Z)(me,a,r,!1,null,"65333744",null)),pe=he.exports},94330:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});n(34115),n(634);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"),t("span",[e._v(" Details ")]),t("v-spacer")],1),t("v-card-title",[e._v(" "+e._s(e.targetName)+" "+e._s(e.packetName)+" "+e._s(e.itemName)+" ")]),t("v-card-subtitle",[e._v(e._s(e.details.description))]),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")]),t("v-col"),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")]),t("v-col",[e._v(e._s(e.rawValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Converted Value")]),t("v-col",[e._v(e._s(e.convertedValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("Formatted Value")]),t("v-col",[e._v(e._s(e.formattedValue))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v("With Units Value")]),t("v-col",[e._v(e._s(e.unitsValue))])],1)],1)],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Offset")]),t("v-col",[e._v(e._s(e.details.bit_offset))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Bit Size")]),t("v-col",[e._v(e._s(e.details.bit_size))])],1),e.details.array_size?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Array Size")]),t("v-col",[e._v(e._s(e.details.array_size))])],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Data Type")]),t("v-col",[e._v(e._s(e.details.data_type))])],1),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Minimum")]),t("v-col",[e._v(e._s(e.details.minimum))])],1):e._e(),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Maximum")]),t("v-col",[e._v(e._s(e.details.maximum))])],1):e._e(),"cmd"===e.type?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Default")]),t("v-col",[e._v(e._s(e.details.default))])],1):e._e(),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Format String")]),t("v-col",[e._v(e._s(e.details.format_string))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Read Conversion")]),e.details.read_conversion?t("v-col",[e._v(" Class: "+e._s(e.details.read_conversion.class)+" "),t("br"),e._v(" Params: "+e._s(e.details.read_conversion.params)+" ")]):t("v-col")],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Write Conversion")]),e.details.write_conversion?t("v-col",[e._v(" Class: "+e._s(e.details.write_conversion.class)+" "),t("br"),e._v(" Params: "+e._s(e.details.write_conversion.params)+" ")]):t("v-col")],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Id Value")]),t("v-col",[e._v(e._s(e.details.id_value))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Full")]),t("v-col",[e._v(e._s(e.details.units_full))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Units Abbr")]),t("v-col",[e._v(e._s(e.details.units))])],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Endianness")]),t("v-col",[e._v(e._s(e.details.endianness))])],1),e.details.states?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("States")]),t("v-col"),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))]),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")]),t("v-col",[e._v("None")])],1),e.details.limits?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),t("v-col"),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(),"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(),"enabled"!==i?t("v-col",{staticClass:"label",attrs:{cols:"4"}},[e._v(e._s(i))]):e._e(),"enabled"!==i?t("div",[e._v(e._s(e.formatLimit(n)))]):e._e(),t("v-col")],1)})),1)],1):t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Limits")]),t("v-col",[e._v("None")])],1),e.details.meta?t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{staticClass:"label",attrs:{cols:"3"}},[e._v("Meta")]),t("v-col"),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))]),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")]),t("v-col",[e._v("None")])],1)],1)],1)],1)],1)},s=[],a=n(15789),r=n(66964),l=n(49502),o=(n(74083),n(18178),n(32501),n(68995),n(27233),n(28673),n(58188),n(88233),n(48392)),c={props:{type:{default:"tlm",validator:function(e){return-1!==["cmd","tlm"].indexOf(e)}},targetName:String,packetName:String,itemName:String,value:Boolean},data:function(){return{details:Object,updater:null,rawValue:null,convertedValue:null,formattedValue:null,unitsValue:null}},computed:{show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},created:function(){this.api=new o.k},beforeDestroy:function(){clearInterval(this.updater),this.updater=null},watch:{value:function(e,t){var n=this;e?(this.requestDetails(),"tlm"===this.type&&(this.updater=setInterval((function(){n.api.get_tlm_values(["".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__RAW"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__CONVERTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__FORMATTED"),"".concat(n.targetName,"__").concat(n.packetName,"__").concat(n.itemName,"__WITH_UNITS")]).then((function(e){for(var t=0;t<e.length;t++){var i=null;if("String"===e[t][0]["json_class"]&&void 0!==e[t][0]["raw"]?i=e[t][0]["raw"]:"BLOCK"===n.details.data_type&&(i=e[t][0]),null!==i){i=i.slice(0,parseInt(n.details.bit_size)/8);var s=!1;i.length>64&&(s=!0),e[t][0]=Array.from(i.slice(0,64),(function(e){return("0"+(255&e).toString(16)).slice(-2)})).join(" ").toUpperCase(),s&&(e[t][0]+="...")}}n.rawValue=e[0][0],n.convertedValue=e[1][0],n.formattedValue=e[2][0],n.unitsValue=e[3][0]}))}),1e3))):(clearInterval(this.updater),this.updater=null)}},methods:{requestDetails:function(){var e=this;return(0,l.Z)((0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("tlm"!==e.type){t.next=5;break}return t.next=3,e.api.get_item(e.targetName,e.packetName,e.itemName).then((function(t){if(e.details=t,t.limits){var n=!1;t.limits.enabled&&(n=!0,delete t.limits.enabled),e.details.limits=(0,r.Z)({enabled:n},t.limits)}}));case 3:t.next=7;break;case 5:return t.next=7,e.api.get_parameter(e.targetName,e.packetName,e.itemName).then((function(t){e.details=t}));case 7:case"end":return t.stop()}}),t)})))()},changeLimitsEnabled:function(){var e=this;return(0,l.Z)((0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.details.limits.enabled){t.next=5;break}return t.next=3,e.api.enable_limits(e.targetName,e.packetName,e.itemName);case 3:t.next=7;break;case 5:return t.next=7,e.api.disable_limits(e.targetName,e.packetName,e.itemName);case 7:case"end":return t.stop()}}),t)})))()},formatLimit:function(e){return e.green_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high+" GL/"+e.green_low+" GH/"+e.green_high:e.red_low?"RL/"+e.red_low+" YL/"+e.yellow_low+" YH/"+e.yellow_high+" RH/"+e.red_high:e}}},u=c,d=(n(37681),n(23287)),m=(0,d.Z)(u,i,s,!1,null,"1e0f0ab0",null),h=m.exports},84195:function(e,t,n){"use strict";n.d(t,{Z:function(){return W}});n(74083);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(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"error-graph-icon"},on:{click:function(t){e.errorDialog=!0}}},[e._v("mdi-alert")])],1)]}}])},[t("span",[e._v("Errors")])])],1),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"edit-graph-icon"},on:{click:function(t){e.editGraph=!0}}},[e._v(" mdi-pencil ")])],1)]}}])},[t("span",[e._v(" Edit ")])]),t("v-spacer"),t("span",[e._v(e._s(e.title))]),t("v-spacer"),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(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[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(" mdi-arrow-collapse ")]),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(" mdi-arrow-expand ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.calcFullSize,expression:"calcFullSize"}]},[e._v(" Collapse ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.calcFullSize,expression:"!calcFullSize"}]},[e._v(" Expand ")])])],1),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(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[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(" mdi-arrow-collapse-horizontal ")]),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(" mdi-arrow-expand-horizontal ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullWidth,expression:"fullWidth"}]},[e._v(" Collapse Width ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullWidth,expression:"!fullWidth"}]},[e._v(" Expand Width ")])])],1),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(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[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(" mdi-arrow-collapse-vertical ")]),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(" mdi-arrow-expand-vertical ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.fullHeight,expression:"fullHeight"}]},[e._v(" Collapse Height ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.fullHeight,expression:"!fullHeight"}]},[e._v(" Expand Height ")])])],1),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[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(" mdi-window-minimize ")]),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(" mdi-window-maximize ")])],1)]}}])},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.expand,expression:"expand"}]},[e._v(" Minimize ")]),t("span",{directives:[{name:"show",rawName:"v-show",value:!e.expand,expression:"!expand"}]},[e._v(" Maximize ")])]),t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on,s=n.attrs;return[t("div",e._g(e._b({},"div",s,!1),i),[t("v-icon",{attrs:{"data-test":"close-graph-icon"},on:{click:function(t){return e.$emit("close-graph")}}},[e._v(" mdi-close-box ")])],1)]}}])},[t("span",[e._v(" Close ")])])],1),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".concat(e.id)}}),t("div",{attrs:{id:"betweenCharts"}}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showOverview,expression:"showOverview"}],attrs:{id:"overview".concat(e.id)}})])])],1),t("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.$emit("input")},input:function(t){return e.editGraphClose()}},model:{value:e.editGraph,callback:function(t){e.editGraph=t},expression:"editGraph"}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Edit Graph")]),t("v-spacer")],1),t("v-card",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{staticClass:"pb-2",attrs:{label:"Title","hide-details":"","data-test":"edit-graph-title"},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),t("v-card-text",{staticClass:"pa-0"},[e._v(" Select a start date/time for the graph. Leave blank for start now. ")]),t("date-time-chooser",{attrs:{required:!1,"date-label":"Start Date","time-label":"Start Time","date-time":e.graphStartDateTime},on:{"date-time":function(t){e.graphStartDateTime=t}}}),t("v-card-text",{staticClass:"pa-0"},[e._v(" Select a end date/time for the graph. Leave blank for continuous real-time graphing. ")]),t("date-time-chooser",{attrs:{"date-label":"End Date","time-label":"End Time","date-time":e.graphEndDateTime},on:{"date-time":function(t){e.graphEndDateTime=t}}}),t("v-row",{attrs:{dense:""}},[t("v-select",{attrs:{label:"Legend Position",items:e.legendPositions,"data-test":"edit-legend-position"},model:{value:e.legendPosition,callback:function(t){e.legendPosition=t},expression:"legendPosition"}})],1),t("v-card-text",{staticClass:"pa-0"},[e._v(" Optional Y axis settings. ")]),t("v-row",{attrs:{dense:""}},[t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Min Y",type:"number","data-test":"graph-min-y"},model:{value:e.graphMinY,callback:function(t){e.graphMinY=t},expression:"graphMinY"}})],1),t("v-col",{staticClass:"px-2"},[t("v-text-field",{attrs:{"hide-details":"",label:"Max Y",type:"number","data-test":"graph-max-y"},model:{value:e.graphMaxY,callback:function(t){e.graphMaxY=t},expression:"graphMaxY"}})],1)],1),t("v-data-table",{staticClass:"elevation-1 my-2",attrs:{"item-key":"itemId",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(n){var i=n.item;return[t("v-tooltip",{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function(n){var s=n.on,a=n.attrs;return[t("div",e._g(e._b({},"div",a,!1),s),[t("v-btn",{attrs:{icon:"","data-test":"delete-item-icon".concat(i.itemId)},on:{click:function(){return e.removeItems([i])}}},[t("v-icon",[e._v("mdi-delete")])],1)],1)]}}],null,!0)},[t("span",[e._v("Remove")])])]}},{key:"no-data",fn:function(){return[t("span",[e._v("Currently no items on this graph")])]},proxy:!0}])}),t("v-card-actions",[t("v-btn",{attrs:{color:"primary"},on:{click:e.editGraphClose}},[e._v(" Ok ")])],1)],1)],1),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"),t("span",[e._v("Errors")]),t("v-spacer")],1),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),t("v-row",{staticClass:"my-3"},[t("v-textarea",{attrs:{readonly:"",rows:"8",value:e.error}})],1),t("v-row",[t("v-btn",{attrs:{block:""},on:{click:e.clearErrors}},[e._v(" Clear ")])],1)],1)],1),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(" Edit "+e._s(e.title)+" ")])],1)],1)],1):e._e(),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.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(" "+e._s(e.selectedItem.targetName)+" "+e._s(e.selectedItem.packetName)+" "+e._s(e.selectedItem.itemName)+" ")]),t("v-list-item",{on:{click:function(t){e.editItem=!0}}},[t("v-list-item-icon",[t("v-icon",[e._v("mdi-pencil")])],1),t("v-list-item-content",[t("v-list-item-title",[e._v(" Edit ")])],1)],1),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),t("v-list-item-content",[t("v-list-item-title",[e._v(" Delete ")])],1)],1)],1)],1):e._e(),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),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),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),t("v-list-item",{on:{click:function(t){return e.moveLegend("right")}}},[t("v-list-item-title",{staticStyle:{cursor:"pointer"}},[e._v("Legend RIght")])],1)],1)],1):e._e()],1)},s=[],a=n(50615),r=n(97302),l=n(78081),o=n(66964),c=(n(71245),n(43450),n(6710),n(58188),n(6886),n(36728),n(43108),n(18178),n(32501),n(13489),n(99805),n(1951),n(35883),n(39529),n(31235),function(){var e=this,t=e._self._c;return t("div",[t("v-row",[t("v-col",[t("v-menu",{attrs:{"close-on-content-click":"",transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function(n){var i=n.on;return[t("v-text-field",e._g({attrs:{label:e.dateLabel,name:"date".concat(Date.now()),rules:e.dateRules,type:"date","data-test":"date-chooser"},model:{value:e.date,callback:function(t){e.date=t},expression:"date"}},i))]}}])})],1),t("v-col",[t("v-text-field",{attrs:{label:e.timeLabel,name:"time".concat(Date.now()),rules:e.timeRules,type:"time",step:"1","data-test":"time-chooser"},on:{change:e.onChange},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1)],1)}),u=[],d=n(31200),m=n(10247),h=n(66700),p=n(73053),f={props:{required:{type:Boolean,default:!0},dateTime:{type:Number,default:null},dateLabel:{type:String,default:"Date"},timeLabel:{type:String,default:"Time"}},data:function(){return{date:null,time:null,rules:{required:function(e){return!!e||"Required"},date:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"yyyy-MM-dd",new Date))||"Invalid date (YYYY-MM-DD)"}catch(t){return"Invalid date (YYYY-MM-DD)"}},time:function(e){if(!e)return!0;try{return(0,d.Z)((0,m.Z)(e,"HH:mm:ss",new Date))||"Invalid time (HH:MM:SS)"}catch(t){return"Invalid time (HH:MM:SS)"}}}}},computed:{dateRules:function(){var e=[this.rules.date];return(this.time||this.required)&&e.push(this.rules.required),e},timeRules:function(){var e=[this.rules.time];return(this.date||this.required)&&e.push(this.rules.required),e}},created:function(){if(this.dateTime){var e=(0,h.Z)(this.dateTime/1e6);this.date=(0,p.Z)(e,"yyyy-MM-dd"),this.time=(0,p.Z)(e,"HH:mm:ss")}},methods:{onChange:function(){this.date&&this.time?this.$emit("date-time",this.date+" "+this.time):this.$emit("date-time",null)}}},v=f,g=n(23287),_=(0,g.Z)(v,c,u,!1,null,null,null),A=_.exports,w=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,"enter",13,t.key,"Enter")?null:e.success()}},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[t("v-card",{staticClass:"pa-3"},[t("v-card-title",{staticClass:"headline"},[e._v("Edit Item")]),t("v-select",{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"}}),t("v-select",{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"}}),t("v-select",{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"}}),t("v-select",{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.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"}}),t("div",{staticClass:"pa-3"},[e._v(e._s(e.limitsName)+": "+e._s(e.limits[e.limitsName]))])],1):e._e(),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(t){return e.$emit("cancel")}}},[e._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(t){return e.$emit("close",e.editItem)}}},[e._v(" Ok ")])],1)],1)],1)},b=[],y=n(15789),x=n(49502),C=(n(34769),n(67890),n(49228),n(48392)),k={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:function(){return this.value},set:function(e){this.$emit("input",e)}},limitsNames:function(){return Object.keys(this.limits)}},created:function(){var e=this;return(0,x.Z)((0,y.Z)().mark((function t(){return(0,y.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.editItem=(0,o.Z)({},e.item),t.next=3,e.api;case 3:e.api=(new C.k).get_item(e.item.targetName,e.item.packetName,e.item.itemName).then((function(t){for(var n=0,i=Object.entries(t.limits);n<i.length;n++){var s=(0,r.Z)(i[n],2),a=s[0],l=s[1];Object.keys(l).includes("red_low")&&e.$set(e.limits,a,Object.values(l))}e.limitsName=Object.keys(e.limits).find((function(t){return e.limits[t]+""===e.editItem.limits+""}))}));case 4:case"end":return t.stop()}}),t)})))()}},S=k,I=(0,g.Z)(S,w,b,!1,null,null,null),N=I.exports,T=n(35685),E=n(86522),M=n.n(E),D=n(59161);n(16461);var Z={components:{DateTimeChooser:A,GraphEditItemDialog:N},props:{id:{type:Number,required:!0},selectedGraphId:{type:Number},state:{type:String,required:!0},startTime:{type:Number},secondsGraphed:{type:Number,required:!0},pointsSaved:{type:Number,required:!0},pointsGraphed:{type:Number,required:!0},refreshIntervalMs:{type:Number,default:200},hideSystemBar:{type:Boolean,default:!1},hideOverview:{type:Boolean,default:!1},sparkline:{type:Boolean,default:!1},initialItems:{type:Array},height:{type:Number},width:{type:Number}},data:function(){return{itemHeaders:[{text:"Target Name",value:"targetName"},{text:"Packet Name",value:"packetName"},{text:"Item Name",value:"itemName"},{text:"Actions",value:"actions",sortable:!1}],active:!0,expand:!0,fullWidth:!0,fullHeight:!0,graph:null,editGraph:!1,editGraphMenu:!1,editGraphMenuX:0,editGraphMenuY:0,editItem:!1,itemMenu:!1,itemMenuX:0,itemMenuY:0,legendMenu:!1,legendMenuX:0,legendMenuY:0,legendPosition:"bottom",legendPositions:["top","bottom","left","right"],selectedItem:null,showOverview:!this.hideOverview,title:"",overview:null,data:[[]],dataChanged:!1,timeout:null,graphMinY:"",graphMaxY:"",graphStartDateTime:null,graphEndDateTime:null,indexes:{},items:this.initialItems||[],limitsValues:[],drawInterval:null,zoomChart:!1,zoomOverview:!1,cable:new D.Z,subscription:null,needToUpdate:!1,errorDialog:!1,errors:[],colorIndex:0,colors:["cornflowerblue","red","lime","darkorange","gold","hotpink","tan","cyan","maroon","blue","teal","purple","green","brown","lightblue","white"]}},computed:{calcFullSize:function(){return this.fullWidth||this.fullHeight},editItems:function(){if(!this.items)return[];var e=0;return this.items.map((function(t){return e+=1,(0,o.Z)((0,o.Z)({},t),{},{itemId:e})}))},error:function(){return this.errorDialog&&this.errors.length>0?JSON.stringify(this.errors,null,4):null}},created:function(){this.title="Graph ".concat(this.id);var e,t=(0,l.Z)(this.items.entries());try{for(t.s();!(e=t.n()).done;){var n=(0,r.Z)(e.value,2),i=n[0],s=n[1];this.data.push([]),this.indexes[this.subscriptionKey(s)]=i+1,void 0===s.color&&(s.color=this.colors[this.colorIndex]),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0)}}catch(a){t.e(a)}finally{t.f()}},mounted:function(){var e=this,t=this.items.reduce((function(t,n){var i={spanGaps:!0};return t.chartSeries.push((0,o.Z)((0,o.Z)({},i),{},{item:n,label:e.formatLabel(n),stroke:function(t,n){return e.items[n-1].color},value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(2)}})),t.overviewSeries.push((0,o.Z)({},i)),t}),{chartSeries:[],overviewSeries:[]}),n=t.chartSeries,i=t.overviewSeries,s={};if(this.sparkline)this.hideSystemBar=!0,this.hideOverview=!0,this.showOverview=!1,s={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 T.Z(s,this.data,document.getElementById("chart".concat(this.id)));else{s=(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},this.getSize("chart")),this.getScales()),this.getAxes("chart")),{},{plugins:[this.linesPlugin()],series:[{label:"Time",value:function(e,t){return null==t?"--":(0,p.Z)((0,h.Z)(1e3*t),"yyyy-MM-dd HH:mm:ss")}}].concat((0,a.Z)(n)),cursor:{drag:{x:!0,y:!1},sync:{key:"openc3"},bind:{mouseup:function(t,n,i){return function(n){"pause"===e.state&&0===t.select.width&&e.$emit("start"),i(n)}}}},hooks:{setScale:[function(t,n){if("x"===n&&!e.zoomOverview&&e.overview){e.zoomChart=!0;var i=Math.round(e.overview.valToPos(t.scales.x.min,"x")),s=Math.round(e.overview.valToPos(t.scales.x.max,"x"));e.overview.setSelect({left:i,width:s-i}),e.zoomChart=!1}}],setSelect:[function(t){"start"===e.state&&t.select.width>0&&e.$emit("pause")}],ready:[function(t){var n=t.root.querySelector(".u-over");n.addEventListener("contextmenu",(function(t){t.preventDefault(),e.itemMenu=!1,e.legendMenu=!1,e.editGraphMenuX=t.clientX,e.editGraphMenuY=t.clientY,e.editGraphMenu=!0})),n.addEventListener("mouseenter",(function(t){e.$emit("resize")})),n.addEventListener("mouseleave",(function(t){e.$emit("resize")}));var i=t.root.querySelector(".u-legend");i.addEventListener("contextmenu",(function(n){n.preventDefault(),e.editGraphMenu=!1,e.legendMenu=!1,e.itemMenuX=n.clientX,e.itemMenuY=n.clientY;var s=n.target.closest(".u-series"),a=Array.prototype.slice.call(i.childNodes).indexOf(s),r=t.series[a];r.item?(e.selectedItem=r.item,e.itemMenu=!0):(e.itemMenu=!1,e.legendMenuX=n.clientX,e.legendMenuY=n.clientY,e.legendMenu=!0)}))}]}}),this.graph=new T.Z(s,this.data,document.getElementById("chart".concat(this.id)));var r=(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},this.getSize("overview")),this.getScales()),this.getAxes("overview")),{},{series:(0,a.Z)(i),cursor:{y:!1,points:{show:!1},drag:{setScale:!1,x:!0,y:!1}},legend:{show:!1},hooks:{setSelect:[function(t){if(!e.zoomChart){"start"===e.state&&t.select.width>0&&e.$emit("pause"),e.zoomOverview=!0;var n=t.posToVal(t.select.left,"x"),i=t.posToVal(t.select.left+t.select.width,"x");e.graph.setScale("x",{min:n,max:i}),e.zoomOverview=!1}}]}});this.overview=new T.Z(r,this.data,document.getElementById("overview".concat(this.id))),this.moveLegend(this.legendPosition),window.addEventListener("resize",this.handleResize)}"stop"!==this.state&&this.startGraph()},beforeDestroy:function(){this.stopGraph(),this.cable.disconnect(),window.removeEventListener("resize",this.handleResize)},watch:{state:function(e,t){switch(e){case"start":"stop"===t&&this.startGraph();break;case"stop":this.stopGraph();break}},data:function(e,t){this.dataChanged=!0},graphMinY:function(e,t){var n=parseFloat(e);isNaN(n)||(this.graphMinY=n),this.setGraphRange()},graphMaxY:function(e,t){var n=parseFloat(e);isNaN(n)||(this.graphMaxY=n),this.setGraphRange()},graphStartDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphStartDateTime=1e6*new Date(this.graphStartDateTime).getTime())},graphEndDateTime:function(e,t){this.needToUpdate=!0,e&&"string"===typeof e&&(this.graphEndDateTime=1e6*new Date(this.graphEndDateTime).getTime())}},methods:{startGraph:function(){var e=this;this.subscribe(),this.timeout=setTimeout((function(){e.updateTimeout()}),this.refreshIntervalMs)},stopGraph:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},updateTimeout:function(){var e=this;this.updateGraphData(),this.timeout=setTimeout((function(){e.updateTimeout()}),this.refreshIntervalMs)},updateGraphData:function(){if("pause"!==this.state&&this.dataChanged){this.graph.setData(this.data),this.overview&&this.overview.setData(this.data);var 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:function(e){if("CONVERTED"===e.valueType&&"DECOM"===e.reduced)return e.itemName;var t="";return"CONVERTED"!==e.valueType&&(t+=e.valueType),"DECOM"!==e.reduced&&(""!==t&&(t+=" "),t+="".concat(e.reduced.split("_")[1]," ").concat(e.reducedType)),"".concat(e.itemName," (").concat(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(){this.editGraph=!1,this.needToUpdate&&(null==this.subscription?this.startGraph():(this.removeItemsFromSubscription(),this.addItemsToSubscription()),this.needToUpdate=!1),this.moveLegend(this.legendPosition)},handleResize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview"))},resize:function(){this.graph.setSize(this.getSize("chart")),this.overview&&this.overview.setSize(this.getSize("overview")),this.$emit("resize",this.id)},expandAll:function(){this.fullWidth=!0,this.fullHeight=!0,this.resize()},collapseAll:function(){this.fullWidth=!1,this.fullHeight=!1,this.resize()},expandWidth:function(){this.fullWidth=!0,this.resize()},collapseWidth:function(){this.fullWidth=!1,this.resize()},expandHeight:function(){this.fullHeight=!0,this.resize()},collapseHeight:function(){this.fullHeight=!1,this.resize()},minMaxTransition:function(){this.expand=!this.expand,this.$emit("min-max-graph",this.id)},setGraphRange:function(){var e=this,t=.1;(this.graphMinY||0===this.graphMinY||this.graphMaxY||0===this.graphMaxY)&&(t=0),this.graph.scales.y.range=function(n,i,s){var a=i;(e.graphMinY||0===e.graphMinY)&&(a=e.graphMinY);var r=s;return(e.graphMaxY||0===e.graphMaxY)&&(r=e.graphMaxY),T.Z.rangeNum(a,r,t,!0)}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(t){return e.received(t)},connected:function(){e.addItemsToSubscription(e.items)},disconnected:function(){e.errors.push({type:"disconnected",message:"OpenC3 backend connection disconnected",time:(new Date).getTime()})},rejected:function(){e.errors.push({type:"rejected",message:"OpenC3 backend connection rejected",time:(new Date).getTime()})}}).then((function(t){e.subscription=t}))},getSize:function(e){var t=document.getElementById("openc3-nav-drawer"),n=t.classList.contains("v-navigation-drawer--open")?t.clientWidth:0,i=0;if("right"===this.legendPosition||"left"===this.legendPosition){var s=document.getElementsByClassName("u-legend")[0];i=s.clientWidth}var a=Math.max(document.documentElement.clientWidth,window.innerWidth||0)-n-i,r=Math.max(document.documentElement.clientHeight,window.innerHeight||0),l=document.getElementsByClassName("c-chooser")[0],o=100;"overview"===e?this.fullHeight&&!this.hideOverview?this.showOverview=!0:this.showOverview=!1:l&&(o=r-l.clientHeight-o-190,this.fullHeight||(o=o/2+10));var c=a-60;return this.fullWidth||(c=c/2-10),{width:this.width||c,height:this.height||o}},getScales:function(){return{scales:{x:{range:function(e,t,n){return null==t?[1566453600,1566497660]:[t,n]}},y:{range:function(e,t,n){return null==t?[-100,100]:T.Z.rangeNum(t,n,.1,!0)}}}}},getAxes:function(e){var 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}}]}},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){var 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){var t=this.subscriptionKey(this.selectedItem),n=this.indexes[t];this.items[n-1].limits=e,this.selectedItem.limits=e,this.limitsValues=e},linesPlugin:function(){var e=this;return{hooks:{draw:function(t){var n=t.ctx,i=t.bbox,s=t.valToPos(t.scales.y.min,"y",!0),a=t.valToPos(t.scales.y.max,"y",!0),r=t.valToPos(e.limitsValues[0],"y",!0),l=t.valToPos(e.limitsValues[1],"y",!0),o=t.valToPos(e.limitsValues[2],"y",!0),c=t.valToPos(e.limitsValues[3],"y",!0);if(n.save(),n.beginPath(),n.fillStyle="rgba(255,0,0,0.15)",t.scales.y.min<e.limitsValues[0]){var u=r<a?a:r;n.fillRect(i.left,r,i.width,s-u)}if(t.scales.y.max>e.limitsValues[3]){var d=s<c?s:c;n.fillRect(i.left,a,i.width,d-a)}if(n.fillStyle="rgba(255,255,0,0.15)",t.scales.y.min<e.limitsValues[1]&&t.scales.y.max>e.limitsValues[0]){var m=l<a?a:l;n.fillRect(i.left,m,i.width,r-m)}if(t.scales.y.max>e.limitsValues[2]&&t.scales.y.min<e.limitsValues[3]){var h=s<c?s:c,p=s<o?s:o;n.fillRect(i.left,h,i.width,p-h)}if(n.fillStyle="rgba(0,255,0,0.15)",4===e.limitsValues.length){if(t.scales.y.min<e.limitsValues[2]&&t.scales.y.max>e.limitsValues[1]){var f=o<a?a:o,v=s<l?s:l;n.fillRect(i.left,f,i.width,v-f)}}else{var g=t.valToPos(e.limitsValues[4],"y",!0),_=t.valToPos(e.limitsValues[5],"y",!0);if(t.scales.y.min<e.limitsValues[4]&&t.scales.y.max>e.limitsValues[1]){var A=g<a?a:g;n.fillRect(i.left,A,i.width,l-A)}if(t.scales.y.max>e.limitsValues[5]&&t.scales.y.min<e.limitsValues[2]){var w=s<o?s:o,b=s<_?s:_;n.fillRect(i.left,w,i.width,b-w)}n.fillStyle="rgba(0,0,255,0.15)";var y=_<a?a:_,x=s<g?s:g;n.fillRect(i.left,y,i.width,x-y)}n.stroke(),n.restore()}}}},changeItem:function(e){var t=this;this.removeItems([this.selectedItem]),this.selectedItem.valueType=e.valueType,this.selectedItem.reduced=e.reduced,this.selectedItem.reducedType=e.reducedType,setTimeout((function(){t.addItems([t.selectedItem])}))},addItems:function(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"CONVERTED",s=(0,l.Z)(e);try{for(s.s();!(t=s.n()).done;){var a=t.value;a.valueType||(a.valueType=i),void 0===a.color&&(a.color=this.colors[this.colorIndex]),void 0===a.limits?a.limits=[]:a.limits.length>0&&(this.limitsValues=a.limits),this.colorIndex++,this.colorIndex===this.colors.length&&(this.colorIndex=0),this.items.push(a);var r=this.data.length;this.graph.addSeries({spanGaps:!0,item:a,label:this.formatLabel(a),stroke:function(e,t){return n.items[t-1].color},value:function(e,t){return"string"===typeof t||isNaN(t)?"NaN":null==t?"--":t.toFixed(2)}},r),this.overview&&this.overview.addSeries({spanGaps:!0,stroke:function(e,t){return n.items[t-1].color}},r);var o=Array(this.data[0].length);this.data.splice(r,0,o),this.indexes[this.subscriptionKey(a)]=r}}catch(c){s.e(c)}finally{s.f()}this.addItemsToSubscription(e)},addItemsToSubscription:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items,n=this.startTime;this.graphStartDateTime&&(n=this.graphStartDateTime),this.subscription&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then((function(i){i&&OpenC3Auth.setTokens(),e.subscription.perform("add",{scope:window.openc3Scope,token:localStorage.openc3Token,items:t.map(e.subscriptionKey),start_time:n,end_time:e.graphEndDateTime})}))},removeItems:function(e){this.removeItemsFromSubscription(e);var t,n=(0,l.Z)(e.map(this.subscriptionKey));try{for(n.s();!(t=n.n()).done;){var i=t.value,s=this.reorderIndexes(i);this.colors.unshift(this.graph.series[s].stroke),this.items.splice(s-1,1),this.data.splice(s,1),this.graph.delSeries(s),this.graph.setData(this.data),this.overview&&(this.overview.delSeries(s),this.overview.setData(this.data))}}catch(a){n.e(a)}finally{n.f()}},removeItemsFromSubscription:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items;this.subscription&&this.subscription.perform("remove",{scope:window.openc3Scope,token:localStorage.openc3Token,items:e.map(this.subscriptionKey)})},reorderIndexes:function(e){var 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(var t=0;t<e.length;t++){var n=e[t].__time/1e9,i=e[0].length;if(0===i||n>e[0][i-1]){for(var s=0;s<this.data.length;s++)this.data[s].push(null);this.set_data_at_index(this.data[0].length-1,n,e[t])}else{var a=M()(this.data[0],n,this.bs_comparator);if(a>=0)this.set_data_at_index(a,n,e[t]);else{for(var r=-a-1,l=0;l<this.data.length;l++)this.data[l].splice(r,0,null);this.set_data_at_index(r,n,e[t])}}}if(null==this.startTime){var o=1e9*this.data[0][0];this.$emit("started",o)}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(var i=0,s=Object.entries(n);i<s.length;i++){var a=(0,r.Z)(s[i],2),o=a[0],c=a[1];if("time"!==o){var u=this.indexes[o];if(u){var d=this.data[u];if(c.raw)d[e]=null;else if("string"===typeof c){if(d[e]=null,!o.includes("__RAW")){var m,h=(0,l.Z)(this.items);try{for(h.s();!(m=h.n()).done;){var p=m.value;if(this.subscriptionKey(p)===o){this.selectedItem=p;break}}}catch(f){h.e(f)}finally{h.f()}this.changeItem({valueType:"RAW",reduced:this.selectedItem.reduced,reducedType:this.selectedItem.reducedType})}}else d[e]=c}}}},subscriptionKey:function(e){var t="".concat(e.reduced,"__TLM__").concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType);return"REDUCED_MINUTE"!==e.reduced&&"REDUCED_HOUR"!==e.reduced&&"REDUCED_DAY"!==e.reduced||(t+="__".concat(e.reducedType)),t}}},L=Z,O=(n(61418),n(66064),(0,g.Z)(L,i,s,!1,null,"ea1fb086",null)),W=O.exports},40636:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});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":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"array-widget"},on:{contextmenu:e.showContextMenu}}),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),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(78081),r=(n(68995),n(45794),n(92318)),l=n(94330),o=(n(80131),{components:{DetailsDialog:l.Z},data:function(){return{width:200,height:100,itemsPerRow:4,formatter:null}},mixins:[r.Z],computed:{aging:function(){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)){var r,l=(0,a.Z)(e);try{for(l.s();!(r=l.n()).done;){var o,c=r.value;this.formatter&&"nil"!==(null===(o=this.formatter)||void 0===o?void 0:o.toLowerCase())?t+=sprintf(this.formatter,c):t+=c,s+=1,s%this.itemsPerRow===0?(s=0,t+=i):t+=n}}catch(u){l.e(u)}finally{l.f()}return t.trim()}return e}}}),c=o,u=(n(91480),n(23287)),d=(0,u.Z)(c,i,s,!1,null,"5cd86706",null),m=d.exports},71340:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});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":"",placeholder:"Value",width:e.width,height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),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),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(78081),r=(n(68995),n(92318)),l=n(94330),o=(n(80131),{components:{DetailsDialog:l.Z},data:function(){return{width:400,height:400,bytesPerWord:4,wordsPerRow:4,addrFormat:null,formatter:"%02X"}},mixins:[r.Z],computed:{aging:function(){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=" ",s="\n",r=0,l=0,o=this.bytesPerWord*this.wordsPerRow,c=(0,a.Z)(e.raw);try{for(c.s();!(n=c.n()).done;){var u=n.value;this.addrFormat&&0===r&&(t+=sprintf(this.addrFormat,l),l+=o),t+=sprintf(this.formatter,u),r+=1,r%o===0?(r=0,t+=s):r%this.bytesPerWord===0&&(t+=i)}}catch(d){c.e(d)}finally{c.f()}}else t=e;return t}}}),c=o,u=(n(42270),n(23287)),d=(0,u.Z)(c,i,s,!1,null,"0872fd0e",null),m=d.exports},68837:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return 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(" "+e._s(e.buttonText)+" ")]),t("v-dialog",{attrs:{"max-width":"300"},model:{value:e.displaySendHazardous,callback:function(t){e.displaySendHazardous=t},expression:"displaySendHazardous"}},[t("v-card",{staticClass:"pa-3"},[t("v-card-title",{staticClass:"headline"},[e._v("Hazardous")]),t("v-card-text",[e._v(" Warning: Command is Hazardous. Send? ")]),t("v-btn",{staticClass:"primary mr-4",on:{click:e.sendHazardousCmd}},[e._v("Yes")]),t("v-btn",{staticClass:"primary",on:{click:e.cancelHazardousCmd}},[e._v("No")])],1)],1)],1)},s=[],a=n(96161),r=a.Z,l=n(23287),o=(0,l.Z)(r,i,s,!1,null,null,null),c=o.exports},75886:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(548),r={mixins:[a.Z],computed:{width:function(){return this.parameters[0]+"px"},height:function(){return this.parameters[1]+"px"}}},l=r,o=(n(15560),n(23287)),c=(0,o.Z)(l,i,s,!1,null,"17947dc7",null),u=c.exports},8213:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(92202),r={mixins:[a.Z]},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},9170:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var i=function(){var e=this,t=e._self._c;return e.imageUrl?t("image",{attrs:{href:e.imageUrl,x:e.parameters[1],y:e.parameters[2],width:e.width,height:e.height},on:{click:e.clickHandler}}):e._e()},s=[],a=(n(58188),n(1939),n(44112),n(92202)),r=n(1716),l={mixins:[a.Z,r.Z],data:function(){return{imageUrl:null,screenTarget:null,screenName:null}},computed:{width:function(){return this.parameters[3]?"".concat(this.parameters[3],"px"):"100%"},height:function(){return this.parameters[4]?"".concat(this.parameters[4],"px"):"100%"}},created:function(){var e=this;this.settings.forEach((function(t){"SCREEN"===t[0]&&(e.screenTarget=t[1],e.screenName=t[2])})),this.parameters[0].startsWith("http")?this.imageUrl=this.parameters[0]:this.getPresignedUrl(this.parameters[0]).then((function(t){e.imageUrl=t}))},methods:{clickHandler:function(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},o=l,c=n(23287),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},58961:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});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,attrs:{href:n.url,x:n.x,y:n.y,width:n.width,height:n.height},on:{click:e.clickHandler}})})),e.defaultImage?t("image",{directives:[{name:"show",rawName:"v-show",value:e.showDefault,expression:"showDefault"}],attrs:{href:e.defaultImage.url,x:e.defaultImage.x,y:e.defaultImage.y,width:e.defaultImage.width,height:e.defaultImage.height},on:{click:e.clickHandler}}):e._e()],2)},s=[],a=n(66964),r=n(15789),l=n(49502),o=(n(58188),n(1939),n(18178),n(43450),n(95342),n(44112),n(28673),n(6886),n(92202)),c=n(1716),u={mixins:[o.Z,c.Z],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(){var e=this;return!this.images.some((function(t){return t.value==e.selectedValue}))}},created:function(){var e=this;this.settings.forEach((function(t){"SCREEN"===t[0]&&(e.screenTarget=t[1],e.screenName=t[2])})),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]||"RAW"),this.screen&&this.screen.addItem(this.valueId);var t=this.settings.filter((function(e){return"IMAGE"===e[0]})).map(function(){var t=(0,l.Z)((0,r.Z)().mark((function t(n){var i;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=n[2],i.startsWith("http")){t.next=5;break}return t.next=4,e.getPresignedUrl(i);case 4:i=t.sent;case 5:return t.abrupt("return",{url:i,value:n[1],x:n[3],y:n[4],width:n[5],height:n[6]});case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());if(Promise.all(t).then((function(t){e.images=t})),this.parameters[4]){var n={x:this.parameters[5],y:this.parameters[6],width:this.parameters[7]?"".concat(this.parameters[7],"px"):"100%",height:this.parameters[8]?"".concat(this.parameters[8],"px"):"100%"},i=this.parameters[4];i.startsWith("http")?this.defaultImage=(0,a.Z)((0,a.Z)({},n),{},{url:i}):this.getPresignedUrl(i).then((function(t){e.defaultImage=(0,a.Z)((0,a.Z)({},n),{},{url:t})}))}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{clickHandler:function(){this.screenTarget&&this.screenName&&this.screen.open(this.screenTarget,this.screenName)}}},d=u,m=n(23287),h=(0,m.Z)(d,i,s,!1,null,null,null),p=h.exports},66147:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(" "+e._s(e.parameters[2])+" ")])},s=[],a=n(92202),r={mixins:[a.Z],computed:{fillColor:function(){return this.parameters[3]?this.parameters[3]:"black"}}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},3193:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(" "+e._s(e._value)+" ")])},s=[],a=(n(18178),n(92202)),r={mixins:[a.Z],data:function(){return{valueId:null}},computed:{_value:function(){return this.screen?this.screen.screenValues[this.valueId][0]:null},fontSize:function(){return this.parameters[5]?this.parameters[5]+"px":"14px"},fillColor:function(){return this.parameters[6]?this.parameters[6]:"black"}},created:function(){var e="CONVERTED";this.parameters[7]&&(e=this.parameters[7]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},52661:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(92202),r={mixins:[a.Z],computed:{calcStyle:function(){var e="black";this.parameters[4]&&(e=this.parameters[4]);var t=1;return this.parameters[5]&&(t=this.parameters[5]),"stroke:"+e+";stroke-width:"+t}}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},9434:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(58188),n(1939),n(18178),n(92202)),r={mixins:[a.Z],data:function(){return{valueId:0,valueMap:{}}},computed:{calcStyle:function(){var e="black";this.screen&&this.screen.screenValues[this.valueId][0]&&(e=this.valueMap[this.screen.screenValues[this.valueId][0]]);var t=1;return this.parameters[7]&&(t=this.parameters[7]),"stroke:"+e+";stroke-width:"+t}},created:function(){var e=this;this.settings.forEach((function(t){"VALUE_EQ"===t[0]&&(e.valueMap[t[1]]=t[2])}));var t="CONVERTED";this.parameters[8]&&(t=this.parameters[8]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(t),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},23984:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(58188),n(1939),n(92202)),r={mixins:[a.Z],data:function(){return{items:[],label:"Checkbox",value:!1}},created:function(){var e=this;this.settings.forEach((function(t){"NAMED_WIDGET"===t[0]&&t[2].setNamedWidget(t[1],e)})),this.label=this.parameters[0]},methods:{checked:function(){return this.value}}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},910:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-select",{style:e.computedStyle,attrs:{"hide-details":"",dense:"",items:e.items},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})},s=[],a=(n(58188),n(1939),n(92202)),r={mixins:[a.Z],data:function(){return{items:[],value:null}},created:function(){var e=this;this.settings.forEach((function(t){"NAMED_WIDGET"===t[0]&&t[2].setNamedWidget(t[1],e)})),this.items=this.parameters},methods:{text:function(){return this.value}}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},76116:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=n(66964),s=function(){var e=this,t=e._self._c;return t(e.widgetType,e._b({tag:"component"},"component",(0,i.Z)((0,i.Z)({},e.$props),e.$attrs),!1))},a=[],r=n(15789),l=n(49502),o=(n(18178),n(71372),{data:function(){return{widgetType:null}},props:{name:{default:null}},computed:{url:function(){return"".concat(window.location.origin,"/tools/widgets/").concat(this.name,"/").concat(this.name,".umd.min.js")}},mounted:function(){var e=this;return(0,l.Z)((0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,System.import(e.url);case 3:e.widgetType=t.sent,t.next=9;break;case 6:throw t.prev=6,t.t0=t["catch"](0),new Error("Unknown widget: ".concat(e.name));case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))()}}),c=o,u=n(23287),d=(0,u.Z)(c,s,a,!1,null,null,null),m=d.exports},61867:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return 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("value-widget",{attrs:{parameters:e.getParameters,settings:e.settings,"format-string":e.parameters[3]}})],1)},s=[],a=n(92202),r=n(94471),l={mixins:[a.Z],components:{ValueWidget:r["default"]},computed:{getParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[4]]}},created:function(){this.setWidth(this.parameters[5],"ch",12)}},o=l,c=n(23287),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},66410:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(58188),n(1939),n(49228),n(36728),n(548)),r={mixins:[a.Z],created:function(){var e="1px";this.parameters[0]&&(e=this.parameters[0]),this.widgets.forEach((function(t){var n=t.settings.find((function(e){return"MARGIN"==e[0]}));void 0===n&&t.settings.push(["MARGIN",e])}))}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},75237:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});n(32501);var i=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),t("horizontal-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},s=[],a=n(66410),r=n(548),l={mixins:[r.Z],components:{HorizontalWidget:a["default"]}},o=l,c=n(23287),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},11685:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var i=function(){var e=this,t=e._self._c;return t("hr")},s=[],a=n(23287),r={},l=(0,a.Z)(r,i,s,!1,null,null,null),o=l.exports},55526:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("iframe",{style:e.computedStyle,attrs:{src:e.parameters[0],width:e.width,height:e.height}})},s=[],a=n(92202),r={mixins:[a.Z],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)}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},81241:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});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(18178),n(58188),n(49228),n(48392)),r=n(92202),l=n(59161),o={mixins:[r.Z],data:function(){return{api:new a.k,cable:new l.Z,subscription:null,imageData:""}},computed:{src:function(){return"data:image/".concat(this.parameters[3],";base64, ").concat(this.imageData)},itemFullName:function(){return"TLM__".concat(this.targetName,"__").concat(this.packetName,"__").concat(this.itemName,"__").concat(this.valueType)},targetName:function(){return this.parameters[0]},packetName:function(){return this.parameters[1]},itemName:function(){return this.parameters[2]},valueType:function(){return"CONVERTED"}},created:function(){var e=this;this.api.get_tlm_packet(this.targetName,this.packetName,this.valueType).then((function(t){var n=null===t||void 0===t?void 0:t.find((function(t){return t[0]===e.itemName}));n&&(e.imageData=n[1])})).finally((function(){e.subscribe()}))},destroyed:function(){this.subscription&&this.subscription.unsubscribe(),this.cable.disconnect()},methods:{received:function(e){if(this.cable.recordPing(),e["error"])this.$notify.serious({body:e["error"]});else if(e.length){var t=e[e.length-1];this.imageData=t[this.itemFullName]}},subscribe:function(){var e=this;this.cable.createSubscription("StreamingChannel",window.openc3Scope,{received:function(t){return e.received(t)},connected:function(){e.subscription.perform("add",{scope:window.openc3Scope,mode:"DECOM",token:localStorage.openc3Token,items:[e.itemFullName]})},disconnected:function(){e.$notify.caution({body:"OpenC3 backend connection disconnected."})},rejected:function(){e.$notify.caution({body:"OpenC3 backend connection rejected."})}}).then((function(t){e.subscription=t}))}}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},3411:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("span",{staticClass:"pa-1 mt-1 label",style:[e.cssProps,e.computedStyle],attrs:{"data-test":"label"}},[e._v(" "+e._s(e.labelText)+" ")])},s=[],a=n(92202),r={mixins:[a.Z],data:function(){return{fontFamily:null,fontSize:null,fontWeight:"normal",fontStyle:"normal"}},computed:{labelText:function(){return this.parameters[0]},cssProps:function(){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:function(){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])}},l=r,o=(n(86402),n(23287)),c=(0,o.Z)(l,i,s,!1,null,"cd356114",null),u=c.exports},85638:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(50615),s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),"widget-index":0}}),t("led-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},a=[],r=n(92202),l=n(3411),o=n(68301),c={mixins:[r.Z],components:{LabelWidget:l["default"],LedWidget:o["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=n(23287),m=(0,d.Z)(u,s,a,!1,null,null,null),h=m.exports},44221:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(50615),s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),"widget-index":0}}),t("progressbar-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},a=[],r=n(92202),l=n(3411),o=n(96714),c={mixins:[r.Z],components:{LabelWidget:l["default"],ProgressbarWidget:o["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=n(23287),m=(0,d.Z)(u,s,a,!1,null,null,null),h=m.exports},42155:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(50615),s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),t("sparkline-widget",{style:e.computedStyle,attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},a=[],r=n(92202),l=n(3411),o=n(889),c={mixins:[r.Z],components:{LabelWidget:l["default"],SparklineWidget:o["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=n(23287),m=(0,d.Z)(u,s,a,!1,null,null,null),h=m.exports},2378:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(50615),s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),t("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},a=[],r=n(92202),l=n(3411),o=n(94471),c={mixins:[r.Z],components:{LabelWidget:l["default"],ValueWidget:o["default"]},computed:{labelName:function(){return[this.parameters[2]+":"]}}},u=c,d=n(23287),m=(0,d.Z)(u,s,a,!1,null,null,null),h=m.exports},58444:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=n(50615),s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("label-widget",{attrs:{parameters:e.labelName,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":0}}),t("value-widget",{attrs:{parameters:e.valueParameters,settings:(0,i.Z)(e.settings),line:e.line,lineNumber:e.lineNumber,"widget-index":1}})],1)},a=[],r=(n(34115),n(634),n(32501),n(36728),n(92202)),l=n(3411),o=n(94471),c=n(48392),u={mixins:[r.Z],data:function(){return{description:"",valueParameters:[]}},components:{LabelWidget:l["default"],ValueWidget:o["default"]},computed:{labelName:function(){return[this.description]}},created:function(){var e=this;this.valueParameters=this.parameters.slice(0,3),this.valueParameters.push(this.parameters[4]),this.parameters.length>3?this.description=this.parameters[3]:(new c.k).get_item(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(t){e.description=t["description"]}))}},d=u,m=n(23287),h=(0,m.Z)(d,s,a,!1,null,null,null),p=h.exports},86414:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(50615),s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("labelvalue-widget",{attrs:{parameters:e.parameters,settings:e.labelValueSettings}}),t("limitsbar-widget",{attrs:{parameters:e.limitsBarParameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},a=[],r=(n(18178),n(95342),n(58188),n(68995),n(2378)),l=n(70230),o=n(92202),c={mixins:[o.Z],components:{LabelvalueWidget:r["default"],LimitsbarWidget:l["default"]},computed:{labelValueSettings:function(){return[].concat((0,i.Z)(this.settings.filter((function(e){return"__SCREEN__"===e[0]}))),(0,i.Z)(this.settings.filter((function(e){return 0===parseInt(e[0])||1===parseInt(e[0])}))))},limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c,d=n(23287),m=(0,d.Z)(u,s,a,!1,null,null,null),h=m.exports},36:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=n(50615),s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[t("label-widget",{attrs:{parameters:[e.parameters[2]],settings:(0,i.Z)(e.settings),"widget-index":0}}),t("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:(0,i.Z)(e.settings),"widget-index":1}}),t("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},a=[],r=n(3411),l=n(94471),o=n(40617),c=n(92202),u={mixins:[c.Z],components:{LabelWidget:r["default"],ValueWidget:l["default"],LimitscolumnWidget:o["default"]},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},d=u,m=n(23287),h=(0,m.Z)(d,s,a,!1,null,null,null),p=h.exports},15690:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(50615),s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("labelvalue-widget",{attrs:{parameters:e.labelValueParameters,settings:e.labelValueSettings}}),t("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:(0,i.Z)(e.settings),"widget-index":2}})],1)},a=[],r=(n(18178),n(95342),n(58188),n(68995),n(2378)),l=n(87458),o=n(92202),c={mixins:[o.Z],components:{LabelvalueWidget:r["default"],RangebarWidget:l["default"]},computed:{labelValueSettings:function(){return[].concat((0,i.Z)(this.settings.filter((function(e){return"__SCREEN__"===e[0]}))),(0,i.Z)(this.settings.filter((function(e){return 0===parseInt(e[0])||1===parseInt(e[0])}))))},labelValueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters:function(){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]]}}},u=c,d=n(23287),m=(0,d.Z)(u,s,a,!1,null,null,null),h=m.exports},68301:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"led mt-1",style:e.cssProps})},s=[],a=(n(68995),n(58188),n(1939),n(18178),n(92202)),r={mixins:[a.Z],data:function(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width:function(){return this.parameters[4]?parseInt(this.parameters[4]):20},height:function(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps:function(){var e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);var t=this.colors[e];return t||(t=this.colors.ANY),t||(t="openc3-black"),{"--height":this.height+"px","--width":this.width+"px","--color":t}}},created:function(){var e=this;this.settings.forEach((function(t){switch(t[0]){case"LED_COLOR":e.colors[t[1]]=t[2];break}})),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(this.parameters[3]),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},l=r,o=(n(89001),n(23287)),c=(0,o.Z)(l,i,s,!1,null,"4e68ef1f",null),u=c.exports},70230:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});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"}),t("div",{staticClass:"limitsbar__redhigh"}),t("div",{staticClass:"limitsbar__yellowlow"}),t("div",{staticClass:"limitsbar__yellowhigh"}),t("div",{staticClass:"limitsbar__greenlow"}),t("div",{staticClass:"limitsbar__greenhigh"}),t("div",{staticClass:"limitsbar__blue"}),t("div",{staticClass:"limitsbar__line"}),t("div",{staticClass:"limitsbar__arrow"})])}],a=(n(58188),n(1939),n(68995),n(18178),n(92202)),r=n(48392),l="DEFAULT",o={mixins:[a.Z],data:function(){return{width:160,height:22,minValue:null,maxValue:null,scale:0,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:l,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=null;this.screen&&(e=this.screen.screenValues[this.valueId][0]);var 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:l}},created:function(){var e=this;this.api=new r.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(t){e.limitsSettings=t})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.settings.forEach((function(t){"MIN_VALUE"===t[0]&&(e.minValue=parseInt(t[1])),"MAX_VALUE"===t[0]&&(e.maxValue=parseInt(t[1]))})),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);var t="CONVERTED";this.parameters[3]&&(t=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(t),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{modifyLimits:function(e){this.redLow=10,this.redHigh=10,this.minValue&&(e[0]<=this.minValue&&(e[0]=this.minValue,this.redLow=0),e[1]<=this.minValue&&(e[1]=this.minValue),e[2]<=this.minValue&&(e[2]=this.minValue),e[3]<=this.minValue&&(e[3]=this.minValue),e.length>4&&e[4]<=this.minValue&&(e[4]=this.minValue),e.length>4&&e[5]<=this.minValue&&(e[5]=this.minValue)),this.maxValue&&(e[0]>=this.maxValue&&(e[0]=this.maxValue),e[1]>=this.maxValue&&(e[1]=this.maxValue),e[2]>=this.maxValue&&(e[2]=this.maxValue),e[3]>=this.maxValue&&(e[3]=this.maxValue,this.redHigh=0),e.length>4&&e[4]>=this.maxValue&&(e[4]=this.maxValue),e.length>4&&e[5]>=this.maxValue&&(e[5]=this.maxValue)),e[0]==e[1]&&(this.redLow=0),e[2]==e[3]&&(this.redHigh=0);var t=80;return 0==this.redLow&&(t+=10),0==this.redHigh&&(t+=10),this.scale=(e[3]-e[0])/t,e},calcPosition:function(e,t){if(null!=e&&t){var n=t[0]-10*this.scale;this.minValue&&this.minValue==t[0]&&(n=t[0]);t[3],this.scale;if(this.maxValue&&this.maxValue==t[3]&&t[3],e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var i=parseInt((e-n)/this.scale);return i>100?100:i<0?0:i}},calcLimits:function(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(){var e=this;this.api.get_limits_set().then((function(t){e.currentLimitsSet=t}))}}},c=o,u=(n(45908),n(23287)),d=(0,u.Z)(c,i,s,!1,null,"f1782fb4",null),m=d.exports},10618:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return 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("div",{staticClass:"led align-self-center",style:e.cssProps}),t("label-widget",{style:e.computedStyle,attrs:{parameters:e.labelName,settings:e.settings,"widget-index":1}})],1)},s=[],a=(n(68995),n(92318)),r={mixins:[a.Z],data:function(){return{radius:15,fullLabelDisplay:!1}},created:function(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&"true"===this.parameters[5].toLowerCase()&&(this.fullLabelDisplay=!0)},computed:{labelName:function(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps:function(){return this.screen&&this.screen.screenValues[this.valueId][0],{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType:function(){var e="CONVERTED";return this.parameters[3]&&(e=this.parameters[3]),e}}},l=r,o=(n(50980),n(23287)),c=(0,o.Z)(l,i,s,!1,null,"47f390ae",null),u=c.exports},40617:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});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"}),t("div",{staticClass:"limitsbar__redhigh"}),t("div",{staticClass:"limitsbar__yellowlow"}),t("div",{staticClass:"limitsbar__yellowhigh"}),t("div",{staticClass:"limitsbar__greenlow"}),t("div",{staticClass:"limitsbar__greenhigh"}),t("div",{staticClass:"limitsbar__blue"}),t("div",{staticClass:"limitsbar__line"}),t("div",{staticClass:"limitsbar__arrow"})])}],a=(n(18178),n(68995),n(92202)),r=n(48392),l="DEFAULT",o={mixins:[a.Z],data:function(){return{width:20,height:100,redLow:0,yellowLow:0,greenLow:0,greenHigh:0,yellowHigh:0,redHigh:0,blue:0,api:null,limitsSettings:{DEFAULT:[]},currentLimitsSet:l,currentSetRefreshInterval:null}},computed:{cssProps:function(){var e=null;return this.screen&&(e=this.screen.screenValues[this.valueId][0]),this.calcLimits(this.limitsSettings[this.selectedLimitsSet]),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,this.limitsSettings[this.selectedLimitsSet])+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"}},selectedLimitsSet:function(){return this.limitsSettings.hasOwnProperty(this.currentLimitsSet)?this.currentLimitsSet:l}},created:function(){var e=this;this.api=new r.k,this.api.get_limits(this.parameters[0],this.parameters[1],this.parameters[2]).then((function(t){e.limitsSettings=t})),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,6e4),this.width=this.setWidth(this.parameters[4],"px",this.width),this.height=this.setHeight(this.parameters[5],"px",this.height);var t="CONVERTED";this.parameters[3]&&(t=this.parameters[3]),this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(t),this.screen&&this.screen.addItem(this.valueId)},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId),clearInterval(this.currentSetRefreshInterval)},methods:{calcPosition:function(e,t){if(e&&t){var n=.8;t[0]===t[1]&&(n+=.1),t[2]===t[3]&&(n+=.1);var i=(t[3]-t[0])/n,s=t[0]-.1*i;t[3];if(e.raw)return"-Infinity"===e.raw?0:100;if(e<this.min)return 0;if(e>this.max)return 100;var a=parseInt((e-s)/i*100);return a>100?100:a<0?0:a}},calcLimits:function(e){if(e){var t=80;e[0]===e[1]?(this.redLow=0,t+=10):this.redLow=10,e[2]===e[3]?(this.redHigh=0,t+=10):this.redHigh=10;var n=1*(e[3]-e[0]);this.yellowLow=Math.round((e[1]-e[0])/n*t),this.yellowHigh=Math.round((e[3]-e[2])/n*t),e.length>4?(this.greenLow=Math.round((e[4]-e[1])/n*t),this.greenHigh=Math.round((e[2]-e[5])/n*t),this.blue=Math.round(100-this.redLow-this.yellowLow-this.greenLow-this.greenHigh-this.yellowHigh-this.redHigh)):(this.greenLow=Math.round(100-this.redLow-this.yellowLow-this.yellowHigh-this.redHigh),this.greenHigh=0,this.blue=0)}},getCurrentLimitsSet:function(){var e=this;this.api.get_limits_set().then((function(t){e.currentLimitsSet=t}))}}},c=o,u=(n(63626),n(23287)),d=(0,u.Z)(c,i,s,!1,null,"0e4c2263",null),m=d.exports},48538:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});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,"hide-system-bar":"","hide-overview":""},on:{pause:function(){return e.state="pause"},start:function(){return e.state="start"}}})},s=[],a=n(22841),r=n(84195),l={components:{Graph:r.Z},mixins:[a.Z]},o=l,c=n(23287),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},54423:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=function(){var e=this,t=e._self._c;return t("v-container",{staticClass:"pa-0",style:e.computedStyle},e._l(e.widgetChunks,(function(n,i){return t("v-row",{key:"r"+i,attrs:{"no-gutters":""}},e._l(n,(function(n,i){return t("v-col",{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)})),1)})),1)},s=[],a=(n(68995),n(58188),n(1939),n(49228),n(36728),n(548)),r=n(76635),l=n.n(r),o={mixins:[a.Z],computed:{columns:function(){return parseInt(this.parameters[0])},widgetChunks:function(){return l().chunk(this.widgets,this.columns)}},created:function(){var e="1px";this.parameters[1]&&(e=this.parameters[1]),this.widgets.forEach((function(t){var n=t.settings.find((function(e){return"MARGIN"==e[0]}));void 0===n&&t.settings.push(["MARGIN",e])}))}},c=o,u=n(23287),d=(0,u.Z)(c,i,s,!1,null,null,null),m=d.exports},96714:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("v-progress-linear",{style:e.computedStyle,attrs:{height:"25",value:e._value}},[t("strong",[e._v(e._s(Math.ceil(e._value))+"%")])])},s=[],a=(n(68995),n(13489),n(18178),n(92202)),r={mixins:[a.Z],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:100}},computed:{_value:function(){var 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="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(e),this.screen&&this.screen.addItem(this.valueId)}},destroyed:function(){this.screen&&this.screen.deleteItem(this.valueId)}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},65398:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(71245),n(92202)),r={props:{value:{type:Number}},mixins:[a.Z],data:function(){return{label:"Radio"}},created:function(){this.label=this.parameters[0]}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},12413:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(58188),n(1939),n(68995),n(548)),r={mixins:[a.Z],data:function(){return{selectedIndex:0}},created:function(){var e=this;this.settings.forEach((function(t){"NAMED_WIDGET"===t[0]&&t[2].setNamedWidget(t[1],e)})),this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected:function(){return this.selectedIndex}}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},87458:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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"}),t("div",{staticClass:"rangebar__arrow"})])}],a=(n(68995),n(18178),n(92202)),r={mixins:[a.Z],data:function(){return{width:160,height:22}},computed:{cssProps:function(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min:function(){return parseInt(this.parameters[3])},max:function(){return parseInt(this.parameters[4])},range:function(){return this.max-this.min}},created:function(){var e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId="".concat(this.parameters[0],"__").concat(this.parameters[1],"__").concat(this.parameters[2],"__").concat(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:function(){this.screen&&this.screen.deleteItem(this.valueId)},methods:{calcPosition:function(){var e=null;if(this.screen&&(e=this.screen.screenValues[this.valueId][0]),!e)return 0;if(e.raw)return"-Infinity"===e.raw?0:100;var t=(e-this.min)/this.range*100;return t>100?100:t<0?0:t}}},l=r,o=(n(27480),n(23287)),c=(0,o.Z)(l,i,s,!1,null,"f50bb458",null),u=c.exports},42701:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});n(32501);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(548),r=n(38519),l={mixins:[a.Z],components:{VerticalWidget:r["default"]},created:function(){this.setHeight(this.parameters[0],"px",200)}},o=l,c=n(23287),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},38664:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(92202),r={mixins:[a.Z],computed:{labelText:function(){return this.parameters[0]}}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},84224:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var i=function(){var e=this,t=e._self._c;return t("div",{style:e.style})},s=[],a=n(92202),r={mixins:[a.Z],computed:{style:function(){return["width: ".concat(this.parameters[0],"px;"),"height: ".concat(this.parameters[1],"px;")].join("")}}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},889:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});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(22841),r=n(84195),l={components:{Graph:r.Z},mixins:[a.Z],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}},o=l,c=n(23287),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},40851:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});n(18178);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(" "+e._s(n.parameters[0])+" ")])})),1),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:"".concat(i,"-").concat(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(548),r={mixins:[a.Z],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},7312:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});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":"",placeholder:"Value",height:e.height,value:e._value,"data-test":"valueText"},on:{contextmenu:e.showContextMenu}}),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),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(92318),r=n(94330),l=(n(80131),{components:{DetailsDialog:r.Z},data:function(){return{width:200,height:200}},mixins:[a.Z],computed:{aging:function(){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=l,c=(n(26422),n(23287)),u=(0,c.Z)(o,i,s,!1,null,"0b5bfdc6",null),d=u.exports},57451:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(58188),n(1939),n(92202)),r={mixins:[a.Z],data:function(){return{value:null}},created:function(){var e=this;this.settings.forEach((function(t){"NAMED_WIDGET"===t[0]&&t[2].setNamedWidget(t[1],e)})),this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text:function(){return this.value}}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},94788:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(" "+e._s(e.labelText)+" ")])},s=[],a=(n(71372),n(92202)),r={mixins:[a.Z],computed:{labelText:function(){return this.parameters[0]}},created:function(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},94471:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return 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(n){var i=n.on,s=n.attrs;return[t("v-text-field",e._g(e._b({class:e.valueClass,attrs:{solo:"",dense:"",readonly:"","single-line":"","hide-no-data":"","hide-details":"",placeholder:"Value",value:e._value,"data-test":"value"},on:{contextmenu:e.showContextMenu}},"v-text-field",s,!1),i))]}}])},[t("span",[e._v(e._s(e.fullName))])]),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),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(68995),n(92318)),r=n(94330),l=4,o={components:{DetailsDialog:r.Z},mixins:[a.Z],data:function(){return{width:12+l}},computed:{fullName:function(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging:function(){return{"--aging":this.grayLevel}}},created:function(){this.verifyNumParams("VALUE",3,3,"VALUE <TARGET> <PACKET> <ITEM>"),this.setWidth(parseInt(this.parameters[4])+l,"ch",this.width)}},c=o,u=(n(14678),n(23287)),d=(0,u.Z)(c,i,s,!1,null,"a75b0e4e",null),m=d.exports},91075:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(50615),s=(n(32501),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:(0,i.Z)(e.settings),"widget-index":0}}),t("limitsbar-widget",{attrs:{parameters:e.parameters.slice(0,4),settings:(0,i.Z)(e.settings),"widget-index":1}})],1)}),a=[],r=n(94471),l=n(70230),o=n(92202),c={mixins:[o.Z],components:{ValueWidget:r["default"],LimitsbarWidget:l["default"]},computed:{limitsBarParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3]]}}},u=c,d=n(23287),m=(0,d.Z)(u,s,a,!1,null,null,null),h=m.exports},80128:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(50615),s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-column",style:e.computedStyle},[t("limitscolumn-widget",{attrs:{parameters:e.limitsColumnParameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),t("value-widget",{attrs:{parameters:e.parameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},a=[],r=n(94471),l=n(40617),o=n(92202),c={mixins:[o.Z],components:{ValueWidget:r["default"],LimitscolumnWidget:l["default"]},computed:{limitsColumnParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],"CONVERTED"]}}},u=c,d=n(23287),m=(0,d.Z)(u,s,a,!1,null,null,null),h=m.exports},37193:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(50615),s=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticClass:"d-flex flex-row",style:e.computedStyle},[t("value-widget",{attrs:{parameters:e.valueParameters,settings:(0,i.Z)(e.settings),"widget-index":0}}),t("rangebar-widget",{attrs:{parameters:e.rangeBarParameters,settings:(0,i.Z)(e.settings),"widget-index":1}})],1)},a=[],r=n(94471),l=n(87458),o=n(92202),c={mixins:[o.Z],components:{ValueWidget:r["default"],RangebarWidget:l["default"]},computed:{valueParameters:function(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters:function(){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]]}}},u=c,d=n(23287),m=(0,d.Z)(u,s,a,!1,null,null,null),h=m.exports},38519:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});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(58188),n(1939),n(49228),n(36728),n(548)),r={mixins:[a.Z],created:function(){var e="1px";this.parameters[0]&&(e=this.parameters[0]),this.widgets.forEach((function(t){var n=t.settings.find((function(e){return"MARGIN"==e[0]}));void 0===n&&t.settings.push(["MARGIN",e])}))}},l=r,o=n(23287),c=(0,o.Z)(l,i,s,!1,null,null,null),u=c.exports},35133:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});n(32501);var i=function(){var e=this,t=e._self._c;return t("div",[t("v-banner",{style:e.computedStyle,attrs:{"single-line":""}},[e._v(e._s(e.parameters[0]))]),t("vertical-widget",e._g({attrs:{parameters:e.parameters.slice(1),settings:e.settings,widgets:e.widgets}},e.$listeners))],1)},s=[],a=n(38519),r=n(548),l={mixins:[r.Z],components:{VerticalWidget:a["default"]}},o=l,c=n(23287),u=(0,c.Z)(o,i,s,!1,null,null,null),d=u.exports},65055:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".grid[data-v-65333744]{position:relative}.item[data-v-65333744]{position:absolute;display:block;margin:5px;z-index:1}.item.muuri-item-dragging[data-v-65333744]{z-index:3}.item.muuri-item-releasing[data-v-65333744]{z-index:2}.item.muuri-item-hidden[data-v-65333744]{z-index:0}.item-content[data-v-65333744]{position:relative;cursor:pointer;border-radius:6px}",""]),t["default"]=l},212:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".label[data-v-1e0f0ab0]{font-weight:700;text-transform:capitalize}[data-v-1e0f0ab0] .v-input--selection-controls{padding:0;margin:0}",""]),t["default"]=l},20603:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".ace_autocomplete{width:60vw!important}",""]),t["default"]=l},51078:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".editor[data-v-47108c54]{height:50vh;width:75vw;position:relative;font-size:16px}.v-card[data-v-47108c54]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-47108c54] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=l},84943:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".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}",""]),t["default"]=l},5602:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,"#chart[data-v-ea1fb086]{background-color:var(--v-tertiary-darken2)}#chart[data-v-ea1fb086] .u-select{background-color:hsla(0,0%,100%,.07)}",""]),t["default"]=l},84975:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".v-card[data-v-a491b21e]{background-color:var(--v-tertiary-darken2)}.v-textarea[data-v-a491b21e] textarea{padding:5px;background-color:var(--v-tertiary-darken1)!important}",""]),t["default"]=l},13535:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".v-list[data-v-2eb37f67] .v-label{margin-left:5px}.v-list-item__icon[data-v-2eb37f67]{margin-right:15px!important}.v-list-item__title[data-v-2eb37f67]{color:#fff}",""]),t["default"]=l},39299:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".array-widget-container[data-v-5cd86706] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-5cd86706] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-5cd86706] input{color:#00c800}.openc3-yellow[data-v-5cd86706] input{color:#ffdc00}.openc3-red[data-v-5cd86706] input{color:#ff2d2d}.openc3-blue[data-v-5cd86706] input{color:#09f}.openc3-purple[data-v-5cd86706] input{color:#c800c8}.openc3-black[data-v-5cd86706] input{color:#000}.openc3-white[data-v-5cd86706] input{color:#fff}",""]),t["default"]=l},61412:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".block-widget-container[data-v-0872fd0e] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.v-textarea[data-v-0872fd0e] textarea{font-family:Courier New,Courier,monospace}.value[data-v-0872fd0e] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0872fd0e] input{color:#00c800}.openc3-yellow[data-v-0872fd0e] input{color:#ffdc00}.openc3-red[data-v-0872fd0e] input{color:#ff2d2d}.openc3-blue[data-v-0872fd0e] input{color:#09f}.openc3-purple[data-v-0872fd0e] input{color:#c800c8}.openc3-black[data-v-0872fd0e] input{color:#000}.openc3-white[data-v-0872fd0e] input{color:#fff}",""]),t["default"]=l},19412:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".label[data-v-cd356114]{font-family:var(--font-family);font-size:var(--font-size);font-weight:var(--font-weight);font-style:var(--font-style)}",""]),t["default"]=l},34343:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".led[data-v-4e68ef1f]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),t["default"]=l},87358:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".led[data-v-47f390ae]{height:var(--height);width:var(--width);background-color:var(--color);border-radius:50%}",""]),t["default"]=l},26339:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".textbox-widget-container[data-v-0b5bfdc6] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-0b5bfdc6] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-0b5bfdc6] input{color:#00c800}.openc3-yellow[data-v-0b5bfdc6] input{color:#ffdc00}.openc3-red[data-v-0b5bfdc6] input{color:#ff2d2d}.openc3-blue[data-v-0b5bfdc6] input{color:#09f}.openc3-purple[data-v-0b5bfdc6] input{color:#c800c8}.openc3-black[data-v-0b5bfdc6] input{color:#000}.openc3-white[data-v-0b5bfdc6] input{color:#fff}",""]),t["default"]=l},99845:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,"svg[data-v-17947dc7]{background-color:#fff}",""]),t["default"]=l},46017:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".limitsbar[data-v-f1782fb4]{cursor:default;display:flex;justify-content:center;align-items:center;padding:5px;padding-top:15px;width:var(--width)}.limitsbar__container[data-v-f1782fb4]{position:relative;flex:1;height:var(--container-height);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-f1782fb4]{left:0;width:var(--redlow-width)}.limitsbar__redhigh[data-v-f1782fb4],.limitsbar__redlow[data-v-f1782fb4]{position:absolute;top:-1px;height:var(--container-height);background-color:#ff2d2d}.limitsbar__redhigh[data-v-f1782fb4]{right:0;width:var(--redhigh-width)}.limitsbar__yellowlow[data-v-f1782fb4]{left:var(--redlow-width);width:var(--yellowlow-width)}.limitsbar__yellowhigh[data-v-f1782fb4],.limitsbar__yellowlow[data-v-f1782fb4]{position:absolute;top:-1px;height:var(--container-height);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-f1782fb4]{right:var(--redhigh-width);width:var(--yellowhigh-width)}.limitsbar__greenlow[data-v-f1782fb4]{left:calc(var(--redlow-width) + var(--yellowlow-width));width:var(--greenlow-width)}.limitsbar__greenhigh[data-v-f1782fb4],.limitsbar__greenlow[data-v-f1782fb4]{position:absolute;top:-1px;height:var(--container-height);background-color:#00c800}.limitsbar__greenhigh[data-v-f1782fb4]{right:calc(var(--redhigh-width) + var(--yellowhigh-width));width:var(--greenhigh-width)}.limitsbar__blue[data-v-f1782fb4]{top:-1px;left:calc(var(--redlow-width) + var(--yellowlow-width) + var(--greenlow-width));width:var(--blue-width);background-color:#09f}.limitsbar__blue[data-v-f1782fb4],.limitsbar__line[data-v-f1782fb4]{position:absolute;height:var(--container-height)}.limitsbar__line[data-v-f1782fb4]{left:var(--position);width:1px;background-color:gray}.limitsbar__arrow[data-v-f1782fb4]{position:absolute;top:-5px;left:var(--position);width:0;height:0;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),t["default"]=l},88810:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".limitsbar[data-v-0e4c2263]{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;height:var(--height)}.limitsbar__container[data-v-0e4c2263]{position:relative;flex:1 1 100%;width:var(--container-width);border:1px solid #000;background-color:#fff}.limitsbar__redlow[data-v-0e4c2263]{bottom:0;height:var(--redlow-height)}.limitsbar__redhigh[data-v-0e4c2263],.limitsbar__redlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ff2d2d}.limitsbar__redhigh[data-v-0e4c2263]{top:0;height:var(--redhigh-height)}.limitsbar__yellowlow[data-v-0e4c2263]{bottom:var(--redlow-height);height:var(--yellowlow-height)}.limitsbar__yellowhigh[data-v-0e4c2263],.limitsbar__yellowlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#ffdc00}.limitsbar__yellowhigh[data-v-0e4c2263]{top:var(--redhigh-height);height:var(--yellowhigh-height)}.limitsbar__greenlow[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height));height:var(--greenlow-height)}.limitsbar__greenhigh[data-v-0e4c2263],.limitsbar__greenlow[data-v-0e4c2263]{position:absolute;width:var(--container-width);background-color:#00c800}.limitsbar__greenhigh[data-v-0e4c2263]{top:calc(var(--redhigh-height) + var(--yellowhigh-height));height:var(--greenhigh-height)}.limitsbar__blue[data-v-0e4c2263]{bottom:calc(var(--redlow-height) + var(--yellowlow-height) + var(--greenlow-height));height:var(--blue-height);background-color:#09f}.limitsbar__blue[data-v-0e4c2263],.limitsbar__line[data-v-0e4c2263]{position:absolute;width:var(--container-width)}.limitsbar__line[data-v-0e4c2263]{bottom:var(--position);height:1px;background-color:gray}.limitsbar__arrow[data-v-0e4c2263]{position:absolute;bottom:var(--position);left:var(--container-width);width:0;height:0;-webkit-transform:translateY(5px);transform:translateY(5px);border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:5px solid gray}",""]),t["default"]=l},17081:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.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;-webkit-transform:translateX(-5px);transform:translateX(-5px);border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid gray}",""]),t["default"]=l},50824:function(e,t,n){"use strict";n.r(t);var i=n(33467),s=n.n(i),a=n(58715),r=n.n(a),l=r()(s());l.push([e.id,".value-widget-container[data-v-a75b0e4e]{min-height:34px}.value-widget-container[data-v-a75b0e4e] .v-input__slot{background:rgba(var(--aging),var(--aging),var(--aging),1)!important}.value[data-v-a75b0e4e] div{min-height:24px!important;display:flex!important;align-items:center!important}.openc3-green[data-v-a75b0e4e] input{color:#00c800}.openc3-yellow[data-v-a75b0e4e] input{color:#ffdc00}.openc3-red[data-v-a75b0e4e] input{color:#ff2d2d}.openc3-blue[data-v-a75b0e4e] input{color:#09f}.openc3-purple[data-v-a75b0e4e] input{color:#c800c8}.openc3-black[data-v-a75b0e4e] input{color:#000}.openc3-white[data-v-a75b0e4e] input{color:#fff}",""]),t["default"]=l},56113:function(e,t,n){var i=n(65055);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("bc3615e0",i,!0,{sourceMap:!1,shadowMode:!1})},37681:function(e,t,n){var i=n(212);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("b67deab6",i,!0,{sourceMap:!1,shadowMode:!1})},43290:function(e,t,n){var i=n(20603);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("d4b58c6a",i,!0,{sourceMap:!1,shadowMode:!1})},15361:function(e,t,n){var i=n(51078);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("65dd9a82",i,!0,{sourceMap:!1,shadowMode:!1})},61418:function(e,t,n){var i=n(84943);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("80313164",i,!0,{sourceMap:!1,shadowMode:!1})},66064:function(e,t,n){var i=n(5602);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("8e4fa94c",i,!0,{sourceMap:!1,shadowMode:!1})},95692:function(e,t,n){var i=n(84975);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("0edc68cd",i,!0,{sourceMap:!1,shadowMode:!1})},12916:function(e,t,n){var i=n(13535);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("5f049f38",i,!0,{sourceMap:!1,shadowMode:!1})},91480:function(e,t,n){var i=n(39299);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("0bb5a694",i,!0,{sourceMap:!1,shadowMode:!1})},42270:function(e,t,n){var i=n(61412);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("0f0c6f41",i,!0,{sourceMap:!1,shadowMode:!1})},86402:function(e,t,n){var i=n(19412);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("922dd3a8",i,!0,{sourceMap:!1,shadowMode:!1})},89001:function(e,t,n){var i=n(34343);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("5c27cc14",i,!0,{sourceMap:!1,shadowMode:!1})},50980:function(e,t,n){var i=n(87358);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("29b3a614",i,!0,{sourceMap:!1,shadowMode:!1})},26422:function(e,t,n){var i=n(26339);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("6c25233b",i,!0,{sourceMap:!1,shadowMode:!1})},15560:function(e,t,n){var i=n(99845);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("5f683430",i,!0,{sourceMap:!1,shadowMode:!1})},45908:function(e,t,n){var i=n(46017);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("2b920be4",i,!0,{sourceMap:!1,shadowMode:!1})},63626:function(e,t,n){var i=n(88810);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("b354b072",i,!0,{sourceMap:!1,shadowMode:!1})},27480:function(e,t,n){var i=n(17081);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("394c4448",i,!0,{sourceMap:!1,shadowMode:!1})},14678:function(e,t,n){var i=n(50824);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var s=n(3514).Z;s("7f35960e",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=387.js.map
|